draft
bool 1
class | date
stringlengths 19
20
| title
stringlengths 9
214
| tag
sequence | category
sequence | body
stringlengths 575
57.5k
| description
stringlengths 40
192
⌀ | image
stringlengths 28
59
⌀ | embeddings_base_en
sequence | embeddings_small_en
sequence | embeddings_mini_lm
sequence | slug
stringlengths 8
191
| url
stringlengths 49
232
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
false | 2015-02-24 22:39:49 | Python/nltk: Naive vs Naive Bayes vs Decision Tree | [
"python"
] | [
"Python"
] | Last week I wrote a blog post describing http://www.markhneedham.com/blog/2015/02/20/pythonscikit-learn-detecting-which-sentences-in-a-transcript-contain-a-speaker/[a decision tree I'd trained to detect the speakers in a How I met your mother transcript] and after writing the post I wondered whether a simple classifier would do the job.
The simple classifier will work on the assumption that any word followed by a ":" is a speaker and anything else isn't. Here's the definition of a +++<cite>+++NaiveClassifier+++</cite>+++:
[source,python]
----
import nltk
from nltk import ClassifierI
class NaiveClassifier(ClassifierI):
def classify(self, featureset):
if featureset['next-word'] == ":":
return True
else:
return False
----
As you can see it only implements the classify method and executes a static check.
While reading about ways to evaluate the effectiveness of text classifiers I came across http://streamhacker.com/2010/05/17/text-classification-sentiment-analysis-precision-recall/[Jacob Perkins blog] which suggests that we should measure two things: precision and recall.
* Higher precision means less false positives, while lower precision means more false positives.
* Higher recall means less false negatives, while lower recall means more false negatives.
If (like me) you often get confused between false positives and negatives the following photo should help fix that:
</p>
image::{{<siteurl>}}/uploads/2015/02/false_positive_negative.jpg[False positive negative,400]
I wrote the following function (adapted from Jacob's blog post) to calculate precision and recall values for a given classifier:
[source,python]
----
import nltk
import collections
def assess_classifier(classifier, test_data, text):
refsets = collections.defaultdict(set)
testsets = collections.defaultdict(set)
for i, (feats, label) in enumerate(test_data):
refsets[label].add(i)
observed = classifier.classify(feats)
testsets[observed].add(i)
speaker_precision = nltk.metrics.precision(refsets[True], testsets[True])
speaker_recall = nltk.metrics.recall(refsets[True], testsets[True])
non_speaker_precision = nltk.metrics.precision(refsets[False], testsets[False])
non_speaker_recall = nltk.metrics.recall(refsets[False], testsets[False])
return [text, speaker_precision, speaker_recall, non_speaker_precision, non_speaker_recall]
----
Now let's call that function with each of our classifiers:
[source,python]
----
import json
from sklearn.cross_validation import train_test_split
from himymutil.ml import pos_features
from himymutil.naive import NaiveClassifier
from tabulate import tabulate
with open("data/import/trained_sentences.json", "r") as json_file:
json_data = json.load(json_file)
tagged_sents = []
for sentence in json_data:
tagged_sents.append([(word["word"], word["speaker"]) for word in sentence["words"]])
featuresets = []
for tagged_sent in tagged_sents:
untagged_sent = nltk.tag.untag(tagged_sent)
for i, (word, tag) in enumerate(tagged_sent):
featuresets.append( (pos_features(untagged_sent, i), tag) )
train_data,test_data = train_test_split(featuresets, test_size=0.20, train_size=0.80)
table = []
table.append(assess_classifier(NaiveClassifier(), test_data, "Naive"))
table.append(assess_classifier(nltk.NaiveBayesClassifier.train(train_data), test_data, "Naive Bayes"))
table.append(assess_classifier(nltk.DecisionTreeClassifier.train(train_data), test_data, "Decision Tree"))
print(tabulate(table, headers=["Classifier","speaker precision", "speaker recall", "non-speaker precision", "non-speaker recall"]))
----
I'm using the https://pypi.python.org/pypi/tabulate[tabulate] library to print out a table showing each of the classifiers and their associated value for precision and recall. If we execute this file we'll see the following output:
[source,bash]
----
$ python scripts/detect_speaker.py
Classifier speaker precision speaker recall non-speaker precision non-speaker recall
------------- ------------------- ---------------- ----------------------- --------------------
Naive 0.9625 0.846154 0.994453 0.998806
Naive Bayes 0.674603 0.934066 0.997579 0.983685
Decision Tree 0.965517 0.923077 0.997219 0.998806
----
The naive classifier is good on most measures but makes some mistakes on speaker recall - we have 16% false negatives i.e. 16% of words that should be classified as speaker aren't.
Naive Bayes does poorly in terms of speaker false positives - 1/3 of the time when we say a word is a speaker it actually isn't.
The decision tree performs best but has 8% speaker false negatives - 8% of words that should be classified as speakers aren't.
The https://github.com/mneedham/neo4j-himym/blob/master/scripts/detect_speaker.py[code is on github] if you want to play around with it. | null | null | [
-0.0028956339228898287,
-0.008939704857766628,
-0.00898201484233141,
0.02034451998770237,
0.061213426291942596,
0.043535858392715454,
0.027480918914079666,
0.027289194986224174,
-0.016948062926530838,
0.008298557251691818,
0.004331070929765701,
0.02557642012834549,
-0.04450181871652603,
0.017962800338864326,
-0.0075259641744196415,
0.06029041111469269,
0.06941056251525879,
0.013010735623538494,
0.003288164036348462,
0.029074426740407944,
0.007441919296979904,
0.040818654000759125,
0.021503616124391556,
0.016158686950802803,
0.025247830897569656,
0.01179683767259121,
-0.005482142791152,
0.0013184858253225684,
-0.046351358294487,
0.0028491648845374584,
0.02592497505247593,
0.01579335890710354,
-0.005893465131521225,
-0.020865606144070625,
0.03637353703379631,
0.022440683096647263,
-0.023876188322901726,
0.032792795449495316,
0.020074600353837013,
0.0344354510307312,
-0.06085725501179695,
0.014316173270344734,
-0.023314019665122032,
0.011533508077263832,
-0.0932483971118927,
0.011562444269657135,
-0.070785291492939,
0.014673280529677868,
0.01730898581445217,
0.0032096165232360363,
-0.05772749334573746,
0.06504207849502563,
-0.008512035012245178,
-0.02116096392273903,
-0.002493626670911908,
0.07789105921983719,
0.01828482374548912,
-0.07725459337234497,
0.010322962887585163,
-0.010946203954517841,
-0.013485433533787727,
-0.008874715305864811,
-0.014580721966922283,
0.0035369442775845528,
0.00233383453451097,
-0.022148260846734047,
-0.024261023849248886,
0.025839323177933693,
-0.05588064342737198,
0.021857917308807373,
-0.030190959572792053,
0.025797739624977112,
0.003111265366896987,
0.0018786877626553178,
0.0015916817355901003,
-0.028679976239800453,
-0.0108886593952775,
0.058910489082336426,
0.028649162501096725,
0.03509095311164856,
-0.020926035940647125,
-0.001233751536346972,
0.0349699929356575,
0.03382362797856331,
-0.011350085027515888,
-0.014222060330212116,
-0.026326585561037064,
-0.03129534423351288,
-0.042358726263046265,
0.03888661786913872,
0.023028140887618065,
-0.05688127130270004,
0.03163815662264824,
0.035302646458148956,
-0.033417243510484695,
0.02668791636824608,
0.0019859762396663427,
-0.008457344956696033,
-0.028207728639245033,
-0.0392867736518383,
-0.06239454448223114,
-0.034804798662662506,
0.05336378887295723,
0.023482687771320343,
-0.08397191017866135,
-0.01395502407103777,
0.0007053915178403258,
0.02151978760957718,
-0.0018367135198786855,
0.01942213624715805,
-0.019694676622748375,
0.027929550036787987,
-0.026888351887464523,
0.0020928820595145226,
-0.0905587375164032,
0.03423149883747101,
-0.0045834979973733425,
-0.029840530827641487,
0.00460438709706068,
0.009963152930140495,
0.04335137829184532,
0.015524640679359436,
-0.00718298414722085,
0.07629583030939102,
-0.027993008494377136,
0.02129984460771084,
-0.01146832387894392,
0.056686822324991226,
-0.008554783649742603,
-0.05770573392510414,
-0.021860739216208458,
0.03724029287695885,
-0.018321793526411057,
0.037671882659196854,
-0.019596438854932785,
0.010465135797858238,
-0.017814142629504204,
0.005762029904872179,
0.05223814398050308,
0.058809179812669754,
0.004514624830335379,
-0.045428596436977386,
0.006908749230206013,
0.011649996973574162,
0.02381180226802826,
-0.02849545143544674,
0.0019509779522195458,
-0.007993129082024097,
-0.020876914262771606,
0.005984868388622999,
-0.018965302035212517,
0.01311525795608759,
0.027021139860153198,
-0.03788980096578598,
0.017050374299287796,
0.04109160229563713,
0.02241690084338188,
0.032865218818187714,
0.0020721135661005974,
0.02809583954513073,
0.04514395073056221,
0.03755810856819153,
0.009972368367016315,
0.03339766710996628,
0.034459080547094345,
-0.03174775466322899,
-0.006005233619362116,
0.05883938446640968,
-0.020912548527121544,
0.02739199995994568,
-0.006881205830723047,
-0.0557895228266716,
0.05922245606780052,
-0.042318765074014664,
-0.011890274472534657,
0.03108665905892849,
0.040336236357688904,
0.04483223706483841,
0.04844142124056816,
-0.005037642549723387,
-0.07990460842847824,
0.06534739583730698,
0.017874984070658684,
0.019591692835092545,
0.038940779864788055,
-0.006384450942277908,
0.08777785301208496,
0.030190089717507362,
0.007375117391347885,
0.0035703976172953844,
-0.07122105360031128,
-0.05341283604502678,
-0.037145134061574936,
-0.02230948582291603,
0.06562325358390808,
-0.041580185294151306,
0.019109053537249565,
0.07921471446752548,
0.02727866731584072,
0.038951095193624496,
0.03325524181127548,
-0.02929724007844925,
0.007080661132931709,
-0.025271743535995483,
-0.06126469746232033,
0.054926030337810516,
0.015322394669055939,
-0.050292570143938065,
-0.02818739227950573,
0.024953480809926987,
-0.024669935926795006,
-0.019779622554779053,
0.05065156891942024,
-0.03585413470864296,
0.0006376548553816974,
0.04053882509469986,
0.04877282306551933,
-0.03853591904044151,
0.03580603748559952,
-0.03884899243712425,
0.016552412882447243,
-0.016031764447689056,
-0.021895121783018112,
-0.016813332214951515,
0.011009440757334232,
0.13779816031455994,
0.07154235243797302,
-0.025223391130566597,
-0.06388893723487854,
0.008104328997433186,
-0.020939001813530922,
-0.031176498159766197,
0.0005977507098577917,
-0.004565167240798473,
-0.05084808170795441,
0.01825573667883873,
-0.018643924966454506,
-0.04275345429778099,
0.044356878846883774,
-0.03972739353775978,
-0.0217558853328228,
0.0841374397277832,
-0.031205032020807266,
0.043864209204912186,
0.00235108588822186,
0.017198577523231506,
-0.008578550070524216,
-0.0156718622893095,
-0.04523167014122009,
0.002359444973990321,
0.013014961034059525,
-0.0074648321606218815,
0.02256113477051258,
-0.03406492993235588,
-0.04824023321270943,
-0.008504344150424004,
-0.06586764007806778,
0.02262376807630062,
0.06656447798013687,
0.034444116055965424,
-0.00924084521830082,
0.03515636920928955,
0.0011681807227432728,
0.013827182352542877,
0.03596111759543419,
-0.04726632311940193,
-0.02211647294461727,
-0.030659392476081848,
0.012878349050879478,
0.020059999078512192,
0.043716657906770706,
0.010428682900965214,
0.035298753529787064,
-0.00021355623903218657,
-0.0035419631749391556,
-0.002885515568777919,
0.044168803840875626,
0.018406352028250694,
-0.0033926423639059067,
-0.013707169331610203,
-0.039144743233919144,
0.05603384971618652,
-0.034925319254398346,
-0.0275821965187788,
0.016000065952539444,
-0.09137409180402756,
0.013436660170555115,
-0.06733439117670059,
-0.03993823379278183,
0.010970959439873695,
-0.01579473353922367,
0.027404414489865303,
0.028231140226125717,
-0.00930214487016201,
0.07239841669797897,
0.014680996537208557,
0.027029553428292274,
0.028406331315636635,
-0.002973079914227128,
0.051244061440229416,
-0.0010015846928581595,
0.020003514364361763,
0.034820374101400375,
-0.0029421334620565176,
-0.0018401703564450145,
-0.020861791446805,
0.02520705759525299,
-0.016134263947606087,
-0.28862109780311584,
0.035739168524742126,
0.019640862941741943,
-0.044497743248939514,
0.004834396298974752,
-0.048401545733213425,
0.01544131338596344,
-0.02413688786327839,
-0.011354588903486729,
0.038314782083034515,
-0.03669748827815056,
-0.036388419568538666,
-0.02564428374171257,
0.050225235521793365,
0.01787688583135605,
-0.013074688613414764,
-0.0034774907398968935,
-0.021205810829997063,
-0.0007281022844836116,
0.06541649252176285,
0.002141547156497836,
-0.04146106541156769,
-0.03207060694694519,
0.06198136508464813,
0.020696984604001045,
0.06523055583238602,
-0.05678779259324074,
0.023835917934775352,
-0.07681161165237427,
-0.03025146760046482,
0.009062103927135468,
0.006765543017536402,
0.010136044584214687,
-0.0012737312354147434,
-0.013312789611518383,
-0.022204289212822914,
0.03649340197443962,
0.00817696750164032,
-0.017949476838111877,
0.030420098453760147,
-0.0474267415702343,
-0.03372614458203316,
0.00962872989475727,
0.0010702426079660654,
0.07117801904678345,
0.0200943686068058,
-0.06845080852508545,
-0.02542188949882984,
-0.0463414192199707,
0.07318993657827377,
-0.04700269177556038,
-0.04032723233103752,
-0.017957165837287903,
0.03164740651845932,
0.005173993296921253,
-0.011259764432907104,
0.01420122105628252,
-0.030272014439105988,
-0.05673183500766754,
-0.05537762492895126,
-0.025146329775452614,
-0.0045245736837387085,
0.002564595080912113,
-0.04451458156108856,
-0.039479345083236694,
-0.050159525126218796,
-0.06944796442985535,
-0.012446784414350986,
0.055009979754686356,
0.00861077569425106,
-0.0459560789167881,
0.007221800275146961,
-0.015215273946523666,
-0.09829956293106079,
-0.015327511355280876,
-0.020500101149082184,
-0.02051360532641411,
0.021851150318980217,
0.009089046157896519,
0.04155416786670685,
-0.053819864988327026,
-0.0581987202167511,
0.029443861916661263,
-0.004832904785871506,
-0.0003348635509610176,
-0.012977723963558674,
0.03555119410157204,
0.017440099269151688,
-0.007994613610208035,
-0.013061339035630226,
0.054717905819416046,
-0.005271803122013807,
-0.046076271682977676,
0.010208687745034695,
-0.014727441594004631,
0.05159860476851463,
0.012036506086587906,
0.005455963779240847,
0.020499547943472862,
0.04780472442507744,
0.013569147326052189,
-0.032958902418613434,
0.012499303556978703,
-0.02961430512368679,
-0.005772070027887821,
-0.01438196562230587,
-0.0462290421128273,
-0.0008427544962614775,
0.04115113988518715,
-0.015073045156896114,
-0.024366511031985283,
-0.014425411820411682,
0.005439128261059523,
-0.024323487654328346,
0.016363954171538353,
-0.01288174744695425,
-0.002298303646966815,
0.020687280222773552,
0.0024411482736468315,
-0.021014723926782608,
-0.05227498710155487,
0.028044309467077255,
-0.04338187724351883,
-0.0158721674233675,
-0.05887863039970398,
-0.050775617361068726,
0.019661862403154373,
-0.012530860491096973,
-0.03826812654733658,
-0.01541274692863226,
-0.03610967844724655,
0.028896452859044075,
0.00507907010614872,
-0.026246337220072746,
0.06023533642292023,
-0.01863119751214981,
-0.01928677409887314,
-0.01862241141498089,
0.018089963123202324,
0.009196068160235882,
-0.006738831289112568,
-0.029616570100188255,
0.008359994739294052,
0.042875081300735474,
0.06275758892297745,
0.007523962762206793,
0.027852371335029602,
-0.014858290553092957,
0.0063631716184318066,
-0.008172107860445976,
0.023907775059342384,
-0.01222321204841137,
0.011482124216854572,
-0.018173621967434883,
0.0005174221005290747,
0.00903418380767107,
0.03578038513660431,
0.009330036118626595,
-0.026465455070137978,
-0.042583197355270386,
0.028454169631004333,
-0.03581312671303749,
0.010118121281266212,
-0.04118547961115837,
0.04017869755625725,
0.041124127805233,
-0.023033861070871353,
0.027009373530745506,
0.014734044671058655,
0.010590234771370888,
-0.005799444857984781,
-0.02051652781665325,
-0.024328505620360374,
0.03806367516517639,
-0.020142557099461555,
-0.03276095166802406,
0.0308443121612072,
0.0342351458966732,
-0.006560252048075199,
-0.003045144258067012,
-0.005342915654182434,
-0.03671702370047569,
-0.0005804200773127377,
0.037471625953912735,
0.04559069499373436,
0.06627581268548965,
-0.02419387362897396,
-0.011228197254240513,
-0.04048597812652588,
0.002593584591522813,
-0.061080776154994965,
-0.0020470269955694675,
-0.023679770529270172,
0.011772684752941132,
-0.030601399019360542,
-0.07273751497268677,
0.000892062671482563,
-0.030739210546016693,
-0.002125989645719528,
-0.009580063633620739,
-0.03412318974733353,
-0.01782967336475849,
-0.02502265013754368,
0.007721420377492905,
0.059560175985097885,
-0.07426687330007553,
-0.0015585829969495535,
-0.010747713036835194,
-0.009603263810276985,
0.007441539317369461,
0.019270051270723343,
-0.0749109610915184,
-0.017097121104598045,
-0.02495066076517105,
0.018170295283198357,
-0.07808348536491394,
-0.034717123955488205,
-0.027216259390115738,
0.017317820340394974,
-0.03914310410618782,
0.009068732149899006,
-0.03466649353504181,
0.0013357114512473345,
-0.020095283165574074,
0.005778702907264233,
0.031475916504859924,
0.002433734480291605,
0.012098056264221668,
0.03888775408267975,
-0.04680637642741203,
0.02141808532178402,
-0.008648592978715897,
0.035576723515987396,
0.03684166073799133,
-0.03122382052242756,
-0.01680203154683113,
-0.057376500219106674,
0.027636993676424026,
0.004000653512775898,
0.06537412106990814,
0.018373042345046997,
-0.004122189246118069,
-0.04318348318338394,
0.012064660899341106,
-0.017416156828403473,
0.016768570989370346,
0.00044571803300641477,
-0.02437717653810978,
-0.006430554669350386,
0.06012280285358429,
-0.003188230562955141,
0.035017747431993484,
-0.03992884233593941,
-0.037599027156829834,
0.04807969927787781,
-0.04846249520778656,
-0.020200006663799286,
-0.01508689671754837,
-0.02347436733543873,
0.030759526416659355,
0.0023532677441835403,
0.0284664798527956,
-0.027069170027971268,
0.04771742597222328,
0.014956600964069366,
0.0397830493748188,
0.01089873444288969,
0.025423835963010788,
0.022446181625127792,
-0.028813540935516357,
-0.010059777647256851,
-0.09421533346176147,
-0.033248044550418854,
0.0809488594532013,
0.007257367018610239,
-0.005588721949607134,
-0.012517337687313557,
-0.02878715842962265,
0.02044295147061348,
-0.05855109542608261,
0.0025044826325029135,
0.027383960783481598,
-0.005513268988579512,
-0.007622835226356983,
0.019378334283828735,
-0.030955037102103233,
0.036301661282777786,
0.015188709832727909,
-0.033568695187568665,
-0.03953484445810318,
-0.013993882574141026,
0.06667949259281158,
-0.007833277806639671,
0.003768418449908495,
-0.016636617481708527,
-0.0036799137014895678,
0.04735755920410156,
0.042464397847652435,
0.0458870567381382,
0.002926412271335721,
-0.02238684706389904,
0.035853367298841476,
0.03711869567632675,
-0.012153447605669498,
-0.02135629393160343,
0.024141227826476097,
0.011791245080530643,
-0.06804178655147552,
0.05303647369146347,
-0.0012296541826799512,
-0.040282730013132095,
-0.024273652583360672,
0.06991351395845413,
0.008380656130611897,
-0.03211400285363197,
-0.05615110695362091,
0.02109171450138092,
-0.02324158139526844,
-0.02517661266028881,
-0.015781257301568985,
-0.009116344153881073,
-0.058330174535512924,
0.060171764343976974,
0.010599189437925816,
-0.0030894174706190825,
0.07495739310979843,
-0.048260148614645004,
-0.009868327528238297,
0.03487725928425789,
0.10239975154399872,
0.09845477342605591,
0.0537695437669754,
0.006574076600372791,
0.05336049944162369,
-0.035676509141922,
-0.05023755133152008,
-0.0028805017936974764,
-0.018420517444610596,
-0.02256503887474537,
-0.0030387453734874725,
0.01914137229323387,
0.03938594087958336,
0.011984311044216156,
0.0712420791387558,
-0.03112110309302807,
0.012026699259877205,
0.0023209115024656057,
0.05984862148761749,
0.025995120406150818,
0.050422586500644684,
-0.0016916970489546657,
0.021084530279040337,
-0.021498553454875946,
-0.04616576060652733,
0.03488214686512947,
-0.01740982010960579,
-0.04235725477337837,
0.02991129271686077,
-0.03137896955013275,
0.011582711711525917,
0.008358755148947239,
0.06273236870765686,
0.08948012441396713,
-0.01833253540098667,
-0.0342930406332016,
-0.010318814776837826,
0.03299867734313011,
0.01023910753428936,
0.01516619324684143,
0.000967408821452409,
-0.011145162396132946,
-0.009100117720663548,
-0.020760033279657364,
0.00878198817372322,
-0.03160279616713524,
-0.02023741602897644,
0.02585780806839466,
-0.01843097247183323,
-0.04014382138848305,
0.022781318053603172,
0.008549242280423641,
-0.030465275049209595,
-0.04695838317275047,
-0.016679225489497185,
-0.036687131971120834,
-0.05334416404366493,
-0.035370439291000366,
0.010382534936070442,
0.024587327614426613,
0.003537319600582123,
-0.011006113141775131,
-0.01939188316464424,
-0.009407522156834602,
0.020022990182042122,
-0.051052339375019073,
0.013921814039349556,
0.02417796291410923,
0.023838376626372337,
-0.007135311607271433,
0.020458681508898735,
0.04240171238780022,
0.031230702996253967,
-0.00901260320097208,
0.0059369709342718124,
0.005008818581700325,
0.06761682778596878,
0.03589494526386261,
-0.001862150733359158,
-0.08799120038747787,
-0.04320531338453293,
0.019998066127300262,
-0.011503731831908226,
-0.06110198050737381,
-0.0015247417613863945,
0.026730339974164963,
0.0501272976398468,
0.02790719084441662,
0.020860111340880394,
-0.011041500605642796,
-0.04387174919247627,
-0.01430780254304409,
-0.007378751412034035,
0.005257830023765564,
0.027605442330241203,
-0.010354661382734776,
0.06626911461353302,
0.016207784414291382,
-0.03147872909903526,
-0.04118284583091736,
-0.021529536694288254,
-0.00714366789907217,
0.023921560496091843,
-0.06948809325695038,
-0.053634874522686005,
-0.03178120777010918,
-0.07748964428901672,
-0.02060396410524845,
0.03500792011618614,
-0.045012664049863815,
-0.027359845116734505,
0.026227420195937157,
-0.007010071538388729,
0.007005760446190834,
0.029418926686048508,
-0.057281918823719025,
0.01114583108574152,
-0.023994406685233116,
-0.028389105573296547,
-0.0022067339159548283,
-0.01961475983262062,
-0.03540576994419098,
0.010019409470260143,
0.0008281992049887776,
-0.03274331986904144,
-0.01585310325026512,
-0.013734923675656319,
0.04820432513952255,
0.017542773857712746,
-0.006206628866493702,
-0.03752193599939346
] | [
-0.06736910343170166,
0.018937204033136368,
-0.00906333513557911,
-0.014397760853171349,
0.04431833699345589,
-0.06173689663410187,
0.03760412707924843,
0.04254170507192612,
-0.0038706306368112564,
-0.015074518509209156,
-0.025780659168958664,
-0.04523849114775658,
0.003321791300550103,
-0.0013564620167016983,
0.06802650541067123,
0.010209454223513603,
0.06556487828493118,
-0.04960761219263077,
-0.0006921454332768917,
0.030489282682538033,
0.03904683515429497,
0.016309332102537155,
-0.033190805464982986,
-0.02139355055987835,
-0.013497644104063511,
0.028883760794997215,
0.029748253524303436,
-0.04216831550002098,
-0.01689000613987446,
-0.1853363960981369,
0.020757077261805534,
-0.010942669585347176,
0.08385694772005081,
-0.0358424186706543,
0.0017383594531565905,
0.05796287953853607,
0.025669578462839127,
0.031758397817611694,
-0.009200002998113632,
0.028539421036839485,
-0.003380172187462449,
-0.004710633773356676,
-0.05648922547698021,
-0.03046654351055622,
0.06166979670524597,
-0.014329197816550732,
-0.014639313332736492,
-0.0570392832159996,
-0.06638123095035553,
0.014970209449529648,
-0.04436076804995537,
-0.041607148945331573,
-0.005799684673547745,
-0.001647953991778195,
-0.04619652405381203,
0.015687618404626846,
0.04703660309314728,
0.08191530406475067,
0.04806781932711601,
-0.00020580159616656601,
-0.005876536481082439,
0.0038294384721666574,
-0.12797944247722626,
0.08496247977018356,
-0.023739377036690712,
0.05024409294128418,
-0.047392312437295914,
-0.027337713167071342,
-0.013562588952481747,
0.09582626819610596,
0.029330378398299217,
-0.020066017284989357,
-0.000002532311100367224,
0.05067335069179535,
-0.03222953528165817,
-0.00563084939494729,
0.04517746344208717,
-0.010922238230705261,
0.0680476725101471,
-0.034245025366544724,
-0.011441896669566631,
0.029069358482956886,
-0.00016224423598032445,
-0.04167519509792328,
0.01889580674469471,
-0.03346036374568939,
-0.005392260383814573,
0.0306460689753294,
0.008212481625378132,
0.01484544575214386,
0.03193751722574234,
0.006894936319440603,
0.008137193508446217,
0.010833519510924816,
-0.04144115746021271,
-0.036336690187454224,
-0.008336666040122509,
0.00649856124073267,
-0.029984604567289352,
0.4025908410549164,
-0.033981211483478546,
-0.020192228257656097,
0.035749003291130066,
0.010554037988185883,
0.014812251552939415,
-0.04447197914123535,
-0.005338145419955254,
-0.050352614372968674,
-0.023035891354084015,
-0.05113184452056885,
0.026223773136734962,
-0.023709628731012344,
0.033188506960868835,
-0.01335838157683611,
0.010715190321207047,
0.0002620092418510467,
0.02183682657778263,
0.03581048920750618,
0.028622951358556747,
0.010391403920948505,
-0.032501570880413055,
-0.02466069906949997,
0.015190609730780125,
-0.03597041964530945,
0.023679301142692566,
-0.0012603492941707373,
0.052989471703767776,
0.08085925877094269,
0.02276764251291752,
0.014951195567846298,
0.03746684640645981,
-0.04694095253944397,
-0.09898659586906433,
0.00471919309347868,
0.00878855213522911,
0.021447239443659782,
0.030054224655032158,
0.006641669198870659,
-0.0008319885819219053,
0.023399999365210533,
-0.00903494842350483,
-0.04166366532444954,
0.008321230299770832,
0.04385191574692726,
-0.08098994195461273,
0.14722391963005066,
-0.049110155552625656,
-0.012118136510252953,
-0.02885591983795166,
-0.028295224532485008,
0.011238088831305504,
0.036930084228515625,
-0.007908981293439865,
-0.09299316257238388,
0.023069443181157112,
0.01665624976158142,
0.11877036839723587,
-0.03732559084892273,
-0.049165524542331696,
-0.006086939014494419,
-0.0064217024482786655,
-0.04026820510625839,
-0.03881075978279114,
0.006963188759982586,
0.05732610449194908,
-0.08698659390211105,
-0.01665850728750229,
0.0010645899455994368,
0.005032894667237997,
-0.07059346139431,
0.04862360656261444,
0.01847486011683941,
-0.02431446872651577,
-0.0003629184211604297,
-0.01609732024371624,
-0.031121307983994484,
-0.023790106177330017,
0.014986986294388771,
0.0572279691696167,
-0.010581456124782562,
0.015554206445813179,
0.011717126704752445,
-0.047362033277750015,
0.003705226816236973,
-0.02772095613181591,
-0.04754839092493057,
-0.05403957888484001,
-0.025761678814888,
0.010083436034619808,
0.02899518609046936,
0.022634144872426987,
-0.02449190430343151,
-0.07680748403072357,
0.02654978632926941,
-0.05203724279999733,
0.0034020233433693647,
0.025066230446100235,
0.0007749491487629712,
-0.04658491909503937,
-0.01273375004529953,
-0.06309214979410172,
0.047067806124687195,
0.0008771176799200475,
0.014857138507068157,
-0.016589196398854256,
0.04786502197384834,
0.04594939947128296,
-0.03167532756924629,
0.08387020230293274,
0.016723692417144775,
-0.02116898074746132,
-0.039953943341970444,
-0.002799660200253129,
0.01926860772073269,
-0.021618496626615524,
-0.023110786452889442,
0.0016236965311691165,
0.018878273665905,
0.005433665122836828,
0.031702835112810135,
-0.04548272863030434,
-0.01998850889503956,
-0.03765387088060379,
-0.3739187717437744,
-0.04514877498149872,
0.026157321408391,
0.018878702074289322,
0.026659393683075905,
-0.07598229497671127,
0.02355959452688694,
-0.003935269545763731,
-0.00292929052375257,
0.01765288971364498,
0.047639455646276474,
-0.00022626561985816807,
0.035678837448358536,
-0.07711241394281387,
0.02106619067490101,
0.03953469917178154,
-0.03741524741053581,
-0.04371661692857742,
-0.03480633348226547,
0.015142606571316719,
0.011211802251636982,
0.006523676682263613,
-0.00020379104535095394,
-0.08403674513101578,
-0.0046775080263614655,
-0.04355785995721817,
0.09217941761016846,
0.00840460043400526,
0.07093895971775055,
-0.013196201995015144,
0.026936348527669907,
-0.03074965998530388,
0.010934198275208473,
-0.08469052612781525,
0.045485708862543106,
-0.024992316961288452,
-0.014479279518127441,
0.008113302290439606,
-0.04839568957686424,
-0.03486217185854912,
-0.040080152451992035,
0.04596391320228577,
-0.022226516157388687,
-0.03093748725950718,
-0.07515531033277512,
0.02469693310558796,
-0.013219169341027737,
-0.03142448514699936,
-0.03294549509882927,
0.06852979212999344,
0.00757045391947031,
0.0301592405885458,
0.022354984655976295,
0.023961059749126434,
-0.022258533164858818,
-0.017128214240074158,
-0.10604268312454224,
0.01689104363322258,
-0.015943340957164764,
-0.003454995807260275,
0.04094146937131882,
0.03401307016611099,
0.05347536876797676,
-0.06289961189031601,
-0.03366293013095856,
0.004370048176497221,
-0.020371343940496445,
-0.01737540028989315,
0.04198695719242096,
0.004810423124581575,
-0.029697714373469353,
0.14145135879516602,
-0.014901823364198208,
-0.015739254653453827,
0.04688715189695358,
0.03890315815806389,
-0.008203021250665188,
-0.012736247852444649,
0.024447573348879814,
-0.01170729286968708,
0.054436031728982925,
0.012132713571190834,
0.021590327844023705,
-0.03593508154153824,
0.0006811856292188168,
0.014799441210925579,
0.03422025218605995,
0.005558432545512915,
0.05959527567028999,
0.04963734745979309,
0.0033908337354660034,
0.031011436134576797,
0.010348786599934101,
-0.039057277143001556,
0.05034010112285614,
0.009093617089092731,
-0.25917771458625793,
0.01750265434384346,
0.05140192434191704,
0.06445396691560745,
0.020989323034882545,
0.004223522264510393,
0.013891410082578659,
-0.07089733332395554,
-0.006305266171693802,
-0.0016204721760004759,
0.002857200102880597,
0.009650971740484238,
0.01810459792613983,
-0.016508370637893677,
-0.014850468374788761,
-0.010649017989635468,
0.0916663259267807,
-0.02467109076678753,
0.012436761520802975,
-0.00158929533790797,
0.028423471376299858,
-0.022738594561815262,
0.15079516172409058,
-0.011476518586277962,
0.030333833768963814,
-0.015278186649084091,
-0.004501123912632465,
-0.017525719478726387,
0.04545418173074722,
0.0006742497789673507,
0.027104225009679794,
-0.03956496715545654,
0.06911206245422363,
-0.010623800568282604,
0.006318971514701843,
-0.01935519091784954,
-0.03604225814342499,
-0.004066582303494215,
0.024277495220303535,
-0.02037901245057583,
0.028657538816332817,
0.0029593955259770155,
-0.05772099271416664,
0.017662640661001205,
0.07794392853975296,
0.02799348533153534,
0.034541454166173935,
-0.04191044345498085,
-0.06388644874095917,
0.01623476855456829,
-0.0059409672394394875,
-0.0137782022356987,
-0.008808799088001251,
0.0010336794657632709,
0.03541072458028793,
0.06313572078943253,
0.015047509223222733,
-0.021665183827280998,
0.011526512913405895,
-0.004372541792690754,
-0.01617657206952572,
-0.028801873326301575,
0.11234075576066971,
0.04990573972463608,
0.03510332107543945
] | [
-0.010280665941536427,
0.008778275921940804,
-0.014636117033660412,
0.028464380651712418,
-0.004708350636065006,
0.002583843655884266,
-0.004166946280747652,
0.01796223223209381,
-0.00793251022696495,
-0.009833674877882004,
-0.0049703908152878284,
0.0001704469759715721,
0.006429658271372318,
-0.01091211847960949,
0.0005191678064875305,
0.00486553693190217,
-0.0045861126855015755,
0.01114631723612547,
0.02472418174147606,
-0.011738913133740425,
-0.017284438014030457,
0.05692560598254204,
0.04203059896826744,
0.005829182453453541,
-0.024435974657535553,
0.0017900849925354123,
-0.057799678295850754,
0.0039467038586735725,
0.03693307191133499,
-0.12746571004390717,
-0.02554929628968239,
-0.008396496064960957,
-0.003507751040160656,
0.03385630249977112,
-0.03981298580765724,
-0.0029413443990051746,
0.00627301586791873,
0.023504745215177536,
0.02199430763721466,
0.01917453110218048,
-0.020505104213953018,
-0.006610692013055086,
0.009044308215379715,
0.00031547024264000356,
-0.0033911557402461767,
-0.005140186753123999,
-0.05607244744896889,
-0.0005113459192216396,
-0.007470046170055866,
-0.046043287962675095,
-0.038944996893405914,
0.0030146113131195307,
-0.014688261784613132,
0.028612352907657623,
-0.023319894447922707,
0.010856345295906067,
0.011675716377794743,
0.02238268405199051,
0.006837927270680666,
-0.007028874941170216,
-0.009270565584301949,
-0.02461416833102703,
-0.02017211727797985,
-0.01989707536995411,
-0.02002527192234993,
-0.008899262174963951,
-0.03116808645427227,
0.02229868620634079,
0.018093055114150047,
0.01661226525902748,
-0.006956983357667923,
0.03331037983298302,
-0.00040112974238581955,
-0.010883712209761143,
-0.019011735916137695,
-0.007506413385272026,
0.036516107618808746,
-0.026193222030997276,
0.042087458074092865,
0.009168234653770924,
-0.03619864955544472,
0.010927059687674046,
0.023203769698739052,
0.000018258080672239885,
0.03626027703285217,
-0.05062579736113548,
-0.017152836546301842,
0.028317715972661972,
-0.04692812263965607,
-0.010142214596271515,
-0.03841417282819748,
-0.01171723660081625,
-0.00450867647305131,
-0.010514305904507637,
-0.08815382421016693,
0.021784638985991478,
-0.02110668085515499,
-0.019606323912739754,
-0.008702483028173447,
0.8615788817405701,
0.015921466052532196,
0.011362385004758835,
0.01372377760708332,
-0.010834945365786552,
0.03098916821181774,
-0.026423048228025436,
-0.011481910943984985,
-0.022888313978910446,
0.05426088720560074,
-0.02751358412206173,
-0.014938194304704666,
-0.003964973147958517,
0.013874893076717854,
0.03938397392630577,
0.017748253419995308,
0.032617777585983276,
-0.01549486257135868,
0.022851955145597458,
0.00035043543903157115,
-0.01632516458630562,
-0.009080606512725353,
0.01641739346086979,
-0.003002266166731715,
-0.008515892550349236,
-0.003731826785951853,
-0.18725641071796417,
0.0029683697503060102,
-7.422298348438426e-33,
0.0441155843436718,
-0.001129928044974804,
-0.01613466814160347,
-0.007889972999691963,
-0.011083216406404972,
0.026821358129382133,
-0.009284366853535175,
-0.0066338032484054565,
-0.018184036016464233,
-0.04424787685275078,
0.021306876093149185,
-0.0016011388506740332,
0.001653991057537496,
-0.006660075392574072,
0.035936836153268814,
0.014194197952747345,
-0.03522948920726776,
0.030343588441610336,
-0.007311865221709013,
0.018620336428284645,
0.04417326673865318,
0.019572582095861435,
0.020727062597870827,
-0.0030251743737608194,
0.01441118586808443,
-0.017550121992826462,
0.012463183142244816,
0.007015283685177565,
-0.011776704341173172,
-0.04727024957537651,
-0.05542321875691414,
0.014801315031945705,
0.027439508587121964,
-0.05223623290657997,
0.028712593019008636,
-0.05047841742634773,
-0.005689932964742184,
0.0161671731621027,
-0.014340986497700214,
-0.04262549802660942,
-0.029735589399933815,
0.011281969025731087,
0.004607386887073517,
-0.02895144745707512,
-0.027354583144187927,
0.014102974906563759,
-0.011422825045883656,
0.026807572692632675,
-0.005983154755085707,
0.031324125826358795,
-0.0007518381462432444,
-0.025374239310622215,
-0.024052273482084274,
0.01728534698486328,
-0.008023197762668133,
0.03609548136591911,
0.005725874565541744,
0.0013955315807834268,
0.021428467705845833,
-0.015245266258716583,
0.012341940775513649,
-0.02587161585688591,
0.010370662435889244,
0.021766677498817444,
-0.0033615613356232643,
-0.006954234093427658,
0.010003128089010715,
-0.007257745135575533,
0.02123512141406536,
0.016030650585889816,
-0.022198010236024857,
-0.001423695939593017,
-0.04274122416973114,
-0.022234391421079636,
-0.00003500033562886529,
0.005062318406999111,
0.00666668638586998,
-0.018144596368074417,
-0.01221511047333479,
0.058861054480075836,
0.020156385377049446,
-0.012908251956105232,
-0.0014604971511289477,
-0.02798333764076233,
-0.012151716277003288,
-0.024709295481443405,
0.040378209203481674,
-0.01137963030487299,
-0.0025480021722614765,
0.018648801371455193,
0.01751408539712429,
0.06795454770326614,
-0.026826437562704086,
-0.00036559070576913655,
0.013293812982738018,
7.135378544501937e-33,
0.016223879531025887,
0.036398593336343765,
-0.020586436614394188,
-0.012734721414744854,
-0.003678326727822423,
-0.014724268577992916,
0.04537426307797432,
0.02908681519329548,
-0.026780620217323303,
0.005617005284875631,
-0.007104869931936264,
-0.018572308123111725,
0.0008527749450877309,
-0.005758065264672041,
0.03222624957561493,
0.0014273865381255746,
-0.0030300032813102007,
0.042790502309799194,
0.01572234183549881,
0.007860998623073101,
0.014755267649888992,
0.034945640712976456,
0.008250695653259754,
0.022793713957071304,
0.008462831377983093,
0.02307123690843582,
-0.027865881100296974,
0.004389123059809208,
-0.015876909717917442,
-0.018050575628876686,
0.016616474837064743,
-0.0158668402582407,
-0.009540008381009102,
-0.012990382499992847,
0.005327868275344372,
0.03171136975288391,
0.016041146591305733,
-0.05192749947309494,
0.02374633029103279,
0.007474401034414768,
0.04920576512813568,
0.035918060690164566,
-0.027792399749159813,
0.017415957525372505,
0.0022539780475199223,
-0.023057157173752785,
-0.0076606725342571735,
-0.004727198276668787,
0.015287053771317005,
-0.013336915522813797,
-0.013988237828016281,
-0.005118438508361578,
0.010169889777898788,
0.042136386036872864,
0.008740643039345741,
-0.022306526079773903,
0.000460256589576602,
0.021743187680840492,
-0.03180242329835892,
0.01337890699505806,
-0.028939971700310707,
-0.001236311043612659,
-0.02718888409435749,
-0.04256279394030571,
-0.03564228489995003,
-0.021818283945322037,
-0.03241502493619919,
0.011007417924702168,
0.004520786460489035,
0.012044948525726795,
-0.010011352598667145,
-0.0007988121942616999,
0.008748097345232964,
0.03337844833731651,
-0.006685241591185331,
0.017688069492578506,
-0.04067521169781685,
0.014772195369005203,
-0.016005180776119232,
-0.00563462870195508,
0.010862862691283226,
0.01832054927945137,
0.02386350743472576,
0.014734744094312191,
0.01315233949571848,
0.009077729657292366,
0.003132975660264492,
0.022993482649326324,
0.018350373953580856,
-0.013378525152802467,
-0.007909758947789669,
0.010245714336633682,
0.016970263794064522,
0.011837070807814598,
0.0005186654743738472,
-1.3341476368111671e-8,
-0.048538938164711,
-0.005665623117238283,
-0.008790127001702785,
0.031885743141174316,
0.011042830534279346,
-0.007185319904237986,
-0.01811980828642845,
-0.011334897018969059,
-0.02967265248298645,
-0.00830813217908144,
0.04571398347616196,
-0.005430013407021761,
-0.0018708149436861277,
-0.014912030659615993,
0.014402751810848713,
-0.031604792922735214,
0.001259361277334392,
0.008354699239134789,
0.05149450525641441,
-0.01025357749313116,
0.05176175758242607,
-0.012652825564146042,
0.01722956821322441,
0.0131069989874959,
-0.014116629026830196,
-0.008815263397991657,
0.025096552446484566,
-0.08928597718477249,
-0.007577691227197647,
-0.00314408284612,
0.032097432762384415,
-0.0062107485719025135,
-0.04017883911728859,
0.007347949780523777,
0.011227177456021309,
0.004545333795249462,
-0.03335240110754967,
-0.013363119214773178,
0.003823773469775915,
0.016032768413424492,
-0.017723524942994118,
-0.01233676914125681,
-0.0303314421325922,
-0.030939187854528427,
-0.0070798457600176334,
-0.019709929823875427,
0.013119318522512913,
-0.04011981934309006,
0.01912037655711174,
-0.008291058242321014,
0.004701048601418734,
-0.011744290590286255,
0.000032794112485134974,
0.012624481692910194,
0.030115336179733276,
-0.006561625748872757,
0.007953588850796223,
-0.023634115234017372,
-0.039800193160772324,
0.00367932952940464,
0.031931523233652115,
0.011704857461154461,
-0.01425233669579029,
-0.014579014852643013
] | pythonnltk-naive-vs-naive-bayes-vs-decision-tree | https://markhneedham.com/blog/2015/02/24/pythonnltk-naive-vs-naive-bayes-vs-decision-tree |
false | 2015-02-15 15:56:09 | Python/scikit-learn: Calculating TF/IDF on How I met your mother transcripts | [
"python"
] | [
"Python"
] | Over the past few weeks I've been playing around with various NLP techniques to find interesting insights into How I met your mother from its transcripts and one technique that kept coming up is TF/IDF.
The http://en.wikipedia.org/wiki/Tf%E2%80%93idf[Wikipedia definition] reads like this:
____
*tf--idf*, short for *term frequency--inverse document frequency*, is a numerical statistic that is intended to reflect how important a word is to a document in a collection or corpus. It is often used as a weighting factor in information retrieval and text mining. The tf-idf value increases proportionally to the number of times a word appears in the document, but is offset by the frequency of the word in the corpus, which helps to adjust for the fact that some words appear more frequently in general.
____
I wanted to generate a http://en.wikipedia.org/wiki/Tf%E2%80%93idf[TF/IDF] representation of phrases used in the hope that it would reveal some common themes used in the show.
Python's http://scikit-learn.org/stable/[scikit-learn] library gives you two ways to generate the TF/IDF representation:
. Generate a matrix of token/phrase counts from a collection of text documents using +++<cite>+++http://scikit-learn.org/stable/modules/generated/sklearn.feature_extraction.text.CountVectorizer.html[CountVectorizer]+++</cite>+++ and feed it to +++<cite>+++http://scikit-learn.org/stable/modules/generated/sklearn.feature_extraction.text.TfidfTransformer.html#sklearn.feature_extraction.text.TfidfTransformer.fit_transform[TfidfTransformer]+++</cite>+++ to generate the TF/IDF representation.
. Feed the collection of text documents directly to +++<cite>+++http://scikit-learn.org/stable/modules/generated/sklearn.feature_extraction.text.TfidfVectorizer.html[TfidfVectorizer]+++</cite>+++ and go straight to the TF/IDF representation skipping the middle man.
I started out using the first approach and hadn't quite got it working when I realised there was a much easier way!
I have a collection of https://github.com/mneedham/neo4j-himym/blob/master/data/import/sentences.csv[sentences in a CSV file] so the first step is to convert those into a list of documents:
[source,python]
----
from collections import defaultdict
import csv
episodes = defaultdict(list)
with open("data/import/sentences.csv", "r") as sentences_file:
reader = csv.reader(sentences_file, delimiter=',')
reader.next()
for row in reader:
episodes[row[1]].append(row[4])
for episode_id, text in episodes.iteritems():
episodes[episode_id] = "".join(text)
corpus = []
for id, episode in sorted(episodes.iteritems(), key=lambda t: int(t[0])):
corpus.append(episode)
----
+++<cite>+++corpus+++</cite>+++ contains 208 entries (1 per episode), each of which is a string containing the transcript of that episode. Next it's time to train our TF/IDF model which is only a few lines of code:
[source,python]
----
from sklearn.feature_extraction.text import TfidfVectorizer
tf = TfidfVectorizer(analyzer='word', ngram_range=(1,3), min_df = 0, stop_words = 'english')
----
The most interesting parameter here is +++<cite>+++ngram_range+++</cite>+++ - we're telling it to generate 2 and 3 word phrases along with the single words from the corpus.
e.g. if we had the sentence "Python is cool" we'd end up with 6 phrases - 'Python', 'is', 'cool', 'Python is', 'Python is cool' and 'is cool'.
Let's execute the model against our corpus: ~~~python tfidf_matrix = tf.fit_transform(corpus) feature_names = tf.get_feature_names() >>> len(feature_names) 498254 >>> feature_names[50:70] [u'00 does sound', u'00 don', u'00 don buy', u'00 dressed', u'00 dressed blond', u'00 drunkenly', u'00 drunkenly slurred', u'00 fair', u'00 fair tonight', u'00 fall', u'00 fall foliage', u'00 far', u'00 far impossible', u'00 fart', u'00 fart sure', u'00 friends', u'00 friends singing', u'00 getting', u'00 getting guys', u'00 god'] ~~~
So we're got nearly 500,000 phrases and if we look at +++<cite>+++tfidf_matrix+++</cite>+++ we'd expect it to be a 208 x 498254 matrix - one row per episode, one column per phrase: ~~~python >>> tfidf_matrix <208x498254 sparse matrix of type '<type 'numpy.float64'>' with 740396 stored elements in Compressed Sparse Row format> ~~~
This is what we've got although under the covers it's using a sparse representation to save space. Let's convert the matrix to dense format to explore further and find out why: ~~~python dense = tfidf_matrix.todense() >>> len(dense[0].tolist()[0]) 498254 ~~~
What I've printed out here is the size of one row of the matrix which contains the TF/IDF score for every phrase in our corpus for the 1st episode of How I met your mother. A lot of those phrases won't have happened in the 1st episode so let's filter those out: ~~~python episode = dense[0].tolist()[0] phrase_scores = [pair for pair in zip(range(0, len(episode)), episode) if pair[1] > 0] >>> len(phrase_scores) 4823 ~~~
There are just under 5000 phrases used in this episode, roughly 1% of the phrases in the whole corpus. The sparse matrix makes a bit more sense - if scipy used a dense matrix representation there'd be 493,000 entries with no score which becomes more significant as the number of documents increases.
Next we'll sort the phrases by score in descending order to find the most interesting phrases for the first episode of How I met your mother: ~~~python >>> sorted(phrase_scores, key=lambda t: t[1] * -1)[:5] [(419207, 0.2625177493269755), (312591, 0.19571419072701732), (267538, 0.15551468983363487), (490429, 0.15227880637176266), (356632, 0.1304175242341549)] ~~~
The first value in each tuple is the phrase's position in our initial vector and also corresponds to the phrase's position in +++<cite>+++feature_names+++</cite>+++ which allows us to map the scores back to phrases. Let's look up a couple of phrases: ~~~python >>> feature_names[419207] u'ted' >>> feature_names[312591] u'olives' >>> feature_names[356632] u'robin' ~~~
Let's automate that lookup: ~~~python sorted_phrase_scores = sorted(phrase_scores, key=lambda t: t[1] * -1) for phrase, score in [(feature_names[word_id], score) for (word_id, score) in sorted_phrase_scores][:20]: print('{0: <20} \{1}'.format(phrase, score)) ted 0.262517749327 olives 0.195714190727 marshall 0.155514689834 yasmine 0.152278806372 robin 0.130417524234 barney 0.124411751867 lily 0.122924977859 signal 0.103793246466 goanna 0.0981379875009 scene 0.0953423604123 cut 0.0917336653574 narrator 0.0864622981985 flashback 0.078295921554 flashback date 0.0702825260177 ranjit 0.0693927691559 flashback date robin 0.0585687716814 ted yasmine 0.0585687716814 carl 0.0582101172888 eye patch 0.0543650529797 lebanese 0.0543650529797 ~~~
We see all the main characters names which aren't that interested - perhaps they should be part of the stop list - but 'olives' which is where the olive theory is first mentioned. I thought olives came up more often but a quick search for the term suggests it isn't mentioned again until Episode 9 in Season 9: ~~~bash $ grep -rni --color "olives" data/import/sentences.csv | cut -d, -f 2,3,4 | sort | uniq -c 16 1,1,1 3 193,9,9 ~~~
'yasmine' is also an interesting phrase in this episode but she's never mentioned again: ~~~bash $ grep -h -rni --color "yasmine" data/import/sentences.csv 49:48,1,1,1,"Barney: (Taps a woman names Yasmine) Hi, have you met Ted? (Leaves and watches from a distance)." 50:49,1,1,1,"Ted: (To Yasmine) Hi, I'm Ted." 51:50,1,1,1,Yasmine: Yasmine. 53:52,1,1,1,"Yasmine: Thanks, It's Lebanese." 65:64,1,1,1,"[Cut to the bar, Ted is chatting with Yasmine]" 67:66,1,1,1,Yasmine: So do you think you'll ever get married? 68:67,1,1,1,"Ted: Well maybe eventually. Some fall day. Possibly in Central Park. Simple ceremony, we'll write our own vows. But--eh--no DJ, people will dance. I'm not going to worry about it! Damn it, why did Marshall have to get engaged? (Yasmine laughs) Yeah, nothing hotter than a guy planning out his own imaginary wedding, huh?" 69:68,1,1,1,"Yasmine: Actually, I think it's cute." 79:78,1,1,1,"Lily: You are unbelievable, Marshall. No-(Scene splits in half and shows both Lily and Marshall on top arguing and Ted and Yasmine on the bottom mingling)" 82:81,1,1,1,Ted: (To Yasmine) you wanna go out sometime? 85:84,1,1,1,[Cut to Scene with Ted and Yasmine at bar] 86:85,1,1,1,Yasmine: I'm sorry; Carl's my boyfriend (points to bartender) ~~~
It would be interesting to filter out the phrases which don't occur in any other episode and see what insights we get from doing that. For now though we'll extract phrases for all episodes and write to CSV so we can explore more easily: ~~~python with open("data/import/tfidf_scikit.csv", "w") as file: writer = csv.writer(file, delimiter=",") writer.writerow(["EpisodeId", "Phrase", "Score"]) doc_id = 0 for doc in tfidf_matrix.todense(): print "Document %d" %(doc_id) word_id = 0 for score in doc.tolist()[0]: if score > 0: word = feature_names[word_id] writer.writerow([doc_id+1, word.encode("utf-8"), score]) word_id +=1 doc_id +=1 ~~~
And finally a quick look at the contents of the CSV: ~~~bash $ tail -n 10 data/import/tfidf_scikit.csv 208,york apparently laughs,0.012174304095213192 208,york aren,0.012174304095213192 208,york aren supposed,0.012174304095213192 208,young,0.013397275854758335 208,young ladies,0.012174304095213192 208,young ladies need,0.012174304095213192 208,young man,0.008437685963000223 208,young man game,0.012174304095213192 208,young stupid,0.011506395106658192 208,young stupid sighs,0.012174304095213192 ~~~ | null | null | [
-0.0022458520252257586,
-0.030591532588005066,
0.004309171810746193,
0.03442693129181862,
0.06020890176296234,
-0.007467061281204224,
-0.012387021444737911,
0.04439588636159897,
0.010545432567596436,
0.007669468875974417,
-0.01189280953258276,
0.01847446709871292,
-0.04846246540546417,
0.011298179626464844,
-0.04085249453783035,
0.08090920746326447,
0.0581030398607254,
0.016276568174362183,
0.013848299160599709,
-0.00007624216959811747,
0.012708352878689766,
0.03959710896015167,
0.017561106011271477,
0.027570823207497597,
0.06009986996650696,
0.0024765185080468655,
0.00668361084535718,
-0.013058978132903576,
-0.02306041680276394,
0.012346064671874046,
0.022926047444343567,
-0.04570941627025604,
-0.013545677065849304,
-0.009385481476783752,
0.02016492187976837,
-0.0020096488296985626,
-0.02327091060578823,
0.008316989988088608,
-0.00048772565787658095,
-0.005770146381109953,
-0.045625921338796616,
0.013103521429002285,
-0.007770461030304432,
-0.01515264343470335,
-0.08171430975198746,
-0.002826920012012124,
-0.07377715408802032,
0.029793811962008476,
0.0033917268738150597,
-0.00720448000356555,
-0.08084932714700699,
0.02231954224407673,
-0.025028739124536514,
-0.01981198415160179,
0.012624794617295265,
0.08945722877979279,
0.001539764809422195,
-0.06605584919452667,
0.02127198316156864,
-0.00288116536103189,
0.006819510366767645,
-0.03596121072769165,
0.00809568166732788,
0.04167937487363815,
0.01975834369659424,
-0.028224719688296318,
-0.025998825207352638,
0.041286006569862366,
-0.0385303758084774,
-0.00014442889369092882,
-0.04036540910601616,
0.03597589209675789,
-0.032815586775541306,
0.014895523898303509,
-0.014530198648571968,
-0.01993877999484539,
0.0028484303038567305,
0.07193879783153534,
0.013397976756095886,
0.0376894436776638,
-0.027527600526809692,
-0.0023257017601281404,
0.010273006744682789,
0.007936663925647736,
-0.03381204605102539,
-0.034945033490657806,
-0.043898805975914,
-0.015092989429831505,
-0.047021038830280304,
0.04411466419696808,
0.017644520848989487,
-0.05223032087087631,
0.004614586476236582,
0.006856022402644157,
-0.029302377253770828,
0.014792701229453087,
0.020087160170078278,
-0.027706703171133995,
-0.028256358578801155,
0.02061888761818409,
-0.04290333762764931,
-0.05636071786284447,
0.011571913957595825,
-0.00292975758202374,
-0.09271682798862457,
0.004080450162291527,
-0.00023628547205589712,
0.0035246312618255615,
0.012494259513914585,
0.0024427352473139763,
-0.012681334279477596,
-0.0019754834938794374,
-0.024416035041213036,
-0.021068150177598,
-0.08576414734125137,
0.06320395320653915,
0.030940264463424683,
-0.0013567254645749927,
-0.027739372104406357,
0.0045479354448616505,
0.03809594735503197,
0.006309565156698227,
-0.02715279720723629,
0.06378407776355743,
-0.026665234938263893,
0.02755565568804741,
0.009343103505671024,
0.06078268587589264,
-0.02991671673953533,
-0.055004965513944626,
-0.022451231256127357,
0.024595536291599274,
-0.010425119660794735,
0.014269239269196987,
-0.011021078564226627,
-0.03997504338622093,
-0.02346111834049225,
0.002862082328647375,
0.052979789674282074,
0.03969414904713631,
0.0029767060186713934,
-0.04619672894477844,
-0.03873728588223457,
-0.0000753265994717367,
0.024833576753735542,
-0.034090425819158554,
-0.026439351961016655,
-0.024020666256546974,
-0.010993856936693192,
0.012423008680343628,
0.011154609732329845,
0.02184956520795822,
0.0462036058306694,
-0.03574928268790245,
0.016524065285921097,
0.08718378096818924,
0.016114497557282448,
0.019524037837982178,
0.026303542777895927,
0.020464790984988213,
0.040448933839797974,
0.03497930243611336,
-0.017995506525039673,
0.020842859521508217,
0.014218627475202084,
-0.046321939677000046,
0.019184913486242294,
0.07846851646900177,
-0.018066031858325005,
0.019943010061979294,
-0.050336405634880066,
-0.03227805346250534,
0.05159185454249382,
-0.01031140424311161,
0.0052298191003501415,
0.045913487672805786,
0.040256112813949585,
0.015476809814572334,
0.03826211765408516,
0.010215054266154766,
-0.0831262469291687,
0.06677810847759247,
0.025335369631648064,
0.002229916863143444,
0.027524422854185104,
-0.023768160492181778,
0.0508340522646904,
0.032854530960321426,
0.02751193381845951,
0.02269880287349224,
-0.06840362399816513,
-0.08459880948066711,
-0.004225007724016905,
-0.011522777378559113,
0.04948006942868233,
-0.038443196564912796,
0.027272863313555717,
0.08695541322231293,
0.02708330564200878,
0.01618363708257675,
0.014267603866755962,
-0.030925149098038673,
0.021943526342511177,
-0.03072291426360607,
-0.055673692375421524,
0.035944800823926926,
0.004664669279009104,
-0.04669097438454628,
-0.02221621759235859,
-0.014153161086142063,
0.018331564962863922,
0.012890283018350601,
0.013888726010918617,
-0.03646025434136391,
0.024705318734049797,
0.022683754563331604,
0.048379428684711456,
-0.016039032489061356,
0.00952496100217104,
-0.038034629076719284,
0.03551854193210602,
-0.019109733402729034,
-0.014161616563796997,
-0.013524395413696766,
-0.028582431375980377,
0.11610196530818939,
0.052422694861888885,
-0.014418208040297031,
-0.04757135361433029,
0.041221898049116135,
-0.009906605817377567,
-0.032822385430336,
0.0224880650639534,
-0.03141115605831146,
-0.02897779457271099,
0.013399040326476097,
-0.0430581271648407,
0.005288124084472656,
0.03241194039583206,
-0.055086832493543625,
-0.018966063857078552,
0.0521634966135025,
-0.04856069013476372,
0.05200602859258652,
0.023385249078273773,
0.00862147007137537,
-0.005915619898587465,
-0.021770453080534935,
-0.029234252870082855,
-0.014807738363742828,
0.029736528173089027,
-0.008955663070082664,
0.008900029584765434,
-0.031134221702814102,
-0.017894310876727104,
-0.006523228250443935,
-0.0431554801762104,
0.053741637617349625,
0.07766426354646683,
0.05216461420059204,
-0.026076508685946465,
0.053090114146471024,
-0.009851180948317051,
-0.012768049724400043,
-0.010039116255939007,
-0.04190954566001892,
0.004163609351962805,
-0.054248109459877014,
-0.012836557812988758,
0.01136337872594595,
0.047640375792980194,
0.02458869107067585,
0.009735054336488247,
0.012758906930685043,
0.006499599199742079,
-0.0039603617042303085,
0.06260423362255096,
0.00017351681890431792,
-0.011110207997262478,
-0.024676654487848282,
-0.033271245658397675,
0.05834013968706131,
-0.00938639510422945,
-0.040818680077791214,
-0.017719177529215813,
-0.06532518565654755,
0.024717599153518677,
-0.03349198028445244,
-0.024319451302289963,
-0.009520715102553368,
-0.02544126659631729,
0.022696509957313538,
0.031554654240608215,
-0.010860410518944263,
0.0333695150911808,
0.03285755589604378,
-0.0104829678311944,
0.01605946570634842,
0.023213403299450874,
0.035079244524240494,
-0.009910021908581257,
-0.018141429871320724,
0.04917389154434204,
0.009508058428764343,
-0.013224981725215912,
-0.03052348643541336,
-0.010702651925384998,
-0.005612934939563274,
-0.28815093636512756,
0.019818473607301712,
-0.028017178177833557,
-0.03588144853711128,
0.0090507622808218,
-0.050235383212566376,
0.000602586311288178,
-0.033183712512254715,
-0.011595554649829865,
0.0268884114921093,
-0.03921119496226311,
-0.03300425037741661,
-0.013269457034766674,
0.04664312303066254,
0.014192629605531693,
-0.0013475940795615315,
-0.0037374820094555616,
-0.040266718715429306,
0.01099727489054203,
0.07620537281036377,
-0.0011597491102293134,
-0.046102333813905716,
-0.03120267577469349,
0.06746016442775726,
0.013507634401321411,
0.05648385360836983,
-0.07988253980875015,
0.016014479100704193,
-0.052187684923410416,
-0.01856355369091034,
0.016765357926487923,
-0.011264963075518608,
0.0018872596556320786,
-0.022357774898409843,
-0.016624389216303825,
-0.034000419080257416,
0.052562832832336426,
0.016734685748815536,
0.014093817211687565,
0.037207894027233124,
-0.010257584974169731,
-0.0430232509970665,
-0.004797214642167091,
-0.016835710033774376,
0.07306943833827972,
0.027473296970129013,
-0.04874739423394203,
-0.005755303427577019,
-0.05240493267774582,
0.07310394197702408,
-0.03597881272435188,
-0.01340239867568016,
-0.0465533621609211,
0.03925870731472969,
-0.001584168174304068,
-0.009346173144876957,
0.02882702834904194,
-0.014417843893170357,
-0.030766377225518227,
-0.027374643832445145,
-0.03279045969247818,
-0.030424684286117554,
0.0025395674165338278,
-0.057104192674160004,
-0.05755786970257759,
-0.045086558908224106,
-0.07250452041625977,
-0.016317877918481827,
0.050576262176036835,
0.03850284591317177,
-0.04804341495037079,
0.020023034885525703,
0.019616900011897087,
-0.10457686334848404,
-0.02481510303914547,
-0.009794440120458603,
-0.022070225328207016,
0.020648373290896416,
0.0035134986974298954,
0.04825892299413681,
-0.042507972568273544,
-0.0727766752243042,
0.01630343124270439,
0.0029416324105113745,
-0.004975111223757267,
-0.03671277314424515,
0.012070772238075733,
0.01610315963625908,
-0.005652351304888725,
-0.03387237712740898,
0.052362702786922455,
-0.017934584990143776,
-0.004448960535228252,
0.01447993703186512,
-0.009300662204623222,
0.04016999900341034,
0.005759416613727808,
0.024469571188092232,
0.02172698825597763,
0.04385584965348244,
0.017717786133289337,
-0.05202944204211235,
-0.012375917285680771,
-0.018414463847875595,
-0.02244364470243454,
-0.005051763262599707,
-0.0650675818324089,
-0.005277750547975302,
0.029227256774902344,
-0.022730670869350433,
-0.020580219104886055,
0.016987403854727745,
0.010474437847733498,
-0.02679019421339035,
0.007691000122576952,
-0.01057286188006401,
0.006270376034080982,
0.019942328333854675,
0.016911694779992104,
0.008852633647620678,
-0.0677441731095314,
0.015550174750387669,
-0.02276495471596718,
-0.0424937829375267,
-0.04825965687632561,
-0.053535182029008865,
0.015227257274091244,
-0.005437442101538181,
-0.018799850717186928,
-0.012702828273177147,
-0.01717296615242958,
-0.00041406144737266004,
0.030381349846720695,
0.018724769353866577,
0.04915423318743706,
-0.02100958116352558,
-0.036614496260881424,
-0.02117297425866127,
0.02203795500099659,
0.0021906052716076374,
-0.007502572610974312,
-0.001486835302785039,
-0.02066771499812603,
0.018037809059023857,
0.06103053689002991,
0.009134816937148571,
-0.0025231437757611275,
0.016150446608662605,
0.01595003344118595,
-0.0011926142033189535,
0.014951912686228752,
0.03875839710235596,
0.008535481989383698,
-0.024840695783495903,
-0.026787033304572105,
-0.0036163690965622663,
0.04632749408483505,
0.009997167624533176,
-0.029358714818954468,
-0.05913922190666199,
0.04089256003499031,
-0.01724207028746605,
-0.011546686291694641,
-0.035564083606004715,
0.016623331233859062,
0.041395463049411774,
-0.021533045917749405,
0.0404992438852787,
0.033004771918058395,
0.03107769414782524,
0.017313506454229355,
0.0017709842650219798,
-0.04924571514129639,
0.026400126516819,
-0.02509905770421028,
-0.034357085824012756,
0.03606456518173218,
0.019625753164291382,
0.024624433368444443,
0.05552655830979347,
-0.014297648333013058,
-0.015850631520152092,
0.012635398656129837,
0.019630547612905502,
0.06354738026857376,
0.055060096085071564,
-0.020391015335917473,
-0.02132621966302395,
-0.04024305194616318,
-0.02083330973982811,
-0.022761991247534752,
0.0008743942598812282,
-0.021913038566708565,
-0.009740537032485008,
-0.03956614434719086,
-0.07396823912858963,
0.016502447426319122,
0.015059209428727627,
-0.0038026298861950636,
0.011716260574758053,
-0.03937497362494469,
0.0012307151919230819,
-0.046866606920957565,
0.008078042417764664,
0.03280498459935188,
-0.08136299252510071,
0.014719775877892971,
-0.03195272013545036,
0.004020099062472582,
-0.0019113746238872409,
0.03349727392196655,
-0.07115388661623001,
-0.023546041920781136,
-0.05358182638883591,
0.009609876200556755,
-0.04843159019947052,
-0.029691651463508606,
-0.05919337645173073,
0.04310186952352524,
-0.015542746521532536,
0.06123453378677368,
-0.030494309961795807,
0.0032269807998090982,
-0.013815082609653473,
-0.007877368479967117,
0.031822990626096725,
-0.015941517427563667,
-0.01793874241411686,
0.017609380185604095,
-0.02377842739224434,
0.013736885040998459,
-0.029864441603422165,
0.055908553302288055,
0.027252482250332832,
-0.037819717079401016,
-0.0058063012547791,
-0.025059271603822708,
0.03530924767255783,
0.01353322435170412,
0.060148242861032486,
0.047088008373975754,
-0.01862674206495285,
-0.029969708994030952,
0.012602363713085651,
-0.032798510044813156,
0.026090377941727638,
0.03954746946692467,
-0.034209247678518295,
0.005420789122581482,
0.053510554134845734,
-0.003654592903330922,
0.03823123499751091,
-0.04233280569314957,
-0.022098204120993614,
0.051627788692712784,
-0.058279845863580704,
-0.026437457650899887,
-0.016603371128439903,
-0.04255581647157669,
0.016581159085035324,
0.017680145800113678,
0.024446899071335793,
-0.060943230986595154,
0.048582565039396286,
0.03362825885415077,
0.04143209382891655,
0.02660457044839859,
0.016189273446798325,
0.052874960005283356,
0.0006321640685200691,
-0.014594662003219128,
-0.09909029304981232,
-0.03717954084277153,
0.05681152641773224,
0.01605716533958912,
-0.0008468988817185163,
-0.00881668459624052,
-0.02661946788430214,
0.013979088515043259,
-0.0631876289844513,
-0.029472697526216507,
0.01202149223536253,
-0.011974059976637363,
0.007896075956523418,
0.012714982032775879,
-0.0397891029715538,
0.018323322758078575,
0.03260619565844536,
-0.03225214406847954,
-0.01067120861262083,
-0.01323900930583477,
0.05780748277902603,
-0.019030598923563957,
-0.037961531430482864,
-0.007518618367612362,
-0.01315954327583313,
0.06808967143297195,
0.05049188435077667,
0.017544826492667198,
0.04959966614842415,
-0.0004640572296921164,
0.03901020437479019,
0.015280337072908878,
-0.037279095500707626,
0.030766870826482773,
0.015750454738736153,
0.02213425002992153,
-0.05954032018780708,
0.07397142052650452,
0.007731813937425613,
-0.014248304069042206,
-0.04712209850549698,
0.07443539053201675,
0.03442006930708885,
-0.020331328734755516,
-0.06276435405015945,
0.032319873571395874,
-0.007853811606764793,
0.013140235096216202,
-0.01777518354356289,
-0.0056131393648684025,
-0.03623458370566368,
0.047931402921676636,
-0.009703368879854679,
-0.01564672589302063,
0.08142741769552231,
-0.03088528849184513,
-0.015910891816020012,
0.026231342926621437,
0.05950584262609482,
0.094636932015419,
0.08047092705965042,
-0.022248612716794014,
0.06905793398618698,
-0.00939385499805212,
-0.04704587906599045,
-0.004336168058216572,
0.024235989898443222,
-0.008944548666477203,
0.0011026603169739246,
0.028647881001234055,
0.06566106528043747,
0.016019349917769432,
0.05266184359788895,
-0.013117819093167782,
-0.00848501455038786,
-0.024380484595894814,
0.04637250304222107,
0.038570769131183624,
0.027413424104452133,
-0.001654790248721838,
0.015143254771828651,
-0.028018023818731308,
-0.053387485444545746,
0.058853425085544586,
0.010858720168471336,
-0.016202449798583984,
-0.013015012256801128,
-0.0219383854418993,
0.017909333109855652,
-0.003487397450953722,
0.076827771961689,
0.08332711458206177,
-0.02823164500296116,
0.0009638215997256339,
0.02410365641117096,
0.022392546758055687,
-0.008836214430630207,
0.020867452025413513,
0.007315313443541527,
0.007191063370555639,
-0.006283430848270655,
-0.03662171959877014,
-0.055832743644714355,
-0.03323123976588249,
-0.002540233777835965,
0.023016134276986122,
-0.02882763370871544,
0.014503237791359425,
0.054596949368715286,
0.007533993571996689,
-0.05213223770260811,
-0.05267230048775673,
-0.025301296263933182,
-0.05579628050327301,
-0.06805659085512161,
0.016745498403906822,
0.03594754636287689,
-0.0006865586037747562,
-0.023392925038933754,
-0.02027604728937149,
-0.024961313232779503,
0.004423833452165127,
0.04567931219935417,
-0.04289248585700989,
0.005446597933769226,
0.002220525871962309,
0.021774470806121826,
-0.00530249485746026,
0.0065065487287938595,
0.037968311458826065,
0.03684265911579132,
-0.014658264815807343,
0.004634518641978502,
0.010982605628669262,
0.04712279886007309,
0.04871180281043053,
0.006414846982806921,
-0.086013063788414,
-0.018869049847126007,
-0.012484590522944927,
-0.01178666390478611,
-0.07266675680875778,
0.005479220766574144,
0.03860032930970192,
0.033035535365343094,
0.021477827802300453,
-0.012501870281994343,
-0.024643663316965103,
-0.06635742634534836,
0.003801202867180109,
0.02239699475467205,
0.009821350686252117,
0.0490669310092926,
-0.03512786328792572,
0.07835011184215546,
0.016849322244524956,
0.004430791828781366,
-0.048167549073696136,
-0.012350969947874546,
-0.004186146892607212,
0.02822740375995636,
-0.05437174066901207,
-0.023547286167740822,
-0.04305289685726166,
-0.07648339122533798,
-0.01156520564109087,
0.010907663963735104,
-0.04498639330267906,
-0.020048486068844795,
0.03829491138458252,
-0.010719548910856247,
-0.032069116830825806,
0.019871708005666733,
-0.023673901334404945,
-0.004922002088278532,
0.0022483267821371555,
-0.011103162541985512,
-0.003821043996140361,
0.01942499540746212,
0.012317285872995853,
0.012470543384552002,
0.017999829724431038,
-0.03619204834103584,
0.01527450792491436,
-0.037337128072977066,
0.02129298262298107,
0.038171108812093735,
0.014478329569101334,
0.00607545068487525
] | [
-0.06378640979528427,
0.01818469539284706,
-0.048124492168426514,
-0.015217602252960205,
0.054887957870960236,
-0.026640906929969788,
0.004986681044101715,
0.03226160258054733,
-0.01723046787083149,
-0.03154674544930458,
-0.017918255180120468,
-0.03817330300807953,
0.0059418934397399426,
-0.019429516047239304,
0.0931212455034256,
0.010962674394249916,
0.008419090881943703,
-0.07334132492542267,
-0.01565098948776722,
0.018764065578579903,
0.05183964595198631,
-0.028072645887732506,
-0.007893086411058903,
-0.01567499153316021,
0.021218417212367058,
0.017738981172442436,
0.026678375899791718,
-0.02725466713309288,
0.00904716458171606,
-0.1800755113363266,
0.01800776831805706,
0.024209288880228996,
0.04935278743505478,
-0.001293673412874341,
0.003518776036798954,
0.0657406896352768,
-0.0070978207513689995,
0.03211723640561104,
-0.0028365934267640114,
0.046546924859285355,
-0.003546870546415448,
-0.002713321940973401,
-0.029343945905566216,
-0.04444931820034981,
0.04944352060556412,
0.009215522557497025,
-0.025249740108847618,
-0.010870596393942833,
-0.04414805397391319,
0.03318054601550102,
-0.07734912633895874,
-0.033514246344566345,
0.004362151026725769,
0.003926945850253105,
-0.01608765497803688,
0.023822184652090073,
0.060708846896886826,
0.02726731263101101,
0.004011022392660379,
-0.007978756912052631,
0.009810256771743298,
0.004076644312590361,
-0.15687325596809387,
0.11458507180213928,
0.019330915063619614,
0.04799243062734604,
-0.05055408552289009,
0.0028964297380298376,
-0.021298428997397423,
0.08980358392000198,
0.01195033360272646,
-0.0005131075158715248,
-0.014672071672976017,
0.04185393080115318,
0.020046209916472435,
0.00503659388050437,
0.018583964556455612,
-0.0077911075204610825,
0.03461102396249771,
-0.06151590496301651,
0.011103826574981213,
0.015262840315699577,
-0.03530170023441315,
-0.05070418864488602,
-0.011598494835197926,
-0.0018862123833969235,
-0.03143858164548874,
0.04595863074064255,
-0.002770498162135482,
0.013728025369346142,
0.01708304136991501,
-0.026587320491671562,
0.028786469250917435,
-0.0008347727125510573,
-0.08676960319280624,
-0.04547401890158653,
0.015817055478692055,
0.03458786383271217,
-0.018177933990955353,
0.4097745716571808,
-0.014508839696645737,
-0.03289416804909706,
0.060729220509529114,
0.02028185874223709,
-0.006138866301625967,
0.010604964569211006,
0.010207810439169407,
-0.05308444797992706,
0.02063874900341034,
-0.0280616395175457,
0.0177820585668087,
0.0020706546492874622,
0.05443945899605751,
-0.04607606679201126,
0.03024080954492092,
-0.01782243512570858,
0.055835798382759094,
0.019492996856570244,
0.020709756761789322,
-0.013650715351104736,
-0.024549970403313637,
0.01356047298759222,
-0.004446370992809534,
-0.011417457833886147,
-0.004141625948250294,
-0.025936279445886612,
0.04959959164261818,
0.05277775600552559,
0.0460069477558136,
-0.009190931916236877,
0.034629903733730316,
-0.04718882963061333,
-0.0758526474237442,
0.008657742291688919,
0.016839420422911644,
0.0028117289766669273,
0.003080806927755475,
-0.022746670991182327,
-0.0031482165213674307,
0.0480823889374733,
-0.006206759717315435,
-0.03328881785273552,
-0.015428291633725166,
0.015409976243972778,
-0.04724740982055664,
0.13826537132263184,
0.017547398805618286,
-0.024323057383298874,
-0.031010620296001434,
-0.02239265851676464,
0.007856043055653572,
0.04492107406258583,
0.006629783660173416,
-0.0678708627820015,
0.019483987241983414,
0.03773830458521843,
0.10650642961263657,
-0.024981584399938583,
-0.05363026261329651,
-0.013483737595379353,
0.00352854304946959,
-0.022554170340299606,
-0.04193206503987312,
0.04600276052951813,
0.05177319422364235,
-0.08596323430538177,
-0.05354386568069458,
0.014083154499530792,
-0.017745891585946083,
-0.09499833732843399,
0.018029965460300446,
0.003470116062089801,
-0.03713749721646309,
0.03223152831196785,
0.012205018661916256,
-0.03267707675695419,
-0.05500240623950958,
0.022914361208677292,
0.06717858463525772,
-0.0015184865333139896,
0.009185782633721828,
-0.013891973532736301,
-0.044762592762708664,
0.036718156188726425,
-0.032815538346767426,
-0.06430137157440186,
-0.0482385978102684,
-0.021886378526687622,
0.016393965110182762,
0.008621132001280785,
0.007677439600229263,
-0.0003536402073223144,
-0.05093977227807045,
0.07403483241796494,
-0.032132308930158615,
-0.015504996292293072,
0.007241524755954742,
0.011721243150532246,
-0.0332249216735363,
-0.03487128019332886,
-0.05877687782049179,
0.03174927085638046,
-0.021166691556572914,
0.023147663101553917,
-0.04168233275413513,
0.04967653378844261,
0.056274235248565674,
-0.023745477199554443,
0.09136714786291122,
0.02760225348174572,
0.0009927373612299562,
-0.010506225749850273,
0.00014888819714542478,
0.007592317648231983,
-0.011045659892261028,
-0.024888556450605392,
-0.021433478221297264,
-0.012113918550312519,
0.02339738793671131,
0.026122409850358963,
-0.0294369887560606,
-0.06786773353815079,
-0.06455769389867783,
-0.3701983094215393,
-0.03182176500558853,
-0.009314226917922497,
0.00508872652426362,
0.04372531175613403,
-0.07508116215467453,
0.012437409721314907,
-0.023699432611465454,
0.012865433469414711,
0.042911238968372345,
0.029665686190128326,
-0.005659364629536867,
-0.0191773883998394,
-0.09331698715686798,
-0.005658572074025869,
0.029712188988924026,
-0.030347058549523354,
-0.034576158970594406,
-0.002811409067362547,
0.025314567610621452,
0.014399300329387188,
0.005609082989394665,
-0.04249562323093414,
-0.04401103034615517,
-0.021197643131017685,
-0.04238482192158699,
0.09615052491426468,
0.012082671746611595,
0.07326587289571762,
-0.06522510945796967,
0.05405258759856224,
0.0017268239753320813,
0.02084244415163994,
-0.07020312547683716,
-0.008820982649922371,
-0.056328386068344116,
0.002452927641570568,
-0.00433323672041297,
-0.0052565643563866615,
-0.04060979187488556,
-0.055064279586076736,
0.018879497423768044,
-0.0384904146194458,
-0.019166117534041405,
-0.08367498964071274,
0.008117055520415306,
-0.018080908805131912,
-0.03838570788502693,
-0.006765608675777912,
0.08110418915748596,
0.012431321665644646,
0.013959853909909725,
0.0030076915863901377,
0.01185790728777647,
-0.02110961638391018,
-0.023001808673143387,
-0.10286635160446167,
0.010787729173898697,
-0.018211321905255318,
-0.04683360457420349,
0.029445402324199677,
0.05905229225754738,
0.05463305860757828,
-0.06931883841753006,
-0.01422957330942154,
0.01920943520963192,
-0.0010514799505472183,
0.011564330197870731,
0.03367127105593681,
-0.0021028390619903803,
-0.016400817781686783,
0.13388662040233612,
0.005528704263269901,
-0.003951761405915022,
0.043866220861673355,
0.039983633905649185,
-0.012208092957735062,
0.017163587734103203,
-0.00039628453669138253,
-0.005540146492421627,
0.06708251684904099,
-0.0007735025137662888,
0.034385088831186295,
-0.06208253279328346,
0.0015565798385068774,
0.03808421269059181,
0.015277090482413769,
-0.035587210208177567,
0.056938380002975464,
0.04577028751373291,
-0.011103031225502491,
0.04017521068453789,
0.01068864855915308,
-0.052888352423906326,
0.050261273980140686,
-0.0013810982927680016,
-0.2810535728931427,
0.02121010236442089,
0.05458549037575722,
0.07295328378677368,
0.005939519964158535,
0.019643634557724,
0.024363810196518898,
-0.04265504330396652,
0.002703301841393113,
0.024033159017562866,
0.011049049906432629,
0.013060645200312138,
0.014753968454897404,
-0.015024113468825817,
0.008696305565536022,
-0.030884070321917534,
0.05972326919436455,
-0.003915644716471434,
0.001909201149828732,
-0.003941942937672138,
0.010496473871171474,
-0.013349201530218124,
0.1501385122537613,
0.0034922275226563215,
0.004432211630046368,
-0.009669005870819092,
-0.0006204143282957375,
0.03263561800122261,
0.070660799741745,
0.0049069784581661224,
0.008693256415426731,
-0.0013250146294012666,
0.030193453654646873,
0.01640383154153824,
0.0139887984842062,
-0.05428491532802582,
-0.030995918437838554,
0.015627577900886536,
0.03320211544632912,
-0.01021571271121502,
0.014947669580578804,
0.021535448729991913,
-0.042107123881578445,
0.0301885437220335,
0.044165242463350296,
-0.003523217048496008,
0.03651219606399536,
-0.019828196614980698,
-0.05917293578386307,
0.004543019458651543,
-0.031859029084444046,
-0.009480010718107224,
0.002646747976541519,
0.02042299322783947,
0.032881297171115875,
0.0560666099190712,
0.048526544123888016,
-0.024579165503382683,
0.018168600276112556,
0.003367801895365119,
-0.049584612250328064,
-0.03047400526702404,
0.08071977645158768,
0.040042269974946976,
0.03613612800836563
] | [
0.03939144313335419,
0.007470428477972746,
-0.03407387062907219,
0.002208587247878313,
0.01282061729580164,
-0.009999400936067104,
-0.007501762360334396,
0.025101860985159874,
-0.006808350794017315,
0.006680230610072613,
0.018083743751049042,
-0.0035463194362819195,
0.020633665844798088,
-0.03159215301275253,
-0.0035636601969599724,
-0.011832766234874725,
-0.015145089477300644,
-0.029555460438132286,
0.02755054645240307,
-0.043696239590644836,
-0.04922596365213394,
0.0784258097410202,
0.04017800837755203,
-0.0008268494857475162,
-0.0196247361600399,
0.02758818306028843,
-0.06763993948698044,
-0.012158922851085663,
0.024253083392977715,
-0.07930198311805725,
-0.027412831783294678,
0.017690449953079224,
-0.011686060577630997,
0.02143745683133602,
-0.026699557900428772,
-0.030479690060019493,
-0.023030102252960205,
0.0429638996720314,
-0.014882334508001804,
0.030478550121188164,
-0.014760030433535576,
-0.06103801354765892,
-0.015024527907371521,
0.03222213685512543,
-0.0029114994686096907,
0.007551450747996569,
-0.011422902345657349,
-0.00680491654202342,
-0.008279841393232346,
0.0265987366437912,
-0.042305391281843185,
0.01398229319602251,
-0.019436687231063843,
0.015133073553442955,
-0.008199800737202168,
-0.008574389852583408,
0.02314341813325882,
-0.005504492204636335,
0.006783812772482634,
-0.01519092544913292,
0.01194376964122057,
-0.02929571270942688,
-0.0312558114528656,
-0.02187132090330124,
-0.004388344008475542,
-0.0030039234552532434,
-0.010213322937488556,
-0.00376087031327188,
-0.013304357416927814,
0.013259959407150745,
-0.020139824599027634,
0.025721995159983635,
-0.023736394941806793,
-0.0073759849183261395,
-0.0028654395136982203,
0.012193111702799797,
0.0020841883961111307,
-0.046986326575279236,
0.010962648317217827,
0.011502156965434551,
-0.03729087859392166,
0.02566126361489296,
0.02602865733206272,
0.0050420560874044895,
-0.00835731066763401,
-0.04735972359776497,
-0.004357595462352037,
0.0007228377507999539,
-0.0035648697521537542,
0.023875458166003227,
0.014504076912999153,
-0.004422065801918507,
0.03389107063412666,
-0.016553198918700218,
-0.10722694545984268,
0.016103457659482956,
-0.010274751111865044,
-0.0046171448193490505,
0.009653957560658455,
0.8327863216400146,
-0.0031999715138226748,
-0.006515218876302242,
0.009531211107969284,
0.0053657907992601395,
-0.048271991312503815,
-0.004440425895154476,
0.0007604942074976861,
-0.021250970661640167,
0.027024487033486366,
-0.032543182373046875,
0.032329391688108444,
0.0013207349693402648,
0.04271600767970085,
0.025996338576078415,
0.05091424286365509,
0.019572334364056587,
0.025839023292064667,
0.020946845412254333,
0.042176004499197006,
0.02282741293311119,
-0.007197085302323103,
-0.005027939099818468,
-0.0055875349789857864,
0.03327861428260803,
-0.017248235642910004,
-0.1562153846025467,
0.03128539398312569,
-6.867038163464164e-33,
0.0463448166847229,
0.01647529937326908,
0.0052320328541100025,
0.010379234328866005,
0.00655807089060545,
-0.01027039997279644,
-0.017221810296177864,
0.01054068561643362,
-0.0334806814789772,
-0.01834539696574211,
0.00951225496828556,
0.0263188648968935,
0.008385803550481796,
-0.014979880303144455,
0.005540007259696722,
-0.052358388900756836,
0.0028839902952313423,
0.04859808087348938,
0.009565968997776508,
0.016141952946782112,
0.020415237173438072,
0.028659896925091743,
0.017169294878840446,
-0.018203282728791237,
0.012955284677445889,
-0.00920471828430891,
-0.015279337763786316,
-0.031199906021356583,
-0.019378092139959335,
-0.051740989089012146,
-0.05464679375290871,
0.015414094552397728,
0.012713893316686153,
-0.04401218891143799,
0.019907595589756966,
-0.08466076850891113,
-0.017733121290802956,
0.015645623207092285,
-0.02388072945177555,
-0.07614478468894958,
-0.024401243776082993,
0.054851043969392776,
-0.022481974214315414,
-0.05846237763762474,
-0.0213730838149786,
0.031239602714776993,
0.0459415502846241,
0.013950636610388756,
-0.01670994982123375,
0.006442381534725428,
0.040816616266965866,
-0.03257973492145538,
-0.017598038539290428,
0.00014524301514029503,
0.021775448694825172,
0.03936787694692612,
0.004894241690635681,
-0.013544285669922829,
0.04232782498002052,
0.029157768934965134,
-0.016128530725836754,
-0.01312232855707407,
0.009071886539459229,
0.01558230072259903,
0.02401678077876568,
-0.014831660315394402,
0.03747135400772095,
-0.0033141546882689,
0.015229729004204273,
0.0016201831167563796,
-0.007676774635910988,
0.033793672919273376,
-0.02304460108280182,
-0.013697286136448383,
0.012869223952293396,
-0.010771071538329124,
0.0020410248544067144,
0.0124307069927454,
-0.02484719455242157,
0.03209903836250305,
-0.004002733621746302,
-0.017789771780371666,
0.013930637389421463,
-0.05321311950683594,
-0.008441159501671791,
0.004179378971457481,
0.0056515904143452644,
-0.007573949173092842,
-0.019119292497634888,
-0.021532753482460976,
0.041606321930885315,
0.02644011378288269,
-0.021742044016718864,
-0.00994864385575056,
0.0028289316687732935,
7.005986738519143e-33,
-0.007886622101068497,
-0.029700106009840965,
-0.02228355221450329,
-0.027113815769553185,
0.012750569730997086,
0.00594565412029624,
0.016281750053167343,
0.03140364959836006,
-0.04998304694890976,
0.011024956591427326,
0.011242331936955452,
-0.04506014287471771,
-0.012518554925918579,
-0.03184760734438896,
0.04587142542004585,
-0.04440314695239067,
0.012765388004481792,
0.03519720956683159,
-0.014502416364848614,
0.02789456769824028,
0.013215460814535618,
-0.02201135829091072,
0.008448271080851555,
0.017878830432891846,
0.03076338581740856,
0.03540487214922905,
-0.01648372784256935,
0.008562128990888596,
-0.020383687689900398,
-0.008936376310884953,
0.0035656036343425512,
-0.028303731232881546,
-0.0036587421782314777,
0.019665271043777466,
0.014477560296654701,
0.022530147805809975,
-0.0043111746199429035,
-0.027750909328460693,
0.019253898411989212,
0.014458762481808662,
0.042309656739234924,
0.06123437359929085,
-0.0019250811310485005,
-0.013384620659053326,
-0.04475891962647438,
0.02054874412715435,
-0.007247919216752052,
-0.014690462499856949,
0.010188383050262928,
-0.03403777256608009,
0.004119075369089842,
0.0187233854085207,
-0.005923560820519924,
0.006917542312294245,
-0.022271515801548958,
0.021256819367408752,
0.029014326632022858,
-0.010342294350266457,
-0.05047968775033951,
-0.006206356920301914,
-0.02402452938258648,
0.021824583411216736,
-0.01769796386361122,
-0.02682083286345005,
-0.025234980508685112,
-0.032131437212228775,
-0.0471126064658165,
0.02287689410150051,
-0.0007087699486874044,
0.008164821192622185,
-0.012783944606781006,
-0.029873494058847427,
0.0010802766773849726,
0.03365851193666458,
0.006097365636378527,
-0.01976359635591507,
0.022110091522336006,
-0.002317892387509346,
-0.03125232458114624,
0.017397252842783928,
0.036828357726335526,
0.033131737262010574,
0.02034800872206688,
0.009130086749792099,
-0.014062914997339249,
0.017783494666218758,
-0.0077918097376823425,
-0.01435668021440506,
0.021185252815485,
-0.0006029396317899227,
0.026617472991347313,
-0.010716958902776241,
-0.014933766797184944,
0.05258661136031151,
0.03641097620129585,
-1.2769870494366842e-8,
-0.06880398839712143,
0.002546851057559252,
-0.0032568906899541616,
0.030624080449342728,
0.012190574780106544,
0.000026178213374805637,
0.01743343286216259,
0.016661595553159714,
-0.028135860338807106,
-0.036208394914865494,
0.045010197907686234,
-0.046784378588199615,
-0.011744746938347816,
0.017422186210751534,
0.010934294201433659,
-0.0428188294172287,
0.0010746289044618607,
-0.028194572776556015,
0.033859480172395706,
-0.017145328223705292,
0.03656410425901413,
0.012762916274368763,
0.025715360417962074,
-0.01769247092306614,
-0.012097848579287529,
0.03536611795425415,
0.0056390659883618355,
-0.06323565542697906,
0.04728711396455765,
-0.0036147411447018385,
-0.003132113255560398,
-0.049940403550863266,
-0.07381018996238708,
0.015538278967142105,
0.032908953726291656,
-0.020255016162991524,
-0.020767148584127426,
-0.027203191071748734,
-0.04077988862991333,
0.024124478921294212,
0.0035401983186602592,
0.043126430362463,
-0.023870889097452164,
-0.02063889615237713,
-0.014739830046892166,
0.002785051241517067,
-0.010404440574347973,
-0.007940745912492275,
0.034049469977617264,
-0.035974275320768356,
0.04586648568511009,
0.00003787743844441138,
0.028838055208325386,
0.07056304812431335,
0.004590344615280628,
0.0053048827685415745,
0.004391905386000872,
0.002447086153551936,
-0.057244956493377686,
0.009187005460262299,
0.028077106922864914,
0.026398856192827225,
-0.018421974033117294,
0.002583533525466919
] | pythonscikit-learn-calculating-tfidf-on-how-i-met-your-mother-transcripts | https://markhneedham.com/blog/2015/02/15/pythonscikit-learn-calculating-tfidf-on-how-i-met-your-mother-transcripts |
false | 2015-02-12 23:45:03 | Python/gensim: Creating bigrams over How I met your mother transcripts | [
"python"
] | [
"Python"
] | As part of my continued playing around with How I met your mother transcripts I wanted to identify plot arcs and as a first step I wrote some code using the https://radimrehurek.com/gensim/[gensim] and http://www.nltk.org/[nltk] libraries to identify bigrams (two word phrases).
There's an http://radimrehurek.com/gensim/models/phrases.html#module-gensim.models.phrases[easy to follow tutorial in the gensim docs] showing how to go about this but I needed to do a couple of extra steps to get my text data from a CSV file into the structure gensim expects.
Let's first remind ourselves what the https://github.com/mneedham/neo4j-himym/blob/master/data/import/sentences.csv[sentences CSV file] looks like:
[source,bash]
----
$ head -n 15 data/import/sentences.csv | tail
5,1,1,1,Son: Are we being punished for something?
6,1,1,1,Narrator: No
7,1,1,1,"Daughter: Yeah, is this going to take a while?"
8,1,1,1,"Narrator: Yes. (Kids are annoyed) Twenty-five years ago, before I was dad, I had this whole other life."
9,1,1,1,"(Music Plays, Title ""How I Met Your Mother"" appears)"
10,1,1,1,"Narrator: It was way back in 2005. I was twenty-seven just starting to make it as an architect and living in New York with my friend Marshall, my best friend from college. My life was good and then Uncle Marshall went and screwed the whole thing up."
11,1,1,1,Marshall: (Opens ring) Will you marry me.
12,1,1,1,"Ted: Yes, perfect! And then you're engaged, you pop the champagne! You drink a toast! You have s*x on the kitchen floor... Don't have s*x on our kitchen floor."
13,1,1,1,"Marshall: Got it. Thanks for helping me plan this out, Ted."
14,1,1,1,"Ted: Dude, are you kidding? It's you and Lily! I've been there for all the big moments of you and Lily. The night you met. Your first date... other first things."
----
We need to transform those sentences into an array of words for each line and feed it into gensim's +++<cite>+++models.Phrase+++</cite>+++ object:
[source,python]
----
import nltk
import csv
import string
from gensim.models import Phrases
from gensim.models import Word2Vec
from nltk.corpus import stopwords
sentences = []
bigram = Phrases()
with open("data/import/sentences.csv", "r") as sentencesfile:
reader = csv.reader(sentencesfile, delimiter = ",")
reader.next()
for row in reader:
sentence = [word.decode("utf-8")
for word in nltk.word_tokenize(row[4].lower())
if word not in string.punctuation]
sentences.append(sentence)
bigram.add_vocab([sentence])
----
We're used nltk's +++<cite>+++word_tokezine+++</cite>+++ function to create our array of words and then we've got a clause to make sure we remove any words which are punctuation otherwise they will dominate our phrases.
We can take a quick peek at some of the phrases that have been created like so:
[source,python]
----
>>> list(bigram[sentences])[:5]
[[u'pilot'], [u'scene', u'one'], [u'title', u'the', u'year_2030'], [u'narrator_kids', u'i', u"'m", u'going', u'to', u'tell', u'you', u'an_incredible', u'story.', u'the', u'story', u'of', u'how', u'i', u'met_your', u'mother'], [u'son', u'are', u'we', u'being', u'punished', u'for', u'something']]
----
gensim uses an underscore character to indicate when it's joined two words together and in this sample we've got three phrases - 'narrator_kids', 'met_you' and 'an_incredible'.
We can now populate a Counter with our phrases and their counts and find out the most common phrases. One thing to note is that I've chosen to get rid of stopwords at this point rather than earlier because I didn't want to generate 'false bigrams' where there was actually a stop word sitting in between.
[source,python]
----
bigram_counter = Counter()
for key in bigram.vocab.keys():
if key not in stopwords.words("english"):
if len(key.split("_")) > 1:
bigram_counter[key] += bigram.vocab[key]
for key, counts in bigram_counter.most_common(20):
print '{0: <20} {1}'.format(key.encode("utf-8"), counts)
i_'m 4607
it_'s 4288
you_'re 2659
do_n't 2436
that_'s 2044
in_the 1696
gon_na 1576
you_know 1497
i_do 1464
this_is 1407
and_i 1389
want_to 1071
it_was 1053
on_the 1052
at_the 1035
we_'re 1033
i_was 1018
of_the 1014
ca_n't 1010
are_you 994
----
Most of the phrases aren't really that interesting and I had better luck feeding the phrases into a Word2Vec model and repeating the exercise:
[source,python]
----
bigram_model = Word2Vec(bigram[sentences], size=100)
bigram_model_counter = Counter()
for key in bigram_model.vocab.keys():
if key not in stopwords.words("english"):
if len(key.split("_")) > 1:
bigram_model_counter[key] += bigram_model.vocab[key].count
for key, counts in bigram_model_counter.most_common(50):
print '{0: <20} {1}'.format(key.encode("utf-8"), counts)
do_n't 2436
gon_na 1576
ca_n't 1010
did_n't 704
come_on 499
end_of 460
kind_of 396
from_2030 394
my_god 360
they_'re 351
'm_sorry 349
does_n't 341
end_flashback 327
all_right 308
've_been 303
'll_be 301
of_course 289
a_lot 284
right_now 279
new_york 270
look_at 265
trying_to 238
tell_me 196
a_few 195
've_got 189
wo_n't 174
so_much 172
got_ta 168
each_other 166
my_life 157
talking_about 157
talk_about 154
what_happened 151
at_least 141
oh_god 138
wan_na 129
supposed_to 126
give_me 124
last_night 121
my_dad 120
more_than 119
met_your 115
excuse_me 112
part_of 110
phone_rings 109
get_married 107
looks_like 105
'm_sorry. 104
said_`` 101
----
The first 20 phrases or so aren't particularly interesting although we do have 'new_york' in there which is good as that's where the show is set. If we go further we'll notice phrases like 'my_dad', 'get_married' and 'last_night' which may all explain interesting parts of the plot.
Having the data in the Word2Vec model allows us to do some other fun queries too. e.g.
[source,python]
----
>>> bigram_model.most_similar(['marshall', 'lily'], ['ted'], topn=10)
[(u'robin', 0.5474381446838379), (u'go_ahead', 0.5138797760009766), (u'zoey', 0.505358874797821), (u'karen', 0.48617005348205566), (u'cootes', 0.4757827818393707), (u'then', 0.45426881313323975), (u'lewis', 0.4510520100593567), (u'natalie.', 0.45070385932922363), (u'vo', 0.4189065098762512), (u'players', 0.4149518311023712)]
>>> bigram_model.similarity("ted", "robin")
0.51928683064927905
>>> bigram_model.similarity("barney", "robin")
0.62980405583219112
>>> bigram_model.most_similar(positive=['getting_married'])
[(u'so_glad', 0.780311107635498), (u'kidding', 0.7683225274085999), (u'awake', 0.7682262659072876), (u'lunch.', 0.7591195702552795), (u'ready.', 0.7372316718101501), (u'single.', 0.7350872755050659), (u'excited_about', 0.725479006767273), (u'swamped', 0.7252731323242188), (u'boyfriends', 0.7127221822738647), (u'believe_this.', 0.71015864610672)]
>>> bigram_model.most_similar(positive=['my_dad'])
[(u'my_mom', 0.7994954586029053), (u'somebody', 0.7758427262306213), (u'easier', 0.7305313944816589), (u'hot.', 0.7282992601394653), (u'pregnant.', 0.7103987336158752), (u'nobody', 0.7059557437896729), (u'himself.', 0.7046393156051636), (u'physically', 0.7044381499290466), (u'young_lady', 0.69412761926651), (u'at_bernie', 0.682607889175415)]
----
I'm not quite at the stage where I can automatically pull out the results of a gensim model and do something with it but it is helping me to see some of the main themes in the show.
Next up I'll try out trigrams and then TF/IDF over the bigrams to see which are the most important on a per episode basis. I also need to dig into Word2Vec to figure out why it comes up with different top phrases than the Phrases model. | null | null | [
-0.007348762825131416,
0.02069118805229664,
-0.01818428374826908,
0.06280981004238129,
0.09267039597034454,
0.018328478559851646,
0.010055485181510448,
0.0425930954515934,
0.024264276027679443,
0.010712148621678352,
-0.010971399955451488,
-0.0026848132256418467,
-0.046190787106752396,
0.026841411367058754,
-0.048836395144462585,
0.060485292226076126,
0.03520630672574043,
-0.011686587706208229,
0.009920027107000351,
0.00006350101466523483,
0.0060979342088103294,
0.06637648493051529,
0.03507735952734947,
0.031448956578969955,
0.019952137023210526,
0.012658970430493355,
0.004180179908871651,
0.003032633801922202,
-0.034940820187330246,
0.030994324013590813,
0.01745566911995411,
-0.03957097977399826,
0.011838242411613464,
-0.01736179180443287,
0.016853177919983864,
-0.01815430447459221,
-0.052220556885004044,
0.034879207611083984,
0.01457669585943222,
0.009327913634479046,
-0.0689367800951004,
0.02925264462828636,
-0.025688612833619118,
-0.027725430205464363,
-0.0580504909157753,
-0.011072918772697449,
-0.030470529571175575,
0.026299796998500824,
0.004341155290603638,
-0.0130564384162426,
-0.03193184360861778,
0.05326974391937256,
0.004924417939037085,
-0.014710278250277042,
-0.015634089708328247,
0.0561763159930706,
0.039476923644542694,
-0.09034013748168945,
0.029610145837068558,
0.0026749756652861834,
-0.033141497522592545,
-0.012868414632976055,
0.004686878062784672,
0.013640176504850388,
0.011410814709961414,
-0.03339611366391182,
-0.013039099983870983,
0.05816788226366043,
-0.03695761412382126,
-0.015411226078867912,
-0.028378432616591454,
0.024046815931797028,
0.001093552797101438,
-0.02430843934416771,
0.02305697090923786,
-0.04111653193831444,
0.0384402722120285,
0.05995536223053932,
-0.00837068073451519,
0.03421979025006294,
-0.06363081932067871,
0.02819998376071453,
-0.007782042492181063,
0.03264717012643814,
-0.018377626314759254,
-0.025411445647478104,
-0.04794306308031082,
0.0003669346042443067,
-0.06041475757956505,
0.034432075917720795,
-0.002764094853773713,
-0.05478931963443756,
-0.006378249730914831,
0.012848831713199615,
-0.015413947403430939,
0.0014948066091164947,
0.01687733083963394,
-0.003624123288318515,
-0.02226591855287552,
0.0005496449302881956,
-0.0682818815112114,
-0.028157740831375122,
0.026279423385858536,
0.0025352463126182556,
-0.08928985148668289,
-0.0037113686557859182,
-0.0019728466868400574,
-0.007974090054631233,
-0.003356116358190775,
-0.001737571437843144,
0.00727554876357317,
-0.00018394950893707573,
-0.01963183842599392,
0.028851842507719994,
-0.08220748603343964,
0.07776465266942978,
0.018370363861322403,
-0.026226213201880455,
-0.008071246556937695,
0.022296631708741188,
0.04905443638563156,
-0.011267679743468761,
-0.025710666552186012,
0.07858729362487793,
-0.005558661185204983,
0.021921753883361816,
-0.008174408227205276,
0.04042327031493187,
-0.029923755675554276,
-0.03392866626381874,
-0.04789438843727112,
0.03754199668765068,
-0.01469456311315298,
0.03171641007065773,
-0.000587219838052988,
-0.032247547060251236,
-0.0228644497692585,
0.014899278990924358,
0.033032793551683426,
0.05562852323055267,
-0.002807359443977475,
-0.018371617421507835,
0.011567648500204086,
0.007270175963640213,
0.029516849666833878,
-0.006094144191592932,
-0.00009736801439430565,
-0.005623411387205124,
-0.027348771691322327,
0.02448704093694687,
0.011899390257894993,
0.007316766772419214,
0.06610812991857529,
-0.030951742082834244,
0.020205339416861534,
0.0822487473487854,
0.013813162222504616,
0.06253629177808762,
-0.00047273130621761084,
0.006796428933739662,
0.05345884710550308,
0.027835680171847343,
-0.010281264781951904,
0.026269175112247467,
0.017390567809343338,
-0.017706209793686867,
0.016653835773468018,
0.058499306440353394,
-0.03771895542740822,
0.003570251166820526,
-0.057872362434864044,
-0.03324556350708008,
0.07303161919116974,
-0.02717476151883602,
-0.02678554318845272,
0.03323157876729965,
0.055857207626104355,
0.04602188244462013,
0.02469819039106369,
-0.010908788070082664,
-0.0723174512386322,
0.020537205040454865,
0.021311307325959206,
-0.0035000694915652275,
0.04855545610189438,
-0.009578973054885864,
0.052612099796533585,
0.021233128383755684,
0.004573558457195759,
0.021302424371242523,
-0.0626593679189682,
-0.08209838718175888,
-0.02931520901620388,
0.012636866420507431,
0.045008812099695206,
-0.03203707933425903,
0.024737689644098282,
0.06424817442893982,
0.016137048602104187,
0.041666869074106216,
0.00539063336327672,
-0.005214312579482794,
0.034530553966760635,
-0.019879406318068504,
-0.05038643255829811,
0.020870111882686615,
0.010488741099834442,
-0.02972549758851528,
-0.010250157676637173,
-0.0014960913686081767,
-0.030178040266036987,
-0.002022466855123639,
0.07170170545578003,
-0.039540715515613556,
0.055215101689100266,
0.015010187402367592,
0.040394511073827744,
-0.033119477331638336,
0.01666313223540783,
-0.048406146466732025,
0.00661841407418251,
-0.015575277619063854,
-0.008127816952764988,
-0.02336939610540867,
-0.009975295513868332,
0.12265212833881378,
0.04923161119222641,
-0.04093535989522934,
-0.0512506477534771,
0.04476955533027649,
-0.010372224263846874,
-0.041954405605793,
-0.00631691562011838,
-0.016824791207909584,
-0.021649669855833054,
0.023297255858778954,
-0.03404336795210838,
-0.039299968630075455,
0.016313716769218445,
-0.045921698212623596,
-0.005877162329852581,
0.05063152313232422,
-0.017385808750987053,
0.04390478879213333,
-0.00576747115701437,
-0.0033580802846699953,
-0.01093642320483923,
-0.038690973073244095,
-0.04958926513791084,
0.0030570481903851032,
-0.002860934706404805,
-0.023172101005911827,
0.051963675767183304,
-0.012114407494664192,
-0.0515277162194252,
-0.004541999660432339,
-0.06625940650701523,
0.0036596404388546944,
0.05570686236023903,
0.05320354551076889,
-0.0010048778494819999,
0.05345403403043747,
-0.007794209290295839,
0.008359139785170555,
-0.02779267355799675,
-0.039609480649232864,
-0.034266892820596695,
-0.04191646724939346,
-0.004713812377303839,
0.01722567155957222,
0.028771977871656418,
0.007557063829153776,
-0.010177147574722767,
0.007476617582142353,
0.027956202626228333,
-0.01363317295908928,
0.029545871540904045,
-0.027982836589217186,
-0.001961258938536048,
-0.014181707054376602,
-0.03381459042429924,
0.04340580478310585,
-0.048973385244607925,
-0.007676741573959589,
0.0037145984824746847,
-0.06833422929048538,
0.026367580518126488,
-0.035234954208135605,
-0.013359082862734795,
-0.001315626665018499,
-0.006708805449306965,
0.04216887429356575,
0.0010864048963412642,
0.013103123754262924,
0.05563363805413246,
0.0016530671855434775,
0.02789657562971115,
0.007904354482889175,
-0.007646050304174423,
0.033011600375175476,
-0.012798868119716644,
0.007081084419041872,
0.04160423204302788,
0.006953171920031309,
-0.004178454168140888,
-0.02142508327960968,
0.025236841291189194,
-0.04544603452086449,
-0.2882218360900879,
0.025479355826973915,
-0.02336227521300316,
-0.03211821988224983,
0.056824468076229095,
-0.0341886542737484,
0.016619369387626648,
-0.043736714869737625,
-0.0031421645544469357,
0.03762068599462509,
-0.02214839681982994,
-0.05710969492793083,
-0.027605628594756126,
0.040886227041482925,
0.013604593463242054,
-0.012068879790604115,
-0.047554511576890945,
-0.05649595335125923,
-0.010219262912869453,
0.047145407646894455,
0.02659308724105358,
-0.057790275663137436,
-0.016222162172198296,
0.06618522107601166,
0.03719348832964897,
0.06992489099502563,
-0.06832285225391388,
0.0341719314455986,
-0.042884159833192825,
-0.007919088006019592,
-0.00906289555132389,
-0.038628362119197845,
0.023075701668858528,
-0.02133968099951744,
-0.010590151883661747,
-0.003851162036880851,
0.036773886531591415,
0.01106339879333973,
0.007075310684740543,
0.024248909205198288,
-0.000359697500243783,
-0.02639523334801197,
-0.006041062530130148,
0.007048712112009525,
0.08821599185466766,
0.005452297627925873,
-0.03641129657626152,
-0.03677767887711525,
-0.024550920352339745,
0.06586015969514847,
-0.022245194762945175,
-0.00020099514222238213,
0.01674407534301281,
0.0502597838640213,
-0.014700009487569332,
0.005744219291955233,
0.02503451704978943,
-0.006045577581971884,
-0.05514051392674446,
-0.04131273925304413,
0.015084297396242619,
-0.0108770951628685,
0.005916562397032976,
-0.042256396263837814,
-0.023277999833226204,
-0.08201822638511658,
-0.05399138107895851,
-0.004131246358156204,
0.051916588097810745,
0.0379776805639267,
-0.05011677369475365,
-0.015062274411320686,
0.027995996177196503,
-0.10929688066244125,
-0.034662336111068726,
0.003291795030236244,
-0.026035932824015617,
0.020834874361753464,
0.021883811801671982,
0.025071054697036743,
-0.04242886230349541,
-0.047051671892404556,
0.03894377499818802,
-0.0033374466001987457,
0.009054119698703289,
-0.021383000537753105,
0.012525460682809353,
-0.008623182773590088,
-0.02558591589331627,
-0.021968232467770576,
0.04082711040973663,
-0.01831798255443573,
-0.03679054230451584,
-0.015473723411560059,
0.014614425599575043,
0.017972107976675034,
0.00013232885976321995,
0.03848457708954811,
0.027238575741648674,
0.06293363869190216,
0.020246947184205055,
-0.05140708014369011,
0.022653957828879356,
-0.011988246813416481,
-0.015934620052576065,
-0.031327925622463226,
-0.04051632061600685,
0.011665180325508118,
0.01313544437289238,
-0.000667896238155663,
-0.017936425283551216,
-0.014292382635176182,
0.008041439577937126,
-0.04920879751443863,
-0.003112452570348978,
-0.014139114879071712,
0.02914450690150261,
0.04750625416636467,
0.02469882182776928,
-0.008680932223796844,
-0.07919050753116608,
0.009000752121210098,
-0.022046426311135292,
-0.002361118094995618,
-0.04237711802124977,
-0.05731765180826187,
0.026074228808283806,
-0.008482330478727818,
-0.006253344006836414,
0.008652685210108757,
-0.024712136015295982,
0.006103458348661661,
0.012337475083768368,
-0.04144955426454544,
0.052340541034936905,
-0.018435519188642502,
-0.04760231077671051,
-0.03300197422504425,
-0.010460210032761097,
0.006313689984381199,
0.00847319420427084,
-0.03543618321418762,
-0.004448112100362778,
0.015336830168962479,
0.042908817529678345,
-0.03169771283864975,
0.039995644241571426,
-0.005498562008142471,
0.014187968336045742,
-0.026201127097010612,
0.02357250452041626,
-0.01974346861243248,
0.05057314783334732,
-0.042427148669958115,
-0.013924057595431805,
-0.02061637118458748,
0.01026461087167263,
-0.009612341411411762,
-0.01974569447338581,
-0.02464749664068222,
0.04307945817708969,
-0.04505353793501854,
-0.015805330127477646,
-0.029554132372140884,
-0.015436277724802494,
0.06078118458390236,
0.001686504459939897,
0.028598830103874207,
-0.00004956640987074934,
0.032446689903736115,
0.006425134837627411,
0.027316054329276085,
-0.04101520776748657,
-0.0008668762166053057,
-0.006430881097912788,
-0.018440401181578636,
0.03564295545220375,
0.002435739617794752,
0.03755445405840874,
0.0242837555706501,
-0.0232401005923748,
-0.04258878901600838,
0.013967475853860378,
0.04976046830415726,
0.05790647864341736,
0.056567031890153885,
-0.01286083273589611,
0.022088732570409775,
-0.05598646029829979,
-0.03436795622110367,
-0.04041212424635887,
-0.018984314054250717,
-0.025547076016664505,
-0.023132706061005592,
-0.0469624400138855,
-0.06272095441818237,
0.01347978226840496,
0.018158961087465286,
0.010818925686180592,
0.017613079398870468,
-0.0064573222771286964,
0.026749366894364357,
-0.03347180038690567,
0.013860897161066532,
0.08769865334033966,
-0.07161882519721985,
0.003256059717386961,
-0.014780593104660511,
0.033591583371162415,
0.006654719356447458,
0.04121948778629303,
-0.058650512248277664,
-0.02482670173048973,
-0.05826534703373909,
0.002794469939544797,
-0.057427939027547836,
-0.03501168265938759,
-0.0471070297062397,
0.031942497938871384,
-0.004603145644068718,
-0.009893132373690605,
-0.03885093331336975,
0.01956089586019516,
0.004754055291414261,
-0.02869645692408085,
0.007788954768329859,
-0.029640449211001396,
-0.022957049310207367,
0.011637195944786072,
-0.02672448381781578,
0.03060781955718994,
-0.0026103751733899117,
0.03455299884080887,
0.010602526366710663,
-0.028507962822914124,
-0.06089713051915169,
-0.018816540017724037,
0.0065283942967653275,
0.01118929497897625,
0.07663685828447342,
0.05345515161752701,
-0.009301535785198212,
-0.0483989417552948,
0.03471161052584648,
0.00009486305498285219,
0.03290579840540886,
0.03544705733656883,
-0.010011657141149044,
0.01814511977136135,
0.02693028375506401,
0.014427694492042065,
0.011696538887917995,
-0.03455192968249321,
-0.034025922417640686,
0.030559470877051353,
-0.06632919609546661,
-0.03250228241086006,
-0.010655464604496956,
-0.04246700182557106,
0.018562454730272293,
-0.00027707620756700635,
0.0504843071103096,
-0.057714421302080154,
0.05113565921783447,
0.024037033319473267,
0.036106567829847336,
0.048489440232515335,
0.03286874294281006,
0.023871583864092827,
-0.017739344388246536,
0.0003510600363370031,
-0.08427809923887253,
-0.0028029303066432476,
0.04205717891454697,
-0.012330684810876846,
-0.009631624445319176,
0.007468060590326786,
-0.022641358897089958,
0.0434386320412159,
-0.06687869876623154,
-0.025254132226109505,
0.0508018359541893,
-0.027661748230457306,
-0.014954394660890102,
0.023377973586320877,
-0.05034166947007179,
0.023408984765410423,
0.034945107996463776,
-0.04779931157827377,
0.0039993044920265675,
-0.006700950209051371,
0.059494443237781525,
0.0013691093772649765,
0.012577556073665619,
-0.0011276226723566651,
-0.038486361503601074,
0.07203036546707153,
0.0201828945428133,
0.05783331021666527,
0.06387857347726822,
-0.0077643985860049725,
0.014292734675109386,
0.022529946640133858,
-0.0028389915823936462,
0.006559284869581461,
0.021190691739320755,
-0.012622239999473095,
-0.06996568292379379,
0.027274547144770622,
0.006195669528096914,
-0.017508013173937798,
-0.054960254579782486,
0.0922020673751831,
0.03265010565519333,
-0.025254670530557632,
-0.04639735445380211,
0.03719683736562729,
-0.026851380243897438,
-0.0013233751524239779,
-0.03157632052898407,
-0.011808699928224087,
-0.04285154491662979,
0.057700954377651215,
-0.014615844935178757,
0.008084047585725784,
0.061379916965961456,
-0.022372331470251083,
-0.0010154462652280927,
-0.008516027592122555,
0.08148577809333801,
0.10221049934625626,
0.06565794348716736,
0.00583549914881587,
0.058484386652708054,
-0.034277014434337616,
-0.05043018236756325,
-0.027793580666184425,
0.013727295212447643,
0.005249663256108761,
-0.011993502266705036,
0.006546033546328545,
0.05252266302704811,
-0.03128444775938988,
0.06042913347482681,
-0.012340122833848,
-0.012786034494638443,
0.0020641374867409468,
0.05832908675074577,
0.02268027700483799,
0.028575412929058075,
0.005947624333202839,
0.02189035527408123,
0.0005197030259296298,
-0.05685190111398697,
0.05609731376171112,
-0.012295407243072987,
-0.04507898539304733,
0.02543432079255581,
-0.011469702236354351,
0.04310329258441925,
-0.015155674889683723,
0.03584607318043709,
0.06559966504573822,
0.00539722666144371,
0.009634919464588165,
-0.004752473905682564,
0.03782905638217926,
0.004168394487351179,
0.043553296476602554,
-0.06127389892935753,
-0.01880691759288311,
-0.0052002896554768085,
-0.0517587773501873,
-0.032054152339696884,
-0.03784966468811035,
-0.020680343732237816,
0.020383039489388466,
-0.0025344218593090773,
0.006941328290849924,
0.013211113400757313,
0.025040552020072937,
-0.03661360219120979,
-0.054916080087423325,
-0.049094442278146744,
-0.07048020511865616,
-0.052903007715940475,
-0.009794922545552254,
-0.001622730866074562,
0.007480564061552286,
-0.04281308129429817,
0.02060576342046261,
-0.040089257061481476,
-0.022355590015649796,
0.033317647874355316,
-0.032184798270463943,
-0.028937485069036484,
0.01304964255541563,
0.014227643609046936,
0.012712898664176464,
-0.00016013139975257218,
0.030399471521377563,
0.03677099943161011,
-0.020831642672419548,
-0.014899658039212227,
0.02172313630580902,
0.047467660158872604,
0.01825212873518467,
0.019509755074977875,
-0.07844578474760056,
0.009326198138296604,
0.020871136337518692,
-0.02639766037464142,
-0.07689522951841354,
-0.003902516094967723,
0.020408447831869125,
0.02633519284427166,
0.038255393505096436,
0.004530587233603001,
0.004891944117844105,
-0.0500008799135685,
0.0038729768712073565,
0.01330589596182108,
0.02034563012421131,
0.058105189353227615,
-0.046720631420612335,
0.0912465900182724,
0.006085921544581652,
-0.025729941204190254,
-0.03634096309542656,
-0.01386367715895176,
-0.009557760320603848,
0.019312556833028793,
-0.029678992927074432,
-0.028314150869846344,
-0.010120395570993423,
-0.07991243153810501,
-0.01271546259522438,
0.023213542997837067,
-0.03907254338264465,
-0.015600238926708698,
0.031201373785734177,
-0.00005728574251406826,
-0.03746467083692551,
0.03540746867656708,
-0.05406827852129936,
0.0167558453977108,
-0.0196742732077837,
-0.01101253367960453,
-0.010882565751671791,
-0.003165312111377716,
0.00009941104508470744,
0.002312977099791169,
-0.00847790390253067,
-0.028734924271702766,
-0.0007057799957692623,
-0.026158086955547333,
0.027941569685935974,
0.015324351377785206,
0.011730868369340897,
0.008494594134390354
] | [
-0.056835658848285675,
0.0076039754785597324,
-0.007899357005953789,
-0.04152997210621834,
0.026937127113342285,
-0.02631194330751896,
-0.032555654644966125,
0.013872341252863407,
0.001100609079003334,
-0.04401375725865364,
0.0032177800312638283,
-0.009854071773588657,
0.026836246252059937,
-0.019682638347148895,
0.0709134191274643,
0.030974077060818672,
0.00738418148830533,
-0.03223399072885513,
-0.03526706621050835,
0.04232291504740715,
-0.00028998887864872813,
-0.04387710243463516,
-0.030125029385089874,
0.0018498953431844711,
0.006054865196347237,
0.017338331788778305,
0.044569458812475204,
-0.026213956996798515,
-0.012968728318810463,
-0.20508216321468353,
0.018258418887853622,
0.04166575148701668,
0.05747012048959732,
0.0036791537422686815,
0.007361165713518858,
0.026251252740621567,
0.0005953263607807457,
0.013488092459738255,
-0.010676953941583633,
0.031759120523929596,
-0.0000526213480043225,
-0.00018460070714354515,
-0.018742308020591736,
-0.04116884246468544,
0.04396255314350128,
0.006579393520951271,
0.0021106242202222347,
0.010398346930742264,
0.01705072820186615,
0.012011239305138588,
-0.07737970352172852,
-0.011354181915521622,
-0.015301926992833614,
-0.00630594976246357,
-0.022304821759462357,
0.02987513318657875,
0.07973434776067734,
0.01956936903297901,
0.017091169953346252,
0.02369876578450203,
-0.005258744582533836,
0.00980228278785944,
-0.14901480078697205,
0.0986742302775383,
0.02191639319062233,
0.05461602658033371,
-0.03347856551408768,
-0.033698804676532745,
-0.00048218207666650414,
0.09691692888736725,
-0.020614629611372948,
-0.01674392633140087,
-0.006172732915729284,
0.04917485639452934,
-0.00259930151514709,
-0.005573697853833437,
0.010408743284642696,
-0.0021676707547158003,
0.017081651836633682,
-0.04643898457288742,
-0.059078242629766464,
0.010295026004314423,
-0.03306501731276512,
-0.012765848077833652,
-0.048856671899557114,
0.01625382900238037,
-0.032456766813993454,
0.026279738172888756,
-0.011947874911129475,
0.017138762399554253,
0.04357166960835457,
-0.023693589493632317,
0.00764653692021966,
0.016008000820875168,
-0.11342397332191467,
-0.030222967267036438,
0.00020725317881442606,
0.005267998203635216,
0.00011986662866547704,
0.44433069229125977,
-0.019296616315841675,
-0.04361198469996452,
0.07242399454116821,
0.03173620626330376,
-0.01920023001730442,
0.008435731753706932,
-0.009446547366678715,
-0.0879463255405426,
0.02461395598948002,
-0.026869487017393112,
0.01629154197871685,
-0.009436368942260742,
0.050696879625320435,
-0.056333865970373154,
0.050106972455978394,
0.01153393555432558,
0.0530322827398777,
-0.01205410249531269,
-0.0023685740306973457,
-0.042871586978435516,
0.00008208907092921436,
0.025562016293406487,
-0.016304440796375275,
-0.005623278208076954,
0.002677712356671691,
-0.10071541368961334,
0.06192180514335632,
0.05154339596629143,
0.035969771444797516,
-0.007798175327479839,
0.03378865867853165,
-0.008660636842250824,
-0.06483769416809082,
0.02438458986580372,
-0.00602581026032567,
-0.0041605038568377495,
0.022072702646255493,
-0.026043662801384926,
-0.0008122342405840755,
-0.021475398913025856,
-0.007248632609844208,
-0.0701831579208374,
-0.02449052594602108,
0.024004152044653893,
-0.029596442356705666,
0.13115164637565613,
0.0217911209911108,
-0.011891036294400692,
-0.006081051658838987,
-0.003719606436789036,
0.017667856067419052,
0.03666219487786293,
0.03562091663479805,
-0.08648952096700668,
0.016379911452531815,
0.02554226480424404,
0.07865314185619354,
-0.00600474001839757,
-0.0783529132604599,
0.007968864403665066,
0.025987565517425537,
-0.02402307465672493,
-0.02403092198073864,
0.019102251157164574,
0.05325557664036751,
-0.09107720851898193,
-0.02798953279852867,
0.025343462824821472,
0.06365979462862015,
-0.07665175199508667,
0.036869827657938004,
0.007282293401658535,
-0.048329565674066544,
0.024578681215643883,
0.015592584386467934,
-0.020361866801977158,
-0.03505447506904602,
0.01332495454698801,
0.041121918708086014,
0.03917678818106651,
-0.043619316071271896,
-0.034929364919662476,
-0.04720228537917137,
0.04368894547224045,
-0.05431079491972923,
-0.11555245518684387,
-0.033059731125831604,
-0.019235648214817047,
-0.019302887842059135,
-0.01906982995569706,
0.022365422919392586,
0.015576976351439953,
-0.03625877946615219,
0.07310636341571808,
-0.031756747514009476,
-0.024104787036776543,
0.024965865537524223,
0.003778530051931739,
-0.01352608297020197,
-0.061133477836847305,
-0.057460248470306396,
-0.007187000475823879,
-0.038697075098752975,
0.02850254997611046,
-0.06867827475070953,
0.03421708196401596,
0.04780734330415726,
-0.04746684432029724,
0.10734030604362488,
0.05008107051253319,
-0.00707083847373724,
-0.028239015489816666,
0.002948214067146182,
0.024555733427405357,
-0.016872260719537735,
-0.0009008003980852664,
0.010454561561346054,
-0.02348707988858223,
0.02697497420012951,
0.03447423875331879,
-0.016559474170207977,
-0.03926989063620567,
-0.03620225563645363,
-0.3381549119949341,
-0.02893737517297268,
-0.02605217508971691,
-0.000593642529565841,
-0.0036028744652867317,
-0.07524629682302475,
0.027992384508252144,
-0.030168820172548294,
0.012794289737939835,
0.0021293889731168747,
0.004383091349154711,
-0.025734959170222282,
0.00877206027507782,
-0.0603521429002285,
0.0045668515376746655,
0.012235785834491253,
-0.0385909266769886,
0.021851984784007072,
-0.018795255571603775,
0.04597574472427368,
0.004444011487066746,
-0.024283193051815033,
-0.027232496067881584,
-0.03021872043609619,
-0.02701997384428978,
-0.050124287605285645,
0.11369743198156357,
0.05853399261832237,
0.0467844121158123,
-0.03550827130675316,
0.05889191851019859,
0.01029280573129654,
0.03899962455034256,
-0.07470705360174179,
0.01338307186961174,
-0.005645387805998325,
0.004576773848384619,
-0.005293171852827072,
0.006790385115891695,
-0.0357733890414238,
-0.07918112725019455,
0.01582159847021103,
-0.02395668998360634,
-0.0039042027201503515,
-0.0798640176653862,
0.007020797114819288,
-0.014717565849423409,
-0.026368824765086174,
0.012034052982926369,
0.0916905403137207,
0.004752260632812977,
-0.014992102980613708,
0.00821843184530735,
-0.00907597690820694,
-0.018150683492422104,
-0.04034141078591347,
-0.07345480471849442,
0.009239300154149532,
-0.018812354654073715,
-0.0094834603369236,
0.020507490262389183,
0.0914858728647232,
0.02704736962914467,
-0.07516496628522873,
-0.008971979841589928,
-0.0017960561672225595,
-0.016100682318210602,
0.005455982871353626,
0.004880866035819054,
-0.003273495240136981,
-0.01753661036491394,
0.05675506964325905,
-0.02966940589249134,
-0.004079768434166908,
-0.0024075128603726625,
0.060753755271434784,
0.01392101589590311,
-0.002748522674664855,
-0.012999310158193111,
-0.020713336765766144,
0.05107636749744415,
-0.04562482237815857,
0.01318157184869051,
-0.035154879093170166,
0.0007959301001392305,
0.030398553237318993,
-0.003108823439106345,
-0.03556167706847191,
0.08232071250677109,
0.03193044289946556,
-0.012571970000863075,
0.03288199007511139,
-0.0016322878655046225,
-0.02429294027388096,
0.050598256289958954,
-0.008678393438458443,
-0.2586190402507782,
0.03623339161276817,
0.016130052506923676,
0.06524807959794998,
-0.00019991339650005102,
-0.010129035450518131,
0.029164614155888557,
-0.028897147625684738,
0.0460599884390831,
0.020750246942043304,
0.04480331018567085,
0.027723925188183784,
0.01897738128900528,
-0.008518538437783718,
-0.002768038073554635,
0.0027253294829279184,
0.05001884698867798,
0.04513674974441528,
0.008927110582590103,
0.02230432629585266,
0.024836573749780655,
-0.01595267280936241,
0.14540277421474457,
0.03673980012536049,
-0.0001677057589404285,
0.017985470592975616,
0.017130015417933464,
0.030547158792614937,
0.04079055413603783,
0.01694459095597267,
-0.009505708701908588,
0.018852226436138153,
-0.009949816390872002,
0.032501112669706345,
0.05106307938694954,
-0.061268534511327744,
-0.029914656654000282,
0.027051983401179314,
0.03844113275408745,
0.0203106626868248,
-0.008475439622998238,
0.0178062804043293,
-0.045343752950429916,
0.03251836448907852,
0.054683901369571686,
0.021201934665441513,
0.027999117970466614,
0.01516333594918251,
-0.05666697025299072,
0.006967033725231886,
-0.03841663524508476,
-0.03059154562652111,
0.016556477174162865,
0.0013018709141761065,
0.024472001940011978,
0.06896646320819855,
0.004690555855631828,
-0.0028778521809726954,
0.03086959198117256,
0.012600911781191826,
-0.04185296222567558,
-0.03615325316786766,
0.12005747854709625,
0.028204938396811485,
-0.0037993646692484617
] | [
0.03108782321214676,
0.024566112086176872,
-0.009475882165133953,
0.008884262293577194,
-0.0021728863939642906,
-0.005894120316952467,
-0.006865010131150484,
0.0208942499011755,
0.027379006147384644,
-0.0006812986102886498,
0.01686326041817665,
0.002095694188028574,
0.0066567352041602135,
-0.040970250964164734,
0.008460300043225288,
-0.02775450423359871,
0.01656520925462246,
-0.009705174714326859,
0.026232685893774033,
-0.0005287565873004496,
-0.0103809405118227,
0.0267398152500391,
0.020961754024028778,
-0.0159040205180645,
-0.005309022963047028,
0.03649507090449333,
-0.0330161526799202,
0.0177337396889925,
0.030884236097335815,
-0.12773047387599945,
-0.013019543141126633,
-0.0005323472432792187,
0.001163845183327794,
0.03921767696738243,
-0.006990619469434023,
0.011925865896046162,
0.0022091111168265343,
0.02780119888484478,
-0.006942277774214745,
-0.015556121245026588,
-0.0031137980986386538,
0.003831562353298068,
0.022349921986460686,
-0.010712338611483574,
0.006229078397154808,
-0.03986821696162224,
-0.04430394247174263,
-0.024226117879152298,
-0.02242078073322773,
0.014580164104700089,
-0.050804946571588516,
0.015311943367123604,
0.00002431031498417724,
0.03884291648864746,
0.009527633897960186,
0.015808619558811188,
0.024016989395022392,
-0.026478484272956848,
0.01706758327782154,
-0.030127722769975662,
-0.027230892330408096,
0.0006382811698131263,
-0.05716688185930252,
-0.028287161141633987,
-0.020532982423901558,
-0.007581157609820366,
-0.008183134719729424,
0.008872785605490208,
-0.020302992314100266,
0.0006316631915979087,
-0.02113458327949047,
0.01851332001388073,
-0.016911327838897705,
-0.007885723374783993,
-0.020950952544808388,
0.002312315395101905,
0.012565171346068382,
-0.04503749683499336,
0.0012695170007646084,
-0.021795092150568962,
-0.0465339794754982,
0.02340763993561268,
0.033720679581165314,
-0.017766963690519333,
-0.04003925621509552,
0.0029942234978079796,
-0.006862610578536987,
0.010801060125231743,
0.018942954018712044,
-0.01322272326797247,
-0.01966915838420391,
-0.0010368787916377187,
0.015260213986039162,
0.012909951619803905,
-0.10252252966165543,
0.001342870993539691,
-0.015405143611133099,
-0.032403890043497086,
-0.003348339581862092,
0.864375114440918,
-0.011697104200720787,
0.0340300016105175,
0.022715410217642784,
-0.002204402582719922,
-0.026809239760041237,
0.0046196551993489265,
0.01135579776018858,
0.010533217340707779,
0.026093361899256706,
-0.053480084985494614,
0.006954023148864508,
0.015433602035045624,
0.01073997002094984,
0.02581659145653248,
0.04188957437872887,
0.019245639443397522,
0.02148391120135784,
-0.011088437400758266,
0.0022379669826477766,
0.015566783025860786,
0.008310974575579166,
-0.006700035184621811,
-0.019744588062167168,
0.009603957645595074,
-0.01683344505727291,
-0.18553131818771362,
-0.006280986592173576,
-7.116898303939072e-33,
0.00615199189633131,
0.009825073182582855,
-0.001930123195052147,
0.003599843941628933,
0.02592264860868454,
0.030902089551091194,
-0.010742498561739922,
0.028834175318479538,
-0.003615639405325055,
-0.006081108469516039,
0.005821987520903349,
-0.012346787378191948,
-0.01709304191172123,
-0.03843076527118683,
0.04417567327618599,
0.009841933846473694,
-0.01370912417769432,
0.027094999328255653,
-0.012965782545506954,
0.017210761085152626,
0.009262754581868649,
0.042723316699266434,
0.02444477751851082,
-0.0087368069216609,
0.02081182599067688,
0.015174628235399723,
0.038044340908527374,
-0.004156916867941618,
-0.015190452337265015,
-0.04732026159763336,
-0.06290015578269958,
0.025197330862283707,
0.01823754794895649,
-0.036332085728645325,
0.023160595446825027,
-0.04272421821951866,
-0.02756885066628456,
-0.003801781916990876,
-0.00390708027407527,
-0.029099050909280777,
-0.06235346570611,
0.021959159523248672,
-0.02342265285551548,
-0.009072286076843739,
-0.011988499201834202,
0.00916681345552206,
-0.0056158266961574554,
0.044491980224847794,
-0.004996394272893667,
0.018598102033138275,
0.009872766211628914,
0.04331513121724129,
-0.019534895196557045,
0.020937835797667503,
0.020892903208732605,
0.019679872319102287,
-0.0072360592894256115,
-0.009237909689545631,
0.0010508672567084432,
0.009310269728302956,
0.030572380870580673,
-0.02929552085697651,
-0.007254572585225105,
0.030520737171173096,
-0.017254557460546494,
-0.009596950374543667,
0.009474343620240688,
0.0007822996703907847,
0.03301813825964928,
0.0047379438765347,
-0.06342432647943497,
0.024806378409266472,
-0.03083365596830845,
-0.01387486420571804,
0.0006717303767800331,
-0.0166519433259964,
-0.008839217945933342,
-0.005754111334681511,
0.016820140182971954,
0.0471402108669281,
0.018908372148871422,
0.010714770294725895,
-0.013066169805824757,
-0.04548497870564461,
-0.0024407273158431053,
-0.01245803665369749,
0.026084452867507935,
0.0034395207185298204,
-0.03593546897172928,
0.002371113747358322,
0.04740308225154877,
0.01763090305030346,
-0.0001996244245674461,
-0.029385004192590714,
-0.016080912202596664,
6.471474028836894e-33,
0.0021022206638008356,
-0.014490284956991673,
-0.021039672195911407,
-0.012521611526608467,
0.03184757009148598,
-0.03614066541194916,
-0.0016649573808535933,
-0.0010985920671373606,
-0.03097585029900074,
-0.00425616605207324,
-0.01806326024234295,
-0.0007771748350933194,
-0.0006516949506476521,
0.0055287606082856655,
0.06823405623435974,
0.00817234069108963,
0.01570395939052105,
0.02625199779868126,
0.004714624956250191,
-0.011019713245332241,
-0.02423817291855812,
0.034625425934791565,
-0.0002333118172828108,
0.03194211423397064,
0.01928097754716873,
0.014441793784499168,
-0.025353573262691498,
0.03847251459956169,
-0.003208150854334235,
0.0055435774847865105,
0.011808139272034168,
-0.01785128004848957,
-0.0050516799092292786,
-0.0019026340451091528,
0.015535472892224789,
0.03521561250090599,
-0.004608784802258015,
-0.02099781483411789,
0.017588697373867035,
-0.022148462012410164,
0.003935470711439848,
0.019850121811032295,
-0.027010824531316757,
0.030383041128516197,
-0.010821801610291004,
0.019802164286375046,
0.00020105882140342146,
0.007199954241514206,
0.011382262222468853,
0.0011219545267522335,
0.0011847404530271888,
-0.013266908936202526,
0.018337339162826538,
-0.015126489102840424,
0.02338409796357155,
-0.044712670147418976,
0.0024556892458349466,
0.004646562039852142,
-0.051843784749507904,
-0.01569647714495659,
-0.03799436241388321,
0.020909886807203293,
0.0012536280555650592,
0.011154748499393463,
-0.025336915627121925,
-0.01397321093827486,
-0.015353086404502392,
-0.012383125722408295,
-0.005596361123025417,
0.030975470319390297,
-0.006216306705027819,
-0.027823718264698982,
-0.004192641470581293,
0.05058516934514046,
-0.0018104980699717999,
0.019060682505369186,
-0.03217175602912903,
0.021902717649936676,
-0.023242760449647903,
-0.008840731345117092,
0.026409201323986053,
0.014701101928949356,
0.01227027177810669,
-0.00003961073525715619,
0.010808639228343964,
-0.009912973269820213,
-0.02286391146481037,
0.009636414237320423,
0.012021029368042946,
0.011107909493148327,
0.0005205271882005036,
-0.00929479394108057,
0.0009551487164571881,
0.005714357364922762,
0.0030186802614480257,
-1.3142024357648552e-8,
-0.016007309779524803,
-0.007107533980160952,
-0.01875130459666252,
-0.011492285877466202,
0.009487977251410484,
-0.0025443355552852154,
-0.01122326496988535,
-0.013833611272275448,
-0.01560522522777319,
-0.0019446566002443433,
0.035757653415203094,
0.011807411909103394,
0.02547864429652691,
0.012405021116137505,
-0.004946888890117407,
-0.04302508011460304,
0.012957936152815819,
-0.022666286677122116,
0.023750729858875275,
-0.011851349845528603,
0.02859465777873993,
0.04601994901895523,
0.02963677980005741,
0.006775387562811375,
0.006669667549431324,
-0.009243020787835121,
0.013290450908243656,
-0.07463128119707108,
0.006354035343974829,
-0.008552618324756622,
0.02903609350323677,
-0.04091714322566986,
-0.035655975341796875,
0.007287347223609686,
-0.010330832563340664,
-0.013279424048960209,
0.020190278068184853,
0.01973896473646164,
0.032573338598012924,
-0.008066678419709206,
0.01761634647846222,
-0.02172916755080223,
-0.02727661281824112,
-0.02670302987098694,
-0.02949574403464794,
-0.009357757866382599,
-0.0200464129447937,
-0.043304119259119034,
0.010700124315917492,
-0.031419698148965836,
-0.029443273320794106,
0.0024067952763289213,
0.0030479978304356337,
-0.0013203690759837627,
0.016661880537867546,
-0.024835333228111267,
0.00048583277384750545,
0.024347566068172455,
-0.004123571328818798,
-0.018117425963282585,
0.017308760434389114,
0.025737635791301727,
-0.01908801682293415,
-0.03637837618589401
] | pythongensim-creating-bigrams-over-how-i-met-your-mother-transcripts | https://markhneedham.com/blog/2015/02/12/pythongensim-creating-bigrams-over-how-i-met-your-mother-transcripts |
false | 2015-02-13 23:38:43 | Neo4j: Building a topic graph with Prismatic Interest Graph API | [
"neo4j"
] | [
"neo4j",
"Python"
] | Over the last few weeks I've been using various NLP libraries to derive topics for my corpus of How I met your mother episodes without success and was therefore enthused to see the release of Prismatic's http://blog.getprismatic.com/interest-graph-api/[Interest Graph API]
The Interest Graph API exposes a web service to which you feed a block of text and get back a set of topics and associated score.
It has been trained over the last few years with millions of articles that people share on their social media accounts and in my experience using Prismatic the topics have been very useful for finding new material to read.
The first step is to head to http://interest-graph.getprismatic.com/[interest-graph.getprismatic.com] and get an API key which will be emailed to you.
Having done that we're ready to make some calls to the API and get back some topics.
I'm going to use Python to call the API and I've found the http://docs.python-requests.org/en/latest/[requests] library the easiest library to use for this type of work. Our call to the API looks like this:
[source,python]
----
import requests
payload = { 'title': "insert title of article here",
'body': "insert body of text here"),
'api-token': "insert token sent by email here"}
r = requests.post("http://interest-graph.getprismatic.com/text/topic", data=payload)
----
One thing to keep in mind is that the API is rate limited to 20 requests a second so we need to restrict our requests or we're going to receive error response codes. Luckily I came across an excellent http://blog.gregburek.com/2011/12/05/Rate-limiting-with-decorators/[blog post showing how to write a decorator around a function] and only allow it to execute at a certain frequency.
To rate limit our calls to the Interest Graph we need to pull the above code into a function and annotate it appropriately:
[source,python]
----
import time
def RateLimited(maxPerSecond):
minInterval = 1.0 / float(maxPerSecond)
def decorate(func):
lastTimeCalled = [0.0]
def rateLimitedFunction(*args,**kargs):
elapsed = time.clock() - lastTimeCalled[0]
leftToWait = minInterval - elapsed
if leftToWait>0:
time.sleep(leftToWait)
ret = func(*args,**kargs)
lastTimeCalled[0] = time.clock()
return ret
return rateLimitedFunction
return decorate
@RateLimited(0.3)
def topics(title, body):
payload = { 'title': title,
'body': body,
'api-token': "insert token sent by email here"}
r = requests.post("http://interest-graph.getprismatic.com/text/topic", data=payload)
return r
----
The https://github.com/mneedham/neo4j-himym/blob/master/data/import/sentences.csv[text I want to classify] is stored in a CSV file - one sentence per line. Here's a sample:
[source,bash]
----
$ head -n 10 data/import/sentences.csv
SentenceId,EpisodeId,Season,Episode,Sentence
1,1,1,1,Pilot
2,1,1,1,Scene One
3,1,1,1,[Title: The Year 2030]
4,1,1,1,"Narrator: Kids, I'm going to tell you an incredible story. The story of how I met your mother"
5,1,1,1,Son: Are we being punished for something?
6,1,1,1,Narrator: No
7,1,1,1,"Daughter: Yeah, is this going to take a while?"
8,1,1,1,"Narrator: Yes. (Kids are annoyed) Twenty-five years ago, before I was dad, I had this whole other life."
9,1,1,1,"(Music Plays, Title ""How I Met Your Mother"" appears)"
----
We'll also need to refer to https://github.com/mneedham/neo4j-himym/blob/master/data/import/episodes_full.csv[another CSV file] to get the title of each episode since it isn't being stored with the sentence:
[source,bash]
----
$ head -n 10 data/import/episodes_full.csv
NumberOverall,NumberInSeason,Episode,Season,DateAired,Timestamp,Title,Director,Viewers,Writers,Rating
1,1,/wiki/Pilot,1,"September 19, 2005",1127084400,Pilot,Pamela Fryman,10.94,"Carter Bays,Craig Thomas",68
2,2,/wiki/Purple_Giraffe,1,"September 26, 2005",1127689200,Purple Giraffe,Pamela Fryman,10.40,"Carter Bays,Craig Thomas",63
3,3,/wiki/Sweet_Taste_of_Liberty,1,"October 3, 2005",1128294000,Sweet Taste of Liberty,Pamela Fryman,10.44,"Phil Lord,Chris Miller",67
4,4,/wiki/Return_of_the_Shirt,1,"October 10, 2005",1128898800,Return of the Shirt,Pamela Fryman,9.84,Kourtney Kang,59
5,5,/wiki/Okay_Awesome,1,"October 17, 2005",1129503600,Okay Awesome,Pamela Fryman,10.14,Chris Harris,53
6,6,/wiki/Slutty_Pumpkin,1,"October 24, 2005",1130108400,Slutty Pumpkin,Pamela Fryman,10.89,Brenda Hsueh,62
7,7,/wiki/Matchmaker,1,"November 7, 2005",1131321600,Matchmaker,Pamela Fryman,10.55,"Sam Johnson,Chris Marcil",57
8,8,/wiki/The_Duel,1,"November 14, 2005",1131926400,The Duel,Pamela Fryman,10.35,Gloria Calderon Kellett,46
9,9,/wiki/Belly_Full_of_Turkey,1,"November 21, 2005",1132531200,Belly Full of Turkey,Pamela Fryman,10.29,"Phil Lord,Chris Miller",60
----
Now we need to get our episode titles and transcripts ready to pass to the +++<cite>+++topics+++</cite>+++ function. Since we've only got ~ 200 episodes we can create a dictionary to store that data:
[source,python]
----
episodes = {}
with open("data/import/episodes_full.csv", "r") as episodesfile:
episodes_reader = csv.reader(episodesfile, delimiter=",")
episodes_reader.next()
for episode in episodes_reader:
episodes[int(episode[0])] = {"title": episode[6], "sentences" : [] }
with open("data/import/sentences.csv", "r") as sentencesfile:
sentences_reader = csv.reader(sentencesfile, delimiter=",")
sentences_reader.next()
for sentence in sentences_reader:
episodes[int(sentence[1])]["sentences"].append(sentence[4])
>>> episodes[1]["title"]
'Pilot'
>>> episodes[1]["sentences"][:5]
['Pilot', 'Scene One', '[Title: The Year 2030]', "Narrator: Kids, I'm going to tell you an incredible story. The story of how I met your mother", 'Son: Are we being punished for something?']
----
Now we're going to loop through each of the episodes, call +++<cite>+++topics+++</cite>+++ and write the result into a CSV file so we can load it into Neo4j afterwards to explore the data:
[source,python]
----
import json
with open("data/import/topics.csv", "w") as topicsfile:
topics_writer = csv.writer(topicsfile, delimiter=",")
topics_writer.writerow(["EpisodeId", "TopicId", "Topic", "Score"])
for episode_id, episode in episodes.iteritems():
tmp = topics(episode["title"], "".join(episode["sentences"]).json()
print episode_id, tmp
for topic in tmp['topics']:
topics_writer.writerow([episode_id, topic["id"], topic["topic"], topic["score"]])
----
It takes about 10 minutes to run and this is a sample of the output:
[source,bash]
----
$ head -n 10 data/import/topics.csv
EpisodeId,TopicId,Topic,Score
1,1519,Fiction,0.5798245566455255
1,2015,Humour,0.565154963605359
1,24031,Laughing,0.5587120401021765
1,16693,Flirting,0.5514098189505282
1,1163,Dating and Courtship,0.5487490108554022
1,2386,Kissing,0.5476185929151934
1,31929,Puns,0.5375100569837977
2,24031,Laughing,0.5670926949850333
2,1519,Fiction,0.5396488295397263
----
We'll use Neo4j's http://neo4j.com/docs/stable/query-load-csv.html[LOAD CSV] command to load the data in:
[source,cypher]
----
// make sure the topics exist
LOAD CSV WITH HEADERS FROM "file:///Users/markneedham/projects/neo4j-himym/data/import/topics.csv" AS row
MERGE (topic:Topic {id: TOINT(row.TopicId)})
ON CREATE SET topic.value = row.Topic
----
[source,cypher]
----
// make sure the topics exist
LOAD CSV WITH HEADERS FROM "file:///Users/markneedham/projects/neo4j-himym/data/import/topics.csv" AS row
MERGE (topic:Topic {id: TOINT(row.TopicId)})
ON CREATE SET topic.value = row.Topic
----
[source,cypher]
----
// now link the episodes and topics
LOAD CSV WITH HEADERS FROM "file:///Users/markneedham/projects/neo4j-himym/data/import/topics.csv" AS row
MATCH (topic:Topic {id: TOINT(row.TopicId)})
MATCH (episode:Episode {id: TOINT(row.EpisodeId)})
MERGE (episode)-[:TOPIC {score: TOFLOAT(row.Score)}]->(topic)
----
We'll assume that the episodes and seasons are already loaded - the https://github.com/mneedham/neo4j-himym/blob/master/data/import/himym.cql[commands to load those in are on github].
We can now write some queries against our topic graph. We'll start simple - show me the topics for an episode:
[source,cypher]
----
MATCH (episode:Episode {id: 1})-[r:TOPIC]->(topic)
RETURN topic, r
----
image::{{<siteurl>}}/uploads/2015/02/graph.png[Graph,333]
Let's say we liked the 'Puns' aspect of the Pilot episode and want to find out which other episodes had puns. The following query would let us find those:
[source,cypher]
----
MATCH (episode:Episode {id: 1})-[r:TOPIC]->(topic {value: "Puns"})<-[:TOPIC]-(other)
RETURN episode, topic, other
----
image::{{<siteurl>}}/uploads/2015/02/graph-1.png[Graph 1,425]
Or maybe we want to find the episode which has the most topics in common:
[source,cypher]
----
MATCH (episode:Episode {id: 1})-[:TOPIC]->(topic),
(topic)<-[r:TOPIC]-(otherEpisode)
RETURN otherEpisode.title as episode, COUNT(r) AS topicsInCommon
ORDER BY topicsInCommon DESC
LIMIT 10
==> +------------------------------------------------+
==> | episode | topicsInCommon |
==> +------------------------------------------------+
==> | "Purple Giraffe" | 6 |
==> | "Ten Sessions" | 5 |
==> | "Farhampton" | 4 |
==> | "The Three Days Rule" | 4 |
==> | "How I Met Everyone Else" | 4 |
==> | "The Time Travelers" | 4 |
==> | "Mary the Paralegal" | 4 |
==> | "Lobster Crawl" | 4 |
==> | "The Magician's Code, Part 2" | 4 |
==> | "Slutty Pumpkin" | 4 |
==> +------------------------------------------------+
==> 10 rows
----
We could then tweak that query to get the names of those topics:
[source,cypher]
----
MATCH (episode:Episode {id: 1})-[:TOPIC]->(topic),
(topic)<-[r:TOPIC]-(otherEpisode)-[:IN_SEASON]->(season)
RETURN otherEpisode.title as episode, season.number AS season, COUNT(r) AS topicsInCommon, COLLECT(topic.value)
ORDER BY topicsInCommon DESC
LIMIT 10
==> +-----------------------------------------------------------------------------------------------------------------------------------+
==> | episode | season | topicsInCommon | COLLECT(topic.value) |
==> +-----------------------------------------------------------------------------------------------------------------------------------+
==> | "Purple Giraffe" | "1" | 6 | ["Humour","Fiction","Kissing","Dating and Courtship","Flirting","Laughing"] |
==> | "Ten Sessions" | "3" | 5 | ["Humour","Puns","Dating and Courtship","Flirting","Laughing"] |
==> | "How I Met Everyone Else" | "3" | 4 | ["Humour","Fiction","Dating and Courtship","Laughing"] |
==> | "Farhampton" | "8" | 4 | ["Humour","Fiction","Kissing","Dating and Courtship"] |
==> | "Bedtime Stories" | "9" | 4 | ["Humour","Puns","Dating and Courtship","Laughing"] |
==> | "Definitions" | "5" | 4 | ["Kissing","Dating and Courtship","Flirting","Laughing"] |
==> | "Lobster Crawl" | "8" | 4 | ["Humour","Dating and Courtship","Flirting","Laughing"] |
==> | "Little Boys" | "3" | 4 | ["Humour","Puns","Dating and Courtship","Laughing"] |
==> | "Wait for It" | "3" | 4 | ["Fiction","Puns","Flirting","Laughing"] |
==> | "Mary the Paralegal" | "1" | 4 | ["Humour","Dating and Courtship","Flirting","Laughing"] |
==> +-----------------------------------------------------------------------------------------------------------------------------------+
----
Overall 168 (out of 208) of the other episodes have a topic in common with the first episode so perhaps just having a topic in common isn't the best indication of similarity.
An interesting next step would be to calculate http://en.wikipedia.org/wiki/Cosine_similarity[cosine] or http://en.wikipedia.org/wiki/Jaccard_index[jaccard] similarity between the episodes and store that value in the graph for querying later on.
I've also calculated http://www.markhneedham.com/blog/2015/02/12/pythongensim-creating-bigrams-over-how-i-met-your-mother-transcripts/[the most common bigrams across all the transcripts] so it would be interesting to see if there are any interesting insights at the intersection of episodes, topics and phrases. | null | null | [
0.012775782495737076,
-0.028020579367876053,
0.004144721664488316,
0.05849790200591087,
0.056261319667100906,
0.015301238745450974,
-0.0020407189149409533,
0.05282190814614296,
-0.004299777094274759,
0.008891905657947063,
0.002968591870740056,
-0.0067945546470582485,
-0.0541558600962162,
0.00548335537314415,
-0.01179356686770916,
0.06287366151809692,
0.047676704823970795,
0.004692411981523037,
0.027120336890220642,
0.0022080475464463234,
0.011860247701406479,
0.07243286818265915,
0.027496298775076866,
0.020972738042473793,
0.026505399495363235,
-0.002354829339310527,
-0.0029971145559102297,
0.0036957780830562115,
-0.04970735311508179,
0.0016492848517373204,
0.02379225380718708,
-0.0055465358309447765,
-0.015024630352854729,
0.0022304572630673647,
0.02769717201590538,
-0.011521721258759499,
-0.019923964515328407,
0.017859110608696938,
0.014255892485380173,
0.01235672365874052,
-0.05114799365401268,
0.029461126774549484,
-0.04034847766160965,
-0.013995306566357613,
-0.05139627680182457,
0.010013754479587078,
-0.029748762026429176,
0.04433300346136093,
0.00785814505070448,
-0.0271451473236084,
-0.07723592966794968,
0.04625812917947769,
-0.006660945247858763,
-0.005795618053525686,
0.011501502245664597,
0.06032377853989601,
-0.006004482973366976,
-0.10729718953371048,
-0.0004490789142437279,
-0.012588624842464924,
-0.01427947636693716,
-0.006227326113730669,
0.008561761118471622,
0.01718304678797722,
0.022369977086782455,
-0.004699875134974718,
-0.029766110703349113,
0.06892078369855881,
-0.05166621506214142,
-0.007904564030468464,
-0.051895350217819214,
0.0037978114560246468,
-0.038194652646780014,
-0.001975976163521409,
0.01299260463565588,
-0.03240567445755005,
0.01371817197650671,
0.06944318115711212,
0.022518260404467583,
0.03971913829445839,
-0.031191954389214516,
0.029243458062410355,
0.0013786132913082838,
0.033269450068473816,
-0.030198177322745323,
-0.02552933804690838,
-0.029714420437812805,
-0.020429661497473717,
-0.029986847192049026,
0.041166435927152634,
0.0025434857234358788,
-0.08266306668519974,
0.011976126581430435,
0.00388652877882123,
0.0001667317992541939,
0.005735598970204592,
0.02302665263414383,
-0.019285593181848526,
-0.005280774086713791,
-0.004378567449748516,
-0.06819192320108414,
-0.04303892329335213,
0.005163295194506645,
0.0229837317019701,
-0.05724315717816353,
-0.018654201179742813,
0.005719341337680817,
-0.022002974525094032,
0.0030064487364143133,
0.00246929912827909,
-0.014994685538113117,
-0.006225375924259424,
-0.043967194855213165,
-0.005276113282889128,
-0.06791742146015167,
0.07649452984333038,
0.03131972625851631,
-0.037262123078107834,
-0.044888533651828766,
0.023107118904590607,
0.046359043568372726,
0.02273246832191944,
-0.001090614008717239,
0.07478240877389908,
-0.014262490905821323,
0.03441735729575157,
-0.0068946415558457375,
0.04913797229528427,
-0.00588387344032526,
-0.04556663706898689,
-0.0180865116417408,
0.03451504930853844,
-0.0083991177380085,
0.019895197823643684,
0.004683272913098335,
-0.023891082033514977,
-0.006741149351000786,
0.02653680182993412,
0.06868135184049606,
0.035998474806547165,
-0.0006827422184869647,
-0.04511140659451485,
-0.002256432780995965,
-0.011731759645044804,
0.03580440580844879,
-0.0300894882529974,
0.02232413738965988,
-0.017673753201961517,
-0.02520890347659588,
-0.008540594018995762,
0.008994071744382381,
0.006856920197606087,
0.030299754813313484,
-0.005029043648391962,
0.005233018193393946,
0.048522982746362686,
0.028122548013925552,
0.0382983572781086,
0.0016116886399686337,
0.02378571592271328,
0.05139996111392975,
0.02516063302755356,
-0.01314517017453909,
0.034011900424957275,
0.0037463423795998096,
-0.043070532381534576,
0.004001230001449585,
0.07386162132024765,
-0.009951147250831127,
0.01827559433877468,
-0.06134609878063202,
-0.02056080847978592,
0.05530073493719101,
-0.044436704367399216,
-0.013042014092206955,
0.032941434532403946,
0.06075704097747803,
0.005587214604020119,
0.034518275409936905,
-0.0023880775552242994,
-0.07171238958835602,
0.06060408055782318,
0.015722136944532394,
0.0066406154073774815,
0.021221566945314407,
-0.017315180972218513,
0.08524703234434128,
0.01882379688322544,
-0.0003554128052201122,
0.007875430397689342,
-0.06600815057754517,
-0.06297249346971512,
-0.035163700580596924,
0.0006804484291933477,
0.060712411999702454,
-0.04474816098809242,
0.015186230652034283,
0.07796576619148254,
0.04083004966378212,
0.059621211141347885,
0.0017913078190758824,
0.003841637633740902,
0.03247345611453056,
-0.02218182571232319,
-0.0627247542142868,
0.022760039195418358,
0.034536052495241165,
-0.028331397101283073,
-0.0436067171394825,
0.012234686873853207,
-0.02166762202978134,
0.0204485971480608,
0.05645698308944702,
-0.03337017074227333,
0.009511067532002926,
0.015633543953299522,
0.051352981477975845,
-0.027893904596567154,
0.025199230760335922,
-0.04987657815217972,
0.02662135660648346,
-0.018106121569871902,
-0.016949595883488655,
-0.018795257434248924,
-0.03337782621383667,
0.126244455575943,
0.06682675331830978,
-0.03508181869983673,
-0.04448428004980087,
0.03342050313949585,
-0.004540300462394953,
-0.019252264872193336,
0.0012754861963912845,
-0.05343559384346008,
-0.044338177889585495,
-0.0026611865032464266,
-0.05874968320131302,
-0.03029891662299633,
0.025573240593075752,
-0.034886110574007034,
-0.0110821183770895,
0.06843730062246323,
0.007378947455435991,
0.056248489767313004,
-0.014806775376200676,
0.019944438710808754,
-0.03016713261604309,
-0.03545486554503441,
-0.026384757831692696,
0.02365979179739952,
0.002279712585732341,
-0.008240163326263428,
0.015031184069812298,
-0.025164209306240082,
-0.03458959236741066,
-0.0006935093551874161,
-0.03990652412176132,
0.02003392018377781,
0.05205856263637543,
0.053402457386255264,
0.03129745274782181,
0.04483465105295181,
-0.0048936353996396065,
0.009033548645675182,
-0.02423686720430851,
-0.05487639829516411,
-0.02467271126806736,
-0.06165381893515587,
0.0014810753054916859,
0.027514658868312836,
0.05963325500488281,
-0.0043055471032857895,
0.002628484508022666,
0.008440702222287655,
0.024236828088760376,
0.016435502097010612,
0.032129641622304916,
-0.014393134973943233,
-0.007779689040035009,
-0.035162944346666336,
-0.03220836818218231,
0.06429865956306458,
-0.03636221960186958,
-0.0300524290651083,
-0.022720742970705032,
-0.06472300738096237,
0.052464261651039124,
-0.04151564836502075,
0.001753393211401999,
0.008566154167056084,
0.019177241250872612,
0.02857769839465618,
0.023031381890177727,
0.020251210778951645,
0.05841881036758423,
0.0019419693853706121,
0.023422596976161003,
0.007266378961503506,
-0.021411718800663948,
0.051051776856184006,
-0.011460378766059875,
-0.012657074257731438,
0.04480773210525513,
-0.017304928973317146,
-0.0032082137186080217,
-0.04151616245508194,
0.018817918375134468,
-0.03935655951499939,
-0.2984101474285126,
0.035451196134090424,
-0.0008512818021699786,
-0.019331499934196472,
0.0061295609921216965,
-0.004761085379868746,
0.018506692722439766,
-0.038797251880168915,
-0.005933611653745174,
0.010557251051068306,
-0.02162313461303711,
-0.05505804345011711,
-0.02491585537791252,
0.04718375578522682,
0.004943402949720621,
0.0007007403764873743,
-0.021702134981751442,
-0.028533343225717545,
-0.00078110012691468,
0.036430805921554565,
-0.0009515536366961896,
-0.040104907006025314,
0.002305536298081279,
0.03928421437740326,
0.03722122684121132,
0.033632177859544754,
-0.08966302126646042,
0.03991886228322983,
-0.04250171035528183,
-0.01988077349960804,
0.025229161605238914,
-0.007934785448014736,
0.03371870517730713,
-0.03713062033057213,
-0.008236630819737911,
-0.031043341383337975,
0.0447201170027256,
0.000924171123187989,
-0.0036009454634040594,
0.012924102135002613,
-0.006085078231990337,
-0.03426557406783104,
-0.03648460656404495,
-0.0018717781640589237,
0.09234451502561569,
0.01350372564047575,
-0.06890697777271271,
-0.02851586416363716,
-0.03939221799373627,
0.06493891030550003,
-0.02446364052593708,
-0.02261190302670002,
-0.024019453674554825,
0.021753650158643723,
-0.019643491134047508,
-0.021677391603589058,
-0.009244691580533981,
-0.012638290412724018,
-0.06683894246816635,
-0.02485995925962925,
0.011720347218215466,
-0.0018162690103054047,
0.001079149660654366,
-0.039147257804870605,
-0.04273054376244545,
-0.06884483993053436,
-0.04704473540186882,
-0.027851823717355728,
0.06490451097488403,
0.03109537437558174,
-0.051097799092531204,
0.022059453651309013,
0.009292252361774445,
-0.10684871673583984,
-0.01188646350055933,
-0.029603272676467896,
-0.027058374136686325,
0.0325082503259182,
-0.0017763518262654543,
0.039706870913505554,
-0.03455658257007599,
-0.06253822892904282,
0.015221151523292065,
0.006304700393229723,
0.01232624426484108,
-0.0224890299141407,
0.004339556209743023,
-0.013259653002023697,
-0.027593428269028664,
-0.022984500974416733,
0.05665149167180061,
-0.022192656993865967,
-0.01865745335817337,
0.0017728714738041162,
-0.000024076893168967217,
0.04655185341835022,
0.007178441621363163,
0.0190997663885355,
-0.0060148234479129314,
0.0675869807600975,
0.01966724544763565,
-0.034719329327344894,
-0.011865734122693539,
-0.015165709890425205,
-0.014212953858077526,
-0.01621241122484207,
-0.03635380044579506,
-0.013259456492960453,
0.010539060458540916,
0.010768845677375793,
-0.02976309508085251,
-0.02142101526260376,
-0.00040132220601662993,
-0.04671286419034004,
-0.027585048228502274,
-0.007914803922176361,
0.004808568861335516,
0.023493248969316483,
-0.009426471777260303,
-0.01802046038210392,
-0.08475392311811447,
0.007843604311347008,
0.0042739915661513805,
-0.0009863214800134301,
-0.050699714571237564,
-0.04221435636281967,
-0.007112074643373489,
-0.030646154657006264,
0.020536048337817192,
0.03301144391298294,
-0.011735797859728336,
0.00927277747541666,
0.006204139441251755,
-0.02259078249335289,
0.046677764505147934,
-0.029587343335151672,
-0.01969028078019619,
-0.01787554658949375,
0.03272160887718201,
0.027789076790213585,
0.007662275340408087,
-0.0015040526632219553,
-0.02793576568365097,
0.042554307729005814,
0.06537532806396484,
-0.007033794652670622,
0.021799294278025627,
0.014509093947708607,
0.008047861978411674,
0.0030628694221377373,
0.009260619059205055,
-0.03587062284350395,
-0.010446148924529552,
-0.034321144223213196,
0.007309896405786276,
-0.022583721205592155,
0.02426323853433132,
0.005788755137473345,
-0.023478491231799126,
-0.03195120021700859,
0.03643663600087166,
-0.06779906153678894,
-0.020247524604201317,
-0.024589944630861282,
-0.016235720366239548,
0.03739921748638153,
-0.029307682067155838,
0.04483560100197792,
0.020290512591600418,
-0.018919412046670914,
0.02317604422569275,
0.018296364694833755,
-0.007874459959566593,
0.033654652535915375,
-0.00543989846482873,
-0.012172747403383255,
0.008619788102805614,
-0.002519170055165887,
0.03431256115436554,
0.025584466755390167,
-0.006634954363107681,
-0.051285065710544586,
0.01417468674480915,
0.036514680832624435,
0.05676247552037239,
0.051188431680202484,
-0.015034405514597893,
0.013685517013072968,
-0.04277500510215759,
0.007270520552992821,
-0.03414297476410866,
0.002208783756941557,
-0.028840435668826103,
0.004007010255008936,
-0.022986358031630516,
-0.08938071876764297,
0.017153676599264145,
0.0006801730487495661,
0.007837280631065369,
-0.013041401281952858,
-0.03459646925330162,
0.038852058351039886,
-0.05538087710738182,
0.045924652367830276,
0.056856557726860046,
-0.05987687036395073,
0.007829483598470688,
-0.00882891658693552,
0.01011065673083067,
0.011678844690322876,
0.027775945141911507,
-0.04563183709979057,
-0.031218528747558594,
-0.01722852885723114,
0.0010287589393556118,
-0.033251866698265076,
-0.041963376104831696,
-0.050668779760599136,
0.02533317543566227,
0.0079329963773489,
0.003913211636245251,
-0.04182695597410202,
0.0003328579477965832,
-0.02225121483206749,
-0.021518122404813766,
0.02973729372024536,
-0.015474360436201096,
-0.028574295341968536,
-0.00015418384282384068,
-0.013049032539129257,
0.035312797874212265,
-0.01800673082470894,
0.051215894520282745,
0.0057778130285441875,
-0.02517661824822426,
0.005491022020578384,
-0.0671064481139183,
0.01428795326501131,
-0.0043021803721785545,
0.09122733026742935,
0.007500780746340752,
-0.015598386526107788,
-0.0476372130215168,
0.002854136051610112,
-0.04561719670891762,
0.025877725332975388,
0.021219346672296524,
0.0043200221844017506,
0.018596678972244263,
0.031759899109601974,
0.025229323655366898,
0.009528766386210918,
-0.005375871900469065,
-0.01658846065402031,
0.03212544694542885,
-0.06118255481123924,
-0.027440005913376808,
-0.009579848498106003,
-0.05261813476681709,
0.015271010808646679,
0.01018352061510086,
0.03526078164577484,
-0.06312765181064606,
0.06974845379590988,
0.035113316029310226,
0.04807063564658165,
0.053120486438274384,
0.0165637768805027,
0.03209220618009567,
-0.007372965104877949,
0.018701201304793358,
-0.10439170897006989,
-0.013668878003954887,
0.03745425492525101,
0.013645309023559093,
-0.024101169779896736,
0.024270588532090187,
-0.04438101872801781,
0.052662789821624756,
-0.07067948579788208,
-0.01664220541715622,
0.04310958832502365,
-0.006025126203894615,
-0.013616466894745827,
0.025502650067210197,
-0.06322497874498367,
-0.004433860536664724,
0.030521757900714874,
-0.04201681539416313,
-0.011254877783358097,
0.010255117900669575,
0.07387423515319824,
-0.008032169193029404,
0.022378413006663322,
-0.017419379204511642,
-0.031211061403155327,
0.08122985064983368,
0.03538273647427559,
0.0013444117503240705,
0.051920514553785324,
-0.013629097491502762,
0.021002687513828278,
0.01743730530142784,
0.004821399692445993,
0.012718802317976952,
0.022262705489993095,
-0.007505715359002352,
-0.05920935049653053,
0.07205387949943542,
-0.0032420929055660963,
-0.04021824151277542,
-0.05283169820904732,
0.0944116935133934,
0.009653022512793541,
-0.0347873829305172,
-0.05103792995214462,
0.04561442881822586,
-0.034666597843170166,
-0.020586585626006126,
-0.023500651121139526,
-0.022366860881447792,
-0.022137634456157684,
0.0573204942047596,
-0.015531918965280056,
0.0007787729846313596,
0.04666638374328613,
-0.020692257210612297,
0.019702117890119553,
0.016457626596093178,
0.08472689241170883,
0.0735045000910759,
0.08565868437290192,
-0.005566220730543137,
0.06682407110929489,
0.010079523548483849,
-0.07064902037382126,
-0.02944345772266388,
-0.008034643717110157,
-0.020232217386364937,
-0.00951538234949112,
0.02493835985660553,
0.04469997435808182,
-0.010194333270192146,
0.06266751140356064,
-0.020938236266374588,
-0.014811240136623383,
-0.003950522746890783,
0.03222810477018356,
0.030273016542196274,
0.03067554347217083,
-0.0013809939846396446,
0.061494503170251846,
-0.02124522067606449,
-0.046050023287534714,
0.05220308527350426,
-0.03739868104457855,
-0.03409790247678757,
0.03368436172604561,
-0.010899088345468044,
0.03919748589396477,
0.004505706951022148,
0.04655710607767105,
0.08451847732067108,
-0.017983540892601013,
-0.019935395568609238,
0.0011467357398942113,
0.01104354951530695,
0.015429924242198467,
0.029215866699814796,
-0.021816885098814964,
-0.0014102946734055877,
-0.002988032065331936,
-0.032666873186826706,
-0.01842302642762661,
-0.031495679169893265,
-0.022547898814082146,
0.04286208748817444,
-0.02279975265264511,
0.010928102768957615,
-0.0012011276558041573,
-0.004064516630023718,
-0.03704594448208809,
-0.04523671045899391,
-0.04462720826268196,
-0.04966556653380394,
-0.06685028225183487,
-0.010850020684301853,
0.006024045404046774,
0.028378300368785858,
-0.04283648729324341,
-0.021330665796995163,
-0.02139570564031601,
0.015377344563603401,
0.03178245946764946,
-0.040286585688591,
-0.020666759461164474,
0.01782621257007122,
0.01339486800134182,
-0.00009270655573345721,
-0.010900923982262611,
0.04986922815442085,
0.027422714978456497,
-0.0024791748728603125,
-0.014177976176142693,
0.05936484411358833,
0.03841600939631462,
0.04543760046362877,
0.015853604301810265,
-0.0844063013792038,
-0.01593869738280773,
-0.034464281052351,
-0.015604413114488125,
-0.07295845448970795,
0.004950291011482477,
0.03180772066116333,
0.04223429411649704,
0.04826232045888901,
0.013944538310170174,
-0.014914337545633316,
-0.03747112676501274,
0.009395334869623184,
0.02411716803908348,
0.007411967031657696,
0.0305235143750906,
-0.023647313937544823,
0.07693806290626526,
0.0007056790054775774,
-0.032815370708703995,
-0.012611046433448792,
-0.03325319662690163,
-0.020349549129605293,
0.01495848037302494,
-0.04416361823678017,
-0.030188027769327164,
-0.0157048050314188,
-0.06038178876042366,
-0.030243251472711563,
0.01710481382906437,
-0.03370754048228264,
-0.003178610699251294,
0.038551073521375656,
0.005182403605431318,
-0.029786452651023865,
0.014412538148462772,
-0.02344837225973606,
0.026846574619412422,
0.013913573697209358,
-0.0012300716480240226,
-0.028069090098142624,
-0.008505288511514664,
0.011397290974855423,
-0.018566932529211044,
0.006495196837931871,
-0.028538856655359268,
-0.020411016419529915,
-0.0184727031737566,
0.029416006058454514,
0.041550640016794205,
-0.006126936990767717,
-0.0009144303621724248
] | [
-0.06071321293711662,
-0.0225992351770401,
-0.04999007657170296,
-0.015998758375644684,
0.03976203128695488,
-0.05690709874033928,
-0.022283626720309258,
0.034778255969285965,
0.0025121895596385,
-0.011415158398449421,
0.0031677698716521263,
-0.031829264014959335,
-0.0000763034840929322,
0.008288857527077198,
0.07565103471279144,
0.0007733681704849005,
0.007043728604912758,
-0.07738698273897171,
-0.03565509244799614,
0.03445833921432495,
0.026919735595583916,
-0.03794701024889946,
-0.009272726252675056,
-0.034316934645175934,
-0.004115212708711624,
0.013309381902217865,
0.045977991074323654,
-0.028545605018734932,
-0.010531682521104813,
-0.1859104037284851,
0.009222709573805332,
-0.007606540806591511,
0.04813358187675476,
0.00754201877862215,
0.007007834035903215,
0.03043154813349247,
0.019840944558382034,
-0.011658218689262867,
-0.027410801500082016,
0.046342022716999054,
0.02201482653617859,
0.0034944263752549887,
-0.05953109264373779,
-0.02913348190486431,
0.06530333310365677,
-0.012553896754980087,
-0.0298300851136446,
0.022640937939286232,
-0.028032811358571053,
0.013062010519206524,
-0.04357973113656044,
-0.03158809244632721,
-0.01037136185914278,
-0.00932304747402668,
0.0014696079306304455,
0.024625761434435844,
0.026228224858641624,
0.04976862668991089,
0.009697729721665382,
0.031152695417404175,
0.02500745840370655,
0.0035604883451014757,
-0.14720425009727478,
0.07888484001159668,
-0.014513693749904633,
0.06624266505241394,
-0.04010268673300743,
-0.00487166503444314,
-0.016150694340467453,
0.07297080755233765,
0.015439045615494251,
-0.010713073424994946,
-0.024736113846302032,
0.03462594375014305,
0.006287858821451664,
0.011893730610609055,
0.026885995641350746,
0.02580222859978676,
0.0559835247695446,
-0.05209242179989815,
-0.04657461866736412,
0.008820580318570137,
-0.032834965735673904,
-0.005950888618826866,
0.002447337843477726,
0.008509509265422821,
-0.030330900102853775,
0.05284580960869789,
0.042332813143730164,
0.014363761991262436,
0.04828735068440437,
-0.02295811101794243,
0.02589084580540657,
0.0186726376414299,
-0.101485475897789,
-0.024987438693642616,
0.01394533459097147,
0.011471530422568321,
-0.06312065571546555,
0.4351118505001068,
-0.009840411134064198,
-0.01582055352628231,
0.06565703451633453,
0.036017730832099915,
-0.010982400737702847,
-0.028147729113698006,
0.015458649024367332,
-0.06248629838228226,
0.019147198647260666,
-0.036011192947626114,
0.005712514277547598,
-0.016320642083883286,
0.0641426220536232,
-0.06448286771774292,
0.016392288729548454,
0.017804551869630814,
0.024995282292366028,
0.026554249227046967,
0.034281980246305466,
-0.022835906594991684,
-0.01189400628209114,
0.010847151279449463,
0.020774709060788155,
-0.004846101626753807,
-0.0029336540028452873,
-0.00945698469877243,
0.02308255434036255,
0.04743402078747749,
0.023562826216220856,
0.007787815295159817,
0.06540883332490921,
-0.02041456289589405,
-0.09038200229406357,
0.009110929444432259,
0.009321501478552818,
-0.007266667205840349,
0.04211854562163353,
-0.008149213157594204,
0.011299170553684235,
0.024225613102316856,
-0.009500293992459774,
-0.027995601296424866,
-0.007966236211359501,
0.008306004106998444,
-0.04326053336262703,
0.13529865443706512,
0.03392740711569786,
-0.02785319834947586,
-0.04331810399889946,
-0.004098040051758289,
0.004924720153212547,
0.04334495589137077,
-0.0026085935533046722,
-0.07168526947498322,
0.016082942485809326,
0.0347127690911293,
0.10632334649562836,
-0.002320550847798586,
-0.055505163967609406,
-0.0068688965402543545,
-0.011381229385733604,
-0.03715590015053749,
-0.061181046068668365,
0.05110324174165726,
0.05193094164133072,
-0.1393926590681076,
-0.01888696290552616,
0.016741588711738586,
-0.008184743113815784,
-0.05130404978990555,
0.035512957721948624,
0.010930677875876427,
-0.007543028332293034,
0.008449862711131573,
0.04602833092212677,
-0.01899522915482521,
-0.05119048058986664,
0.015603610314428806,
0.06642485409975052,
-0.0017983999568969011,
-0.01589193381369114,
-0.01615842431783676,
-0.03588687628507614,
0.02070753090083599,
-0.0819215252995491,
-0.07082828134298325,
-0.0625113919377327,
-0.02387799136340618,
-0.010296355001628399,
-0.032006725668907166,
-0.03540053218603134,
0.007441078312695026,
-0.0709216296672821,
0.08389651775360107,
-0.03970874473452568,
-0.017475636675953865,
0.007674565073102713,
-0.026070313528180122,
-0.042862147092819214,
-0.01644110307097435,
-0.02681642211973667,
-0.014173361472785473,
-0.03198156878352165,
0.040682848542928696,
-0.050402890890836716,
0.031905513256788254,
0.03466511145234108,
-0.0325591079890728,
0.08837517350912094,
0.030810561031103134,
-0.01300339587032795,
-0.028091393411159515,
-0.010645073838531971,
0.020495302975177765,
-0.030709892511367798,
-0.02682054042816162,
0.009474371559917927,
-0.007529316935688257,
0.007386077661067247,
0.028631078079342842,
-0.026110714301466942,
-0.0326249822974205,
-0.04168165102601051,
-0.35977765917778015,
-0.0488988533616066,
-0.027588199824094772,
0.013713772408664227,
0.043990377336740494,
-0.07366470992565155,
0.019716795533895493,
-0.023624079301953316,
0.007957808673381805,
0.059046633541584015,
0.0768747478723526,
0.00788311567157507,
0.007900914177298546,
-0.08892951160669327,
0.026619933545589447,
0.014519792050123215,
-0.038231559097766876,
-0.0014008196303620934,
-0.0017869336297735572,
0.027601851150393486,
0.0078071532770991325,
-0.03013394959270954,
-0.0008572405204176903,
-0.05150415003299713,
-0.01739180088043213,
-0.016795875504612923,
0.10126519948244095,
0.042398083955049515,
0.03689251095056534,
-0.05139433592557907,
0.04231134057044983,
-0.010481777600944042,
0.0055918022990226746,
-0.10216217488050461,
-0.004290687385946512,
-0.017559994012117386,
0.02217913791537285,
0.019559133797883987,
-0.0022953497245907784,
-0.044336654245853424,
-0.06478702276945114,
0.03095840848982334,
-0.011968320235610008,
-0.00012638693442568183,
-0.06741105020046234,
0.041840601712465286,
-0.01220189779996872,
-0.039577044546604156,
0.00402970751747489,
0.08475009351968765,
0.00042036359081976116,
-0.0007310298969969153,
0.019098127260804176,
0.020809130743145943,
-0.0426953099668026,
-0.03361397236585617,
-0.08325827121734619,
0.025119075551629066,
-0.01633809693157673,
-0.014917186461389065,
0.019285785034298897,
0.04012186825275421,
0.048128072172403336,
-0.06525867432355881,
-0.006185399368405342,
-0.00353755964897573,
0.005502714775502682,
0.027380960062146187,
0.025110768154263496,
0.009563131257891655,
-0.018414825201034546,
0.1016894206404686,
-0.0028778016567230225,
0.014768904075026512,
0.023700665682554245,
0.051070209592580795,
0.02714323066174984,
0.046465348452329636,
0.021470962092280388,
-0.0046500517055392265,
0.03790658712387085,
-0.010083298198878765,
0.02177777886390686,
-0.039684318006038666,
-0.0031223674304783344,
0.03919629380106926,
0.00029967783484607935,
-0.0469699501991272,
0.05054691061377525,
0.028426390141248703,
0.002226621378213167,
0.031000036746263504,
-0.03433797135949135,
-0.03279728442430496,
0.04506951943039894,
-0.005234417039901018,
-0.26681095361709595,
0.0348740853369236,
0.04868442565202713,
0.05393921583890915,
0.005989390891045332,
0.00659793009981513,
0.03909996151924133,
-0.037643563002347946,
0.0027138504665344954,
0.021983934566378593,
0.03331432119011879,
0.04610825702548027,
-0.008951451629400253,
-0.0007135982159525156,
0.013459834270179272,
-0.0016267865430563688,
0.04176190495491028,
0.021097809076309204,
-0.009128113277256489,
0.011850614100694656,
0.03957449272274971,
-0.028908411040902138,
0.1555706113576889,
0.027360960841178894,
-0.012016458436846733,
0.010295774787664413,
0.0028614515904337168,
0.0131805669516325,
0.06409940123558044,
-0.0023221697192639112,
-0.013857570476830006,
0.0027427661698311567,
0.006848829332739115,
0.005888290237635374,
0.05338750034570694,
-0.06593254953622818,
-0.014493151567876339,
0.019915519282221794,
0.042718250304460526,
-0.024624692276120186,
0.015921374782919884,
0.01849290542304516,
-0.0467681847512722,
0.02143399603664875,
0.04346529394388199,
0.006582795176655054,
0.003279405878856778,
-0.01586833782494068,
-0.040612395852804184,
0.013458766043186188,
-0.004228399600833654,
-0.04366037994623184,
-0.008068407885730267,
-0.00206731422804296,
0.0018965309718623757,
0.07876312732696533,
0.03569820150732994,
-0.02185390517115593,
0.009892450645565987,
-0.0023457256611436605,
-0.05030103027820587,
-0.04550197347998619,
0.09742999076843262,
0.012241439893841743,
0.02372339740395546
] | [
-0.011922435835003853,
0.029080815613269806,
-0.010129911825060844,
0.053005293011665344,
0.02435707487165928,
-0.006509540602564812,
0.0005902473349124193,
0.038519445806741714,
-0.01902974396944046,
0.0179941076785326,
-0.016404418274760246,
0.007900869473814964,
0.00944814458489418,
0.01702331192791462,
0.07237222045660019,
0.049389444291591644,
-0.0024499164428561926,
-0.05185114964842796,
0.016952715814113617,
-0.0017531411722302437,
-0.013493940234184265,
0.02188696339726448,
0.020812148228287697,
-0.010971667245030403,
0.0018765995046123862,
0.01776067726314068,
-0.07087397575378418,
-0.01695581153035164,
0.04348034784197807,
-0.09354189783334732,
0.0212944895029068,
-0.005136098247021437,
0.018373988568782806,
0.026316232979297638,
-0.04081786423921585,
0.001938780420459807,
-0.03496280685067177,
-0.017183560878038406,
0.048745863139629364,
0.020211845636367798,
0.009253602474927902,
-0.004468640312552452,
-0.01310909353196621,
-0.0008000753005035222,
0.002697849180549383,
-0.008784223347902298,
-0.032089125365018845,
0.006467122584581375,
-0.0259987935423851,
0.026764657348394394,
-0.03767876699566841,
-0.01959492824971676,
-0.024167759343981743,
0.01591973379254341,
-0.009526851586997509,
-0.008882317692041397,
-0.029969222843647003,
-0.011298888362944126,
0.02266652323305607,
-0.05237898230552673,
0.024070659652352333,
-0.038926951587200165,
-0.010224840603768826,
-0.025981023907661438,
-0.01077299565076828,
-0.017479969188570976,
-0.03207819163799286,
0.00762459821999073,
0.022882767021656036,
0.020714201033115387,
0.024408923462033272,
-0.00007914815796539187,
-0.06351012736558914,
-0.01068290788680315,
0.014559142291545868,
-0.033504657447338104,
0.0067147319205105305,
-0.017027348279953003,
-0.019293207675218582,
-0.0019224289571866393,
-0.05052690953016281,
0.005776295904070139,
-0.00826376210898161,
0.014657764695584774,
-0.007106020115315914,
-0.0390506312251091,
0.009073695167899132,
0.0008814329048618674,
0.004018041305243969,
-0.011258089914917946,
-0.0365217886865139,
0.005282380152493715,
0.006330597214400768,
0.04060075804591179,
-0.09656726568937302,
0.031232235953211784,
-0.025387896224856377,
-0.0369405522942543,
-0.036482177674770355,
0.829649031162262,
0.02726159617304802,
-0.022081047296524048,
-0.000595528690610081,
0.018965236842632294,
0.009935656562447548,
-0.040104348212480545,
-0.027255669236183167,
0.02654094807803631,
0.003642377909272909,
-0.008734611794352531,
0.01979244500398636,
0.056251414120197296,
0.02375214174389839,
0.03955308720469475,
0.038314349949359894,
0.008878827095031738,
0.01848010905086994,
0.01250176876783371,
0.03694935888051987,
0.03550425171852112,
0.0312771312892437,
0.032640524208545685,
-0.006786041893064976,
-0.011995598673820496,
-0.003510696580633521,
-0.1748569756746292,
0.031862832605838776,
-6.625211057509187e-33,
0.029278013855218887,
-0.004233104642480612,
0.01915569230914116,
-0.012319926172494888,
-0.0007519091595895588,
0.040033865720033646,
-0.013172677718102932,
0.022339288145303726,
-0.014903722330927849,
-0.03161730617284775,
0.00022868339146953076,
0.013912067748606205,
0.033479563891887665,
-0.002145674778148532,
0.02127659134566784,
-0.018653465434908867,
-0.008292585611343384,
0.045111022889614105,
0.02304971031844616,
-0.005113708321005106,
0.011666201055049896,
0.03090055286884308,
0.003142140805721283,
0.02674274705350399,
-0.033101581037044525,
0.038453876972198486,
0.007439404726028442,
-0.01041131280362606,
-0.013449706137180328,
-0.04067530483007431,
-0.005290851462632418,
0.026073625311255455,
0.0003405211609788239,
-0.035254932940006256,
0.021067136898636818,
-0.04120030254125595,
-0.01973429135978222,
-0.0018757549114525318,
-0.011130355298519135,
-0.061929479241371155,
-0.03820686787366867,
0.04881101846694946,
-0.003925773315131664,
-0.03782026842236519,
-0.06598138809204102,
0.04898109287023544,
0.020407164469361305,
0.01112440600991249,
-0.008196424692869186,
0.003850119886919856,
0.000990925240330398,
-0.019337855279445648,
-0.01560674887150526,
0.03929586708545685,
-0.0025808927603065968,
0.02403460443019867,
-0.00795001070946455,
-0.0004711742221843451,
0.008715507574379444,
-0.04125029966235161,
0.0443018339574337,
-0.05754922330379486,
0.014812865294516087,
0.011846235021948814,
-0.002257842570543289,
0.01217376347631216,
0.009673841297626495,
0.020349079743027687,
0.035959504544734955,
-0.009771797806024551,
-0.047178830951452255,
0.05436612665653229,
-0.04051738232374191,
-0.010912247002124786,
-0.0002049495669780299,
-0.04653672128915787,
0.01557162031531334,
-0.006100737489759922,
0.001854525413364172,
0.051015209406614304,
-0.006665186490863562,
-0.02463257499039173,
0.012979925610125065,
-0.03238530829548836,
-0.027143444865942,
0.0006703271646983922,
0.05995725467801094,
0.011033907532691956,
-0.0037734387442469597,
-0.005443099420517683,
0.01098236907273531,
0.019966479390859604,
-0.008541897870600224,
-0.03670806065201759,
0.00874810665845871,
7.347470786168895e-33,
-0.02466624602675438,
-0.027101723477244377,
-0.0013062672223895788,
-0.0025137297343462706,
0.030395012348890305,
-0.02918245457112789,
0.01731945015490055,
0.033870160579681396,
-0.019628746435046196,
0.05155098810791969,
0.0011967887403443456,
-0.03413664922118187,
-0.013143342919647694,
0.03861100226640701,
0.02833634428679943,
-0.005017145071178675,
-0.009420936927199364,
-0.006991230882704258,
0.02692408673465252,
0.005435454659163952,
-0.04548339918255806,
0.02458794228732586,
-0.03115716762840748,
0.028617918491363525,
0.016684256494045258,
0.0408993735909462,
-0.036713313311338425,
-0.018310045823454857,
0.008140655234456062,
-0.030051536858081818,
-0.013001220300793648,
-0.01703784242272377,
-0.01305798813700676,
-0.0076388162560760975,
-0.012325022369623184,
0.0092619638890028,
0.0003707027353812009,
-0.04191216826438904,
0.010004152543842793,
-0.01694127544760704,
0.03835724666714668,
0.02962380275130272,
-0.010560397990047932,
0.02104168012738228,
0.003214075928553939,
0.013324650935828686,
-0.024412427097558975,
0.027737408876419067,
-0.026503415778279305,
-0.00009521421452518553,
-0.021983562037348747,
0.01782154105603695,
0.0207241028547287,
0.0293564535677433,
-0.013719266280531883,
-0.052796296775341034,
0.014696727506816387,
0.022044695913791656,
-0.025480901822447777,
-0.04551943391561508,
-0.028366178274154663,
0.017876427620649338,
-0.032936785370111465,
0.0003726367431227118,
-0.020748509094119072,
-0.031679484993219376,
-0.0333845280110836,
-0.011699728667736053,
0.011165624484419823,
0.034144360572099686,
0.03834029659628868,
-0.0004470835265237838,
-0.010593670420348644,
0.00577727984637022,
0.055691298097372055,
0.02480522356927395,
-0.021715380251407623,
0.030335834249854088,
-0.02287769503891468,
-0.012680716812610626,
0.0004273205704521388,
0.03262018412351608,
0.0264073945581913,
-0.004635898396372795,
-0.0023720317985862494,
0.0018243783852085471,
-0.015197300352156162,
-0.019034413620829582,
0.004925169516354799,
0.0030171354301273823,
-0.016682611778378487,
-0.046647392213344574,
-0.004347866866737604,
0.01888236217200756,
0.008028406649827957,
-1.290683293575512e-8,
-0.05579032748937607,
0.022633569315075874,
-0.03308960050344467,
0.03350833058357239,
0.02150861918926239,
0.02581731602549553,
0.004650492686778307,
0.0005991925718262792,
-0.0016985699767246842,
0.015686284750699997,
0.044701337814331055,
-0.017044933512806892,
-0.012294433079659939,
-0.004910251125693321,
0.0163541529327631,
-0.060302868485450745,
0.020427946001291275,
-0.02581305429339409,
0.04453105852007866,
0.008641918189823627,
0.016325462609529495,
0.02649957686662674,
0.024739516898989677,
-0.0220680870115757,
0.009077309630811214,
0.008298906497657299,
0.05002403259277344,
-0.05836573243141174,
-0.01792571321129799,
-0.018544534221291542,
-0.00667328666895628,
-0.03034551627933979,
-0.0027635586448013783,
0.025477418676018715,
-0.0031457969453185797,
-0.013578901067376137,
0.010452983900904655,
-0.01236177422106266,
-0.013944623060524464,
0.008490381762385368,
0.036235928535461426,
-0.0006207863334566355,
-0.032799795269966125,
-0.026975814253091812,
-0.019428741186857224,
0.025602232664823532,
0.0026100005488842726,
-0.0022637927904725075,
0.07780306041240692,
-0.030504493042826653,
-0.02007179893553257,
-0.0448114313185215,
0.012176807969808578,
-0.021695280447602272,
0.008608929812908173,
0.002270611934363842,
0.0016840724274516106,
-0.02934000827372074,
-0.05411725118756294,
-0.006421531084924936,
0.03382124379277229,
0.02149004302918911,
-0.03847504034638405,
-0.0215153731405735
] | neo4j-building-a-topic-graph-with-prismatic-interest-graph-api | https://markhneedham.com/blog/2015/02/13/neo4j-building-a-topic-graph-with-prismatic-interest-graph-api |
false | 2015-02-22 08:58:57 | R/dplyr: Extracting data frame column value for filtering with %in% | [
"r-2",
"rstats"
] | [
"R"
] | I've been playing around with http://cran.rstudio.com/web/packages/dplyr/vignettes/introduction.html[dplyr] over the weekend and wanted to extract the values from a data frame column to use in a later filtering step.
I had a data frame:
[source,r]
----
library(dplyr)
df = data.frame(userId = c(1,2,3,4,5), score = c(2,3,4,5,5))
----
And wanted to extract the userIds of those people who have a score greater than 3. I started with:
[source,r]
----
highScoringPeople = df %>% filter(score > 3) %>% select(userId)
> highScoringPeople
userId
1 3
2 4
3 5
----
And then filtered the data frame expecting to get back those 3 people:
[source,r]
----
> df %>% filter(userId %in% highScoringPeople)
[1] userId score
<0 rows> (or 0-length row.names)
----
No rows! I created vector with the numbers 3-5 to make sure that worked:
[source,r]
----
> df %>% filter(userId %in% c(3,4,5))
userId score
1 3 4
2 4 5
3 5 5
----
That works as expected so +++<cite>+++highScoringPeople+++</cite>+++ obviously isn't in the right format to facilitate an 'in lookup'. Let's explore:
[source,r]
----
> str(c(3,4,5))
num [1:3] 3 4 5
> str(highScoringPeople)
'data.frame': 3 obs. of 1 variable:
$ userId: num 3 4 5
----
Now it's even more obvious why it doesn't work - +++<cite>+++highScoringPeople+++</cite>+++ is still a data frame when we need it to be a vector/list.
One way to fix this is to extract the userIds using the $ syntax instead of the select function:
[source,r]
----
highScoringPeople = (df %>% filter(score > 3))$userId
> str(highScoringPeople)
num [1:3] 3 4 5
> df %>% filter(userId %in% highScoringPeople)
userId score
1 3 4
2 4 5
3 5 5
----
Or if we want to do the column selection using dplyr we can http://stackoverflow.com/questions/21618423/extract-a-dplyr-tbl-column-as-a-vector[extract the values for the column like this]:
[source,r]
----
highScoringPeople = (df %>% filter(score > 3) %>% select(userId))[[1]]
> str(highScoringPeople)
num [1:3] 3 4 5
----
Not so difficult after all. | null | null | [
0.014134415425360203,
0.006265747826546431,
0.019143689423799515,
0.03342883288860321,
0.061498045921325684,
0.006721279118210077,
0.0040237209759652615,
-0.025531649589538574,
0.011512651108205318,
-0.009001386351883411,
0.011299142614006996,
0.004032111261039972,
-0.06064395233988762,
0.03278295323252678,
-0.025685561820864677,
0.09149213135242462,
0.04188861697912216,
0.010166834108531475,
-0.00912968534976244,
-0.005839322693645954,
0.05793120339512825,
0.04956430569291115,
-0.0011381106451153755,
0.03572402894496918,
0.050763338804244995,
0.01256280206143856,
0.006891941651701927,
0.01011120155453682,
-0.034085728228092194,
0.04363251477479935,
0.05758548900485039,
0.03738420829176903,
-0.0019359304569661617,
-0.027131684124469757,
0.02057650312781334,
-0.0022482473868876696,
-0.007581206038594246,
-0.01165745034813881,
0.0016224763821810484,
-0.031179482117295265,
-0.07226280868053436,
-0.009188376367092133,
-0.03173049911856651,
0.029184777289628983,
-0.03278964385390282,
-0.00005546813190449029,
-0.04803750663995743,
0.02483399771153927,
0.00601581484079361,
-0.007731662597507238,
-0.050226520746946335,
0.03795306012034416,
0.012254334054887295,
-0.03874228522181511,
0.035347629338502884,
0.05950665473937988,
0.020830722525715828,
-0.07221560925245285,
0.03987622633576393,
-0.05201370641589165,
0.007589769549667835,
0.01831233687698841,
-0.003058808157220483,
0.03446080535650253,
0.004370837472379208,
-0.006918107159435749,
-0.020059090107679367,
0.04006551206111908,
-0.04559498652815819,
-0.004972844384610653,
-0.0465555340051651,
-0.025775594636797905,
-0.03501763567328453,
-0.007117767818272114,
-0.02381948195397854,
-0.008812753483653069,
-0.007782156113535166,
0.04059762880206108,
0.042658980935811996,
0.03539395332336426,
-0.006644655019044876,
-0.0355672650039196,
-0.004081191960722208,
-0.001417064922861755,
0.012867387384176254,
-0.04035942256450653,
-0.026843762025237083,
-0.06018882617354393,
-0.05436423793435097,
0.04768304154276848,
-0.046193066984415054,
-0.03611196205019951,
0.024626323953270912,
0.011362377554178238,
-0.04316558688879013,
-0.004220528993755579,
0.023222381249070168,
-0.0284645427018404,
0.006569978781044483,
-0.007150687277317047,
-0.07128717750310898,
-0.0492074228823185,
0.07100732624530792,
0.032448019832372665,
-0.08399820327758789,
0.02175178751349449,
-0.01409155409783125,
0.010190020315349102,
0.0033023450523614883,
-0.0007874318980611861,
-0.017372993752360344,
0.006977957673370838,
-0.030369404703378677,
-0.026126189157366753,
-0.05254462733864784,
0.07615888863801956,
0.05887383222579956,
-0.0034451938699930906,
-0.00287262792699039,
0.006468396633863449,
0.04093344509601593,
0.02621341310441494,
0.0016869977116584778,
0.045565929263830185,
-0.02506466768682003,
0.0401022806763649,
0.01415659673511982,
0.049885690212249756,
-0.010437553748488426,
-0.08164583891630173,
0.006117840297520161,
0.06446753442287445,
-0.019854240119457245,
0.010314631275832653,
-0.0084269093349576,
-0.029216067865490913,
-0.022851962596178055,
-0.023846978321671486,
0.03326031193137169,
0.018185999244451523,
0.05939166247844696,
-0.017986033111810684,
-0.021487578749656677,
-0.015263134613633156,
0.050137706100940704,
0.046448949724435806,
0.026808639988303185,
-0.0327896848320961,
-0.045001715421676636,
0.0031173559837043285,
0.03868691623210907,
0.0496286116540432,
0.09777045994997025,
-0.0062130955047905445,
0.03279043734073639,
0.0658084824681282,
0.03127514570951462,
-0.01130695827305317,
-0.022203492000699043,
0.022030118852853775,
0.03717052564024925,
0.026477040722966194,
0.015646593645215034,
0.04358354210853577,
-0.012481944635510445,
-0.04803703725337982,
0.019004659727215767,
0.03924759849905968,
-0.03031623549759388,
-0.015200532041490078,
-0.04832753911614418,
-0.05898851528763771,
0.057269543409347534,
-0.027318598702549934,
0.02679254487156868,
0.031603772193193436,
0.06434313952922821,
0.044216953217983246,
0.04993617534637451,
0.027579791843891144,
-0.07094524055719376,
0.037826139479875565,
-0.021687109023332596,
0.009253762662410736,
0.05432216823101044,
-0.023793313652276993,
0.0930338054895401,
0.02559511922299862,
0.040190763771533966,
0.05603723227977753,
-0.06729526072740555,
-0.05054014176130295,
-0.035331666469573975,
-0.003289223415777087,
0.03193620592355728,
-0.042309097945690155,
-0.01908683218061924,
0.0984027311205864,
0.02161971665918827,
0.02162867970764637,
0.009775390848517418,
0.03822464868426323,
0.03070911392569542,
-0.03249086067080498,
-0.038292765617370605,
-0.007402895018458366,
0.016667280346155167,
-0.008933511562645435,
0.011212327517569065,
0.04302877560257912,
-0.009441472589969635,
0.03353831544518471,
0.0018733127508312464,
-0.01866910234093666,
0.028683064505457878,
0.03199173882603645,
0.042922429740428925,
0.04488154873251915,
0.044285353273153305,
-0.026840198785066605,
0.026598487049341202,
-0.006873755250126123,
-0.006771060172468424,
-0.03577520698308945,
-0.015017969533801079,
0.144346222281456,
0.03916646167635918,
0.017616204917430878,
-0.07849449664354324,
0.0339808315038681,
-0.014950304292142391,
-0.013899284414947033,
0.02599887177348137,
-0.02104596234858036,
-0.0428520105779171,
0.0345255471765995,
-0.03800154849886894,
-0.009524133056402206,
0.027967404574155807,
-0.009669752791523933,
0.0028501292690634727,
0.05734233930706978,
-0.006426398176699877,
0.016278138384222984,
0.006946607492864132,
-0.002556819934397936,
0.01415734551846981,
-0.01209256611764431,
-0.08020158857107162,
-0.011853325180709362,
0.058973267674446106,
-0.01534267421811819,
0.009075745940208435,
-0.02711835876107216,
0.012521747499704361,
-0.013334753923118114,
-0.049229901283979416,
0.003773396834731102,
0.051422085613012314,
0.05975866690278053,
-0.03896182030439377,
0.029738549143075943,
-0.028534861281514168,
-0.03715941682457924,
-0.018928010016679764,
-0.025592969730496407,
-0.01794690266251564,
-0.03820297122001648,
-0.008463107980787754,
0.010053003206849098,
0.015392462722957134,
0.010784034617245197,
-0.022328101098537445,
0.012503912672400475,
0.005974224302917719,
0.02002120390534401,
0.04128203168511391,
-0.011112350970506668,
0.0038622936699539423,
-0.01639428921043873,
0.013857964426279068,
0.05725780129432678,
-0.008719168603420258,
-0.03921099007129669,
-0.0029046719428151846,
-0.053497958928346634,
0.0332883857190609,
-0.006036772858351469,
-0.028479808941483498,
-0.0020210943184792995,
-0.003909430466592312,
0.028340337797999382,
0.02472645789384842,
0.031484443694353104,
0.014496366493403912,
0.008484521880745888,
0.013841715641319752,
0.03788692504167557,
0.027531718835234642,
0.06439115852117538,
0.015836579725146294,
0.019455082714557648,
0.08108411729335785,
-0.012191574089229107,
0.002135248389095068,
-0.05599665641784668,
-0.021953288465738297,
-0.017393555492162704,
-0.2408069670200348,
-0.0009553294512443244,
-0.02853894606232643,
-0.026805315166711807,
0.007679657079279423,
-0.06955055147409439,
0.01034067664295435,
-0.016478465870022774,
-0.010053872130811214,
0.0116183552891016,
0.015228021889925003,
-0.022694867104291916,
-0.020103950053453445,
0.02432505413889885,
0.007861891761422157,
0.03478957712650299,
-0.010605515912175179,
-0.03651237487792969,
0.0001781292085070163,
0.0705999955534935,
0.04503859579563141,
-0.038996174931526184,
-0.03309030830860138,
0.06222029775381088,
0.011645152233541012,
0.06217864900827408,
-0.03016008250415325,
0.013681584037840366,
-0.053339194506406784,
-0.06705447286367416,
0.033796634525060654,
-0.04102873057126999,
0.02205611765384674,
-0.02903198078274727,
0.02625160478055477,
-0.05441637709736824,
0.025652116164565086,
0.03487144410610199,
0.01267273724079132,
0.026150651276111603,
-0.04575025662779808,
-0.02000156231224537,
0.006158563774079084,
-0.012790560722351074,
0.05305682122707367,
-0.0006981347687542439,
-0.056885454803705215,
0.0010231327032670379,
-0.03218976408243179,
0.07508876919746399,
-0.009310715831816196,
-0.01203459408134222,
-0.030512068420648575,
-0.0015378367388620973,
-0.05309022590517998,
-0.01006320584565401,
-0.017937976866960526,
0.02516322396695614,
-0.04763015732169151,
-0.029730936512351036,
-0.006474785506725311,
-0.030567815527319908,
0.007513189222663641,
-0.04693612456321716,
-0.035160135477781296,
-0.06105055660009384,
-0.06995842605829239,
-0.000053018389735370874,
0.03780646622180939,
0.03464530408382416,
-0.05539513751864433,
0.005812753923237324,
0.00035733540426008403,
-0.11595246940851212,
0.015625791624188423,
-0.04207878187298775,
-0.0065557281486690044,
-0.010548083111643791,
-0.01585535891354084,
0.053481608629226685,
-0.03695758059620857,
-0.041326288133859634,
0.007720406167209148,
0.020685264840722084,
0.024548951536417007,
-0.007848896086215973,
0.007498203776776791,
0.012996469624340534,
-0.027141358703374863,
-0.024116037413477898,
0.05646953731775284,
-0.055300358682870865,
-0.012546936050057411,
-0.008930402807891369,
-0.020260008051991463,
0.04999024048447609,
0.023204978555440903,
-0.006964756175875664,
0.03752244636416435,
0.04139895364642143,
0.040221355855464935,
-0.022957950830459595,
-0.009708390571177006,
-0.08952272683382034,
-0.04395528510212898,
0.009517205879092216,
-0.10020245611667633,
0.0073511721566319466,
-0.011789628304541111,
0.0016445688670501113,
0.005432725418359041,
-0.007378821261227131,
0.012132221832871437,
-0.05950386822223663,
-0.011196917854249477,
-0.008896316401660442,
-0.0071322317235171795,
0.02616548351943493,
-0.005461153574287891,
0.03362801671028137,
-0.04775971174240112,
0.009236661717295647,
-0.016372650861740112,
-0.035135410726070404,
-0.062210675328969955,
-0.02340533770620823,
0.029045378789305687,
-0.003514054464176297,
-0.02777695097029209,
0.022942377254366875,
0.009067469276487827,
0.01063714548945427,
0.04097481444478035,
-0.0066491481848061085,
0.028026457875967026,
-0.005065225064754486,
-0.048955950886011124,
0.0006345256697386503,
0.015210402198135853,
0.03301657363772392,
-0.03200618177652359,
-0.00014469200687017292,
-0.022344093769788742,
0.03793337196111679,
0.023242849856615067,
-0.009005658328533173,
0.05468709394335747,
0.014994450844824314,
-0.008515143766999245,
0.01855888031423092,
0.005469406954944134,
0.022131338715553284,
-0.0030245347879827023,
-0.039531972259283066,
-0.01065084245055914,
-0.0033318307250738144,
0.06362729519605637,
-0.011006136424839497,
0.007724674418568611,
-0.06934919953346252,
0.011723866686224937,
-0.03361985459923744,
0.008478733710944653,
-0.03336196020245552,
0.005300186108797789,
0.04275723546743393,
-0.016034040600061417,
0.01464259997010231,
0.0007202341221272945,
-0.01634879782795906,
-0.028356200084090233,
0.05984029918909073,
0.005085187032818794,
0.03919536620378494,
0.006501049268990755,
-0.028781048953533173,
0.0339326374232769,
0.016792772337794304,
0.004177871160209179,
0.007586599327623844,
0.000159988907398656,
-0.00561192911118269,
0.010216821916401386,
-0.013331268914043903,
0.026304462924599648,
0.027163496240973473,
0.002698067110031843,
-0.004739216063171625,
-0.039054933935403824,
-0.04306911304593086,
-0.04494751617312431,
-0.0020688059739768505,
-0.0018925725016742945,
-0.017530402168631554,
-0.04665830358862877,
-0.05773632228374481,
-0.00426592817530036,
0.04131763055920601,
-0.041532013565301895,
0.03447217494249344,
-0.04470811411738396,
0.019138338044285774,
-0.04207771271467209,
0.022671746090054512,
0.06693296134471893,
-0.06282808631658554,
-0.008100270293653011,
0.010311989113688469,
-0.011878781951963902,
0.03797708451747894,
-0.001157246297225356,
-0.08611813187599182,
-0.011916697956621647,
-0.034567102789878845,
0.03460480272769928,
-0.013619222678244114,
-0.044057246297597885,
-0.09572067856788635,
0.018328167498111725,
0.0022588754072785378,
0.05643722042441368,
-0.02816111221909523,
-0.008738132193684578,
-0.009386271238327026,
0.005890170112252235,
-0.011093654669821262,
-0.0013551664305850863,
-0.05642871931195259,
0.009270107373595238,
-0.011757345870137215,
-0.012873598374426365,
-0.011555615812540054,
0.03370087221264839,
0.0406411774456501,
-0.030498407781124115,
-0.020178750157356262,
-0.062058981508016586,
0.01900092326104641,
0.019838150590658188,
0.03785104677081108,
0.01760847494006157,
0.024017730727791786,
-0.027295870706439018,
0.009263447485864162,
-0.01871483586728573,
-0.01567559316754341,
-0.009984795935451984,
-0.028942367061972618,
0.044263485819101334,
0.045243583619594574,
0.006912511307746172,
0.013923846185207367,
-0.016506237909197807,
-0.03549359738826752,
0.0590231753885746,
-0.015693647786974907,
-0.048685137182474136,
-0.010027682408690453,
-0.03057880699634552,
0.0355716310441494,
0.03245024383068085,
0.021696720272302628,
-0.023772334679961205,
0.028568660840392113,
0.027202658355236053,
0.009270953945815563,
0.03415779396891594,
0.021405888721346855,
0.04997292533516884,
-0.014061568304896355,
0.0005975368549115956,
-0.07455109804868698,
-0.00912443920969963,
0.04365310072898865,
-0.00048233228153549135,
0.0043897745199501514,
-0.03836736083030701,
-0.030859440565109253,
0.037950240075588226,
-0.030934613198041916,
-0.05888883396983147,
0.0448308102786541,
0.0027771582826972008,
0.027852239087224007,
-0.023960046470165253,
-0.040419433265924454,
-0.03320843726396561,
0.017530029639601707,
-0.047390758991241455,
-0.02049080654978752,
-0.04020266607403755,
0.048857394605875015,
-0.03248095512390137,
0.0059894416481256485,
0.011015256866812706,
-0.01662076823413372,
0.06691154092550278,
0.03870844095945358,
-0.01124720461666584,
0.039811182767152786,
-0.04182301461696625,
0.0010661756386980414,
0.023143887519836426,
-0.03628186136484146,
0.01856205426156521,
0.015901930630207062,
0.028702760115265846,
-0.016427069902420044,
0.02754490077495575,
0.008749246597290039,
0.0073183258064091206,
-0.05810972675681114,
0.09041235595941544,
0.026744293048977852,
-0.05353960394859314,
-0.05407382547855377,
0.015979522839188576,
-0.003537388052791357,
-0.014792116358876228,
0.012552379630506039,
-0.021525835618376732,
-0.03284953162074089,
0.058316830545663834,
0.014694439247250557,
0.010862109251320362,
0.05242040008306503,
0.0006502808537334204,
-0.027986038476228714,
0.006542185787111521,
0.06808996200561523,
0.07715600728988647,
0.05288638174533844,
-0.01802401803433895,
0.06245420500636101,
-0.009760890156030655,
-0.04320209100842476,
0.03853626176714897,
-0.05858781561255455,
0.027706794440746307,
-0.042419787496328354,
-0.021271932870149612,
0.04350315406918526,
0.002937262412160635,
0.05753525346517563,
-0.0159138310700655,
-0.009489764459431171,
-0.011616997420787811,
0.0024450873024761677,
0.0584864504635334,
0.020825151354074478,
-0.009189656004309654,
0.03349263593554497,
-0.020870283246040344,
-0.0036002604756504297,
0.004233825486153364,
-0.0016147454734891653,
-0.010430173948407173,
0.00028114832821302116,
-0.006236034445464611,
-0.004314734134823084,
0.013946975581347942,
0.011123144999146461,
0.09062209725379944,
-0.055490825325250626,
-0.028289470821619034,
-0.02441004104912281,
0.06824029982089996,
-0.016271917149424553,
-0.004210629500448704,
0.010461944155395031,
-0.022770611569285393,
-0.04005465656518936,
-0.05530170723795891,
-0.03609295189380646,
-0.03160477429628372,
-0.01723484881222248,
0.013622177764773369,
-0.03271964192390442,
0.024522216990590096,
0.0018320981180295348,
-0.003677212866023183,
-0.025598520413041115,
-0.049564167857170105,
-0.04292212799191475,
-0.06146078556776047,
-0.06998703628778458,
0.018724767491221428,
0.0048872740007936954,
-0.019698556512594223,
-0.024637890979647636,
-0.016229702159762383,
-0.009015326388180256,
-0.007734172977507114,
-0.018546869978308678,
-0.047936663031578064,
-0.036357708275318146,
0.0055366819724440575,
0.013313057832419872,
0.02502281777560711,
0.018648335710167885,
0.044354669749736786,
0.019160635769367218,
0.005507939960807562,
0.007468142546713352,
0.012629286386072636,
0.054090648889541626,
0.019966449588537216,
-0.02675510384142399,
-0.06491024047136307,
0.001152470475062728,
-0.0055485256016254425,
0.003201149869710207,
-0.07912414520978928,
0.01615232042968273,
-0.0007050714921206236,
0.008221904747188091,
0.04241945222020149,
-0.011410078033804893,
0.01547157485038042,
-0.014121057465672493,
-0.03858434036374092,
0.02368845045566559,
0.03454956039786339,
0.02432604879140854,
-0.03922233730554581,
0.06769408285617828,
0.017146365717053413,
0.01332397572696209,
-0.05619298294186592,
-0.03619471192359924,
-0.00394763657823205,
-0.011146234348416328,
-0.07254502922296524,
-0.01678856462240219,
-0.05582228675484657,
-0.0936419740319252,
-0.012660220265388489,
0.004114452749490738,
-0.07748306542634964,
-0.0022200162056833506,
-0.006689438596367836,
0.002156981732696295,
-0.03379565849900246,
0.03237456828355789,
-0.05301765725016594,
0.027812080457806587,
-0.027497192844748497,
-0.018161799758672714,
-0.012270805425941944,
0.05527261644601822,
-0.02598833478987217,
0.015597760677337646,
-0.0039596473798155785,
-0.02766760066151619,
0.0007439384935423732,
-0.022317007184028625,
0.01746680773794651,
0.0760796070098877,
-0.010989019647240639,
0.0096356812864542
] | [
-0.06769406795501709,
0.0008027350413613021,
-0.05747939646244049,
-0.02374287322163582,
0.0717046931385994,
-0.03955753892660141,
-0.01723983883857727,
0.049567483365535736,
0.026839595288038254,
0.01536170206964016,
0.058405615389347076,
-0.033447034657001495,
0.055899783968925476,
-0.04041521996259689,
0.005212677177041769,
-0.007583342958241701,
-0.004451226908713579,
-0.015162513591349125,
-0.031852900981903076,
0.036288369446992874,
-0.03958962857723236,
-0.04514789581298828,
-0.04828793182969093,
-0.04377075284719467,
0.068223737180233,
0.03585779666900635,
-0.032901689410209656,
-0.0677332654595375,
-0.021426338702440262,
-0.20377223193645477,
0.0006224857643246651,
0.014175907708704472,
0.06863602995872498,
-0.024156881496310234,
0.014735235832631588,
0.010660518892109394,
0.011565214022994041,
0.014840872958302498,
0.05375721678137779,
0.024228453636169434,
0.01705273799598217,
-0.02554936520755291,
-0.038779594004154205,
-0.014540229924023151,
0.011526329442858696,
0.04679781198501587,
-0.06509090960025787,
-0.035997696220874786,
-0.003784723347052932,
0.04037193953990936,
-0.044539209455251694,
0.01366861630231142,
-0.004972502123564482,
0.02155696041882038,
0.02580547332763672,
0.023242542520165443,
0.042223263531923294,
0.009677146561443806,
-0.03452928736805916,
0.03467731550335884,
0.009852423332631588,
0.0036747290287166834,
-0.16986803710460663,
0.09257825464010239,
-0.0036412032786756754,
0.026400888338685036,
-0.021060483530163765,
0.0026404322125017643,
0.000743622425943613,
0.04015982151031494,
-0.0013634000206366181,
0.01347674522548914,
-0.03075389564037323,
0.027957824990153313,
-0.019851043820381165,
-0.017872950062155724,
-0.035938698798418045,
-0.024892684072256088,
0.07278949022293091,
0.0246440302580595,
-0.00980558805167675,
0.01914740912616253,
0.00953135546296835,
-0.021308161318302155,
0.011419229209423065,
0.0328558124601841,
-0.005841114092618227,
-0.014216442592442036,
-0.001562802353873849,
0.01271501462906599,
0.012039086781442165,
0.03336168825626373,
0.02743433602154255,
0.06587153673171997,
-0.08672558516263962,
-0.019407322630286217,
0.03381099924445152,
0.036515191197395325,
0.0006911527598276734,
0.3934765160083771,
-0.006721837911754847,
-0.016186505556106567,
-0.016697272658348083,
0.031381312757730484,
-0.004368152003735304,
-0.025541439652442932,
-0.05242081731557846,
-0.04698074609041214,
0.03536660596728325,
-0.01594863086938858,
-0.011040546000003815,
-0.02482552081346512,
0.036123353987932205,
-0.046364981681108475,
0.05602847784757614,
-0.022570248693227768,
0.027023838832974434,
-0.020350323989987373,
0.025877783074975014,
0.0006106882938183844,
-0.004530768841505051,
-0.007338987663388252,
0.034595753997564316,
0.029967686161398888,
0.04138883575797081,
0.01682652346789837,
0.022431164979934692,
0.08137869834899902,
0.0477457270026207,
0.04053241387009621,
0.0695827379822731,
-0.0165084358304739,
-0.1191411092877388,
-0.00510083232074976,
-0.028420181944966316,
0.006035168655216694,
0.038181599229574203,
-0.0007480751373805106,
-0.03124929592013359,
0.015040474943816662,
-0.004378943704068661,
0.02844412997364998,
0.026790834963321686,
0.018174462020397186,
-0.030716869980096817,
0.13664768636226654,
-0.028540952131152153,
-0.026195960119366646,
-0.04403373599052429,
-0.06790055334568024,
0.042860426008701324,
0.04469010978937149,
-0.014449373818933964,
-0.009528790600597858,
-0.026808101683855057,
0.0289603378623724,
0.04678640142083168,
-0.07269737869501114,
-0.07875283062458038,
-0.03232382610440254,
0.0043531605042517185,
-0.014291954226791859,
-0.05337264761328697,
0.017217500135302544,
0.0657813772559166,
-0.03708762675523758,
-0.03209170699119568,
0.04717620834708214,
-0.027002181857824326,
-0.047600578516721725,
0.029314691200852394,
-0.024091167375445366,
-0.0725565180182457,
0.021215928718447685,
0.04460965469479561,
0.01017027534544468,
-0.035958003252744675,
0.006857386324554682,
0.05225446820259094,
0.014305601827800274,
0.005015253555029631,
0.007418331690132618,
-0.05032635107636452,
-0.019821686670184135,
-0.03382904827594757,
-0.05047526955604553,
-0.06844645738601685,
0.020039992406964302,
0.0007771599339321256,
-0.006889974698424339,
-0.034213971346616745,
-0.03779381141066551,
-0.06447703391313553,
0.04407930001616478,
-0.0667540654540062,
-0.022012894973158836,
0.0566955991089344,
-0.0081425029784441,
-0.02601183019578457,
-0.046073347330093384,
-0.012359904125332832,
0.019184742122888565,
0.057086244225502014,
0.05034641548991203,
-0.047682009637355804,
0.01107256393879652,
0.016726505011320114,
-0.061579860746860504,
0.04962342977523804,
0.01578790694475174,
0.006327838636934757,
-0.010883241891860962,
0.011216319166123867,
0.010340176522731781,
-0.020732760429382324,
0.008280566893517971,
0.0346406027674675,
-0.02032659761607647,
0.008191855624318123,
0.026355070993304253,
0.012260500341653824,
-0.03595651313662529,
-0.024201810359954834,
-0.35941082239151,
-0.031489286571741104,
0.011099536903202534,
0.022270942106842995,
-0.010189593769609928,
-0.04511087015271187,
-0.004669610410928726,
0.014416994526982307,
-0.02164337784051895,
0.11027756333351135,
0.04369070753455162,
0.023110877722501755,
-0.027082175016403198,
-0.09306973963975906,
0.014021571725606918,
0.05331101268529892,
-0.007368536666035652,
-0.012117765843868256,
-0.021551422774791718,
-0.035758960992097855,
-0.02406327612698078,
-0.024713890627026558,
0.008700759150087833,
-0.015703996643424034,
0.06046588346362114,
-0.025802889838814735,
0.1365719437599182,
0.03939198702573776,
0.004617305472493172,
-0.00592793058604002,
0.03132377192378044,
0.015604618936777115,
0.003292152425274253,
-0.03367646411061287,
0.05949931591749191,
-0.06615805625915527,
-0.04280444607138634,
0.03720902279019356,
0.0030642354395240545,
-0.046721190214157104,
-0.006458717864006758,
0.002005974994972348,
-0.015037954784929752,
-0.04457733407616615,
-0.03261704370379448,
-0.013678173534572124,
-0.008971638046205044,
0.02879313752055168,
-0.010362868197262287,
0.07323060184717178,
0.057856857776641846,
0.007046670187264681,
0.061256665736436844,
0.022521164268255234,
0.01865290477871895,
0.0021700202487409115,
-0.08522756397724152,
0.02398170717060566,
-0.01710100658237934,
-0.02777574025094509,
0.007159857545047998,
0.015535235404968262,
0.05382680892944336,
-0.0659392774105072,
-0.006355930585414171,
-0.0016001372132450342,
0.028221942484378815,
-0.01649179495871067,
0.017269350588321686,
0.020655646920204163,
0.0012325927382335067,
0.09164757281541824,
-0.028117379173636436,
0.08217596262693405,
0.027690643444657326,
0.05028000846505165,
-0.06411058455705643,
-0.05537421256303787,
-0.0012178923934698105,
-0.013266154564917088,
0.040338777005672455,
-0.041933588683605194,
0.01493124570697546,
-0.01711343228816986,
0.0743948444724083,
0.015035700052976608,
-0.003601174335926771,
-0.010476648807525635,
0.01918984018266201,
0.027576960623264313,
0.01068132370710373,
-0.025845816358923912,
-0.030303943902254105,
-0.04567314311861992,
0.023600397631525993,
-0.007740947883576155,
-0.29067811369895935,
-0.00023662573948968202,
0.026000166311860085,
0.023242969065904617,
0.0021262294612824917,
-0.003133063670247793,
0.026019539684057236,
-0.07080806791782379,
0.02703750506043434,
-0.030663110315799713,
-0.0007559038931503892,
0.05297350138425827,
0.04571571573615074,
-0.04095913842320442,
0.009038104675710201,
-0.024054771289229393,
0.025130625814199448,
-0.01701313816010952,
0.03943494334816933,
0.00579354353249073,
0.025338124483823776,
-0.05178985744714737,
0.13579222559928894,
-0.0031296273227781057,
-0.021099621430039406,
-0.023324009031057358,
0.003178386017680168,
-0.09709633141756058,
0.05959049239754677,
0.001904451521113515,
-0.00770801305770874,
-0.007357528433203697,
0.09856963157653809,
0.001943502458743751,
0.023003151640295982,
0.027374260127544403,
-0.02383997105062008,
0.04932594671845436,
0.041704095900058746,
-0.06117403134703636,
-0.013181190006434917,
0.015774518251419067,
-0.03039267286658287,
0.015013660304248333,
0.07753311842679977,
-0.033505819737911224,
0.008534581400454044,
-0.03393905982375145,
-0.03796592354774475,
-0.0012305586133152246,
0.01847033202648163,
0.02469543367624283,
-0.015152565203607082,
-0.01738179288804531,
0.026403171941637993,
0.022050024941563606,
0.010557732544839382,
0.004972247406840324,
0.01921907067298889,
-0.00466215331107378,
-0.015245167538523674,
-0.03473769128322601,
0.0893874540925026,
0.011561951600015163,
0.02274286188185215
] | [
0.012890837155282497,
0.015842081978917122,
-0.04341861978173256,
0.008112788200378418,
-0.002993420697748661,
-0.001991074299439788,
0.023845581337809563,
-0.012212290428578854,
-0.0280402060598135,
-0.027570156380534172,
-0.03223718702793121,
0.0004853605933021754,
-0.01453388761729002,
-0.02282070927321911,
0.021185001358389854,
-0.02193346992135048,
0.002165744546800852,
0.029099099338054657,
0.02404903806746006,
-0.01696186140179634,
-0.04164029657840729,
0.024606330320239067,
0.020486652851104736,
-0.008978442288935184,
-0.00011013460607500747,
0.05986733362078667,
-0.03375717252492905,
0.0066283224150538445,
0.030513925477862358,
-0.1086859256029129,
0.018915725871920586,
-0.02548699826002121,
0.022066202014684677,
0.02542324922978878,
-0.05008872598409653,
-0.010914088226854801,
-0.04192939028143883,
0.04575616121292114,
-0.009802051819860935,
0.005131155718117952,
-0.04129493981599808,
0.013155615888535976,
-0.0014308058889582753,
0.036523208022117615,
-0.023030515760183334,
-0.01074314210563898,
-0.053225062787532806,
-0.0015224093804135919,
0.01294342428445816,
-0.029270365834236145,
-0.06566725671291351,
0.016876161098480225,
0.014266656711697578,
0.011503555811941624,
0.0043686749413609505,
-0.03817765787243843,
-0.020133204758167267,
-0.03310522437095642,
0.0005187016213312745,
-0.029457179829478264,
-0.029177691787481308,
-0.009903708472847939,
0.005070237442851067,
-0.003723476082086563,
0.018425220623612404,
-0.017383480444550514,
-0.07935647666454315,
-0.011817571707069874,
0.02001092955470085,
0.019391164183616638,
-0.06086170673370361,
0.003594618756324053,
-0.030905425548553467,
-0.025995558127760887,
-0.03356145694851875,
0.012042042799293995,
-0.017066549509763718,
-0.04062233492732048,
0.017179129645228386,
0.020643098279833794,
-0.017083315178751945,
-0.0011407965794205666,
-0.019332677125930786,
0.01299222931265831,
-0.01176452450454235,
-0.010515004396438599,
0.03152972459793091,
-0.045378148555755615,
0.002813423750922084,
-0.010298063047230244,
0.001042541116476059,
0.03350134566426277,
0.045703720301389694,
0.00654155109077692,
-0.09448078274726868,
-0.005320368334650993,
-0.012403806671500206,
-0.01339041069149971,
-0.0033380077220499516,
0.8349287509918213,
-0.001104034367017448,
0.009018540382385254,
-0.0035802838392555714,
0.010954069904983044,
-0.028752487152814865,
-0.010510086081922054,
0.012667771428823471,
0.03713619336485863,
-0.026186147704720497,
-0.03640143573284149,
-0.007200429681688547,
0.07154694944620132,
0.040079206228256226,
0.023886045441031456,
0.02113206498324871,
0.025511400774121284,
0.03127695247530937,
0.0037584062665700912,
-0.0007563090184703469,
-0.0009862501174211502,
0.009212111122906208,
0.005550225730985403,
0.00346755376085639,
-0.017546948045492172,
-0.020718220621347427,
-0.13524599373340607,
0.018939519301056862,
-6.746910722333788e-33,
0.046717628836631775,
-0.024046283215284348,
0.011282875202596188,
-0.012044966220855713,
-0.0142603674903512,
0.005409410689026117,
-0.013677931390702724,
-0.02149338461458683,
0.0031925211660563946,
-0.006122088059782982,
0.012007435783743858,
0.012361649423837662,
0.043515682220458984,
0.006903073284775019,
0.027956770732998848,
-0.042021844536066055,
-0.023232808336615562,
0.03678085654973984,
0.004647021647542715,
-0.0058278427459299564,
0.02204895205795765,
-0.01517440564930439,
0.017474867403507233,
0.047514911741018295,
-0.009004180319607258,
-0.005218039266765118,
0.008518544025719166,
-0.006392947398126125,
0.01068648137152195,
-0.056248635053634644,
-0.017483223229646683,
0.025764038786292076,
-0.0006642501684837043,
0.0042479452677071095,
0.03575887158513069,
-0.04172242060303688,
0.012657083570957184,
0.014643878675997257,
-0.01840757392346859,
-0.0015750493621453643,
-0.01718122698366642,
0.007839434780180454,
-0.032379988580942154,
0.008238394744694233,
-0.036974888294935226,
-0.016751963645219803,
0.04252641275525093,
0.07306626439094543,
-0.03853406012058258,
0.031867615878582,
0.00701476912945509,
0.003066461067646742,
0.00232159486040473,
-0.013685337267816067,
-0.01558565441519022,
0.015595232136547565,
-0.006074910052120686,
0.011221982538700104,
0.008820523507893085,
-0.00007287403423106298,
-0.046423040330410004,
-0.003680209629237652,
0.008007832802832127,
-0.006406889762729406,
-0.0004630917392205447,
0.00868127029389143,
0.027349291369318962,
-0.04613025486469269,
0.032609663903713226,
-0.004309302195906639,
-0.01218512374907732,
0.048390112817287445,
-0.020665090531110764,
-0.007066987920552492,
0.03750025853514671,
-0.02090085670351982,
-0.02726759761571884,
-0.003433549078181386,
0.04091827571392059,
0.03512861952185631,
0.02227371372282505,
0.0013361055171117187,
0.0032982290722429752,
-0.014537478797137737,
-0.019819224253296852,
-0.022361353039741516,
0.012341170571744442,
-0.018140122294425964,
-0.032448019832372665,
-0.034476883709430695,
0.05483222380280495,
0.004116104915738106,
0.004805285017937422,
-0.02531801350414753,
0.02216111309826374,
6.835300550675931e-33,
0.007624696008861065,
-0.01486273854970932,
-0.005371277220547199,
-0.004639078862965107,
0.07118366658687592,
-0.04832527041435242,
0.023987269029021263,
-0.004281798377633095,
-0.023990007117390633,
0.018382318317890167,
-0.0192678552120924,
-0.03512392193078995,
-0.0029956535436213017,
0.02659977786242962,
0.06221206858754158,
0.002399634337052703,
0.016747325658798218,
0.015255728736519814,
-0.028669273480772972,
0.010541104711592197,
0.0037480657920241356,
0.01587817817926407,
0.017590612173080444,
0.017413118854165077,
0.016401031985878944,
0.033591944724321365,
0.008469908498227596,
-0.04553883150219917,
-0.008540375158190727,
-0.012648649513721466,
0.04147215560078621,
-0.010891779325902462,
-0.011077041737735271,
-0.01541237160563469,
0.0013768539065495133,
0.04497244954109192,
-0.002543944865465164,
-0.01522683072835207,
0.014100958593189716,
-0.004288890864700079,
-0.002207945566624403,
0.06159958243370056,
0.02246224321424961,
0.03344288095831871,
0.006123534869402647,
0.01357823982834816,
0.00510624423623085,
0.02999965474009514,
-0.028517669066786766,
0.020273707807064056,
-0.03195624426007271,
0.007564718835055828,
-0.003010884625837207,
0.026082681491971016,
0.026225190609693527,
-0.03253904730081558,
0.0018246809486299753,
-0.013292480260133743,
-0.029162315651774406,
0.02033015340566635,
-0.012134983204305172,
0.026948366314172745,
-0.021808220073580742,
0.02867881767451763,
-0.040684230625629425,
-0.015075192786753178,
-0.01488537061959505,
-0.0016374299302697182,
0.011526819318532944,
0.00012150126713095233,
-0.015294409357011318,
-0.05147865414619446,
0.019877273589372635,
0.025188693776726723,
0.0032169250771403313,
-0.02136150375008583,
-0.05123181641101837,
0.04298584163188934,
0.007309214677661657,
0.03866976499557495,
0.02463085949420929,
-0.00755925802513957,
0.04055912047624588,
-0.008146203123033047,
-0.004062805790454149,
-0.01909257471561432,
-0.003400044050067663,
-0.020852502435445786,
0.03220328688621521,
-0.009001260623335838,
0.006249022204428911,
-0.03669685125350952,
-0.02675170823931694,
0.01878627948462963,
0.034866806119680405,
-1.252955428299174e-8,
-0.006102928891777992,
0.020056020468473434,
-0.028733178973197937,
0.019326932728290558,
0.050559211522340775,
0.0464930422604084,
-0.010767960920929909,
-0.021450815722346306,
0.008004949428141117,
0.009885773994028568,
0.03369671478867531,
-0.017458489164710045,
0.009458111599087715,
-0.00701150530949235,
0.025618139654397964,
-0.05385169759392738,
0.010240459814667702,
0.018133319914340973,
0.04022512957453728,
0.025660714134573936,
0.030283676460385323,
0.020617425441741943,
-0.02354191616177559,
-0.007068174425512552,
0.04098031297326088,
0.013210909441113472,
0.006687032990157604,
-0.11563246697187424,
0.015675656497478485,
0.0009352655615657568,
0.02643788978457451,
-0.011997726745903492,
0.0002683315542526543,
-0.019943099468946457,
0.00694590900093317,
-0.02654898352921009,
0.007425493560731411,
0.016961123794317245,
-0.01033527497202158,
0.007367212325334549,
-0.021654944866895676,
-0.016583789139986038,
-0.03348275646567345,
-0.02544841542840004,
-0.022442631423473358,
-0.001297287060879171,
-0.0615755096077919,
-0.0017362108919769526,
0.013837769627571106,
-0.04014198109507561,
0.02322949655354023,
-0.04553018510341644,
0.022314229980111122,
0.047107499092817307,
0.0563904345035553,
-0.003350607119500637,
-0.009525473229587078,
-0.002088639885187149,
-0.0291897039860487,
-0.057897064834833145,
0.002994684036821127,
0.03116784244775772,
-0.031608764082193375,
-0.017891472205519676
] | rdplyr-extracting-data-frame-column-value-for-filtering-with-in | https://markhneedham.com/blog/2015/02/22/rdplyr-extracting-data-frame-column-value-for-filtering-with-in |
false | 2015-11-28 13:56:59 | Python: Parsing a JSON HTTP chunking stream | [
"python"
] | [
"Python"
] | I've been playing around with meetup.com's API again and this time wanted to consume the http://www.meetup.com/meetup_api/docs/stream/2/rsvps/#http[chunked HTTP RSVP stream] and filter RSVPs for events I'm interested in.
I use Python for most of my hacking these days and if HTTP requests are required the http://docs.python-requests.org/en/latest/[requests library] is my first port of call.
I started out with the following script
[source,python]
----
import requests
import json
def stream_meetup_initial():
uri = "http://stream.meetup.com/2/rsvps"
response = requests.get(uri, stream = True)
for chunk in response.iter_content(chunk_size = None):
yield chunk
for raw_rsvp in stream_meetup_initial():
print raw_rsvp
try:
rsvp = json.loads(raw_rsvp)
except ValueError as e:
print e
continue
----
This mostly worked but I also noticed the following error from time to time:
[source,text]
----
No JSON object could be decoded
----
Although less frequent, I also saw errors suggesting I was trying to parse an incomplete JSON object. I tweaked the function to keep a local buffer and only yield that if the chunk ended in a new line character:
[source,python]
----
def stream_meetup_newline():
uri = "http://stream.meetup.com/2/rsvps"
response = requests.get(uri, stream = True)
buffer = ""
for chunk in response.iter_content(chunk_size = 1):
if chunk.endswith("\n"):
buffer += chunk
yield buffer
buffer = ""
else:
buffer += chunk
----
This mostly works although I'm sure I've seen some occasions where two JSON objects were being yielded and then the call to 'json.loads' failed. I haven't been able to reproduce that though.
A second read through the http://docs.python-requests.org/en/latest/user/advanced/#streaming-requests[requests documentation] made me realise I hadn't read it very carefully the first time since we can make our lives much easier by using 'iter_lines' rather than 'iter_content':
[source,python]
----
r = requests.get('http://stream.meetup.com/2/rsvps', stream=True)
for raw_rsvp in r.iter_lines():
if raw_rsvp:
rsvp = json.loads(raw_rsvp)
print rsvp
----
We can then process 'rsvp', filtering out the ones we're interested in. | null | null | [
0.0020115613006055355,
-0.026190344244241714,
-0.02360864169895649,
0.021251749247312546,
0.026827149093151093,
-0.0060603381134569645,
-0.0077626341953873634,
0.07096915692090988,
-0.003821514081209898,
-0.0011977326357737184,
-0.024578457698225975,
-0.033372897654771805,
-0.10424661636352539,
0.026136023923754692,
-0.006790950428694487,
0.05823323503136635,
0.0820622444152832,
-0.04523243382573128,
0.016981327906250954,
-0.014427154324948788,
0.042921800166368484,
0.05376085266470909,
0.0005457381485030055,
0.02920381911098957,
0.02917606756091118,
-0.00496011134237051,
-0.02876156195998192,
-0.012660682201385498,
-0.035393476486206055,
-0.007895370945334435,
0.029917897656559944,
0.005388990510255098,
0.008621221408247948,
-0.023255687206983566,
0.043537240475416183,
-0.03641832619905472,
-0.019616132602095604,
0.002027095528319478,
-0.014623850584030151,
0.05127488449215889,
-0.03568802401423454,
0.005964599549770355,
-0.055655043572187424,
0.012370043434202671,
-0.027052415534853935,
0.030805759131908417,
0.01686769537627697,
0.033875979483127594,
-0.051392246037721634,
0.011827833019196987,
-0.06038730964064598,
0.012038609012961388,
-0.004451600834727287,
-0.015272140502929688,
0.019924428313970566,
0.028164802119135857,
-0.009214377030730247,
-0.07670827209949493,
0.026781020686030388,
-0.03202143684029579,
-0.011997489258646965,
-0.016581444069743156,
0.0409560464322567,
0.018697764724493027,
-0.007695810869336128,
0.0032723727636039257,
0.012416044250130653,
0.0662069171667099,
-0.01640426740050316,
-0.03419133275747299,
-0.008427130989730358,
0.035545915365219116,
-0.05305023863911629,
0.033180274069309235,
0.009850187227129936,
-0.0504659079015255,
-0.016526632010936737,
0.039776574820280075,
0.004011164419353008,
0.07496121525764465,
0.005709652788937092,
0.005081601906567812,
0.03298188000917435,
0.03819572180509567,
0.00476836459711194,
-0.03965232893824577,
-0.06162463128566742,
0.010332408361136913,
-0.0242796428501606,
0.05018123611807823,
0.050507184118032455,
-0.027421733364462852,
0.015596211887896061,
-0.01986677013337612,
-0.019199462607502937,
-0.0012108248192816973,
-0.019870836287736893,
0.016687318682670593,
0.005728979129344225,
-0.031297482550144196,
-0.08560452610254288,
-0.0306195467710495,
0.01819566637277603,
0.03830370679497719,
-0.06218089535832405,
-0.014824546873569489,
-0.022833308205008507,
-0.025568975135684013,
0.020534886047244072,
-0.02887853980064392,
-0.03145973011851311,
0.016547154635190964,
-0.013614565134048462,
0.00022222632833290845,
-0.05701378732919693,
0.04622581601142883,
0.03658958524465561,
-0.04371782764792442,
-0.029650921002030373,
0.006890134885907173,
0.025365570560097694,
0.03271886706352234,
0.018142718821763992,
0.07221393287181854,
0.013782670721411705,
0.03506562113761902,
-0.01718076504766941,
0.05386732518672943,
-0.004194075707346201,
-0.034376855939626694,
-0.020341873168945312,
0.05599001422524452,
0.0006986613152548671,
0.009769818745553493,
-0.027496449649333954,
0.005015851464122534,
0.012642123736441135,
-0.013716381043195724,
0.05646635219454765,
-0.01572905294597149,
-0.02207912877202034,
-0.004037780687212944,
0.0015715403715148568,
0.02593122236430645,
0.043529149144887924,
0.026189755648374557,
-0.013227913528680801,
-0.07058216631412506,
-0.020451325923204422,
0.009801898151636124,
0.024256452918052673,
-0.014238185249269009,
0.06374154984951019,
-0.026390578597784042,
0.0006567082600668073,
0.0494755394756794,
0.021750759333372116,
0.04967810958623886,
-0.02496817708015442,
-0.011577857658267021,
0.030337698757648468,
0.044661059975624084,
-0.04155110940337181,
0.021657051518559456,
-0.001543864025734365,
0.006436570081859827,
0.013838407583534718,
0.03810586780309677,
-0.012531924061477184,
0.015408600680530071,
-0.060931891202926636,
-0.027755578979849815,
0.06246483698487282,
-0.016766494140028954,
-0.004110213369131088,
-0.0032962209079414606,
0.06617744266986847,
0.01301842276006937,
0.030781671404838562,
0.035849448293447495,
-0.07615841180086136,
0.03462143987417221,
0.021568648517131805,
0.017425518482923508,
0.022056007757782936,
-0.006975964177399874,
0.09103235602378845,
0.06344479322433472,
-0.016322985291481018,
0.02109777182340622,
-0.09034554660320282,
-0.042621903121471405,
-0.07577088475227356,
0.0013753522653132677,
0.06189335882663727,
-0.07254956662654877,
0.016784872859716415,
0.06998062878847122,
0.02135692723095417,
0.029235944151878357,
0.011533526703715324,
0.01026291772723198,
-0.0216885544359684,
-0.04114694520831108,
-0.07415752112865448,
0.019845034927129745,
0.04272519797086716,
-0.007075124885886908,
-0.02567749097943306,
0.014997032471001148,
-0.05220215022563934,
0.05808580666780472,
0.019298767670989037,
-0.02591244876384735,
0.01657051406800747,
0.031018715351819992,
0.03164074569940567,
-0.0347256101667881,
0.03261866793036461,
-0.05086963623762131,
0.07138355076313019,
0.013623031787574291,
0.016689229756593704,
-0.01613789238035679,
-0.01843687891960144,
0.11404242366552353,
0.06230338662862778,
0.03196849301457405,
-0.06604547053575516,
0.010867920704185963,
-0.03930595517158508,
-0.031162826344370842,
-0.032463714480400085,
-0.0327841080725193,
-0.0349588543176651,
0.024041755124926567,
-0.023976663127541542,
-0.02641313150525093,
-0.009444423019886017,
-0.027798740193247795,
-0.024745184928178787,
0.03985444828867912,
0.002362394006922841,
0.019124196842312813,
0.02820427343249321,
-0.032684218138456345,
0.013271907344460487,
-0.0351075679063797,
-0.02226906456053257,
0.012780165299773216,
0.031291570514440536,
-0.0013986894628033042,
0.05352363362908363,
-0.03812166303396225,
0.004711679182946682,
0.012158970348536968,
-0.015421999618411064,
0.025824185460805893,
0.0697721466422081,
0.04541293904185295,
-0.0005698214517906308,
0.04832445830106735,
-0.030905866995453835,
-0.02549045905470848,
-0.03431075066328049,
-0.060859810560941696,
-0.05926179140806198,
-0.010793006047606468,
0.015801986679434776,
0.03773253783583641,
0.07849442958831787,
0.034192390739917755,
-0.022178418934345245,
0.012426973320543766,
-0.021500667557120323,
-0.0007725490722805262,
0.059028260409832,
-0.009699543006718159,
0.026782531291246414,
-0.037332095205783844,
-0.01490169670432806,
0.04119505360722542,
-0.03777223825454712,
-0.047548141330480576,
-0.035335686057806015,
-0.05969908460974693,
0.036300696432590485,
-0.029994968324899673,
-0.02741113118827343,
-0.025544719770550728,
0.0022749679628759623,
0.05385653302073479,
0.0204477421939373,
0.0009846838656812906,
0.07643885910511017,
0.019375422969460487,
0.030387822538614273,
0.036626070737838745,
0.0014237144496291876,
0.04554254189133644,
-0.008624845184385777,
0.00539697241038084,
0.04243391007184982,
-0.0029361445922404528,
-0.03561573475599289,
-0.05980289354920387,
0.01974227838218212,
-0.07652510702610016,
-0.2597469091415405,
0.024582797661423683,
-0.00909779965877533,
-0.014893406070768833,
0.015069562941789627,
0.016724716871976852,
0.02053937315940857,
-0.03943853825330734,
-0.017013106495141983,
0.024796387180685997,
-0.03546168655157089,
-0.04301333427429199,
-0.022636204957962036,
0.017355235293507576,
0.012659689411520958,
0.0005667622899636626,
-0.008512720465660095,
-0.023547958582639694,
0.025712495669722557,
0.017202476039528847,
0.008707777597010136,
-0.06306549161672592,
-0.0012291560415178537,
0.05905923247337341,
-0.0007705812458880246,
0.019128138199448586,
-0.05190316587686539,
0.017951494082808495,
-0.03548208624124527,
-0.03013085201382637,
0.058893490582704544,
-0.018061231821775436,
0.05808067321777344,
-0.03902732580900192,
0.005728595890104771,
-0.010032711550593376,
0.06349542737007141,
0.016336841508746147,
0.02391446940600872,
0.005718314088881016,
-0.03894695267081261,
-0.04499518871307373,
-0.015912024304270744,
-0.024570193141698837,
0.07392662018537521,
0.02205061912536621,
-0.036539722234010696,
-0.02705499716103077,
-0.029711315408349037,
0.06421706080436707,
-0.02724286913871765,
-0.07111052423715591,
-0.0225260891020298,
0.03972470760345459,
-0.01978636160492897,
-0.018498850986361504,
-0.020624345168471336,
-0.0012609068071469665,
-0.02102757804095745,
-0.02959473244845867,
0.020438892766833305,
-0.009041421115398407,
-0.012165908701717854,
-0.017046723514795303,
-0.02209063246846199,
-0.03435419127345085,
-0.03873992711305618,
0.0024215856101363897,
0.03874606639146805,
0.0456785149872303,
-0.027791762724518776,
0.014494367875158787,
-0.020144838839769363,
-0.09434647113084793,
0.006788868457078934,
-0.036780375987291336,
-0.01674402691423893,
0.021116724237799644,
-0.019499491900205612,
0.015366561710834503,
-0.04935919865965843,
-0.03658689931035042,
0.006924159359186888,
0.013077248819172382,
0.021114056929945946,
-0.017191367223858833,
0.02262278087437153,
-0.03482914716005325,
-0.021627357229590416,
-0.045775093138217926,
0.06293635815382004,
-0.04984520375728607,
-0.030133076012134552,
0.0006376529345288873,
-0.01553615927696228,
0.024620188400149345,
0.01376471109688282,
0.030101928859949112,
0.042324841022491455,
0.04933950677514076,
0.017525136470794678,
-0.05624249204993248,
-0.017785288393497467,
-0.02627854235470295,
0.004801192786544561,
-0.004784484393894672,
-0.044380366802215576,
0.016441473737359047,
0.007377641275525093,
0.023884039372205734,
-0.0007936327601782978,
-0.022016175091266632,
0.011404948309063911,
-0.03240436688065529,
0.01885409839451313,
-0.01018328033387661,
0.024663113057613373,
0.017254726961255074,
-0.005996820982545614,
-0.013445354998111725,
-0.05343940854072571,
0.028802091255784035,
0.02144276723265648,
-0.015311745926737785,
-0.02652520313858986,
-0.037169430404901505,
-0.01378239132463932,
-0.030111942440271378,
0.001294487970881164,
0.00448334077373147,
-0.0268800500780344,
0.022695260122418404,
0.0238527599722147,
-0.020937668159604073,
0.0333227664232254,
-0.024850592017173767,
-0.021283630281686783,
-0.019100310280919075,
0.014853053726255894,
0.029407259076833725,
0.0012089854571968317,
-0.024537408724427223,
-0.009936836548149586,
0.044080544263124466,
0.050681330263614655,
0.03167072683572769,
0.0024554459378123283,
0.022845961153507233,
-0.02359098754823208,
-0.01822642795741558,
0.002640858991071582,
-0.056482281535863876,
0.01178304385393858,
-0.0015080692246556282,
-0.029773280024528503,
-0.029638051986694336,
0.027023790404200554,
0.049711450934410095,
-0.009370378218591213,
-0.02910575456917286,
0.02295118384063244,
-0.0843658447265625,
-0.017476391047239304,
0.009320464916527271,
-0.020702678710222244,
0.011894982308149338,
-0.007775351405143738,
0.013919169083237648,
-0.021949855610728264,
-0.06103913486003876,
0.0066384207457304,
0.016716424375772476,
-0.0016349583165720105,
0.022272109985351562,
-0.022904515266418457,
0.008916825987398624,
0.02345072291791439,
0.0251275897026062,
0.011929512023925781,
0.002785739954560995,
0.013057329691946507,
0.002761085983365774,
0.055999841541051865,
0.021904747933149338,
0.06280317157506943,
0.04110126197338104,
-0.029101064428687096,
0.01568591594696045,
-0.0036201910115778446,
-0.030905326828360558,
-0.05007655546069145,
0.0006095205899327993,
0.0016962062800303102,
-0.007869275286793709,
0.006798194255679846,
-0.11829844117164612,
0.03181901201605797,
-0.002902311971411109,
-0.00007177396037150174,
0.0015585575019940734,
0.0065834494307637215,
0.009733383543789387,
-0.009336046874523163,
-0.02182006649672985,
0.02868448570370674,
-0.03382714465260506,
-0.04268079251050949,
-0.016258688643574715,
0.024659860879182816,
0.003934777341783047,
0.02525419369339943,
-0.043244656175374985,
-0.0019713593646883965,
-0.016621336340904236,
-0.0061642793007195,
-0.0026623012963682413,
-0.04062936082482338,
-0.008648449555039406,
0.045074719935655594,
-0.014658705331385136,
0.01907915435731411,
-0.02198975719511509,
-0.016878528520464897,
-0.016314024105668068,
-0.03732975199818611,
0.034279827028512955,
-0.010965444147586823,
-0.03350186347961426,
0.011074141599237919,
-0.022972796112298965,
0.017940785735845566,
-0.04682863876223564,
0.056229401379823685,
0.026819413527846336,
-0.019095612689852715,
-0.019553543999791145,
-0.06807467341423035,
-0.00644119456410408,
-0.0032173730432987213,
0.052661117166280746,
-0.0046383352018892765,
0.02948737144470215,
-0.02082153968513012,
0.016904400661587715,
-0.02214241586625576,
0.026273367926478386,
-0.000505122821778059,
-0.02330601029098034,
0.024762850254774094,
0.065475694835186,
0.01698167808353901,
0.0240891482681036,
0.020085321739315987,
-0.051989682018756866,
0.012167633511126041,
-0.026573961600661278,
-0.04738975316286087,
-0.032568104565143585,
-0.03626684099435806,
0.026262149214744568,
0.033200375735759735,
0.03046835958957672,
-0.09387906640768051,
0.037909552454948425,
0.03321331366896629,
0.038599997758865356,
0.08287525177001953,
-0.011831703595817089,
-0.00368359568528831,
-0.0014736397424712777,
-0.0019478071480989456,
-0.11009402573108673,
-0.010604370385408401,
0.04448810964822769,
-0.011085514910519123,
-0.024384252727031708,
-0.02057786099612713,
-0.031367573887109756,
0.04820774868130684,
-0.07645142078399658,
-0.008428908884525299,
0.04996781796216965,
-0.004488450940698385,
0.01623246632516384,
0.03848367929458618,
-0.06555770337581635,
0.012224063277244568,
0.056923143565654755,
-0.04146922752261162,
0.0026643367018550634,
-0.03386131674051285,
0.06926034390926361,
0.013014581985771656,
0.005939798895269632,
-0.0323290154337883,
-0.04077719897031784,
0.0768003761768341,
0.009973024018108845,
-0.017973512411117554,
0.04449452459812164,
-0.028973350301384926,
0.02449289709329605,
0.028436031192541122,
-0.02435176819562912,
0.014664942398667336,
0.014128918759524822,
-0.0024790174793452024,
-0.03896836191415787,
0.06606520712375641,
0.0011462172260507941,
0.0015754017513245344,
-0.028372112661600113,
0.08161444216966629,
-0.0028601698577404022,
-0.059419386088848114,
-0.02491188980638981,
0.004718680866062641,
-0.03319213166832924,
-0.043138667941093445,
-0.012810105457901955,
-0.0010738902492448688,
-0.030766747891902924,
0.04549773782491684,
-0.010292732156813145,
0.02293771132826805,
0.08149279654026031,
0.00913891103118658,
0.0031754334922879934,
0.03606735169887543,
0.0823330208659172,
0.0861736312508583,
0.02643037773668766,
-0.0021681177895516157,
0.0423840656876564,
-0.00568654527887702,
-0.05147923529148102,
-0.023336749523878098,
-0.06918183714151382,
-0.04523651674389839,
0.004555538296699524,
-0.0048254854045808315,
0.052728649228811264,
0.016625618562102318,
0.06674184650182724,
-0.02349010668694973,
0.004038767423480749,
-0.011790729127824306,
0.01527673564851284,
0.047158993780612946,
0.03282242640852928,
0.01740015670657158,
-0.0047942278906702995,
-0.009817797690629959,
-0.04900309816002846,
0.04693829268217087,
0.02291644737124443,
-0.04777251556515694,
0.011506514623761177,
0.00794101320207119,
0.041536297649145126,
0.021881040185689926,
0.03392297402024269,
0.04648001864552498,
0.0017531998455524445,
-0.0036326986737549305,
0.013838737271726131,
0.007174895144999027,
-0.013941009528934956,
0.020933805033564568,
0.028978340327739716,
-0.04824858158826828,
0.029297199100255966,
-0.0629657730460167,
0.017654284834861755,
-0.01584509015083313,
-0.04445140063762665,
0.05175847187638283,
-0.010251319967210293,
0.025746535509824753,
-0.017677612602710724,
-0.0023031020537018776,
-0.04552273452281952,
-0.04749659448862076,
-0.05364073067903519,
-0.044803060591220856,
-0.052180469036102295,
-0.02329467423260212,
0.02000276744365692,
-0.002796438056975603,
-0.05009721219539642,
-0.036950718611478806,
-0.022967886179685593,
-0.0033239745534956455,
0.0033526127226650715,
-0.06136882305145264,
-0.022556012496352196,
0.022034643217921257,
-0.005946194287389517,
0.016227569431066513,
0.02277362532913685,
0.030562376603484154,
0.003271613037213683,
-0.01635795645415783,
-0.028628533706068993,
0.03989943489432335,
0.04844333231449127,
0.011011781170964241,
-0.014668549410998821,
-0.08515992760658264,
0.026531057432293892,
0.029772143810987473,
0.003030954860150814,
-0.08547110110521317,
0.026044350117444992,
0.03449514880776405,
0.011022552847862244,
0.03148556128144264,
0.016161447390913963,
-0.006077374331653118,
-0.061805807054042816,
-0.048109933733940125,
-0.009470539167523384,
0.031502917408943176,
0.05787108093500137,
0.00922547560185194,
0.054444197565317154,
0.05780341103672981,
-0.013229264877736568,
-0.03577110916376114,
-0.0025331617798656225,
-0.015550117008388042,
0.00874935183674097,
-0.00855355616658926,
-0.03036203235387802,
-0.05836937576532364,
-0.06518296897411346,
-0.05974633991718292,
0.027575021609663963,
-0.024241957813501358,
-0.006218763068318367,
0.03672696650028229,
0.01828600838780403,
-0.033643271774053574,
0.025715315714478493,
-0.026860583573579788,
0.02994348295032978,
-0.0054546319879591465,
-0.020332133397459984,
-0.043232887983322144,
0.019040504470467567,
0.025346359238028526,
-0.02150418981909752,
-0.023021278902888298,
-0.012607336044311523,
-0.02551550790667534,
-0.010008311830461025,
0.040076516568660736,
0.046371184289455414,
-0.027500519528985023,
-0.014885252341628075
] | [
-0.06412814557552338,
-0.018307114019989967,
-0.04377548024058342,
-0.022911638021469116,
0.05409804359078407,
-0.09971063584089279,
-0.015070468187332153,
-0.004780803341418505,
0.019266093149781227,
-0.0011071338085457683,
0.02189941331744194,
-0.07810519635677338,
0.012109891511499882,
-0.004854797385632992,
0.055941179394721985,
-0.01452084444463253,
-0.02278447337448597,
-0.09529697149991989,
-0.027871202677488327,
0.057833146303892136,
0.002095762873068452,
0.021624628454446793,
-0.04653197526931763,
-0.04222619906067848,
-0.0009126098011620343,
0.023537173867225647,
0.05003311485052109,
-0.0328667089343071,
-0.030934080481529236,
-0.16385509073734283,
0.017014749348163605,
-0.040623366832733154,
-0.006568172015249729,
0.0028963040094822645,
-0.013310599140822887,
0.03146589919924736,
0.07228775322437286,
-0.028907088562846184,
0.026850096881389618,
0.07855474203824997,
0.011441919952630997,
0.004939445294439793,
-0.053135138005018234,
-0.01203487440943718,
-0.035003431141376495,
0.00877592246979475,
-0.036819081753492355,
0.012124171480536461,
0.00009440787835046649,
0.0006725064013153315,
-0.05958709493279457,
0.02278391271829605,
0.027668142691254616,
-0.07236933708190918,
0.024077337235212326,
0.020887261256575584,
0.05975231155753136,
0.11262860149145126,
-0.0061804200522601604,
-0.005373915191739798,
-0.022074656561017036,
-0.03019346483051777,
-0.14077715575695038,
0.09779219329357147,
0.02144651487469673,
0.040293507277965546,
-0.044133998453617096,
0.050182800740003586,
0.0018198041943833232,
0.030682360753417015,
-0.0076808808371424675,
0.029467206448316574,
-0.05302112177014351,
0.05708715319633484,
-0.0072393398731946945,
-0.024089602753520012,
-0.012084242887794971,
0.035465605556964874,
0.05860844627022743,
0.02195047214627266,
-0.07361029088497162,
0.009992348030209541,
0.021689752116799355,
-0.02068382315337658,
0.010511496104300022,
-0.02091827243566513,
0.012778290547430515,
0.069145567715168,
0.07587049156427383,
-0.0012551068793982267,
0.018314296379685402,
-0.007779338397085667,
-0.012787051498889923,
0.041701044887304306,
-0.08021707087755203,
0.017375340685248375,
0.001379262888804078,
0.02458694390952587,
-0.031844161450862885,
0.35789746046066284,
-0.014241069555282593,
0.03540880233049393,
0.015033147297799587,
0.029830854386091232,
-0.00021510745864361525,
-0.06263739615678787,
-0.0159283597022295,
-0.06347224116325378,
0.034574154764413834,
-0.03435160964727402,
-0.02238353155553341,
-0.0354064479470253,
0.0227560643106699,
-0.04654489457607269,
0.006555233616381884,
0.011003019288182259,
0.014488414861261845,
-0.0009044254547916353,
-0.05027030408382416,
0.028864962980151176,
-0.02679683454334736,
-0.012032004073262215,
0.04744025692343712,
0.042534973472356796,
0.010448575019836426,
0.033607982099056244,
0.06862909346818924,
0.07299193739891052,
0.03705655783414841,
0.02835637703537941,
0.06817284226417542,
-0.04588518291711807,
-0.056444257497787476,
0.0010620779357850552,
0.0077238003723323345,
0.01808350533246994,
0.016461020335555077,
0.0050758966244757175,
-0.00015520221495535225,
0.03231535479426384,
0.0071166097186505795,
-0.04856039211153984,
-0.004554773215204477,
-0.04262682795524597,
0.0012317640939727426,
0.1177523210644722,
-0.018891675397753716,
0.024806609377264977,
-0.028777657076716423,
-0.06359656155109406,
0.007475669961422682,
0.009923411533236504,
-0.011102672666311264,
-0.1014324277639389,
-0.019813988357782364,
0.0005078410031273961,
0.06213298439979553,
-0.0045007322914898396,
-0.021513856947422028,
-0.00965792965143919,
-0.019967900589108467,
-0.0813598483800888,
-0.04053075239062309,
0.003104145172983408,
0.011742702685296535,
-0.16241148114204407,
-0.006210870575159788,
-0.005533754825592041,
-0.02487761713564396,
-0.062360092997550964,
-0.005747831426560879,
0.005562078673392534,
-0.025100380182266235,
0.0004896207246929407,
0.033851202577352524,
-0.001516998396255076,
-0.0426502525806427,
0.024486638605594635,
0.04906176030635834,
0.021662406623363495,
-0.03624776005744934,
0.016359414905309677,
-0.01573210395872593,
-0.00825933925807476,
-0.017698058858513832,
-0.06345004588365555,
-0.0303158238530159,
0.001526898005977273,
0.013974180445075035,
-0.01045226026326418,
-0.0438695028424263,
-0.058260295540094376,
-0.0791119709610939,
0.0071899499744176865,
-0.003759293118491769,
0.03192060440778732,
0.02903417870402336,
0.013150043785572052,
0.005720396991819143,
-0.0015914335381239653,
0.03604864329099655,
0.030248215422034264,
-0.014141308143734932,
0.0322018563747406,
-0.056806232780218124,
0.011765038594603539,
0.023747052997350693,
-0.03699340671300888,
0.05315837264060974,
0.04731430113315582,
-0.032917652279138565,
0.010122767649590969,
-0.019347937777638435,
0.013853780925273895,
-0.021093882620334625,
-0.03904988244175911,
0.03915678709745407,
-0.015103335492312908,
-0.011929028667509556,
0.05382145568728447,
-0.04776928201317787,
-0.05430445447564125,
-0.005257945973426104,
-0.3477080166339874,
0.016051601618528366,
0.02624945528805256,
0.004173425026237965,
-0.006316463463008404,
-0.07349102944135666,
0.01551447156816721,
0.0003506984212435782,
-0.030407242476940155,
0.09442837536334991,
0.10151787102222443,
0.03492918610572815,
0.025690719485282898,
-0.07781640440225601,
0.01953783445060253,
0.05641816928982735,
-0.04374902322888374,
-0.014729991555213928,
-0.03461885452270508,
0.05972930043935776,
-0.03399356082081795,
-0.028530577197670937,
-0.004121724516153336,
-0.018454931676387787,
0.033322371542453766,
-0.03430856764316559,
0.11209817230701447,
0.061995238065719604,
0.0028016201686114073,
-0.05769849941134453,
0.045217886567115784,
0.045483361929655075,
-0.036677319556474686,
-0.10695956647396088,
-0.03750037029385567,
-0.0062458510510623455,
0.02528395876288414,
0.04910960793495178,
0.04968324676156044,
0.006783198099583387,
-0.054139554500579834,
0.03185204789042473,
-0.02071087434887886,
-0.06188943609595299,
-0.0024294734466820955,
-0.007283980492502451,
-0.024710780009627342,
-0.039762746542692184,
0.05511821433901787,
0.06253865361213684,
0.01400228962302208,
-0.005000690463930368,
0.032506756484508514,
0.05042785406112671,
0.04391433298587799,
0.002979170298203826,
-0.047623246908187866,
-0.037700966000556946,
0.005638277158141136,
0.009604716673493385,
-0.029340835288167,
0.04322589188814163,
0.01836896687746048,
-0.025842836126685143,
0.0020484733395278454,
0.0036514955572783947,
0.04015011340379715,
0.028355417773127556,
0.038928769528865814,
-0.012121406383812428,
-0.013651366345584393,
0.11604813486337662,
-0.031667761504650116,
0.015634810552001,
-0.011324618011713028,
0.030820997431874275,
-0.05749500170350075,
-0.040213748812675476,
0.06575258076190948,
-0.005139646120369434,
0.06742873042821884,
0.0038981742691248655,
0.04694971814751625,
-0.025274377316236496,
0.010100193321704865,
0.05003923922777176,
-0.0618954561650753,
0.03400033712387085,
0.04819394275546074,
-0.020302554592490196,
-0.002812987891957164,
-0.0423625148832798,
-0.05076122656464577,
0.020524393767118454,
0.04078406095504761,
0.017065897583961487,
-0.25918105244636536,
0.037665802985429764,
-0.003206846071407199,
-0.0008461491670459509,
0.008282331749796867,
0.058046888560056686,
0.04186186194419861,
-0.041827209293842316,
-0.04924372583627701,
0.02208353765308857,
-0.003678351640701294,
0.015869231894612312,
0.019965773448348045,
0.014044553972780704,
0.0694037452340126,
0.04518173635005951,
0.03707459568977356,
0.02158241905272007,
-0.03401012718677521,
-0.009491153992712498,
-0.00317172659561038,
-0.009522705338895321,
0.18464778363704681,
-0.026066012680530548,
0.02205747924745083,
0.03840019553899765,
-0.008177928626537323,
0.0048962789587676525,
0.0744406059384346,
-0.023546690121293068,
-0.006008784286677837,
-0.006790435407310724,
0.06033652648329735,
-0.03135289251804352,
0.04359925165772438,
-0.03219408914446831,
0.004227083642035723,
-0.006880583707243204,
0.012286119163036346,
-0.031725820153951645,
-0.03733731433749199,
0.04630979523062706,
-0.028921043500304222,
-0.013711526058614254,
0.039621639996767044,
0.0014713366981595755,
-0.022047964856028557,
-0.08581256121397018,
0.0036243039648979902,
0.007769976742565632,
-0.01500388327986002,
-0.07072489708662033,
0.01587720774114132,
-0.006554371677339077,
0.027087071910500526,
0.04936705529689789,
0.014127316884696484,
-0.026820596307516098,
-0.0021460908465087414,
0.04167502745985985,
0.002982732839882374,
-0.0498814694583416,
0.08667709678411484,
0.019936002790927887,
-0.008748216554522514
] | [
-0.06019018217921257,
0.04849744215607643,
-0.022043123841285706,
-0.0024014690425246954,
0.002226073294878006,
-0.01288491953164339,
-0.03600742667913437,
0.021368393674492836,
-0.01568608731031418,
-0.05822893604636192,
-0.04983024299144745,
0.019663969054818153,
-0.032619819045066833,
0.032471444457769394,
0.04897690564393997,
-0.037434712052345276,
-0.0039894417859613895,
-0.014550219289958477,
0.04966897889971733,
-0.02762218378484249,
-0.01930079609155655,
0.056092213839292526,
0.013501141220331192,
-0.01523016206920147,
-0.02209434285759926,
-0.005239642690867186,
-0.014431611634790897,
0.020166294649243355,
0.02605529874563217,
-0.07514061778783798,
-0.000894030905328691,
-0.019095491617918015,
-0.004381854552775621,
-0.04438205063343048,
0.02255033329129219,
0.035024140030145645,
0.01643183082342148,
-0.013265971094369888,
-0.007279371377080679,
0.016656093299388885,
0.028354231268167496,
-0.013148276135325432,
0.021075544878840446,
-0.01605059579014778,
-0.03207257390022278,
0.028838906437158585,
-0.04976106807589531,
0.018711986020207405,
-0.008188879117369652,
-0.04642079398036003,
-0.027749016880989075,
0.017698539420962334,
-0.016294842585921288,
0.018833201378583908,
-0.00659585278481245,
-0.009076151065528393,
-0.06370940804481506,
-0.026474375277757645,
-0.026690658181905746,
-0.057242490351200104,
-0.016338471323251724,
0.000953081005718559,
-0.03101479634642601,
-0.006641245912760496,
0.002786385826766491,
-0.012166175991296768,
-0.015534592792391777,
0.05435459315776825,
0.038378652185201645,
0.00809667631983757,
-0.056862227618694305,
0.017807433381676674,
-0.06042030081152916,
-0.013552572578191757,
-0.00180032046046108,
-0.03586510568857193,
-0.004955899901688099,
-0.040810905396938324,
0.013399087823927402,
0.02167963609099388,
-0.06717616319656372,
-0.04928227514028549,
-0.03396099805831909,
0.029203271493315697,
-0.014325595460832119,
-0.025715915486216545,
0.03165196627378464,
0.007163592614233494,
-0.006749136373400688,
-0.006211915984749794,
-0.038160793483257294,
0.00866676215082407,
0.03819052129983902,
0.02897847257554531,
-0.08264514803886414,
0.047860633581876755,
0.015881897881627083,
-0.040420353412628174,
-0.01292893011122942,
0.7907249331474304,
-0.008978739380836487,
0.00885855220258236,
0.049115315079689026,
-0.008238284848630428,
0.018055090680718422,
-0.012049847282469273,
-0.04083435609936714,
0.01368341501802206,
0.05787250027060509,
-0.05122215673327446,
0.009480687789618969,
0.0006673996103927493,
0.01811380684375763,
0.0009268959984183311,
0.012172986753284931,
0.07280496507883072,
0.012848788872361183,
0.028523193672299385,
-0.0006903352914378047,
0.030368048697710037,
0.008967963978648186,
-0.014056913554668427,
-0.012284335680305958,
0.020454680547118187,
0.02240152098238468,
-0.17118947207927704,
0.06543157249689102,
-7.233287673033833e-33,
0.04579039663076401,
-0.03144592419266701,
0.00401854794472456,
-0.0013590444577857852,
0.03814150393009186,
0.00023153838992584497,
-0.022524738684296608,
0.04167360067367554,
-0.009156053885817528,
-0.03232439234852791,
-0.006839989684522152,
-0.019958103075623512,
0.03746172785758972,
-0.006338231265544891,
0.03185366839170456,
-0.031707387417554855,
-0.007884595543146133,
0.061190858483314514,
0.005921686068177223,
0.02959667518734932,
-0.006515590474009514,
-0.00623392965644598,
0.04804723337292671,
0.02712845616042614,
-0.033068977296352386,
0.01450355350971222,
-0.029919639229774475,
0.01884378306567669,
-0.024832729250192642,
-0.0494132936000824,
-0.01482619158923626,
0.055084411054849625,
0.01791773922741413,
-0.01096434984356165,
0.02811387926340103,
-0.024223681539297104,
0.002912926021963358,
-0.010602720081806183,
-0.052689991891384125,
-0.015133385546505451,
-0.03555323928594589,
0.04076170548796654,
-0.051960304379463196,
-0.003941639792174101,
-0.036464840173721313,
-0.020389096811413765,
-0.028842804953455925,
0.0006154773873277009,
0.007313698995858431,
0.02073197439312935,
0.019572623074054718,
0.00832731369882822,
-0.0031343423761427402,
0.0026197079569101334,
-0.024233372882008553,
-0.0035951959434896708,
0.030332904309034348,
0.05150503292679787,
0.03906131908297539,
-0.019231053069233894,
0.03735113516449928,
-0.023687073960900307,
0.011120632290840149,
0.06334536522626877,
0.0124355498701334,
-0.0002188878133893013,
0.0493212528526783,
0.03102586232125759,
0.01187474187463522,
0.02259514108300209,
-0.04670998826622963,
0.06456293165683746,
-0.04883551225066185,
-0.012804607860744,
0.027228914201259613,
-0.03508741781115532,
0.038056377321481705,
0.008138002827763557,
0.045309633016586304,
0.07003945857286453,
0.07177453488111496,
0.012891344726085663,
0.03584413230419159,
-0.04764172434806824,
-0.030719628557562828,
0.013982489705085754,
0.01745755225419998,
-0.03855566680431366,
-0.0023801594506949186,
0.015005303546786308,
-0.015060982666909695,
0.02942645363509655,
0.04502106457948685,
-0.03921949118375778,
0.017892872914671898,
6.669860741057233e-33,
0.005923914723098278,
-0.03114219754934311,
-0.03137962892651558,
-0.01219938974827528,
0.04758722707629204,
-0.03612535446882248,
0.06332451105117798,
0.03369573876261711,
0.027148084715008736,
0.05415863171219826,
-0.017182039096951485,
-0.009371149353682995,
0.012814787216484547,
0.017890790477395058,
0.023383595049381256,
-0.007152749691158533,
0.03162403777241707,
0.006614173762500286,
0.058101143687963486,
-0.0112778190523386,
-0.030712749809026718,
-0.018608281388878822,
0.027428068220615387,
-0.038917455822229385,
0.011785546317696571,
0.010080331936478615,
-0.008033418096601963,
-0.0193337295204401,
-0.039138514548540115,
-0.008941611275076866,
0.011895950883626938,
-0.01958826184272766,
-0.020036427304148674,
-0.001848952961154282,
0.01951928623020649,
0.04172774404287338,
0.00030278845224529505,
0.0019076865864917636,
0.0508660264313221,
-0.020162595435976982,
0.06916483491659164,
0.04000195860862732,
-0.039471957832574844,
0.03865080326795578,
0.023758957162499428,
0.0017688052030280232,
-0.011518708430230618,
0.006294757127761841,
-0.04456836357712746,
0.003298858180642128,
-0.02120969258248806,
0.018901322036981583,
-0.007919900119304657,
0.0037761179264634848,
0.011470463126897812,
-0.01466569397598505,
-0.003978817258030176,
0.03798246756196022,
-0.021914033219218254,
-0.030409839004278183,
-0.027098318561911583,
-0.02065945789217949,
-0.055624108761548996,
0.047003865242004395,
-0.01577460765838623,
-0.0020759112667292356,
-0.03813120722770691,
-0.024231892079114914,
0.012165690772235394,
-0.0021126153878867626,
-0.011547354981303215,
-0.05683702602982521,
-0.03241658955812454,
0.023282455280423164,
-0.008526846766471863,
0.0036909161135554314,
-0.024072322994470596,
0.009945780970156193,
-0.02953137829899788,
0.016472987830638885,
0.007081815507262945,
0.041696470230817795,
-0.026930861175060272,
0.010404791682958603,
0.013128884136676788,
0.03573448956012726,
-0.02625494822859764,
0.0032975049689412117,
0.01271731872111559,
-0.0010245062876492739,
0.027619743719697,
-0.035128045827150345,
-0.016283918172121048,
0.023744717240333557,
0.018122326582670212,
-1.2381345726453219e-8,
-0.00780852884054184,
0.017630506306886673,
-0.02286301553249359,
0.031933221966028214,
0.053468868136405945,
0.016501907259225845,
0.0032641596626490355,
-0.0070268833078444,
-0.004057701677083969,
0.008330563083291054,
0.031561221927404404,
-0.029572539031505585,
-0.008184971287846565,
0.011732215993106365,
0.04985687881708145,
-0.026524020358920097,
-0.04195486009120941,
0.004305185284465551,
-0.004891654010862112,
0.012847503647208214,
0.025170408189296722,
-0.009767471812665462,
0.014537423849105835,
-0.02979562245309353,
-0.02583223395049572,
0.0035187825560569763,
0.034091610461473465,
-0.06814294308423996,
-0.012151170521974564,
-0.09822347015142441,
-0.006345099303871393,
-0.028364814817905426,
-0.058665018528699875,
0.009981227107346058,
-0.007366612553596497,
-0.01824404112994671,
-0.03397280350327492,
-0.0006417085533030331,
0.015309061855077744,
0.035433169454336166,
0.0016533713787794113,
0.00733189145103097,
-0.0001785689382813871,
-0.018311459571123123,
0.007436033803969622,
0.022383717820048332,
-0.029621247202157974,
0.020037194713950157,
-0.028341785073280334,
-0.0033224073704332113,
-0.004456838592886925,
0.0007506122346967459,
0.013886646367609501,
-0.014949762262403965,
0.033095553517341614,
0.0003764157590921968,
0.008540925569832325,
-0.047031473368406296,
-0.034885603934526443,
-0.024481970816850662,
0.04255298152565956,
0.022446200251579285,
-0.03150314837694168,
-0.020075950771570206
] | python-parsing-a-json-http-chunking-stream | https://markhneedham.com/blog/2015/11/28/python-parsing-a-json-http-chunking-stream |
false | 2015-11-08 20:58:42 | Docker 1.9: Port forwarding on Mac OS X | [
"docker"
] | [
"Software Development"
] | Since the http://www.infoq.com/news/2015/10/neo4j-2.3-release[Neo4j 2.3.0 release] there's been an https://hub.docker.com/r/neo4j/neo4j/[official docker image] which I thought I'd give a try this afternoon.
The last time I used docker about a year ago I had to install http://boot2docker.io/[boot2docker] which has now been deprecated in place of http://docs.docker.com/engine/installation/mac/[Docker Machine and the Docker Toolbox].
I created a container with the following command:
[source,bash]
----
docker run --detach --publish=7474:7474 neo4j/neo4j
----
And then tried to access the Neo4j server locally:
[source,bash]
----
$ curl http://localhost:7474
curl: (7) Failed to connect to localhost port 7474: Connection refused
----
I quickly checked that docker had started up Neo4j correctly:
[source,bash]
----
$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
1f7c48e267f0 neo4j/neo4j "/docker-entrypoint.s" 10 minutes ago Up 10 minutes 7473/tcp, 0.0.0.0:7474->7474/tcp kickass_easley
----
Looks good. Amusingly I then came across http://www.markhneedham.com/blog/2014/11/27/dockerneo4j-port-forwarding-on-mac-os-x-not-working/[my own blog post from a year ago] where I'd run into the same problem - the problem being that we need to access the Neo4j server via the VM's IP address rather than localhost.
Instead of using boot2docker we now need to use docker-machine to find the VM's IP address:
[source,bash]
----
$ docker-machine ls
NAME ACTIVE DRIVER STATE URL SWARM
default * virtualbox Running tcp://192.168.99.100:2376
----
[source,bash]
----
$ curl http://192.168.99.100:7474
{
"management" : "http://192.168.99.100:7474/db/manage/",
"data" : "http://192.168.99.100:7474/db/data/"
}
----
And we're back in business. | null | null | [
-0.00933541264384985,
-0.03084002435207367,
0.011723337695002556,
0.03436684608459473,
0.07645472139120102,
0.01297522708773613,
0.025386232882738113,
0.046733956784009933,
-0.012681884691119194,
-0.03499291092157364,
-0.004867461510002613,
-0.014810565859079361,
-0.06349028646945953,
0.02395607717335224,
-0.0014006913406774402,
0.04884208366274834,
0.07329268008470535,
0.019244827330112457,
-0.011807781644165516,
0.009054540656507015,
0.018421560525894165,
0.050444189459085464,
-0.015255888924002647,
0.03182412311434746,
0.027183258906006813,
0.001847328501753509,
0.011094605550169945,
-0.0058653997257351875,
-0.06957080215215683,
-0.03632226213812828,
0.03729953244328499,
-0.015818091109395027,
0.031061405315995216,
0.004634592216461897,
0.022439323365688324,
-0.00958213396370411,
-0.02547905594110489,
-0.005346542689949274,
-0.006341042462736368,
0.017599696293473244,
-0.08185149729251862,
0.042453035712242126,
0.026984848082065582,
0.0228776503354311,
-0.017682736739516258,
0.029737096279859543,
-0.02805200219154358,
0.017053954303264618,
0.022106198593974113,
0.00822461862117052,
-0.1000889390707016,
0.016517803072929382,
-0.02629287727177143,
0.0034870244562625885,
0.023835744708776474,
0.028428779914975166,
0.004202869720757008,
-0.07451214641332626,
0.04639798402786255,
-0.02909422293305397,
0.000009602060345059726,
0.005912551656365395,
0.018494971096515656,
0.010454216971993446,
-0.0042015016078948975,
-0.04059205204248428,
-0.005383369978517294,
0.051057908684015274,
-0.039151523262262344,
0.004756176378577948,
0.018456684425473213,
0.021587630733847618,
-0.01811755634844303,
-0.027722472324967384,
0.016064323484897614,
-0.053938280791044235,
-0.010294743813574314,
0.03613007813692093,
0.060363877564668655,
0.06086975708603859,
-0.04013257846236229,
-0.002376358723267913,
0.020082442089915276,
0.01750151626765728,
-0.00327089405618608,
-0.026117689907550812,
-0.027846649289131165,
0.00754762114956975,
-0.05341605097055435,
0.057036448270082474,
0.0468294583261013,
-0.048319824039936066,
0.015943918377161026,
0.0023877874482423067,
0.00004860857006860897,
0.03456646949052811,
-0.0000060952957028348465,
0.017984239384531975,
0.04170086607336998,
-0.0034071875270456076,
-0.02969249151647091,
-0.009482213295996189,
-0.0260566808283329,
0.0303733479231596,
-0.06252076476812363,
-0.012878484092652798,
-0.022737497463822365,
-0.021512916311621666,
-0.012952963821589947,
-0.0012769426684826612,
-0.011232727207243443,
0.03156501054763794,
-0.013788160867989063,
0.015550794079899788,
-0.09667719900608063,
0.08101485669612885,
0.009246491827070713,
-0.0495586134493351,
-0.02260400541126728,
0.014765255153179169,
0.025947200134396553,
0.03689906746149063,
-0.020612653344869614,
0.04826681688427925,
-0.019274510443210602,
0.02984805405139923,
0.0048914384096860886,
0.0334264375269413,
-0.028333032503724098,
-0.07676492631435394,
-0.020046021789312363,
0.06612111628055573,
0.009252670221030712,
0.025889704003930092,
-0.03193648159503937,
-0.0334446020424366,
-0.026093780994415283,
0.012229811400175095,
0.049243099987506866,
0.03754951059818268,
-0.0204983651638031,
-0.051861923187971115,
0.016781944781541824,
0.022130807861685753,
0.030971741303801537,
0.010644666850566864,
0.0028598050121217966,
-0.04756380617618561,
-0.03015199676156044,
0.01852651685476303,
-0.0015562931075692177,
0.029200518503785133,
0.037034280598163605,
-0.034776829183101654,
0.009908301755785942,
0.0962819755077362,
0.03819230571389198,
0.01719166710972786,
-0.04494635760784149,
0.009108638390898705,
0.035617195069789886,
0.037579625844955444,
0.015311209484934807,
0.05869366601109505,
0.03117709420621395,
-0.03210483118891716,
-0.0246607456356287,
0.03905908390879631,
0.025386011227965355,
0.01514506433159113,
-0.039610855281353,
-0.07620968669652939,
0.05318842828273773,
-0.04610852897167206,
0.01703164167702198,
0.039333172142505646,
0.08121306449174881,
-0.002647506073117256,
0.032962195575237274,
0.0012964146444573998,
-0.07593546062707901,
0.07120992988348007,
0.007337695453315973,
0.033521708101034164,
0.018260449171066284,
-0.0018015842651948333,
0.06466897577047348,
0.03031962364912033,
0.024224666878581047,
0.04665017127990723,
-0.0760757103562355,
-0.09222967177629471,
-0.00876171886920929,
-0.007803281303495169,
0.054318204522132874,
-0.00845414586365223,
-0.029696926474571228,
0.039720769971609116,
0.0060400208458304405,
0.030673667788505554,
-0.008860764093697071,
-0.010138102807104588,
0.026250740513205528,
-0.062120188027620316,
-0.08106926828622818,
0.05703914165496826,
0.017100408673286438,
-0.060683947056531906,
-0.0636741891503334,
0.012863676063716412,
-0.04377540200948715,
-0.018053827807307243,
0.018250722438097,
-0.033341627568006516,
0.07229901850223541,
0.02997228316962719,
0.013445771299302578,
-0.035023339092731476,
0.021996377035975456,
-0.034133292734622955,
0.027559680864214897,
0.01072210818529129,
-0.0043866285122931,
0.014614884741604328,
0.011577080003917217,
0.09528128802776337,
0.05515816807746887,
-0.020724164322018623,
-0.05754486843943596,
0.05710311606526375,
0.034142155200242996,
-0.0199414175003767,
-0.006060013081878424,
-0.0056048668920993805,
0.005027064587920904,
0.00008110495400615036,
-0.01682599075138569,
-0.034303318709135056,
-0.011806407012045383,
-0.032043736428022385,
0.008009175769984722,
0.04957611486315727,
-0.029716001823544502,
0.05750839039683342,
0.02468201145529747,
-0.015978025272488594,
0.006379994098097086,
-0.06953884661197662,
-0.0596655048429966,
0.0013416075380519032,
0.035970140248537064,
-0.0064674983732402325,
0.052332088351249695,
-0.02544957585632801,
0.010557863861322403,
-0.034529268741607666,
-0.0445486418902874,
0.04451626166701317,
0.01432417519390583,
0.061470162123441696,
-0.0060493010096251965,
0.05475899577140808,
-0.07170028239488602,
0.02441386505961418,
-0.007322635035961866,
-0.03977852687239647,
-0.036527302116155624,
-0.01652914099395275,
0.026127049699425697,
-0.012254397384822369,
0.008686522953212261,
-0.018437284976243973,
0.021696900948882103,
-0.026871507987380028,
0.02867371216416359,
-0.03075108863413334,
0.015158241614699364,
-0.0016582270618528128,
0.03500242158770561,
-0.03512119501829147,
-0.022171197459101677,
0.061208415776491165,
-0.08230065554380417,
0.0073106116615235806,
-0.012401699088513851,
-0.06204385310411453,
0.034999653697013855,
-0.061003513634204865,
-0.037696219980716705,
-0.022486833855509758,
0.03249219432473183,
0.032193586230278015,
0.02830837108194828,
0.011855563148856163,
0.05055142939090729,
0.03086826018989086,
0.010173818096518517,
0.009998359717428684,
-0.016195155680179596,
0.05313749611377716,
0.007416270673274994,
0.030704881995916367,
0.01994195394217968,
-0.026119574904441833,
0.0006002185400575399,
-0.05258788913488388,
0.020269928500056267,
-0.026579616591334343,
-0.26631999015808105,
0.0612480565905571,
-0.026551594957709312,
-0.05604792386293411,
0.004315423779189587,
-0.01716962642967701,
-0.010157269425690174,
-0.01412843819707632,
-0.007626333739608526,
0.0006982773193158209,
-0.04159782826900482,
-0.0392085500061512,
0.005923893302679062,
0.01552505698055029,
-0.007479431573301554,
0.02053007483482361,
0.017027096822857857,
-0.051213037222623825,
0.010083753615617752,
-0.03151261806488037,
-0.022328369319438934,
-0.02853946015238762,
0.021869156509637833,
0.010292157530784607,
0.008738783188164234,
0.059068623930215836,
-0.07244282215833664,
0.0607580803334713,
-0.047169577330350876,
-0.018811136484146118,
0.0049239350482821465,
-0.008475255221128464,
-0.0037414818070828915,
0.015293747186660767,
-0.03630189970135689,
0.010508820414543152,
0.021762799471616745,
-0.010498767718672752,
0.012130822986364365,
0.002302334178239107,
-0.046003907918930054,
-0.04688723757863045,
-0.011703962460160255,
-0.01204303465783596,
0.08283283561468124,
-0.012327577918767929,
-0.0828443095088005,
-0.004672360606491566,
-0.030623747035861015,
0.08495736122131348,
-0.04876676946878433,
-0.03873886168003082,
-0.019195258617401123,
0.022074952721595764,
-0.0019703751895576715,
-0.01909276470541954,
-0.04288436472415924,
-0.007036743685603142,
-0.052207525819540024,
-0.028719250112771988,
-0.021688904613256454,
-0.024649187922477722,
-0.005309354048222303,
-0.05891990289092064,
-0.04239463433623314,
-0.042543910443782806,
-0.07004692405462265,
-0.03656071797013283,
0.06542904675006866,
0.014477514661848545,
-0.027753237634897232,
0.03454512357711792,
-0.024582019075751305,
-0.09886883944272995,
-0.032165367156267166,
-0.013930446468293667,
-0.056668564677238464,
0.007104792166501284,
-0.0031607449054718018,
0.0618029460310936,
-0.03855772316455841,
-0.0374610498547554,
-0.015091518871486187,
0.023111417889595032,
-0.0003666900738608092,
-0.012155028060078621,
0.03415393829345703,
-0.015623494982719421,
0.00004613816781784408,
0.025765588507056236,
0.06279559433460236,
-0.03452861309051514,
-0.037603508681058884,
-0.040540508925914764,
-0.01275310292840004,
0.012052091769874096,
-0.01170862466096878,
0.006840481888502836,
0.009987966157495975,
0.05834073945879936,
0.052320271730422974,
-0.03141017258167267,
0.005558864213526249,
-0.030565844848752022,
-0.021119752898812294,
-0.016609573736786842,
-0.028924787417054176,
0.02145511284470558,
-0.003777491394430399,
0.028609760105609894,
0.009978972375392914,
-0.03933669254183769,
0.030899453908205032,
-0.05545594543218613,
-0.00010431257396703586,
0.015563341788947582,
0.01141828391700983,
0.0342649482190609,
0.04455947503447533,
-0.010694329626858234,
-0.053376566618680954,
0.03637176379561424,
0.040255118161439896,
-0.011066333390772343,
-0.053560931235551834,
-0.012622205540537834,
-0.019007857888936996,
-0.017554115504026413,
0.03226320818066597,
0.015901343896985054,
-0.010607953183352947,
0.04628905653953552,
0.03953292593359947,
-0.020205413922667503,
0.04234788939356804,
-0.028447862714529037,
-0.004113199654966593,
-0.04285404086112976,
0.024276534095406532,
0.01635870710015297,
-0.025203566998243332,
0.018974322825670242,
-0.015994006767868996,
0.042880378663539886,
0.03543565794825554,
0.03175108879804611,
0.01590043306350708,
0.00833906140178442,
0.024624384939670563,
0.006578969769179821,
-0.01311222929507494,
-0.04610736295580864,
0.016487181186676025,
-0.045620501041412354,
-0.03205026686191559,
-0.007306117098778486,
0.06485076993703842,
-0.00573723902925849,
-0.04561030492186546,
-0.023863572627305984,
0.02955002337694168,
-0.07256115227937698,
0.0016587387071922421,
0.00927466806024313,
-0.02012607827782631,
0.059281881898641586,
-0.016697091981768608,
0.00712615717202425,
0.0026125521399080753,
-0.021593254059553146,
0.014564764685928822,
0.036259159445762634,
-0.02428346499800682,
0.002882658038288355,
0.017176544293761253,
-0.004727594088762999,
-0.001033166772685945,
0.04698071628808975,
0.0639127790927887,
0.009271512739360332,
-0.003018063958734274,
-0.011419596150517464,
0.016615048050880432,
0.027048803865909576,
0.03827295079827309,
0.014070686884224415,
-0.01524531189352274,
-0.0021238781046122313,
0.007323040626943111,
-0.0004467466496862471,
-0.019697170704603195,
0.01590881124138832,
-0.006775033660233021,
0.026492826640605927,
-0.014198309741914272,
-0.0559699684381485,
0.05767913907766342,
-0.0002091988717438653,
0.012899664230644703,
0.041515838354825974,
-0.0026044975966215134,
0.001755836303345859,
-0.045928940176963806,
0.05653330683708191,
0.05969974026083946,
-0.04367941990494728,
-0.030777664855122566,
-0.003903496079146862,
0.01111904252320528,
-0.0052194450981915,
0.032491590827703476,
-0.0683828592300415,
-0.014238993637263775,
-0.007304755970835686,
0.028388578444719315,
-0.03437763825058937,
-0.07556287944316864,
-0.004688308108597994,
0.0009278306970372796,
0.016180740669369698,
0.019193781539797783,
0.023255912587046623,
-0.007381829433143139,
-0.01631324551999569,
-0.02835598774254322,
0.06066977232694626,
-0.017241982743144035,
-0.008135555312037468,
-0.01837547868490219,
0.0015231930883601308,
0.01293143443763256,
-0.016281060874462128,
0.0228689294308424,
-0.0013774681137874722,
-0.002649458823725581,
-0.005803796928375959,
-0.0364355593919754,
0.02213299833238125,
-0.013585911132395267,
0.030962297692894936,
-0.0036024346482008696,
0.014213517308235168,
-0.03865252807736397,
-0.0039051997009664774,
-0.02660614438354969,
-0.0019342402229085565,
0.014678265899419785,
0.017451781779527664,
0.017059125006198883,
0.022008920088410378,
-0.0017319220351055264,
0.011011498048901558,
-0.012844282202422619,
-0.04712965711951256,
0.04768799617886543,
-0.0730377659201622,
-0.04527866467833519,
0.013881736434996128,
-0.05174901336431503,
0.007342944853007793,
0.020132042467594147,
0.02252008207142353,
-0.04871427267789841,
0.05451279133558273,
0.054725535213947296,
-0.003432029392570257,
0.024129390716552734,
0.002607843140140176,
0.04093272238969803,
-0.014484671875834465,
-0.04337050020694733,
-0.08803834766149521,
0.005006194580346346,
0.03264361619949341,
-0.03527368605136871,
0.008621040731668472,
0.0063089788891375065,
-0.029929716140031815,
-0.019764026626944542,
-0.06318037211894989,
-0.04033277556300163,
0.04830007627606392,
-0.04018109664320946,
-0.011021820828318596,
0.0011217498686164618,
-0.06276362389326096,
0.03852180019021034,
0.026096398010849953,
-0.038082756102085114,
-0.027052493765950203,
-0.018829578533768654,
0.027390779927372932,
-0.013124830089509487,
0.037129856646060944,
-0.03474164754152298,
-0.045360714197158813,
0.08498052507638931,
0.02177347242832184,
0.020384425297379494,
0.02900625206530094,
-0.010919671505689621,
0.04243849590420723,
0.01572326198220253,
-0.012051071971654892,
0.0007301760488189757,
0.01799807697534561,
-0.029113752767443657,
-0.048564810305833817,
0.025923028588294983,
0.011138747446238995,
-0.03160209208726883,
-0.03722497075796127,
0.04897252470254898,
-0.0016090231947600842,
-0.04102690890431404,
-0.01188301295042038,
0.041033849120140076,
-0.033077072352170944,
-0.03837531432509422,
-0.05205245688557625,
0.01567878946661949,
-0.06129317358136177,
0.007039636839181185,
-0.004142793361097574,
0.023647312074899673,
0.05549364909529686,
0.010832220315933228,
-0.01338239572942257,
0.0252377949655056,
0.09020330011844635,
0.0944100171327591,
-0.004897271748632193,
0.022636543959379196,
0.0861235186457634,
-0.002947453409433365,
-0.02381978929042816,
-0.004731828812509775,
-0.023467693477869034,
-0.03804238885641098,
-0.011710822582244873,
0.003440538188442588,
0.07324731349945068,
-0.030086638405919075,
0.06552740186452866,
-0.0014258206356316805,
0.011304924264550209,
-0.026135582476854324,
0.003157104132696986,
0.028637463226914406,
0.02028428018093109,
0.033748921006917953,
0.03818030655384064,
-0.016257505863904953,
-0.04507099837064743,
0.010830134153366089,
0.0011204368202015758,
-0.03104332648217678,
-0.0034172115847468376,
-0.0012892222730442882,
0.007148755248636007,
0.021143663674592972,
0.024591533467173576,
0.07085704058408737,
-0.021706338971853256,
0.000425711739808321,
0.025221383199095726,
0.056974492967128754,
0.004880615975707769,
0.019880076870322227,
-0.012628955766558647,
-0.005438849329948425,
-0.012299707159399986,
-0.014303603209555149,
0.001439225277863443,
-0.01744566112756729,
-0.029343968257308006,
0.0241488479077816,
-0.03162776678800583,
-0.014865079894661903,
0.004838230088353157,
-0.023616425693035126,
0.01975172385573387,
-0.03334895148873329,
-0.03432859107851982,
-0.05656341463327408,
-0.06762222200632095,
-0.006084974389523268,
0.002920598490163684,
0.012239519506692886,
-0.016784269362688065,
-0.01298164576292038,
-0.017586329951882362,
-0.03190970420837402,
0.05187728628516197,
-0.06476012617349625,
0.013315541669726372,
0.0006304357666522264,
0.0067550549283623695,
0.007276225369423628,
0.011972127482295036,
0.05060295760631561,
0.026697954162955284,
0.002232327125966549,
-0.021269381046295166,
0.009553501382470131,
0.03514891862869263,
-0.0024811376351863146,
-0.01633339188992977,
-0.08481961488723755,
0.012569715268909931,
0.03647544980049133,
0.033896304666996,
-0.058913540095090866,
0.009479496628046036,
0.03616311401128769,
0.00781505648046732,
0.04905817285180092,
-0.016746146604418755,
-0.012835095636546612,
-0.034899670630693436,
-0.001529235509224236,
-0.0033249962143599987,
-0.0383305698633194,
0.02045808546245098,
0.008341197855770588,
0.06581661850214005,
0.05233799293637276,
-0.018409661948680878,
-0.008926027454435825,
-0.015769341960549355,
0.010874548926949501,
0.029981393367052078,
-0.037152811884880066,
-0.05267173424363136,
-0.030235610902309418,
-0.10909990966320038,
-0.04862375929951668,
-0.005502030253410339,
-0.01326623372733593,
-0.023773493245244026,
0.032244130969047546,
-0.004223913419991732,
-0.04730287194252014,
0.012579190544784069,
-0.03555368632078171,
-0.009528112597763538,
-0.00642129871994257,
-0.01328652910888195,
0.0019818348810076714,
-0.004378771409392357,
0.010479139164090157,
-0.0062798201106488705,
0.0373506024479866,
-0.054356519132852554,
0.0024244387168437243,
-0.03676767647266388,
0.036345385015010834,
0.06088247522711754,
0.0306584220379591,
0.02199970930814743
] | [
-0.03414110839366913,
-0.05515173822641373,
-0.02537231519818306,
-0.032128769904375076,
0.07422346621751785,
-0.040782250463962555,
-0.042945023626089096,
0.01959071308374405,
-0.03386571630835533,
-0.023842468857765198,
0.027847686782479286,
-0.0334080271422863,
0.015315450727939606,
-0.0165464635938406,
0.06910984218120575,
0.007544984575361013,
-0.04610060527920723,
-0.05393993481993675,
0.004710167180746794,
0.0573471374809742,
-0.06315049529075623,
-0.040731433779001236,
-0.0030260758940130472,
-0.07753082364797592,
-0.05025666207075119,
0.05851944163441658,
0.04450993612408638,
-0.0017783507937565446,
-0.006852592807263136,
-0.1919579803943634,
0.013840348459780216,
-0.003472254378721118,
-0.008973587304353714,
-0.001690184697508812,
0.01074286550283432,
0.0177590474486351,
0.056073423475027084,
-0.043561484664678574,
0.023722367361187935,
0.027278633788228035,
0.04433034732937813,
0.008718378841876984,
-0.05803124979138374,
0.031432051211595535,
0.03425455093383789,
0.02088051661849022,
0.010821872390806675,
-0.01592298597097397,
0.021912606433033943,
-0.035001836717128754,
-0.01954559050500393,
0.015116026625037193,
0.000366295367712155,
-0.037213947623968124,
0.014134066179394722,
0.031094493344426155,
0.02838195487856865,
0.06224507838487625,
0.027074133977293968,
0.02398546412587166,
0.045347947627305984,
-0.002637411467730999,
-0.14987124502658844,
0.08629532158374786,
0.04185085371136665,
-0.02502412348985672,
-0.05257180705666542,
-0.0021702065132558346,
-0.002175662200897932,
0.0314890556037426,
0.032848555594682693,
0.0018959315493702888,
-0.060247309505939484,
0.07515773177146912,
-0.0051572201773524284,
0.029605641961097717,
-0.011090191081166267,
0.04000002518296242,
0.06679147481918335,
-0.037460315972566605,
-0.01944250427186489,
0.0043374327942729,
-0.03828369826078415,
-0.013388165272772312,
-0.06793250888586044,
0.029028870165348053,
-0.0379660539329052,
0.054122649133205414,
0.004162916447967291,
0.04427872970700264,
-0.020337175577878952,
0.009308245964348316,
0.0786193385720253,
0.031084025278687477,
-0.08521263301372528,
0.009269476868212223,
0.012868895195424557,
0.00875827670097351,
-0.03207547962665558,
0.3718098998069763,
0.019933564588427544,
0.006330162286758423,
0.004467840306460857,
0.046615708619356155,
0.008981741033494473,
-0.025305138900876045,
-0.011472376063466072,
-0.06279099732637405,
0.07107152789831161,
0.017496822401881218,
0.00873724278062582,
-0.04367992281913757,
0.06021181866526604,
-0.05561354011297226,
-0.013860106468200684,
-0.018135784193873405,
0.018291736021637917,
0.035220690071582794,
-0.04581953212618828,
0.010995869524776936,
-0.061997704207897186,
-0.008056220598518848,
0.05719679594039917,
0.04141904413700104,
0.05087663605809212,
0.013082483783364296,
-0.00259615620598197,
0.01871083304286003,
0.00949573889374733,
0.013207457959651947,
0.029916558414697647,
-0.018355639651417732,
-0.045328736305236816,
0.02572573721408844,
0.011042945086956024,
-0.005740074906498194,
0.041693758219480515,
-0.07152435183525085,
-0.028742987662553787,
0.0317300483584404,
-0.023009128868579865,
-0.0482364185154438,
0.01586008630692959,
0.011820823885500431,
-0.028288640081882477,
0.06816563755273819,
0.0066573647782206535,
-0.03110724501311779,
-0.014512009918689728,
-0.046693939715623856,
0.024473953992128372,
0.048232756555080414,
-0.004774685483425856,
-0.044844698160886765,
-0.016848010942339897,
-0.01480425801128149,
0.0816488042473793,
0.017119381576776505,
-0.0878838300704956,
0.016649793833494186,
-0.022690629586577415,
-0.045511502772569656,
-0.02885705605149269,
0.06308111548423767,
0.03711824491620064,
-0.10769273340702057,
-0.008433080278337002,
0.03800487518310547,
0.011371953412890434,
-0.04892882704734802,
-0.010573212057352066,
0.01377538125962019,
-0.004417501389980316,
-0.05273102596402168,
0.05237233638763428,
-0.030612394213676453,
0.005489610135555267,
0.0007230238988995552,
0.05384216457605362,
0.01310620829463005,
-0.017587363719940186,
0.006106502376496792,
-0.03916291519999504,
-0.012202347628772259,
-0.038110800087451935,
-0.06940118223428726,
-0.08661922067403793,
0.03297954052686691,
-0.05091355741024017,
-0.051284871995449066,
-0.0325169563293457,
-0.01866976171731949,
-0.0515172965824604,
0.11353083699941635,
0.011677060276269913,
-0.044504690915346146,
-0.023097645491361618,
0.00460853474214673,
0.0199144147336483,
-0.05344315618276596,
0.06510058045387268,
0.04308822378516197,
0.0013225951697677374,
0.034170396625995636,
-0.08372291922569275,
0.005520455539226532,
0.08059349656105042,
-0.025670824572443962,
0.050640206784009933,
0.02732137404382229,
-0.09019523113965988,
0.01439520251005888,
0.00493458891287446,
0.0328756682574749,
-0.01204726193100214,
-0.015343070030212402,
0.011991183273494244,
0.0008001053938642144,
0.02107529528439045,
0.038493454456329346,
-0.015622374601662159,
0.014628710225224495,
-0.05450115725398064,
-0.3340670168399811,
-0.03532618656754494,
-0.019880196079611778,
-0.004845769610255957,
0.03027648665010929,
-0.026788104325532913,
0.02299482934176922,
-0.024023795500397682,
0.0004945634864270687,
-0.012953538447618484,
0.08858555555343628,
-0.036482423543930054,
0.03243038430809975,
-0.07317954301834106,
0.020712126046419144,
0.06214393675327301,
0.03733446076512337,
0.016121529042720795,
-0.014052593149244785,
-0.010588056407868862,
-0.005995770450681448,
-0.06420160084962845,
-0.04146793484687805,
0.007699865382164717,
0.026232346892356873,
-0.005646456498652697,
0.09093613922595978,
0.0004669668269343674,
0.023238405585289,
-0.04101802781224251,
0.06705444306135178,
0.04401034861803055,
-0.02094058319926262,
-0.10647369921207428,
-0.033329494297504425,
-0.016746507957577705,
0.06173151731491089,
0.03029496595263481,
0.004521418362855911,
0.034957192838191986,
-0.050542961806058884,
0.004910719580948353,
-0.06243249401450157,
-0.07572676241397858,
-0.018209150061011314,
-0.006009004078805447,
-0.018049200996756554,
0.03045353852212429,
-0.01186967734247446,
0.03693235293030739,
-0.00038341066101565957,
0.0193891953676939,
-0.033296067267656326,
0.012155859731137753,
0.007955010049045086,
-0.010776028968393803,
-0.047172363847494125,
-0.037596847862005234,
0.04111620783805847,
0.057597823441028595,
0.015352829359471798,
0.08331260830163956,
0.007816609926521778,
-0.09831574559211731,
0.009098034352064133,
0.026750171557068825,
-0.021837443113327026,
0.007381325587630272,
0.06109128147363663,
-0.06052879989147186,
0.0029709949158132076,
0.10152168571949005,
0.029418857768177986,
0.06459828466176987,
0.0644020363688469,
0.03022693283855915,
-0.00021280835790093988,
0.014023073948919773,
0.06219402328133583,
-0.028090210631489754,
0.007847261615097523,
-0.03185483068227768,
0.07752019912004471,
-0.035681188106536865,
-0.0054017785005271435,
0.06726841628551483,
-0.005208499729633331,
-0.024405598640441895,
0.03052702359855175,
0.01653701812028885,
-0.06255810707807541,
0.0025823544710874557,
-0.02534947171807289,
-0.065641850233078,
0.06646204739809036,
-0.0022633273620158434,
-0.2427542507648468,
0.03633489832282066,
0.030332861468195915,
0.04612826183438301,
-0.008847519755363464,
-0.008943721652030945,
0.03823675960302353,
-0.03822026774287224,
0.009177938103675842,
0.02333257906138897,
0.025449329987168312,
0.03666352108120918,
-0.025790588930249214,
-0.0003031547530554235,
0.005487027112394571,
-0.009140216745436192,
0.024527784436941147,
0.017866358160972595,
0.02283402346074581,
-0.03746234253048897,
0.028503146022558212,
-0.021221481263637543,
0.13934646546840668,
0.034137457609176636,
-0.04089241847395897,
0.04245530813932419,
-0.02458222024142742,
0.026124557480216026,
0.013683210127055645,
-0.010956931859254837,
-0.04048110172152519,
0.036943838000297546,
-0.0068038408644497395,
-0.008669904433190823,
0.01401298213750124,
-0.027782049030065536,
-0.0105763403698802,
0.037984974682331085,
0.04396136850118637,
-0.0725632980465889,
-0.026862213388085365,
0.043770212680101395,
-0.013082563877105713,
0.03745193034410477,
0.060412582010030746,
-0.052020877599716187,
-0.0013318117707967758,
-0.009916928596794605,
-0.037543509155511856,
-0.020368319004774094,
-0.037903398275375366,
-0.07217388600111008,
0.01728707365691662,
-0.02027926966547966,
0.005108818877488375,
0.08664552867412567,
-0.016243966296315193,
-0.06787186861038208,
0.025014622136950493,
0.03589804470539093,
0.012384793721139431,
-0.06819364428520203,
0.12380807101726532,
-0.027607930824160576,
0.06026061251759529
] | [
0.04624864086508751,
0.08106587082147598,
0.010118070058524609,
0.008117372170090675,
0.02760535664856434,
-0.020502502098679543,
-0.011482718400657177,
-0.018795710057020187,
-0.013912429101765156,
-0.006881455425173044,
-0.021287964656949043,
0.011918424628674984,
0.03933996707201004,
0.01898816227912903,
-0.024890126660466194,
-0.0060874782502651215,
0.04230261594057083,
0.06944873929023743,
0.03815392777323723,
0.06218200549483299,
-0.05273309350013733,
0.012335008941590786,
0.03290431201457977,
-0.03152861073613167,
-0.03176673501729965,
0.033937204629182816,
-0.02758476324379444,
-0.0021416994277387857,
-0.00129030947573483,
-0.13826961815357208,
-0.011639874428510666,
-0.002116271061822772,
0.00492767384275794,
-0.019991852343082428,
0.01537233218550682,
-0.009108064696192741,
0.04722139984369278,
0.0177275650203228,
-0.04468062147498131,
0.04204476252198219,
0.03222721815109253,
-0.02975553460419178,
0.013116319663822651,
-0.017644580453634262,
0.01452188566327095,
-0.014868387021124363,
-0.04342728480696678,
-0.05310432240366936,
0.03539859130978584,
0.031051434576511383,
-0.055207159370183945,
-0.010677263140678406,
0.009739602915942669,
0.0010870614787563682,
-0.027984898537397385,
0.0162704735994339,
0.008541603572666645,
0.013062062673270702,
0.02314893528819084,
-0.002674162620678544,
0.03620864078402519,
0.00669602956622839,
-0.057267431169748306,
-0.029316315427422523,
-0.000875315978191793,
-0.029969504103064537,
0.023033209145069122,
-0.01353629119694233,
-0.027145948261022568,
0.03771326318383217,
0.017672009766101837,
0.07074898481369019,
-0.04753165319561958,
-0.05094253271818161,
-0.053600117564201355,
0.0411306694149971,
0.03256992995738983,
-0.01451057754456997,
-0.025299862027168274,
0.04938901588320732,
-0.0388980470597744,
0.022700726985931396,
-0.03183766454458237,
-0.02139941044151783,
-0.06064007058739662,
0.040816955268383026,
0.002283447189256549,
-0.008501345291733742,
0.013079899363219738,
-0.007780469488352537,
-0.024501163512468338,
0.004284027498215437,
-0.026952307671308517,
-0.015106307342648506,
-0.045566096901893616,
-0.05793335661292076,
0.01854669861495495,
-0.02232612483203411,
0.011951462365686893,
0.7732190489768982,
-0.006388699635863304,
-0.0051885987631976604,
-0.005984415765851736,
0.017541736364364624,
0.054644875228405,
0.018567034974694252,
0.009102940559387207,
-0.02327471785247326,
-0.02626907266676426,
0.012368072755634785,
-0.006176836788654327,
-0.0045111337676644325,
0.0033044060692191124,
0.05425699055194855,
0.014492083340883255,
0.02489476650953293,
0.015279089100658894,
-0.008579790592193604,
-0.015186887234449387,
-0.003700274508446455,
0.027301358059048653,
-0.0199928916990757,
0.04204656928777695,
-0.00022349765640683472,
-0.039276860654354095,
-0.18734656274318695,
-0.016497233882546425,
-7.81245741310382e-33,
0.007816179655492306,
-0.054435551166534424,
0.05107947811484337,
0.029359940439462662,
0.06837758421897888,
0.0015481221489608288,
0.004050177522003651,
-0.026541780680418015,
-0.023400748148560524,
-0.027752935886383057,
-0.05554596334695816,
-0.0005141995497979224,
0.012758692726492882,
-0.0029856027103960514,
-0.00036066389293409884,
-0.012969717383384705,
0.0051489523611962795,
0.010305866599082947,
-0.009912699460983276,
0.014799737371504307,
0.045656077563762665,
0.018172916024923325,
-0.050617434084415436,
0.008072963915765285,
0.005824592430144548,
0.009024692699313164,
0.01690680906176567,
-0.021611524745821953,
0.010293984785676003,
-0.04714563116431236,
-0.03333621844649315,
-0.00533169275149703,
-0.012595538049936295,
-0.026244958862662315,
0.02347063459455967,
-0.07189880311489105,
0.01939566060900688,
0.020001716911792755,
-0.06802103668451309,
-0.00993616133928299,
-0.0402868315577507,
-0.06281641870737076,
0.001735214376822114,
-0.021695513278245926,
-0.02146141044795513,
-0.047212641686201096,
-0.0002807008568197489,
0.027559839189052582,
0.01011864934116602,
0.011739651672542095,
0.007218539714813232,
-0.011112114414572716,
-0.0023478553630411625,
0.005246554501354694,
-0.038712065666913986,
-0.02873079478740692,
-0.0090334452688694,
0.004958924371749163,
-0.02450779639184475,
0.02184867672622204,
-0.012930967845022678,
0.010812167078256607,
-0.003275313414633274,
0.01971268653869629,
0.01225574966520071,
0.03497293218970299,
-0.006875281687825918,
0.03445684164762497,
-0.02193124033510685,
0.09543736279010773,
-0.02743668295443058,
0.03722299262881279,
-0.008538446389138699,
-0.019137265160679817,
0.036520492285490036,
-0.03962947055697441,
0.004254452884197235,
0.005858275573700666,
0.013212451711297035,
0.053185343742370605,
0.004066400229930878,
0.010396146215498447,
-0.04043957218527794,
-0.001719472580589354,
-0.025505881756544113,
-0.023314030840992928,
0.04411822929978371,
0.023436862975358963,
0.03497596085071564,
0.04810204356908798,
0.01264088787138462,
0.03294433653354645,
-0.017090585082769394,
-0.02543746493756771,
-0.044243186712265015,
6.980889199445118e-33,
0.003721758257597685,
-0.005250863265246153,
-0.04176783934235573,
0.011250902898609638,
0.02449602447450161,
0.016609974205493927,
0.06294336169958115,
-0.017860477790236473,
-0.022749587893486023,
-0.010794978588819504,
-0.015280270017683506,
0.034762196242809296,
-0.016257720068097115,
0.06404882669448853,
0.033952873200178146,
0.006899537052959204,
0.0063583143055438995,
-0.05531223118305206,
0.005176749546080828,
-0.01113299559801817,
0.0107645895332098,
0.011696469970047474,
0.018059028312563896,
0.030838709324598312,
-0.007134811021387577,
0.0064321402460336685,
0.049048200249671936,
0.01718372479081154,
-0.07014448940753937,
0.016972366720438004,
0.009751340374350548,
-0.02277708239853382,
0.020990367978811264,
0.0345025360584259,
0.018472544848918915,
0.04412270709872246,
0.0032813935540616512,
0.05765771493315697,
-0.021908758208155632,
-0.013353650458157063,
-0.0031279956456273794,
-0.026461828500032425,
-0.033318281173706055,
0.056163277477025986,
0.002665163017809391,
-0.0033482739236205816,
-0.0016406594077125192,
0.01844719797372818,
-0.011471164412796497,
0.022739822044968605,
-0.029927821829915047,
-0.010826805606484413,
0.022033805027604103,
0.05100208520889282,
0.016313493251800537,
-0.054531604051589966,
-0.049119334667921066,
0.02156919427216053,
0.006032121833413839,
0.04031230881810188,
0.0303064975887537,
-0.013507457450032234,
-0.026325572282075882,
0.047329943627119064,
-0.0119159622117877,
-0.014528486877679825,
0.004317522048950195,
0.00829621683806181,
-0.03140944987535477,
-0.0023991228081285954,
0.04280566796660423,
0.0170252937823534,
0.006332904100418091,
0.056037962436676025,
0.021015029400587082,
-0.04207531362771988,
-0.024482030421495438,
-0.02358999103307724,
-0.03542596101760864,
0.030521834269165993,
0.004590396769344807,
-0.006578122265636921,
0.018754830583930016,
-0.06619273871183395,
-0.008506836369633675,
0.026450656354427338,
-0.010574433021247387,
0.03340182825922966,
0.0018435963429510593,
-0.045782119035720825,
0.025819925591349602,
-0.022091565653681755,
-0.06981605291366577,
0.03971113637089729,
-0.04536831006407738,
-1.229376245248659e-8,
0.0024793094489723444,
0.0070869107730686665,
0.020712431520223618,
0.023126592859625816,
-0.02452663891017437,
0.015949217602610588,
-0.011660781688988209,
0.02036411501467228,
-0.02932879701256752,
0.02136043645441532,
-0.014263011515140533,
-0.04014495760202408,
0.0005163995665498078,
0.005090276710689068,
0.037045303732156754,
0.02356106787919998,
0.020929815247654915,
0.022689543664455414,
0.045203980058431625,
-0.036790139973163605,
-0.006069732829928398,
0.029529880732297897,
0.033082377165555954,
-0.013517527841031551,
-0.04088270291686058,
0.013064892031252384,
0.015114140696823597,
-0.08058886975049973,
-0.018308179453015327,
-0.021199805662035942,
-0.0058701299130916595,
-0.011796444654464722,
-0.06902472674846649,
0.03362144157290459,
-0.038888268172740936,
-0.011870416812598705,
-0.015429851599037647,
0.030720319598913193,
0.010347741656005383,
0.0038788635283708572,
-0.054103851318359375,
-0.019395336508750916,
-0.0485900454223156,
-0.04882648587226868,
-0.026720207184553146,
0.029092567041516304,
-0.01945563592016697,
-0.005331175867468119,
0.007617057766765356,
-0.029444264248013496,
0.04197551682591438,
-0.0004278561391402036,
0.043886080384254456,
0.024471692740917206,
0.04709986597299576,
0.01879960671067238,
0.029941445216536522,
-0.020501496270298958,
-0.01642749272286892,
-0.01207037828862667,
0.014758160337805748,
0.06701665371656418,
-0.0032647030893713236,
0.01552774291485548
] | docker-1-9-port-forwarding-on-mac-os-x | https://markhneedham.com/blog/2015/11/08/docker-1-9-port-forwarding-on-mac-os-x |
false | 2015-11-08 11:47:36 | IntelliJ 'java: cannot find JDK 1.8' | [
"software-development"
] | [
"Software Development"
] | I upgraded to https://www.jetbrains.com/idea/download/[IntelliJ 15.0] a few days ago and was initially seeing the following exception when trying to compile:
[source,text]
----
module-name
java: cannot find JDK 1.8
----
I've been compiling against JDK 1.8 for a while now using IntelliJ 14 so I wasn't sure what was going on.
I checked my project settings and they seemed fine:
image::{{<siteurl>}}/uploads/2015/11/2015-11-08_11-39-16.png[2015 11 08 11 39 16,500]
The error message suggested I look in the logs to find more information but I wasn't sure where those live! I eventually found out the answer via the https://intellij-support.jetbrains.com/hc/en-us/articles/206827517-Locating-IDE-log-files[comments of this support ticket] although I later found https://intellij-support.jetbrains.com/hc/en-us/articles/206827437-Directories-used-by-the-IDE-to-store-settings-caches-plugins-and-logs[a post describing it in more detail].
Looking into the logs revealed the following error message:
[source,bash]
----
$ less /Users/markneedham/Library/Logs/IntelliJIdea15/idea.log
2015-11-05 16:31:28,429 [ 428129] INFO - figurations.GeneralCommandLine - Cannot run program "/Library/Java/JavaVirtualMachines/jdk1.7.0_71.jdk/Contents/Home/bin/java" (in directory "/Applications/IntelliJ IDEA 15.app/Contents/bin"): error=2, No such file or directory
java.io.IOException: Cannot run program "/Library/Java/JavaVirtualMachines/jdk1.7.0_71.jdk/Contents/Home/bin/java" (in directory "/Applications/IntelliJ IDEA 15.app/Contents/bin"): error=2, No such file or directory
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
at com.intellij.execution.configurations.GeneralCommandLine.startProcess(GeneralCommandLine.java:368)
at com.intellij.execution.configurations.GeneralCommandLine.createProcess(GeneralCommandLine.java:354)
at com.intellij.execution.process.OSProcessHandler.<init>(OSProcessHandler.java:38)
at org.jetbrains.idea.maven.server.MavenServerManager$3.startProcess(MavenServerManager.java:359)
at org.jetbrains.idea.maven.server.MavenServerManager$3.execute(MavenServerManager.java:345)
at com.intellij.execution.rmi.RemoteProcessSupport.a(RemoteProcessSupport.java:206)
at com.intellij.execution.rmi.RemoteProcessSupport.acquire(RemoteProcessSupport.java:139)
at org.jetbrains.idea.maven.server.MavenServerManager.create(MavenServerManager.java:163)
at org.jetbrains.idea.maven.server.MavenServerManager.create(MavenServerManager.java:71)
at org.jetbrains.idea.maven.server.RemoteObjectWrapper.getOrCreateWrappee(RemoteObjectWrapper.java:41)
at org.jetbrains.idea.maven.server.MavenServerManager$9.execute(MavenServerManager.java:525)
at org.jetbrains.idea.maven.server.MavenServerManager$9.execute(MavenServerManager.java:522)
at org.jetbrains.idea.maven.server.RemoteObjectWrapper.perform(RemoteObjectWrapper.java:76)
at org.jetbrains.idea.maven.server.MavenServerManager.applyProfiles(MavenServerManager.java:522)
at org.jetbrains.idea.maven.project.MavenProjectReader.applyProfiles(MavenProjectReader.java:369)
at org.jetbrains.idea.maven.project.MavenProjectReader.doReadProjectModel(MavenProjectReader.java:98)
at org.jetbrains.idea.maven.project.MavenProjectReader.access$300(MavenProjectReader.java:42)
at org.jetbrains.idea.maven.project.MavenProjectReader$1.doProcessParent(MavenProjectReader.java:422)
at org.jetbrains.idea.maven.project.MavenProjectReader$1.doProcessParent(MavenProjectReader.java:399)
at org.jetbrains.idea.maven.project.MavenParentProjectFileProcessor.processRepositoryParent(MavenParentProjectFileProcessor.java:84)
at org.jetbrains.idea.maven.project.MavenParentProjectFileProcessor.process(MavenParentProjectFileProcessor.java:62)
at org.jetbrains.idea.maven.project.MavenProjectReader.resolveInheritance(MavenProjectReader.java:425)
at org.jetbrains.idea.maven.project.MavenProjectReader.doReadProjectModel(MavenProjectReader.java:95)
at org.jetbrains.idea.maven.project.MavenProjectReader.access$300(MavenProjectReader.java:42)
at org.jetbrains.idea.maven.project.MavenProjectReader$1.doProcessParent(MavenProjectReader.java:422)
at org.jetbrains.idea.maven.project.MavenProjectReader$1.doProcessParent(MavenProjectReader.java:399)
at org.jetbrains.idea.maven.project.MavenParentProjectFileProcessor.processRepositoryParent(MavenParentProjectFileProcessor.java:84)
at org.jetbrains.idea.maven.project.MavenParentProjectFileProcessor.process(MavenParentProjectFileProcessor.java:62)
at org.jetbrains.idea.maven.project.MavenProjectReader.resolveInheritance(MavenProjectReader.java:425)
at org.jetbrains.idea.maven.project.MavenProjectReader.doReadProjectModel(MavenProjectReader.java:95)
at org.jetbrains.idea.maven.project.MavenProjectReader.access$300(MavenProjectReader.java:42)
at org.jetbrains.idea.maven.project.MavenProjectReader$1.doProcessParent(MavenProjectReader.java:422)
at org.jetbrains.idea.maven.project.MavenProjectReader$1.doProcessParent(MavenProjectReader.java:399)
at org.jetbrains.idea.maven.project.MavenParentProjectFileProcessor.processRepositoryParent(MavenParentProjectFileProcessor.java:84)
at org.jetbrains.idea.maven.project.MavenParentProjectFileProcessor.process(MavenParentProjectFileProcessor.java:62)
at org.jetbrains.idea.maven.project.MavenProjectReader.resolveInheritance(MavenProjectReader.java:425)
at org.jetbrains.idea.maven.project.MavenProjectReader.doReadProjectModel(MavenProjectReader.java:95)
at org.jetbrains.idea.maven.project.MavenProjectReader.readProject(MavenProjectReader.java:53)
at org.jetbrains.idea.maven.project.MavenProject.read(MavenProject.java:626)
at org.jetbrains.idea.maven.project.MavenProjectsTree.doUpdate(MavenProjectsTree.java:564)
at org.jetbrains.idea.maven.project.MavenProjectsTree.doAdd(MavenProjectsTree.java:509)
at org.jetbrains.idea.maven.project.MavenProjectsTree.update(MavenProjectsTree.java:470)
at org.jetbrains.idea.maven.project.MavenProjectsTree.updateAll(MavenProjectsTree.java:441)
at org.jetbrains.idea.maven.project.MavenProjectsProcessorReadingTask.perform(MavenProjectsProcessorReadingTask.java:60)
at org.jetbrains.idea.maven.project.MavenProjectsProcessor.doProcessPendingTasks(MavenProjectsProcessor.java:134)
at org.jetbrains.idea.maven.project.MavenProjectsProcessor.access$100(MavenProjectsProcessor.java:30)
at org.jetbrains.idea.maven.project.MavenProjectsProcessor$2.run(MavenProjectsProcessor.java:109)
at org.jetbrains.idea.maven.utils.MavenUtil$7.run(MavenUtil.java:464)
at com.intellij.openapi.application.impl.ApplicationImpl$8.run(ApplicationImpl.java:365)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
at org.jetbrains.ide.PooledThreadExecutor$1$1.run(PooledThreadExecutor.java:55)
Caused by: java.io.IOException: error=2, No such file or directory
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.<init>(UNIXProcess.java:248)
at java.lang.ProcessImpl.start(ProcessImpl.java:134)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
... 55 more
----
Somewhere I had a JDK 1.7 defined which no longer existed on my machine. I actually only have one JDK installed at the moment:
[source,bash]
----
$ /usr/libexec/java_home -V
Matching Java Virtual Machines (1):
1.8.0_51, x86_64: "Java SE 8" /Library/Java/JavaVirtualMachines/jdk1.8.0_51.jdk/Contents/Home
/Library/Java/JavaVirtualMachines/jdk1.8.0_51.jdk/Contents/Home
----
A bit of exploring led me to 'Platform Settings' which is where the culprit was:
image::{{<siteurl>}}/uploads/2015/11/2015-11-08_11-45-00.png[2015 11 08 11 45 00,500]
That setting lives actually lives in +++<cite>+++/Users/markneedham/Library/Preferences/IntelliJIdea15/options/jdk.table.xml+++</cite>+++ and once I removed it IntelliJ resumed normal service. | null | null | [
-0.034645531326532364,
0.0025853258557617664,
-0.029953399673104286,
0.03969046100974083,
0.07558335363864899,
0.016994265839457512,
0.027392026036977768,
0.02701663039624691,
0.011518789455294609,
-0.031105754896998405,
-0.03404995799064636,
-0.014242483302950859,
-0.06208113208413124,
0.024550925940275192,
-0.03541067987680435,
0.04576896131038666,
0.07459279894828796,
0.015604618936777115,
-0.0013586351415142417,
0.024588771164417267,
0.044285617768764496,
0.05797939747571945,
-0.03061502054333687,
0.03452390059828758,
0.0149665717035532,
0.0034036338329315186,
0.028057947754859924,
-0.013193509541451931,
-0.08376315981149673,
-0.04404662922024727,
0.006139256060123444,
0.013576931320130825,
0.051417551934719086,
0.005680196452885866,
0.011294873431324959,
0.025459449738264084,
-0.008479183539748192,
0.012201346457004547,
0.0021586341317743063,
0.04986243322491646,
-0.04642142355442047,
0.039948347955942154,
0.01454617828130722,
0.017767030745744705,
-0.04423534870147705,
0.02290971577167511,
-0.019798044115304947,
0.009315931238234043,
-0.01477895863354206,
-0.012404962442815304,
-0.051236238330602646,
0.047012992203235626,
-0.020474625751376152,
-0.03212383762001991,
0.003267467487603426,
0.03190417215228081,
0.02124031074345112,
-0.0923691987991333,
0.03797364979982376,
-0.023585358634591103,
0.019445331767201424,
-0.0057816593907773495,
0.0023504060227423906,
0.03481036797165871,
0.0026019341312348843,
-0.035143204033374786,
-0.017951183021068573,
0.05126422271132469,
-0.05438821017742157,
-0.03207104280591011,
0.00941536109894514,
0.010644991882145405,
-0.02146582491695881,
-0.0045546069741249084,
0.027286428958177567,
-0.019064968451857567,
-0.013900624588131905,
0.062022820115089417,
0.004556974396109581,
0.031913936138153076,
-0.058541297912597656,
-0.0075363279320299625,
0.0339285209774971,
0.008215597830712795,
0.028887279331684113,
-0.0275968499481678,
-0.03687895089387894,
-0.0328637957572937,
-0.03191596269607544,
0.018246520310640335,
0.025278059765696526,
-0.050770435482263565,
0.008466464467346668,
0.03459486365318298,
-0.007377058733254671,
0.02167109213769436,
0.0012968628434464335,
-0.00866708718240261,
0.010331280529499054,
0.02213970571756363,
-0.023806391283869743,
0.017839761450886726,
0.006647508125752211,
0.06296581774950027,
-0.06008754298090935,
-0.0017913554329425097,
0.005135638639330864,
-0.03989845886826515,
-0.0015296904603019357,
-0.015886597335338593,
-0.02989065833389759,
0.05112902820110321,
-0.011843722313642502,
-0.019102612510323524,
-0.060281820595264435,
0.07880692183971405,
0.010456073097884655,
-0.019602598622441292,
0.0012864952441304922,
0.035969603806734085,
0.028598764911293983,
0.05780373141169548,
-0.009991992264986038,
0.07243537902832031,
-0.02055276930332184,
0.060717109590768814,
-0.04014304652810097,
0.028391603380441666,
-0.018521340563893318,
-0.09012094140052795,
0.007012989372014999,
0.03852289915084839,
-0.005811890587210655,
-0.0017843719106167555,
-0.0052293348126113415,
0.0013288381742313504,
-0.013973208144307137,
-0.012603389099240303,
0.04263714700937271,
0.024597281590104103,
-0.020440271124243736,
-0.03145318478345871,
-0.01687452755868435,
-0.000606777030043304,
0.017251599580049515,
0.007382719777524471,
-0.036347705870866776,
-0.03218410909175873,
-0.027357719838619232,
0.007197076920419931,
-0.008937329053878784,
0.052272725850343704,
0.049862831830978394,
-0.02661997638642788,
0.007144390605390072,
0.11386492848396301,
0.014730822294950485,
0.009691573679447174,
-0.03180241212248802,
0.020554548129439354,
0.0030347846914082766,
0.06206156685948372,
-0.010047257877886295,
0.04154164716601372,
-0.014284814707934856,
-0.04011877626180649,
0.007821394130587578,
0.012105420231819153,
-0.015328025445342064,
-0.011849531903862953,
-0.06632152944803238,
-0.09847790002822876,
0.05832323804497719,
-0.012291809543967247,
0.01755361072719097,
-0.008357447572052479,
0.08804740756750107,
0.020896602421998978,
0.03383545204997063,
0.027595046907663345,
-0.07117047160863876,
0.001975245075300336,
-0.019803708419203758,
0.0005892598419450223,
0.01447607483714819,
0.012698574922978878,
0.05649176239967346,
0.010899044573307037,
-0.02984909527003765,
0.018698852509260178,
-0.06865885853767395,
-0.07855440676212311,
-0.021195949986577034,
0.00018295452173333615,
0.04470783844590187,
-0.017056234180927277,
-0.03265972435474396,
0.04560212045907974,
0.028279323130846024,
0.010602451860904694,
0.05547118932008743,
0.024591345340013504,
0.01474636048078537,
-0.048910822719335556,
-0.04891330003738403,
0.04794522747397423,
0.04286499321460724,
-0.02084854245185852,
-0.04452528804540634,
0.008477255702018738,
-0.014859236776828766,
0.0015142683405429125,
0.05243558809161186,
0.0016947041731327772,
0.06069537252187729,
0.019689269363880157,
-0.0010231101186946034,
-0.050436001271009445,
0.04977944865822792,
-0.06457922607660294,
-0.008333410136401653,
-0.00039674178697168827,
-0.026279551908373833,
-0.033216480165719986,
0.011613269336521626,
0.10566113144159317,
0.023577038198709488,
-0.03306049108505249,
-0.0544542632997036,
0.05009830370545387,
0.023540910333395004,
-0.03472325950860977,
0.011820284649729729,
0.0027469471096992493,
0.019001146778464317,
0.0050328453071415424,
-0.03442470356822014,
-0.03143612667918205,
0.014351456426084042,
-0.02046149969100952,
0.004548928234726191,
0.08699441701173782,
-0.03802495449781418,
0.04827074334025383,
0.010270101949572563,
-0.03420792892575264,
0.010500524193048477,
-0.05031914263963699,
-0.06647740304470062,
-0.026191765442490578,
0.03144131600856781,
-0.006636200472712517,
0.03470736742019653,
-0.03078123740851879,
-0.0335763618350029,
-0.020284634083509445,
-0.04919561371207237,
0.010898086242377758,
0.015879889950156212,
0.05682450532913208,
0.004580339416861534,
0.015371769666671753,
-0.009618858806788921,
0.0342281199991703,
0.005394377280026674,
-0.0100509999319911,
-0.002360042417421937,
0.010857457295060158,
0.012088684365153313,
0.016672678291797638,
0.01336483471095562,
0.01148906722664833,
-0.00947777833789587,
-0.01920260675251484,
0.012365848757326603,
-0.005213399883359671,
0.025469135493040085,
0.0037673613987863064,
-0.006506391800940037,
-0.04441029950976372,
-0.02118164673447609,
0.04018905386328697,
-0.043108876794576645,
-0.028503844514489174,
0.024705661460757256,
-0.03739570081233978,
0.008365449495613575,
-0.06829128414392471,
-0.07127953320741653,
0.00565183674916625,
0.008500916883349419,
-0.0032978083472698927,
-0.03447004780173302,
0.015266522765159607,
0.0734865665435791,
-0.00989855919033289,
0.027024470269680023,
0.014396480284631252,
0.008560318499803543,
0.05549219250679016,
0.007683262694627047,
0.03169454261660576,
0.04012804105877876,
-0.0024275463074445724,
-0.004716158844530582,
-0.015946941450238228,
0.015996141359210014,
-0.0363219678401947,
-0.2602904736995697,
0.034890059381723404,
-0.03226764127612114,
-0.07548809051513672,
0.02339932508766651,
-0.010584111325442791,
-0.03304464742541313,
-0.04720860719680786,
-0.00648917630314827,
-0.004222641233354807,
-0.022242264822125435,
-0.05682602897286415,
0.0114291962236166,
0.054761044681072235,
-0.05266650766134262,
-0.014580503106117249,
0.014931000769138336,
-0.020504426211118698,
-0.02776084654033184,
-0.0005368723650462925,
-0.0013057797914370894,
-0.03989872708916664,
0.012105721980333328,
0.07753171026706696,
0.01920963078737259,
0.048419203609228134,
-0.07512743026018143,
0.07754424959421158,
-0.04313019663095474,
0.006220054347068071,
-0.007055324036628008,
-0.013541783206164837,
-0.04672158509492874,
-0.0037074899300932884,
-0.05055873468518257,
-0.0047729890793561935,
-0.020979635417461395,
-0.014446593821048737,
0.010060330852866173,
0.045894939452409744,
-0.024963174015283585,
-0.06567353755235672,
0.027700021862983704,
-0.02011590637266636,
0.04492800682783127,
-0.022603366523981094,
-0.14613427221775055,
-0.01024338137358427,
-0.023421406745910645,
0.06665994971990585,
-0.04722451791167259,
-0.019527722150087357,
0.013887237757444382,
0.045486096292734146,
-0.005692454520612955,
-0.01907392218708992,
-0.020797500386834145,
-0.03592337295413017,
-0.03234756365418434,
-0.035481344908475876,
0.03768486902117729,
-0.03569365292787552,
-0.040861744433641434,
-0.051559802144765854,
0.0054335095919668674,
-0.05614418908953667,
-0.02875053510069847,
-0.014049531891942024,
0.070372574031353,
-0.003056278917938471,
-0.03186458721756935,
-0.01486507710069418,
-0.005421930458396673,
-0.11701145023107529,
-0.0006200395291671157,
-0.020101601257920265,
-0.061645809561014175,
0.010947865433990955,
-0.03620369732379913,
0.07352004200220108,
-0.021832440048456192,
-0.00562615180388093,
0.02360587939620018,
-0.005853651091456413,
-0.0087608452886343,
-0.016036083921790123,
0.014954245649278164,
-0.007280307821929455,
0.0161737073212862,
0.0014070688048377633,
0.06383343786001205,
-0.03185351565480232,
-0.03435542434453964,
-0.040565598756074905,
-0.01518935151398182,
0.03633968532085419,
0.011826145462691784,
-0.0008907453739084303,
0.016153588891029358,
0.05771544575691223,
0.008211174979805946,
-0.046989984810352325,
-0.01842080056667328,
-0.004748647101223469,
-0.016818217933177948,
-0.026002973318099976,
-0.0475078709423542,
-0.006627143360674381,
0.010217331349849701,
0.05584515631198883,
-0.003280334174633026,
-0.05379408225417137,
0.014545061625540257,
-0.05778547003865242,
-0.03565691038966179,
-0.023298898711800575,
0.027208708226680756,
0.06710010021924973,
0.02075766772031784,
-0.04116456210613251,
-0.0539400577545166,
0.015430217608809471,
0.006722433492541313,
0.010570855811238289,
-0.03338451683521271,
-0.009891191497445107,
-0.013501951470971107,
-0.013431861065328121,
-0.004901781678199768,
0.0024673317093402147,
-0.038869962096214294,
0.04038305953145027,
0.029104357585310936,
-0.007601648569107056,
0.00480017252266407,
-0.05959395319223404,
0.0022600614465773106,
-0.030648013576865196,
-0.01173152681440115,
-0.02053433656692505,
-0.023162581026554108,
0.038375187665224075,
0.01450491975992918,
-0.007936017587780952,
0.026632223278284073,
0.006197531707584858,
0.0385298915207386,
0.0044638230465352535,
-0.006859675049781799,
-0.02778077870607376,
0.01607838273048401,
-0.04063602536916733,
0.053783636540174484,
-0.02010735310614109,
-0.05920484662055969,
-0.01890602521598339,
0.026566946879029274,
-0.025469185784459114,
-0.030418790876865387,
-0.024724505841732025,
0.039993949234485626,
-0.0345553420484066,
-0.016459496691823006,
0.02579176053404808,
-0.028535783290863037,
0.06679993122816086,
0.025570040568709373,
0.03845182806253433,
-0.013146952725946903,
0.007236977107822895,
0.015236249193549156,
-0.016437828540802002,
0.010209056548774242,
0.02801303006708622,
0.002893064869567752,
-0.0023745547514408827,
0.03586501255631447,
0.014283277094364166,
0.04781836271286011,
0.001698619918897748,
-0.025072868913412094,
-0.010044907219707966,
0.01920076459646225,
0.05554840713739395,
0.010128375142812729,
-0.02588239498436451,
-0.004231640603393316,
-0.014013114385306835,
-0.026787204667925835,
-0.08400330692529678,
-0.03226028010249138,
-0.005483051296323538,
0.003974756691604853,
0.03520786017179489,
-0.009133707731962204,
-0.07431866973638535,
0.014204700477421284,
0.004747482948005199,
0.021893227472901344,
-0.004831218626350164,
-0.039584532380104065,
-0.01190751139074564,
-0.019461771473288536,
0.07116346806287766,
0.07500512897968292,
-0.05684775859117508,
0.0014754958683624864,
-0.004398347344249487,
0.034462809562683105,
0.024086058139801025,
-0.00008634782716399059,
-0.07149367779493332,
-0.003967925440520048,
-0.014566784724593163,
0.028116796165704727,
-0.03799843788146973,
-0.028112759813666344,
-0.02440563775599003,
0.020604591816663742,
-0.0058003622107207775,
-0.01668265089392662,
0.0023272887337952852,
0.014469237998127937,
0.004715693648904562,
-0.02262445166707039,
0.00921955518424511,
-0.016604017466306686,
0.028197424486279488,
0.015836575999855995,
-0.02642868272960186,
0.05501716211438179,
-0.01886410266160965,
0.0296027772128582,
0.021836701780557632,
0.01296935509890318,
-0.017193522304296494,
-0.002469106111675501,
0.006380520761013031,
0.033269837498664856,
0.021342258900403976,
0.017830129712820053,
-0.01631983555853367,
-0.002204155782237649,
0.0014236895367503166,
-0.014821571297943592,
0.016778917983174324,
-0.03152570128440857,
-0.02771221660077572,
0.005149241536855698,
0.04732303321361542,
0.016644272953271866,
0.03049721010029316,
-0.008822865784168243,
-0.017850786447525024,
0.07480701804161072,
-0.0493987500667572,
-0.03531628102064133,
0.01945221982896328,
-0.04874827340245247,
0.02789190597832203,
0.014490067958831787,
0.025539550930261612,
-0.0362948440015316,
0.04641811177134514,
0.04814254492521286,
-0.01066475361585617,
0.009770954959094524,
-0.016050375998020172,
0.01995275728404522,
-0.058013007044792175,
-0.03913480043411255,
-0.08638851344585419,
-0.021768154576420784,
0.03472922742366791,
0.011365847662091255,
-0.005394803360104561,
-0.005427141208201647,
-0.02457629330456257,
0.04490629956126213,
-0.05927002429962158,
-0.02732091024518013,
0.018923472613096237,
-0.02802843041718006,
-0.011433489620685577,
0.030899550765752792,
-0.029143208637833595,
0.02773495763540268,
0.010692737065255642,
-0.04441378265619278,
-0.05099776014685631,
-0.02464253641664982,
0.04997286573052406,
0.05059419199824333,
0.019741397351026535,
-0.01772984489798546,
0.03859013691544533,
0.05980311334133148,
0.0323668047785759,
0.0547589547932148,
0.02150859124958515,
0.017477264627814293,
0.04167827218770981,
0.0563163198530674,
0.006784623023122549,
-0.052070263773202896,
0.0012207188410684466,
-0.00015441882715094835,
-0.05068512633442879,
0.02182968333363533,
-0.0012721376260742545,
-0.008087229914963245,
-0.012779234908521175,
0.055089667439460754,
0.03418860211968422,
0.0038091393653303385,
0.006576492451131344,
-0.0059160226956009865,
-0.059651825577020645,
0.0010816578287631273,
-0.05278979614377022,
0.0066949608735740185,
-0.052919644862413406,
0.05608517676591873,
0.0009292152244597673,
0.0037274318747222424,
0.051962874829769135,
0.03701988607645035,
-0.0013924161903560162,
0.00040711279143579304,
0.0713568702340126,
0.0687037780880928,
-0.0045211403630673885,
0.054003745317459106,
0.07071233540773392,
-0.042619261890649796,
-0.042799126356840134,
0.0011320238700136542,
-0.03738697990775108,
-0.02653392031788826,
-0.01627473346889019,
-0.0031043284106999636,
0.045221634209156036,
0.01794060505926609,
0.07181145250797272,
-0.025265375152230263,
0.049309857189655304,
0.007797012105584145,
-0.0019558710046112537,
0.02527054212987423,
0.01805378496646881,
0.0020658790599554777,
0.02911553718149662,
-0.03429213911294937,
-0.04061437025666237,
0.005865111481398344,
-0.03606288507580757,
-0.008932205848395824,
0.03213879466056824,
0.012971233576536179,
0.0008198975119739771,
0.05640961229801178,
0.055327318608760834,
0.058264534920454025,
-0.009907872416079044,
-0.00440112454816699,
-0.014538101851940155,
0.03189421817660332,
0.028827348724007607,
0.002293694531545043,
-0.009747734293341637,
-0.029999874532222748,
0.007698907516896725,
-0.03070610947906971,
-0.020717613399028778,
-0.02661430463194847,
0.00669098598882556,
0.05140127241611481,
-0.0454862155020237,
0.019022837281227112,
0.05078229680657387,
0.010056945495307446,
-0.036434661597013474,
-0.056193143129348755,
-0.019923046231269836,
-0.010229585692286491,
-0.05253107100725174,
-0.004031127318739891,
0.03249991312623024,
0.01686072163283825,
-0.03132472187280655,
-0.009603274054825306,
-0.02768738940358162,
-0.006038973573595285,
0.024046147242188454,
-0.0735231339931488,
-0.020276226103305817,
0.014448846690356731,
0.012420550920069218,
0.009052247740328312,
0.029989860951900482,
0.0556977316737175,
-0.029868124052882195,
-0.013908146880567074,
-0.0009020622237585485,
-0.002080608159303665,
0.02746935375034809,
0.004086482338607311,
0.0262416061013937,
-0.0668857991695404,
0.021124057471752167,
0.028821228072047234,
0.0053034196607768536,
-0.04353578761219978,
0.00037135108141228557,
0.06291783601045609,
-0.004027105867862701,
0.07809452712535858,
0.02861834689974785,
0.012234157882630825,
-0.03265555948019028,
-0.01870567537844181,
0.0015470338985323906,
-0.0007257293327711523,
0.021975263953208923,
-0.003269946901127696,
0.0867723822593689,
0.040631577372550964,
-0.016419071704149246,
-0.019127126783132553,
-0.031665924936532974,
0.00020850183500442654,
-0.024517953395843506,
-0.023230042308568954,
-0.02999245747923851,
-0.06901682913303375,
-0.08314312249422073,
0.027659473940730095,
0.012274657376110554,
-0.008246006444096565,
-0.013950268737971783,
0.010519567877054214,
0.02695557475090027,
-0.0651281550526619,
0.03432284668087959,
-0.06793573498725891,
-0.01749674789607525,
0.005089995451271534,
-0.007422528229653835,
-0.004840848967432976,
0.01787630282342434,
0.04998496174812317,
-0.021810472011566162,
0.03061254508793354,
-0.0365239642560482,
0.010157417505979538,
-0.03657433018088341,
0.03631541505455971,
0.04550570622086525,
-0.007557456847280264,
-0.03169902041554451
] | [
-0.08490008115768433,
-0.03318990767002106,
-0.02688368409872055,
-0.02198036201298237,
0.02488202229142189,
-0.038631342351436615,
-0.06261985749006271,
0.04609930142760277,
0.013445950113236904,
-0.04645884409546852,
0.02726534940302372,
-0.03562410920858383,
0.004759232513606548,
-0.0024840550031512976,
0.08143646270036697,
0.033170219510793686,
-0.005726900417357683,
-0.0549282431602478,
-0.022209009155631065,
-0.02056717500090599,
0.02571369707584381,
-0.014367117546498775,
0.006505042314529419,
-0.06217197701334953,
-0.031359925866127014,
0.054606880992650986,
0.03642178699374199,
-0.04644903913140297,
-0.01415492594242096,
-0.16573452949523926,
0.013337959535419941,
-0.03009115345776081,
0.0417473167181015,
-0.018164241686463356,
0.004431857727468014,
0.05439357832074165,
-0.002193702384829521,
0.03207843005657196,
0.0037106573581695557,
0.023336922749876976,
-0.001619223621673882,
0.025448212400078773,
-0.05994471162557602,
-0.012473652139306068,
0.011587071232497692,
-0.024210147559642792,
0.02519635111093521,
-0.03760799393057823,
0.029018931090831757,
-0.03830835223197937,
-0.05787346512079239,
0.018891388550400734,
0.004755987785756588,
-0.06377510726451874,
-0.028720485046505928,
-0.0045075202360749245,
0.05018389970064163,
0.08771827071905136,
0.0007589724846184254,
0.024890372529625893,
0.0015980632742866874,
-0.0328674353659153,
-0.1434527486562729,
0.09697190672159195,
-0.008694354444742203,
0.016512896865606308,
0.003201486309990287,
-0.07780177146196365,
-0.004728075582534075,
0.03697076067328453,
-0.011818628758192062,
0.006973292678594589,
-0.02630292996764183,
0.06145868077874184,
0.02341943047940731,
0.015906604006886482,
0.025764336809515953,
0.02624715119600296,
0.0699126347899437,
-0.049416348338127136,
-0.0384182333946228,
-0.04571351036429405,
-0.044290170073509216,
-0.019182100892066956,
-0.03126527741551399,
0.03165249153971672,
-0.013126437552273273,
0.06946880370378494,
0.03812023252248764,
0.032091788947582245,
0.0024577705189585686,
-0.018134277313947678,
0.053847625851631165,
0.0009941166499629617,
-0.10810789465904236,
-0.004031655378639698,
-0.016044078394770622,
0.005388349294662476,
-0.06158415228128433,
0.41976499557495117,
-0.02176487073302269,
-0.03136296197772026,
0.0666503757238388,
0.02055826596915722,
-0.013337853364646435,
-0.0320466086268425,
-0.04748624935746193,
-0.03789735585451126,
0.03983565792441368,
-0.0460900254547596,
0.0007137138163670897,
-0.03467414900660515,
0.05313442647457123,
-0.023342570289969444,
0.0033668114338070154,
-0.020056117326021194,
0.02242964506149292,
0.020836949348449707,
-0.042500972747802734,
0.03719857707619667,
-0.002274684375151992,
-0.003949426114559174,
0.040549248456954956,
0.03837756812572479,
-0.0137752341106534,
-0.007070849649608135,
-0.025800766423344612,
0.037285808473825455,
0.01355506107211113,
-0.025536196306347847,
0.018923433497548103,
-0.044283151626586914,
-0.07179766893386841,
-0.027475520968437195,
0.03262394294142723,
0.03049754910171032,
0.005538387689739466,
-0.035861801356077194,
-0.0080325398594141,
0.02820122241973877,
-0.009301328100264072,
-0.06013725697994232,
0.015326274558901787,
-0.007862551137804985,
-0.0508100725710392,
0.07809967547655106,
0.019370658323168755,
-0.014438370242714882,
0.014870557934045792,
-0.045783013105392456,
0.00526215648278594,
0.06174393370747566,
-0.044330645352602005,
-0.03670303896069527,
0.018283121287822723,
0.01730121299624443,
0.06332089751958847,
-0.00342381838709116,
-0.029243968427181244,
-0.011620011180639267,
-0.017658308148384094,
0.0026689614169299603,
-0.02821316011250019,
0.06876186281442642,
0.04324212297797203,
-0.06700263917446136,
-0.046590760350227356,
0.031862836331129074,
0.010359692387282848,
-0.03802134469151497,
0.0007052798755466938,
0.021038508042693138,
-0.0027221208438277245,
-0.0025051834527403116,
0.013425477780401707,
-0.037923414260149,
-0.0009313482441939414,
0.0561070516705513,
0.03970326483249664,
0.029189087450504303,
0.04938841983675957,
0.019107352942228317,
-0.05080122500658035,
-0.04365657642483711,
-0.000022559626813745126,
-0.10825489461421967,
-0.017681028693914413,
-0.020330684259533882,
0.0013336086412891746,
-0.02838844805955887,
-0.05689110979437828,
-0.018321413546800613,
-0.05090588331222534,
0.029829716309905052,
0.017990553751587868,
-0.02119394950568676,
0.007363665848970413,
0.03021376021206379,
0.05353595316410065,
-0.06626490503549576,
0.08236320316791534,
0.057917430996894836,
-0.01324443332850933,
0.05864327400922775,
-0.10181919485330582,
0.022065425291657448,
0.061576418578624725,
-0.04953230172395706,
0.04690370336174965,
-0.012882379814982414,
-0.053262945264577866,
-0.019322596490383148,
0.009227830916643143,
0.035877518355846405,
-0.016599033027887344,
-0.015323152765631676,
-0.031999800354242325,
0.005416096653789282,
0.03193230554461479,
0.026008406654000282,
-0.03161061182618141,
-0.033234596252441406,
-0.02595006860792637,
-0.35428521037101746,
-0.0032566003501415253,
-0.020706767216324806,
-0.00282636983320117,
-0.0315251424908638,
-0.037334784865379333,
-0.006760257296264172,
-0.04162983596324921,
-0.02573658898472786,
0.021519720554351807,
0.08723355084657669,
-0.035804614424705505,
0.02111227624118328,
-0.07642579823732376,
0.023785309866070747,
0.026782549917697906,
-0.04056209325790405,
-0.022747403010725975,
-0.02412460744380951,
-0.008988337591290474,
0.010705357417464256,
-0.0367562472820282,
-0.02812480367720127,
-0.04324031248688698,
0.004598293919116259,
-0.033122818917036057,
0.09171239286661148,
0.03731972351670265,
0.0900653824210167,
-0.08718765527009964,
0.04691517353057861,
0.0413643978536129,
0.007555622141808271,
-0.11142997443675995,
0.013013004325330257,
-0.03049471229314804,
-0.015086421743035316,
0.01664610579609871,
-0.0021393075585365295,
-0.005114664323627949,
-0.062008537352085114,
-0.005216938443481922,
-0.04040247201919556,
-0.034008946269750595,
-0.006567719392478466,
-0.0034401395823806524,
-0.001018125214613974,
-0.05308699607849121,
0.028839126229286194,
0.08070007711648941,
-0.013933292590081692,
0.029790489003062248,
0.017773956060409546,
0.01932230405509472,
0.020722635090351105,
-0.02005144953727722,
-0.04378974810242653,
-0.010745626874268055,
0.039890777319669724,
0.02438994310796261,
0.04591399431228638,
0.08088494837284088,
0.01519229169934988,
-0.027579521760344505,
0.024390941485762596,
-0.007570791523903608,
-0.009026821702718735,
0.035583481192588806,
0.05251554027199745,
-0.010703756473958492,
-0.03649492934346199,
0.0827137678861618,
-0.012333359569311142,
0.013033263385295868,
0.03264772519469261,
0.021730417385697365,
0.01490873284637928,
-0.009902752935886383,
0.05606610327959061,
-0.01070396974682808,
0.009221228770911694,
0.010160489939153194,
0.04942682757973671,
-0.02093261294066906,
-0.025375021621584892,
0.06955912709236145,
-0.0371970571577549,
-0.030717408284544945,
0.06170984357595444,
-0.02881462313234806,
-0.03669783100485802,
-0.009706479497253895,
0.005649469792842865,
-0.04726804047822952,
0.10690905153751373,
0.023737484589219093,
-0.2263326495885849,
0.06440187990665436,
0.051798298954963684,
0.028980977833271027,
-0.015402348712086678,
0.026709461584687233,
0.03636940196156502,
-0.043172094970941544,
0.013476946391165257,
-0.000269958603894338,
0.04788389056921005,
-0.0051865647546947,
-0.033324405550956726,
-0.017065152525901794,
0.04202904924750328,
-0.030499177053570747,
0.0468212366104126,
0.04749486967921257,
0.07530398666858673,
0.0003310677711851895,
0.02447730302810669,
-0.006967958062887192,
0.14909407496452332,
0.02200859971344471,
-0.03480767086148262,
0.019316891208291054,
0.008791462518274784,
0.021435439586639404,
0.07070445269346237,
0.03081970289349556,
0.0043767946772277355,
0.01746135950088501,
0.04542950168251991,
-0.011731661856174469,
0.02062002569437027,
-0.057114314287900925,
0.01668054796755314,
0.030781447887420654,
0.017508478835225105,
-0.007698002737015486,
-0.03708581626415253,
0.045805227011442184,
-0.05322704091668129,
0.024940835312008858,
0.07482189685106277,
0.004992388654500246,
0.02564636990427971,
-0.004726026672869921,
-0.06120125204324722,
-0.024316959083080292,
-0.005100640002638102,
-0.03366309776902199,
-0.006198624148964882,
0.00993876438587904,
0.0336647629737854,
0.058641381561756134,
0.029067350551486015,
-0.019569801166653633,
-0.0356396846473217,
-0.017193080857396126,
0.0393231175839901,
-0.022405818104743958,
0.1425560861825943,
0.003592350985854864,
0.0013119247741997242
] | [
-0.024295968934893608,
0.01639402098953724,
-0.0067074173130095005,
0.01966562680900097,
0.042004168033599854,
-0.019061768427491188,
0.021537290886044502,
0.07478894293308258,
-0.012184478342533112,
-0.05539307743310928,
0.032390046864748,
0.0218744408339262,
0.022113434970378876,
0.02263360656797886,
0.00042152893729507923,
-0.01760845258831978,
-0.01346660777926445,
0.0385793037712574,
0.018990296870470047,
-0.01111529115587473,
-0.018523167818784714,
0.009628737345337868,
0.027643106877803802,
-0.05240457132458687,
0.0012357654049992561,
0.06066165119409561,
0.03002811409533024,
-0.017572959885001183,
-0.01772373355925083,
-0.1395275890827179,
-0.0022009299136698246,
-0.03424282744526863,
0.005260293837636709,
-0.03900851681828499,
0.011897061951458454,
0.021959681063890457,
0.010632403194904327,
-0.015939798206090927,
0.023608194664120674,
-0.019783392548561096,
-0.02991289086639881,
0.0023840998765081167,
-0.005909892730414867,
-0.000289066752884537,
-0.027478357776999474,
-0.0420224666595459,
-0.03235974907875061,
-0.03970573842525482,
-0.014949479140341282,
0.010109439492225647,
-0.053073249757289886,
-0.007714669220149517,
0.0121408486738801,
0.020352549850940704,
0.056771185249090195,
0.011184978298842907,
0.008530830964446068,
0.01758280023932457,
-0.0034638489596545696,
0.01277108769863844,
0.005308238789439201,
-0.00020474690245464444,
-0.020716477185487747,
-0.0269607026129961,
-0.05860995501279831,
-0.04476621747016907,
0.042206261307001114,
0.007560417056083679,
-0.020220106467604637,
0.01025678962469101,
-0.005057069472968578,
0.050723884254693985,
-0.05539374053478241,
-0.021474331617355347,
-0.02082012966275215,
0.030985012650489807,
0.02217859774827957,
0.008028858341276646,
0.042776789516210556,
-0.021887753158807755,
-0.06766869127750397,
0.014100956730544567,
0.014866855926811695,
-0.020099308341741562,
-0.010767614468932152,
-0.001408567652106285,
-0.025344476103782654,
0.009486369788646698,
0.04062874987721443,
0.0602777935564518,
-0.018128488212823868,
-0.00008682537009008229,
-0.025733551010489464,
0.015515320934355259,
-0.08232223242521286,
-0.020487239584326744,
-0.0032452528830617666,
-0.01948476769030094,
0.003902345197275281,
0.8135744333267212,
-0.026668628677725792,
0.04490121454000473,
0.05729779973626137,
0.026421109214425087,
-0.0003451929660513997,
0.017871376127004623,
0.00878242589533329,
-0.010205015540122986,
-0.02215503342449665,
-0.056710030883550644,
0.005424761213362217,
-0.02755044773221016,
0.05332888290286064,
-0.019920744001865387,
0.04335832968354225,
0.007233136799186468,
0.019828828051686287,
0.036831025034189224,
-0.012981741689145565,
0.03853004053235054,
0.03053349442780018,
-0.02127014845609665,
-0.0016429144889116287,
0.0022104005329310894,
0.013641200959682465,
-0.16450238227844238,
-0.0443604476749897,
-8.117667174455135e-33,
0.05734579265117645,
-0.012350424192845821,
-0.012172684073448181,
0.00621514767408371,
-0.024172872304916382,
-0.03980244696140289,
-0.0048886872828006744,
0.02833903580904007,
-0.0185965895652771,
-0.010692629963159561,
-0.02857716754078865,
-0.045320313423871994,
-0.03954198956489563,
-0.023967022076249123,
0.006105705630034208,
0.012365365400910378,
0.005584126338362694,
0.011974548920989037,
-0.037335384637117386,
0.026936842128634453,
0.019414013251662254,
0.02508699521422386,
-0.01185814943164587,
-0.02550002932548523,
0.001733110868372023,
0.040881507098674774,
0.05869226157665253,
0.01761649362742901,
-0.005744307767599821,
-0.040055274963378906,
-0.012413735501468182,
-0.029681209474802017,
-0.031521301716566086,
-0.004253529477864504,
0.028488578274846077,
-0.046265020966529846,
-0.01700001023709774,
0.01020022016018629,
-0.03298677131533623,
0.02338561974465847,
-0.007820526137948036,
0.012747872620821,
-0.037153322249650955,
0.0361887626349926,
0.0041535780765116215,
0.010994134470820427,
-0.0035034629981964827,
0.031497977674007416,
0.0025465006474405527,
0.0343274287879467,
-0.01974264159798622,
0.033125851303339005,
0.0041473377496004105,
0.006655821111053228,
-0.006424606777727604,
0.03437253087759018,
0.011175887659192085,
0.012642727233469486,
0.02902429923415184,
-0.004322673659771681,
-0.006640772335231304,
0.012222915887832642,
-0.02093438431620598,
0.05823735147714615,
-0.007500707171857357,
0.04333538934588432,
-0.008819389156997204,
-0.021894866600632668,
-0.005535481031984091,
0.06654414534568787,
-0.04329598322510719,
0.01204632967710495,
-0.001072619343176484,
-0.0166010782122612,
-0.024571632966399193,
-0.04066511243581772,
-0.025209207087755203,
-0.013338637538254261,
0.012014554813504219,
0.05603812634944916,
-0.0023789042606949806,
-0.019918397068977356,
-0.015304277651011944,
-0.07073496282100677,
-0.02003166824579239,
0.02334410883486271,
0.008674557320773602,
0.007923888973891735,
0.016449734568595886,
-0.0029889100696891546,
0.051224034279584885,
0.06452096998691559,
0.014760437421500683,
-0.016218701377511024,
-0.02612929977476597,
8.058441360956892e-33,
0.002381327096372843,
0.002968355780467391,
-0.01211535558104515,
0.001427489914931357,
0.001590546453371644,
0.011525951325893402,
-0.008845146745443344,
0.0008871478494256735,
-0.05054011568427086,
0.03216748684644699,
-0.061772819608449936,
0.024471724405884743,
-0.02358681708574295,
0.00595892034471035,
0.04986691102385521,
0.0027779133524745703,
0.0030377900693565607,
0.008862015791237354,
0.02188088558614254,
0.019035588949918747,
0.013792093843221664,
0.010690773837268353,
0.0080656036734581,
0.02377907559275627,
0.030441956594586372,
0.02359878458082676,
-0.04073367267847061,
0.016651123762130737,
-0.017605222761631012,
0.015096410177648067,
0.07138833403587341,
-0.047702983021736145,
-0.004497932735830545,
-0.052335821092128754,
0.00834670290350914,
0.013250474818050861,
-0.011971521191298962,
-0.00962654035538435,
-0.03613824397325516,
0.02517598494887352,
0.008070060983300209,
-0.04833957552909851,
0.01519469078630209,
0.060884956270456314,
-0.022313227877020836,
0.04680599272251129,
0.002434732159599662,
-0.014379661530256271,
-0.00010795617708936334,
-0.02593737095594406,
-0.03594546765089035,
0.0229314174503088,
0.010493187233805656,
0.00029555195942521095,
0.018496714532375336,
-0.021705923601984978,
-0.01488571148365736,
0.042946361005306244,
-0.000052688799769384786,
0.04590943828225136,
0.003675689920783043,
-0.06068681925535202,
0.017975937575101852,
0.014009710401296616,
-0.04150703176856041,
-0.00281601888127625,
0.03474080562591553,
0.022069888189435005,
-0.015775717794895172,
-0.012468446046113968,
-0.009323452599346638,
-0.026097973808646202,
-0.005573297385126352,
0.03327611833810806,
0.013543250039219856,
-0.04370059818029404,
-0.01576787605881691,
0.01109866052865982,
-0.01671409048140049,
0.019616778939962387,
0.03392758592963219,
0.007744174916297197,
-0.02622751146554947,
-0.04938722029328346,
0.0026708333753049374,
0.0051918625831604,
-0.04350796714425087,
0.03300017490983009,
-0.019000545144081116,
-0.030437568202614784,
-0.00014231637760531157,
0.01806998997926712,
0.007858188822865486,
0.0060373698361217976,
-0.028527870774269104,
-1.3021515421485219e-8,
0.004101856146007776,
-0.029786167666316032,
0.00969842541962862,
-0.0008059272659011185,
0.031325988471508026,
-0.016229035332798958,
-0.02721964754164219,
0.024286329746246338,
0.006709533743560314,
0.0256575308740139,
0.035186346620321274,
0.034144945442676544,
-0.0009476668783463538,
0.025980722159147263,
-0.0027351488824933767,
-0.054871633648872375,
0.013577493838965893,
0.021920010447502136,
0.03474365174770355,
-0.004544535651803017,
0.033830802887678146,
0.04641364887356758,
0.0007571732858195901,
-0.04286855459213257,
-0.013987280428409576,
-0.010020728223025799,
0.029777979478240013,
-0.05966008082032204,
-0.017995605245232582,
-0.009733554907143116,
-0.04100465402007103,
0.01330268383026123,
-0.014032447710633278,
0.007165661081671715,
-0.02935831993818283,
-0.012004563584923744,
0.02422749064862728,
0.025490086525678635,
0.007015333045274019,
0.0035562613047659397,
-0.025012541562318802,
0.002388979308307171,
-0.006158017087727785,
-0.026095494627952576,
-0.025813104584813118,
0.020656613633036613,
0.003442649031057954,
0.01245579682290554,
-0.00029266468482092023,
-0.02083834819495678,
-0.0027432560455054045,
0.008164235390722752,
0.037314437329769135,
0.02121484838426113,
0.01713276281952858,
0.00925200991332531,
0.019643910229206085,
0.008151870220899582,
-0.036425430327653885,
0.005629041697829962,
0.03992848843336105,
-0.019957710057497025,
-0.03655358776450157,
-0.0382167249917984
] | intellij-java-cannot-find-jdk-1-8 | https://markhneedham.com/blog/2015/11/08/intellij-java-cannot-find-jdk-1-8 |
false | 2015-11-24 00:12:59 | jq: Cannot iterate over number / string and number cannot be added | [
"jq"
] | [
"Software Development"
] | In my continued parsing of http://www.meetup.com/meetup_api/[meetup.com's JSON API] I wanted to extract some information from the following JSON file:
[source,bash]
----
$ head -n40 data/members/18313232.json
[
{
"status": "active",
"city": "London",
"name": ". .",
"other_services": {},
"country": "gb",
"topics": [],
"lon": -0.13,
"joined": 1438866605000,
"id": 92951932,
"state": "17",
"link": "http://www.meetup.com/members/92951932",
"photo": {
"thumb_link": "http://photos1.meetupstatic.com/photos/member/8/d/6/b/thumb_250896203.jpeg",
"photo_id": 250896203,
"highres_link": "http://photos1.meetupstatic.com/photos/member/8/d/6/b/highres_250896203.jpeg",
"photo_link": "http://photos1.meetupstatic.com/photos/member/8/d/6/b/member_250896203.jpeg"
},
"lat": 51.49,
"visited": 1446745707000,
"self": {
"common": {}
}
},
{
"status": "active",
"city": "London",
"name": "Abdelkader Idryssy",
"other_services": {},
"country": "gb",
"topics": [
{
"name": "Weekend Adventures",
"urlkey": "weekend-adventures",
"id": 16438
},
{
"name": "Community Building",
"urlkey": "community-building",
----
In particular I want to extract the member's id, name, join date and the ids of topics they're interested in. I started with the following jq query to try and extract those attributes:
[source,bash]
----
$ jq -r '.[] | [.id, .name, .joined, (.topics[] | .id | join(";"))] | @csv' data/members/18313232.json
Cannot iterate over number (16438)
----
Annoyingly this treats topic ids on an individual basis rather than as an array as I wanted. I tweaked the query to the following with no luck:
[source,bash]
----
$ jq -r '.[] | [.id, .name, .joined, (.topics[].id | join(";"))] | @csv' data/members/18313232.json
Cannot iterate over number (16438)
----
As a guess I decided to wrap '.topics[].id' in an array literal to see if it had any impact:
[source,bash]
----
$ jq -r '.[] | [.id, .name, .joined, ([.topics[].id] | join(";"))] | @csv' data/members/18313232.json
92951932,". .",1438866605000,""
jq: error (at data/members/18313232.json:60013): string ("") and number (16438) cannot be added
----
Woot! A different error message at least and this one seems to be due to a type mismatch between the string we want to end up with and the array of numbers that we currently have.
We can cast our way to victory with the 'tostring' function:
[source,r]
----
$ jq -r '.[] | [.id, .name, .joined, ([.topics[].id | tostring] | join(";"))] | @csv' data/members/18313232.json
...
92951932,". .",1438866605000,""
193866304,"Abdelkader Idryssy",1445195325000,"16438;20727;15401;9760;20246;20923;3336;2767;242;58259;4417;1789;10454;20274;10232;563;25375;16433;15187;17635;26273;21808;933;7789;23884;16212;144477;15322;21067;3833;108403;20221;1201;182;15083;9696;4377;15360;18296;15121;17703;10161;1322;3880;18333;3485;15585;44584;18692;21681"
28643052,"Abhishek Chanda",1439688955000,"646052;520302;15167;563;65735;537492;646072;537502;24959;1025832;8599;31197;24410;26118;10579;1064;189;48471;16216;18062;33089;107633;46831;20479;1423042;86258;21441;3833;21681;188;9696;58162;20398;113032;18060;29971;55324;30928;15261;58259;638;16475;27591;10107;242;109595;10470;26384;72514;1461192"
39523062,"Adam Kinder-Jones",1438677474000,"70576;21549;3833;42277;164111;21522;93380;48471;15167;189;563;25435;87614;9696;18062;58162;10579;21681;19882;108403;128595;15582;7029"
194119823,"Adam Lewis",1444867994000,"10209"
14847001,"Adam Rogers",1422917313000,""
87709042,"Adele Green",1436867381000,"15167;18062;102811;9696;30928;18060;78565;189;7029;48471;127567;10579;58162;563;3833;16216;21441;37708;209821;15401;59325;31792;21836;21900;984862;15720;17703;96823;4422;85951;87614;37428;2260;827;121802;19672;38660;84325;118991;135612;10464;1454542;17936;21549;21520;17628;148303;20398;66339;29661"
11497937,"Adrian Bridgett",1421067940000,"30372;15046;25375;638;498;933;374;27591;18062;18060;15167;10581;16438;15672;1998;1273;713;26333;15099;15117;4422;15892;242;142180;563;31197;20479;1502;131178;15018;43256;58259;1201;7319;15940;223;8652;66493;15029;18528;23274;9696;128595;21681;17558;50709;113737"
14151190,"adrian lawrence",1437142198000,"7029;78565;659;85951;15582;48471;9696;128595;563;10579;3833;101960;16137;1973;78566;206;223;21441;16216;108403;21681;186;1998;15731;17703;15043;16613;17885;53531;48375;16615;19646;62326;49954;933;22268;19243;37381;102811;30928;455;10358;73511;127567;106382;16573;36229;781;23981;1954"
183557824,"Adrien Pujol",1421882756000,"108403;563;9696;21681;188;24410;1064;32743;124668;15472;21123;1486432;1500742;87614;46831;1454542;46810;166000;126177;110474"
...
---- | null | null | [
0.01307140663266182,
-0.03500267490744591,
-0.002469764556735754,
0.02760942094027996,
0.05523425713181496,
0.016659993678331375,
0.03596990182995796,
0.05686694011092186,
-0.004904842935502529,
0.013759875670075417,
-0.035364482551813126,
-0.0034430231899023056,
-0.08564364910125732,
-0.02000410668551922,
-0.005265950225293636,
0.06238884851336479,
0.07076764106750488,
0.00025528823607601225,
0.014012475498020649,
-0.006564255803823471,
0.0393221378326416,
0.06067248061299324,
0.011785491369664669,
0.023598674684762955,
0.041843805462121964,
0.01056857779622078,
0.018430527299642563,
0.01017899438738823,
-0.06871796399354935,
0.023929491639137268,
0.022928889840841293,
-0.00006928225047886372,
0.0017253204714506865,
-0.015452258288860321,
-0.0032085522543638945,
-0.005637618247419596,
-0.01596134342253208,
-0.01875199005007744,
0.012278239242732525,
0.04758690297603607,
-0.03735616058111191,
0.037163145840168,
-0.01607133448123932,
0.03792046755552292,
-0.028320342302322388,
0.003160865744575858,
-0.05651600658893585,
0.03777119144797325,
-0.010437882505357265,
-0.003240661695599556,
-0.04783597216010094,
0.020124753937125206,
-0.024332160130143166,
-0.020907150581479073,
0.01823289319872856,
0.07118113338947296,
-0.005581950768828392,
-0.07315400242805481,
0.012851105071604252,
-0.03379086032509804,
-0.00011722252384060994,
-0.018930353224277496,
0.046397674828767776,
0.0031074550934135914,
0.0029134342912584543,
-0.008063643239438534,
-0.002394074574112892,
0.06059299409389496,
-0.03113746829330921,
-0.03199140354990959,
0.016459116712212563,
0.03976694121956825,
-0.03865942358970642,
-0.005884181708097458,
0.025439715012907982,
-0.058901991695165634,
0.007938050664961338,
0.07011445611715317,
-0.004448706284165382,
0.05632150545716286,
-0.026891367509961128,
0.03248545527458191,
0.0075095961801707745,
0.02552328072488308,
-0.00418140459805727,
-0.05500068515539169,
-0.056109219789505005,
0.012005899101495743,
-0.04694456607103348,
0.03378652036190033,
0.04381440207362175,
-0.03565376624464989,
0.016870055347681046,
0.030879700556397438,
0.004198549780994654,
-0.0014574122615158558,
0.002999180229380727,
0.007715744897723198,
-0.025927027687430382,
-0.023806964978575706,
-0.03491256386041641,
0.003898982424288988,
0.029066480696201324,
0.006908195558935404,
-0.06605042517185211,
-0.01623157039284706,
-0.010666155256330967,
0.006541337352246046,
-0.006006794050335884,
-0.031522590667009354,
0.006801645737141371,
0.01504313014447689,
0.0028950704727321863,
0.004129315260797739,
-0.053286001086235046,
0.05304930359125137,
0.011653718538582325,
-0.06128769367933273,
-0.020220262929797173,
0.028043296188116074,
0.05457143113017082,
0.028698517009615898,
0.005536435637623072,
0.07690147310495377,
0.021754633635282516,
0.02777257189154625,
0.008205939084291458,
0.05647478625178337,
-0.010445812717080116,
-0.04918048903346062,
-0.03930019214749336,
0.048914555460214615,
0.019039614126086235,
0.008998004719614983,
0.007994814775884151,
-0.05827723816037178,
-0.019288768991827965,
-0.013975454494357109,
0.05927298590540886,
-0.006905072834342718,
-0.022108908742666245,
-0.01940443553030491,
-0.0268655214458704,
-0.017938578501343727,
0.041082125157117844,
0.023529238998889923,
-0.018894927576184273,
-0.05607307702302933,
-0.03295190632343292,
0.025726180523633957,
0.01597871631383896,
-0.014729490503668785,
0.05450023338198662,
-0.03536733239889145,
0.0018640687922015786,
0.07686114311218262,
0.03789111599326134,
0.03284507617354393,
-0.024832019582390785,
0.012672516517341137,
0.03611408919095993,
0.04961136355996132,
-0.006238671485334635,
0.03947777673602104,
-0.017662106081843376,
-0.046403344720602036,
0.004412067122757435,
0.05155423656105995,
-0.013803593814373016,
0.03530719131231308,
-0.034343551844358444,
-0.06840720772743225,
0.0805484876036644,
-0.010715939104557037,
-0.013277730904519558,
0.03338194638490677,
0.0743509829044342,
0.06175638362765312,
0.02604459598660469,
0.016182642430067062,
-0.08201538026332855,
0.04087783768773079,
0.02359308861196041,
0.00998803973197937,
0.04175177961587906,
-0.004771610721945763,
0.0903104618191719,
0.025861049070954323,
0.009050426073372364,
0.046294424682855606,
-0.08068292587995529,
-0.07391716539859772,
-0.05701255798339844,
-0.012796741910278797,
0.06615154445171356,
-0.02253926731646061,
0.008332451805472374,
0.061396047472953796,
0.023144807666540146,
0.04745826870203018,
0.00019689965120051056,
-0.002066417597234249,
0.034721072763204575,
-0.051915887743234634,
-0.05129611864686012,
0.024697791785001755,
0.047095105051994324,
-0.02001825161278248,
0.005486605688929558,
0.02780887857079506,
-0.06786192208528519,
-0.015269799157977104,
0.019832998514175415,
-0.02273683063685894,
0.0059172711335122585,
0.0029316837899386883,
0.035699013620615005,
-0.009025046601891518,
0.02541547827422619,
-0.052139393985271454,
0.03504246473312378,
0.004184872843325138,
-0.029086008667945862,
-0.0336337611079216,
0.001408476964570582,
0.12962587177753448,
0.06298374384641647,
0.019870415329933167,
-0.018691977486014366,
0.023407861590385437,
0.0029851228464394808,
-0.029807021841406822,
-0.00035582229611463845,
-0.024916768074035645,
-0.027312520891427994,
0.003121961373835802,
-0.0463121235370636,
-0.04268527403473854,
0.010836864821612835,
-0.03796839714050293,
0.006382007151842117,
0.04481799155473709,
-0.008283629082143307,
0.03974200785160065,
0.020851049572229385,
0.008336265571415424,
-0.004881043452769518,
-0.05399716645479202,
-0.046642597764730453,
0.0010437358869239688,
0.013114438392221928,
-0.02417932078242302,
0.007379590533673763,
-0.04407528042793274,
0.012242726981639862,
-0.011812432669103146,
-0.02735825628042221,
0.03265970200300217,
0.05010523274540901,
0.03050002083182335,
-0.019591817632317543,
0.052459392696619034,
-0.049513570964336395,
0.004839207511395216,
-0.007948226295411587,
-0.03447874262928963,
-0.028284478932619095,
-0.02563592977821827,
-0.0035950259771198034,
0.02490721456706524,
0.03858982399106026,
0.028175469487905502,
-0.009437065571546555,
0.021041736006736755,
0.011018742807209492,
-0.006677183322608471,
0.06510821729898453,
-0.0042275781743228436,
0.009153714403510094,
-0.0404626727104187,
-0.022314777597784996,
0.041524916887283325,
-0.05651596933603287,
-0.035763852298259735,
-0.01700899936258793,
-0.10612872987985611,
0.04722021147608757,
-0.018217435106635094,
-0.055958010256290436,
-0.021064845845103264,
0.015639521181583405,
0.037662435322999954,
0.016762228682637215,
-0.010428483597934246,
0.04565371572971344,
-0.012919565662741661,
0.023745473474264145,
0.050859902054071426,
-0.007438021246343851,
0.0351732037961483,
-0.005449905525892973,
0.04059488698840141,
0.02716890722513199,
-0.023462358862161636,
0.004339201841503382,
-0.030017653480172157,
0.005863860249519348,
-0.03189181163907051,
-0.25630083680152893,
0.03819125145673752,
-0.014943607151508331,
-0.040792468935251236,
0.03034977614879608,
-0.017832981422543526,
0.024671290069818497,
-0.04122760146856308,
0.0013993825996294618,
-0.006340698804706335,
-0.004022987559437752,
-0.05922107771039009,
0.010117335245013237,
0.02050614356994629,
-0.01007754821330309,
-0.010216212831437588,
-0.017164302989840508,
-0.035776473581790924,
0.030482914298772812,
0.02654716558754444,
0.012249968945980072,
-0.057435017079114914,
0.0048964377492666245,
0.05850067734718323,
0.020948035642504692,
0.06754688918590546,
-0.03480884060263634,
-0.01253211684525013,
-0.04252467304468155,
-0.03342428803443909,
0.04361499100923538,
-0.023052649572491646,
0.03532027453184128,
-0.010031145066022873,
-0.0051070312038064,
-0.009461554698646069,
0.06122156232595444,
-0.0035627090837806463,
0.00763443810865283,
-0.005944537464529276,
-0.037563398480415344,
-0.014796157367527485,
-0.003958103246986866,
-0.015199632383883,
0.10123491287231445,
0.006186893675476313,
-0.04429469630122185,
-0.032149989157915115,
-0.03268473222851753,
0.05119633674621582,
-0.008155961520969868,
-0.034544724971055984,
-0.025652922689914703,
0.04400736093521118,
-0.00218726578168571,
-0.020577963441610336,
-0.014491110108792782,
0.009413007646799088,
-0.06985506415367126,
-0.03847791999578476,
-0.001312780543230474,
-0.03478853031992912,
-0.02735261619091034,
-0.03730005398392677,
-0.042006682604551315,
-0.05804595723748207,
-0.0382210798561573,
-0.013281377963721752,
0.059499341994524,
0.011794005520641804,
-0.04776151478290558,
0.022595997899770737,
-0.00918167270720005,
-0.09106136858463287,
-0.0015775482170283794,
-0.014078116044402122,
-0.035838592797517776,
0.016240833327174187,
-0.017210451886057854,
0.040066301822662354,
-0.04322436824440956,
-0.0480668880045414,
0.019125204533338547,
0.0005409867153503001,
0.030905496329069138,
-0.04604633152484894,
0.012150553055107594,
-0.013240995816886425,
-0.009106853045523167,
-0.03463194891810417,
0.07526513934135437,
-0.038771454244852066,
-0.02628546580672264,
0.006149169523268938,
0.0017003895482048392,
0.05122560262680054,
0.01435535866767168,
-0.009721209295094013,
0.015375746414065361,
0.052819062024354935,
0.0254963468760252,
-0.04696519672870636,
0.02251623012125492,
-0.04911661893129349,
-0.006743284873664379,
-0.006816824432462454,
-0.04550136253237724,
0.01668049395084381,
0.0179611686617136,
0.0070451609790325165,
0.0263874102383852,
-0.04552951827645302,
0.02112584188580513,
-0.02903066575527191,
0.0018532501999288797,
-0.03407026082277298,
0.012675098143517971,
0.03145449608564377,
0.03772985562682152,
-0.02061777561903,
-0.047105301171541214,
0.019743073731660843,
0.04392164200544357,
-0.014332244172692299,
-0.04821665212512016,
-0.06685547530651093,
-0.021391503512859344,
0.012387377209961414,
-0.0009585533989593387,
0.017789941281080246,
0.017060942947864532,
0.01503683626651764,
0.02187899313867092,
-0.04550337418913841,
0.018865080550312996,
-0.00574513291940093,
-0.034570444375276566,
-0.032620590180158615,
0.020213346928358078,
0.03926023468375206,
-0.014461023733019829,
-0.002245064126327634,
-0.007689525373280048,
0.05540572479367256,
0.017107142135500908,
0.021982675418257713,
0.02275932766497135,
-0.03610724210739136,
-0.00646657170727849,
-0.01747995801270008,
-0.03683758154511452,
-0.05258987843990326,
0.015510670840740204,
-0.02757290005683899,
-0.0034352103248238564,
-0.0060664452612400055,
0.04737991839647293,
0.00035336121800355613,
-0.047679558396339417,
-0.04094884172081947,
0.01639118604362011,
-0.06388551741838455,
-0.010609033517539501,
-0.0056217447854578495,
-0.03557867556810379,
0.030392281711101532,
-0.0053046708926558495,
0.010451273061335087,
-0.005189601331949234,
-0.025206798687577248,
0.013575841672718525,
0.02948024868965149,
-0.009473062120378017,
0.016289763152599335,
-0.010545248165726662,
-0.029439561069011688,
0.021399617195129395,
0.03388863801956177,
0.016346953809261322,
0.012498479336500168,
-0.020246339961886406,
-0.02551347017288208,
0.02069142833352089,
0.0300983227789402,
0.06382237374782562,
0.044516220688819885,
-0.024721410125494003,
-0.008194399997591972,
-0.018770456314086914,
-0.040085405111312866,
-0.014471679925918579,
0.005735460668802261,
-0.02394348382949829,
-0.03399479389190674,
-0.019396355375647545,
-0.08947340399026871,
0.033521320670843124,
0.02281450852751732,
0.020540857687592506,
0.03852681443095207,
-0.008996609598398209,
0.002110875677317381,
-0.04750685766339302,
0.015489774756133556,
0.03308193385601044,
-0.06421425193548203,
-0.02204989828169346,
0.0003501662868075073,
-0.0022864355705678463,
-0.00399400107562542,
0.0103613818064332,
-0.05901212990283966,
-0.01773116923868656,
-0.03605387359857559,
0.020891020074486732,
-0.024859517812728882,
-0.039703890681266785,
-0.01749209687113762,
0.031065665185451508,
-0.034746166318655014,
0.015226357616484165,
-0.0005289450054988265,
0.00266092037782073,
0.0001821056503104046,
0.0021742095705121756,
0.020610542967915535,
-0.014761433005332947,
-0.010039997287094593,
0.006112127564847469,
-0.014649886637926102,
0.018703779205679893,
-0.037547070533037186,
0.03481356054544449,
0.039184052497148514,
-0.008926036767661572,
-0.0048665618523955345,
-0.05947795882821083,
-0.028051132336258888,
0.007686383556574583,
0.07154708355665207,
-0.006829486694186926,
-0.003946570213884115,
-0.04171328991651535,
0.00564411049708724,
-0.04081271216273308,
0.025818096473813057,
-0.01840353198349476,
-0.030728844925761223,
0.04578283056616783,
0.047290168702602386,
0.025587482377886772,
-0.0015505868941545486,
-0.02406703680753708,
-0.04413383826613426,
0.056098900735378265,
-0.02833102084696293,
-0.036154717206954956,
-0.00974338036030531,
-0.037844326347112656,
0.029931139200925827,
0.03677993640303612,
0.028164172545075417,
-0.057127442210912704,
0.05499184876680374,
0.023669034242630005,
0.028654959052801132,
0.020167658105492592,
-0.014581402763724327,
0.013154431246221066,
-0.024503102526068687,
-0.010653232224285603,
-0.08171650767326355,
0.009300951845943928,
0.05900938808917999,
-0.05171302333474159,
-0.011612232774496078,
0.008086214773356915,
-0.044741060584783554,
0.02035708911716938,
-0.05731881409883499,
-0.02473902516067028,
0.06402620673179626,
-0.03152569383382797,
-0.0007234113290905952,
0.001028610859066248,
-0.06799311935901642,
0.010662096552550793,
0.06183294951915741,
-0.07054942846298218,
0.014170190319418907,
-0.045669376850128174,
0.09481153637170792,
-0.01019369438290596,
0.03249653801321983,
-0.0011635649716481566,
-0.027325375005602837,
0.06296669691801071,
0.022199597209692,
-0.002764238743111491,
0.022884182631969452,
-0.06003129482269287,
-0.004098421894013882,
-0.00002252178092021495,
-0.030481252819299698,
0.0059142690151929855,
0.02258322387933731,
-0.014189344830811024,
-0.0486568957567215,
0.01751706376671791,
0.010068044997751713,
-0.018241165205836296,
-0.03627735376358032,
0.0883914902806282,
0.016404131427407265,
-0.029391977936029434,
-0.05412442237138748,
0.026616744697093964,
-0.03887375444173813,
-0.02872374840080738,
-0.004390667658299208,
0.018613595515489578,
-0.02597091905772686,
0.06132631376385689,
0.009019582532346249,
0.02210765704512596,
0.05945971980690956,
-0.0016343415481969714,
0.0036676693707704544,
-0.003655138425529003,
0.079990454018116,
0.08187884092330933,
-0.0004969772999174893,
0.007950080558657646,
0.06501982361078262,
-0.021846545860171318,
-0.05988223850727081,
0.016121892258524895,
-0.029130663722753525,
-0.016552051529288292,
0.00932326726615429,
-0.030002860352396965,
0.09214206039905548,
-0.02259926311671734,
0.07320079207420349,
0.011835722252726555,
-0.023716414347290993,
0.010764495469629765,
0.022022517397999763,
0.06117919832468033,
0.022833967581391335,
0.005658859387040138,
0.0415237620472908,
0.000040795111999614164,
-0.04258070886135101,
0.05794738605618477,
0.019655274227261543,
-0.03470384329557419,
0.02635260485112667,
-0.039480190724134445,
0.03721104562282562,
0.0094705605879426,
0.061394497752189636,
0.05778432637453079,
-0.0019100084900856018,
-0.007969765923917294,
-0.012324311770498753,
0.03294523060321808,
0.014050809666514397,
0.04725855961441994,
-0.01451729517430067,
-0.006474724039435387,
-0.003999525215476751,
-0.05647534877061844,
-0.019638650119304657,
-0.02786034531891346,
-0.04599186033010483,
0.04780614748597145,
-0.011943045072257519,
0.010395744815468788,
-0.02360859513282776,
0.026215899735689163,
-0.011958037503063679,
-0.0442979522049427,
-0.08379682898521423,
-0.04573892802000046,
-0.05553679168224335,
-0.022764021530747414,
0.02516147308051586,
0.010324944742023945,
-0.017735449597239494,
-0.00017893964832182974,
-0.02598951756954193,
0.004304149188101292,
0.019527669996023178,
-0.06405078619718552,
0.00839079637080431,
0.015039750374853611,
0.007807305082678795,
0.03050532378256321,
0.01193105336278677,
0.017640752717852592,
0.017924003303050995,
-0.007686450611799955,
-0.0070882742293179035,
-0.0002532007056288421,
0.06505973637104034,
0.007082812488079071,
-0.01282282080501318,
-0.07061056047677994,
0.00443582097068429,
0.021557344123721123,
0.013556474819779396,
-0.06373894214630127,
0.04197439178824425,
0.020679572597146034,
0.0007339939475059509,
0.038460373878479004,
-0.00936355534940958,
-0.016277717426419258,
-0.013376494869589806,
-0.05661151185631752,
-0.02524440735578537,
-0.006545339245349169,
0.04260106384754181,
-0.01443287543952465,
0.09282205253839493,
0.01883568987250328,
-0.018930701538920403,
-0.054467830806970596,
-0.005788424983620644,
0.007004899438470602,
0.013769689947366714,
-0.03368425369262695,
-0.023787889629602432,
-0.04395006224513054,
-0.09821748733520508,
-0.054487891495227814,
0.02345683053135872,
-0.01855255849659443,
-0.03792605549097061,
0.005885070189833641,
-0.0005199931329116225,
-0.04173026978969574,
0.020224159583449364,
-0.026451539248228073,
0.02585640735924244,
0.006255833897739649,
-0.009757178835570812,
-0.06583297252655029,
0.008436615578830242,
0.003022038610652089,
0.0010530173312872648,
-0.0003210898721590638,
-0.03634320944547653,
0.010048113763332367,
-0.006802636198699474,
0.04694657400250435,
0.0450219064950943,
-0.01358087919652462,
0.016537833958864212
] | [
-0.06670194119215012,
-0.021655583754181862,
-0.02135263942182064,
-0.03054528497159481,
0.07078100740909576,
-0.09111040830612183,
0.006526337470859289,
-0.00022013271518517286,
0.009399591013789177,
-0.020741194486618042,
0.029975339770317078,
-0.06339065730571747,
0.03092624433338642,
-0.051211241632699966,
0.06839125603437424,
0.010888747870922089,
0.014930495992302895,
-0.044059086591005325,
-0.0640992522239685,
0.05447493493556976,
-0.019094504415988922,
-0.014131074771285057,
-0.03433786332607269,
-0.023805420845746994,
-0.023805690929293633,
0.05654112249612808,
0.019450515508651733,
-0.021529188379645348,
-0.027815986424684525,
-0.15691497921943665,
0.025638194754719734,
-0.005791635252535343,
0.03875494748353958,
0.016316639259457588,
0.02950582280755043,
0.060639385133981705,
0.030413195490837097,
0.0056407819502055645,
0.02747310884296894,
0.0662722960114479,
0.045513853430747986,
-0.022083641961216927,
-0.05259550362825394,
-0.015490803867578506,
-0.00605858163908124,
-0.01673930324614048,
-0.0549611933529377,
-0.00585418613627553,
-0.01907605305314064,
0.01537762489169836,
-0.08072874695062637,
0.0008037502993829548,
0.020368264988064766,
-0.02972104400396347,
0.024083562195301056,
0.07027696818113327,
0.03809976950287819,
0.0700376108288765,
-0.012046043761074543,
0.030484523624181747,
0.02045062743127346,
-0.009019364602863789,
-0.13887138664722443,
0.11576760560274124,
0.02588304504752159,
0.018634866923093796,
-0.04712214693427086,
0.0007880511693656445,
-0.010791226290166378,
0.01967565156519413,
0.018989579752087593,
-0.0007706191972829401,
-0.043752361088991165,
0.06315992027521133,
0.002879322739318013,
-0.025844775140285492,
-0.019760698080062866,
0.01777861826121807,
0.06281844526529312,
-0.0036275526508688927,
-0.09102777391672134,
-0.015665359795093536,
-0.012406367808580399,
-0.014286995865404606,
-0.024122605100274086,
-0.00315609248355031,
-0.003633648157119751,
0.054479606449604034,
0.030200179666280746,
0.018428592011332512,
-0.0027746562846004963,
-0.0288134403526783,
0.02672657184302807,
0.030960284173488617,
-0.11629780381917953,
0.00789015181362629,
0.0005699671455658972,
0.010988708585500717,
-0.003182626562193036,
0.37732815742492676,
-0.05167857185006142,
-0.004849739372730255,
0.03663550689816475,
-0.023783279582858086,
-0.009224455803632736,
-0.015466144308447838,
-0.0002521900460124016,
-0.054100245237350464,
0.05798247456550598,
-0.027149144560098648,
-0.00819153618067503,
0.0038210516795516014,
0.02544000931084156,
-0.05449509620666504,
0.01695234887301922,
0.008869829587638378,
0.030292585492134094,
0.003222449915483594,
-0.02933621220290661,
0.005162200890481472,
0.017217177897691727,
-0.015136303380131721,
0.027184292674064636,
0.04331022873520851,
0.008204867132008076,
0.02531110867857933,
0.05325062572956085,
0.0511380173265934,
0.0744657814502716,
0.05163377895951271,
0.06657569110393524,
0.006087333429604769,
-0.05030864477157593,
-0.02403799444437027,
-0.012647148221731186,
0.0261093657463789,
0.006564467679709196,
-0.012476105242967606,
-0.012523205950856209,
0.04157327115535736,
-0.014345338568091393,
-0.054252397269010544,
-0.011193644255399704,
-0.0013100103242322803,
-0.019760485738515854,
0.1370641589164734,
-0.025752263143658638,
-0.023479443043470383,
-0.01956404559314251,
-0.05655522644519806,
-0.03376072645187378,
0.03950196132063866,
-0.00821677502244711,
-0.042037803679704666,
-0.009262198582291603,
0.03399612009525299,
0.08465863019227982,
-0.03850061446428299,
-0.0321774035692215,
-0.0019423328340053558,
-0.003843109356239438,
-0.0781908929347992,
-0.012363974004983902,
0.05168871209025383,
0.06397029757499695,
-0.1276845782995224,
-0.006016296334564686,
-0.014818249270319939,
-0.020941797643899918,
-0.08093363791704178,
0.025975042954087257,
0.021404052153229713,
-0.028775375336408615,
0.016793539747595787,
0.042671412229537964,
-0.0011037008371204138,
-0.027248520404100418,
0.03786924108862877,
0.04018735513091087,
-0.014043238013982773,
-0.0649566799402237,
-0.010135268792510033,
-0.061568379402160645,
-0.0010791679378598928,
-0.015818966552615166,
-0.050604481250047684,
-0.0710611492395401,
0.007617454510182142,
-0.0065054032020270824,
0.002523648552596569,
-0.040340106934309006,
-0.030059026554226875,
-0.09089898318052292,
-0.0034566554240882397,
-0.027229653671383858,
-0.006800286937505007,
0.030274754390120506,
-0.01769440807402134,
-0.01707342453300953,
-0.05331076681613922,
0.06766880303621292,
0.030956916511058807,
-0.024352170526981354,
0.028715280815958977,
-0.05432211607694626,
0.016857707872986794,
0.05957578122615814,
-0.021100368350744247,
0.0534081868827343,
0.004961670842021704,
-0.03158396854996681,
-0.010344273410737514,
0.004697057418525219,
-0.004594257101416588,
0.0081168906763196,
-0.03348798304796219,
-0.002424089703708887,
-0.0023412250448018312,
0.03358503058552742,
0.04387199133634567,
-0.06088884919881821,
-0.04333692789077759,
-0.013898168690502644,
-0.3407897651195526,
0.004145365674048662,
0.009120252914726734,
0.015224337577819824,
-0.05213160812854767,
-0.06864431500434875,
0.01853848434984684,
-0.0095703499391675,
0.015896402299404144,
0.08316163718700409,
0.09486963599920273,
-0.013759198598563671,
0.026259901002049446,
-0.05164719000458717,
-0.015519850887358189,
0.043623361736536026,
-0.021157363429665565,
-0.0014225203776732087,
0.004300094209611416,
0.06972742080688477,
-0.002939934143796563,
-0.048542287200689316,
-0.01853618584573269,
-0.026835832744836807,
-0.003919887822121382,
-0.023638596758246422,
0.14683112502098083,
0.09549332410097122,
0.011576691642403603,
-0.06451839208602905,
0.06812518835067749,
0.05611284077167511,
-0.03647775948047638,
-0.07500439882278442,
0.0002630290691740811,
-0.02472541481256485,
-0.006609853357076645,
0.03196666017174721,
0.02420060895383358,
0.0007280990248546004,
-0.06706898659467697,
0.028051408007740974,
0.00007334160909522325,
-0.05560557544231415,
0.012440464459359646,
-0.02762974239885807,
-0.007292988244444132,
-0.04060957208275795,
-0.024371769279241562,
0.04587846249341965,
0.03605952486395836,
0.010530858300626278,
0.05010313540697098,
0.017665568739175797,
-0.007324483711272478,
-0.004548945464193821,
-0.01391869131475687,
-0.020356079563498497,
-0.025631288066506386,
-0.00647636316716671,
0.03130081295967102,
0.03292175754904747,
0.023798245936632156,
-0.036450840532779694,
0.010016186162829399,
-0.018048685044050217,
-0.014703931286931038,
0.02536676824092865,
0.02792765386402607,
-0.03518727794289589,
-0.03692886233329773,
0.05441252514719963,
0.025923769921064377,
0.06240339204668999,
0.010622586123645306,
0.020549897104501724,
-0.06271641701459885,
-0.04062533378601074,
0.030390895903110504,
0.007849846966564655,
0.03969591110944748,
0.01557853538542986,
0.04442373663187027,
-0.04155397415161133,
-0.0010875327279791236,
0.08428622782230377,
-0.005692090839147568,
-0.014614864252507687,
0.059607505798339844,
-0.018507404252886772,
-0.00874997302889824,
-0.04397163540124893,
-0.036973077803850174,
-0.05284642055630684,
0.05937407538294792,
0.015756476670503616,
-0.2761266529560089,
0.032741643488407135,
0.025104109197854996,
0.05301227420568466,
0.03260847181081772,
0.0641624853014946,
0.039650171995162964,
-0.07347697764635086,
-0.021317873150110245,
0.021821819245815277,
0.011875624768435955,
0.032426558434963226,
-0.006795947905629873,
-0.04077509045600891,
0.02057335339486599,
0.03582795709371567,
-0.0035507609136402607,
0.025176195427775383,
-0.002430360298603773,
0.012211544439196587,
0.006404045503586531,
-0.010458585806190968,
0.1852659434080124,
0.0027804092969745398,
-0.00023680998128838837,
0.021555785089731216,
0.004384277388453484,
0.008206918835639954,
0.09618233144283295,
-0.004880969878286123,
-0.010290799662470818,
-0.004034851677715778,
0.06321179866790771,
0.02832803875207901,
0.038989704102277756,
-0.05697503685951233,
-0.004782153759151697,
-0.0046814968809485435,
0.015853313729166985,
-0.0503617525100708,
-0.021769680082798004,
0.04757649824023247,
-0.00886567123234272,
0.013813463039696217,
0.04337979853153229,
-0.02304142154753208,
0.005762738175690174,
-0.04832722991704941,
-0.019339825958013535,
0.002084258710965514,
-0.004135413561016321,
-0.08123505860567093,
-0.030763499438762665,
-0.003359447466209531,
0.019521240144968033,
0.06580233573913574,
0.022567149251699448,
-0.014482058584690094,
0.0261828750371933,
0.03135673329234123,
-0.03459984064102173,
-0.04147488996386528,
0.09085601568222046,
-0.0010773860849440098,
-0.018567834049463272
] | [
-0.02993619441986084,
0.048489343374967575,
-0.009978522546589375,
0.02256171405315399,
0.026044154539704323,
-0.0034479983150959015,
-0.01357877254486084,
0.002010482596233487,
-0.006282100919634104,
-0.036893486976623535,
-0.014120633713901043,
0.016915878280997276,
0.03438626974821091,
-0.014293123967945576,
0.05531547591090202,
0.016102630645036697,
-0.057743921875953674,
-0.011336656287312508,
0.02000507153570652,
-0.011792032048106194,
-0.05192594230175018,
0.021882332861423492,
-0.0006160012562759221,
-0.028620587661862373,
-0.03661598637700081,
0.031487539410591125,
0.005401806440204382,
-0.020717792212963104,
0.012063181027770042,
-0.0685904249548912,
-0.029703138396143913,
-0.0242108516395092,
-0.016412604600191116,
-0.024118272587656975,
0.008770699612796307,
0.029943332076072693,
0.022035613656044006,
0.013036410324275494,
0.03840578719973564,
0.013379774987697601,
-0.005184652283787727,
0.011116030625998974,
0.00279240682721138,
-0.03827964887022972,
-0.007721909787505865,
0.01837032660841942,
-0.05631168931722641,
-0.004293941892683506,
-0.03020033985376358,
0.0044889748096466064,
-0.02905338443815708,
-0.006429320201277733,
-0.0040993280708789825,
0.011317131109535694,
0.019195955246686935,
0.011273526586592197,
-0.09343400597572327,
-0.000657740340102464,
-0.038933586329221725,
-0.0223171878606081,
0.001048964448273182,
-0.011061083525419235,
-0.04825253039598465,
-0.02537682093679905,
0.017688075080513954,
-0.019425736740231514,
-0.06110813468694687,
0.011300851590931416,
0.02887224778532982,
-0.002599820028990507,
0.00675618089735508,
0.0036189204547554255,
-0.044635143131017685,
-0.040986742824316025,
-0.009876628406345844,
-0.002451223088428378,
-0.00007936439214972779,
-0.022745676338672638,
0.01584796793758869,
-0.019153159111738205,
-0.058508191257715225,
0.021347010508179665,
0.011412051506340504,
0.02291225641965866,
0.006389262620359659,
-0.03348074108362198,
-0.008869865909218788,
0.0034248153679072857,
-0.027242545038461685,
-0.016718441620469093,
-0.034385573118925095,
-0.02398885414004326,
0.0066282302141189575,
-0.009812879376113415,
-0.06752914190292358,
0.009739311411976814,
0.006175614893436432,
-0.005860625766217709,
-0.00216198549605906,
0.8243824243545532,
-0.006357051432132721,
0.0025203204713761806,
0.04027574509382248,
0.007398550398647785,
0.01684172824025154,
-0.003943952731788158,
-0.005824794992804527,
0.022037891671061516,
0.044587235897779465,
0.010496273636817932,
-0.0030173056293278933,
0.012290500104427338,
0.00003803580329986289,
0.020123520866036415,
0.02485673315823078,
0.03892708197236061,
0.03185553103685379,
-0.0084563959389925,
-0.005858413875102997,
0.05218963325023651,
0.03724511340260506,
-0.023691879585385323,
-0.012356044724583626,
-0.004075617529451847,
0.001538642798550427,
-0.2008322924375534,
0.03401857614517212,
-7.310122391907394e-33,
0.07412707805633545,
-0.009613427333533764,
0.03737374022603035,
-0.04451000317931175,
0.034170445054769516,
-0.023115137591958046,
-0.050467297434806824,
-0.02001556195318699,
-0.022705072537064552,
-0.008308937773108482,
0.026162579655647278,
0.009226137772202492,
0.03444400802254677,
-0.011965278536081314,
0.0102341677993536,
-0.029649129137396812,
0.027164390310645103,
0.029936129227280617,
0.004508607089519501,
0.0006277037318795919,
0.016924070194363594,
-0.0023197256959974766,
0.03121570684015751,
0.03285977989435196,
-0.0050381505861878395,
0.029842808842658997,
0.011548176407814026,
0.033616844564676285,
-0.007587195374071598,
-0.050924353301525116,
-0.013294391334056854,
0.03968464583158493,
0.0060094804503023624,
-0.01674681529402733,
0.005535682197660208,
-0.0265142023563385,
-0.020882731303572655,
0.0033658607862889767,
-0.046186886727809906,
-0.04607385769486427,
-0.034957338124513626,
0.020832577720284462,
-0.02516523189842701,
-0.01502060703933239,
-0.019832536578178406,
0.007566263433545828,
-0.009020463563501835,
-0.0043946243822574615,
-0.0010971877491101623,
0.013575221411883831,
0.023428600281476974,
0.010394182987511158,
-0.0002759308263193816,
0.03231314197182655,
-0.016639893874526024,
-0.0025791299995034933,
-0.013571086339652538,
0.012635109014809132,
-0.008837355300784111,
-0.011670458130538464,
0.04821394011378288,
-0.03163064271211624,
0.0070946672931313515,
0.04925355315208435,
0.004813770297914743,
0.014410547912120819,
0.012939035892486572,
0.02248498797416687,
0.011541882529854774,
0.028510941192507744,
-0.044597119092941284,
0.07810795307159424,
-0.016247831284999847,
-0.023839322850108147,
0.019382283091545105,
-0.037068869918584824,
0.02835613116621971,
0.0072921826504170895,
0.014238499104976654,
0.03761347755789757,
0.025757921859622,
-0.007145886309444904,
-0.007890477776527405,
-0.007583757396787405,
-0.041048839688301086,
0.01651604101061821,
0.03510482609272003,
-0.0026759912725538015,
-0.053784340620040894,
0.028679564595222473,
0.012129388749599457,
0.08554742485284805,
-0.007616832386702299,
-0.026623256504535675,
0.0018839401891455054,
7.069722776904697e-33,
0.02575392834842205,
-0.043252646923065186,
0.0021251775324344635,
-0.03017672337591648,
0.04743267595767975,
-0.04596785455942154,
0.047141291201114655,
0.017210014164447784,
0.00246074004098773,
0.055404793471097946,
-0.023941408842802048,
-0.0008800703217275441,
0.008130712434649467,
0.0102794598788023,
0.07140296697616577,
0.004721964709460735,
0.036966804414987564,
-0.009403081610798836,
0.04697533696889877,
0.002824495080858469,
-0.005889794789254665,
0.0000020133463749516523,
0.007631824351847172,
-0.007616095710545778,
0.009211418218910694,
0.027746636420488358,
-0.02259085327386856,
0.0034181333612650633,
-0.019652772694826126,
-0.036263782531023026,
-0.004194194916635752,
-0.012358032166957855,
-0.0035124828573316336,
-0.02641727589070797,
0.0069290343672037125,
0.06118975207209587,
-0.0335201770067215,
0.017403634265065193,
0.009675351902842522,
-0.030374577268958092,
0.049270618706941605,
0.005501673091202974,
-0.014385468326508999,
0.038513895124197006,
0.023651599884033203,
-0.022242482751607895,
-0.00783543661236763,
0.0036867379676550627,
-0.06718520075082779,
-0.003406330943107605,
0.007451742421835661,
0.001179022016003728,
-0.02346087619662285,
0.0016692018834874034,
0.014126721769571304,
-0.02793717570602894,
-0.012886523269116879,
0.02088298834860325,
-0.048311054706573486,
-0.006953573320060968,
0.007589307613670826,
-0.010302780196070671,
-0.046504683792591095,
0.062370989471673965,
-0.037430472671985626,
-0.058206796646118164,
-0.041069742292165756,
-0.02524757757782936,
0.011396876536309719,
0.012723649851977825,
-0.031587012112140656,
-0.014294713735580444,
-0.003627953352406621,
0.018137609586119652,
0.011667197570204735,
-0.03594117611646652,
0.00391924986615777,
0.00807987805455923,
0.03366180881857872,
0.014583252370357513,
0.01294190064072609,
-0.005338112358003855,
0.0057938434183597565,
-0.01868915744125843,
0.017712701112031937,
0.030017979443073273,
-0.029832452535629272,
0.02457999810576439,
0.008646638132631779,
-0.0003760123217944056,
0.010254628024995327,
-0.05033625662326813,
-0.011305874213576317,
0.024164460599422455,
-0.044878847897052765,
-1.3104203944180881e-8,
-0.041728675365448,
0.03538161516189575,
-0.017871269956231117,
-0.004429958760738373,
0.02612430974841118,
-0.014465905725955963,
0.007100154645740986,
0.0010150030720978975,
0.014203503727912903,
0.01326015219092369,
0.04998736083507538,
-0.011775068938732147,
-0.003139169653877616,
0.0021332171745598316,
0.011474661529064178,
-0.052589353173971176,
-0.004234113730490208,
-0.024291176348924637,
0.018548231571912766,
0.027400923892855644,
-0.024350525811314583,
0.023052724078297615,
-0.00674495380371809,
-0.03930165246129036,
0.0032174030784517527,
-0.005389482714235783,
0.02243013307452202,
-0.06321695446968079,
-0.032033029943704605,
-0.025045575574040413,
0.011214897967875004,
-0.01831926591694355,
-0.014646722935140133,
-0.0040358263067901134,
-0.010936071164906025,
-0.038809634745121,
-0.002671204973012209,
0.0122003685683012,
-0.0024776472710072994,
0.01742451824247837,
0.03538518026471138,
0.040058501064777374,
-0.016974924132227898,
-0.00975705310702324,
-0.025848157703876495,
0.004400588106364012,
0.00449371337890625,
0.028229529038071632,
0.0034195370972156525,
-0.03059850074350834,
-0.0037986726965755224,
-0.032798897475004196,
0.04669424518942833,
-0.004706707317382097,
0.022386442869901657,
-0.005170715041458607,
0.03661535307765007,
-0.016449488699436188,
-0.02029617875814438,
-0.013892407529056072,
0.02633827179670334,
0.011458151042461395,
-0.015317236073315144,
-0.02709208056330681
] | jq-cannot-iterate-over-number-string-and-number-cannot-be-added | https://markhneedham.com/blog/2015/11/24/jq-cannot-iterate-over-number-string-and-number-cannot-be-added |
false | 2015-11-14 22:51:38 | jq: Filtering missing keys | [
"jq"
] | [
"Software Development"
] | I've been playing around with the http://www.meetup.com/meetup_api/docs/2/events/[meetup.com API] again over the last few days and having saved a set of events to disk I wanted to extract the venues using https://stedolan.github.io/jq/[jq].
This is what a single event record looks like:
[source,bash]
----
$ jq -r ".[0]" data/events/0.json
{
"status": "past",
"rating": {
"count": 1,
"average": 1
},
"utc_offset": 3600000,
"event_url": "http://www.meetup.com/londonweb/events/3261890/",
"group": {
"who": "Web Peeps",
"name": "London Web",
"group_lat": 51.52000045776367,
"created": 1034097743000,
"join_mode": "approval",
"group_lon": -0.12999999523162842,
"urlname": "londonweb",
"id": 163876
},
"name": "London Web Design October Meetup",
"created": 1094756756000,
"venue": {
"city": "London",
"name": "Roadhouse Live Music Restaurant , Bar & Club",
"country": "GB",
"lon": -0.1,
"phone": "44-020-7240-6001",
"address_1": "The Piazza",
"address_2": "Covent Garden",
"repinned": false,
"lat": 51.52,
"id": 11725
},
"updated": 1273536337000,
"visibility": "public",
"yes_rsvp_count": 2,
"time": 1097776800000,
"waitlist_count": 0,
"headcount": 0,
"maybe_rsvp_count": 5,
"id": "3261890"
}
----
We want to extract the keys underneath 'venue'. I started with the following:
[source,bash]
----
$ jq -r ".[] | .venue" data/events/0.json
...
{
"city": "London",
"name": "Counting House Pub",
"country": "gb",
"lon": -0.085022,
"phone": "020 7283 7123",
"address_1": "50 Cornhill Rd",
"address_2": "EC3V 3PD",
"repinned": false,
"lat": 51.513407,
"id": 835790
}
null
{
"city": "Paris",
"name": "Mozilla Paris",
"country": "fr",
"lon": 2.341002,
"address_1": "16 Bis Boulevard Montmartre",
"repinned": false,
"lat": 48.871834,
"id": 23591845
}
...
----
This is close to what I want but it includes 'null' values which means when you extract the keys inside 'venue' they are all empty as well:
[source,bash]
----
jq -r ".[] | .venue | [.id, .name, .city, .address_1, .address_2, .lat, .lon] | @csv" data/events/0.json
...
101958,"The Green Man and French Horn, -","London","54, St. Martins Lane - Covent Garden","WC2N 4EA",51.52,-0.1
,,,,,,
107295,"The Yorkshire Grey Pub","London","46 Langham Street","W1W 7AX",51.52,-0.1
...
,,,,,,
----
If functional programming lingo we want to filter out any JSON documents which don't have the 'venue' key. 'filter' has a different meaning in jq so it took me a while to realise that the 'select' function was what I needed to get rid of the null values:
[source,bash]
----
$ jq -r ".[] | select(.venue != null) | .venue | [.id, .name, .city, .address_1, .address_2, .lat, .lon] | @csv" data/events/0.json | head
11725,"Roadhouse Live Music Restaurant , Bar & Club","London","The Piazza","Covent Garden",51.52,-0.1
11725,"Roadhouse Live Music Restaurant , Bar & Club","London","The Piazza","Covent Garden",51.52,-0.1
11725,"Roadhouse Live Music Restaurant , Bar & Club","London","The Piazza","Covent Garden",51.52,-0.1
11725,"Roadhouse Live Music Restaurant , Bar & Club","London","The Piazza","Covent Garden",51.52,-0.1
76192,"Pied Bull Court","London","Galen Place, London, WC1A 2JR",,51.516747,-0.12719
76192,"Pied Bull Court","London","Galen Place, London, WC1A 2JR",,51.516747,-0.12719
85217,"Earl's Court Exhibition Centre","London","Warwick Road","SW5 9TA",51.49233,-0.199735
96579,"Olympia 2","London","Near Olympia tube station",,51.52,-0.1
76192,"Pied Bull Court","London","Galen Place, London, WC1A 2JR",,51.516747,-0.12719
101958,"The Green Man and French Horn, -","London","54, St. Martins Lane - Covent Garden","WC2N 4EA",51.52,-0.1
----
And we're done. | null | null | [
0.008222383446991444,
-0.0290832556784153,
-0.0027728492859750986,
0.014534329064190388,
0.07152579724788666,
0.010187343694269657,
0.030680175870656967,
0.06494583189487457,
0.0026357867754995823,
0.016857219859957695,
-0.031183119863271713,
-0.005411705933511257,
-0.08318234235048294,
0.012109136208891869,
-0.007477519102394581,
0.0615544393658638,
0.06259595602750778,
-0.016903473064303398,
0.016589174047112465,
-0.006239110603928566,
0.04896526783704758,
0.07865872979164124,
0.0034541115164756775,
0.0312788188457489,
0.036460909992456436,
0.010720513761043549,
-0.004842452239245176,
-0.004833803977817297,
-0.0871918648481369,
0.007722966838628054,
0.03717084974050522,
0.009653362445533276,
0.013419318944215775,
-0.012883415445685387,
0.024724585935473442,
-0.022842636331915855,
-0.015070371329784393,
-0.010272465646266937,
-0.004767836071550846,
0.020228348672389984,
-0.052796054631471634,
0.02608392760157585,
-0.016234535723924637,
0.031066806986927986,
-0.051651205867528915,
0.010029136203229427,
-0.04993972182273865,
0.03078804351389408,
-0.02263353206217289,
0.0016788378125056624,
-0.05347317084670067,
0.020396539941430092,
-0.02117759734392166,
-0.000997559167444706,
0.006923029664903879,
0.06123192608356476,
0.0054528601467609406,
-0.07055506110191345,
0.012925241142511368,
-0.021480685099959373,
0.007102409843355417,
0.00031282330746762455,
0.028770823031663895,
0.011715361848473549,
0.022181322798132896,
-0.012193480506539345,
0.0017251119716092944,
0.055892281234264374,
-0.016897140070796013,
-0.014314885251224041,
-0.0015783233102411032,
0.04247591271996498,
-0.018322758376598358,
-0.01093353796750307,
0.005423822905868292,
-0.05814943462610245,
0.009241289459168911,
0.05811944603919983,
0.013569624163210392,
0.0631810799241066,
-0.006778839975595474,
-0.0015863256994634867,
0.017859438434243202,
0.032055262476205826,
0.0022027043160051107,
-0.04587539657950401,
-0.06526172161102295,
-0.019160961732268333,
-0.05426570400595665,
0.04833446443080902,
0.042135223746299744,
-0.041154053062200546,
0.030367787927389145,
0.02873828448355198,
0.011600594036281109,
0.0007824308704584837,
0.01814737729728222,
0.0009388354374095798,
-0.0008881674730218947,
-0.02735294960439205,
-0.033182624727487564,
-0.0009483379544690251,
0.01911340095102787,
0.004320663399994373,
-0.0879606306552887,
-0.001450662617571652,
-0.026958581060171127,
0.006009446457028389,
0.016517309471964836,
-0.021122274920344353,
0.0007858696626499295,
0.021264422684907913,
-0.01456978265196085,
0.0038492006715387106,
-0.0576755553483963,
0.047196727246046066,
0.015133433975279331,
-0.05541905760765076,
0.00031133092124946415,
0.0037075886502861977,
0.0590200237929821,
0.024325260892510414,
0.00719305407255888,
0.08437800407409668,
-0.005602676421403885,
0.030308857560157776,
-0.0036787264980375767,
0.05381453037261963,
-0.018254650756716728,
-0.05525444075465202,
-0.030150150880217552,
0.0578707754611969,
0.021404029801487923,
0.007135146297514439,
0.00004845828880206682,
-0.039655737578868866,
-0.014396979473531246,
0.004528527148067951,
0.06967635452747345,
0.009093918837606907,
0.005500313360244036,
-0.02164638042449951,
-0.01693529635667801,
-0.008229920640587807,
0.0344819538295269,
0.0230446495115757,
-0.02109694294631481,
-0.06591571867465973,
-0.03611921891570091,
0.01639745943248272,
0.031140364706516266,
0.01587388478219509,
0.027550306171178818,
-0.055055126547813416,
0.01258236076682806,
0.07479456067085266,
0.043122533708810806,
0.010369842872023582,
-0.034508999437093735,
-0.00861114077270031,
0.023448018357157707,
0.03596629947423935,
0.006442842539399862,
0.048879072070121765,
-0.0030910365749150515,
-0.018508005887269974,
-0.00005859690281795338,
0.049633849412202835,
-0.0159809198230505,
0.005979313515126705,
-0.06717071682214737,
-0.06324689835309982,
0.07002861797809601,
-0.020981956273317337,
-0.01232274528592825,
0.042456068098545074,
0.08387858420610428,
0.05553774908185005,
0.03601962700486183,
0.014842327684164047,
-0.08881396055221558,
0.027413034811615944,
0.015378962270915508,
0.02810783125460148,
0.04225015640258789,
-0.0077491444535553455,
0.0941290408372879,
0.047440305352211,
0.0035756488796323538,
0.040233563631772995,
-0.08902017027139664,
-0.06548625975847244,
-0.04615677148103714,
-0.013862919993698597,
0.0712888315320015,
-0.016248131170868874,
0.03583424910902977,
0.0544922761619091,
0.0045540956780314445,
0.06159840524196625,
-0.0028217488434165716,
-0.0017726820660755038,
0.017307529225945473,
-0.03306180238723755,
-0.061510179191827774,
0.027961798012256622,
0.03761864826083183,
-0.014245422556996346,
-0.01084678340703249,
-0.0032138735987246037,
-0.05347028374671936,
0.012045005336403847,
0.03410475701093674,
-0.019450753927230835,
0.016368664801120758,
0.018094422295689583,
0.04303630441427231,
-0.004013126250356436,
0.024738166481256485,
-0.04504784941673279,
0.05466976389288902,
0.02499440498650074,
-0.01764005422592163,
-0.013857248239219189,
-0.0005280856275931001,
0.13578598201274872,
0.052549708634614944,
0.005667407065629959,
-0.029049813747406006,
0.01561661995947361,
0.02464139461517334,
-0.008236449211835861,
-0.019557608291506767,
-0.03754853457212448,
0.006463330239057541,
-0.00923676136881113,
-0.028006240725517273,
-0.042000316083431244,
0.006465595215559006,
-0.03141847997903824,
0.02031531184911728,
0.035967178642749786,
-0.012360669672489166,
0.06257603317499161,
0.00407941872254014,
-0.01370170246809721,
-0.007614640053361654,
-0.029460320249199867,
-0.035818859934806824,
-0.0008479716489091516,
0.004094443283975124,
-0.012484073638916016,
0.02654420956969261,
-0.03308672457933426,
0.015567895025014877,
-0.00932724867016077,
-0.007912274450063705,
0.04986369237303734,
0.05164492130279541,
0.0497533343732357,
-0.039215248078107834,
0.0564136765897274,
-0.026009418070316315,
0.0040009114891290665,
-0.015411684289574623,
-0.030413491651415825,
-0.04286055639386177,
-0.011574567295610905,
-0.009937678463757038,
0.009814976714551449,
0.05015052855014801,
0.027750274166464806,
-0.010754890739917755,
0.01648741215467453,
0.011971871368587017,
0.005899068433791399,
0.0473407544195652,
-0.003252229653298855,
0.011105808429419994,
-0.0341913141310215,
-0.03952087089419365,
0.036120716482400894,
-0.05034482106566429,
-0.04681110382080078,
-0.010297445580363274,
-0.08311054855585098,
0.029665499925613403,
-0.043298736214637756,
-0.047206755727529526,
-0.009001528844237328,
-0.007509992923587561,
0.0453486405313015,
0.018458496779203415,
-0.0038473198655992746,
0.059593379497528076,
0.010003087110817432,
0.019591866061091423,
0.032677747309207916,
-0.012011030688881874,
0.03023664467036724,
-0.012228048406541348,
0.029045045375823975,
0.03533501923084259,
-0.030891016125679016,
0.011259735561907291,
-0.05541066452860832,
0.016431793570518494,
-0.029905619099736214,
-0.27563339471817017,
0.035803623497486115,
-0.005793378688395023,
-0.03720152750611305,
0.021807635203003883,
-0.005420343019068241,
0.02785189263522625,
-0.05254402756690979,
-0.0206905547529459,
-0.010931516997516155,
-0.01824500784277916,
-0.05776190385222435,
-0.008785704150795937,
0.01643325574696064,
0.016788972541689873,
0.008616390638053417,
-0.01794399879872799,
-0.03675508871674538,
0.01405370607972145,
0.024968577548861504,
-0.00011586808977881446,
-0.06620316207408905,
0.0027339437510818243,
0.04449634999036789,
0.014928215183317661,
0.06580237299203873,
-0.0478031225502491,
-0.013128697872161865,
-0.04496615007519722,
-0.03098142519593239,
0.05534341186285019,
-0.025162842124700546,
0.02165798656642437,
-0.03052888996899128,
-0.008969396352767944,
-0.015434849075973034,
0.055367738008499146,
-0.015799080953001976,
0.002649720059707761,
-0.0034051649272441864,
-0.021277861669659615,
-0.018029658123850822,
0.010762419551610947,
0.00001984482878469862,
0.09571504592895508,
0.022428449243307114,
-0.05781622603535652,
-0.019806429743766785,
-0.023469965904951096,
0.05710573121905327,
-0.020768875256180763,
-0.04023858904838562,
-0.019814545288681984,
0.037726595997810364,
-0.0165896974503994,
-0.01713038794696331,
-0.01586739532649517,
-0.0015483656898140907,
-0.05017029866576195,
-0.025056680664420128,
-0.0025359014980494976,
-0.03538380563259125,
-0.019590316340327263,
-0.04226362705230713,
-0.014222278259694576,
-0.053242988884449005,
-0.05950362980365753,
0.000038240610592765734,
0.07363732159137726,
0.015757311135530472,
-0.027325378730893135,
0.002245021518319845,
-0.020250914618372917,
-0.09454643726348877,
-0.03093213587999344,
0.007090428378432989,
-0.009858470410108566,
0.019871653988957405,
0.00936896912753582,
0.04240899905562401,
-0.06168529763817787,
-0.045651666820049286,
0.002883495995774865,
-0.006375699769705534,
0.020090041682124138,
-0.03361531347036362,
0.021020300686359406,
0.0029794229194521904,
-0.046200573444366455,
-0.0283540990203619,
0.06832192838191986,
-0.02453877590596676,
-0.040517210960388184,
-0.01107687596231699,
0.005353950429707766,
0.03936401754617691,
0.0033043748699128628,
-0.00008386684930883348,
0.03167674317955971,
0.056744061410427094,
0.017927261069417,
-0.05099770426750183,
0.01687408983707428,
-0.05900489166378975,
-0.003518475452437997,
-0.007756291422992945,
-0.043491896241903305,
0.003268643282353878,
0.021311422809958458,
-0.0010609861928969622,
0.020380927249789238,
-0.03895898535847664,
0.021187614649534225,
-0.05132712423801422,
-0.006914277095347643,
-0.03284788876771927,
0.030951814725995064,
0.021898137405514717,
0.019094308838248253,
-0.024041905999183655,
-0.04118916392326355,
0.01692763715982437,
0.021753670647740364,
-0.0033499642740935087,
-0.06392673403024673,
-0.025825921446084976,
-0.019843759015202522,
-0.002638123696669936,
0.026142295449972153,
0.010925980284810066,
0.001112628378905356,
0.01808425784111023,
0.006567167583853006,
-0.03602185845375061,
0.025661733001470566,
-0.004872973542660475,
-0.03224247321486473,
-0.02768578752875328,
0.012391163036227226,
0.03900017589330673,
-0.0005470114410854876,
-0.008706369437277317,
-0.0060396394692361355,
0.05537523329257965,
0.029445337131619453,
0.019741296768188477,
0.007958604954183102,
-0.02222154475748539,
0.023304428905248642,
-0.00739382766187191,
-0.02654190920293331,
-0.054638031870126724,
0.013982617296278477,
-0.0328621044754982,
0.009541185572743416,
0.012141015380620956,
0.04697272926568985,
-0.004792632069438696,
-0.04557269811630249,
-0.037587832659482956,
0.002871005330234766,
-0.0516866110265255,
-0.01461785938590765,
0.007799289654940367,
-0.004797589033842087,
0.039750225841999054,
-0.010112699121236801,
0.03429790213704109,
-0.004887579008936882,
-0.003661005524918437,
0.004492799285799265,
0.02167893387377262,
-0.016500409692525864,
0.0038585239090025425,
-0.015819238498806953,
-0.014525535516440868,
0.019271789118647575,
0.02622426673769951,
0.02076011151075363,
-0.0023354634176939726,
-0.009216748178005219,
-0.021238988265395164,
0.01542002521455288,
0.025486405938863754,
0.050935983657836914,
0.03924155980348587,
-0.027131501585245132,
0.002053789561614394,
-0.006622194312512875,
-0.05464542284607887,
-0.019870007410645485,
-0.001697808620519936,
-0.02231975458562374,
-0.02677743136882782,
-0.015839533880352974,
-0.09447471797466278,
0.04024115204811096,
0.01161146815866232,
-0.004892620723694563,
0.017783792689442635,
-0.0011405771365389228,
-0.005568987689912319,
-0.03527617081999779,
0.016710933297872543,
0.03983129933476448,
-0.057780224829912186,
-0.01381661370396614,
-0.009090086445212364,
-0.012478236109018326,
0.005252000410109758,
0.0025438766460865736,
-0.062192708253860474,
-0.005513581447303295,
-0.014706423506140709,
0.016892096027731895,
-0.04083683714270592,
-0.024855390191078186,
-0.011692317202687263,
0.02201998420059681,
-0.008582642301917076,
0.04443184658885002,
0.011142930015921593,
0.007507723290473223,
0.007568533532321453,
-0.0197791438549757,
0.03725622966885567,
-0.03036222979426384,
-0.003234303090721369,
0.0018597746966406703,
-0.02744230628013611,
0.011852086521685123,
-0.03737165033817291,
0.013887847773730755,
0.029503334313631058,
-0.01738918386399746,
0.014017670415341854,
-0.08495527505874634,
-0.03105941042304039,
-0.006753013003617525,
0.06861229985952377,
-0.010888363234698772,
-0.008336104452610016,
-0.04506685212254524,
0.0012685226975008845,
-0.03817322477698326,
0.026479331776499748,
0.00372708379290998,
-0.009758270345628262,
0.03434666246175766,
0.03628849610686302,
0.016741691157221794,
0.024781201034784317,
-0.011636736802756786,
-0.03562024235725403,
0.03814582899212837,
-0.06207990646362305,
-0.024804962798953056,
-0.026671718806028366,
-0.06460095942020416,
0.024643821641802788,
0.0017618214478716254,
0.024909885600209236,
-0.04187801852822304,
0.04041338339447975,
0.025528984144330025,
0.03352969512343407,
0.03617625683546066,
-0.013828844763338566,
0.002973098773509264,
-0.02575226128101349,
-0.0015984216006472707,
-0.0848824605345726,
0.010777872055768967,
0.036634672433137894,
-0.02283713035285473,
-0.013954199850559235,
0.01590179279446602,
-0.042865313589572906,
0.03450259938836098,
-0.06791316717863083,
-0.0194072425365448,
0.04380869120359421,
-0.02394438348710537,
-0.009242633357644081,
0.01513760071247816,
-0.05342159420251846,
0.005407846998423338,
0.05981934070587158,
-0.049470994621515274,
0.015287634916603565,
-0.037526536732912064,
0.07229065150022507,
-0.009386278688907623,
0.03178487718105316,
-0.024534422904253006,
-0.02323959209024906,
0.05757221579551697,
0.030399015173316002,
-0.0038750015664845705,
0.05121881142258644,
-0.029956690967082977,
0.019808491691946983,
0.006604547146707773,
-0.02475634403526783,
0.013935989700257778,
0.010857481509447098,
-0.022792354226112366,
-0.06649556010961533,
0.030316997319459915,
-0.005002031102776527,
-0.02663685940206051,
-0.041182562708854675,
0.09435805678367615,
0.008453047834336758,
-0.03625287860631943,
-0.05519408360123634,
0.011325418949127197,
-0.0426822192966938,
-0.02064024843275547,
-0.008957271464169025,
-0.007184638176113367,
-0.046689048409461975,
0.0641203448176384,
0.013161689043045044,
0.0389505960047245,
0.05367103964090347,
0.015971435233950615,
0.0033966072369366884,
0.013327469117939472,
0.08316001296043396,
0.09329351782798767,
0.04503310099244118,
0.028726328164339066,
0.06708035618066788,
-0.034483373165130615,
-0.05578159540891647,
-0.013188947923481464,
-0.03393496572971344,
-0.02335905283689499,
-0.000505446398165077,
-0.01205040980130434,
0.08945456147193909,
-0.026685772463679314,
0.07726249098777771,
0.008052052929997444,
-0.02466573193669319,
0.015089460648596287,
0.01133459061384201,
0.05055449530482292,
0.040693867951631546,
0.004632304888218641,
0.027586936950683594,
0.00023380429774988443,
-0.04838115721940994,
0.057938382029533386,
0.007462287321686745,
-0.03403981775045395,
0.03401251137256622,
-0.024975305423140526,
0.03607221692800522,
0.005990540608763695,
0.061643727123737335,
0.06440090388059616,
-0.009631115943193436,
-0.009331479668617249,
-0.003107238095253706,
0.018041590228676796,
0.011970625258982182,
0.035651449114084244,
-0.017919182777404785,
-0.0073188007809221745,
-0.00689964322373271,
-0.06084836646914482,
-0.01613851636648178,
-0.008170519955456257,
-0.05344589427113533,
0.0427464060485363,
-0.031785015016794205,
0.024452853947877884,
-0.013588180765509605,
0.009251528419554234,
-0.014386666938662529,
-0.04652751237154007,
-0.0669822096824646,
-0.04636198282241821,
-0.05451390892267227,
-0.04295797273516655,
0.01535688154399395,
-0.02409796603024006,
-0.027438288554549217,
-0.004384286236017942,
-0.03665095567703247,
0.02265712060034275,
-0.0030054657254368067,
-0.07925248146057129,
-0.021099068224430084,
0.014243208803236485,
-0.020150577649474144,
0.02551695518195629,
0.02125026099383831,
0.04432103782892227,
0.015044053085148335,
0.0030873811338096857,
-0.02652692049741745,
0.00423341104760766,
0.07216721773147583,
0.00033153381082229316,
-0.010404260829091072,
-0.09286724030971527,
0.04302849993109703,
0.028077853843569756,
-0.02113892138004303,
-0.07723566144704819,
0.03163507208228111,
0.01963765174150467,
-0.0038396825548261404,
0.036827217787504196,
-0.008434975519776344,
-0.011903289705514908,
-0.02799324318766594,
-0.03326237201690674,
0.0055372146889567375,
0.0028160137590020895,
0.033482447266578674,
-0.018580712378025055,
0.08022203296422958,
0.04223165661096573,
-0.02210664004087448,
-0.052154768258333206,
-0.005418973509222269,
0.01623767800629139,
-0.0023136448580771685,
-0.03662068024277687,
-0.04851824417710304,
-0.0570482537150383,
-0.08928433060646057,
-0.061030544340610504,
0.03141126036643982,
-0.021948643028736115,
-0.019729427993297577,
0.028689958155155182,
0.013993406668305397,
-0.0335812047123909,
0.015042637474834919,
-0.0261542946100235,
0.029341422021389008,
-0.011220489628612995,
0.00016525745741091669,
-0.06894626468420029,
0.01609734818339348,
0.01893833838403225,
-0.00462597468867898,
0.005756623577326536,
-0.03531554713845253,
0.007183008827269077,
-0.017410874366760254,
0.03279091417789459,
0.037400417029857635,
-0.010894645936787128,
0.010111714713275433
] | [
-0.039668064564466476,
-0.03394579887390137,
-0.014799871481955051,
-0.014312641695141792,
0.05873385816812515,
-0.05729453265666962,
-0.003094634972512722,
-0.025938641279935837,
0.013433712534606457,
-0.030293777585029602,
0.020090660080313683,
-0.027068505063652992,
0.028602689504623413,
-0.026569360867142677,
0.08092623949050903,
0.007280830293893814,
0.0015236844774335623,
-0.09946539252996445,
-0.041865840554237366,
0.044435013085603714,
-0.02016623504459858,
-0.010201925411820412,
-0.04333845153450966,
-0.008950356394052505,
-0.031529009342193604,
0.033469799906015396,
0.020107218995690346,
-0.028031963855028152,
-0.02618004009127617,
-0.1343107521533966,
0.019350849092006683,
-0.02230066806077957,
0.043391142040491104,
0.013030847534537315,
0.024914879351854324,
0.017598522827029228,
0.02392803691327572,
-0.0013916923198848963,
0.031690459698438644,
0.06215151399374008,
0.03687456250190735,
-0.01981990598142147,
-0.021653927862644196,
-0.03312787041068077,
0.0312616340816021,
-0.004716445691883564,
-0.030059807002544403,
0.0037877694703638554,
-0.035048358142375946,
0.018583161756396294,
-0.045327894389629364,
0.002180476440116763,
-0.0012912543024867773,
-0.04137394204735756,
0.00392520148307085,
0.0677030012011528,
0.024904165416955948,
0.06858868896961212,
-0.0017998131224885583,
0.028017127886414528,
0.029735714197158813,
-0.01966504380106926,
-0.13775861263275146,
0.11220167577266693,
-0.008344189263880253,
0.01796809770166874,
-0.05965319275856018,
0.017878049984574318,
-0.0012844670563936234,
0.0531390979886055,
0.01959346793591976,
-0.0007566767162643373,
-0.023173531517386436,
0.05335170775651932,
0.02274913527071476,
-0.02375057525932789,
-0.01739707961678505,
0.03095453791320324,
0.025221271440386772,
-0.0026457244530320168,
-0.052567508071660995,
-0.012505443766713142,
-0.011828562244772911,
-0.02971928007900715,
-0.029236525297164917,
-0.024927854537963867,
-0.005989304278045893,
0.07692965865135193,
0.008077201433479786,
0.021133605390787125,
0.0043506803922355175,
0.004689503461122513,
0.00843772105872631,
0.009516153484582901,
-0.08845183998346329,
-0.017206674441695213,
0.0017986517632380128,
0.038346633315086365,
0.001650267862714827,
0.4022890329360962,
-0.012358415871858597,
0.03199753910303116,
0.023691879585385323,
0.04430044814944267,
-0.02795287035405636,
-0.051144979894161224,
0.0028937796596437693,
-0.07476259022951126,
0.020023655146360397,
-0.022798825055360794,
-0.008660751394927502,
-0.008808933198451996,
0.06822892278432846,
-0.05375814810395241,
0.02526114694774151,
0.0351504310965538,
0.06526687741279602,
0.02399098500609398,
-0.021255141124129295,
-0.016904545947909355,
-0.004119063727557659,
-0.012092017568647861,
0.02694845013320446,
0.03242041543126106,
0.005021056160330772,
0.025502262637019157,
0.06071613356471062,
0.05487740784883499,
0.02964782901108265,
0.02252100594341755,
0.08025413751602173,
-0.011257470585405827,
-0.06959935277700424,
0.0004891915014013648,
-0.017020942643284798,
0.00816496554762125,
0.021817613393068314,
-0.015933221206068993,
0.014528836123645306,
0.034125007688999176,
0.009792327880859375,
-0.044963762164115906,
0.02729003131389618,
-0.009925833903253078,
-0.015289200469851494,
0.15441255271434784,
-0.022340692579746246,
-0.055629655718803406,
-0.03552399203181267,
-0.0754232108592987,
-0.00762660289183259,
0.016559138894081116,
-0.01054256409406662,
-0.04435111954808235,
-0.0016872718697413802,
0.018069053068757057,
0.10665149986743927,
-0.02735653519630432,
-0.026450060307979584,
0.0006882086745463312,
0.009104275144636631,
-0.06143851578235626,
-0.009042248129844666,
0.072233185172081,
0.04426832124590874,
-0.18076397478580475,
0.007500527426600456,
-0.008782961405813694,
-0.017602067440748215,
-0.08313897252082825,
-0.000047749294026289135,
0.001029310398735106,
-0.024758851155638695,
0.039225101470947266,
0.06313216686248779,
0.00595320388674736,
-0.026245448738336563,
0.03767019510269165,
0.04533477872610092,
-0.01602557860314846,
-0.038689885288476944,
-0.01749802939593792,
-0.05342204496264458,
0.014490620233118534,
-0.02273784764111042,
-0.07172125577926636,
-0.06137637048959732,
-0.0169790331274271,
-0.0016992223681882024,
0.01699579879641533,
-0.04668327793478966,
-0.07376904040575027,
-0.0837974026799202,
0.03603214770555496,
-0.03702951967716217,
-0.009055851958692074,
0.01250433549284935,
-0.006047329865396023,
0.013722473755478859,
-0.04151706025004387,
0.0055171228013932705,
0.0054010129533708096,
-0.049091558903455734,
0.010169976390898228,
-0.036276571452617645,
0.04293210059404373,
0.0395406037569046,
-0.03268146142363548,
0.07152817398309708,
0.029177194461226463,
-0.02582547254860401,
-0.012918604537844658,
0.023427998647093773,
-0.003370254300534725,
0.03566708788275719,
-0.0399993360042572,
0.023436760529875755,
-0.009499901905655861,
0.00004170835018157959,
0.04346824809908867,
-0.032753974199295044,
-0.014137901365756989,
-0.005465185735374689,
-0.3566647171974182,
0.00825862493366003,
-0.013524249196052551,
0.025406181812286377,
-0.04331501945853233,
-0.0604093037545681,
0.023381734266877174,
-0.006324434652924538,
0.02315959334373474,
0.09552520513534546,
0.10297439247369766,
-0.007274542935192585,
0.03152688592672348,
-0.028763681650161743,
-0.013982478529214859,
0.03707406297326088,
-0.059327658265829086,
-0.0004562248650472611,
0.007415258791297674,
0.04359877109527588,
0.0006134738796390593,
-0.0378287136554718,
-0.02144046500325203,
-0.051282186061143875,
-0.0050546880811452866,
-0.036349713802337646,
0.13728763163089752,
0.07131049782037735,
-0.01084719318896532,
-0.056995827704668045,
0.05524758994579315,
0.027019206434488297,
-0.033195409923791885,
-0.08996396511793137,
-0.0058984882198274136,
-0.0058682868257164955,
0.03001578152179718,
0.013868898153305054,
0.019670119509100914,
-0.026583272963762283,
-0.09297400712966919,
0.036924365907907486,
-0.017309797927737236,
-0.07862886786460876,
-0.009929259307682514,
0.0054297479800879955,
-0.0057422746904194355,
-0.03652716055512428,
-0.022812530398368835,
0.07287520915269852,
0.029719699174165726,
-0.021567635238170624,
0.03540363162755966,
0.03526033088564873,
0.007091187871992588,
0.0012062406167387962,
-0.026721615344285965,
-0.022809481248259544,
-0.024107491597533226,
-0.008679887279868126,
0.017183372750878334,
0.045684486627578735,
0.03555431216955185,
-0.04379799962043762,
0.015302949585020542,
0.00856288243085146,
-0.014957130886614323,
0.005358630325645208,
0.04155302792787552,
-0.03749799355864525,
-0.04665364697575569,
0.05150127410888672,
0.01771634630858898,
0.02715863659977913,
0.012656777165830135,
-0.0094200000166893,
-0.05283605679869652,
-0.036314357072114944,
0.049298468977212906,
0.020429695025086403,
0.02690156176686287,
0.004298000130802393,
0.04484391584992409,
-0.025061482563614845,
-0.006374322809278965,
0.07691312581300735,
0.010938799940049648,
0.003156724153086543,
0.06991096585988998,
0.003252216149121523,
-0.00045763797243125737,
-0.016387417912483215,
-0.03366079553961754,
-0.03128267452120781,
0.024634120985865593,
-0.006333830766379833,
-0.27637094259262085,
0.03500742092728615,
0.04994631186127663,
0.043390922248363495,
0.020007457584142685,
0.03127553313970566,
0.009455342777073383,
-0.02568136528134346,
-0.02094428800046444,
0.007665880955755711,
0.015976618975400925,
0.006651252508163452,
-0.01862378790974617,
-0.045026227831840515,
0.04438195377588272,
0.04154720902442932,
-0.004689691588282585,
0.013543038628995419,
-0.022591276094317436,
0.005908437538892031,
0.015046115964651108,
0.011106232181191444,
0.15601077675819397,
0.03201001137495041,
0.002000421518459916,
0.0488739013671875,
-0.011219203472137451,
-0.001092278864234686,
0.07011020928621292,
-0.013814960606396198,
-0.037259791046381,
-0.06014508754014969,
0.028893863782286644,
0.018320532515645027,
0.029621616005897522,
-0.06360827386379242,
-0.006946399342268705,
0.00038105403655208647,
0.01658911630511284,
-0.031564049422740936,
-0.017788389697670937,
0.03504084050655365,
-0.036239802837371826,
0.028240829706192017,
0.03796103596687317,
0.014673199504613876,
0.025883430615067482,
-0.031529225409030914,
-0.024284737184643745,
0.003990110009908676,
-0.016624869778752327,
-0.08435238897800446,
-0.013444451615214348,
-0.0015828735195100307,
0.02166159451007843,
0.08391556888818741,
0.019805822521448135,
-0.027668949216604233,
0.03148919343948364,
0.053825169801712036,
-0.018231581896543503,
-0.030410878360271454,
0.08018364012241364,
-0.032878004014492035,
0.0038799408357590437
] | [
-0.007001140154898167,
0.04245240241289139,
-0.007565603591501713,
0.030482769012451172,
0.004830163903534412,
0.011460632085800171,
-0.007895685732364655,
-0.02758730761706829,
0.01597978174686432,
-0.03975766897201538,
-0.03886888921260834,
-0.008746295236051083,
0.009701551869511604,
-0.021303832530975342,
0.033402107656002045,
-0.0223083458840847,
-0.026627210900187492,
-0.003355942666530609,
0.03907133638858795,
-0.007114381529390812,
-0.04348301887512207,
0.019177550449967384,
-0.019609343260526657,
-0.03618994727730751,
-0.02974518947303295,
0.023277929052710533,
-0.02074410393834114,
0.044751960784196854,
0.02373690903186798,
-0.07643308490514755,
-0.028690161183476448,
-0.029728403314948082,
-0.014759470708668232,
-0.035531122237443924,
0.027053294703364372,
0.019690003246068954,
-0.014915642328560352,
-0.012472027912735939,
0.003923214506357908,
0.012559691444039345,
0.013480491004884243,
-0.02250979281961918,
0.00857536494731903,
-0.02381223253905773,
0.011703003197908401,
-0.005077021662145853,
-0.06354178488254547,
0.004853355698287487,
-0.030677057802677155,
0.010429557412862778,
-0.009098952636122704,
0.00033300224458798766,
0.020851023495197296,
0.009035097435116768,
0.002253776416182518,
0.02193516679108143,
-0.07832993566989899,
0.01479310356080532,
-0.041946668177843094,
-0.032246608287096024,
-0.010178185068070889,
0.005477536469697952,
-0.04548174515366554,
-0.026613077148795128,
0.0007082399679347873,
-0.013596337288618088,
-0.04787953943014145,
0.030454091727733612,
0.01888156682252884,
0.018191030248999596,
-0.019881071522831917,
0.038872648030519485,
-0.0629260465502739,
-0.026280919089913368,
0.012189504690468311,
-0.015863249078392982,
-0.03462598845362663,
-0.029268808662891388,
0.0024231760762631893,
-0.020924197509884834,
-0.05238763242959976,
-0.021988840773701668,
-0.006503180600702763,
0.01593247428536415,
-0.004766000434756279,
-0.03491294011473656,
0.002984779654070735,
0.025744305923581123,
-0.014804059639573097,
-0.0002906604204326868,
-0.05378977209329605,
-0.0023709035012871027,
0.023541873320937157,
0.017069576308131218,
-0.0830053836107254,
0.027093803510069847,
-0.012685740366578102,
0.003086478915065527,
0.01378557551652193,
0.8236942291259766,
0.0013710226630792022,
0.039959635585546494,
-0.003453019307926297,
0.017185326665639877,
-0.002200670540332794,
0.002573810750618577,
-0.010538363829255104,
0.022427011281251907,
0.011303598992526531,
-0.017073875293135643,
0.009352964349091053,
0.01628447137773037,
0.014862488955259323,
0.018601005896925926,
0.010669847950339317,
0.07788772135972977,
0.02182047627866268,
0.016042351722717285,
-0.011041347868740559,
0.022949207574129105,
0.02539980039000511,
-0.014917068183422089,
-0.004994930233806372,
0.011766270734369755,
0.014912337064743042,
-0.18592819571495056,
0.05768120288848877,
-7.308856531428352e-33,
0.06649149954319,
-0.029236823320388794,
0.026140384376049042,
-0.05835096910595894,
0.03752830624580383,
-0.005337992683053017,
-0.030176078900694847,
-0.01739814318716526,
-0.007970928214490414,
-0.02377822995185852,
0.03238745778799057,
0.0009533626725897193,
0.025236357003450394,
-0.05618875473737717,
0.05123644694685936,
-0.012540801428258419,
0.01082846149802208,
0.04088040813803673,
-0.0011287888046354055,
-0.00838184542953968,
-0.008837156929075718,
0.026714228093624115,
0.025411488488316536,
0.04047518968582153,
-0.012752927839756012,
0.06703611463308334,
-0.01650926284492016,
0.031954679638147354,
-0.015577781945466995,
-0.04023611918091774,
-0.02490474469959736,
0.027731215581297874,
-0.009404516778886318,
-0.023976756259799004,
0.025824595242738724,
-0.035447560250759125,
-0.058255720883607864,
0.0005502748535946012,
-0.04247233644127846,
-0.046523317694664,
-0.050458915531635284,
0.006123471539467573,
-0.04896743968129158,
-0.01338534988462925,
-0.045686837285757065,
-0.001586500322446227,
-0.017067043110728264,
0.00247635948471725,
0.016022784635424614,
0.020846305415034294,
0.016566898673772812,
0.005106525029987097,
0.00033850676845759153,
0.01456095278263092,
-0.009139730595052242,
0.020814713090658188,
0.01822083815932274,
0.032773636281490326,
-0.005965725984424353,
0.008915228769183159,
0.01755625382065773,
-0.020722966641187668,
0.013897541910409927,
0.08308175206184387,
-0.010084911249577999,
0.008190884254872799,
0.02935074269771576,
-0.0134066017344594,
0.0076844957657158375,
0.022315561771392822,
-0.026700029149651527,
0.06232738494873047,
-0.01650184392929077,
0.0018054235260933638,
0.023982852697372437,
-0.03815474361181259,
0.03411364182829857,
0.0006392617360688746,
0.021345505490899086,
0.029834916815161705,
0.01863018050789833,
-0.02170766331255436,
-0.016250645741820335,
-0.04386252164840698,
-0.04055401682853699,
0.0056898449547588825,
0.01861008070409298,
-0.000981765566393733,
-0.01766228675842285,
0.020074965432286263,
0.013655511662364006,
0.07055793702602386,
0.007330277003347874,
-0.043117351830005646,
-0.024174639955163002,
7.522090471983545e-33,
0.021526018157601357,
-0.03249545395374298,
0.009987765923142433,
-0.0009119579335674644,
0.028031300753355026,
-0.034063804894685745,
0.03802746161818504,
0.011663309298455715,
0.001761565450578928,
0.07271923124790192,
-0.037705231457948685,
0.02483714371919632,
-0.0006188807892613113,
-0.002037779428064823,
0.06753453612327576,
-0.007897134870290756,
0.02820195071399212,
-0.008998035453259945,
0.055639203637838364,
0.017329378053545952,
0.001902859192341566,
-0.007291531655937433,
0.014172101393342018,
0.004628278780728579,
0.01769157126545906,
0.025821005925536156,
-0.003242351347580552,
-0.01032168697565794,
-0.008799280039966106,
-0.026399197056889534,
0.0032601479906588793,
-0.01417482178658247,
-0.015848767012357712,
-0.013700058683753014,
0.021404985338449478,
0.03538285940885544,
-0.006034927908331156,
0.013414779677987099,
0.004193267785012722,
-0.019438302144408226,
0.030185256153345108,
0.0018568877130746841,
-0.03884252533316612,
0.03556489199399948,
0.028409142047166824,
-0.007004015147686005,
-0.009753484278917313,
0.026661355048418045,
-0.021585825830698013,
0.02028464525938034,
-0.010342641733586788,
0.008598187007009983,
-0.02564593218266964,
0.010021558962762356,
0.021691730245947838,
-0.034613825380802155,
-0.03038886748254299,
0.004789296071976423,
-0.033646780997514725,
0.003866588929668069,
-0.006361840292811394,
0.004801622126251459,
-0.027280962094664574,
0.07419554144144058,
-0.0008575888932682574,
-0.019112922251224518,
-0.0330423004925251,
-0.01932651735842228,
-0.006959876511245966,
0.026012934744358063,
-0.012932083569467068,
-0.007227152585983276,
-0.02263732999563217,
0.0224011093378067,
-0.00849935133010149,
-0.025762274861335754,
-0.024965329095721245,
0.015704859048128128,
0.01748068444430828,
0.01116557139903307,
0.010212546214461327,
0.027428554370999336,
0.023456603288650513,
-0.008802681230008602,
0.01627928391098976,
0.05055724456906319,
-0.017634112387895584,
0.040697306394577026,
0.018422480672597885,
0.024849263951182365,
0.02724125236272812,
-0.04214021936058998,
0.008601576089859009,
0.011683981865644455,
-0.046412259340286255,
-1.2912561686562185e-8,
-0.04746785759925842,
0.015428430400788784,
-0.03280699625611305,
-0.014189171604812145,
0.018303904682397842,
-0.01854722946882248,
0.002235648687928915,
-0.02487601712346077,
0.004676694516092539,
0.023262709379196167,
0.05182178318500519,
-0.015305458568036556,
0.01720309816300869,
0.028583267703652382,
0.029555177316069603,
-0.04066670313477516,
0.012162420898675919,
-0.0358685739338398,
0.00006737961666658521,
0.031217049807310104,
0.027732620015740395,
0.03875129297375679,
-0.007703990675508976,
-0.043867092579603195,
0.010798361152410507,
-0.021215315908193588,
0.010671239346265793,
-0.047363001853227615,
-0.03642671927809715,
-0.04979633912444115,
0.017943665385246277,
-0.034184910356998444,
-0.023269042372703552,
-0.003596336580812931,
-0.01619815267622471,
-0.03329022601246834,
0.008459796197712421,
-0.013292002491652966,
0.009964829310774803,
0.015324091538786888,
-0.000938116223551333,
0.03053942695260048,
-0.005764466244727373,
-0.01589905098080635,
-0.014637460000813007,
0.0296001136302948,
-0.005736244842410088,
0.02452252246439457,
-0.003939031157642603,
-0.02201487496495247,
-0.023964468389749527,
-0.0388442799448967,
0.02188686840236187,
-0.013195833191275597,
0.02736048959195614,
0.03188246116042137,
0.036051757633686066,
0.002808181568980217,
0.0152584845200181,
-0.018373334780335426,
0.011412682943046093,
0.00032711311359889805,
-0.009184193797409534,
-0.024731580168008804
] | jq-filtering-missing-keys | https://markhneedham.com/blog/2015/11/14/jq-filtering-missing-keys |
false | 2015-10-05 22:41:10 | Mac OS X: Installing the PROJ.4 - Cartographic Projections Library | [] | [
"Software Development"
] | I've been following http://scottbarnham.com/blog/2010/08/27/uk-postcodes-to-latitudelongitude/[Scott Barnham's guide to transforming UK postcodes into (lat, long) coordinates] and needed to install the https://github.com/OSGeo/proj.4[PROJ.4 Cartographic Projections library] which I initially struggled with.
The first step is to download a tar.gz version which is linked from the https://github.com/OSGeo/proj.4/wiki[wiki page]:
[source,bash]
----
$ wget http://download.osgeo.org/proj/proj-4.9.1.tar.gz
----
Next we'll unpack the file and then build the binaries:
[source,bash]
----
$ tar -xvf proj-4.9.1.tar.gz
$ cd proj-4.9.1
$ ./configure --prefix ~/projects/land-registry/proj-4.9.1
$ make
$ make install
----
The files we need are in the bin directory\...
[source,bash]
----
$ ls -alh bin/
total 184
drwxr-xr-x 8 markneedham staff 272B 5 Oct 23:07 .
drwxr-xr-x@ 41 markneedham staff 1.4K 5 Oct 20:46 ..
-rwxr-xr-x 1 markneedham staff 20K 5 Oct 23:07 cs2cs
-rwxr-xr-x 1 markneedham staff 16K 5 Oct 23:07 geod
lrwxr-xr-x 1 markneedham staff 4B 5 Oct 23:07 invgeod -> geod
lrwxr-xr-x 1 markneedham staff 4B 5 Oct 23:07 invproj -> proj
-rwxr-xr-x 1 markneedham staff 13K 5 Oct 23:07 nad2bin
-rwxr-xr-x 1 markneedham staff 21K 5 Oct 23:07 proj
----
\...now let's give it a try. We need to feed in OSGB36 grid reference values and then we'll get back WGS84 Lat/Lng values. We can grab some grid reference values from the http://www.ordnancesurvey.co.uk/oswebsite/products/code-point-open/index.html[Ordnance Survey website].
e.g. the Neo4j London office has the post code SE1 0NZ which translates to coordinates 531950,180195. Let's try those out with PROJ.4:
[source,bash]
----
$ ./proj-4.9.1/bin/cs2cs -f '%.7f' +proj=tmerc +lat_0=49 +lon_0=-2 +k=0.9996012717 +x_0=400000 +y_0=-100000 +ellps=airy +towgs84=446.448,-125.157,542.060,0.1502,0.2470,0.8421,-20.4894 +units=m +no_defs +to +proj=latlong +ellps=WGS84 +towgs84=0,0,0 +nodefs
531950 180195
-0.1002020 51.5052917 46.0810195
----
So it's suggested a (lat, long) pairing of (51.5052917, -0.1002020). And if we plug that into https://www.google.co.uk/maps/place/51%C2%B030'19.1%22N+0%C2%B006'00.7%22W/@51.5056056,-0.1011247,17z/data=!4m2!3m1!1s0x0:0x0[Google maps]\...
image::{{<siteurl>}}/uploads/2015/10/2015-10-05_23-29-09.png[2015 10 05 23 29 09,400]
\...it's pretty much spot on! | null | null | [
0.005360456649214029,
-0.011242167092859745,
0.0193905271589756,
0.028548097237944603,
0.08344151079654694,
0.0268236193805933,
0.017661336809396744,
0.04484480991959572,
0.028149239718914032,
-0.030771955847740173,
-0.04720525071024895,
-0.02370423637330532,
-0.05681693181395531,
0.00603604968637228,
-0.025051627308130264,
0.07445720583200455,
0.05941469594836235,
-0.003405385185033083,
-0.01655510440468788,
0.02789410762488842,
0.045897357165813446,
0.06625708937644958,
-0.028764164075255394,
0.007816661149263382,
-0.01196710579097271,
0.01565214805305004,
0.01829105243086815,
0.0023521180264651775,
-0.07727698236703873,
-0.027443798258900642,
0.03318213298916817,
-0.012462946586310863,
0.0039658499881625175,
-0.007337367162108421,
-0.006478613708168268,
-0.005425437819212675,
-0.047482673078775406,
0.010537995956838131,
0.0026605899911373854,
0.007735449355095625,
-0.036603108048439026,
0.04885391518473625,
0.022977109998464584,
0.013479940593242645,
-0.03728368878364563,
0.010467165149748325,
-0.05480701103806496,
0.048302244395017624,
-0.0018030437640845776,
-0.04363691806793213,
-0.03793603181838989,
0.06101028248667717,
-0.02249927818775177,
-0.03771914541721344,
0.004992511589080095,
0.03772736340761185,
-0.0068458556197583675,
-0.075656957924366,
0.03144979476928711,
-0.022833487018942833,
-0.001720460713841021,
0.006678547710180283,
-0.0007340331794694066,
0.04217072203755379,
0.04357520118355751,
-0.043317608535289764,
-0.02908116951584816,
0.05107160285115242,
-0.03506916016340256,
-0.049048058688640594,
-0.0029455183539539576,
0.012847417034208775,
-0.00737305311486125,
-0.005803197156637907,
0.0023643956519663334,
-0.046645425260066986,
0.006981623824685812,
0.06446843594312668,
0.008670316077768803,
0.04801014065742493,
-0.0209308210760355,
-0.017932506278157234,
0.02933563105762005,
0.025880221277475357,
0.009827314876019955,
-0.0162704735994339,
-0.009996757842600346,
-0.01804962009191513,
-0.06407845765352249,
0.07107608765363693,
0.01954011805355549,
-0.053630534559488297,
0.027051925659179688,
0.00869058445096016,
0.027083441615104675,
-0.00938550103455782,
0.0028737953398376703,
0.01733376458287239,
0.01269249152392149,
-0.03077348880469799,
-0.033986885100603104,
0.018523553386330605,
0.03775755316019058,
0.014059288427233696,
-0.05877531319856644,
-0.030460216104984283,
-0.019980767741799355,
-0.028911102563142776,
0.006906560622155666,
-0.0016307522309944034,
-0.01480946782976389,
0.02104516141116619,
0.006062248721718788,
0.007573192939162254,
-0.07184281200170517,
0.05292161926627159,
0.01909971423447132,
-0.06639672815799713,
-0.0018759608501568437,
0.01976706087589264,
0.04682760313153267,
0.032171256840229034,
-0.011718230322003365,
0.07964008301496506,
0.03348826989531517,
0.06217629835009575,
-0.02027277834713459,
0.035561081022024155,
-0.025696612894535065,
-0.062414657324552536,
0.005195950623601675,
0.07149659842252731,
-0.004772423766553402,
-0.010661955922842026,
0.006549716927111149,
0.0025016777217388153,
-0.040155913680791855,
-0.011979845352470875,
0.05706125870347023,
0.029371580109000206,
-0.0128155667334795,
-0.01378624513745308,
0.004081863909959793,
0.0031620552763342857,
0.03912704065442085,
0.054747216403484344,
-0.008061325177550316,
-0.040366362780332565,
-0.04454304277896881,
0.03667327016592026,
0.0091940276324749,
0.02897396869957447,
0.05380939319729805,
-0.03214191645383835,
-0.003550049150362611,
0.10165548324584961,
0.04706920310854912,
0.02640879712998867,
-0.03655213862657547,
-0.010393759235739708,
0.024540314450860023,
0.030125439167022705,
0.018337199464440346,
0.07933513820171356,
-0.01353862788528204,
-0.0468946136534214,
0.02346627227962017,
0.039855219423770905,
0.015506155788898468,
0.012773649767041206,
-0.04275260493159294,
-0.07807428389787674,
0.07402289658784866,
-0.02570771425962448,
-0.008560383692383766,
0.042458705604076385,
0.09884410351514816,
0.05514909327030182,
0.025418603792786598,
0.0027758905198425055,
-0.08617880940437317,
0.046356264501810074,
0.022253721952438354,
0.01608094945549965,
0.020503249019384384,
-0.012828796170651913,
0.0905781164765358,
0.009925734251737595,
0.020023342221975327,
0.044206857681274414,
-0.07850494235754013,
-0.0936514288187027,
-0.02601546421647072,
-0.009512871503829956,
0.03591623157262802,
-0.005713134538382292,
-0.021059568971395493,
0.040375322103500366,
0.022787539288401604,
0.03465115651488304,
-0.019932124763727188,
-0.006428008433431387,
0.053499430418014526,
-0.058953095227479935,
-0.05548400059342384,
0.0339820571243763,
0.021946290507912636,
-0.002647153567522764,
-0.0042417170479893684,
0.0009505162015557289,
-0.027451854199171066,
-0.039186991751194,
0.04909630864858627,
-0.006036491133272648,
0.015346278436481953,
0.015974659472703934,
0.05896038934588432,
-0.049099504947662354,
0.055397458374500275,
-0.04717101901769638,
0.011057160794734955,
0.015359804965555668,
-0.019467130303382874,
-0.015063673257827759,
-0.013412544503808022,
0.1109788566827774,
0.0549231618642807,
-0.006615425925701857,
-0.027633532881736755,
0.012226065620779991,
0.009070772677659988,
-0.043336525559425354,
-0.0018261083168908954,
-0.0002402699028607458,
-0.004170922562479973,
-0.002931182272732258,
-0.01788034848868847,
-0.04398282989859581,
-0.004750124178826809,
-0.04440676048398018,
0.01102250162512064,
0.07854793965816498,
-0.02017756924033165,
0.05620461329817772,
0.0001715006510494277,
-0.0177830308675766,
-0.012666186317801476,
-0.030096406117081642,
-0.07424722611904144,
0.0011697713052853942,
0.009910887107253075,
-0.021617671474814415,
0.031174136325716972,
-0.016719341278076172,
-0.03691234812140465,
-0.03640502691268921,
-0.046209972351789474,
0.020482614636421204,
0.050754252821207047,
0.05032242462038994,
-0.034011416137218475,
0.052271533757448196,
-0.008928701281547546,
0.02802112326025963,
-0.01312354113906622,
-0.03121921233832836,
-0.04684276133775711,
-0.011308293789625168,
-0.0034935197327286005,
0.009114625863730907,
0.03631577640771866,
0.01673753559589386,
0.010121013969182968,
-0.024038726463913918,
0.01385517232120037,
-0.007728109136223793,
0.037752166390419006,
0.016507605090737343,
-0.0006622379878535867,
-0.042857903987169266,
-0.005085375159978867,
0.051720213145017624,
-0.051462121307849884,
-0.009258083999156952,
0.0182430949062109,
-0.06031413376331329,
0.03948080167174339,
-0.07767612487077713,
-0.03198947757482529,
0.00707024522125721,
-0.010303551331162453,
0.03852793201804161,
-0.011400829069316387,
0.010157131589949131,
0.057562150061130524,
0.0053985510021448135,
0.010509590618312359,
-0.005797441583126783,
-0.004537130240350962,
0.02976445108652115,
0.02132394164800644,
0.024862416088581085,
0.037276025861501694,
0.010167050175368786,
-0.017173711210489273,
-0.045977748930454254,
0.023316483944654465,
-0.040304239839315414,
-0.2689196765422821,
0.04682661592960358,
-0.00972180999815464,
-0.058373529464006424,
0.030083972960710526,
-0.0138468686491251,
0.012087211012840271,
-0.06120939925312996,
-0.05498918518424034,
-0.0030818688683211803,
-0.026709698140621185,
-0.04954540356993675,
-0.0017970084445551038,
0.04474158585071564,
0.018640445545315742,
0.023413216695189476,
-0.011122236959636211,
-0.030112789943814278,
0.00940388161689043,
0.050922591239213943,
0.01246387604624033,
-0.07487805932760239,
0.033238112926483154,
0.03720109909772873,
0.02449045516550541,
0.06656546145677567,
-0.0638170838356018,
0.04821745306253433,
-0.05794447660446167,
-0.021530795842409134,
0.031152930110692978,
-0.028854524716734886,
0.01409081369638443,
0.012661225162446499,
-0.032980307936668396,
-0.012403043918311596,
0.005909798201173544,
0.01480783149600029,
-0.003909859340637922,
-0.019246334210038185,
-0.04606917127966881,
0.0017165547469630837,
0.012301919981837273,
-0.010161755606532097,
0.07924118638038635,
-0.03052007220685482,
-0.065994493663311,
-0.008971896022558212,
-0.014924083836376667,
0.058833152055740356,
-0.010925325565040112,
-0.004285520873963833,
-0.025911672040820122,
0.02019653283059597,
-0.04698475822806358,
0.007167074363678694,
-0.01466435194015503,
-0.00699517922475934,
-0.07278952747583389,
-0.014603246003389359,
0.015665533021092415,
-0.039854664355516434,
-0.02462857775390148,
-0.03314850851893425,
0.015724999830126762,
-0.04700416326522827,
-0.0797462984919548,
-0.03345056623220444,
0.04413089528679848,
0.019145946949720383,
-0.043822385370731354,
-0.03626071289181709,
-0.019651595503091812,
-0.08474266529083252,
-0.022384418174624443,
-0.033706799149513245,
-0.05757151544094086,
-0.007017657160758972,
0.0035750975366681814,
0.045653149485588074,
-0.050722386687994,
-0.04493586719036102,
0.03256865590810776,
0.03878108039498329,
-0.007510657887905836,
-0.023455463349819183,
-0.006102374289184809,
0.002623101696372032,
-0.01967249996960163,
-0.008609883487224579,
0.05819501727819443,
-0.04974815249443054,
-0.022050419822335243,
-0.01972402073442936,
-0.013715730048716068,
-0.020157532766461372,
0.012858609668910503,
-0.0075064608827233315,
0.012386533431708813,
0.031943563371896744,
0.002939225872978568,
-0.03194547817111015,
0.028906716033816338,
-0.04787179082632065,
-0.007607732899487019,
-0.0067100622691214085,
-0.028461448848247528,
0.03356335312128067,
0.046311937272548676,
0.018659085035324097,
-0.009621787816286087,
-0.023456716910004616,
0.0330815352499485,
-0.045701488852500916,
-0.06290306150913239,
0.015470949001610279,
0.009149453602731228,
0.007780313491821289,
0.03209039196372032,
-0.02265390381217003,
-0.04208320379257202,
0.012660618871450424,
0.01074095070362091,
-0.02502230927348137,
-0.04738713800907135,
-0.004231785889714956,
-0.027066553011536598,
-0.02268236130475998,
0.03308245539665222,
0.01969175413250923,
-0.013776627369225025,
0.04517986997961998,
0.03794663026928902,
-0.052039604634046555,
-0.0012491404777392745,
-0.022147176787257195,
-0.0328475646674633,
-0.04200630262494087,
0.02278551086783409,
0.0052965073846280575,
-0.034174561500549316,
0.013643930666148663,
0.03298299014568329,
0.03448404371738434,
0.005812552757561207,
0.0007981849485076964,
0.052789460867643356,
0.0019149259896948934,
0.024463210254907608,
0.004018522333353758,
-0.003642940428107977,
-0.028562119230628014,
0.033842526376247406,
-0.02688983827829361,
-0.014053311198949814,
0.0053914799354970455,
0.01669485494494438,
-0.026449397206306458,
-0.008133180439472198,
-0.03231950104236603,
0.033241380006074905,
-0.041839856654405594,
-0.007079764734953642,
0.012819903902709484,
-0.004390985704958439,
0.044487208127975464,
0.0014522876590490341,
0.014661836437880993,
-0.023508204147219658,
0.00735466368496418,
0.04679049924015999,
0.017448728904128075,
-0.015923192724585533,
-0.003474531462416053,
-0.0380275696516037,
0.014993633143603802,
-0.000027772513931267895,
0.036870598793029785,
0.013745302334427834,
0.00025737061514519155,
-0.014477400109171867,
0.009723540395498276,
-0.0029129935428500175,
-0.009828631766140461,
0.021552588790655136,
-0.0051684994250535965,
-0.0536862276494503,
-0.011806243099272251,
-0.004419565666466951,
-0.048812031745910645,
-0.02465525083243847,
0.0136720547452569,
-0.018184348940849304,
0.03216663748025894,
-0.03677525743842125,
-0.09128757566213608,
0.025422023609280586,
0.03283120319247246,
-0.024559490382671356,
0.03423256799578667,
-0.032452311366796494,
-0.02615876868367195,
-0.04297808185219765,
0.02061215601861477,
0.08177567273378372,
-0.041943639516830444,
-0.013462845236063004,
-0.0007025066879577935,
0.015444288961589336,
-0.020264409482479095,
0.007892604917287827,
-0.04774223268032074,
-0.01739812269806862,
0.006499000824987888,
0.016047118231654167,
-0.04154886305332184,
-0.035538773983716965,
-0.02915121614933014,
0.0022736224345862865,
-0.019951455295085907,
0.0004763216129504144,
0.03383360058069229,
-0.010161137208342552,
-0.0014012333704158664,
-0.009844537824392319,
0.024376217275857925,
0.0030588710214942694,
-0.008285460993647575,
0.035492897033691406,
-0.0358857661485672,
0.027968421578407288,
-0.025225548073649406,
0.04806121066212654,
0.032088544219732285,
-0.009620214812457561,
0.03050222061574459,
-0.02656075917184353,
-0.01121289748698473,
-0.019807742908596992,
0.0645238384604454,
0.019548406824469566,
-0.0014272708212956786,
-0.0035118551459163427,
0.009610937908291817,
-0.016291419044137,
0.006038269959390163,
-0.0192244965583086,
-0.009772743098437786,
-0.013811960816383362,
0.04712161049246788,
0.008808725513517857,
0.01128013338893652,
-0.03706255182623863,
-0.02966879867017269,
0.044022999703884125,
-0.04852435737848282,
-0.05843518674373627,
0.006042957305908203,
-0.03522054851055145,
0.024234497919678688,
0.017299402505159378,
0.004754702560603619,
-0.03734113648533821,
0.05767754465341568,
0.03362177684903145,
0.013889293186366558,
0.03088958002626896,
-0.008117295801639557,
0.013278651982545853,
-0.037205275148153305,
-0.04451105371117592,
-0.08222170919179916,
0.043735846877098083,
0.0036687750834971666,
0.013824804686009884,
-0.06177110597491264,
0.049166444689035416,
-0.03946821019053459,
0.03046642616391182,
-0.08036164939403534,
-0.03415379300713539,
0.06072878837585449,
0.007848920300602913,
-0.009832873940467834,
-0.0154502484947443,
-0.04856298863887787,
0.03702379763126373,
0.0376117043197155,
-0.0592598095536232,
-0.010133563540875912,
-0.014463581144809723,
0.043816883116960526,
-0.007782950531691313,
0.03489070013165474,
-0.032954853028059006,
0.006779934745281935,
0.049168795347213745,
0.01739964261651039,
0.01983509585261345,
0.027858728542923927,
-0.03462187573313713,
0.055758263915777206,
0.03340282291173935,
-0.003347411984577775,
-0.024812394753098488,
0.014760195277631283,
0.00013602293620351702,
-0.04280988872051239,
0.04432006925344467,
-0.009729579091072083,
0.006489000748842955,
-0.040468666702508926,
0.05231038108468056,
0.031771160662174225,
-0.04446161165833473,
-0.05616198852658272,
0.04520518332719803,
-0.05220169946551323,
-0.014464483596384525,
-0.01423407718539238,
-0.019208194687962532,
-0.017755528911948204,
0.057341668754816055,
-0.005963304080069065,
0.023490799590945244,
0.06283076852560043,
-0.014164894819259644,
-0.021770397201180458,
0.02825815975666046,
0.07480885088443756,
0.07933302968740463,
0.014330274425446987,
0.013362625613808632,
0.07066323608160019,
-0.007285085506737232,
-0.02253793738782406,
0.013350478373467922,
-0.0312633290886879,
0.002180865965783596,
-0.026741281151771545,
-0.02299775369465351,
0.06981374323368073,
-0.00561336986720562,
0.07832060754299164,
-0.022548627108335495,
0.006379636470228434,
0.000003675120751722716,
0.010563639923930168,
0.036700956523418427,
0.023644689470529556,
0.011541496030986309,
0.0207970030605793,
-0.039923518896102905,
-0.03690448775887489,
0.01942683942615986,
-0.011858579702675343,
-0.010398093611001968,
0.01931702345609665,
-0.02612014301121235,
-0.015019373968243599,
-0.015339684672653675,
0.02936042845249176,
0.05605534464120865,
-0.026238642632961273,
-0.019796593114733696,
0.0034038338344544172,
0.06905897706747055,
-0.007871926762163639,
0.06159329414367676,
-0.003777469042688608,
0.010081705637276173,
0.018498029559850693,
-0.0380360372364521,
-0.02211039699614048,
-0.00293653248809278,
-0.01979909837245941,
0.019960859790444374,
-0.014764560386538506,
0.03344964236021042,
0.006482111290097237,
-0.025118129327893257,
-0.047012001276016235,
-0.03812619298696518,
-0.03527774289250374,
-0.019968055188655853,
-0.06544896960258484,
0.004208321217447519,
-0.018678151071071625,
-0.02980695106089115,
-0.0120280422270298,
-0.028709406033158302,
-0.04580928385257721,
-0.029170740395784378,
-0.029594406485557556,
-0.05171293392777443,
-0.021810051053762436,
0.026260387152433395,
0.012873414903879166,
0.0003189854323863983,
0.02452791854739189,
0.06553064286708832,
0.013848117552697659,
-0.00033368990989401937,
-0.017692094668745995,
0.028767094016075134,
0.0447247214615345,
0.02456069365143776,
0.02201978489756584,
-0.08045598119497299,
0.028480559587478638,
0.03822236880660057,
0.025421015918254852,
-0.06988439708948135,
-0.0048132045194506645,
0.027731342241168022,
-0.011413662694394588,
0.06682061403989792,
0.00015363338752649724,
0.0031671863980591297,
-0.023920349776744843,
-0.0018590253312140703,
-0.012414072640240192,
-0.013625098392367363,
0.03874446451663971,
-0.029799455776810646,
0.07212327420711517,
0.05831848457455635,
-0.009188106283545494,
-0.043473388999700546,
-0.01692088134586811,
0.016201650723814964,
0.030370650812983513,
-0.049879852682352066,
-0.03472030907869339,
-0.04993242770433426,
-0.09960726648569107,
-0.03418203443288803,
0.011554148979485035,
-0.03324992582201958,
-0.03101581335067749,
-0.019626522436738014,
0.010057427920401096,
-0.02738821506500244,
0.042908500880002975,
-0.012838495895266533,
0.0007029772386886179,
-0.021569613367319107,
-0.020168635994195938,
-0.025792257860302925,
0.047968897968530655,
0.01602325215935707,
0.014498871751129627,
0.027145102620124817,
-0.05258610472083092,
0.022528167814016342,
-0.005843277554959059,
0.036909881979227066,
0.05585886538028717,
-0.0013805023627355695,
0.023493239656090736
] | [
-0.060098033398389816,
-0.031689923256635666,
0.000611854309681803,
-0.032038651406764984,
0.06363093852996826,
-0.03480743244290352,
-0.056995753198862076,
-0.00849701464176178,
-0.03529570251703262,
-0.004595463629812002,
-0.019844872877001762,
-0.07376230508089066,
-0.010814671404659748,
-0.0015875325771048665,
0.06319128721952438,
0.009198459796607494,
-0.029913410544395447,
-0.04104671999812126,
0.010679536499083042,
0.03536048159003258,
0.023451920598745346,
-0.0009401347488164902,
-0.026216933503746986,
0.0021452971268445253,
0.008704273961484432,
0.035796936601400375,
0.03333016484975815,
-0.026097949594259262,
-0.01261659525334835,
-0.21267859637737274,
-0.000592402124311775,
-0.010680560022592545,
0.023586122319102287,
-0.04893064871430397,
-0.007102428004145622,
0.018747715279459953,
0.017968475818634033,
0.01318660844117403,
0.015151523984968662,
0.023652054369449615,
0.03492419794201851,
-0.009825184009969234,
-0.05396907404065132,
-0.039743002504110336,
0.07087713479995728,
-0.0035920750815421343,
0.005510198418051004,
-0.01300471555441618,
-0.017196645960211754,
0.005993015132844448,
-0.05162364989519119,
0.022319532930850983,
-0.01084147859364748,
-0.01903984136879444,
-0.012371538206934929,
0.036548689007759094,
0.03077067993581295,
0.08288362622261047,
0.016577424481511116,
0.019344022497534752,
0.002655855379998684,
-0.012078267522156239,
-0.1719927191734314,
0.10255827009677887,
-0.01207741629332304,
0.06409523636102676,
-0.009917598217725754,
-0.028461063280701637,
-0.05122530087828636,
0.06354255974292755,
0.004702922888100147,
-0.011106989346444607,
-0.05082796886563301,
0.04955466836690903,
0.009371859021484852,
-0.006729469168931246,
-0.020008467137813568,
0.050466250628232956,
0.03447599709033966,
-0.03524729982018471,
0.001506374916061759,
0.030857756733894348,
-0.0286933034658432,
-0.014277053065598011,
0.007984175346791744,
-0.02209939993917942,
-0.013979382812976837,
0.06348197162151337,
0.010396622121334076,
0.032517582178115845,
0.031997501850128174,
-0.04846760258078575,
0.01855146512389183,
0.03518856316804886,
-0.09720619022846222,
-0.050999775528907776,
0.028218569234013557,
0.0318555124104023,
-0.001063529634848237,
0.4364444315433502,
-0.045561619102954865,
0.005841684993356466,
0.0507921501994133,
0.06248631328344345,
0.024886440485715866,
-0.03103187121450901,
-0.012041650712490082,
-0.01826358586549759,
0.013791396282613277,
-0.02891038917005062,
-0.007000801619142294,
-0.012188361957669258,
0.05228806659579277,
-0.04498047009110451,
-0.019066084176301956,
-0.01777372509241104,
0.011571656912565231,
0.022668132558465004,
-0.025498807430267334,
0.017430055886507034,
-0.02437872625887394,
0.012615995481610298,
0.017204154282808304,
0.025448594242334366,
-0.006865331437438726,
0.012338625267148018,
0.024883808568120003,
0.047483693808317184,
0.03237130492925644,
0.05707242339849472,
0.03293430432677269,
-0.03751906380057335,
-0.08542490750551224,
0.016450222581624985,
0.0014462326653301716,
0.02957264520227909,
0.05744611471891403,
-0.03095358796417713,
-0.004665527027100325,
0.007681974675506353,
-0.03571542724967003,
-0.0599544532597065,
0.030499231070280075,
0.050430987030267715,
-0.009294554591178894,
0.10036986321210861,
-0.03714695945382118,
-0.026592260226607323,
-0.043640270829200745,
-0.020571062341332436,
-0.0029286176431924105,
0.004427629988640547,
0.01254265010356903,
-0.07453732192516327,
0.0008853786275722086,
0.022769276052713394,
0.07608592510223389,
-0.012649492360651493,
-0.06826384365558624,
-0.012677745893597603,
0.008980530314147472,
-0.0450807586312294,
-0.016333099454641342,
0.03610723465681076,
0.031951144337654114,
-0.11902695149183273,
-0.04036962240934372,
-0.003050037194043398,
0.02038116753101349,
-0.05079127475619316,
0.025578664615750313,
0.03903738409280777,
0.019044561311602592,
-0.0103899035602808,
0.07240486890077591,
-0.014020419679582119,
0.004766354337334633,
0.031009668484330177,
0.035107195377349854,
0.007951664738357067,
-0.03557077422738075,
-0.022616002708673477,
-0.018077079206705093,
-0.023470362648367882,
-0.05529535561800003,
-0.05130584165453911,
-0.05600931867957115,
0.010613618418574333,
-0.022103888913989067,
-0.027743058279156685,
0.0065214186906814575,
-0.03045767731964588,
-0.033615678548812866,
0.027088360860943794,
0.000044157921365695074,
-0.015708787366747856,
-0.043104421347379684,
0.024554157629609108,
0.04821855202317238,
-0.036480654031038284,
0.03441489487886429,
0.028428178280591965,
-0.025423776358366013,
0.017928240820765495,
-0.019038382917642593,
0.05103307589888573,
0.1055428683757782,
-0.038319606333971024,
0.04414943978190422,
0.0711374282836914,
-0.026772242039442062,
-0.008898716419935226,
0.05499263480305672,
0.006057535298168659,
0.02056165039539337,
0.008974501863121986,
-0.027738697826862335,
-0.008400981314480305,
0.010817042551934719,
0.04516387730836868,
-0.043424222618341446,
-0.029179902747273445,
-0.010537629015743732,
-0.36650365591049194,
-0.0192361269146204,
0.017849542200565338,
-0.0017606222536414862,
0.008419502526521683,
-0.07407061010599136,
-0.006551206111907959,
0.00450157281011343,
-0.004705403931438923,
0.028384748846292496,
0.11807890981435776,
-0.06549985706806183,
0.014036704786121845,
-0.043179210275411606,
0.0020071230828762054,
0.05410521849989891,
-0.020269447937607765,
-0.02567305602133274,
0.00026687272475101054,
-0.005682467482984066,
-0.0027592822443693876,
-0.007634906098246574,
-0.09447699040174484,
-0.042906809598207474,
-0.006284853909164667,
-0.008954178541898727,
0.10769226402044296,
-0.020542316138744354,
0.05644508823752403,
-0.050979841500520706,
0.04929351061582565,
-0.031226150691509247,
0.04313477501273155,
-0.07324124127626419,
0.009809345006942749,
-0.02646925300359726,
0.02918197214603424,
0.03795416280627251,
0.02701890841126442,
-0.01958509348332882,
-0.02042708732187748,
0.02873188443481922,
-0.03486080840229988,
-0.024850498884916306,
-0.041382137686014175,
0.028376419097185135,
-0.03537531942129135,
-0.008750032633543015,
0.018464751541614532,
0.05402861908078194,
0.0014068612363189459,
0.03139093890786171,
-0.0068060168996453285,
-0.014674332924187183,
0.00008401858940487728,
-0.02827867865562439,
-0.06961480528116226,
-0.016560779884457588,
-0.0029971683397889137,
0.02154522016644478,
0.017888948321342468,
0.019609743729233742,
0.041122544556856155,
-0.055160410702228546,
-0.016334127634763718,
0.030538633465766907,
-0.03784976154565811,
0.02236921712756157,
0.048222314566373825,
0.015351208858191967,
-0.01934739761054516,
0.06348607689142227,
-0.031271182000637054,
0.008450023829936981,
-0.003236358752474189,
0.025180526077747345,
0.0197227094322443,
0.09008540958166122,
0.03333890065550804,
-0.03239572048187256,
0.019000623375177383,
0.002498968504369259,
0.04687055945396423,
-0.0001684955641394481,
0.017532676458358765,
0.04715701937675476,
-0.0014086569426581264,
-0.013547101989388466,
0.03635380417108536,
0.05118715018033981,
-0.014718616381287575,
-0.00996396690607071,
0.012313985265791416,
-0.06910199671983719,
0.07799084484577179,
-0.012139922007918358,
-0.2516966760158539,
0.02293839491903782,
0.05480741336941719,
0.030904777348041534,
-0.006073892116546631,
0.000024299521101056598,
0.041838910430669785,
-0.04216765984892845,
0.0019670494366437197,
-0.00479227676987648,
-0.007064663805067539,
0.05050467699766159,
0.0019214190542697906,
-0.01873965561389923,
0.012064880691468716,
-0.030747100710868835,
0.02380944788455963,
0.008940467610955238,
0.011359153315424919,
-0.018765784800052643,
-0.0017192561645060778,
-0.019935764372348785,
0.16373425722122192,
0.052017323672771454,
-0.005639892537146807,
0.008670156821608543,
-0.011241085827350616,
0.009387395344674587,
0.03322994336485863,
-0.009641378186643124,
-0.00005477437298395671,
0.017251012846827507,
0.010474498383700848,
0.012339672073721886,
0.00630432553589344,
-0.014220847748219967,
-0.046938929706811905,
0.031581610441207886,
0.01808740571141243,
-0.03949924558401108,
-0.017295248806476593,
0.014562531374394894,
-0.03636331111192703,
0.023400695994496346,
0.06773313134908676,
0.01053143385797739,
-0.002703289035707712,
0.008377342484891415,
-0.04794038459658623,
-0.03239734098315239,
-0.02414032444357872,
-0.038970667868852615,
-0.030082816258072853,
-0.00292563927359879,
0.010295635089278221,
0.07840316742658615,
0.01558666117489338,
-0.04994334653019905,
-0.02086392603814602,
0.044006627053022385,
-0.009533080272376537,
-0.07171571254730225,
0.12082425504922867,
-0.041139110922813416,
-0.0017295829020440578
] | [
0.018514400348067284,
0.03780325874686241,
-0.01518995314836502,
-0.05375281348824501,
0.024232666939496994,
-0.017892692238092422,
-0.016884256154298782,
0.02693019062280655,
-0.03167768567800522,
0.03727130591869354,
0.005338031332939863,
0.025629669427871704,
0.018649838864803314,
-0.018903672695159912,
0.018418265506625175,
-0.025825873017311096,
-0.005357892252504826,
0.018097029998898506,
0.03142143413424492,
-0.007673344109207392,
-0.027906648814678192,
0.0043207029812037945,
0.05620824173092842,
0.03932162746787071,
0.011529597453773022,
0.013558336533606052,
-0.017780398949980736,
0.03611813858151436,
0.006874970626085997,
-0.12305781245231628,
-0.007535605225712061,
-0.0022884842474013567,
-0.010004958137869835,
-0.02571565844118595,
0.008896325714886189,
0.040113359689712524,
0.022003792226314545,
-0.019505057483911514,
-0.009952008724212646,
0.014007225632667542,
0.0400787852704525,
-0.007662837393581867,
-0.007730982732027769,
0.011001506820321083,
-0.016536155715584755,
-0.012539481744170189,
0.007521021645516157,
-0.016412504017353058,
-0.016847966238856316,
0.010409888811409473,
-0.01828574575483799,
-0.014068882912397385,
-0.016221746802330017,
-0.0034873962868005037,
-0.007644854485988617,
-0.026727568358182907,
-0.02156204916536808,
0.00154073815792799,
0.013117920607328415,
-0.018884917721152306,
-0.005290211644023657,
0.022643795236945152,
-0.08681132644414902,
-0.02337098866701126,
0.004835495259612799,
-0.02754218503832817,
-0.01143190823495388,
0.0046859802678227425,
-0.02628159150481224,
0.01728401705622673,
-0.008143274113535881,
0.03205689415335655,
0.0004211213963571936,
0.002963661914691329,
-0.014301209710538387,
0.011919520795345306,
0.02577650547027588,
-0.03444121032953262,
0.0030869857873767614,
-0.03075794316828251,
-0.019826041534543037,
0.025052618235349655,
0.03197648748755455,
0.011481024324893951,
-0.048051558434963226,
-0.03530144318938255,
0.028388243168592453,
0.020904378965497017,
0.02397346869111061,
-0.009885142557322979,
0.030999813228845596,
-0.034112703055143356,
-0.03626897186040878,
0.03275855630636215,
-0.11100085079669952,
-0.05485023185610771,
0.017060844227671623,
-0.009020715020596981,
-0.004482029937207699,
0.8454122543334961,
-0.014301301911473274,
0.03354049474000931,
0.015277167782187462,
-0.0159747451543808,
0.011689519509673119,
0.011341320350766182,
-0.011454549618065357,
0.0038459929637610912,
-0.02535758726298809,
-0.03529216721653938,
0.011837403289973736,
-0.022851014509797096,
-0.007979677058756351,
0.007309212815016508,
0.0017518012318760157,
0.03060758486390114,
-0.007491618394851685,
0.017784886062145233,
0.0031967717222869396,
0.012507569044828415,
0.019088774919509888,
0.01343799103051424,
0.018977615982294083,
0.02852369286119938,
0.005950339138507843,
-0.15050247311592102,
0.017600512132048607,
-6.54450088069776e-33,
0.024376053363084793,
-0.01596265472471714,
0.04311274364590645,
-0.0033642365597188473,
0.009896187111735344,
-0.00025977817131206393,
-0.008390211500227451,
0.02232755720615387,
-0.018939292058348656,
-0.019990932196378708,
-0.0007485873647965491,
-0.005298912525177002,
-0.01716090552508831,
-0.01632343977689743,
0.02480247989296913,
-0.017029831185936928,
0.03851523995399475,
0.04635519161820412,
-0.04315035417675972,
0.03560620918869972,
0.0016289030900225043,
0.013442039489746094,
-0.0037273364141583443,
0.022531108930706978,
0.029095906764268875,
0.02613646537065506,
0.04817066341638565,
0.004866526462137699,
-0.03825759515166283,
-0.04184833541512489,
-0.01953214779496193,
-0.00759240472689271,
-0.017337709665298462,
-0.01596926897764206,
0.025497831404209137,
-0.05282385274767876,
-0.03325136378407478,
-0.0036372027825564146,
0.008079302497208118,
-0.03235119208693504,
-0.025363046675920486,
-0.03603699058294296,
-0.020066438242793083,
-0.012355197221040726,
0.007627389393746853,
-0.0067088245414197445,
0.0022557012271136045,
0.00783129595220089,
0.02193857729434967,
0.01944473758339882,
0.05705145373940468,
0.05224962532520294,
-0.012447151355445385,
0.03621368855237961,
-0.0068902974016964436,
-0.0009159459732472897,
-0.005271929781883955,
0.015392872504889965,
0.016342293471097946,
0.010956279002130032,
0.014529903419315815,
0.011326625011861324,
-0.004352542571723461,
0.02169320173561573,
0.037360839545726776,
-0.03149145469069481,
-0.003883699420839548,
-0.020466284826397896,
0.010568223893642426,
0.013844604603946209,
-0.06354811042547226,
0.00008190425432985649,
0.03450123965740204,
-0.004841705784201622,
0.008328649215400219,
0.0040454259142279625,
-0.026205651462078094,
0.00031130402931012213,
0.0017421316588297486,
0.0088800685480237,
-0.04752274230122566,
0.0014464717824012041,
-0.02019990235567093,
-0.04085387662053108,
-0.016495924443006516,
-0.025840748101472855,
0.02261883020401001,
0.008849145844578743,
-0.03300733491778374,
0.01901581883430481,
0.044598303735256195,
0.018328994512557983,
-0.018039396032691002,
-0.03776250779628754,
-0.028780627995729446,
6.506788083187504e-33,
-0.015231468714773655,
-0.013494768179953098,
-0.0031883453484624624,
-0.012493621557950974,
-0.023070238530635834,
-0.00573431421071291,
0.03496675565838814,
0.014486697502434254,
-0.03451225906610489,
0.025115903466939926,
-0.030383318662643433,
0.0021553898695856333,
-0.013888468965888023,
0.047806065529584885,
0.07783308625221252,
0.00604779040440917,
0.004233177285641432,
-0.005311571527272463,
-0.005164500325918198,
0.0012663026573136449,
0.01498047448694706,
0.023428481072187424,
0.00750708905979991,
0.029681263491511345,
0.03076314926147461,
0.020137041807174683,
0.025181477889418602,
0.025404008105397224,
-0.007769706193357706,
-0.00207255850546062,
-0.010906890965998173,
-0.02264213003218174,
-0.016661738976836205,
-0.017223544418811798,
-0.017156463116407394,
0.026614118367433548,
-0.003963790368288755,
0.035825494676828384,
-0.01095555629581213,
0.008702535182237625,
0.023601800203323364,
-0.009303942322731018,
0.0056231701746582985,
0.004557248670607805,
0.016346029937267303,
-0.021651605144143105,
0.006042415276169777,
0.0042702690698206425,
-0.010480104945600033,
0.049791790544986725,
0.014946560375392437,
0.06979085505008698,
0.0029756485018879175,
-0.027748359367251396,
0.05402962863445282,
-0.04146648570895195,
-0.08891373127698898,
-0.011300950311124325,
-0.020371032878756523,
0.00565033033490181,
-0.029357396066188812,
-0.025279294699430466,
0.05870570242404938,
0.017560407519340515,
-0.01150760892778635,
-0.02168840728700161,
-0.02637133188545704,
-0.037616875022649765,
0.0181539636105299,
0.025175852701067924,
0.014890901744365692,
0.02102477289736271,
-0.04373835027217865,
0.01228003203868866,
0.01263685803860426,
0.015530064702033997,
-0.003497243393212557,
0.021136390045285225,
-0.033273905515670776,
-0.004012100864201784,
0.019606664776802063,
-0.02788245677947998,
0.013781784102320671,
-0.0035244969185441732,
0.010301011614501476,
0.017470333725214005,
-0.02218642458319664,
0.025457629933953285,
0.044383496046066284,
-0.014821966178715229,
0.04690235108137131,
-0.01876632124185562,
0.0003346478333696723,
0.028179476037621498,
-0.0012817453825846314,
-1.2319157249862656e-8,
-0.03725500404834747,
0.01232926920056343,
-0.007966935634613037,
0.034224849194288254,
-0.01743052899837494,
0.0055457125417888165,
0.010178259573876858,
0.0039640492759644985,
-0.018537191674113274,
-0.008662721142172813,
0.04520789906382561,
-0.009794891811907291,
0.014832834713160992,
0.01925213821232319,
0.018067456781864166,
-0.021745599806308746,
0.015157110057771206,
0.007185803260654211,
0.0031294883228838444,
0.02590145543217659,
0.013117893598973751,
0.03290716931223869,
-0.009676007553935051,
0.0030787053983658552,
-0.025054801255464554,
-0.011078588664531708,
0.01690639927983284,
-0.06697161495685577,
-0.004305623937398195,
-0.009996972046792507,
0.03936373069882393,
-0.02336587756872177,
-0.04413609206676483,
0.017788127064704895,
-0.004728608764708042,
-0.05620501935482025,
-0.010261229239404202,
0.05147543549537659,
0.00789729505777359,
0.02318798191845417,
-0.05127473175525665,
-0.01415338646620512,
-0.019643360748887062,
-0.025802427902817726,
-0.03548913076519966,
-0.007690209895372391,
-0.015659939497709274,
0.006871545221656561,
-0.006071558687835932,
-0.030541712418198586,
-0.029583219438791275,
0.012605005875229836,
-0.01135687530040741,
0.0214890968054533,
0.03784358128905296,
0.01378986518830061,
0.022400734946131706,
-0.010976889170706272,
-0.03738468140363693,
-0.009706574492156506,
-0.007316637318581343,
-0.0031133198644965887,
-0.02120755799114704,
-0.013705052435398102
] | mac-os-x-installing-the-proj-4-cartographic-projections-library | https://markhneedham.com/blog/2015/10/05/mac-os-x-installing-the-proj-4-cartographic-projections-library |
false | 2015-10-02 18:42:47 | R: data.table - Finding the maximum row | [
"r-2",
"rstats",
"data-table"
] | [
"R"
] | In my continued playing around with the R https://cran.r-project.org/web/packages/data.table/index.html[data.table] package I wanted to find the maximum row based on one of the columns, grouped by another column, and then return back the whole row.
We'll use the following data table to illustrate:
[source,r]
----
> blogDT = data.table(name = c("Property 1","Property 1","Property 1","Property 2","Property 2","Property 2"),
price = c(10000, 12500, 18000, 245000, 512000, 1000000),
date = c("Day 1", "Day 7", "Day 10", "Day 3", "Day 5", "Day 12"))
> blogDT[, lag.price := c(NA, price[-.N]), by = name]
> blogDT[, diff := price - lag.price]
> blogDT
name price date lag.price diff
1: Property 1 10000 Day 1 NA NA
2: Property 1 12500 Day 7 10000 2500
3: Property 1 18000 Day 10 12500 5500
4: Property 2 245000 Day 3 NA NA
5: Property 2 512000 Day 5 245000 267000
6: Property 2 1000000 Day 12 512000 488000
----
I wanted to find the biggest difference in 'price' and 'lag.price' grouped by the 'name' column.
If we just want to get the max 'diff' grouped by 'name' it's quite easy:
[source,r]
----
> blogDT[!is.na(diff), .(max = max(diff)), keyby = name]
name max
1: Property 1 5500
2: Property 2 488000
----
However now we've lost the information about which 'date' that was on and what the 'price' and 'lag.price' were which is a bit annoying.
If we only want to keep the rows which have the highest 'diff' grouped by 'name', one way to go about this is to add a 'max.diff' column to each row and then filter appropriately. e.g.
[source,r]
----
> maxDT = blogDT[!is.na(diff)][, max := max(diff), by = name]
> maxDT
name price date lag.price diff max
1: Property 1 12500 Day 7 10000 2500 5500
2: Property 1 18000 Day 10 12500 5500 5500
3: Property 2 512000 Day 5 245000 267000 488000
4: Property 2 1000000 Day 12 512000 488000 488000
> maxDT[diff == max]
name price date lag.price diff max
1: Property 1 18000 Day 10 12500 5500 5500
2: Property 2 1000000 Day 12 512000 488000 488000
----
I've only been playing with data.table for a few days so if there's a better way do let me know in the comments. | null | null | [
-0.02842343971133232,
-0.006634914316236973,
-0.004513947293162346,
0.04301072284579277,
0.07234741002321243,
-0.001975179882720113,
0.02583244815468788,
0.00761635834351182,
0.019034959375858307,
0.011018320918083191,
0.006068202666938305,
-0.0028570310678333044,
-0.0502130500972271,
0.03388044983148575,
-0.01661474071443081,
0.08472318202257156,
0.0533536858856678,
-0.015238477848470211,
0.021105166524648666,
-0.019025949761271477,
0.04011423885822296,
0.02405230700969696,
-0.03189005330204964,
0.030196353793144226,
0.035972196608781815,
-0.008009671233594418,
0.002373828087002039,
0.0029395667370408773,
-0.03272547572851181,
0.016985947266221046,
0.03720058128237724,
0.025057101622223854,
0.011496622115373611,
0.021652571856975555,
0.03259623795747757,
-0.0035509285517036915,
0.0004509162390604615,
-0.013258439488708973,
-0.005293428432196379,
-0.01354948803782463,
-0.08108687400817871,
0.014174869284033775,
-0.022153623402118683,
0.03505001962184906,
0.0025351031217724085,
0.019953930750489235,
-0.046821266412734985,
-0.0062157344073057175,
-0.03286966681480408,
0.06002563610672951,
-0.060777682811021805,
0.05730903521180153,
0.0021334190387278795,
-0.025853140279650688,
-0.018999917432665825,
0.061135731637477875,
0.00735708000138402,
-0.05856115370988846,
0.02303222194314003,
-0.05117668956518173,
0.026152802631258965,
0.009350595064461231,
-0.021567292511463165,
0.013335046358406544,
-0.006660116836428642,
-0.005487770773470402,
0.02553865686058998,
0.03040943667292595,
-0.018652724102139473,
0.003269787644967437,
-0.03421890363097191,
-0.023076731711626053,
-0.018756739795207977,
0.007921619340777397,
-0.003789669368416071,
-0.024899376556277275,
-0.03350980579853058,
0.015119506977498531,
0.04196896404027939,
0.0072219097055494785,
-0.03546280413866043,
-0.028101220726966858,
0.015943612903356552,
0.011716818436980247,
-0.005866995081305504,
-0.029558129608631134,
-0.047972891479730606,
-0.037285711616277695,
-0.048787061125040054,
0.05415002629160881,
-0.0050961230881512165,
-0.01881842128932476,
-0.00020653750107157975,
0.044623203575611115,
-0.04550125449895859,
-0.023392094299197197,
-0.005143848247826099,
0.006817220710217953,
-0.017289074137806892,
-0.00007925419049570337,
-0.074107825756073,
-0.037060726433992386,
0.06965058296918869,
0.024004148319363594,
-0.07328435778617859,
0.02672920934855938,
-0.032191481441259384,
0.009174174629151821,
0.010158596560359001,
0.028854191303253174,
-0.039203014224767685,
-0.006184311583638191,
-0.0243424940854311,
0.0032912238966673613,
-0.056846246123313904,
0.054606497287750244,
0.03157854452729225,
0.002327822847291827,
-0.0063285850919783115,
-0.003188880393281579,
0.035821110010147095,
-0.00455450639128685,
-0.017302069813013077,
0.04187308996915817,
0.0003070225066039711,
0.05367249995470047,
0.024946371093392372,
0.029767103493213654,
0.0016507544787600636,
-0.06260164082050323,
-0.0203102920204401,
0.05016683414578438,
-0.021849220618605614,
0.020436333492398262,
-0.0149561557918787,
-0.02561924234032631,
-0.01800781674683094,
-0.005293077323585749,
0.08634376525878906,
0.03916064277291298,
0.03206677362322807,
-0.021628184244036674,
0.012374581769108772,
0.010641148313879967,
0.028828715905547142,
0.005785836838185787,
0.004232082981616259,
-0.06698017567396164,
-0.05294803902506828,
0.009221071377396584,
0.01910843327641487,
0.047369323670864105,
0.04711868241429329,
-0.018991390243172646,
0.034423552453517914,
0.05855974555015564,
0.005208072252571583,
-0.012775789946317673,
-0.02356201596558094,
-0.028050892055034637,
0.03703249990940094,
0.03390350937843323,
0.020156875252723694,
0.057964786887168884,
-0.018477311357855797,
-0.032760851085186005,
0.03503149002790451,
0.06657235324382782,
-0.028857991099357605,
0.010914537124335766,
-0.06212639808654785,
-0.03471478074789047,
0.06317391246557236,
-0.03690168261528015,
0.00755792111158371,
0.05015118420124054,
0.05105755850672722,
0.030934594571590424,
0.026454560458660126,
0.01570843905210495,
-0.07427524030208588,
0.04170919209718704,
0.01602589711546898,
0.00825992226600647,
0.05415515974164009,
-0.016784053295850754,
0.08264491707086563,
0.01082951482385397,
0.03039942868053913,
0.05760039761662483,
-0.06931695342063904,
-0.07020983844995499,
0.012507031671702862,
-0.04961754009127617,
0.030285805463790894,
-0.04611203446984291,
0.004202456213533878,
0.06172062084078789,
0.008548776619136333,
0.0297485813498497,
0.0010604533599689603,
0.025047291070222855,
0.04782869294285774,
-0.03362131118774414,
-0.03492099046707153,
-0.024711327627301216,
0.020958110690116882,
-0.02489989623427391,
0.02182111144065857,
0.0054498095996677876,
-0.017675573006272316,
0.02639087662100792,
-0.0027877059765160084,
-0.027379343286156654,
0.05560055375099182,
0.012875888496637344,
0.05590435117483139,
0.028031297028064728,
0.038164056837558746,
-0.03733609989285469,
0.050499510020017624,
0.01726265251636505,
-0.01226421631872654,
-0.02959604002535343,
-0.014214041642844677,
0.11077962070703506,
0.06249360367655754,
-0.008765256963670254,
-0.034511271864175797,
0.03953128308057785,
-0.022025931626558304,
-0.014336137101054192,
0.03580222278833389,
-0.033603716641664505,
0.007163336966186762,
-0.0034830663353204727,
-0.05099576711654663,
-0.03683048114180565,
0.012610109522938728,
-0.016028044745326042,
0.011163661256432533,
0.06004476174712181,
0.0009612018475309014,
0.041842084378004074,
-0.0008579193381592631,
-0.004809924867004156,
0.028972972184419632,
-0.012594028376042843,
-0.08556906878948212,
0.00982733629643917,
0.028269121423363686,
-0.010572484694421291,
0.02256973460316658,
-0.018541138619184494,
0.014060880057513714,
-0.007044053170830011,
-0.026249518617987633,
0.00865850504487753,
0.06713040173053741,
0.05375296249985695,
-0.012723786756396294,
0.028565866872668266,
0.010099238716065884,
-0.004207810387015343,
0.004054803866893053,
-0.04206462949514389,
-0.03280283510684967,
-0.01661651022732258,
0.0036269400734454393,
0.03421181067824364,
0.012848684564232826,
-0.0233863927423954,
-0.025560827925801277,
-0.009825099259614944,
-0.014254005625844002,
-0.03124023601412773,
0.03513377904891968,
-0.004820900969207287,
0.00342426891438663,
-0.020492032170295715,
0.004815014079213142,
0.05173191800713539,
0.003689971286803484,
-0.02826995588839054,
0.033877186477184296,
-0.0821608379483223,
0.03718723729252815,
-0.046658772975206375,
-0.011952800676226616,
0.036980919539928436,
-0.007331409025937319,
0.028676478192210197,
0.006728493608534336,
-0.006995293777436018,
0.07666435092687607,
-0.00968234334141016,
0.02410261332988739,
0.00735195679590106,
-0.02000441774725914,
0.04589039459824562,
0.028160152956843376,
-0.00470604095607996,
0.06992293894290924,
0.01599827967584133,
0.019457092508673668,
-0.04929041117429733,
-0.021122438833117485,
-0.02394888550043106,
-0.2399226874113083,
0.018360061571002007,
-0.04784367233514786,
-0.03750267252326012,
0.030902281403541565,
-0.07186352461576462,
0.041887614876031876,
-0.034581251442432404,
0.003256335621699691,
-0.014207794331014156,
-0.0000019042344092667918,
-0.0746336281299591,
-0.025035614147782326,
0.05683724954724312,
0.02392899990081787,
0.02591179870069027,
0.017975537106394768,
-0.01117255911231041,
-0.003993811085820198,
0.05011792480945587,
0.04199136048555374,
-0.049448128789663315,
-0.01532898098230362,
0.04677736759185791,
0.004899199586361647,
0.08000436425209045,
-0.06862805783748627,
0.009855074808001518,
-0.061764366924762726,
-0.05644729733467102,
0.030236972495913506,
-0.002688419306650758,
0.004562892485409975,
-0.03112815134227276,
0.024963755160570145,
-0.014634978957474232,
0.03404179587960243,
0.0168642308562994,
0.012407447211444378,
0.012824052013456821,
-0.021939095109701157,
-0.013295049779117107,
0.016170933842658997,
0.016952289268374443,
0.08502385020256042,
0.024430476129055023,
-0.03765034303069115,
0.01458816695958376,
-0.028006168082356453,
0.07376144826412201,
-0.008031437173485756,
0.009997576475143433,
-0.0014115833910182118,
0.03474933281540871,
-0.05013728141784668,
-0.019595636054873466,
-0.01412044744938612,
0.00047990810708142817,
-0.0057796998880803585,
-0.01931428536772728,
0.0027138558216392994,
-0.04374372214078903,
0.02342969924211502,
-0.03975503146648407,
-0.05211642012000084,
-0.07942819595336914,
-0.08223004639148712,
-0.014904333278536797,
0.059974975883960724,
0.04428746923804283,
-0.05035462602972984,
-0.0418362058699131,
-0.0034276361111551523,
-0.10314399003982544,
-0.0012200467754155397,
0.004241336602717638,
0.019259557127952576,
-0.021653784438967705,
-0.0020525723230093718,
0.0558246411383152,
-0.04990832880139351,
-0.04972469434142113,
0.04075486585497856,
-0.00007007305976003408,
0.03547650948166847,
-0.03390657529234886,
-0.010400129482150078,
0.006165322847664356,
-0.04536084085702896,
-0.012853764928877354,
0.06426915526390076,
-0.04681596904993057,
-0.00859405379742384,
-0.018572574481368065,
-0.019640207290649414,
0.04204311594367027,
0.0009279047953896224,
-0.009127477183938026,
0.03822220489382744,
-0.000574371952097863,
0.02353421226143837,
-0.05096634849905968,
0.031055914238095284,
-0.08238668739795685,
-0.03885911777615547,
-0.061547961086034775,
-0.06550604850053787,
0.04013087600469589,
0.00927051529288292,
0.02248549461364746,
0.011888035573065281,
-0.040179040282964706,
0.019540540874004364,
-0.07147081941366196,
-0.006741802673786879,
-0.0041155265644192696,
-0.008007735945284367,
0.046198684722185135,
-0.006280456203967333,
0.004712515044957399,
-0.07920435816049576,
-0.013369975611567497,
-0.01985660195350647,
-0.05992458388209343,
-0.03299930691719055,
-0.005021828226745129,
0.0105803944170475,
-0.025921698659658432,
-0.013267673552036285,
0.00878145918250084,
-0.030006280168890953,
0.007476233411580324,
0.026058070361614227,
-0.02737571857869625,
0.043161287903785706,
-0.01038754265755415,
-0.03359796851873398,
-0.008890739642083645,
-0.01859624870121479,
0.018453000113368034,
-0.016581840813159943,
-0.01589731127023697,
0.005347926169633865,
0.04110414534807205,
0.015364580787718296,
0.026443617418408394,
0.011888130567967892,
0.0382319837808609,
0.013638886623084545,
0.016711946576833725,
-0.03380205109715462,
0.0031940778717398643,
0.008840903639793396,
-0.044423796236515045,
-0.006423807702958584,
-0.012199977412819862,
0.03592308238148689,
0.004518162924796343,
-0.04874378442764282,
-0.06716396659612656,
-0.01052397582679987,
-0.03870667517185211,
-0.023120811209082603,
-0.026455311104655266,
0.01491974014788866,
0.06863522529602051,
-0.006589103024452925,
0.014110544696450233,
0.008045496419072151,
0.0174450371414423,
-0.0034625025000423193,
0.03231370076537132,
-0.03399232029914856,
0.019445352256298065,
-0.012389257550239563,
-0.006206432823091745,
0.06533635407686234,
-0.0017537944950163364,
0.04519151896238327,
-0.021219326183199883,
0.006949768401682377,
-0.007627728395164013,
-0.03004506602883339,
0.011341026052832603,
0.023707831278443336,
0.04431707784533501,
-0.017627596855163574,
0.003411292564123869,
-0.03488781675696373,
-0.04557494446635246,
-0.011205212213099003,
-0.03310435265302658,
-0.03027825430035591,
-0.013544706627726555,
-0.013841948471963406,
-0.049467992037534714,
0.0318836085498333,
0.05047322437167168,
-0.00445517897605896,
0.03830603510141373,
-0.013757970184087753,
-0.008452420122921467,
-0.04788452014327049,
0.06888063997030258,
0.0752895176410675,
-0.040775496512651443,
0.04725337401032448,
0.0123559245839715,
-0.007316526025533676,
0.033180300146341324,
0.007018206641077995,
-0.07738830149173737,
-0.003279623342677951,
0.012298605404794216,
0.027046168223023415,
-0.009418274275958538,
-0.027072681114077568,
-0.06539564579725266,
0.017331426963210106,
-0.009440244175493717,
-0.0030101833399385214,
-0.008130276575684547,
0.019353969022631645,
-0.022699030116200447,
0.002758174203336239,
0.025749415159225464,
-0.013877005316317081,
-0.04699208587408066,
0.06908843666315079,
-0.005920904688537121,
0.004420670680701733,
-0.0023670934606343508,
0.019133469089865685,
0.022261815145611763,
-0.0015865946188569069,
-0.01994999684393406,
-0.054412592202425,
0.019631365314126015,
-0.03585025295615196,
0.04424748197197914,
-0.012670906260609627,
-0.008717354387044907,
-0.010740844532847404,
0.004956136457622051,
-0.012111014686524868,
-0.018614282831549644,
-0.011647587642073631,
-0.010124251246452332,
0.05211559683084488,
0.04028701409697533,
-0.0008112554787658155,
-0.0257728174328804,
-0.014910687692463398,
-0.01738448441028595,
0.06431276351213455,
-0.022201675921678543,
-0.03863437846302986,
-0.026014426723122597,
-0.051279544830322266,
0.052573978900909424,
-0.011483872309327126,
-0.002780904760584235,
-0.035076066851615906,
0.06567689031362534,
0.037307996302843094,
0.049518000334501266,
0.05022983253002167,
-0.008802236057817936,
0.02856103889644146,
-0.002302776323631406,
-0.001739913015626371,
-0.08510332554578781,
-0.0202260110527277,
0.010222537443041801,
-0.01492951437830925,
-0.029397524893283844,
-0.00018319587979931384,
-0.03033285029232502,
0.029025349766016006,
-0.07011688500642776,
-0.04723489657044411,
0.02604355476796627,
0.014784916304051876,
-0.01006154716014862,
0.019949031993746758,
-0.035009633749723434,
0.0063240244053304195,
0.028873825445771217,
-0.00867749284952879,
0.010330868884921074,
-0.040540747344493866,
0.03442059084773064,
-0.018993640318512917,
0.015746740624308586,
-0.03863660991191864,
-0.022694159299135208,
0.07687503844499588,
0.03451494500041008,
0.02766449563205242,
0.04858950525522232,
-0.06456538289785385,
0.01689908094704151,
0.03480895608663559,
-0.028488388285040855,
0.007406203541904688,
0.009257701225578785,
0.005433202721178532,
-0.04431750252842903,
0.007329120300710201,
0.053919944912195206,
0.028723787516355515,
-0.07185415178537369,
0.06675752252340317,
0.010926050134003162,
-0.024286292493343353,
-0.0642533078789711,
-0.005927275866270065,
-0.035223785787820816,
-0.010540409944951534,
-0.011440816335380077,
-0.01520127896219492,
-0.023421699181199074,
0.062191154807806015,
-0.030611641705036163,
0.011477966792881489,
0.0677749365568161,
0.011933723464608192,
0.004664355423301458,
0.03890153393149376,
0.07202091813087463,
0.10389165580272675,
0.04765285179018974,
0.0050129760056734085,
0.05403175204992294,
-0.07098855078220367,
-0.05536442995071411,
0.02160518802702427,
-0.07325585931539536,
-0.004991769324988127,
-0.0335480272769928,
0.02121622860431671,
0.05574692413210869,
-0.03155699744820595,
0.06187254562973976,
-0.0165813397616148,
-0.013990242965519428,
0.02376335859298706,
-0.04408906772732735,
0.03472903370857239,
0.06051180139183998,
-0.02517729625105858,
0.02838118188083172,
0.005464556161314249,
-0.024709552526474,
0.022018328309059143,
0.01518812496215105,
-0.0078006936237216,
0.0012906923657283187,
0.007390487473458052,
-0.012893863953649998,
0.040628764778375626,
0.03278542309999466,
0.07121684402227402,
-0.008840905502438545,
-0.03867478668689728,
-0.011144143529236317,
0.059916604310274124,
-0.02956218831241131,
0.0007628515013493598,
-0.0161450132727623,
-0.006138275843113661,
-0.01723882183432579,
-0.028879333287477493,
-0.013193297199904919,
-0.010884218849241734,
-0.027461353689432144,
0.032601140439510345,
-0.043885014951229095,
0.03716428577899933,
0.05266506224870682,
-0.006076396908611059,
-0.02977679669857025,
-0.05458468571305275,
-0.0413702093064785,
-0.04327753186225891,
-0.08427160978317261,
-0.025845877826213837,
0.03179159760475159,
0.005168801173567772,
-0.02608347125351429,
-0.003167104907333851,
-0.007695398293435574,
-0.030423710122704506,
0.0008900515967980027,
-0.04593520984053612,
-0.04548528045415878,
0.04007277265191078,
0.005711324512958527,
0.01967061683535576,
0.04538387432694435,
0.0179879330098629,
0.006161798723042011,
-0.012661423534154892,
-0.016845179721713066,
0.010058477520942688,
0.0411873459815979,
-0.002571352291852236,
-0.023775743320584297,
-0.05769897252321243,
0.01726510003209114,
-0.00029812517459504306,
-0.03095800057053566,
-0.053585171699523926,
0.011704483069479465,
0.01219960954040289,
0.0006974744610488415,
0.032147087156772614,
-0.013343065045773983,
0.03384517505764961,
-0.0031336864922195673,
-0.03418193757534027,
-0.005508770234882832,
0.02320306934416294,
0.014833040535449982,
-0.04251696169376373,
0.04859580099582672,
0.05480217561125755,
0.008237212896347046,
-0.05636480078101158,
-0.03386247158050537,
-0.018825093284249306,
-0.01342181209474802,
-0.05014844238758087,
-0.024536633864045143,
-0.06398031860589981,
-0.09571219980716705,
-0.047845128923654556,
0.024394644424319267,
-0.06290438771247864,
-0.023894891142845154,
0.008355208672583103,
0.03218506649136543,
-0.059094127267599106,
0.03656373172998428,
-0.0446743406355381,
0.023580683395266533,
-0.028757911175489426,
-0.010786234401166439,
0.011841394007205963,
0.025137662887573242,
-0.028642499819397926,
-0.0133776580914855,
0.007909529842436314,
-0.027157621458172798,
-0.02687246911227703,
-0.028156651183962822,
0.017486516386270523,
0.022336680442094803,
-0.0021701063960790634,
-0.0031945211812853813
] | [
-0.05745251849293709,
-0.052100956439971924,
-0.026236483827233315,
-0.0014168636407703161,
0.08712483942508698,
-0.020637406036257744,
-0.015442905947566032,
0.02534366212785244,
0.03952908515930176,
0.02088760770857334,
0.08756113797426224,
-0.015585205517709255,
0.014996612444519997,
0.01879519410431385,
0.04426876828074455,
-0.022391917183995247,
-0.018498623743653297,
-0.04592468589544296,
-0.035514410585165024,
0.028051229193806648,
-0.023785576224327087,
-0.049791596829891205,
-0.05378256365656853,
-0.09620390832424164,
0.0822610855102539,
0.014247185550630093,
-0.0072841886430978775,
-0.04924677312374115,
-0.029553275555372238,
-0.25355038046836853,
0.012375344522297382,
0.030000241473317146,
0.020360857248306274,
-0.025189362466335297,
0.04339585825800896,
0.015059316530823708,
-0.014620578847825527,
-0.021395999938249588,
0.03720228374004364,
0.022136759012937546,
-0.011816001497209072,
0.015945322811603546,
-0.06033775955438614,
-0.0029670128133147955,
0.011531323194503784,
0.009600120596587658,
-0.04639945551753044,
-0.008659729734063148,
0.030197706073522568,
0.04709523916244507,
-0.06675543636083603,
0.003963334020227194,
-0.009936317801475525,
-0.008771734312176704,
0.028918374329805374,
0.044832419604063034,
0.012898294255137444,
0.022295838221907616,
0.019558744505047798,
0.001674491330049932,
0.03631415218114853,
0.013821402564644814,
-0.17472125589847565,
0.08876986056566238,
0.006727732717990875,
0.015236741863191128,
-0.02645726315677166,
-0.01046995259821415,
-0.021279290318489075,
0.08571961522102356,
0.010647634975612164,
-0.015676438808441162,
-0.005157251842319965,
0.06475742161273956,
0.02231745421886444,
-0.024908747524023056,
-0.05439605563879013,
0.0026266362983733416,
0.04728711396455765,
-0.04155164584517479,
-0.018859323114156723,
0.024791531264781952,
-0.0278930701315403,
-0.059154629707336426,
0.007050944957882166,
0.005616019945591688,
0.008350242860615253,
0.01440106425434351,
0.005538351368159056,
0.010114560835063457,
0.03902260959148407,
0.020507074892520905,
0.02421913668513298,
0.005554297938942909,
-0.10262731462717056,
0.003621121169999242,
0.03400911018252373,
0.02332085743546486,
-0.009121835231781006,
0.3881044089794159,
-0.00012798023817595094,
-0.028148798272013664,
-0.013209592550992966,
0.0757473036646843,
-0.03415503352880478,
-0.01840815134346485,
-0.0017085012514144182,
-0.008647511713206768,
0.02633051760494709,
-0.02353629283607006,
-0.021978069096803665,
-0.022697770968079567,
0.04610409215092659,
-0.08505967259407043,
0.006673377938568592,
-0.021521860733628273,
0.029853403568267822,
0.0055309683084487915,
0.015443150885403156,
0.0013646365841850638,
0.0029255265835672617,
-0.020656902343034744,
0.0439276359975338,
-0.008840353228151798,
0.012349747121334076,
0.019918829202651978,
0.04212074726819992,
0.09625036269426346,
0.04068724066019058,
0.01847919449210167,
0.054991304874420166,
-0.024807395413517952,
-0.09056755900382996,
0.003986319061368704,
0.006832425016909838,
0.01858970895409584,
0.045440807938575745,
-0.018412474542856216,
-0.003678079228848219,
0.003917128778994083,
-0.056594643741846085,
-0.04298791289329529,
0.04337858408689499,
-0.02364169806241989,
-0.06421897560358047,
0.11204005777835846,
-0.006513452157378197,
-0.034914031624794006,
-0.04455471783876419,
-0.06116935610771179,
-0.0008206857601180673,
0.02127298153936863,
0.03038301132619381,
-0.08077193051576614,
-0.05043512582778931,
0.045535460114479065,
0.08761855959892273,
-0.056095853447914124,
-0.06751688569784164,
-0.05726804956793785,
-0.03462419658899307,
-0.01764794997870922,
-0.03975232318043709,
0.05740116909146309,
0.036299046128988266,
-0.10650808364152908,
-0.03341798484325409,
0.03581064194440842,
-0.010478807613253593,
-0.030536413192749023,
0.014530382119119167,
0.0182181503623724,
-0.06283020228147507,
0.020124973729252815,
0.07884468883275986,
0.008745006285607815,
-0.021847976371645927,
-0.015711797401309013,
0.060013800859451294,
0.023607010021805763,
-0.010036289691925049,
0.014193275012075901,
-0.051708050072193146,
0.013931346125900745,
-0.02284218929708004,
-0.03869811072945595,
-0.04680701345205307,
0.02395598031580448,
-0.028306636959314346,
-0.0047583491541445255,
-0.010563639923930168,
-0.03279247507452965,
-0.03808398172259331,
0.0656251385807991,
-0.06462594866752625,
-0.027733515948057175,
0.05885050818324089,
0.02959308587014675,
0.010701430961489677,
-0.03278379887342453,
-0.004454202018678188,
-0.02340368553996086,
-0.024316906929016113,
0.02963442914187908,
-0.0360516756772995,
0.030888453125953674,
0.06254693865776062,
-0.05178948491811752,
0.060972910374403,
0.03618859499692917,
0.006293188780546188,
0.013099213130772114,
0.0015197121538221836,
-0.039831943809986115,
-0.0073391287587583065,
0.024554328992962837,
-0.006457569543272257,
-0.009396469220519066,
-0.006212854757905006,
0.0564306303858757,
0.03175831586122513,
-0.06324096769094467,
0.00017487323202658445,
-0.35500967502593994,
-0.011390645988285542,
-0.0019819210283458233,
-0.023478908464312553,
0.03697005659341812,
-0.04274475574493408,
0.02155318483710289,
0.0010298502165824175,
-0.027551472187042236,
0.06820328533649445,
0.05894804000854492,
0.0006283546681515872,
-0.011553768068552017,
-0.09341447800397873,
0.0048241945914924145,
0.0032495546620339155,
-0.0326162688434124,
-0.0006529161473736167,
-0.032617174088954926,
0.006934083066880703,
0.004744948353618383,
-0.01714375801384449,
-0.02625505067408085,
-0.04220524802803993,
0.05099119246006012,
-0.0010465664090588689,
0.12315821647644043,
-0.032963670790195465,
0.03385248780250549,
-0.039490390568971634,
0.041526444256305695,
-0.022526919841766357,
-0.008985528722405434,
-0.005998607259243727,
-0.00034186014090664685,
-0.02780383639037609,
-0.008156934753060341,
0.02993466891348362,
-0.024738172069191933,
-0.05139781907200813,
-0.021662339568138123,
0.023417988792061806,
-0.03746093437075615,
-0.038260892033576965,
-0.03108784556388855,
0.01845477893948555,
0.019644062966108322,
0.010729057714343071,
-0.027362775057554245,
0.0866999477148056,
0.02631940133869648,
-0.016809727996587753,
0.050435781478881836,
0.032197315245866776,
0.06175195053219795,
-0.012186400592327118,
-0.04395531117916107,
-0.001699731219559908,
-0.024541914463043213,
-0.04635165259242058,
0.029910311102867126,
-0.000009179976586892735,
0.04101978987455368,
-0.05725846812129021,
-0.013632921501994133,
-0.012563361786305904,
0.02642708644270897,
0.00654778815805912,
-0.0024955212138593197,
0.016070013865828514,
-0.02711210958659649,
0.09552528709173203,
-0.01587536931037903,
0.05316481366753578,
0.037817273288965225,
0.040173545479774475,
-0.01471470482647419,
0.0073470561765134335,
-0.020695194602012634,
0.021825212985277176,
0.015881048515439034,
-0.028226573020219803,
0.04793328046798706,
-0.007317880168557167,
0.034973278641700745,
0.01294707227498293,
0.006309143733233213,
-0.018010271713137627,
0.038587428629398346,
0.022731533274054527,
-0.015448029153048992,
-0.05695514380931854,
-0.0168954748660326,
-0.044556912034749985,
0.051243919879198074,
-0.010630178265273571,
-0.2544136941432953,
0.013080650009214878,
0.029980244114995003,
0.036634769290685654,
-0.01777533069252968,
0.031440380960702896,
-0.010026129893958569,
-0.017488153651356697,
-0.04024890065193176,
-0.008342762477695942,
0.0029065744020044804,
0.09943368285894394,
0.032919835299253464,
-0.018716251477599144,
0.0008337339386343956,
-0.017888106405735016,
0.05038539320230484,
-0.005279642064124346,
0.023295274004340172,
0.049034010618925095,
0.03794771060347557,
-0.01643436960875988,
0.14189541339874268,
0.012021525762975216,
0.0012060909066349268,
0.004299783147871494,
-0.02985440380871296,
-0.008940537460148335,
0.06912953406572342,
-0.01457278523594141,
-0.00891178660094738,
0.01706361211836338,
0.023044656962156296,
0.010560303926467896,
0.04558144137263298,
0.03230598196387291,
-0.026011362671852112,
0.06379251927137375,
0.034393925219774246,
-0.023206448182463646,
-0.015740035101771355,
0.016516022384166718,
-0.03243538737297058,
0.04996776953339577,
0.086379773914814,
-0.01848350092768669,
0.0013039895566180348,
-0.06871890276670456,
-0.019695118069648743,
-0.027339767664670944,
-0.03280320763587952,
0.015239594504237175,
-0.037570517510175705,
0.013705220073461533,
0.011229925788939,
0.01391682494431734,
0.022576631978154182,
-0.02493244782090187,
0.06056585907936096,
-0.01577637530863285,
-0.02027730643749237,
-0.028460610657930374,
0.09493973851203918,
-0.024676065891981125,
0.033388685435056686
] | [
-0.006442205049097538,
0.028004605323076248,
-0.0017534910002723336,
0.030219167470932007,
0.004545883275568485,
-0.03825955465435982,
0.008054062724113464,
-0.011989811435341835,
-0.0346459224820137,
0.02926924265921116,
-0.013845479115843773,
0.013198125176131725,
0.005036605522036552,
-0.04962152615189552,
0.015794964507222176,
-0.016155967488884926,
-0.011598827317357063,
0.025330692529678345,
0.020167037844657898,
-0.012684467248618603,
-0.023710040375590324,
0.013632476329803467,
0.0017538823885843158,
0.0044477880001068115,
-0.011077207513153553,
0.07631009817123413,
-0.04384729266166687,
0.025310924276709557,
0.029063893482089043,
-0.1143903061747551,
-0.07345005124807358,
-0.02913154475390911,
-0.01117835845798254,
0.044329989701509476,
-0.07108962535858154,
-0.02703082747757435,
-0.027254212647676468,
0.011547405272722244,
0.05348209664225578,
0.009478616528213024,
-0.035866811871528625,
0.0071857082657516,
0.011951584368944168,
-0.013282298110425472,
-0.008421567268669605,
-0.03120793029665947,
-0.021013110876083374,
-0.01864676922559738,
-0.03067358396947384,
0.008822925388813019,
-0.029588958248496056,
0.03696770593523979,
-0.010057325474917889,
-0.006570056080818176,
0.03991501033306122,
-0.005841190926730633,
-0.035487156361341476,
-0.02140689268708229,
0.010131698101758957,
-0.04261855408549309,
0.011137670837342739,
0.003826400963589549,
-0.032854706048965454,
-0.01690671406686306,
0.013856896199285984,
-0.03503118082880974,
-0.04175689443945885,
0.010690595023334026,
0.007014648523181677,
0.007837269455194473,
0.0002437068469589576,
0.01209216844290495,
-0.009410997852683067,
-0.04591561481356621,
-0.012724390253424644,
0.027082685381174088,
0.03745424747467041,
-0.019707772880792618,
0.015296312980353832,
-0.010770726017653942,
-0.02052149921655655,
0.030757317319512367,
-0.008936012163758278,
0.0175493061542511,
-0.026757407933473587,
-0.06587570905685425,
0.035602107644081116,
0.0147931519895792,
0.035050902515649796,
-0.04961983114480972,
0.032115355134010315,
0.013686656951904297,
0.013363232836127281,
0.039359256625175476,
-0.10853695124387741,
-0.00847655814141035,
0.014721238054335117,
-0.0005038828821852803,
0.010516304522752762,
0.7983285188674927,
-0.004540177993476391,
-0.00022833123512100428,
-0.030839508399367332,
0.025484152138233185,
-0.02441180869936943,
-0.045480333268642426,
-0.03999423608183861,
-0.03720744326710701,
0.015054401010274887,
-0.058577485382556915,
-0.030323725193738937,
0.03168172761797905,
-0.008514268323779106,
0.007773382589221001,
-0.012591330334544182,
0.013932733796536922,
0.01958911307156086,
-0.022762663662433624,
0.011315740644931793,
-0.022524435073137283,
0.04485999792814255,
0.01791318506002426,
0.025180034339427948,
-0.0024546536151319742,
0.02347426302731037,
-0.11864830553531647,
0.011492221616208553,
-5.84177639878078e-33,
-0.0028532068245112896,
-0.008424562402069569,
0.025973038747906685,
-0.03042595274746418,
0.034863416105508804,
0.022790564224123955,
-0.001986654009670019,
-0.0015895471442490816,
-0.005886518862098455,
-0.004650009796023369,
-0.0008489124593324959,
0.011803429573774338,
-0.02879747375845909,
-0.03587302938103676,
0.034749165177345276,
-0.01387404091656208,
-0.030908536165952682,
0.02582458406686783,
0.01633523404598236,
0.007706324569880962,
0.060241326689720154,
0.02341439761221409,
0.02497055009007454,
0.04878490790724754,
-0.01648256741464138,
-0.009246211498975754,
0.027205010876059532,
0.0022549256682395935,
0.012828163802623749,
-0.03557170182466507,
0.030444154515862465,
0.02419462986290455,
-0.03257561847567558,
0.034811653196811676,
-0.0007716355030424893,
-0.0566881000995636,
-0.007181784138083458,
0.035335738211870193,
0.0054640620946884155,
0.03053036518394947,
-0.03252212330698967,
-0.017546696588397026,
-0.03655437007546425,
0.002382467035204172,
-0.022107575088739395,
0.02906680852174759,
0.027281181886792183,
0.06938164681196213,
-0.014534925110638142,
0.015250036492943764,
-0.053380630910396576,
-0.030362343415617943,
0.024101639166474342,
0.015616530552506447,
-0.01251112762838602,
-0.010771346278488636,
0.017470823600888252,
-0.03644460067152977,
0.03891199454665184,
0.0029888744466006756,
-0.044410206377506256,
-0.03691122680902481,
0.04205062612891197,
0.008365510031580925,
-0.0360703244805336,
0.04477318003773689,
0.030018400400877,
-0.007149530574679375,
0.04424325376749039,
0.004624728113412857,
0.0007992699393071234,
-0.005861611105501652,
0.018508706241846085,
-0.03780291974544525,
0.07534376531839371,
-0.014518627896904945,
0.01574954204261303,
0.01786445826292038,
0.01385453063994646,
0.030673310160636902,
0.004775635432451963,
0.010973874479532242,
0.009996584616601467,
-0.01022784411907196,
-0.02125946804881096,
-0.04207129403948784,
-0.02688194438815117,
0.01993982493877411,
-0.008149810135364532,
-0.008931106887757778,
-0.0014757242752239108,
0.026453757658600807,
0.0385160855948925,
-0.06386748701334,
0.02900201827287674,
6.726435814794371e-33,
0.03153111785650253,
0.00023488630540668964,
0.0024045808240771294,
0.0015189702389761806,
0.024866875261068344,
-0.07046157121658325,
-0.006774855777621269,
0.03210808336734772,
-0.0022496660239994526,
0.04027795046567917,
0.014050164259970188,
-0.024717090651392937,
-0.010917969979345798,
0.0426771305501461,
0.03260878473520279,
0.01997542381286621,
0.03260813653469086,
-0.038567811250686646,
0.015603136271238327,
0.010088407434523106,
-0.02562166377902031,
-0.004442059900611639,
-0.017521578818559647,
0.05742479860782623,
0.018682844936847687,
0.030228538438677788,
0.0072995685040950775,
-0.01858006790280342,
0.005392798222601414,
-0.017790736630558968,
-0.012569786049425602,
-0.011882533319294453,
-0.015526804141700268,
0.01629042811691761,
-0.06435594707727432,
0.07778499275445938,
0.010827606543898582,
-0.04093383625149727,
-0.015471724793314934,
-0.009479544125497341,
0.02423914149403572,
0.009819949977099895,
0.01970447413623333,
0.021870922297239304,
0.036810606718063354,
-0.01611468754708767,
0.03647202253341675,
0.002874717116355896,
-0.01002321857959032,
0.019685762003064156,
0.0077910288237035275,
0.01721952296793461,
0.019365787506103516,
0.028658142313361168,
0.003043067641556263,
-0.02387474849820137,
-0.005334650631994009,
0.028050079941749573,
-0.04954763501882553,
-0.0013584616826847196,
0.02590569667518139,
0.019790269434452057,
-0.03595234826207161,
0.024118945002555847,
-0.037125006318092346,
-0.028398454189300537,
0.0013433860149234533,
-0.05077395960688591,
0.03444213047623634,
-0.004707278683781624,
-0.017197685316205025,
-0.031137190759181976,
0.014004886150360107,
0.01721569523215294,
0.01316224317997694,
0.01007084921002388,
-0.016693079844117165,
0.005586971994489431,
0.004635746590793133,
0.03205220028758049,
0.016931580379605293,
-0.01694544218480587,
0.045499175786972046,
0.029255082830786705,
-0.027510538697242737,
0.02217702567577362,
-0.06653688848018646,
0.011926451697945595,
0.05001990124583244,
-0.023035071790218353,
-0.01611766405403614,
-0.08556297421455383,
-0.03150898218154907,
0.050758469849824905,
-0.025584939867258072,
-1.2206959887350877e-8,
-0.025061849504709244,
0.009959879331290722,
-0.02308594062924385,
-0.0006327720475383103,
0.0671066865324974,
-0.026153719052672386,
0.02215641736984253,
-0.006997179239988327,
0.02904118224978447,
0.020258625969290733,
0.05951129272580147,
0.010234336368739605,
-0.005121678113937378,
0.014144611544907093,
-0.04432538151741028,
-0.03491069748997688,
0.011062371544539928,
-0.005912501364946365,
0.033574432134628296,
-0.025715680792927742,
0.0035870785359293222,
0.03348800167441368,
-0.03283184766769409,
-0.012597890570759773,
0.07584941387176514,
0.01768905483186245,
0.005019483622163534,
-0.06938881427049637,
-0.004871233366429806,
-0.024883007630705833,
0.023382699117064476,
-0.05485481768846512,
-0.01048933994024992,
0.00854581966996193,
-0.010030113160610199,
-0.04926281049847603,
0.04142862930893898,
0.06657354533672333,
-0.021236836910247803,
0.006230356637388468,
-0.02676350437104702,
-0.01784021034836769,
-0.029909301549196243,
-0.021958697587251663,
-0.050931207835674286,
0.03840775415301323,
-0.08051393926143646,
0.00945227686315775,
0.048288535326719284,
-0.038683176040649414,
0.04376620799303055,
-0.04110914468765259,
0.009714538231492043,
0.015124152414500713,
-0.0004945669206790626,
0.016053317114710808,
-0.0048835924826562405,
0.02307070605456829,
-0.03404439613223076,
-0.028182946145534515,
-0.0214052926748991,
0.016885660588741302,
-0.00444868765771389,
-0.01513752806931734
] | r-data-table-finding-the-maximum-row | https://markhneedham.com/blog/2015/10/02/r-data-table-finding-the-maximum-row |
false | 2015-10-18 10:03:57 | Exploring (potential) data entry errors in the Land Registry data set | [
"data-science-2"
] | [
"Data Science"
] | I've previously written a couple of blog posts describing the mechanics of analysing the https://data.gov.uk/dataset/land-registry-monthly-price-paid-data[Land Registry data set] and I thought it was about time I described some of the queries I've been running the discoveries I've made.
To recap, the land registry provides a 3GB, 20 million line CSV file containing all the property sales in the UK since 1995.
We'll be loading and query the data in R using the https://cran.r-project.org/web/packages/data.table/index.html[data.table] package:
[source,r]
----
> library(data.table)
> dt = fread("pp-complete.csv", header = FALSE)
> dt[1:5]
V1 V2 V3 V4 V5
1: {0C7ADEF5-878D-4066-B785-0000003ED74A} 163000 2003-02-21 00:00 UB5 4PJ T
2: {35F67271-ABD4-40DA-AB09-00000085B9D3} 247500 2005-07-15 00:00 TA19 9DD D
3: {B20B1C74-E8E1-4137-AB3E-0000011DF342} 320000 2010-09-10 00:00 W4 1DZ F
4: {7D6B0915-C56B-4275-AF9B-00000156BCE7} 104000 1997-08-27 00:00 NE61 2BH D
5: {47B60101-B64C-413D-8F60-000002F1692D} 147995 2003-05-02 00:00 PE33 0RU D
V6 V7 V8 V9 V10 V11 V12
1: N F 106 READING ROAD NORTHOLT NORTHOLT
2: N F 58 ADAMS MEADOW ILMINSTER ILMINSTER
3: N L 58 WHELLOCK ROAD LONDON
4: N F 17 WESTGATE MORPETH MORPETH
5: N F 4 MASON GARDENS WEST WINCH KING'S LYNN
V13 V14 V15
1: EALING GREATER LONDON A
2: SOUTH SOMERSET SOMERSET A
3: EALING GREATER LONDON A
4: CASTLE MORPETH NORTHUMBERLAND A
5: KING'S LYNN AND WEST NORFOLK NORFOLK A
----
For our first query we're going to find the most expensive query sold for each year from 1995 - 2015.
The first thing we'll need to do is make column 'V2' (price) numeric and convert column 'V3' (sale date) to data format so we can do date arithmetic on it:
[source,r]
----
> dt = dt[, V2:= as.numeric(V2)]
> dt = dt[, V3:= as.Date(V3)]
----
Now let's write the query:
[source,r]
----
> dt[, .SD[which.max(V2)], by=year(V3)][order(year)][, .(year,V9,V8,V10,V12,V14,V4,V2)]
year V9 V8 V10 V12 V14 V4 V2
1: 1995 THORNETS HOUSE BUILDER GARDENS LEATHERHEAD SURREY KT22 7DE 5610000
2: 1996 24 MAIN ROAD MELTON MOWBRAY LEICESTERSHIRE LE14 3SP 17250000
3: 1997 42 HYDE PARK GATE LONDON GREATER LONDON SW7 5DU 7500000
4: 1998 19 NEW BRIDGE STREET LONDON GREATER LONDON EC4V 6DB 11250000
5: 1999 TERMINAL HOUSE LOWER BELGRAVE STREET LONDON GREATER LONDON SW1W 0NH 32477000
6: 2000 UNIT 3 JUNIPER PARK FENTON WAY BASILDON ESSEX SS15 6RZ 12600000
7: 2001 19 BABMAES STREET LONDON GREATER LONDON SW1Y 6HD 24750000
8: 2002 72 VINCENT SQUARE LONDON GREATER LONDON SW1P 2PA 8300000
9: 2003 81 ADDISON ROAD LONDON GREATER LONDON W14 8ED 9250000
10: 2004 29 HOLLAND VILLAS ROAD LONDON GREATER LONDON W14 8DH 7950000
11: 2005 APARTMENT 1102 199 KNIGHTSBRIDGE LONDON GREATER LONDON SW7 1RH 15193950
12: 2006 1 THORNWOOD GARDENS LONDON GREATER LONDON W8 7EA 12400000
13: 2007 36 CADOGAN PLACE LONDON GREATER LONDON SW1X 9RX 17000000
14: 2008 50 CHESTER SQUARE LONDON GREATER LONDON SW1W 9EA 19750000
15: 2009 CASA SARA HEATHERSIDE DRIVE VIRGINIA WATER SURREY GU25 4JU 13800000
16: 2010 10 HOLLAND VILLAS ROAD LONDON GREATER LONDON W14 8BP 16200000
17: 2011 WHITESTONE HOUSE WHITESTONE LANE LONDON GREATER LONDON NW3 1EA 19250000
18: 2012 20 THE BOLTONS LONDON GREATER LONDON SW10 9SU 54959000
19: 2013 APARTMENT 7F 171 KNIGHTSBRIDGE LONDON GREATER LONDON SW7 1DW 39000000
20: 2014 APARTMENT 6, 5 PRINCES GATE LONDON GREATER LONDON SW7 1QJ 50000000
21: 2015 37 BURNSALL STREET LONDON GREATER LONDON SW3 3SR 27750000
year V9 V8 V10 V12 V14 V4 V2
----
The results mostly make sense - the majority of the highest priced properties are around Hyde Park and often somewhere near Knightsbridge which is one of the most expensive places in the country.
There are some odd odds though. e.g. in 1996 the top priced property is in Leicester and sold for just over £17m. I looked it up on the Land Registry site to quickly see what it was http://houseprices.landregistry.gov.uk/price-paid-record/1943130/24+main+road+asfordby+valley+melton+mowbray+melton+leicestershire+le14+3sp[subsequently sold for]:
image::{{<siteurl>}}/uploads/2015/10/2015-10-17_22-06-03.png[2015 10 17 22 06 03,500]
Based on the subsequent prices I think we can safely assume that the initial price is incorrect and should actually have been £17,250.
We can also say the same about our 2000 winner in Juniper Park in Basildon which sold for £12.6 million. If we look at the http://houseprices.landregistry.gov.uk/sold-prices/juniper%20park%20ss15%206rz[next sale price after that] it's £172,500 in 2003 so most likely it was sold for £126,000 - only 100 times out!
I wanted to follow this observation and see if I could find other anomalies by comparing adjacent sale prices of properties.
First we'll create a 'fullAddress' field which we'll use as an identifier for each property. It's not completely unique but it's not far away:
[source,r]
----
> dt = dt[, fullAddress := paste(dt$V8, dt$V9, dt$V10, dt$V11, dt$V12, dt$V13, dt$V4, sep=", ")]
> setkey(dt, fullAddress)
> dt[, .(fullAddress, V2)][1:5]
fullAddress V2
1: ''NUTSHELL COTTAGE, 72, , KIRKLAND, KENDAL, KENDAL, SOUTH LAKELAND, LA9 5AP 89000
2: 'FARRIERS', , FARRIERS CLOSE, WOODLEY, READING, WOKINGHAM, RG5 3DD 790000
3: 'HOLMCROFT', 40, , BRIDGNORTH ROAD, WOMBOURNE, WOLVERHAMPTON, SOUTH STAFFORDSHIRE, WV5 0AA 305000
4: (AKERS), , CHAPEL STREET, EASINGWOLD, YORK, HAMBLETON, YO61 3AE 118000
5: (ANNINGS), , , FARWAY, COLYTON, EAST DEVON, EX24 6DF 150000
----
Next we'll add a column to the data table which contains the previous sale price and another column which calculate the difference between the two prices:
[source,R]
----
> dt[, lag.V2:=c(NA, V2[-.N]), by = fullAddress]
> dt[, V2.diff := V2 - lag.V2]
> dt[!is.na(lag.V2),][1:10][, .(fullAddress, lag.V2, V2, V2.diff)]
fullAddress lag.V2 V2 V2.diff
1: (ANNINGS), , , FARWAY, COLYTON, EAST DEVON, EX24 6DF 150000 385000 235000
2: (BARBER), , PEACOCK CORNER, MOULTON ST MARY, NORWICH, BROADLAND, NR13 3NF 115500 136000 20500
3: (BELL), , BAWBURGH ROAD, MARLINGFORD, NORWICH, SOUTH NORFOLK, NR9 5AG 128000 300000 172000
4: (BEVERLEY), , DAWNS LANE, ASLOCKTON, NOTTINGHAM, RUSHCLIFFE, NG13 9AD 95000 210000 115000
5: (BLACKMORE), , GREAT STREET, NORTON SUB HAMDON, STOKE-SUB-HAMDON, SOUTH SOMERSET, TA14 6SJ 53000 118000 65000
6: (BOWDERY), , HIGH STREET, MARKINGTON, HARROGATE, HARROGATE, HG3 3NR 140000 198000 58000
7: (BULLOCK), , MOORLAND ROAD, INDIAN QUEENS, ST. COLUMB, RESTORMEL, TR9 6HN 50000 50000 0
8: (CAWTHRAY), , CAWOOD ROAD, WISTOW, SELBY, SELBY, YO8 3XB 130000 120000 -10000
9: (CAWTHRAY), , CAWOOD ROAD, WISTOW, SELBY, SELBY, YO8 3XB 120000 155000 35000
10: (COATES), , , BARDSEA, ULVERSTON, SOUTH LAKELAND, LA12 9QT 26000 36000 10000
----
Let's find the properties which have the biggest £ value difference in adjacent sales:
[source,r]
----
> dt[!is.na(V2.diff)][order(-abs(V2.diff))][, .(fullAddress, lag.V2, V2, V2.diff)][1:20]
fullAddress lag.V2 V2 V2.diff
1: , 50, CHESTER SQUARE, LONDON, LONDON, CITY OF WESTMINSTER, SW1W 9EA 1135000 19750000 18615000
2: 44, , LANSDOWNE ROAD, , LONDON, KENSINGTON AND CHELSEA, W11 2LU 3675000 22000000 18325000
3: 24, , MAIN ROAD, ASFORDBY VALLEY, MELTON MOWBRAY, MELTON, LE14 3SP 17250000 32500 -17217500
4: 11, , ORMONDE GATE, , LONDON, KENSINGTON AND CHELSEA, SW3 4EU 250000 16000000 15750000
5: 2, , HOLLAND VILLAS ROAD, , LONDON, KENSINGTON AND CHELSEA, W14 8BP 8675000 24000000 15325000
6: 1, , PEMBRIDGE PLACE, , LONDON, KENSINGTON AND CHELSEA, W2 4XB 2340250 17000000 14659750
7: 10, , CHESTER SQUARE, LONDON, LONDON, CITY OF WESTMINSTER, SW1W 9HH 680000 15000000 14320000
8: 12, , SOUTH EATON PLACE, , LONDON, CITY OF WESTMINSTER, SW1W 9JA 4250000 18550000 14300000
9: 32, FLAT 1, HOLLAND PARK, , LONDON, KENSINGTON AND CHELSEA, W11 3TA 420000 14100000 13680000
10: 42, , EGERTON CRESCENT, , LONDON, KENSINGTON AND CHELSEA, SW3 2EB 1125000 14650000 13525000
11: 36, , CADOGAN PLACE, LONDON, LONDON, KENSINGTON AND CHELSEA, SW1X 9RX 3670000 17000000 13330000
12: 22, , ILCHESTER PLACE, , LONDON, KENSINGTON AND CHELSEA, W14 8AA 3350000 16250000 12900000
13: 3, , BOLNEY GATE, , LONDON, CITY OF WESTMINSTER, SW7 1QW 5650000 18250000 12600000
14: JUNIPER PARK, UNIT 3, FENTON WAY, , BASILDON, BASILDON, SS15 6RZ 12600000 172500 -12427500
15: 10, , WALTON PLACE, , LONDON, KENSINGTON AND CHELSEA, SW3 1RJ 356000 12750000 12394000
16: 84, MAISONETTE C, EATON SQUARE, , LONDON, CITY OF WESTMINSTER, SW1W 9AG 1500000 13400000 11900000
17: 3, , CHESTERFIELD HILL, , LONDON, CITY OF WESTMINSTER, W1J 5BJ 955000 12600000 11645000
18: 39, , ENNISMORE GARDENS, LONDON, LONDON, CITY OF WESTMINSTER, SW7 1AG 3650000 15250000 11600000
19: 76, FLAT 2, EATON SQUARE, , LONDON, CITY OF WESTMINSTER, SW1W 9AW 3500000 15000000 11500000
20: 85, , AVENUE ROAD, , LONDON, CAMDEN, NW8 6JD 519000 12000000 11481000
----
Most of the entries here are in Westminster or Hyde Park and don't look particularly dodgy at first glance. We'd have to drill into the sale dates to confirm.
What you might also have noticed is that our Melton Mowbray and Juniper Park properties both show up and although they don't have the biggest £ value difference they would probably rank top if calculated the multiplier instead. Let's give that a try:
[source,r]
----
> dt[, V2.multiplier := ifelse(V2 > lag.V2, V2 / lag.V2, lag.V2 / V2)]
> dt[!is.na(V2.multiplier)][order(-V2.multiplier)][, .(fullAddress, lag.V2, V2, V2.multiplier)][1:20]
fullAddress lag.V2 V2 V2.multiplier
1: 24, , MAIN ROAD, ASFORDBY VALLEY, MELTON MOWBRAY, MELTON, LE14 3SP 17250000 32500 530.76923
2: LEA HAVEN, FLAT 1, CASTLE LANE, , TORQUAY, TORBAY, TQ1 3BE 38000 7537694 198.36037
3: NIGHTINGALE HOUSE, , BURLEIGH ROAD, ASCOT, ASCOT, WINDSOR AND MAIDENHEAD, SL5 7LD 9500 1100000 115.78947
4: JUNIPER PARK, UNIT 3, FENTON WAY, , BASILDON, BASILDON, SS15 6RZ 12600000 172500 73.04348
5: 9, , ROTHSAY GARDENS, BEDFORD, BEDFORD, BEDFORD, MK40 3QA 21000 1490000 70.95238
6: 22, GROUND FLOOR FLAT, SEA VIEW AVENUE, , PLYMOUTH, CITY OF PLYMOUTH, PL4 8RU 27950 1980000 70.84079
7: 91A, , TINTERN AVENUE, WESTCLIFF-ON-SEA, WESTCLIFF-ON-SEA, SOUTHEND-ON-SEA, SS0 9QQ 17000 1190000 70.00000
8: 204C, , SUTTON ROAD, SOUTHEND-ON-SEA, SOUTHEND-ON-SEA, SOUTHEND-ON-SEA, SS2 5ES 18000 1190000 66.11111
9: PRIORY COURT, FLAT 3, PRIORY AVENUE, TOTNES, TOTNES, SOUTH HAMS, TQ9 5HS 2226500 34000 65.48529
10: 59, , ST ANNS ROAD, SOUTHEND-ON-SEA, SOUTHEND-ON-SEA, SOUTHEND-ON-SEA, SS2 5AT 18250 1190000 65.20548
11: 15, , BREWERY LANE, LEIGH, LEIGH, WIGAN, WN7 2RJ 13500 880000 65.18519
12: 11, , ORMONDE GATE, , LONDON, KENSINGTON AND CHELSEA, SW3 4EU 250000 16000000 64.00000
13: WOODEND, , CANNONGATE ROAD, HYTHE, HYTHE, SHEPWAY, CT21 5PX 19261 1200000 62.30206
14: DODLESTON OAKS, , CHURCH ROAD, DODLESTON, CHESTER, CHESTER, CH4 9NG 10000 620000 62.00000
15: CREEKSIDE, , CURLEW DRIVE, WEST CHARLETON, KINGSBRIDGE, SOUTH HAMS, TQ7 2AA 28000 1700000 60.71429
16: 20, , BRANCH ROAD, BURNLEY, BURNLEY, BURNLEY, BB11 3AT 9000 540000 60.00000
17: THE BARN, , LEE WICK LANE, ST OSYTH, CLACTON-ON-SEA, TENDRING, CO16 8ES 10000 600000 60.00000
18: 11, , OAKWOOD GARDENS, KNAPHILL, WOKING, WOKING, GU21 2RX 6000 357000 59.50000
19: 23, , OLDHAM ROAD, GRASSCROFT, OLDHAM, OLDHAM, OL4 4HY 8000 475000 59.37500
20: THE SUNDAY HOUSE, , WATER LANE, GOLANT, FOWEY, RESTORMEL, PL23 1LF 8000 475000 59.37500
----
This is much better! Our Melton Mowbray property comes in first by miles and Juniper Park is there in 4th. The rest of the price increases look implausible as well but let's drill into a couple of them:
[source,r]
----
> dt[fullAddress == "15, , BREWERY LANE, LEIGH, LEIGH, WIGAN, WN7 2RJ"][, .(fullAddress, V3, V2)]
fullAddress V3 V2
1: 15, , BREWERY LANE, LEIGH, LEIGH, WIGAN, WN7 2RJ 1995-06-29 13500
2: 15, , BREWERY LANE, LEIGH, LEIGH, WIGAN, WN7 2RJ 2008-03-28 880000
----
If we look at some other properties on the http://www.rightmove.co.uk/house-prices/WN7/Brewery-Lane.html[same road] and look at the http://www.rightmove.co.uk/house-prices/detailMatching.html?prop=18993944&sale=35286620&country=england[property's features] it seems more likely that's meant to say £88,000.
I noticed a similar trend when looking at some of the others on this list but I also realised that the data needs a bit of cleaning up as the 'fullAddress' column isn't uniquely identifying properties e.g. sometimes a property might have a Town/City of 'London' and a District of 'London' but on another transaction the District could be blank.
On top of that, my strategy of looking for subsequent prices to spot anomalies falls down when trying to explore properties which only have one sale.
So I have a couple of things to look into for now but once I've done those it'd be interesting to write an algorithm/program that could predict which transactions are likely to be anomalies.
I can imagine how that might work if I had a labelled training set but I'm not sure if I could do it with an unsupervised algorithm so if you have any pointers let me know. | null | null | [
0.011379417032003403,
-0.010583216324448586,
0.018426036462187767,
0.022236980497837067,
0.08752226084470749,
0.03286546468734741,
0.014899952337145805,
0.02061343938112259,
0.01423583272844553,
0.008412103168666363,
-0.02915366180241108,
-0.0075616310350596905,
-0.05742141604423523,
0.02091049589216709,
-0.00968049094080925,
0.0809277892112732,
0.05937989428639412,
0.012115095742046833,
0.0376015305519104,
-0.011027754284441471,
0.06193568930029869,
0.07506895810365677,
0.0014265779173001647,
0.04667864367365837,
0.02393968030810356,
-0.008201712742447853,
0.022427009418606758,
0.00875756423920393,
-0.06318935751914978,
-0.0006392026552930474,
0.03767874464392662,
-0.007225289475172758,
-0.003829499240964651,
0.031249558553099632,
0.02807021699845791,
-0.017771676182746887,
-0.029555706307291985,
-0.0030108513310551643,
-0.029870398342609406,
0.005438466090708971,
-0.06519752740859985,
0.02915411815047264,
-0.02767840214073658,
0.028556829318404198,
-0.049180060625076294,
-0.012861698865890503,
-0.028263278305530548,
0.02268286980688572,
0.0026003906968981028,
-0.0013777383137494326,
-0.04843863472342491,
0.04518277943134308,
-0.03628019243478775,
0.002329782349988818,
-0.02117437683045864,
0.05546242371201515,
-0.0017031858442351222,
-0.08927162736654282,
0.03924553841352463,
-0.015617202036082745,
0.010025211609899998,
-0.03123486414551735,
0.016951018944382668,
0.009751468896865845,
0.03356614336371422,
-0.02739042416214943,
-0.023371079936623573,
0.056090954691171646,
-0.024997221305966377,
-0.012988442555069923,
-0.009265507571399212,
0.025446251034736633,
0.01341130118817091,
0.004093321040272713,
0.001414223457686603,
-0.05860467255115509,
0.014354169368743896,
0.05893698334693909,
0.02057991363108158,
0.026354607194662094,
-0.01985926926136017,
0.0010326455812901258,
-0.015780186280608177,
0.04973248392343521,
-0.002869688905775547,
-0.046268828213214874,
-0.0381220318377018,
-0.02024127170443535,
-0.05249956250190735,
0.07519639283418655,
0.01782871223986149,
-0.02716006152331829,
0.00896076112985611,
0.02471078373491764,
-0.015761086717247963,
-0.002466508885845542,
0.018292797729372978,
-0.0065909759141504765,
-0.016295570880174637,
-0.02950206585228443,
-0.04549295827746391,
-0.010688044130802155,
0.039156969636678696,
0.02054036781191826,
-0.07060380280017853,
-0.006767970975488424,
-0.05101347714662552,
0.01422199048101902,
0.028789006173610687,
0.01417581271380186,
0.0033594390843063593,
0.02362215891480446,
-0.034363191574811935,
0.021460769698023796,
-0.07474174350500107,
0.04035226255655289,
0.029657568782567978,
-0.03619448095560074,
0.007424482144415379,
0.0027413100469857454,
0.050281230360269547,
0.006396184675395489,
-0.016825556755065918,
0.07162174582481384,
0.018933918327093124,
0.016146386042237282,
0.0006831851205788553,
0.04059404879808426,
-0.03261337801814079,
-0.060983750969171524,
0.009069381281733513,
0.05051719769835472,
-0.03398161008954048,
0.011918115429580212,
0.011634787544608116,
-0.021782318130135536,
0.004395230207592249,
0.0036924637388437986,
0.08145804703235626,
0.031290724873542786,
0.032176487147808075,
-0.0165717713534832,
0.024604620411992073,
0.0149325430393219,
0.04951899126172066,
0.02397880144417286,
-0.016071727499365807,
-0.03183123469352722,
-0.04643121361732483,
0.013621695339679718,
0.025887975469231606,
0.03911786526441574,
0.05251220241189003,
-0.023322327062487602,
0.010291505604982376,
0.0872177705168724,
0.023503417149186134,
0.019615519791841507,
-0.013718894682824612,
0.029108552262187004,
0.04513018950819969,
0.03188488259911537,
0.02785489894449711,
0.027623901143670082,
-0.016861308366060257,
-0.0063420445658266544,
-0.007132252212613821,
0.06360627710819244,
-0.01237760204821825,
0.0003002184093929827,
-0.07737322151660919,
-0.052586860954761505,
0.07717770338058472,
-0.051504265516996384,
-0.03824649378657341,
0.04719824716448784,
0.08720749616622925,
0.047142285853624344,
0.026823144406080246,
-0.00540363322943449,
-0.08125657588243484,
0.03874121606349945,
0.016466936096549034,
0.02635381557047367,
0.0326509028673172,
-0.00902378186583519,
0.08779586106538773,
0.03988780453801155,
0.026004934683442116,
0.02592727169394493,
-0.05285114794969559,
-0.07526225596666336,
-0.022439396008849144,
-0.02036038041114807,
0.039591144770383835,
-0.009609894827008247,
0.050191499292850494,
0.04346924647688866,
-0.010185436345636845,
0.06616883724927902,
-0.016414964571595192,
0.009484080597758293,
0.05068501457571983,
-0.05641855299472809,
-0.04274597018957138,
0.025847865268588066,
0.03041001781821251,
0.015525874681770802,
-0.004065955523401499,
0.005439416039735079,
-0.034931134432554245,
0.0009813306387513876,
0.041113417595624924,
-0.01671437919139862,
0.01872977241873741,
0.024085475131869316,
0.07599136233329773,
-0.025936294347047806,
0.036082588136196136,
-0.046629298478364944,
0.0159856379032135,
0.037880536168813705,
-0.025844866409897804,
0.01315651461482048,
-0.015241715125739574,
0.11955231428146362,
0.066460020840168,
-0.021200627088546753,
-0.03309636935591698,
0.0026227908674627542,
0.0020785497035831213,
-0.034535206854343414,
-0.005275216419249773,
-0.03394748643040657,
0.004525718279182911,
0.012149079702794552,
-0.048609986901283264,
-0.03328103944659233,
0.011170219630002975,
-0.03223557397723198,
-0.005361698102205992,
0.04347490519285202,
0.01310453936457634,
0.05646565183997154,
-0.014423365704715252,
-0.0013236551312729716,
-0.004156912676990032,
-0.0023378776386380196,
-0.05458076670765877,
-0.015893010422587395,
0.008165208622813225,
0.002324929926544428,
0.0345265232026577,
-0.0017247536452487111,
-0.022286925464868546,
-0.04562343657016754,
-0.035954732447862625,
0.020358555018901825,
0.049834948033094406,
0.06770583987236023,
-0.026779163628816605,
0.06905091553926468,
-0.005917871370911598,
0.026147974655032158,
-0.0025656584184616804,
-0.02176213078200817,
-0.03607175126671791,
-0.038412392139434814,
0.0010334879625588655,
-0.01076108030974865,
0.022780699655413628,
0.011842639185488224,
0.025210460647940636,
0.002290161093696952,
0.04187483340501785,
-0.01672794111073017,
0.052919115871191025,
-0.015775267034769058,
-0.017014507204294205,
-0.028148537501692772,
-0.022505316883325577,
0.04193785414099693,
-0.03622489795088768,
-0.010221662931144238,
0.01658780314028263,
-0.09306923300027847,
0.043131425976753235,
-0.052963100373744965,
-0.030687060207128525,
0.014713945798575878,
0.006940980441868305,
0.018933814018964767,
0.01771027036011219,
-0.003102891379967332,
0.057147447019815445,
0.019546130672097206,
-0.004421117715537548,
0.010964407585561275,
-0.003370059886947274,
0.029594795778393745,
-0.006860664580017328,
0.027712156996130943,
0.02832992933690548,
0.016772771254181862,
0.01753934659063816,
-0.06240548565983772,
0.006577895954251289,
-0.029785778373479843,
-0.29186421632766724,
0.03631461784243584,
0.0012699916260316968,
-0.0464688278734684,
0.039235081523656845,
-0.009204811416566372,
0.021999256685376167,
-0.059470970183610916,
-0.03354248031973839,
0.007989627309143543,
-0.0010075600584968925,
-0.07110662758350372,
-0.02104097418487072,
0.033359456807374954,
0.054831262677907944,
0.031632889062166214,
0.009370204992592335,
-0.04414021223783493,
0.01298428513109684,
0.0499492883682251,
0.017565269023180008,
-0.07804716378450394,
-0.008568606339395046,
0.040094487369060516,
0.03140026703476906,
0.06457777321338654,
-0.056115951389074326,
-0.008905925787985325,
-0.07662393152713776,
-0.009614377282559872,
0.032933276146650314,
-0.01057316455990076,
0.044148389250040054,
-0.011351710185408592,
-0.02776370570063591,
-0.018386419862508774,
0.02539924904704094,
0.02784186601638794,
-0.01471512857824564,
-0.020484553650021553,
-0.03435695916414261,
-0.01378669124096632,
-0.0011348412372171879,
0.01134741585701704,
0.06098364293575287,
-0.008142326027154922,
-0.07455873489379883,
-0.002382428152486682,
-0.022986015304923058,
0.05080932751297951,
-0.03940512239933014,
0.003777226433157921,
-0.024925749748945236,
0.01829383336007595,
-0.04730844497680664,
0.012183313257992268,
-0.027797425165772438,
-0.002118556760251522,
-0.059677522629499435,
-0.0332975834608078,
0.0027172507252544165,
-0.03001086413860321,
-0.018278678879141808,
-0.032409559935331345,
0.006032364908605814,
-0.06484702974557877,
-0.07556384801864624,
-0.021414674818515778,
0.0759577676653862,
0.025412794202566147,
-0.04621526598930359,
0.0038805187214165926,
0.004982505459338427,
-0.10787366330623627,
-0.014978977851569653,
-0.031193872913718224,
-0.011554952710866928,
0.0031163315288722515,
0.00464214151725173,
0.038724180310964584,
-0.030906086787581444,
-0.051050249487161636,
0.03550046682357788,
0.015439891256392002,
0.016635779291391373,
-0.059112031012773514,
0.009857110679149628,
0.00851863157004118,
-0.03325876221060753,
-0.023261405527591705,
0.0547601617872715,
-0.04086646810173988,
-0.012655366212129593,
-0.011590715497732162,
-0.014086977578699589,
0.0111333467066288,
0.0029649389907717705,
-0.006803789641708136,
-0.006184117868542671,
0.052155982702970505,
0.03119790367782116,
-0.0622691735625267,
0.02296465076506138,
-0.048006486147642136,
-0.02274361439049244,
-0.020304106175899506,
-0.033086080104112625,
0.03383374959230423,
0.015511685982346535,
0.009384776465594769,
0.013364731334149837,
-0.039441078901290894,
0.018894709646701813,
-0.06323016434907913,
-0.026074446737766266,
-0.02701692469418049,
0.027165740728378296,
0.01347745768725872,
0.01598716340959072,
-0.03413122519850731,
-0.030040565878152847,
-0.0066945613361895084,
0.002221484901383519,
-0.013814829289913177,
-0.05778529495000839,
-0.010927071794867516,
-0.001012136461213231,
-0.016951534897089005,
-0.002854299731552601,
0.009092899970710278,
-0.017020992934703827,
0.006466540973633528,
0.00043309738975949585,
-0.05472743883728981,
0.01277102343738079,
-0.018954956904053688,
-0.041191037744283676,
-0.04539644345641136,
0.014466975815594196,
0.03291076049208641,
-0.007927492260932922,
-0.020146455615758896,
0.017781009897589684,
0.045982711017131805,
0.038362354040145874,
0.007601676508784294,
0.0329488143324852,
0.0017835465259850025,
0.030853817239403725,
0.014492188580334187,
-0.029718026518821716,
-0.007168469484895468,
0.01781761646270752,
-0.04817477613687515,
-0.012717279605567455,
-0.03221147507429123,
0.036582328379154205,
-0.02198590524494648,
-0.027348363772034645,
-0.02758742682635784,
-0.002535742474719882,
-0.04492596164345741,
-0.04564383998513222,
-0.0031205276027321815,
0.006846364587545395,
0.05635053664445877,
-0.005985085386782885,
0.03714372217655182,
0.02984059415757656,
0.02640855684876442,
0.011402578093111515,
-0.008155330084264278,
-0.018954085186123848,
-0.002865596441552043,
-0.020538270473480225,
-0.0011079942341893911,
0.00643582921475172,
0.007321261800825596,
0.030478067696094513,
0.016788646578788757,
-0.022424286231398582,
-0.01075669564306736,
0.006848625373095274,
0.021868038922548294,
0.04874946177005768,
0.03774614632129669,
-0.021775109693408012,
0.007365562953054905,
0.006544643547385931,
-0.036139246076345444,
-0.018011048436164856,
0.0016235590446740389,
-0.033356476575136185,
0.007180800661444664,
-0.03164709731936455,
-0.08071250468492508,
0.04348691925406456,
-0.007209187839180231,
-0.0015135129215195775,
0.0334080345928669,
-0.00639770133420825,
-0.023013947531580925,
-0.019255489110946655,
0.027254972606897354,
0.05840221419930458,
-0.042320530861616135,
-0.011479590088129044,
-0.010112687014043331,
-0.018546996638178825,
0.01476321928203106,
-0.0018860830459743738,
-0.03408917784690857,
-0.0317283496260643,
-0.006947977002710104,
0.029536817222833633,
-0.06512300670146942,
-0.04566964879631996,
-0.026234636083245277,
0.010247639380395412,
-0.02465837262570858,
-0.0015334069030359387,
-0.01022200845181942,
0.000014724741959071252,
-0.011643418110907078,
-0.015031835995614529,
0.02310969866812229,
-0.02978198044002056,
-0.029023192822933197,
0.019118821248412132,
-0.03423454239964485,
-0.011656541377305984,
-0.043048061430454254,
0.01932736113667488,
0.030235284939408302,
-0.028621820732951164,
-0.0009999684989452362,
-0.02969953417778015,
-0.0034504530485719442,
-0.016011616215109825,
0.06707725673913956,
0.0002429773740004748,
-0.008855612948536873,
-0.03298979625105858,
-0.011707675643265247,
-0.0176119115203619,
0.029353635385632515,
-0.006777080241590738,
-0.0003817946126218885,
0.030878480523824692,
0.03817711025476456,
-0.016990141943097115,
0.017581453546881676,
-0.02982015535235405,
-0.03869205713272095,
0.0399039126932621,
-0.06287776678800583,
-0.014085682108998299,
-0.016915729269385338,
-0.0469755157828331,
0.019578438252210617,
0.0023751582484692335,
0.004286644514650106,
-0.02197258360683918,
0.05703337490558624,
0.05288804695010185,
0.011606620624661446,
0.03881697729229927,
0.0039040343835949898,
0.03375953435897827,
-0.03401290252804756,
-0.004198708571493626,
-0.0805913433432579,
-0.006669646594673395,
0.011700850911438465,
0.011216512881219387,
-0.035325128585100174,
0.017821483314037323,
-0.058544449508190155,
0.03322024270892143,
-0.08316519856452942,
-0.04493510723114014,
0.028267860412597656,
-0.01576385274529457,
-0.013370334170758724,
0.01765613816678524,
-0.03607536852359772,
0.026069901883602142,
0.037193842232227325,
-0.05363825336098671,
-0.028293108567595482,
-0.01708390563726425,
0.05383080989122391,
-0.025347067043185234,
0.04342067241668701,
-0.03700590878725052,
-0.009263621643185616,
0.04751696065068245,
0.023661015555262566,
-0.00289064459502697,
0.04873674362897873,
-0.03167497366666794,
0.0438242182135582,
0.00646557193249464,
-0.011022255755960941,
0.0013060193741694093,
0.0031886370852589607,
-0.013162253424525261,
-0.05299866572022438,
0.014640608802437782,
-0.0030230723787099123,
-0.0006647083209827542,
-0.04391855746507645,
0.09040062129497528,
0.030515888705849648,
-0.023364601656794548,
-0.06964603066444397,
0.02456464059650898,
-0.038047317415475845,
-0.02115284837782383,
-0.013990873470902443,
0.01570652239024639,
-0.03822115436196327,
0.058481406420469284,
0.01692703738808632,
0.025674492120742798,
0.060417525470256805,
-0.022913195192813873,
0.004049863200634718,
0.03287384286522865,
0.08509849011898041,
0.06741295009851456,
0.053530752658843994,
-0.019530918449163437,
0.07744885981082916,
-0.006805717013776302,
-0.04359821602702141,
0.025314193218946457,
-0.024029284715652466,
0.005616025533527136,
-0.007347617298364639,
-0.0013915154850110412,
0.0611560083925724,
-0.034708328545093536,
0.07716768234968185,
-0.024817954748868942,
-0.013629571534693241,
0.013441710732877254,
-0.011538766324520111,
0.05477716028690338,
0.06246123090386391,
0.01478535495698452,
0.03346312791109085,
-0.010458978824317455,
-0.040838297456502914,
0.0295824334025383,
0.03671440854668617,
-0.04544387012720108,
0.01111473049968481,
-0.020639291033148766,
0.011469818651676178,
-0.012651332654058933,
0.05156712606549263,
0.08515031635761261,
-0.011597140692174435,
0.0029992442578077316,
-0.013961777091026306,
0.03347167745232582,
0.008928126655519009,
0.029272258281707764,
-0.03116575814783573,
0.010927361436188221,
-0.011314368806779385,
-0.04119042679667473,
-0.028062691912055016,
-0.008940480649471283,
-0.051547255367040634,
0.005683509167283773,
-0.03408113494515419,
-0.010799701325595379,
0.018463466316461563,
-0.009658295661211014,
-0.021760908886790276,
-0.04676765948534012,
-0.06692744046449661,
-0.009475143626332283,
-0.08171450346708298,
-0.0043398113921284676,
-0.0010298170382156968,
-0.029294632375240326,
-0.04440421611070633,
-0.01775330863893032,
-0.024831335991621017,
-0.053494974970817566,
0.03455912321805954,
-0.06376534700393677,
-0.037360478192567825,
0.017235247418284416,
0.014975479803979397,
0.018832078203558922,
0.012631232850253582,
0.05915316194295883,
0.013966260477900505,
-0.026542387902736664,
-0.01208650041371584,
0.007218692917376757,
0.06471218168735504,
0.015318927355110645,
0.000047644520236644894,
-0.08435957133769989,
0.02536841109395027,
0.007985544390976429,
-0.01887216977775097,
-0.07298343628644943,
0.009849398396909237,
0.0240547526627779,
-0.002291902434080839,
0.04402938485145569,
-0.01122526079416275,
0.004801662173122168,
-0.03470062091946602,
-0.013331719674170017,
0.0033907517790794373,
0.014663157984614372,
0.02035636641085148,
-0.031226063147187233,
0.07651295512914658,
0.04319421947002411,
-0.019551821053028107,
-0.04672698676586151,
-0.0037253994960337877,
0.003699667053297162,
0.02052110806107521,
-0.03949229419231415,
-0.038648441433906555,
-0.026341594755649567,
-0.07285114377737045,
-0.046789586544036865,
0.003633366897702217,
-0.05361950770020485,
-0.02543492428958416,
0.009878309443593025,
0.009077019058167934,
-0.01028677262365818,
0.013179592788219452,
-0.03003760427236557,
0.02539774961769581,
-0.018354587256908417,
-0.01543430145829916,
-0.028137950226664543,
0.029824240133166313,
0.021029265597462654,
0.01911957934498787,
-0.0026504520792514086,
-0.0373770035803318,
0.013905963860452175,
-0.029975535348057747,
0.04918307438492775,
0.034570250660181046,
-0.003926182631403208,
-0.00542179262265563
] | [
-0.023126723244786263,
-0.019566185772418976,
0.0033442240674048662,
-0.014197812415659428,
0.10960550606250763,
-0.03473607450723648,
-0.018049059435725212,
-0.01000929530709982,
-0.0008984667947515845,
0.009821969084441662,
0.005497343838214874,
-0.06415261328220367,
0.0015186184318736196,
-0.0011538129765540361,
0.051138799637556076,
0.009220502339303493,
-0.021254869177937508,
-0.09625070542097092,
-0.004954157862812281,
0.057417016476392746,
0.015525474213063717,
-0.02663906291127205,
-0.031233355402946472,
-0.017221610993146896,
0.009983714669942856,
0.007257070392370224,
0.026940912008285522,
-0.008592480793595314,
-0.03923516720533371,
-0.18024210631847382,
0.03046322427690029,
-0.01884176768362522,
0.028937404975295067,
-0.007111445534974337,
0.03721632435917854,
0.02034500241279602,
0.00008282944327220321,
0.03509742021560669,
0.028066361322999,
0.011387844569981098,
0.04311573877930641,
-0.014622805640101433,
-0.01746922731399536,
-0.024524830281734467,
0.039603281766176224,
0.018765278160572052,
0.02282560057938099,
-0.01229242142289877,
-0.006697588134557009,
0.023869588971138,
-0.0666777640581131,
-0.00020070112077519298,
-0.00443253805860877,
-0.014183714054524899,
-0.011432026512920856,
0.04229513555765152,
0.021922115236520767,
0.05472751706838608,
0.03689716011285782,
0.027584102004766464,
0.04074212163686752,
-0.008362405933439732,
-0.1655980497598648,
0.08130473643541336,
-0.0023261767346411943,
0.043638408184051514,
-0.02540828287601471,
-0.02588968351483345,
-0.025600045919418335,
0.0376308299601078,
0.02217475138604641,
-0.008447499014437199,
-0.0387677401304245,
0.04330338165163994,
-0.005241412203758955,
-0.013798538595438004,
-0.017486177384853363,
0.03207741305232048,
-0.005516559351235628,
-0.05933297425508499,
-0.001914053806103766,
0.04398056119680405,
-0.024624010547995567,
-0.02848295122385025,
-0.017839305102825165,
-0.011885464191436768,
-0.0349787175655365,
0.06968630105257034,
0.015869759023189545,
0.031138530001044273,
0.0715312734246254,
-0.008949941955506802,
0.029129335656762123,
0.005610394757241011,
-0.10532241314649582,
-0.025537976995110512,
0.014922023750841618,
0.02116554044187069,
0.0019479583716019988,
0.41619405150413513,
-0.01399212796241045,
-0.010484348051249981,
0.04187420755624771,
0.055067479610443115,
0.000708957202732563,
-0.0027527110651135445,
-0.019085844978690147,
-0.026802729815244675,
0.02967112511396408,
-0.030655954033136368,
0.008998016826808453,
-0.00811066571623087,
0.06839930266141891,
-0.03549949452280998,
-0.005656151566654444,
-0.0025160599034279585,
0.019365092739462852,
0.006081328261643648,
-0.002301320433616638,
-0.018302854150533676,
-0.02311261184513569,
0.015047870576381683,
0.015544641762971878,
-0.016309373080730438,
-0.00041980473906733096,
0.016371294856071472,
0.08193162083625793,
0.044184692203998566,
0.034094952046871185,
0.018390610814094543,
0.017520930618047714,
-0.039875734597444534,
-0.11212045699357986,
0.011502737179398537,
0.0009012219379656017,
0.010025382041931152,
0.03527924045920372,
-0.00013445493823383003,
0.028345637023448944,
0.01769201271235943,
-0.057772036641836166,
-0.06024207919836044,
-0.01660187542438507,
-0.0007064073579385877,
-0.03814033046364784,
0.11931819468736649,
0.039165135473012924,
-0.042603395879268646,
-0.03329944238066673,
-0.039262183010578156,
-0.0012474749237298965,
0.03684163838624954,
0.03557967394590378,
-0.08770287781953812,
0.01132671907544136,
0.0542537160217762,
0.08156683295965195,
-0.03800727054476738,
-0.06581559032201767,
-0.008150381967425346,
0.006402404047548771,
-0.022101815789937973,
-0.04817631095647812,
0.03535320982336998,
0.054327305406332016,
-0.14143459498882294,
-0.03629457950592041,
0.013993754051625729,
0.017166374251246452,
-0.03998412936925888,
0.02937289886176586,
0.01745191588997841,
-0.013405117206275463,
-0.009461140260100365,
0.07306038588285446,
-0.030082225799560547,
-0.030908923596143723,
0.0351024754345417,
0.027775069698691368,
-0.013797852210700512,
-0.03297078236937523,
-0.004738059360533953,
-0.033690694719552994,
0.01990806870162487,
-0.08231975138187408,
-0.07120906561613083,
-0.08916983753442764,
0.03667566180229187,
-0.03226875141263008,
-0.019347870722413063,
0.002048853784799576,
-0.021900901570916176,
-0.07792765647172928,
0.07591269165277481,
-0.026822423562407494,
-0.013603786006569862,
0.005873130168765783,
0.039328981190919876,
0.005358935333788395,
-0.03482323884963989,
-0.004889453295618296,
0.002204575575888157,
-0.04526675492525101,
0.028981324285268784,
-0.03265612944960594,
0.05216733366250992,
0.0753682404756546,
-0.008729299530386925,
0.0819007009267807,
0.06129276007413864,
0.041324399411678314,
0.006004018243402243,
0.020733628422021866,
-0.014786281622946262,
0.012720011174678802,
-0.012094054371118546,
-0.012823417782783508,
-0.02933570370078087,
0.022778991609811783,
0.04046643525362015,
-0.018840190023183823,
-0.05051323398947716,
0.019748099148273468,
-0.39324113726615906,
-0.07064948976039886,
-0.012977884151041508,
-0.010518776252865791,
0.019805246964097023,
-0.04993368312716484,
0.006733687128871679,
0.029727958142757416,
-0.011352038942277431,
0.06674887239933014,
0.07448863238096237,
-0.02688230201601982,
0.02106236293911934,
-0.02720494009554386,
-0.0034246903378516436,
0.009534919634461403,
-0.01538862381130457,
-0.013659510761499405,
-0.0320313535630703,
0.01641085371375084,
0.007039944175630808,
-0.02662191167473793,
-0.05862395092844963,
-0.03738439455628395,
0.024496393278241158,
-0.03548869863152504,
0.1157044842839241,
-0.03420329838991165,
0.021312860772013664,
-0.045010048896074295,
0.04868178442120552,
-0.028952956199645996,
0.011017058044672012,
-0.08073152601718903,
0.0016726473113521934,
-0.02078227326273918,
0.004434733651578426,
0.053931280970573425,
-0.04749820753931999,
-0.0540630929172039,
-0.03776532784104347,
0.02638894133269787,
-0.03750137612223625,
-0.008932945318520069,
-0.06954331696033478,
0.03810026869177818,
-0.01965085230767727,
0.012957834638655186,
-0.01685667224228382,
0.06675582379102707,
0.01769123785197735,
-0.003803839208558202,
0.04443856701254845,
0.0338093638420105,
0.014201080426573753,
-0.03373335674405098,
-0.07626326382160187,
-0.0025078461039811373,
-0.013061868958175182,
0.00294641125947237,
0.03886543959379196,
0.028148366138339043,
0.07115980237722397,
-0.04832050949335098,
-0.011518232524394989,
-0.01224488765001297,
-0.00867696013301611,
0.026894185692071915,
-0.0108695849776268,
-0.0011038314551115036,
-0.042195551097393036,
0.052011098712682724,
-0.03501923009753227,
-0.002621701918542385,
-0.0074751246720552444,
0.04126419499516487,
-0.02398177608847618,
0.045055411756038666,
0.009371369145810604,
0.002341451356187463,
0.07492280751466751,
-0.01490157749503851,
0.015041799284517765,
-0.0011930788168683648,
0.023720141500234604,
0.06408510357141495,
0.013312321156263351,
-0.017488760873675346,
0.05706733465194702,
0.024379951879382133,
0.016590118408203125,
-0.009699276648461819,
-0.03835859149694443,
-0.08025069534778595,
0.07063975185155869,
-0.0011319322511553764,
-0.25326836109161377,
0.004359899554401636,
0.024086473509669304,
0.04506515711545944,
0.00432187132537365,
0.012211599387228489,
0.014809834770858288,
0.009629067033529282,
0.03294926509261131,
0.025476155802607536,
0.01902029477059841,
0.0425124354660511,
0.013561098836362362,
-0.034520070999860764,
0.003352454397827387,
-0.05361137166619301,
0.01387674268335104,
0.014339144341647625,
0.010563737712800503,
-0.021859044209122658,
0.01925303041934967,
-0.005127317272126675,
0.1322879046201706,
0.07582560926675797,
-0.010045114904642105,
0.007794935721904039,
-0.014633054845035076,
0.0173717699944973,
0.05456928163766861,
-0.01066606305539608,
0.012257381342351437,
-0.015200776979327202,
0.0075803049840033054,
-0.004327661823481321,
0.014281445182859898,
-0.02150079235434532,
-0.04546527937054634,
0.04764805734157562,
-0.002463805489242077,
0.005103202071040869,
-0.014312103390693665,
0.007821960374712944,
-0.029152700677514076,
0.040178313851356506,
0.06075979769229889,
0.009269554167985916,
0.00227034161798656,
-0.04510832577943802,
-0.034518998116254807,
-0.008412156254053116,
-0.008688967674970627,
-0.048947274684906006,
-0.018703624606132507,
-0.017872357740998268,
0.0017678852891549468,
0.08100433647632599,
0.020277319476008415,
-0.021044062450528145,
0.034404072910547256,
0.0029807030223309994,
-0.02736847661435604,
-0.07620280236005783,
0.06098070740699768,
-0.011117554269731045,
0.019381282851099968
] | [
0.013967356644570827,
0.03388594835996628,
-0.013048488646745682,
0.011269811540842056,
-0.0032450940925627947,
-0.01897529326379299,
0.008988981135189533,
0.007481598295271397,
-0.021444668993353844,
0.015390362590551376,
-0.012327621690928936,
-0.002508161123842001,
0.01200155820697546,
-0.04023336246609688,
-0.014266581274569035,
0.0036222506314516068,
0.0026896570343524218,
-0.01583651266992092,
0.016614263877272606,
-0.0011922182748094201,
-0.016618311405181885,
0.05029052123427391,
-0.002118457341566682,
-0.02927875705063343,
-0.01451658271253109,
0.0582868717610836,
-0.02615888975560665,
0.03782770782709122,
0.030368642881512642,
-0.11677239835262299,
-0.027829622849822044,
-0.006210003048181534,
-0.008510125800967216,
0.037416331470012665,
0.014858493581414223,
0.0029686701018363237,
-0.015030056238174438,
0.00771736167371273,
0.00564661156386137,
-0.0021370735485106707,
0.027179855853319168,
-0.03913242369890213,
-0.008966956287622452,
-0.0035363170318305492,
0.007933932356536388,
0.012892467901110649,
0.0194817204028368,
-0.007772159297019243,
0.008565308526158333,
-0.012645173817873001,
-0.01563131995499134,
0.026438629254698753,
0.0033772503957152367,
0.0037779426202178,
-0.003050877247005701,
-0.008035974577069283,
-0.027093052864074707,
0.0037436264101415873,
-0.005403535440564156,
-0.03748498857021332,
-0.013193393126130104,
0.01026963908225298,
-0.055756211280822754,
-0.027342399582266808,
0.012833520770072937,
-0.005961330607533455,
-0.03265058621764183,
0.008622762747108936,
0.0009799287654459476,
-0.0063552167266607285,
0.0016625194111838937,
0.03659922629594803,
-0.026616612449288368,
-0.02558627724647522,
-0.011933350935578346,
0.025576338171958923,
0.018894372507929802,
-0.02927979826927185,
0.011706070974469185,
-0.05372477322816849,
-0.044329650700092316,
-0.0004920245846733451,
-0.015925554558634758,
0.0000019076478565693833,
-0.005474178120493889,
-0.03292813524603844,
0.017444999888539314,
0.03262556716799736,
0.023499852046370506,
-0.02414417639374733,
0.019269192591309547,
-0.017501961439847946,
0.0027716348413378,
0.034520700573921204,
-0.128971129655838,
-0.0010372678516432643,
0.027705496177077293,
-0.02731495536863804,
-0.007130052894353867,
0.8606905937194824,
-0.018541820347309113,
0.03746665269136429,
0.0026394175365567207,
0.03635108098387718,
-0.04057488590478897,
-0.026683012023568153,
-0.025195768103003502,
0.00039975446998141706,
-0.0033682745415717363,
-0.04265306517481804,
-0.012913213111460209,
0.010299707762897015,
0.014157421886920929,
0.013287576846778393,
-0.019915208220481873,
0.01203133538365364,
-0.03176337853074074,
-0.025784781202673912,
-0.0024707310367375612,
-0.024112818762660027,
0.02538740262389183,
0.016888031736016273,
-0.02938351035118103,
0.017598461359739304,
0.006311270408332348,
-0.18692223727703094,
0.020620109513401985,
-7.102170094407238e-33,
-0.0012257990892976522,
-0.0023484218399971724,
0.02291809394955635,
-0.016420256346464157,
0.013776623643934727,
0.0003640095819719136,
-0.004185938276350498,
-0.006640226114541292,
0.004363785032182932,
0.016750473529100418,
-0.0014603161253035069,
-0.015024320222437382,
-0.005346447229385376,
-0.03177545219659805,
0.017790822312235832,
0.00747479684650898,
0.00687805563211441,
0.01916649006307125,
-0.0031712763011455536,
0.015154034830629826,
0.027164937928318977,
0.049129925668239594,
0.03764941915869713,
0.03487182408571243,
0.016827791929244995,
-0.0038190626073628664,
0.009374331682920456,
0.015883544459939003,
0.019913874566555023,
-0.04222403094172478,
0.0004829819081351161,
0.04373237118124962,
0.0020107319578528404,
-0.015898415818810463,
-0.000862926128320396,
-0.04354068264365196,
-0.026295185089111328,
-0.008853863924741745,
-0.014982771128416061,
0.0018123761983588338,
-0.02405599132180214,
-0.021076537668704987,
-0.01985800452530384,
-0.010079271160066128,
-0.024604130536317825,
-0.0011626845225691795,
0.028716355562210083,
0.006811945699155331,
0.005993098020553589,
0.021427206695079803,
0.027226770296692848,
-0.00217425893060863,
-0.01210193894803524,
0.01151007879525423,
-0.01785225234925747,
0.00879042036831379,
-0.03130444511771202,
0.014177504926919937,
-0.0031844638288021088,
0.033975183963775635,
0.002901898929849267,
-0.03404473513364792,
0.022779837250709534,
0.015286339446902275,
-0.03315016254782677,
0.005341075826436281,
0.021830372512340546,
0.01918439194560051,
0.004436997231096029,
0.01716003753244877,
-0.03054005652666092,
0.012337089516222477,
0.004503946285694838,
-0.03281015902757645,
0.04115734249353409,
-0.020687442272901535,
0.0008859065710566938,
0.022424740716814995,
0.018144113942980766,
0.014279048889875412,
-0.00447910837829113,
-0.0012254692846909165,
0.0043099974282085896,
-0.019717097282409668,
-0.020844999700784683,
-0.01829340122640133,
0.0015137505251914263,
-0.0012122474145144224,
0.019214898347854614,
-0.005836666561663151,
-0.028956342488527298,
0.018015950918197632,
-0.009892205707728863,
-0.013171837665140629,
-0.009823126718401909,
6.865203657592912e-33,
0.002939737867563963,
-0.01780981756746769,
-0.003639501053839922,
0.008014959283173084,
-0.007860340178012848,
-0.03428355231881142,
0.018928075209259987,
0.004643940832465887,
-0.012359642423689365,
0.02639625407755375,
-0.03192543238401413,
0.011937219649553299,
0.01981639862060547,
0.01353694498538971,
0.02458953484892845,
0.005739052779972553,
0.020864851772785187,
0.00004788082151208073,
0.007580635603517294,
0.02728242427110672,
-0.015283784829080105,
0.0016479678452014923,
0.0217125341296196,
0.023153698071837425,
0.016303742304444313,
0.040004245936870575,
-0.031555574387311935,
0.01663339138031006,
-0.0012474646791815758,
-0.011212281882762909,
0.012821863405406475,
-0.019910627976059914,
0.010870606638491154,
-0.039642736315727234,
-0.04008178785443306,
0.03382058069109917,
0.03051278181374073,
-0.018529318273067474,
0.006403803825378418,
0.021169662475585938,
0.02363867312669754,
0.009573609568178654,
-0.01623576693236828,
0.022732803598046303,
0.013882571831345558,
-0.003489870112389326,
0.015014005824923515,
-0.0065883067436516285,
0.021596845239400864,
0.02371651865541935,
0.005323902238160372,
0.03460264205932617,
0.018323902040719986,
0.0053130085580050945,
0.04466947168111801,
-0.02219551056623459,
0.003997452557086945,
0.0007677455432713032,
-0.0107834842056036,
-0.0053292796947062016,
-0.024870915338397026,
0.0250020083039999,
-0.013043900020420551,
0.04574179649353027,
-0.023140799254179,
0.006174593698233366,
-0.0020626666955649853,
-0.03919810801744461,
0.02437627874314785,
-0.0112818144261837,
-0.02530752308666706,
-0.03132253512740135,
-0.007374799810349941,
-0.01009384822100401,
0.0002631896350067109,
0.0015150373801589012,
-0.01720820553600788,
0.003239657264202833,
-0.004503248725086451,
0.007578357122838497,
0.03207613527774811,
-0.021535281091928482,
0.042743995785713196,
-0.0009351922199130058,
-0.012918287888169289,
0.022982629016041756,
-0.05317574366927147,
-0.011157384142279625,
0.0268159918487072,
-0.006487999111413956,
-0.017098188400268555,
-0.04004313051700592,
-0.0008521281997673213,
0.02918683923780918,
0.004267323762178421,
-1.3082328109703667e-8,
-0.023814305663108826,
0.01929941587150097,
-0.014963062480092049,
0.0037007161881774664,
0.04325137659907341,
-0.014131877571344376,
0.01416828390210867,
0.011512244120240211,
-0.019883200526237488,
0.0011129904305562377,
0.049989160150289536,
-0.03319553658366203,
-0.013774845749139786,
0.008199035190045834,
-0.004057477694004774,
-0.059211365878582,
0.022570990025997162,
-0.0310096126049757,
0.0095667177811265,
0.01661357469856739,
0.02619410678744316,
0.04729905724525452,
0.0019224785501137376,
-0.027258535847067833,
0.04022593051195145,
0.00923885777592659,
-0.015118688344955444,
-0.09370230883359909,
0.004895892459899187,
0.014597855508327484,
0.027174007147550583,
-0.03811147063970566,
0.00902656838297844,
0.013141980394721031,
-0.00756387272849679,
-0.061900898814201355,
0.02790852263569832,
0.03301909565925598,
0.0018243864178657532,
0.012821408919990063,
-0.01481559406965971,
0.023519262671470642,
-0.019085321575403214,
-0.020635822787880898,
-0.020754249766469002,
0.004695705138146877,
-0.05725547671318054,
-0.008710565976798534,
0.025931714102625847,
-0.05212518572807312,
0.004018398467451334,
-0.017728373408317566,
0.004760325886309147,
0.03665747120976448,
0.04217158630490303,
0.0006814111839048564,
0.0036817160435020924,
-0.012354020960628986,
-0.005337008275091648,
-0.0013344098115339875,
-0.018468940630555153,
-0.009928598999977112,
-0.021785631775856018,
-0.04087985306978226
] | exploring-potential-data-entry-errors-in-the-land-registry-data-set | https://markhneedham.com/blog/2015/10/18/exploring-potential-data-entry-errors-in-the-land-registry-data-set |
false | 2015-10-27 23:10:47 | Spark: MatchError (of class org.apache.spark.sql.catalyst.expressions.GenericRow) spark | [
"spark-2"
] | [
"Spark"
] | I've been using http://spark.apache.org/[Spark] again lately to do some pre-processing on the https://data.gov.uk/dataset/land-registry-monthly-price-paid-data[Land Registry data set] and ran into an initially confusing problem when trying to parse the CSV file.
I'm using the https://github.com/databricks/spark-csv[Databricks CSV parsing library] and wrote the following script to go over each row, collect up the address components and then derive a 'fullAddress' field.
To refresh, this is what the CSV file looks like:
[source,bash]
----
$ head -n5 pp-complete.csv
"{0C7ADEF5-878D-4066-B785-0000003ED74A}","163000","2003-02-21 00:00","UB5 4PJ","T","N","F","106","","READING ROAD","NORTHOLT","NORTHOLT","EALING","GREATER LONDON","A"
"{35F67271-ABD4-40DA-AB09-00000085B9D3}","247500","2005-07-15 00:00","TA19 9DD","D","N","F","58","","ADAMS MEADOW","ILMINSTER","ILMINSTER","SOUTH SOMERSET","SOMERSET","A"
"{B20B1C74-E8E1-4137-AB3E-0000011DF342}","320000","2010-09-10 00:00","W4 1DZ","F","N","L","58","","WHELLOCK ROAD","","LONDON","EALING","GREATER LONDON","A"
"{7D6B0915-C56B-4275-AF9B-00000156BCE7}","104000","1997-08-27 00:00","NE61 2BH","D","N","F","17","","WESTGATE","MORPETH","MORPETH","CASTLE MORPETH","NORTHUMBERLAND","A"
"{47B60101-B64C-413D-8F60-000002F1692D}","147995","2003-05-02 00:00","PE33 0RU","D","N","F","4","","MASON GARDENS","WEST WINCH","KING'S LYNN","KING'S LYNN AND WEST NORFOLK","NORFOLK","A"
----
[source,scala]
----
import org.apache.spark.sql.{SQLContext, _}
import org.apache.spark.{SparkConf, SparkContext}
case class BlogTransaction(price: Integer, date: String, postCode:String, paon:String, saon:String, street:String, locality:String, city:String, district:String, county:String)
object BlogApp {
def main(args: Array[String]) {
val conf = new SparkConf().setAppName("Simple Application")
val sc = new SparkContext(conf)
val sqlContext = new SQLContext(sc)
import sqlContext.implicits._
sqlContext.read.format("com.databricks.spark.csv").load("/Users/markneedham/projects/land-registry/pp-complete.csv").registerTempTable("transactions")
val rows = sqlContext.sql("select C1,C2,C3,C7,C8,C9,C10,C11,C12,C13 from transactions where transactions.C3 = 'SW3 4EU'").map(x =>
Row.fromSeq(x.toSeq ++ Array(Array(x.get(4), x.get(3), x.get(5), x.get(6), x.get(7), x.get(8), x.get(9), x.get(2))
.map(x => x.toString)
.filter(x => !x.isEmpty)
.distinct
.mkString(" / "))))
val path: String = "/tmp/tx-" + System.currentTimeMillis() + ".csv"
rows.map {
case Row(price: Integer, date: String, postCode:String, paon:String, saon:String, street:String, locality:String, city:String, district:String, county:String) =>
BlogTransaction(price, date, postCode, paon, saon, street, locality, city, district, county) }
.toDF()
.write
.format("com.databricks.spark.csv")
.save(path)
}
}
----
Let's execute that job against a local Spark worker:
[source,bash]
----
./spark-1.5.0-bin-hadoop2.6/bin/spark-submit --class BlogApp --master local[8] --packages com.databricks:spark-csv_2.10:1.2.0 target/scala-2.10/simple-project_2.10-1.0.jar
15/10/27 22:56:41 INFO Executor: Executor killed task 7.0 in stage 1.0 (TID 8)
Exception in thread "main" org.apache.spark.SparkException: Job aborted due to stage failure: Task 2 in stage 1.0 failed 1 times, most recent failure: Lost task 2.0 in stage 1.0 (TID 3, localhost): scala.MatchError: [14850000,2013-11-13 00:00,SW3 4EU,9,,ORMONDE GATE,,LONDON,KENSINGTON AND CHELSEA,GREATER LONDON,9 / ORMONDE GATE / LONDON / KENSINGTON AND CHELSEA / GREATER LONDON / SW3 4EU] (of class org.apache.spark.sql.catalyst.expressions.GenericRow)
at BlogApp$$anonfun$main$1.apply(BlogApp.scala:24)
at BlogApp$$anonfun$main$1.apply(BlogApp.scala:24)
at scala.collection.Iterator$$anon$11.next(Iterator.scala:328)
at scala.collection.Iterator$$anon$11.next(Iterator.scala:328)
at scala.collection.Iterator$$anon$11.next(Iterator.scala:328)
at com.databricks.spark.csv.package$CsvSchemaRDD$$anonfun$5$$anon$1.next(package.scala:154)
at com.databricks.spark.csv.package$CsvSchemaRDD$$anonfun$5$$anon$1.next(package.scala:147)
at scala.collection.Iterator$$anon$11.next(Iterator.scala:328)
at org.apache.spark.rdd.PairRDDFunctions$$anonfun$saveAsHadoopDataset$1$$anonfun$13$$anonfun$apply$6.apply$mcV$sp(PairRDDFunctions.scala:1109)
at org.apache.spark.rdd.PairRDDFunctions$$anonfun$saveAsHadoopDataset$1$$anonfun$13$$anonfun$apply$6.apply(PairRDDFunctions.scala:1108)
at org.apache.spark.rdd.PairRDDFunctions$$anonfun$saveAsHadoopDataset$1$$anonfun$13$$anonfun$apply$6.apply(PairRDDFunctions.scala:1108)
at org.apache.spark.util.Utils$.tryWithSafeFinally(Utils.scala:1206)
at org.apache.spark.rdd.PairRDDFunctions$$anonfun$saveAsHadoopDataset$1$$anonfun$13.apply(PairRDDFunctions.scala:1116)
at org.apache.spark.rdd.PairRDDFunctions$$anonfun$saveAsHadoopDataset$1$$anonfun$13.apply(PairRDDFunctions.scala:1095)
at org.apache.spark.scheduler.ResultTask.runTask(ResultTask.scala:66)
at org.apache.spark.scheduler.Task.run(Task.scala:88)
at org.apache.spark.executor.Executor$TaskRunner.run(Executor.scala:214)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Driver stacktrace:
at org.apache.spark.scheduler.DAGScheduler.org$apache$spark$scheduler$DAGScheduler$$failJobAndIndependentStages(DAGScheduler.scala:1280)
at org.apache.spark.scheduler.DAGScheduler$$anonfun$abortStage$1.apply(DAGScheduler.scala:1268)
at org.apache.spark.scheduler.DAGScheduler$$anonfun$abortStage$1.apply(DAGScheduler.scala:1267)
at scala.collection.mutable.ResizableArray$class.foreach(ResizableArray.scala:59)
at scala.collection.mutable.ArrayBuffer.foreach(ArrayBuffer.scala:47)
at org.apache.spark.scheduler.DAGScheduler.abortStage(DAGScheduler.scala:1267)
at org.apache.spark.scheduler.DAGScheduler$$anonfun$handleTaskSetFailed$1.apply(DAGScheduler.scala:697)
at org.apache.spark.scheduler.DAGScheduler$$anonfun$handleTaskSetFailed$1.apply(DAGScheduler.scala:697)
at scala.Option.foreach(Option.scala:236)
at org.apache.spark.scheduler.DAGScheduler.handleTaskSetFailed(DAGScheduler.scala:697)
at org.apache.spark.scheduler.DAGSchedulerEventProcessLoop.doOnReceive(DAGScheduler.scala:1493)
at org.apache.spark.scheduler.DAGSchedulerEventProcessLoop.onReceive(DAGScheduler.scala:1455)
at org.apache.spark.scheduler.DAGSchedulerEventProcessLoop.onReceive(DAGScheduler.scala:1444)
at org.apache.spark.util.EventLoop$$anon$1.run(EventLoop.scala:48)
at org.apache.spark.scheduler.DAGScheduler.runJob(DAGScheduler.scala:567)
at org.apache.spark.SparkContext.runJob(SparkContext.scala:1813)
at org.apache.spark.SparkContext.runJob(SparkContext.scala:1826)
at org.apache.spark.SparkContext.runJob(SparkContext.scala:1903)
at org.apache.spark.rdd.PairRDDFunctions$$anonfun$saveAsHadoopDataset$1.apply$mcV$sp(PairRDDFunctions.scala:1124)
at org.apache.spark.rdd.PairRDDFunctions$$anonfun$saveAsHadoopDataset$1.apply(PairRDDFunctions.scala:1065)
at org.apache.spark.rdd.PairRDDFunctions$$anonfun$saveAsHadoopDataset$1.apply(PairRDDFunctions.scala:1065)
at org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:147)
at org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:108)
at org.apache.spark.rdd.RDD.withScope(RDD.scala:306)
at org.apache.spark.rdd.PairRDDFunctions.saveAsHadoopDataset(PairRDDFunctions.scala:1065)
at org.apache.spark.rdd.PairRDDFunctions$$anonfun$saveAsHadoopFile$4.apply$mcV$sp(PairRDDFunctions.scala:989)
at org.apache.spark.rdd.PairRDDFunctions$$anonfun$saveAsHadoopFile$4.apply(PairRDDFunctions.scala:965)
at org.apache.spark.rdd.PairRDDFunctions$$anonfun$saveAsHadoopFile$4.apply(PairRDDFunctions.scala:965)
at org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:147)
at org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:108)
at org.apache.spark.rdd.RDD.withScope(RDD.scala:306)
at org.apache.spark.rdd.PairRDDFunctions.saveAsHadoopFile(PairRDDFunctions.scala:965)
at org.apache.spark.rdd.PairRDDFunctions$$anonfun$saveAsHadoopFile$1.apply$mcV$sp(PairRDDFunctions.scala:897)
at org.apache.spark.rdd.PairRDDFunctions$$anonfun$saveAsHadoopFile$1.apply(PairRDDFunctions.scala:897)
at org.apache.spark.rdd.PairRDDFunctions$$anonfun$saveAsHadoopFile$1.apply(PairRDDFunctions.scala:897)
at org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:147)
at org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:108)
at org.apache.spark.rdd.RDD.withScope(RDD.scala:306)
at org.apache.spark.rdd.PairRDDFunctions.saveAsHadoopFile(PairRDDFunctions.scala:896)
at org.apache.spark.rdd.RDD$$anonfun$saveAsTextFile$1.apply$mcV$sp(RDD.scala:1426)
at org.apache.spark.rdd.RDD$$anonfun$saveAsTextFile$1.apply(RDD.scala:1405)
at org.apache.spark.rdd.RDD$$anonfun$saveAsTextFile$1.apply(RDD.scala:1405)
at org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:147)
at org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:108)
at org.apache.spark.rdd.RDD.withScope(RDD.scala:306)
at org.apache.spark.rdd.RDD.saveAsTextFile(RDD.scala:1405)
at com.databricks.spark.csv.package$CsvSchemaRDD.saveAsCsvFile(package.scala:169)
at com.databricks.spark.csv.DefaultSource.createRelation(DefaultSource.scala:165)
at org.apache.spark.sql.execution.datasources.ResolvedDataSource$.apply(ResolvedDataSource.scala:170)
at org.apache.spark.sql.DataFrameWriter.save(DataFrameWriter.scala:146)
at org.apache.spark.sql.DataFrameWriter.save(DataFrameWriter.scala:137)
at BlogApp$.main(BlogApp.scala:30)
at BlogApp.main(BlogApp.scala)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.apache.spark.deploy.SparkSubmit$.org$apache$spark$deploy$SparkSubmit$$runMain(SparkSubmit.scala:672)
at org.apache.spark.deploy.SparkSubmit$.doRunMain$1(SparkSubmit.scala:180)
at org.apache.spark.deploy.SparkSubmit$.submit(SparkSubmit.scala:205)
at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:120)
at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)
Caused by: scala.MatchError: [14850000,2013-11-13 00:00,SW3 4EU,9,,ORMONDE GATE,,LONDON,KENSINGTON AND CHELSEA,GREATER LONDON,9 / ORMONDE GATE / LONDON / KENSINGTON AND CHELSEA / GREATER LONDON / SW3 4EU] (of class org.apache.spark.sql.catalyst.expressions.GenericRow)
at BlogApp$$anonfun$main$1.apply(BlogApp.scala:24)
at BlogApp$$anonfun$main$1.apply(BlogApp.scala:24)
at scala.collection.Iterator$$anon$11.next(Iterator.scala:328)
at scala.collection.Iterator$$anon$11.next(Iterator.scala:328)
at scala.collection.Iterator$$anon$11.next(Iterator.scala:328)
at com.databricks.spark.csv.package$CsvSchemaRDD$$anonfun$5$$anon$1.next(package.scala:154)
at com.databricks.spark.csv.package$CsvSchemaRDD$$anonfun$5$$anon$1.next(package.scala:147)
at scala.collection.Iterator$$anon$11.next(Iterator.scala:328)
at org.apache.spark.rdd.PairRDDFunctions$$anonfun$saveAsHadoopDataset$1$$anonfun$13$$anonfun$apply$6.apply$mcV$sp(PairRDDFunctions.scala:1109)
at org.apache.spark.rdd.PairRDDFunctions$$anonfun$saveAsHadoopDataset$1$$anonfun$13$$anonfun$apply$6.apply(PairRDDFunctions.scala:1108)
at org.apache.spark.rdd.PairRDDFunctions$$anonfun$saveAsHadoopDataset$1$$anonfun$13$$anonfun$apply$6.apply(PairRDDFunctions.scala:1108)
at org.apache.spark.util.Utils$.tryWithSafeFinally(Utils.scala:1206)
at org.apache.spark.rdd.PairRDDFunctions$$anonfun$saveAsHadoopDataset$1$$anonfun$13.apply(PairRDDFunctions.scala:1116)
at org.apache.spark.rdd.PairRDDFunctions$$anonfun$saveAsHadoopDataset$1$$anonfun$13.apply(PairRDDFunctions.scala:1095)
at org.apache.spark.scheduler.ResultTask.runTask(ResultTask.scala:66)
at org.apache.spark.scheduler.Task.run(Task.scala:88)
at org.apache.spark.executor.Executor$TaskRunner.run(Executor.scala:214)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
----
So it looks like we have something wrong with our matching code and the only place we're matching anything is the +++<cite>+++Row+++</cite>+++ case class when we're mapping over +++<cite>+++rows+++</cite>+++.
Although I thought price should be an integer I tweaked it to be a string just in case that was the issue:
[source,scala]
----
case class BlogTransaction(price: Integer, date: String, postCode:String, paon:String, saon:String, street:String, locality:String, city:String, district:String, county:String)
...
case Row(price: Integer, date: String, postCode:String, paon:String, saon:String, street:String, locality:String, city:String, district:String, county:String) =>
----
changed to:
[source,scala]
----
case class BlogTransaction(price: String, date: String, postCode:String, paon:String, saon:String, street:String, locality:String, city:String, district:String, county:String)
...
case Row(price: String, date: String, postCode:String, paon:String, saon:String, street:String, locality:String, city:String, district:String, county:String) =>
----
Attempt #2:
[source,bash]
----
./spark-1.5.0-bin-hadoop2.6/bin/spark-submit --class BlogApp --master local[8] --packages com.databricks:spark-csv_2.10:1.2.0 target/scala-2.10/simple-project_2.10-1.0.jar
15/10/27 23:01:35 WARN TaskSetManager: Lost task 6.0 in stage 1.0 (TID 7, localhost): TaskKilled (killed intentionally)
Exception in thread "main" 15/10/27 23:01:35 WARN TaskSetManager: Lost task 1.0 in stage 1.0 (TID 2, localhost): TaskKilled (killed intentionally)
org.apache.spark.SparkException: Job aborted due to stage failure: Task 2 in stage 1.0 failed 1 times, most recent failure: Lost task 2.0 in stage 1.0 (TID 3, localhost): scala.MatchError: [14850000,2013-11-13 00:00,SW3 4EU,9,,ORMONDE GATE,,LONDON,KENSINGTON AND CHELSEA,GREATER LONDON,9 / ORMONDE GATE / LONDON / KENSINGTON AND CHELSEA / GREATER LONDON / SW3 4EU] (of class org.apache.spark.sql.catalyst.expressions.GenericRow)
at BlogApp$$anonfun$main$1.apply(BlogApp.scala:24)
at BlogApp$$anonfun$main$1.apply(BlogApp.scala:24)
at scala.collection.Iterator$$anon$11.next(Iterator.scala:328)
at scala.collection.Iterator$$anon$11.next(Iterator.scala:328)
at scala.collection.Iterator$$anon$11.next(Iterator.scala:328)
at com.databricks.spark.csv.package$CsvSchemaRDD$$anonfun$5$$anon$1.next(package.scala:154)
at com.databricks.spark.csv.package$CsvSchemaRDD$$anonfun$5$$anon$1.next(package.scala:147)
at scala.collection.Iterator$$anon$11.next(Iterator.scala:328)
at org.apache.spark.rdd.PairRDDFunctions$$anonfun$saveAsHadoopDataset$1$$anonfun$13$$anonfun$apply$6.apply$mcV$sp(PairRDDFunctions.scala:1109)
at org.apache.spark.rdd.PairRDDFunctions$$anonfun$saveAsHadoopDataset$1$$anonfun$13$$anonfun$apply$6.apply(PairRDDFunctions.scala:1108)
at org.apache.spark.rdd.PairRDDFunctions$$anonfun$saveAsHadoopDataset$1$$anonfun$13$$anonfun$apply$6.apply(PairRDDFunctions.scala:1108)
at org.apache.spark.util.Utils$.tryWithSafeFinally(Utils.scala:1206)
at org.apache.spark.rdd.PairRDDFunctions$$anonfun$saveAsHadoopDataset$1$$anonfun$13.apply(PairRDDFunctions.scala:1116)
at org.apache.spark.rdd.PairRDDFunctions$$anonfun$saveAsHadoopDataset$1$$anonfun$13.apply(PairRDDFunctions.scala:1095)
at org.apache.spark.scheduler.ResultTask.runTask(ResultTask.scala:66)
at org.apache.spark.scheduler.Task.run(Task.scala:88)
at org.apache.spark.executor.Executor$TaskRunner.run(Executor.scala:214)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Driver stacktrace:
at org.apache.spark.scheduler.DAGScheduler.org$apache$spark$scheduler$DAGScheduler$$failJobAndIndependentStages(DAGScheduler.scala:1280)
at org.apache.spark.scheduler.DAGScheduler$$anonfun$abortStage$1.apply(DAGScheduler.scala:1268)
at org.apache.spark.scheduler.DAGScheduler$$anonfun$abortStage$1.apply(DAGScheduler.scala:1267)
at scala.collection.mutable.ResizableArray$class.foreach(ResizableArray.scala:59)
at scala.collection.mutable.ArrayBuffer.foreach(ArrayBuffer.scala:47)
at org.apache.spark.scheduler.DAGScheduler.abortStage(DAGScheduler.scala:1267)
at org.apache.spark.scheduler.DAGScheduler$$anonfun$handleTaskSetFailed$1.apply(DAGScheduler.scala:697)
at org.apache.spark.scheduler.DAGScheduler$$anonfun$handleTaskSetFailed$1.apply(DAGScheduler.scala:697)
at scala.Option.foreach(Option.scala:236)
at org.apache.spark.scheduler.DAGScheduler.handleTaskSetFailed(DAGScheduler.scala:697)
at org.apache.spark.scheduler.DAGSchedulerEventProcessLoop.doOnReceive(DAGScheduler.scala:1493)
at org.apache.spark.scheduler.DAGSchedulerEventProcessLoop.onReceive(DAGScheduler.scala:1455)
at org.apache.spark.scheduler.DAGSchedulerEventProcessLoop.onReceive(DAGScheduler.scala:1444)
at org.apache.spark.util.EventLoop$$anon$1.run(EventLoop.scala:48)
at org.apache.spark.scheduler.DAGScheduler.runJob(DAGScheduler.scala:567)
at org.apache.spark.SparkContext.runJob(SparkContext.scala:1813)
at org.apache.spark.SparkContext.runJob(SparkContext.scala:1826)
at org.apache.spark.SparkContext.runJob(SparkContext.scala:1903)
at org.apache.spark.rdd.PairRDDFunctions$$anonfun$saveAsHadoopDataset$1.apply$mcV$sp(PairRDDFunctions.scala:1124)
at org.apache.spark.rdd.PairRDDFunctions$$anonfun$saveAsHadoopDataset$1.apply(PairRDDFunctions.scala:1065)
at org.apache.spark.rdd.PairRDDFunctions$$anonfun$saveAsHadoopDataset$1.apply(PairRDDFunctions.scala:1065)
at org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:147)
at org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:108)
at org.apache.spark.rdd.RDD.withScope(RDD.scala:306)
at org.apache.spark.rdd.PairRDDFunctions.saveAsHadoopDataset(PairRDDFunctions.scala:1065)
at org.apache.spark.rdd.PairRDDFunctions$$anonfun$saveAsHadoopFile$4.apply$mcV$sp(PairRDDFunctions.scala:989)
at org.apache.spark.rdd.PairRDDFunctions$$anonfun$saveAsHadoopFile$4.apply(PairRDDFunctions.scala:965)
at org.apache.spark.rdd.PairRDDFunctions$$anonfun$saveAsHadoopFile$4.apply(PairRDDFunctions.scala:965)
at org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:147)
at org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:108)
at org.apache.spark.rdd.RDD.withScope(RDD.scala:306)
at org.apache.spark.rdd.PairRDDFunctions.saveAsHadoopFile(PairRDDFunctions.scala:965)
at org.apache.spark.rdd.PairRDDFunctions$$anonfun$saveAsHadoopFile$1.apply$mcV$sp(PairRDDFunctions.scala:897)
at org.apache.spark.rdd.PairRDDFunctions$$anonfun$saveAsHadoopFile$1.apply(PairRDDFunctions.scala:897)
at org.apache.spark.rdd.PairRDDFunctions$$anonfun$saveAsHadoopFile$1.apply(PairRDDFunctions.scala:897)
at org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:147)
at org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:108)
at org.apache.spark.rdd.RDD.withScope(RDD.scala:306)
at org.apache.spark.rdd.PairRDDFunctions.saveAsHadoopFile(PairRDDFunctions.scala:896)
at org.apache.spark.rdd.RDD$$anonfun$saveAsTextFile$1.apply$mcV$sp(RDD.scala:1426)
at org.apache.spark.rdd.RDD$$anonfun$saveAsTextFile$1.apply(RDD.scala:1405)
at org.apache.spark.rdd.RDD$$anonfun$saveAsTextFile$1.apply(RDD.scala:1405)
at org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:147)
at org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:108)
at org.apache.spark.rdd.RDD.withScope(RDD.scala:306)
at org.apache.spark.rdd.RDD.saveAsTextFile(RDD.scala:1405)
at com.databricks.spark.csv.package$CsvSchemaRDD.saveAsCsvFile(package.scala:169)
at com.databricks.spark.csv.DefaultSource.createRelation(DefaultSource.scala:165)
at org.apache.spark.sql.execution.datasources.ResolvedDataSource$.apply(ResolvedDataSource.scala:170)
at org.apache.spark.sql.DataFrameWriter.save(DataFrameWriter.scala:146)
at org.apache.spark.sql.DataFrameWriter.save(DataFrameWriter.scala:137)
at BlogApp$.main(BlogApp.scala:30)
at BlogApp.main(BlogApp.scala)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.apache.spark.deploy.SparkSubmit$.org$apache$spark$deploy$SparkSubmit$$runMain(SparkSubmit.scala:672)
at org.apache.spark.deploy.SparkSubmit$.doRunMain$1(SparkSubmit.scala:180)
at org.apache.spark.deploy.SparkSubmit$.submit(SparkSubmit.scala:205)
at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:120)
at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)
Caused by: scala.MatchError: [14850000,2013-11-13 00:00,SW3 4EU,9,,ORMONDE GATE,,LONDON,KENSINGTON AND CHELSEA,GREATER LONDON,9 / ORMONDE GATE / LONDON / KENSINGTON AND CHELSEA / GREATER LONDON / SW3 4EU] (of class org.apache.spark.sql.catalyst.expressions.GenericRow)
at BlogApp$$anonfun$main$1.apply(BlogApp.scala:24)
at BlogApp$$anonfun$main$1.apply(BlogApp.scala:24)
at scala.collection.Iterator$$anon$11.next(Iterator.scala:328)
at scala.collection.Iterator$$anon$11.next(Iterator.scala:328)
at scala.collection.Iterator$$anon$11.next(Iterator.scala:328)
at com.databricks.spark.csv.package$CsvSchemaRDD$$anonfun$5$$anon$1.next(package.scala:154)
at com.databricks.spark.csv.package$CsvSchemaRDD$$anonfun$5$$anon$1.next(package.scala:147)
at scala.collection.Iterator$$anon$11.next(Iterator.scala:328)
at org.apache.spark.rdd.PairRDDFunctions$$anonfun$saveAsHadoopDataset$1$$anonfun$13$$anonfun$apply$6.apply$mcV$sp(PairRDDFunctions.scala:1109)
at org.apache.spark.rdd.PairRDDFunctions$$anonfun$saveAsHadoopDataset$1$$anonfun$13$$anonfun$apply$6.apply(PairRDDFunctions.scala:1108)
at org.apache.spark.rdd.PairRDDFunctions$$anonfun$saveAsHadoopDataset$1$$anonfun$13$$anonfun$apply$6.apply(PairRDDFunctions.scala:1108)
at org.apache.spark.util.Utils$.tryWithSafeFinally(Utils.scala:1206)
at org.apache.spark.rdd.PairRDDFunctions$$anonfun$saveAsHadoopDataset$1$$anonfun$13.apply(PairRDDFunctions.scala:1116)
at org.apache.spark.rdd.PairRDDFunctions$$anonfun$saveAsHadoopDataset$1$$anonfun$13.apply(PairRDDFunctions.scala:1095)
at org.apache.spark.scheduler.ResultTask.runTask(ResultTask.scala:66)
at org.apache.spark.scheduler.Task.run(Task.scala:88)
at org.apache.spark.executor.Executor$TaskRunner.run(Executor.scala:214)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
----
Hmmm\....no improvement. At this point I realised I'd accidentally missed off the +++<cite>+++fullAddress+++</cite>+++ argument from the case statement so I added that in:
[source,scala]
----
case class BlogTransaction(price: String, date: String, postCode:String, paon:String, saon:String, street:String, locality:String, city:String, district:String, county:String)
...
case Row(price: String, date: String, postCode:String, paon:String, saon:String, street:String, locality:String, city:String, district:String, county:String) =>
----
changed to:
[source,scala]
----
case class BlogTransaction(price: String, date: String, postCode:String, paon:String, saon:String, street:String, locality:String, city:String, district:String, county:String, fullAddress:String)
...
case Row(price: String, date: String, postCode:String, paon:String, saon:String, street:String, locality:String, city:String, district:String, county:String, fullAddress:String) =>
----
Attempt #3:
[source,bash]
----
./spark-1.5.0-bin-hadoop2.6/bin/spark-submit --class BlogApp --master local[8] --packages com.databricks:spark-csv_2.10:1.2.0 target/scala-2.10/simple-project_2.10-1.0.jar
...
15/10/27 23:06:03 INFO DAGScheduler: Job 1 finished: saveAsTextFile at package.scala:169, took 39.665661 s
----
Hoorah, it took a bit of guess work but finally it's finally working!
For completeness, here's the final version of the Spark job:
[source,scala]
----
import org.apache.spark.sql.{SQLContext, _}
import org.apache.spark.{SparkConf, SparkContext}
case class BlogTransaction(price: Integer, date: String, postCode:String, paon:String, saon:String, street:String, locality:String, city:String, district:String, county:String, fullAddress:String)
object BlogApp {
def main(args: Array[String]) {
val conf = new SparkConf().setAppName("Simple Application")
val sc = new SparkContext(conf)
val sqlContext = new SQLContext(sc)
import sqlContext.implicits._
sqlContext.read.format("com.databricks.spark.csv").load("/Users/markneedham/projects/land-registry/pp-complete.csv").registerTempTable("transactions")
val rows = sqlContext.sql("select C1,C2,C3,C7,C8,C9,C10,C11,C12,C13 from transactions where transactions.C3 = 'SW3 4EU'").map(x =>
Row.fromSeq(x.toSeq ++ Array(Array(x.get(4), x.get(3), x.get(5), x.get(6), x.get(7), x.get(8), x.get(9), x.get(2))
.map(x => x.toString)
.filter(x => !x.isEmpty)
.distinct
.mkString(" / "))))
val path: String = "/tmp/tx-" + System.currentTimeMillis() + ".csv"
rows.map {
case Row(price: Integer, date: String, postCode:String, paon:String, saon:String, street:String, locality:String, city:String, district:String, county:String, fullAddress:String) =>
BlogTransaction(price, date, postCode, paon, saon, street, locality, city, district, county, fullAddress) }
.toDF()
.write
.format("com.databricks.spark.csv")
.save(path)
}
}
---- | null | null | [
0.01039359625428915,
-0.03837723657488823,
-0.02278192527592182,
0.047268062829971313,
0.0957815870642662,
0.0065006990917027,
-0.00885754358023405,
0.04744996130466461,
0.039286717772483826,
0.0004674989322666079,
-0.008751467801630497,
-0.013675497844815254,
-0.0593813955783844,
0.019701043143868446,
-0.026939773932099342,
0.06569024175405502,
0.06964363902807236,
0.005812081973999739,
0.02785593457520008,
0.005190113093703985,
0.04956558346748352,
0.06900501251220703,
-0.016198579221963882,
0.04566211625933647,
-0.007072901353240013,
-0.0014034255873411894,
0.014092572033405304,
0.008170259185135365,
-0.06222677603363991,
-0.013862584717571735,
0.02015107125043869,
0.032566964626312256,
0.019681895151734352,
0.005768565461039543,
0.007697411347180605,
-0.0024141238536685705,
-0.02494329959154129,
-0.010399099439382553,
-0.004489911254495382,
0.023177921772003174,
-0.0476224422454834,
0.029586633667349815,
-0.01709030009806156,
0.013313313946127892,
-0.037116095423698425,
0.007595926523208618,
-0.05998954921960831,
0.018994426354765892,
-0.007208236958831549,
-0.008160069584846497,
-0.03758837282657623,
0.02735796757042408,
-0.019854657351970673,
-0.014978664927184582,
0.005410694517195225,
0.0449087992310524,
-0.016958951950073242,
-0.0978604182600975,
0.0692141056060791,
-0.013375886715948582,
0.012251649051904678,
-0.036668334156274796,
-0.010524529032409191,
0.023752868175506592,
0.010559406131505966,
-0.05097465589642525,
-0.0062828208319842815,
0.08250214904546738,
-0.04506202042102814,
-0.05027848109602928,
0.005523255094885826,
0.029022004455327988,
0.003911349456757307,
-0.004499855916947126,
-0.0007762281456962228,
-0.035869747400283813,
0.009201690554618835,
0.04877793416380882,
-0.008264807984232903,
0.04367528855800629,
-0.04912548139691353,
-0.030822262167930603,
0.00852163601666689,
0.026549920439720154,
0.021144121885299683,
-0.04057977721095085,
-0.06760111451148987,
-0.03983088955283165,
-0.03627936169505119,
0.061453644186258316,
0.029254866763949394,
-0.023913828656077385,
0.011060184799134731,
0.020573075860738754,
-0.00921615120023489,
0.0025316288229078054,
-0.00048390254960395396,
-0.002413144800812006,
-0.004492840263992548,
-0.03110298328101635,
-0.07543469220399857,
0.015594812110066414,
0.025362567976117134,
0.03896530717611313,
-0.06686470657587051,
-0.023395562544465065,
-0.02220083586871624,
0.0035735995043069124,
0.01697772741317749,
0.020907754078507423,
-0.0011917965020984411,
-0.0060331327840685844,
-0.028943035751581192,
0.005691892467439175,
-0.08649944514036179,
0.05421147122979164,
0.01893586479127407,
-0.007642286363989115,
0.007163667120039463,
0.0261660348623991,
0.04741546884179115,
0.04503673315048218,
-0.015507616102695465,
0.06528415530920029,
0.01781616359949112,
0.06039499118924141,
0.0032300574239343405,
0.06563139706850052,
-0.0010423316853120923,
-0.06375622004270554,
-0.021898970007896423,
0.05178316682577133,
-0.0008593198726885021,
0.0035296163987368345,
0.00616443669423461,
-0.032255448400974274,
-0.03339485824108124,
-0.009377643465995789,
0.08343303948640823,
0.02466670610010624,
0.016105839982628822,
-0.02670186012983322,
0.020113395527005196,
0.009242412634193897,
0.02463616617023945,
0.04707220569252968,
-0.018456118181347847,
-0.020869974046945572,
-0.026774248108267784,
0.026267560198903084,
0.011324675753712654,
0.02740384265780449,
0.07481489330530167,
-0.008673430420458317,
0.013111567124724388,
0.09785593301057816,
0.0304422527551651,
0.01101503986865282,
-0.023596961051225662,
0.02408120408654213,
0.03874130919575691,
0.034813012927770615,
0.030072959139943123,
0.0333058163523674,
-0.025912649929523468,
-0.04175989702343941,
0.02634565904736519,
0.016791699454188347,
-0.016064239665865898,
0.0061360630206763744,
-0.05541100725531578,
-0.060859449207782745,
0.07854590564966202,
-0.032779909670352936,
0.020863324403762817,
0.02368485927581787,
0.09145912528038025,
0.0253644660115242,
0.06015633046627045,
0.0005387385608628392,
-0.07254645973443985,
0.04032670333981514,
-0.01461736112833023,
0.023542651906609535,
0.03334575518965721,
-0.005528357345610857,
0.058780737221241,
0.03351603448390961,
0.015888545662164688,
0.037232160568237305,
-0.06372618675231934,
-0.07622301578521729,
-0.03476491943001747,
-0.02018735557794571,
0.038933537900447845,
-0.020732931792736053,
0.031050799414515495,
0.02954023703932762,
0.02037026174366474,
0.015294385142624378,
-0.009826661087572575,
0.005496436730027199,
0.024836551398038864,
-0.04538083076477051,
-0.03652455285191536,
0.029233593493700027,
0.034653440117836,
-0.027068836614489555,
0.005281429272145033,
-0.0030704571399837732,
-0.039844512939453125,
0.00408880366012454,
0.05161488056182861,
-0.038194697350263596,
0.04790540412068367,
0.03607254847884178,
0.04896867275238037,
-0.01422231737524271,
0.034828122705221176,
-0.0448535718023777,
0.06825526058673859,
-0.007534004282206297,
-0.03055194951593876,
0.0006707733264192939,
-0.010614322498440742,
0.1220812276005745,
0.052583370357751846,
-0.004026176407933235,
-0.06990959495306015,
0.024222249165177345,
-0.017764437943696976,
-0.03564129024744034,
-0.0017120041884481907,
-0.051959969103336334,
-0.005802547093480825,
0.016993273049592972,
-0.0533422976732254,
-0.04489646479487419,
0.003510805545374751,
-0.01522387471050024,
-0.01461546029895544,
0.05071186646819115,
-0.004916558973491192,
0.03297978267073631,
0.006670513655990362,
-0.025762544944882393,
0.010542703792452812,
-0.04305949807167053,
-0.07112415879964828,
-0.02175823226571083,
0.019291330128908157,
-0.018064023926854134,
0.04445841535925865,
-0.04152116924524307,
-0.028772490099072456,
-0.014105633832514286,
-0.05042974278330803,
0.01941237598657608,
0.06172313913702965,
0.04672247916460037,
-0.019040007144212723,
0.04747653752565384,
-0.05255402997136116,
0.002632764633744955,
-0.01074869092553854,
-0.008124880492687225,
-0.01062410231679678,
-0.011894729919731617,
0.0013889254769310355,
0.009596934542059898,
0.01718585006892681,
0.002345687709748745,
0.03558390587568283,
0.011971770785748959,
0.025021767243742943,
-0.023583749309182167,
0.03879211097955704,
-0.028757324442267418,
0.002150519983842969,
-0.028530506417155266,
-0.005904446821659803,
0.021886302158236504,
-0.03433530777692795,
0.00027438809047453105,
0.005883438978344202,
-0.06640242040157318,
0.055402789264917374,
-0.03316127508878708,
-0.053133781999349594,
-0.0016292022773995996,
0.010650478303432465,
0.02340220846235752,
0.01785554364323616,
0.002038554986938834,
0.06651866436004639,
0.03473445028066635,
-0.002722398843616247,
0.028484757989645004,
0.001597900758497417,
0.04135998710989952,
-0.007999168708920479,
0.06317763775587082,
0.04397919774055481,
-0.005537180230021477,
-0.04272322356700897,
-0.05393397808074951,
-0.029027186334133148,
-0.028547517955303192,
-0.2553218603134155,
0.05325603485107422,
-0.05172055587172508,
-0.04264076426625252,
0.020548904314637184,
-0.04701421409845352,
-0.015853654593229294,
-0.038621339946985245,
-0.0009268401772715151,
-0.004836161620914936,
-0.002401908626779914,
-0.0621262863278389,
-0.021796172484755516,
0.025539135560393333,
0.0033560865558683872,
0.02135935053229332,
0.0007148843142203987,
-0.05278687924146652,
0.02543095126748085,
0.0235954187810421,
0.010769469663500786,
-0.03974200785160065,
-0.0029961864929646254,
0.0685291588306427,
0.019299885258078575,
0.05664397403597832,
-0.05487246811389923,
0.023571671918034554,
-0.06507762521505356,
-0.02784036099910736,
0.04757148399949074,
-0.045748624950647354,
0.005696069449186325,
-0.008443477563560009,
-0.016613677144050598,
-0.014638916589319706,
0.015283054672181606,
0.015388053841888905,
0.004633234813809395,
0.006401174236088991,
-0.029559656977653503,
-0.022106729447841644,
0.0036303186789155006,
0.00801765639334917,
0.06516101956367493,
-0.02320631593465805,
-0.07413789629936218,
-0.015253336168825626,
-0.02879326418042183,
0.0680583119392395,
-0.02699444070458412,
-0.01873151585459709,
-0.02625206485390663,
0.009945323690772057,
-0.025141729041934013,
0.02389567717909813,
-0.0013663721038028598,
0.007449667900800705,
-0.026704616844654083,
-0.01900867186486721,
-0.006235934793949127,
-0.05438365414738655,
0.003292479319497943,
-0.05505005642771721,
-0.015484191477298737,
-0.07040967792272568,
-0.07977772504091263,
-0.021740775555372238,
0.04818463698029518,
0.048375558108091354,
-0.03898951783776283,
0.02745313011109829,
0.004719707649201155,
-0.11135800182819366,
0.006091526709496975,
-0.0641922876238823,
-0.003335862886160612,
-0.012308437377214432,
-0.022165752947330475,
0.0561370849609375,
-0.05293022841215134,
-0.0619044303894043,
0.026094138622283936,
-0.005820846185088158,
0.01804216578602791,
-0.02558314800262451,
0.013385593891143799,
-0.020961366593837738,
-0.0037083865609019995,
-0.028479665517807007,
0.0621398463845253,
-0.04560262709856033,
-0.016689062118530273,
-0.011631190776824951,
-0.037225671112537384,
0.04636232182383537,
-0.009083335287868977,
0.00020607242186088115,
-0.0036506701726466417,
0.058878425508737564,
0.01790221408009529,
-0.06569240242242813,
-0.007676603272557259,
-0.051926251500844955,
-0.030296465381979942,
-0.015133833512663841,
-0.04835306480526924,
0.019157985225319862,
0.025270575657486916,
0.007102568633854389,
0.022314991801977158,
-0.044467177242040634,
0.022300424054265022,
-0.0664978176355362,
-0.011607823893427849,
-0.018562600016593933,
0.015741197392344475,
0.011625667102634907,
0.04261878505349159,
-0.029279768466949463,
-0.06847967952489853,
-0.0018292400054633617,
0.028451552614569664,
-0.022821154445409775,
-0.047970645129680634,
-0.022246208041906357,
0.01823517680168152,
-0.0016756743425503373,
-0.007423451170325279,
-0.015327910892665386,
-0.008591769263148308,
0.0016792292008176446,
0.015203616581857204,
-0.009102164767682552,
0.0054732696153223515,
-0.018252788111567497,
-0.04850206896662712,
-0.011106651276350021,
-0.0035284124314785004,
0.04742610082030296,
-0.006909468211233616,
-0.013337919488549232,
0.021389251574873924,
0.04134642705321312,
0.05215003713965416,
0.002755576279014349,
0.004437239840626717,
0.003318885574117303,
0.006616532802581787,
-0.013744539581239223,
0.008162915706634521,
-0.02601083554327488,
0.002086734166368842,
-0.038138497620821,
-0.05935855209827423,
-0.011725987307727337,
0.03197171911597252,
0.007573448587208986,
-0.01101350411772728,
-0.03321124240756035,
0.024606581777334213,
-0.03564414754509926,
0.0043911412358284,
-0.012630187906324863,
0.008775048889219761,
0.03163164108991623,
-0.0033657029271125793,
0.013907168060541153,
0.01594015210866928,
0.025593288242816925,
-0.009638097137212753,
-0.009161986410617828,
0.005782528780400753,
0.012754469178617,
-0.023904671892523766,
-0.0011602055747061968,
0.04246078431606293,
0.02526567131280899,
0.015785330906510353,
0.010819988325238228,
-0.02661358378827572,
0.001958482200279832,
-0.003775680670514703,
0.005100775044411421,
0.049657486379146576,
0.04977627471089363,
-0.01713833026587963,
-0.0034275499638170004,
-0.008005289360880852,
-0.04819697514176369,
-0.03657064959406853,
-0.019219398498535156,
-0.003033638698980212,
0.024038655683398247,
-0.01619851589202881,
-0.07685253024101257,
0.05586923286318779,
0.015563301742076874,
-0.016853677108883858,
-0.003624817356467247,
-0.018951373174786568,
-0.021143853664398193,
-0.02959049865603447,
0.010168321430683136,
0.07281044870615005,
-0.035686194896698,
-0.004122323822230101,
-0.023001661524176598,
0.0078058624640107155,
0.03378180414438248,
0.012449387460947037,
-0.0838591605424881,
-0.012325274758040905,
-0.040281955152750015,
0.032253820449113846,
-0.04396730661392212,
-0.057260312139987946,
-0.03467683121562004,
0.02653363347053528,
-0.0157697144895792,
0.011232724413275719,
-0.00397490942850709,
0.029465069994330406,
-0.003326062113046646,
0.003072444349527359,
0.02743842452764511,
-0.006286583840847015,
-0.0157775841653347,
0.017238140106201172,
-0.018167853355407715,
-0.002647419460117817,
-0.022339925169944763,
0.020581098273396492,
0.03280122950673103,
-0.0172431580722332,
-0.01212936732918024,
-0.0407511368393898,
0.005070740357041359,
-0.023014578968286514,
0.0759839341044426,
0.025174623355269432,
-0.012961243279278278,
-0.011683938093483448,
0.032010264694690704,
-0.0002009351592278108,
0.022666526958346367,
-0.003706814954057336,
-0.018519388511776924,
0.028930675238370895,
0.06214676424860954,
0.005061828996986151,
0.02857944555580616,
-0.012267923913896084,
-0.032386187463998795,
0.06842145323753357,
-0.030964458361268044,
-0.029507484287023544,
-0.008208278566598892,
-0.05325579270720482,
0.04163294658064842,
0.021205293014645576,
-0.01538933627307415,
-0.005408552475273609,
0.04753199592232704,
0.04508953541517258,
0.01714637689292431,
0.023897094652056694,
-0.011356228962540627,
0.03082849644124508,
-0.034751273691654205,
-0.02385832369327545,
-0.08730010688304901,
0.011031280271708965,
0.033892128616571426,
-0.019642982631921768,
-0.02282978780567646,
-0.017553076148033142,
-0.06088004633784294,
0.001614560722373426,
-0.06685542315244675,
-0.06052820384502411,
0.041110072284936905,
-0.018976308405399323,
0.02120925672352314,
0.006787824910134077,
-0.008344903588294983,
0.02650841325521469,
0.0345255583524704,
-0.041846029460430145,
-0.015064534731209278,
-0.04270637035369873,
0.06355883926153183,
-0.0021939962171018124,
-0.0024445585440844297,
-0.021447742357850075,
-0.055201660841703415,
0.05991671234369278,
0.011046577244997025,
0.023923764005303383,
0.04397372901439667,
-0.021970564499497414,
0.051992807537317276,
0.013466058298945427,
-0.03974359109997749,
0.0019689640030264854,
0.028155267238616943,
-0.016208918765187263,
-0.043893784284591675,
0.0158422589302063,
0.008748684078454971,
0.013540896587073803,
-0.027836868539452553,
0.09795855730772018,
0.033319950103759766,
-0.0323186069726944,
-0.04283880442380905,
-0.004641998093575239,
-0.016193239018321037,
-0.041406456381082535,
-0.0039988975040614605,
-0.0013718880945816636,
-0.02994363382458687,
0.05201015621423721,
-0.031971246004104614,
0.01791570521891117,
0.06419967859983444,
-0.0034237962681800127,
-0.013111245818436146,
0.03184830769896507,
0.06837871670722961,
0.07981406152248383,
0.004104556515812874,
0.013916519470512867,
0.05706902593374252,
-0.006628659553825855,
-0.04871537908911705,
0.02391791343688965,
-0.047393523156642914,
0.013421350158751011,
-0.019199158996343613,
-0.016587914898991585,
0.07135851681232452,
0.004978674463927746,
0.09426618367433548,
-0.024696579203009605,
0.00011829035793198273,
0.01117665320634842,
0.00702764792367816,
0.03873094171285629,
0.021700166165828705,
0.014892431907355785,
0.034612756222486496,
-0.0106948371976614,
-0.014468973502516747,
0.017563387751579285,
0.016566786915063858,
-0.05296327918767929,
0.027859682217240334,
-0.01001119427382946,
0.01797807402908802,
0.03299451246857643,
0.04584524407982826,
0.08295631408691406,
-0.01238564494997263,
-0.021303923800587654,
0.0056568956933915615,
0.04418495297431946,
-0.012547021731734276,
0.02061392553150654,
-0.009378636255860329,
-0.020610516890883446,
-0.019660238176584244,
-0.055961836129426956,
-0.0248730406165123,
-0.01497617270797491,
-0.06018218770623207,
0.012040161527693272,
-0.016921374946832657,
0.030784470960497856,
0.043839942663908005,
0.01728312484920025,
-0.030698200687766075,
-0.04669379070401192,
-0.052941907197237015,
-0.021152758970856667,
-0.08007196336984634,
-0.02064390666782856,
0.002858627587556839,
-0.007946081459522247,
-0.02607548050582409,
-0.040483176708221436,
-0.037993136793375015,
-0.019567450508475304,
0.020614994689822197,
-0.04522513225674629,
-0.023865865543484688,
0.005668350961059332,
0.0171981081366539,
0.021305296570062637,
0.03763085603713989,
0.03475236892700195,
0.010848622769117355,
0.0005049006431363523,
-0.002031942130997777,
-0.004538952838629484,
0.047315433621406555,
0.01798912324011326,
0.0029800087213516235,
-0.05586445331573486,
0.011864515021443367,
0.02025374211370945,
-0.0065698763355612755,
-0.07646320760250092,
0.033122967928647995,
0.05771676078438759,
0.008943869732320309,
0.045389045029878616,
-0.013249038718640804,
-0.019143585115671158,
-0.041499603539705276,
-0.04682821035385132,
-0.02079915627837181,
0.00967443734407425,
0.028591761365532875,
-0.014003236778080463,
0.08044792711734772,
0.07393348962068558,
-0.006131608970463276,
-0.02513609081506729,
-0.012157272547483444,
-0.013248180039227009,
0.02504700981080532,
-0.04741808772087097,
-0.03655845299363136,
-0.048978645354509354,
-0.07178737968206406,
-0.011213011108338833,
-0.0002358108467888087,
-0.05158422887325287,
-0.025859825313091278,
0.011002220213413239,
0.014338653534650803,
-0.06421233713626862,
0.021604135632514954,
-0.03279365226626396,
0.009255298413336277,
-0.02557460591197014,
-0.0324900858104229,
-0.028903398662805557,
0.04532003775238991,
0.01413534115999937,
0.00971616804599762,
-0.0037614426109939814,
-0.010933644138276577,
0.030048755928874016,
-0.0017836906481534243,
0.034279413521289825,
0.04812966287136078,
-0.017602579668164253,
-0.009871227666735649
] | [
-0.06116781756281853,
-0.05052359402179718,
-0.017361415550112724,
0.007442521397024393,
0.08154968172311783,
-0.054690152406692505,
-0.027031762525439262,
0.0030666892416775227,
0.008954237215220928,
0.024678757414221764,
0.03812450170516968,
-0.07698668539524078,
0.01143153477460146,
-0.04399628937244415,
0.060787003487348557,
-0.002065901644527912,
0.014387075789272785,
-0.07813823968172073,
-0.049009960144758224,
0.06024885177612305,
0.013081518933176994,
-0.03890520706772804,
-0.04815162345767021,
-0.05258823186159134,
0.008567406795918941,
0.028095198795199394,
0.022268913686275482,
-0.04846008121967316,
-0.051543936133384705,
-0.2083580493927002,
0.005614804569631815,
-0.013472169637680054,
0.026668304577469826,
-0.00659180385991931,
0.012036668136715889,
0.029631255194544792,
0.006085320375859737,
0.022227007895708084,
0.0036692959256470203,
0.03306058049201965,
0.03054676204919815,
-0.026775257661938667,
-0.07139425724744797,
-0.023615380749106407,
-0.00027769184089265764,
-0.008188440464437008,
-0.004559433553367853,
0.016746213659644127,
0.007881656289100647,
0.007533182390034199,
-0.10692640393972397,
0.01072692684829235,
0.0006467131897807121,
-0.012416503392159939,
-0.0016111062141135335,
0.05680029094219208,
0.05417846888303757,
0.07329937070608139,
0.03871450945734978,
0.004498899448662996,
0.016121741384267807,
0.010728559456765652,
-0.1558474451303482,
0.0887792631983757,
0.031491003930568695,
0.04655938968062401,
-0.040143370628356934,
-0.041678521782159805,
-0.029761597514152527,
0.034114427864551544,
-0.002731691114604473,
-0.01773393340408802,
-0.04939466342329979,
0.09008418768644333,
0.005300100892782211,
-0.004188836086541414,
-0.0516531877219677,
0.03811110928654671,
0.02835303172469139,
-0.020237021148204803,
-0.0907134935259819,
-0.006523552816361189,
-0.02586708590388298,
0.014922849833965302,
-0.03117576241493225,
0.03758053109049797,
-0.013850073330104351,
0.0596175454556942,
0.041241470724344254,
0.020277507603168488,
0.04507897421717644,
-0.0091395890340209,
0.04150085523724556,
0.03289637342095375,
-0.10147512704133987,
-0.03276557847857475,
0.0020881083328276873,
-0.007779689971357584,
0.00440966198220849,
0.40712156891822815,
-0.027759244665503502,
-0.017697103321552277,
0.012695583514869213,
0.044742509722709656,
0.008449649438261986,
-0.02534521371126175,
-0.006637283600866795,
-0.03473694622516632,
0.020897772163152695,
-0.039386387914419174,
0.00982305034995079,
-0.03278622031211853,
0.04773060232400894,
-0.07032259553670883,
0.011830649338662624,
0.027594586834311485,
0.008994175121188164,
-0.0006681153317913413,
-0.03525909408926964,
0.03270042687654495,
-0.015633005648851395,
0.005539606790989637,
0.012130845338106155,
0.009158454835414886,
0.027105193585157394,
0.015515412203967571,
0.0685083270072937,
0.05114511400461197,
0.062325865030288696,
0.02672993391752243,
0.030230049043893814,
-0.006880474276840687,
-0.1022278368473053,
-0.01024695299565792,
0.006050765048712492,
0.035614147782325745,
0.03684787079691887,
-0.04296895116567612,
0.008857352659106255,
0.018927259370684624,
0.00867566280066967,
-0.047122612595558167,
-0.006755781825631857,
0.006039523519575596,
-0.00022439575695898384,
0.11231045424938202,
-0.03169289976358414,
-0.021377071738243103,
0.007113701663911343,
-0.03795646131038666,
-0.01615097001194954,
0.02948184683918953,
0.010275587439537048,
-0.06367920339107513,
0.02532634325325489,
0.03616705164313316,
0.06031868979334831,
-0.04045392945408821,
-0.05411486327648163,
0.0014025568962097168,
-0.016085946932435036,
-0.04115068167448044,
-0.029355723410844803,
0.03327013552188873,
0.040739964693784714,
-0.07597397267818451,
-0.02541605941951275,
0.00012937224528286606,
-0.0076823486015200615,
-0.018276916816830635,
0.008212474174797535,
0.000613332143984735,
-0.011876359581947327,
0.0053299786522984505,
0.05979770049452782,
-0.03767689689993858,
-0.040248993784189224,
0.00536677660420537,
0.02629929594695568,
0.018604444339871407,
-0.00792404543608427,
0.033669404685497284,
-0.010662535205483437,
0.05756918713450432,
-0.04310388118028641,
-0.09298983216285706,
-0.07299817353487015,
0.014391821809113026,
-0.025903891772031784,
-0.0273060891777277,
-0.023647377267479897,
-0.009609478525817394,
-0.04377828165888786,
0.06246160715818405,
-0.014786680229008198,
-0.02118263952434063,
0.058063339442014694,
0.030178962275385857,
0.018199194222688675,
-0.037371113896369934,
0.02701493538916111,
0.05803220346570015,
-0.012220127508044243,
0.025906478986144066,
-0.08044937998056412,
-0.0032497933134436607,
0.016136184334754944,
-0.04291975125670433,
0.0394928902387619,
0.005682364106178284,
-0.005025340244174004,
-0.009986006654798985,
-0.01177480909973383,
0.013229649513959885,
-0.03131171688437462,
-0.010633429512381554,
-0.02240055613219738,
-0.02905990742146969,
0.03508339449763298,
0.038529448211193085,
-0.03551183268427849,
-0.060075465589761734,
-0.017577677965164185,
-0.36656349897384644,
-0.01595325767993927,
0.016467859968543053,
-0.053836144506931305,
-0.025781163945794106,
-0.04308547079563141,
0.0024046534672379494,
0.022023843601346016,
-0.012290151789784431,
0.024179620668292046,
0.08201470971107483,
-0.04603263735771179,
0.01864803582429886,
-0.10126436501741409,
0.00764289777725935,
0.02762092649936676,
-0.04024520888924599,
-0.013060929253697395,
-0.034516341984272,
0.0495319701731205,
0.03145473822951317,
-0.0375690683722496,
-0.019125988706946373,
-0.023949671536684036,
0.0487116314470768,
-0.008215581998229027,
0.12531934678554535,
0.03050382062792778,
0.058655381202697754,
-0.07386952638626099,
0.051065560430288315,
0.013000166974961758,
0.00916798785328865,
-0.05578809976577759,
-0.006124167237430811,
-0.040763210505247116,
-0.019520942121744156,
0.05347171798348427,
-0.0011433778563514352,
-0.001681829453445971,
-0.06375398486852646,
0.022736340761184692,
-0.051053352653980255,
-0.01982489787042141,
0.0007570362067781389,
-0.00811826717108488,
0.0007048510015010834,
-0.0064244698733091354,
0.004354707896709442,
0.0891113206744194,
0.013355812057852745,
0.016885923221707344,
0.044972050935029984,
0.037540193647146225,
0.07581836730241776,
-0.01656491868197918,
-0.0616111122071743,
0.03397616371512413,
0.018014511093497276,
-0.039781663566827774,
0.04611203819513321,
0.033806998282670975,
0.04551282152533531,
-0.04907379671931267,
0.010929194279015064,
-0.0006513404659926891,
-0.011455323547124863,
0.028091587126255035,
-0.0006054642144590616,
-0.031121397390961647,
-0.056423164904117584,
0.05803688243031502,
-0.018221773207187653,
0.042138148099184036,
0.018050123006105423,
0.06330294162034988,
-0.021154135465621948,
-0.024325039237737656,
-0.005590137559920549,
-0.006390922237187624,
0.06081495061516762,
-0.017256690189242363,
0.0510336197912693,
-0.0033125083427876234,
0.021904785186052322,
0.06364216655492783,
-0.0006517857545986772,
-0.0007206065929494798,
0.04195919260382652,
0.01200674194842577,
-0.007985441014170647,
-0.027222106233239174,
-0.04213041067123413,
-0.012696713209152222,
0.07983327656984329,
-0.0007115175831131637,
-0.26065027713775635,
0.02598336711525917,
0.021916737779974937,
0.05076920986175537,
-0.0005490935291163623,
0.014674537815153599,
0.01597416028380394,
-0.06308238953351974,
0.0008533512009307742,
0.02652627043426037,
-0.018831763416528702,
0.04018242657184601,
0.01873059570789337,
-0.01480051875114441,
-0.011547456495463848,
-0.012257851660251617,
0.06439326703548431,
0.025670034810900688,
0.02553623728454113,
-0.013547553680837154,
0.011629014275968075,
-0.010513251647353172,
0.14203017950057983,
0.02782546542584896,
-0.028617700561881065,
0.02114148996770382,
-0.012760606594383717,
-0.008075435645878315,
0.06675141304731369,
0.019389988854527473,
-0.014776825904846191,
0.011947568506002426,
0.030854133889079094,
0.03241438418626785,
0.04505382105708122,
-0.039399441331624985,
0.002310678828507662,
0.04059408977627754,
0.03245396912097931,
-0.04410340636968613,
0.007230901159346104,
0.037276893854141235,
-0.029961612075567245,
0.024756524711847305,
0.010906420648097992,
-0.01183773111552,
0.0026063728146255016,
-0.041474852710962296,
-0.04324967414140701,
-0.004100622143596411,
0.0063432143069803715,
-0.016603980213403702,
-0.02879795804619789,
0.0013755089603364468,
0.008120895363390446,
0.0736425593495369,
0.014854076318442822,
-0.015880554914474487,
0.004473165143281221,
-0.000663235317915678,
0.005282215308398008,
-0.08751723915338516,
0.10264037549495697,
-0.005424847826361656,
-0.009999039582908154
] | [
-0.003117040731012821,
0.018750812858343124,
-0.015888791531324387,
0.02028389275074005,
-0.015502596274018288,
-0.023881828412413597,
0.0032026460394263268,
0.016862936317920685,
-0.012499518692493439,
-0.00020775350276380777,
-0.035387057811021805,
-0.005221866071224213,
0.004524750169366598,
-0.05072136968374252,
-0.016633493825793266,
-0.04487115144729614,
-0.02531435526907444,
0.0034328827168792486,
0.011226898059248924,
-0.008519073016941547,
-0.014570479281246662,
0.034426167607307434,
0.0013035836163908243,
-0.014954647980630398,
-0.003095589578151703,
0.045739710330963135,
-0.02981921099126339,
0.06701762974262238,
0.02523491531610489,
-0.12268009781837463,
-0.0013774436665698886,
-0.03162553906440735,
0.006111735012382269,
0.020827725529670715,
-0.007920869626104832,
-0.005803687497973442,
-0.026116495952010155,
0.02938966639339924,
-0.020306548103690147,
0.0220089852809906,
0.032159484922885895,
-0.02607688494026661,
0.004638529382646084,
0.004493283573538065,
0.014595777727663517,
-0.012468275614082813,
0.03024599887430668,
-0.022246304899454117,
-0.00472244480624795,
0.01854470744729042,
-0.058394625782966614,
0.02252657525241375,
0.0018878860864788294,
0.016347592696547508,
0.0029165204614400864,
-0.00009293123730458319,
-0.012892385944724083,
0.04235660657286644,
-0.018379339948296547,
-0.03615622594952583,
-0.018490074202418327,
-0.02813304029405117,
-0.0501842238008976,
-0.02995496243238449,
0.014659405685961246,
-0.010788214392960072,
-0.04349752888083458,
0.00019539834465831518,
0.015033491887152195,
0.005554203409701586,
-0.003417907515540719,
0.05022929236292839,
-0.048211075365543365,
-0.013322081416845322,
-0.020050927996635437,
0.04547650367021561,
0.0006043583853170276,
-0.02598639391362667,
0.013332467526197433,
0.0006846906035207212,
-0.048061247915029526,
-0.0015049416106194258,
-0.003823630977421999,
0.011372770182788372,
-0.0306693147867918,
-0.017204346135258675,
-0.026381714269518852,
0.01459299772977829,
0.012420869432389736,
0.013363095931708813,
0.02040761709213257,
-0.020573651418089867,
0.021921232342720032,
0.03304174542427063,
-0.12475297600030899,
0.033513907343149185,
0.011087865568697453,
-0.034349873661994934,
-0.013427839614450932,
0.8075887560844421,
-0.03764503449201584,
0.014043430797755718,
-0.02894802764058113,
0.010784538462758064,
-0.023719798773527145,
-0.008937470614910126,
-0.03354230150580406,
0.008573346771299839,
-0.01986752636730671,
-0.066390261054039,
0.05827588215470314,
0.012427220121026039,
0.01032368652522564,
0.014937490224838257,
0.003934838343411684,
0.036533989012241364,
-0.0009920060401782393,
-0.014089493080973625,
-0.001815506722778082,
-0.01338308397680521,
-0.020063083618879318,
-0.004250525031238794,
-0.014436137862503529,
-0.0056261890567839146,
-0.00004996127972844988,
-0.18192695081233978,
0.01795460842549801,
-7.602351756889753e-33,
0.004386667162179947,
-0.0025110722053796053,
0.0403258316218853,
-0.02030893601477146,
0.03403281047940254,
-0.016906507313251495,
0.007009319961071014,
0.05658521503210068,
-0.02471105381846428,
-0.008529003709554672,
0.03536837175488472,
0.004939986392855644,
0.004999266471713781,
-0.031499333679676056,
-0.012442992068827152,
-0.03322236239910126,
0.010675613768398762,
0.014731599017977715,
-0.04711887612938881,
0.008443296886980534,
0.051753927022218704,
0.04148997366428375,
0.05385115370154381,
0.05985298380255699,
0.029376955702900887,
0.023619871586561203,
-0.003364774165675044,
0.02694757841527462,
-0.002065106062218547,
-0.036464955657720566,
-0.039108701050281525,
0.06113757938146591,
-0.01144659984856844,
-0.04184583202004433,
0.05052260681986809,
-0.06513363122940063,
-0.03273797780275345,
-0.006075859535485506,
-0.02526187337934971,
0.022018330171704292,
-0.044102054089307785,
-0.0032936998177319765,
-0.025434991344809532,
0.003451152238994837,
-0.02296580746769905,
-0.008980142883956432,
-0.0038050790317356586,
0.037868719547986984,
0.025558801367878914,
0.0510302409529686,
0.03831905126571655,
-0.018340660259127617,
0.009817793034017086,
0.026889001950621605,
0.005811518989503384,
0.04433281347155571,
-0.03211430087685585,
0.003570819040760398,
-0.00033361880923621356,
0.02525506168603897,
0.01696363463997841,
-0.012377847917377949,
-0.000762699346523732,
0.02567976899445057,
-0.023984814062714577,
-0.03501332178711891,
0.06316465884447098,
0.03079548291862011,
0.006099209655076265,
0.004089898429811001,
-0.0030399474781006575,
0.05949833244085312,
-0.011944177560508251,
-0.01758776605129242,
0.044405799359083176,
-0.004532134626060724,
-0.00460150046274066,
0.034158073365688324,
0.01086550671607256,
0.010526195168495178,
-0.014101330190896988,
-0.014552062377333641,
0.014784449711441994,
-0.03136742115020752,
-0.02699277736246586,
-0.00032640245626680553,
0.012474589981138706,
0.023293113335967064,
0.00608209241181612,
-0.0070653953589499,
0.0198060255497694,
0.03805411979556084,
-0.005204378627240658,
-0.03661634773015976,
-0.05382554233074188,
8.143775638670867e-33,
0.003938512410968542,
-0.020954346284270287,
-0.02870216593146324,
0.004152097273617983,
0.011049349792301655,
-0.021879032254219055,
0.08089856058359146,
-0.03728959709405899,
-0.0009382165153510869,
0.03320840746164322,
-0.03696485608816147,
0.013466300442814827,
0.03235163912177086,
0.03306546062231064,
0.026627734303474426,
-0.011632977984845638,
-0.008595037274062634,
-0.012145644053816795,
0.013200463727116585,
-0.014456184580922127,
-0.03897606581449509,
-0.008036550134420395,
-0.005784153006970882,
0.01694648340344429,
0.04702035337686539,
-0.0003524051862768829,
-0.03758018836379051,
0.03271692991256714,
-0.02240857481956482,
0.0008842733805067837,
0.007467321585863829,
0.015366523526608944,
0.001971449237316847,
-0.02466430701315403,
-0.032816916704177856,
0.05587996542453766,
0.016642680391669273,
0.008405792526900768,
0.048128705471754074,
0.034481171518564224,
0.02552028000354767,
-0.028775973245501518,
-0.030852684751152992,
0.009983944706618786,
0.014767871238291264,
0.010391004383563995,
-0.0033006242010742426,
0.020228348672389984,
0.005598985590040684,
0.04768972098827362,
0.0023948494344949722,
0.04721365496516228,
0.01612967811524868,
0.051667220890522,
0.04417503625154495,
-0.03647756576538086,
-0.0003593186556827277,
0.004631598945707083,
-0.03223837912082672,
0.005439602304250002,
-0.020823180675506592,
-0.02939375676214695,
-0.003823403734713793,
0.05909140780568123,
-0.01761000044643879,
-0.002156729344278574,
-0.012181523256003857,
-0.04425428435206413,
0.021752119064331055,
-0.04433978348970413,
0.01965951919555664,
-0.05679713562130928,
-0.010038009844720364,
0.004712856374680996,
-0.023978451266884804,
-0.015931706875562668,
0.004924020264297724,
0.022403450682759285,
-0.009143497794866562,
0.008899825625121593,
0.020640723407268524,
-0.03054478019475937,
0.03283393383026123,
0.021958602592349052,
0.018161579966545105,
0.016836004331707954,
-0.017754435539245605,
-0.03095947578549385,
0.03600320219993591,
0.03295125812292099,
-0.03425931930541992,
-0.026270071044564247,
0.008771726861596107,
0.009148894809186459,
-0.011417912319302559,
-1.3040482471637915e-8,
-0.020707935094833374,
0.014152949675917625,
-0.04371817782521248,
0.002981622703373432,
0.05709224194288254,
0.019198499619960785,
-0.004297198727726936,
0.008027728646993637,
-0.0408116914331913,
0.010704991407692432,
0.03480210900306702,
-0.043862756341695786,
0.024222921580076218,
0.0219124723225832,
0.02231595665216446,
-0.01607491262257099,
0.04027189686894417,
-0.03175845742225647,
0.003456543665379286,
0.014799111522734165,
0.01869818940758705,
0.058515843003988266,
-0.039855699986219406,
-0.0025354258250445127,
0.02114022895693779,
-0.011621670797467232,
-0.006755615118891001,
-0.09348239749670029,
0.009151206351816654,
-0.00406371196731925,
-0.004203340969979763,
-0.04477837309241295,
0.03071708418428898,
-0.023053761571645737,
-0.022865042090415955,
-0.010984216816723347,
0.028747111558914185,
0.028042232617735863,
0.019991299137473106,
0.013786767609417439,
-0.031166478991508484,
-0.0004348290094640106,
-0.04194590821862221,
-0.04162949323654175,
-0.030632613226771355,
0.022375665605068207,
-0.04564135521650314,
0.024328507483005524,
0.015638772398233414,
-0.029831338673830032,
-0.0007071844884194434,
0.015290814451873302,
0.015705998986959457,
0.046358510851860046,
0.02297455258667469,
0.02142508514225483,
0.033317651599645615,
0.0011316669406369328,
-0.013208363205194473,
-0.00226220628246665,
0.003887868719175458,
0.024171100929379463,
-0.024886056780815125,
-0.029242556542158127
] | spark-matcherror-of-class-org-apache-spark-sql-catalyst-expressions-genericrow-spark | https://markhneedham.com/blog/2015/10/27/spark-matcherror-of-class-org-apache-spark-sql-catalyst-expressions-genericrow-spark |
false | 2015-10-09 06:34:45 | jq: error - Cannot iterate over null (null) | [
"jq"
] | [
"Software Development"
] | I've been playing around with the https://stedolan.github.io/jq/[jq] library again over the past couple of days to convert the JSON from the http://api.stackexchange.com/[Stack Overflow API] into CSV and found myself needing to deal with an optional field.
I've downloaded 100 or so questions and stored them as an array in a JSON array like so:
[source,bash]
----
$ head -n 100 so.json
[
{
"has_more": true,
"items": [
{
"is_answered": false,
"delete_vote_count": 0,
"body_markdown": "...",
"tags": [
"jdbc",
"neo4j",
"cypher",
"spring-data-neo4j"
],
"question_id": 33023306,
"title": "How to delete multiple nodes by specific ID using Cypher",
"down_vote_count": 0,
"view_count": 8,
"answers": [
{
...
]
----
I wrote the following command to try and extract the answer meta data and the corresponding question_id:
[source,bash]
----
$ jq -r \
'.[] | .items[] |
{ question_id: .question_id, answer: .answers[] } |
[.question_id, .answer.answer_id, .answer.title] |
@csv' so.json
33023306,33024189,"How to delete multiple nodes by specific ID using Cypher"
33020796,33021958,"How do a general search across string properties in my nodes?"
33018818,33020068,"Neo4j match nodes related to all nodes in collection"
33018818,33024273,"Neo4j match nodes related to all nodes in collection"
jq: error (at so.json:134903): Cannot iterate over null (null)
----
Unfortunately this results in an error since some questions haven't been answered yet and therefore don't have the 'answers' property.
While reading https://stedolan.github.io/jq/manual/#ConditionalsandComparisons[the docs] I came across the alternative operation '//' which can be used to provide defaults - in this case I thought I could plugin an empty array of answers if a question hadn't been answered yet:
[source,bash]
----
$ jq -r \
'.[] | .items[] |
{ question_id: .question_id, answer: (.answers[] // []) } |
[.question_id, .answer.answer_id, .answer.title] |
@csv' so.json
33023306,33024189,"How to delete multiple nodes by specific ID using Cypher"
33020796,33021958,"How do a general search across string properties in my nodes?"
33018818,33020068,"Neo4j match nodes related to all nodes in collection"
33018818,33024273,"Neo4j match nodes related to all nodes in collection"
jq: error (at so.json:134903): Cannot iterate over null (null)
----
Still the same error! Reading down the page I noticed the ? operator which provides syntactic sugar for handling/catching errors. I gave it a try:
[source,bash]
----
$ jq -r '.[] | .items[] |
{ question_id: .question_id, answer: .answers[]? } |
[.question_id, .answer.answer_id, .answer.title] |
@csv' so.json | head -n10
33023306,33024189,"How to delete multiple nodes by specific ID using Cypher"
33020796,33021958,"How do a general search across string properties in my nodes?"
33018818,33020068,"Neo4j match nodes related to all nodes in collection"
33018818,33024273,"Neo4j match nodes related to all nodes in collection"
33015714,33021482,"Upgrade of spring data neo4j 3.x to 4.x Relationship Operations"
33011477,33011721,"Why does Neo4j OGM delete method return void?"
33011102,33011565,"Neo4j and algorithms"
33011102,33013260,"Neo4j and algorithms"
33010859,33011505,"Importing data into an existing database in neo4j"
33009673,33010942,"How do I use Spring Data Neo4j to persist a Map (java.util.Map) object inside an NodeEntity?"
----
As far as I can tell we are just skipping any records that don't contain 'answers' which is exactly the behaviour I'm after so that's great - just what we need! | null | null | [
-0.019976187497377396,
-0.042862825095653534,
-0.009278475306928158,
0.03692537173628807,
0.07512405514717102,
0.0006900062435306609,
0.01495751366019249,
0.0366172231733799,
-0.0011396430199965835,
0.007140111643821001,
-0.019069621339440346,
0.0019075392046943307,
-0.07190237194299698,
0.009405970573425293,
-0.004295033868402243,
0.05962960794568062,
0.060221847146749496,
-0.0017975372029468417,
0.02403164468705654,
-0.02702612429857254,
0.019046839326620102,
0.01822597160935402,
0.008866277523338795,
0.02649594657123089,
0.06462299823760986,
-0.021917155012488365,
0.006573271472007036,
0.007283305749297142,
-0.0367191843688488,
0.010768000036478043,
0.04158581793308258,
-0.013882791623473167,
0.03193563222885132,
-0.012181514874100685,
-0.0006941861938685179,
-0.0027704520616680384,
-0.04376929625868797,
0.030064871534705162,
-0.0067398627288639545,
0.009837636724114418,
-0.046738218516111374,
0.021869342774152756,
-0.014311203733086586,
0.020611338317394257,
-0.01975671947002411,
0.017719240859150887,
-0.03624558448791504,
0.03581259772181511,
-0.0056359791196882725,
-0.010481185279786587,
-0.0884399563074112,
-0.0017732304986566305,
-0.029180893674492836,
-0.00795208290219307,
0.015459037385880947,
0.048986293375492096,
0.0014092259807512164,
-0.06261191517114639,
0.03548155725002289,
-0.009552705101668835,
0.0013364121550694108,
-0.022756928578019142,
0.015112685039639473,
0.040667373687028885,
-0.0017945762956514955,
-0.05515286698937416,
-0.0031868277583271265,
0.08955691009759903,
-0.05136511102318764,
-0.01536969467997551,
0.015764612704515457,
0.038709137588739395,
0.008462653495371342,
-0.015057695098221302,
0.005422750487923622,
-0.04062546417117119,
0.007590856868773699,
0.058302707970142365,
0.010349875316023827,
0.04808130860328674,
-0.01034882664680481,
0.021002179011702538,
-0.002241631271317601,
0.022026853635907173,
0.025073634460568428,
-0.05079105868935585,
-0.03285105153918266,
-0.013127045705914497,
-0.05260472372174263,
0.009085126221179962,
0.047539640218019485,
-0.015867039561271667,
-0.00729661900550127,
0.005209571216255426,
-0.028124883770942688,
0.01189910527318716,
0.0006909540970809758,
0.01815178617835045,
-0.016727879643440247,
-0.012083311565220356,
-0.02873118780553341,
-0.0021204014774411917,
0.016021115705370903,
-0.03189137950539589,
-0.08266019076108932,
-0.025796735659241676,
0.02335788868367672,
-0.012960073538124561,
0.0150292431935668,
0.006781142670661211,
-0.04569621384143829,
-0.001724625937640667,
-0.012290711514651775,
0.011782053858041763,
-0.09315595030784607,
0.06119120866060257,
0.032471202313899994,
-0.008728593587875366,
-0.023467598482966423,
0.04944298416376114,
0.03738519176840782,
0.013590849004685879,
0.012171520851552486,
0.07820644229650497,
0.010480915196239948,
0.0024179297033697367,
0.014666900970041752,
0.0442219041287899,
-0.009137440472841263,
-0.058376848697662354,
-0.018413597717881203,
0.049624186009168625,
0.0004681505961343646,
0.021011121571063995,
0.001558989635668695,
-0.063947394490242,
-0.019769689068198204,
0.0031977395992726088,
0.0698082447052002,
0.01475621573626995,
-0.02412622608244419,
-0.04906092956662178,
0.023054996505379677,
-0.004798710811883211,
0.04000648483633995,
0.026071883738040924,
-0.04932710528373718,
-0.027331864461302757,
-0.014291707426309586,
0.031344909220933914,
0.014362119138240814,
0.02072172425687313,
0.06016352027654648,
-0.030537771061062813,
-0.019014935940504074,
0.10683464258909225,
0.022797590121626854,
0.029880138114094734,
-0.0161490049213171,
0.014827477745711803,
0.061767663806676865,
0.033104490488767624,
0.0036486017052084208,
0.05395445600152016,
-0.02319025807082653,
-0.03854076936841011,
-0.009266074746847153,
0.06343864649534225,
-0.024590516462922096,
-0.018321720883250237,
-0.0426221564412117,
-0.06168391555547714,
0.0645139068365097,
-0.03947360813617706,
-0.005535307805985212,
0.020765991881489754,
0.04285132884979248,
0.0326484814286232,
0.013178151100873947,
0.005576069466769695,
-0.08203186094760895,
0.05394621565937996,
-0.0007669039187021554,
-0.002796520246192813,
0.014558580704033375,
0.024223318323493004,
0.07792346924543381,
0.05854932591319084,
-0.0019850959070026875,
0.04221135377883911,
-0.10278694331645966,
-0.04822145774960518,
-0.01629088632762432,
0.011385759338736534,
0.07062485814094543,
-0.033832065761089325,
-0.006854933220893145,
0.06208498775959015,
0.018519826233386993,
0.017009245231747627,
-0.005762367509305477,
-0.019900526851415634,
0.03309992328286171,
-0.03125128522515297,
-0.05136517062783241,
0.05731287971138954,
0.04518171772360802,
-0.039163317531347275,
0.010338532738387585,
0.026790209114551544,
-0.01796598918735981,
0.010556910187005997,
0.02022889256477356,
-0.042238473892211914,
0.025564199313521385,
0.01701611839234829,
0.021096443757414818,
-0.026494625955820084,
0.03356028348207474,
-0.05973750352859497,
0.05021769553422928,
0.028943561017513275,
-0.031847819685935974,
-0.007839969359338284,
-0.019657708704471588,
0.12151405960321426,
0.05822165310382843,
-0.005126338452100754,
-0.0762418881058693,
0.0456981435418129,
0.010359164327383041,
-0.012257557362318039,
0.0011927555315196514,
-0.02291775681078434,
-0.0066151972860097885,
-0.01155138574540615,
-0.029310831800103188,
-0.009153496474027634,
-0.006628192029893398,
-0.026565391570329666,
-0.018452735617756844,
0.04623620584607124,
-0.01776079274713993,
0.0633988156914711,
0.020944833755493164,
-0.0052390266209840775,
-0.026454560458660126,
-0.04312445968389511,
-0.03623875975608826,
0.0021761103998869658,
0.008883160538971424,
0.0036193730775266886,
0.04373956471681595,
-0.036834754049777985,
0.01402188278734684,
-0.015742279589176178,
-0.0134547995403409,
0.03798774629831314,
0.045769963413476944,
0.05236994847655296,
-0.04132034629583359,
0.07770613580942154,
-0.031036371365189552,
-0.0011198035208508372,
-0.021867576986551285,
-0.03815673291683197,
-0.05815940350294113,
-0.0245729461312294,
0.02928425371646881,
-0.018869673833251,
0.01491595059633255,
0.006979397963732481,
0.013800757005810738,
-0.0003028922074008733,
0.003388520097360015,
-0.0030877627432346344,
0.027552567422389984,
0.002039508894085884,
0.03161601349711418,
-0.03459683060646057,
-0.017804864794015884,
0.060993656516075134,
-0.070553719997406,
-0.04579171910881996,
-0.0023217133712023497,
-0.07765614241361618,
0.04383304715156555,
-0.046460218727588654,
-0.0371132493019104,
-0.006838799454271793,
0.03629447892308235,
0.0632384791970253,
0.007421223446726799,
-0.01275951974093914,
0.04923834279179573,
0.00048517651157453656,
0.01880432479083538,
0.029266392812132835,
0.02272244542837143,
0.06431298702955246,
-0.031710267066955566,
0.023192565888166428,
0.04139325022697449,
-0.010480322875082493,
-0.01195325143635273,
-0.014387821778655052,
0.010708111338317394,
-0.005444208160042763,
-0.2725154459476471,
0.05690312013030052,
-0.04649006947875023,
-0.04356637969613075,
0.024493003264069557,
-0.015533821657299995,
0.01618686318397522,
-0.03168730065226555,
-0.011214840225875378,
0.010047768242657185,
0.006085545290261507,
-0.027736155316233635,
-0.011778095737099648,
0.047534387558698654,
0.03280226141214371,
0.012791936285793781,
-0.010681165382266045,
-0.037218816578388214,
0.00851542130112648,
0.025217605754733086,
-0.007000103127211332,
-0.039794839918613434,
-0.015315428376197815,
0.05024747550487518,
0.025819815695285797,
0.06519567221403122,
-0.08340774476528168,
0.009405640885233879,
-0.04484957456588745,
-0.017491353675723076,
0.017144035547971725,
-0.026132909581065178,
0.027940822765231133,
-0.0017788605764508247,
-0.018109316006302834,
0.002663017250597477,
0.04791277274489403,
-0.002246371703222394,
0.008423556573688984,
0.02889692783355713,
-0.056788500398397446,
-0.0717291384935379,
-0.0070162927731871605,
-0.01223945152014494,
0.06304842978715897,
-0.003134183119982481,
-0.04199910908937454,
0.005916132126003504,
-0.03266479820013046,
0.07099569588899612,
-0.007850262336432934,
-0.036618128418922424,
-0.024036884307861328,
-0.007288460619747639,
-0.019326524809002876,
-0.010392582044005394,
-0.03297283127903938,
0.004705347586423159,
-0.06965861469507217,
-0.0191305223852396,
-0.0050022476352751255,
-0.05089772865176201,
-0.000302443077089265,
-0.057565875351428986,
-0.01735006645321846,
-0.07064162939786911,
-0.06451477855443954,
-0.02836933545768261,
0.07976650446653366,
0.02007419243454933,
-0.04139605537056923,
0.028133360669016838,
-0.014316671527922153,
-0.1005994975566864,
-0.033508144319057465,
-0.025163371115922928,
-0.010049802251160145,
0.004173142369836569,
-0.029025057330727577,
0.04808242991566658,
-0.06778941303491592,
-0.03672283887863159,
0.02743268385529518,
0.016329968348145485,
0.005989485885947943,
-0.016725312918424606,
0.0021856501698493958,
-0.041066937148571014,
-0.019841991364955902,
-0.00653268164023757,
0.07154067605733871,
-0.0381438247859478,
-0.011302449740469456,
0.003277810290455818,
0.009845426306128502,
0.04946606978774071,
0.009982802905142307,
-0.022149426862597466,
0.01049664057791233,
0.041103776544332504,
0.0635799691081047,
-0.03749680519104004,
0.005700164008885622,
-0.05154360830783844,
-0.028477462008595467,
-0.022073062136769295,
-0.04312586784362793,
0.013514119200408459,
0.020656948909163475,
0.015231764875352383,
-0.0009473668760620058,
-0.0081862211227417,
0.02403365820646286,
-0.03682173043489456,
-0.0021177921444177628,
0.009536809287965298,
0.012965992093086243,
0.024798797443509102,
0.06155615299940109,
-0.041351184248924255,
-0.04352429509162903,
0.030287735164165497,
0.04063431918621063,
-0.03376009315252304,
-0.07124388217926025,
-0.056461263447999954,
-0.009917455725371838,
-0.004612899385392666,
-0.03731642663478851,
-0.009772165678441525,
-0.013365638442337513,
0.033380236476659775,
-0.014973948709666729,
-0.024569272994995117,
0.01799212023615837,
-0.005825967527925968,
-0.029792647808790207,
-0.020989269018173218,
0.012686884962022305,
0.015924137085676193,
0.0024678928311914206,
-0.018089566379785538,
0.008249509148299694,
0.05944344773888588,
-0.012892087921500206,
0.005924584809690714,
0.003952825907617807,
0.005197025369852781,
0.014965874142944813,
-0.012169193476438522,
-0.0371791310608387,
-0.031247558072209358,
0.00647064158692956,
-0.027989203110337257,
-0.04115564376115799,
-0.012542853131890297,
0.03463674336671829,
-0.010454305447638035,
-0.051069170236587524,
-0.04518960788846016,
0.004252410959452391,
-0.04295116290450096,
0.015309487469494343,
-0.01460308488458395,
-0.032580502331256866,
0.022390762344002724,
-0.017758505418896675,
0.04196435213088989,
-0.012889775447547436,
-0.015407469123601913,
-0.004347158595919609,
0.010423908941447735,
-0.034471288323402405,
-0.01183225680142641,
-0.0039735897444188595,
0.011963928118348122,
0.040778353810310364,
0.013802574016153812,
0.021150950342416763,
0.02181079424917698,
-0.0038006342947483063,
-0.022262342274188995,
0.015475161373615265,
0.03466380760073662,
0.03632023558020592,
0.04520471394062042,
-0.005109078716486692,
0.004407327156513929,
-0.021612219512462616,
0.009506462141871452,
-0.03141429275274277,
-0.025873934850096703,
-0.044879160821437836,
0.0022118533961474895,
-0.024722423404455185,
-0.05741720274090767,
0.03972913324832916,
0.02772805280983448,
0.019184177741408348,
0.059810761362314224,
0.009204230271279812,
-0.0274749044328928,
-0.018249528482556343,
0.013601620681583881,
0.03926790878176689,
-0.05725599825382233,
-0.0331260971724987,
-0.017686353996396065,
-0.003565650200471282,
-0.02392265945672989,
0.013035519979894161,
-0.0880688950419426,
-0.014955421909689903,
-0.027040833607316017,
0.028069566935300827,
-0.008971336297690868,
-0.035344742238521576,
-0.012093042954802513,
-0.0021131185349076986,
-0.037523165345191956,
0.020117193460464478,
0.03073454275727272,
0.02145274169743061,
-0.02298533171415329,
0.010148496367037296,
0.035233382135629654,
-0.05292754992842674,
-0.01713440753519535,
0.0164970513433218,
-0.012542860582470894,
0.03355623036623001,
-0.028360404074192047,
0.04104973003268242,
0.03291122242808342,
0.00007036211172817275,
0.002484034514054656,
-0.052692584693431854,
0.006062228698283434,
-0.00856385100632906,
0.05645430088043213,
0.00457785464823246,
-0.015398150309920311,
-0.02889590710401535,
0.015792887657880783,
-0.0165044367313385,
0.006868543103337288,
0.0002645819913595915,
-0.016580995172262192,
0.02939959056675434,
0.04224171116948128,
0.028185756877064705,
0.020056122913956642,
-0.01732630468904972,
-0.039305493235588074,
0.06848946213722229,
-0.02544652856886387,
-0.025389274582266808,
-0.026371393352746964,
-0.05515609309077263,
0.015995441004633904,
0.013615911826491356,
0.045517969876527786,
-0.05623023211956024,
0.07725151628255844,
0.051939256489276886,
0.01706954464316368,
0.011292016133666039,
-0.031177090480923653,
0.030604148283600807,
-0.0035076614003628492,
-0.010980088263750076,
-0.10315671563148499,
0.04104685038328171,
0.07792267948389053,
-0.02128094993531704,
0.043731141835451126,
0.005761670880019665,
-0.03509511426091194,
0.0060248649679124355,
-0.032849520444869995,
-0.02188841439783573,
0.03899611532688141,
-0.029003096744418144,
0.006382890045642853,
0.015098249539732933,
-0.06584002822637558,
0.012451657094061375,
0.06363364309072495,
-0.033010952174663544,
-0.004865759517997503,
-0.058066897094249725,
0.0579548217356205,
-0.002596004633232951,
0.012250971049070358,
0.0008835082990117371,
-0.01072524581104517,
0.04109710454940796,
0.011475502513349056,
0.026089411228895187,
0.040528785437345505,
-0.03809615969657898,
0.02327761985361576,
0.02925916016101837,
0.0006190623389557004,
0.009584033861756325,
0.060377687215805054,
-0.022187935188412666,
-0.04078732058405876,
0.011151805520057678,
0.013683888129889965,
-0.02765187807381153,
-0.04100382700562477,
0.06709294766187668,
0.0029038700740784407,
-0.06497130542993546,
-0.0651843324303627,
0.007292299531400204,
-0.034187376499176025,
-0.007464101072400808,
-0.04015941917896271,
0.013160317204892635,
-0.0110316826030612,
0.05293397232890129,
-0.01495241466909647,
0.021059779450297356,
0.08022352308034897,
-0.006821790244430304,
-0.01822066120803356,
0.001624264637939632,
0.07371999323368073,
0.08630552142858505,
0.023247130215168,
0.015649383887648582,
0.0772552415728569,
-0.008269908837974072,
-0.03884117677807808,
0.0030706783290952444,
-0.03599316626787186,
-0.009226051159203053,
0.02428736723959446,
-0.02640828676521778,
0.07642935961484909,
-0.011810475960373878,
0.06583041697740555,
-0.021654436364769936,
-0.018526794388890266,
0.003050469560548663,
-0.008186349645256996,
0.03432169929146767,
0.048212844878435135,
0.016532884910702705,
0.0489451140165329,
-0.019142750650644302,
-0.03574869781732559,
0.043179091066122055,
0.010644232854247093,
-0.049662034958601,
0.03171248361468315,
-0.021207639947533607,
0.013855116441845894,
-0.005678798072040081,
0.048454154282808304,
0.05276472866535187,
-0.031915683299303055,
0.012100008316338062,
-0.0041877166368067265,
0.007247038651257753,
0.0028735871892422438,
0.010048390366137028,
0.013209788128733635,
-0.04364684596657753,
-0.014889608137309551,
-0.07524590194225311,
-0.01994973234832287,
-0.02512037754058838,
-0.0502779521048069,
-0.0003511365794111043,
-0.009388640522956848,
0.02015272155404091,
0.023978717625141144,
0.013633991591632366,
-0.016306621953845024,
-0.04919169098138809,
-0.0694182962179184,
-0.03971591964364052,
-0.06698130816221237,
-0.010142689570784569,
0.01546737365424633,
0.0060873329639434814,
0.007086916361004114,
0.0031261432450264692,
-0.035183072090148926,
0.023683011531829834,
0.05883120372891426,
-0.025866355746984482,
-0.004414361901581287,
0.016871348023414612,
-0.01585022360086441,
0.024142958223819733,
0.0240633562207222,
0.033605024218559265,
-0.015077060088515282,
0.009759013541042805,
-0.009345831349492073,
0.007353995926678181,
0.060426998883485794,
0.04668042063713074,
0.007846696302294731,
-0.0531364306807518,
-0.013398214243352413,
-0.01889009401202202,
-0.010458393022418022,
-0.057044122368097305,
0.002174078021198511,
0.04166865721344948,
0.0025049776304513216,
0.05779670551419258,
0.002029956551268697,
-0.02434816211462021,
-0.020190438255667686,
-0.023711642250418663,
0.018352147191762924,
-0.021094530820846558,
0.020683182403445244,
-0.024778611958026886,
0.07451076060533524,
0.02201734110713005,
-0.026586048305034637,
-0.02708313800394535,
-0.00612101424485445,
0.012200281023979187,
-0.011696995235979557,
-0.025362834334373474,
-0.0472930371761322,
-0.053088221698999405,
-0.0581132248044014,
-0.04358850046992302,
-0.01761011779308319,
-0.02744755707681179,
-0.012207385152578354,
-0.006042484659701586,
0.017136547714471817,
-0.04494399204850197,
0.01984798163175583,
-0.03462766855955124,
0.05877220630645752,
-0.008724084123969078,
-0.025007285177707672,
-0.04473939538002014,
0.001832222449593246,
-0.006465937942266464,
-0.001103857415728271,
0.04475054517388344,
-0.05579525604844093,
0.007470699492841959,
-0.02693174220621586,
0.00039847733569331467,
0.05422157794237137,
0.01713704504072666,
0.009576383046805859
] | [
-0.06320333480834961,
0.0011380857322365046,
-0.028578856959939003,
-0.01785898767411709,
0.07235690951347351,
-0.04455189406871796,
-0.010561943054199219,
0.00732275377959013,
0.012379561550915241,
0.016720525920391083,
0.0015171155100688338,
-0.02153746411204338,
0.016587188467383385,
-0.004353837110102177,
0.06216716393828392,
0.010585845448076725,
-0.017879372462630272,
-0.011277666315436363,
-0.047468677163124084,
0.08059443533420563,
-0.03773690387606621,
-0.04500167444348335,
-0.011169267818331718,
-0.048758480697870255,
0.025158163160085678,
0.03592152148485184,
0.04813612625002861,
-0.03985267132520676,
-0.03181378170847893,
-0.21031704545021057,
0.0035886080004274845,
-0.009268086403608322,
0.01348739955574274,
-0.012682721950113773,
0.014665596187114716,
0.024755310267210007,
0.04198582097887993,
-0.037586260586977005,
-0.020580178126692772,
0.06482140719890594,
0.0546468086540699,
-0.012626667506992817,
-0.04647890105843544,
-0.03132793679833412,
0.005934556480497122,
0.009735177271068096,
-0.03547672554850578,
-0.0404917448759079,
0.019016575068235397,
0.0010369692463427782,
-0.03952252119779587,
-0.012501087039709091,
-0.025665711611509323,
-0.02086728997528553,
0.011086616665124893,
0.04273530840873718,
0.023273570463061333,
0.10337887704372406,
-0.004453412257134914,
0.04336915537714958,
-0.0016337617998942733,
0.004755872301757336,
-0.12319839745759964,
0.09934348613023758,
0.01789722964167595,
0.018115434795618057,
-0.03366168588399887,
-0.024319209158420563,
-0.03800492733716965,
0.06748855859041214,
0.005901714321225882,
-0.0018894285894930363,
-0.045421190559864044,
0.05709044262766838,
-0.018868496641516685,
0.018365245312452316,
-0.026413535699248314,
-0.0015477380948141217,
0.07145760208368301,
-0.029660241678357124,
-0.06372823566198349,
-0.010263997130095959,
0.005743271671235561,
-0.027590623125433922,
-0.024428948760032654,
0.022599512711167336,
-0.04539625719189644,
0.04789074510335922,
-0.009668193757534027,
0.029495133087038994,
0.03269273042678833,
0.0042107063345611095,
0.06319191306829453,
0.04038383066654205,
-0.1084209755063057,
-0.02177070826292038,
-0.027704233303666115,
0.006735297851264477,
0.0005412211758084595,
0.386881947517395,
-0.0072653163224458694,
-0.022376783192157745,
0.02763993851840496,
-0.021756121888756752,
0.009007113054394722,
-0.02795272506773472,
-0.02752959355711937,
-0.0750715509057045,
0.06630738079547882,
-0.006793362088501453,
-0.0009173416765406728,
-0.038086265325546265,
0.028158294036984444,
-0.059390269219875336,
-0.0235137976706028,
0.021253317594528198,
0.060725416988134384,
0.022296641021966934,
-0.047251325100660324,
0.0015847940230742097,
0.00833058264106512,
0.023326868191361427,
0.03995845094323158,
-0.0012689711293205619,
0.06373806297779083,
0.006714307237416506,
-0.010904485359787941,
0.053515490144491196,
0.036953456699848175,
0.03961784392595291,
0.03963583707809448,
-0.017748383805155754,
-0.06890566647052765,
0.00592281948775053,
-0.004035132005810738,
-0.00569707527756691,
0.03598107025027275,
-0.052818819880485535,
-0.01675237901508808,
0.026054151356220245,
-0.0230892151594162,
-0.05947043374180794,
0.022797483950853348,
-0.014831745997071266,
-0.03682335466146469,
0.10235390812158585,
-0.0051970891654491425,
-0.04861307516694069,
-0.025444433093070984,
-0.06409955024719238,
-0.006450891960412264,
0.06804869323968887,
-0.01371331512928009,
-0.05021527782082558,
0.017396243289113045,
0.03515451401472092,
0.0621020682156086,
-0.020479809492826462,
-0.07640799134969711,
0.0009049897780641913,
-0.01795034483075142,
-0.03564983606338501,
-0.013655340299010277,
0.1110294908285141,
0.03221757337450981,
-0.0893666222691536,
-0.03935549408197403,
-0.011021883226931095,
0.004288400057703257,
-0.06948099285364151,
0.031836703419685364,
0.019481876865029335,
-0.07718571275472641,
-0.019437940791249275,
0.075410857796669,
-0.028049448505043983,
-0.0048142108134925365,
0.008227633312344551,
0.05291471257805824,
0.004655314143747091,
-0.054931867867708206,
-0.00848669558763504,
-0.01236119493842125,
-0.00024249791749753058,
-0.0705653503537178,
-0.03797202929854393,
-0.05275905504822731,
0.03638942912220955,
-0.018597455695271492,
-0.04870579391717911,
-0.039274122565984726,
-0.031609561294317245,
-0.032721515744924545,
0.04961412400007248,
-0.031018128618597984,
-0.020693544298410416,
-0.0009125351207330823,
-0.026782149448990822,
0.02334168367087841,
-0.0322268083691597,
0.06663749366998672,
0.016706064343452454,
-0.000003151830924252863,
0.061865005642175674,
-0.05758686363697052,
-0.020307274535298347,
0.06053527072072029,
-0.024664366617798805,
0.0592319630086422,
0.04405420646071434,
-0.05458532273769379,
0.028478458523750305,
-0.042918600142002106,
0.0072167678736150265,
0.007421181537210941,
-0.046144213527441025,
-0.006048474460840225,
-0.015819404274225235,
0.039604637771844864,
0.035755909979343414,
-0.04076028987765312,
-0.04691024124622345,
-0.040430646389722824,
-0.33594557642936707,
-0.04381894692778587,
-0.008180183358490467,
0.008880563080310822,
0.011266253888607025,
-0.025581110268831253,
-0.00817402359098196,
-0.04222438111901283,
0.012795761227607727,
0.05953284353017807,
0.07899347692728043,
0.021574892103672028,
0.002712440909817815,
-0.08956024050712585,
-0.020751243457198143,
0.04684840515255928,
0.014654813334345818,
0.0002034507633652538,
-0.011101494543254375,
0.02858373522758484,
0.020853199064731598,
-0.046329010277986526,
0.008175021037459373,
-0.04871616140007973,
0.0168173685669899,
0.0008597705163992941,
0.121223583817482,
0.039460450410842896,
0.026909491047263145,
-0.030942728742957115,
0.04559093341231346,
0.024095626547932625,
0.002134909387677908,
-0.04393836855888367,
0.003945580683648586,
-0.03272205963730812,
-0.03116312250494957,
0.03622370585799217,
-0.020743321627378464,
0.017157556489109993,
-0.047876324504613876,
-0.001377131324261427,
-0.02611348405480385,
-0.08696985244750977,
0.00828787125647068,
-0.010860470123589039,
-0.04720799997448921,
-0.0004864599322900176,
0.011951078660786152,
0.07430703192949295,
0.021850859746336937,
0.05546797811985016,
0.03276864066720009,
0.04862673208117485,
0.03838765621185303,
0.004292895086109638,
-0.05654139444231987,
-0.023945681750774384,
0.006312819663435221,
0.016215244308114052,
-0.017118379473686218,
0.029435552656650543,
0.02313501574099064,
-0.061891958117485046,
0.030132237821817398,
0.014524859376251698,
0.007139028050005436,
0.04804862663149834,
0.017694376409053802,
-0.0793217346072197,
-0.050315674394369125,
0.08918927609920502,
-0.0007639083196409047,
0.05923091992735863,
0.011592297814786434,
0.06415160745382309,
-0.034917477518320084,
-0.003756850492209196,
0.04197043552994728,
-0.003943740855902433,
0.045071326196193695,
-0.0017929228488355875,
0.07040761411190033,
0.011344468221068382,
0.005152864381670952,
0.09759026765823364,
-0.01214300561696291,
-0.03466379642486572,
0.04161188006401062,
-0.02009444311261177,
-0.007214171811938286,
-0.02115207351744175,
-0.016639351844787598,
-0.04161674529314041,
0.0526416078209877,
-0.013453957624733448,
-0.25063788890838623,
0.02606132999062538,
0.0010647010058164597,
0.05045310780405998,
0.005738480016589165,
0.02669772319495678,
0.025243621319532394,
-0.03899337723851204,
-0.030368758365511894,
0.0394340455532074,
0.009712817147374153,
0.08014209568500519,
0.0109950490295887,
-0.02949075773358345,
0.017456773668527603,
-0.009134235791862011,
-0.004953319672495127,
0.023344602435827255,
0.04137807339429855,
0.017809253185987473,
0.049290429800748825,
-0.01308494247496128,
0.1910911351442337,
0.040438808500766754,
-0.00889328308403492,
0.05323849618434906,
-0.017453433945775032,
0.007342177908867598,
0.049163948744535446,
-0.02018771320581436,
-0.015216399915516376,
0.05011730641126633,
0.04522251710295677,
0.04132654890418053,
0.019179973751306534,
-0.057962529361248016,
-0.023599306121468544,
0.02324698306620121,
0.013034962117671967,
-0.06185789406299591,
-0.033209092915058136,
0.03572704270482063,
-0.018355386331677437,
0.010485494509339333,
0.09101899713277817,
-0.03981154412031174,
-0.022130686789751053,
-0.042910169810056686,
-0.03535670414566994,
-0.027614295482635498,
-0.01697338931262493,
-0.06509538739919662,
-0.00692940317094326,
-0.032421503216028214,
-0.0033675930462777615,
0.06730341911315918,
0.04225907102227211,
-0.013240979984402657,
0.00317624444141984,
0.014575071632862091,
-0.011151494458317757,
-0.03336314111948013,
0.08530361950397491,
0.006902498658746481,
-0.005209026392549276
] | [
0.0051224930211901665,
0.06507778912782669,
-0.03202584758400917,
0.025269070640206337,
0.016803571954369545,
-0.007468557450920343,
-0.007730123121291399,
-0.0018489455105736852,
-0.0010337869171053171,
-0.029099127277731895,
-0.02445775270462036,
-0.0034465703647583723,
0.0641179084777832,
-0.023436028510332108,
0.00589235732331872,
0.0085504911839962,
-0.052559994161129,
0.027007848024368286,
0.014173625037074089,
-0.03119671531021595,
-0.023722006008028984,
0.024364231154322624,
0.010890579782426357,
-0.017807988449931145,
-0.012673065066337585,
0.036328867077827454,
-0.04024888947606087,
0.004828611854463816,
0.0012832010397687554,
-0.08755585551261902,
-0.0329708568751812,
-0.038157254457473755,
0.010916333645582199,
0.015454348176717758,
-0.024866115301847458,
-0.005081844981759787,
0.0007223439170047641,
0.0010317873675376177,
0.018733512610197067,
0.009066720493137836,
-0.0046265642158687115,
0.02188209258019924,
-0.051480166614055634,
-0.019491301849484444,
0.0126771479845047,
-0.031734295189380646,
-0.06229432672262192,
-0.045628540217876434,
-0.012429870665073395,
0.0008563559968024492,
-0.040544092655181885,
0.003970757592469454,
0.019372640177607536,
0.01888739876449108,
0.011369735933840275,
0.016244230791926384,
-0.08796022087335587,
0.0003305105783510953,
-0.011738711036741734,
0.005995783023536205,
0.03742603585124016,
-0.025761129334568977,
-0.05449263006448746,
-0.02687498927116394,
-0.009398229420185089,
-0.0161497350782156,
-0.03785625472664833,
0.003861658973619342,
0.013699495233595371,
-0.008232681080698967,
0.01330864243209362,
0.0009274567128159106,
-0.06292896717786789,
-0.014775963500142097,
-0.002194400643929839,
0.029894879087805748,
0.028294552117586136,
-0.030379517003893852,
0.00580134242773056,
0.02744903787970543,
-0.04671923816204071,
0.0008084867149591446,
-0.033341795206069946,
0.006514810025691986,
-0.048402149230241776,
-0.004319022875279188,
-0.03196744993329048,
0.022146448493003845,
0.004716101102530956,
0.028048379346728325,
-0.01843361370265484,
-0.016258565708994865,
0.007412566337734461,
0.03142945095896721,
-0.06060010939836502,
0.010887347161769867,
0.02135876938700676,
-0.02855014055967331,
-0.008204982616007328,
0.8339771628379822,
0.023798270151019096,
0.004472100175917149,
0.024482984095811844,
0.01793464459478855,
0.008981318213045597,
-0.0003961578186135739,
-0.014219381846487522,
-0.003074751468375325,
-0.0296305064111948,
-0.016542544588446617,
0.004390775691717863,
0.016812948510050774,
0.014979230239987373,
0.015442418865859509,
0.002101229503750801,
0.05712389945983887,
0.04429564252495766,
0.017666084691882133,
-0.005602358840405941,
0.02250448800623417,
0.0419185608625412,
-0.022602880373597145,
-0.0006156443268992007,
0.025818243622779846,
0.04631916061043739,
-0.15919771790504456,
-0.015822729095816612,
-7.437010394922936e-33,
0.06941364705562592,
-0.015951212495565414,
0.05399978905916214,
-0.022648412734270096,
0.015277484431862831,
-0.0071842605248093605,
0.03270436450839043,
0.028616052120923996,
-0.00456221541389823,
-0.03156672418117523,
0.019766949117183685,
-0.00919097475707531,
-0.0020908412989228964,
-0.024933120235800743,
0.014480721205472946,
-0.027414362877607346,
0.017747769132256508,
0.020409634336829185,
0.016889473423361778,
-0.00890837237238884,
0.02106536738574505,
0.030229197815060616,
0.019871676340699196,
0.03814847022294998,
0.02223626710474491,
0.01212297659367323,
-0.0036492596846073866,
-0.009472043253481388,
-0.02316591516137123,
-0.046922456473112106,
-0.01335070002824068,
0.01641768589615822,
-0.0033569461666047573,
-0.012738801538944244,
0.021898319944739342,
-0.05505238473415375,
0.004158313386142254,
-0.0016171833267435431,
-0.028044920414686203,
-0.045126449316740036,
-0.028551090508699417,
0.014678623527288437,
-0.005721685942262411,
0.00532442145049572,
-0.02269124984741211,
-0.024285076186060905,
0.011225961148738861,
0.0008019991801120341,
0.0025901542976498604,
0.01974317617714405,
-0.0008957849349826574,
0.024832742288708687,
-0.0016703151632100344,
0.011028642766177654,
-0.013460022397339344,
0.008885079994797707,
0.0038683158345520496,
0.020707868039608,
-0.016836734488606453,
-0.0010809111408889294,
0.01139895524829626,
-0.011638726107776165,
-0.007671695668250322,
0.04701972007751465,
0.022314801812171936,
0.008224796503782272,
-0.014217459596693516,
0.02164623513817787,
-0.02676941268146038,
0.0554208941757679,
-0.012093482539057732,
0.059888847172260284,
-0.027097778394818306,
-0.058206964284181595,
0.03480877727270126,
-0.03634310141205788,
-0.012184066697955132,
-0.012283217161893845,
0.0312790647149086,
0.0029395788442343473,
0.009723726660013199,
-0.015326792374253273,
-0.018566805869340897,
-0.00045645091449841857,
-0.028752801939845085,
0.022685183212161064,
0.030729198828339577,
0.014957313425838947,
0.005951593164354563,
0.005265305750072002,
0.0352620929479599,
0.08100150525569916,
-0.01025969535112381,
-0.05255032703280449,
-0.03013758361339569,
7.753864897187084e-33,
-0.012257074937224388,
-0.015287892892956734,
-0.00593896210193634,
0.0059159803204238415,
0.03430907800793648,
-0.03908257558941841,
0.023722613230347633,
-0.00348096014931798,
-0.017925284802913666,
0.048348791897296906,
-0.04152970388531685,
-0.0018008813494816422,
-0.004123987630009651,
0.010449652560055256,
0.059773966670036316,
0.008993512950837612,
0.006865921895951033,
-0.03172655403614044,
0.027247130870819092,
0.013332230970263481,
-0.0030031907372176647,
0.02128133736550808,
0.01882576383650303,
0.033664483577013016,
-0.0018283630488440394,
-0.01887429878115654,
-0.02778138965368271,
-0.005841467529535294,
-0.02236820198595524,
-0.006272263824939728,
0.011159618385136127,
-0.03807319700717926,
0.011971857398748398,
-0.03233736380934715,
0.010672152042388916,
0.010800927877426147,
-0.011861862614750862,
0.014793429523706436,
0.0398813895881176,
-0.022359389811754227,
-0.0031989505514502525,
-0.011246196925640106,
-0.017676688730716705,
0.050563402473926544,
0.032556723803281784,
-0.010955329053103924,
-0.001799464807845652,
0.05020233616232872,
0.011743959970772266,
0.016333673149347305,
-0.019094478338956833,
0.0010455159936100245,
0.005095448344945908,
0.03654574230313301,
0.025261059403419495,
-0.059616945683956146,
-0.0065852864645421505,
0.028763743117451668,
-0.02339417114853859,
-0.03231320530176163,
-0.02277986891567707,
-0.010560725815594196,
-0.04147285223007202,
0.02408377081155777,
0.014939498156309128,
-0.036212895065546036,
-0.047742459923028946,
-0.03053225576877594,
-0.0035777094308286905,
-0.008503344841301441,
-0.006542780436575413,
0.0018012920627370477,
-0.013300038874149323,
0.014732621610164642,
0.0173550583422184,
-0.039479855448007584,
-0.01830301247537136,
0.019323570653796196,
-0.006131357979029417,
0.03339371085166931,
0.021643150597810745,
0.009279854595661163,
0.013003491796553135,
0.01702364720404148,
0.02700868807733059,
0.003050931729376316,
-0.023714443668723106,
0.023028388619422913,
-0.023109860718250275,
0.01907663233578205,
0.0000208036490221275,
-0.036780864000320435,
-0.010970164090394974,
0.014292106963694096,
-0.0375879630446434,
-1.2947569238974665e-8,
-0.02766156755387783,
-0.011103461496531963,
-0.02864779531955719,
0.004733127076178789,
0.03724700212478638,
0.019349049776792526,
0.005629078950732946,
-0.01571962982416153,
0.025573574006557465,
0.016568364575505257,
0.05454546585679054,
0.009568030945956707,
0.02342182770371437,
0.010470724664628506,
0.026638111099600792,
-0.06425042450428009,
-0.001096517313271761,
0.009372035972774029,
0.028127368539571762,
0.008379935286939144,
-0.012473136186599731,
0.05183562636375427,
-0.04147033020853996,
-0.01809779740869999,
0.029509486630558968,
-0.010241064243018627,
0.02942497469484806,
-0.05538923293352127,
-0.011754303239285946,
-0.013605516403913498,
0.016963215544819832,
-0.04200784116983414,
0.005352033767849207,
0.021859465166926384,
-0.020179172977805138,
-0.03315124660730362,
0.056178927421569824,
0.01531346794217825,
0.01622025854885578,
0.030390579253435135,
-0.007987617515027523,
0.014390860684216022,
-0.04360058158636093,
-0.023229526355862617,
-0.035170137882232666,
-0.02420978620648384,
-0.03470431640744209,
0.03150491788983345,
0.04765300825238228,
-0.050381310284137726,
0.004538979846984148,
-0.022783011198043823,
0.03384494036436081,
0.0037244372069835663,
0.030740000307559967,
0.00873919390141964,
0.06041844189167023,
-0.005694070365279913,
0.005649188999086618,
0.011520068161189556,
0.04045502468943596,
0.012317909859120846,
-0.02956329472362995,
-0.023380806669592857
] | jq-error-cannot-iterate-over-null-null | https://markhneedham.com/blog/2015/10/09/jq-error-cannot-iterate-over-null-null |
false | 2015-10-31 23:58:22 | Hadoop: HDFS - java.lang.NoSuchMethodError: org.apache.hadoop.fs.FSOutputSummer.<init>(Ljava/util/zip/Checksum;II)V | [
"hadoop",
"hdfs"
] | [
"Software Development"
] | I wanted to write a little program to check that one machine could communicate a HDFS server running on the other and adapted https://wiki.apache.org/hadoop/HadoopDfsReadWriteExample[some code from the Hadoop wiki] as follows:
[source,java]
----
package org.playground;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.FSDataInputStream;
import org.apache.hadoop.fs.FSDataOutputStream;
import org.apache.hadoop.fs.FileSystem;
import org.apache.hadoop.fs.Path;
import java.io.IOException;
public class HadoopDFSFileReadWrite {
static void printAndExit(String str) {
System.err.println( str );
System.exit(1);
}
public static void main (String[] argv) throws IOException {
Configuration conf = new Configuration();
conf.addResource(new Path("/Users/markneedham/Downloads/core-site.xml"));
FileSystem fs = FileSystem.get(conf);
Path inFile = new Path("hdfs://192.168.0.11/user/markneedham/explore.R");
Path outFile = new Path("hdfs://192.168.0.11/user/markneedham/output-" + System.currentTimeMillis());
// Check if input/output are valid
if (!fs.exists(inFile))
printAndExit("Input file not found");
if (!fs.isFile(inFile))
printAndExit("Input should be a file");
if (fs.exists(outFile))
printAndExit("Output already exists");
// Read from and write to new file
byte buffer[] = new byte[256];
try ( FSDataInputStream in = fs.open( inFile ); FSDataOutputStream out = fs.create( outFile ) )
{
int bytesRead = 0;
while ( (bytesRead = in.read( buffer )) > 0 )
{
out.write( buffer, 0, bytesRead );
}
}
catch ( IOException e )
{
System.out.println( "Error while copying file" );
}
}
}
----
I initially thought I only had the following in my POM file:
[source,xml]
----
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-common</artifactId>
<version>2.7.0</version>
</dependency>
----
But when I ran the script I got the following exception:
[source,text]
----
Exception in thread "main" java.lang.NoSuchMethodError: org.apache.hadoop.fs.FSOutputSummer.<init>(Ljava/util/zip/Checksum;II)V
at org.apache.hadoop.hdfs.DFSOutputStream.<init>(DFSOutputStream.java:1553)
at org.apache.hadoop.hdfs.DFSOutputStream.<init>(DFSOutputStream.java:1582)
at org.apache.hadoop.hdfs.DFSOutputStream.newStreamForCreate(DFSOutputStream.java:1614)
at org.apache.hadoop.hdfs.DFSClient.create(DFSClient.java:1465)
at org.apache.hadoop.hdfs.DFSClient.create(DFSClient.java:1390)
at org.apache.hadoop.hdfs.DistributedFileSystem$6.doCall(DistributedFileSystem.java:394)
at org.apache.hadoop.hdfs.DistributedFileSystem$6.doCall(DistributedFileSystem.java:390)
at org.apache.hadoop.fs.FileSystemLinkResolver.resolve(FileSystemLinkResolver.java:81)
at org.apache.hadoop.hdfs.DistributedFileSystem.create(DistributedFileSystem.java:390)
at org.apache.hadoop.hdfs.DistributedFileSystem.create(DistributedFileSystem.java:334)
at org.apache.hadoop.fs.FileSystem.create(FileSystem.java:909)
at org.apache.hadoop.fs.FileSystem.create(FileSystem.java:890)
at org.apache.hadoop.fs.FileSystem.create(FileSystem.java:787)
at org.apache.hadoop.fs.FileSystem.create(FileSystem.java:776)
at org.playground.HadoopDFSFileReadWrite.main(HadoopDFSFileReadWrite.java:37)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:140)
----
From following the stack trace I realised I'd made a mistake and had accidentally pulled in a dependency on hadoop-hdfs 2.4.1. If we don't have the hadoop-hdfs dependency we'd actually see this error instead:
[source,text]
----
Exception in thread "main" java.io.IOException: No FileSystem for scheme: hdfs
at org.apache.hadoop.fs.FileSystem.getFileSystemClass(FileSystem.java:2644)
at org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:2651)
at org.apache.hadoop.fs.FileSystem.access$200(FileSystem.java:92)
at org.apache.hadoop.fs.FileSystem$Cache.getInternal(FileSystem.java:2687)
at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:2669)
at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:371)
at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:170)
at org.playground.HadoopDFSFileReadWrite.main(HadoopDFSFileReadWrite.java:22)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:140)
----
Now let's add the correct version of the dependency and make sure it all works as expected:
[source,xml]
----
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-hdfs</artifactId>
<version>2.7.0</version>
<exclusions>
<exclusion>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
</exclusion>
<exclusion>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
</exclusion>
</exclusions>
</dependency>
----
When we run that a new file is created in HDFS on the other machine with the current timestamp:
[source,bash]
----
$ date +%s000
1446336801000
$ hdfs dfs -ls
...
-rw-r--r-- 3 markneedham supergroup 9249 2015-11-01 00:13 output-1446337098257
...
---- | null | null | [
-0.0042795282788574696,
-0.01682528853416443,
-0.04628312215209007,
0.08937948197126389,
0.09526481479406357,
-0.0023998008109629154,
-0.014918368309736252,
0.03581572696566582,
0.025853438302874565,
-0.03189878910779953,
0.009412641637027264,
-0.0026710613165050745,
-0.06926904618740082,
0.03178020194172859,
-0.02671346813440323,
0.05176322162151337,
0.08978621661663055,
-0.011373016983270645,
0.03574146330356598,
0.014683552086353302,
-0.04295174032449722,
0.01854686066508293,
-0.034084949642419815,
0.03527774289250374,
0.013430314138531685,
-0.004774605855345726,
0.0052343406714499,
0.018751174211502075,
-0.040594059973955154,
0.008724924176931381,
0.02502628229558468,
-0.011174456216394901,
0.021468941122293472,
0.017849566414952278,
-0.01385713741183281,
-0.01407247968018055,
-0.0069110156036913395,
-0.002494546351954341,
0.0045769396238029,
0.03467203304171562,
-0.04087308794260025,
0.024623287841677666,
-0.010885244235396385,
0.011689894832670689,
-0.040116723626852036,
0.019145049154758453,
-0.01393205113708973,
0.014353690668940544,
-0.0029967809095978737,
0.003892192617058754,
-0.06283150613307953,
0.020946936681866646,
-0.041334573179483414,
-0.0022848257794976234,
0.0218767412006855,
0.03547809273004532,
0.02048785611987114,
-0.06912212073802948,
0.048919688910245895,
-0.022423801943659782,
0.005660723894834518,
-0.040493953973054886,
-0.0039410642348229885,
0.0380016528069973,
-0.013526217080652714,
-0.04155028983950615,
0.013909832574427128,
0.041035834699869156,
-0.05334331840276718,
-0.03572864457964897,
-0.012508134357631207,
0.01689082570374012,
-0.03486354276537895,
-0.031589072197675705,
0.009293935261666775,
-0.06026811897754669,
-0.0047280192375183105,
0.04334137216210365,
0.012148882262408733,
0.03858089819550514,
-0.04203229770064354,
0.008205660618841648,
0.01545157004147768,
0.007605796214193106,
0.01907295174896717,
-0.054009970277547836,
-0.0469064898788929,
-0.012091608718037605,
-0.03483785316348076,
0.06884761154651642,
-0.004719714168459177,
-0.027911659330129623,
-0.02200755476951599,
-0.0017383493250235915,
-0.003292060224339366,
-0.023968162015080452,
0.004538877867162228,
0.0012313361512497067,
0.01110113225877285,
0.011695860885083675,
-0.056535132229328156,
0.01513981819152832,
0.018325630575418472,
0.05233081430196762,
-0.04389800876379013,
-0.014521968550980091,
-0.0329686775803566,
-0.030657432973384857,
0.0008538356050848961,
-0.0007503174128942192,
-0.0033345601987093687,
0.016579698771238327,
-0.0008936977828852832,
0.001009117579087615,
-0.08293019980192184,
0.0721227154135704,
0.021469049155712128,
-0.030911235138773918,
0.017155064269900322,
0.04571807011961937,
0.046523015946149826,
0.04285989701747894,
-0.002609672024846077,
0.08313920348882675,
0.00637127086520195,
0.019796203821897507,
-0.00039162885514087975,
0.031883999705314636,
-0.015294400975108147,
-0.056336939334869385,
-0.0362032987177372,
0.03594529256224632,
0.0339646115899086,
0.011194844730198383,
-0.003977352287620306,
0.010212558321654797,
-0.011364242993295193,
-0.014895172789692879,
0.02759566158056259,
0.01705252379179001,
0.0004357754660304636,
-0.0040410952642560005,
-0.011941533535718918,
-0.017765237018465996,
0.007330075837671757,
0.025858797132968903,
-0.005914952140301466,
-0.039588768035173416,
-0.016490736976265907,
0.035271283239126205,
-0.00042248537647537887,
0.045414380729198456,
0.06653868407011032,
-0.01414674986153841,
-0.02065136469900608,
0.11316400021314621,
0.014355379156768322,
0.02863738313317299,
-0.039041440933942795,
0.023857396095991135,
0.030438704416155815,
0.05159171298146248,
0.0105433976277709,
0.013826162554323673,
-0.017637254670262337,
-0.024325473234057426,
0.006396750919520855,
0.02948841266334057,
-0.01345020066946745,
0.010633056983351707,
-0.03154618665575981,
-0.07220571488142014,
0.027195977047085762,
-0.04047227278351784,
0.012588804587721825,
0.004304762929677963,
0.0768134742975235,
0.013325121253728867,
0.020772285759449005,
0.02653140015900135,
-0.07127131521701813,
0.017344258725643158,
0.005114726256579161,
0.04092111065983772,
-0.011357815004885197,
0.024067359045147896,
0.05848075449466705,
0.04831439256668091,
0.007405675482004881,
0.017311330884695053,
-0.07312190532684326,
-0.1011710911989212,
-0.03093111701309681,
-0.0044922539964318275,
0.04451161250472069,
-0.02852688729763031,
0.0008322260691784322,
0.04376107454299927,
0.02382071129977703,
0.02391417883336544,
0.006215071305632591,
-0.02115878462791443,
-0.0053156171925365925,
-0.06915049999952316,
-0.05932685732841492,
0.06017713621258736,
0.039874956011772156,
-0.023848293349146843,
-0.03682902455329895,
-0.011723487637937069,
-0.04416896775364876,
0.04859846457839012,
0.03011435456573963,
-0.0007375807035714388,
0.0816592127084732,
0.031049637123942375,
0.029089365154504776,
-0.020695919170975685,
0.06150692328810692,
-0.05608459934592247,
0.03313402086496353,
0.000933319388423115,
-0.0024835614021867514,
-0.004334474913775921,
0.00017455621855333447,
0.11764505505561829,
0.05405740439891815,
-0.00967482291162014,
-0.04873520880937576,
0.05610344558954239,
-0.031401559710502625,
-0.05472027510404587,
0.020295992493629456,
-0.008977100253105164,
-0.03624965623021126,
0.05703093484044075,
-0.02473657764494419,
-0.007112062536180019,
-0.0008207607315853238,
-0.018405243754386902,
-0.002874501748010516,
0.06967518478631973,
-0.023822050541639328,
0.03803570196032524,
0.021719885990023613,
-0.036106038838624954,
0.021670930087566376,
-0.010643168352544308,
-0.03888643905520439,
-0.019851556047797203,
0.0036903831642121077,
-0.01687944307923317,
0.06331370025873184,
-0.025447864085435867,
-0.03766411542892456,
-0.03810404613614082,
-0.04560697451233864,
0.021908016875386238,
0.05318635702133179,
0.06859637796878815,
-0.025843149051070213,
0.0280303917825222,
-0.028291933238506317,
-0.014254337176680565,
-0.02907990664243698,
-0.06722793728113174,
-0.011355127207934856,
0.03980520740151405,
0.03753827512264252,
0.024648308753967285,
0.011090944521129131,
0.006362441461533308,
0.04562601447105408,
0.017456209287047386,
0.0034081991761922836,
-0.021873051300644875,
0.06904938817024231,
-0.03274020925164223,
-0.0090046850964427,
-0.03351195901632309,
0.022920390591025352,
0.04481412097811699,
-0.015517027117311954,
-0.046917058527469635,
0.044129688292741776,
-0.052564121782779694,
0.02929304726421833,
-0.06046954542398453,
-0.06030302494764328,
0.0021380374673753977,
0.0187926534563303,
0.026884445920586586,
0.004004475194960833,
-0.011031068861484528,
0.07389716058969498,
0.021077118813991547,
-0.008417364209890366,
0.011139897629618645,
0.02509324997663498,
0.027300383895635605,
0.002529663033783436,
0.022845283150672913,
0.020831746980547905,
-0.013052443042397499,
-0.012767383828759193,
-0.03806016594171524,
-0.007439611479640007,
-0.03024323098361492,
-0.24852435290813446,
0.0382520854473114,
-0.01234484650194645,
-0.02997787855565548,
0.04607704281806946,
-0.022716350853443146,
-0.009446488693356514,
-0.032496437430381775,
-0.010940704494714737,
0.01680339127779007,
-0.047114066779613495,
-0.02607247605919838,
-0.02507244423031807,
0.05282352492213249,
-0.013209388591349125,
0.020002076402306557,
0.0034581657964736223,
-0.05316361039876938,
0.015585223212838173,
0.016877926886081696,
-0.01484703365713358,
-0.060923464596271515,
0.0016144447727128863,
0.05177603289484978,
0.021893775090575218,
0.0394696481525898,
-0.05093670263886452,
0.06355942040681839,
-0.044336866587400436,
-0.03771589323878288,
0.010591190308332443,
-0.03805651143193245,
0.0008057068916969001,
-0.01108185201883316,
-0.010179916396737099,
-0.02417987585067749,
0.007917126640677452,
0.037103816866874695,
0.009304333478212357,
0.03381314501166344,
-0.04228665307164192,
-0.062257006764411926,
-0.038444604724645615,
-0.005467694718390703,
0.04891509935259819,
-0.029716992750763893,
-0.06159374862909317,
-0.015282001346349716,
-0.023970341309905052,
0.06853705644607544,
-0.050804536789655685,
-0.036110952496528625,
-0.010663915425539017,
0.010357920080423355,
-0.027481354773044586,
0.0026983562856912613,
0.007876920513808727,
0.01776806265115738,
-0.020535342395305634,
-0.02619161456823349,
-0.005758669693022966,
-0.05493542551994324,
-0.008389896713197231,
-0.061962906271219254,
-0.028814230114221573,
-0.04907064512372017,
-0.05543886497616768,
0.005661727860569954,
0.04980183765292168,
0.03881841152906418,
-0.02158714085817337,
0.01439725048840046,
0.009462752379477024,
-0.11481841653585434,
-0.020122084766626358,
-0.06040229648351669,
-0.035997893661260605,
-0.04590874910354614,
-0.018299391493201256,
0.041393302381038666,
-0.018924478441476822,
-0.02012140490114689,
0.018613098189234734,
-0.011085848324000835,
0.04729822650551796,
-0.0473751462996006,
0.026195857673883438,
-0.054862115532159805,
0.011578228324651718,
-0.008416100405156612,
0.07165677845478058,
-0.03287645801901817,
0.011059991084039211,
-0.03809848427772522,
-0.0020904880948364735,
0.06267652660608292,
0.015934361144900322,
0.02361120656132698,
-0.018732909113168716,
0.02870818041265011,
0.03204716369509697,
-0.03505240008234978,
0.012302165850996971,
-0.053983114659786224,
0.01300934050232172,
0.0055255102925002575,
-0.047129370272159576,
0.050697267055511475,
0.006643831264227629,
0.03632796183228493,
0.013215483166277409,
-0.0014019118389114738,
0.023022379726171494,
-0.07126615196466446,
-0.035368308424949646,
-0.029551252722740173,
0.00580285768955946,
0.0272404532879591,
0.037052419036626816,
-0.01592441461980343,
-0.0122234420850873,
0.0026051118038594723,
0.04674459621310234,
-0.041870441287755966,
-0.03186824172735214,
-0.0255441851913929,
-0.007813125848770142,
-0.014617368578910828,
0.014046815223991871,
-0.0031785722821950912,
-0.006799023598432541,
0.010823721997439861,
0.07209520041942596,
-0.0187150277197361,
0.01197226345539093,
-0.0362432561814785,
-0.04183643311262131,
-0.024307794868946075,
-0.005565810948610306,
0.0016440554754808545,
-0.001486515044234693,
-0.005302242003381252,
0.017824381589889526,
-0.0004192573542241007,
0.061895862221717834,
-0.014165030792355537,
0.01886427402496338,
0.004536318592727184,
-0.0032000443898141384,
-0.02733437903225422,
0.01745975948870182,
-0.02631768211722374,
-0.004998372867703438,
-0.012245154939591885,
-0.10639289766550064,
0.004703573416918516,
0.034737568348646164,
-0.006553106475621462,
-0.05560772866010666,
-0.04790559783577919,
0.03151056915521622,
-0.05798052251338959,
-0.005241583101451397,
0.0016299693379551172,
0.01354409009218216,
0.06921685487031937,
-0.02020196057856083,
0.035676777362823486,
-0.009427809156477451,
-0.02579236403107643,
0.00026144908042624593,
-0.011660399846732616,
-0.026901867240667343,
0.03814929723739624,
-0.005059889983385801,
-0.0009394264197908342,
0.04055223986506462,
0.03150778263807297,
0.015184194780886173,
0.016330914571881294,
-0.022765526548027992,
-0.006865008268505335,
0.015300314873456955,
-0.019037462770938873,
0.05808619409799576,
-0.011337295174598694,
-0.0007188748568296432,
0.002526605734601617,
-0.00600456353276968,
-0.03273632749915123,
-0.01922859624028206,
-0.011537779122591019,
-0.0015537564177066088,
0.08122089505195618,
-0.022460583597421646,
-0.09253279119729996,
0.04823434725403786,
-0.010927603580057621,
0.02451115846633911,
0.014307336881756783,
-0.007852061651647091,
0.011142682284116745,
0.008012831211090088,
0.020338229835033417,
0.0675201565027237,
-0.04405585676431656,
0.017028676345944405,
0.002120479242876172,
0.021267646923661232,
0.03138568624854088,
-0.014642123132944107,
-0.02446012571454048,
-0.04456798732280731,
-0.00920602772384882,
0.02743702009320259,
-0.03888367488980293,
-0.020178087055683136,
-0.035527303814888,
-0.002962860045954585,
-0.027209190651774406,
-0.0010924201924353838,
0.010102505795657635,
0.0011297301389276981,
-0.030340930446982384,
-0.03007233329117298,
-0.005568208638578653,
-0.01256998535245657,
-0.035713959485292435,
0.02561071887612343,
-0.012464475817978382,
0.010692800395190716,
-0.0328601635992527,
0.03219562768936157,
0.03145438805222511,
-0.03789925575256348,
-0.02006950043141842,
-0.03349679335951805,
0.020365342497825623,
-0.003404253628104925,
0.045674197375774384,
0.03125632554292679,
0.006966425105929375,
-0.0221700556576252,
-0.014311530627310276,
-0.026374680921435356,
0.024087123572826385,
-0.027726532891392708,
-0.020739946514368057,
0.018256116658449173,
0.0599183663725853,
-0.02637239545583725,
0.0117071233689785,
0.006026596296578646,
-0.018472282215952873,
0.07780947536230087,
-0.010756595060229301,
-0.035584770143032074,
-0.0012350913602858782,
-0.04908124729990959,
0.03602685406804085,
0.027998244389891624,
-0.004121839534491301,
-0.06077418848872185,
0.045583877712488174,
0.031083092093467712,
0.002918628044426441,
0.04759000986814499,
-0.022019337862730026,
0.04988725483417511,
-0.01568702608346939,
-0.03071480058133602,
-0.09802576899528503,
-0.024874284863471985,
0.030965594574809074,
-0.0027439729310572147,
-0.01162037905305624,
-0.04085663706064224,
-0.018203144893050194,
0.012177431024610996,
-0.06022471562027931,
-0.03576741740107536,
0.04129423201084137,
0.00787047017365694,
0.025690369307994843,
0.0017071570036932826,
0.001725918846204877,
0.01672363467514515,
0.022449780255556107,
-0.037768758833408356,
-0.02700466848909855,
-0.009986275807023048,
0.03802499175071716,
0.03877168521285057,
0.005478585138916969,
0.004138673655688763,
-0.03191366419196129,
0.05965311452746391,
0.026366854086518288,
0.0031680488027632236,
0.04144703596830368,
-0.03283340111374855,
0.04983425512909889,
0.025181174278259277,
-0.025323836132884026,
0.02163151651620865,
0.01930147036910057,
-0.032802361994981766,
-0.03404239937663078,
-0.015911513939499855,
0.01251951977610588,
-0.013648595660924911,
-0.02318006567656994,
0.04769488424062729,
0.016190670430660248,
-0.034242045134305954,
-0.06528803706169128,
0.004589923191815615,
-0.0292628463357687,
-0.00827108696103096,
-0.02123059704899788,
0.0028332953806966543,
-0.06720706075429916,
0.05301978439092636,
0.0031925623770803213,
0.022260794416069984,
0.08533230423927307,
0.020627953112125397,
-0.03258468955755234,
0.047556519508361816,
0.08971674740314484,
0.08179038017988205,
-0.030859410762786865,
-0.01058410108089447,
0.05685656517744064,
-0.014146437868475914,
-0.0084388367831707,
-0.02536688558757305,
-0.03723695129156113,
0.0022365550976246595,
-0.00992218405008316,
0.020147746428847313,
0.07329703122377396,
0.006874897982925177,
0.07738705724477768,
-0.009038284420967102,
0.01800387352705002,
0.010715301148593426,
0.05666980519890785,
0.0518956184387207,
0.00438845856115222,
0.007043145596981049,
0.03427422419190407,
0.016359632834792137,
-0.022942062467336655,
0.016064777970314026,
-0.0025077923201024532,
0.008422866463661194,
0.016496580094099045,
-0.015831895172595978,
0.018708987161517143,
0.023705216124653816,
0.008014230988919735,
0.06130683794617653,
0.028284406289458275,
0.010631764307618141,
-0.00927738007158041,
0.028630468994379044,
-0.02394389919936657,
0.015835853293538094,
-0.028472207486629486,
-0.012180894613265991,
-0.0012350691249594092,
-0.03610127046704292,
-0.02131100744009018,
-0.01850973069667816,
-0.022001048550009727,
0.010473820380866528,
-0.04188264161348343,
0.028145287185907364,
0.01820230856537819,
-0.004203165415674448,
-0.050034165382385254,
-0.038991544395685196,
-0.06738701462745667,
-0.01870129257440567,
-0.05653960630297661,
0.028228413313627243,
-0.015651673078536987,
-0.010438792407512665,
-0.03602543845772743,
-0.038051821291446686,
-0.037593066692352295,
-0.023003732785582542,
-0.0008765142993070185,
-0.022707713767886162,
-0.002953049959614873,
0.00886532012373209,
0.030628561973571777,
0.04770238324999809,
0.047914061695337296,
0.050645653158426285,
-0.02737174928188324,
-0.013898929581046104,
-0.02290223352611065,
-0.03693630173802376,
0.051512595266103745,
-0.0007333251996897161,
0.012763876467943192,
-0.08922639489173889,
0.028402741998434067,
0.03274158760905266,
0.04124576598405838,
-0.06558914482593536,
0.004810022190213203,
0.046249594539403915,
-0.017812786623835564,
0.04810705780982971,
0.0015406650491058826,
0.008508150465786457,
0.00201267097145319,
-0.04816161468625069,
-0.042118605226278305,
-0.013942393474280834,
0.07307411730289459,
-0.0075391740538179874,
0.09483034163713455,
0.041276197880506516,
0.010695204138755798,
-0.04038615897297859,
0.001169454655610025,
-0.018308984115719795,
0.005001747980713844,
-0.042389266192913055,
-0.04965391010046005,
-0.05320123955607414,
-0.07604772597551346,
-0.016267700120806694,
-0.001772465300746262,
-0.03742923587560654,
-0.038935936987400055,
-0.0013452789280563593,
0.04174863547086716,
-0.0624561570584774,
0.020989881828427315,
-0.050721097737550735,
0.0029408824630081654,
-0.033021289855241776,
-0.07098127901554108,
-0.02122526429593563,
0.042101528495550156,
0.0015590023249387741,
-0.004032515920698643,
0.03118782304227352,
-0.027970852330327034,
0.004854612518101931,
-0.0005225860513746738,
0.041390419006347656,
0.05914873629808426,
-0.025830313563346863,
-0.006082722917199135
] | [
-0.08166302740573883,
-0.05712005868554115,
-0.05882472172379494,
-0.031036049127578735,
0.09102854132652283,
-0.05477272346615791,
-0.036907415837049484,
0.009206969290971756,
0.013793163001537323,
-0.0020838449709117413,
0.022367486730217934,
-0.06558649986982346,
0.015502831898629665,
-0.05380558595061302,
0.06761819124221802,
0.007430723402649164,
-0.000892439391463995,
-0.055012207478284836,
-0.017567746341228485,
0.0531466007232666,
0.04122664034366608,
-0.02742837555706501,
-0.06894603371620178,
-0.05200478434562683,
-0.015695324167609215,
0.057449568063020706,
0.025773052126169205,
-0.035412129014730453,
-0.06452621519565582,
-0.18030136823654175,
0.010311012156307697,
-0.03504951298236847,
0.03973812237381935,
-0.004202505573630333,
0.04871879518032074,
0.02293326146900654,
0.05594802647829056,
-0.007975188083946705,
-0.03428911790251732,
0.027214543893933296,
0.008139780722558498,
-0.0091404365375638,
-0.027886562049388885,
-0.012230748310685158,
0.0006362812127918005,
-0.02268051914870739,
-0.025724690407514572,
-0.012682994827628136,
-0.001899922383017838,
0.002772177569568157,
-0.09778305888175964,
-0.006193800363689661,
0.0032976819202303886,
-0.035192396491765976,
-0.009493975900113583,
0.03918949514627457,
0.08648183196783066,
0.07842466235160828,
0.013707276433706284,
0.005602587480098009,
0.03765532374382019,
-0.0013136020861566067,
-0.14275170862674713,
0.06450240314006805,
0.06812877207994461,
0.03748193383216858,
-0.012995859608054161,
-0.04327541962265968,
0.008431239984929562,
0.057977691292762756,
0.006566920783370733,
0.001790319220162928,
-0.01880427822470665,
0.10698074102401733,
0.009361647069454193,
-0.01358121633529663,
0.0038210146594792604,
0.044417016208171844,
0.031890153884887695,
-0.014937975443899632,
-0.08299661427736282,
-0.023433487862348557,
-0.029408181086182594,
0.023260949179530144,
-0.059822212904691696,
0.031182177364826202,
-0.017962636426091194,
0.08052745461463928,
0.015601829625666142,
0.010237419046461582,
0.013173924759030342,
-0.009622120298445225,
0.04664375260472298,
0.000357717159204185,
-0.10144885629415512,
0.0021915931720286608,
0.0031358918640762568,
-0.00226015318185091,
0.018518967553973198,
0.40974947810173035,
-0.045528337359428406,
-0.03779181092977524,
0.04002474248409271,
0.013405167497694492,
0.010114993900060654,
-0.0031232889741659164,
-0.0071448516100645065,
-0.017694368958473206,
0.009579990990459919,
-0.02380874752998352,
0.01637229137122631,
-0.029465654864907265,
0.05689471587538719,
-0.04212372377514839,
0.025236979126930237,
0.03707733377814293,
0.0034973116125911474,
0.0159078948199749,
-0.06923853605985641,
0.030207717791199684,
-0.032675601541996,
0.01063213124871254,
0.02610544115304947,
0.031030669808387756,
0.03539341315627098,
-0.04207523912191391,
0.04020340368151665,
0.05814239755272865,
0.053691234439611435,
0.01753261499106884,
0.03560049459338188,
-0.028681235387921333,
-0.061749156564474106,
-0.027779484167695045,
0.025507373735308647,
0.022900255396962166,
0.018999628722667694,
-0.03906212002038956,
-0.01612810231745243,
0.013075965456664562,
0.015436116605997086,
-0.043487127870321274,
0.00878753513097763,
-0.010975691489875317,
-0.025081023573875427,
0.13067300617694855,
0.0033560595475137234,
0.009080533869564533,
-0.03912562504410744,
-0.06774156540632248,
0.011625387705862522,
0.032352644950151443,
-0.0022499216720461845,
-0.06200513616204262,
0.008551051840186119,
0.03818812221288681,
0.06314469128847122,
-0.019220389425754547,
-0.03836721554398537,
0.0022723751608282328,
-0.010433620773255825,
-0.01981525309383869,
-0.026005083695054054,
0.058860160410404205,
0.027257200330495834,
-0.06577623635530472,
-0.010473616421222687,
0.00981427263468504,
0.029800163581967354,
-0.032264344394207,
-0.010714481584727764,
-0.022200437262654305,
0.010471893474459648,
-0.03353113308548927,
0.006811274215579033,
-0.05019710212945938,
-0.03246423229575157,
0.01799609139561653,
0.006782269570976496,
0.009514085948467255,
0.005981700029224157,
0.019110774621367455,
-0.025080107152462006,
-0.0026132711209356785,
-0.019546763971447945,
-0.09021148085594177,
-0.06837113946676254,
0.0174521766602993,
-0.02721467986702919,
0.0018788131419569254,
-0.05429204925894737,
-0.022403398528695107,
-0.03743086755275726,
0.052464596927165985,
-0.01684817671775818,
-0.04166184738278389,
0.023868411779403687,
0.04590881988406181,
-0.02125304751098156,
-0.04178815335035324,
0.04274984821677208,
0.06636218726634979,
-0.023811595514416695,
0.04465010389685631,
-0.07900810986757278,
-0.005298963747918606,
0.026049450039863586,
-0.015326147899031639,
0.04334307089447975,
0.0107956537976861,
-0.00032095162896439433,
-0.017863987013697624,
0.0034033507108688354,
0.03442094847559929,
-0.05548711121082306,
0.011279449798166752,
0.007673917803913355,
0.028128983452916145,
0.02818242274224758,
0.04558215290307999,
-0.012908866629004478,
-0.006374056451022625,
-0.00017599693092051893,
-0.3455471098423004,
-0.056801628321409225,
0.0028539765626192093,
-0.015660729259252548,
0.006693917792290449,
-0.01779658906161785,
0.040082186460494995,
-0.0016330699436366558,
-0.0411987379193306,
0.01980678178369999,
0.10235120356082916,
-0.06338348984718323,
-0.012799721211194992,
-0.08945687115192413,
-0.006046961527317762,
0.015657691285014153,
-0.03618410602211952,
-0.00022573559544980526,
-0.021836446598172188,
0.005461510736495256,
0.0032979471143335104,
-0.030315566807985306,
0.009319000877439976,
-0.014613178558647633,
0.02356174774467945,
-0.026254141703248024,
0.12636540830135345,
0.01091939490288496,
0.09224718064069748,
-0.04197714105248451,
0.0420277900993824,
0.0063714622519910336,
-0.006043196655809879,
-0.10144083946943283,
-0.007819064892828465,
-0.012006111443042755,
-0.02196267619729042,
0.02994481846690178,
0.0008583557792007923,
-0.02199224755167961,
-0.0615500807762146,
0.02187804877758026,
-0.08106199651956558,
-0.027515104040503502,
-0.001555745955556631,
-0.0071793049573898315,
-0.019877521321177483,
-0.033416442573070526,
-0.028786111623048782,
0.05960077792406082,
-0.010547048412263393,
-0.03141757473349571,
0.018531344830989838,
0.04635460302233696,
0.047739963978528976,
-0.04109715297818184,
-0.0508219376206398,
-0.007947520352900028,
0.02831478975713253,
-0.023965658619999886,
0.04973982274532318,
0.06387181580066681,
-0.006526656448841095,
-0.041078533977270126,
0.028720714151859283,
-0.03527140989899635,
-0.026450052857398987,
0.02993367239832878,
0.036892369389534,
-0.04830314964056015,
-0.03281041607260704,
0.05522620305418968,
-0.02470412291586399,
0.03706693276762962,
0.042437393218278885,
0.04616202041506767,
-0.013458369299769402,
-0.03516324236989021,
0.0008350244606845081,
-0.02926146611571312,
0.08767979592084885,
-0.006982108578085899,
0.046482741832733154,
-0.018598271533846855,
-0.0015486199408769608,
0.06897567212581635,
-0.002938264049589634,
-0.010553442873060703,
0.0602990984916687,
-0.0048959762789309025,
-0.008929111063480377,
-0.02272309735417366,
-0.01792912185192108,
-0.05220435559749603,
0.06008683517575264,
-0.014609558507800102,
-0.28257492184638977,
0.02770436555147171,
0.016152899712324142,
0.04584692791104317,
-0.029196493327617645,
0.02515292540192604,
0.03366478905081749,
-0.014158190228044987,
0.02288215607404709,
0.030485015362501144,
0.0034010536037385464,
0.01503817643970251,
-0.0107079753652215,
-0.008979275822639465,
0.012684252113103867,
0.02402763068675995,
0.03401122987270355,
0.04722153767943382,
0.02386021986603737,
-0.05213770270347595,
-0.006453949026763439,
-0.03360902518033981,
0.15352007746696472,
-0.010493509471416473,
0.020995495840907097,
0.0524587407708168,
0.011667688377201557,
0.029698463156819344,
0.0794934332370758,
0.035401176661252975,
0.02613801881670952,
-0.0035624790471047163,
0.03944505378603935,
-0.017072824761271477,
0.02071192115545273,
-0.04380868747830391,
0.018763570114970207,
0.05306944623589516,
0.03010631538927555,
-0.0007516338373534381,
-0.001990953227505088,
0.0022228846792131662,
-0.019923800602555275,
0.02674182504415512,
0.0530039519071579,
0.0017326594097539783,
0.004822901915758848,
-0.044868383556604385,
-0.050310246646404266,
0.009339410811662674,
-0.0136337298899889,
-0.025284549221396446,
0.013355759903788567,
-0.008822282776236534,
-0.008310142904520035,
0.06447184830904007,
0.03341691195964813,
0.0007970143924467266,
-0.03409238159656525,
-0.00797390565276146,
0.019927198067307472,
-0.05287463217973709,
0.10743974894285202,
0.014462484046816826,
0.019441520795226097
] | [
-0.02296677976846695,
0.013575343415141106,
-0.018036119639873505,
-0.007652806583791971,
-0.00023447303101420403,
-0.025634396821260452,
-0.03611617535352707,
0.053786247968673706,
-0.013004222884774208,
0.00011889253801200539,
-0.010196072980761528,
0.006994528695940971,
0.05322830006480217,
-0.06521114706993103,
-0.045575935393571854,
-0.04340871050953865,
-0.04912219196557999,
-0.011655883863568306,
0.013624331913888454,
-0.019357381388545036,
-0.03127318248152733,
0.05014823377132416,
0.02313986048102379,
-0.03449568524956703,
-0.026007328182458878,
0.018148520961403847,
-0.01916595734655857,
0.001876624533906579,
-0.03213655948638916,
-0.10440203547477722,
0.007451327983289957,
-0.014791377820074558,
0.04390906170010567,
0.0033326782286167145,
-0.0016627198783680797,
0.040463246405124664,
0.03244196996092796,
-0.0045263576321303844,
-0.058733027428388596,
-0.041223812848329544,
0.02225596085190773,
-0.09048785269260406,
0.005726543255150318,
0.013422591611742973,
-0.029164224863052368,
-0.01786017045378685,
-0.02067803591489792,
-0.022115636616945267,
0.00832267664372921,
0.055019278079271317,
-0.06199626624584198,
0.02440846525132656,
0.012623594142496586,
0.02189495600759983,
0.009749099612236023,
0.03462624549865723,
0.014942226931452751,
0.03759264200925827,
-0.03569600358605385,
-0.024992264807224274,
-0.0013092058943584561,
-0.019263943657279015,
-0.028577927500009537,
-0.04048888012766838,
-0.008058927953243256,
0.0004312971723265946,
-0.0010089497081935406,
-0.012480499222874641,
0.013718461617827415,
0.014192229136824608,
0.02980865351855755,
0.09077249467372894,
-0.046088725328445435,
-0.010806811973452568,
-0.03577513247728348,
-0.013267191126942635,
0.023607593029737473,
-0.028460010886192322,
0.014384380541741848,
-0.0032319165766239166,
-0.03056563250720501,
-0.005463708192110062,
-0.004755001049488783,
0.007667085621505976,
-0.020715264603495598,
0.017436783760786057,
-0.016692036762833595,
-0.010961168445646763,
-0.03214927017688751,
-0.035773832350969315,
-0.05314825847744942,
0.007324303034693003,
-0.004007211420685053,
0.03525964170694351,
-0.0825074166059494,
0.020799120888113976,
-0.004603007808327675,
-0.007848872803151608,
0.023920582607388496,
0.7749743461608887,
-0.03212356939911842,
0.010253760032355785,
0.03990523889660835,
-0.026474032551050186,
0.0015203951625153422,
-0.05144273117184639,
-0.015692947432398796,
-0.01646333746612072,
-0.02011283114552498,
-0.05137891322374344,
0.03554495796561241,
-0.02992015704512596,
0.05777747929096222,
0.04700832441449165,
0.024409880861639977,
-0.018273407593369484,
0.008091800846159458,
0.009767892770469189,
-0.03763256594538689,
0.03547937795519829,
0.0021961356978863478,
-0.03241598978638649,
0.00010074037709273398,
-0.027488240972161293,
0.003576165996491909,
-0.17867468297481537,
-0.023270677775144577,
-6.434569383692829e-33,
-0.005821236874908209,
-0.026023240759968758,
0.02990899048745632,
0.0029148063622415066,
0.05221378430724144,
-0.021065546199679375,
0.02363530546426773,
0.023164084181189537,
-0.015741294249892235,
-0.02500983141362667,
0.0017165864119306207,
-0.012786706909537315,
0.044176992028951645,
-0.06017795205116272,
0.019943835213780403,
-0.017094125971198082,
0.011830633506178856,
0.01046407874673605,
-0.004016497638076544,
0.012048902921378613,
0.02787686139345169,
0.05403575673699379,
0.021593943238258362,
-0.029547402635216713,
0.017181936651468277,
-0.013951693661510944,
0.032094161957502365,
0.0009928338695317507,
0.03892116993665695,
-0.03478468209505081,
-0.02805163711309433,
-0.0298884529620409,
-0.00775189371779561,
-0.068250373005867,
0.04095335304737091,
-0.06019361689686775,
-0.043372757732868195,
-0.00990631990134716,
-0.08071904629468918,
-0.028698677197098732,
-0.020440444350242615,
-0.0025338483974337578,
-0.03548141568899155,
-0.009349813684821129,
-0.031116414815187454,
0.026517754420638084,
-0.0067252530716359615,
0.06295572966337204,
-0.008765600621700287,
0.0619799941778183,
0.030065786093473434,
-0.0026471170131117105,
0.03434910997748375,
-0.008348644711077213,
0.04372192546725273,
0.036050718277692795,
0.011432638391852379,
-0.012871945276856422,
-0.005363724194467068,
0.06177378445863724,
-0.01718861609697342,
0.011354614980518818,
0.015476981177926064,
0.015431022271513939,
-0.005640790332108736,
-0.014980649575591087,
0.056649915874004364,
-0.00821257196366787,
0.005824255291372538,
0.031345732510089874,
0.0041895667091012,
-0.010059874504804611,
-0.02881203591823578,
-0.007221823558211327,
-0.011235257610678673,
0.018837155774235725,
0.02908919006586075,
-0.022389452904462814,
-0.001654336927458644,
-0.021105188876390457,
0.04439757019281387,
-0.027181295678019524,
-0.01050813402980566,
-0.03735931217670441,
-0.025913231074810028,
0.022265760228037834,
-0.03406600281596184,
-0.023323656991124153,
0.015279189683496952,
0.04718217998743057,
0.005164579022675753,
0.014715248718857765,
-0.01388014480471611,
-0.022578874602913857,
-0.009971564635634422,
6.631364035751773e-33,
-0.021420344710350037,
-0.019100429490208626,
-0.032160867005586624,
-0.00018040592840407044,
0.08330715447664261,
0.03094988502562046,
0.056709952652454376,
0.021523367613554,
-0.02246147394180298,
0.0295433197170496,
-0.03885282203555107,
0.036878298968076706,
0.0056666117161512375,
-0.015426678583025932,
0.04404396563768387,
-0.001519924495369196,
0.06238504871726036,
-0.029468705877661705,
0.023233924061059952,
0.015199968591332436,
0.02014794945716858,
-0.015169928781688213,
0.0478435643017292,
0.027750005945563316,
0.062531016767025,
0.04938141629099846,
-0.03224646672606468,
0.029852010309696198,
-0.028015820309519768,
-0.004705410450696945,
0.04490838199853897,
-0.04040568694472313,
0.009689097292721272,
-0.023246319964528084,
-0.0020931523758918047,
-0.012773171998560429,
0.014816245064139366,
-0.016320226714015007,
0.016290897503495216,
0.022638222202658653,
0.01866527646780014,
-0.02218189649283886,
0.02758128009736538,
0.0034045283682644367,
-0.019251277670264244,
0.02821960672736168,
0.0011487846495583653,
0.02681078389286995,
-0.03270333632826805,
-0.018457233905792236,
-0.0016651726327836514,
-0.01662445440888405,
0.007049196399748325,
0.0345635749399662,
0.04610434174537659,
-0.0012538090813905,
0.03902041167020798,
0.016519058495759964,
-0.04011686518788338,
-0.019054722040891647,
0.007774917408823967,
-0.0678577721118927,
-0.04191484674811363,
0.055601272732019424,
-0.04148411378264427,
-0.01900278404355049,
0.003959705587476492,
-0.035170815885066986,
-0.014872551895678043,
0.026885533705353737,
-0.0012809247709810734,
-0.023590775206685066,
0.010171747766435146,
0.0677550658583641,
0.008552012965083122,
0.021807996556162834,
-0.0073833405040204525,
0.023038672283291817,
-0.01990525610744953,
0.0343245305120945,
0.020931541919708252,
0.03615308180451393,
-0.003169671632349491,
-0.006124895066022873,
0.028485849499702454,
-0.007770248223096132,
-0.02666008286178112,
-0.015053438022732735,
0.000031233648769557476,
-0.012903495691716671,
-0.015004838816821575,
0.021938825026154518,
-0.03201873227953911,
-0.0032678686548024416,
0.01416686363518238,
-1.1844062619559281e-8,
0.010011915117502213,
-0.017553701996803284,
-0.012087991461157799,
0.024162134155631065,
0.010421820916235447,
-0.03422650322318077,
-0.010574210435152054,
0.0012758682714775205,
-0.013963310979306698,
0.042273931205272675,
0.02257818728685379,
-0.022532152011990547,
-0.006320070009678602,
0.005501140374690294,
0.01889813505113125,
-0.04503157362341881,
0.07468221336603165,
-0.017809445038437843,
0.012573769316077232,
-0.0005259175668470562,
0.03210414946079254,
0.04013192653656006,
-0.0268049705773592,
0.03012930229306221,
0.0062062107026577,
0.0008624247275292873,
0.06438736617565155,
-0.11142560094594955,
-0.03336190804839134,
-0.024375008419156075,
-0.01942787878215313,
-0.039730723947286606,
-0.02450448088347912,
-0.006380931474268436,
-0.04486721381545067,
0.003945312462747097,
0.003553071292117238,
0.03439703211188316,
-0.00023009894357528538,
0.033776961266994476,
0.024660412222146988,
0.06631918996572495,
-0.019205333665013313,
-0.026994409039616585,
-0.01915097050368786,
-0.0032584494911134243,
0.00653599388897419,
0.043547045439481735,
0.0026942670810967684,
-0.036378029733896255,
-0.04048995301127434,
0.004985501524060965,
0.038556426763534546,
0.005438611377030611,
0.02066090889275074,
0.02606603316962719,
0.04238531365990639,
-0.006393639370799065,
-0.005867843050509691,
0.07228238880634308,
0.05887048691511154,
0.006676827557384968,
-0.024141566827893257,
-0.0020308794919401407
] | hadoop-hdfs-ava-lang-nosuchmethoderror-org-apache-hadoop-fs-fsoutputsummer-ljavautilzipchecksumiiv | https://markhneedham.com/blog/2015/10/31/hadoop-hdfs-ava-lang-nosuchmethoderror-org-apache-hadoop-fs-fsoutputsummer-ljavautilzipchecksumiiv |
false | 2015-07-05 08:38:03 | R: Wimbledon - How do the seeds get on? | [
"r-2"
] | [
"R"
] | Continuing on with the https://github.com/mneedham/neo4j-wimbledon/blob/master/wimbledon.csv[Wimbledon data set] I've been playing with I wanted to do some exploration on how the seeded players have fared over the years.
Taking the last 10 years worth of data there have always had 32 seeds and with the following function we can feed in a seeding and get back the round they would be expected to reach:
[source,r]
----
expected_round = function(seeding) {
if(seeding == 1) {
return("Winner")
} else if(seeding == 2) {
return("Finals")
} else if(seeding <= 4) {
return("Semi-Finals")
} else if(seeding <= 8) {
return("Quarter-Finals")
} else if(seeding <= 16) {
return("Round of 16")
} else {
return("Round of 32")
}
}
> expected_round(1)
[1] "Winner"
> expected_round(4)
[1] "Semi-Finals"
----
We can then have a look at each of the Wimbledon tournaments and work out how far they actually got.
[source,r]
----
round_reached = function(player, main_matches) {
furthest_match = main_matches %>%
filter(winner == player | loser == player) %>%
arrange(desc(round)) %>%
head(1)
return(ifelse(furthest_match$winner == player, "Winner", as.character(furthest_match$round)))
}
seeds = function(matches_to_consider) {
winners = matches_to_consider %>% filter(!is.na(winner_seeding)) %>%
select(name = winner, seeding = winner_seeding) %>% distinct()
losers = matches_to_consider %>% filter( !is.na(loser_seeding)) %>%
select(name = loser, seeding = loser_seeding) %>% distinct()
return(rbind(winners, losers) %>% distinct() %>% mutate(name = as.character(name)))
}
----
Let's have a look how the seeds got on last year:
[source,r]
----
matches_to_consider = main_matches %>% filter(year == 2014)
result = seeds(matches_to_consider) %>% group_by(name) %>%
mutate(expected = expected_round(seeding), round = round_reached(name, matches_to_consider)) %>%
ungroup() %>% arrange(seeding)
rounds = c("Did not enter", "Round of 128", "Round of 64", "Round of 32", "Round of 16", "Quarter-Finals", "Semi-Finals", "Finals", "Winner")
result$round = factor(result$round, levels = rounds, ordered = TRUE)
result$expected = factor(result$expected, levels = rounds, ordered = TRUE)
> result %>% head(10)
Source: local data frame [10 x 4]
name seeding expected round
1 Novak Djokovic 1 Winner Winner
2 Rafael Nadal 2 Finals Round of 16
3 Andy Murray 3 Semi-Finals Quarter-Finals
4 Roger Federer 4 Semi-Finals Finals
5 Stan Wawrinka 5 Quarter-Finals Quarter-Finals
6 Tomas Berdych 6 Quarter-Finals Round of 32
7 David Ferrer 7 Quarter-Finals Round of 64
8 Milos Raonic 8 Quarter-Finals Semi-Finals
9 John Isner 9 Round of 16 Round of 32
10 Kei Nishikori 10 Round of 16 Round of 16
----
We'll wrap all of that code into the following function:
[source,R]
----
expectations = function(y, matches) {
matches_to_consider = matches %>% filter(year == y)
result = seeds(matches_to_consider) %>% group_by(name) %>%
mutate(expected = expected_round(seeding), round = round_reached(name, matches_to_consider)) %>%
ungroup() %>% arrange(seeding)
result$round = factor(result$round, levels = rounds, ordered = TRUE)
result$expected = factor(result$expected, levels = rounds, ordered = TRUE)
return(result)
}
----
Next, instead of showing the round names it'd be cool to come up with numerical value indicating how well the player did:
* -1 would mean they lost in the round before their seeding suggested e.g. seed 2 loses in Semi Final
* 2 would mean they got 2 rounds further than they should have e.g. Seed 7 reaches the Final
The http://www.markhneedham.com/blog/2015/07/02/r-calculating-the-difference-between-ordered-factor-variables/[+++<cite>+++unclass+++</cite>+++ function] comes to our rescue here:
[source,r]
----
# expectations plot
years = 2005:2014
exp = data.frame()
for(y in years) {
differences = (expectations(y, main_matches) %>%
mutate(expected_n = unclass(expected),
round_n = unclass(round),
difference = round_n - expected_n))$difference %>% as.numeric()
exp = rbind(exp, data.frame(year = rep(y, length(differences)), difference = differences))
}
> exp %>% sample_n(10)
Source: local data frame [10 x 6]
name seeding expected_n round_n difference year
1 Tomas Berdych 6 6 5 -1 2011
2 Tomas Berdych 7 6 6 0 2013
3 Rafael Nadal 2 8 5 -3 2014
4 Fabio Fognini 16 5 4 -1 2014
5 Robin Soderling 13 5 5 0 2009
6 Jurgen Melzer 16 5 5 0 2010
7 Nicolas Almagro 19 4 2 -2 2010
8 Stan Wawrinka 14 5 3 -2 2011
9 David Ferrer 7 6 5 -1 2011
10 Mikhail Youzhny 14 5 5 0 2007
----
We can then group by the 'difference' column to see how seeds are getting on as a whole:
[source,r]
----
> exp %>% count(difference)
Source: local data frame [9 x 2]
difference n
1 -5 2
2 -4 7
3 -3 24
4 -2 70
5 -1 66
6 0 85
7 1 43
8 2 17
9 3 4
library(ggplot2)
ggplot(aes(x = difference, y = n), data = exp %>% count(difference)) +
geom_bar(stat = "identity") +
scale_x_continuous(limits=c(min(potential), max(potential) + 1))
----
image::{{<siteurl>}}/uploads/2015/07/2015-07-04_00-45-02.png[2015 07 04 00 45 02,400]
So from this visualisation we can see that the most common outcome for a seed is that they reach the round they were expected to reach. There are still a decent number of seeds who do 1 or 2 rounds worse than expected as well though.
https://twitter.com/tonkouts[Antonios] suggested doing some analysis of how the seeds fared on a year by year basis - we'll start by looking at what % of them exactly achieved their seeding:
[source,R]
----
exp$correct_pred = 0
exp$correct_pred[dt$difference==0] = 1
exp %>% group_by(year) %>%
summarise(MeanDiff = mean(difference),
PrcCorrect = mean(correct_pred),
N=n())
Source: local data frame [10 x 4]
year MeanDiff PrcCorrect N
1 2005 -0.6562500 0.2187500 32
2 2006 -0.8125000 0.2812500 32
3 2007 -0.4838710 0.4193548 31
4 2008 -0.9677419 0.2580645 31
5 2009 -0.3750000 0.2500000 32
6 2010 -0.7187500 0.4375000 32
7 2011 -0.7187500 0.0937500 32
8 2012 -0.7500000 0.2812500 32
9 2013 -0.9375000 0.2500000 32
10 2014 -0.7187500 0.1875000 32
----
Some years are better than others - we can use a https://stat.ethz.ch/R-manual/R-devel/library/stats/html/chisq.test.html[chisq test] to see whether there are any significant differences between the years:
[source,r]
----
tbl = table(exp$year, exp$correct_pred)
tbl
> chisq.test(tbl)
Pearson's Chi-squared test
data: tbl
X-squared = 14.9146, df = 9, p-value = 0.09331
----
This looks for at least one statistically significant different between the years, although it doesn't look like there are any. We can also try doing a comparison of each year against all the others:
[source,r]
----
> pairwise.prop.test(tbl)
Pairwise comparisons using Pairwise comparison of proportions
data: tbl
2005 2006 2007 2008 2009 2010 2011 2012 2013
2006 1.00 - - - - - - - -
2007 1.00 1.00 - - - - - - -
2008 1.00 1.00 1.00 - - - - - -
2009 1.00 1.00 1.00 1.00 - - - - -
2010 1.00 1.00 1.00 1.00 1.00 - - - -
2011 1.00 1.00 0.33 1.00 1.00 0.21 - - -
2012 1.00 1.00 1.00 1.00 1.00 1.00 1.00 - -
2013 1.00 1.00 1.00 1.00 1.00 1.00 1.00 1.00 -
2014 1.00 1.00 1.00 1.00 1.00 1.00 1.00 1.00 1.00
P value adjustment method: holm
----
2007/2011 and 2010/2011 show the biggest differences but they're still not significant. Since we have so few data items in each bucket there has to be a really massive difference for it to be significant.
The data I used in this post is available on https://gist.github.com/mneedham/190381d14f6f84b801a2[this gist] if you want to look into it and come up with your own analysis. | null | null | [
-0.016616838052868843,
-0.030885230749845505,
0.013530939817428589,
0.01694626919925213,
0.09079951792955399,
0.0012130939867347479,
0.018367059528827667,
0.014206587336957455,
0.011216425336897373,
0.006205291021615267,
0.009405044838786125,
-0.019453760236501694,
-0.04964093863964081,
0.023343218490481377,
-0.00379543611779809,
0.07405191659927368,
0.04949595779180527,
0.014520983211696148,
0.015402721241116524,
-0.023758942261338234,
0.009432107210159302,
0.04892513528466225,
-0.010434464551508427,
0.053335532546043396,
0.05397231504321098,
-0.004451876971870661,
0.015391944907605648,
0.00171159696765244,
-0.05232713371515274,
0.00734171224758029,
0.047766655683517456,
-0.00502212205901742,
0.010469638742506504,
-0.00482936529442668,
0.03061729669570923,
-0.04151575267314911,
-0.030333947390317917,
0.02970263920724392,
-0.013955425471067429,
-0.01780768483877182,
-0.06161415949463844,
0.01485363021492958,
-0.022188492119312286,
0.030785031616687775,
-0.03923935815691948,
-0.0006190557032823563,
-0.050308287143707275,
0.03395284712314606,
0.014270330779254436,
0.010611769743263721,
-0.07343658059835434,
0.019008366391062737,
-0.012742987833917141,
-0.0020270603708922863,
0.0067822993732988834,
0.03963043540716171,
0.043395236134529114,
-0.043346814811229706,
0.02247810922563076,
-0.03697696700692177,
-0.0016073259757831693,
-0.027631033211946487,
0.010338864289224148,
0.002837751293554902,
0.00326929590664804,
-0.026235267519950867,
0.009369042702019215,
0.058585166931152344,
-0.025705166161060333,
0.0060332356952130795,
-0.02413232810795307,
-0.012004664167761803,
0.0063996100798249245,
-0.013705628924071789,
-0.018919458612799644,
-0.06638942658901215,
0.0069444505497813225,
0.0635068267583847,
0.034781258553266525,
0.02147168293595314,
-0.01560199074447155,
-0.0010673722717911005,
0.0026020179502665997,
0.022302594035863876,
0.014475617557764053,
-0.0683976486325264,
-0.04048720747232437,
-0.024322878569364548,
-0.05852585658431053,
0.06952755898237228,
0.00514405220746994,
-0.04513400420546532,
0.006747248582541943,
0.008446082472801208,
-0.02212882600724697,
0.012236916460096836,
0.011022746562957764,
-0.004828365053981543,
0.02044989913702011,
-0.027696803212165833,
-0.03467894718050957,
-0.012820949777960777,
0.014103087596595287,
-0.006003042217344046,
-0.09529021382331848,
-0.008013807237148285,
-0.027564940974116325,
-0.00889392290264368,
0.008868818171322346,
0.015043922699987888,
-0.026074601337313652,
0.005251980386674404,
0.006782104726880789,
0.01597539149224758,
-0.08850213885307312,
0.072042316198349,
0.028514454141259193,
-0.016235146671533585,
0.007183266803622246,
0.026778513565659523,
0.05624586343765259,
0.012939547188580036,
-0.002728268038481474,
0.08637350797653198,
-0.003632818814367056,
0.02579026110470295,
0.029989562928676605,
0.05340338498353958,
0.0044684926979243755,
-0.07455760985612869,
-0.006039402447640896,
0.06207675859332085,
-0.00785139948129654,
0.0017152110813185573,
-0.010415683500468731,
-0.03401399776339531,
-0.00872703455388546,
-0.026990456506609917,
0.06889734417200089,
0.020699020475149155,
0.019838755950331688,
-0.026618964970111847,
0.03302246332168579,
0.005080158356577158,
0.04483167082071304,
-0.0030705505050718784,
-0.008201101794838905,
-0.043408848345279694,
-0.011594502255320549,
0.010601620189845562,
0.015561997890472412,
0.046769510954618454,
0.04717307537794113,
-0.05043725669384003,
0.00787093210965395,
0.10001177340745926,
0.02807185985147953,
0.0003404866438359022,
-0.027652231976389885,
0.013288465328514576,
0.05557405948638916,
0.02726408839225769,
0.02176092378795147,
0.04780074954032898,
0.016562679782509804,
-0.03396553546190262,
0.02684776671230793,
0.0535648912191391,
-0.025880062952637672,
0.02482614666223526,
-0.07043030858039856,
-0.036626189947128296,
0.07803266495466232,
-0.0364781953394413,
0.0007040453492663801,
0.010473393835127354,
0.06705377995967865,
0.044681616127491,
0.034065619111061096,
-0.0017388295382261276,
-0.08404350280761719,
0.04018913209438324,
0.004893685225397348,
0.0358029343187809,
0.023388834670186043,
-0.010351456701755524,
0.07156510651111603,
0.03100540116429329,
0.014066776260733604,
0.04969598725438118,
-0.07440017908811569,
-0.07314427942037582,
-0.03619590401649475,
-0.022501640021800995,
0.05031144991517067,
-0.025525521486997604,
0.029429325833916664,
0.05954578146338463,
-0.00017922002007253468,
0.02090516686439514,
0.007665229495614767,
0.006300955545157194,
0.026145702227950096,
-0.03970380499958992,
-0.05814475193619728,
0.05149731785058975,
0.029843103140592575,
-0.04744834825396538,
-0.02068510837852955,
0.031608302146196365,
-0.03848055750131607,
0.012349870055913925,
0.005929941777139902,
-0.038126423954963684,
0.02676619589328766,
0.02004309557378292,
0.039479807019233704,
0.0022372021339833736,
0.017508022487163544,
-0.05145232751965523,
0.049070462584495544,
0.02867496944963932,
-0.015712810680270195,
0.00890311785042286,
0.002952882321551442,
0.1330801099538803,
0.04710172116756439,
-0.022050976753234863,
-0.045537084341049194,
0.04102743789553642,
-0.003835896495729685,
-0.019186129793524742,
0.020992370322346687,
-0.0075409566052258015,
0.002631120616570115,
0.0006223064265213907,
-0.032983358949422836,
-0.03671799972653389,
0.024376988410949707,
-0.05282967910170555,
-0.00803644210100174,
0.04602282494306564,
-0.0031944408547133207,
0.062191255390644073,
-0.00972195714712143,
-0.0073742251843214035,
-0.0150035684928298,
-0.03224330395460129,
-0.04411918669939041,
-0.01100296713411808,
0.030044639483094215,
-0.013468857854604721,
0.02784121409058571,
-0.021210823208093643,
-0.013599221594631672,
-0.013930946588516235,
-0.03419482707977295,
0.05515321344137192,
0.054929036647081375,
0.056686192750930786,
-0.021417371928691864,
0.03074353188276291,
-0.021570293232798576,
-0.007210019510239363,
-0.0267044547945261,
-0.059800583869218826,
-0.0415099672973156,
-0.06369413435459137,
0.014779375866055489,
-0.005061867646872997,
0.025915762409567833,
-0.010091026313602924,
-0.005047889892011881,
-0.003366595134139061,
-0.0033926197793334723,
-0.0108078233897686,
0.03080616146326065,
-0.018550990149378777,
-0.02351324073970318,
-0.029229678213596344,
-0.004095634911209345,
0.06477002054452896,
-0.055665891617536545,
-0.038161780685186386,
0.009668488055467606,
-0.049090128391981125,
0.04228222370147705,
-0.07246949523687363,
-0.027263373136520386,
0.005632451735436916,
-0.0007403165218420327,
0.05316311866044998,
-0.00008647466165712103,
-0.004568040836602449,
0.08257664740085602,
0.015273374505341053,
0.003102581249549985,
0.02674158848822117,
0.009874917566776276,
0.03648911789059639,
-0.007439336273819208,
0.03833402693271637,
0.028691425919532776,
-0.02964041754603386,
-0.00018799836107064039,
-0.011655180715024471,
0.0034221564419567585,
-0.004600335378199816,
-0.26671159267425537,
0.04128105565905571,
-0.006796272937208414,
-0.017552971839904785,
0.0326959528028965,
-0.05511559173464775,
0.003417098894715309,
-0.015788353979587555,
-0.025352422147989273,
-0.026869935914874077,
-0.01236675214022398,
-0.033042293041944504,
-0.02970321662724018,
0.04658592492341995,
0.027064379304647446,
0.021856438368558884,
-0.009279909543693066,
-0.05767778307199478,
0.008784273639321327,
0.060494620352983475,
0.017014706507325172,
-0.05508023872971535,
-0.016876038163900375,
0.025723330676555634,
0.021517526358366013,
0.06558027863502502,
-0.05767442658543587,
-0.0037391935475170612,
-0.05709996819496155,
-0.011997328139841557,
-0.014643998816609383,
-0.01662364974617958,
0.003334094537422061,
0.013008776120841503,
-0.01964697428047657,
-0.0004503322415985167,
0.04192272573709488,
-0.0023968229070305824,
-0.0029274302069097757,
0.03613334894180298,
-0.024454636499285698,
-0.03588563948869705,
0.002840659813955426,
0.018666809424757957,
0.08823509514331818,
0.01569179818034172,
-0.05576184764504433,
-0.009144243784248829,
-0.020906751975417137,
0.07104386389255524,
-0.014298824593424797,
-0.011040827259421349,
-0.02617231011390686,
0.021405301988124847,
-0.023686425760388374,
0.003480791114270687,
-0.012649745680391788,
-0.02061578817665577,
-0.03751469776034355,
-0.028834089636802673,
-0.020048901438713074,
-0.05902310460805893,
0.01969859190285206,
-0.03778688982129097,
0.009871353395283222,
-0.06177171319723129,
-0.07981868833303452,
-0.01936950348317623,
0.071059949696064,
0.029850617051124573,
-0.027043936774134636,
0.024924907833337784,
-0.0215538889169693,
-0.09027212113142014,
-0.04158322885632515,
-0.007340780459344387,
0.02017686516046524,
0.014533745124936104,
0.0037357814144343138,
0.05658335238695145,
-0.0296415276825428,
-0.044355958700180054,
-0.005659671500325203,
0.016164295375347137,
0.025946548208594322,
-0.033264391124248505,
0.021183719858527184,
-0.0001413780846633017,
-0.03760060295462608,
-0.0037639366928488016,
0.07315094023942947,
-0.042344264686107635,
-0.017465446144342422,
-0.03038686327636242,
0.010766848921775818,
0.04372032359242439,
-0.01880776137113571,
-0.009655746631324291,
0.01417394820600748,
0.04328742250800133,
0.045410796999931335,
-0.049089062958955765,
0.014833436347544193,
-0.03409837186336517,
-0.039263855665922165,
-0.016781656071543694,
-0.06083236262202263,
0.03336840495467186,
0.022798798978328705,
0.03147580847144127,
0.03739267587661743,
-0.04160519316792488,
0.02266489900648594,
-0.04031513258814812,
-0.014705845154821873,
-0.012493648566305637,
0.020334258675575256,
0.013364490121603012,
0.014073632657527924,
-0.019246673211455345,
-0.04453600198030472,
0.0381704643368721,
-0.012656914070248604,
-0.015285029076039791,
-0.05779986456036568,
-0.031995151191949844,
0.002102107973769307,
-0.03135363757610321,
-0.0074178846552968025,
0.0011265533976256847,
-0.018885107710957527,
0.008542653173208237,
0.02984520234167576,
-0.02690262719988823,
0.04221165180206299,
0.01640717126429081,
-0.05695706605911255,
-0.03222299739718437,
0.0074472022242844105,
0.014021044597029686,
-0.008134855888783932,
0.02470140904188156,
0.025986146181821823,
0.024889733642339706,
0.0354185551404953,
0.0019081712234765291,
0.014471202157437801,
-0.009175080806016922,
0.021511398255825043,
0.004256289917975664,
-0.01144838985055685,
-0.01794080249965191,
0.03480488061904907,
-0.05539486184716225,
-0.023145388811826706,
-0.020206592977046967,
0.029517648741602898,
-0.006541722919791937,
-0.0384223610162735,
-0.04651939868927002,
0.00484874565154314,
-0.03112061694264412,
-0.019618574529886246,
-0.027237454429268837,
0.01554836891591549,
0.07224416732788086,
0.010909514501690865,
0.01986941322684288,
-0.012738529592752457,
0.004122260957956314,
0.02886326052248478,
-0.014528152532875538,
-0.04018206521868706,
-0.02119286358356476,
-0.01898728311061859,
-0.006328529678285122,
0.03125660866498947,
0.007302724756300449,
-0.005746461451053619,
0.01391483936458826,
-0.024497685953974724,
-0.029657289385795593,
0.013790448196232319,
0.028287341818213463,
0.0631026104092598,
0.0639890804886818,
-0.016717519611120224,
0.00855469610542059,
-0.005854987073689699,
-0.024158572778105736,
-0.018217409029603004,
-0.008151278831064701,
-0.015659064054489136,
-0.009089839644730091,
-0.044902075082063675,
-0.06010275334119797,
0.019078785553574562,
0.024604685604572296,
-0.02670728601515293,
0.017909813672304153,
0.022647814825177193,
-0.036226578056812286,
-0.024423127993941307,
0.03851206973195076,
0.060861971229314804,
-0.06371713429689407,
-0.006812704727053642,
-0.005703795701265335,
-0.008874262683093548,
0.014721033163368702,
0.005088258069008589,
-0.060724686831235886,
-0.0026490953750908375,
-0.014488755725324154,
0.04495815932750702,
-0.0492265410721302,
-0.049295417964458466,
-0.004978138953447342,
-0.004084127489477396,
-0.010250845924019814,
0.01914326287806034,
-0.020450398325920105,
0.013786851428449154,
-0.017627336084842682,
-0.03222445398569107,
0.02317162975668907,
-0.02500147745013237,
-0.03708134964108467,
0.020983319729566574,
-0.03220963105559349,
0.011792339384555817,
-0.030662067234516144,
0.015538529492914677,
0.022808315232396126,
-0.0030464723240584135,
-0.01762637495994568,
-0.04909032583236694,
0.02602250687777996,
0.009729464538395405,
0.0509132482111454,
-0.010571861639618874,
-0.006351602263748646,
-0.041002459824085236,
0.00202605570666492,
-0.054148316383361816,
0.008815400302410126,
0.0011971688363701105,
-0.01661546342074871,
0.029869580641388893,
0.04171542450785637,
0.006598635111004114,
0.04567564278841019,
-0.017480887472629547,
-0.02184952422976494,
0.06531987339258194,
-0.03564668819308281,
-0.02145742066204548,
-0.02149713784456253,
-0.04596645385026932,
0.040221601724624634,
0.0031881509348750114,
-0.002048579975962639,
-0.03999873995780945,
0.032589707523584366,
0.06413447111845016,
-0.0033283347729593515,
0.032343972474336624,
0.006269038654863834,
0.020200252532958984,
-0.03225402906537056,
-0.0034180544316768646,
-0.09210193902254105,
-0.007300796918570995,
0.05095945671200752,
0.007459133397787809,
0.0049684979021549225,
-0.00267061241902411,
-0.040961187332868576,
0.006652818061411381,
-0.07288248836994171,
-0.03141557797789574,
0.039407361298799515,
-0.030616503208875656,
0.010440051555633545,
-0.0017090236069634557,
-0.06063336506485939,
-0.0017838447820395231,
0.049004483968019485,
-0.02301628142595291,
-0.021210886538028717,
-0.03811085596680641,
0.04781324788928032,
-0.01439946610480547,
0.04213723540306091,
-0.0031718434765934944,
-0.00539422919973731,
0.07080958783626556,
0.023129714652895927,
0.03783516585826874,
0.05413583666086197,
-0.034589994698762894,
0.05092471465468407,
0.032231785356998444,
-0.0024053999222815037,
0.011064331978559494,
0.028864091262221336,
-0.01286271121352911,
-0.046833377331495285,
0.011982137337327003,
0.013203705660998821,
-0.017538055777549744,
-0.07266026735305786,
0.08469925820827484,
0.0005278234602883458,
-0.044489625841379166,
-0.0484527163207531,
0.005690143909305334,
-0.032506365329027176,
-0.003236655378714204,
-0.03808879852294922,
0.00954660214483738,
-0.03337647020816803,
0.05535093694925308,
-0.014081072062253952,
0.005192857701331377,
0.05852929502725601,
-0.0121426060795784,
-0.012835471890866756,
0.01901371218264103,
0.08128701150417328,
0.09985975176095963,
0.042023636400699615,
-0.003942213021218777,
0.07376739382743835,
-0.009255511686205864,
-0.05363903567194939,
-0.03012165054678917,
-0.01827123761177063,
-0.012760505080223083,
-0.0003202563675586134,
0.022688956931233406,
0.06040120869874954,
-0.026731953024864197,
0.07000593096017838,
-0.01192388590425253,
-0.02411734126508236,
0.03718683123588562,
-0.008270117454230785,
0.028635719791054726,
0.06926743686199188,
0.016722247004508972,
0.03282112255692482,
0.005615575239062309,
-0.025408683344721794,
0.012493510730564594,
0.0015737966168671846,
-0.024234145879745483,
0.01346994936466217,
-0.034842126071453094,
0.016478437930345535,
-0.010906234383583069,
0.02766912803053856,
0.08546672016382217,
-0.03621227666735649,
0.0035077077336609364,
-0.0014147828333079815,
0.03133495897054672,
0.009460041299462318,
0.0326186940073967,
-0.002148228697478771,
-0.0066629378125071526,
-0.045264460146427155,
-0.04150781407952309,
-0.021975450217723846,
-0.02296563796699047,
-0.030808262526988983,
-0.028905458748340607,
-0.04630393534898758,
0.005923182237893343,
0.022502027451992035,
-0.022565534338355064,
-0.0463738813996315,
-0.03608626872301102,
-0.03633050248026848,
-0.07767265290021896,
-0.07914408296346664,
-0.016460519284009933,
0.012615049257874489,
-0.02709013596177101,
-0.031918805092573166,
-0.022170938551425934,
-0.021261947229504585,
-0.029552264139056206,
0.05974092707037926,
-0.05902399122714996,
-0.00775859085842967,
0.016601718962192535,
0.011098564602434635,
0.05069310590624809,
0.017882099375128746,
0.04331396520137787,
0.014241112396121025,
-0.016746532171964645,
-0.017313141375780106,
-0.006006764248013496,
0.035670798271894455,
0.020514169707894325,
-0.0038989316672086716,
-0.09982568025588989,
0.03907158225774765,
0.016728844493627548,
-0.0381716713309288,
-0.08641266822814941,
0.020387066528201103,
0.0314960740506649,
0.010581056587398052,
0.05173170939087868,
-0.02636723220348358,
0.006353483535349369,
-0.04985567182302475,
-0.0020455829799175262,
-0.025338729843497276,
-0.003956100437790155,
0.051409292966127396,
-0.030258644372224808,
0.07832014560699463,
0.03648827597498894,
-0.012928077019751072,
-0.04921545833349228,
0.004586069844663143,
-0.0045219240710139275,
-0.0003784227592404932,
-0.04848431423306465,
-0.002454119734466076,
-0.04915263131260872,
-0.09798655658960342,
-0.011108617298305035,
0.023431651294231415,
-0.03217858076095581,
-0.03943019360303879,
0.005482574924826622,
0.03372698649764061,
0.0066167013719677925,
0.015281064435839653,
-0.02696923352777958,
0.024919888004660606,
-0.03681906685233116,
-0.01317016314715147,
-0.026841001585125923,
0.03708987310528755,
-0.00692824786528945,
0.028529897332191467,
0.034595854580402374,
-0.03772888705134392,
0.023336419835686684,
-0.02383381687104702,
0.008621594868600368,
0.035400547087192535,
-0.0003679194487631321,
0.003385275136679411
] | [
-0.07936204969882965,
-0.037692077457904816,
-0.04412233084440231,
-0.026089828461408615,
0.05795011669397354,
0.018059933558106422,
0.017234139144420624,
-0.012878534384071827,
0.06586204469203949,
0.01781051978468895,
0.009948547929525375,
-0.07339152693748474,
-0.004759556148201227,
-0.01601087674498558,
0.0018317521316930652,
-0.009335587732493877,
-0.007380512077361345,
-0.06526961922645569,
-0.032002560794353485,
0.04186028987169266,
-0.04211036115884781,
-0.03910389542579651,
-0.058922626078128815,
-0.05296994000673294,
0.011007308959960938,
0.011045301333069801,
0.05634215101599693,
-0.01237045880407095,
-0.03830915316939354,
-0.21756967902183533,
0.016151063144207,
-0.005946507211774588,
0.01670355536043644,
0.005303859245032072,
0.005075186491012573,
-0.02529619075357914,
-0.01047646813094616,
0.016393743455410004,
-0.012758403085172176,
0.038439273834228516,
0.02524431236088276,
0.018643904477357864,
-0.04250920191407204,
-0.0030316889751702547,
0.061549630016088486,
0.010251933708786964,
-0.02603590302169323,
0.017621206119656563,
0.023102466017007828,
0.03160824626684189,
-0.0393875315785408,
0.009854650124907494,
-0.00778619572520256,
-0.023221563547849655,
-0.009462119080126286,
0.04785513877868652,
0.07030999660491943,
0.06680143624544144,
0.028546927496790886,
0.03503166884183884,
0.045789312571287155,
0.01875138096511364,
-0.1534540057182312,
0.06419694423675537,
0.012116371653974056,
0.0011638624127954245,
-0.041874662041664124,
0.02831967920064926,
-0.011917081661522388,
0.10721337795257568,
0.023992149159312248,
-0.005453291814774275,
0.006163151003420353,
0.0440637581050396,
0.005633803550153971,
-0.0002041862317128107,
-0.0310648325830698,
0.010836930014193058,
-0.015596221201121807,
0.03110254555940628,
-0.03786400333046913,
-0.00501456530764699,
-0.06128224357962608,
-0.04936877638101578,
-0.04693649709224701,
0.02110544964671135,
-0.04235526919364929,
0.033462848514318466,
-0.00021023067529313266,
0.010587201453745365,
0.03748714178800583,
0.036101214587688446,
-0.011213799938559532,
0.031982459127902985,
-0.09299308061599731,
-0.016748318448662758,
0.013490777462720871,
-0.015755560249090195,
0.0010517070768401027,
0.430037260055542,
0.005643294658511877,
0.019353056326508522,
0.024790771305561066,
0.04262257739901543,
-0.01460140198469162,
-0.04593951627612114,
-0.024656591936945915,
-0.03870024159550667,
0.02350306697189808,
-0.012408127076923847,
0.002883857348933816,
-0.029928408563137054,
0.0738111138343811,
-0.02508273348212242,
0.021126097068190575,
0.04421767219901085,
0.03996233269572258,
0.05485392361879349,
0.011500640772283077,
0.016643812879920006,
-0.051141828298568726,
-0.007130660116672516,
-0.022167207673192024,
0.0014141747960820794,
0.0038749813102185726,
0.011526981368660927,
0.01742567867040634,
0.06861734390258789,
0.028285780921578407,
-0.01729758083820343,
0.05761042237281799,
-0.01707056537270546,
-0.11271095275878906,
0.03159093111753464,
0.02960580587387085,
-0.02812737599015236,
0.015474037267267704,
-0.0238489992916584,
0.007066003512591124,
0.01654900424182415,
-0.0003965880023315549,
-0.09784317016601562,
0.08527100831270218,
-0.025032518431544304,
-0.007457005325704813,
0.15486542880535126,
-0.0029994661454111338,
-0.01822006329894066,
-0.0003104072529822588,
-0.05450243130326271,
0.024071428924798965,
0.019905900582671165,
0.017285723239183426,
-0.05901731550693512,
-0.009502078406512737,
0.03658377751708031,
0.0645952969789505,
-0.041656769812107086,
-0.06755147874355316,
-0.023943761363625526,
-0.059833139181137085,
-0.019174296408891678,
-0.04767958074808121,
0.07947700470685959,
0.056839536875486374,
-0.09415487945079803,
-0.011597922071814537,
-0.011068067513406277,
-0.02377196215093136,
-0.06778103113174438,
0.05893881618976593,
-0.023552842438220978,
-0.04646987095475197,
0.013097107410430908,
0.028150150552392006,
-0.025544602423906326,
-0.042654845863580704,
-0.035367321223020554,
0.08907617628574371,
0.00012749961751978844,
0.030957471579313278,
0.0024543353356420994,
-0.04644162207841873,
0.023853793740272522,
-0.05738554522395134,
-0.04087601974606514,
-0.07728556543588638,
-0.003097756067290902,
-0.01135989185422659,
0.004178478382527828,
-0.05556972697377205,
-0.04830525442957878,
-0.08733129501342773,
0.08509127795696259,
-0.054859086871147156,
-0.03214072436094284,
0.005194434896111488,
-0.012402052991092205,
0.011119083501398563,
-0.025731544941663742,
-0.06261558830738068,
0.005674657877534628,
0.0019017717568203807,
0.015008755959570408,
-0.02043776772916317,
0.06876731663942337,
0.05454709380865097,
-0.04176773875951767,
0.09356553107500076,
0.022236622869968414,
-0.021958939731121063,
-0.043552618473768234,
-0.04896077513694763,
-0.007519782055169344,
-0.01775076612830162,
0.008409933187067509,
0.013431412167847157,
-0.008348356001079082,
0.010319141671061516,
0.02400841936469078,
-0.012835681438446045,
0.03297402709722519,
-0.004623595159500837,
-0.3313179016113281,
-0.0385785847902298,
-0.056301549077034,
-0.03235824778676033,
0.046615395694971085,
-0.029039472341537476,
0.0128595270216465,
-0.012980235740542412,
0.016722794622182846,
0.0259269867092371,
0.058259207755327225,
-0.015783989802002907,
-0.008148868568241596,
-0.032632313668727875,
0.011147593148052692,
0.00348181021399796,
-0.03553634509444237,
-0.002767198486253619,
-0.009450490586459637,
0.035834312438964844,
0.03723965957760811,
0.010747112333774567,
-0.02598036266863346,
-0.023283399641513824,
-0.0021185220684856176,
-0.05989290401339531,
0.09825454652309418,
0.06797921657562256,
0.011410286650061607,
-0.03894248977303505,
0.0653468668460846,
0.023411918431520462,
-0.03478577733039856,
-0.0755162164568901,
0.03131449222564697,
-0.013652521185576916,
0.01684974692761898,
-0.015306209214031696,
-0.0011430905433371663,
-0.037228841334581375,
0.00039104913594201207,
0.0182571429759264,
-0.05402875691652298,
-0.035490550100803375,
-0.0420902818441391,
0.012192479334771633,
-0.0030468835029751062,
0.02408243715763092,
-0.00834361556917429,
0.07914979010820389,
0.02806185744702816,
-0.013488873839378357,
0.0700903907418251,
-0.019100649282336235,
0.05528702214360237,
-0.01652190089225769,
-0.08083835989236832,
0.008314240723848343,
-0.0006361372070387006,
0.003047933103516698,
0.02487890049815178,
0.0037361138965934515,
0.05494591221213341,
-0.050880033522844315,
-0.0350746251642704,
-0.0045690578408539295,
0.02244110405445099,
-0.01482468843460083,
0.021108407527208328,
-0.050071895122528076,
-0.046081602573394775,
-0.0007368145161308348,
0.007969575002789497,
0.02653193473815918,
0.05047990009188652,
0.03673882037401199,
0.019380463287234306,
0.0142130795866251,
0.030914820730686188,
0.00488102063536644,
0.08256127685308456,
-0.030324285849928856,
0.048651691526174545,
-0.011674744077026844,
0.02847386710345745,
0.04911741241812706,
0.011569061316549778,
0.010487768799066544,
0.06732768565416336,
0.014071150682866573,
-0.021284816786646843,
0.04401122033596039,
-0.04644915834069252,
-0.013053689152002335,
-0.0012508599320426583,
-0.008617873303592205,
-0.23484699428081512,
0.045784614980220795,
0.07335605472326279,
0.07679662853479385,
0.021754184737801552,
0.004260865971446037,
0.04568338021636009,
-0.02676538936793804,
-0.019210930913686752,
0.02302103489637375,
0.021540232002735138,
0.013644227758049965,
-0.018976498395204544,
-0.002646632958203554,
-0.03210717812180519,
-0.040130410343408585,
0.013927087187767029,
-0.0008843668620102108,
0.020571105182170868,
0.01973707042634487,
0.07202684134244919,
0.014071456156671047,
0.157396137714386,
-0.006344432011246681,
0.03665406256914139,
0.02303575910627842,
-0.024727752432227135,
-0.016603413969278336,
0.008135984651744366,
-0.030169500038027763,
-0.008401593193411827,
0.029471080750226974,
0.021875150501728058,
0.012393174692988396,
0.00920105166733265,
-0.01779390498995781,
0.006438356824219227,
0.04657600447535515,
-0.00174289895221591,
-0.04004564881324768,
0.016512446105480194,
-0.01692579872906208,
-0.053451184183359146,
0.01835024729371071,
0.05166857689619064,
0.01573762483894825,
0.02183859795331955,
-0.024085555225610733,
-0.06382142007350922,
-0.002034804318100214,
-0.05754680931568146,
-0.02853008173406124,
0.004388922825455666,
-0.040425658226013184,
-0.01998033933341503,
0.030092477798461914,
0.0378875657916069,
-0.04460829868912697,
0.046736717224121094,
0.017512504011392593,
-0.009201457723975182,
-0.013427386060357094,
0.058934953063726425,
0.023306185379624367,
0.00691960146650672
] | [
0.02793872356414795,
0.03781505674123764,
-0.02060057781636715,
0.006771037355065346,
-0.02197170816361904,
0.04932832717895508,
0.0028819418512284756,
0.009982890449464321,
-0.01741201989352703,
-0.00419574324041605,
-0.04314623773097992,
0.01000750157982111,
0.01632014289498329,
-0.0033813577610999346,
-0.016335103660821915,
-0.020508309826254845,
0.0028831204399466515,
0.01136202085763216,
0.026076804846525192,
-0.01577574945986271,
-0.0365973524749279,
0.02400640957057476,
0.015565293841063976,
0.019303446635603905,
-0.009700173512101173,
0.011666309088468552,
-0.04440055787563324,
0.04659349471330643,
0.0008071919437497854,
-0.09948644042015076,
-0.029519569128751755,
-0.009763066656887531,
0.008315245620906353,
0.03607639670372009,
-0.04686768352985382,
-0.048196226358413696,
-0.06449401378631592,
0.014984814450144768,
0.022754762321710587,
0.01150414440780878,
0.020150121301412582,
-0.04705735668540001,
-0.004529756959527731,
0.059964314103126526,
-0.011175894178450108,
-0.0217455867677927,
-0.04016249626874924,
0.029415836557745934,
0.013976025395095348,
-0.0011026754509657621,
-0.06018666923046112,
-0.0194272268563509,
0.02682565525174141,
-0.007132744882255793,
0.04383368790149689,
-0.031474579125642776,
-0.01001213863492012,
-0.023318754509091377,
0.0034241899847984314,
-0.02637632191181183,
0.03484325855970383,
-0.01795775443315506,
-0.06797327846288681,
-0.012612907215952873,
-0.025816943496465683,
-0.05951468273997307,
-0.01493860874325037,
0.05754178762435913,
0.017665835097432137,
0.009214921854436398,
0.04061564430594444,
0.03445567190647125,
-0.036214184015989304,
-0.04288216680288315,
-0.0035699696745723486,
0.05699527636170387,
-0.024767814204096794,
0.011137891560792923,
0.02596452832221985,
-0.0015626030508428812,
-0.0337776243686676,
-0.005585285369306803,
0.02326446771621704,
-0.02662195824086666,
-0.009780867956578732,
-0.04597300663590431,
0.06447657942771912,
-0.010348312556743622,
0.018271805718541145,
0.01624896563589573,
-0.06011034548282623,
0.021851960569620132,
0.011117772199213505,
0.0008799015777185559,
-0.09101840853691101,
0.0218896996229887,
0.027418388053774834,
-0.045644477009773254,
0.013256203383207321,
0.8081998229026794,
-0.004477936774492264,
0.027449335902929306,
0.005874795839190483,
0.00806484930217266,
-0.0035851483698934317,
0.013873107731342316,
-0.008572704158723354,
0.009420844726264477,
0.04236661270260811,
-0.04023916646838188,
-0.03567061200737953,
0.023074671626091003,
0.03102448768913746,
0.027948835864663124,
-0.011391524225473404,
0.04517878219485283,
0.014289028011262417,
0.04218690097332001,
-0.008334030397236347,
0.016929687932133675,
-0.012258326634764671,
0.010788586921989918,
0.01764385774731636,
-0.002916695550084114,
0.006885870825499296,
-0.17463822662830353,
-0.004564670845866203,
-6.829286427703537e-33,
0.040644098073244095,
-0.04854302480816841,
0.009583682753145695,
0.0004532491439022124,
-0.00517776794731617,
0.03981046751141548,
-0.014510970562696457,
-0.04058177396655083,
-0.015990376472473145,
-0.0613272599875927,
-0.0029702766332775354,
0.0092645063996315,
0.0059152632020413876,
-0.01989012397825718,
0.03461380675435066,
-0.027256611734628677,
0.017346704378724098,
0.017797211185097694,
-0.014515584334731102,
-0.017008576542139053,
-0.021107614040374756,
0.022407056763768196,
0.013260578736662865,
0.024932196363806725,
0.009451257064938545,
0.04662104696035385,
-0.002093675546348095,
-0.019792495295405388,
-0.015774592757225037,
-0.03545390069484711,
-0.02494760788977146,
-0.009283861145377159,
-0.04102500528097153,
-0.04163012653589249,
0.023263398557901382,
-0.04483092576265335,
-0.00919133611023426,
-0.0013685253215953708,
0.01632792316377163,
-0.0261568333953619,
-0.041915785521268845,
-0.03150428086519241,
0.0030512448865920305,
-0.03421855345368385,
-0.057479675859212875,
-0.0059931399300694466,
0.02217470295727253,
0.039465636014938354,
-0.0012573330895975232,
0.031896475702524185,
0.016169780865311623,
0.007854368537664413,
0.033122915774583817,
-0.023942837491631508,
-0.009758411906659603,
0.02824668399989605,
0.010719947516918182,
0.03307771682739258,
-0.013934683054685593,
0.01620006375014782,
0.04097728058695793,
0.01557972002774477,
-0.003683609189465642,
0.028300363570451736,
-0.027695583179593086,
0.01684773713350296,
0.0011078533716499805,
-0.033221133053302765,
0.02272310107946396,
0.06121579185128212,
-0.03648163378238678,
0.039743080735206604,
-0.000003406923042348353,
-0.008970160037279129,
0.015130008570849895,
-0.04486103355884552,
0.02766525186598301,
-0.027729948982596397,
-0.0002615937846712768,
0.03051481582224369,
0.05103061720728874,
0.008129470981657505,
-0.035746555775403976,
-0.05124935507774353,
-0.03320198506116867,
-0.0022147244308143854,
0.025019396096467972,
0.017116639763116837,
0.024659106507897377,
0.019915111362934113,
0.01851099170744419,
-0.010758728720247746,
-0.006228446960449219,
-0.017165733501315117,
-0.018141163513064384,
6.214957651600455e-33,
-0.010860021226108074,
-0.03473587706685066,
0.009289827197790146,
-0.00015260146756190807,
0.05864769592881203,
0.000218116125324741,
0.021450404077768326,
0.01423130463808775,
-0.050713252276182175,
0.012611305341124535,
-0.017495172098279,
-0.0075773936696350574,
0.01722140982747078,
0.01449121255427599,
0.035935211926698685,
-0.01161913201212883,
0.012581780552864075,
-0.003962153568863869,
-0.021926552057266235,
0.023389318957924843,
0.002883107168599963,
0.013059200718998909,
-0.01469169370830059,
0.0019218918168917298,
-0.005588679574429989,
0.017231950536370277,
-0.005042500793933868,
0.002894618781283498,
-0.013335652649402618,
0.029875904321670532,
0.05784903094172478,
-0.012416400015354156,
-0.04733515530824661,
-0.013221303932368755,
-0.010454769246280193,
0.017585016787052155,
0.009182625450193882,
-0.02657589502632618,
-0.004005332477390766,
0.019772417843341827,
0.015623876824975014,
-0.005015819799154997,
-0.02283298783004284,
0.046714164316654205,
0.0459846593439579,
0.01588808000087738,
0.0014973330544307828,
0.030472496524453163,
-0.013934075832366943,
-0.013929279521107674,
0.005841270554810762,
0.019603459164500237,
-0.0328541062772274,
0.026257039979100227,
0.011873331852257252,
-0.024649728089571,
-0.043245673179626465,
0.016890065744519234,
-0.026029767468571663,
0.010591261088848114,
-0.026439983397722244,
-0.02930283173918724,
-0.00538874976336956,
0.01174368616193533,
-0.031303197145462036,
-0.005022795870900154,
-0.03916674107313156,
0.0004731339868158102,
-0.036034829914569855,
0.02321516163647175,
-0.01615937054157257,
-0.01696082577109337,
-0.002835429273545742,
0.04583849757909775,
0.01239550206810236,
0.01947803609073162,
-0.04007694125175476,
0.029718931764364243,
-0.025294505059719086,
0.05081553757190704,
0.04666910320520401,
0.012459341436624527,
0.010702691040933132,
0.005197569262236357,
0.03267727419734001,
0.020578380674123764,
-0.005038799252361059,
-0.025122657418251038,
0.003621726529672742,
-0.028528384864330292,
0.0495925135910511,
-0.03963145986199379,
0.013341187499463558,
0.04646699130535126,
0.04304628074169159,
-1.2206112565138483e-8,
-0.041230637580156326,
0.02334473840892315,
-0.009695861488580704,
-0.00041393685387447476,
0.024352047592401505,
0.01082832645624876,
-0.010322440415620804,
-0.023196594789624214,
-0.008008291013538837,
-0.005552937276661396,
0.03862392529845238,
-0.03081245720386505,
-0.0053372192196547985,
0.019886821508407593,
0.013506223447620869,
-0.04049156978726387,
-0.010153629817068577,
0.003488080343231559,
0.04026680812239647,
0.05842922255396843,
0.01486569456756115,
0.030483951792120934,
-0.022404860705137253,
0.009532347321510315,
-0.0055804806761443615,
-0.017989428713917732,
0.04665566235780716,
-0.08049803972244263,
-0.007712503895163536,
-0.035632506012916565,
0.05809455364942551,
-0.03265789896249771,
0.005537257995456457,
0.0361139252781868,
-0.03745115175843239,
-0.030985329300165176,
0.015729069709777832,
0.027179833501577377,
0.02264452911913395,
0.05260206758975983,
-0.03342553228139877,
-0.01418541930615902,
-0.052781280130147934,
-0.037063684314489365,
-0.037154048681259155,
0.04251847788691521,
-0.02433510683476925,
0.007277558092027903,
-0.026155810803174973,
-0.07870582491159439,
-0.01680542714893818,
0.002310141222551465,
0.020609969273209572,
0.009852991439402103,
0.043733276426792145,
0.012481141835451126,
-0.015675898641347885,
0.007148164790123701,
-0.002081497572362423,
-0.021578649058938026,
-0.010227854363620281,
-0.03511286899447441,
-0.029983047395944595,
-0.03635163605213165
] | r-wimbledon-how-do-the-seeds-get-on | https://markhneedham.com/blog/2015/07/05/r-wimbledon-how-do-the-seeds-get-on |
false | 2015-07-02 22:55:01 | R: Calculating the difference between ordered factor variables | [
"r-2"
] | [
"R"
] | In my continued exploration of https://github.com/mneedham/neo4j-wimbledon/blob/master/wimbledon.csv[Wimbledon data] I wanted to work out whether a player had done as well as their seeding suggested they should.
I therefore wanted to work out the difference between the round they reached and the round they were expected to reach. A 'round' in the dataset is an ordered factor variable.
These are all the possible values:
[source,r]
----
rounds = c("Did not enter", "Round of 128", "Round of 64", "Round of 32", "Round of 16", "Quarter-Finals", "Semi-Finals", "Finals", "Winner")
----
And if we want to factorise a couple of strings into this factor we would do it like this:
[source,r]
----
round = factor("Finals", levels = rounds, ordered = TRUE)
expected = factor("Winner", levels = rounds, ordered = TRUE)
> round
[1] Finals
9 Levels: Did not enter < Round of 128 < Round of 64 < Round of 32 < Round of 16 < Quarter-Finals < ... < Winner
> expected
[1] Winner
9 Levels: Did not enter < Round of 128 < Round of 64 < Round of 32 < Round of 16 < Quarter-Finals < ... < Winner
----
In this case the difference between the actual round and expected round should be -1 - the player was expected to win the tournament but lost in the final. We can calculate that differnce by http://stackoverflow.com/questions/7611810/converting-a-factor-to-numeric-without-losing-information-r-as-numeric-doesn[calling the +++<cite>+++unclass+++</cite>+++ function on each variable]:
[source,r]
----
> unclass(round) - unclass(expected)
[1] -1
attr(,"levels")
[1] "Did not enter" "Round of 128" "Round of 64" "Round of 32" "Round of 16" "Quarter-Finals"
[7] "Semi-Finals" "Finals" "Winner"
----
That still seems to have some remnants of the factor variable so to get rid of that we can cast it to a numeric value:
[source,r]
----
> as.numeric(unclass(round) - unclass(expected))
[1] -1
----
And that's it! We can now go and apply this calculation to all seeds to see how they got on. | null | null | [
-0.007341133430600166,
-0.020832806825637817,
0.0025709911715239286,
0.015871217474341393,
0.08394424617290497,
-0.0008776285103522241,
0.027777574956417084,
0.006305026356130838,
0.004403973463922739,
0.009293853305280209,
0.009168303571641445,
-0.02664315700531006,
-0.04254940152168274,
0.022729212418198586,
-0.012481724843382835,
0.09120126068592072,
0.05651290342211723,
0.0030311080627143383,
0.020315539091825485,
-0.004127915948629379,
0.022284038364887238,
0.05128611624240875,
-0.015181858092546463,
0.037236105650663376,
0.04238206520676613,
0.009624806232750416,
0.017413411289453506,
-0.0026598451659083366,
-0.04543495178222656,
0.0055333576165139675,
0.04651160538196564,
0.004553727339953184,
0.005675565451383591,
-0.006521678529679775,
0.02590728923678398,
-0.014149583876132965,
-0.02273660898208618,
0.008076723664999008,
-0.00951402261853218,
-0.01927795074880123,
-0.07259511202573776,
0.004570484161376953,
-0.024904225021600723,
0.018330082297325134,
-0.05933012813329697,
-0.010432866401970387,
-0.036755070090293884,
0.021534308791160583,
-0.0022919271141290665,
0.015123921446502209,
-0.07702605426311493,
0.028609957545995712,
-0.014904514886438847,
-0.001022930140607059,
0.012111169286072254,
0.039186447858810425,
0.044835951179265976,
-0.04972727596759796,
0.027485355734825134,
-0.039577752351760864,
-0.011728537268936634,
0.0010399043094366789,
-0.003643615869805217,
-0.0068712253123521805,
0.006147295236587524,
-0.030549723654985428,
0.0015418239636346698,
0.05458467826247215,
-0.042952824383974075,
0.00534070236608386,
-0.03632728010416031,
-0.005506868474185467,
0.004672589246183634,
-0.01667899638414383,
-0.02265164442360401,
-0.04728458449244499,
0.008153012953698635,
0.053471639752388,
0.03781306743621826,
0.027128838002681732,
-0.012607629410922527,
-0.015487469732761383,
0.02037416584789753,
0.011522802524268627,
0.017265325412154198,
-0.04735306650400162,
-0.01939474791288376,
-0.04906407371163368,
-0.05421879515051842,
0.059022050350904465,
0.00537032401189208,
-0.03811360150575638,
0.007538586389273405,
0.02030273899435997,
-0.027911745011806488,
0.0019824521150439978,
0.019248919561505318,
-0.017377253621816635,
0.003952228929847479,
-0.027119135484099388,
-0.03521373122930527,
-0.028382470831274986,
0.0312519297003746,
-0.0011663846671581268,
-0.10422797501087189,
-0.0031357090920209885,
-0.03438063710927963,
-0.03132762014865875,
0.023973029106855392,
0.027663832530379295,
-0.02194765955209732,
0.006194346118718386,
-0.013938745483756065,
0.014609204605221748,
-0.08687427639961243,
0.06893995404243469,
0.021965933963656425,
-0.0036947450134903193,
0.012371034361422062,
0.027278155088424683,
0.04526382312178612,
0.004990226123481989,
-0.007722388952970505,
0.10052637755870819,
0.004089819733053446,
0.05268700420856476,
0.035852037370204926,
0.054962754249572754,
0.002685088897123933,
-0.07854566723108292,
-0.01324287336319685,
0.05621246248483658,
-0.028503116220235825,
0.008455188013613224,
-0.015730787068605423,
-0.02583564631640911,
-0.020274747163057327,
-0.018031474202871323,
0.059459138661623,
0.043275926262140274,
0.03354635834693909,
-0.039344482123851776,
0.016003647819161415,
-0.00823297630995512,
0.030390184372663498,
-0.004836461041122675,
-0.020102428272366524,
-0.042076267302036285,
-0.0294723492115736,
-0.004846579860895872,
0.028364820405840874,
0.03891909494996071,
0.062464211136102676,
-0.03158056363463402,
0.00491726491600275,
0.08299122005701065,
0.029044123366475105,
0.0015712238382548094,
-0.021457470953464508,
0.003088834695518017,
0.051452212035655975,
0.0405711755156517,
0.00396257359534502,
0.044841498136520386,
0.015829389914870262,
-0.020221106708049774,
0.006226491183042526,
0.06201661005616188,
-0.0281161330640316,
0.01739872246980667,
-0.0563027486205101,
-0.04657008871436119,
0.08654274046421051,
-0.034762002527713776,
-0.007961898110806942,
0.029058566316962242,
0.049023568630218506,
0.04762096330523491,
0.06339304894208908,
-0.007399382069706917,
-0.08427012711763382,
0.03940299525856972,
-0.002286650240421295,
0.03407014533877373,
0.026773829013109207,
-0.0049193366430699825,
0.0641494169831276,
0.027272343635559082,
-0.007207423448562622,
0.06727760285139084,
-0.08219738304615021,
-0.07471422106027603,
-0.0321214534342289,
-0.01011939998716116,
0.058761514723300934,
-0.043930843472480774,
0.034553658217191696,
0.06338397413492203,
0.018389945849776268,
0.0198473259806633,
0.009090258739888668,
0.012833519838750362,
0.027339372783899307,
-0.03422810882329941,
-0.04005192965269089,
0.05379582196474075,
0.027179190889000893,
-0.025574292987585068,
-0.011093380860984325,
0.04128493368625641,
-0.03795955702662468,
0.02036629244685173,
-0.007431571371853352,
-0.04584372043609619,
0.003958148416131735,
0.03269399330019951,
0.045023951679468155,
0.0057160197757184505,
0.019498469308018684,
-0.05190018564462662,
0.04043543338775635,
0.027180537581443787,
0.002314254641532898,
-0.008771090768277645,
-0.014152892865240574,
0.12868806719779968,
0.047092877328395844,
-0.019362030550837517,
-0.055030446499586105,
0.04463508725166321,
-0.008342095650732517,
-0.03167051449418068,
0.02012651599943638,
0.0030835613142699003,
-0.00233072298578918,
0.004289546515792608,
-0.04513184726238251,
-0.015962369740009308,
0.03151673451066017,
-0.05520851910114288,
-0.0073373038321733475,
0.05725324898958206,
0.0015072369715198874,
0.044970255345106125,
-0.01880711130797863,
-0.0069985706359148026,
-0.021781649440526962,
-0.023979412391781807,
-0.053724538534879684,
-0.01557600311934948,
0.034990936517715454,
-0.016774982213974,
0.026181483641266823,
-0.018388450145721436,
-0.010593671351671219,
-0.019034938886761665,
-0.04466024041175842,
0.048641618341207504,
0.053225670009851456,
0.04758032411336899,
-0.012781217694282532,
0.0411442369222641,
-0.01399895828217268,
-0.006888712290674448,
-0.012131698429584503,
-0.04710675776004791,
-0.056757111102342606,
-0.06286462396383286,
0.023094890639185905,
-0.0008627390488982201,
0.03388809785246849,
-0.01504591852426529,
-0.002129253465682268,
0.023278435692191124,
-0.002462516538798809,
-0.006835661828517914,
0.026832353323698044,
0.009474432095885277,
-0.018226806074380875,
-0.01800079271197319,
-0.0014999688137322664,
0.04997837170958519,
-0.026978831738233566,
-0.039841607213020325,
0.01677667908370495,
-0.04400463029742241,
0.024042271077632904,
-0.06771346926689148,
-0.01652989536523819,
0.010682495310902596,
-0.013911939226090908,
0.06585370749235153,
0.009442188777029514,
0.010341735556721687,
0.09249212592840195,
0.002924145432189107,
0.002922646701335907,
0.03183337301015854,
0.022231973707675934,
0.06059238687157631,
-0.009468336589634418,
0.053963709622621536,
0.0273295771330595,
-0.02159999869763851,
-0.008863161318004131,
-0.02824481390416622,
-0.022112391889095306,
-0.0022314991801977158,
-0.2585851848125458,
0.041275449097156525,
-0.017627248540520668,
-0.013720023445785046,
0.021942606195807457,
-0.05763612687587738,
-0.003899113740772009,
-0.015251832082867622,
-0.023434819653630257,
-0.006357055623084307,
0.000016674850485287607,
-0.034503303468227386,
-0.04003632441163063,
0.05780128017067909,
0.024814600124955177,
0.020710790529847145,
-0.002546407049521804,
-0.05684443190693855,
-0.0016171502647921443,
0.05973448604345322,
0.014903155155479908,
-0.02793320268392563,
-0.016780436038970947,
0.012589791789650917,
0.012067185714840889,
0.059807855635881424,
-0.05225982144474983,
-0.006302172318100929,
-0.0667528361082077,
-0.029012614861130714,
-0.002778339898213744,
-0.004832165781408548,
0.01690659299492836,
0.0030061271972954273,
0.0005369581049308181,
-0.005204669199883938,
0.04009237512946129,
0.0018781340913847089,
0.010377009399235249,
0.03046484850347042,
-0.04140748456120491,
-0.02661236748099327,
0.027386201545596123,
0.014424929395318031,
0.08832363784313202,
0.012194794602692127,
-0.06174774095416069,
0.01914379745721817,
-0.04755742847919464,
0.07352210581302643,
-0.022047782316803932,
-0.016482507809996605,
-0.026856791228055954,
0.017332496121525764,
-0.01938675530254841,
0.00023991121270228177,
-0.014390122145414352,
-0.026332303881645203,
-0.03513892740011215,
-0.044295769184827805,
-0.011674575507640839,
-0.04886319488286972,
0.00840090773999691,
-0.04330724850296974,
0.014272136613726616,
-0.0694887638092041,
-0.07336301356554031,
0.0037559708580374718,
0.05955514311790466,
0.032239507883787155,
-0.02720213308930397,
0.026967758312821388,
-0.018918367102742195,
-0.09351528435945511,
-0.04584280028939247,
-0.02155817300081253,
0.0202800240367651,
0.01943187788128853,
0.00600824411958456,
0.04356848821043968,
-0.05179686099290848,
-0.049485255032777786,
0.000045641500037163496,
0.0034548738040030003,
0.024005301296710968,
-0.0014793447917327285,
0.03407196328043938,
0.018885960802435875,
-0.027403954416513443,
0.001388266566209495,
0.0685904398560524,
-0.03825182095170021,
-0.02064860425889492,
-0.022552475333213806,
-0.006442508660256863,
0.03138463571667671,
-0.025358308106660843,
0.0011259338352829218,
0.018305247649550438,
0.042864032089710236,
0.021302837878465652,
-0.056673772633075714,
0.015442394651472569,
-0.03780229017138481,
-0.049073606729507446,
-0.00788258109241724,
-0.06751490384340286,
0.015481575392186642,
0.026898132637143135,
-0.0032278066501021385,
0.024720242246985435,
-0.03880956023931503,
0.01739226095378399,
-0.022474447265267372,
-0.010249431245028973,
-0.029897671192884445,
0.023532120510935783,
0.01691664382815361,
0.015926361083984375,
-0.014794057235121727,
-0.05232300981879234,
0.032106947153806686,
-0.025111250579357147,
-0.017732810229063034,
-0.057034049183130264,
-0.021853791549801826,
-0.007733380887657404,
-0.05531376600265503,
-0.009238536469638348,
0.01674645207822323,
-0.028644582256674767,
0.02700691483914852,
0.03873392194509506,
-0.00765393627807498,
0.02936183474957943,
0.01678009331226349,
-0.03987593948841095,
-0.008064919151365757,
0.0016405985224992037,
0.012355846352875233,
-0.0012270065490156412,
0.018200505524873734,
0.020776666700839996,
0.023674074560403824,
0.0362723171710968,
0.0023810092825442553,
0.007231317926198244,
-0.011746984906494617,
0.011170150712132454,
-0.004761545918881893,
0.0027213762514293194,
-0.010700306855142117,
0.029608482494950294,
-0.05343720689415932,
-0.03140506148338318,
0.004056441597640514,
0.02308446168899536,
0.001843861653469503,
-0.028440291061997414,
-0.06484676897525787,
0.005968019831925631,
-0.03428671136498451,
-0.015028290450572968,
-0.03862898796796799,
0.01771521382033825,
0.06635832786560059,
0.008685525506734848,
0.026172390207648277,
-0.014918920584022999,
0.0022334668319672346,
0.012042155489325523,
-0.010626253671944141,
-0.029574623331427574,
-0.0020474500488489866,
-0.026006335392594337,
-0.002552888123318553,
0.030906492844223976,
0.008886642754077911,
0.001683366484940052,
0.020478630438447,
-0.00017634419782552868,
-0.016102192923426628,
0.006929124239832163,
0.012063715606927872,
0.05782127380371094,
0.07921731472015381,
-0.015477418899536133,
0.0057338229380548,
-0.006872579921036959,
-0.02509232982993126,
-0.033989038318395615,
-0.028485730290412903,
-0.024964148178696632,
-0.004128923639655113,
-0.04627801105380058,
-0.05742146074771881,
0.017049675807356834,
0.03174252808094025,
-0.023964064195752144,
0.00862294901162386,
0.039209846407175064,
-0.038015708327293396,
-0.019049692898988724,
0.03745199739933014,
0.05913573503494263,
-0.06703229993581772,
0.0022049611434340477,
-0.0031244547571986914,
-0.000345162843586877,
0.008752434514462948,
-0.007128825876861811,
-0.06480669975280762,
-0.021280817687511444,
-0.020472675561904907,
0.04771269112825394,
-0.053252726793289185,
-0.04382644593715668,
-0.008169971406459808,
-0.0009032187517732382,
-0.014960954897105694,
0.033981289714574814,
-0.028576625511050224,
0.002576506929472089,
-0.019162625074386597,
-0.016920315101742744,
0.02183491177856922,
-0.025536339730024338,
-0.021029869094491005,
0.03996610641479492,
-0.013880832120776176,
0.0013517966726794839,
-0.017025820910930634,
0.020950941368937492,
0.030553976073861122,
-0.006004686933010817,
-0.030564403161406517,
-0.05471090227365494,
0.02778690867125988,
0.0018025049939751625,
0.03446321189403534,
-0.008162512443959713,
-0.005912393797188997,
-0.031082021072506905,
0.0121671874076128,
-0.04183090850710869,
-0.004593719728291035,
0.013718708418309689,
-0.03066958487033844,
0.027852648869156837,
0.05273778736591339,
0.007535072509199381,
0.03531273826956749,
0.000925727654248476,
-0.03278578072786331,
0.0657433569431305,
-0.03364122658967972,
-0.011012831702828407,
-0.00005527102621272206,
-0.03563214838504791,
0.050511684268713,
-0.0017410781001672149,
0.012089583091437817,
-0.030469326302409172,
0.024555057287216187,
0.05427543818950653,
0.005270686931908131,
0.0349261537194252,
-0.002343985950574279,
0.021281205117702484,
-0.03457362577319145,
-0.008773448877036572,
-0.10015988349914551,
0.006457061972469091,
0.035288941115140915,
0.023152947425842285,
-0.004185955971479416,
-0.006619179621338844,
-0.05396950617432594,
0.009742993861436844,
-0.07896249741315842,
-0.026127763092517853,
0.02597491815686226,
-0.02785346657037735,
0.017245326191186905,
0.013237321749329567,
-0.0594048835337162,
-0.012305477634072304,
0.047978632152080536,
-0.03741960600018501,
-0.02587088756263256,
-0.03162851557135582,
0.059748463332653046,
-0.02557900920510292,
0.04860858619213104,
-0.003944827243685722,
0.00009808804315980524,
0.05492250248789787,
0.04078206792473793,
0.05272207036614418,
0.047677647322416306,
-0.03366145119071007,
0.036009494215250015,
0.03831305354833603,
-0.0165738333016634,
-0.0025986628606915474,
0.02807893045246601,
-0.0168190598487854,
-0.07268727570772171,
0.014464179053902626,
-0.001525977859273553,
-0.022365834563970566,
-0.05100671574473381,
0.07519476860761642,
-0.008773095905780792,
-0.048628438264131546,
-0.04559711739420891,
0.0015608187532052398,
-0.03368616849184036,
-0.0042275371961295605,
-0.012504473328590393,
0.0011598559794947505,
-0.045729801058769226,
0.06392724812030792,
0.00976160541176796,
0.008672756142914295,
0.06732766330242157,
-0.0004914808087050915,
-0.018076736479997635,
0.013105262070894241,
0.08788477629423141,
0.08295406401157379,
0.03782038018107414,
0.008293300867080688,
0.06486120820045471,
-0.002181045012548566,
-0.04300640895962715,
-0.01733367145061493,
-0.042092904448509216,
-0.012276910245418549,
-0.02049083262681961,
0.012074681930243969,
0.06028508394956589,
-0.01019427552819252,
0.06219126656651497,
-0.02869061566889286,
-0.008242513053119183,
0.01983996480703354,
-0.002767611062154174,
0.032645631581544876,
0.07872588187456131,
0.0305792149156332,
0.02376697212457657,
0.0008999977726489305,
-0.0280761756002903,
0.002532806945964694,
-0.00394859816879034,
-0.021877212449908257,
0.023190561681985855,
-0.039559174329042435,
0.00878975447267294,
-0.010304524563252926,
0.01820259913802147,
0.09546632319688797,
-0.03358824923634529,
-0.024897504597902298,
0.003517343895509839,
0.04394487291574478,
0.01627275161445141,
0.03555072844028473,
-0.005120422225445509,
-0.023168519139289856,
-0.03969048336148262,
-0.03711142763495445,
-0.03871487081050873,
-0.0182623453438282,
-0.03214683756232262,
-0.01909022405743599,
-0.03860299289226532,
0.02395598031580448,
0.03932797908782959,
-0.023834995925426483,
-0.0352100133895874,
-0.0573759451508522,
-0.029694491997361183,
-0.07788083702325821,
-0.07690675556659698,
-0.012969228439033031,
0.009989616461098194,
-0.022321438416838646,
-0.014272870495915413,
-0.023737696930766106,
-0.01931164599955082,
-0.02606387250125408,
0.049998242408037186,
-0.06401237100362778,
-0.006027470342814922,
0.03598755970597267,
0.027184203267097473,
0.040580447763204575,
0.01254606805741787,
0.033045995980501175,
-0.003957085311412811,
0.002261415822431445,
-0.01829848252236843,
-0.004162757191807032,
0.04915605112910271,
0.03756421431899071,
0.00021835639199707657,
-0.07693532854318619,
0.03134796768426895,
0.010243176482617855,
-0.03917420282959938,
-0.08550965785980225,
0.012421236373484135,
0.021815627813339233,
0.013566032983362675,
0.048663776367902756,
-0.02437540516257286,
0.003394793951883912,
-0.048968132585287094,
-0.0010567479766905308,
-0.006308386102318764,
0.010322414338588715,
0.05194230005145073,
-0.03577255830168724,
0.07027143985033035,
0.044534940272569656,
-0.02289649099111557,
-0.04908320680260658,
-0.01604110561311245,
-0.012232339940965176,
-0.0043803490698337555,
-0.06552692502737045,
-0.013220865279436111,
-0.0536370612680912,
-0.1010264977812767,
-0.0027870158664882183,
0.020992137491703033,
-0.04719284549355507,
-0.044602829962968826,
-0.0017206385964527726,
0.017300251871347427,
-0.000921905564609915,
0.017093397676944733,
-0.022648494690656662,
0.036197345703840256,
-0.03897114470601082,
-0.01443312969058752,
-0.021484090015292168,
0.04279685392975807,
0.0003564771614037454,
0.021268682554364204,
0.034125037491321564,
-0.056958168745040894,
0.00217623938806355,
-0.02926957979798317,
-0.004353060852736235,
0.03230739384889603,
0.014700327068567276,
0.0007644221768714488
] | [
-0.07769142836332321,
-0.018537288531661034,
-0.04643499106168747,
-0.02349831350147724,
0.06435645371675491,
0.014395100064575672,
0.05086120590567589,
0.0019213742343708873,
0.06347649544477463,
0.024768659844994545,
-0.0016503666993230581,
-0.07200399786233902,
-0.0059854802675545216,
-0.021257814019918442,
-0.0018760504899546504,
-0.021912146359682083,
-0.024150969460606575,
-0.053819578140974045,
-0.041519373655319214,
0.05532236024737358,
-0.05335335060954094,
-0.023930609226226807,
-0.05025549978017807,
-0.0503532849252224,
0.03281194344162941,
0.025180241093039513,
0.03714347258210182,
-0.023963022977113724,
-0.029670588672161102,
-0.2349303960800171,
0.0149083212018013,
0.003254661802202463,
0.021411094814538956,
-0.02039940468966961,
0.006313874386250973,
-0.010154271498322487,
-0.0019880644977092743,
0.03136585280299187,
-0.009036500938236713,
0.04210949316620827,
0.01030589547008276,
0.00594001729041338,
-0.03623870760202408,
0.0018739249790087342,
0.0484049990773201,
0.010991014540195465,
-0.0291236974298954,
0.02040962316095829,
0.020988328382372856,
0.03167445585131645,
-0.02129972353577614,
0.0016373664839193225,
-0.007219228427857161,
-0.016217343509197235,
-0.0029338481836020947,
0.03894738852977753,
0.057676050812006,
0.06657242029905319,
0.036638882011175156,
0.04112093523144722,
0.02881850115954876,
0.026645824313163757,
-0.16817843914031982,
0.06651528179645538,
0.018091507256031036,
0.01648760214447975,
-0.04481438547372818,
0.0017223086906597018,
-0.011291989125311375,
0.11191226541996002,
0.0025181863456964493,
-0.006017330102622509,
0.00533717917278409,
0.04744419455528259,
0.019118838012218475,
-0.011117380112409592,
-0.027981039136648178,
0.005973797757178545,
-0.001287051010876894,
0.03129320964217186,
-0.02352076768875122,
0.006833929568529129,
-0.06250489503145218,
-0.044115547090768814,
-0.024093469604849815,
0.02535909041762352,
-0.03693072125315666,
0.029886508360505104,
0.010350127704441547,
-0.003808029228821397,
0.01634283736348152,
0.024284563958644867,
-0.015286479145288467,
0.04631030559539795,
-0.07549553364515305,
-0.024967854842543602,
0.012790932320058346,
-0.001291113905608654,
-0.003080702153965831,
0.4151534140110016,
0.0028767152689397335,
0.00758406100794673,
0.0014186255866661668,
0.05938582122325897,
-0.011304795742034912,
-0.05008113011717796,
-0.016410425305366516,
-0.0477059967815876,
0.018844325095415115,
-0.023090099915862083,
0.026119986549019814,
-0.03512844815850258,
0.06081163138151169,
-0.03837204352021217,
-0.0027846014127135277,
0.04666905850172043,
0.02992858737707138,
0.03214578703045845,
0.0021224133670330048,
0.013316681608557701,
-0.0458231195807457,
-0.003610725048929453,
-0.017646998167037964,
-0.006998000666499138,
-0.0037325264420360327,
0.007495567202568054,
0.015973776578903198,
0.08541758358478546,
0.024752428755164146,
-0.029149921610951424,
0.05501018837094307,
-0.03543781489133835,
-0.12069805711507797,
0.031532227993011475,
0.032681286334991455,
-0.020710675045847893,
0.03170723468065262,
-0.0010732654482126236,
0.0026552705094218254,
0.010654883459210396,
-0.0019058092730119824,
-0.07658712565898895,
0.06868772953748703,
-0.0024066611658781767,
-0.02206553891301155,
0.1504945605993271,
-0.01764276809990406,
-0.02479378506541252,
-0.002187475562095642,
-0.05394263565540314,
0.009593979455530643,
0.03708324953913689,
-0.006876752711832523,
-0.052295997738838196,
-0.018055852502584457,
0.03802574425935745,
0.06767548620700836,
-0.04421493783593178,
-0.05543314665555954,
-0.046282097697257996,
-0.04754211753606796,
-0.03189951181411743,
-0.03692534565925598,
0.08185689896345139,
0.05038806423544884,
-0.07628875225782394,
-0.009030736982822418,
-0.0027224260848015547,
-0.010654229670763016,
-0.0686609297990799,
0.05320699140429497,
-0.01707373559474945,
-0.0600246824324131,
0.009565013460814953,
0.05323958769440651,
-0.019078552722930908,
-0.01974976249039173,
-0.025955406948924065,
0.09026027470827103,
-0.0008102583815343678,
0.04868001863360405,
0.0019328017951920629,
-0.03358946740627289,
0.022291716188192368,
-0.03518328070640564,
-0.03571004793047905,
-0.07473506033420563,
-0.0045840139500796795,
0.013249386101961136,
-0.0012114618439227343,
-0.030378349125385284,
-0.03863392025232315,
-0.1085565909743309,
0.0835222601890564,
-0.05104345455765724,
-0.03613468259572983,
0.012320375069975853,
-0.009484550915658474,
0.012072405777871609,
-0.023850545287132263,
-0.06455442309379578,
0.028083262965083122,
0.0108430041000247,
0.02591399848461151,
-0.03656424582004547,
0.05402301996946335,
0.04431690275669098,
-0.04703393578529358,
0.08096474409103394,
0.027568016201257706,
-0.021359041333198547,
-0.0489339753985405,
-0.051410920917987823,
0.00020414142636582255,
-0.026443518698215485,
0.011579064652323723,
0.012561524286866188,
-0.006457917392253876,
-0.004924269393086433,
0.015426798723638058,
-0.030379826202988625,
-0.005849424749612808,
-0.003262107027694583,
-0.35417017340660095,
-0.05275978147983551,
-0.037701986730098724,
-0.022910647094249725,
0.04195723682641983,
-0.0035141848493367434,
-0.012666014023125172,
-0.008922162465751171,
-0.004442201461642981,
0.031912513077259064,
0.059159379452466965,
0.011865992099046707,
-0.025096038356423378,
-0.04450761526823044,
0.006608151365071535,
-0.0050154197961091995,
-0.04894419014453888,
-0.0077236066572368145,
-0.02032133750617504,
0.039081115275621414,
0.007500374224036932,
0.015624001622200012,
-0.035085711628198624,
-0.010819479823112488,
-0.02265573851764202,
-0.037731319665908813,
0.11715783178806305,
0.04616723954677582,
0.02390267513692379,
-0.03123399056494236,
0.04640403017401695,
0.03586665540933609,
-0.011441194452345371,
-0.04319236800074577,
0.03752857446670532,
-0.02615259401500225,
0.00019056677410844713,
0.0006778344395570457,
-0.012964402325451374,
-0.0473262257874012,
-0.0014240206219255924,
0.026670150458812714,
-0.040822647511959076,
-0.028117842972278595,
-0.03764581307768822,
0.011510396376252174,
0.011637801304459572,
0.02187921665608883,
-0.02521618641912937,
0.07767494022846222,
0.02425416372716427,
-0.005250981077551842,
0.07282517850399017,
-0.02997814118862152,
0.0608806274831295,
-0.008710410445928574,
-0.07612583786249161,
0.02985367178916931,
-0.009958534501492977,
-0.010421013459563255,
0.03496554493904114,
0.004868198651820421,
0.07193048298358917,
-0.05466565862298012,
-0.03852783516049385,
0.004136955831199884,
0.028378374874591827,
-0.024905921891331673,
0.02173927053809166,
-0.05030497536063194,
-0.041127968579530716,
0.0531892292201519,
0.01499173417687416,
0.021449003368616104,
0.05408696085214615,
0.033943384885787964,
0.023989902809262276,
0.012459036894142628,
0.029337823390960693,
0.02403252013027668,
0.07304446399211884,
-0.021059032529592514,
0.04109398275613785,
-0.019380860030651093,
0.025343134999275208,
0.022180119529366493,
0.0076417322270572186,
0.02537679858505726,
0.05302900820970535,
0.01816166378557682,
-0.03255376219749451,
0.01795324869453907,
-0.02791745215654373,
-0.007574272807687521,
-0.010400666855275631,
-0.01169620081782341,
-0.2581997513771057,
0.03942608833312988,
0.07292774319648743,
0.04792333394289017,
0.03035285882651806,
-0.003106839722022414,
0.04219037666916847,
-0.024682337418198586,
-0.0346793606877327,
0.01389535702764988,
0.011101970449090004,
0.005304243881255388,
-0.007648760918527842,
-0.0006939109298400581,
-0.033685244619846344,
-0.03549543768167496,
0.023681558668613434,
0.003658170346170664,
0.026429198682308197,
0.015440736897289753,
0.0635044053196907,
0.033460937440395355,
0.16581320762634277,
-0.01616232842206955,
0.03361089900135994,
0.011450746096670628,
-0.024077365174889565,
-0.02309170924127102,
0.046595584601163864,
-0.019644921645522118,
-0.012592249549925327,
0.022754400968551636,
0.047398243099451065,
0.01862752065062523,
0.010902420617640018,
-0.03727416321635246,
-0.0031198407523334026,
0.041050154715776443,
0.003549983026459813,
-0.03927471861243248,
0.020524989813566208,
-0.005888205952942371,
-0.05735693499445915,
0.022721663117408752,
0.05737711861729622,
0.02989683859050274,
0.022361421957612038,
-0.040952228009700775,
-0.04637967050075531,
-0.021576810628175735,
-0.04990348219871521,
-0.02019990235567093,
-0.0036013482604175806,
-0.02209736593067646,
-0.019998017698526382,
0.028231214731931686,
0.01895897276699543,
-0.03826611116528511,
0.04700203984975815,
0.004866603761911392,
-0.017176197841763496,
-0.017022620886564255,
0.07286917418241501,
0.003156300401315093,
-0.001162386266514659
] | [
0.05778962001204491,
0.042336635291576385,
-0.0102072823792696,
-0.0039703878574073315,
-0.021899599581956863,
0.03716057538986206,
-0.01512492448091507,
0.01291937567293644,
0.016671542078256607,
-0.021200722083449364,
-0.07928276062011719,
0.0012007656041532755,
0.03127645328640938,
0.0020639949943870306,
0.007543599233031273,
-0.04287300631403923,
-0.007249210961163044,
0.015972182154655457,
0.0189056396484375,
-0.012389750219881535,
-0.029704909771680832,
0.0279430840164423,
0.006828784476965666,
-0.006483030505478382,
0.014564165845513344,
0.009776151739060879,
-0.04048052802681923,
0.06108557805418968,
0.011423458345234394,
-0.09886842966079712,
-0.05020131170749664,
-0.00525393383577466,
-0.015328839421272278,
0.012136589735746384,
-0.0264675784856081,
-0.04607691988348961,
-0.05970189347863197,
0.06435608118772507,
-0.01006478164345026,
-0.0023549795150756836,
-0.014511850662529469,
-0.023408271372318268,
0.017443709075450897,
0.060440223664045334,
-0.007356108166277409,
0.00007462890789611265,
-0.03452516719698906,
0.038478266447782516,
-0.017173640429973602,
0.0023631646763533354,
-0.03950538858771324,
-0.023764589801430702,
0.007001766003668308,
0.014866750687360764,
0.044927436858415604,
-0.008810718543827534,
0.01078264694660902,
-0.03644935414195061,
0.00917692482471466,
-0.040574803948402405,
-0.02628225088119507,
-0.01650429517030716,
-0.08117670565843582,
-0.03324703499674797,
-0.03425760194659233,
-0.04455125704407692,
-0.009284377098083496,
0.018079934641718864,
0.011442541144788265,
0.011829192750155926,
0.009359394200146198,
0.025994617491960526,
-0.0374348908662796,
-0.0326184444129467,
0.0223336573690176,
0.03747324272990227,
-0.035604506731033325,
-0.011248513124883175,
0.028894197195768356,
0.020183617249131203,
-0.025185788050293922,
-0.0015017756959423423,
0.03091895952820778,
-0.013565992005169392,
-0.007858941331505775,
-0.06794985383749008,
0.03597671911120415,
-0.007412606850266457,
-0.0029627967160195112,
0.01720966398715973,
-0.04761279374361038,
0.028782779350876808,
0.0040648081339895725,
-0.03230559080839157,
-0.05121900886297226,
0.0012223945232108235,
0.00942318420857191,
-0.04940921068191528,
0.044314026832580566,
0.807797372341156,
0.007551037240773439,
0.020789701491594315,
-0.01485798042267561,
-0.001207298249937594,
-0.002237656619399786,
0.033296942710876465,
0.006681443657726049,
0.01584700495004654,
0.07297433912754059,
-0.057581827044487,
-0.0376010499894619,
-0.014842771925032139,
0.04455333203077316,
0.03076413832604885,
-0.006355267483741045,
0.04304741322994232,
0.009172520600259304,
0.04365916922688484,
-0.02602541819214821,
-0.013553538359701633,
0.0030572463292628527,
0.02207973599433899,
0.007804463151842356,
-0.0020300140604376793,
-0.0015254487516358495,
-0.1628318428993225,
-0.007022428326308727,
-7.658752710526175e-33,
0.039506442844867706,
-0.03756728023290634,
0.009021613746881485,
0.010013138875365257,
-0.0041224039159715176,
0.029122598469257355,
-0.018623270094394684,
-0.0344342365860939,
0.004806250333786011,
-0.05128889158368111,
0.017178962007164955,
0.006573045160621405,
0.0042943693697452545,
-0.028507838025689125,
0.04856361448764801,
-0.021745488047599792,
0.02293543703854084,
0.0026156411040574312,
-0.026088448241353035,
-0.016443366184830666,
-0.021636221557855606,
0.02556092105805874,
0.023699898272752762,
0.03207888826727867,
0.01913466304540634,
0.06868872791528702,
-0.014038756489753723,
-0.014178474433720112,
-0.0119423633441329,
-0.03916069120168686,
-0.03434862941503525,
0.006739252246916294,
-0.05146756395697594,
-0.017448682337999344,
0.02544756419956684,
-0.05886086821556091,
-0.022856302559375763,
0.008224722929298878,
0.03173289820551872,
-0.051449984312057495,
-0.04879654943943024,
-0.001639739261008799,
0.006098431535065174,
-0.062425609678030014,
-0.046563051640987396,
-0.0068746162578463554,
0.005688623059540987,
0.06395529955625534,
0.012415374629199505,
0.02788056805729866,
0.018053017556667328,
0.0021291638258844614,
0.03315313905477524,
-0.026404693722724915,
0.006397565361112356,
0.009147546254098415,
0.027247246354818344,
0.03542986512184143,
-0.025828514248132706,
0.028507858514785767,
0.05273723602294922,
0.03629045560956001,
0.012141530402004719,
0.03892897814512253,
-0.03214842826128006,
0.0039116935804486275,
-0.020820096135139465,
-0.016476649791002274,
0.011315379291772842,
0.03256141021847725,
-0.04105117544531822,
0.04786057397723198,
0.004789998754858971,
0.03075329028069973,
0.017811249941587448,
-0.03201446682214737,
0.021126721054315567,
0.007492743898183107,
0.007776777260005474,
0.010057864710688591,
0.05190638080239296,
-0.0038894296158105135,
-0.029133204370737076,
-0.05642637982964516,
-0.04821687191724777,
-0.003742194501683116,
0.016783423721790314,
0.00021606340305879712,
0.010167354717850685,
0.016156448051333427,
-0.0031911481637507677,
-0.04579940065741539,
-0.015921806916594505,
0.02124677412211895,
-0.030429106205701828,
6.877231903537701e-33,
-0.013686214573681355,
-0.03796486556529999,
0.020535018295049667,
0.006551683880388737,
0.07631969451904297,
0.019085468724370003,
0.015015574172139168,
-0.021517852321267128,
-0.0215285737067461,
0.015180721879005432,
-0.02135225012898445,
0.019777705892920494,
-0.006433820817619562,
-0.001025468809530139,
0.05365806445479393,
-0.045660506933927536,
0.02332831360399723,
-0.011363069526851177,
0.001280187047086656,
0.024210479110479355,
0.022382520139217377,
-0.012804835103452206,
-0.013281508348882198,
0.013698375783860683,
-0.0066515179350972176,
-0.0011523489374667406,
-0.005068806931376457,
0.0033019836992025375,
-0.002754240296781063,
0.03430107235908508,
0.030200378969311714,
-0.0008725878433324397,
-0.03387443348765373,
-0.013150852173566818,
0.0031065247021615505,
0.0021476021502166986,
0.04533175751566887,
-0.03968583792448044,
-0.0320541076362133,
0.014678185805678368,
0.048181887716054916,
0.004279550164937973,
-0.021048681810498238,
0.04222029820084572,
0.06318103522062302,
0.0289672389626503,
0.024363500997424126,
0.005716543644666672,
-0.011296735145151615,
-0.02418639324605465,
0.011215154081583023,
0.004525714088231325,
-0.015088488347828388,
0.02130918577313423,
-0.0036359860096126795,
0.0074242400005459785,
-0.0231188852339983,
0.010958697646856308,
-0.011813760735094547,
0.008814835920929909,
-0.010096420533955097,
0.0078039467334747314,
-0.024874839931726456,
0.010442937724292278,
-0.03243107721209526,
0.012993681244552135,
-0.037873219698667526,
-0.010923217050731182,
-0.03316750004887581,
0.02844693325459957,
-0.02307261899113655,
-0.017619676887989044,
-0.008631349541246891,
0.06169759854674339,
0.013845293782651424,
0.012605903670191765,
-0.02219361998140812,
0.020377380773425102,
-0.033934950828552246,
0.01591639220714569,
0.053088292479515076,
0.020789580419659615,
0.007975181564688683,
0.0034007825888693333,
0.0334630124270916,
0.025392431765794754,
-0.000646050728391856,
-0.01634303107857704,
-0.007665593177080154,
-0.018519343808293343,
0.016961028799414635,
-0.0036697217728942633,
0.019510818645358086,
0.04663252457976341,
0.054508887231349945,
-1.2790557946118497e-8,
-0.015394428744912148,
0.010076059959828854,
-0.021955261006951332,
-0.006789893843233585,
0.008599942550063133,
0.013976122252643108,
0.00331092975102365,
-0.023279642686247826,
-0.011028926819562912,
-0.00005140105713508092,
0.04198689013719559,
-0.024391954764723778,
0.008493859320878983,
-0.01118949893862009,
-0.0010967744747176766,
-0.008644020184874535,
-0.024296123534440994,
-0.007740742061287165,
0.03454688563942909,
0.04503349959850311,
0.021605446934700012,
0.03567769378423691,
-0.016781151294708252,
0.007031172513961792,
0.015013915486633778,
-0.05532146617770195,
0.025977980345487595,
-0.043983109295368195,
-0.024853169918060303,
-0.0489981546998024,
0.045113883912563324,
-0.03290810436010361,
-0.01774025335907936,
0.034899335354566574,
-0.04396360367536545,
-0.028756126761436462,
0.027053402736783028,
0.0028917714953422546,
0.02513705939054489,
0.020439116284251213,
-0.04456500709056854,
-0.008538131602108479,
-0.05174727737903595,
-0.037744395434856415,
-0.0298414658755064,
0.03634929656982422,
-0.03457365185022354,
-0.0048480466939508915,
-0.025505585595965385,
-0.05789059400558472,
-0.015421396121382713,
0.018034104257822037,
0.007764105685055256,
0.0188998244702816,
0.02458084560930729,
0.027848288416862488,
-0.004914876073598862,
-0.031575724482536316,
-0.0070623308420181274,
-0.03713585063815117,
-0.0014223275939002633,
-0.02220693975687027,
0.0010467653628438711,
-0.03005058690905571
] | r-calculating-the-difference-between-ordered-factor-variables | https://markhneedham.com/blog/2015/07/02/r-calculating-the-difference-between-ordered-factor-variables |
false | 2015-07-16 06:40:26 | Neo4j: The football transfers graph | [
"neo4j"
] | [
"neo4j"
] | Given we're still in http://www.bbc.co.uk/sport/0/football/33531715[pre season] http://www.bbc.co.uk/sport/0/football/33528451[transfer madness] as far as European football is concerned I thought it'd be interesting to put together a football transfers graph to see whether there are any interesting insights to be had.
It took me a while to find an appropriate source but I eventually came across http://www.transfermarkt.co.uk/premier-league/sommertransfers/wettbewerb/GB1/saison_id/2015[transfermarkt.co.uk] which contains transfers going back at least as far as the start of the Premier League in 1992.
I wrote a quick Python script to create a CSV file of all the transfers. This is what the file looks like:
[source,bash]
----
$ head -n 10 data/transfers.csv
player,from_team,from_team_id,to_team,to_team_id,fee,season
Martin Keown,Everton,29,Arsenal FC,11,"2,10 Mill. £",1992-1993
John Jensen,Bröndby IF,206,Arsenal FC,11,"1,12 Mill. £",1992-1993
Alan Miller,Birmingham,337,Arsenal FC,11,,1992-1993
Jim Will,Sheffield Utd.,350,Arsenal FC,11,,1992-1993
David Rocastle,Arsenal FC,11,Leeds,399,"1,68 Mill. £",1992-1993
Perry Groves,Arsenal FC,11,Southampton FC,180,595 Th. £,1992-1993
Ty Gooden,Arsenal FC,11,Wycombe Wand.,2805,?,1992-1993
Geraint Williams,Derby,22,Ipswich Town,677,525 Th. £,1992-1993
Jason Winters,Chelsea U21,9250,Ipswich Town,677,?,1992-1993
----
I'm going to create the following graph and then we'll write some queries which explore chains of transfers involving players and clubs.
image::{{<siteurl>}}/uploads/2015/07/2015-07-15_07-28-11.png[2015 07 15 07 28 11,599]
I wrote a few import scripts using Neo4j's http://neo4j.com/docs/stable/query-load-csv.html[LOAD CSV] command, having set up the appropriate indexes first:
[source,cypher]
----
create index on :Team(id);
create index on :Season(name);
create index on :Transfer(description);
create index on :Player(name);
----
[source,cypher]
----
// teams
load csv with headers from "file:///Users/markneedham/projects/football-transfers/data/teams.csv" as row
merge (team:Team {id: toint(row.team_id)})
on create set team.name = row.team;
// seasons
load csv with headers from "file:///Users/markneedham/projects/football-transfers/data/transfers.csv" as row
merge (season:Season {name: row.season})
ON CREATE SET season.starts = toint(split(season.name, "-")[0]);
// players
load csv with headers from "file:///Users/markneedham/projects/football-transfers/data/transfers.csv" as row
merge (player:Player {name: row.player});
// transfers
load csv with headers from "file:///Users/markneedham/projects/football-transfers/data/transfers.csv" as row
match (from:Team {id: toint(row.from_team_id)})
match (to:Team {id: toint(row.to_team_id)})
match (season:Season {name: row.season})
match (player:Player {name: row.player})
merge (transfer:Transfer {description: row.player + " from " + from.name + " to " + to.name})
merge (transfer)-[:FROM_TEAM]->(from)
merge (transfer)-[:TO_TEAM]->(to)
merge (transfer)-[:IN_SEASON]->(season)
merge (transfer)-[:PLAYER]->(player);
// connect transfers
match (season)<-[:IN_SEASON]-(transfer:Transfer)-[:PLAYER]->(player)
WITH player, season, transfer
ORDER BY player.name, season.starts
WITH player, COLLECT({s: season, t: transfer}) AS transfers
UNWIND range(0, length(transfers)-2) AS idx
WITH player, transfers[idx] AS t1, transfers[idx +1] AS t2
WITH player, t1.t AS t1, t2.t AS t2
MERGE (t1)-[:NEXT]->(t2);
----
All the files and scripts are on https://gist.github.com/mneedham/2c0b28ebe2314cb5eab5[this gist] if you want to play around with the data. The only thing you'll need to change is the file path on each of the 'LOAD CSV' lines.
The 'connect transfers' query is a bit more complicated than the others - in that one we're first ordering the transfers in ascending order grouped by player and then http://www.markhneedham.com/blog/2015/06/04/neo4j-cypher-step-by-step-to-creating-a-linked-list-of-adjacent-nodes-using-unwind/[creating a linked list] of a player's transfers.
Now that we've got the data loaded let's find out which player was transferred the most:
[source,cypher]
----
match path = (:Transfer)-[:NEXT*0..]->(transfer:Transfer)
where NOT (transfer)-[:NEXT]->()
RETURN path
ORDER BY LENGTH(path) DESC
LIMIT 1
----
image::{{<siteurl>}}/uploads/2015/07/graph-22.png[Graph 22,599]
Which other players have moved teams frequently?
[source,cypher]
----
match path = (first:Transfer)-[:NEXT*0..]->(transfer:Transfer),
(player)<-[:PLAYER]-(transfer)
where NOT ((transfer)-[:NEXT]->()) AND NOT ((first)<-[:NEXT]-())
RETURN player.name, LENGTH(path) AS numberOfTransfers
ORDER BY numberOfTransfers DESC
LIMIT 10
==> +--------------------------------------+
==> | player.name | numberOfTransfers |
==> +--------------------------------------+
==> | "Craig Bellamy" | 7 |
==> | "David Unsworth" | 6 |
==> | "Andrew Cole" | 6 |
==> | "Peter Crouch" | 6 |
==> | "Les Ferdinand" | 5 |
==> | "Kevin Phillips" | 5 |
==> | "Mark Hughes" | 5 |
==> | "Tommy Wright" | 4 |
==> | "Carl Tiler" | 4 |
==> | "Don Hutchison" | 4 |
==> +--------------------------------------+
==> 10 rows
----
What are the most frequent combinations of clubs involved in transfers?
[source,cypher]
----
match (from)<-[:FROM_TEAM]-(t:Transfer)-[:TO_TEAM]->(to), (t)-[:PLAYER]->(p)
RETURN from.name, to.name, COUNT(*) AS times, COLLECT(p.name) AS players
ORDER BY times DESC
LIMIT 10
==> +------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
==> | from.name | to.name | times | players |
==> +------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
==> | "West Ham United" | "Queens Park Rangers" | 13 | ["Keith Rowland","Iain Dowie","Tim Breacker","Ludek Miklosko","Bertie Brayley","Terrell Forbes","Steve Lomas","Hogan Ephraim","Nigel Quashie","Danny Gabbidon","Kieron Dyer","Robert Green","Gary O'Neil"] |
==> | "Tottenham Hotspur" | "Portsmouth FC" | 12 | ["Paul Walsh","Andy Turner","Rory Allen","Justin Edinburgh","Tim Sherwood","Teddy Sheringham","Noé Pamarot","Pedro Mendes","Sean Davis","Jermain Defoe","Younès Kaboul","Kevin-Prince Boateng"] |
==> | "Liverpool FC" | "West Ham United" | 12 | ["Julian Dicks","David Burrows","Mike Marsh","Don Hutchison","Neil Ruddock","Titi Camara","Rob Jones","Rigobert Song","Craig Bellamy","Joe Cole","Andy Carroll","Stewart Downing"] |
==> | "Manchester United" | "Everton FC" | 9 | ["Andrey Kanchelskis","John O'Kane","Jesper Blomqvist","Phil Neville","Tim Howard","Louis Saha","Darron Gibson","Sam Byrne","Tom Cleverley"] |
==> | "Newcastle United" | "West Ham United" | 9 | ["Paul Kitson","Shaka Hislop","Stuart Pearce","Wayne Quinn","Lee Bowyer","Kieron Dyer","Scott Parker","Nolberto Solano","Kevin Nolan"] |
==> | "Blackburn Rovers" | "Leicester City" | 9 | ["Steve Agnew","Tim Flowers","Callum Davidson","John Curtis","Keith Gillespie","Craig Hignett","Nils-Eric Johansson","Bruno Berner","Paul Gallagher"] |
==> | "Chelsea FC" | "Southampton FC" | 8 | ["Ken Monkou","Kerry Dixon","Neil Shipperley","Mark Hughes","Paul Hughes","Graeme Le Saux","Jack Cork","Ryan Bertrand"] |
==> | "Birmingham City" | "Coventry City" | 8 | ["David Rennie","John Gayle","Liam Daish","Gary Breen","Stern John","Julian Gray","Lee Carsley","Gary McSheffrey"] |
==> | "Southampton FC" | "Fulham FC" | 8 | ["Micky Adams","Kevin Moore","Terry Hurlock","Maik Taylor","Alan Neilson","Luís Boa Morte","Antti Niemi","Chris Baird"] |
==> | "Portsmouth FC" | "Stoke City" | 8 | ["Kevin Harper","Lewis Buxton","Anthony Pulis","Vincent Péricard","Asmir Begovic","Marc Wilson","Elliot Wheeler","Alex Grant"] |
==> +------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
==> 10 rows
----
Are there ever situations where players get transferred in both directions?
[source,cypher]
----
match (from)<-[:FROM_TEAM]-(t:Transfer)-[:TO_TEAM]->(to), (t)-[:PLAYER]->(player)
where id(from) < id(to)
WITH from, to, COUNT(*) AS times, COLLECT(player.name) AS players
match (to)<-[:FROM_TEAM]-(t:Transfer)-[:TO_TEAM]->(from), (t)-[:PLAYER]->(player)
RETURN from.name, to.name, times, COUNT(*) as otherWayTimes, players, COLLECT(player.name) AS otherWayPlayers
ORDER BY times + otherWayTimes DESC
LIMIT 10
==> +-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
==> | from.name | to.name | times | otherWayTimes | players | otherWayPlayers |
==> +-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
==> | "Tottenham Hotspur" | "Portsmouth FC" | 12 | 5 | ["Paul Walsh","Andy Turner","Rory Allen","Justin Edinburgh","Tim Sherwood","Teddy Sheringham","Noé Pamarot","Pedro Mendes","Sean Davis","Jermain Defoe","Younès Kaboul","Kevin-Prince Boateng"] | ["Jermain Defoe","Niko Kranjcar","Younès Kaboul","Peter Crouch","Darren Anderton"] |
==> | "West Ham United" | "Liverpool FC" | 4 | 12 | ["Julian Dicks","Daniel Sjölund","Yossi Benayoun","Javier Mascherano"] | ["Stewart Downing","Andy Carroll","Joe Cole","Craig Bellamy","Rigobert Song","Titi Camara","Rob Jones","Neil Ruddock","Don Hutchison","Julian Dicks","Mike Marsh","David Burrows"] |
==> | "West Ham United" | "Queens Park Rangers" | 13 | 2 | ["Keith Rowland","Iain Dowie","Tim Breacker","Ludek Miklosko","Bertie Brayley","Terrell Forbes","Steve Lomas","Hogan Ephraim","Nigel Quashie","Danny Gabbidon","Kieron Dyer","Robert Green","Gary O'Neil"] | ["Andy Impey","Trevor Sinclair"] |
==> | "West Ham United" | "Tottenham Hotspur" | 5 | 8 | ["Jermain Defoe","Frédéric Kanouté","Michael Carrick","Jimmy Walker","Scott Parker"] | ["Sergiy Rebrov","Mauricio Taricco","Calum Davenport","Les Ferdinand","Matthew Etherington","Bobby Zamora","Ilie Dumitrescu","Mark Robson"] |
==> | "West Ham United" | "Portsmouth FC" | 8 | 5 | ["Martin Allen","Adrian Whitbread","Marc Keller","Svetoslav Todorov","Hayden Foxe","Shaka Hislop","Sébastien Schemmel","Hayden Mullins"] | ["Stephen Henderson","Teddy Sheringham","Shaka Hislop","Marc Keller","Lee Chapman"] |
==> | "Newcastle United" | "West Ham United" | 9 | 3 | ["Paul Kitson","Shaka Hislop","Stuart Pearce","Wayne Quinn","Lee Bowyer","Kieron Dyer","Scott Parker","Nolberto Solano","Kevin Nolan"] | ["Demba Ba","Lee Bowyer","David Terrier"] |
==> | "Birmingham City" | "Coventry City" | 8 | 4 | ["David Rennie","John Gayle","Liam Daish","Gary Breen","Stern John","Julian Gray","Lee Carsley","Gary McSheffrey"] | ["Scott Dann","David Burrows","Peter Ndlovu","David Smith"] |
==> | "Manchester City" | "Portsmouth FC" | 8 | 4 | ["Paul Walsh","Carl Griffiths","Fitzroy Simpson","Eyal Berkovic","David James","Andrew Cole","Sylvain Distin","Tal Ben Haim"] | ["Benjani","Gerry Creaney","Kit Symons","Paul Walsh"] |
==> | "Blackburn Rovers" | "Southampton FC" | 5 | 6 | ["David Speedie","Stuart Ripley","James Beattie","Kevin Davies","Zak Jones"] | ["Zak Jones","Egil Östenstad","Kevin Davies","Alan Shearer","Jeff Kenna","Tim Flowers"] |
==> | "AFC Bournemouth" | "West Ham United" | 3 | 8 | ["Keith Rowland","Paul Mitchell","Scott Mean"] | ["Steve Jones","Matt Holland","Mohammed Berthé","Scott Mean","Paul Mitchell","Jamie Victory","Mark Watson","Stephen Purches"] |
==> +-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
----
Any players who go back to the same club they were at previously?
[source,cypher]
----
match (player:Player)<-[:PLAYER]-(t1:Transfer)-[:FROM_TEAM]->(from)<-[:TO_TEAM]-(t2:Transfer)-[:FROM_TEAM]->(to),
(t2)-[:PLAYER]->(player), (t1)-[:TO_TEAM]->(to)
WHERE ID(to) < ID(from)
WITH player, COLLECT([ from.name, " ⥄ ", to.name]) AS teams
RETURN player.name,
REDUCE(acc = [], item in teams | acc + REDUCE(acc2 = "", i in item | acc2 + i)) AS thereAndBack
ORDER BY LENGTH(thereAndBack) DESC
LIMIT 10
==> +-------------------------------------------------------------------------------------+
==> | player.name | thereAndBack |
==> +-------------------------------------------------------------------------------------+
==> | "Mark Stein" | ["Stoke City ⥄ Chelsea FC","Ipswich Town ⥄ Chelsea FC"] |
==> | "Peter Beagrie" | ["Bradford City ⥄ Everton FC","Bradford City ⥄ Wigan Athletic"] |
==> | "Richard Dryden" | ["Southampton FC ⥄ Stoke City","Southampton FC ⥄ Swindon Town"] |
==> | "Robbie Elliott" | ["Bolton Wanderers ⥄ Newcastle United"] |
==> | "Elliot Grandin" | ["Blackpool FC ⥄ Crystal Palace"] |
==> | "Robert Fleck" | ["Chelsea FC ⥄ Norwich City"] |
==> | "Paul Walsh" | ["Portsmouth FC ⥄ Manchester City"] |
==> | "Rick Holden" | ["Manchester City ⥄ Oldham Athletic"] |
==> | "Gary McAllister" | ["Liverpool FC ⥄ Coventry City"] |
==> | "Lee Bowyer" | ["West Ham United ⥄ Newcastle United"] |
==> +-------------------------------------------------------------------------------------+
----
That's all I've got for now - if you can think of any other interesting avenues to explore let me know and I'll take a look. | null | null | [
0.002925437642261386,
-0.0073414696380496025,
0.02349664457142353,
0.002805292373523116,
0.07205391675233841,
0.004627928603440523,
0.005098964553326368,
0.04428780823945999,
0.029004273936152458,
-0.037739768624305725,
0.0047616371884942055,
0.005177178420126438,
-0.06441518664360046,
0.027170000597834587,
0.015177275985479355,
0.06904277950525284,
0.03519489988684654,
0.0377299040555954,
0.037915393710136414,
-0.04328148066997528,
0.054183218628168106,
0.09915271401405334,
0.008307349868118763,
0.03449266031384468,
0.030403485521674156,
-0.007129730191081762,
0.010423559695482254,
-0.016678040847182274,
-0.05027486011385918,
-0.009052474983036518,
0.045845359563827515,
0.011917772702872753,
-0.010253126733005047,
-0.018894704058766365,
0.00783770252019167,
-0.06249837949872017,
0.005379070527851582,
0.025339113548398018,
-0.03584195673465729,
-0.022666621953248978,
-0.07289820164442062,
0.03296925127506256,
-0.030162256211042404,
0.01607869751751423,
-0.05098126828670502,
-0.016735507175326347,
-0.0071837943978607655,
0.015683865174651146,
-0.012541534379124641,
-0.00823508482426405,
-0.05476776137948036,
0.03882620856165886,
-0.017384754493832588,
0.003127687843516469,
-0.03204662352800369,
0.04113668575882912,
-0.014584172517061234,
-0.04708410054445267,
0.003529204986989498,
-0.03602052852511406,
0.02342846430838108,
-0.0036175926215946674,
0.020236924290657043,
0.008995507843792439,
0.023888953030109406,
-0.04498005285859108,
-0.009864827618002892,
0.04174332320690155,
-0.03212635591626167,
-0.0328020304441452,
0.0031099235638976097,
0.005822471342980862,
-0.0291045680642128,
-0.007200024090707302,
0.04187862575054169,
-0.06851982325315475,
0.00009716813656268641,
0.06530292332172394,
0.007289537228643894,
0.044371481984853745,
-0.005217630881816149,
0.01597556099295616,
-0.01648002676665783,
0.02929711528122425,
-0.013791251927614212,
-0.04921162873506546,
-0.026902049779891968,
-0.010851526632905006,
-0.043464530259370804,
0.09510189294815063,
0.023928282782435417,
-0.04641905799508095,
0.029677411541342735,
0.01747414469718933,
-0.0039410339668393135,
-0.03370488062500954,
0.037049245089292526,
0.01705353520810604,
-0.029899228364229202,
-0.0670902281999588,
-0.026782728731632233,
-0.029687099158763885,
0.00924304686486721,
-0.007509106304496527,
-0.06972217559814453,
-0.011838113889098167,
-0.024382004514336586,
0.017303138971328735,
0.03145230561494827,
-0.012519446201622486,
-0.012199661694467068,
0.026574457064270973,
0.008923569694161415,
0.0019257416715845466,
-0.08380219340324402,
0.03755192458629608,
0.03307746723294258,
-0.035832345485687256,
-0.0191904716193676,
0.026699882000684738,
0.01911885105073452,
0.027580315247178078,
-0.007957272231578827,
0.07497315108776093,
0.03418168053030968,
-0.02157880738377571,
0.013061688281595707,
0.05921313911676407,
-0.04781850799918175,
-0.06314420700073242,
0.0029484916012734175,
0.07867034524679184,
-0.06665410101413727,
-0.009227079339325428,
0.015800032764673233,
-0.05280151590704918,
-0.014359665103256702,
-0.009210977703332901,
0.0479857437312603,
0.05431521683931351,
-0.0027614152058959007,
-0.003415250452235341,
0.0007918719202280045,
0.053826041519641876,
0.008965115062892437,
-0.015511099249124527,
0.0033511731307953596,
-0.01768484152853489,
0.0060004061087965965,
-0.0011719398899003863,
0.01960679516196251,
-0.014472468756139278,
0.06441724300384521,
-0.022275280207395554,
-0.0012089877855032682,
0.07038865983486176,
0.047764264047145844,
-0.013855951838195324,
-0.047813381999731064,
0.025642111897468567,
0.04946189001202583,
0.02344127930700779,
0.030024979263544083,
0.01623779535293579,
-0.006474896799772978,
-0.019041933119297028,
-0.0053803883492946625,
0.05625612288713455,
-0.022967372089624405,
-0.0024013433139771223,
-0.02057938277721405,
-0.02921554259955883,
0.07748237252235413,
-0.02976330555975437,
-0.020861320197582245,
0.08498936146497726,
0.0612519271671772,
0.030911393463611603,
0.054059334099292755,
0.001779723446816206,
-0.07303496450185776,
0.021919243037700653,
0.010952247306704521,
0.0515921413898468,
0.04089970514178276,
-0.023167327046394348,
0.08296278119087219,
0.0499769002199173,
0.022505642846226692,
0.04102380946278572,
-0.03844762593507767,
-0.06048460304737091,
-0.04605352506041527,
0.0038547306321561337,
0.023909814655780792,
-0.0425245463848114,
0.02191769704222679,
0.046155065298080444,
0.023031050339341164,
0.03960935398936272,
0.00828563142567873,
0.015087839215993881,
0.011964613571763039,
-0.05113884061574936,
-0.031262174248695374,
0.052315715700387955,
0.002653802977874875,
0.022615691646933556,
-0.024765582755208015,
0.06804902851581573,
-0.030627427622675896,
-0.006348909344524145,
0.037550292909145355,
-0.04611308127641678,
0.017567649483680725,
-0.003064050106331706,
0.056895092129707336,
-0.021774016320705414,
0.045964449644088745,
-0.06174696609377861,
0.014692012220621109,
0.056669481098651886,
-0.002734864130616188,
0.011494532227516174,
0.02046259678900242,
0.10640066117048264,
0.034226007759571075,
-0.03966953605413437,
-0.031141038984060287,
-0.03165510669350624,
0.029032135382294655,
-0.021600190550088882,
-0.018556447699666023,
-0.02082567662000656,
-0.004458051640540361,
-0.004859574139118195,
-0.06986731290817261,
-0.047264765948057175,
-0.006454662885516882,
-0.04471137002110481,
0.018743421882390976,
0.05100319907069206,
0.025386162102222443,
0.044241763651371,
-0.0050611551851034164,
-0.010834779590368271,
0.004799469839781523,
-0.0005573437665589154,
-0.06023726239800453,
0.02034185640513897,
-0.0030275974422693253,
-0.015394959598779678,
0.0017335324082523584,
-0.026078078895807266,
-0.037043843418359756,
-0.04750681295990944,
-0.020390519872307777,
0.028234384953975677,
0.05955582112073898,
0.07614318281412125,
0.008932722732424736,
0.028777679428458214,
0.00944020226597786,
0.013466634787619114,
-0.04151906445622444,
-0.04611276835203171,
-0.07948476076126099,
-0.042512405663728714,
-0.00350140780210495,
-0.016741925850510597,
0.01828879304230213,
0.026880303397774696,
0.01425702590495348,
0.04115801677107811,
0.017250390723347664,
0.03065282292664051,
0.037419598549604416,
0.006312877405434847,
-0.01712338626384735,
-0.020743567496538162,
-0.016827138140797615,
0.03568335250020027,
-0.02072642743587494,
0.006160169839859009,
0.00949065200984478,
-0.09512895345687866,
0.012654321268200874,
-0.03771795332431793,
0.012059235014021397,
-0.017896538600325584,
-0.012172346003353596,
-0.004432575777173042,
0.037629518657922745,
0.019718706607818604,
0.021150005981326103,
-0.019616542384028435,
0.030265675857663155,
0.02045699954032898,
0.003533317008987069,
0.0279888566583395,
0.02367011271417141,
0.04571299999952316,
0.02489694580435753,
-0.028803544119000435,
0.03762979805469513,
-0.03857617825269699,
0.026153767481446266,
-0.046089667826890945,
-0.2656291723251343,
0.055125150829553604,
0.017665725201368332,
-0.025556223466992378,
0.03761136531829834,
-0.004496490117162466,
0.008082082495093346,
-0.05516250804066658,
-0.048438720405101776,
0.027245521545410156,
-0.05018769949674606,
-0.04325229302048683,
-0.05322148650884628,
0.037337012588977814,
0.056496866047382355,
0.01709558628499508,
0.010785720311105251,
-0.054227422922849655,
-0.008064606226980686,
0.046095747500658035,
-0.014695622958242893,
-0.051989469677209854,
-0.028644287958741188,
0.06080732122063637,
0.022763479501008987,
0.06778808683156967,
-0.04804345220327377,
-0.027463071048259735,
-0.09242846816778183,
-0.008812911808490753,
0.0031527227256447077,
-0.015091201290488243,
0.029486244544386864,
-0.001786720589734614,
-0.03303033113479614,
-0.03376481682062149,
0.032446108758449554,
0.002955049043521285,
-0.017665011808276176,
-0.044111330062150955,
-0.02416575513780117,
0.0012132234405726194,
-0.020856957882642746,
-0.02634952962398529,
0.06828174740076065,
0.00558958575129509,
-0.06487088650465012,
-0.0058836122043430805,
-0.02839992754161358,
0.07433625310659409,
-0.017405817285180092,
-0.011980248615145683,
0.011841321364045143,
0.021933767944574356,
-0.026830485090613365,
0.0077412985265254974,
0.001503807958215475,
-0.001831547124311328,
-0.029823031276464462,
-0.015848904848098755,
-0.01467929594218731,
-0.007794684264808893,
-0.00039645269862376153,
-0.011730249039828777,
0.0027983468025922775,
-0.04923492670059204,
-0.027862319722771645,
0.0005282083875499666,
0.0667581558227539,
0.004668119829148054,
-0.04040355607867241,
-0.011791512370109558,
0.020921846851706505,
-0.0729587972164154,
0.001320551265962422,
-0.0017625575419515371,
-0.010333024896681309,
0.012358414940536022,
0.02131766267120838,
0.01531629916280508,
-0.03334084153175354,
-0.052947696298360825,
0.02237851545214653,
0.003942377399653196,
0.024165581911802292,
-0.024695424363017082,
0.03926115855574608,
0.029204925522208214,
-0.021007580682635307,
-0.009905973449349403,
0.05860824137926102,
-0.019604425877332687,
0.007922569289803505,
0.041704464703798294,
-0.020461339503526688,
0.01986943557858467,
-0.010140722617506981,
0.009313195012509823,
0.0022746555041521788,
0.043698228895664215,
0.03705840930342674,
-0.04961676895618439,
-0.0026032868772745132,
-0.00881599448621273,
-0.014192030765116215,
0.011980562470853329,
-0.04498797655105591,
0.013115459121763706,
0.021818529814481735,
0.00822475180029869,
0.05354968458414078,
-0.04118646681308746,
-0.005677350796759129,
-0.03974081575870514,
-0.04846537858247757,
-0.024300487712025642,
0.039870794862508774,
0.034977786242961884,
-0.00946173258125782,
-0.009788576513528824,
-0.05287233740091324,
0.012331661768257618,
-0.020706990733742714,
-0.006582870148122311,
-0.07723144441843033,
0.0006896286504343152,
-0.018192116171121597,
-0.01223213504999876,
0.01319896336644888,
0.0057952129282057285,
-0.03670097514986992,
0.008133003488183022,
0.031649768352508545,
-0.05726868659257889,
0.01586119644343853,
-0.02662719413638115,
-0.07064636051654816,
-0.06571049243211746,
0.00887319166213274,
-0.01638147048652172,
0.0066846259869635105,
0.009091868065297604,
0.006680907681584358,
0.021534457802772522,
0.04140760377049446,
0.009754043072462082,
0.011635254137217999,
0.002977124648168683,
0.01636984758079052,
0.04218969866633415,
0.016678810119628906,
-0.027145562693476677,
0.00005154117752681486,
-0.04972146824002266,
-0.03317410498857498,
0.03380655124783516,
0.03093327209353447,
0.004345558118075132,
-0.013682898133993149,
-0.0122684920206666,
0.012468923814594746,
-0.05064733326435089,
-0.04322835057973862,
0.00795371737331152,
0.03359023481607437,
0.08007162064313889,
-0.0020726732909679413,
-0.013481385074555874,
0.002809941302984953,
0.028780244290828705,
-0.022076888009905815,
0.0015238485066220164,
-0.06588774174451828,
-0.014351303689181805,
-0.0036372621543705463,
-0.007937554270029068,
-0.02751491218805313,
0.032432932406663895,
0.024875201284885406,
0.01864967681467533,
0.0071514202281832695,
-0.009735516272485256,
0.022235402837395668,
0.02709873951971531,
0.05437544360756874,
0.02434859424829483,
-0.019401824101805687,
-0.014201006852090359,
0.009322880767285824,
0.0020658662542700768,
-0.03174562379717827,
0.01851133443415165,
-0.018445931375026703,
0.004476854111999273,
-0.041558317840099335,
-0.07423572987318039,
0.026681074872612953,
0.014182242564857006,
0.019344111904501915,
0.026547150686383247,
-0.004034389741718769,
-0.012729325331747532,
-0.007085567805916071,
0.027716010808944702,
0.04483415186405182,
-0.04638238623738289,
-0.009101680479943752,
0.0022113793529570103,
-0.009347337298095226,
0.004260390531271696,
0.002551228506490588,
-0.04534778743982315,
-0.052445635199546814,
-0.0018496931297704577,
0.036055419594049454,
-0.0477670282125473,
0.017259517684578896,
-0.02924913354218006,
-0.005497952923178673,
-0.009981817565858364,
-0.0008261491311714053,
-0.021204939112067223,
0.010341170243918896,
-0.0029250988736748695,
-0.023086192086338997,
0.010354570113122463,
-0.00809588935226202,
0.015685763210058212,
-0.0022739015985280275,
-0.01324393879622221,
0.008067267015576363,
-0.02542330138385296,
-0.0037059704773128033,
0.037746891379356384,
0.006581035442650318,
0.021225346252322197,
-0.014275218360126019,
-0.003447888186201453,
0.009121255949139595,
0.04213300347328186,
-0.012613808736205101,
-0.03139445185661316,
-0.03333887830376625,
-0.028354952111840248,
-0.025236500427126884,
0.013285969384014606,
-0.013589919544756413,
0.0013053748989477754,
0.022428497672080994,
0.03604910895228386,
0.008156622759997845,
0.03154993802309036,
-0.006257820408791304,
-0.01939987950026989,
0.03585916757583618,
-0.040871694684028625,
-0.008452394977211952,
-0.0053198193199932575,
-0.023095155134797096,
0.0192074254155159,
-0.0010721775470301509,
0.008005613461136818,
-0.049038778990507126,
0.03199588879942894,
0.035952575504779816,
0.011242709122598171,
0.05464344471693039,
0.02700064517557621,
0.012037241831421852,
-0.052509091794490814,
-0.004623588174581528,
-0.08996309340000153,
0.018743805587291718,
0.02854067087173462,
0.02306847646832466,
-0.01163433212786913,
0.005298767238855362,
-0.03268730267882347,
0.022299380972981453,
-0.05919786915183067,
-0.04793139919638634,
0.017607979476451874,
-0.03384103626012802,
0.0019855548162013292,
0.032313864678144455,
-0.05714511498808861,
-0.017293499782681465,
0.03991372883319855,
-0.04278325289487839,
-0.003748977091163397,
0.01012633740901947,
0.04245155677199364,
-0.0382053479552269,
0.05173914134502411,
-0.022542912513017654,
-0.033845994621515274,
0.06443813443183899,
0.028861230239272118,
0.01748822256922722,
0.03463928401470184,
0.0012250790605321527,
0.022106628865003586,
0.021801378577947617,
0.026369942352175713,
0.017389822751283646,
0.025196615606546402,
-0.04033174738287926,
-0.05545487627387047,
-0.001507564913481474,
-0.007649441249668598,
-0.01459948718547821,
-0.06238594278693199,
0.06496366113424301,
0.010800241492688656,
-0.030060240998864174,
-0.042599935084581375,
-0.007026066537946463,
-0.03829342871904373,
-0.02387651428580284,
-0.0007092245505191386,
0.03164456784725189,
-0.04580486938357353,
0.03625031188130379,
0.002324820263311267,
-0.004006944131106138,
0.07759176939725876,
0.0006789988838136196,
0.00549407908692956,
-0.019978348165750504,
0.09499172121286392,
0.0757119208574295,
0.05357017740607262,
-0.029383216053247452,
0.07886132597923279,
0.001029916456900537,
-0.03767772763967514,
0.016910549253225327,
0.000715104688424617,
0.008116784505546093,
0.010412725619971752,
-0.0016190913738682866,
0.06140933558344841,
-0.046627625823020935,
0.05802283436059952,
-0.009916454553604126,
-0.0499444380402565,
0.0004004582588095218,
0.00502879498526454,
0.023826370015740395,
0.08185712993144989,
-0.005217235069721937,
0.03511712700128555,
-0.012106610462069511,
-0.04864707216620445,
0.029306942597031593,
-0.0036668097600340843,
-0.014024975709617138,
0.026272239163517952,
-0.07147461175918579,
0.03309943899512291,
-0.013369687832891941,
0.027503443881869316,
0.06877847760915756,
-0.044070448726415634,
0.02665945142507553,
-0.02824021503329277,
-0.0034570228308439255,
-0.011957615613937378,
0.005049560219049454,
-0.013852663338184357,
0.019783196970820427,
-0.01529671810567379,
-0.0475807748734951,
-0.024099985137581825,
-0.020028073340654373,
-0.03657512739300728,
0.016836294904351234,
0.0075420900247991085,
0.006823924370110035,
0.025982143357396126,
-0.008817202411592007,
-0.03532612323760986,
-0.06179552152752876,
-0.05096273496747017,
-0.09006685763597488,
-0.06860741227865219,
-0.029620494693517685,
0.04451989009976387,
0.006725482176989317,
-0.055830471217632294,
-0.0018773357151076198,
-0.007765982300043106,
-0.0534331351518631,
0.031290579587221146,
-0.050587333738803864,
-0.024541031569242477,
0.010859581641852856,
0.06632525473833084,
0.02486356906592846,
-0.002907579531893134,
0.057132821530103683,
-0.03811711072921753,
-0.03541797399520874,
-0.03697320818901062,
0.033599842339754105,
0.03436793386936188,
0.020841334015130997,
-0.017734752967953682,
-0.09191255271434784,
0.01334966067224741,
0.05032626539468765,
-0.04590313136577606,
-0.07627742737531662,
0.041495174169540405,
0.003469709074124694,
-0.008172632195055485,
0.04692207649350166,
-0.037515077739953995,
0.014576779678463936,
-0.0543474517762661,
0.0240833330899477,
-0.006745354738086462,
-0.005537374410778284,
0.04084692895412445,
-0.024115437641739845,
0.11036421358585358,
0.038808196783065796,
0.0014838861534371972,
-0.056095436215400696,
-0.008940888568758965,
-0.005948230624198914,
0.018448345363140106,
-0.04424619674682617,
-0.02233307994902134,
-0.039923589676618576,
-0.08400817960500717,
-0.019198620691895485,
0.009353267960250378,
-0.039805904030799866,
-0.0539543479681015,
0.026246631518006325,
0.005049018654972315,
0.029683485627174377,
0.01097883004695177,
-0.0457448810338974,
0.018774382770061493,
-0.006038058549165726,
-0.023648707196116447,
-0.04345967248082161,
0.03146923705935478,
0.044300053268671036,
-0.0037470718380063772,
-0.012054963037371635,
-0.05203613266348839,
0.009138187393546104,
-0.011256390251219273,
-0.04128146544098854,
0.0237916000187397,
0.002570337848737836,
0.019762719050049782
] | [
-0.041620269417762756,
-0.01934419572353363,
-0.03390705585479736,
-0.04100955277681351,
0.08928033709526062,
-0.018518226221203804,
0.012348541989922523,
-0.004721110686659813,
0.03791002184152603,
-0.0028450116515159607,
0.017559373751282692,
-0.08273432403802872,
-0.02810022234916687,
-0.023749807849526405,
0.018066663295030594,
-0.01472928561270237,
-0.06735320389270782,
-0.10701795667409897,
-0.02798864245414734,
0.024598585441708565,
-0.03076767921447754,
-0.031776439398527145,
-0.018740305677056313,
-0.019395267590880394,
0.05172277241945267,
0.003339504823088646,
0.07237658649682999,
-0.012184018269181252,
-0.049355022609233856,
-0.1918887048959732,
0.016464948654174805,
-0.011551117524504662,
0.005462195724248886,
-0.016716159880161285,
0.03134893998503685,
0.017299514263868332,
0.005310664884746075,
0.010966053232550621,
0.07244614511728287,
0.05890194699168205,
0.007243148051202297,
0.00987534411251545,
-0.04579368606209755,
-0.05011330917477608,
0.030579935759305954,
0.031188901513814926,
0.007536971941590309,
-0.004398604854941368,
0.033775780349969864,
0.07098986953496933,
-0.036760859191417694,
0.036251362413167953,
-0.004578423220664263,
-0.008861549198627472,
-0.02370460145175457,
0.07667740434408188,
0.03972431644797325,
0.04810287430882454,
0.0197282861918211,
0.05382612720131874,
0.013203824870288372,
0.017695656046271324,
-0.15191049873828888,
0.05154414847493172,
0.006082100793719292,
0.00469428114593029,
-0.01614365354180336,
0.017188522964715958,
-0.00790431909263134,
0.079405277967453,
-0.030949588865041733,
-0.07567071169614792,
-0.018235009163618088,
0.010883905924856663,
0.0332309827208519,
-0.045517537742853165,
0.012407954782247543,
0.03009776771068573,
-0.008894582279026508,
-0.016498975455760956,
-0.041285451501607895,
0.01642809621989727,
-0.02219070866703987,
-0.03660869598388672,
-0.06246821954846382,
-0.019949156790971756,
-0.01110136043280363,
0.05274016782641411,
-0.016528217121958733,
0.015644391998648643,
0.06863680481910706,
0.030572811141610146,
0.020704403519630432,
0.006212580017745495,
-0.10889452695846558,
-0.02795412950217724,
0.017588580027222633,
0.020881038159132004,
-0.0410972498357296,
0.44517672061920166,
0.005665992386639118,
0.005712300073355436,
0.06291946023702621,
0.027349673211574554,
-0.01663966476917267,
0.014215093106031418,
0.017419351264834404,
-0.00938438531011343,
0.0013006218941882253,
-0.017034228891134262,
-0.04498277232050896,
-0.0025333769153803587,
0.044470980763435364,
-0.028910234570503235,
0.01801277883350849,
0.02401641197502613,
0.0018068080535158515,
-0.010205804370343685,
0.014277175068855286,
-0.0027412876952439547,
-0.004309491720050573,
0.005939429625868797,
-0.02331797033548355,
0.0015309713780879974,
-0.04048752784729004,
0.028921235352754593,
0.003239512210711837,
0.05644805729389191,
0.02747116982936859,
0.015753157436847687,
0.011299354955554008,
-0.04726983606815338,
-0.0995040163397789,
0.013162718154489994,
-0.014742301777005196,
-0.02112562768161297,
0.006619460415095091,
-0.044928912073373795,
0.0038409256376326084,
0.04795833304524422,
-0.013023309409618378,
-0.12158603221178055,
0.031742487102746964,
-0.038427047431468964,
-0.05392643064260483,
0.10525258630514145,
0.040679145604372025,
-0.040575820952653885,
0.004589799325913191,
-0.017978565767407417,
-0.012880396097898483,
0.00862346962094307,
0.024233601987361908,
-0.08423306047916412,
-0.020312106236815453,
0.018826810643076897,
0.07177360355854034,
-0.050081413239240646,
-0.05603526160120964,
-0.014008295722305775,
-0.025226179510354996,
-0.04918033629655838,
-0.05545613914728165,
0.032850705087184906,
0.04789130389690399,
-0.12789450585842133,
-0.02612231858074665,
-0.026694176718592644,
0.013632726855576038,
-0.05908770114183426,
0.007790983654558659,
0.014605357311666012,
-0.028328455984592438,
0.02133490890264511,
0.05456962808966637,
-0.006327314767986536,
-0.012121746316552162,
-0.04629611223936081,
0.0615154467523098,
-0.022221440449357033,
0.008881536312401295,
0.01272542867809534,
-0.08139480650424957,
-0.000019461700503597967,
-0.042512767016887665,
-0.03154722973704338,
-0.08119209855794907,
-0.021028434857726097,
-0.02405291236937046,
0.009108118712902069,
-0.009888853877782822,
-0.015668099746108055,
-0.03875041380524635,
0.0349242240190506,
-0.021358614787459373,
0.021783556789159775,
-0.014319104142487049,
-0.008808520622551441,
0.004107445478439331,
-0.025885285809636116,
-0.03991899639368057,
-0.015057889744639397,
-0.017882701009511948,
0.004710884764790535,
-0.04483698680996895,
0.06504926085472107,
0.04754311963915825,
0.01142204087227583,
0.11692660301923752,
0.007197658997029066,
-0.00541944894939661,
-0.045359715819358826,
0.013762022368609905,
-0.006310947239398956,
0.0012921099551022053,
-0.009986331686377525,
-0.02240142412483692,
0.008723937906324863,
0.04339978098869324,
0.037511035799980164,
0.0021380996331572533,
-0.020798636600375175,
0.026733217760920525,
-0.3116549551486969,
-0.002670474350452423,
-0.023108353838324547,
-0.006435542833060026,
0.02036450430750847,
-0.03696965053677559,
0.025954537093639374,
-0.03901243954896927,
0.022705042734742165,
0.08593668788671494,
0.04054489731788635,
-0.017211394384503365,
-0.006937618833035231,
-0.06544313579797745,
-0.023297902196645737,
0.004760740324854851,
-0.03898005560040474,
0.015243411995470524,
0.00023526544100604951,
0.04968434199690819,
0.04570978879928589,
0.009668603539466858,
-0.08629642426967621,
0.011199812404811382,
0.015506178140640259,
-0.07497718185186386,
0.13428480923175812,
0.02995065040886402,
0.019610656425356865,
-0.07431399822235107,
0.025060227140784264,
0.01633041352033615,
0.03762324899435043,
-0.08678341656923294,
0.015585139393806458,
-0.007339170668274164,
-0.0098295658826828,
-0.03336746618151665,
0.04287208989262581,
-0.06287825107574463,
0.004648066125810146,
0.013269730843603611,
-0.06082502007484436,
-0.013216470368206501,
-0.07786200195550919,
0.037763770669698715,
-0.0007068812265060842,
-0.036805059760808945,
-0.03681786358356476,
0.08007669448852539,
0.033783409744501114,
0.0185465756803751,
0.0781116709113121,
-0.03550432249903679,
0.0464463010430336,
-0.05353788286447525,
-0.07687758654356003,
0.02787347510457039,
-0.013690037652850151,
0.013158924877643585,
0.011761253699660301,
0.01728491112589836,
0.07245681434869766,
-0.0392000712454319,
-0.02517649717628956,
-0.0008303042268380523,
0.02849164605140686,
0.009601426310837269,
0.0026325350627303123,
0.013083620928227901,
-0.007710339967161417,
0.021444188430905342,
-0.0219663567841053,
0.019708167761564255,
0.027911260724067688,
0.04210682213306427,
0.016314778476953506,
0.07485591620206833,
-0.0014733425341546535,
0.006859178189188242,
0.0673132836818695,
-0.07009346038103104,
0.04248274862766266,
-0.03308692201972008,
0.051963239908218384,
0.06090923026204109,
0.029512183740735054,
-0.0007622932898811996,
0.047090135514736176,
0.03324657306075096,
-0.00935328472405672,
-0.011905423365533352,
-0.05684316158294678,
-0.010821889154613018,
0.01805930770933628,
-0.03199001029133797,
-0.19676904380321503,
-0.006174955051392317,
0.06981317698955536,
0.049089983105659485,
0.04730800911784172,
0.03944409266114235,
0.01784035749733448,
0.006973010953515768,
-0.021910181269049644,
0.03884916752576828,
0.04649047553539276,
0.005545643623918295,
0.026779811829328537,
-0.0016205214196816087,
-0.0077430009841918945,
-0.04142659902572632,
0.040283702313899994,
-0.0023964503780007362,
0.03287455439567566,
0.045238424092531204,
0.022893819957971573,
-0.044950395822525024,
0.13561584055423737,
0.011514042504131794,
0.05076977238059044,
0.04743882268667221,
-0.004646086134016514,
-0.000014125309462542646,
0.012458588927984238,
0.0003923705080524087,
-0.004573623649775982,
0.011383336037397385,
0.02210075780749321,
0.04203655198216438,
-0.029519956558942795,
-0.009744059294462204,
-0.047583188861608505,
0.0955638661980629,
-0.014144739136099815,
-0.036907125264406204,
0.001354449661448598,
0.029369531199336052,
-0.029726704582571983,
0.05432978644967079,
0.0605924092233181,
0.05136360228061676,
0.005912772845476866,
-0.031899213790893555,
-0.04848792776465416,
-0.02586917020380497,
-0.043432485312223434,
-0.0341750830411911,
0.0011364541715011,
-0.025870177894830704,
0.022570164874196053,
0.04068845137953758,
0.009735817089676857,
-0.04403232783079147,
0.05183769017457962,
-0.018877707421779633,
-0.040270768105983734,
-0.017418520525097847,
0.07011409848928452,
0.02226891741156578,
0.03012680634856224
] | [
0.01711566001176834,
-0.0011309992987662554,
-0.02313852123916149,
-0.013387263752520084,
0.0321398600935936,
0.04517319053411484,
0.04441135749220848,
0.01359582133591175,
0.02032436802983284,
-0.028367653489112854,
-0.032938793301582336,
-0.0027087402995675802,
0.01859796792268753,
-0.009131024591624737,
0.007511787582188845,
-0.03474786505103111,
-0.056008901447057724,
-0.027408989146351814,
0.04214036092162132,
-0.01982978545129299,
-0.018212389200925827,
-0.019365835934877396,
-0.04015456885099411,
-0.01779119297862053,
-0.018728269264101982,
0.0097703468054533,
-0.0004370200913399458,
0.021416958421468735,
0.011166187934577465,
-0.13453640043735504,
-0.08294551074504852,
-0.03297315910458565,
-0.00014629213546868414,
0.01178766693919897,
-0.03489274904131889,
0.0009747149306349456,
0.009186944924294949,
0.00597676495090127,
0.02594565972685814,
0.03399838134646416,
0.0039999764412641525,
-0.042424969375133514,
-0.016745220869779587,
0.024119310081005096,
-0.02030905708670616,
0.020603030920028687,
-0.0033469886984676123,
0.012540175579488277,
-0.006589694879949093,
0.03565383702516556,
-0.03752976283431053,
-0.010875201784074306,
0.010434167459607124,
0.04543095454573631,
0.037246230989694595,
0.004602279048413038,
-0.018660271540284157,
0.00039252772694453597,
-0.024616019800305367,
0.009102913551032543,
-0.018916916102170944,
0.026510652154684067,
-0.03359418362379074,
-0.02965795435011387,
-0.017602955922484398,
-0.01574370451271534,
-0.0443945936858654,
0.013794215396046638,
-0.012969272211194038,
0.0022692903876304626,
0.00639217346906662,
0.0018864268204197288,
-0.07842325419187546,
-0.008192409761250019,
0.001193936332128942,
0.019074054434895515,
0.005126337520778179,
-0.0014345208182930946,
0.004610476549714804,
-0.03273690119385719,
-0.05999460443854332,
-0.003950073849409819,
0.010852085426449776,
-0.026748519390821457,
-0.01636861450970173,
-0.005552193149924278,
0.0069228243082761765,
-0.02536185458302498,
0.0017063725972548127,
0.021797658875584602,
-0.011125694029033184,
0.019264396280050278,
0.02826213836669922,
0.0036853160709142685,
-0.07409778982400894,
0.01981400139629841,
0.012685653753578663,
-0.020154835656285286,
0.010372908785939217,
0.8161394000053406,
-0.008859200403094292,
0.021517055109143257,
0.019841263070702553,
0.004260060843080282,
-0.007520781364291906,
-0.021695587784051895,
0.02904490754008293,
0.006321480963379145,
0.01685115322470665,
-0.06155619025230408,
0.0006147392559796572,
0.04135075584053993,
-0.012982354499399662,
0.032962195575237274,
-0.027922892943024635,
0.05611897632479668,
-0.011973467655479908,
0.008530971594154835,
-0.03853682428598404,
0.015443379059433937,
0.03589392080903053,
0.04783179610967636,
-0.0348217599093914,
0.04996402561664581,
0.0010887633543461561,
-0.13283567130565643,
0.00046476145507767797,
-7.72499255187898e-33,
0.0022540725767612457,
-0.00684426398947835,
-0.005574708338826895,
0.0026811202988028526,
-0.057886719703674316,
0.0017530991462990642,
-0.012566941790282726,
0.013441617600619793,
-0.00597993703559041,
-0.03408372029662132,
-0.008529923856258392,
0.00013863653293810785,
-0.0006308656884357333,
0.0035737548023462296,
0.013315358199179173,
-0.028530770912766457,
-0.006494078319519758,
0.019609352573752403,
0.028749695047736168,
-0.014677516184747219,
0.0310995951294899,
0.03238726034760475,
0.05195023864507675,
-0.007612662389874458,
-0.019151980057358742,
0.026979919523000717,
-0.0998833030462265,
-0.030347811058163643,
0.03696807473897934,
-0.038277868181467056,
-0.030158240348100662,
0.012631860561668873,
-0.01645842008292675,
-0.019978957250714302,
-0.031058229506015778,
-0.0362829752266407,
-0.04603341966867447,
-0.012253551743924618,
-0.029598260298371315,
-0.0334874764084816,
-0.04330440238118172,
0.002537146210670471,
-0.02428949810564518,
-0.016209013760089874,
-0.026910418644547462,
-0.0007484788657166064,
-0.011511297896504402,
-0.03761761263012886,
-0.0017927669687196612,
-0.014028304256498814,
0.02466070093214512,
-0.029716435819864273,
0.015494277700781822,
-0.014458070509135723,
-0.005364641081541777,
0.006452144589275122,
-0.01340475957840681,
0.019190944731235504,
-0.016126103699207306,
-0.008756806142628193,
0.09294289350509644,
-0.008557950146496296,
0.0062889596447348595,
0.018853290006518364,
0.004538240376859903,
0.02596101351082325,
0.04188108071684837,
-0.012736760079860687,
0.016144925728440285,
-0.039869122207164764,
-0.050219226628541946,
0.043877892196178436,
0.02458401769399643,
-0.009422088041901588,
0.03944522887468338,
-0.013721898198127747,
0.0003870799846481532,
0.03186088055372238,
0.004328909795731306,
0.03932866454124451,
0.024066220968961716,
0.016266601160168648,
-0.010326681658625603,
-0.046109866350889206,
-0.008284303359687328,
0.03624538332223892,
0.057870712131261826,
0.007720515597611666,
-0.020949486643075943,
0.020003322511911392,
0.035580527037382126,
0.05560019239783287,
-0.022070005536079407,
-0.007177797146141529,
0.012006958946585655,
7.287675592594473e-33,
0.0009521706961095333,
-0.01274201925843954,
0.03282821550965309,
-0.02573871985077858,
0.019745443016290665,
-0.02204929105937481,
0.05282825604081154,
0.022026455029845238,
-0.036273401230573654,
0.07089439779520035,
0.014447178691625595,
-0.024937212467193604,
-0.05099987983703613,
0.006187393795698881,
0.047741975635290146,
-0.03532018885016441,
0.011395075358450413,
-0.0061514959670603275,
-0.006063370034098625,
-0.009661005809903145,
0.013635330833494663,
0.000863093591760844,
0.020860478281974792,
0.01865229941904545,
-0.009049616754055023,
0.028127918019890785,
-0.008500415831804276,
-0.018439095467329025,
-0.017332836985588074,
0.008334449492394924,
0.008015005849301815,
-0.011870693415403366,
0.003051035339012742,
-0.031037483364343643,
-0.010342784225940704,
0.014089339412748814,
0.0016114151803776622,
0.025294100865721703,
0.02031356655061245,
0.01728127710521221,
0.01694013923406601,
-0.0157660860568285,
-0.005878364201635122,
0.01571701280772686,
0.021054649725556374,
0.019376887008547783,
-0.013756832107901573,
-0.03895620256662369,
0.02070075459778309,
0.058676064014434814,
0.031023859977722168,
0.02001013047993183,
-0.03333360701799393,
-0.014839441515505314,
0.039500705897808075,
-0.009286434389650822,
0.01642853394150734,
-0.005781861953437328,
-0.006998459808528423,
-0.021723000332713127,
-0.042389221489429474,
0.04408896341919899,
-0.050774525851011276,
0.008581489324569702,
-0.007145254872739315,
0.008708998560905457,
-0.04539543390274048,
-0.024665771052241325,
0.00696568563580513,
-0.0016183678526431322,
-0.019164303317666054,
-0.020497005432844162,
0.009996692650020123,
0.02359939180314541,
-0.03380956873297691,
-0.004927369765937328,
-0.0012740199454128742,
0.016292721033096313,
-0.012171666137874126,
0.04350261762738228,
0.012904931791126728,
-0.01489406917244196,
0.0234492477029562,
0.029626766219735146,
0.003144800430163741,
0.00803093146532774,
0.005192922428250313,
-0.0007403132622130215,
0.02530580759048462,
0.0028506447561085224,
0.04771919921040535,
-0.048865608870983124,
0.021355710923671722,
0.001893925480544567,
0.009482081979513168,
-1.317582576376708e-8,
-0.07656669616699219,
-0.00829489715397358,
-0.019610067829489708,
0.028044212609529495,
0.02594275027513504,
0.05370307341217995,
-0.01258330699056387,
-0.007421510294079781,
0.005557201337069273,
0.011602341197431087,
-0.008811257779598236,
0.00014044894487597048,
0.01903962530195713,
0.026918113231658936,
-0.011098484508693218,
-0.014694828540086746,
-0.040380410850048065,
-0.030025038868188858,
0.04147874563932419,
0.012244089506566525,
0.00715627521276474,
0.04880906268954277,
-0.02954675815999508,
0.025570116937160492,
0.033953018486499786,
-0.046223800629377365,
-0.010247929021716118,
-0.0860304906964302,
-0.015800531953573227,
-0.044971875846385956,
0.060777559876441956,
-0.027083637192845345,
0.013960526324808598,
0.0002022691915044561,
0.011583397164940834,
-0.008905108086764812,
0.045472316443920135,
-0.002325392095372081,
-0.025146525353193283,
0.006041981745511293,
0.005019586067646742,
0.0007378521258942783,
-0.05335964635014534,
-0.043610941618680954,
0.04911448806524277,
-0.009728193283081055,
-0.056740324944257736,
0.010209664702415466,
-0.00789072085171938,
-0.05138079822063446,
0.03826199844479561,
-0.0012557444861158729,
0.059244267642498016,
0.05059701204299927,
0.03241869807243347,
-0.006908919662237167,
-0.026944121345877647,
-0.003346177050843835,
-0.019268780946731567,
-0.008144681341946125,
0.008330995216965675,
0.03234509006142616,
-0.008063483983278275,
-0.01129192765802145
] | neo4j-the-football-transfers-graph | https://markhneedham.com/blog/2015/07/16/neo4j-the-football-transfers-graph |
false | 2015-07-28 21:04:58 | Neo4j: MERGE'ing on super nodes | [
"neo4j"
] | [
"neo4j"
] | In my continued playing with the https://data.cityofchicago.org/Public-Safety/Crimes-2001-to-present/ijzp-q8t2[Chicago crime data set] I wanted to connect the crimes committed to their position in the http://gis.chicagopolice.org/clearmap_crime_sums/crime_types.html[FBI crime type] hierarchy.
These are the sub graphs that I want to connect:
image::{{<siteurl>}}/uploads/2015/07/2015-07-26_22-19-04.png[2015 07 26 22 19 04,300]
We have a 'fbiCode' on each 'Crime' node which indicates which 'Crime Sub Category' the crime belongs to.
I started with the following query to connect the nodes together:
[source,cypher]
----
MATCH (crime:Crime)
WITH crime SKIP {skip} LIMIT 10000
MATCH (subCat:SubCategory {code: crime.fbiCode})
MERGE (crime)-[:CATEGORY]->(subCat)
RETURN COUNT(*) AS crimesProcessed
----
I had this running inside a Python script which incremented 'skip' by 10,000 on each iteration as long as 'crimesProcessed' came back with a value > 0.
To start with the 'CATEGORY' relationships were being created very quickly but it slowed down quite noticeably about 1 million nodes in.
I profiled the queries but the query plans didn't show anything obviously wrong. My suspicion was that I had a super node problem where the cypher run time was iterating through all of the sub category's relationships to check whether one of them pointed to the crime on the other side of the 'MERGE' statement.
I cancelled the import job and wrote a query to check how many relationships each sub category had. It varied from 1,000 to 93,000 somewhat confirming my suspicion.
https://twitter.com/mesirii[Michael] suggested tweaking the query to use the shortestpath function to check for the existence of the relationship and then use the 'CREATE' clause to create it if it didn't exist.
The neat thing about the shortestpath function is that it will start from the side with the lowest cardinality and as soon as it finds a relationship it will stop searching. Let's have a look at that version of the query:
[source,cypher]
----
MATCH (crime:Crime)
WITH crime SKIP {skip} LIMIT 10000
MATCH (subCat:SubCategory {code: crime.fbiCode})
WITH crime, subCat, shortestPath((crime)-[:CATEGORY]->(subCat)) AS path
FOREACH(ignoreMe IN CASE WHEN path is NULL THEN [1] ELSE [] END |
CREATE (crime)-[:CATEGORY]->(subCat))
RETURN COUNT(*)
----
This worked much better - 10,000 nodes processed in ~ 2.5 seconds - and the time remained constant as more relationships were added. This allowed me to create all the category nodes but we can actually do even better if we use _http://neo4j.com/docs/stable/query-create-unique.html[CREATE UNIQUE]_ instead of _MERGE_
[source,cypher]
----
MATCH (crime:Crime)
WITH crime SKIP {skip} LIMIT 10000
MATCH (subCat:SubCategory {code: crime.fbiCode})
CREATE UNIQUE (crime)-[:CATEGORY]->(subCat)
RETURN COUNT(*) AS crimesProcessed
----
Using this query 10,000 nodes took ~ 250ms -900ms second to process which means we can process all the nodes in 5-6 minutes - good times!
I'm not super familiar with the 'CREATE UNIQUE' code so I'm not sure that it's always a good substitute for 'MERGE' but on this occasion it does the job.
The lesson for me here is that if a query is taking longer than you think it should try and use other constructs / a combination of other constructs and see whether things improve - they just might! | null | null | [
-0.00692604947835207,
-0.033990319818258286,
-0.013022859580814838,
0.05237880349159241,
0.08546839654445648,
0.00427886052057147,
0.0278758741915226,
0.02731120027601719,
0.03777008876204491,
-0.0145088080316782,
0.006171685177832842,
-0.004789827857166529,
-0.09708460420370102,
0.011697406880557537,
0.013450654223561287,
0.0843341276049614,
0.08020031452178955,
0.006079958751797676,
0.0156417153775692,
-0.028245650231838226,
0.026187453418970108,
0.06127261742949486,
-0.025747666135430336,
0.036269087344408035,
0.028123367577791214,
0.028070341795682907,
0.003612812841311097,
0.0047988202422857285,
-0.05519285798072815,
0.011580725200474262,
0.057689204812049866,
-0.01665247604250908,
0.021462630480527878,
-0.030442014336586,
0.024267125874757767,
0.02140307053923607,
-0.035812702029943466,
0.023491239175200462,
-0.012961480766534805,
0.014005985110998154,
-0.054596420377492905,
0.03772469609975815,
-0.026744652539491653,
-0.0002311351418029517,
-0.029766986146569252,
0.0017412786837667227,
-0.06550797820091248,
0.032843079417943954,
0.01881207898259163,
-0.00392771465703845,
-0.047865260392427444,
0.04138145595788956,
-0.015178544446825981,
0.02857842668890953,
-0.011442231945693493,
0.05560589209198952,
0.002142489654943347,
-0.07851652055978775,
0.05008324235677719,
-0.014334730803966522,
0.0031351614743471146,
-0.015031685121357441,
0.020853474736213684,
-0.0016045894008129835,
-0.0030658941250294447,
-0.017823703587055206,
-0.006004876922816038,
0.07624746114015579,
-0.026134170591831207,
-0.019195007160305977,
0.02855011075735092,
0.034104205667972565,
-0.008130651898682117,
0.005499205552041531,
-0.024653097614645958,
-0.013223308138549328,
-0.014155863784253597,
0.021258370950818062,
0.0066546481102705,
0.037971820682287216,
-0.032369352877140045,
0.01879960671067238,
0.001788191613741219,
0.033694300800561905,
0.012262982316315174,
-0.03335874155163765,
-0.053870607167482376,
-0.020542914047837257,
-0.053801026195287704,
0.04544272646307945,
-0.003099240129813552,
-0.06631645560264587,
-0.0057310666888952255,
0.010443458333611488,
-0.01908828131854534,
0.0037711330223828554,
0.019716734066605568,
-0.003011873457580805,
0.01844034530222416,
-0.03605497255921364,
-0.015912586823105812,
-0.011149990372359753,
0.028120022267103195,
0.03535297140479088,
-0.056331586092710495,
-0.02051667869091034,
-0.027119824662804604,
-0.01633515954017639,
0.010773919522762299,
0.0009635122260078788,
-0.04986587539315224,
-0.0048848711885511875,
-0.012701856903731823,
0.03073369897902012,
-0.07610081881284714,
0.05905159190297127,
0.023062778636813164,
-0.0415942445397377,
-0.027245623990893364,
-0.0011345476377755404,
0.042175840586423874,
0.0023660152219235897,
-0.004072000738233328,
0.07592250406742096,
-0.007523429114371538,
0.0399617925286293,
0.02980274148285389,
0.04097169265151024,
0.003730157157406211,
-0.04605037346482277,
-0.01012575626373291,
0.04165755957365036,
-0.0029794538859277964,
-0.022683000192046165,
-0.011580712161958218,
-0.03855285048484802,
-0.025086838752031326,
0.040394291281700134,
0.0465070940554142,
0.01495041698217392,
0.02548774518072605,
-0.039400018751621246,
0.03814166039228439,
-0.022109420970082283,
0.039166320115327835,
-0.0012235332978889346,
-0.04378083348274231,
-0.02800075337290764,
-0.011160644702613354,
0.014890498481690884,
0.026260245591402054,
0.03737781569361687,
0.04884638637304306,
-0.038884636014699936,
0.00868205539882183,
0.11222241818904877,
0.05881953611969948,
-0.00766151025891304,
-0.014409438706934452,
0.01890142820775509,
0.06916112452745438,
0.035460155457258224,
-0.0022409125231206417,
0.05421217530965805,
-0.009679898619651794,
-0.01797429658472538,
-0.005010251421481371,
0.047585535794496536,
-0.043727342039346695,
0.011449864134192467,
-0.043342456221580505,
-0.04872620105743408,
0.06993240863084793,
-0.056536342948675156,
-0.031986482441425323,
0.02495650388300419,
0.08611464500427246,
0.04229971021413803,
-0.020799456164240837,
-0.007726719137281179,
-0.06897826492786407,
0.03936228156089783,
-0.024566201493144035,
0.011445218697190285,
0.018596511334180832,
-0.02631579339504242,
0.07015399634838104,
0.041705887764692307,
-0.016466422006487846,
0.026226859539747238,
-0.07329224795103073,
-0.058112382888793945,
-0.021839788183569908,
-0.012029251083731651,
0.05850621312856674,
-0.022329159080982208,
0.017234642058610916,
0.04164891317486763,
-0.012397954240441322,
0.039454761892557144,
-0.014287250116467476,
-0.005761295091360807,
0.0374644473195076,
-0.035831268876791,
-0.058801937848329544,
0.04634897783398628,
0.022124512121081352,
-0.027842432260513306,
-0.0512089841067791,
0.025034664198756218,
-0.015787240117788315,
-0.005781499203294516,
0.023952463641762733,
-0.04592001065611839,
0.039640024304389954,
0.026192031800746918,
0.040415696799755096,
-0.02841724269092083,
0.05806643143296242,
-0.05144938454031944,
0.041030026972293854,
0.00810313131660223,
-0.04210447520017624,
0.008041086606681347,
-0.03764084726572037,
0.10658465325832367,
0.06841349601745605,
-0.021567529067397118,
-0.06453021615743637,
0.03137141093611717,
0.008772732689976692,
-0.009569650515913963,
0.02770252153277397,
-0.039619166404008865,
-0.015675701200962067,
0.008086957968771458,
-0.02659229002892971,
-0.03557119891047478,
0.0037495442666113377,
-0.03389548137784004,
0.011985809542238712,
0.043408360332250595,
-0.0024510317016392946,
0.05530643090605736,
-0.012908201664686203,
-0.02442069724202156,
0.01729661412537098,
-0.01952786184847355,
-0.027394721284508705,
0.029137806966900826,
0.0007067833212204278,
0.003519869176670909,
0.04222867637872696,
-0.036874569952487946,
0.008755520917475224,
-0.01739095151424408,
-0.004062672145664692,
0.014044069685041904,
0.05385396629571915,
0.04182940721511841,
0.009670783765614033,
0.05994002893567085,
-0.03807278349995613,
0.003830891102552414,
-0.05057767033576965,
-0.03029049001634121,
-0.05491204187273979,
-0.004687437787652016,
0.013182131573557854,
0.020512115210294724,
0.03785301744937897,
0.005853268317878246,
0.019980618730187416,
-0.00559924216940999,
0.03808832913637161,
0.02135508880019188,
0.027482330799102783,
-0.006536875851452351,
-0.011048645712435246,
-0.036326032131910324,
-0.013437801040709019,
0.038645897060632706,
-0.045720502734184265,
-0.051463935524225235,
-0.025051474571228027,
-0.07795588672161102,
0.06830792874097824,
-0.06090833991765976,
-0.043502286076545715,
-0.004302878864109516,
0.014645038172602654,
0.04995168745517731,
0.0005950018530711532,
-0.03433075547218323,
0.050966404378414154,
0.009414625354111195,
0.019466688856482506,
0.021836312487721443,
0.01769910752773285,
0.020345181226730347,
0.017163999378681183,
0.029302731156349182,
0.04114061966538429,
-0.034184638410806656,
-0.008241145871579647,
-0.03792697191238403,
-0.004167934413999319,
-0.01205864455550909,
-0.2682012617588043,
0.05533076822757721,
-0.04808294400572777,
-0.049643032252788544,
0.004124196711927652,
-0.04796339198946953,
0.009589866735041142,
-0.030855638906359673,
-0.03183188661932945,
-0.02541971206665039,
0.013617930002510548,
-0.055493537336587906,
-0.006970101501792669,
0.04073852673172951,
0.018748320639133453,
-0.027419254183769226,
-0.0267698485404253,
-0.043228331953287125,
-0.004139102064073086,
0.04638778418302536,
0.01884648948907852,
-0.05147268623113632,
-0.020533831790089607,
0.020538633689284325,
0.04211677983403206,
0.06539329141378403,
-0.08907569944858551,
0.003805439453572035,
-0.060849376022815704,
-0.030880670994520187,
0.01904141716659069,
-0.01641875132918358,
-0.011963541619479656,
0.00021133437985554338,
-0.018333282321691513,
-0.005063237622380257,
0.04040445387363434,
0.005320901051163673,
-0.010489349253475666,
0.013916939496994019,
-0.05377807468175888,
-0.034718841314315796,
-0.022072793915867805,
-0.001360412104986608,
0.09533862769603729,
-0.0009711303864605725,
-0.05911814048886299,
-0.006813929881900549,
-0.030681738629937172,
0.048387158662080765,
-0.03584377095103264,
-0.030657397583127022,
-0.0291364137083292,
0.01362165529280901,
-0.02256586030125618,
-0.02247133105993271,
-0.015373056754469872,
-0.008451458066701889,
-0.0642608031630516,
-0.03843335434794426,
0.00416384544223547,
-0.04669906571507454,
0.02044657990336418,
-0.03641965240240097,
-0.0021400584373623133,
-0.049578022211790085,
-0.05289120972156525,
-0.03408229351043701,
0.03633108735084534,
0.026267731562256813,
-0.0008316506864503026,
0.031163254752755165,
0.0021047531627118587,
-0.1122979000210762,
-0.04598172754049301,
-0.00982649251818657,
-0.004982516635209322,
-0.0003986090887337923,
0.009744430892169476,
0.033574752509593964,
-0.03869308531284332,
-0.03196140378713608,
0.00034702845732681453,
0.02265271358191967,
0.019185712561011314,
-0.004728168714791536,
0.010801606811583042,
0.015981251373887062,
-0.05527399107813835,
-0.006470631342381239,
0.06803028285503387,
-0.022490525618195534,
0.007667321711778641,
-0.008918357081711292,
-0.02533225528895855,
0.032048702239990234,
0.013642908073961735,
-0.00306806992739439,
-0.011957768350839615,
0.02093588002026081,
0.063283771276474,
-0.04566663131117821,
0.0016869602259248495,
-0.038776498287916183,
-0.00978061929345131,
-0.03275109454989433,
-0.00799837801605463,
0.028337625786662102,
0.024817349389195442,
0.0010168175213038921,
-0.0015168114332482219,
-0.012932139448821545,
0.02238711528480053,
-0.04897032678127289,
-0.0056794751435518265,
-0.033736005425453186,
0.02113303914666176,
-0.002201112685725093,
0.028338054195046425,
-0.02377934567630291,
-0.06629189103841782,
0.03664258494973183,
0.03704968839883804,
0.020674685016274452,
-0.07902047783136368,
-0.06546516716480255,
-0.019594918936491013,
-0.0013884644722566009,
0.02809308096766472,
0.04143574461340904,
-0.0384984016418457,
0.04419846460223198,
0.011499658226966858,
-0.03171025961637497,
0.0402754582464695,
-0.04338532313704491,
-0.04082763195037842,
-0.0416375994682312,
0.024186966940760612,
0.023542296141386032,
0.024346278980374336,
0.010946742258965969,
0.01182809192687273,
0.03354688733816147,
0.05287936329841614,
0.01399377454072237,
0.024024806916713715,
-0.004958714358508587,
0.0069899652153253555,
-0.004838811699301004,
-0.015580320730805397,
-0.022428320720791817,
0.010134187527000904,
-0.048416994512081146,
-0.02656218595802784,
0.0011169669451192021,
0.058390554040670395,
-0.007382211275398731,
-0.05443961173295975,
-0.016161451116204262,
0.042356107383966446,
-0.06652243435382843,
0.02460303343832493,
-0.003514444688335061,
-0.013202618807554245,
0.04613316059112549,
-0.025497063994407654,
0.029791051521897316,
-0.024144869297742844,
0.013375761918723583,
0.0013961120275780559,
-0.018255038186907768,
-0.008170695044100285,
0.004785717930644751,
-0.00877738744020462,
-0.008096208795905113,
-0.003209439804777503,
0.013929647393524647,
-0.010225438512861729,
0.015932312235236168,
-0.03939450532197952,
-0.006433837115764618,
0.01594688557088375,
0.043866001069545746,
0.0595124289393425,
0.02863175794482231,
-0.03771570697426796,
0.0015722641255706549,
-0.016917962580919266,
-0.006266461685299873,
-0.0033479351550340652,
-0.017904356122016907,
-0.030958980321884155,
0.007469688542187214,
-0.012577058747410774,
-0.0855860561132431,
0.03954702988266945,
0.0023878116626292467,
0.008236757479608059,
0.020662855356931686,
0.008913320489227772,
-0.005158890038728714,
-0.005214680451899767,
0.04055296257138252,
0.03692304342985153,
-0.0564667247235775,
0.0008434095070697367,
0.01921750046312809,
-0.014428909868001938,
-0.01606208086013794,
0.01026360597461462,
-0.05408312752842903,
-0.03600713983178139,
-0.0041092210449278355,
0.038155753165483475,
-0.006973850075155497,
-0.017550451681017876,
-0.013712404295802116,
0.0020761152263730764,
-0.009285155683755875,
0.004640707280486822,
-0.011352401226758957,
0.00837627612054348,
-0.01025531254708767,
0.014837470836937428,
0.06667460501194,
-0.02047334797680378,
-0.02705375850200653,
0.024312324821949005,
0.005929154343903065,
0.015819573774933815,
-0.01922561042010784,
0.03839144483208656,
0.02206134982407093,
-0.025809867307543755,
-0.005711345933377743,
-0.06482472270727158,
0.0060268910601735115,
-0.019287599250674248,
0.05918607488274574,
-0.016100717708468437,
0.010334734804928303,
-0.00398191437125206,
-0.0020638832356780767,
0.005424641538411379,
0.01527852937579155,
0.023526305332779884,
-0.02057376503944397,
0.016987936571240425,
0.0501234345138073,
-0.016664544120430946,
0.011927356943488121,
0.005797098856419325,
-0.035453785210847855,
0.027598103508353233,
-0.02221744693815708,
-0.034401025623083115,
-0.016826748847961426,
-0.04207470640540123,
0.00579090416431427,
-0.009532679803669453,
-0.0007806277717463672,
-0.07106927782297134,
0.05195378139615059,
0.02693587727844715,
0.034627579152584076,
0.049851514399051666,
-0.006174332927912474,
0.02276160567998886,
-0.02645745873451233,
-0.018304182216525078,
-0.08974745869636536,
0.012771162204444408,
0.035356126725673676,
-0.03424964100122452,
-0.0005326881655491889,
0.007969996891915798,
0.0004240936250425875,
-0.002987819956615567,
-0.0807458758354187,
-0.017278695479035378,
0.043148014694452286,
-0.0009203465888276696,
0.005750923417508602,
0.01881975308060646,
-0.0377996489405632,
0.002423603320494294,
0.05359107255935669,
-0.03470052033662796,
-0.028898082673549652,
-0.015554537065327168,
0.06551869213581085,
0.010201163589954376,
0.01342802681028843,
0.010216467082500458,
-0.00632854038849473,
0.06812344491481781,
0.030033912509679794,
0.04124525189399719,
0.06528967618942261,
-0.015951089560985565,
0.019934793934226036,
0.023885469883680344,
-0.016378939151763916,
-0.031902603805065155,
0.03794827684760094,
-0.03263009712100029,
-0.05343104153871536,
0.06202822923660278,
0.01572362519800663,
0.01576806604862213,
-0.06319516897201538,
0.0738319382071495,
0.004905248060822487,
-0.07293981313705444,
-0.04303566366434097,
0.018421517685055733,
-0.027469506487250328,
-0.035070523619651794,
-0.027763454243540764,
-0.0030267639085650444,
-0.01379317231476307,
0.07088612020015717,
0.0011681434698402882,
0.036948855966329575,
0.06188104301691055,
-0.0005952855572104454,
0.009524923749268055,
0.01587732881307602,
0.08671575784683228,
0.07912775129079819,
0.03127473592758179,
0.004084796644747257,
0.06895359605550766,
-0.02053413726389408,
-0.021306773647665977,
0.012919213622808456,
-0.05878236144781113,
-0.02551219053566456,
-0.004539043642580509,
0.007554713170975447,
0.0613924004137516,
-0.05543338134884834,
0.08148454874753952,
-0.028765013441443443,
-0.0015676679322496057,
0.019037673249840736,
-0.02830394171178341,
0.028686856850981712,
0.08897628635168076,
0.0014102632412686944,
0.04510459676384926,
-0.03110343962907791,
-0.0004154133202973753,
0.015658220276236534,
0.005010480061173439,
-0.03148061782121658,
0.05096917599439621,
-0.02899261564016342,
0.0029757004231214523,
-0.004494100343436003,
0.04360377416014671,
0.09967779368162155,
-0.041708871722221375,
-0.01699211448431015,
-0.01697809435427189,
0.012049085460603237,
0.002596626989543438,
-0.0005393838509917259,
-0.013254670426249504,
-0.023105546832084656,
0.023599764332175255,
-0.06543121486902237,
-0.018939198926091194,
-0.040620289742946625,
-0.024283207952976227,
0.013151727616786957,
-0.018759021535515785,
-0.003965192474424839,
0.004188209306448698,
-0.006914733909070492,
-0.01901666261255741,
-0.04754038155078888,
-0.052976518869400024,
-0.029465286061167717,
-0.060064394026994705,
-0.0004170031752437353,
0.009367148391902447,
-0.01967049390077591,
-0.02602407895028591,
0.0005832963506691158,
-0.008083702996373177,
-0.007779588457196951,
0.02243310585618019,
-0.011449525132775307,
-0.03324761241674423,
0.014400598593056202,
0.0327412486076355,
0.023563092574477196,
0.033841438591480255,
0.05285084247589111,
-0.028245707973837852,
-0.0051114861853420734,
-0.043330103158950806,
-0.008127933368086815,
0.041901759803295135,
0.021315356716513634,
0.00110467744525522,
-0.08312416076660156,
0.0067239138297736645,
-0.012086091563105583,
-0.03402598202228546,
-0.07540246099233627,
0.010627622716128826,
0.05309560149908066,
0.04068291559815407,
0.050902482122182846,
-0.014127529226243496,
-0.03397367149591446,
-0.04564869403839111,
0.02274017035961151,
-0.018526172265410423,
-0.005261573940515518,
0.05167965590953827,
-0.0366690494120121,
0.04936385527253151,
-0.009294998832046986,
0.0015698416391387582,
-0.010838080197572708,
-0.010187787935137749,
0.017538735643029213,
-0.015577106736600399,
-0.015254231169819832,
-0.040401753038167953,
-0.0028297107201069593,
-0.09254481643438339,
-0.039539750665426254,
0.017430949956178665,
-0.0046645463444292545,
-0.028793195262551308,
0.0028000688180327415,
0.02139475755393505,
-0.04907058924436569,
0.021410822868347168,
-0.009143149480223656,
0.057096172124147415,
-0.039423711597919464,
-0.03730849549174309,
-0.015469809994101524,
0.009526168927550316,
-0.018597312271595,
0.01957695744931698,
0.007637870032340288,
-0.05040457099676132,
0.0018030215287581086,
-0.02102339081466198,
0.03798149153590202,
0.02039884403347969,
0.011161943897604942,
-0.0021091417875140905
] | [
-0.06266256421804428,
-0.0565602071583271,
-0.04455999657511711,
-0.010203741490840912,
0.09858202934265137,
-0.050980377942323685,
0.007515024859458208,
-0.017485378310084343,
0.015878617763519287,
-0.0006297960062511265,
0.035586167126894,
-0.028997410088777542,
0.02131420373916626,
0.019074900075793266,
0.0621117502450943,
-0.011031567119061947,
0.0011283999774605036,
-0.05664808303117752,
-0.016476748511195183,
0.05335799604654312,
-0.05064283683896065,
-0.04673592746257782,
-0.0189414881169796,
-0.033458925783634186,
-0.005994915962219238,
0.03415375202894211,
0.0684855580329895,
-0.0426144078373909,
-0.021410750225186348,
-0.20326027274131775,
0.01596967689692974,
0.0021476608235388994,
0.030042534694075584,
0.019215552136301994,
0.008839067071676254,
-0.0006429084460251033,
0.05013500899076462,
-0.014889136888086796,
0.02705816924571991,
0.04587758705019951,
0.03631206974387169,
0.05398407578468323,
-0.054181408137083054,
-0.022139614447951317,
0.03216560184955597,
-0.010685027576982975,
-0.0006876197876408696,
0.011018057353794575,
-0.01737387478351593,
-0.017891036346554756,
-0.023807073011994362,
-0.045910321176052094,
-0.033014338463544846,
0.04319024458527565,
-0.026243580505251884,
0.029780015349388123,
0.02868296392261982,
0.04844340309500694,
0.02559768781065941,
0.04165610298514366,
0.02827760949730873,
0.007352049462497234,
-0.14505581557750702,
0.048109930008649826,
0.024521101266145706,
0.04560112580657005,
-0.04072994738817215,
-0.047415126115083694,
-0.002842395566403866,
0.054680995643138885,
-0.0002353946038056165,
0.005079525988548994,
-0.0482853464782238,
0.03316926583647728,
-0.02216961234807968,
0.0043530589900910854,
0.012060044333338737,
0.027301477268338203,
0.030695488676428795,
-0.04019230231642723,
-0.06909375637769699,
0.002401473233476281,
0.0027779932133853436,
-0.002759283874183893,
-0.020396800711750984,
0.008886548690497875,
-0.03699508309364319,
0.01387420017272234,
0.013837501406669617,
0.011472871527075768,
0.07725630700588226,
-0.022766316309571266,
0.04746515303850174,
0.015522184781730175,
-0.07395893335342407,
-0.025405840948224068,
-0.005131795536726713,
0.0349094457924366,
-0.004315015859901905,
0.39918315410614014,
-0.02480136603116989,
-0.02368200570344925,
0.03530412167310715,
0.04173736274242401,
0.0018492743838578463,
-0.004903735592961311,
0.011738802306354046,
-0.07588700205087662,
0.01812131144106388,
-0.022938743233680725,
0.053124986588954926,
-0.03818823769688606,
0.07650166004896164,
-0.06591200828552246,
0.046037498861551285,
0.038083288818597794,
0.05071432143449783,
0.04967375472187996,
-0.01843329705297947,
0.02147703617811203,
0.0008818830247037113,
-0.006282908841967583,
0.00696559390053153,
0.0026369423139840364,
0.007393055595457554,
-0.0005833172472193837,
-0.02585107833147049,
0.07539035379886627,
0.017588716000318527,
0.01211877353489399,
0.007623869925737381,
-0.02967282012104988,
-0.07182659953832626,
0.017336295917630196,
-0.04567011818289757,
-0.009809808805584908,
0.02990119531750679,
-0.011986611410975456,
0.005622649099677801,
0.002541510621085763,
-0.041145581752061844,
-0.027600666508078575,
0.03795728459954262,
-0.0043875593692064285,
-0.021091677248477936,
0.12596355378627777,
-0.03323693200945854,
-0.05635847896337509,
-0.009942715056240559,
-0.022709524258971214,
-0.004083023872226477,
0.023705361410975456,
0.0025979329366236925,
-0.08335719257593155,
-0.04839974269270897,
0.037120405584573746,
0.08626613765954971,
0.0033990941010415554,
-0.06678774207830429,
0.017595376819372177,
0.009721300564706326,
-0.022660553455352783,
-0.0403357595205307,
0.059745218604803085,
0.07048747688531876,
-0.11438856273889542,
0.0019017952727153897,
0.014501499943435192,
0.010874839499592781,
-0.08670005202293396,
0.02165164239704609,
0.030160758644342422,
-0.01898980885744095,
0.001282158074900508,
0.007908591069281101,
-0.05270467698574066,
-0.06043580546975136,
0.029175402596592903,
0.032296065241098404,
0.0015188406687229872,
-0.02215343527495861,
0.002933537121862173,
-0.047017812728881836,
0.004328971728682518,
-0.05441374331712723,
-0.03495847061276436,
-0.05984823778271675,
0.006151318550109863,
-0.012801405042409897,
-0.0031020925380289555,
-0.03849618509411812,
-0.016144374385476112,
-0.03566253185272217,
0.032873496413230896,
-0.031889013946056366,
-0.030946917831897736,
0.0036315100733190775,
-0.007538390811532736,
-0.03884037956595421,
0.011219722218811512,
0.02751931920647621,
0.017507025972008705,
-0.01837754435837269,
0.01663491688668728,
-0.06155477464199066,
0.046324603259563446,
0.03513956815004349,
-0.06336543709039688,
0.009379835799336433,
0.03603830561041832,
0.005739898420870304,
0.0039740996435284615,
-0.021704938262701035,
0.005150441080331802,
0.03211395815014839,
-0.06349445134401321,
-0.01935918629169464,
0.025656603276729584,
0.020395170897245407,
0.047132235020399094,
-0.06087040528655052,
-0.005867520347237587,
0.002844935981556773,
-0.35869100689888,
-0.054292261600494385,
-0.035527803003787994,
0.023267218843102455,
-0.009878719225525856,
-0.08329584449529648,
0.021034929901361465,
-0.0333639495074749,
-0.027987059205770493,
0.06956925988197327,
0.07675046473741531,
0.031604357063770294,
-0.012019694782793522,
-0.053776055574417114,
-0.010922593995928764,
0.04508621245622635,
-0.009914383292198181,
0.010078104212880135,
-0.026155278086662292,
0.022549927234649658,
0.012307478114962578,
-0.04479484632611275,
-0.030103975906968117,
-0.04413830116391182,
-0.006994705181568861,
-0.012417896650731564,
0.1288250982761383,
-0.0024558778386563063,
0.040715865790843964,
-0.04850775748491287,
0.01746351085603237,
-0.01440111268311739,
0.02032199129462242,
-0.07454773038625717,
0.012954851612448692,
-0.037773497402668,
0.0058317650109529495,
0.012559475377202034,
-0.022965773940086365,
-0.011824103072285652,
-0.09977912902832031,
-0.0024580725003033876,
-0.020758643746376038,
-0.039659541100263596,
-0.03477258235216141,
0.015688207000494003,
-0.03564474359154701,
-0.024183372035622597,
0.03403270244598389,
0.06034316122531891,
0.005112463608384132,
0.017727211117744446,
0.04563232138752937,
0.020343460142612457,
0.002905473345890641,
-0.02265285886824131,
-0.06466919928789139,
0.005644533783197403,
-0.0030632964335381985,
-0.01809939742088318,
0.022135749459266663,
0.03566862642765045,
0.03109254501760006,
-0.09437108039855957,
0.04283047839999199,
0.020450478419661522,
-0.0019455257570371032,
-0.003321979893371463,
0.03955472260713577,
-0.023099742829799652,
-0.03195051848888397,
0.12542086839675903,
0.003872811794281006,
-0.01040893979370594,
0.030293947085738182,
0.031717538833618164,
-0.031073929741978645,
0.023530753329396248,
0.013057183474302292,
0.004868099465966225,
0.09327062219381332,
-0.03367146849632263,
0.038267359137535095,
-0.03190084174275398,
0.008014308288693428,
0.07410126179456711,
0.028894934803247452,
-0.008776211179792881,
0.0802268460392952,
0.04271598532795906,
-0.014628998935222626,
-0.009620641358196735,
-0.023248624056577682,
-0.05543326586484909,
0.04598063603043556,
-0.008724304847419262,
-0.2645838260650635,
0.005301192868500948,
0.037239205092191696,
0.04226986691355705,
0.007095208391547203,
-0.014015495777130127,
0.07831799983978271,
-0.028116624802350998,
0.026936182752251625,
-0.028788916766643524,
0.05804305523633957,
0.03570017218589783,
0.012099147774279118,
-0.02220124378800392,
0.00852252822369337,
-0.036217622458934784,
0.004556767642498016,
0.004412003327161074,
0.004008064046502113,
0.04770684614777565,
0.018377389758825302,
-0.007042442448437214,
0.1592130810022354,
0.04520837217569351,
0.01520449761301279,
0.04234127327799797,
-0.021070681512355804,
-0.01063502673059702,
0.04241947457194328,
-0.01345574576407671,
0.015837885439395905,
0.0060855308547616005,
0.017954295501112938,
-0.002526886761188507,
0.03135882318019867,
-0.02776426076889038,
-0.021278463304042816,
0.07256104797124863,
0.036860667169094086,
-0.042977601289749146,
-0.024424660950899124,
-0.02784150280058384,
-0.03580143302679062,
0.011469574645161629,
0.06922653317451477,
-0.03478409722447395,
-0.021288899704813957,
-0.0029292793478816748,
-0.01425729226320982,
0.05272027477622032,
-0.015187609009444714,
-0.06770575791597366,
0.00844640750437975,
-0.03666362911462784,
0.03773888573050499,
0.08507386595010757,
0.011025382205843925,
0.016783084720373154,
0.03635290265083313,
0.05158286169171333,
-0.01989479921758175,
-0.03758374974131584,
0.07840076088905334,
-0.004223980009555817,
0.010903369635343552
] | [
0.0005418439395725727,
0.02043837308883667,
-0.010376667603850365,
0.056100279092788696,
-0.0034645472187548876,
0.0024244023952633142,
-0.025198835879564285,
0.039113663136959076,
-0.030043601989746094,
-0.00043882426689378917,
0.000274287216598168,
-0.002662929240614176,
0.05004504323005676,
0.006169481202960014,
-0.015737269073724747,
0.020267071202397346,
-0.01562404353171587,
0.04003053158521652,
0.021917903795838356,
-0.027736730873584747,
-0.04870540648698807,
0.004633527249097824,
0.0360834002494812,
-0.03938847780227661,
-0.015148972161114216,
0.019838858395814896,
-0.03373625874519348,
0.015650052577257156,
0.03146570920944214,
-0.12234961986541748,
-0.02141755260527134,
-0.028580915182828903,
0.00018553942209109664,
0.05037662014365196,
-0.005068254191428423,
-0.006874046288430691,
0.020550822839140892,
0.005039742216467857,
0.026035631075501442,
0.026318520307540894,
0.032296471297740936,
0.011548795737326145,
-0.014135404489934444,
-0.0038427282124757767,
-0.036341626197099686,
-0.019013991579413414,
-0.06347590684890747,
0.02191861905157566,
-0.021677624434232712,
-0.04039799049496651,
-0.051006533205509186,
-0.00282870652154088,
-0.026966586709022522,
0.04646075516939163,
0.016899405047297478,
0.009674076922237873,
-0.03539162874221802,
-0.014958912506699562,
-0.017254643142223358,
-0.005194108001887798,
0.02229468524456024,
0.008938213810324669,
-0.03245873376727104,
-0.0225960835814476,
0.0023596440441906452,
0.0094569381326437,
-0.013295279815793037,
0.008799712173640728,
0.0034896517172455788,
0.013516954146325588,
-0.027867762371897697,
0.0307631678879261,
-0.07638965547084808,
-0.0003191913419868797,
-0.022837800905108452,
0.04815598949790001,
0.03698696941137314,
-0.00787875521928072,
-0.007217159029096365,
-0.026261409744620323,
-0.018561532720923424,
0.009547168388962746,
0.00012500060256570578,
0.007877334021031857,
-0.024584179744124413,
0.006154774688184261,
-0.02895122952759266,
0.025240525603294373,
-0.0008685223292559385,
-0.003461041720584035,
-0.016889402642846107,
0.03184037655591965,
-0.006903961766511202,
0.0019309920025989413,
-0.08679956197738647,
0.001096086110919714,
0.0015335723292082548,
0.0060098315589129925,
-0.007357096765190363,
0.8374043107032776,
0.001308462698943913,
-0.02486763522028923,
0.010581990703940392,
-0.010391617193818092,
0.011531272903084755,
0.019313257187604904,
0.018700096756219864,
0.018116183578968048,
-0.00791869405657053,
-0.015169201418757439,
0.013670825399458408,
0.013042452745139599,
0.016042858362197876,
0.010684335604310036,
0.014030836522579193,
0.0219992995262146,
-0.011626748368144035,
0.03298582136631012,
0.00881773792207241,
0.010502371937036514,
0.016197744756937027,
0.006234156899154186,
-0.01876075565814972,
-0.015368263237178326,
-0.01372594852000475,
-0.19329121708869934,
-0.04060472175478935,
-7.554690603751694e-33,
0.036575738340616226,
-0.010663461871445179,
0.012896450236439705,
-0.013364464044570923,
0.01131095364689827,
0.013732225634157658,
-0.0115548400208354,
-0.001324211247265339,
-0.03227285295724869,
0.002716081216931343,
-0.03042185865342617,
-0.003274170681834221,
-0.01685306243598461,
-0.03552958741784096,
0.018612142652273178,
-0.016341181471943855,
0.002129186876118183,
0.03374047949910164,
-0.03205511346459389,
-0.0005919592804275453,
0.02508227899670601,
0.03198971599340439,
-0.012312749400734901,
0.023422490805387497,
0.03521834313869476,
0.014022145420312881,
-0.04684261977672577,
0.012900332920253277,
-0.0005757264443673193,
-0.056444112211465836,
-0.06405392289161682,
0.056945089250802994,
0.0033497028052806854,
-0.014316090382635593,
0.0003713442711159587,
-0.05083354935050011,
-0.005620295647531748,
-0.010803226381540298,
-0.053079038858413696,
-0.04862719029188156,
-0.025954296812415123,
0.011950989253818989,
-0.01200825348496437,
-0.02153102308511734,
0.002887140028178692,
-0.005021406337618828,
-0.031724005937576294,
0.021290022879838943,
0.0002522949653211981,
0.021536074578762054,
0.04466434568166733,
-0.006470231804996729,
-0.02952420525252819,
0.025416404008865356,
-0.05001712590456009,
0.034070853143930435,
0.008160818368196487,
-0.004658934660255909,
-0.003782413201406598,
0.0304450411349535,
0.005662709474563599,
0.0014235131675377488,
-0.010437311604619026,
0.027058426290750504,
0.000869353418238461,
-0.010819382034242153,
0.009385235607624054,
0.014610415324568748,
0.0065011498518288136,
0.01694140024483204,
-0.06054046005010605,
0.057017214596271515,
-0.023924553766846657,
-0.016825299710035324,
0.030342992395162582,
-0.05412894859910011,
-0.013494826853275299,
-0.02104451134800911,
0.005699341185390949,
0.0350990854203701,
-0.017987050116062164,
-0.02986294962465763,
0.016279378905892372,
-0.015560985542833805,
-0.003022371791303158,
0.006040079053491354,
0.044079218059778214,
0.019258353859186172,
-0.011964622884988785,
0.01915707066655159,
0.0469370000064373,
0.03245307505130768,
-0.00470211636275053,
-0.0103331059217453,
0.02194417268037796,
7.9345280933329e-33,
-0.01697077602148056,
0.0004377600271254778,
-0.00009910946391755715,
-0.013917789794504642,
0.0068424236960709095,
-0.015559081919491291,
0.040766771882772446,
-0.018642285838723183,
-0.038564205169677734,
0.041826631873846054,
-0.01945660077035427,
-0.023929672315716743,
0.01677609421312809,
0.003218692960217595,
0.06234253570437431,
-0.016553297638893127,
0.01364000141620636,
-0.021286971867084503,
0.008634119294583797,
0.02774990350008011,
0.0014299724716693163,
0.017893090844154358,
0.0008845216943882406,
0.024339955300092697,
0.024174606427550316,
0.034760136157274246,
-0.0012964521301910281,
0.006979464087635279,
-0.0013600938254967332,
-0.015252780169248581,
-0.007967949844896793,
-0.02693469449877739,
-0.006836730055510998,
-0.054950397461652756,
0.018958408385515213,
0.020577171817421913,
0.007948051206767559,
-0.042435452342033386,
0.03925367072224617,
-0.04799092188477516,
0.005527148488909006,
0.04947244003415108,
-0.04547285661101341,
0.06321553885936737,
-0.0017615838441997766,
0.0361955389380455,
0.009353694505989552,
-0.006865109317004681,
-0.005020155105739832,
0.008551891893148422,
-0.003569558262825012,
0.029383687302470207,
-0.0013033768627792597,
0.030402639880776405,
0.00889522023499012,
-0.021670224145054817,
-0.000257961597526446,
0.04809921607375145,
0.0007764043984934688,
0.011350383050739765,
-0.01458695624023676,
0.014371993020176888,
-0.04883354529738426,
0.0061043621972203255,
-0.0031564629171043634,
-0.021011091768741608,
-0.02728806808590889,
-0.007679198402911425,
0.013342421501874924,
0.01688568666577339,
-0.015733705833554268,
0.008332365192472935,
-0.002443514531478286,
0.04321860894560814,
0.018110278993844986,
-0.031233908608555794,
-0.012766437605023384,
0.008320502005517483,
-0.0067804595455527306,
0.030523205175995827,
0.02333728037774563,
0.012885060161352158,
0.0024623710196465254,
0.02246267721056938,
0.0010777998249977827,
0.012984792701900005,
-0.01628432236611843,
0.032369401305913925,
0.02391996793448925,
0.028961127623915672,
0.002251255791634321,
-0.03357307240366936,
0.005363904871046543,
0.028804048895835876,
-0.029723817482590675,
-1.3245530006145145e-8,
-0.04390871524810791,
0.01075741183012724,
-0.020778322592377663,
0.006102059967815876,
0.030054273083806038,
0.011104543693363667,
-0.010731278918683529,
0.002946359571069479,
-0.015532729215919971,
0.00316800270229578,
0.018269266933202744,
0.007570973131805658,
0.004858823958784342,
0.03402978554368019,
0.011532919481396675,
-0.06362178176641464,
0.0034606417175382376,
-0.035853177309036255,
0.047293875366449356,
0.02503650076687336,
-0.016768431290984154,
0.02099618874490261,
-0.060454972088336945,
0.025289757177233696,
-0.0024127645883709192,
-0.01893579587340355,
0.021014530211687088,
-0.06906517595052719,
0.006005308125168085,
0.010035332292318344,
0.010732860304415226,
-0.016629809513688087,
-0.029430009424686432,
0.04159832000732422,
-0.03810429200530052,
0.0022735365200787783,
0.02338852919638157,
0.018803568556904793,
-0.003156861988827586,
0.01922047697007656,
0.02401730976998806,
-0.0018936459673568606,
-0.016312070190906525,
-0.03112466260790825,
-0.01452292874455452,
-0.017036432400345802,
-0.002525219228118658,
0.0009769538883119822,
0.04375484213232994,
-0.037872035056352615,
0.0070360577665269375,
-0.03276236355304718,
-0.012700710445642471,
0.00043930098763667047,
0.04122442752122879,
-0.022991038858890533,
0.021349839866161346,
0.0024974236730486155,
-0.012393094599246979,
0.006868674885481596,
0.013765365816652775,
-0.002088633133098483,
0.0004827718366868794,
-0.031983211636543274
] | neo4j-mergeing-on-super-nodes | https://markhneedham.com/blog/2015/07/28/neo4j-mergeing-on-super-nodes |
false | 2015-07-28 20:05:47 | Python: Difference between two datetimes in milliseconds | [
"python"
] | [
"Python"
] | I've been doing a bit of adhoc measurement of some cypher queries executed via http://py2neo.org/2.0/[py2neo] and wanted to work out how many milliseconds each query was taking end to end.
I thought there'd be an obvious way of doing this but if there is it's evaded me so far and I ended up http://stackoverflow.com/questions/1345827/how-do-i-find-the-time-difference-between-two-datetime-objects-in-python[calculating the different between two _datetime_ objects] which gave me the following timedelta object: ~~~python >>> import datetime >>> start = datetime.datetime.now() >>> end = datetime.datetime.now() >>> end - start datetime.timedelta(0, 3, 519319) ~~~
The 3 parts of this object are 'days', 'seconds' and 'microseconds' which I found quite strange!
These are the methods/attributes we have available to us: ~~~python >>> dir(end - start) ['__abs__', '__add__', '__class__', '__delattr__', '__div__', '__doc__', '__eq__', '__floordiv__', '__format__', '__ge__', '__getattribute__', '__gt__', '__hash__', '__init__', '__le__', '__lt__', '__mul__', '__ne__', '__neg__', '__new__', '__nonzero__', '__pos__', '__radd__', '__rdiv__', '__reduce__', '__reduce_ex__', '__repr__', '__rfloordiv__', '__rmul__', '__rsub__', '__setattr__', '__sizeof__', '__str__', '__sub__', '__subclasshook__', 'days', 'max', 'microseconds', 'min', 'resolution', 'seconds', 'total_seconds'] ~~~
There's no 'milliseconds' on there so we'll have to calculate it from what we do have: ~~~python >>> diff = end - start >>> elapsed_ms = (diff.days * 86400000) + (diff.seconds * 1000) + (diff.microseconds / 1000) >>> elapsed_ms 3519 ~~~
Or we could do the following slightly simpler calculation: ~~~python >>> diff.total_seconds() * 1000 3519.319 ~~~
And now back to the query profiling! | null | null | [
0.029773836955428123,
-0.009742246009409428,
-0.016537930816411972,
0.02159537374973297,
0.08678441494703293,
0.021156873553991318,
0.016570745036005974,
0.017716018483042717,
0.022944506257772446,
-0.010608823038637638,
0.015026731416583061,
0.010201414115726948,
-0.04513102024793625,
0.02446439117193222,
0.005247704219073057,
0.07616623491048813,
0.06851787865161896,
-0.03799702972173691,
0.033172596246004105,
-0.014994217082858086,
0.03550787642598152,
0.02826577238738537,
-0.012138750404119492,
0.028503693640232086,
0.005958855617791414,
0.03282386437058449,
-0.016849026083946228,
-0.014933638274669647,
-0.05272819474339485,
-0.03389498218894005,
0.03740565851330757,
-0.010903704911470413,
0.007829525507986546,
0.0029850597493350506,
0.024740973487496376,
0.00536313047632575,
-0.04126057028770447,
0.00882029626518488,
-0.009312679059803486,
0.001647242228500545,
-0.05079762637615204,
0.017473626881837845,
-0.008841625414788723,
0.011106576770544052,
-0.06768373399972916,
0.011373704299330711,
-0.010601860471069813,
0.03477057069540024,
0.017760982736945152,
0.030011365190148354,
-0.08252336829900742,
0.03808709979057312,
0.004499578382819891,
0.01696213148534298,
-0.02195347286760807,
0.049195822328329086,
0.0156732015311718,
-0.0788629874587059,
0.04825692996382713,
-0.006820769049227238,
0.02933603525161743,
-0.03673587739467621,
0.0011900649406015873,
-0.007136384025216103,
0.015181801281869411,
-0.01936817727982998,
0.031700655817985535,
0.065464086830616,
-0.02944371849298477,
0.010620762594044209,
0.010685015469789505,
0.018091201782226562,
-0.02482905238866806,
0.011140957474708557,
-0.02077762596309185,
-0.01796010509133339,
0.0038046252448111773,
0.03365941345691681,
0.014476090669631958,
0.0549377016723156,
-0.02142702415585518,
-0.015509892255067825,
0.03139515966176987,
0.047568775713443756,
-0.017036480829119682,
0.0005315340240485966,
-0.06314925104379654,
-0.008222673088312149,
-0.05127890780568123,
0.03513332083821297,
0.021675841882824898,
-0.04400552809238434,
0.04445132985711098,
0.003923875279724598,
-0.013960612937808037,
-0.004533661529421806,
0.023490019142627716,
0.011025384068489075,
0.028266971930861473,
-0.030621662735939026,
-0.023400453850626945,
-0.048911865800619125,
0.02472510188817978,
0.03279741108417511,
-0.05890832468867302,
-0.05940529704093933,
-0.05660020560026169,
-0.027835071086883545,
-0.0003279243246652186,
0.00871319230645895,
-0.057270728051662445,
0.002397767500951886,
-0.0004755390400532633,
0.002124849706888199,
-0.08288358151912689,
0.051433101296424866,
0.01063510775566101,
-0.03330811858177185,
-0.0030170013196766376,
0.012615744955837727,
0.040235672146081924,
0.018803691491484642,
-0.016259457916021347,
0.0722990334033966,
0.000889200484380126,
0.06785289943218231,
0.023011464625597,
0.0387687049806118,
-0.010246094316244125,
-0.05930973216891289,
-0.0266276728361845,
0.04837629571557045,
0.0022350456565618515,
-0.006013232748955488,
-0.01016600988805294,
-0.050337277352809906,
-0.0430174358189106,
0.050416000187397,
0.06743821501731873,
0.047361794859170914,
0.03634074330329895,
-0.03680296614766121,
0.002416841685771942,
0.007162729278206825,
-0.004265539813786745,
0.03543335571885109,
-0.021803105250000954,
-0.047706201672554016,
-0.01209296565502882,
-0.00454940740019083,
-0.012174857780337334,
0.011147813871502876,
0.03244202956557274,
-0.04251749441027641,
0.00849607028067112,
0.0772763043642044,
0.007536809891462326,
0.007368439342826605,
-0.04290219768881798,
-0.0015003029257059097,
0.03807095065712929,
0.036896899342536926,
-0.023631680756807327,
0.05050969868898392,
0.013872344978153706,
-0.03237266093492508,
0.020523589104413986,
0.05390078201889992,
-0.018044672906398773,
0.018253104761242867,
-0.05905647575855255,
-0.051269181072711945,
0.08822967857122421,
-0.054397545754909515,
-0.014286071993410587,
0.050110358744859695,
0.08650192618370056,
0.03814813494682312,
0.026165036484599113,
-0.017304271459579468,
-0.07710529118776321,
0.009745989926159382,
-0.01733419857919216,
0.03263145685195923,
0.052005112171173096,
-0.015029373578727245,
0.07024550437927246,
-0.0006018513813614845,
-0.013118707574903965,
0.018216241151094437,
-0.0708814486861229,
-0.04770189896225929,
-0.01453061681240797,
-0.0271162036806345,
0.04936636984348297,
-0.05403026565909386,
0.015570810995995998,
0.018114138394594193,
0.016709517687559128,
0.0441218726336956,
-0.00468110665678978,
0.0025034795980900526,
0.009674272499978542,
-0.03874669969081879,
-0.048890236765146255,
0.036297231912612915,
0.02564990520477295,
-0.051826294511556625,
-0.0181680116802454,
0.007374545559287071,
-0.03513959050178528,
-0.01971353031694889,
0.02729663997888565,
-0.01374148577451706,
0.031650006771087646,
0.09059982746839523,
0.05934111028909683,
-0.04278680682182312,
0.023430421948432922,
-0.05300847813487053,
0.04658018797636032,
0.021670760586857796,
-0.04668380320072174,
-0.022882578894495964,
0.003512320574373007,
0.1071493998169899,
0.06528551131486893,
-0.03756624460220337,
-0.051557507365942,
0.020162450149655342,
-0.0005374414613470435,
-0.035631511360406876,
0.0005849416484124959,
-0.03497806191444397,
0.0015548164956271648,
0.013428779318928719,
-0.009722269140183926,
-0.042101845145225525,
0.0013071885332465172,
-0.00768825551494956,
0.012602826580405235,
0.04716990143060684,
-0.016649076715111732,
0.06251535564661026,
-0.012058541178703308,
0.003239640034735203,
-0.006691435817629099,
-0.013669469393789768,
-0.05415971949696541,
0.029120000079274178,
0.00881795771420002,
-0.005050149280577898,
0.06282543390989304,
-0.04438816010951996,
-0.008483214303851128,
-0.05309160798788071,
-0.03828040882945061,
0.06673812866210938,
0.048952724784612656,
0.04499376192688942,
0.0026684447657316923,
0.05606478825211525,
0.00455605611205101,
0.035434506833553314,
-0.019780375063419342,
-0.06617908924818039,
-0.04903243109583855,
-0.006368859671056271,
0.015853410586714745,
0.028624534606933594,
0.02400173991918564,
0.010401150211691856,
0.04116123542189598,
-0.0014739955076947808,
0.016361087560653687,
-0.00711819389835,
0.03969092667102814,
-0.0001928571582539007,
-0.020848967134952545,
-0.033169765025377274,
-0.010800519958138466,
0.05198488384485245,
-0.04837774112820625,
-0.031104914844036102,
0.02040666528046131,
-0.05884573236107826,
0.05665053054690361,
-0.06537626683712006,
-0.02576402574777603,
-0.00422088336199522,
0.0049414862878620625,
0.04297703504562378,
-0.0036785213742405176,
0.037780214101076126,
0.09599486738443375,
0.008024469949305058,
-0.004583635833114386,
0.024411385878920555,
0.0044432152062654495,
0.028987865895032883,
0.016881076619029045,
0.032275885343551636,
0.033156879246234894,
-0.002357965335249901,
-0.02522650733590126,
-0.05629346892237663,
-0.01642145775258541,
-0.023999067023396492,
-0.2589613199234009,
0.02653866447508335,
-0.04334261268377304,
-0.03827763721346855,
-0.013735346496105194,
-0.03993092477321625,
0.04256242513656616,
-0.02948116324841976,
-0.018708622083067894,
-0.008745186030864716,
-0.030385548248887062,
-0.0588994137942791,
-0.051631711423397064,
0.0640142485499382,
0.0029824611265212297,
0.011234331876039505,
-0.027379417791962624,
-0.06455671787261963,
0.001729454379528761,
0.02994723804295063,
0.02607453055679798,
-0.040973421186208725,
-0.024600325152277946,
0.04486677795648575,
0.019365105777978897,
0.05895812064409256,
-0.06147829070687294,
0.0018054014071822166,
-0.060276951640844345,
-0.021453170105814934,
0.007803913205862045,
-0.028262918815016747,
0.008771267719566822,
-0.01580256223678589,
0.008620131760835648,
-0.03325781226158142,
0.024842195212841034,
0.010434014722704887,
0.02160971239209175,
-0.010192316956818104,
-0.055038366466760635,
-0.0335867814719677,
0.019606245681643486,
-0.012181505560874939,
0.08185072988271713,
0.019629044458270073,
-0.038529280573129654,
-0.03872004896402359,
-0.005159297958016396,
0.04677468165755272,
-0.019240420311689377,
-0.04287683591246605,
-0.02543935738503933,
0.0005261281039565802,
-0.03461650386452675,
-0.024467777460813522,
-0.01592474803328514,
-0.02484041079878807,
-0.03318477421998978,
-0.02852225862443447,
-0.024898704141378403,
-0.028920309618115425,
0.0192562248557806,
-0.05730848014354706,
-0.03607851266860962,
-0.03825346380472183,
-0.07507399469614029,
-0.012238898314535618,
0.04391538351774216,
0.036741409450769424,
-0.053047534078359604,
0.010570093058049679,
-0.008265803568065166,
-0.10539034754037857,
-0.02411443367600441,
-0.023669486865401268,
-0.00376880937255919,
-0.004044567700475454,
0.009253484196960926,
0.045564185827970505,
-0.061640698462724686,
-0.03978494554758072,
0.0011768740369006991,
0.03133346512913704,
0.0278339646756649,
-0.02932494878768921,
-0.0025310725905001163,
-0.02940969541668892,
-0.007803759537637234,
0.0029888665303587914,
0.07320626825094223,
-0.02416066825389862,
-0.0044675832614302635,
0.009494978934526443,
-0.008551249280571938,
0.021002504974603653,
0.009712033905088902,
0.018210867419838905,
0.0313248448073864,
0.023230113089084625,
0.012034785002470016,
-0.06409478187561035,
0.015245136804878712,
-0.04454580321907997,
-0.009443901479244232,
-0.04029225558042526,
-0.004758066963404417,
0.019732994958758354,
0.044395994395017624,
0.006237470079213381,
-0.014319167472422123,
0.0016001388430595398,
-0.008939285762608051,
-0.027694296091794968,
-0.005805344320833683,
-0.05496872216463089,
0.014243743382394314,
0.019381752237677574,
0.02721162512898445,
-0.0075315614230930805,
-0.086903877556324,
0.026682468131184578,
0.009650035761296749,
-0.004765832796692848,
-0.048009272664785385,
-0.035693634301424026,
-0.03437887504696846,
-0.02888188511133194,
0.037904176861047745,
0.018913306295871735,
-0.037434183061122894,
0.03696431219577789,
0.033701322972774506,
0.01629622094333172,
0.05239840969443321,
-0.04231436178088188,
-0.021068839356303215,
-0.0288708359003067,
0.027963193133473396,
0.03579668700695038,
-0.0028052404522895813,
-0.006957258563488722,
0.018422704190015793,
0.031089557334780693,
0.035543836653232574,
0.03700042515993118,
0.024185607209801674,
-0.038584090769290924,
0.01678451895713806,
0.011126868426799774,
0.02103254571557045,
-0.0259934701025486,
0.010235735215246677,
-0.06048932671546936,
-0.016691604629158974,
0.025124099105596542,
0.06094726175069809,
0.014915237203240395,
-0.042502835392951965,
-0.03813739866018295,
0.018457990139722824,
-0.05606197938323021,
0.009216190315783024,
-0.02704690583050251,
0.015600819140672684,
0.05424632504582405,
-0.002515994245186448,
0.03913935273885727,
0.019600482657551765,
-0.010414307937026024,
-0.023504815995693207,
0.027952468022704124,
-0.04617994651198387,
0.03237926587462425,
0.006817711982876062,
-0.009517296217381954,
0.020556336268782616,
0.04426288232207298,
0.003949769772589207,
-0.0032188051845878363,
0.010043606162071228,
-0.00018391020421404392,
-0.0023444220423698425,
0.03505609929561615,
0.031594567000865936,
0.04555562511086464,
-0.01167614758014679,
-0.026004938408732414,
-0.018112773075699806,
-0.03193266689777374,
-0.00266859563998878,
-0.0181464571505785,
-0.023397933691740036,
-0.021167736500501633,
-0.010040296241641045,
-0.08775114268064499,
0.034889429807662964,
0.030629584565758705,
-0.0012837628601118922,
-0.012577155604958534,
0.02639213390648365,
-0.02416331134736538,
-0.011573459953069687,
0.020896559581160545,
0.040633052587509155,
-0.05505339801311493,
0.02023519203066826,
-0.01076799351722002,
0.0015681786462664604,
-0.004986884072422981,
0.020183557644486427,
-0.05153260752558708,
-0.0211282130330801,
0.0029927543364465237,
-0.004057437181472778,
-0.012666920199990273,
-0.020338544622063637,
-0.015425276011228561,
0.01627098023891449,
-0.01868177205324173,
0.04147617146372795,
0.02475111372768879,
-0.008727069944143295,
0.01051290426403284,
-0.012685044668614864,
0.031155630946159363,
-0.0007952972664497793,
0.023409929126501083,
0.02387935295701027,
0.00946008414030075,
0.004937460646033287,
-0.02814331278204918,
0.02604159526526928,
0.006136581301689148,
-0.017370086163282394,
-0.031335391104221344,
-0.04095480218529701,
0.006551154423505068,
-0.035280998796224594,
0.038704995065927505,
-0.006094143260270357,
-0.006498702801764011,
-0.04402140527963638,
0.013868873938918114,
-0.024092981591820717,
0.04347614943981171,
0.006762654520571232,
-0.01905963197350502,
0.005589690059423447,
0.0497417226433754,
-0.01940474845468998,
0.034056149423122406,
-0.025906167924404144,
-0.028627224266529083,
0.029320813715457916,
-0.06179047003388405,
-0.027510516345500946,
0.017303775995969772,
-0.03718481585383415,
0.007734771352261305,
0.015224074944853783,
-0.00806958694010973,
-0.03558114543557167,
0.047948453575372696,
0.029998665675520897,
0.0695200115442276,
0.07756353169679642,
0.02099541202187538,
0.018637482076883316,
-0.017653558403253555,
-0.018933795392513275,
-0.10065226256847382,
0.0019020561594516039,
0.05204055830836296,
0.02224564552307129,
-0.003956309054046869,
-0.0005629127845168114,
-0.008272669278085232,
0.02485976554453373,
-0.05812684819102287,
-0.03745858743786812,
0.04154418408870697,
0.004768058191984892,
0.005181870888918638,
0.03998001664876938,
-0.057899609208106995,
0.03640346601605415,
0.05952080339193344,
-0.041078146547079086,
-0.019342707470059395,
-0.006012020632624626,
0.05119866132736206,
-0.021124472841620445,
0.03302697464823723,
-0.03551875054836273,
0.013592381030321121,
0.06725941598415375,
0.03355064615607262,
0.03054080717265606,
0.023819196969270706,
-0.02762298658490181,
0.03979763388633728,
0.029416430741548538,
-0.031189925968647003,
-0.037006210535764694,
0.014287833124399185,
-0.00815637782216072,
-0.05231378227472305,
0.03722909465432167,
0.01105259358882904,
-0.001242456492036581,
-0.05133438855409622,
0.07223453372716904,
0.011144295334815979,
-0.034024909138679504,
-0.04570227861404419,
0.008696863427758217,
-0.033081769943237305,
-0.02330249734222889,
-0.015242061577737331,
-0.0030211620032787323,
-0.04359465837478638,
0.06797744333744049,
-0.0025875880382955074,
0.0285356305539608,
0.07940077036619186,
0.0036857356317341328,
0.00008316335151903331,
0.024291163310408592,
0.08336089551448822,
0.08204842358827591,
0.018412219360470772,
0.007688736543059349,
0.053839027881622314,
-0.014174331910908222,
-0.019304262474179268,
0.00864603091031313,
-0.05045326426625252,
-0.019636468961834908,
-0.02381121553480625,
0.02661287412047386,
0.07596420496702194,
-0.0319027379155159,
0.05522289499640465,
-0.042518772184848785,
0.0065688868053257465,
-0.02327718399465084,
-0.028761664405465126,
0.04273871332406998,
0.06210204213857651,
0.016169952228665352,
0.05132235959172249,
-0.024885399267077446,
-0.03914371505379677,
0.020474078133702278,
-0.007800285704433918,
-0.006455611903220415,
0.028563475236296654,
-0.03357997536659241,
0.010962458327412605,
0.020811578258872032,
0.024497544392943382,
0.07220767438411713,
0.012135356664657593,
-0.009115694090723991,
0.013843950815498829,
-0.0075875259935855865,
-0.018086759373545647,
0.005685692187398672,
-0.02007870562374592,
0.017240559682250023,
-0.01392492838203907,
-0.04254452884197235,
-0.03439141437411308,
-0.029227979481220245,
-0.06069469824433327,
0.014344519935548306,
0.014718708582222462,
0.0031132642179727554,
-0.005169644486159086,
-0.016862567514181137,
-0.026620903983712196,
-0.028120214119553566,
-0.07380958646535873,
-0.03783143311738968,
-0.0747772753238678,
0.015163665637373924,
0.046849679201841354,
-0.002506405347958207,
-0.022529520094394684,
0.007352776825428009,
-0.010600443929433823,
-0.004025889560580254,
-0.006834873463958502,
-0.03734536096453667,
-0.044504210352897644,
0.028700681403279305,
-0.009079596027731895,
0.01480872556567192,
0.032431211322546005,
0.07034283131361008,
-0.02174706943333149,
0.0020504482090473175,
-0.06348276883363724,
0.006814303807914257,
0.0526948943734169,
0.009065093472599983,
0.00010583482799120247,
-0.05408265069127083,
0.0019899548497051,
0.022092290222644806,
-0.0248190239071846,
-0.08166380971670151,
0.030104603618383408,
0.03208490088582039,
0.03302890434861183,
0.035088278353214264,
-0.043442267924547195,
-0.008425402455031872,
-0.020915236324071884,
-0.0012813596986234188,
0.0016410985263064504,
0.020928913727402687,
0.035923995077610016,
-0.013524259440600872,
0.05334834009408951,
0.03629468008875847,
-0.04063127189874649,
-0.015851395204663277,
-0.016463110223412514,
-0.0112305898219347,
-0.00717243691906333,
-0.06417211145162582,
-0.03327338397502899,
-0.06633643060922623,
-0.08873259276151657,
-0.03109118528664112,
0.012043232098221779,
-0.02395220845937729,
-0.03533792123198509,
0.04482823982834816,
0.009835179895162582,
-0.02105991169810295,
0.02482418902218342,
-0.06554684787988663,
-0.004630637355148792,
-0.04248840734362602,
-0.0343862846493721,
-0.013460300862789154,
0.024931402876973152,
-0.036705903708934784,
-0.0012356559745967388,
0.006105410400778055,
-0.031601015478372574,
-0.024543598294258118,
-0.013810994103550911,
0.0266102384775877,
0.018806105479598045,
0.03406299278140068,
-0.005466102156788111
] | [
-0.10352890938520432,
-0.008274017833173275,
-0.031317807734012604,
-0.00406898558139801,
0.04637034237384796,
-0.07849932461977005,
-0.007878389209508896,
-0.007690107449889183,
0.024153288453817368,
-0.005367305129766464,
-0.002005194313824177,
-0.0750540941953659,
0.015035438351333141,
-0.01095886342227459,
0.06058210879564285,
-0.04902679845690727,
-0.027946598827838898,
-0.07649721205234528,
-0.03221521154046059,
0.05088944733142853,
0.004122755955904722,
-0.014884823001921177,
-0.04876280203461647,
-0.007047356106340885,
0.03348000347614288,
0.07221068441867828,
0.017216194421052933,
-0.018122391775250435,
-0.026529183611273766,
-0.2140856683254242,
0.01612430438399315,
-0.024146271869540215,
0.01236939150840044,
-0.044777099043130875,
0.006158697418868542,
-0.0024862345308065414,
0.03985787555575371,
-0.018427006900310516,
0.023426935076713562,
0.07214630395174026,
0.0362653024494648,
0.018589364364743233,
-0.06928898394107819,
-0.009184821508824825,
0.010717537254095078,
-0.007027805782854557,
-0.012187235057353973,
0.008016112260520458,
0.001587608945555985,
0.05335924029350281,
-0.03000669926404953,
0.011989791877567768,
0.005329585634171963,
-0.014375515282154083,
0.0010489178821444511,
0.003671045880764723,
0.041956331580877304,
0.07655424624681473,
0.06317029893398285,
-0.0038360455073416233,
-0.014528771862387657,
-0.01765485294163227,
-0.16149543225765228,
0.10111476480960846,
0.007623730693012476,
0.016501180827617645,
-0.024421842768788338,
-0.049074310809373856,
-0.0322113074362278,
0.06315310299396515,
-0.015788255259394646,
-0.009241288527846336,
-0.04826293885707855,
0.051281627267599106,
-0.011142047122120857,
-0.007961402647197247,
-0.00836804136633873,
0.012092401273548603,
0.05139995366334915,
-0.008557798340916634,
-0.06770066916942596,
-0.01079537346959114,
0.02201918698847294,
-0.036732982844114304,
0.014975694008171558,
0.028385719284415245,
-0.0022275419905781746,
0.05996301397681236,
0.0004860451153945178,
0.021239643916487694,
0.04614356532692909,
-0.001052776351571083,
-0.01393234170973301,
0.03896738961338997,
-0.06825121492147446,
-0.012697740457952023,
0.016925597563385963,
0.03856669366359711,
-0.03214230760931969,
0.37609976530075073,
-0.004173771012574434,
0.015424220822751522,
0.015677891671657562,
0.04965907335281372,
0.0014312758576124907,
-0.0029773612041026354,
0.0009294105693697929,
-0.06431066989898682,
0.021998228505253792,
-0.03672005608677864,
0.0019080546917393804,
-0.03783382102847099,
0.07629312574863434,
-0.09845631569623947,
-0.004734371788799763,
0.06742677837610245,
0.06232127547264099,
0.021110665053129196,
-0.005434180609881878,
0.048570673912763596,
-0.0010129176080226898,
-0.007956386543810368,
0.019748162478208542,
-0.0019343238091096282,
0.016382470726966858,
0.05386819690465927,
0.04362453892827034,
0.04222770035266876,
-0.014932051301002502,
0.000587154645472765,
0.058850325644016266,
-0.03627397119998932,
-0.0630367323756218,
0.015118147246539593,
0.027443336322903633,
0.026136020198464394,
0.017648817971348763,
-0.0127307940274477,
0.0278721135109663,
0.0255410335958004,
-0.051055118441581726,
-0.08767546713352203,
0.06330164521932602,
-0.006466744001954794,
-0.015250843949615955,
0.15576176345348358,
0.025944579392671585,
-0.022886525839567184,
-0.024176934733986855,
-0.03315922990441322,
-0.05234344303607941,
0.022193804383277893,
0.0008784066303633153,
-0.07380695641040802,
0.002333930693566799,
0.03837168961763382,
0.09783964604139328,
0.020325252786278725,
-0.0511661171913147,
-0.04448694735765457,
-0.02411521039903164,
-0.04344573989510536,
-0.028943980112671852,
0.03771829977631569,
0.045919276773929596,
-0.11434527486562729,
-0.0008602077141404152,
0.03682408109307289,
0.007863127626478672,
-0.08057322353124619,
0.0379301942884922,
0.03629515692591667,
-0.0414840430021286,
-0.06019207835197449,
0.084163136780262,
-0.046389445662498474,
0.0036007575690746307,
0.020929371938109398,
0.09071491658687592,
0.019783886149525642,
-0.018295135349035263,
0.04529458284378052,
-0.018084470182657242,
0.002903545508161187,
-0.05040443316102028,
-0.10502853989601135,
-0.02091102860867977,
0.01074974238872528,
-0.024086276069283485,
-0.03386302664875984,
0.002731920685619116,
-0.07573521137237549,
-0.062453653663396835,
0.08196636289358139,
-0.0384322926402092,
-0.067034050822258,
-0.003962981514632702,
0.021889206022024155,
-0.001440132036805153,
-0.04777102917432785,
0.012739586643874645,
0.005787080619484186,
-0.012719720602035522,
0.0240813959389925,
-0.01025974191725254,
0.05879655480384827,
0.01932956837117672,
-0.03217935189604759,
0.07062985002994537,
0.019965222105383873,
-0.024599803611636162,
-0.029532747343182564,
-0.011228070594370365,
-0.018764788284897804,
0.0076455227099359035,
-0.036712050437927246,
-0.025132501497864723,
-0.006357115693390369,
-0.00963655672967434,
0.047508031129837036,
-0.02195071242749691,
-0.04777969792485237,
-0.0029515884816646576,
-0.3347237706184387,
-0.01962732896208763,
-0.018903672695159912,
-0.017966894432902336,
0.050547532737255096,
-0.04230165481567383,
-0.011086366139352322,
-0.0335196815431118,
0.03086143173277378,
-0.0012028432684019208,
0.08775395900011063,
0.020474499091506004,
-0.013469956815242767,
-0.08963092416524887,
-0.00043261199607513845,
0.05326606705784798,
-0.03555797040462494,
-0.0022681541740894318,
-0.03465549275279045,
0.014000424183905125,
-0.011670869775116444,
-0.02415323816239834,
-0.017289526760578156,
-0.03893190622329712,
-0.011328284628689289,
-0.023912321776151657,
0.1144670620560646,
-0.021155035123229027,
0.05846815183758736,
-0.07821973413228989,
0.058201439678668976,
0.012650170363485813,
-0.02849520742893219,
-0.0329151414334774,
-0.011896300129592419,
-0.034578610211610794,
0.02431720867753029,
0.03219667822122574,
-0.00005400661757448688,
-0.027447601780295372,
-0.0492883026599884,
0.029492251574993134,
0.0006092814728617668,
-0.009507473558187485,
-0.05633964389562607,
0.07322864979505539,
0.008083968423306942,
-0.02208365872502327,
-0.014177436009049416,
0.03375750780105591,
-0.01922045834362507,
0.014190305955708027,
0.002991393208503723,
-0.017926957458257675,
0.0037904034834355116,
-0.017106518149375916,
-0.10027412325143814,
-0.018385346978902817,
-0.02616388536989689,
0.008144951425492764,
-0.013121643103659153,
0.02318342588841915,
0.04896990954875946,
-0.03070208802819252,
-0.018364137038588524,
0.021961726248264313,
0.029418306425213814,
-0.03144039586186409,
0.01993606425821781,
-0.02916024997830391,
0.005833910312503576,
0.08174112439155579,
-0.0546482689678669,
-0.006671023555099964,
0.020443664863705635,
-0.004291514866054058,
0.04052615165710449,
0.045874111354351044,
0.022629059851169586,
0.031736671924591064,
0.03139901161193848,
-0.009021156467497349,
0.033741991966962814,
0.01281370222568512,
0.0031929814722388983,
0.016824549064040184,
0.01582430489361286,
0.004110429435968399,
0.042135223746299744,
-0.008776964619755745,
-0.04050397872924805,
0.005132867023348808,
-0.0023713086266070604,
-0.029079437255859375,
0.04158611595630646,
0.01710834726691246,
-0.25668859481811523,
0.06523603945970535,
0.03904798626899719,
0.05377870798110962,
0.02462800405919552,
-0.007877458818256855,
-0.03029559925198555,
-0.0038464348763227463,
-0.017200076952576637,
0.003555236617103219,
-0.000983638921752572,
0.057677049189805984,
-0.0025673070922493935,
0.008738737553358078,
0.024390406906604767,
0.01894857920706272,
0.039175454527139664,
-0.010069234296679497,
-0.005942412186414003,
0.012510623782873154,
0.04214581474661827,
-0.02321167103946209,
0.13574613630771637,
0.018986426293849945,
0.02806837670505047,
0.03075312450528145,
-0.014399114064872265,
0.018382418900728226,
0.06785399466753006,
0.006643161177635193,
-0.020357154309749603,
0.018844788894057274,
0.02490048110485077,
0.01677606627345085,
0.02662746235728264,
-0.030870692804455757,
-0.026142364367842674,
0.06624308973550797,
0.021687369793653488,
-0.00855398178100586,
-0.004110633861273527,
0.0011507651070132852,
-0.03798965364694595,
0.01882903464138508,
0.10453825443983078,
-0.009538709186017513,
-0.03444228321313858,
-0.046820905059576035,
-0.047940514981746674,
0.010531654581427574,
-0.023098399862647057,
-0.051201771944761276,
-0.0019050237024202943,
0.010762469843029976,
0.005856923293322325,
0.09800314158201218,
0.017531849443912506,
-0.0058037294074893,
0.030881835147738457,
0.014255555346608162,
-0.022340936586260796,
-0.04686314985156059,
0.11272107064723969,
-0.05318529158830643,
0.02165396325290203
] | [
-0.00397424167022109,
0.04129495099186897,
0.013165832497179508,
0.029968366026878357,
-0.034875623881816864,
-0.06040326878428459,
-0.04902089387178421,
0.02442879043519497,
-0.007638310082256794,
-0.003954491578042507,
-0.025008302181959152,
-0.007401366252452135,
-0.005021049175411463,
-0.007312621455639601,
-0.0072424705140292645,
-0.04262525960803032,
0.024084435775876045,
0.014460821636021137,
0.03497767448425293,
-0.016675177961587906,
-0.01038365624845028,
0.04370681941509247,
0.030232520774006844,
0.002581264590844512,
-0.015190805308520794,
0.010683147236704826,
-0.01580687053501606,
0.01520264707505703,
0.012581412680447102,
-0.11841560900211334,
-0.015090960077941418,
-0.00637893145903945,
-0.018309032544493675,
-0.022261174395680428,
-0.0005212551332078874,
0.020484168082475662,
0.03933143615722656,
0.0012039302382618189,
-0.01604221947491169,
-0.004825627896934748,
0.04090004786849022,
-0.030463486909866333,
-0.011891874484717846,
0.024955829605460167,
-0.020478706806898117,
-0.002281640423461795,
0.009793651290237904,
-0.020412269979715347,
-0.016046732664108276,
0.01875912770628929,
-0.04078426584601402,
0.012341518886387348,
-0.030159341171383858,
0.0045004007406532764,
0.0037880544550716877,
0.06456129997968674,
-0.009955409914255142,
0.008413145318627357,
-0.007204496301710606,
-0.03673414885997772,
-0.025453759357333183,
0.027203252539038658,
-0.07184164971113205,
-0.019552642479538918,
0.015384482219815254,
-0.01952095702290535,
0.008459525182843208,
0.0015759669477120042,
-0.0007920993375591934,
-0.015786470845341682,
-0.035472508519887924,
0.009992520324885845,
-0.03684893250465393,
0.003543347120285034,
0.009920219890773296,
0.011343861930072308,
0.02843533642590046,
-0.0404728464782238,
0.007041702512651682,
-0.04090177267789841,
-0.009089816361665726,
0.0008396326447837055,
-0.0017110303742811084,
0.004370404407382011,
0.0011885699350386858,
-0.03346167877316475,
0.017855675891041756,
0.04942021146416664,
0.010246846824884415,
-0.046213846653699875,
-0.013678338378667831,
0.010390810668468475,
-0.008889572694897652,
-0.002194114262238145,
-0.06260969489812851,
-0.014213629066944122,
0.008416962809860706,
0.021396275609731674,
0.030524522066116333,
0.8475729823112488,
0.017891794443130493,
0.0017779163317754865,
-0.016984393820166588,
0.015191241167485714,
0.01578153856098652,
0.006889644544571638,
-0.014061519876122475,
-0.013838675804436207,
0.014542235992848873,
-0.01199355348944664,
0.03051314875483513,
-0.0001578328083269298,
0.006578146945685148,
-0.040843792259693146,
0.043764833360910416,
0.06455538421869278,
-0.0068898508325219154,
0.017751002684235573,
0.006652839947491884,
0.005670320708304644,
0.007359645329415798,
-0.015215779654681683,
-0.041484441608190536,
-0.01235207263380289,
0.029793821275234222,
-0.15586049854755402,
0.01860308088362217,
-6.786601289089302e-33,
-0.010014809668064117,
-0.05107580125331879,
0.04600788280367851,
-0.012554830871522427,
0.018798548728227615,
0.06046143174171448,
-0.006423572544008493,
0.011113864369690418,
0.03796328976750374,
-0.02176111936569214,
-0.006170305423438549,
-0.021381765604019165,
0.003175188787281513,
-0.05818309262394905,
0.0252037663012743,
-0.031560108065605164,
0.006743553560227156,
0.03163716197013855,
-0.000535688188392669,
0.052591029554605484,
0.0073755644261837006,
0.008133434690535069,
-0.024147802963852882,
0.02169054187834263,
0.029947618022561073,
0.008242757990956306,
-0.008528887294232845,
-0.023076828569173813,
0.005623012315481901,
-0.04364989697933197,
-0.021188819780945778,
0.009021438658237457,
-0.04192832112312317,
-0.005916806403547525,
-0.011588712222874165,
-0.05582524836063385,
-0.03387439250946045,
0.0030346442945301533,
-0.025226878002285957,
-0.07879845052957535,
-0.06430406123399734,
0.010614070110023022,
0.002402291866019368,
-0.036006100475788116,
-0.05215602368116379,
-0.019696762785315514,
-0.0018139895983040333,
0.013102843426167965,
0.03184710443019867,
0.03013865277171135,
0.0455748476088047,
-0.0035334089770913124,
-0.0022548832930624485,
-0.0072307102382183075,
0.0023960473481565714,
0.025229644030332565,
0.04284997656941414,
0.02434735745191574,
0.020201822742819786,
0.00863517727702856,
0.0033550511579960585,
0.014988670125603676,
0.009714735671877861,
0.010197474621236324,
-0.011358985677361488,
-0.002800067188218236,
0.0016921466449275613,
0.038231026381254196,
0.022620873525738716,
0.06444169580936432,
-0.04387705773115158,
0.0010041972855105996,
-0.018548157066106796,
-0.030177036300301552,
0.017421752214431763,
-0.021682700142264366,
0.029276128858327866,
-0.012856910936534405,
0.0007260126294568181,
0.029080601409077644,
0.01819487474858761,
-0.033562108874320984,
0.006149503402411938,
-0.03836318850517273,
-0.0032498470973223448,
-0.018668433651328087,
-0.0027006000746041536,
0.034816015511751175,
-0.030328432098031044,
0.011141394264996052,
0.013386886566877365,
0.0004090571019332856,
0.015075435861945152,
0.0010319541906937957,
-0.027122920379042625,
7.216490593444552e-33,
-0.0020402721129357815,
-0.012208054773509502,
-0.021942907944321632,
0.018257634714245796,
0.0037534593138843775,
-0.02264946699142456,
0.004737759009003639,
0.04002327099442482,
-0.03133881837129593,
0.051476433873176575,
0.02432265505194664,
0.002910025417804718,
-0.007059062831103802,
0.00024623682838864625,
0.041605353355407715,
0.01687486656010151,
0.0340396985411644,
-0.0054185157641768456,
0.03355736285448074,
0.018725523725152016,
0.00047258546692319214,
-0.0024697023909538984,
-0.003562798723578453,
-0.01908331736922264,
0.01853637583553791,
0.02201358787715435,
0.020283576101064682,
0.008413264527916908,
-0.01739337109029293,
-0.002739902585744858,
-0.006520909257233143,
-0.014386181719601154,
-0.012643012218177319,
0.003781856968998909,
-0.012256016954779625,
0.0000555604237888474,
0.025252217426896095,
-0.03263245150446892,
-0.018142452463507652,
0.008317525498569012,
0.014081364497542381,
0.01583244651556015,
-0.013157304376363754,
0.052853282541036606,
0.0017070454778149724,
0.04407552629709244,
0.01617988385260105,
0.005948315840214491,
-0.022317657247185707,
0.01581830345094204,
0.004448119085282087,
0.005182330030947924,
0.015433337539434433,
0.04757854342460632,
0.006611459888517857,
-0.01903681270778179,
-0.0011195760453119874,
-0.013852330856025219,
-0.015059025958180428,
-0.01356235146522522,
-0.0028919146861881018,
0.005509587004780769,
-0.010984278284013271,
0.02072455734014511,
-0.021124273538589478,
-0.010084785521030426,
-0.037583548575639725,
0.0072950320318341255,
-0.04043983295559883,
0.03660789132118225,
0.009179536253213882,
0.018526645377278328,
-0.02969975396990776,
0.022510703653097153,
-0.019653836265206337,
-0.009134876541793346,
-0.031676582992076874,
0.008020129054784775,
-0.026581615209579468,
0.021706026047468185,
0.027903757989406586,
-0.0007331458618864417,
0.019824260845780373,
0.021435335278511047,
-0.027504976838827133,
-0.005413397680968046,
-0.044502854347229004,
0.017482146620750427,
0.01297376211732626,
0.00031774959643371403,
0.000004460899162950227,
0.0021293857134878635,
-0.021058248355984688,
0.0457112193107605,
0.014849488623440266,
-1.2818915706702683e-8,
-0.0057120188139379025,
0.01489246729761362,
0.00918576680123806,
0.018495749682188034,
0.006113870535045862,
0.010100273415446281,
-0.043220825493335724,
0.012067819014191628,
0.002950944472104311,
0.0428071990609169,
0.08658667653799057,
-0.029205236583948135,
0.02604234218597412,
0.01987357996404171,
0.008240878582000732,
0.003029540181159973,
-0.012528302147984505,
-0.025571253150701523,
0.02748085744678974,
-0.013900311663746834,
0.010280907154083252,
0.04295922815799713,
-0.007613329216837883,
0.006555444560945034,
0.002328872215002775,
0.028850777074694633,
0.029345013201236725,
-0.038369882851839066,
0.02191576175391674,
-0.0410255528986454,
-0.010530619882047176,
-0.03559913858771324,
-0.028050648048520088,
0.010571204125881195,
-0.03953004628419876,
-0.06096968427300453,
-0.012570503167808056,
0.020140819251537323,
-0.0001474913296988234,
0.032679423689842224,
-0.018475331366062164,
0.010081124491989613,
-0.05123108997941017,
-0.009083276614546776,
-0.0029768948443233967,
-0.01993539184331894,
-0.02445315383374691,
-0.003879042575135827,
-0.0019222329137846828,
-0.02527627721428871,
0.01245049387216568,
0.015756379812955856,
0.028410695493221283,
-0.017648516222834587,
0.04531407728791237,
0.021003175526857376,
-0.02451126091182232,
-0.0005779428756795824,
-0.03619728982448578,
0.018756436184048653,
0.005896516144275665,
0.004549544770270586,
-0.0503988042473793,
-0.017512310296297073
] | python-difference-between-two-datetimes-in-milliseconds | https://markhneedham.com/blog/2015/07/28/python-difference-between-two-datetimes-in-milliseconds |
false | 2015-07-17 23:34:52 | R: Blog post frequency anomaly detection | [
"r-2"
] | [
"R"
] | I came across Twitter's https://github.com/twitter/AnomalyDetection[anomaly detection library] last year but haven't yet had a reason to take it for a test run so having got my blog post frequency data into shape I thought it'd be fun to run it through the algorithm.
I wanted to see if it would detect any periods of time when the number of posts differed significantly - I don't really have an action I'm going to take based on the results, it's curiosity more than anything else!
First we need to get the library installed. It's not on CRAN so we need to use devtools to install it from the github repository: ~~~ ~~~r install.packages("devtools") devtools::install_github("twitter/AnomalyDetection") library(AnomalyDetection) ~~~
The expected data format is two columns - one containing a time stamp and the other a count. e.g. using the 'raw_data' data frame that is in scope when you add the library: ~~~r > library(dplyr) > raw_data %>% head() timestamp count 1 1980-09-25 14:01:00 182.478 2 1980-09-25 14:02:00 176.231 3 1980-09-25 14:03:00 183.917 4 1980-09-25 14:04:00 177.798 5 1980-09-25 14:05:00 165.469 6 1980-09-25 14:06:00 181.878 ~~~
In our case the timestamps will be the start date of a week and the count the number of posts in that week. But first let's get some practice calling the anomaly function using the canned data: ~~~r res = AnomalyDetectionTs(raw_data, max_anoms=0.02, direction='both', plot=TRUE) res$plot ~~~
image::{{<siteurl>}}/uploads/2015/07/2015-07-18_00-09-22.png[2015 07 18 00 09 22,400]
From this visualisation we learn that we should expect both high and low outliers to be identified. Let's give it a try with the blog post publication data.
We need to get the data into shape so we'll start by getting a count of the number of blog posts by (week, year) pair: ~~~r > df %>% sample_n(5) title date 1425 Coding: Copy/Paste then refactor 2009-10-31 07:54:31 783 Neo4j 2.0.0-M06 \-> 2.0.0-RC1: Working with path expressions 2013-11-23 10:30:41 960 R: Removing for loops 2015-04-18 23:53:20 966 R: dplyr - Error in (list: invalid subscript type 'double' 2015-04-27 22:34:43 343 Parsing XML from the unix terminal/shell 2011-09-03 23:42:11 > byWeek = df %>% mutate(year = year(date), week = week(date)) %>% group_by(week, year) %>% summarise(n = n()) %>% ungroup() %>% arrange(desc(n)) > byWeek %>% sample_n(5) Source: local data frame [5 x 3] week year n 1 44 2009 6 2 37 2011 4 3 39 2012 3 4 7 2013 4 5 6 2010 6 ~~~
Great. The next step is to translate this data frame into one containing a date representing the start of that week and the number of posts: ~~~r > data = byWeek %>% mutate(start_of_week = calculate_start_of_week(week, year)) %>% filter(start_of_week > ymd("2008-07-01")) %>% select(start_of_week, n) > data %>% sample_n(5) Source: local data frame [5 x 2] start_of_week n 1 2010-09-10 4 2 2013-04-09 4 3 2010-04-30 6 4 2012-03-11 3 5 2014-12-03 3 ~~~
We're now ready to plug it into the anomaly detection function: ~~~R res = AnomalyDetectionTs(data, max_anoms=0.02, direction='both', plot=TRUE) res$plot ~~~
image::{{<siteurl>}}/uploads/2015/07/2015-07-18_00-24-20.png[2015 07 18 00 24 20,500]
Interestingly I don't seem to have any low end anomalies - there were a couple of really high frequency weeks when I first started writing and I think one of the other weeks contains a New Year's Eve when I was particularly bored!
If we group by month instead only the very first month stands out as an outlier: ~~~r data = byMonth %>% mutate(start_of_month = ymd(paste(year, month, 1, sep="-"))) %>% filter(start_of_month > ymd("2008-07-01")) %>% select(start_of_month, n) res = AnomalyDetectionTs(data, max_anoms=0.02, direction='both', #longterm = TRUE, plot=TRUE) res$plot ~~~
image::{{<siteurl>}}/uploads/2015/07/2015-07-18_00-34-02.png[2015 07 18 00 34 02,500]
I'm not sure what else to do as far as anomaly detection goes but if you have any ideas please let me know! | null | null | [
0.03475996479392052,
-0.03174625709652901,
-0.006738241761922836,
0.015203149057924747,
0.07011785358190536,
0.012440591119229794,
0.03471159562468529,
0.026477867737412453,
-0.02449769526720047,
0.027307556942105293,
0.009556528180837631,
-0.011166165582835674,
-0.06075424700975418,
0.029822632670402527,
-0.03473140299320221,
0.07504855841398239,
0.07555282860994339,
-0.01649569533765316,
0.05235162749886513,
0.03283054009079933,
0.039551712572574615,
0.03331455588340759,
-0.026685193181037903,
0.010114680044353008,
0.007137548178434372,
-0.026743685826659203,
0.0350995771586895,
-0.003942228388041258,
-0.034829139709472656,
-0.008622229099273682,
0.038277655839920044,
0.000020683048205683008,
0.007827972061932087,
-0.03607875108718872,
0.010055291466414928,
0.024126768112182617,
-0.03706716373562813,
-0.0008434777264483273,
0.0053869555704295635,
0.0014565804740414023,
-0.06513869762420654,
-0.0005584588507190347,
-0.025542905554175377,
-0.002082721097394824,
-0.05928443372249603,
-0.0033610030077397823,
-0.052737101912498474,
0.04904700815677643,
0.012040278874337673,
0.02086922526359558,
-0.06345994025468826,
0.0437421016395092,
0.009375901892781258,
-0.053576380014419556,
0.0225661750882864,
0.04695001244544983,
0.008737313561141491,
-0.07468672841787338,
0.028931066393852234,
-0.03486175835132599,
0.031074145808815956,
-0.022278835996985435,
0.000822214933577925,
-0.013001637533307076,
-0.004035213962197304,
-0.041628893464803696,
-0.007472769822925329,
0.04231484979391098,
-0.005397208966314793,
-0.0030387684237211943,
-0.017187628895044327,
0.022169936448335648,
-0.04423481971025467,
-0.0036118628922849894,
-0.013608010485768318,
-0.031555984169244766,
-0.02635469287633896,
0.06777819991111755,
0.02104293555021286,
0.01845620572566986,
-0.010308332741260529,
-0.016870329156517982,
0.051291629672050476,
0.022151358425617218,
0.016797808930277824,
-0.031246773898601532,
-0.03827514871954918,
-0.013341139070689678,
-0.04482494294643402,
0.04922458156943321,
0.013881329447031021,
-0.05607186630368233,
0.0450640544295311,
0.0008343041990883648,
0.03705248236656189,
0.021289709955453873,
0.005163207184523344,
-0.010016343556344509,
-0.008852631784975529,
-0.040341202169656754,
-0.05609584599733353,
-0.001554876216687262,
0.016533631831407547,
0.03499726951122284,
-0.045067198574543,
-0.017230330035090446,
-0.018177855759859085,
-0.03753463551402092,
-0.007784133777022362,
0.013774596154689789,
-0.0284112598747015,
0.03358572721481323,
-0.013844003900885582,
-0.0055989790707826614,
-0.07057245820760727,
0.05766850337386131,
0.013181335292756557,
-0.041307300329208374,
-0.010208540596067905,
-0.00530092092230916,
0.03030032478272915,
0.03415464609861374,
-0.0012999450555071235,
0.0567626953125,
-0.006405803374946117,
0.053841691464185715,
-0.013323234394192696,
0.030564457178115845,
-0.006612356752157211,
-0.047589369118213654,
-0.016230735927820206,
0.06168296933174133,
-0.014339590445160866,
-0.0005137554253451526,
-0.011490827426314354,
-0.02370138093829155,
-0.013434474356472492,
-0.006808044388890266,
0.05466018617153168,
0.03947998210787773,
0.019720889627933502,
-0.024368826299905777,
8.566445899305108e-7,
-0.02297944203019142,
0.024297373369336128,
0.025638766586780548,
-0.010237861424684525,
-0.05252869427204132,
-0.05650623142719269,
0.0020711051765829325,
0.03047320991754532,
0.0040606227703392506,
0.04359864816069603,
-0.04818278178572655,
0.0431131049990654,
0.06149377301335335,
0.03380650654435158,
-0.0016140692168846726,
0.001646706135943532,
0.030624665319919586,
0.03887459263205528,
0.055894460529088974,
0.005533457733690739,
0.04274225980043411,
0.005546018946915865,
-0.06066602095961571,
0.03751416876912117,
0.055160101503133774,
-0.010522805154323578,
-0.014207759872078896,
-0.05285866558551788,
-0.0736234039068222,
0.065333291888237,
-0.008249465376138687,
0.02261233888566494,
0.04287547990679741,
0.056415632367134094,
0.014479744248092175,
0.02276844158768654,
0.02136899344623089,
-0.07508748024702072,
0.0682336688041687,
0.030879434198141098,
0.04987157881259918,
0.03111989051103592,
-0.0193721204996109,
0.09530193358659744,
-0.0014859238872304559,
0.035708509385585785,
0.019657164812088013,
-0.06409682333469391,
-0.07189234346151352,
0.0020076455548405647,
-0.00007317088602576405,
0.056560881435871124,
-0.03645073249936104,
0.0005936450907029212,
0.0621923953294754,
0.012891288846731186,
0.02574201114475727,
0.005707180593162775,
0.021936025470495224,
0.009827232919633389,
-0.05788233131170273,
-0.0513380765914917,
0.02890021912753582,
0.014495030976831913,
-0.03525353595614433,
-0.025937316939234734,
0.00427554827183485,
-0.04305436462163925,
0.029825134202837944,
0.017162567004561424,
-0.03607332706451416,
0.03574127331376076,
0.025082875043153763,
0.05903048813343048,
-0.016179915517568588,
0.040706831961870193,
-0.04651569947600365,
0.029178811237215996,
-0.0260773953050375,
-0.01807238906621933,
-0.03970395028591156,
-0.006780968047678471,
0.12846647202968597,
0.051609497517347336,
-0.024558043107390404,
-0.03436180204153061,
0.01980157569050789,
-0.0004965836997143924,
-0.017879392951726913,
0.01684429496526718,
-0.0038143829442560673,
-0.013946286402642727,
0.009711074642837048,
-0.02613644488155842,
-0.038279373198747635,
0.01055294368416071,
-0.027665207162499428,
0.030325090512633324,
0.09025091677904129,
-0.029694117605686188,
0.06236296147108078,
-0.016457322984933853,
-0.006270173937082291,
0.00998023059219122,
-0.006630929186940193,
-0.09135086834430695,
0.007850831374526024,
0.023150146007537842,
-0.00539765739813447,
0.03322611749172211,
-0.04410367086529732,
-0.02751130238175392,
-0.016030320897698402,
-0.04648381471633911,
0.028310466557741165,
0.039834290742874146,
0.06995975226163864,
0.011776869185268879,
0.008069939911365509,
-0.025162262842059135,
0.0034255043137818575,
-0.010520215146243572,
-0.03219953179359436,
-0.044590506702661514,
-0.02665218524634838,
0.0010109179420396686,
0.03416295349597931,
0.04207015037536621,
-0.027013981714844704,
0.003993233200162649,
0.025132549926638603,
0.030790720134973526,
-0.051261503249406815,
0.051679257303476334,
-0.01932048797607422,
-0.009885279461741447,
-0.01299804262816906,
-0.015852000564336777,
0.07830972224473953,
-0.03354598209261894,
-0.019553810358047485,
-0.0013815815327689052,
-0.07130226492881775,
0.0558939166367054,
-0.05221417546272278,
-0.016862714663147926,
0.03388386592268944,
-0.010777076706290245,
0.04487098008394241,
0.04858032613992691,
0.021971484646201134,
0.040458790957927704,
0.023305581882596016,
0.011138816364109516,
0.022372014820575714,
-0.0007752861711196601,
0.060173001140356064,
0.018208395689725876,
0.012454054318368435,
0.05589399114251137,
-0.015910891816020012,
-0.002808431861922145,
-0.05500618368387222,
0.014823068864643574,
-0.024848010390996933,
-0.2816632390022278,
0.03196410834789276,
-0.012415186502039433,
-0.05000300332903862,
-0.008801046758890152,
-0.017359422519803047,
0.03362402319908142,
-0.027135999873280525,
-0.00603337399661541,
-0.007124472875148058,
0.0164517592638731,
-0.04122689738869667,
-0.01493933517485857,
0.06885824352502823,
-0.0023438434582203627,
-0.014407454989850521,
0.015247726812958717,
-0.017405308783054352,
0.026592619717121124,
0.059866972267627716,
0.011428101919591427,
-0.02070535719394684,
0.01133209839463234,
0.038518164306879044,
0.021576860919594765,
0.06151052191853523,
-0.07497600466012955,
0.047075409442186356,
-0.03955213353037834,
-0.02733609452843666,
0.024571428075432777,
-0.026169124990701675,
-0.01288524642586708,
0.0038777312729507685,
0.00523429736495018,
-0.0034534302540123463,
0.006769114173948765,
0.02049921080470085,
0.025781942531466484,
0.018729211762547493,
-0.02022838406264782,
-0.01819722354412079,
-0.015298339538276196,
-0.026814231649041176,
0.06993670016527176,
0.02183036506175995,
-0.06209404021501541,
0.011965932324528694,
-0.013364074751734734,
0.058672286570072174,
-0.04652155935764313,
-0.024753369390964508,
-0.04253566637635231,
-0.010905761271715164,
-0.049796681851148605,
-0.026034802198410034,
-0.030815763399004936,
0.005944914184510708,
-0.03896085172891617,
-0.03944936394691467,
0.013721384108066559,
-0.02405487932264805,
0.013683032244443893,
-0.024525631219148636,
-0.03891265392303467,
-0.057664722204208374,
-0.05015484243631363,
-0.033187612891197205,
0.07895167917013168,
-0.0000908288056962192,
-0.023216867819428444,
0.004518295172601938,
-0.031883593648672104,
-0.10988853126764297,
0.014931951649487019,
-0.044315584003925323,
-0.020049983635544777,
0.01383285503834486,
0.014045056886970997,
0.043228842318058014,
-0.05952123925089836,
-0.04225533828139305,
0.03130257874727249,
0.005033930763602257,
0.014019438996911049,
-0.01148458942770958,
0.0030490802600979805,
-0.01885773055255413,
-0.04053664579987526,
-0.0033646714873611927,
0.051597464829683304,
-0.0541880838572979,
-0.023460552096366882,
0.009684069082140923,
-0.009869196452200413,
0.044852327555418015,
0.0420396625995636,
0.036344174295663834,
-0.004724315833300352,
0.06337205320596695,
0.03587498888373375,
-0.054307721555233,
-0.00948536116629839,
-0.07415350526571274,
-0.014816952869296074,
-0.010054533369839191,
-0.049115974456071854,
0.022430086508393288,
0.012661711312830448,
0.014466814696788788,
0.012989473529160023,
-0.04844600334763527,
0.026804083958268166,
-0.04994526877999306,
-0.009914553724229336,
0.0031420437153428793,
-0.0038247399497777224,
0.0070402249693870544,
0.007248071953654289,
-0.010430958122015,
-0.05049997195601463,
0.02313043363392353,
-0.02841104194521904,
-0.010400836355984211,
-0.025810295715928078,
-0.04123299568891525,
-0.03074514865875244,
-0.014452948234975338,
0.015109313651919365,
-0.0042015984654426575,
-0.010448516346514225,
0.014762740582227707,
0.049628689885139465,
-0.02274143137037754,
0.021148299798369408,
-0.022464625537395477,
-0.03140638396143913,
-0.036548011004924774,
0.02757072262465954,
0.019942041486501694,
-0.024238908663392067,
0.02922002039849758,
0.009424515068531036,
0.02078602835536003,
0.022599495947360992,
-0.011559192091226578,
0.03916269168257713,
0.00809227954596281,
-0.013326633721590042,
-0.035781629383563995,
-0.0026827887631952763,
-0.01215000357478857,
0.015406699851155281,
-0.022144675254821777,
-0.013766633346676826,
0.0029915699269622564,
0.05587015673518181,
-0.00592294055968523,
-0.026889143511652946,
-0.0558638833463192,
0.024544131010770798,
-0.0466817244887352,
0.014675705693662167,
-0.004676988814026117,
-0.01094234362244606,
0.031695812940597534,
-0.016125695779919624,
0.011310720816254616,
0.018783390522003174,
-0.054504405707120895,
-0.014684155583381653,
-0.0004298244311939925,
-0.019764291122555733,
0.016321374103426933,
-0.02579672262072563,
-0.004377150442451239,
0.028546076267957687,
-0.009125634096562862,
0.014362873509526253,
-0.0026308116503059864,
-0.02751503325998783,
0.00926472619175911,
0.0033526027109473944,
0.03821394592523575,
0.04907537251710892,
0.06579899787902832,
-0.037622638046741486,
-0.0349850133061409,
-0.025840023532509804,
0.017071524634957314,
-0.02338237129151821,
0.005360758863389492,
-0.0119162043556571,
0.009645740501582623,
-0.03309403732419014,
-0.09301792830228806,
0.015199869871139526,
0.034066341817379,
0.02226446382701397,
-0.0180517490953207,
-0.033119913190603256,
0.009523823857307434,
-0.025486398488283157,
0.05175037309527397,
0.09068422019481659,
-0.05560373514890671,
0.003490625647827983,
0.029582155868411064,
0.003611318999901414,
0.01208046916872263,
0.031069068238139153,
-0.06510501354932785,
-0.02464950457215309,
-0.002835142659023404,
0.018401501700282097,
-0.022427039220929146,
-0.047959260642528534,
-0.06152205541729927,
0.03789564594626427,
0.013295093551278114,
0.0039356364868581295,
0.0026634857058525085,
-0.0019872034899890423,
0.011171999387443066,
-0.0230745617300272,
-0.01381869800388813,
0.0015937688294798136,
-0.03546411916613579,
0.059333913028240204,
-0.018576258793473244,
0.031118035316467285,
-0.02544020302593708,
0.039484988898038864,
0.035382431000471115,
-0.04103235900402069,
-0.007988164201378822,
-0.051276855170726776,
-0.014762732200324535,
-0.022677015513181686,
0.0313933789730072,
-0.04113271087408066,
0.00021534234110731632,
-0.03772548958659172,
-0.014035427011549473,
-0.020081985741853714,
-0.01219014823436737,
0.003282433608546853,
-0.0081533407792449,
0.020205646753311157,
0.05100022628903389,
0.022563504055142403,
0.009971763007342815,
-0.029113421216607094,
0.0003917841240763664,
0.03881809487938881,
-0.05853747949004173,
-0.012390284799039364,
-0.023005791008472443,
-0.02957329712808132,
0.01084463857114315,
0.006826206110417843,
-0.021362517029047012,
-0.03705037012696266,
0.038853228092193604,
0.009187238290905952,
0.03528481349349022,
0.04945806786417961,
0.0030158162117004395,
0.018339339643716812,
-0.03309747204184532,
-0.026463335379958153,
-0.09984343498945236,
0.023351138457655907,
0.047813303768634796,
-0.034806303679943085,
0.00446928758174181,
0.008812027983367443,
-0.007814495824277401,
0.01582939922809601,
-0.060861073434352875,
-0.030134808272123337,
0.07066823542118073,
0.002885865280404687,
0.001090196194127202,
-0.0037916707806289196,
-0.04555851221084595,
0.025115439668297768,
0.059994664043188095,
-0.04904632642865181,
0.009625871665775776,
-0.004440659657120705,
0.05559978261590004,
-0.029079515486955643,
0.0006959378952160478,
-0.004055965691804886,
-0.029768865555524826,
0.0559561587870121,
0.035345133394002914,
0.009083393961191177,
0.04508422687649727,
-0.04988612234592438,
0.019205203279852867,
0.04634770750999451,
0.00495877442881465,
-0.003774206852540374,
0.02707967907190323,
-0.001747478498145938,
-0.028265736997127533,
0.029372818768024445,
-0.001624773140065372,
-0.020751727744936943,
-0.033259980380535126,
0.06807579845190048,
0.028924552723765373,
-0.04823967441916466,
-0.05479373410344124,
0.015959320589900017,
-0.018646322190761566,
-0.017331112176179886,
-0.018700117245316505,
-0.03963383659720421,
-0.04119599610567093,
0.059469446539878845,
-0.01636127196252346,
0.01670711115002632,
0.06774737685918808,
-0.0027069866191595793,
0.008684017695486546,
0.0244756992906332,
0.06970527023077011,
0.08947421610355377,
0.05910159647464752,
-0.024991752579808235,
0.057554904371500015,
-0.004134962800890207,
-0.046885620802640915,
0.0033662221394479275,
-0.02457539178431034,
-0.02370779775083065,
-0.026304876431822777,
0.0080056581646204,
0.07407329231500626,
-0.005765487905591726,
0.07651771605014801,
-0.029207516461610794,
0.005509020760655403,
0.014496059156954288,
0.006826935335993767,
0.02331220544874668,
0.05982714518904686,
-0.0229228213429451,
0.03508651256561279,
-0.004470267798751593,
0.002130977576598525,
0.026521429419517517,
-0.04366840794682503,
-0.00019987414998468012,
0.04215295612812042,
-0.0074660261161625385,
-0.005200240761041641,
0.00952090509235859,
0.026814531534910202,
0.062412869185209274,
-0.033764373511075974,
-0.0028249125462025404,
-0.00003339282193337567,
0.050275810062885284,
0.009405364282429218,
0.03577135503292084,
-0.007788846269249916,
0.014168617315590382,
-0.007786152884364128,
-0.04568738862872124,
0.0028792181983590126,
0.015360364690423012,
-0.011446367017924786,
0.036876432597637177,
-0.04452076181769371,
0.00830807164311409,
0.0328967422246933,
-0.051994360983371735,
0.008034714497625828,
-0.03657693415880203,
-0.0383264534175396,
-0.06703456491231918,
-0.0669441670179367,
-0.00695585273206234,
0.012156140990555286,
-0.0005789770511910319,
-0.013532896526157856,
-0.014327269978821278,
-0.00807427428662777,
-0.010093137621879578,
-0.005343322176486254,
-0.04405143857002258,
-0.03202442079782486,
0.022074725478887558,
0.011945809237658978,
-0.006013596896082163,
0.011621865443885326,
0.03860672935843468,
-0.00537802604958415,
-0.04347885772585869,
-0.03598754480481148,
0.039759259670972824,
0.030753379687666893,
0.0297404658049345,
0.0032908115535974503,
-0.07150369882583618,
-0.014915571548044682,
-0.008960973471403122,
-0.011173414066433907,
-0.08291520923376083,
0.03585369139909744,
0.012816167436540127,
-0.0046758768148720264,
0.047772135585546494,
-0.026357777416706085,
-0.022920789197087288,
-0.0028153550811111927,
-0.017299938946962357,
-0.017135506495833397,
0.025725992396473885,
0.028416799381375313,
-0.04390999674797058,
0.06841851025819778,
0.033160287886857986,
-0.010531940497457981,
-0.04775935411453247,
-0.03516092151403427,
-0.018020672723650932,
-0.022408848628401756,
-0.05030220374464989,
-0.04754935950040817,
-0.0759868398308754,
-0.11279512196779251,
-0.002265747170895338,
0.031322233378887177,
-0.026326986029744148,
-0.02668655477464199,
0.030425433069467545,
0.005393065046519041,
-0.028633883222937584,
0.03683808818459511,
-0.033285994082689285,
0.0189947672188282,
-0.028986237943172455,
-0.013688379898667336,
-0.014796155504882336,
0.029081175103783607,
-0.01182343065738678,
0.0360485203564167,
-0.006613573990762234,
-0.04119870811700821,
-0.014340831898152828,
-0.04113951325416565,
0.03554798290133476,
0.02710457146167755,
0.01749121956527233,
0.008539964444935322
] | [
-0.05828414112329483,
-0.03620196133852005,
-0.017775824293494225,
-0.002809738041833043,
0.09967648983001709,
-0.06144053116440773,
0.012075993232429028,
0.03546961024403572,
-0.0011792260920628905,
-0.029826156795024872,
0.02285837195813656,
-0.037769466638565063,
-0.009742281399667263,
-0.007977481000125408,
0.04211646690964699,
0.0008526431047357619,
0.008160702884197235,
-0.10537981241941452,
0.007772210519760847,
0.03807752579450607,
0.018869895488023758,
0.0027283907402306795,
-0.025631502270698547,
-0.04584424942731857,
0.012685611844062805,
0.021650832146406174,
0.019991325214505196,
-0.05525088682770729,
-0.024197131395339966,
-0.18930400907993317,
0.027533801272511482,
-0.028170816600322723,
0.05149896815419197,
-0.04096889868378639,
0.03353211283683777,
0.02556406334042549,
0.006203176453709602,
0.0029002311639487743,
0.021616479381918907,
0.060805294662714005,
0.006565936375409365,
0.005972906015813351,
-0.040953245013952255,
-0.04331962391734123,
0.030441181734204292,
0.00272020953707397,
-0.02188437432050705,
0.0007559233927167952,
-0.054903388023376465,
0.02199515514075756,
-0.04031207412481308,
-0.015519150532782078,
0.0020588370971381664,
0.022519364953041077,
-0.016480321064591408,
0.03591860830783844,
0.04897025600075722,
0.042328037321567535,
0.042756687849760056,
0.027798371389508247,
0.034111447632312775,
-0.0012967144139111042,
-0.11812321841716766,
0.0758652463555336,
0.016088664531707764,
0.05741430073976517,
-0.017691221088171005,
-0.035005975514650345,
0.010391022078692913,
0.05288541316986084,
0.008522785268723965,
0.0031751547940075397,
-0.043575040996074677,
0.04153004661202431,
0.0008572022779844701,
0.008338590152561665,
0.011083506979048252,
0.008296261541545391,
0.029796401038765907,
-0.046567536890506744,
-0.021437255665659904,
0.020007846876978874,
-0.011286646127700806,
-0.029841789975762367,
-0.014659872278571129,
-0.04271472245454788,
-0.023518787696957588,
0.06350485235452652,
0.006100676953792572,
0.026823697611689568,
0.05751573666930199,
-0.0031339647248387337,
0.046815790235996246,
0.0034928200766444206,
-0.07585546374320984,
-0.031249379739165306,
0.010480446740984917,
0.03845282271504402,
-0.0030990983359515667,
0.4291180670261383,
-0.022998111322522163,
-0.020788228139281273,
0.047028880566358566,
0.09387363493442535,
0.017404308542609215,
-0.004898933693766594,
-0.0058759767562150955,
-0.07791837304830551,
0.0028547458350658417,
-0.038803666830062866,
0.042824216187000275,
-0.026551395654678345,
0.06846150010824203,
-0.050702452659606934,
0.016920262947678566,
-0.028016572818160057,
0.036099422723054886,
0.03176644816994667,
0.020467165857553482,
0.011177673004567623,
-0.014868190512061119,
-0.0018676159670576453,
0.05762188136577606,
-0.031090022996068,
0.035442449152469635,
0.011219067499041557,
0.02960130013525486,
0.06490805745124817,
0.03419632092118263,
0.01522023044526577,
0.010240590199828148,
-0.013153360225260258,
-0.10515715926885605,
0.0099880900233984,
-0.0072828633710742,
0.018200285732746124,
0.013981753960251808,
-0.004050671122968197,
-0.014868330210447311,
0.02854183316230774,
-0.048381708562374115,
0.0016252306522801518,
0.05324295908212662,
-0.0032298797741532326,
-0.04972279816865921,
0.10813060402870178,
-0.010108644142746925,
-0.017101973295211792,
-0.003865988925099373,
-0.06327373534440994,
0.001824712846428156,
0.02268904633820057,
-0.02623852714896202,
-0.08038662374019623,
0.016183504834771156,
0.02664155885577202,
0.06029443070292473,
-0.0265860203653574,
-0.06329040229320526,
0.007420680485665798,
-0.02465306781232357,
-0.02585902437567711,
-0.023580079898238182,
0.02993049845099449,
0.02847965620458126,
-0.11515529453754425,
0.002509600017219782,
0.024674102663993835,
0.03353799879550934,
-0.06675193458795547,
0.036300186067819595,
0.016517484560608864,
0.015322488732635975,
-0.046189773827791214,
0.02913624979555607,
-0.02541964128613472,
-0.015036862343549728,
0.025343161076307297,
0.033413346856832504,
0.008984921500086784,
-0.004987858235836029,
-0.014400077983736992,
-0.03294544667005539,
0.03423197194933891,
-0.050400231033563614,
-0.08042698353528976,
-0.03423937037587166,
0.013066618703305721,
0.011065968312323093,
0.01131684985011816,
0.008293512277305126,
-0.06944837421178818,
-0.07563565671443939,
0.04399477690458298,
-0.025186432525515556,
-0.0186841432005167,
0.0328739657998085,
0.008085251785814762,
0.008246670477092266,
-0.049275219440460205,
-0.026880880817770958,
-0.008688164874911308,
-0.010260969400405884,
0.021083977073431015,
-0.06006370112299919,
0.08455872535705566,
0.05589516833424568,
-0.053656529635190964,
0.06605861335992813,
0.025428349152207375,
0.002574845915660262,
-0.031032811850309372,
-0.006108875852078199,
0.015322299674153328,
-0.0034267548471689224,
-0.010742587968707085,
0.004353322088718414,
-0.005072056781500578,
0.02024591527879238,
0.06261417269706726,
-0.030031023547053337,
-0.0172587800770998,
-0.0004867473617196083,
-0.36949798464775085,
-0.07586610317230225,
-0.0017131244530901313,
0.005378234665840864,
0.017782364040613174,
-0.06294474750757217,
-0.016883069649338722,
-0.04247308894991875,
0.00827164389193058,
0.03639376908540726,
0.07096727937459946,
0.02561980113387108,
-0.0005728242103941739,
-0.09749443829059601,
0.013893075287342072,
0.03657318279147148,
-0.044101864099502563,
-0.028951164335012436,
-0.03714518994092941,
-0.02299400605261326,
-0.030748004093766212,
-0.024122364819049835,
-0.016575777903199196,
-0.06741103529930115,
0.018741335719823837,
-0.024658232927322388,
0.08361876010894775,
0.04360301420092583,
0.04918903857469559,
-0.06189027428627014,
0.006901342887431383,
-0.047851212322711945,
0.02752169966697693,
-0.04831623658537865,
0.002222689799964428,
-0.02176552079617977,
0.0037999185733497143,
0.03461950272321701,
-0.03792249411344528,
-0.03510156273841858,
-0.08089763671159744,
0.024447627365589142,
-0.01788674294948578,
-0.03080795891582966,
-0.052449122071266174,
0.026187514886260033,
-0.007354001980274916,
-0.01451654639095068,
-0.025518748909235,
0.05708559229969978,
0.034308455884456635,
0.006643545813858509,
0.025035083293914795,
0.03744708374142647,
0.014494700357317924,
-0.04264753684401512,
-0.08312034606933594,
0.01600690372288227,
-0.011284148320555687,
-0.022585609927773476,
0.02290927991271019,
0.0447550043463707,
0.049116287380456924,
-0.08816704899072647,
0.00059950613649562,
0.03306005522608757,
-0.04251742735505104,
-0.021646860986948013,
0.03513142466545105,
-0.007069055922329426,
-0.023153819143772125,
0.1477448046207428,
-0.02451016753911972,
0.025595076382160187,
0.02243519388139248,
0.02002055197954178,
-0.019076047465205193,
-0.0032225954346358776,
0.021625632420182228,
0.014402470551431179,
0.05872156098484993,
-0.031118402257561684,
0.028636638075113297,
-0.02139398641884327,
-0.020036889240145683,
0.026505133137106895,
-0.01805410534143448,
-0.001779142301529646,
0.06855536252260208,
0.05019335076212883,
0.00015056709526106715,
0.0004127474967390299,
-0.0032515530474483967,
-0.09586895257234573,
0.05704224854707718,
0.015112514607608318,
-0.2429356426000595,
0.01926969178020954,
0.05227367579936981,
0.03568106144666672,
0.0016772111412137747,
-0.014712391421198845,
0.0155805554240942,
-0.0426887683570385,
0.008608347736299038,
-0.014887315221130848,
-0.011032593436539173,
0.04368750378489494,
0.0009579869802109897,
-0.01211106963455677,
0.017712410539388657,
-0.004092592746019363,
-0.0015085176564753056,
-0.011619186960160732,
-0.018704449757933617,
-0.014464874751865864,
0.011572211049497128,
-0.029160991311073303,
0.17207524180412292,
0.047336120158433914,
-0.03578164801001549,
0.03198748081922531,
0.02744746394455433,
0.009315663948655128,
0.05829588696360588,
0.005343468859791756,
-0.011469414457678795,
-0.00973593071103096,
0.024497581645846367,
-0.01069640927016735,
0.019294235855340958,
-0.01305052824318409,
-0.03367595002055168,
0.04663027450442314,
0.012273218482732773,
-0.0075462982058525085,
-0.0009868094930425286,
0.010524241253733635,
-0.035637740045785904,
0.02921801060438156,
0.07558013498783112,
-0.02860339544713497,
-0.008124839514493942,
-0.029871873557567596,
-0.05579064413905144,
0.023830724880099297,
-0.014816039241850376,
-0.03323131427168846,
-0.008567502722144127,
0.015144857577979565,
0.033389002084732056,
0.0928390771150589,
0.03230386972427368,
0.01419625524431467,
0.046532854437828064,
0.007157635409384966,
-0.002036582212895155,
-0.036664608865976334,
0.0844135582447052,
0.004235655535012484,
0.024509266018867493
] | [
-0.0008444495615549386,
0.01861513964831829,
-0.0010658343089744449,
0.024021869525313377,
0.016202684491872787,
-0.035188931971788406,
0.01715795136988163,
0.0566755048930645,
0.015466708689928055,
-0.023449327796697617,
-0.028838329017162323,
0.00012641634384635836,
0.03718407079577446,
-0.02365454100072384,
0.0037576118484139442,
-0.01273889560252428,
-0.018926477059721947,
-0.0064554037526249886,
0.056538175791502,
-0.03682359680533409,
-0.05022289976477623,
0.05047276243567467,
0.0006025878246873617,
0.014623474329710007,
-0.007172570563852787,
0.030825959518551826,
-0.023160409182310104,
0.010878383181989193,
0.018792858347296715,
-0.12350210547447205,
-0.012364624068140984,
-0.01622980646789074,
-0.03894646093249321,
-0.010899598710238934,
-0.009664404205977917,
0.0002846171264536679,
-0.009381204843521118,
-0.004568769596517086,
0.008624616079032421,
0.004719160962849855,
0.014958159066736698,
-0.035208094865083694,
0.004715643357485533,
-0.0040885210037231445,
-0.0379929393529892,
-0.03333628922700882,
-0.02354375272989273,
-0.014623245224356651,
-0.02489539049565792,
-0.0052344463765621185,
-0.019200114533305168,
-0.03431525081396103,
-0.007703260984271765,
0.011548873037099838,
0.020181778818368912,
-0.008383683860301971,
-0.04594913870096207,
-0.014182409271597862,
0.0177011638879776,
-0.02719692699611187,
-0.0006367042660713196,
0.004912148229777813,
-0.024489572271704674,
-0.024614131078124046,
-0.009924047626554966,
-0.02072303369641304,
-0.0076088313944637775,
0.015458652749657631,
0.018755892291665077,
0.02176009863615036,
-0.019586719572544098,
0.04502206668257713,
-0.021761108189821243,
-0.04549334943294525,
-0.003930669743567705,
0.00997096672654152,
-0.006921543274074793,
-0.016665780916810036,
-0.011365239508450031,
0.013113360852003098,
-0.0027475301176309586,
0.03339489549398422,
0.017677927389740944,
0.02067311480641365,
0.009570575319230556,
0.005280327517539263,
0.011535264551639557,
0.04571288079023361,
0.008145124651491642,
0.011166187934577465,
0.0048593394458293915,
0.03941769152879715,
-0.0009503585752099752,
0.02393864281475544,
-0.09572527557611465,
0.004524139687418938,
-0.004475730936974287,
0.0030635332223027945,
0.01270128320902586,
0.8369618654251099,
-0.004497425630688667,
-0.01460329070687294,
-0.016052935272455215,
0.043297287076711655,
0.0005508165922947228,
-0.021592024713754654,
-0.020066430792212486,
-0.013373833149671555,
0.01678299903869629,
-0.012519925832748413,
0.035716746002435684,
0.012533021159470081,
0.008956420235335827,
0.0018186066299676895,
0.048060547560453415,
0.025331037119030952,
0.021042076870799065,
0.015854056924581528,
-0.010189952328801155,
-0.012844083830714226,
0.024091649800539017,
0.020356999710202217,
0.014562160708010197,
0.004728713538497686,
0.01070197019726038,
-0.15392689406871796,
0.028449460864067078,
-6.449388694036851e-33,
0.06708014756441116,
-0.010403147898614407,
0.002338000340387225,
-0.03659341484308243,
0.0005083599244244397,
-0.012829565443098545,
-0.047401316463947296,
0.0106063736602664,
0.010065567679703236,
0.0028155003674328327,
-0.00012480351142585278,
-0.044431671500205994,
0.021430037915706635,
-0.022176232188940048,
0.04077421873807907,
-0.006965640466660261,
0.003341360716149211,
0.046823833137750626,
0.023013388738036156,
0.019726477563381195,
0.011790058575570583,
0.0056623006239533424,
-0.011907041072845459,
0.03597578778862953,
0.00603618286550045,
0.023789159953594208,
0.0320315957069397,
0.00007570866000605747,
-0.005428818985819817,
-0.046586085110902786,
0.007567635737359524,
0.04009873420000076,
-0.011667151935398579,
0.027703510597348213,
0.0530555322766304,
-0.07089894264936447,
-0.03849676623940468,
0.016115792095661163,
-0.02731829322874546,
-0.008843905292451382,
-0.0015716839116066694,
0.01012928131967783,
-0.04249703884124756,
-0.036796342581510544,
0.013479652814567089,
0.019146138802170753,
0.024637272581458092,
0.001748531823977828,
-0.0014612168306484818,
-0.05287390202283859,
0.024233834818005562,
0.030651867389678955,
-0.003545250277966261,
-0.0006146499654278159,
-0.009293150156736374,
0.027220606803894043,
-0.0062254429794847965,
-0.006539183668792248,
0.04720594733953476,
0.04511405900120735,
0.0250864140689373,
-0.016508521512150764,
0.034874800592660904,
0.0008469150634482503,
0.02838120423257351,
-0.025988129898905754,
0.013257136568427086,
0.0166688971221447,
0.019783003255724907,
0.060430437326431274,
-0.006618584040552378,
0.019967811182141304,
-0.03421233966946602,
-0.020044371485710144,
0.03776884824037552,
-0.006925127003341913,
0.029101068153977394,
0.03535255044698715,
0.0031757273245602846,
0.025357699021697044,
0.008032775484025478,
-0.05510127544403076,
0.037272870540618896,
-0.03619266301393509,
-0.03442196547985077,
-0.023138422518968582,
0.02385769598186016,
0.0354892835021019,
-0.03162505477666855,
0.01049335952848196,
0.020346827805042267,
0.023062290623784065,
-0.012891161255538464,
-0.016177428886294365,
-0.055653780698776245,
7.587104125791649e-33,
-0.003822451690211892,
0.020796654745936394,
-0.03255827724933624,
-0.0034185335971415043,
0.017964936792850494,
-0.033823952078819275,
0.005438275635242462,
0.02870948426425457,
-0.008999723941087723,
0.03291921690106392,
0.001851103501394391,
0.004923240747302771,
-0.033358536660671234,
0.014323865994811058,
0.06589917093515396,
-0.010546599514782429,
0.003903356846421957,
-0.0059274304658174515,
-0.038162171840667725,
0.008833110332489014,
-0.01222951803356409,
-0.00713019585236907,
-0.01359564159065485,
0.001738706254400313,
0.0549490787088871,
0.04061558470129967,
-0.01568111963570118,
0.026452159509062767,
-0.012768646702170372,
-0.002874512691050768,
0.006126684136688709,
-0.02589946612715721,
0.03826754540205002,
-0.03242075443267822,
-0.038761939853429794,
0.03640647977590561,
0.01994176022708416,
-0.041704557836055756,
0.025219319388270378,
-0.019218118861317635,
0.034678131341934204,
0.06521441787481308,
0.004047776106745005,
0.025572432205080986,
-0.03074207529425621,
0.03674175590276718,
0.015461009927093983,
0.01529415138065815,
-0.018977385014295578,
-0.003896004054695368,
-0.01852663792669773,
0.022591998800635338,
0.028079986572265625,
0.017068447545170784,
0.0032072593457996845,
-0.019583312794566154,
0.013913852162659168,
0.00037171761505305767,
-0.031249718740582466,
0.022844895720481873,
-0.036604736000299454,
0.0027631123084574938,
-0.020604373887181282,
0.015763601288199425,
-0.024652719497680664,
-0.029359715059399605,
-0.030014410614967346,
-0.05715128034353256,
-0.01653875783085823,
-0.012796937488019466,
0.004824928008019924,
-0.011829922907054424,
-0.028841976076364517,
0.01441215444356203,
0.025900473818182945,
-0.05121997743844986,
-0.0009819696424528956,
-0.002207667101174593,
-0.013663310557603836,
0.025049898773431778,
-0.005272039212286472,
-0.008088051341474056,
0.020321033895015717,
0.026603560894727707,
-0.019520515576004982,
0.041677139699459076,
-0.038174424320459366,
-0.0025562758091837168,
0.03923453390598297,
-0.021981656551361084,
0.004175407811999321,
-0.013442140072584152,
-0.034885164350271225,
0.011835087090730667,
0.032287802547216415,
-1.2701561580286125e-8,
-0.02094382792711258,
-0.022039348259568214,
-0.03479776158928871,
0.009981944225728512,
0.05239524692296982,
0.01928934082388878,
-0.015320525504648685,
0.004003782290965319,
-0.003868784522637725,
0.010705364868044853,
0.027271002531051636,
-0.05963798612356186,
0.008820697665214539,
0.0012193400179967284,
-0.0007632840424776077,
-0.0596044696867466,
0.01770746149122715,
-0.003513272386044264,
0.004729113541543484,
-0.023189272731542587,
-0.0003826743923127651,
0.020803136751055717,
0.01818351075053215,
-0.03086118958890438,
0.025350887328386307,
-0.006680603604763746,
-0.0011218399740755558,
-0.07277611643075943,
0.009049760177731514,
-0.021212462335824966,
0.008037338964641094,
-0.03539588674902916,
-0.011717883870005608,
0.010681251995265484,
-0.028605449944734573,
-0.018566297367215157,
0.008655094541609287,
-0.013040876016020775,
0.00037729201721958816,
0.003380565671250224,
0.002325169276446104,
0.0007723692106083035,
0.015902552753686905,
-0.013568107970058918,
-0.06876613199710846,
-0.009109371341764927,
-0.01842118799686432,
-0.01296265423297882,
0.014712037518620491,
-0.040095821022987366,
0.03973069787025452,
-0.014644498005509377,
0.027911009266972542,
0.060362860560417175,
0.03142347186803818,
-0.006723109167069197,
0.02640431560575962,
-0.04522475227713585,
-0.037777192890644073,
-0.015256479382514954,
0.029082966968417168,
0.005351158324629068,
-0.0009571851696819067,
-0.03972451016306877
] | r-blog-post-frequency-anomaly-detection | https://markhneedham.com/blog/2015/07/17/r-blog-post-frequency-anomaly-detection |
false | 2015-07-10 22:01:58 | R: Date for given week/year | [
"r-2",
"rstats"
] | [
"R"
] | As I mentioned in my http://www.markhneedham.com/blog/2015/07/07/python-converting-wordpress-posts-in-csv-format/[last couple] http://www.markhneedham.com/blog/2015/07/09/r-dplyr-error-cannot-modify-grouping-variable/[of blog posts] I've been looking at the data behind this blog and I wanted to plot a chart showing the number of posts per week since the blog started.
I started out with a data frame with posts and publication date:
[source,r]
----
> library(dplyr)
> df = read.csv("posts.csv")
> df$date = ymd_hms(df$date)
> df %>% sample_n(10)
title date
538 Nygard Big Data Model: The Investigation Stage 2012-10-10 00:00:36
341 The read-only database 2011-08-29 23:32:26
1112 CSS in Internet Explorer - Some lessons learned 2008-10-31 15:24:51
143 Coding: Mutating parameters 2010-08-26 07:47:23
433 Scala: Counting number of inversions (via merge sort) for an unsorted collection 2012-03-20 06:53:18
618 neo4j/cypher: SQL style GROUP BY functionality 2013-02-17 21:05:27
1111 Testing Hibernate mappings: Setting up test data 2008-10-30 13:24:14
462 neo4j: What question do you want to answer? 2012-05-05 13:20:41
1399 Book Club: Design Sense (Michael Feathers) 2009-09-29 14:42:29
494 Bash Shell: Reusing parts of previous commands 2012-07-05 23:42:35
----
The first step was to add a couple of columns representing the week and year for the publication date. The 'lubridate' library came in handy here:
[source,r]
----
byWeek = df %>%
mutate(year = year(date), week = week(date)) %>%
group_by(week, year) %>% summarise(n = n()) %>%
ungroup() %>% arrange(desc(n))
> byWeek
Source: local data frame [352 x 3]
week year n
1 33 2008 14
2 35 2008 11
3 53 2012 11
4 9 2013 10
5 12 2013 9
6 21 2009 9
7 22 2009 9
8 38 2013 9
9 40 2008 9
10 48 2012 9
.. ... ... ..
----
The next step is to calculate the start date of each of those weeks so that we can plot the counts on a continuous date scale. I spent a while searching how to do this before realising that the 'week' function I used before can set the week for a given data as well. Let's get to work:
[source,r]
----
calculate_start_of_week = function(week, year) {
date <- ymd(paste(year, 1, 1, sep="-"))
week(date) = week
return(date)
}
> calculate_start_of_week(c(1,2,3), c(2015,2014,2013))
[1] "2015-01-01 UTC" "2014-01-08 UTC" "2013-01-15 UTC"
----
And now let's transform our data frame and plot the counts:
[source,r]
----
ggplot(aes(x=start_of_week, y=n, group=1),
data = byWeek %>% mutate(start_of_week = calculate_start_of_week(week, year))) +
geom_line()
----
image::{{<siteurl>}}/uploads/2015/07/2015-07-10_22-43-54.png[2015 07 10 22 43 54,599]
It's a bit erratic as you can see. Some of this can be explained by the fact that I do in fact post in an erratic way while some of it is explained by the fact that some weeks only have a few days if they start on the 29th onwards. | null | null | [
0.0017693645786494017,
-0.02406170591711998,
0.017032939940690994,
0.02473175898194313,
0.09022683650255203,
0.02027282305061817,
0.035955995321273804,
0.020136559382081032,
0.011346996761858463,
-0.0006733430200256407,
0.021391376852989197,
-0.011517318896949291,
-0.049014560878276825,
0.05436921492218971,
-0.04870722442865372,
0.08795009553432465,
0.04552065581083298,
-0.006254911422729492,
0.014615168794989586,
0.0063853636384010315,
0.03337929770350456,
0.0361921600997448,
-0.015629883855581284,
0.035011257976293564,
0.019414562731981277,
-0.029902992770075798,
0.01963549666106701,
-0.003379623405635357,
-0.03688446804881096,
0.005559572018682957,
0.01888532191514969,
0.011192859150469303,
0.00709686242043972,
0.031036293134093285,
0.02482173591852188,
0.009066128171980381,
-0.013640955090522766,
0.01060801837593317,
0.006220007780939341,
-0.016656415536999702,
-0.06321164220571518,
-0.0006356611265800893,
-0.004767729435116053,
0.003406455973163247,
-0.025344520807266235,
0.0029753739945590496,
-0.03902772441506386,
0.037294529378414154,
0.007015740964561701,
0.009101283736526966,
-0.07680825144052505,
0.03834724798798561,
0.02533132955431938,
-0.029770556837320328,
-0.022308917716145515,
0.06158891320228577,
0.018029388040304184,
-0.06408106535673141,
0.028465259820222855,
-0.03798945993185043,
0.015386453829705715,
-0.0022484841756522655,
-0.009892333298921585,
0.005142158828675747,
0.010574918240308762,
-0.05550556629896164,
-0.038518644869327545,
0.04584646224975586,
-0.0258981604129076,
-0.001850655535236001,
-0.03163456544280052,
-0.0011734695872291923,
0.008503657765686512,
-0.007145649753510952,
-0.009473664686083794,
-0.02744961902499199,
-0.016716275364160538,
0.058358509093523026,
0.02367648296058178,
0.026355694979429245,
-0.02212078683078289,
0.0025450128596276045,
0.016000987961888313,
0.015363659709692001,
-0.004027992021292448,
-0.03421253338456154,
-0.016403522342443466,
-0.05214785411953926,
-0.0639309510588646,
0.0743732675909996,
0.009607803076505661,
-0.05805586278438568,
0.024868272244930267,
0.03559960052371025,
-0.00004256080501363613,
-0.007201838307082653,
0.011190014891326427,
0.010357356630265713,
0.006488676182925701,
-0.04879108816385269,
-0.06469932943582535,
-0.0051658800803124905,
0.029439371079206467,
0.01891244761645794,
-0.0764290913939476,
-0.025158213451504707,
-0.029540041461586952,
-0.019711360335350037,
0.03111981973052025,
0.01979304477572441,
-0.01890651136636734,
0.022984042763710022,
-0.04186725616455078,
0.0160891804844141,
-0.06404262781143188,
0.08165422827005386,
0.035432118922472,
-0.03732902929186821,
-0.0011657554423436522,
-0.021713359281420708,
0.029084108769893646,
0.003833987982943654,
0.002641811268404126,
0.08250990509986877,
-0.009832917712628841,
0.05871699005365372,
0.021732337772846222,
0.03086032159626484,
-0.018422000110149384,
-0.07179640233516693,
0.0062360865995287895,
0.04930315166711807,
-0.051646750420331955,
-0.013551374897360802,
0.007506416644901037,
-0.022995417937636375,
-0.029713410884141922,
0.017912238836288452,
0.09066331386566162,
0.06253931671380997,
0.027348222211003304,
-0.04079611599445343,
0.013904480263590813,
-0.018939470872282982,
0.037004269659519196,
0.00807600375264883,
0.008799017407000065,
-0.0512399859726429,
-0.0617326945066452,
-0.020050015300512314,
0.0472845695912838,
0.006768806837499142,
0.03891046345233917,
-0.028727352619171143,
0.030014164745807648,
0.041449159383773804,
0.029095424339175224,
0.014154614880681038,
0.005758487619459629,
0.016426818445324898,
0.045865435153245926,
0.04566217586398125,
0.025574898347258568,
0.042791128158569336,
0.006433239206671715,
-0.0329606756567955,
0.01599148102104664,
0.023539716377854347,
-0.01650814712047577,
-0.015508283860981464,
-0.06772807240486145,
-0.03766483813524246,
0.051921743899583817,
-0.023048160597682,
0.01763780787587166,
0.07175402343273163,
0.0806504338979721,
0.0521976538002491,
0.03594042360782623,
-0.020750056952238083,
-0.07677441835403442,
0.03864030912518501,
0.00025130840367637575,
0.029469266533851624,
0.01311582513153553,
-0.033830828964710236,
0.08267602324485779,
0.04099060222506523,
0.0335988774895668,
0.05146441608667374,
-0.07013090699911118,
-0.07068785279989243,
-0.016050266101956367,
-0.012789314612746239,
0.05218358337879181,
-0.02951880544424057,
0.011585365049540997,
0.0643354058265686,
0.002387527609243989,
0.022215811535716057,
-0.015117455273866653,
0.04955866187810898,
0.03284110873937607,
-0.03614607825875282,
-0.03596457466483116,
0.015237171202898026,
0.020180897787213326,
-0.017072435468435287,
-0.021123070269823074,
0.014074951410293579,
-0.0283440463244915,
0.045755308121442795,
0.023528115823864937,
-0.020912693813443184,
0.033636778593063354,
0.03276379033923149,
0.051613833755254745,
0.024098338559269905,
0.020025277510285378,
-0.029837509617209435,
0.0347701758146286,
0.0074384319595992565,
-0.03280360996723175,
-0.027033813297748566,
0.00021874513186048716,
0.12434262037277222,
0.06834104657173157,
-0.027895117178559303,
-0.04386267066001892,
0.016191719099879265,
-0.011315877549350262,
-0.006869202479720116,
0.02313056029379368,
0.011430378071963787,
0.0014770618872717023,
0.009384172037243843,
-0.037570610642433167,
-0.02761125937104225,
0.019552232697606087,
-0.053853847086429596,
0.022420823574066162,
0.0525364875793457,
-0.008879383094608784,
0.05482307821512222,
-0.030429398640990257,
0.003244027029722929,
-0.02516930177807808,
-0.035031143575906754,
-0.08449523895978928,
0.01513348426669836,
0.011134602129459381,
0.0030424196738749743,
0.04952241852879524,
-0.016795702278614044,
-0.01321228127926588,
-0.006757709197700024,
-0.0662626177072525,
0.013609788380563259,
0.07361191511154175,
0.0512363538146019,
-0.029658786952495575,
0.03993215039372444,
-0.007725871633738279,
-0.0018391805933788419,
0.007592310197651386,
-0.011289743706583977,
-0.07864850759506226,
-0.041498810052871704,
0.020518647506833076,
-0.0056935143657028675,
0.033587414771318436,
-0.01197452936321497,
0.004335347563028336,
0.04418923333287239,
0.016500577330589294,
-0.020554106682538986,
0.04122043773531914,
0.0006639095954596996,
0.005915593355894089,
-0.028720201924443245,
-0.014960535801947117,
0.05279079079627991,
-0.018281660974025726,
-0.012395371682941914,
0.001997949555516243,
-0.05796528980135918,
0.02201877348124981,
-0.02965356968343258,
-0.022304439917206764,
0.007408265024423599,
0.007017122115939856,
0.06550056487321854,
0.04901237413287163,
0.014607934281229973,
0.03684869408607483,
0.020710933953523636,
0.013328741304576397,
-0.0012330050813034177,
-0.009425641968846321,
0.06851425766944885,
-0.00043212095624767244,
-0.017788827419281006,
0.08293581753969193,
-0.01644127443432808,
-0.0018237442709505558,
-0.014225021935999393,
0.009213724173605442,
-0.01779988780617714,
-0.2671995759010315,
0.026345297694206238,
-0.024328649044036865,
-0.05208122357726097,
0.007427128031849861,
-0.03256412222981453,
0.015174401924014091,
-0.045452434569597244,
-0.01765250414609909,
0.0003026086778845638,
0.02079872414469719,
-0.045567065477371216,
-0.0507708303630352,
0.04273694008588791,
0.038514021784067154,
0.029026547446846962,
0.02171507477760315,
-0.03603130578994751,
0.0015374654904007912,
0.046179864555597305,
0.030759118497371674,
-0.034276627004146576,
-0.002796629909425974,
0.03425155580043793,
0.04437112435698509,
0.059475380927324295,
-0.06636771559715271,
0.051494140177965164,
-0.08088742941617966,
-0.03011436201632023,
0.0171805489808321,
-0.013661734759807587,
0.03743303567171097,
0.0007240226259455085,
-0.00009967489313567057,
-0.021977359429001808,
0.02661767601966858,
0.02329278737306595,
0.015511440113186836,
0.006531502120196819,
-0.05053780600428581,
-0.043223436921834946,
-0.0029813910368829966,
-0.021031804382801056,
0.04979017749428749,
0.008408400230109692,
-0.07045412808656693,
0.015449026599526405,
-0.022854942828416824,
0.07536424696445465,
-0.008346839807927608,
-0.03541181609034538,
-0.023229679092764854,
0.0035749832168221474,
-0.032646846026182175,
-0.023556018248200417,
-0.04412515088915825,
-0.007991059683263302,
-0.023078618571162224,
-0.0473514199256897,
0.006437503732740879,
-0.029475750401616096,
0.014736717566847801,
-0.04390391334891319,
-0.02539966069161892,
-0.062306586652994156,
-0.09539421647787094,
-0.006177187897264957,
0.08175139874219894,
0.03302016854286194,
-0.03955438360571861,
0.005163038615137339,
-0.025719808414578438,
-0.10750158131122589,
-0.02058524452149868,
-0.03937337175011635,
-0.000447765807621181,
-0.0019083995139226317,
-0.009305222891271114,
0.0560791902244091,
-0.03729088231921196,
-0.05919022485613823,
0.026488855481147766,
-0.001604638178832829,
0.028335919603705406,
-0.01899719052016735,
0.007657575886696577,
-0.018271535634994507,
-0.05176062881946564,
-0.022839514538645744,
0.04707981273531914,
-0.04825335368514061,
-0.005641972180455923,
0.005019003059715033,
-0.026968201622366905,
0.04237399995326996,
0.011638445779681206,
0.01577676087617874,
-0.00007259437552420422,
0.027783432975411415,
0.018039392307400703,
-0.03362880274653435,
0.026294587180018425,
-0.07159250229597092,
-0.02488861232995987,
-0.02211129665374756,
-0.04200904071331024,
0.021111849695444107,
0.005609540734440088,
0.017028074711561203,
-0.0001231715432368219,
-0.03407150134444237,
0.02648826502263546,
-0.07825268059968948,
-0.016175933182239532,
-0.008571825921535492,
0.007221657782793045,
0.02050168067216873,
0.001722546643577516,
-0.0012956134742125869,
-0.04988761991262436,
-0.00015597692981828004,
-0.03174487501382828,
-0.03371817618608475,
-0.049143917858600616,
-0.009712263941764832,
0.00919855386018753,
-0.038320429623126984,
0.013910134322941303,
0.03894839063286781,
-0.02115645259618759,
-0.002903134096413851,
0.03972705453634262,
-0.03851499408483505,
0.02736160345375538,
-0.027365824207663536,
-0.042236968874931335,
-0.026462672278285027,
0.0028952830471098423,
0.04466608166694641,
-0.0292972382158041,
0.013334976509213448,
-0.012039017863571644,
0.04915598779916763,
-0.005431632976979017,
0.016468960791826248,
0.018251284956932068,
0.00788591243326664,
0.019425367936491966,
0.019859114661812782,
-0.005724657792598009,
0.005626412108540535,
0.00307963858358562,
-0.0349159762263298,
-0.052402857691049576,
0.012593603692948818,
0.04869985580444336,
-0.020628804340958595,
-0.030832704156637192,
-0.03637092933058739,
0.012583105824887753,
-0.05279061943292618,
0.014712387695908546,
-0.0011230901582166553,
-0.015346200205385685,
0.04629676416516304,
-0.013419893570244312,
0.036549754440784454,
0.02644456923007965,
-0.044980090111494064,
-0.007348631974309683,
0.01898040808737278,
-0.03621546924114227,
0.00978826079517603,
0.015213283710181713,
-0.0060327909886837006,
0.02543339878320694,
-0.005926979705691338,
0.028010087087750435,
0.001193725853227079,
-0.007232900708913803,
-0.011416511610150337,
-0.012941970489919186,
0.018794983625411987,
0.017495959997177124,
0.07170949876308441,
-0.005105908494442701,
-0.00935699325054884,
-0.0014842336531728506,
-0.01119941845536232,
-0.011410552076995373,
-0.005447874311357737,
-0.03080867975950241,
0.011710789985954762,
-0.03372655436396599,
-0.08167343586683273,
0.04682194069027901,
0.03961886093020439,
0.013535859063267708,
-0.004921426065266132,
-0.033342812210321426,
-0.00902073085308075,
-0.03454231843352318,
0.052867911756038666,
0.07142134755849838,
-0.05239998921751976,
0.004800380673259497,
-0.0027586095966398716,
-0.023130958899855614,
-0.018295221030712128,
0.0330621711909771,
-0.0659434050321579,
-0.02482440136373043,
-0.021711455658078194,
0.053358014672994614,
-0.011616549454629421,
-0.034917496144771576,
-0.06069238856434822,
0.014812702313065529,
0.010781199671328068,
0.036968205124139786,
0.0065098418854177,
0.01910550333559513,
-0.01128623727709055,
0.0016249986365437508,
0.0031518845353275537,
-0.02152612991631031,
-0.03648480772972107,
0.04434383288025856,
-0.013830730691552162,
0.04368836432695389,
-0.018814999610185623,
0.004965797998011112,
0.008362590335309505,
-0.026174651458859444,
-0.0006202353397384286,
-0.045489780604839325,
0.016916809603571892,
0.022615505382418633,
0.05058087781071663,
-0.024003557860851288,
0.007428249344229698,
-0.03132527321577072,
-0.009616863913834095,
-0.0009376703528687358,
-0.017944129183888435,
-0.02154364064335823,
0.000353333743987605,
0.01719658635556698,
0.04974185675382614,
0.015423029661178589,
-0.011447603814303875,
0.005329686217010021,
-0.058743637055158615,
0.03544341400265694,
-0.03606249764561653,
-0.040852442383766174,
-0.011907917447388172,
-0.057955533266067505,
0.0091914813965559,
-0.006199161522090435,
0.016343632712960243,
-0.0311275701969862,
0.05831552669405937,
0.0405486635863781,
0.049521517008543015,
0.05607981979846954,
0.014208059757947922,
0.01535855419933796,
-0.04188234359025955,
-0.0179489366710186,
-0.09503577649593353,
-0.01618536375463009,
0.03099747560918331,
0.007816157303750515,
-0.01075748074799776,
-0.009052948094904423,
-0.0476207360625267,
0.0308791846036911,
-0.04689089581370354,
-0.04635646566748619,
0.04387257993221283,
-0.028850074857473373,
0.006539486814290285,
-6.664424745395081e-7,
-0.059046223759651184,
-0.001215882133692503,
0.04644517973065376,
-0.055658891797065735,
-0.01610397920012474,
-0.014442699030041695,
0.04666629433631897,
-0.044321849942207336,
0.029563460499048233,
-0.02234576642513275,
-0.012323719449341297,
0.04857433959841728,
0.0075007653795182705,
-0.012928792275488377,
0.040320515632629395,
-0.011407362297177315,
0.016567165032029152,
0.027767177671194077,
0.009958787821233273,
0.013698619790375233,
0.013037259690463543,
0.007406727410852909,
-0.025805016979575157,
0.00832093320786953,
0.0051857172511518,
-0.005347012542188168,
-0.02787701040506363,
0.08781643211841583,
0.01116808969527483,
-0.037974558770656586,
-0.0665074959397316,
0.02834099903702736,
-0.008085939101874828,
0.00995456613600254,
0.006117450073361397,
0.003918903414160013,
-0.03332452476024628,
0.04894004389643669,
-0.0196815375238657,
0.007512442301958799,
0.05093495175242424,
-0.007068842649459839,
0.006028345320373774,
-0.0023115351796150208,
0.07108426839113235,
0.06994395703077316,
0.06051144748926163,
-0.005456829909235239,
0.07591082900762558,
-0.02783622220158577,
-0.05910372734069824,
0.032456204295158386,
-0.022104866802692413,
-0.02627989836037159,
-0.01672612689435482,
0.011683501303195953,
0.07385380566120148,
-0.013619650155305862,
0.07273019850254059,
0.009810956194996834,
-0.010304408147931099,
-0.026300206780433655,
0.0038400276098400354,
0.04266529902815819,
0.045321300625801086,
0.01105054933577776,
0.05097709223628044,
-0.015566542744636536,
-0.016205068677663803,
0.03564760833978653,
-0.032752346247434616,
-0.028444083407521248,
0.03078455477952957,
-0.011724789626896381,
-0.01072397269308567,
-0.012617207132279873,
0.03324873372912407,
0.06462517380714417,
-0.05566766858100891,
0.009050230495631695,
-0.011795717291533947,
0.022592894732952118,
-0.011625619605183601,
0.03341046720743179,
-0.006595276761800051,
0.010332129895687103,
-0.020177822560071945,
-0.045733869075775146,
-0.006169687956571579,
-0.00825419556349516,
-0.04667196422815323,
0.026838304474949837,
-0.04112977162003517,
-0.010230514220893383,
0.05353045463562012,
-0.032121095806360245,
-0.0513712540268898,
-0.044670816510915756,
-0.03786933422088623,
-0.05002952739596367,
-0.08388181030750275,
0.004452256951481104,
0.02004893682897091,
-0.011267253197729588,
-0.007063643541187048,
-0.00018518177967052907,
-0.012762634083628654,
-0.03727436810731888,
0.0004047231050208211,
-0.061065152287483215,
-0.010968039743602276,
0.0173252671957016,
0.02151995338499546,
0.0036261901259422302,
0.030556464567780495,
0.04666823148727417,
0.0008463773410767317,
-0.01563209854066372,
-0.008812217973172665,
0.019510677084326744,
0.03140848129987717,
0.026301681995391846,
0.009735421277582645,
-0.0712805688381195,
0.02140406332910061,
-0.009044278413057327,
-0.02962401695549488,
-0.07656925171613693,
0.05238461494445801,
0.005946259014308453,
-0.01975206471979618,
0.035445597022771835,
-0.01187216304242611,
0.010921339504420757,
-0.021898141130805016,
-0.031660448759794235,
0.01049898937344551,
0.015652328729629517,
0.02952650934457779,
-0.03850696235895157,
0.05999887362122536,
0.049879249185323715,
-0.010306731797754765,
-0.03358796238899231,
-0.04573562741279602,
-0.00984580721706152,
0.007027117535471916,
-0.06343012303113937,
-0.04454238712787628,
-0.04518840089440346,
-0.09296668320894241,
-0.0345044769346714,
0.029710687696933746,
-0.040141843259334564,
-0.008719847537577152,
-0.0017967978492379189,
0.009562505409121513,
-0.03922631964087486,
0.007891793735325336,
-0.03485900163650513,
0.014690800569951534,
-0.015942862257361412,
-0.012478078715503216,
-0.026766113936901093,
0.023533977568149567,
0.0028499076142907143,
0.024953048676252365,
-0.017163826152682304,
-0.06871502101421356,
0.018017197027802467,
-0.01585829071700573,
0.003370839636772871,
0.044715266674757004,
0.03459489345550537,
0.005890949163585901
] | [
-0.0469931997358799,
-0.02731473557651043,
-0.0232143085449934,
0.0028321004938334227,
0.06773432344198227,
-0.0528806634247303,
-0.062243055552244186,
0.029626622796058655,
-0.01804407313466072,
0.030548810958862305,
0.043631426990032196,
-0.02667342871427536,
0.011726202443242073,
-0.0012241043150424957,
0.03061877004802227,
-0.021372690796852112,
-0.036650534719228745,
-0.05929947271943092,
-0.035798199474811554,
0.0422663576900959,
-0.009639217518270016,
-0.027195150032639503,
-0.040534425526857376,
-0.04612642526626587,
0.028833895921707153,
0.026720035821199417,
-0.0014957430539652705,
-0.06551149487495422,
-0.032802194356918335,
-0.2386285662651062,
-0.02716250903904438,
-0.01824411191046238,
0.04411817342042923,
-0.02993447333574295,
0.03411165252327919,
0.014883707277476788,
0.03399718552827835,
0.01572701521217823,
0.0037283478304743767,
0.05354997515678406,
0.02373419888317585,
-0.013775022700428963,
-0.04932491108775139,
-0.006539924070239067,
0.02930617704987526,
0.02309025637805462,
-0.02593686617910862,
0.013837366364896297,
-0.036447979509830475,
0.02528666891157627,
-0.030794916674494743,
-0.039131298661231995,
-0.016266511753201485,
0.038565751165151596,
0.02777945250272751,
0.04189722612500191,
0.03600794076919556,
0.03668699041008949,
0.0032779844477772713,
0.025803612545132637,
-0.0070524332113564014,
0.010058042593300343,
-0.18069638311862946,
0.1137484461069107,
-0.022165795788168907,
0.019495418295264244,
-0.04656662046909332,
-0.008855118416249752,
-0.02038806863129139,
0.06122325733304024,
-0.00020137731917202473,
-0.016954097896814346,
-0.04395391792058945,
0.03525017201900482,
0.04243491217494011,
0.010442333295941353,
-0.004631954710930586,
0.015592635609209538,
0.051813047379255295,
-0.0381145216524601,
-0.005549479741603136,
0.027500232681632042,
-0.016716379672288895,
-0.04129447415471077,
-0.0050634779036045074,
-0.021527670323848724,
0.008568011224269867,
0.011126924306154251,
0.009836864657700062,
0.013207274489104748,
0.04655448719859123,
0.0022088864352554083,
0.03289198875427246,
0.010417151264846325,
-0.09237215667963028,
-0.03546237200498581,
0.04300703480839729,
0.002770084887742996,
0.01652679592370987,
0.4020979106426239,
-0.031047668308019638,
-0.0022235019132494926,
0.033467140048742294,
0.061249133199453354,
0.004261890891939402,
-0.015659986063838005,
-0.00791456550359726,
-0.05211121216416359,
0.018035657703876495,
-0.018176212906837463,
0.014344989322125912,
-0.04641462862491608,
0.07788865268230438,
-0.09276652336120605,
0.007205502595752478,
-0.01792781427502632,
0.025155557319521904,
0.02838449738919735,
0.01788579300045967,
0.01512449886649847,
0.027320636436343193,
-0.029601315036416054,
0.05051972717046738,
0.02862444706261158,
0.014971432276070118,
0.03391551598906517,
0.025220222771167755,
0.04588945582509041,
0.08597463369369507,
0.00724853714928031,
0.06206858158111572,
0.020357917994260788,
-0.09790493547916412,
0.01841999776661396,
0.0018778975354507565,
-0.003488111076876521,
0.035261426120996475,
-0.04168036952614784,
0.024580733850598335,
0.004703504499047995,
-0.031160080805420876,
-0.02100345678627491,
0.02288154512643814,
0.002643797779455781,
-0.051547013223171234,
0.16496123373508453,
-0.011266091838479042,
-0.044490739703178406,
-0.023600229993462563,
-0.02560614049434662,
-0.043179742991924286,
0.03474334254860878,
0.0016641574911773205,
-0.07295368611812592,
0.0015951540553942323,
0.039158161729574203,
0.08553208410739899,
-0.03492191806435585,
-0.08105320483446121,
-0.007975539192557335,
-0.0331578254699707,
-0.021073738113045692,
-0.042575009167194366,
0.040624577552080154,
0.04792299494147301,
-0.10884786397218704,
0.017031753435730934,
0.029137538745999336,
0.01577591896057129,
-0.06767730414867401,
0.0361081138253212,
0.00020280084572732449,
-0.026807349175214767,
-0.0025462829507887363,
0.07277580350637436,
-0.0009087391081266105,
-0.00016173653420992196,
0.02158069983124733,
0.07927260547876358,
0.023539641872048378,
-0.0067175207659602165,
0.017259493470191956,
-0.06040294095873833,
0.033272430300712585,
-0.06433998793363571,
-0.06535787880420685,
-0.05451064556837082,
0.005619321949779987,
-0.01073781680315733,
0.01663600653409958,
0.03177446871995926,
-0.05466984957456589,
-0.07152951508760452,
0.04705597087740898,
-0.015713868662714958,
-0.013932423666119576,
0.0015053893439471722,
0.024753805249929428,
-0.0037216113414615393,
-0.029888933524489403,
-0.01732262223958969,
-0.024311944842338562,
0.006291581317782402,
0.017322156578302383,
-0.035831205546855927,
0.024999303743243217,
0.06449838727712631,
-0.046857334673404694,
0.052590496838092804,
0.01992105506360531,
-0.0385320745408535,
-0.016731033101677895,
-0.0041030291467905045,
-0.00696539506316185,
0.007408786565065384,
0.025693146511912346,
-0.03178170323371887,
0.001974743790924549,
0.011451338417828083,
0.05130622908473015,
-0.0013666189042851329,
-0.04415753111243248,
0.00703784916549921,
-0.3521251082420349,
-0.06812456995248795,
0.006096444558352232,
0.0063412608578801155,
0.019575538113713264,
-0.020117739215493202,
-0.008320093154907227,
-0.01564103551208973,
0.008967873640358448,
0.07922076433897018,
0.07123257964849472,
0.025258047506213188,
-0.0055991183035075665,
-0.12236031889915466,
0.014274610206484795,
0.0009793790522962809,
0.004751999396830797,
-0.022310564294457436,
-0.031141433864831924,
0.0037284838035702705,
0.008246608078479767,
-0.02689824067056179,
-0.026896828785538673,
-0.05206600949168205,
0.008439269848167896,
-0.009631041437387466,
0.0980767160654068,
0.01828693225979805,
0.03493771702051163,
-0.054523665457963943,
0.03800128027796745,
-0.0041389972902834415,
-0.0016726399771869183,
-0.06568693369626999,
0.02611181139945984,
0.004541833885014057,
-0.01253950223326683,
-0.0060263099148869514,
-0.025141512975096703,
-0.03092051111161709,
-0.01991557516157627,
0.024196438491344452,
-0.010183396749198437,
-0.03934118151664734,
-0.048301614820957184,
0.03465406969189644,
0.0008341501234099269,
-0.0013590945163741708,
-0.038493379950523376,
0.056917935609817505,
-0.0032087720464915037,
-0.027764495462179184,
0.03633986413478851,
0.044943008571863174,
-0.0030416594818234444,
-0.01859544776380062,
-0.08603639155626297,
0.005050675477832556,
0.011625098064541817,
-0.04064846783876419,
0.006480663549154997,
0.02017218805849552,
0.057075828313827515,
-0.06154424324631691,
-0.009814834222197533,
0.010310077108442783,
0.0012353803031146526,
-0.016434641554951668,
0.03158547356724739,
0.008948254399001598,
-0.03960533067584038,
0.08165528625249863,
-0.013902118429541588,
0.052976783365011215,
0.028071431443095207,
0.05283845588564873,
-0.04552233964204788,
0.027712315320968628,
0.011647598817944527,
-0.000010555443623161409,
0.062024492770433426,
-0.03410610184073448,
0.040797583758831024,
-0.009416231885552406,
0.0375804677605629,
0.041644107550382614,
-0.025672096759080887,
-0.027740605175495148,
0.03801417723298073,
0.03741665184497833,
-0.017808282747864723,
-0.02773127518594265,
-0.05627506598830223,
-0.030370552092790604,
0.070760577917099,
0.012768243439495564,
-0.2609797716140747,
0.020405570045113564,
0.04287560284137726,
0.02933894470334053,
0.018988100811839104,
0.011934986338019371,
-0.016431670635938644,
-0.031143534928560257,
0.004626033362001181,
-0.001681059249676764,
0.002752054715529084,
0.057756196707487106,
-0.0012434202944859862,
-0.014233371242880821,
0.013665134087204933,
-0.006510102655738592,
-0.022145623341202736,
0.018072810024023056,
0.000591944030020386,
-0.008983585052192211,
0.0014754829462617636,
-0.04840799793601036,
0.15131713449954987,
0.03889697417616844,
-0.02098263055086136,
-0.0013009520480409265,
0.007679570000618696,
0.006932786665856838,
0.06387045979499817,
0.02147686667740345,
-0.03363534435629845,
-0.015752360224723816,
0.05903679132461548,
0.030345598235726357,
-0.0005085695302113891,
-0.03697102516889572,
-0.03559290990233421,
0.057503651827573776,
0.029263727366924286,
-0.002175866859033704,
-0.016780560836195946,
0.027254238724708557,
-0.044657617807388306,
0.033208031207323074,
0.0847950279712677,
-0.010820954106748104,
-0.007011687383055687,
-0.031930360943078995,
-0.03959871828556061,
0.0021813437342643738,
-0.0045171561650931835,
-0.00920422375202179,
-0.007185467053204775,
0.012081079185009003,
0.009099841117858887,
0.052245013415813446,
0.056344371289014816,
-0.007512170821428299,
0.051600467413663864,
0.0032536471262574196,
-0.0195135660469532,
-0.07208766788244247,
0.06919769197702408,
0.024520287290215492,
0.0007991866441443563
] | [
0.00764903100207448,
0.0063824220560491085,
-0.010691240429878235,
0.04697161540389061,
-0.00002168989522033371,
-0.0007356436108238995,
-0.025191698223352432,
-0.0035623926669359207,
-0.006563290953636169,
-0.027045320719480515,
-0.010563085786998272,
0.017642691731452942,
0.006782073061913252,
-0.04375253617763519,
0.016121532768011093,
-0.00769515847787261,
-0.02568577229976654,
-0.012750567868351936,
0.02727900817990303,
0.0005288090906105936,
-0.04277500882744789,
0.023445913568139076,
0.017565032467246056,
0.01666324958205223,
-0.011671491898596287,
0.03283195570111275,
-0.05377592518925667,
0.01820547692477703,
0.018235009163618088,
-0.11700013279914856,
-0.03267833590507507,
-0.007190356496721506,
-0.004205301869660616,
0.022410007193684578,
-0.021133294329047203,
0.0029057469218969345,
-0.011752591468393803,
0.024095134809613228,
0.01844504289329052,
0.011604026891291142,
-0.0017297015292569995,
0.003846924751996994,
0.015786418691277504,
0.005211345851421356,
-0.001598678296431899,
-0.018352724611759186,
-0.002323267748579383,
-0.0027667477261275053,
-0.03866978734731674,
0.040956366807222366,
-0.043991491198539734,
0.009283097460865974,
-0.014193574897944927,
0.024020113050937653,
0.010490212589502335,
-0.014466743916273117,
-0.019312337040901184,
-0.02887987531721592,
0.0003897749411407858,
-0.047412630170583725,
-0.009041329845786095,
0.005008710082620382,
-0.03602682426571846,
-0.020011888816952705,
-0.013488896191120148,
-0.03275551274418831,
-0.003054562723264098,
0.0257354024797678,
0.0032326134387403727,
0.011633959598839283,
-0.03807680681347847,
0.02115931361913681,
-0.025080908089876175,
-0.019877929240465164,
-0.019017761573195457,
0.04013735055923462,
0.005889491178095341,
-0.06300876289606094,
-0.0018942474853247404,
-0.019911687821149826,
-0.029203323647379875,
0.02763313427567482,
-0.014227285049855709,
0.012129534967243671,
0.010933623649179935,
-0.033682722598314285,
0.029437391087412834,
0.015120403841137886,
0.0037902803160250187,
-0.01545511931180954,
-0.013225480914115906,
0.02001846767961979,
0.004281636327505112,
0.008689186535775661,
-0.11487022787332535,
-0.012473786249756813,
0.00968193169683218,
0.005485049448907375,
0.009385883808135986,
0.8490453958511353,
0.02252381108701229,
0.006393971387296915,
-0.001009833998978138,
0.0017388181295245886,
-0.02456543780863285,
-0.0343165323138237,
-0.0037824809551239014,
-0.016931388527154922,
-0.012926110997796059,
-0.04243959113955498,
0.025573458522558212,
0.02893894910812378,
0.02175738289952278,
0.00920635461807251,
0.04537726938724518,
0.010724504478275776,
0.007912388071417809,
0.005636390298604965,
0.00437095295637846,
0.003643031232059002,
0.010879707522690296,
0.02518210932612419,
0.023495955392718315,
0.010469221509993076,
-0.002905465429648757,
-0.17612424492835999,
0.0034492958802729845,
-6.473413594515751e-33,
0.03719436004757881,
-0.026901613920927048,
0.03062066249549389,
0.002451180014759302,
0.015470643527805805,
0.015825984999537468,
-0.006591748911887407,
0.006656980607658625,
-0.020051583647727966,
-0.012242189608514309,
0.005336796399205923,
0.0061300513334572315,
0.016420338302850723,
-0.017368337139487267,
0.04938974976539612,
-0.026699107140302658,
0.014564468525350094,
0.02605395019054413,
0.018901608884334564,
-0.007563461549580097,
0.03666563332080841,
0.011028558015823364,
0.0038567546289414167,
0.02764958143234253,
-0.0035064101684838533,
0.005202741827815771,
0.026074957102537155,
0.03302668035030365,
-0.025209134444594383,
-0.04679328575730324,
-0.032819606363773346,
-0.00048376969061791897,
-0.0018772371113300323,
0.009109226986765862,
0.021227560937404633,
-0.05830107629299164,
-0.011510059237480164,
0.0019138113129884005,
0.01729509048163891,
0.003286372870206833,
-0.04724141210317612,
-0.008590331301093102,
-0.01118080597370863,
-0.03148774057626724,
-0.02169945277273655,
0.03609504923224449,
0.010308313183486462,
0.02774170972406864,
-0.000003538798409863375,
0.004802018404006958,
0.021022789180278778,
-0.009874675422906876,
0.018353799358010292,
-0.009425261057913303,
-0.01716228947043419,
0.037257444113492966,
0.007550670765340328,
-0.005412939004600048,
0.031699880957603455,
0.01533480267971754,
-0.0035192728973925114,
-0.011854185722768307,
0.017958104610443115,
-0.006314754486083984,
0.00958658941090107,
0.010284707881510258,
0.0572320893406868,
0.026118064299225807,
-0.0056776930578053,
0.006623101886361837,
-0.03206884488463402,
0.021622857078909874,
-0.01279742456972599,
-0.018261777237057686,
0.04906560480594635,
-0.0015608558896929026,
-0.0044840257614851,
0.02654207870364189,
0.01860160008072853,
0.04028131440281868,
0.0007150699966587126,
-0.01304708980023861,
-0.018972352147102356,
-0.013883696869015694,
-0.053446024656295776,
-0.011394815519452095,
0.03541962802410126,
0.05978098511695862,
-0.03882203996181488,
-0.015012615360319614,
0.02172802947461605,
0.01847103051841259,
0.032144125550985336,
-0.028427883982658386,
0.019116859883069992,
6.815947505557581e-33,
-0.019053008407354355,
0.018066303804516792,
-0.009910129941999912,
0.006157197989523411,
0.03948754444718361,
-0.04382910206913948,
0.0040909359231591225,
0.014973025768995285,
-0.02339356392621994,
0.02786795236170292,
0.0016000644536688924,
-0.043780941516160965,
0.000018004016965278424,
0.04955708980560303,
0.04243913292884827,
0.019962718710303307,
-0.0003870704967994243,
-0.01648186333477497,
-0.01448154915124178,
0.002868147799745202,
-0.0035415529273450375,
0.0051978821866214275,
-0.004294739570468664,
0.0268498957157135,
0.04166007786989212,
0.030468158423900604,
-0.0029679443687200546,
0.006090165581554174,
0.012739265337586403,
0.01213896181434393,
-0.01102242711931467,
-0.03209200128912926,
-0.015968607738614082,
-0.03863899037241936,
-0.034857749938964844,
0.04257338494062424,
-0.009588444605469704,
-0.03530992940068245,
-0.004275961313396692,
-0.008921309374272823,
0.015420516952872276,
0.0074318391270935535,
-0.02031712606549263,
0.039106883108615875,
0.016591263934969902,
0.039171963930130005,
0.0270994920283556,
0.00407097302377224,
0.006723412778228521,
0.040454309433698654,
-0.005762096494436264,
0.021809592843055725,
0.013395206071436405,
-0.007294569164514542,
0.01521737314760685,
-0.020430296659469604,
-0.00918879359960556,
0.004258532542735338,
-0.05487988889217377,
-0.0143198873847723,
-0.03592298552393913,
0.008419107645750046,
-0.039214178919792175,
0.0030760071240365505,
-0.032641854137182236,
-0.018958868458867073,
-0.021156545728445053,
-0.034865763038396835,
0.0005713797290809453,
-0.01243460550904274,
0.018435850739479065,
-0.01163578312844038,
0.00692397216334939,
0.008222348056733608,
0.012671751901507378,
0.006879045628011227,
-0.012148087844252586,
0.017292747274041176,
-0.030990809202194214,
0.03080753982067108,
0.018724367022514343,
-0.028507811948657036,
0.019326789304614067,
0.016867872327566147,
-0.02389330416917801,
0.0026391111314296722,
-0.038590703159570694,
0.012269637547433376,
0.02420136146247387,
-0.03469147905707359,
-0.0060859015211462975,
-0.048983264714479446,
0.003654843894764781,
0.05133749544620514,
-0.008738047443330288,
-1.269269045423016e-8,
-0.038228392601013184,
-0.01035328395664692,
-0.008005338720977306,
0.00906312745064497,
0.03665003553032875,
0.025764841586351395,
0.015514524653553963,
-0.006869286764413118,
0.0012738453224301338,
0.020723974332213402,
0.055726341903209686,
-0.03162238746881485,
0.015741048380732536,
0.014401421882212162,
-0.02246963605284691,
-0.032434750348329544,
0.028818432241678238,
-0.02775183692574501,
0.029610533267259598,
-0.03862634673714638,
0.031666211783885956,
0.009683000855147839,
0.00768993329256773,
-0.01987679861485958,
0.029398804530501366,
0.013028457760810852,
-0.012049914337694645,
-0.06586992740631104,
-0.008445157669484615,
-0.030734779313206673,
0.04550936818122864,
-0.047293033450841904,
-0.04238167777657509,
0.004705291241407394,
-0.02969134971499443,
-0.06443910300731659,
0.0035511977039277554,
0.034654565155506134,
0.003303846810013056,
0.002873692661523819,
-0.013973347842693329,
-0.012770755216479301,
-0.020268263295292854,
-0.005493085831403732,
-0.0440334714949131,
0.027620162814855576,
-0.03292710334062576,
-0.008491123095154762,
0.01420691516250372,
-0.03963227570056915,
0.014248025603592396,
-0.0170485507696867,
0.03823469951748848,
0.04158325865864754,
0.011947807855904102,
0.01116649154573679,
0.02955314889550209,
0.025371722877025604,
-0.02749563939869404,
-0.02677079848945141,
-0.011233391240239143,
0.022439371794462204,
-0.004723564255982637,
-0.03303641453385353
] | r-date-for-given-weekyear | https://markhneedham.com/blog/2015/07/10/r-date-for-given-weekyear |
false | 2015-07-19 19:44:59 | R: Bootstrap confidence intervals | [
"r-2"
] | [
"R"
] | I recently came across an interesting post on Julia Evans' blog showing how to http://jvns.ca/blog/2015/07/04/bootstrap-confidence-intervals/[generate a bigger set of data points by sampling the small set of data points] that we actually have using *bootstrapping*. Julia's examples are all in Python so I thought it'd be a fun exercise to translate them into R.
We're doing the bootstrapping to simulate the number of no-shows for a flight so we can work out how many seats we can overbook the plane by.
We start out with a small sample of no-shows and work off the assumption that it's ok to kick someone off a flight 5% of the time. Let's work out how many people that'd be for our initial sample:
[source,r]
----
> data = c(0, 1, 3, 2, 8, 2, 3, 4)
> quantile(data, 0.05)
5%
0.35
----
0.35 people! That's not a particularly useful result so we're going to resample the initial data set 10,000 times, taking the 5%ile each time and see if we come up with something better:
We're going to use the +++<cite>+++sample+++</cite>+++ function with replacement to generate our resamples:
[source,r]
----
> sample(data, replace = TRUE)
[1] 0 3 2 8 8 0 8 0
> sample(data, replace = TRUE)
[1] 2 2 4 3 4 4 2 2
----
Now let's write a function to do that multiple times:
[source,r]
----
library(ggplot)
bootstrap_5th_percentile = function(data, n_bootstraps) {
return(sapply(1:n_bootstraps,
function(iteration) quantile(sample(data, replace = TRUE), 0.05)))
}
values = bootstrap_5th_percentile(data, 10000)
ggplot(aes(x = value), data = data.frame(value = values)) + geom_histogram(binwidth=0.25)
----
image::{{<siteurl>}}/uploads/2015/07/2015-07-19_18-05-48.png[2015 07 19 18 05 48,300]
So this visualisation is telling us that we can oversell by 0-2 people but we don't know an exact number.
Let's try the same exercise but with a bigger initial data set of 1,000 values rather than just 8. First we'll generate a distribution (with a mean of 5 and standard deviation of 2) and visualise it:
[source,r]
----
library(dplyr)
df = data.frame(value = rnorm(1000,5, 2))
df = df %>% filter(value >= 0) %>% mutate(value = as.integer(round(value)))
ggplot(aes(x = value), data = df) + geom_histogram(binwidth=1)
----
image::{{<siteurl>}}/uploads/2015/07/2015-07-19_18-09-15.png[2015 07 19 18 09 15,300]
Our distribution seems to have a lot more values around 4 & 5 whereas the Python version has a flatter distribution - I'm not sure why that is so if you have any ideas let me know. In any case, let's check the 5%ile for this data set:
[source,R]
----
> quantile(df$value, 0.05)
5%
2
----
Cool! Now at least we have an integer value rather than the 0.35 we got earlier. Finally let's do some bootstrapping over our new distribution and see what 5%ile we come up with:
[source,r]
----
resampled = bootstrap_5th_percentile(df$value, 10000)
byValue = data.frame(value = resampled) %>% count(value)
> byValue
Source: local data frame [3 x 2]
value n
1 1.0 3
2 1.7 2
3 2.0 9995
ggplot(aes(x = value, y = n), data = byValue) + geom_bar(stat = "identity")
----
image::{{<siteurl>}}/uploads/2015/07/2015-07-19_18-23-29.png[2015 07 19 18 23 29,300]
'2' is by far the most popular 5%ile here although it seems weighted more towards that value than with Julia's Python version, which I imagine is because we seem to have sampled from a slightly different distribution. | null | null | [
0.004228824749588966,
-0.012012464925646782,
-0.022513603791594505,
0.04665125161409378,
0.08341089636087418,
0.035779014229774475,
0.03945353999733925,
0.026767972856760025,
0.009556862525641918,
-0.0012786228908225894,
0.01320087444037199,
0.007354657165706158,
-0.08263110369443893,
-0.012569681741297245,
-0.04424139857292175,
0.0781923159956932,
0.05057504400610924,
0.0038999109528958797,
0.0019735051319003105,
0.020169714465737343,
0.046563927084207535,
0.048279959708452225,
0.0036277612671256065,
0.028974926099181175,
0.04846759885549545,
-0.04311460629105568,
0.03196379914879799,
0.02474365197122097,
-0.045104533433914185,
-0.0075799329206347466,
0.029605891555547714,
-0.00093217717949301,
-0.025609200820326805,
-0.013014041818678379,
0.029162608087062836,
0.01186004001647234,
-0.024572914466261864,
0.007193789351731539,
0.013422247022390366,
-0.0039498633705079556,
-0.06559760868549347,
0.006602272391319275,
-0.008936665952205658,
0.00694196205586195,
-0.05364836007356644,
0.007223894819617271,
-0.029054731130599976,
0.02441851980984211,
0.01766027882695198,
-0.005377104505896568,
-0.048138923943042755,
0.07411406934261322,
-0.0023695791605859995,
-0.016888659447431564,
0.0002619587176013738,
0.03105751983821392,
0.0256184209138155,
-0.06856593489646912,
0.024462087079882622,
-0.051071807742118835,
0.03986707329750061,
0.01686832122504711,
-0.006217824760824442,
0.034626927226781845,
0.00926271267235279,
-0.007933788932859898,
-0.01059071347117424,
0.04623843729496002,
-0.031121045351028442,
-0.0027312200982123613,
-0.03487151116132736,
-0.0014792289584875107,
-0.013558783568441868,
-0.019717760384082794,
-0.03151113912463188,
-0.04749715328216553,
-0.005308158695697784,
0.06978772580623627,
0.01921430230140686,
0.031048109754920006,
0.01742781139910221,
-0.005001912359148264,
0.019245808944106102,
0.02082039602100849,
-0.023466233164072037,
-0.04204367846250534,
-0.034869059920310974,
-0.034351445734500885,
-0.06092293560504913,
0.06768831610679626,
-0.009077177383005619,
-0.05321282520890236,
0.022176183760166168,
0.01655287854373455,
-0.012363814748823643,
0.01846725307404995,
0.0008446691208519042,
-0.0048011974431574345,
-0.013230083510279655,
-0.024390297010540962,
-0.0499613918364048,
-0.03345378488302231,
0.04340459033846855,
0.0022317066323012114,
-0.08200971782207489,
-0.013072235509753227,
-0.015766579657793045,
0.009299356490373611,
-0.024799028411507607,
0.02642454206943512,
-0.019039131700992584,
0.013372049666941166,
-0.022456061094999313,
0.00008113187504932284,
-0.07793813943862915,
0.06929977238178253,
0.0006913651013746858,
-0.02927953004837036,
-0.017705829814076424,
-0.032508864998817444,
0.04844921827316284,
0.03729861229658127,
-0.012710572220385075,
0.07045044749975204,
0.0041345879435539246,
0.04478223994374275,
0.008234282955527306,
0.059689003974199295,
-0.012361413799226284,
-0.04621896147727966,
-0.0077904206700623035,
0.051035746932029724,
-0.0419519767165184,
0.0008693184936419129,
0.0012096570571884513,
-0.04355548694729805,
-0.004506401717662811,
0.01246686652302742,
0.06194956600666046,
0.057906556874513626,
0.04877317324280739,
-0.018152471631765366,
0.026331476867198944,
-0.00963752344250679,
0.039854995906353,
-0.003008115803822875,
0.025706253945827484,
-0.03091084212064743,
-0.05392914265394211,
0.01447987835854292,
0.01010659709572792,
0.0134462621062994,
0.040632493793964386,
-0.034844983369112015,
0.010291075333952904,
0.05036164075136185,
0.04325466603040695,
-0.013761317357420921,
-0.016487663611769676,
0.028842145577073097,
0.039142634719610214,
0.031851377338171005,
0.05406231805682182,
0.04053759202361107,
-0.015986116603016853,
-0.03285389393568039,
0.0069258245639503,
0.05927532538771629,
-0.011402926407754421,
0.0002999956486746669,
-0.04341673478484154,
-0.05611564591526985,
0.044566698372364044,
-0.021529803052544594,
-0.010030854493379593,
0.03701489791274071,
0.09403698146343231,
0.02385782077908516,
0.051172129809856415,
0.0007867551757954061,
-0.09030217677354813,
0.052808359265327454,
0.02890029177069664,
0.03494530916213989,
0.031631600111722946,
-0.04932842776179314,
0.10473529994487762,
0.04054810851812363,
0.019896864891052246,
0.043296243995428085,
-0.06792423129081726,
-0.0651538223028183,
-0.012565530836582184,
-0.023760419338941574,
0.052002109587192535,
-0.05396423488855362,
0.006753081921488047,
0.05491634085774422,
0.0083081079646945,
0.00456530787050724,
-0.005693704355508089,
0.01651850901544094,
0.03906121850013733,
-0.05214869603514671,
-0.02143212780356407,
0.03908824920654297,
0.04411541298031807,
-0.010994571261107922,
-0.04152262583374977,
0.010929882526397705,
-0.008972830139100552,
0.045282091945409775,
0.022080445662140846,
-0.022081127390265465,
0.05116302892565727,
0.015516984276473522,
0.04803473874926567,
0.0015086865751072764,
0.030462069436907768,
-0.03041630983352661,
0.017714111134409904,
0.004603240638971329,
-0.020052852109074593,
-0.0329972505569458,
0.018636519089341164,
0.12773504853248596,
0.07219773530960083,
-0.024566615000367165,
-0.06243886798620224,
0.008078805170953274,
-0.04724498465657234,
-0.02728448621928692,
0.02599477581679821,
0.009628064930438995,
-0.010619455948472023,
0.015011999756097794,
-0.019882697612047195,
-0.025272876024246216,
0.01934778317809105,
-0.04157792404294014,
-0.02143212966620922,
0.06340867280960083,
-0.01383406575769186,
0.05642912536859512,
-0.03310994431376457,
-0.029536841437220573,
-0.010945077985525131,
-0.015210093930363655,
-0.07590333372354507,
-0.031018614768981934,
0.012080235406756401,
-0.01325403805822134,
0.032143767923116684,
-0.0021600916516035795,
-0.0036025953013449907,
-0.02497587352991104,
-0.03958284109830856,
0.035673193633556366,
0.07158081978559494,
0.06269987672567368,
-0.008332516066730022,
0.03373121842741966,
0.004777559079229832,
0.014828401617705822,
-0.008946162648499012,
-0.04356701672077179,
-0.07507434487342834,
-0.03520973399281502,
0.016028232872486115,
0.006346290465444326,
0.02103389985859394,
0.0038463277742266655,
0.013217913918197155,
0.020878365263342857,
0.02343803644180298,
-0.021972162649035454,
0.023220451548695564,
0.016806596890091896,
-0.023345425724983215,
-0.016597574576735497,
-0.004318120423704386,
0.061704788357019424,
-0.03183359280228615,
-0.021525485441088676,
0.025210481137037277,
-0.05031023547053337,
0.029357636347413063,
-0.060488466173410416,
-0.02495192177593708,
-0.011332936584949493,
0.006823272909969091,
0.05038757622241974,
0.029341965913772583,
-0.0005396685446612537,
0.036753471940755844,
0.01598460040986538,
0.027384892106056213,
0.030244724825024605,
-0.0011079551186412573,
0.054587215185165405,
0.007446759846061468,
-0.009335712529718876,
0.01938045211136341,
-0.01796378195285797,
-0.003996100276708603,
-0.010250087827444077,
0.02367711067199707,
-0.012441007420420647,
-0.2803126573562622,
0.031521447002887726,
0.006243124138563871,
-0.021559586748480797,
0.015107972547411919,
-0.07614142447710037,
0.013922449201345444,
-0.04140147194266319,
-0.028077756986021996,
0.015382837504148483,
-0.0069829560816287994,
-0.04157903417944908,
-0.05446747690439224,
0.06586121022701263,
0.023415781557559967,
0.03951874002814293,
0.02266921103000641,
-0.024619435891509056,
0.025874847546219826,
0.08472497016191483,
0.051046766340732574,
-0.06098845228552818,
-0.0017708506202325225,
0.04157252982258797,
0.015742693096399307,
0.06635433435440063,
-0.04808875918388367,
0.03548872843384743,
-0.07612323015928268,
-0.01751602254807949,
0.021902460604906082,
-0.054330021142959595,
-0.01968100666999817,
-0.002144396537914872,
0.00013616951764561236,
-0.021009700372815132,
0.03375080227851868,
-0.0014533980283886194,
0.02189016155898571,
0.022467320784926414,
-0.05407097190618515,
-0.034950923174619675,
0.004221716430038214,
0.007931379601359367,
0.057831428945064545,
0.013118242844939232,
-0.06669837236404419,
0.012940099462866783,
-0.028181634843349457,
0.063956119120121,
-0.03415501117706299,
-0.0003939288726542145,
-0.03197399899363518,
-0.004877561237663031,
-0.042015720158815384,
-0.01738227903842926,
-0.02436497062444687,
0.01078732404857874,
-0.03274819254875183,
-0.02836747094988823,
-0.01904470846056938,
-0.01145946141332388,
-0.02402293123304844,
-0.04945526644587517,
-0.012634244747459888,
-0.06770287454128265,
-0.09385768324136734,
-0.013978827744722366,
0.0570753738284111,
0.018513865768909454,
-0.04811718687415123,
-0.02018400840461254,
-0.009340126067399979,
-0.1023763120174408,
-0.013080568984150887,
-0.035078264772892,
-0.004717982839792967,
-0.028896057978272438,
0.011438430286943913,
0.062459398061037064,
-0.051707081496715546,
-0.051744356751441956,
0.04328208416700363,
-0.004184166435152292,
0.0428706556558609,
-0.016531329602003098,
-0.02138146199285984,
0.022244492545723915,
-0.016947198659181595,
-0.019051164388656616,
0.0749906376004219,
-0.044149965047836304,
-0.01040353998541832,
0.004752641078084707,
0.016549943014979362,
0.03327784314751625,
0.026621902361512184,
-0.016322726383805275,
0.03168796747922897,
0.025533311069011688,
0.022682053968310356,
-0.05287552252411842,
0.016459893435239792,
-0.043502625077962875,
-0.02850220538675785,
-0.03834627941250801,
-0.06491797417402267,
0.03565409407019615,
0.0015132069820538163,
0.01600399985909462,
0.004159624222666025,
-0.015258233062922955,
0.038264382630586624,
-0.058499775826931,
-0.03940064460039139,
-0.014256376773118973,
0.01323686819523573,
0.003500856226310134,
0.0017586358590051532,
0.013569197617471218,
-0.06326236575841904,
0.004027524497359991,
-0.016073592007160187,
-0.03345126286149025,
-0.041426386684179306,
-0.013837753795087337,
0.018131067976355553,
-0.003138322615996003,
-0.011668667197227478,
-0.004545462783426046,
-0.006920430809259415,
0.014363976195454597,
0.03733386844396591,
-0.024080773815512657,
0.03882991895079613,
-0.021766571328043938,
-0.04385077580809593,
-0.0276112612336874,
0.018484916538000107,
0.037910860031843185,
-0.01698431931436062,
0.02333191968500614,
0.010943463072180748,
0.016430407762527466,
0.008789044804871082,
0.011038816533982754,
0.04401969909667969,
-0.006140691228210926,
0.0030433181673288345,
0.018945464864373207,
0.013257229700684547,
0.005380758550018072,
-0.01556466892361641,
-0.022710835561156273,
-0.0022711402270942926,
-0.009357389062643051,
0.050065282732248306,
-0.016635889187455177,
-0.042941123247146606,
-0.05073430761694908,
0.0339575819671154,
-0.039348095655441284,
-0.04326622560620308,
-0.01642822101712227,
-0.018139386549592018,
0.06068665534257889,
0.0034521399065852165,
-0.0047808559611439705,
-0.002669267589226365,
-0.011080708354711533,
0.014367182739078999,
0.01118803396821022,
-0.031153246760368347,
-0.0009086818317882717,
-0.006922079250216484,
-0.0021931249648332596,
0.006436290219426155,
0.001887279562652111,
0.028307996690273285,
-0.006007604766637087,
-0.00809861533343792,
-0.016881626099348068,
0.0043676262721419334,
-0.0007226156303659081,
0.04201437160372734,
0.03867874667048454,
-0.007597644347697496,
-0.009226987138390541,
-0.02795332856476307,
-0.040153566747903824,
-0.037792008370161057,
0.012312794104218483,
-0.025733258575201035,
0.0238585714250803,
-0.03660374507308006,
-0.0702914372086525,
0.013700198382139206,
0.03755602613091469,
-0.018790584057569504,
0.03927077725529671,
-0.026920855045318604,
-0.025095967575907707,
-0.015872446820139885,
0.053572557866573334,
0.07733047008514404,
-0.0540461465716362,
0.002873210934922099,
0.015350094065070152,
-0.018896110355854034,
0.022472141310572624,
-0.02111344411969185,
-0.05378910154104233,
-0.011398420669138432,
-0.028287505730986595,
0.02202375791966915,
-0.012852710671722889,
-0.07466503232717514,
-0.04208526387810707,
0.005951890256255865,
0.012047838419675827,
-0.007023548241704702,
-0.026680009439587593,
0.00843807589262724,
-0.03958239033818245,
0.0076091475784778595,
-0.004324700217694044,
-0.031357843428850174,
-0.027094392105937004,
0.03785509616136551,
-0.04394672438502312,
0.013787399046123028,
-0.02306942455470562,
0.005790240131318569,
0.004178246017545462,
-0.02301602065563202,
0.018081961199641228,
-0.046411484479904175,
0.007926374673843384,
0.010497450828552246,
0.0206853449344635,
-0.018674375489354134,
0.02118285559117794,
-0.025731971487402916,
0.010995595715939999,
-0.03824928402900696,
0.006701046135276556,
-0.012215706519782543,
-0.005822442471981049,
0.03967815265059471,
0.04522545635700226,
-0.015513726510107517,
0.010851969942450523,
-0.0026926619466394186,
-0.02576575241982937,
0.043023765087127686,
-0.051742009818553925,
-0.04461381211876869,
-0.0151944849640131,
-0.040631212294101715,
0.014210144989192486,
0.021850597113370895,
0.010495685040950775,
-0.03750157356262207,
0.029830435290932655,
0.022876650094985962,
0.02408885583281517,
0.04599627107381821,
0.0033338649664074183,
0.02342946268618107,
-0.029299983754754066,
0.019500523805618286,
-0.1008753851056099,
-0.032590966671705246,
0.041462283581495285,
0.004187240730971098,
-0.023454133421182632,
0.021976962685585022,
-0.04293498024344444,
0.04755429923534393,
-0.05897637456655502,
-0.016785815358161926,
0.039987318217754364,
-0.009730602614581585,
-0.009794644080102444,
0.0016509427223354578,
-0.05619150027632713,
0.012620773166418076,
0.004245096817612648,
-0.05261288583278656,
0.02400093339383602,
0.0006985498475842178,
0.04940924793481827,
-0.02895313873887062,
0.0017280057072639465,
-0.04352506995201111,
0.017391851171851158,
0.06037161126732826,
0.0167813953012228,
0.01800326257944107,
0.01870703510940075,
-0.03245455399155617,
0.03870105743408203,
0.02216869406402111,
0.026455361396074295,
0.017124854028224945,
-0.010575749911367893,
0.014408398419618607,
-0.05418634042143822,
0.03414931520819664,
0.019133711233735085,
-0.026446564123034477,
-0.03646601736545563,
0.06372886896133423,
0.020870115607976913,
-0.040794167667627335,
-0.0735257938504219,
0.008706558495759964,
-0.02819870598614216,
0.005616058129817247,
0.005420616827905178,
-0.03038051724433899,
-0.01686311885714531,
0.04439330846071243,
-0.03596765920519829,
0.004997900687158108,
0.04714053496718407,
0.023235298693180084,
-0.010281593538820744,
-0.004607501905411482,
0.0717436671257019,
0.09684661030769348,
0.06439458578824997,
0.010638555511832237,
0.06530953198671341,
-0.027034664526581764,
-0.04653948172926903,
0.03168374300003052,
-0.010142713785171509,
0.014653129503130913,
-0.030468836426734924,
0.01637093909084797,
0.05092492327094078,
-0.011734507977962494,
0.07099958509206772,
-0.008644885383546352,
-0.01793360523879528,
-0.019365645945072174,
0.0005374353495426476,
0.012761065736413002,
0.05442715436220169,
0.01542412955313921,
0.039043936878442764,
-0.021892867982387543,
-0.04045893996953964,
0.0462711863219738,
-0.017203453928232193,
0.011692914180457592,
0.012909097597002983,
-0.012687723152339458,
0.015368934720754623,
0.0027516772970557213,
0.019615093246102333,
0.0775902196764946,
-0.0225845854729414,
-0.009792248718440533,
0.013308598659932613,
0.04967454448342323,
-0.0007081837975420058,
0.022040456533432007,
-0.004552408587187529,
-0.02988554537296295,
-0.001212047296576202,
-0.04706608131527901,
-0.0305444598197937,
-0.002503817668184638,
-0.022528935223817825,
0.0038797850720584393,
-0.02606034465134144,
0.00249183876439929,
0.04886094108223915,
-0.018782522529363632,
-0.03620702028274536,
-0.06284481287002563,
-0.035689566284418106,
-0.04541274160146713,
-0.05117131024599075,
-0.009533889591693878,
0.0006694779149256647,
-0.03537466749548912,
-0.021455205976963043,
0.0010637055383995175,
-0.01264564972370863,
-0.025769522413611412,
0.0034289562609046698,
-0.05080409720540047,
-0.019053993746638298,
0.030193960294127464,
0.013435170985758305,
0.03116997703909874,
0.01774825155735016,
0.06594827771186829,
0.048573918640613556,
-0.026366323232650757,
-0.0001491627626819536,
0.008138411678373814,
0.03651893883943558,
0.03088652901351452,
0.03589211776852608,
-0.08718671649694443,
-0.01485484093427658,
0.04587172344326973,
0.0038337192963808775,
-0.07608959823846817,
0.018630966544151306,
0.004812085535377264,
0.009625086560845375,
0.029699843376874924,
-0.01002342440187931,
0.030162595212459564,
-0.02718937210738659,
-0.03483225777745247,
-0.017999934032559395,
0.0065773362293839455,
0.030059661716222763,
-0.045096009969711304,
0.07943546026945114,
-0.0009558702586218715,
-0.00820743478834629,
-0.04269014298915863,
-0.0028233423363417387,
-0.001706295064650476,
0.00021118771110195667,
-0.038529425859451294,
-0.03300074115395546,
-0.01233444269746542,
-0.11551600694656372,
-0.014439630322158337,
-0.0033709248527884483,
-0.03697984665632248,
0.0033245852682739496,
0.0031490428373217583,
0.03278058022260666,
-0.025612715631723404,
0.025582103058695793,
-0.033111799508333206,
0.0063442448154091835,
-0.02961665950715542,
-0.028684183955192566,
-0.0044748722575604916,
0.05274166911840439,
-0.017678452655673027,
0.030698619782924652,
-0.00046917953295633197,
-0.047192882746458054,
-0.028550177812576294,
-0.03391275554895401,
0.02275964431464672,
0.05321383848786354,
0.022690361365675926,
-0.01234681811183691
] | [
-0.05611882358789444,
-0.006165971048176289,
-0.01078532449901104,
-0.04156477749347687,
0.06059996038675308,
0.00436908844858408,
-0.016848191618919373,
0.02767409011721611,
-0.0039778463542461395,
0.006008878815919161,
0.0055718570947647095,
-0.06044716387987137,
-0.0007423874922096729,
0.005831891670823097,
0.03347187861800194,
0.007070083636790514,
-0.0021925775799900293,
-0.04796839505434036,
-0.02489524707198143,
0.03306083381175995,
-0.012465200386941433,
-0.026073547080159187,
-0.03321021795272827,
-0.031321827322244644,
0.038838740438222885,
0.03493207320570946,
0.017818642780184746,
-0.034378279000520706,
0.000551695644389838,
-0.21071676909923553,
0.013599625788629055,
0.002138684969395399,
0.0350286141037941,
-0.04041210189461708,
0.007186861243098974,
0.07735762745141983,
0.0035973035264760256,
0.02186686359345913,
0.01805621199309826,
0.046008795499801636,
0.05633676052093506,
-0.0005227290675975382,
-0.044920191168785095,
-0.0391903780400753,
0.04681352153420448,
0.002042345702648163,
-0.030537310987710953,
-0.01368405856192112,
-0.031001916155219078,
0.028217872604727745,
-0.06251177936792374,
-0.0013660682598128915,
-0.02406259812414646,
-0.01665756292641163,
-0.011728459037840366,
0.018780706450343132,
0.04058545455336571,
0.022633176296949387,
0.018448689952492714,
0.01829163357615471,
-0.005776220001280308,
0.006818165071308613,
-0.1737404465675354,
0.08172141760587692,
0.02589513175189495,
0.05035185068845749,
-0.02434520050883293,
-0.009534797631204128,
-0.020714841783046722,
0.07826689630746841,
-0.008821528404951096,
-0.00956838671118021,
-0.02936456725001335,
0.07726473361253738,
0.002192935673519969,
-0.010286251083016396,
-0.023051485419273376,
0.012342738918960094,
0.01785675622522831,
-0.050377361476421356,
0.0024101301096379757,
0.01932445541024208,
-0.029152654111385345,
0.016026988625526428,
-0.00021640742488671094,
-0.01871633343398571,
-0.014658328145742416,
0.04305750131607056,
0.014117492362856865,
0.032163359224796295,
0.04559784010052681,
-0.006230910308659077,
0.008121692575514317,
0.012125859037041664,
-0.09035491198301315,
-0.023501383140683174,
0.0137892235070467,
0.027623658999800682,
-0.03139080852270126,
0.40960270166397095,
-0.030372757464647293,
-0.005619411822408438,
0.033580679446458817,
0.08482253551483154,
-0.013476269319653511,
-0.043468378484249115,
0.00894380733370781,
-0.04504850506782532,
-0.001572711393237114,
-0.02122567780315876,
0.026521852239966393,
-0.02143780142068863,
0.08019409328699112,
-0.053682610392570496,
-0.01247871108353138,
-0.01789066381752491,
0.04983130469918251,
0.018884792923927307,
0.011248576454818249,
-0.021467680111527443,
-0.04283187538385391,
-0.022237172350287437,
0.027632035315036774,
0.0007312402012757957,
0.028034228831529617,
-0.005629070568829775,
0.037307217717170715,
0.06321236491203308,
0.03725152462720871,
0.020466921851038933,
0.07422918826341629,
-0.03538921847939491,
-0.07379430532455444,
0.0053552123717963696,
-0.0289898794144392,
-0.005539324600249529,
0.04947682097554207,
0.002029794966802001,
-0.00204968242906034,
0.04951074719429016,
-0.017345834523439407,
-0.0004966302658431232,
0.05521848797798157,
-0.0152435889467597,
-0.028870899230241776,
0.13580907881259918,
0.00766213983297348,
-0.016111021861433983,
-0.026620225980877876,
-0.09620938450098038,
0.029533758759498596,
0.04907132312655449,
0.004810826387256384,
-0.0772010013461113,
0.011275897733867168,
0.037719156593084335,
0.06921162456274033,
-0.04257199913263321,
-0.06421077996492386,
-0.00535199511796236,
-0.04566626623272896,
-0.05941485986113548,
-0.05381518602371216,
0.011860163882374763,
0.05205823853611946,
-0.07785430550575256,
0.004731958266347647,
0.03946242481470108,
0.016916999593377113,
-0.039685461670160294,
0.03209003061056137,
-0.01226947084069252,
-0.02965981885790825,
0.01674533262848854,
0.04449127987027168,
-0.03524547815322876,
-0.034572068601846695,
0.029073571786284447,
0.04976174607872963,
-0.011766278184950352,
0.0009025903418660164,
-0.007470463402569294,
-0.046256113797426224,
0.011931880377233028,
-0.07169269770383835,
-0.05871650576591492,
-0.08125627785921097,
-0.015306291170418262,
-0.04021555185317993,
0.0005298387841321528,
-0.00032768817618489265,
-0.034905966371297836,
-0.05189220607280731,
0.055020105093717575,
-0.03013567626476288,
-0.029390744864940643,
0.019309841096401215,
0.019130190834403038,
-0.016951272264122963,
-0.03819164261221886,
-0.02085314691066742,
0.01833544299006462,
0.004247157368808985,
0.0070432634092867374,
-0.05775177851319313,
0.04321552440524101,
0.05375397577881813,
-0.03741903975605965,
0.06997735053300858,
0.04373682290315628,
0.012592042796313763,
-0.010984474793076515,
-0.0030210132244974375,
0.021238094195723534,
-0.014842968434095383,
0.013388535007834435,
-0.003212008159607649,
-0.014608646742999554,
0.0027575513813644648,
0.04209654778242111,
0.01666969805955887,
-0.05043051019310951,
0.00038573797792196274,
-0.3761107325553894,
-0.04158917814493179,
0.04121054708957672,
0.013143268413841724,
0.04181664437055588,
-0.04876190051436424,
0.028684323653578758,
0.00749892508611083,
-0.011403342708945274,
0.0342097245156765,
0.07910069823265076,
-0.007383821997791529,
-0.004654490388929844,
-0.05405578389763832,
-0.006894951686263084,
0.02824813313782215,
-0.041857052594423294,
-0.009535405784845352,
-0.055449411273002625,
-0.018068816512823105,
-0.0176699161529541,
-0.006100655999034643,
-0.05029023811221123,
-0.05344799533486366,
0.00820879079401493,
-0.04084531217813492,
0.125886470079422,
0.004037614446133375,
0.06988400220870972,
-0.030753230676054955,
0.0445544570684433,
-0.023789415135979652,
0.030330654233694077,
-0.025483695790171623,
0.026504740118980408,
-0.02411949448287487,
0.030307587236166,
0.014976265840232372,
-0.007984868250787258,
-0.0514586977660656,
-0.03293126821517944,
0.04688481613993645,
-0.01993815042078495,
-0.01903611794114113,
-0.07773172110319138,
0.030795741826295853,
-0.04758981615304947,
-0.012223353609442711,
-0.04207078740000725,
0.05314362794160843,
0.02291824109852314,
0.01173965074121952,
0.0305552426725626,
-0.009040171280503273,
0.007357236463576555,
-0.02226191945374012,
-0.09637894481420517,
0.0046490272507071495,
-0.017266469076275826,
-0.011270384304225445,
0.023919712752103806,
0.03606010600924492,
0.035842832177877426,
-0.07378656417131424,
-0.0189814493060112,
-0.000036669403925770894,
0.006715375930070877,
-0.016530530527234077,
0.03519657254219055,
0.00720882648602128,
-0.0170131865888834,
0.12637633085250854,
0.011112535372376442,
0.027504611760377884,
0.05106036365032196,
0.011757224798202515,
-0.022234486415982246,
0.014689881354570389,
-0.01006657537072897,
0.009508885443210602,
0.04515906795859337,
-0.01879751868546009,
-0.010608269833028316,
-0.01650332286953926,
0.01697867177426815,
0.01893852837383747,
0.016819439828395844,
-0.04780010133981705,
0.05834108963608742,
0.053929127752780914,
-0.005321266129612923,
-0.017123643308877945,
-0.014438115060329437,
-0.03540061041712761,
0.057547394186258316,
0.010611110366880894,
-0.2808837890625,
-0.010193554684519768,
0.017051076516509056,
0.06451829522848129,
-0.021351831033825874,
-0.011969201266765594,
0.031235074624419212,
-0.03059469722211361,
-0.0027480788994580507,
0.015103813260793686,
-0.011596281081438065,
0.06625867635011673,
0.057236675173044205,
0.01657239906489849,
0.0363399013876915,
-0.005068185273557901,
0.049183446913957596,
-0.018469439819455147,
0.024657918140292168,
-0.033014122396707535,
0.02044159732758999,
-0.0525788851082325,
0.1518513560295105,
0.002868445124477148,
-0.0016767752822488546,
0.03822152689099312,
-0.015628576278686523,
-0.03565279766917229,
0.05982363224029541,
-0.005292447283864021,
-0.017361678183078766,
-0.012032443657517433,
0.0215781107544899,
-0.005855044350028038,
0.03153922036290169,
0.01206672377884388,
-0.05933348089456558,
0.03497638925909996,
0.02132977917790413,
-0.038207828998565674,
-0.0033710848074406385,
0.0066550434567034245,
0.009728402830660343,
0.04694924131035805,
0.08005636930465698,
-0.05143458768725395,
0.023107968270778656,
-0.025618676096200943,
-0.023790931329131126,
-0.002075953409075737,
-0.016979387030005455,
0.024132998660206795,
-0.021229976788163185,
-0.028423145413398743,
0.02417570725083351,
0.05460980534553528,
0.014425309374928474,
0.010016370564699173,
0.032435208559036255,
-0.0023039772640913725,
-0.025923095643520355,
-0.05548567697405815,
0.08438985049724579,
-0.00019545176473911852,
0.014555159956216812
] | [
0.011232149787247181,
0.0214370284229517,
0.025000063702464104,
0.047862108796834946,
0.02241438440978527,
0.0031166246626526117,
0.00543622300028801,
0.03900329768657684,
-0.007495139259845018,
0.03172086551785469,
-0.005635818932205439,
0.03136671334505081,
0.015699001029133797,
0.013996492139995098,
-0.03061339631676674,
-0.029777001589536667,
0.016430236399173737,
-0.0013433127896860242,
-0.014786104671657085,
0.00018860556883737445,
-0.006443931255489588,
0.016413794830441475,
0.020045200362801552,
0.03447708114981651,
-0.044455770403146744,
-0.005298309028148651,
-0.026204505935311317,
0.055996399372816086,
0.047695327550172806,
-0.1417893022298813,
-0.008541472256183624,
-0.01363785844296217,
0.0115264393389225,
-0.020809132605791092,
-0.02061312273144722,
0.009790654294192791,
-0.00567716034129262,
-0.014715689234435558,
0.001329531311057508,
0.00046450193622149527,
0.008047791197896004,
-0.04214399307966232,
0.008629349060356617,
0.03346308693289757,
0.013293799944221973,
-0.009567109867930412,
-0.0010386095382273197,
0.010583169758319855,
0.012754512950778008,
0.016212815418839455,
-0.06536618620157242,
0.023073725402355194,
0.016984866932034492,
-0.016620347276329994,
-0.016662783920764923,
-0.026211939752101898,
-0.016891302540898323,
-0.03965958580374718,
-0.011628293432295322,
-0.0193268321454525,
0.017070041969418526,
0.011915645562112331,
-0.036653295159339905,
0.000850832904689014,
-0.03440731018781662,
-0.008373895660042763,
-0.028910918161273003,
-0.019690541550517082,
0.0016793207032606006,
0.03196094185113907,
0.0005204605404287577,
0.015679799020290375,
0.014217096380889416,
-0.007056063506752253,
-0.013638489879667759,
0.02384071983397007,
-0.025012731552124023,
0.002794587053358555,
0.03215785324573517,
-0.009722672402858734,
-0.015987668186426163,
0.000016864671124494635,
-0.012706730514764786,
-0.005661521572619677,
-0.030585914850234985,
-0.06504197418689728,
0.027490541338920593,
0.029836837202310562,
0.018449973315000534,
-0.02385944128036499,
-0.04391435906291008,
0.038125403225421906,
-0.007394685409963131,
0.03265254944562912,
-0.14515924453735352,
-0.0012542321346700191,
0.0010682990541681647,
0.03079896792769432,
-0.02222026325762272,
0.7976016402244568,
-0.032479602843523026,
0.028942912817001343,
0.04327830672264099,
0.03571641817688942,
-0.009910746477544308,
-0.0015338379889726639,
0.027722183614969254,
-0.01776004210114479,
-0.025310084223747253,
-0.054332930594682693,
-0.003315650625154376,
0.013578896410763264,
0.01873619668185711,
0.057552047073841095,
0.027904832735657692,
0.02548636496067047,
-0.0025246557779610157,
0.03552783653140068,
-0.008807274512946606,
-0.02616996131837368,
-0.020228775218129158,
-0.032943714410066605,
0.02807650715112686,
0.014878484420478344,
-0.0058794571086764336,
-0.19203044474124908,
-0.028060507029294968,
-6.828418031251867e-33,
0.042685769498348236,
-0.021941790357232094,
-0.0074945916421711445,
-0.009053550660610199,
0.031581811606884,
-0.006022496148943901,
-0.023891115561127663,
-0.0026982263661921024,
0.0008168396889232099,
0.00828587170690298,
0.011809869669377804,
0.0006764211575500667,
0.01715366542339325,
-0.03303550183773041,
0.029145434498786926,
0.011747526004910469,
-0.004188599064946175,
0.02377413772046566,
-0.037942301481962204,
-0.01945420168340206,
0.03120489977300167,
0.033235713839530945,
-0.00577440345659852,
0.05317537859082222,
0.06530367583036423,
0.04336658865213394,
0.005709540564566851,
0.019756648689508438,
0.0075772530399262905,
-0.047591567039489746,
-0.002400871366262436,
0.04896625131368637,
-0.009604758583009243,
-0.0313192717730999,
0.03759748116135597,
-0.038884732872247696,
0.013888615183532238,
0.012227268889546394,
-0.018689677119255066,
0.04313589632511139,
-0.025614893063902855,
-0.03209918737411499,
-0.0024407729506492615,
0.01478003989905119,
-0.04284821078181267,
0.0412965826690197,
0.030368322506546974,
0.04105651006102562,
0.001059656497091055,
-0.006396659184247255,
-0.007746439892798662,
-0.0006076203426346183,
0.019836772233247757,
-0.038600385189056396,
-0.02841121330857277,
0.04414501041173935,
0.005482322536408901,
0.011029387824237347,
0.01652805507183075,
-0.023085545748472214,
-0.04663710296154022,
-0.03924413025379181,
0.0068584019318223,
-0.002004323760047555,
-0.02536635845899582,
-0.002745884470641613,
-0.020816463977098465,
-0.02272934466600418,
0.025469493120908737,
0.03792896866798401,
-0.021485788747668266,
0.018414858728647232,
-0.015418325550854206,
0.0007298043929040432,
0.03992708399891853,
-0.04673146829009056,
0.005799813196063042,
-0.0062877279706299305,
0.036426056176424026,
0.024544445797801018,
-0.016018446534872055,
-0.032471392303705215,
-0.006525182630866766,
-0.0011264163767918944,
-0.02454897202551365,
-0.054183393716812134,
0.05299706012010574,
0.027019478380680084,
-0.00644740229472518,
-0.030205169692635536,
-0.037195198237895966,
-0.015624267049133778,
0.0010516468901187181,
-0.03306950628757477,
-0.011589812114834785,
7.519182592833199e-33,
0.03981981426477432,
0.02397707849740982,
-0.0042627486400306225,
-0.0027575299609452486,
0.007418155670166016,
-0.0034321157727390528,
0.06257449835538864,
-0.020735278725624084,
-0.009316428564488888,
0.012628089636564255,
-0.034988630563020706,
-0.03264772519469261,
0.03577520698308945,
0.03204299882054329,
0.014784038998186588,
-0.022214245051145554,
0.027992988005280495,
-0.026745636016130447,
-0.033728864043951035,
0.02159223146736622,
0.0062772613018751144,
0.010812739841639996,
-0.01508873887360096,
-0.005081603303551674,
0.04044719785451889,
0.057349104434251785,
0.0193434227257967,
0.05042543634772301,
-0.055043432861566544,
0.00021126773208379745,
0.030632391571998596,
-0.02033153921365738,
0.014241734519600868,
-0.022497383877635002,
0.007249022368341684,
0.06006789579987526,
0.02080841362476349,
0.0020735287107527256,
-0.04550360515713692,
-0.03928599879145622,
0.03892820328474045,
-0.024577025324106216,
0.011908596381545067,
0.032308947294950485,
0.025812119245529175,
-0.006140758749097586,
-0.02239842526614666,
0.006999322213232517,
-0.02039201557636261,
0.0042342571541666985,
-0.026472073048353195,
-0.0025457891169935465,
-0.0037313729990273714,
0.061484213918447495,
0.04097876325249672,
0.0009258679347112775,
-0.02230568788945675,
0.025317097082734108,
-0.003506349865347147,
0.010773161426186562,
-0.03092447854578495,
-0.0005255535943433642,
0.0035385156515985727,
0.009504096582531929,
-0.012921457178890705,
-0.02606726810336113,
-0.02791674993932247,
-0.011418786831200123,
0.011295700445771217,
0.018564898520708084,
-0.029348790645599365,
-0.05377323180437088,
0.03877568244934082,
0.04808551445603371,
-0.0010239072144031525,
0.009906918741762638,
-0.016136784106492996,
-0.020005587488412857,
0.022144393995404243,
0.007639035582542419,
0.04033762961626053,
-0.07702255994081497,
0.008297228254377842,
0.0035777261946350336,
-0.003924655262380838,
0.039677318185567856,
0.007937708869576454,
0.017933567985892296,
0.05332985520362854,
0.008813348598778248,
0.015787124633789062,
0.003416880499571562,
-0.0002887547598220408,
0.006714120507240295,
0.016057031229138374,
-1.2368796653561276e-8,
-0.008733277209103107,
0.033984649926424026,
0.005823953542858362,
0.016867103055119514,
0.014700392261147499,
0.00345403328537941,
-0.019007911905646324,
-0.03219223767518997,
-0.032688140869140625,
-0.004865185357630253,
0.06382305175065994,
-0.027533356100320816,
-0.013596833683550358,
0.021002430468797684,
-0.00901725422590971,
-0.040156345814466476,
0.0037554288282990456,
-0.01173154916614294,
0.025497326627373695,
-0.0020691370591521263,
-0.05562224239110947,
0.025315580889582634,
-0.002484333934262395,
-0.0017484675627201796,
0.04816484451293945,
0.015304217115044594,
0.003467450849711895,
-0.13866685330867767,
-0.005272883456200361,
-0.019149936735630035,
-0.015188608318567276,
0.0028992127627134323,
0.019330330193042755,
0.05359026789665222,
0.016018865630030632,
0.0023626997135579586,
0.0530693344771862,
0.028218917548656464,
0.027528297156095505,
0.01046079397201538,
-0.009344176389276981,
0.012930041179060936,
-0.046706922352313995,
-0.03506845980882645,
0.006937119644135237,
0.024292292073369026,
-0.024083517491817474,
0.006015860475599766,
0.017454594373703003,
-0.010858158580958843,
0.0029164839070290327,
-0.023342078551650047,
-0.0433276928961277,
0.02082827314734459,
0.008646029978990555,
-0.03332800045609474,
-0.026392579078674316,
0.013229912146925926,
-0.024111896753311157,
0.015451154671609402,
-0.026599988341331482,
-0.04455830156803131,
-0.023133818060159683,
-0.039369478821754456
] | r-bootstrap-confidence-intervals | https://markhneedham.com/blog/2015/07/19/r-bootstrap-confidence-intervals |
false | 2015-07-21 06:11:25 | Neo4j 2.2.3: neo4j-import - Encoder StringEncoder[2] returned an illegal encoded value 0 | [
"neo4j"
] | [
"neo4j"
] | I've been playing around with the Chicago crime data set again while preparing for a Neo4j webinar next week and while running the http://neo4j.com/docs/stable/import-tool.html[import tool] ran into the following exception:
[source,bash]
----
Importing the contents of these files into tmp/crimes.db:
Nodes:
/Users/markneedham/projects/neo4j-spark-chicago/tmp/crimes.csv
/Users/markneedham/projects/neo4j-spark-chicago/tmp/beats.csv
/Users/markneedham/projects/neo4j-spark-chicago/tmp/primaryTypes.csv
/Users/markneedham/projects/neo4j-spark-chicago/tmp/locations.csv
Relationships:
/Users/markneedham/projects/neo4j-spark-chicago/tmp/crimesBeats.csv
/Users/markneedham/projects/neo4j-spark-chicago/tmp/crimesPrimaryTypes.csv
/Users/markneedham/projects/neo4j-spark-chicago/tmp/crimesLocationsCleaned.csv
Available memory:
Free machine memory: 263.17 MB
Max heap memory : 3.56 GB
Nodes
[*>:17.41 MB/s-------------------------|PROPERTIES(3)=|NODE:3|LABEL SCAN----|v:36.30 MB/s(2)===] 3MImport error: Panic called, so exiting
java.lang.RuntimeException: Panic called, so exiting
at org.neo4j.unsafe.impl.batchimport.staging.AbstractStep.assertHealthy(AbstractStep.java:200)
at org.neo4j.unsafe.impl.batchimport.staging.AbstractStep.await(AbstractStep.java:191)
at org.neo4j.unsafe.impl.batchimport.staging.ProcessorStep.receive(ProcessorStep.java:98)
at org.neo4j.unsafe.impl.batchimport.staging.ProcessorStep.sendDownstream(ProcessorStep.java:224)
at org.neo4j.unsafe.impl.batchimport.staging.ProcessorStep.access$400(ProcessorStep.java:42)
at org.neo4j.unsafe.impl.batchimport.staging.ProcessorStep$Sender.send(ProcessorStep.java:250)
at org.neo4j.unsafe.impl.batchimport.LabelScanStorePopulationStep.process(LabelScanStorePopulationStep.java:60)
at org.neo4j.unsafe.impl.batchimport.LabelScanStorePopulationStep.process(LabelScanStorePopulationStep.java:37)
at org.neo4j.unsafe.impl.batchimport.staging.ProcessorStep$4.run(ProcessorStep.java:120)
at org.neo4j.unsafe.impl.batchimport.staging.ProcessorStep$4.run(ProcessorStep.java:102)
at org.neo4j.unsafe.impl.batchimport.executor.DynamicTaskExecutor$Processor.run(DynamicTaskExecutor.java:237)
Caused by: java.lang.IllegalStateException: Encoder StringEncoder[2] returned an illegal encoded value 0
at org.neo4j.unsafe.impl.batchimport.cache.idmapping.string.EncodingIdMapper.encode(EncodingIdMapper.java:229)
at org.neo4j.unsafe.impl.batchimport.cache.idmapping.string.EncodingIdMapper.put(EncodingIdMapper.java:208)
at org.neo4j.unsafe.impl.batchimport.NodeEncoderStep.process(NodeEncoderStep.java:77)
at org.neo4j.unsafe.impl.batchimport.NodeEncoderStep.process(NodeEncoderStep.java:43)
... 3 more
----
I narrowed the problem down to a specific file and from tracing the code learned that this exception happens when we've ended up with a node that doesn't have an id.
I guessed that this might be due to there being an empty column somewhere in my CSV file so I did a bit of grepping:
[source,bash]
----
$ grep -rn "\"\"" tmp/locations.csv
tmp/locations.csv:11:"",Location
----
We can now narrow down the import to just the one line and see if we still get the exception:
[source,bash]
----
$ cat foo.csv
id:ID(Location),:LABEL
"",Location
$ ./neo4j-community-2.2.3/bin/neo4j-import --into tmp/foo --nodes foo.csv
Importing the contents of these files into tmp/foo:
Nodes:
/Users/markneedham/projects/neo4j-spark-chicago/foo.csv
Available memory:
Free machine memory: 2.22 GB
Max heap memory : 3.56 GB
Nodes
Import error: Encoder StringEncoder[2] returned an illegal encoded value 0
----
Yep, same error. Now we can clean up our CSV file and try again:
[source,bash]
----
$ grep -v "\"\"" foo.csv > fooCleaned.csv
# I put in a few real records so we can see them import
$ cat fooCleaned.csv
id:ID(Location),:LABEL
"RAILROAD PROPERTY",Location
"NEWSSTAND",Location
"SCHOOL, PRIVATE, BUILDING",Location
$ ./neo4j-community-2.2.3/bin/neo4j-import --into tmp/foo --nodes fooCleaned.csv
Importing the contents of these files into tmp/foo:
Nodes:
/Users/markneedham/projects/neo4j-spark-chicago/fooCleaned.csv
Available memory:
Free machine memory: 1.23 GB
Max heap memory : 3.56 GB
Nodes
[*>:??-------------------------------------------------|PROPE|NODE:7.63 MB-----------------|LA] 10k
Done in 110ms
Prepare node index
[*DETECT:7.63 MB-------------------------------------------------------------------------------] 0
Done in 60ms
Calculate dense nodes
[*>:??-----------------------------------------------------------------------------------------] 0
Done in 10ms
Relationships
[*>:??-----------------------------------------------------------------------------------------] 0
Done in 11ms
Node --> Relationship
[*v:??-----------------------------------------------------------------------------------------] 10k
Done in 1ms
Relationship --> Relationship
[*>:??-----------------------------------------------------------------------------------------] 0
Done in 11ms
Node counts
[>:|*COUNT:76.29 MB----------------------------------------------------------------------------] 10k
Done in 46ms
Relationship counts
[*>:??-----------------------------------------------------------------------------------------] 0
Done in 12ms
IMPORT DONE in 1s 576ms. Imported:
3 nodes
0 relationships
3 properties
----
Sweet! We're back in business. | null | null | [
-0.010708595626056194,
-0.031871434301137924,
-0.042831990867853165,
0.05035059526562691,
0.09539718180894852,
-0.002711429726332426,
0.03948443755507469,
0.019924424588680267,
0.016270002350211143,
-0.017060600221157074,
-0.012570888735353947,
-0.02106332965195179,
-0.07145560532808304,
0.024014804512262344,
-0.010280056856572628,
0.05574057996273041,
0.05816592276096344,
0.00741314934566617,
0.026725003495812416,
-0.016660651192069054,
0.020066551864147186,
0.03170892223715782,
0.0028085496742278337,
0.045361749827861786,
0.012870235368609428,
-0.005203665234148502,
0.004220214672386646,
-0.013744037598371506,
-0.06613200157880783,
0.002597625134512782,
0.050907790660858154,
0.02605357952415943,
0.019920438528060913,
-0.009174575097858906,
0.037222303450107574,
0.018755150958895683,
-0.03304775804281235,
0.001276945462450385,
-0.0018389762844890356,
0.01621360518038273,
-0.05684054642915726,
0.033485185354948044,
-0.025974590331315994,
0.011993562802672386,
-0.03907002881169319,
0.003848918015137315,
-0.028791088610887527,
0.040344737470149994,
0.007539030164480209,
-0.022757913917303085,
-0.07403768599033356,
0.03757178410887718,
-0.011463469825685024,
-0.005829112138599157,
0.007918566465377808,
0.03233753517270088,
-0.007620884105563164,
-0.07622574269771576,
0.06376904994249344,
-0.034093089401721954,
-0.0078104520216584206,
-0.03869058936834335,
-0.0034782076254487038,
-0.00006430241774069145,
0.010850616730749607,
-0.036864690482616425,
-0.0026997392997145653,
0.08125974237918854,
-0.056190092116594315,
-0.035284604877233505,
0.014989744871854782,
0.028460513800382614,
-0.02305750362575054,
-0.008991852402687073,
0.0007673532818444073,
-0.06653294712305069,
0.006066432222723961,
0.04737525433301926,
0.0034375647082924843,
0.06792077422142029,
-0.010533347725868225,
0.009030521847307682,
0.02747584879398346,
0.024288132786750793,
0.02271910384297371,
-0.055158235132694244,
-0.04775702953338623,
-0.024527067318558693,
-0.04202602058649063,
0.050668876618146896,
0.02241292968392372,
-0.024657579138875008,
-0.0026487456634640694,
0.02486182376742363,
-0.024750875309109688,
0.04212012141942978,
0.0011917039519175887,
0.00417302455753088,
0.018251530826091766,
-0.0039883325807750225,
-0.03471364080905914,
-0.01761685498058796,
0.004567777272313833,
0.04014075919985771,
-0.06556873768568039,
-0.03221866488456726,
-0.004334213212132454,
-0.026620037853717804,
0.004087453708052635,
-0.012650921940803528,
-0.025859065353870392,
0.016708768904209137,
-0.01656923070549965,
-0.013154310174286366,
-0.08846298605203629,
0.08608035743236542,
0.03004327602684498,
-0.01104913279414177,
-0.004898501094430685,
0.011499151587486267,
0.045432791113853455,
0.02583989128470421,
-0.0024670010898262262,
0.08870004117488861,
-0.0037159037310630083,
0.03963929042220116,
0.008251919411122799,
0.05512826517224312,
0.024147387593984604,
-0.06739361584186554,
-0.026651643216609955,
0.07194578647613525,
0.005367254372686148,
0.00000998236191662727,
-0.019626589491963387,
-0.025025194510817528,
-0.025289108976721764,
0.015255123376846313,
0.048725567758083344,
0.024668775498867035,
0.013791725970804691,
-0.042240772396326065,
0.02940193936228752,
0.008709176443517208,
0.032782282680273056,
-0.0029863070230931044,
-0.03140965849161148,
-0.011963402852416039,
-0.012421715073287487,
0.03098427876830101,
0.027834566310048103,
0.05515744537115097,
0.054473500698804855,
-0.023756876587867737,
0.004540975671261549,
0.11250703036785126,
0.03961115702986717,
0.0016503441147506237,
-0.03112652339041233,
0.02080324850976467,
0.049490656703710556,
0.04210502654314041,
0.005603261291980743,
0.02837298810482025,
-0.006404484156519175,
-0.016785336658358574,
-0.02115272916853428,
0.03755439445376396,
-0.010318693704903126,
0.02419455535709858,
-0.04797502979636192,
-0.05961299315094948,
0.05029314011335373,
-0.04027535021305084,
-0.006689217872917652,
0.03310857340693474,
0.07611430436372757,
0.013678847812116146,
0.02378155291080475,
-0.014072517864406109,
-0.07011128962039948,
0.03443485125899315,
-0.004420194774866104,
0.02748570404946804,
-0.004374489188194275,
0.013118814677000046,
0.05976998060941696,
0.026015643030405045,
0.02668512985110283,
0.04385411739349365,
-0.07782533764839172,
-0.08292174339294434,
-0.014745994471013546,
-0.010901193134486675,
0.05697416141629219,
-0.015295799821615219,
0.01678362675011158,
0.038410257548093796,
-0.005713416263461113,
0.030946971848607063,
0.0057949405163526535,
0.009517009370028973,
0.03769516199827194,
-0.04630587249994278,
-0.048041462898254395,
0.055516794323921204,
0.03339741751551628,
-0.03605366498231888,
-0.04958983138203621,
0.018365005031228065,
-0.006995749659836292,
0.005546567030251026,
0.04412505030632019,
-0.029599586501717567,
0.06136301904916763,
-0.0025833642575889826,
0.04436114802956581,
0.0022449472453445196,
0.042147912085056305,
-0.0610799677670002,
0.031024260446429253,
-0.018171438947319984,
-0.028535228222608566,
-0.004506879020482302,
-0.0016521854558959603,
0.10882264375686646,
0.0425412543118,
-0.015776239335536957,
-0.0436863973736763,
0.017015479505062103,
0.02070356160402298,
-0.03559988737106323,
0.009606641717255116,
-0.005708778277039528,
-0.0031979253981262445,
0.01077561266720295,
-0.03014465980231762,
-0.01628504879772663,
0.0066934316419065,
-0.04495004564523697,
-0.001237831194885075,
0.05962028354406357,
-0.022187335416674614,
0.07126162201166153,
0.018273334950208664,
-0.023904763162136078,
0.0006515359273180366,
-0.04323026165366173,
-0.05574365332722664,
0.005447618663311005,
0.0202022772282362,
-0.003491618437692523,
0.043621454387903214,
-0.02230917103588581,
-0.010828064754605293,
-0.033044327050447464,
-0.030476395040750504,
0.02821415103971958,
0.0706176683306694,
0.04873038828372955,
0.004857860971242189,
0.043865688145160675,
-0.06244005635380745,
-0.009588313288986683,
-0.017587877810001373,
-0.03835512697696686,
-0.028024548664689064,
-0.022863365709781647,
0.03457221761345863,
-0.0031778018455952406,
0.012154234573245049,
0.002882525324821472,
0.019633669406175613,
0.022624552249908447,
0.02892049215734005,
-0.024149997159838676,
0.037131283432245255,
0.006315992213785648,
-0.007040000054985285,
-0.03148425370454788,
-0.020997028797864914,
0.03314239904284477,
-0.05199693515896797,
-0.02871108055114746,
0.012553219683468342,
-0.06009075418114662,
0.050251517444849014,
-0.04846135154366493,
-0.044651538133621216,
0.007571191526949406,
0.023699307814240456,
0.03790580853819847,
0.022531116381287575,
-0.00946045946329832,
0.06057167798280716,
-0.004035160876810551,
0.0010991670424118638,
0.027607792988419533,
-0.0001324755430687219,
0.03775918856263161,
-0.006679813843220472,
0.05242764949798584,
0.017031528055667877,
-0.020618144422769547,
-0.01144345011562109,
-0.027899766340851784,
-0.007309871260076761,
-0.025786038488149643,
-0.29396378993988037,
0.05048621445894241,
-0.022744908928871155,
-0.05323892459273338,
0.014069275930523872,
-0.028476398438215256,
-0.001413981313817203,
-0.03101150505244732,
-0.01674407534301281,
-0.00896658468991518,
-0.0015906346961855888,
-0.036935582756996155,
-0.000535966653842479,
0.03652407228946686,
0.0178572665899992,
-0.005126830656081438,
0.005436784587800503,
-0.04949995502829552,
-0.01021439116448164,
0.0287865549325943,
0.005855132360011339,
-0.02980618178844452,
-0.008780690841376781,
0.022993074730038643,
0.03414291515946388,
0.05880215764045715,
-0.07779817283153534,
0.05657249316573143,
-0.057555824518203735,
-0.046874914318323135,
0.0300514604896307,
-0.04464363679289818,
-0.006986364256590605,
-0.01555179338902235,
-0.015475001186132431,
-0.0004080848884768784,
0.015292268246412277,
0.005065777339041233,
-0.025849848985671997,
-0.0004878773761447519,
-0.03082437440752983,
-0.07192779332399368,
-0.019329844042658806,
-0.005602793302386999,
0.07531506568193436,
-0.007469686213880777,
-0.058534886687994,
0.00585553515702486,
-0.01824665628373623,
0.06722486019134521,
-0.03507714346051216,
-0.029969314113259315,
-0.011501164175570011,
0.03211452439427376,
-0.011587119661271572,
-0.014338618144392967,
-0.022456256672739983,
0.004827937111258507,
-0.05465347692370415,
-0.01886886917054653,
0.009911498986184597,
-0.05191432684659958,
0.007418807130306959,
-0.03672105818986893,
-0.027812181040644646,
-0.06285330653190613,
-0.06510404497385025,
-0.032553043216466904,
0.05535837262868881,
0.011649015359580517,
-0.015425235033035278,
0.036801327019929886,
0.025208478793501854,
-0.09777102619409561,
-0.035639144480228424,
-0.034995097666978836,
-0.022932477295398712,
0.00045439813402481377,
-0.029282424598932266,
0.04970212280750275,
-0.05303115397691727,
-0.048909567296504974,
0.015402151271700859,
0.015813415870070457,
0.02491462044417858,
-0.006745138205587864,
0.019094601273536682,
-0.0042966934852302074,
-0.048588693141937256,
0.00040977488970384,
0.05435560643672943,
-0.022955378517508507,
-0.011650742962956429,
-0.030581213533878326,
-0.018532102927565575,
0.02812405861914158,
-0.007968750782310963,
0.008634028024971485,
0.009022807702422142,
0.054359450936317444,
0.027615917846560478,
-0.047932788729667664,
0.011259707622230053,
-0.05226542800664902,
-0.030064139515161514,
-0.012742465361952782,
-0.04235845059156418,
0.025370018556714058,
0.024111635982990265,
0.021304255351424217,
0.0348551943898201,
-0.011579680256545544,
0.04071018099784851,
-0.061457715928554535,
-0.027042221277952194,
-0.004957434255629778,
0.0207204669713974,
0.021521039307117462,
0.052443716675043106,
-0.027308639138936996,
-0.06315892934799194,
0.015384779311716557,
0.015514558181166649,
-0.004725696053355932,
-0.0608258880674839,
-0.04486638680100441,
-0.020701663568615913,
-0.010601184330880642,
-0.013840441592037678,
0.005479284096509218,
-0.0466243252158165,
0.028618168085813522,
0.03206916153430939,
-0.01366476807743311,
0.031171752139925957,
-0.03541947901248932,
-0.04927913844585419,
-0.05072420462965965,
0.016924243420362473,
0.012795878574252129,
0.005027807783335447,
0.011727969162166119,
-0.0057488782331347466,
0.01916985586285591,
0.058208782225847244,
0.00955978874117136,
0.017662178725004196,
-0.010157614946365356,
0.01697014831006527,
-0.013138233684003353,
-0.00396019546315074,
-0.037534959614276886,
0.04216708242893219,
-0.0490582175552845,
-0.06662086397409439,
0.012443207204341888,
0.056581418961286545,
-0.013961547054350376,
-0.026598166674375534,
-0.02648055925965309,
0.035594359040260315,
-0.0441526398062706,
0.0038649083580821753,
-0.024223899468779564,
-0.0004502452502492815,
0.04696850851178169,
-0.011978411115705967,
0.004406744614243507,
-0.032460767775774,
-0.005078192800283432,
-0.0007899854681454599,
0.0024824393913149834,
-0.03096558339893818,
0.007168496027588844,
-0.004984844010323286,
0.01467068213969469,
-0.0018273307941854,
0.01994447037577629,
0.025887470692396164,
0.04223545640707016,
-0.03456837311387062,
-0.009570292197167873,
0.012009317986667156,
0.01903771422803402,
0.05313993990421295,
0.040842488408088684,
-0.01932387612760067,
-0.0077008469961583614,
-0.016280213370919228,
-0.03422262892127037,
-0.0272397231310606,
-0.017504287883639336,
-0.010306878946721554,
0.022027160972356796,
-0.017312616109848022,
-0.07984447479248047,
0.04142053425312042,
0.000058353518397780135,
0.011371173895895481,
0.035833362489938736,
0.01894679293036461,
-0.0031947691459208727,
-0.026116879656910896,
0.03917289897799492,
0.04133035987615585,
-0.056691188365221024,
-0.010512290522456169,
-0.002107740379869938,
0.011395386420190334,
0.01778629794716835,
-0.006031926721334457,
-0.05626757815480232,
-0.01846761256456375,
-0.024656221270561218,
0.025243127718567848,
-0.02972015179693699,
-0.04673789441585541,
-0.025297023355960846,
-0.0010336770210415125,
-0.0182492658495903,
0.004027508664876223,
0.011360717006027699,
0.030179372057318687,
-0.03210746496915817,
-0.013153612613677979,
0.04349502548575401,
-0.02704733982682228,
-0.008290274068713188,
0.013077630661427975,
-0.009395132772624493,
0.008950433693826199,
-0.016719287261366844,
0.03204282000660896,
0.023292189463973045,
-0.011128907091915607,
-0.011965322308242321,
-0.0313546359539032,
0.02261139079928398,
0.030771750956773758,
0.04625094681978226,
0.0070319282822310925,
0.005033578258007765,
-0.00998945627361536,
0.008730897679924965,
-0.011129413731396198,
0.020017942413687706,
-0.0005000752862542868,
-0.008234142325818539,
0.014757505618035793,
0.03789730370044708,
0.002502543618902564,
0.038024578243494034,
-0.016626663506031036,
-0.02712992951273918,
0.06322255730628967,
-0.04748959466814995,
-0.04307118058204651,
-0.015624571591615677,
-0.04154818505048752,
0.014230083674192429,
0.02869340404868126,
-0.003923582378774881,
-0.023544762283563614,
0.0538003109395504,
0.0382145456969738,
0.015754153952002525,
0.026453202590346336,
-0.016509050503373146,
0.02740894816815853,
-0.044380053877830505,
-0.02676275186240673,
-0.08391745388507843,
0.01121462881565094,
0.0332321859896183,
-0.023827552795410156,
0.009909078478813171,
-0.018658800050616264,
-0.041535090655088425,
-0.012661934830248356,
-0.07755717635154724,
-0.03693176433444023,
0.029323725029826164,
-0.03525141626596451,
0.02172558382153511,
0.00515064736828208,
-0.03280253708362579,
0.018759410828351974,
0.030490480363368988,
-0.060178469866514206,
-0.029719768092036247,
-0.03931012377142906,
0.06514960527420044,
-0.005456515122205019,
0.03769974038004875,
-0.033953163772821426,
-0.014381278306245804,
0.07432257384061813,
0.028556114062666893,
0.037622012197971344,
0.05035262554883957,
-0.01806768774986267,
0.043342068791389465,
0.031823113560676575,
-0.020050538703799248,
-0.0008471981855109334,
0.018876492977142334,
-0.010294845327734947,
-0.06152888014912605,
0.01471935585141182,
0.008516584523022175,
-0.005349191837012768,
-0.04369867965579033,
0.0674096867442131,
0.013495163060724735,
-0.0399426631629467,
-0.011543456465005875,
0.030199658125638962,
-0.03943391144275665,
-0.023319588974118233,
-0.06549078971147537,
-0.0035405103117227554,
-0.02726431004703045,
0.0633598119020462,
-0.037013035267591476,
0.02126980945467949,
0.07583547383546829,
-0.01508384756743908,
0.0027529827784746885,
0.009334729984402657,
0.09071921557188034,
0.08242680877447128,
0.02006767876446247,
-0.005749796517193317,
0.06679452210664749,
-0.027512218803167343,
-0.027097083628177643,
0.0038175552617758512,
-0.03518987074494362,
-0.02272721379995346,
-0.007644046563655138,
0.009416871704161167,
0.06676805019378662,
-0.01269574649631977,
0.08905758708715439,
-0.02281533181667328,
0.00028193314210511744,
-0.009576532058417797,
-0.004989607259631157,
0.04014038294553757,
0.04270101711153984,
0.005148943513631821,
0.053613390773534775,
-0.035196855664253235,
-0.02419220097362995,
0.02700241282582283,
0.0235732588917017,
-0.021092703565955162,
0.027017364278435707,
-0.03419068828225136,
0.010609556920826435,
0.01875484548509121,
0.028540873900055885,
0.09621158987283707,
-0.02016407996416092,
-0.0050828661769628525,
-0.016984228044748306,
0.03616805747151375,
0.004389847628772259,
0.008323938585817814,
-0.030237998813390732,
-0.031986888498067856,
-0.012243596836924553,
-0.05967732146382332,
-0.009866480715572834,
-0.006697935052216053,
-0.056448496878147125,
0.009663943201303482,
-0.02695774845778942,
0.015736734494566917,
0.025847207754850388,
-0.026906080543994904,
-0.02614462561905384,
-0.05753442645072937,
-0.039963558316230774,
-0.024809326976537704,
-0.07350403070449829,
0.013991426676511765,
-0.00988901499658823,
-0.014356713742017746,
-0.025523627176880836,
-0.001820975448936224,
-0.007410259451717138,
-0.013894567266106606,
0.06423189491033554,
-0.048930902034044266,
-0.0029999304097145796,
0.016075855121016502,
0.029193099588155746,
0.018066981807351112,
0.033199675381183624,
0.04939906671643257,
-0.001940620830282569,
-0.007565069943666458,
0.012463445775210857,
-0.008550651371479034,
0.0498843789100647,
0.005744637921452522,
0.022503964602947235,
-0.09854407608509064,
0.005348247475922108,
0.022582316771149635,
-0.023249933496117592,
-0.06950551271438599,
0.026098262518644333,
0.06872354447841644,
0.014177519828081131,
0.05033111944794655,
-0.006917658261954784,
-0.029043924063444138,
-0.0481693334877491,
0.007219449616968632,
-0.016920829191803932,
0.0034443452022969723,
0.04461177811026573,
-0.03912990540266037,
0.06554844975471497,
0.054336708039045334,
-0.024466833099722862,
-0.023580538108944893,
-0.028333989903330803,
0.00886197667568922,
0.008828002959489822,
-0.03747772425413132,
-0.014847852289676666,
-0.05119854211807251,
-0.10357682406902313,
-0.004373625386506319,
0.00871505681425333,
0.0012356768129393458,
-0.018715446814894676,
0.01378155592828989,
0.006147104315459728,
-0.04052286967635155,
0.012644020840525627,
-0.02933439239859581,
0.02903670072555542,
-0.03408022224903107,
-0.02474227547645569,
-0.027722012251615524,
0.012867712415754795,
0.0013410667888820171,
0.002679048338904977,
0.013576355762779713,
-0.03227631375193596,
0.03225881606340408,
-0.03075575642287731,
0.029546331614255905,
0.03256860002875328,
0.0026681178715080023,
-0.0026495493948459625
] | [
-0.06290491670370102,
-0.0432458259165287,
-0.03156924620270729,
-0.030981410294771194,
0.08491794764995575,
-0.03781317174434662,
0.011482986621558666,
0.026737451553344727,
0.010451202280819416,
-0.03824116289615631,
0.013200230896472931,
-0.024313608184456825,
-0.035114023834466934,
0.02510339953005314,
0.026261301711201668,
0.009715162217617035,
-0.024446548894047737,
-0.07017670571804047,
-0.01926298625767231,
0.04355276748538017,
-0.025348862633109093,
-0.04676854982972145,
0.0013978721108287573,
-0.06378521025180817,
-0.018601002171635628,
0.03989206254482269,
0.04597265273332596,
-0.014382912777364254,
-0.026762090623378754,
-0.2062380462884903,
-0.0039102076552808285,
-0.014296096749603748,
0.01723395846784115,
-0.00048789838911034167,
0.008672850206494331,
0.03654521703720093,
0.028184758499264717,
0.02154657058417797,
0.0234755277633667,
0.04924580827355385,
0.020183613523840904,
0.04706655070185661,
-0.08389825373888016,
-0.04524748772382736,
0.05074942484498024,
-0.014856976456940174,
0.013179498724639416,
-0.00560745457187295,
0.003855958580970764,
0.0016519963974133134,
-0.057892825454473495,
-0.015899281948804855,
0.025633275508880615,
0.012197697535157204,
-0.02364387921988964,
0.026255616918206215,
0.05528034269809723,
0.0641680434346199,
0.030332446098327637,
0.05691101774573326,
0.02417747490108013,
0.004797435365617275,
-0.13677768409252167,
0.07176815718412399,
0.009496307000517845,
0.01875472068786621,
-0.04688725620508194,
-0.028552090749144554,
-0.00517170038074255,
0.058307673782110214,
0.014117470011115074,
-0.009403374046087265,
-0.020598173141479492,
0.08185075223445892,
-0.01076860073953867,
0.025982040911912918,
-0.003179270075634122,
0.01997292973101139,
0.020988741889595985,
-0.04307011887431145,
-0.03661298379302025,
-0.0175713449716568,
-0.021439792588353157,
-0.02721261791884899,
-0.04356549307703972,
0.035150788724422455,
-0.028758179396390915,
0.07182595133781433,
0.008469524793326855,
0.011886236257851124,
0.04509301483631134,
0.007531390059739351,
0.08606728166341782,
0.025158967822790146,
-0.08126603811979294,
-0.020836522802710533,
0.013913583010435104,
0.03536539524793625,
0.002851078286767006,
0.39802297949790955,
0.006973857060074806,
-0.043222300708293915,
0.02364427037537098,
0.05959249660372734,
-0.011854962445795536,
-0.007088108453899622,
-0.0054511115886271,
-0.06776954233646393,
0.014840058982372284,
-0.026467183604836464,
0.021737677976489067,
-0.01751747913658619,
0.08208896964788437,
-0.06671930104494095,
0.04649081081151962,
0.025250760838389397,
0.06106816977262497,
0.008563327603042126,
-0.03721944987773895,
0.04995988309383392,
-0.0003265471605118364,
0.0108467573300004,
0.031487081199884415,
0.0135662741959095,
0.021582912653684616,
-0.016599828377366066,
-0.002812154358252883,
0.06599823385477066,
0.027043739333748817,
0.00485224137082696,
0.016537565737962723,
0.0026040903758257627,
-0.07915421575307846,
0.01053203921765089,
0.0008875782950781286,
-0.002840538276359439,
0.025470996275544167,
-0.04265013337135315,
-0.016626698896288872,
-0.0008175297407433391,
-0.0143278231844306,
-0.03394540771842003,
0.003116701962426305,
0.00434339651837945,
-0.024776630103588104,
0.12532523274421692,
-0.009915241040289402,
-0.05119014158844948,
-0.006693105213344097,
-0.06002726033329964,
0.009944569319486618,
0.05361788719892502,
-0.001175493118353188,
-0.05171181634068489,
-0.02396669238805771,
0.016187217086553574,
0.08320242911577225,
-0.01886140927672386,
-0.07332181185483932,
-0.000690128596033901,
0.007339848671108484,
-0.027816971763968468,
-0.03149579465389252,
0.08449677377939224,
0.06231716647744179,
-0.05496849864721298,
-0.028088824823498726,
0.0238382238894701,
0.016338465735316277,
-0.06592237949371338,
0.005560207646340132,
0.003825173247605562,
-0.03076297417283058,
-0.0072762630879879,
0.027409592643380165,
-0.03319618105888367,
-0.03561560437083244,
-0.00490910280495882,
-0.001252738293260336,
0.007326673716306686,
-0.005100328009575605,
-0.008120219223201275,
-0.052638232707977295,
0.02056610770523548,
-0.047746460884809494,
-0.07836129516363144,
-0.06391435861587524,
0.020346395671367645,
0.0008710742113180459,
0.004760037641972303,
-0.04886651411652565,
0.005916706286370754,
-0.03664163872599602,
0.07075660675764084,
-0.050862982869148254,
-0.009212443605065346,
-0.010363967157900333,
0.018200533464550972,
-0.014025178737938404,
-0.042441390454769135,
0.03677351027727127,
0.03528590500354767,
-0.010142073966562748,
0.018722563982009888,
-0.053657859563827515,
0.04624667763710022,
0.048856694251298904,
-0.048180416226387024,
0.01720205321907997,
0.03341048210859299,
-0.027554551139473915,
0.012415807694196701,
-0.007645865436643362,
0.031341809779405594,
0.0020596799440681934,
-0.02655864879488945,
-0.010669908486306667,
0.008650512434542179,
0.05885832756757736,
0.022789834067225456,
-0.04695376008749008,
0.009694550186395645,
-0.01862816885113716,
-0.3789285719394684,
-0.051240671426057816,
-0.03777686133980751,
-0.0036168198566883802,
-0.03162870183587074,
-0.02880804054439068,
0.023797892034053802,
-0.05583575367927551,
0.0067979139275848866,
0.05277666077017784,
0.0659305602312088,
-0.02821727842092514,
-0.0051717497408390045,
-0.08371814340353012,
0.029501600190997124,
0.0205089021474123,
-0.03431223705410957,
0.015503489412367344,
-0.029840193688869476,
0.0066026076674461365,
0.0034689034800976515,
-0.05366472899913788,
-0.06532430648803711,
-0.038770634680986404,
0.004433698020875454,
-0.02673148550093174,
0.11263471841812134,
0.015278837643563747,
0.030233360826969147,
-0.06777116656303406,
0.029824262484908104,
-0.004854267463088036,
0.024432571604847908,
-0.08350846916437149,
0.005571987479925156,
-0.048299357295036316,
0.014481144957244396,
0.04546704515814781,
-0.0018054861575365067,
0.016062207520008087,
-0.09509409964084625,
-0.02350383624434471,
-0.05148003622889519,
-0.0461072102189064,
0.0021226576063781977,
-0.011734066531062126,
-0.03572063520550728,
-0.007476822938770056,
0.032399434596300125,
0.06235983967781067,
0.01887170411646366,
-0.003326634643599391,
0.0246820580214262,
0.05151037126779556,
0.030923523008823395,
-0.04405907541513443,
-0.06049012392759323,
0.023709824308753014,
0.03404960036277771,
-0.0044367993250489235,
0.02367786504328251,
0.04002721980214119,
0.04344552382826805,
-0.07930795848369598,
0.021614214405417442,
0.008962193503975868,
0.005950785242021084,
0.005914303939789534,
0.023649267852306366,
-0.02278614416718483,
-0.043380048125982285,
0.13174477219581604,
0.01194058172404766,
0.010695141740143299,
0.026438333094120026,
0.04478643462061882,
-0.040477242320775986,
-0.01590716652572155,
0.01538148894906044,
0.02426086738705635,
0.04510407894849777,
0.0008106603054329753,
0.04734861105680466,
-0.017018239945173264,
-0.011486058123409748,
0.06677164137363434,
0.02124934457242489,
-0.01971820741891861,
0.07420819997787476,
0.009940709918737411,
-0.014478303492069244,
-0.023446347564458847,
-0.012919261120259762,
-0.05980793014168739,
0.055056579411029816,
-0.02299623191356659,
-0.2577364146709442,
0.01459389179944992,
0.027773858979344368,
0.06105015054345131,
0.006671479437500238,
-0.022719373926520348,
0.031162185594439507,
-0.04082604870200157,
0.023955097422003746,
-0.0015195878222584724,
0.02907148189842701,
0.007025167811661959,
0.0032543272245675325,
0.00540251424536109,
0.016177088022232056,
-0.03146710246801376,
0.010357425548136234,
0.04630525782704353,
0.04282519221305847,
0.0042263478972017765,
0.007322964258491993,
-0.014579806476831436,
0.1601020097732544,
0.05506477504968643,
-0.0008284515351988375,
0.053189851343631744,
-0.021314753219485283,
0.01948491483926773,
0.059469860047101974,
-0.004604762885719538,
-0.017959212884306908,
0.007371432613581419,
0.013385405763983727,
0.005565194878727198,
0.04620053991675377,
-0.06102153658866882,
-0.026257216930389404,
0.05586416274309158,
0.027763323858380318,
-0.014189505949616432,
-0.05172653868794441,
0.027295809239149094,
-0.03182535246014595,
0.026136288419365883,
0.06279636174440384,
-0.021268809214234352,
-0.015515327453613281,
-0.029864367097616196,
-0.070247583091259,
0.023928439244627953,
-0.01267450861632824,
-0.047559015452861786,
-0.015570856630802155,
-0.048649486154317856,
0.006990619469434023,
0.07669517397880554,
0.029630249366164207,
-0.02783006615936756,
0.014675679616630077,
0.025444721803069115,
0.01849125511944294,
-0.028799859806895256,
0.08049486577510834,
-0.006944266147911549,
-0.007646019104868174
] | [
0.03822801634669304,
0.01155852060765028,
-0.024374641478061676,
0.01813027448952198,
0.016133572906255722,
0.02187672071158886,
-0.02144818939268589,
0.017697563394904137,
-0.04357224330306053,
-5.563049398915609e-7,
-0.004775371868163347,
-0.0011611905647441745,
0.027528461068868637,
-0.025491509586572647,
-0.023313265293836594,
-0.02442893572151661,
-0.011992933228611946,
0.014200637117028236,
0.02230910398066044,
0.008697102777659893,
-0.042210374027490616,
-0.009949360974133015,
0.017028190195560455,
-0.03072531521320343,
-0.027505526319146156,
0.04476392641663551,
-0.02395707555115223,
-0.012178096920251846,
0.00715159485116601,
-0.10825853794813156,
-0.01483696885406971,
-0.02160225622355938,
0.010056836530566216,
0.02358245849609375,
0.003898109309375286,
-0.006280514411628246,
0.03607381507754326,
0.04439254850149155,
-0.03338414803147316,
0.026442090049386024,
0.04469069838523865,
0.009461157023906708,
-0.0147203728556633,
0.004400288220494986,
-0.014961061999201775,
-0.03515695035457611,
-0.014158997684717178,
-0.019966382533311844,
0.007279976271092892,
0.0038435275200754404,
-0.06006017327308655,
0.005898641422390938,
-0.00011396746413083747,
0.016661034896969795,
-0.014158240519464016,
0.027513857930898666,
0.02539398893713951,
0.0250311978161335,
-0.010438663884997368,
0.02048209309577942,
0.0096510024741292,
-0.016927095130085945,
-0.05275138095021248,
-0.02743210829794407,
-0.00894390419125557,
0.007880616001784801,
-0.012810456566512585,
0.022650493308901787,
-0.0076857940293848515,
0.03293786197900772,
0.004565758630633354,
0.03856420889496803,
-0.09074532985687256,
-0.018706336617469788,
-0.046794530004262924,
0.033585358411073685,
0.04075950011610985,
-0.04321780055761337,
-0.00977726187556982,
0.018816092982888222,
-0.05107954517006874,
0.006084962747991085,
0.0020814810413867235,
-0.025985782966017723,
-0.041547369211912155,
0.041684430092573166,
-0.03034203313291073,
-0.023705143481492996,
0.04030636325478554,
0.023015165701508522,
-0.03240706026554108,
0.024656370282173157,
-0.017539767548441887,
-0.005232976283878088,
-0.08906767517328262,
-0.004663417115807533,
0.029348617419600487,
0.025388583540916443,
0.010898208245635033,
0.8259581923484802,
0.019146719947457314,
-0.01399202086031437,
-0.00007176799408625811,
-0.030149416998028755,
-0.01160748116672039,
0.0015049583744257689,
0.017370710149407387,
-0.00006593048601644114,
-0.02342723309993744,
0.000048054775106720626,
0.02787451446056366,
0.027617616578936577,
0.05058714374899864,
-0.0003580993798095733,
0.05893426388502121,
0.00256500206887722,
-0.02498268149793148,
0.015922296792268753,
-0.005918486975133419,
0.04183902218937874,
0.018755527213215828,
0.019145198166370392,
-0.013593384996056557,
0.002276499755680561,
-0.013764295727014542,
-0.17689283192157745,
0.00006146114901639521,
-7.518701374833331e-33,
0.02392372116446495,
-0.019851986318826675,
0.015882210806012154,
0.00593970250338316,
0.01898207701742649,
0.007186318747699261,
-0.020078280940651894,
-0.014446615241467953,
-0.04764619842171669,
-0.006381123326718807,
-0.02198195457458496,
-0.03331198915839195,
-0.0027010405901819468,
-0.01998162269592285,
0.003335666609928012,
0.001663776347413659,
0.02709447778761387,
0.005971346981823444,
-0.026484107598662376,
-0.013302288949489594,
0.02039211057126522,
0.04711967706680298,
-0.01124303974211216,
0.05746329575777054,
-0.00863234419375658,
0.029247095808386803,
-0.03560681641101837,
0.02955710142850876,
0.007164762821048498,
-0.04998287186026573,
-0.057596541941165924,
0.038177330046892166,
0.0011504644062370062,
-0.006246636155992746,
0.02885749749839306,
-0.032910291105508804,
-0.043029967695474625,
0.012468306347727776,
-0.03938848897814751,
-0.060716353356838226,
-0.030468223616480827,
0.025303523987531662,
-0.025155503302812576,
-0.024595625698566437,
-0.013345901854336262,
0.004669389687478542,
-0.00795148778706789,
-0.0008842208189889789,
0.0038216046523302794,
0.007959039881825447,
0.009555518627166748,
0.008882998488843441,
0.0019143496174365282,
0.03198987990617752,
-0.044219404458999634,
0.040066059678792953,
-0.005420790985226631,
0.008920491673052311,
0.006687197368592024,
0.05046715587377548,
0.029426423832774162,
0.01042433362454176,
-0.010055347345769405,
0.025247126817703247,
0.01906565949320793,
-0.0010500472271814942,
0.0034390934742987156,
-0.0023312766570597887,
0.008514649234712124,
0.024002177640795708,
-0.05572625622153282,
0.05234229937195778,
-0.009677639231085777,
-0.012509533204138279,
0.029545778408646584,
-0.042671941220760345,
0.008366171270608902,
-0.017697500064969063,
0.01082430686801672,
0.01878124475479126,
-0.0527719147503376,
-0.04742376133799553,
-0.00791116151958704,
-0.03421185538172722,
-0.01605735346674919,
-0.014860328286886215,
0.01956169120967388,
0.012755945324897766,
0.010216300375759602,
0.024219263345003128,
0.04111498221755028,
0.018823402002453804,
-0.020210841670632362,
-0.005547237582504749,
-0.022132596001029015,
7.245624486245713e-33,
-0.015164356678724289,
-0.03455083817243576,
-0.004936509300023317,
0.0016272590728476644,
0.030461130663752556,
0.026151137426495552,
0.01304799597710371,
-0.012944656424224377,
-0.03572884202003479,
0.00871131382882595,
-0.036453962326049805,
-0.03712720796465874,
0.01958698034286499,
0.0382806695997715,
0.06577640026807785,
-0.006183904130011797,
0.007419881876558065,
-0.02343754470348358,
-0.019138546660542488,
0.012371940538287163,
-0.0016609025187790394,
0.004438338801264763,
-0.025663651525974274,
0.03528093174099922,
0.0418211929500103,
0.007826147601008415,
-0.02859971672296524,
0.014163660816848278,
-0.014515399001538754,
0.0015868208138272166,
0.023636195808649063,
-0.01068211905658245,
-0.02095637284219265,
-0.009567408822476864,
-0.03028501570224762,
0.013318940065801144,
0.011454178020358086,
-0.015609214082360268,
0.022495904937386513,
0.002421831013634801,
-0.008347241207957268,
0.02649618126451969,
-0.04448429495096207,
0.06932409852743149,
0.002427357481792569,
0.05700502544641495,
-0.004615772515535355,
0.025939948856830597,
-0.008212706074118614,
0.0041273171082139015,
-0.03792959824204445,
0.024815289303660393,
0.005904476158320904,
0.027898738160729408,
0.037354595959186554,
-0.044817037880420685,
0.012759869918227196,
0.028423752635717392,
-0.01445420365780592,
0.008658699691295624,
-0.026653006672859192,
-0.006062657106667757,
-0.035096101462841034,
0.03272503614425659,
-0.008083379827439785,
-0.03592327609658241,
0.0015875966055318713,
-0.011236854828894138,
-0.006134582217782736,
-0.0019188105361536145,
0.0125528359785676,
0.019730377942323685,
0.004545706324279308,
0.026670897379517555,
-0.01932833157479763,
-0.03852025792002678,
-0.04440964013338089,
0.015638938173651695,
-0.04197151958942413,
0.02439439855515957,
0.042458824813365936,
0.02490738220512867,
0.027977323159575462,
0.024864118546247482,
0.028330568224191666,
0.039449676871299744,
-0.0004944414249621332,
0.005118141416460276,
-0.013912429101765156,
-0.0026754336431622505,
0.006685282569378614,
-0.036754459142684937,
-0.021746527403593063,
0.021494505926966667,
-0.05374007299542427,
-1.2947694472131843e-8,
-0.025016501545906067,
-0.012973396107554436,
-0.018252933397889137,
0.008293068036437035,
0.004529829137027264,
0.03995765373110771,
0.0007935253088362515,
0.0199415422976017,
-0.015485378913581371,
0.03630020469427109,
0.045791786164045334,
-0.026218952611088753,
0.011850232258439064,
-0.004333029966801405,
0.015393375419080257,
-0.06600894778966904,
0.021352481096982956,
0.007269761059433222,
0.02143237181007862,
0.008875377476215363,
0.023855416104197502,
0.05000364035367966,
-0.03594767674803734,
0.02512960694730282,
0.014422053471207619,
-0.019260508939623833,
0.018855908885598183,
-0.062156762927770615,
-0.012249775230884552,
-0.00570765370503068,
-0.031179772689938545,
-0.041727326810359955,
-0.0036017291713505983,
0.003476871643215418,
-0.03408864140510559,
-0.01727883704006672,
0.02111450396478176,
0.03361930698156357,
0.0022078868933022022,
0.023783888667821884,
-0.009589114226400852,
-0.004002249799668789,
-0.027441399171948433,
-0.02834298461675644,
-0.038949817419052124,
-0.007607296109199524,
-0.007304234895855188,
-0.014180845580995083,
0.06457417458295822,
-0.035470157861709595,
-0.0180087611079216,
0.009966384619474411,
0.021847382187843323,
0.055319689214229584,
0.05242619290947914,
0.00023955678625497967,
-0.014780066907405853,
0.011759167537093163,
-0.00923885591328144,
-0.022900361567735672,
0.027480334043502808,
-0.0008819703944027424,
-0.012537216767668724,
-0.031829360872507095
] | neo4j-2-2-3-neo4j-import-encoder-stringencoder2-returned-an-illegal-encoded-value-0 | https://markhneedham.com/blog/2015/07/21/neo4j-2-2-3-neo4j-import-encoder-stringencoder2-returned-an-illegal-encoded-value-0 |
false | 2015-07-07 06:28:01 | Python: Converting WordPress posts in CSV format | [
"python"
] | [
"Python"
] | Over the weekend I wanted to look into the Wordpress data behind this blog (very meta!) and wanted to get the data in CSV format so I could do some analysis in R.
image::{{<siteurl>}}/uploads/2015/07/2015-07-07_06-59-02.png[2015 07 07 06 59 02,313]
I found a couple of WordPress CSV plugins but unfortunately I couldn't get any of them to work and ended up working with the raw XML data that WordPress produces when you 'export' a blog.
I had the problem of the http://beerpla.net/2012/04/13/how-to-fix-incomplete-wordpress-wxr-exports/[export being incomplete] which I 'solved' by importing the posts in two parts of a few years each.
I then spent quite a few hours struggling to get the data into shape using R's http://blog.rstudio.org/2014/11/24/rvest-easy-web-scraping-with-r/[rvest] library but eventually decided to do the scraping using Python's beautifulsoup and save it to a CSV file for analysis in R.
The structure of the XML that we want to extract is as follows:
[source,text]
----
<rss version="2.0"
xmlns:excerpt="http://wordpress.org/export/1.2/excerpt/"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:wp="http://wordpress.org/export/1.2/"
>
...
<channel>
<item>
<title>First thoughts on Ruby...</title>
<link>http://www.markhneedham.com/blog/2006/08/29/first-thoughts-on-ruby/</link>
<pubDate>Tue, 29 Aug 2006 13:31:05 +0000</pubDate>
...
----
I wrote the following script to parse the files:
[source,python]
----
from bs4 import BeautifulSoup
from soupselect import select
from dateutil import parser
import csv
def read_page(page):
return BeautifulSoup(open(page, 'r').read())
with open("posts.csv", "w") as file:
writer = csv.writer(file, delimiter=",")
writer.writerow(["title", "date"])
for row in select(read_page("part2.xml"), "item"):
title = select(row, "title")[0].text.encode("utf-8")
date = parser.parse(select(row, "pubdate")[0].text)
writer.writerow([title, date])
for row in select(read_page("part1.xml"), "item"):
title = select(row, "title")[0].text.encode("utf-8")
date = parser.parse(select(row, "pubdate")[0].text)
writer.writerow([title, date])
----
We end up with a CSV file that looks like this:
[source,bash]
----
$ head -n 10 posts.csv
title,date
Functional C#: Writing a 'partition' function,2010-02-01 23:34:02+00:00
Coding: Wrapping/not wrapping 3rd party libraries and DSLs,2010-02-02 23:54:21+00:00
Functional C#: LINQ vs Method chaining,2010-02-05 18:06:28+00:00
F#: function keyword,2010-02-07 02:54:13+00:00
Willed vs Forced designs,2010-02-08 22:48:05+00:00
Functional C#: Extracting a higher order function with generics,2010-02-08 23:17:47+00:00
Javascript: File encoding when using string.replace,2010-02-10 00:02:02+00:00
F#: Inline functions and statically resolved type parameters,2010-02-10 23:06:14+00:00
Javascript: Passing functions around with call and apply,2010-02-12 20:18:02+00:00
----
Let's quickly look over the data in R and check it's being correctly exported:
[source,r]
----
require(dplyr)
require(lubridate)
df = read.csv("posts.csv")
> df %>% count()
Source: local data frame [1 x 1]
n
1 1501
----
So we've exported 1501 posts. Let's cross check with the WordPress dashboard:
image::{{<siteurl>}}/uploads/2015/07/2015-07-07_07-06-02.png[2015 07 07 07 06 02,598]
We've gained two extra posts! A bit more exploration of the WordPress dashboard reveals that there are actually 2 draft posts lying around.
We probably want to remove those from the export and luckily there's a 'status' tag for each post that we can check. We want to make sure it doesn't have the value 'draft':
[source,python]
----
from bs4 import BeautifulSoup
from soupselect import select
from dateutil import parser
import csv
def read_page(page):
return BeautifulSoup(open(page, 'r').read())
with open("posts.csv", "w") as file:
writer = csv.writer(file, delimiter=",")
writer.writerow(["title", "date"])
for row in select(read_page("part2.xml"), "item"):
if (not row.find("wp:status")) or row.find("wp:status").text != "draft":
title = select(row, "title")[0].text.encode("utf-8")
date = parser.parse(select(row, "pubdate")[0].text)
writer.writerow([title, date])
for row in select(read_page("part1.xml"), "item"):
if (not row.find("wp:status")) or row.find("wp:status").text != "draft":
title = select(row, "title")[0].text.encode("utf-8")
date = parser.parse(select(row, "pubdate")[0].text)
writer.writerow([title, date])
----
I also had to check if that tag actually existed since there were a couple of posts which didn't have it but had been published. If we check the resulting CSV file in R we can see that we've now got all the posts:
[source,r]
----
> df = read.csv("posts.csv")
> df %>% count()
Source: local data frame [1 x 1]
n
1 1499
----
Now we're ready to test a couple of hypotheses that I have but that's for another post! | null | null | [
0.009342026896774769,
-0.005110153928399086,
-0.000030149329177220352,
0.07929181307554245,
0.0911366268992424,
0.004824091214686632,
0.004814541898667812,
0.03539225086569786,
0.012290488928556442,
-0.004060357343405485,
-0.02426963858306408,
-0.009788752533495426,
-0.04406312108039856,
0.01977902464568615,
-0.010779819451272488,
0.06449131667613983,
0.040767837315797806,
0.016460733488202095,
0.04093685746192932,
-0.010237119160592556,
0.024534139782190323,
0.042508866637945175,
-0.028081288561224937,
0.036191582679748535,
0.0492551252245903,
-0.014581259340047836,
0.027234364300966263,
0.008911135606467724,
-0.05057193711400032,
-0.008485989645123482,
0.058755844831466675,
0.006852916907519102,
0.022866083309054375,
0.0028999343048781157,
0.03374495357275009,
-0.010066178627312183,
-0.017796527594327927,
0.013949235901236534,
-0.008951324038207531,
-0.00044039226486347616,
-0.06611170619726181,
0.05004315823316574,
-0.025520825758576393,
0.028038889169692993,
-0.014243108220398426,
0.0022475060541182756,
-0.004671512637287378,
0.023134196177124977,
-0.02007872611284256,
0.014293891377747059,
-0.08500953018665314,
0.04689496383070946,
0.032336365431547165,
-0.0354442298412323,
-0.026777304708957672,
0.05400557816028595,
-0.00631791353225708,
-0.0532178170979023,
0.013442233204841614,
-0.03179927542805672,
-0.02837388403713703,
-0.004668297246098518,
-0.00962820928543806,
0.02053680643439293,
0.014981248416006565,
-0.048914697021245956,
-0.004387776367366314,
0.048055436462163925,
-0.01471116952598095,
-0.015766195952892303,
-0.011808373034000397,
-0.011414690874516964,
-0.02466251514852047,
-0.004402307793498039,
0.006297039333730936,
-0.04046187922358513,
-0.01858322136104107,
0.06626568734645844,
0.008063740096986294,
0.057157017290592194,
-0.03129410371184349,
0.05052252113819122,
0.01476979348808527,
0.02746875211596489,
0.00938266422599554,
-0.08462207764387131,
-0.0240841805934906,
-0.02711629495024681,
-0.04798464849591255,
0.06002771854400635,
0.025166301056742668,
-0.04739133641123772,
0.03999408334493637,
0.0337626077234745,
0.006384661886841059,
-0.0015460519352927804,
-0.012289225123822689,
0.023814896121621132,
-0.02277129329741001,
-0.026429787278175354,
-0.08693160861730576,
-0.00020927768491674215,
0.034149009734392166,
0.004328840412199497,
-0.0661451667547226,
-0.010776644572615623,
-0.006590304430574179,
-0.016312189400196075,
0.026743803173303604,
0.019345983862876892,
0.014019394293427467,
0.006190490908920765,
-0.04584703594446182,
-0.011964194476604462,
-0.06385676562786102,
0.04748343676328659,
0.0726202055811882,
-0.022960659116506577,
-0.018995976075530052,
-0.026330146938562393,
0.026235686615109444,
0.019468611106276512,
0.007195965386927128,
0.057677675038576126,
0.016452033072710037,
0.013840988278388977,
-0.006161888595670462,
0.03662250190973282,
-0.03340589255094528,
-0.02974354289472103,
0.02040918730199337,
0.0816921666264534,
-0.01221492886543274,
-0.0004026874667033553,
0.006018161773681641,
0.011735625565052032,
-0.023630406707525253,
-0.0031643356196582317,
0.08153744786977768,
0.037705082446336746,
-0.0005527915200218558,
-0.037842199206352234,
-0.003265762235969305,
0.01712571270763874,
0.031961798667907715,
-0.01548039447516203,
0.014407489448785782,
-0.03641370311379433,
-0.04290702939033508,
-0.012330726720392704,
0.014754697680473328,
-0.018933476880192757,
0.03326980397105217,
-0.029929999262094498,
0.023358866572380066,
0.047470930963754654,
0.04843534901738167,
0.007474085316061974,
-0.00424228934571147,
0.007118538487702608,
0.03402625024318695,
0.03301634639501572,
0.0018059711437672377,
0.030547702684998512,
-0.00988585501909256,
-0.042887475341558456,
-0.01197066344320774,
0.04529314115643501,
0.002449063817039132,
0.010970008559525013,
-0.07998210936784744,
-0.03202999755740166,
0.08701519668102264,
-0.025097860023379326,
-0.004549610894173384,
0.025066684931516647,
0.09224101155996323,
0.04958717152476311,
0.005766542162746191,
0.0135990334674716,
-0.07378063350915909,
0.04083096608519554,
-0.03787020966410637,
0.029121210798621178,
0.029262475669384003,
0.002460801973938942,
0.0923386812210083,
0.05036696791648865,
0.015948601067066193,
0.04621165245771408,
-0.09641404449939728,
-0.06671945005655289,
-0.07983201742172241,
-0.020176943391561508,
0.05697126314043999,
-0.05121373012661934,
-0.010619449429214,
0.07182468473911285,
0.009661547839641571,
0.010180214419960976,
-0.012874831445515156,
0.03671601787209511,
-0.0029992256313562393,
-0.04416639730334282,
-0.06498435139656067,
0.020464971661567688,
0.05628851428627968,
-0.009413649328052998,
-0.002996002323925495,
0.002132745925337076,
-0.0364406518638134,
0.048938244581222534,
0.030992137268185616,
-0.03665370121598244,
0.023918425664305687,
0.02065994404256344,
0.05414797365665436,
-0.015083656646311283,
0.04848620668053627,
-0.044233229011297226,
0.054763130843639374,
-0.014470093883574009,
-0.00989449117332697,
-0.006872409954667091,
-0.022650595754384995,
0.13535600900650024,
0.06365855783224106,
0.009358437731862068,
-0.0512876994907856,
0.032075367867946625,
-0.020657364279031754,
-0.01994295045733452,
0.019226640462875366,
0.002386536682024598,
-0.0076253036968410015,
0.026366524398326874,
-0.03494195267558098,
-0.03993048518896103,
0.013652889989316463,
-0.03205331787467003,
0.004420389886945486,
0.0651380717754364,
0.001189780537970364,
0.03776373341679573,
-0.0036041373386979103,
0.0020996055100113153,
-0.0169579666107893,
-0.02993537113070488,
-0.0671490728855133,
0.020224040374159813,
0.05274378880858421,
0.0010176845826208591,
0.03208819031715393,
-0.007840688340365887,
0.00973597913980484,
-0.03214022144675255,
-0.05864565819501877,
0.005079443100839853,
0.0735187754034996,
0.05351469665765762,
0.00026363314827904105,
0.028218496590852737,
-0.013755709864199162,
0.006480901502072811,
-0.004355862736701965,
-0.03147907927632332,
-0.07980617135763168,
-0.05008557066321373,
0.027004072442650795,
0.002248571254312992,
0.027788538485765457,
0.026348281651735306,
-0.014526918530464172,
0.03127965331077576,
0.010854885913431644,
-0.01922452449798584,
0.049785714596509933,
-0.02453468181192875,
0.02263597585260868,
-0.03717177361249924,
-0.018286604434251785,
0.04833542928099632,
-0.040506064891815186,
-0.03503071144223213,
-0.029177645221352577,
-0.06560110300779343,
0.039907004684209824,
-0.029995329678058624,
-0.034404899924993515,
-0.01437100488692522,
-0.0295482836663723,
0.027286026626825333,
0.05577033385634422,
0.008406874723732471,
0.05323632061481476,
0.027783464640378952,
0.022976530715823174,
0.00607988191768527,
0.016698533669114113,
0.03654923662543297,
-0.016503293067216873,
0.0018027386395260692,
0.0470331646502018,
-0.0009926393395289779,
-0.0031746539752930403,
-0.02408401109278202,
0.03476465865969658,
-0.03337104991078377,
-0.27817225456237793,
0.039420608431100845,
-0.007660011760890484,
-0.05762797221541405,
0.02209980972111225,
-0.03294609487056732,
0.01552828960120678,
-0.04926210641860962,
0.00701478635892272,
0.007611402310431004,
0.003694691928103566,
-0.015362062491476536,
-0.029660873115062714,
0.03393380716443062,
0.01674998551607132,
0.04081357643008232,
0.00926322489976883,
-0.008441317826509476,
0.015143576078116894,
0.013634217903017998,
0.020161090418696404,
-0.02479085698723793,
0.014728086069226265,
0.03406372666358948,
0.04871783405542374,
0.06379033625125885,
-0.03874567896127701,
0.038152556866407394,
-0.05944094434380531,
-0.03919054940342903,
0.034739524126052856,
-0.0386178232729435,
0.005385244730859995,
-0.004976565949618816,
-0.0011231248499825597,
-0.017998673021793365,
0.04742630943655968,
0.018638338893651962,
0.02395724691450596,
-0.0038087782450020313,
-0.0558701753616333,
-0.03332064300775528,
0.00958431325852871,
-0.023113161325454712,
0.060540344566106796,
-0.02303479053080082,
-0.036486025899648666,
-0.007623393554240465,
-0.035812247544527054,
0.07876615226268768,
-0.003979136236011982,
-0.05494631826877594,
-0.01725044846534729,
0.0387285016477108,
-0.01579562947154045,
-0.02493762969970703,
-0.02104959823191166,
-0.012514445930719376,
-0.058889515697956085,
-0.05415264517068863,
0.02818550355732441,
-0.006662461441010237,
-0.002707159146666527,
-0.05050850659608841,
-0.0022154580801725388,
-0.05197565630078316,
-0.07480762153863907,
-0.02268603816628456,
0.07332722842693329,
0.052098892629146576,
-0.04074239730834961,
-0.004711655899882317,
-0.021982498466968536,
-0.09464336931705475,
0.01195573154836893,
-0.030973447486758232,
-0.02393137663602829,
0.001769158523529768,
-0.007512115407735109,
0.04407300427556038,
-0.043294068425893784,
-0.039680469781160355,
0.03719572722911835,
-0.008031796663999557,
-0.02276979759335518,
-0.0247278343886137,
0.013922394253313541,
-0.018656762316823006,
-0.03133568912744522,
-0.00415438087657094,
0.07471293956041336,
-0.07388171553611755,
-0.025907687842845917,
-0.012872250750660896,
-0.01712692715227604,
0.02972543053328991,
0.01937091164290905,
0.010202116332948208,
0.03288133814930916,
0.055796150118112564,
0.021605942398309708,
-0.05137164890766144,
0.013160760514438152,
-0.03554698824882507,
-0.00500622158870101,
-0.001737013109959662,
-0.032449204474687576,
0.00825597159564495,
0.03491002693772316,
-0.009187660180032253,
-0.007887451909482479,
-0.025468342006206512,
0.01464405469596386,
-0.061182472854852676,
-0.0011393618769943714,
0.005673295818269253,
0.021470682695508003,
-0.002179477596655488,
0.012350155040621758,
-0.03530531004071236,
-0.020821398124098778,
-0.016318053007125854,
-0.006969798821955919,
-0.030635889619588852,
-0.0619535893201828,
-0.024748999625444412,
0.025352394208312035,
-0.0429275818169117,
0.002647090470418334,
0.014828411862254143,
-0.02882077731192112,
-0.007245030254125595,
0.015075690113008022,
-0.04075228422880173,
0.02748647704720497,
-0.007534101605415344,
-0.04506736621260643,
-0.029709212481975555,
0.017289817333221436,
0.016529805958271027,
-0.014352863654494286,
-0.003173265140503645,
-0.0128557113930583,
0.042768046259880066,
0.04692902788519859,
0.012332122772932053,
-0.00715537928044796,
0.018450036644935608,
0.006807554978877306,
-0.0007680516573600471,
-0.03680790215730667,
-0.03290078043937683,
0.02195558324456215,
-0.007859088480472565,
-0.051047757267951965,
-0.027342231944203377,
0.03161146119236946,
0.015663087368011475,
-0.009399776346981525,
-0.04612268880009651,
0.0240970179438591,
-0.06300725042819977,
0.010145843960344791,
0.018614068627357483,
0.015172567218542099,
0.027075445279479027,
0.002552921185269952,
0.025388887152075768,
0.016049379482865334,
-0.004210189916193485,
0.0178681593388319,
0.031032809987664223,
0.0022388824727386236,
-0.012097872793674469,
-0.009213684126734734,
0.0015720409573987126,
0.024561116471886635,
0.004442074801772833,
0.014425558038055897,
0.005818549077957869,
-0.03328297659754753,
-0.04269616678357124,
0.04828687012195587,
0.02812480926513672,
0.025334933772683144,
0.06536673754453659,
-0.04130445793271065,
-0.007246157620102167,
-0.015099484473466873,
0.015401226468384266,
-0.04965479299426079,
0.010447277687489986,
-0.031909771263599396,
0.0228846687823534,
-0.04197128489613533,
-0.08222267776727676,
0.033679600805044174,
0.00930381752550602,
-0.0055608670227229595,
0.023777905851602554,
-0.04853273183107376,
-0.027735358104109764,
-0.010112380608916283,
0.060160618275403976,
0.06113467738032341,
-0.058963749557733536,
-0.02536882273852825,
-0.030311329290270805,
-0.0065427618101239204,
0.0077695949003100395,
0.018448296934366226,
-0.058188822120428085,
-0.009945075027644634,
-0.007564186118543148,
0.04361699894070625,
-0.028204262256622314,
-0.029471466317772865,
-0.04078345373272896,
0.0052334521897137165,
-0.020031316205859184,
0.0385977141559124,
-0.003943068906664848,
0.014002570882439613,
-0.009316838346421719,
-0.011864151805639267,
0.012972339056432247,
-0.029088618233799934,
-0.0656495913863182,
0.025941090658307076,
-0.01649462804198265,
0.005735600367188454,
-0.015380997210741043,
0.01786050945520401,
0.02563779056072235,
-0.004855749662965536,
0.0033777072094380856,
-0.013161732815206051,
0.027556976303458214,
0.013508238829672337,
0.03610517457127571,
-0.018535980954766273,
-0.011237203143537045,
-0.02336227148771286,
0.029983220621943474,
-0.01513170450925827,
0.027540143579244614,
-0.031192464753985405,
0.019235895946621895,
0.01916809380054474,
0.028701601549983025,
0.012380272150039673,
-0.005998356267809868,
0.02316645346581936,
-0.06755047291517258,
0.031879521906375885,
-0.03474920243024826,
-0.044434595853090286,
-0.014677813276648521,
-0.03625008463859558,
0.02286563441157341,
0.04587600380182266,
0.033631425350904465,
-0.014370165765285492,
0.07096903771162033,
0.025227472186088562,
0.021399864926934242,
0.03756321594119072,
0.016494328156113625,
0.027175063267350197,
-0.021971626207232475,
-0.0023052720353007317,
-0.0807141438126564,
-0.0008895337232388556,
0.0628267303109169,
-0.00705350749194622,
-0.0008258388843387365,
-0.0290935430675745,
-0.043502651154994965,
0.04044747352600098,
-0.06924160569906235,
-0.05803677439689636,
0.03983631357550621,
-0.02995201200246811,
0.010945474728941917,
-0.036171335726976395,
-0.03689642623066902,
0.02392599731683731,
0.043230120092630386,
-0.04722866043448448,
0.0010796883143484592,
-0.03176682069897652,
0.03846753016114235,
-0.01784009113907814,
0.012889357283711433,
-0.0039034506771713495,
-0.04664715379476547,
0.04750925675034523,
0.0045301723293960094,
-0.01900090090930462,
0.02315397746860981,
-0.022910408675670624,
0.0007546005654148757,
0.025967197492718697,
-0.03187134861946106,
0.03591173142194748,
0.0023177433758974075,
0.009178517386317253,
-0.031308531761169434,
0.02093762531876564,
0.0035366741940379143,
-0.005356173496693373,
-0.027485694736242294,
0.07845420390367508,
0.022030051797628403,
-0.03944393992424011,
-0.04178658500313759,
0.02166387066245079,
-0.02302854135632515,
-0.010684369131922722,
0.029670769348740578,
-0.021166615188121796,
-0.05800658464431763,
0.037046194076538086,
-0.016703495755791664,
-0.002773893531411886,
0.06280802935361862,
-0.023585695773363113,
-0.004755386151373386,
-0.003210109192878008,
0.08298702538013458,
0.05971396714448929,
0.052147820591926575,
-0.011605864390730858,
0.06496735662221909,
-0.0254763662815094,
-0.048413120210170746,
0.013033870607614517,
-0.021099388599395752,
0.036634426563978195,
0.0027447061147540808,
0.009567181579768658,
0.043105464428663254,
-0.017399776726961136,
0.07914305478334427,
0.0047700912691652775,
-0.02446412481367588,
-0.0034952033311128616,
0.017193449661135674,
0.05052235350012779,
0.014244494959712029,
0.013834645971655846,
0.03109823353588581,
-0.005021515768021345,
0.000017766466044122353,
0.01945740543305874,
-0.034755200147628784,
-0.023461107164621353,
0.022709492594003677,
-0.012801893055438995,
0.004848113749176264,
-0.020027026534080505,
0.044164109975099564,
0.060494039207696915,
-0.030179880559444427,
-0.003576948307454586,
-0.012719136662781239,
0.029499756172299385,
0.012004517018795013,
0.04437628388404846,
-0.0010394377168267965,
-0.013522223569452763,
-0.04208403453230858,
-0.05277678370475769,
-0.002900670049712062,
-0.02067655324935913,
-0.017539851367473602,
0.0228508859872818,
-0.02557217888534069,
-0.01849975995719433,
0.021314416080713272,
-0.010353668592870235,
-0.06414374709129333,
-0.03683752566576004,
-0.036932967603206635,
-0.05099097639322281,
-0.07952655851840973,
-0.0012379169929772615,
0.01106226909905672,
0.016120197251439095,
-0.0313601940870285,
-0.029090406373143196,
-0.031680624932050705,
-0.03810606896877289,
0.013602104969322681,
-0.029002897441387177,
0.0015678959898650646,
0.003586161183193326,
0.020334653556346893,
0.014591769315302372,
0.03697219491004944,
0.039832089096307755,
0.00655197910964489,
-0.0034461086615920067,
-0.003026793710887432,
0.00043541198829188943,
0.07663755118846893,
0.024836426600813866,
-0.0005521481507457793,
-0.08128409832715988,
-0.003760441206395626,
-0.009704581461846828,
-0.005409048870205879,
-0.06927850842475891,
0.02483168989419937,
0.032663676887750626,
-0.011004315689206123,
0.04047552868723869,
-0.0513705275952816,
0.005438664928078651,
-0.03455759584903717,
-0.04484022408723831,
-0.024810243397951126,
0.005144137889146805,
0.019653627648949623,
-0.03487200289964676,
0.07271664589643478,
0.043944478034973145,
0.007975751534104347,
-0.07258473336696625,
-0.030817607417702675,
-0.003970015794038773,
0.010770351625978947,
-0.07613075524568558,
0.008933165110647678,
-0.036871928721666336,
-0.07788549363613129,
-0.07037392258644104,
0.0108896279707551,
-0.03713030740618706,
-0.015030601061880589,
0.004022223874926567,
0.005899235140532255,
-0.06391376256942749,
0.025321872904896736,
-0.04571961984038353,
0.042643941938877106,
-0.029666785150766373,
-0.0074713025242090225,
-0.01870224066078663,
0.03800598531961441,
0.00618786970153451,
-0.0018537993310019374,
-0.022831324487924576,
-0.03278593719005585,
0.036057248711586,
-0.008179028518497944,
0.0022555794566869736,
0.0333104282617569,
0.018086889758706093,
0.0003347759775351733
] | [
-0.04066646844148636,
-0.023155327886343002,
-0.03796562924981117,
-0.028460625559091568,
0.08014455437660217,
-0.05562800541520119,
-0.05680278688669205,
0.021647000685334206,
-0.02889375574886799,
-0.014170186594128609,
0.010566465556621552,
-0.004215823486447334,
-0.002982438076287508,
-0.01716361753642559,
0.08011068403720856,
0.006356554571539164,
0.010056531988084316,
-0.06472988426685333,
-0.0451044999063015,
0.047873977571725845,
0.0024133510887622833,
-0.03536859527230263,
-0.03460375592112541,
-0.03138481453061104,
-0.008951927535235882,
-0.0011233261320739985,
0.023179946467280388,
-0.023527519777417183,
-0.014641968533396721,
-0.1846574991941452,
-0.007618912495672703,
-0.013513967394828796,
0.035269614309072495,
-0.020513463765382767,
0.065217986702919,
0.04692225530743599,
0.03846744820475578,
-0.0007533940370194614,
0.015149801969528198,
0.05010684207081795,
0.027717100456357002,
-0.016198232769966125,
-0.049922503530979156,
0.018698779866099358,
0.039807870984077454,
0.021205611526966095,
0.021287642419338226,
0.0049420809373259544,
-0.02280331216752529,
0.022687392309308052,
-0.0732215866446495,
-0.002422444289550185,
0.011085888370871544,
-0.007093200460076332,
0.011715208180248737,
0.039020124822854996,
0.04530258849263191,
0.055516183376312256,
-0.011450548656284809,
0.04140642657876015,
0.003155456855893135,
-0.005810393486171961,
-0.14493881165981293,
0.11617652326822281,
0.008787672035396099,
0.03521900624036789,
-0.06733095645904541,
0.015057314187288284,
-0.02691042423248291,
0.06258982419967651,
-0.004567256662994623,
-0.03329828754067421,
-0.03495923802256584,
0.05388478934764862,
0.0183591116219759,
-0.0016968538984656334,
0.01373131014406681,
0.01655581407248974,
0.015127407386898994,
-0.010865799151360989,
-0.036065299063920975,
0.0328824520111084,
-0.01802385412156582,
-0.0272039957344532,
-0.039872024208307266,
-0.010250353254377842,
-0.008061406202614307,
0.043162211775779724,
0.02026021108031273,
0.011156869120895863,
0.039151016622781754,
-0.06193356588482857,
0.04041477292776108,
-0.001516935764811933,
-0.08723098784685135,
-0.03621901571750641,
0.022409887984395027,
0.029749134555459023,
-0.009954622946679592,
0.4127974212169647,
-0.034722477197647095,
-0.020771045237779617,
0.09778429567813873,
0.012202681042253971,
0.008480414748191833,
0.010499697178602219,
-0.01763211190700531,
-0.03551669791340828,
0.009339223615825176,
-0.02798120304942131,
0.0076726097613573074,
-0.035233501344919205,
0.06889986991882324,
-0.05795840173959732,
-0.003373366314917803,
-0.03030982054769993,
0.008358033373951912,
0.01692858338356018,
0.0026638037525117397,
0.017202038317918777,
-0.011757886037230492,
-0.0055739800445735455,
0.06594821065664291,
0.011373397894203663,
0.00298302317969501,
-0.008280369453132153,
0.04360456392168999,
0.03471864014863968,
0.05906398966908455,
0.03226395323872566,
0.034630902111530304,
-0.01234025415033102,
-0.06640265882015228,
0.009070235304534435,
-0.013722830452024937,
-0.011328591033816338,
0.039910465478897095,
-0.012548989616334438,
0.02518145740032196,
0.007466002367436886,
-0.014982619322836399,
-0.02924424782395363,
0.006608923897147179,
-0.012602164410054684,
-0.055059634149074554,
0.12346124649047852,
0.001870368723757565,
-0.041118472814559937,
-0.018710512667894363,
-0.05903031677007675,
-0.022616863250732422,
0.04308820888400078,
0.0034306098241358995,
-0.06841250509023666,
0.01677214354276657,
0.049101751297712326,
0.06523461639881134,
-0.029593709856271744,
-0.07682033628225327,
-0.010563330724835396,
0.004869782831519842,
-0.05067335441708565,
-0.024781621992588043,
0.021459108218550682,
0.042958978563547134,
-0.14011594653129578,
-0.015528482384979725,
0.012951220385730267,
0.022802595049142838,
-0.06156730279326439,
0.034783922135829926,
0.007235650904476643,
-0.019885791465640068,
-0.03228764608502388,
0.016536783427000046,
-0.025284983217716217,
-0.016621246933937073,
0.03807343170046806,
0.06119931861758232,
0.010684976354241371,
0.008083797991275787,
0.015318888239562511,
-0.043900806456804276,
0.033775005489587784,
-0.06198030337691307,
-0.08721355348825455,
-0.05374925956130028,
0.01009420957416296,
-0.02159281261265278,
0.021776555106043816,
-0.010869503952562809,
-0.05261864885687828,
-0.08497150242328644,
0.04932665452361107,
0.007113723549991846,
0.01291560847312212,
0.016563614830374718,
0.02478795126080513,
0.00515409791842103,
-0.0370776504278183,
-0.02954510971903801,
-0.0061890133656561375,
-0.024845026433467865,
0.00262270774692297,
-0.0514463409781456,
0.03464490547776222,
0.07498061656951904,
-0.03999066725373268,
0.057878196239471436,
0.04044465348124504,
-0.02142125926911831,
0.0006852984661236405,
0.011538605205714703,
0.0022120606154203415,
0.008430319838225842,
-0.0023212258238345385,
-0.017345741391181946,
-0.014048981480300426,
0.0340549498796463,
0.06479901820421219,
-0.04831716790795326,
-0.08056959509849548,
-0.000527629570569843,
-0.3516615331172943,
-0.052634209394454956,
-0.018573621287941933,
0.02275405265390873,
0.014741189777851105,
-0.07198118418455124,
0.037904202938079834,
-0.01261352188885212,
-0.0033835696522146463,
0.07568122446537018,
0.08548141270875931,
-0.014033026061952114,
0.023992516100406647,
-0.10060875117778778,
-0.003477894701063633,
0.0072003924287855625,
0.004888312425464392,
-0.017837783321738243,
-0.005947338882833719,
0.022884823381900787,
-0.005489545874297619,
-0.03698236867785454,
-0.009966975077986717,
-0.04742589220404625,
0.008735976181924343,
-0.04518595710396767,
0.09166012704372406,
0.05937696620821953,
0.06465288251638412,
-0.06409016251564026,
0.03881242498755455,
0.0208743903785944,
0.021468769758939743,
-0.12515291571617126,
-0.001172417774796486,
-0.011723537929356098,
0.006416764110326767,
-0.01225227676331997,
0.010968341492116451,
-0.0167026799172163,
-0.03156697377562523,
0.043811555951833725,
-0.03318344056606293,
-0.04083474352955818,
-0.03310030698776245,
0.016036735847592354,
-0.010751052759587765,
-0.03408665955066681,
-0.016078196465969086,
0.084258534014225,
0.007494738791137934,
-0.007676041219383478,
0.03149921074509621,
0.042104367166757584,
0.011742428876459599,
-0.013719874434173107,
-0.07456658035516739,
0.003837556578218937,
0.008114652708172798,
-0.025700781494379044,
0.018364209681749344,
0.020360706374049187,
0.0746321976184845,
-0.06678247451782227,
-0.009989834390580654,
0.01634027808904648,
0.025396401062607765,
0.007953135296702385,
0.05537256971001625,
-0.02005000039935112,
-0.0390375554561615,
0.10238183289766312,
-0.01341895293444395,
0.03507499396800995,
0.011894626542925835,
0.0569426566362381,
-0.0318506620824337,
0.012800440192222595,
0.03187347948551178,
-0.004323731176555157,
0.042696911841630936,
-0.007690098136663437,
0.05385618284344673,
-0.024286868050694466,
0.02279026247560978,
0.07190273702144623,
-0.03708061948418617,
-0.05566376820206642,
0.07128564268350601,
0.033588260412216187,
-0.009972580708563328,
-0.01998499594628811,
-0.04142758622765541,
-0.05736108869314194,
0.07579504698514938,
0.001978518906980753,
-0.2416791319847107,
0.013976351357996464,
0.07346219569444656,
0.05807778611779213,
-0.006291240453720093,
0.01552603580057621,
0.027613410726189613,
-0.06607998162508011,
0.009510167874395847,
0.023170216009020805,
0.021683689206838608,
0.05130290612578392,
-0.0005861793761141598,
-0.019126256927847862,
0.024679912254214287,
-0.015590819530189037,
-0.00823170691728592,
0.024450108408927917,
0.00032687740167602897,
0.008938782848417759,
-0.027951709926128387,
-0.04607108235359192,
0.14253117144107819,
0.03425021842122078,
-0.021630408242344856,
-0.001588566112332046,
0.003340639639645815,
-0.005534512456506491,
0.04206659644842148,
0.021625066176056862,
-0.01476026326417923,
-0.007639491464942694,
0.02596542052924633,
0.006770525127649307,
0.004903246648609638,
-0.07605630159378052,
-0.05154803767800331,
0.02166457287967205,
0.045162100344896317,
-0.02464013732969761,
-0.00979678612202406,
0.03737972304224968,
-0.06228481978178024,
0.025056419894099236,
0.027431976050138474,
-0.014611838385462761,
0.005002658814191818,
-0.02489067055284977,
-0.0593123733997345,
0.016123877838253975,
0.010047215037047863,
-0.019287092611193657,
0.007811184041202068,
0.003114841878414154,
0.00865218322724104,
0.08280525356531143,
0.004498371388763189,
-0.020484812557697296,
0.03071846067905426,
0.011733961291611195,
-0.02526330202817917,
-0.06254125386476517,
0.07834819704294205,
0.037204720079898834,
0.02540917880833149
] | [
-0.0020630178041756153,
0.0023188369814306498,
-0.0215517096221447,
0.037045542150735855,
0.03150516003370285,
-0.0065108840353786945,
-0.013167966157197952,
0.017036838456988335,
-0.02220762148499489,
-0.019438831135630608,
0.007035001181066036,
0.01293065957725048,
0.033620916306972504,
-0.026209618896245956,
0.015341325663030148,
-0.006704680155962706,
-0.04968937858939171,
-0.019943667575716972,
0.0004930486320517957,
0.003360901027917862,
-0.021554574370384216,
0.0524720773100853,
0.020276978611946106,
-0.0034038820303976536,
-0.003348898608237505,
0.05686832219362259,
-0.0584658682346344,
-0.01053894218057394,
0.027641531080007553,
-0.10810812562704086,
-0.006762773729860783,
-0.03448614850640297,
0.0023720008321106434,
0.01840236783027649,
0.0205314289778471,
0.0265311598777771,
-0.013272667303681374,
-0.00944579392671585,
-0.008427081629633904,
0.018296275287866592,
-0.013678554445505142,
0.0063655441626906395,
-0.00813528522849083,
0.00787065178155899,
-0.03150906413793564,
-0.029663730412721634,
0.007668869569897652,
-0.008381582796573639,
-0.01103202160447836,
-0.01942356489598751,
-0.03608307987451553,
-0.014063364826142788,
0.005068369209766388,
0.02007163129746914,
0.0066733150742948055,
-0.01444603968411684,
-0.028092147782444954,
-0.03831274062395096,
0.007885073311626911,
-0.040851254016160965,
-0.002333180047571659,
0.008899408392608166,
-0.04657893627882004,
-0.008258883841335773,
-0.022639118134975433,
-0.02300838567316532,
-0.05774800106883049,
0.020279671996831894,
0.02530582807958126,
0.004903614055365324,
-0.05107042193412781,
0.04204919561743736,
-0.07512252032756805,
-0.028161773458123207,
-0.006666974164545536,
-0.013582700863480568,
0.022896377369761467,
-0.028595201671123505,
-0.01792879030108452,
-0.012185916304588318,
-0.04553552716970444,
-0.0016568348510190845,
-0.021478042006492615,
0.029881583526730537,
-0.01956387422978878,
-0.0007093308959156275,
0.025247689336538315,
0.00557710463181138,
-0.012839834205806255,
0.027887137606739998,
-0.029314925894141197,
-0.006540896371006966,
0.022223995998501778,
0.049147170037031174,
-0.09952064603567123,
0.012958518229424953,
0.050310712307691574,
0.000929317669942975,
-0.001924710115417838,
0.8373311161994934,
0.004473652224987745,
-0.008848579600453377,
0.01626189984381199,
-0.017639270052313805,
-0.007608799729496241,
-0.05623677000403404,
-0.026518236845731735,
0.02385454624891281,
0.020659148693084717,
-0.04848339408636093,
0.03756188228726387,
0.013566694222390652,
0.016067354008555412,
0.010156184434890747,
0.043122485280036926,
0.017510976642370224,
0.025805020704865456,
-0.03492587432265282,
-0.001723896013572812,
0.006231942679733038,
0.00794210471212864,
0.00548591511324048,
0.009378621354699135,
0.016667243093252182,
0.013732530176639557,
-0.17023661732673645,
0.04943277686834335,
-6.263873644958017e-33,
0.010049574077129364,
-0.025711333379149437,
-0.0095168212428689,
0.006757490336894989,
0.011788046918809414,
0.017838427796959877,
-0.02016061171889305,
-0.018576089292764664,
-0.00826098769903183,
0.004111879039555788,
0.004876772873103619,
0.002244650386273861,
-0.02815886400640011,
-0.011741936206817627,
0.03577186539769173,
-0.018373820930719376,
0.0071752858348190784,
0.05768357589840889,
0.018603119999170303,
0.016434229910373688,
0.049422793090343475,
0.0039609395898878574,
0.02993307262659073,
0.017353229224681854,
-0.010053982958197594,
-0.0013339421711862087,
0.030344830825924873,
-0.012905365787446499,
-0.015017127618193626,
-0.05671606585383415,
-0.005744976457208395,
0.02481837011873722,
0.029391873627901077,
-0.0005662518087774515,
0.010526156984269619,
-0.0353412963449955,
0.010821007192134857,
-0.0011910944012925029,
-0.041390594094991684,
-0.01487860269844532,
-0.024398909881711006,
0.014900095760822296,
-0.024378905072808266,
0.007477452512830496,
0.0008533931686542928,
0.0013251204509288073,
-0.009651544503867626,
0.01353742741048336,
0.015022369101643562,
0.01280524954199791,
0.025919487699866295,
0.029439574107527733,
0.04034675657749176,
-0.008442447520792484,
-0.01531800627708435,
0.01756356656551361,
-0.0030429039616137743,
-0.0033709073904901743,
0.00874828826636076,
-0.013109915889799595,
0.0005348216509446502,
0.003465118119493127,
-0.0012422958388924599,
0.013295142911374569,
0.008461724035441875,
-0.002182826166972518,
0.055911753326654434,
0.01643136329948902,
0.0067574093118309975,
0.005090569145977497,
-0.0456007681787014,
0.01741335541009903,
-0.008639590814709663,
-0.030365459620952606,
0.05411728098988533,
-0.014233829453587532,
-0.0011928086169064045,
-0.0008331277640536427,
0.042346809059381485,
0.05332593992352486,
0.01207816693931818,
0.0004207310266792774,
0.008739331737160683,
-0.04180527478456497,
-0.032440267503261566,
-0.01274322159588337,
0.012789841741323471,
-0.008635365404188633,
-0.013098322786390781,
0.000949724402744323,
0.03313267603516579,
0.05226525291800499,
-0.0014332004357129335,
-0.047580935060977936,
-0.013523807749152184,
7.214780983848075e-33,
-0.014839817769825459,
-0.03013022057712078,
0.012580612674355507,
0.0023572908248752356,
0.01809702441096306,
-0.012990354560315609,
-0.009006604552268982,
0.030426327139139175,
-0.004787797573953867,
0.0043659512884914875,
0.0021621156483888626,
-0.015315021388232708,
-0.010887613520026207,
0.029607348144054413,
0.057949066162109375,
-0.011104697361588478,
0.011680243536829948,
-0.018850991502404213,
-0.014761281199753284,
0.003883218392729759,
0.017497001215815544,
-0.005497646052390337,
0.004249098710715771,
0.024101993069052696,
0.02968200109899044,
0.052172958850860596,
-0.012698838487267494,
0.02063118666410446,
0.0008944333530962467,
-0.035657308995723724,
0.04505404829978943,
-0.0026214742101728916,
0.023754572495818138,
-0.025281794369220734,
-0.052905745804309845,
0.03883757442235947,
-0.01476496271789074,
0.015714943408966064,
0.047087863087654114,
-0.0054280986078083515,
0.04483368992805481,
0.01501663587987423,
-0.01403847336769104,
0.0218418650329113,
-0.011453250423073769,
0.002840830944478512,
-0.00802761409431696,
-0.003883667755872011,
-0.0025735003873705864,
0.05277164652943611,
0.004856209270656109,
0.012704824097454548,
0.001209088834002614,
0.014877043664455414,
0.04946407303214073,
-0.03254546970129013,
-0.03660937771201134,
0.016380511224269867,
-0.02248249016702175,
-0.030364463105797768,
-0.041417550295591354,
0.011415042914450169,
-0.01975005306303501,
0.043819211423397064,
-0.04998582974076271,
-0.01677022874355316,
-0.027720430865883827,
-0.0004486597317736596,
-0.0055725486017763615,
0.0029730694368481636,
0.02992568351328373,
0.03308609500527382,
0.0098691675812006,
-0.005945548415184021,
0.05509670078754425,
-0.01985100656747818,
-0.027165910229086876,
0.0028584497049450874,
-0.021631378680467606,
0.021612385287880898,
0.012111400254070759,
0.026075365021824837,
0.026424087584018707,
0.008416784927248955,
0.009425139054656029,
0.0018223996739834547,
-0.03442990407347679,
0.014744742773473263,
0.03502826765179634,
-0.006827120669186115,
-0.017347929999232292,
-0.04566071555018425,
0.0017852156888693571,
0.003282335354015231,
0.005262203048914671,
-1.2531830684281431e-8,
-0.05233638361096382,
-0.01060636155307293,
-0.043184105306863785,
0.0033007324673235416,
0.03492765128612518,
0.03077460266649723,
-0.0048926412127912045,
-0.007390194106847048,
-0.00997766200453043,
0.015898140147328377,
0.0711430162191391,
-0.02529279887676239,
0.0006813924992457032,
0.017751244828104973,
-0.010961865074932575,
-0.0338427759706974,
0.026544809341430664,
-0.008939496241509914,
0.020347783342003822,
-0.032161567360162735,
0.010983743704855442,
0.03649554029107094,
0.012335645034909248,
0.01259258296340704,
0.04665946587920189,
0.0077023073099553585,
-0.022683648392558098,
-0.0716010257601738,
-0.002332117408514023,
-0.06221361458301544,
0.025447847321629524,
-0.02711808681488037,
-0.02468561753630638,
0.003596080467104912,
-0.006639197468757629,
-0.021856339648365974,
0.025709787383675575,
0.01789720170199871,
-0.061779070645570755,
-0.01126266922801733,
0.007224342320114374,
-0.026948895305395126,
-0.007797810714691877,
-0.028858492150902748,
-0.0351654477417469,
-0.01233301404863596,
-0.03921801596879959,
-0.006074824836105108,
0.031574226915836334,
-0.032674286514520645,
0.02290748618543148,
-0.03358016535639763,
0.04173067584633827,
0.023134728893637657,
0.022257210686802864,
-0.0014645560877397656,
0.02554570510983467,
0.034386057406663895,
-0.041669271886348724,
-0.0015350705944001675,
-0.0013703578151762486,
0.012482077814638615,
-0.016703080385923386,
-0.014788838103413582
] | python-converting-wordpress-posts-in-csv-format | https://markhneedham.com/blog/2015/07/07/python-converting-wordpress-posts-in-csv-format |
false | 2015-07-09 05:55:33 | R: dplyr - Error: cannot modify grouping variable | [
"r-2",
"rstats",
"dplyr"
] | [
"R"
] | I've been doing some exploration of the posts made on this blog and I thought I'd start with answering a simple question - on which dates did I write the most posts?
I started with a data frame containing each post and the date it was published:
[source,r]
----
> library(dplyr)
> df %>% sample_n(5)
title date
1148 Taiichi Ohno's Workplace Management: Book Review 2008-12-08 14:14:48
158 Rails: Faking a delete method with 'form_for' 2010-09-20 18:52:15
331 Retrospectives: The 4 L's Retrospective 2011-07-25 21:00:30
1035 msbuild - Use OutputPath instead of OutDir 2008-08-14 18:54:03
1181 The danger of commenting out code 2009-01-17 06:02:33
----
To find the most popular days for blog posts we can write the following aggregation function:
[source,r]
----
> df %>% mutate(day = as.Date(date)) %>% count(day) %>% arrange(desc(n))
Source: local data frame [1,140 x 2]
day n
1 2012-12-31 6
2 2014-05-31 6
3 2008-08-08 5
4 2013-01-27 5
5 2009-08-24 4
6 2012-06-24 4
7 2012-09-30 4
8 2012-10-27 4
9 2012-11-24 4
10 2013-02-28 4
----
So we can see a couple of days with 6 posts, a couple with 5 posts, a few more with 4 posts and then presumably loads of days with 1 post.
I thought it'd be cool if we could blog a histogram which had on the x axis the number of posts and on the y axis how many days that number of posts occurred e.g. for an x value of 6 (posts) we'd have a y value of 2 (occurrences).
My initial attempt was this:
[source,r]
----
> df %>% mutate(day = as.Date(date)) %>% count(day) %>% count(n)
Error: cannot modify grouping variable
----
Unfortunately that isn't allowed. I tried ungrouping and then counting again:
[source,r]
----
df %>% mutate(day = as.Date(date)) %>% count(day) %>% ungroup() %>% count(n)
Error: cannot modify grouping variable
----
Still no luck. I did a bit of googlign around and came across a post which http://stackoverflow.com/questions/30243299/dplyr-error-cannot-modify-grouping-variable-even-when-first-applying-ungroup[suggested using a combination of group_by + mutate or group_by + summarize].
I tried the mutate approach first:
[source,r]
----
> df %>% mutate(day = as.Date(date)) %>%
+ group_by(day) %>% mutate(n = n()) %>% ungroup() %>% sample_n(5)
title Source: local data frame [5 x 4]
title date day n
1 QCon London 2009: DDD & BDD - Dan North 2009-03-13 15:28:04 2009-03-13 2
2 Onboarding: Sketch the landscape 2013-02-15 07:36:06 2013-02-15 1
3 Ego Depletion 2013-06-04 23:16:29 2013-06-04 1
4 Clean Code: Book Review 2008-09-15 09:52:33 2008-09-15 1
5 Dreyfus Model: More thoughts 2009-08-10 10:36:51 2009-08-10 1
----
That keeps around the 'title' which is a bit annoying. We can get rid of it using a distinct on 'day' if we want and if we also implement the second part of the function we end up with the following:
[source,r]
----
> df %>% mutate(day = as.Date(date)) %>%
group_by(day) %>% mutate(n = n()) %>% distinct(day) %>% ungroup() %>%
group_by(n) %>%
mutate(c = n()) %>%
distinct(n)
Source: local data frame [6 x 5]
Groups: n
title date day n c
1 Functional C#: Writing a 'partition' function 2010-02-01 23:34:02 2010-02-01 1 852
2 Willed vs Forced designs 2010-02-08 22:48:05 2010-02-08 2 235
3 TDD: Testing collections 2010-07-28 06:05:25 2010-07-28 3 41
4 Creating a Samba share between Ubuntu and Mac OS X 2012-06-24 00:40:35 2012-06-24 4 8
5 Gamification and Software: Some thoughts 2012-12-31 10:57:19 2012-12-31 6 2
6 Python/numpy: Selecting specific column in 2D array 2013-01-27 02:10:10 2013-01-27 5 2
----
Annoyingly we've still got the 'title', 'date' and 'day' columns hanging around which we'd need to get rid of with a call to 'select'. The code also feels quite icky, especially the use of distinct in a couple of places.
In fact we can simplify the code if we use summarize instead of mutate:
[source,r]
----
> df %>% mutate(day = as.Date(date)) %>%
group_by(day) %>% summarize(n = n()) %>% ungroup() %>%
group_by(n) %>% summarize(c = n())
Source: local data frame [6 x 2]
n c
1 1 852
2 2 235
3 3 41
4 4 8
5 5 2
6 6 2
----
And we've got also rid of the extra columns in the bargain which is great! And now we can plot our histogram:
[source,r]
----
> library(ggplot2)
> post_frequencies = df %>% mutate(day = as.Date(date)) %>%
group_by(day) %>% summarize(n = n()) %>% ungroup() %>%
group_by(n) %>% summarize(c = n())
> ggplot(aes(x = n, y = c), data = post_frequencies) + geom_bar(stat = "identity")
----
image::{{<siteurl>}}/uploads/2015/07/2015-07-09_06-44-47.png[2015 07 09 06 44 47,520]
In this case we don't actually need to do the second grouping to create the bar chart since ggplot will do it for us if we feed it the following data:
[source,r]
----
. ggplot(aes(x = n),
data = df %>% mutate(day = as.Date(date)) %>% group_by(day) %>% summarize(n = n()) %>% ungroup()) +
geom_bar(binwidth = 1) +
scale_x_continuous(limits=c(1, 6))
----
image::{{<siteurl>}}/uploads/2015/07/2015-07-09_06-55-12.png[2015 07 09 06 55 12,517]
Still, it's good to know how! | null | null | [
0.009800666943192482,
-0.03247194364666939,
0.002085322281345725,
0.027946073561906815,
0.058287233114242554,
0.02696005068719387,
0.04237491637468338,
0.007685769349336624,
0.0049815066158771515,
0.01728476770222187,
0.014660579152405262,
-0.027819529175758362,
-0.038925763219594955,
0.04027542099356651,
-0.047779373824596405,
0.0668191984295845,
0.03167974576354027,
-0.021234557032585144,
0.03312992304563522,
0.008190559223294258,
0.05353841930627823,
0.029178528115153313,
-0.0207375381141901,
0.03226521983742714,
0.04159306734800339,
-0.011771099641919136,
0.009099137037992477,
-0.029614422470331192,
-0.025238454341888428,
0.017107125371694565,
0.005989639554172754,
0.03375520929694176,
-0.004543977323919535,
0.023563504219055176,
0.027593141421675682,
0.006412580609321594,
-0.019154218956828117,
0.009533273056149483,
0.030689632520079613,
-0.016618827357888222,
-0.06868013739585876,
-0.004424977581948042,
-0.016024956479668617,
0.001439709565602243,
-0.04036187008023262,
0.008037209510803223,
-0.04435213282704353,
0.0345485620200634,
0.0113245639950037,
0.016073893755674362,
-0.06030533090233803,
0.04619971290230751,
0.039880815893411636,
-0.03627379983663559,
-0.020464319735765457,
0.044770319014787674,
0.03496474027633667,
-0.05875692144036293,
-0.002758241491392255,
-0.02293328382074833,
0.025245362892746925,
0.019596559926867485,
-0.009928923100233078,
0.006568149663507938,
0.004240521229803562,
-0.039131663739681244,
-0.013822360895574093,
0.037581440061330795,
-0.0096229063346982,
0.0010818245355039835,
-0.04084183648228645,
-0.012461237609386444,
0.009651923552155495,
-0.007141908165067434,
-0.02069377526640892,
-0.011608442291617393,
0.0007387420628219843,
0.05252411589026451,
0.021143151447176933,
0.011891520582139492,
-0.019783565774559975,
-0.0189654603600502,
0.01183154433965683,
0.02804170921444893,
0.01489163562655449,
-0.02269136533141136,
-0.03667350113391876,
-0.04898164048790932,
-0.059479501098394394,
0.04818476736545563,
-0.020695814862847328,
-0.056607019156217575,
0.03988080844283104,
0.031783923506736755,
-0.011102519929409027,
-0.014185485430061817,
0.01439161878079176,
0.011266626417636871,
0.0010296331020072103,
-0.025763211771845818,
-0.06363149732351303,
-0.008022152818739414,
0.0420394092798233,
0.01711476594209671,
-0.07457172870635986,
-0.02549140341579914,
-0.0512731596827507,
-0.011370455846190453,
0.029671747237443924,
-0.0016900334740057588,
-0.019921759143471718,
0.04247911646962166,
-0.04444185644388199,
0.0001822877093218267,
-0.05584164336323738,
0.06551602482795715,
0.03409314528107643,
-0.043222129344940186,
0.0060166106559336185,
-0.023917553946375847,
0.032117895781993866,
0.011215328238904476,
-0.007782065309584141,
0.06921679526567459,
-0.008383696898818016,
0.06364905089139938,
0.009999632835388184,
0.015060974285006523,
-0.02421928010880947,
-0.061522696167230606,
-0.019133085384964943,
0.054465364664793015,
-0.04474504292011261,
-0.001272958586923778,
-0.010283693671226501,
-0.034425098448991776,
-0.021308880299329758,
-0.010382845997810364,
0.08184615522623062,
0.03940628096461296,
0.017399203032255173,
-0.0219322107732296,
-0.012869929894804955,
-0.01946662738919258,
0.033755287528038025,
0.010640056803822517,
0.006845596246421337,
-0.05552979186177254,
-0.0475761704146862,
-0.015392513014376163,
0.03892790898680687,
0.014091502875089645,
0.03715803101658821,
-0.04387694597244263,
0.025542231276631355,
0.04263405129313469,
0.03210915997624397,
-0.0038933251053094864,
-0.006593707948923111,
0.022974856197834015,
0.05810613930225372,
0.027047522366046906,
0.03451807424426079,
0.04781021922826767,
-0.0039287530817091465,
-0.04821842163801193,
0.03170500323176384,
0.026953447610139847,
-0.017052050679922104,
-0.025094157084822655,
-0.05249950662255287,
-0.04373256862163544,
0.05634649842977524,
-0.027397239580750465,
-0.002214124659076333,
0.06640147417783737,
0.06303869187831879,
0.056171707808971405,
0.03501814231276512,
0.002579155145213008,
-0.07061216235160828,
0.045369185507297516,
-0.001019834540784359,
0.04804794117808342,
0.03755468502640724,
-0.03876547887921333,
0.09428586810827255,
0.031491462141275406,
0.05145817622542381,
0.04154280945658684,
-0.05525801703333855,
-0.07576099783182144,
0.011895980685949326,
-0.015232739970088005,
0.0494438111782074,
-0.027341919019818306,
-0.002974794013425708,
0.07189980149269104,
0.014529537409543991,
0.023859519511461258,
-0.022224891930818558,
0.03470912203192711,
0.023188801482319832,
-0.042107850313186646,
-0.03346792235970497,
0.020716866478323936,
0.042512111365795135,
-0.015410053543746471,
-0.016844721511006355,
0.01875298097729683,
-0.015044220723211765,
0.041080914437770844,
0.027002427726984024,
-0.01917596161365509,
0.02201826497912407,
0.05607696250081062,
0.06478944420814514,
0.027490999549627304,
0.03906434774398804,
-0.05094916373491287,
0.027332738041877747,
0.01146991178393364,
-0.039489444345235825,
-0.02605295740067959,
-0.0011936149094253778,
0.1275951862335205,
0.05800996348261833,
-0.03359995782375336,
-0.030672475695610046,
-0.010830218903720379,
-0.013492539525032043,
-0.016442690044641495,
0.02767578512430191,
0.0468708761036396,
0.0071309348568320274,
0.03540780022740364,
-0.04074011743068695,
-0.015963442623615265,
0.023350710049271584,
-0.06517978012561798,
0.017284099012613297,
0.06316301226615906,
0.021895673125982285,
0.06004489213228226,
-0.04769524931907654,
0.008900735527276993,
-0.0021352225448936224,
-0.0031461811158806086,
-0.10134409368038177,
0.00777641823515296,
0.030190641060471535,
-0.009120396338403225,
0.03572491183876991,
-0.008603427559137344,
-0.005634323228150606,
-0.007069301325827837,
-0.04358336701989174,
0.011325282976031303,
0.07829543203115463,
0.05196736752986908,
-0.023378383368253708,
0.01484580896794796,
-0.017696551978588104,
-0.010475853458046913,
-0.011208021081984043,
-0.03480476140975952,
-0.07075002044439316,
-0.030838074162602425,
0.014033479616045952,
0.017717270180583,
0.038242463022470474,
-0.021157290786504745,
0.010758982971310616,
0.03189763054251671,
0.011755161918699741,
-0.018678689375519753,
0.04605269432067871,
0.010578897781670094,
-0.009842174127697945,
0.009168037213385105,
-0.027053989470005035,
0.053674016147851944,
0.008436732925474644,
-0.017347227782011032,
0.0021224829833954573,
-0.07952010631561279,
0.04731428995728493,
-0.03953288495540619,
-0.028529740869998932,
0.01991931162774563,
-0.006457677576690912,
0.06220397353172302,
0.04165026545524597,
-0.007760936859995127,
0.05138874799013138,
0.04012215510010719,
0.018815046176314354,
-0.0029220012947916985,
-0.007554127834737301,
0.047933440655469894,
0.015700027346611023,
-0.027454957365989685,
0.07222720235586166,
-0.0016813111724331975,
0.007888265885412693,
-0.030255362391471863,
0.002537247957661748,
-0.004355974029749632,
-0.26185232400894165,
0.012809738516807556,
-0.013772501610219479,
-0.038100749254226685,
0.008790315128862858,
-0.03127734363079071,
0.03787214308977127,
-0.026170087978243828,
-0.03836878016591072,
-0.009461102075874805,
0.011931204237043858,
-0.03178563714027405,
-0.038984522223472595,
0.05368264764547348,
0.0333571620285511,
0.03229165077209473,
0.021985594183206558,
-0.025388890877366066,
0.0033245529048144817,
0.049328699707984924,
0.030549585819244385,
-0.043939195573329926,
-0.03017304837703705,
0.0653427317738533,
0.02479378506541252,
0.04584190249443054,
-0.06411836296319962,
0.03478865697979927,
-0.07106232643127441,
-0.025981638580560684,
0.03900790587067604,
-0.01914818026125431,
0.010609394870698452,
0.0010470992419868708,
0.00011621952580753714,
-0.012659036554396152,
0.013076214119791985,
0.027118371799588203,
0.013034961186349392,
0.021636374294757843,
-0.009261033497750759,
-0.0328633114695549,
-0.009517590515315533,
-0.01719542220234871,
0.05699484050273895,
0.006885407492518425,
-0.044420626014471054,
0.017345430329442024,
-0.04367521405220032,
0.061501163989305496,
0.006922516506165266,
-0.03582543134689331,
-0.02612466737627983,
-0.0011568585177883506,
-0.03283420577645302,
-0.034402742981910706,
-0.04145640879869461,
-0.011822549626231194,
-0.016649790108203888,
-0.043755803257226944,
0.0004653132345993072,
-0.025076478719711304,
0.014578616246581078,
-0.03381963074207306,
-0.047337956726551056,
-0.06434319913387299,
-0.09292276948690414,
-0.0006887502386234701,
0.06617370247840881,
0.03275608271360397,
-0.03654293715953827,
-0.003495108801871538,
-0.03183039277791977,
-0.11198437213897705,
-0.01487785391509533,
-0.01680215820670128,
-0.02594028040766716,
0.02047520875930786,
-0.0039298199117183685,
0.05513462424278259,
-0.05726901441812515,
-0.04107898101210594,
0.024629810824990273,
0.006996412295848131,
0.02330162562429905,
-0.023719757795333862,
0.019520185887813568,
0.008723029866814613,
-0.056125376373529434,
-0.020905861631035805,
0.046831533312797546,
-0.03363840654492378,
-0.012818305753171444,
0.005691848695278168,
-0.015502341091632843,
0.0663030669093132,
0.022359251976013184,
0.01979377493262291,
0.0023805105593055487,
0.025906339287757874,
0.03366843983530998,
-0.03480923920869827,
0.02156120166182518,
-0.09127882122993469,
-0.0335535854101181,
0.0018531737150624394,
-0.06747723370790482,
0.031261224299669266,
-0.0001952221355168149,
-0.0009467487689107656,
0.004151488188654184,
-0.025250796228647232,
0.026843784376978874,
-0.070600226521492,
-0.012810362502932549,
-0.00002721568125707563,
0.004361909348517656,
0.027382003143429756,
0.020356014370918274,
0.010675785131752491,
-0.06401938945055008,
-0.003444171976298094,
-0.046427786350250244,
-0.030570002272725105,
-0.03556014969944954,
-0.019811861217021942,
0.009044564329087734,
-0.017867857590317726,
0.011265967041254044,
0.04560993239283562,
-0.010387021116912365,
-0.010174342431128025,
0.04421855881810188,
-0.022962944582104683,
0.020013760775327682,
0.0009885620092973113,
-0.03442662954330444,
-0.021104959771037102,
0.009179421700537205,
0.02026076801121235,
-0.0018832532223314047,
0.003117657033726573,
-0.0012995610013604164,
0.029192093759775162,
0.011265575885772705,
0.0009700391674414277,
0.02572416514158249,
0.0063511584885418415,
0.005293089896440506,
0.0007925527752377093,
0.0020440195221453905,
0.004211680963635445,
-0.006910343654453754,
-0.03769032284617424,
-0.041158903390169144,
0.027331877499818802,
0.04686148464679718,
-0.02942122332751751,
-0.04016706719994545,
-0.03651030361652374,
-0.012082764878869057,
-0.05124343931674957,
0.0010361853055655956,
-0.022856958210468292,
-0.0007931971340440214,
0.03443995863199234,
-0.010119431652128696,
0.026531437411904335,
0.052580576390028,
-0.028789734467864037,
-0.019940106198191643,
0.0028870028909295797,
-0.017185186967253685,
0.016347818076610565,
0.0028639009688049555,
-0.007993130013346672,
0.006022764835506678,
-0.00829909648746252,
0.03509394824504852,
-0.011172610335052013,
-0.02519524283707142,
-0.01533424574881792,
0.027064921334385872,
0.030782092362642288,
0.01362673845142126,
0.08341530710458755,
-0.0007247740286402404,
-0.011750311590731144,
-0.041414543986320496,
-0.012446685694158077,
-0.04276448115706444,
-0.012874124571681023,
0.006988646928220987,
-0.007092519197613001,
-0.025765780359506607,
-0.0876091793179512,
0.029524220153689384,
0.029881257563829422,
0.009600301273167133,
-0.003851579502224922,
-0.025930888950824738,
-0.00068943842779845,
-0.0482926182448864,
0.04690337926149368,
0.06963662058115005,
-0.05411849543452263,
0.011251396499574184,
0.02302580513060093,
-0.0238040778785944,
-0.007061890326440334,
0.02676146663725376,
-0.07717596739530563,
-0.02798343263566494,
-0.011338287964463234,
0.04828917235136032,
-0.02530469372868538,
-0.028472887352108955,
-0.07856906205415726,
0.014917464926838875,
0.01322620827704668,
0.027735324576497078,
0.001493640709668398,
-0.0009428113116882741,
-0.01545734517276287,
-0.02544160932302475,
0.0044741942547261715,
-0.02668670006096363,
-0.04465765133500099,
0.04024907201528549,
-0.022629674524068832,
0.03441556915640831,
-0.01329779252409935,
0.02686908468604088,
0.010706601664423943,
-0.05605578050017357,
-0.018629183992743492,
-0.038308244198560715,
-0.0008565392345190048,
0.01622622273862362,
0.05785634368658066,
-0.023302802816033363,
0.0031879551243036985,
-0.048378895968198776,
-0.003983401693403721,
-0.008455786854028702,
-0.020410912111401558,
-0.01994333229959011,
0.0013764390023425221,
0.013252237811684608,
0.0448443703353405,
0.018098754808306694,
-0.003966915886849165,
-0.026105187833309174,
-0.03831828385591507,
0.05449998006224632,
-0.034171346575021744,
-0.03751792758703232,
-0.030734378844499588,
-0.05700145289301872,
0.033674102276563644,
0.006232842803001404,
0.022563349455595016,
-0.012680073268711567,
0.04594128578901291,
0.02592049352824688,
0.05365987867116928,
0.05718274414539337,
0.007608157582581043,
0.010234900750219822,
-0.03133608400821686,
-0.005314180161803961,
-0.10079669952392578,
-0.01259319856762886,
0.03256756439805031,
-0.005800223909318447,
0.012298990972340107,
0.004044640343636274,
-0.025450199842453003,
0.02859731949865818,
-0.05475489795207977,
-0.04283077269792557,
0.027619171887636185,
0.0013218856183812022,
-0.001954896841198206,
0.02894878387451172,
-0.04836765676736832,
-0.009324914775788784,
0.026456376537680626,
-0.050295427441596985,
-0.005641323514282703,
0.0010748024797067046,
0.04274973273277283,
-0.03754449635744095,
0.01995077356696129,
-0.02301129139959812,
-0.01585809886455536,
0.044905588030815125,
0.02107076905667782,
-0.011855791322886944,
0.04107905924320221,
-0.014993962831795216,
0.019062098115682602,
0.0010559672955423594,
0.008762489072978497,
0.005699469707906246,
0.013983978889882565,
0.0001462369691580534,
-0.028620248660445213,
0.01035513635724783,
0.006630808115005493,
-0.009375292807817459,
-0.03556232899427414,
0.10006154328584671,
0.009241214953362942,
-0.03412517532706261,
-0.08155590295791626,
0.013362721540033817,
-0.019013499841094017,
0.010893134400248528,
0.005932973697781563,
-0.0050946916453540325,
-0.019043436273932457,
0.07422049343585968,
-0.0013318870915099978,
0.005873250775039196,
0.06056860461831093,
-0.006985379382967949,
-0.0019062741193920374,
-0.017140312120318413,
0.08017278462648392,
0.09330755472183228,
0.07030956447124481,
-0.02564522996544838,
0.08156037330627441,
-0.030787449330091476,
-0.0562191866338253,
0.021262260153889656,
-0.042484961450099945,
-0.009331743232905865,
-0.038075730204582214,
0.013948776759207249,
0.05507008731365204,
-0.03342800587415695,
0.07433069497346878,
-0.01033659279346466,
-0.005309942178428173,
-0.010132042691111565,
0.004958056379109621,
0.03412527218461037,
0.05050412192940712,
-0.0004923077067360282,
0.028034845367074013,
-0.0011487600859254599,
-0.00557704409584403,
0.029118428006768227,
-0.019086189568042755,
-0.015563000924885273,
0.031818289309740067,
-0.02484891004860401,
-0.009843566454946995,
-0.023068560287356377,
0.017662664875388145,
0.04085997864603996,
-0.05032646656036377,
0.020364195108413696,
-0.014908815734088421,
0.039612676948308945,
-0.023611335083842278,
0.040164440870285034,
0.0027603167109191418,
-0.0028405298944562674,
-0.015761271119117737,
-0.06009558215737343,
-0.004230889957398176,
-0.02245333418250084,
-0.048367828130722046,
0.03068551793694496,
-0.059494152665138245,
0.013340636156499386,
0.039122067391872406,
-0.026922520250082016,
-0.03802862763404846,
-0.04125509038567543,
-0.026547953486442566,
-0.04392450675368309,
-0.08692502975463867,
0.0050649624317884445,
0.016401425004005432,
-0.010462409816682339,
-0.03814444690942764,
-0.006774097681045532,
-0.0168320145457983,
-0.020501432940363884,
0.01179216243326664,
-0.05183955654501915,
-0.03141554817557335,
0.027432503178715706,
0.02455316297709942,
0.006769485305994749,
0.03172576427459717,
0.055410344153642654,
0.0032283840700984,
-0.0308774933218956,
-0.01751508004963398,
0.011825901456177235,
0.05267556756734848,
0.0305353794246912,
-0.0063124666921794415,
-0.07412012666463852,
0.029875267297029495,
-0.005070692393928766,
-0.03545137867331505,
-0.07292714715003967,
0.04472154751420021,
-0.00757913663983345,
-0.009063759818673134,
0.04950316250324249,
-0.012950222939252853,
0.026368197053670883,
-0.03051259182393551,
-0.00047642423305660486,
0.008523296564817429,
0.03903689607977867,
0.034419119358062744,
-0.042062025517225266,
0.06797250360250473,
0.04723140224814415,
-0.011315735056996346,
-0.047728873789310455,
-0.0334630124270916,
-0.007932224310934544,
-0.030109474435448647,
-0.05081034079194069,
-0.05279327929019928,
-0.06287167966365814,
-0.09224927425384521,
-0.03689420223236084,
0.04725790023803711,
-0.045765385031700134,
-0.020364832133054733,
0.01219320297241211,
0.01846817135810852,
-0.0368572436273098,
0.02774316631257534,
-0.03596421331167221,
0.010353569872677326,
-0.013794112019240856,
-0.0006154935690574348,
-0.029590168967843056,
0.028630297631025314,
0.0016960150096565485,
0.01716626062989235,
0.009022836573421955,
-0.048127565532922745,
-0.006486494559794664,
-0.014113442972302437,
-0.006912742275744677,
0.03341684862971306,
0.011525385081768036,
0.007028570864349604
] | [
-0.06892354041337967,
-0.027090871706604958,
-0.005822890438139439,
0.010623808950185776,
0.05584339424967766,
-0.05235312134027481,
-0.02993946708738804,
0.023414691910147667,
0.00027428645989857614,
0.016401519998908043,
0.037356771528720856,
-0.029260143637657166,
-0.005871388129889965,
0.019930819049477577,
0.04260683059692383,
-0.001869090716354549,
-0.025941703468561172,
-0.08442157506942749,
-0.03040233440697193,
0.03959712013602257,
-0.01103158202022314,
-0.024470282718539238,
-0.05856187269091606,
-0.040134165436029434,
0.04433174803853035,
0.012093369849026203,
-0.0004200547991786152,
-0.052021581679582596,
-0.048196904361248016,
-0.20427152514457703,
0.0025772389490157366,
0.0017316960729658604,
0.0618579238653183,
-0.05393542721867561,
0.019088556990027428,
0.026648446917533875,
0.04801943153142929,
0.018463149666786194,
0.026820844039320946,
0.042754679918289185,
0.028026433661580086,
-0.010999159887433052,
-0.026064960286021233,
-0.03223641961812973,
0.05196916684508324,
0.042635783553123474,
-0.02427203767001629,
-0.018575364723801613,
-0.018352247774600983,
0.04913311451673508,
-0.032965321093797684,
-0.027298102155327797,
-0.027114463970065117,
0.012088986113667488,
0.0116614094004035,
0.02825348637998104,
0.009194512851536274,
0.03551071137189865,
0.001740140374749899,
0.02824152447283268,
0.015166287310421467,
-0.0013129671569913626,
-0.14838753640651703,
0.1043078601360321,
-0.01740817166864872,
0.03090132214128971,
-0.040158506482839584,
-0.007101576309651136,
-0.0010555372573435307,
0.07895401120185852,
0.009840313345193863,
0.004478195682168007,
-0.04680280014872551,
0.0562712661921978,
0.02009747363626957,
-0.00878658052533865,
0.015115635469555855,
0.022059503942728043,
0.03534538671374321,
-0.042689722031354904,
-0.025670772418379784,
0.024403473362326622,
0.00008315750164911151,
-0.026075296103954315,
-0.007645676378160715,
-0.014319080859422684,
0.008139042183756828,
0.04338512197136879,
-0.002057979116216302,
0.03216418996453285,
0.04690078645944595,
0.01940334029495716,
0.03557037189602852,
0.0030492183286696672,
-0.09461002051830292,
-0.04494014382362366,
0.022636502981185913,
0.0369301438331604,
-0.002789505524560809,
0.4079900085926056,
-0.04223727062344551,
-0.0035707757342606783,
0.04048178717494011,
0.04478725790977478,
-0.013934479095041752,
0.0018663996597751975,
0.01803591474890709,
-0.05595327168703079,
-0.02270595356822014,
-0.02740030735731125,
0.01795332506299019,
-0.021748268976807594,
0.07496218383312225,
-0.07144168019294739,
0.06156911328434944,
-0.017942147329449654,
0.06452038139104843,
0.03679991140961647,
0.014497453346848488,
0.04454050213098526,
0.0051764254458248615,
-0.01415944378823042,
0.04843457415699959,
-0.011794591322541237,
-0.0038514977786689997,
0.030640283599495888,
0.05737946182489395,
0.046381086111068726,
0.058357223868370056,
-0.016254505142569542,
0.02858281135559082,
0.002632011426612735,
-0.1108177900314331,
-0.00540160620585084,
-0.005760043393820524,
0.0006308673182502389,
0.030222279950976372,
-0.0570332407951355,
0.028715649619698524,
0.02044287696480751,
-0.019345946609973907,
-0.00891689583659172,
0.057696565985679626,
-0.007800748571753502,
-0.051061179488897324,
0.14027638733386993,
0.016126452013850212,
-0.06293856352567673,
-0.016951344907283783,
-0.04121442511677742,
-0.023469900712370872,
0.04148787260055542,
0.004013391677290201,
-0.06870000064373016,
0.019888658076524734,
0.021873606368899345,
0.07102768868207932,
-0.049941278994083405,
-0.05317504331469536,
-0.016515986993908882,
-0.042165253311395645,
-0.021674998104572296,
-0.04164636507630348,
0.012981336563825607,
0.043806977570056915,
-0.13028573989868164,
-0.00910023134201765,
0.01978043094277382,
0.029041673988103867,
-0.07349630445241928,
0.03977106884121895,
0.015628252178430557,
-0.03694440424442291,
-0.007321259472519159,
0.051213331520557404,
-0.005422377027571201,
0.013674296438694,
0.029789511114358902,
0.045884497463703156,
0.014150715433061123,
0.012165912427008152,
0.017117202281951904,
-0.057669855654239655,
0.026892108842730522,
-0.06050331890583038,
-0.07855196297168732,
-0.03811554238200188,
-0.0013887089444324374,
-0.010120854713022709,
0.00808865949511528,
-0.0025990016292780638,
-0.051197078078985214,
-0.07700254023075104,
0.055897634476423264,
-0.037305910140275955,
-0.01875247433781624,
0.032326530665159225,
0.03030523844063282,
-0.022716861218214035,
-0.0185054000467062,
-0.049265056848526,
-0.016054311767220497,
0.004278142936527729,
0.030701326206326485,
-0.030741780996322632,
0.042763851583004,
0.04465441033244133,
-0.04714420065283775,
0.06702711433172226,
0.009365270845592022,
-0.021693537011742592,
-0.010386480018496513,
0.01743410713970661,
-0.0002985456376336515,
-0.0015386310406029224,
0.006866815499961376,
-0.010906093753874302,
-0.009677695110440254,
0.007417193613946438,
0.04148968681693077,
0.025102201849222183,
-0.05297304689884186,
0.025197751820087433,
-0.35004714131355286,
-0.058241795748472214,
-0.008397662080824375,
0.0024475615937262774,
0.03208621218800545,
-0.05659550428390503,
0.004433253780007362,
-0.0262532290071249,
0.0010159683879464865,
0.07557915151119232,
0.06835774332284927,
-0.007794591598212719,
-0.011683188378810883,
-0.10840801149606705,
0.008980306796729565,
0.014646021649241447,
-0.028050396591424942,
-0.03493576496839523,
-0.01691005565226078,
-0.025503477081656456,
0.018742775544524193,
-0.04084526747465134,
-0.005727375857532024,
-0.07123269140720367,
0.019627094268798828,
-0.027068767696619034,
0.10403033345937729,
0.043347954750061035,
0.019150719046592712,
-0.04807959496974945,
0.048596013337373734,
-0.027388349175453186,
0.010097438469529152,
-0.0743860974907875,
0.02839513309299946,
-0.038745395839214325,
-0.0035542023833841085,
-0.016570815816521645,
-0.025850310921669006,
-0.049489472061395645,
-0.032188769429922104,
0.024100059643387794,
-0.023752935230731964,
-0.0377228818833828,
-0.09747584909200668,
0.03627360239624977,
0.017377421259880066,
-0.013305756263434887,
-0.03920009359717369,
0.04677253216505051,
0.01540444977581501,
-0.03308822959661484,
0.03411497548222542,
0.028620721772313118,
0.004404356703162193,
-0.023810720071196556,
-0.11590706557035446,
0.008441721089184284,
-0.043062735348939896,
0.00004022738721687347,
0.00892569962888956,
0.025070704519748688,
0.025762133300304413,
-0.04618686065077782,
-0.01645958609879017,
0.04173222929239273,
-0.017404256388545036,
-0.007379090413451195,
-0.0230847354978323,
0.006275003310292959,
-0.027370627969503403,
0.10763488709926605,
-0.021186726167798042,
0.012310655787587166,
0.04712715744972229,
0.03460433706641197,
-0.03540869802236557,
0.02576206438243389,
0.024580376222729683,
0.00724391033872962,
0.04053376615047455,
-0.0697460025548935,
0.04124602675437927,
-0.0015238034538924694,
0.030386168509721756,
0.03874841704964638,
0.005844207480549812,
-0.024492597207427025,
0.06144918501377106,
0.04685550183057785,
0.013371468521654606,
-0.034127216786146164,
-0.039285656064748764,
-0.04591619223356247,
0.060317762196063995,
-0.00845831073820591,
-0.24113725125789642,
0.018730981275439262,
0.06623093038797379,
0.03500239923596382,
0.02901390753686428,
0.01956849731504917,
-0.012757446616888046,
-0.017858752980828285,
0.007755789440125227,
0.01669458858668804,
0.04384985566139221,
0.07737317681312561,
-0.0023210281506180763,
-0.024281125515699387,
0.008696706965565681,
-0.019566746428608894,
-0.02451208233833313,
0.004897471982985735,
-0.011639910750091076,
-0.005063596647232771,
0.013438436202704906,
-0.044795408844947815,
0.12385911494493484,
0.02366083860397339,
-0.019470781087875366,
0.01169853936880827,
-0.011085926555097103,
0.011934014037251472,
0.06062532216310501,
-0.000785828335210681,
-0.011594568379223347,
-0.03066478855907917,
0.04006096348166466,
0.03270019590854645,
-0.0000016435626548627624,
-0.025944985449314117,
-0.03535890951752663,
0.0724579468369484,
0.015954691916704178,
-0.009675041772425175,
-0.014152047224342823,
0.008825119584798813,
-0.032476842403411865,
0.044953279197216034,
0.09239660948514938,
-0.00012931913079228252,
-0.020541248843073845,
-0.04481931030750275,
-0.05623839050531387,
-0.015291749499738216,
0.005112877581268549,
-0.021128419786691666,
-0.012814698740839958,
0.04089619964361191,
0.008219802752137184,
0.07808500528335571,
0.08045132458209991,
-0.02188868075609207,
0.04225361719727516,
0.013660348951816559,
-0.01655399613082409,
-0.018330080434679985,
0.088783860206604,
0.016563067212700844,
0.02440914511680603
] | [
0.0005420660600066185,
-0.0007108209538273513,
0.0007258192636072636,
0.05242575332522392,
-0.013142121955752373,
0.0038040780927985907,
-0.013128858059644699,
-0.027016272768378258,
-0.009900479577481747,
-0.03196994960308075,
-0.028533704578876495,
0.017921382561326027,
-0.008640856482088566,
-0.028973164036870003,
0.00550853181630373,
0.009959404356777668,
-0.01653480902314186,
-0.014554002322256565,
0.041032787412405014,
0.009362728334963322,
-0.03371932730078697,
0.033614374697208405,
0.00839447882026434,
0.01576506532728672,
0.011098179034888744,
0.0210688728839159,
-0.05441446602344513,
-0.008811980485916138,
0.022410616278648376,
-0.1320272982120514,
-0.021165139973163605,
-0.001172499032691121,
-0.002724363235756755,
0.020394550636410713,
-0.00929509662091732,
-0.011117307469248772,
-0.015834162011742592,
0.01547324564307928,
0.019074929878115654,
0.012173078954219818,
-0.03087521716952324,
0.007564340718090534,
0.02837446518242359,
0.017283868044614792,
-0.011450577527284622,
-0.009488922543823719,
-0.01366098690778017,
0.006132626906037331,
-0.007059078197926283,
-0.010799380019307137,
-0.03365292400121689,
-0.006950538605451584,
-0.0009642743389122188,
-0.0038009406998753548,
0.008772911503911018,
-0.030332069844007492,
-0.036527421325445175,
-0.03922681882977486,
-0.0018125246278941631,
-0.031021809205412865,
0.0034698781091719866,
0.023080039769411087,
-0.04518463835120201,
-0.022043544799089432,
0.01147642731666565,
-0.03849319741129875,
-0.040930092334747314,
0.0171282347291708,
0.0010777792194858193,
0.01148433331400156,
-0.04575062170624733,
0.004967326298356056,
-0.01230007503181696,
-0.0006065870984457433,
-0.03681149333715439,
0.021473700180649757,
-0.003996232524514198,
-0.04858095571398735,
-0.007540636230260134,
-0.02002737857401371,
-0.016920624300837517,
0.02370593138039112,
0.003365364158526063,
0.04035397246479988,
-0.0008227649959735572,
-0.0403163768351078,
0.04207339510321617,
0.02017192170023918,
0.027105052024126053,
-0.01351119577884674,
-0.014927438460290432,
0.024148885160684586,
0.0029988971073180437,
0.008533624932169914,
-0.11162713170051575,
-0.031481850892305374,
0.002858756808564067,
0.0412895493209362,
0.020565347746014595,
0.8269297480583191,
0.03969050571322441,
0.038269124925136566,
-0.02244904823601246,
0.02140873670578003,
-0.0007067786063998938,
-0.008137034252285957,
-0.02659945748746395,
0.0015883290907368064,
-0.02311001531779766,
-0.036347392946481705,
0.0034002214670181274,
0.03198787569999695,
0.015112210996448994,
0.02722468227148056,
0.07335145771503448,
0.02045397460460663,
0.03068976104259491,
0.012259705923497677,
-0.006588369607925415,
0.003685460891574621,
0.016864212229847908,
0.036366648972034454,
0.03880368173122406,
-0.00716373510658741,
0.002428238047286868,
-0.1636449545621872,
0.033091697841882706,
-6.523275126141756e-33,
0.033676110208034515,
-0.0036226073279976845,
0.027628324925899506,
-0.005463926121592522,
-0.0008502660202793777,
0.003925943747162819,
-0.015865257009863853,
-0.0034991437569260597,
0.009964348748326302,
-0.008616778068244457,
0.004153836984187365,
0.0016512797446921468,
0.008552759885787964,
-0.027305737137794495,
0.04170974716544151,
-0.018385233357548714,
0.015350976027548313,
0.04683477059006691,
0.03703318163752556,
0.007968037389218807,
0.054915040731430054,
0.0036426424048841,
-0.011086422018706799,
0.036822352558374405,
0.002765085780993104,
-0.011154929175972939,
0.04345502704381943,
0.016420474275946617,
-0.021506300196051598,
-0.0523386225104332,
-0.018536781892180443,
0.012033463455736637,
0.004699446726590395,
-0.010075819678604603,
0.035293564200401306,
-0.05681123584508896,
-0.016083616763353348,
0.011853487230837345,
-0.009073738940060139,
0.0014007134595885873,
-0.028183234855532646,
0.007901769131422043,
-0.026955269277095795,
-0.037428390234708786,
-0.02675088495016098,
0.039984725415706635,
0.018752411007881165,
0.029607117176055908,
-0.0009248492424376309,
0.009572552517056465,
-0.00018473972158972174,
-0.02104409597814083,
0.028954723849892616,
-0.01761852204799652,
-0.005896357819437981,
0.010342196561396122,
0.006728222128003836,
-0.012151800096035004,
0.03972811624407768,
0.02601449377834797,
-0.01452783402055502,
-0.011931752786040306,
-0.001092999940738082,
0.009404012002050877,
0.006684836000204086,
-0.0021817435044795275,
0.048347268253564835,
0.008191893808543682,
0.01604732871055603,
0.010228447616100311,
-0.041336607187986374,
0.00805541779845953,
-0.008855771273374557,
-0.022567037492990494,
0.02934378571808338,
-0.019363489001989365,
0.004179933574050665,
0.00975125003606081,
0.016400199383497238,
0.04770208150148392,
-0.005673438310623169,
-0.030441952869296074,
-0.015700770542025566,
-0.008240530267357826,
-0.020474528893828392,
-0.014408067800104618,
0.052799027413129807,
0.03864432871341705,
-0.053859204053878784,
0.004367247223854065,
0.01802995428442955,
0.021333584561944008,
0.02828916721045971,
-0.0317503996193409,
0.03777386248111725,
6.635106515891203e-33,
0.003933611325919628,
-0.007900381460785866,
-0.010475119575858116,
-0.009329634718596935,
0.045035891234874725,
-0.03658929839730263,
0.01813308708369732,
0.03640148416161537,
-0.0142807736992836,
0.02948577329516411,
-0.0012409365735948086,
-0.02124844864010811,
-0.01188331563025713,
0.06591933965682983,
0.046467483043670654,
-0.008654141798615456,
0.022609492763876915,
-0.023982707411050797,
-0.05393986776471138,
0.03250895440578461,
-0.03882152959704399,
0.027759885415434837,
-0.013447155244648457,
0.028036030009388924,
0.06666027754545212,
0.06283088028430939,
0.011693636886775494,
-0.010240575298666954,
0.004572825040668249,
0.0012594112195074558,
0.020654896274209023,
-0.014650789089500904,
0.017834458500146866,
-0.01837717369198799,
-0.039689671248197556,
0.03388408198952675,
-0.0011797967599704862,
-0.032934173941612244,
0.01854388229548931,
-0.01656043529510498,
0.011158733628690243,
0.03618047013878822,
0.005881569813936949,
0.01586986891925335,
0.0022571440786123276,
0.035772502422332764,
0.0034008196089416742,
0.035527851432561874,
-0.02101052552461624,
0.013026008382439613,
-0.008183373138308525,
0.0012533810222521424,
-0.026991214603185654,
0.0015990345273166895,
0.013625814579427242,
-0.037683743983507156,
-0.021148258820176125,
-0.019599614664912224,
-0.04014808312058449,
0.0301390178501606,
-0.03180928900837898,
-0.0005339608760550618,
-0.04594969004392624,
-0.0011802844237536192,
-0.03833814337849617,
-0.056893859058618546,
-0.00542762316763401,
-0.03140150010585785,
-0.006834424566477537,
-0.003008553758263588,
0.002708095358684659,
0.0028180754743516445,
0.011253396049141884,
0.022185172885656357,
0.019213290885090828,
0.0032590150367468596,
-0.012099704705178738,
0.026469549164175987,
-0.025175461545586586,
0.033958159387111664,
-0.01305694691836834,
-0.015357238240540028,
0.022399375215172768,
0.015542869456112385,
-0.03588280454277992,
0.006261184345930815,
-0.04080767557024956,
0.013868488371372223,
0.020330501720309258,
-0.04388049989938736,
0.019249064847826958,
-0.08031971007585526,
0.0011140484130010009,
0.03252728283405304,
-0.007913286797702312,
-1.2516534475537355e-8,
-0.03263959288597107,
-0.022859254851937294,
-0.016677675768733025,
0.01153054554015398,
0.026909949257969856,
0.0027300198562443256,
-0.007575528230518103,
-0.008736027404665947,
0.03137567266821861,
0.0127657949924469,
0.05900100618600845,
-0.020071793347597122,
0.007155517116189003,
0.008391516283154488,
-0.020052600651979446,
-0.06452956795692444,
0.02902083657681942,
-0.0013646982843056321,
0.029708154499530792,
-0.030139092355966568,
0.044677458703517914,
-0.008370939642190933,
-0.014754470437765121,
-0.02090139500796795,
0.039851196110248566,
0.005472476128488779,
0.006641466170549393,
-0.06349865347146988,
0.0001063664531102404,
-0.024057338014245033,
0.05889662727713585,
-0.03896808251738548,
-0.029672522097826004,
-0.004486859776079655,
-0.0220637246966362,
-0.04860569164156914,
0.018793584778904915,
0.006241173483431339,
-0.017477717250585556,
-0.0013434604043141007,
-0.011400427669286728,
-0.038005389273166656,
-0.019909771159291267,
-0.007188864983618259,
-0.05469920113682747,
0.025260407477617264,
-0.030962876975536346,
-0.03110785037279129,
-0.0034067784436047077,
-0.04413645714521408,
-0.006439972668886185,
-0.012691255658864975,
0.04986516386270523,
0.040536683052778244,
0.023750582709908485,
0.03142888471484184,
0.02890925295650959,
-0.017844369634985924,
-0.055731482803821564,
-0.03217776492238045,
0.010769483633339405,
0.010029354132711887,
-0.0005531845963560045,
-0.03179408237338066
] | r-dplyr-error-cannot-modify-grouping-variable | https://markhneedham.com/blog/2015/07/09/r-dplyr-error-cannot-modify-grouping-variable |
false | 2015-07-30 06:23:03 | Neo4j: Cypher - Removing consecutive duplicates | [
"neo4j",
"cypher"
] | [
"neo4j"
] | When writing Cypher queries I sometimes find myself wanting to remove consecutive duplicates in collections that I've joined together.
e.g we might start with the following query where 1 and 7 appear consecutively:
[source,cypher]
----
RETURN [1,1,2,3,4,5,6,7,7,8] AS values
==> +-----------------------+
==> | values |
==> +-----------------------+
==> | [1,1,2,3,4,5,6,7,7,8] |
==> +-----------------------+
==> 1 row
----
We want to end up with [1,2,3,4,5,6,7,8]. We can start by exploding our array and putting consecutive elements next to each other:
[source,cypher]
----
WITH [1,1,2,3,4,5,6,7,7,8] AS values
UNWIND RANGE(0, LENGTH(values) - 2) AS idx
RETURN idx, idx+1, values[idx], values[idx+1]
==> +-------------------------------------------+
==> | idx | idx+1 | values[idx] | values[idx+1] |
==> +-------------------------------------------+
==> | 0 | 1 | 1 | 1 |
==> | 1 | 2 | 1 | 2 |
==> | 2 | 3 | 2 | 3 |
==> | 3 | 4 | 3 | 4 |
==> | 4 | 5 | 4 | 5 |
==> | 5 | 6 | 5 | 6 |
==> | 6 | 7 | 6 | 7 |
==> | 7 | 8 | 7 | 7 |
==> | 8 | 9 | 7 | 8 |
==> +-------------------------------------------+
==> 9 rows
----
Next we can filter out rows which have the same values since that means they have consecutive duplicates:
[source,cypher]
----
WITH [1,1,2,3,4,5,6,7,7,8] AS values
UNWIND RANGE(0, LENGTH(values) - 2) AS idx
WITH values[idx] AS a, values[idx+1] AS b
WHERE a <> b
RETURN a,b
==> +-------+
==> | a | b |
==> +-------+
==> | 1 | 2 |
==> | 2 | 3 |
==> | 3 | 4 |
==> | 4 | 5 |
==> | 5 | 6 |
==> | 6 | 7 |
==> | 7 | 8 |
==> +-------+
==> 7 rows
----
Now we need to join the collection back together again. Most of the values we want are in field 'b' but we also need to grab the first value from field 'a':
[source,cypher]
----
WITH [1,1,2,3,4,5,6,7,7,8] AS values
UNWIND RANGE(0, LENGTH(values) - 2) AS idx
WITH values[idx] AS a, values[idx+1] AS b
WHERE a <> b
RETURN COLLECT(a)[0] + COLLECT(b) AS noDuplicates
==> +-------------------+
==> | noDuplicates |
==> +-------------------+
==> | [1,2,3,4,5,6,7,8] |
==> +-------------------+
==> 1 row
----
What about if we have more than 2 duplicates in a row?
[source,cypher]
----
WITH [1,1,1,2,3,4,5,5,6,7,7,8] AS values
UNWIND RANGE(0, LENGTH(values) - 2) AS idx
WITH values[idx] AS a, values[idx+1] AS b
WHERE a <> b
RETURN COLLECT(a)[0] + COLLECT(b) AS noDuplicates
==> +-------------------+
==> | noDuplicates |
==> +-------------------+
==> | [1,2,3,4,5,6,7,8] |
==> +-------------------+
==> 1 row
----
Still happy, good times! Of course if we have a non consecutive duplicate that wouldn't be removed:
[source,cypher]
----
WITH [1,1,1,2,3,4,5,5,6,7,7,8,1] AS values
UNWIND RANGE(0, LENGTH(values) - 2) AS idx
WITH values[idx] AS a, values[idx+1] AS b
WHERE a <> b
RETURN COLLECT(a)[0] + COLLECT(b) AS noDuplicates
==> +---------------------+
==> | noDuplicates |
==> +---------------------+
==> | [1,2,3,4,5,6,7,8,1] |
==> +---------------------+
==> 1 row
---- | null | null | [
0.01742273010313511,
-0.02119944430887699,
-0.05066445469856262,
0.0453588105738163,
0.0960647389292717,
-0.017728500068187714,
0.015831226482987404,
0.013836164958775043,
-0.0027060522697865963,
-0.02346198819577694,
0.0007513997843489051,
0.01748526841402054,
-0.08208406716585159,
0.015725212171673775,
-0.010619658045470715,
0.07020635157823563,
0.05627446994185448,
0.010582865215837955,
0.006166237872093916,
-0.02403680607676506,
0.005840695463120937,
0.03473946079611778,
0.0059435502626001835,
0.025559453293681145,
0.04184228554368019,
0.01768040843307972,
-0.0007769844960421324,
-0.0009537361329421401,
-0.03374459221959114,
-0.0022214322816580534,
0.0555599220097065,
-0.007789106573909521,
0.01789173111319542,
-0.026624439284205437,
0.01973416469991207,
-0.025837576016783714,
-0.04040323197841644,
-0.007054509595036507,
-0.006834087893366814,
-0.027154389768838882,
-0.04409071430563927,
0.026393255218863487,
-0.009067350067198277,
0.006730050779879093,
-0.026877282187342644,
0.009349645115435123,
-0.06726737320423126,
0.00876332726329565,
-0.009483344852924347,
0.01012368593364954,
-0.06751488894224167,
0.019082948565483093,
-0.01638457365334034,
0.017260780557990074,
-0.013277032412588596,
0.062404509633779526,
-0.02292577549815178,
-0.06453534960746765,
0.057451050728559494,
-0.0008300166227854788,
-0.013425848446786404,
-0.00829243939369917,
0.004619639366865158,
0.038000620901584625,
-0.00691510085016489,
-0.030480261892080307,
0.0030389567837119102,
0.06149226427078247,
-0.04702136293053627,
-0.022472646087408066,
-0.015684004873037338,
0.021490223705768585,
0.00690250052139163,
-0.002471351996064186,
-0.017805470153689384,
-0.019211335107684135,
-0.013958264142274857,
0.026768626645207405,
0.019860949367284775,
0.07022850960493088,
-0.015449262224137783,
0.03891823813319206,
0.008196069858968258,
0.025881381705403328,
0.013052132911980152,
-0.03029753267765045,
-0.06822425127029419,
-0.024304283782839775,
-0.040932584553956985,
0.03927423804998398,
0.01569274812936783,
-0.05385412275791168,
0.0007544635445810854,
0.0012284477706998587,
-0.030668646097183228,
-0.016226008534431458,
0.0021346185822039843,
-0.013094871304929256,
0.012022726237773895,
0.018177658319473267,
-0.013040523044764996,
-0.05489666387438774,
0.023398810997605324,
-0.021340863779187202,
-0.09258183091878891,
-0.01266343705356121,
-0.02256198041141033,
0.0010502644581720233,
0.017013803124427795,
0.0003690992889460176,
-0.07535375654697418,
-0.006806118879467249,
0.0038924466352909803,
0.0378531888127327,
-0.09047483652830124,
0.06176452338695526,
0.02711067907512188,
0.0022008500527590513,
-0.016388097777962685,
0.01978554204106331,
0.03900730982422829,
0.010235270485281944,
0.03130432590842247,
0.09409508854150772,
0.014454674907028675,
0.02292557992041111,
0.02256922237575054,
0.06825575232505798,
-0.02095109224319458,
-0.06351175159215927,
-0.03516856208443642,
0.06554078310728073,
-0.024113263934850693,
-0.012285388074815273,
-0.009860070422291756,
-0.0508854053914547,
-0.034493185579776764,
0.03799617663025856,
0.05832799896597862,
0.021675191819667816,
0.022444186732172966,
-0.030768269672989845,
0.032906875014305115,
-0.03043050318956375,
0.021459726616740227,
0.023128189146518707,
-0.049171943217515945,
0.015667840838432312,
-0.010119430720806122,
0.0414804108440876,
0.01571410708129406,
0.02237129397690296,
0.0471496656537056,
-0.04870625212788582,
-0.008385013788938522,
0.09496542066335678,
0.008541866205632687,
0.036956727504730225,
-0.030310580506920815,
0.006327310111373663,
0.029302414506673813,
0.006091749761253595,
0.000737211259547621,
0.0714835599064827,
-0.011118348687887192,
0.00961463525891304,
-0.0063543240539729595,
0.06575052440166473,
-0.027539929375052452,
0.0016125349793583155,
-0.052599478513002396,
-0.02773708663880825,
0.05180767551064491,
-0.037210043519735336,
-0.00662996806204319,
0.027918165549635887,
0.061097800731658936,
0.015201065689325333,
0.041731614619493484,
-0.012588636949658394,
-0.07015325129032135,
0.027414150536060333,
0.004150770138949156,
0.02183065004646778,
0.01141322497278452,
-0.010883690789341927,
0.06786599010229111,
0.04243774339556694,
0.02420058473944664,
0.026132874190807343,
-0.07149260491132736,
-0.055882398039102554,
0.0031236098147928715,
-0.02029925398528576,
0.06918904185295105,
-0.016709934920072556,
0.03138997033238411,
0.03281459957361221,
-0.010033673606812954,
0.03570069745182991,
0.0480152890086174,
-0.001037863432429731,
0.028244486078619957,
-0.05693325400352478,
-0.053797464817762375,
0.05008576437830925,
0.012761754915118217,
-0.047148700803518295,
-0.043651122599840164,
0.026059206575155258,
-0.010631178505718708,
0.02522910013794899,
0.03506879135966301,
-0.02154807560145855,
0.05311695858836174,
0.02748601883649826,
0.03285318240523338,
-0.010646296665072441,
0.04123053699731827,
-0.0679522305727005,
0.04624989256262779,
0.0059291222132742405,
-0.04525294154882431,
0.006520453374832869,
-0.011578193865716457,
0.12151791155338287,
0.05204160138964653,
-0.02211163379251957,
-0.02567245252430439,
0.020888181403279305,
0.01475336030125618,
-0.005839336197823286,
0.007557766977697611,
-0.03678265959024429,
0.005051910877227783,
-0.0062444633804261684,
-0.03310370445251465,
-0.029465744271874428,
0.03068755567073822,
-0.020299797877669334,
-0.028733568266034126,
0.051047343760728836,
-0.030944209545850754,
0.07864485681056976,
0.04489558935165405,
-0.006851619109511375,
-0.030650388449430466,
-0.025075582787394524,
-0.05257033929228783,
0.00924986694008112,
0.0046305530704557896,
-0.020800672471523285,
0.05505172163248062,
-0.04719062149524689,
-0.0014020460657775402,
-0.012072066776454449,
-0.008047346957027912,
0.010467072948813438,
0.04308775067329407,
0.06431718915700912,
-0.033645614981651306,
0.060927338898181915,
0.006762055214494467,
-0.027151551097631454,
-0.02715112641453743,
-0.05226447060704231,
-0.04205190762877464,
-0.006841089576482773,
0.03144562616944313,
0.007766916882246733,
0.019119009375572205,
0.0063180779106915,
0.030641717836260796,
0.01385160256177187,
-0.006376527715474367,
0.0019142592791467905,
0.032772403210401535,
-0.0003940332098864019,
-0.015167361125349998,
-0.04610258340835571,
-0.032144609838724136,
0.0475320965051651,
-0.050588276237249374,
-0.02823648415505886,
-0.019625864923000336,
-0.0666312500834465,
0.08127391338348389,
-0.06485062837600708,
-0.03416111320257187,
0.026353633031249046,
0.018754320219159126,
0.04770565405488014,
-0.03214623034000397,
0.0030082378070801497,
0.06486833095550537,
-0.0038845748640596867,
-0.003513290546834469,
0.03308533877134323,
0.021445227786898613,
0.01570736989378929,
-0.01628701575100422,
0.020358938723802567,
0.06767536699771881,
-0.016587980091571808,
-0.021392157301306725,
-0.05234793573617935,
0.008020508103072643,
-0.029963001608848572,
-0.26773345470428467,
0.034479837864637375,
-0.05548764020204544,
-0.022607941180467606,
0.016975322738289833,
-0.02670734003186226,
0.01453916821628809,
-0.048114147037267685,
-0.00580788217484951,
0.011328920722007751,
0.01185488048940897,
-0.01919407956302166,
-0.022524084895849228,
0.053360577672719955,
0.017277676612138748,
0.028096569702029228,
-0.03223548084497452,
-0.04462754726409912,
-0.002222697949036956,
0.04670709744095802,
-0.0063124606385827065,
-0.0579364076256752,
-0.031135758385062218,
0.03522264584898949,
0.007912165485322475,
0.05636436864733696,
-0.08066346496343613,
0.0005918885581195354,
-0.07649527490139008,
-0.02719109132885933,
0.008574550040066242,
-0.02473953738808632,
0.015245970338582993,
-0.031369246542453766,
-0.027728185057640076,
-0.054111115634441376,
0.0451204776763916,
0.0075554815120995045,
-0.01666853204369545,
0.030230039730668068,
-0.0205311868339777,
-0.03446900099515915,
0.014345498755574226,
-0.003959152847528458,
0.04910498857498169,
-0.00880349986255169,
-0.02429232932627201,
-0.0261929240077734,
-0.008958176709711552,
0.06231880187988281,
-0.018969643861055374,
-0.026325199753046036,
0.0014929419849067926,
0.015494822524487972,
0.0027331546880304813,
-0.009470650926232338,
-0.0015085086924955249,
-0.008614761754870415,
-0.05618756264448166,
-0.002206220058724284,
-0.012169255875051022,
-0.06063763052225113,
0.02060595341026783,
-0.028756557032465935,
-0.00419688830152154,
-0.06193407252430916,
-0.05882968753576279,
-0.014409437775611877,
0.049783479422330856,
0.03048267960548401,
-0.007507204078137875,
0.027971474453806877,
-0.0006022561574354768,
-0.10258135199546814,
-0.03320927545428276,
0.0016884496435523033,
0.003998373635113239,
0.0077895126305520535,
-0.019646937027573586,
0.04323103278875351,
-0.06912028044462204,
-0.048246994614601135,
0.002918558195233345,
0.0480046384036541,
0.039464838802814484,
-0.020253075286746025,
-0.014012385159730911,
-0.022870313376188278,
-0.044041167944669724,
-0.009195939637720585,
0.06335553526878357,
-0.0010667411843314767,
0.008008638396859169,
0.007548782974481583,
0.022320648655295372,
0.057858601212501526,
0.011400582268834114,
-0.0032843169756233692,
0.025358494371175766,
0.03741436079144478,
0.05917354300618172,
-0.04500918462872505,
0.03505348786711693,
-0.033278681337833405,
-0.037357915192842484,
0.010940971784293652,
-0.03718046844005585,
0.007991873659193516,
0.026782548055052757,
0.005057884845882654,
-0.024502048268914223,
-0.005007829051464796,
0.02218128927052021,
-0.03333844617009163,
-0.021595001220703125,
-0.047778379172086716,
0.04456952586770058,
0.04988977313041687,
0.03532300144433975,
-0.025102531537413597,
-0.07256650924682617,
0.033499062061309814,
0.03349543362855911,
0.004639484453946352,
-0.06416608393192291,
-0.054877135902643204,
-0.017014075070619583,
-0.0009319023229181767,
0.007152457721531391,
0.010947424918413162,
-0.027155762538313866,
0.023240912705659866,
0.012309030629694462,
-0.020041368901729584,
0.0484088771045208,
-0.022052614018321037,
-0.03440423682332039,
-0.019952883943915367,
-0.04221464321017265,
0.027041388675570488,
0.001589465537108481,
-0.005213937256485224,
0.020923515781760216,
0.060918841511011124,
0.02267325296998024,
-0.007129283621907234,
0.02429848723113537,
-0.027902865782380104,
0.004346158821135759,
0.020272990688681602,
-0.02331593818962574,
-0.031552381813526154,
0.03954401984810829,
-0.059840843081474304,
0.00979696400463581,
0.028245028108358383,
0.04712821543216705,
-0.034559644758701324,
-0.047150034457445145,
-0.05437234416604042,
0.031179390847682953,
-0.04129023477435112,
0.03071126900613308,
-0.0478232242166996,
0.004811705555766821,
0.05123350769281387,
-0.04008208215236664,
0.021490689367055893,
-0.0309294406324625,
0.003679746761918068,
0.01869923062622547,
-0.010887792333960533,
-0.018531689420342445,
0.013950520195066929,
0.001423301873728633,
-0.00109249004162848,
0.01868320256471634,
0.031150614842772484,
0.010214999318122864,
0.012377331033349037,
-0.01746482029557228,
-0.006492428947240114,
-0.004698131699115038,
0.01330750435590744,
0.0456913523375988,
0.024940945208072662,
0.01892673410475254,
0.0021576136350631714,
-0.03093801811337471,
-0.025390660390257835,
-0.0033129467628896236,
-0.008421479724347591,
-0.045314885675907135,
-0.009043841622769833,
-0.03771275281906128,
-0.06228311359882355,
0.014862315729260445,
0.01145236287266016,
-0.003905213437974453,
0.024411553516983986,
0.01568148098886013,
-0.027116285637021065,
-0.021213922649621964,
-0.003967589233070612,
0.05522119998931885,
-0.05833008885383606,
-0.006113330367952585,
-0.012802144512534142,
-0.00821686815470457,
0.00007632279448444024,
0.023608528077602386,
-0.07152926921844482,
-0.01813686452805996,
-0.016083115711808205,
0.02638031356036663,
0.004052215255796909,
-0.03818690404295921,
0.005411261226981878,
0.025673534721136093,
-0.018828462809324265,
0.02445993758738041,
-0.02165430784225464,
0.0359577052295208,
0.010911754332482815,
-0.004213144537061453,
0.04165662080049515,
-0.03969221189618111,
-0.013308352790772915,
0.024563618004322052,
-0.02699105814099312,
0.029031841084361076,
-0.033087968826293945,
0.04732823371887207,
0.032294079661369324,
0.008607360534369946,
0.0024831239134073257,
-0.05611643195152283,
0.021117134019732475,
-0.02824523113667965,
0.04080754518508911,
-0.011711124330759048,
-0.03763074427843094,
-0.05137775465846062,
-0.014787196181714535,
-0.022526593878865242,
0.008256317116320133,
0.010004820302128792,
-0.04757152497768402,
0.0019494883017614484,
0.030628439038991928,
-0.01772565022110939,
0.04437774419784546,
-0.008755026385188103,
-0.04725544899702072,
0.06361586600542068,
-0.024386418983340263,
0.005682550370693207,
-0.029790213331580162,
-0.057841572910547256,
0.009435540065169334,
-0.01239681150764227,
0.03859446197748184,
-0.030309462919831276,
0.030956434085965157,
0.05225520208477974,
0.028532084077596664,
0.027947833761572838,
-0.0006804512813687325,
0.026576947420835495,
-0.00752719771116972,
0.016545725986361504,
-0.07550659030675888,
0.036302849650382996,
0.04797912389039993,
-0.029650572687387466,
-0.0006671841256320477,
-0.02033756487071514,
-0.03443828597664833,
-0.016048338264226913,
-0.04921216145157814,
-0.014915126375854015,
-0.004051700700074434,
-0.028025321662425995,
0.03267264366149902,
0.04174020141363144,
-0.040205832570791245,
0.00791318342089653,
0.03477994352579117,
-0.009882605634629726,
-0.002860083244740963,
-0.04851505160331726,
0.07843086123466492,
-0.01553367916494608,
0.01747030019760132,
0.02468286268413067,
-0.01807219162583351,
0.05904008448123932,
0.04019030183553696,
0.032562006264925,
0.07530729472637177,
-0.03361929580569267,
0.03174232318997383,
0.03900130093097687,
-0.01623718999326229,
-0.010127740912139416,
0.03864896669983864,
-0.00534930219873786,
-0.05215535685420036,
0.013787651434540749,
0.0005647874786518514,
-0.02756771445274353,
-0.039074867963790894,
0.09644444286823273,
0.029636604711413383,
-0.0570233091711998,
-0.05698537081480026,
0.029675709083676338,
-0.05342493951320648,
-0.02592642419040203,
-0.04472148418426514,
0.0033421083353459835,
-0.03283736854791641,
0.06794494390487671,
-0.019980695098638535,
-0.0014702941989526153,
0.05469757691025734,
-0.017612747848033905,
0.0021770859602838755,
-0.0022021958138793707,
0.07917141169309616,
0.0881619080901146,
0.051522765308618546,
-0.01638302579522133,
0.05930207669734955,
-0.01637563668191433,
-0.010771158151328564,
-0.00700058788061142,
-0.03968049958348274,
-0.00790710560977459,
-0.01930193416774273,
0.03482777997851372,
0.08327536284923553,
-0.04454849287867546,
0.05722429230809212,
-0.037159502506256104,
0.009097245521843433,
0.009333181194961071,
-0.009334209375083447,
0.03519504517316818,
0.06922433525323868,
0.012951592914760113,
0.050329215824604034,
-0.0178969893604517,
-0.036358099430799484,
0.054611023515462875,
-0.00013394320558290929,
-0.014801202341914177,
0.02315395139157772,
-0.03703813999891281,
0.017250698059797287,
0.0016082683578133583,
0.019019806757569313,
0.05461090803146362,
-0.016443686559796333,
-0.00759723037481308,
-0.012195872142910957,
0.007887165993452072,
0.016360338777303696,
0.013539059087634087,
-0.0037480348255485296,
-0.030735043808817863,
-0.008380834013223648,
-0.045351773500442505,
-0.03366657346487045,
-0.02670580893754959,
-0.030178235843777657,
-0.0006482285680249333,
0.009916546754539013,
0.013623088598251343,
0.02210954576730728,
0.017867205664515495,
-0.006786080077290535,
-0.040940411388874054,
-0.06517230719327927,
-0.05098975822329521,
-0.04873233661055565,
0.009936853311955929,
-0.012143983505666256,
-0.006050326861441135,
-0.01966244727373123,
0.0013373561669141054,
-0.012532358057796955,
-0.025811178609728813,
0.029647748917341232,
-0.012129849754273891,
-0.017258765175938606,
0.018361391499638557,
0.060409996658563614,
0.03229132667183876,
0.014823414385318756,
0.047548964619636536,
-0.016948819160461426,
0.014748026616871357,
-0.03184477984905243,
0.005534108728170395,
0.06604202836751938,
0.021114477887749672,
-0.01168006844818592,
-0.08682762086391449,
0.009940632618963718,
0.00569250388070941,
-0.01140107773244381,
-0.08039244264364243,
-0.014297629706561565,
0.032679107040166855,
-0.024296823889017105,
0.016853593289852142,
-0.015670843422412872,
-0.046925775706768036,
-0.02459743432700634,
0.03428058326244354,
0.00837496854364872,
-0.0055472105741500854,
0.06685888767242432,
-0.030714131891727448,
0.0526898093521595,
-0.0013684902805835009,
-0.03335003927350044,
-0.042416512966156006,
0.006534963380545378,
0.0028353820089250803,
0.00338093563914299,
-0.039440784603357315,
-0.044507626444101334,
-0.04630821570754051,
-0.08048297464847565,
-0.008769559673964977,
-0.017027774825692177,
-0.015203872695565224,
-0.03697088733315468,
-0.0004977567004971206,
0.022793054580688477,
-0.041720665991306305,
0.02809988707304001,
-0.035839568823575974,
0.03634873777627945,
-0.022683389484882355,
-0.021335622295737267,
-0.029285456985235214,
0.017552511766552925,
-0.020195109769701958,
0.03909710422158241,
0.016514208167791367,
-0.028703635558485985,
0.0022389148361980915,
-0.027795549482107162,
0.025568215176463127,
0.00803590752184391,
0.01027155015617609,
-0.0074928333051502705
] | [
-0.09600405395030975,
-0.02143844962120056,
-0.03224774822592735,
0.015315464697778225,
0.04555322229862213,
-0.03245067968964577,
-0.0126812057569623,
-0.01212108600884676,
0.05419168248772621,
-0.000046771157940384,
0.009882481768727303,
-0.0022703781723976135,
0.026635782793164253,
0.01171573530882597,
0.05327955633401871,
-0.007370747160166502,
-0.013862223364412785,
-0.03171331062912941,
-0.07657595723867416,
0.03348223492503166,
0.0037147141993045807,
-0.06431083381175995,
-0.05705702677369118,
-0.032992973923683167,
0.030731668695807457,
0.06122807413339615,
0.008540256880223751,
-0.052312009036540985,
-0.002573644043877721,
-0.21462392807006836,
0.003691163845360279,
0.016133228316903114,
-0.018979700282216072,
-0.02667299099266529,
0.02007061056792736,
0.0037260144017636776,
0.009748020209372044,
0.015339958481490612,
-0.008919022977352142,
0.05685162544250488,
0.05174655467271805,
0.009824788197875023,
-0.060967739671468735,
-0.04101742058992386,
0.027461601421236992,
-0.0016750997165217996,
-0.005894915200769901,
-0.017798516899347305,
0.02455676719546318,
0.0371769443154335,
-0.06001180782914162,
-0.033821411430835724,
-0.001193631673231721,
0.01530411560088396,
0.0006101132021285594,
0.0496194064617157,
0.04724382236599922,
0.08349205553531647,
0.0183730348944664,
0.04677785933017731,
0.018711693584918976,
-0.010453115217387676,
-0.0748252421617508,
0.06766634434461594,
0.017054958269000053,
0.03908636420965195,
-0.01613706164062023,
-0.029489420354366302,
-0.05014992505311966,
0.10726909339427948,
0.037064388394355774,
-0.004150256048887968,
-0.05447274446487427,
0.08447886258363724,
0.0027214917354285717,
-0.006967779248952866,
-0.01719994843006134,
0.013820634223520756,
-0.0021960490848869085,
-0.011675111949443817,
-0.07714816927909851,
-0.04765411838889122,
0.005694552790373564,
-0.014233825728297234,
-0.0008035916835069656,
0.021829156205058098,
-0.014517667703330517,
0.031888142228126526,
-0.010001958347856998,
0.012343625538051128,
0.057207100093364716,
0.04610009863972664,
0.03700974956154823,
0.04898893088102341,
-0.09216383844614029,
-0.027319936081767082,
0.00812267791479826,
0.04579117149114609,
-0.012446869164705276,
0.381278932094574,
-0.010470282286405563,
0.004396066535264254,
0.06116541847586632,
0.035757314413785934,
0.004450206644833088,
-0.007032869849354029,
-0.0034160062205046415,
-0.05448900908231735,
0.015618832781910896,
-0.05403529107570648,
-0.0004019883053842932,
-0.0520058237016201,
0.059596676379442215,
-0.08562203496694565,
-0.008646749891340733,
0.062224678695201874,
0.06046880781650543,
0.02463432401418686,
-0.002135421382263303,
0.009864987805485725,
-0.027947593480348587,
0.0219856109470129,
0.007272838614881039,
0.013995462097227573,
0.011225725524127483,
0.008941014297306538,
0.044329769909381866,
0.05438029021024704,
0.007078608497977257,
0.027598530054092407,
0.04499628767371178,
-0.014386449009180069,
-0.07481774687767029,
0.0020278659649193287,
-0.029177866876125336,
0.008632509969174862,
0.02215271070599556,
-0.049369070678949356,
0.029118163511157036,
0.021344099193811417,
-0.019361019134521484,
-0.018563488498330116,
0.0623905286192894,
-0.008070151321589947,
-0.005617612041532993,
0.14522479474544525,
0.01116305310279131,
-0.03746798634529114,
-0.022422945126891136,
-0.06789693981409073,
-0.04727092385292053,
0.003938381560146809,
0.013964880257844925,
-0.08153381198644638,
-0.0052422164008021355,
0.015408802777528763,
0.06957419216632843,
0.00003199776620022021,
-0.06282667070627213,
-0.017626414075493813,
-0.01858735829591751,
-0.04343188554048538,
-0.06181080639362335,
0.10609608143568039,
0.03695421665906906,
-0.0999002605676651,
-0.002894020639359951,
0.020385168492794037,
-0.003763743443414569,
-0.05692307651042938,
0.008898429572582245,
0.013541935943067074,
-0.060004837810993195,
0.003005240112543106,
0.057141538709402084,
-0.04981989786028862,
-0.07210119813680649,
-0.025233443826436996,
0.03630460426211357,
0.026261622086167336,
-0.047697119414806366,
0.02241850644350052,
-0.04908398911356926,
0.016798770055174828,
-0.06885820627212524,
-0.07404538989067078,
-0.0402432456612587,
0.03807930275797844,
-0.0016548907151445746,
-0.046814609318971634,
-0.03795817121863365,
-0.022855231538414955,
-0.02449559047818184,
0.10897056013345718,
-0.03490884229540825,
-0.06073722243309021,
-0.014160560443997383,
0.003213514108210802,
-0.023987071588635445,
-0.04988744854927063,
0.036573879420757294,
-0.0006603770307265222,
0.006647287402302027,
0.03469507396221161,
-0.030077259987592697,
0.03710903599858284,
0.045447129756212234,
-0.05137452110648155,
0.04266684502363205,
0.03564343973994255,
-0.006790441460907459,
0.016531817615032196,
-0.02893458865582943,
0.046097055077552795,
0.0026746285147964954,
-0.024627171456813812,
-0.009109187871217728,
-0.009300390258431435,
0.03425979986786842,
0.03783947974443436,
-0.017290599644184113,
-0.03453819826245308,
0.005515247117727995,
-0.3477732539176941,
-0.01877003349363804,
-0.023806657642126083,
-0.007640869356691837,
-0.0005396989290602505,
-0.028717700392007828,
0.003861755132675171,
-0.037627484649419785,
-0.01899060420691967,
0.025420980527997017,
0.0544767864048481,
-0.01687568612396717,
-0.00902551133185625,
-0.056921686977148056,
-0.01874285750091076,
0.017730627208948135,
-0.028601286932826042,
0.004643285647034645,
-0.025068262591958046,
0.022810008376836777,
-0.005386219825595617,
-0.019633134827017784,
-0.012744280509650707,
-0.05256318673491478,
0.010558054782450199,
0.023022370412945747,
0.13828395307064056,
0.02180722914636135,
0.020426513627171516,
-0.042840976268053055,
0.055735163390636444,
0.013264921493828297,
-0.01588754914700985,
0.004630236886441708,
-0.013822411186993122,
-0.0061055817641317844,
-0.022714614868164062,
-0.025735048577189445,
-0.006762928795069456,
0.008385095745325089,
-0.052322376519441605,
-0.0025209912564605474,
-0.022746311500668526,
-0.04322008416056633,
-0.040071915835142136,
0.024150680750608444,
-0.044676728546619415,
-0.01892327331006527,
0.015505456365644932,
0.11249062418937683,
0.008315915241837502,
0.0010974965989589691,
0.01094596367329359,
0.03329526260495186,
0.03309764340519905,
-0.001962828915566206,
-0.08564190566539764,
-0.022455701604485512,
0.011440823785960674,
-0.017941046506166458,
-0.008314738050103188,
0.02798410691320896,
0.05105926841497421,
-0.07603789120912552,
0.02149931527674198,
0.021767664700746536,
0.013798085041344166,
0.017783893272280693,
0.046858739107847214,
-0.030330926179885864,
-0.038004904985427856,
0.05668918415904045,
-0.00415723817422986,
-0.0073404619470238686,
0.005903668701648712,
0.0599396638572216,
-0.020348431542515755,
0.03149218112230301,
0.002486197045072913,
0.01424147468060255,
0.0630272701382637,
-0.03234623372554779,
0.01942034810781479,
-0.0047977096401154995,
0.0015479037538170815,
0.05035785958170891,
0.00945709552615881,
0.000026996758606401272,
0.07250750809907913,
-0.0056257410906255245,
-0.024335402995347977,
0.02528664842247963,
-0.0407499298453331,
-0.028255842626094818,
0.07228140532970428,
-0.016745293512940407,
-0.27608877420425415,
0.033832747489213943,
0.001947629963979125,
0.05790406093001366,
0.013944494538009167,
0.02721574530005455,
0.015723852440714836,
-0.02938113734126091,
-0.0007921147043816745,
-0.0028995228931307793,
0.007872850634157658,
0.07784901559352875,
0.004945074673742056,
-0.06268526613712311,
0.023369206115603447,
0.004591287113726139,
0.05563480779528618,
-0.01377628929913044,
0.026421386748552322,
0.01729906164109707,
0.04133369401097298,
-0.013584611937403679,
0.19737116992473602,
0.046310439705848694,
0.005666698329150677,
0.023359591141343117,
-0.006797861307859421,
0.015301407314836979,
0.025111854076385498,
0.023458430543541908,
-0.0179230235517025,
-0.005488197784870863,
0.03477422893047333,
0.04473111778497696,
0.0017363550141453743,
-0.03603379800915718,
-0.014931348152458668,
0.045720651745796204,
0.02036285772919655,
-0.05193323642015457,
-0.042664509266614914,
-0.00736692501232028,
-0.07431299984455109,
0.024966666474938393,
0.09338367730379105,
-0.016933413222432137,
-0.012468807399272919,
-0.006171355023980141,
-0.03891301527619362,
0.005431053694337606,
-0.014710037969052792,
-0.016495157033205032,
-0.009561041370034218,
-0.014723150059580803,
-0.03723904862999916,
0.07147789001464844,
-0.008982225321233273,
-0.0028514277655631304,
0.020851098001003265,
0.02133101038634777,
-0.02741129696369171,
-0.03632136061787605,
0.09664086997509003,
-0.03171035274863243,
-0.015707584097981453
] | [
-0.03069847635924816,
0.0713571161031723,
-0.006017180159687996,
0.004232583101838827,
-0.014560731127858162,
-0.03202974423766136,
0.026643773540854454,
-0.00576871819794178,
-0.0030441090930253267,
0.010908328928053379,
-0.04160956293344498,
0.02918453887104988,
0.07871046662330627,
-0.04539603739976883,
-0.04541752114892006,
-0.011292519979178905,
-0.06199714541435242,
0.01176727656275034,
0.04194529727101326,
-0.04347382113337517,
-0.055718667805194855,
0.018323471769690514,
0.035377874970436096,
-0.02615532837808132,
0.016423726454377174,
0.04664938524365425,
0.031254298985004425,
0.027828274294734,
0.008297155611217022,
-0.0851668044924736,
-0.0710175409913063,
-0.03225700929760933,
-0.000380195357138291,
-0.004536403343081474,
-0.03611905500292778,
0.006731374189257622,
0.02331456169486046,
0.03304716572165489,
-0.012331390753388405,
0.029007703065872192,
0.0002348630951019004,
-0.015665685757994652,
-0.027595078572630882,
0.010681012645363808,
-0.0304968673735857,
-0.029873661696910858,
-0.03971976041793823,
-0.008337598294019699,
-0.0035146912559866905,
0.003067151876166463,
-0.05668089538812637,
-0.00967369880527258,
0.0022128354758024216,
0.014342916198074818,
0.10857008397579193,
0.008076382800936699,
-0.08298211544752121,
-0.03229261562228203,
0.004133074544370174,
-0.029446089640259743,
0.002800529822707176,
0.008931366726756096,
-0.08028201758861542,
-0.004481512121856213,
-0.01402116660028696,
-0.048356857150793076,
-0.014779617078602314,
0.049499884247779846,
0.01347989123314619,
-0.0322861447930336,
-0.025159435346722603,
0.008178310468792915,
-0.03844209760427475,
0.015414743684232235,
0.024143075570464134,
0.0823778286576271,
0.048292916268110275,
-0.049821533262729645,
0.0062917196191847324,
-0.047566890716552734,
-0.02343105711042881,
0.014755702577531338,
-0.034487783908843994,
0.003971762023866177,
-0.010596594773232937,
-0.06028618663549423,
-0.02112700417637825,
0.05128771439194679,
0.006742624565958977,
-0.018215101212263107,
-0.004984383936971426,
-0.0015276942867785692,
-0.002262532478198409,
-0.011261663399636745,
-0.03642977401614189,
0.020256217569112778,
0.014255806803703308,
0.030535968020558357,
0.029201509431004524,
0.7551402449607849,
0.04157295823097229,
0.010714641772210598,
-0.01059915404766798,
0.0357302762567997,
0.0046153259463608265,
-0.01776898466050625,
0.015828629955649376,
0.015467703342437744,
-0.007463926915079355,
-0.057974666357040405,
-0.02942236326634884,
-0.011862725019454956,
0.016842536628246307,
-0.0051625920459628105,
0.0012036358239129186,
0.0644344836473465,
0.03332086652517319,
0.01689256727695465,
0.010964622721076012,
-0.005917029920965433,
0.032082319259643555,
-0.03208974748849869,
0.0017500381218269467,
0.0712549090385437,
0.019996656104922295,
-0.16699501872062683,
-0.022060362622141838,
-6.904746552870604e-33,
0.010037890635430813,
-0.018856555223464966,
0.08157342672348022,
-0.02642395906150341,
0.008326783776283264,
0.01836732216179371,
-0.008435732685029507,
-0.01910410262644291,
-0.015235775150358677,
-0.017561528831720352,
-0.021759113296866417,
0.026919344440102577,
0.015088465996086597,
-0.013824858702719212,
-0.017704622820019722,
-0.020939871668815613,
0.04465363547205925,
0.03651086241006851,
-0.025143355131149292,
-0.03491627797484398,
0.014211001805961132,
-0.0059929885901510715,
0.01785138249397278,
0.008722064085304737,
0.05289432406425476,
0.016921883448958397,
-0.020816851407289505,
-0.03694310411810875,
-0.0035716036800295115,
-0.05606389790773392,
-0.1034308448433876,
0.04829065129160881,
-0.022222448140382767,
0.050491392612457275,
-0.04613218829035759,
-0.04036002606153488,
-0.001738971215672791,
-0.007637752220034599,
-0.002032680669799447,
-0.06870251893997192,
-0.03326565772294998,
0.031393785029649734,
0.036254383623600006,
0.006800416857004166,
-0.0013893250143155456,
-0.02009451575577259,
-0.024635720998048782,
-0.01253692526370287,
0.019764596596360207,
0.043256666511297226,
0.05802156403660774,
0.0336172841489315,
-0.008052379824221134,
0.007723991759121418,
-0.057636573910713196,
0.014867191202938557,
0.022091079503297806,
0.05737302079796791,
-0.011279617436230183,
0.058628812432289124,
-0.009840884245932102,
0.031194845214486122,
-0.02398044615983963,
0.06962667405605316,
0.0033668784890323877,
0.03638322278857231,
-0.03023514896631241,
0.004520014394074678,
-0.015286505222320557,
0.03760707750916481,
-0.045396529138088226,
0.0010425460059195757,
-0.012519084848463535,
-0.06529346108436584,
0.013048586435616016,
-0.061219073832035065,
-0.03522169589996338,
-0.029482154175639153,
-0.008711453527212143,
0.012635835446417332,
-0.0285203754901886,
-0.022004418075084686,
-0.02757401578128338,
-0.029688969254493713,
-0.029916195198893547,
0.018641851842403412,
-0.007890486158430576,
0.054300885647535324,
-0.005471635144203901,
-0.021121064200997353,
0.037133410573005676,
0.0035119433887302876,
-0.0003454243123997003,
-0.01607554592192173,
-0.0244500283151865,
6.528388526567832e-33,
0.004664284642785788,
0.0030825119465589523,
0.0246921144425869,
-0.022024167701601982,
0.041995178908109665,
0.014395416714251041,
0.030761009082198143,
0.010633045807480812,
-0.01854715682566166,
-0.006281083915382624,
0.007103521842509508,
0.011369890533387661,
0.018835175782442093,
0.031184682622551918,
0.030759500339627266,
0.0029548846650868654,
0.02593892812728882,
0.015787560492753983,
0.007877535186707973,
0.02211926318705082,
0.013460948131978512,
-0.024743719026446342,
0.010370984673500061,
0.014243834652006626,
-0.007476629223674536,
0.023672474548220634,
-0.0007438930333591998,
-0.008859272114932537,
0.0007062843069434166,
-0.005132329184561968,
0.027664482593536377,
-0.005584773141890764,
0.0028022052720189095,
-0.0369609035551548,
0.05819714814424515,
0.029351945966482162,
0.010610217228531837,
0.005171949043869972,
-0.037857845425605774,
-0.0018857493996620178,
0.012508704327046871,
-0.0018635999877005816,
0.013319442979991436,
0.07663097977638245,
0.06032543256878853,
0.0009024972678162158,
0.03561263903975487,
0.026316316798329353,
-0.009922469034790993,
0.03856512904167175,
-0.0026731642428785563,
0.023612087592482567,
-0.04801776260137558,
0.03918689116835594,
0.02484283037483692,
-0.03487873077392578,
-0.017822127789258957,
0.05074310675263405,
0.01992863602936268,
-0.0400417298078537,
0.00374769838526845,
0.0003396178362891078,
-0.04942137748003006,
0.011038566008210182,
0.015954842790961266,
0.024648435413837433,
-0.029521677643060684,
0.004647314082831144,
-0.03928190469741821,
0.023316988721489906,
-0.033638957887887955,
-0.014244920574128628,
-0.01754230633378029,
-0.004284806549549103,
-0.02418598346412182,
-0.016567014157772064,
-0.028086910024285316,
-0.04764248803257942,
0.00390889635309577,
0.05633947253227234,
0.03586097061634064,
-0.043418847024440765,
0.026987697929143906,
0.02366749756038189,
-0.049705781042575836,
0.0066432342864573,
0.024575594812631607,
-0.006823848932981491,
0.0019620296079665422,
-0.019947364926338196,
0.03184063360095024,
-0.031880028545856476,
-0.03558441251516342,
0.06380140036344528,
0.0008585183531977236,
-1.1992961290729909e-8,
-0.04148246720433235,
-0.03665134683251381,
-0.027468403801321983,
0.00035722245229408145,
0.03988886624574661,
-0.0002041519619524479,
-0.03927341103553772,
-0.013273862190544605,
0.02001108042895794,
-0.012993622571229935,
0.017171215265989304,
-0.030461283400654793,
0.06070028617978096,
-0.00011786590766860172,
-0.011937310919165611,
-0.050170328468084335,
0.03053521178662777,
-0.028644070029258728,
0.03809412568807602,
0.010906376875936985,
-0.03823459520936012,
0.046085961163043976,
-0.03986797109246254,
-0.0006318702362477779,
-0.0001896567118819803,
-0.01080463919788599,
0.025693513453006744,
-0.048040952533483505,
0.045511532574892044,
-0.03999745845794678,
-0.03292837366461754,
-0.000786609249189496,
0.007867028005421162,
0.08118787407875061,
-0.020916063338518143,
-0.012473671697080135,
0.008950890973210335,
0.04078810289502144,
0.0129957664757967,
-0.0035299663431942463,
-0.03498639166355133,
-0.018381107598543167,
-0.004303657915443182,
-0.02428508549928665,
-0.03109642118215561,
0.014980921521782875,
-0.037069037556648254,
-0.00215309951454401,
0.04355372488498688,
-0.051972050219774246,
0.01938004605472088,
-0.008728574961423874,
0.09254370629787445,
-0.05290331691503525,
0.06321803480386734,
-0.005178843624889851,
-0.029589368030428886,
0.044219229370355606,
0.04318100959062576,
0.006161840632557869,
-0.01149556040763855,
-0.0377398245036602,
-0.019460417330265045,
-0.016175255179405212
] | neo4j-cypher-removing-consecutive-duplicates | https://markhneedham.com/blog/2015/07/30/neo4j-cypher-removing-consecutive-duplicates |
false | 2015-07-23 06:15:11 | Neo4j: Loading JSON documents with Cypher | [
"neo4j"
] | [
"neo4j"
] | One of the most commonly asked questions I get asked is how to load JSON documents into Neo4j and although Cypher doesn't have a 'LOAD JSON' command we can still get JSON data into the graph.
http://gist.asciidoctor.org/?dropbox-14493611%2Fblog%2Fadoc%2Fload_json.adoc[Michael shows how to do this from various languages in this blog post] and I recently wanted to load a JSON document that I generated from http://gis.chicagopolice.org/clearmap_crime_sums/crime_types.html[Chicago crime types].
This is a snippet of the JSON document:
[source,json]
----
{
"categories": [
{
"name": "Index Crime",
"sub_categories": [
{
"code": "01A",
"description": "Homicide 1st & 2nd Degree"
}
]
},
{
"name": "Non-Index Crime",
"sub_categories": [
{
"code": "01B",
"description": "Involuntary Manslaughter"
}
]
},
{
"name": "Violent Crime",
"sub_categories": [
{
"code": "01A",
"description": "Homicide 1st & 2nd Degree"
}
]
}
]
}
----
We want to create the following graph structure from this document:
image::{{<siteurl>}}/uploads/2015/07/2015-07-23_06-46-50.png[2015 07 23 06 46 50,300]
We can then connect the crimes to the appropriate sub category and write aggregation queries that drill down from the category.
To do this we're going to have to pass the JSON document to Neo4j via its HTTP API rather than through the browser. Luckily there are http://neo4j.com/developer/language-guides/[drivers available for {insert your favourite language here}] so we should still be good.
Python is my current goto language so I'm going to use http://py2neo.org/2.0/[py2neo] to load the data in.
Let's start by writing a simple query which passes our JSON document in and gets it straight back. Note that I've updated my Neo4j password to be 'foobar' - replace that with your equivalent if you're following along:
[source,python]
----
import json
from py2neo import Graph, authenticate
# replace 'foobar' with your password
authenticate("localhost:7474", "neo4j", "foobar")
graph = Graph()
with open('categories.json') as data_file:
json = json.load(data_file)
query = """
RETURN {json}
"""
# Send Cypher query.
print graph.cypher.execute(query, json = json)
----
[source,bash]
----
$ python import_categories.py
| document
---+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
1 | {u'categories': [{u'name': u'Index Crime', u'sub_categories': [{u'code': u'01A', u'description': u'Homicide 1st & 2nd Degree'}, {u'code': u'02', u'description': u'Criminal Sexual Assault'}, {u'code': u'03', u'description': u'Robbery'}, {u'code': u'04A', u'description': u'Aggravated Assault'}, {u'code': u'04B', u'description': u'Aggravated Battery'}, {u'code': u'05', u'description': u'Burglary'}, {u'code': u'06', u'description': u'Larceny'}, {u'code': u'07', u'description': u'Motor Vehicle Theft'}, {u'code': u'09', u'description': u'Arson'}]}, {u'name': u'Non-Index Crime', u'sub_categories': [{u'code': u'01B', u'description': u'Involuntary Manslaughter'}, {u'code': u'08A', u'description': u'Simple Assault'}, {u'code': u'08B', u'description': u'Simple Battery'}, {u'code': u'10', u'description': u'Forgery & Counterfeiting'}, {u'code': u'11', u'description': u'Fraud'}, {u'code': u'12', u'description': u'Embezzlement'}, {u'code': u'13', u'description': u'Stolen Property'}, {u'code': u'14', u'description': u'Vandalism'}, {u'code': u'15', u'description': u'Weapons Violation'}, {u'code': u'16', u'description': u'Prostitution'}, {u'code': u'17', u'description': u'Criminal Sexual Abuse'}, {u'code': u'18', u'description': u'Drug Abuse'}, {u'code': u'19', u'description': u'Gambling'}, {u'code': u'20', u'description': u'Offenses Against Family'}, {u'code': u'22', u'description': u'Liquor License'}, {u'code': u'24', u'description': u'Disorderly Conduct'}, {u'code': u'26', u'description': u'Misc Non-Index Offense'}]}, {u'name': u'Violent Crime', u'sub_categories': [{u'code': u'01A', u'description': u'Homicide 1st & 2nd Degree'}, {u'code': u'02', u'description': u'Criminal Sexual Assault'}, {u'code': u'03', u'description': u'Robbery'}, {u'code': u'04A', u'description': u'Aggravated Assault'}, {u'code': u'04B', u'description': u'Aggravated Battery'}]}]}
----
It's a bit ugly but we can see that everything's there! Our next step is to extract each category into its own row. We can do this by accessing the 'categories' key in our JSON document and then calling the +++<cite>+++http://neo4j.com/docs/stable/query-unwind.html[UNWIND]+++</cite>+++ function which allows us to expand a collection into a sequence of rows:
[source,python]
----
query = """
WITH {json} AS document
UNWIND document.categories AS category
RETURN category.name
"""
----
[source,bash]
----
$ python import_categories.py
| category.name
---+-----------------
1 | Index Crime
2 | Non-Index Crime
3 | Violent Crime
----
Now we can create a node for each of those categories. We'll use the +++<cite>+++MERGE+++</cite>+++ command so that we can run this script multiple times without ending up with repeat categories:
[source,python]
----
query = """
WITH {json} AS document
UNWIND document.categories AS category
MERGE (:CrimeCategory {name: category.name})
"""
----
Let's quickly check those categories were correctly imported:
[source,cypher]
----
match (category:CrimeCategory)
return category
----
image::{{<siteurl>}}/uploads/2015/07/graph-23.png[Graph 23,251]
Looking good so far - now for the sub categories. We're going to use the +++<cite>+++UNWIND+++</cite>+++ function to help us out here as well:
[source,python]
----
query = """
WITH {json} AS document
UNWIND document.categories AS category
UNWIND category.sub_categories AS subCategory
RETURN category.name, subCategory.code, subCategory.description
"""
----
[source,bash]
----
$ python import_categories.py
| category.name | subCategory.code | subCategory.description
----+-----------------+------------------+---------------------------
1 | Index Crime | 01A | Homicide 1st & 2nd Degree
2 | Index Crime | 02 | Criminal Sexual Assault
3 | Index Crime | 03 | Robbery
4 | Index Crime | 04A | Aggravated Assault
5 | Index Crime | 04B | Aggravated Battery
6 | Index Crime | 05 | Burglary
7 | Index Crime | 06 | Larceny
8 | Index Crime | 07 | Motor Vehicle Theft
9 | Index Crime | 09 | Arson
10 | Non-Index Crime | 01B | Involuntary Manslaughter
11 | Non-Index Crime | 08A | Simple Assault
12 | Non-Index Crime | 08B | Simple Battery
13 | Non-Index Crime | 10 | Forgery & Counterfeiting
14 | Non-Index Crime | 11 | Fraud
15 | Non-Index Crime | 12 | Embezzlement
16 | Non-Index Crime | 13 | Stolen Property
17 | Non-Index Crime | 14 | Vandalism
18 | Non-Index Crime | 15 | Weapons Violation
19 | Non-Index Crime | 16 | Prostitution
20 | Non-Index Crime | 17 | Criminal Sexual Abuse
21 | Non-Index Crime | 18 | Drug Abuse
22 | Non-Index Crime | 19 | Gambling
23 | Non-Index Crime | 20 | Offenses Against Family
24 | Non-Index Crime | 22 | Liquor License
25 | Non-Index Crime | 24 | Disorderly Conduct
26 | Non-Index Crime | 26 | Misc Non-Index Offense
27 | Violent Crime | 01A | Homicide 1st & 2nd Degree
28 | Violent Crime | 02 | Criminal Sexual Assault
29 | Violent Crime | 03 | Robbery
30 | Violent Crime | 04A | Aggravated Assault
31 | Violent Crime | 04B | Aggravated Battery
----
Let's give sub categories the +++<cite>+++MERGE+++</cite>+++ treatment too:
[source,python]
----
query = """
WITH {json} AS document
UNWIND document.categories AS category
UNWIND category.sub_categories AS subCategory
MERGE (c:CrimeCategory {name: category.name})
MERGE (sc:SubCategory {code: subCategory.code})
ON CREATE SET sc.description = subCategory.description
MERGE (c)-[:CHILD]->(sc)
"""
----
And finally let's write a query to check what we've imported:
[source,cypher]
----
match (category:CrimeCategory)-[:CHILD]->(subCategory)
return *
----
image::{{<siteurl>}}/uploads/2015/07/graph-24.png[Graph 24,599]
I hadn't realised before running this query is that some sub categories sit under multiple categories so that's quite an interesting insight. The https://github.com/mneedham/neo4j-spark-chicago/blob/master/import_categories.py[final Python script] is available on github - any questions let me know. | null | null | [
0.015742460265755653,
-0.02057694084942341,
-0.007043479476124048,
0.053530484437942505,
0.06900317221879959,
-0.0050118244253098965,
0.03480098769068718,
0.04062743857502937,
0.01363647636026144,
-0.024665262550115585,
-0.003117092652246356,
-0.017958156764507294,
-0.07794864475727081,
0.0001829402899602428,
0.011108161881566048,
0.053264666348695755,
0.07698090374469757,
0.0032451977021992207,
0.008860919624567032,
-0.01772569864988327,
0.022186238318681717,
0.03846684843301773,
-0.0007748525822535157,
0.03623652830719948,
0.04592704027891159,
-0.005714470986276865,
-0.008652152493596077,
0.0052931541576981544,
-0.0414775013923645,
-0.006941420026123524,
0.038354773074388504,
-0.02763756364583969,
0.015017728321254253,
-0.009688182733952999,
0.01661737821996212,
0.014581112191081047,
-0.07964517176151276,
0.012679235078394413,
-0.0038935765624046326,
0.013135968707501888,
-0.03376026824116707,
0.044431768357753754,
-0.004691217094659805,
0.01981184259057045,
-0.022942394018173218,
0.004160166252404451,
-0.03864891082048416,
0.050323791801929474,
0.0016160216182470322,
-0.008042575791478157,
-0.07605241239070892,
0.020647546276450157,
-0.023202890530228615,
0.007234837394207716,
-0.007976612076163292,
0.05155515670776367,
0.01880725473165512,
-0.06413089483976364,
0.05129075050354004,
-0.010764747858047485,
-0.007103873882442713,
-0.016875550150871277,
0.022182287648320198,
0.027466870844364166,
-0.0039944127202034,
-0.05083100125193596,
-0.010703541338443756,
0.07419539988040924,
-0.04925107583403587,
-0.027822619304060936,
0.017950527369976044,
0.04287320002913475,
-0.0038104115519672632,
0.002335249911993742,
-0.00236205174587667,
-0.05347856506705284,
0.01078429352492094,
0.05755113065242767,
0.007555329240858555,
0.05746471509337425,
-0.04166287183761597,
0.04229669272899628,
0.009963180869817734,
0.0313057079911232,
-0.010068044997751713,
-0.04199718311429024,
-0.05342097580432892,
0.0015493076061829925,
-0.04666879400610924,
0.03696250915527344,
0.015195060521364212,
-0.03730890527367592,
-0.0039800857193768024,
0.008997549302875996,
-0.015264480374753475,
0.012230640277266502,
-0.0018688469426706433,
0.024337071925401688,
-0.001885549514554441,
-0.01892034523189068,
-0.046193335205316544,
-0.009934604167938232,
0.02056766301393509,
-0.0012260442599654198,
-0.0574205107986927,
-0.039601363241672516,
-0.001515112933702767,
-0.030186859890818596,
-0.003907519858330488,
-0.014623786322772503,
-0.03017413429915905,
-0.020701970905065536,
-0.013293175958096981,
-0.0013775047846138477,
-0.05970418080687523,
0.053341448307037354,
0.03344275429844856,
-0.02819536067545414,
-0.02352204918861389,
0.021511545404791832,
0.05993969365954399,
0.012626503594219685,
-0.011952127330005169,
0.07669857144355774,
0.00907079130411148,
0.03237968310713768,
-0.004442209843546152,
0.04721539467573166,
-0.010201333090662956,
-0.06336599588394165,
-0.0029903652612119913,
0.056368011981248856,
-0.010002070106565952,
0.03204094246029854,
-0.0010353029938414693,
-0.04540026932954788,
-0.023335162550210953,
0.03156683221459389,
0.04946129769086838,
0.02295595593750477,
-0.00855617132037878,
-0.06036340445280075,
0.032225970178842545,
-0.007020530290901661,
0.019352946430444717,
-0.003719802713021636,
-0.053065672516822815,
-0.045450594276189804,
-0.02663600817322731,
0.02387433499097824,
0.011622465215623379,
0.007480180822312832,
0.06251910328865051,
-0.006812966428697109,
-0.015388540923595428,
0.12269479036331177,
0.02601826749742031,
0.022855285555124283,
-0.01117292232811451,
0.009909603744745255,
0.047019608318805695,
0.03216084837913513,
0.005646614357829094,
0.060146674513816833,
-0.03474172204732895,
-0.026778971776366234,
-0.015659919008612633,
0.07128487527370453,
-0.012218579649925232,
0.0031072315759956837,
-0.010295971296727657,
-0.066471166908741,
0.06872119754552841,
-0.04146009683609009,
-0.013986270874738693,
0.03807619959115982,
0.0735868588089943,
0.032111603766679764,
0.0017504935385659337,
0.011365236714482307,
-0.07335498929023743,
0.03403368592262268,
0.024501994252204895,
-0.004720078781247139,
0.012118438258767128,
0.002843119902536273,
0.08718112856149673,
0.030199013650417328,
0.0033851568587124348,
0.039575424045324326,
-0.08061765879392624,
-0.06500815600156784,
-0.010919732041656971,
-0.011797036044299603,
0.06229493021965027,
-0.028385119512677193,
0.019830923527479172,
0.06505507230758667,
-0.003722206223756075,
0.04494963958859444,
0.03158437833189964,
-0.028362371027469635,
0.04291863739490509,
-0.06317341327667236,
-0.026246357709169388,
0.04492976516485214,
0.034356582909822464,
-0.053574662655591965,
-0.0215937290340662,
0.020306695252656937,
-0.009165041148662567,
-0.010338510386645794,
0.03225835785269737,
-0.03854319080710411,
0.021970978006720543,
0.01647200435400009,
0.046464819461107254,
-0.016852444037795067,
0.039353713393211365,
-0.037562765181064606,
0.05435740575194359,
0.004385610111057758,
-0.01397376786917448,
-0.031923964619636536,
-0.01690470427274704,
0.12048418074846268,
0.06763754785060883,
0.008855831809341908,
-0.04290381446480751,
0.022842133417725563,
0.002205997472628951,
-0.031112050637602806,
0.028359217569231987,
-0.020614104345440865,
-0.03414563834667206,
-0.015121009200811386,
-0.05636168643832207,
-0.021208906546235085,
-0.014806310646235943,
-0.026257948949933052,
0.016075914725661278,
0.05003219097852707,
-0.02242082543671131,
0.04906798154115677,
0.01700666919350624,
-0.0015621187631040812,
0.002224635798484087,
-0.0396905280649662,
-0.023980045691132545,
0.025748668238520622,
0.009260505437850952,
0.001867996179498732,
0.0477430522441864,
-0.005464538931846619,
0.0006768630119040608,
-0.01936011202633381,
-0.02411118894815445,
0.021737055853009224,
0.04932194575667381,
0.049133069813251495,
0.002989873057231307,
0.04854648560285568,
-0.051903676241636276,
-0.0027503122109919786,
-0.016740430146455765,
-0.04638633877038956,
-0.05480358377099037,
-0.02261544018983841,
0.027140527963638306,
0.00992022268474102,
0.04177350923418999,
-0.011689535342156887,
0.03518034890294075,
0.0037361786235123873,
0.011705661192536354,
-0.007393870037049055,
0.02541121281683445,
0.005434620659798384,
-0.0038497443310916424,
-0.03760211169719696,
-0.037088748067617416,
0.05458450689911842,
-0.06619492173194885,
-0.031083915382623672,
-0.024876296520233154,
-0.0768766924738884,
0.0588320717215538,
-0.05823772773146629,
-0.027242789044976234,
-0.013505996204912663,
0.028016401454806328,
0.05113696679472923,
0.01526444498449564,
-0.02638276107609272,
0.059849999845027924,
0.009258521720767021,
0.018559690564870834,
0.011419827118515968,
-0.006224256940186024,
0.05551913380622864,
-0.017040666192770004,
0.04704742506146431,
0.0448271669447422,
-0.017455512657761574,
-0.012022892944514751,
-0.023538712412118912,
-0.0063600800931453705,
-0.01919090375304222,
-0.2714351713657379,
0.056359414011240005,
-0.029000386595726013,
-0.051795002073049545,
-0.006863351911306381,
-0.008563486859202385,
-0.01143164187669754,
-0.03241194412112236,
-0.026122108101844788,
0.00577269122004509,
-0.0006183215882629156,
-0.0380057692527771,
-0.03143452852964401,
0.039093855768442154,
0.025620942935347557,
0.010524959303438663,
-0.01687050051987171,
-0.032467421144247055,
0.011111132800579071,
0.04522176459431648,
-0.006423915736377239,
-0.04903671145439148,
-0.012983356602489948,
0.03623680770397186,
0.01714899018406868,
0.044490594416856766,
-0.09091345965862274,
0.021613018587231636,
-0.054603878408670425,
-0.029131490737199783,
0.021919414401054382,
-0.04566600173711777,
0.03183560445904732,
0.0020439785439521074,
-0.04070033133029938,
-0.01033793855458498,
0.06587786972522736,
0.012333128601312637,
-0.003580864053219557,
0.0023998927790671587,
-0.06057675555348396,
-0.051930516958236694,
-0.03375174105167389,
-0.023656830191612244,
0.09346628934144974,
-0.017055699601769447,
-0.07241307199001312,
0.0018446736503392458,
-0.047663118690252304,
0.06856908649206161,
-0.03950371965765953,
-0.01862047240138054,
-0.030572526156902313,
0.036499980837106705,
-0.011339635588228703,
-0.015703365206718445,
-0.008418988436460495,
0.0048590051010251045,
-0.06311758607625961,
-0.03674481436610222,
-0.0002558020642027259,
-0.03473346680402756,
0.004557318054139614,
-0.058530744165182114,
-0.015541983768343925,
-0.06049897149205208,
-0.06982339918613434,
-0.03896699473261833,
0.04122845456004143,
0.026658974587917328,
-0.03599455952644348,
0.0524873249232769,
-0.007171420846134424,
-0.10519091039896011,
-0.02204895205795765,
-0.04161356762051582,
-0.030112331733107567,
0.0042494661174714565,
-0.00810168869793415,
0.05906335636973381,
-0.05132396146655083,
-0.05286026746034622,
0.016795463860034943,
0.014201420359313488,
-0.012226387858390808,
0.007964354008436203,
0.02248348854482174,
-0.02341700717806816,
-0.01951439492404461,
-0.01127734687179327,
0.0654536634683609,
-0.022308392450213432,
0.003668241435661912,
0.018459903076291084,
-0.010723079554736614,
0.02552291564643383,
0.006337752565741539,
-0.03849255293607712,
0.006562305148690939,
0.0385776162147522,
0.0577722042798996,
-0.03089575655758381,
0.009814700111746788,
-0.00944611243903637,
0.001488024601712823,
-0.025062263011932373,
-0.03887254372239113,
0.03203515708446503,
0.023463143035769463,
0.011844897642731667,
-0.027475206181406975,
-0.01228248979896307,
0.008252620697021484,
-0.043857622891664505,
-0.017987966537475586,
-0.0004308965289965272,
0.029388632625341415,
0.01438677217811346,
0.030713355168700218,
-0.053343117237091064,
-0.06460729986429214,
0.024873940274119377,
0.041822321712970734,
-0.00675925612449646,
-0.0659242793917656,
-0.031142497435212135,
-0.01950504072010517,
-0.014876565895974636,
0.01005018875002861,
-0.00005302991485223174,
-0.030657710507512093,
0.040312666445970535,
0.009283698163926601,
-0.029878489673137665,
0.02405242994427681,
-0.03607318550348282,
-0.030628127977252007,
-0.04271857067942619,
0.043594811111688614,
-0.0023071225732564926,
-0.0066682989709079266,
-0.004688443150371313,
-0.009816737845540047,
0.0344790555536747,
0.03273971378803253,
0.0006840413552708924,
0.026129301637411118,
0.027260253205895424,
0.014410274103283882,
-0.021948102861642838,
-0.007332527544349432,
-0.040393538773059845,
-0.010717906057834625,
-0.03329535201191902,
-0.04013524949550629,
-0.0072825076058506966,
0.042422376573085785,
-0.007162823341786861,
-0.023005958646535873,
-0.03302296623587608,
0.05881423130631447,
-0.058140695095062256,
0.012732506729662418,
-0.007977375760674477,
-0.017484644427895546,
0.043403539806604385,
-0.018119562417268753,
0.014627641998231411,
-0.018270127475261688,
-0.001595375593751669,
0.028908763080835342,
0.008542087860405445,
-0.029887376353144646,
-0.006044144742190838,
-0.008901211433112621,
-0.012197043746709824,
0.0045700157061219215,
0.03244130685925484,
0.02232746221125126,
0.02962220273911953,
-0.005102787632495165,
-0.008064042776823044,
0.007181607186794281,
0.024595458060503006,
0.05310244485735893,
0.02826523967087269,
-0.011932415887713432,
0.0053572217002511024,
-0.012058562599122524,
-0.01781073585152626,
-0.01569349318742752,
-0.012203573249280453,
-0.037971410900354385,
0.005213224794715643,
-0.002532021142542362,
-0.0566069670021534,
0.05013833940029144,
-0.02380576729774475,
0.024921558797359467,
0.04721572622656822,
-0.004375524818897247,
0.005406354553997517,
-0.025832338258624077,
0.020943576470017433,
0.03611135855317116,
-0.043161388486623764,
-0.04775402322411537,
-0.005433435086160898,
0.010500332340598106,
-0.03278732672333717,
0.02584276907145977,
-0.05110432580113411,
-0.06003729999065399,
-0.023744916543364525,
0.022008759900927544,
-0.00938170775771141,
-0.050164226442575455,
-0.012529411353170872,
-0.002784951124340296,
-0.0015289334114640951,
0.002610723953694105,
0.02009529620409012,
0.0045126681216061115,
-0.01488475315272808,
0.021019618958234787,
0.06126406416296959,
-0.027551423758268356,
-0.016662275418639183,
0.020520396530628204,
-0.01621200516819954,
0.010618012398481369,
-0.01722615398466587,
0.06278607994318008,
0.02841365896165371,
-0.02384019084274769,
0.00796679686754942,
-0.04390037804841995,
0.019425043836236,
-0.005858443211764097,
0.06149820238351822,
0.014396828599274158,
0.00003632055449998006,
-0.024699419736862183,
0.014930197969079018,
-0.008478900417685509,
-0.0070114778354763985,
-0.01265293825417757,
-0.022289996966719627,
0.02298877015709877,
0.04652173072099686,
0.025338243693113327,
0.00650933338329196,
-0.0012798432726413012,
-0.07058625668287277,
0.052072327584028244,
-0.04579254612326622,
-0.034283529967069626,
-0.006205713842064142,
-0.03829990327358246,
0.006531429942697287,
0.02108990028500557,
0.01616818644106388,
-0.06328504532575607,
0.06699948012828827,
0.05457001551985741,
0.030559314414858818,
0.025064270943403244,
-0.020713845267891884,
0.03810436278581619,
-0.014173351228237152,
-0.01571139134466648,
-0.0807194635272026,
0.017072921618819237,
0.05656188353896141,
0.020812788978219032,
-0.0017846270930022001,
-0.00449070381000638,
-0.02555396780371666,
0.010804422199726105,
-0.05348070710897446,
-0.019543543457984924,
0.06130010262131691,
-0.010285068303346634,
0.01063776295632124,
-0.006315163336694241,
-0.07649563252925873,
0.01848548650741577,
0.05742733180522919,
-0.04341443255543709,
-0.01994340680539608,
-0.0246523879468441,
0.06687812507152557,
-0.016005894169211388,
0.024191545322537422,
0.0005558353732340038,
-0.021084090694785118,
0.06240156292915344,
0.02223716676235199,
0.029042093083262444,
0.04993883892893791,
-0.02391674742102623,
0.03917375206947327,
0.025494113564491272,
-0.027020419016480446,
0.00801164098083973,
0.0354534275829792,
-0.029515022411942482,
-0.05524033308029175,
0.05539509654045105,
0.015309715643525124,
-0.03129221498966217,
-0.03701506555080414,
0.07697536796331406,
-0.0003195223107468337,
-0.0538453608751297,
-0.04793045297265053,
0.05373259261250496,
-0.028147051110863686,
-0.0352369025349617,
-0.0393858402967453,
0.02805532142519951,
-0.01597335934638977,
0.043196458369493484,
-0.038418497890233994,
0.007153359707444906,
0.07786775380373001,
-0.02687172405421734,
-0.00010493031732039526,
-0.0023205906618386507,
0.0625082328915596,
0.08364353328943253,
0.03699332848191261,
0.008983013220131397,
0.07233989983797073,
0.005262827500700951,
-0.02253412827849388,
-0.011441201902925968,
-0.026867710053920746,
0.006788188125938177,
0.02156299538910389,
-0.007654798682779074,
0.06786676496267319,
-0.052802037447690964,
0.08442830294370651,
-0.011299173347651958,
-0.019871199503540993,
0.011823129840195179,
-0.023208102211356163,
0.02457268163561821,
0.062317993491888046,
0.014357205480337143,
0.03956269100308418,
-0.03661889582872391,
-0.0325460210442543,
0.03449556604027748,
-0.0026610330678522587,
-0.03790733590722084,
0.02000231295824051,
-0.03639395162463188,
0.001959948567673564,
0.004437203519046307,
0.04104030877351761,
0.09367097914218903,
-0.03966820612549782,
-0.005472839344292879,
-0.0013438411988317966,
0.017981456592679024,
-0.008560355752706528,
0.011108944192528725,
-0.00023346698435489088,
-0.037613604217767715,
0.0009549648966640234,
-0.05702302232384682,
-0.014894549734890461,
-0.017257193103432655,
-0.022362271323800087,
0.014333364553749561,
-0.004395017400383949,
-0.005790177267044783,
-0.01850907690823078,
-0.014390800148248672,
-0.012260658666491508,
-0.049931641668081284,
-0.050972532480955124,
-0.021653378382325172,
-0.06876356899738312,
-0.0010086219990625978,
0.021071167662739754,
-0.007528971880674362,
0.0009416170651093125,
-0.00225851871073246,
-0.009728852659463882,
-0.0025549253914505243,
0.033600449562072754,
-0.04115850850939751,
-0.011137105524539948,
0.021974632516503334,
0.017736949026584625,
-0.0023843692615628242,
0.029887884855270386,
0.04517413675785065,
-0.008203953504562378,
-0.008484689518809319,
-0.02564195729792118,
0.007842388935387135,
0.045669980347156525,
0.03268672898411751,
0.0020182428415864706,
-0.07126351445913315,
-0.014066609553992748,
-0.0047731054946780205,
-0.016789723187685013,
-0.06500433385372162,
0.006839409004896879,
0.056497834622859955,
0.023128662258386612,
0.04932945966720581,
0.010864722542464733,
-0.012408371083438396,
-0.022318968549370766,
0.005012450274080038,
-0.012538047507405281,
0.00268292473629117,
0.040827758610248566,
-0.016317086294293404,
0.08157005161046982,
0.02315262332558632,
-0.03842146694660187,
-0.0061366986483335495,
-0.035940028727054596,
0.01144590973854065,
0.0044484818354249,
-0.02755163609981537,
-0.03451153635978699,
-0.03789598122239113,
-0.07356959581375122,
-0.03881211206316948,
-0.016661055386066437,
-0.029697084799408913,
-0.008853876031935215,
-0.008397608064115047,
-0.005275585222989321,
-0.03852279111742973,
0.04449884220957756,
-0.03830356150865555,
0.04028397798538208,
-0.013515261001884937,
-0.02645016461610794,
-0.016983512789011,
0.006721812300384045,
-0.015522664412856102,
0.013025225140154362,
0.013766448944807053,
-0.06687398999929428,
-0.014466083608567715,
-0.030200544744729996,
0.02459177002310753,
0.04645797982811928,
0.0022026142105460167,
0.015272926539182663
] | [
-0.054661329835653305,
-0.013672953471541405,
-0.01980442740023136,
-0.01685289852321148,
0.07733907550573349,
-0.0032015787437558174,
-0.029379691928625107,
0.018287591636180878,
-0.0149307232350111,
-0.0010650531621649861,
-0.01159121934324503,
-0.025379566475749016,
-0.015942314639687538,
0.004292408935725689,
0.07871159166097641,
-0.026279836893081665,
-0.030423523858189583,
-0.05031396821141243,
-0.06121324002742767,
0.07733947783708572,
-0.01953168399631977,
-0.028156980872154236,
-0.018860870972275734,
-0.04889368265867233,
-0.013155450113117695,
0.04877997189760208,
0.035258304327726364,
-0.009744973853230476,
-0.024917522445321083,
-0.18792550265789032,
-0.0015593101270496845,
-0.008297129534184933,
-0.004645755514502525,
0.0014566350728273392,
-0.0001101462185033597,
0.038390252739191055,
0.05266665667295456,
-0.011503053829073906,
0.0169658362865448,
0.060329586267471313,
0.04475197568535805,
0.0004187313898000866,
-0.06455232948064804,
-0.017282720655202866,
0.04096187651157379,
0.013743697665631771,
-0.027767136693000793,
-0.014789419248700142,
-0.013393884524703026,
0.03601156175136566,
-0.042354270815849304,
-0.024892307817935944,
-0.017794663086533546,
-0.01317377109080553,
-0.00269059999845922,
0.018974386155605316,
0.035834453999996185,
0.051108796149492264,
0.012408794835209846,
0.03797094523906708,
-0.002307003363966942,
0.012138408608734608,
-0.10738775134086609,
0.08881058543920517,
-0.0037317005917429924,
0.017859984189271927,
-0.07216603308916092,
0.01175336167216301,
-0.03325315937399864,
0.0589710995554924,
0.014696437865495682,
-0.002932570409029722,
-0.04366829991340637,
0.05775409936904907,
-0.020067354664206505,
0.00892849825322628,
0.0006024629692547023,
0.015318385325372219,
0.05000480264425278,
-0.04928610101342201,
-0.05616698041558266,
0.012124637141823769,
-0.028511712327599525,
-0.018062416464090347,
-0.03494308516383171,
0.026339514181017876,
-0.052386265248060226,
0.050139762461185455,
-0.012191671878099442,
0.03993169590830803,
0.034705981612205505,
0.012429616414010525,
0.06904564797878265,
0.05620432645082474,
-0.09301351010799408,
-0.02493903413414955,
-0.003890372347086668,
0.027403617277741432,
0.017786763608455658,
0.3969157338142395,
-0.002978928852826357,
-0.027832189574837685,
0.050913117825984955,
0.0305979885160923,
-0.011766942217946053,
-0.008494040928781033,
0.014775928109884262,
-0.07468584179878235,
0.04167480021715164,
-0.009777454659342766,
0.009510953910648823,
-0.022117923945188522,
0.018061164766550064,
-0.08293179422616959,
0.011602126061916351,
-0.018390806391835213,
0.05406946688890457,
0.03111838735640049,
-0.04520098492503166,
0.015016822144389153,
0.008932225406169891,
0.008031046018004417,
0.013474402017891407,
-0.009714812971651554,
0.029205281287431717,
0.012380674481391907,
0.0004531559825409204,
0.022717207670211792,
0.06278087198734283,
0.03458838164806366,
0.03016573190689087,
0.003906975034624338,
-0.06655139476060867,
0.03025398962199688,
-0.03102642297744751,
-0.01551448181271553,
0.026101551949977875,
-0.03976958990097046,
-0.024188945069909096,
0.017735788598656654,
-0.013271767646074295,
-0.025177830830216408,
0.010740157216787338,
0.013076541014015675,
-0.02721329778432846,
0.09539593011140823,
-0.004967072978615761,
-0.03469038009643555,
-0.0242837555706501,
-0.04131345823407173,
-0.00392600242048502,
0.06455159187316895,
0.010551621206104755,
-0.058509521186351776,
-0.004917159676551819,
0.03061763383448124,
0.08824613690376282,
-0.018839824944734573,
-0.0722191333770752,
-0.0064074378460645676,
0.010346564464271069,
-0.04164498299360275,
-0.015952112153172493,
0.07444946467876434,
0.05455150455236435,
-0.11583688855171204,
-0.012190138921141624,
0.014275015331804752,
-0.000004443111720320303,
-0.09343341737985611,
0.014567171223461628,
0.04705869033932686,
-0.05711434781551361,
-0.019381416961550713,
0.07605164498090744,
-0.0061127422377467155,
-0.032414212822914124,
0.0021732745226472616,
0.05553088337182999,
0.003274907823652029,
-0.03447563573718071,
0.01604774221777916,
-0.035660676658153534,
-0.01581086777150631,
-0.07054266333580017,
-0.05754094570875168,
-0.06504368036985397,
0.034662626683712006,
-0.033148378133773804,
-0.02934139221906662,
0.0028064472135156393,
0.01591368578374386,
-0.05257444828748703,
0.05699900910258293,
-0.03818010538816452,
-0.023305809125304222,
-0.01237569935619831,
-0.010453966446220875,
-0.013604141771793365,
-0.027784427627921104,
0.01999715529382229,
0.020886089652776718,
-0.0055085718631744385,
0.061441272497177124,
-0.03361985832452774,
-0.009489278309047222,
0.0823662132024765,
-0.03264729306101799,
0.04194490984082222,
0.011748764663934708,
-0.05463293939828873,
0.021053262054920197,
-0.012180139310657978,
0.02030867524445057,
-0.019055109471082687,
-0.04666377604007721,
-0.015379237942397594,
-0.0007154553895816207,
0.04618792608380318,
0.04850276932120323,
-0.06014368310570717,
-0.04723717272281647,
-0.020880335941910744,
-0.3464313745498657,
-0.02026371657848358,
0.004940159618854523,
0.00032874802127480507,
0.032060571014881134,
-0.036342643201351166,
0.02461249753832817,
-0.028921060264110565,
0.009629315696656704,
0.03358606621623039,
0.10753364861011505,
-0.0014666075585409999,
-0.006110315211117268,
-0.10045099258422852,
0.002547360025346279,
0.06600098311901093,
0.004026808775961399,
-0.01845184527337551,
-0.0165058933198452,
0.04040925204753876,
-0.004599995911121368,
-0.07703488320112228,
-0.038977473974227905,
-0.029971977695822716,
0.0012593318242579699,
-0.01651092991232872,
0.11872144788503647,
-0.0020071936305612326,
0.04609765484929085,
-0.057809777557849884,
0.025581905618309975,
0.014239814132452011,
-0.04033646360039711,
-0.07253149151802063,
0.004635907243937254,
-0.040136490017175674,
0.006495670881122351,
0.04574888199567795,
-0.026945926249027252,
0.008957303129136562,
-0.022651031613349915,
-0.0032566245645284653,
-0.020723234862089157,
-0.04746391996741295,
-0.010105670429766178,
0.02833705209195614,
-0.06491146236658096,
-0.012736722826957703,
0.024350283667445183,
0.050795819610357285,
-0.00437430152669549,
0.0547630675137043,
0.028877925127744675,
0.052348051220178604,
-0.01779945008456707,
-0.022025085985660553,
-0.057185061275959015,
-0.022809607908129692,
0.008748740889132023,
0.03803632780909538,
0.0006253121537156403,
0.04365336149930954,
0.031143566593527794,
-0.08770136535167694,
0.018596291542053223,
0.003435277845710516,
0.010938857682049274,
0.020481888204813004,
0.0385642908513546,
-0.029855553060770035,
-0.029457099735736847,
0.10507303476333618,
0.006035188678652048,
0.03407786041498184,
0.04886102303862572,
0.06618797034025192,
-0.035565607249736786,
0.0061790416948497295,
0.0634775459766388,
0.012274728156626225,
0.031036963686347008,
-0.008079338818788528,
0.08038334548473358,
-0.025466881692409515,
-0.024012744426727295,
0.08357056975364685,
-0.007580602541565895,
-0.03788673132658005,
0.031843144446611404,
0.0078104897402226925,
-0.02068485878407955,
-0.005011837929487228,
-0.0050798216834664345,
-0.049964357167482376,
0.05679786205291748,
-0.008104981854557991,
-0.2658042907714844,
0.04221499711275101,
0.042931653559207916,
0.0782189816236496,
0.014130648225545883,
0.0024996676947921515,
0.03106522187590599,
-0.03936729207634926,
0.009740562178194523,
0.030809130519628525,
0.0485292449593544,
0.05732328072190285,
-0.0026111467741429806,
-0.03252890706062317,
0.0015537678264081478,
-0.00008100945706246421,
0.014068965800106525,
0.019596610218286514,
0.029265958815813065,
0.007337641436606646,
0.03597826510667801,
-0.02177019789814949,
0.19024434685707092,
0.03963823243975639,
-0.011579141020774841,
0.021021582186222076,
-0.022564707323908806,
0.018631190061569214,
0.04123721644282341,
-0.013267584145069122,
-0.014001170173287392,
0.052969008684158325,
-0.006725006736814976,
0.05347036197781563,
0.013834160752594471,
-0.06542965024709702,
-0.028149735182523727,
0.04666939377784729,
0.02777673490345478,
-0.048136185854673386,
-0.02421499602496624,
0.018642492592334747,
-0.03174152225255966,
0.016899915412068367,
0.054194558411836624,
-0.05136733874678612,
-0.009196543134748936,
-0.03536946699023247,
-0.0562908872961998,
0.005932249128818512,
-0.04109436646103859,
-0.07611110061407089,
-0.02491159737110138,
-0.027936168015003204,
-0.01800413802266121,
0.08263605833053589,
0.016565263271331787,
-0.01739409938454628,
0.05246826261281967,
0.01985681988298893,
-0.0292306300252676,
-0.03603829815983772,
0.06803666055202484,
-0.006029426585882902,
-0.013192769140005112
] | [
0.019908389076590538,
0.059626754373311996,
-0.02125024050474167,
0.04019409045577049,
-0.009300144389271736,
0.0070515964180231094,
-0.042420435696840286,
0.03341326490044594,
-0.008420739322900772,
-0.016673991456627846,
-0.008449030108749866,
0.01889277994632721,
0.02388211153447628,
0.02905299700796604,
0.009163939394056797,
0.01976667530834675,
-0.03389358893036842,
0.06346997618675232,
0.03455884009599686,
-0.013898883946239948,
-0.024014044553041458,
-0.01911252737045288,
0.03248218074440956,
-0.03261242061853409,
-0.014612053520977497,
0.02415522187948227,
-0.036978065967559814,
-0.01563342846930027,
0.015387821942567825,
-0.09464513510465622,
-0.030175799503922462,
-0.04090382531285286,
-0.007352559827268124,
0.020846284925937653,
-0.008657949045300484,
-0.023300746455788612,
0.01697901077568531,
0.012354167178273201,
0.028160907328128815,
0.02328009344637394,
0.03054608218371868,
0.012664089910686016,
-0.041358478367328644,
-0.013031992129981518,
-0.007971304468810558,
-0.039490047842264175,
-0.044152215123176575,
-0.0054762959480285645,
-0.004604738671332598,
-0.00005356784095056355,
-0.03670206665992737,
-0.013267029076814651,
-0.01586698368191719,
0.017575467005372047,
-0.014912839978933334,
-0.018670428544282913,
-0.05817963927984238,
-0.006665970664471388,
-0.0029450503643602133,
-0.013190913014113903,
0.035822734236717224,
0.0112727927044034,
-0.05509762465953827,
-0.014497636817395687,
-0.017719607800245285,
-0.009195240214467049,
-0.00596252316609025,
0.010792830027639866,
0.006626723799854517,
0.021187953650951385,
0.009819251485168934,
0.019490785896778107,
-0.03499319776892662,
-0.018572527915239334,
-0.02147591859102249,
-0.00041364080971106887,
0.046206552535295486,
-0.025569437071681023,
-0.0035712309181690216,
0.002523571951314807,
0.01306360773742199,
0.01309058628976345,
-0.007226934656500816,
0.0030544432811439037,
-0.03450292348861694,
0.008310404606163502,
-0.008760561235249043,
-0.008882607333362103,
-0.011398009955883026,
0.013877124525606632,
-0.020500222221016884,
0.01140535343438387,
0.0016289575723931193,
0.003950140438973904,
-0.07947646081447601,
-0.009194173850119114,
0.02738281711935997,
0.0029320858884602785,
-0.0006693812902085483,
0.8380654454231262,
0.004746860358864069,
-0.02691345103085041,
0.014599787071347237,
-0.01918436959385872,
0.022183269262313843,
0.006308431271463633,
0.009602926671504974,
-0.002347907517105341,
0.00262812408618629,
0.021330198273062706,
0.0019223956624045968,
0.017456622794270515,
0.006574081722646952,
0.009590290486812592,
0.02421892248094082,
0.036810602992773056,
0.008343233726918697,
0.022502118721604347,
-0.003115125233307481,
0.029413240030407906,
0.0236690454185009,
0.0008827697020024061,
-0.010723152197897434,
0.005286355037242174,
0.015811750665307045,
-0.16945238411426544,
-0.025757979601621628,
-7.61940230244843e-33,
0.07089962065219879,
-0.02130555547773838,
0.05510134994983673,
0.006551649421453476,
-0.0013269393239170313,
0.003662342205643654,
0.004664356354624033,
-0.02513965778052807,
-0.019471939653158188,
-0.012504792772233486,
-0.033278778195381165,
-0.009995771571993828,
-0.015669509768486023,
0.0016416794387623668,
0.004119259770959616,
-0.021138135343790054,
0.019968999549746513,
-0.008592565543949604,
0.005890655796974897,
0.008397291414439678,
-0.010934757068753242,
0.02813594788312912,
0.005571689456701279,
0.057200681418180466,
-0.020016761496663094,
0.0344974584877491,
-0.013285467401146889,
0.005351746454834938,
-0.016283202916383743,
-0.04344605654478073,
-0.03808337822556496,
0.024296781048178673,
-0.01937454380095005,
-0.026891812682151794,
0.019189640879631042,
-0.06107757240533829,
-0.01258011069148779,
0.0018993233097717166,
-0.021191000938415527,
-0.05938821658492088,
-0.0452733188867569,
0.00015120934403967112,
-0.026049155741930008,
-0.04569556564092636,
-0.018951863050460815,
-0.028206821531057358,
0.0029362381901592016,
0.022650377824902534,
-0.033291250467300415,
0.0247478224337101,
0.003570747561752796,
0.017668137326836586,
-0.011714990250766277,
0.04200452193617821,
-0.015067461878061295,
0.03163459897041321,
0.018811842426657677,
0.0034620333462953568,
0.0066153742372989655,
0.005237617529928684,
0.04749146103858948,
-0.004242332186549902,
-0.0053444234654307365,
0.03462667390704155,
0.012921418063342571,
0.004707720130681992,
0.003579714335501194,
0.004274258855730295,
-0.009749277494847775,
0.05110812932252884,
-0.05038643628358841,
0.06734922528266907,
-0.01834077760577202,
-0.014727059751749039,
0.03938036039471626,
-0.05673419311642647,
-0.007641345728188753,
0.002246893011033535,
0.009251557290554047,
0.04574447497725487,
0.0016655281651765108,
-0.03444305434823036,
0.032261043787002563,
-0.028031732887029648,
-0.0121477534994483,
0.010802464559674263,
0.061950068920850754,
0.023930471390485764,
0.01718350686132908,
0.023423224687576294,
0.03994746878743172,
0.024672873318195343,
-0.010766987688839436,
-0.020662439987063408,
0.010004572570323944,
7.489917926285509e-33,
-0.014351152814924717,
-0.007137011736631393,
-0.026320699602365494,
-0.0022961257491260767,
-0.003926003351807594,
-0.010399279184639454,
0.022634735330939293,
-0.0015595660079270601,
-0.03508288785815239,
0.08792699873447418,
-0.017471391707658768,
-0.04480426758527756,
-0.0227322056889534,
0.005116450600326061,
0.08124833554029465,
0.004736043978482485,
-0.013734749518334866,
-0.033799223601818085,
-0.00048248303937725723,
0.004959640558809042,
-0.007282044738531113,
0.02010320872068405,
0.008597834035754204,
0.04718710854649544,
0.00475582480430603,
-0.007633330300450325,
-0.020292192697525024,
-0.004391100257635117,
-0.039117615669965744,
-0.0014823904493823647,
-0.0022110508289188147,
-0.05401049926877022,
-0.00822700746357441,
-0.033863943070173264,
-0.02067544311285019,
-0.006413663737475872,
0.007460309192538261,
-0.010053887031972408,
0.03353460878133774,
-0.010394370183348656,
0.003329097991809249,
0.022551342844963074,
-0.01922745816409588,
0.06025959551334381,
0.007948560640215874,
0.010463634505867958,
-0.0018326357239857316,
0.03334931284189224,
-0.001857028342783451,
0.005197956692427397,
-0.015241113491356373,
0.017702119424939156,
0.010085801593959332,
0.024067135527729988,
0.026360230520367622,
-0.05736546963453293,
0.0034156530164182186,
0.01675998419523239,
-0.025166843086481094,
0.017571276053786278,
-0.03727411851286888,
-0.03876383230090141,
-0.054004769772291183,
0.015162131749093533,
-0.01750185526907444,
-0.052930038422346115,
-0.049433887004852295,
-0.03149587661027908,
-0.004856985528022051,
0.007812658324837685,
-0.002345496788620949,
0.0026001385413110256,
0.0004126592248212546,
0.024664364755153656,
0.01402683649212122,
-0.04310940206050873,
-0.008183234371244907,
0.003218716476112604,
-0.026621703058481216,
0.02074742689728737,
0.03629620745778084,
0.0005814929609186947,
0.020675186067819595,
0.017982644960284233,
0.01931254379451275,
0.014409643597900867,
-0.010640416294336319,
0.024964338168501854,
-0.01660611666738987,
0.002106806728988886,
0.022299598902463913,
-0.008509793318808079,
0.0024129708763211966,
0.04051054269075394,
-0.009178423322737217,
-1.2973720764364316e-8,
-0.04903600737452507,
0.019029410555958748,
-0.007446031551808119,
0.023199578747153282,
0.017369767650961876,
0.020104000344872475,
-0.0022935853339731693,
0.01973860338330269,
0.010429990477859974,
-0.002957297721877694,
0.039507389068603516,
0.021103639155626297,
-0.004860829561948776,
-0.007912946864962578,
0.009674735367298126,
-0.04031902924180031,
0.005587415304034948,
-0.0024177555460482836,
0.04109008237719536,
0.020769735798239708,
0.013945108279585838,
0.022990893572568893,
-0.033604465425014496,
-0.003249340457841754,
0.009519233368337154,
-0.01791277714073658,
0.02518012747168541,
-0.07243487238883972,
-0.03616110607981682,
-0.017425620928406715,
-0.0042341891676187515,
-0.021022524684667587,
-0.02621387504041195,
0.0038628827314823866,
-0.04282842576503754,
-0.03284550458192825,
0.04192924499511719,
0.003174569457769394,
-0.00268521043471992,
0.029467742890119553,
0.028619306161999702,
0.02121882699429989,
-0.032317839562892914,
-0.03175529092550278,
-0.025915713980793953,
0.00733020156621933,
-0.022150998935103416,
0.007274092175066471,
0.0539361797273159,
-0.01990766078233719,
0.0007222348358482122,
-0.011408022604882717,
0.008388610556721687,
0.028382066637277603,
0.06003807112574577,
-0.023511745035648346,
0.023758338764309883,
-0.0023988389875739813,
-0.01098713930696249,
0.00673683499917388,
0.048794958740472794,
0.024398988112807274,
-0.033028606325387955,
-0.02508140541613102
] | neo4j-loading-json-documents-with-cypher | https://markhneedham.com/blog/2015/07/23/neo4j-loading-json-documents-with-cypher |
false | 2015-07-15 06:20:07 | Python: UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 0: ordinal not in range(128) | [
"python"
] | [
"Python"
] | I was recently doing some text scrubbing and had difficulty working out how to remove the '†' character from strings.
e.g. I had a string like this:
[source,python]
----
>>> u'foo †'
u'foo \u2020'
----
I wanted to get rid of the '†' character and then strip any trailing spaces so I'd end up with the string 'foo'. I tried to do this in one call to 'replace':
[source,python]
----
>>> u'foo †'.replace(" †", "")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 1: ordinal not in range(128)
----
It took me a while to work out that "† " was being treated as ASCII rather than UTF-8. Let's fix that:
[source,python]
----
>>> u'foo †'.replace(u' †', "")
u'foo'
----
I think the following call to +++<cite>+++unicode+++</cite>+++, which I've http://www.markhneedham.com/blog/2015/05/21/python-unicodeencodeerror-ascii-codec-cant-encode-character-uxfc-in-position-11-ordinal-not-in-range128/[written about before], is equivalent:
[source,python]
----
>>> u'foo †'.replace(unicode(' †', "utf-8"), "")
u'foo'
----
Now back to the scrubbing! | null | null | [
-0.012235324829816818,
-0.0068856580182909966,
-0.026144403964281082,
0.01427473220974207,
0.07609737664461136,
0.03531138226389885,
0.008298217318952084,
0.02751184068620205,
0.02569671720266342,
-0.023250695317983627,
-0.043953604996204376,
0.00853031501173973,
-0.0635792464017868,
-0.0026858781930059195,
0.021947046741843224,
0.07589889317750931,
0.06065652519464493,
0.015595176257193089,
0.0005175509140826762,
-0.009388924576342106,
0.049994297325611115,
0.06965187937021255,
0.00152426993008703,
0.033717360347509384,
0.02715015783905983,
0.04489303007721901,
0.006182375829666853,
0.003365045413374901,
-0.05834931135177612,
-0.011187750846147537,
0.05743888020515442,
0.02014302834868431,
0.014737093821167946,
-0.03167011961340904,
0.040516287088394165,
-0.013309584930539131,
-0.05642137676477432,
0.020834842696785927,
0.013119393028318882,
0.024504641070961952,
-0.07181920111179352,
0.01307810377329588,
-0.01022864319384098,
0.034702785313129425,
-0.058034732937812805,
-0.0104006826877594,
-0.05846651643514633,
-0.007720778230577707,
-0.021218227222561836,
-0.028531141579151154,
-0.03154130280017853,
0.031127987429499626,
0.002377270022407174,
-0.05965505167841911,
0.006158227100968361,
0.06349461525678635,
0.040147148072719574,
-0.07421119511127472,
0.03730398043990135,
-0.05308977887034416,
0.010093925520777702,
-0.01754329912364483,
-0.020745636895298958,
0.057194050401449203,
0.0142759308218956,
-0.001529076718725264,
0.009941869415342808,
0.03930393606424332,
-0.0637364387512207,
-0.04289788380265236,
0.025192024186253548,
0.007034721318632364,
-0.0523376390337944,
-0.007891601882874966,
0.0001694017119007185,
-0.05043494701385498,
-0.0226534903049469,
0.056497324258089066,
-0.0008480139658786356,
0.08514465391635895,
-0.003594661131501198,
0.03004285879433155,
0.01792796514928341,
0.006914189551025629,
-0.0006294802878983319,
-0.04727550595998764,
-0.021707424893975258,
0.001447908696718514,
-0.05058266595005989,
0.017420517280697823,
-0.01000747550278902,
-0.05182689055800438,
0.03373231738805771,
0.015373668633401394,
-0.03218349069356918,
-0.002330376533791423,
-0.018639421090483665,
0.0158578772097826,
0.004080119542777538,
-0.023801961913704872,
-0.07818396389484406,
-0.044808682054281235,
0.06002722308039665,
0.0341867059469223,
-0.05845979228615761,
-0.009831718169152737,
-0.01872795633971691,
0.016252782195806503,
0.0033827894367277622,
-0.008743311278522015,
-0.022987835109233856,
0.0011932292254641652,
-0.009705835953354836,
-0.011740674264729023,
-0.09393658488988876,
0.017549239099025726,
0.004134033806622028,
-0.041577018797397614,
0.008264800533652306,
0.03528183698654175,
0.06100859493017197,
0.007326887454837561,
0.008579750545322895,
0.08545346558094025,
0.014937319792807102,
0.02573319710791111,
0.029498644173145294,
0.0838404968380928,
-0.027916647493839264,
-0.07217852026224136,
-0.014542805962264538,
0.06434706598520279,
-0.019667834043502808,
0.0007027641986496747,
-0.010382278822362423,
0.00521991727873683,
-0.026391495019197464,
-0.013743753544986248,
0.051577840000391006,
0.009155599400401115,
-0.00015255541075021029,
-0.018380818888545036,
-0.05718335881829262,
0.004092440474778414,
0.01718224212527275,
-0.008739398792386055,
-0.03154771775007248,
-0.01628507860004902,
-0.0009321002289652824,
-0.0021475940011441708,
0.01315859891474247,
-0.010295970365405083,
0.07883977144956589,
0.0031662164255976677,
-0.006803690921515226,
0.05123724043369293,
0.018055954948067665,
0.04844895377755165,
-0.04614203795790672,
0.021177906543016434,
0.014995865523815155,
0.025929339230060577,
-0.03831489011645317,
0.04986346513032913,
0.010179412551224232,
-0.003986605443060398,
-0.009260610677301884,
0.02331359311938286,
-0.035161443054676056,
0.0038256742991507053,
-0.050253160297870636,
-0.039324864745140076,
0.08075889199972153,
-0.05262156203389168,
-0.01866253837943077,
0.0027837897650897503,
0.07438234984874725,
0.039485204964876175,
0.03650902956724167,
0.0282346922904253,
-0.07458127290010452,
0.056153733283281326,
-0.016780192032456398,
0.0689275786280632,
0.011947160586714745,
-0.007314370479434729,
0.10237415879964828,
0.04775915667414665,
0.02799367904663086,
0.04525038227438927,
-0.08199671655893326,
-0.06819070875644684,
-0.04861985519528389,
-0.009644199162721634,
0.050244130194187164,
-0.03465737774968147,
-0.014917699620127678,
0.05339950695633888,
0.018584411591291428,
0.041443802416324615,
-0.008887245319783688,
-0.007310694083571434,
0.020599110051989555,
-0.030413957312703133,
-0.03469301760196686,
0.04470156878232956,
0.03883075341582298,
-0.02367188222706318,
-0.007607067935168743,
0.05325034633278847,
0.0004600639222189784,
-0.009221436455845833,
0.022774647921323776,
-0.02868533879518509,
0.024316567927598953,
0.008474686183035374,
0.0359601266682148,
-0.010979419574141502,
0.05531659722328186,
-0.08080539107322693,
-0.014790439046919346,
-0.007647061720490456,
-0.008660418912768364,
-0.038387566804885864,
0.018224721774458885,
0.13483260571956635,
0.06238966062664986,
-0.0066839540377259254,
-0.04623519629240036,
-0.012160726822912693,
-0.01636097952723503,
-0.07082276791334152,
0.011459123343229294,
-0.01270812377333641,
-0.03769717365503311,
0.012089370749890804,
-0.0463661290705204,
-0.03458956256508827,
0.02132268436253071,
-0.015444562770426273,
-0.019984055310487747,
0.0659092515707016,
-0.007178786210715771,
0.04056135192513466,
-0.005688366014510393,
-0.0355420745909214,
0.002993481932207942,
-0.01942489668726921,
-0.0544881671667099,
0.00572076253592968,
0.06981141120195389,
-0.0026580917183309793,
0.04105008766055107,
-0.042015913873910904,
-0.03849661722779274,
-0.013322816230356693,
-0.064736008644104,
0.022897101938724518,
0.06630419194698334,
0.021941538900136948,
-0.011191533878445625,
0.046883441507816315,
-0.03642069175839424,
-0.02195698395371437,
-0.03997699171304703,
-0.031943950802087784,
-0.020295944064855576,
-0.011360639706254005,
0.023302912712097168,
0.013874711468815804,
0.005717348773032427,
0.05491596832871437,
-0.018184714019298553,
-0.00571125652641058,
-0.01638771966099739,
0.027384735643863678,
0.053966958075761795,
-0.027924876660108566,
-0.01942889578640461,
-0.02682596631348133,
-0.008200512267649174,
0.030417637899518013,
-0.07506217062473297,
-0.046799495816230774,
-0.0037219026125967503,
-0.05543188750743866,
0.02129274792969227,
-0.04785037785768509,
-0.07045990973711014,
-0.025756457820534706,
-0.006577647756785154,
0.034385520964860916,
-0.00901403371244669,
0.01282704621553421,
0.032887715846300125,
-0.00924502033740282,
0.028349148109555244,
0.011466074734926224,
0.027752390131354332,
0.022848444059491158,
0.04305011034011841,
0.02343865856528282,
0.06027745082974434,
-0.004499952308833599,
-0.008794525638222694,
-0.06259027868509293,
-0.011132106184959412,
-0.022361163049936295,
-0.2666609585285187,
0.032372526824474335,
-0.017945220693945885,
-0.006892852485179901,
0.04373393580317497,
-0.032097335904836655,
0.020826581865549088,
-0.04633183777332306,
-0.037936266511678696,
-0.01445971429347992,
-0.026992058381438255,
-0.013392935506999493,
0.00874972902238369,
0.026376159861683846,
-0.01802927628159523,
-0.0005702742491848767,
0.003126366063952446,
-0.026755431666970253,
-0.00777101656422019,
0.05472370237112045,
0.021421633660793304,
-0.060625869780778885,
-0.007593149319291115,
0.05416690558195114,
0.014878100715577602,
0.048933953046798706,
-0.048855654895305634,
0.02955508790910244,
-0.03314358741044998,
-0.06525751948356628,
0.007427008356899023,
-0.02357582002878189,
0.01576923206448555,
-0.001887129619717598,
0.007013955153524876,
-0.024513399228453636,
0.035700127482414246,
-0.007703244220465422,
0.0013820985332131386,
0.024292903020977974,
-0.027415305376052856,
-0.04161202907562256,
0.02261698618531227,
-0.007690930739045143,
0.07740488648414612,
0.004979126155376434,
-0.049919746816158295,
-0.009297296404838562,
-0.01582406274974346,
0.06707727164030075,
-0.018609514459967613,
-0.02483205497264862,
-0.0024704127572476864,
0.06334912776947021,
0.0079988744109869,
0.003755150130018592,
-0.01522053498774767,
0.0035926015116274357,
-0.035341426730155945,
-0.04108626767992973,
-0.027636878192424774,
-0.05575864762067795,
-0.023947464302182198,
-0.06026533618569374,
-0.011086178943514824,
-0.055711258202791214,
-0.05351971089839935,
-0.014354619197547436,
0.0636446550488472,
0.0469624362885952,
-0.03266959264874458,
0.0020872093737125397,
0.0061114877462387085,
-0.10335080325603485,
0.020753920078277588,
-0.046668197959661484,
-0.04187088459730148,
-0.009338623844087124,
-0.006030303426086903,
0.03873245418071747,
-0.04120703414082527,
-0.05552488565444946,
0.023628197610378265,
0.029836876317858696,
-0.021632911637425423,
-0.04793107882142067,
0.05152944102883339,
-0.008183751255273819,
-0.015559493564069271,
-0.017828810960054398,
0.06919999420642853,
0.013918474316596985,
-0.052407290786504745,
0.007828678004443645,
-0.03280359134078026,
0.023261837661266327,
0.019697407260537148,
0.002490526530891657,
0.0367315448820591,
0.019397256895899773,
0.014598554000258446,
-0.07795149832963943,
0.019270140677690506,
-0.0612323023378849,
0.011237281374633312,
0.015439886599779129,
-0.032465238124132156,
0.011702784337103367,
0.03817329183220863,
0.013125954195857048,
-0.011774029582738876,
-0.017743593081831932,
0.012870569713413715,
-0.025336872786283493,
-0.051668472588062286,
-0.008191130124032497,
0.02187245339155197,
-0.017442064359784126,
0.004475720692425966,
-0.02334265038371086,
-0.017896955832839012,
0.02610660530626774,
0.021557167172431946,
0.012063956819474697,
-0.03767495974898338,
-0.018838677555322647,
0.001977510517463088,
0.008953896351158619,
-0.00004456049282453023,
-0.00021086168999318033,
0.026225337758660316,
0.01583291031420231,
0.007581344339996576,
-0.020036187022924423,
0.03921850770711899,
0.0018383987480774522,
-0.024682316929101944,
-0.0071095433086156845,
-0.0031190335284918547,
0.007993429899215698,
0.012878715060651302,
0.003683375893160701,
0.007362121716141701,
0.005419300869107246,
0.040282804518938065,
0.015047052875161171,
0.056326933205127716,
-0.03844514116644859,
0.012155657634139061,
0.043771322816610336,
0.026270564645528793,
-0.036886464804410934,
0.017256399616599083,
-0.008409815840423107,
-0.011780998669564724,
0.009588155895471573,
0.033429063856601715,
0.0002483833231963217,
-0.006848650053143501,
-0.027457917109131813,
0.03302275016903877,
-0.052044954150915146,
-0.014922400936484337,
-0.01807909458875656,
-0.0002371172304265201,
0.02171550877392292,
0.009462021291255951,
0.005308693740516901,
-0.0029442408122122288,
0.0012232826557010412,
-0.0008239677408710122,
0.07421284168958664,
-0.011817306280136108,
0.005366702564060688,
0.014225652441382408,
-0.006959873717278242,
0.0140646081417799,
0.04274183139204979,
0.009151468984782696,
0.006153563503175974,
0.016252977773547173,
-0.016231287270784378,
0.006100465543568134,
0.019595656543970108,
0.05114816874265671,
0.00526281027123332,
-0.012095049023628235,
-0.007454685866832733,
-0.045172642916440964,
-0.04521298408508301,
-0.0335000678896904,
0.007087601814419031,
-0.03535468131303787,
0.004654446616768837,
-0.03381872549653053,
-0.053957950323820114,
-0.02469411864876747,
0.05251101031899452,
-0.005923860240727663,
0.025027304887771606,
-0.027864528819918633,
0.020826632156968117,
-0.019335009157657623,
0.003596346126869321,
-0.0024052124936133623,
-0.04628906399011612,
0.006053947377949953,
-0.025571171194314957,
-0.011494758538901806,
0.0017906358698382974,
0.025805147364735603,
-0.04348810389637947,
-0.01030078437179327,
-0.010031483136117458,
-0.0004760587471537292,
0.01700311154127121,
-0.03559616580605507,
-0.01862235739827156,
0.005360891576856375,
-0.02315097115933895,
0.01915811002254486,
-0.013860710896551609,
0.023098068311810493,
0.026379169896245003,
-0.0013124030083417892,
0.03750059753656387,
-0.012481635436415672,
-0.007516959216445684,
0.027313964441418648,
0.01629122905433178,
0.02966185472905636,
-0.012537251226603985,
0.06121234595775604,
0.04265916347503662,
0.015884025022387505,
-0.02611108496785164,
-0.07240402698516846,
-0.025578200817108154,
-0.041421689093112946,
0.022426055744290352,
0.01975313387811184,
-0.0134568577632308,
-0.01660791039466858,
0.01993471197783947,
-0.03183026611804962,
0.01863931678235531,
-0.00804758071899414,
-0.03644757717847824,
-0.009479207918047905,
0.07378161698579788,
0.013509798794984818,
0.04797760024666786,
-0.018641319125890732,
-0.04185039922595024,
0.07150793075561523,
-0.033260904252529144,
-0.029062941670417786,
-0.012643774971365929,
-0.039170894771814346,
0.030977679416537285,
0.025616727769374847,
0.036179494112730026,
-0.027194272726774216,
0.022624041885137558,
0.02742002159357071,
-0.004410055931657553,
0.055711958557367325,
0.01640099287033081,
0.021434735506772995,
-0.027399683371186256,
-0.011681433767080307,
-0.08509302884340286,
0.02015550062060356,
0.035526011139154434,
-0.004348574206233025,
-0.039003465324640274,
-0.011884104460477829,
-0.03518277034163475,
-0.0027822707779705524,
-0.04058411344885826,
-0.00874612107872963,
0.01615402288734913,
0.020885761827230453,
-0.0071279252879321575,
0.02688099443912506,
-0.0630970224738121,
0.03648010641336441,
0.019155297428369522,
-0.03653961420059204,
-0.03163190558552742,
-0.033820632845163345,
0.0694727823138237,
0.0015412888024002314,
0.021291062235832214,
-0.011863209307193756,
0.0005125394091010094,
0.060143887996673584,
0.02915683574974537,
0.012771623209118843,
-0.005689976736903191,
-0.03324912488460541,
0.030106807127594948,
0.021834297105669975,
-0.019901614636182785,
0.013789891265332699,
0.012244979850947857,
-0.002064212691038847,
-0.05579150468111038,
0.021029343828558922,
0.012737428769469261,
0.015897901728749275,
-0.02279980294406414,
0.05292939767241478,
0.0077373250387609005,
-0.0038871061988174915,
-0.045961856842041016,
0.006969209294766188,
-0.04586615785956383,
-0.025912750512361526,
-0.027375048026442528,
0.008973044343292713,
-0.04135376960039139,
0.06704412400722504,
-0.008975616656243801,
-0.013969000428915024,
0.07443166524171829,
-0.03606047481298447,
0.01301656849682331,
0.007862426340579987,
0.07042940706014633,
0.07168493419885635,
0.07124406844377518,
0.041794657707214355,
0.027901673689484596,
-0.049959249794483185,
-0.042532432824373245,
0.02894432097673416,
-0.016363993287086487,
-0.007824012078344822,
-0.00434589060023427,
0.0016233900096267462,
0.10007136315107346,
-0.031826626509428024,
0.04942450299859047,
-0.007367241661995649,
0.009769260883331299,
-0.036535050719976425,
-0.002784918062388897,
-0.01178292278200388,
0.04105151444673538,
-0.006003985181450844,
0.019809646531939507,
-0.013174273073673248,
-0.011064945720136166,
0.05563532933592796,
0.009821484796702862,
-0.006171360146254301,
0.021848615258932114,
0.012798761017620564,
0.023109985515475273,
0.02432851679623127,
0.04955063387751579,
0.07216720283031464,
-0.03688427060842514,
-0.020579911768436432,
0.005350376479327679,
0.03703604266047478,
-0.009682907722890377,
0.03919399529695511,
-0.012112950906157494,
-0.005154100246727467,
-0.008754073642194271,
-0.016103724017739296,
-0.04074164479970932,
0.005851127207279205,
-0.03574627265334129,
0.030963605269789696,
-0.026555031538009644,
-0.02284209430217743,
0.028685759752988815,
0.011874656192958355,
-0.04144711792469025,
-0.04990842193365097,
-0.07667449861764908,
-0.03589308634400368,
-0.06259472668170929,
-0.0616445429623127,
0.01427591871470213,
-0.020095661282539368,
-0.05462771654129028,
-0.015059573575854301,
-0.04783592373132706,
-0.04588047042489052,
-0.0002505412558093667,
-0.03133455663919449,
-0.05778416991233826,
-0.0017387113766744733,
0.016873203217983246,
0.009499123319983482,
0.001087624579668045,
0.04892859235405922,
-0.014194181188941002,
0.006209524814039469,
-0.0011733449064195156,
-0.020641040056943893,
0.05572185665369034,
0.01963682845234871,
0.00195364304818213,
-0.08756229281425476,
0.01809956133365631,
0.03371775150299072,
0.012987172231078148,
-0.06851627677679062,
0.037777312099933624,
-0.0014665856724604964,
-0.02635919116437435,
0.04581988975405693,
-0.04349491000175476,
0.02173018455505371,
-0.00036927920882590115,
-0.02557501196861267,
-0.0376555472612381,
-0.017435496672987938,
0.039505887776613235,
-0.006232347339391708,
0.07872822880744934,
0.037973422557115555,
0.023082902655005455,
-0.022964030504226685,
-0.019867990165948868,
-0.01825929619371891,
0.038812700659036636,
-0.052300576120615005,
-0.004583473317325115,
-0.05461006984114647,
-0.07272521406412125,
0.01323987077921629,
0.024883370846509933,
-0.03822941333055496,
-0.049663297832012177,
0.012953742407262325,
0.0002515665255486965,
-0.024941224604845047,
0.04438703507184982,
-0.036620792001485825,
0.0024748165160417557,
-0.020251771435141563,
-0.036589499562978745,
-0.0014557891990989447,
0.027469312772154808,
0.02154996246099472,
0.012912009842693806,
0.023853465914726257,
-0.01154300756752491,
0.030897105112671852,
-0.006140847224742174,
0.008487305603921413,
0.03687402233481407,
0.0003859103308059275,
0.051292892545461655
] | [
-0.09099512547254562,
-0.013724591583013535,
-0.009543958120048046,
-0.036881692707538605,
0.010057740844786167,
-0.08807077258825302,
-0.021889759227633476,
0.018502695485949516,
0.018615739420056343,
0.01695544831454754,
0.004435297101736069,
-0.0841500386595726,
0.015883440151810646,
-0.03817128390073776,
0.06327158212661743,
-0.019051063805818558,
-0.01888963393867016,
-0.0405757799744606,
-0.0420643575489521,
0.04038472846150398,
0.023291965946555138,
-0.012669118121266365,
-0.023358087986707687,
-0.031126733869314194,
-0.003791430266574025,
0.0349714569747448,
0.011100909672677517,
-0.03362052142620087,
0.008533913642168045,
-0.20968188345432281,
0.02630733884871006,
0.01574961096048355,
0.0203207116574049,
-0.009630762040615082,
0.009861805476248264,
0.04364103451371193,
0.015312244184315205,
-0.013968292623758316,
-0.019934283569455147,
0.04876304790377617,
0.02936709113419056,
0.0046992432326078415,
-0.062023431062698364,
-0.02227804623544216,
0.037251342087984085,
-0.009473237209022045,
-0.007280540652573109,
-0.03679712116718292,
0.0019806723576039076,
0.04472935199737549,
-0.04669204726815224,
0.023555109277367592,
-0.010429349727928638,
-0.016299935057759285,
0.01601243205368519,
0.001485523534938693,
0.0861353725194931,
0.049651023000478745,
-0.003264486091211438,
-0.007931835018098354,
-0.0008681698818691075,
-0.034706275910139084,
-0.13153140246868134,
0.12659086287021637,
0.020559661090373993,
0.0576285719871521,
0.014150316826999187,
-0.029327211901545525,
-0.02523997239768505,
0.08964492380619049,
-0.037221286445856094,
-0.033664632588624954,
-0.08381952345371246,
0.09575384110212326,
0.010511907748878002,
-0.013089491054415703,
-0.0009569608955644071,
-0.01718473806977272,
0.07205864787101746,
-0.003872896544635296,
-0.03858841583132744,
-0.019622579216957092,
-0.03307598456740379,
-0.020437773317098618,
-0.013787543401122093,
0.0018382230773568153,
-0.04571094736456871,
0.04600052908062935,
0.013960395939648151,
0.0020659388974308968,
0.006189786829054356,
-0.05716520547866821,
0.041893623769283295,
0.03767170384526253,
-0.06304410099983215,
-0.017115997150540352,
0.0034223480615764856,
0.030620332807302475,
-0.039541516453027725,
0.4194633960723877,
-0.041269246488809586,
-0.026277434080839157,
0.034522537142038345,
-0.0045416043139994144,
0.06701751053333282,
0.024562306702136993,
0.001984609290957451,
-0.027728570625185966,
0.009822801686823368,
-0.07093349099159241,
0.007785429712384939,
-0.0047903587110340595,
0.043647754937410355,
-0.024621283635497093,
0.021877890452742577,
0.05158468335866928,
0.02306833490729332,
-0.00010116807243321091,
-0.0204449612647295,
0.027666330337524414,
-0.042041879147291183,
-0.009448876604437828,
-0.03434290364384651,
0.03191602975130081,
0.00046463392209261656,
-0.003240795573219657,
0.028801826760172844,
0.07832365483045578,
0.02328038029372692,
0.03862468898296356,
0.04810674861073494,
-0.05808984860777855,
-0.044671934098005295,
0.012064182199537754,
-0.023863153532147408,
0.03444459289312363,
0.008354832418262959,
-0.014111007563769817,
-0.015341565944254398,
0.019572867080569267,
-0.009181879460811615,
-0.11445019394159317,
-0.015657421201467514,
0.03302904963493347,
0.014363258145749569,
0.08228114992380142,
-0.0647691935300827,
-0.044489938765764236,
-0.023936722427606583,
-0.023595105856657028,
-0.008833340369164944,
0.030909918248653412,
-0.004880471620708704,
-0.05200236290693283,
0.007692485116422176,
0.018848426640033722,
0.09602328389883041,
-0.028199881315231323,
-0.0441710539162159,
-0.022361043840646744,
-0.011522172950208187,
-0.06424924731254578,
-0.05849539116024971,
0.03525456786155701,
0.04138118401169777,
-0.07537062466144562,
-0.033192310482263565,
0.020235547795891762,
0.005390881095081568,
-0.06363462656736374,
0.04302593320608139,
-0.035329900681972504,
-0.008814054541289806,
-0.0056537846103310585,
0.024558695033192635,
-0.023280030116438866,
0.008659731596708298,
-0.007828447967767715,
0.05238104984164238,
0.025946732610464096,
-0.004756416194140911,
0.01330119464546442,
-0.029896993190050125,
-0.001503709121607244,
-0.028247149661183357,
-0.08232636004686356,
-0.04921415075659752,
0.026142308488488197,
0.023795083165168762,
-0.027749385684728622,
-0.01585528627038002,
-0.026528097689151764,
-0.06937502324581146,
0.012969821691513062,
-0.01769537292420864,
0.018015511333942413,
-0.0007352737011387944,
-0.002765200799331069,
-0.023701472207903862,
-0.026284998282790184,
0.07291503250598907,
0.04341926798224449,
-0.0022916861344128847,
-0.015754932537674904,
-0.02405393496155739,
0.02157549187541008,
0.07581383734941483,
-0.04495817422866821,
0.04484222084283829,
0.03233155608177185,
-0.023683588951826096,
-0.01576107367873192,
0.014125514775514603,
0.03680964931845665,
0.00540725514292717,
-0.07890649884939194,
-0.006479404401034117,
-0.006327671464532614,
0.032603487372398376,
0.01216919906437397,
-0.052344031631946564,
-0.03541339933872223,
-0.05725010484457016,
-0.3343780040740967,
-0.0165659561753273,
0.019424771890044212,
-0.011842336505651474,
0.030216317623853683,
-0.07979553937911987,
-0.010838029906153679,
-0.0045592389069497585,
0.018178757280111313,
0.030963780358433723,
0.04590858146548271,
-0.015529884025454521,
0.02275552600622177,
-0.07423140853643417,
0.009175158105790615,
0.04619014263153076,
0.012983777560293674,
-0.032117657363414764,
0.018400583416223526,
0.037716496735811234,
-0.01388656347990036,
-0.015576031990349293,
-0.05093378573656082,
-0.03207901865243912,
0.004333478398621082,
-0.03336811438202858,
0.13169057667255402,
0.04977985471487045,
0.1043742373585701,
-0.03442902863025665,
0.025442862883210182,
0.012168847024440765,
0.027985285967588425,
-0.08244214951992035,
-0.007713413797318935,
-0.003942859824746847,
-0.013395143672823906,
0.00278874603100121,
0.039502352476119995,
-0.0030771438032388687,
-0.009566869586706161,
-0.010996702127158642,
-0.0434650182723999,
-0.009115991182625294,
0.0031052022241055965,
0.016381440684199333,
-0.01246549841016531,
-0.053025614470243454,
-0.017344707623124123,
0.11029894649982452,
0.02835935726761818,
0.034140635281801224,
0.014178987592458725,
0.03981811925768852,
0.007535446435213089,
-0.008798228576779366,
-0.047181595116853714,
-0.01695580594241619,
0.021773207932710648,
-0.03640330582857132,
0.03319582715630531,
0.025294078513979912,
0.04950782284140587,
-0.03834669664502144,
-0.028452036902308464,
0.022109515964984894,
0.011406958103179932,
-0.01431287545710802,
0.04833944886922836,
0.008082851767539978,
-0.029635103419423103,
0.1088830754160881,
-0.012901920825242996,
-0.01699965074658394,
-0.038046739995479584,
0.03860355168581009,
-0.008333544246852398,
0.03963902220129967,
0.01124565675854683,
-0.054489485919475555,
0.052999258041381836,
-0.001444208319298923,
0.06386350840330124,
-0.040222521871328354,
0.01567256636917591,
0.023636594414711,
-0.024213653057813644,
0.010055845603346825,
0.07345904409885406,
0.010035427287220955,
-0.022383905947208405,
-0.0032131944317370653,
-0.0015056217089295387,
-0.059321217238903046,
0.04518764093518257,
-0.027156870812177658,
-0.2662992775440216,
0.014033430255949497,
0.05752534046769142,
0.06683821231126785,
0.003454757621511817,
0.02927866019308567,
0.024785621091723442,
-0.08781678229570389,
-0.05976257100701332,
0.03766888752579689,
-0.017593776807188988,
0.01739594154059887,
0.003009463893249631,
-0.025683794170618057,
0.02030325122177601,
-0.016568442806601524,
0.05609012022614479,
-0.010490515269339085,
0.00954927783459425,
0.042009733617305756,
0.023541007190942764,
-0.02472829632461071,
0.14643286168575287,
-0.015335516072809696,
0.018619105219841003,
-0.012742487713694572,
-0.006363559048622847,
0.04274945333600044,
0.07907233387231827,
0.021523049101233482,
-0.001661570742726326,
0.019962765276432037,
0.030042529106140137,
-0.003304529469460249,
0.027651667594909668,
-0.053737200796604156,
-0.031198062002658844,
0.0272236131131649,
0.04104934260249138,
-0.02246713452041149,
-0.024914352223277092,
0.056550439447164536,
-0.03581840917468071,
0.007207256276160479,
0.043325766921043396,
0.03142419457435608,
0.013005439192056656,
0.01147006917744875,
-0.023598765954375267,
-0.002970428904518485,
-0.017754048109054565,
0.01087328139692545,
-0.011966926977038383,
0.011946584098041058,
0.014346782118082047,
0.05474759265780449,
-0.026859762147068977,
-0.03941800072789192,
0.03774617239832878,
0.02171231433749199,
-0.03399217873811722,
-0.04876364767551422,
0.10273867845535278,
0.039425235241651535,
0.024983078241348267
] | [
-0.015995429828763008,
0.03114120475947857,
-0.01217909250408411,
0.010137698613107204,
-0.03574454411864281,
-0.022762324661016464,
-0.02431664988398552,
0.02079946920275688,
0.000017070477042580023,
-0.0727497860789299,
-0.007392852101475,
0.013963024131953716,
0.01769864931702614,
0.013503877446055412,
-0.00780075928196311,
-0.035056713968515396,
-0.009646209888160229,
-0.004793266765773296,
0.003187478519976139,
-0.04601180553436279,
-0.018344109877943993,
0.04048992693424225,
0.021071113646030426,
-0.0024541744496673346,
0.007374930661171675,
0.010794730857014656,
-0.03526415675878525,
0.016369635239243507,
0.03488937020301819,
-0.12632158398628235,
-0.012419002130627632,
-0.021220464259386063,
0.02937901020050049,
-0.033610355108976364,
0.033106375485658646,
0.02134341560304165,
0.00710085965692997,
-0.02694007381796837,
0.015428610146045685,
0.005970470607280731,
-0.008965722285211086,
-0.01850479282438755,
0.011653279885649681,
0.04874217510223389,
-0.0022466916125267744,
0.0405617356300354,
-0.030642913654446602,
-0.006044353358447552,
-0.005909543950110674,
0.004518580622971058,
-0.011082573793828487,
0.029856190085411072,
-0.001259409822523594,
0.01933727227151394,
0.02615957148373127,
-0.0197558905929327,
0.01748037338256836,
-0.01950557343661785,
0.011328148655593395,
-0.06352848559617996,
-0.0009928607614710927,
-0.0019208061276003718,
-0.014112274162471294,
-0.01741885393857956,
-0.01866988278925419,
-0.027145396918058395,
-0.03463438153266907,
0.013964966870844364,
-0.0003709275333676487,
0.013938788324594498,
-0.03382527455687523,
-0.012556164525449276,
-0.0349474735558033,
0.025215649977326393,
0.013669858686625957,
0.012623846530914307,
0.033902548253536224,
-0.04088742285966873,
0.009550642222166061,
-0.007649417035281658,
-0.011457656510174274,
-0.01606135442852974,
0.036537256091833115,
0.014912345446646214,
0.0036405723076313734,
-0.03752705827355385,
-0.003004840575158596,
0.0020611656364053488,
-0.012134470976889133,
-0.00015132011321838945,
0.012347426265478134,
-0.02027462236583233,
0.017331790179014206,
-0.012035910040140152,
-0.07975542545318604,
-0.0002502768184058368,
0.0015360686229541898,
-0.010043303482234478,
-0.039941612631082535,
0.8464202284812927,
-0.021143225952982903,
-0.005984123330563307,
0.004002398811280727,
0.0024828515015542507,
0.010203137993812561,
0.01641574129462242,
0.013290362432599068,
-0.03108619712293148,
0.03959418460726738,
-0.06342913955450058,
0.028611047193408012,
-0.0403728224337101,
0.008110358379781246,
-0.0012680625077337027,
0.026230229064822197,
0.004397067707031965,
0.011598721146583557,
0.03103809244930744,
-0.0013348329812288284,
-0.004895303398370743,
0.003988401498645544,
-0.01710132695734501,
-0.01761259138584137,
0.03772988170385361,
0.013295856304466724,
-0.1674860119819641,
0.0166691355407238,
-8.242856588133739e-33,
0.04918690398335457,
0.010913503356277943,
-0.003655030857771635,
-0.022015752270817757,
-0.005234274081885815,
0.01421611849218607,
0.0010191011242568493,
0.01920561119914055,
0.011146585457026958,
-0.03510884940624237,
0.028788244351744652,
0.0027284722309559584,
0.012627998366951942,
0.007577340584248304,
0.06226276606321335,
-0.022156544029712677,
0.039073918014764786,
0.02317359670996666,
-0.010627476498484612,
0.005259508732706308,
0.023634688928723335,
0.02877604030072689,
0.03847730904817581,
-0.008933058939874172,
0.007233703043311834,
0.0008150417124852538,
-0.02878071926534176,
-0.014749046415090561,
0.014161858707666397,
-0.04769701883196831,
-0.07285761833190918,
0.019231369718909264,
-0.04809011518955231,
-0.00934637151658535,
0.004033674485981464,
-0.047750335186719894,
-0.007370131555944681,
0.027801336720585823,
-0.001266712904907763,
-0.012542741373181343,
-0.032125528901815414,
0.018801067024469376,
-0.02674337662756443,
-0.03392304852604866,
0.015727438032627106,
-0.04813658818602562,
0.00685984268784523,
0.021571271121501923,
0.006275763735175133,
0.0003750248288270086,
0.05014796927571297,
0.027116790413856506,
-0.014920457266271114,
0.013445823453366756,
-0.015456698834896088,
-0.019249508157372475,
0.03133966401219368,
0.0058064330369234085,
-0.007634475361555815,
0.002172693610191345,
0.024767128750681877,
0.00683776056393981,
0.010305788367986679,
0.039194948971271515,
0.029790224507451057,
-0.008224439807236195,
0.04333026707172394,
-0.00011908923625014722,
-0.0008602184825576842,
0.016445409506559372,
-0.06198151037096977,
0.01073156762868166,
-0.01433674618601799,
0.009240138344466686,
-0.019856514409184456,
-0.02753625065088272,
-0.006889557931572199,
-0.012237434275448322,
0.022932350635528564,
0.037760671228170395,
0.014851074665784836,
-0.00848175585269928,
-0.02830997295677662,
-0.03485647588968277,
-0.032325953245162964,
0.00818235706537962,
0.05547279119491577,
-0.0025036975275725126,
-0.011233961209654808,
0.004636017140001059,
0.000765472068451345,
-0.044121164828538895,
0.0065831937827169895,
-0.0006173826986923814,
0.021872490644454956,
7.745311706416913e-33,
0.012636248953640461,
-0.008267894387245178,
-0.018343353644013405,
-0.0006807726458646357,
-0.013319571502506733,
-0.014993828721344471,
0.056520696729421616,
0.0334702767431736,
-0.034401409327983856,
0.039104148745536804,
0.0015954970149323344,
0.0031489061657339334,
0.013667663559317589,
0.03055553510785103,
0.05328744277358055,
0.0232003852725029,
-0.021163366734981537,
0.03320487216114998,
0.02825789898633957,
-0.027369385585188866,
0.01088811457157135,
0.008623093366622925,
0.003103286027908325,
0.032491303980350494,
0.012723300606012344,
0.0322105772793293,
-0.0040254974737763405,
-0.011320861987769604,
0.004509694408625364,
-0.008057569153606892,
-0.0021385452710092068,
0.015125568956136703,
-0.014437072910368443,
-0.008734024129807949,
-0.03827325254678726,
0.03815692663192749,
0.01835421472787857,
-0.0017121268901973963,
0.044259700924158096,
-0.012053885497152805,
0.06143295392394066,
0.00018920963339041919,
0.007471826393157244,
0.040502168238162994,
0.003485727356746793,
0.025564000010490417,
-0.022429509088397026,
0.012225421145558357,
-0.02497030794620514,
0.007182719651609659,
-0.007511126808822155,
0.03814935311675072,
0.0033461162820458412,
-0.0012032241793349385,
-0.00802826788276434,
-0.02889186516404152,
-0.01622617244720459,
0.0038866184186190367,
-0.030382473021745682,
-0.007971836254000664,
-0.029714709147810936,
0.02000628598034382,
0.0032086072023957968,
-0.008282041177153587,
-0.03737730532884598,
0.0018398681422695518,
-0.04944886267185211,
0.012179004028439522,
0.006340515334159136,
-0.06292671710252762,
-0.002073574811220169,
-0.05172000080347061,
-0.01629309169948101,
0.035265516489744186,
0.0016396194696426392,
0.02016187645494938,
-0.03282374143600464,
-0.01326657086610794,
0.008053763769567013,
0.025960957631468773,
0.012439225800335407,
-0.005164021626114845,
0.014281201176345348,
0.030892327427864075,
-0.014089803211390972,
0.01308261975646019,
-0.013522529974579811,
0.008297808468341827,
0.042407017201185226,
-0.011828776448965073,
0.009725740179419518,
-0.02804076112806797,
-0.01836865022778511,
0.005608779843896627,
0.030255204066634178,
-1.3276566512843146e-8,
-0.03168053552508354,
-0.00618598610162735,
-0.012266869656741619,
0.024724803864955902,
0.003454912453889847,
0.006635729689151049,
-0.04457344859838486,
-0.004526664037257433,
0.004318052902817726,
-0.013287303037941456,
0.019802913069725037,
-0.02053551748394966,
-0.017490753903985023,
-0.005438139196485281,
0.007802264764904976,
0.01978989690542221,
0.00014003472460899502,
-0.017184194177389145,
0.03803267702460289,
-0.009360533207654953,
0.005381717812269926,
0.058495402336120605,
-0.011870344169437885,
-0.0131760872900486,
-0.03462200239300728,
0.01688755489885807,
0.05815853923559189,
-0.05730303004384041,
-0.006371296476572752,
-0.022163700312376022,
0.06116247549653053,
-0.031280096620321274,
-0.04404168576002121,
-0.008563565090298653,
-0.008028236217796803,
-0.027811644598841667,
0.01286514475941658,
-0.01776133105158806,
-0.0068299490958452225,
0.03901974484324455,
0.008833542466163635,
-0.021104367449879646,
-0.04046490043401718,
-0.028318971395492554,
-0.03679335117340088,
-0.012681032530963421,
0.0004867785901296884,
-0.001256028306670487,
0.0021622434724122286,
-0.018034817650914192,
0.05572777986526489,
-0.04980190098285675,
-0.004356526769697666,
0.030008818954229355,
0.010036985389888287,
0.013688933104276657,
-0.021017787978053093,
-0.002158976858481765,
-0.030943570658564568,
-0.009307910688221455,
0.02201695367693901,
0.016696246340870857,
-0.019392160698771477,
-0.010714791715145111
] | python-unicodedecodeerror-ascii-codec-cant-decode-byte-0xe2-in-position-0-ordinal-not-in-range128 | https://markhneedham.com/blog/2015/07/15/python-unicodedecodeerror-ascii-codec-cant-decode-byte-0xe2-in-position-0-ordinal-not-in-range128 |
false | 2015-07-12 08:30:40 | R: Filling in missing dates with 0s | [
"r-2"
] | [
"R"
] | I wanted to plot a chart showing the number of blog posts published by month and started with the following code which makes use of http://cran.r-project.org/web/packages/zoo/index.html[zoo's] 'as.yearmon' function to add the appropriate column and grouping:
[source,r]
----
> library(zoo)
> library(dplyr)
> df %>% sample_n(5)
title date
888 R: Converting a named vector to a data frame 2014-10-31 23:47:26
144 Rails: Populating a dropdown list using 'form_for' 2010-08-31 01:22:14
615 Onboarding: Sketch the landscape 2013-02-15 07:36:06
28 Javascript: The 'new' keyword 2010-03-06 15:16:02
1290 Coding Dojo #16: Reading SUnit code 2009-05-28 23:23:19
> posts_by_date = df %>% mutate(year_mon = as.Date(as.yearmon(date))) %>% count(year_mon)
> posts_by_date %>% head(5)
year_mon n
1 2006-08-01 1
2 2006-09-01 4
3 2008-02-01 4
4 2008-07-01 2
5 2008-08-01 38
----
I then plugged the new data frame into ggplot to get the chart:
[source,R]
----
> ggplot(aes(x = year_mon, y = n), data = posts_by_date) + geom_line()
----
image::{{<siteurl>}}/uploads/2015/07/2015-07-12_09-07-47.png[2015 07 12 09 07 47,519]
The problem with this chart is that it's showing there being 4 posts per month for all the dates between September 2006 and February 2008 even though I didn't write anything! It's doing the same thing between February 2008 and July 2008 too.
We can fix that by http://stackoverflow.com/questions/14424565/how-to-fill-date-gaps-in-data-frame[filling in the gaps] with 0s.
First we'll create a vector containing every month in the data range contained by our data frame:
[source,r]
----
> all_dates = seq(as.Date(as.yearmon(min(df$date))), as.Date(as.yearmon(max(df$date))), by="month")
> all_dates
[1] "2006-08-01" "2006-09-01" "2006-10-01" "2006-11-01" "2006-12-01" "2007-01-01" "2007-02-01" "2007-03-01"
[9] "2007-04-01" "2007-05-01" "2007-06-01" "2007-07-01" "2007-08-01" "2007-09-01" "2007-10-01" "2007-11-01"
[17] "2007-12-01" "2008-01-01" "2008-02-01" "2008-03-01" "2008-04-01" "2008-05-01" "2008-06-01" "2008-07-01"
[25] "2008-08-01" "2008-09-01" "2008-10-01" "2008-11-01" "2008-12-01" "2009-01-01" "2009-02-01" "2009-03-01"
[33] "2009-04-01" "2009-05-01" "2009-06-01" "2009-07-01" "2009-08-01" "2009-09-01" "2009-10-01" "2009-11-01"
[41] "2009-12-01" "2010-01-01" "2010-02-01" "2010-03-01" "2010-04-01" "2010-05-01" "2010-06-01" "2010-07-01"
[49] "2010-08-01" "2010-09-01" "2010-10-01" "2010-11-01" "2010-12-01" "2011-01-01" "2011-02-01" "2011-03-01"
[57] "2011-04-01" "2011-05-01" "2011-06-01" "2011-07-01" "2011-08-01" "2011-09-01" "2011-10-01" "2011-11-01"
[65] "2011-12-01" "2012-01-01" "2012-02-01" "2012-03-01" "2012-04-01" "2012-05-01" "2012-06-01" "2012-07-01"
[73] "2012-08-01" "2012-09-01" "2012-10-01" "2012-11-01" "2012-12-01" "2013-01-01" "2013-02-01" "2013-03-01"
[81] "2013-04-01" "2013-05-01" "2013-06-01" "2013-07-01" "2013-08-01" "2013-09-01" "2013-10-01" "2013-11-01"
[89] "2013-12-01" "2014-01-01" "2014-02-01" "2014-03-01" "2014-04-01" "2014-05-01" "2014-06-01" "2014-07-01"
[97] "2014-08-01" "2014-09-01" "2014-10-01" "2014-11-01" "2014-12-01" "2015-01-01" "2015-02-01" "2015-03-01"
[105] "2015-04-01" "2015-05-01" "2015-06-01" "2015-07-01"
----
Now we need to create a data frame containing those dates and merge it with the original:
[source,r]
----
posts_by_date_clean = merge(data.frame(date = all_dates),
posts_by_date,
by.x='date',
by.y='year_mon',
all.x=T,
all.y=T)
> posts_by_date_clean %>% head()
date n
1 2006-08-01 1
2 2006-09-01 4
3 2006-10-01 NA
4 2006-11-01 NA
5 2006-12-01 NA
6 2007-01-01 NA
----
We've still got some 'NA' values in there which won't plot so well. Let's set those to 0 and then try and plot our chart again:
[source,r]
----
> posts_by_date_clean$n[is.na(posts_by_date_clean$n)] = 0
> ggplot(aes(x = date, y = n), data = posts_by_date_clean) + geom_line()
----
image::{{<siteurl>}}/uploads/2015/07/2015-07-12_09-17-10.png[2015 07 12 09 17 10,524]
Much better! | null | null | [
-0.0034632536116987467,
-0.015261868946254253,
0.007078678347170353,
0.03580247238278389,
0.05727532133460045,
0.013092377223074436,
0.03747186437249184,
0.012263384647667408,
-0.004110212437808514,
0.015465673990547657,
-0.0020381167996674776,
-0.0052011641673743725,
-0.054764945060014725,
0.04665654897689819,
-0.03187223896384239,
0.07115791738033295,
0.034980203956365585,
-0.006492131389677525,
0.007134823594242334,
-0.007338317111134529,
0.04793767258524895,
0.015008946880698204,
-0.03752116113901138,
0.01526223961263895,
0.038879916071891785,
-0.05335181578993797,
0.01848337985575199,
-0.0006382685387507081,
-0.03390256315469742,
0.006216546520590782,
0.02631967142224312,
0.03085429221391678,
-0.00476403022184968,
0.010107908397912979,
0.03349407762289047,
-0.023811206221580505,
-0.02026473730802536,
-0.0007738656713627279,
0.024949364364147186,
-0.035395193845033646,
-0.05984888970851898,
0.009645672515034676,
-0.0037869373336434364,
-0.0005423754337243736,
-0.00011742179049178958,
0.002632899209856987,
-0.03146674856543541,
0.031230660155415535,
0.0298448633402586,
0.02074405737221241,
-0.0892205610871315,
0.029133040457963943,
0.02105453424155712,
-0.0454389788210392,
-0.041883423924446106,
0.049482665956020355,
0.021078230813145638,
-0.04092946648597717,
0.002021313179284334,
-0.0342770554125309,
0.041608378291130066,
-0.003026596736162901,
-0.011571971699595451,
0.015025628730654716,
-0.0048972237855196,
-0.03218286857008934,
-0.019913433119654655,
0.04279960319399834,
-0.019530141726136208,
-0.03583986684679985,
-0.022817596793174744,
-0.013431239873170853,
0.0005853996844962239,
-0.016582569107413292,
0.010355541482567787,
-0.022814413532614708,
-0.024894041940569878,
0.058942317962646484,
0.010037465021014214,
0.006799436639994383,
-0.008214800618588924,
0.006205548532307148,
0.031482335180044174,
0.008898308500647545,
0.0012155489530414343,
-0.02216585911810398,
-0.03678123652935028,
-0.052700482308864594,
-0.05035657063126564,
0.06285689771175385,
-0.0036556627601385117,
-0.06922701746225357,
0.03406696021556854,
0.0430469885468483,
0.006931335665285587,
-0.013138164766132832,
-0.003610866842791438,
0.004184761084616184,
0.014662891626358032,
-0.03460483253002167,
-0.08768675476312637,
-0.010273042134940624,
0.07409239560365677,
0.005101705901324749,
-0.060433413833379745,
-0.025437863543629646,
-0.013501753099262714,
-0.027548715472221375,
0.01053693424910307,
0.018300700932741165,
-0.015931399539113045,
0.02467692643404007,
-0.023391911759972572,
0.013164935633540154,
-0.024606727063655853,
0.07443130016326904,
0.03211492672562599,
-0.03457700088620186,
-0.006710915360599756,
-0.011063173413276672,
0.04358146712183952,
-0.0036977652925997972,
-0.023625923320651054,
0.06319671869277954,
-0.01713382638990879,
0.06682591140270233,
-0.003408426186069846,
0.026486998423933983,
-0.03449437767267227,
-0.07170747220516205,
-0.009067759849131107,
0.055869005620479584,
-0.0402468666434288,
-0.005896817892789841,
0.015675758942961693,
-0.030189495533704758,
-0.009413030929863453,
-0.029135247692465782,
0.09501855820417404,
0.043230704963207245,
0.010619062930345535,
-0.041031479835510254,
0.0028081852942705154,
-0.026999710127711296,
0.03720572963356972,
0.03567581623792648,
0.01596810854971409,
-0.07262586802244186,
-0.06095509976148605,
-0.0032714910339564085,
0.03364672511816025,
-0.004021602217108011,
0.04560953006148338,
-0.0010063383961096406,
0.017389537766575813,
0.040932465344667435,
0.012420709244906902,
0.022422228008508682,
-0.009373180568218231,
-0.011137041263282299,
0.044475845992565155,
0.02778460830450058,
0.023339049890637398,
0.05902938172221184,
-0.0077106705866754055,
-0.031018925830721855,
0.026028189808130264,
0.014876616187393665,
-0.04631495475769043,
-0.041742343455553055,
-0.04881861060857773,
-0.04438556358218193,
0.03989525884389877,
-0.005713048856705427,
0.009983506053686142,
0.08528267592191696,
0.07516615092754364,
0.041977059096097946,
0.0408090315759182,
0.012920355424284935,
-0.06651679426431656,
0.06693165749311447,
0.029679277911782265,
0.03354649990797043,
0.030665691941976547,
-0.03974708169698715,
0.07369223237037659,
0.0012311117025092244,
0.037006739526987076,
0.03483964130282402,
-0.07126074284315109,
-0.05514777824282646,
-0.015773970633745193,
-0.02944810502231121,
0.04322680085897446,
-0.04377289488911629,
-0.018757548183202744,
0.06980175524950027,
0.0018511551897972822,
0.013621417805552483,
-0.03417501598596573,
0.018049413338303566,
0.037275828421115875,
-0.01665506511926651,
-0.014256469905376434,
0.007233128417283297,
0.022909102961421013,
-0.01282591000199318,
0.0010273931547999382,
0.00845496729016304,
-0.007987868040800095,
0.044087886810302734,
0.03488212451338768,
-0.01395134162157774,
0.054391585290431976,
0.043090492486953735,
0.10204338282346725,
0.011968783102929592,
0.019839482381939888,
-0.03261953964829445,
0.06324658542871475,
-0.0035931032616645098,
-0.039356909692287445,
-0.06383519619703293,
0.005529504269361496,
0.1453884392976761,
0.06962691992521286,
0.0031353593803942204,
-0.040016546845436096,
-0.0048792618326842785,
-0.02944093570113182,
-0.0037851515226066113,
0.05325878784060478,
0.019041897729039192,
-0.012668146751821041,
0.01715398021042347,
-0.014314482919871807,
-0.017906395718455315,
-0.014932991936802864,
-0.03847433626651764,
0.04918447881937027,
0.06509537994861603,
0.030873939394950867,
0.04575606808066368,
-0.043989814817905426,
0.008675170131027699,
0.0020196011755615473,
-0.008983702398836613,
-0.09728382527828217,
0.0037785302847623825,
0.027089551091194153,
-0.001077074557542801,
0.04888636991381645,
-0.03147347643971443,
-0.038131631910800934,
-0.005956892389804125,
-0.03949106112122536,
0.012400655075907707,
0.05711790546774864,
0.048130232840776443,
-0.0053012920543551445,
0.007085020653903484,
-0.021579397842288017,
-0.010919729247689247,
-0.02568153850734234,
-0.04110158979892731,
-0.06044454500079155,
-0.013047827407717705,
0.00678034033626318,
0.01395977009087801,
0.022132888436317444,
-0.034619640558958054,
0.011761019937694073,
0.03974489867687225,
0.01860908977687359,
-0.021620677784085274,
0.033628758043050766,
-0.015330174006521702,
0.021245891228318214,
-0.017806189134716988,
-0.010712184011936188,
0.03488079831004143,
-0.013472349382936954,
-0.027307208627462387,
-0.023840613663196564,
-0.054213330149650574,
0.053949952125549316,
-0.03525280952453613,
-0.024054531008005142,
0.01912228949368,
0.021898992359638214,
0.0539189837872982,
0.041191160678863525,
0.03637057542800903,
0.03543374687433243,
0.00971783883869648,
0.02701902575790882,
-0.013637644238770008,
-0.015303613618016243,
0.060346510261297226,
0.0020159378182142973,
-0.00484667019918561,
0.08253717422485352,
-0.03109118714928627,
-0.014138223603367805,
-0.029507098719477654,
0.01293714065104723,
-0.025239525362849236,
-0.25219613313674927,
0.02104305848479271,
-0.03705668821930885,
-0.03518430143594742,
-0.0018288972787559032,
-0.05140624940395355,
0.04638954997062683,
-0.043941669166088104,
-0.020890964195132256,
-0.008381430990993977,
0.031440459191799164,
-0.04071636125445366,
-0.05322694778442383,
0.06398852169513702,
0.03686956688761711,
0.0026615771930664778,
0.008911837823688984,
-0.03829970955848694,
-0.009553832933306694,
0.046288952231407166,
0.038066599518060684,
-0.0399448499083519,
-0.015805238857865334,
0.06358234584331512,
0.027941996231675148,
0.071297787129879,
-0.055314455181360245,
0.016304370015859604,
-0.0466899499297142,
-0.03840893507003784,
0.025814583525061607,
-0.037227287888526917,
0.03877456486225128,
-0.011492651887238026,
-0.011443966999650002,
-0.02903047576546669,
0.030393211171030998,
0.000650262285489589,
0.03227057680487633,
0.02021183632314205,
-0.03645031899213791,
-0.04122988507151604,
0.009908456355333328,
-0.007322740741074085,
0.05863383412361145,
0.01137272734194994,
-0.04943211376667023,
0.043235894292593,
-0.033772062510252,
0.06640651077032089,
-0.002127258339896798,
0.011135043576359749,
-0.018180519342422485,
-0.017058106139302254,
-0.049125004559755325,
-0.02684595063328743,
-0.04597487673163414,
0.006513815838843584,
-0.023813627660274506,
-0.037885505706071854,
0.025972966104745865,
-0.01780414953827858,
0.007824969477951527,
-0.042630862444639206,
-0.04230855405330658,
-0.07042772322893143,
-0.08698967844247818,
-0.022138943895697594,
0.07407256215810776,
0.024446861818432808,
-0.02500949054956436,
-0.017590276896953583,
-0.014872335828840733,
-0.09503484517335892,
0.013569677248597145,
-0.04453771188855171,
-0.006934185512363911,
-0.014899732545018196,
-0.02043777145445347,
0.01837945729494095,
-0.04065314307808876,
-0.05114419385790825,
0.043239492923021317,
0.020442647859454155,
0.011960936710238457,
0.013869961723685265,
0.003422566456720233,
-0.006201266311109066,
-0.045471109449863434,
-0.03468945622444153,
0.08724243938922882,
-0.0527801513671875,
-0.004788294900208712,
0.00039655299042351544,
-0.013650072738528252,
0.024865692481398582,
0.031512364745140076,
-0.023931678384542465,
0.03307432308793068,
0.028525102883577347,
0.031869471073150635,
-0.03196341171860695,
0.031398747116327286,
-0.04377657547593117,
-0.03404424339532852,
-0.024527644738554955,
-0.05426660180091858,
0.03871036320924759,
0.011455941013991833,
0.016018493101000786,
0.005301366094499826,
-0.040998950600624084,
0.01586698181927204,
-0.08541138470172882,
-0.03941204771399498,
0.003087949473410845,
-0.0038837536703795195,
0.010953391902148724,
-0.003864413360133767,
-0.006104746367782354,
-0.05732592195272446,
-0.019899483770132065,
0.0033761863596737385,
-0.037535618990659714,
-0.01807616651058197,
-0.0006220026989467442,
0.000538732681889087,
-0.02386985346674919,
0.024965006858110428,
0.029505761340260506,
-0.01526061724871397,
0.023162297904491425,
0.03524361923336983,
-0.04355037957429886,
0.021269671618938446,
-0.0069747744128108025,
-0.025812162086367607,
-0.019207920879125595,
0.021563289687037468,
0.01749177649617195,
-0.012140640057623386,
0.03954532742500305,
0.007064132485538721,
0.014014164917171001,
-0.010503770783543587,
-0.005850658752024174,
0.022976364940404892,
0.04061499610543251,
0.0065080844797194,
0.00872042030096054,
-0.029242705553770065,
-0.0017236624844372272,
-0.016758883371949196,
-0.02372085303068161,
-0.034448131918907166,
-0.00714587839320302,
0.041779130697250366,
-0.032023873180150986,
-0.01982727460563183,
-0.056576814502477646,
0.0285986065864563,
-0.051795732229948044,
-0.0060207354836165905,
-0.01875380426645279,
0.007690530735999346,
0.0440053828060627,
0.0037864239420741796,
0.038209713995456696,
0.038448918610811234,
-0.038405563682317734,
-0.012029816396534443,
0.015254361554980278,
0.014776590280234814,
0.024759966880083084,
-0.04099184647202492,
0.0037935874424874783,
0.02006230317056179,
-0.022277500480413437,
0.05970829352736473,
0.007201367989182472,
-0.00640475656837225,
0.001133586629293859,
0.02309308387339115,
0.0015111323446035385,
0.003501300234347582,
0.04778619483113289,
-0.027725612744688988,
0.007245569955557585,
-0.01620308868587017,
-0.02840518206357956,
-0.0007645974401384592,
-0.007420061621814966,
-0.022870847955346107,
0.006627773866057396,
-0.07183749973773956,
-0.07423529773950577,
0.001874192850664258,
0.04067443683743477,
0.019750209525227547,
0.015170333907008171,
-0.06580261141061783,
0.008146184496581554,
-0.047305911779403687,
0.056499674916267395,
0.07493754476308823,
-0.05470705404877663,
0.0035946520511060953,
0.018997380509972572,
0.017303666099905968,
-0.018973220139741898,
0.00958408322185278,
-0.05031789094209671,
-0.02664923667907715,
-0.012483012862503529,
0.04262162744998932,
0.029369834810495377,
-0.05185678228735924,
-0.10878876596689224,
-0.004273633006960154,
0.01825774274766445,
0.03271348774433136,
0.01748342253267765,
0.0021222890354692936,
-0.023157518357038498,
0.0039324890822172165,
0.008598600514233112,
-0.021664360538125038,
-0.04862423241138458,
0.03087424859404564,
-0.027402162551879883,
0.027733037248253822,
0.009524941444396973,
0.022399988025426865,
0.008224246092140675,
-0.031829871237277985,
0.0002188684738939628,
-0.03286173939704895,
0.014836668036878109,
0.06027510389685631,
0.057929977774620056,
0.003617164446040988,
0.026922380551695824,
-0.02931838110089302,
0.014111105352640152,
-0.0011329803382977843,
-0.0011558193946257234,
-0.028380636125802994,
-0.00730728218331933,
0.03708825632929802,
0.03305450826883316,
0.02995423786342144,
-0.030728265643119812,
0.0034497894812375307,
-0.0260922871530056,
0.03694317117333412,
-0.02142268791794777,
-0.052042968571186066,
-0.006951756775379181,
-0.07522109150886536,
0.010923036374151707,
0.015518171712756157,
0.01199113205075264,
-0.04715213179588318,
0.077445849776268,
0.05078601837158203,
0.03611933812499046,
0.06850983202457428,
0.000050415124860592186,
0.010836221277713776,
-0.020837539806962013,
0.016811147332191467,
-0.09235356748104095,
-0.00892697274684906,
0.042067304253578186,
0.04330629110336304,
-0.02913900464773178,
-0.03391899913549423,
-0.05037654936313629,
0.03016110137104988,
-0.041812289506196976,
-0.04474293068051338,
0.030899319797754288,
0.008333691395819187,
0.002482239156961441,
0.010112887248396873,
-0.03691031411290169,
-0.008998369798064232,
0.039268430322408676,
-0.05197130888700485,
-0.004441732540726662,
-0.00805459450930357,
0.037060659378767014,
-0.04885811358690262,
0.015191895887255669,
-0.023681094869971275,
-0.01666354574263096,
0.06782028824090958,
0.028901774436235428,
-0.005360404960811138,
0.04961185157299042,
-0.029840264469385147,
0.01434358861297369,
0.01631230302155018,
0.012032151222229004,
-0.0067135728895664215,
0.02044704370200634,
0.025901876389980316,
-0.017684176564216614,
-0.005353028420358896,
0.04147220402956009,
-0.025947416201233864,
-0.04329080134630203,
0.08745869994163513,
-0.0012607070384547114,
-0.04320664331316948,
-0.04668764770030975,
-0.003565816441550851,
-0.015775324776768684,
0.010468568652868271,
0.0008757114992477,
0.0009493218385614455,
-0.007729651406407356,
0.06474953144788742,
-0.04125625267624855,
0.0007203008281067014,
0.05477723479270935,
0.00809443648904562,
0.019024373963475227,
0.004868533927947283,
0.05563408136367798,
0.07629644125699997,
0.03669624775648117,
-0.03274655342102051,
0.06960411369800568,
-0.024529343470931053,
-0.04414321854710579,
0.02568230777978897,
-0.030911600217223167,
0.0037781421560794115,
-0.030989432707428932,
0.005383792333304882,
0.06079500541090965,
-0.03872864693403244,
0.041000932455062866,
-0.006543371360749006,
-0.039338089525699615,
-0.021645477041602135,
-0.011065991595387459,
0.03042799048125744,
0.03066982515156269,
0.007973396219313145,
0.02837064117193222,
-0.00861076544970274,
-0.03711223974823952,
0.02423495054244995,
-0.0369589664041996,
-0.03186461701989174,
0.01879415102303028,
0.008666864596307278,
-0.02759137935936451,
-0.028080224990844727,
0.013098782859742641,
0.05297885462641716,
-0.045275334268808365,
-0.00016691541532054543,
-0.00032038576318882406,
0.056220028549432755,
0.010106135159730911,
0.016918202862143517,
0.0051035284996032715,
-0.01833009533584118,
-0.02829733118414879,
-0.029289714992046356,
-0.011133627034723759,
-0.004203761462122202,
-0.017177319154143333,
0.017284171655774117,
-0.051914796233177185,
0.0074642072431743145,
0.023150233551859856,
-0.04231761023402214,
-0.05350949615240097,
-0.03258456662297249,
-0.024967607110738754,
-0.06523223221302032,
-0.07735930383205414,
-0.00917881354689598,
0.018658030778169632,
-0.041420917958021164,
-0.03745325654745102,
-0.00567560363560915,
0.014363313093781471,
-0.0017503981944173574,
-0.007558252662420273,
-0.03406170383095741,
-0.03632495179772377,
0.03708542883396149,
0.02746390365064144,
-0.01388475950807333,
0.03150712326169014,
0.03615329787135124,
0.012110643088817596,
-0.013034144416451454,
0.0016918331384658813,
0.009206663817167282,
0.03323687985539436,
0.0365220308303833,
0.01728489249944687,
-0.05085090175271034,
0.022470183670520782,
-0.006730221211910248,
-0.029309866949915886,
-0.05968611687421799,
0.03030652552843094,
0.011182612739503384,
-0.03285954147577286,
0.04366626590490341,
-0.0003617355541791767,
0.001142740249633789,
-0.0026399714406579733,
-0.012006253935396671,
0.0008351128781214356,
0.018306182697415352,
0.023130659013986588,
-0.03695592284202576,
0.04525113105773926,
0.0565490797162056,
0.0016638635424897075,
-0.00689360685646534,
-0.03642464801669121,
0.012667668983340263,
-0.02052498050034046,
-0.057231467217206955,
-0.04326961934566498,
-0.08022767305374146,
-0.09552211314439774,
-0.023372581228613853,
0.01980249211192131,
-0.049613580107688904,
-0.004799415357410908,
-0.019928209483623505,
0.031564801931381226,
-0.040660560131073,
0.02155185304582119,
-0.024276917800307274,
0.015875276178121567,
-0.015526443719863892,
0.0011316380696371198,
-0.0260592233389616,
0.022895365953445435,
0.012483054772019386,
-0.001805096515454352,
-0.03334781900048256,
-0.03412551060318947,
0.018582914024591446,
-0.017640242353081703,
0.007196677848696709,
0.02987733855843544,
0.023077910766005516,
0.03886876255273819
] | [
-0.056827522814273834,
-0.030189787968993187,
-0.020851748064160347,
0.0195370614528656,
0.07852747291326523,
-0.03789279982447624,
-0.04475581273436546,
0.04166782647371292,
0.017807183787226677,
0.03579845651984215,
0.04106675833463669,
-0.03647972643375397,
0.03187740221619606,
0.03759198635816574,
0.038937389850616455,
-0.012499331496655941,
-0.03476148843765259,
-0.05359850078821182,
-0.011441093869507313,
0.016155648976564407,
0.007703251671046019,
-0.013008227571845055,
-0.031050803139805794,
-0.0564410462975502,
0.06188732385635376,
0.06541567295789719,
-0.013181277550756931,
-0.05179857462644577,
-0.04443346709012985,
-0.20749947428703308,
0.00953073613345623,
-0.01719050668179989,
0.03188050910830498,
-0.04553328454494476,
-0.003626154037192464,
0.011040829122066498,
0.03364638611674309,
0.015619213692843914,
0.03271704167127609,
0.0629669800400734,
0.012362010776996613,
-0.0002283459180034697,
-0.060332879424095154,
-0.03822464868426323,
0.047418173402547836,
0.02139454148709774,
-0.041769396513700485,
-0.00738443061709404,
-0.011439534835517406,
0.005659874062985182,
-0.046275947242975235,
-0.03401686251163483,
-0.02350943721830845,
0.017484627664089203,
-0.004228720907121897,
0.04665875434875488,
0.02260439470410347,
0.016115322709083557,
0.0037429407238960266,
0.04234945774078369,
0.022886943072080612,
0.012697011232376099,
-0.18186110258102417,
0.07843299955129623,
-0.008301849476993084,
0.030841248109936714,
-0.04104410856962204,
-0.003829816123470664,
-0.037476472556591034,
0.057738084346055984,
0.013639303855597973,
-0.024930071085691452,
-0.03433913737535477,
0.023334519937634468,
-0.00017505146388430148,
-0.0101695004850626,
-0.01847485452890396,
0.012185892090201378,
0.044675063341856,
-0.05362565070390701,
-0.015543224290013313,
0.027266543358564377,
-0.01895478367805481,
-0.02935020998120308,
0.039026327431201935,
0.005017041228711605,
-0.006779232993721962,
0.019201060757040977,
-0.00006985015352256596,
0.03302498161792755,
0.06478201597929001,
0.010556397959589958,
0.019109370186924934,
0.011165681295096874,
-0.10668112337589264,
-0.020388131961226463,
0.029262647032737732,
-0.0028196433559060097,
-0.0242710392922163,
0.3853382170200348,
-0.016453856602311134,
-0.023409919813275337,
0.04516890272498131,
0.07215341180562973,
-0.01862526684999466,
0.0026021066587418318,
0.0015295813791453838,
-0.04535159841179848,
-0.0026449791621416807,
0.00037672100006602705,
-0.008112870156764984,
-0.04124319925904274,
0.06664814054965973,
-0.08574103564023972,
0.03751412034034729,
-0.03481120616197586,
-0.002026607980951667,
0.026053709909319878,
0.00798851903527975,
0.06166038289666176,
0.01587410643696785,
-0.014126461930572987,
0.03419480100274086,
0.018907658755779266,
0.024868888780474663,
0.040907058864831924,
0.07253360003232956,
0.061447128653526306,
0.041831232607364655,
-0.027220387011766434,
0.05685149505734444,
0.0017892784671857953,
-0.09728655964136124,
0.02617538906633854,
-0.013861366547644138,
-0.0048806192353367805,
0.033964723348617554,
-0.03181910887360573,
0.02214582823216915,
0.017271824181079865,
-0.03458014875650406,
0.006242805626243353,
0.03923463821411133,
-0.01582963392138481,
-0.028824787586927414,
0.12382640689611435,
0.01481354609131813,
-0.03469874709844589,
-0.011495640501379967,
-0.025730334222316742,
-0.04404805228114128,
0.04762937128543854,
0.06722594797611237,
-0.06030980870127678,
-0.0065004038624465466,
0.0321425199508667,
0.03888654336333275,
-0.03307030722498894,
-0.06702890247106552,
-0.01066136546432972,
-0.03400960564613342,
-0.033686377108097076,
-0.061902809888124466,
0.02575421892106533,
0.06810229271650314,
-0.09987207502126694,
-0.01576813869178295,
0.04803029075264931,
0.00518029136583209,
-0.05224548652768135,
0.03403516113758087,
0.04351695626974106,
-0.012486507184803486,
0.0033202588092535734,
0.07655186206102371,
0.004850731696933508,
-0.012867997400462627,
0.013121215626597404,
0.0424458310008049,
0.014613964594900608,
-0.0011967894388362765,
0.020040245726704597,
-0.040737222880125046,
0.017389966174960136,
-0.06036795675754547,
-0.05387892574071884,
-0.06552908569574356,
0.0052654375322163105,
-0.014364566653966904,
-0.030368424952030182,
-0.004336733371019363,
-0.03780112788081169,
-0.05792003124952316,
0.055922478437423706,
-0.042947422713041306,
-0.01135171391069889,
0.018525082617998123,
-0.0018016163958236575,
0.008836435154080391,
-0.032427165657281876,
-0.013961595483124256,
-0.03696491941809654,
0.02403012476861477,
0.02814742922782898,
-0.03535661846399307,
0.030226733535528183,
0.05110207200050354,
-0.03471177816390991,
0.05921730026602745,
0.019727816805243492,
-0.014002057723701,
-0.0011596358381211758,
0.006847116630524397,
-0.0030395027715712786,
-0.0082948487251997,
0.051015451550483704,
-0.03575408458709717,
-0.028626564890146255,
0.006915932055562735,
0.02168409712612629,
0.031756650656461716,
-0.04711650684475899,
0.023345869034528732,
-0.35511597990989685,
-0.04230808466672897,
0.020558927208185196,
-0.007274714298546314,
0.03222363069653511,
-0.03606605902314186,
-0.001916390028782189,
-0.012723097577691078,
0.023379405960440636,
0.07327539473772049,
0.07761964946985245,
0.02645421400666237,
-0.0035921703092753887,
-0.12733861804008484,
0.0019774974789470434,
0.01763983443379402,
-0.032936569303274155,
-0.03923141583800316,
-0.018524229526519775,
-0.013521099463105202,
-0.011723646894097328,
-0.02851637825369835,
0.00602634297683835,
-0.0724230632185936,
0.012294653803110123,
-0.0282535869628191,
0.12709136307239532,
0.04878075793385506,
0.025120742619037628,
-0.04774026572704315,
0.019198253750801086,
-0.018003927543759346,
-0.012417909689247608,
-0.03282821923494339,
0.0267266184091568,
-0.011365479789674282,
-0.003093262203037739,
0.0032702824100852013,
-0.03115983121097088,
-0.079582080245018,
-0.021614566445350647,
0.026878906413912773,
-0.026224559172987938,
-0.02779534086585045,
-0.05618277192115784,
0.04848923161625862,
0.018043573945760727,
0.01299197506159544,
-0.01950160041451454,
0.03729209303855896,
0.012830877676606178,
-0.016498876735568047,
0.06261187791824341,
0.03352397307753563,
0.00550446892157197,
-0.008065133355557919,
-0.09227098524570465,
0.004800340160727501,
-0.0067288838326931,
-0.008344012312591076,
0.015836168080568314,
0.02125449664890766,
0.050581417977809906,
-0.07145443558692932,
-0.015616598539054394,
0.04002916067838669,
-0.028335832059383392,
-0.016568392515182495,
-0.008132065646350384,
0.038018058985471725,
-0.028807230293750763,
0.09996108710765839,
-0.008773023262619972,
0.040516067296266556,
0.04091938957571983,
0.020069321617484093,
-0.048032522201538086,
0.028028037399053574,
0.0018939411966130137,
0.028130827471613884,
0.034508444368839264,
-0.05699438601732254,
0.03592216596007347,
0.0018754721386358142,
0.027378834784030914,
0.03980441763997078,
0.006661694496870041,
-0.04528934881091118,
0.05940563976764679,
0.021025216206908226,
0.015355398878455162,
-0.008424568921327591,
-0.04666915908455849,
-0.04147648811340332,
0.0681462436914444,
0.0034078427124768496,
-0.2916400730609894,
0.02190544269979,
0.02940380945801735,
0.041573625057935715,
-0.0008152126683853567,
0.01683754473924637,
-0.0029167523607611656,
-0.01011158898472786,
-0.005738436244428158,
-0.001258280361071229,
0.004127046093344688,
0.06633438915014267,
0.015412191860377789,
-0.048840735107660294,
-0.009098552167415619,
-0.011690077371895313,
-0.014395678415894508,
-0.006060309708118439,
0.002674184273928404,
0.006612190045416355,
0.03904954344034195,
-0.040781036019325256,
0.14420507848262787,
0.04690125584602356,
-0.025258546695113182,
0.0030015178490430117,
-0.02483748085796833,
-0.020032068714499474,
0.08272809535264969,
0.003758336417376995,
0.0032004229724407196,
-0.009063883684575558,
0.053680114448070526,
0.02229248359799385,
0.012085300870239735,
-0.0014926786534488201,
-0.026230115443468094,
0.059431977570056915,
0.021983304992318153,
-0.03118213638663292,
-0.03595266863703728,
0.019857540726661682,
-0.040699075907468796,
0.0410705991089344,
0.08072174340486526,
-0.02675163745880127,
-0.017033252865076065,
-0.03802252188324928,
-0.03697783872485161,
-0.0028640420641750097,
-0.018833551555871964,
-0.05073288455605507,
-0.040003661066293716,
0.02499334327876568,
-0.02177419885993004,
0.06178238242864609,
0.07149554789066315,
-0.019879240542650223,
0.010777464136481285,
-0.019076667726039886,
0.0001946033153217286,
-0.07173705101013184,
0.07287846505641937,
0.006145755294710398,
0.012519530951976776
] | [
0.0005981443100608885,
0.012107675895094872,
0.02307291142642498,
0.03166909143328667,
0.02885492704808712,
0.004802149720489979,
-0.01738608628511429,
-0.013153204694390297,
0.003231227397918701,
-0.009340819902718067,
-0.012874309904873371,
0.016072651371359825,
-0.015604346990585327,
-0.028441691771149635,
0.007378558162599802,
0.00882517360150814,
-0.02643991820514202,
-0.002775429980829358,
0.06465602666139603,
-0.004754556808620691,
-0.029637910425662994,
0.019333643838763237,
0.01159445010125637,
0.012284120544791222,
0.00020883865363430232,
0.04190630465745926,
-0.07162857800722122,
-0.012625081464648247,
0.022470243275165558,
-0.10837003588676453,
-0.025327635928988457,
-0.00024848859175108373,
-0.010233894921839237,
-0.0005128166521899402,
-0.02724800445139408,
0.0063567254692316055,
-0.006530803628265858,
0.01684638112783432,
0.0017826358089223504,
0.028308870270848274,
-0.017215359956026077,
-0.002679619239643216,
0.012487205676734447,
-0.0039345878176391125,
-0.0050842128694057465,
-0.0071655879728496075,
-0.011960272677242756,
-0.008945467881858349,
-0.02074074186384678,
-0.028414327651262283,
-0.04154837131500244,
-0.0005065710283815861,
-0.033621855080127716,
-0.0016406700015068054,
-0.0364212840795517,
-0.02144291065633297,
-0.052915286272764206,
-0.04297336935997009,
-0.010922432877123356,
-0.03263666108250618,
-0.009798466227948666,
0.011322583071887493,
-0.02682916447520256,
-0.014175520278513432,
0.003353373846039176,
-0.018633441999554634,
-0.02254062332212925,
0.011293244548141956,
0.007380159571766853,
0.017643453553318977,
0.006511206738650799,
0.04374799132347107,
-0.029392173513770103,
-0.03856245055794716,
-0.040863554924726486,
0.03423226252198219,
0.037326257675886154,
-0.00541337113827467,
0.02945506013929844,
-0.04427191615104675,
-0.0094795823097229,
0.024893391877412796,
-0.02698795311152935,
0.04123028740286827,
0.006585618481040001,
-0.05454062297940254,
0.017103644087910652,
0.019440826028585434,
-0.005684682168066502,
-0.03711317107081413,
-0.017488615587353706,
0.022051185369491577,
0.011866254732012749,
0.03829992562532425,
-0.10608857870101929,
-0.01089058630168438,
0.04334593936800957,
0.003519515972584486,
0.0012784743448719382,
0.8361561894416809,
0.024150684475898743,
-0.0006494911503978074,
-0.012534497305750847,
0.022810334339737892,
-0.008500157855451107,
-0.0100919334217906,
-0.04447837918996811,
0.008542311377823353,
-0.01490560919046402,
-0.007715943269431591,
0.00901899766176939,
0.03176010027527809,
0.016539623960852623,
0.02864968590438366,
0.03339181840419769,
0.029684828594326973,
0.005237227771431208,
-0.04314461350440979,
0.002093518851324916,
0.02550865150988102,
0.038945749402046204,
0.03471758961677551,
0.03800584003329277,
0.002230239100754261,
0.01401682011783123,
-0.18069152534008026,
0.023398475721478462,
-5.729124367037665e-33,
0.04486760497093201,
-0.031482405960559845,
0.021441344171762466,
-0.006721964571624994,
0.025922264903783798,
0.026536645367741585,
-0.03496027737855911,
0.0052985199727118015,
-0.001091387472115457,
-0.0009310092427767813,
-0.02272828295826912,
-0.0002600573352538049,
0.01081258524209261,
-0.04083574563264847,
0.031719326972961426,
-0.03300997614860535,
0.0053118010982871056,
0.04327094927430153,
0.027409523725509644,
-0.011109655722975731,
0.012993104755878448,
-0.0017730440013110638,
0.015970556065440178,
0.03614059463143349,
0.030941668897867203,
-0.005934286396950483,
0.025054670870304108,
-0.00865866243839264,
-0.025248153135180473,
-0.03964324668049812,
-0.004194984678179026,
-0.005935660097748041,
-0.002870267955586314,
-0.020914994180202484,
0.017459597438573837,
-0.058048054575920105,
-0.013558057136833668,
-0.015775425359606743,
-0.021500594913959503,
0.011449414305388927,
-0.026729585602879524,
-0.012267621234059334,
-0.04252929240465164,
-0.015775756910443306,
-0.014895330183207989,
0.027001027017831802,
0.036545056849718094,
0.06543592363595963,
-0.008197405375540257,
0.04775294288992882,
-0.029215263202786446,
0.021013829857110977,
0.006090695969760418,
-0.02905045822262764,
-0.0239550843834877,
0.011081459000706673,
0.008436942473053932,
-0.021118681877851486,
-0.007258727215230465,
-0.013591271825134754,
0.006741517689079046,
-0.015873678028583527,
-0.011385953053832054,
0.0035836687311530113,
-0.0065872143022716045,
-0.0009249930153600872,
0.043202269822359085,
0.018468672409653664,
0.013497927226126194,
0.028228791430592537,
-0.033200155943632126,
0.019023781642317772,
-0.005320685915648937,
-0.005380789749324322,
0.05206374451518059,
-0.020835967734456062,
0.013597036711871624,
0.019017143175005913,
0.030718572437763214,
0.028614671900868416,
0.021887362003326416,
-0.009437578730285168,
-0.0037957346066832542,
-0.0282751377671957,
-0.02300194464623928,
-0.013435003347694874,
0.061360880732536316,
0.07710949331521988,
-0.03097495436668396,
-0.004120275843888521,
0.015260973013937473,
0.01592198573052883,
0.020353887230157852,
-0.03954670578241348,
0.02757740579545498,
6.147836189484533e-33,
-0.023672739043831825,
0.00020455947378650308,
-0.002158168936148286,
0.009217203594744205,
0.04501194506883621,
-0.03385491296648979,
0.028834860771894455,
0.05517894774675369,
0.007471149321645498,
0.030333418399095535,
-0.002913197036832571,
-0.022143403068184853,
-0.018801070749759674,
0.05204124003648758,
0.05072123184800148,
-0.0051652248948812485,
0.0009254246833734214,
-0.02031446248292923,
-0.04538900405168533,
0.008006222546100616,
-0.011333191767334938,
0.008973579853773117,
-0.018075650557875633,
0.03931903839111328,
0.04007413610816002,
0.057302892208099365,
-0.00775828817859292,
0.003962804563343525,
0.006084644701331854,
0.009837816469371319,
0.010798269882798195,
-0.02363056130707264,
0.00037328904727473855,
-0.03306035324931145,
-0.00665803300216794,
0.03842822462320328,
0.0027178972959518433,
-0.012402511201798916,
-0.021050741896033287,
-0.01136653870344162,
-0.0052754199132323265,
0.01453267503529787,
-0.0132827777415514,
0.003405465744435787,
0.007820948027074337,
0.03171693533658981,
0.009101957082748413,
0.05635610595345497,
-0.012825830839574337,
0.030762242153286934,
-0.012815533205866814,
-0.010069984942674637,
-0.0053465175442397594,
-0.009446830488741398,
0.022356810048222542,
-0.018057577311992645,
-0.028559599071741104,
0.029899347573518753,
-0.04151998087763786,
-0.001551393186673522,
-0.01842949166893959,
-0.010546321980655193,
-0.017576046288013458,
-0.021302727982401848,
-0.02990180067718029,
-0.05466599389910698,
-0.012369869276881218,
-0.0474487766623497,
0.02047611214220524,
0.0010515803005546331,
0.007617502473294735,
0.0047148410230875015,
-0.004001609515398741,
0.016937384381890297,
0.03331935033202171,
0.02113964408636093,
0.013793300837278366,
0.009398442693054676,
-0.00967726856470108,
0.0046544005163013935,
-0.0004749561194330454,
-0.0216816533356905,
0.041795872151851654,
0.008815167471766472,
-0.025336049497127533,
0.021237608045339584,
-0.04933327063918114,
0.010059017688035965,
0.01375870406627655,
-0.01001595426350832,
-0.010553414933383465,
-0.037627965211868286,
-0.008133345283567905,
0.04833140969276428,
0.018922042101621628,
-1.212360611901886e-8,
0.0027011074125766754,
0.019708355888724327,
-0.007469051983207464,
0.014130495488643646,
0.028266320005059242,
0.015195973217487335,
0.007353717461228371,
-0.031137723475694656,
0.018496111035346985,
0.016142820939421654,
0.07316044718027115,
0.005554241593927145,
0.005660006310790777,
0.01881246082484722,
-0.03540162742137909,
-0.041848767548799515,
0.012357566505670547,
-0.004289599135518074,
0.02358902245759964,
-0.04674583673477173,
0.027878349646925926,
0.005988783668726683,
0.006173913832753897,
-0.04778376966714859,
0.043103866279125214,
-0.019677117466926575,
-0.01058179046958685,
-0.06108107417821884,
0.004560624714940786,
-0.038019247353076935,
0.019728120416402817,
-0.027773648500442505,
-0.013368750922381878,
-0.008364517241716385,
-0.026966290548443794,
-0.04715751111507416,
0.009882768616080284,
0.025281758978962898,
-0.0016244188882410526,
-0.01644439622759819,
0.0015212720027193427,
-0.003731103613972664,
-0.0024020385462790728,
-0.0044401646591722965,
-0.03176558017730713,
0.009141075424849987,
-0.017909187823534012,
-0.019037989899516106,
-0.0038915472105145454,
-0.05324460566043854,
-0.010415524244308472,
-0.028219055384397507,
0.01537004392594099,
0.04140356555581093,
0.01447543129324913,
-0.005962658207863569,
0.011304528452455997,
-0.025973858311772346,
-0.025591323152184486,
-0.039694320410490036,
-0.009902100078761578,
-0.003768281079828739,
-0.008022396825253963,
-0.03513157367706299
] | r-filling-in-missing-dates-with-0s | https://markhneedham.com/blog/2015/07/12/r-filling-in-missing-dates-with-0s |
false | 2015-07-12 09:53:04 | R: I write more in the last week of the month, or do I? | [
"r-2"
] | [
"R"
] | I've been writing on this blog for almost 7 years and have always believed that I write more frequently towards the end of a month. Now that I've got all the data I thought it'd be interesting to test that belief.
I started with a data frame containing each post and its publication date and added an extra column which works out how many weeks from the end of the month that post was written:
[source,r]
----
> df %>% sample_n(5)
title date
946 Python: Equivalent to flatMap for flattening an array of arrays 2015-03-23 00:45:00
175 Ruby: Hash default value 2010-10-16 14:02:37
375 Java/Scala: Runtime.exec hanging/in 'pipe_w' state 2011-11-20 20:20:08
1319 Coding Dojo #18: Groovy Bowling Game 2009-06-26 08:15:23
381 Continuous Delivery: Removing manual scenarios 2011-12-05 23:13:34
calculate_start_of_week = function(week, year) {
date <- ymd(paste(year, 1, 1, sep="-"))
week(date) = week
return(date)
}
tidy_df = df %>%
mutate(year = year(date),
week = week(date),
week_in_month = ceiling(day(date) / 7),
max_week = max(week_in_month),
weeks_from_end = max_week - week_in_month,
start_of_week = calculate_start_of_week(week, year))
> tidy_df %>% select(date, weeks_from_end, start_of_week) %>% sample_n(5)
date weeks_from_end start_of_week
1023 2008-08-08 21:16:02 3 2008-08-05
800 2014-01-31 06:51:06 0 2014-01-29
859 2014-08-14 10:24:52 3 2014-08-13
107 2010-07-10 22:49:52 3 2010-07-09
386 2011-12-20 23:57:51 2 2011-12-17
----
Next I want to get a count of how many posts were published in a given week. The following code does that transformation for us:
[source,r]
----
weeks_from_end_counts = tidy_df %>%
group_by(start_of_week, weeks_from_end) %>%
summarise(count = n())
> weeks_from_end_counts
Source: local data frame [540 x 4]
Groups: start_of_week, weeks_from_end
start_of_week weeks_from_end year count
1 2006-08-27 0 2006 1
2 2006-08-27 4 2006 3
3 2006-09-03 4 2006 1
4 2008-02-05 3 2008 2
5 2008-02-12 3 2008 2
6 2008-07-15 2 2008 1
7 2008-07-22 1 2008 1
8 2008-08-05 3 2008 8
9 2008-08-12 2 2008 5
10 2008-08-12 3 2008 9
.. ... ... ... ...
----
We group by both 'start_of_week' and 'weeks_from_end' because we could have posts published in the same week but different month and we want to capture that difference. Now we can run a correlation on the data frame to see if there's any relationship between 'count' and 'weeks_from_end':
[source,r]
----
> cor(weeks_from_end_counts %>% ungroup() %>% select(weeks_from_end, count))
weeks_from_end count
weeks_from_end 1.00000000 -0.08253569
count -0.08253569 1.00000000
----
This suggests there's a slight negative correlation between the two variables i.e. 'count' decreases as 'weeks_from_end' increases. Let's plug the data frame into a linear model to see how good 'weeks_from_end' is as a predictor of 'count':
[source,r]
----
> fit = lm(count ~ weeks_from_end, weeks_from_end_counts)
> summary(fit)
Call:
lm(formula = count ~ weeks_from_end, data = weeks_from_end_counts)
Residuals:
Min 1Q Median 3Q Max
-2.0000 -1.5758 -0.5758 1.1060 8.0000
Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) 3.00000 0.13764 21.795 <2e-16 ***
weeks_from_end -0.10605 0.05521 -1.921 0.0553 .
---
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
Residual standard error: 1.698 on 538 degrees of freedom
Multiple R-squared: 0.006812, Adjusted R-squared: 0.004966
F-statistic: 3.69 on 1 and 538 DF, p-value: 0.05527
----
We see a similar result here. The effect of 'weeks_from_end' is worth 0.1 posts per week with a p value of 0.0553 so it's on the border line of being significant.
We also have a very low 'R squared' value which suggests the 'weeks_from_end' isn't explaining much of the variation in the data which makes sense given that we didn't see much of a correlation.
If we charged on and wanted to predict the number of posts likely to be published in a given week we could run the predict function like this:
[source,r]
----
> predict(fit, data.frame(weeks_from_end=c(1,2,3,4,5)))
1 2 3 4 5
2.893952 2.787905 2.681859 2.575812 2.469766
----
Obviously it's a bit flawed since we could plug in any numeric value we want, even ones that don't make any sense, and it'd still come back with a prediction:
[source,r]
----
> predict(fit, data.frame(weeks_from_end=c(30 ,-10)))
1 2
-0.181394 4.060462
----
I think we'd probably protect against that with a function wrapping our call to predict that doesn't allow 'weeks_from_end' to be greater than 5 or less than 0.
So far it looks like my belief is incorrect! I'm a bit dubious about my calculation of 'weeks_from_end' though - it's not completely capturing what I want since in some months the last week only contains a couple of days.
Next I'm going to explore whether it makes any difference if I calculate that value by counting the number of days back from the last day of the month rather than using week number. | null | null | [
0.003763576503843069,
-0.03022543340921402,
0.004048746079206467,
0.01274792104959488,
0.07849404215812683,
0.021599629893898964,
0.03229823708534241,
0.019744008779525757,
-0.011199801228940487,
0.00824449211359024,
-0.0013835496501997113,
-0.01446204911917448,
-0.048265669494867325,
0.024941643700003624,
-0.03714693710207939,
0.06349510699510574,
0.0614890530705452,
-0.017409509047865868,
0.03425145149230957,
-0.031129058450460434,
0.040171366184949875,
0.052534788846969604,
-0.013455831445753574,
0.035865992307662964,
0.021860023960471153,
-0.029643887653946877,
0.015231834724545479,
-0.013963391073048115,
-0.04701639711856842,
0.0014143813168630004,
-0.011551808565855026,
-0.008296783082187176,
-0.00958042498677969,
0.011671280488371849,
0.0070617166347801685,
-0.005877685267478228,
0.006687140557914972,
0.012711809016764164,
-0.0027311164885759354,
-0.013693827204406261,
-0.0572829507291317,
0.005841094069182873,
0.0005213234107941389,
0.0010775107657536864,
-0.03439383953809738,
0.005379646085202694,
-0.03490816056728363,
0.02888854779303074,
-0.013087527826428413,
0.0052276779897511005,
-0.07140935957431793,
0.04481250047683716,
0.03185170143842697,
-0.018434172496199608,
-0.018604984506964684,
0.05649067461490631,
0.04081738367676735,
-0.057220179587602615,
0.004866403061896563,
-0.03213359788060188,
0.013701621443033218,
-0.03979502245783806,
-0.0021006078459322453,
0.01198095828294754,
0.015208474360406399,
-0.033578190952539444,
-0.0033750687725842,
0.06313161551952362,
-0.035745322704315186,
0.021082596853375435,
-0.0534302294254303,
0.02317456342279911,
-0.015278572216629982,
-0.01842629350721836,
-0.01592588983476162,
-0.04783959314227104,
0.00041767233051359653,
0.05567806214094162,
-0.0001828072126954794,
0.01694658398628235,
-0.027119413018226624,
-0.0024231099523603916,
0.011997826397418976,
0.024333877488970757,
0.026203610002994537,
-0.01809789054095745,
-0.060189925134181976,
-0.05244066193699837,
-0.06482309103012085,
0.04273023456335068,
-0.009386260062456131,
-0.05318686366081238,
0.031031517311930656,
0.04525398463010788,
-0.012616767548024654,
-0.026619810611009598,
0.0059472559951245785,
0.03170405700802803,
0.004001955967396498,
-0.008385968394577503,
-0.03801111504435539,
-0.02857975848019123,
0.036378853023052216,
0.025350965559482574,
-0.07664304971694946,
-0.04208581894636154,
-0.0343129001557827,
-0.013371031731367111,
0.04622155800461769,
0.03220339119434357,
-0.02425600215792656,
0.02790651097893715,
-0.015359334647655487,
0.009161028079688549,
-0.0626712217926979,
0.06767850369215012,
-0.009865491650998592,
-0.03858397528529167,
-0.02439269609749317,
-0.012056729756295681,
0.02445128932595253,
-0.017004704102873802,
0.018645931035280228,
0.09352705627679825,
-0.01686873473227024,
0.05329690873622894,
-0.0018054386600852013,
0.048303715884685516,
-0.01792711764574051,
-0.04621982201933861,
-0.02174217626452446,
0.040401529520750046,
-0.018480641767382622,
-0.011017030104994774,
0.013940862379968166,
-0.008465174585580826,
-0.030036073178052902,
0.007028753869235516,
0.09788291156291962,
0.037422794848680496,
0.016685888171195984,
-0.027859190478920937,
-0.025706494227051735,
-0.035922013223171234,
0.037046581506729126,
0.02160520665347576,
-0.003148063085973263,
-0.048700664192438126,
-0.032666921615600586,
-0.015296257100999355,
0.017986809834837914,
-0.020954320207238197,
0.0280222799628973,
-0.005136669613420963,
0.0405503585934639,
0.026833396404981613,
0.012864874675869942,
0.030957458540797234,
-0.018216313794255257,
0.0126707898452878,
0.039013344794511795,
0.05838409811258316,
0.019532840698957443,
0.03944316878914833,
-0.012278647162020206,
-0.020461229607462883,
0.028154464438557625,
0.012642313726246357,
-0.022247929126024246,
-0.0002367176639381796,
-0.03972409665584564,
-0.015451966784894466,
0.06838682293891907,
-0.006024252623319626,
0.00036934527452103794,
0.04914629086852074,
0.0860082358121872,
0.04284365475177765,
0.039955999702215195,
0.006796983536332846,
-0.07570461928844452,
0.03477223217487335,
0.0012964130146428943,
0.03437267616391182,
0.021954447031021118,
-0.026121413335204124,
0.07449556887149811,
0.023062627762556076,
0.019239181652665138,
0.01050503645092249,
-0.0682448074221611,
-0.0652349591255188,
-0.01058125402778387,
-0.027570830658078194,
0.06042744219303131,
-0.04687841236591339,
0.01728341355919838,
0.06797639280557632,
0.01057035569101572,
0.036928243935108185,
-0.0011478073429316282,
0.012426001951098442,
0.018738875165581703,
-0.031826201826334,
-0.021968871355056763,
0.03942273557186127,
0.01476303394883871,
-0.011045859195291996,
-0.009486443363130093,
0.02865993045270443,
-0.025899415835738182,
0.02537234127521515,
0.017004843801259995,
-0.02119746431708336,
0.008810829371213913,
0.06514813005924225,
0.06424432247877121,
-0.003495987271890044,
0.04256070777773857,
-0.05381195992231369,
0.05299290269613266,
0.029107974842190742,
-0.022573478519916534,
-0.020343033596873283,
-0.0031947456300258636,
0.12863072752952576,
0.049594707787036896,
-0.061700526624917984,
-0.04697437956929207,
0.017268119379878044,
-0.0030895345844328403,
-0.020098837092518806,
0.022393131628632545,
0.037333760410547256,
-0.0033162757754325867,
0.027197202667593956,
-0.02175905928015709,
-0.02464495413005352,
0.006359944120049477,
-0.07040935009717941,
0.025611866265535355,
0.07342762500047684,
-0.0045961481519043446,
0.05973014608025551,
-0.031137846410274506,
-0.012737643904983997,
-0.013662034645676613,
-0.006564605515450239,
-0.07218526303768158,
0.01933312974870205,
0.0047600604593753815,
-0.02499527484178543,
0.056464195251464844,
-0.019654622301459312,
-0.04165942221879959,
-0.030834484845399857,
-0.05715680494904518,
0.02352031134068966,
0.0755094513297081,
0.03940996900200844,
-0.015246883034706116,
0.017307348549365997,
0.010350283235311508,
-0.014202377758920193,
-0.01754077710211277,
-0.02454032190144062,
-0.0695711150765419,
-0.014213153161108494,
-0.011194828897714615,
0.013393525965511799,
0.035787198692560196,
0.01555099617689848,
0.041790686547756195,
0.04706193506717682,
-0.007280259393155575,
-0.005889745894819498,
0.053642332553863525,
-0.020314859226346016,
-0.019303515553474426,
-0.03966743126511574,
-0.0040800743736326694,
0.05645759776234627,
-0.010194944217801094,
-0.04417711868882179,
0.013774439692497253,
-0.07309917360544205,
0.04809464514255524,
-0.02931513451039791,
-0.02962562069296837,
0.011664857156574726,
0.005113947205245495,
0.04965846240520477,
0.018711460754275322,
0.022199083119630814,
0.06314067542552948,
0.03543824329972267,
0.015204004012048244,
0.016245607286691666,
-0.007126019336283207,
0.03990514576435089,
0.03958424925804138,
-0.015885235741734505,
0.07025665789842606,
-0.002195096807554364,
0.007903272286057472,
-0.03921636566519737,
-0.017541367560625076,
-0.015370065346360207,
-0.26078590750694275,
0.026944205164909363,
-0.06052522733807564,
-0.0511707067489624,
0.008080213330686092,
-0.009224322624504566,
0.018853813409805298,
-0.043119870126247406,
-0.005814644042402506,
-0.007445711642503738,
-0.0076250601559877396,
-0.03260708972811699,
-0.041281431913375854,
0.07231368124485016,
0.03574737533926964,
-0.0038520966190844774,
-0.00664588762447238,
-0.01855248026549816,
0.004485752433538437,
0.050580546259880066,
0.019452450796961784,
-0.05679682642221451,
-0.0017016628989949822,
0.041810374706983566,
0.038966190069913864,
0.05402717739343643,
-0.06902380287647247,
0.013347525149583817,
-0.06694898754358292,
-0.011992648243904114,
0.031100234016776085,
-0.04889730364084244,
0.028669526800513268,
-0.009417195804417133,
0.016724301502108574,
-0.009456024505198002,
0.03041789121925831,
0.012370621785521507,
0.028677335008978844,
0.00949190929532051,
-0.02684055082499981,
-0.05888556316494942,
-0.021571524441242218,
-0.008625813759863377,
0.06348443776369095,
0.0035461278166621923,
-0.05506579950451851,
-0.023420313373208046,
-0.04513152316212654,
0.06324562430381775,
-0.010652105323970318,
-0.03466940298676491,
-0.02781900390982628,
0.016387511044740677,
-0.02867700904607773,
-0.027936037629842758,
-0.03292083740234375,
-0.0032071718014776707,
-0.019131885841488838,
-0.050213467329740524,
-0.008144390769302845,
-0.021258413791656494,
0.01246133167296648,
-0.05171360820531845,
-0.035288840532302856,
-0.0631873682141304,
-0.0758875161409378,
0.028515378013253212,
0.0776544064283371,
0.031027453020215034,
-0.036672838032245636,
-0.009312412701547146,
-0.0023763184435665607,
-0.114042729139328,
-0.01726788841187954,
-0.044480934739112854,
-0.012951420620083809,
0.009988600388169289,
-0.01939229853451252,
0.05075683444738388,
-0.05379023402929306,
-0.032701343297958374,
0.02813354879617691,
-0.005074678920209408,
0.054036520421504974,
-0.0339154377579689,
0.010866166092455387,
-0.03169737383723259,
-0.034081194549798965,
-0.0166325606405735,
0.05934060364961624,
-0.0366387739777565,
0.00040088171954266727,
0.004678763449192047,
0.010669424198567867,
0.0713924691081047,
0.008795654401183128,
0.0037204548716545105,
0.01012440025806427,
0.0026019709184765816,
0.02365466021001339,
-0.04396986961364746,
0.0027784251142293215,
-0.07222206145524979,
0.0027435943484306335,
-0.017868896946310997,
-0.07014552503824234,
0.03693554922938347,
0.008145336993038654,
-0.002365637104958296,
-0.0050865160301327705,
-0.022253327071666718,
0.0003374715452082455,
-0.06837254017591476,
-0.027148228138685226,
-0.014098177663981915,
-0.007979674264788628,
0.03136793151497841,
0.010256567969918251,
0.0009075447451323271,
-0.06941340118646622,
-0.017893683165311813,
-0.0048865461722016335,
-0.015112100169062614,
-0.03666083142161369,
0.00108311977237463,
-0.03722250089049339,
-0.03755098208785057,
0.01785101927816868,
0.025137828662991524,
-0.025003816932439804,
0.010770141147077084,
0.0291452519595623,
-0.006615943741053343,
0.0030669281259179115,
-0.016418425366282463,
-0.04229113459587097,
-0.03312276676297188,
0.005817831959575415,
0.013434191234409809,
0.01719675026834011,
0.010972333140671253,
-0.00959736481308937,
0.03949328139424324,
0.0077727786265313625,
0.004754075780510902,
0.006732800509780645,
-0.03528086841106415,
-0.003147399052977562,
0.021096015349030495,
0.007815013639628887,
-0.02308598719537258,
-0.013524124398827553,
-0.03503153473138809,
-0.056086309254169464,
0.009615286253392696,
0.04283268749713898,
-0.011334499344229698,
-0.048987045884132385,
-0.04143144190311432,
0.019493181258440018,
-0.06518582999706268,
-0.009653657674789429,
-0.006952232681214809,
-0.01993200182914734,
0.04549601674079895,
-0.003899313509464264,
0.04129780828952789,
0.03042144700884819,
-0.03137480840086937,
-0.03878166899085045,
-0.0052280002273619175,
-0.008656089194118977,
0.030074357986450195,
0.014231576584279537,
-0.021046768873929977,
0.02559342049062252,
-0.002484415890648961,
0.03112029656767845,
0.02111121080815792,
-0.00818467978388071,
-0.0103676225990057,
-0.010801161639392376,
0.022339530289173126,
0.02839076891541481,
0.06838984787464142,
-0.009076270274817944,
-0.020997721701860428,
-0.03888656571507454,
-0.029884468764066696,
-0.020713860169053078,
-0.008485156111419201,
-0.020839720964431763,
0.013815851882100105,
-0.035389918833971024,
-0.10533496737480164,
0.030229685828089714,
0.06129339337348938,
0.005310540087521076,
0.00523094367235899,
-0.04188115522265434,
-0.03503626212477684,
-0.047236524522304535,
0.027668550610542297,
0.08171525597572327,
-0.055164821445941925,
0.0151071110740304,
-0.016701504588127136,
-0.0032111078035086393,
0.0027993088588118553,
0.02550954557955265,
-0.0488959364593029,
-0.03951849415898323,
0.002274217316880822,
0.0463724210858345,
-0.024142317473888397,
-0.023449143394827843,
-0.051826395094394684,
0.002705493476241827,
-0.0013185424031689763,
0.03539126738905907,
0.0001583035773364827,
0.0049637695774436,
-0.003664677496999502,
0.014925993978977203,
0.02268156409263611,
-0.02029472403228283,
-0.009763612411916256,
0.04041745886206627,
-0.018823275342583656,
0.01855841465294361,
-0.03467485308647156,
0.018300944939255714,
0.013532646000385284,
-0.04656173661351204,
-0.010521710850298405,
-0.037920787930488586,
-0.0043434458784759045,
0.005106928292661905,
0.06423451751470566,
-0.008955048397183418,
-0.006564910989254713,
-0.040521733462810516,
-0.010418285615742207,
-0.01703832671046257,
0.005622165743261576,
-0.013381656259298325,
-0.00973373930901289,
0.020039403811097145,
0.05700533464550972,
0.011010496877133846,
0.025816671550273895,
-0.002401478821411729,
-0.044440846890211105,
0.037985846400260925,
-0.005518991965800524,
-0.013689069077372551,
-0.02207033336162567,
-0.03594067320227623,
0.012874064967036247,
0.031506773084402084,
0.03145584464073181,
-0.008117024786770344,
0.06410589814186096,
0.047511763870716095,
0.07145512104034424,
0.05639287456870079,
-0.004219893831759691,
0.03866001218557358,
-0.027777936309576035,
-0.01949622668325901,
-0.1062714159488678,
-0.03197116404771805,
0.04883047938346863,
0.0035405741073191166,
0.004861455876380205,
-0.03204230219125748,
-0.02128731459379196,
0.011863420717418194,
-0.05123639479279518,
-0.020684964954853058,
0.03083142079412937,
-0.01761440746486187,
-0.006423520389944315,
0.039224009960889816,
-0.04930947348475456,
0.015671750530600548,
0.03583995997905731,
-0.05839979276061058,
-0.012193353846669197,
0.01654982939362526,
0.04641493409872055,
-0.009615371935069561,
0.023254992440342903,
-0.013199537992477417,
-0.007372763007879257,
0.06152725964784622,
0.024435846135020256,
0.005245828535407782,
0.02015805058181286,
-0.011308489367365837,
0.026379307731986046,
0.021053900942206383,
0.01059375237673521,
-0.007634020876139402,
0.009901474229991436,
-0.013506933115422726,
-0.041160620748996735,
0.0039922501891851425,
0.00395632442086935,
-0.02986091934144497,
-0.01443372294306755,
0.09140460193157196,
0.013501807115972042,
-0.04267140105366707,
-0.07811721414327621,
0.010654177516698837,
-0.022304987534880638,
-0.012241056188941002,
-0.014861379750072956,
-0.0037994494196027517,
-0.052576374262571335,
0.06633256375789642,
0.0012474267277866602,
0.009514297358691692,
0.06138448044657707,
-0.003977097105234861,
0.01372037548571825,
0.008159010671079159,
0.08037735521793365,
0.07521982491016388,
0.047374531626701355,
-0.021002424880862236,
0.0749407634139061,
-0.012678667902946472,
-0.052614904940128326,
0.0187323410063982,
-0.027051977813243866,
-0.007531513459980488,
0.0030876698438078165,
0.026349399238824844,
0.0894247442483902,
-0.0078253960236907,
0.06932252645492554,
0.0032972944900393486,
-0.009279676713049412,
-0.016240984201431274,
0.014680971391499043,
0.040909260511398315,
0.03851362690329552,
0.03827296197414398,
0.044846899807453156,
-0.01151891890913248,
-0.01948528178036213,
0.040315717458724976,
-0.027643389999866486,
-0.00878674816340208,
0.047160129994153976,
-0.020054271444678307,
0.004427340347319841,
-0.010832213796675205,
0.03327788785099983,
0.08047875016927719,
-0.01423936989158392,
0.009977313689887524,
0.005662946496158838,
0.014610432088375092,
-0.009484609588980675,
0.02180567756295204,
-0.021877409890294075,
0.022818047553300858,
-0.013747554272413254,
-0.05226702243089676,
-0.006811472121626139,
0.000017092033886001445,
-0.07010120898485184,
0.00887954793870449,
-0.025411752983927727,
0.01871049404144287,
0.017322055995464325,
-0.014088858850300312,
-0.04121267795562744,
-0.05611738562583923,
-0.0503276102244854,
-0.05865562707185745,
-0.08218641579151154,
0.013422556221485138,
0.015667719766497612,
-0.005055493209511042,
-0.014412255957722664,
0.002612991724163294,
-0.007988608442246914,
-0.021199310198426247,
0.005178235471248627,
-0.0380682535469532,
-0.030451951548457146,
0.03886974975466728,
0.02999148517847061,
0.023364799097180367,
0.030273787677288055,
0.058040499687194824,
-0.024165403097867966,
-0.009758323431015015,
-0.013202574104070663,
-0.005209801718592644,
0.06993558257818222,
0.033522702753543854,
-0.009816271252930164,
-0.06471888720989227,
0.022203784435987473,
0.010090210475027561,
-0.02153688110411167,
-0.07586894929409027,
0.06641341745853424,
-0.0005434877821244299,
-0.0056803179904818535,
0.057079415768384933,
-0.023967333137989044,
0.02129126898944378,
-0.025681311264634132,
-0.013519824482500553,
0.0015596075681969523,
0.01334372442215681,
0.033416785299777985,
-0.040452055633068085,
0.07049304246902466,
0.041898272931575775,
-0.037116024643182755,
-0.03120764158666134,
-0.004053279757499695,
-0.01850905455648899,
0.004367651883512735,
-0.06070952117443085,
-0.03179056942462921,
-0.06771080940961838,
-0.05593303218483925,
-0.03086121752858162,
0.0031037910375744104,
-0.051844969391822815,
-0.023055914789438248,
0.014194028452038765,
0.023039430379867554,
-0.014521871693432331,
0.012314988300204277,
-0.03402476757764816,
0.03801657259464264,
-0.03485396131873131,
-0.009087099693715572,
-0.013360844925045967,
0.007575994823127985,
-0.010364635847508907,
0.017361490055918694,
-0.013005499728024006,
-0.051756348460912704,
0.015397889539599419,
0.014642594382166862,
-0.00011962496500927955,
0.0040570273995399475,
-0.0018749095033854246,
-0.0032560720574110746
] | [
-0.07509676367044449,
-0.019941888749599457,
0.0026179824490100145,
-0.004534986801445484,
0.06002414599061012,
-0.05179474875330925,
-0.01736033521592617,
0.029169030487537384,
0.005677754525095224,
0.004732174798846245,
0.009207247756421566,
-0.03173539415001869,
-0.00143393874168396,
0.006631491705775261,
0.05389334633946419,
-0.025545485317707062,
-0.02389708161354065,
-0.07771065831184387,
-0.027842065319418907,
0.03453227877616882,
0.022785734385252,
-0.0024792090989649296,
-0.05096166580915451,
-0.040571428835392,
0.05046619474887848,
0.06703533232212067,
0.02180609293282032,
-0.04316268488764763,
-0.051541250199079514,
-0.17578823864459991,
-0.010519204661250114,
-0.012814734131097794,
0.03275066614151001,
-0.03691373020410538,
0.013201174326241016,
0.04446956887841225,
0.028316183015704155,
0.03050844930112362,
0.00652683712542057,
0.05329094082117081,
0.03433622047305107,
0.014277921058237553,
-0.038820359855890274,
-0.03014855459332466,
0.028517531231045723,
0.00826680101454258,
-0.02234656736254692,
-0.004900969564914703,
0.004087550099939108,
0.04912764951586723,
-0.053053565323352814,
-0.018799372017383575,
-0.014254373498260975,
-0.006610879208892584,
0.0015830793417990208,
0.01910354197025299,
0.04259109869599342,
0.05090271309018135,
0.023793840780854225,
0.035423360764980316,
-0.0016863023629412055,
-0.004955498035997152,
-0.15646357834339142,
0.11281685531139374,
0.00805540382862091,
0.036686867475509644,
-0.05075395107269287,
0.009721463546156883,
0.00386036466807127,
0.09564315527677536,
-0.01908075623214245,
0.000018873637600336224,
-0.032275088131427765,
0.08064486086368561,
0.03388061001896858,
-0.018895354121923447,
0.0038297788705676794,
0.017310017719864845,
0.03292633220553398,
-0.026144888252019882,
-0.03445165231823921,
0.008830654434859753,
0.009546829387545586,
-0.022567979991436005,
-0.00234308117069304,
0.00022299576085060835,
-0.011269793845713139,
0.03623759374022484,
0.013214342296123505,
0.02040364407002926,
0.05580151081085205,
-0.011274960823357105,
0.011058229953050613,
0.007438417989760637,
-0.08557730913162231,
-0.045859161764383316,
0.02753394842147827,
0.01627017930150032,
-0.03657654672861099,
0.38834866881370544,
-0.040848419070243835,
-0.018968869000673294,
0.041645895689725876,
0.04740617424249649,
-0.006935919634997845,
0.010240186005830765,
0.022868361324071884,
-0.05353465676307678,
-0.02177605964243412,
-0.037100307643413544,
-0.008592265658080578,
-0.01482408307492733,
0.061086803674697876,
-0.08994317054748535,
0.050502222031354904,
0.009525764733552933,
0.04001154750585556,
0.017792368307709694,
0.016402367502450943,
0.04406888782978058,
-0.00785965844988823,
-0.00021136575378477573,
0.02507537230849266,
0.003433979582041502,
-0.01229372713714838,
0.010829707607626915,
0.05988962575793266,
0.05726564675569534,
0.02808495983481407,
-0.025013666599988937,
0.06212735176086426,
-0.006183416582643986,
-0.09257351607084274,
0.001651961705647409,
0.005021170247346163,
0.007215859834104776,
0.02297927625477314,
-0.054791659116744995,
0.04145674407482147,
0.017877066507935524,
-0.036576759070158005,
-0.03599414974451065,
0.020559746772050858,
-0.007605725899338722,
-0.03464182838797569,
0.15683527290821075,
0.0389692597091198,
-0.03406582400202751,
-0.008324747905135155,
-0.045989740639925,
-0.03038640320301056,
0.044908829033374786,
0.039890456944704056,
-0.08585995435714722,
0.04754168167710304,
0.019979670643806458,
0.08438952267169952,
-0.026527123525738716,
-0.050173696130514145,
-0.035111989825963974,
-0.054069217294454575,
-0.022857578471302986,
-0.05650016665458679,
-0.005353109911084175,
0.0590263195335865,
-0.09564872831106186,
0.004602630157023668,
0.029897140339016914,
0.02076670713722706,
-0.0636124238371849,
0.06707926094532013,
-0.007597911637276411,
-0.04179956763982773,
-0.0066848862916231155,
0.0741918757557869,
-0.020220723003149033,
0.0062578232027590275,
0.023420391604304314,
0.07780133932828903,
0.00020127856987528503,
0.00947234220802784,
0.031479571014642715,
-0.05635042488574982,
0.028818948194384575,
-0.03980318084359169,
-0.08186717331409454,
-0.053158950060606,
0.008034036494791508,
-0.02938353829085827,
-0.02174358256161213,
0.006725033279508352,
-0.056698769330978394,
-0.06072576344013214,
0.05336778238415718,
-0.035293128341436386,
-0.03669111430644989,
0.020968884229660034,
0.025058794766664505,
-0.015755534172058105,
-0.04276379570364952,
-0.02179982140660286,
-0.047946613281965256,
0.013328999280929565,
0.027806080877780914,
-0.03576795756816864,
0.026180215179920197,
0.04040728881955147,
-0.03346067667007446,
0.10006286948919296,
0.0314781479537487,
-0.0065977000631392,
-0.026663053780794144,
0.025668876245617867,
-0.022710436955094337,
-0.011302751488983631,
-0.013307174667716026,
-0.0204465351998806,
-0.028225935995578766,
0.011077898554503918,
0.043951213359832764,
0.005815669894218445,
-0.07132765650749207,
0.018660493195056915,
-0.33850330114364624,
-0.056260596960783005,
0.020212944597005844,
-0.008449160493910313,
0.05778928101062775,
-0.06699416041374207,
0.015239943750202656,
-0.027279140427708626,
0.004366088658571243,
0.04924633726477623,
0.06611743569374084,
-0.019223859533667564,
0.0006629482377320528,
-0.09624963998794556,
-0.012481643818318844,
0.025825750082731247,
-0.031055627390742302,
-0.030621560290455818,
-0.002232105005532503,
0.024299215525388718,
0.022674227133393288,
-0.03608418256044388,
-0.01521291397511959,
-0.07316503673791885,
-0.006515554618090391,
-0.04432857781648636,
0.11454946547746658,
0.021274369210004807,
0.033344656229019165,
-0.06421440839767456,
0.042087722569704056,
-0.05067848041653633,
0.0195899810642004,
-0.0768875852227211,
0.014191132970154285,
-0.02090839482843876,
-0.014559528790414333,
-0.010270068421959877,
-0.02828010730445385,
-0.05417802557349205,
-0.03461703658103943,
0.051183607429265976,
-0.03367741033434868,
-0.0051679713651537895,
-0.09426772594451904,
0.03873259201645851,
0.013708731159567833,
-0.030115963891148567,
-0.036622386425733566,
0.06565560400485992,
0.009439877234399319,
-0.03868863359093666,
0.016538940370082855,
0.0100395567715168,
0.00649246433749795,
-0.034698717296123505,
-0.09977289289236069,
0.03755507990717888,
-0.009176095947623253,
-0.021757561713457108,
0.02452288568019867,
0.028649307787418365,
0.040996890515089035,
-0.02465108036994934,
-0.013748873956501484,
0.02594211883842945,
-0.012058058753609657,
-0.02297843247652054,
-0.020793911069631577,
0.024855924770236015,
-0.01886679232120514,
0.07531367242336273,
-0.03275284543633461,
-0.007329073268920183,
0.03635729104280472,
0.019473452121019363,
-0.028431354090571404,
0.05204594135284424,
0.020804302766919136,
-0.0075264279730618,
0.059450630098581314,
-0.0668187141418457,
0.03108077310025692,
-0.01435976754873991,
0.021856039762496948,
0.04349135980010033,
0.006533126346766949,
-0.021607330068945885,
0.07458475232124329,
0.03574147820472717,
-0.002835584571585059,
-0.013559472747147083,
-0.04236223176121712,
-0.026919184252619743,
0.058930061757564545,
-0.002895575715228915,
-0.2785753011703491,
0.022392168641090393,
0.03226490318775177,
0.040918800979852676,
0.035053059458732605,
0.011986914090812206,
-0.031034957617521286,
-0.00593827199190855,
-0.0018027544720098376,
0.018897898495197296,
0.011564348824322224,
0.056797903031110764,
-0.017782853916287422,
-0.013134299777448177,
0.010479259304702282,
-0.006400485057383776,
-0.011020427569746971,
0.004305288661271334,
-0.008948426693677902,
0.000993227236904204,
0.009247046895325184,
-0.042856112122535706,
0.1423804610967636,
0.023531483486294746,
-0.0013094086898490787,
0.0028619992081075907,
0.008894219063222408,
0.007368674501776695,
0.08291532099246979,
0.012105652131140232,
-0.004339626990258694,
-0.027311256155371666,
0.04118548706173897,
0.036965250968933105,
-0.0002524142910260707,
-0.04537162184715271,
-0.04905036464333534,
0.08656539767980576,
0.027580220252275467,
-0.025605471804738045,
0.007937196642160416,
0.021519353613257408,
-0.022785307839512825,
0.02551649510860443,
0.08906885236501694,
0.0015391904162243009,
-0.008394707925617695,
-0.046433500945568085,
-0.0414230152964592,
-0.020118627697229385,
-0.0053213732317090034,
-0.01341510284692049,
-0.013569922186434269,
0.04355482757091522,
0.006802648305892944,
0.05028776451945305,
0.06038011610507965,
-0.013751298189163208,
0.034728001803159714,
-0.0014094568323343992,
-0.030930308625102043,
-0.03561912104487419,
0.08214462548494339,
0.03757122904062271,
0.027267228811979294
] | [
0.012230105698108673,
0.005387871991842985,
-0.033063195645809174,
0.017203057184815407,
-0.014364072121679783,
-0.008647267706692219,
-0.013620197772979736,
-0.0017140083946287632,
-0.007463142741471529,
-0.023864001035690308,
-0.034174855798482895,
0.024695880711078644,
-0.029313353821635246,
-0.03492479771375656,
0.001865091035142541,
-0.009561002254486084,
-0.021718192845582962,
-0.013884938322007656,
0.04070267453789711,
-0.01034069899469614,
-0.05231480672955513,
0.032498061656951904,
0.031813252717256546,
0.02617921493947506,
-0.019577156752347946,
0.044334836304187775,
-0.035814445465803146,
0.02313019149005413,
0.005880654789507389,
-0.11044520139694214,
-0.02497418224811554,
-0.007798570673912764,
-0.009004123508930206,
0.0003975024737883359,
-0.02636008709669113,
-0.029947493225336075,
-0.02666735090315342,
0.016327813267707825,
0.02387353405356407,
0.011133462190628052,
0.01264361571520567,
-0.01514393836259842,
-0.018894724547863007,
0.013063415884971619,
-0.006736528594046831,
-0.003262885380536318,
-0.011961985379457474,
0.007879878394305706,
-0.0362040214240551,
0.02451261691749096,
-0.053373437374830246,
0.005870065651834011,
-0.026461895555257797,
0.012901760637760162,
0.030732756480574608,
-0.04168766364455223,
-0.014709586277604103,
-0.023869575932621956,
-0.005844007711857557,
-0.029089616611599922,
-0.0036969357170164585,
0.023602453991770744,
-0.04470987245440483,
-0.013978183269500732,
-0.003113395534455776,
-0.04290981963276863,
-0.02273940108716488,
0.037403449416160583,
-0.011636284179985523,
0.007083521690219641,
-0.02188074216246605,
0.0212868582457304,
-0.040965735912323,
-0.012354351580142975,
-0.018075326457619667,
0.0051017445512115955,
-0.015682021155953407,
-0.05176040530204773,
0.017024094238877296,
0.01420681830495596,
-0.03664953261613846,
0.017863936722278595,
-0.002397887408733368,
0.03452451527118683,
-0.010810867883265018,
-0.04104972630739212,
0.028350315988063812,
0.032347772270441055,
0.01650291122496128,
-0.012961351312696934,
-0.019310781732201576,
0.009137810207903385,
0.005142601206898689,
0.01604069396853447,
-0.1207941398024559,
0.002041914500296116,
-0.021851539611816406,
-0.007597452960908413,
0.0031758451368659735,
0.8576250076293945,
0.0029945559799671173,
0.017804240807890892,
0.018326113000512123,
0.015795046463608742,
-0.00022713196813128889,
0.0036025047302246094,
-0.01800409145653248,
-0.020232180133461952,
-0.0235565435141325,
-0.04403406381607056,
0.02529801055788994,
0.00982553418725729,
0.034655049443244934,
0.0017220481531694531,
0.058433741331100464,
0.04033631831407547,
0.008528616279363632,
0.047281116247177124,
0.0031806030310690403,
0.03025292232632637,
0.01906047947704792,
0.04511692747473717,
0.012768836691975594,
0.037958938628435135,
0.004870677832514048,
-0.15936005115509033,
0.0069696721620857716,
-6.707769699187283e-33,
0.0226337481290102,
-0.011409617960453033,
0.016224460676312447,
-0.012470848858356476,
0.004247437231242657,
0.010103526525199413,
-0.0010612205369397998,
-0.004910329356789589,
0.016216229647397995,
-0.017706248909235,
0.01601126231253147,
0.011808613315224648,
-0.004052888602018356,
-0.019916340708732605,
0.03391609713435173,
-0.02806713990867138,
0.005678093060851097,
0.04166627675294876,
0.019545070827007294,
0.0391404815018177,
0.02319144271314144,
-0.0030532905366271734,
0.0031236549839377403,
0.029862860217690468,
0.011047715321183205,
-0.001459775143302977,
0.019617998972535133,
0.014064553193747997,
-0.022038372233510017,
-0.048508960753679276,
-0.010470207780599594,
0.0187076386064291,
-0.005339199211448431,
-0.031739525496959686,
0.042436785995960236,
-0.058814506977796555,
-0.0030256747268140316,
-0.0005366611294448376,
-0.009845131076872349,
-0.014891753904521465,
-0.022016555070877075,
-0.0016142548993229866,
-0.017185550183057785,
-0.022002538666129112,
-0.014684421941637993,
0.00442782836034894,
-0.014981994405388832,
0.033531367778778076,
0.020799605175852776,
0.009112086147069931,
0.03127829357981682,
-0.023605136200785637,
0.02783386968076229,
0.0035549625754356384,
-0.00783342681825161,
0.029842717573046684,
0.01585630141198635,
0.01938670314848423,
0.019637450575828552,
0.01839827373623848,
-0.027249500155448914,
-0.013140988536179066,
0.009387468919157982,
0.020397614687681198,
-0.008084801957011223,
-0.000046985293010948226,
0.023883381858468056,
0.03088492527604103,
0.013789750635623932,
0.012662823311984539,
-0.04597017168998718,
0.009095150977373123,
-0.031080154702067375,
-0.012088998220860958,
0.016220031306147575,
-0.028761697933077812,
-0.0024735128972679377,
0.019607026129961014,
0.01716749370098114,
0.03369840607047081,
0.012755381874740124,
-0.014276535250246525,
-0.013617254793643951,
-0.016435502097010612,
-0.02982979081571102,
-0.007552866358309984,
0.02209615148603916,
0.03297030180692673,
-0.02645115926861763,
-0.010310186073184013,
0.008601921610534191,
0.026536451652646065,
0.019964484497904778,
-0.015308480709791183,
0.006225548218935728,
6.75750853859042e-33,
-0.016990195959806442,
-0.017304953187704086,
-0.031131494790315628,
0.010541366413235664,
0.027114978060126305,
-0.04253614321351051,
0.02431493252515793,
0.013430094346404076,
-0.024593986570835114,
0.026359912008047104,
-0.032106440514326096,
-0.02630760334432125,
-0.0005703369970433414,
0.046505771577358246,
0.059443432837724686,
-0.0040934281423687935,
0.006226794328540564,
0.01958944834768772,
-0.012519963085651398,
-0.013391750864684582,
-0.024851588532328606,
-0.0012382363202050328,
0.00626394571736455,
0.004934940952807665,
0.06496885418891907,
0.03501598536968231,
-0.006572402082383633,
0.011008752509951591,
0.001548998523503542,
-0.011610609479248524,
0.0160851888358593,
-0.03889375925064087,
-0.0005546718603000045,
-0.03239430487155914,
-0.01343347504734993,
0.04194973409175873,
0.016628723591566086,
-0.018122969195246696,
0.014970876276493073,
-0.024199649691581726,
0.025130435824394226,
-0.014814378693699837,
-0.01356755755841732,
0.02375347726047039,
0.0012122242478653789,
0.03690899536013603,
0.019125409424304962,
0.02012241631746292,
0.009632626548409462,
-0.007692452985793352,
-0.025536013767123222,
0.009877667762339115,
-0.0008253541891463101,
0.01678394339978695,
0.018492108210921288,
-0.019218772649765015,
-0.026816166937351227,
-0.001967278541997075,
-0.03811874985694885,
0.00022180764062795788,
-0.021921470761299133,
0.02480817213654518,
-0.011967819184064865,
0.008134108036756516,
-0.0018313095206394792,
-0.0186140313744545,
-0.024474017322063446,
-0.044925641268491745,
-0.0033837624359875917,
-0.005970185622572899,
-0.019107962027192116,
-0.01503213681280613,
-0.0028719697147607803,
0.026370439678430557,
0.023197850212454796,
0.015133538283407688,
-0.018885452300310135,
0.014291561208665371,
-0.029288290068507195,
0.02789388969540596,
0.00850400049239397,
-0.03729194030165672,
-0.010429054498672485,
0.021435996517539024,
0.0005798301426693797,
0.0009742621914483607,
-0.036866892129182816,
-0.0024624152574688196,
0.022523270919919014,
-0.016194354742765427,
0.027495408430695534,
0.0040692295879125595,
-0.0035264617763459682,
0.014269258826971054,
-0.017559267580509186,
-1.2813836214320418e-8,
-0.007354854140430689,
-0.02359701134264469,
-0.012108061462640762,
0.02906685322523117,
0.05828722193837166,
0.030928099527955055,
-0.00018482688756193966,
-0.032800741493701935,
-0.012485205195844173,
0.0034519971814006567,
0.04881231114268303,
-0.015119054354727268,
0.024062160402536392,
0.03294031694531441,
-0.003968562465161085,
-0.04901950806379318,
0.023256594315171242,
-0.04218408837914467,
0.01951047033071518,
-0.009656889364123344,
0.03021053969860077,
0.01410763431340456,
-0.020931527018547058,
-0.005540518090128899,
-0.005570920649915934,
-0.0008809193968772888,
-0.006047528702765703,
-0.05791020765900612,
0.030094251036643982,
-0.018307920545339584,
0.059538912028074265,
-0.04287657141685486,
-0.0018467925256118178,
0.003861803561449051,
-0.023735428228974342,
-0.05507832393050194,
0.031663838773965836,
0.015624113380908966,
0.0053254677914083,
0.00739436037838459,
-0.023789262399077415,
-0.0009150050464086235,
-0.016490574926137924,
-0.026634396985173225,
-0.032580506056547165,
0.0011979066766798496,
-0.02421633154153824,
0.012208024971187115,
0.006638379767537117,
-0.047164447605609894,
-0.004004772286862135,
0.002301642904058099,
0.041344862431287766,
0.027991021052002907,
0.018628975376486778,
0.036333128809928894,
0.022505374625325203,
-0.013009171932935715,
-0.02429042011499405,
-0.01598784327507019,
-0.004128945991396904,
-0.0054708365350961685,
-0.015500543639063835,
-0.03387412428855896
] | r-i-write-more-in-the-last-week-of-the-month-or-do-i | https://markhneedham.com/blog/2015/07/12/r-i-write-more-in-the-last-week-of-the-month-or-do-i |
false | 2015-07-25 23:05:33 | Neo4j: From JSON to CSV to LOAD CSV via jq | [
"neo4j"
] | [
"neo4j"
] | In my last blog post I showed http://www.markhneedham.com/blog/2015/07/23/neo4j-loading-json-documents-with-cypher/[how to import a Chicago crime categories & sub categories JSON document] using Neo4j's cypher query language via the py2neo driver. While this is a good approach for people with a developer background, many of the users I encounter aren't developers and favour using Cypher via the Neo4j browser.
If we're going to do this we'll need to transform our JSON document into a CSV file so that we can use the LOAD CSV command on it. Michael pointed me to the http://stedolan.github.io/jq/[jq] tool which comes in very handy.
To recap, this is a part of the JSON file:
[source,text]
----
{
"categories": [
{
"name": "Index Crime",
"sub_categories": [
{
"code": "01A",
"description": "Homicide 1st & 2nd Degree"
},
]
},
{
"name": "Non-Index Crime",
"sub_categories": [
{
"code": "01B",
"description": "Involuntary Manslaughter"
},
]
},
{
"name": "Violent Crime",
"sub_categories": [
{
"code": "01A",
"description": "Homicide 1st & 2nd Degree"
},
]
}
]
}
----
We want to get one row for each sub category which contains three columns - category name, sub category code, sub category description.
First we need to pull out the categories:
[source,bash]
----
$ jq ".categories[]" categories.json
{
"name": "Index Crime",
"sub_categories": [
{
"code": "01A",
"description": "Homicide 1st & 2nd Degree"
},
]
}
{
"name": "Non-Index Crime",
"sub_categories": [
{
"code": "01B",
"description": "Involuntary Manslaughter"
},
]
}
{
"name": "Violent Crime",
"sub_categories": [
{
"code": "01A",
"description": "Homicide 1st & 2nd Degree"
},
]
}
----
Next we want to create a row for each sub category with the category alongside it. We can use the pipe function to combine the two selectors:
[source,bash]
----
$ jq ".categories[] | {name: .name, sub_category: .sub_categories[]}" categories.json
{
"name": "Index Crime",
"sub_category": {
"code": "01A",
"description": "Homicide 1st & 2nd Degree"
}
}
...
{
"name": "Non-Index Crime",
"sub_category": {
"code": "01B",
"description": "Involuntary Manslaughter"
}
}
...
{
"name": "Violent Crime",
"sub_category": {
"code": "01A",
"description": "Homicide 1st & 2nd Degree"
}
}
----
Now we want to un-nest the sub category:
[source,bash]
----
$ jq ".categories[] | {name: .name, sub_category: .sub_categories[]} | [.name, .sub_category.code, .sub_category.description]" categories.json
[
"Index Crime",
"01A",
"Homicide 1st & 2nd Degree"
]
[
"Non-Index Crime",
"01B",
"Involuntary Manslaughter"
]
[
"Violent Crime",
"01A",
"Homicide 1st & 2nd Degree"
]
----
And finally let's use the +++<cite>+++@csv+++</cite>+++ filter to generate CSV lines:
[source,bash]
----
$ jq ".categories[] | {name: .name, sub_category: .sub_categories[]} | [.name, .sub_category.code, .sub_category.description] | @csv" categories.json
"\"Index Crime\",\"01A\",\"Homicide 1st & 2nd Degree\""
"\"Index Crime\",\"02\",\"Criminal Sexual Assault\""
"\"Index Crime\",\"03\",\"Robbery\""
"\"Index Crime\",\"04A\",\"Aggravated Assault\""
"\"Index Crime\",\"04B\",\"Aggravated Battery\""
"\"Index Crime\",\"05\",\"Burglary\""
"\"Index Crime\",\"06\",\"Larceny\""
"\"Index Crime\",\"07\",\"Motor Vehicle Theft\""
"\"Index Crime\",\"09\",\"Arson\""
"\"Non-Index Crime\",\"01B\",\"Involuntary Manslaughter\""
"\"Non-Index Crime\",\"08A\",\"Simple Assault\""
"\"Non-Index Crime\",\"08B\",\"Simple Battery\""
"\"Non-Index Crime\",\"10\",\"Forgery & Counterfeiting\""
"\"Non-Index Crime\",\"11\",\"Fraud\""
"\"Non-Index Crime\",\"12\",\"Embezzlement\""
"\"Non-Index Crime\",\"13\",\"Stolen Property\""
"\"Non-Index Crime\",\"14\",\"Vandalism\""
"\"Non-Index Crime\",\"15\",\"Weapons Violation\""
"\"Non-Index Crime\",\"16\",\"Prostitution\""
"\"Non-Index Crime\",\"17\",\"Criminal Sexual Abuse\""
"\"Non-Index Crime\",\"18\",\"Drug Abuse\""
"\"Non-Index Crime\",\"19\",\"Gambling\""
"\"Non-Index Crime\",\"20\",\"Offenses Against Family\""
"\"Non-Index Crime\",\"22\",\"Liquor License\""
"\"Non-Index Crime\",\"24\",\"Disorderly Conduct\""
"\"Non-Index Crime\",\"26\",\"Misc Non-Index Offense\""
"\"Violent Crime\",\"01A\",\"Homicide 1st & 2nd Degree\""
"\"Violent Crime\",\"02\",\"Criminal Sexual Assault\""
"\"Violent Crime\",\"03\",\"Robbery\""
"\"Violent Crime\",\"04A\",\"Aggravated Assault\""
"\"Violent Crime\",\"04B\",\"Aggravated Battery\""
----
The only annoying thing about this output is that all the double quotes are escaped. We can sort that out by passing the '-r' flag when we call jq:
[source,bash]
----
$ jq -r ".categories[] | {name: .name, sub_category: .sub_categories[]} | [.name, .sub_category.code, .sub_category.description] | @csv" categories.json
"Index Crime","01A","Homicide 1st & 2nd Degree"
"Index Crime","02","Criminal Sexual Assault"
"Index Crime","03","Robbery"
"Index Crime","04A","Aggravated Assault"
"Index Crime","04B","Aggravated Battery"
"Index Crime","05","Burglary"
"Index Crime","06","Larceny"
"Index Crime","07","Motor Vehicle Theft"
"Index Crime","09","Arson"
"Non-Index Crime","01B","Involuntary Manslaughter"
"Non-Index Crime","08A","Simple Assault"
"Non-Index Crime","08B","Simple Battery"
"Non-Index Crime","10","Forgery & Counterfeiting"
"Non-Index Crime","11","Fraud"
"Non-Index Crime","12","Embezzlement"
"Non-Index Crime","13","Stolen Property"
"Non-Index Crime","14","Vandalism"
"Non-Index Crime","15","Weapons Violation"
"Non-Index Crime","16","Prostitution"
"Non-Index Crime","17","Criminal Sexual Abuse"
"Non-Index Crime","18","Drug Abuse"
"Non-Index Crime","19","Gambling"
"Non-Index Crime","20","Offenses Against Family"
"Non-Index Crime","22","Liquor License"
"Non-Index Crime","24","Disorderly Conduct"
"Non-Index Crime","26","Misc Non-Index Offense"
"Violent Crime","01A","Homicide 1st & 2nd Degree"
"Violent Crime","02","Criminal Sexual Assault"
"Violent Crime","03","Robbery"
"Violent Crime","04A","Aggravated Assault"
"Violent Crime","04B","Aggravated Battery"
----
Excellent. The only thing left is to write a header and then direct the output into a CSV file and get it into Neo4j:
[source,bash]
----
$ echo "category,sub_category_code,sub_category_description" > categories.csv
$ jq -r ".categories[] |
{name: .name, sub_category: .sub_categories[]} |
[.name, .sub_category.code, .sub_category.description] |
@csv " categories.json >> categories.csv
----
[source,bash]
----
$ head -n10 categories.csv
category,sub_category_code,sub_category_description
"Index Crime","01A","Homicide 1st & 2nd Degree"
"Index Crime","02","Criminal Sexual Assault"
"Index Crime","03","Robbery"
"Index Crime","04A","Aggravated Assault"
"Index Crime","04B","Aggravated Battery"
"Index Crime","05","Burglary"
"Index Crime","06","Larceny"
"Index Crime","07","Motor Vehicle Theft"
"Index Crime","09","Arson"
----
[source,cypher]
----
LOAD CSV WITH HEADERS FROM "file:///Users/markneedham/projects/neo4j-spark-chicago/categories.csv" AS row
MERGE (c:CrimeCategory {name: row.category})
MERGE (sc:SubCategory {code: row.sub_category_code})
ON CREATE SET sc.description = row.sub_category_description
MERGE (c)-[:CHILD]->(sc)
----
And that's it!
image::{{<siteurl>}}/uploads/2015/07/graph-25.png[Graph 25,598] | null | null | [
0.01627742126584053,
-0.013039243407547474,
-0.0032594173680990934,
0.04066603630781174,
0.08287738263607025,
-0.0007174169877544045,
0.037933118641376495,
0.027718719094991684,
0.020371396094560623,
-0.019037678837776184,
-0.011798763647675514,
-0.004407747648656368,
-0.06732950359582901,
0.0048376224003732204,
-0.002053829375654459,
0.06940652430057526,
0.0661841481924057,
0.007564535830169916,
0.018005957826972008,
-0.016061028465628624,
0.026776280254125595,
0.05028391256928444,
0.009016761556267738,
0.036430880427360535,
0.036314912140369415,
0.007490485906600952,
-0.0072381882928311825,
0.002187616191804409,
-0.056588687002658844,
-0.004708918277174234,
0.0448671393096447,
-0.01700274646282196,
0.021159319207072258,
-0.014396695420145988,
0.021125853061676025,
0.022294681519269943,
-0.06202328950166702,
0.009239044040441513,
-0.010073305107653141,
0.0195317342877388,
-0.04656601324677467,
0.04305355250835419,
-0.010097412392497063,
0.02400696836411953,
-0.042418815195560455,
-0.011317986063659191,
-0.04636343568563461,
0.037017885595560074,
0.015025335364043713,
-0.013850376941263676,
-0.06346268951892853,
0.0248352512717247,
-0.023565955460071564,
0.01018089521676302,
0.014608720317482948,
0.04571550711989403,
0.017785482108592987,
-0.07507270574569702,
0.04447193443775177,
-0.014441529288887978,
0.002423531375825405,
-0.01907297782599926,
0.01505986601114273,
0.016130028292536736,
0.0012418619589880109,
-0.04000963270664215,
-0.012995381839573383,
0.07450094819068909,
-0.05707531049847603,
-0.010502772405743599,
0.0288716871291399,
0.033529531210660934,
-0.0050614397041499615,
-0.005516655743122101,
-0.011646144092082977,
-0.04144781827926636,
0.01662343740463257,
0.043916285037994385,
0.020296111702919006,
0.059023167937994,
-0.029726143926382065,
0.032697856426239014,
-0.0008997690165415406,
0.032958827912807465,
-0.011498740874230862,
-0.04743994399905205,
-0.026405857875943184,
-0.013575696386396885,
-0.04673459753394127,
0.04085960611701012,
0.014173549599945545,
-0.034586090594530106,
0.022438550367951393,
0.006689534056931734,
-0.012958587147295475,
0.029042888432741165,
0.021711038425564766,
0.011656912975013256,
-0.0026868998538702726,
-0.010214738547801971,
-0.03675004094839096,
-0.033400461077690125,
0.00013474503066390753,
0.0015005929162725806,
-0.07253236323595047,
-0.03780684620141983,
-0.009857538156211376,
-0.013353325426578522,
-0.00018784035637509078,
-0.006260313093662262,
-0.024155965074896812,
-0.005442757625132799,
-0.014482866041362286,
0.003434505546465516,
-0.07167915254831314,
0.06655539572238922,
0.0047563412226736546,
-0.0296939630061388,
-0.02114677056670189,
0.017249997705221176,
0.04820185899734497,
0.009313496761023998,
-0.01263758260756731,
0.0815916433930397,
0.017197582870721817,
0.025214657187461853,
0.014396248385310173,
0.05089408531785011,
0.01541139930486679,
-0.06806342303752899,
-0.011900561861693859,
0.058827679604291916,
-0.007824291475117207,
0.020986350253224373,
-0.002099898410961032,
-0.041339050978422165,
-0.01193483080714941,
0.029325876384973526,
0.0472407266497612,
0.03434149920940399,
0.004130504094064236,
-0.055686116218566895,
0.039043523371219635,
-0.007195626851171255,
0.02432066760957241,
0.006903963629156351,
-0.04632968083024025,
-0.018867645412683487,
-0.027694519609212875,
0.0049920035526156425,
0.02178528532385826,
0.028948361054062843,
0.039376623928546906,
-0.03241942077875137,
0.004377334378659725,
0.11017610132694244,
0.040120918303728104,
0.00428425008431077,
-0.022009020671248436,
0.00933228712528944,
0.0471620187163353,
0.030215352773666382,
-0.0018909648060798645,
0.032652243971824646,
-0.02985004521906376,
-0.02713632397353649,
-0.007780143059790134,
0.06737470626831055,
-0.009120470844209194,
0.012994318269193172,
-0.022544749081134796,
-0.06542733311653137,
0.06581791490316391,
-0.03982536867260933,
-0.014422068372368813,
0.048714153468608856,
0.07757081836462021,
0.036564990878105164,
0.01685965806245804,
-0.001935994136147201,
-0.0841129720211029,
0.0405099131166935,
0.004265458323061466,
-0.006271481513977051,
0.0051161665469408035,
-0.003359288675710559,
0.06965313851833344,
0.016697747632861137,
0.0029531605541706085,
0.046495500952005386,
-0.0825011134147644,
-0.06871428340673447,
-0.009564957581460476,
-0.012263813056051731,
0.060432396829128265,
-0.02546776831150055,
0.027754655107855797,
0.061352286487817764,
-0.008153483271598816,
0.04808473587036133,
0.018469786271452904,
-0.008164468221366405,
0.040315233170986176,
-0.05494197458028793,
-0.04641273617744446,
0.05358019843697548,
0.02694961614906788,
-0.03397641330957413,
-0.04038684070110321,
0.018896985799074173,
-0.0043844482861459255,
-0.017555516213178635,
0.03822707384824753,
-0.04373225197196007,
0.03816300630569458,
0.026599545031785965,
0.04884963110089302,
-0.009312884882092476,
0.027779720723628998,
-0.042853303253650665,
0.025700869038701057,
0.005992418620735407,
-0.02968522533774376,
-0.009423757903277874,
-0.013537800870835781,
0.11694624274969101,
0.05924614891409874,
-0.021341966465115547,
-0.049492672085762024,
0.020084388554096222,
0.020353611558675766,
-0.034020960330963135,
0.01648855023086071,
-0.025099175050854683,
-0.025975938886404037,
-0.009105938486754894,
-0.0451391264796257,
-0.03343617543578148,
-0.0057645635679364204,
-0.022150659933686256,
0.018051650375127792,
0.051471125334501266,
-0.03104349598288536,
0.04863884299993515,
0.0022431088145822287,
-0.006851477082818747,
-0.010406898334622383,
-0.03217701241374016,
-0.03314881771802902,
0.033894557505846024,
0.002925874898210168,
-0.001318921335041523,
0.055929236114025116,
-0.02907976135611534,
0.0189216248691082,
-0.028865765780210495,
-0.030332500115036964,
0.03238942474126816,
0.03315123915672302,
0.055375900119543076,
-0.001815520809032023,
0.05493061617016792,
-0.049030717462301254,
0.00829257257282734,
-0.015527226030826569,
-0.033811554312705994,
-0.04289981350302696,
-0.031567227095365524,
0.019587643444538116,
0.01841539517045021,
0.014343704096972942,
0.006060457322746515,
0.020219357684254646,
0.016222912818193436,
0.029313109815120697,
0.00309176929295063,
0.024271856993436813,
0.0112207792699337,
-0.005053292028605938,
-0.04268210753798485,
-0.04744064062833786,
0.048841118812561035,
-0.0668092891573906,
-0.01863463781774044,
-0.011513479053974152,
-0.07027693092823029,
0.05148593336343765,
-0.06705828011035919,
-0.04336678981781006,
-0.007301358971744776,
0.015414979308843613,
0.05156780779361725,
0.02311931736767292,
-0.006430861074477434,
0.060380831360816956,
-0.0011347676627337933,
0.010155264288187027,
0.01772400364279747,
0.0029690535739064217,
0.06500084698200226,
-0.018306057900190353,
0.044080741703510284,
0.04414338991045952,
-0.019412605091929436,
-0.0028858198784291744,
-0.0269914623349905,
0.0033247314859181643,
-0.007040558848530054,
-0.2955917418003082,
0.055147934705019,
-0.03465377166867256,
-0.052672721445560455,
-0.002513173269107938,
-0.00873203482478857,
-0.008862731978297234,
-0.04520807042717934,
-0.016969164833426476,
0.0057127452455461025,
-0.01760546676814556,
-0.04989805817604065,
-0.015036468394100666,
0.02532435953617096,
0.007741574198007584,
0.005385194439440966,
-0.01766486093401909,
-0.047411855310201645,
-0.009709769859910011,
0.03687812015414238,
-0.006680704187601805,
-0.0493658185005188,
-0.01123251486569643,
0.025314852595329285,
0.025756916031241417,
0.05118115618824959,
-0.09898772090673447,
0.037800006568431854,
-0.060181550681591034,
-0.02053874544799328,
0.004860482178628445,
-0.023608464747667313,
0.0078797098249197,
-0.012462605722248554,
-0.038776397705078125,
-0.01083880104124546,
0.06021161004900932,
0.008369640447199345,
-0.0033792490139603615,
0.021365424618124962,
-0.05472454056143761,
-0.04387217015028,
-0.021300071850419044,
-0.010924985632300377,
0.09713748842477798,
-0.012184194289147854,
-0.08368436992168427,
0.0073073008097708225,
-0.027865195646882057,
0.0664844661951065,
-0.042498305439949036,
-0.029811836779117584,
-0.02456025965511799,
0.04322246462106705,
-0.009819219820201397,
-0.025058720260858536,
-0.01978558674454689,
-0.010608887299895287,
-0.06455506384372711,
-0.03394339606165886,
0.007043026387691498,
-0.041329581290483475,
-0.0008459282689727843,
-0.030977563932538033,
-0.003511568997055292,
-0.0537533313035965,
-0.07636045664548874,
-0.038658980280160904,
0.06317195296287537,
0.02103422023355961,
-0.02860930934548378,
0.0579717792570591,
0.002541285939514637,
-0.10765159875154495,
-0.02569250389933586,
-0.01374131441116333,
-0.016501812264323235,
-0.002923649037256837,
-0.001456693047657609,
0.06058289110660553,
-0.04433601349592209,
-0.05836550146341324,
0.017871882766485214,
0.0015489808283746243,
-0.006806973833590746,
0.008287121541798115,
0.022818051278591156,
0.003930502571165562,
-0.023269396275281906,
0.0022456911392509937,
0.06988254189491272,
-0.02896876633167267,
-0.0038297572173178196,
-0.004118943586945534,
-0.0053647602908313274,
0.024498438462615013,
0.017131445929408073,
-0.026006076484918594,
-0.0012468844652175903,
0.038842152804136276,
0.03792377561330795,
-0.04390772432088852,
0.01655416563153267,
-0.025884384289383888,
-0.008612344041466713,
-0.018812520429491997,
-0.03501729667186737,
0.015090527012944221,
0.028465140610933304,
0.019535601139068604,
-0.018293088302016258,
-0.02649221569299698,
0.013840863481163979,
-0.03646198660135269,
-0.008614042773842812,
-0.01434241607785225,
0.026973962783813477,
0.015385843813419342,
0.04143340885639191,
-0.03685147315263748,
-0.06422529369592667,
0.02218778058886528,
0.027649512514472008,
0.000041337727452628314,
-0.07806245982646942,
-0.03517761826515198,
-0.012807991355657578,
-0.012891572900116444,
0.016086779534816742,
0.0040801893919706345,
-0.04325753450393677,
0.03701302409172058,
0.0029134408105164766,
-0.03368166834115982,
0.034515973180532455,
-0.022375352680683136,
-0.046410877257585526,
-0.03621632233262062,
0.035095203667879105,
0.0031666529830545187,
0.011860846541821957,
0.00623007258400321,
-0.006140816491097212,
0.0377427376806736,
0.030081691220402718,
0.00791339110583067,
0.022337788715958595,
0.004407769534736872,
0.014681458473205566,
-0.011710258200764656,
-0.01856558583676815,
-0.04504554718732834,
-0.003065766766667366,
-0.040838103741407394,
-0.03729035705327988,
-0.005458444822579622,
0.05363445356488228,
0.003778997343033552,
-0.03193903714418411,
-0.024868013337254524,
0.04229901358485222,
-0.06205717846751213,
0.0032036646734923124,
-0.020626327022910118,
0.011374764144420624,
0.05734541267156601,
-0.026614900678396225,
0.012655441649258137,
-0.02670900896191597,
0.012864996679127216,
0.017792288213968277,
0.025499073788523674,
-0.04272882640361786,
-0.004607089329510927,
0.006184283643960953,
-0.0070241354405879974,
-0.006374461110681295,
0.02239963784813881,
0.01987984962761402,
0.03628652170300484,
-0.008489826694130898,
-0.014774441719055176,
-0.003709562588483095,
0.02920878492295742,
0.05685057118535042,
0.03493847697973251,
-0.014939782209694386,
-0.012047099880874157,
-0.016685325652360916,
-0.014905630610883236,
-0.024548735469579697,
-0.005834916140884161,
-0.031180983409285545,
0.0005452182958833873,
-0.01811380498111248,
-0.06266307085752487,
0.043607354164123535,
-0.010317564010620117,
0.008244412019848824,
0.04816737771034241,
0.007305319420993328,
-0.0056360079906880856,
-0.006827061530202627,
0.035461243242025375,
0.04888983443379402,
-0.048804979771375656,
-0.02386336587369442,
-0.011201208457350731,
-0.005524246022105217,
-0.027042800560593605,
0.017093300819396973,
-0.059990450739860535,
-0.047808922827243805,
-0.025381993502378464,
0.013746180571615696,
-0.034427378326654434,
-0.03539476543664932,
0.00009864321327768266,
-0.009591014124453068,
-0.0060730865225195885,
0.004894068464636803,
0.01096978597342968,
0.015155212953686714,
-0.004878389649093151,
0.0009817715035751462,
0.06422217935323715,
-0.033416640013456345,
-0.012187808752059937,
0.020986096933484077,
-0.007079880218952894,
0.017725804820656776,
-0.020035546272993088,
0.04088229686021805,
0.028752440586686134,
-0.02756742760539055,
-0.00531470263376832,
-0.0507538840174675,
0.017807625234127045,
-0.00376900564879179,
0.062475427985191345,
0.003015348222106695,
-0.009182833135128021,
-0.026109259575605392,
-0.0007309213397093117,
-0.022786874324083328,
-0.0017915940843522549,
-0.010053534060716629,
-0.017890626564621925,
0.020831968635320663,
0.0479641817510128,
0.014374655671417713,
0.02645239420235157,
-0.013514496386051178,
-0.04998812824487686,
0.05574222654104233,
-0.05280730128288269,
-0.029387423768639565,
-0.00529785081744194,
-0.032529234886169434,
0.006812086328864098,
0.0185193233191967,
0.025667497888207436,
-0.04297300800681114,
0.06838250160217285,
0.0457584485411644,
0.024493923410773277,
0.021545160561800003,
-0.016506632789969444,
0.036985453218221664,
-0.031201468780636787,
-0.025596920400857925,
-0.08307214826345444,
0.027347136288881302,
0.0653105229139328,
-0.0008311740821227431,
0.009610934183001518,
0.008396114222705364,
-0.027707476168870926,
0.008046240545809269,
-0.06332411617040634,
-0.022259516641497612,
0.04006408154964447,
-0.031654782593250275,
0.005196675658226013,
-0.011984358541667461,
-0.06343958526849747,
0.026605544611811638,
0.06260636448860168,
-0.03522946313023567,
-0.025222185999155045,
-0.032567206770181656,
0.05576888099312782,
-0.004399617202579975,
0.0403534434735775,
0.001492402283474803,
-0.02332529053092003,
0.06834306567907333,
0.01482466608285904,
0.01914558745920658,
0.04263168200850487,
-0.015477042645215988,
0.03789854422211647,
0.03063778020441532,
-0.016557864844799042,
0.004285675473511219,
0.027113426476716995,
-0.020668819546699524,
-0.06453769654035568,
0.04339886084198952,
0.02145708166062832,
-0.02681521512567997,
-0.0389384888112545,
0.06803741306066513,
0.016708826646208763,
-0.04062739759683609,
-0.04314885288476944,
0.04133688658475876,
-0.03418589383363724,
-0.03342372179031372,
-0.0441284105181694,
0.015097370371222496,
-0.023664046078920364,
0.04858165979385376,
-0.02750253863632679,
0.0011472089681774378,
0.07268070429563522,
-0.016396934166550636,
0.003728704759851098,
-0.004201306030154228,
0.08415335416793823,
0.08151296526193619,
0.0498245507478714,
0.004568386357277632,
0.07837895303964615,
-0.011071441695094109,
-0.025333881378173828,
-0.001966658281162381,
-0.01054470706731081,
0.0012600189074873924,
0.00648482795804739,
0.0072891972959041595,
0.05966584011912346,
-0.04129326716065407,
0.09404395520687103,
-0.013494821265339851,
-0.01906641200184822,
-0.005081428214907646,
-0.01885676570236683,
0.02446969971060753,
0.0796319767832756,
0.00882548838853836,
0.04149548336863518,
-0.044338107109069824,
-0.03150320425629616,
0.023986689746379852,
0.0016552472952753305,
-0.035825394093990326,
0.02203555963933468,
-0.04028083384037018,
0.008782344870269299,
0.0018920140573754907,
0.04589279368519783,
0.10485953092575073,
-0.03736616298556328,
0.004918139893561602,
-0.003121316432952881,
0.01672869734466076,
-0.0008977656834758818,
0.0074785915203392506,
-0.028870705515146255,
-0.030867738649249077,
-0.008701903745532036,
-0.05895942077040672,
-0.024944283068180084,
-0.019832618534564972,
-0.02999395877122879,
0.022246643900871277,
-0.011435682885348797,
-0.01379710528999567,
-0.0034415018744766712,
-0.011284669861197472,
-0.01781497709453106,
-0.05770188942551613,
-0.03953944891691208,
-0.022694755345582962,
-0.06877105683088303,
-0.018411220982670784,
0.01591538079082966,
-0.0010676527163013816,
-0.009606671519577503,
0.008778209798038006,
-0.021921904757618904,
-0.017059773206710815,
0.0511656180024147,
-0.04287106171250343,
-0.001889177830889821,
0.021982330828905106,
0.027792461216449738,
0.0061833676882088184,
0.032479286193847656,
0.04281413182616234,
-0.0030397269874811172,
-0.009606311097741127,
-0.02812032215297222,
0.006419425830245018,
0.0456203892827034,
0.022192711010575294,
0.00484485225751996,
-0.07931460440158844,
-0.00044197356328368187,
0.009392390958964825,
-0.016673283651471138,
-0.07675043493509293,
0.011184461414813995,
0.04014580324292183,
0.01921454630792141,
0.05581977963447571,
-0.004018518608063459,
-0.0017236737767234445,
-0.018695436418056488,
0.015988875180482864,
-0.02163827046751976,
0.002276480896398425,
0.04820367321372032,
-0.01939285360276699,
0.07743905484676361,
0.023099850863218307,
-0.03929617255926132,
-0.020554879680275917,
-0.027488861232995987,
0.009307978674769402,
-0.0019104586681351066,
-0.030856896191835403,
-0.021202506497502327,
-0.03607289865612984,
-0.08189545571804047,
-0.04067371413111687,
-0.003935604821890593,
-0.020702384412288666,
-0.02176586352288723,
0.00629414664581418,
-0.0054922206327319145,
-0.032681409269571304,
0.03460877761244774,
-0.05717350170016289,
0.050632212311029434,
-0.024324605241417885,
-0.012161893770098686,
-0.02536584623157978,
0.00520775793120265,
-0.019137317314743996,
0.014178895391523838,
0.006821220275014639,
-0.05856091529130936,
0.009403766132891178,
-0.016159728169441223,
0.0286899134516716,
0.03409146890044212,
0.01389195118099451,
-0.005876948591321707
] | [
-0.0530366376042366,
-0.027310268953442574,
-0.01760154217481613,
-0.02799648605287075,
0.08348458260297775,
-0.0254240520298481,
-0.008546065539121628,
0.013170354999601841,
-0.008006459102034569,
-0.003553708316758275,
0.00031023466726765037,
-0.007829699665307999,
-0.0239472147077322,
0.003518190700560808,
0.08137331902980804,
-0.023451486602425575,
-0.015784934163093567,
-0.041433922946453094,
-0.062165942043066025,
0.063385009765625,
-0.04975001513957977,
-0.046875350177288055,
-0.020095136016607285,
-0.06513536721467972,
-0.01717057265341282,
0.025402212515473366,
0.04537878930568695,
-0.013060803525149822,
-0.025099681690335274,
-0.1966509222984314,
0.005522946361452341,
-0.0007428660173900425,
0.003961592447012663,
0.008056637831032276,
0.008312389254570007,
0.010947379283607006,
0.036393020302057266,
-0.008166026324033737,
0.012693908996880054,
0.059163425117731094,
0.029209790751338005,
0.018336400389671326,
-0.06246967986226082,
-0.020307715982198715,
0.034010786563158035,
-0.007663888856768608,
-0.012347092851996422,
-0.011467036791145802,
-0.02229866199195385,
0.02758578024804592,
-0.04212193191051483,
-0.022926030680537224,
-0.013390736654400826,
0.000003468502882242319,
-0.022321833297610283,
0.03077685460448265,
0.026418276131153107,
0.06941065937280655,
0.02744355984032154,
0.060084354132413864,
0.0011778020998463035,
0.02475387044250965,
-0.11572646349668503,
0.08651243895292282,
-0.009756035171449184,
0.014549422077834606,
-0.07142292708158493,
-0.01585100032389164,
-0.028060952201485634,
0.07128603011369705,
-0.0006897025741636753,
-0.005997660104185343,
-0.040264520794153214,
0.07307625561952591,
-0.017607687041163445,
0.003392457263544202,
-0.001501012477092445,
0.020744841545820236,
0.03893643245100975,
-0.03432954475283623,
-0.0623709112405777,
0.003306513885036111,
-0.033594101667404175,
-0.02426047995686531,
-0.027576366439461708,
0.036839038133621216,
-0.03591401129961014,
0.044856682419776917,
0.001675029401667416,
0.018816443160176277,
0.0584978349506855,
0.006385409273207188,
0.07541249692440033,
0.05209679529070854,
-0.0968267172574997,
-0.028602389618754387,
-0.0008795034955255687,
0.04031471535563469,
0.007844757288694382,
0.3980312943458557,
0.002467363839969039,
-0.03647515922784805,
0.049930356442928314,
0.03061560168862343,
0.0009399958653375506,
-0.004817611072212458,
0.004974795039743185,
-0.050892945379018784,
0.050470877438783646,
-0.01800127886235714,
0.010416951961815357,
-0.012425263412296772,
0.02786739356815815,
-0.08826059103012085,
0.00025801078299991786,
-0.009831128641963005,
0.053786031901836395,
0.021699074655771255,
-0.021883724257349968,
0.02715367265045643,
0.03213850408792496,
-0.007314908318221569,
0.019290650263428688,
-0.013158230111002922,
0.022330522537231445,
0.02307693101465702,
0.005637757014483213,
0.03379659354686737,
0.05048653110861778,
0.029620938003063202,
0.021324213594198227,
0.00841557141393423,
-0.06823282688856125,
0.03158870339393616,
-0.023543138056993484,
-0.004324201960116625,
0.038310758769512177,
-0.040023673325777054,
-0.013594454154372215,
0.023020893335342407,
-0.0031995675526559353,
-0.02378809079527855,
0.024793775752186775,
0.01628936640918255,
-0.021846186369657516,
0.10082477331161499,
-0.014181114733219147,
-0.05092732608318329,
-0.008933822624385357,
-0.04394381865859032,
-0.011146513745188713,
0.05726949870586395,
0.01325953472405672,
-0.08550408482551575,
-0.0026845564134418964,
0.025231001898646355,
0.09013815969228745,
-0.025512289255857468,
-0.07802346348762512,
0.0037060314789414406,
0.01077511440962553,
-0.05794598162174225,
-0.015184557996690273,
0.07651514559984207,
0.042053669691085815,
-0.11795731633901596,
-0.013909300789237022,
0.00509654963389039,
0.02877829410135746,
-0.08930589258670807,
0.013315449468791485,
0.028060315176844597,
-0.06389585882425308,
-0.010814799927175045,
0.06907366216182709,
-0.00652300613000989,
-0.05211243778467178,
0.008799096569418907,
0.041491780430078506,
0.011323485523462296,
-0.029498489573597908,
-0.0028462079353630543,
-0.04220493882894516,
0.008267710916697979,
-0.0677531361579895,
-0.06373511254787445,
-0.049345359206199646,
0.031782206147909164,
-0.02276383899152279,
-0.028545768931508064,
-0.014186535030603409,
-0.004616180434823036,
-0.05972889065742493,
0.057039275765419006,
-0.029409077018499374,
-0.017832620069384575,
-0.008719589561223984,
-0.005949369631707668,
-0.01479028444737196,
-0.023169666528701782,
0.03229358047246933,
0.029789242893457413,
-0.00665110070258379,
0.037328194826841354,
-0.04206973686814308,
0.016491401940584183,
0.06950251013040543,
-0.054351940751075745,
0.03425903618335724,
0.022524338215589523,
-0.049974046647548676,
0.022430259734392166,
-0.006242671981453896,
0.011261156760156155,
-0.005062402691692114,
-0.03899962827563286,
-0.009593341499567032,
-0.0005514101940207183,
0.04732465371489525,
0.04017137736082077,
-0.05143162980675697,
-0.02529076300561428,
-0.02005857229232788,
-0.358888179063797,
-0.015520647168159485,
-0.014785266481339931,
-0.0005179922445677221,
-0.014585919678211212,
-0.04164968058466911,
0.01926014944911003,
-0.03959580510854721,
0.0015151244588196278,
0.050553493201732635,
0.10230258107185364,
-0.0017020507948473096,
0.007503014523535967,
-0.08955412358045578,
0.0049669635482132435,
0.05883012339472771,
-0.000056093966122716665,
-0.016499638557434082,
-0.021154209971427917,
0.03791220858693123,
0.006402735598385334,
-0.06318885087966919,
-0.028364038094878197,
-0.039586737751960754,
0.013156821951270103,
-0.019660556688904762,
0.11726109683513641,
0.012400755658745766,
0.042271148413419724,
-0.054683867841959,
0.02953392267227173,
0.008992127142846584,
-0.016144199296832085,
-0.07206156104803085,
0.01330023817718029,
-0.05531931668519974,
0.009881016798317432,
0.019488433375954628,
-0.025163566693663597,
0.008154214359819889,
-0.04487834498286247,
-0.007271513808518648,
-0.03582360967993736,
-0.060157790780067444,
-0.021339433267712593,
0.0181159395724535,
-0.053863152861595154,
-0.013680869713425636,
0.023716865107417107,
0.06300555169582367,
0.005701286252588034,
0.026980146765708923,
0.02414265275001526,
0.06221428140997887,
-0.0024674630258232355,
-0.029735352843999863,
-0.04978427663445473,
-0.003482676576822996,
0.034130990505218506,
0.020840181037783623,
0.009538678452372551,
0.041431210935115814,
0.04802479222416878,
-0.09969949722290039,
0.016007689759135246,
0.004056755919009447,
0.011438269168138504,
0.027547650039196014,
0.03993726521730423,
-0.04046791419386864,
-0.04625159129500389,
0.0735701248049736,
0.002943230327218771,
0.037194427102804184,
0.03983588144183159,
0.042923834174871445,
-0.043670639395713806,
0.009322244673967361,
0.03536997735500336,
0.017839506268501282,
0.04017069563269615,
-0.008300099521875381,
0.056207045912742615,
-0.02852374128997326,
-0.009249258786439896,
0.08042939752340317,
0.00852073822170496,
-0.026717692613601685,
0.05356382951140404,
0.012493355199694633,
-0.0335720032453537,
0.0006416078540496528,
-0.008811064064502716,
-0.03914300724864006,
0.06043870002031326,
-0.011103303171694279,
-0.2583507299423218,
0.029981976374983788,
0.036069054156541824,
0.06943812966346741,
0.019801747053861618,
-0.008375260047614574,
0.032784074544906616,
-0.05193152651190758,
0.009185795672237873,
0.022291069850325584,
0.04754715785384178,
0.048989295959472656,
0.006670895032584667,
-0.027084914967417717,
0.007588908541947603,
-0.022917289286851883,
0.010930364020168781,
0.016626043245196342,
0.04185635596513748,
0.004902229178696871,
0.03328116983175278,
-0.016857417300343513,
0.1915750801563263,
0.053422003984451294,
-0.012002216652035713,
0.02175186015665531,
-0.02280782349407673,
0.008068438619375229,
0.03955206647515297,
-0.0007431549020111561,
-0.013065372593700886,
0.03512289747595787,
0.0010837760055437684,
0.06403138488531113,
0.019379789009690285,
-0.06665243208408356,
-0.040944039821624756,
0.056517425924539566,
0.03003084287047386,
-0.0524897500872612,
-0.028407741338014603,
0.015973586589097977,
-0.03677840158343315,
0.016359155997633934,
0.06310056895017624,
-0.04521818831562996,
-0.018001312389969826,
-0.02354958839714527,
-0.056298691779375076,
0.01984630711376667,
-0.01753123477101326,
-0.07406198978424072,
-0.01805982179939747,
-0.031735628843307495,
-0.003962970804423094,
0.08147715032100677,
0.005314580164849758,
-0.016568688675761223,
0.05483165383338928,
0.023372653871774673,
-0.017254458740353584,
-0.035712599754333496,
0.08088939636945724,
0.006915589328855276,
-0.010037343949079514
] | [
0.047308001667261124,
0.05899225175380707,
-0.045607637614011765,
0.043042849749326706,
-0.026243086904287338,
0.00994361937046051,
-0.04906638339161873,
0.015530860982835293,
0.008834400214254856,
-0.022798363119363785,
-0.015013420023024082,
-0.004703575745224953,
0.049265842884778976,
0.01312052272260189,
0.013339664787054062,
0.011226250790059566,
-0.039862364530563354,
0.06991849839687347,
0.02820698171854019,
-0.03315005078911781,
-0.023996779695153236,
-0.0022134825121611357,
0.05111895501613617,
-0.048990294337272644,
-0.05196290463209152,
0.022608596831560135,
-0.02333911694586277,
0.004652425646781921,
0.022569065913558006,
-0.07347530871629715,
-0.041407160460948944,
-0.046732887625694275,
-0.008987901732325554,
0.049004822969436646,
-0.01996464468538761,
-0.04900769516825676,
0.029516078531742096,
0.03674764186143875,
0.008665609173476696,
0.03860318660736084,
0.02573857642710209,
0.010069239884614944,
-0.029786190018057823,
-0.02853607013821602,
-0.0037165835965424776,
-0.0466972179710865,
-0.045163609087467194,
-0.021230297163128853,
0.004862830974161625,
-0.0126910749822855,
-0.05059047415852547,
-0.027384910732507706,
0.015734246000647545,
0.009998103603720665,
-0.013290437869727612,
-0.009354648180305958,
-0.045215386897325516,
0.0021717881318181753,
-0.010488449595868587,
-0.005857480224221945,
0.040231529623270035,
0.01675925776362419,
-0.06511321663856506,
-0.010855798609554768,
-0.011506468057632446,
-0.016413046047091484,
-0.02458508312702179,
0.001619070884771645,
0.0100903594866395,
0.014482973143458366,
0.0033036444801837206,
0.02411716990172863,
-0.060737233608961105,
-0.04081331938505173,
-0.01597888395190239,
-0.0023756937589496374,
0.06087704375386238,
-0.03217190504074097,
0.01666327938437462,
-0.0001781453174771741,
-0.011198561638593674,
0.013267559930682182,
-0.0057541183196008205,
0.0018644222291186452,
-0.04277251660823822,
-0.005007426720112562,
-0.017705218866467476,
-0.017097415402531624,
-0.0259077288210392,
0.03918899968266487,
0.00008144741877913475,
-0.013066439889371395,
0.00191827944945544,
0.009692545048892498,
-0.09642107039690018,
-0.001485512126237154,
0.03092028573155403,
0.002962815808132291,
0.014439729042351246,
0.802238404750824,
0.01191233191639185,
-0.019395694136619568,
-0.008507370948791504,
-0.005578531883656979,
0.024837417528033257,
0.02337552234530449,
0.03878616541624069,
0.01665935479104519,
-0.021851643919944763,
0.026107903569936752,
0.02638210542500019,
0.033576600253582,
-0.009238934144377708,
-0.005087603814899921,
0.024629905819892883,
0.07001497596502304,
0.005544571205973625,
0.045243892818689346,
-0.015101521275937557,
0.026317916810512543,
0.010248780250549316,
0.00807266402989626,
-0.01978709176182747,
-0.023631040006875992,
0.016267111524939537,
-0.14841841161251068,
-0.023187294602394104,
-7.352343944937022e-33,
0.05912249907851219,
-0.009762550704181194,
0.08093713968992233,
0.016422629356384277,
-0.011208922602236271,
-0.024664662778377533,
0.006726999767124653,
-0.02523520588874817,
-0.016056478023529053,
-0.01373718585819006,
0.005973963998258114,
0.0052228933200240135,
-0.010747300460934639,
-0.017414487898349762,
-0.0010352717945352197,
-0.0340314619243145,
0.013353470712900162,
-0.027441347017884254,
-0.012554542161524296,
0.002991063054651022,
0.017963849008083344,
0.021347424015402794,
0.024599144235253334,
0.04945956543087959,
-0.0049235331825912,
0.030482236295938492,
-0.017672594636678696,
-0.003628981299698353,
-0.010786131024360657,
-0.033342111855745316,
-0.050788622349500656,
0.057335298508405685,
-0.026898307725787163,
-0.02607421949505806,
0.006735118571668863,
-0.08097809553146362,
-0.0019843168556690216,
-0.013852831907570362,
-0.029125476256012917,
-0.04455750435590744,
-0.04767024517059326,
-0.004924813751131296,
-0.01412308868020773,
-0.042464204132556915,
-0.023744724690914154,
-0.03313484042882919,
0.023674629628658295,
0.02515152469277382,
-0.006471320986747742,
0.036821138113737106,
0.02751058153808117,
0.03212446719408035,
-0.0033887731842696667,
0.03193848580121994,
-0.015022444538772106,
0.04925559088587761,
0.017110580578446388,
-0.007930505089461803,
0.01784740388393402,
0.014611897058784962,
0.02994697168469429,
0.0027154937852174044,
-0.007446626201272011,
0.05144556611776352,
0.02312997356057167,
-0.00037862444878555834,
0.01826980523765087,
-0.0057839457876980305,
-0.02951653115451336,
0.058878012001514435,
-0.02114252746105194,
0.04741397127509117,
-0.015927819535136223,
-0.04164177551865578,
0.050086699426174164,
-0.06976770609617233,
-0.014044171199202538,
-0.012645894661545753,
0.016030069440603256,
0.02821986936032772,
-0.01599639281630516,
-0.006089473608881235,
0.008110451512038708,
-0.015513037331402302,
-0.01025529857724905,
-0.0007726553594693542,
0.042367931455373764,
0.0159340538084507,
0.01970760151743889,
0.023406323045492172,
0.02076527290046215,
0.05802743881940842,
-0.009174957871437073,
-0.032968081533908844,
-0.024635132402181625,
6.929121897602843e-33,
-0.0010941846994683146,
-0.024835720658302307,
-0.029019387438893318,
-0.005475854035466909,
-0.007873422466218472,
-0.009632397443056107,
0.0023599553387612104,
0.0045161377638578415,
-0.03564416989684105,
0.07501788437366486,
-0.024286674335598946,
-0.020587220788002014,
-0.007354676723480225,
0.012714458629488945,
0.07833193242549896,
0.027636941522359848,
-0.023590361699461937,
-0.03542543575167656,
-0.02724645286798477,
0.0009177707834169269,
0.026214169338345528,
0.029417281970381737,
0.006506246980279684,
0.05109540745615959,
0.005999935790896416,
-0.0403059646487236,
-0.007801782805472612,
0.01112685352563858,
-0.01822987198829651,
-0.023345954716205597,
-0.015974141657352448,
-0.04261428117752075,
0.0038840933702886105,
-0.031397074460983276,
-0.032354310154914856,
-0.0033723709639161825,
0.015690017491579056,
-0.0020704518537968397,
0.01615067385137081,
-0.0024824494030326605,
-0.012591812759637833,
0.04500063508749008,
-0.019684264436364174,
0.0643378272652626,
0.02574475295841694,
0.014882051385939121,
0.004636469762772322,
0.03268587216734886,
0.010919267311692238,
0.014851330779492855,
-0.015520863234996796,
0.01861373893916607,
-0.0008006847929209471,
0.04683292657136917,
0.023213839158415794,
-0.038428112864494324,
-0.02785092405974865,
-0.022246895357966423,
-0.018334224820137024,
0.015526345930993557,
-0.04706756770610809,
-0.0321895070374012,
-0.040469929575920105,
0.012739485129714012,
0.011760514229536057,
-0.0556076355278492,
-0.04457835853099823,
-0.008737866766750813,
0.0035813311114907265,
-0.0077505819499492645,
0.01066370215266943,
-0.005187103524804115,
-0.005316135939210653,
-0.00018579048628453165,
0.006097223609685898,
-0.02788105048239231,
-0.016099371016025543,
-0.007087287027388811,
-0.05040992051362991,
0.016596868634223938,
0.06382244825363159,
-0.02820083685219288,
0.03138190507888794,
0.01097676157951355,
0.026495905593037605,
0.003171429270878434,
-0.007822836749255657,
0.011247426271438599,
-0.019555306062102318,
0.015915745869278908,
0.023320958018302917,
-0.021991724148392677,
0.008355957455933094,
0.04492335021495819,
-0.031646523624658585,
-1.2564669304993004e-8,
-0.05337909981608391,
0.03204720467329025,
-0.019840968772768974,
0.018920034170150757,
0.009629650041460991,
0.019962308928370476,
-0.014844845049083233,
0.007779569830745459,
-0.015310087241232395,
0.014607306569814682,
0.039288897067308426,
0.014884458854794502,
0.011079899035394192,
-0.0016765224281698465,
0.009618927724659443,
-0.004578746855258942,
0.007445876486599445,
-0.019090652465820312,
0.029651040211319923,
0.027715032920241356,
-0.004641745239496231,
0.0429060161113739,
-0.053707316517829895,
0.022057410329580307,
0.009236067533493042,
-0.007180527318269014,
0.0007268181070685387,
-0.08452165871858597,
-0.02215854451060295,
-0.029986009001731873,
-0.021910302340984344,
-0.01419534720480442,
-0.01665741577744484,
-0.0010559412185102701,
-0.03825902193784714,
-0.04683389887213707,
0.04950149729847908,
0.007809381000697613,
0.011066521517932415,
0.035150617361068726,
0.04073086008429527,
0.010672559030354023,
-0.040008656680583954,
-0.027088971808552742,
-0.03669990599155426,
-0.005422377493232489,
-0.07169635593891144,
0.02169979363679886,
0.04763828590512276,
-0.029373876750469208,
-0.0014692688127979636,
-0.012200241908431053,
0.0017401434015482664,
0.046745460480451584,
0.0572291761636734,
0.008526567369699478,
0.017297785729169846,
0.025959480553865433,
0.0022768101189285517,
-0.011700592935085297,
0.04626791179180145,
0.041892196983098984,
-0.03303288295865059,
-0.010664515197277069
] | neo4j-from-json-to-csv-to-load-csv-via-jq | https://markhneedham.com/blog/2015/07/25/neo4j-from-json-to-csv-to-load-csv-via-jq |
false | 2015-09-27 22:02:07 | R: data.table - Comparing adjacent rows | [
"r-2",
"rstats"
] | [
"R"
] | As part of my exploration of the https://data.gov.uk/dataset/land-registry-monthly-price-paid-data[Land Registry price paid data set] I wanted to compare the difference between consecutive sales of properties.
This means we need to group the sales by a property identifier and then get the previous sale price into a column on each row unless it's the first sale in which case we'll have 'NA'. We can do this by creating a +++<cite>+++http://stackoverflow.com/questions/26291988/r-how-to-create-a-lag-variable-for-each-by-group[lag]+++</cite>+++ variable.
I'll use a simpler data set which is very similar in structure to the Land Registry's to demonstrate:
[source,r]
----
> blogDT = data.table(name = c("Property 1","Property 1","Property 1","Property 2","Property 2","Property 2"),
price = c(10000, 12500, 18000, 245000, 512000, 1000000))
> blogDT
name price
1: Property 1 10000
2: Property 1 12500
3: Property 1 18000
4: Property 2 245000
5: Property 2 512000
6: Property 2 1000000
----
We want to group by the 'name' column and then have the price on row 1 show on row 2, the price on row 2 on row 3, the price on row 4 on row 5 and the price on row 5 on row 6. To do that we'll introduce a 'lag.price' column:
[source,r]
----
> blogDT[, lag.price := c(NA, price[-.N]), by = name]
> blogDT
name price lag.price
1: Property 1 10000 NA
2: Property 1 12500 10000
3: Property 1 18000 12500
4: Property 2 245000 NA
5: Property 2 512000 245000
6: Property 2 1000000 512000
----
Next let's calculate the difference between the two prices:
[source,r]
----
> blogDT[, diff := price - lag.price]
> blogDT
name price lag.price diff
1: Property 1 10000 NA NA
2: Property 1 12500 10000 2500
3: Property 1 18000 12500 5500
4: Property 2 245000 NA NA
5: Property 2 512000 245000 267000
6: Property 2 1000000 512000 488000
----
Finally let's order the data table by the biggest price gains:
[source,r]
----
> blogDT[order(-diff)]
name price lag.price diff
1: Property 2 1000000 512000 488000
2: Property 2 512000 245000 267000
3: Property 1 18000 12500 5500
4: Property 1 12500 10000 2500
5: Property 1 10000 NA NA
6: Property 2 245000 NA NA
---- | null | null | [
0.024605870246887207,
-0.012245831079781055,
0.00567144900560379,
0.03798341751098633,
0.0849737673997879,
0.03019123151898384,
0.02508208155632019,
-0.008303449489176273,
0.030319632962346077,
0.002396443160250783,
-0.0037463780026882887,
-0.005621085874736309,
-0.053257301449775696,
0.04118051379919052,
-0.0015256264014169574,
0.09291540831327438,
0.08749761432409286,
-0.0013021237682551146,
0.017445620149374008,
-0.003218667581677437,
0.03082221932709217,
0.0577225498855114,
-0.0036881198175251484,
0.03765733167529106,
0.041248075664043427,
-0.004750295542180538,
0.023200564086437225,
-0.0009011125075630844,
-0.057797811925411224,
0.020081372931599617,
0.036205798387527466,
0.0041283052414655685,
0.0034883508924394846,
0.017048964276909828,
0.04330872744321823,
-0.010987786576151848,
0.0023385256063193083,
0.005418986082077026,
-0.03264545649290085,
-0.014915009960532188,
-0.07283483445644379,
0.01176748052239418,
-0.005816405639052391,
0.028593173250555992,
-0.020888328552246094,
-0.01025483664125204,
-0.04263532906770706,
-0.01259400974959135,
-0.020436717197299004,
0.029393261298537254,
-0.07099194079637527,
0.03434905782341957,
-0.009427638724446297,
-0.005081215873360634,
-0.018124843016266823,
0.06515531986951828,
-0.009538284502923489,
-0.06387978047132492,
0.016288863494992256,
-0.033331941813230515,
0.03731454163789749,
-0.0033642605412751436,
0.011399361304938793,
0.0036867852322757244,
0.03457345813512802,
-0.018869122490286827,
0.011872411705553532,
0.03298567235469818,
-0.035106103867292404,
0.007082355208694935,
-0.029082603752613068,
-0.01596296951174736,
0.012768441811203957,
0.02355971187353134,
-0.006256268359720707,
-0.024961160495877266,
-0.001217303448356688,
0.03541746735572815,
0.048785626888275146,
0.010172580368816853,
-0.0257043968886137,
-0.004800659138709307,
0.0005118523840792477,
0.013405545614659786,
0.01009684894233942,
-0.0590253621339798,
-0.04128735139966011,
-0.050914425402879715,
-0.057327624410390854,
0.07021107524633408,
0.0033840585965663195,
-0.030191250145435333,
0.0060982718132436275,
0.03375108167529106,
-0.032442230731248856,
-0.019034234806895256,
0.03432837128639221,
-0.028494877740740776,
-0.0031301751732826233,
0.0038717910647392273,
-0.05291745811700821,
-0.03321511670947075,
0.05080308020114899,
0.04424385726451874,
-0.07158689945936203,
0.0018032982479780912,
-0.04303240031003952,
0.0032331030815839767,
0.03660546988248825,
0.026853572577238083,
-0.03433166816830635,
0.01624508947134018,
-0.029521306976675987,
0.01778220944106579,
-0.0657161995768547,
0.04683150351047516,
0.02688882127404213,
-0.0036097588017582893,
0.008668933063745499,
0.013277314603328705,
0.0631316602230072,
-0.01871110498905182,
-0.043816715478897095,
0.06851903349161148,
-0.005369982682168484,
0.035764601081609726,
0.03395906090736389,
0.04977216571569443,
-0.03990044817328453,
-0.0691387951374054,
-0.0005037800292484462,
0.02341459132730961,
-0.01942681148648262,
0.010812493972480297,
0.005873065907508135,
-0.03727061673998833,
-0.010651483200490475,
0.003326272591948509,
0.08627086132764816,
0.03131945803761482,
0.03775066137313843,
-0.0008342623477801681,
0.011892730370163918,
-0.0027894226368516684,
0.02520299144089222,
0.023095551878213882,
0.0011831115698441863,
-0.057101935148239136,
-0.0417330376803875,
0.005290768574923277,
0.028196023777127266,
0.047568149864673615,
0.055560581386089325,
-0.01147216372191906,
0.011626188643276691,
0.09580879658460617,
0.01644306629896164,
0.01442877296358347,
-0.021400554105639458,
0.00004719569187727757,
0.0404650941491127,
0.02921808511018753,
0.03612331300973892,
0.031355053186416626,
0.0010816765716299415,
-0.018146643415093422,
0.006912548094987869,
0.07598476111888885,
-0.012534947134554386,
-0.029305754229426384,
-0.0680743083357811,
-0.047498706728219986,
0.06099948287010193,
-0.05136192589998245,
-0.0038735552225261927,
0.05822613090276718,
0.06877979636192322,
0.04001004993915558,
0.04358721524477005,
0.001866329344920814,
-0.06920846551656723,
0.032859474420547485,
0.00560814468190074,
0.021565327420830727,
0.06420540809631348,
-0.0015448975609615445,
0.071231909096241,
0.008831481449306011,
0.027876753360033035,
0.04286403954029083,
-0.06522207707166672,
-0.07118847966194153,
0.011124496348202229,
-0.02558266930282116,
0.024665577337145805,
-0.013866955414414406,
0.02402493543922901,
0.0585898831486702,
-0.009618373587727547,
0.04560561850667,
0.0032903568353503942,
0.014191003516316414,
0.0586811862885952,
-0.04070533066987991,
-0.01905890367925167,
0.003677194472402334,
-0.00015332625480368733,
-0.012846753001213074,
0.004592012148350477,
0.025404471904039383,
-0.021783461794257164,
0.00882747769355774,
0.04762857407331467,
-0.009829390794038773,
0.049350522458553314,
0.008274017833173275,
0.0589531846344471,
0.0047156922519207,
0.025539174675941467,
-0.03870652616024017,
0.038706496357917786,
0.025812212377786636,
-0.0166153647005558,
-0.010272794403135777,
-0.026074636727571487,
0.11282768845558167,
0.06813062727451324,
-0.008696150034666061,
-0.02363055944442749,
0.014628822915256023,
0.0015981566393747926,
-0.02278299070894718,
0.029767049476504326,
-0.05112830176949501,
0.03797217458486557,
0.010075394995510578,
-0.054300785064697266,
-0.02731328271329403,
0.0034135531168431044,
-0.024770941585302353,
-0.004632534924894571,
0.040235210210084915,
-0.012656883336603642,
0.05680466443300247,
0.019508177414536476,
-0.0027646662201732397,
-0.011309869587421417,
-0.00757551658898592,
-0.09033594280481339,
-0.0010994452750310302,
0.02189018204808235,
-0.006549175828695297,
0.03541071340441704,
-0.020426401868462563,
-0.02029568888247013,
-0.03852623701095581,
-0.037869833409786224,
-0.0009842236759141088,
0.04545966908335686,
0.04964378848671913,
-0.007709710858762264,
0.07595846801996231,
0.000295690493658185,
-0.026058215647935867,
0.0010254252701997757,
-0.04525570571422577,
-0.044316601008176804,
0.0018323856638744473,
-0.006136318203061819,
0.0014293513959273696,
0.025465350598096848,
-0.011629980988800526,
0.025465887039899826,
-0.0008100874838419259,
-0.005523849278688431,
-0.011895154602825642,
0.04178311303257942,
0.002432347973808646,
-0.006516701076179743,
-0.026517556980252266,
-0.002373327501118183,
0.041125260293483734,
-0.01766935922205448,
-0.0213477686047554,
0.022202935069799423,
-0.08629008382558823,
0.03562337905168533,
-0.07117906957864761,
-0.01824479177594185,
0.0313221700489521,
0.012612001039087772,
0.0156564898788929,
0.008851383812725544,
-0.010559504851698875,
0.06997935473918915,
0.009217220358550549,
-0.007011756766587496,
0.01585531048476696,
-0.02048424445092678,
0.022592494264245033,
-0.00996054895222187,
0.008353211916983128,
0.05369693040847778,
0.006810463964939117,
0.0031895397696644068,
-0.06801735609769821,
-0.008886193856596947,
-0.031826846301555634,
-0.2831062376499176,
0.03573760390281677,
-0.02860475517809391,
-0.04957658797502518,
0.018376708030700684,
-0.06618034839630127,
0.03228751942515373,
-0.047710150480270386,
-0.019429607316851616,
0.015781104564666748,
-0.01187243964523077,
-0.0800633653998375,
-0.023909371346235275,
0.0438903383910656,
0.013670098036527634,
0.02423335239291191,
0.015209788456559181,
-0.03657051920890808,
-0.007538742385804653,
0.06235368177294731,
0.00685533694922924,
-0.05480377376079559,
0.0007109486614353955,
0.04609813541173935,
0.03587974235415459,
0.0827295258641243,
-0.06915954500436783,
-0.01941259205341339,
-0.0695086419582367,
-0.01199349109083414,
0.025618020445108414,
0.012708527036011219,
0.014475741423666477,
-0.022646907716989517,
-0.001993266399949789,
-0.05328508839011192,
0.038891956210136414,
0.0290709026157856,
-0.005622774828225374,
0.0022084240335971117,
-0.039049576967954636,
-0.008415697142481804,
0.02068137936294079,
0.033941835165023804,
0.06261678785085678,
0.006820364389568567,
-0.06307138502597809,
0.0056078433990478516,
-0.0406806580722332,
0.06904314458370209,
-0.03492170572280884,
0.010059291496872902,
-0.008617769926786423,
0.026368342339992523,
-0.06294224411249161,
-0.01233005616813898,
-0.018600018694996834,
-0.015250356867909431,
-0.04746082052588463,
-0.01705578714609146,
-0.023027658462524414,
-0.04758841171860695,
0.017647288739681244,
-0.03503996878862381,
-0.0020618827547878027,
-0.06944218277931213,
-0.09526754915714264,
-0.01851196400821209,
0.06169360876083374,
0.035036601126194,
-0.04241387918591499,
-0.016096040606498718,
0.00046947316150180995,
-0.11399685591459274,
-0.005436075385659933,
0.002784231910482049,
0.036448583006858826,
-0.03797777742147446,
-0.00584869459271431,
0.05103491619229317,
-0.03482475131750107,
-0.05023287609219551,
0.03164275363087654,
0.006865418516099453,
0.015317930839955807,
-0.026825569570064545,
-0.008197731338441372,
0.014212158508598804,
-0.0330401286482811,
-0.01751619391143322,
0.07295186817646027,
-0.016097072511911392,
0.002967873588204384,
-0.024914178997278214,
-0.01750960201025009,
0.011695537716150284,
0.009749623946845531,
-0.023141955956816673,
-0.008148232474923134,
0.007765944115817547,
0.023920049890875816,
-0.07735320180654526,
0.019628088921308517,
-0.04422181844711304,
-0.021525133401155472,
-0.020830946043133736,
-0.04653335362672806,
0.04112401604652405,
0.012572401203215122,
0.008378252387046814,
-0.009690191596746445,
-0.02589106187224388,
0.021577058359980583,
-0.03787044435739517,
-0.008866597898304462,
-0.02547517605125904,
0.010846368037164211,
0.03610021620988846,
0.0051142266020178795,
-0.028662199154496193,
-0.05186886340379715,
-0.007581518962979317,
0.0015545979840680957,
-0.0397910475730896,
-0.05086519196629524,
0.0023608251940459013,
-0.009623532183468342,
-0.02485145442187786,
-0.003073727944865823,
0.005622418597340584,
-0.027130961418151855,
0.014359490014612675,
0.022399337962269783,
-0.043248146772384644,
0.011720472015440464,
-0.0032559994142502546,
-0.02924378588795662,
-0.013939171098172665,
0.008205646649003029,
0.021719634532928467,
-0.002776223234832287,
-0.02865264192223549,
0.03399084880948067,
0.04273930937051773,
0.036340564489364624,
0.010949675925076008,
0.02933911234140396,
0.00925865676254034,
0.024545885622501373,
0.00701832864433527,
-0.02156274951994419,
-0.006587423849850893,
0.004034751560539007,
-0.03002426028251648,
-0.01642659679055214,
-0.0307565126568079,
0.026519417762756348,
-0.004429637920111418,
-0.048173192888498306,
-0.04634750634431839,
0.0050528268329799175,
-0.019566934555768967,
-0.03691848739981651,
-0.02913559228181839,
0.010171623900532722,
0.06270131468772888,
-0.014861643314361572,
0.03459060564637184,
0.001884395256638527,
0.023367267102003098,
0.018446240574121475,
-0.01744667813181877,
-0.02302643656730652,
0.011532079428434372,
-0.018460717052221298,
-0.01446035411208868,
0.046495575457811356,
0.011740073561668396,
0.01884474977850914,
-0.01016593910753727,
0.00830583181232214,
0.012882933020591736,
-0.008123361505568027,
-0.001628673984669149,
0.04941139742732048,
0.03420364856719971,
-0.027353040874004364,
0.013656212948262691,
0.0008545860182493925,
-0.04027916118502617,
-0.014022769406437874,
-0.029766421765089035,
-0.03733908385038376,
-0.005890186410397291,
-0.030879992991685867,
-0.07869924604892731,
0.015286765061318874,
0.019848231226205826,
-0.013873336836695671,
0.012269224040210247,
-0.01758955419063568,
-0.011316841468214989,
-0.034753866493701935,
0.04861362650990486,
0.07476621866226196,
-0.03854069113731384,
0.018768975511193275,
-0.004072664771229029,
-0.016904817894101143,
-0.004410263616591692,
0.003269145730882883,
-0.06109870597720146,
-0.03480113297700882,
0.006013948004692793,
0.03572295978665352,
-0.039640191942453384,
-0.04629455506801605,
-0.054005108773708344,
0.011488676071166992,
-0.019670525565743446,
0.04311499372124672,
-0.0058289021253585815,
0.013520902022719383,
0.0015454577514901757,
-0.005583115853369236,
0.018850916996598244,
-0.033078696578741074,
-0.008673145435750484,
0.041494954377412796,
-0.019771633669734,
-0.0051122866570949554,
-0.02589079923927784,
0.023105263710021973,
0.03491084277629852,
-0.015173127874732018,
-0.006648227572441101,
-0.05559362843632698,
0.01668672077357769,
-0.018246056511998177,
0.0612630769610405,
-0.034906912595033646,
-0.02440677210688591,
-0.0239273551851511,
-0.008310718461871147,
0.010287134908139706,
0.003433933248743415,
-0.0023328198585659266,
-0.03197033703327179,
0.04229820892214775,
0.05774505063891411,
-0.019213510677218437,
-0.017301496118307114,
-0.019241591915488243,
-0.03221428766846657,
0.06951597332954407,
-0.06226591393351555,
-0.0279349647462368,
-0.013014371506869793,
-0.06225365027785301,
0.022901246324181557,
0.005548933520913124,
0.012061228975653648,
-0.03968246653676033,
0.07193171977996826,
0.05472559481859207,
0.03333668038249016,
0.04154111444950104,
0.0013072497677057981,
0.03865731880068779,
-0.03961602970957756,
-0.009942205622792244,
-0.09213776886463165,
0.009174645878374577,
0.016124358400702477,
0.02225627563893795,
-0.043108850717544556,
-0.015160423703491688,
-0.05078435689210892,
0.029483241960406303,
-0.06665012240409851,
-0.037495821714401245,
0.007668768987059593,
0.016342638060450554,
-0.018874516710639,
0.029427841305732727,
-0.02785232849419117,
0.009834452532231808,
0.04538699612021446,
-0.04850047826766968,
-0.01028823759406805,
-0.017591865733265877,
0.037990450859069824,
0.0007099614012986422,
0.0321846641600132,
-0.047428786754608154,
-0.030972318723797798,
0.08545394986867905,
0.030445069074630737,
0.011344214901328087,
0.05774126574397087,
-0.045983076095581055,
0.030523957684636116,
0.013244266621768475,
-0.022372107952833176,
0.0031710427720099688,
0.024578001350164413,
-0.0011796753387898207,
-0.04736046865582466,
0.015129242092370987,
0.014893324114382267,
-0.00689918315038085,
-0.05475578084588051,
0.07248193025588989,
-0.0018320040544494987,
-0.029409384354948997,
-0.07134835422039032,
0.011779116466641426,
-0.04066159948706627,
-0.021800518035888672,
-0.017247963696718216,
-0.0029331345576792955,
-0.05009806156158447,
0.05883588269352913,
-0.004113057628273964,
0.029370462521910667,
0.049608200788497925,
0.00027663237415254116,
-0.007869075983762741,
0.03753991797566414,
0.07146289944648743,
0.0643387958407402,
0.05400838702917099,
-0.013060087338089943,
0.07189115881919861,
-0.02554241754114628,
-0.04094451293349266,
0.005840778350830078,
-0.05108560249209404,
-0.02331332117319107,
-0.003007447812706232,
0.018778318539261818,
0.06872418522834778,
-0.02535102888941765,
0.06812071055173874,
-0.038094792515039444,
-0.013854333199560642,
0.02320931851863861,
-0.030269011855125427,
0.04674556851387024,
0.05558942258358002,
0.00031024470808915794,
0.057204652577638626,
0.025012463331222534,
-0.039758455008268356,
0.027950141578912735,
0.026355518028140068,
-0.00829551462084055,
-0.0018711176235228777,
-0.006877216510474682,
0.014680844731628895,
0.012414313852787018,
0.02640661597251892,
0.0648752972483635,
-0.00946707371622324,
-0.05397076532244682,
-0.0014345479430630803,
0.04674545302987099,
0.0014593754895031452,
0.008387120440602303,
0.013640100136399269,
0.013552021235227585,
-0.013216271996498108,
-0.022447576746344566,
-0.020694978535175323,
-0.01903463341295719,
-0.01131425704807043,
0.01160692423582077,
-0.030883144587278366,
0.020559871569275856,
0.04411138966679573,
0.004257290158420801,
-0.036587923765182495,
-0.04704062640666962,
-0.06539875268936157,
-0.038630615919828415,
-0.08341575413942337,
0.009117133915424347,
0.02212795428931713,
-0.0032609780319035053,
-0.014570077881217003,
-0.004191022366285324,
-0.021193116903305054,
-0.03234907612204552,
0.022852247580885887,
-0.05851583182811737,
-0.03321538120508194,
0.016462678089737892,
0.02891021966934204,
0.023871202021837234,
0.01693369820713997,
0.040719933807849884,
-0.001904196455143392,
-0.020225632935762405,
-0.022219721227884293,
0.0077080558985471725,
0.05070291459560394,
0.007350085768848658,
-0.003875501686707139,
-0.0527719147503376,
0.01517902035266161,
-0.021420856937766075,
-0.022577408701181412,
-0.06519627571105957,
0.019026726484298706,
0.025748446583747864,
-0.00922341737896204,
0.03682141751050949,
-0.011216085404157639,
0.0014636160340160131,
-0.010040417313575745,
-0.015709547325968742,
0.009515230543911457,
0.027566328644752502,
0.022452952340245247,
-0.03388994187116623,
0.060324497520923615,
0.02467152662575245,
-0.028673166409134865,
-0.04017876833677292,
-0.011006820946931839,
-0.017175672575831413,
0.004172456916421652,
-0.05431051179766655,
-0.05100978538393974,
-0.055790338665246964,
-0.06628815084695816,
-0.05480750650167465,
0.0011760987108573318,
-0.052108339965343475,
-0.011607001535594463,
-0.0008686981163918972,
0.033748090267181396,
-0.03532447665929794,
0.036132168024778366,
-0.03833378106355667,
0.02166798710823059,
-0.04034876823425293,
-0.014028054662048817,
0.018254779279232025,
0.013848423026502132,
-0.00527670793235302,
0.013027182780206203,
0.0027422793209552765,
-0.034857459366321564,
0.008279353380203247,
-0.024347739294171333,
0.033281803131103516,
0.009103300981223583,
0.010638459585607052,
0.011982393451035023
] | [
-0.03091360814869404,
-0.02473599463701248,
-0.013358871452510357,
0.011327862739562988,
0.08892015367746353,
-0.014908917248249054,
0.004375305026769638,
0.0005014528869651258,
0.02403763122856617,
-0.0008186838240362704,
0.019047221168875694,
-0.038997214287519455,
0.019601907581090927,
-0.004999998491257429,
0.03134433180093765,
-0.0025570769794285297,
-0.02084890753030777,
-0.048765987157821655,
-0.01778499037027359,
0.04702513664960861,
0.020041344687342644,
-0.04692055284976959,
-0.04307981953024864,
-0.03898337483406067,
0.05459186062216759,
0.017312467098236084,
0.005693918559700251,
-0.02052306942641735,
-0.031033074483275414,
-0.20972312986850739,
0.03243951499462128,
-0.020353984087705612,
0.032799363136291504,
-0.023566730320453644,
0.01818905584514141,
0.030275223776698112,
-0.02445443533360958,
0.031743574887514114,
0.03297004848718643,
0.020602647215127945,
0.015449725091457367,
0.009239391423761845,
-0.026618538424372673,
-0.022793881595134735,
0.01570514217019081,
-0.00705674197524786,
-0.00041094498010352254,
-0.010790118016302586,
-0.005687420256435871,
0.0470646396279335,
-0.05258769541978836,
-0.030833743512630463,
-0.020777519792318344,
-0.0061323135159909725,
-0.0034984927624464035,
0.04530442878603935,
0.002009340561926365,
0.05498545244336128,
0.03929194062948227,
0.009458767250180244,
0.05680915340781212,
-0.014085057191550732,
-0.17339105904102325,
0.09661775082349777,
0.007570153102278709,
0.010822438634932041,
-0.019478803500533104,
-0.006277803797274828,
-0.0281862523406744,
0.0749235451221466,
0.03536084666848183,
-0.007121048867702484,
-0.0369475893676281,
0.05642864108085632,
0.010223791934549809,
-0.03260979801416397,
-0.019085945561528206,
0.025194397196173668,
0.009954824112355709,
-0.049385786056518555,
-0.03585106134414673,
0.02107655256986618,
-0.030415458604693413,
-0.0439862422645092,
-0.02331515960395336,
0.006951591465622187,
0.01867925003170967,
0.036290161311626434,
0.038935720920562744,
0.02804083563387394,
0.0693463608622551,
0.005031019449234009,
-0.00448363134637475,
0.003398662433028221,
-0.09155233949422836,
-0.010733157396316528,
0.01543345395475626,
0.008612853474915028,
-0.002773385029286146,
0.37077513337135315,
-0.008605911396443844,
-0.005124048795551062,
0.0075747291557490826,
0.029510438442230225,
0.00034305141889490187,
-0.02071046456694603,
-0.03549766540527344,
-0.025022493675351143,
0.014128521084785461,
-0.01737125590443611,
-0.01789930649101734,
0.010528751648962498,
0.06118905171751976,
-0.06864333152770996,
-0.027593670412898064,
-0.006884724833071232,
0.006465204060077667,
-0.005503031890839338,
0.05177180469036102,
-0.020416725426912308,
-0.006541279144585133,
-0.004895687568932772,
0.02186533436179161,
0.005203351378440857,
-0.00779616879299283,
0.0020235409028828144,
0.07295583188533783,
0.06785145401954651,
0.045801930129528046,
-0.008719273842871189,
0.04105309396982193,
-0.03900934010744095,
-0.10961389541625977,
0.01310384925454855,
0.02314242534339428,
0.01632648892700672,
0.026983223855495453,
0.0077475691214203835,
0.013974569737911224,
0.02447035163640976,
-0.06834416836500168,
-0.028513366356492043,
0.011976005509495735,
0.00929737277328968,
-0.03506319224834442,
0.11910461634397507,
0.021494364365935326,
-0.0389125794172287,
-0.0506681390106678,
-0.0513727068901062,
-0.03179032355546951,
0.008267229422926903,
0.0037395586259663105,
-0.08642516285181046,
-0.021652722731232643,
0.04378369450569153,
0.08757086098194122,
-0.03060498647391796,
-0.048908837139606476,
-0.04585728421807289,
-0.012251190841197968,
-0.016677584499120712,
-0.06933552771806717,
0.0486648865044117,
0.034561894834041595,
-0.12647897005081177,
-0.033918220549821854,
0.014545707032084465,
-0.022254575043916702,
-0.0598863810300827,
0.007702032569795847,
0.03228433430194855,
-0.047962211072444916,
0.006198997609317303,
0.1007462665438652,
-0.01585892215371132,
-0.026735655963420868,
0.0008259261376224458,
0.01848827861249447,
-0.005952371284365654,
-0.019804591313004494,
0.01947777532041073,
-0.04322831705212593,
0.012450509704649448,
-0.05316769704222679,
-0.06425173580646515,
-0.09427092969417572,
0.02590673230588436,
-0.041300252079963684,
-0.0002005808346439153,
-0.0018779835663735867,
-0.057657524943351746,
-0.08186152577400208,
0.10457435250282288,
-0.0334833487868309,
-0.0005646701902151108,
0.007160987239331007,
0.031038301065564156,
0.015260458923876286,
-0.023339396342635155,
0.02630205638706684,
-0.008518625982105732,
-0.033615924417972565,
0.02111009694635868,
-0.04676681384444237,
0.07154029607772827,
0.07275690138339996,
-0.013515251688659191,
0.06519287824630737,
0.044399701058864594,
0.01112807635217905,
0.017195722088217735,
-0.014395326375961304,
-0.0034651400055736303,
-0.015142582356929779,
0.014229720458388329,
-0.011775362305343151,
-0.0005524216103367507,
0.020335448905825615,
0.06045546382665634,
-0.022995876148343086,
-0.056409187614917755,
0.02316596917808056,
-0.3862302303314209,
-0.050822705030441284,
0.010567478835582733,
-0.006010768469423056,
0.022300753742456436,
-0.03945193067193031,
0.014821579679846764,
0.01005344558507204,
-0.04436999559402466,
0.05164399370551109,
0.06220773980021477,
-0.04728902503848076,
0.013545690104365349,
-0.03766674920916557,
-0.004083593375980854,
0.019355574622750282,
-0.026573695242404938,
0.002390037989243865,
-0.03349807858467102,
0.018398303538560867,
-0.017963945865631104,
-0.014065838418900967,
-0.030425429344177246,
-0.05739554017782211,
0.04666275531053543,
-0.014761887490749359,
0.12419632077217102,
-0.06826777011156082,
0.05813658609986305,
-0.04861404374241829,
0.05989515408873558,
-0.010777728632092476,
-0.01733742468059063,
-0.008105018176138401,
0.012296457774937153,
-0.016429482027888298,
0.004641544073820114,
0.04716668650507927,
-0.056376464664936066,
-0.05798458307981491,
-0.03437596559524536,
0.02904376946389675,
-0.019964247941970825,
0.000336306169629097,
-0.049805134534835815,
0.03466597944498062,
0.010052797384560108,
0.03225864842534065,
-0.022359371185302734,
0.07152540981769562,
0.024984700605273247,
-0.008411794900894165,
0.05307632312178612,
0.01882992312312126,
0.035241663455963135,
-0.015036603435873985,
-0.06319831311702728,
0.001791822025552392,
-0.008740076795220375,
-0.025358987972140312,
0.06515329331159592,
0.01158141903579235,
0.0606703981757164,
-0.03563229367136955,
0.016151683405041695,
-0.012893659994006157,
-0.002590404823422432,
-0.015715010464191437,
0.0010971055598929524,
0.022518672049045563,
-0.03677748143672943,
0.057423535734415054,
-0.02740250900387764,
0.0019912556745111942,
-0.00047635400551371276,
0.048071909695863724,
-0.04225379228591919,
0.04558492451906204,
-0.0029200559947639704,
0.025754714384675026,
0.04340607300400734,
-0.011595663614571095,
0.026255957782268524,
0.018709974363446236,
0.027866341173648834,
0.040821466594934464,
0.0238196961581707,
-0.019553659483790398,
0.04805570840835571,
0.005223415791988373,
-0.022457199171185493,
-0.011257716454565525,
-0.03298770636320114,
-0.034434180706739426,
0.05483232066035271,
-0.007489247713238001,
-0.2747076451778412,
0.00020458240760490298,
0.03169780969619751,
0.05573374032974243,
0.005106293596327305,
0.015677932649850845,
-0.0149515550583601,
-0.015717292204499245,
0.009696354158222675,
-0.013708189129829407,
-0.01595029979944229,
0.053916387259960175,
0.013593209907412529,
-0.03687277436256409,
0.0031148199923336506,
-0.031315531581640244,
0.04374217614531517,
-0.0002385115367360413,
0.028678489848971367,
0.011921663768589497,
0.04807388782501221,
-0.01801242120563984,
0.18120549619197845,
0.05372852087020874,
0.009091255255043507,
0.009734248742461205,
-0.019418936222791672,
0.026318315416574478,
0.0912678986787796,
0.004931952804327011,
-0.004931387957185507,
-0.02422342821955681,
0.07401347160339355,
-0.0019198651425540447,
0.03950764983892441,
-0.00957459956407547,
-0.04827740415930748,
0.060776494443416595,
0.019892051815986633,
0.011885397136211395,
-0.004378436133265495,
0.0034765310119837523,
-0.047712016850709915,
0.04871319234371185,
0.08654358983039856,
0.013072253204882145,
0.004232904873788357,
-0.05914154276251793,
-0.04987356439232826,
0.002201357390731573,
-0.04356151074171066,
-0.013639119453728199,
-0.04286069795489311,
-0.0185487549751997,
-0.013376741670072079,
0.037768345326185226,
0.019499171525239944,
-0.008321445435285568,
0.03598637878894806,
-0.005508927628397942,
-0.037090811878442764,
-0.041516873985528946,
0.06126788258552551,
-0.035632506012916565,
0.029939541593194008
] | [
-0.010213619098067284,
0.03507370874285698,
-0.010502899996936321,
0.015644673258066177,
-0.027936168015003204,
-0.017199812456965446,
0.0004261246940586716,
-0.0312824510037899,
-0.013411461375653744,
0.02049495093524456,
0.03155359625816345,
-0.002668023342266679,
0.022531189024448395,
-0.043476302176713943,
0.010547354817390442,
0.0037407882045954466,
-0.020335668697953224,
0.022230029106140137,
0.02919086068868637,
0.011249235831201077,
0.005456325598061085,
0.04162069782614708,
0.002867496805265546,
-0.009145048446953297,
0.004336513113230467,
0.037414778023958206,
-0.007715276442468166,
0.04919395595788956,
0.03184966742992401,
-0.10342317074537277,
-0.04596616327762604,
-0.01493954099714756,
-0.01869868114590645,
0.03235220909118652,
-0.04207427427172661,
-0.056590013206005096,
-0.029186267405748367,
0.026954250410199165,
0.033559784293174744,
0.006118239369243383,
0.035297881811857224,
-0.03651361167430878,
-0.0007791270618326962,
-0.026062531396746635,
0.0074745663441717625,
0.006473176181316376,
0.011395796202123165,
-0.004260045010596514,
-0.007670997641980648,
-0.01683494821190834,
-0.0020246501080691814,
0.00988619215786457,
-0.011906696483492851,
-0.015065500512719154,
0.005522898864001036,
-0.007132989354431629,
-0.033730391412973404,
0.030391981825232506,
0.014256984926760197,
-0.05167220160365105,
0.03607117012143135,
0.014863193966448307,
-0.04380223527550697,
-0.02121228538453579,
0.03813159093260765,
-0.009907972067594528,
-0.04046091064810753,
0.013189593330025673,
-0.006048030219972134,
-0.007693626917898655,
0.008206921629607677,
-0.003925877157598734,
0.008839938789606094,
-0.038745854049921036,
-0.021476898342370987,
0.013166278600692749,
0.02023487538099289,
-0.0326283760368824,
0.002490202197805047,
-0.0538148432970047,
-0.01692701131105423,
0.017021039500832558,
-0.03722300007939339,
0.04172645881772041,
-0.016470741480588913,
-0.07013015449047089,
0.04066291078925133,
0.013970490545034409,
0.0058983927592635155,
-0.01916574500501156,
0.03625395521521568,
0.0017003831453621387,
0.01358125451952219,
0.005277649499475956,
-0.11499263346195221,
0.004757930524647236,
0.01072603277862072,
-0.019559035077691078,
0.01818135194480419,
0.8017045855522156,
0.008597561158239841,
0.04225132241845131,
-0.017990414053201675,
0.043991900980472565,
-0.007541059982031584,
-0.019928570836782455,
-0.037289202213287354,
-0.010803782381117344,
0.021697256714105606,
-0.02733006700873375,
-0.026111681014299393,
0.030051542446017265,
-0.020600078627467155,
0.034055158495903015,
-0.01881534419953823,
0.015707114711403847,
0.013662724755704403,
-0.026867253705859184,
0.006513688247650862,
-0.032058898359537125,
0.06035459414124489,
0.028383010998368263,
0.022616105154156685,
-0.01059984602034092,
0.03672194108366966,
-0.1512063592672348,
-0.0013839348684996367,
-6.267330333033403e-33,
-0.0017065441934391856,
-0.015578162856400013,
-0.0033940535504370928,
-0.015849122777581215,
0.0007897249888628721,
0.018230115994811058,
-0.02283412776887417,
-0.01202283427119255,
0.005619286093860865,
0.010323379188776016,
0.01141489576548338,
0.018809547647833824,
-0.0021735422778874636,
-0.06291402876377106,
0.03480368107557297,
-0.027146589010953903,
-0.00811267551034689,
0.0112604396417737,
0.025918319821357727,
0.008496247231960297,
0.04618498682975769,
0.042080026119947433,
0.035431064665317535,
0.03765178099274635,
-0.003314035013318062,
-0.008705981075763702,
0.0061143534258008,
0.010497435927391052,
0.01837565377354622,
-0.04105869680643082,
0.036827340722084045,
0.058547474443912506,
-0.0339517705142498,
0.01831085979938507,
0.003023917321115732,
-0.07753889262676239,
-0.0004838800523430109,
-0.00132277503143996,
0.023928875103592873,
-0.012427135370671749,
-0.06685323268175125,
-0.024700762704014778,
0.0013917058240622282,
-0.001495798584073782,
-0.03706323727965355,
0.004695557989180088,
0.01972922869026661,
0.03331921994686127,
-0.0065682427957654,
0.05061271786689758,
0.0008391659357585013,
-0.02419699728488922,
-0.008129044435918331,
0.01673259399831295,
-0.020952604711055756,
-0.022084875032305717,
-0.027246156707406044,
-0.01534762978553772,
-0.01402293425053358,
0.014942578040063381,
-0.03516248241066933,
-0.01798001304268837,
0.034274231642484665,
0.015185890719294548,
-0.06599964946508408,
0.011158701963722706,
0.04214996099472046,
0.004438332282006741,
0.009593930095434189,
-0.013438333757221699,
0.00012114803394069895,
0.010897794738411903,
-0.000013924194718129002,
-0.025675872340798378,
0.05014393851161003,
-0.03820519521832466,
-0.0065943594090640545,
0.04808562248945236,
-0.022167345508933067,
0.05210728198289871,
-0.004024938680231571,
0.007117914967238903,
-0.03413916006684303,
0.013539484702050686,
-0.0027872249484062195,
-0.018365073949098587,
0.023793954402208328,
0.019377177581191063,
-0.004204418044537306,
-0.015989571809768677,
-0.01642872579395771,
0.02294461615383625,
0.015538838692009449,
-0.03592853248119354,
0.013804045505821705,
6.79481799460155e-33,
0.01079635601490736,
-0.02184469997882843,
-0.007843042723834515,
0.004055168945342302,
0.012274960055947304,
-0.06942849606275558,
0.015236812643706799,
0.009367329068481922,
-0.02452966943383217,
0.031514689326286316,
-0.017623715102672577,
0.001751974574290216,
0.000385281047783792,
0.02877804823219776,
0.03461006283760071,
0.019052524119615555,
0.02596285752952099,
-0.04981790855526924,
0.04268139600753784,
0.02011862024664879,
0.011820914223790169,
-0.01145325880497694,
-0.008088632486760616,
0.05268432945013046,
-0.019733773544430733,
0.014891776256263256,
-0.03910604864358902,
-0.0033252546563744545,
-0.014818365685641766,
-0.023763958364725113,
-0.023098617792129517,
-0.004813645500689745,
0.015844419598579407,
-0.02265062928199768,
-0.05755147337913513,
0.05013672634959221,
0.049295634031295776,
-0.055206604301929474,
-0.02740308828651905,
-0.010495365597307682,
0.048238709568977356,
-0.0016885026125237346,
0.02703682892024517,
0.022623522207140923,
0.02754129469394684,
0.0014956857776269317,
0.05129680782556534,
0.0057339295744895935,
0.003832456888630986,
0.04807552322745323,
0.03761216253042221,
0.04020419716835022,
-0.005496188532561064,
0.00706526217982173,
0.008513357490301132,
-0.02007707953453064,
0.0202289167791605,
0.012385450303554535,
-0.06337688863277435,
0.047985877841711044,
0.007676403969526291,
0.032817963510751724,
-0.012153527699410915,
0.02038062922656536,
-0.0212541613727808,
0.0019057915778830647,
0.017403848469257355,
-0.05952121689915657,
0.028479566797614098,
-0.006656232289969921,
-0.011400383897125721,
-0.06247325614094734,
-0.0006401477730832994,
-0.01297090481966734,
0.008671044372022152,
-0.003388238837942481,
-0.0010935665341094136,
-0.00432298518717289,
0.03193119540810585,
0.01181089784950018,
0.015325390733778477,
-0.010734149254858494,
0.04795315861701965,
0.011509407311677933,
-0.020085707306861877,
-0.0007764100446365774,
-0.04888312891125679,
-0.018994703888893127,
0.045228563249111176,
-0.027787713333964348,
-0.023007242009043694,
-0.05031450465321541,
0.005757063161581755,
0.03833238035440445,
-0.031368687748909,
-1.2457809006605203e-8,
-0.04609441012144089,
0.008619507774710655,
-0.01116381399333477,
0.027124453336000443,
0.05067971348762512,
-0.016382992267608643,
0.006748643238097429,
-0.011909416876733303,
0.00021540893067140132,
-0.005194746423512697,
0.04817448556423187,
-0.011966842226684093,
0.00021255365572869778,
0.009129108861088753,
-0.02417573519051075,
-0.07157259434461594,
0.021976375952363014,
-0.048694461584091187,
0.023046132177114487,
-0.0030555573757737875,
0.03470049798488617,
0.04731733724474907,
-0.053046468645334244,
-0.023696957156062126,
0.05315284803509712,
0.0014633932150900364,
-0.00010745928011601791,
-0.09245427697896957,
0.0014165950706228614,
-0.030627921223640442,
0.03333315625786781,
-0.02807234227657318,
-0.0008644056506454945,
0.02746743895113468,
0.012612209655344486,
-0.043218906968832016,
0.042594268918037415,
0.07484466582536697,
0.028478452935814857,
0.01006785687059164,
-0.015775403007864952,
-0.01814211532473564,
-0.02974720485508442,
-0.020771564915776253,
-0.02825286239385605,
0.012954866513609886,
-0.03815435245633125,
-0.017282292246818542,
0.0763481855392456,
-0.0791165754199028,
0.02750728651881218,
-0.06286092102527618,
0.01607140153646469,
0.010050379671156406,
0.015213881619274616,
-0.02650001458823681,
0.019404008984565735,
0.0003045702469535172,
0.0076113310642540455,
0.006452102679759264,
-0.012306458316743374,
-0.009601674973964691,
-0.02643909677863121,
-0.023475194349884987
] | r-data-table-comparing-adjacent-rows | https://markhneedham.com/blog/2015/09/27/r-data-table-comparing-adjacent-rows |
false | 2015-09-21 22:30:51 | SparkR: Add new column to data frame by concatenating other columns | [
"sparkr"
] | [
"Spark"
] | Continuing with my http://www.markhneedham.com/blog/2015/09/21/sparkr-error-in-invokejavaisstatic-true-classname-methodname-java-lang-classnotfoundexception-failed-to-load-class-for-data-source-csv/[exploration of the Land Registry open data set using SparkR] I wanted to see which road in the UK has had the most property sales over the last 20 years.
To recap, this is what the data frame looks like:
[source,bash]
----
./spark-1.5.0-bin-hadoop2.6/bin/sparkR --packages com.databricks:spark-csv_2.11:1.2.0
> sales <- read.df(sqlContext, "pp-complete.csv", "com.databricks.spark.csv", header="false")
> head(sales)
C0 C1 C2 C3 C4 C5
1 {0C7ADEF5-878D-4066-B785-0000003ED74A} 163000 2003-02-21 00:00 UB5 4PJ T N
2 {35F67271-ABD4-40DA-AB09-00000085B9D3} 247500 2005-07-15 00:00 TA19 9DD D N
3 {B20B1C74-E8E1-4137-AB3E-0000011DF342} 320000 2010-09-10 00:00 W4 1DZ F N
4 {7D6B0915-C56B-4275-AF9B-00000156BCE7} 104000 1997-08-27 00:00 NE61 2BH D N
5 {47B60101-B64C-413D-8F60-000002F1692D} 147995 2003-05-02 00:00 PE33 0RU D N
6 {51F797CA-7BEB-4958-821F-000003E464AE} 110000 2013-03-22 00:00 NR35 2SF T N
C6 C7 C8 C9 C10 C11
1 F 106 READING ROAD NORTHOLT NORTHOLT
2 F 58 ADAMS MEADOW ILMINSTER ILMINSTER
3 L 58 WHELLOCK ROAD LONDON
4 F 17 WESTGATE MORPETH MORPETH
5 F 4 MASON GARDENS WEST WINCH KING'S LYNN
6 F 5 WILD FLOWER WAY DITCHINGHAM BUNGAY
C12 C13 C14
1 EALING GREATER LONDON A
2 SOUTH SOMERSET SOMERSET A
3 EALING GREATER LONDON A
4 CASTLE MORPETH NORTHUMBERLAND A
5 KING'S LYNN AND WEST NORFOLK NORFOLK A
6 SOUTH NORFOLK NORFOLK A
----
https://www.gov.uk/guidance/about-the-price-paid-data#explanations-of-column-headers-in-the-ppd[This document] explains the data stored in each field and for this particular query we're interested in fields C9-C12. The plan is to group the data frame by those fields and then sort by frequency in descending order.
When grouping by multiple fields it tends to be easiest to create a new field which concatenates them all and then group by that.
I started with the following:
[source,bash]
----
> sales$address = paste(sales$C9, sales$C10, sales$C11, sales$C12, sep=", ")
Error in as.character.default(<S4 object of class "Column">) :
no method for coercing this S4 class to a vector
----
Not so successful! Next I went even more primitive:
[source,bash]
----
> sales$address = sales$C9 + ", " + sales$C10 + ", " + sales$C11 + ", " + sales$C12
> head(sales)
C0 C1 C2 C3 C4 C5
1 {0C7ADEF5-878D-4066-B785-0000003ED74A} 163000 2003-02-21 00:00 UB5 4PJ T N
2 {35F67271-ABD4-40DA-AB09-00000085B9D3} 247500 2005-07-15 00:00 TA19 9DD D N
3 {B20B1C74-E8E1-4137-AB3E-0000011DF342} 320000 2010-09-10 00:00 W4 1DZ F N
4 {7D6B0915-C56B-4275-AF9B-00000156BCE7} 104000 1997-08-27 00:00 NE61 2BH D N
5 {47B60101-B64C-413D-8F60-000002F1692D} 147995 2003-05-02 00:00 PE33 0RU D N
6 {51F797CA-7BEB-4958-821F-000003E464AE} 110000 2013-03-22 00:00 NR35 2SF T N
C6 C7 C8 C9 C10 C11
1 F 106 READING ROAD NORTHOLT NORTHOLT
2 F 58 ADAMS MEADOW ILMINSTER ILMINSTER
3 L 58 WHELLOCK ROAD LONDON
4 F 17 WESTGATE MORPETH MORPETH
5 F 4 MASON GARDENS WEST WINCH KING'S LYNN
6 F 5 WILD FLOWER WAY DITCHINGHAM BUNGAY
C12 C13 C14 address
1 EALING GREATER LONDON A NA
2 SOUTH SOMERSET SOMERSET A NA
3 EALING GREATER LONDON A NA
4 CASTLE MORPETH NORTHUMBERLAND A NA
5 KING'S LYNN AND WEST NORFOLK NORFOLK A NA
6 SOUTH NORFOLK NORFOLK A NA
----
That at least compiled but all addresses were 'NA' which isn't what we want. After a bit of searching I realised that there was a https://spark.apache.org/docs/latest/api/R/concat_ws.html[concat function] that I could use for exactly this task:
[source,bash]
----
> sales$address = concat_ws(sep=", ", sales$C9, sales$C10, sales$C11, sales$C12)
> head(sales)
C0 C1 C2 C3 C4 C5
1 {0C7ADEF5-878D-4066-B785-0000003ED74A} 163000 2003-02-21 00:00 UB5 4PJ T N
2 {35F67271-ABD4-40DA-AB09-00000085B9D3} 247500 2005-07-15 00:00 TA19 9DD D N
3 {B20B1C74-E8E1-4137-AB3E-0000011DF342} 320000 2010-09-10 00:00 W4 1DZ F N
4 {7D6B0915-C56B-4275-AF9B-00000156BCE7} 104000 1997-08-27 00:00 NE61 2BH D N
5 {47B60101-B64C-413D-8F60-000002F1692D} 147995 2003-05-02 00:00 PE33 0RU D N
6 {51F797CA-7BEB-4958-821F-000003E464AE} 110000 2013-03-22 00:00 NR35 2SF T N
C6 C7 C8 C9 C10 C11
1 F 106 READING ROAD NORTHOLT NORTHOLT
2 F 58 ADAMS MEADOW ILMINSTER ILMINSTER
3 L 58 WHELLOCK ROAD LONDON
4 F 17 WESTGATE MORPETH MORPETH
5 F 4 MASON GARDENS WEST WINCH KING'S LYNN
6 F 5 WILD FLOWER WAY DITCHINGHAM BUNGAY
C12 C13 C14
1 EALING GREATER LONDON A
2 SOUTH SOMERSET SOMERSET A
3 EALING GREATER LONDON A
4 CASTLE MORPETH NORTHUMBERLAND A
5 KING'S LYNN AND WEST NORFOLK NORFOLK A
6 SOUTH NORFOLK NORFOLK A
address
1 READING ROAD, NORTHOLT, NORTHOLT, EALING
2 ADAMS MEADOW, ILMINSTER, ILMINSTER, SOUTH SOMERSET
3 WHELLOCK ROAD, , LONDON, EALING
4 WESTGATE, MORPETH, MORPETH, CASTLE MORPETH
5 MASON GARDENS, WEST WINCH, KING'S LYNN, KING'S LYNN AND WEST NORFOLK
6 WILD FLOWER WAY, DITCHINGHAM, BUNGAY, SOUTH NORFOLK
----
That's more like it! Now let's see which streets have sold the most properties:
[source,bash]
----
> byAddress = summarize(groupBy(sales, sales$address), count = n(sales$address))
> head(arrange(byAddress, desc(byAddress$count)), 10)
address count
1 BARBICAN, LONDON, LONDON, CITY OF LONDON 1398
2 CHRISTCHURCH ROAD, BOURNEMOUTH, BOURNEMOUTH, BOURNEMOUTH 1313
3 MAIDA VALE, LONDON, LONDON, CITY OF WESTMINSTER 1305
4 ROTHERHITHE STREET, LONDON, LONDON, SOUTHWARK 1253
5 SLOANE AVENUE, LONDON, LONDON, KENSINGTON AND CHELSEA 1219
6 THE STRAND, BRIGHTON MARINA VILLAGE, BRIGHTON, BRIGHTON AND HOVE 1218
7 FAIRFIELD ROAD, LONDON, LONDON, TOWER HAMLETS 1217
8 QUEENSTOWN ROAD, , LONDON, WANDSWORTH 1153
9 UPPER RICHMOND ROAD, LONDON, LONDON, WANDSWORTH 1123
10 QUEENSTOWN ROAD, LONDON, LONDON, WANDSWORTH 1079
----
Next we'll drill into the data further but that's for another post. | null | null | [
0.008364211767911911,
-0.02480379305779934,
0.0024254079908132553,
0.03494460508227348,
0.0765739232301712,
0.02102065645158291,
0.03198694810271263,
0.031010404229164124,
0.02718331478536129,
0.003984052687883377,
-0.009562910534441471,
-0.0029713031835854053,
-0.05609188973903656,
0.01977747119963169,
-0.027946703135967255,
0.06597025692462921,
0.0617746002972126,
0.01918334700167179,
0.011870351620018482,
-0.009108312427997589,
0.04668673872947693,
0.07444995641708374,
-0.023395327851176262,
0.047312021255493164,
0.02179461158812046,
-0.01233057864010334,
0.019860373809933662,
-0.0028343924786895514,
-0.06587128341197968,
-0.01232836302369833,
0.034765806049108505,
0.02346491441130638,
0.006178522482514381,
0.02097288705408573,
0.013758808374404907,
-0.0030617984011769295,
-0.011705254204571247,
-0.0011195437982678413,
-0.01231710147112608,
0.019073819741606712,
-0.07959388941526413,
0.022051097825169563,
-0.008482254110276699,
0.020427627488970757,
-0.03334503993391991,
0.0011060006218031049,
-0.04969753324985504,
0.018306516110897064,
0.009754756465554237,
-0.0024502864107489586,
-0.04072059690952301,
0.04844767227768898,
-0.021792998537421227,
0.01837666891515255,
-0.011967800557613373,
0.04590547829866409,
0.004945625551044941,
-0.08365046232938766,
0.05846909433603287,
-0.022313861176371574,
0.028914690017700195,
-0.01463202852755785,
-0.01960204914212227,
0.0014896630309522152,
0.010924611240625381,
-0.04113307595252991,
-0.013479514978826046,
0.07386216521263123,
-0.03914506360888481,
-0.015011708252131939,
-0.020373867824673653,
0.007886314764618874,
0.000046175722673069686,
0.0013875269796699286,
-0.002164554549381137,
-0.05600510537624359,
-0.010695068165659904,
0.06763444095849991,
-0.0024631270207464695,
0.027683310210704803,
-0.016847237944602966,
-0.016554871574044228,
0.02163410559296608,
0.027766814455389977,
0.003731745993718505,
-0.06395284086465836,
-0.0375605970621109,
-0.05084602162241936,
-0.04578247293829918,
0.0653303861618042,
0.010456977412104607,
-0.018889056518673897,
0.020036783069372177,
0.029119042679667473,
-0.029406845569610596,
-0.001402730355039239,
0.00442513357847929,
-0.013707546517252922,
-0.005136505700647831,
-0.035405367612838745,
-0.050152502954006195,
-0.017360744997859,
0.03757106512784958,
0.026180801913142204,
-0.06657350808382034,
-0.018694061785936356,
-0.0293088648468256,
0.012388796545565128,
0.00926419347524643,
0.0199297908693552,
-0.030871815979480743,
0.02814800664782524,
-0.021206477656960487,
0.013916250318288803,
-0.07249832153320312,
0.062377478927373886,
0.03619448095560074,
-0.028803857043385506,
0.0019709961488842964,
0.014033983461558819,
0.037107355892658234,
0.015253541059792042,
-0.019775984808802605,
0.08744195103645325,
0.014545626007020473,
0.04893817380070686,
-0.012484543956816196,
0.04653274640440941,
-0.016047930344939232,
-0.06503037363290787,
-0.010353447869420052,
0.04723380133509636,
-0.029312577098608017,
0.0018200990743935108,
0.003183569060638547,
-0.035237327218055725,
0.0029879496432840824,
0.004271292127668858,
0.05868396535515785,
0.019137242808938026,
0.02285662852227688,
-0.01337214931845665,
0.0056193554773926735,
0.029853880405426025,
0.036024246364831924,
0.028464891016483307,
-0.013479421846568584,
-0.029279185459017754,
-0.02932673506438732,
0.021508969366550446,
0.02023361064493656,
0.04410349950194359,
0.05945296213030815,
-0.02380339987576008,
0.009740401990711689,
0.10146831721067429,
0.011057139374315739,
0.007658334914594889,
-0.022055288776755333,
0.02535153180360794,
0.04608521610498428,
0.017596399411559105,
0.04249179735779762,
0.02639642171561718,
0.014942323789000511,
-0.0255922619253397,
0.019043121486902237,
0.03395882993936539,
-0.02331370674073696,
0.009340070188045502,
-0.07350951433181763,
-0.07067550718784332,
0.05767905339598656,
-0.038512490689754486,
-0.008660701103508472,
0.042388059198856354,
0.09875994920730591,
0.04616163298487663,
0.04300524294376373,
-0.00864296592772007,
-0.08278588950634003,
0.0325324647128582,
0.012233652174472809,
0.03187074139714241,
0.06213286519050598,
-0.00747679965570569,
0.06205344945192337,
0.03692448139190674,
0.025708651170134544,
0.03682132065296173,
-0.05010044947266579,
-0.08422623574733734,
-0.0159454382956028,
-0.044141754508018494,
0.05001720041036606,
-0.013233045116066933,
0.035098183900117874,
0.023650316521525383,
-0.0019013589480891824,
0.041983239352703094,
-0.015499281696975231,
-0.002488623606041074,
0.030506573617458344,
-0.04538256302475929,
-0.033320385962724686,
0.018505562096834183,
0.04029946029186249,
-0.005611460190266371,
-0.019462618976831436,
0.019573228433728218,
-0.032134342938661575,
0.003679301356896758,
0.03779745474457741,
-0.015580963343381882,
0.043806832283735275,
0.029806368052959442,
0.06319175660610199,
0.002245955867692828,
0.04649140685796738,
-0.04447133094072342,
0.03434876352548599,
0.013627180829644203,
-0.05438988283276558,
-0.010249643586575985,
-0.0007619177340529859,
0.12833671271800995,
0.06382081657648087,
-0.010726086795330048,
-0.050799544900655746,
0.010596374981105328,
0.008535782806575298,
-0.030689850449562073,
0.007252705283463001,
-0.030352331697940826,
0.008843664079904556,
0.008999109268188477,
-0.04389147087931633,
-0.03428327292203903,
0.0035910229198634624,
-0.044252727180719376,
0.0010282769799232483,
0.05372810363769531,
-0.019714929163455963,
0.05965166538953781,
-0.004521286580711603,
-0.013613459654152393,
0.007453413680195808,
-0.008681045845150948,
-0.07163886725902557,
-0.016573457047343254,
0.010648444294929504,
-0.002324952045455575,
0.028677118942141533,
-0.021943261846899986,
-0.016627246513962746,
-0.024681081995368004,
-0.03997841849923134,
0.02393430657684803,
0.07597383111715317,
0.04867887124419212,
-0.007807636167854071,
0.05345612019300461,
-0.03326746076345444,
0.012586452066898346,
-0.013082669116556644,
-0.02145071141421795,
-0.023408908396959305,
-0.031210023909807205,
0.022857358679175377,
0.008524181321263313,
0.0026169694028794765,
0.009055528789758682,
0.03263425827026367,
0.013678515329957008,
0.016351979225873947,
-0.01363011822104454,
0.039010029286146164,
-0.019199762493371964,
0.01117638312280178,
-0.00547148147597909,
-0.00688489293679595,
0.035658832639455795,
-0.021850664168596268,
-0.015276835300028324,
0.018223797902464867,
-0.06285962462425232,
0.05623853579163551,
-0.0276458989828825,
-0.03240485489368439,
0.029903246089816093,
0.02350909449160099,
0.028174065053462982,
0.02732223831117153,
-0.0037844032049179077,
0.07386260479688644,
0.02528415620326996,
-0.01039823330938816,
0.019538573920726776,
-0.01160513423383236,
0.035423506051301956,
-0.009694087319076061,
0.039343029260635376,
0.03906484693288803,
0.0046466332860291,
0.0024681645445525646,
-0.0423130989074707,
-0.016758522018790245,
-0.02706260234117508,
-0.2791391909122467,
0.04520975798368454,
-0.024853315204381943,
-0.05818512290716171,
0.01570942811667919,
-0.02678574062883854,
0.0006347889429889619,
-0.04335701838135719,
-0.016923217102885246,
0.023109475150704384,
-0.004286081530153751,
-0.058799706399440765,
-0.02699378877878189,
0.041287612169981,
0.02967730164527893,
0.013947630301117897,
0.021876400336623192,
-0.046358708292245865,
-0.007406205404549837,
0.047662001103162766,
0.0187790896743536,
-0.051108211278915405,
-0.01819101721048355,
0.05243763327598572,
0.026730932295322418,
0.06166940554976463,
-0.05381233990192413,
0.02686530165374279,
-0.061393823474645615,
-0.016882019117474556,
0.04636481776833534,
-0.034892890602350235,
0.01411653496325016,
-0.0022049322724342346,
-0.027367109432816505,
-0.019849279895424843,
0.006319085136055946,
0.015843035653233528,
-0.023699481040239334,
0.0044785309582948685,
-0.04050358757376671,
-0.0182089451700449,
-0.001986247254535556,
0.009832296520471573,
0.05764264613389969,
-0.016070250421762466,
-0.0721345990896225,
0.004884466528892517,
-0.033745501190423965,
0.06528789550065994,
-0.027746818959712982,
-0.021185021847486496,
-0.029217366129159927,
-0.0019391272217035294,
-0.04175948351621628,
0.007739086635410786,
-0.005007453728467226,
-0.008592805825173855,
-0.040390584617853165,
-0.025071049109101295,
0.004380519036203623,
-0.030368197709321976,
0.003446766408160329,
-0.04476982355117798,
-0.024978047236800194,
-0.07120741903781891,
-0.07512140274047852,
0.00001609177706995979,
0.06952838599681854,
0.02852522023022175,
-0.04264551028609276,
0.011834604665637016,
-0.00971349235624075,
-0.11141832917928696,
0.005834026262164116,
-0.029220091179013252,
-0.00593634182587266,
-0.003706964896991849,
-0.035929784178733826,
0.05501008406281471,
-0.03587997704744339,
-0.040627166628837585,
0.024616796523332596,
0.017560217529535294,
0.004621577449142933,
-0.03093833290040493,
0.018925011157989502,
0.0003910927043762058,
-0.01713619753718376,
-0.036647502332925797,
0.057371120899915695,
-0.05303209647536278,
-0.0106307752430439,
-0.014140534214675426,
-0.027078108862042427,
0.05354752391576767,
-0.013546386733651161,
-0.006920456420630217,
0.005830380599945784,
0.036819517612457275,
0.02120819129049778,
-0.08090146631002426,
0.0263905581086874,
-0.04423061013221741,
-0.014942236244678497,
-0.007474505342543125,
-0.052568189799785614,
0.023730505257844925,
0.007114026229828596,
0.009757427498698235,
0.0331847108900547,
-0.02176709473133087,
0.01835988089442253,
-0.06499308347702026,
-0.02000567317008972,
-0.03385050594806671,
0.014652342535555363,
0.02314578741788864,
0.02158270590007305,
-0.01956624910235405,
-0.04461146518588066,
0.003027437487617135,
-0.00238923542201519,
-0.02185918763279915,
-0.06330244243144989,
-0.01265018992125988,
0.0014548618346452713,
-0.003048489335924387,
-0.010913722217082977,
0.010787012055516243,
-0.009764066897332668,
0.012454054318368435,
0.03946121409535408,
-0.005755063146352768,
0.010576215572655201,
-0.030403830111026764,
-0.048017099499702454,
-0.03958616033196449,
0.003887144150212407,
0.03557837754487991,
0.0037768713664263487,
-0.00386194814927876,
0.02744845673441887,
0.03140662610530853,
0.03748476505279541,
-0.0027388844173401594,
0.01222934853285551,
0.0027924515306949615,
0.02492116205394268,
0.0017367383698001504,
0.008684319444000721,
-0.01894727721810341,
0.013525019399821758,
-0.053896643221378326,
-0.038401152938604355,
-0.013019204139709473,
0.03937031328678131,
-0.01771617867052555,
-0.038965653628110886,
-0.03960353881120682,
0.03433878719806671,
-0.03805597871541977,
-0.016745761036872864,
-0.009553002193570137,
0.012450623326003551,
0.04732611030340195,
0.014922822825610638,
0.021713677793741226,
0.017077980563044548,
-0.007445616647601128,
0.0007832987466827035,
-0.03822885453701019,
-0.023119794204831123,
0.010968535207211971,
-0.013524867594242096,
0.004508874379098415,
0.0054660942405462265,
0.011815098114311695,
0.03790988400578499,
0.022456612437963486,
-0.03605939447879791,
0.004440980032086372,
0.0072871968150138855,
0.009265766479074955,
0.030824875459074974,
0.04911509528756142,
-0.014775795862078667,
-0.01606365479528904,
0.008377152495086193,
-0.04467478021979332,
-0.015898169949650764,
0.000580621708650142,
-0.012557495385408401,
0.03434035927057266,
-0.04315226152539253,
-0.08355032652616501,
0.041770435869693756,
0.0059768157079815865,
-0.0185081884264946,
0.0236645694822073,
-0.03629697859287262,
-0.023471198976039886,
-0.021823035553097725,
0.035017892718315125,
0.08383199572563171,
-0.04473027214407921,
0.005678859073668718,
-0.0018523489125072956,
-0.02723946049809456,
0.02870108000934124,
-0.01126463059335947,
-0.06067778542637825,
-0.010366815142333508,
-0.030687853693962097,
0.03409281000494957,
-0.04630373790860176,
-0.03248513117432594,
-0.0389520488679409,
0.02444205991923809,
0.0009502918110229075,
0.01588001288473606,
-0.009523448534309864,
0.0017307456582784653,
-0.0029705206397920847,
-0.010460774414241314,
0.03992774337530136,
-0.035486672073602676,
-0.02455880306661129,
0.023724639788269997,
-0.03634548559784889,
-0.005744104273617268,
-0.03228398784995079,
0.016021233052015305,
0.04869457334280014,
-0.022009480744600296,
-0.010049520991742611,
-0.0330367386341095,
0.000894967233762145,
0.014684234745800495,
0.08039001375436783,
0.018617214635014534,
-0.020143842324614525,
-0.023129811510443687,
-0.005190300289541483,
-0.011732120998203754,
0.017538094893097878,
-0.010843310505151749,
-0.01851958967745304,
0.03455390781164169,
0.03608192875981331,
-0.004415025003254414,
0.0023062704131007195,
-0.03106643818318844,
-0.022407660260796547,
0.06975039094686508,
-0.04648087918758392,
-0.03942980617284775,
-0.02699120342731476,
-0.06487172842025757,
0.042794015258550644,
0.010835043154656887,
0.016056999564170837,
-0.013923942111432552,
0.05309785529971123,
0.04219454154372215,
0.014181750826537609,
0.04079073294997215,
-0.0062924823723733425,
0.027227597311139107,
-0.04392688721418381,
0.0020302599295973778,
-0.08716369420289993,
-0.0022738834377378225,
0.02362644113600254,
0.004845376592129469,
-0.018239371478557587,
-0.011069920845329762,
-0.06905925273895264,
0.009919807314872742,
-0.08827774226665497,
-0.05558440089225769,
0.007369406055659056,
-0.011012720875442028,
0.010606961324810982,
0.01731281355023384,
-0.01387530192732811,
0.035084161907434464,
0.007563429418951273,
-0.04854118824005127,
-0.02537377178668976,
-0.046265486627817154,
0.05154922977089882,
-0.02173091657459736,
0.022555053234100342,
-0.0272197425365448,
-0.024591024965047836,
0.07277649641036987,
0.022835128009319305,
-0.004885686095803976,
0.035361506044864655,
-0.02168000116944313,
0.03872043639421463,
0.024437611922621727,
-0.01340343989431858,
0.00012577285815495998,
0.01573086902499199,
0.005382979288697243,
-0.06116856262087822,
0.013504483737051487,
0.022425372153520584,
0.013710061088204384,
-0.05340316519141197,
0.08511463552713394,
0.03435937315225601,
-0.03463941812515259,
-0.04061518982052803,
0.0025386407505720854,
-0.033156707882881165,
-0.008195548318326473,
-0.008366971276700497,
0.011115307919681072,
-0.044260360300540924,
0.056346241384744644,
-0.0191690381616354,
0.010040633380413055,
0.04822284355759621,
-0.005736063234508038,
-0.005922469310462475,
0.02526080049574375,
0.08355938643217087,
0.07498864084482193,
0.018518157303333282,
-0.011692758649587631,
0.07574556767940521,
-0.024672504514455795,
-0.04178466647863388,
0.04272116720676422,
-0.04006112739443779,
-0.0008468672167509794,
-0.035309772938489914,
0.009478927589952946,
0.07343637198209763,
-0.005311040207743645,
0.0838542953133583,
-0.02498007006943226,
0.0032158512622117996,
-0.005760454572737217,
-0.016325997188687325,
0.03823143616318703,
0.02081599459052086,
0.011950098909437656,
0.040044154971838,
-0.001998667838051915,
-0.03472546860575676,
0.02302134782075882,
0.025263521820306778,
-0.037751708179712296,
0.02000344917178154,
-0.01648855395615101,
0.017124716192483902,
0.03172145411372185,
0.02793641947209835,
0.09402105212211609,
-0.01756878010928631,
-0.009572776965796947,
-0.01770656369626522,
0.04800277575850487,
0.011940869502723217,
0.011071762070059776,
-0.015579519793391228,
-0.018823910504579544,
-0.024388281628489494,
-0.05358737334609032,
-0.020427411422133446,
-0.018638907000422478,
-0.03923788294196129,
0.007241772022098303,
-0.04111676663160324,
0.022831888869404793,
0.037348803132772446,
-0.011966994032263756,
-0.03473885357379913,
-0.05047747492790222,
-0.051724061369895935,
-0.009594053030014038,
-0.08462028205394745,
-0.006909721996635199,
-0.021789804100990295,
-0.04509582370519638,
-0.04812592267990112,
-0.04101143777370453,
-0.030681753531098366,
-0.027707384899258614,
0.034522995352745056,
-0.057096928358078,
-0.05599153786897659,
0.022673407569527626,
0.008683997206389904,
0.028614073991775513,
0.019015226513147354,
0.06753625720739365,
0.017986135557293892,
-0.01885771006345749,
-0.0027881476562470198,
-0.006050249561667442,
0.061732228845357895,
0.007983434945344925,
0.01745270937681198,
-0.08038530498743057,
0.026754263788461685,
0.007941295392811298,
-0.017023861408233643,
-0.059265486896038055,
0.013856355100870132,
0.03405090048909187,
0.0066824681125581264,
0.04835156723856926,
-0.010467041283845901,
-0.01707398146390915,
-0.04486997053027153,
-0.021938491612672806,
-0.0020086849108338356,
0.006900059059262276,
0.01773000694811344,
-0.03589512035250664,
0.08716197311878204,
0.062772735953331,
-0.012422358617186546,
-0.04742809757590294,
-0.018699025735259056,
0.007634043227881193,
0.012925279326736927,
-0.06020258739590645,
-0.04337337613105774,
-0.04310990869998932,
-0.09155738353729248,
-0.0008525928133167326,
-0.007226374465972185,
-0.028877468779683113,
-0.03185943886637688,
0.00537753663957119,
0.031153958290815353,
-0.03393250331282616,
0.013533937744796276,
-0.042852528393268585,
0.012723428197205067,
-0.002533808583393693,
-0.02355368807911873,
-0.015479412861168385,
0.031169665977358818,
0.011351932771503925,
0.00966604519635439,
-0.006780020426958799,
-0.018390297889709473,
0.03239414468407631,
-0.026857739314436913,
0.043587952852249146,
0.03169851377606392,
-0.007711547892540693,
-0.028620438650250435
] | [
-0.05105653032660484,
-0.05553114041686058,
-0.013933268375694752,
-0.00336057529784739,
0.07129528373479843,
-0.05829645320773125,
-0.04398292675614357,
0.04984010010957718,
0.014136802405118942,
0.011048955842852592,
0.02844090759754181,
-0.07241673767566681,
-0.0121448440477252,
-0.021163325756788254,
0.06994713842868805,
0.005061794072389603,
0.010200931690633297,
-0.06889355927705765,
-0.041677020490169525,
0.029699111357331276,
0.01923072710633278,
-0.04319203644990921,
-0.03607900068163872,
-0.03442151099443436,
0.0243296530097723,
0.03474137932062149,
0.02094152756035328,
-0.04906405135989189,
-0.04892539232969284,
-0.21648187935352325,
0.003024354577064514,
-0.03787168115377426,
0.050924792885780334,
-0.015389558859169483,
0.016390830278396606,
0.025242341682314873,
-0.0009710079757496715,
0.02855859510600567,
0.00784638337790966,
0.024000829085707664,
0.021642126142978668,
-0.002262202324345708,
-0.06445340067148209,
-0.02500886097550392,
0.011098104529082775,
0.018952133134007454,
0.0068763247691094875,
-0.00005860523015144281,
0.015881938859820366,
-0.0010218946263194084,
-0.11172951757907867,
-0.007092471234500408,
0.022211404517292976,
0.00854845903813839,
0.002474721986800432,
0.03919515386223793,
0.04162496700882912,
0.08910012990236282,
0.06715913861989975,
0.0004967802669852972,
0.0031796416733413935,
-0.01506276149302721,
-0.1661202609539032,
0.06754129379987717,
-0.0009871768997982144,
0.05846833065152168,
-0.0069246538914740086,
-0.04665917158126831,
-0.01767129637300968,
0.028135761618614197,
0.03590568155050278,
-0.021826285868883133,
-0.046294767409563065,
0.10041729360818863,
-0.01339009404182434,
0.006657704710960388,
-0.013737189583480358,
0.024186983704566956,
0.028933081775903702,
-0.06376039981842041,
-0.0638187974691391,
-0.02014046162366867,
-0.018867116421461105,
-0.019014667719602585,
-0.013249015435576439,
0.027161087840795517,
0.0025335336104035378,
0.05323586240410805,
0.04697740077972412,
0.041260525584220886,
0.032878365367650986,
0.008769149892032146,
0.057553697377443314,
0.031038817018270493,
-0.11379262804985046,
-0.007969643920660019,
-0.00423818826675415,
0.0029079297091811895,
0.009141519665718079,
0.3950135111808777,
-0.012433567084372044,
-0.028001103550195694,
0.02046401984989643,
0.06999144703149796,
0.009305119514465332,
-0.0173744335770607,
-0.0004749679646920413,
-0.038558270782232285,
0.0005802541854791343,
-0.032939210534095764,
0.012740266509354115,
-0.03311046585440636,
0.07355484366416931,
-0.05090585723519325,
-0.0007863937644287944,
0.010644963011145592,
0.017011426389217377,
0.001950449775904417,
-0.03272096812725067,
0.04587150365114212,
-0.027288313955068588,
0.016617707908153534,
0.014078618958592415,
0.012070096097886562,
0.007343948353081942,
-0.011112507432699203,
0.04617919772863388,
0.052112843841314316,
0.05845710635185242,
0.0022708852775394917,
0.0205684844404459,
-0.013383150100708008,
-0.12664316594600677,
-0.026598293334245682,
0.010454690083861351,
0.016836417838931084,
0.02351328544318676,
-0.012422974221408367,
0.013185281306505203,
0.012038728222250938,
-0.02133447304368019,
-0.049048442393541336,
-0.0011802006047219038,
0.010147075168788433,
-0.031172730028629303,
0.10638236999511719,
-0.008021549321711063,
-0.011133668012917042,
0.0005180820007808506,
-0.032805535942316055,
0.0004966516862623394,
0.02710636518895626,
0.0052575296722352505,
-0.06705132126808167,
0.03190530464053154,
0.049165062606334686,
0.07270223647356033,
-0.01036058645695448,
-0.061160631477832794,
-0.010791595093905926,
-0.0026417942717671394,
-0.03395848348736763,
-0.027908679097890854,
0.029264867305755615,
0.01829175464808941,
-0.09032022207975388,
-0.03004339523613453,
0.02178140915930271,
-0.017629241570830345,
-0.029446519911289215,
-0.006813797168433666,
0.02798081375658512,
-0.009825892746448517,
-0.0023872607853263617,
0.08344716578722,
-0.03179071098566055,
-0.042031750082969666,
0.0203007273375988,
0.021355338394641876,
0.01686246320605278,
-0.018035273998975754,
0.025965619832277298,
-0.02712608501315117,
0.02288258820772171,
-0.022164249792695045,
-0.08773063123226166,
-0.0759424939751625,
0.01649133302271366,
-0.019880110397934914,
-0.027908170595765114,
-0.02734041027724743,
-0.02380334585905075,
-0.0714227482676506,
0.08781559765338898,
-0.016918370500206947,
-0.039562907069921494,
0.031163377687335014,
0.03877050057053566,
0.04049632325768471,
-0.041431885212659836,
0.012604350224137306,
0.06260412186384201,
-0.0037966317031532526,
0.02780829556286335,
-0.07084856927394867,
0.030629035085439682,
0.029567964375019073,
-0.02234315127134323,
0.04293017461895943,
0.008744246326386929,
-0.0100723160430789,
-0.025813627988100052,
-0.009571123868227005,
0.04506301134824753,
-0.024651357904076576,
-0.003804537933319807,
-0.019063984975218773,
-0.00028185665723867714,
0.014940041117370129,
0.03715391829609871,
-0.029793910682201385,
-0.028930654749274254,
-0.018289143219590187,
-0.385211706161499,
-0.037546154111623764,
0.00349424802698195,
-0.04873133823275566,
-0.019611740484833717,
-0.034061044454574585,
-0.013425582088530064,
0.0055883959867060184,
-0.007818547077476978,
0.03856044262647629,
0.07307501882314682,
-0.010858329944312572,
0.01160272117704153,
-0.0984017476439476,
0.007322627119719982,
0.02262537181377411,
-0.05801744386553764,
-0.00003242127786506899,
-0.06549187749624252,
-0.002209337195381522,
0.01522029098123312,
-0.02332274615764618,
-0.02000224031507969,
-0.03274925425648689,
0.04477342590689659,
-0.04066094756126404,
0.11905974894762039,
0.007398840505629778,
0.0652775689959526,
-0.05197533220052719,
0.05069781094789505,
0.004354362841695547,
-0.0017457869835197926,
-0.020648740231990814,
0.023646967485547066,
-0.04559531807899475,
0.0016494649462401867,
0.005112890154123306,
-0.016025835648179054,
-0.0029043450485914946,
-0.05745019391179085,
0.02400274947285652,
-0.06093446910381317,
-0.024599459022283554,
-0.02266094461083412,
0.00618614349514246,
-0.006388759706169367,
0.0014409454306587577,
-0.01725924015045166,
0.09411901235580444,
0.019915994256734848,
0.00213275826536119,
0.08196406066417694,
0.0363011434674263,
0.04519515484571457,
-0.02182745933532715,
-0.07411400973796844,
0.028523895889520645,
0.02319011650979519,
-0.019777962937951088,
0.05148424208164215,
0.04346384108066559,
0.041167180985212326,
-0.060279715806245804,
0.0071955095045268536,
-0.023645669221878052,
-0.007033830042928457,
0.01576114445924759,
0.009918566793203354,
-0.02621961385011673,
-0.05709180235862732,
0.08183366805315018,
-0.018511157482862473,
0.031256161630153656,
0.03674708679318428,
0.06223411485552788,
-0.01654830574989319,
-0.02400941587984562,
0.007014953996986151,
0.011752033606171608,
0.06690466403961182,
-0.03392672538757324,
0.0454074889421463,
-0.011851274408400059,
0.009069125168025494,
0.05299009010195732,
-0.010657031089067459,
0.0013636912917718291,
0.035881735384464264,
0.020457705482840538,
0.0008364192326553166,
-0.0038289569783955812,
-0.042212408035993576,
-0.03787536546587944,
0.07565329968929291,
0.013115123845636845,
-0.25328341126441956,
0.011412668973207474,
0.020720327273011208,
0.037999700754880905,
-0.012210977263748646,
0.010670849122107029,
0.010081055574119091,
-0.04197711497545242,
0.0162714421749115,
-0.0008253395208157599,
0.009879124350845814,
0.03966514393687248,
0.0356832779943943,
-0.009841450490057468,
0.016499796882271767,
-0.03175440430641174,
0.05636119842529297,
0.00024856944219209254,
0.05067899450659752,
0.005742846056818962,
0.013240632601082325,
-0.0051582870073616505,
0.1411307007074356,
0.042277347296476364,
-0.006237841211259365,
0.0066564083099365234,
-0.009400338865816593,
0.0007308925269171596,
0.04767010360956192,
0.004432803951203823,
-0.031019916757941246,
-0.006928139366209507,
0.0442606583237648,
0.009025359526276588,
0.027754943817853928,
-0.03408624976873398,
0.01480539795011282,
0.031036537140607834,
0.026833970099687576,
-0.01796814240515232,
-0.005586977582424879,
0.03828521817922592,
-0.044922858476638794,
0.033106155693531036,
0.06115727871656418,
-0.0122052738443017,
-0.005958587396889925,
-0.04138506203889847,
-0.03833230212330818,
0.0011782859219238162,
0.011177096515893936,
-0.040957532823085785,
-0.026508476585149765,
-0.010733307339251041,
-0.01391509361565113,
0.06842785328626633,
0.016634905710816383,
-0.006637814920395613,
-0.009778616018593311,
-0.03237736225128174,
0.021128058433532715,
-0.05987882614135742,
0.09228143095970154,
-0.020149268209934235,
0.023252474144101143
] | [
-0.017404329031705856,
0.025362996384501457,
-0.01725861243903637,
0.00955955684185028,
-0.009008810855448246,
-0.016067568212747574,
-0.011195871978998184,
0.03608200326561928,
-0.05456703156232834,
-0.00566013902425766,
-0.014609457924962044,
-0.01805117167532444,
0.02139369770884514,
-0.058160003274679184,
-0.02854347974061966,
-0.03135797381401062,
-0.024521201848983765,
-0.006543935742229223,
0.01409075502306223,
-0.012114467099308968,
-0.008066787384450436,
0.053641676902770996,
-0.004078986123204231,
-0.021155372262001038,
-0.005495903082191944,
0.06861376017332077,
-0.03275488689541817,
0.051326654851436615,
0.015911871567368507,
-0.14065752923488617,
-0.005811696872115135,
-0.013984612189233303,
-0.027958687394857407,
0.016903387382626534,
0.01041718665510416,
-0.01411424484103918,
-0.008027944713830948,
0.04736102744936943,
0.005544610321521759,
-0.01044698990881443,
0.033889565616846085,
-0.017734330147504807,
-0.015199334360659122,
-0.008427218534052372,
0.006902844645082951,
-0.0296770129352808,
0.014507699757814407,
-0.02759299799799919,
0.02551199309527874,
0.015699241310358047,
-0.05247294530272484,
0.03579384461045265,
-0.002370073227211833,
-0.01233900897204876,
0.008281481452286243,
-0.004512701649218798,
0.00864706002175808,
0.04239946976304054,
-0.010696465149521828,
-0.054042164236307144,
-0.011541305109858513,
-0.03235140070319176,
-0.027418125420808792,
-0.03177103027701378,
-0.009496571496129036,
-0.019153133034706116,
-0.016468510031700134,
-0.00225839507766068,
-0.026540607213974,
0.0006386801833286881,
-0.0016731875948607922,
0.02062447927892208,
-0.04844425246119499,
-0.016269657760858536,
-0.04470833018422127,
0.0492941252887249,
0.03667134419083595,
-0.033242590725421906,
-0.004536651074886322,
0.0012992752017453313,
-0.06845807284116745,
0.013832381926476955,
-0.020251687616109848,
0.007148064207285643,
-0.014194147661328316,
-0.02374938130378723,
-0.005201089661568403,
0.0028729166369885206,
0.026418009772896767,
0.02393152378499508,
-0.011188884265720844,
-0.01387303601950407,
0.003050493309274316,
0.03733721375465393,
-0.14052262902259827,
0.019043585285544395,
0.011869026347994804,
-0.0029385508969426155,
0.025151848793029785,
0.822876513004303,
-0.026540609076619148,
0.01733783259987831,
-0.016811048611998558,
0.007745642680674791,
-0.06032838672399521,
0.009382970631122589,
-0.04095074534416199,
0.0073044197633862495,
-0.005855008028447628,
-0.038652461022138596,
0.018053578212857246,
0.010975774377584457,
0.009303134866058826,
0.021399231627583504,
0.03162248060107231,
-0.002804697025567293,
-0.01669386960566044,
-0.008731045760214329,
0.001497604069299996,
-0.02246539108455181,
0.02118987962603569,
0.013394562527537346,
0.017393531277775764,
-0.0029361846391111612,
0.01970161870121956,
-0.19411645829677582,
-0.0007056600297801197,
-6.662403698769204e-33,
-0.013325524516403675,
-0.023041654378175735,
0.025185901671648026,
-0.012912346050143242,
0.015672875568270683,
0.011963751167058945,
-0.0107912328094244,
0.03084757551550865,
-0.022846704348921776,
-0.0030702785588800907,
0.013407237827777863,
0.009621938690543175,
-0.0073156519792973995,
-0.06155197694897652,
0.025398630648851395,
-0.013700197450816631,
0.03140757605433464,
0.015196732245385647,
-0.04161139577627182,
-0.013850192539393902,
0.03619789332151413,
0.030213434249162674,
0.04696498438715935,
0.037539876997470856,
0.014690758660435677,
0.020406683906912804,
0.02812029980123043,
0.006237617693841457,
0.016572440043091774,
-0.03517262637615204,
-0.009026558138430119,
0.01852002553641796,
0.004095486830919981,
-0.015605784021317959,
0.01689760759472847,
-0.0631055235862732,
-0.044584110379219055,
0.001717305975034833,
-0.027250800281763077,
-0.008216424845159054,
-0.054326631128787994,
-0.012292798608541489,
-0.017418328672647476,
0.015319687314331532,
-0.018962664529681206,
0.022814499214291573,
0.02200932241976261,
0.03907133638858795,
-0.00934614147990942,
0.034054312855005264,
0.003103389171883464,
-0.03938085958361626,
0.010963723063468933,
0.027145326137542725,
0.005855543538928032,
0.04639008268713951,
-0.028141727671027184,
-0.011117510497570038,
-0.007481787353754044,
0.04187420755624771,
0.01798805594444275,
0.01031827088445425,
0.021073834970593452,
0.011271286755800247,
-0.018177509307861328,
0.004354747012257576,
0.03912055864930153,
0.000822292233351618,
0.006890626158565283,
0.031237905845046043,
-0.0029753968119621277,
0.03708110377192497,
0.0008609163342043757,
-0.0004963184474036098,
0.05885155126452446,
-0.026449913159012794,
0.02262045443058014,
0.03118039108812809,
0.03423423692584038,
-0.0005571902729570866,
-0.007568635977804661,
-0.031170904636383057,
0.015361255034804344,
-0.02967352792620659,
-0.024342568591237068,
-0.0003153413999825716,
0.016345949843525887,
-0.011346711777150631,
0.009184224531054497,
0.023380476981401443,
-0.010977108962833881,
0.017089582979679108,
-0.015738289803266525,
-0.014257867820560932,
-0.03451741486787796,
6.710895779476501e-33,
0.01955578103661537,
-0.015493446961045265,
0.0031036054715514183,
0.004554903134703636,
0.007632260210812092,
-0.011525625362992287,
0.043440189212560654,
-0.0077780685387551785,
-0.017077160999178886,
0.01521673146635294,
-0.056234367191791534,
0.004140967037528753,
0.03002702072262764,
0.02834142930805683,
0.01985538750886917,
-0.02484605275094509,
0.04517822712659836,
-0.006778217852115631,
0.006131562404334545,
0.004904758185148239,
-0.016339611262083054,
-0.006870869547128677,
0.0017691386165097356,
0.024876419454813004,
0.00467676343396306,
0.02002745121717453,
-0.04194458946585655,
0.020755495876073837,
-0.026581013575196266,
0.0022415569983422756,
0.03818686679005623,
-0.009226582944393158,
-0.004268018063157797,
-0.035412292927503586,
-0.036698129028081894,
0.04050830379128456,
0.02400965988636017,
-0.027941545471549034,
0.02223467454314232,
0.04668878763914108,
-0.0004796654393430799,
-0.014170156791806221,
-0.012365222908556461,
0.026360731571912766,
0.0004007729876320809,
0.016513986513018608,
0.012412662617862225,
0.0325363427400589,
0.0010276447283104062,
0.033307034522295,
0.02344418689608574,
0.04668809100985527,
0.0009439614368602633,
0.06045936420559883,
0.026655789464712143,
-0.0066770026460289955,
0.011282606981694698,
0.00937656220048666,
-0.030671630054712296,
0.023524798452854156,
-0.004318654537200928,
-0.023009276017546654,
-0.011379892937839031,
0.04458412155508995,
-0.03142683207988739,
-0.011952899396419525,
0.017086410894989967,
-0.03805376589298248,
0.005042022094130516,
-0.016086295247077942,
0.021233953535556793,
-0.050187885761260986,
0.009310544468462467,
-0.0021479022689163685,
0.0051945471204817295,
-0.006663700100034475,
-0.03246773034334183,
0.01677391305565834,
0.015147529542446136,
0.0047297170385718346,
0.03446207568049431,
-0.020170137286186218,
0.025222133845090866,
0.02176891826093197,
0.007717443164438009,
0.003665379947051406,
-0.024476375430822372,
-0.03374680504202843,
0.04232620820403099,
-0.028650159016251564,
-0.02479107677936554,
-0.030226491391658783,
0.0037771500647068024,
0.02151808887720108,
-0.012916676700115204,
-1.2454978381981618e-8,
-0.005069713573902845,
0.0053482577204704285,
-0.025319065898656845,
0.016277022659778595,
0.059338588267564774,
-0.009118097834289074,
0.017476346343755722,
0.0051227351650595665,
-0.029482202604413033,
0.024615848436951637,
0.04499272629618645,
-0.03818904608488083,
-0.004538745153695345,
0.01166132465004921,
0.004487119149416685,
-0.03422681614756584,
0.04697893187403679,
0.0030983895994722843,
0.017471691593527794,
0.0035965985152870417,
0.01844012923538685,
0.04416121914982796,
-0.03138240426778793,
-0.017315246164798737,
-0.0005786891561001539,
-0.01827837899327278,
0.02190353162586689,
-0.09387890994548798,
0.0077935573644936085,
-0.014494714327156544,
-0.003647478064522147,
-0.0338328517973423,
0.033866263926029205,
0.005312991328537464,
-0.012581313028931618,
-0.03435860946774483,
0.019834568724036217,
0.04461093246936798,
0.015462473034858704,
0.009575454518198967,
-0.03524651378393173,
-0.007469593081623316,
-0.017794117331504822,
-0.01789758913218975,
-0.031359054148197174,
0.03882690146565437,
-0.04281886667013168,
0.0048959990963339806,
0.009378151968121529,
-0.041091036051511765,
-0.006842212285846472,
0.015135644003748894,
0.0063130855560302734,
0.0316353514790535,
0.011228077113628387,
0.0063977655954658985,
0.017441626638174057,
-0.009208446368575096,
-0.03248470276594162,
0.008261715061962605,
0.006043320521712303,
0.011036159470677376,
-0.020345430821180344,
-0.03397290036082268
] | sparkr-add-new-column-to-data-frame-by-concatenating-other-columns | https://markhneedham.com/blog/2015/09/21/sparkr-add-new-column-to-data-frame-by-concatenating-other-columns |
false | 2015-09-21 22:06:44 | SparkR: Error in invokeJava(isStatic = TRUE, className, methodName, ...) : java.lang.ClassNotFoundException: Failed to load class for data source: csv. | [
"spark-2"
] | [
"Spark"
] | I've been wanting to play around with https://spark.apache.org/docs/latest/sparkr.html[SparkR] for a while and over the weekend deciding to explore a large link:[Land Registry CSV file] containing all the sales of properties in the UK over the last 20 years.
First I started up the SparkR shell with the CSV package loaded in: ~~~bash ./spark-1.5.0-bin-hadoop2.6/bin/sparkR --packages com.databricks:spark-csv_2.11:1.2.0 ~~~
Next I tried to read the CSV file into a Spark data frame by modifying one of the examples from the tutorial: ~~~bash > sales \<- read.df(sqlContext, "pp-complete.csv", "csv") 15/09/20 19:13:02 ERROR RBackendHandler: loadDF on org.apache.spark.sql.api.r.SQLUtils failed Error in invokeJava(isStatic = TRUE, className, methodName, \...) : java.lang.ClassNotFoundException: Failed to load class for data source: csv. at org.apache.spark.sql.execution.datasources.ResolvedDataSource$.lookupDataSource(ResolvedDataSource.scala:67) at org.apache.spark.sql.execution.datasources.ResolvedDataSource$.apply(ResolvedDataSource.scala:87) at org.apache.spark.sql.DataFrameReader.load(DataFrameReader.scala:114) at org.apache.spark.sql.api.r.SQLUtils$.loadDF(SQLUtils.scala:156) at org.apache.spark.sql.api.r.SQLUtils.loadDF(SQLUtils.scala) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.apache.spark.api.r.RBackendHandler.handleMethodCall(RBackendHandler.scala:132) at org.apache.spark.api.r.RBackendHandler.channelRead0(RBackendHandler.scala:79) at org.apache.spark.api.r.RBackendH ~~~
As far as I can tell I have loaded in the CSV data source so I'm not sure why that doesn't work.
However, I came across this https://github.com/databricks/spark-csv/issues/79[github issue] which suggested passing in the full package name as the 3rd argument of 'read.df' rather than just 'csv': ~~~bash > sales \<- read.df(sqlContext, "pp-complete.csv", "com.databricks.spark.csv", header="false") > sales DataFrame[C0:string, C1:string, C2:string, C3:string, C4:string, C5:string, C6:string, C7:string, C8:string, C9:string, C10:string, C11:string, C12:string, C13:string, C14:string] ~~~
And that worked much better! We can now carry on and do some slicing and dicing of the data to see if there are any interesting insights. | null | null | [
-0.0004689341294579208,
-0.03168852627277374,
-0.026205213740468025,
0.03982929885387421,
0.07903745025396347,
0.0071230363100767136,
0.00800588633865118,
0.023403450846672058,
0.03865626081824303,
-0.005955935921519995,
-0.018720494583249092,
-0.015435253269970417,
-0.058084387332201004,
0.0175287127494812,
-0.038514990359544754,
0.048613060265779495,
0.0553736537694931,
0.0075019062496721745,
0.022135691717267036,
-0.009904429316520691,
0.027243101969361305,
0.0734078660607338,
-0.030232906341552734,
0.061186425387859344,
0.010085453279316425,
0.015354588627815247,
0.024320412427186966,
0.0019316378748044372,
-0.05443071946501732,
-0.01853923127055168,
0.02133534476161003,
0.016728457063436508,
0.03000922128558159,
0.019106339663267136,
0.013003523461520672,
0.005335829220712185,
-0.005058912560343742,
0.003948376979678869,
-0.01036078017205,
0.017099587246775627,
-0.05497408285737038,
0.03769174590706825,
0.006681405007839203,
0.018635964021086693,
-0.018885379657149315,
0.011157319881021976,
-0.04377729445695877,
0.021434247493743896,
0.004359603393822908,
0.0063772378489375114,
-0.03892727196216583,
0.02957291342318058,
-0.030283819884061813,
-0.01664252020418644,
0.006420243065804243,
0.03076251968741417,
0.002667744178324938,
-0.09062127023935318,
0.07262037694454193,
-0.032549794763326645,
0.004443970508873463,
-0.00718197925016284,
-0.006165793165564537,
0.011366563849151134,
0.03376905992627144,
-0.03890567272901535,
-0.005623622331768274,
0.08167809247970581,
-0.0499822273850441,
-0.04514874890446663,
-0.003871096298098564,
0.009408428333699703,
-0.013551110401749611,
0.0009504182962700725,
-0.007243151776492596,
-0.04342740774154663,
-0.021450422704219818,
0.06387493014335632,
-0.008979463949799538,
0.03903595730662346,
-0.020301425829529762,
-0.025588540360331535,
0.01787395589053631,
0.00862099975347519,
0.026670578867197037,
-0.056976500898599625,
-0.056792862713336945,
-0.04213543236255646,
-0.029802566394209862,
0.054706376045942307,
0.021525302901864052,
-0.013961460441350937,
0.0024300352670252323,
0.02507377788424492,
-0.008394789882004261,
0.017958296462893486,
-0.01141840685158968,
0.000553010730072856,
0.0011170944198966026,
-0.034283481538295746,
-0.07260722666978836,
-0.00599896302446723,
0.016836367547512054,
0.016523385420441628,
-0.06255190819501877,
-0.011586428619921207,
-0.02211499772965908,
0.00018891699437517673,
0.008484386838972569,
0.03164055570960045,
-0.017912259325385094,
0.008351785130798817,
-0.034516748040914536,
-0.012314427644014359,
-0.08295291662216187,
0.06644071638584137,
0.045773644000291824,
-0.0013542546657845378,
0.007651235442608595,
0.01459286268800497,
0.041964925825595856,
0.03830311447381973,
-0.032195404171943665,
0.0629262775182724,
0.014755467884242535,
0.05725939944386482,
-0.0007787593058310449,
0.047729235142469406,
0.007935992442071438,
-0.08626984804868698,
-0.0002390916197327897,
0.045552488416433334,
-0.013262718915939331,
0.0026630423963069916,
-0.0015656695468351245,
-0.007435265462845564,
-0.001244871411472559,
-0.014110255055129528,
0.067799411714077,
0.01900167390704155,
-0.0017051418544724584,
-0.004471386782824993,
0.01826600730419159,
0.017928313463926315,
0.033781688660383224,
0.054297514259815216,
-0.004701517056673765,
-0.03722977265715599,
-0.02986292727291584,
0.02910836599767208,
0.029923900961875916,
0.032081276178359985,
0.08202299475669861,
-0.012714031152427197,
0.006410847418010235,
0.10525693744421005,
0.007131617050617933,
0.01696774922311306,
-0.021453887224197388,
-0.0005195037228986621,
0.054123811423778534,
0.027665548026561737,
0.030286097899079323,
0.016063572838902473,
0.009009486064314842,
-0.03662916272878647,
0.009963514283299446,
0.016142381355166435,
-0.011586351320147514,
-0.009516420774161816,
-0.07199308276176453,
-0.07088792324066162,
0.04957108944654465,
-0.04645839333534241,
0.03247939422726631,
0.006334332749247551,
0.07626015692949295,
0.02650517411530018,
0.04815928637981415,
-0.005848778877407312,
-0.07141686975955963,
0.020440638065338135,
-0.007595742121338844,
0.018416358157992363,
0.0459594763815403,
0.00019766698824241757,
0.06445327401161194,
0.027989115566015244,
0.022767815738916397,
0.058918558061122894,
-0.06896383315324783,
-0.07655017077922821,
-0.008250524289906025,
-0.03214006498456001,
0.04129428043961525,
-0.02423141710460186,
0.004377870354801416,
0.04811329394578934,
0.006109980400651693,
0.006347091402858496,
-0.009396255016326904,
-0.005713369231671095,
0.017390115186572075,
-0.051111988723278046,
-0.023781388998031616,
0.018482914194464684,
0.022735845297574997,
-0.015006567351520061,
-0.029273122549057007,
-0.015013606287539005,
-0.012972768396139145,
0.004653808195143938,
0.036174409091472626,
-0.017344672232866287,
0.059391941875219345,
0.04650859162211418,
0.0427853986620903,
0.01733495108783245,
0.06729016453027725,
-0.04013475030660629,
0.07779564708471298,
0.0006268154829740524,
-0.03521587699651718,
-0.01808900386095047,
0.007923518307507038,
0.12521767616271973,
0.05031540244817734,
-0.005246889777481556,
-0.07669883221387863,
0.03215258941054344,
0.023218054324388504,
-0.04370005801320076,
0.015081493183970451,
-0.03695226460695267,
0.017445581033825874,
0.024877751246094704,
-0.034483686089515686,
-0.02394840493798256,
0.015481991693377495,
-0.01529297698289156,
-0.015056626871228218,
0.059714578092098236,
-0.018781526014208794,
0.0359741747379303,
0.014379783533513546,
-0.028151346370577812,
-0.005815774202346802,
-0.03242058306932449,
-0.06388220936059952,
-0.028611458837985992,
0.04030037671327591,
-0.007783847860991955,
0.03421976417303085,
-0.01968475803732872,
-0.0069447779096663,
-0.022443972527980804,
-0.05373257398605347,
0.01775464229285717,
0.0647299736738205,
0.052869874984025955,
-0.013187390752136707,
0.030671516433358192,
-0.04744962975382805,
0.007668664213269949,
-0.018431149423122406,
0.004766201134771109,
-0.02471780590713024,
-0.005267009604722261,
0.018023358657956123,
0.015085253864526749,
0.007495749741792679,
0.017036225646734238,
0.0189864132553339,
0.002090108348056674,
-0.0015864341985434294,
-0.004340183921158314,
0.02465209551155567,
-0.026996025815606117,
0.0013854989083483815,
-0.020020438358187675,
-0.015920253470540047,
0.031073614954948425,
-0.022454319521784782,
-0.011770779266953468,
0.009416954591870308,
-0.041996948421001434,
0.04370070621371269,
-0.04612450301647186,
-0.04760855436325073,
0.006405006628483534,
0.026222005486488342,
0.02067703567445278,
0.03045198880136013,
0.0019031815463677049,
0.07039982825517654,
0.03150193765759468,
-0.01297893188893795,
0.03315548226237297,
-0.0007989882724359632,
0.04344630613923073,
-0.013806154020130634,
0.03612597659230232,
0.032486692070961,
0.01007871050387621,
-0.02258622832596302,
-0.03644881024956703,
-0.024471590295433998,
-0.03655261546373367,
-0.28018710017204285,
0.04834028705954552,
-0.04898937791585922,
-0.0709134042263031,
0.018059518188238144,
-0.04519974812865257,
-0.02782740816473961,
-0.03967839851975441,
-0.00919325277209282,
0.018421856686472893,
-0.011868360452353954,
-0.03770321607589722,
-0.03518456220626831,
0.039360467344522476,
0.0048989541828632355,
0.03499117121100426,
0.0028331184294074774,
-0.04171217605471611,
-0.005740227643400431,
0.04057985544204712,
0.022196130827069283,
-0.03993137180805206,
-0.010949424467980862,
0.05585906282067299,
0.011598091572523117,
0.04659472778439522,
-0.05963846668601036,
0.0511329360306263,
-0.04164532199501991,
-0.01871989108622074,
0.03895867243409157,
-0.042445894330739975,
0.009540235623717308,
-0.014120195060968399,
-0.03135169669985771,
-0.006563464179635048,
0.008780982345342636,
0.03537267446517944,
-0.007190675940364599,
-0.009918997064232826,
-0.03501474857330322,
-0.05428026616573334,
-0.005749634001404047,
0.0048578898422420025,
0.04338013008236885,
-0.023858675733208656,
-0.07770133763551712,
-0.0012042132439091802,
-0.046128928661346436,
0.06691152602434158,
-0.037713441997766495,
-0.03574734553694725,
-0.03596964478492737,
0.018494129180908203,
-0.02763967402279377,
0.01649351418018341,
-0.010220950469374657,
-0.004042212385684252,
-0.024970803409814835,
-0.008646638132631779,
-0.002455443376675248,
-0.0582023486495018,
0.012369535863399506,
-0.05562116950750351,
-0.026450583711266518,
-0.06149398908019066,
-0.06689442694187164,
-0.010064741596579552,
0.06163006275892258,
0.0615917444229126,
-0.038301073014736176,
0.03762396425008774,
-0.013187757693231106,
-0.11249536275863647,
-0.00474191177636385,
-0.052828747779130936,
-0.001741843530908227,
-0.029734263196587563,
-0.03441367298364639,
0.06772628426551819,
-0.04035616293549538,
-0.039881862699985504,
0.01852608285844326,
-0.0012016932014375925,
0.004074806813150644,
0.0031908878590911627,
0.006239697337150574,
-0.02609245292842388,
-0.020147131755948067,
-0.03556429222226143,
0.05224883556365967,
-0.05291547626256943,
-0.003280918812379241,
-0.007190917152911425,
-0.04138786718249321,
0.0489218607544899,
-0.01645781099796295,
-0.006977314595133066,
-0.00038357122684828937,
0.02733149752020836,
0.027681250125169754,
-0.07739784568548203,
0.003986787050962448,
-0.03306331858038902,
-0.01516678836196661,
-0.003925860393792391,
-0.0654427781701088,
0.014540533535182476,
0.02089332602918148,
0.01917846128344536,
0.010602629743516445,
-0.02469516359269619,
0.01762237213551998,
-0.06382390111684799,
-0.011655362322926521,
-0.017923317849636078,
0.015827232971787453,
0.006348614580929279,
0.0302265677601099,
-0.02572295442223549,
-0.05856677144765854,
-0.015126973390579224,
0.01479343231767416,
-0.033037785440683365,
-0.03920627012848854,
-0.020434530451893806,
0.008793724700808525,
-0.021872246637940407,
-0.028912538662552834,
-0.008761577308177948,
-0.03703523054718971,
0.0017013965407386422,
0.04142140969634056,
-0.0037508616223931313,
0.008096789941191673,
-0.04130667448043823,
-0.06882680952548981,
-0.0340578518807888,
0.0135591896250844,
0.030748862773180008,
-0.009721210226416588,
-0.018274255096912384,
0.025038519874215126,
0.03486011177301407,
0.04654845967888832,
0.014086483046412468,
0.004085279535502195,
0.03171287477016449,
0.014896188862621784,
-0.006236281245946884,
0.012073173187673092,
-0.01745191402733326,
0.013860381208360195,
-0.03632938489317894,
-0.05987546220421791,
-0.024872319772839546,
0.03111184574663639,
-0.0003739777021110058,
-0.014246377162635326,
-0.03644425794482231,
0.04591142013669014,
-0.02701207809150219,
-0.0016181881073862314,
-0.02206319011747837,
0.010371573269367218,
0.041144806891679764,
0.008670838549733162,
0.013159715570509434,
0.018903758376836777,
-0.0045929704792797565,
-0.0004361179599072784,
-0.029319023713469505,
-0.001973868114873767,
0.016681194305419922,
-0.012587453238666058,
0.017525753006339073,
0.03291584923863411,
0.027662701904773712,
0.030731961131095886,
0.030479848384857178,
0.00021439087868202478,
-0.0025846080388873816,
0.0005508052418008447,
0.003962547518312931,
0.04052199423313141,
0.03817050904035568,
-0.029531393200159073,
-0.010315489023923874,
0.008482255972921848,
-0.045577213168144226,
-0.014918732456862926,
-0.002862990368157625,
-0.00009647469414630905,
0.036573782563209534,
-0.028398605063557625,
-0.08559427410364151,
0.032559819519519806,
0.013493187725543976,
-0.011173256672918797,
0.00868996512144804,
-0.020947424694895744,
-0.03231930360198021,
-0.028780441731214523,
0.029546141624450684,
0.07274332642555237,
-0.03652914613485336,
-0.00496881827712059,
-0.010396809317171574,
-0.014009350910782814,
0.023730669170618057,
0.009513047523796558,
-0.07597000151872635,
0.007253879681229591,
-0.03494735434651375,
0.03336189314723015,
-0.028486374765634537,
-0.05263005942106247,
-0.037788063287734985,
0.026419468224048615,
0.008295475505292416,
0.007581925019621849,
-0.007202719803899527,
0.008099648170173168,
-0.008022456429898739,
-0.005867977160960436,
0.014795118011534214,
-0.016361692920327187,
-0.0287469569593668,
0.02438785880804062,
-0.042352426797151566,
-0.0035860661882907152,
-0.018130062147974968,
0.028435075655579567,
0.02116437815129757,
-0.021864350885152817,
0.005669333040714264,
-0.0229074377566576,
0.011390328407287598,
0.0252134557813406,
0.06966239213943481,
0.02164171077311039,
-0.003725141054019332,
0.012311183847486973,
0.013144751079380512,
0.0030039367265999317,
0.007205551955848932,
-0.014510207809507847,
-0.008496983908116817,
0.022613802924752235,
0.05058598890900612,
-0.014514615759253502,
0.015331823378801346,
-0.0023525424767285585,
-0.03228767216205597,
0.07170617580413818,
-0.041111886501312256,
-0.03610052913427353,
-0.016812220215797424,
-0.06437899172306061,
0.04729828983545303,
0.039762839674949646,
0.006564056966453791,
-0.022017162293195724,
0.06287386268377304,
0.05190844088792801,
0.011326161213219166,
0.04473816603422165,
0.0029290139209479094,
0.03933196887373924,
-0.022807613015174866,
-0.02893809601664543,
-0.08621305227279663,
-0.011821330524981022,
0.029653945937752724,
0.00667942501604557,
-0.01000094972550869,
-0.03959206864237785,
-0.052498698234558105,
-0.0010252522770315409,
-0.07788534462451935,
-0.062093790620565414,
0.008381867781281471,
-0.004229913931339979,
0.010693407617509365,
-0.010242139920592308,
-0.011486903764307499,
0.0462874136865139,
0.026867475360631943,
-0.0477876178920269,
-0.036988984793424606,
-0.05307963117957115,
0.04182388260960579,
0.0035735145211219788,
0.01142270676791668,
-0.02315714582800865,
-0.01628609001636505,
0.06426671892404556,
0.005121433176100254,
0.02644379250705242,
0.05920055881142616,
-0.009426339529454708,
0.0657881423830986,
0.02258286252617836,
-0.039557576179504395,
0.005487905349582434,
0.012743353843688965,
0.007072578649967909,
-0.04331095516681671,
0.016150938346982002,
0.027437720447778702,
0.03447538986802101,
-0.051289793103933334,
0.07000570744276047,
0.03533367067575455,
-0.04171294718980789,
-0.026595188304781914,
-0.006942467764019966,
-0.019887259230017662,
-0.0162062868475914,
-0.024403516203165054,
0.004476533737033606,
-0.04394067823886871,
0.0563109889626503,
-0.045073624700307846,
0.006562046241015196,
0.06567949056625366,
0.003629293292760849,
-0.009959705173969269,
0.007936549372971058,
0.05667451024055481,
0.07501322031021118,
0.00682839285582304,
0.00847803894430399,
0.05501135438680649,
-0.010848749428987503,
-0.04517599567770958,
0.03534706309437752,
-0.03297654911875725,
0.008008535951375961,
-0.0402572862803936,
0.0045790160074830055,
0.06180930882692337,
-0.005464906804263592,
0.07525981962680817,
-0.019166236743330956,
0.007427753880620003,
-0.006245772819966078,
0.0067604947835206985,
0.038887545466423035,
0.019949253648519516,
0.020214324817061424,
0.04021456092596054,
0.00040495366556569934,
-0.017129497602581978,
0.017827974632382393,
0.015642965212464333,
-0.038721226155757904,
0.01952579990029335,
-0.003680742345750332,
0.016010524705052376,
0.04487575218081474,
0.029455389827489853,
0.0973726212978363,
-0.014553620480000973,
-0.01391488965600729,
-0.0024483641609549522,
0.032967302948236465,
-0.00593376811593771,
0.013381954282522202,
-0.010923213325440884,
-0.03279637172818184,
-0.032945118844509125,
-0.06746137887239456,
-0.016449790447950363,
-0.007138956803828478,
-0.03582088276743889,
0.0014640841400250793,
-0.04185481742024422,
0.026570087298750877,
0.0514519065618515,
-0.014119993895292282,
-0.048446718603372574,
-0.050841402262449265,
-0.0447673574090004,
0.006325232796370983,
-0.0810273140668869,
0.0031018408481031656,
-0.018681349232792854,
-0.030772272497415543,
-0.04218996688723564,
-0.0458480603992939,
-0.03279246762394905,
-0.010202632285654545,
0.039868082851171494,
-0.041371237486600876,
-0.05432190001010895,
0.009245098568499088,
-0.0002326880639884621,
0.031345296651124954,
0.04289230331778526,
0.050571367144584656,
-0.0008370777941308916,
-0.006207633297890425,
-0.012834249064326286,
0.0014674845151603222,
0.048751503229141235,
-0.0008163518505170941,
0.029539771378040314,
-0.06414882838726044,
0.035206422209739685,
0.00940342340618372,
0.0023127144668251276,
-0.07209424674510956,
0.008455431088805199,
0.06232600659132004,
0.01076461374759674,
0.05093236267566681,
-0.0002243657218059525,
-0.020457632839679718,
-0.045688942074775696,
-0.034252576529979706,
-0.014392760582268238,
0.035267919301986694,
0.028078511357307434,
-0.0327756404876709,
0.07935769110918045,
0.08602369576692581,
-0.0014301761984825134,
-0.04158028960227966,
-0.014703966677188873,
0.002810075646266341,
0.028896726667881012,
-0.05821505934000015,
-0.02317095547914505,
-0.05959758535027504,
-0.06474236398935318,
-0.00956108421087265,
-0.011459669098258018,
-0.056298527866601944,
-0.015109115280210972,
0.014764975756406784,
0.03268830105662346,
-0.05009220167994499,
0.010090324096381664,
-0.04661467298865318,
0.008062567561864853,
-0.020098358392715454,
-0.03514670208096504,
-0.008319590240716934,
0.05085647851228714,
0.024080587550997734,
-0.008095131255686283,
0.009615336544811726,
-0.0036835966166108847,
0.018399402499198914,
-0.025236697867512703,
0.03487282991409302,
0.03473521023988724,
-0.030292486771941185,
-0.023488936945796013
] | [
-0.05440058559179306,
-0.04192490503191948,
-0.004503275733441114,
-0.001313765998929739,
0.06307589262723923,
-0.04098920896649361,
-0.049487706273794174,
0.01683329977095127,
-0.00810734648257494,
0.006575652398169041,
0.0029791714623570442,
-0.08347296714782715,
-0.005423264112323523,
-0.044759057462215424,
0.042327892035245895,
-0.014442839659750462,
0.0020872389432042837,
-0.05571160092949867,
-0.053241364657878876,
0.048054877668619156,
-0.017806561663746834,
-0.046803995966911316,
-0.03819775581359863,
-0.03982140123844147,
0.0068457480520009995,
0.020512264221906662,
0.022642649710178375,
-0.05621510371565819,
-0.04151584208011627,
-0.21296729147434235,
-0.0016083117807283998,
-0.04077507555484772,
0.04115460440516472,
0.006631980184465647,
-0.008459717035293579,
0.0064481343142688274,
0.005698007065802813,
0.01863003708422184,
-0.00960387010127306,
0.01981646753847599,
0.02891419641673565,
-0.014434713870286942,
-0.07064121216535568,
-0.0006188151892274618,
-0.003886149963364005,
0.0024089457001537085,
0.010950212366878986,
0.00008207398059312254,
0.007814082317054272,
0.0023905711714178324,
-0.10796289145946503,
0.02326401136815548,
0.015373935922980309,
-0.013373143039643764,
-0.015382403507828712,
0.03866572305560112,
0.06291660666465759,
0.08522753417491913,
0.04569851979613304,
0.00720200315117836,
-0.008111437782645226,
-0.0016488259425386786,
-0.18078216910362244,
0.08251317590475082,
-0.00781963486224413,
0.05585939809679985,
-0.03690514713525772,
-0.04111694544553757,
-0.022409163415431976,
0.010796544142067432,
0.005221827886998653,
-0.026513922959566116,
-0.05065683647990227,
0.08823743462562561,
-0.00625889515504241,
-0.006311548408120871,
-0.045741967856884,
0.024957600980997086,
0.02851404994726181,
-0.05690702423453331,
-0.05766402557492256,
0.0010978484060615301,
-0.016693396493792534,
-0.008732892572879791,
-0.03409460186958313,
0.02174283191561699,
0.00312097929418087,
0.047038499265909195,
0.05340218171477318,
0.027163473889231682,
0.039198800921440125,
-0.010320776142179966,
0.06379109621047974,
0.03365014120936394,
-0.10829898715019226,
-0.03534059226512909,
0.0060965088196098804,
-0.0024818801321089268,
0.02206810936331749,
0.37888556718826294,
-0.01880289427936077,
-0.036826107650995255,
-0.001434949110262096,
0.06001061201095581,
0.011879904195666313,
-0.0029344139620661736,
-0.01451658084988594,
-0.025746174156665802,
0.028348611667752266,
-0.03989073261618614,
0.009525573812425137,
-0.039169929921627045,
0.04648151993751526,
-0.07411933690309525,
0.012831902131438255,
0.011996312998235226,
-0.0046824440360069275,
0.004236827604472637,
-0.02187400683760643,
0.05050335079431534,
-0.0205365177243948,
0.011503207497298717,
0.015663612633943558,
0.030645202845335007,
0.005946696270257235,
0.003010754706338048,
0.04952087253332138,
0.03684490919113159,
0.0794965997338295,
0.010554174892604351,
0.022548858076334,
-0.015249082818627357,
-0.11165016144514084,
-0.013841487467288971,
0.024636665359139442,
0.03438107669353485,
0.02546076476573944,
-0.02783474139869213,
0.013036421500146389,
0.009810972027480602,
-0.004960021004080772,
-0.06177962198853493,
0.015659300610423088,
0.018413038924336433,
-0.020411403849720955,
0.08245635032653809,
-0.010379137471318245,
-0.014264211058616638,
-0.014350480400025845,
-0.03935481607913971,
0.006164665799587965,
0.02653893642127514,
0.01449624728411436,
-0.0475342720746994,
0.033470626920461655,
0.030539285391569138,
0.06332634389400482,
-0.0330641008913517,
-0.07733649760484695,
-0.009730604477226734,
-0.016055168583989143,
-0.03828850015997887,
-0.0366775244474411,
0.03534916788339615,
0.039384860545396805,
-0.10007599741220474,
-0.042042091488838196,
0.004850899800658226,
-0.018142083659768105,
-0.017651062458753586,
0.013452202081680298,
0.00865135621279478,
-0.007856613025069237,
-0.005492629017680883,
0.08691201359033585,
-0.03140375018119812,
-0.023513605818152428,
0.0071442266926169395,
0.032807521522045135,
0.03052900917828083,
0.0036275046877563,
0.03476543352007866,
0.003809439018368721,
0.054849591106176376,
-0.03812086209654808,
-0.10900934785604477,
-0.07507248222827911,
0.011887903325259686,
-0.017030613496899605,
-0.03640860319137573,
-0.02996152639389038,
-0.007728321943432093,
-0.0429651103913784,
0.08670950680971146,
-0.004572050180286169,
-0.027975384145975113,
0.039468731731176376,
0.029197322204709053,
0.040180712938308716,
-0.028627466410398483,
0.008725710213184357,
0.062041107565164566,
-0.0025175746995955706,
0.04026777297258377,
-0.05482710152864456,
0.0008434889023192227,
0.028399741277098656,
-0.040300436317920685,
0.04093446955084801,
-0.017201051115989685,
-0.004869098775088787,
0.006681222468614578,
-0.026808781549334526,
0.03502770885825157,
-0.028194710612297058,
-0.02065841294825077,
-0.016089992597699165,
-0.023382920771837234,
0.022811250761151314,
0.031004857271909714,
-0.015567083843052387,
-0.03510996699333191,
-0.008977244608104229,
-0.38111087679862976,
-0.00952099822461605,
0.0037095588631927967,
-0.02850566990673542,
-0.006190565414726734,
-0.019223252311348915,
-0.021126197651028633,
0.007728150114417076,
-0.005021030083298683,
0.044646382331848145,
0.08459549397230148,
-0.024955494329333305,
0.017894981428980827,
-0.12175902724266052,
0.027188794687390327,
0.03684629499912262,
-0.03376486524939537,
-0.0008635182748548687,
-0.05584646016359329,
0.033303339034318924,
0.01829354465007782,
-0.02704908326268196,
-0.018193474039435387,
-0.01699034683406353,
0.0777600035071373,
-0.03248266875743866,
0.07850389927625656,
0.008502285927534103,
0.043425630778074265,
-0.08101950585842133,
0.05374816060066223,
0.018189189955592155,
0.0021937191486358643,
-0.058167893439531326,
0.020324833691120148,
-0.06488557904958725,
-0.019709456712007523,
0.026557793840765953,
0.0042996457777917385,
-0.0008690710528753698,
-0.028722934424877167,
0.02969885990023613,
-0.06592901796102524,
-0.02606060914695263,
0.0033321348018944263,
-0.018300697207450867,
0.024161608889698982,
0.009750334545969963,
0.006811996456235647,
0.08670403808355331,
0.008456356823444366,
0.0407758392393589,
0.07662449032068253,
0.05253881588578224,
0.07322879135608673,
-0.023626288399100304,
-0.07045993953943253,
0.025733286514878273,
0.03824271634221077,
-0.01958155445754528,
0.03776063024997711,
0.05407418683171272,
0.06326714903116226,
-0.04876461997628212,
0.010600859299302101,
-0.02990177646279335,
0.0069305929355323315,
0.030743243172764778,
0.017621004953980446,
-0.02194974385201931,
-0.058198481798172,
0.06272058188915253,
-0.03510341793298721,
0.03907310962677002,
0.033649612218141556,
0.0873645544052124,
-0.009475776925683022,
-0.03413436934351921,
0.03125707805156708,
-0.0029086831491440535,
0.05717970430850983,
-0.027007760480046272,
0.05668947100639343,
-0.009299132972955704,
0.02769169583916664,
0.08456657081842422,
-0.026332752779126167,
-0.016271913424134254,
0.02368817664682865,
0.008799047209322453,
-0.006951569579541683,
-0.0034442369360476732,
-0.04119027778506279,
-0.020386312156915665,
0.08800321072340012,
0.016178583726286888,
-0.2381846308708191,
0.024672651663422585,
0.026310956105589867,
0.03139273077249527,
-0.01563558354973793,
-0.0052048563957214355,
0.022714318707585335,
-0.0616491474211216,
0.020544391125440598,
0.00018074536637868732,
0.015356387943029404,
0.03261834383010864,
0.015564571134746075,
-0.009870138019323349,
0.010883690789341927,
-0.03231516852974892,
0.06796759366989136,
0.031722813844680786,
0.044897474348545074,
-0.006021186243742704,
0.008843490853905678,
-0.02146913856267929,
0.1284300535917282,
0.04821690917015076,
-0.022735226899385452,
0.018824398517608643,
0.010710334405303001,
-0.019234172999858856,
0.059891290962696075,
0.044045738875865936,
-0.015521456487476826,
-0.00182315893471241,
0.043419063091278076,
0.02016221545636654,
0.02174428477883339,
-0.02663791924715042,
0.022579500451683998,
0.032538868486881256,
0.044109977781772614,
-0.011186686344444752,
-0.010767241939902306,
0.03634793311357498,
-0.0502634271979332,
0.021129963919520378,
0.03816542774438858,
-0.028447506949305534,
-0.025700002908706665,
-0.05293680354952812,
-0.07064757496118546,
-0.010067948140203953,
0.012550576590001583,
-0.02532477118074894,
-0.039661750197410583,
-0.019314881414175034,
0.005376952234655619,
0.04795977845788002,
0.027883658185601234,
-0.02922653965651989,
-0.004161978140473366,
-0.0129912244156003,
0.0415680818259716,
-0.06511368602514267,
0.09691309183835983,
0.004732584115117788,
0.013620096258819103
] | [
-0.017687635496258736,
0.0014258011942729354,
-0.01596960425376892,
0.01761731691658497,
-0.003436499508097768,
-0.02411680668592453,
0.012137453071773052,
0.028153924271464348,
-0.030869122594594955,
-0.009032698348164558,
-0.006667634472250938,
-0.004263108596205711,
0.0092144925147295,
-0.05566339194774628,
-0.014852097257971764,
-0.06319556385278702,
-0.009372609667479992,
-0.015404786914587021,
0.0046394020318984985,
0.013470986858010292,
-0.0033036167733371258,
0.04185963794589043,
-0.0059133293107151985,
-0.009586719796061516,
0.01106610894203186,
0.030731085687875748,
-0.041069939732551575,
0.03565188869833946,
0.01690909080207348,
-0.12371218949556351,
-0.004517517983913422,
-0.011467153206467628,
-0.003841367084532976,
0.00805850513279438,
0.023340407758951187,
-0.0256305243819952,
-0.01971559226512909,
0.026592610403895378,
-0.038076892495155334,
-0.01554575003683567,
0.03607391193509102,
-0.0403556190431118,
-0.026439469307661057,
-0.0010764958569779992,
-0.032090771943330765,
-0.03539533540606499,
0.025029491633176804,
-0.037704817950725555,
0.014025152660906315,
0.030991951003670692,
-0.04056083410978317,
0.032799702137708664,
-0.007619187701493502,
0.003633324056863785,
0.01199349481612444,
0.026750007644295692,
0.018010202795267105,
0.04107697680592537,
0.015133691020309925,
-0.03470715880393982,
-0.016424089670181274,
-0.05038022622466087,
-0.008085448294878006,
-0.038224950432777405,
-0.013717025518417358,
0.00012927742500323802,
-0.0052042435854673386,
-0.0035631030332297087,
-0.009574170224368572,
-0.01382242701947689,
-0.0034052161499857903,
0.028720607981085777,
-0.04832514747977257,
-0.022425567731261253,
-0.044761959463357925,
0.056121330708265305,
0.033333856612443924,
-0.02592078223824501,
-0.0013231986667960882,
0.002182727213948965,
-0.0716991126537323,
0.012299484573304653,
-0.01145833358168602,
0.018404709175229073,
-0.025204837322235107,
-0.009058513678610325,
-0.012010620906949043,
-0.016705065965652466,
0.016956906765699387,
0.019676364958286285,
-0.013841436244547367,
0.018076440319418907,
0.01869933307170868,
0.03004305437207222,
-0.1303175985813141,
0.03477110713720322,
0.03886404633522034,
-0.02022620663046837,
0.007201784756034613,
0.8105596899986267,
-0.013834210112690926,
0.027933195233345032,
-0.006262624636292458,
0.016103602945804596,
-0.05972781032323837,
0.009064213372766972,
-0.06068101152777672,
-0.015356922522187233,
-0.007948442362248898,
-0.036931220442056656,
0.035434309393167496,
0.018939679488539696,
0.010066731832921505,
0.024297552183270454,
0.04334595426917076,
-0.007597167976200581,
0.006920984946191311,
-0.0038075183983892202,
0.018033960834145546,
-0.016235103830695152,
0.038189224898815155,
-0.0007070082938298583,
-0.0065355561673641205,
-0.03442617878317833,
0.029837140813469887,
-0.18398669362068176,
0.01714843325316906,
-6.913567168605587e-33,
-0.00005370862709241919,
-0.012824084609746933,
0.02793373353779316,
0.004075443837791681,
0.025454089045524597,
0.01985323801636696,
-0.02305668406188488,
0.06401416659355164,
-0.024983152747154236,
-0.024166615679860115,
-0.00732096191495657,
0.012592880055308342,
0.00865692924708128,
-0.05837732180953026,
0.032826658338308334,
0.005701055284589529,
0.008713502436876297,
0.02154681459069252,
-0.03339862823486328,
-0.008443852886557579,
0.03667297959327698,
0.059611495584249496,
0.03681158646941185,
0.04636387526988983,
-0.011207902804017067,
0.009573379531502724,
0.018173042684793472,
-0.007423570845276117,
-0.0013738233828917146,
-0.03203803673386574,
-0.02616380713880062,
0.021259797737002373,
0.019806448370218277,
-0.025007937103509903,
0.040188174694776535,
-0.062171220779418945,
-0.034277286380529404,
-0.0026509067974984646,
-0.023037075996398926,
-0.014022831805050373,
-0.052816953510046005,
-0.016037700697779655,
-0.021753616631031036,
0.011214281432330608,
-0.03723981976509094,
0.01824723742902279,
0.00922704953700304,
0.02444414608180523,
-0.010733517818152905,
0.03100285492837429,
0.014603927731513977,
-0.022190403193235397,
0.03240179270505905,
0.03666682541370392,
0.012823724187910557,
0.049875061959028244,
-0.04070022702217102,
-0.03905821964144707,
-0.009535529650747776,
0.015582690015435219,
0.011203291825950146,
-0.01535507570952177,
0.012829729355871677,
0.013497035019099712,
-0.011066890321671963,
-0.016011018306016922,
0.02071697637438774,
0.003594262758269906,
0.012800613418221474,
0.006572992540895939,
-0.013379479758441448,
0.06441476196050644,
-0.014256855472922325,
-0.006831247825175524,
0.047433823347091675,
-0.048324063420295715,
0.030999869108200073,
0.02193431369960308,
0.010488077998161316,
0.022251835092902184,
0.010851849801838398,
-0.023419786244630814,
0.011394058354198933,
-0.03213660791516304,
-0.03777026757597923,
-0.01156921498477459,
0.005690541584044695,
0.016645416617393494,
0.01721862517297268,
0.01725040376186371,
0.00652622664347291,
-0.0017232279060408473,
0.010638481006026268,
-0.020928561687469482,
-0.052588872611522675,
6.823702094853162e-33,
0.003568813903257251,
-0.029985610395669937,
-0.010882669128477573,
0.008421052247285843,
0.026042480021715164,
0.0061416830867528915,
0.06053359806537628,
-0.01209237053990364,
-0.038316287100315094,
-0.013231968507170677,
-0.05660541355609894,
0.006244230549782515,
0.02442789450287819,
0.028317134827375412,
0.02016347274184227,
0.006981325801461935,
0.021677011623978615,
-0.018618253991007805,
0.010750547982752323,
0.003245596308261156,
-0.010567079298198223,
-0.003539926139637828,
-0.006117342039942741,
0.03440286964178085,
0.02669643424451351,
-0.007834608666598797,
-0.03796073794364929,
0.014522307552397251,
-0.018747858703136444,
-0.012999358586966991,
0.029581785202026367,
0.014753351919353008,
0.0001171874682768248,
-0.040745317935943604,
-0.05439455807209015,
0.011044391430914402,
0.021273883059620857,
-0.03091668151319027,
0.021314235404133797,
0.025068383663892746,
0.00891786627471447,
-0.035706352442502975,
-0.02293420396745205,
0.014667431823909283,
0.01617324724793434,
0.040996212512254715,
0.011798051185905933,
0.04920504242181778,
0.012917689979076385,
0.04774593561887741,
0.009073186665773392,
0.025787420570850372,
0.006676867138594389,
0.06498125195503235,
0.04287124425172806,
-0.024854255840182304,
0.02341909147799015,
0.0028930120170116425,
-0.047094278037548065,
0.0034962131176143885,
-0.008008575066924095,
-0.02932238020002842,
-0.007322424557060003,
0.04543004557490349,
-0.036757368594408035,
-0.01618064008653164,
0.026413194835186005,
-0.01903706230223179,
-0.015259386971592903,
-0.04948592931032181,
0.017659597098827362,
-0.07338589429855347,
-0.007597802672535181,
0.015570099465548992,
0.009207036346197128,
-0.00581833953037858,
-0.0068077268078923225,
0.004119787830859423,
-0.015803836286067963,
-0.008054795674979687,
0.021986400708556175,
0.0034539815969765186,
0.03139664605259895,
0.008965869434177876,
0.01741212233901024,
0.007282351143658161,
-0.017605043947696686,
-0.04317490756511688,
0.018413115292787552,
0.015559541061520576,
-0.06673416495323181,
-0.030865022912621498,
-0.009150533936917782,
0.01018933579325676,
0.02237735688686371,
-1.2713399222263888e-8,
0.012214520014822483,
0.019286390393972397,
-0.028258074074983597,
-0.0003570676490198821,
0.051953356713056564,
0.0162519384175539,
0.023162811994552612,
0.033979881554841995,
-0.026041951030492783,
0.02059723436832428,
0.03064321167767048,
-0.04492464289069176,
0.030556125566363335,
0.011270043440163136,
0.017581218853592873,
-0.014578732661902905,
0.032935310155153275,
-0.00024025735910981894,
0.016309082508087158,
0.00181041460018605,
0.013193832710385323,
0.03502915799617767,
-0.03283202275633812,
-0.01808599755167961,
-0.017412060871720314,
0.021036874502897263,
0.0360395684838295,
-0.09286665916442871,
0.0064069777727127075,
-0.027654167264699936,
-0.01981051079928875,
-0.04258125647902489,
0.032767403870821,
-0.011421325616538525,
-0.03655372932553291,
0.0007390680257230997,
0.030474744737148285,
0.0464630126953125,
0.043010078370571136,
0.014337155036628246,
-0.02653910219669342,
0.00000932874081627233,
-0.04199570044875145,
-0.022678958252072334,
-0.03241651505231857,
0.03223311901092529,
-0.04243138059973717,
0.027791563421487808,
0.008261915296316147,
-0.013651924207806587,
-0.008031198754906654,
-0.00944435317069292,
0.001901378738693893,
0.013785412535071373,
0.01580517552793026,
0.008480417542159557,
0.027422063052654266,
0.007540515158325434,
-0.012720388360321522,
0.009749412536621094,
0.02068174257874489,
0.009764663875102997,
-0.042911164462566376,
-0.028109271079301834
] | sparkr-error-in-invokejavaisstatic-true-classname-methodname-java-lang-classnotfoundexception-failed-to-load-class-for-data-source-csv | https://markhneedham.com/blog/2015/09/21/sparkr-error-in-invokejavaisstatic-true-classname-methodname-java-lang-classnotfoundexception-failed-to-load-class-for-data-source-csv |
false | 2015-09-30 05:54:54 | IntelliJ 14.1.5: Unable to import maven project | [
"intellij",
"java"
] | [
"Java"
] | After a recent IntelliJ upgrade I've been running into the following error when trying to attach the sources of any library being pulled in via Maven:
____
Unable to import maven project
____
It seems like this is a recent issue in the 14.x series and luckily is http://stackoverflow.com/questions/30569909/unable-to-import-maven-project-in-intellij14[reasonably easy to fix] by https://youtrack.jetbrains.com/issue/IDEA-140208[adding the following flag] to the VM options passed to the Maven importer:
[source,text]
----
-Didea.maven3.use.compat.resolver
----
And this is where you need to add it:
image::{{<siteurl>}}/uploads/2015/09/2015-09-30_00-18-17.png[2015 09 30 00 18 17,500]
Cmd + , \-> Build, Execution, Deployment \-> Build Tools \-> Maven \-> Importing | null | null | [
-0.008282918483018875,
0.0032467672135680914,
-0.02914375066757202,
0.0308240856975317,
0.07600037753582001,
0.013489695265889168,
0.03146762400865555,
0.00879582203924656,
0.0005660821334458888,
-0.029875343665480614,
-0.021855343133211136,
-0.006177778821438551,
-0.07182004302740097,
0.021886251866817474,
-0.051012080162763596,
0.05858387053012848,
0.07409108430147171,
0.035405807197093964,
-0.010195889510214329,
0.018474144861102104,
0.04259003326296806,
0.05760522559285164,
-0.00890714768320322,
0.017623592168092728,
0.005075505934655666,
0.0025399792939424515,
0.022590376436710358,
-0.03492298349738121,
-0.07061411440372467,
-0.03760979697108269,
0.024966776371002197,
-0.014337516389787197,
0.02211954817175865,
-0.020969845354557037,
-0.008902186527848244,
0.0011828782735392451,
-0.025545425713062286,
0.011185715906322002,
0.01661512441933155,
0.012334195896983147,
-0.04879268631339073,
0.03757172077894211,
-0.010831359773874283,
0.008112982846796513,
-0.05522796884179115,
0.01621096208691597,
-0.03145153447985649,
0.017753610387444496,
-0.02032139152288437,
-0.02730163186788559,
-0.08085434138774872,
0.025051232427358627,
-0.03758924826979637,
0.0011139686685055494,
0.02688799612224102,
0.03379635140299797,
-0.002972434042021632,
-0.09636745601892471,
0.03903308883309364,
-0.026747701689600945,
-0.01059652864933014,
0.003239426761865616,
0.0008519731345586479,
0.020191101357340813,
-0.0016556705813854933,
-0.036592599004507065,
-0.031155211851000786,
0.057275447994470596,
-0.0673566684126854,
-0.02858686074614525,
0.007750663906335831,
0.004144071601331234,
-0.0350276418030262,
-0.0022832509130239487,
0.0407344289124012,
-0.060928795486688614,
-0.010952797718346119,
0.06931831687688828,
0.029070759192109108,
0.048875633627176285,
-0.004737362265586853,
-0.007474142592400312,
0.03300804644823074,
0.004751877393573523,
0.026450376957654953,
-0.037740543484687805,
0.0038400886114686728,
-0.011736029759049416,
-0.007178723346441984,
0.042706962674856186,
0.025516975671052933,
-0.061137136071920395,
0.02622494101524353,
0.015318051911890507,
0.04267764464020729,
0.021321887150406837,
-0.003056376241147518,
0.005146785639226437,
0.03372674062848091,
0.013185109943151474,
-0.007452674675732851,
0.03204020857810974,
0.023001985624432564,
0.056227654218673706,
-0.06351009011268616,
-0.024639150127768517,
-0.018095480278134346,
-0.012668997049331665,
-0.025841781869530678,
-0.015398936346173286,
-0.025928638875484467,
0.02037569135427475,
-0.017740372568368912,
-0.0008080513216555119,
-0.06303531676530838,
0.0758875384926796,
0.005326864309608936,
-0.04078278690576553,
0.0007362270262092352,
0.046312060207128525,
0.034134555608034134,
0.048492033034563065,
-0.01433242205530405,
0.07350445538759232,
-0.013607123866677284,
0.06451532989740372,
-0.04315373674035072,
0.046086691319942474,
-0.00806763768196106,
-0.05640311539173126,
0.006487926468253136,
0.06879694759845734,
-0.012953178957104683,
0.002108635613694787,
0.005476754624396563,
-0.025810793042182922,
0.0008631412638351321,
0.012326437048614025,
0.028346795588731766,
0.013976208865642548,
-0.03313343971967697,
-0.03561396524310112,
-0.02473262883722782,
0.02789747714996338,
0.033618614077568054,
0.0189641285687685,
-0.032817739993333817,
-0.05078381299972534,
-0.0297510027885437,
0.021253926679491997,
-0.007554721552878618,
0.043162714689970016,
0.042750708758831024,
-0.027641253545880318,
0.012653571553528309,
0.1290808767080307,
0.02431277371942997,
0.008878705091774464,
-0.06701545417308807,
0.02275538444519043,
0.002293842379003763,
0.042458951473236084,
0.00437807897105813,
0.04486291483044624,
-0.0005243588821031153,
-0.039291881024837494,
-0.024838320910930634,
0.018492376431822777,
0.014365087263286114,
0.03191923722624779,
-0.06353288888931274,
-0.09880917519330978,
0.0537046417593956,
-0.04976951703429222,
0.0042040073312819,
0.03449701517820358,
0.09627338498830795,
0.03484242781996727,
0.03069770522415638,
0.04817860573530197,
-0.0786980390548706,
0.01492617279291153,
-0.02254348248243332,
-0.018664343282580376,
0.022715047001838684,
0.010764804668724537,
0.050003230571746826,
0.020310090854763985,
-0.01590435951948166,
0.020121537148952484,
-0.08329621702432632,
-0.05429039150476456,
-0.02041027322411537,
0.0025715769734233618,
0.038770921528339386,
-0.005690287798643112,
-0.02968491055071354,
0.06476107984781265,
0.01936550997197628,
0.025205153971910477,
0.034394845366477966,
0.02715115249156952,
0.018951542675495148,
-0.0643247663974762,
-0.04329432174563408,
0.03625190258026123,
0.03252842649817467,
-0.001072604558430612,
-0.03621307387948036,
0.0020420991349965334,
-0.014972023665904999,
0.007986785843968391,
0.04500584676861763,
-0.016348760575056076,
0.06403744965791702,
0.01697324588894844,
0.00682503916323185,
-0.06620392203330994,
0.04137524962425232,
-0.051652804017066956,
0.032035067677497864,
-0.00903763435781002,
-0.03000841662287712,
-0.02402249537408352,
-0.011424731463193893,
0.07756791263818741,
0.0483357273042202,
-0.018265090882778168,
-0.030914291739463806,
0.013700751587748528,
0.014459631405770779,
-0.02479695715010166,
-0.011308234184980392,
-0.027227558195590973,
0.03085828758776188,
-0.03693512827157974,
-0.04502101242542267,
-0.01592230424284935,
-0.0031840784940868616,
-0.03311192989349365,
0.023705458268523216,
0.07863610237836838,
-0.03208479285240173,
0.05751170590519905,
0.0232712309807539,
-0.0010633651399984956,
0.0005298295291140676,
-0.02146894298493862,
-0.05127428099513054,
0.00838107243180275,
0.030516367405653,
-0.018665578216314316,
0.0428580716252327,
-0.034018851816654205,
-0.026755742728710175,
-0.023611590266227722,
-0.05701736360788345,
0.007412096951156855,
0.04256461188197136,
0.07494370639324188,
0.008847660385072231,
0.021320601925253868,
-0.021880025044083595,
0.009401284158229828,
-0.006979683879762888,
-0.01742776297032833,
-0.010380149818956852,
-0.005685409530997276,
0.012796496972441673,
0.002171164145693183,
0.026028459891676903,
0.01916266232728958,
-0.0008260722388513386,
-0.01392417773604393,
0.026162588968873024,
-0.0065690902993083,
0.01659098081290722,
0.008177495561540127,
-0.00510014034807682,
-0.04699580371379852,
-0.006507789716124535,
0.046761102974414825,
-0.03713060915470123,
-0.021445326507091522,
-0.007525267545133829,
-0.06073019281029701,
0.044613536447286606,
-0.06759186834096909,
-0.02994718961417675,
0.008029750548303127,
0.03444056585431099,
0.015826640650629997,
-0.013213344849646091,
0.02014671452343464,
0.06758735328912735,
-0.012765726074576378,
0.016104670241475105,
0.014694134704768658,
0.029876669868826866,
0.06323365867137909,
0.00571035360917449,
0.03423002362251282,
0.029705025255680084,
0.011100650765001774,
-0.00402243435382843,
-0.026752283796668053,
0.03367176279425621,
-0.043487679213285446,
-0.25310420989990234,
0.025562690570950508,
-0.011523857712745667,
-0.06857641786336899,
0.02265090122818947,
-0.030984193086624146,
0.00795377790927887,
-0.043010953813791275,
-0.029693229123950005,
-0.008561262860894203,
-0.0005379131180234253,
-0.049153249710798264,
0.009638749063014984,
0.04506956413388252,
-0.029030058532953262,
0.008307022042572498,
0.026895733550190926,
-0.044133447110652924,
0.014006568118929863,
0.02102653495967388,
0.00012865057215094566,
-0.03190995752811432,
0.005103353410959244,
0.05308562144637108,
0.0018724598921835423,
0.04440024867653847,
-0.052193477749824524,
0.08319365978240967,
-0.039375241845846176,
-0.013691323809325695,
0.009636390022933483,
-0.012684696353971958,
-0.03389629349112511,
-0.028793329373002052,
-0.028546148911118507,
-0.009892269037663937,
0.0026442951057106256,
0.007579585071653128,
-0.011307639069855213,
-0.0070871287025511265,
-0.03173224255442619,
-0.04775048419833183,
0.0379057340323925,
-0.03490567207336426,
0.05780597776174545,
-0.009128137491643429,
-0.11519528925418854,
-0.008743252605199814,
-0.02639705501496792,
0.10080477595329285,
-0.044069066643714905,
-0.026109695434570312,
0.026821447536349297,
0.008797384798526764,
-0.005974473897367716,
0.00009689987200545147,
-0.01108899898827076,
-0.02475089766085148,
-0.048880189657211304,
-0.03451741114258766,
0.010525359772145748,
-0.03495693951845169,
-0.03274589404463768,
-0.037668418139219284,
-0.03090572915971279,
-0.053952038288116455,
-0.04450074955821037,
-0.03545993193984032,
0.05545371398329735,
0.0010513111483305693,
-0.037447623908519745,
0.0008400496444664896,
-0.005456120241433382,
-0.10124468803405762,
0.0215640589594841,
-0.05439884215593338,
-0.064120814204216,
-0.007995666936039925,
-0.02241283468902111,
0.030883565545082092,
-0.03861645981669426,
-0.029595155268907547,
0.005576909985393286,
0.0042451308108866215,
-0.020443307235836983,
0.004994472488760948,
0.040177829563617706,
-0.009830408729612827,
-0.026758596301078796,
0.002364241285249591,
0.05664046108722687,
-0.04572305083274841,
-0.05867365375161171,
-0.054127227514982224,
-0.022891204804182053,
-0.00525966240093112,
0.0031451561953872442,
0.010559321381151676,
0.029000522568821907,
0.077840156853199,
0.020789096131920815,
-0.05185341089963913,
0.01164749450981617,
0.0038475445471704006,
-0.03417724743485451,
-0.009293793700635433,
-0.07012857496738434,
0.009486842900514603,
0.03700839355587959,
0.02507256530225277,
-0.003790798597037792,
-0.04224153608083725,
0.017526252195239067,
-0.04445671662688255,
-0.053583815693855286,
-0.01238503772765398,
0.03628291189670563,
0.05410003662109375,
0.008361279033124447,
-0.02298228070139885,
-0.07004769891500473,
0.01015019416809082,
0.030770886689424515,
-0.012030219659209251,
-0.027585620060563087,
-0.007140930742025375,
-0.04337316006422043,
-0.005821783561259508,
0.006705180741846561,
-0.014421071857213974,
-0.029510842636227608,
0.05129391327500343,
0.055890586227178574,
-0.020670779049396515,
0.030886715278029442,
-0.05280720815062523,
-0.01675870083272457,
0.0023388704285025597,
0.00767113920301199,
-0.01498713530600071,
-0.04277700185775757,
0.0037131248973309994,
-0.023006439208984375,
0.0036411478649824858,
0.04461014270782471,
-0.0016383873298764229,
0.008508025668561459,
0.011950206942856312,
-0.018087374046444893,
0.005360581912100315,
0.01540896575897932,
-0.03032427653670311,
0.029962778091430664,
-0.02175741456449032,
-0.045061636716127396,
0.0134816262871027,
0.005524932872503996,
0.00040553935104981065,
0.0014183071907609701,
-0.02532464638352394,
0.007421416696161032,
-0.04907520115375519,
-0.006659639533609152,
0.031007688492536545,
-0.04239966347813606,
0.06006518006324768,
0.015065598301589489,
0.00021102846949361265,
-0.011995291337370872,
-0.01482310239225626,
0.024434976279735565,
0.03192761912941933,
-0.023148253560066223,
0.016918513923883438,
-0.006155441049486399,
0.017069309949874878,
0.01767451874911785,
0.01238842774182558,
0.058592669665813446,
0.012027326039969921,
-0.03216005116701126,
-0.010127476416528225,
0.02349291555583477,
-0.0035736376885324717,
0.0044796401634812355,
-0.04265289381146431,
0.009254615753889084,
-0.03381938114762306,
-0.01925431378185749,
-0.06333906948566437,
-0.001457085832953453,
0.010120108723640442,
0.0031696856021881104,
0.01878034695982933,
-0.02649255283176899,
-0.05952763557434082,
0.013332369737327099,
0.011712225154042244,
0.016252096742391586,
0.010914348065853119,
-0.030680282041430473,
0.005554886534810066,
-0.034410517662763596,
0.069450743496418,
0.07464297115802765,
-0.07242146879434586,
-0.022602500393986702,
-0.0007176650688052177,
0.021149812266230583,
0.012447284534573555,
-0.006105269771069288,
-0.05751882493495941,
-0.00950759556144476,
0.006622716784477234,
0.0062586660496890545,
-0.04099035635590553,
-0.04665219411253929,
-0.0107197230681777,
0.0313187800347805,
0.007906381972134113,
-0.012066887691617012,
0.005412527360022068,
0.011553464457392693,
-0.017510220408439636,
-0.010653579607605934,
0.03145400062203407,
-0.009830954484641552,
0.026846015825867653,
0.007223485503345728,
-0.011220116168260574,
0.04188179597258568,
-0.04191296175122261,
0.052085697650909424,
-0.0009616762981750071,
0.019612688571214676,
0.005364126991480589,
-0.017459262162446976,
0.007786134723573923,
0.02386513166129589,
0.04047621414065361,
0.03382449969649315,
0.014419062994420528,
-0.020844072103500366,
0.0031148323323577642,
-0.029530111700296402,
0.02317490056157112,
-0.01493099331855774,
-0.008604355156421661,
-0.011532284319400787,
0.07071506977081299,
-0.022030340507626534,
0.02062309719622135,
-0.0008871689205989242,
-0.016381679102778435,
0.0812433660030365,
-0.06227349489927292,
-0.055622000247240067,
0.02029413729906082,
-0.04296889528632164,
-0.014811784029006958,
0.025551022961735725,
0.01739652454853058,
-0.05119038000702858,
0.052583497017621994,
0.04493878036737442,
-0.00945364311337471,
0.02621457539498806,
0.003109745914116502,
0.023426078259944916,
-0.04499111324548721,
-0.046744268387556076,
-0.09223800152540207,
-0.0007578401709906757,
0.030651375651359558,
-0.005270202178508043,
-0.020412256941199303,
-0.012550368905067444,
-0.048083215951919556,
0.04026033729314804,
-0.0786224752664566,
-0.03193213418126106,
0.021692145615816116,
-0.004540649242699146,
0.03665813058614731,
0.05178550258278847,
-0.04039280116558075,
0.04106403887271881,
0.02684509940445423,
-0.04707493260502815,
-0.021567216143012047,
-0.023532303050160408,
0.05918140336871147,
0.019395707175135612,
0.019858574494719505,
-0.007171399425715208,
0.014148637652397156,
0.05617142841219902,
0.023955605924129486,
0.018058309331536293,
0.02626127563416958,
0.022274542599916458,
0.04212912917137146,
0.04978872463107109,
-0.0160861536860466,
-0.03897397220134735,
0.021398324519395828,
-0.0091100400313735,
-0.043840210884809494,
0.0414225272834301,
-0.005754122976213694,
0.0018468702910467982,
-0.03539656102657318,
0.050240807235240936,
0.02583259530365467,
-0.003938969690352678,
-0.019121600314974785,
0.01693687029182911,
-0.06174932420253754,
0.015419005416333675,
-0.02977946028113365,
-0.0025271091144531965,
-0.031002089381217957,
0.04260808974504471,
-0.009311426430940628,
-0.015553249977529049,
0.050306785851716995,
0.000321053754305467,
0.001063618459738791,
0.005615314934402704,
0.06743873655796051,
0.053076840937137604,
0.026747269555926323,
0.0479554682970047,
0.05978985130786896,
0.0026559755206108093,
-0.030500704422593117,
0.008091002702713013,
-0.027638303115963936,
-0.018665309995412827,
-0.0109387943521142,
-0.013071676716208458,
0.07098258286714554,
0.026762237772345543,
0.065985307097435,
-0.018214430660009384,
0.021992603316903114,
-0.02111702598631382,
-0.01872136816382408,
0.04496050626039505,
0.03432150557637215,
-0.0006032983073964715,
0.01623089797794819,
-0.027971157804131508,
-0.033566273748874664,
-0.01578056812286377,
0.004257888998836279,
-0.015013834461569786,
0.04351077601313591,
-0.011433864943683147,
-0.002494184300303459,
0.050155412405729294,
0.030953023582696915,
0.09071923792362213,
-0.021293766796588898,
-0.0031468598172068596,
-0.032518431544303894,
0.03322915360331535,
0.040728796273469925,
0.0003724588896147907,
-0.028381427749991417,
-0.03295179083943367,
0.005531310569494963,
-0.05006542429327965,
-0.02264271304011345,
-0.023959394544363022,
0.0003040191950276494,
0.048945095390081406,
-0.02708958089351654,
0.0028657761868089437,
0.047256212681531906,
0.006651885341852903,
-0.03363591432571411,
-0.03126475214958191,
-0.020691022276878357,
-0.019800575450062752,
-0.02842400036752224,
0.01554441824555397,
0.020189033821225166,
-0.002813101978972554,
-0.04741527885198593,
-0.004366734065115452,
-0.005555617623031139,
-0.03390905261039734,
0.02349039353430271,
-0.07256747037172318,
-0.0305851511657238,
0.031780850142240524,
0.020650912076234818,
-0.011821187101304531,
-0.0027505545876920223,
0.06744100153446198,
-0.011432166211307049,
-0.008745039813220501,
-0.008279937319457531,
0.0345253124833107,
0.0331643782556057,
-0.010613558813929558,
0.04679935798048973,
-0.09257955104112625,
0.010448173619806767,
0.02924933284521103,
-0.0005696682492271066,
-0.05408325046300888,
-0.010258867405354977,
0.044027991592884064,
-0.020989008247852325,
0.06477838009595871,
0.021204199641942978,
0.0024930948857218027,
-0.03829632326960564,
0.013128790073096752,
-0.009725607000291348,
0.003602781565859914,
0.04270884394645691,
-0.004249792546033859,
0.08224917203187943,
0.05835183709859848,
0.005333035718649626,
-0.03599878400564194,
-0.026844266802072525,
0.013864067383110523,
0.015185156837105751,
-0.021863896399736404,
-0.001557813724502921,
-0.05444878339767456,
-0.10312608629465103,
-0.004686395172029734,
-0.011153844185173512,
-0.01451537199318409,
-0.0324723906815052,
-0.019324010238051414,
-0.006312955636531115,
-0.0960102453827858,
0.021910997107625008,
-0.05162088945508003,
-0.004647928290069103,
0.0018444391898810863,
-0.01948177069425583,
-0.005431873723864555,
0.016811484470963478,
0.04405951872467995,
-0.0017361491918563843,
0.039310965687036514,
-0.052406180649995804,
0.013926602900028229,
-0.011910772882401943,
0.0308803990483284,
0.05608386918902397,
0.013104964978992939,
-0.025639627128839493
] | [
-0.08586674183607101,
-0.020199362188577652,
-0.024189623072743416,
-0.035617779940366745,
0.0446944423019886,
-0.08079107105731964,
-0.054191477596759796,
0.03497622162103653,
-0.03633568435907364,
-0.034066036343574524,
0.045748237520456314,
-0.05767083913087845,
-0.0004061519866809249,
-0.02405865490436554,
0.10982915014028549,
0.0503728948533535,
-0.01252097450196743,
-0.041305817663669586,
-0.022216014564037323,
-0.024128064513206482,
-0.006699350196868181,
-0.028087159618735313,
0.015279497019946575,
-0.0245809406042099,
-0.002272104611620307,
0.06493349373340607,
0.049176041036844254,
-0.027441030368208885,
-0.004255994223058224,
-0.20282191038131714,
-0.0009866864420473576,
0.00949816219508648,
-0.001793566858395934,
-0.026203935965895653,
0.029093792662024498,
0.07816537469625473,
-0.01101825200021267,
0.03767799586057663,
0.0044126552529633045,
0.016579149290919304,
0.04193924739956856,
0.013378847390413284,
-0.06967625021934509,
-0.06932610273361206,
0.02589249424636364,
-0.03432418406009674,
0.003674077335745096,
-0.008107134141027927,
0.036247655749320984,
-0.03737523406744003,
-0.05414414778351784,
-0.013022132217884064,
0.027415471151471138,
-0.05323907732963562,
-0.017453819513320923,
0.031174546107649803,
0.04861113056540489,
0.07247624546289444,
0.032737553119659424,
0.013394132256507874,
0.020358523353934288,
-0.014265729114413261,
-0.16472205519676208,
0.09747209399938583,
0.01381025742739439,
0.016988998278975487,
-0.01571902260184288,
-0.03993932902812958,
-0.03006204031407833,
0.06185033917427063,
0.01491986121982336,
-0.017450477927923203,
-0.02583451382815838,
0.04675056412816048,
0.018231332302093506,
0.023097826167941093,
0.025978809222579002,
-0.002281562192365527,
0.06522765010595322,
-0.023589113727211952,
-0.03820860758423805,
-0.015603394247591496,
-0.03712419420480728,
-0.03084687702357769,
-0.025715665891766548,
0.01557480450719595,
0.008795585483312607,
0.0903402715921402,
0.02963254600763321,
0.02409074269235134,
0.007918099872767925,
-0.03456690534949303,
0.06567977368831635,
0.0254703089594841,
-0.0996105968952179,
0.003270068671554327,
0.015356906689703465,
-0.0071043106727302074,
-0.06530769169330597,
0.42202675342559814,
-0.013058295473456383,
-0.018534168601036072,
0.08300048112869263,
0.03385457396507263,
0.0009201199281960726,
0.03521610423922539,
-0.035627324134111404,
-0.029147876426577568,
0.035433925688266754,
-0.03413976728916168,
0.008253184147179127,
-0.0045109158381819725,
0.05969247967004776,
-0.04212607815861702,
0.015483904629945755,
-0.0017998649273067713,
0.01306233648210764,
-0.03511538356542587,
-0.05581920966506004,
0.033019065856933594,
-0.003806410124525428,
-0.007488942239433527,
0.030026433989405632,
0.048096831887960434,
0.010973656550049782,
-0.023765867576003075,
-0.006290145218372345,
0.04459892958402634,
0.01568569801747799,
-0.03664116933941841,
0.00469397334381938,
-0.029687073081731796,
-0.0979304313659668,
-0.014817765913903713,
0.013491695746779442,
0.010211055167019367,
0.017939181998372078,
-0.055281899869441986,
-0.006303420756012201,
0.01966949924826622,
-0.035532355308532715,
-0.032096028327941895,
0.012392299249768257,
-0.02196982130408287,
-0.05534225329756737,
0.08410052955150604,
0.024060474708676338,
-0.025650225579738617,
-0.006277062930166721,
-0.050509463995695114,
-0.01791866309940815,
0.03517436608672142,
0.003952221013605595,
-0.02315567620098591,
0.04280559718608856,
0.010389771312475204,
0.06942522525787354,
-0.018672380596399307,
-0.06380882859230042,
0.02524247020483017,
0.004484742879867554,
-0.0458989180624485,
-0.04159119352698326,
0.06680034101009369,
0.034764159470796585,
-0.08056103438138962,
-0.0400807149708271,
0.003180284518748522,
0.03922637179493904,
-0.02983473800122738,
-0.037443213164806366,
0.040678970515728,
0.000885520305018872,
-0.009466501884162426,
0.05546581745147705,
-0.040554989129304886,
-0.011998536065220833,
0.013719880022108555,
0.017842281609773636,
0.012118012644350529,
0.01775316521525383,
0.014530540443956852,
-0.038283418864011765,
0.00881018303334713,
-0.008555090054869652,
-0.08737260848283768,
-0.046336911618709564,
-0.010250688530504704,
-0.026641100645065308,
-0.028567293658852577,
-0.05295160412788391,
0.04339224100112915,
0.006105121225118637,
0.0886852964758873,
0.03364105522632599,
-0.013815776444971561,
-0.031120533123612404,
0.03284737467765808,
0.03734379634261131,
-0.0603673979640007,
0.029408402740955353,
0.03803645819425583,
-0.03336608037352562,
0.04839861020445824,
-0.08270078897476196,
0.04095473513007164,
0.037179041653871536,
-0.03781807795166969,
0.04360326752066612,
0.010183753445744514,
-0.060051918029785156,
-0.018030045554041862,
0.062170643359422684,
0.02696945331990719,
-0.010680094361305237,
-0.00715083722025156,
-0.03858879581093788,
0.0027384646236896515,
0.0318664088845253,
0.03161393478512764,
-0.051608264446258545,
-0.022122126072645187,
-0.01453288272023201,
-0.33018842339515686,
0.002702093916013837,
-0.017690546810626984,
0.008099122904241085,
-0.027328437194228172,
-0.053508102893829346,
0.024958118796348572,
-0.055782418698072433,
-0.004763590171933174,
0.01676180399954319,
0.07229067385196686,
-0.03967675194144249,
0.01757841929793358,
-0.08596602082252502,
0.005753260105848312,
0.009730451740324497,
-0.03480193018913269,
-0.002077415818348527,
-0.02138107642531395,
-0.0017871891614049673,
-0.009165080264210701,
-0.01014204602688551,
-0.03494982421398163,
-0.0018809852190315723,
-0.01088131032884121,
-0.01934949867427349,
0.08495553582906723,
0.021868687123060226,
0.03604995086789131,
-0.0667109563946724,
0.049849897623062134,
0.0828770250082016,
0.006771135609596968,
-0.10205283015966415,
-0.016158293932676315,
-0.008076049387454987,
0.00006357375241350383,
0.0016474525909870863,
0.027822252362966537,
0.006590720731765032,
-0.04557078704237938,
0.024854714050889015,
-0.062087539583444595,
-0.052503690123558044,
-0.006690270733088255,
-0.0064557702280581,
-0.03792952001094818,
-0.021387360990047455,
0.0003622444928623736,
0.07444357126951218,
-0.038241542875766754,
0.02402506396174431,
0.029723474755883217,
0.028000617399811745,
-0.0038899106439203024,
-0.020715253427624702,
-0.057855501770973206,
0.012429766356945038,
0.054426975548267365,
0.0024720649234950542,
0.023271210491657257,
0.0794551894068718,
0.02446862868964672,
-0.05750634893774986,
0.0015813258942216635,
0.007523979991674423,
0.02860880456864834,
0.026791362091898918,
0.03931539133191109,
-0.0017466886201873422,
-0.00601272564381361,
0.09964277595281601,
0.007791182026267052,
0.022366810590028763,
0.008493203669786453,
0.061457738280296326,
-0.009809207171201706,
0.019246261566877365,
0.023244429379701614,
-0.009629366919398308,
0.003911223262548447,
0.042248450219631195,
0.029511302709579468,
-0.027809815481305122,
-0.015044096857309341,
0.07959018647670746,
-0.06627383828163147,
-0.05259443446993828,
0.06695074588060379,
0.026209497824311256,
-0.041421081870794296,
0.012586276978254318,
-0.0176592655479908,
-0.03867112100124359,
0.09498045593500137,
0.003187496680766344,
-0.2162715345621109,
0.03866128623485565,
0.07795686274766922,
0.029918387532234192,
-0.040738675743341446,
0.007387908175587654,
0.040407534688711166,
-0.08026804774999619,
0.014391548000276089,
0.01907467469573021,
0.04384301230311394,
0.013801652938127518,
-0.02545154094696045,
-0.00428226962685585,
0.05771932750940323,
-0.01821579784154892,
0.04458070918917656,
0.02188654989004135,
0.04263164475560188,
-0.027043761685490608,
-0.01560663990676403,
-0.022921014577150345,
0.14436259865760803,
0.030239107087254524,
-0.024856535717844963,
0.010363665409386158,
-0.002381168073043227,
0.024759091436862946,
0.022102346643805504,
0.03220215067267418,
-0.02807900309562683,
0.01391338836401701,
0.055555928498506546,
0.02943759597837925,
0.029033463448286057,
-0.05667184665799141,
-0.014192834496498108,
0.02714088372886181,
0.015364532358944416,
0.010730404406785965,
-0.028032738715410233,
0.015929121524095535,
-0.05454404279589653,
0.05315641313791275,
0.06045844778418541,
-0.020856034010648727,
0.009507909417152405,
-0.013757927343249321,
-0.0850551575422287,
-0.016562489792704582,
-0.04532824084162712,
-0.023480115458369255,
-0.010270134545862675,
-0.0010929908603429794,
0.005796875339001417,
0.06323374062776566,
0.018474498763680458,
-0.030346885323524475,
-0.006327638402581215,
0.016290748491883278,
0.019774174317717552,
-0.03206861391663551,
0.10473320633172989,
-0.027202703058719635,
0.01044628769159317
] | [
-0.016232505440711975,
0.016209574416279793,
0.004233440849930048,
0.02585594914853573,
0.022328313440084457,
-0.007905403152108192,
-0.013664331287145615,
0.024216119199991226,
-0.0026232877280563116,
-0.040273770689964294,
0.03868181258440018,
-0.002932382747530937,
0.002101803896948695,
0.03180219978094101,
0.01940055936574936,
-0.037435200065374374,
-0.0034971977584064007,
0.009458736516535282,
0.05975179001688957,
0.010323203168809414,
-0.02157636731863022,
0.041271310299634933,
-0.006051982752978802,
-0.026362165808677673,
0.010411961004137993,
0.07540605962276459,
0.0006629109266214073,
-0.00959433801472187,
0.007201382424682379,
-0.13725602626800537,
-0.007874596863985062,
-0.014355316758155823,
0.008543116971850395,
-0.04178684204816818,
0.03184913843870163,
0.019156577065587044,
-0.011779865249991417,
0.03102700784802437,
-0.001043474767357111,
-0.031112058088183403,
-0.011139393784105778,
-0.031562693417072296,
0.07294215261936188,
-0.013881470076739788,
-0.0335339680314064,
-0.012438710778951645,
0.02246694453060627,
-0.0192271675914526,
-0.012602620758116245,
0.009046216495335102,
-0.04952378571033478,
-0.018497558310627937,
0.0022168916184455156,
0.006501019466668367,
0.051204971969127655,
0.03238467499613762,
0.01774500124156475,
0.021173326298594475,
-0.006629458628594875,
0.017307156696915627,
-0.0013412846019491553,
-0.00319809652864933,
-0.03696250915527344,
-0.03233857452869415,
-0.04434358701109886,
-0.021613918244838715,
0.04845092445611954,
0.014001146890223026,
-0.06183969974517822,
0.005232307128608227,
0.00399151211604476,
0.01165736373513937,
-0.00965228769928217,
-0.011951984837651253,
0.023879418149590492,
0.05966848507523537,
0.008813468739390373,
0.012423808686435223,
0.06124622002243996,
0.011749017052352428,
-0.009904352016746998,
0.018168078735470772,
-0.0013237774837762117,
-0.02718869224190712,
0.00507715018466115,
-0.011106215417385101,
-0.021329618990421295,
-0.02703321911394596,
0.04885895177721977,
0.043168243020772934,
-0.029322238638997078,
-0.0005511150811798871,
-0.031243478879332542,
0.03923827409744263,
-0.06704005599021912,
-0.0036595358978956938,
-0.017124272882938385,
-0.019894378259778023,
-0.003682607552036643,
0.8112640380859375,
-0.02551404759287834,
0.05184759944677353,
0.036431558430194855,
0.0235305055975914,
0.023523317649960518,
0.02912767045199871,
0.03715619072318077,
-0.018902035430073738,
0.008644765242934227,
-0.009589741937816143,
0.028547190129756927,
-0.009240846149623394,
0.05492377281188965,
-0.05012689530849457,
0.04830780252814293,
0.006993947550654411,
0.03226017206907272,
0.019151294603943825,
-0.010734236799180508,
-0.018714185804128647,
-0.023267894983291626,
-0.008299155160784721,
0.009632842615246773,
-0.030768029391765594,
0.009284240193665028,
-0.18597286939620972,
-0.03602144867181778,
-8.63226039767873e-33,
0.020878149196505547,
-0.004971372429281473,
-0.01027431059628725,
0.009554469957947731,
-0.006549317855387926,
-0.06147283688187599,
0.0017693592235445976,
-0.011536216363310814,
-0.010024003684520721,
-0.029161417856812477,
-0.047683730721473694,
-0.055765245109796524,
-0.02415231242775917,
0.015449865721166134,
-0.008725348860025406,
0.004494680557399988,
0.024896951392292976,
0.014136997051537037,
-0.014921920374035835,
0.019383057951927185,
0.020780330523848534,
-0.006969561334699392,
-0.016102943569421768,
-0.0004252092621754855,
0.009063608944416046,
0.05770678445696831,
0.060610298067331314,
-0.006912261713296175,
-0.00046038272557780147,
-0.04427432268857956,
0.008820810355246067,
-0.011951519176363945,
-0.03257820010185242,
-0.03374902904033661,
0.0011112223146483302,
-0.049650728702545166,
-0.03499780222773552,
-0.019160233438014984,
-0.03366515040397644,
0.018215904012322426,
-0.014309247955679893,
0.013014545664191246,
-0.02754218503832817,
0.04185720533132553,
-0.0033271415159106255,
0.010521459393203259,
0.04136651009321213,
0.03524978458881378,
0.00556178716942668,
0.05700000748038292,
0.004804409109055996,
0.012201117351651192,
-0.04200300574302673,
-0.02071663923561573,
-0.020764613524079323,
0.05191780626773834,
-0.017420422285795212,
0.056661151349544525,
0.05109424144029617,
-0.03172648698091507,
-0.03696190565824509,
-0.010502918623387814,
-0.0005196506390348077,
0.041406404227018356,
0.0020299421157687902,
0.055832184851169586,
-0.038761332631111145,
-0.03272007405757904,
0.0025847742799669504,
0.04767395555973053,
-0.013007822446525097,
0.019035834819078445,
-0.012292301282286644,
-0.040271904319524765,
0.0068266079761087894,
-0.02686755731701851,
-0.025180935859680176,
0.003450198797509074,
0.02813665382564068,
0.04572319984436035,
0.0018373536877334118,
-0.0022205933928489685,
-0.00472294632345438,
-0.046350568532943726,
-0.031463779509067535,
0.007460734806954861,
0.007146818563342094,
0.005379504058510065,
0.03272271528840065,
-0.02028915286064148,
0.02243581786751747,
0.0254818107932806,
0.013904986903071404,
-0.017960503697395325,
-0.030367659404873848,
9.014301939167728e-33,
0.02361876890063286,
0.02623847872018814,
-0.010676732286810875,
0.004172727931290865,
0.012503749690949917,
-0.007527197245508432,
0.005785763263702393,
0.008876842446625233,
-0.054051920771598816,
0.03012796677649021,
-0.038548361510038376,
0.02235952392220497,
-0.020217232406139374,
-0.023010792210698128,
0.022660691291093826,
0.0005352412117645144,
0.02764245681464672,
-0.009164592251181602,
0.022143255919218063,
-0.009524019435048103,
0.005924736149609089,
0.013391315937042236,
0.02081051468849182,
0.03818932920694351,
0.010502995923161507,
0.03667724132537842,
-0.025661025196313858,
-0.01148894615471363,
-0.006521729752421379,
0.025352293625473976,
0.05186449736356735,
-0.03895416110754013,
0.011128850281238556,
-0.014133908785879612,
-0.005116167012602091,
0.03121372126042843,
-0.005989395081996918,
-0.009749967604875565,
-0.03758421167731285,
0.021699564531445503,
0.02303231880068779,
-0.02184016816318035,
-0.023069238290190697,
0.009305976331233978,
-0.04403650015592575,
0.04755517467856407,
0.0010930872522294521,
-0.009565351530909538,
0.023375287652015686,
-0.01637403480708599,
-0.04875518009066582,
0.046955499798059464,
0.005696107633411884,
-0.010274354368448257,
0.014603533782064915,
-0.020229915156960487,
-0.022185703739523888,
0.0464903861284256,
0.03606492280960083,
0.012257353402674198,
-0.030401339754462242,
-0.04588962346315384,
0.014642641879618168,
0.015014811418950558,
-0.02475069649517536,
0.052249833941459656,
-0.009967361576855183,
-0.007915442809462547,
-0.00945141538977623,
0.001058662892319262,
-0.024353694170713425,
-0.008763454854488373,
-0.0353555791079998,
0.014174241572618484,
0.030801860615611076,
-0.056705985218286514,
-0.003976934589445591,
-0.013193232007324696,
-0.03882035240530968,
0.0015609357506036758,
0.029522990807890892,
-0.0411321297287941,
-0.020009590312838554,
-0.017804212868213654,
0.001076379558071494,
0.014255327172577381,
-0.03241303935647011,
0.009218207560479641,
-0.020968075841665268,
-0.011527172289788723,
-0.0067473831586539745,
-0.006550497375428677,
0.018295470625162125,
-0.0013125865953043103,
0.0002704161452129483,
-1.3542241994457527e-8,
-0.007771010976284742,
0.000036235691368347034,
-0.006679967045783997,
-0.0032213032245635986,
0.013185234740376472,
0.014669532887637615,
-0.03733062371611595,
0.04472929984331131,
0.020461050793528557,
0.031380631029605865,
0.022198978811502457,
-0.01913246139883995,
-0.026866892352700233,
0.054226845502853394,
0.02278740517795086,
-0.014109629206359386,
0.003021878655999899,
-0.011347326450049877,
0.02389155700802803,
-0.014798603020608425,
0.018425488844513893,
0.04936270788311958,
0.017160220071673393,
-0.04311339557170868,
-0.01832582801580429,
0.013827706687152386,
-0.0013092588633298874,
-0.057702112942934036,
-0.010316871106624603,
0.011383676901459694,
-0.014249605126678944,
0.030763959512114525,
-0.060520805418491364,
0.028011715039610863,
-0.05783684551715851,
-0.03379862755537033,
0.03038979507982731,
-0.002981189638376236,
0.005820919293910265,
0.023977745324373245,
-0.0493321567773819,
0.009597713127732277,
-0.012312544509768486,
-0.030740538612008095,
-0.025510646402835846,
0.052722036838531494,
0.008302779868245125,
0.0027834728825837374,
-0.005699553061276674,
-0.005894416011869907,
0.015052659437060356,
-0.0007420070469379425,
0.017238624393939972,
0.0143518578261137,
0.0002677261654753238,
0.019231239333748817,
0.04636738449335098,
-0.0022205328568816185,
-0.008176570758223534,
0.004429347347468138,
0.060012634843587875,
-0.016027532517910004,
-0.03835124894976616,
-0.04218250885605812
] | intellij-14-1-5-unable-to-import-maven-project | https://markhneedham.com/blog/2015/09/30/intellij-14-1-5-unable-to-import-maven-project |
false | 2015-09-25 06:28:29 | R: Querying a 20 million line CSV file - data.table vs data frame | [
"r-2"
] | [
"R"
] | As I mentioned in a couple of blog posts already, I've been exploring the https://data.gov.uk/dataset/land-registry-monthly-price-paid-data[Land Registry price paid data set] and although I've initially been using SparkR I was curious how easy it would be to explore the data set using plain R.
I thought I'd start out by loading the data into a data frame and run the same queries using deployer.
I've come across Hadley Wickham's https://github.com/hadley/readr[readr] library before but hadn't used it and since I needed to load a 20 million line CSV file this seemed the perfect time to give it a try.
____
The goal of readr is to provide a fast and friendly way to read tabular data into R.
____
Let's' get started:
[source,r]
----
> library(readr)
> system.time(read_csv("pp-complete.csv", col_names = FALSE))
user system elapsed
127.367 21.957 159.963
> df = read_csv("pp-complete.csv", col_names = FALSE)
----
So it took a little over 2 minutes to process the CSV file into a data frame. Let's take a quick look at its contents:
[source,r]
----
> head(df)
Source: local data frame [6 x 16]
X1 X2 X3 X4 X5 X6 X7 X8 X9
(chr) (int) (date) (chr) (chr) (chr) (chr) (chr) (chr)
1 {0C7ADEF5-878D-4066-B785-0000003ED74A} 163000 <NA> UB5 4PJ T N F 106
2 {35F67271-ABD4-40DA-AB09-00000085B9D3} 247500 <NA> TA19 9DD D N F 58
3 {B20B1C74-E8E1-4137-AB3E-0000011DF342} 320000 <NA> W4 1DZ F N L 58
4 {7D6B0915-C56B-4275-AF9B-00000156BCE7} 104000 <NA> NE61 2BH D N F 17
5 {47B60101-B64C-413D-8F60-000002F1692D} 147995 <NA> PE33 0RU D N F 4
6 {51F797CA-7BEB-4958-821F-000003E464AE} 110000 <NA> NR35 2SF T N F 5
Variables not shown: X10 (chr), X11 (chr), X12 (chr), X13 (chr), X14 (chr), X15 (chr), address (chr)
----
Now let's query the data frame to see which postcode has the highest average sale price. We'll need to group by the 'X4' column before applying some aggregate functions:
[source,R]
----
> library(dplyr)
> system.time(df %>%
group_by(X4) %>%
summarise(total = sum(as.numeric(X2)), count = n(), ave = total / count) %>%
arrange(desc(ave)))
user system elapsed
122.557 1.135 124.211
Source: local data frame [1,164,396 x 4]
X4 total count ave
(chr) (dbl) (int) (dbl)
1 SW7 1DW 39000000 1 39000000
2 SW1W 0NH 32477000 1 32477000
3 W1K 7PX 27000000 1 27000000
4 SW1Y 6HD 24750000 1 24750000
5 SW6 1BA 18000000 1 18000000
6 SW1X 7EE 101505645 6 16917608
7 N6 4LA 16850000 1 16850000
8 EC4N 5AE 16500000 1 16500000
9 W8 7EA 82075000 6 13679167
10 W1K 1DP 13500000 1 13500000
----
What about if instead of the average price by post code we want to find the most expensive property ever sold instead?
[source,R]
----
> system.time(df %>% group_by(X4) %>% summarise(max = max(X2)) %>% arrange(desc(max)))
user system elapsed
35.438 0.478 36.026
Source: local data frame [1,164,396 x 2]
X4 max
(chr) (int)
1 SW10 9SU 54959000
2 SW7 1QJ 50000000
3 SW1X 8HG 46013365
4 SW7 1DW 39000000
5 SW1W 0NH 32477000
6 SW1X 7LJ 29350000
7 W8 7EA 27900000
8 SW3 3SR 27750000
9 W1K 7PX 27000000
10 SW1X 7EE 25533000
.. ... ...
----
Interestingly that one was much quicker than the first one even though it seems like we only did slightly less work.
At this point I mentioned my experiment to https://twitter.com/a5hok[Ashok] who suggested I give https://github.com/Rdatatable/data.table[data.table] a try to see if that fared any better. I'd not used it before but was able to get it http://stackoverflow.com/questions/1727772/quickly-reading-very-large-tables-as-dataframes-in-r[up and running reasonably quickly]:
[source,r]
----
> library(data.table)
> system.time(fread("pp-complete.csv", header = FALSE))
Read 20075122 rows and 15 (of 15) columns from 3.221 GB file in 00:01:05
user system elapsed
59.324 5.798 68.956
> dt = fread("pp-complete.csv", header = FALSE)
> head(dt)
V1 V2 V3 V4 V5 V6 V7 V8 V9
1: {0C7ADEF5-878D-4066-B785-0000003ED74A} 163000 2003-02-21 00:00 UB5 4PJ T N F 106
2: {35F67271-ABD4-40DA-AB09-00000085B9D3} 247500 2005-07-15 00:00 TA19 9DD D N F 58
3: {B20B1C74-E8E1-4137-AB3E-0000011DF342} 320000 2010-09-10 00:00 W4 1DZ F N L 58
4: {7D6B0915-C56B-4275-AF9B-00000156BCE7} 104000 1997-08-27 00:00 NE61 2BH D N F 17
5: {47B60101-B64C-413D-8F60-000002F1692D} 147995 2003-05-02 00:00 PE33 0RU D N F 4
6: {51F797CA-7BEB-4958-821F-000003E464AE} 110000 2013-03-22 00:00 NR35 2SF T N F 5
V10 V11 V12 V13 V14 V15
1: READING ROAD NORTHOLT NORTHOLT EALING GREATER LONDON A
2: ADAMS MEADOW ILMINSTER ILMINSTER SOUTH SOMERSET SOMERSET A
3: WHELLOCK ROAD LONDON EALING GREATER LONDON A
4: WESTGATE MORPETH MORPETH CASTLE MORPETH NORTHUMBERLAND A
5: MASON GARDENS WEST WINCH KING'S LYNN KING'S LYNN AND WEST NORFOLK NORFOLK A
6: WILD FLOWER WAY DITCHINGHAM BUNGAY SOUTH NORFOLK NORFOLK A
----
So we've already gained one minute in the parsing time which is pretty nice. Let's try and find the postcode with the highest average price:
[source,r]
----
> dt[,list(length(V2), sum(V2)), by=V4][, V2 / V1, by=V4][order(-V1)][1:10]
Error in sum(V2) : invalid 'type' (character) of argument
----
Hmmm, seems like we need to make column 'V2' numeric. Let's do that:
[source,r]
----
> dt = dt[, V2:= as.numeric(V2)]
> dt[,list(length(V2), sum(V2)), by=V4][, V2 / V1, by=V4][order(-V1)][1:10]
user system elapsed
5.108 0.670 6.183
V4 V1
1: SW7 1DW 39000000
2: SW1W 0NH 32477000
3: W1K 7PX 27000000
4: SW1Y 6HD 24750000
5: SW6 1BA 18000000
6: SW1X 7EE 16917608
7: N6 4LA 16850000
8: EC4N 5AE 16500000
9: W8 7EA 13679167
10: W1K 1DP 13500000
----
That's quite a bit faster than our data frame version - ~5 seconds compared to ~2 minutes. We have lost the total sales and number of sales columns but I expect that's just because my data.table foo is weak and we could keep them if we wanted.
But a good start in terms of execution time. Now let's try the maximum sale price by post code query:
[source,r]
----
> system.time(dt[,list(max(V2)), by=V4][order(-V1)][1:10])
user system elapsed
3.684 0.358 4.132
V4 V1
1: SW10 9SU 54959000
2: SW7 1QJ 50000000
3: SW1X 8HG 46013365
4: SW7 1DW 39000000
5: SW1W 0NH 32477000
6: SW1X 7LJ 29350000
7: W8 7EA 27900000
8: SW3 3SR 27750000
9: W1K 7PX 27000000
10: SW1X 7EE 25533000
----
We've got the same results as before and this time it took ~4 seconds compared to ~35 seconds.
We can actually do even better if we set the postcode column as a key:
[source,r]
----
> setkey(dt, V4)
> system.time(dt[,list(length(V2), sum(V2)), by=V4][, V2 / V1, by=V4][order(-V1)][1:10])
user system elapsed
1.500 0.047 1.548
> system.time(dt[,list(max(V2)), by=V4][order(-V1)][1:10])
user system elapsed
0.578 0.026 0.604
----
And that's as far as I've got with my experiment. If there's anything else I can do to make either of the versions quicker do let me know in the comments.
Oh and for a bit of commentary on what we can learn from the queries\...Knightsbridge is a seriously expensive area to live! | null | null | [
0.02659798227250576,
-0.026285596191883087,
-0.01407576259225607,
0.048472825437784195,
0.08409630507230759,
0.032331664115190506,
-0.003579824697226286,
0.01782301999628544,
0.01359125692397356,
0.004665518179535866,
0.005209655035287142,
-0.0001843498757807538,
-0.04634205996990204,
0.017043031752109528,
-0.0109185129404068,
0.07745090872049332,
0.06294583529233932,
-0.004167110659182072,
0.03014536201953888,
-0.005689577199518681,
0.03210454061627388,
0.07143071293830872,
-0.0034355283714830875,
0.05104899778962135,
0.008336865343153477,
-0.02160969376564026,
0.012206637300550938,
0.010823328047990799,
-0.04110429435968399,
-0.0038046061526983976,
0.04923933744430542,
0.003992253448814154,
-0.004359823651611805,
0.02105443738400936,
0.02613845281302929,
0.0026260914746671915,
-0.025369862094521523,
0.020141445100307465,
-0.006359435617923737,
-0.0033243168145418167,
-0.07359682023525238,
0.030124502256512642,
-0.01718803122639656,
0.007140463683754206,
-0.033454932272434235,
0.003588987747207284,
-0.030264798551797867,
0.022651445120573044,
0.008822616189718246,
-0.01583000272512436,
-0.04041536524891853,
0.040687210857868195,
-0.009286855347454548,
-0.021139100193977356,
-0.007849165238440037,
0.04564956948161125,
-0.006005078554153442,
-0.08864326775074005,
0.035970546305179596,
-0.025443779304623604,
0.00021705419931095093,
-0.021157564595341682,
-0.009918482042849064,
0.0061899879947304726,
0.03015812672674656,
-0.0319889672100544,
-0.007235012948513031,
0.050121456384658813,
-0.025329170748591423,
0.00037287911982275546,
-0.014791714958846569,
0.01989583857357502,
-0.01711861416697502,
0.004084262065589428,
-0.00834487471729517,
-0.03312047943472862,
-0.004538982640951872,
0.056008610874414444,
0.023364445194602013,
0.021843338385224342,
-0.01502246968448162,
-0.018294084817171097,
-0.006941836792975664,
0.021204950287938118,
0.005344120319932699,
-0.05015190318226814,
-0.050523966550827026,
-0.05470745265483856,
-0.07036171108484268,
0.07240721583366394,
0.017112253233790398,
-0.03571698069572449,
0.008781437762081623,
0.0274523813277483,
-0.010547258891165257,
0.01401690673083067,
0.011120276525616646,
0.0047170789912343025,
-0.008365807123482227,
-0.009884978644549847,
-0.07773102819919586,
-0.036405496299266815,
0.03346356004476547,
0.020163949579000473,
-0.08312810957431793,
-0.005182683002203703,
-0.03205472230911255,
-0.001847641309723258,
0.016395747661590576,
0.036706749349832535,
0.001151772798039019,
0.0018341656541451812,
-0.03979289159178734,
0.009948614984750748,
-0.08707264065742493,
0.05536624416708946,
0.04752137511968613,
-0.02176898904144764,
-0.0049308789893984795,
0.0008399026119150221,
0.048350680619478226,
0.025246718898415565,
-0.009263480082154274,
0.052986789494752884,
0.01246050838381052,
0.041882049292325974,
0.008871982805430889,
0.034897640347480774,
-0.007528366055339575,
-0.06646621227264404,
0.007903624325990677,
0.05703520402312279,
-0.03402825444936752,
0.01121242344379425,
-0.00021141751494724303,
-0.007747288327664137,
-0.0029261033050715923,
0.004935455974191427,
0.08652152121067047,
0.03869129717350006,
0.03835064545273781,
-0.009629737585783005,
0.02716141752898693,
0.010136461816728115,
0.033995769917964935,
0.035490021109580994,
0.007582459133118391,
-0.03410859405994415,
-0.04440951719880104,
-0.002098468132317066,
0.030628280714154243,
0.0286035668104887,
0.06910088658332825,
-0.027743279933929443,
0.033776912838220596,
0.08371302485466003,
0.019045624881982803,
0.010159467346966267,
-0.004547920543700457,
0.012657186016440392,
0.04352918639779091,
0.02616126649081707,
0.01840134710073471,
0.029263446107506752,
-0.018811672925949097,
-0.02856985665857792,
0.015080530196428299,
0.027012914419174194,
-0.04095642268657684,
-0.002270688535645604,
-0.06157675012946129,
-0.04211874678730965,
0.07281123101711273,
-0.0357951782643795,
0.0008683016058057547,
0.03405359014868736,
0.07651706039905548,
0.03723474591970444,
0.028961529955267906,
-0.02134774997830391,
-0.07440664619207382,
0.04203309118747711,
-0.0005100035341456532,
0.018940698355436325,
0.044508013874292374,
-0.020938914269208908,
0.08291668444871902,
0.0360480435192585,
0.027102995663881302,
0.03805825486779213,
-0.059346359223127365,
-0.06062866002321243,
-0.01840895228087902,
-0.004506548400968313,
0.04069613292813301,
-0.05057312175631523,
0.016685007140040398,
0.07207255810499191,
-0.004952588584274054,
0.03934872895479202,
-0.0006618440384045243,
-0.002876605372875929,
0.03430028632283211,
-0.05725716054439545,
-0.0582721084356308,
0.013147144578397274,
0.032938066869974136,
-0.001173296244814992,
-0.003054838627576828,
-0.0024130060337483883,
-0.021418597549200058,
0.023259149864315987,
0.024203401058912277,
-0.02055794559419155,
0.036063507199287415,
0.026817895472049713,
0.06286638975143433,
0.012938871048390865,
0.04866974428296089,
-0.047020744532346725,
0.03777210786938667,
0.012634797021746635,
-0.02047940343618393,
-0.009397988207638264,
-0.021071001887321472,
0.11409129202365875,
0.0573788620531559,
-0.013094845227897167,
-0.06316471844911575,
0.020308388397097588,
0.0006784328725188971,
-0.04454119876027107,
0.01281220093369484,
-0.03442719206213951,
0.0065767802298069,
0.009674008004367352,
-0.03946232423186302,
-0.04278656840324402,
-0.0013386588543653488,
-0.017141880467534065,
-0.00433048140257597,
0.06183498352766037,
-0.003073928877711296,
0.052887603640556335,
-0.010763545520603657,
-0.03037972003221512,
-0.015583128668367863,
-0.02504696324467659,
-0.08245790749788284,
-0.019701067358255386,
-0.003060643095523119,
0.00957762636244297,
0.03898298367857933,
-0.01088737603276968,
-0.005246685817837715,
-0.03681524097919464,
-0.051206473261117935,
0.015858814120292664,
0.06338734924793243,
0.06757023185491562,
-0.003953968640416861,
0.06075730174779892,
-0.011720625683665276,
0.010673580691218376,
-0.007462750654667616,
-0.026952043175697327,
-0.03423800319433212,
-0.038590919226408005,
0.026061568409204483,
-0.003147956682369113,
0.01463225856423378,
0.008844371885061264,
0.00653358269482851,
0.016008323058485985,
0.01791774481534958,
-0.02738007716834545,
0.0524604506790638,
-0.019776513800024986,
0.0006211925647221506,
-0.017460402101278305,
-0.0017909267917275429,
0.037082649767398834,
-0.0271904356777668,
0.0036842047702521086,
0.011103235185146332,
-0.06049990653991699,
0.054682325571775436,
-0.047800902277231216,
-0.04663582891225815,
0.020103195682168007,
0.012037419714033604,
0.030114594846963882,
0.031499896198511124,
-0.007324849721044302,
0.05943640321493149,
0.01998092047870159,
0.007147227879613638,
0.016129877418279648,
0.004990869201719761,
0.04476340860128403,
0.001914406893774867,
0.01610562391579151,
0.05231902375817299,
0.004049831070005894,
0.005528871435672045,
-0.06392611563205719,
0.011259559541940689,
-0.03298603743314743,
-0.28351742029190063,
0.042091596871614456,
-0.018872924149036407,
-0.059366561472415924,
0.022146150469779968,
-0.036103446036577225,
0.0096170324832201,
-0.040432412177324295,
-0.02390543930232525,
0.027364332228899002,
-0.00046201152144931257,
-0.04262366518378258,
-0.04717785865068436,
0.043158888816833496,
0.034293074160814285,
0.04841510206460953,
0.023987378925085068,
-0.0484938770532608,
-0.0010834599379450083,
0.06813739985227585,
0.026694489642977715,
-0.05383097007870674,
-0.011918371543288231,
0.051919832825660706,
0.03925240412354469,
0.05941728502511978,
-0.06856822967529297,
0.01813645288348198,
-0.06351913511753082,
-0.015639711171388626,
0.039943646639585495,
-0.027440739795565605,
0.02419038489460945,
0.0018803062848746777,
0.0019195082131773233,
-0.01606058143079281,
0.02824343740940094,
0.04439845681190491,
0.007869680412113667,
0.011404397897422314,
-0.025984708219766617,
-0.027778385207057,
-0.007438119500875473,
0.007531900890171528,
0.05223264917731285,
-0.015217703767120838,
-0.058586426079273224,
-0.0034973013680428267,
-0.024005241692066193,
0.0674063116312027,
-0.04217430576682091,
-0.027842480689287186,
-0.03605902940034866,
0.01835857704281807,
-0.03922231122851372,
0.006796021945774555,
-0.03757499158382416,
-0.007661089301109314,
-0.05288020148873329,
-0.03424948826432228,
0.008772959001362324,
-0.0340893492102623,
0.0007844748324714601,
-0.037262678146362305,
-0.018266603350639343,
-0.07983878254890442,
-0.08842024207115173,
-0.016683969646692276,
0.07486993074417114,
0.04747544601559639,
-0.050498463213443756,
0.012365263886749744,
0.009017911739647388,
-0.11402677744626999,
-0.0011682265903800726,
-0.03675568476319313,
-0.012443563900887966,
-0.013728304766118526,
0.00041058403439819813,
0.05964834615588188,
-0.04106751084327698,
-0.04702407494187355,
0.05755121633410454,
0.022844135761260986,
0.02336670085787773,
-0.029724696651101112,
-0.0072951652109622955,
0.002034239936619997,
-0.026588337495923042,
-0.0161003265529871,
0.04672680422663689,
-0.04981716349720955,
-0.010105659253895283,
-0.0011798584600910544,
-0.019374288618564606,
0.03502550721168518,
0.0030980545561760664,
0.003716607578098774,
0.017830373719334602,
0.03673293814063072,
0.025934314355254173,
-0.05487004294991493,
0.015520421788096428,
-0.05706558749079704,
-0.03042009100317955,
-0.035718102008104324,
-0.051056794822216034,
0.016580823808908463,
0.029906656593084335,
0.018291980028152466,
0.0140646081417799,
-0.036997418850660324,
0.033468276262283325,
-0.0666482150554657,
-0.025073586031794548,
-0.006019614636898041,
0.016119951382279396,
0.0174556951969862,
-0.006528095342218876,
-0.0007531482842750847,
-0.046774156391620636,
-0.015010650269687176,
-0.0023791345302015543,
-0.03617097809910774,
-0.052424356341362,
-0.013562274165451527,
0.029883544892072678,
-0.030480140820145607,
-0.023801086470484734,
-0.004282430279999971,
-0.017461394891142845,
-1.0659191929107692e-7,
0.03818827122449875,
-0.04059780761599541,
0.021369971334934235,
-0.04011813923716545,
-0.05667751654982567,
-0.036446329206228256,
0.02471507340669632,
0.038244523108005524,
-0.015084377489984035,
0.00043092493433505297,
0.0069929626770317554,
0.04149428382515907,
0.05844132602214813,
0.01099524274468422,
0.03190743550658226,
0.018638022243976593,
0.02744179032742977,
-0.00850431527942419,
-0.017600001767277718,
-0.024672236293554306,
0.0016180172096937895,
-0.033380381762981415,
-0.05987176299095154,
-0.04348083212971687,
0.030966978520154953,
-0.015269598923623562,
-0.024255303665995598,
-0.04526028782129288,
0.009404723532497883,
-0.04352216050028801,
-0.007564058527350426,
-0.026605868712067604,
0.021559104323387146,
0.05853068456053734,
0.0069352081045508385,
0.03186783194541931,
0.02207549847662449,
0.0009702379466034472,
-0.0037228609435260296,
0.0008448599837720394,
-0.02838958241045475,
0.0010726236505433917,
-0.008046579547226429,
0.006414990406483412,
0.02865789085626602,
0.0057984767481684685,
0.034119799733161926,
0.021032508462667465,
-0.020998887717723846,
-0.012094947509467602,
0.00217085680924356,
-0.007028703112155199,
0.04691585525870323,
0.06222366541624069,
-0.010169195011258125,
0.012752404436469078,
-0.0013500553322955966,
-0.03899840638041496,
-0.020825333893299103,
-0.0057492912746965885,
-0.005812232382595539,
0.024921659380197525,
-0.03285324573516846,
-0.06904783099889755,
0.04201381653547287,
0.025220680981874466,
-0.0014310360420495272,
0.03484603390097618,
-0.03285657986998558,
-0.023595456033945084,
-0.012106256559491158,
0.04634576663374901,
0.0756978914141655,
-0.049425672739744186,
-0.024775028228759766,
-0.0025383909232914448,
-0.007884957827627659,
0.008976025506854057,
-0.008539135567843914,
-0.061426661908626556,
-0.007083551026880741,
-0.014645119197666645,
0.03872942551970482,
-0.019959671422839165,
-0.03765879198908806,
-0.047497496008872986,
0.028225116431713104,
0.0012665466638281941,
-0.026532771065831184,
-0.01734258234500885,
-0.011904295533895493,
-0.010242510586977005,
0.0013743008021265268,
0.01946607604622841,
-0.015427843667566776,
-0.04992494732141495,
0.015247336588799953,
-0.018193837255239487,
-0.017997991293668747,
-0.021270664408802986,
0.01497518178075552,
0.03003694862127304,
-0.03749379888176918,
-0.0038154248613864183,
-0.033329449594020844,
-0.0018220971105620265,
0.006924520246684551,
0.06289709359407425,
-0.009709401987493038,
-0.007351098582148552,
-0.0016307217301800847,
0.014821402728557587,
-0.028423598036170006,
-0.010645177215337753,
-0.016144296154379845,
-0.009408919140696526,
0.036965254694223404,
0.04991292580962181,
-0.000727350648958236,
-0.007295169867575169,
-0.009672804735600948,
-0.04809584841132164,
0.049190837889909744,
-0.04322834312915802,
-0.06046086549758911,
-0.0025802094023674726,
-0.039331451058387756,
0.038159213960170746,
0.01559505145996809,
0.0018362763803452253,
-0.03415827080607414,
0.055524762719869614,
0.03470839187502861,
0.026269474998116493,
0.05765839293599129,
0.0003022467717528343,
0.04589313641190529,
-0.023330749943852425,
-0.010182332247495651,
-0.08106741309165955,
-0.0187172070145607,
0.03138762339949608,
-0.0007857797900214791,
-0.009554728865623474,
-0.018782390281558037,
-0.0384080708026886,
0.03831673040986061,
-0.06262856721878052,
-0.06743831187486649,
0.04322012886404991,
-0.01399022527039051,
0.005902235396206379,
-0.007347521372139454,
-0.024108733981847763,
0.013416657224297523,
0.030813347548246384,
-0.03619461506605148,
-0.01990242302417755,
-0.019298620522022247,
0.04894835874438286,
-0.03528827056288719,
0.020369380712509155,
-0.027651607990264893,
-0.012139358557760715,
0.05248241499066353,
0.0065318443812429905,
-0.0023279667366296053,
0.045471902936697006,
-0.023988839238882065,
0.043273214250802994,
0.03180493414402008,
-0.036745164543390274,
-0.0015753465704619884,
0.005298630800098181,
0.0023390150163322687,
-0.03159566968679428,
0.014293480664491653,
0.014124851673841476,
0.010777423158288002,
-0.044082868844270706,
0.09217366576194763,
0.016851771622896194,
-0.04747220501303673,
-0.07121837139129639,
0.02017861232161522,
-0.031160196289420128,
-0.0037927343510091305,
-0.0015963839832693338,
-0.006342301610857248,
-0.03546811267733574,
0.038230959326028824,
-0.014233593828976154,
0.008558066561818123,
0.07654173672199249,
-0.0029875077307224274,
-0.0061346180737018585,
0.017968252301216125,
0.07459229230880737,
0.0920313224196434,
0.03157558664679527,
-0.006414623931050301,
0.0669451430439949,
-0.02464843913912773,
-0.0565546452999115,
0.04421379789710045,
-0.029693694785237312,
-0.002696217270568013,
-0.05625541880726814,
0.008753100410103798,
0.050978321582078934,
-0.02484389767050743,
0.06989214569330215,
-0.03072960674762726,
-0.02324727550148964,
0.008035118691623211,
0.010894058272242546,
0.02387276105582714,
0.04815779998898506,
0.008122401311993599,
0.04532330110669136,
-0.01021558791399002,
-0.018083486706018448,
0.021825451403856277,
0.022898714989423752,
-0.036824990063905716,
0.01975513994693756,
-0.01974470540881157,
0.002593289129436016,
0.014438468962907791,
0.024034801870584488,
0.08433827012777328,
-0.028656093403697014,
-0.011857704259455204,
-0.03267379477620125,
0.04536518082022667,
0.002985804807394743,
0.022179145365953445,
-0.011316549964249134,
-0.025514816865324974,
-0.018433762714266777,
-0.035839375108480453,
-0.019141757860779762,
0.008785167708992958,
-0.035918835550546646,
-0.005007351748645306,
-0.041287194937467575,
0.019519584253430367,
0.03346100449562073,
-0.02906973287463188,
-0.052846759557724,
-0.047644324600696564,
-0.03824905678629875,
-0.02654297836124897,
-0.07623938471078873,
-0.014612746424973011,
-0.011162500828504562,
-0.01575145311653614,
-0.034552693367004395,
-0.008483733981847763,
-0.039856452494859695,
-0.04259420931339264,
0.014289532788097858,
-0.060009315609931946,
-0.04291699454188347,
0.01537259854376316,
0.008783512748777866,
0.017587533220648766,
0.02880697511136532,
0.05410589277744293,
0.018194302916526794,
-0.02264993265271187,
-0.012452984228730202,
0.010736917145550251,
0.050427064299583435,
0.0274339709430933,
0.009877441450953484,
-0.08163510262966156,
0.014525366947054863,
0.005608793813735247,
-0.01928146928548813,
-0.07935402542352676,
0.016476357355713844,
0.047859977930784225,
0.016458019614219666,
0.05721117556095123,
0.010374578647315502,
0.0042319754138588905,
-0.038147084414958954,
-0.03161126747727394,
-0.0043419827707111835,
0.015357032418251038,
0.02464481070637703,
-0.032868918031454086,
0.06704162806272507,
0.041547741740942,
-0.010130179114639759,
-0.05420973151922226,
-0.016503743827342987,
0.0004722558369394392,
0.013212853111326694,
-0.05917513743042946,
-0.03747355565428734,
-0.035831838846206665,
-0.07065321505069733,
-0.03421106934547424,
0.017235133796930313,
-0.05557559058070183,
-0.004497059620916843,
0.012369310483336449,
0.030178943648934364,
-0.022980693727731705,
0.016365917399525642,
-0.02755633369088173,
0.019173208624124527,
-0.01970330998301506,
-0.03293045237660408,
-0.00017588767514098436,
0.04434522986412048,
-0.012269328348338604,
-0.009353629313409328,
-0.007824040949344635,
-0.03781816363334656,
0.010272396728396416,
-0.009827684611082077,
0.037257760763168335,
0.046019844710826874,
-0.004464932717382908,
-0.007743782829493284
] | [
-0.041040416806936264,
-0.018879596143960953,
-0.02956627681851387,
0.0001334713160758838,
0.09924650937318802,
-0.027603400871157646,
-0.025837145745754242,
0.02155187726020813,
-0.00965458620339632,
0.016140898689627647,
0.019844669848680496,
-0.04386903718113899,
0.009320507757365704,
-0.008247577585279942,
0.054524559527635574,
0.0035895141772925854,
-0.008187117986381054,
-0.0591040775179863,
-0.008464847691357136,
0.06059776619076729,
-0.01040724292397499,
-0.0337408147752285,
-0.05591915175318718,
-0.035997916013002396,
0.028245186433196068,
0.0076104807667434216,
-0.006750293076038361,
-0.03356563299894333,
-0.030448870733380318,
-0.21692676842212677,
0.024980122223496437,
-0.0062200590036809444,
0.03613637760281563,
-0.004945988301187754,
0.006937633268535137,
0.01878618821501732,
0.03559636324644089,
0.019303252920508385,
0.020010599866509438,
-0.003572904272004962,
0.020136935636401176,
-0.001027628779411316,
-0.033504705876111984,
-0.004439916927367449,
0.013990729115903378,
0.007549966685473919,
-0.021659910678863525,
0.006069148425012827,
0.012821827083826065,
0.018512260168790817,
-0.081015944480896,
0.009071752429008484,
0.0028921575285494328,
-0.002876071957871318,
-0.018154440447688103,
0.034340035170316696,
0.028140665963292122,
0.03243057429790497,
0.01309292484074831,
0.0005111053469590843,
0.015505695715546608,
0.0019296951359137893,
-0.18051861226558685,
0.08595231175422668,
0.0031110835261642933,
0.049783170223236084,
-0.019922440871596336,
-0.010148964822292328,
-0.021376660093665123,
0.018304506316781044,
0.0007511315634474158,
0.0054713706485927105,
-0.048973649740219116,
0.04571900516748428,
0.00923228170722723,
-0.0224846750497818,
-0.04125615581870079,
0.02728225290775299,
0.020868947729468346,
-0.04603683203458786,
-0.005866273771971464,
0.038111038506031036,
-0.012245354242622852,
-0.006963414140045643,
-0.026862336322665215,
0.004656387493014336,
-0.017296306788921356,
0.04416670650243759,
0.023438170552253723,
0.02749517560005188,
0.06376531720161438,
0.019550742581486702,
0.05919110029935837,
0.0175701342523098,
-0.09026389569044113,
-0.01047979760915041,
0.021296752616763115,
0.03400804474949837,
-0.0019544081296771765,
0.4186534881591797,
-0.028384611010551453,
-0.02669605053961277,
0.017308073118329048,
0.055183134973049164,
0.00802193395793438,
-0.008635049685835838,
-0.011551396921277046,
-0.0340295284986496,
0.036350149661302567,
-0.0312529131770134,
0.023921126499772072,
-0.02314654365181923,
0.052735187113285065,
-0.0505170002579689,
0.008821479976177216,
-0.020882485434412956,
0.01263390388339758,
-0.0022895154543220997,
0.03281904384493828,
0.008141478523612022,
-0.021931614726781845,
-0.002530499594286084,
0.0161600299179554,
0.010331198573112488,
0.02835659310221672,
-0.0301307775080204,
0.06952482461929321,
0.05195656046271324,
0.05021056905388832,
0.02492373064160347,
0.060377541929483414,
-0.04075780510902405,
-0.11372872442007065,
0.013990649953484535,
0.0021042004227638245,
0.007960925810039043,
0.044146228581666946,
-0.004618196282535791,
0.012921776622533798,
0.020722240209579468,
-0.038547713309526443,
-0.023550840094685555,
0.012146640568971634,
-0.0017991899512708187,
-0.04447192698717117,
0.11794716864824295,
0.01912936009466648,
-0.02360411547124386,
-0.030555782839655876,
-0.05827627331018448,
0.028233515098690987,
0.03522806987166405,
0.030110258609056473,
-0.077377088367939,
0.007655043620616198,
0.04515216127038002,
0.06935528665781021,
-0.06355850398540497,
-0.07654954493045807,
-0.03502067178487778,
-0.01779479905962944,
-0.03500688448548317,
-0.04032294452190399,
0.018483486026525497,
0.06912810355424881,
-0.10609517246484756,
-0.03735858201980591,
0.014330415055155754,
0.023388227447867393,
-0.03996658697724342,
0.03970323130488396,
0.0072386423125863075,
-0.02636362425982952,
-0.0008293346618302166,
0.07365167140960693,
-0.02276080846786499,
-0.04225955903530121,
0.018337789922952652,
0.021623460575938225,
0.002958291908726096,
-0.005262286402285099,
-0.008123713545501232,
-0.022599834948778152,
0.02110576629638672,
-0.08501691371202469,
-0.06898172199726105,
-0.09676527976989746,
0.017407279461622238,
-0.02479216456413269,
-0.03359442576766014,
0.002341118175536394,
-0.04016277194023132,
-0.08540086448192596,
0.06251471489667892,
-0.03753557801246643,
-0.01985318958759308,
0.03449342027306557,
0.027636120095849037,
0.005141256842762232,
-0.026980997994542122,
-0.00005132667502039112,
0.017561929300427437,
-0.0028500305488705635,
0.06270838528871536,
-0.040596600621938705,
0.021373627707362175,
0.059577181935310364,
-0.033128488808870316,
0.08468714356422424,
0.0520985946059227,
0.04333561658859253,
0.013384168967604637,
-0.00048000889364629984,
0.005137289874255657,
-0.02729872427880764,
-0.00013533291348721832,
0.0021415622904896736,
-0.03717166557908058,
0.018953606486320496,
0.040846120566129684,
0.0034942938946187496,
-0.055246781557798386,
-0.00628650514408946,
-0.389758437871933,
-0.048642050474882126,
-0.009679888375103474,
-0.008285348303616047,
0.03614998608827591,
-0.03357582539319992,
-0.008832225576043129,
0.015924271196126938,
-0.005552130285650492,
0.07821683585643768,
0.06838984787464142,
-0.013762716203927994,
0.013023187406361103,
-0.07337181270122528,
0.006405567284673452,
0.03304719179868698,
-0.017790742218494415,
-0.01972905732691288,
-0.05583486333489418,
0.009387359954416752,
-0.01126374863088131,
-0.031135573983192444,
-0.043572600930929184,
-0.024370377883315086,
0.057507093995809555,
-0.020689375698566437,
0.10636366903781891,
-0.022506028413772583,
0.054217055439949036,
-0.031748250126838684,
0.034016598016023636,
-0.03200491890311241,
0.020430607721209526,
-0.0667230486869812,
0.006671339273452759,
-0.036742664873600006,
0.00010245561134070158,
0.04286083206534386,
-0.02552892453968525,
-0.039743389934301376,
-0.03320063278079033,
0.009330205619335175,
-0.04346783086657524,
-0.012260614894330502,
-0.06417884677648544,
0.031427450478076935,
-0.007708488963544369,
0.0058332039043307304,
-0.02071472443640232,
0.07279030978679657,
-0.0005571857909671962,
0.004982469137758017,
0.03934972733259201,
0.03998694196343422,
0.023682620376348495,
-0.0345740020275116,
-0.08113250881433487,
0.025030020624399185,
0.00010980517254211009,
-0.009739179164171219,
0.02886701375246048,
0.02806781232357025,
0.07057324796915054,
-0.06379876285791397,
-0.019892893731594086,
-0.014275696128606796,
0.001892394502647221,
0.004887926392257214,
0.00045396501081995666,
-0.00240335613489151,
-0.01980597898364067,
0.07529766112565994,
-0.030185746029019356,
0.03750629723072052,
0.00818963535130024,
0.051515571773052216,
-0.011597923934459686,
-0.0030922414734959602,
-0.0039207180961966515,
-0.005915199872106314,
0.07007978111505508,
-0.021660130470991135,
0.00908499862998724,
-0.005947791039943695,
0.018864180892705917,
0.04236657917499542,
0.0025738084223121405,
-0.023897657170891762,
0.03511713445186615,
0.025931918993592262,
0.02858114428818226,
-0.031070683151483536,
-0.028704894706606865,
-0.06519566476345062,
0.08083437383174896,
0.00008189454092644155,
-0.2768264412879944,
0.02210746333003044,
0.013615543022751808,
0.02322435937821865,
-0.009611393325030804,
-0.0021711192093789577,
0.026698138564825058,
-0.03846675902605057,
0.020545272156596184,
0.01622517965734005,
0.031974125653505325,
0.05556010827422142,
0.03227776661515236,
-0.03122650273144245,
0.007760036736726761,
-0.037704166024923325,
0.0395987294614315,
0.002440592274069786,
0.020816655829548836,
-0.017192281782627106,
0.01432585995644331,
-0.03584891930222511,
0.12589599192142487,
0.03690853714942932,
-0.014723707921802998,
0.008640808053314686,
-0.008645821362733841,
-0.012501055374741554,
0.08086217939853668,
0.009562740102410316,
0.01609019748866558,
0.012926798313856125,
0.015962133184075356,
-0.007891781628131866,
0.034678272902965546,
-0.0042742774821817875,
-0.0363319106400013,
0.05720101296901703,
0.019270803779363632,
-0.005467382725328207,
0.0006003581802360713,
0.01595667563378811,
-0.02838285081088543,
0.03189866617321968,
0.04997462034225464,
-0.01836109533905983,
-0.0024383109994232655,
-0.04521908611059189,
-0.03489161282777786,
-0.010837213136255741,
0.00604111747816205,
-0.01793760433793068,
-0.025131739675998688,
-0.01366924773901701,
-0.0012410865165293217,
0.06583444029092789,
0.014855328015983105,
-0.004759532865136862,
0.02540167234838009,
-0.009356803260743618,
-0.008992340415716171,
-0.08633885532617569,
0.07015721499919891,
0.012742812745273113,
0.008772206492722034
] | [
-0.00012361598783172667,
0.03477272763848305,
-0.019675688818097115,
0.01910063624382019,
-0.019405819475650787,
-0.023851437494158745,
0.0046454910188913345,
0.02342076040804386,
-0.03131455183029175,
0.011693613603711128,
0.0012534126872196794,
-0.012563658878207207,
0.011860783211886883,
-0.04744648188352585,
-0.017578275874257088,
-0.037342727184295654,
-0.01980513520538807,
-0.02842264249920845,
0.024698495864868164,
0.0074255638755857944,
-0.03094743750989437,
0.04402727261185646,
-0.00628708628937602,
-0.007937774062156677,
0.017973490059375763,
0.038674186915159225,
-0.021651411429047585,
0.03519630432128906,
0.017536519095301628,
-0.11927715688943863,
-0.004202819429337978,
-0.003870446467772126,
0.006601663772016764,
0.011515555903315544,
-0.00043601071229204535,
-0.015364717692136765,
-0.032074905931949615,
0.021231921389698982,
-0.011049022898077965,
0.015732040628790855,
0.022477734833955765,
-0.036773305386304855,
-0.0020866405684500933,
0.00813606008887291,
-0.00306229991838336,
-0.010640418156981468,
0.04854343459010124,
0.020649448037147522,
0.016445113345980644,
0.018274638801813126,
-0.044347409158945084,
0.013579814694821835,
-0.030164867639541626,
0.002865717513486743,
-0.012821526266634464,
-0.021057678386569023,
-0.029353372752666473,
-0.0017250466626137495,
0.0008943263674154878,
-0.05452398955821991,
-0.032745636999607086,
0.004028072115033865,
-0.025468487292528152,
-0.011384682729840279,
0.004734329879283905,
0.009837894700467587,
-0.01848641224205494,
0.01929127611219883,
0.02213299833238125,
-0.008652354590594769,
-0.00008219632582040504,
0.028339656069874763,
-0.03647211566567421,
-0.02929394692182541,
-0.038375429809093475,
0.007088229991495609,
0.025716574862599373,
-0.01878400146961212,
0.009114338085055351,
-0.02714509516954422,
-0.04932446777820587,
0.004383389372378588,
-0.0025305526796728373,
-0.0019392698304727674,
-0.0025282404385507107,
-0.030440066009759903,
0.022020021453499794,
0.029247073456645012,
0.028647836297750473,
-0.02016657032072544,
0.03914421796798706,
-0.0005588945932686329,
0.02048703283071518,
0.019484281539916992,
-0.13651415705680847,
0.002439925679937005,
0.03748750686645508,
-0.016790155321359634,
0.0001586415310157463,
0.8458217978477478,
0.016043299809098244,
0.009634329006075859,
-0.008663834072649479,
0.03553110361099243,
-0.048926498740911484,
-0.004417620599269867,
-0.008386355824768543,
0.0056004212237894535,
-0.016549566760659218,
-0.03540582209825516,
0.007873342372477055,
0.01867779903113842,
0.012509907595813274,
0.021208815276622772,
-0.0015598498284816742,
0.020311547443270683,
-0.01448170468211174,
-0.014892147853970528,
0.005575669929385185,
-0.00579072255641222,
0.005827816668897867,
-0.006907536182552576,
-0.032328926026821136,
-0.007281001657247543,
0.017541395500302315,
-0.17523103952407837,
0.01182694360613823,
-7.272870241245866e-33,
0.01032436266541481,
-0.015137070789933205,
0.027170132845640182,
-0.009648442268371582,
0.020208759233355522,
0.018140612170100212,
0.01188227441161871,
0.017235450446605682,
-0.01980419270694256,
0.005806003697216511,
-0.006116421893239021,
0.000692774832714349,
-0.008988646790385246,
-0.030165497213602066,
0.024048009887337685,
-0.005301149096339941,
-0.007277734111994505,
0.00799450185149908,
-0.008080671541392803,
0.024284139275550842,
0.019443906843662262,
0.04207722842693329,
0.03991394862532616,
0.03173638507723808,
0.017039647325873375,
0.013963237404823303,
0.01008320041000843,
-0.006437137257307768,
0.011325240135192871,
-0.04421667754650116,
-0.013609618879854679,
0.031077982857823372,
0.008429622277617455,
-0.02065138891339302,
0.012572987005114555,
-0.06294789165258408,
-0.014182803221046925,
-0.004975540097802877,
-0.022425994277000427,
0.010648188181221485,
-0.012947297655045986,
-0.028451967984437943,
-0.004275629296898842,
0.009147495962679386,
-0.031048517674207687,
0.008826029486954212,
0.015604165382683277,
0.05079943314194679,
0.008252178318798542,
0.025447936728596687,
0.015677299350500107,
-0.009324362501502037,
0.0009123851777985692,
0.007713941391557455,
-0.005357706919312477,
0.021950583904981613,
-0.04827063903212547,
-0.02212495543062687,
-0.004874226171523333,
0.021811550483107567,
-0.003974596969783306,
-0.018435077741742134,
0.023227453231811523,
0.008316987194120884,
-0.03893299773335457,
0.0000014698755421704846,
0.033673230558633804,
0.018133699893951416,
0.006087941117584705,
0.00604583602398634,
-0.027585847303271294,
0.025622675195336342,
0.010417030192911625,
-0.017262540757656097,
0.05353471636772156,
-0.002141352277249098,
0.010951930657029152,
0.028762901201844215,
0.027161158621311188,
0.02681109495460987,
0.010869559831917286,
-0.0008985410095192492,
-0.004656150005757809,
-0.007513388525694609,
-0.016751619055867195,
-0.00731654092669487,
0.024268407374620438,
0.010648236609995365,
0.030323123559355736,
0.0020651202648878098,
0.003293817862868309,
0.011376512236893177,
-0.012706226669251919,
-0.0341041274368763,
-0.018737634643912315,
7.671363560858591e-33,
0.016784852370619774,
-0.02165966108441353,
-0.011116024106740952,
0.008739467710256577,
0.013042747043073177,
-0.02880912274122238,
0.04842505604028702,
0.015455513261258602,
-0.007376029156148434,
0.022216681391000748,
-0.02527279406785965,
0.00382086168974638,
0.018577130511403084,
0.029984962195158005,
0.025486845523118973,
-0.011604391038417816,
0.00662835780531168,
-0.0012010140344500542,
-0.007519523613154888,
0.003823915496468544,
-0.03855881094932556,
-0.010771832428872585,
0.006538474466651678,
0.03436145558953285,
0.016496295109391212,
0.02871573343873024,
-0.03650931641459465,
0.022125303745269775,
-0.00597933866083622,
0.00867858063429594,
0.003003338584676385,
-0.0061327796429395676,
-0.0018238219199702144,
-0.060790471732616425,
-0.06844855099916458,
0.03516414761543274,
0.02612295001745224,
-0.03056618943810463,
0.005039997398853302,
0.02381708286702633,
0.02491525188088417,
-0.00008220243762480095,
-0.01629362627863884,
0.014580805785953999,
0.010681006126105785,
0.016988731920719147,
0.01952323317527771,
0.0022968112025409937,
-0.004343859851360321,
0.037320759147405624,
-0.0072844442911446095,
0.026862965896725655,
0.012084384448826313,
0.022506585344672203,
0.04375478997826576,
-0.007020275108516216,
0.003940891474485397,
0.004683051258325577,
-0.02647624909877777,
-0.0004892238066531718,
-0.023110445588827133,
0.008623721078038216,
-0.026710418984293938,
0.0437229685485363,
-0.02014525793492794,
-0.000583893561270088,
0.01631811447441578,
-0.04719957336783409,
0.024081408977508545,
-0.01868308335542679,
0.0012486518826335669,
-0.08632879704236984,
-0.005528321489691734,
-0.00861365906894207,
0.0153400469571352,
0.012288675643503666,
-0.017086336389183998,
-0.0008546641329303384,
-0.01471803244203329,
0.013186006806790829,
0.04958011209964752,
-0.03119981847703457,
0.03869844600558281,
0.005216536577790976,
-0.007707078009843826,
0.031400155276060104,
-0.04124918580055237,
-0.029222091659903526,
0.035584401339292526,
-0.005242328625172377,
-0.016093643382191658,
-0.06297175586223602,
0.007215363439172506,
0.035166677087545395,
0.01657729595899582,
-1.3045116098453491e-8,
-0.01734009012579918,
0.024987302720546722,
-0.021104786545038223,
0.01032057125121355,
0.035603806376457214,
-0.007402242161333561,
0.016421295702457428,
-0.006071446463465691,
-0.025388259440660477,
0.00913223996758461,
0.06205269694328308,
-0.031041495501995087,
-0.021098190918564796,
0.00185429397970438,
0.00897069089114666,
-0.012148076668381691,
0.028611306101083755,
-0.03195031359791756,
0.013528077863156796,
-0.0037809638306498528,
0.03996909782290459,
0.049013782292604446,
-0.013579780235886574,
-0.010800369083881378,
0.026071863248944283,
0.029192529618740082,
0.0007720511639490724,
-0.06514719873666763,
0.015386361628770828,
-0.004277774598449469,
0.005044689867645502,
-0.04570149630308151,
0.02019026316702366,
0.00381513056345284,
-0.018678661435842514,
-0.056903064250946045,
0.034413810819387436,
0.02521062083542347,
0.02056863158941269,
0.00990598089993,
-0.02396385185420513,
0.009889832697808743,
-0.059185341000556946,
-0.028372889384627342,
-0.023478379473090172,
0.013898761011660099,
-0.06413072347640991,
0.005949664395302534,
0.012024099007248878,
-0.05187244340777397,
-0.00026082104886882007,
-0.0012409324990585446,
0.007224685046821833,
0.024318279698491096,
0.05202368274331093,
0.001681357272900641,
0.022886577993631363,
0.0013564432738348842,
-0.03229505941271782,
0.0005854201735928655,
-0.00006948838563403115,
0.010520189069211483,
-0.02484380640089512,
-0.047169674187898636
] | r-querying-a-20-million-line-csv-file-data-table-vs-data-frame | https://markhneedham.com/blog/2015/09/25/r-querying-a-20-million-line-csv-file-data-table-vs-data-frame |
false | 2015-08-04 06:35:40 | Spark: pyspark/Hadoop - py4j.protocol.Py4JJavaError: An error occurred while calling o23.load.: org.apache.hadoop.ipc.RemoteException: Server IPC version 9 cannot communicate with client version 4 | [
"spark-2"
] | [
"Spark"
] | I've been playing around with https://spark.apache.org/docs/0.9.0/python-programming-guide.html[pyspark] - Spark's Python library - and I wanted to execute the following job which takes a file from my local HDFS and then counts how many times each FBI code appears using https://spark.apache.org/docs/1.3.0/sql-programming-guide.html[Spark SQL]:
[source,python]
----
from pyspark import SparkContext
from pyspark.sql import SQLContext
sc = SparkContext("local", "Simple App")
sqlContext = SQLContext(sc)
file = "hdfs://localhost:9000/user/markneedham/Crimes_-_2001_to_present.csv"
sqlContext.load(source="com.databricks.spark.csv", header="true", path = file).registerTempTable("crimes")
rows = sqlContext.sql("select `FBI Code` AS fbiCode, COUNT(*) AS times FROM crimes GROUP BY `FBI Code` ORDER BY times DESC").collect()
for row in rows:
print("{0} -> {1}".format(row.fbiCode, row.times))
----
I submitted the job and waited:
[source,bash]
----
$ ./spark-1.3.0-bin-hadoop1/bin/spark-submit --driver-memory 5g --packages com.databricks:spark-csv_2.10:1.1.0 fbi_spark.py
...
Traceback (most recent call last):
File "/Users/markneedham/projects/neo4j-spark-chicago/fbi_spark.py", line 11, in <module>
sqlContext.load(source="com.databricks.spark.csv", header="true", path = file).registerTempTable("crimes")
File "/Users/markneedham/projects/neo4j-spark-chicago/spark-1.3.0-bin-hadoop1/python/pyspark/sql/context.py", line 482, in load
df = self._ssql_ctx.load(source, joptions)
File "/Users/markneedham/projects/neo4j-spark-chicago/spark-1.3.0-bin-hadoop1/python/lib/py4j-0.8.2.1-src.zip/py4j/java_gateway.py", line 538, in __call__
File "/Users/markneedham/projects/neo4j-spark-chicago/spark-1.3.0-bin-hadoop1/python/lib/py4j-0.8.2.1-src.zip/py4j/protocol.py", line 300, in get_return_value
py4j.protocol.Py4JJavaError: An error occurred while calling o23.load.
: org.apache.hadoop.ipc.RemoteException: Server IPC version 9 cannot communicate with client version 4
at org.apache.hadoop.ipc.Client.call(Client.java:1070)
at org.apache.hadoop.ipc.RPC$Invoker.invoke(RPC.java:225)
at com.sun.proxy.$Proxy7.getProtocolVersion(Unknown Source)
at org.apache.hadoop.ipc.RPC.getProxy(RPC.java:396)
at org.apache.hadoop.ipc.RPC.getProxy(RPC.java:379)
at org.apache.hadoop.hdfs.DFSClient.createRPCNamenode(DFSClient.java:119)
at org.apache.hadoop.hdfs.DFSClient.<init>(DFSClient.java:238)
at org.apache.hadoop.hdfs.DFSClient.<init>(DFSClient.java:203)
at org.apache.hadoop.hdfs.DistributedFileSystem.initialize(DistributedFileSystem.java:89)
at org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:1386)
at org.apache.hadoop.fs.FileSystem.access$200(FileSystem.java:66)
at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:1404)
at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:254)
at org.apache.hadoop.fs.Path.getFileSystem(Path.java:187)
at org.apache.hadoop.mapred.FileInputFormat.listStatus(FileInputFormat.java:176)
at org.apache.hadoop.mapred.FileInputFormat.getSplits(FileInputFormat.java:208)
at org.apache.spark.rdd.HadoopRDD.getPartitions(HadoopRDD.scala:203)
at org.apache.spark.rdd.RDD$$anonfun$partitions$2.apply(RDD.scala:219)
at org.apache.spark.rdd.RDD$$anonfun$partitions$2.apply(RDD.scala:217)
at scala.Option.getOrElse(Option.scala:120)
at org.apache.spark.rdd.RDD.partitions(RDD.scala:217)
at org.apache.spark.rdd.MapPartitionsRDD.getPartitions(MapPartitionsRDD.scala:32)
at org.apache.spark.rdd.RDD$$anonfun$partitions$2.apply(RDD.scala:219)
at org.apache.spark.rdd.RDD$$anonfun$partitions$2.apply(RDD.scala:217)
at scala.Option.getOrElse(Option.scala:120)
at org.apache.spark.rdd.RDD.partitions(RDD.scala:217)
at org.apache.spark.rdd.RDD.take(RDD.scala:1156)
at org.apache.spark.rdd.RDD.first(RDD.scala:1189)
at com.databricks.spark.csv.CsvRelation.firstLine$lzycompute(CsvRelation.scala:129)
at com.databricks.spark.csv.CsvRelation.firstLine(CsvRelation.scala:127)
at com.databricks.spark.csv.CsvRelation.inferSchema(CsvRelation.scala:109)
at com.databricks.spark.csv.CsvRelation.<init>(CsvRelation.scala:62)
at com.databricks.spark.csv.DefaultSource.createRelation(DefaultSource.scala:115)
at com.databricks.spark.csv.DefaultSource.createRelation(DefaultSource.scala:40)
at com.databricks.spark.csv.DefaultSource.createRelation(DefaultSource.scala:28)
at org.apache.spark.sql.sources.ResolvedDataSource$.apply(ddl.scala:290)
at org.apache.spark.sql.SQLContext.load(SQLContext.scala:679)
at org.apache.spark.sql.SQLContext.load(SQLContext.scala:667)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at py4j.reflection.MethodInvoker.invoke(MethodInvoker.java:231)
at py4j.reflection.ReflectionEngine.invoke(ReflectionEngine.java:379)
at py4j.Gateway.invoke(Gateway.java:259)
at py4j.commands.AbstractCommand.invokeMethod(AbstractCommand.java:133)
at py4j.commands.CallCommand.execute(CallCommand.java:79)
at py4j.GatewayConnection.run(GatewayConnection.java:207)
at java.lang.Thread.run(Thread.java:745)
----
It looks like my http://glennklockwood.blogspot.co.uk/2014/06/spark-on-supercomputers-few-notes.html[Hadoop Client and Server are using different versions] which in fact they are! We can see from the name of the spark folder that I'm using Hadoop 1.x there and if we check the local Hadoop version we'll notice it's using the 2.x seris:
[source,bash]
----
$ hadoop version
Hadoop 2.6.0
----
In this case the easiest fix is use a version of Spark that's compiled against Hadoop 2.6 which as of now means Spark 1.4.1.
Let's try and run our job again:
[source,bash]
----
$ ./spark-1.4.1-bin-hadoop2.6/bin/spark-submit --driver-memory 5g --packages com.databricks:spark-csv_2.10:1.1.0 fbi_spark.py
06 -> 859197
08B -> 653575
14 -> 488212
18 -> 457782
26 -> 431316
05 -> 257310
07 -> 197404
08A -> 188964
03 -> 157706
11 -> 112675
04B -> 103961
04A -> 60344
16 -> 47279
15 -> 40361
24 -> 31809
10 -> 22467
17 -> 17555
02 -> 17008
20 -> 15190
19 -> 10878
22 -> 8847
09 -> 6358
01A -> 4830
13 -> 1561
12 -> 835
01B -> 16
----
And it's working! | null | null | [
0.008116748183965683,
-0.02628137543797493,
-0.0456068217754364,
0.04799475520849228,
0.08494934439659119,
0.009198862127959728,
-0.00965956412255764,
0.03715694323182106,
0.04534951597452164,
-0.023608297109603882,
-0.015617966651916504,
-0.009979954920709133,
-0.07324090600013733,
0.00706185819581151,
-0.029971690848469734,
0.06062232330441475,
0.07635180652141571,
-0.0003016289265360683,
0.037831861525774,
-0.019903622567653656,
0.025485269725322723,
0.051847707480192184,
-0.02726408652961254,
0.036439184099435806,
-0.014584175311028957,
0.02524521015584469,
0.004902242682874203,
-0.0022608512081205845,
-0.07101914286613464,
0.0026124778669327497,
0.012271790765225887,
-0.008674785494804382,
0.02559843100607395,
0.0006222059018909931,
0.016601648181676865,
0.02078803814947605,
-0.020037144422531128,
0.00504727941006422,
-0.0021665594540536404,
0.025639425963163376,
-0.03545026481151581,
0.019468916580080986,
-0.012150345370173454,
0.015316992066800594,
-0.04291996732354164,
0.01281276810914278,
-0.03606516495347023,
0.02873045578598976,
0.006225675344467163,
0.002419670345261693,
-0.022316835820674896,
0.03869806230068207,
-0.021824125200510025,
-0.0009273321484215558,
0.018788836896419525,
0.054410696029663086,
-0.01470900233834982,
-0.08314269036054611,
0.07000316679477692,
-0.017432652413845062,
0.0029816669411957264,
-0.011669845320284367,
-0.00419154018163681,
0.045673709362745285,
0.031672995537519455,
-0.021684881299734116,
-0.007195565849542618,
0.08689502626657486,
-0.051816824823617935,
-0.005481524858623743,
-0.006605185568332672,
0.023351123556494713,
-0.02283509448170662,
-0.005987170152366161,
-0.009757548570632935,
-0.009631488472223282,
0.0032846000976860523,
0.05841003730893135,
-0.018941380083560944,
0.08196427673101425,
-0.01614181511104107,
-0.02215697430074215,
0.027942249551415443,
0.02018415369093418,
-0.00012463965686038136,
-0.02257218398153782,
-0.07738063484430313,
-0.02524581365287304,
-0.021262023597955704,
0.04448217526078224,
-0.007941207848489285,
-0.028879797086119652,
0.023692065849900246,
0.01909637451171875,
-0.02371516078710556,
0.03781389445066452,
-0.0053359330631792545,
0.006990032736212015,
0.0001491330622229725,
-0.0065244464203715324,
-0.05675574392080307,
-0.021457793191075325,
0.03235315531492233,
0.020560823380947113,
-0.056368570774793625,
-0.010832606814801693,
-0.0387568473815918,
-0.017071686685085297,
-0.0008461280376650393,
0.02363438718020916,
-0.021266378462314606,
-0.024056976661086082,
-0.02693905308842659,
-0.0029624479357153177,
-0.07347411662340164,
0.07335244119167328,
0.013829798437654972,
-0.004314835648983717,
0.007295696530491114,
0.013325157575309277,
0.03608633577823639,
0.02427304908633232,
-0.026122767478227615,
0.07771923393011093,
0.017946405336260796,
0.04432762414216995,
0.006696336902678013,
0.05707307532429695,
0.03637859970331192,
-0.07851012051105499,
-0.019163785502314568,
0.0413801483809948,
0.01510296668857336,
-0.01682370901107788,
0.011146234348416328,
-0.017931558191776276,
-0.029681161046028137,
0.018413512036204338,
0.0519196093082428,
0.032839514315128326,
0.012816174887120724,
-0.010154441930353642,
-0.0004389470268506557,
-0.02705364115536213,
0.026766037568449974,
0.023166414350271225,
-0.03716176375746727,
-0.05407630279660225,
-0.01806684210896492,
0.0362381748855114,
0.020312966778874397,
0.05239957571029663,
0.048583511263132095,
-0.04233735427260399,
0.006794859189540148,
0.10256977379322052,
0.04294854775071144,
0.008888790383934975,
-0.04164200648665428,
-0.009897126816213131,
0.05776354297995567,
0.015434389002621174,
0.020341815426945686,
0.03177497908473015,
-0.018308406695723534,
-0.020888952538371086,
0.015584660694003105,
0.012998669408261776,
-0.02472830004990101,
0.00683556217700243,
-0.04541663080453873,
-0.051258426159620285,
0.04992217943072319,
-0.022594822570681572,
0.01429248321801424,
0.02679731696844101,
0.0747443214058876,
-0.0033618384040892124,
0.04714276269078255,
-0.006480129435658455,
-0.071515291929245,
0.02958931028842926,
-0.0009774476056918502,
0.039369016885757446,
0.04618765786290169,
-0.014350663870573044,
0.05763012915849686,
0.03138335421681404,
0.013053745031356812,
0.034637559205293655,
-0.07318095862865448,
-0.07977153360843658,
-0.008753903210163116,
-0.03202102705836296,
0.043506719172000885,
-0.05302169919013977,
0.012172175571322441,
0.05354079604148865,
0.010856276378035545,
0.01589779183268547,
-0.006417819764465094,
-0.004405019339174032,
0.015749238431453705,
-0.07390070706605911,
-0.020052218809723854,
0.04078063741326332,
0.015820564702153206,
-0.03806382417678833,
-0.030216438695788383,
-0.0071852486580610275,
-0.025426650419831276,
0.012100760824978352,
0.03401198238134384,
-0.03598961979150772,
0.0942998006939888,
0.04196522384881973,
0.04983203858137131,
0.008194117806851864,
0.050398729741573334,
-0.023362360894680023,
0.07724902778863907,
-0.0030076862312853336,
-0.04833029583096504,
-0.02563086338341236,
-0.0028495348524302244,
0.11611974984407425,
0.062369365245103836,
-0.03837244585156441,
-0.07456377893686295,
0.018998168408870697,
0.01003657840192318,
-0.03514598309993744,
-0.006361805833876133,
-0.022576885297894478,
-0.005914737470448017,
0.0073683420196175575,
-0.03240351751446724,
-0.004813001491129398,
0.0003319159150123596,
-0.022343343123793602,
-0.004949387162923813,
0.07301156967878342,
-0.030985286459326744,
0.02929726056754589,
0.017756927758455276,
-0.03033623844385147,
-0.0014987176982685924,
-0.018158717080950737,
-0.04001125320792198,
-0.02064661681652069,
0.024349261075258255,
-0.0202903114259243,
0.042184557765722275,
-0.03675925359129906,
0.005633750930428505,
-0.03338693454861641,
-0.053205206990242004,
0.02249647118151188,
0.055503688752651215,
0.032830119132995605,
-0.008366737514734268,
0.010129737667739391,
-0.059459563344717026,
0.005720397923141718,
-0.03630136325955391,
-0.0023426138795912266,
-0.03713184595108032,
0.004598598461598158,
0.0031206978019326925,
0.0197927113622427,
0.021071603521704674,
0.016520891338586807,
0.020707346498966217,
0.008103730157017708,
0.015119579620659351,
0.010275174863636494,
0.0278315469622612,
-0.023188261315226555,
-0.007754625752568245,
-0.031333889812231064,
-0.01641916297376156,
0.027139762416481972,
-0.028227729722857475,
-0.018024690449237823,
0.01877494528889656,
-0.04906492680311203,
0.03562788665294647,
-0.05155986547470093,
-0.05211241915822029,
0.011892708949744701,
0.00745046092197299,
0.021495802327990532,
0.014457205310463905,
-0.0014425402041524649,
0.05896792188286781,
0.007214826066046953,
-0.03283768892288208,
0.016301386058330536,
0.030121130868792534,
0.019581930711865425,
0.007975336164236069,
0.02895146980881691,
-0.0034540363121777773,
-0.024494530633091927,
-0.03785622492432594,
-0.035479530692100525,
-0.039175521582365036,
-0.021609293296933174,
-0.2705429792404175,
0.06742222607135773,
-0.048293277621269226,
-0.03157537803053856,
0.010589757934212685,
-0.05202911049127579,
-0.01824229769408703,
-0.018967991694808006,
0.0005673208506777883,
-0.0014522481942549348,
-0.03362581878900528,
-0.05188238248229027,
-0.030608080327510834,
0.04823935031890869,
-0.00981367938220501,
0.011579631827771664,
-0.02935180999338627,
-0.03144483640789986,
-0.009286373853683472,
0.025539318099617958,
0.024289213120937347,
-0.042321495711803436,
-0.011117863468825817,
0.03077305294573307,
0.03620404750108719,
0.048623085021972656,
-0.06491496413946152,
0.05610398203134537,
-0.04782214015722275,
-0.032596226781606674,
0.04093262925744057,
-0.06550560891628265,
0.007039467338472605,
-0.00728321960195899,
-0.02826998010277748,
-0.022362612187862396,
0.019167877733707428,
0.013115063309669495,
-0.009433996863663197,
-0.00013547968410421163,
-0.05593971535563469,
-0.05958967283368111,
-0.030248498544096947,
-0.0006395557429641485,
0.07844821363687515,
-0.002552055986598134,
-0.07887502014636993,
-0.013846869580447674,
-0.027234990149736404,
0.04557080566883087,
-0.04041003808379173,
-0.043578311800956726,
-0.06012165546417236,
0.030279086902737617,
-0.031176570802927017,
0.019850075244903564,
-0.01059926487505436,
0.02174009196460247,
-0.010779979638755322,
-0.017792385071516037,
-0.0055332425981760025,
-0.03689707815647125,
0.012746418826282024,
-0.03037753887474537,
-0.02391374297440052,
-0.046660929918289185,
-0.04061662405729294,
-0.016834110021591187,
0.045598480850458145,
0.06790866702795029,
-0.01707546040415764,
0.047730881720781326,
-0.005336926318705082,
-0.10989462584257126,
-0.008071896620094776,
-0.035263922065496445,
0.0015916209667921066,
-0.02361282892525196,
-0.012449076399207115,
0.0649142637848854,
-0.04276590421795845,
-0.034140974283218384,
0.030198605731129646,
-0.008597354404628277,
0.023185670375823975,
-0.013697028160095215,
0.03005582094192505,
-0.005760726984590292,
-0.021101923659443855,
-0.03155225142836571,
0.05064452439546585,
-0.05761462077498436,
0.017181869596242905,
0.009303594008088112,
-0.03142378106713295,
0.04494239017367363,
0.005704713985323906,
0.003035531146451831,
-0.0231509767472744,
0.02142271213233471,
0.014109557494521141,
-0.06649494916200638,
-0.022458752617239952,
-0.06987776607275009,
0.0036588602233678102,
-0.015269307419657707,
-0.04960598424077034,
0.012955812737345695,
0.022783897817134857,
0.027770979329943657,
0.023977752774953842,
-0.008411956951022148,
0.03336181119084358,
-0.0623609758913517,
0.011934295296669006,
-0.01920407824218273,
0.03211706131696701,
-0.004860735032707453,
0.031134022399783134,
-0.014043731614947319,
-0.07255981862545013,
0.014638055115938187,
0.019456442445516586,
-0.01345658116042614,
-0.05391284450888634,
-0.05249672755599022,
0.0002980296849273145,
-0.026946313679218292,
-0.004484517965465784,
-0.019084054976701736,
-0.012676413170993328,
0.026009218767285347,
0.014776790514588356,
0.0024093419779092073,
0.024233119562268257,
-0.031723327934741974,
-0.060213521122932434,
-0.046913377940654755,
0.0008658437291160226,
0.060462888330221176,
0.013058662414550781,
0.012429731898009777,
0.00822742935270071,
0.023225387558341026,
0.059662993997335434,
0.018050655722618103,
0.006522934418171644,
0.01685725525021553,
-0.009643695317208767,
-0.004777578637003899,
0.05070478469133377,
-0.013598405756056309,
0.008787711150944233,
-0.054574042558670044,
-0.07339591532945633,
0.000981440651230514,
0.05049365758895874,
-0.008531572297215462,
-0.0038939695805311203,
-0.03816816955804825,
0.023716848343610764,
-0.029089123010635376,
0.005478645209223032,
-0.02118946984410286,
0.004979955963790417,
0.027483519166707993,
-0.02056930400431156,
0.024981679394841194,
-0.003680558642372489,
0.023341530933976173,
-0.030581559985876083,
-0.026302624493837357,
-0.033188704401254654,
0.020092878490686417,
-0.015940658748149872,
-0.0062486217357218266,
0.015100053511559963,
0.03088976815342903,
-0.014808238483965397,
0.010692596435546875,
-0.008327003568410873,
0.008601340465247631,
-0.001361028989776969,
-0.004291099030524492,
0.05856000632047653,
0.03724890574812889,
-0.015593181364238262,
-0.01362956129014492,
0.004972856026142836,
-0.04979124665260315,
-0.02063458412885666,
-0.01856255531311035,
-0.01848601922392845,
0.043659649789333344,
-0.02446199208498001,
-0.07641187310218811,
0.045346226543188095,
0.036141443997621536,
-0.02712315320968628,
-0.018095355480909348,
-0.02322082221508026,
-0.007353741675615311,
-0.016394492238759995,
0.019125452265143394,
0.058450810611248016,
-0.03552686795592308,
0.005825409200042486,
-0.021474117413163185,
0.029514310881495476,
0.008205672726035118,
0.011620918288826942,
-0.04168473929166794,
-0.014504119753837585,
-0.031749237328767776,
0.01150060910731554,
-0.009617031551897526,
-0.002260597888380289,
-0.044940169900655746,
0.013502580113708973,
-0.014641293324530125,
0.010893752798438072,
-0.00576292397454381,
0.0022135102190077305,
-0.02436521090567112,
-0.0036136002745479345,
0.02907315455377102,
-0.0004101799859199673,
-0.03561819717288017,
0.034800346940755844,
0.00835767574608326,
0.00461397273465991,
-0.022341648116707802,
0.0198043379932642,
0.020138507708907127,
-0.02128603495657444,
-0.014860637485980988,
-0.032233092933893204,
0.024569528177380562,
0.0027560731396079063,
0.058082155883312225,
0.00526077626273036,
0.013279184699058533,
0.008516264148056507,
-0.010090941563248634,
-0.004176806658506393,
0.003719593398272991,
0.006197979673743248,
-0.011276292614638805,
0.02551012858748436,
0.06493183225393295,
0.000607634661719203,
0.02646229974925518,
0.0058899191208183765,
-0.026689965277910233,
0.0654333084821701,
-0.020977670326828957,
-0.014166818000376225,
-0.00643192557618022,
-0.055325474590063095,
0.021234942600131035,
0.011732678860425949,
0.00274536176584661,
-0.05157759413123131,
0.053322672843933105,
0.02888396941125393,
0.015413019806146622,
0.051574669778347015,
-0.004367479123175144,
0.0399453304708004,
-0.04586052894592285,
-0.033713310956954956,
-0.0930388793349266,
-0.020611966028809547,
0.06519720703363419,
0.0069393739104270935,
-0.004445299971848726,
-0.0037228104192763567,
-0.04096810147166252,
0.026082469150424004,
-0.0721762552857399,
-0.0490742102265358,
0.03710895776748657,
0.007620173506438732,
0.025750381872057915,
0.007481811568140984,
-0.02019636332988739,
0.04714542627334595,
0.030880369246006012,
-0.026005560532212257,
-0.0187126025557518,
-0.042569711804389954,
0.059241194278001785,
0.01749725453555584,
-0.015653938055038452,
-0.018711043521761894,
-0.038120072335004807,
0.07651139795780182,
0.016119759529829025,
0.015457754954695702,
0.07101061195135117,
-0.016573674976825714,
0.04863934591412544,
-0.0055130175314843655,
-0.039522916078567505,
-0.01262628473341465,
0.035953979939222336,
0.0011682090116664767,
-0.03768858686089516,
0.018371539190411568,
0.003495409619063139,
0.02853234112262726,
-0.0472467839717865,
0.08291411399841309,
0.026364659890532494,
-0.04770417883992195,
-0.047845009714365005,
-0.013874390162527561,
-0.034296125173568726,
-0.041115354746580124,
-0.0242839977145195,
-0.0013746281620115042,
-0.03842270001769066,
0.07230646163225174,
-0.020771125331521034,
0.007010532543063164,
0.08082035928964615,
0.0121632544323802,
-0.005190958734601736,
0.03068644180893898,
0.059572163969278336,
0.06843119859695435,
-0.0013383255572989583,
0.0026175978127866983,
0.05619173124432564,
-0.00013636496441904455,
-0.036422401666641235,
-0.012673246674239635,
-0.03693906590342522,
-0.010669267736375332,
-0.018077583983540535,
0.016083044931292534,
0.06252121925354004,
0.00665579317137599,
0.08413573354482651,
0.0002866122522391379,
0.007605991326272488,
0.0012893981765955687,
0.014436145313084126,
0.04863448068499565,
0.05266040563583374,
0.010057635605335236,
0.03730176389217377,
-0.02217986062169075,
-0.019645022228360176,
0.03213285282254219,
-0.01352144405245781,
-0.01945996657013893,
0.03620132431387901,
-0.01990688592195511,
-0.0018816349329426885,
0.025560008361935616,
0.045207809656858444,
0.10516349971294403,
-0.006079352926462889,
-0.007769563235342503,
-0.004082920961081982,
0.0268796905875206,
-0.004759287927299738,
-0.007394242566078901,
-0.03350887820124626,
-0.030642976984381676,
-0.010940120555460453,
-0.08911824971437454,
-0.025317290797829628,
-0.009023131802678108,
-0.045474667102098465,
0.003981843590736389,
-0.022524021565914154,
0.021506426855921745,
0.03870026394724846,
0.007054961286485195,
-0.03322312608361244,
-0.04674718156456947,
-0.04942313954234123,
0.02230764366686344,
-0.07556471228599548,
0.0031512121204286814,
0.022465497255325317,
-0.02515649050474167,
-0.026256706565618515,
-0.028908858075737953,
-0.008520463481545448,
0.008699910715222359,
0.011298086494207382,
-0.01989390142261982,
-0.04325497895479202,
0.014100638218224049,
-0.003433181205764413,
0.02663252130150795,
0.0398424006998539,
0.06595775485038757,
-0.004212356172502041,
-0.015269115567207336,
-0.0071287741884589195,
-0.019096896052360535,
0.050520531833171844,
0.0015820299740880728,
0.030750174075365067,
-0.08020409196615219,
0.015059244818985462,
0.002592646051198244,
0.017205528914928436,
-0.07142145931720734,
0.004599006846547127,
0.04549456015229225,
0.019957751035690308,
0.05686604604125023,
-0.022916343063116074,
-0.012071876786649227,
-0.034100037068128586,
-0.01706857606768608,
-0.0264417827129364,
0.04232931509613991,
0.05846472829580307,
-0.03611476346850395,
0.06296911835670471,
0.06153525412082672,
-0.01734725758433342,
-0.015381354838609695,
-0.022327106446027756,
-0.00510021485388279,
0.024655407294631004,
-0.02419663593173027,
-0.035280510783195496,
-0.059434641152620316,
-0.06763045489788055,
0.016732579097151756,
-0.0024129676166921854,
-0.021168271079659462,
-0.03259698674082756,
0.010954957455396652,
0.02082928456366062,
-0.06933067739009857,
0.005704211536794901,
-0.06162601336836815,
0.03863593935966492,
-0.03839137405157089,
-0.06539621204137802,
0.012100696563720703,
0.029708702117204666,
-0.0002633571857586503,
-0.005333535373210907,
0.010073879733681679,
-0.012505845166742802,
-0.019609127193689346,
-0.024823330342769623,
0.03698834404349327,
0.051389776170253754,
-0.026850825175642967,
0.0031305961310863495
] | [
-0.07633272558450699,
-0.06625513732433319,
-0.03266666829586029,
-0.012853552587330341,
0.08186240494251251,
-0.041054751724004745,
-0.006534832064062357,
-0.007711694575846195,
0.006992482580244541,
0.023584462702274323,
0.0013040016638115048,
-0.04352302476763725,
-0.01700623892247677,
-0.04307122901082039,
0.03392883017659187,
-0.01576249673962593,
0.009502227418124676,
-0.0689009502530098,
-0.07224223017692566,
0.029222266748547554,
-0.005793137475848198,
-0.061122696846723557,
-0.03359847515821457,
-0.05042855069041252,
-0.0005571523797698319,
0.034565944224596024,
0.01786629855632782,
-0.04731813073158264,
-0.058992430567741394,
-0.1906355917453766,
0.020380448549985886,
-0.04075796529650688,
0.033073440194129944,
-0.0025978386402130127,
0.013453908264636993,
0.01195409893989563,
0.007539777085185051,
0.031213706359267235,
-0.0020263521000742912,
0.050051990896463394,
0.0223750751465559,
0.011593400500714779,
-0.08698947727680206,
0.0028036772273480892,
0.01090931985527277,
-0.0002476393710821867,
-0.021614093333482742,
-0.011089055798947811,
-0.007492461241781712,
0.014959849417209625,
-0.07507506012916565,
0.006526583340018988,
-0.008044812828302383,
-0.0019798416178673506,
-0.007829375565052032,
0.0030858011450618505,
0.06152510270476341,
0.08356328308582306,
0.03935059905052185,
-0.004555895924568176,
-0.002602384891360998,
-0.007459087762981653,
-0.1350957453250885,
0.06824027001857758,
0.029434338212013245,
0.056937552988529205,
-0.04273299127817154,
-0.06088246405124664,
0.015977896749973297,
0.03355969861149788,
-0.03538179025053978,
-0.014144816435873508,
-0.052769895642995834,
0.09205778688192368,
-0.002878382336348295,
-0.020715229213237762,
-0.02051505260169506,
0.02422962710261345,
0.01908516325056553,
-0.0407707542181015,
-0.09480543434619904,
-0.007383396383374929,
-0.011158088222146034,
0.007198750041425228,
-0.018004916608333588,
0.0311730969697237,
-0.0019678031094372272,
0.06735768914222717,
0.04163463041186333,
0.026862692087888718,
0.06331545114517212,
-0.0062947869300842285,
0.028145844116806984,
0.02951740473508835,
-0.08556674420833588,
-0.0396999828517437,
0.012574640102684498,
0.008535840548574924,
0.009746836498379707,
0.3875298798084259,
-0.019023369997739792,
-0.01694578304886818,
-0.019190138205885887,
0.06881816685199738,
0.0058371457271277905,
-0.003234215546399355,
0.005673798266798258,
-0.06921076774597168,
0.009880932979285717,
-0.03118763118982315,
0.046484772115945816,
-0.02585672400891781,
0.08631391823291779,
-0.0879906490445137,
0.055326756089925766,
0.06503994762897491,
-0.006737120449542999,
0.019318727776408195,
-0.04271497204899788,
0.06852757930755615,
-0.019504975527524948,
0.009089760482311249,
0.009971101768314838,
0.007832877337932587,
0.031451016664505005,
0.05004747584462166,
0.047772541642189026,
0.07064542919397354,
0.05767981708049774,
0.012264762073755264,
0.023947598412632942,
-0.00905691459774971,
-0.10878691077232361,
-0.010338367894291878,
-0.0007409497629851103,
0.020104236900806427,
0.007196684833616018,
-0.01831808313727379,
0.011170292273163795,
0.01525465864688158,
-0.007313730660825968,
-0.06513702124357224,
0.016230644658207893,
0.00280445022508502,
0.0103573864325881,
0.10952775180339813,
-0.032601434737443924,
-0.012149706482887268,
-0.04758632928133011,
-0.052748873829841614,
-0.01985895447432995,
0.03289107605814934,
0.001965138828381896,
-0.0682472437620163,
0.006349470000714064,
0.02390621416270733,
0.0851137787103653,
-0.020739592611789703,
-0.057451847940683365,
0.012382038868963718,
-0.013432607986032963,
-0.033222027122974396,
-0.0029929117299616337,
0.039277926087379456,
0.035533249378204346,
-0.10687737911939621,
0.0016167862340807915,
0.000583493965677917,
-0.010779197327792645,
-0.03289822116494179,
0.006437033414840698,
-0.01172648835927248,
-0.020127734169363976,
-0.006711237598210573,
0.046011101454496384,
-0.03958434984087944,
-0.038158345967531204,
0.02230919525027275,
0.05622553452849388,
0.032767314463853836,
0.00890438910573721,
0.023153480142354965,
-0.019272122532129288,
0.021962229162454605,
-0.04668295010924339,
-0.08090487867593765,
-0.05897613242268562,
0.008696059696376324,
-0.011855174787342548,
-0.02917131409049034,
-0.05119771137833595,
-0.0023135319352149963,
-0.025019491091370583,
0.0711517184972763,
-0.016451289877295494,
-0.04307689145207405,
0.0393826849758625,
0.017535150051116943,
-0.002237458946183324,
-0.007706747390329838,
0.012033162638545036,
0.04789510369300842,
-0.032258350402116776,
0.0483434796333313,
-0.028299346566200256,
0.008618871681392193,
-0.014564331620931625,
-0.03315940871834755,
0.030404560267925262,
-0.0015609955880790949,
-0.000897361314855516,
0.0027542035095393658,
-0.02535582147538662,
0.03908279538154602,
-0.05757208913564682,
-0.021722519770264626,
-0.021215541288256645,
0.007066769525408745,
0.04073121398687363,
0.031363677233457565,
-0.04278072714805603,
-0.009279545396566391,
0.007192283868789673,
-0.3769877851009369,
-0.008907878771424294,
-0.018101632595062256,
-0.025700490921735764,
-0.03623835742473602,
-0.051263049244880676,
0.015466541051864624,
-0.020373200997710228,
-0.027933115139603615,
0.035591356456279755,
0.09433019906282425,
-0.03586028143763542,
0.009551898576319218,
-0.08536738902330399,
0.02887866646051407,
0.04913151636719704,
-0.06007784977555275,
-0.006154886446893215,
-0.033106669783592224,
0.04469534754753113,
0.05878903344273567,
-0.04097463935613632,
-0.0014217952266335487,
-0.030915601179003716,
0.0345056913793087,
-0.02453147992491722,
0.1302434504032135,
0.0072448039427399635,
0.04532669112086296,
-0.06776660680770874,
0.04662635922431946,
-0.009625796228647232,
-0.016589893028140068,
-0.07116905599832535,
-0.005129240918904543,
-0.07032744586467743,
-0.027795379981398582,
0.04780646786093712,
0.004333487246185541,
-0.0014314133441075683,
-0.061024874448776245,
0.025064557790756226,
-0.05782756209373474,
-0.037887830287218094,
-0.020911462604999542,
-0.0029414237942546606,
-0.0035666227340698242,
-0.014374993741512299,
0.006121279671788216,
0.06135834380984306,
0.006680293008685112,
0.02479310892522335,
0.0515538826584816,
0.03861415013670921,
0.06023939698934555,
-0.061008721590042114,
-0.0642036497592926,
0.04018792510032654,
0.0027435594238340855,
-0.0031338324770331383,
0.029037117958068848,
0.040188614279031754,
0.01745225116610527,
-0.05144250765442848,
0.024003421887755394,
-0.0049021365121006966,
-0.0008009501034393907,
0.019459182396531105,
0.006593387573957443,
-0.029808860272169113,
-0.0351535938680172,
0.09146256744861603,
-0.008057809434831142,
0.011507033370435238,
0.04784200340509415,
0.057568032294511795,
-0.015150072984397411,
-0.012985669076442719,
0.02129034511744976,
-0.009968187659978867,
0.06955935060977936,
-0.015977542847394943,
0.05475861579179764,
0.003774244338274002,
0.03223368898034096,
0.06948090344667435,
0.0007900347118265927,
0.01934659667313099,
0.06531016528606415,
0.019286857917904854,
-0.02418372593820095,
-0.011850308626890182,
-0.023633355274796486,
-0.015663735568523407,
0.047187451273202896,
0.0009147531818598509,
-0.2521592974662781,
0.042407501488924026,
0.004592213314026594,
0.039924632757902145,
-0.0061334059573709965,
-0.02228366956114769,
0.041221700608730316,
-0.05241086333990097,
0.016593245789408684,
-0.007247110828757286,
-0.018767884001135826,
0.036473143845796585,
0.009517962113022804,
-0.0015926791820675135,
0.007304534316062927,
-0.015563186258077621,
0.043552059680223465,
0.02442326955497265,
0.02898779697716236,
0.00874981377273798,
0.006552474573254585,
-0.015192844904959202,
0.14578935503959656,
0.045986492186784744,
0.005643847398459911,
0.028738824650645256,
0.0033692449796944857,
-0.005179768428206444,
0.06357621401548386,
0.03385420888662338,
-0.002357544144615531,
-0.006550328806042671,
0.02707470953464508,
0.0030858160462230444,
0.027766255661845207,
-0.04422173276543617,
0.003852267051115632,
0.05517975986003876,
0.032065004110336304,
-0.01854834333062172,
-0.01643121801316738,
0.0173021350055933,
-0.03705872595310211,
0.01736496388912201,
0.0597267672419548,
-0.023552697151899338,
-0.009781657718122005,
-0.06864828616380692,
-0.039858948439359665,
0.017765330150723457,
-0.01529955305159092,
-0.01938013546168804,
-0.024111740291118622,
-0.014616572298109531,
0.01655443012714386,
0.08159264177083969,
0.0361766591668129,
0.010079841129481792,
0.0307877529412508,
0.013568338006734848,
0.006093173753470182,
-0.05899946764111519,
0.10802570730447769,
0.00041059005889110267,
-0.008302048780024052
] | [
0.00873180478811264,
-0.02385014109313488,
-0.03772589936852455,
0.04765336215496063,
0.004152371548116207,
0.0027754975017160177,
0.03645893558859825,
0.05637272447347641,
-0.045072250068187714,
-0.03271669149398804,
-0.030368899926543236,
0.025563206523656845,
0.017249571159482002,
-0.034554824233055115,
-0.052632302045822144,
-0.05278506875038147,
-0.02224143035709858,
0.012539723888039589,
0.027864180505275726,
0.0037383281160146,
-0.021002819761633873,
0.03168916702270508,
0.058930784463882446,
-0.004587537609040737,
-0.008289916440844536,
0.027389220893383026,
-0.021120470017194748,
0.024789603427052498,
0.018029261380434036,
-0.1014571338891983,
-0.03798237070441246,
-0.010910043492913246,
0.012556567788124084,
0.0010675933444872499,
0.026706574484705925,
-0.023377684876322746,
-0.029153509065508842,
0.01171020232141018,
-0.019448447972536087,
0.0006453198730014265,
0.04348129406571388,
-0.043854136019945145,
-0.04204166308045387,
-0.0014362101210281253,
-0.039220526814460754,
-0.03975715860724449,
0.002913527423515916,
-0.007219354156404734,
-0.007135316729545593,
0.013059934601187706,
-0.03677226975560188,
0.04790510982275009,
-0.012024526484310627,
-0.01109299436211586,
0.01532174926251173,
0.009265127591788769,
0.03737181797623634,
0.012952550314366817,
0.0013618835946545005,
-0.02968769334256649,
-0.026496076956391335,
-0.02825022302567959,
-0.003131941659376025,
-0.0387154147028923,
-0.012502170167863369,
-0.016833573579788208,
-0.04599439352750778,
-0.017330242320895195,
0.014358172193169594,
-0.0006525284261442721,
-0.005726813804358244,
0.01592191867530346,
-0.08830516040325165,
-0.027645254507660866,
-0.03778616338968277,
0.022355293855071068,
0.039215199649333954,
-0.023920904844999313,
-0.010280621238052845,
0.010979133658111095,
-0.0604238323867321,
-0.0010252458741888404,
-0.011741476133465767,
0.03119736909866333,
-0.016414064913988113,
-0.02428075112402439,
0.02728007361292839,
-0.017275173217058182,
0.01659862883388996,
-0.027097541838884354,
-0.008374958299100399,
0.02211807481944561,
0.012490739114582539,
0.021862423047423363,
-0.11567128449678421,
0.003331087762489915,
0.02137456089258194,
0.023716799914836884,
0.0158675666898489,
0.7961801886558533,
-0.010109854862093925,
-0.01841527782380581,
-0.016748666763305664,
0.02156875655055046,
-0.027381490916013718,
0.02586875855922699,
-0.010158063843846321,
-0.03170101344585419,
-0.015991326421499252,
-0.026685424149036407,
0.03130975365638733,
-0.004134517163038254,
0.028348887339234352,
0.04458071291446686,
0.06174599006772041,
-0.01214589737355709,
0.013548349030315876,
0.001327604055404663,
-0.00894362386316061,
0.0028188135474920273,
0.04550815373659134,
-0.003834362141788006,
0.018618514761328697,
-0.0386570543050766,
-0.0003188152622897178,
-0.1804860383272171,
0.018052158877253532,
-6.755595421534457e-33,
-0.0036055727396160364,
-0.025710100308060646,
0.04123669117689133,
-0.011717818677425385,
0.03700515627861023,
0.011681810952723026,
-0.0019886307418346405,
0.04686400294303894,
0.012283788993954659,
-0.007469226606190205,
-0.013941974379122257,
0.02001573145389557,
0.019947772845625877,
-0.04108232632279396,
-0.004990688059478998,
0.016731584444642067,
0.017165206372737885,
0.02615664340555668,
-0.026447610929608345,
0.031646180897951126,
0.019792212173342705,
0.04724840447306633,
0.023564834147691727,
0.04188501089811325,
0.008903507143259048,
-0.010824240744113922,
0.0016804824117571115,
0.005281104240566492,
0.006466410588473082,
-0.02493353560566902,
-0.04378291592001915,
0.009238241240382195,
-0.005767722148448229,
-0.04612484201788902,
0.01744866743683815,
-0.05494089797139168,
-0.03236514329910278,
-0.009702540934085846,
-0.027263155207037926,
-0.02603973262012005,
-0.04743492230772972,
0.007947559468448162,
-0.031017610803246498,
-0.051498014479875565,
-0.03338117152452469,
0.03404957428574562,
0.021458597853779793,
0.058693692088127136,
-0.04204962030053139,
0.04324702173471451,
0.033316321671009064,
-0.031962379813194275,
0.06484981626272202,
0.04427659511566162,
0.015804564580321312,
0.07152697443962097,
-0.01721206307411194,
-0.03089209273457527,
0.03723730891942978,
0.042235635221004486,
0.024750875309109688,
0.0006346636801026762,
-0.0001539497752673924,
0.007157952059060335,
0.0028799879364669323,
-0.012256218120455742,
0.039323173463344574,
0.037893638014793396,
0.048858724534511566,
0.005662593990564346,
-0.021602332592010498,
0.064431332051754,
-0.014050809666514397,
0.0027788691222667694,
-0.009978856891393661,
-0.0441073477268219,
0.03520619124174118,
0.006348520051687956,
-0.010520931333303452,
0.03193763643503189,
0.01823548972606659,
-0.03828668221831322,
-0.009836920537054539,
-0.04826562479138374,
-0.02840168960392475,
-0.0011351446155458689,
0.016677625477313995,
0.020106663927435875,
-0.02148193120956421,
0.035234179347753525,
0.007828863337635994,
-0.008067130111157894,
0.020482543855905533,
-0.01995103992521763,
-0.041629113256931305,
7.038166631056872e-33,
0.006817484740167856,
-0.05053768306970596,
-0.037345726042985916,
-0.00037632958265021443,
0.04081917181611061,
0.009453574195504189,
0.05735558271408081,
-0.010658536106348038,
-0.02785787731409073,
0.023761160671710968,
-0.0486924946308136,
-0.018437761813402176,
0.03974340856075287,
0.024206453934311867,
0.04065297544002533,
-0.00830690748989582,
0.006880560889840126,
0.008110713213682175,
0.0016361713642254472,
0.016779134050011635,
0.0018448025221005082,
0.009955388493835926,
-0.02851210907101631,
0.015222680754959583,
0.025049833580851555,
0.011317938566207886,
-0.03159260377287865,
0.025456642732024193,
-0.015392495319247246,
0.0010939359199255705,
0.019241973757743835,
0.003628471167758107,
0.002010979922488332,
-0.031352296471595764,
-0.05974224582314491,
0.0010118175996467471,
0.039278171956539154,
-0.02894194796681404,
0.020991075783967972,
0.0011814876925200224,
0.017516860738396645,
-0.011997099965810776,
-0.016908438876271248,
0.02567029558122158,
0.005140013061463833,
0.05173803120851517,
-0.0006669677095487714,
0.05238320305943489,
-0.01972745917737484,
0.016102081164717674,
-0.014348733238875866,
0.02275172248482704,
-0.014943549409508705,
0.08330415189266205,
0.02385607361793518,
-0.034057166427373886,
0.021878477185964584,
0.013973364606499672,
-0.04488884285092354,
0.002865502843633294,
-0.008998570032417774,
-0.0301811546087265,
-0.03561166673898697,
0.03533332049846649,
-0.03782647103071213,
-0.03369639813899994,
0.004261304158717394,
-0.022260241210460663,
-0.009084010496735573,
-0.047849807888269424,
0.010467752814292908,
-0.02870567888021469,
0.023323936387896538,
0.05014326423406601,
-0.025381358340382576,
0.020413918420672417,
-0.020758438855409622,
0.011984959244728088,
-0.009908935986459255,
0.021385692059993744,
0.041570864617824554,
-0.024409739300608635,
0.010036117397248745,
0.029406558722257614,
-0.013923462480306625,
0.009998783469200134,
-0.0195053368806839,
-0.02297336235642433,
0.0020307651720941067,
-0.003922985401004553,
-0.029135050252079964,
-0.047083403915166855,
-0.031040707603096962,
0.006049186922609806,
-0.012443925254046917,
-1.252028170029007e-8,
-0.0018498881254345179,
0.02044394239783287,
-0.013864674605429173,
0.01990790292620659,
0.042780011892318726,
0.0052077858708798885,
-0.02215712144970894,
0.03389688581228256,
-0.024459075182676315,
0.023366685956716537,
0.04095285385847092,
-0.043764628469944,
0.029682954773306847,
0.016646208241581917,
0.02104623056948185,
-0.0006333590135909617,
0.05107054114341736,
-0.007403635885566473,
0.02122383378446102,
0.0016801340971142054,
-0.00577034754678607,
0.04319644719362259,
-0.034769684076309204,
0.010558966547250748,
-0.03174012899398804,
-0.003078935667872429,
0.04044295847415924,
-0.08432091772556305,
-0.028139697387814522,
-0.039026688784360886,
0.0009124619537033141,
-0.05728314444422722,
0.009008977562189102,
0.004459014628082514,
-0.03534690663218498,
-0.020096568390727043,
0.0008143081795424223,
0.01144180353730917,
0.018177185207605362,
0.004628483671694994,
-0.02075960300862789,
0.0046715992502868176,
-0.04419928044080734,
-0.031673382967710495,
-0.031229346990585327,
0.018314573913812637,
-0.058682601898908615,
0.027879782021045685,
-0.0023444783873856068,
-0.026270536705851555,
0.007694343104958534,
-0.025007696822285652,
0.01576099917292595,
0.01743006519973278,
0.0542202852666378,
0.043579842895269394,
0.028009071946144104,
0.0038762004114687443,
-0.025120146572589874,
0.011597821488976479,
0.02322031371295452,
0.03661550208926201,
-0.008562486618757248,
-0.015565034933388233
] | spark-pysparkhadoop-py4j-protocol-py4jjavaerror-an-error-occurred-while-calling-o23-load-org-apache-hadoop-ipc-remoteexception-server-ipc-version-9-cannot-communicate-with-client-version-4 | https://markhneedham.com/blog/2015/08/04/spark-pysparkhadoop-py4j-protocol-py4jjavaerror-an-error-occurred-while-calling-o23-load-org-apache-hadoop-ipc-remoteexception-server-ipc-version-9-cannot-communicate-with-client-version-4 |
false | 2015-08-02 18:08:47 | Spark: Processing CSV files using Databricks Spark CSV Library | [
"spark-2"
] | [
"Spark"
] | Last year I wrote about http://www.markhneedham.com/blog/2014/11/16/spark-parse-csv-file-and-group-by-column-value/[exploring the Chicago crime data set using Spark and the OpenCSV parser] and while this worked well, a few months ago I noticed that there's now a https://github.com/databricks/spark-csv[spark-csv] library which I should probably use instead.
I thought it'd be a fun exercise to translate my code to use it.
So to recap our goal: we want to count how many times each type of crime has been committed. I have a more up to date version of the crimes file now so the numbers won't be exactly the same.
First let's launch the spark-shell and register our CSV file as a temporary table so we can query it as if it was a SQL table:
[source,bash]
----
$ ./spark-1.3.0-bin-hadoop1/bin/spark-shell
scala> import org.apache.spark.sql.SQLContext
import org.apache.spark.sql.SQLContext
scala> val crimeFile = "/Users/markneedham/Downloads/Crimes_-_2001_to_present.csv"
crimeFile: String = /Users/markneedham/Downloads/Crimes_-_2001_to_present.csv
scala> val sqlContext = new SQLContext(sc)
sqlContext: org.apache.spark.sql.SQLContext = org.apache.spark.sql.SQLContext@9746157
scala> sqlContext.load("com.databricks.spark.csv", Map("path" -> crimeFile, "header" -> "true")).registerTempTable("crimes")
java.lang.RuntimeException: Failed to load class for data source: com.databricks.spark.csv
at scala.sys.package$.error(package.scala:27)
at org.apache.spark.sql.sources.ResolvedDataSource$.lookupDataSource(ddl.scala:268)
at org.apache.spark.sql.sources.ResolvedDataSource$.apply(ddl.scala:279)
at org.apache.spark.sql.SQLContext.load(SQLContext.scala:679)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.apache.spark.repl.SparkIMain$ReadEvalPrint.call(SparkIMain.scala:1065)
at org.apache.spark.repl.SparkIMain$Request.loadAndRun(SparkIMain.scala:1338)
at org.apache.spark.repl.SparkIMain.loadAndRunReq$1(SparkIMain.scala:840)
at org.apache.spark.repl.SparkIMain.interpret(SparkIMain.scala:871)
at org.apache.spark.repl.SparkIMain.interpret(SparkIMain.scala:819)
at org.apache.spark.repl.SparkILoop.reallyInterpret$1(SparkILoop.scala:856)
at org.apache.spark.repl.SparkILoop.interpretStartingWith(SparkILoop.scala:901)
at org.apache.spark.repl.SparkILoop.command(SparkILoop.scala:813)
at org.apache.spark.repl.SparkILoop.processLine$1(SparkILoop.scala:656)
at org.apache.spark.repl.SparkILoop.innerLoop$1(SparkILoop.scala:664)
at org.apache.spark.repl.SparkILoop.org$apache$spark$repl$SparkILoop$$loop(SparkILoop.scala:669)
at org.apache.spark.repl.SparkILoop$$anonfun$org$apache$spark$repl$SparkILoop$$process$1.apply$mcZ$sp(SparkILoop.scala:996)
at org.apache.spark.repl.SparkILoop$$anonfun$org$apache$spark$repl$SparkILoop$$process$1.apply(SparkILoop.scala:944)
at org.apache.spark.repl.SparkILoop$$anonfun$org$apache$spark$repl$SparkILoop$$process$1.apply(SparkILoop.scala:944)
at scala.tools.nsc.util.ScalaClassLoader$.savingContextLoader(ScalaClassLoader.scala:135)
at org.apache.spark.repl.SparkILoop.org$apache$spark$repl$SparkILoop$$process(SparkILoop.scala:944)
at org.apache.spark.repl.SparkILoop.process(SparkILoop.scala:1058)
at org.apache.spark.repl.Main$.main(Main.scala:31)
at org.apache.spark.repl.Main.main(Main.scala)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.apache.spark.deploy.SparkSubmit$.org$apache$spark$deploy$SparkSubmit$$runMain(SparkSubmit.scala:569)
at org.apache.spark.deploy.SparkSubmit$.doRunMain$1(SparkSubmit.scala:166)
at org.apache.spark.deploy.SparkSubmit$.submit(SparkSubmit.scala:189)
at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:110)
at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)
----
I've actually forgotten to tell spark-shell about the CSV package so let's restart the shell and pass it as an argument:
[source,bash]
----
$ ./spark-1.3.0-bin-hadoop1/bin/spark-shell --packages com.databricks:spark-csv_2.10:1.1.0
scala> import org.apache.spark.sql.SQLContext
import org.apache.spark.sql.SQLContext
scala> val crimeFile = "/Users/markneedham/Downloads/Crimes_-_2001_to_present.csv"
crimeFile: String = /Users/markneedham/Downloads/Crimes_-_2001_to_present.csv
scala> val sqlContext = new SQLContext(sc)
sqlContext: org.apache.spark.sql.SQLContext = org.apache.spark.sql.SQLContext@44587c44
scala> sqlContext.load("com.databricks.spark.csv", Map("path" -> crimeFile, "header" -> "true")).registerTempTable("crimes")
...
15/08/02 18:57:46 INFO TaskSchedulerImpl: Removed TaskSet 0.0, whose tasks have all completed, from pool
15/08/02 18:57:46 INFO DAGScheduler: Stage 0 (first at CsvRelation.scala:129) finished in 0.207 s
15/08/02 18:57:46 INFO DAGScheduler: Job 0 finished: first at CsvRelation.scala:129, took 0.267327 s
----
Now we can write a simple SQL query on our 'crimes' table to find the most popular crime types:
[source,bash]
----
scala> sqlContext.sql(
"""
select `Primary Type` as primaryType, COUNT(*) AS times
from crimes
group by `Primary Type`
order by times DESC
""").save("/tmp/agg.csv", "com.databricks.spark.csv")
----
That spits out a load of CSV 'part files' into +++<cite>+++/tmp/agg.csv+++</cite>+++ so let's bring in the merge function that we've used previously to combine these into one CSV file:
[source,scala]
----
scala> import org.apache.hadoop.conf.Configuration
scala> import org.apache.hadoop.fs._
scala> def merge(srcPath: String, dstPath: String): Unit = {
val hadoopConfig = new Configuration()
val hdfs = FileSystem.get(hadoopConfig)
FileUtil.copyMerge(hdfs, new Path(srcPath), hdfs, new Path(dstPath), false, hadoopConfig, null)
}
scala> merge("/tmp/agg.csv", "agg.csv")
----
And finally let's browse the contents of our new CSV file:
[source,bash]
----
$ cat agg.csv
THEFT,1206745
BATTERY,1066110
CRIMINAL DAMAGE,672782
NARCOTICS,662257
OTHER OFFENSE,360824
ASSAULT,354583
BURGLARY,343443
MOTOR VEHICLE THEFT,278014
ROBBERY,218190
DECEPTIVE PRACTICE,197477
CRIMINAL TRESPASS,171363
PROSTITUTION,65660
WEAPONS VIOLATION,56218
PUBLIC PEACE VIOLATION,42446
OFFENSE INVOLVING CHILDREN,37010
CRIM SEXUAL ASSAULT,21346
SEX OFFENSE,21305
GAMBLING,13704
LIQUOR LAW VIOLATION,13264
INTERFERENCE WITH PUBLIC OFFICER,11366
ARSON,9642
HOMICIDE,7192
KIDNAPPING,6029
INTIMIDATION,3443
STALKING,2760
OBSCENITY,331
PUBLIC INDECENCY,123
OTHER NARCOTIC VIOLATION,106
CONCEALED CARRY LICENSE VIOLATION,34
NON-CRIMINAL,31
NON - CRIMINAL,25
RITUALISM,23
HUMAN TRAFFICKING,9
NON-CRIMINAL (SUBJECT SPECIFIED),3
DOMESTIC VIOLENCE,1
----
Great! We've got the same output with much less code which is always a #win. | null | null | [
0.00486691715195775,
-0.026316193863749504,
-0.03870128467679024,
0.04093606397509575,
0.08863324671983719,
-0.012347863055765629,
0.01912005804479122,
0.04134676232933998,
0.02989928238093853,
-0.018178610131144524,
-0.009808005765080452,
-0.015523813664913177,
-0.06213315203785896,
0.014688173308968544,
-0.04594356194138527,
0.06315140426158905,
0.06505116820335388,
-0.0071619185619056225,
0.03353795036673546,
-0.007161387242376804,
0.03278915584087372,
0.06704440712928772,
-0.003388910321518779,
0.05663508176803589,
0.0038238640408962965,
-0.0036865861620754004,
0.013568510301411152,
-0.004741620738059282,
-0.06224896013736725,
-0.005581695586442947,
0.02377336286008358,
0.030921023339033127,
0.02003573440015316,
-0.0037738271057605743,
0.004649892449378967,
0.02194531075656414,
-0.0033941122237592936,
0.02287227287888527,
-0.005523348227143288,
0.02479303814470768,
-0.041083987802267075,
0.026060625910758972,
-0.003177844686433673,
0.006330600939691067,
-0.022762544453144073,
0.015660349279642105,
-0.027835112065076828,
0.028200095519423485,
-0.004612762946635485,
-0.00932301301509142,
-0.025737231597304344,
0.02353391796350479,
-0.025845246389508247,
0.001396434148773551,
0.011224187910556793,
0.03363773599267006,
-0.00974358431994915,
-0.0823124498128891,
0.06159653142094612,
-0.03319959342479706,
0.01036335900425911,
-0.017843957990407944,
-0.010497941635549068,
0.013105876743793488,
0.027287160977721214,
-0.025710297748446465,
-0.02177373319864273,
0.07535892724990845,
-0.047408394515514374,
-0.03421441838145256,
-0.001865252386778593,
0.01768338494002819,
-0.024579834192991257,
-0.016116509214043617,
-0.017557773739099503,
-0.03161314129829407,
-0.004189953673630953,
0.04682670161128044,
-0.015998056158423424,
0.047337207943201065,
-0.03444867581129074,
-0.032128043472766876,
0.013763721100986004,
0.02087804302573204,
0.02624543569982052,
-0.040463197976350784,
-0.06467846781015396,
-0.028067421168088913,
-0.032753877341747284,
0.05152514949440956,
0.0025015450082719326,
-0.023323021829128265,
0.02507525123655796,
0.025875579565763474,
0.0019728345796465874,
0.027917373925447464,
0.007146955002099276,
0.015259332023561,
-0.002912835916504264,
-0.020975422114133835,
-0.06071406602859497,
-0.021889453753829002,
0.02653038315474987,
0.02638338692486286,
-0.06389642506837845,
-0.016365086659789085,
-0.015932759270071983,
0.009089875034987926,
0.014485889114439487,
0.02720758505165577,
-0.012014061212539673,
-0.006317744497209787,
-0.034899502992630005,
-0.015692738816142082,
-0.0808180570602417,
0.06532126665115356,
0.031410153955221176,
-0.007001994643360376,
-0.00867784209549427,
0.023608729243278503,
0.028989054262638092,
0.023173654451966286,
-0.009355146437883377,
0.06768186390399933,
0.02336975187063217,
0.04522279277443886,
0.016891155391931534,
0.04601842164993286,
0.03299910947680473,
-0.07066059112548828,
-0.012605314143002033,
0.03175533562898636,
-0.01172339916229248,
-0.02022290974855423,
0.0038101086392998695,
-0.026230188086628914,
-0.007852165028452873,
-0.0014498025411739945,
0.04063219577074051,
0.027669517323374748,
0.015565185807645321,
-0.02158859744668007,
0.023144172504544258,
0.0017242131289094687,
0.03268361836671829,
0.01961638405919075,
-0.01998733915388584,
-0.027279101312160492,
-0.008113577030599117,
0.03412492573261261,
0.031410910189151764,
0.040138062089681625,
0.06775768101215363,
-0.051305267959833145,
0.0301341749727726,
0.11484073847532272,
0.029558084905147552,
0.006215143017470837,
-0.04283991828560829,
0.013502907007932663,
0.061485785990953445,
0.029234446585178375,
0.020589953288435936,
0.0007577208452858031,
0.004273390397429466,
-0.0427786260843277,
0.009152976796030998,
0.0023812002036720514,
-0.02191891148686409,
0.0008511044434271753,
-0.057233646512031555,
-0.03485945984721184,
0.05599826201796532,
-0.037812571972608566,
0.022672446444630623,
0.025958159938454628,
0.0838639959692955,
0.028620382770895958,
0.050165966153144836,
-0.01873191073536873,
-0.078823983669281,
0.02929205261170864,
-0.02183636464178562,
0.02255718596279621,
0.03663899749517441,
-0.0008502076962031424,
0.04938683658838272,
0.02485150471329689,
0.008421074599027634,
0.0578322596848011,
-0.061240602284669876,
-0.07628393173217773,
-0.0025248832534998655,
-0.01645432785153389,
0.046216078102588654,
-0.04942601919174194,
0.017973054200410843,
0.06307044625282288,
-0.007177185732871294,
0.02833169884979725,
-0.01598524861037731,
0.03232159838080406,
0.02490190789103508,
-0.05063138157129288,
-0.020628133788704872,
0.047430530190467834,
0.01203886978328228,
-0.019021112471818924,
-0.04314408823847771,
0.007439790293574333,
-0.021008353680372238,
0.0004975447664037347,
0.030426539480686188,
-0.02528773993253708,
0.061025239527225494,
0.04597914218902588,
0.0362599641084671,
0.023483756929636,
0.06254822760820389,
-0.04902185872197151,
0.06045089289546013,
-0.003690609708428383,
-0.06741328537464142,
-0.003009496722370386,
-0.005493896082043648,
0.12282659858465195,
0.05104232579469681,
-0.02628854475915432,
-0.06147563457489014,
0.011743430979549885,
0.018012603744864464,
-0.04460553079843521,
-0.0016482950886711478,
-0.005435467232018709,
0.01210901327431202,
0.017291253432631493,
-0.03230847418308258,
-0.02778155729174614,
0.009051401168107986,
-0.01378644909709692,
0.00519175361841917,
0.0682496652007103,
-0.020747411996126175,
0.04944460466504097,
-0.01039312407374382,
-0.05239469185471535,
-0.007117562461644411,
-0.03643925487995148,
-0.05270911380648613,
-0.01813046634197235,
0.0216824971139431,
-0.017819689586758614,
0.03622082620859146,
-0.042389944195747375,
-0.004562761634588242,
-0.030949829146265984,
-0.05048799514770508,
0.015495714731514454,
0.06029045954346657,
0.04114069417119026,
-0.009428366087377071,
0.034325286746025085,
-0.04554764926433563,
-0.002759080147370696,
-0.03137640655040741,
0.00025727227330207825,
-0.033282116055488586,
-0.013301201164722443,
-0.010154449380934238,
0.027538232505321503,
0.011404878459870815,
0.03557855635881424,
0.025385374203324318,
0.03467128053307533,
0.005128372926265001,
0.010055777616798878,
0.028450174257159233,
-0.013361494056880474,
-0.010257700458168983,
-0.041475508362054825,
-0.02003748156130314,
0.03370228782296181,
-0.025696665048599243,
-0.012661644257605076,
0.016513071954250336,
-0.05430931597948074,
0.0371062271296978,
-0.04658585786819458,
-0.06149585545063019,
0.017973002046346664,
0.023733321577310562,
0.013889182358980179,
0.02951667457818985,
-0.011552933603525162,
0.062396157532930374,
0.02361471951007843,
-0.023345351219177246,
0.026747683063149452,
0.015914682298898697,
0.039915453642606735,
0.014709509909152985,
0.03811648115515709,
0.04327971860766411,
0.015439562499523163,
-0.020979786291718483,
-0.026466945186257362,
-0.03708358108997345,
-0.021998094394803047,
-0.2821847200393677,
0.055644143372774124,
-0.061101943254470825,
-0.03824964165687561,
0.018712423741817474,
-0.047721218317747116,
-0.01178574189543724,
-0.0365782156586647,
0.0002085256710415706,
0.01597718708217144,
-0.013098496943712234,
-0.03708513081073761,
-0.019260957837104797,
0.048376087099313736,
-0.0033984717447310686,
0.003435456659644842,
-0.003531260881572962,
-0.04484524577856064,
-0.010715904645621777,
0.04478372260928154,
0.03410624340176582,
-0.04771493375301361,
-0.0045053791254758835,
0.05604017525911331,
0.019568566232919693,
0.06460829824209213,
-0.07427091896533966,
0.059187278151512146,
-0.04508537799119949,
-0.012523457407951355,
0.0221500713378191,
-0.048198312520980835,
-0.010851411148905754,
-0.04062356427311897,
-0.02991514839231968,
-0.011987955309450626,
0.0075074671767652035,
0.024903900921344757,
-0.009600220248103142,
0.00010809873492689803,
-0.034720342606306076,
-0.04532109200954437,
-0.01719266176223755,
0.0006519551970995963,
0.06668084859848022,
-0.00438018050044775,
-0.07530346512794495,
0.0020465634297579527,
-0.03616955131292343,
0.058229412883520126,
-0.03885676711797714,
-0.056660063564777374,
-0.046141255646944046,
0.02973104640841484,
-0.012022774666547775,
-0.0004914761520922184,
0.006772079970687628,
-0.017888927832245827,
-0.0150772575289011,
-0.021250536665320396,
-0.0034707942977547646,
-0.050393588840961456,
0.016218913719058037,
-0.028312481939792633,
-0.02336856536567211,
-0.0642789974808693,
-0.05389032140374184,
-0.016766324639320374,
0.061202071607112885,
0.06789276003837585,
-0.026738040149211884,
0.025845373049378395,
0.005232478026300669,
-0.10751368850469589,
-0.01466155145317316,
-0.03687667474150658,
-0.01258536521345377,
-0.01860104501247406,
-0.02125348150730133,
0.05422400310635567,
-0.04846109077334404,
-0.03355827182531357,
0.03293820470571518,
-0.016854003071784973,
0.023572348058223724,
-0.01717863418161869,
0.010902196168899536,
-0.003944538068026304,
-0.03300585597753525,
-0.030057232826948166,
0.05337456986308098,
-0.04830016940832138,
0.001194791286252439,
-0.0027290359139442444,
-0.03946017473936081,
0.0445404127240181,
0.003015710972249508,
-0.0048747011460363865,
0.000681344245094806,
0.017204957082867622,
0.019866833463311195,
-0.07020599395036697,
-0.01716240681707859,
-0.0529162622988224,
-0.03409158065915108,
-0.010003533214330673,
-0.048225026577711105,
0.03231487423181534,
0.02213389426469803,
0.016551228240132332,
0.013024997897446156,
-0.0510060153901577,
0.014592231251299381,
-0.05878124013543129,
-0.017882293090224266,
-0.008377477526664734,
0.019838837906718254,
0.0031892580445855856,
0.04306767135858536,
-0.017905155196785927,
-0.055779829621315,
-0.0007886556559242308,
0.02921934612095356,
-0.01357918232679367,
-0.06163247674703598,
-0.038259971886873245,
0.01792115531861782,
-0.019392764195799828,
-0.00041331135435029864,
-0.009937026537954807,
-0.05376080796122551,
0.010097683407366276,
0.030218472704291344,
-0.003929872997105122,
0.022626981139183044,
-0.032635755836963654,
-0.08003545552492142,
-0.04075230285525322,
-0.010756470263004303,
0.025292405858635902,
0.013243593275547028,
0.0026792450807988644,
-0.0021330448798835278,
0.02317270077764988,
0.059172626584768295,
0.006984676234424114,
-0.010278627276420593,
0.019491471350193024,
0.00006106989894760773,
0.00033123797038570046,
0.031029459089040756,
-0.034549616277217865,
0.018739039078354836,
-0.04134759306907654,
-0.05583498626947403,
-0.0043886867351830006,
0.03390323370695114,
0.014577791094779968,
-0.0202022697776556,
-0.020782027393579483,
0.04767320677638054,
-0.033430762588977814,
-0.01071454118937254,
-0.016591433435678482,
-0.00036269318661652505,
0.0505802258849144,
-0.01823689416050911,
0.019542260095477104,
-0.01110009104013443,
0.024184366688132286,
-0.028110582381486893,
-0.021638359874486923,
-0.014968529343605042,
0.009421263821423054,
-0.005007398314774036,
-0.015646249055862427,
0.014006263576447964,
0.022227101027965546,
0.01569933071732521,
0.025124534964561462,
-0.013130437582731247,
-0.015601317398250103,
-0.01733834482729435,
0.01374304760247469,
0.06562436372041702,
0.04545026272535324,
-0.005887463688850403,
-0.020100047811865807,
-0.019865751266479492,
-0.03999127075076103,
-0.030781231820583344,
-0.013983326964080334,
-0.0019593513570725918,
0.028726859018206596,
-0.013066363520920277,
-0.08419963717460632,
0.041061561554670334,
0.008764369413256645,
-0.01945585384964943,
0.014345336705446243,
-0.016788050532341003,
-0.026523277163505554,
-0.008647305890917778,
0.02066964842379093,
0.04828222095966339,
-0.052537862211465836,
0.020445192232728004,
-0.010687148198485374,
0.0011382577940821648,
0.016292626038193703,
0.007952088490128517,
-0.05974550545215607,
-0.00032700554584152997,
-0.033165864646434784,
0.02197108045220375,
-0.040929097682237625,
-0.009950242005288601,
-0.03605720400810242,
0.007732389494776726,
-0.00565533060580492,
0.0021436670795083046,
-0.010929370298981667,
0.00869035068899393,
-0.005217570345848799,
-0.004691160749644041,
0.03165701776742935,
-0.014572222717106342,
-0.02185617759823799,
0.04974884167313576,
-0.015960298478603363,
0.02225285954773426,
-0.025208668783307076,
0.025417594239115715,
0.023035898804664612,
-0.028010087087750435,
-0.010478084906935692,
-0.028207499533891678,
0.015097850933670998,
0.00034644108382053673,
0.0678345263004303,
0.0016360818408429623,
-0.012368717230856419,
0.015119350515305996,
0.007882514037191868,
-0.005865495186299086,
0.010050850920379162,
-0.007092844229191542,
0.005663880612701178,
0.028467237949371338,
0.05980825424194336,
0.0031618017237633467,
0.027066180482506752,
-0.001085527241230011,
-0.037987057119607925,
0.07059688866138458,
-0.04402247071266174,
-0.015911301597952843,
-0.029501520097255707,
-0.03807641938328743,
0.03320067748427391,
0.019126558676362038,
0.002022817498072982,
-0.03335448354482651,
0.058145444840192795,
0.016512183472514153,
0.02074529230594635,
0.06035563349723816,
-0.0030413754284381866,
0.037328340113162994,
-0.0427120141685009,
-0.04171408340334892,
-0.0983097031712532,
-0.0026267666835337877,
0.06405352056026459,
-0.0009981649927794933,
-0.014743531122803688,
-0.02161242999136448,
-0.031036825850605965,
0.017740922048687935,
-0.0777595117688179,
-0.049091581255197525,
0.035165973007678986,
-0.026850102469325066,
0.0128043033182621,
0.0011309032561257482,
-0.031340841203927994,
0.0350189171731472,
0.038830216974020004,
-0.03856835886836052,
-0.04208775609731674,
-0.05305710434913635,
0.051355425268411636,
0.024618418887257576,
-0.005161695182323456,
-0.013925730250775814,
-0.00699133425951004,
0.06268312782049179,
-0.01100221462547779,
0.03988971561193466,
0.0649506151676178,
-0.008607716299593449,
0.05677200108766556,
0.01650966890156269,
-0.031338244676589966,
-0.0002773143642116338,
0.01373500470072031,
-0.006606142967939377,
-0.04797500744462013,
0.03390451520681381,
0.027697516605257988,
0.0270996056497097,
-0.0572596974670887,
0.09045348316431046,
0.03477075323462486,
-0.047091931104660034,
-0.032134074717760086,
0.0004917353508062661,
-0.02862771786749363,
-0.03204777464270592,
-0.028541330248117447,
0.0028348951600492,
-0.04577334597706795,
0.05603645741939545,
-0.016777297481894493,
0.026416512206196785,
0.0684584453701973,
0.013124741613864899,
-0.014274870045483112,
0.004811745136976242,
0.06722909212112427,
0.06776057183742523,
0.02220853604376316,
0.001543923281133175,
0.04584231227636337,
-0.022151676937937737,
-0.04024330526590347,
0.018518121913075447,
-0.030971625819802284,
-0.008458486758172512,
-0.03541598469018936,
0.01245974563062191,
0.0669524297118187,
-0.011720610782504082,
0.08498204499483109,
-0.01797378808259964,
0.0004797672154381871,
-0.014445174485445023,
0.00901093427091837,
0.04628024622797966,
0.03610346093773842,
0.0034073523711413145,
0.048261068761348724,
-0.01561274565756321,
-0.02602057158946991,
0.015457198955118656,
0.01806918904185295,
-0.029550796374678612,
0.02887919545173645,
-0.021441679447889328,
0.006058311555534601,
0.03193286433815956,
0.029184238985180855,
0.09931781888008118,
-0.022937018424272537,
-0.006459136493504047,
0.001089972909539938,
0.017001844942569733,
-0.0013647987507283688,
-0.00041092734318226576,
-0.03238610178232193,
-0.0328395739197731,
-0.012498739175498486,
-0.07704511284828186,
-0.009251103736460209,
-0.00249165715649724,
-0.058348365128040314,
0.014281446114182472,
-0.01963423751294613,
0.03585157170891762,
0.048182301223278046,
-0.011161984875798225,
-0.035650499165058136,
-0.06875775754451752,
-0.048343319445848465,
-0.007525885012000799,
-0.08095502853393555,
0.0003225295222364366,
0.009813415817916393,
-0.014290370978415012,
-0.029751645401120186,
-0.03647918254137039,
-0.01927369087934494,
-0.014609168283641338,
0.03628874942660332,
-0.030687790364027023,
-0.05790022388100624,
0.013633093796670437,
0.020584268495440483,
0.01739673875272274,
0.0422947071492672,
0.0571427047252655,
-0.023511847481131554,
-0.009504838846623898,
-0.017134660854935646,
0.0039006834849715233,
0.04168831557035446,
0.0026864197570830584,
0.01952449604868889,
-0.07268193364143372,
0.026586107909679413,
0.01756700687110424,
-0.0145529480651021,
-0.07796500623226166,
0.03356491029262543,
0.04288432374596596,
0.009753559716045856,
0.0630512610077858,
-0.011354455724358559,
-0.005645841360092163,
-0.031767163425683975,
-0.018790245056152344,
-0.02269374579191208,
0.04307585954666138,
0.05544712394475937,
-0.02654968947172165,
0.07151675224304199,
0.056487075984478,
-0.02899349294602871,
-0.0402008518576622,
-0.02130882814526558,
0.006412476301193237,
0.022036829963326454,
-0.016564279794692993,
-0.01998954266309738,
-0.05956031009554863,
-0.0712885782122612,
0.0002580178843345493,
-0.004327870439738035,
-0.029522741213440895,
-0.021542564034461975,
0.012362529523670673,
0.018220633268356323,
-0.05250057205557823,
0.002045600675046444,
-0.046485356986522675,
0.025326553732156754,
-0.026862066239118576,
-0.04024868085980415,
-0.013730435632169247,
0.04366491362452507,
-0.0015280656516551971,
0.005461083259433508,
0.011698608286678791,
-0.01674710214138031,
0.02630946971476078,
0.0015151780098676682,
0.03384408727288246,
0.04025914892554283,
-0.027361705899238586,
-0.027739811688661575
] | [
-0.06539379060268402,
-0.07660838961601257,
-0.010654096491634846,
-0.03198821470141411,
0.09312523156404495,
-0.02403881587088108,
-0.012388153001666069,
-0.007994323037564754,
0.002455354668200016,
0.003136330982670188,
0.02477528713643551,
-0.04036644846200943,
-0.0211209487169981,
-0.018448835238814354,
0.025550775229930878,
0.0001869168336270377,
0.012094222940504551,
-0.04031280428171158,
-0.05269983410835266,
0.03028625063598156,
-0.0240040123462677,
-0.06367620825767517,
-0.01234522182494402,
-0.061928123235702515,
-0.0044683716259896755,
0.036772720515728,
0.03430843725800514,
-0.07248777896165848,
-0.06484386324882507,
-0.1904575526714325,
0.005033536814153194,
-0.055181749165058136,
0.0450575016438961,
-0.010171773843467236,
-0.021780328825116158,
-0.02148948237299919,
0.024574683979153633,
0.029758259654045105,
-0.0005080721457488835,
0.04574377089738846,
0.010507512837648392,
0.02415003627538681,
-0.07491908967494965,
-0.022025592625141144,
-0.00841593649238348,
-0.0032058111391961575,
0.007473261095583439,
0.02001272141933441,
0.0172773078083992,
0.0035471278242766857,
-0.07775047421455383,
-0.0025988768320530653,
-0.007326293271034956,
0.032190192490816116,
-0.030246544629335403,
0.004445706959813833,
0.039092399179935455,
0.07385479658842087,
0.03630874678492546,
0.012260610237717628,
-0.004499184899032116,
-0.006770203355699778,
-0.14787116646766663,
0.06868656724691391,
-0.02302512526512146,
0.06077870354056358,
-0.022498369216918945,
-0.05412676930427551,
0.009532320313155651,
0.017635198310017586,
-0.021786950528621674,
-0.02928127720952034,
-0.03837968409061432,
0.09807728976011276,
-0.0015816515078768134,
-0.01592661812901497,
-0.03863340616226196,
0.03633087873458862,
0.017108721658587456,
-0.05776410549879074,
-0.09367118030786514,
-0.022028731182217598,
0.03651420772075653,
0.0006043800967745483,
-0.024000883102416992,
0.012039072811603546,
0.003784929169341922,
0.04137205332517624,
0.05260166525840759,
0.01957412250339985,
0.0596204549074173,
-0.0016807045321911573,
0.0594002902507782,
0.036594804376363754,
-0.08807576447725296,
-0.04161381721496582,
-0.013692517764866352,
0.006107692141085863,
0.0037844618782401085,
0.3551580607891083,
-0.04192320257425308,
-0.03451543673872948,
-0.017653170973062515,
0.060865167528390884,
0.003619525348767638,
-0.006946902256458998,
0.01682961732149124,
-0.06727205961942673,
0.00893792137503624,
-0.046821337193250656,
0.0345894880592823,
-0.026030022650957108,
0.0894160345196724,
-0.0881052240729332,
0.033292386680841446,
0.03390471264719963,
0.026712924242019653,
-0.006455051247030497,
-0.02963658608496189,
0.0706937313079834,
0.006917406339198351,
-0.018260255455970764,
0.02123948559165001,
-0.006530629936605692,
0.04700969532132149,
0.024040643125772476,
0.0379396453499794,
0.06914151459932327,
0.07597821205854416,
0.005732759367674589,
0.009985619224607944,
-0.0008816815097816288,
-0.1182318702340126,
-0.01739533618092537,
0.022379858419299126,
0.031587619334459305,
0.02374771423637867,
-0.04286178946495056,
0.029604356735944748,
-0.011132488958537579,
0.0009504873305559158,
-0.040528569370508194,
0.03363208472728729,
0.013467449694871902,
-0.025038346648216248,
0.11203882843255997,
-0.026858404278755188,
-0.031054699793457985,
-0.0036139676813036203,
-0.047518812119960785,
0.011374426074326038,
0.026164978742599487,
0.011477694846689701,
-0.057076722383499146,
0.005369425285607576,
0.019771959632635117,
0.08949387073516846,
-0.028697419911623,
-0.08737821877002716,
0.006061432417482138,
-0.019842447713017464,
-0.028106683865189552,
-0.009961827658116817,
0.056307338178157806,
0.035071056336164474,
-0.07324451208114624,
-0.006400013342499733,
0.013453769497573376,
-0.014162594452500343,
-0.04363834485411644,
0.023438727483153343,
-0.000854783458635211,
-0.015309284441173077,
0.01425181981176138,
0.06570781022310257,
-0.0404653325676918,
-0.029203282669186592,
-0.009031401947140694,
0.027941353619098663,
0.044920604676008224,
0.007178059779107571,
0.029476720839738846,
-0.051489826291799545,
0.05004137381911278,
-0.04604978859424591,
-0.0729551836848259,
-0.027568643912672997,
-0.007999955676496029,
0.023983905091881752,
0.0033064258750528097,
-0.039328720420598984,
-0.010593503713607788,
-0.008982875384390354,
0.0595468245446682,
-0.022413473576307297,
-0.004760471172630787,
0.04978029802441597,
0.004816639702767134,
0.01094069704413414,
-0.0019582221284508705,
0.002705803606659174,
0.04856398329138756,
0.0007814706768840551,
0.018977779895067215,
-0.03678929805755615,
0.021586064249277115,
-0.003937562927603722,
-0.06456360965967178,
-0.009801690466701984,
-0.02090280130505562,
-0.0007997872889973223,
0.01104002445936203,
-0.06010602042078972,
0.027501745149493217,
-0.03370688855648041,
-0.05500005558133125,
-0.01680685393512249,
-0.010055702179670334,
0.03846555948257446,
0.03822937235236168,
-0.039758872240781784,
-0.027689889073371887,
-0.014854473061859608,
-0.37984809279441833,
-0.015552518889307976,
-0.0015783171402290463,
-0.027052393183112144,
-0.027171026915311813,
-0.04088901728391647,
-0.01043857354670763,
-0.022274397313594818,
-0.03269684314727783,
0.06642074882984161,
0.07706359028816223,
-0.009981545619666576,
-0.018994959071278572,
-0.10506191849708557,
0.036634597927331924,
0.020617758855223656,
-0.04150363430380821,
-0.019859222695231438,
-0.05003535374999046,
0.01868477836251259,
0.046243079006671906,
-0.04422248527407646,
-0.006346255540847778,
-0.042597800493240356,
0.060020025819540024,
-0.015154808759689331,
0.09555400907993317,
0.03493840992450714,
0.015528775751590729,
-0.07696491479873657,
0.04425094649195671,
-0.00188794219866395,
0.010947069153189659,
-0.07513578236103058,
-0.0012035839026793838,
-0.07011224329471588,
-0.02887985296547413,
0.06138734146952629,
0.0019326928304508328,
0.017809685319662094,
-0.06498809158802032,
0.015033231116831303,
-0.04897874593734741,
-0.037538520991802216,
-0.014826647937297821,
-0.029747378081083298,
0.02357938140630722,
-0.01186302863061428,
0.03573685139417648,
0.07089175283908844,
0.001465133740566671,
0.025861790403723717,
0.050179868936538696,
0.053988657891750336,
0.03783249855041504,
-0.03884795680642128,
-0.060406964272260666,
0.04051211103796959,
0.024945028126239777,
-0.02693462371826172,
0.026620978489518166,
0.05749916657805443,
0.04325952008366585,
-0.06557111442089081,
0.0415598601102829,
0.004825099837034941,
0.00688390014693141,
0.014052395708858967,
0.015431942418217659,
-0.034100282937288284,
-0.07454710453748703,
0.09040029346942902,
-0.030626205727458,
0.021357879042625427,
0.05339653789997101,
0.0690573900938034,
-0.03552684560418129,
-0.0320410430431366,
0.01644085720181465,
-0.005931374616920948,
0.04393815994262695,
-0.003005885984748602,
0.02899528294801712,
-0.0026960179675370455,
0.05068008601665497,
0.09365873038768768,
0.024713104590773582,
0.04655594378709793,
0.049443088471889496,
0.016527840867638588,
-0.007882635109126568,
-0.021881256252527237,
-0.01684483513236046,
-0.026828253641724586,
0.042027898132801056,
0.015461144968867302,
-0.2445611208677292,
0.03396577388048172,
0.02646971493959427,
0.05014829337596893,
0.005303977522999048,
-0.007781009189784527,
0.03591378033161163,
-0.07079799473285675,
0.025032855570316315,
-0.01836548000574112,
0.021125320345163345,
0.032202962785959244,
0.017068615183234215,
-0.0052896407432854176,
0.015050596557557583,
-0.056018244475126266,
0.0515054427087307,
0.021251725032925606,
0.03209059312939644,
0.0020135841332376003,
0.017613479867577553,
0.0003924208867829293,
0.15458843111991882,
0.028268028050661087,
-0.004040749277919531,
0.029766779392957687,
0.02137792482972145,
-0.013952824287116528,
0.05909813940525055,
0.029791738837957382,
-0.023919345811009407,
-0.023263387382030487,
0.05761212855577469,
0.01574634574353695,
0.028262261301279068,
-0.033100880682468414,
0.007313146255910397,
0.06459322571754456,
0.02325335331261158,
-0.03527909517288208,
-0.018826158717274666,
0.028773628175258636,
-0.05369047075510025,
0.04415758326649666,
0.06526947766542435,
-0.009865211322903633,
-0.012111379764974117,
-0.08310288190841675,
-0.04679754748940468,
-0.000517968786880374,
0.005552713759243488,
-0.019512774422764778,
-0.02406967431306839,
-0.015600607730448246,
0.02453470788896084,
0.07085663080215454,
0.01301197987049818,
0.009229131042957306,
0.030518827959895134,
0.013818581588566303,
0.013867783360183239,
-0.03188839927315712,
0.08577241003513336,
0.014310464262962341,
-0.004255176056176424
] | [
0.00045527046313509345,
-0.012692869640886784,
-0.036982569843530655,
0.03217168524861336,
0.012569591403007507,
0.013182690367102623,
0.02943919040262699,
0.039383504539728165,
-0.011171492747962475,
0.00603562593460083,
-0.001316169393248856,
-0.008654455654323101,
-0.0008190307999029756,
-0.04905620962381363,
-0.026228632777929306,
-0.06812594830989838,
-0.03221676126122475,
0.01630244217813015,
0.02259647287428379,
0.011838368140161037,
-0.01909583806991577,
0.00799509882926941,
0.029322965070605278,
-0.013414571061730385,
-0.019497303292155266,
0.023778777569532394,
-0.020561184734106064,
0.013103457167744637,
0.013505224138498306,
-0.10882550477981567,
-0.03024090826511383,
0.004426838364452124,
0.022975873202085495,
0.01770057901740074,
-0.03199315443634987,
-0.04961695149540901,
-0.0002291985583724454,
0.041514866054058075,
-0.05416996777057648,
0.0106132123619318,
0.0235605426132679,
-0.022256962954998016,
-0.01302306354045868,
0.004408165346831083,
-0.018188364803791046,
-0.05168349668383598,
-0.0006630668067373335,
-0.018209779635071754,
-0.01453276164829731,
0.0402216836810112,
-0.04660101607441902,
0.03185936436057091,
-0.002566475188359618,
0.023739533498883247,
0.014008206315338612,
-0.010801414959132671,
0.009428068995475769,
0.01987730711698532,
-0.0034705752041190863,
-0.04447387158870697,
-0.002068661153316498,
-0.03201373293995857,
0.0020201662555336952,
-0.03445849195122719,
-0.020574800670146942,
-0.0251461211591959,
0.004982341546565294,
0.006785742938518524,
0.023967521265149117,
0.009481237269937992,
0.020338231697678566,
0.032282762229442596,
-0.05175851285457611,
-0.03868461027741432,
-0.048971712589263916,
0.042076148092746735,
0.00781944952905178,
-0.019692324101924896,
0.01142999716103077,
0.00910563487559557,
-0.05513864383101463,
0.003049354301765561,
-0.0071794940158724785,
0.020211046561598778,
-0.015321302227675915,
-0.016260724514722824,
-0.0033967620693147182,
-0.011266429908573627,
0.02085295133292675,
-0.010635741986334324,
0.00532878004014492,
0.06054962798953056,
0.03020450845360756,
0.013666657730937004,
-0.09399055689573288,
0.02302221581339836,
0.003664818126708269,
0.0278655793517828,
0.013521331362426281,
0.8193375468254089,
-0.033499766141176224,
0.019347095862030983,
-0.04228930547833443,
0.007788854651153088,
-0.041714493185281754,
-0.010308003053069115,
-0.01349123939871788,
-0.026303626596927643,
-0.014730413444340229,
-0.0257139652967453,
0.06387268006801605,
0.01725643314421177,
0.03894303739070892,
0.010008660145103931,
0.052122894674539566,
-0.023000506684184074,
-0.004390403628349304,
0.013981710188090801,
0.010471951216459274,
0.010285735130310059,
0.04389599338173866,
0.016455546021461487,
-0.015373431146144867,
-0.013455291278660297,
0.008837185800075531,
-0.13886557519435883,
0.006767266429960728,
-7.165919357104239e-33,
0.022488048300147057,
-0.031166670843958855,
0.02340974286198616,
-0.006662527099251747,
0.019312720745801926,
0.0016855335561558604,
-0.002643771469593048,
0.040957704186439514,
-0.018986381590366364,
-0.013281246647238731,
-0.008447602391242981,
-0.00019991914450656623,
-0.0006053133402019739,
-0.026089005172252655,
0.028712322935461998,
0.024157924577593803,
0.0122616495937109,
0.006806537974625826,
-0.034342482686042786,
-0.022461043670773506,
0.04132911190390587,
0.02434685081243515,
0.022942161187529564,
0.0395699106156826,
-0.00042364775435999036,
0.016208713874220848,
-0.009516858495771885,
-0.019059306010603905,
0.0013114718021824956,
-0.031169135123491287,
-0.007033857516944408,
0.028803186491131783,
0.024287883192300797,
-0.030705558136105537,
0.06349162757396698,
-0.05043282359838486,
-0.030610043555498123,
0.02798382006585598,
-0.010695237666368484,
-0.01858932338654995,
-0.039769310504198074,
0.0008566476753912866,
-0.04867633059620857,
-0.033379312604665756,
-0.012695234268903732,
0.004242063034325838,
0.01542080007493496,
0.04028448089957237,
-0.0300766509026289,
0.019472718238830566,
0.03259865567088127,
-0.03437860682606697,
0.027033576741814613,
0.038648515939712524,
-0.01564999297261238,
0.0696883425116539,
-0.036788515746593475,
-0.006599317770451307,
0.02434687316417694,
0.041447076946496964,
0.016440987586975098,
0.014868845231831074,
0.017952607944607735,
-0.002113691298291087,
-0.004212427884340286,
-0.01282482873648405,
0.03693414852023125,
0.022159716114401817,
0.019307343289256096,
0.017248839139938354,
-0.01476643979549408,
0.07771962881088257,
-0.0160750150680542,
0.003961676266044378,
0.015124666504561901,
-0.044668544083833694,
0.0326085239648819,
0.004682755563408136,
-0.010952419601380825,
0.025620903819799423,
-0.006977357901632786,
-0.050880104303359985,
0.005469346884638071,
-0.031526003032922745,
-0.02779792807996273,
0.006006804294884205,
0.03638297691941261,
0.009682218544185162,
-0.020039930939674377,
0.009347702376544476,
0.023004040122032166,
0.007263322826474905,
0.011831575073301792,
-0.026745343580842018,
-0.031881533563137054,
7.687651504457172e-33,
0.0017801376525312662,
-0.010046265088021755,
-0.011638037860393524,
0.0016305409371852875,
0.04539259523153305,
0.005769981071352959,
0.04600008577108383,
-0.022045297548174858,
-0.015640078112483025,
0.019709305837750435,
-0.06190856546163559,
-0.0439579114317894,
0.018908334895968437,
0.0424841046333313,
0.04067207872867584,
-0.007730334065854549,
0.01416363101452589,
-0.01084829680621624,
-0.014702997170388699,
-0.02297590859234333,
-0.018227016553282738,
-0.0007698015542700887,
-0.0034664617851376534,
0.023348413407802582,
0.041646573692560196,
-0.015427040867507458,
-0.0187088493257761,
0.007864296436309814,
-0.02937973663210869,
0.02093851938843727,
0.019725993275642395,
0.011306587606668472,
-0.006610314827412367,
-0.02184177003800869,
-0.06846264749765396,
0.010883349925279617,
0.03569883108139038,
-0.039139699190855026,
0.029697010293602943,
0.014150109142065048,
-0.008236581459641457,
-0.018976066261529922,
-0.019470538944005966,
0.008327357470989227,
-0.012586173601448536,
0.04842162877321243,
0.03362302482128143,
0.05291735380887985,
-0.017852822318673134,
0.015651362016797066,
0.011494853533804417,
0.03155892714858055,
-0.01981823332607746,
0.07809815555810928,
0.04739443212747574,
-0.007869230583310127,
-0.0036585647612810135,
0.009887335821986198,
-0.050013430416584015,
-0.0004858244792558253,
-0.023929866030812263,
0.0033477749675512314,
-0.03451590985059738,
0.03680163249373436,
-0.02174050360918045,
-0.019012127071619034,
-0.004286517854779959,
-0.02966824732720852,
-0.018894853070378304,
-0.05422866344451904,
-0.00041538331424817443,
-0.02365987002849579,
0.012144861742854118,
0.037142712622880936,
-0.020651789382100105,
-0.032709211111068726,
-0.03722468018531799,
0.019328206777572632,
-0.004505594726651907,
0.019435904920101166,
0.039891790598630905,
-0.02632426656782627,
0.019738445058465004,
0.013073716312646866,
0.006950320675969124,
0.029595917090773582,
0.007377177011221647,
-0.018219485878944397,
0.014793936163187027,
0.027100732550024986,
-0.06035540625452995,
-0.057559702545404434,
-0.014508427120745182,
-0.00865645706653595,
0.005545138381421566,
-1.2950995831317869e-8,
0.0031987724360078573,
0.007565876469016075,
-0.043667204678058624,
0.02526877075433731,
0.06480724364519119,
0.012670020572841167,
-0.025049583986401558,
0.0237348023802042,
-0.022713351994752884,
0.004884676542133093,
0.03912528231739998,
-0.0436399020254612,
0.02800225280225277,
-0.004310504999011755,
0.012311275117099285,
-0.023036226630210876,
0.02700743079185486,
-0.02135174535214901,
0.0012640892527997494,
0.008428490720689297,
0.009430685080587864,
0.0464114211499691,
-0.04265659675002098,
-0.006477270741015673,
-0.02331247366964817,
0.007972775027155876,
0.011700062081217766,
-0.08625427633523941,
-0.016125241294503212,
-0.025880862027406693,
0.0029209484346210957,
-0.04851607605814934,
0.0038406341336667538,
0.009018649347126484,
-0.034681010991334915,
-0.017056139186024666,
0.007486116141080856,
0.041882794350385666,
0.032334472984075546,
0.0031646867282688618,
-0.015488555654883385,
-0.023678690195083618,
-0.02670673094689846,
-0.030045563355088234,
-0.05092095211148262,
0.009307782165706158,
-0.041902922093868256,
0.01108013279736042,
0.017744967713952065,
-0.006119878031313419,
0.033892251551151276,
-0.009416090324521065,
0.030983218923211098,
0.05975012481212616,
0.037269022315740585,
0.02795332856476307,
0.04534803703427315,
0.018486864864826202,
-0.024990413337945938,
-0.01154217030853033,
0.021758167073130608,
0.0005335400928743184,
-0.003834767732769251,
-0.028125427663326263
] | spark-processing-csv-files-using-databricks-spark-csv-library | https://markhneedham.com/blog/2015/08/02/spark-processing-csv-files-using-databricks-spark-csv-library |
false | 2015-08-11 06:59:50 | Java: Jersey - java.lang.NoSuchMethodError: com.sun.jersey.core.reflection.ReflectionHelper. getContextClassLoaderPA()Ljava/security/PrivilegedAction; | [
"software-development",
"java"
] | [
"Java"
] | I've been trying to put some tests around an https://github.com/mneedham/dummy-unmanaged-extension[Neo4j unmanaged extension] I've been working on and ran into the following stack trace when launching the server using the http://neo4j.com/docs/stable/server-unmanaged-extensions-testing.html[Neo4j test harness]:
[source,java]
----
public class ExampleResourceTest {
@Rule
public Neo4jRule neo4j = new Neo4jRule()
.withFixture("CREATE (:Person {name: 'Mark'})")
.withFixture("CREATE (:Person {name: 'Nicole'})")
.withExtension( "/unmanaged", ExampleResource.class );
@Test
public void shouldReturnAllTheNodes() {
// Given
URI serverURI = neo4j.httpURI();
// When
HTTP.Response response = HTTP.GET(serverURI.resolve("/unmanaged/example/people").toString());
// Then
assertEquals(200, response.status());
List content = response.content();
assertEquals(2, content.size());
}
}
----
[source,text]
----
07:51:32.985 [main] WARN o.e.j.u.component.AbstractLifeCycle - FAILED o.e.j.s.ServletContextHandler@29eda4f8{/unmanaged,null,STARTING}: java.lang.NoSuchMethodError: com.sun.jersey.core.reflection.ReflectionHelper.getContextClassLoaderPA()Ljava/security/PrivilegedAction;
java.lang.NoSuchMethodError: com.sun.jersey.core.reflection.ReflectionHelper.getContextClassLoaderPA()Ljava/security/PrivilegedAction;
at com.sun.jersey.spi.scanning.AnnotationScannerListener.<init>(AnnotationScannerListener.java:94) ~[jersey-server-1.19.jar:1.19]
at com.sun.jersey.spi.scanning.PathProviderScannerListener.<init>(PathProviderScannerListener.java:59) ~[jersey-server-1.19.jar:1.19]
at com.sun.jersey.api.core.ScanningResourceConfig.init(ScanningResourceConfig.java:79) ~[jersey-server-1.19.jar:1.19]
at com.sun.jersey.api.core.PackagesResourceConfig.init(PackagesResourceConfig.java:104) ~[jersey-server-1.19.jar:1.19]
at com.sun.jersey.api.core.PackagesResourceConfig.<init>(PackagesResourceConfig.java:78) ~[jersey-server-1.19.jar:1.19]
at com.sun.jersey.api.core.PackagesResourceConfig.<init>(PackagesResourceConfig.java:89) ~[jersey-server-1.19.jar:1.19]
at com.sun.jersey.spi.container.servlet.WebComponent.createResourceConfig(WebComponent.java:696) ~[jersey-servlet-1.17.1.jar:1.17.1]
at com.sun.jersey.spi.container.servlet.WebComponent.createResourceConfig(WebComponent.java:674) ~[jersey-servlet-1.17.1.jar:1.17.1]
at com.sun.jersey.spi.container.servlet.WebComponent.init(WebComponent.java:203) ~[jersey-servlet-1.17.1.jar:1.17.1]
at com.sun.jersey.spi.container.servlet.ServletContainer.init(ServletContainer.java:374) ~[jersey-servlet-1.17.1.jar:1.17.1]
at com.sun.jersey.spi.container.servlet.ServletContainer.init(ServletContainer.java:557) ~[jersey-servlet-1.17.1.jar:1.17.1]
at javax.servlet.GenericServlet.init(GenericServlet.java:244) ~[javax.servlet-api-3.1.0.jar:3.1.0]
at org.eclipse.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:612) ~[jetty-servlet-9.2.4.v20141103.jar:9.2.4.v20141103]
at org.eclipse.jetty.servlet.ServletHolder.initialize(ServletHolder.java:395) ~[jetty-servlet-9.2.4.v20141103.jar:9.2.4.v20141103]
at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:871) ~[jetty-servlet-9.2.4.v20141103.jar:9.2.4.v20141103]
at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:298) ~[jetty-servlet-9.2.4.v20141103.jar:9.2.4.v20141103]
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:741) ~[jetty-server-9.2.4.v20141103.jar:9.2.4.v20141103]
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) [jetty-util-9.2.4.v20141103.jar:9.2.4.v20141103]
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132) [jetty-util-9.2.4.v20141103.jar:9.2.4.v20141103]
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114) [jetty-util-9.2.4.v20141103.jar:9.2.4.v20141103]
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61) [jetty-server-9.2.4.v20141103.jar:9.2.4.v20141103]
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) [jetty-util-9.2.4.v20141103.jar:9.2.4.v20141103]
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132) [jetty-util-9.2.4.v20141103.jar:9.2.4.v20141103]
at org.eclipse.jetty.server.Server.start(Server.java:387) [jetty-server-9.2.4.v20141103.jar:9.2.4.v20141103]
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114) [jetty-util-9.2.4.v20141103.jar:9.2.4.v20141103]
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61) [jetty-server-9.2.4.v20141103.jar:9.2.4.v20141103]
at org.eclipse.jetty.server.Server.doStart(Server.java:354) [jetty-server-9.2.4.v20141103.jar:9.2.4.v20141103]
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) [jetty-util-9.2.4.v20141103.jar:9.2.4.v20141103]
at org.neo4j.server.web.Jetty9WebServer.startJetty(Jetty9WebServer.java:381) [neo4j-server-2.2.3.jar:2.2.3]
at org.neo4j.server.web.Jetty9WebServer.start(Jetty9WebServer.java:184) [neo4j-server-2.2.3.jar:2.2.3]
at org.neo4j.server.AbstractNeoServer.startWebServer(AbstractNeoServer.java:474) [neo4j-server-2.2.3.jar:2.2.3]
at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:230) [neo4j-server-2.2.3.jar:2.2.3]
at org.neo4j.harness.internal.InProcessServerControls.start(InProcessServerControls.java:59) [neo4j-harness-2.2.3.jar:2.2.3]
at org.neo4j.harness.internal.InProcessServerBuilder.newServer(InProcessServerBuilder.java:72) [neo4j-harness-2.2.3.jar:2.2.3]
at org.neo4j.harness.junit.Neo4jRule$1.evaluate(Neo4jRule.java:64) [neo4j-harness-2.2.3.jar:2.2.3]
at org.junit.rules.RunRules.evaluate(RunRules.java:20) [junit-4.11.jar:na]
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271) [junit-4.11.jar:na]
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70) [junit-4.11.jar:na]
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50) [junit-4.11.jar:na]
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238) [junit-4.11.jar:na]
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63) [junit-4.11.jar:na]
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236) [junit-4.11.jar:na]
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53) [junit-4.11.jar:na]
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229) [junit-4.11.jar:na]
at org.junit.runners.ParentRunner.run(ParentRunner.java:309) [junit-4.11.jar:na]
at org.junit.runner.JUnitCore.run(JUnitCore.java:160) [junit-4.11.jar:na]
at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:78) [junit-rt.jar:na]
at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:212) [junit-rt.jar:na]
at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:68) [junit-rt.jar:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_51]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_51]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_51]
at java.lang.reflect.Method.invoke(Method.java:497) ~[na:1.8.0_51]
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:140) [idea_rt.jar:na]
07:51:32.991 [main] WARN o.e.j.u.component.AbstractLifeCycle - FAILED org.eclipse.jetty.server.handler.HandlerList@2b22a1cc[o.e.j.s.h.MovedContextHandler@5e671e20{/,null,AVAILABLE}, o.e.j.s.ServletContextHandler@29eda4f8{/unmanaged,null,STARTING}, o.e.j.s.ServletContextHandler@62573c86{/db/manage,null,null}, o.e.j.s.ServletContextHandler@2418ba04{/db/data,null,null}, o.e.j.w.WebAppContext@14229fa7{/browser,jar:file:/Users/markneedham/.m2/repository/org/neo4j/app/neo4j-browser/2.2.3/neo4j-browser-2.2.3.jar!/browser,null}, o.e.j.s.ServletContextHandler@2ab0702e{/,null,null}]: java.lang.NoSuchMethodError: com.sun.jersey.core.reflection.ReflectionHelper.getContextClassLoaderPA()Ljava/security/PrivilegedAction;
java.lang.NoSuchMethodError: com.sun.jersey.core.reflection.ReflectionHelper.getContextClassLoaderPA()Ljava/security/PrivilegedAction;
at com.sun.jersey.spi.scanning.AnnotationScannerListener.<init>(AnnotationScannerListener.java:94) ~[jersey-server-1.19.jar:1.19]
at com.sun.jersey.spi.scanning.PathProviderScannerListener.<init>(PathProviderScannerListener.java:59) ~[jersey-server-1.19.jar:1.19]
at com.sun.jersey.api.core.ScanningResourceConfig.init(ScanningResourceConfig.java:79) ~[jersey-server-1.19.jar:1.19]
at com.sun.jersey.api.core.PackagesResourceConfig.init(PackagesResourceConfig.java:104) ~[jersey-server-1.19.jar:1.19]
at com.sun.jersey.api.core.PackagesResourceConfig.<init>(PackagesResourceConfig.java:78) ~[jersey-server-1.19.jar:1.19]
at com.sun.jersey.api.core.PackagesResourceConfig.<init>(PackagesResourceConfig.java:89) ~[jersey-server-1.19.jar:1.19]
at com.sun.jersey.spi.container.servlet.WebComponent.createResourceConfig(WebComponent.java:696) ~[jersey-servlet-1.17.1.jar:1.17.1]
at com.sun.jersey.spi.container.servlet.WebComponent.createResourceConfig(WebComponent.java:674) ~[jersey-servlet-1.17.1.jar:1.17.1]
at com.sun.jersey.spi.container.servlet.WebComponent.init(WebComponent.java:203) ~[jersey-servlet-1.17.1.jar:1.17.1]
at com.sun.jersey.spi.container.servlet.ServletContainer.init(ServletContainer.java:374) ~[jersey-servlet-1.17.1.jar:1.17.1]
at com.sun.jersey.spi.container.servlet.ServletContainer.init(ServletContainer.java:557) ~[jersey-servlet-1.17.1.jar:1.17.1]
at javax.servlet.GenericServlet.init(GenericServlet.java:244) ~[javax.servlet-api-3.1.0.jar:3.1.0]
at org.eclipse.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:612) ~[jetty-servlet-9.2.4.v20141103.jar:9.2.4.v20141103]
at org.eclipse.jetty.servlet.ServletHolder.initialize(ServletHolder.java:395) ~[jetty-servlet-9.2.4.v20141103.jar:9.2.4.v20141103]
at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:871) ~[jetty-servlet-9.2.4.v20141103.jar:9.2.4.v20141103]
at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:298) ~[jetty-servlet-9.2.4.v20141103.jar:9.2.4.v20141103]
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:741) ~[jetty-server-9.2.4.v20141103.jar:9.2.4.v20141103]
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) [jetty-util-9.2.4.v20141103.jar:9.2.4.v20141103]
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132) [jetty-util-9.2.4.v20141103.jar:9.2.4.v20141103]
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114) [jetty-util-9.2.4.v20141103.jar:9.2.4.v20141103]
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61) [jetty-server-9.2.4.v20141103.jar:9.2.4.v20141103]
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) [jetty-util-9.2.4.v20141103.jar:9.2.4.v20141103]
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132) [jetty-util-9.2.4.v20141103.jar:9.2.4.v20141103]
at org.eclipse.jetty.server.Server.start(Server.java:387) [jetty-server-9.2.4.v20141103.jar:9.2.4.v20141103]
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114) [jetty-util-9.2.4.v20141103.jar:9.2.4.v20141103]
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61) [jetty-server-9.2.4.v20141103.jar:9.2.4.v20141103]
at org.eclipse.jetty.server.Server.doStart(Server.java:354) [jetty-server-9.2.4.v20141103.jar:9.2.4.v20141103]
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) [jetty-util-9.2.4.v20141103.jar:9.2.4.v20141103]
at org.neo4j.server.web.Jetty9WebServer.startJetty(Jetty9WebServer.java:381) [neo4j-server-2.2.3.jar:2.2.3]
at org.neo4j.server.web.Jetty9WebServer.start(Jetty9WebServer.java:184) [neo4j-server-2.2.3.jar:2.2.3]
at org.neo4j.server.AbstractNeoServer.startWebServer(AbstractNeoServer.java:474) [neo4j-server-2.2.3.jar:2.2.3]
at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:230) [neo4j-server-2.2.3.jar:2.2.3]
at org.neo4j.harness.internal.InProcessServerControls.start(InProcessServerControls.java:59) [neo4j-harness-2.2.3.jar:2.2.3]
at org.neo4j.harness.internal.InProcessServerBuilder.newServer(InProcessServerBuilder.java:72) [neo4j-harness-2.2.3.jar:2.2.3]
at org.neo4j.harness.junit.Neo4jRule$1.evaluate(Neo4jRule.java:64) [neo4j-harness-2.2.3.jar:2.2.3]
at org.junit.rules.RunRules.evaluate(RunRules.java:20) [junit-4.11.jar:na]
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271) [junit-4.11.jar:na]
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70) [junit-4.11.jar:na]
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50) [junit-4.11.jar:na]
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238) [junit-4.11.jar:na]
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63) [junit-4.11.jar:na]
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236) [junit-4.11.jar:na]
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53) [junit-4.11.jar:na]
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229) [junit-4.11.jar:na]
at org.junit.runners.ParentRunner.run(ParentRunner.java:309) [junit-4.11.jar:na]
at org.junit.runner.JUnitCore.run(JUnitCore.java:160) [junit-4.11.jar:na]
at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:78) [junit-rt.jar:na]
at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:212) [junit-rt.jar:na]
at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:68) [junit-rt.jar:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_51]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_51]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_51]
at java.lang.reflect.Method.invoke(Method.java:497) ~[na:1.8.0_51]
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:140) [idea_rt.jar:na]
07:51:33.013 [main] INFO o.e.jetty.server.ServerConnector - Started ServerConnector@19962194{HTTP/1.1}{localhost:7475}
07:51:33.014 [main] WARN o.e.j.u.component.AbstractLifeCycle - FAILED org.eclipse.jetty.server.Server@481e91b6: java.lang.NoSuchMethodError: com.sun.jersey.core.reflection.ReflectionHelper.getContextClassLoaderPA()Ljava/security/PrivilegedAction;
java.lang.NoSuchMethodError: com.sun.jersey.core.reflection.ReflectionHelper.getContextClassLoaderPA()Ljava/security/PrivilegedAction;
at com.sun.jersey.spi.scanning.AnnotationScannerListener.<init>(AnnotationScannerListener.java:94) ~[jersey-server-1.19.jar:1.19]
at com.sun.jersey.spi.scanning.PathProviderScannerListener.<init>(PathProviderScannerListener.java:59) ~[jersey-server-1.19.jar:1.19]
at com.sun.jersey.api.core.ScanningResourceConfig.init(ScanningResourceConfig.java:79) ~[jersey-server-1.19.jar:1.19]
at com.sun.jersey.api.core.PackagesResourceConfig.init(PackagesResourceConfig.java:104) ~[jersey-server-1.19.jar:1.19]
at com.sun.jersey.api.core.PackagesResourceConfig.<init>(PackagesResourceConfig.java:78) ~[jersey-server-1.19.jar:1.19]
at com.sun.jersey.api.core.PackagesResourceConfig.<init>(PackagesResourceConfig.java:89) ~[jersey-server-1.19.jar:1.19]
at com.sun.jersey.spi.container.servlet.WebComponent.createResourceConfig(WebComponent.java:696) ~[jersey-servlet-1.17.1.jar:1.17.1]
at com.sun.jersey.spi.container.servlet.WebComponent.createResourceConfig(WebComponent.java:674) ~[jersey-servlet-1.17.1.jar:1.17.1]
at com.sun.jersey.spi.container.servlet.WebComponent.init(WebComponent.java:203) ~[jersey-servlet-1.17.1.jar:1.17.1]
at com.sun.jersey.spi.container.servlet.ServletContainer.init(ServletContainer.java:374) ~[jersey-servlet-1.17.1.jar:1.17.1]
at com.sun.jersey.spi.container.servlet.ServletContainer.init(ServletContainer.java:557) ~[jersey-servlet-1.17.1.jar:1.17.1]
at javax.servlet.GenericServlet.init(GenericServlet.java:244) ~[javax.servlet-api-3.1.0.jar:3.1.0]
at org.eclipse.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:612) ~[jetty-servlet-9.2.4.v20141103.jar:9.2.4.v20141103]
at org.eclipse.jetty.servlet.ServletHolder.initialize(ServletHolder.java:395) ~[jetty-servlet-9.2.4.v20141103.jar:9.2.4.v20141103]
at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:871) ~[jetty-servlet-9.2.4.v20141103.jar:9.2.4.v20141103]
at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:298) ~[jetty-servlet-9.2.4.v20141103.jar:9.2.4.v20141103]
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:741) ~[jetty-server-9.2.4.v20141103.jar:9.2.4.v20141103]
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) ~[jetty-util-9.2.4.v20141103.jar:9.2.4.v20141103]
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132) ~[jetty-util-9.2.4.v20141103.jar:9.2.4.v20141103]
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114) ~[jetty-util-9.2.4.v20141103.jar:9.2.4.v20141103]
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61) ~[jetty-server-9.2.4.v20141103.jar:9.2.4.v20141103]
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) ~[jetty-util-9.2.4.v20141103.jar:9.2.4.v20141103]
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132) ~[jetty-util-9.2.4.v20141103.jar:9.2.4.v20141103]
at org.eclipse.jetty.server.Server.start(Server.java:387) ~[jetty-server-9.2.4.v20141103.jar:9.2.4.v20141103]
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114) ~[jetty-util-9.2.4.v20141103.jar:9.2.4.v20141103]
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61) ~[jetty-server-9.2.4.v20141103.jar:9.2.4.v20141103]
at org.eclipse.jetty.server.Server.doStart(Server.java:354) ~[jetty-server-9.2.4.v20141103.jar:9.2.4.v20141103]
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) ~[jetty-util-9.2.4.v20141103.jar:9.2.4.v20141103]
at org.neo4j.server.web.Jetty9WebServer.startJetty(Jetty9WebServer.java:381) [neo4j-server-2.2.3.jar:2.2.3]
at org.neo4j.server.web.Jetty9WebServer.start(Jetty9WebServer.java:184) [neo4j-server-2.2.3.jar:2.2.3]
at org.neo4j.server.AbstractNeoServer.startWebServer(AbstractNeoServer.java:474) [neo4j-server-2.2.3.jar:2.2.3]
at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:230) [neo4j-server-2.2.3.jar:2.2.3]
at org.neo4j.harness.internal.InProcessServerControls.start(InProcessServerControls.java:59) [neo4j-harness-2.2.3.jar:2.2.3]
at org.neo4j.harness.internal.InProcessServerBuilder.newServer(InProcessServerBuilder.java:72) [neo4j-harness-2.2.3.jar:2.2.3]
at org.neo4j.harness.junit.Neo4jRule$1.evaluate(Neo4jRule.java:64) [neo4j-harness-2.2.3.jar:2.2.3]
at org.junit.rules.RunRules.evaluate(RunRules.java:20) [junit-4.11.jar:na]
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271) [junit-4.11.jar:na]
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70) [junit-4.11.jar:na]
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50) [junit-4.11.jar:na]
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238) [junit-4.11.jar:na]
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63) [junit-4.11.jar:na]
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236) [junit-4.11.jar:na]
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53) [junit-4.11.jar:na]
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229) [junit-4.11.jar:na]
at org.junit.runners.ParentRunner.run(ParentRunner.java:309) [junit-4.11.jar:na]
at org.junit.runner.JUnitCore.run(JUnitCore.java:160) [junit-4.11.jar:na]
at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:78) [junit-rt.jar:na]
at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:212) [junit-rt.jar:na]
at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:68) [junit-rt.jar:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_51]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_51]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_51]
at java.lang.reflect.Method.invoke(Method.java:497) ~[na:1.8.0_51]
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:140) [idea_rt.jar:na]
org.neo4j.server.ServerStartupException: Starting Neo4j Server failed: com.sun.jersey.core.reflection.ReflectionHelper.getContextClassLoaderPA()Ljava/security/PrivilegedAction;
at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:258)
at org.neo4j.harness.internal.InProcessServerControls.start(InProcessServerControls.java:59)
at org.neo4j.harness.internal.InProcessServerBuilder.newServer(InProcessServerBuilder.java:72)
at org.neo4j.harness.junit.Neo4jRule$1.evaluate(Neo4jRule.java:64)
at org.junit.rules.RunRules.evaluate(RunRules.java:20)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
at org.junit.runner.JUnitCore.run(JUnitCore.java:160)
at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:78)
at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:212)
at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:68)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:140)
Caused by: java.lang.NoSuchMethodError: com.sun.jersey.core.reflection.ReflectionHelper.getContextClassLoaderPA()Ljava/security/PrivilegedAction;
at com.sun.jersey.spi.scanning.AnnotationScannerListener.<init>(AnnotationScannerListener.java:94)
at com.sun.jersey.spi.scanning.PathProviderScannerListener.<init>(PathProviderScannerListener.java:59)
at com.sun.jersey.api.core.ScanningResourceConfig.init(ScanningResourceConfig.java:79)
at com.sun.jersey.api.core.PackagesResourceConfig.init(PackagesResourceConfig.java:104)
at com.sun.jersey.api.core.PackagesResourceConfig.<init>(PackagesResourceConfig.java:78)
at com.sun.jersey.api.core.PackagesResourceConfig.<init>(PackagesResourceConfig.java:89)
at com.sun.jersey.spi.container.servlet.WebComponent.createResourceConfig(WebComponent.java:696)
at com.sun.jersey.spi.container.servlet.WebComponent.createResourceConfig(WebComponent.java:674)
at com.sun.jersey.spi.container.servlet.WebComponent.init(WebComponent.java:203)
at com.sun.jersey.spi.container.servlet.ServletContainer.init(ServletContainer.java:374)
at com.sun.jersey.spi.container.servlet.ServletContainer.init(ServletContainer.java:557)
at javax.servlet.GenericServlet.init(GenericServlet.java:244)
at org.eclipse.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:612)
at org.eclipse.jetty.servlet.ServletHolder.initialize(ServletHolder.java:395)
at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:871)
at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:298)
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:741)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
at org.eclipse.jetty.server.Server.start(Server.java:387)
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)
at org.eclipse.jetty.server.Server.doStart(Server.java:354)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.neo4j.server.web.Jetty9WebServer.startJetty(Jetty9WebServer.java:381)
at org.neo4j.server.web.Jetty9WebServer.start(Jetty9WebServer.java:184)
at org.neo4j.server.AbstractNeoServer.startWebServer(AbstractNeoServer.java:474)
at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:230)
... 22 more
----
I was a bit baffled at first but if we look closely about 5 - 10 lines down the stack trace we can see the mistake I've made:
[source,text]
----
at com.sun.jersey.api.core.PackagesResourceConfig.(PackagesResourceConfig.java:89) ~[jersey-server-1.19.jar:1.19]
at com.sun.jersey.spi.container.servlet.WebComponent.createResourceConfig(WebComponent.java:696) ~[jersey-servlet-1.17.1.jar:1.17.1]
at com.sun.jersey.spi.container.servlet.WebComponent.createResourceConfig(WebComponent.java:674) ~[jersey-servlet-1.17.1.jar:1.17.1]
----
We have different versions of the Jersey libraries. Since we're writing the extension for Neo4j 2.2.3 we can quickly check which version it depends on:
[source,bash]
----
$ ls -alh neo4j-community-2.2.3/system/lib/ | grep jersey
-rwxr-xr-x@ 1 markneedham staff 426K 22 Jun 04:57 jersey-core-1.19.jar
-rwxr-xr-x@ 1 markneedham staff 52K 22 Jun 05:02 jersey-multipart-1.19.jar
-rwxr-xr-x@ 1 markneedham staff 686K 22 Jun 05:02 jersey-server-1.19.jar
-rwxr-xr-x@ 1 markneedham staff 126K 22 Jun 05:02 jersey-servlet-1.19.jar
----
So we should't have 1.17.1 in our project and it was easy enough to find my mistake by looking in the pom file:
[source,xml]
----
<properties>
...
<jersey.version>1.17.1</jersey.version>
...
</properties>
<dependencies>
...
<dependency>
<groupId>com.sun.jersey</groupId>
<artifactId>jersey-servlet</artifactId>
<version>${jersey.version}</version>
</dependency>
...
</dependencies>
----
Also easy enough to fix!
[source,xml]
----
<properties>
...
<jersey.version>1.19</jersey.version>
...
</properties>
----
You can see https://github.com/mneedham/dummy-unmanaged-extension/blob/master/src/test/java/org/neo4j/unmanaged/ExampleResourceTest.java[an example of this working on github]. | null | null | [
0.003957429900765419,
-0.06698872894048691,
-0.03378308191895485,
0.022545261308550835,
0.09012999385595322,
-0.04149856045842171,
0.05141523480415344,
0.016349155455827713,
0.0027908775955438614,
-0.02037384919822216,
-0.015337659977376461,
0.01766248233616352,
-0.06957124918699265,
0.021974431350827217,
-0.0032965666614472866,
0.03905481472611427,
0.07412390410900116,
0.010554947890341282,
0.01807510294020176,
-0.03606618568301201,
0.00969001092016697,
0.025191737338900566,
0.006697802804410458,
0.02296368032693863,
0.025937359780073166,
0.028557533398270607,
0.023280037567019463,
-0.0007200170075520873,
-0.058843355625867844,
0.01250329241156578,
0.04103808477520943,
0.0109341349452734,
0.030494047328829765,
-0.01405737642198801,
0.018722398206591606,
-0.0032397459726780653,
-0.02480759285390377,
0.011661005206406116,
-0.003044859739020467,
0.0020393559243530035,
-0.0629018023610115,
0.014367816038429737,
-0.012102169916033745,
0.018029306083917618,
-0.036654967814683914,
0.004301232285797596,
-0.022698046639561653,
0.024225661531090736,
0.022074071690440178,
-0.0012002014555037022,
-0.0895935520529747,
0.011980261653661728,
-0.05503231659531593,
0.018778854981064796,
0.020773760974407196,
0.04359828308224678,
0.026986420154571533,
-0.08021926879882812,
0.05192452296614647,
-0.04244090989232063,
-0.008921805769205093,
-0.019947243854403496,
0.00498430710285902,
0.015024458989501,
-0.00021315777848940343,
-0.018403852358460426,
-0.0019917115569114685,
0.06886385381221771,
-0.06601644307374954,
-0.01490981038659811,
0.019757818430662155,
-0.005555287003517151,
-0.021710148081183434,
-0.00020153183140791953,
0.034418102353811264,
-0.066276416182518,
-0.01065110694617033,
0.054882362484931946,
0.012277631089091301,
0.056631170213222504,
-0.02829056605696678,
-0.014955740422010422,
0.03867420181632042,
-0.008259875699877739,
0.0014259886229410768,
-0.06133955717086792,
-0.028832536190748215,
-0.0025607822462916374,
-0.03359483554959297,
0.06309834122657776,
0.037340886890888214,
-0.022593040019273758,
0.0108789699152112,
0.010822014883160591,
-0.023782800883054733,
0.0372309572994709,
0.0014898671070113778,
0.00747696403414011,
0.03524569422006607,
-0.0008673158590681851,
-0.02075379528105259,
0.006995662115514278,
-0.010281762108206749,
0.010089783929288387,
-0.07250620424747467,
-0.018245304003357887,
-0.017700906842947006,
-0.03609481826424599,
-0.028442146256566048,
-0.00899073202162981,
-0.05178050324320793,
0.027030285447835922,
-0.025197051465511322,
0.017974020913243294,
-0.08062341809272766,
0.08933667838573456,
0.01271151378750801,
-0.024707535281777382,
0.0018809022149071097,
0.028709188103675842,
0.03810539469122887,
0.020328760147094727,
-0.018449274823069572,
0.07834149897098541,
-0.01320577971637249,
0.05305980518460274,
-0.009543626569211483,
0.04225191846489906,
-0.009541411884129047,
-0.06901644915342331,
-0.029540719464421272,
0.06401068717241287,
0.010653899982571602,
0.036143697798252106,
0.0066605922766029835,
-0.00244682258926332,
0.007340861018747091,
0.0016733227530494332,
0.06115157529711723,
0.026766695082187653,
-0.024766765534877777,
-0.03615006431937218,
0.031115952879190445,
-0.0013076389441266656,
0.04442748799920082,
0.016235103830695152,
-0.014870667830109596,
-0.04430832713842392,
-0.03801577910780907,
0.04656066745519638,
0.007381157483905554,
0.03180362656712532,
0.05129929631948471,
-0.0019088409608229995,
0.006127455271780491,
0.09950502961874008,
0.015324123203754425,
-0.004525977186858654,
-0.016463203355669975,
0.05219259113073349,
0.046358898282051086,
0.02959662303328514,
0.007006689440459013,
0.05878336727619171,
0.01437976211309433,
0.004601092077791691,
-0.020238801836967468,
0.05272102355957031,
0.01915818080306053,
-0.006112977862358093,
-0.0510750450193882,
-0.10580740869045258,
0.04591570794582367,
-0.059086013585329056,
-0.013660937547683716,
0.03439752012491226,
0.06560854613780975,
-0.013404862023890018,
0.01892567239701748,
0.017021551728248596,
-0.06667912006378174,
0.04967997968196869,
0.04242652654647827,
0.0005907335435040295,
-0.0032948500011116266,
0.008214447647333145,
0.04525851458311081,
0.029744815081357956,
0.016955388709902763,
0.04557790979743004,
-0.0956714004278183,
-0.09731688350439072,
0.0057943291030824184,
-0.009917357936501503,
0.057688307017087936,
-0.014613492414355278,
-0.011060239747166634,
0.04951290786266327,
0.002367760054767132,
0.0065596820786595345,
0.026314757764339447,
-0.018700651824474335,
0.01994757167994976,
-0.039540622383356094,
-0.04248839616775513,
0.07794061303138733,
0.023078570142388344,
-0.06715001910924911,
-0.05341304466128349,
0.007892720401287079,
-0.013800177723169327,
0.011738784611225128,
0.027133705094456673,
-0.020709283649921417,
0.04255109280347824,
0.02569323591887951,
0.0339762344956398,
-0.014586378820240498,
0.0618412084877491,
-0.03937704488635063,
0.04802259802818298,
-0.002321769716218114,
-0.01703845150768757,
-0.002063645049929619,
-0.006175519432872534,
0.10154597461223602,
0.04478565976023674,
-0.03294650465250015,
-0.05311888828873634,
0.03694368526339531,
0.029461223632097244,
-0.042311523109674454,
0.012724239379167557,
-0.009573424234986305,
0.013095000758767128,
-0.004603219218552113,
-0.009534350596368313,
-0.024610688909888268,
0.020523661747574806,
-0.0330297090113163,
0.02340504713356495,
0.07277888059616089,
-0.06422261893749237,
0.05355554819107056,
0.030356600880622864,
-0.0143454410135746,
0.002926246728748083,
-0.050327565521001816,
-0.04867023974657059,
0.027230078354477882,
0.04824972525238991,
-0.026042520999908447,
0.0814230814576149,
-0.01854073256254196,
-0.03526046872138977,
-0.04611903056502342,
-0.040548283606767654,
0.0314553864300251,
0.04966495558619499,
0.04745425656437874,
-0.0034912393894046545,
0.02772376872599125,
-0.06552258133888245,
-0.009878254495561123,
-0.00980350747704506,
-0.03727295249700546,
-0.026779795065522194,
-0.010760544799268246,
0.017831899225711823,
-0.0032984944991767406,
0.0006505234632641077,
-0.017364969477057457,
0.02973232790827751,
0.014119863510131836,
0.006160138640552759,
-0.013012250885367393,
0.03003861755132675,
0.01175581943243742,
-0.01859412156045437,
-0.0362403579056263,
-0.03386278077960014,
0.03645534813404083,
-0.0519220232963562,
-0.04922449588775635,
0.013446072116494179,
-0.08279268443584442,
0.054333847016096115,
-0.04040726646780968,
-0.054398901760578156,
0.014552962966263294,
0.04878035932779312,
0.04756733775138855,
0.004551766440272331,
0.019484061747789383,
0.07429540902376175,
-0.023603221401572227,
0.015756016597151756,
0.029855472967028618,
-0.010076496750116348,
0.04659508913755417,
-0.027384810149669647,
0.030517296865582466,
-0.006411081179976463,
-0.01825925149023533,
0.01317630335688591,
-0.03651992976665497,
0.013051949441432953,
-0.03256440907716751,
-0.2713750898838043,
0.06033727154135704,
0.00001958044413186144,
-0.026905212551355362,
0.023126577958464622,
-0.024022629484534264,
-0.007049466948956251,
-0.027179520577192307,
-0.017788056284189224,
0.02025241032242775,
-0.011812322773039341,
-0.013967333361506462,
0.017241064459085464,
0.03626019507646561,
-0.0016336493426933885,
0.01173586118966341,
0.009565907530486584,
-0.050909169018268585,
0.02274496667087078,
0.029237927868962288,
-0.013885565102100372,
-0.0481795072555542,
0.028391219675540924,
0.016256308183073997,
0.018773086369037628,
0.04855356365442276,
-0.08206307142972946,
0.05743587389588356,
-0.03177936375141144,
-0.0280827097594738,
0.02149280719459057,
-0.03514605388045311,
-0.008644827641546726,
0.004720014985650778,
-0.03674891218543053,
-0.00017074844799935818,
0.013843104243278503,
-0.0031653759069740772,
-0.028381865471601486,
0.01525622233748436,
-0.03866145387291908,
-0.09142334014177322,
-0.034898072481155396,
-0.0010376651771366596,
0.05903809890151024,
-0.015039050951600075,
-0.08486364781856537,
-0.03175053372979164,
-0.005976224318146706,
0.08335243165493011,
-0.02741047367453575,
-0.01930527202785015,
0.00680114421993494,
0.02608495019376278,
-0.01967734657227993,
-0.040969617664813995,
-0.005506045185029507,
0.010352841578423977,
-0.05583773925900459,
-0.029826568439602852,
-0.023347467184066772,
-0.04612256959080696,
-0.003802365157753229,
-0.05476529896259308,
-0.033771537244319916,
-0.0660652443766594,
-0.056886933743953705,
-0.029812436550855637,
0.04376765340566635,
-0.0007232898497022688,
-0.004799763206392527,
0.017234185710549355,
0.0037906267680227757,
-0.10090704262256622,
-0.03731723502278328,
-0.06179698184132576,
-0.03720756247639656,
-0.02995091676712036,
-0.02120850421488285,
0.054314956068992615,
-0.048780493438243866,
-0.028301546350121498,
0.0001732312812237069,
0.015202708542346954,
0.030074765905737877,
0.011910611763596535,
0.026081474497914314,
-0.032826896756887436,
-0.022857094183564186,
0.026948442682623863,
0.05203724279999733,
-0.0203729048371315,
-0.0344870500266552,
-0.009442036040127277,
0.008140853606164455,
0.03737139701843262,
-0.00968233123421669,
0.008768409490585327,
0.012494711205363274,
0.051681023091077805,
0.041807666420936584,
-0.04842669516801834,
0.015256913378834724,
0.0034876016434282064,
-0.014251082204282284,
-0.013419033959507942,
-0.059001971036195755,
0.028917234390974045,
0.02977760322391987,
0.02640140987932682,
0.014296152628958225,
-0.01476091705262661,
0.00286677828989923,
-0.040623392909765244,
-0.05453891307115555,
0.0011281060287728906,
0.01442953571677208,
0.017970919609069824,
0.06057557463645935,
-0.030465805903077126,
-0.048882726579904556,
0.01152159832417965,
0.04239922761917114,
-0.0014148992486298084,
-0.03567751869559288,
-0.048183031380176544,
-0.03436822444200516,
-0.024237025529146194,
0.011260692030191422,
-0.003992341458797455,
-0.01663106493651867,
0.028015978634357452,
0.03131921961903572,
0.0007401187904179096,
0.02527718059718609,
-0.021692465990781784,
-0.03205423429608345,
-0.03676803037524223,
0.023440955206751823,
-0.004269808065146208,
-0.034912317991256714,
-0.004637382458895445,
-0.018967922776937485,
0.048858802765607834,
0.057047322392463684,
-0.004851237870752811,
0.040202993899583817,
0.005924139637500048,
0.012749524787068367,
0.013441862538456917,
0.015155859291553497,
-0.043599311262369156,
0.022617828100919724,
-0.02794361300766468,
-0.02711588703095913,
-0.010426892898976803,
0.04495503753423691,
-0.026733266189694405,
-0.026310790330171585,
-0.026390722021460533,
0.010764408856630325,
-0.0901862233877182,
0.015353829599916935,
-0.014936476945877075,
-0.020869890227913857,
0.046231094747781754,
0.006581966765224934,
0.023497994989156723,
-0.03634032607078552,
-0.030951209366321564,
0.008599072694778442,
0.0010222173295915127,
-0.015135801397264004,
0.014274988323450089,
0.0042410073801875114,
0.03001389279961586,
0.0034382191952317953,
0.030270788818597794,
0.04404149204492569,
0.03992387279868126,
-0.005254799500107765,
-0.016032492741942406,
0.03420198708772659,
-0.00727784214541316,
0.03705594688653946,
0.007337105460464954,
-0.01562445517629385,
0.00433286651968956,
-0.004813503939658403,
-0.02105272188782692,
-0.007850944064557552,
0.012013637460768223,
-0.018355056643486023,
0.03718450665473938,
-0.023471634835004807,
-0.07242266088724136,
0.022248229011893272,
-0.028538202866911888,
0.03161948546767235,
0.02689921297132969,
0.010212785564363003,
0.003117674496024847,
-0.040496230125427246,
0.04570809379220009,
0.047416191548109055,
-0.060823243111371994,
-0.018120571970939636,
-0.012278075329959393,
-0.0035889323335140944,
0.0106483343988657,
-0.014150306582450867,
-0.08236377686262131,
-0.012877250090241432,
-0.014161570928990841,
0.006909381132572889,
-0.02839580364525318,
-0.08245731145143509,
-0.0012851111823692918,
-0.0003911581006832421,
-0.011481719091534615,
0.01372224185615778,
0.025455130264163017,
0.005432702135294676,
-0.023732542991638184,
-0.010392189025878906,
0.02306007780134678,
-0.029628891497850418,
-0.0042907181195914745,
-0.004275098908692598,
-0.02467823587357998,
0.024955786764621735,
-0.020100614055991173,
0.05577188730239868,
-0.0010854796273633838,
0.013054361566901207,
-0.01801840402185917,
-0.04290822893381119,
0.007971309125423431,
0.019005730748176575,
0.0550566092133522,
0.007393964566290379,
-0.000015192948012554552,
-0.04193756356835365,
-0.005127343814820051,
-0.03725390508770943,
0.02154046855866909,
0.027589263394474983,
0.0041348617523908615,
0.031517572700977325,
0.035535767674446106,
0.019356058910489082,
0.04067574068903923,
-0.010338090360164642,
0.000024116552594932728,
0.082520991563797,
-0.05071568116545677,
-0.026725035160779953,
-0.006020338274538517,
-0.06544756889343262,
-0.004082739818841219,
0.05078902095556259,
0.027270272374153137,
-0.016474949195981026,
0.05322067439556122,
0.05207226425409317,
0.0004884134395979345,
0.007967248558998108,
-0.029301615431904793,
0.028268616646528244,
-0.060321830213069916,
-0.037318985909223557,
-0.07935016602277756,
-0.010084538720548153,
0.06185021623969078,
-0.0001857039169408381,
0.03298795223236084,
-0.02687784656882286,
-0.026945406571030617,
-0.006353257689625025,
-0.030577441677451134,
-0.02918105199933052,
0.027174757793545723,
-0.039085086435079575,
0.022734373807907104,
0.010107272304594517,
-0.05273928865790367,
0.025919858366250992,
0.027363702654838562,
-0.03454064950346947,
-0.03771481662988663,
-0.03766416758298874,
0.0315140001475811,
0.016099663451313972,
0.02086496911942959,
-0.040968507528305054,
-0.012303570285439491,
0.07153289020061493,
0.006144699174910784,
0.038339994847774506,
0.052373286336660385,
-0.022504860535264015,
0.029021907597780228,
0.055135566741228104,
-0.008482696488499641,
0.010814141482114792,
0.02565242350101471,
-0.036214932799339294,
-0.059286199510097504,
0.026100149378180504,
0.012827103026211262,
-0.037000659853219986,
-0.04419499263167381,
0.04149235412478447,
-0.001877308590337634,
-0.031075824052095413,
-0.02454633079469204,
0.0030040766578167677,
-0.02791699953377247,
-0.02369617484509945,
-0.06595931202173233,
0.022312678396701813,
-0.03293585404753685,
0.056520551443099976,
-0.013635290786623955,
0.017642004415392876,
0.0645943358540535,
-0.03127528354525566,
-0.005378385540097952,
0.010714014060795307,
0.0664227157831192,
0.057864945381879807,
-0.011196982115507126,
0.010298567824065685,
0.06882632523775101,
-0.00798108708113432,
-0.04107384756207466,
0.0011358980555087328,
-0.03668573871254921,
-0.029712645336985588,
0.00875717494636774,
0.011572238989174366,
0.06586776673793793,
-0.005296557676047087,
0.062048763036727905,
-0.03012770228087902,
0.004510446451604366,
-0.0009199577034451067,
-0.0025377548299729824,
0.045992907136678696,
0.014150823466479778,
0.01839740388095379,
0.03936338797211647,
-0.024033935740590096,
-0.0282963328063488,
0.003844172926619649,
0.0007368566002696753,
-0.023670759052038193,
0.021288493648171425,
-0.015294148586690426,
-0.012760703451931477,
0.020271990448236465,
0.017388731241226196,
0.0693754330277443,
-0.00646953983232379,
0.007971139624714851,
0.008774342015385628,
0.013478913344442844,
0.0037875084672123194,
-0.00463103549554944,
-0.012878496199846268,
-0.020342735573649406,
-0.024943778291344643,
-0.022726988419890404,
0.007591137662529945,
-0.022028660401701927,
-0.05688938871026039,
0.01696166768670082,
-0.012224560603499413,
0.0072908587753772736,
-0.0011508725583553314,
-0.01759813167154789,
-0.012313340790569782,
-0.0462573766708374,
-0.04743892326951027,
-0.025439996272325516,
-0.06463822722434998,
0.004288197495043278,
0.003067829180508852,
-0.0074865310452878475,
-0.020718084648251534,
0.0059538171626627445,
-0.026860957965254784,
-0.010102192871272564,
0.06202730908989906,
-0.03702699765563011,
0.015217850916087627,
0.010946239344775677,
0.0058387937024235725,
0.03249703347682953,
0.033442433923482895,
0.05810216814279556,
0.015408804640173912,
0.01864035055041313,
-0.01862208917737007,
-0.019764771685004234,
0.04657817631959915,
0.002771139843389392,
0.007980043068528175,
-0.07811922580003738,
-0.00001858018003986217,
0.0201436597853899,
0.015540260821580887,
-0.05162470042705536,
0.012243684381246567,
0.044735901057720184,
-0.015988754108548164,
0.05116138607263565,
0.004659254569560289,
-0.01580975577235222,
-0.009759980253875256,
-0.006811153143644333,
0.012657826766371727,
-0.006899671163409948,
0.015706485137343407,
-0.027351675555109978,
0.08451761305332184,
0.05654631182551384,
-0.035893991589546204,
-0.006286249030381441,
0.012929894030094147,
0.008164933882653713,
0.00308399205096066,
-0.05248771980404854,
-0.012285033240914345,
-0.06604786217212677,
-0.07545029371976852,
0.0021995538845658302,
0.009019391611218452,
-0.04016532748937607,
-0.014114976860582829,
-0.012326324358582497,
0.026750700548291206,
-0.0289610568434,
0.021294761449098587,
-0.03310495615005493,
0.04011175036430359,
-0.0338079035282135,
-0.028852295130491257,
0.008336958475410938,
-0.009855777025222778,
-0.003197030397132039,
-0.0006249949219636619,
0.046338457614183426,
-0.044580962508916855,
-0.008483944460749626,
-0.025141296908259392,
0.02902255207300186,
0.04685558006167412,
0.0010096513433381915,
-0.0052134632132947445
] | [
-0.08362601697444916,
-0.005763240158557892,
-0.02608262561261654,
-0.01636475883424282,
0.03984827175736427,
-0.05759386718273163,
0.014786727726459503,
0.030113786458969116,
0.004271830432116985,
-0.026188354939222336,
0.04807835817337036,
-0.02336852066218853,
-0.024968061596155167,
0.01264101266860962,
0.08887127786874771,
-0.010377481579780579,
-0.062065791338682175,
0.0006085453205741942,
-0.0019247729796916246,
0.06284839659929276,
0.0038198516704142094,
-0.007105114404112101,
-0.0061085280030965805,
-0.0202922523021698,
0.0037556171882897615,
0.045783963054418564,
0.04072725400328636,
-0.006995052564889193,
-0.021651918068528175,
-0.20298632979393005,
-0.013824090361595154,
-0.024678530171513557,
-0.007460759487003088,
-0.014069739729166031,
0.047828201204538345,
0.04564580321311951,
0.01323611754924059,
-0.03981691226363182,
0.022039903327822685,
0.016219334676861763,
0.00941488891839981,
0.027471158653497696,
-0.055028267204761505,
-0.00620629359036684,
0.04668084532022476,
-0.01056379172950983,
-0.005885286256670952,
-0.03356987237930298,
-0.03831153362989426,
-0.023178458213806152,
-0.02234065905213356,
0.011738653294742107,
0.010721283033490181,
-0.015988174825906754,
0.009038927964866161,
-0.002395912306383252,
0.06495769321918488,
0.07557947188615799,
0.03522549197077751,
0.0724727138876915,
-0.0006105108186602592,
-0.01406894065439701,
-0.1432444006204605,
0.06642847508192062,
0.0022053641732782125,
0.04043876379728317,
-0.05501485988497734,
0.017416754737496376,
-0.011492094025015831,
0.0833607167005539,
0.047725096344947815,
0.0015998671296983957,
-0.025810986757278442,
0.0901491641998291,
-0.03921184688806534,
0.040499087423086166,
-0.015066009946167469,
0.015655480325222015,
0.045984797179698944,
-0.02651684731245041,
-0.0694289356470108,
-0.022991178557276726,
-0.018237315118312836,
-0.00798692088574171,
-0.010738994926214218,
0.06417208909988403,
-0.04372279718518257,
0.05100882053375244,
0.03018598072230816,
0.05781589820981026,
0.027035335078835487,
0.02717374637722969,
0.07315018773078918,
0.005960114300251007,
-0.09031824767589569,
-0.008496854454278946,
-0.014434972777962685,
-0.0208462942391634,
-0.03107064589858055,
0.3925741910934448,
-0.007741402368992567,
-0.013062027283012867,
-0.005956301931291819,
0.04750097170472145,
0.00016921543283388019,
-0.0048539526760578156,
0.0006163765210658312,
-0.06190671771764755,
0.01162027008831501,
-0.022109365090727806,
0.012149701826274395,
-0.028322145342826843,
0.036975204944610596,
-0.10346964746713638,
-0.0029777884483337402,
0.023010514676570892,
0.05339835211634636,
-0.015370880253612995,
-0.06481694430112839,
0.024312974885106087,
-0.029716702178120613,
-0.020515909418463707,
0.06016669049859047,
-0.0006591723067685962,
0.05072631314396858,
0.0360814705491066,
-0.0007118302746675909,
0.033123116940259933,
0.0285037849098444,
0.01949690282344818,
0.0398862287402153,
-0.025196325033903122,
-0.07092635333538055,
0.0087157366797328,
0.002382976934313774,
0.025260936468839645,
0.03501983359456062,
-0.02495226263999939,
-0.01225923839956522,
0.030252356082201004,
-0.020878907293081284,
-0.05328931659460068,
-0.0018530582310631871,
-0.01042934786528349,
-0.046222370117902756,
0.08015359938144684,
-0.023410074412822723,
0.010477093048393726,
-0.02864709496498108,
-0.027220197021961212,
-0.0027673267759382725,
0.04001045972108841,
-0.018714599311351776,
-0.06268955767154694,
-0.007531988900154829,
0.004964958876371384,
0.03806085139513016,
0.004115665797144175,
-0.07999096065759659,
0.025830881670117378,
-0.00034699655952863395,
-0.03891395032405853,
-0.029108164831995964,
0.07993340492248535,
0.031281664967536926,
-0.08222871273756027,
-0.01927170716226101,
0.0343402735888958,
0.022050486877560616,
-0.07300139218568802,
-0.002561931498348713,
-0.004700631368905306,
-0.05018400773406029,
-0.04397603124380112,
0.04403800144791603,
-0.03495665267109871,
-0.0020472309552133083,
-0.0088576665148139,
0.01839573308825493,
0.028800219297409058,
0.023335127159953117,
0.0033309890422970057,
-0.04640277475118637,
0.017099957913160324,
-0.039121802896261215,
-0.06107769533991814,
-0.07998775690793991,
0.012186795473098755,
-0.04245109111070633,
-0.03066170960664749,
-0.0873788595199585,
0.0026047208812087774,
-0.07937952876091003,
0.06946215033531189,
-0.025576982647180557,
-0.01825862005352974,
-0.0037028491497039795,
-0.004099608398973942,
-0.0006064786575734615,
-0.031602345407009125,
0.08408910036087036,
0.0619749017059803,
0.01849575899541378,
0.02696962095797062,
-0.06812145560979843,
0.03809327259659767,
0.059185344725847244,
-0.04878460615873337,
0.06439309567213058,
0.042730897665023804,
-0.06313981860876083,
0.008634350262582302,
-0.008317739702761173,
0.040625929832458496,
0.012379148975014687,
-0.01632121205329895,
0.012462145648896694,
-0.0026184392627328634,
0.023251192644238472,
0.03872285038232803,
-0.033585209399461746,
0.015982767567038536,
-0.02697320468723774,
-0.35243329405784607,
-0.04583531245589256,
-0.027564769610762596,
-0.023649539798498154,
-0.01586921699345112,
0.0021977878641337156,
0.03079294040799141,
-0.01974320225417614,
-0.0036438170354813337,
-0.007385582663118839,
0.07595382630825043,
-0.020015068352222443,
0.0130158057436347,
-0.06696400046348572,
0.026888804510235786,
0.030585303902626038,
-0.007676867302507162,
-0.005915824789553881,
-0.0012808360625058413,
0.025380462408065796,
0.004809328820556402,
-0.04881907254457474,
0.01959906332194805,
-0.048326097428798676,
-0.00041422279900871217,
-0.02529876120388508,
0.08085279911756516,
0.007118620909750462,
0.039007965475320816,
-0.050349391996860504,
0.04870368540287018,
0.014128904789686203,
-0.006428421940654516,
-0.11841411888599396,
0.0012598864268511534,
-0.032386742532253265,
-0.020442401990294456,
0.026719510555267334,
0.023190170526504517,
-0.00366340484470129,
-0.020847821608185768,
-0.0077897487208247185,
-0.03929484263062477,
-0.054996781051158905,
0.012638773769140244,
-0.009959714487195015,
-0.030719811096787453,
-0.00843121763318777,
0.012289837934076786,
0.059350255876779556,
-0.025797344744205475,
-0.016362952068448067,
0.009046729654073715,
0.06027363985776901,
0.020613087341189384,
-0.01954723708331585,
-0.08735710382461548,
-0.03626609221100807,
0.05894041061401367,
0.02873169630765915,
0.02377777360379696,
0.058768380433321,
0.030807627364993095,
-0.0705840066075325,
0.021786825731396675,
-0.005777532234787941,
-0.05782186985015869,
-0.015102106146514416,
0.045973990112543106,
-0.08001349121332169,
-0.03447365388274193,
0.10864733159542084,
0.028859909623861313,
0.010027850978076458,
0.005820718128234148,
0.03684522584080696,
-0.01829247921705246,
-0.053887706249952316,
0.026522694155573845,
0.026903532445430756,
0.0023156325332820415,
0.009138001129031181,
0.05782165378332138,
-0.02885279804468155,
-0.02741960994899273,
0.07471616566181183,
-0.017799722030758858,
-0.029626667499542236,
0.097407266497612,
-0.028286488726735115,
-0.0417744442820549,
0.01717532053589821,
-0.039198096841573715,
-0.06951017677783966,
0.042852096259593964,
-0.028410442173480988,
-0.24055099487304688,
0.026424255222082138,
0.01689978688955307,
0.05859814211726189,
-0.01769389770925045,
0.007681252434849739,
0.02876582182943821,
-0.018460992723703384,
-0.00752973509952426,
0.02852647379040718,
0.041200581938028336,
0.038358550518751144,
-0.0024447457399219275,
-0.002239699475467205,
0.027305366471409798,
0.03440382704138756,
0.016731787472963333,
0.022718412801623344,
0.04183080792427063,
-0.034545645117759705,
0.0330653041601181,
-0.01168772391974926,
0.1580217182636261,
0.01613256148993969,
0.004813577048480511,
0.06901682913303375,
-0.0037608330603688955,
0.04264592379331589,
0.08308566361665726,
-0.007572101894766092,
-0.022567501291632652,
0.049709074199199677,
0.039482925087213516,
0.013439368456602097,
0.02100084349513054,
-0.059224218130111694,
0.023873602971434593,
-0.004122015088796616,
0.030627530068159103,
-0.029004575684666634,
-0.00264471466653049,
0.01963188499212265,
-0.0009930768283084035,
0.0447637215256691,
0.08509072661399841,
-0.022747138515114784,
-0.011870311573147774,
-0.01439051702618599,
-0.08317972719669342,
-0.018428336828947067,
-0.04803600534796715,
-0.06432168185710907,
-0.010892313905060291,
0.0030967318452894688,
0.005756094120442867,
0.054705847054719925,
0.017652718350291252,
-0.050904277712106705,
-0.003973975777626038,
-0.01866087131202221,
0.0012001112336292863,
-0.016180653125047684,
0.10732226073741913,
0.003106406657025218,
0.020288696512579918
] | [
0.02964147925376892,
0.03757137432694435,
-0.007218309212476015,
0.036326322704553604,
0.009674640372395515,
-0.010252793319523335,
-0.022836335003376007,
-0.0014284431235864758,
-0.023076573386788368,
-0.002871147356927395,
-0.014380717650055885,
0.011044426821172237,
0.0719580128788948,
0.00927076768130064,
-0.0012559619499370456,
0.015525233931839466,
-0.014628313481807709,
0.03397626057267189,
0.02014370635151863,
0.006317416671663523,
-0.0044875117018818855,
-0.019399574026465416,
0.028281979262828827,
-0.027665680274367332,
-0.014135319739580154,
0.009264752268791199,
-0.01940973475575447,
-0.023365484550595284,
-0.0022784227039664984,
-0.11890848726034164,
0.009891398251056671,
-0.02086571604013443,
-0.01144024170935154,
-0.013600717298686504,
-0.01331524271517992,
0.020056795328855515,
0.035347577184438705,
0.024573015049099922,
-0.02400306425988674,
0.013157675974071026,
0.012759787030518055,
-0.007723420392721891,
-0.01438343245536089,
0.004598552826792002,
-0.004277390893548727,
-0.023282697424292564,
-0.018202107399702072,
-0.05247366800904274,
-0.02464829944074154,
-0.02762138657271862,
-0.03077811934053898,
-0.03328043222427368,
0.020692912861704826,
-0.00038520898669958115,
-0.03933529928326607,
-0.008280054666101933,
-0.04866859316825867,
0.008819323033094406,
0.020330440253019333,
0.0065237111411988735,
0.0407356321811676,
-0.02058773674070835,
-0.03283628821372986,
-0.03174827992916107,
-0.01785239577293396,
-0.01604543626308441,
0.03945887088775635,
0.006043674424290657,
-0.005439383909106255,
0.003233532654121518,
-0.0005933094071224332,
0.05391540750861168,
-0.06560949981212616,
0.0019168866565451026,
-0.029447218403220177,
0.014623314142227173,
0.027359522879123688,
-0.00798085518181324,
0.007196160964667797,
0.00973481498658657,
-0.017920680344104767,
0.01592021808028221,
0.0005393144674599171,
0.007717075292021036,
-0.012079349718987942,
0.044799696654081345,
-0.0036961412988603115,
-0.006624950096011162,
0.012757157906889915,
0.06740713119506836,
-0.04034847021102905,
0.005318875890225172,
-0.0246500875800848,
0.013415617868304253,
-0.10331171751022339,
-0.024209285154938698,
0.0008346059476025403,
0.012990172021090984,
-0.0019205841235816479,
0.8489247560501099,
0.03468775376677513,
0.011736172251403332,
0.017685646191239357,
0.016808807849884033,
0.014016197994351387,
0.006032108794897795,
0.022364629432559013,
-0.000490748614538461,
-0.008852371945977211,
0.03207320719957352,
-0.009904875420033932,
0.014278263784945011,
0.02051282674074173,
0.01011511217802763,
0.010365083813667297,
0.03518657013773918,
0.009500975720584393,
-0.008986646309494972,
0.006822230760008097,
0.06211090832948685,
0.016366800293326378,
0.0008218996226787567,
0.0005923511344008148,
0.017558470368385315,
0.008944832719862461,
-0.1262475550174713,
-0.02056392841041088,
-7.30979692690901e-33,
0.043579310178756714,
0.020660607144236565,
0.0327741764485836,
0.03486615791916847,
0.004375390242785215,
0.007445195689797401,
-0.01675558276474476,
-0.007103176321834326,
-0.006114924792200327,
-0.05693647637963295,
-0.004466239362955093,
-0.012032007798552513,
0.011772694066166878,
-0.03355804830789566,
0.011658059433102608,
-0.013317697681486607,
0.018974250182509422,
0.011461985297501087,
0.010222731158137321,
0.019091324880719185,
-0.017671875655651093,
0.06513840705156326,
-0.023333048447966576,
0.01245447713881731,
0.0005592439556494355,
0.029210519045591354,
0.01393144577741623,
0.017845703288912773,
-0.018304327502846718,
-0.04338633269071579,
-0.027953695505857468,
-0.031156668439507484,
-0.015367619693279266,
-0.02805020846426487,
0.036150213330984116,
-0.05905405059456825,
-0.02505306527018547,
0.009574619121849537,
-0.0491696260869503,
-0.0584750697016716,
-0.016588957980275154,
-0.014945260249078274,
-0.013644715771079063,
0.0032000693026930094,
-0.04999794438481331,
-0.04851268604397774,
-0.017709560692310333,
0.026478691026568413,
0.014694751240313053,
-0.001284306519664824,
-0.019767317920923233,
0.04036113619804382,
0.011807790957391262,
-0.022533996030688286,
-0.045639779418706894,
0.005747874733060598,
-0.00003607532926253043,
0.02085839956998825,
-0.020927688106894493,
0.017497364431619644,
0.003793711308389902,
-0.006623145192861557,
-0.026758983731269836,
0.04628584161400795,
0.032188523560762405,
0.0088472506031394,
-0.008780636824667454,
-0.01892862841486931,
0.008905678987503052,
0.015798531472682953,
-0.04091022536158562,
0.002306779846549034,
0.009258578531444073,
0.019428616389632225,
0.009910856373608112,
-0.04988643899559975,
0.010566138662397861,
0.009609745815396309,
0.00920396950095892,
0.033506810665130615,
0.0069361282512545586,
-0.027458803728222847,
0.022618332877755165,
-0.0220109224319458,
0.011590534821152687,
-0.017940273508429527,
0.03240491449832916,
-0.0022431828547269106,
0.0444093681871891,
0.024503055959939957,
0.060967858880758286,
0.03421972319483757,
-0.02915826067328453,
-0.003891624277457595,
-0.008119981735944748,
6.96146342061381e-33,
-0.019460665062069893,
-0.013620547018945217,
-0.02628437429666519,
0.003130437806248665,
0.028004128485918045,
0.003836254822090268,
-0.017893608659505844,
0.036445554345846176,
-0.04867277294397354,
0.015315603464841843,
-0.02299005724489689,
-0.022265568375587463,
0.011334571056067944,
0.031177757307887077,
0.048222076147794724,
-0.002470118459314108,
0.021560918539762497,
-0.05735085532069206,
0.01647683046758175,
-0.0013420385075733066,
-0.00425738887861371,
0.015249799937009811,
0.013272147625684738,
0.026608547195792198,
0.013427549973130226,
0.03127782419323921,
-0.014882427640259266,
0.012152079492807388,
-0.033665455877780914,
-0.00029025200637988746,
0.022674638777971268,
-0.0357590951025486,
-0.010359393432736397,
-0.028959933668375015,
-0.0017094133654609323,
-0.007114864885807037,
-0.016376521438360214,
0.01724785380065441,
0.0242405217140913,
-0.001073712483048439,
-0.001730019343085587,
-0.022177882492542267,
-0.012493213638663292,
0.05059519410133362,
0.005873838905245066,
-0.0016145861009135842,
-0.006061695050448179,
0.011213534511625767,
0.00536083010956645,
0.023934228345751762,
-0.03560396283864975,
0.020728791132569313,
0.02097836695611477,
0.013842177577316761,
0.03373730555176735,
-0.05180772766470909,
-0.00718691386282444,
0.026120230555534363,
-0.0006731427274644375,
0.020591426640748978,
-0.011848836205899715,
-0.013988297432661057,
-0.028575334697961807,
0.029429174959659576,
-0.009817530401051044,
-0.03244540095329285,
-0.013879785314202309,
-0.005663973744958639,
-0.025153808295726776,
-0.00029934110352769494,
-0.01692076213657856,
-0.00012817747483495623,
-0.015905259177088737,
0.01773218810558319,
0.055641114711761475,
-0.023125112056732178,
-0.006451840046793222,
-0.013879208825528622,
-0.05331738665699959,
0.003386375028640032,
0.004829917568713427,
0.010578043758869171,
-0.006702260114252567,
-0.024730969220399857,
0.024225959554314613,
-0.0006270147860050201,
-0.014575192704796791,
0.03862830996513367,
-0.047515030950307846,
-0.03144945204257965,
0.03675127401947975,
0.0016172450268641114,
-0.047564681619405746,
0.02610952965915203,
-0.04007371887564659,
-1.2779787894601213e-8,
-0.0036301156505942345,
-0.0019962615333497524,
-0.008659902028739452,
-0.0056569078005850315,
0.0039090425707399845,
0.008549775928258896,
-0.028745274990797043,
-0.010472782887518406,
-0.007783561944961548,
0.029527781531214714,
0.023879585787653923,
0.014637463726103306,
0.0020258440636098385,
-0.003755096346139908,
0.02948642708361149,
-0.06267094612121582,
-0.0010674612130969763,
0.01958087645471096,
0.020971737802028656,
0.02814890630543232,
0.013325940817594528,
0.032210055738687515,
-0.044994793832302094,
0.006773678120225668,
0.016091767698526382,
-0.0037065132055431604,
0.052939750254154205,
-0.04448307678103447,
-0.012432695366442204,
-0.011146883480250835,
-0.003480661893263459,
-0.013323883526027203,
-0.045572519302368164,
-0.018846899271011353,
-0.056064851582050323,
0.01955491304397583,
0.02008587308228016,
0.009527073241770267,
0.0070227026008069515,
0.030895423144102097,
0.014702009968459606,
0.03287258744239807,
-0.01686752773821354,
-0.00885847955942154,
-0.028100570663809776,
-0.014465687796473503,
-0.04617275670170784,
-0.011400721035897732,
0.04869725555181503,
-0.04284022003412247,
-0.038613397628068924,
0.009953328408300877,
0.00595294451341033,
0.003594660200178623,
0.028310740366578102,
-0.010365313850343227,
0.022543463855981827,
0.0026244090404361486,
-0.009521909058094025,
-0.002191862091422081,
0.04516027122735977,
-0.010880738496780396,
-0.02686331979930401,
-0.032650675624608994
] | java-jersey-java-lang-nosuchmethoderror-com-sun-jersey-core-reflection-reflectionhelper-getcontextclassloaderpaljavasecurityprivilegedaction | https://markhneedham.com/blog/2015/08/11/java-jersey-java-lang-nosuchmethoderror-com-sun-jersey-core-reflection-reflectionhelper-getcontextclassloaderpaljavasecurityprivilegedaction |
false | 2015-08-10 23:57:01 | Neo4j 2.2.3: Unmanaged extensions - Creating gzipped streamed responses with Jetty | [
"neo4j"
] | [
"neo4j"
] | Back in 2013 I wrote a http://www.markhneedham.com/blog/2013/07/08/jax-rs-streaming-a-response-using-streamingoutput/[couple of] http://www.markhneedham.com/blog/2013/07/08/neo4j-unmanaged-extension-creating-gzipped-streamed-responses-with-jetty/[blog posts] showing examples of an unmanaged extension which had a streamed and gzipped response but two years on I realised they were a bit out of date and deserved a refresh.
When writing unmanaged extensions in Neo4j a good rule of thumb is to try and reduce the amount of objects you keep hanging around. In this context this means that we should stream our response to the client as quickly as possible rather than building it up in memory and sending it in one go.
The http://neo4j.com/docs/2.2.3/server-unmanaged-extensions.html#server-unmanaged-extensions-streaming[documentation has a good example showing how to stream a list of colleagues] but in this blog post we'll look at how to do something simpler - we'll create a couple of nodes representing people and then write an unmanaged extension to return them.
We'll first create an unmanaged extension which runs a cypher query, iterates through the rows returned and sends them to the client:
[source,java]
----
@Path("/example")
public class ExampleResource {
private final GraphDatabaseService db;
private static final ObjectMapper OBJECT_MAPPER = new ObjectMapper();
public ExampleResource(@Context GraphDatabaseService db) {
this.db = db;
}
@GET
@Produces(MediaType.APPLICATION_JSON)
@Path("/people")
public Response allNodes() throws IOException {
StreamingOutput stream = streamQueryResponse("MATCH (n:Person) RETURN n.name AS name");
return Response.ok().entity(stream).type(MediaType.APPLICATION_JSON).build();
}
private StreamingOutput streamQueryResponse(final String query) {
return new StreamingOutput() {
@Override
public void write(OutputStream os) throws IOException, WebApplicationException {
JsonGenerator jg = OBJECT_MAPPER.getJsonFactory().createJsonGenerator(os, JsonEncoding.UTF8);
jg.writeStartArray();
writeQueryResultTo(query, jg);
jg.writeEndArray();
jg.flush();
jg.close();
}
};
}
private void writeQueryResultTo(String query, JsonGenerator jg) throws IOException {
try (Result result = db.execute(query)) {
while (result.hasNext()) {
Map<String, Object> row = result.next();
jg.writeStartObject();
for (Map.Entry<String, Object> entry : row.entrySet()) {
jg.writeFieldName(entry.getKey());
jg.writeString(entry.getValue().toString());
}
jg.writeEndObject();
}
}
}
}
----
There's nothing too complicated going on here although notice that we make much more fine grained calls to the JSON Library rather than created a JSON object in memory and calling +++<cite>+++ObjectMapper#writeValueAsString+++</cite>+++ on it.
To get this to work we'd build a JAR containing this class, put that into the plugins folder and then add the following property to +++<cite>+++conf/neo4j-server.properties+++</cite>+++ (or the Neo4j desktop equivalent) before restarting the server:
[source,text]
----
org.neo4j.server.thirdparty_jaxrs_classes=org.neo4j.unmanaged=/unmanaged
----
We can then test it out like this:
[source,bash]
----
$ curl http://localhost:7474/unmanaged/example/people
[{"name":"Mark"},{"name":"Nicole"}]
----
I've put in a couple of test people nodes - full instructions are available on the https://github.com/mneedham/dummy-unmanaged-extension[github README page].
Next we want to make it possible to send that response in the gzip format. To do that we need to add a GzipFilter to the Neo4j lifecycle. This class has moved to a different namespace in Jetty 9 which Neo4j 2.2.3 depends on, but the following class does the job:
[source,java]
----
import org.eclipse.jetty.servlets.GzipFilter;
public class GZipInitialiser implements SPIPluginLifecycle {
private WebServer webServer;
@Override
public Collection<Injectable<?>> start(NeoServer neoServer) {
webServer = getWebServer(neoServer);
GzipFilter filter = new GzipFilter();
webServer.addFilter(filter, "/*");
return Collections.emptyList();
}
private WebServer getWebServer(final NeoServer neoServer) {
if (neoServer instanceof AbstractNeoServer) {
return ((AbstractNeoServer) neoServer).getWebServer();
}
throw new IllegalArgumentException("expected AbstractNeoServer");
}
@Override
public Collection<Injectable<?>> start(GraphDatabaseService graphDatabaseService, Configuration configuration) {
throw new IllegalAccessError();
}
@Override
public void stop() {
}
}
----
I needed to include the +++<cite>+++jersey-servlets+++</cite>+++ JAR in my unmanaged extension JAR in order for this to work correctly. Once we redeploy the JAR and restart Neo4j we can try making the same request as above but with a gzip header:
[source,bash]
----
$ curl -v -H "Accept-Encoding:gzip,deflate" http://localhost:7474/unmanaged/example/people
��V�K�MU�R�M,�V�Ձ��2��sR�jcf(�#
----
We can unpack that on the fly by piping it through gunzip to check we get a sensible result:
[source,bash]
----
$ curl -v -H "Accept-Encoding:gzip,deflate" http://localhost:7474/unmanaged/example/people | gunzip
[{"name":"Mark"},{"name":"Nicole"}]
----
And there we have it - a gzipped streamed response. https://github.com/mneedham/dummy-unmanaged-extension[All the code is on github] so give it a try and give me a shout if it doesn't work. The fastest way to get me is probably on our new shiny http://neo4j-users-slack-invite.herokuapp.com/[neo4j-users Slack group]. | null | null | [
0.016413703560829163,
-0.06638059765100479,
0.009855730459094048,
0.034254975616931915,
0.0654832273721695,
-0.03130413219332695,
0.01980535127222538,
0.0477563850581646,
-0.008329201489686966,
-0.015486975200474262,
-0.004792680498212576,
-0.002516274806112051,
-0.08475562185049057,
0.009317788295447826,
-0.0021762694232165813,
0.046404119580984116,
0.057581886649131775,
-0.007609160151332617,
0.029849382117390633,
-0.026984309777617455,
-0.0014943968271836638,
0.018580608069896698,
-0.0021779860835522413,
0.03722505271434784,
0.051696211099624634,
0.016947653144598007,
-0.00042207681690342724,
0.011539939790964127,
-0.056326333433389664,
0.001825064653530717,
0.05552234500646591,
0.014351368881762028,
0.0009967434452846646,
-0.0004145436396356672,
0.020463187247514725,
-0.026681074872612953,
-0.03596772253513336,
0.007919265888631344,
-0.02616673707962036,
0.02499578334391117,
-0.08092654496431351,
0.0252153892070055,
-0.026214780285954475,
0.004509398713707924,
-0.024537336081266403,
-0.0017106145387515426,
-0.017886795103549957,
0.0214634221047163,
-0.03481036797165871,
0.006340614520013332,
-0.07934240251779556,
0.030230509117245674,
-0.038007207214832306,
0.026178626343607903,
0.009572765789926052,
0.05254610255360603,
0.024790693074464798,
-0.07586292922496796,
0.04718400537967682,
-0.024097368121147156,
0.00618675397709012,
-0.03309893235564232,
0.006757655180990696,
0.03032313659787178,
-0.024827519431710243,
-0.030699340626597404,
-0.017858803272247314,
0.06778440624475479,
-0.031126627698540688,
-0.01018456555902958,
0.006949898321181536,
0.002589965471997857,
-0.02212519757449627,
0.019971583038568497,
0.018111951649188995,
-0.06038105860352516,
0.008150207810103893,
0.05944165214896202,
0.033037468791007996,
0.042917266488075256,
-0.016928618773818016,
-0.017035316675901413,
0.01725585013628006,
0.026319704949855804,
-0.005003710277378559,
-0.05811426788568497,
-0.0015834877267479897,
0.0058181933127343655,
-0.03542006388306618,
0.042892906814813614,
0.0312013179063797,
-0.05199452489614487,
-0.012833922170102596,
0.0020244126208126545,
-0.028307504951953888,
0.0036741369403898716,
-0.021040644496679306,
0.009938020259141922,
0.013520541600883007,
-0.0034934012219309807,
-0.03837408497929573,
0.001783254323527217,
-0.000633439514786005,
0.0018312543397769332,
-0.056139931082725525,
-0.04062315821647644,
-0.03563819080591202,
-0.03467352315783501,
-0.015244518406689167,
-0.008780707605183125,
-0.028787212446331978,
0.052383702248334885,
-0.023962311446666718,
0.015188321471214294,
-0.07553982734680176,
0.05703901872038841,
0.0180862657725811,
-0.02859928458929062,
0.0028527555987238884,
0.03371153399348259,
0.032188113778829575,
0.00887410156428814,
0.00912800244987011,
0.06795231252908707,
-0.021648148074746132,
0.02518363483250141,
-0.002436321694403887,
0.030323440209031105,
-0.011339045129716396,
-0.07656502723693848,
0.003824758343398571,
0.05227917060256004,
0.010511145927011967,
0.029756823554635048,
-0.008134933188557625,
0.007781659252941608,
0.01596805639564991,
-0.0014875229680910707,
0.06759773939847946,
0.04056131839752197,
-0.036545395851135254,
-0.05209500715136528,
0.030849862843751907,
0.0038001383654773235,
0.04193602874875069,
-0.003963748458772898,
-0.0240878127515316,
-0.056525006890296936,
-0.020577915012836456,
0.034703657031059265,
0.0027072010561823845,
0.041013967245817184,
0.04404158517718315,
-0.019634773954749107,
-0.005157819017767906,
0.11157795041799545,
0.007841131649911404,
0.023844841867685318,
-0.004574382212013006,
0.035690788179636,
0.029854057356715202,
0.031150666996836662,
-0.001415264094248414,
0.03640316426753998,
0.0006725757266394794,
0.005516368895769119,
0.0003382935537956655,
0.02996981143951416,
-0.004941384308040142,
-0.011851762421429157,
-0.029353884980082512,
-0.07674034684896469,
0.04249250888824463,
-0.037234317511320114,
-0.022929765284061432,
0.010708650574088097,
0.06700292229652405,
0.024482863023877144,
0.0223642997443676,
0.01628177799284458,
-0.058688800781965256,
0.05602288618683815,
0.04298846423625946,
0.0004892354481853545,
0.0033660654444247484,
0.006298256106674671,
0.04913182929158211,
0.06433619558811188,
-0.02097218669950962,
0.030567146837711334,
-0.06933336704969406,
-0.07134031504392624,
-0.03134981170296669,
-0.001681552384980023,
0.04365565627813339,
-0.04580119252204895,
-0.00732274167239666,
0.08249465376138687,
0.01976482756435871,
0.01723533123731613,
0.01579909585416317,
-0.022967258468270302,
0.004550915211439133,
-0.044261716306209564,
-0.06154379993677139,
0.05709800496697426,
0.05222292244434357,
-0.05290956795215607,
-0.0505710206925869,
-0.006145264953374863,
-0.009696648456156254,
0.016463013365864754,
0.016999077051877975,
-0.015034060925245285,
0.025483308359980583,
0.020836850628256798,
0.02926652878522873,
-0.012696207500994205,
0.05176537111401558,
-0.057499952614307404,
0.06229759752750397,
0.010629537515342236,
-0.0346062071621418,
0.004318308550864458,
-0.007808029651641846,
0.12304393202066422,
0.0404912531375885,
-0.026035647839307785,
-0.07069016993045807,
0.018954433500766754,
0.013022368773818016,
-0.02516012080013752,
-0.0024391328915953636,
-0.027152076363563538,
-0.0035676313564181328,
0.02378101833164692,
-0.019482694566249847,
-0.028702853247523308,
0.0017451185267418623,
-0.02344728633761406,
0.016875216737389565,
0.07139920443296432,
-0.04355937987565994,
0.041781824082136154,
0.03676062449812889,
-0.018952034413814545,
-0.005369450431317091,
-0.05384451895952225,
-0.043482620269060135,
0.015818968415260315,
0.01171955093741417,
-0.01176591869443655,
0.0863763615489006,
-0.026127241551876068,
-0.00688630947843194,
-0.01670348085463047,
-0.0549689419567585,
0.01865057647228241,
0.03761430084705353,
0.052745819091796875,
0.011038681492209435,
0.04053880274295807,
-0.03257761523127556,
-0.027390088886022568,
-0.01727975159883499,
-0.04807532951235771,
-0.023524047806859016,
-0.006133120507001877,
0.016032343730330467,
0.015983019024133682,
-0.005099128466099501,
-0.011114825494587421,
0.032322172075510025,
0.033220671117305756,
-0.021649369969964027,
-0.014971116557717323,
0.03364553675055504,
-0.0051820604130625725,
-0.002525041811168194,
-0.03240760415792465,
-0.027386952191591263,
0.035200875252485275,
-0.03661381080746651,
-0.05828301981091499,
0.0010644616559147835,
-0.07069312036037445,
0.03932430222630501,
-0.010196288116276264,
-0.03389677032828331,
0.0029942865949124098,
0.034400150179862976,
0.043175239115953445,
0.010701998136937618,
0.014520400203764439,
0.08375388383865356,
0.017952674999833107,
0.0028316618409007788,
-0.0016167156863957644,
-0.01650724746286869,
0.04104398936033249,
-0.046382978558540344,
0.013692773878574371,
0.04684814438223839,
-0.009180430322885513,
-0.00608920818194747,
-0.028412243351340294,
0.03185546398162842,
-0.028274593874812126,
-0.27142825722694397,
0.04166315868496895,
0.009218757972121239,
-0.03587457910180092,
0.03930330649018288,
-0.006609275005757809,
0.0015542745823040605,
-0.04400661215186119,
-0.016559790819883347,
0.03597715497016907,
-0.015107249841094017,
-0.00876498781144619,
-0.020966550335288048,
0.03321119397878647,
0.029564183205366135,
0.014346626587212086,
-0.001846787752583623,
-0.016854261979460716,
0.0035188293550163507,
0.017434613779187202,
-0.0020937740337103605,
-0.07342588156461716,
-0.0008685956127010286,
0.013099953532218933,
0.03752142935991287,
0.01682574860751629,
-0.08495358377695084,
0.04929380863904953,
-0.03754851222038269,
-0.021385356783866882,
0.01899224892258644,
-0.038976579904556274,
0.02535700984299183,
0.007908432744443417,
-0.04667060449719429,
-0.0026591788046061993,
0.017844799906015396,
0.020828062668442726,
-0.013454974628984928,
0.01759592816233635,
-0.02606065943837166,
-0.0885566994547844,
-0.046761155128479004,
0.0001375183928757906,
0.05851694568991661,
0.011284817941486835,
-0.0658823773264885,
-0.00017828757700044662,
0.00496322987601161,
0.06997133791446686,
-0.016647927463054657,
-0.041409336030483246,
-0.013814088888466358,
0.026238514110445976,
-0.028414921835064888,
-0.050984736531972885,
-0.012889101170003414,
-0.014762275852262974,
-0.03660981357097626,
-0.020403197035193443,
0.025413794443011284,
-0.038297139108181,
0.005469803232699633,
-0.035231973975896835,
-0.023389196023344994,
-0.032923147082328796,
-0.07724454253911972,
-0.02644278109073639,
0.06331417709589005,
0.026572272181510925,
-0.012275916524231434,
0.014741028659045696,
0.004095989745110273,
-0.10364847630262375,
-0.03626151755452156,
-0.042914677411317825,
-0.02647116407752037,
0.012183311395347118,
-0.02254677005112171,
0.05752359330654144,
-0.05781000852584839,
-0.02963314577937126,
-0.013265153393149376,
0.02661675587296486,
0.03345206379890442,
-0.020331449806690216,
0.008226857520639896,
-0.0540585033595562,
-0.015803439542651176,
0.020612232387065887,
0.06359247118234634,
-0.03301313519477844,
-0.01816602610051632,
-0.006145740859210491,
0.0031837800052016973,
0.05525457113981247,
-0.00629637623205781,
-0.005101767368614674,
0.017405608668923378,
0.03242477774620056,
0.04608602821826935,
-0.039801113307476044,
0.026315459981560707,
-0.006722310092300177,
0.019615359604358673,
-0.02694682404398918,
-0.06420464813709259,
0.040882717818021774,
0.003158925799652934,
0.018935052677989006,
0.009203201159834862,
-0.005177545826882124,
-0.011523804627358913,
-0.046755578368902206,
-0.05380198359489441,
0.00875313114374876,
0.004383024759590626,
0.03315022215247154,
0.051154568791389465,
-0.043211277574300766,
-0.0400812104344368,
0.01401137001812458,
0.05064237490296364,
-0.009133292362093925,
-0.05034761130809784,
-0.04513063281774521,
-0.024605322629213333,
-0.03029639460146427,
0.010832522064447403,
0.012065937742590904,
0.008266429416835308,
0.013947976753115654,
0.011763225309550762,
-0.006854057777673006,
0.019518516957759857,
-0.0361437052488327,
-0.021129481494426727,
-0.05594590678811073,
-0.0005680718459188938,
-0.0070788380689918995,
-0.008479133248329163,
-0.01009213738143444,
0.0018011784413829446,
0.054774168878793716,
0.04684232920408249,
0.00955562386661768,
0.0556824691593647,
0.025689030066132545,
0.01340667437762022,
-0.007559254765510559,
0.0002368920249864459,
-0.04923497512936592,
-0.00859853532165289,
-0.03591486066579819,
-0.030557241290807724,
-0.006636937614530325,
0.04098415747284889,
-0.013905661180615425,
-0.025850048288702965,
-0.035314369946718216,
0.02997477725148201,
-0.08037259429693222,
-0.01590866781771183,
-0.004013752099126577,
-0.00808766670525074,
0.047917068004608154,
-0.026211727410554886,
0.04709410294890404,
-0.033900048583745956,
-0.04674931988120079,
0.002544434741139412,
-0.021285122260451317,
-0.020289167761802673,
0.02328854613006115,
0.02529042214155197,
0.02422282285988331,
0.008241712115705013,
0.03639822453260422,
0.05062691867351532,
0.043007392436265945,
0.004155496601015329,
-0.021936047822237015,
0.030276447534561157,
0.0055644335225224495,
0.053637173026800156,
0.055507514625787735,
-0.007400718983262777,
0.008151671849191189,
-0.021548405289649963,
0.004565187729895115,
-0.008116541430354118,
0.026154397055506706,
-0.018996112048625946,
0.02623712457716465,
-0.01043559517711401,
-0.07761484384536743,
0.06514403969049454,
0.001174254692159593,
0.011749189347028732,
0.024577150121331215,
-0.007653272710740566,
0.026303162798285484,
-0.006706548389047384,
0.03301464766263962,
0.0403146930038929,
-0.04535610228776932,
-0.03086184710264206,
-0.014454677700996399,
-0.009118719026446342,
-0.005472610238939524,
0.0021399520337581635,
-0.05050155520439148,
-0.009617127478122711,
-0.006423252634704113,
0.006922352127730846,
-0.02119205705821514,
-0.04892075061798096,
-0.022331498563289642,
0.018634039908647537,
0.0044772992841899395,
0.01705540157854557,
0.01603526994585991,
-0.005589855369180441,
-0.021409383043646812,
-0.0012884439202025533,
0.033642061054706573,
-0.03449336066842079,
-0.025830183178186417,
-0.02540457993745804,
-0.040598854422569275,
0.031854599714279175,
-0.01016760803759098,
0.039465248584747314,
0.029427295550704002,
-0.001886355341412127,
-0.023344282060861588,
-0.04377841204404831,
0.03151907026767731,
0.0075627039186656475,
0.07439416646957397,
0.013790041208267212,
-0.01781919226050377,
-0.023010913282632828,
0.012755126692354679,
-0.02542169950902462,
0.008719864301383495,
-0.0023564076982438564,
0.02529376931488514,
0.002775028347969055,
0.04768981412053108,
0.030103739351034164,
0.05749750882387161,
0.005448042880743742,
-0.021665159612894058,
0.07198327779769897,
-0.05515144020318985,
-0.020892614498734474,
-0.020977746695280075,
-0.05942612886428833,
0.000007887416359153576,
0.02896406129002571,
0.029147565364837646,
-0.031562440097332,
0.0653865709900856,
0.057309579104185104,
0.0207185260951519,
0.04761217162013054,
0.00667040329426527,
0.03264062851667404,
-0.039249029010534286,
-0.005749640520662069,
-0.07794589549303055,
-0.012002673000097275,
0.06195080652832985,
0.045623376965522766,
0.03233028203248978,
-0.03860526904463768,
-0.043035708367824554,
0.02253805845975876,
-0.05934787914156914,
-0.028241779655218124,
0.03554290533065796,
-0.03559904545545578,
0.011760154739022255,
0.00460394099354744,
-0.07702828198671341,
0.060951508581638336,
0.0399564728140831,
-0.0219138041138649,
-0.056649260222911835,
-0.0264614075422287,
0.034010086208581924,
0.014330489560961723,
0.03758125752210617,
-0.0211468618363142,
-0.02096291445195675,
0.07493609189987183,
-0.003877672366797924,
0.015473213978111744,
0.047915827482938766,
-0.03304002061486244,
0.018771247938275337,
0.04559427127242088,
-0.029085392132401466,
0.026419416069984436,
0.006016141269356012,
-0.009105559438467026,
-0.051211245357990265,
0.024156341329216957,
0.022754494100809097,
-0.0428357869386673,
-0.015454161912202835,
0.05082881450653076,
0.004650132730603218,
-0.04331173002719879,
-0.06397431343793869,
0.01651383563876152,
-0.03165280073881149,
-0.023319793865084648,
-0.03191293403506279,
0.03869584575295448,
-0.04880441725254059,
0.04561339691281319,
-0.02272888831794262,
-0.0043118419125676155,
0.0828578993678093,
-0.00517377769574523,
0.01221355702728033,
0.007382075302302837,
0.09517113119363785,
0.07585936784744263,
0.003625742858275771,
-0.03247307986021042,
0.05529159680008888,
-0.042113423347473145,
-0.014380487613379955,
-0.011718440800905228,
-0.02418868988752365,
-0.02431420423090458,
0.016980798915028572,
0.016560794785618782,
0.07869009673595428,
-0.01707991398870945,
0.08757886290550232,
-0.04217255115509033,
-0.030575895681977272,
-0.0019109119893983006,
0.013423588126897812,
0.024022502824664116,
0.001969982637092471,
0.01658247597515583,
0.011952521279454231,
-0.033720143139362335,
-0.046367473900318146,
0.004328303504735231,
0.01216173730790615,
-0.032944079488515854,
0.031157558783888817,
-0.002432432724162936,
0.0012366818264126778,
-0.01441485621035099,
0.022144047543406487,
0.06834255158901215,
-0.006718672811985016,
0.019195744767785072,
-0.0022757796104997396,
-0.011207174509763718,
-0.02038620226085186,
0.007826387882232666,
-0.020668121054768562,
-0.04058975726366043,
-0.001756892423145473,
-0.029376674443483353,
0.00202346732839942,
-0.02597052790224552,
-0.05760692059993744,
0.023617111146450043,
-0.02690345235168934,
-0.00144532963167876,
-0.030741658061742783,
-0.0239445548504591,
-0.03496071696281433,
-0.05468923971056938,
-0.039553411304950714,
-0.03843149542808533,
-0.08154108375310898,
-0.01114749163389206,
0.002313863718882203,
-0.00815106462687254,
-0.03658313676714897,
-0.013965667225420475,
-0.048916950821876526,
-0.011887237429618835,
0.056403618305921555,
-0.03514029085636139,
0.026002107188105583,
0.020223412662744522,
0.0043768733739852905,
0.017338620498776436,
0.026014624163508415,
0.04191242903470993,
0.014865022152662277,
0.005982386879622936,
-0.020748239010572433,
-0.0051321969367563725,
0.04419676214456558,
-0.002266006777063012,
-0.004086552653461695,
-0.0794907957315445,
0.01521086785942316,
0.023058846592903137,
0.00398723129183054,
-0.07608848065137863,
0.004076122771948576,
0.03830522671341896,
-0.012727044522762299,
0.04050527885556221,
-0.0062959082424640656,
-0.003483257256448269,
-0.015930138528347015,
-0.007401349022984505,
0.01380059216171503,
0.0001292930537601933,
0.045675475150346756,
-0.007882053032517433,
0.07555796205997467,
0.08170995861291885,
-0.027070635929703712,
-0.011431095190346241,
-0.0029626607429236174,
-0.013389061205089092,
-0.006700731348246336,
-0.0665692463517189,
-0.02184956707060337,
-0.05778001248836517,
-0.05476674810051918,
-0.03216315060853958,
0.026116056367754936,
-0.028289174661040306,
-0.011792355217039585,
0.008864871226251125,
0.06592199951410294,
-0.011259995400905609,
0.015177993103861809,
-0.04021488130092621,
0.050758246332407,
-0.015238741412758827,
-0.03935721144080162,
-0.007031318731606007,
-0.018468771129846573,
-0.0037421272136271,
-0.01867033541202545,
-0.0213217344135046,
-0.04174911603331566,
0.005040706600993872,
-0.00975506380200386,
0.023006819188594818,
0.04696602746844292,
0.009509798139333725,
-0.008493063040077686
] | [
-0.06737057119607925,
-0.016557499766349792,
-0.016028771176934242,
-0.031670112162828445,
0.07815562188625336,
-0.056783657521009445,
-0.019334468990564346,
0.017094846814870834,
0.00454960111528635,
0.013198748230934143,
0.031445443630218506,
-0.0035268065985292196,
-0.03367237746715546,
-0.0027439023833721876,
0.09175153821706772,
-0.017082910984754562,
-0.02110987901687622,
-0.0142531031742692,
-0.04532729089260101,
0.024434804916381836,
0.0025645606219768524,
-0.04763391986489296,
-0.03326702117919922,
-0.039278991520404816,
-0.0020862093660980463,
-0.001083448063582182,
0.022349711507558823,
0.007208986673504114,
-0.017861630767583847,
-0.20451731979846954,
-0.0007469980628229678,
0.010615683160722256,
0.009208420291543007,
-0.013847580179572105,
0.006970176473259926,
0.018212392926216125,
0.04552466794848442,
-0.008444041013717651,
-0.013925532810389996,
0.04076061397790909,
0.03407151252031326,
0.041148051619529724,
-0.07573041319847107,
-0.026363948360085487,
0.023454265668988228,
-0.012171834707260132,
-0.005785789806395769,
-0.028297653421759605,
-0.019995182752609253,
0.013273407705128193,
-0.037007886916399,
0.012437262572348118,
0.011386247351765633,
-0.008699973113834858,
0.005225995555520058,
-0.0022846569772809744,
0.040774859488010406,
0.07148098945617676,
0.024846624583005905,
0.032441116869449615,
-0.00451394310221076,
-0.02154412493109703,
-0.11281956732273102,
0.05384846031665802,
-0.011331637389957905,
0.035243090242147446,
-0.06267488747835159,
0.02583170495927334,
-0.001657393528148532,
0.09493742138147354,
0.017627587541937828,
0.0053538125939667225,
-0.024293269962072372,
0.05762246251106262,
-0.018820088356733322,
0.03876596316695213,
-0.005423994269222021,
0.042477238923311234,
0.013116102665662766,
-0.011199154891073704,
-0.07514680176973343,
-0.02462516725063324,
-0.018273435533046722,
-0.011589393950998783,
-0.0394480898976326,
0.03198980912566185,
-0.020747555419802666,
0.045128218829631805,
0.010488403961062431,
0.038834087550640106,
0.014534322544932365,
0.03196948394179344,
0.05027816444635391,
0.01626410149037838,
-0.09257841110229492,
-0.0073129464872181416,
-0.009962637908756733,
0.0029969632159918547,
-0.02002762258052826,
0.40657728910446167,
0.010350634343922138,
-0.007735046558082104,
0.05971232056617737,
0.03320792317390442,
0.017223821952939034,
-0.013584207743406296,
-0.001202714629471302,
-0.050579365342855453,
0.01309162750840187,
0.011538006365299225,
-0.0008471544133499265,
-0.038986410945653915,
0.026226859539747238,
-0.09046995639801025,
0.02692975103855133,
0.024097969755530357,
0.023892253637313843,
0.009365743957459927,
-0.03950463607907295,
0.019082847982645035,
-0.030599109828472137,
-0.012729056179523468,
0.04993767663836479,
0.0025502366479486227,
0.05675220116972923,
0.0171384084969759,
0.03412657231092453,
0.019410403445363045,
0.023655764758586884,
0.023736052215099335,
0.03388594463467598,
-0.01536798756569624,
-0.07346080243587494,
0.00035916140768676996,
0.016197560355067253,
0.007549165282398462,
0.055468738079071045,
-0.06909382343292236,
-0.009494817815721035,
0.03648630157113075,
0.013323682360351086,
-0.006538597401231527,
0.014688449911773205,
-0.030659383162856102,
-0.027331126853823662,
0.13839392364025116,
0.02817426063120365,
-0.015916774049401283,
-0.036339256912469864,
-0.05557093024253845,
0.001599963870830834,
0.040096715092659,
-0.0010255465749651194,
-0.09115622192621231,
0.005023965146392584,
0.019656652584671974,
0.04866347461938858,
0.012681728228926659,
-0.0793333500623703,
0.028982719406485558,
-0.020035233348608017,
-0.0408073291182518,
-0.028323283419013023,
0.06001043692231178,
0.04000464081764221,
-0.11666810512542725,
-0.01496222335845232,
0.01739511452615261,
0.027381248772144318,
-0.05389216169714928,
-0.01848192885518074,
0.01860808953642845,
-0.03782148286700249,
-0.05227614939212799,
0.05536486208438873,
-0.03206239640712738,
-0.03794315829873085,
-0.0315249040722847,
0.03450889140367508,
0.0158586073666811,
0.023502862080931664,
0.013989715836942196,
-0.022790495306253433,
0.007632023189216852,
-0.05571960657835007,
-0.07359091192483902,
-0.06135055422782898,
0.03933954983949661,
-0.04751495271921158,
-0.009160013869404793,
-0.08494976907968521,
-0.009828506968915462,
-0.027955368161201477,
0.07229971140623093,
-0.01824144646525383,
-0.023129569366574287,
0.009427937678992748,
0.0033466098830103874,
-0.005224942229688168,
-0.041439320892095566,
0.04146387800574303,
0.0367400087416172,
-0.0048136101104319096,
0.028354592621326447,
-0.04565160349011421,
0.04989514872431755,
0.06044313311576843,
-0.04508522152900696,
0.06230086460709572,
0.05635249987244606,
-0.040835026651620865,
-0.006557073909789324,
-0.009805148467421532,
0.029680617153644562,
-0.019019395112991333,
-0.00537319527938962,
0.02337050251662731,
0.01623678021132946,
0.006483166012912989,
0.00021568189549725503,
-0.022049440070986748,
-0.012794685550034046,
-0.028887899592518806,
-0.3531480133533478,
-0.040979303419589996,
-0.01490575447678566,
-0.030001481994986534,
0.0006512001273222268,
-0.024828653782606125,
0.021504007279872894,
-0.0366615392267704,
0.01698337495326996,
0.007185463793575764,
0.07604997605085373,
-0.03522275388240814,
-0.016051404178142548,
-0.07759366184473038,
0.007186007220298052,
0.03531390056014061,
-0.021810032427310944,
0.004084388259798288,
-0.009706935845315456,
0.030716480687260628,
0.020284995436668396,
-0.009627806954085827,
0.019480932503938675,
-0.048448290675878525,
-0.007816027849912643,
-0.006465719547122717,
0.09598854929208755,
-0.009690525941550732,
0.06203107908368111,
-0.06261768937110901,
0.046281736344099045,
0.01618059165775776,
-0.01586626097559929,
-0.10634095966815948,
-0.013934377580881119,
0.0036673210561275482,
0.007566811982542276,
0.008346941322088242,
0.019218219444155693,
-0.016518590971827507,
-0.05491197109222412,
0.004175887908786535,
-0.050029098987579346,
-0.0700804591178894,
-0.02145724557340145,
0.012531725689768791,
-0.052589643746614456,
-0.03407272323966026,
0.015152979642152786,
0.05953425168991089,
-0.02826601266860962,
-0.02849997952580452,
0.02551618404686451,
0.04739423096179962,
0.03450892120599747,
-0.022545505315065384,
-0.07434368133544922,
-0.011797836981713772,
0.04484912380576134,
0.02906380593776703,
0.027742817997932434,
0.04877445846796036,
0.0073094493709504604,
-0.08687575161457062,
0.019835973158478737,
-0.012384108267724514,
-0.006609989330172539,
-0.009640591219067574,
0.03341596946120262,
-0.07566440850496292,
-0.047578636556863785,
0.11865881830453873,
0.014032010920345783,
0.018259990960359573,
0.03371936082839966,
0.0521305613219738,
-0.03138589486479759,
-0.02942279353737831,
0.003286053193733096,
0.013349183835089207,
0.030670419335365295,
-0.005560022313147783,
0.068219855427742,
-0.02809949778020382,
-0.0055993045680224895,
0.08156101405620575,
-0.03788350895047188,
-0.045075878500938416,
0.04106404632329941,
-0.005332999397069216,
-0.03177244961261749,
-0.005604032427072525,
-0.06083131209015846,
-0.0689350962638855,
0.050091702491045,
-0.026152437552809715,
-0.2542818784713745,
0.022573372349143028,
0.04276910796761513,
0.04175150394439697,
-0.013527089729905128,
0.03676570579409599,
0.04011854529380798,
-0.0005398050998337567,
0.0003926929784938693,
0.06117669865489006,
0.02822541445493698,
0.06571333855390549,
-0.0031074027065187693,
0.0030467535834759474,
0.03115685284137726,
0.025678493082523346,
0.03787447139620781,
0.017673786729574203,
0.023374395444989204,
-0.00928253959864378,
0.038984715938568115,
-0.025057511404156685,
0.1692514568567276,
0.0315462164580822,
0.008891197852790356,
0.06817886233329773,
-0.031711604446172714,
0.03128182515501976,
0.06268144398927689,
-0.014527404680848122,
-0.024941755458712578,
0.06429392099380493,
0.029777036979794502,
0.013793997466564178,
0.026920687407255173,
-0.09377880394458771,
0.01756441220641136,
0.039119184017181396,
0.019480936229228973,
-0.017552264034748077,
0.013346357271075249,
0.004388622473925352,
-0.014007733203470707,
0.03392479941248894,
0.06592079252004623,
-0.008599279448390007,
-0.0004543543327599764,
-0.03941858932375908,
-0.08341167867183685,
-0.015002187341451645,
-0.04388749599456787,
-0.04750147834420204,
0.01000052411109209,
0.015114638954401016,
-0.005904435645788908,
0.06721983104944229,
-0.008820482529699802,
-0.03117644041776657,
0.023576820269227028,
0.007888454012572765,
0.013049361295998096,
-0.046644337475299835,
0.09732884913682938,
-0.009431956335902214,
0.01794983260333538
] | [
0.003889472922310233,
0.03395504131913185,
-0.016916440799832344,
0.040908146649599075,
0.0369211807847023,
0.00999720674008131,
-0.0072034383192658424,
0.017675207927823067,
-0.02878187783062458,
-0.018664134666323662,
-0.010851211845874786,
0.0021755388006567955,
0.04669696465134621,
0.027083320543169975,
0.021654492244124413,
-0.00519789382815361,
0.003864295082166791,
-0.005902111064642668,
0.011696570552885532,
-0.03807803615927696,
-0.008479474112391472,
-0.028172247111797333,
0.020326338708400726,
-0.023216016590595245,
0.000954892486333847,
0.024811912328004837,
0.006182624958455563,
-0.02153044566512108,
0.005908167455345392,
-0.09616758674383163,
0.02140868827700615,
-0.010235033929347992,
-0.02739550918340683,
-0.01061113178730011,
-0.018180977553129196,
0.009485306218266487,
0.04985574632883072,
0.00030414629145525396,
-0.04305793344974518,
0.02150058001279831,
0.047209810465574265,
-0.030658476054668427,
-0.012837786227464676,
0.01817113161087036,
-0.01628848724067211,
-0.011774899438023567,
-0.010605255141854286,
-0.027935625985264778,
-0.02888181246817112,
-0.0019221141701564193,
-0.04920351877808571,
-0.026898862794041634,
-0.029421962797641754,
0.04757014662027359,
-0.03378487378358841,
-0.02063080482184887,
-0.05451961234211922,
0.010038139298558235,
-0.005680569913238287,
-0.010651517659425735,
0.026441039517521858,
-0.035478271543979645,
-0.044224679470062256,
-0.017896968871355057,
-0.033067818731069565,
-0.016394535079598427,
0.016900287941098213,
0.02907998114824295,
0.03603360429406166,
0.017433088272809982,
0.018314987421035767,
0.03577089682221413,
-0.05810340493917465,
-0.02568453550338745,
-0.04190078005194664,
-0.011026200838387012,
0.03531333804130554,
0.010480494238436222,
-0.017530284821987152,
0.016193164512515068,
-0.005222701001912355,
0.011290195398032665,
-0.015505971387028694,
0.0019143311074003577,
-0.037924088537693024,
0.01987740769982338,
-0.003900721902027726,
-0.03483855724334717,
0.0032618700060993433,
0.05100669339299202,
-0.08091583102941513,
0.02669624611735344,
-0.0002530233468860388,
-0.0009101955220103264,
-0.09995260834693909,
0.029080864042043686,
0.015562063083052635,
-0.01299303863197565,
0.0034342992585152388,
0.8040215969085693,
0.03819801285862923,
0.032834429293870926,
0.04642345383763313,
0.013087453320622444,
0.02555934526026249,
-0.0481085479259491,
-0.009924966841936111,
0.06561721861362457,
-0.0016310339560732245,
-0.005571892485022545,
-0.022678624838590622,
0.03976445272564888,
0.026718221604824066,
0.0023292761761695147,
0.018306897953152657,
0.03359408676624298,
-0.005027265287935734,
-0.02048107050359249,
-0.014654094353318214,
0.052865054458379745,
0.0037173612508922815,
0.0035492784809321165,
-0.0032717331778258085,
0.03078410029411316,
0.0324467234313488,
-0.10665986686944962,
-0.02887926995754242,
-6.794879708054968e-33,
0.05762847512960434,
-0.004918683785945177,
0.04242374002933502,
0.046182796359062195,
0.010828052647411823,
-0.013971520587801933,
0.01331387460231781,
0.004338023252785206,
0.002119992394000292,
-0.043406639248132706,
-0.015059311874210835,
-0.010761820711195469,
0.001254465663805604,
-0.02067060023546219,
-0.0017537141684442759,
-0.02334202080965042,
-0.0062180026434361935,
0.0012862830189988017,
0.004862375557422638,
0.0023078161757439375,
0.011920740827918053,
0.044931329786777496,
-0.035020262002944946,
-0.002583479741588235,
-0.014939790591597557,
0.03331286832690239,
0.02041636034846306,
-0.02316243201494217,
-0.008895772509276867,
-0.03949921950697899,
-0.02422105334699154,
0.005611661821603775,
-0.002210428472608328,
-0.033578526228666306,
0.04521789774298668,
-0.05755407363176346,
-0.02860115095973015,
-0.014029387384653091,
-0.039098285138607025,
-0.06668297201395035,
-0.043220289051532745,
0.015782685950398445,
-0.038993172347545624,
-0.026747336611151695,
-0.057276200503110886,
-0.0500384196639061,
0.011376170441508293,
-0.020600032061338425,
-0.010886942967772484,
-0.017400870099663734,
0.0275858324021101,
0.017805472016334534,
0.00934975128620863,
0.03821682557463646,
-0.022119086235761642,
0.0184940155595541,
0.037675801664590836,
0.028831036761403084,
-0.01723279431462288,
-0.010625856928527355,
0.014346221461892128,
-0.009168878197669983,
-0.035277027636766434,
0.034769561141729355,
0.04076884686946869,
0.015973364934325218,
-0.005787720438092947,
-0.009818955324590206,
0.021900538355112076,
0.010280388407409191,
-0.035886216908693314,
0.013222030363976955,
0.014643125236034393,
-0.015314029529690742,
0.03011089749634266,
-0.03186020627617836,
0.005788184702396393,
-0.019556907936930656,
0.006573112215846777,
0.07168883085250854,
0.012790472246706486,
-0.026361742988228798,
0.03661423549056053,
0.0019711265340447426,
-0.002212235704064369,
-0.013904549181461334,
0.040497470647096634,
-0.02170916460454464,
0.03842286020517349,
0.015622992068529129,
0.05219242349267006,
0.06719095259904861,
0.024940598756074905,
-0.04269789904356003,
-0.006715800147503614,
6.921473837482805e-33,
-0.016565615311264992,
0.010487185791134834,
-0.03412967175245285,
-0.010465947911143303,
0.06853191554546356,
-0.009709625504910946,
-0.005532094743102789,
0.060837432742118835,
-0.024057479575276375,
0.02441372536122799,
-0.025608722120523453,
-0.03289903700351715,
-0.021080084145069122,
0.02904309332370758,
0.03772822022438049,
-0.01617751643061638,
0.034240830689668655,
-0.0795222595334053,
0.011455436237156391,
0.0021306010894477367,
-0.009437947534024715,
-0.011530053801834583,
0.03220058232545853,
-0.0010628122836351395,
0.05848751962184906,
0.010892343707382679,
-0.00719482870772481,
0.011783404275774956,
-0.03953441232442856,
-0.017666440457105637,
0.04297041893005371,
-0.05673341825604439,
-0.003494773292914033,
-0.04811206832528114,
0.024575451388955116,
-0.007714446634054184,
-0.0028556904289871454,
0.050872355699539185,
0.008702042512595654,
0.0014895526692271233,
-0.011583245359361172,
-0.01654839515686035,
-0.0008356966427527368,
0.05124548450112343,
0.0338091216981411,
0.016941793262958527,
-0.03411483392119408,
-0.009955047629773617,
-0.014902281574904919,
0.0324268639087677,
-0.019229808822274208,
0.011894979514181614,
-0.016535120084881783,
0.027153709903359413,
0.020894287154078484,
-0.045022379606962204,
0.030876753851771355,
0.02091536670923233,
0.005841593723744154,
-0.004258597735315561,
0.0029680884908884764,
-0.02817937545478344,
-0.030589690431952477,
0.0014907396398484707,
-0.004862979520112276,
-0.018533581867814064,
-0.0072170887142419815,
0.011198882944881916,
-0.03454659879207611,
-0.009522128850221634,
0.0007656231173314154,
-0.04574277624487877,
-0.030216816812753677,
0.04544255882501602,
0.08143895119428635,
-0.03207141533493996,
-0.01999504305422306,
0.011149113066494465,
-0.06235385313630104,
0.014817058108747005,
0.015203133225440979,
0.03856702521443367,
-0.03840230405330658,
-0.02281949855387211,
0.04097816348075867,
-0.01101568341255188,
0.02050224505364895,
0.002135928487405181,
-0.06323724240064621,
-0.003342176554724574,
0.03485988825559616,
-0.03385498747229576,
-0.07021113485097885,
0.032411810010671616,
-0.004611006006598473,
-1.217173561940399e-8,
-0.07336301356554031,
-0.008595259860157967,
-0.01920952834188938,
-0.00008613467798568308,
0.024649744853377342,
0.02326449565589428,
-0.031023059040308,
0.005712063517421484,
0.03460724279284477,
0.007049676962196827,
0.0371372289955616,
-0.03387099876999855,
0.020170312374830246,
0.008395747281610966,
0.035626087337732315,
-0.056689463555812836,
-0.008785491809248924,
-0.03255440294742584,
0.0217897891998291,
0.02866203337907791,
0.014974222518503666,
0.027776876464486122,
-0.03177481144666672,
0.019571823999285698,
-0.016307536512613297,
-0.001653156359679997,
0.07229406386613846,
-0.07048754394054413,
-0.005309356842190027,
-0.016238698735833168,
-0.0374319814145565,
0.0024312040768563747,
-0.004779393784701824,
0.023106491193175316,
-0.04487933591008186,
0.0006834163214080036,
0.047352634370326996,
0.028324423357844353,
-0.010152570903301239,
0.04185907542705536,
-0.00011515402002260089,
0.03831762820482254,
-0.012196720577776432,
-0.008099174126982689,
0.010677292011678219,
0.01793055422604084,
-0.016446491703391075,
0.013814393430948257,
0.03355948254466057,
-0.006462034769356251,
-0.03254613280296326,
0.013187467120587826,
0.016818342730402946,
-0.005654896143823862,
0.04057835415005684,
-0.017120638862252235,
0.02145308069884777,
-0.05101118981838226,
-0.017805099487304688,
0.0003473117540124804,
0.05051127448678017,
0.020641719922423363,
-0.04100625589489937,
-0.003602095879614353
] | neo4j-2-2-3-unmanaged-extensions-creating-gzipped-streamed-responses-with-jetty | https://markhneedham.com/blog/2015/08/10/neo4j-2-2-3-unmanaged-extensions-creating-gzipped-streamed-responses-with-jetty |
false | 2015-08-19 23:27:42 | Python: Extracting Excel spreadsheet into CSV files | [
"python"
] | [
"Python"
] | I've been playing around with the http://data.gov.uk/dataset/road-accidents-safety-data[Road Safety open data set] and the download comes with several CSV files and an excel spreadsheet containing the legend.
There are 45 sheets in total and each of them looks like this:
image::{{<siteurl>}}/uploads/2015/08/2015-08-17_23-33-19.png[2015 08 17 23 33 19]
I wanted to create a CSV file for each sheet so that I can import the data set into Neo4j using the http://neo4j.com/docs/stable/query-load-csv.html[LOAD CSV command].
I came across the http://www.python-excel.org/[Python Excel website] which pointed me at the +++<cite>+++xlrd+++</cite>+++ library since I'm working with a pre 2010 Excel file.
The https://secure.simplistix.co.uk/svn/xlrd/trunk/xlrd/doc/xlrd.html?p=4966#sheet.Cell-class[main documentation is very extensive] but I found the https://github.com/python-excel/xlrd[github example] much easier to follow.
I ended up with the following script which iterates through all but the first two sheets in the spreadsheet - the first two sheets contain instructions rather than data:
[source,python]
----
from xlrd import open_workbook
import csv
wb = open_workbook('Road-Accident-Safety-Data-Guide-1979-2004.xls')
for i in range(2, wb.nsheets):
sheet = wb.sheet_by_index(i)
print sheet.name
with open("data/%s.csv" %(sheet.name.replace(" ","")), "w") as file:
writer = csv.writer(file, delimiter = ",")
print sheet, sheet.name, sheet.ncols, sheet.nrows
header = [cell.value for cell in sheet.row(0)]
writer.writerow(header)
for row_idx in range(1, sheet.nrows):
row = [int(cell.value) if isinstance(cell.value, float) else cell.value
for cell in sheet.row(row_idx)]
writer.writerow(row)
----
I've replaced spaces in the sheet name so that the file name on a disk is a bit easier to work with. For some reason the numeric values were all floats whereas I wanted them as ints so I had to explicitly apply that transformation.
Here are a few examples of what the CSV files look like:
[source,bash]
----
$ cat data/1stPointofImpact.csv
code,label
0,Did not impact
1,Front
2,Back
3,Offside
4,Nearside
-1,Data missing or out of range
$ cat data/RoadType.csv
code,label
1,Roundabout
2,One way street
3,Dual carriageway
6,Single carriageway
7,Slip road
9,Unknown
12,One way street/Slip road
-1,Data missing or out of range
$ cat data/Weather.csv
code,label
1,Fine no high winds
2,Raining no high winds
3,Snowing no high winds
4,Fine + high winds
5,Raining + high winds
6,Snowing + high winds
7,Fog or mist
8,Other
9,Unknown
-1,Data missing or out of range
----
And that's it. Not too difficult! | null | null | [
0.016802670434117317,
0.00522230751812458,
-0.014510229229927063,
0.03900822624564171,
0.08570874482393265,
0.004831978119909763,
-0.01104409247636795,
0.017720770090818405,
0.033123165369033813,
-0.016233310103416443,
-0.010318649001419544,
-0.005810012109577656,
-0.05664874613285065,
0.01969258300960064,
0.004846151918172836,
0.04036198556423187,
0.0658068060874939,
0.023147758096456528,
0.03229610249400139,
-0.0075942943803966045,
0.012405100278556347,
0.07461930066347122,
-0.025566374883055687,
0.050328899174928665,
0.01114473957568407,
-0.031144609674811363,
0.008280682377517223,
0.002170299179852009,
-0.04264616221189499,
-0.005088343750685453,
0.04155383259057999,
-0.029803302139043808,
0.011015946045517921,
0.015923677012324333,
0.0545162670314312,
-0.0065257130190730095,
-0.016264522448182106,
-0.012841707095503807,
-0.012345176190137863,
0.006570851430296898,
-0.060405995696783066,
0.025166431441903114,
-0.05725065991282463,
-0.0034032021649181843,
-0.03995979577302933,
0.025803804397583008,
0.0058740596286952496,
0.0323825404047966,
-0.002593894489109516,
0.021269889548420906,
-0.04282054677605629,
0.03023921512067318,
-0.014860698021948338,
-0.04468783363699913,
0.007288532797247171,
0.05886787176132202,
0.011339626275002956,
-0.054677814245224,
0.052054304629564285,
-0.021357707679271698,
0.010150042362511158,
-0.004144907463341951,
-0.006018387153744698,
0.043082986027002335,
0.023076526820659637,
-0.04463288187980652,
-0.02129535749554634,
0.07718551903963089,
-0.039269860833883286,
-0.03625044599175453,
-0.015175711363554,
0.004051799885928631,
-0.015484497882425785,
0.011656075716018677,
-0.015445386990904808,
-0.05382436141371727,
-0.0030587827786803246,
0.03372200205922127,
0.004654093645513058,
0.04220183566212654,
0.008162464015185833,
0.02620931714773178,
-0.0039816685020923615,
0.02715584821999073,
0.01268489845097065,
-0.02869355119764805,
-0.06118299812078476,
-0.014502649195492268,
-0.03882730379700661,
0.04340161010622978,
-0.0032034909818321466,
-0.024566173553466797,
-0.007244043983519077,
0.025767777115106583,
-0.010949918068945408,
-0.014607498422265053,
0.019687216728925705,
0.008283301256597042,
0.006061420775949955,
0.0190630741417408,
-0.04939498379826546,
-0.02367112785577774,
0.012871390208601952,
0.035485416650772095,
-0.07569067925214767,
0.006518390495330095,
-0.01723434403538704,
-0.008346022106707096,
0.010264480486512184,
-0.0029820878989994526,
-0.018594402819871902,
-0.0318322479724884,
-0.05401648208498955,
0.010241728276014328,
-0.09054545313119888,
0.04197203740477562,
0.022632865235209465,
-0.019922062754631042,
-0.021177133545279503,
-0.004861696623265743,
0.01418738067150116,
0.006806160788983107,
-0.0016004018252715468,
0.0597984716296196,
-0.0097263865172863,
0.04869776591658592,
-0.03327099606394768,
0.059561677277088165,
0.010560947470366955,
-0.06044576317071915,
-0.013611910864710808,
0.06766467541456223,
-0.05121497064828873,
0.009579421021044254,
0.009131052531301975,
0.0058766803704202175,
-0.029939888045191765,
0.028226887807250023,
0.057387519627809525,
0.03981052711606026,
0.03891649842262268,
-0.023430772125720978,
0.0174714308232069,
0.017321132123470306,
0.03580327332019806,
0.025514699518680573,
-0.04503585398197174,
-0.016606910154223442,
-0.061702169477939606,
-0.00028972537256777287,
0.038082703948020935,
0.025235675275325775,
0.07771717011928558,
-0.006913102697581053,
-0.0008650298696011305,
0.12318472564220428,
0.04321212321519852,
0.03616410493850708,
-0.012273810803890228,
-0.0015071225352585316,
0.03641707822680473,
0.06165212020277977,
0.008275922387838364,
0.04422057047486305,
-0.045126792043447495,
-0.019558532163500786,
-0.017949245870113373,
0.05441379174590111,
-0.033873870968818665,
-0.015028145164251328,
-0.06254304200410843,
-0.04134213924407959,
0.06897736340761185,
-0.029710521921515465,
-0.004786895588040352,
0.055691007524728775,
0.09427933394908905,
0.02717009373009205,
0.020008444786071777,
-0.007940586656332016,
-0.0793096125125885,
0.025018276646733284,
0.017206622287631035,
0.037491414695978165,
0.030466295778751373,
-0.01146634854376316,
0.10237951576709747,
0.031244859099388123,
0.007907276973128319,
0.03231865540146828,
-0.05210801213979721,
-0.0702567845582962,
0.003076188964769244,
-0.0263513270765543,
0.02195477858185768,
-0.043566588312387466,
0.03494681045413017,
0.06216655671596527,
-0.0025400291197001934,
0.05242112651467323,
0.00009285796113545075,
-0.0006225401884876192,
0.037872474640607834,
-0.05832435190677643,
-0.056595366448163986,
0.04317360371351242,
0.023333586752414703,
-0.02154403366148472,
-0.030325429514050484,
0.0006841777940280735,
-0.008231041952967644,
0.05051042512059212,
0.04855113476514816,
0.008633031509816647,
0.041740089654922485,
0.016026772558689117,
0.056441377848386765,
0.00714521761983633,
0.04557424411177635,
-0.07117006182670593,
0.03303355723619461,
0.013797094114124775,
-0.00966862216591835,
-0.04064895212650299,
-0.022747961804270744,
0.12624582648277283,
0.06260351836681366,
-0.010748187080025673,
-0.07878171652555466,
0.0023300896864384413,
-0.007942578755319118,
-0.04422461614012718,
-0.011999529786407948,
0.030590415000915527,
-0.012787153013050556,
0.026624293997883797,
-0.028550036251544952,
0.007559772115200758,
-0.02066020667552948,
-0.044031355530023575,
0.028721291571855545,
0.05352889373898506,
-0.014020826667547226,
0.034061022102832794,
0.033708058297634125,
-0.037891171872615814,
0.012079538777470589,
-0.029071254655718803,
-0.07191526889801025,
0.0076466272585093975,
-0.0019982820376753807,
0.0023764471989125013,
0.050431814044713974,
-0.014967679977416992,
-0.05670752376317978,
-0.02802484855055809,
-0.045663319528102875,
0.02101011388003826,
0.06979437172412872,
0.059702299535274506,
-0.001215279335156083,
0.039572104811668396,
-0.01934118941426277,
0.012671055272221565,
-0.00828634761273861,
-0.04389064386487007,
-0.05376237630844116,
-0.03816721960902214,
0.02407541126012802,
0.016404036432504654,
0.02704460360109806,
0.029863877221941948,
0.018872437998652458,
0.02391771599650383,
0.019047090783715248,
-0.0009477105340920389,
0.05186617374420166,
-0.006380198057740927,
-0.005710474215447903,
-0.031478703022003174,
-0.018154438585042953,
0.05452908203005791,
-0.011197811923921108,
-0.018060166388750076,
0.025805817916989326,
-0.0549142062664032,
0.03150249272584915,
-0.0717410296201706,
-0.030350307002663612,
0.001072979299351573,
-0.020776525139808655,
0.014429238624870777,
0.025089021772146225,
-0.022145070135593414,
0.027892913669347763,
0.008640984073281288,
-0.007997450418770313,
0.010662931948900223,
0.00200081430375576,
0.040760647505521774,
0.024531571194529533,
0.03140942007303238,
0.06773632764816284,
-0.03477342426776886,
-0.012707401998341084,
-0.024981405586004257,
-0.0022801561281085014,
-0.0438641719520092,
-0.275322824716568,
0.02882499434053898,
-0.015551181510090828,
-0.04989796131849289,
0.027293629944324493,
-0.006993623450398445,
-0.016701724380254745,
-0.05483512207865715,
-0.04257771745324135,
-0.002013604622334242,
-0.01175406202673912,
-0.029099786654114723,
-0.026149220764636993,
0.025934649631381035,
0.01922178827226162,
0.02864457108080387,
0.0012124390341341496,
-0.051393259316682816,
0.011396515183150768,
0.04074935242533684,
-0.005169545765966177,
-0.055392615497112274,
-0.024004610255360603,
0.05128682032227516,
-0.006631661672145128,
0.05976497754454613,
-0.07449352741241455,
0.00583430053666234,
-0.06968721747398376,
-0.02978043630719185,
0.04126077517867088,
-0.059060607105493546,
0.01995297521352768,
-0.02127966657280922,
-0.0268195029348135,
-0.019708164036273956,
0.03148941695690155,
0.023922644555568695,
-0.012332272715866566,
-0.024907311424613,
-0.03440054506063461,
-0.045020971447229385,
-0.015866894274950027,
-0.022174473851919174,
0.0759936049580574,
-0.010690110735595226,
-0.062328994274139404,
0.017305638641119003,
-0.030204450711607933,
0.0736047700047493,
-0.0421573668718338,
-0.01624152436852455,
-0.03974859416484833,
0.03670921549201012,
-0.03869546949863434,
0.011736763641238213,
-0.009751250967383385,
0.009129908867180347,
-0.04010932892560959,
-0.04233580455183983,
-0.008273069746792316,
-0.03632189333438873,
-0.017458738759160042,
-0.04414883255958557,
-0.0056731244549155235,
-0.04608302190899849,
-0.053753867745399475,
-0.04372020810842514,
0.03424428775906563,
0.05158181115984917,
-0.04537305608391762,
0.002684495411813259,
0.01644159108400345,
-0.09055579453706741,
-0.03422195091843605,
-0.0643061175942421,
0.0025268488097935915,
-0.010490929707884789,
-0.022947777062654495,
0.048201318830251694,
-0.034866176545619965,
-0.05120391026139259,
0.053888171911239624,
0.010462997481226921,
-0.019182022660970688,
-0.02261980250477791,
0.030181938782334328,
0.004125639330595732,
-0.03007819689810276,
-0.0034939246252179146,
0.05472259968519211,
-0.01948626898229122,
0.005676336120814085,
0.017729513347148895,
-0.03475458547472954,
0.011652272194623947,
-0.019342176616191864,
0.009258883073925972,
0.01694386452436447,
-0.0071602691896259785,
0.04093775525689125,
-0.035039372742176056,
-0.01644509844481945,
-0.06328453868627548,
-0.015356753021478653,
-0.038268882781267166,
-0.028875434771180153,
0.03537147492170334,
0.003953458741307259,
0.010654154233634472,
0.0041994135826826096,
-0.011164073832333088,
0.044395074248313904,
-0.06055907905101776,
0.012560221366584301,
-0.012685639783740044,
0.04098903387784958,
-0.009571564383804798,
0.037318937480449677,
-0.025551365688443184,
-0.05270952358841896,
-0.006059648469090462,
0.011594359762966633,
-0.029881471768021584,
-0.05236061289906502,
-0.022603409364819527,
0.021050285547971725,
-0.019533319398760796,
0.03452055901288986,
0.028446350246667862,
-0.05146094039082527,
0.004521696828305721,
0.025277890264987946,
-0.051095250993967056,
-0.006168642081320286,
-0.028668420389294624,
-0.057190388441085815,
-0.011606470681726933,
-0.014407161623239517,
0.015257114544510841,
0.010708745568990707,
0.017024675384163857,
0.005371544975787401,
0.01789258047938347,
0.06275133788585663,
-0.009006238542497158,
0.023258624598383904,
0.026936184614896774,
0.012100779451429844,
-0.011813024058938026,
-0.00939120538532734,
0.001433061552233994,
0.0029393776785582304,
-0.03955791890621185,
-0.054698627442121506,
-0.0010027025127783418,
0.040513720363378525,
0.006019155960530043,
-0.010734809562563896,
-0.029313096776604652,
0.03676610812544823,
-0.05266851559281349,
-0.01645406149327755,
0.009791919961571693,
0.01040785200893879,
0.042466431856155396,
0.005677646026015282,
0.0209975428879261,
0.009689589031040668,
0.020195983350276947,
0.025695348158478737,
0.0011394217144697905,
-0.03959370777010918,
-0.026065055280923843,
-0.026335038244724274,
0.021137459203600883,
0.02002737857401371,
0.01271531917154789,
0.007233862299472094,
0.02250666730105877,
-0.04105769097805023,
-0.018626203760504723,
0.002302151406183839,
-0.017934288829565048,
0.03567594289779663,
0.04371578246355057,
-0.054876621812582016,
-0.020534230396151543,
0.009601747617125511,
-0.025017550215125084,
-0.02024640515446663,
-0.029144607484340668,
-0.02619178406894207,
0.026245424523949623,
-0.0139612453058362,
-0.06674269586801529,
0.030859626829624176,
-0.010540180839598179,
0.017502794042229652,
0.02405991218984127,
-0.007867594249546528,
-0.0014883899129927158,
-0.0038887830451130867,
0.027243362739682198,
0.018352480605244637,
-0.04105798527598381,
-0.02081845887005329,
-0.011762087233364582,
0.014661264605820179,
0.004647740162909031,
0.003837547730654478,
-0.06130172312259674,
-0.03920283168554306,
-0.0007718727574683726,
0.032871365547180176,
-0.02088174596428871,
-0.03383324667811394,
-0.06183677166700363,
0.002250680001452565,
-0.03240928426384926,
0.0021600525360554457,
0.008569986559450626,
0.002770649269223213,
-0.020661713555455208,
-0.011793124489486217,
0.01757204718887806,
-0.015687430277466774,
-0.03369780629873276,
0.040621329098939896,
-0.015964873135089874,
0.005423554684966803,
-0.00443623960018158,
0.027699094265699387,
0.005875168368220329,
-0.011803059838712215,
-0.0026175084058195353,
-0.008540371432900429,
0.004585264716297388,
0.021799800917506218,
0.04432177543640137,
0.00806477665901184,
0.02690473012626171,
-0.009278750978410244,
-0.013874641619622707,
0.022084878757596016,
-0.0018867690814659,
0.0018043797463178635,
-0.014235530979931355,
0.03941160440444946,
0.0540456660091877,
-0.009386816062033176,
-0.005304422229528427,
0.022163692861795425,
-0.06204505264759064,
0.05746934935450554,
-0.019763372838497162,
-0.0420088954269886,
-0.03705524280667305,
-0.021686453372240067,
0.029744673520326614,
0.0219890084117651,
0.023434307426214218,
-0.04545365646481514,
0.04714205861091614,
0.022977914661169052,
0.03280361741781235,
0.04349062219262123,
-0.006197533570230007,
0.04423811659216881,
-0.05723218247294426,
-0.003181407693773508,
-0.07494474202394485,
0.032403457909822464,
0.04139914736151695,
0.003262761514633894,
-0.007479112129658461,
-0.00905049778521061,
-0.00891869142651558,
0.023257864639163017,
-0.06615061312913895,
-0.02155807614326477,
0.03883063420653343,
-0.007584431208670139,
0.0186745785176754,
0.0013770144432783127,
-0.015156807377934456,
0.0338500551879406,
0.0675673857331276,
-0.056911248713731766,
-0.01593518629670143,
-0.03453684225678444,
0.06451337039470673,
-0.009318196214735508,
0.05215967819094658,
-0.013195020146667957,
-0.023123200982809067,
0.06394369900226593,
0.02140478603541851,
0.030671950429677963,
0.05543634295463562,
-0.013246995396912098,
0.04984142631292343,
0.0018138288287445903,
-0.048561301082372665,
-0.0035068721044808626,
0.03015926107764244,
0.019874805584549904,
-0.030664637684822083,
0.016262074932456017,
0.022728843614459038,
0.027256658300757408,
-0.040912237018346786,
0.06925638765096664,
0.01258075051009655,
-0.03454152122139931,
-0.04431922733783722,
0.02573367767035961,
-0.061674363911151886,
0.001973791280761361,
-0.006820708513259888,
-0.017714302986860275,
-0.005986082833260298,
0.024988248944282532,
-0.04845023527741432,
0.005196235608309507,
0.06717396527528763,
-0.03956581652164459,
-0.014718964695930481,
0.008457556366920471,
0.07603985071182251,
0.08662160485982895,
0.04777294769883156,
0.01989153027534485,
0.06370317190885544,
-0.02025950886309147,
-0.032627250999212265,
-0.005782799329608679,
-0.022923395037651062,
0.02785198576748371,
-0.0019231779733672738,
-0.03257297724485397,
0.03702286258339882,
-0.004456881899386644,
0.05470345541834831,
0.009665780700743198,
-0.015298345126211643,
-0.02596631832420826,
-0.013355299830436707,
0.037728410214185715,
0.05249428749084473,
0.0008458166848868132,
0.03936994820833206,
-0.02419748529791832,
0.005531999748200178,
0.04305410757660866,
0.008954791352152824,
-0.031749676913022995,
0.010504532605409622,
-0.029415372759103775,
-0.001890532555989921,
-0.008784298785030842,
0.06973391771316528,
0.07170669734477997,
-0.0034457591827958822,
-0.026457982137799263,
-0.009662045165896416,
0.04629627615213394,
-0.016829805448651314,
0.010627228766679764,
-0.002842454006895423,
0.008894417434930801,
0.013891136273741722,
-0.04584074392914772,
-0.03337712213397026,
-0.0629277303814888,
-0.06110590696334839,
-0.002076683333143592,
-0.021683136001229286,
0.00742183206602931,
0.02792026288807392,
-0.0412716343998909,
-0.023181786760687828,
-0.03477241098880768,
-0.0634152740240097,
-0.023234976455569267,
-0.07916246354579926,
-0.028537394478917122,
0.011558538302779198,
-0.01897619292140007,
-0.02092377468943596,
-0.019647981971502304,
-0.03969543054699898,
-0.011217140592634678,
0.020904455333948135,
-0.030493056401610374,
-0.008365525864064693,
0.005569210276007652,
0.01571495085954666,
0.00004156605791649781,
0.014393770135939121,
0.0429011769592762,
-0.0010567068820819259,
-0.02760941907763481,
-0.008926201611757278,
-0.007526914589107037,
0.043626077473163605,
0.010806979611515999,
0.030377596616744995,
-0.08171631395816803,
0.0013250047340989113,
0.003609286854043603,
0.005776844918727875,
-0.09225306659936905,
0.016349855810403824,
0.05673800781369209,
0.016214068979024887,
0.029286108911037445,
-0.02193559892475605,
-0.006785685196518898,
-0.03720483556389809,
-0.0011157965054735541,
-0.002346209716051817,
0.021797174587845802,
0.028640173375606537,
-0.020665377378463745,
0.078727126121521,
0.03012104146182537,
-0.0012694402830675244,
-0.018205059692263603,
0.006610230077058077,
-0.04581387713551521,
0.01428698655217886,
-0.04322398453950882,
-0.06282419711351395,
-0.07331191748380661,
-0.05381912365555763,
-0.02562597766518593,
0.01882130093872547,
-0.031340908259153366,
-0.0038064972031861544,
0.009475433267652988,
0.034979261457920074,
-0.016124244779348373,
0.04517265781760216,
-0.017820939421653748,
0.0035201653372496367,
-0.04559445008635521,
-0.05379597470164299,
-0.003868452738970518,
0.053553078323602676,
0.027517879381775856,
0.003285663202404976,
0.003739929525181651,
-0.047421883791685104,
0.04283871129155159,
-0.02780572697520256,
-0.01594984345138073,
0.05583823099732399,
-0.0028789895586669445,
0.025378316640853882
] | [
-0.04547770693898201,
-0.0003915376728400588,
0.00016486931417603046,
-0.03859624266624451,
0.08774889260530472,
-0.010064722038805485,
-0.03015158884227276,
0.005108738783746958,
0.014997425489127636,
0.01850552298128605,
-0.00770887965336442,
-0.04104674980044365,
-0.01190909557044506,
-0.010998782701790333,
0.0058898767456412315,
-0.02733292244374752,
-0.021399501711130142,
-0.08517013490200043,
-0.005440044216811657,
0.07882194221019745,
-0.025122428312897682,
-0.025632506236433983,
-0.034172434359788895,
-0.05307931452989578,
-0.0030611685942858458,
0.03500538319349289,
0.017719410359859467,
-0.01846962608397007,
-0.026523835957050323,
-0.21163733303546906,
-0.016810646280646324,
-0.0025322390720248222,
-0.012490539811551571,
-0.017176460474729538,
0.01408182643353939,
0.015834014862775803,
0.06016403064131737,
0.021153666079044342,
0.051784150302410126,
0.017092622816562653,
0.02785290963947773,
0.0025172159075737,
-0.036325667053461075,
-0.010410575196146965,
0.03742357715964317,
0.030484173446893692,
-0.006303703412413597,
-0.004384521394968033,
0.04042956233024597,
-0.012666748836636543,
-0.04977993294596672,
-0.007051499094814062,
-0.011230605654418468,
-0.01823730766773224,
-0.025338202714920044,
-0.01447177492082119,
0.03381634131073952,
0.05376143380999565,
0.01627805083990097,
0.05280052870512009,
0.0017693781992420554,
0.007073419634252787,
-0.14037665724754333,
0.08212689310312271,
-0.00387955573387444,
0.02214762195944786,
-0.07889239490032196,
-0.011980186216533184,
-0.022922415286302567,
0.04480545222759247,
-0.02939089946448803,
-0.024340162053704262,
-0.027829250320792198,
0.08017106354236603,
0.010609357617795467,
0.007769855670630932,
-0.015440769493579865,
0.006319158710539341,
-0.011071274057030678,
-0.040758632123470306,
-0.05195823311805725,
0.022630278021097183,
-0.031649019569158554,
-0.005337645765393972,
-0.029753759503364563,
0.01669131964445114,
-0.020242072641849518,
0.0525389164686203,
0.02881319262087345,
0.03521591052412987,
0.043341752141714096,
0.04122263938188553,
0.050719164311885834,
0.03486292436718941,
-0.07391007989645004,
-0.06480732560157776,
0.019337346777319908,
0.020687120035290718,
0.02539592608809471,
0.3888118863105774,
-0.04156798869371414,
-0.045865099877119064,
0.04512252286076546,
0.0664413571357727,
-0.02594579942524433,
-0.015990622341632843,
0.009899314492940903,
-0.049774616956710815,
0.025618018582463264,
-0.0421215295791626,
0.04046431928873062,
-0.024465901777148247,
0.043785665184259415,
-0.09641806036233902,
-0.0077095236629247665,
-0.0029631974175572395,
0.006226339843124151,
-0.022165004163980484,
-0.021014632657170296,
0.02903285063803196,
0.00496720802038908,
-0.0280030257999897,
0.0455307699739933,
0.0019938054028898478,
0.033672820776700974,
0.0014786795945838094,
0.0417930968105793,
0.050442349165678024,
0.05047144368290901,
0.01973334327340126,
0.049687448889017105,
-0.004453209228813648,
-0.07855700701475143,
0.008720874786376953,
-0.016303911805152893,
-0.004524608608335257,
0.04579462483525276,
-0.010910077951848507,
-0.013069490902125835,
0.0007911924039945006,
0.026064779609441757,
-0.04031219333410263,
0.013904653489589691,
0.011872303672134876,
-0.02800547331571579,
0.10588614642620087,
-0.024994628503918648,
-0.03306661918759346,
-0.022474924102425575,
-0.06127147749066353,
0.018048442900180817,
0.02962554059922695,
0.02175501361489296,
-0.054673369973897934,
0.025986820459365845,
0.031716007739305496,
0.08571264892816544,
-0.017646150663495064,
-0.07046549767255783,
-0.017648473381996155,
-0.016022590920329094,
-0.05611617490649223,
-0.016683267429471016,
0.08347246795892715,
0.03180018439888954,
-0.10611024498939514,
-0.03022085689008236,
0.015192878432571888,
0.026234397664666176,
-0.07289096713066101,
0.029286766424775124,
-0.0031517453026026487,
-0.04448090121150017,
-0.000025150651708827354,
0.07349348813295364,
0.009074193425476551,
-0.023685233667492867,
-0.0022078638430684805,
0.06473050266504288,
0.027090687304735184,
-0.005454100202769041,
-0.0008082498097792268,
-0.03626866638660431,
0.011860150843858719,
-0.07862576097249985,
-0.025208329781889915,
-0.08701815456151962,
0.04453585296869278,
-0.03349015489220619,
-0.004688456654548645,
0.0029477898497134447,
-0.00140200846362859,
-0.0725783109664917,
0.050217192620038986,
-0.04524654895067215,
-0.021703369915485382,
-0.00278093502856791,
0.00048383718240074813,
-0.020876845344901085,
-0.04613007605075836,
0.014903984032571316,
-0.017834819853305817,
-0.002370609901845455,
0.0387941338121891,
-0.02561281807720661,
0.0033392240293323994,
0.05494603514671326,
-0.04595249146223068,
0.05521064251661301,
0.02127637155354023,
-0.028925707563757896,
-0.004515691194683313,
-0.019711961969733238,
-0.0018137204460799694,
-0.014540746808052063,
-0.0009582641650922596,
-0.005204937420785427,
-0.006966619752347469,
0.024574484676122665,
0.04747365042567253,
-0.016849426552653313,
-0.05299888923764229,
-0.006469179410487413,
-0.3548867702484131,
-0.043256402015686035,
-0.01558949239552021,
-0.025944869965314865,
0.01615271158516407,
0.016576364636421204,
0.012681236490607262,
-0.006490299478173256,
-0.020926451310515404,
0.04437854886054993,
0.11684978008270264,
-0.003050269326195121,
-0.010876578278839588,
-0.12402429431676865,
0.006949429865926504,
0.01955188624560833,
-0.0252032782882452,
-0.031590621918439865,
-0.04958467185497284,
0.04531484097242355,
0.017040569335222244,
-0.058076292276382446,
-0.04953097179532051,
-0.008570950478315353,
0.014515376649796963,
-0.03983268141746521,
0.11578186601400375,
-0.04885219410061836,
0.0607483871281147,
-0.04381946474313736,
0.023587090894579887,
0.0017543252324685454,
-0.01598380133509636,
-0.06712144613265991,
-0.0014644572511315346,
-0.04257297143340111,
-0.008359553292393684,
0.06855117529630661,
-0.022817937657237053,
-0.008030761033296585,
-0.016009872779250145,
0.018039900809526443,
-0.030450226739048958,
-0.039276257157325745,
-0.00990308728069067,
0.019647208973765373,
-0.03600544482469559,
0.013749757781624794,
0.00008971872739493847,
0.06530100852251053,
0.0010135876946151257,
0.020165683701634407,
0.012174472212791443,
0.04290217161178589,
0.04576248303055763,
-0.039672162383794785,
-0.06091010570526123,
0.027429644018411636,
0.006747378036379814,
0.01551459077745676,
-0.007349139545112848,
0.011717437766492367,
0.054351482540369034,
-0.07415330410003662,
0.0014570540515705943,
0.012151896953582764,
-0.007901627570390701,
-0.01941501721739769,
0.03849288821220398,
-0.012231777422130108,
-0.03463597968220711,
0.10965029895305634,
-0.012884285300970078,
0.013524435460567474,
0.012194434180855751,
0.08012747764587402,
-0.002515483647584915,
0.021012358367443085,
0.05357953533530235,
0.002171273110434413,
0.02772044762969017,
-0.01131793949753046,
0.05268266052007675,
-0.01247008889913559,
0.022734392434358597,
0.04144366458058357,
0.008845232427120209,
-0.018017318099737167,
0.03958144783973694,
-0.006856690160930157,
0.029662935063242912,
-0.03340162709355354,
0.007152436766773462,
-0.019727367907762527,
0.08798906952142715,
-0.019717903807759285,
-0.2757777273654938,
0.03904421254992485,
0.016700511798262596,
0.06488951295614243,
-0.016630521044135094,
-0.021986093372106552,
0.004775645677000284,
-0.005671726074069738,
0.04528379067778587,
0.02210942842066288,
0.028600091114640236,
0.05623218044638634,
0.005409586243331432,
-0.029737800359725952,
0.0131282489746809,
-0.023941928520798683,
0.04959937557578087,
0.03156460076570511,
0.03061346895992756,
0.027439936995506287,
0.015082689933478832,
-0.01585664413869381,
0.16629135608673096,
0.04466602951288223,
0.006624841131269932,
0.039333853870630264,
-0.02730526588857174,
0.003839273937046528,
0.0716092437505722,
0.009125557728111744,
0.019140586256980896,
0.0001253262598766014,
0.015758085995912552,
0.02355785481631756,
0.010582798160612583,
-0.05408602952957153,
-0.03645479679107666,
0.06731369346380234,
0.04810589179396629,
-0.022766657173633575,
-0.02723219431936741,
0.00716774258762598,
-0.0485231950879097,
0.013725534081459045,
0.06556741893291473,
0.0034496719017624855,
-0.024383045732975006,
-0.06131460890173912,
-0.0500885434448719,
-0.01620757393538952,
-0.02860839106142521,
-0.04473915323615074,
-0.05403036251664162,
-0.03767602518200874,
0.014489262364804745,
0.07268331199884415,
0.029222460463643074,
-0.010999293997883797,
0.04150548204779625,
0.011377275921404362,
0.00865563377737999,
-0.07151269167661667,
0.10137048363685608,
0.03369775041937828,
-0.010524812154471874
] | [
-0.002424817066639662,
0.07151973992586136,
-0.04125712066888809,
0.014192279428243637,
-0.012902162037789822,
0.011939803138375282,
-0.010933974757790565,
0.012983717955648899,
0.0032343619968742132,
-0.0164016280323267,
-0.035231076180934906,
-0.010331991128623486,
0.04116960987448692,
-0.03867141902446747,
-0.005020729266107082,
-0.016298899427056313,
-0.000894136552233249,
-0.0018025331664830446,
0.03472055122256279,
0.002517558168619871,
-0.01574086770415306,
0.027186302468180656,
0.019240349531173706,
-0.0342157781124115,
-0.013825230300426483,
0.00948228221386671,
-0.049856606870889664,
-0.00308755855076015,
-0.007595982402563095,
-0.10339025408029556,
-0.023603763431310654,
-0.02802669256925583,
-0.008673259057104588,
0.02913380227982998,
-0.019284075126051903,
-0.01638028211891651,
0.002877594204619527,
0.0429222546517849,
0.007222946733236313,
0.05027024447917938,
0.012122394517064095,
0.020419996231794357,
-0.007931545376777649,
0.004285242408514023,
0.005975947715342045,
-0.0015642676735296845,
-0.01075525302439928,
-0.003740311600267887,
0.0016148112481459975,
-0.0013504427624866366,
-0.06925830990076065,
-0.006277355365455151,
0.006442752201110125,
-0.02227235957980156,
0.007964080199599266,
-0.05323326215147972,
0.01399300154298544,
-0.0016399373998865485,
0.019117167219519615,
-0.019366296008229256,
-0.0033631836995482445,
-0.012472564354538918,
-0.0374736525118351,
-0.02340817078948021,
-0.0002471531042829156,
-0.03372172638773918,
-0.03904293477535248,
0.023957254365086555,
0.019833330065011978,
-0.00010745079634943977,
-0.021425660699605942,
0.05333733186125755,
-0.03373198211193085,
-0.025508016347885132,
-0.021492738276720047,
-0.028761904686689377,
-0.015241670422255993,
-0.04292363300919533,
-0.0076007847674191,
-0.019665390253067017,
-0.0366973951458931,
0.006874945946037769,
0.016024433076381683,
0.028717832639813423,
-0.024736594408750534,
-0.017655298113822937,
0.0009432868100702763,
0.022471275180578232,
-0.012512498535215855,
0.0011222678003832698,
0.011765571311116219,
0.016561396420001984,
0.03759707883000374,
0.04282983019948006,
-0.09664653241634369,
0.018772022798657417,
0.03295981138944626,
0.0072107152082026005,
0.005521745886653662,
0.8187385201454163,
0.01125101838260889,
-0.013764213770627975,
0.020459171384572983,
0.01985526829957962,
0.02923862636089325,
-0.02296358160674572,
0.012120455503463745,
-0.017800329253077507,
0.002904733642935753,
-0.043241627514362335,
0.03744027391076088,
-0.021148983389139175,
0.011700678616762161,
-0.0049467491917312145,
0.003581213764846325,
0.030040545389056206,
-0.044127605855464935,
-0.010333718731999397,
-0.009339047595858574,
-0.01333937793970108,
0.005812345538288355,
0.006227715872228146,
-0.0013159988448023796,
-0.0262223482131958,
0.00509267533197999,
-0.14751113951206207,
0.004148794338107109,
-8.417360928565216e-33,
-0.001353418338112533,
-0.029114481061697006,
0.025844208896160126,
0.026762641966342926,
0.03506520017981529,
-0.00448865070939064,
-0.03312985971570015,
0.009885950945317745,
-0.005135390441864729,
-0.0041449666023254395,
-0.014056870713829994,
0.02316282130777836,
-0.012065673246979713,
0.016291402280330658,
0.004520200192928314,
0.00372879346832633,
-0.01313810795545578,
-0.0029716987628489733,
0.004940391518175602,
0.014631034806370735,
0.04949061572551727,
0.025639329105615616,
0.057261884212493896,
0.04583010450005531,
-0.0036053028889000416,
0.01713576167821884,
0.014473119750618935,
-0.004744962323457003,
-0.000684250786434859,
-0.03885677084326744,
-0.05867069959640503,
0.03235660865902901,
-0.006776250433176756,
-0.08098093420267105,
0.023831160739064217,
-0.054508741945028305,
-0.02424641139805317,
-0.00851612538099289,
-0.03411359339952469,
-0.018251249566674232,
-0.048599354922771454,
-0.0172496996819973,
-0.005212769377976656,
-0.002395218936726451,
-0.025510426610708237,
-0.009352474473416805,
-0.013100826181471348,
0.0630035549402237,
-0.01009529922157526,
0.03602229803800583,
-0.0010645260335877538,
0.005692402366548777,
0.019497377797961235,
-0.024607131257653236,
-0.04193071648478508,
0.03205785155296326,
-0.0202635545283556,
0.01743939146399498,
0.007372185587882996,
0.006904528476297855,
0.02951628528535366,
-0.014820587821304798,
0.0034082510974258184,
0.02252332866191864,
-0.021969974040985107,
0.008094804361462593,
0.05835628882050514,
0.031986963003873825,
0.0012862531002610922,
-0.00862845778465271,
-0.03828984498977661,
0.02674507535994053,
0.0037867436185479164,
-0.03955710306763649,
0.055126089602708817,
-0.03192107379436493,
0.020946484059095383,
0.008480212651193142,
0.03451042249798775,
0.015264824964106083,
0.025876061990857124,
-0.010368256829679012,
-0.020265616476535797,
-0.02865256741642952,
-0.038124434649944305,
0.015981443226337433,
0.06149815395474434,
0.03547138348221779,
-0.0029403595253825188,
0.03262835741043091,
0.00047435518354177475,
0.00741063617169857,
-0.025065449997782707,
0.0026448587886989117,
-0.03819775953888893,
7.946446136682299e-33,
0.04101209715008736,
-0.00921667367219925,
-0.01796613819897175,
-0.005218384321779013,
0.05708412826061249,
0.014694440178573132,
0.041274141520261765,
0.007365334313362837,
-0.012485098093748093,
0.040393244475126266,
0.01996876858174801,
-0.028827538713812828,
-0.022182082757353783,
0.05347645655274391,
0.05389999598264694,
0.004985061939805746,
-0.02601582184433937,
0.010655404068529606,
-0.06028063967823982,
-0.03764687106013298,
-0.05028065666556358,
-0.01470993086695671,
0.015882885083556175,
0.0553676076233387,
0.04558604583144188,
0.024307481944561005,
-0.04059223085641861,
-0.008365273475646973,
-0.02361532673239708,
0.030430182814598083,
-0.010612989775836468,
-0.002205655910074711,
-0.001959918299689889,
-0.013006214052438736,
-0.03215423598885536,
0.044611603021621704,
0.020282059907913208,
-0.011619863100349903,
0.020624103024601936,
0.01423358079046011,
0.03196670860052109,
0.010558271780610085,
-0.01615142822265625,
0.020440062507987022,
0.040709491819143295,
0.049178048968315125,
-0.002793553750962019,
0.01994251273572445,
-0.008373330347239971,
0.015066392719745636,
-0.02080671116709709,
0.033292900770902634,
0.005822520237416029,
0.017415238544344902,
0.0560976006090641,
-0.012911545112729073,
-0.012220824137330055,
0.03734235838055611,
-0.03804188221693039,
-0.012745165266096592,
-0.0592082180082798,
-0.01391493808478117,
-0.029604777693748474,
0.03172166645526886,
-0.025129934772849083,
0.0073152389377355576,
-0.051496922969818115,
-0.012679263018071651,
0.007673364132642746,
-0.002801541006192565,
0.005866845138370991,
-0.029507599771022797,
0.006385738495737314,
-0.02526790089905262,
-0.0209732074290514,
0.0006863916642032564,
-0.04550214111804962,
-0.02150484174489975,
-0.06810396909713745,
0.0329107791185379,
0.054897911846637726,
-0.026289349421858788,
0.045698199421167374,
0.0034763833973556757,
0.015206991694867611,
0.028911905363202095,
-0.015730582177639008,
-0.035133179277181625,
0.00984846893697977,
0.029799820855259895,
-0.03476574644446373,
-0.020416010171175003,
-0.0020030501764267683,
0.003907419741153717,
-0.007537454832345247,
-1.3294607192904095e-8,
-0.043059587478637695,
0.038721878081560135,
-0.003573891008272767,
0.0017306572990491986,
0.03221061825752258,
0.027478381991386414,
-0.021606583148241043,
0.014711437746882439,
-0.004878148902207613,
0.03236805647611618,
0.045496534556150436,
-0.041671331971883774,
0.005470630247145891,
0.013015600852668285,
-0.020719600841403008,
-0.012844257056713104,
0.006850307807326317,
-0.03437718749046326,
0.028701283037662506,
-0.02152107283473015,
0.0274276714771986,
0.02848857082426548,
-0.007616998162120581,
0.03918706253170967,
0.03220772743225098,
-0.021991310641169548,
-0.013866540975868702,
-0.09416849166154861,
0.026583656668663025,
-0.007427738979458809,
0.0004133800102863461,
-0.04560518264770508,
-0.013867568224668503,
-0.0020759101025760174,
-0.005056147929280996,
-0.04404355213046074,
0.027416609227657318,
0.03182125836610794,
0.030004285275936127,
0.016916025429964066,
0.006596807390451431,
-0.017232174053788185,
-0.05897108092904091,
-0.041095469146966934,
-0.0035586392041295767,
0.0007548039429821074,
-0.05956396088004112,
0.011674752458930016,
0.001013534958474338,
-0.020034069195389748,
0.021323250606656075,
-0.021840684115886688,
0.03145885840058327,
0.07759155333042145,
0.0391443707048893,
-0.016389762982726097,
-0.013019229285418987,
0.014453105628490448,
0.007707586977630854,
-0.016743522137403488,
0.014372197911143303,
0.0066037350334227085,
-0.0005236876313574612,
-0.02041800133883953
] | python-extracting-excel-spreadsheet-into-csv-files | https://markhneedham.com/blog/2015/08/19/python-extracting-excel-spreadsheet-into-csv-files |
false | 2015-08-19 23:27:28 | Unix: Stripping first n bytes in a file / Byte Order Mark (BOM) | [
"unix"
] | [
"Shell Scripting"
] | I've previously written http://www.markhneedham.com/blog/2012/10/07/mac-os-x-removing-byte-order-mark-with-an-editor/[a couple] http://www.markhneedham.com/blog/2012/09/03/a-rogue-357273277-utf-8-byte-order-mark/[of blog posts] showing how to strip out the byte order mark (BOM) from CSV files to make loading them into Neo4j easier and today I came across another way to clean up the file using tail.
The BOM is 3 bytes long at the beginning of the file so if we know that a file contains it then we can strip out those first 3 bytes tail like this:
[source,bash]
----
$ time tail -c +4 Casualty7904.csv > Casualty7904_stripped.csv
real 0m31.945s
user 0m31.370s
sys 0m0.518s
----
The -c command is described thus;
[source,bash]
----
-c number
The location is number bytes.
----
So in this case we start reading at byte 4 (i.e. skipping the first 3 bytes) and then direct the output into a new file.
Although using tail is quite simple, it took 30 seconds to process a 300MB CSV file which might actually be slower than opening the file with a Hex editor and manually deleting the bytes! | null | null | [
-0.014436747878789902,
-0.0024407028686255217,
0.0002667205408215523,
0.03342527523636818,
0.09791658073663712,
-0.025263510644435883,
0.019713589921593666,
0.038983769714832306,
0.0026755875442177057,
-0.010569014586508274,
-0.004337886814028025,
0.0009477995918132365,
-0.04389424994587898,
0.01338523905724287,
-0.016225408762693405,
0.053669512271881104,
0.06337926536798477,
-0.008901999332010746,
0.02455606311559677,
-0.022743655368685722,
0.011737320572137833,
0.033511653542518616,
-0.0014763179933652282,
0.0368339829146862,
0.010218543000519276,
-0.002161288633942604,
-0.004496314097195864,
0.0076704248785972595,
-0.04470650106668472,
0.008838535286486149,
0.047656863927841187,
-0.024011846631765366,
0.010587045922875404,
-0.0007338952855207026,
0.0318586491048336,
0.014273646287620068,
-0.051443278789520264,
0.008035192266106606,
-0.0055490960367023945,
0.027512891218066216,
-0.07857926934957504,
0.03185776248574257,
-0.02714187651872635,
0.026026489213109016,
-0.05437983199954033,
-0.007808452006429434,
-0.034003984183073044,
0.007762391120195389,
-0.02881692163646221,
0.00646997382864356,
-0.06473472714424133,
0.030037621036171913,
-0.012224717065691948,
-0.0493292510509491,
0.023877456784248352,
0.052274275571107864,
0.0035514868795871735,
-0.05051996558904648,
0.03240125998854637,
-0.03110468201339245,
0.005578688811510801,
-0.0586371012032032,
-0.01449936255812645,
0.02825321815907955,
-0.011248281225562096,
-0.06743902713060379,
-0.0007099997019395232,
0.06029361113905907,
-0.025120070204138756,
0.0014615701511502266,
0.018040381371974945,
0.022821009159088135,
-0.0367332361638546,
-0.013813515193760395,
0.035315241664648056,
-0.0448182076215744,
0.020226575434207916,
0.04407461732625961,
0.015625938773155212,
0.06332895904779434,
-0.042263709008693695,
0.020470984280109406,
0.02050134353339672,
0.021590301766991615,
0.023750724270939827,
-0.037179067730903625,
-0.028263136744499207,
-0.014311416074633598,
-0.05467918887734413,
0.04224279522895813,
0.015857011079788208,
-0.05047737807035446,
-0.007012077607214451,
0.015078578144311905,
-0.02116328850388527,
-0.001606481266207993,
0.005208444315940142,
0.04064670205116272,
0.008243035525083542,
-0.004834009800106287,
-0.05216342210769653,
-0.02468760311603546,
0.01913522183895111,
0.03216272220015526,
-0.052858997136354446,
-0.03090902604162693,
-0.02377277985215187,
-0.020926792174577713,
0.040436238050460815,
-0.016775723546743393,
0.001782892388291657,
-0.017345529049634933,
-0.03658744692802429,
0.0057399822399020195,
-0.10002224147319794,
0.040624190121889114,
0.00967990793287754,
-0.041600584983825684,
-0.001069705467671156,
0.009799016639590263,
0.05916430428624153,
0.051877982914447784,
-0.0101501839235425,
0.06985550373792648,
0.033512700349092484,
-0.005583920516073704,
0.025326650589704514,
0.05176817625761032,
-0.01413162425160408,
-0.06467226892709732,
-0.025106098502874374,
0.06160793453454971,
-0.017748864367604256,
0.010698662139475346,
-0.0017574273515492678,
-0.001991436118260026,
-0.02846415527164936,
0.01657603122293949,
0.03194420412182808,
0.011498799547553062,
0.010210584849119186,
-0.056874264031648636,
0.024129940196871758,
0.028293389827013016,
0.03535929694771767,
0.007563196122646332,
-0.0366981066763401,
-0.03723679110407829,
-0.023406991735100746,
0.039627086371183395,
0.014534390531480312,
0.015026429668068886,
0.05246034637093544,
-0.022208165377378464,
0.012513917870819569,
0.11059435456991196,
0.015826759859919548,
0.03682637959718704,
-0.020134486258029938,
0.01465490274131298,
0.04551280662417412,
0.04084332287311554,
0.004946650005877018,
0.030772406607866287,
-0.01369406282901764,
-0.001543479855172336,
0.018799319863319397,
0.031351059675216675,
-0.044103652238845825,
0.017677228897809982,
-0.03803117573261261,
-0.047388751059770584,
0.06863415986299515,
-0.02835473231971264,
-0.0030794725753366947,
0.00282640615478158,
0.08002971857786179,
0.04350186511874199,
0.027739450335502625,
0.012331092730164528,
-0.07961326837539673,
0.053157027810811996,
0.023303385823965073,
0.05823412910103798,
0.004580835346132517,
0.0009616615134291351,
0.06712151318788528,
0.017963368445634842,
-0.0011561770224943757,
0.0044165113940835,
-0.07953953742980957,
-0.07256639003753662,
0.007831871509552002,
-0.004547777585685253,
0.04594828188419342,
-0.03820822387933731,
0.0030990950763225555,
0.04306056722998619,
0.0027061388827860355,
0.04061661660671234,
-0.011059862561523914,
-0.03030969388782978,
0.028322691097855568,
-0.06667637825012207,
-0.04933756962418556,
0.04170995205640793,
0.028843875974416733,
-0.0035371342673897743,
-0.00002812847560562659,
0.03121412731707096,
-0.01703401654958725,
0.01610359363257885,
0.02728189341723919,
-0.010999506339430809,
0.04658469185233116,
0.020798074081540108,
0.016574490815401077,
-0.025242656469345093,
0.04065928980708122,
-0.0528266504406929,
-0.016490641981363297,
0.008889543823897839,
-0.03130217269062996,
-0.012012358754873276,
0.005383032374083996,
0.11868780106306076,
0.057978928089141846,
-0.018318232148885727,
-0.03830815851688385,
0.020646335557103157,
0.020932694897055626,
-0.04703005775809288,
-0.001226601772941649,
-0.0017525898292660713,
-0.0059485225938260555,
-0.009177805855870247,
-0.03103983961045742,
-0.023395830765366554,
0.01498811412602663,
-0.023726867511868477,
0.0001892264699563384,
0.04128327965736389,
0.01116155181080103,
0.052403341978788376,
0.01617290824651718,
-0.02673925645649433,
0.02753305248916149,
-0.046421051025390625,
-0.06175828352570534,
0.0098653519526124,
0.016799146309494972,
0.01385178230702877,
0.05889934301376343,
-0.04491771012544632,
-0.008563040755689144,
-0.018598023802042007,
-0.055785778909921646,
0.014215310104191303,
0.04704457148909569,
0.03426653519272804,
-0.026559779420495033,
0.059764716774225235,
-0.03176668658852577,
0.01569409854710102,
-0.038645416498184204,
-0.02793051116168499,
-0.07133525609970093,
-0.011740104295313358,
0.013660825788974762,
-0.009745791554450989,
-0.020972592756152153,
0.022280659526586533,
0.005291700828820467,
-0.006871443707495928,
0.010490159504115582,
-0.029637956991791725,
0.050638630986213684,
-0.017402367666363716,
0.007090757600963116,
-0.04000028222799301,
-0.04209113493561745,
0.061748258769512177,
-0.06859192997217178,
-0.013149184174835682,
0.01581023819744587,
-0.034093599766492844,
0.0539030060172081,
-0.03221191093325615,
-0.04293237254023552,
-0.017474686726927757,
-0.00553282443434,
0.03774218261241913,
0.002814189763739705,
0.031051261350512505,
0.06652194261550903,
0.03519443795084953,
0.007067502476274967,
-0.0005406331038102508,
0.02543480694293976,
0.04078890010714531,
0.00943673960864544,
0.019769975915551186,
0.05506064370274544,
-0.02298981510102749,
-0.026445506140589714,
-0.03424510359764099,
-0.0010517856571823359,
-0.005534298252314329,
-0.26973000168800354,
0.07956036925315857,
-0.049737267196178436,
-0.07218506187200546,
0.02042505331337452,
-0.04608777537941933,
0.004011568147689104,
-0.044557686895132065,
-0.03100006654858589,
0.01784271001815796,
-0.029671456664800644,
-0.019066855311393738,
-0.002590656979009509,
0.023512523621320724,
0.005817736964672804,
0.038490649312734604,
0.0014847589191049337,
-0.04823577404022217,
0.0018069855868816376,
0.054998207837343216,
0.011752805672585964,
-0.04514305666089058,
0.019337482750415802,
0.03219221159815788,
0.021069802343845367,
0.06394398212432861,
-0.09073128551244736,
0.06047854572534561,
-0.05119859054684639,
-0.031574547290802,
0.011794300749897957,
-0.05025690793991089,
0.015717526897788048,
0.012784671038389206,
0.012768415734171867,
0.00008034971688175574,
0.043165676295757294,
0.005010355729609728,
-0.001726088928990066,
0.029998205602169037,
0.008587133139371872,
-0.029885275289416313,
-0.010996552184224129,
0.005393083207309246,
0.08565151691436768,
-0.012832487002015114,
-0.05706462264060974,
-0.015365218743681908,
0.005812505260109901,
0.07906478643417358,
-0.01206123922020197,
-0.04933980107307434,
-0.029227720573544502,
0.040048372000455856,
-0.02639767713844776,
-0.02088281884789467,
-0.020311858505010605,
-0.013519614934921265,
-0.02541930042207241,
-0.025407245382666588,
-0.03140857443213463,
-0.04246450215578079,
0.005667308811098337,
-0.049501676112413406,
-0.0026718333829194307,
-0.057615116238594055,
-0.06565671414136887,
-0.003695826744660735,
0.06652157008647919,
0.01679215021431446,
-0.014842911623418331,
0.011452065780758858,
-0.015581924468278885,
-0.09815829247236252,
-0.02954513393342495,
-0.04097394645214081,
-0.025667639449238777,
0.029072938486933708,
-0.023626171052455902,
0.056521929800510406,
-0.042471691966056824,
-0.05228038132190704,
0.05210494250059128,
0.021137813106179237,
0.011514222249388695,
-0.04313722252845764,
0.017702387645840645,
-0.027241943404078484,
-0.01486718375235796,
-0.02651899866759777,
0.0584840327501297,
-0.018429411575198174,
-0.02789953351020813,
-0.02369583770632744,
0.011910183355212212,
0.011809292249381542,
-0.005195631645619869,
-0.013124652206897736,
0.01661003567278385,
0.030030138790607452,
0.04215655475854874,
-0.05326828733086586,
0.009051011875271797,
-0.0687444731593132,
-0.02266220934689045,
-0.014523375779390335,
-0.023972542956471443,
0.05287660285830498,
0.01594911888241768,
0.01565704122185707,
-0.012789391912519932,
-0.022999851033091545,
0.03249727562069893,
-0.04130939766764641,
-0.020538512617349625,
0.011306657455861568,
-0.0034990834537893534,
0.01568225957453251,
0.03837791085243225,
-0.017489008605480194,
-0.02383408322930336,
0.03271649777889252,
0.002868675161153078,
-0.01854187250137329,
-0.0512235090136528,
-0.04021464288234711,
-0.024735121056437492,
0.012993207201361656,
0.02239082381129265,
0.002256163163110614,
-0.015058808028697968,
0.03931695595383644,
0.018026653677225113,
-0.015355690382421017,
0.041070953011512756,
-0.025415847077965736,
-0.03789491206407547,
-0.05284881964325905,
-0.004533256869763136,
-0.009679444134235382,
0.01171661913394928,
-0.0030220141634345055,
-0.013486589305102825,
0.04565620422363281,
0.015764525160193443,
0.02986631542444229,
0.0518830269575119,
-0.006265293341130018,
0.022237341850996017,
-0.0014206054620444775,
-0.010346390306949615,
-0.06015566736459732,
0.040003031492233276,
-0.02550780028104782,
-0.046119239181280136,
-0.028006035834550858,
0.04384954273700714,
0.004013548605144024,
-0.011598468758165836,
-0.019666973501443863,
0.030645761638879776,
-0.018481314182281494,
0.014126819558441639,
-0.021564098075032234,
-0.03659386560320854,
0.05594257265329361,
-0.010160231031477451,
0.027817316353321075,
-0.019001711159944534,
0.006487036589533091,
0.0015148617094382644,
0.03539145365357399,
-0.05360756814479828,
0.0013739754213020205,
0.021344345062971115,
-0.002719403011724353,
0.021057015284895897,
0.03135770931839943,
0.025353748351335526,
0.0339130200445652,
-0.011974845081567764,
-0.03840479254722595,
-0.0017739870818331838,
0.016014114022254944,
0.049277178943157196,
0.04668678715825081,
-0.01921878382563591,
0.00886769313365221,
-0.032622359693050385,
-0.008460289798676968,
-0.03000766783952713,
-0.008893391117453575,
-0.010474393144249916,
-0.004690720234066248,
-0.013404748402535915,
-0.06519092619419098,
0.02505980245769024,
0.0291923638433218,
-0.007893728092312813,
0.042253509163856506,
0.02821342647075653,
-0.0002451858017593622,
-0.021060893312096596,
0.0072349198162555695,
0.03265400230884552,
-0.03548583388328552,
0.00440294248983264,
-0.001419295440427959,
0.0007369267987087369,
0.0173097625374794,
0.03208698332309723,
-0.047282565385103226,
-0.01792207360267639,
-0.006844916380941868,
0.018408143892884254,
-0.02024606429040432,
-0.029742440208792686,
-0.018993547186255455,
0.007854027673602104,
-0.013826859183609486,
-0.019835960119962692,
0.003571070497855544,
0.011344649828970432,
0.008441852405667305,
-0.024723604321479797,
0.013730972073972225,
0.0007844892097637057,
0.0020548736210912466,
0.03981931880116463,
-0.001964513910934329,
0.028108887374401093,
-0.03092285245656967,
0.028956083580851555,
0.030447885394096375,
0.008405584841966629,
-0.00600523641332984,
-0.04748936742544174,
0.009654449298977852,
-0.016312671825289726,
0.047011300921440125,
0.025767453014850616,
0.01153888925909996,
-0.005591013003140688,
0.04346722364425659,
-0.03740354999899864,
-0.017401082441210747,
-0.028877777978777885,
-0.023897571489214897,
-0.016599101945757866,
0.07097221165895462,
0.003282106714323163,
0.036142781376838684,
-0.0011723445495590568,
-0.036265600472688675,
0.0670384094119072,
-0.06797173619270325,
-0.049493979662656784,
-0.028494054451584816,
-0.07076675444841385,
0.047667521983385086,
0.04330628365278244,
0.02380668744444847,
-0.04944285750389099,
0.03139064088463783,
0.045487985014915466,
0.0270795039832592,
0.028890911489725113,
0.008718864060938358,
0.03486423194408417,
-0.03109547682106495,
-0.015346013009548187,
-0.1000853180885315,
0.02155916951596737,
0.04684526100754738,
-0.013554546982049942,
-0.0017615564865991473,
-0.0062170778401196,
-0.02698630280792713,
0.0029411190189421177,
-0.07398766279220581,
-0.035970527678728104,
0.036628495901823044,
-0.014106414280831814,
-0.0017423267709091306,
-0.00019311068172100931,
-0.05870193615555763,
0.033062275499105453,
0.028864048421382904,
-0.04265146702528,
0.006718914490193129,
-0.05898062884807587,
0.05750611051917076,
-0.012454386800527573,
0.05157313495874405,
-0.02611345611512661,
-0.045313406735658646,
0.06902988255023956,
0.0184833612293005,
0.02847260795533657,
0.026984144002199173,
-0.019009090960025787,
0.0480358749628067,
0.0421396903693676,
-0.030792327597737312,
0.0078257592394948,
-0.034870363771915436,
-0.02383948676288128,
-0.03037336654961109,
0.012214875780045986,
0.027986325323581696,
-0.008617444895207882,
-0.02625151164829731,
0.061865516006946564,
0.01628767140209675,
-0.012670152820646763,
-0.07073993235826492,
0.0436415858566761,
-0.028151100501418114,
-0.023473355919122696,
-0.04716884344816208,
0.013438746333122253,
-0.021384907886385918,
0.018848970532417297,
-0.011530262418091297,
0.008957336656749249,
0.08859225362539291,
-0.023445861414074898,
-0.001586436526849866,
-0.011306448839604855,
0.08267516642808914,
0.09282402694225311,
0.04861541837453842,
0.01165410503745079,
0.03854893520474434,
-0.0413643941283226,
-0.04095904901623726,
-0.008824874646961689,
-0.020650586113333702,
0.001711952150799334,
0.008647732436656952,
-0.00016065877571236342,
0.06775891780853271,
-0.07496610283851624,
0.07699866592884064,
-0.017605464905500412,
0.0035414693411439657,
-0.005982920993119478,
-0.01234439853578806,
0.00838837493211031,
0.03609577566385269,
0.006257230881601572,
-0.012819589115679264,
-0.027781760320067406,
-0.019268060103058815,
0.02108321152627468,
0.00405556196346879,
-0.02970498614013195,
0.02971748448908329,
-0.011983344331383705,
-0.009481445886194706,
0.01429114118218422,
0.041892632842063904,
0.08757416903972626,
-0.01103817019611597,
0.024546382948756218,
0.0039313798770308495,
0.03151045739650726,
-0.018789632245898247,
0.02949312888085842,
-0.018784867599606514,
-0.041945699602365494,
-0.010960910469293594,
-0.01303887739777565,
-0.007185717113316059,
0.013674880377948284,
-0.02171778865158558,
0.022098897024989128,
-0.01866108365356922,
-0.009676797315478325,
0.007537815719842911,
-0.025595564395189285,
-0.03258073702454567,
-0.05816256254911423,
-0.047245096415281296,
-0.0557175874710083,
-0.06842474639415741,
-0.006626714952290058,
0.004675567615777254,
-0.019138777628540993,
-0.027096625417470932,
-0.025456449016928673,
-0.07796163856983185,
-0.044501110911369324,
0.018654800951480865,
-0.04773977771401405,
-0.01555769145488739,
0.00975792296230793,
0.008186443708837032,
0.004022762179374695,
0.03942898288369179,
0.03839186951518059,
-0.00409597298130393,
0.0012352955527603626,
-0.0037717025261372328,
0.003866540500894189,
0.04363694414496422,
0.012774748727679253,
0.0194537416100502,
-0.10055677592754364,
0.02366030402481556,
0.03898876905441284,
0.004514127969741821,
-0.07775530219078064,
0.032912012189626694,
0.04325217008590698,
-0.03429810330271721,
0.04248877987265587,
-0.03543678671121597,
-0.0007617883384227753,
-0.03456781432032585,
-0.011789599433541298,
-0.03615053370594978,
-0.01869768090546131,
0.04014335572719574,
-0.000981852295808494,
0.08417308330535889,
0.06538496911525726,
-0.038412291556596756,
-0.04998018965125084,
-0.0069124517031013966,
-0.015422911383211613,
0.03183217719197273,
-0.04152093455195427,
-0.014577415771782398,
-0.04128030315041542,
-0.06321004033088684,
-0.028083331882953644,
0.018324099481105804,
-0.03164783492684364,
-0.038576774299144745,
0.04312047362327576,
0.006904585286974907,
-0.03985080495476723,
0.024650389328598976,
-0.032411735504865646,
0.005631938576698303,
-0.028742589056491852,
-0.04818052053451538,
-0.021418407559394836,
0.02544080652296543,
0.027927642688155174,
0.005675742402672768,
0.010850990191102028,
-0.044311437755823135,
-0.0010817371075972915,
-0.0037023157346993685,
0.018273182213306427,
0.05782822519540787,
0.023738740012049675,
0.017068080604076385
] | [
-0.07201708108186722,
0.001809234730899334,
-0.03465629741549492,
-0.04932139441370964,
0.07426948100328445,
-0.055152203887701035,
-0.0363876111805439,
0.020435085520148277,
0.02505035325884819,
0.008639187552034855,
0.03194141387939453,
-0.049859900027513504,
-0.010156555101275444,
-0.013077105395495892,
0.04774829000234604,
-0.021317871287465096,
-0.006672427523881197,
-0.04655968025326729,
-0.005061648786067963,
0.0577634759247303,
-0.005724545102566481,
-0.04264272004365921,
-0.03940514102578163,
-0.049979664385318756,
0.021213127300143242,
-0.0003166157111991197,
0.025725876912474632,
-0.02725786156952381,
-0.02471313625574112,
-0.2504926919937134,
0.010868091136217117,
0.011242065578699112,
0.03135322034358978,
-0.05028007924556732,
0.03208469599485397,
0.02691340632736683,
0.03964030742645264,
-0.008476793766021729,
-0.01565021090209484,
0.025132333859801292,
0.03264867514371872,
0.015926918014883995,
-0.041100796312093735,
-0.008639964275062084,
0.01757413148880005,
0.016760747879743576,
0.007087439764291048,
-0.03346320241689682,
0.03515399619936943,
0.031964510679244995,
-0.057279765605926514,
0.013706130906939507,
0.0009632647270336747,
-0.026565028354525566,
0.0052278488874435425,
0.008817200548946857,
0.05358848348259926,
0.04258370026946068,
0.0032461693044751883,
0.01081777922809124,
-0.00007564168481621891,
0.00791455339640379,
-0.14404116570949554,
0.10703513026237488,
0.057779695838689804,
0.04815666005015373,
-0.010511849075555801,
-0.016719473525881767,
-0.03722353279590607,
0.09116942435503006,
-0.043871715664863586,
-0.02652362361550331,
-0.06415538489818573,
0.10774646699428558,
-0.0022681094706058502,
-0.023618850857019424,
-0.00022477054153569043,
0.022885741665959358,
0.00043736607767641544,
-0.049316588789224625,
-0.09073030203580856,
-0.029047619551420212,
-0.0003351027553435415,
-0.020284289494156837,
-0.03887513279914856,
-0.0033964726608246565,
-0.020739592611789703,
0.05524180829524994,
0.041309382766485214,
0.008149376139044762,
0.04552578926086426,
-0.001956536900252104,
0.05430943891406059,
0.04309381544589996,
-0.08097950369119644,
-0.022643914446234703,
0.02167404629290104,
0.043055497109889984,
0.022738605737686157,
0.3944166600704193,
-0.023780176416039467,
-0.041748858988285065,
0.018996912986040115,
0.00008893504855223,
0.050734758377075195,
0.007624125108122826,
0.01606369949877262,
-0.013965824618935585,
0.03666435554623604,
-0.03994569554924965,
0.012994236312806606,
-0.0098757054656744,
0.06067923083901405,
-0.06439639627933502,
0.028674740344285965,
0.029604708775877953,
0.047755833715200424,
0.01899631880223751,
-0.020833872258663177,
-0.0023805592209100723,
-0.02996259182691574,
0.00574743514880538,
0.02581474371254444,
0.009175938554108143,
0.03163348138332367,
-0.02137489803135395,
0.015055382624268532,
0.07412570714950562,
0.04947209730744362,
0.0160273015499115,
0.030341550707817078,
-0.051278237253427505,
-0.06933201104402542,
0.0015913828974589705,
0.00943540409207344,
0.03503997623920441,
0.00533063430339098,
-0.041512470692396164,
-0.011586330831050873,
-0.018719559535384178,
0.006004421040415764,
-0.03110571950674057,
0.0021658765617758036,
0.007425242569297552,
-0.012591822072863579,
0.09790990501642227,
-0.022646589204669,
-0.0351056307554245,
-0.03330420330166817,
-0.0696980357170105,
0.012512673623859882,
0.046848658472299576,
-0.009735772386193275,
-0.0555906817317009,
0.010411189869046211,
0.017215879634022713,
0.06527844816446304,
0.0028188140131533146,
-0.08332905918359756,
-0.012761249206960201,
-0.030890706926584244,
-0.04818328097462654,
-0.028909025713801384,
0.0646817684173584,
0.02514375001192093,
-0.05636800080537796,
-0.017833836376667023,
0.0258745476603508,
0.0386471152305603,
-0.05164362117648125,
0.004386458080261946,
-0.014896615408360958,
-0.035795021802186966,
-0.016486501321196556,
0.050114959478378296,
-0.030120020732283592,
-0.014940541237592697,
-0.008365025743842125,
0.048603929579257965,
0.0033452396746724844,
-0.01955108344554901,
0.016516223549842834,
-0.030174415558576584,
0.03953700140118599,
-0.03453632816672325,
-0.07791504263877869,
-0.06607639789581299,
0.02356988750398159,
0.005294863600283861,
0.015356742776930332,
-0.017532233148813248,
-0.002875723410397768,
-0.04482426866889,
0.037365254014730453,
-0.045091770589351654,
-0.029796907678246498,
-0.008052125573158264,
0.03645171597599983,
-0.02061314508318901,
-0.041340310126543045,
0.060519423335790634,
0.03487918898463249,
-0.03371954709291458,
0.01383365411311388,
-0.04684845730662346,
-0.004991983063519001,
0.06624369323253632,
-0.04602765664458275,
0.06928747147321701,
0.05230427905917168,
-0.012422881089150906,
-0.0236310213804245,
-0.010498911142349243,
-0.02265910431742668,
-0.009679381735622883,
-0.04839782789349556,
0.01553557999432087,
0.005277061369270086,
0.05064082518219948,
0.03707975521683693,
-0.04179155081510544,
-0.056709472090005875,
-0.027151664718985558,
-0.3433626890182495,
-0.030888600274920464,
-0.012465404346585274,
-0.010208860971033573,
0.06543591618537903,
-0.05814696475863457,
0.006630824878811836,
-0.011550546623766422,
0.016073627397418022,
-0.01058868132531643,
0.04568824917078018,
-0.048907577991485596,
-0.013965669088065624,
-0.11415473371744156,
-0.02094636671245098,
0.026318438351154327,
0.014392421580851078,
-0.032683148980140686,
-0.02057286538183689,
0.02587445080280304,
0.006855787243694067,
-0.022798562422394753,
-0.07502463459968567,
0.0006090198876336217,
0.023461325094103813,
-0.04682872071862221,
0.07875290513038635,
0.0039320578798651695,
0.08618749678134918,
-0.03698223456740379,
0.042957015335559845,
0.0055871931836009026,
0.006756185553967953,
-0.0921640694141388,
-0.027108903974294662,
0.0026579161640256643,
-0.02097897417843342,
0.026691973209381104,
0.0318295918405056,
0.006637490354478359,
-0.051189374178647995,
-0.011740912683308125,
-0.034795619547367096,
-0.059086043387651443,
-0.007542910985648632,
0.0031910559628158808,
0.006954361218959093,
-0.01976199261844158,
0.0008349387790076435,
0.06483441591262817,
0.005215204320847988,
0.0027741219382733107,
-0.008320613764226437,
0.04258899763226509,
0.06150120496749878,
-0.040115367621183395,
-0.064625084400177,
-0.0031510640401393175,
0.012488643638789654,
-0.0351785384118557,
0.030833464115858078,
0.011250694282352924,
0.03219391405582428,
-0.0579000823199749,
-0.013725217431783676,
0.020923884585499763,
0.0003682735259644687,
-0.011538148857653141,
0.05109294131398201,
-0.03309169411659241,
0.00020585922175087035,
0.08732499182224274,
-0.02067009173333645,
0.013795566745102406,
0.012087292037904263,
0.061302199959754944,
-0.031223785132169724,
0.010922198183834553,
-0.019012322649359703,
-0.03409209102392197,
0.08441080898046494,
0.0025234222412109375,
0.07618287950754166,
-0.026791563257575035,
0.00592937832698226,
0.05264890566468239,
0.002864500740543008,
-0.0017271769465878606,
0.028606204316020012,
0.028281889855861664,
-0.022293422371149063,
-0.029637666419148445,
-0.011374843306839466,
-0.06516074389219284,
0.06095757335424423,
-0.006539632566273212,
-0.2565441131591797,
0.028710272163152695,
0.013814902864396572,
0.07574784010648727,
0.018953246995806694,
0.037866897881031036,
0.03615974262356758,
-0.06280562281608582,
0.005517907440662384,
0.06450195610523224,
-0.02098630927503109,
0.042252980172634125,
-0.011095760390162468,
-0.021651115268468857,
0.029678596183657646,
-0.0181378573179245,
0.03039310686290264,
0.0006672015297226608,
0.018130898475646973,
0.018589472398161888,
0.000315696292091161,
-0.03200332075357437,
0.18326902389526367,
0.022456875070929527,
0.009632810950279236,
0.027696192264556885,
-0.008175312541425228,
0.047899145632982254,
0.09802316129207611,
0.004810927901417017,
0.020637381821870804,
0.014126070775091648,
0.01447932980954647,
0.0217722337692976,
0.01296580582857132,
-0.04254651442170143,
-0.03485831245779991,
0.05539471656084061,
0.020285863429307938,
-0.025150390341877937,
-0.015070025809109211,
0.038922738283872604,
-0.04645029455423355,
-0.0009458980057388544,
0.07698818296194077,
-0.000625167042016983,
-0.03474640101194382,
-0.014995619654655457,
0.01783125102519989,
-0.019728073850274086,
-0.021001726388931274,
-0.02113385684788227,
0.0019180841045454144,
-0.007334538735449314,
0.02451971545815468,
0.07006964087486267,
0.0025972959119826555,
-0.013741856440901756,
0.006111113354563713,
0.02438434213399887,
0.007997148670256138,
-0.07539438456296921,
0.10533546656370163,
0.031627461314201355,
-0.003412021091207862
] | [
0.043306466192007065,
0.026520270854234695,
0.007711314130574465,
0.010153749026358128,
-0.0012948487419635057,
-0.033891577273607254,
0.012668805196881294,
0.026577070355415344,
0.00747661804780364,
0.002517953049391508,
-0.028998957946896553,
0.027734365314245224,
0.04833608493208885,
-0.013704046607017517,
-0.023192519322037697,
-0.03832700476050377,
-0.010197811760008335,
0.008150702342391014,
0.005245766136795282,
-0.015599268488585949,
-0.005477819126099348,
0.0011748315300792456,
0.013117112219333649,
0.01982707716524601,
-0.003092498518526554,
-0.017834817990660667,
-0.017595143988728523,
-0.011715498752892017,
-0.005091540515422821,
-0.13798344135284424,
-0.021026547998189926,
-0.011040519922971725,
0.002118421485647559,
-0.02895493619143963,
0.0034289411269128323,
-0.0075872610323131084,
0.055588267743587494,
0.004047212190926075,
-0.029434777796268463,
0.03237295150756836,
0.02953449822962284,
-0.013003239408135414,
-0.010186916217207909,
-0.008585238829255104,
0.05436790734529495,
-0.00967838428914547,
0.007451584096997976,
-0.01622195355594158,
0.003433393780142069,
0.040884122252464294,
-0.03087504580616951,
0.019582606852054596,
-0.035884685814380646,
0.03848259896039963,
-0.02913413755595684,
-0.0194514449685812,
0.0001566035207360983,
-0.029351884499192238,
0.010475083254277706,
0.010754385031759739,
0.010763298720121384,
0.008242624811828136,
-0.03722919896245003,
-0.022547975182533264,
0.03293589502573013,
-0.01838725060224533,
0.026894893497228622,
0.028638193383812904,
0.008982773870229721,
0.03472544252872467,
-0.031553979963064194,
0.014375600032508373,
-0.03672575578093529,
0.03796730190515518,
-0.027093974873423576,
0.01601289212703705,
0.03249678388237953,
-0.025665611028671265,
-0.019038017839193344,
-0.010672316886484623,
-0.05432860180735588,
-0.0050821127369999886,
0.01673801615834236,
-0.008687767200171947,
-0.026186512783169746,
0.018010562285780907,
-0.01551046036183834,
-0.008985095657408237,
0.016946664080023766,
0.031100964173674583,
0.005773186217993498,
0.045685965567827225,
-0.0044781542383134365,
-0.025106340646743774,
-0.0781608521938324,
-0.022947723045945168,
0.025108734145760536,
0.02802400104701519,
0.011078918352723122,
0.8244941830635071,
-0.005325405392795801,
0.0026840895880013704,
0.01301451027393341,
0.0362711101770401,
0.0074459160678088665,
-0.012367871589958668,
0.009711770340800285,
0.022589605301618576,
-0.023585651069879532,
-0.04107784107327461,
0.033584244549274445,
-0.018606437370181084,
0.006536039523780346,
-0.013030312024056911,
0.023774271830916405,
0.029790375381708145,
-0.007471178658306599,
-0.004577854182571173,
-0.026741772890090942,
0.0068361470475792885,
-0.0009026293992064893,
0.023951178416609764,
-0.01737859845161438,
-0.0004546882992144674,
0.03788233920931816,
-0.1070837453007698,
0.017708903178572655,
-6.15143246751408e-33,
0.046041879802942276,
0.005456225015223026,
0.036639340221881866,
-0.010334284976124763,
0.020608488470315933,
0.001161172753199935,
0.016417261213064194,
0.023730138316750526,
-0.0374712273478508,
-0.007921618409454823,
0.012607920914888382,
-0.024349737912416458,
0.04190483316779137,
-0.01987127959728241,
0.04333082586526871,
-0.01014414057135582,
0.011611110530793667,
-0.004958031233400106,
-0.01404191181063652,
0.0057525732554495335,
0.005014211870729923,
0.050818391144275665,
-0.01110181212425232,
0.023179037496447563,
0.02320987358689308,
0.02437625266611576,
-0.018860949203372,
-0.01513650268316269,
0.007856297306716442,
-0.04576758295297623,
-0.03007693402469158,
0.024027938023209572,
0.019391706213355064,
-0.07543619722127914,
0.024269286543130875,
-0.08446968346834183,
-0.04460577666759491,
-0.011912123300135136,
-0.0201275572180748,
-0.022480210289359093,
-0.013651910237967968,
-0.010949485935270786,
-0.045171551406383514,
-0.010204368270933628,
-0.026289107277989388,
-0.027564655989408493,
-0.01616257056593895,
0.027278177440166473,
0.012301456183195114,
-0.010214721783995628,
0.05885288491845131,
0.05136244371533394,
0.027287021279335022,
-0.0004929471178911626,
-0.013412811793386936,
0.014022122137248516,
0.019733887165784836,
-0.02498716302216053,
-0.006437411066144705,
0.036844465881586075,
0.060301076620817184,
0.011119747534394264,
-0.016909902915358543,
0.02847970835864544,
0.036703526973724365,
-0.016166187822818756,
0.07094912230968475,
0.03964732959866524,
-0.0038479252252727747,
-0.008981458842754364,
-0.07118391990661621,
0.01550199557095766,
-0.01155533455312252,
-0.016095979139208794,
0.03557729348540306,
0.004726926330476999,
-0.03358978405594826,
-0.0007390984683297575,
0.009456570260226727,
-0.0013621298130601645,
-0.035201363265514374,
-0.03268856927752495,
0.03939160332083702,
-0.027458980679512024,
-0.026391925290226936,
0.029515784233808517,
0.047728028148412704,
-0.016741976141929626,
-0.013178235851228237,
0.010243494063615799,
0.008893128484487534,
0.008149301633238792,
-0.0038834689185023308,
-0.00748492730781436,
-0.0302606038749218,
6.71270310204089e-33,
-0.0003728055162355304,
0.031793855130672455,
-0.029939956963062286,
0.03726712614297867,
-0.01153366919606924,
0.011468459852039814,
0.015942227095365524,
-0.010899907909333706,
-0.05515088140964508,
0.009664218872785568,
0.019601276144385338,
-0.0008107296307571232,
-0.01774008944630623,
0.039607804268598557,
0.06508203595876694,
0.003842649981379509,
-0.0002269180113216862,
-0.031029829755425453,
-0.053829584270715714,
-0.03781374543905258,
0.021817995235323906,
0.0018366515869274735,
0.03581893444061279,
0.006786409765481949,
0.032411228865385056,
-0.001087663578800857,
0.03043479472398758,
0.02080785110592842,
-0.013553018681704998,
0.015263153240084648,
-0.0367351658642292,
-0.02392004057765007,
-0.0018885154277086258,
-0.04001650586724281,
-0.03491229563951492,
0.027044575661420822,
0.026516882702708244,
0.03187490254640579,
0.04415098950266838,
0.012130112387239933,
0.00708529120311141,
0.024510202929377556,
-0.031791649758815765,
0.006684804335236549,
-0.017245082184672356,
0.04443264380097389,
0.019531073048710823,
0.06174304336309433,
0.00024507727357558906,
0.04675815626978874,
0.011108029633760452,
0.020192017778754234,
0.03319980576634407,
-0.0002309631963726133,
0.021118391305208206,
-0.05076155811548233,
-0.01190162356942892,
-0.02914760820567608,
-0.039507798850536346,
-0.00978053454309702,
-0.04206003248691559,
0.009844853542745113,
0.009163555689156055,
0.004372965078800917,
-0.009530451148748398,
0.0017864215187728405,
-0.015607589855790138,
0.006686881650239229,
-0.0077314735390245914,
-0.061707835644483566,
-0.017483487725257874,
-0.024735109880566597,
-0.021189913153648376,
0.045258477330207825,
0.010410829447209835,
0.0008339881896972656,
-0.013333817012608051,
-0.0021314588375389576,
-0.03334490954875946,
0.0353536419570446,
0.023431852459907532,
0.009456676431000233,
-0.012370237149298191,
0.030588628724217415,
0.011130155995488167,
0.030115844681859016,
-0.052594851702451706,
0.004118143115192652,
0.030680768191814423,
0.00976244080811739,
-0.011163481511175632,
-0.03397217392921448,
0.012132789939641953,
-0.0015608691610395908,
-0.03572818264365196,
-1.2062607801510694e-8,
-0.0198347344994545,
-0.023742612451314926,
-0.012037278153002262,
0.022958772256970406,
0.03269074112176895,
0.03880065307021141,
-0.055091492831707,
-0.006897615268826485,
0.0020742507185786963,
-0.0020415913313627243,
0.045286379754543304,
-0.04637793451547623,
-0.01689104549586773,
-0.000489477242808789,
-0.007473261095583439,
-0.050041623413562775,
0.026596101000905037,
-0.04665423929691315,
-0.007421902380883694,
-0.04935507848858833,
-0.016987957060337067,
0.0406859926879406,
-0.023780783638358116,
0.026178615167737007,
0.028974294662475586,
-0.008633325807750225,
0.028131863102316856,
-0.0634908676147461,
-0.0071214335039258,
0.00025025318609550595,
-0.0014473435003310442,
-0.03898826614022255,
-0.034307293593883514,
0.002611815230920911,
0.0015700531657785177,
-0.03530271723866463,
0.0008870870224200189,
0.06473378837108612,
0.00685431994497776,
0.03185959532856941,
0.002062918385490775,
-0.006381988059729338,
-0.008963219821453094,
-0.02283916249871254,
-0.01777932420372963,
-0.04027869924902916,
-0.05955938994884491,
-0.0038383682258427143,
0.024104753509163857,
-0.036450788378715515,
0.02763064019382,
-0.007135063409805298,
0.015796225517988205,
0.08148252964019775,
0.007431006524711847,
-0.012445369735360146,
0.03500612825155258,
-0.04238475486636162,
-0.02661691978573799,
0.025476401671767235,
0.039154522120952606,
-0.026510892435908318,
-0.004020702093839645,
-0.015524371527135372
] | unix-stripping-first-n-bytes-in-a-file-byte-order-mark-bom | https://markhneedham.com/blog/2015/08/19/unix-stripping-first-n-bytes-in-a-file-byte-order-mark-bom |
false | 2015-08-21 20:59:37 | Neo4j: Summarising neo4j-shell output | [
"neo4j"
] | [
"neo4j"
] | </p>
I frequently find myself trying to optimise a set of cypher queries and I tend to group them together in a script that I fed to the http://neo4j.com/docs/stable/shell.html[Neo4j shell].
</p>
When tweaking the queries it's easy to make a mistake and end up not creating the same data so I decided to write a script which will show me the aggregates of all the commands executed.
I want to see the number of constraints created, indexes added, nodes, relationships and properties created. The first 2 don't need to match across the scripts but the latter 3 should be the same.
I put together the following script:
[source,python]
----
import re
import sys
from tabulate import tabulate
lines = sys.stdin.readlines()
def search(term, line):
m = re.match(term + ": (.*)", line)
return (int(m.group(1)) if m else 0)
nodes_created, relationships_created, constraints_added, indexes_added, labels_added, properties_set = 0, 0, 0, 0, 0, 0
for line in lines:
nodes_created = nodes_created + search("Nodes created", line)
relationships_created = relationships_created + search("Relationships created", line)
constraints_added = constraints_added + search("Constraints added", line)
indexes_added = indexes_added + search("Indexes added", line)
labels_added = labels_added + search("Labels added", line)
properties_set = properties_set + search("Properties set", line)
time_match = re.match("real.*([0-9]+m[0-9]+\.[0-9]+s)$", line)
if time_match:
time = time_match.group(1)
table = [
["Constraints added", constraints_added],
["Indexes added", indexes_added],
["Nodes created", nodes_created],
["Relationships created", relationships_created],
["Labels added", labels_added],
["Properties set", properties_set],
["Time", time]
]
print tabulate(table)
----
Its input is the piped output of the neo4j-shell command which will contain a description of all the queries it executed.
[source,bash]
----
$ cat import.sh
#!/bin/sh
{ ./neo4j-community-2.2.3/bin/neo4j stop; } 2>&1
rm -rf neo4j-community-2.2.3/data/graph.db/
{ ./neo4j-community-2.2.3/bin/neo4j start; } 2>&1
{ time ./neo4j-community-2.2.3/bin/neo4j-shell --file $1; } 2>&1
----
We can use the script in two ways.
Either we can pipe the output of our shell straight into it and just get the summary e.g.
[source,bash]
----
$ ./import.sh local.import.optimised.cql | python summarise.py
--------------------- ---------
Constraints added 5
Indexes added 1
Nodes created 13249
Relationships created 32227
Labels added 21715
Properties set 36480
Time 0m17.595s
--------------------- ---------
----
\...or we can make use of the 'tee' function in Unix and pipe the output into stdout and into the file and then either tail the file on another window or inspect it afterwards to see the detailed timings. e.g.
[source,bash]
----
$ ./import.sh local.import.optimised.cql | tee /tmp/output.txt | python summarise.py
--------------------- ---------
Constraints added 5
Indexes added 1
Nodes created 13249
Relationships created 32227
Labels added 21715
Properties set 36480
Time 0m11.428s
--------------------- ---------
----
[source,bash]
----
$ tail -f /tmp/output.txt
+-------------+
| appearances |
+-------------+
| 3771 |
+-------------+
1 row
Nodes created: 3439
Properties set: 3439
Labels added: 3439
289 ms
+------------------------------------+
| appearances -> player, match, team |
+------------------------------------+
| 3771 |
+------------------------------------+
1 row
Relationships created: 10317
1006 ms
...
----
My only dependency is the tabulate package to get the pretty table:
[source,bash]
----
$ cat requirements.txt
tabulate==0.7.5
----
The https://github.com/mneedham/neo4j-bbc/blob/master/local.import.optimised.cql[cypher script] I'm running creates a BBC football graph which is available as a https://github.com/mneedham/neo4j-bbc[github project]. Feel free to grab it and play around - any problems let me know! | null | null | [
-0.0021957785356789827,
0.00604458712041378,
0.0005420731613412499,
0.022450139746069908,
0.09927784651517868,
0.01204054057598114,
0.02089107595384121,
0.02787107229232788,
0.0023064701817929745,
-0.027715537697076797,
-0.005618778057396412,
0.01971794106066227,
-0.07556281983852386,
0.014453454874455929,
-0.013589881360530853,
0.07897724956274033,
0.0717567652463913,
0.019213665276765823,
0.032203469425439835,
-0.007627296727150679,
0.00413347827270627,
0.04330321401357651,
-0.02439657598733902,
0.029563480988144875,
0.051688097417354584,
0.015683604404330254,
0.00926223024725914,
-0.014145035296678543,
-0.04323507100343704,
0.002805363852530718,
0.04186083748936653,
-0.018856752663850784,
0.019398106262087822,
-0.01968831941485405,
0.019701605662703514,
-0.011134890839457512,
-0.03566087782382965,
0.01726117730140686,
-0.020357763394713402,
-0.009823232889175415,
-0.07160407304763794,
0.02056010626256466,
-0.025321155786514282,
0.01240235473960638,
-0.04347068443894386,
0.013218006119132042,
-0.07742690294981003,
0.03768785670399666,
0.011939664371311665,
0.019633902236819267,
-0.09774069488048553,
0.01748531125485897,
-0.003268674947321415,
-0.002006788272410631,
-0.004877638071775436,
0.04745151102542877,
0.03389381244778633,
-0.08852154016494751,
0.0631418451666832,
-0.003963514231145382,
-0.0036931815557181835,
0.010802858509123325,
0.0025298537220805883,
0.022650962695479393,
0.0015099718002602458,
-0.06772319972515106,
0.005258973687887192,
0.04969169944524765,
-0.046348877251148224,
-0.007796598598361015,
0.015429707244038582,
0.015720633789896965,
-0.013688472099602222,
-0.007438985165208578,
-0.0030691749416291714,
-0.04199422523379326,
-0.015753844752907753,
0.02892506681382656,
0.014278313145041466,
0.059672486037015915,
-0.015990829095244408,
0.016662409529089928,
0.016588915139436722,
0.009043497033417225,
0.008951466530561447,
-0.03577394410967827,
-0.04113493114709854,
-0.017284786328673363,
-0.051534947007894516,
0.028866326436400414,
0.009840787388384342,
-0.04397907480597496,
-0.008554019033908844,
-0.009923584759235382,
-0.027668168768286705,
-0.005270661320537329,
-0.012930882163345814,
0.022960776463150978,
0.026453619822859764,
0.017712319269776344,
-0.03495313599705696,
-0.017994344234466553,
-0.002815049374476075,
-0.005957045126706362,
-0.08100757002830505,
-0.015581597574055195,
-0.04091132804751396,
-0.023358304053544998,
0.0025189006701111794,
-0.02006414905190468,
-0.050682853907346725,
-0.021978052332997322,
-0.02001207508146763,
0.0217024814337492,
-0.09245884418487549,
0.08346562087535858,
0.028686391189694405,
-0.0036264811642467976,
0.002400639932602644,
0.01668582297861576,
0.04640277102589607,
0.02369503676891327,
0.01790218986570835,
0.10293704271316528,
-0.04560012370347977,
0.04790705069899559,
0.033173203468322754,
0.04326331615447998,
-0.024310743436217308,
-0.05852681025862694,
-0.012054439634084702,
0.05565253272652626,
-0.009475682862102985,
0.018041448667645454,
-0.01424406562000513,
-0.036850444972515106,
-0.036377955228090286,
0.00525695038959384,
0.05596916377544403,
0.028053808957338333,
0.016792165115475655,
-0.03648776188492775,
0.019706398248672485,
0.015158713795244694,
0.02556896023452282,
0.026974260807037354,
-0.02509469725191593,
-0.05572127550840378,
-0.028388796374201775,
0.0092143090441823,
0.010277875699102879,
0.031925883144140244,
0.045387011021375656,
-0.014733606018126011,
-0.0026494434569031,
0.11690875142812729,
0.03114728070795536,
0.030471071600914,
-0.005874584894627333,
-0.01699179783463478,
0.04217839986085892,
0.02414405718445778,
0.010903741233050823,
0.06168432533740997,
0.02000613324344158,
-0.006082558073103428,
-0.01024596393108368,
0.05528387054800987,
-0.02100321464240551,
0.01494588702917099,
-0.03914884850382805,
-0.05451074242591858,
0.055380016565322876,
-0.06029539555311203,
-0.005737947300076485,
0.038909293711185455,
0.0648011863231659,
0.03322445601224899,
0.03597305342555046,
0.00848920363932848,
-0.07651720196008682,
0.037538062781095505,
-0.01883075386285782,
0.020641570910811424,
0.022923544049263,
0.009766035713255405,
0.08369584381580353,
0.009918754920363426,
0.01941443793475628,
0.027781961485743523,
-0.0924498438835144,
-0.07833337038755417,
0.02573997527360916,
-0.021884458139538765,
0.046575095504522324,
-0.048606667667627335,
0.012321025133132935,
0.049466218799352646,
-0.0049339947290718555,
0.03488210216164589,
0.0038531257305294275,
0.0032845917157828808,
0.04026903212070465,
-0.060193587094545364,
-0.035660117864608765,
0.03470873087644577,
0.008959141559898853,
-0.0637366771697998,
-0.0322345606982708,
0.026827560737729073,
-0.025947367772459984,
0.009905843995511532,
0.03269532695412636,
-0.03873962163925171,
0.06321070343255997,
0.03878377005457878,
0.04443834722042084,
-0.0036143718753010035,
0.026815632358193398,
-0.02680463343858719,
0.021011168137192726,
0.017443764954805374,
-0.018913330510258675,
-0.005427289288491011,
-0.024314695969223976,
0.1008220762014389,
0.058264732360839844,
-0.033939290791749954,
-0.05191873386502266,
0.03244930878281593,
0.0026286765933036804,
-0.03332193195819855,
0.010972999036312103,
-0.03388289362192154,
-0.023019982501864433,
0.01060882955789566,
-0.021513916552066803,
-0.014899413101375103,
-0.007138616871088743,
-0.022247886285185814,
0.007209601812064648,
0.04425251483917236,
-0.05556841567158699,
0.05667286738753319,
0.01823008619248867,
0.025557156652212143,
0.02425798587501049,
-0.007228568661957979,
-0.03805302456021309,
0.035801585763692856,
-0.0004892211291007698,
0.010760870762169361,
0.0666276067495346,
-0.0198214054107666,
-0.020033948123455048,
-0.025944862514734268,
-0.023625720292329788,
0.028010468930006027,
0.06454817205667496,
0.04938773065805435,
-0.031830403953790665,
0.04688989743590355,
-0.022975265979766846,
0.020789209753274918,
-0.018930897116661072,
-0.06371253728866577,
-0.0560273639857769,
-0.010441592894494534,
0.012474645860493183,
-0.009832440875470638,
0.044785380363464355,
-0.020104892551898956,
0.010066870599985123,
0.003309184219688177,
0.02337258867919445,
0.0009176073945127428,
0.00901531521230936,
0.010400419123470783,
-0.004619297105818987,
-0.029339667409658432,
-0.009680727496743202,
0.04952365159988403,
-0.04785080626606941,
-0.028286350890994072,
0.007478596176952124,
-0.0576138012111187,
0.04138219729065895,
-0.062106043100357056,
-0.02650071308016777,
0.01113477535545826,
0.00997951254248619,
0.05999996140599251,
-0.035899095237255096,
0.006174254231154919,
0.08630762249231339,
0.014503841288387775,
0.010977677069604397,
0.014736645855009556,
0.014520306140184402,
0.02606506273150444,
0.002332019852474332,
0.05365382507443428,
0.02698003500699997,
-0.018679169937968254,
-0.00811044778674841,
-0.0012009169440716505,
-0.006912088021636009,
-0.027575189247727394,
-0.27409109473228455,
0.04955358803272247,
-0.032078225165605545,
-0.03195702284574509,
0.006265026982873678,
-0.035934388637542725,
0.01667068526148796,
-0.044408168643713,
-0.012026302516460419,
-0.013544255867600441,
-0.011749440804123878,
-0.04938732460141182,
-0.027908852323889732,
0.07201402634382248,
0.025849372148513794,
0.04092690348625183,
-0.013949635438621044,
-0.07422478497028351,
0.019394224509596825,
0.043162405490875244,
0.011462070979177952,
-0.04654889181256294,
0.0006209442508406937,
0.003876273287460208,
0.02740897238254547,
0.05449645593762398,
-0.07783850282430649,
0.022170985117554665,
-0.07460641115903854,
-0.042383331805467606,
-0.023167356848716736,
-0.029968850314617157,
-0.0040446799248456955,
0.0031138595659285784,
-0.023234760388731956,
-0.020170720294117928,
0.03445225954055786,
-0.021326405927538872,
0.023850854486227036,
0.023935215547680855,
-0.04488809034228325,
-0.037358254194259644,
-0.029544241726398468,
-0.015283850021660328,
0.07620410621166229,
0.005390074569731951,
-0.06026780977845192,
-0.014021388255059719,
-0.012639977037906647,
0.06249475106596947,
-0.01991252601146698,
-0.040830016136169434,
-0.01805145852267742,
0.01247750036418438,
-0.01734544150531292,
-0.02598433569073677,
0.00819958746433258,
-0.015605379827320576,
-0.03893124312162399,
0.008375552482903004,
-0.021623436361551285,
-0.049032099545001984,
0.010184535756707191,
-0.04812819883227348,
-0.018599458038806915,
-0.029409650713205338,
-0.06650250405073166,
-0.03500911965966225,
0.03707258775830269,
0.03496888279914856,
-0.017043551430106163,
0.026655763387680054,
-0.019522082060575485,
-0.08524546027183533,
-0.03171159699559212,
-0.05937782675027847,
0.02539779618382454,
-0.014397119171917439,
-0.021311139687895775,
0.03770805150270462,
-0.05204818770289421,
-0.054343029856681824,
0.01752307638525963,
0.01474485732614994,
0.031797636300325394,
-0.003684508614242077,
0.018011508509516716,
-0.037526972591876984,
-0.041475530713796616,
0.0014163579326123,
0.04759666323661804,
-0.05998944118618965,
0.013846066780388355,
0.025898680090904236,
-0.012564484030008316,
0.010441824793815613,
0.03256068378686905,
-0.03906279057264328,
0.02705969475209713,
0.03711676225066185,
0.05836491286754608,
-0.033821556717157364,
0.01771891489624977,
-0.020626483485102654,
-0.026687467470765114,
-0.041140418499708176,
-0.04161741957068443,
0.052639175206422806,
0.0375455841422081,
0.01948845386505127,
0.007587228901684284,
-0.010959470644593239,
0.002401840640231967,
-0.05450572445988655,
-0.005514336749911308,
-0.015180569142103195,
0.01158324908465147,
0.019082259386777878,
0.03620355203747749,
-0.031004369258880615,
-0.05149964988231659,
0.018142996355891228,
0.020018521696329117,
-0.01832280308008194,
-0.06931237876415253,
-0.03716053441166878,
-0.03859727084636688,
-0.014866764657199383,
0.017957068979740143,
0.02000424638390541,
-0.010203313082456589,
0.02507663145661354,
0.026638435199856758,
-0.03147000074386597,
0.03244646638631821,
-0.03612550348043442,
-0.03061005473136902,
-0.024720460176467896,
-0.0006187369581311941,
0.01715792901813984,
-0.006829488091170788,
-0.012993245385587215,
-0.0008168066269718111,
0.06197361275553703,
0.0324675552546978,
0.012789200991392136,
0.0197380892932415,
0.0004564706759992987,
0.024512505158782005,
0.0019900123588740826,
0.014484856277704239,
-0.027219779789447784,
0.016699016094207764,
-0.05428528040647507,
-0.018338855355978012,
-0.016301987692713737,
0.034228600561618805,
-0.012038120068609715,
-0.008495722897350788,
-0.03970560058951378,
0.01871730200946331,
-0.04204501956701279,
0.019103439524769783,
-0.01308747474104166,
0.0035589232575148344,
0.04516427591443062,
-0.01507163792848587,
0.022974463179707527,
-0.024599729105830193,
0.001275275950320065,
-0.004128824453800917,
0.009780006483197212,
-0.04854634404182434,
-0.007963691838085651,
-0.012308668345212936,
-0.004233903251588345,
0.036594416946172714,
0.01964668184518814,
-0.005448697134852409,
0.039116036146879196,
-0.0012781654950231314,
-0.009005037136375904,
-0.0008776388713158667,
0.027727635577321053,
0.04149544984102249,
0.048221006989479065,
-0.023602886125445366,
-0.0019790511578321457,
-0.0033083960879594088,
-0.005174378398805857,
-0.003985709045082331,
-0.012380336411297321,
-0.02897579036653042,
-0.009718682616949081,
-0.016164928674697876,
-0.0697503611445427,
0.043090492486953735,
0.034843653440475464,
-0.0001540419034427032,
0.033548563718795776,
0.02304559014737606,
-0.00926015991717577,
-0.032218050211668015,
0.03172679618000984,
0.06339631974697113,
-0.048483043909072876,
-0.020092414692044258,
-0.011069729924201965,
-0.006074411794543266,
0.01032921951264143,
0.030622320249676704,
-0.06453455239534378,
-0.06431016325950623,
-0.008889922872185707,
0.012196045368909836,
-0.014935463666915894,
-0.04684949666261673,
-0.03168097138404846,
0.017510227859020233,
-0.017362739890813828,
0.01693061925470829,
-0.00046970610856078565,
0.016595732420682907,
-0.015745799988508224,
-0.015531635843217373,
0.02845090813934803,
-0.003410519100725651,
-0.0034214796032756567,
0.020246043801307678,
0.0030928454361855984,
0.04302327334880829,
-0.021203069016337395,
0.02656760811805725,
0.01152920164167881,
0.00240179686807096,
-0.0007792781689204276,
-0.048301298171281815,
0.02313382551074028,
-0.023922709748148918,
0.03433980792760849,
0.006252743769437075,
0.011811576783657074,
-0.035574860870838165,
0.004543021321296692,
-0.028103351593017578,
-0.0073372600600123405,
-0.002142655663192272,
-0.028775976970791817,
-0.01198052242398262,
0.04553059861063957,
0.02232303097844124,
0.03473702445626259,
-0.02833046019077301,
-0.0491328127682209,
0.054070279002189636,
-0.02270224131643772,
-0.03758129104971886,
-0.02039751410484314,
-0.058806248009204865,
0.019438525661826134,
-0.005224370397627354,
0.014513988047838211,
-0.03877226635813713,
0.06694754213094711,
0.03576074168086052,
0.04067898169159889,
0.008058881387114525,
-0.010186976753175259,
0.03395262360572815,
-0.02884913608431816,
-0.015168383717536926,
-0.0715605691075325,
0.009927496314048767,
0.04163898900151253,
0.0062179467640817165,
-0.033194899559020996,
-0.00708344578742981,
-0.014806338585913181,
0.02117980644106865,
-0.04286596551537514,
-0.04134892672300339,
0.021304406225681305,
-0.010842307470738888,
0.030639493837952614,
0.035680320113897324,
-0.07078596204519272,
-0.0018475815886631608,
0.07297918945550919,
-0.016882196068763733,
-0.02466917596757412,
-0.018467670306563377,
0.042747654020786285,
-0.04037437587976456,
0.018302978947758675,
-0.03807422146201134,
-0.01835353672504425,
0.0780591368675232,
0.026780802756547928,
0.04033704847097397,
0.05773181840777397,
-0.05008282512426376,
0.03255889564752579,
0.04853835701942444,
-0.0005670248647220433,
-0.031063539907336235,
0.06186104193329811,
-0.037013065069913864,
-0.04302426427602768,
0.006045025773346424,
0.024115674197673798,
-0.006896997336298227,
-0.05409467592835426,
0.08120033890008926,
-0.006858520675450563,
-0.07267425209283829,
-0.052191898226737976,
0.027798190712928772,
-0.036467067897319794,
0.0010848600650206208,
-0.05547305941581726,
-0.0037768681067973375,
-0.013011323288083076,
0.06386088579893112,
-0.04123454913496971,
0.009700694121420383,
0.079194076359272,
-0.017549075186252594,
0.02554028294980526,
0.037649914622306824,
0.059278786182403564,
0.08678152412176132,
0.04938752204179764,
0.02098003402352333,
0.04666037857532501,
-0.036609575152397156,
-0.01742885634303093,
-0.0003742132685147226,
-0.03603539243340492,
0.004667393397539854,
0.004340559244155884,
-0.011621534824371338,
0.061038415879011154,
-0.02275579236447811,
0.075919508934021,
-0.01794683001935482,
0.003029664745554328,
-0.010947559028863907,
-0.023274220526218414,
0.031001515686511993,
0.060322441160678864,
0.016527989879250526,
0.044354818761348724,
-0.032674577087163925,
-0.009881576523184776,
0.015981873497366905,
-0.00428413599729538,
-0.018141131848096848,
0.03523395583033562,
-0.014634773135185242,
-0.006157959811389446,
0.016851821914315224,
0.05911191180348396,
0.09069880098104477,
-0.006543494760990143,
-0.018066242337226868,
0.021743623539805412,
0.039184294641017914,
-0.02895180508494377,
0.010324742645025253,
-0.007885532453656197,
-0.03190862387418747,
-0.009534916840493679,
-0.05988914892077446,
-0.026907294988632202,
-0.03236985206604004,
-0.034372925758361816,
0.006085257977247238,
0.0032322185579687357,
0.007802259176969528,
-0.0027921567671000957,
0.007834956981241703,
-0.011333073489367962,
-0.041217461228370667,
-0.040830034762620926,
-0.058130115270614624,
-0.047113072127103806,
0.015665549784898758,
-0.005124358925968409,
-0.0007555745542049408,
-0.005747359711676836,
-0.00208624848164618,
-0.012831206433475018,
-0.014601178467273712,
0.039250172674655914,
-0.035617440938949585,
0.0033961839508265257,
0.011643631383776665,
0.022179584950208664,
0.02252751775085926,
0.0186210498213768,
0.0415959432721138,
0.0003284307604189962,
0.008296540938317776,
-0.011924875900149345,
0.024094954133033752,
0.040209874510765076,
0.004962997976690531,
0.013448820449411869,
-0.06846553832292557,
-0.023842638358473778,
0.0004431004635989666,
-0.011570712551474571,
-0.08764475584030151,
0.019671892747282982,
0.04459220543503761,
0.010965919122099876,
0.046732623130083084,
-0.012596138752996922,
-0.030277295038104057,
-0.01344161294400692,
0.006912935525178909,
0.013627110980451107,
0.01912357285618782,
0.02737378515303135,
-0.032748881727457047,
0.07524393498897552,
0.031114520505070686,
-0.032639604061841965,
-0.0219589751213789,
-0.021771594882011414,
-0.000021337851649150252,
0.006202146876603365,
-0.05823756381869316,
-0.04426218196749687,
-0.05276504158973694,
-0.08185713738203049,
-0.02612481452524662,
-0.004197674337774515,
-0.021813515573740005,
-0.018026065081357956,
-0.0077019804157316685,
0.02589777112007141,
-0.04116719216108322,
0.03965231776237488,
-0.01676258258521557,
0.021630730479955673,
-0.02123454213142395,
-0.04367872327566147,
-0.024623211473226547,
0.028849950060248375,
-0.01638398878276348,
0.014289510436356068,
-0.00006533999840030447,
-0.054833848029375076,
-0.01868760958313942,
-0.0323127880692482,
0.034076228737831116,
0.015100609511137009,
0.0012319537345319986,
0.032151173800230026
] | [
-0.061181921511888504,
-0.022128749638795853,
-0.02807796560227871,
-0.0040985639207065105,
0.05798621475696564,
-0.051816705614328384,
-0.023549184203147888,
-0.013436529785394669,
0.043160323053598404,
-0.00044735323172062635,
0.03451842814683914,
-0.04911439120769501,
0.026209603995084763,
0.0018122106557711959,
0.045053958892822266,
-0.029027791693806648,
-0.03646129369735718,
-0.03506748378276825,
-0.04956629499793053,
0.037688784301280975,
-0.023923451080918312,
-0.03289153426885605,
-0.029006950557231903,
-0.04149112477898598,
0.017245467752218246,
0.05626260116696358,
0.04395157843828201,
-0.01782635785639286,
-0.009880858473479748,
-0.22285111248493195,
0.0053910380229353905,
0.01648636907339096,
0.028614526614546776,
-0.011607345193624496,
0.032412514090538025,
0.06359194964170456,
0.03471369668841362,
-0.026552772149443626,
0.010258637368679047,
0.03955201804637909,
0.022499319165945053,
0.014287857338786125,
-0.058262091130018234,
-0.009056190960109234,
0.02247796021401882,
0.004177310038357973,
-0.0187038816511631,
-0.034179504960775375,
-0.03262548893690109,
0.015839144587516785,
-0.0220608189702034,
-0.04264553636312485,
-0.013734132051467896,
-0.01682504080235958,
0.012486360035836697,
0.030909020453691483,
0.0453314483165741,
0.07758940011262894,
0.020420970395207405,
0.01771147921681404,
0.0017701354809105396,
0.015291251242160797,
-0.1381685882806778,
0.08073187619447708,
0.01553361862897873,
-0.007603848353028297,
-0.04107378050684929,
-0.015582273714244366,
-0.034883201122283936,
0.09956461191177368,
0.018718980252742767,
-0.004000688903033733,
-0.029364347457885742,
0.07262963801622391,
-0.04322880879044533,
0.04219351336359978,
-0.04305027425289154,
-0.0026989977341145277,
0.039253100752830505,
-0.03128223866224289,
-0.05900507792830467,
0.0038164404686540365,
-0.037639420479536057,
-0.013113206252455711,
-0.02518578991293907,
0.0048180436715483665,
-0.020790785551071167,
0.05991245061159134,
0.016297725960612297,
0.03816491365432739,
0.019276190549135208,
0.004530373495072126,
0.010117718018591404,
0.023831095546483994,
-0.07705007493495941,
-0.018454354256391525,
0.01936107873916626,
0.00917872041463852,
-0.0057000210508704185,
0.3765226900577545,
0.026000259444117546,
0.01320386677980423,
0.03089005872607231,
0.05277393385767937,
-0.0089799165725708,
-0.025182144716382027,
0.005329848267138004,
-0.03966619074344635,
0.04583406448364258,
-0.02336084470152855,
-0.01641354337334633,
-0.0517459511756897,
0.04788898676633835,
-0.1021120697259903,
-0.023946331813931465,
0.007517604157328606,
0.036330658942461014,
0.005973780527710915,
-0.0033910644706338644,
0.01738116331398487,
0.018938858062028885,
-0.01153912115842104,
0.05245069041848183,
0.024641450494527817,
0.03235314041376114,
0.0397174209356308,
0.001977520762011409,
0.058005962520837784,
-0.005055170506238937,
-0.005346021149307489,
0.06175690144300461,
0.025758981704711914,
-0.051201287657022476,
0.051608968526124954,
-0.0004883655929006636,
0.003942215349525213,
0.03440720587968826,
-0.04184473678469658,
0.0036597135476768017,
0.024789312854409218,
-0.029385875910520554,
-0.05895382910966873,
0.03694452717900276,
-0.016006087884306908,
-0.02371656522154808,
0.1594417542219162,
-0.015542316250503063,
-0.017102086916565895,
-0.06767815351486206,
-0.03693554922938347,
-0.025675814598798752,
0.011112252250313759,
-0.006018856540322304,
-0.0745539590716362,
-0.053315721452236176,
0.0376175194978714,
0.08277660608291626,
-0.026410963386297226,
-0.07219770550727844,
-0.013137409463524818,
-0.027440637350082397,
0.01070717815309763,
-0.042461805045604706,
0.10323427617549896,
0.028784388676285744,
-0.10762263834476471,
-0.031647760421037674,
0.021612433716654778,
-0.02943512424826622,
-0.08879365026950836,
0.019850917160511017,
0.015822436660528183,
-0.06318260729312897,
0.00563740124925971,
0.0649309903383255,
-0.033871717751026154,
-0.029277654364705086,
-0.003694410203024745,
0.04783599451184273,
0.007990941405296326,
0.0019672808703035116,
0.019050702452659607,
-0.034039728343486786,
0.0014083599671721458,
-0.0642651841044426,
-0.04594064876437187,
-0.06556110084056854,
0.04460449889302254,
-0.05281427502632141,
-0.03539291024208069,
-0.03225141018629074,
-0.01430543139576912,
-0.029756229370832443,
0.07755983620882034,
-0.055003244429826736,
-0.03453710675239563,
0.002993115456774831,
0.016562698408961296,
-0.018104922026395798,
-0.035982418805360794,
0.060628946870565414,
0.03637554869055748,
0.0015460981521755457,
0.018573565408587456,
-0.05502449348568916,
0.03254793584346771,
0.0497703030705452,
-0.02564297616481781,
0.07130139321088791,
0.013804650865495205,
-0.07827740907669067,
0.01498160045593977,
-0.014926198869943619,
0.006047985982149839,
-0.015487047843635082,
-0.02935451827943325,
-0.030560767278075218,
-0.006116002798080444,
0.012329738587141037,
0.04548695683479309,
-0.015415106900036335,
-0.01482671033591032,
-0.019257698208093643,
-0.35532888770103455,
-0.020959319546818733,
-0.004387127235531807,
-0.000371038680896163,
0.03464583307504654,
-0.018663663417100906,
0.03367258608341217,
-0.0004335003613959998,
-0.007318314164876938,
0.02600047178566456,
0.08631400018930435,
0.00005376222179620527,
-0.012780284509062767,
-0.0958671048283577,
-0.013179427944123745,
0.01875709742307663,
-0.013674908317625523,
-0.019191358238458633,
-0.039258893579244614,
0.03839673101902008,
0.026666516438126564,
-0.05848997086286545,
-0.013957876712083817,
-0.05445938557386398,
0.005631295032799244,
-0.0041617415845394135,
0.11235718429088593,
-0.018287276849150658,
0.021235458552837372,
-0.051213353872299194,
0.07045215368270874,
0.020336810499429703,
-0.04041797295212746,
-0.05353512242436409,
0.009794870391488075,
-0.0029799137264490128,
-0.0030095158144831657,
0.03222491219639778,
-0.025620676577091217,
0.0005594085087068379,
-0.022447749972343445,
-0.019893983379006386,
-0.036201026290655136,
-0.052147455513477325,
-0.021607531234622,
0.022083710879087448,
-0.0375034399330616,
-0.00317187886685133,
-0.0020277665462344885,
0.04998479783535004,
0.01305423304438591,
0.04780786484479904,
0.018352633342146873,
0.010617929510772228,
0.023637326434254646,
-0.008210375905036926,
-0.07303615659475327,
-0.037638451904058456,
0.001999577973037958,
0.02457440085709095,
0.013823349960148335,
0.03293657302856445,
0.024472177028656006,
-0.09178928285837173,
0.024769920855760574,
-0.006647086702287197,
0.032641127705574036,
0.001372821512632072,
0.028121475130319595,
-0.023484503850340843,
-0.039532698690891266,
0.06925760954618454,
-0.0034209666773676872,
0.03853579983115196,
0.01779329404234886,
0.030232660472393036,
-0.016960948705673218,
0.03141147643327713,
0.026750074699521065,
-0.0011918951058760285,
0.04914109781384468,
-0.02121541276574135,
0.07067488878965378,
-0.010797785595059395,
-0.021603194996714592,
0.054268933832645416,
0.009346993640065193,
-0.021451732143759727,
0.07703614979982376,
-0.01001385785639286,
-0.03802315145730972,
-0.00647179177030921,
-0.031138479709625244,
-0.007219900842756033,
0.07731152325868607,
-0.01892690919339657,
-0.25395864248275757,
0.046531032770872116,
0.008964451029896736,
0.049744367599487305,
0.013385696336627007,
0.014623179100453854,
0.011382726952433586,
-0.016999050974845886,
-0.0008728226530365646,
-0.003763665910810232,
0.023063603788614273,
0.06633374094963074,
-0.01791195571422577,
-0.028088493272662163,
-0.006735020782798529,
0.012228972278535366,
0.053318750113248825,
-0.0022258362732827663,
0.029001640155911446,
-0.0005705205257982016,
0.06421080976724625,
-0.03734005242586136,
0.19818033277988434,
0.02777806669473648,
0.007882424630224705,
0.05474221333861351,
-0.03296453878283501,
-0.01832563988864422,
0.043025266379117966,
0.013484593480825424,
-0.013847380876541138,
0.03178771957755089,
0.01766793429851532,
0.03482228145003319,
0.01632954180240631,
-0.005196114536374807,
0.007242026273161173,
0.03899295628070831,
0.024238616228103638,
-0.031068194657564163,
-0.01827777922153473,
0.007083423901349306,
-0.026163827627897263,
0.043759409338235855,
0.07371464371681213,
-0.02747364714741707,
-0.0017832323210313916,
-0.03252333402633667,
-0.06097722053527832,
0.018409734591841698,
-0.05589297413825989,
-0.025615626946091652,
-0.020233049988746643,
-0.020465940237045288,
0.018917232751846313,
0.06151770427823067,
0.009376264177262783,
-0.004367884714156389,
0.0631365031003952,
0.022170403972268105,
-0.0254360418766737,
-0.05653452128171921,
0.12592197954654694,
-0.023025058209896088,
-0.005953263957053423
] | [
0.03379850462079048,
0.05173910781741142,
-0.006678986828774214,
0.07053148001432419,
-0.03607414290308952,
0.0020716185681521893,
-0.0036825535353273153,
-0.004698476288467646,
-0.003782551735639572,
-0.0013059588382020593,
-0.014005331322550774,
-0.014263303019106388,
0.0664074718952179,
-0.031927015632390976,
-0.03256600722670555,
-0.0019325190223753452,
-0.03714838624000549,
0.014536031521856785,
0.025907495990395546,
-0.03797347471117973,
-0.04826679080724716,
0.02072409726679325,
0.042334407567977905,
-0.023612130433321,
-0.0290883369743824,
0.006287452299147844,
-0.03261636570096016,
0.02531062252819538,
0.02387746050953865,
-0.06846430152654648,
-0.047066520899534225,
-0.01679803431034088,
0.0034769228659570217,
0.025918539613485336,
-0.0245658028870821,
0.01112892385572195,
0.02823699451982975,
0.016479142010211945,
-0.004801071714609861,
0.023422207683324814,
0.012181020341813564,
0.006630511488765478,
-0.013397670350968838,
0.002780104288831353,
-0.01362681481987238,
-0.0062446193769574165,
-0.02897782064974308,
-0.025800243020057678,
-0.0024821108672767878,
-0.01927846111357212,
-0.05384150892496109,
0.007166873663663864,
-0.021800238639116287,
-0.01109264139086008,
0.03725781291723251,
0.02260340191423893,
-0.04560796171426773,
-0.009772447869181633,
0.004929218906909227,
-0.0382549986243248,
0.0437525175511837,
-0.002413255162537098,
-0.04545896500349045,
-0.02603585459291935,
-0.00568185793235898,
0.011908731423318386,
0.006354618817567825,
0.040906134992837906,
0.009240995161235332,
0.023823492228984833,
-0.010709130205214024,
0.011768011376261711,
-0.06819496303796768,
-0.02933364547789097,
-0.026870155707001686,
0.05629218742251396,
0.019976694136857986,
-0.029764775186777115,
0.010317527689039707,
-0.007686311844736338,
-0.040277041494846344,
0.017305517569184303,
-0.004876804072409868,
0.021592332050204277,
-0.034279946237802505,
-0.006728526204824448,
0.004203022923320532,
-0.015371739864349365,
0.034873127937316895,
0.008647327311336994,
-0.025426344946026802,
0.01098480075597763,
-0.002286525210365653,
-0.001510674599558115,
-0.09760504961013794,
0.023456737399101257,
0.005665658041834831,
-0.013220185413956642,
0.0060385288670659065,
0.8158482909202576,
0.021880025044083595,
0.0004149327287450433,
-0.012678290717303753,
0.028407232835888863,
-0.024112405255436897,
0.018345573917031288,
0.018218418583273888,
-0.01719311624765396,
0.015899382531642914,
0.016337214037775993,
-0.025655781850218773,
0.018968433141708374,
-0.010360217653214931,
0.023427434265613556,
0.006124401930719614,
0.018049832433462143,
0.055154286324977875,
0.006268808618187904,
0.016940802335739136,
0.017473338171839714,
0.04082689434289932,
-0.012136436067521572,
-0.002386936219409108,
0.005483833607286215,
0.033184707164764404,
-0.14635130763053894,
-0.03450847044587135,
-7.099255603101168e-33,
0.0377623587846756,
-0.013085653074085712,
0.06896717846393585,
0.0029786103405058384,
0.031380586326122284,
0.0436752587556839,
0.004464460536837578,
-0.003325048368424177,
-0.04729235917329788,
-0.013469968922436237,
-0.02184455096721649,
0.007776898797601461,
0.0022566027473658323,
-0.029190758243203163,
0.013700990937650204,
-0.03332044556736946,
-0.0012466514017432928,
0.03240964189171791,
-0.00000917263787414413,
-0.021076640114188194,
-0.007978523150086403,
0.036135587841272354,
-0.006265062373131514,
0.05155453830957413,
0.005578893236815929,
0.008908392861485481,
-0.022490793839097023,
0.027335645630955696,
-0.0002078994584735483,
-0.0516531877219677,
-0.05837063491344452,
0.02948988974094391,
-0.005275769159197807,
-0.041503045707941055,
-0.025180848315358162,
-0.07140953093767166,
-0.0077257608063519,
0.0031720956321805716,
0.004833289887756109,
-0.06754554808139801,
-0.04984688013792038,
-0.0006259112851694226,
0.008820213377475739,
-0.05300821363925934,
-0.03648758307099342,
-0.008762715384364128,
-0.030808037146925926,
0.024137312546372414,
-0.004469457548111677,
0.023447463288903236,
-0.0009406250901520252,
0.020491983741521835,
0.004708073567599058,
0.028873108327388763,
-0.014234730042517185,
0.019590752199292183,
-0.010270358063280582,
0.031733449548482895,
-0.01674037240445614,
0.01530707348138094,
0.0046705217100679874,
-0.02556944265961647,
0.019196458160877228,
0.04541720822453499,
0.048158079385757446,
0.03225289657711983,
0.006911489646881819,
0.028736339882016182,
-0.0008026824216358364,
0.05478399991989136,
-0.039702583104372025,
0.05073050409555435,
-0.030169039964675903,
-0.01759243756532669,
0.058398645371198654,
-0.08615626394748688,
0.005801147781312466,
-0.028303787112236023,
-0.014502174220979214,
0.04517026245594025,
-0.023901453241705894,
0.0012822053395211697,
-0.001322768977843225,
-0.003176584839820862,
0.004349593538790941,
-0.027796005830168724,
0.024741103872656822,
0.0658966526389122,
0.011205583810806274,
0.016040747985243797,
0.03216187655925751,
0.010918169282376766,
-0.0023070001043379307,
-0.025143906474113464,
-0.04133428633213043,
6.618386578118695e-33,
-0.023188550025224686,
0.00981681514531374,
-0.02340835891664028,
-0.005626500118523836,
0.03591075539588928,
-0.035209666937589645,
0.004206642042845488,
-0.010190127417445183,
-0.028229212388396263,
0.040406763553619385,
0.002123294398188591,
-0.035625752061605453,
-0.008961165323853493,
0.018114469945430756,
0.04872548207640648,
0.016865799203515053,
-0.005808214191347361,
-0.0680118054151535,
0.03357856348156929,
0.02773466147482395,
-0.01696470007300377,
-0.00447940593585372,
-0.0099937804043293,
0.04058438912034035,
0.022310759872198105,
-0.002492394531145692,
0.004129684064537287,
0.028384126722812653,
-0.03770372271537781,
-0.005088409874588251,
0.008719517849385738,
-0.04485630244016647,
-0.021124741062521935,
-0.01758291944861412,
0.0029239016585052013,
0.015380446799099445,
-0.028377775102853775,
-0.015352081507444382,
-0.0021524697076529264,
0.004240966867655516,
0.01622636243700981,
0.021806079894304276,
-0.014748032204806805,
0.0807071328163147,
0.017842626199126244,
0.015510580502450466,
0.03688805177807808,
0.005001982674002647,
-0.004960333928465843,
0.017105599865317345,
-0.0004806120414286852,
0.005913784261792898,
0.007167738862335682,
0.02498798817396164,
-0.006132951937615871,
-0.03547712042927742,
0.007111802231520414,
0.03393256664276123,
-0.04111207276582718,
-0.014160661958158016,
-0.03321819752454758,
-0.016473248600959778,
-0.04067973792552948,
0.03667265176773071,
-0.018374618142843246,
-0.01501581259071827,
-0.025561701506376266,
0.0039848098531365395,
-0.025551164522767067,
-0.015711074694991112,
0.008123909123241901,
-0.026973724365234375,
-0.017566144466400146,
0.02096603251993656,
0.020470259711146355,
-0.00909225270152092,
-0.006614193320274353,
-0.002261793240904808,
-0.050662580877542496,
0.03299644961953163,
0.0256429985165596,
0.020021431148052216,
0.04291181638836861,
-0.0007442463538609445,
-0.021701235324144363,
-0.0011697608279064298,
-0.027823852375149727,
0.04792912304401398,
0.0019503330113366246,
0.024521123617887497,
0.010405953042209148,
-0.03948433697223663,
-0.024247558787465096,
0.035425081849098206,
-0.028503475710749626,
-1.264965288072517e-8,
-0.040431536734104156,
0.02865602821111679,
-0.018201302736997604,
0.01739758625626564,
-0.004717304836958647,
0.010380481369793415,
-0.0176815465092659,
0.012870806269347668,
-0.033300187438726425,
0.0023087752051651478,
0.023342175409197807,
-0.012343254871666431,
0.008762380108237267,
0.017464272677898407,
0.012029532343149185,
-0.03916250914335251,
-0.0034208025317639112,
-0.02307554893195629,
0.020847901701927185,
0.014250359497964382,
-0.04002181813120842,
0.05268743634223938,
-0.010761896148324013,
0.006917675491422415,
0.0013110210420563817,
0.0016888983082026243,
0.02760719321668148,
-0.07951278984546661,
-0.018308261409401894,
0.0016562773380428553,
0.03616805747151375,
-0.03788108378648758,
0.0032848790287971497,
0.03863499313592911,
-0.04670613259077072,
-0.056390631943941116,
-0.0004090408037882298,
0.040271323174238205,
0.017183544114232063,
0.03833860158920288,
-0.004762835800647736,
0.030305001884698868,
-0.04614144191145897,
-0.02085457742214203,
-0.044518910348415375,
-0.00027540544397197664,
-0.062231745570898056,
0.0012083806795999408,
0.08187652379274368,
-0.06059766933321953,
-0.0004495701286941767,
-0.01991618238389492,
0.01337451208382845,
-0.00795890111476183,
0.033496808260679245,
0.009335428476333618,
-0.0027326252311468124,
0.02671780064702034,
-0.01420780923217535,
-0.0038803592324256897,
-0.002076647710055113,
-0.001806731102988124,
-0.019195321947336197,
-0.01612468995153904
] | neo4j-summarising-neo4j-shell-output | https://markhneedham.com/blog/2015/08/21/neo4j-summarising-neo4j-shell-output |
false | 2015-08-08 22:50:41 | Record Linkage: Playing around with Duke | [
"software-development"
] | [
"Software Development"
] | I've become quite interesting in https://en.wikipedia.org/wiki/Record_linkage[record linkage] recently and came across the https://github.com/larsga/Duke[Duke] project which provides some tools to help solve this problem. I thought I'd give it a try.
The typical problem when doing record linkage is that we have two records from different data sets which represent the same entity but don't have a common key that we can use to merge them together. We therefore need to come up with a heuristic that will allow us to do so.
Duke has a few examples showing it in action and I decided to go with the https://github.com/larsga/Duke/wiki/LinkingCountries[linking countries] one. Here we have countries from Dbpedia and the Mondial database and we want to link them together.
The first thing we need to do is build the project:
[source,bash]
----
export JAVA_HOME=`/usr/libexec/java_home`
mvn clean package -DskipTests
----
At the time of writing this will put a zip fail containing everything we need at +++<cite>+++duke-dist/target/+++</cite>+++. Let's unpack that:
[source,bash]
----
unzip duke-dist/target/duke-dist-1.3-SNAPSHOT-bin.zip
----
Next we need to download the data files and Duke configuration file:
[source,bash]
----
wget https://raw.githubusercontent.com/larsga/Duke/master/doc/example-data/countries-dbpedia.csv
wget https://raw.githubusercontent.com/larsga/Duke/master/doc/example-data/countries.xml
wget https://raw.githubusercontent.com/larsga/Duke/master/doc/example-data/countries-mondial.csv
wget https://raw.githubusercontent.com/larsga/Duke/master/doc/example-data/countries-test.txt
----
Now we're ready to give it a go:
[source,bash]
----
java -cp "duke-dist-1.3-SNAPSHOT/lib/*" no.priv.garshol.duke.Duke --testfile=countries-test.txt --testdebug --showmatches countries.xml
...
NO MATCH FOR:
ID: '7706', NAME: 'guatemala', AREA: '108890', CAPITAL: 'guatemala city',
MATCH 0.9825124555160142
ID: '10052', NAME: 'pitcairn islands', AREA: '47', CAPITAL: 'adamstown',
ID: 'http://dbpedia.org/resource/Pitcairn_Islands', NAME: 'pitcairn islands', AREA: '47', CAPITAL: 'adamstown',
Correct links found: 200 / 218 (91.7%)
Wrong links found: 0 / 24 (0.0%)
Unknown links found: 0
Percent of links correct 100.0%, wrong 0.0%, unknown 0.0%
Records with no link: 18
Precision 100.0%, recall 91.74311926605505%, f-number 0.9569377990430622
----
We can look in +++<cite>+++countries.xml+++</cite>+++ to see how the similarity between records is being calculated:
[source,xml]
----
<schema>
<threshold>0.7</threshold>
...
<property>
<name>NAME</name>
<comparator>no.priv.garshol.duke.comparators.Levenshtein</comparator>
<low>0.09</low>
<high>0.93</high>
</property>
<property>
<name>AREA</name>
<comparator>no.priv.garshol.duke.comparators.NumericComparator</comparator>
<low>0.04</low>
<high>0.73</high>
</property>
<property>
<name>CAPITAL</name>
<comparator>no.priv.garshol.duke.comparators.Levenshtein</comparator>
<low>0.12</low>
<high>0.61</high>
</property>
</schema>
----
So we're working out similarity of the capital city and country by calculating their Levenshtein distance i.e. the minimum number of single-character edits required to change one word into the other
This works very well if there is a typo or difference in spelling in one of the data sets. However, I was curious what would happen if the country had two completely different names e.g Cote d'Ivoire is sometimes know as Ivory Coast. Let's try changing the country name in one of the files:
[source,text]
----
"19147","Cote dIvoire","Yamoussoukro","322460"
----
[source,bash]
----
java -cp "duke-dist-1.3-SNAPSHOT/lib/*" no.priv.garshol.duke.Duke --testfile=countries-test.txt --testdebug --showmatches countries.xml
NO MATCH FOR:
ID: '19147', NAME: 'ivory coast', AREA: '322460', CAPITAL: 'yamoussoukro',
----
I also tried it out with the http://www.bbc.co.uk/sport/0/football/33744640[BBC] and http://www.espnfc.co.uk/gamecast/statistics/id/422662/statistics.html[ESPN] match reports of the Man Utd vs Tottenham match - the BBC references players by surname, while ESPN has their full names.
When I compared the full name against surname using the Levenshtein comparator there were no matches as you'd expect. I had to split the ESPN names up into first name and surname to get the linking to work.
Equally when I varied the team name's to be 'Man Utd' rather than 'Manchester United' and 'Tottenham' rather than 'Tottenham Hotspur' that didn't work either.
I think I probably need to write a domain specific comparator but I'm also curious whether I could come up with a bunch of training examples and then train a model to detect what makes two records similar. It'd be less deterministic but perhaps more robust. | null | null | [
0.002299355110153556,
0.0013864967040717602,
-0.027733242139220238,
0.06754234433174133,
0.09735481441020966,
0.005075096618384123,
0.008157094940543175,
0.0034375828690826893,
0.0030527848284691572,
-0.041305359452962875,
0.005870407447218895,
-0.02225005067884922,
-0.07767118513584137,
0.025602195411920547,
-0.018303558230400085,
0.05642811581492424,
0.06870876252651215,
-0.0019925013184547424,
0.019700679928064346,
-0.007174485828727484,
0.0013522166991606355,
0.07899104058742523,
-0.009472924284636974,
0.04173517972230911,
0.02932039275765419,
0.012986649759113789,
0.020047524943947792,
-0.016451053321361542,
-0.05772383511066437,
-0.014559397473931313,
0.028782259672880173,
-0.021589772775769234,
-0.001092439633794129,
0.0022296528331935406,
0.0011829560389742255,
-0.010206835344433784,
-0.01098951417952776,
0.01897171512246132,
0.022702021524310112,
0.01163219753652811,
-0.06374352425336838,
0.04577093571424484,
-0.03539741039276123,
0.0011476402869448066,
-0.05652203783392906,
0.0053277951665222645,
-0.043400779366493225,
0.023580895736813545,
-0.0045827715657651424,
-0.013683954253792763,
-0.052459005266427994,
0.023737158626317978,
-0.022000905126333237,
-0.005958037916570902,
-0.00024913999368436635,
0.05502244830131531,
-0.004304079804569483,
-0.07012468576431274,
0.017908642068505287,
-0.04399466887116432,
-0.010111588053405285,
-0.0027174910064786673,
-0.004871925804764032,
0.01197983417659998,
0.05358495935797691,
-0.03263068571686745,
-0.014495342038571835,
0.06219654530286789,
-0.035405270755290985,
-0.029397128149867058,
0.015602347441017628,
-0.005274697206914425,
-0.012399382889270782,
0.006604569964110851,
0.005431723780930042,
-0.029182320460677147,
-0.011807880364358425,
0.028664594516158104,
0.03350064903497696,
0.05370413139462471,
-0.031971484422683716,
0.002186145167797804,
0.0032252061646431684,
0.028094332665205002,
0.023691432550549507,
-0.0592767596244812,
-0.04853721335530281,
-0.020221080631017685,
-0.06408718228340149,
0.0486314557492733,
-0.015426899306476116,
-0.04959094524383545,
0.017309777438640594,
0.03876717388629913,
-0.0033307126723229885,
0.001366783631965518,
0.030170772224664688,
0.01333473902195692,
-0.0015054831746965647,
0.003167045069858432,
-0.029314570128917694,
0.0059860688634216785,
0.0259122084826231,
0.03486612066626549,
-0.07959980517625809,
0.0017231423407793045,
-0.009967752732336521,
-0.01956731081008911,
-0.0001988980220630765,
-0.005521141458302736,
-0.03245214745402336,
-0.0019803803879767656,
-0.03328307718038559,
0.0017849104478955269,
-0.062219806015491486,
0.05932989716529846,
0.01615273393690586,
-0.049656324088573456,
-0.010360314510762691,
0.03456418588757515,
0.03052101470530033,
0.034272607415914536,
-0.032703254371881485,
0.06393367052078247,
0.005377431400120258,
0.03218884393572807,
-0.0290340855717659,
0.04655246064066887,
-0.025866622105240822,
-0.07645231485366821,
0.004675977397710085,
0.07108911871910095,
-0.00040256776264868677,
-0.0005531495553441346,
0.009207742288708687,
-0.015499988570809364,
0.0020618417765945196,
0.03566111996769905,
0.04511129856109619,
0.021059803664684296,
0.00019947656255681068,
-0.046706672757864,
-0.013158213347196579,
0.006184758152812719,
0.010409360751509666,
0.034734923392534256,
-0.014917796477675438,
-0.027440162375569344,
-0.013472453691065311,
0.04066041484475136,
0.02129109762609005,
0.060675062239170074,
0.06323754787445068,
-0.015880493447184563,
0.015657249838113785,
0.12582051753997803,
0.01276201568543911,
0.011053266935050488,
-0.0060918149538338184,
0.0005310559063218534,
0.04317399486899376,
0.03876577690243721,
-0.006323226727545261,
0.050186797976493835,
0.006298104301095009,
-0.0374375656247139,
0.017707496881484985,
0.07074552774429321,
-0.019271664321422577,
-0.005648257210850716,
-0.07537989318370819,
-0.0675620436668396,
0.06058098375797272,
-0.011283048428595066,
-0.021220983937382698,
0.05256134271621704,
0.08900750428438187,
0.03060990385711193,
0.0370461642742157,
0.007015245500952005,
-0.07630256563425064,
0.047121811658144,
0.018657516688108444,
-0.015514235943555832,
0.023088283836841583,
0.010690659284591675,
0.081752710044384,
0.040896229445934296,
-0.013407161459326744,
0.04104834049940109,
-0.07387763261795044,
-0.0774313434958458,
-0.024742716923356056,
0.0036967722699046135,
0.052924010902643204,
-0.02604058012366295,
-0.012556999921798706,
0.06760811060667038,
0.0007488303817808628,
0.023103084415197372,
0.002691294066607952,
0.00449520954862237,
0.021852152422070503,
-0.04045605659484863,
-0.044132914394140244,
0.05170741677284241,
0.030598200857639313,
-0.022606579586863518,
-0.026483599096536636,
-0.031680818647146225,
-0.02682284265756607,
-0.000042103001760551706,
0.03706055507063866,
-0.036681998521089554,
0.023807797580957413,
0.02336946874856949,
0.03595646098256111,
-0.011968686245381832,
0.05583513155579567,
-0.05108062922954559,
0.03852599486708641,
0.0017485504504293203,
-0.0371575802564621,
0.01243935339152813,
-0.021160226315259933,
0.1268375813961029,
0.05021800100803375,
0.00829596258699894,
-0.042917147278785706,
0.026319798082113266,
0.014195255003869534,
-0.0392744205892086,
-0.0011357899056747556,
-0.010270783677697182,
0.012274331413209438,
-0.004793450701981783,
-0.041931480169296265,
-0.018529227003455162,
0.020690839737653732,
-0.03534582257270813,
0.013460944406688213,
0.08865409344434738,
-0.04638003557920456,
0.05736025050282478,
0.02867564558982849,
-0.020706238225102425,
-0.003167690010741353,
-0.0386761873960495,
-0.07068277150392532,
0.00016932345170062035,
0.010386532172560692,
-0.0060493010096251965,
0.03268149867653847,
-0.004645343404263258,
-0.0026623294688761234,
-0.03812839090824127,
-0.032352328300476074,
0.02172209694981575,
0.04094136878848076,
0.0623018853366375,
-0.011017782613635063,
0.05313203111290932,
-0.0330493226647377,
0.009244109503924847,
-0.01359331514686346,
-0.028520749881863594,
-0.03987513855099678,
0.0027079947758466005,
0.016476960852742195,
0.011566434986889362,
0.012537497095763683,
0.01164268422871828,
0.01094624400138855,
-0.006417076103389263,
-0.022820129990577698,
-0.002001345856115222,
0.02806258015334606,
-0.02347932569682598,
-0.018980437889695168,
-0.04890461638569832,
-0.02665897272527218,
0.05578800290822983,
-0.043287914246320724,
-0.03709307685494423,
0.02180524542927742,
-0.0849347859621048,
0.04994538426399231,
-0.06465917080640793,
-0.0137269152328372,
-0.011347152292728424,
0.02518044412136078,
0.03491842746734619,
0.0026861531659960747,
-0.0008256514556705952,
0.08268704265356064,
0.02118946984410286,
0.03395100682973862,
0.006838230416178703,
0.019933613017201424,
0.028695646673440933,
-0.036236315965652466,
0.0052388799376785755,
0.034731149673461914,
-0.022975223138928413,
0.0015064793406054378,
-0.04866155982017517,
0.0006451223744079471,
-0.016656337305903435,
-0.30993548035621643,
0.0350116528570652,
-0.011988160200417042,
-0.0535166971385479,
0.033436473459005356,
-0.008484763093292713,
0.009390365332365036,
-0.05467835068702698,
-0.04573867470026016,
-0.0018421823624521494,
-0.023401392623782158,
-0.05198743939399719,
-0.010538267903029919,
0.045296382158994675,
0.01111037377268076,
0.044349655508995056,
-0.009943844750523567,
-0.028728004544973373,
-0.012986712157726288,
0.06101829931139946,
-0.00841975212097168,
-0.05721912533044815,
-0.015428811311721802,
0.05554099380970001,
0.019933467730879784,
0.042068906128406525,
-0.06294742971658707,
0.01942252926528454,
-0.06188070401549339,
-0.04165155068039894,
0.019648095592856407,
0.0009868982015177608,
-0.02416137419641018,
-0.008039982058107853,
-0.011131462641060352,
-0.05673501640558243,
0.029523206874728203,
0.05670258030295372,
0.0074320947751402855,
0.015547678805887699,
-0.05376740172505379,
-0.021461239084601402,
-0.016097793355584145,
-0.016113873571157455,
0.06114189326763153,
-0.027244890108704567,
-0.05500297620892525,
-0.02017633058130741,
-0.056410666555166245,
0.08487949520349503,
-0.04005696624517441,
-0.043028999119997025,
-0.03091365471482277,
0.03957531228661537,
-0.005500799044966698,
0.02383231185376644,
0.00948980264365673,
0.006750140804797411,
-0.054878149181604385,
-0.02376762591302395,
0.003502232488244772,
-0.055847473442554474,
-0.022656423971056938,
-0.06334517896175385,
-0.030596811324357986,
-0.06706903874874115,
-0.07811988145112991,
-0.04041372612118721,
0.07291513681411743,
0.04698312655091286,
-0.03481419011950493,
0.016297128051519394,
-0.00919787585735321,
-0.10037089884281158,
-0.011399836279451847,
-0.033500343561172485,
-0.01160342339426279,
-0.0299391970038414,
0.0035777688026428223,
0.06735604256391525,
-0.017953597009181976,
-0.02165319211781025,
0.017429562285542488,
0.022477801889181137,
0.0009458658751100302,
-0.009518079459667206,
0.011672929860651493,
-0.009912542067468166,
-0.029980668798089027,
-0.00960707850754261,
0.06104372441768646,
-0.025532765313982964,
-0.0033933951053768396,
-0.029476385563611984,
-0.017817463725805283,
0.024720272049307823,
-0.0188253503292799,
0.0042352513410151005,
-0.003891118336468935,
0.029022445902228355,
0.033170588314533234,
-0.05494160205125809,
0.005320465657860041,
-0.043716493993997574,
-0.012755858711898327,
-0.013401218689978123,
-0.04665898531675339,
0.02677519991993904,
0.022188466042280197,
0.055143266916275024,
-0.010491494089365005,
-0.032480984926223755,
0.042773645371198654,
-0.04408692196011543,
-0.033103082329034805,
-0.028103448450565338,
0.033963799476623535,
0.024367133155465126,
0.020066220313310623,
-0.016131054610013962,
-0.033352795988321304,
0.010183626785874367,
0.01449867244809866,
-0.029800191521644592,
-0.05028615519404411,
-0.023436883464455605,
-0.033050987869501114,
-0.006378705147653818,
0.01314077153801918,
0.03307389095425606,
-0.04278602823615074,
0.03733840212225914,
0.022107776254415512,
-0.05137070268392563,
0.015178604051470757,
-0.03572428598999977,
-0.039745740592479706,
-0.039349932223558426,
-0.009653257206082344,
0.00469892006367445,
-0.020398586988449097,
-0.0018879568669945002,
0.010873587802052498,
0.03340550512075424,
0.05835912376642227,
-0.005970153491944075,
0.03180835023522377,
0.028742356225848198,
0.009094510227441788,
-0.013233774341642857,
-0.003408664371818304,
-0.028879348188638687,
0.01037893258035183,
-0.01206422969698906,
-0.023987561464309692,
-0.005088286940008402,
0.0223324466496706,
0.0017941623227670789,
-0.003305724821984768,
-0.02826187014579773,
-0.0008852598839439452,
-0.04411748796701431,
0.0025142154190689325,
-0.0028864534106105566,
-0.0018082716269418597,
0.07913262397050858,
-0.012957468628883362,
0.018352754414081573,
-0.014842172153294086,
-0.003771418472751975,
0.008512903936207294,
-0.0000657681594020687,
-0.024869559332728386,
-0.01404723059386015,
-0.013526945374906063,
0.024806005880236626,
0.006386271677911282,
0.028583645820617676,
0.04225701093673706,
0.004660399630665779,
-0.014710184186697006,
-0.025279289111495018,
0.0030470779165625572,
-0.02785361371934414,
0.03796123340725899,
0.01579251140356064,
-0.022502915933728218,
0.020637163892388344,
-0.0005726999952457845,
-0.02488134615123272,
-0.00021366728469729424,
0.0030525957699865103,
-0.014051007106900215,
0.03726799786090851,
-0.028317665681242943,
-0.07840557396411896,
0.02732204645872116,
0.014220349490642548,
-0.000997550436295569,
0.028332818299531937,
-0.018966911360621452,
-0.003259401535615325,
-0.017062867060303688,
0.03081894852221012,
0.0617489330470562,
-0.05506441742181778,
-0.0018083618488162756,
-0.009070388041436672,
-0.01025928184390068,
0.011007593013346195,
0.00411235960200429,
-0.033609211444854736,
-0.02343992330133915,
-0.00077289022738114,
0.04253567010164261,
-0.03660770133137703,
-0.011440597474575043,
-0.026406848803162575,
0.03534900024533272,
0.015426327474415302,
0.014370383694767952,
0.01237238198518753,
0.0014993746299296618,
-0.0012613318394869566,
-0.005567701533436775,
0.025532547384500504,
-0.028757702559232712,
-0.009759515523910522,
0.0058287461288273335,
-0.017179366201162338,
0.01011238619685173,
-0.04010152071714401,
0.03701666370034218,
0.03262851759791374,
-0.04149681329727173,
0.02501179277896881,
-0.021526722237467766,
0.02147146686911583,
0.013408791273832321,
0.023248542100191116,
0.026368282735347748,
0.002143986988812685,
0.00017857424973044544,
0.01626238226890564,
-0.018190911039710045,
-0.013720438815653324,
-0.03028985485434532,
0.003743793349713087,
-0.010050807148218155,
0.03510148450732231,
0.0010301313595846295,
0.0068723889999091625,
-0.018154196441173553,
-0.04285478591918945,
0.05700594559311867,
-0.018937276676297188,
-0.043926313519477844,
-0.024180850014090538,
-0.03853751718997955,
0.025199541822075844,
0.03192679211497307,
0.019041627645492554,
-0.05936845764517784,
0.0555926077067852,
0.04724019393324852,
0.015170060098171234,
0.022857647389173508,
0.006587945390492678,
0.04391438513994217,
-0.048688292503356934,
-0.01588941551744938,
-0.054858844727277756,
0.010416007600724697,
0.0022394023835659027,
-0.012319735251367092,
0.0014002136886119843,
0.005803967360407114,
-0.035076647996902466,
0.018291519954800606,
-0.06916754692792892,
-0.02512640319764614,
0.014400090090930462,
-0.02510116994380951,
0.02844739891588688,
-0.009792210534214973,
-0.04088716581463814,
-0.003364820033311844,
0.0364864319562912,
-0.04180379956960678,
-0.02962583117187023,
-0.03515521436929703,
0.05912531167268753,
0.016494033858180046,
0.028555521741509438,
-0.009659752249717712,
0.0005793386371806264,
0.039029769599437714,
0.01052835676819086,
0.04520263522863388,
0.038316644728183746,
-0.002625338500365615,
0.030991286039352417,
0.020385876297950745,
-0.029326602816581726,
0.018257543444633484,
0.01999509707093239,
-0.03125448524951935,
-0.030705953016877174,
0.05699053406715393,
0.010575161315500736,
0.009636436589062214,
-0.034846071153879166,
0.06306948512792587,
0.015430623665452003,
-0.04241882637143135,
-0.063887819647789,
0.040259022265672684,
-0.03729017823934555,
0.0006762008415535092,
-0.02464163675904274,
0.004457239061594009,
-0.009200114756822586,
0.03671938553452492,
-0.012560414150357246,
0.030602892860770226,
0.05431380122900009,
0.0036368451546877623,
-0.0311069805175066,
0.022138340398669243,
0.08176396042108536,
0.055947937071323395,
0.038536153733730316,
0.023865774273872375,
0.07194478064775467,
-0.002658993238583207,
-0.03659287467598915,
0.015055633150041103,
-0.029485691338777542,
-0.00970256607979536,
0.0016398777952417731,
-0.020223187282681465,
0.048571791499853134,
0.008975233882665634,
0.06020594760775566,
0.0034284349530935287,
-0.01928737387061119,
-0.014341190457344055,
0.024384062737226486,
0.04104664549231529,
0.025715218856930733,
0.01597786694765091,
0.024662230163812637,
-0.02519659698009491,
-0.037476133555173874,
0.05368240177631378,
0.0019426005892455578,
-0.008676622994244099,
0.009245212189853191,
-0.020231841132044792,
0.019423119723796844,
-0.00258684647269547,
0.03663025051355362,
0.07152125239372253,
-0.0028922564815729856,
0.008249874226748943,
-0.008939646184444427,
0.02927444502711296,
0.01065403688699007,
0.018773118034005165,
0.0010791015811264515,
-0.023453636094927788,
-0.007690238766372204,
-0.04576493054628372,
-0.0033471707720309496,
-0.0253820288926363,
-0.011993986554443836,
0.021317260339856148,
-0.05318721756339073,
0.004851598758250475,
0.01410688180476427,
0.007501102983951569,
-0.029008828103542328,
-0.03863091394305229,
-0.03896711766719818,
-0.03731134533882141,
-0.06172921136021614,
-0.0054691447876393795,
-0.00000616377155893133,
0.006619293242692947,
-0.015600570477545261,
-0.038762886077165604,
-0.05168609693646431,
-0.004117202945053577,
0.02329304814338684,
-0.05490164831280708,
-0.03867913410067558,
0.0007031566346995533,
0.05165057256817818,
0.03180902823805809,
0.024471363052725792,
0.05569295957684517,
-0.01579037494957447,
-0.0007255903328768909,
-0.026072410866618156,
0.019446637481451035,
0.024925028905272484,
0.015356860123574734,
0.023367801681160927,
-0.08453496545553207,
0.03338555991649628,
0.0012182686477899551,
-0.02035827562212944,
-0.09230079501867294,
0.012631210498511791,
0.05896782502532005,
-0.023371802642941475,
0.05672943964600563,
-0.0007630550535395741,
-0.013807996176183224,
-0.02882348746061325,
-0.020061282441020012,
-0.004142745863646269,
0.006957479286938906,
0.04675588011741638,
-0.01614738628268242,
0.09407953917980194,
0.051913756877183914,
0.015956297516822815,
-0.06442252546548843,
-0.027143051847815514,
0.02797732688486576,
-0.0071766735054552555,
-0.021379876881837845,
-0.04816409572958946,
-0.047777723520994186,
-0.0747937262058258,
-0.0531902015209198,
0.03770780935883522,
-0.04510005936026573,
-0.02274174615740776,
0.0010773270623758435,
0.033381879329681396,
-0.022045327350497246,
0.01608269102871418,
-0.04089105874300003,
-0.004248608369380236,
-0.028190702199935913,
-0.0064960140734910965,
-0.028153324499726295,
0.054980888962745667,
-0.0102391941472888,
-0.006549485959112644,
0.04558185860514641,
-0.04584972932934761,
-0.003620677627623081,
-0.00952477753162384,
0.01131479348987341,
0.04512498155236244,
-0.025414729490876198,
-0.008963648229837418
] | [
-0.07876844704151154,
-0.014104575850069523,
-0.025454960763454437,
-0.02928103134036064,
0.05435587093234062,
-0.07820239663124084,
-0.022598879411816597,
-0.026559535413980484,
0.0025501090567559004,
-0.00911896862089634,
0.029242336750030518,
-0.042659565806388855,
0.035091448575258255,
-0.013415290042757988,
0.07265875488519669,
0.0026445200201123953,
-0.02685372531414032,
-0.01987486705183983,
-0.03209088370203972,
0.05133122205734253,
-0.025069594383239746,
-0.050814900547266006,
-0.011696850880980492,
0.016477569937705994,
-0.00544429337605834,
0.032490041106939316,
0.053122930228710175,
-0.04238925501704216,
0.004906266462057829,
-0.20706415176391602,
0.02030377835035324,
0.024619847536087036,
-0.01831660233438015,
-0.019002754241228104,
0.01984776370227337,
0.023916780948638916,
0.02675946056842804,
0.020163821056485176,
0.0036041238345205784,
0.020370516926050186,
0.05744517222046852,
0.028138604015111923,
-0.03285647928714752,
-0.05900424346327782,
0.06363008171319962,
0.02696082927286625,
0.0025429450906813145,
-0.003883053781464696,
-0.03145822510123253,
0.0033308060374110937,
-0.05249149352312088,
0.010959525592625141,
-0.036065004765987396,
-0.008562969975173473,
-0.006033356301486492,
0.07596153765916824,
0.06997746229171753,
0.03228958696126938,
0.016390597447752953,
0.04656926542520523,
0.03610549867153168,
-0.01282404363155365,
-0.14789488911628723,
0.0779181569814682,
-0.0015774002531543374,
0.06834658235311508,
-0.011852618306875229,
-0.014284796081483364,
-0.03266133740544319,
0.07551759481430054,
-0.01458730548620224,
-0.013762080110609531,
-0.0404997318983078,
0.04264465346932411,
-0.038169391453266144,
-0.0037504348438233137,
-0.009865550324320793,
0.025840630754828453,
0.007061269134283066,
-0.008087815716862679,
-0.06712538003921509,
-0.004413134418427944,
-0.017109278589487076,
-0.04457715153694153,
-0.023726869374513626,
0.008367038331925869,
-0.015062296763062477,
0.0006222438532859087,
-0.027821259573101997,
-0.0057744658552110195,
0.056164342910051346,
0.0024035584647208452,
0.07947643846273422,
0.014461569488048553,
-0.08359373360872269,
-0.002475716406479478,
0.00522110378369689,
0.003964717499911785,
0.010008103214204311,
0.39610815048217773,
0.003708532312884927,
-0.011269303038716316,
0.06769677251577377,
0.01047997735440731,
-0.00057885522255674,
0.003824821673333645,
-0.02555624209344387,
-0.020246082916855812,
0.055303364992141724,
-0.04950042441487312,
0.0027749119326472282,
-0.04326106980443001,
0.011758226901292801,
-0.0719808042049408,
0.053739361464977264,
0.03380903601646423,
0.017265809699892998,
0.04633424058556557,
-0.029468592256307602,
-0.0244292002171278,
-0.018607843667268753,
0.01339652482420206,
0.014483071863651276,
0.04741007462143898,
0.015661796554923058,
0.005540780257433653,
0.017547650262713432,
0.034800898283720016,
0.09714057296514511,
-0.0011764841619879007,
0.03084964118897915,
-0.019970567896962166,
-0.1183859333395958,
-0.02349674701690674,
-0.03396667167544365,
-0.0013114293105900288,
0.019542638212442398,
-0.034988150000572205,
0.012816003523766994,
-0.015414426103234291,
-0.0024874198716133833,
-0.053121212869882584,
0.013379461131989956,
0.008334577083587646,
-0.059023674577474594,
0.13463366031646729,
-0.004371410235762596,
-0.01796766184270382,
-0.05106179043650627,
-0.022298447787761688,
0.010757353156805038,
0.020801229402422905,
-0.0035605602897703648,
-0.0685216411948204,
0.006432313472032547,
0.009133536368608475,
0.07485538721084595,
-0.011014750227332115,
-0.038520317524671555,
-0.022325530648231506,
0.005023314151912928,
-0.05214095488190651,
-0.025067003443837166,
0.06594071537256241,
0.07464436441659927,
-0.1340307742357254,
-0.02346936985850334,
0.02095138095319271,
0.017110785469412804,
-0.08065539598464966,
-0.0014576625544577837,
0.016120780259370804,
-0.03173037990927696,
-0.010117223486304283,
0.025558747351169586,
-0.0417989119887352,
-0.037039000540971756,
-0.0027798237279057503,
0.04690883308649063,
-0.007362214848399162,
-0.01876617968082428,
-0.01358578260987997,
-0.05044503137469292,
-0.0016702195862308145,
-0.04262910410761833,
-0.06501901149749756,
-0.0664401650428772,
0.013450528495013714,
-0.02950510010123253,
-0.015314185060560703,
-0.012575970031321049,
-0.015118064358830452,
-0.028284674510359764,
0.11103060096502304,
-0.030854199081659317,
-0.044841963797807693,
-0.019191641360521317,
0.03355719521641731,
-0.008340575732290745,
-0.04307202994823456,
0.013336381874978542,
0.041119277477264404,
-0.0030646638479083776,
0.03363171964883804,
-0.06780903786420822,
0.026608485728502274,
0.07147207856178284,
-0.04233729466795921,
0.053936827927827835,
0.01976386085152626,
-0.011981671676039696,
-0.008516243658959866,
0.0037161752115935087,
0.020354976877570152,
0.001866068341769278,
0.016449933871626854,
-0.041988980025053024,
0.006353221368044615,
0.013465802185237408,
0.054944008588790894,
-0.04722844436764717,
-0.03617488592863083,
0.02138555981218815,
-0.3603764474391937,
-0.02849111519753933,
-0.04567287117242813,
0.024679457768797874,
0.0518818162381649,
-0.029606319963932037,
0.011233698576688766,
0.004278938286006451,
-0.03435059264302254,
0.05139916017651558,
0.06027369946241379,
-0.020315390080213547,
0.005566817242652178,
-0.05029141902923584,
-0.051338449120521545,
0.05755886808037758,
0.0062486110255122185,
0.007823405787348747,
-0.014083345420658588,
-0.008621979504823685,
0.021642277017235756,
-0.016808053478598595,
-0.038815274834632874,
-0.04264374449849129,
0.011038084514439106,
-0.02546834945678711,
0.0813135877251625,
0.0007348926737904549,
0.04647849500179291,
-0.06286125630140305,
0.04036369174718857,
0.007381994742900133,
-0.006623090710490942,
-0.09276742488145828,
0.006091076415032148,
-0.012255986221134663,
-0.028147615492343903,
0.0007270426140166819,
0.02516404539346695,
-0.03339187800884247,
-0.05486511439085007,
0.022362982854247093,
-0.023383842781186104,
-0.04217345267534256,
-0.02344389259815216,
0.04682944342494011,
-0.01992393471300602,
-0.0013730026548728347,
0.024514680728316307,
0.07379443198442459,
-0.022167062386870384,
0.03224307671189308,
0.028307223692536354,
0.020807836204767227,
-0.008935761637985706,
-0.02385803498327732,
-0.11154855042695999,
-0.031230483204126358,
0.01841552183032036,
0.023465773090720177,
0.04551612213253975,
0.03864388167858124,
0.05671137571334839,
-0.04801114648580551,
0.0006017429986968637,
0.010006430558860302,
-0.01195315457880497,
0.04064641147851944,
0.03128930181264877,
-0.030424099415540695,
-0.03703930974006653,
0.05555368587374687,
-0.03054068610072136,
0.033272337168455124,
0.04902719333767891,
0.06134800240397453,
-0.022601298987865448,
-0.00745416758581996,
0.024810057133436203,
-0.021005190908908844,
0.03373227268457413,
-0.027997955679893494,
0.028098754584789276,
-0.009601093828678131,
0.000025766708859009668,
0.059458374977111816,
0.037695109844207764,
-0.01617570035159588,
0.08117245882749557,
0.01976492628455162,
-0.01918746717274189,
-0.05337323248386383,
-0.0009669124847277999,
-0.05834493786096573,
0.03364713490009308,
0.026145532727241516,
-0.25782451033592224,
0.04642390087246895,
0.02851228415966034,
0.07106970995664597,
0.005015106406062841,
0.02416239120066166,
0.06814592331647873,
-0.031020479276776314,
0.04478472098708153,
-0.00613483926281333,
0.04794573411345482,
0.008837304078042507,
-0.00335525325499475,
0.017825983464717865,
-0.0053942035883665085,
-0.015243575908243656,
0.02836121991276741,
0.0018853343790397048,
0.020353784784674644,
0.014967270195484161,
0.05641179904341698,
-0.030724067240953445,
0.15108038485050201,
0.06387429684400558,
0.00905707199126482,
0.014459921047091484,
-0.022662587463855743,
0.018933281302452087,
0.03403721749782562,
0.011539386585354805,
-0.03606391325592995,
-0.006488914135843515,
0.03767211362719536,
0.0245193000882864,
0.014147385023534298,
-0.07014484703540802,
-0.014060408808290958,
0.04815736040472984,
0.04313085973262787,
-0.04009894281625748,
-0.02838965691626072,
-0.005415064748376608,
-0.05498874932527542,
0.013152667321264744,
0.0996963232755661,
-0.008532926440238953,
0.0003530976246111095,
-0.000302530184853822,
-0.03235792741179466,
-0.0048317573964595795,
0.015836505219340324,
-0.06574566662311554,
-0.005151696037501097,
-0.03945111855864525,
-0.010960714891552925,
0.09420204907655716,
0.014867586083710194,
-0.01886904425919056,
0.031379543244838715,
0.010387982241809368,
0.01181217934936285,
-0.020770980045199394,
0.046368662267923355,
0.01766667142510414,
0.0025377923157066107
] | [
-0.015494605526328087,
0.029536446556448936,
-0.02860477939248085,
0.01673130691051483,
0.0026429055724292994,
-0.0029850543942302465,
-0.010858713649213314,
0.003226826898753643,
-0.035931188613176346,
0.01923949085175991,
-0.014850672334432602,
0.00936362985521555,
0.07173515856266022,
-0.027792178094387054,
0.0018854070222005248,
0.002488780301064253,
-0.049626972526311874,
0.03204916790127754,
0.020798757672309875,
0.004694818984717131,
-0.02633623592555523,
0.000953767797909677,
0.04019993543624878,
-0.01547180861234665,
-0.013761203736066818,
0.010725367814302444,
-0.013264121487736702,
0.027393585070967674,
0.007628055289387703,
-0.1386384218931198,
-0.03247593715786934,
-0.0008308463729918003,
-0.021285805851221085,
-0.005108156707137823,
0.017443589866161346,
0.029728133231401443,
0.019730450585484505,
0.034219611436128616,
-0.011950427666306496,
0.002948879962787032,
0.044148486107587814,
-0.000569434545468539,
0.027624916285276413,
0.008134854957461357,
-0.01202346757054329,
0.009271047078073025,
-0.042622052133083344,
0.0295448899269104,
-0.019702252000570297,
0.031392231583595276,
-0.051096294075250626,
0.010070517659187317,
0.027415623888373375,
-0.00217679631896317,
0.02530796080827713,
0.021841395646333694,
-0.016046006232500076,
0.03764360398054123,
-0.007184385787695646,
-0.024656562134623528,
-0.00908743217587471,
-0.01067383773624897,
-0.06428461521863937,
-0.044774048030376434,
0.0057496870867908,
-0.026409894227981567,
-0.04235333949327469,
0.03202856704592705,
0.013022690080106258,
-0.0007844435167498887,
-0.000612010364420712,
0.02144555374979973,
-0.04587734863162041,
-0.020321810618042946,
-0.021946202963590622,
0.0263005830347538,
0.0031714027281850576,
-0.0054110935889184475,
0.00432217214256525,
0.011454467661678791,
-0.03024868108332157,
0.003599628573283553,
0.006657799705862999,
-0.04012799263000488,
0.024897683411836624,
-0.012053600512444973,
-0.008765115402638912,
-0.00018344965064898133,
-0.001545713166706264,
0.010441192425787449,
-0.000502335315104574,
0.013914553448557854,
0.03185443952679634,
0.013021484948694706,
-0.07503147423267365,
0.02400675043463707,
0.013902521692216396,
-0.004719791933894157,
0.0015282501699402928,
0.8520901203155518,
0.010054589249193668,
0.022905856370925903,
0.034346677362918854,
0.04200858250260353,
0.018526552245020866,
-0.01705055870115757,
-0.011924348771572113,
0.021076718345284462,
0.013721434399485588,
-0.028177402913570404,
0.024149946868419647,
0.0017349233385175467,
0.02629699371755123,
-0.019104447215795517,
0.01223102118819952,
0.02460378408432007,
0.008524573408067226,
0.02575863152742386,
-0.009462280198931694,
-0.021413078531622887,
0.011366995982825756,
0.010156849399209023,
-0.01966644823551178,
-0.006856873631477356,
0.00510277459397912,
-0.17704011499881744,
-0.0028422854375094175,
-6.990027198654823e-33,
0.0658041313290596,
-0.018204055726528168,
0.02815140411257744,
-0.011326193809509277,
-0.01430538110435009,
0.012082606554031372,
-0.028685104101896286,
-0.0014802541118115187,
-0.04557114467024803,
-0.017428051680326462,
-0.03954177349805832,
0.0019973141606897116,
0.007857870310544968,
-0.03901011124253273,
0.014843999408185482,
-0.013736482709646225,
0.0022410096134990454,
0.039379820227622986,
-0.010630766861140728,
0.007999992929399014,
0.023648502305150032,
0.04697750136256218,
0.007189285475760698,
0.010797152295708656,
0.039056360721588135,
0.012697393074631691,
0.0051284292712807655,
-0.0164335910230875,
0.022198189049959183,
-0.03740943595767021,
-0.009919341653585434,
0.006214513443410397,
-0.0033878155518323183,
-0.0520208366215229,
0.00972302071750164,
-0.05916358530521393,
-0.022387968376278877,
-0.0025451129768043756,
-0.04388504475355148,
-0.05053184553980827,
-0.013696256093680859,
-0.0010984463151544333,
-0.011457609012722969,
0.007062471937388182,
-0.02575785107910633,
0.0009753353660926223,
0.05251704528927803,
0.0031197352800518274,
-0.01851038448512554,
0.04482094198465347,
0.0240938737988472,
-0.011252613738179207,
-0.007709049619734287,
-0.017069749534130096,
-0.02640683948993683,
0.01654168777167797,
-0.01655491627752781,
-0.0032347540836781263,
0.02756110019981861,
0.020370712503790855,
0.010931544937193394,
-0.028106097131967545,
-0.0046499669551849365,
0.025333112105727196,
0.021579576656222343,
-0.0019134622998535633,
-0.00025400728918612003,
0.004820639733225107,
0.049887754023075104,
-0.007014028262346983,
-0.02822321467101574,
0.03723129257559776,
0.0011934256181120872,
-0.021525494754314423,
0.05377139523625374,
-0.011158330366015434,
-0.004932913929224014,
-0.009024339728057384,
0.027668120339512825,
0.009160409681499004,
0.004505662247538567,
-0.023715708404779434,
-0.03482821211218834,
-0.021175937727093697,
-0.009453602135181427,
0.0045138997957110405,
0.001049429876729846,
-0.0348990224301815,
-0.02094677835702896,
-0.0020619668066501617,
0.05965263769030571,
0.06212088093161583,
-0.021002354100346565,
-0.032747626304626465,
-0.02150994911789894,
7.59912061679293e-33,
0.021151194348931313,
-0.02019599638879299,
0.031670764088630676,
-0.01400735042989254,
0.013779174536466599,
-0.023935412988066673,
0.03220074251294136,
-0.008027881383895874,
-0.026483621448278427,
0.008530952036380768,
-0.020050784572958946,
-0.03489697352051735,
0.0006162084173411131,
0.008495323359966278,
0.030502060428261757,
-0.017837734892964363,
0.031000463292002678,
-0.013599025085568428,
0.02681262418627739,
0.04392281547188759,
0.026414867490530014,
-0.011424512602388859,
0.003723347559571266,
0.024204939603805542,
0.02159428410232067,
0.022648371756076813,
-0.03695911541581154,
-0.011833610944449902,
0.008016047067940235,
0.00614550244063139,
0.022800462320446968,
-0.011100956238806248,
-0.007638007868081331,
-0.015000524930655956,
-0.031414665281772614,
0.025206061080098152,
-0.006058509461581707,
0.020533820614218712,
0.025898415595293045,
0.0008807301055639982,
0.010717355646193027,
0.0017278396990150213,
-0.022666582837700844,
0.0009104663040488958,
0.03784912824630737,
0.009108537808060646,
-0.01216370239853859,
0.05238937586545944,
-0.029084663838148117,
0.0004709440690930933,
-0.030474118888378143,
0.037640977650880814,
-0.017428096383810043,
0.007004048675298691,
0.03558740019798279,
-0.03499456122517586,
-0.02705242484807968,
0.028507672250270844,
-0.006879676599055529,
0.012977108359336853,
0.006654512602835894,
0.0015189960831776261,
-0.01976977474987507,
0.02205505594611168,
-0.022132430225610733,
0.007027330808341503,
-0.02452753856778145,
0.007252140436321497,
0.007751115132123232,
0.005924949888139963,
-0.00017594943346921355,
-0.01562708243727684,
0.015429324470460415,
0.030585864558815956,
0.04442824050784111,
-0.011963163502514362,
-0.03708650544285774,
0.0003102520131506026,
0.00029410445131361485,
0.039126839488744736,
-0.0003729791205842048,
0.001355852116830647,
0.021457606926560402,
-0.02249908074736595,
-0.004860857501626015,
0.02599874883890152,
0.0031095684971660376,
-0.02066192775964737,
0.01328387949615717,
0.014031190425157547,
-0.027590647339820862,
-0.06605153530836105,
-0.0051307836547493935,
0.04085735231637955,
-0.02035159058868885,
-1.2754601819153777e-8,
-0.034268952906131744,
0.02187727950513363,
-0.019090237095952034,
-0.0359545573592186,
0.008478517644107342,
0.020647017285227776,
-0.007799291983246803,
0.02045307867228985,
-0.0002377210621489212,
0.0018301347736269236,
0.05169547721743584,
0.0050651696510612965,
-0.01621110737323761,
0.021018821746110916,
0.00907170306891203,
-0.04627935215830803,
0.030604669824242592,
-0.03878859058022499,
0.01902923919260502,
0.006243906449526548,
0.006772601045668125,
0.03682081028819084,
0.00046085630310699344,
-0.008589298464357853,
-0.008032905869185925,
-0.015501477755606174,
-0.00810147449374199,
-0.07093331962823868,
0.008941025473177433,
-0.018790412694215775,
0.03741643577814102,
-0.01950433850288391,
-0.016671190038323402,
0.0018749544396996498,
-0.024287542328238487,
-0.01789996027946472,
0.005305423401296139,
0.02669110894203186,
0.023862507194280624,
-0.001885589212179184,
0.017226822674274445,
-0.006540833041071892,
-0.0398443229496479,
-0.018506696447730064,
-0.008153221569955349,
-0.012627276591956615,
0.009570292197167873,
0.014264706522226334,
-0.009840318001806736,
-0.043356720358133316,
0.015085652470588684,
-0.015238362364470959,
0.016026275232434273,
0.0004991543246433139,
0.049676962196826935,
0.012672445736825466,
0.006388028152287006,
-0.005102930124849081,
-0.014438565820455551,
0.005056809633970261,
0.012695387937128544,
-0.0026703677140176296,
-0.014966549351811409,
-0.0243197251111269
] | record-linkage-playing-around-with-duke | https://markhneedham.com/blog/2015/08/08/record-linkage-playing-around-with-duke |
false | 2015-08-06 21:11:44 | Spark: Convert RDD to DataFrame | [
"spark-2"
] | [
"Spark"
] | As I mentioned in a previous blog post I've been http://www.markhneedham.com/blog/2015/08/02/spark-processing-csv-files-using-databricks-spark-csv-library/[playing around with the Databricks Spark CSV library] and wanted to take a CSV file, clean it up and then write out a new CSV file containing some of the columns.
I started by processing the CSV file and writing it into a temporary table:
[source,scala]
----
import org.apache.spark.sql.{SQLContext, Row, DataFrame}
val sqlContext = new SQLContext(sc)
val crimeFile = "Crimes_-_2001_to_present.csv"
sqlContext.load("com.databricks.spark.csv", Map("path" -> crimeFile, "header" -> "true")).registerTempTable("crimes")
----
I wanted to get to the point where I could call the following function which writes a DataFrame to disk:
[source,scala]
----
private def createFile(df: DataFrame, file: String, header: String): Unit = {
FileUtil.fullyDelete(new File(file))
val tmpFile = "tmp/" + System.currentTimeMillis() + "-" + file
df.distinct.save(tmpFile, "com.databricks.spark.csv")
}
----
The first file only needs to contain the primary type of crime, which we can extract with the following query:
[source,scala]
----
val rows = sqlContext.sql("select `Primary Type` as primaryType FROM crimes LIMIT 10")
rows.collect()
res4: Array[org.apache.spark.sql.Row] = Array([ASSAULT], [ROBBERY], [CRIMINAL DAMAGE], [THEFT], [THEFT], [BURGLARY], [THEFT], [BURGLARY], [THEFT], [CRIMINAL DAMAGE])
----
Some of the primary types have trailing spaces which I want to get rid of. As far as I can tell Spark's variant of SQL doesn't have the LTRIM or RTRIM functions but we can map over 'rows' and use the String 'trim' function instead:
[source,scala]
----
rows.map { case Row(primaryType: String) => Row(primaryType.trim) }
res8: org.apache.spark.rdd.RDD[org.apache.spark.sql.Row] = MapPartitionsRDD[29] at map at DataFrame.scala:776
----
Now we've got an RDD of Rows which we need to convert back to a DataFrame again. 'sqlContext' has a function which we might be able to use:
[source,scala]
----
sqlContext.createDataFrame(rows.map { case Row(primaryType: String) => Row(primaryType.trim) })
<console>:27: error: overloaded method value createDataFrame with alternatives:
[A <: Product](data: Seq[A])(implicit evidence$4: reflect.runtime.universe.TypeTag[A])org.apache.spark.sql.DataFrame <and>
[A <: Product](rdd: org.apache.spark.rdd.RDD[A])(implicit evidence$3: reflect.runtime.universe.TypeTag[A])org.apache.spark.sql.DataFrame
cannot be applied to (org.apache.spark.rdd.RDD[org.apache.spark.sql.Row])
sqlContext.createDataFrame(rows.map { case Row(primaryType: String) => Row(primaryType.trim) })
^
----
These are the signatures we can choose from:
image::{{<siteurl>}}/uploads/2015/08/2015-08-06_21-58-12.png[2015 08 06 21 58 12,250]
If we want to pass in an RDD of type Row we're going to have to define a StructType or we can convert each row into something more strongly typed:
[source,scala]
----
case class CrimeType(primaryType: String)
sqlContext.createDataFrame(rows.map { case Row(primaryType: String) => CrimeType(primaryType.trim) })
res14: org.apache.spark.sql.DataFrame = [primaryType: string]
----
Great, we've got our DataFrame which we can now plug into the 'createFile' function like so:
[source,scala]
----
createFile(
sqlContext.createDataFrame(rows.map { case Row(primaryType: String) => CrimeType(primaryType.trim) }),
"/tmp/crimeTypes.csv",
"crimeType:ID(CrimeType)")
----
We can actually http://alvincjin.blogspot.co.uk/2015/03/dataframe-in-spark13.html[do better though]!
Since we've got an RDD of a specific class we can make use of the 'rddToDataFrameHolder' implicit function and then the 'toDF' function on 'DataFrameHolder'. This is what the code looks like:
[source,scala]
----
import sqlContext.implicits._
createFile(
rows.map { case Row(primaryType: String) => CrimeType(primaryType.trim) }.toDF(),
"/tmp/crimeTypes.csv",
"crimeType:ID(CrimeType)")
----
And we're done! | null | null | [
0.013050271198153496,
-0.024096330627799034,
-0.010654238983988762,
0.054808154702186584,
0.10500693321228027,
-0.004439604934304953,
-0.004530381876975298,
0.018225394189357758,
0.015463460236787796,
-0.02501288801431656,
-0.017655717208981514,
-0.026889914646744728,
-0.057926103472709656,
0.022125225514173508,
-0.038504939526319504,
0.06276384741067886,
0.05934145674109459,
0.00010067624680232257,
0.04926620423793793,
-0.0031122968066483736,
0.023492902517318726,
0.05859503895044327,
0.007147679105401039,
0.055999841541051865,
0.004429490305483341,
0.00030482056899927557,
-0.00033597147557884455,
0.01996939443051815,
-0.05002050846815109,
-0.009986408054828644,
0.02231638692319393,
0.010548528283834457,
0.025541093200445175,
-0.006945380475372076,
0.01562473364174366,
-0.0005445720162242651,
-0.01201258972287178,
0.015864942222833633,
-0.010653579607605934,
0.019182413816452026,
-0.07047998905181885,
0.032286737114191055,
-0.009349200874567032,
0.015121029689908028,
-0.028871657326817513,
0.010385113768279552,
-0.0312933549284935,
0.005643629934638739,
-0.003819448174908757,
-0.02232508361339569,
-0.025743268430233,
0.03364327549934387,
-0.013089447282254696,
-0.012874622829258442,
0.0027985218912363052,
0.048808395862579346,
-0.004307144321501255,
-0.07429584115743637,
0.05319438502192497,
-0.024700608104467392,
-0.005730773787945509,
-0.030219662934541702,
-0.018544496968388557,
0.02823292650282383,
0.02663695439696312,
-0.041013527661561966,
0.002719121053814888,
0.0714501142501831,
-0.051473863422870636,
-0.0081707164645195,
-0.011078603565692902,
0.007049137260764837,
-0.029532823711633682,
-0.01281929574906826,
-0.014585289172828197,
-0.03088567592203617,
0.0063528018072247505,
0.041150324046611786,
-0.007972341030836105,
0.04521751031279564,
-0.029178651049733162,
-0.029120227321982384,
0.009069054387509823,
0.017697157338261604,
0.008143741637468338,
-0.028930436819791794,
-0.07413145899772644,
-0.034588225185871124,
-0.044925861060619354,
0.041026923805475235,
-0.022886013612151146,
-0.023319754749536514,
0.018759537488222122,
0.01644471101462841,
-0.021846061572432518,
0.013521437533199787,
0.010759193450212479,
0.01072776596993208,
0.008187462575733662,
-0.00982663780450821,
-0.06564535200595856,
-0.03262383118271828,
0.01846570521593094,
0.019880082458257675,
-0.0676887184381485,
-0.015593023970723152,
-0.02597690559923649,
0.0008883528062142432,
0.020118556916713715,
0.02586839348077774,
0.021062038838863373,
-0.026037288829684258,
-0.04357660189270973,
-0.015322653576731682,
-0.08839006721973419,
0.06310340762138367,
0.0414532795548439,
-0.008089008741080761,
-0.009699133224785328,
0.021790320053696632,
0.04820186644792557,
0.01719299703836441,
-0.0011842484818771482,
0.06696269661188126,
0.01796867698431015,
0.03266027197241783,
0.021152837201952934,
0.06296072900295258,
0.018221257254481316,
-0.0878119096159935,
-0.01952456124126911,
0.03656039386987686,
-0.01289597898721695,
-0.0037204339168965816,
0.007861188612878323,
-0.030197303742170334,
-0.018464546650648117,
-0.004423577804118395,
0.04350331053137779,
0.020828861743211746,
0.02071898989379406,
-0.02213023416697979,
0.020492304116487503,
0.004466606769710779,
0.02761743776500225,
0.010244169272482395,
-0.014036191627383232,
-0.02872474119067192,
-0.012494739145040512,
0.04762379825115204,
0.012622934766113758,
0.04276353865861893,
0.07639437913894653,
-0.051148589700460434,
0.007831224240362644,
0.10339219123125076,
0.03187171742320061,
0.00896385870873928,
-0.045003704726696014,
0.025257032364606857,
0.06377623975276947,
0.03019850142300129,
0.02362058497965336,
-0.005081521347165108,
-0.009104407392442226,
-0.030586427077651024,
0.03150029107928276,
0.003148878226056695,
-0.017008764669299126,
0.0034711002372205257,
-0.045384518802165985,
-0.04000796750187874,
0.05934089049696922,
-0.019799593836069107,
0.017376858741044998,
0.028822114691138268,
0.08177676051855087,
0.038801293820142746,
0.06248623877763748,
-0.015354001894593239,
-0.08338438719511032,
0.03300882503390312,
-0.024992477148771286,
0.03300287947058678,
0.04146223142743111,
0.007508478593081236,
0.059355784207582474,
0.02713705599308014,
0.013527149334549904,
0.04744594916701317,
-0.05150002986192703,
-0.08694275468587875,
-0.012616162188351154,
-0.02754398062825203,
0.038286905735731125,
-0.05609909072518349,
0.013463149778544903,
0.052627433091402054,
-0.00021657501929439604,
0.030521687120199203,
-0.009549625217914581,
0.00020850742293987423,
0.018608955666422844,
-0.048721976578235626,
-0.025772443041205406,
0.03461885079741478,
0.013427995145320892,
-0.012219489552080631,
-0.01294787973165512,
0.02114381641149521,
-0.03102562576532364,
-0.006589323747903109,
0.046394120901823044,
-0.032288212329149246,
0.06861163675785065,
0.04951149970293045,
0.033979907631874084,
0.007552348077297211,
0.0603458434343338,
-0.05109146982431412,
0.0600137896835804,
0.002298529027029872,
-0.061287324875593185,
-0.015951696783304214,
0.02117295004427433,
0.13182972371578217,
0.05628513917326927,
-0.03268951177597046,
-0.07413056492805481,
0.01816415973007679,
0.0036350672598928213,
-0.03194030001759529,
-0.015712542459368706,
-0.0032478952780365944,
-0.003134473692625761,
0.03315737098455429,
-0.01907631941139698,
-0.013744807802140713,
0.026176562532782555,
-0.013457629829645157,
-0.002025304827839136,
0.06226217374205589,
0.0014884453266859055,
0.04349697008728981,
0.002466210862621665,
-0.025275683030486107,
-0.0014420071383938193,
-0.020167898386716843,
-0.032177213579416275,
-0.03185169771313667,
0.02379554510116577,
-0.01857573352754116,
0.03963048383593559,
-0.03872920945286751,
-0.005216279532760382,
-0.044100549072027206,
-0.06191515177488327,
0.021478302776813507,
0.06025258079171181,
0.03382712975144386,
-0.037396036088466644,
0.022523105144500732,
-0.03365122526884079,
-0.0008987412438727915,
-0.03871160000562668,
0.003973833750933409,
-0.019059771671891212,
-0.013891220092773438,
0.008411952294409275,
0.030795039609074593,
-0.00031505554215982556,
0.025282835587859154,
0.029562417417764664,
0.03137283772230148,
-0.0065123457461595535,
0.013615211471915245,
0.025788497179746628,
-0.027471262961626053,
-0.0038306647911667824,
-0.03973434492945671,
-0.00813329592347145,
0.0451873280107975,
-0.033842507749795914,
-0.010183525271713734,
0.011753723956644535,
-0.0497000515460968,
0.043818674981594086,
-0.03957917541265488,
-0.06434135138988495,
0.004930261988192797,
0.018540434539318085,
0.0026717393193393946,
0.02793491818010807,
-0.01809471845626831,
0.05524494871497154,
0.0422348752617836,
-0.024513162672519684,
0.017478080466389656,
0.01192641444504261,
0.017052769660949707,
0.0033320109359920025,
0.018516985699534416,
0.06331559270620346,
0.006485688034445047,
-0.012739012017846107,
-0.03739384561777115,
-0.022792087867856026,
-0.008821588009595871,
-0.2702679932117462,
0.05386786907911301,
-0.061734553426504135,
-0.03803227096796036,
0.026117784902453423,
-0.045049604028463364,
-0.02301279455423355,
-0.03002992272377014,
-0.007110234349966049,
0.007728840224444866,
-0.03043500706553459,
-0.03256210312247276,
-0.02615753747522831,
0.042399801313877106,
-0.0018656483152881265,
0.02870858646929264,
-0.011161300353705883,
-0.027416978031396866,
-0.004907635040581226,
0.03706863150000572,
0.02632790058851242,
-0.05258544906973839,
-0.004060563165694475,
0.05217127874493599,
0.03777994588017464,
0.04970713332295418,
-0.05657770112156868,
0.04355641081929207,
-0.0549527183175087,
-0.025202684104442596,
0.018671009689569473,
-0.057246726006269455,
-0.0051348027773201466,
-0.03866317868232727,
-0.027416212484240532,
-0.013093484565615654,
-0.0028967484831809998,
0.03344368934631348,
0.006580492481589317,
0.011212704703211784,
-0.01805504783987999,
-0.052086710929870605,
-0.01942206732928753,
0.012125051580369473,
0.06815724074840546,
-0.01230328157544136,
-0.07275597006082535,
0.003528604516759515,
-0.02589687891304493,
0.05883689597249031,
-0.017432458698749542,
-0.03463998809456825,
-0.04145142808556557,
0.037615370005369186,
-0.013676193542778492,
0.00494522787630558,
-0.013551678508520126,
-0.009666023775935173,
-0.020999440923333168,
-0.01652429811656475,
-0.012922104448080063,
-0.057037487626075745,
0.018852761015295982,
-0.04341631755232811,
-0.020215975120663643,
-0.05321747809648514,
-0.06397128850221634,
-0.0018459473503753543,
0.07405140995979309,
0.08001511543989182,
-0.02114773727953434,
0.01887372136116028,
0.015986626967787743,
-0.11296556144952774,
-0.010480198077857494,
-0.02928931824862957,
-0.009207223542034626,
-0.005496643949300051,
-0.03364379703998566,
0.06637616455554962,
-0.034875426441431046,
-0.03469543531537056,
0.05997152253985405,
-0.02437601238489151,
0.012559737078845501,
-0.025366099551320076,
0.007946421392261982,
-0.013081509619951248,
-0.012741396203637123,
-0.03271020948886871,
0.0651276558637619,
-0.03339916095137596,
0.01834479346871376,
0.005555994343012571,
-0.0352281890809536,
0.05508330464363098,
-0.009090983308851719,
-0.004202549811452627,
-0.00468339491635561,
0.005144789349287748,
0.021553747355937958,
-0.056276921182870865,
-0.022024013102054596,
-0.04776196926832199,
-0.009424637071788311,
-0.022932637482881546,
-0.05764763802289963,
0.02609170228242874,
0.02306476980447769,
0.016677692532539368,
0.011116073466837406,
-0.033150553703308105,
0.03930661082267761,
-0.07400441914796829,
-0.011975397355854511,
-0.02392764575779438,
0.008913673460483551,
-0.00319130951538682,
0.03541165962815285,
-0.02731604315340519,
-0.06730712950229645,
0.013623479753732681,
0.019305670633912086,
-0.011886163614690304,
-0.06493095308542252,
-0.028103385120630264,
0.016582155600190163,
-0.020274370908737183,
-0.0029318530578166246,
0.0010319942375645041,
-0.01984478533267975,
-0.0018189686816185713,
0.01885237917304039,
-0.004507741890847683,
0.029716772958636284,
-0.030974363908171654,
-0.06981322914361954,
-0.044714681804180145,
-0.013704161159694195,
0.023732883855700493,
0.01281327847391367,
-0.007368195336312056,
-0.003819192759692669,
0.015108014456927776,
0.047358766198158264,
0.025089725852012634,
-0.01269754208624363,
0.026026232168078423,
0.0025507034733891487,
0.010297928936779499,
0.02392248436808586,
-0.018404752016067505,
0.011044285260140896,
-0.05127139016985893,
-0.055730726569890976,
-0.021922070533037186,
0.037214964628219604,
-0.002591473748907447,
-0.006824566051363945,
-0.02292845956981182,
0.0357186459004879,
-0.01236386876553297,
-0.006026656366884708,
-0.022907059639692307,
0.010599460452795029,
0.05488985776901245,
-0.029269201681017876,
0.01031117606908083,
0.02038990519940853,
0.020687075331807137,
-0.021433454006910324,
-0.01891980692744255,
-0.0166128221899271,
0.0158914215862751,
0.01451880857348442,
-0.011724980548024178,
0.033415138721466064,
0.025943094864487648,
0.012743320316076279,
0.019199397414922714,
-0.00896066427230835,
-0.01992674358189106,
-0.01287006214261055,
0.0058148931711912155,
0.060618817806243896,
0.058545369654893875,
0.005031298846006393,
-0.029728669673204422,
-0.02797962911427021,
-0.03218365088105202,
-0.05329304188489914,
-0.016024859622120857,
-0.007594921626150608,
0.04091288894414902,
-0.0019954009912908077,
-0.0799449160695076,
0.03684529289603233,
0.007506862282752991,
-0.01630159467458725,
-0.000030475181119982153,
-0.01187505666166544,
-0.025675153359770775,
-0.0069588590413331985,
0.028888672590255737,
0.05585809051990509,
-0.04472825676202774,
0.030979298055171967,
-0.016679534688591957,
0.0018816234078258276,
0.03230078145861626,
0.021794518455863,
-0.04398152977228165,
0.004291786812245846,
-0.03180146589875221,
0.0202048197388649,
-0.03559930995106697,
0.011223549954593182,
-0.04095669835805893,
0.00022287787578534335,
0.00020087398297619075,
0.000027559808586374857,
-0.011616010218858719,
0.019655531272292137,
-0.012557094916701317,
-0.009692777879536152,
0.031326476484537125,
-0.02832416072487831,
-0.011835228651762009,
0.037408579140901566,
-0.016254838556051254,
0.007447697687894106,
-0.01983107626438141,
0.020367072895169258,
0.021529190242290497,
-0.033345066010951996,
-0.014507431536912918,
-0.01692739874124527,
0.01451890543103218,
-0.0048297918401658535,
0.07331562787294388,
0.016870785504579544,
-0.00958073977380991,
-0.008041038177907467,
0.006232473533600569,
-0.00019074285228271037,
0.010180860757827759,
-0.018642188981175423,
0.000732577929738909,
0.02911163680255413,
0.060670748353004456,
-0.007187153212726116,
0.02850566990673542,
0.002127160783857107,
-0.05534546822309494,
0.07275526225566864,
-0.061513982713222504,
-0.017543813213706017,
-0.02343694120645523,
-0.03266557678580284,
0.03915685415267944,
0.01863071694970131,
-0.0005884787533432245,
-0.02340180240571499,
0.057634387165308,
0.03236692398786545,
0.023389071226119995,
0.040746867656707764,
0.010730140842497349,
0.04049960523843765,
-0.03884011134505272,
-0.027547067031264305,
-0.09484006464481354,
-0.014444494619965553,
0.04812261462211609,
0.0005072201602160931,
0.0025741797871887684,
-0.02963690459728241,
-0.05060499161481857,
0.0030056864488869905,
-0.07292119413614273,
-0.041903264820575714,
0.03976837545633316,
-0.0201546773314476,
0.019212685525417328,
-0.0003612884902395308,
-0.023524612188339233,
0.02475038170814514,
0.032261986285448074,
-0.04034869745373726,
-0.02131318859755993,
-0.038139186799526215,
0.04722451791167259,
0.023507999256253242,
-0.030025551095604897,
-0.005619477480649948,
-0.006009628064930439,
0.05499589815735817,
0.010931174270808697,
0.015020900405943394,
0.04898880049586296,
-0.015627961605787277,
0.04696737974882126,
0.0047279237769544125,
-0.03389986231923103,
0.02324880287051201,
0.010738445445895195,
-0.004214115906506777,
-0.04217180237174034,
0.011058366857469082,
0.03121434710919857,
0.029126189649105072,
-0.04603027179837227,
0.07492797076702118,
0.02269887737929821,
-0.040878698229789734,
-0.0521649494767189,
-0.004828125238418579,
-0.0422586053609848,
-0.036874111741781235,
-0.01867353543639183,
-0.005131184589117765,
-0.048002831637859344,
0.05461965873837471,
-0.03457144275307655,
-0.0005738101317547262,
0.08532243221998215,
-0.007784598972648382,
-0.014100422151386738,
-0.00880854856222868,
0.07768479734659195,
0.07833129912614822,
0.021844154223799706,
0.0015704319812357426,
0.04294291138648987,
-0.012633317150175571,
-0.04258447512984276,
0.02951771952211857,
-0.033967021852731705,
0.00830560177564621,
-0.03296521306037903,
0.03493561968207359,
0.07209900766611099,
-0.02570943906903267,
0.08789892494678497,
-0.013783360831439495,
-0.0017180442810058594,
-0.009822757914662361,
0.014778015203773975,
0.025807956233620644,
0.034466102719306946,
0.009392151609063148,
0.03909510001540184,
-0.013253924436867237,
-0.024338191375136375,
0.011575554497539997,
0.006576947867870331,
-0.022389955818653107,
0.03412756323814392,
-0.012754645198583603,
0.01731702871620655,
0.04834173992276192,
0.030799442902207375,
0.10749785602092743,
-0.019778026267886162,
-0.013375213369727135,
-0.0067959679290652275,
0.02261071465909481,
-0.0180372204631567,
-0.005879385396838188,
-0.03241520747542381,
-0.023794546723365784,
-0.01311239879578352,
-0.06933562457561493,
-0.02303497865796089,
0.002797128167003393,
-0.05421309173107147,
-0.00572079187259078,
-0.010246972553431988,
0.02930259145796299,
0.039700642228126526,
0.0012150155380368233,
-0.03474097698926926,
-0.07430031895637512,
-0.06530816853046417,
-0.02240424044430256,
-0.09526509791612625,
-0.00604085810482502,
0.005395864602178335,
-0.009609031490981579,
-0.044499848037958145,
-0.04233028367161751,
-0.028572263196110725,
0.01326125580817461,
0.0342383049428463,
-0.01735970750451088,
-0.05106266587972641,
0.009365486912429333,
0.02298707142472267,
0.024412991479039192,
0.042591895908117294,
0.05476396903395653,
-0.006566832773387432,
-0.0023708236403763294,
-0.01478674914687872,
-0.01569109596312046,
0.05525793880224228,
-0.0010364570189267397,
0.018121346831321716,
-0.07145938277244568,
0.02725934609770775,
0.012872401624917984,
-0.008994187228381634,
-0.08257122337818146,
0.028673691675066948,
0.055626872926950455,
0.0131123261526227,
0.06343769282102585,
-0.021396055817604065,
-0.0010224402649328113,
-0.045578308403491974,
-0.032595034688711166,
-0.02127896249294281,
0.03411375358700752,
0.047420602291822433,
-0.037763819098472595,
0.061212509870529175,
0.056240979582071304,
-0.010550299659371376,
-0.031866442412137985,
-0.017165739089250565,
0.0004859186301473528,
0.029134634882211685,
-0.057481009513139725,
-0.017317917197942734,
-0.054794855415821075,
-0.053125567734241486,
-0.008138822391629219,
-0.009231097996234894,
-0.03744853660464287,
-0.021244242787361145,
0.01844724267721176,
0.014020503498613834,
-0.033956483006477356,
0.012811806984245777,
-0.055531762540340424,
0.028052305802702904,
-0.04084768891334534,
-0.03593350946903229,
-0.02653511054813862,
0.04807070642709732,
0.02619929052889347,
0.0006672381423413754,
0.010018745437264442,
-0.023968689143657684,
0.01894203945994377,
0.0026618135161697865,
0.030462566763162613,
0.03747493401169777,
-0.03102802112698555,
-0.005339162889868021
] | [
-0.0731598436832428,
-0.047892820090055466,
-0.01558134239166975,
-0.025509491562843323,
0.09429872035980225,
-0.03226010501384735,
-0.028075693175196648,
-0.012846437282860279,
0.004180881194770336,
0.03615666180849075,
0.011485973373055458,
-0.05952192097902298,
-0.004398406948894262,
-0.04317726194858551,
0.021183323115110397,
-0.027827322483062744,
0.012750145979225636,
-0.0599113292992115,
-0.07364480942487717,
0.06002015247941017,
-0.03692614287137985,
-0.08777403086423874,
-0.048809714615345,
-0.078816719353199,
0.018676191568374634,
0.006840999238193035,
0.0353902131319046,
-0.05092081055045128,
-0.05612383410334587,
-0.1992398500442505,
0.011443479917943478,
-0.02743854559957981,
0.018178552389144897,
-0.02571459673345089,
-0.006027926225215197,
-0.01181570440530777,
0.03653720021247864,
0.012030559591948986,
-0.048263758420944214,
0.03339073807001114,
0.0426718033850193,
0.0011269762180745602,
-0.07865012437105179,
-0.01932753250002861,
-0.008570914156734943,
0.009642780758440495,
-0.005334795918315649,
-0.0069936467334628105,
0.022858228534460068,
0.012050592340528965,
-0.09132640063762665,
0.009145785123109818,
-0.03248181939125061,
-0.010420609265565872,
-0.015419162809848785,
-0.012360709719359875,
0.07706174999475479,
0.06165001913905144,
0.014229243621230125,
0.014983486384153366,
0.003392864018678665,
0.003977314569056034,
-0.12612713873386383,
0.06746361404657364,
-0.009363534860312939,
0.06883974373340607,
-0.05498107522726059,
-0.04610777273774147,
0.001213704701513052,
0.03685610368847847,
-0.05478058010339737,
-0.013676971197128296,
-0.0595642514526844,
0.11001629382371902,
0.001602945732884109,
-0.04645970091223717,
-0.04936588183045387,
0.014033138751983643,
0.008447988890111446,
-0.015651360154151917,
-0.1075606569647789,
-0.011721639893949032,
0.010478026233613491,
0.03431656211614609,
-0.04115188494324684,
0.03760411962866783,
-0.016126055270433426,
0.040823910385370255,
0.049199435859918594,
0.012101664207875729,
0.061654333025217056,
-0.01004729699343443,
0.06772308796644211,
0.033408425748348236,
-0.07855424284934998,
-0.04339958727359772,
-0.003791734343394637,
0.007782655768096447,
0.034721989184617996,
0.367765873670578,
-0.042279161512851715,
-0.03889527916908264,
0.01200143527239561,
0.05707252770662308,
0.00443813344463706,
-0.004787763115018606,
0.026725757867097855,
-0.0474717915058136,
0.012543659657239914,
-0.05015828087925911,
0.014979801140725613,
-0.03346867114305496,
0.05898163467645645,
-0.06904669851064682,
0.031144052743911743,
0.04769385606050491,
0.0013667687308043242,
-0.015705393627285957,
-0.031638484448194504,
0.07012619823217392,
-0.009354243054986,
-0.018748922273516655,
0.010437273420393467,
-0.0007079659844748676,
0.04797884076833725,
0.03654959797859192,
0.035866960883140564,
0.048589713871479034,
0.07911594957113266,
0.01837140880525112,
0.01735391467809677,
-0.024814508855342865,
-0.09642542153596878,
0.007584923412650824,
0.016451213508844376,
0.018202299252152443,
0.0063096401281654835,
-0.046629372984170914,
0.01873379573225975,
-0.03192875534296036,
0.008292575366795063,
-0.042112451046705246,
0.01685507223010063,
0.00573961203917861,
0.009957396425306797,
0.10263866931200027,
-0.04512488842010498,
-0.044434163719415665,
-0.004896530415862799,
-0.0346534438431263,
0.004288962576538324,
0.03143355995416641,
0.026184063404798508,
-0.05679255723953247,
0.020594144240021706,
0.02036178484559059,
0.052660662680864334,
-0.03294121101498604,
-0.08083935081958771,
-0.003733788151293993,
-0.03514907881617546,
-0.010975721292197704,
-0.02132134512066841,
0.03632919117808342,
0.031617533415555954,
-0.07946509122848511,
-0.004344631917774677,
0.02462107688188553,
-0.0066477274522185326,
-0.029556436464190483,
0.007969160564243793,
-0.011770212091505527,
-0.03526138514280319,
-0.019749069586396217,
0.05435241386294365,
-0.029010331258177757,
-0.034508731216192245,
-0.02964925952255726,
0.03171971067786217,
0.04095081612467766,
0.027323734015226364,
0.05014901980757713,
-0.014613387174904346,
0.05135369673371315,
-0.04022497683763504,
-0.09932264685630798,
-0.03960441052913666,
-0.0035423103254288435,
0.015221653506159782,
-0.01250408124178648,
-0.02513873018324375,
0.005429102573543787,
-0.006292607635259628,
0.03922400623559952,
-0.027554206550121307,
-0.00007912754517747089,
0.05619654059410095,
0.008162966929376125,
-0.000993233290500939,
-0.004393490497022867,
0.013189216144382954,
0.06902121752500534,
-0.017596714198589325,
0.029495272785425186,
-0.02942531555891037,
-0.0010950099676847458,
0.008326668292284012,
-0.07495053857564926,
0.01920956000685692,
-0.0033748841378837824,
-0.003229139605537057,
-0.005046991165727377,
-0.043360792100429535,
0.035873379558324814,
-0.03572306036949158,
-0.04914674535393715,
-0.003773887176066637,
-0.03587210550904274,
0.039542119950056076,
0.03979332000017166,
-0.0214995164424181,
-0.03580419346690178,
-0.008226236328482628,
-0.3536442518234253,
-0.0065629626624286175,
-0.018821824342012405,
-0.039682041853666306,
-0.004260247573256493,
-0.06621169298887253,
-0.020541252568364143,
-0.004217863082885742,
-0.033848896622657776,
0.008867161348462105,
0.08684331923723221,
-0.01641000807285309,
0.00016598118236288428,
-0.10530000925064087,
0.025162436068058014,
0.03196082264184952,
-0.020243847742676735,
-0.02467915788292885,
-0.03497127443552017,
0.03035002388060093,
0.04432388022542,
-0.03661271557211876,
0.002108300104737282,
-0.04291234537959099,
0.07199475914239883,
-0.039058439433574677,
0.12466685473918915,
0.005592274945229292,
0.06703061610460281,
-0.07825829088687897,
0.04185601696372032,
0.003105904208496213,
-0.0045537566766142845,
-0.07722704112529755,
0.002111853566020727,
-0.0615750290453434,
-0.025258950889110565,
0.05717293545603752,
0.0006980132311582565,
0.018747908994555473,
-0.03590148687362671,
0.03588799014687538,
-0.048068661242723465,
-0.031913191080093384,
0.0016729730414226651,
-0.02201273664832115,
-0.0025376109406352043,
-0.0049385870806872845,
0.021336741745471954,
0.11142413318157196,
0.005854275077581406,
0.04557951167225838,
0.06707468628883362,
0.04585682228207588,
0.07527939230203629,
-0.039060965180397034,
-0.05159128084778786,
0.05626847967505455,
0.02007017470896244,
-0.015670763328671455,
0.02216990292072296,
0.05689738318324089,
0.05666201561689377,
-0.04592607542872429,
0.015488192439079285,
-0.012812708504498005,
0.019681287929415703,
0.026615332812070847,
0.027670281007885933,
-0.020377565175294876,
-0.0615735799074173,
0.0738135501742363,
-0.046547576785087585,
0.019592704251408577,
0.044788166880607605,
0.08710300177335739,
-0.034246500581502914,
0.003989554475992918,
0.0009583987994119525,
-0.039172783493995667,
0.04072275385260582,
-0.02110905945301056,
0.039128754287958145,
0.022586295381188393,
0.04363977909088135,
0.08245961368083954,
0.0100500313565135,
0.018126733601093292,
0.0339207798242569,
0.005650574341416359,
-0.0160857904702425,
-0.03507350757718086,
-0.01603090763092041,
-0.016491806134581566,
0.035273194313049316,
0.018006129190325737,
-0.2399304360151291,
0.026443984359502792,
0.02922428585588932,
0.03703169524669647,
-0.0005506968591362238,
-0.007092006504535675,
0.020569926127791405,
-0.06402882933616638,
0.020912909880280495,
0.014199621044099331,
-0.018167095258831978,
0.03019985742866993,
0.01934155821800232,
0.0098361661657691,
0.00473436713218689,
-0.044560033828020096,
0.06672702729701996,
0.01475320104509592,
0.03452082350850105,
0.022701073437929153,
0.018323374912142754,
-0.013999203220009804,
0.1362026184797287,
0.03795332461595535,
0.007609115913510323,
0.021126393228769302,
0.011951569467782974,
-0.022321930155158043,
0.05491798371076584,
0.055933982133865356,
0.008739015087485313,
-0.0013066403334960341,
0.04324819892644882,
0.035524751991033554,
0.02932463213801384,
-0.038256049156188965,
0.003318845760077238,
0.06980060786008835,
0.029872465878725052,
-0.06082351878285408,
-0.025595197454094887,
0.03760144114494324,
-0.029278898611664772,
0.018018532544374466,
0.04351649433374405,
-0.010943850502371788,
-0.019063059240579605,
-0.07383336126804352,
-0.03772512450814247,
-0.005927750375121832,
-0.0010911579011008143,
0.022700199857354164,
-0.014578022994101048,
-0.013729557394981384,
0.039090845733881,
0.04374100640416145,
0.022399859502911568,
0.0014909531455487013,
0.036462631076574326,
0.0310825165361166,
0.04018252342939377,
-0.04668515920639038,
0.10010781139135361,
0.027232656255364418,
-0.0015819512773305178
] | [
0.0006918100407347083,
-0.013688263483345509,
-0.03792443871498108,
0.03438219800591469,
0.019574301317334175,
-0.0029117290396243334,
0.03073604591190815,
0.052695341408252716,
-0.01600528135895729,
-0.0024150824174284935,
-0.018927322700619698,
0.005661159288138151,
0.014763714745640755,
-0.05019845813512802,
-0.02471630647778511,
-0.0692678913474083,
-0.036288630217313766,
0.018557554110884666,
0.012635381892323494,
0.012271254323422909,
-0.026211515069007874,
0.01640206016600132,
0.043357014656066895,
-0.022208144888281822,
-0.032848015427589417,
0.053287945687770844,
-0.007880846969783306,
0.020286086946725845,
0.00485039921477437,
-0.10553646832704544,
-0.04099787399172783,
-0.016620416194200516,
0.009449660778045654,
0.012084929272532463,
-0.0291634202003479,
-0.05610451474785805,
0.004276780877262354,
0.04583653435111046,
-0.041889023035764694,
-0.01713217794895172,
-0.0024334494955837727,
-0.035596128553152084,
-0.02024725079536438,
0.005860267672687769,
-0.01910785585641861,
-0.0506318174302578,
-0.0009334099595434964,
-0.026385273784399033,
-0.007328209467232227,
0.001449616625905037,
-0.058028142899274826,
0.03193124756217003,
0.001688167336396873,
0.017225606366991997,
0.020616978406906128,
-0.019023574888706207,
0.028477350249886513,
0.03244165703654289,
-0.0027758118230849504,
-0.021447179839015007,
-0.0025035319849848747,
-0.03429244086146355,
-0.005439699161797762,
-0.0250447578728199,
0.0031726749148219824,
0.003251229180023074,
-0.016892053186893463,
-0.009005806408822536,
0.012957166880369186,
-0.008405250497162342,
0.005103099159896374,
0.02806398831307888,
-0.0729074701666832,
-0.03129495307803154,
-0.04561971500515938,
0.046512238681316376,
0.03023088537156582,
-0.006202619522809982,
0.005303503479808569,
0.020760677754878998,
-0.05658353120088577,
-0.002159919822588563,
-0.02031274139881134,
0.03283477574586868,
-0.03873391076922417,
-0.043660927563905716,
-0.022728141397237778,
-0.00960718933492899,
0.02323879301548004,
-0.007082623429596424,
-0.0017917302902787924,
0.04776617884635925,
0.04640941321849823,
-0.0039741843938827515,
-0.10018237680196762,
0.028823960572481155,
0.007008734624832869,
0.03137192875146866,
0.003178285900503397,
0.7902979850769043,
-0.022956974804401398,
0.0021510012447834015,
-0.035524118691682816,
0.019943121820688248,
-0.013106916099786758,
0.008475227281451225,
0.0019401696044951677,
-0.029853928834199905,
-0.017093826085329056,
-0.05502905324101448,
0.07461901009082794,
0.010514099150896072,
0.026989702135324478,
0.007367725018411875,
0.05976809188723564,
0.012115431018173695,
-0.022613972425460815,
0.031696248799562454,
0.027799462899565697,
0.031357839703559875,
0.035282574594020844,
-0.010470574721693993,
-0.03294451907277107,
-0.050440236926078796,
0.02100392058491707,
-0.14361944794654846,
0.0002885039721149951,
-7.311315518673478e-33,
0.027930516749620438,
0.0014774836599826813,
0.02383526973426342,
0.003538877470418811,
0.03370969742536545,
0.001493912423029542,
-0.013354402966797352,
0.04700912535190582,
0.01475305575877428,
-0.0162060409784317,
-0.003929399885237217,
0.004123049322515726,
-0.018604418262839317,
-0.04067012295126915,
0.02233155444264412,
0.022741474211215973,
0.005349570885300636,
-0.003685380332171917,
-0.04246177151799202,
-0.0003520703758113086,
0.054926417768001556,
0.06580305844545364,
0.0470011830329895,
0.04461389780044556,
0.010495507158339024,
-0.005768649745732546,
-0.004643309861421585,
0.0025828590150922537,
-0.008068366907536983,
-0.018804259598255157,
-0.04354984313249588,
0.036541540175676346,
0.009571203961968422,
-0.013007274828851223,
0.04283333942294121,
-0.03859869763255119,
-0.03195711225271225,
0.017986590042710304,
-0.023624362424016,
-0.012971634976565838,
-0.043410927057266235,
-0.013297110795974731,
-0.036727361381053925,
-0.010810606181621552,
-0.02911360375583172,
-0.0061940704472362995,
0.0012515060370787978,
0.051907654851675034,
-0.011747222393751144,
0.03808366134762764,
0.044342122972011566,
-0.006133517250418663,
0.03693515807390213,
0.03992428630590439,
-0.017451409250497818,
0.08313524723052979,
-0.030540093779563904,
-0.027974190190434456,
0.020664187148213387,
0.039864908903837204,
0.008543952368199825,
-0.005827971734106541,
0.00975682120770216,
0.017383364960551262,
-0.009562174789607525,
-0.011287640780210495,
0.045352447777986526,
0.016122890636324883,
0.03674705699086189,
-0.02860063686966896,
-0.01310522761195898,
0.07675496488809586,
-0.008741907775402069,
-0.017056046053767204,
0.013112763874232769,
-0.034689079970121384,
0.029847487807273865,
-0.017744073644280434,
-0.0030829033348709345,
0.015184829942882061,
-0.028044871985912323,
-0.027208616957068443,
0.0015927175991237164,
-0.02701571397483349,
-0.03514910861849785,
-0.015843363478779793,
0.02681611478328705,
0.028615616261959076,
0.0024963051546365023,
-0.013152222149074078,
0.00864665862172842,
0.029953550547361374,
0.036125924438238144,
-0.025489872321486473,
-0.018727462738752365,
7.826309144660323e-33,
0.023686664178967476,
-0.03952370584011078,
-0.013406125828623772,
-0.0028643908444792032,
0.022367222234606743,
0.022695956751704216,
0.06375153362751007,
-0.0011651983950287104,
-0.030218537896871567,
0.026698490604758263,
-0.0648513212800026,
-0.02412578836083412,
0.01426243968307972,
0.028747733682394028,
0.04856084659695625,
0.01762010157108307,
0.00791702326387167,
-0.009355664253234863,
-0.032482024282217026,
-0.02354346588253975,
0.006500719115138054,
0.003542277729138732,
-0.007219729013741016,
0.024109134450554848,
0.05191125348210335,
-0.0027910128701478243,
-0.03472120687365532,
0.015444333665072918,
-0.030126504600048065,
0.010998349636793137,
-0.00605215085670352,
0.0013194087659940124,
-0.011137370951473713,
-0.018385369330644608,
-0.050830598920583725,
0.011299630627036095,
0.038792215287685394,
-0.022561613470315933,
0.03467978909611702,
0.01070705521851778,
-0.012666543014347553,
-0.013617496006190777,
-0.006798973307013512,
0.03270367905497551,
-0.002262391149997711,
0.039696406573057175,
0.02125500701367855,
0.06350328773260117,
-0.00363222137093544,
0.00481581361964345,
0.007803155109286308,
0.028326844796538353,
-0.02382516860961914,
0.08691312372684479,
0.055358219891786575,
-0.019177116453647614,
0.0001036989560816437,
0.016186069697141647,
-0.0507916659116745,
0.02136492356657982,
-0.02103521302342415,
0.008034666068851948,
-0.030587811022996902,
0.024654559791088104,
-0.014204521663486958,
-0.03766642138361931,
-0.0037216341588646173,
-0.01870845817029476,
-0.0158091988414526,
-0.05139587074518204,
-0.00680465018376708,
-0.035986121743917465,
0.009822795167565346,
0.02745978906750679,
-0.011649321764707565,
0.0016528560081496835,
-0.04255993664264679,
-0.0022748075425624847,
-0.0015640400815755129,
0.005032964050769806,
0.05498619005084038,
-0.04647703096270561,
0.0017767263343557715,
-0.005578264128416777,
0.005238133016973734,
0.02941448986530304,
-0.007790347095578909,
-0.048781827092170715,
0.025693360716104507,
0.022642085328698158,
-0.07266388833522797,
-0.05152289569377899,
-0.01829974353313446,
-0.0029393378645181656,
-0.011061318218708038,
-1.2792842341013966e-8,
0.0109579898416996,
0.019257960841059685,
-0.040089238435029984,
0.038134098052978516,
0.05917293205857277,
0.009285280480980873,
-0.02733655832707882,
0.013651138171553612,
-0.011164333671331406,
-0.00004383739360491745,
0.022698258981108665,
-0.04652903974056244,
0.027628431096673012,
0.012644927948713303,
0.0009708700235933065,
-0.03686251863837242,
0.0397738479077816,
-0.02524050883948803,
0.004165650811046362,
0.0172975342720747,
0.014167438261210918,
0.03808997571468353,
-0.06501209735870361,
0.0050472416914999485,
-0.012830153107643127,
0.002414020476862788,
0.021638382226228714,
-0.09248434752225876,
-0.00046525520156137645,
-0.014524584636092186,
-0.009739256463944912,
-0.05211229994893074,
0.015562908723950386,
-0.002456383313983679,
-0.033931903541088104,
-0.0070940363220870495,
0.0497671514749527,
0.038184601813554764,
0.01728246733546257,
0.018170543015003204,
-0.019625477492809296,
-0.028055280447006226,
-0.046181708574295044,
-0.03602004051208496,
-0.050274379551410675,
-0.004039483144879341,
-0.05819043517112732,
0.03396635502576828,
-0.001100546563975513,
0.012026333250105381,
0.022714344784617424,
-0.013192621059715748,
0.021277984604239464,
0.04269469529390335,
0.04167719557881355,
0.03628276288509369,
0.06199277192354202,
0.012573547661304474,
-0.023174453526735306,
0.003389000426977873,
0.03542404994368553,
0.019677475094795227,
0.002403120044618845,
-0.03307817503809929
] | spark-convert-rdd-to-dataframe | https://markhneedham.com/blog/2015/08/06/spark-convert-rdd-to-dataframe |
false | 2015-08-15 15:55:32 | Unix: Redirecting stderr to stdout | [
"unix"
] | [
"Shell Scripting"
] | I've been trying to optimise some Neo4j import queries over the last couple of days and as part of the script I've been executed I wanted to redirect the output of a couple of commands into a file to parse afterwards.
I started with the following script which doesn't do any explicit redirection of the output:
[source,bash]
----
#!/bin/sh
./neo4j-community-2.2.3/bin/neo4j start
----
Now let's run that script and redirect the output to a file:
[source,bash]
----
$ ./foo.sh > /tmp/output.txt
Unable to find any JVMs matching version "1.7".
$ cat /tmp/output.txt
Starting Neo4j Server...WARNING: not changing user
process [48230]... waiting for server to be ready.... OK.
http://localhost:7474/ is ready.
----
So the line about not finding a matching JVM is being printed to stderr. That's reasonably easy to fix:
[source,bash]
----
#!/bin/sh
./neo4j-community-2.2.3/bin/neo4j start 2>&1
----
Let's run the script again:
[source,bash]
----
$ ./foo.sh > /tmp/output.txt
$ cat /tmp/output.txt
Unable to find any JVMs matching version "1.7".
Starting Neo4j Server...WARNING: not changing user
process [47989]... waiting for server to be ready.... OK.
http://localhost:7474/ is ready.
----
Great, that worked as expected. Next I extended the script to stop Neo4j, delete all it's data, start it again and execute a cypher script:
[source,bash]
----
#!/bin/sh
./neo4j-community-2.2.3/bin/neo4j start 2>&1
rm -rf neo4j-community-2.2.3/data/graph.db/
./neo4j-community-2.2.3/bin/neo4j start 2>&1
time ./neo4j-community-2.2.3/bin/neo4j-shell --file foo.cql 2>&1
----
Let's run that script and redirect the output:
[source,bash]
----
$ ./foo.sh > /tmp/output.txt
Unable to find any JVMs matching version "1.7".
real 0m0.604s
user 0m0.334s
sys 0m0.054s
$ cat /tmp/output.txt
Unable to find any JVMs matching version "1.7".
Another server-process is running with [50614], cannot start a new one. Exiting.
Unable to find any JVMs matching version "1.7".
Another server-process is running with [50614], cannot start a new one. Exiting.
+---------+
| "hello" |
+---------+
| "hello" |
+---------+
1 row
4 ms
----
It looks like our stderr \-> stdout redirection on the last line didn't work. My understanding is that the 'time' command http://stackoverflow.com/questions/2408981/how-cant-i-redirect-the-output-of-time-command[swallows all the arguments that follow] whereas we want the redirection to be run afterwards.
We can work our way around this problem by putting the actual command in a code block and redirected the output of that:
[source,bash]
----
#!/bin/sh
./neo4j-community-2.2.3/bin/neo4j start 2>&1
rm -rf neo4j-community-2.2.3/data/graph.db/
./neo4j-community-2.2.3/bin/neo4j start 2>&1
{ time ./neo4j-community-2.2.3/bin/neo4j-shell --file foo.cql; } 2>&1
----
[source,bash]
----
$ ./foo.sh > /tmp/output.txt
$ cat /tmp/output.txt
Unable to find any JVMs matching version "1.7".
Another server-process is running with [50614], cannot start a new one. Exiting.
Unable to find any JVMs matching version "1.7".
Another server-process is running with [50614], cannot start a new one. Exiting.
Unable to find any JVMs matching version "1.7".
+---------+
| "hello" |
+---------+
| "hello" |
+---------+
1 row
4 ms
real 0m0.615s
user 0m0.316s
sys 0m0.050s
----
Much better! | null | null | [
-0.0035382527858018875,
-0.02509048394858837,
0.0033790383022278547,
0.026044901460409164,
0.08361736685037613,
-0.014072155579924583,
0.0384267158806324,
0.030816929414868355,
0.03699982166290283,
-0.02154483087360859,
-0.014553350396454334,
0.00918061938136816,
-0.06662975996732712,
0.007351461332291365,
-0.004599663894623518,
0.04904919117689133,
0.08444398641586304,
0.0011435173219069839,
0.03222521394491196,
-0.008392229676246643,
-0.019423309713602066,
0.04670779034495354,
-0.022127985954284668,
0.044650670140981674,
0.03609192743897438,
0.0001306758786085993,
-0.009667485021054745,
-0.028924113139510155,
-0.0830378606915474,
0.014849456027150154,
0.03322191908955574,
-0.030809419229626656,
0.031076615676283836,
-0.03271166980266571,
0.020976915955543518,
0.006830520462244749,
-0.016202077269554138,
0.017814943566918373,
-0.007806382142007351,
0.003270393004640937,
-0.05781369283795357,
0.02858803980052471,
-0.008445290848612785,
0.002482582116499543,
-0.03960435092449188,
0.01927942782640457,
-0.029109131544828415,
0.01324420515447855,
0.027711722999811172,
-0.005364821758121252,
-0.10551071912050247,
0.015292090363800526,
-0.007900670170783997,
-0.0349777527153492,
0.029277147725224495,
0.0252518430352211,
0.010623586364090443,
-0.0884677991271019,
0.02761603519320488,
-0.02430429868400097,
0.011991721577942371,
0.0009772853227332234,
-0.015663743019104004,
0.049960147589445114,
0.004281134810298681,
-0.056660246104002,
0.029828215017914772,
0.06141214072704315,
-0.048433415591716766,
-0.02223038673400879,
0.016319625079631805,
0.03939184546470642,
-0.02240365371108055,
0.0016594299813732505,
0.03155960887670517,
-0.03749474883079529,
-0.0033857175149023533,
0.04230122268199921,
0.0244477316737175,
0.06585615128278732,
-0.027240945026278496,
0.020196588709950447,
0.02173897624015808,
0.007397801615297794,
0.019999822601675987,
-0.038348644971847534,
-0.004909010138362646,
-0.014681673608720303,
-0.04726764187216759,
0.021174386143684387,
0.012245630845427513,
-0.04669366031885147,
-0.03232260048389435,
-0.006849459372460842,
-0.012115050107240677,
0.023560453206300735,
-0.003591940738260746,
0.03090335987508297,
0.031772300601005554,
-0.010154042392969131,
-0.03358609229326248,
-0.02341592311859131,
-0.016875647008419037,
0.0037325997836887836,
-0.04999782145023346,
-0.01841978169977665,
-0.023533165454864502,
-0.046572983264923096,
-0.003470892319455743,
-0.03020312637090683,
-0.01891458034515381,
-0.0006039534928277135,
-0.019623825326561928,
0.00048210841487161815,
-0.09879814833402634,
0.10535481572151184,
0.012352562509477139,
-0.011290295049548149,
0.003331859828904271,
0.02983083389699459,
0.04385850578546524,
0.06232333928346634,
0.010340447537600994,
0.08764300495386124,
-0.008300678804516792,
0.044097352772951126,
0.03204036131501198,
0.028501953929662704,
-0.01879403553903103,
-0.07698870450258255,
0.0030745810363441706,
0.08034961670637131,
0.018223240971565247,
0.039892587810754776,
-0.012509525753557682,
-0.027523448690772057,
-0.0032412586733698845,
-0.01637309230864048,
0.058382097631692886,
0.008555943146348,
0.0048845564015209675,
-0.03764692321419716,
0.017926281318068504,
-0.0017386354738846421,
0.03964921832084656,
0.028164725750684738,
-0.0237042848020792,
-0.04443075880408287,
-0.035542797297239304,
0.030203310772776604,
0.003688190598040819,
0.028945066034793854,
0.06111671030521393,
-0.01534806378185749,
-0.007073099259287119,
0.10957963764667511,
0.046677544713020325,
0.04236026480793953,
-0.060706786811351776,
0.01986602135002613,
0.03857789188623428,
0.04868878051638603,
0.016375549137592316,
0.05454547330737114,
0.003235194832086563,
-0.011068110354244709,
-0.014442234300076962,
0.013202688656747341,
-0.003823142033070326,
0.030519135296344757,
-0.00616092886775732,
-0.055929891765117645,
0.06198627129197121,
-0.026476804167032242,
0.026112789288163185,
-0.0022874437272548676,
0.054463934153318405,
-0.0021107420325279236,
0.02794329635798931,
-0.0130270104855299,
-0.07169993966817856,
0.06263305246829987,
-0.017032364383339882,
0.02427821420133114,
-0.002080103848129511,
0.012752620503306389,
0.0722905844449997,
0.027554180473089218,
0.027786174789071083,
0.029029015451669693,
-0.08005163818597794,
-0.08515164256095886,
-0.02999625727534294,
0.0005629180814139545,
0.03998347744345665,
-0.00494952080771327,
-0.026367491111159325,
0.04271021485328674,
0.0145640317350626,
0.0228818841278553,
-0.0008532071951776743,
-0.04489056393504143,
0.04270683601498604,
-0.07090037316083908,
-0.0715276300907135,
0.04124823212623596,
0.029631948098540306,
-0.04987814277410507,
-0.024996532127261162,
0.027508843690156937,
-0.03807484358549118,
0.028595108538866043,
0.027208473533391953,
-0.013484633527696133,
0.07579202950000763,
0.04295185208320618,
0.0011665956117212772,
-0.03775860741734505,
0.0071562789380550385,
-0.029214054346084595,
0.033595118671655655,
0.013715464621782303,
-0.00901443138718605,
-0.0004592217446770519,
0.015916764736175537,
0.1143026202917099,
0.048980362713336945,
-0.02239123545587063,
-0.07448457181453705,
0.05058780685067177,
0.011359866708517075,
-0.028726527467370033,
0.015832629054784775,
-0.009015939198434353,
-0.022974371910095215,
0.021655799821019173,
-0.01994756981730461,
-0.00882745161652565,
-0.019806500524282455,
-0.02176186442375183,
0.025027424097061157,
0.04530421644449234,
-0.016682665795087814,
0.04919489845633507,
0.003824682207778096,
-0.001624171040020883,
0.025796139612793922,
-0.0408678762614727,
-0.039894551038742065,
0.028024448081851006,
0.011341334320604801,
0.002997166942805052,
0.06332135945558548,
-0.026246951892971992,
-0.0155806178227067,
-0.017429817467927933,
-0.05443606153130531,
0.04237549751996994,
0.03819978982210159,
0.03527164086699486,
-0.022347433492541313,
0.024676959961652756,
-0.032822463661432266,
0.024092968553304672,
-0.008715739473700523,
-0.04346996173262596,
-0.05099830776453018,
-0.011393306776881218,
0.013804278336465359,
0.0027971146628260612,
0.010089394636452198,
-0.0385756753385067,
0.019320467486977577,
-0.013556579127907753,
0.036454636603593826,
-0.008993548341095448,
-0.0004443794023245573,
-0.0011365143582224846,
0.008945245295763016,
-0.05525079742074013,
-0.0013243883149698377,
0.03332706540822983,
-0.07953941822052002,
-0.03759049251675606,
0.00419071689248085,
-0.05337120220065117,
0.028417646884918213,
-0.03593423590064049,
-0.05205729603767395,
-0.02962656505405903,
0.01554972492158413,
0.024685369804501534,
0.006067353300750256,
0.02815045602619648,
0.056086886674165726,
0.004102606792002916,
0.02412913367152214,
-0.002672911388799548,
0.0013427764642983675,
0.05367341265082359,
0.005981686990708113,
0.05922785773873329,
0.011920684017241001,
-0.0323806032538414,
-0.02324477955698967,
-0.015042724087834358,
-0.005498294718563557,
-0.035288725048303604,
-0.261867880821228,
0.06562076508998871,
-0.014871930703520775,
-0.05070675536990166,
0.042402297258377075,
-0.0403771698474884,
0.007905649021267891,
-0.012601381167769432,
-0.015941863879561424,
0.016662081703543663,
-0.043733660131692886,
-0.024142306298017502,
-0.01288022380322218,
0.05206410214304924,
-0.01282530464231968,
0.019809892401099205,
-0.015872344374656677,
-0.05747859925031662,
0.032028671354055405,
-0.005272073671221733,
0.001675729057751596,
0.0013923377264291048,
0.025475434958934784,
-0.002857072278857231,
0.005946568213403225,
0.04971574991941452,
-0.07484673708677292,
0.06456086784601212,
-0.040685735642910004,
-0.046918876469135284,
0.003453484969213605,
-0.03023960441350937,
-0.006278953514993191,
0.05320725962519646,
-0.012681839987635612,
0.01449719537049532,
0.03149184212088585,
-0.006826010067015886,
0.017885347828269005,
0.012836444191634655,
-0.039847493171691895,
-0.05271971598267555,
-0.020091647282242775,
-0.033185265958309174,
0.07248985767364502,
-0.033700380474328995,
-0.0652468353509903,
-0.034686747938394547,
-0.02111356519162655,
0.07967091351747513,
-0.02292025275528431,
-0.030200747773051262,
-0.0026352570857852697,
0.01432760339230299,
0.0012181000784039497,
-0.026574961841106415,
-0.04523105546832085,
0.0026520073879510164,
-0.025763604789972305,
-0.008435984142124653,
-0.006038654129952192,
-0.045761123299598694,
0.007421485148370266,
-0.05123288556933403,
0.0001460163912270218,
-0.037406012415885925,
-0.0666622668504715,
-0.04898180067539215,
0.04267294332385063,
0.012802280485630035,
-0.011591094546020031,
0.04411669075489044,
-0.008424168452620506,
-0.09656557440757751,
-0.056173503398895264,
-0.06011117994785309,
0.0007159463712014258,
0.012597457505762577,
-0.04541716352105141,
0.04891161248087883,
-0.04072672128677368,
-0.03681887313723564,
-0.0009558047750033438,
-0.008718744851648808,
0.02852436527609825,
0.00921898614615202,
0.0024210489355027676,
-0.04354800656437874,
-0.005501687992364168,
-0.0013690757332369685,
0.07016617804765701,
-0.04281407222151756,
-0.006550326943397522,
-0.0024955272674560547,
-0.0007278656121343374,
0.014555655419826508,
0.005774345714598894,
-0.018774956464767456,
0.01620350033044815,
0.03835029900074005,
0.0830826610326767,
-0.026878608390688896,
0.023725086823105812,
-0.03685322776436806,
-0.016864940524101257,
-0.03248588368296623,
-0.05077717453241348,
0.06914573162794113,
0.009621170349419117,
0.04056131839752197,
0.004446155857294798,
-0.00795535184442997,
0.005626531317830086,
-0.0501694492995739,
-0.0284865852445364,
0.02131863683462143,
0.005653378553688526,
0.006317785941064358,
0.044310878962278366,
-0.026581907644867897,
-0.03597094491124153,
0.0285094752907753,
0.039380498230457306,
0.005577669013291597,
-0.042326394468545914,
-0.021689116954803467,
-0.010177173651754856,
-0.012237383984029293,
0.02349669113755226,
0.01885223016142845,
-0.014840022660791874,
0.024279598146677017,
0.026783110573887825,
-0.010025469586253166,
0.019343402236700058,
-0.0538293831050396,
-0.012763838283717632,
-0.03146945312619209,
0.00605518463999033,
-0.0033054871018975973,
-0.03678460791707039,
0.0017875530757009983,
-0.02889131009578705,
0.04933932423591614,
0.047218047082424164,
0.021094489842653275,
0.02305956929922104,
-0.0168047733604908,
0.018305964767932892,
0.0010736482217907906,
0.011586640030145645,
-0.047559432685375214,
0.0032019680365920067,
-0.04747564718127251,
-0.03727849945425987,
0.011500625871121883,
0.03504858538508415,
-0.03707257658243179,
-0.01757756434381008,
-0.011738578788936138,
0.01999099925160408,
-0.06277540326118469,
0.029338877648115158,
0.01893017254769802,
-0.051693156361579895,
0.04168187454342842,
-0.0009102282929234207,
0.0333121083676815,
-0.018214192241430283,
-0.00512490002438426,
-0.016821173951029778,
0.022153271362185478,
-0.04273226484656334,
-0.006929715629667044,
0.021692650392651558,
0.01814928464591503,
0.027134845033288002,
0.040137358009815216,
0.026542427018284798,
0.015895318239927292,
0.01486249826848507,
-0.03576434403657913,
0.0025402544997632504,
0.03360361605882645,
0.05128197744488716,
0.013260112144052982,
-0.01406471524387598,
0.015996834263205528,
-0.019532278180122375,
-0.01948055438697338,
-0.02470102533698082,
0.0017937367083504796,
-0.03170551359653473,
0.00888652540743351,
-0.0033673280850052834,
-0.05306408926844597,
0.04546409100294113,
0.015047123655676842,
0.014423567801713943,
0.04635150358080864,
-0.004390545655041933,
-0.0027858547400683165,
-0.036981143057346344,
0.01206191536039114,
0.058736108243465424,
-0.04043903574347496,
-0.04533558338880539,
-0.017604749649763107,
-0.004764663055539131,
-0.005839906632900238,
0.032720305025577545,
-0.07633775472640991,
-0.029122693464159966,
0.001435651327483356,
0.024651674553751945,
-0.006890882272273302,
-0.0703035295009613,
-0.011733923107385635,
-0.0014002274256199598,
-0.020314892753958702,
0.011409358121454716,
0.02579457499086857,
0.04342520982027054,
-0.017473319545388222,
-0.007312318310141563,
0.02211964689195156,
-0.016285846009850502,
-0.020423777401447296,
0.012795855291187763,
0.007695215288549662,
0.02219248376786709,
-0.0241794902831316,
0.04267563298344612,
0.0028292513452470303,
-0.00017351206042803824,
-0.03131743520498276,
-0.03896928206086159,
0.027542181313037872,
-0.038051195442676544,
0.020912010222673416,
-0.009809319861233234,
0.03855324536561966,
-0.031521987169981,
0.0024157159496098757,
-0.011841334402561188,
0.012587595731019974,
-0.045554179698228836,
-0.036567773669958115,
-0.007660167757421732,
0.05735279619693756,
0.021896321326494217,
0.06746896356344223,
0.01581791415810585,
-0.055729940533638,
0.052317842841148376,
-0.0435967743396759,
-0.061045091599226,
0.01677653007209301,
-0.06775999069213867,
0.0251512061804533,
0.022425111383199692,
0.019988927990198135,
-0.07427804917097092,
0.050853580236434937,
0.05430778115987778,
0.01551501639187336,
0.008621491491794586,
-0.024914778769016266,
0.035681743174791336,
-0.026449302211403847,
-0.05054816976189613,
-0.09121860563755035,
0.0014268872328102589,
0.036851152777671814,
-0.013111265376210213,
-0.015711108222603798,
-0.01619812473654747,
-0.026267262175679207,
-0.02567324973642826,
-0.03169562295079231,
-0.027670402079820633,
0.05179392173886299,
-0.036988772451877594,
0.013983570970594883,
-0.0003305229765828699,
-0.0695275142788887,
0.029757224023342133,
0.052333682775497437,
-0.033368345350027084,
-0.018820740282535553,
-0.03771604970097542,
0.02668670378625393,
-0.016873884946107864,
0.05431973189115524,
-0.0432172492146492,
-0.04931522160768509,
0.07275057584047318,
0.02553173527121544,
0.014360624365508556,
0.036476198583841324,
-0.025144627317786217,
0.02590162865817547,
0.03588851913809776,
0.004275963641703129,
-0.023173170164227486,
0.03898055851459503,
-0.020936431363224983,
-0.021707119420170784,
-0.021509015932679176,
0.017688287422060966,
-0.006395444739609957,
-0.04083455726504326,
0.07361798733472824,
0.006196613423526287,
-0.03777188062667847,
-0.03555963188409805,
-0.0027560002636164427,
-0.021365927532315254,
-0.007562549784779549,
-0.05385684594511986,
0.01717122457921505,
-0.04973795637488365,
0.05007699504494667,
0.008000850677490234,
0.018328610807657242,
0.07790867239236832,
0.0018434247467666864,
0.007799328304827213,
0.024838335812091827,
0.06319160759449005,
0.09873487800359726,
0.005195701029151678,
0.015764335170388222,
0.04653244838118553,
-0.0025502589996904135,
0.0035454474855214357,
-0.020165883004665375,
-0.03156837448477745,
-0.0069694179110229015,
-0.005655822344124317,
-0.0017140851123258471,
0.07267379015684128,
-0.055271584540605545,
0.07838399708271027,
0.0019180071540176868,
-0.006201260257512331,
0.017528902739286423,
-0.001613631029613316,
0.02066202089190483,
0.05189155414700508,
0.03454877436161041,
0.03716811165213585,
-0.017260877415537834,
-0.022765828296542168,
0.022520272061228752,
-0.03299453482031822,
-0.01564853824675083,
0.037166982889175415,
-0.013505320996046066,
0.009808140806853771,
0.029285632073879242,
0.049620069563388824,
0.06955349445343018,
-0.01949254982173443,
-0.0019033777061849833,
-0.013545477762818336,
0.04759225249290466,
-0.022381087765097618,
0.011153355240821838,
0.004529351368546486,
-0.008574741892516613,
-0.003512375755235553,
-0.03611254319548607,
-0.02640460431575775,
-0.008170157670974731,
-0.04807503521442413,
0.009807498194277287,
-0.017758473753929138,
-0.010723752900958061,
-0.0211346335709095,
-0.01527200173586607,
-0.0013495510211214423,
-0.04347088187932968,
-0.04169084504246712,
-0.08750950545072556,
-0.04941893741488457,
-0.010330605320632458,
-0.01616848073899746,
0.008432350121438503,
-0.008942751213908195,
-0.00702656339854002,
-0.0481228232383728,
-0.03331291675567627,
0.034500833600759506,
-0.05493826046586037,
0.014123603701591492,
0.008180942386388779,
0.007841958664357662,
0.030114920809864998,
0.022728750482201576,
0.026745423674583435,
0.015369946137070656,
0.0020847669802606106,
0.000422285491367802,
0.021742403507232666,
0.04117359593510628,
-0.006759177893400192,
-0.049978259950876236,
-0.06417243927717209,
0.006109326612204313,
0.011245926842093468,
0.050222136080265045,
-0.05913875252008438,
0.022010646760463715,
0.05595969408750534,
-0.0246148481965065,
0.04215558245778084,
-0.024089936167001724,
0.0027321449015289545,
-0.01047543715685606,
-0.008729222230613232,
-0.013553973287343979,
-0.01425852905958891,
0.027519891038537025,
-0.02127678319811821,
0.05923037603497505,
0.059675391763448715,
-0.04872280731797218,
-0.014950335025787354,
-0.018164796754717827,
-0.0036991408560425043,
0.02074664644896984,
-0.01913336105644703,
-0.025748854503035545,
-0.05423649400472641,
-0.08321563154459,
-0.0305421594530344,
-0.01638743281364441,
-0.0042725917883217335,
-0.021930592134594917,
0.02174762822687626,
0.0205142330378294,
-0.018058154731988907,
0.03656730800867081,
-0.02832462452352047,
-0.0005245075444690883,
-0.015571198426187038,
-0.03851819410920143,
-0.014233564957976341,
-0.0003290006425231695,
-0.013333038426935673,
0.004736706148833036,
0.02546999417245388,
-0.041497066617012024,
-0.02841641753911972,
-0.00839691236615181,
0.03655727580189705,
0.01691809855401516,
0.007686597295105457,
0.021386774256825447
] | [
-0.04698888584971428,
-0.026376595720648766,
-0.030558118596673012,
-0.03250301629304886,
0.06473053991794586,
-0.04852595552802086,
-0.042971014976501465,
0.023678049445152283,
0.011466140858829021,
-0.02506469190120697,
0.03552018851041794,
-0.027806198224425316,
-0.008928931318223476,
-0.019135259091854095,
0.06418302655220032,
-0.00808288250118494,
-0.057975251227617264,
-0.043389223515987396,
-0.016957692801952362,
0.03716263920068741,
-0.026827020570635796,
-0.020651141181588173,
-0.016340164467692375,
-0.07438505440950394,
-0.0077369362115859985,
0.05980241671204567,
0.04689480736851692,
-0.008257982321083546,
-0.04704677313566208,
-0.20762129127979279,
0.003931225277483463,
-0.010129101574420929,
-0.008014070801436901,
-0.014828318729996681,
0.03232690319418907,
0.04606623575091362,
0.020803086459636688,
-0.03778369352221489,
0.01495710201561451,
0.050135593861341476,
0.043355200439691544,
-0.011384446173906326,
-0.053591255098581314,
-0.015867182984948158,
0.0324663482606411,
0.00046621248475275934,
-0.011926836334168911,
-0.01566936820745468,
0.007797763682901859,
-0.0059300377033650875,
-0.02583303488790989,
-0.012962358072400093,
0.012574231252074242,
-0.031123923137784004,
0.018616028130054474,
0.022589437663555145,
0.05704769864678383,
0.08565608412027359,
0.016431357711553574,
0.024104751646518707,
0.005858911667019129,
0.006156078539788723,
-0.14406198263168335,
0.07738358527421951,
0.031590890139341354,
-0.023130495101213455,
-0.028162535279989243,
-0.02729804441332817,
-0.029797492548823357,
0.07518169283866882,
-0.016303954645991325,
0.0037403295282274485,
-0.06619960069656372,
0.07799819856882095,
-0.041463639587163925,
0.0069894250482320786,
-0.0031755450181663036,
-0.00029293616535142064,
0.042560890316963196,
-0.04468000307679176,
-0.04725141450762749,
-0.001458281185477972,
-0.045852579176425934,
-0.012669462710618973,
-0.05950773134827614,
0.031596288084983826,
-0.024814315140247345,
0.09234893321990967,
0.003427778137847781,
0.038364067673683167,
0.02411770634353161,
-0.0021802771370857954,
0.07153531908988953,
0.034502699971199036,
-0.10042910277843475,
0.013364753685891628,
0.024835415184497833,
0.017079228535294533,
0.03396039828658104,
0.372946560382843,
0.014882146380841732,
-0.012979178689420223,
0.01874595694243908,
0.043281204998493195,
0.014541704207658768,
-0.022667815908789635,
-0.010333794169127941,
-0.025074394419789314,
0.060423266142606735,
-0.005121050402522087,
0.009591324254870415,
-0.049604035913944244,
0.059520114213228226,
-0.07535485178232193,
0.006497903726994991,
0.009881218895316124,
0.04570569843053818,
0.002427926054224372,
-0.046354398131370544,
0.014761005528271198,
-0.01010518241673708,
0.005286900792270899,
0.03626829385757446,
0.01638817973434925,
0.06710150837898254,
0.020341960713267326,
0.0032881437800824642,
0.0633876770734787,
0.019298085942864418,
0.01477121002972126,
0.0468728244304657,
0.0012508545769378543,
-0.05181359872221947,
0.04311728850007057,
-0.015931425616145134,
0.01984267868101597,
0.017278870567679405,
-0.045436084270477295,
-0.011749157682061195,
0.006017289590090513,
-0.02160460688173771,
-0.04331371933221817,
-0.01266554743051529,
-0.00018687607371248305,
-0.01735539734363556,
0.10296181589365005,
-0.021374210715293884,
-0.024149136617779732,
-0.02804829180240631,
-0.05718547850847244,
0.004781452007591724,
0.0561467707157135,
-0.018145782873034477,
-0.05073798820376396,
-0.02066677249968052,
0.009576447308063507,
0.0759003534913063,
-0.018765650689601898,
-0.09247007966041565,
-0.00021802856645081192,
-0.025627201423048973,
-0.022725854068994522,
-0.0369022935628891,
0.097151018679142,
0.03901294618844986,
-0.07887851446866989,
-0.016142157837748528,
0.011538256891071796,
0.04298080503940582,
-0.055111732333898544,
0.004294577520340681,
-0.010468393564224243,
-0.030620358884334564,
-0.0590687170624733,
0.03459576889872551,
-0.03800719231367111,
-0.015210818499326706,
0.00807021465152502,
0.04007655009627342,
0.007355229463428259,
0.0077920835465192795,
0.003307986306026578,
-0.05570771172642708,
0.0041731493547558784,
-0.0438896082341671,
-0.06881891191005707,
-0.08739394694566727,
0.025022514164447784,
-0.03540453314781189,
-0.009833943098783493,
-0.04702947288751602,
-0.007588070817291737,
-0.04839944839477539,
0.05133521556854248,
-0.003001102712005377,
-0.03517032414674759,
-0.011469325050711632,
0.01859249360859394,
-0.013239228166639805,
-0.05164971575140953,
0.08704324811697006,
0.04749770835042,
-0.009796593338251114,
0.030271314084529877,
-0.08466006815433502,
0.01108359545469284,
0.06586714833974838,
-0.028958193957805634,
0.05355872958898544,
0.045191504061222076,
-0.07402552664279938,
0.007182219531387091,
0.0031080576591193676,
0.019529283046722412,
-0.02119019627571106,
-0.024261534214019775,
-0.005512482486665249,
-0.002851886907592416,
0.047997135668992996,
0.044771742075681686,
-0.052090294659137726,
0.020738881081342697,
-0.006879213731735945,
-0.34991493821144104,
-0.03406231850385666,
0.005766186863183975,
0.009747019968926907,
0.04625412076711655,
-0.017548587173223495,
0.023085780441761017,
-0.011681714095175266,
0.008957660757005215,
0.019561385735869408,
0.08326120674610138,
-0.025720741599798203,
0.0146370530128479,
-0.07599067687988281,
0.007917435839772224,
0.04304356873035431,
0.0026389474514871836,
-0.01067337952554226,
-0.006172403693199158,
0.01657424494624138,
0.0008693806012161076,
-0.07830262929201126,
-0.012405134737491608,
-0.027540920302271843,
0.001552026835270226,
-0.020353278145194054,
0.09896788746118546,
0.016040943562984467,
0.06455913931131363,
-0.05430156737565994,
0.04005832597613335,
0.014761155471205711,
-0.019130459055304527,
-0.11744383722543716,
-0.022502239793539047,
-0.0010050873970612884,
0.02347666397690773,
0.029505440965294838,
0.003744113026186824,
0.017533937469124794,
-0.029558295384049416,
-0.029319891706109047,
-0.046027276664972305,
-0.0581672266125679,
-0.001272908877581358,
0.011677836999297142,
-0.05614124611020088,
-0.016872325912117958,
0.010889849625527859,
0.04637617617845535,
0.008484050631523132,
0.022611452266573906,
0.004573571030050516,
0.03707679361104965,
0.024848835542798042,
-0.017415789887309074,
-0.04860280081629753,
-0.020681943744421005,
0.03117298148572445,
0.017701441422104836,
0.02983497641980648,
0.051016855984926224,
0.01864437386393547,
-0.0747251883149147,
0.020851081237196922,
0.004077631048858166,
0.0005201967433094978,
0.00644190376624465,
0.06836279481649399,
-0.02812892012298107,
-0.025507230311632156,
0.11164217442274094,
0.011937610805034637,
0.05425077676773071,
0.016697734594345093,
0.051699064671993256,
-0.03624306246638298,
-0.003103754948824644,
0.010235161520540714,
0.0035956704523414373,
0.058393485844135284,
-0.015147319063544273,
0.09372757375240326,
-0.025564225390553474,
-0.03537272289395332,
0.059411536902189255,
-0.005540529265999794,
-0.045025505125522614,
0.05838785320520401,
0.004624432418495417,
-0.021787600591778755,
-0.02978956513106823,
-0.025913260877132416,
-0.06240958347916603,
0.07449626922607422,
-0.015285595320165157,
-0.24337738752365112,
0.026863429695367813,
-0.0029745586216449738,
0.06895039975643158,
0.002756168833002448,
0.009952660650014877,
0.03252309188246727,
-0.0434626080095768,
0.0015059900470077991,
0.030079327523708344,
0.03232370316982269,
0.05355312302708626,
-0.031546637415885925,
0.019991714507341385,
0.006570922210812569,
0.010575464926660061,
0.03587443009018898,
0.037509068846702576,
0.0173866618424654,
-0.01312534511089325,
0.042724691331386566,
-0.03761839121580124,
0.16278262436389923,
0.034419260919094086,
0.00027213062276132405,
0.061104655265808105,
-0.03479709476232529,
0.019784647971391678,
0.06126587837934494,
-0.025558073073625565,
-0.04791097342967987,
0.052205875515937805,
0.02000814862549305,
0.01032421924173832,
0.03109542466700077,
-0.03633130341768265,
-0.01790505461394787,
0.03940228372812271,
0.040832486003637314,
-0.028591332957148552,
-0.04645258188247681,
0.02137714996933937,
-0.016133630648255348,
0.026245541870594025,
0.06910869479179382,
-0.03482970595359802,
0.006616878788918257,
-0.027417665347456932,
-0.07141313701868057,
-0.003634618828073144,
-0.0646335780620575,
-0.030038703233003616,
-0.03472816199064255,
-0.008342735469341278,
0.0021718747448176146,
0.07976218312978745,
0.007055129390209913,
-0.03659546747803688,
0.021063504740595818,
0.013083509169518948,
0.007876449264585972,
-0.06229236349463463,
0.13259635865688324,
-0.0022612367756664753,
-0.03924742341041565
] | [
0.04043542593717575,
0.024549271911382675,
-0.02821582742035389,
0.016912046819925308,
-0.009722854942083359,
-0.00040833032107912004,
-0.018662750720977783,
0.012604156509041786,
-0.020964184775948524,
-0.0010665719164535403,
-0.03136036545038223,
-0.0005800236249342561,
0.05528637766838074,
0.007916123606264591,
-0.0368872806429863,
-0.0006741131655871868,
-0.009094146080315113,
0.041782815009355545,
0.03623858466744423,
-0.022772828117012978,
-0.034021299332380295,
0.010452765971422195,
0.04288043454289436,
-0.03224283084273338,
-0.0051330942660570145,
0.0182478129863739,
-0.011098073795437813,
-0.03497996926307678,
-0.005305895581841469,
-0.12399332225322723,
-0.023733558133244514,
-0.02467028982937336,
-0.0055449483916163445,
-0.009762154892086983,
0.005834184121340513,
0.03412306681275368,
0.044710077345371246,
0.024658098816871643,
-0.02413523569703102,
0.033595334738492966,
0.03782083839178085,
-0.0024189448449760675,
-0.025581855326890945,
-0.010116072371602058,
0.0028819399885833263,
-0.008084994740784168,
-0.05115576460957527,
-0.034790556877851486,
-0.005642503034323454,
-0.015415707603096962,
-0.039769247174263,
0.003327668644487858,
0.010361261665821075,
-0.006463612429797649,
0.009790891781449318,
0.011328070424497128,
-0.018106352537870407,
0.006062086205929518,
0.016619393602013588,
-0.03743018954992294,
0.02340610697865486,
0.0018854534719139338,
-0.0654696598649025,
-0.0344511978328228,
-0.01100480742752552,
-0.03253086656332016,
0.0017239084700122476,
0.010437841527163982,
-0.007261201739311218,
0.027990614995360374,
-0.02553320676088333,
0.05694684758782387,
-0.07593130320310593,
-0.038292691111564636,
-0.04640503227710724,
0.032107286155223846,
0.06353317946195602,
-0.021910320967435837,
-0.03002897836267948,
0.01643192395567894,
-0.02554427832365036,
0.011857613921165466,
-0.01482719462364912,
-0.010883609764277935,
-0.0542680062353611,
0.05386090651154518,
-0.009963702410459518,
-0.01512090116739273,
0.03236694633960724,
0.031728435307741165,
-0.00896642915904522,
0.02324483171105385,
-0.009735530242323875,
-0.020434139296412468,
-0.0916232243180275,
-0.029237031936645508,
-0.010940123349428177,
0.0019343119347468019,
0.02883387729525566,
0.8175038695335388,
0.00838623195886612,
-0.009950784966349602,
0.027132520452141762,
0.023169884458184242,
0.0003706224961206317,
-0.007051893975585699,
0.024245737120509148,
0.004698625765740871,
-0.002958057913929224,
-0.0003672297752927989,
-0.011457270942628384,
0.02019587904214859,
0.026581060141324997,
0.015183757990598679,
0.025461431592702866,
0.03783383592963219,
0.0462896004319191,
-0.01912432350218296,
-0.01984878070652485,
0.03835045173764229,
0.04679471626877785,
-0.002720901509746909,
-0.01234651543200016,
0.03981056064367294,
0.017898112535476685,
-0.1606629639863968,
-0.024422302842140198,
-7.298102962170236e-33,
0.027418754994869232,
-0.031139248982071877,
0.05422736704349518,
0.014067129231989384,
0.018047165125608444,
0.05245456099510193,
-0.0006387584726326168,
-0.003643105737864971,
-0.03736593574285507,
-0.03262855485081673,
-0.022554194554686546,
-0.016239715740084648,
0.006388889160007238,
-0.0183201152831316,
-0.006467057392001152,
-0.025373034179210663,
0.01590704917907715,
0.021904533728957176,
-0.03092385269701481,
0.006137191783636808,
0.013685588724911213,
0.04401400685310364,
-0.02851552516222,
0.05271732062101364,
0.017908548936247826,
0.0010188505984842777,
0.0012147491797804832,
-0.013781830668449402,
-0.002568869385868311,
-0.05768892914056778,
-0.05418635159730911,
0.009442275390028954,
-0.012417380698025227,
-0.022642575204372406,
-0.0032046944834291935,
-0.06504328548908234,
-0.01029567327350378,
0.00006251470767892897,
-0.026930561289191246,
-0.0670277401804924,
-0.04539628326892853,
0.010733122006058693,
-0.018448906019330025,
-0.007995730265974998,
-0.019788939505815506,
-0.03529185429215431,
-0.027275830507278442,
0.01805178076028824,
-0.009660068899393082,
0.024887626990675926,
0.010257955640554428,
0.033924687653779984,
-0.006199923809617758,
-0.004387767519801855,
-0.028081299737095833,
-0.0025077485479414463,
-0.0000780695554567501,
0.014692374505102634,
-0.008427068591117859,
0.02292538248002529,
0.036914050579071045,
0.01662600412964821,
-0.029777372255921364,
0.02848457545042038,
0.05503484234213829,
-0.020341619849205017,
0.0018673905869945884,
0.04032716527581215,
0.004371624439954758,
0.07042189687490463,
-0.0509791374206543,
0.03721022605895996,
0.00785143207758665,
-0.0046332948841154575,
0.03723548352718353,
-0.051293082535266876,
-0.025112910196185112,
-0.010626126080751419,
0.009356445632874966,
0.038715265691280365,
-0.006736587267369032,
-0.03718368709087372,
-0.03453276306390762,
-0.027298685163259506,
-0.005689291283488274,
0.004263265058398247,
0.03635293245315552,
0.008541018702089787,
0.025345636531710625,
0.03248060494661331,
0.04731462523341179,
0.015575781464576721,
-0.02062535099685192,
-0.028333164751529694,
-0.02973533794283867,
6.560905639047454e-33,
0.0049737486988306046,
-0.012552143074572086,
-0.028894953429698944,
0.015274234116077423,
0.028075268492102623,
0.014987640082836151,
0.0022426217328757048,
-0.014094370417296886,
-0.051216010004282,
0.01593140698969364,
-0.03836018592119217,
0.012270062230527401,
0.001466854359023273,
0.04149703308939934,
0.04050937667489052,
0.0069063883274793625,
0.006686484906822443,
-0.03313291445374489,
0.0012015205575153232,
0.021871568635106087,
-0.03502338007092476,
0.013356350362300873,
-0.005174706224352121,
0.03795495256781578,
0.02512606605887413,
0.010842916555702686,
-0.0009657708578743041,
0.024612214416265488,
-0.0430072620511055,
0.004132919013500214,
-0.011672882363200188,
-0.034177348017692566,
-0.014524095691740513,
-0.034365057945251465,
0.009731221944093704,
0.013807866722345352,
-0.016211915761232376,
0.011108338832855225,
0.03899221122264862,
0.022614026442170143,
0.019475480541586876,
-0.00015113112749531865,
-0.016206618398427963,
0.04152985289692879,
0.008002614602446556,
0.04229807108640671,
0.005184531211853027,
0.0207874346524477,
-0.007741502020508051,
0.009507332928478718,
-0.015383606776595116,
0.027927512302994728,
0.014750001952052116,
0.014287307858467102,
0.0349745899438858,
-0.05481480062007904,
-0.00808697659522295,
0.019594144076108932,
-0.016459228470921516,
0.04306429997086525,
-0.01560237817466259,
-0.007069921586662531,
-0.010834320448338985,
0.02592695690691471,
-0.02591894194483757,
-0.05457011237740517,
0.005408470053225756,
0.004585680551826954,
0.01680617779493332,
-0.025536326691508293,
0.028078047558665276,
0.0024649479892104864,
-0.019462134689092636,
0.034085556864738464,
0.014707611873745918,
-0.04222789406776428,
-0.020492248237133026,
0.008637900464236736,
-0.030023038387298584,
0.038637060672044754,
0.016199545934796333,
0.007966270670294762,
0.02164347656071186,
-0.011934326030313969,
0.0412134975194931,
-0.004308239556849003,
-0.023430295288562775,
0.013819359242916107,
-0.0035709445364773273,
-0.011782166548073292,
0.021966930478811264,
-0.010503162629902363,
-0.024139363318681717,
0.03088981658220291,
-0.05640190467238426,
-1.2476706778841162e-8,
-0.009197210893034935,
-0.03795040398836136,
-0.011156512424349785,
0.02547791227698326,
0.015954792499542236,
0.024441128596663475,
-0.02960347943007946,
-0.008044387213885784,
-0.028352931141853333,
0.033596232533454895,
0.01718730293214321,
-0.015699351206421852,
0.03696032240986824,
0.001329468097537756,
0.03654825687408447,
-0.003954748157411814,
-0.002985467668622732,
-0.0054275281727313995,
0.03218015283346176,
0.02433275431394577,
-0.009624110534787178,
0.05504700541496277,
-0.060921840369701385,
0.0024201450869441032,
-0.011344138532876968,
-0.025956427678465843,
0.04409864544868469,
-0.08071459829807281,
-0.02459227852523327,
-0.04232237860560417,
0.0038389016408473253,
-0.02266559936106205,
-0.017545554786920547,
0.010240201838314533,
-0.020706823095679283,
-0.024775749072432518,
0.02535524219274521,
0.03131517395377159,
0.019419725984334946,
0.0030288752168416977,
0.004409384448081255,
0.011615966446697712,
-0.03007008321583271,
-0.024530630558729172,
-0.040643516927957535,
0.0003073205298278481,
-0.03445723280310631,
-0.02059648558497429,
0.04552176222205162,
-0.04769322648644447,
0.0069908141158521175,
0.022195007652044296,
0.03752915561199188,
0.03012406826019287,
0.04798871651291847,
-0.009711352176964283,
0.02066379226744175,
0.00011463207920314744,
-0.008377478457987309,
-0.014283020980656147,
0.030701979994773865,
0.014738647267222404,
-0.029227036982774734,
-0.023304805159568787
] | unix-redirecting-stderr-to-stdout | https://markhneedham.com/blog/2015/08/15/unix-redirecting-stderr-to-stdout |
false | 2015-08-13 19:30:51 | Sed: Using environment variables | [
"sed"
] | [
"Shell Scripting"
] | I've been playing around with the http://www.markhneedham.com/blog/2015/05/16/neo4j-bbc-football-live-text-fouls-graph/[BBC football data set] that I wrote about a couple of months ago and I wanted to write some code that would take the import script and replace all instances of remote URIs with a file system path.
For example the import file contains several lines similar to this:
[source,text]
----
LOAD CSV WITH HEADERS
FROM "https://raw.githubusercontent.com/mneedham/neo4j-bbc/master/data/matches.csv"
AS row
----
And I want that to read:
[source,text]
----
LOAD CSV WITH HEADERS
FROM "file:///Users/markneedham/repos/neo4j-bbc/data/matches.csv"
AS row
----
The start of that path also happens to be my working directory:
[source,bash]
----
$ echo $PWD
/Users/markneedham/repos/neo4j-bbc
----
So I wanted to write a script that would look for occurrences of 'https://raw.githubusercontent.com/mneedham/neo4j-bbc/master' and replace it with $PWD. I'm a fan of Sed so I thought I'd try and use it to solve my problem.
The first thing we can do to make life easy is to change the default delimiter. Sed usually uses '/' to separate parts of the command but since we're using URIs that's going to be horrible so we'll use an underscore instead.
For a first cut I tried just removing that first part of the URI but not replacing it with anything in particular:
[source,bash]
----
$ sed 's_https://raw.githubusercontent.com/mneedham/neo4j-bbc/master__' import.cql
$ sed 's_https://raw.githubusercontent.com/mneedham/neo4j-bbc/master__' import.cql | grep LOAD
LOAD CSV WITH HEADERS FROM "/data/matches.csv" AS row
LOAD CSV WITH HEADERS FROM "/data/players.csv" AS row
LOAD CSV WITH HEADERS FROM "/data/players.csv" AS row
LOAD CSV WITH HEADERS FROM "/data/fouls.csv" AS row
LOAD CSV WITH HEADERS FROM "/data/attempts.csv" AS row
LOAD CSV WITH HEADERS FROM "/data/attempts.csv" AS row
LOAD CSV WITH HEADERS FROM "/data/corners.csv" AS row
LOAD CSV WITH HEADERS FROM "/data/corners.csv" AS row
LOAD CSV WITH HEADERS FROM "/data/cards.csv" AS row
LOAD CSV WITH HEADERS FROM "/data/cards.csv" AS row
LOAD CSV WITH HEADERS FROM "/data/subs.csv" AS row
----
Cool! That worked as expected. Now let's try and replace it with $PWD:
[source,bash]
----
$ sed 's_https://raw.githubusercontent.com/mneedham/neo4j-bbc/master_file://$PWD_' import.cql | grep LOAD
LOAD CSV WITH HEADERS FROM "file://$PWD/data/matches.csv" AS row
LOAD CSV WITH HEADERS FROM "file://$PWD/data/players.csv" AS row
LOAD CSV WITH HEADERS FROM "file://$PWD/data/players.csv" AS row
LOAD CSV WITH HEADERS FROM "file://$PWD/data/fouls.csv" AS row
LOAD CSV WITH HEADERS FROM "file://$PWD/data/attempts.csv" AS row
LOAD CSV WITH HEADERS FROM "file://$PWD/data/attempts.csv" AS row
LOAD CSV WITH HEADERS FROM "file://$PWD/data/corners.csv" AS row
LOAD CSV WITH HEADERS FROM "file://$PWD/data/corners.csv" AS row
LOAD CSV WITH HEADERS FROM "file://$PWD/data/cards.csv" AS row
LOAD CSV WITH HEADERS FROM "file://$PWD/data/cards.csv" AS row
LOAD CSV WITH HEADERS FROM "file://$PWD/data/subs.csv" AS row
----
Hmmm that didn't work as expected. The $PWD is being treated as a literal instead of being evaluated like we want it to be.
It turns out this is http://askubuntu.com/questions/76808/how-to-use-variables-in-sed-command[a popular question on Stack Overflow] and there are lots of suggestions - I tried a few of them and found that single quotes did the trick:
[source,bash]
----
$ sed 's_https://raw.githubusercontent.com/mneedham/neo4j-bbc/master_file://'$PWD'_' import.cql | grep LOAD
LOAD CSV WITH HEADERS FROM "file:///Users/markneedham/repos/neo4j-bbc/data/matches.csv" AS row
LOAD CSV WITH HEADERS FROM "file:///Users/markneedham/repos/neo4j-bbc/data/players.csv" AS row
LOAD CSV WITH HEADERS FROM "file:///Users/markneedham/repos/neo4j-bbc/data/players.csv" AS row
LOAD CSV WITH HEADERS FROM "file:///Users/markneedham/repos/neo4j-bbc/data/fouls.csv" AS row
LOAD CSV WITH HEADERS FROM "file:///Users/markneedham/repos/neo4j-bbc/data/attempts.csv" AS row
LOAD CSV WITH HEADERS FROM "file:///Users/markneedham/repos/neo4j-bbc/data/attempts.csv" AS row
LOAD CSV WITH HEADERS FROM "file:///Users/markneedham/repos/neo4j-bbc/data/corners.csv" AS row
LOAD CSV WITH HEADERS FROM "file:///Users/markneedham/repos/neo4j-bbc/data/corners.csv" AS row
LOAD CSV WITH HEADERS FROM "file:///Users/markneedham/repos/neo4j-bbc/data/cards.csv" AS row
LOAD CSV WITH HEADERS FROM "file:///Users/markneedham/repos/neo4j-bbc/data/cards.csv" AS row
LOAD CSV WITH HEADERS FROM "file:///Users/markneedham/repos/neo4j-bbc/data/subs.csv" AS row
----
We could also use double quotes everywhere if we prefer:
[source,bash]
----
$ sed "s_https://raw.githubusercontent.com/mneedham/neo4j-bbc/master_file://"$PWD"_" import.cql | grep LOAD
LOAD CSV WITH HEADERS FROM "file:///Users/markneedham/repos/neo4j-bbc/data/matches.csv" AS row
LOAD CSV WITH HEADERS FROM "file:///Users/markneedham/repos/neo4j-bbc/data/players.csv" AS row
LOAD CSV WITH HEADERS FROM "file:///Users/markneedham/repos/neo4j-bbc/data/players.csv" AS row
LOAD CSV WITH HEADERS FROM "file:///Users/markneedham/repos/neo4j-bbc/data/fouls.csv" AS row
LOAD CSV WITH HEADERS FROM "file:///Users/markneedham/repos/neo4j-bbc/data/attempts.csv" AS row
LOAD CSV WITH HEADERS FROM "file:///Users/markneedham/repos/neo4j-bbc/data/attempts.csv" AS row
LOAD CSV WITH HEADERS FROM "file:///Users/markneedham/repos/neo4j-bbc/data/corners.csv" AS row
LOAD CSV WITH HEADERS FROM "file:///Users/markneedham/repos/neo4j-bbc/data/corners.csv" AS row
LOAD CSV WITH HEADERS FROM "file:///Users/markneedham/repos/neo4j-bbc/data/cards.csv" AS row
LOAD CSV WITH HEADERS FROM "file:///Users/markneedham/repos/neo4j-bbc/data/cards.csv" AS row
LOAD CSV WITH HEADERS FROM "file:///Users/markneedham/repos/neo4j-bbc/data/subs.csv" AS row
---- | null | null | [
-0.00931160431355238,
-0.013973191380500793,
-0.025386981666088104,
0.035637613385915756,
0.10620038956403732,
-0.006560077890753746,
0.027218129485845566,
0.04183244705200195,
0.04229385405778885,
-0.01842826046049595,
-0.015827540308237076,
0.005761263892054558,
-0.06770766526460648,
0.012343408539891243,
0.0007620005635544658,
0.060499802231788635,
0.07039494812488556,
-0.010232379660010338,
0.017829859629273415,
-0.03399636596441269,
0.02227216586470604,
0.04854556545615196,
-0.012050270102918148,
0.028298592194914818,
0.0013442020863294601,
0.001365619245916605,
-0.002037451369687915,
-0.007330527529120445,
-0.04933624714612961,
0.0041713896207511425,
0.054012756794691086,
-0.012021459639072418,
0.024673646315932274,
-0.013518154621124268,
0.04798930138349533,
-0.02367163449525833,
-0.028530661016702652,
0.00494417967274785,
-0.007500992622226477,
-0.005285996478050947,
-0.05797336623072624,
0.015630416572093964,
-0.03300321474671364,
0.027139239013195038,
-0.03413981571793556,
-0.009425878524780273,
-0.0319252535700798,
0.03501719981431961,
-0.0006012877565808594,
0.0017511184560135007,
-0.058090947568416595,
0.021121935918927193,
-0.008249317295849323,
-0.041075631976127625,
0.01639830507338047,
0.051435232162475586,
0.03888380154967308,
-0.05785432457923889,
0.04031075909733772,
-0.0032069047447293997,
-0.008030512370169163,
-0.012494062073528767,
-0.005660548340529203,
0.03204914554953575,
-0.008490229025483131,
-0.04159638658165932,
-0.0077104512602090836,
0.058509983122348785,
-0.03915555402636528,
-0.03080672211945057,
0.012705898843705654,
-0.0003522441256791353,
-0.05181170254945755,
-0.005093383602797985,
0.0177167896181345,
-0.04877103492617607,
-0.005628448911011219,
0.04327743873000145,
0.02213277295231819,
0.07742380350828171,
-0.026752691715955734,
0.026064584031701088,
-0.009240853600203991,
0.0039728740230202675,
0.028285682201385498,
-0.05352114513516426,
-0.023249778896570206,
-0.018391042947769165,
-0.06620795279741287,
0.03721090406179428,
0.008394034579396248,
-0.05513833463191986,
0.014604456722736359,
0.019653189927339554,
-0.01039106585085392,
-0.000998770585283637,
0.01248956099152565,
0.0490991547703743,
0.03631936013698578,
-0.01829623430967331,
-0.06722036004066467,
-0.011142426170408726,
-0.0006327582523226738,
-0.009118791669607162,
-0.06889741867780685,
-0.0040440806187689304,
-0.038292236626148224,
-0.039599016308784485,
0.02514270506799221,
-0.036326780915260315,
-0.02189675346016884,
0.0028091915883123875,
-0.01066281646490097,
-0.00023155318922363222,
-0.09080950170755386,
0.060726433992385864,
0.01976504549384117,
-0.017668716609477997,
-0.019720491021871567,
0.01782297156751156,
0.018405018374323845,
0.030819788575172424,
0.002189931459724903,
0.07653221487998962,
0.017147786915302277,
0.025294283404946327,
0.01702253893017769,
0.046418577432632446,
-0.02023385465145111,
-0.08581945300102234,
-0.008768858388066292,
0.07454092055559158,
-0.009607790037989616,
0.024193493649363518,
-0.014769930392503738,
-0.02171967551112175,
-0.015216710045933723,
-0.010882056318223476,
0.06403253227472305,
0.04163448512554169,
0.002130191307514906,
-0.026373622938990593,
0.016886789351701736,
0.011576627381145954,
0.033632948994636536,
0.006994523108005524,
-0.01939559355378151,
-0.03709414601325989,
-0.03384477272629738,
0.008365048095583916,
0.01987483911216259,
0.012825807556509972,
0.08844354748725891,
-0.01570543833076954,
-0.012487292289733887,
0.10749004036188126,
0.03932541236281395,
0.01424327865242958,
-0.04850200563669205,
0.01770143210887909,
0.043172065168619156,
0.046125590801239014,
-0.0007693514344282448,
0.029476027935743332,
-0.02116619609296322,
-0.01332604605704546,
-0.01567106693983078,
0.024863842874765396,
-0.0008149293716996908,
0.01687624119222164,
-0.018684256821870804,
-0.06236648187041283,
0.07512926310300827,
-0.03496704250574112,
0.0061769988387823105,
0.011249584145843983,
0.06366070359945297,
0.02874542959034443,
0.04616868123412132,
0.0012654962483793497,
-0.07839775830507278,
0.052966903895139694,
0.0023080515675246716,
0.018950335681438446,
-0.0037698177620768547,
-0.006569206714630127,
0.075228750705719,
0.011472679674625397,
0.00856134295463562,
0.03528923541307449,
-0.0910535529255867,
-0.07662457972764969,
-0.03830581530928612,
0.002830422017723322,
0.05255669727921486,
-0.010631878860294819,
-0.0008302923524752259,
0.0652528628706932,
0.004743601661175489,
0.03453061729669571,
-0.0012976001016795635,
0.0016815424896776676,
0.04909852147102356,
-0.07040933519601822,
-0.05169450119137764,
0.047064051032066345,
0.018389355391263962,
-0.04860391467809677,
-0.017247198149561882,
0.014465374872088432,
-0.0398159958422184,
0.03662494942545891,
0.0388687327504158,
-0.03256860375404358,
0.027162941172719002,
0.018272342160344124,
0.022528154775500298,
-0.015314947813749313,
0.010404755361378193,
-0.06062060967087746,
0.016808820888400078,
0.008963506668806076,
-0.02763710729777813,
-0.0085953613743186,
-0.0183535348623991,
0.10647033154964447,
0.0471980944275856,
-0.02533952333033085,
-0.056127727031707764,
0.025644240900874138,
-0.005492673721164465,
-0.02148592099547386,
-0.006018115673214197,
-0.0044497218914330006,
-0.03206074982881546,
0.013861761428415775,
-0.040371425449848175,
-0.027504976838827133,
-0.01497887447476387,
-0.023022020235657692,
0.005921455565840006,
0.060729872435331345,
-0.010404672473669052,
0.031220626085996628,
-0.007579532451927662,
-0.022141849622130394,
-0.011582953855395317,
-0.04475098475813866,
-0.06848466396331787,
0.018861964344978333,
0.03835673630237579,
-0.004297382663935423,
0.05890824645757675,
-0.050847090780735016,
-0.004963732790201902,
-0.01297207735478878,
-0.05555874481797218,
0.027537373825907707,
0.035192981362342834,
0.05751827731728554,
-0.014552916400134563,
0.06274823844432831,
-0.03733639419078827,
0.007824326865375042,
-0.04408305510878563,
-0.027625227347016335,
-0.056529439985752106,
-0.01749277114868164,
0.014285433106124401,
-0.026198578998446465,
0.005266804713755846,
0.01356567069888115,
0.007848897017538548,
0.016039051115512848,
0.03397880122065544,
-0.0075773983262479305,
0.03946835175156593,
-0.006306083407253027,
0.01677432283759117,
-0.036606721580028534,
-0.009539883583784103,
0.03853003680706024,
-0.06503798812627792,
-0.012490767054259777,
-0.008872395381331444,
-0.07340271025896072,
0.03506976366043091,
-0.023805642500519753,
-0.020851008594036102,
-0.008864056318998337,
-0.0005468703457154334,
0.0639321357011795,
0.013612684793770313,
0.01758628524839878,
0.03248828276991844,
0.010202477686107159,
0.023743335157632828,
0.010972321033477783,
0.012354059144854546,
0.06163672357797623,
0.000501602073200047,
0.03932199627161026,
0.03660569339990616,
-0.019285662099719048,
-0.01713738404214382,
-0.02378256246447563,
-0.013602177612483501,
-0.019065286964178085,
-0.2852083444595337,
0.06394973397254944,
-0.021433010697364807,
-0.032757874578237534,
0.04389862343668938,
-0.021786341443657875,
-0.0008498609531670809,
-0.019372055307030678,
-0.030656185001134872,
0.021736759692430496,
-0.02776257134974003,
-0.016822051256895065,
-0.003979543689638376,
0.019489919766783714,
0.02078292891383171,
0.011524946428835392,
-0.008810923434793949,
-0.056171804666519165,
-0.011530882678925991,
0.03733047842979431,
-0.000293489545583725,
-0.01995122991502285,
0.025520728901028633,
0.01410304382443428,
0.00404041213914752,
0.05266644433140755,
-0.09075888246297836,
0.051632314920425415,
-0.04980706050992012,
-0.04739619418978691,
0.0212820116430521,
-0.03609336540102959,
0.0263116005808115,
0.0056971232406795025,
-0.01839352957904339,
-0.0009686998091638088,
0.02873145043849945,
0.022499481216073036,
0.007641003001481295,
0.010995867662131786,
-0.05500691011548042,
-0.025186071172356606,
-0.012718240730464458,
-0.046641554683446884,
0.09416521340608597,
-0.004848741460591555,
-0.07397816330194473,
-0.002716217190027237,
-0.006205988582223654,
0.08128827810287476,
-0.03490336239337921,
-0.022505350410938263,
0.0015583531931042671,
0.017527414485812187,
-0.005440365523099899,
-0.02754255384206772,
-0.012736868113279343,
0.01712963730096817,
-0.032977163791656494,
-0.04181518778204918,
0.00158760417252779,
-0.054082270711660385,
0.000030772655009059235,
-0.03661610186100006,
0.001090268255211413,
-0.05433865264058113,
-0.06886786222457886,
-0.03961159661412239,
0.05975304916501045,
0.03943326696753502,
-0.047339294105768204,
0.03142935782670975,
0.010300613939762115,
-0.09645717591047287,
-0.024850282818078995,
-0.04864230006933212,
-0.006983576808124781,
-0.033089529722929,
-0.040453244000673294,
0.03409092128276825,
-0.043264929205179214,
-0.0467393733561039,
0.00039123406168073416,
0.007699120789766312,
0.005219654645770788,
-0.02976604551076889,
0.033484503626823425,
-0.018784809857606888,
-0.048023004084825516,
-0.003630996448919177,
0.06939392536878586,
-0.057378627359867096,
-0.03462323918938637,
0.01780533976852894,
-0.014247411862015724,
0.01773175038397312,
-0.0023440122604370117,
-0.003575688460841775,
0.0035249919164925814,
0.027189388871192932,
0.07165543735027313,
-0.042374592274427414,
0.0006266896962188184,
-0.03663254529237747,
-0.019523335620760918,
-0.0019110420253127813,
-0.048656824976205826,
0.0388946495950222,
0.0072138248942792416,
0.06022052466869354,
0.0005638851434923708,
0.010294266045093536,
0.0018547317013144493,
-0.04648163542151451,
-0.02370765618979931,
0.014903302304446697,
0.02195269986987114,
-0.010019276291131973,
0.04275057092308998,
-0.018283143639564514,
-0.032782431691884995,
0.011101730167865753,
0.015356586314737797,
-0.0060852933675050735,
-0.06728310883045197,
-0.03383011743426323,
0.009689555503427982,
-0.022600874304771423,
0.02624853514134884,
0.00039667627424933016,
-0.024579044431447983,
0.026893995702266693,
0.03442689776420593,
-0.022164661437273026,
0.03799466788768768,
-0.02738887071609497,
-0.05228393152356148,
-0.017288994044065475,
0.002911834977567196,
0.0015862865839153528,
-0.030561545863747597,
0.005467412993311882,
-0.0011875026393681765,
0.03869215026497841,
0.04267548769712448,
-0.002062838990241289,
0.017374742776155472,
0.0025535118766129017,
0.028835665434598923,
-0.026103591546416283,
-0.004829059354960918,
-0.03945442661643028,
0.005472921300679445,
-0.028374170884490013,
-0.05021040514111519,
-0.0199904628098011,
0.01919052004814148,
0.0009414270170964301,
0.01439553964883089,
-0.011647425591945648,
0.013541271910071373,
-0.06355533003807068,
0.02403501607477665,
0.022733891382813454,
-0.009666559286415577,
0.05598680302500725,
-0.004390772432088852,
0.030465668067336082,
-0.0043013738468289375,
-0.020945588126778603,
-0.004233438987284899,
0.040448907762765884,
-0.06296110153198242,
-0.0391150638461113,
-0.006672890856862068,
0.017140433192253113,
0.0139823779463768,
0.0458800382912159,
0.014652388170361519,
0.04148029163479805,
0.004594234749674797,
-0.012706936337053776,
0.014096145518124104,
0.015880731865763664,
0.0589764341711998,
0.017039738595485687,
-0.021447228267788887,
0.003416473977267742,
0.008355788886547089,
-0.03210509195923805,
-0.013983095996081829,
0.01330612599849701,
-0.034923259168863297,
0.018302809447050095,
-0.024240873754024506,
-0.06970714777708054,
0.034316401928663254,
0.01107192225754261,
0.029894012957811356,
0.03310569375753403,
-0.02123655006289482,
-0.012812386266887188,
-0.013502688147127628,
0.03899014741182327,
0.03624752536416054,
-0.044914111495018005,
-0.02392752841114998,
-0.019666040316224098,
0.012211625464260578,
0.005153617821633816,
0.023381870239973068,
-0.07436764240264893,
-0.03113901987671852,
-0.031817272305488586,
0.015711825340986252,
-0.01885562390089035,
-0.03319283202290535,
-0.026021558791399002,
0.005953972227871418,
-0.01623346097767353,
0.01977585256099701,
0.014572232030332088,
0.034311920404434204,
0.0015197572065517306,
0.001329204998910427,
0.026092499494552612,
-0.004589012358337641,
-0.03970566391944885,
0.007681125774979591,
-0.00015368936874438077,
0.028325935825705528,
-0.008960557170212269,
0.045699041336774826,
0.009615211747586727,
-0.00632874621078372,
-0.02768685854971409,
-0.02133166417479515,
0.010749537497758865,
-0.03957083448767662,
0.032698556780815125,
0.026201756671071053,
0.014493568800389767,
-0.01578674092888832,
0.008144998922944069,
-0.029474927112460136,
0.013224072754383087,
-0.03674669191241264,
-0.014588994905352592,
0.017053043469786644,
0.06444191932678223,
0.025392893701791763,
0.03360410034656525,
0.004527215845882893,
-0.058585938066244125,
0.04476218670606613,
-0.040837667882442474,
-0.051447201520204544,
-0.03928828239440918,
-0.03512076660990715,
0.021724948659539223,
0.06012462452054024,
0.02339872717857361,
-0.0657762810587883,
0.02892255038022995,
0.05492736026644707,
0.005183363799005747,
0.05015091970562935,
-0.0036454484798014164,
0.02953886054456234,
-0.041345153003931046,
-0.030536221340298653,
-0.09306847304105759,
0.009832789190113544,
0.04872533306479454,
-0.008062743581831455,
-0.004692932590842247,
0.005316521972417831,
0.004438088741153479,
0.015147625468671322,
-0.04547926038503647,
-0.046080589294433594,
0.03923969343304634,
-0.02008941024541855,
0.022317999973893166,
-0.007735842373222113,
-0.06611837446689606,
0.023813722655177116,
0.040299832820892334,
-0.04305461794137955,
-0.03457225486636162,
-0.04557765647768974,
0.051882822066545486,
-0.010968135669827461,
0.0622488372027874,
-0.01823083683848381,
-0.05869757756590843,
0.06894282251596451,
0.016285069286823273,
0.04361259564757347,
0.034375470131635666,
-0.0020855539478361607,
0.0223291777074337,
0.03343634307384491,
0.01896061934530735,
0.017420059069991112,
0.031131086871027946,
-0.012227817438542843,
-0.015299295075237751,
0.02224898152053356,
0.014498220756649971,
0.008451772853732109,
-0.04828852042555809,
0.06911575794219971,
0.013272516429424286,
-0.04409237578511238,
-0.05195162445306778,
0.02521166205406189,
-0.006088227033615112,
-0.0039053636137396097,
-0.02903733216226101,
0.008092112839221954,
-0.011933304369449615,
0.05054619908332825,
-0.02028392069041729,
0.005832668859511614,
0.0696943998336792,
-0.023053402081131935,
-0.009747530333697796,
-0.004609642084687948,
0.0689065232872963,
0.0952034518122673,
0.02777016907930374,
-0.03375481069087982,
0.0576862171292305,
-0.0004462521173991263,
-0.03003019280731678,
0.007927404716610909,
-0.009844798594713211,
0.01786290481686592,
-0.004558848217129707,
-0.029088370501995087,
0.06496524065732956,
-0.04228341206908226,
0.0796351209282875,
-0.006315665319561958,
-0.019484005868434906,
-0.030449144542217255,
-0.03234941512346268,
0.036908138543367386,
0.04424179717898369,
0.025765640661120415,
0.04879261925816536,
-0.040383681654930115,
-0.018188640475273132,
0.020654603838920593,
0.006912701763212681,
-0.019503023475408554,
0.021539263427257538,
-0.023663904517889023,
0.017736179754137993,
-0.0016351958038285375,
0.037086427211761475,
0.06904306262731552,
-0.02692665159702301,
0.00418622512370348,
-0.018506741151213646,
0.018211601302027702,
-0.024898871779441833,
0.022339897230267525,
0.007246825844049454,
-0.002002555411309004,
-0.014302078634500504,
-0.062185872346162796,
-0.014737357385456562,
0.012990172952413559,
-0.03871341049671173,
0.0003024948528036475,
0.009908360429108143,
0.002867888193577528,
0.004715742543339729,
-0.001051899860613048,
-0.021217703819274902,
-0.024441098794341087,
-0.06275387108325958,
-0.07079283148050308,
-0.06134527549147606,
-0.047972217202186584,
-0.004808888770639896,
-0.013210226781666279,
-0.025075647979974747,
-0.015625514090061188,
-0.050707872956991196,
-0.055861685425043106,
0.023008981719613075,
-0.04616382718086243,
0.02674969471991062,
-0.01608484983444214,
0.05072692036628723,
-0.0031235895585268736,
0.02264045737683773,
0.039773356169462204,
0.00424042996019125,
-0.015288736671209335,
-0.007770402356982231,
0.01231578178703785,
0.04694562777876854,
0.0029968111775815487,
-0.013438712805509567,
-0.06922043114900589,
0.030379315838217735,
0.020522380247712135,
0.025631312280893326,
-0.0733523741364479,
0.00488000363111496,
0.0388357937335968,
0.00760727608576417,
0.04803313687443733,
-0.023141423240303993,
-0.0005294161383062601,
0.0170892383903265,
0.029150741174817085,
-0.01777053251862526,
0.0006951863178983331,
0.04561367258429527,
-0.017155721783638,
0.060013506561517715,
0.04808899387717247,
0.019319996237754822,
-0.02932882122695446,
-0.0046337987296283245,
-0.014336259104311466,
0.017806902527809143,
-0.019238341599702835,
-0.030686233192682266,
-0.05880702659487724,
-0.080760657787323,
-0.047109030187129974,
0.016788359731435776,
-0.018991364166140556,
-0.0253765806555748,
0.016656147316098213,
0.0032234201207756996,
-0.03069130890071392,
0.01642697863280773,
-0.043763626366853714,
0.034098513424396515,
-0.019221113994717598,
-0.03436674550175667,
-0.021528832614421844,
0.04416841268539429,
0.02574920654296875,
0.0192805714905262,
0.038191623985767365,
-0.03942826762795448,
-0.0175225380808115,
-0.005105451215058565,
0.024532126262784004,
0.0642688050866127,
0.019865239039063454,
0.02694481797516346
] | [
-0.04790573939681053,
-0.012875142507255077,
0.009099500253796577,
-0.049746736884117126,
0.08800142258405685,
-0.060373563319444656,
-0.022746602073311806,
0.013844402506947517,
-0.0010134077165275812,
-0.002925941487774253,
0.015637878328561783,
-0.026356574147939682,
-0.002617713063955307,
-0.005572950467467308,
0.06567833572626114,
-0.016034724190831184,
-0.04618439823389053,
-0.0347292385995388,
-0.03289768472313881,
0.06688102334737778,
-0.031050553545355797,
-0.025849366560578346,
-0.005087650381028652,
-0.057275574654340744,
-0.016137603670358658,
0.018967201933264732,
0.0628884807229042,
0.0026877480559051037,
-0.0333336740732193,
-0.2167966067790985,
0.010413591749966145,
-0.014365668408572674,
-0.00674362201243639,
0.009497507475316525,
0.013468378223478794,
0.02988901175558567,
0.04469313099980354,
-0.034059785306453705,
0.024507101625204086,
0.03788638487458229,
0.03171032667160034,
0.005436503794044256,
-0.0658799484372139,
-0.0006117899320088327,
0.020629173144698143,
0.007870975881814957,
-0.02063613384962082,
-0.009738518856465816,
0.02915259264409542,
0.040667008608579636,
-0.06155939772725105,
0.010684754699468613,
0.009471236728131771,
-0.04683270677924156,
0.002970132976770401,
0.024090563878417015,
0.04123173654079437,
0.06927134841680527,
0.010902399197220802,
0.04007841646671295,
0.020198414102196693,
0.02010911889374256,
-0.15398825705051422,
0.10462254285812378,
0.0422898530960083,
0.016142722219228745,
-0.039558861404657364,
-0.025711199268698692,
-0.023994212970137596,
0.08225787431001663,
-0.04656338319182396,
-0.013683272525668144,
-0.06619894504547119,
0.07915683090686798,
-0.006792769767343998,
-0.01081008929759264,
-0.023151790723204613,
-0.0005364636890590191,
0.019651465117931366,
-0.036410026252269745,
-0.04471295699477196,
-0.0009538020822219551,
-0.032414816319942474,
-0.014665193855762482,
-0.045170024037361145,
0.040700990706682205,
-0.019620796665549278,
0.0494677759706974,
0.008540252223610878,
0.051688794046640396,
0.024244820699095726,
0.010167957283556461,
0.06002255901694298,
0.028675813227891922,
-0.09141100198030472,
-0.026413938030600548,
0.013862690888345242,
0.02026258409023285,
0.016931070014834404,
0.3821374177932739,
0.007806576322764158,
-0.04966309666633606,
0.02832723781466484,
0.05417856201529503,
0.031156664714217186,
-0.017904004082083702,
0.00014925896539352834,
-0.030364850535988808,
0.04364868998527527,
-0.009316095151007175,
-0.001883799210190773,
-0.03224329650402069,
0.04475477337837219,
-0.07414762675762177,
0.002033970784395933,
0.014337815344333649,
0.027060260996222496,
0.015740403905510902,
-0.03903032839298248,
0.0164644755423069,
-0.013619920238852501,
-0.021965159103274345,
0.0375552736222744,
0.012486468069255352,
0.035176947712898254,
0.00984466914087534,
0.017854856327176094,
0.06538684666156769,
0.021376654505729675,
0.041774146258831024,
0.05052497237920761,
-0.02377724088728428,
-0.061707064509391785,
0.022876162081956863,
0.001733775483444333,
0.020242393016815186,
0.03325476869940758,
-0.05743328481912613,
-0.03647903352975845,
0.008381602354347706,
-0.008821102790534496,
-0.054285142570734024,
-0.002564758760854602,
0.023423021659255028,
-0.011041581630706787,
0.08996789902448654,
-0.015112965367734432,
-0.04505452141165733,
-0.022391125559806824,
-0.06268253177404404,
0.010522407479584217,
0.041569001972675323,
-0.004821553826332092,
-0.059937234967947006,
-0.02847888134419918,
0.006690244656056166,
0.09350612014532089,
-0.04171343147754669,
-0.07127849012613297,
-0.01629636250436306,
-0.03122318722307682,
-0.06556854397058487,
-0.02170887403190136,
0.0782155990600586,
0.049289554357528687,
-0.09017129987478256,
-0.03740209713578224,
-0.0012441303115338087,
0.026196982711553574,
-0.05162281170487404,
0.011201659217476845,
-0.03163137659430504,
-0.030205750837922096,
-0.015208514407277107,
0.033196426928043365,
-0.029342902824282646,
-0.029857371002435684,
0.006662688218057156,
0.046803489327430725,
0.01797560043632984,
-0.004849718417972326,
-0.037094976752996445,
-0.05240970477461815,
0.008644136600196362,
-0.0623280368745327,
-0.06487790495157242,
-0.08186013251543045,
0.05272172391414642,
-0.021635593846440315,
-0.007967489771544933,
-0.011345431208610535,
0.008847254328429699,
-0.05986267328262329,
0.04625105485320091,
-0.016568172723054886,
0.002751073334366083,
-0.012943289242684841,
0.00841111596673727,
-0.01106214988976717,
-0.03391693904995918,
0.037812065333127975,
0.021362846717238426,
-0.030004240572452545,
0.003315037116408348,
-0.07019781321287155,
0.006506685167551041,
0.07285705953836441,
-0.0384381078183651,
0.056785400956869125,
0.038584865629673004,
-0.039770547300577164,
0.006780372001230717,
-0.0037727337330579758,
0.01185085903853178,
-0.023806296288967133,
-0.04345256835222244,
-0.009567002765834332,
-0.016683926805853844,
0.06448247283697128,
0.05127592384815216,
-0.049992430955171585,
-0.023653870448470116,
-0.010061949491500854,
-0.3506607711315155,
-0.026235677301883698,
-0.016247862949967384,
-0.012234102934598923,
0.03031351789832115,
-0.04093819856643677,
0.005861212033778429,
-0.0021442407742142677,
0.02182890474796295,
0.0542430616915226,
0.08612024039030075,
-0.03255261480808258,
0.02348543144762516,
-0.097139872610569,
-0.0006124171777628362,
0.04469725489616394,
0.007633117958903313,
-0.020622529089450836,
-0.028072530403733253,
0.03369881585240364,
0.01865084283053875,
-0.05686115473508835,
-0.03627041354775429,
-0.03696427866816521,
0.02589799091219902,
-0.020373109728097916,
0.09389486163854599,
0.022863246500492096,
0.0814376100897789,
-0.05002794414758682,
0.03657035902142525,
0.010297682136297226,
0.015389331616461277,
-0.12231273949146271,
-0.031433332711458206,
-0.005273285321891308,
0.023499498143792152,
0.03737092763185501,
0.021791018545627594,
0.003930576145648956,
-0.019048530608415604,
-0.01835555210709572,
-0.03914041817188263,
-0.03719927370548248,
0.008313612081110477,
0.017288297414779663,
-0.036799356341362,
-0.03704100847244263,
0.006233969237655401,
0.06441284716129303,
0.013570097275078297,
0.021559176966547966,
0.0025896327570080757,
0.04043758288025856,
0.021759018301963806,
-0.02229800820350647,
-0.04323961213231087,
0.004498652648180723,
0.03957054764032364,
-0.003981500864028931,
-0.003997508902102709,
0.036097362637519836,
0.05246204510331154,
-0.08013665676116943,
0.011010905727744102,
0.004018289037048817,
0.004690846893936396,
0.012989805079996586,
0.0638313814997673,
-0.020944833755493164,
-0.011738073080778122,
0.08188702911138535,
-0.015251807868480682,
0.055341094732284546,
0.011674671433866024,
0.042698878794908524,
-0.02702108398079872,
0.03671250864863396,
0.03138240799307823,
-0.007445144467055798,
0.051673524081707,
-0.018739355728030205,
0.07639289647340775,
-0.02332465723156929,
0.004742298740893602,
0.05406618118286133,
0.019955402240157127,
-0.04539300501346588,
0.06820914894342422,
0.015775468200445175,
-0.001566433347761631,
-0.018395373597741127,
-0.02261575311422348,
-0.027599984779953957,
0.06562071293592453,
-0.02053571119904518,
-0.2698834538459778,
0.021860690787434578,
0.02235528640449047,
0.04126512631773949,
-0.010003011673688889,
-0.010724842548370361,
0.04239363968372345,
-0.041742999106645584,
-0.0006433325470425189,
0.01809825375676155,
0.022586101666092873,
0.024079078808426857,
-0.009474885649979115,
0.012236091308295727,
0.01224521640688181,
0.0011482244590297341,
0.058732908219099045,
0.05315418168902397,
0.024896390736103058,
0.01934213377535343,
0.007856444455683231,
-0.042703062295913696,
0.1798555701971054,
0.014451422728598118,
0.020709019154310226,
0.04305173084139824,
-0.03121672198176384,
0.009352822788059711,
0.06308623403310776,
0.005643107462674379,
-0.011966977268457413,
0.019319916144013405,
-0.006925341673195362,
0.03666982054710388,
0.03919050842523575,
-0.05307214334607124,
-0.03937734290957451,
0.06343162804841995,
0.02115454524755478,
-0.04715462028980255,
-0.04326691851019859,
0.04751703143119812,
-0.031248709186911583,
0.0061323801055550575,
0.04899251088500023,
-0.0023657416459172964,
-0.009331032633781433,
-0.023032929748296738,
-0.059871166944503784,
0.00024827371817082167,
-0.040949419140815735,
-0.026585852727293968,
-0.006964601576328278,
-0.030435597524046898,
0.012278256006538868,
0.07639354467391968,
0.004421229008585215,
-0.049744125455617905,
0.029829656705260277,
0.01479839812964201,
-0.02396007999777794,
-0.07139644771814346,
0.10116725414991379,
0.013383502140641212,
-0.01013955008238554
] | [
0.018082091584801674,
0.06184227392077446,
-0.029832903295755386,
0.006323014385998249,
-0.002713624620810151,
-0.017338288947939873,
-0.020792154595255852,
0.0029160850681364536,
-0.015070008113980293,
0.004742380231618881,
-0.048942118883132935,
0.0004174001223873347,
0.08109287172555923,
0.004753354471176863,
0.0025219256058335304,
0.0012446537148207426,
-0.015439881943166256,
0.03664105758070946,
0.006467065308243036,
-0.010227364487946033,
-0.02597121149301529,
0.011031453497707844,
0.015538749285042286,
-0.008437107317149639,
-0.023456603288650513,
0.00581851601600647,
-0.012491847388446331,
-0.01581236906349659,
-0.015321854501962662,
-0.12595631182193756,
-0.01457043457776308,
-0.03833352029323578,
-0.017870403826236725,
0.01403732132166624,
-0.0014629436191171408,
0.016916390508413315,
0.031056446954607964,
0.014134502038359642,
-0.027952510863542557,
0.04818311333656311,
0.022533608600497246,
0.0061115543358027935,
-0.009892523288726807,
-0.00541641004383564,
0.008667896501719952,
0.004698064643889666,
-0.03876874968409538,
-0.023828022181987762,
0.011219077743589878,
-0.018996354192495346,
-0.06359973549842834,
-0.012816418893635273,
0.002058781450614333,
0.003352465108036995,
-0.016930120065808296,
-0.007547821383923292,
-0.009699512273073196,
-0.0021298243664205074,
0.007342339493334293,
-0.021609583869576454,
-0.0026959069073200226,
-0.024287395179271698,
-0.03847337141633034,
-0.03231927007436752,
-0.010389498434960842,
-0.04260736331343651,
-0.022996801882982254,
0.03968501091003418,
0.006910454481840134,
0.02501549944281578,
-0.028285423293709755,
0.05094213783740997,
-0.08578913658857346,
-0.004075180273503065,
-0.03004196286201477,
0.01590227149426937,
0.0187231432646513,
-0.01852387748658657,
-0.010648963041603565,
-0.005973268765956163,
-0.049001265317201614,
-0.004836148116737604,
0.0001234148076036945,
-0.019860371947288513,
-0.0008590625948272645,
0.04158034920692444,
0.008210827596485615,
-0.009181723929941654,
-0.002787017961964011,
0.008154630661010742,
0.009059890173375607,
0.0012509257066994905,
0.0033974279649555683,
0.005601221229881048,
-0.06803262233734131,
-0.01682715304195881,
0.015411888249218464,
-0.00292228814214468,
0.028086911886930466,
0.8192921876907349,
0.013021101243793964,
-0.012234793975949287,
-0.005363197065889835,
0.013459167443215847,
-0.018049968406558037,
-0.01430994737893343,
0.01970778964459896,
0.049347955733537674,
0.0072932979092001915,
-0.024961261078715324,
-0.00014694056881126016,
-0.0036072726361453533,
-0.0001005485828500241,
-0.0055643110536038876,
0.008453750051558018,
0.06933268904685974,
0.018383599817752838,
0.0067661479115486145,
-0.03015517070889473,
0.012723165564239025,
0.011202332563698292,
-0.022166166454553604,
-0.02976890653371811,
0.005841042380779982,
0.0041054850444197655,
-0.17225998640060425,
0.03185901418328285,
-7.441714576378133e-33,
0.035141345113515854,
-0.016488006338477135,
0.0355708934366703,
-0.009164564311504364,
0.03190489113330841,
0.027857333421707153,
-0.011474066413939,
0.00783432088792324,
-0.04078371077775955,
-0.02193802408874035,
-0.00012405402958393097,
-0.014341676607728004,
0.00536435516551137,
-0.009072670713067055,
-0.0038357616867870092,
-0.031276822090148926,
0.00010098746133735403,
-0.0046144514344632626,
-0.014157537370920181,
-0.012299470603466034,
0.028805045410990715,
0.07072752714157104,
0.009016463533043861,
0.044721074402332306,
-0.0008500462281517684,
0.03976543992757797,
-0.01158225629478693,
-0.002539954148232937,
-0.0026637036353349686,
-0.04748714715242386,
-0.02955305203795433,
0.01784363202750683,
-0.04057659953832626,
-0.04436557739973068,
0.012114944867789745,
-0.04518847540020943,
-0.0037367353215813637,
0.0048373993486166,
-0.04431026428937912,
-0.03449953719973564,
-0.013690771535038948,
0.00017074191418942064,
0.0010330671211704612,
-0.01721520535647869,
-0.028234045952558517,
-0.03215353935956955,
-0.00993814691901207,
-0.0017112233908846974,
-0.0024904455058276653,
0.002850185614079237,
0.004624196793884039,
0.0545368529856205,
0.020777253434062004,
-0.030142830684781075,
-0.02433832176029682,
-0.01440715417265892,
-0.010208647698163986,
-0.023861510679125786,
-0.011659207753837109,
0.025065952911973,
0.05865386873483658,
0.008522208780050278,
0.0036888441536575556,
0.02809029445052147,
0.033127907663583755,
-0.008782623335719109,
0.04132197052240372,
0.014186345972120762,
0.041597358882427216,
0.02045544423162937,
-0.03364206850528717,
0.05891136825084686,
0.004956360440701246,
-0.02326633594930172,
0.04165319353342056,
-0.03881242498755455,
-0.022415662184357643,
-0.01806589961051941,
0.04492204263806343,
0.02058466151356697,
-0.0019263449357822537,
-0.025178855285048485,
-0.0027464982122182846,
-0.015808463096618652,
-0.023233965039253235,
0.007147117983549833,
0.024406513199210167,
0.004474824760109186,
0.004043461289256811,
0.03458428010344505,
0.03997054323554039,
0.01841612160205841,
-0.024778053164482117,
-0.018882866948843002,
-0.03453793376684189,
7.013569411765916e-33,
0.031009739264845848,
-0.009578839875757694,
0.01595219038426876,
0.020970715209841728,
0.027026094496250153,
0.0198763906955719,
0.014954622834920883,
-0.008190066553652287,
-0.03507858142256737,
0.030855786055326462,
-0.004119253717362881,
0.01280821394175291,
-0.018317513167858124,
0.016778117045760155,
0.05422995984554291,
0.005615956615656614,
-0.01514219306409359,
-0.04643992334604263,
-0.009160182438790798,
0.007900933735072613,
-0.02328679896891117,
0.004179535899311304,
-0.00021900935098528862,
0.029025878757238388,
0.05148116126656532,
0.012260382063686848,
-0.012685460038483143,
-0.008996044285595417,
-0.01465639192610979,
0.005828402936458588,
-0.018801134079694748,
-0.0234287828207016,
-0.026804091408848763,
-0.03591092675924301,
-0.013488713651895523,
0.05214618518948555,
0.011122745461761951,
0.039298947900533676,
0.03074033372104168,
0.02364741824567318,
0.02057725563645363,
0.017030294984579086,
-0.0007961217779666185,
0.05502788722515106,
0.033366039395332336,
0.010009131394326687,
-0.014512797817587852,
0.0319896936416626,
-0.028272595256567,
0.04019741714000702,
-0.004925936926156282,
0.027084223926067352,
0.018417412415146828,
-0.0051644048653542995,
0.06275977939367294,
-0.06198647618293762,
-0.026547562330961227,
0.0547245517373085,
-0.05387995392084122,
-0.007282041013240814,
-0.043302275240421295,
0.007594576571136713,
-0.04983557015657425,
0.0325569324195385,
-0.03480605036020279,
0.00014737294986844063,
-0.0562039390206337,
-0.013134384527802467,
0.036077871918678284,
-0.02727968990802765,
0.02362176403403282,
-0.010934320278465748,
-0.009678609669208527,
0.005189992021769285,
-0.011060466058552265,
-0.026337571442127228,
-0.03204591944813728,
0.020264508202672005,
-0.024503380060195923,
0.07935777306556702,
0.013406841084361076,
0.001264275866560638,
0.03455089032649994,
-0.0036678386386483908,
0.024662211537361145,
0.022001318633556366,
-0.039260730147361755,
0.007416856940835714,
0.0226009301841259,
-0.005758290179073811,
0.015931639820337296,
-0.02924034185707569,
-0.015399484895169735,
0.006583961192518473,
-0.050796620547771454,
-1.2634115087450937e-8,
-0.023166926577687263,
-0.01440715417265892,
-0.02907712385058403,
0.00467861071228981,
0.01607387512922287,
0.043359413743019104,
-0.019629014655947685,
-0.003980706911534071,
-0.0231938436627388,
0.03019426017999649,
0.05379864200949669,
-0.009255126118659973,
0.030031533911824226,
0.007165481802076101,
-0.00261261616833508,
-0.022723820060491562,
0.0015861329156905413,
-0.005081738345324993,
0.030727293342351913,
0.022923201322555542,
-0.01614055223762989,
0.07423581928014755,
-0.041036345064640045,
0.0234100092202425,
0.027036277577280998,
-0.017255563288927078,
0.004672373179346323,
-0.08482126146554947,
-0.03676162287592888,
-0.004625333938747644,
0.026275664567947388,
-0.042421553283929825,
-0.02885436825454235,
-0.004770071245729923,
0.007142194546759129,
-0.0325450636446476,
0.020273521542549133,
0.038682177662849426,
0.03268573805689812,
0.012208284810185432,
0.021076973527669907,
0.008706733584403992,
-0.022202979773283005,
-0.028446607291698456,
-0.027090076357126236,
-0.02068941481411457,
-0.061196066439151764,
-0.025911567732691765,
0.004759776871651411,
-0.04804811254143715,
0.03370505943894386,
-0.002557736588642001,
0.014707425609230995,
0.024990029633045197,
0.05294778198003769,
0.015092206187546253,
0.024830790236592293,
-0.022546375170350075,
-0.031928651034832,
-0.010232225060462952,
0.026338938623666763,
0.018817422911524773,
-0.021121632307767868,
-0.010853737592697144
] | sed-using-environment-variables | https://markhneedham.com/blog/2015/08/13/sed-using-environment-variables |
false | 2015-01-10 08:39:15 | Python: gensim - clang: error: unknown argument: '-mno-fused-madd' [-Wunused-command-line-argument-hard-error-in-future] | [
"python"
] | [
"Python"
] | While working through https://www.kaggle.com/c/word2vec-nlp-tutorial/details/part-2-word-vectors[part 2 of Kaggle's bag of words tutorial] I needed to install the https://radimrehurek.com/gensim/[gensim] library and initially ran into the following error:
[source,text]
----
$ pip install gensim
...
cc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -arch i386 -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch x86_64 -arch i386 -pipe -I/Users/markneedham/projects/neo4j-himym/himym/build/gensim/gensim/models -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I/Users/markneedham/projects/neo4j-himym/himym/lib/python2.7/site-packages/numpy/core/include -c ./gensim/models/word2vec_inner.c -o build/temp.macosx-10.9-intel-2.7/./gensim/models/word2vec_inner.o
clang: error: unknown argument: '-mno-fused-madd' [-Wunused-command-line-argument-hard-error-in-future]
clang: note: this will be a hard error (cannot be downgraded to a warning) in the future
command 'cc' failed with exit status 1
an integer is required
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/Users/markneedham/projects/neo4j-himym/himym/build/gensim/setup.py", line 166, in <module>
include_package_data=True,
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/core.py", line 152, in setup
dist.run_commands()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 953, in run_commands
self.run_command(cmd)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/Users/markneedham/projects/neo4j-himym/himym/lib/python2.7/site-packages/setuptools/command/install.py", line 59, in run
return orig.install.run(self)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/command/install.py", line 573, in run
self.run_command('build')
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/command/build.py", line 127, in run
self.run_command(cmd_name)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/Users/markneedham/projects/neo4j-himym/himym/build/gensim/setup.py", line 71, in run
"There was an issue with your platform configuration - see above.")
TypeError: an integer is required
----------------------------------------
Cleaning up...
Command /Users/markneedham/projects/neo4j-himym/himym/bin/python -c "import setuptools, tokenize;__file__='/Users/markneedham/projects/neo4j-himym/himym/build/gensim/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/sb/6zb6j_7n6bz1jhhplc7c41n00000gn/T/pip-i8aeKR-record/install-record.txt --single-version-externally-managed --compile --install-headers /Users/markneedham/projects/neo4j-himym/himym/include/site/python2.7 failed with error code 1 in /Users/markneedham/projects/neo4j-himym/himym/build/gensim
Storing debug log for failure in /Users/markneedham/.pip/pip.log
----
The exception didn't make much sense to me but I came across https://kaspermunck.github.io/2014/03/fixing-clang-error/[a blog post which explained it:</p>]
____
The Apple LLVM compiler in Xcode 5.1 treats unrecognized command-line options as errors. This issue has been seen when building both Python native extensions and Ruby Gems, where some invalid compiler options are currently specified.
____
The author suggests this only became a problem with XCode 5.1 so I'm surprised I hadn't come across it sooner since I haven't upgraded XCode in a long time.
We can work around the problem by telling the compiler to treat extra command line arguments as a warning rather than an error ~~~bash export ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future ~~~
Now it installs with no problems. | null | null | [
-0.01178235374391079,
-0.0023813231382519007,
-0.018073663115501404,
0.05110806226730347,
0.0758628398180008,
0.0678618997335434,
0.012290176004171371,
0.024042215198278427,
0.032629139721393585,
-0.007208746392279863,
-0.018866246566176414,
0.007205607835203409,
-0.06224411725997925,
0.03788646683096886,
-0.014834489673376083,
0.049511928111314774,
0.044964391738176346,
0.010032730177044868,
-0.020029600709676743,
0.04443199560046196,
0.020424656569957733,
0.0520920604467392,
0.011898981407284737,
0.024365870282053947,
-0.001993440091609955,
0.01574014127254486,
0.036159999668598175,
-0.012197786942124367,
-0.04107217118144035,
-0.023549726232886314,
0.007864926010370255,
-0.0046692960895597935,
0.009155779145658016,
-0.03882961720228195,
0.02915945276618004,
0.01906917430460453,
-0.061400994658470154,
0.006721753627061844,
0.025138624012470245,
0.015257193706929684,
-0.054198820143938065,
0.012667575851082802,
-0.0006190396961756051,
0.0007739674765616655,
-0.04610145092010498,
0.018164101988077164,
-0.03982360661029816,
0.024044526740908623,
-0.013802616856992245,
-0.024476364254951477,
-0.07422228902578354,
0.018565036356449127,
-0.023028984665870667,
-0.029021278023719788,
0.021229617297649384,
0.027978086844086647,
0.00030360379605554044,
-0.09748053550720215,
0.024664927273988724,
-0.011121619492769241,
-0.0222820695489645,
-0.011975378729403019,
-0.0034091242123395205,
0.014928246848285198,
0.013533394783735275,
-0.04292867332696915,
-0.009222455322742462,
0.04475518316030502,
-0.06759839504957199,
-0.0435134582221508,
-0.016255125403404236,
0.04937107861042023,
-0.029770001769065857,
-0.003634878434240818,
0.012102166190743446,
-0.04437321051955223,
0.031462784856557846,
0.08429942280054092,
0.046748001128435135,
0.03295322135090828,
-0.01676788367331028,
0.015245840884745121,
0.04304119572043419,
0.05433022603392601,
-0.0085928775370121,
-0.01823776215314865,
-0.03687281161546707,
-0.007014263886958361,
-0.06442443281412125,
0.052805040031671524,
0.0099268713966012,
-0.04540800675749779,
0.005594761110842228,
-0.00818377174437046,
-0.002365485765039921,
0.04020439833402634,
0.007130611687898636,
0.005559748969972134,
0.0060891043394804,
0.0023674878757447004,
-0.04603414237499237,
-0.029875149950385094,
0.00974220596253872,
0.028812071308493614,
-0.07325901091098785,
-0.014984030276536942,
-0.008827172219753265,
-0.025979047641158104,
-0.006939904298633337,
0.00004898984479950741,
0.0023155317176133394,
0.028960008174180984,
0.02112351544201374,
0.004408224020153284,
-0.09148336946964264,
0.06449449062347412,
0.002214753068983555,
-0.01856030337512493,
-0.004659848753362894,
0.008485847152769566,
0.06862746924161911,
0.04888789355754852,
-0.021980034187436104,
0.07699712365865707,
0.007310658227652311,
0.07152975350618362,
-0.015905240550637245,
0.05109189823269844,
-0.02293693833053112,
-0.06309352070093155,
-0.038011617958545685,
0.07072284817695618,
-0.017005490139126778,
0.006023886613547802,
-0.01310713216662407,
-0.009702440351247787,
-0.031504034996032715,
0.015501891262829304,
0.04059591516852379,
0.027533071115612984,
0.005606565158814192,
-0.04404008015990257,
0.025944333523511887,
-0.0024586962535977364,
0.011665590107440948,
0.027237795293331146,
-0.016032667830586433,
-0.014676830731332302,
-0.018857238814234734,
0.00014524252037517726,
0.007027641870081425,
-0.007843425497412682,
0.06940891593694687,
-0.03226003423333168,
0.006665614899247885,
0.10096631199121475,
0.050773825496435165,
0.025377899408340454,
-0.017311105504631996,
0.030513368546962738,
0.05924132838845253,
0.028074422851204872,
-0.03274116292595863,
0.050810690969228745,
0.0036629759706556797,
-0.032545045018196106,
0.01639086939394474,
0.02968052215874195,
-0.039209332317113876,
0.021246591582894325,
-0.03768622502684593,
-0.0982898697257042,
0.050904981791973114,
-0.0194221343845129,
0.019701847806572914,
0.013655510731041431,
0.07782596349716187,
0.030056212097406387,
0.038471389561891556,
0.007788578514009714,
-0.07932531088590622,
0.02395298145711422,
-0.0007376663852483034,
0.0228748582303524,
0.012828781269490719,
-0.028595175594091415,
0.08394026756286621,
-0.008678867481648922,
-0.008538471534848213,
0.03648297116160393,
-0.06934688985347748,
-0.07247139513492584,
-0.02616792544722557,
-0.013148636557161808,
0.06780990958213806,
-0.012205397710204124,
-0.022790223360061646,
0.029845084995031357,
0.030332285910844803,
0.023002387955784798,
0.014861325733363628,
-0.002522835275158286,
0.021246997639536858,
-0.0436740443110466,
-0.07129789143800735,
0.0504547655582428,
0.016710849478840828,
-0.02641400322318077,
-0.04538749158382416,
0.02025180123746395,
-0.013819078914821148,
-0.0015221528010442853,
0.04856321960687637,
-0.011794189922511578,
0.08866800367832184,
-0.013022754341363907,
0.018914245069026947,
-0.022495344281196594,
0.02456822246313095,
-0.02582181803882122,
0.007906783372163773,
-0.021797742694616318,
-0.001353485626168549,
-0.01844504103064537,
-0.0246091578155756,
0.11992514878511429,
0.06041591614484787,
-0.029810795560479164,
-0.05089901387691498,
0.007922225631773472,
-0.017135685309767723,
-0.030059155076742172,
0.030598949640989304,
-0.011165917851030827,
-0.015806909650564194,
-0.021766209974884987,
-0.01756010763347149,
-0.0106730405241251,
0.020053429529070854,
-0.03929714486002922,
-0.007920421659946442,
0.07236775755882263,
-0.04063626378774643,
0.0423261821269989,
0.01914939098060131,
0.00010947407281491905,
-0.012164173647761345,
-0.041988469660282135,
-0.07342414557933807,
0.0024442134890705347,
0.034075330942869186,
0.004339773673564196,
0.06799197196960449,
-0.013300473801791668,
-0.03437172994017601,
-0.018483547493815422,
-0.050661541521549225,
0.014790315181016922,
0.054774608463048935,
0.040706817060709,
-0.003359641181305051,
0.03181111067533493,
-0.02408459410071373,
0.006076263263821602,
-0.014646241441369057,
-0.056581199169158936,
-0.052645716816186905,
-0.02236267365515232,
0.016447827219963074,
0.015014030039310455,
0.020415492355823517,
-0.010686208494007587,
-0.005347526632249355,
-0.018791642040014267,
0.03133003041148186,
-0.016675231978297234,
0.022811945527791977,
0.02157163992524147,
-0.008105484768748283,
-0.056732844561338425,
-0.0181647427380085,
0.04727999493479729,
-0.07033941894769669,
0.012494543567299843,
-0.0015644727973267436,
-0.027027079835534096,
0.026025965809822083,
-0.06959328800439835,
-0.02786155417561531,
-0.00751588586717844,
0.007376721128821373,
0.04283527284860611,
-0.026909593492746353,
0.0022562092635780573,
0.06814441829919815,
0.012242112308740616,
0.007753151468932629,
0.01827378198504448,
-0.025462688878178596,
0.03820496425032616,
0.021650247275829315,
0.06341443210840225,
0.01651838794350624,
-0.011203296482563019,
-0.01957780495285988,
-0.012721631675958633,
0.014865698292851448,
-0.04780930280685425,
-0.2544266879558563,
0.03609664738178253,
-0.02398867718875408,
-0.02192397601902485,
0.017865324392914772,
-0.028615543618798256,
0.0002805183466989547,
-0.024094976484775543,
-0.029035279527306557,
0.013559410348534584,
0.0012241457588970661,
-0.04674564674496651,
0.014588918536901474,
0.03671158850193024,
0.012714559212327003,
-0.005892958492040634,
-0.02717188559472561,
-0.07986219972372055,
-0.0076040360145270824,
0.024613285437226295,
0.02940438501536846,
-0.01995190419256687,
0.0006619730265811086,
0.04921790584921837,
0.020231077447533607,
0.016660470515489578,
-0.0678023099899292,
0.05200333520770073,
-0.05024117976427078,
-0.03102210722863674,
-0.01847856119275093,
-0.02257591113448143,
-0.005210412200540304,
0.0058457208797335625,
-0.017609186470508575,
0.007753741927444935,
0.013905346393585205,
0.009172482416033745,
0.014641017653048038,
0.020278194919228554,
-0.02178521268069744,
-0.04929111525416374,
0.033519234508275986,
-0.015453497879207134,
0.06596314162015915,
-0.023084132000803947,
-0.09706949442625046,
-0.01615833304822445,
-0.02533707022666931,
0.07425372302532196,
-0.05792953819036484,
-0.024004584178328514,
0.0015293452888727188,
0.056767892092466354,
-0.005947571247816086,
0.009456892497837543,
-0.01168731413781643,
-0.01298628468066454,
-0.040378425270318985,
-0.0232483372092247,
-0.02975449711084366,
-0.03791595622897148,
-0.022373827174305916,
-0.04223651811480522,
-0.02243047207593918,
-0.05826648324728012,
-0.07521983981132507,
-0.02822580747306347,
0.03355562686920166,
0.05166436731815338,
-0.06547494977712631,
-0.014375305734574795,
-0.014356017112731934,
-0.10691038519144058,
-0.026916436851024628,
-0.023113273084163666,
-0.0229644812643528,
0.018422817811369896,
0.03549512103199959,
0.050319574773311615,
-0.03646659851074219,
-0.05813174322247505,
0.006181657314300537,
0.002352061914280057,
-0.003550413064658642,
-0.009123965166509151,
0.020770259201526642,
-0.01076809037476778,
-0.0020253548864275217,
0.000622961379121989,
0.040377844125032425,
-0.0003698498767334968,
-0.028689369559288025,
-0.0342848114669323,
-0.005413833074271679,
-0.017114244401454926,
0.00686210673302412,
0.019373469054698944,
0.009543062187731266,
0.05499322712421417,
0.006230825092643499,
-0.04662258177995682,
-0.01632869243621826,
-0.049492351710796356,
-0.06063268333673477,
-0.007655434776097536,
-0.03727264702320099,
-0.009816168807446957,
0.025413624942302704,
0.025414252653717995,
-0.017487933859229088,
-0.0405198372900486,
0.046571481972932816,
-0.032538801431655884,
-0.04248718172311783,
0.007834442891180515,
0.023969262838363647,
0.03335767611861229,
0.04593227058649063,
-0.008239123970270157,
-0.05436953157186508,
0.011171946302056313,
-0.013605581596493721,
-0.025381553918123245,
-0.004836698994040489,
-0.01672382839024067,
-0.008092766627669334,
-0.020544197410345078,
-0.01706334389746189,
0.0004543679824564606,
-0.044321514666080475,
0.031556010246276855,
0.04686793312430382,
-0.013606427237391472,
0.04430510476231575,
-0.022949760779738426,
-0.025849221274256706,
-0.031010804697871208,
0.010428320616483688,
0.013605275191366673,
-0.05050039291381836,
-0.011940043419599533,
0.023701468482613564,
0.0010395027929916978,
0.049753982573747635,
0.0031916904263198376,
0.01826750673353672,
0.014557654969394207,
0.006631753407418728,
-0.006539830472320318,
0.02077973634004593,
-0.02427135407924652,
0.06792007386684418,
-0.03483641892671585,
-0.03382978215813637,
0.00662207929417491,
0.046225983649492264,
-0.033826228231191635,
-0.009361314587295055,
-0.03296583890914917,
0.0548318549990654,
-0.011015661992132664,
-0.026128798723220825,
0.0047925375401973724,
-0.0190004650503397,
0.04541947320103645,
0.010371269658207893,
-0.010072601027786732,
-0.01365769561380148,
-0.006929611321538687,
0.025218287482857704,
0.03025062009692192,
-0.038188427686691284,
-0.009342380799353123,
-0.011864877305924892,
-0.008068634197115898,
0.009997724555432796,
0.012601746246218681,
0.020442770794034004,
0.0011716687586158514,
-0.032556481659412384,
-0.005469182506203651,
0.03404926881194115,
0.018892329186201096,
0.048251621425151825,
0.012078024446964264,
-0.02645174041390419,
0.01167672872543335,
-0.03691877797245979,
-0.04158690944314003,
-0.032509591430425644,
0.001159006031230092,
0.008877966552972794,
0.011500698514282703,
-0.030062546953558922,
-0.05539393424987793,
0.022738395258784294,
0.04173075780272484,
0.009854094125330448,
-0.005579635500907898,
-0.01515199150890112,
0.006649620831012726,
-0.026242690160870552,
0.034042008221149445,
0.08841639757156372,
-0.057631995528936386,
-0.00945617537945509,
-0.01847236603498459,
0.004569664131850004,
-0.016381893306970596,
-0.016260746866464615,
-0.04810284078121185,
-0.020301414653658867,
-0.03021392785012722,
0.00956177432090044,
-0.01357102207839489,
-0.05577854812145233,
-0.024928657338023186,
0.01445510983467102,
-0.0002859852684196085,
-0.01409753318876028,
-0.004758946597576141,
0.031197547912597656,
-0.012230723164975643,
-0.023578520864248276,
0.024511942639946938,
-0.01572376862168312,
-0.0007252920186147094,
0.05468570441007614,
-0.002923161955550313,
0.032503582537174225,
-0.030042065307497978,
0.047729019075632095,
0.02026628516614437,
0.0004238237743265927,
0.012940988875925541,
-0.03121539019048214,
0.016643062233924866,
0.00007700394780840725,
0.016506485641002655,
0.025195801630616188,
-0.005733223631978035,
-0.04216240718960762,
0.03094855509698391,
-0.018080782145261765,
0.037827279418706894,
0.017755858600139618,
-0.01782367192208767,
-0.001917533460073173,
0.04298349469900131,
-0.0174089502543211,
0.04507176950573921,
-0.025833535939455032,
-0.015404460951685905,
0.047331370413303375,
-0.0545777790248394,
-0.049570996314287186,
-0.007715587038546801,
-0.03941997140645981,
0.015537775121629238,
0.048566266894340515,
0.017236826941370964,
-0.09506328403949738,
0.07478668540716171,
0.02949937805533409,
0.02574128657579422,
0.07613340765237808,
-0.01078997366130352,
0.0072242761962115765,
-0.027682844549417496,
-0.0560673251748085,
-0.10363826155662537,
-0.021210927516222,
0.044824399054050446,
-0.03160642087459564,
-0.03448379039764404,
-0.014377936720848083,
-0.02607508935034275,
0.012957984581589699,
-0.03541918843984604,
-0.03949367254972458,
0.02110065333545208,
-0.01771971955895424,
0.017009573057293892,
0.025690924376249313,
-0.015420502983033657,
0.029336348176002502,
0.04155544191598892,
-0.05045017972588539,
-0.008301938883960247,
-0.03667105361819267,
0.06239154934883118,
-0.02313077077269554,
0.0245565976947546,
-0.02140926755964756,
-0.028579825535416603,
0.07955919206142426,
0.05036872252821922,
0.04951884225010872,
0.029964007437229156,
-0.007171277422457933,
0.057228464633226395,
0.05274023115634918,
-0.003891596570611,
0.0078251538798213,
0.022921154275536537,
-0.014022661373019218,
-0.06443215906620026,
0.030761530622839928,
0.0018522831378504634,
-0.01212624553591013,
-0.031000947579741478,
0.0504198782145977,
0.0010551520390436053,
-0.030274758115410805,
-0.028621112927794456,
0.03218091279268265,
-0.049101997166872025,
-0.011093421839177608,
-0.055438801646232605,
0.007729124277830124,
-0.020418602973222733,
0.061010029166936874,
-0.0028245928697288036,
0.004945121239870787,
0.05981862172484398,
-0.017792942002415657,
-0.024269772693514824,
0.012021097354590893,
0.07529332488775253,
0.05964658409357071,
0.020824970677495003,
0.01892152987420559,
0.08461329340934753,
-0.03700343891978264,
-0.0507354699075222,
-0.022386303171515465,
-0.02762061543762684,
-0.013535819947719574,
-0.01879996247589588,
0.0028927356470376253,
0.06321552395820618,
-0.022050756961107254,
0.08010336011648178,
-0.032721202820539474,
0.017947593703866005,
-0.011599540710449219,
0.0186364334076643,
0.02185199037194252,
0.04285738617181778,
0.03445661440491676,
0.037653516978025436,
-0.011438160203397274,
-0.048653509467840195,
0.0036643475759774446,
0.001336163142696023,
-0.01794404350221157,
0.008705764077603817,
0.00687383534386754,
0.02635582722723484,
0.027657637372612953,
0.033541057258844376,
0.07396366447210312,
-0.02763376198709011,
-0.006307920906692743,
0.014479695819318295,
0.04304855316877365,
0.018120812252163887,
0.0320320725440979,
-0.03788401931524277,
-0.012871073558926582,
-0.00878349132835865,
-0.048485010862350464,
-0.019579976797103882,
-0.020792681723833084,
-0.02959631197154522,
0.02612362802028656,
-0.028320716693997383,
-0.009929843246936798,
0.02705952152609825,
-0.011734996922314167,
-0.006650685798376799,
-0.05504422262310982,
-0.03493589162826538,
-0.02658504992723465,
-0.0570162758231163,
0.014523200690746307,
-0.00711701437830925,
-0.013858986087143421,
-0.04691213369369507,
-0.009125909768044949,
-0.015472675673663616,
-0.029541244730353355,
0.019088229164481163,
-0.052430570125579834,
-0.03157840669155121,
0.018464870750904083,
-0.007862458005547523,
-0.01788441464304924,
0.030802717432379723,
0.05718892067670822,
-0.01221312303096056,
-0.00157364911865443,
0.007606438361108303,
0.028039904311299324,
0.03821402043104172,
0.024032240733504295,
0.05655975639820099,
-0.09880334138870239,
0.03125802055001259,
0.022589774802327156,
0.0317840501666069,
-0.05815763399004936,
-0.0008156803087331355,
0.037532612681388855,
-0.02626107819378376,
0.06700722128152847,
0.019314002245664597,
0.014020165428519249,
-0.04543348401784897,
-0.01060832105576992,
-0.033910587430000305,
0.029826145619153976,
0.04574625566601753,
-0.01731768622994423,
0.07501379400491714,
0.03470630943775177,
0.008083757944405079,
-0.008857638575136662,
-0.011111014522612095,
-0.011278290301561356,
-0.020964888855814934,
-0.0187809020280838,
-0.0099948113784194,
-0.05110979452729225,
-0.07961763441562653,
0.011228300631046295,
0.0028435555286705494,
-0.038450609892606735,
-0.017706142738461494,
0.015421616844832897,
0.0015897934790700674,
-0.046394772827625275,
0.04252425581216812,
-0.045641496777534485,
-0.03465830907225609,
-0.009829060174524784,
-0.021055147051811218,
-0.009952378459274769,
0.0558350533246994,
0.03189968317747116,
0.05451251193881035,
0.010692395269870758,
-0.03189627826213837,
0.012618882581591606,
-0.0030049034394323826,
0.023989103734493256,
0.024882957339286804,
-0.012817293405532837,
0.02416946552693844
] | [
-0.027383266016840935,
-0.024409092962741852,
-0.003395253559574485,
-0.023608090355992317,
0.03768040984869003,
-0.0502227321267128,
-0.0631718784570694,
0.018500052392482758,
-0.020468002185225487,
-0.044322602450847626,
0.030331263318657875,
-0.08049013465642929,
0.019116319715976715,
-0.003660104237496853,
0.10142458975315094,
0.019938400015234947,
-0.03490264341235161,
-0.0025751101784408092,
0.007567400578409433,
0.009204277768731117,
0.014481799677014351,
-0.008457684889435768,
-0.0014212420210242271,
-0.03277937322854996,
-0.03648557513952255,
0.06640548259019852,
0.02976900339126587,
-0.03341814875602722,
-0.005112202372401953,
-0.21798817813396454,
-0.015706021338701248,
-0.0004819049790967256,
0.018559863790869713,
-0.015895137563347816,
0.029781024903059006,
0.056141339242458344,
-0.022642893716692924,
0.003055847017094493,
-0.004905532579869032,
0.039154402911663055,
-0.011773038655519485,
0.013687274418771267,
-0.07262558490037918,
-0.018058426678180695,
0.07546772807836533,
0.005197042133659124,
-0.03479091078042984,
-0.009390700608491898,
-0.0070745619013905525,
-0.006491108797490597,
-0.03399955853819847,
0.0008071835618466139,
-0.0006186965620145202,
-0.003531292313709855,
-0.0084472531452775,
0.03263915702700615,
0.0520985871553421,
0.0735270082950592,
0.023711297661066055,
0.0046478197909891605,
-0.004732929170131683,
-0.015526277013123035,
-0.17944854497909546,
0.08941324055194855,
-0.010941456072032452,
0.03797262907028198,
-0.03758784756064415,
-0.04127577319741249,
-0.0517386794090271,
0.09606008976697922,
-0.01383768767118454,
-0.004575129598379135,
0.0019304222660139203,
0.05175557732582092,
-0.007378794718533754,
0.009657617658376694,
0.009710795246064663,
-0.02100878581404686,
0.0739569440484047,
-0.06431993842124939,
-0.02284364402294159,
-0.004981169477105141,
-0.06495218724012375,
-0.037003789097070694,
-0.017117461189627647,
0.03416328877210617,
-0.04728176072239876,
0.0698782280087471,
-0.0074394927360117435,
0.03418714553117752,
0.019082462415099144,
-0.006583385169506073,
0.03885212913155556,
0.04682844504714012,
-0.09288947284221649,
0.011775474064052105,
0.04873305559158325,
-0.006003197282552719,
-0.03812175989151001,
0.40363943576812744,
0.057933103293180466,
0.002577230567112565,
-0.005186311900615692,
0.027259521186351776,
0.025554001331329346,
-0.021716399118304253,
-0.06387033313512802,
-0.04867034777998924,
0.024164192378520966,
-0.044416215270757675,
0.014710525050759315,
-0.03442985936999321,
0.07554713636636734,
-0.06002620980143547,
0.019304370507597923,
-0.02483212947845459,
0.028734158724546432,
-0.003610496176406741,
-0.02220027893781662,
0.023397687822580338,
-0.03486444428563118,
-0.0039121531881392,
0.04540964588522911,
0.02728337235748768,
0.026364348828792572,
-0.001154121826402843,
0.02616444230079651,
0.05923570692539215,
0.05597459897398949,
0.011675362475216389,
0.024474292993545532,
0.028832048177719116,
-0.05510229989886284,
0.01191023737192154,
0.04073183983564377,
-0.0034388680942356586,
0.018416430801153183,
-0.01260235346853733,
-0.031576160341501236,
-0.01949894241988659,
-0.02354511246085167,
-0.040478408336639404,
-0.009199390187859535,
0.042366161942481995,
-0.03332066535949707,
0.09199140965938568,
-0.04433923587203026,
0.012689258903265,
-0.019592253491282463,
-0.004622626584023237,
0.003261128207668662,
0.03664145991206169,
0.028495345264673233,
-0.048165980726480484,
-0.0051299892365932465,
0.032308731228113174,
0.06495488435029984,
0.0070971236564219,
-0.0627264752984047,
-0.004746968857944012,
0.007767133414745331,
-0.05366409942507744,
-0.059289366006851196,
0.0596926212310791,
0.004305165261030197,
-0.08107253164052963,
-0.03480367362499237,
0.0315336212515831,
0.012647713534533978,
-0.0515272319316864,
0.04400458186864853,
-0.008785475045442581,
-0.007058799732476473,
0.0013252762146294117,
0.017280181869864464,
-0.023372508585453033,
-0.0038384031504392624,
-0.01196925900876522,
0.038816966116428375,
0.0398966521024704,
0.006988121662288904,
0.0008531165076419711,
-0.03691469132900238,
0.0038382390048354864,
-0.03607477620244026,
-0.08700499683618546,
-0.04396504536271095,
-0.02484608255326748,
-0.008457515388727188,
-0.06182629615068436,
-0.00400283420458436,
0.035129450261592865,
-0.02575644850730896,
0.029824187979102135,
-0.020516807213425636,
-0.0009549959795549512,
0.00945309642702341,
0.001072735176421702,
0.01648617908358574,
-0.08277073502540588,
0.022299835458397865,
0.03351912647485733,
0.02333022654056549,
0.006906934082508087,
-0.08402419090270996,
0.005509018898010254,
0.04143606126308441,
-0.05886492878198624,
0.06365624070167542,
0.0049525112845003605,
-0.024103552103042603,
-0.025019992142915726,
0.014822956174612045,
0.03826635330915451,
-0.02709013782441616,
0.006320650223642588,
-0.01805131882429123,
-0.01341345626860857,
0.013723218813538551,
0.05883820354938507,
-0.04216478392481804,
0.013239402323961258,
-0.08717719465494156,
-0.3723798096179962,
-0.018025917932391167,
-0.021498532965779305,
0.009290037676692009,
-0.027545982971787453,
-0.02067532017827034,
0.022799668833613396,
-0.021339939907193184,
-0.00646996358409524,
0.02017388492822647,
0.055801279842853546,
0.03143613040447235,
0.010140232741832733,
-0.08839942514896393,
0.015433104708790779,
0.028170982375741005,
-0.020736197009682655,
0.012239508330821991,
-0.016506850719451904,
0.029189100489020348,
-0.007015451323240995,
-0.02567829191684723,
-0.03840509057044983,
-0.06247735023498535,
-0.04011278226971626,
-0.03562966361641884,
0.1219504177570343,
0.045818086713552475,
0.05343950167298317,
-0.06380952149629593,
0.060700446367263794,
0.03040662780404091,
0.0016635298961773515,
-0.069843590259552,
0.01124147791415453,
0.0030876307282596827,
0.01762823946774006,
0.06512029469013214,
0.01200618501752615,
0.015169787220656872,
-0.045481182634830475,
0.0256488174200058,
-0.02606724575161934,
-0.01597251184284687,
0.015294400975108147,
0.002602574648335576,
-0.032112669199705124,
0.018503809347748756,
0.009795536287128925,
0.0553409680724144,
0.010422269813716412,
0.05654813349246979,
0.015480758622288704,
0.032107576727867126,
-0.009443051181733608,
-0.051817238330841064,
-0.07633133232593536,
-0.014560508541762829,
0.0053876549936831,
-0.0047879028134047985,
0.027560504153370857,
0.046344634145498276,
0.06303926557302475,
-0.07821378856897354,
-0.008607223629951477,
-0.0019624347332865,
0.01581580378115177,
-0.02133072540163994,
0.043246641755104065,
-0.015560497529804707,
0.015600754879415035,
0.12013167142868042,
-0.011007698252797127,
0.007723300252109766,
-0.00272562843747437,
0.01939406432211399,
-0.00015455168613698334,
-0.004390244372189045,
0.004993300884962082,
-0.01823059469461441,
0.03768733888864517,
-0.004956548102200031,
0.06429675221443176,
-0.003297399030998349,
-0.03418168053030968,
0.01873372308909893,
-0.014805370941758156,
-0.017542507499456406,
0.06240542605519295,
0.02036449685692787,
-0.023769300431013107,
-0.021133674308657646,
0.0012993477284908295,
-0.0329526849091053,
0.0784025564789772,
-0.003795754164457321,
-0.25876617431640625,
0.04633167386054993,
0.05915667489171028,
0.05039054900407791,
0.0054479301907122135,
-0.01317207794636488,
0.024885186925530434,
-0.08774974197149277,
-0.039179716259241104,
0.002874191151931882,
-0.02200877107679844,
0.04706661030650139,
0.004752566106617451,
-0.008801779709756374,
0.0008885744027793407,
-0.010985653847455978,
0.04924693703651428,
0.02115396037697792,
0.003208006964996457,
-0.012558044865727425,
0.059536974877119064,
-0.007177012972533703,
0.162033349275589,
0.004802009090781212,
-0.03982975333929062,
0.023584913462400436,
-0.011156775057315826,
0.025629810988903046,
0.05140898376703262,
0.016119658946990967,
-0.02831537462770939,
0.04134462773799896,
0.03187159076333046,
0.008547157980501652,
0.04194830730557442,
-0.019129469990730286,
-0.0004257661057636142,
-0.00483531691133976,
0.03325989097356796,
-0.006779734045267105,
-0.041767701506614685,
0.07165354490280151,
-0.03176932409405708,
0.035748858004808426,
0.040252216160297394,
-0.032938770949840546,
0.0367414616048336,
0.009994728490710258,
-0.03673548996448517,
0.014994719065725803,
-0.047375451773405075,
-0.027804693207144737,
-0.00783806573599577,
-0.00116528884973377,
0.00632018968462944,
0.013903267681598663,
-0.00015316583449020982,
-0.034510113298892975,
0.01522830966860056,
-0.0123823843896389,
-0.00691904965788126,
-0.04432598128914833,
0.10510937869548798,
-0.022058388218283653,
0.004599474836140871
] | [
0.016148127615451813,
0.0012781579280272126,
-0.021663270890712738,
0.002538577187806368,
-0.006797032430768013,
-0.046981051564216614,
-0.01745905727148056,
0.06556057929992676,
-0.036767397075891495,
-0.010166704654693604,
0.009746420197188854,
-0.025775544345378876,
0.026920439675450325,
-0.004228461999446154,
-0.015292367897927761,
-0.0025722957216203213,
-0.00724751828238368,
0.020121103152632713,
0.026889868080615997,
-0.01373626384884119,
-0.027142809703946114,
0.03657376021146774,
0.010201373137533665,
0.002695294562727213,
0.0032704342156648636,
0.02576490119099617,
-0.04406966269016266,
0.02793634869158268,
0.037865616381168365,
-0.11593028903007507,
-0.0038723705802112818,
-0.015854887664318085,
0.015069070272147655,
0.008854526095092297,
0.015603233128786087,
0.025167638435959816,
0.005589613225311041,
0.006926009431481361,
-0.03455005958676338,
-0.03125867247581482,
0.01005825400352478,
-0.011504366993904114,
0.0045060887932777405,
0.006203068420290947,
0.014264250174164772,
-0.00715846149250865,
-0.02849677950143814,
-0.019190870225429535,
-0.02549961768090725,
0.038912203162908554,
-0.05189230293035507,
-0.0014396698679775,
0.015945199877023697,
0.010393026284873486,
0.019575627520680428,
0.011715712025761604,
0.024346716701984406,
-0.013401164673268795,
0.03140571713447571,
-0.04597523435950279,
0.0071210311725735664,
-0.00031025707721710205,
-0.055935271084308624,
-0.02739308401942253,
-0.009832138195633888,
0.0134098120033741,
-0.014065270312130451,
0.0071618324145674706,
-0.00428905850276351,
0.008058234117925167,
-0.000790725986007601,
0.024876393377780914,
-0.03045964427292347,
-0.004537730943411589,
0.0034410571679472923,
0.02220279537141323,
0.04615116864442825,
-0.011966354213654995,
0.023818034678697586,
-0.02809053473174572,
-0.04377926141023636,
0.010241674259305,
0.014644477516412735,
-0.028395846486091614,
-0.005792761221528053,
0.012234545312821865,
0.007650909014046192,
-0.014891951344907284,
0.01984192244708538,
0.005750502459704876,
-0.012231490574777126,
-0.007489989046007395,
-0.005500969011336565,
0.03826281055808067,
-0.08343006670475006,
-0.021350478753447533,
0.04048164561390877,
-0.004899854771792889,
-0.006455870810896158,
0.8545113205909729,
-0.01887364126741886,
0.01462777890264988,
0.02628842368721962,
0.01070419605821371,
0.008351198397576809,
-0.006881652865558863,
0.019474109634757042,
-0.044168777763843536,
0.003796845907345414,
-0.009703178890049458,
-0.0030783256515860558,
-0.0076471068896353245,
0.04629885405302048,
-0.002874250989407301,
0.06350819766521454,
0.025551727041602135,
0.011474783532321453,
0.015373404137790203,
0.01229805126786232,
0.027111120522022247,
0.0032458037603646517,
-0.018536174669861794,
-0.009386615827679634,
0.027917470782995224,
0.0015729062724858522,
-0.18644475936889648,
0.02626199647784233,
-6.665048561058555e-33,
0.00749143585562706,
-0.024865033105015755,
0.004248110111802816,
0.03453382849693298,
0.05362027883529663,
-0.01426510140299797,
0.02055714651942253,
-0.015674499794840813,
-0.02334129437804222,
-0.012783517129719257,
-0.03976652771234512,
-0.030563589185476303,
-0.010396558791399002,
-0.011437367647886276,
0.019751686602830887,
-0.0131679130718112,
0.020129913464188576,
0.02588641457259655,
-0.014862298034131527,
0.038220591843128204,
0.03193635120987892,
0.04475494101643562,
0.018270405009388924,
-0.022915977984666824,
0.029975170269608498,
0.03134002164006233,
0.04657774791121483,
-0.012572793290019035,
0.01515246368944645,
-0.03961232677102089,
-0.03469057381153107,
0.003169373841956258,
0.011011384427547455,
-0.033821895718574524,
-0.010067479684948921,
-0.05756748840212822,
-0.05278297886252403,
0.007782252039760351,
-0.03115631826221943,
-0.020350074395537376,
-0.036618489772081375,
0.015084653161466122,
-0.03305215761065483,
-0.03455815836787224,
0.004415984731167555,
-0.029831692576408386,
0.03292711079120636,
0.04456988722085953,
-0.02132047712802887,
0.007947511970996857,
0.033461809158325195,
0.04090588912367821,
-0.019765624776482582,
0.027758924290537834,
0.01656777784228325,
-0.020326416939496994,
-0.033970385789871216,
-0.006976032163947821,
0.011786693707108498,
0.012932962737977505,
0.026681944727897644,
0.00810202769935131,
0.0033639848697930574,
0.02823857218027115,
0.006163736805319786,
-0.01647636853158474,
-0.004301893524825573,
0.012805773876607418,
0.016016345471143723,
0.03369211032986641,
-0.029502397403120995,
-0.024408167228102684,
-0.04005725681781769,
-0.02655729278922081,
0.0004304388421587646,
-0.034036945551633835,
0.02593429572880268,
-0.021680418401956558,
-0.010890303179621696,
0.01357218436896801,
0.00936867669224739,
0.00953272357583046,
-0.006376747041940689,
-0.03876131400465965,
-0.014428186230361462,
-0.01629592478275299,
0.03306402638554573,
-0.02583005093038082,
-0.04269048199057579,
0.018035177141427994,
0.02512422949075699,
0.0185224711894989,
0.006437865551561117,
-0.013103866949677467,
-0.012720268219709396,
6.426594389206469e-33,
0.012277714908123016,
-0.024034086614847183,
-0.012666622176766396,
-0.000510929967276752,
-0.029293524101376534,
-0.01969607174396515,
-0.009101387113332748,
-0.023280799388885498,
-0.010017775930464268,
0.011761569418013096,
-0.031859733164310455,
0.011538051068782806,
-0.01594819873571396,
0.01138403732329607,
0.05803828313946724,
0.0006216610199771821,
0.0053887818939983845,
0.012082920409739017,
0.03473556786775589,
0.011097600683569908,
0.009939693845808506,
0.02459465153515339,
-0.0052466667257249355,
0.03357097506523132,
0.0025195968337357044,
0.03880516439676285,
-0.015611119568347931,
0.02977118082344532,
-0.01469219010323286,
-0.02553122490644455,
0.017471320927143097,
0.008228398859500885,
-0.025531567633152008,
0.0021551598329097033,
0.012782547622919083,
0.03473246842622757,
-0.002543878275901079,
-0.0012657144106924534,
0.0347626619040966,
0.011377071961760521,
0.014156004413962364,
0.03702572360634804,
-0.006754787638783455,
0.0018527312204241753,
-0.024936480447649956,
0.024357467889785767,
0.016229107975959778,
-0.011939800344407558,
-0.006342646665871143,
0.001066500786691904,
0.005639287643134594,
0.017413122579455376,
0.012188808061182499,
0.021082254126667976,
-0.00514949718490243,
-0.0068834503181278706,
0.0060333386063575745,
0.04549534246325493,
-0.04322649538516998,
-0.0025752221699804068,
-0.023512694984674454,
-0.008603600785136223,
-0.011072658933699131,
-0.03321728855371475,
-0.033316414803266525,
-0.027084045112133026,
-0.043510038405656815,
0.0029087024740874767,
-0.0013118009082973003,
0.01703391969203949,
0.006058231461793184,
0.028047163039445877,
0.004096352495253086,
0.017291830852627754,
-0.0034883636981248856,
-0.0056678676046431065,
0.0003783894644584507,
0.0037053334526717663,
-0.007757759653031826,
-0.01947728917002678,
0.008233369328081608,
0.041382063180208206,
0.037098709493875504,
0.0076081533916294575,
-0.009688065387308598,
-0.00383360986597836,
-0.02600059285759926,
0.027754811570048332,
0.012906315736472607,
-0.03422630950808525,
0.03204912319779396,
-0.0586998425424099,
-0.027200978249311447,
-0.01246913243085146,
0.005534856580197811,
-1.2656514947195774e-8,
0.005423387512564659,
-0.012461462058126926,
-0.025567935779690742,
0.009935145266354084,
-0.028205065056681633,
0.0014086822047829628,
-0.027151869609951973,
0.00491171283647418,
-0.021719489246606827,
0.0077314903028309345,
0.055584173649549484,
0.020829152315855026,
-0.014600716531276703,
-0.0010104947723448277,
0.004348729271441698,
-0.024658342823386192,
-0.004735519178211689,
0.011582773178815842,
0.012896519154310226,
-0.03871752321720123,
-0.0022910006809979677,
0.030558869242668152,
-0.006776641588658094,
0.013080938719213009,
-0.011584805324673653,
0.00028596806805580854,
0.030806759372353554,
-0.08735395222902298,
0.0018776312936097383,
-0.004231445491313934,
0.017585858702659607,
-0.041198160499334335,
-0.05411680042743683,
0.007868106476962566,
0.013774393126368523,
-0.0206480510532856,
-0.011582594364881516,
0.028762120753526688,
0.014566437341272831,
-0.004763783887028694,
0.011010857298970222,
0.006658733356744051,
-0.001165953348390758,
-0.027818627655506134,
-0.07292331010103226,
-0.008900186978280544,
-0.005379905924201012,
-0.008908108808100224,
-0.0022248253226280212,
-0.02190488390624523,
0.0056072864681482315,
0.006309187039732933,
0.03321767970919609,
0.016264280304312706,
0.011553948745131493,
0.008436953648924828,
-0.017900004982948303,
-0.00136068114079535,
-0.04077421873807907,
-0.0013349187793210149,
0.02556777000427246,
0.012259925715625286,
-0.019399913027882576,
-0.0260880496352911
] | python-gensim-clang-error-unknown-argument-mno-fused-madd-wunused-command-line-argument-hard-error-in-future | https://markhneedham.com/blog/2015/01/10/python-gensim-clang-error-unknown-argument-mno-fused-madd-wunused-command-line-argument-hard-error-in-future |
false | 2015-01-10 08:48:04 | Python: scikit-learn: ImportError: cannot import name __check_build | [
"python"
] | [
"Python"
] | In https://www.kaggle.com/c/word2vec-nlp-tutorial/details/part-3-more-fun-with-word-vectors[part 3 of Kaggle's series on text analytics] I needed to install http://scikit-learn.org/stable/[scikit-learn] and having done so ran into the following error when trying to use one of its classes:
[source,python]
----
>>> from sklearn.feature_extraction.text import CountVectorizer
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/markneedham/projects/neo4j-himym/himym/lib/python2.7/site-packages/sklearn/__init__.py", line 37, in <module>
from . import __check_build
ImportError: cannot import name __check_build
----
This error doesn't reveal very much but I found that when I exited the REPL and tried the same command again I got a different error which was a bit more useful:
[source,python]
----
>>> from sklearn.feature_extraction.text import CountVectorizer
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/markneedham/projects/neo4j-himym/himym/lib/python2.7/site-packages/sklearn/__init__.py", line 38, in <module>
from .base import clone
File "/Users/markneedham/projects/neo4j-himym/himym/lib/python2.7/site-packages/sklearn/base.py", line 10, in <module>
from scipy import sparse
ImportError: No module named scipy
----
The fix for this is now obvious:
[source,python]
----
$ pip install scipy
----
And I can now load +++<cite>+++CountVectorizer+++</cite>+++ without any problem:
[source,python]
----
$ python
Python 2.7.5 (default, Aug 25 2013, 00:04:04)
[GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.0.68)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from sklearn.feature_extraction.text import CountVectorizer
---- | null | null | [
0.007056049536913633,
-0.04155518114566803,
-0.01326199434697628,
0.020798444747924805,
0.06147453561425209,
0.01621539704501629,
0.01593140698969364,
0.027984458953142166,
0.01735042594373226,
0.0072213937528431416,
-0.012709779664874077,
0.030680106952786446,
-0.054121095687150955,
0.008229514583945274,
-0.004675441421568394,
0.04041285440325737,
0.08501945436000824,
0.017204757779836655,
0.0025466340593993664,
0.031399425119161606,
0.028410879895091057,
0.06180115416646004,
0.0037971928250044584,
0.021990446373820305,
0.011950995773077011,
-0.00568292336538434,
0.013722513802349567,
-0.011498366482555866,
-0.057350192219018936,
-0.0011182111920788884,
0.025902314111590385,
-0.012048624455928802,
0.03040122054517269,
-0.02167162299156189,
0.03700241073966026,
0.0336226224899292,
-0.004854798782616854,
0.00039515638491138816,
0.009136968292295933,
0.014839121140539646,
-0.03504806011915207,
0.02796526625752449,
-0.008839775808155537,
-0.003592494875192642,
-0.0646648108959198,
0.013660641387104988,
-0.035377684980630875,
0.02722352184355259,
0.02155339904129505,
-0.039438746869564056,
-0.06367523968219757,
0.02075042948126793,
-0.016429537907242775,
-0.056654784828424454,
0.015977270901203156,
0.06955034285783768,
0.021124068647623062,
-0.10765480250120163,
0.02622920274734497,
-0.0023107128217816353,
0.004399476107209921,
-0.001403145375661552,
-0.03640201687812805,
0.05011776089668274,
0.026014307513833046,
0.008509539067745209,
0.0016899333568289876,
0.05120232701301575,
-0.05721166357398033,
-0.026186397299170494,
-0.01880767196416855,
0.05121639743447304,
-0.03885086998343468,
0.016344118863344193,
-0.017253531143069267,
-0.044803205877542496,
-0.015397991985082626,
0.05008355528116226,
0.018537890166044235,
0.03466561809182167,
0.009750536642968655,
-0.0033019045367836952,
0.029800033196806908,
0.029615238308906555,
-0.013104182668030262,
-0.05875827372074127,
-0.05184454470872879,
-0.01769769750535488,
-0.03955232352018356,
0.03351549431681633,
0.003431114833801985,
-0.04776238650083542,
0.03742276877164841,
0.0008559312555007637,
0.007446199655532837,
0.014934960752725601,
-0.007351641543209553,
-0.00883823074400425,
-0.0020228077191859484,
-0.014479505829513073,
-0.06072816625237465,
-0.02100767195224762,
0.02549431100487709,
0.0236134584993124,
-0.07879558950662613,
-0.012857473455369473,
0.019788140431046486,
-0.0141991525888443,
-0.011235745623707771,
0.0004710982902906835,
-0.031448572874069214,
-0.0036912665236741304,
-0.02728932723402977,
-0.025692736729979515,
-0.10575780272483826,
0.07357357442378998,
0.007398748770356178,
-0.021760892122983932,
-0.0210955198854208,
0.018053419888019562,
0.020839892327785492,
0.040244221687316895,
-0.0089442552998662,
0.06258661299943924,
-0.0016066720709204674,
0.05896184593439102,
0.011752571910619736,
0.039674799889326096,
-0.0015267070848494768,
-0.05225580558180809,
-0.014900377951562405,
0.059154655784368515,
-0.005793476477265358,
0.021785445511341095,
-0.0034095223527401686,
-0.012462886981666088,
-0.03408157825469971,
0.016750266775488853,
0.052857108414173126,
0.04900670796632767,
0.009229475632309914,
-0.03837095573544502,
0.010287584736943245,
0.03895179182291031,
0.01883203163743019,
0.015556223690509796,
-0.011236468330025673,
-0.028733039274811745,
-0.019661271944642067,
0.0060934266075491905,
-0.0009104061755351722,
0.014735852368175983,
0.0804300457239151,
0.009832900017499924,
0.024668918922543526,
0.08849762380123138,
0.02493438310921192,
0.022695476189255714,
-0.015249036252498627,
0.023657221347093582,
0.031192462891340256,
0.04666963964700699,
-0.008628785610198975,
0.03923315927386284,
-0.020886274054646492,
-0.058305997401475906,
-0.006197481881827116,
0.032222505658864975,
-0.026560265570878983,
-0.010286737233400345,
-0.03202895075082779,
-0.09981086105108261,
0.05023682117462158,
-0.030639134347438812,
-0.0032142470590770245,
-0.0043810466304421425,
0.07062462717294693,
0.01101623009890318,
0.048337582498788834,
0.01344221644103527,
-0.07325247675180435,
0.041886068880558014,
-0.03111758641898632,
0.024441415444016457,
0.0037784844171255827,
-0.002993340138345957,
0.08043666183948517,
-0.0127592533826828,
-0.003973733633756638,
-0.005618235096335411,
-0.06187545135617256,
-0.07445313781499863,
-0.030816765502095222,
0.0022871175315231085,
0.0688832625746727,
-0.03192213550209999,
-0.016347186639904976,
0.04904116317629814,
0.017578046768903732,
0.03276050090789795,
0.012330964207649231,
-0.009728208184242249,
-0.024392172694206238,
-0.020289817824959755,
-0.06836359947919846,
0.03418291360139847,
0.0016422320622950792,
-0.020382191985845566,
-0.03211267292499542,
-0.006407489534467459,
-0.011427036486566067,
-0.02009512297809124,
0.039495933800935745,
-0.027967002242803574,
0.04901665076613426,
0.044930700212717056,
0.03895192965865135,
-0.00881197489798069,
0.03283160552382469,
-0.05226929485797882,
0.006419796030968428,
-0.040468014776706696,
-0.001979225082322955,
-0.05461403727531433,
-0.0005978001863695681,
0.10882797837257385,
0.07279609143733978,
-0.018655255436897278,
-0.07427500188350677,
0.018739931285381317,
-0.004213040694594383,
-0.049541227519512177,
0.024297762662172318,
-0.006914453115314245,
-0.01775607280433178,
-0.0015045757172629237,
-0.034917447715997696,
-0.033300235867500305,
0.011717844754457474,
-0.03709346801042557,
-0.01558272447437048,
0.08218096941709518,
-0.06602030247449875,
0.037267591804265976,
0.04373977705836296,
-0.006303250323981047,
-0.017458733171224594,
-0.009122539311647415,
-0.07907378673553467,
-0.0008941912674345076,
0.042570240795612335,
0.010341624729335308,
0.043158452957868576,
-0.026543861255049706,
-0.04740441218018532,
-0.01104756910353899,
-0.06707323342561722,
0.01832466945052147,
0.08098521828651428,
0.03680327534675598,
-0.007380823139101267,
0.02097325772047043,
-0.03199738636612892,
-0.000586975016631186,
-0.018586991354823112,
-0.023678073659539223,
-0.0454336479306221,
-0.03278205543756485,
0.007349858991801739,
0.013122731819748878,
0.0414741113781929,
-0.022765345871448517,
-0.009326868690550327,
-0.014705637469887733,
0.008646433241665363,
0.01416700892150402,
0.05207441374659538,
-0.01855325885117054,
0.016550488770008087,
-0.07048879563808441,
-0.040856167674064636,
0.07099878042936325,
-0.07778451591730118,
-0.013125470839440823,
0.006317216902971268,
-0.05476676672697067,
-0.011498488485813141,
-0.06889249384403229,
-0.015094215050339699,
0.006660607643425465,
-0.009008902125060558,
0.05319410189986229,
0.0000338347272190731,
-0.0010012934217229486,
0.038016874343156815,
0.022716661915183067,
0.007693104445934296,
0.022666824981570244,
0.005873746704310179,
0.05630914121866226,
-0.014105935581028461,
0.046659376472234726,
0.001640533097088337,
0.010588967241346836,
-0.002541551599279046,
-0.0426543690264225,
0.0030075092799961567,
-0.056736696511507034,
-0.25568872690200806,
0.05123014375567436,
-0.021936213597655296,
-0.0377369150519371,
0.03393576294183731,
-0.018804224207997322,
0.013308887369930744,
-0.010368134826421738,
-0.045243315398693085,
0.017552902922034264,
-0.012407662346959114,
-0.02897060662508011,
0.008950063958764076,
0.06064886227250099,
0.0025478361640125513,
0.017704153433442116,
-0.012542126700282097,
-0.035539090633392334,
0.029463665559887886,
0.07160560041666031,
0.009799886494874954,
-0.020798247307538986,
-0.012776972725987434,
0.05211692675948143,
-0.011123590171337128,
0.0342584028840065,
-0.07777093350887299,
0.06099290773272514,
-0.050772324204444885,
-0.03376273438334465,
-0.0048705884255468845,
-0.036251701414585114,
-0.017251960933208466,
-0.016915783286094666,
0.011895001865923405,
-0.0036238159518688917,
0.015860045328736305,
0.0040784962475299835,
-0.005920255556702614,
0.022382358089089394,
-0.028552476316690445,
-0.04128093272447586,
0.013088587671518326,
-0.0503738634288311,
0.08403971046209335,
-0.011613445356488228,
-0.08111871778964996,
-0.023614468052983284,
-0.03195248171687126,
0.06858278810977936,
-0.03236173838376999,
-0.04543587192893028,
-0.0392606146633625,
0.041647229343652725,
-0.00819675624370575,
-0.00020501126709859818,
-0.011419224552810192,
-0.003970575984567404,
-0.03829830512404442,
-0.023569921031594276,
-0.05219973996281624,
-0.03339631110429764,
-0.023180872201919556,
-0.046461593359708786,
-0.013889619149267673,
-0.06492649018764496,
-0.044821567833423615,
-0.038897089660167694,
0.02246200107038021,
0.03157755732536316,
-0.08159977942705154,
0.0027198244351893663,
-0.016611164435744286,
-0.0932239517569542,
0.0009106743382290006,
-0.029264483600854874,
-0.018090607598423958,
0.00791425071656704,
0.0021852548234164715,
0.04383561387658119,
-0.06846342235803604,
-0.07458654791116714,
0.019864290952682495,
-0.005585811100900173,
-0.013430485501885414,
-0.001855303067713976,
0.01086041796952486,
-0.015095768496394157,
-0.02035951055586338,
-0.012430963106453419,
0.029658440500497818,
-0.011388038285076618,
-0.0029107246082276106,
-0.01875106804072857,
-0.025680558755993843,
0.013340522535145283,
-0.0044507551938295364,
0.008621825836598873,
0.016052892431616783,
0.0300428606569767,
0.011555459350347519,
-0.054583050310611725,
-0.024216672405600548,
-0.04558011516928673,
-0.03306423872709274,
0.008720512501895428,
-0.056325607001781464,
-0.015707600861787796,
0.03246002644300461,
0.0000892279640538618,
0.0056891608983278275,
-0.013062527403235435,
0.007247962988913059,
0.0024646443780511618,
-0.01949884556233883,
0.025974055752158165,
0.024883054196834564,
0.010881708934903145,
0.043273165822029114,
-0.005167063791304827,
-0.07479076087474823,
-0.0038463608361780643,
-0.012368131428956985,
-0.004743368364870548,
-0.014669587835669518,
-0.045497361570596695,
-0.015107287093997002,
0.008022925816476345,
0.006647114176303148,
-0.021938616409897804,
-0.03875204175710678,
0.010223304852843285,
0.05678106099367142,
0.0016475635347887874,
0.04640040546655655,
-0.03255775198340416,
-0.03611104190349579,
-0.023071564733982086,
-0.005108156241476536,
-0.0031251623295247555,
-0.02756986767053604,
-0.007437367923557758,
0.009301689453423023,
0.03899797052145004,
0.0604829415678978,
-0.014710494317114353,
0.012716714292764664,
0.030612055212259293,
-0.008023252710700035,
-0.014814678579568863,
-0.0001898971531772986,
-0.02790237031877041,
0.041784122586250305,
-0.009043516591191292,
-0.029185080900788307,
0.008486436679959297,
0.050842419266700745,
-0.0017069653840735555,
0.0019313966622576118,
-0.016455771401524544,
0.048054952174425125,
-0.009476223029196262,
0.0177630502730608,
0.0013047396205365658,
-0.008518495596945286,
0.03257839009165764,
0.00555872917175293,
0.008290408179163933,
-0.002144627273082733,
0.007440714631229639,
0.032728224992752075,
0.021416647359728813,
-0.0667608380317688,
0.025247152894735336,
-0.009816013276576996,
-0.007847272790968418,
0.028639348223805428,
0.022393563762307167,
0.0021800450049340725,
0.015113508328795433,
-0.03670544549822807,
-0.01696683280169964,
0.009390858933329582,
0.019505036994814873,
0.04712943732738495,
0.03720290958881378,
-0.03852140158414841,
-0.0099849384278059,
-0.007966222241520882,
-0.017614545300602913,
-0.03013387881219387,
0.007469214498996735,
0.01044545229524374,
0.003714238293468952,
-0.042141493409872055,
-0.04944690316915512,
-0.009432007558643818,
0.022693173959851265,
0.023019805550575256,
0.0205539520829916,
-0.021205032244324684,
-0.01594667136669159,
-0.019789867103099823,
0.024831432849168777,
0.0756479874253273,
-0.05907318368554115,
-0.022356344386935234,
-0.044381190091371536,
0.015325970947742462,
-0.0001915028551593423,
-0.004237001296132803,
-0.05561983585357666,
-0.009786243550479412,
-0.02429983578622341,
-0.009284427389502525,
-0.026301756501197815,
-0.057141102850437164,
-0.02378956787288189,
0.03329389914870262,
-0.006630246527493,
-0.002479808870702982,
0.009966470301151276,
0.020954221487045288,
-0.030187373980879784,
-0.01835278607904911,
0.02864905446767807,
0.011950302869081497,
0.00827382318675518,
0.03699213266372681,
-0.006474197842180729,
0.048432230949401855,
-0.03833599388599396,
0.04374682903289795,
0.051911573857069016,
0.0159006267786026,
-0.014953643083572388,
-0.041780464351177216,
0.014010163955390453,
0.016941191628575325,
0.002301946748048067,
0.02304740622639656,
0.018659399822354317,
-0.013962117955088615,
0.018533039838075638,
-0.0061747669242322445,
0.03342728689312935,
0.02328924462199211,
-0.0252050943672657,
-0.0007400254835374653,
0.04560676962137222,
-0.013815226964652538,
0.04550190642476082,
0.0043785241432487965,
-0.04019574820995331,
0.07274628430604935,
-0.019523700699210167,
-0.06307478249073029,
-0.012755083851516247,
-0.052325863391160965,
0.029843024909496307,
0.0450829453766346,
0.059367720037698746,
-0.08784611523151398,
0.0795956626534462,
0.026971984654664993,
0.023928331211209297,
0.04137173295021057,
0.018602395430207253,
0.042807627469301224,
-0.026086408644914627,
-0.051716938614845276,
-0.12265008687973022,
-0.034217897802591324,
0.0664011612534523,
-0.032658133655786514,
0.0005601804004982114,
-0.016503600403666496,
-0.011276859790086746,
0.013649795204401016,
-0.04575099050998688,
-0.030627664178609848,
0.01868785358965397,
-0.002895780373364687,
0.02255772240459919,
0.006311027333140373,
-0.017417840659618378,
0.01401288341730833,
0.023676401004195213,
-0.03345153108239174,
-0.01587936468422413,
-0.06704499572515488,
0.07012941688299179,
-0.012433516792953014,
0.013311839662492275,
-0.017409855499863625,
-0.0038272265810519457,
0.06802835315465927,
0.03093443065881729,
0.056131940335035324,
0.03133262321352959,
-0.0029940924141556025,
0.061252444982528687,
0.04318612441420555,
-0.003431615885347128,
-0.01190505363047123,
0.04357336461544037,
0.0024317558854818344,
-0.05848163366317749,
0.06258421391248703,
0.023829041048884392,
0.02472020871937275,
-0.021829964593052864,
0.051070354878902435,
0.0018807175802066922,
-0.035987116396427155,
-0.05405477061867714,
0.02843576669692993,
-0.05296323820948601,
0.009870531968772411,
-0.05665414407849312,
-0.011310264468193054,
-0.03173309937119484,
0.05670055001974106,
-0.017393171787261963,
-0.009145233780145645,
0.05087767541408539,
-0.03959072008728981,
0.019493674859404564,
0.028216669335961342,
0.07331999391317368,
0.05197632312774658,
0.03672730177640915,
0.02484164759516716,
0.07539672404527664,
-0.020756645128130913,
-0.030870528891682625,
-0.003008937928825617,
-0.02744763158261776,
-0.017139509320259094,
0.0022568171843886375,
-0.015973897650837898,
0.03898131847381592,
0.021821973845362663,
0.07786388695240021,
-0.05823323875665665,
0.023076478391885757,
-0.017826363444328308,
0.02532709762454033,
0.03105994686484337,
0.043514687567949295,
0.016195187345147133,
0.0565507598221302,
-0.04140593484044075,
-0.03284316137433052,
0.012694725766777992,
0.000545698800124228,
-0.03400995954871178,
0.005790608935058117,
-0.010006777010858059,
0.004724086262285709,
0.03418881818652153,
0.02989601343870163,
0.07076709717512131,
-0.03633442521095276,
-0.005602867808192968,
0.03030698373913765,
0.047801047563552856,
0.013297764584422112,
0.05103686824440956,
-0.04062069207429886,
-0.012341227382421494,
0.00864181388169527,
-0.031945619732141495,
-0.011898902244865894,
-0.027671217918395996,
-0.019144020974636078,
0.01938987337052822,
-0.04416640102863312,
-0.0006697310600429773,
0.010197320021688938,
0.021475214511156082,
-0.02813151478767395,
-0.031527385115623474,
-0.0035748176742345095,
-0.021576642990112305,
-0.05749877169728279,
0.028348954394459724,
0.021443761885166168,
-0.019847556948661804,
-0.0010608021402731538,
-0.02668793499469757,
-0.0016892357962206006,
-0.01812116429209709,
0.003619818715378642,
-0.0676291286945343,
0.01755043864250183,
-0.005569587927311659,
0.0015043620951473713,
-0.013562353327870369,
0.016320189461112022,
0.03285182639956474,
-0.0022442140616476536,
-0.03122144192457199,
0.02421938255429268,
0.00511283939704299,
0.04009661078453064,
0.03606432303786278,
0.0372065007686615,
-0.08492523431777954,
-0.005756603088229895,
0.008360903710126877,
0.019036702811717987,
-0.07154874503612518,
0.012015125714242458,
0.06879106163978577,
-0.006881417706608772,
0.025121789425611496,
0.025346005335450172,
-0.03152550384402275,
-0.015626579523086548,
-0.013545774854719639,
-0.028868602588772774,
0.032796576619148254,
0.018289616331458092,
-0.010603425092995167,
0.07469122856855392,
0.041275493800640106,
0.017611756920814514,
-0.0016798373544588685,
-0.02749905176460743,
-0.0148952417075634,
-0.02065660059452057,
-0.0235226359218359,
0.00542364502325654,
-0.05474603548645973,
-0.08090446889400482,
-0.01250927709043026,
0.01833399012684822,
-0.02876063995063305,
-0.03559006005525589,
0.020355558022856712,
-0.001097652013413608,
-0.015198023989796638,
0.06378332525491714,
-0.03453531488776207,
-0.020189305767416954,
-0.009444664232432842,
-0.02832951210439205,
0.00786963663995266,
0.03590017929673195,
0.011368419043719769,
0.022464139387011528,
-0.006787045858800411,
-0.027783533558249474,
0.01634124107658863,
-0.02608034946024418,
0.0132273705676198,
0.06474971026182175,
-0.010266536846756935,
0.017538417130708694
] | [
-0.033447109162807465,
-0.0210618544369936,
-0.00922427512705326,
-0.006038829684257507,
0.01771709881722927,
-0.060144368559122086,
0.0005480482359416783,
0.02340567111968994,
0.004367046058177948,
-0.030691469088196754,
0.05806835740804672,
-0.08168446272611618,
0.015369665808975697,
-0.0000853852106956765,
0.08271391689777374,
-0.007839756086468697,
-0.06248697638511658,
-0.01956840045750141,
0.005116717889904976,
-0.004279507324099541,
-0.0358927845954895,
-0.022652018815279007,
0.011914532631635666,
-0.013532137498259544,
0.005961224902421236,
0.07816064357757568,
-0.0007524923421442509,
-0.05337410420179367,
-0.015607168897986412,
-0.2278054803609848,
-0.016855629161000252,
-0.02832336723804474,
0.007074480876326561,
0.0009004751336760819,
0.02819182723760605,
0.07814700901508331,
-0.00015896395780146122,
-0.03342346474528313,
-0.004573271609842777,
0.015311460010707378,
-0.03051714226603508,
-0.023161159828305244,
-0.04485698789358139,
0.0015949400840327144,
0.041333477944135666,
0.004280532244592905,
-0.011607504449784756,
-0.027838395908474922,
-0.01844404637813568,
-0.01106976717710495,
0.0064149522222578526,
-0.04815031588077545,
-0.02050396427512169,
0.0001858798204921186,
-0.005345374345779419,
0.016311373561620712,
0.05792093276977539,
0.07966136187314987,
0.06086371839046478,
0.023547418415546417,
-0.015559691935777664,
-0.006248368415981531,
-0.17941640317440033,
0.08291350305080414,
-0.014987068250775337,
0.006518257316201925,
-0.07903839647769928,
-0.026306362822651863,
-0.01571422442793846,
0.07561179995536804,
0.015523797832429409,
0.0032725301571190357,
-0.03496816009283066,
0.08775321394205093,
-0.011074714362621307,
0.012020721100270748,
0.00912734866142273,
0.012805061414837837,
0.08703359216451645,
-0.017326410859823227,
0.02178763598203659,
0.012434069067239761,
-0.021196573972702026,
-0.024379465728998184,
-0.0018962427275255322,
0.01599188707768917,
-0.04133288562297821,
0.01801234297454357,
0.011749984696507454,
0.01190438773483038,
0.025673270225524902,
0.0009626455139368773,
0.044182952493429184,
0.02516247145831585,
-0.058620598167181015,
-0.014987969771027565,
0.028341053053736687,
0.000945841136854142,
-0.01834058202803135,
0.37273770570755005,
0.005958711262792349,
0.008146221749484539,
0.011656364426016808,
0.08683206140995026,
-0.026153912767767906,
-0.060124222189188004,
-0.0679766982793808,
-0.03562093898653984,
0.04981806129217148,
-0.07122024893760681,
0.0528143085539341,
-0.013933657668530941,
0.037180785089731216,
-0.07208822667598724,
0.05307258665561676,
-0.02742813155055046,
0.03136846050620079,
0.0051757656037807465,
-0.011243550106883049,
0.059748124331235886,
0.004299453925341368,
0.002414136426523328,
0.050848837941884995,
0.01594354584813118,
0.025325560942292213,
0.0721115842461586,
0.039110880345106125,
0.05910058319568634,
0.05005154386162758,
0.012683571316301823,
0.04727088287472725,
-0.011525485664606094,
-0.0952553078532219,
0.008445109240710735,
0.02699236012995243,
0.0021765423007309437,
0.010899488814175129,
-0.0004915075842291117,
-0.014318016357719898,
-0.03706766292452812,
-0.03356575220823288,
-0.012482905760407448,
0.025030236691236496,
0.027790755033493042,
-0.041574060916900635,
0.08287154883146286,
-0.0447799377143383,
-0.0016146741108968854,
-0.01767715997993946,
-0.03508828207850456,
0.02907666377723217,
0.013207915239036083,
-0.0006073274998925626,
-0.059887152165174484,
-0.0012330905301496387,
0.014294132590293884,
0.08853929489850998,
0.0003586428938433528,
-0.07508832216262817,
-0.005140768364071846,
-0.0021517931018024683,
-0.03665001317858696,
-0.006545952521264553,
0.03414379432797432,
0.022212978452444077,
-0.08462364226579666,
0.00023634523677174002,
0.02703016810119152,
-0.025495974346995354,
-0.0855981707572937,
0.04855833202600479,
0.01734497770667076,
-0.057403866201639175,
0.04057016596198082,
0.017088046297430992,
-0.029354974627494812,
-0.0557047501206398,
0.03301243111491203,
0.08479803800582886,
0.009686477482318878,
0.04014862701296806,
0.011866200715303421,
-0.022198865190148354,
-0.005421590059995651,
-0.0276574045419693,
-0.04136815294623375,
-0.006997156422585249,
-0.016594987362623215,
0.017803821712732315,
-0.02852546237409115,
0.024769175797700882,
0.015344634652137756,
0.021435819566249847,
-0.008328399620950222,
-0.025879422202706337,
0.02482498064637184,
0.003810187801718712,
0.014039340429008007,
-0.04159751534461975,
-0.04667479172348976,
0.03685222566127777,
0.01864187978208065,
0.02878577634692192,
0.003065410302951932,
-0.03782498836517334,
0.015949374064803123,
0.059320006519556046,
-0.035810451954603195,
0.06587023288011551,
-0.007745538372546434,
-0.04312622919678688,
-0.020882708951830864,
-0.01404557004570961,
-0.003632137319073081,
-0.0540318600833416,
-0.006550737656652927,
-0.028348302468657494,
0.004385789390653372,
-0.0006445802864618599,
0.038608599454164505,
-0.0689249038696289,
-0.016952162608504295,
-0.07876046001911163,
-0.345638245344162,
-0.006678279023617506,
-0.0047880858182907104,
0.022935831919312477,
0.0014543315628543496,
-0.04746640473604202,
0.02057197131216526,
-0.017160024493932724,
-0.004270446486771107,
0.06906617432832718,
0.06687688827514648,
0.0482620894908905,
0.010206466540694237,
-0.08896172791719437,
0.053050003945827484,
0.026558468118309975,
0.0194688830524683,
-0.026278598234057426,
-0.04782319813966751,
-0.002039372455328703,
-0.01019375491887331,
-0.034952856600284576,
-0.04319436475634575,
-0.04209400340914726,
-0.029991399496793747,
-0.05086570605635643,
0.12786546349525452,
0.03530707582831383,
0.048421215265989304,
-0.030277971178293228,
0.018200742080807686,
0.06008404865860939,
0.010227755643427372,
-0.10729651153087616,
-0.00033407710725441575,
-0.022024255245923996,
0.024135729297995567,
0.0866687223315239,
-0.01716666854918003,
0.019089771434664726,
-0.007823174819350243,
0.01778423599898815,
-0.021160345524549484,
-0.0026624544989317656,
0.009249824099242687,
0.04129460081458092,
-0.02756197191774845,
0.011739568784832954,
0.008263954892754555,
0.030799254775047302,
-0.009027276188135147,
0.08548984676599503,
-0.018147028982639313,
0.05662330985069275,
-0.01947500742971897,
-0.02191396802663803,
-0.05337392911314964,
0.01096503995358944,
-0.011988126672804356,
-0.0026390040293335915,
0.008587419055402279,
0.022758759558200836,
0.05388471111655235,
-0.07921139895915985,
-0.0019166892161592841,
0.008129622787237167,
0.052233994007110596,
0.005985913332551718,
0.01058648806065321,
0.0029526494909077883,
-0.00688051525503397,
0.09724123775959015,
-0.009665212593972683,
0.01969967409968376,
-0.011118989437818527,
0.03272969648241997,
0.011292928829789162,
0.0101521210744977,
0.037004079669713974,
-0.0270072091370821,
0.0336945503950119,
0.008579502813518047,
0.07179410755634308,
0.009547827765345573,
0.01955745927989483,
0.0008565859170630574,
0.006496654357761145,
-0.0005047282320447266,
0.031655654311180115,
-0.0006608602707274258,
-0.0059026917442679405,
-0.0009559664758853614,
0.02306593582034111,
0.0069944546557962894,
0.10601861774921417,
0.018254509195685387,
-0.2560165822505951,
0.027767067775130272,
0.03263777866959572,
0.04360627382993698,
0.004568218719214201,
-0.029864687472581863,
0.006807642988860607,
-0.08914870768785477,
0.0006555403233505785,
-0.0374140590429306,
-0.008068171329796314,
0.0023946696892380714,
-0.011979705654084682,
0.002357570920139551,
-0.004965678788721561,
-0.015763556584715843,
0.0873274952173233,
0.022796910256147385,
0.024930428713560104,
0.006826069205999374,
0.045311324298381805,
-0.022962909191846848,
0.17373773455619812,
-0.003694254904985428,
-0.039265286177396774,
-0.06014231592416763,
-0.04864313453435898,
-0.015752600505948067,
0.030699370428919792,
-0.007132312748581171,
-0.010740252211689949,
0.03603646904230118,
0.05021071806550026,
0.009329169988632202,
0.0023614857345819473,
0.003168991766870022,
-0.02633075974881649,
-0.01222027838230133,
0.015758883208036423,
-0.01719750091433525,
-0.020671628415584564,
0.025998087599873543,
-0.08877109736204147,
0.046261925250291824,
0.04050572216510773,
-0.06193532422184944,
0.028498319908976555,
-0.06745412945747375,
-0.07030662149190903,
-0.00985079538077116,
-0.011898692697286606,
-0.037384580820798874,
-0.010777195915579796,
-0.022174624726176262,
-0.026109561324119568,
0.04723292216658592,
0.020725863054394722,
-0.010441472753882408,
-0.016980573534965515,
-0.032985441386699677,
-0.014743759296834469,
-0.08445851504802704,
0.12379404157400131,
0.01868583634495735,
-0.0094968406483531
] | [
0.003223628969863057,
-0.018390297889709473,
-0.03872249275445938,
0.038727302104234695,
0.004117589443922043,
-0.012734734453260899,
-0.011456839740276337,
0.03157459571957588,
-0.03400542214512825,
-0.011968426406383514,
0.0040698884986341,
0.008830586448311806,
0.01848449371755123,
-0.011665892787277699,
0.001860707183368504,
-0.009425995871424675,
-0.02496672235429287,
0.019324269145727158,
0.04018784314393997,
-0.007165219634771347,
-0.021489905193448067,
0.044989921152591705,
0.03577404469251633,
0.02741965278983116,
0.02064848504960537,
0.017066823318600655,
-0.06625931710004807,
0.009343300946056843,
0.031066646799445152,
-0.12329782545566559,
-0.0011190198129042983,
-0.013488308526575565,
0.001304695731960237,
-0.020760471001267433,
0.017291944473981857,
0.013742228038609028,
-0.03426423668861389,
-0.00530000077560544,
-0.028257664293050766,
0.01615946926176548,
-0.008420366793870926,
-0.01958891563117504,
-0.019124355167150497,
0.026920760050415993,
-0.03000081516802311,
0.00644168583676219,
-0.04187977313995361,
-0.045148007571697235,
-0.0006185862002894282,
-0.016437945887446404,
-0.030713001266121864,
-0.003870398737490177,
-0.0184787530452013,
0.005913508124649525,
0.028505519032478333,
0.01726698689162731,
0.01550416648387909,
-0.015888215973973274,
0.0259090643376112,
-0.02814633585512638,
0.01142151653766632,
0.002791288308799267,
-0.036048099398612976,
-0.032271672040224075,
-0.03139462694525719,
-0.02867756597697735,
-0.033416997641325,
0.03366025164723396,
0.016476228833198547,
0.024884849786758423,
-0.024718552827835083,
0.006546434946358204,
-0.0242024976760149,
-0.013735302723944187,
0.020678769797086716,
-0.025087229907512665,
0.03069174848496914,
-0.0039338297210633755,
0.03164367005228996,
-0.008572159335017204,
-0.0468519926071167,
0.004292710684239864,
-0.0035601849667727947,
-0.009271742776036263,
-0.016627516597509384,
-0.0228154007345438,
0.0035838596522808075,
-0.012470841407775879,
-0.013500857166945934,
-0.0012617348693311214,
0.016040749847888947,
0.005738553125411272,
0.004489430692046881,
0.02297872304916382,
-0.096608966588974,
-0.006895891856402159,
0.006810061167925596,
-0.012731539085507393,
0.01881995052099228,
0.8422070741653442,
0.012005909346044064,
-0.019130075350403786,
0.02772398479282856,
0.027588803321123123,
-0.013634838163852692,
-0.009020963683724403,
-0.0018296160269528627,
-0.03615499660372734,
0.028093844652175903,
-0.011448207311332226,
0.013236447237432003,
-0.012337044812738895,
0.028929073363542557,
0.014941886067390442,
0.03939551115036011,
0.007090510334819555,
0.051418572664260864,
0.013068357482552528,
0.02869555540382862,
0.02139204926788807,
0.013158478774130344,
-0.01332530751824379,
0.01498581375926733,
0.01867547444999218,
-0.0032746042124927044,
-0.17089949548244476,
0.020968372002243996,
-6.837539867414248e-33,
-0.0006393165094777942,
-0.0147432005032897,
0.005246774759143591,
0.015573845244944096,
0.005621045362204313,
0.0010489474516361952,
-0.007460175547748804,
0.007839870639145374,
-0.04208645224571228,
-0.01509900577366352,
-0.020101182162761688,
0.007826009765267372,
-0.0007021568017080426,
0.0035599118564277887,
0.024139761924743652,
-0.011636268347501755,
0.0026064624544233084,
0.05056127905845642,
-0.008299998939037323,
-0.004243810195475817,
0.040763091295957565,
0.006852759514003992,
0.007223437540233135,
0.04134098440408707,
0.020786214619874954,
0.009802134707570076,
0.01709023490548134,
-0.01182765793055296,
-0.028962956741452217,
-0.0498829185962677,
-0.017145391553640366,
0.002758838701993227,
0.00801099929958582,
-0.017892537638545036,
-0.009548290632665157,
-0.08638934046030045,
-0.02063666097819805,
-0.009973094798624516,
-0.022713057696819305,
-0.039407823234796524,
-0.03355172276496887,
0.04116285964846611,
0.010350216180086136,
-0.04433036968111992,
-0.022090783342719078,
0.04096369445323944,
0.04334532842040062,
0.0752885714173317,
-0.015582947991788387,
0.008696992881596088,
0.03803239017724991,
-0.009008001536130905,
-0.006032547447830439,
0.05720793455839157,
-0.011364076286554337,
0.052040521055459976,
-0.011418544687330723,
-0.014527487568557262,
0.022962404415011406,
0.005648565012961626,
0.026104234158992767,
0.011582711711525917,
0.025818217545747757,
0.018645012751221657,
0.04796396568417549,
-0.0014355485327541828,
0.010875062085688114,
0.04304524511098862,
0.016010528430342674,
0.03023472987115383,
-0.04848608002066612,
0.011347373947501183,
-0.05249116197228432,
-0.013551052659749985,
0.024924883618950844,
-0.05318398401141167,
0.007678487803786993,
-0.020455196499824524,
-0.029292792081832886,
0.055183522403240204,
0.020771533250808716,
-0.035125140100717545,
0.0002630423114169389,
-0.06788758933544159,
-0.023386649787425995,
0.002796934451907873,
0.008213556371629238,
-0.025959299877285957,
-0.007160389795899391,
0.02186605893075466,
0.012933360412716866,
-0.007572771981358528,
-0.015793295577168465,
-0.012570897117257118,
-0.054377686232328415,
6.659719163545514e-33,
-0.00829988531768322,
-0.022363189607858658,
-0.007893986999988556,
0.017970653250813484,
0.018379375338554382,
0.009814897552132607,
0.015486923977732658,
-0.008101548999547958,
-0.03951822966337204,
0.032410673797130585,
-0.010201843455433846,
-0.00385724613443017,
-0.011377898044884205,
0.005064124241471291,
0.03868076950311661,
0.006743230391293764,
-0.026858698576688766,
0.011513963341712952,
0.03489496558904648,
0.01955379918217659,
-0.02097097970545292,
0.019716188311576843,
-0.014327134937047958,
0.020130380988121033,
0.002633789787068963,
0.010271969251334667,
-0.03349174186587334,
0.004751584026962519,
0.008953104726970196,
0.011612181551754475,
0.018946493044495583,
-0.011981724761426449,
-0.030672166496515274,
0.01897929422557354,
-0.008286410011351109,
0.01615402102470398,
0.017047178000211716,
-0.008889501914381981,
0.02664443664252758,
0.011085831560194492,
0.04781898483633995,
0.0606062076985836,
-0.0052183642983436584,
0.012886774726212025,
0.008698842488229275,
0.01757984235882759,
0.012512877583503723,
0.03761276975274086,
-0.006018675863742828,
-0.008871059864759445,
-0.022482577711343765,
0.019887059926986694,
0.014606050215661526,
0.03888615220785141,
-0.005534674506634474,
-0.019579313695430756,
0.01470730546861887,
0.0234905444085598,
-0.0488181971013546,
-0.014151846058666706,
-0.024899639189243317,
-0.024282028898596764,
-0.04040875285863876,
-0.006381736136972904,
-0.02592228539288044,
-0.01549800205975771,
-0.041403140872716904,
0.044457294046878815,
-0.013419346883893013,
-0.018177131190896034,
0.004537599161267281,
0.0036481167189776897,
-0.006350345443934202,
0.022356873378157616,
-0.01776619255542755,
-0.00008662250183988363,
-0.012587550096213818,
0.02095893956720829,
-0.03468376025557518,
0.0031047766096889973,
0.02180303819477558,
0.011106393299996853,
0.0513652004301548,
0.011624773032963276,
-0.001768303569406271,
0.02194829098880291,
-0.02014869451522827,
0.009180352091789246,
0.04158783331513405,
-0.032227400690317154,
0.013808569870889187,
-0.017164155840873718,
-0.00008899992099031806,
0.006422140169888735,
0.007866251282393932,
-1.2550408712286298e-8,
-0.00010311925143469125,
0.009607951156795025,
-0.005494480486959219,
0.009083590470254421,
0.017758343368768692,
0.029536185786128044,
-0.025207240134477615,
0.019086366519331932,
-0.03887823969125748,
0.026329563930630684,
0.024400141090154648,
-0.014275611378252506,
-0.0019117245683446527,
0.0026301871985197067,
0.005000618286430836,
0.011828544549643993,
0.012422572821378708,
0.03145500645041466,
0.03001726046204567,
-0.01655687764286995,
0.00977153331041336,
0.01386487390846014,
0.004363951273262501,
0.01142643578350544,
-0.01194910891354084,
0.005652877036482096,
0.019106894731521606,
-0.06146042048931122,
0.005800898186862469,
-0.029549531638622284,
0.020132776349782944,
-0.04008641839027405,
-0.07132922857999802,
0.003006355371326208,
0.018083885312080383,
-0.0070837391540408134,
-0.01819879375398159,
0.004749649669975042,
0.0102126719430089,
0.02221352979540825,
-0.0426655039191246,
0.01100934762507677,
-0.019633019343018532,
-0.016693389043211937,
-0.06272541731595993,
-0.0033220823388546705,
-0.04991639778017998,
-0.042003512382507324,
0.0391588993370533,
-0.03248952329158783,
0.04516320675611496,
-0.034090083092451096,
0.01260424591600895,
0.005269572138786316,
0.01036860141903162,
0.024519288912415504,
-0.020515674725174904,
0.005817480385303497,
-0.04108781740069389,
-0.013678041286766529,
0.023485254496335983,
0.015878621488809586,
-0.036245398223400116,
-0.016112977638840675
] | python-scikit-learn-importerror-cannot-import-name-__check_build | https://markhneedham.com/blog/2015/01/10/python-scikit-learn-importerror-cannot-import-name-__check_build |
false | 2015-01-10 01:22:56 | Python NLTK/Neo4j: Analysing the transcripts of How I Met Your Mother | [
"neo4j",
"python"
] | [
"neo4j",
"Python"
] | After reading https://twitter.com/emileifrem[Emil's] http://dataconomy.com/discovering-the-power-of-dark-data/[blog post about dark data] a few weeks ago I became intrigued about trying to find some structure in free text data and I thought How I met your mother's transcripts would be a good place to start.
I found a website which has the http://transcripts.foreverdreaming.org/viewforum.php?f=177[transcripts for all the episodes] and then having manually downloaded the two pages which listed all the episodes, wrote a script to grab each of the transcripts so I could use them on my machine.
I wanted to learn a bit of Python and my colleague https://twitter.com/technige[Nigel] pointed me towards the http://docs.python-requests.org/en/latest/[requests] and http://www.crummy.com/software/BeautifulSoup/bs4/doc/[BeautifulSoup] libraries to help me with my task. The script to grab the transcripts looks like this:
[source,python]
----
import requests
from bs4 import BeautifulSoup
from soupselect import select
episodes = {}
for i in range(1,3):
page = open("data/transcripts/page-" + str(i) + ".html", 'r')
soup = BeautifulSoup(page.read())
for row in select(soup, "td.topic-titles a"):
parts = row.text.split(" - ")
episodes[parts[0]] = {"title": parts[1], "link": row.get("href")}
for key, value in episodes.iteritems():
parts = key.split("x")
season = int(parts[0])
episode = int(parts[1])
filename = "data/transcripts/S%d-Ep%d" %(season, episode)
print filename
with open(filename, 'wb') as handle:
headers = {'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36'}
response = requests.get("http://transcripts.foreverdreaming.org" + value["link"], headers = headers)
if response.ok:
for block in response.iter_content(1024):
if not block:
break
handle.write(block)
----
_the files containing the lists of episodes are named 'page-1' and 'page-2'_
The code is reasonably simple - we find all the links inside the table, put them in a dictionary and then iterate through the dictionary and download the files to disk. The code to save the file is a bit of a monstrosity but there didn't seem to be a 'save' method that I could use.
Having downloaded the files, I thought through all sorts of clever things I could do, including generating a bag of words model for each episode or performing sentiment analysis on each sentence which I'd https://www.kaggle.com/c/word2vec-nlp-tutorial[learnt about from a Kaggle tutorial].
In the end I decided to start simple and extract all the words from the transcripts and count many times a word occurred in a given episode.
I ended up with the following script which created a dictionary of (episode \-> words + occurrences):
[source,python]
----
import csv
import nltk
import re
from bs4 import BeautifulSoup
from soupselect import select
from nltk.corpus import stopwords
from collections import Counter
from nltk.tokenize import word_tokenize
def count_words(words):
tally=Counter()
for elem in words:
tally[elem] += 1
return tally
episodes_dict = {}
with open('data/import/episodes.csv', 'r') as episodes:
reader = csv.reader(episodes, delimiter=',')
reader.next()
for row in reader:
print row
transcript = open("data/transcripts/S%s-Ep%s" %(row[3], row[1])).read()
soup = BeautifulSoup(transcript)
rows = select(soup, "table.tablebg tr td.post-body div.postbody")
raw_text = rows[0]
[ad.extract() for ad in select(raw_text, "div.ads-topic")]
[ad.extract() for ad in select(raw_text, "div.t-foot-links")]
text = re.sub("[^a-zA-Z]", " ", raw_text.text.strip())
words = [w for w in nltk.word_tokenize(text) if not w.lower() in stopwords.words("english")]
episodes_dict[row[0]] = count_words(words)
----
Next I wanted to explore the data a bit to see which words occurred across episodes or which word occurred most frequently and realised that this would be a much easier task if I stored the data somewhere.
s/somewhere/in Neo4j
Neo4j's query language, Cypher, has a really nice ETL-esque tool called 'LOAD CSV' for loading in CSV files (as the name suggests!) so I added some code to save my words to disk:
[source,python]
----
with open("data/import/words.csv", "w") as words:
writer = csv.writer(words, delimiter=",")
writer.writerow(["EpisodeId", "Word", "Occurrences"])
for episode_id, words in episodes_dict.iteritems():
for word in words:
writer.writerow([episode_id, word, words[word]])
----
This is what the CSV file contents look like:
[source,bash]
----
$ head -n 10 data/import/words.csv
EpisodeId,Word,Occurrences
165,secondly,1
165,focus,1
165,baby,1
165,spiders,1
165,go,4
165,apartment,1
165,buddy,1
165,Exactly,1
165,young,1
----
Now we need to write some Cypher to get the data into Neo4j:
[source,cypher]
----
// words
LOAD CSV WITH HEADERS FROM "file:/Users/markneedham/projects/neo4j-himym/data/import/words.csv" AS row
MERGE (word:Word {value: row.Word})
----
[source,cypher]
----
// episodes
LOAD CSV WITH HEADERS FROM "file:/Users/markneedham/projects/neo4j-himym/data/import/words.csv" AS row
MERGE (episode:Episode {id: TOINT(row.EpisodeId)})
----
[source,cypher]
----
// words to episodes
LOAD CSV WITH HEADERS FROM "file:/Users/markneedham/projects/neo4j-himym/data/import/words.csv" AS row
MATCH (word:Word {value: row.Word})
MATCH (episode:Episode {id: TOINT(row.EpisodeId)})
MERGE (word)-[:USED_IN_EPISODE {times: TOINT(row.Occurrences) }]->(episode);
----
Having done that we can write some simple queries to explore the words used in How I met your mother:
[source,cypher]
----
MATCH (word:Word)-[r:USED_IN_EPISODE]->(episode)
RETURN word.value, COUNT(episode) AS episodes, SUM(r.times) AS occurrences
ORDER BY occurrences DESC
LIMIT 10
==> +-------------------------------------+
==> | word.value | episodes | occurrences |
==> +-------------------------------------+
==> | "Ted" | 207 | 11437 |
==> | "Barney" | 208 | 8052 |
==> | "Marshall" | 208 | 7236 |
==> | "Robin" | 205 | 6626 |
==> | "Lily" | 207 | 6330 |
==> | "m" | 208 | 4777 |
==> | "re" | 208 | 4097 |
==> | "know" | 208 | 3489 |
==> | "Oh" | 197 | 3448 |
==> | "like" | 208 | 2498 |
==> +-------------------------------------+
==> 10 rows
----
The main 5 characters occupy the top 5 positions which is probably what you'd expect. I'm not sure why 'm' and 're' are in the next two position s - I expect that might be scraping gone wrong!
Our next query might focus around checking which character is referred to the post in each episode:
[source,cypher]
----
WITH ["Ted", "Barney", "Robin", "Lily", "Marshall"] as mainCharacters
MATCH (word:Word) WHERE word.value IN mainCharacters
MATCH (episode:Episode)<-[r:USED_IN_EPISODE]-(word)
WITH episode, word, r
ORDER BY episode.id, r.times DESC
WITH episode, COLLECT({word: word.value, times: r.times})[0] AS topWord
RETURN episode.id, topWord.word AS word, topWord.times AS occurrences
LIMIT 10
==> +---------------------------------------+
==> | episode.id | word | occurrences |
==> +---------------------------------------+
==> | 72 | "Barney" | 75 |
==> | 143 | "Ted" | 16 |
==> | 43 | "Lily" | 74 |
==> | 156 | "Ted" | 12 |
==> | 206 | "Barney" | 23 |
==> | 50 | "Marshall" | 51 |
==> | 113 | "Ted" | 76 |
==> | 178 | "Barney" | 21 |
==> | 182 | "Barney" | 22 |
==> | 67 | "Ted" | 84 |
==> +---------------------------------------+
==> 10 rows
----
If we dig into it further there's actually quite a bit of variety in the number of times the top character in each episode is mentioned which again probably says something about the data:
[source,cypher]
----
WITH ["Ted", "Barney", "Robin", "Lily", "Marshall"] as mainCharacters
MATCH (word:Word) WHERE word.value IN mainCharacters
MATCH (episode:Episode)<-[r:USED_IN_EPISODE]-(word)
WITH episode, word, r
ORDER BY episode.id, r.times DESC
WITH episode, COLLECT({word: word.value, times: r.times})[0] AS topWord
RETURN MIN(topWord.times), MAX(topWord.times), AVG(topWord.times), STDEV(topWord.times)
==> +-------------------------------------------------------------------------------------+
==> | MIN(topWord.times) | MAX(topWord.times) | AVG(topWord.times) | STDEV(topWord.times) |
==> +-------------------------------------------------------------------------------------+
==> | 3 | 259 | 63.90865384615385 | 42.36255207691068 |
==> +-------------------------------------------------------------------------------------+
==> 1 row
----
Obviously this is a very simple way of deriving structure from text, here are some of the things I want to try out next:
* Detecting common phrases/memes/phrases used in the show (e.g. the yellow umbrella) - this should be possible by creating different length n-grams and then searching for those phrases across the corpus.
* Pull out scenes - some of the transcripts use the keyword 'scene' to denote this although some of them don't. Depending how many transcripts contain scene demarkations perhaps we could train a classifier to detect where scenes should be in the transcripts which don't have scenes.
* Analyse who talks to each other or who talks about each other most frequently
* Create a graph of conversations as my colleagues http://maxdemarzi.com/2012/08/10/summarize-opinions-with-a-graph-part-1/[Max] and http://jexp.github.io/blog/html/simple_nlp_with_graphs.html[Michael] have previously blogged about. | null | null | [
-0.018923185765743256,
0.0022117288317531347,
-0.023556111380457878,
0.039004113525152206,
0.07353644073009491,
0.016478119418025017,
0.008611657656729221,
0.06165760010480881,
0.024760792031884193,
0.00292073842138052,
-0.014896603301167488,
0.020190991461277008,
-0.048057954758405685,
0.012101867236196995,
-0.011761139146983624,
0.06427082419395447,
0.06068393588066101,
-0.002225829754024744,
0.02856084331870079,
-0.012276860885322094,
0.014272545464336872,
0.07028629630804062,
-0.01506703719496727,
0.035232774913311005,
0.010809673927724361,
0.014258092269301414,
0.010733532719314098,
0.02142120711505413,
-0.04865386709570885,
0.0182658564299345,
0.030995534732937813,
-0.047385625541210175,
-0.002073870738968253,
-0.02587839774787426,
0.03153933212161064,
-0.008250419050455093,
-0.019726382568478584,
0.023607011884450912,
-0.002913976553827524,
0.019908078014850616,
-0.09932173043489456,
0.023559801280498505,
-0.034327685832977295,
-0.00023982640414033085,
-0.04598022624850273,
0.018632259219884872,
-0.021894199773669243,
0.04758815839886665,
0.0009229604620486498,
0.011883927509188652,
-0.03551691398024559,
0.03853948041796684,
0.02551324851810932,
-0.015257760882377625,
-0.013032364659011364,
0.08054579049348831,
0.015139000490307808,
-0.06852605938911438,
0.023656126111745834,
-0.014797799289226532,
-0.01874477043747902,
-0.020377211272716522,
0.02309824898838997,
0.022031091153621674,
0.0127702122554183,
-0.03845544159412384,
-0.022344045341014862,
0.05390242487192154,
-0.04189987853169441,
0.004200441762804985,
0.0006014933460392058,
-0.005565287079662085,
-0.0372922308743,
-0.005803732667118311,
0.020157327875494957,
-0.02603563852608204,
-0.0143471360206604,
0.049150045961141586,
0.008880951441824436,
0.021605972200632095,
-0.045456621795892715,
0.024913815781474113,
0.00033451890340074897,
0.037706758826971054,
-0.02804299257695675,
-0.03848723694682121,
-0.05069967359304428,
0.0006963139167055488,
-0.05957997590303421,
0.030453724786639214,
-0.013916372321546078,
-0.04387788102030754,
0.021236661821603775,
0.016595467925071716,
-0.001499443082138896,
-0.006889317184686661,
0.015283466316759586,
-0.0061545660719275475,
-0.021526087075471878,
-0.01638396456837654,
-0.06775838881731033,
-0.03313517943024635,
0.04452940821647644,
0.020214540883898735,
-0.06361526995897293,
-0.0012951928656548262,
-0.019737713038921356,
-0.007816839031875134,
0.010254496708512306,
-0.00014097172243054956,
-0.006404299754649401,
-0.005802016705274582,
-0.020711034536361694,
0.004539880435913801,
-0.0792035460472107,
0.07621992379426956,
0.027318216860294342,
-0.05139157921075821,
-0.016995107755064964,
-0.0016352697275578976,
0.03508364036679268,
0.009858292527496815,
-0.008881681598722935,
0.06945765018463135,
0.0009150956175290048,
0.018096495419740677,
-0.01727587915956974,
0.04294731467962265,
-0.01341516524553299,
-0.035053811967372894,
-0.023169755935668945,
0.06351158022880554,
-0.0015044590691104531,
0.02024209126830101,
0.0010121393715962768,
-0.016489656642079353,
-0.03081459552049637,
0.007067802362143993,
0.05110621824860573,
0.06877459585666656,
-0.015317115932703018,
-0.01276928186416626,
-0.01968194730579853,
0.029283074662089348,
0.0461759977042675,
-0.018333587795495987,
-0.014163919724524021,
-0.013074426911771297,
-0.058693647384643555,
0.01679879054427147,
0.007368945050984621,
-0.007720984518527985,
0.05663919821381569,
-0.029563801363110542,
0.0056410725228488445,
0.06925589591264725,
0.0378168523311615,
0.05087926983833313,
0.00445213820785284,
0.011434230953454971,
0.07857589423656464,
0.04803207144141197,
-0.0040800985880196095,
0.02467655949294567,
0.004075321834534407,
-0.026166237890720367,
-0.007342053577303886,
0.05919194221496582,
-0.022354094311594963,
0.0115239592269063,
-0.06357645988464355,
-0.03048202581703663,
0.06928884983062744,
-0.010586953721940517,
-0.02729063481092453,
0.008226549252867699,
0.052785757929086685,
0.02427113614976406,
0.006753262132406235,
-0.0006558396853506565,
-0.08139297366142273,
0.038482218980789185,
-0.0010941466316580772,
0.009397069923579693,
0.05014851689338684,
0.004263717215508223,
0.0768878385424614,
0.03450915217399597,
0.016896089538931847,
0.022550757974386215,
-0.09488894045352936,
-0.09409153461456299,
-0.03464283421635628,
0.022230731323361397,
0.032691553235054016,
-0.028077106922864914,
0.009209797717630863,
0.10663117468357086,
0.029178941622376442,
0.032237708568573,
0.015279159881174564,
-0.0005133821978233755,
0.013154298067092896,
-0.05302237719297409,
-0.04542764276266098,
0.01920183375477791,
0.030318066477775574,
-0.045141804963350296,
0.0008631889359094203,
0.000951589725445956,
-0.04370373114943504,
0.016480475664138794,
0.05356442555785179,
-0.03656327351927757,
0.06042860820889473,
0.02075718715786934,
0.047194451093673706,
-0.06082570180296898,
0.027245350182056427,
-0.04460640624165535,
0.018100250512361526,
-0.004363302141427994,
-0.0006095884600654244,
-0.027889618650078773,
0.00008967902977019548,
0.11619313806295395,
0.04713989794254303,
-0.012538439594209194,
-0.035854142159223557,
0.037850573658943176,
0.000545293150935322,
-0.02004077285528183,
-0.008800205774605274,
-0.021072158589959145,
-0.03631123527884483,
0.02252262271940708,
-0.04886496439576149,
-0.030875688418745995,
0.007727602496743202,
-0.043739352375268936,
0.01842322014272213,
0.03064955770969391,
-0.019710645079612732,
0.043531354516744614,
0.02371433563530445,
-0.019240370020270348,
0.003770490875467658,
-0.014411241747438908,
-0.02196103148162365,
-0.02191203273832798,
0.015029734000563622,
-0.009970180690288544,
0.01975914277136326,
-0.01876002363860607,
-0.027049865573644638,
-0.0024866953026503325,
-0.07819730043411255,
0.000977401970885694,
0.04705071076750755,
0.05841183289885521,
0.004461109172552824,
0.052083633840084076,
-0.015107371844351292,
0.0005149909411557019,
-0.014521769247949123,
-0.04527602344751358,
-0.06819911301136017,
-0.05840013548731804,
0.0100638959556818,
0.01552834827452898,
0.018254226073622704,
0.001726416521705687,
-0.02932857722043991,
0.008683279156684875,
0.024782735854387283,
0.0032106635626405478,
0.054830607026815414,
-0.026383938267827034,
-0.0018863305449485779,
-0.014652836136519909,
-0.030306730419397354,
0.05087975785136223,
-0.03359567001461983,
-0.02370498515665531,
-0.04330558329820633,
-0.0811600610613823,
0.017265234142541885,
-0.02410714514553547,
-0.023692583665251732,
0.012023517861962318,
-0.013161463662981987,
0.03449047729372978,
0.016243144869804382,
-0.012723244726657867,
0.056316498667001724,
0.0010371403768658638,
0.03718927875161171,
0.026532921940088272,
0.004107683431357145,
0.03695523738861084,
-0.0190797820687294,
-0.02678014524281025,
0.05008720979094505,
-0.02168147824704647,
0.00006403649604180828,
-0.003466253401711583,
0.022997941821813583,
-0.04122842103242874,
-0.27510321140289307,
0.04454736039042473,
0.004843139089643955,
-0.04377928748726845,
0.046954575926065445,
-0.04304218292236328,
0.001027915976010263,
-0.054085783660411835,
0.010550638660788536,
0.009237694554030895,
-0.03267872333526611,
-0.042735762894153595,
-0.02961692214012146,
0.039211492985486984,
0.002791924402117729,
0.023802801966667175,
-0.03732538968324661,
-0.04756481945514679,
0.013574701733887196,
0.05548015236854553,
0.017009446397423744,
-0.03801025450229645,
-0.010843564756214619,
0.0671212449669838,
0.022483348846435547,
0.06472079455852509,
-0.07777866721153259,
0.02373112365603447,
-0.040191009640693665,
-0.018051885068416595,
0.03410659357905388,
-0.04000525921583176,
0.005524629261344671,
-0.012059208005666733,
-0.00166100705973804,
-0.02757532149553299,
0.06817466765642166,
-0.013152976520359516,
0.005027176346629858,
-0.01281696930527687,
-0.039190180599689484,
-0.04451942443847656,
-0.010658591985702515,
0.0086727449670434,
0.08111274242401123,
-0.007475938182324171,
-0.05358961597084999,
-0.015213429927825928,
-0.018452484160661697,
0.07551229000091553,
-0.04683610051870346,
-0.017834695056080818,
-0.03056478686630726,
0.025447731837630272,
-0.022034987807273865,
0.004153294954448938,
-0.009713717736303806,
0.01983073726296425,
-0.04161568358540535,
-0.046215470880270004,
0.011829467490315437,
-0.02557210810482502,
-0.00232928479090333,
-0.05048498883843422,
-0.018346158787608147,
-0.06935425102710724,
-0.06180505082011223,
0.013757746666669846,
0.05920597165822983,
0.027993660420179367,
-0.049861397594213486,
0.007226088549941778,
-0.013887540437281132,
-0.1069839745759964,
0.009312331676483154,
-0.024362027645111084,
-0.03250419721007347,
0.021108083426952362,
-0.005834424402564764,
0.047345880419015884,
-0.046786222606897354,
-0.02905554510653019,
0.03478669375181198,
-0.013247119262814522,
0.01092586386948824,
-0.052596013993024826,
0.04804537072777748,
-0.004828075412660837,
-0.005115407984703779,
-0.038730110973119736,
0.04513010010123253,
-0.04768369346857071,
-0.04320910573005676,
-0.007429569493979216,
0.0011359613854438066,
0.026176873594522476,
0.002780822105705738,
0.03063284419476986,
0.017518561333417892,
0.04679429903626442,
0.011919200420379639,
-0.041765570640563965,
0.003927416633814573,
-0.01152197178453207,
0.008146270178258419,
-0.028156306594610214,
-0.034762270748615265,
0.012968768365681171,
-0.007535635959357023,
0.002422808203846216,
-0.020949451252818108,
0.006305923219770193,
-0.023424802348017693,
-0.036041975021362305,
0.019373539835214615,
-0.010437902063131332,
0.03823177143931389,
0.03523920848965645,
0.023343553766608238,
-0.019999710842967033,
-0.07127553224563599,
-0.004877791274338961,
-0.014977982267737389,
-0.020213322713971138,
-0.04638171195983887,
-0.0484125092625618,
0.03227868303656578,
-0.025210361927747726,
0.009972812607884407,
0.009234756231307983,
-0.0345633290708065,
-0.007310973480343819,
0.043498799204826355,
-0.01182862464338541,
0.04524984210729599,
-0.05965328589081764,
-0.03289142623543739,
-0.03309217467904091,
0.01538101863116026,
0.020888986065983772,
0.012630997225642204,
-0.018037838861346245,
-0.022852381691336632,
0.02208082750439644,
0.059516388922929764,
0.011506132781505585,
0.02379508875310421,
0.010889583267271519,
-0.0069458675570786,
0.0034588307607918978,
-0.0015674523310735822,
-0.010026579722762108,
0.02212369814515114,
-0.005673518870025873,
-0.009276997298002243,
-0.018843237310647964,
0.020438266918063164,
0.018988056108355522,
-0.004859776236116886,
-0.03972245380282402,
0.023719174787402153,
-0.05356547608971596,
0.0053313253447413445,
0.003696674248203635,
-0.03448827192187309,
0.032839562743902206,
-0.0005912690539844334,
0.041985973715782166,
0.022258806973695755,
-0.015259021893143654,
0.011118096299469471,
0.01441327203065157,
-0.019523730501532555,
0.017033066600561142,
-0.00890295673161745,
-0.036267779767513275,
0.03486112132668495,
0.02606993354856968,
-0.013894773088395596,
0.013065977022051811,
-0.03226374089717865,
-0.03397310525178909,
0.011378394439816475,
0.019063860177993774,
0.050659507513046265,
0.09062061458826065,
-0.03696298971772194,
0.01701756753027439,
-0.03442586213350296,
-0.000380530342226848,
-0.028334958478808403,
0.002530158730223775,
-0.041140858083963394,
-0.005640621297061443,
-0.019358638674020767,
-0.084189273416996,
0.01869768090546131,
-0.029912741854786873,
0.004848027601838112,
0.021628297865390778,
-0.030218886211514473,
0.00035390726407058537,
-0.05452088639140129,
0.032022297382354736,
0.06151450052857399,
-0.060694918036460876,
-0.006970815826207399,
-0.007949283346533775,
0.025053611025214195,
0.013807768002152443,
0.03766670078039169,
-0.045703284442424774,
-0.013786274008452892,
-0.023813171312212944,
0.02229394018650055,
-0.04000244662165642,
-0.03043537586927414,
-0.02718491293489933,
0.0467132106423378,
-0.008257577195763588,
0.02370108664035797,
-0.03495441749691963,
-0.00224247295409441,
0.009373164735734463,
-0.035299818962812424,
0.0008360272040590644,
-0.011536217294633389,
-0.03109084628522396,
0.007699131034314632,
-0.004569725599139929,
0.01683308556675911,
-0.006089875474572182,
0.03054806962609291,
0.024762237444519997,
-0.005111858248710632,
-0.02365589141845703,
-0.03582819923758507,
0.016131926327943802,
0.0016466735396534204,
0.0950886607170105,
0.04975510761141777,
-0.01924639753997326,
-0.028801145032048225,
0.00884521845728159,
-0.012912389822304249,
0.024375135079026222,
0.015915147960186005,
-0.0002407696592854336,
0.043454986065626144,
0.05874813720583916,
0.03126409649848938,
-0.0030194062273949385,
-0.030042089521884918,
-0.03967373073101044,
0.03293297812342644,
-0.059987254440784454,
-0.03379632905125618,
-0.012738429009914398,
-0.06091756746172905,
0.022926902398467064,
0.01485641859471798,
0.04735720157623291,
-0.03544633463025093,
0.03302872180938721,
0.03264938294887543,
0.03544317185878754,
0.04496685042977333,
0.03163705766201019,
0.036772340536117554,
-0.029587777331471443,
0.007530872244387865,
-0.07964369654655457,
-0.017152240499854088,
0.05399824306368828,
0.010283219628036022,
0.0007528435089625418,
0.019319014623761177,
-0.026544945314526558,
0.03709641844034195,
-0.07626769691705704,
-0.04312865063548088,
0.023894762620329857,
-0.04516693577170372,
-0.017062731087207794,
0.014803996309638023,
-0.03989371657371521,
0.02605682983994484,
0.04025603458285332,
-0.034351643174886703,
-0.011779041029512882,
0.0030585837084800005,
0.06228154897689819,
0.020544013008475304,
0.008767041377723217,
0.017598547041416168,
-0.035675518214702606,
0.08444217592477798,
0.014213225804269314,
0.03836267068982124,
0.05120634287595749,
-0.0016963130328804255,
0.014211626723408699,
0.0319153368473053,
0.008033216930925846,
0.0008107211906462908,
0.008506405167281628,
-0.015448377467691898,
-0.061184901744127274,
0.03706062585115433,
0.018337493762373924,
-0.02707589603960514,
-0.036957431584596634,
0.08053399622440338,
0.0213785283267498,
-0.029899245128035545,
-0.049616459757089615,
0.013034069910645485,
-0.028201831504702568,
-0.01478775218129158,
-0.022707762196660042,
-0.013274529948830605,
-0.03598756343126297,
0.04129606485366821,
0.0038619134575128555,
0.018230963498353958,
0.0558292455971241,
-0.014764225110411644,
-0.0037555410526692867,
0.018545715138316154,
0.06405562907457352,
0.07421170920133591,
0.059637706726789474,
0.00209310045465827,
0.07237795740365982,
-0.039633434265851974,
-0.04596268758177757,
-0.001984781352803111,
0.0048873089253902435,
0.0267996434122324,
-0.012157904915511608,
-0.003701187204569578,
0.033603280782699585,
-0.021353082731366158,
0.05914602801203728,
-0.015500044450163841,
0.010957915335893631,
-0.018875304609537125,
0.014983916655182838,
0.03453603386878967,
-0.0037070417311042547,
-0.011140858754515648,
0.03353274613618851,
-0.014886376447975636,
-0.04816361516714096,
0.053011465817689896,
0.010520265437662601,
-0.03910941258072853,
0.027074694633483887,
-0.026324357837438583,
0.039672307670116425,
0.0024678062181919813,
0.05884876847267151,
0.06236922740936279,
0.0023566221352666616,
-0.004971437156200409,
0.013758699409663677,
0.029624978080391884,
-0.01570891961455345,
0.04422770068049431,
-0.010065194219350815,
-0.028036098927259445,
0.009848793968558311,
-0.052117981016635895,
-0.025264795869588852,
-0.03089221380650997,
-0.009422292932868004,
0.039802875369787216,
-0.022933240979909897,
0.0015478194691240788,
0.006603511516004801,
0.007799111306667328,
-0.0521758571267128,
-0.03799531236290932,
-0.03735924884676933,
-0.04457470402121544,
-0.047827281057834625,
-0.04375855624675751,
0.01586971990764141,
0.021077964454889297,
-0.028618179261684418,
-0.008552554994821548,
-0.04621068760752678,
0.0021057918202131987,
0.004369975067675114,
-0.034393925219774246,
-0.028830135241150856,
0.01461227610707283,
0.018725091591477394,
0.031097019091248512,
0.012463739141821861,
0.03839040547609329,
0.012461679987609386,
-0.035704899579286575,
-0.0034807624761015177,
0.03706875443458557,
0.06731009483337402,
0.010527259670197964,
0.0016014014836400747,
-0.09679299592971802,
-0.014623275958001614,
0.025217795744538307,
-0.00584641145542264,
-0.07052353769540787,
-0.008888762444257736,
0.053636230528354645,
0.02401605434715748,
0.043117932975292206,
0.0027303388342261314,
-0.013255275785923004,
-0.051095135509967804,
-0.023719891905784607,
0.005468123592436314,
-0.01220459770411253,
0.0591922402381897,
-0.032578837126493454,
0.09403923153877258,
0.00023935496574267745,
0.0005851131281815469,
-0.04454720392823219,
-0.016081206500530243,
-0.020930994302034378,
0.0440472736954689,
-0.032499298453330994,
-0.026896590366959572,
-0.03336948901414871,
-0.06739167869091034,
-0.05010706186294556,
0.0329904705286026,
-0.04702867940068245,
-0.02470608800649643,
0.03431244567036629,
0.0021810533944517374,
-0.06408067047595978,
0.04199809953570366,
-0.05121343955397606,
-0.0034865294583141804,
-0.014589502476155758,
-0.030293205752968788,
-0.020428385585546494,
0.024152131751179695,
0.007221257779747248,
0.0018608985701575875,
-0.0054682521149516106,
-0.03141777589917183,
-0.047945525497198105,
-0.04578597471117973,
0.04285325109958649,
0.04479185491800308,
-0.010396670550107956,
0.012422105297446251
] | [
-0.07686269283294678,
-0.009987516328692436,
-0.020808489993214607,
-0.02625519409775734,
0.08901745826005936,
-0.04800769314169884,
-0.036322999745607376,
0.0059190657921135426,
0.01179992500692606,
-0.0024799297098070383,
0.005035740789026022,
-0.03337906301021576,
-0.005233057774603367,
-0.0018967906944453716,
0.08616562187671661,
0.007802737411111593,
0.02107412740588188,
-0.06891021877527237,
-0.0282269436866045,
0.04954834282398224,
0.0007038501207716763,
-0.04068239778280258,
-0.023182086646556854,
-0.033218637108802795,
0.020086370408535004,
0.02305581234395504,
0.04951953515410423,
-0.031138747930526733,
-0.017705684527754784,
-0.19758717715740204,
0.00041324488120153546,
0.0030959148425608873,
0.07069403678178787,
-0.0037800876889377832,
0.028969930484890938,
0.014956681989133358,
0.01944708824157715,
-0.005631917156279087,
-0.023350009694695473,
0.04208289459347725,
0.03311131149530411,
-0.00002169260369555559,
-0.061505530029535294,
-0.047123316675424576,
0.01574711687862873,
-0.004026811104267836,
-0.0031116658356040716,
0.002774387365207076,
0.0161371398717165,
0.043910879641771317,
-0.08738542348146439,
0.011831766925752163,
-0.03226298838853836,
-0.01626955159008503,
0.0017988331383094192,
0.010487179271876812,
0.0340358167886734,
0.05047294870018959,
0.016450004652142525,
0.029948819428682327,
0.0053910911083221436,
0.019672658294439316,
-0.13808859884738922,
0.11607817560434341,
0.03178229182958603,
0.07033780962228775,
-0.032555337995290756,
-0.01905093342065811,
-0.006714987568557262,
0.04886627197265625,
-0.047779880464076996,
-0.01879430003464222,
-0.0198117196559906,
0.046996042132377625,
-0.004930722061544657,
-0.009229467250406742,
0.0362718403339386,
0.004227040335536003,
-0.005153600592166185,
-0.057455457746982574,
-0.048769958317279816,
0.0278901606798172,
-0.002303164219483733,
-0.02232981286942959,
0.0013286926550790668,
0.003851913148537278,
-0.02504633739590645,
0.019637171179056168,
-0.009288533590734005,
0.01950681023299694,
0.0460098497569561,
-0.02822209894657135,
0.04207146167755127,
0.026438206434249878,
-0.08153162896633148,
-0.05451885983347893,
0.010805920697748661,
0.03057173080742359,
-0.028688520193099976,
0.40387389063835144,
-0.028742240741848946,
-0.02108069323003292,
0.07484080642461777,
0.05039641633629799,
0.002933201612904668,
-0.003778264857828617,
0.030749104917049408,
-0.04689333960413933,
0.009402415715157986,
-0.04468685761094093,
0.023973429575562477,
-0.022854141891002655,
0.06112890690565109,
-0.06033992022275925,
0.051733795553445816,
0.03042992763221264,
-0.000907694804482162,
0.0028135485481470823,
-0.0002428785664960742,
0.004058437887579203,
0.0017537586390972137,
-0.006642148829996586,
0.03197574242949486,
-0.020348776131868362,
0.023028291761875153,
-0.03567418456077576,
0.0619816817343235,
0.05147068575024605,
0.04536460340023041,
-0.011407648213207722,
0.04218652844429016,
-0.026268748566508293,
-0.08307734876871109,
0.026238635182380676,
-0.007741429377347231,
-0.0012759262463077903,
0.02753777988255024,
-0.030017439275979996,
0.0035305186174809933,
-0.010179628618061543,
0.004589200019836426,
-0.10650487244129181,
-0.010789553634822369,
0.03601793199777603,
-0.043480757623910904,
0.11077725887298584,
0.031023100018501282,
-0.0042105549946427345,
-0.03264535218477249,
-0.01334866788238287,
0.004920395091176033,
0.0054795267060399055,
0.005300980992615223,
-0.06298397481441498,
0.003544469829648733,
0.019163651391863823,
0.10373640060424805,
-0.029099106788635254,
-0.07246050238609314,
-0.02372824214398861,
-0.005111267324537039,
-0.05496272072196007,
-0.017217986285686493,
0.022303149104118347,
0.053501956164836884,
-0.1079772412776947,
-0.02593466453254223,
0.030798647552728653,
0.04346229135990143,
-0.06387036293745041,
0.026829708367586136,
0.008456364274024963,
-0.03807436302304268,
-0.011512829922139645,
0.026885682716965675,
-0.05167799070477486,
-0.026131171733140945,
0.020023876801133156,
0.061095625162124634,
0.021846037358045578,
-0.014009366743266582,
-0.027526753023266792,
-0.022172218188643456,
0.030518287792801857,
-0.05269088223576546,
-0.0941835567355156,
-0.040587443858385086,
-0.0008049920434132218,
-0.026640284806489944,
0.004194026812911034,
0.026280729100108147,
-0.03457712009549141,
-0.046545688062906265,
0.04696861654520035,
-0.030197374522686005,
-0.022258400917053223,
0.036643195897340775,
0.00569193996489048,
-0.028367461636662483,
-0.030681243166327477,
-0.03781227767467499,
-0.02172294817864895,
-0.0490187406539917,
0.019999198615550995,
-0.06790334731340408,
0.038479432463645935,
0.042777106165885925,
-0.041321709752082825,
0.09611986577510834,
0.012369386851787567,
-0.020607853308320045,
-0.01742676831781864,
-0.030614716932177544,
0.015861516818404198,
-0.021674232557415962,
-0.031496696174144745,
0.01113593764603138,
-0.01818719506263733,
0.03698386624455452,
0.04249532148241997,
-0.024120362475514412,
-0.07043195515871048,
-0.04603182151913643,
-0.3391892611980438,
-0.04193760082125664,
-0.015012204647064209,
-0.007097522262483835,
-0.012346429750323296,
-0.07602410763502121,
0.03698570281267166,
-0.015446335077285767,
0.008011224679648876,
0.06234930828213692,
0.08907891809940338,
-0.03344499692320824,
0.029046153649687767,
-0.10404263436794281,
0.00688214274123311,
0.013045667670667171,
-0.011686340905725956,
0.001704486319795251,
-0.007265142165124416,
0.050301775336265564,
0.005960590206086636,
-0.03501620143651962,
-0.020115988329052925,
-0.061455611139535904,
-0.011656961403787136,
-0.019983576610684395,
0.12029459327459335,
0.05956616252660751,
0.05695468187332153,
-0.06350032985210419,
0.04865200072526932,
0.01829317770898342,
0.020635245367884636,
-0.11163140088319778,
-0.006781364791095257,
-0.038653045892715454,
0.01684558019042015,
0.01655089668929577,
0.0002637621946632862,
-0.04103029519319534,
-0.06521647423505783,
0.05184537544846535,
-0.0307872723788023,
-0.021449051797389984,
-0.06378311663866043,
0.01233245525509119,
-0.020278217270970345,
-0.03570428863167763,
0.009348851628601551,
0.06762097030878067,
0.004907811526209116,
0.021726084873080254,
0.023147590458393097,
0.018673386424779892,
-0.01410843525081873,
-0.02651580609381199,
-0.0666884332895279,
0.016924040392041206,
-0.014827379025518894,
-0.005099108908325434,
0.02120472490787506,
0.039291027933359146,
0.02637830562889576,
-0.07838539779186249,
-0.02827344462275505,
0.022958381101489067,
0.013050640001893044,
0.010783819481730461,
0.03359973803162575,
-0.004618356935679913,
-0.014491601847112179,
0.08030403405427933,
-0.02593127265572548,
0.037301234900951385,
-0.0003813502553384751,
0.07395317405462265,
0.022551026195287704,
0.017988983541727066,
0.03646958991885185,
-0.022394144907593727,
0.026892228052020073,
-0.023670369759202003,
0.02393892966210842,
-0.02248753048479557,
0.025540577247738838,
0.04032459855079651,
0.006148019805550575,
-0.033598754554986954,
0.08385808020830154,
0.026938877999782562,
-0.009939786978065968,
0.020972855389118195,
-0.04281001165509224,
-0.0352666899561882,
0.02949259988963604,
0.0044283256866037846,
-0.2462623566389084,
0.024038169533014297,
0.023466020822525024,
0.06644389778375626,
0.013886763714253902,
-0.0166697409003973,
0.023508412763476372,
-0.036208994686603546,
0.03710594400763512,
0.009495445527136326,
0.0522075779736042,
0.012831281870603561,
0.01633579656481743,
-0.020188450813293457,
0.0005014377529732883,
0.01002501416951418,
0.06875190883874893,
0.047972239553928375,
-0.005666856653988361,
0.034718915820121765,
-0.005015132948756218,
-0.03351084887981415,
0.13976626098155975,
0.02715296298265457,
-0.016054756939411163,
0.020755527541041374,
-0.00943728256970644,
-0.002573655918240547,
0.047443050891160965,
0.02162867784500122,
-0.013447069562971592,
-0.006843208335340023,
0.005955614615231752,
0.024871952831745148,
0.01775817573070526,
-0.06009084731340408,
-0.03577332943677902,
0.06545090675354004,
0.047461219131946564,
-0.012041213922202587,
-0.024620065465569496,
0.01464666798710823,
-0.05107768252491951,
0.025834057480096817,
0.054061517119407654,
0.006722691468894482,
0.005310323555022478,
-0.02438492327928543,
-0.07014213502407074,
0.020511744543910027,
-0.02263374626636505,
-0.01966092921793461,
0.023399583995342255,
0.0031645800918340683,
0.017650721594691277,
0.10955663025379181,
0.01703549548983574,
0.028424061834812164,
0.05213122442364693,
-0.002139819087460637,
-0.051622115075588226,
-0.05744888633489609,
0.09157483279705048,
0.041259851306676865,
0.023528052493929863
] | [
-0.013663409277796745,
0.03222619369626045,
-0.022660866379737854,
0.017022838816046715,
0.020253939554095268,
0.0018267856212332845,
0.002100087935104966,
0.014966366812586784,
0.003598584793508053,
-0.014244702644646168,
-0.012106371112167835,
0.000773899897467345,
0.02175970748066902,
-0.061960261315107346,
0.006266314070671797,
-0.009672515094280243,
-0.027006646618247032,
-0.0336441732943058,
0.02424824796617031,
-0.009068327024579048,
-0.020594816654920578,
0.06464541703462601,
0.04012523218989372,
-0.0075991190969944,
-0.012447944842278957,
0.03631854057312012,
-0.03535480052232742,
-0.0016605048440396786,
0.029922695830464363,
-0.09768064320087433,
0.0035878363996744156,
-0.01977583020925522,
0.003644960466772318,
0.012368044815957546,
0.008298033848404884,
-0.02892744168639183,
-0.018860043957829475,
-0.00507113803178072,
-0.017729684710502625,
0.03363720700144768,
-0.024960802868008614,
-0.014580432325601578,
-0.01994451694190502,
0.029329046607017517,
-0.041579701006412506,
-0.02893628366291523,
-0.015448054298758507,
-0.011171418242156506,
-0.025507304817438126,
-0.013253124430775642,
-0.050229594111442566,
0.007249104790389538,
-0.015002012252807617,
0.033420152962207794,
-0.0026677658315747976,
-0.022497382014989853,
0.0066623380407691,
-0.020655818283557892,
-0.002541974652558565,
-0.0301862433552742,
-0.003066080855205655,
-0.0324544757604599,
-0.022763114422559738,
-0.019674720242619514,
0.001828100299462676,
-0.012273678556084633,
-0.04675516113638878,
0.027643924579024315,
0.00023171782959252596,
0.007759372238069773,
-0.03165717050433159,
0.018803944811224937,
-0.004716093651950359,
-0.015754299238324165,
-0.041338078677654266,
-0.04786252975463867,
0.007978841662406921,
-0.050316017121076584,
-0.002522651571780443,
0.009184330701828003,
-0.03935758396983147,
-0.013721862807869911,
0.026061270385980606,
0.0457904078066349,
-0.001919254893437028,
-0.019684426486492157,
0.01451218593865633,
0.0011943181743845344,
-0.024512561038136482,
0.03050541877746582,
-0.02352900803089142,
0.005380098707973957,
0.03197011724114418,
0.01550392247736454,
-0.09034840017557144,
0.030583152547478676,
-0.0031298163812607527,
-0.01943354122340679,
-0.011734528467059135,
0.8339278101921082,
-0.0081962700933218,
0.007358631119132042,
0.02288861945271492,
0.001106125651858747,
0.005267397966235876,
-0.027720268815755844,
0.021660899743437767,
-0.008068443275988102,
0.03038746491074562,
-0.03688345104455948,
0.021359654143452644,
-0.002718603005632758,
0.005147658288478851,
0.026051059365272522,
0.006583684589713812,
0.01041084062308073,
0.0038042673841118813,
0.019383367151021957,
0.021537013351917267,
0.025156086310744286,
0.042037636041641235,
0.012331882491707802,
-0.002220644848421216,
0.015961792320013046,
0.000916976947337389,
-0.16586919128894806,
0.03518855944275856,
-7.121230000621852e-33,
0.023679561913013458,
-0.004922904074192047,
-0.01846013218164444,
-0.0014738362515345216,
0.014710629358887672,
0.03476041927933693,
-0.011084135621786118,
0.001151691540144384,
-0.013899752870202065,
-0.009006627835333347,
0.005722226575016975,
0.015122671611607075,
-0.0013147342251613736,
-0.011056473478674889,
0.031858284026384354,
-0.0023877499625086784,
-0.017617011442780495,
0.043615661561489105,
0.019254593178629875,
0.007093829568475485,
0.06540124118328094,
0.05518483370542526,
0.0481819212436676,
0.012510467320680618,
-0.037600547075271606,
0.01219253521412611,
-0.01734302006661892,
-0.010740906931459904,
-0.025316951796412468,
-0.04772697016596794,
-0.053963594138622284,
0.02658180147409439,
0.004568768665194511,
-0.06453800946474075,
0.010376432910561562,
-0.05393385514616966,
-0.01952093280851841,
-0.012545840814709663,
-0.02084149420261383,
-0.000731095380615443,
-0.04205015301704407,
0.02153162658214569,
0.0006275316118262708,
-0.05973697453737259,
-0.030494598671793938,
-0.012546882964670658,
-0.019935065880417824,
-0.019670208916068077,
-0.007500210776925087,
0.045029714703559875,
0.005855189636349678,
-0.02647058479487896,
0.02615593746304512,
-0.020105673000216484,
0.0004101546946913004,
0.050356145948171616,
-0.004839915316551924,
-0.0016546192346140742,
0.053411778062582016,
0.00644921837374568,
0.009341071359813213,
-0.012395288795232773,
0.04111284762620926,
0.008160931058228016,
-0.004145489539951086,
0.0027777065988630056,
0.05377918481826782,
0.01709929294884205,
0.00951303169131279,
-0.010799488984048367,
-0.047479305416345596,
0.00937135610729456,
-0.013165531679987907,
-0.029117321595549583,
0.006738391704857349,
-0.03299659490585327,
-0.013549481518566608,
-0.02329386956989765,
0.0011939638061448932,
0.043167632073163986,
0.04878086596727371,
-0.023541728034615517,
0.01196364127099514,
-0.024376101791858673,
-0.017169848084449768,
-0.01873006299138069,
-0.0014024488627910614,
0.02135479263961315,
-0.021828634664416313,
0.02493012137711048,
0.02340453490614891,
0.031751926988363266,
-0.01999465562403202,
-0.02443547174334526,
-0.018340278416872025,
6.573922034930903e-33,
0.02133297733962536,
-0.013850994408130646,
-0.011535133235156536,
-0.01159512996673584,
0.038742244243621826,
0.021468546241521835,
0.014697968028485775,
0.03094460442662239,
-0.02785089984536171,
0.042570341378450394,
-0.0037781582213938236,
-0.01059521920979023,
-0.04561009630560875,
-0.012663407251238823,
0.061463966965675354,
0.006034779828041792,
-0.009370057843625546,
0.006264126859605312,
-0.019939949735999107,
-0.015229934826493263,
-0.017007485032081604,
0.006313347723335028,
-0.010540716350078583,
0.004377088509500027,
0.059192899614572525,
0.008423618972301483,
-0.0029214199166744947,
0.02034953236579895,
0.0015826475573703647,
0.020727399736642838,
-0.014500678516924381,
-0.013499042950570583,
-0.022641422227025032,
-0.013617466203868389,
-0.004741629585623741,
0.067738376557827,
0.01091383770108223,
-0.010627889074385166,
0.005857326090335846,
-0.0012563519412651658,
0.0698440819978714,
0.03232942521572113,
0.012231790460646152,
0.02702019363641739,
-0.01567133329808712,
0.030648546293377876,
-0.029282070696353912,
0.01898469589650631,
0.0035084974952042103,
0.005181563552469015,
0.013610590249300003,
-0.0011047760490328074,
0.0014696239959448576,
0.015472764149308205,
0.01705263741314411,
-0.03946591541171074,
-0.0075751254335045815,
0.012666965834796429,
-0.07210514694452286,
-0.009383542463183403,
-0.04113410413265228,
0.0033084966707974672,
-0.048587240278720856,
0.02217503823339939,
-0.0356026329100132,
-0.01608152501285076,
-0.045403655618429184,
-0.00267664878629148,
0.002622856991365552,
0.009487147442996502,
0.007720070891082287,
-0.036748845130205154,
-0.008732969872653484,
0.0055858115665614605,
0.022588077932596207,
0.012141386047005653,
-0.01802150532603264,
-0.0002825352130457759,
-0.04085557535290718,
0.033103447407484055,
0.02754928171634674,
0.025083284825086594,
0.02020178735256195,
-0.018251508474349976,
0.012325713410973549,
-0.0006890310323797166,
-0.016269968822598457,
0.005955533590167761,
0.04490313678979874,
-0.010842493735253811,
0.021926993504166603,
-0.036983564496040344,
0.000352763629052788,
0.0011227763025090098,
-0.0021387788001447916,
-1.2710538399574034e-8,
-0.05750279128551483,
-0.02505488507449627,
0.0065753888338804245,
0.054629188030958176,
0.029989207163453102,
0.0313175804913044,
-0.017163550481200218,
-0.015596896409988403,
0.004834546707570553,
0.012490571476519108,
0.06261581182479858,
-0.033769674599170685,
0.017450479790568352,
0.022163337096571922,
0.012065054848790169,
-0.018323302268981934,
0.004341216757893562,
-0.02731204219162464,
0.02747263014316559,
-0.004733684938400984,
0.02621433697640896,
0.03679485619068146,
0.015248903073370457,
-0.0010521726217120886,
0.03492351621389389,
0.0034806879702955484,
0.00816913228482008,
-0.09387470781803131,
-0.02752407267689705,
-0.014081557281315327,
0.03339437022805214,
-0.033763587474823,
-0.04722846299409866,
-0.0053766826167702675,
-0.006619480438530445,
-0.031587403267621994,
0.013541021384298801,
0.006602369248867035,
-0.021341461688280106,
0.008951821364462376,
0.006205518264323473,
-0.0023064464330673218,
-0.01648365892469883,
-0.04018678888678551,
-0.02998674474656582,
0.005292332731187344,
-0.03564226254820824,
0.006525393109768629,
0.04056105017662048,
-0.037393659353256226,
0.01746327430009842,
-0.034249309450387955,
0.016412613913416862,
0.042085714638233185,
0.023420820012688637,
0.01381553616374731,
0.04883198067545891,
0.010066245682537556,
-0.04666803032159805,
-0.020717013627290726,
0.04395552724599838,
0.026982730254530907,
-0.017618125304579735,
-0.028727469965815544
] | python-nltkneo4j-analysing-the-transcripts-of-how-i-met-your-mother | https://markhneedham.com/blog/2015/01/10/python-nltkneo4j-analysing-the-transcripts-of-how-i-met-your-mother |
false | 2015-01-19 00:24:23 | Python/NLTK: Finding the most common phrases in How I Met Your Mother | [
"python"
] | [
"Python"
] | Following on from http://www.markhneedham.com/blog/2015/01/10/python-nltkneo4j-analysing-the-transcripts-of-how-i-met-your-mother/[last week's blog post] where I found the most popular words in How I met your mother transcripts, in this post we'll have a look at how we can pull out sentences and then phrases from our corpus.
The first thing I did was tweak the scraping script to pull out the sentences spoken by characters in the transcripts.</p>
Each dialogue is separated by two line breaks so we use that as our separator. I also manually skimmed through the transcripts and found out which tags we need to strip out. I ended up with the following:
[source,python]
----
import csv
import nltk
import re
import bs4
from bs4 import BeautifulSoup, NavigableString
from soupselect import select
from nltk.corpus import stopwords
from collections import Counter
from nltk.tokenize import word_tokenize
episodes_dict = {}
def strip_tags(soup, invalid_tags):
for tag in invalid_tags:
for match in soup.findAll(tag):
match.replaceWithChildren()
return soup
def extract_sentences(html):
clean = []
brs_in_a_row = 0
temp = ""
for item in raw_text.contents:
if item.name == "br":
brs_in_a_row = brs_in_a_row + 1
else:
temp = temp + item
if brs_in_a_row == 2:
clean.append(temp)
temp = ""
brs_in_a_row = 0
return clean
speakers = []
with open('data/import/episodes.csv', 'r') as episodes_file, \
open("data/import/sentences.csv", 'w') as sentences_file:
reader = csv.reader(episodes_file, delimiter=',')
reader.next()
writer = csv.writer(sentences_file, delimiter=',')
writer.writerow(["SentenceId", "EpisodeId", "Season", "Episode", "Sentence"])
sentence_id = 1
for row in reader:
transcript = open("data/transcripts/S%s-Ep%s" %(row[3], row[1])).read()
soup = BeautifulSoup(transcript)
rows = select(soup, "table.tablebg tr td.post-body div.postbody")
raw_text = rows[0]
[ad.extract() for ad in select(raw_text, "div.ads-topic")]
[ad.extract() for ad in select(raw_text, "div.t-foot-links")]
[ad.extract() for ad in select(raw_text, "hr")]
for tag in ['strong', 'em', "a"]:
for match in raw_text.findAll(tag):
match.replace_with_children()
print row
for sentence in [
item.encode("utf-8").strip()
for item in extract_sentences(raw_text.contents)
]:
writer.writerow([sentence_id, row[0], row[3], row[1], sentence])
sentence_id = sentence_id + 1
----
Here's a preview of the sentences CSV file:
[source,python]
----
$ head -n 10 data/import/sentences.csv
SentenceId,EpisodeId,Season,Episode,Sentence
1,1,1,1,Pilot
2,1,1,1,Scene One
3,1,1,1,[Title: The Year 2030]
4,1,1,1,"Narrator: Kids, I'm going to tell you an incredible story. The story of how I met your mother"
5,1,1,1,Son: Are we being punished for something?
6,1,1,1,Narrator: No
7,1,1,1,"Daughter: Yeah, is this going to take a while?"
8,1,1,1,"Narrator: Yes. (Kids are annoyed) Twenty-five years ago, before I was dad, I had this whole other life."
9,1,1,1,"(Music Plays, Title ""How I Met Your Mother"" appears)"
----
The next step is to iterate through each of those sentences and create some http://www.nltk.org/_modules/nltk/util.html[n-grams] to capture the common phrases in the transcripts.
____
In the fields of computational linguistics and probability, an n-gram is a contiguous sequence of n items from a given sequence of text or speech.
____
Python's http://www.nltk.org/[nltk] library has a function that makes this easy e.g.
[source,python]
----
>>> import nltk
>>> tokens = nltk.word_tokenize("I want to be in an n gram")
>>> tokens
['I', 'want', 'to', 'be', 'in', 'an', 'n', 'gram']
>>> nltk.util.ngrams(tokens, 2)
[('I', 'want'), ('want', 'to'), ('to', 'be'), ('be', 'in'), ('in', 'an'), ('an', 'n'), ('n', 'gram')]
>>> nltk.util.ngrams(tokens, 3)
[('I', 'want', 'to'), ('want', 'to', 'be'), ('to', 'be', 'in'), ('be', 'in', 'an'), ('in', 'an', 'n'), ('an', 'n', 'gram')]
----
If we do a similar thing of HIMYM transcripts while stripping out the speaker's name - lines are mostly in the form "Speaker:Sentence" - we end up with the following top phrases:
[source,python]
----
import nltk
import csv
import string
import re
from collections import Counter
non_speaker = re.compile('[A-Za-z]+: (.*)')
def extract_phrases(text, phrase_counter, length):
for sent in nltk.sent_tokenize(text):
strip_speaker = non_speaker.match(sent)
if strip_speaker is not None:
sent = strip_speaker.group(1)
words = nltk.word_tokenize(sent)
for phrase in nltk.util.ngrams(words, length):
phrase_counter[bphrase] += 1
phrase_counter = Counter()
with open("data/import/sentences.csv", "r") as sentencesfile:
reader = csv.reader(sentencesfile, delimiter=",")
reader.next()
for sentence in reader:
extract_phrases(sentence[4], phrase_counter, 3)
most_common_phrases = phrase_counter.most_common(50)
for k,v in most_common_phrases:
print '{0: <5}'.format(v), k
----
And if we run that:
[source,bash]
----
$ python extract_phrases.py
1123 (',', 'I', "'m")
1099 ('I', 'do', "n't")
1005 (',', 'it', "'s")
535 ('I', 'ca', "n't")
523 ('I', "'m", 'not')
507 ('I', 'mean', ',')
507 (',', 'you', "'re")
459 (',', 'that', "'s")
458 ('2030', ')', ':')
454 ('(', '2030', ')')
453 ('Ted', '(', '2030')
449 ('I', "'m", 'sorry')
...
247 ('I', 'have', 'to')
247 ('No', ',', 'I')
246 ("'s", 'gon', 'na')
241 (',', 'I', "'ll")
229 ('I', "'m", 'going')
226 ('do', "n't", 'want')
226 ('It', "'s", 'not')
----
I noticed that quite a few of the phrases had punctuation in so my next step was to get rid of any of the phrases that had any punctuation in. I updated +++<cite>+++extract_phrases+++</cite>+++ like so:
[source,python]
----
def extract_phrases(text, phrase_counter, length):
for sent in nltk.sent_tokenize(text):
strip_speaker = non_speaker.match(sent)
if strip_speaker is not None:
sent = strip_speaker.group(1)
words = nltk.word_tokenize(sent)
for phrase in nltk.util.ngrams(words, length):
if all(word not in string.punctuation for word in phrase):
phrase_counter[phrase] += 1
----
Let's run it again:
[source,bash]
----
$ python extract_phrases.py
1099 ('I', 'do', "n't")
535 ('I', 'ca', "n't")
523 ('I', "'m", 'not')
449 ('I', "'m", 'sorry')
414 ('do', "n't", 'know')
383 ('Ted', 'from', '2030')
338 ("'m", 'gon', 'na')
334 ('I', "'m", 'gon')
300 ('gon', 'na', 'be')
279 ('END', 'OF', 'FLASHBACK')
267 ("'re", 'gon', 'na')
...
155 ('It', "'s", 'just')
151 ('at', 'the', 'bar')
150 ('a', 'lot', 'of')
147 ("'re", 'going', 'to')
144 ('I', 'have', 'a')
142 ('I', "'m", 'so')
138 ('do', "n't", 'have')
137 ('I', 'think', 'I')
136 ('not', 'gon', 'na')
136 ('I', 'can', 'not')
135 ('and', 'I', "'m")
----
Next I wanted to display each phrase as a string rather than a tuple which was http://stackoverflow.com/questions/21948019/python-untokenize-a-sentence[more difficult than I expected]. I ended up with the following function which almost does the job:
[source,python]
----
def untokenize(ngram):
tokens = list(ngram)
return "".join([" "+i if not i.startswith("'") and \
i not in string.punctuation and \
i != "n't"
else i for i in tokens]).strip()
----
I updated +++<cite>+++extract_phrases+++</cite>+++ to use that function:
[source,python]
----
def extract_phrases(text, phrase_counter, length):
for sent in nltk.sent_tokenize(text):
strip_speaker = non_speaker.match(sent)
if strip_speaker is not None:
sent = strip_speaker.group(1)
words = nltk.word_tokenize(sent)
for phrase in nltk.util.ngrams(words, length):
if all(word not in string.punctuation for word in phrase):
phrase_counter[untokenize(phrase)] += 1
----
Let's go again:
[source,bash]
----
$ python extract_phrases.py
1099 I don't
535 I can't
523 I'm not
449 I'm sorry
414 don't know
383 Ted from 2030
338 'm gon na
334 I'm gon
300 gon na be
279 END OF FLASHBACK
...
151 at the bar
150 a lot of
147 're going to
144 I have a
142 I'm so
138 don't have
137 I think I
136 not gon na
136 I can not
135 and I'm
----
These were some of the interesting things that stood out for me and deserve further digging into:
* A lot of the most popular phrases begin with 'I' - it would be interesting to filter those sentences to find the general sentiment.
* The 'untokenize' function struggles to reconstruct the slang phrase 'gonna' into a single word.
* 'Ted from 2030' is actually a speaker which doesn't follow the expected regex pattern and so wasn't filtered out.
* 'END OF FLASHBACK' shows quite high up and pulling out those flashbacks would probably be an interesting feature to extract to see which episodes reference each other.
* 'Marshall and Lily' and 'Lily and Marshall' show up on the list - it would be interesting to explore the frequency of pairs of other characters.
The https://github.com/mneedham/neo4j-himym[code is all on github] if you want to play with it. | null | null | [
-0.021738501265645027,
0.00705426000058651,
-0.013367412611842155,
0.013851669616997242,
0.08358614146709442,
0.0017070828471332788,
0.011756248772144318,
0.06664383411407471,
0.013360695913434029,
0.01579478569328785,
-0.008105475455522537,
0.007934876717627048,
-0.05014781653881073,
-0.0013615706702694297,
-0.02031884156167507,
0.07350630313158035,
0.04846719279885292,
0.018814194947481155,
0.029154423624277115,
-0.014724183827638626,
0.012840705923736095,
0.06377410888671875,
0.020934872329235077,
0.03021947294473648,
0.03254556655883789,
0.006311076693236828,
-0.0132174426689744,
0.00748736085370183,
-0.04016080126166344,
-0.0028591458685696125,
0.02986462041735649,
-0.043073274195194244,
0.006341901142150164,
-0.016264600679278374,
0.03425861522555351,
-0.012804605066776276,
-0.03422285616397858,
0.01577015034854412,
0.013080756179988384,
-0.0024847749155014753,
-0.061951279640197754,
0.025707140564918518,
-0.031799450516700745,
-4.9303988447491065e-8,
-0.06024067848920822,
0.008764955215156078,
-0.03069395385682583,
0.02631310373544693,
0.0015163286589086056,
-0.029212841764092445,
-0.040015846490859985,
0.02668195217847824,
0.027789810672402382,
-0.02485674060881138,
0.00045071335625834763,
0.07250227779150009,
0.020583834499120712,
-0.07652229815721512,
0.032001350075006485,
0.0029765241779386997,
-0.020692219957709312,
-0.025417903438210487,
-0.004398291930556297,
0.026690136641263962,
0.016497131437063217,
-0.039513666182756424,
-0.023804306983947754,
0.0465494804084301,
-0.047003258019685745,
-0.015029854141175747,
-0.025631295517086983,
0.00513431616127491,
-0.027405818924307823,
0.01717216521501541,
0.022588349878787994,
-0.020856376737356186,
-0.010654726065695286,
0.04133265092968941,
0.002821611938998103,
0.03783230111002922,
-0.06091237813234329,
0.02251683734357357,
-0.005812249146401882,
0.019500818103551865,
-0.01829073205590248,
-0.03389405086636543,
-0.04536683112382889,
-0.006866694428026676,
-0.05702713131904602,
0.026526737958192825,
0.003331356216222048,
-0.044201843440532684,
0.00828990526497364,
0.014287672936916351,
-0.019756123423576355,
0.0047610183246433735,
0.008990470319986343,
0.008681070990860462,
-0.012593807652592659,
0.00457785977050662,
-0.0764361098408699,
-0.026464542374014854,
0.0423114039003849,
0.008109094575047493,
-0.08611465245485306,
-0.00669493991881609,
-0.006774549838155508,
0.011550869792699814,
-0.003936002496629953,
-0.009199777618050575,
0.00429554283618927,
-0.021708006039261818,
-0.004474604967981577,
0.01993848942220211,
-0.10047908872365952,
0.06734079122543335,
0.025096289813518524,
-0.033395688980817795,
-0.029662124812602997,
0.006484966725111008,
0.02081071399152279,
0.007616407237946987,
0.006437295116484165,
0.08649760484695435,
-0.013605131767690182,
0.0034518102183938026,
-0.014632257632911205,
0.06078469008207321,
-0.01677815057337284,
-0.04153706878423691,
-0.03942093625664711,
0.042368777096271515,
-0.01531222928315401,
0.051671501249074936,
-0.004217628389596939,
-0.010842316783964634,
-0.03543122485280037,
-0.0013228029711171985,
0.050772715359926224,
0.06550294160842896,
-0.018132029101252556,
-0.010825219564139843,
0.008841658011078835,
0.04515009745955467,
0.03731050714850426,
-0.013652876019477844,
-0.025280192494392395,
-0.02547837421298027,
-0.026303216814994812,
0.014058760367333889,
0.01735602132976055,
0.013924208469688892,
0.07089433819055557,
-0.022173136472702026,
0.004842038732022047,
0.08078265190124512,
-0.004282930865883827,
0.06347382813692093,
-0.00886224303394556,
0.011448130011558533,
0.05008712410926819,
0.06015049293637276,
0.005289133638143539,
0.014606249518692493,
0.008900074288249016,
-0.024478929117321968,
-0.007275826297700405,
0.04322955012321472,
-0.010499290190637112,
0.03198288008570671,
-0.0420578271150589,
-0.027760492637753487,
0.0685194805264473,
-0.05249520391225815,
-0.012157878838479519,
0.0006818688125349581,
0.04518173635005951,
0.0382271446287632,
0.024368509650230408,
-0.0003566723025869578,
-0.07756460458040237,
0.03864043578505516,
-0.014257933013141155,
0.021085446700453758,
0.05514686554670334,
0.003964963834732771,
0.08263798803091049,
0.026560261845588684,
-0.025712253525853157,
0.019097570329904556,
-0.07444672286510468,
-0.07387596368789673,
-0.021721016615629196,
0.0033064321614801884,
0.026951206848025322,
-0.04288891702890396,
0.005405713338404894,
0.0909363403916359,
0.027146216481924057,
0.03178108483552933,
0.01815277338027954,
-0.008809851482510567,
0.022915102541446686,
-0.04623803123831749,
-0.04229961335659027,
0.03861553221940994,
0.019755596294999123,
-0.04925566166639328,
0.017849458381533623,
0.0028766030445694923,
-0.04333290085196495,
0.027399200946092606,
0.059782642871141434,
-0.04623923823237419,
0.05933760479092598,
0.017111631110310555,
0.048856813460588455,
-0.05335842818021774,
0.0258611049503088,
-0.050640422850847244,
0.006661038845777512,
-0.0042263213545084,
0.0020357302855700254,
-0.03364881873130798,
-0.009325246326625347,
0.11139198392629623,
0.045097678899765015,
-0.011271018534898758,
-0.04962259158492088,
0.03498771786689758,
0.0006639420171268284,
-0.02434820868074894,
-0.01582304760813713,
-0.012770058587193489,
-0.04294627159833908,
0.0199125949293375,
-0.02798641286790371,
-0.03877856582403183,
0.00251658633351326,
-0.027863996103405952,
-0.015801509842276573,
0.0394921600818634,
-0.004456634633243084,
0.04004652425646782,
0.014231793582439423,
0.004721340257674456,
-0.003402551170438528,
-0.01379929855465889,
-0.02508620172739029,
-0.006642697378993034,
0.02502099610865116,
-0.02409573271870613,
0.00747686205431819,
-0.015891116112470627,
-0.03304367884993553,
0.004210530314594507,
-0.09430371969938278,
0.015185083262622356,
0.07250619679689407,
0.04966937378048897,
0.0018881155410781503,
0.04951639100909233,
0.004254753235727549,
-0.01513513270765543,
-0.02632962539792061,
-0.026966901496052742,
-0.03470151498913765,
-0.051152076572179794,
-0.0005404453841038048,
0.0015232675941661,
0.028924042358994484,
0.016710659489035606,
-0.01508425921201706,
0.013566565699875355,
0.027596818283200264,
0.006332040298730135,
0.04564587026834488,
-0.029856424778699875,
0.019249841570854187,
-0.013946647755801678,
-0.043422192335128784,
0.017622875049710274,
-0.04536213353276253,
-0.04103169962763786,
-0.011923546902835369,
-0.08954392373561859,
0.016908150166273117,
-0.045826707035303116,
-0.027736060321331024,
-0.0023287285584956408,
-0.006780597381293774,
0.0431009903550148,
0.011098298244178295,
-0.027340976521372795,
0.052828993648290634,
0.01639617048203945,
0.023212997242808342,
0.02975175343453884,
0.027868395671248436,
0.04460851103067398,
-0.016558419913053513,
-0.03272750973701477,
0.045973632484674454,
-0.014361787587404251,
-0.006215172819793224,
-0.02059640735387802,
-0.008688059635460377,
-0.061612818390131,
-0.28980228304862976,
0.026775969192385674,
-0.016198383644223213,
-0.04226451739668846,
0.04714692384004593,
-0.029900357127189636,
0.024514874443411827,
-0.04775508865714073,
-0.0032139162067323923,
0.038357388228178024,
-0.030670085921883583,
-0.03673681989312172,
-0.03488004952669144,
0.0395936593413353,
0.0013378994772210717,
0.024088986217975616,
-0.04647960513830185,
-0.044815268367528915,
0.012203121557831764,
0.049111902713775635,
0.011829155497252941,
-0.04327846318483353,
-0.028437267988920212,
0.06026141718029976,
0.009453969076275826,
0.07999339699745178,
-0.06666909158229828,
0.03987208008766174,
-0.05717673525214195,
-0.011578612960875034,
0.012182249687612057,
-0.043033797293901443,
0.007650912273675203,
-0.03580104559659958,
-0.009912211447954178,
-0.028008410707116127,
0.04841408506035805,
-0.011286134831607342,
-0.0013327911728993058,
0.0100112808868289,
-0.022920599207282066,
-0.03557152301073074,
-0.009356244467198849,
-0.009232887998223305,
0.06856216490268707,
0.010488004423677921,
-0.04419504478573799,
-0.03829837590456009,
-0.027083422988653183,
0.07884208112955093,
-0.01909765787422657,
-0.011102747172117233,
-0.0001252239162568003,
0.0308499988168478,
-0.0009086318896152079,
0.0047554317861795425,
0.015140941366553307,
-0.004839887376874685,
-0.0347851887345314,
-0.04115120321512222,
-0.02723139524459839,
-0.034662943333387375,
0.007584015838801861,
-0.053459376096725464,
-0.02285972237586975,
-0.050935715436935425,
-0.04759550094604492,
0.029387108981609344,
0.052668750286102295,
0.030427519232034683,
-0.06587886810302734,
0.0067846085876226425,
0.008418777957558632,
-0.09637086093425751,
-0.014544897712767124,
-0.017290685325860977,
-0.021720942109823227,
0.010933607816696167,
-0.009174088016152382,
0.04661056026816368,
-0.06632915139198303,
-0.04603990167379379,
0.04086856544017792,
-0.02089628577232361,
-0.0019459344912320375,
-0.03884093090891838,
0.028012024238705635,
-0.009178664535284042,
-0.02455942891538143,
-0.03488783910870552,
0.041128601878881454,
-0.03684467449784279,
-0.04153577238321304,
-0.005440935492515564,
-0.00030251379939727485,
0.05491723492741585,
-0.01693991757929325,
0.019849559292197227,
0.017075443640351295,
0.03871900960803032,
0.02221316285431385,
-0.03831091523170471,
0.003431453136727214,
0.002317307749763131,
0.01826517842710018,
-0.006324170622974634,
-0.06221246346831322,
0.008395067416131496,
0.023299360647797585,
-0.006586463190615177,
-0.016891906037926674,
0.005582448560744524,
-0.001782405306585133,
-0.027232835069298744,
0.01281300000846386,
0.006693095434457064,
0.021453771740198135,
0.015260185115039349,
0.013564824126660824,
-0.010860654525458813,
-0.07895461469888687,
0.005308469291776419,
-0.02024153061211109,
-0.024182820692658424,
-0.05138460919260979,
-0.05883680656552315,
0.032075829803943634,
0.005325194448232651,
-0.014502081088721752,
0.005552095361053944,
-0.0479981005191803,
-0.01485743559896946,
0.03438569977879524,
-0.014398192055523396,
0.053159043192863464,
-0.03936716541647911,
-0.04236726090312004,
-0.017242273315787315,
-0.010477338917553425,
0.007864799350500107,
0.02083250880241394,
-0.03372208774089813,
-0.023358847945928574,
0.04571918770670891,
0.016424892470240593,
0.00655132532119751,
0.020984822884202003,
0.023847205564379692,
-0.0042595025151968,
0.01709739677608013,
0.023121943697333336,
-0.003995823208242655,
0.016212223097682,
-0.014210347086191177,
-0.007914031855762005,
-0.002656590659171343,
0.020292185246944427,
0.031040789559483528,
0.015417343005537987,
-0.04717124626040459,
0.03613274544477463,
-0.030347563326358795,
0.0074825594201684,
-0.008933971635997295,
-0.013392823748290539,
0.03059774450957775,
-0.001460178173147142,
0.027488958090543747,
0.011597697623074055,
0.030213484540581703,
0.0036702549550682306,
0.028218399733304977,
-0.046301450580358505,
0.047135476022958755,
0.013081508688628674,
-0.03238122910261154,
0.054648056626319885,
0.020455453544855118,
-0.007592126727104187,
0.03855603188276291,
-0.019038520753383636,
-0.040611814707517624,
0.008388092741370201,
0.02138061262667179,
0.04776453971862793,
0.07173226773738861,
-0.008140245452523232,
-0.0038639234844595194,
-0.03630255162715912,
-0.008241518400609493,
-0.02685755304992199,
0.004745448008179665,
-0.03399862349033356,
-0.010789639316499233,
-0.028465555980801582,
-0.06915606558322906,
0.01866893842816353,
-0.009986634366214275,
-0.011022040620446205,
0.027381351217627525,
-0.02718103677034378,
-0.006677200552076101,
-0.03870468959212303,
0.03912682831287384,
0.06221577152609825,
-0.06932634115219116,
-0.0012718959478661418,
-0.019876061007380486,
0.026462478563189507,
0.02200126461684704,
0.03150440752506256,
-0.07042103260755539,
-0.022557739168405533,
-0.020716041326522827,
0.009323392994701862,
-0.04381285980343819,
-0.04386678338050842,
-0.03899213299155235,
0.051468342542648315,
-0.00950434897094965,
0.011026548221707344,
-0.03262873739004135,
0.012086895294487476,
-0.001528430380858481,
-0.012150437571108341,
0.016580188646912575,
-0.012419801205396652,
-0.03780375048518181,
0.0076891640201210976,
-0.00785661768168211,
0.024111563339829445,
-0.04232373461127281,
0.05520607531070709,
0.021208785474300385,
-0.006703692488372326,
-0.0481240451335907,
-0.0354715995490551,
0.015369391068816185,
0.021113388240337372,
0.08852531015872955,
0.07580721378326416,
-0.013001512736082077,
-0.019237162545323372,
0.018443426117300987,
-0.02072856016457081,
0.022580353543162346,
0.03494112193584442,
-0.022413158789277077,
0.0035399915650486946,
0.06915544718503952,
0.03347049653530121,
0.010530643165111542,
-0.008174724876880646,
-0.04914245381951332,
0.041541796177625656,
-0.05516497418284416,
-0.05037681758403778,
0.010241513140499592,
-0.04698990657925606,
0.024959484115242958,
0.016050245612859726,
0.041332144290208817,
-0.04107467830181122,
0.029124127700924873,
0.02263704314827919,
0.05837564915418625,
0.019632168114185333,
0.042475178837776184,
0.04166910797357559,
-0.004173948895186186,
0.006578764412552118,
-0.08672001957893372,
-0.0191348847001791,
0.059914663434028625,
0.01650087535381317,
0.011960254982113838,
-0.00337767880409956,
-0.018606845289468765,
0.04133034870028496,
-0.06050993874669075,
-0.03696715459227562,
0.023506632074713707,
-0.05004439130425453,
-0.001832899171859026,
0.01680225133895874,
-0.06834083795547485,
0.01505026314407587,
0.027788497507572174,
-0.029366346076130867,
-0.005834881216287613,
-0.006540739443153143,
0.06523821502923965,
0.009853268042206764,
-0.0016534074675291777,
0.01113098207861185,
-0.03713829070329666,
0.08669863641262054,
0.014691725373268127,
0.03258856013417244,
0.044266477227211,
-0.024369318038225174,
-0.001036248984746635,
0.018641361966729164,
0.0016245601000264287,
-0.007869594730436802,
0.029499631375074387,
-0.000037856156268389896,
-0.04400905966758728,
0.06445538252592087,
0.019287042319774628,
0.017742302268743515,
-0.039634935557842255,
0.09137260913848877,
0.022746719419956207,
-0.022327672690153122,
-0.06113303825259209,
0.009199250489473343,
-0.03270972520112991,
-0.007633779663592577,
-0.009010673500597477,
-0.0030385854188352823,
-0.04202192276716232,
0.03692147135734558,
-0.021833360195159912,
-0.007570299319922924,
0.04496333375573158,
-0.03520606830716133,
-0.003126129973679781,
0.01693877764046192,
0.05736245587468147,
0.08383874595165253,
0.06412173062562943,
0.0009704784024506807,
0.04291689023375511,
-0.02188717946410179,
-0.039753954857587814,
-0.014533071778714657,
-0.004971779882907867,
0.02173662930727005,
-0.016348974779248238,
0.002356534358114004,
0.030174726620316505,
-0.016225315630435944,
0.04949849471449852,
-0.017508652061223984,
-0.008605921640992165,
-0.021015318110585213,
0.022085057571530342,
0.03080231510102749,
-0.00013096685870550573,
-0.002185586839914322,
0.020583277568221092,
-0.01799674890935421,
-0.04459980130195618,
0.05538864806294441,
0.013971510343253613,
-0.04795543849468231,
0.027211857959628105,
-0.031155966222286224,
0.03617258742451668,
0.0053705452010035515,
0.0711156353354454,
0.0742822214961052,
-0.0007191728218458593,
0.011479422450065613,
0.016775447875261307,
0.025589581578969955,
-0.015505420044064522,
0.04477352648973465,
-0.006628375966101885,
-0.021508393809199333,
-0.022709345445036888,
-0.03538313880562782,
-0.058210860937833786,
-0.03588277846574783,
-0.019468311220407486,
0.03229837119579315,
0.0004675946547649801,
0.0017248127842321992,
0.020094800740480423,
0.03452647104859352,
-0.053417254239320755,
-0.051074616611003876,
-0.0465044267475605,
-0.07344581186771393,
-0.03250028192996979,
-0.033006902784109116,
0.020864911377429962,
0.008470659144222736,
-0.024392521008849144,
0.013719038106501102,
-0.02786089852452278,
-0.023741256445646286,
0.010605989024043083,
-0.05005256459116936,
0.005502298008650541,
0.006925064139068127,
0.00816481001675129,
0.018555380403995514,
0.017547903582453728,
0.040227148681879044,
0.029875511303544044,
-0.023351890966296196,
0.015215566381812096,
0.04531458392739296,
0.06407462060451508,
0.022101806476712227,
0.042796675115823746,
-0.08300494402647018,
-0.025792531669139862,
0.014180595055222511,
-0.005230260081589222,
-0.06273356825113297,
0.00021281171939335763,
0.04381871968507767,
0.031917814165353775,
0.03839584439992905,
0.000009913968824548647,
-0.023353056982159615,
-0.0597439669072628,
-0.011599414981901646,
-0.00033609659294597805,
0.01882803440093994,
0.04220452904701233,
-0.019557034596800804,
0.07551349699497223,
0.030081678181886673,
-0.009274248965084553,
-0.045062292367219925,
-0.029356541112065315,
-0.01229934860020876,
0.05873957648873329,
-0.057153839617967606,
-0.03462320938706398,
-0.018707631155848503,
-0.06232183054089546,
-0.056568555533885956,
0.0058760573156178,
-0.020089853554964066,
-0.013934631831943989,
0.034919992089271545,
-0.0366755835711956,
-0.051079392433166504,
0.023611724376678467,
-0.030626194551587105,
0.0016847994411364198,
-0.013788755051791668,
-0.01824272610247135,
-0.02598535642027855,
0.0070688421837985516,
-0.005618162453174591,
0.007618258707225323,
-0.009933967143297195,
-0.023836633190512657,
-0.015137831680476665,
-0.044328756630420685,
0.033012598752975464,
0.04357337951660156,
-0.006610438693314791,
-0.0002588606148492545
] | [
-0.06756719201803207,
0.003430561861023307,
-0.022280355915427208,
-0.03583789989352226,
0.05132780969142914,
-0.06840994954109192,
-0.014442423358559608,
0.0028670227620750666,
0.025202877819538116,
-0.015231173485517502,
-0.020668799057602882,
-0.042454078793525696,
0.007594135124236345,
-0.015445916913449764,
0.08092465996742249,
0.0003230986185371876,
-0.0035525793209671974,
-0.03589533641934395,
-0.0469755083322525,
0.03833216428756714,
-0.015115579590201378,
-0.037168949842453,
-0.033377502113580704,
-0.021353604272007942,
0.018975868821144104,
0.03258272260427475,
0.041797854006290436,
-0.03571778163313866,
-0.009529320523142815,
-0.2031104415655136,
0.016027024015784264,
0.010151762515306473,
0.05748697742819786,
0.007146577816456556,
0.028818242251873016,
0.04694586619734764,
0.009397574700415134,
-0.005224298220127821,
-0.02452126145362854,
0.03309030085802078,
0.02361898310482502,
0.0058331056497991085,
-0.048480913043022156,
-0.055581219494342804,
0.03184882178902626,
0.0018611859995871782,
-0.008229481987655163,
-0.021641487255692482,
0.011140638962388039,
0.036194443702697754,
-0.07857353240251541,
-0.002953208051621914,
-0.024290593340992928,
-0.031499795615673065,
-0.006449141073971987,
0.007402222603559494,
0.05426545813679695,
0.04643917828798294,
0.01759582944214344,
0.02591884694993496,
-0.005656556226313114,
0.004310660995543003,
-0.16573157906532288,
0.11032076925039291,
0.020816858857870102,
0.0510830283164978,
-0.045842405408620834,
0.004847851116210222,
-0.007396843284368515,
0.11300177127122879,
-0.034881848841905594,
-0.022575588896870613,
-0.016469066962599754,
0.0650452971458435,
0.001620468799956143,
-0.012459556572139263,
0.027261555194854736,
-0.007970834150910378,
0.034325506538152695,
-0.03456193953752518,
-0.05497780442237854,
0.020218277350068092,
-0.007749754469841719,
-0.022778065875172615,
-0.016433099284768105,
0.0027364094275981188,
-0.034091267734766006,
0.01460639201104641,
0.010138061828911304,
0.003487982787191868,
0.03955642506480217,
-0.0386708565056324,
0.022433780133724213,
0.025645069777965546,
-0.07600779831409454,
-0.032880380749702454,
0.0054697636514902115,
-0.0009128226665779948,
-0.015145547688007355,
0.4021165072917938,
-0.0418807752430439,
-0.008892050012946129,
0.047167036682367325,
0.016940636560320854,
-0.0015582646010443568,
-0.015211189165711403,
0.011843796819448471,
-0.04435828700661659,
0.010125717148184776,
-0.03130464628338814,
0.00013020928599871695,
-0.02099744603037834,
0.06553161889314651,
-0.05842943117022514,
0.04412109777331352,
0.02415933646261692,
0.039063382893800735,
-0.008931274525821209,
-0.005402070470154285,
0.009552102535963058,
0.012366406619548798,
-0.01613520458340645,
0.008123443461954594,
-0.012651188299059868,
0.012148888781666756,
-0.0035288571380078793,
0.07024025917053223,
0.05379923805594444,
0.04477763548493385,
-0.005461675114929676,
0.0695652961730957,
-0.021740246564149857,
-0.07261410355567932,
0.043758559972047806,
0.009229516610503197,
-0.014698801562190056,
0.014229999855160713,
-0.020258663222193718,
0.011875196360051632,
0.00027755554765462875,
0.0233464352786541,
-0.11174337565898895,
-0.027892235666513443,
0.025373751297593117,
-0.03565116971731186,
0.13282398879528046,
-0.013391253538429737,
-0.02632199041545391,
-0.03466077521443367,
-0.02425428107380867,
0.0067235748283565044,
0.04378548264503479,
0.018201831728219986,
-0.08693546801805496,
0.02185208722949028,
0.017774706706404686,
0.09690143913030624,
-0.03152042254805565,
-0.06528790295124054,
-0.021643657237291336,
-0.0011167958145961165,
-0.058698538690805435,
-0.039414506405591965,
0.016895737498998642,
0.061351027339696884,
-0.08630223572254181,
-0.030182022601366043,
0.012992557138204575,
0.038772355765104294,
-0.09036015719175339,
0.05163740739226341,
-0.015688849613070488,
-0.06738844513893127,
0.002906633075326681,
0.013444009236991405,
-0.049897752702236176,
-0.02998073771595955,
0.028919197618961334,
0.07869002968072891,
0.02110855095088482,
-0.0019041136838495731,
-0.012306087650358677,
-0.05131379887461662,
0.05474819242954254,
-0.032445766031742096,
-0.10649377852678299,
-0.04190905764698982,
-0.02470461092889309,
-0.0097659882158041,
-0.004076531156897545,
0.004149842541664839,
-0.010359075851738453,
-0.025227807462215424,
0.03363297879695892,
-0.032513853162527084,
-0.002537265419960022,
0.03210807964205742,
0.002484862692654133,
-0.03983220458030701,
-0.027936913073062897,
-0.027758212760090828,
0.007798430975526571,
-0.0330611877143383,
0.010992270894348621,
-0.044535279273986816,
0.014508767984807491,
0.06273837387561798,
-0.056246910244226456,
0.09893347322940826,
0.03658769652247429,
-0.01644907332956791,
-0.013603344559669495,
0.0012581414775922894,
0.010709397494792938,
-0.011762375012040138,
-0.04693220928311348,
-0.0025216129142791033,
-0.014226275496184826,
0.03875098377466202,
0.03908570110797882,
-0.04614975303411484,
-0.04956138879060745,
-0.04047781974077225,
-0.34249451756477356,
-0.022848155349493027,
0.020935652777552605,
0.00022508634719997644,
0.00014920609828550369,
-0.08325021713972092,
0.028933320194482803,
-0.010820671916007996,
0.020960425958037376,
0.04356931522488594,
0.057487234473228455,
-0.03862999752163887,
0.028467224910855293,
-0.08576548099517822,
0.02258295752108097,
0.035307686775922775,
-0.026464130729436874,
0.009633863344788551,
0.0068634930066764355,
0.07470151036977768,
0.02229987643659115,
-0.05145455524325371,
-0.017014816403388977,
-0.04267333447933197,
-0.015149999409914017,
-0.025335201993584633,
0.1164480522274971,
0.041978660970926285,
0.05738560110330582,
-0.034162115305662155,
0.06302223354578018,
0.02054426819086075,
0.024944111704826355,
-0.11147265136241913,
-0.003831252222880721,
-0.009366930462419987,
0.006333172786980867,
-0.004269708879292011,
0.006602729205042124,
-0.02616056799888611,
-0.03638758137822151,
0.04512827843427658,
-0.03701115772128105,
-0.007148074917495251,
-0.05579611659049988,
0.01707271859049797,
-0.024638932198286057,
-0.05714111030101776,
-0.00517765199765563,
0.06136505678296089,
0.00058543193154037,
0.02370322309434414,
0.008599217049777508,
-0.0014475518837571144,
-0.02835589088499546,
-0.017980877310037613,
-0.07494323700666428,
0.01397963147610426,
-0.01996481977403164,
-0.011551695875823498,
0.015691427513957024,
0.053738515824079514,
0.032967906445264816,
-0.060077156871557236,
-0.037369754165410995,
0.009423530660569668,
0.042086124420166016,
0.01902725175023079,
0.0260887760668993,
0.01423062477260828,
-0.021114658564329147,
0.07405736297369003,
-0.026019172742962837,
0.0090631153434515,
-0.007755507715046406,
0.07207147032022476,
-0.00384665559977293,
0.00820839125663042,
0.001017097500152886,
-0.03938336297869682,
0.06728444993495941,
-0.021921740844845772,
0.03628167137503624,
-0.02321452833712101,
0.02876017987728119,
0.050040386617183685,
0.00689787557348609,
-0.02851412259042263,
0.07957248389720917,
0.026460973545908928,
-0.020604591816663742,
0.019440939649939537,
-0.018998639658093452,
-0.0038820200134068727,
0.0370999276638031,
-0.010088375769555569,
-0.2498280256986618,
0.023959781974554062,
0.03884607180953026,
0.051332831382751465,
0.02948378212749958,
0.0003582511853892356,
0.011934728361666203,
-0.05177643150091171,
0.01881224662065506,
0.025175491347908974,
0.013702045194804668,
0.01758248545229435,
0.014746288768947124,
-0.017537591978907585,
0.004233717918395996,
0.011556681245565414,
0.08553699404001236,
0.039321623742580414,
-0.007637187838554382,
0.0363580696284771,
0.021670620888471603,
-0.040300142019987106,
0.13138817250728607,
0.012107975780963898,
0.01979067362844944,
-0.01185666210949421,
-0.013959971256554127,
0.0076411208137869835,
0.061750106513500214,
0.012690555304288864,
-0.014321482740342617,
-0.012477897107601166,
0.013990988954901695,
0.03000389225780964,
0.04531088098883629,
-0.06838952749967575,
-0.030864546075463295,
0.0486375167965889,
0.05835682898759842,
-0.019467627629637718,
-0.026915226131677628,
0.007811786141246557,
-0.05517604202032089,
0.0016054874286055565,
0.045052073895931244,
-0.002886309288442135,
0.01831052079796791,
-0.03816191107034683,
-0.04116215929389,
0.013116475194692612,
-0.025291109457612038,
-0.017411191016435623,
0.012177755124866962,
0.003986172378063202,
0.03078227862715721,
0.09334564208984375,
0.023965200409293175,
0.0009723956463858485,
0.02437911555171013,
0.010716918855905533,
-0.04695122316479683,
-0.06135084480047226,
0.11171801388263702,
0.05960724130272865,
0.0011111368658021092
] | [
0.0105687091127038,
0.007494040299206972,
0.009533361531794071,
0.024712637066841125,
-0.005703185684978962,
0.01708412729203701,
0.010479215532541275,
0.011911796405911446,
-0.011979683302342892,
-0.012115643359720707,
-0.020883683115243912,
-0.01328492071479559,
-0.010794668458402157,
-0.056424569338560104,
0.004402900114655495,
0.0030882004648447037,
-0.0076395440846681595,
-0.03469423949718475,
0.02273799106478691,
-0.007498882245272398,
-0.024675175547599792,
0.059264812618494034,
0.023990266025066376,
0.014491260051727295,
-0.016205139458179474,
0.05299169570207596,
-0.04645829275250435,
0.008455999195575714,
0.024643516167998314,
-0.08149746805429459,
-0.02230696938931942,
-0.022572344169020653,
0.021234340965747833,
0.035647451877593994,
-0.0031841685995459557,
-0.021711042150855064,
-0.017244841903448105,
0.028585294261574745,
0.011502120643854141,
0.04439731687307358,
-0.04820341616868973,
0.0006245451513677835,
0.006977737415581942,
-0.0049661146476864815,
0.006421082187443972,
-0.02786034531891346,
-0.04629005864262581,
0.008073869161307812,
-0.013034290634095669,
-0.012917703948915005,
-0.053930800408124924,
0.030264953151345253,
0.003935330547392368,
0.03476421907544136,
-0.006678735371679068,
-0.02020205743610859,
0.011649631895124912,
-0.00748142646625638,
0.005745455622673035,
-0.011835450306534767,
-0.004455390386283398,
-0.0027227336540818214,
-0.03627007454633713,
-0.006195470690727234,
0.0020314445719122887,
-0.020958630368113518,
-0.04318774491548538,
0.04613653942942619,
0.00936128944158554,
0.018194492906332016,
-0.04163174703717232,
0.03322092443704605,
-0.03476297855377197,
-0.01095458772033453,
-0.04593919962644577,
-0.011167244054377079,
0.021960072219371796,
-0.055926378816366196,
0.02210875228047371,
0.004767061676830053,
-0.05586889758706093,
-0.016895249485969543,
0.04298542067408562,
0.011357879266142845,
-0.046056292951107025,
-0.06251880526542664,
0.011646783910691738,
-0.020830534398555756,
-0.01034226082265377,
0.006255799904465675,
-0.03959242254495621,
-0.016967587172985077,
0.029395125806331635,
-0.003962208516895771,
-0.08615230023860931,
0.04323891922831535,
-0.0006142978090792894,
-0.038792334496974945,
0.004332244396209717,
0.8132882118225098,
-0.003568782238289714,
0.016119059175252914,
0.013818765059113503,
-0.009990818798542023,
-0.012709533795714378,
-0.011063089594244957,
0.034882646054029465,
-0.022930573672056198,
0.044613633304834366,
-0.05116693302989006,
0.0015078355791047215,
0.014359787106513977,
0.000950158922933042,
0.023926571011543274,
0.029475735500454903,
0.010296572931110859,
0.012808882631361485,
0.031682088971138,
0.013882040977478027,
0.02335820160806179,
-0.002536684274673462,
0.002626000437885523,
-0.016327111050486565,
0.007205943111330271,
0.006098965182900429,
-0.14785410463809967,
0.07567127048969269,
-7.012342489537245e-33,
0.0056502968072891235,
0.003530295565724373,
-0.01084056030958891,
-0.0010637128725647926,
0.050142187625169754,
0.030352531000971794,
-0.03533577546477318,
0.01136649027466774,
-0.0018405693117529154,
-0.0449301041662693,
0.02236209250986576,
-0.021251633763313293,
0.006004310678690672,
-0.03163564205169678,
0.04127272963523865,
0.008276227861642838,
-0.023906873539090157,
0.02751435711979866,
0.010666696354746819,
0.021964149549603462,
0.05283545330166817,
0.04774199426174164,
0.06560275703668594,
0.02630087174475193,
-0.037004053592681885,
-0.011096939444541931,
0.01805596612393856,
0.007860030978918076,
-0.020383117720484734,
-0.03998802229762077,
-0.041340459138154984,
0.03447234630584717,
0.005048174876719713,
-0.05531143769621849,
-0.011911983601748943,
-0.05441493168473244,
-0.026513712480664253,
-0.024069614708423615,
-0.009937874041497707,
-0.013039248064160347,
-0.051001328974962234,
0.0038627013564109802,
0.0003626387915574014,
-0.020986931398510933,
-0.02672673389315605,
0.010097268968820572,
-0.020992817357182503,
0.03589894250035286,
0.000035460805520415306,
0.05829567462205887,
0.016551779583096504,
-0.011386125348508358,
0.019445065408945084,
-0.024090537801384926,
0.00000927738074096851,
0.05186066776514053,
0.035661011934280396,
-0.010994968004524708,
0.05303984135389328,
-0.017514128237962723,
-0.01238696463406086,
-0.042757801711559296,
0.034366756677627563,
0.040689438581466675,
0.024022813886404037,
0.011157789267599583,
0.07138461619615555,
0.012465153820812702,
0.018801236525177956,
-0.0192890465259552,
-0.058846935629844666,
0.014550572261214256,
-0.03343036770820618,
-0.024871185421943665,
-0.01687517575919628,
-0.011307830922305584,
0.002745069330558181,
-0.03338093310594559,
0.02935151569545269,
0.07600235939025879,
0.025533029809594154,
-0.014875294640660286,
-0.003701424691826105,
-0.027660025283694267,
-0.015772603452205658,
-0.055687133222818375,
0.0013985118130221963,
0.031262487173080444,
0.009475206024944782,
0.021389752626419067,
0.0254659540951252,
0.04780930280685425,
-0.007809579372406006,
-0.029225995764136314,
0.010205196216702461,
6.185483600121524e-33,
0.03144794702529907,
0.0073792957700788975,
-0.015530677512288094,
-0.02112969011068344,
0.011918185278773308,
-0.0003774769720621407,
0.014667656272649765,
0.03664487227797508,
-0.0103231742978096,
0.028164619579911232,
-0.0017011448508128524,
-0.045157235115766525,
-0.008072667755186558,
-0.0005032686167396605,
0.044878486543893814,
0.03396076709032059,
-0.002643624087795615,
0.046634554862976074,
-0.021464694291353226,
-0.018768973648548126,
-0.022905750200152397,
0.014023651368916035,
-0.012371216900646687,
0.038083914667367935,
0.048152823001146317,
-0.006884539499878883,
-0.009508725255727768,
0.015172677114605904,
-0.01461042556911707,
-0.004284089896827936,
0.0035224994644522667,
-0.006633885204792023,
-0.01915353164076805,
-0.010049693286418915,
-0.016351452097296715,
0.06393961608409882,
0.007697909139096737,
-0.03390861302614212,
-0.0020984418224543333,
-0.003996226936578751,
0.055612269788980484,
0.04597896710038185,
-0.01796943135559559,
0.02512432634830475,
-0.00028892955742776394,
0.021686548367142677,
-0.02315029315650463,
0.009896554052829742,
-0.0004318475548643619,
0.008878849446773529,
-0.034722670912742615,
-0.000018937376808025874,
0.004069690126925707,
0.03358481451869011,
0.011739910580217838,
-0.02835308574140072,
-0.016656409949064255,
-0.004885793663561344,
-0.07371416687965393,
-0.029508335515856743,
-0.05296730250120163,
0.005332817789167166,
-0.023482143878936768,
0.004150660242885351,
-0.025896992534399033,
-0.02740093693137169,
-0.04861651733517647,
0.0142856165766716,
-0.004195493180304766,
-0.01425416674464941,
-0.0002805498370435089,
-0.05272508040070534,
0.00838352832943201,
0.018370715901255608,
0.002902661683037877,
0.03680798411369324,
-0.019847121089696884,
-0.024463722482323647,
-0.07582399994134903,
0.006825855001807213,
0.029415329918265343,
0.015068658627569675,
0.0474320612847805,
-0.01829429715871811,
0.007942531257867813,
-0.008937773294746876,
-0.04073195904493332,
0.006751476787030697,
0.03689360246062279,
0.011912571266293526,
0.029216887429356575,
-0.038555558770895004,
0.017889488488435745,
0.007704819552600384,
-0.01447355281561613,
-1.2531499393730883e-8,
-0.055625781416893005,
-0.007203349843621254,
0.0027213620487600565,
0.03352518007159233,
0.000008669295311847236,
0.009850549511611462,
-0.021708721294999123,
-0.016555361449718475,
-0.015098552219569683,
-0.014972716569900513,
0.04366658255457878,
-0.008780775591731071,
0.011280756443738937,
0.03357403725385666,
0.01734083518385887,
-0.025240115821361542,
-0.006651815492659807,
-0.01605483703315258,
0.020888449624180794,
-0.012430014088749886,
0.04209878295660019,
0.0020997344981878996,
0.04711638018488884,
0.021363824605941772,
0.024693181738257408,
0.009249601513147354,
0.0011865253327414393,
-0.06739725172519684,
-0.011249877512454987,
-0.027711544185876846,
0.03591546416282654,
-0.0283934585750103,
-0.04155101999640465,
-0.019541237503290176,
-0.0025805302429944277,
-0.04061682149767876,
0.0167183019220829,
0.0010337656131014228,
-0.02474312111735344,
0.025936709716916084,
0.002809990895912051,
-0.0076620979234576225,
-0.042880043387413025,
-0.030602293089032173,
-0.006983182858675718,
-0.0069490340538322926,
-0.04895196482539177,
-0.014777865260839462,
0.04376610741019249,
-0.04314987733960152,
-0.02336166240274906,
-0.039132870733737946,
0.01873091422021389,
0.03455798700451851,
0.03784602880477905,
0.026046812534332275,
0.01425168663263321,
0.047310151159763336,
-0.03997023031115532,
-0.048794936388731,
0.023839740082621574,
0.03512582927942276,
-0.014150196686387062,
-0.04039293900132179
] | pythonnltk-finding-the-most-common-phrases-in-how-i-met-your-mother | https://markhneedham.com/blog/2015/01/19/pythonnltk-finding-the-most-common-phrases-in-how-i-met-your-mother |
false | 2015-01-30 00:27:53 | R: ggplot2 - Each group consist of only one observation. Do you need to adjust the group aesthetic? | [
"r-2",
"rstats"
] | [
"R"
] | I've been playing around with some weather data over the last couple of days which I aggregated down to the average temperature per month over the last 4 years and stored in a CSV file.
This is what the file looks like:
[source,bash]
----
$ cat /tmp/averageTemperatureByMonth.csv
"month","aveTemperature"
"January",6.02684563758389
"February",5.89380530973451
"March",7.54838709677419
"April",10.875
"May",13.3064516129032
"June",15.9666666666667
"July",18.8387096774194
"August",18.3709677419355
"September",16.2583333333333
"October",13.4596774193548
"November",9.19166666666667
"December",7.01612903225806
----
I wanted to create a simple line chart which would show the months of the year in ascending order with the appropriate temperature.
My first attempt was the following:
[source,rstats]
----
df = read.csv("/tmp/averageTemperatureByMonth.csv")
df$month = factor(df$month, month.name)
ggplot(aes(x = month, y = aveTemperature), data = df) +
geom_line( ) +
ggtitle("Temperature by month")
----
which resulted in the following error:
[source,text]
----
geom_path: Each group consist of only one observation. Do you need to adjust the group aesthetic?
----
My understanding is that the points don't get joined up by default because the variable on the x axis is not a continuous one but rather a factor variable.
One way to work around this problem is to make it numeric, like so:
[source,rstats]
----
ggplot(aes(x = as.numeric(month), y = aveTemperature), data = df) +
geom_line( ) +
ggtitle("Temperature by month")
----
which results in the following chart:
image::{{<siteurl>}}/uploads/2015/01/2015-01-30_00-25-18.png[2015 01 30 00 25 18,600]
This isn't bad but it'd be much nicer if we could have the month names along the bottom instead.
It turns out we can but we need to https://kohske.wordpress.com/2010/12/27/faq-geom_line-doesnt-draw-lines/[specify a group] that each point belongs to. ggplot will then connects points which belong to the same group.
In this case we don't really have one so we'll define a dummy one instead:
[source,rstats]
----
ggplot(aes(x = month, y = aveTemperature, group=1), data = df) +
geom_line( ) +
ggtitle("Temperature by month")
----
And now we get the visualisation we want:
image::{{<siteurl>}}/uploads/2015/01/2015-01-29_23-28-23.png[2015 01 29 23 28 23,600] | null | null | [
0.0046430001966655254,
-0.025555267930030823,
-0.009998123161494732,
0.03298703953623772,
0.09631121903657913,
0.014586626552045345,
0.040265996009111404,
0.046669892966747284,
0.007986024022102356,
-0.01908908598124981,
0.0012781533878296614,
-0.011397440917789936,
-0.07186079770326614,
0.053331270813941956,
-0.03365566208958626,
0.08458572626113892,
0.08019080758094788,
-0.0022245130967348814,
0.012311778031289577,
0.024044325575232506,
0.04234229028224945,
0.0073841470293700695,
-0.028718527406454086,
0.01566540263593197,
0.0016693201614543796,
-0.04591426998376846,
0.014005168341100216,
0.030581211671233177,
-0.03282288834452629,
0.027360206469893456,
0.01942998543381691,
0.0247071273624897,
0.012099343352019787,
-0.0075989593751728535,
0.026721639558672905,
-0.012392372824251652,
-0.009552334435284138,
0.015092347748577595,
0.023634200915694237,
0.010449341498315334,
-0.04692472144961357,
0.026120688766241074,
-0.004257930442690849,
-0.017435545101761818,
-0.030066855251789093,
0.020855793729424477,
-0.029643839225172997,
0.030385667458176613,
-0.0021817891392856836,
0.008922198787331581,
-0.07077708840370178,
0.02813713625073433,
0.0012896093539893627,
-0.037441689521074295,
-0.014331784099340439,
0.05348741635680199,
0.00873800553381443,
-0.05484374612569809,
0.0016075819730758667,
-0.028852596879005432,
0.02949138917028904,
-0.010641058906912804,
-0.01842176541686058,
0.006237889640033245,
0.01403499860316515,
-0.0195873212069273,
-0.023668019101023674,
0.030261395499110222,
-0.023440079763531685,
-0.02757405862212181,
-0.01594499498605728,
0.022720258682966232,
-0.026400338858366013,
-0.018209107220172882,
-0.01880383864045143,
-0.051827818155288696,
-0.010740003548562527,
0.023848101496696472,
0.01681651920080185,
0.03957841917872429,
-0.014965658076107502,
0.001720754778943956,
0.02976408787071705,
0.019088419154286385,
0.008148971013724804,
-0.02998674288392067,
-0.029745304957032204,
-0.04016673564910889,
-0.06524122506380081,
0.06371887773275375,
0.014040550217032433,
-0.06673155725002289,
0.009640715084969997,
0.019891511648893356,
0.017407238483428955,
-0.036653295159339905,
0.011316755786538124,
-0.004575754515826702,
0.005880321841686964,
-0.006177161354571581,
-0.056386929005384445,
-0.0031371426302939653,
0.029037518426775932,
0.03996690362691879,
-0.059198472648859024,
0.013983063399791718,
0.0013561738887801766,
-0.011313559487462044,
0.0200284942984581,
0.02183934487402439,
0.007768729701638222,
-0.00043897199793718755,
-0.008370082825422287,
0.005682750139385462,
-0.07484930008649826,
0.06812872737646103,
0.036959897726774216,
-0.037899650633335114,
0.005126882344484329,
-0.006688667926937342,
0.068992018699646,
0.014025717042386532,
-0.00454571470618248,
0.05398540198802948,
-0.024130096659064293,
0.07877402007579803,
0.008578268811106682,
0.038492489606142044,
0.008525576442480087,
-0.06045958772301674,
-0.03685113787651062,
0.037497736513614655,
-0.014996673911809921,
-0.027137599885463715,
0.015595165081322193,
-0.046755701303482056,
-0.0091227563098073,
-0.003368666162714362,
0.0443819984793663,
0.0361306369304657,
0.017678257077932358,
-0.011188109405338764,
0.013523153029382229,
-0.03290250152349472,
0.020089803263545036,
0.04560893401503563,
0.0016745873726904392,
-0.06500665843486786,
-0.03316914662718773,
-0.00013185330317355692,
0.06860722601413727,
0.02359861694276333,
0.05795902758836746,
-0.0027957565616816282,
0.002476125955581665,
0.08391257375478745,
0.03003097139298916,
0.024250730872154236,
0.008867178112268448,
-0.016774076968431473,
0.047169290482997894,
0.04954063519835472,
0.026364851742982864,
0.07584937661886215,
-0.004896088503301144,
-0.013552813790738583,
-0.00156071363016963,
0.03040439821779728,
-0.06617092341184616,
0.0169847309589386,
-0.02845592424273491,
-0.040962837636470795,
0.0371435210108757,
0.001943753333762288,
0.023714184761047363,
0.06109568104147911,
0.05728285014629364,
0.05850599706172943,
0.06408489495515823,
0.015465272590517998,
-0.07388605922460556,
0.06334563344717026,
-0.01482449471950531,
0.031219491735100746,
0.05019224062561989,
-0.023663116618990898,
0.054724980145692825,
-0.017436694353818893,
0.008945049718022346,
0.017750976607203484,
-0.06716930866241455,
-0.046405889093875885,
-0.031108146533370018,
-0.020468778908252716,
0.02141629159450531,
-0.0400959737598896,
-0.010979262180626392,
0.06290493160486221,
0.01528484933078289,
0.04136008024215698,
-0.006428451277315617,
0.00496272835880518,
0.05910154804587364,
-0.02947772480547428,
-0.03867947310209274,
0.032865095883607864,
0.04317709803581238,
0.007812893949449062,
0.029981838539242744,
0.026388978585600853,
-0.046796757727861404,
0.04014631360769272,
0.05768459290266037,
-0.028361095115542412,
0.030024923384189606,
0.01906435377895832,
0.06097670644521713,
0.015025145374238491,
0.030696915462613106,
-0.023921918123960495,
0.0068041300401091576,
0.007008186541497707,
-0.034441784024238586,
-0.036507315933704376,
-0.05145972967147827,
0.12091413140296936,
0.08275491744279861,
-0.005242484156042337,
-0.032066524028778076,
-0.010744462721049786,
-0.0161273255944252,
-0.038799479603767395,
0.04029445722699165,
0.014095458202064037,
-0.011628418229520321,
0.048662491142749786,
-0.016025183722376823,
-0.024794654920697212,
0.0012545435456559062,
-0.030197344720363617,
0.03911986202001572,
0.05863533541560173,
0.0170963816344738,
0.06587473303079605,
-0.039447955787181854,
-0.0123229855671525,
0.012075203470885754,
-0.022156838327646255,
-0.08149640262126923,
-0.009390275925397873,
-0.013135664165019989,
0.008518313989043236,
0.04629061743617058,
-0.012331021018326283,
-0.06925691664218903,
-0.020138544961810112,
-0.06256919354200363,
0.012430062517523766,
0.06665907055139542,
0.03855838254094124,
-0.01656694896519184,
0.04893190786242485,
-0.012581173330545425,
0.00941086933016777,
-0.018083738163113594,
-0.03981752693653107,
-0.08174869418144226,
0.0007144432165659964,
-0.019686391577124596,
0.005501477513462305,
0.04580896347761154,
-0.009926439262926579,
0.014188663102686405,
0.023189768195152283,
0.0011318448232486844,
-0.014615651220083237,
0.06337293237447739,
-0.0030037201941013336,
0.004941447637975216,
-0.038903772830963135,
0.027076220139861107,
0.03546372056007385,
-0.012990560382604599,
-0.020030347630381584,
0.010783095844089985,
-0.06194354221224785,
0.05143516883254051,
-0.05237402021884918,
-0.012077072635293007,
-0.013445775024592876,
0.006345410365611315,
0.04179965704679489,
0.033792998641729355,
0.008912617340683937,
0.02393311634659767,
0.00713467039167881,
0.01708122342824936,
0.0022704522125422955,
0.012889445759356022,
0.04248885065317154,
0.034214116632938385,
-0.01000199280679226,
0.07513604313135147,
-0.036615341901779175,
-0.04114113375544548,
-0.036554161459207535,
-0.024760082364082336,
-0.03862598538398743,
-0.2532273530960083,
0.04501337558031082,
-0.0165130365639925,
-0.04043939337134361,
0.025673391297459602,
-0.06378576159477234,
0.027623571455478668,
-0.03586247190833092,
-0.04669804126024246,
0.00012491963570937514,
0.031936198472976685,
-0.03699171170592308,
-0.017362143844366074,
0.06979476660490036,
0.015656905248761177,
0.001625911914743483,
-0.0077846902422606945,
-0.07962792366743088,
0.02760814130306244,
0.03774525597691536,
0.03724562004208565,
-0.03153487294912338,
0.0028358299750834703,
0.0588902123272419,
0.025173919275403023,
0.06299653649330139,
-0.0550939217209816,
0.011380516923964024,
-0.0747591108083725,
-0.025745777413249016,
0.0026482294779270887,
-0.024235647171735764,
0.024697409942746162,
-0.0032952092587947845,
0.020659569650888443,
-0.016084570437669754,
0.03606841340661049,
0.00705769332125783,
0.023620925843715668,
0.023594984784722328,
-0.04959585517644882,
-0.03260340541601181,
0.002539754146710038,
-0.007838305085897446,
0.06078057736158371,
-0.0023148045875132084,
-0.024072477594017982,
0.007517666555941105,
-0.029200978577136993,
0.0799727588891983,
-0.009070617146790028,
0.004716872703284025,
-0.01424498576670885,
-0.0018758667865768075,
-0.05158387869596481,
0.009540913626551628,
-0.015369054861366749,
0.005547205917537212,
-0.03517051041126251,
-0.010446305386722088,
-0.007006522733718157,
-0.04682451859116554,
0.028221705928444862,
-0.07601425796747208,
-0.02851725183427334,
-0.05342818424105644,
-0.08512327075004578,
-0.04158078134059906,
0.06255064904689789,
0.041092995554208755,
-0.03369874879717827,
-0.03369796276092529,
-0.0002376792544964701,
-0.09231723845005035,
-0.002212896477431059,
-0.03618551418185234,
-0.008794321678578854,
-0.01154141966253519,
0.0015162440249696374,
0.009274657815694809,
-0.04590093716979027,
-0.046416088938713074,
0.039385560899972916,
0.022146882489323616,
0.036539338529109955,
0.001201088773086667,
0.0009157080203294754,
-0.011018755845725536,
-0.03999687731266022,
-0.017247263342142105,
0.055936481803655624,
-0.04010327532887459,
0.007625292055308819,
-0.0018790019676089287,
-0.039791006594896317,
0.015919804573059082,
-0.003621536074206233,
-0.018361080437898636,
0.02665586583316326,
-0.002634774660691619,
0.01775951310992241,
-0.04316321387887001,
0.009997736662626266,
-0.0483376607298851,
-0.023753948509693146,
-0.057594384998083115,
-0.04607594385743141,
0.03984394669532776,
0.04060694947838783,
0.020536107942461967,
0.02285425364971161,
-0.004134175833314657,
0.04012029618024826,
-0.048772480338811874,
-0.04501401633024216,
0.00008239772432716563,
0.011416175402700901,
0.01707790233194828,
0.02983909845352173,
0.004467859864234924,
-0.02546280063688755,
0.004457788076251745,
0.013979990966618061,
-0.029979657381772995,
-0.055934928357601166,
-0.008829241618514061,
0.015941224992275238,
-0.005048626102507114,
0.01795106753706932,
0.024414360523223877,
-0.0490073598921299,
0.03382618725299835,
0.08170012384653091,
-0.04990306869149208,
-0.005973089020699263,
-0.022108346223831177,
-0.051671892404556274,
-0.03705758601427078,
-0.0060753836296498775,
-0.0021009575575590134,
-0.022625962272286415,
0.04732824116945267,
-0.025093497708439827,
0.01248603779822588,
0.012330083176493645,
-0.0061459895223379135,
0.034691546112298965,
0.005286192987114191,
0.02183930203318596,
0.010624468326568604,
-0.016605328768491745,
-0.007401160430163145,
-0.02159218303859234,
-0.004995360970497131,
-0.06905153393745422,
0.011307021602988243,
0.021494736894965172,
0.0009100916213355958,
-0.05281338840723038,
-0.033830855041742325,
0.03855050355195999,
-0.03400677442550659,
-0.05570752173662186,
-0.021373264491558075,
0.0045734187588095665,
0.04321982339024544,
0.010155068710446358,
0.017534973099827766,
-0.0017492501065135002,
0.003038523718714714,
0.011992224492132664,
0.00911098811775446,
-0.004593917168676853,
-0.00039651687256991863,
-0.03875246271491051,
-0.012348570860922337,
0.052767615765333176,
-0.007459498010575771,
0.03913971409201622,
0.01353208813816309,
0.002886940725147724,
-0.030763668939471245,
-0.02681797556579113,
-0.011939148418605328,
0.02979949861764908,
0.03925888240337372,
-0.02959747239947319,
-0.01568594016134739,
-0.0010292333317920566,
-0.01520477794110775,
-0.016321232542395592,
-0.04632014408707619,
-0.037221357226371765,
-0.012353270314633846,
-0.0465475358068943,
-0.05044286325573921,
0.0229575727134943,
0.038929618895053864,
-0.000007319054930121638,
-0.00618245592340827,
-0.05073314532637596,
-0.0130037572234869,
-0.045705489814281464,
0.04076210409402847,
0.062144435942173004,
-0.05622866377234459,
-0.0038007129915058613,
-0.01055051852017641,
-0.024040313437581062,
-0.0027494418900460005,
-0.0031780796125531197,
-0.050431523472070694,
-0.022038763388991356,
-0.03780672699213028,
0.0638057291507721,
-0.014049811288714409,
-0.04983267933130264,
-0.07111936807632446,
0.003415564075112343,
-0.018967118114233017,
0.006124796345829964,
0.021375764161348343,
0.005704311653971672,
-0.04139172285795212,
0.02043997310101986,
0.0020108718890696764,
-0.0007418522727675736,
0.003458524588495493,
0.06083454191684723,
-0.011128024198114872,
-0.00024935149122029543,
-0.005102943163365126,
0.03464286029338837,
0.025923749431967735,
-0.028859322890639305,
-0.026025254279375076,
-0.029829617589712143,
-0.00031198980286717415,
0.0222452525049448,
0.04305420070886612,
-0.01596231944859028,
-0.013903145678341389,
-0.027977576479315758,
-0.012905595824122429,
0.01756022684276104,
-0.017842445522546768,
-0.039549730718135834,
-0.025253670290112495,
-0.0036392880138009787,
0.06998343020677567,
0.021289603784680367,
-0.011070656590163708,
0.010797420516610146,
-0.03634217754006386,
0.05110451206564903,
-0.02115200087428093,
-0.052613515406847,
-0.0027714844327419996,
-0.033730898052453995,
0.02108294516801834,
0.004740615375339985,
-0.0036648917011916637,
-0.05391762778162956,
0.07462222129106522,
0.043921586126089096,
0.04741627722978592,
0.060552407056093216,
-0.001727944822050631,
0.01898438297212124,
-0.04424084350466728,
0.015173611231148243,
-0.10508142411708832,
0.017176548019051552,
-0.0026701989118009806,
0.010647579096257687,
-0.022647865116596222,
-0.007285400293767452,
-0.035487059503793716,
0.04971805587410927,
-0.060254521667957306,
-0.04551773890852928,
0.03806769847869873,
-0.012624352239072323,
0.049067169427871704,
-0.0027624438516795635,
-0.028983302414417267,
-0.022382691502571106,
0.05312104895710945,
-0.08989734202623367,
-0.002302070613950491,
-0.005170095711946487,
0.058560989797115326,
-0.02134018950164318,
0.0400252491235733,
-0.016292603686451912,
-0.0156425628811121,
0.047160640358924866,
0.020365538075566292,
0.011645774357020855,
0.027991091832518578,
-0.0454070158302784,
0.054133448749780655,
0.027346918359398842,
-0.02229791134595871,
-0.021939270198345184,
0.0234966017305851,
0.016890039667487144,
-0.03432219475507736,
0.007347996812313795,
0.03204914927482605,
-0.012436209246516228,
-0.03813011944293976,
0.061004962772130966,
-0.03054047003388405,
-0.03657706081867218,
-0.03236588463187218,
0.008046545088291168,
-0.012891825288534164,
0.013518644496798515,
0.008197855204343796,
0.007173691876232624,
-0.03281007334589958,
0.048794277012348175,
-0.009698999114334583,
0.024380074813961983,
0.04853077605366707,
-0.015360244549810886,
0.014991450123488903,
0.021173084154725075,
0.07271900027990341,
0.09336690604686737,
0.03984687849879265,
0.010362128727138042,
0.039198119193315506,
-0.04632747545838356,
-0.03166991099715233,
0.004028255585581064,
-0.04546860605478287,
-0.017562879249453545,
-0.04466499015688896,
0.0028702516574412584,
0.07280391454696655,
-0.00830250233411789,
0.049863092601299286,
-0.006637292914092541,
-0.03325100243091583,
-0.035185325890779495,
0.025307567790150642,
0.033912740647792816,
0.012303912080824375,
0.006730183027684689,
0.006912336219102144,
-0.01932368241250515,
-0.04721307009458542,
0.037978287786245346,
0.028712958097457886,
-0.024702534079551697,
0.017159074544906616,
0.002290575299412012,
-0.017074573785066605,
-0.01513084676116705,
0.01941981539130211,
0.06310860067605972,
-0.04531657323241234,
-0.03398730605840683,
-0.009118163026869297,
0.05780601501464844,
-0.00491144135594368,
0.017708560451865196,
-0.0009248526184819639,
-0.0009222241933457553,
-0.021146664395928383,
-0.04034904018044472,
-0.012397938407957554,
-0.017806190997362137,
-0.023271819576621056,
0.011517324484884739,
-0.004853939171880484,
0.018652301281690598,
0.03784465044736862,
-0.021792279556393623,
-0.05932193249464035,
-0.051004163920879364,
-0.04100028797984123,
-0.043439146131277084,
-0.03710588812828064,
0.002135563874617219,
0.028455935418605804,
-0.032403960824012756,
0.010368465445935726,
0.0015204304363578558,
-0.018771134316921234,
-0.03638200834393501,
-0.024986596778035164,
-0.03562677651643753,
-0.03498775511980057,
0.038600195199251175,
0.03749921917915344,
0.006528061348944902,
-0.007609996013343334,
0.02808026224374771,
-0.009441453032195568,
0.00034574008896015584,
-0.008102436549961567,
0.003925934433937073,
0.036840952932834625,
0.02312364988029003,
0.022494839504361153,
-0.05014956369996071,
0.022533321753144264,
0.016277365386486053,
-0.03253662586212158,
-0.08171004801988602,
0.038890909403562546,
0.018553541973233223,
-0.04718475043773651,
0.050727855414152145,
-0.007451183628290892,
-0.005114359315484762,
-0.037683770060539246,
-0.026798170059919357,
-0.023477476090192795,
0.01656246930360794,
0.058043159544467926,
-0.0010916730388998985,
0.06461360305547714,
0.04700389504432678,
-0.008826115168631077,
-0.027733881026506424,
-0.019594363868236542,
-0.008141824044287205,
-0.008574853651225567,
-0.05720692500472069,
-0.025238260626792908,
-0.0645691454410553,
-0.08537688106298447,
-0.02345714159309864,
0.00875149480998516,
-0.05515647679567337,
0.003444972913712263,
0.0022470091935247183,
0.01528405211865902,
-0.04150523617863655,
-0.014225130900740623,
0.010862132534384727,
-0.004613622557371855,
-0.025702232494950294,
-0.02772993966937065,
-0.020286355167627335,
0.05281991511583328,
-0.035194505006074905,
0.03670165315270424,
-0.01487920992076397,
-0.05533323809504509,
0.041612397879362106,
-0.016533179208636284,
-0.006400513928383589,
0.04627592861652374,
-0.004312857519835234,
0.054128170013427734
] | [
-0.047220006585121155,
-0.011260796338319778,
0.017195483669638634,
-0.006614922545850277,
0.11845672875642776,
-0.04841964691877365,
-0.02278907038271427,
-0.011656171642243862,
-0.00407066848129034,
0.015059566125273705,
0.005803437437862158,
-0.03659291937947273,
0.03650845214724541,
0.0018441289430484176,
-0.015177536755800247,
-0.0048628137446939945,
-0.02875642292201519,
-0.03812538459897041,
0.0016467627137899399,
0.06011291965842247,
-0.014887255616486073,
-0.005458121187984943,
-0.052540794014930725,
-0.051562510430812836,
0.059603337198495865,
0.06824387609958649,
-0.003714336082339287,
-0.035359498113393784,
-0.051106248050928116,
-0.1985626220703125,
0.0032172296196222305,
-0.00672497134655714,
0.04097207635641098,
-0.03828104957938194,
-0.030267642810940742,
0.03788783773779869,
0.041391175240278244,
0.016579333692789078,
0.006587994284927845,
0.04079102352261543,
0.008165487088263035,
-0.005360791459679604,
-0.05213427543640137,
-0.049947019666433334,
0.023991068825125694,
0.003233227413147688,
-0.04793552681803703,
0.026713283732533455,
0.015265040099620819,
0.014218066819012165,
-0.014698320999741554,
0.01576893962919712,
-0.049985066056251526,
0.0302999559789896,
0.0006194983725436032,
0.07316504418849945,
0.029278995469212532,
0.005147971678525209,
0.0157378688454628,
0.017942488193511963,
-0.0059378184378147125,
0.0028915079310536385,
-0.18977971374988556,
0.0925176739692688,
0.0038740141317248344,
0.02225504256784916,
-0.013312618248164654,
0.00392207270488143,
-0.06195961311459541,
0.023268546909093857,
-0.011872275732457638,
0.007959336042404175,
-0.02962321788072586,
0.04699316248297691,
0.0232162494212389,
-0.01610351912677288,
-0.04518270120024681,
0.0009720689267851412,
0.02728991024196148,
-0.031247355043888092,
-0.026853349059820175,
0.030036015436053276,
-0.012456084601581097,
-0.030193405225872993,
0.041407953947782516,
-0.027194438502192497,
0.008813117630779743,
0.024693112820386887,
0.01260149572044611,
0.011378396302461624,
0.0372033454477787,
-0.030365420505404472,
0.005342897493392229,
0.02630503848195076,
-0.05396319180727005,
-0.015903456136584282,
0.05792650207877159,
0.01929830200970173,
-0.01998390443623066,
0.370497465133667,
-0.05436374992132187,
-0.028789017349481583,
0.018336253240704536,
0.07952509075403214,
-0.003518703393638134,
0.010531064122915268,
0.008900001645088196,
-0.041840583086013794,
0.015476156026124954,
-0.0125475088134408,
-0.010349972173571587,
-0.03984818980097771,
0.03678714856505394,
-0.08585835248231888,
0.030663037672638893,
-0.041815899312496185,
0.00822281464934349,
-0.0033410158939659595,
0.020682042464613914,
0.02718222886323929,
0.011031401343643665,
0.003206779947504401,
0.05742039158940315,
0.024970024824142456,
0.03506377339363098,
-0.015899257734417915,
0.032683115452528,
0.10810425877571106,
0.04532025009393692,
-0.029604997485876083,
0.08352352678775787,
-0.01618000864982605,
-0.06884195655584335,
-0.001857306808233261,
-0.007416305132210255,
-0.008813248947262764,
0.028037969022989273,
-0.009510090574622154,
0.008906114846467972,
0.013244438916444778,
-0.0095674442127347,
-0.023532122373580933,
0.029816219583153725,
-0.025274943560361862,
-0.02008797787129879,
0.13920333981513977,
-0.02020629122853279,
-0.03702274709939957,
-0.023202085867524147,
-0.039416130632162094,
-0.029871508479118347,
0.012317236512899399,
0.04526354372501373,
-0.04867736995220184,
0.026015477254986763,
0.03862959146499634,
0.04290008917450905,
-0.02860630303621292,
-0.053933560848236084,
-0.03194059431552887,
-0.02267388254404068,
-0.028772728517651558,
-0.04216032102704048,
0.030948499217629433,
0.05969016253948212,
-0.06423686444759369,
-0.031318072229623795,
0.038759417831897736,
-0.0027488607447594404,
-0.03931311517953873,
0.06100240349769592,
-0.00033291641739197075,
-0.0077161239460110664,
0.009792761877179146,
0.0835307389497757,
-0.009676636196672916,
0.01134129986166954,
0.012139488942921162,
0.0459040142595768,
-0.014006048440933228,
0.009687875397503376,
0.009479199536144733,
-0.009331540204584599,
-0.006139466073364019,
-0.028174107894301414,
-0.04859522730112076,
-0.07384708523750305,
-0.0167999230325222,
-0.03787009418010712,
-0.02313428930938244,
0.0005334066227078438,
-0.054980140179395676,
-0.043664973229169846,
0.061854541301727295,
-0.04171716794371605,
0.006303134839981794,
0.020473850890994072,
0.023560645058751106,
0.029889661818742752,
-0.06521634012460709,
0.024643324315547943,
-0.03937794640660286,
0.011648609302937984,
0.014048184268176556,
-0.03775296360254288,
0.021559137850999832,
0.07162218540906906,
-0.04399764910340309,
0.0537947453558445,
0.029554221779108047,
0.022255420684814453,
-0.022258324548602104,
-0.015331033617258072,
-0.02478797174990177,
-0.017432590946555138,
0.020306486636400223,
-0.029698016121983528,
-0.043522655963897705,
-0.00024085218319669366,
0.02879566326737404,
0.0282722357660532,
-0.06414379924535751,
0.01079627126455307,
-0.3734402060508728,
-0.05663635954260826,
0.035278283059597015,
-0.009474039077758789,
0.06154094636440277,
-0.02552306093275547,
0.009379384107887745,
-0.015915390104055405,
0.0025854066479951143,
0.0537959448993206,
0.08797197043895721,
-0.01655002124607563,
-0.0018284694524481893,
-0.12016423046588898,
-0.03141135349869728,
0.018464133143424988,
-0.022446490824222565,
-0.03589717671275139,
-0.024904094636440277,
0.02547827921807766,
-0.030798206105828285,
-0.009093585424125195,
-0.050951290875673294,
-0.050969190895557404,
0.02079842798411846,
0.005574284587055445,
0.10791303962469101,
-0.011725330725312233,
0.019765572622418404,
-0.05587717518210411,
0.048054251819849014,
-0.01545539777725935,
0.007316730450838804,
-0.03223080188035965,
0.04376958683133125,
-0.01855308562517166,
-0.008033889345824718,
0.05418851971626282,
-0.0381227470934391,
-0.05789806693792343,
-0.013955050148069859,
0.03276753053069115,
-0.01679362915456295,
0.03070763498544693,
-0.05504101887345314,
0.009327759966254234,
0.026165153831243515,
0.011621342040598392,
-0.05309804901480675,
0.023381438106298447,
0.005630707833915949,
-0.01072085089981556,
0.037839967757463455,
0.01915326528251171,
0.028479157015681267,
-0.026692306622862816,
-0.08784345537424088,
0.02935931831598282,
0.002473381580784917,
-0.022773057222366333,
0.036017559468746185,
0.042722269892692566,
0.09025582671165466,
-0.06959722936153412,
-0.02547563426196575,
0.0032281491439789534,
-0.021004965528845787,
-0.028576768934726715,
0.02304721064865589,
0.03609626740217209,
-0.044907934963703156,
0.08724059164524078,
-0.03328339755535126,
0.039008039981126785,
0.025579791516065598,
0.03122168406844139,
-0.03550735488533974,
0.050311751663684845,
0.006103190127760172,
-0.035186950117349625,
0.0713527500629425,
-0.04013710096478462,
0.016569169238209724,
0.0017142603173851967,
0.0278751440346241,
0.039604492485523224,
-0.027816131711006165,
-0.0067103561013937,
0.044967349618673325,
0.021918771788477898,
-0.006814646068960428,
-0.04293273389339447,
-0.020643863826990128,
-0.03183591365814209,
0.08844952285289764,
-0.003674945095553994,
-0.2915741205215454,
0.020764758810400963,
0.00904487632215023,
0.01467299647629261,
-0.01430217269808054,
-0.013480942696332932,
-0.02684648334980011,
-0.018745897337794304,
-0.02158455364406109,
0.025066813454031944,
-0.004518249072134495,
0.035255059599876404,
0.03915946185588837,
-0.016660163179039955,
0.009689217433333397,
-0.050054881721735,
0.008752488531172276,
-0.014067085459828377,
0.03736605495214462,
0.004821733105927706,
0.045877352356910706,
-0.028477199375629425,
0.17570734024047852,
0.02380724996328354,
-0.007612975779920816,
0.02186906524002552,
-0.0174518171697855,
-0.011823748238384724,
0.09153322875499725,
0.022858301177620888,
0.03177441656589508,
-0.011222981847822666,
0.07576584070920944,
0.025024915114045143,
0.033794574439525604,
-0.0004909824347123504,
-0.020198358222842216,
0.06319352239370346,
0.052189264446496964,
-0.051775865256786346,
-0.03558863699436188,
0.029657475650310516,
-0.0201607346534729,
0.026435716077685356,
0.07022693753242493,
-0.00926830992102623,
0.013894463889300823,
-0.060159992426633835,
-0.01600518636405468,
0.015937145799398422,
-0.004338175058364868,
-0.017850009724497795,
-0.05085664615035057,
0.018309300765395164,
-0.00898616760969162,
0.018964877352118492,
0.045055173337459564,
0.008804231882095337,
0.013729793950915337,
-0.0056955101899802685,
-0.021178459748625755,
-0.07955770194530487,
0.0724053904414177,
0.0024656718596816063,
-0.004112242721021175
] | [
0.011608808301389217,
0.040235716849565506,
0.01496789138764143,
0.060107823461294174,
-0.005214614327996969,
-0.01751650869846344,
-0.00217518606223166,
-0.01099241804331541,
-0.021810423582792282,
0.02217230200767517,
-0.031851183623075485,
0.0006265182164497674,
0.01803719997406006,
-0.048254869878292084,
0.00216785934753716,
-0.022934356704354286,
-0.004637635312974453,
-0.02553739584982395,
0.03235223889350891,
-0.02217217907309532,
-0.060892727226018906,
0.027645081281661987,
-0.007146630436182022,
0.021345391869544983,
-0.004980464465916157,
0.015351501293480396,
-0.04270263761281967,
0.051359567791223526,
0.02124592289328575,
-0.06382725387811661,
-0.04009062796831131,
-0.011351208202540874,
0.007763443514704704,
0.03144814074039459,
-0.053471095860004425,
-0.0005326729151420295,
-0.009059184230864048,
0.028298689052462578,
-0.02064231038093567,
0.02550944872200489,
-0.014310503378510475,
0.0029236581176519394,
0.03842942789196968,
-0.029593931511044502,
0.009415190666913986,
-0.0019565820693969727,
-0.010905285365879536,
0.004213995300233364,
-0.020770447328686714,
0.010645044967532158,
-0.026670174673199654,
0.02730407379567623,
-0.05918946862220764,
0.021292224526405334,
0.006476454436779022,
-0.011365976184606552,
-0.04002770036458969,
-0.03917241096496582,
-0.010865923017263412,
-0.029210342094302177,
-0.019875749945640564,
-0.002884607994928956,
-0.05901367962360382,
-0.023404235020279884,
0.023983348160982132,
-0.045359838753938675,
0.002122658770531416,
0.037854015827178955,
0.008443057537078857,
0.01980559527873993,
-0.007154866587370634,
0.021940549835562706,
-0.010581973008811474,
-0.021434418857097626,
-0.030238978564739227,
0.04795623570680618,
0.0010476226452738047,
-0.04485646262764931,
0.02303398586809635,
-0.005963388830423355,
-0.0477944053709507,
0.028988055884838104,
0.014234192669391632,
0.0042963274754583836,
-0.03440398722887039,
-0.024486901238560677,
0.01973923109471798,
0.018918044865131378,
0.0000276973114523571,
-0.014091732911765575,
0.03855776786804199,
0.03670158237218857,
0.009919602423906326,
0.010417577810585499,
-0.07186516374349594,
0.009909922257065773,
0.0033986226189881563,
-0.01828216202557087,
0.0019708576146513224,
0.8282219171524048,
-0.012203525751829147,
0.017323236912488937,
0.0035927053540945053,
0.02772701159119606,
-0.02013939991593361,
-0.029889356344938278,
0.003121734829619527,
-0.01877051219344139,
0.013730592094361782,
-0.021536853164434433,
-0.03084172122180462,
-0.0008551250793971121,
0.007496875245124102,
0.03230536729097366,
0.03483184799551964,
0.017887139692902565,
-0.004597545135766268,
0.0021347396541386843,
0.0037203689571470022,
0.005348749924451113,
0.015796763822436333,
0.026532141491770744,
-0.0027261259965598583,
0.0208168625831604,
0.024293415248394012,
-0.16066046059131622,
0.04835214093327522,
-7.256588909803008e-33,
0.029447907581925392,
-0.02632025070488453,
0.048602283000946045,
-0.012234384194016457,
0.04651244357228279,
0.04926483705639839,
-0.031502921134233475,
0.02520652487874031,
0.01953726075589657,
0.005304049234837294,
0.011626945808529854,
0.012272436171770096,
-0.007070235442370176,
-0.006242263130843639,
0.029594814404845238,
-0.02197454497218132,
-0.009415986016392708,
0.027688708156347275,
0.005954116582870483,
0.005773868411779404,
0.0041107540018856525,
0.041917480528354645,
0.037260960787534714,
0.04472363740205765,
0.013392074964940548,
0.02843588963150978,
0.029760047793388367,
0.020355289801955223,
-0.014705403707921505,
-0.0415625274181366,
-0.014794738963246346,
0.012380114756524563,
-0.016350362449884415,
-0.03868410363793373,
0.016312742605805397,
-0.0660136267542839,
-0.013264686800539494,
-0.0035392066929489374,
0.005836047697812319,
0.020711369812488556,
-0.04084965959191322,
-0.031056711450219154,
-0.009988786652684212,
-0.00334061193279922,
-0.03027987852692604,
0.029224693775177002,
0.010713532567024231,
0.05364613980054855,
0.001485937274992466,
0.022514622658491135,
-0.008546893484890461,
0.00040903245098888874,
0.012492219917476177,
-0.026497365906834602,
-0.01240179967135191,
0.041267868131399155,
0.008161106146872044,
-0.006348977796733379,
-0.021477704867720604,
-0.046266186982393265,
-0.03870869800448418,
-0.014347933232784271,
0.022615157067775726,
-0.010825231671333313,
-0.006615478545427322,
0.011358819901943207,
0.036832407116889954,
0.030476972460746765,
-0.014128664508461952,
0.0056222788989543915,
-0.03899385780096054,
0.017921404913067818,
-0.027206730097532272,
-0.03795337304472923,
0.06566067785024643,
-0.014140920713543892,
0.020628824830055237,
0.01281312108039856,
0.014903919771313667,
0.01073045190423727,
-0.015134318731725216,
-0.012490471825003624,
0.047048259526491165,
-0.00035067007411271334,
-0.0072933402843773365,
-0.022710228338837624,
0.020260175690054893,
0.06819206476211548,
-0.02447480894625187,
0.00944870337843895,
-0.018313271924853325,
0.018460171297192574,
0.023399289697408676,
-0.0050285072065889835,
-0.0034905336797237396,
7.26102860502927e-33,
-0.01093644741922617,
0.0025137753691524267,
0.005978387780487537,
0.010747072286903858,
0.0377160869538784,
-0.02724384143948555,
-0.006511234678328037,
-0.0006654695025645196,
-0.0019411980174481869,
0.017851172015070915,
-0.0206444188952446,
-0.03627977520227432,
-0.002504067262634635,
0.013727025128901005,
0.058081306517124176,
0.009758972562849522,
-0.01974651962518692,
0.0022181023377925158,
-0.02748139761388302,
0.010377086699008942,
-0.035874467343091965,
-0.015329036861658096,
0.02669897861778736,
0.006790474988520145,
0.041002899408340454,
0.011348600499331951,
0.007106704171746969,
-0.005001186393201351,
0.01125410944223404,
-0.0065231528133153915,
0.0036046109162271023,
0.0012897578999400139,
-0.014956138096749783,
-0.05343131721019745,
-0.034118346869945526,
0.04361416772007942,
0.023936649784445763,
-0.03771037235856056,
-0.0294918492436409,
-0.003480689600110054,
0.044829487800598145,
0.015894385054707527,
0.017788201570510864,
0.011583846062421799,
0.03291333094239235,
0.017916478216648102,
0.021045854315161705,
0.030314335599541664,
-0.022010819986462593,
0.029169423505663872,
0.010481741279363632,
-0.026080593466758728,
0.011805692687630653,
0.03330357000231743,
0.043255776166915894,
0.009554355405271053,
-0.021654315292835236,
0.004828447476029396,
-0.06314124166965485,
-0.05132957175374031,
-0.008562605828046799,
-0.020222077146172523,
-0.03016446717083454,
-0.010725904256105423,
-0.04767496511340141,
-0.005870110355317593,
0.006139017641544342,
-0.03889494761824608,
0.020736724138259888,
0.03111395612359047,
0.021666109561920166,
-0.05389907956123352,
-0.018221579492092133,
-0.005121585913002491,
-0.009610529989004135,
-0.00007035874295979738,
-0.006928917486220598,
-0.020637869834899902,
-0.036736611276865005,
0.021926218643784523,
0.0249879602342844,
0.007189754396677017,
0.03675495460629463,
0.015605736523866653,
0.019172392785549164,
0.0014722703490406275,
-0.052383679896593094,
0.016451522707939148,
0.07775238901376724,
0.0354854092001915,
-0.02997398190200329,
-0.00849384255707264,
-0.0046514784917235374,
0.03284259885549545,
-0.03425615280866623,
-1.2918103919901114e-8,
0.0023075321223586798,
0.026273176074028015,
-0.01354806125164032,
0.011960053816437721,
0.015283175744116306,
-0.013918624259531498,
-0.015354489907622337,
-0.024957653135061264,
-0.00809131283313036,
0.018151190131902695,
0.059274543076753616,
-0.026649989187717438,
0.0034819766879081726,
0.019719228148460388,
-0.02652120403945446,
-0.06462793797254562,
0.008263207972049713,
-0.03128335624933243,
0.014700549654662609,
-0.02944440208375454,
-0.02379852719604969,
0.017621733248233795,
-0.014524984173476696,
-0.0006684242398478091,
0.05391458421945572,
-0.006646119058132172,
-0.01126148458570242,
-0.07732203602790833,
0.017305675894021988,
-0.00555545836687088,
0.017373062670230865,
-0.05374772101640701,
-0.00543560553342104,
0.0053651463240385056,
-0.03497476875782013,
-0.07880419492721558,
0.040230315178632736,
0.04948659613728523,
0.054593320935964584,
0.002563481917604804,
0.02418345771729946,
0.014070400036871433,
-0.006443679332733154,
-0.02625771053135395,
-0.014961451292037964,
-0.009179804474115372,
-0.04185692220926285,
-0.009626759216189384,
0.02221705950796604,
-0.023374043405056,
-0.0022245540749281645,
-0.04584261029958725,
0.001997087150812149,
0.041112270206213,
0.026541810482740402,
0.005280765239149332,
-0.019722679629921913,
0.0015117012662813067,
-0.019010335206985474,
-0.031705643981695175,
-0.028672995045781136,
-0.005718209780752659,
-0.046215713024139404,
-0.055567726492881775
] | r-ggplot2-each-group-consist-of-only-one-observation-do-you-need-to-adjust-the-group-aesthetic | https://markhneedham.com/blog/2015/01/30/r-ggplot2-each-group-consist-of-only-one-observation-do-you-need-to-adjust-the-group-aesthetic |
false | 2015-01-30 21:29:00 | Python/matpotlib: Plotting occurrences of the main characters in How I Met Your Mother | [
"python"
] | [
"Python"
] | Normally when I'm playing around with data sets in R I get out ggplot2 to plot some charts to get a feel for the data but having spent quite a bit of time with Python and How I met your mother transcripts I haven't created a single plot. I thought I'd better change change that.
After a bit of searching around it seems that http://matplotlib.org/[matplotlib] is the go to library for this job and I thought an interesting thing to plot would be how often each of the main characters appear in each episode across the show.
I've already got all the https://github.com/mneedham/neo4j-himym/blob/master/data/import/sentences.csv[sentences] from each episode as well as the https://github.com/mneedham/neo4j-himym/blob/master/data/import/episodes.csv[list of episodes] pulled out into CSV files so we can start from there.
This is a sample of the sentences file:
[source,bash]
----
$ head -n 10 data/import/sentences.csv
SentenceId,EpisodeId,Season,Episode,Sentence
1,1,1,1,Pilot
2,1,1,1,Scene One
3,1,1,1,[Title: The Year 2030]
4,1,1,1,"Narrator: Kids, I'm going to tell you an incredible story. The story of how I met your mother"
5,1,1,1,Son: Are we being punished for something?
6,1,1,1,Narrator: No
7,1,1,1,"Daughter: Yeah, is this going to take a while?"
8,1,1,1,"Narrator: Yes. (Kids are annoyed) Twenty-five years ago, before I was dad, I had this whole other life."
9,1,1,1,"(Music Plays, Title ""How I Met Your Mother"" appears)"
----
My first step was to transform the CSV file into an array of words grouped by episode. I created a dictionary, iterated over the CSV file and then used nltk's word tokeniser to pull out words from sentences:
[source,python]
----
import csv
from collections import defaultdict
episodes = defaultdict(list)
with open("data/import/sentences.csv", "r") as sentencesfile:
reader = csv.reader(sentencesfile, delimiter = ",")
reader.next()
for row in reader:
episodes[row[1]].append([ word for word in nltk.word_tokenize(row[4].lower())] )
----
Let's have a quick look what's in our dictionary:
[source,python]
----
>>> episodes.keys()[:10]
['165', '133', '132', '131', '130', '137', '136', '135', '134', '139']
----
We've got some episode numbers as we'd expect. Now let's have a look at some of the words for one of the episodes:
[source,python]
----
>>> episodes["165"][5]
['\xe2\x99\xaa', 'how', 'i', 'met', 'your', 'mother', '8x05', '\xe2\x99\xaa']
----
So we've got an list of lists of words for each episode but https://radimrehurek.com/gensim/[gensim] (which I wanted to play around with) requires a single array of words per document.
I transformed the data into the appropriate format and fed it into a gensim Dictionary:
[source,python]
----
from gensim import corpora
texts = []
for id, episode in episodes.iteritems():
texts.append([item for sublist in episode for item in sublist])
dictionary = corpora.Dictionary(texts)
----
If we peek into 'texts' we can see that the list has been flattened:
[source,python]
----
>>> texts[0][10:20]
['a', 'bit', 'of', 'a', 'dog', ',', 'and', 'even', 'though', 'he']
----
We'll now convert our dictionary of words into a sparse vector which contains pairs of word ids and the number of time they occur:
[source,python]
----
corpus = [dictionary.doc2bow(text) for text in texts]
----
Let's try and find out how many times the word 'ted' occurs in our corpus. First we need to find out the word id for 'ted':
[source,python]
----
>>> dictionary.token2id["ted"]
551
----
I don't know how to look up the word id directly from the corpus but you can get back an individual document (episode) and its words quite easily:
[source,python]
----
>>> corpus[0][:5]
[(0, 8), (1, 1), (2, 2), (3, 13), (4, 20)]
----
We can then convert that into a dictionary and look up our word:
[source,python]
----
>>> dict(corpus[0]).get(551)
16
----
So 'ted' occurs 16 times in the first episode. If we generify that code we end up with the following:
[source,python]
----
words = ["ted", "robin", "barney", "lily", "marshall"]
words_dict = dict()
for word in words:
word_id = dictionary.token2id[word]
counts = []
for episode in corpus:
count = dict(episode).get(word_id) or 0
counts.append(count)
words_dict[word] = counts
----
There's quite a lot of counts in there so let's just preview the first 5 episodes:
[source,python]
----
>>> for word, counts in words_dict.iteritems():
print word, counts[:5]
lily [3, 20, 47, 26, 41]
marshall [8, 25, 63, 27, 34]
barney [9, 94, 58, 92, 102]
ted [16, 46, 66, 32, 44]
robin [18, 43, 25, 24, 34]
----
Now it's time to bring out matplotlib and make this visual! I initially put all the characters on one chart but it looks very messy and there's a lot of overlap so I decided on separate charts.
The only thing I had to do to achieve this was call +++<cite>+++plt.figure()+++</cite>+++ at the beginning of the loop to create a new plot:
[source,python]
----
import matplotlib
matplotlib.use('TkAgg')
import matplotlib.pyplot as plt
pylab.show()
for word, counts in words_dict.iteritems():
plt.figure()
plt.plot(counts)
plt.legend([word], loc='upper left')
plt.ylabel('occurrences')
plt.xlabel('episode')
plt.xlim(0, 208)
plt.savefig('images/%s.png' % (word), dpi=200)
----
This generates plots like this:
image::{{<siteurl>}}/uploads/2015/01/2015-01-30_21-15-03.png[2015 01 30 21 15 03,600]
This is good but I thought it'd be interesting to put in the season demarcations to see if that could give any more insight. We can call the function +++<cite>+++plt.axvline+++</cite>+++ and pass in the appropriate episode number to achieve this effect but I needed to know the episode ID for the last episode in each season which required a bit of code:
[source,python]
----
import pandas as pd
df = pd.read_csv('data/import/episodes.csv', index_col=False, header=0)
last_episode_in_season = list(df.groupby("Season").max()["NumberOverall"])
>>> last_episode_in_season
[22, 44, 64, 88, 112, 136, 160, 184, 208]
----
Now let's plug that into matplotlib:
[source,python]
----
for word, counts in words_dict.iteritems():
plt.figure()
plt.plot(counts)
for episode in last_episode_in_season:
plt.axvline(x=episode, color = "red")
plt.legend([word], loc='upper left')
plt.ylabel('occurrences')
plt.xlabel('episode')
plt.xlim(0, 208)
plt.savefig('images/%s.png' % (word), dpi=200)
----
image::{{<siteurl>}}/uploads/2015/01/2015-01-30_21-10-52.png[2015 01 30 21 10 52,569]
The last thing I wanted to do is get all the plots on the same scale for which I needed to get the maximum number of occurrences of any character in any episode. It was easier than I expected:
[source,python]
----
>>> y_max = max([max(count) for count in words_dict.values()])
>>> y_max
260
----
And now let's plot again:
[source,python]
----
for word, counts in words_dict.iteritems():
plt.figure()
plt.plot(counts)
for episode in last_episode_in_season:
plt.axvline(x=episode, color = "red")
plt.legend([word], loc='upper left')
plt.ylabel('occurrences')
plt.xlabel('episode')
plt.xlim(0, 208)
plt.ylim(0, y_max)
plt.savefig('images/%s.png' % (word), dpi=200)
----
Our charts are now easy to compare:
image::{{<siteurl>}}/uploads/2015/01/2015-01-30_21-23-48.png[2015 01 30 21 23 48,575]
image::{{<siteurl>}}/uploads/2015/01/2015-01-30_21-24-03.png[2015 01 30 21 24 03,551]
For some reason there's a big spike of the word 'ted' in the middle of the 7th season - I'm clearly not a big enough fan to know why that is but it's a spike of 30% over the next highest value.
The data isn't perfect - some of the episodes list the speaker of the sentence and some don't so it may be that the spikes indicate that rather than anything else.
I find it's always nice to do a bit of visual exploration of the data anyway and now I know it's possible to do so pretty easily in Python land. | null | null | [
-0.008725314401090145,
-0.008491629734635353,
-0.011900887824594975,
0.054407794028520584,
0.09126120060682297,
0.00692741060629487,
-0.004525487311184406,
0.03180710971355438,
0.004495755769312382,
0.0074645415879786015,
0.006443781312555075,
-0.006013598758727312,
-0.05464211478829384,
0.027832843363285065,
-0.0347173698246479,
0.07405392825603485,
0.04667076840996742,
-0.0025170675944536924,
0.007485815789550543,
0.00941134337335825,
0.008542047813534737,
0.03968619182705879,
0.0006357207894325256,
0.03746582940220833,
-0.012479796074330807,
-0.02769581601023674,
0.007324493955820799,
0.00462811766192317,
-0.03205948323011398,
0.004446872044354677,
0.0349578894674778,
-0.0531265065073967,
0.004673116374760866,
-0.01134791225194931,
0.020812641829252243,
-0.007358635310083628,
-0.05722532793879509,
0.03589979559183121,
0.011401488445699215,
-0.035876791924238205,
-0.07585255056619644,
0.026006700471043587,
-0.03127674758434296,
-0.03468690812587738,
-0.03393589332699776,
-0.008962949737906456,
-0.02269839495420456,
0.050013117492198944,
0.01775818131864071,
0.012418513186275959,
-0.026782747358083725,
0.036124762147665024,
0.020938815549016,
-0.04802941903471947,
-0.012095743790268898,
0.055711500346660614,
0.03851877525448799,
-0.10133707523345947,
0.027789806947112083,
-0.0008115462260320783,
-0.03615724667906761,
-0.001791909453459084,
-0.005420283414423466,
0.03534197807312012,
0.014699338935315609,
-0.05550963059067726,
-0.026570133864879608,
0.04803013429045677,
-0.04082097113132477,
-0.016712963581085205,
-0.042797718197107315,
0.00928368791937828,
-0.025357911363244057,
-0.02428380586206913,
0.016248362138867378,
-0.032817766070365906,
0.011469044722616673,
0.03688344731926918,
-0.007811408955603838,
0.01911759190261364,
-0.04413163661956787,
0.027899568900465965,
0.0018391349585726857,
0.006129599642008543,
-0.01065471488982439,
-0.028403006494045258,
-0.035484783351421356,
-0.033260200172662735,
-0.05932852625846863,
0.039017852395772934,
-0.009093692526221275,
-0.06350211054086685,
-0.0016618405934423208,
0.006593460217118263,
-0.010424850508570671,
-0.002755662426352501,
-0.0002889062452595681,
0.00010324503091396764,
-0.02383413538336754,
-0.005731178913265467,
-0.08041314035654068,
-0.01657644659280777,
0.02293124422430992,
0.019462794065475464,
-0.07753357291221619,
-0.002775185974314809,
0.015542502515017986,
-0.009636657312512398,
-0.02327481471002102,
0.015450984239578247,
-0.025892700999975204,
-0.02987375482916832,
-0.009924665093421936,
0.008015272207558155,
-0.08788666129112244,
0.07940015196800232,
0.05060389265418053,
-0.031402114778757095,
-0.01057451218366623,
0.025927051901817322,
0.022357743233442307,
-0.0029597673565149307,
-0.019095154479146004,
0.07765951752662659,
-0.021086879074573517,
0.034247711300849915,
0.0016975522739812732,
0.056633077561855316,
0.007997345179319382,
-0.04599151015281677,
-0.01809924654662609,
0.04334954544901848,
-0.02725946344435215,
0.02030235342681408,
0.015352935530245304,
-0.018888847902417183,
-0.029629740864038467,
-0.006447135470807552,
0.05147910118103027,
0.07161738723516464,
0.015370913781225681,
-0.022176476195454597,
0.04160315915942192,
0.016799425706267357,
0.027497975155711174,
-0.017657237127423286,
-0.030292803421616554,
-0.035134684294462204,
-0.04440952092409134,
0.01035946886986494,
0.02908092737197876,
0.02437336929142475,
0.07906145602464676,
-0.01582425646483898,
0.02491026185452938,
0.08438696712255478,
0.013648893684148788,
0.05311241000890732,
0.003392632119357586,
-0.005792426876723766,
0.059753648936748505,
0.03220647573471069,
0.018867146223783493,
0.02375498041510582,
-0.006743132136762142,
-0.0307481586933136,
0.019809113815426826,
0.04180305823683739,
-0.03381583094596863,
-0.002799315145239234,
-0.04641970992088318,
-0.025472367182374,
0.0736667588353157,
-0.027989579364657402,
0.007672430481761694,
0.011341417208313942,
0.038123030215501785,
0.05132650211453438,
0.025493279099464417,
-0.007407888304442167,
-0.07857292890548706,
0.06403473764657974,
0.010015810839831829,
-0.0016336047556251287,
0.05101519450545311,
-0.01412780862301588,
0.06738653033971786,
0.01600906439125538,
0.025106213986873627,
0.022438354790210724,
-0.05339116230607033,
-0.07059049606323242,
-0.013813589699566364,
0.01250892598181963,
0.033443376421928406,
-0.03366297855973244,
-0.005072014406323433,
0.07052600383758545,
0.026377269998192787,
0.029998278245329857,
-0.017048416659235954,
0.009534081444144249,
0.029762903228402138,
-0.03668705374002457,
-0.028867997229099274,
-0.0011601540027186275,
0.012202882207930088,
-0.04029293358325958,
0.01620025932788849,
-0.0069904266856610775,
-0.029134711250662804,
0.027731530368328094,
0.07280724495649338,
-0.0414702370762825,
0.06766536831855774,
0.020444823428988457,
0.04272107779979706,
-0.024248013272881508,
0.01038740947842598,
-0.04642564803361893,
-0.00026515446370467544,
-0.013719664886593819,
-0.010434594936668873,
-0.04213686287403107,
-0.026925982907414436,
0.12221023440361023,
0.06212204694747925,
-0.02500743977725506,
-0.056527119129896164,
0.03488503769040108,
-0.02664005197584629,
-0.015240820124745369,
0.0020430346485227346,
0.007184287998825312,
-0.023903468623757362,
0.03309166431427002,
-0.037225622683763504,
-0.028268273919820786,
0.009691680781543255,
-0.027151837944984436,
0.00802730955183506,
0.05353861302137375,
-0.012731342576444149,
0.06019836664199829,
0.007354785688221455,
-0.0012870990904048085,
-0.015548061579465866,
-0.040268562734127045,
-0.058955758810043335,
0.008396467193961143,
0.01732240431010723,
-0.005137668456882238,
0.03214610740542412,
-0.011295773088932037,
-0.03614649176597595,
0.0011951624182984233,
-0.07464241981506348,
0.013004238717257977,
0.0575236976146698,
0.04598359391093254,
0.0026071921456605196,
0.02732936665415764,
-0.012064195238053799,
0.004537514876574278,
-0.026812126860022545,
-0.029166828840970993,
-0.050367798656225204,
-0.04271693900227547,
0.006236180197447538,
0.00894192885607481,
0.03863241523504257,
-0.014801920391619205,
-0.00800155010074377,
0.02298443205654621,
0.05029658228158951,
-0.026149841025471687,
0.04130501300096512,
-0.046033941209316254,
-0.0022571778390556574,
-0.020803015679121017,
-0.012939458712935448,
0.04293142631649971,
-0.03739796206355095,
-0.01760213077068329,
0.0014295921428129077,
-0.048515159636735916,
0.012045753188431263,
-0.025745132938027382,
-0.0022026984952390194,
-0.010423300787806511,
0.004933367017656565,
0.06770575046539307,
0.03922273963689804,
0.005670594051480293,
0.03785578906536102,
0.010323000140488148,
0.014003073796629906,
0.030155664309859276,
0.015652470290660858,
0.0697733536362648,
-0.009156803600490093,
0.00006366244633682072,
0.07002372294664383,
-0.03177427127957344,
-0.02744833566248417,
0.0036720980424433947,
-0.0029326186049729586,
-0.05499475076794624,
-0.2816961109638214,
0.02258693426847458,
-0.03019804134964943,
-0.026489460840821266,
0.03272400051355362,
-0.04438766837120056,
0.013906029053032398,
-0.042567793279886246,
0.001967387506738305,
0.013742915354669094,
-0.011638734489679337,
-0.06022338196635246,
-0.05180341377854347,
0.06437711417675018,
0.025143690407276154,
0.0193477813154459,
-0.03016212396323681,
-0.029837818816304207,
0.006495289504528046,
0.06681893765926361,
0.028897276148200035,
-0.025751061737537384,
-0.00095670873997733,
0.05167614296078682,
0.012567896395921707,
0.08285734057426453,
-0.07779975980520248,
0.06201063469052315,
-0.05883761867880821,
-0.02087514102458954,
0.018680447712540627,
-0.07015372067689896,
0.005834088195115328,
-0.013641886413097382,
0.0028423976618796587,
-0.02832195721566677,
0.024692289531230927,
0.01724356971681118,
0.01681593433022499,
0.02042016200721264,
-0.021709546446800232,
-0.046945054084062576,
-0.015795482322573662,
-0.002334282035008073,
0.0725102648139,
-0.018269971013069153,
-0.04635235294699669,
-0.011804438196122646,
-0.02829647623002529,
0.08191622048616409,
0.006489013787358999,
0.008011809550225735,
0.011113055050373077,
0.018252182751893997,
-0.03836420178413391,
-0.0012856463436037302,
0.010615483857691288,
0.014666293747723103,
-0.03875600919127464,
-0.0226670540869236,
0.00340088177472353,
-0.012296793051064014,
0.008154213428497314,
-0.0399387963116169,
-0.021533038467168808,
-0.06401168555021286,
-0.05355570465326309,
-0.01642620377242565,
0.05635363608598709,
0.03865179046988487,
-0.04590679332613945,
-0.019321613013744354,
0.01993532106280327,
-0.09510323405265808,
-0.0014842761447653174,
-0.027434512972831726,
-0.012394746765494347,
-0.001129738288000226,
0.016594504937529564,
0.03285400569438934,
-0.05302809178829193,
-0.05227316915988922,
0.0492369718849659,
-0.02695370838046074,
0.0023000927176326513,
0.023959780111908913,
-0.007370898500084877,
-0.03316221386194229,
-0.028791582211852074,
-0.04115647077560425,
0.0312911719083786,
-0.045520197600126266,
-0.007392978295683861,
0.011892139911651611,
-0.015962878242135048,
0.025766145437955856,
0.02388736791908741,
0.01961493492126465,
0.021982522681355476,
0.03537829592823982,
0.03145274147391319,
-0.05629921704530716,
0.001356875291094184,
-0.02623015269637108,
-0.016588382422924042,
-0.048005834221839905,
-0.05813005939126015,
0.00584117928519845,
0.009340132586658001,
0.012500324286520481,
0.0044727628119289875,
-0.014196484349668026,
0.0189083032310009,
-0.05956582352519035,
0.00717932777479291,
-0.015470416285097599,
0.03945731371641159,
0.025658680126070976,
0.029709763824939728,
-0.002755074994638562,
-0.07392215728759766,
-0.009318172000348568,
-0.013872131705284119,
-0.027881179004907608,
-0.05315126106142998,
-0.0462263785302639,
0.035980403423309326,
-0.008944226428866386,
0.005587901920080185,
0.006484094075858593,
-0.05526808276772499,
0.016899611800909042,
0.04710374027490616,
-0.036372922360897064,
0.05374998226761818,
-0.028091292828321457,
-0.0648588091135025,
-0.013253755867481232,
-0.005993908736854792,
0.02065693587064743,
0.00906679593026638,
-0.008287016302347183,
-0.01291919220238924,
0.03717521205544472,
-0.000868139904923737,
-0.023433661088347435,
0.029574749991297722,
0.020876064896583557,
0.006078111939132214,
-0.03593798726797104,
0.007475362159311771,
-0.003918867092579603,
-0.008018308319151402,
-0.010868506506085396,
-0.014825859107077122,
-0.020501526072621346,
0.012354341335594654,
-0.012662411667406559,
-0.008439633063971996,
-0.051075391471385956,
0.04107058048248291,
-0.0451047383248806,
-0.00861110258847475,
-0.0294557586312294,
-0.02564268559217453,
0.04468623921275139,
0.0069209374487400055,
0.019308775663375854,
0.028157914057374,
0.015436886809766293,
0.014081350527703762,
0.031783509999513626,
-0.03272094205021858,
-0.001362740877084434,
-0.018974244594573975,
-0.014289294369518757,
0.057437870651483536,
-0.014034915715456009,
0.032904934138059616,
0.021975712850689888,
-0.024635275825858116,
-0.045790720731019974,
-0.012646119110286236,
0.0033759523648768663,
0.03814704343676567,
0.07060740888118744,
-0.01497800275683403,
0.0063545857556164265,
-0.03700351342558861,
-0.01566045545041561,
-0.01574270986020565,
-0.012523210607469082,
-0.05226843059062958,
-0.0027359190862625837,
-0.05972851812839508,
-0.05213380977511406,
0.005931246560066938,
0.000317096128128469,
0.013835765421390533,
0.006424441002309322,
-0.02485201694071293,
0.013211512006819248,
-0.04052598774433136,
0.022629663348197937,
0.10660702735185623,
-0.06187589094042778,
-0.0071619534865021706,
0.0045693377032876015,
0.03131833299994469,
0.015967389568686485,
0.03276587650179863,
-0.05806877836585045,
-0.01662486419081688,
-0.04306274279952049,
0.016464795917272568,
-0.01902080699801445,
-0.044205520302057266,
-0.06819020956754684,
0.014464731328189373,
0.00034012284595519304,
-0.019787993282079697,
-0.03556811064481735,
0.007584712002426386,
-0.01187478844076395,
-0.011266151443123817,
0.013277493417263031,
-0.012257171794772148,
-0.05894075706601143,
0.023267438635230064,
-0.0015333289047703147,
0.03456936776638031,
-0.02433742955327034,
0.031153731048107147,
0.01924830488860607,
-0.00984311942011118,
-0.04660993814468384,
-0.042725130915641785,
0.025461925193667412,
0.017479093745350838,
0.0724211186170578,
0.030087675899267197,
0.004063356667757034,
-0.023784443736076355,
0.021641965955495834,
0.01205672137439251,
0.001025720383040607,
0.034861400723457336,
-0.017070354893803596,
0.026619764044880867,
0.04691193997859955,
0.025076819583773613,
-0.014833181165158749,
0.0001024723460432142,
-0.05133349075913429,
0.047149933874607086,
-0.042701881378889084,
-0.04236885532736778,
0.012258314527571201,
-0.02970365434885025,
0.019669584929943085,
-0.019776050001382828,
0.03830864652991295,
-0.050404224544763565,
0.04625682532787323,
0.029752707108855247,
0.05114976689219475,
0.050077103078365326,
0.03375434875488281,
0.03121105022728443,
-0.013986964710056782,
0.025554800406098366,
-0.08849228173494339,
0.01241863239556551,
0.0596819669008255,
0.016853904351592064,
0.0008568731136620045,
0.007394038140773773,
-0.023586759343743324,
0.05153827741742134,
-0.06000852957367897,
-0.04169132933020592,
0.045215196907520294,
-0.021963069215416908,
0.018415164202451706,
0.004729108884930611,
-0.04596235230565071,
0.008207530714571476,
0.04327576234936714,
-0.04523641988635063,
-0.0011801763903349638,
0.007217495236545801,
0.05794783681631088,
0.0033690454438328743,
0.024650810286402702,
0.014962557703256607,
-0.013365767896175385,
0.07041338831186295,
0.019495215266942978,
0.0564853735268116,
0.060342855751514435,
-0.024819448590278625,
0.017685966566205025,
0.012948058545589447,
-0.0007065650424920022,
-0.00899969320744276,
0.04375283420085907,
0.007337724324315786,
-0.03335839509963989,
0.037775974720716476,
0.002465255791321397,
-0.0011557533871382475,
-0.05133800581097603,
0.09263443946838379,
0.006149263586848974,
-0.04436485096812248,
-0.05280504375696182,
0.019296372309327126,
-0.022617865353822708,
0.02949715405702591,
-0.009733540005981922,
-0.012596518732607365,
-0.02687964215874672,
0.04213981702923775,
-0.03958660364151001,
-0.003667182754725218,
0.049203433096408844,
-0.026100900024175644,
0.00803136732429266,
0.025696346536278725,
0.05684691295027733,
0.10462386906147003,
0.07088211923837662,
0.003821304300799966,
0.055565860122442245,
-0.016244614496827126,
-0.048869479447603226,
-0.01989763230085373,
0.0020952464547008276,
0.013218955136835575,
-0.034075576812028885,
0.012872838415205479,
0.038921553641557693,
-0.02123132348060608,
0.05194196477532387,
-0.00676999194547534,
-0.03453906252980232,
0.0034408336505293846,
0.014025875367224216,
0.01518451701849699,
0.0006882590241730213,
0.0008997914264909923,
0.05657144635915756,
0.004672890063375235,
-0.030036110430955887,
0.040148261934518814,
0.0013033747673034668,
-0.03583730384707451,
0.05416347458958626,
-0.00038223183946684003,
0.006108103785663843,
0.004800295457243919,
0.04781055450439453,
0.07894769310951233,
-0.012983201071619987,
-0.019518181681632996,
0.01739620417356491,
0.04416630417108536,
0.013241598382592201,
0.02720058523118496,
-0.021012036129832268,
-0.026411063969135284,
-0.010872411541640759,
-0.04485044255852699,
-0.03761452063918114,
-0.036533549427986145,
0.0028602394741028547,
0.012205637991428375,
-0.025320306420326233,
0.008073746226727962,
0.03085573948919773,
-0.005461829714477062,
-0.05120323598384857,
-0.03360647335648537,
-0.036539748311042786,
-0.06568001210689545,
-0.07202932983636856,
-0.0016526960534974933,
-0.0007557769422419369,
-0.01976650208234787,
-0.021583255380392075,
0.015947800129652023,
-0.027998758479952812,
-0.021038440987467766,
0.0005274512805044651,
-0.04154141992330551,
-0.02882690355181694,
-0.0015066855121403933,
0.014339147135615349,
0.007106478791683912,
0.0012354180216789246,
0.008546248078346252,
0.040031548589468,
-0.030802104622125626,
-0.00854091439396143,
0.02834203839302063,
0.045196253806352615,
0.03640924021601677,
0.04463931545615196,
-0.0717233344912529,
-0.004110196139663458,
-0.010821284726262093,
-0.04438052326440811,
-0.08824802190065384,
-0.0004499620117712766,
0.046885326504707336,
0.02608610689640045,
0.027413196861743927,
0.013338500633835793,
-0.03329899162054062,
-0.030980726704001427,
0.011778033338487148,
-0.010516426526010036,
0.013680768199265003,
0.045953456312417984,
-0.057286471128463745,
0.061027251183986664,
0.01231213565915823,
-0.00869380310177803,
-0.030432499945163727,
-0.027279768139123917,
0.007435956038534641,
0.026774024590849876,
-0.040224261581897736,
-0.03806417062878609,
-0.017832007259130478,
-0.0824551209807396,
-0.005771696101874113,
0.007103636395186186,
-0.0539720356464386,
0.0008932964410632849,
0.00586993433535099,
0.0014842943055555224,
-0.04280761629343033,
0.03184296190738678,
-0.03696489334106445,
0.015899302437901497,
-0.010792627930641174,
-0.0014005673583596945,
-0.01741778291761875,
0.02230014093220234,
-0.02325107529759407,
0.004714249167591333,
-0.009795534424483776,
-0.026803793385624886,
-0.013942675665020943,
-0.026733355596661568,
0.022188451141119003,
0.028298309072852135,
0.019271304830908775,
0.026012014597654343
] | [
-0.039780013263225555,
-0.00764652993530035,
-0.019542772322893143,
-0.03447253257036209,
0.06314124912023544,
-0.018716419115662575,
-0.04445068910717964,
0.032177966088056564,
0.02209792472422123,
0.011209829710423946,
0.008800358511507511,
-0.04230079427361488,
0.02763216942548752,
0.00802559033036232,
0.04995013773441315,
-0.0041545419953763485,
-0.003218108555302024,
-0.036510709673166275,
-0.0465221181511879,
0.058973800390958786,
-0.037888363003730774,
-0.04736294597387314,
-0.0348411500453949,
-0.048256609588861465,
0.030672308057546616,
0.02245509624481201,
0.040251124650239944,
-0.03659994900226593,
-0.027434222400188446,
-0.22129659354686737,
0.008904680609703064,
0.0243462435901165,
0.06326285004615784,
0.008419203571975231,
0.0008672209223732352,
0.0065079922787845135,
0.03470660373568535,
0.021771488711237907,
-0.013640394434332848,
0.01940920762717724,
0.004996174946427345,
0.002493158681318164,
-0.02171114832162857,
-0.04740126058459282,
0.008069003000855446,
0.0021599552128463984,
-0.03189506381750107,
0.01005213800817728,
0.024361109361052513,
0.025805525481700897,
-0.07370835542678833,
-0.022694319486618042,
-0.036381129175424576,
-0.0052107516676187515,
-0.008116642944514751,
0.01396574079990387,
0.03288666903972626,
-0.001949784462340176,
0.027382725849747658,
0.02764732763171196,
-0.01356486976146698,
0.017369456589221954,
-0.14041291177272797,
0.09480176120996475,
0.025764882564544678,
0.05240970849990845,
-0.04528401792049408,
-0.018041886389255524,
-0.01018981821835041,
0.0775463804602623,
-0.044305551797151566,
-0.003555523930117488,
-0.018938565626740456,
0.07106558233499527,
-0.00119051116053015,
-0.0012915965635329485,
-0.008887451142072678,
-0.0005270029651001096,
0.01674685627222061,
-0.051097571849823,
-0.051612310111522675,
0.03514005243778229,
-0.03131531924009323,
0.016514338552951813,
-0.007011077832430601,
0.017673036083579063,
-0.028901759535074234,
0.004489088896661997,
-0.007996981032192707,
0.024617349728941917,
0.05419451743364334,
0.017828525975346565,
0.020053593441843987,
0.04459834843873978,
-0.09297019243240356,
-0.05689259245991707,
0.009823976084589958,
-0.0033367748837918043,
-0.008635280653834343,
0.423572301864624,
-0.035450421273708344,
-0.06487011909484863,
0.07086624950170517,
0.07454068213701248,
-0.012798840180039406,
-0.023072557523846626,
0.02826697565615177,
-0.06927654892206192,
0.03584215044975281,
-0.01877669245004654,
0.009322806261479855,
-0.04157746210694313,
0.04837722331285477,
-0.07883461564779282,
0.03678666055202484,
0.007128473371267319,
0.03338642045855522,
0.004029103554785252,
-0.0007876114686951041,
-0.01476752944290638,
0.020895082503557205,
0.012184475548565388,
0.0028383396565914154,
-0.02201598696410656,
0.04697737097740173,
-0.023415187373757362,
0.06813085079193115,
0.057168278843164444,
0.04226178303360939,
-0.020643169060349464,
0.06452858448028564,
-0.0035031880252063274,
-0.07628990709781647,
0.05561651289463043,
-0.00777749577537179,
-0.008492591790854931,
0.03239107504487038,
-0.02451167069375515,
-0.01164133008569479,
-0.01913348026573658,
0.007275779265910387,
-0.06627416610717773,
-0.007989167235791683,
0.027169810608029366,
-0.0289708711206913,
0.11219198256731033,
0.01653340272605419,
-0.006129251793026924,
-0.02179458923637867,
-0.01425234042108059,
0.014788338914513588,
0.03156328573822975,
0.031528208404779434,
-0.07067026942968369,
0.007158766966313124,
0.031825751066207886,
0.09458066523075104,
-0.026340562850236893,
-0.09261924773454666,
-0.0190139040350914,
-0.021779049187898636,
-0.0320163369178772,
-0.025529250502586365,
-0.0008990890928544104,
0.05850853770971298,
-0.08005519211292267,
-0.017214257270097733,
0.025740906596183777,
0.05241662263870239,
-0.06955810636281967,
0.03901864215731621,
0.008625302463769913,
-0.05427451431751251,
-0.004499213304370642,
0.04044462740421295,
-0.027091791853308678,
-0.060924842953681946,
0.019599802792072296,
0.07567951083183289,
0.017358511686325073,
-0.008874349296092987,
-0.011232171207666397,
-0.028842521831393242,
0.04795810207724571,
-0.07926615327596664,
-0.100932277739048,
-0.04483078792691231,
0.00741735240444541,
-0.02303464710712433,
-0.04542223736643791,
0.04558788239955902,
-0.03194018080830574,
-0.030289696529507637,
0.04561075195670128,
-0.020458918064832687,
-0.02449176460504532,
0.04290609434247017,
-0.0022511682473123074,
-0.025249972939491272,
-0.03465120494365692,
-0.03336729854345322,
-0.013828982599079609,
-0.019018806517124176,
0.010645784437656403,
-0.06390413641929626,
0.009879643097519875,
0.0665280818939209,
-0.04598962888121605,
0.07701671123504639,
0.045827507972717285,
-0.0006373421056196094,
-0.020467635244131088,
-0.03133158013224602,
0.004060395993292332,
-0.040031399577856064,
-0.004894603043794632,
0.0009427634649910033,
-0.03590266779065132,
0.026842640712857246,
0.05116456374526024,
-0.0023840253707021475,
-0.058173768222332,
-0.029993047937750816,
-0.34878644347190857,
-0.03445020318031311,
0.007799936458468437,
-0.005978406872600317,
0.003102031536400318,
-0.03935769572854042,
0.008146335370838642,
-0.014268755912780762,
0.02776940166950226,
0.04016362503170967,
0.05284150317311287,
-0.012820498086512089,
0.003981523681432009,
-0.0964706540107727,
0.015371650457382202,
0.012227391824126244,
-0.026961099356412888,
0.012252222746610641,
-0.01988854631781578,
0.03839942440390587,
0.009709474630653858,
-0.03340746462345123,
-0.014796972274780273,
-0.04796334356069565,
-0.007390568498522043,
-0.0129654910415411,
0.13602131605148315,
0.0369378887116909,
0.05070458725094795,
-0.040975455194711685,
0.04092485085129738,
0.0018902671290561557,
0.009360527619719505,
-0.05870012938976288,
-0.005624794866889715,
-0.014986523427069187,
0.014364822767674923,
0.010089470073580742,
-0.023744693025946617,
-0.04737384244799614,
-0.055963438004255295,
0.018425995483994484,
-0.026710551232099533,
-0.011693141423165798,
-0.07223857194185257,
0.02359197475016117,
-0.017221618443727493,
-0.013249709270894527,
0.01863706298172474,
0.08476795256137848,
-0.009446904994547367,
-0.012824456207454205,
0.012380806729197502,
0.011847881600260735,
-0.011353688314557076,
-0.029550421983003616,
-0.06336777657270432,
0.025903481990098953,
-0.008197000250220299,
0.004153518471866846,
-0.0009113854612223804,
0.055722858756780624,
0.040569934993982315,
-0.09238366782665253,
-0.018608368933200836,
0.011682046577334404,
0.011244312860071659,
-0.012012962251901627,
0.00477497186511755,
0.02330705337226391,
-0.023319046944379807,
0.09673665463924408,
-0.016572408378124237,
0.0041864425875246525,
0.015538147650659084,
0.056384291499853134,
0.017065422609448433,
0.012753517366945744,
0.0021821775007992983,
0.0075131189078092575,
0.04486863315105438,
-0.04261359944939613,
-0.0006222378578968346,
-0.017946846783161163,
0.04194873571395874,
0.029064957052469254,
0.007508787792176008,
-0.04329121485352516,
0.058493562042713165,
0.03141186013817787,
0.006224081851541996,
0.021020889282226562,
-0.007338058669120073,
-0.01941586285829544,
0.022105887532234192,
0.004998957738280296,
-0.26653918623924255,
0.03480742499232292,
0.006505061872303486,
0.06088994815945625,
0.0032966695725917816,
-0.01739591546356678,
0.014428501017391682,
-0.0010608560405671597,
0.03597752004861832,
0.007672387175261974,
0.04896354302763939,
0.03672942891716957,
0.0404241681098938,
-0.0016009823884814978,
-0.020452534779906273,
0.003063452895730734,
0.059935785830020905,
0.03576786816120148,
0.03724146634340286,
0.011643384583294392,
0.02089802362024784,
-0.02233421802520752,
0.13600246608257294,
0.0346679762005806,
0.009810836985707283,
-0.011852500028908253,
-0.026076210662722588,
-0.005363678093999624,
0.04825609177350998,
0.010821621865034103,
-0.01815931499004364,
0.018914829939603806,
-0.014879895374178886,
0.03466074541211128,
0.04625023528933525,
-0.037878673523664474,
-0.03866678103804588,
0.06351014971733093,
0.03914758563041687,
-0.014827861450612545,
0.0011991315986961126,
0.01612694375216961,
-0.06192130222916603,
0.01927362196147442,
0.05698586627840996,
-0.004858832806348801,
0.02602885104715824,
-0.006675405893474817,
-0.05948032811284065,
-0.007739767897874117,
-0.035613544285297394,
-0.02674439735710621,
-0.003754214383661747,
-0.01705259643495083,
0.01379310991615057,
0.08269927650690079,
0.020183248445391655,
0.022289466112852097,
0.043492358177900314,
0.00016475070151500404,
-0.0418071374297142,
-0.08569327741861343,
0.10491704940795898,
0.023579228669404984,
-0.014420924708247185
] | [
0.04013320803642273,
0.002473006024956703,
0.019768305122852325,
-0.005037139635533094,
-0.001832099398598075,
0.03380731865763664,
0.00206346670165658,
0.043574441224336624,
0.011344521306455135,
0.017390025779604912,
-0.027600863948464394,
0.003933821804821491,
0.010570423677563667,
-0.019919155165553093,
0.009190584532916546,
-0.023496802896261215,
0.014965088106691837,
-0.027804922312498093,
0.04230840131640434,
0.012260785326361656,
0.0027405349537730217,
0.006606405600905418,
0.018366949632763863,
-0.011776660569012165,
0.00015016700490377843,
0.03132982924580574,
-0.06472909450531006,
0.008368334732949734,
0.02960858680307865,
-0.11122196912765503,
-0.024371713399887085,
-0.021059639751911163,
0.011202012188732624,
0.051324401050806046,
-0.015377623029053211,
-0.026895470917224884,
-0.007017005700618029,
0.04159967601299286,
-0.020848440006375313,
0.028925739228725433,
0.01393103413283825,
0.023181181401014328,
-0.004819698166102171,
-0.022005775943398476,
-0.004731184337288141,
-0.02640870213508606,
-0.01266940776258707,
-0.02077564224600792,
-0.003975448198616505,
0.016786953434348106,
-0.059353042393922806,
0.022140946239233017,
0.006781282834708691,
0.02624165266752243,
-0.0027038592379540205,
0.011152477003633976,
0.017130091786384583,
-0.01412147469818592,
0.031046448275446892,
-0.03689366951584816,
-0.013804576359689236,
-0.0005988085176795721,
-0.04504615068435669,
-0.014644340611994267,
-0.029085516929626465,
-0.03818652033805847,
0.0012428369373083115,
0.023057591170072556,
0.01727624423801899,
0.0299040786921978,
-0.04012817516922951,
0.04081888869404793,
-0.042209312319755554,
-0.05259633809328079,
-0.061018187552690506,
0.007025693543255329,
0.011048447340726852,
-0.07495135068893433,
0.004479222930967808,
-0.00554845854640007,
-0.040907517075538635,
0.01953430101275444,
0.03444183990359306,
0.005983653478324413,
-0.043482739478349686,
-0.026239527389407158,
-0.00007771735545247793,
-0.0016455104341730475,
-0.002879293169826269,
-0.011171351186931133,
-0.03288008272647858,
0.015303322114050388,
0.02312852256000042,
0.017834631726145744,
-0.1015188992023468,
0.01506698690354824,
0.00059170660097152,
-0.008423028513789177,
0.003839137963950634,
0.8348139524459839,
0.0028431639075279236,
-0.02466585859656334,
0.006385216489434242,
-0.008727618493139744,
-0.012084200978279114,
0.0032644341699779034,
0.027697701007127762,
-0.028205350041389465,
0.004596001468598843,
-0.034391116350889206,
0.01298568956553936,
0.027269842103123665,
-0.000008962017091107555,
0.04286328703165054,
0.03916448727250099,
0.04503922164440155,
0.0034794723615050316,
0.042090822011232376,
-0.018494855612516403,
0.0016000118339434266,
0.0331246517598629,
-0.0035233914386481047,
0.011861787177622318,
0.003828125772997737,
-0.021533774212002754,
-0.18940307199954987,
0.029079923406243324,
-7.298901563644826e-33,
-0.01252440083771944,
-0.02546096034348011,
0.01379330363124609,
-0.008768226020038128,
0.011443301104009151,
0.02861388586461544,
-0.049420908093452454,
0.014937601052224636,
0.018327893689274788,
-0.014601394534111023,
0.01790892705321312,
-0.0047941445372998714,
-0.013298222795128822,
-0.0031314396765083075,
0.028934994712471962,
0.01094923447817564,
0.00007015236042207107,
0.02073657512664795,
-0.014793355017900467,
0.0028133278246968985,
0.008459464646875858,
0.05633488669991493,
0.02839614450931549,
0.02015870064496994,
-0.008030676282942295,
0.009325128048658371,
0.016917066648602486,
-0.02120002545416355,
0.0014648360665887594,
-0.047541528940200806,
-0.03469332307577133,
0.009735583327710629,
0.023699212819337845,
-0.03557726740837097,
0.02575082518160343,
-0.06077754124999046,
-0.025022689253091812,
-0.010956725105643272,
-0.012024296447634697,
-0.02602558210492134,
-0.031893737614154816,
-0.006860881578177214,
-0.022979317232966423,
-0.028648456558585167,
-0.033977750688791275,
-0.001666830969043076,
0.003373048733919859,
0.04919900745153427,
-0.0048180134035646915,
0.028617646545171738,
0.004568417556583881,
0.020603522658348083,
-0.01232119556516409,
-0.027994384989142418,
0.030492933467030525,
0.03568326309323311,
0.010632447898387909,
-0.021854262799024582,
0.024588538333773613,
0.020845575258135796,
0.020625704899430275,
-0.029760541394352913,
0.024299269542098045,
0.01929798536002636,
-0.005133296828716993,
-0.0016362883616238832,
0.04737568274140358,
0.0019976762123405933,
0.020009325817227364,
0.017154816538095474,
-0.06975886970758438,
0.029999421909451485,
-0.009257962927222252,
-0.008456527255475521,
0.02878890000283718,
-0.019687116146087646,
-0.00004160622847848572,
0.0018137386068701744,
0.004717472940683365,
0.058888960629701614,
-0.015369796194136143,
-0.05027415603399277,
-0.016953619197010994,
-0.0347704216837883,
-0.031387925148010254,
-0.02883012592792511,
0.033089157193899155,
0.008789335377514362,
-0.03539520502090454,
-0.0028985398821532726,
0.026727108284831047,
0.02349689044058323,
-0.0007240591803565621,
-0.01455383375287056,
-0.009577753022313118,
7.276016158002254e-33,
0.006788574159145355,
0.02088242955505848,
0.009748632088303566,
-0.01762102171778679,
0.039892084896564484,
-0.0065890089608728886,
0.020353348925709724,
-0.01493766438215971,
-0.040181342512369156,
0.019998090341687202,
-0.04324115812778473,
-0.043919868767261505,
-0.010718738660216331,
0.010958739556372166,
0.060246486216783524,
0.0025228739250451326,
0.00919228047132492,
0.029114002361893654,
-0.0370226725935936,
-0.021893564611673355,
-0.02371321991086006,
0.016387149691581726,
-0.014525906182825565,
0.03391236066818237,
0.054719168692827225,
0.012505810707807541,
-0.002296272199600935,
0.01214070338755846,
-0.011070906184613705,
0.01495230570435524,
-0.013206918723881245,
-0.005017911083996296,
-0.009148558601737022,
-0.01807984709739685,
0.007287045940756798,
0.05401716008782387,
0.03727605566382408,
-0.024694504216313362,
-0.033447977155447006,
-0.00607176311314106,
0.01786252111196518,
0.043936699628829956,
-0.011361279524862766,
0.02418217435479164,
-0.026438793167471886,
0.03879747912287712,
-0.004751886241137981,
0.02980412356555462,
0.006126694846898317,
0.007519588805735111,
-0.023960785940289497,
0.013757571578025818,
0.00889592058956623,
0.009775874204933643,
0.03356796130537987,
-0.023898866027593613,
-0.0034830234944820404,
0.028831113129854202,
-0.0418405681848526,
-0.025734471157193184,
-0.02887394279241562,
-0.011261656880378723,
-0.021555567160248756,
-0.005102228838950396,
-0.021188411861658096,
-0.010127000510692596,
-0.01552038174122572,
-0.004392762668430805,
-0.004176919348537922,
0.024564923718571663,
0.014000055380165577,
-0.027655579149723053,
-0.0020656429696828127,
0.02262263372540474,
0.0042916107922792435,
0.021062809973955154,
-0.04086354002356529,
-0.01940295845270157,
-0.03746864199638367,
0.008308200165629387,
0.043686069548130035,
-0.004675432574003935,
0.03498222678899765,
-0.0019315506797283888,
0.030652379617094994,
0.018398700281977654,
-0.023404283449053764,
0.029117096215486526,
0.042937275022268295,
0.039852309972047806,
0.014849676750600338,
-0.01678638905286789,
-0.005982127506285906,
0.03397921100258827,
-0.012924430891871452,
-1.3017733557774136e-8,
-0.034649018198251724,
-0.02716914378106594,
-0.00643068365752697,
0.00543295219540596,
0.008196371607482433,
0.023433323949575424,
-0.02821546234190464,
0.0017731385305523872,
-0.027287643402814865,
-0.00551958754658699,
0.022570734843611717,
-0.026251081377267838,
0.021107563748955727,
0.019950103014707565,
0.013707424513995647,
-0.021743234246969223,
0.010124620981514454,
-0.00934092327952385,
0.03230483457446098,
0.003666848409920931,
0.014771710149943829,
0.036000266671180725,
0.006569837685674429,
0.008690322749316692,
-0.015492375940084457,
-0.0011044464772567153,
0.022281112149357796,
-0.06970612704753876,
-0.025177666917443275,
-0.021020080894231796,
0.03572395443916321,
-0.026619434356689453,
-0.032947953790426254,
-0.0027563064359128475,
-0.017809774726629257,
-0.05098911002278328,
0.014738868921995163,
0.036469414830207825,
0.008639856241643429,
0.014639688655734062,
0.012186049483716488,
0.009828979149460793,
0.015189501456916332,
-0.031115062534809113,
-0.009767662733793259,
0.01184399239718914,
-0.042322203516960144,
-0.03292616829276085,
0.035696014761924744,
-0.04665878042578697,
0.003717440413311124,
-0.02663332223892212,
-0.01226172223687172,
0.028056330978870392,
0.03548160195350647,
-0.017588092014193535,
-0.004001104738563299,
0.036978207528591156,
-0.023980574682354927,
-0.030954042449593544,
0.0005884627462364733,
0.01960180141031742,
-0.015540596097707748,
-0.03621654212474823
] | pythonmatpotlib-plotting-occurrences-of-the-main-characters-in-how-i-met-your-mother | https://markhneedham.com/blog/2015/01/30/pythonmatpotlib-plotting-occurrences-of-the-main-characters-in-how-i-met-your-mother |
false | 2015-01-12 23:16:58 | Python: Counter - ValueError: too many values to unpack | [
"python"
] | [
"Python"
] | I recently came across https://docs.python.org/2/library/collections.html#collections.Counter[Python's Counter tool] which makes it really easy to count the number of occurrences of items in a list.
In my case I was trying to work out how many times words occurred in a corpus so I had something like the following:
[source,python]
----
>> from collections import Counter
>> counter = Counter(["word1", "word2", "word3", "word1"])
>> print counter
Counter({'word1': 2, 'word3': 1, 'word2': 1})
----
I wanted to write a for loop to iterate over the counter and print the (key, value) pairs and started with the following:
[source,python]
----
>>> for key, value in counter:
... print key, value
...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ValueError: too many values to unpack
----
I'm not sure why I expected this to work but in fact since Counter is a sub class of dict we need to call https://docs.python.org/2/library/stdtypes.html#dict.iteritems[iteritems] to get an iterator of pairs rather than just keys.
The following does the job:
[source,python]
----
>>> for key, value in counter.iteritems():
... print key, value
...
word1 2
word3 1
word2 1
----
Hopefully future Mark will remember this! | null | null | [
0.007441316265612841,
-0.053085554391145706,
-0.00838052574545145,
-0.01952471397817135,
0.04052410647273064,
0.013553852215409279,
-0.000027954321922152303,
0.04525652527809143,
0.011715933680534363,
-0.006511053070425987,
0.014682326465845108,
0.01699923723936081,
-0.058709923177957535,
0.017768841236829758,
0.0018845999147742987,
0.07014182955026627,
0.10726840794086456,
-0.012866420671343803,
-0.0011063073761761189,
-0.012575026601552963,
0.012319439090788364,
0.032262589782476425,
-0.01307092048227787,
-0.006052110809832811,
-0.010935216210782528,
0.012344146147370338,
-0.014186868444085121,
-0.0072606285102665424,
-0.055419497191905975,
0.0005691576516255736,
0.0024258485063910484,
-0.004539743065834045,
-0.014998964965343475,
-0.019002240151166916,
0.03197820112109184,
-0.020957577973604202,
0.0031682620756328106,
-0.018955448642373085,
0.004608568735420704,
-0.011775980703532696,
-0.02930350974202156,
-0.028382640331983566,
-0.007315011229366064,
-0.0029072111938148737,
-0.07260216027498245,
0.048162445425987244,
-0.036594852805137634,
0.02414633333683014,
-0.00694217998534441,
0.0037110894918441772,
-0.05854155495762825,
0.05135529488325119,
-0.008580617606639862,
-0.04276132211089134,
0.0009021270088851452,
0.05324472859501839,
-0.0004505620163399726,
-0.07674532383680344,
-0.018291501328349113,
0.000547417439520359,
0.0012769103050231934,
0.0034782057628035545,
-0.012286658398807049,
0.04448825493454933,
0.024951787665486336,
-0.027734730392694473,
-0.01728939823806286,
0.06382624059915543,
-0.04513206705451012,
-0.02916218899190426,
-0.031818222254514694,
0.03533076122403145,
-0.03383218124508858,
0.023797903209924698,
-0.025890372693538666,
-0.01585773006081581,
-0.03529566153883934,
0.041514601558446884,
0.008873059414327145,
0.061575762927532196,
0.0015902412123978138,
0.030264724045991898,
0.05502144247293472,
0.009559465572237968,
0.00015196467575151473,
-0.010958097875118256,
-0.04856632649898529,
0.006986592430621386,
-0.0035607002209872007,
0.028241265565156937,
-0.005177922546863556,
-0.06501758098602295,
0.015314163640141487,
0.0020276533905416727,
-0.0035628299228847027,
0.010133848525583744,
-0.037838127464056015,
-0.022788384929299355,
-0.020210305228829384,
0.02029133401811123,
-0.040820393711328506,
-0.037325646728277206,
0.05415527895092964,
-0.0019102741498500109,
-0.079281285405159,
-0.00973720196634531,
-0.00321111804805696,
0.012943421490490437,
0.011876664124429226,
-0.002602058695629239,
-0.0635417252779007,
0.0016696887323632836,
-0.05930723994970322,
-0.012800940312445164,
-0.08896886557340622,
0.036501072347164154,
0.0018812825437635183,
-0.013225519098341465,
-0.008962170220911503,
0.02564564161002636,
0.03588079288601875,
0.029142480343580246,
0.007132953032851219,
0.0751485675573349,
0.009985966607928276,
0.008634540252387524,
0.020709380507469177,
0.052411917597055435,
-0.02766113542020321,
-0.06773947924375534,
-0.0321127213537693,
0.0440698005259037,
-0.007709150202572346,
-0.004508557729423046,
-0.018269233405590057,
-0.00979518610984087,
-0.0629105493426323,
0.029200665652751923,
0.06591609865427017,
0.04332287609577179,
0.016412490978837013,
0.015676934272050858,
-0.03326777368783951,
-0.0017993362853303552,
-0.01117602176964283,
0.023235395550727844,
-0.02277892455458641,
-0.01087123341858387,
0.0067103407345712185,
0.02981257066130638,
-0.0040311142802238464,
0.03057834692299366,
0.0710061639547348,
-0.018491113558411598,
0.010117488913238049,
0.06212148815393448,
0.004143396392464638,
0.07349678874015808,
-0.01616227813065052,
0.016499562188982964,
0.04577361047267914,
0.016508027911186218,
0.008141521364450455,
0.03214065358042717,
-0.004359460901468992,
-0.010140945203602314,
-0.025934061035513878,
0.05198955535888672,
-0.013723152689635754,
-0.009894837625324726,
-0.028529224917292595,
-0.056088339537382126,
0.03203564137220383,
-0.04213075712323189,
-0.0010467644315212965,
0.014444412663578987,
0.03664283826947212,
0.00366740464232862,
0.04379912465810776,
-0.01175495982170105,
-0.06744429469108582,
0.021535547450184822,
-0.02113664709031582,
0.034010257571935654,
0.03312508389353752,
0.01298312284052372,
0.0841153934597969,
0.029937542974948883,
0.005663702730089426,
-0.008969968184828758,
-0.05691827833652496,
-0.07344251126050949,
-0.0030395067296922207,
0.0038472707383334637,
0.05110375955700874,
-0.04084333777427673,
-0.02711331844329834,
0.0536077618598938,
0.04497494921088219,
0.025075092911720276,
-0.0072214980609714985,
-0.030255412682890892,
-0.0075948815792799,
-0.029732361435890198,
-0.047477323561906815,
0.041674789041280746,
0.028009524568915367,
-0.04341266676783562,
-0.01052560843527317,
0.014168305322527885,
0.004838418681174517,
0.01868731901049614,
0.036266472190618515,
-0.006639245431870222,
0.04856908321380615,
0.04828079417347908,
0.05944336578249931,
-0.017850888893008232,
0.03149709478020668,
-0.05371338874101639,
0.01996949315071106,
-0.03361555561423302,
0.005792745854705572,
-0.01454505417495966,
-0.008904628455638885,
0.1374940127134323,
0.05183670297265053,
-0.020308159291744232,
-0.05608779564499855,
-0.0044814208522439,
-0.0056500183418393135,
-0.040226664394140244,
-0.01046937145292759,
0.007601249497383833,
-0.03896985575556755,
0.02366657368838787,
-0.04066435247659683,
-0.001079958165064454,
0.011799994856119156,
-0.020524993538856506,
-0.023709701374173164,
0.05774180218577385,
-0.06899929791688919,
0.06308215111494064,
0.049647826701402664,
-0.021885810419917107,
0.006048915442079306,
-0.00866497028619051,
-0.036142509430646896,
-0.010155229829251766,
-0.0071749440394341946,
-0.013792894780635834,
0.023647019639611244,
-0.0413760282099247,
-0.05239539220929146,
0.001997062237933278,
-0.025029418990015984,
0.00710199773311615,
0.0668206736445427,
0.04777377098798752,
-0.035687513649463654,
0.063641257584095,
0.001943527371622622,
-0.0187835693359375,
-0.026507921516895294,
-0.04510517045855522,
-0.040835145860910416,
0.00107887655030936,
0.006989572197198868,
0.022454621270298958,
0.04224057123064995,
0.03927408903837204,
0.010444074869155884,
-0.004293035715818405,
0.0011799270287156105,
0.031696565449237823,
0.05341335013508797,
-0.024476995691657066,
-0.011007171124219894,
-0.04392251372337341,
-0.02934260480105877,
0.04971478506922722,
-0.047109346836805344,
-0.055726632475852966,
0.012001394294202328,
-0.0660603791475296,
0.015159809030592442,
-0.07939771562814713,
-0.03454605117440224,
0.0018165715737268329,
0.006274590268731117,
0.03847881406545639,
-0.03667097166180611,
-0.015284938737750053,
0.011826691217720509,
0.007499664556235075,
-0.035591959953308105,
0.019879130646586418,
0.01531397644430399,
0.007681061513721943,
-0.030480099841952324,
0.0018814543727785349,
0.03322994336485863,
0.02590843476355076,
-0.017768317833542824,
-0.08205492049455643,
0.037017855793237686,
-0.03578701615333557,
-0.26589298248291016,
0.033101148903369904,
-0.02189398743212223,
0.0011028804583474994,
0.03456274792551994,
-0.003700723173096776,
0.03616546466946602,
-0.061761364340782166,
-0.0061560943722724915,
0.031298886984586716,
-0.040589578449726105,
-0.07317187637090683,
-0.02493729442358017,
0.08638704568147659,
0.000959836645051837,
0.05716482922434807,
-0.0190195981413126,
-0.015488911420106888,
-0.023592399433255196,
0.06612256169319153,
0.004897265695035458,
-0.08025769144296646,
-0.03205118700861931,
0.07540535926818848,
0.002816250082105398,
0.0431000180542469,
-0.0750582218170166,
0.03817702829837799,
-0.04784545302391052,
0.008596918545663357,
0.0057314615696668625,
0.001050796709023416,
0.01834712363779545,
-0.054144248366355896,
-0.005742300767451525,
-0.03353658318519592,
0.058989640325307846,
0.01577279530465603,
-0.024591226130723953,
0.003131384728476405,
-0.04572722688317299,
-0.05032780393958092,
0.003943470306694508,
-0.02917833812534809,
0.050605930387973785,
0.007161647547036409,
-0.011414287611842155,
-0.05223650112748146,
-0.05003535747528076,
0.0748080313205719,
-0.0466042198240757,
-0.05359615385532379,
-0.03265874460339546,
0.025120653212070465,
-0.0033500604331493378,
0.018545208498835564,
-0.021641410887241364,
0.01402518805116415,
-0.030136024579405785,
-0.007601328659802675,
-0.020237648859620094,
-0.03566083684563637,
-0.019185541197657585,
-0.018093768507242203,
-0.0543685145676136,
-0.034806858748197556,
-0.04576682299375534,
-0.00034206401323899627,
0.035469453781843185,
0.01853000745177269,
-0.06019541993737221,
0.006165792234241962,
-0.016429655253887177,
-0.0937986895442009,
0.014085155911743641,
-0.030505556613206863,
-0.005974189843982458,
-0.02330057881772518,
0.019558994099497795,
0.02876110002398491,
-0.051756493747234344,
-0.05575823411345482,
0.013643455691635609,
0.027300560846924782,
-0.006284486036747694,
-0.058580491691827774,
0.026520930230617523,
-0.05570878088474274,
-0.028942978009581566,
-0.01280022133141756,
0.05407616123557091,
0.006142115220427513,
0.014402029104530811,
0.007872173562645912,
0.02049175463616848,
0.04046154394745827,
0.04798496887087822,
0.011583654209971428,
0.012779883109033108,
0.03924840688705444,
0.05902606248855591,
-0.06011487916111946,
-0.01916712149977684,
-0.05053208768367767,
-0.003395979991182685,
0.0011040405370295048,
-0.04135659709572792,
-0.0023881501983851194,
0.030036456882953644,
-0.008807467296719551,
-0.021153418347239494,
0.027768177911639214,
0.010491592809557915,
0.015959426760673523,
0.026980360969901085,
0.0019223940325900912,
0.04161275550723076,
0.026823904365301132,
0.03750120475888252,
-0.025218116119503975,
-0.0848587155342102,
0.025338465347886086,
-0.0033166834618896246,
-0.02638292871415615,
-0.0450701080262661,
-0.044199276715517044,
0.0016352119855582714,
-0.0031521625351160765,
0.006193884182721376,
0.013689309358596802,
-0.027893081307411194,
-0.0016759730642661452,
0.0293236393481493,
0.007140494883060455,
0.025838395580649376,
-0.03849489614367485,
0.0021675589960068464,
-0.01380524318665266,
-0.030235163867473602,
0.004770857747644186,
-0.013501211069524288,
-0.020813539624214172,
0.0191796887665987,
0.02667728066444397,
0.0544927753508091,
-0.006102034822106361,
0.0513022318482399,
0.028149280697107315,
0.007646679412573576,
0.023621901869773865,
0.029210813343524933,
-0.016773981973528862,
0.03595484420657158,
-0.021969765424728394,
-0.012792455963790417,
0.02363811805844307,
0.04497288167476654,
-0.009193810634315014,
-0.03718802332878113,
-0.051906608045101166,
0.0366298109292984,
-0.041311342269182205,
0.028428327292203903,
-0.028128471225500107,
-0.01766931265592575,
0.009743005968630314,
-0.024025803431868553,
0.04830872640013695,
0.012826493941247463,
0.035124268382787704,
0.03016156144440174,
0.005518344230949879,
-0.025795038789510727,
0.03173963725566864,
-0.004415065981447697,
-0.02348373644053936,
0.011839019134640694,
0.052117541432380676,
-0.041366543620824814,
-0.006653176620602608,
0.003958468325436115,
0.005844554398208857,
0.01960458979010582,
0.0164415892213583,
0.053023118525743484,
0.015208913013339043,
-0.02649553120136261,
-0.03397035971283913,
-0.02182759903371334,
-0.028629295527935028,
-0.05474364385008812,
0.012748485431075096,
-0.0016902649076655507,
-0.030464129522442818,
-0.040159374475479126,
-0.08046933263540268,
-0.00974884070456028,
0.057573188096284866,
-0.01219150610268116,
-0.014859726652503014,
-0.030550198629498482,
-0.004358265083283186,
-0.024841124191880226,
0.015924088656902313,
0.041657909750938416,
-0.04530561715364456,
0.01676446944475174,
-0.048982784152030945,
0.04336632788181305,
0.007691259495913982,
0.022820310667157173,
-0.0402265302836895,
-0.01292750146239996,
-0.02339881658554077,
-0.02186422422528267,
-0.007163651753216982,
-0.01789095252752304,
-0.028088286519050598,
0.040406517684459686,
-0.03556148707866669,
0.009648151695728302,
0.01496153324842453,
0.009296390227973461,
-0.004291180521249771,
-0.026050960645079613,
0.0042436798103153706,
-0.011165443807840347,
-0.018461434170603752,
0.04708309471607208,
-0.022845011204481125,
0.046812888234853745,
-0.057880401611328125,
0.05496445298194885,
0.02495678886771202,
0.0030609858222305775,
-0.021807320415973663,
-0.053676214069128036,
0.024397753179073334,
0.0032451890874654055,
0.046476852148771286,
-0.011501982808113098,
0.02103031799197197,
-0.04206603765487671,
-0.017018038779497147,
-0.011995882727205753,
-0.011035943403840065,
0.027951041236519814,
-0.052197881042957306,
-0.016315853223204613,
0.0745498314499855,
0.010138696059584618,
0.06007847562432289,
0.021788129583001137,
-0.02603476494550705,
0.05632540211081505,
-0.030789310112595558,
-0.025182824581861496,
-0.02711493708193302,
-0.06357099860906601,
0.0075478581711649895,
0.022479120641946793,
0.03160063549876213,
-0.09617029875516891,
0.06681092828512192,
0.029962392523884773,
0.04559117555618286,
0.018478548154234886,
-0.02049974910914898,
0.02013380266726017,
-0.0016905104275792837,
-0.0024410171899944544,
-0.09998755156993866,
-0.02188989520072937,
0.04944032430648804,
0.017969202250242233,
-0.024910707026720047,
-0.034523025155067444,
-0.024036677554249763,
0.0425044484436512,
-0.05021200701594353,
-0.01788835972547531,
0.008557961322367191,
0.025355106219649315,
0.03737099468708038,
0.005326260346919298,
-0.02969968691468239,
0.014985007233917713,
0.060501545667648315,
-0.033426955342292786,
-0.014806479215621948,
-0.05380381643772125,
0.06141382083296776,
-0.015630973502993584,
0.00948958471417427,
0.006361885461956263,
-0.01249314472079277,
0.0368942953646183,
0.022437022998929024,
0.021105723455548286,
0.08558057248592377,
-0.023787803947925568,
0.0357414186000824,
0.044795744121074677,
-0.02881435491144657,
-0.007227340713143349,
0.04860150068998337,
0.011628314852714539,
-0.037561994045972824,
0.020960737019777298,
0.028729595243930817,
-0.002663415390998125,
-0.03618748486042023,
0.04971199482679367,
0.01468134019523859,
-0.05198218673467636,
-0.04680515080690384,
0.02425473928451538,
-0.03862975537776947,
-0.003529717680066824,
-0.02072824537754059,
-0.021604496985673904,
-0.04227157682180405,
0.06060807406902313,
0.024791991338133812,
0.031630028039216995,
0.0651785358786583,
-0.03305412828922272,
-0.032353367656469345,
0.03593074157834053,
0.05484394356608391,
0.06951485574245453,
0.049289993941783905,
-0.007306095212697983,
0.052605919539928436,
-0.03949163109064102,
-0.029404226690530777,
-0.040362074971199036,
-0.048309873789548874,
0.009037986397743225,
0.013048573397099972,
0.013870825991034508,
0.07292674481868744,
0.012313168495893478,
0.07226063311100006,
-0.015300505794584751,
0.0024834657087922096,
-0.020672712475061417,
0.020245060324668884,
0.041688255965709686,
0.061778273433446884,
-0.006897239480167627,
0.045091498643159866,
-0.01217034924775362,
-0.03307158872485161,
0.05964361131191254,
0.00363918230868876,
0.00576311768963933,
0.04450005665421486,
-0.0035141208209097385,
-0.006925073452293873,
0.03106098808348179,
0.03812482953071594,
0.044846318662166595,
0.007418700493872166,
-0.0184885673224926,
0.02388210967183113,
0.01275541726499796,
-0.020667485892772675,
0.025690510869026184,
0.012208218686282635,
0.007543580606579781,
0.04190581291913986,
-0.034480612725019455,
-0.016036201268434525,
-0.07257095724344254,
-0.043278612196445465,
0.018486831337213516,
-0.03751015663146973,
0.01607334055006504,
0.019346456974744797,
-0.004114051349461079,
-0.006759037263691425,
-0.027098892256617546,
-0.03531336039304733,
-0.024230729788541794,
-0.06720292568206787,
0.03763878345489502,
0.04781268537044525,
-0.021951032802462578,
-0.0010130447335541248,
-0.0315486416220665,
-0.007343847304582596,
-0.00807475857436657,
-0.010242348536849022,
-0.027304645627737045,
-0.04109198600053787,
0.013845730572938919,
0.014675788581371307,
0.017473910003900528,
0.031208118423819542,
0.022496379911899567,
-0.03822619840502739,
-0.0480610616505146,
0.009020945057272911,
0.010223668068647385,
0.039904143661260605,
0.03522830083966255,
0.003958015237003565,
-0.09156209230422974,
0.003645519260317087,
0.02608155459165573,
0.035537298768758774,
-0.06477538496255875,
-0.003178052371367812,
0.03985055163502693,
-0.015526318922638893,
0.022278327494859695,
-0.0006566283409483731,
-0.028538895770907402,
-0.030771885067224503,
-0.01968356966972351,
0.01801793836057186,
0.01553328987210989,
0.044783711433410645,
-0.010172034613788128,
0.04833180829882622,
0.023801768198609352,
-0.004149371292442083,
-0.04131338372826576,
-0.009895731694996357,
-0.008089705370366573,
-0.02076203003525734,
-0.022911755368113518,
-0.03902463987469673,
-0.06582920998334885,
-0.021503718569874763,
-0.005623417440801859,
0.010686280205845833,
-0.006192308384925127,
-0.04389221966266632,
0.0347459577023983,
0.03534702584147453,
-0.01155716460198164,
0.06865669041872025,
-0.018570661544799805,
0.011674892157316208,
-0.014751194976270199,
-0.05233890190720558,
0.01938767544925213,
-0.004113816190510988,
0.0027778015937656164,
0.04896488040685654,
-0.004555705934762955,
-0.0031430614180862904,
-0.014998986385762691,
-0.0038572808261960745,
0.00024039486015681177,
0.050708744674921036,
-0.01637142151594162,
0.02107655629515648
] | [
-0.0769776850938797,
-0.01397221814841032,
-0.015383956022560596,
-0.0019604205153882504,
0.026922326534986496,
-0.08390505611896515,
0.04482557252049446,
0.013995564542710781,
0.01630106195807457,
-0.010517191141843796,
-0.00680956756696105,
-0.0807248130440712,
0.012137742713093758,
0.009933278895914555,
0.03245178982615471,
-0.026913827285170555,
-0.06518175452947617,
-0.05346149206161499,
-0.021894128993153572,
0.027367042377591133,
0.039928484708070755,
-0.007102333940565586,
-0.027038829401135445,
-0.020093383267521858,
0.021379882469773293,
0.06557460129261017,
0.011530252173542976,
-0.05866844207048416,
0.001396085019223392,
-0.21018052101135254,
0.01664447970688343,
-0.024064501747488976,
0.06203820928931236,
0.009414850734174252,
-0.0010932005243375897,
0.06828505545854568,
-0.004096574615687132,
0.031082017347216606,
-0.0032219290733337402,
0.0689828172326088,
0.007227180991321802,
0.027200469747185707,
-0.05763740837574005,
-0.020697077736258507,
-0.0025861156173050404,
-0.019460715353488922,
-0.036315374076366425,
-0.026681996881961823,
0.01161884143948555,
0.0030226486269384623,
-0.04729871824383736,
-0.01732139103114605,
-0.03943273797631264,
-0.017618520185351372,
-0.012172160670161247,
-0.0013223345158621669,
0.04210421070456505,
0.052818719297647476,
0.01570175029337406,
-0.019931349903345108,
0.01873690076172352,
-0.04067393019795418,
-0.154353067278862,
0.10239080339670181,
-0.012942914851009846,
0.03772309795022011,
-0.055518947541713715,
0.008703970350325108,
-0.01913115754723549,
0.09678733348846436,
0.0120985833927989,
-0.025890547782182693,
-0.02230129763484001,
0.07457838207483292,
0.008509119041264057,
-0.048381734639406204,
-0.025658458471298218,
-0.001045551965944469,
0.055440355092287064,
-0.026810379698872566,
-0.05649036169052124,
-0.0137723907828331,
0.03437039628624916,
-0.015418173745274544,
-0.01178038027137518,
-0.051594726741313934,
0.004609942901879549,
0.061933401972055435,
0.0420830175280571,
-0.010652105323970318,
0.030150379985570908,
-0.001772578340023756,
-0.010512997396290302,
0.0403628796339035,
-0.03426789864897728,
-0.03506007418036461,
0.001264986116439104,
0.0010922455694526434,
-0.05200348049402237,
0.3946949541568756,
-0.020165545865893364,
-0.0032688085921108723,
0.004517937544733286,
0.06231530010700226,
0.004045421257615089,
-0.01751832105219364,
-0.00790325179696083,
-0.05604205280542374,
-0.034359410405159,
-0.059087131172418594,
0.02587171457707882,
-0.04186709225177765,
0.06245921179652214,
-0.07781446725130081,
0.03602684661746025,
0.013518963940441608,
0.017921660095453262,
0.01711263693869114,
0.02697087824344635,
0.01943015120923519,
-0.0033450820483267307,
-0.027354959398508072,
0.03693125396966934,
-0.005603003315627575,
0.012410854920744896,
0.03580202907323837,
0.058337241411209106,
0.08887701481580734,
0.021923314779996872,
0.01908847875893116,
0.053257253021001816,
-0.029178258031606674,
-0.09170356392860413,
0.018105169758200645,
-0.03521769866347313,
0.02049967460334301,
0.044343043118715286,
0.009173116646707058,
0.05299929901957512,
0.0004030311247333884,
0.0033575622364878654,
-0.048719923943281174,
0.01979021355509758,
-0.03457585349678993,
-0.014468533918261528,
0.1251082718372345,
-0.008986027911305428,
-0.0083996020257473,
-0.0330694355070591,
-0.040614157915115356,
0.012326883152127266,
0.06081809476017952,
-0.010841021314263344,
-0.0787748172879219,
-0.022512216120958328,
0.045048195868730545,
0.10237303376197815,
-0.008587849326431751,
-0.011092455126345158,
-0.006558597553521395,
-0.03578433394432068,
-0.018948033452033997,
-0.043125249445438385,
0.013510018587112427,
0.05992552265524864,
-0.09552032500505447,
-0.0006286982097662985,
0.0015100251184776425,
-0.04620518907904625,
-0.11599411815404892,
0.05901625379920006,
0.015044748783111572,
-0.06995661556720734,
-0.004609780386090279,
0.06273509562015533,
-0.01745518296957016,
-0.034148313105106354,
-0.010088014416396618,
0.0784364864230156,
0.03300938755273819,
-0.018591871485114098,
0.032551854848861694,
-0.06441424041986465,
0.00008918336243368685,
-0.015740949660539627,
-0.06305615603923798,
-0.03752104192972183,
0.00930532906204462,
-0.003623499535024166,
0.01715490221977234,
0.015777580440044403,
-0.0047605144791305065,
-0.03663673624396324,
0.05809268355369568,
-0.056317754089832306,
-0.006898642983287573,
0.020426969975233078,
0.0014003661926835775,
-0.024554312229156494,
-0.005088754463940859,
0.02026071585714817,
-0.003004693891853094,
0.004349689930677414,
0.018785255029797554,
0.017114950343966484,
0.00539437448605895,
0.03313175588846207,
-0.02765372209250927,
0.0746881291270256,
-0.013965719379484653,
-0.022398816421628,
-0.006351755931973457,
-0.015109374187886715,
0.0007047454128041863,
-0.026924289762973785,
-0.06856248527765274,
-0.03361021727323532,
-0.0047646197490394115,
0.0034775016829371452,
0.008506810292601585,
-0.012416648678481579,
-0.11119971424341202,
-0.014272927306592464,
-0.3479883670806885,
-0.021722786128520966,
0.013879886828362942,
0.037689413875341415,
0.04205850884318352,
-0.037692200392484665,
-0.012287543155252934,
-0.017070770263671875,
-0.050049182027578354,
0.061762094497680664,
0.026268471032381058,
0.005377023946493864,
0.0019185657147318125,
-0.08544977009296417,
0.008048824965953827,
0.02370886690914631,
-0.03969896584749222,
-0.02557762712240219,
-0.015798207372426987,
0.07257742434740067,
0.03693429008126259,
-0.03074066713452339,
-0.030674537643790245,
-0.036829449236392975,
-0.026410432532429695,
-0.030902434140443802,
0.11953724920749664,
0.013711744919419289,
0.034151628613471985,
-0.008220461197197437,
0.052890874445438385,
0.0035895949695259333,
-0.01900331676006317,
-0.04960561543703079,
-0.01764223724603653,
0.003570510307326913,
-0.0569116584956646,
0.03488529101014137,
-0.0014433065662160516,
-0.018720418214797974,
-0.04260332137346268,
0.05098114535212517,
-0.02455388568341732,
0.002937548328191042,
-0.037617940455675125,
0.011134079657495022,
-0.00933621171861887,
-0.03480811417102814,
0.03444599732756615,
0.06714563816785812,
0.0053375656716525555,
0.045795246958732605,
0.0319327637553215,
0.028903314843773842,
-0.0004155891656409949,
-0.032388076186180115,
-0.07702632248401642,
-0.024519124999642372,
-0.0693429708480835,
-0.03161852806806564,
0.004807709716260433,
0.041282787919044495,
0.056681033223867416,
0.003926413133740425,
-0.041340362280607224,
0.053060103207826614,
0.013259990140795708,
0.011702333576977253,
0.00009518492879578844,
-0.009601275436580181,
0.0018827446037903428,
0.10025101900100708,
0.0021720670629292727,
-0.019839223474264145,
-0.035273075103759766,
0.03637922555208206,
-0.024531366303563118,
0.010250471532344818,
0.024311281740665436,
-0.021349268034100533,
0.03919985145330429,
0.0189213864505291,
0.006947812624275684,
0.015589592978358269,
0.044229526072740555,
0.036721184849739075,
0.007950728759169579,
0.05066214129328728,
0.05984530970454216,
-0.01042961236089468,
0.007901925593614578,
-0.00003532900882419199,
0.032965805381536484,
-0.005405144765973091,
0.022833725437521935,
0.03275763615965843,
-0.24555248022079468,
0.016590271145105362,
0.04367486387491226,
0.06033334136009216,
-0.0035488929133862257,
0.005593187175691128,
0.017506474629044533,
-0.02794395387172699,
0.00472805742174387,
-0.020273305475711823,
-0.023234840482473373,
0.02219945378601551,
-0.013145791366696358,
-0.0004174289933871478,
-0.008552608080208302,
-0.010005907155573368,
0.06776543706655502,
-0.013411063700914383,
0.012028880417346954,
0.04637995362281799,
0.05133126676082611,
-0.015328519977629185,
0.1897255778312683,
0.0006256813649088144,
0.025999384000897408,
-0.03053884766995907,
0.014842858538031578,
0.034865088760852814,
0.053689271211624146,
0.03403228521347046,
0.00462300144135952,
-0.049906909465789795,
0.056661207228899,
0.0011899556266143918,
0.03819693252444267,
-0.011913520283997059,
-0.012070400640368462,
0.008121239021420479,
0.05391157418489456,
-0.00006646705878665671,
-0.043518438935279846,
0.010001018643379211,
-0.07289548963308334,
-0.003375026863068342,
0.09157738834619522,
-0.0038895662873983383,
0.019497398287057877,
-0.06513506919145584,
0.011939691379666328,
0.009372015483677387,
-0.038219302892684937,
-0.03298741951584816,
-0.010055623017251492,
-0.018151303753256798,
0.033037200570106506,
0.05688079446554184,
-0.0008180613513104618,
-0.013812701217830181,
-0.0014816154725849628,
0.017802316695451736,
-0.030489688739180565,
-0.040178172290325165,
0.0977378860116005,
0.0008054305799305439,
0.009433561004698277
] | [
-0.01069314032793045,
0.01832585409283638,
-0.04970458894968033,
0.05263358727097511,
-0.03741174563765526,
-0.0029448061250150204,
-0.012423128820955753,
0.0026749095413833857,
0.01557034533470869,
-0.04867466166615486,
-0.005475280340760946,
0.021404027938842773,
0.02763928286731243,
-0.008211705833673477,
0.03170512244105339,
-0.007294634357094765,
-0.0278971828520298,
-0.011211448349058628,
0.07424995303153992,
-0.03422551974654198,
-0.04982556402683258,
0.0731186792254448,
0.040550075471401215,
0.013335680589079857,
-0.016904663294553757,
0.016997719183564186,
-0.057861823588609695,
-0.00003232092421967536,
0.018965890631079674,
-0.09563198685646057,
-0.01994635909795761,
-0.023716438561677933,
0.01757524535059929,
0.020578419789671898,
0.04225090891122818,
-0.011855817399919033,
0.017143674194812775,
-0.0008436249918304384,
-0.012693342752754688,
0.012611419893801212,
-0.00426169577986002,
0.0028293596114963293,
-0.014092746190726757,
-0.011625966057181358,
-0.035609420388936996,
0.0406687967479229,
-0.03936721384525299,
0.03729279339313507,
-0.037312205880880356,
-0.011658585630357265,
-0.0196838341653347,
0.034681469202041626,
-0.03339586406946182,
-0.012898555025458336,
0.03540821000933647,
0.0036924725864082575,
-0.009132972918450832,
-0.04105537384748459,
0.02111617662012577,
-0.06324600428342819,
0.008696605451405048,
-0.0024586746003478765,
-0.050153788179159164,
-0.027876287698745728,
-0.013978167437016964,
-0.008027109317481518,
-0.007159918546676636,
0.022811060771346092,
0.05176231637597084,
0.010954298079013824,
-0.025851143524050713,
-0.006835172884166241,
0.0015283788088709116,
-0.05128345265984535,
0.0008189927320927382,
-0.011577755212783813,
0.003252992406487465,
-0.08215557038784027,
0.004935407545417547,
-0.0011868879664689302,
-0.03751756250858307,
-0.010004253126680851,
0.012959222309291363,
0.004356493707746267,
0.014725444838404655,
-0.05711716040968895,
0.012622146867215633,
0.013297073543071747,
-0.01989094726741314,
-0.014739836566150188,
-0.011353058740496635,
-0.03454826399683952,
0.022620009258389473,
0.027662938460707664,
-0.07228924334049225,
0.04663641005754471,
0.02238479070365429,
0.010084702633321285,
0.00822890643030405,
0.7966721653938293,
0.04534633830189705,
-0.0041880845092237,
0.026183851063251495,
0.0006296123610809445,
0.02722691372036934,
0.03740566968917847,
-0.0254110898822546,
-0.0638459250330925,
0.0243397057056427,
-0.03956299275159836,
0.020253606140613556,
-0.01002071425318718,
0.02865961380302906,
0.02736622840166092,
0.03491392731666565,
0.025467151775956154,
0.015971222892403603,
0.021451301872730255,
0.026250701397657394,
-0.009990425780415535,
0.020003343001008034,
-0.017613012343645096,
0.0460839718580246,
-0.0022227601148188114,
0.016353348270058632,
-0.17236681282520294,
-0.0006460561999119818,
-8.483376691307395e-33,
-0.00333445449359715,
-0.03863457590341568,
0.02298850752413273,
-0.000053449050028575584,
0.030404280871152878,
0.0064767347648739815,
0.0027491599321365356,
0.004677978809922934,
-0.01019411999732256,
-0.008885396644473076,
0.011674542911350727,
0.02669632062315941,
0.022991081699728966,
0.022202162072062492,
0.050255514681339264,
-0.03765644505620003,
0.014032934792339802,
0.043613847345113754,
0.015971144661307335,
0.030843984335660934,
0.03890824317932129,
0.00030395816429518163,
0.033137500286102295,
0.034634072333574295,
0.00941428355872631,
0.015943322330713272,
-0.019812479615211487,
0.01601463183760643,
-0.0030788651201874018,
-0.048376332968473434,
-0.02949461154639721,
0.023200245574116707,
0.0476798340678215,
-0.022924263030290604,
0.015306082554161549,
-0.06493477523326874,
0.004624161869287491,
-0.017704105004668236,
0.0031839373987168074,
-0.05812804400920868,
-0.01991460658609867,
0.030915958806872368,
0.004452344961464405,
-0.03178926557302475,
-0.03335696831345558,
0.010521085001528263,
0.031864508986473083,
0.060243066400289536,
-0.016703186556696892,
0.025232041254639626,
0.036655087023973465,
-0.02363072708249092,
-0.025777650997042656,
0.03537137433886528,
-0.015787167474627495,
-0.0016409462550655007,
-0.0010259250411763787,
0.008482647128403187,
0.045058880001306534,
0.03586553409695625,
-0.005846012383699417,
0.015701135620474815,
0.030523113906383514,
0.020922044292092323,
0.054813724011182785,
-0.008009125478565693,
0.03296833857893944,
0.09139590710401535,
0.012067073956131935,
0.0251591969281435,
-0.04263884946703911,
0.008767994120717049,
-0.055689066648483276,
-0.010476488620042801,
-0.006394406780600548,
-0.028390532359480858,
0.0028824275359511375,
-0.0490809790790081,
-0.002415847033262253,
0.033429089933633804,
0.040102191269397736,
0.009298720397055149,
-0.02238857001066208,
-0.03036874532699585,
-0.04066455736756325,
0.01605800725519657,
-0.007778005208820105,
-0.00879214983433485,
-0.0005087025929242373,
0.009911427274346352,
0.0073381103575229645,
0.009633718989789486,
-0.008455952629446983,
-0.02073579840362072,
-0.03382458537817001,
7.535870939195029e-33,
0.00178804574534297,
-0.015751374885439873,
-0.026606164872646332,
0.02509228140115738,
0.0272754468023777,
-0.011602644808590412,
0.06407199054956436,
-0.00011804095265688375,
0.0164093729108572,
0.040945280343294144,
-0.004400922916829586,
-0.02838699333369732,
0.018848074600100517,
0.016975851729512215,
0.0513014979660511,
-0.010225437581539154,
-0.01648392342031002,
0.04295773431658745,
0.029573552310466766,
-0.003944250755012035,
-0.02044699899852276,
-0.02230074629187584,
0.008902515284717083,
0.00936138816177845,
-0.025645624846220016,
0.03224845230579376,
-0.02289670705795288,
-0.05466550588607788,
0.012486152350902557,
0.013773126527667046,
0.03694608435034752,
0.01096136774867773,
0.018764466047286987,
-0.007492331322282553,
-0.002168388105928898,
0.001269297325052321,
0.009179850108921528,
-0.03234681859612465,
0.03961530700325966,
-0.015634732320904732,
0.08259022235870361,
0.039036139845848083,
-0.014018155634403229,
0.004383394960314035,
0.015469446778297424,
-0.0038486355915665627,
0.005227645393460989,
0.028101837262511253,
0.0030114909168332815,
-0.009829928167164326,
0.01142138708382845,
0.03263186663389206,
-0.026388464495539665,
0.024839486926794052,
-0.015169280581176281,
-0.041925203055143356,
-0.029531294479966164,
-0.03524082154035568,
-0.059111203998327255,
-0.02353791519999504,
-0.03504304587841034,
-0.0013401992619037628,
-0.03978738933801651,
0.0249997079372406,
-0.008665149100124836,
-0.014752794988453388,
-0.07760710269212723,
-0.007939579896628857,
-0.035323332995176315,
-0.003229904919862747,
0.016652293503284454,
-0.03192347660660744,
-0.03876860439777374,
0.012605851516127586,
-0.045750562101602554,
-0.010728349909186363,
-0.07342763990163803,
-0.01295962929725647,
0.00320998253300786,
0.02260446920990944,
0.021261699497699738,
-0.017184410244226456,
0.0324140340089798,
0.016914254054427147,
-0.018372518941760063,
0.018556883558630943,
0.01406216248869896,
0.002801548922434449,
0.01781471259891987,
0.014839488081634045,
-0.0014034017222002149,
-0.05164612457156181,
0.0019926363602280617,
0.00021227422985248268,
0.03879812732338905,
-1.328529197763828e-8,
-0.08011030405759811,
0.0159844271838665,
-0.005251866299659014,
0.024252738803625107,
0.013032338581979275,
0.01006984245032072,
-0.011941678822040558,
0.016467759385704994,
-0.0033792813774198294,
0.005415636580437422,
0.009459665976464748,
-0.05070556700229645,
0.013963667675852776,
-0.009831470437347889,
0.008430094458162785,
0.026720495894551277,
0.015152373351156712,
-0.016241636127233505,
0.04311136528849602,
-0.024163436144590378,
-0.006874816492199898,
-0.00009537635196465999,
0.029538864269852638,
-0.012466390617191792,
-0.029986515641212463,
0.013715755194425583,
0.04804953932762146,
-0.06923168897628784,
0.01784162037074566,
-0.035748641937971115,
0.022602805867791176,
-0.06549456715583801,
-0.06199762970209122,
0.008910322561860085,
0.03338542953133583,
-0.03770287707448006,
-0.036545585840940475,
-0.008908374235033989,
0.005792379844933748,
0.0030557739082723856,
-0.06115799769759178,
-0.008824806660413742,
-0.03936300426721573,
-0.013204721733927727,
-0.017805494368076324,
-0.005499703343957663,
-0.06522975862026215,
0.0029529116582125425,
-0.028292346745729446,
-0.018207944929599762,
0.01622636988759041,
-0.028072254732251167,
0.04126042500138283,
-0.017358073964715004,
0.037166792899370193,
0.04333871603012085,
-0.008859281428158283,
-0.004321496933698654,
-0.02732195518910885,
-0.017759012058377266,
0.014554527588188648,
-0.014324643649160862,
-0.029911363497376442,
-0.002553529804572463
] | python-counter-valueerror-too-many-values-to-unpack | https://markhneedham.com/blog/2015/01/12/python-counter-valueerror-too-many-values-to-unpack |
false | 2015-01-22 00:25:24 | Python/pdfquery: Scraping the FIFA World Player of the Year votes PDF into shape | [
"python"
] | [
"Python"
] | Last week the http://www.fifa.com/ballon-dor/[FIFA Ballon d'Or 2014] was announced and along with the announcement of the winner the http://es.fifa.com/mm/document/ballon-dor/playeroftheyear-men/02/50/58/45/fboaward_menplayer2014_neutral.pdf[individual votes were also made available].
Unfortunately they weren't made open in a way that Ben Wellington (of http://iquantny.tumblr.com/[IQuantNY] fame) http://iquantny.tumblr.com/post/108236949969/why-open-data-is-still-too-closed-my-tedxnewyork?utm_content=buffera7566&utm_medium=social&utm_source=twitter.com&utm_campaign=buffer[would approve of] - the choice of format for the data is a PDF file!
I wanted to extract this data to play around with it but I wanted to automate the extraction as I'd done when http://www.markhneedham.com/blog/2014/12/09/r-cleaning-up-plotting-google-trends-data/[working with Google Trends data].
I had a quick look for PDF scraping libraries in Python and R and eventually settled on Python's https://pypi.python.org/pypi/pdfquery[pdfquery], mainly because there was lots of documentation which made it easy to get started.
One way you scrape data from a PDF is by locating an element on the page and then grabbing everything within a bounded box relative to that element.
In my case I had 17 pages all of which had a heading for each of six columns.
image::{{<siteurl>}}/uploads/2015/01/2015-01-22_00-08-18.png[2015 01 22 00 08 18,600]
I wanted to grab the data in each of those columns but initially struggled working out what elements I should be looking for until I came across the following function which allows you to dump an XML version of the PDF to disk:
[source,python]
----
import pdfquery
pdf = pdfquery.PDFQuery("fboaward_menplayer2014_neutral.pdf")
pdf.load()
pdf.tree.write("/tmp/yadda", pretty_print=True)
----
The output looks like this:
[source,bash]
----
$ head -n 10 /tmp/yadda
<pdfxml ModDate="D:20150110224554+01'00'" CreationDate="D:20150110224539+01'00'" Producer="Microsoft® Excel® 2010" Creator="Microsoft® Excel® 2010">
<LTPage bbox="[0, 0, 841.8, 595.2]" height="595.2" pageid="1" rotate="0" width="841.8" x0="0" x1="841.8" y0="0" y1="595.2" page_index="0" page_label="">
<LTAnon> </LTAnon>
<LTTextLineHorizontal bbox="[31.08, 546.15, 122.524, 556.59]" height="10.44" width="91.444" word_margin="0.1" x0="31.08" x1="122.524" y0="546.15" y1="556.59"><LTTextBoxHorizontal bbox="[31.08, 546.15, 122.524, 556.59]" height="10.44" index="0" width="91.444" x0="31.08" x1="122.524" y0="546.15" y1="556.59">FIFA Ballon d'Or 2014 </LTTextBoxHorizontal></LTTextLineHorizontal>
<LTAnon> </LTAnon>
<LTAnon> </LTAnon>
<LTAnon> </LTAnon>
<LTAnon> </LTAnon>
<LTAnon> </LTAnon>
<LTAnon> </LTAnon>
----
Having scanned through the file I realised that what I needed to do was locate the 'LTTextLineHorizontal' element for each heading and then grab all the 'LTTextLineHorizontal' elements that appeared in that column.
I started out by trying to grab the 'Name' column on the first page:
[source,python]
----
>>> name_element = pdf.pq('LTPage[pageid=\'1\'] LTTextLineHorizontal:contains("Name")')[0]
>>> name_element.text
'Name '
----
Next I needed to get the other elements in that column. With a bit of trial and error I ended up with the following code:
[source,python]
----
x = float(name_element.get('x0'))
y = float(name_element.get('y0'))
cells = pdf.extract( [
('with_parent','LTPage[pageid=\'1\']'),
('cells', 'LTTextLineHorizontal:in_bbox("%s,%s,%s,%s")' % (x, y-500, x+150, y))
])
>>> [cell.text.encode('utf-8').strip() for cell in cells['cells']]
['Amiri Islam', 'Cana Lorik', 'Bougherra Madjid', 'Luvu Rafe Talalelei', 'Sonejee Masand Oscar', 'Amaral Felisberto', 'Liddie Ryan', 'Griffith Quinton', 'Messi Lionel', 'Berezovskiy Roman', 'Breinburg Reinhard', 'Jedinak Mile', 'Fuchs Christian', 'Sadigov Rashad', 'Gavin Christie', 'Hasan Mohamed', 'Mamun Md Mamnul Islam', 'Burgess Romelle', 'Kalachou Tsimafei', 'Komany Vincent', 'Eiley Dalton', 'Nusum John', 'Tshering Passang', 'Raldes Ronald', 'D\xc5\xbeeko Edin', 'Da Silva Santos Junior Neymar', 'Ceasar Troy', 'Popov Ivelin', 'Kabore Charles', 'Ntibazonkiza Saidi', 'Kouch Sokumpheak']
----
I cleaned that up and generified it to work for any page and for columns of different widths. This is what the function looks like:
[source,python]
----
def extract_cells(page, header, cell_width):
name_element = pdf.pq('LTPage[pageid=\'%s\'] LTTextLineHorizontal:contains("%s")' % (page, header))[0]
x = float(name_element.get('x0'))
y = float(name_element.get('y0'))
cells = pdf.extract( [
('with_parent','LTPage[pageid=\'%s\']' %(page)),
('cells', 'LTTextLineHorizontal:in_bbox("%s,%s,%s,%s")' % (x, y-500, x+cell_width, y))
])
return [cell.text.encode('utf-8').strip() for cell in cells['cells']]
----
We can then call that for each column on the page and zip together the resulting arrays to get a tuple for each row:
[source,python]
----
roles = extract_cells(1, "Vote", 50)
countries = extract_cells(1, "Country", 150)
voters = extract_cells(1, "Name", 170)
first = extract_cells(1, "First (5 points)", 150)
second = extract_cells(1, "Second (3 points)", 150)
third = extract_cells(1, "Third (1 point)", 130)
>>> for vote in zip(roles, countries, voters, first, second, third)[:5]:
print vote
('Captain', 'Afghanistan', 'Amiri Islam', 'Messi Lionel', 'Cristiano Ronaldo', 'Ibrahimovic Zlatan')
('Captain', 'Albania', 'Cana Lorik', 'Cristiano Ronaldo', 'Robben Arjen', 'Mueller Thomas')
('Captain', 'Algeria', 'Bougherra Madjid', 'Cristiano Ronaldo', 'Robben Arjen', 'Benzema Karim')
('Captain', 'American Samoa', 'Luvu Rafe Talalelei', 'Neymar', 'Robben Arjen', 'Cristiano Ronaldo')
('Captain', 'Andorra', 'Sonejee Masand Oscar', 'Cristiano Ronaldo', 'Mueller Thomas', 'Kroos Toni')
----
The next step was to write out each of those rows to a CSV file so we can use it from another program. The full script looks like this:
[source,python]
----
import pdfquery
import csv
def extract_cells(page, header, cell_width):
name_element = pdf.pq('LTPage[pageid=\'%s\'] LTTextLineHorizontal:contains("%s")' % (page, header))[0]
x = float(name_element.get('x0'))
y = float(name_element.get('y0'))
cells = pdf.extract( [
('with_parent','LTPage[pageid=\'%s\']' %(page)),
('cells', 'LTTextLineHorizontal:in_bbox("%s,%s,%s,%s")' % (x, y-500, x+cell_width, y))
])
return [cell.text.encode('utf-8').strip() for cell in cells['cells']]
if __name__ == "__main__":
pdf = pdfquery.PDFQuery("fboaward_menplayer2014_neutral.pdf")
pdf.load()
pdf.tree.write("/tmp/yadda", pretty_print=True)
pages_in_pdf = len(pdf.pq('LTPage'))
with open('votes.csv', 'w') as votesfile:
writer = csv.writer(votesfile, delimiter=",")
writer.writerow(["Role", "Country", "Voter", "FirstPlace", "SecondPlace", "ThirdPlace"])
for page in range(1, pages_in_pdf + 1):
print page
roles = extract_cells(page, "Vote", 50)
countries = extract_cells(page, "Country", 150)
voters = extract_cells(page, "Name", 170)
first = extract_cells(page, "First (5 points)", 150)
second = extract_cells(page, "Second (3 points)", 150)
third = extract_cells(page, "Third (1 point)", 130)
votes = zip(roles, countries, voters, first, second, third)
print votes
for vote in votes:
writer.writerow(list(vote))
----
The https://github.com/mneedham/fifa[code is on github] if you want to play around with it or if you just want to grab the https://github.com/mneedham/fifa/blob/master/votes.csv[votes data] that's there too. | null | null | [
-0.012419428676366806,
-0.02252165600657463,
0.01895095221698284,
0.04545830935239792,
0.039947766810655594,
-0.023770630359649658,
-0.0067936815321445465,
0.05987872928380966,
0.009274253621697426,
-0.005634650122374296,
-0.02123761922121048,
-0.022697828710079193,
-0.06235677748918533,
-0.00043404297321103513,
0.01074253860861063,
0.06828497350215912,
0.04599013924598694,
0.02339055947959423,
0.018348893150687218,
-0.02381915971636772,
0.019667966291308403,
0.054694946855306625,
-0.02002495527267456,
0.021246779710054398,
0.024970024824142456,
-0.005135801155120134,
0.043318457901477814,
0.0054334853775799274,
-0.04592137783765793,
-0.01034678053110838,
0.035848986357450485,
-0.017124054953455925,
0.00028254601056687534,
-0.014098812825977802,
0.00952062662690878,
-0.020608747377991676,
-0.012991667725145817,
0.0275527685880661,
0.0010157390497624874,
0.025228340178728104,
-0.08221887797117233,
0.036901868879795074,
-0.010842091403901577,
-0.001655874541029334,
-0.02788226492702961,
0.0037418920546770096,
-0.017244450747966766,
0.038545768707990646,
-0.008109865710139275,
-0.008540631271898746,
-0.05623174086213112,
0.035609401762485504,
-0.022433409467339516,
0.0050007039681077,
-0.004093983676284552,
0.0572240836918354,
-0.0031468214001506567,
-0.048926882445812225,
-0.00019153821631334722,
-0.043504808098077774,
0.001295710913836956,
-0.005308195482939482,
0.014983568340539932,
0.012947030365467072,
0.016305850818753242,
-0.027233947068452835,
-0.011887422762811184,
0.04188775271177292,
-0.019755259156227112,
-0.009892923757433891,
0.001984819071367383,
0.009056751616299152,
-0.04372117668390274,
0.006645722780376673,
0.03337455540895462,
-0.05127829685807228,
0.0057900408282876015,
0.08505133539438248,
-0.009213094599545002,
0.054643746465444565,
-0.0043900939635932446,
0.0002267191157443449,
0.016069460660219193,
0.0431167371571064,
-0.018717877566814423,
-0.04324213042855263,
-0.036611855030059814,
-0.016912102699279785,
-0.03221485763788223,
0.03971068561077118,
0.01416701264679432,
-0.052701011300086975,
0.027025526389479637,
0.02391085959970951,
-0.02008822374045849,
-0.017261527478694916,
0.02049376629292965,
0.0003079680900555104,
-0.03260938823223114,
-0.03562890365719795,
-0.030682682991027832,
-0.03245624527335167,
0.04302603378891945,
0.01512598805129528,
-0.08488266170024872,
-0.018560534343123436,
-0.010206478647887707,
-0.013084221631288528,
0.013454772531986237,
-0.0020082839764654636,
0.011068048886954784,
0.014566829428076744,
-0.020444829016923904,
-0.020905066281557083,
-0.06662686169147491,
0.05943720042705536,
0.05837509408593178,
-0.022629491984844208,
0.008020343258976936,
0.03088512271642685,
0.036918800324201584,
0.020114116370677948,
-0.009347155690193176,
0.06962686777114868,
0.0009518894366919994,
0.028424862772226334,
0.0032363729551434517,
0.057394884526729584,
-0.025338103994727135,
-0.040000151842832565,
-0.009870422072708607,
0.061118967831134796,
-0.031141500920057297,
0.0006592415156774223,
0.011475027538836002,
-0.041578538715839386,
-0.001014843350276351,
-0.0005859254742972553,
0.07657193392515182,
0.01652437262237072,
-0.0040594241581857204,
-0.024961218237876892,
-0.02619883418083191,
0.019964585080742836,
0.03755073621869087,
-0.0181390643119812,
-0.024448150768876076,
-0.031553905457258224,
-0.029168857261538506,
0.0016375520499423146,
0.023797718808054924,
-0.01790638640522957,
0.0710628479719162,
-0.03132467716932297,
0.0016116612823680043,
0.10279574245214462,
0.05826559290289879,
0.009132424369454384,
-0.0043684374541044235,
0.033756233751773834,
0.03924249857664108,
0.03867320343852043,
-0.0035313523840159178,
0.0211155004799366,
-0.01549241878092289,
-0.041936058551073074,
0.014548213221132755,
0.0638962909579277,
-0.018591467291116714,
0.0059599000960588455,
-0.05808505788445473,
-0.04505356401205063,
0.0613098219037056,
-0.03315941244363785,
-0.018829917535185814,
0.06403406709432602,
0.07797189056873322,
0.017664428800344467,
0.04682855308055878,
0.004726628307253122,
-0.08563035726547241,
0.03745028376579285,
0.022608637809753418,
0.04098322242498398,
0.01813390478491783,
-0.033411238342523575,
0.09847161918878555,
0.035274188965559006,
0.004734116140753031,
0.0454990528523922,
-0.07987135648727417,
-0.0824572816491127,
-0.06133534014225006,
-0.006036865059286356,
0.056897468864917755,
-0.04779016599059105,
0.03719167038798332,
0.07716301828622818,
0.018937118351459503,
0.05011500418186188,
0.001204031053930521,
0.017957443371415138,
0.022073915228247643,
-0.0422695018351078,
-0.0707617700099945,
0.022131994366645813,
0.04348237067461014,
-0.022494813427329063,
-0.03183356672525406,
0.02772429585456848,
-0.03145703300833702,
0.029340513050556183,
0.014208241365849972,
-0.036426644772291183,
0.004800001159310341,
0.00851143803447485,
0.05517491698265076,
-0.01742878183722496,
0.06783659011125565,
-0.06020568683743477,
0.04202823340892792,
0.01663856953382492,
-0.01396937482059002,
-0.009277187287807465,
-0.0025879694148898125,
0.1305128037929535,
0.0488748736679554,
-0.009649597108364105,
-0.03747451677918434,
0.005482062231749296,
0.007582873571664095,
-0.015322412364184856,
0.0008148225606419146,
-0.0198361873626709,
-0.02437436953186989,
-0.028746824711561203,
-0.04609451815485954,
-0.03622174263000488,
0.016630705446004868,
-0.036421921104192734,
0.009418057277798653,
0.08222261071205139,
0.0011436180211603642,
0.04635925218462944,
-0.029983047395944595,
-0.0011734714498743415,
-0.02293836697936058,
-0.016132719814777374,
-0.03486838564276695,
-0.003395744366571307,
0.025986317545175552,
-0.004184442106634378,
-0.0030187745578587055,
-0.015004697255790234,
-0.01513269916176796,
-0.02454979531466961,
-0.03672073036432266,
0.032438769936561584,
0.07133834809064865,
0.056055840104818344,
0.01337013766169548,
0.01823166012763977,
-0.03514082357287407,
0.028620712459087372,
-0.014170358888804913,
-0.050577640533447266,
-0.054345160722732544,
-0.050631847232580185,
-0.013434498570859432,
0.034548670053482056,
0.024342656135559082,
0.02430959790945053,
-0.004424523562192917,
0.00524592399597168,
-0.007982606068253517,
-0.000005684555162588367,
0.026619039475917816,
0.008473278023302555,
-0.007937234826385975,
-0.04348962381482124,
-0.012361676432192326,
0.05207362398505211,
-0.033438436686992645,
-0.03683539852499962,
-0.010131990537047386,
-0.07216424494981766,
0.03882741555571556,
-0.021586930379271507,
-0.026283789426088333,
0.009754394181072712,
-0.014586560428142548,
0.030246954411268234,
0.026290452107787132,
0.01269740704447031,
0.04241850599646568,
0.008913014084100723,
0.01593019999563694,
0.006696018856018782,
-0.009806209243834019,
0.02569109946489334,
-0.020028308033943176,
0.017125573009252548,
0.04428364336490631,
-0.04505014419555664,
0.01784399338066578,
-0.04995568096637726,
0.03259405866265297,
-0.05205642804503441,
-0.2940537631511688,
0.02880813367664814,
0.0017845080001279712,
-0.02121090516448021,
0.022020867094397545,
-0.01690424233675003,
-0.012353144586086273,
-0.02800716832280159,
-0.03666922450065613,
0.011124550364911556,
-0.014946228824555874,
-0.021441083401441574,
-0.01629115641117096,
0.02850247360765934,
0.03210631385445595,
0.020268291234970093,
0.01652478240430355,
-0.02880122885107994,
0.001543292193673551,
0.057374510914087296,
-0.009497339837253094,
-0.040172040462493896,
0.0028798936400562525,
0.047263938933610916,
0.04094056785106659,
0.040501825511455536,
-0.05323095992207527,
-0.0009518292499706149,
-0.05387520417571068,
-0.02614676021039486,
0.046262070536613464,
-0.01662454567849636,
0.009733524173498154,
-0.0006544286734424531,
-0.0019481141353026032,
-0.019872838631272316,
0.044854700565338135,
0.012342710979282856,
-0.027471870183944702,
0.0006693809409625828,
-0.030204979702830315,
-0.023694613948464394,
0.004755237139761448,
-0.012406445108354092,
0.09677589684724808,
-0.008517599664628506,
-0.06266704946756363,
-0.013785209506750107,
-0.032374508678913116,
0.07389801740646362,
-0.008546203374862671,
-0.03746006637811661,
-0.033648665994405746,
0.02795485593378544,
-0.012994046323001385,
0.020350079983472824,
0.0023949232418090105,
-0.02081144228577614,
-0.03230344504117966,
-0.04085531085729599,
0.007530820090323687,
-0.02903568372130394,
-0.008128191344439983,
-0.03827404975891113,
-0.03177491948008537,
-0.07197245955467224,
-0.03405351936817169,
-0.00047722450108267367,
0.07031425088644028,
0.04422442615032196,
-0.03821922466158867,
0.012112717144191265,
-0.019705211743712425,
-0.09741294384002686,
-0.012401635758578777,
-0.016219187527894974,
-0.013275394216179848,
0.02072843536734581,
-0.0036034139338880777,
0.03884812071919441,
-0.04811597988009453,
-0.06551159918308258,
0.039214812219142914,
0.018129650503396988,
0.017206573858857155,
-0.033354587852954865,
0.03704206272959709,
0.01805853843688965,
-0.00549375219270587,
-0.018454335629940033,
0.07166670262813568,
-0.05226697772741318,
-0.01660936139523983,
0.00009992017294280231,
-0.029772449284791946,
0.028269609436392784,
-0.004508722573518753,
0.0018923580646514893,
0.007669578306376934,
0.06684178858995438,
-0.008572102524340153,
-0.051744408905506134,
-0.014492819085717201,
-0.030915765091776848,
-0.005464724265038967,
0.00582883320748806,
-0.03478455916047096,
0.005297964904457331,
0.027000272646546364,
0.007844408042728901,
0.010856344364583492,
-0.018338901922106743,
0.013548619113862514,
-0.03414548933506012,
-0.026034362614154816,
-0.012997038662433624,
0.027779098600149155,
0.00940698478370905,
-0.006194820627570152,
-0.030711889266967773,
-0.05777903273701668,
0.018107162788510323,
-0.013321693986654282,
-0.013873228803277016,
-0.03703503683209419,
-0.03716769069433212,
-0.010515219531953335,
-0.03162075951695442,
0.02576618827879429,
-0.013063124381005764,
-0.00401105685159564,
0.018484611064195633,
0.025125527754426003,
-0.02490495704114437,
0.02297304756939411,
-0.03995033726096153,
-0.03064104914665222,
-0.05254502594470978,
0.016919786110520363,
0.003568901214748621,
-0.005446683615446091,
0.032404426485300064,
-0.005489302333444357,
0.007093389518558979,
0.06708063930273056,
-0.0050829146057367325,
0.007062321063131094,
0.021897321566939354,
0.0021912273950874805,
0.031331196427345276,
-0.006490128114819527,
-0.02394435741007328,
0.050053901970386505,
-0.036877986043691635,
-0.029237791895866394,
-0.026012174785137177,
0.042924072593450546,
0.00036866572918370366,
-0.001929645542986691,
-0.053892042487859726,
0.010659385472536087,
-0.038310009986162186,
-0.027108939364552498,
0.011022902093827724,
0.0004640212282538414,
0.0413646325469017,
0.018155613914132118,
0.019458867609500885,
0.011935950256884098,
-0.023203276097774506,
0.02362574264407158,
-0.0028929654508829117,
-0.016065893694758415,
-0.005616039037704468,
-0.031482674181461334,
-0.02601872757077217,
0.0009704690892249346,
0.014625503681600094,
0.008572820574045181,
0.00874418392777443,
-0.02509910613298416,
-0.012388685718178749,
0.029617328196763992,
0.004279022105038166,
0.04569476097822189,
0.06558605283498764,
-0.026334840804338455,
-0.00985702220350504,
-0.012981530278921127,
-0.018129641190171242,
-0.03404144570231438,
0.032191213220357895,
-0.02605445496737957,
-0.013370273634791374,
-0.027366694062948227,
-0.09262736886739731,
0.03331510350108147,
0.012621225789189339,
-0.007129081524908543,
0.005794084630906582,
-0.024577992036938667,
-0.034546490758657455,
-0.02901691198348999,
0.03744165226817131,
0.04685124754905701,
-0.06335954368114471,
-0.014946826733648777,
-0.003132719313725829,
0.008984197862446308,
0.008014549501240253,
0.02112935110926628,
-0.04953465238213539,
-0.000043385189201217145,
-0.026655200868844986,
0.025074517354369164,
-0.009080587886273861,
-0.01875169388949871,
-0.04481181874871254,
0.011535309255123138,
0.004187179729342461,
0.036678168922662735,
-0.016697224229574203,
-0.022116756066679955,
0.004976949188858271,
-0.022830698639154434,
0.018775243312120438,
-0.009501810185611248,
-0.02959209680557251,
0.02229684218764305,
-0.024824587628245354,
0.024660378694534302,
-0.033470749855041504,
0.02498447895050049,
0.035003285855054855,
-0.021493306383490562,
0.022642340511083603,
-0.03485119342803955,
0.027137598022818565,
0.0066862553358078,
0.06492505222558975,
-0.004792502615600824,
-0.03693270683288574,
-0.020838527008891106,
0.010968383401632309,
-0.03585709631443024,
0.025449827313423157,
-0.02387622930109501,
0.007219487335532904,
0.018388038501143456,
0.057217102497816086,
0.013257348909974098,
0.020275775343179703,
-0.0221755038946867,
-0.011059099808335304,
0.028857668861746788,
-0.03944988176226616,
-0.017452871426939964,
-0.012506842613220215,
-0.045929472893476486,
0.033134084194898605,
0.02214798703789711,
0.0025993986055254936,
-0.06411968916654587,
0.042167793959379196,
0.016716988757252693,
0.009458783082664013,
0.05894206464290619,
0.019209124147892,
0.014616536907851696,
-0.029942244291305542,
-0.029792748391628265,
-0.10235077142715454,
-0.008651179261505604,
0.04411054402589798,
0.005109970457851887,
-0.01609102264046669,
0.016558168455958366,
-0.02804313227534294,
0.03757615387439728,
-0.08373315632343292,
-0.0456756055355072,
0.03573023900389671,
0.012230216525495052,
0.008831617422401905,
0.010552946478128433,
-0.05799863114953041,
0.012808079831302166,
0.04589306563138962,
-0.06198440119624138,
-0.0007585884304717183,
-0.02026285231113434,
0.07050836086273193,
-0.01996581442654133,
0.00576502550393343,
-0.015262104570865631,
-0.021586529910564423,
0.06917714327573776,
0.01593032106757164,
-0.011683864519000053,
0.04252289980649948,
0.0024157788138836622,
0.02425404265522957,
0.020694328472018242,
-0.01197862159460783,
0.036113008856773376,
-0.0033407581504434347,
-0.0006761972326785326,
-0.0635056421160698,
0.04284597933292389,
0.007123166229575872,
-0.009188883937895298,
-0.044686365872621536,
0.07353968918323517,
0.0015463255112990737,
-0.04831438139081001,
-0.0438968800008297,
0.01076090894639492,
-0.04196596518158913,
-0.012707279063761234,
-0.018295805901288986,
-0.007252958603203297,
-0.035922370851039886,
0.05051722750067711,
0.002483135322108865,
0.007216657977551222,
0.06987925618886948,
-0.007942848838865757,
-0.0068960124626755714,
0.018065350130200386,
0.07639451324939728,
0.0667320042848587,
0.04656307026743889,
-0.019169026985764503,
0.07401905953884125,
-0.016722315922379494,
-0.060242798179388046,
0.017754947766661644,
-0.01307754684239626,
-0.004226863384246826,
-0.001252849237062037,
-0.00366671453230083,
0.05300299823284149,
-0.029771078377962112,
0.058652542531490326,
-0.003084060736000538,
-0.03526879474520683,
-0.017053548246622086,
0.013827947899699211,
0.03160332515835762,
0.04912145435810089,
-0.0061240121722221375,
0.03988726809620857,
-0.03783371299505234,
-0.045186299830675125,
0.056387096643447876,
-0.020219998434185982,
-0.010096194222569466,
0.03002201020717621,
-0.02358713373541832,
0.02373763546347618,
0.010841176845133305,
0.0681934729218483,
0.08626984804868698,
-0.0243343748152256,
0.01725074276328087,
-0.006198497489094734,
0.024683117866516113,
0.022580891847610474,
0.035617344081401825,
-0.0033069716300815344,
0.012418307363986969,
-0.011697135865688324,
-0.034846577793359756,
-0.027636971324682236,
-0.01772754080593586,
-0.033007487654685974,
0.04062652587890625,
-0.04616089165210724,
0.0032325894571840763,
0.014907922595739365,
-0.01154003944247961,
-0.05460032448172569,
-0.051134489476680756,
-0.04297764226794243,
-0.03979985788464546,
-0.08303718268871307,
-0.01637188531458378,
0.04112495109438896,
0.0061179050244390965,
-0.0382472425699234,
-0.0298103466629982,
-0.032473403960466385,
-0.01272084191441536,
0.023181427270174026,
-0.05663551017642021,
-0.021394439041614532,
0.0076360455714166164,
0.024505386129021645,
0.023143816739320755,
0.004098857287317514,
0.07095348834991455,
0.016381407156586647,
-0.01956961676478386,
-0.008869879879057407,
0.040102891623973846,
0.04386305436491966,
0.024328920990228653,
0.01455839816480875,
-0.10488574206829071,
0.01257563941180706,
0.0014569179620593786,
-0.044127196073532104,
-0.06774541735649109,
0.025490667670965195,
0.04171072691679001,
0.008741411380469799,
0.04666896164417267,
-0.017842428758740425,
-0.0031497457530349493,
-0.06874778866767883,
-0.009043223224580288,
-0.009294302202761173,
-0.01071036234498024,
0.047525595873594284,
-0.03657403960824013,
0.09304117411375046,
0.049164485186338425,
0.007907060906291008,
-0.05007750168442726,
-0.03233988955616951,
-0.005191529169678688,
0.023486532270908356,
-0.040047112852334976,
-0.017186352983117104,
-0.0654035210609436,
-0.07346022874116898,
-0.04032887890934944,
0.05168963596224785,
-0.054946862161159515,
-0.03540106862783432,
0.008226733654737473,
0.03702811151742935,
-0.008074489422142506,
0.00937628373503685,
-0.024718230590224266,
0.015873562544584274,
-0.00851715262979269,
0.0030332780443131924,
-0.02679678425192833,
0.03807489946484566,
0.00744828162714839,
0.027554228901863098,
0.010973183438181877,
-0.04450021684169769,
0.00917365774512291,
-0.03431402146816254,
-0.0011959761613979936,
0.03145502507686615,
-0.0064897844567894936,
0.02043044939637184
] | [
-0.06991587579250336,
0.015892241150140762,
-0.026352830231189728,
-0.03906018286943436,
0.11063031852245331,
-0.02796606533229351,
-0.011628452688455582,
0.030444147065281868,
0.0035945733543485403,
0.017936117947101593,
-0.01465404499322176,
-0.07341530174016953,
-0.030714984983205795,
-0.027092302218079567,
0.04491915553808212,
-0.005764381494373083,
-0.005899797659367323,
-0.09100205451250076,
-0.02189204841852188,
0.0635993704199791,
0.0014827976701781154,
0.00011833503231173381,
-0.026589952409267426,
-0.03970967233181,
-0.004478395450860262,
0.006339087150990963,
0.025215769186615944,
-0.041119564324617386,
-0.027306949719786644,
-0.18766309320926666,
0.007511671166867018,
-0.016101514920592308,
0.0043582553043961525,
-0.006959282327443361,
0.015782639384269714,
0.008043979294598103,
0.03665076568722725,
0.017146483063697815,
0.04452319070696831,
0.024669861420989037,
0.006197859533131123,
0.0041587259620428085,
-0.05252806097269058,
-0.03455181419849396,
0.0654335767030716,
0.025044934824109077,
-0.019692305475473404,
-0.013814491219818592,
0.02080368995666504,
0.02680860459804535,
-0.08030351996421814,
0.04219573363661766,
-0.0022053944412618876,
-0.04952589422464371,
-0.011361595243215561,
0.039426885545253754,
0.051086075603961945,
0.053705330938100815,
0.0097573921084404,
0.03926409035921097,
0.043004658073186874,
0.01746700331568718,
-0.1280549317598343,
0.11173384636640549,
0.01447439193725586,
0.03096570260822773,
-0.06653200089931488,
0.012654117308557034,
-0.008205431513488293,
0.04728954657912254,
0.004084088373929262,
-0.04480492323637009,
-0.004653317388147116,
0.031140103936195374,
0.029644066467881203,
-0.021534163504838943,
-0.003097637789323926,
0.02098836563527584,
-0.003613339504227042,
-0.02489716187119484,
-0.04638224095106125,
0.031715258955955505,
-0.03801444172859192,
-0.029742833226919174,
-0.05346228927373886,
0.006980207748711109,
-0.016744626685976982,
0.057563915848731995,
-0.004676929675042629,
0.016455480828881264,
0.060816533863544464,
0.009117537178099155,
0.018516210839152336,
0.03703540563583374,
-0.11558801680803299,
-0.03357157111167908,
-0.006834430154412985,
0.02587530016899109,
-0.0022763677407056093,
0.44742467999458313,
-0.017271336168050766,
-0.022859342396259308,
0.06515920907258987,
0.04161975532770157,
-0.00030338039505295455,
-0.004291994497179985,
0.016569187864661217,
-0.04251214116811752,
-0.004493417218327522,
-0.024246124550700188,
0.007860830053687096,
-0.00808713212609291,
0.062007706612348557,
-0.029306534677743912,
0.017776522785425186,
0.015408281236886978,
-0.003952948376536369,
0.008612530305981636,
-0.014443791471421719,
0.005396346561610699,
-0.03862404823303223,
0.011458883993327618,
-0.004768483340740204,
0.01108030416071415,
-0.009620729833841324,
0.018289901316165924,
0.030350634828209877,
0.05942555144429207,
0.05008668452501297,
0.018179593607783318,
0.04689910635352135,
-0.03410215675830841,
-0.09942393749952316,
-0.007213576231151819,
0.00022220109531190246,
0.00216627586632967,
0.016355879604816437,
-0.012942682020366192,
0.005508239846676588,
0.05128682777285576,
-0.015650350600481033,
-0.057783093303442,
0.02048659883439541,
-0.005755519960075617,
-0.06366853415966034,
0.10467691719532013,
0.020631004124879837,
-0.03952449560165405,
0.008275587111711502,
-0.0380975641310215,
0.019259173423051834,
0.0466897189617157,
0.01502721942961216,
-0.047307293862104416,
-0.003148274729028344,
0.01349928043782711,
0.06376737356185913,
-0.03081316500902176,
-0.05258716642856598,
-0.01863824389874935,
-0.02441178448498249,
-0.05905665084719658,
-0.0165123138576746,
0.058488115668296814,
0.030523179098963737,
-0.13828061521053314,
-0.029077257961034775,
-0.006681059021502733,
-0.0041503384709358215,
-0.07163136452436447,
-0.009187350049614906,
0.0035187669564038515,
-0.04578398913145065,
0.006365057080984116,
0.057696856558322906,
-0.003656429937109351,
0.005460329353809357,
-0.002115251962095499,
0.07684997469186783,
-0.012525471858680248,
0.010144926607608795,
-0.004055085591971874,
-0.060199394822120667,
0.00026319889002479613,
-0.054792262613773346,
-0.06740379333496094,
-0.06634742766618729,
0.007699674926698208,
0.007965379394590855,
0.029976485297083855,
-0.003406674135476351,
-0.0208114106208086,
-0.08054350316524506,
0.05724582448601723,
-0.027690105140209198,
-0.0007134776096791029,
-0.024611692875623703,
-0.017203129827976227,
0.021081317216157913,
-0.03836619108915329,
-0.050265245139598846,
-0.013600513339042664,
-0.027933500707149506,
0.03117247484624386,
-0.03058924712240696,
0.03734675049781799,
0.06502396613359451,
-0.041344594210386276,
0.08017784357070923,
0.011543167755007744,
-0.02343146502971649,
-0.03938503563404083,
-0.01819850131869316,
-0.01768065243959427,
-0.010846883989870548,
-0.016011066734790802,
-0.0002736930036917329,
-0.013739022426307201,
-0.008887797594070435,
0.041562192142009735,
-0.0386875718832016,
-0.044378988444805145,
-0.008620111271739006,
-0.32929080724716187,
-0.051441825926303864,
-0.058668289333581924,
0.013227357529103756,
0.022583473473787308,
-0.021015843376517296,
0.02359837107360363,
-0.007127171382308006,
0.024183494970202446,
0.06605428457260132,
0.09052391350269318,
-0.004092865157872438,
-0.00738002173602581,
-0.06278956681489944,
-0.0315830297768116,
-0.01221136562526226,
-0.04581831768155098,
-0.014101735316216946,
-0.016183461993932724,
0.04147111997008324,
0.026844456791877747,
-0.01265305932611227,
-0.06890694797039032,
-0.01122884638607502,
0.009492787532508373,
-0.07466832548379898,
0.12965704500675201,
0.0700625404715538,
0.03130774945020676,
-0.0493505522608757,
0.0366961807012558,
0.025598863139748573,
0.0026874253526329994,
-0.11052554845809937,
0.013912016525864601,
-0.007857004180550575,
-0.006234831642359495,
-0.011872390285134315,
0.009783871471881866,
-0.04508354142308235,
-0.02775578945875168,
0.041030123829841614,
-0.007798466831445694,
-0.051430221647024155,
-0.029723087325692177,
0.03101607784628868,
-0.01159078162163496,
-0.04487520828843117,
-0.04326115548610687,
0.09224952012300491,
0.024981152266263962,
-0.0044787866063416,
0.08119169622659683,
0.0097745256498456,
0.010604001581668854,
-0.022073274478316307,
-0.06623134016990662,
0.014641772024333477,
-0.0012938176514580846,
0.0031118332408368587,
0.027253009378910065,
0.009882906451821327,
0.06580931693315506,
-0.06347696483135223,
-0.023806903511285782,
0.030848175287246704,
0.0030424976721405983,
0.014586090110242367,
0.022577106952667236,
-0.005571854766458273,
0.007980458438396454,
0.07960142195224762,
-0.0032076186034828424,
0.03924955427646637,
0.024509571492671967,
0.04960698261857033,
0.03865223750472069,
0.030415909364819527,
0.03230328857898712,
0.014603241346776485,
0.03780317306518555,
0.019383283331990242,
0.044914934784173965,
-0.02587837167084217,
0.010156691074371338,
0.024632828310132027,
-0.011704794131219387,
-0.03151477873325348,
0.03817662224173546,
0.018519440665841103,
-0.005552791059017181,
-0.000707765284460038,
-0.05005329102277756,
-0.0208748746663332,
0.01973888836801052,
-0.0011483138659968972,
-0.24979530274868011,
0.014704102650284767,
0.08263207972049713,
0.06881147623062134,
0.02339259535074234,
0.01843337155878544,
0.03480801731348038,
-0.022714346647262573,
0.001818177755922079,
0.028755657374858856,
0.008782884106040001,
0.03490035608410835,
-0.016463642939925194,
-0.03162483870983124,
-0.011072875931859016,
-0.007143886294215918,
0.008982979692518711,
0.009097416885197163,
0.004546912387013435,
0.020580315962433815,
0.013012053444981575,
-0.026984931901097298,
0.14673134684562683,
0.0007797371945343912,
-0.000057160457799909636,
0.0365767665207386,
-0.0016494893934577703,
-0.021576518192887306,
0.04231587424874306,
0.01414775475859642,
0.003949231468141079,
-0.0037219186779111624,
0.026089459657669067,
0.03473518416285515,
-0.006510078441351652,
-0.056213509291410446,
-0.03370941802859306,
0.07530496269464493,
0.004328285343945026,
-0.05399072915315628,
-0.020269524306058884,
0.044337350875139236,
-0.03603428974747658,
0.012340911664068699,
0.04083724692463875,
0.0335233211517334,
-0.0004216428496874869,
-0.02432113140821457,
-0.06604248285293579,
-0.008203097619116306,
-0.02848423831164837,
-0.04955515265464783,
-0.021993139758706093,
-0.011593451723456383,
0.013148406520485878,
0.08582302182912827,
0.026366377249360085,
-0.027558699250221252,
0.05334273353219032,
0.018214276060461998,
-0.008066247217357159,
-0.020489448681473732,
0.08380722999572754,
0.030064521357417107,
0.0393129400908947
] | [
0.015497137792408466,
0.04161945730447769,
-0.047407329082489014,
-0.024817952886223793,
0.03065144270658493,
0.02777409926056862,
-0.03044024668633938,
0.021020516753196716,
-0.02582463063299656,
-0.00009075357957044616,
0.01237226277589798,
0.007160468492656946,
0.021773314103484154,
-0.01153800543397665,
0.006913773715496063,
-0.03276709094643593,
-0.03867596015334129,
-0.02427593059837818,
0.03546096757054329,
0.009897567331790924,
-0.0371076874434948,
0.04104587063193321,
0.0175229050219059,
-0.011929264292120934,
-0.04721328616142273,
-0.00833229348063469,
-0.01963271014392376,
0.026036472991108894,
-0.006061430089175701,
-0.13424517214298248,
0.008990711532533169,
-0.027618706226348877,
0.014642659574747086,
0.014208262786269188,
-0.0158050786703825,
-0.006113826762884855,
-0.019787829369306564,
-0.020332004874944687,
0.00852997973561287,
-0.0036440002731978893,
-0.003285554237663746,
-0.06901711970567703,
-0.010901115834712982,
0.010999832302331924,
-0.005931937135756016,
0.016032706946134567,
-0.01635891944169998,
-0.012656223960220814,
0.02440413273870945,
0.039899494498968124,
-0.054944250732660294,
0.00024260696955025196,
-0.00279678450897336,
0.02417733520269394,
0.04126891493797302,
-0.03309829905629158,
-0.016820499673485756,
0.01323457807302475,
-0.012197725474834442,
-0.04004549980163574,
-0.03054327704012394,
-0.012604220770299435,
-0.02767687849700451,
-0.017901264131069183,
-0.008598845452070236,
-0.02229338325560093,
-0.043796345591545105,
0.021427661180496216,
-0.012014826759696007,
0.024753650650382042,
0.010748559609055519,
0.056490253657102585,
-0.019747186452150345,
-0.037823643535375595,
-0.007916376926004887,
-0.03157160431146622,
-0.04080412536859512,
-0.01507645845413208,
0.002098256256431341,
-0.022789767012000084,
-0.02607363648712635,
0.008227474056184292,
-0.000745364697650075,
0.01602143608033657,
-0.010809371247887611,
-0.05022215470671654,
0.022127442061901093,
0.01678188145160675,
-0.009162540547549725,
0.04209189862012863,
-0.014050295576453209,
0.02732507511973381,
0.019162988290190697,
0.05631180480122566,
-0.10803180932998657,
0.024502284824848175,
0.023901542648673058,
-0.02422070875763893,
0.016222361475229263,
0.8452129364013672,
0.015504565089941025,
0.003746190806850791,
0.003931693732738495,
-0.018204135820269585,
-0.017461838200688362,
-0.03292161226272583,
0.011415384709835052,
0.0015159037429839373,
0.01641165278851986,
-0.03093191236257553,
0.032663509249687195,
-0.008020495995879173,
0.010004555806517601,
0.016724562272429466,
-0.016220731660723686,
0.0458470918238163,
-0.02054426819086075,
0.02048368938267231,
0.006141429767012596,
0.015955163165926933,
0.003770972602069378,
-0.012003427371382713,
-0.009490051306784153,
0.03972478210926056,
0.02819916047155857,
-0.1517338901758194,
0.00977907981723547,
-7.052017627929405e-33,
0.0016272973734885454,
-0.04476790875196457,
0.0001722075539873913,
-0.0003682059468701482,
-0.016700059175491333,
0.015667680650949478,
0.011581536382436752,
0.0021575994323939085,
-0.005632573273032904,
-0.024074770510196686,
-0.007402594201266766,
0.028767643496394157,
-0.03882310166954994,
-0.012024476192891598,
0.04510998725891113,
-0.013179292902350426,
-0.031107604503631592,
0.049388986080884933,
0.0012860720744356513,
0.03087434731423855,
0.02444041334092617,
0.022908689454197884,
0.0401029996573925,
-0.001652587903663516,
0.0021587922237813473,
0.06320058554410934,
-0.017669763416051865,
-0.022531714290380478,
-0.013958827592432499,
-0.035882093012332916,
-0.023442555218935013,
0.01065668836236,
-0.01828889735043049,
-0.006941548548638821,
0.02090667374432087,
-0.030207302421331406,
-0.02975301817059517,
-0.012306327931582928,
-0.05131404474377632,
-0.01957259699702263,
-0.013046416454017162,
-0.014475487172603607,
-0.03776918724179268,
-0.019904471933841705,
-0.024129949510097504,
-0.007231563329696655,
-0.007557027507573366,
0.001229343470185995,
0.0071744187735021114,
-0.004710604902356863,
0.030638983473181725,
-0.0024242810904979706,
0.03020106814801693,
-0.043203797191381454,
0.026516903191804886,
0.009874866344034672,
-0.04413870349526405,
0.010078447870910168,
0.010805114172399044,
-0.025025833398103714,
0.059034816920757294,
0.010854778811335564,
0.02614835649728775,
0.0034016594290733337,
-0.03192738816142082,
0.016584426164627075,
0.026212699711322784,
-0.00046493668924085796,
0.011765540577471256,
-0.005223548039793968,
-0.0076944404281675816,
0.01508654560893774,
-0.0006391478818841279,
-0.016116546466946602,
0.011572541669011116,
0.019544921815395355,
0.03278493136167526,
0.017597541213035583,
0.02143377996981144,
0.00658862479031086,
0.05041433498263359,
0.002596728503704071,
-0.008398227393627167,
-0.05139443650841713,
-0.032799120992422104,
0.03545721247792244,
0.01997673697769642,
0.005169394426047802,
0.011542590335011482,
0.022300902754068375,
0.0019043699139729142,
-0.0060733831487596035,
-0.045751359313726425,
-0.007266520522534847,
-0.016815170645713806,
6.929217406518847e-33,
-0.023408731445670128,
-0.010295139625668526,
-0.010390120558440685,
-0.010321476496756077,
0.05594221502542496,
-0.01725141517817974,
0.02563450299203396,
0.014677069149911404,
-0.031831491738557816,
0.03500574827194214,
-0.0346238911151886,
-0.03200578689575195,
-0.03934154286980629,
-0.013178023509681225,
0.045662831515073776,
-0.016921112313866615,
0.011922222562134266,
-0.009774242527782917,
-0.010140749625861645,
-0.018391594290733337,
-0.024842841550707817,
0.011876549571752548,
0.031399715691804886,
0.04206312447786331,
-0.0000064269479480572045,
0.05262364074587822,
0.010786140337586403,
-0.012206674553453922,
-0.0010475501185283065,
0.03134835883975029,
0.014837606810033321,
-0.027976375073194504,
0.0064294952899217606,
0.008712477050721645,
0.004246728494763374,
0.025291956961154938,
-0.002993640722706914,
-0.024518409743905067,
0.009673317894339561,
0.02153361774981022,
0.024208685383200645,
0.01611688919365406,
0.004896185360848904,
-0.017026066780090332,
0.02639305591583252,
0.03204505145549774,
-0.025710033252835274,
0.0015939677832648158,
0.007922724820673466,
0.030386576429009438,
-0.009544133208692074,
0.02071549743413925,
-0.006047093775123358,
-0.0019518811022862792,
0.0027427864260971546,
-0.016061406582593918,
-0.020571203902363777,
0.034632742404937744,
-0.02143508940935135,
-0.00038952575414441526,
-0.04469279944896698,
-0.0017649909714236856,
-0.04773157089948654,
0.019504565745592117,
-0.03128334879875183,
0.005577151197940111,
-0.05843130126595497,
-0.027427323162555695,
-0.010765448212623596,
0.03356778249144554,
-0.008784371428191662,
-0.03246516361832619,
0.02508063055574894,
0.024421732872724533,
0.005485120229423046,
0.019635062664747238,
0.007406674791127443,
0.044060252606868744,
-0.005303225014358759,
0.031157126650214195,
0.011689454317092896,
0.010778493247926235,
0.012350744567811489,
-0.0017514340579509735,
-0.0019941485952585936,
0.03407210856676102,
-0.03826984763145447,
-0.016570931300520897,
-0.00473066046833992,
-0.013287948444485664,
0.05633128806948662,
-0.010371057316660881,
0.01984742470085621,
0.000053051426220918074,
0.015650250017642975,
-1.2824147077594716e-8,
-0.021427273750305176,
-0.006827260833233595,
-0.0063097537495195866,
0.03033442050218582,
0.03359060734510422,
0.020228467881679535,
0.009368243627250195,
-0.008831752464175224,
0.01057850569486618,
0.008717203512787819,
0.064188651740551,
-0.04541786015033722,
0.006295598112046719,
-0.009696212597191334,
-0.0034148229751735926,
-0.019607005640864372,
0.009405290707945824,
-0.012180990539491177,
0.01606573536992073,
0.013693351298570633,
0.02068587765097618,
0.01722732000052929,
-0.020120782777667046,
0.02426741272211075,
-0.004779160022735596,
-0.0011102647986263037,
-0.011357036419212818,
-0.08966614305973053,
-0.025189289823174477,
-0.0605422779917717,
0.014068027026951313,
-0.04038979858160019,
-0.019804921001195908,
0.00828807707875967,
0.011322936043143272,
0.001029015053063631,
0.01894858479499817,
-0.024990690872073174,
-0.010176376439630985,
0.024807332083582878,
0.004870926029980183,
0.003547221189364791,
-0.01497194916009903,
-0.047233711928129196,
-0.019374461844563484,
0.014570511877536774,
-0.020360276103019714,
0.016256703063845634,
-0.023678142577409744,
-0.0056792618706822395,
-0.0019725575111806393,
0.007088127546012402,
0.032608311623334885,
0.018854325637221336,
0.02258945256471634,
0.00012037144915666431,
0.034582432359457016,
0.01563076302409172,
-0.025651223957538605,
-0.002709281863644719,
0.040049854665994644,
0.00263054296374321,
-0.01576226018369198,
0.008152586407959461
] | pythonpdfquery-scraping-the-fifa-world-player-of-the-year-votes-pdf-into-shape | https://markhneedham.com/blog/2015/01/22/pythonpdfquery-scraping-the-fifa-world-player-of-the-year-votes-pdf-into-shape |
false | 2015-01-25 12:47:01 | Python: Find the highest value in a group | [
"python",
"pandas"
] | [
"Python"
] | In my continued playing around with a How I met your mother data set I needed to find out the last episode that happened in a season so that I could use it in a chart I wanted to plot.
I had this CSV file containing each of the episodes:
[source,bash]
----
$ head -n 10 data/import/episodes.csv
NumberOverall,NumberInSeason,Episode,Season,DateAired,Timestamp
1,1,/wiki/Pilot,1,"September 19, 2005",1127084400
2,2,/wiki/Purple_Giraffe,1,"September 26, 2005",1127689200
3,3,/wiki/Sweet_Taste_of_Liberty,1,"October 3, 2005",1128294000
4,4,/wiki/Return_of_the_Shirt,1,"October 10, 2005",1128898800
5,5,/wiki/Okay_Awesome,1,"October 17, 2005",1129503600
6,6,/wiki/Slutty_Pumpkin,1,"October 24, 2005",1130108400
7,7,/wiki/Matchmaker,1,"November 7, 2005",1131321600
8,8,/wiki/The_Duel,1,"November 14, 2005",1131926400
9,9,/wiki/Belly_Full_of_Turkey,1,"November 21, 2005",1132531200
----
I started out by parsing the CSV file into a dictionary of (seasons \-> episode ids):
[source,python]
----
import csv
from collections import defaultdict
seasons = defaultdict(list)
with open("data/import/episodes.csv", "r") as episodesfile:
reader = csv.reader(episodesfile, delimiter = ",")
reader.next()
for row in reader:
seasons[int(row[3])].append(int(row[0]))
print seasons
----
which outputs the following:
[source,bash]
----
$ python blog.py
defaultdict(<type 'list'>, {
1: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22],
2: [23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44],
3: [45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64],
4: [65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88],
5: [89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112],
6: [113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136],
7: [137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160],
8: [161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184],
9: [185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208]})
----
It's reasonably easy to transform that into a dictionary of (season \-> max episode id) with the following couple of lines:
[source,python]
----
for season, episode_ids in seasons.iteritems():
seasons[season] = max(episode_ids)
>>> print seasons
defaultdict(<type 'list'>, {1: 22, 2: 44, 3: 64, 4: 88, 5: 112, 6: 136, 7: 160, 8: 184, 9: 208})
----
This works fine but it felt very much like a https://github.com/hadley/dplyr[dplyr] problem to me so I wanted to see whether I could write something cleaner using http://pandas.pydata.org/[pandas].
I started out by capturing the seasons and episode ids in separate lists and then building up a DataFrame:
[source,python]
----
import pandas as pd
from pandas import DataFrame
seasons, episode_ids = [], []
with open("data/import/episodes.csv", "r") as episodesfile:
reader = csv.reader(episodesfile, delimiter = ",")
reader.next()
for row in reader:
seasons.append(int(row[3]))
episode_ids.append(int(row[0]))
df = DataFrame.from_items([('Season', seasons), ('EpisodeId', episode_ids)])
>>> print df.groupby("Season").max()["EpisodeId"]
Season
1 22
2 44
3 64
4 88
5 112
6 136
7 160
8 184
9 208
----
Or we can simplify that and read the CSV file directly into a DataFrame:
[source,python]
----
df = pd.read_csv('data/import/episodes.csv', index_col=False, header=0)
>>> print df.groupby("Season").max()["NumberOverall"]
Season
1 22
2 44
3 64
4 88
5 112
6 136
7 160
8 184
9 208
----
Pretty neat. I need to get more into pandas. | null | null | [
-0.022416938096284866,
-0.01929640956223011,
-0.026926197111606598,
0.03655838966369629,
0.0846116915345192,
-0.003976283594965935,
0.005895460024476051,
0.04447529464960098,
0.005193918943405151,
0.009373839013278484,
0.01647154986858368,
-0.01883057877421379,
-0.03953520581126213,
0.026190971955657005,
-0.03341061249375343,
0.07739769667387009,
0.05188874527812004,
0.0026558784302324057,
0.01770620420575142,
-0.0002479292743373662,
0.008805160410702229,
0.02626611292362213,
-0.007657563779503107,
0.02549339458346367,
-0.008962010033428669,
-0.026447469368577003,
-0.018152613192796707,
0.0009551339317113161,
-0.03637949749827385,
0.021883592009544373,
0.030108705163002014,
-0.04270116239786148,
0.013676246628165245,
-0.0028203269466757774,
0.013622893020510674,
-0.019446004182100296,
-0.04369695112109184,
0.014886601828038692,
-0.002062343992292881,
-0.024851087480783463,
-0.05897834897041321,
-0.0010537751950323582,
-0.033630333840847015,
-0.029501136392354965,
-0.043900057673454285,
-0.01485112402588129,
-0.008836538530886173,
0.04965351149439812,
-0.005641059949994087,
0.005431115627288818,
-0.027653388679027557,
0.0499265119433403,
0.006105645094066858,
-0.0426807664334774,
-0.011166605167090893,
0.0671936646103859,
0.032434094697237015,
-0.08653098344802856,
0.013271700590848923,
0.009622590616345406,
-0.007623089011758566,
-0.026280920952558517,
0.007735651917755604,
0.003300254000350833,
0.011903766542673111,
-0.05347423627972603,
-0.029220880940556526,
0.08055850118398666,
-0.027446432039141655,
-0.035488687455654144,
-0.043843213468790054,
0.0171259306371212,
-0.01685277372598648,
-0.03384113684296608,
0.018821226432919502,
-0.040712472051382065,
-0.0012661486398428679,
0.042852599173784256,
-0.0009647990809753537,
0.021522333845496178,
-0.05158548429608345,
0.03665630519390106,
-0.0057413759641349316,
0.005901109892874956,
-0.018881559371948242,
-0.04792067036032677,
-0.06521158665418625,
-0.02876114659011364,
-0.06436915695667267,
0.04462587833404541,
-0.013354083523154259,
-0.05218850448727608,
0.00802818313241005,
0.005544712301343679,
-0.016687382012605667,
-0.01942589320242405,
-0.007410550490021706,
0.011290906928479671,
0.009720365516841412,
-0.0018759930972009897,
-0.07819024473428726,
-0.022290518507361412,
0.04619794338941574,
0.025554243475198746,
-0.06435659527778625,
-0.01869293488562107,
0.001847515464760363,
-0.005015311762690544,
-0.009409315884113312,
0.010549802333116531,
-0.009320486336946487,
-0.016709795221686363,
-0.02474343404173851,
0.008996979333460331,
-0.08667697012424469,
0.07045228034257889,
0.0412558875977993,
-0.05107336863875389,
-0.006207921542227268,
0.024135693907737732,
0.020908810198307037,
-0.009156488813459873,
-0.003819696605205536,
0.08054684847593307,
0.0071913860738277435,
0.017868418246507645,
0.003748203394934535,
0.06241123378276825,
-0.015431693755090237,
-0.05067792907357216,
-0.046511534601449966,
0.04408135265111923,
-0.022269096225500107,
0.018831957131624222,
-0.0002622567699290812,
-0.03035028651356697,
-0.023826759308576584,
0.004099871031939983,
0.03419141471385956,
0.05102710798382759,
0.004507496953010559,
-0.0186301339417696,
-0.014804397709667683,
-0.003543631639331579,
0.016393842175602913,
0.005908280145376921,
-0.012200727127492428,
-0.02672494202852249,
-0.03128710761666298,
0.020000124350190163,
0.02037397213280201,
0.010204087011516094,
0.08185321092605591,
-0.002256188075989485,
0.01344852615147829,
0.08280830830335617,
-0.007191060576587915,
0.06785020977258682,
-0.019456226378679276,
-0.0184375811368227,
0.0665627047419548,
0.03822964429855347,
0.025428365916013718,
0.0234613586217165,
-0.0033316537737846375,
-0.02382233925163746,
0.0005603827303275466,
0.06330113112926483,
-0.018732715398073196,
0.014094064943492413,
-0.05098813399672508,
-0.028189731761813164,
0.07992547750473022,
-0.01226555835455656,
0.00626034289598465,
0.04025045037269592,
0.07825290411710739,
0.055081550031900406,
0.03484050929546356,
0.006090331356972456,
-0.07343626767396927,
0.05030383542180061,
0.0032759741879999638,
0.005075325258076191,
0.031129179522395134,
0.002411656081676483,
0.06761176139116287,
0.011603886261582375,
0.023351449519395828,
0.024056432768702507,
-0.055259790271520615,
-0.06741984933614731,
-0.05300343781709671,
0.007240764796733856,
0.036757659167051315,
-0.04225396737456322,
0.00004250473648426123,
0.07621245086193085,
0.019652217626571655,
0.01671469397842884,
-0.0312797911465168,
0.018233206123113632,
0.05134062096476555,
-0.030549826100468636,
-0.04229462146759033,
0.0347280390560627,
0.011035935953259468,
-0.021604252979159355,
0.02410573698580265,
0.010735182091593742,
-0.0405242033302784,
0.03000999428331852,
0.07704488188028336,
-0.03138667345046997,
0.05890786647796631,
0.025909090414643288,
0.05715525895357132,
-0.03418499231338501,
0.018630927428603172,
-0.08134725689888,
-0.009401402436196804,
-0.018949130550026894,
-0.02445407211780548,
-0.03518736734986305,
-0.016837580129504204,
0.12014391273260117,
0.05086376145482063,
-0.010908055119216442,
-0.03402281925082207,
0.027160566300153732,
-0.030207734555006027,
-0.013312993571162224,
-0.013153666630387306,
-0.019071338698267937,
-0.038968492299318314,
0.04368635639548302,
-0.03149896860122681,
-0.041319333016872406,
0.016947949305176735,
-0.03801489993929863,
0.008241920731961727,
0.048919934779405594,
0.0057295565493404865,
0.05426473170518875,
0.023809099569916725,
-0.02580396458506584,
-0.010163405910134315,
-0.025523727759718895,
-0.04759693518280983,
-0.007926203310489655,
0.021639831364154816,
-0.0160652045160532,
0.03633889555931091,
-0.025976575911045074,
-0.04804353043437004,
0.013302232138812542,
-0.056817427277565,
0.024051900953054428,
0.07778096199035645,
0.0562443733215332,
-0.007614981383085251,
0.037660785019397736,
-0.003174033248797059,
-0.01754032075405121,
-0.004417484160512686,
-0.04558293893933296,
-0.04032951220870018,
-0.04208265617489815,
-0.012941882014274597,
-0.009062263183295727,
0.028971107676625252,
-0.010128925554454327,
0.009161005727946758,
0.026253139600157738,
0.03078492544591427,
0.007498691324144602,
0.06469430774450302,
-0.0200202614068985,
0.006835112813860178,
-0.02702929452061653,
-0.017120562493801117,
0.02750786766409874,
-0.04437686502933502,
-0.03435259312391281,
0.021645642817020416,
-0.07080201059579849,
0.008269091136753559,
-0.022676104679703712,
-0.0062517221085727215,
-0.01430854108184576,
0.020207494497299194,
0.04108775407075882,
0.032321345061063766,
0.00444002915173769,
0.0451803095638752,
-0.0010100069921463728,
0.026919517666101456,
0.05203530192375183,
0.025698278099298477,
0.04226022586226463,
-0.000943591701798141,
-0.0006923061446286738,
0.07601073384284973,
-0.012133204378187656,
-0.02978043258190155,
-0.02252884954214096,
-0.011060632765293121,
-0.05478034168481827,
-0.25767531991004944,
0.0350564606487751,
-0.028198769316077232,
-0.03637195751070976,
0.0375799685716629,
-0.02561796084046364,
0.007812238298356533,
-0.043330345302820206,
-0.0026965495198965073,
0.017582006752490997,
0.0033529005013406277,
-0.04692941531538963,
-0.05469220504164696,
0.06464019417762756,
0.008629828691482544,
0.0019102338701486588,
-0.03691856563091278,
-0.03542046248912811,
0.019377199932932854,
0.03928285464644432,
0.027260268107056618,
-0.05202442780137062,
-0.016276618465781212,
0.05234283581376076,
0.020479056984186172,
0.08329600095748901,
-0.06852779537439346,
0.035491667687892914,
-0.05611984431743622,
-0.022811809554696083,
0.017381208017468452,
-0.06019940972328186,
0.0004018776526208967,
-0.014013166539371014,
0.0001099075234378688,
-0.038799405097961426,
0.040115926414728165,
-0.021722419187426567,
-0.005786124151200056,
0.003599487477913499,
-0.02313804253935814,
-0.03045869804918766,
-0.0025200219824910164,
-0.010380670428276062,
0.086514413356781,
0.005095041822642088,
-0.00636588828638196,
-0.031174037605524063,
-0.039497751742601395,
0.08075905591249466,
0.014521106146275997,
0.007857240736484528,
-0.005930718965828419,
0.012888621538877487,
-0.023065876215696335,
0.019678037613630295,
0.018589599058032036,
0.02233598567545414,
-0.04705643281340599,
-0.05194983631372452,
0.004326880443841219,
-0.03254665061831474,
0.018257902935147285,
-0.07100550830364227,
-0.025355232879519463,
-0.07356850802898407,
-0.034752532839775085,
0.009700565598905087,
0.05371139943599701,
0.048596277832984924,
-0.03704766184091568,
-0.018875278532505035,
0.012519771233201027,
-0.10172275453805923,
-0.012447638437151909,
-0.02586238831281662,
-0.006431098561733961,
0.0034259913954883814,
-0.012998276390135288,
0.026023149490356445,
-0.05127009004354477,
-0.024956440553069115,
0.05850090831518173,
0.002228510333225131,
-0.008397303521633148,
-0.031440433114767075,
-0.013742425478994846,
-0.026109497994184494,
-0.027722643688321114,
-0.03787092864513397,
0.03573203086853027,
-0.038564570248126984,
-0.010044156573712826,
0.025781383737921715,
-0.010064147412776947,
0.05610949546098709,
0.017631923779845238,
0.031571704894304276,
0.015690220519900322,
0.047719866037368774,
0.022793075069785118,
-0.04797594994306564,
-0.00332028791308403,
-0.03314293175935745,
-0.023181479424238205,
-0.032834701240062714,
-0.03205179050564766,
0.02153252251446247,
0.029597867280244827,
0.015944747254252434,
-0.0017497387016192079,
0.005857498850673437,
0.0037707053124904633,
-0.04706655070185661,
0.019704043865203857,
0.009629654698073864,
0.051749423146247864,
0.03312664479017258,
0.026149529963731766,
0.01641792617738247,
-0.07716990262269974,
-0.014828999526798725,
-0.02338237501680851,
-0.01838124357163906,
-0.04916753992438316,
-0.04330259561538696,
0.03306322172284126,
-0.0009254400501959026,
0.006099465768784285,
0.003620545379817486,
-0.05139705911278725,
0.004888160154223442,
0.03625975921750069,
-0.017132477834820747,
0.06378667801618576,
-0.01598765142261982,
-0.026101140305399895,
-0.027294963598251343,
-0.007720579393208027,
-0.005503066815435886,
0.001373935490846634,
-0.03217415139079094,
-0.008901197463274002,
0.021192330867052078,
0.03170021250844002,
-0.02144797146320343,
0.029350364580750465,
-0.013750378973782063,
0.015772489830851555,
0.0050137899816036224,
-0.008003984577953815,
0.012652476318180561,
0.013928142376244068,
-0.001933370134793222,
-0.016807520762085915,
0.009919056668877602,
0.024997370317578316,
-0.0027942094020545483,
-0.029073622077703476,
-0.04781830683350563,
0.0477888286113739,
-0.04842633381485939,
-0.019546354189515114,
-0.02290126122534275,
-0.01865672506392002,
0.04694078862667084,
0.016382379457354546,
0.024667594581842422,
0.026439430192112923,
0.017327288165688515,
-0.010195944458246231,
0.025010187178850174,
-0.02605782076716423,
0.017854321748018265,
-0.02034987509250641,
-0.0459773875772953,
0.053257424384355545,
0.006785182282328606,
0.027821673080325127,
0.03531122952699661,
-0.030001340433955193,
-0.045668888837099075,
-0.012366595678031445,
0.02233240380883217,
0.03151446208357811,
0.06258603930473328,
-0.031069351360201836,
-0.0010549889411777258,
-0.025950660929083824,
-0.02603420428931713,
-0.004742668475955725,
-0.009933700785040855,
-0.04567253962159157,
-0.019342726096510887,
-0.05428097024559975,
-0.05654001981019974,
-0.012739043682813644,
0.021811412647366524,
0.00827387161552906,
0.003494302276521921,
-0.027535472065210342,
0.014024811796844006,
-0.03827555850148201,
0.007220999337732792,
0.06950356066226959,
-0.05916299670934677,
0.025760672986507416,
-0.02334645576775074,
0.03121952712535858,
0.008223055861890316,
0.0395074300467968,
-0.06547591835260391,
-0.029323289170861244,
-0.025138305500149727,
0.03101283125579357,
-0.04112792760133743,
-0.026208801195025444,
-0.0362783744931221,
0.044996026903390884,
-0.03213062882423401,
0.0018488552886992693,
-0.03790690749883652,
0.016190288588404655,
-0.022782625630497932,
-0.005666809156537056,
0.019921140745282173,
-0.01740964502096176,
-0.034991245716810226,
0.02003537490963936,
-0.009397988207638264,
0.029293468222022057,
-0.028360310941934586,
0.041760653257369995,
0.029768893495202065,
-0.035756759345531464,
-0.05172725394368172,
-0.030701972544193268,
0.001954684965312481,
-0.017776506021618843,
0.07989860326051712,
0.033747971057891846,
-0.01595662720501423,
-0.02511776052415371,
0.010703313164412975,
0.012350596487522125,
0.010046861134469509,
0.03022082708775997,
-0.036663733422756195,
0.026961881667375565,
0.06276284158229828,
0.001695251907221973,
-0.01220349408686161,
-0.019894327968358994,
-0.03778696060180664,
0.05576540529727936,
-0.05055004730820656,
-0.028962383046746254,
0.003908542450517416,
-0.03959078714251518,
0.017899470403790474,
0.0012033726088702679,
0.04179903864860535,
-0.05887109413743019,
0.049058735370635986,
0.027649924159049988,
0.03807525336742401,
0.04063981771469116,
0.03452913835644722,
0.03920154646039009,
0.006217879708856344,
0.021538754925131798,
-0.09988601505756378,
0.007855626754462719,
0.03989074379205704,
0.0015826484886929393,
0.006474887952208519,
0.025861229747533798,
-0.02127065882086754,
0.03261833265423775,
-0.06743445247411728,
-0.03841257095336914,
0.041993312537670135,
-0.04708553105592728,
0.038855161517858505,
0.018269868567585945,
-0.040703728795051575,
0.0102371321991086,
0.054698146879673004,
-0.05200113728642464,
0.009294028393924236,
-0.005805941764265299,
0.07597849518060684,
0.014793711714446545,
0.016561945900321007,
0.020403055474162102,
-0.04996807128190994,
0.06753836572170258,
0.03284713625907898,
0.05901307240128517,
0.04802358150482178,
-0.03648264333605766,
0.01134003046900034,
0.0123625248670578,
-0.014251083135604858,
0.0026023222599178553,
0.026744961738586426,
0.00033287936821579933,
-0.0298418328166008,
0.015471058897674084,
0.013160834088921547,
0.008268673904240131,
-0.05600093677639961,
0.10671362280845642,
0.013104482553899288,
-0.018670862540602684,
-0.04066072031855583,
0.01726546511054039,
-0.014568604528903961,
0.018870366737246513,
0.00885852798819542,
-0.007142646703869104,
-0.033664315938949585,
0.05556892231106758,
-0.038511257618665695,
0.002173339482396841,
0.05587412416934967,
-0.030457157641649246,
0.011269727721810341,
0.018022174015641212,
0.06420649588108063,
0.08272740244865417,
0.049075789749622345,
0.009984049946069717,
0.056614950299263,
-0.02752844989299774,
-0.04745859652757645,
-0.018225161358714104,
-0.005170135758817196,
0.036236584186553955,
0.008650645613670349,
-0.009235817939043045,
0.05747435614466667,
-0.008259080350399017,
0.06176803261041641,
-0.014437025412917137,
-0.02491752803325653,
-0.011881540529429913,
0.006325246766209602,
0.04769580811262131,
-0.020707542076706886,
-0.007296149618923664,
0.041754819452762604,
0.019061218947172165,
-0.03093641623854637,
0.06638644635677338,
0.02969655767083168,
-0.03311050310730934,
0.039651304483413696,
-0.02580549381673336,
0.02986741065979004,
0.01131475530564785,
0.02742026001214981,
0.03690090402960777,
0.0017669813241809607,
-0.014158555306494236,
0.016461875289678574,
0.03753680735826492,
-0.001065047224983573,
0.021719852462410927,
-0.04078197851777077,
-0.014973054639995098,
-0.007885497063398361,
-0.04147695377469063,
-0.03796188905835152,
-0.038671739399433136,
-0.009260266087949276,
0.011258148588240147,
0.0005250382819212973,
-0.007869561202824116,
0.04603642597794533,
0.016630014404654503,
-0.07752041518688202,
-0.029533972963690758,
-0.05919896811246872,
-0.07250380516052246,
-0.05575680360198021,
0.0017903211992233992,
0.009129686281085014,
0.00908354576677084,
-0.010524225421249866,
-0.007329356390982866,
-0.028177563101053238,
0.0010137284407392144,
-0.02087608352303505,
-0.021161142736673355,
-0.020550841465592384,
0.012633837759494781,
0.03195733577013016,
0.028531765565276146,
-0.02275768853724003,
0.028701692819595337,
-0.005234166979789734,
-0.041518934071063995,
-0.002667191904038191,
0.016601625829935074,
0.0585186742246151,
0.02611791342496872,
0.018263699486851692,
-0.07097221165895462,
0.009687422774732113,
0.011125967837870121,
-0.029697543010115623,
-0.07547643780708313,
0.01184872817248106,
0.03587556630373001,
-0.0014864940894767642,
0.026801181957125664,
0.0001788873050827533,
-0.00008457563671981916,
-0.046829961240291595,
-0.012226518243551254,
-0.010551000013947487,
0.00044688215712085366,
0.0694284662604332,
-0.06336425989866257,
0.07098656892776489,
0.013255943544209003,
-0.005658440757542849,
-0.04506567865610123,
-0.010941838845610619,
-0.03073684684932232,
0.04053626209497452,
-0.05232339724898338,
-0.015182548202574253,
-0.02617642655968666,
-0.07251906394958496,
-0.016479430720210075,
0.008906028233468533,
-0.04087651148438454,
-0.016276728361845016,
0.0026465384289622307,
-0.011589406058192253,
-0.06346911191940308,
0.010811748914420605,
-0.04030604287981987,
0.015159457921981812,
-0.014899255707859993,
-0.019082417711615562,
-0.01498210895806551,
0.030193690210580826,
-0.011227071285247803,
0.01711709052324295,
-0.012945534661412239,
-0.026247283443808556,
0.0008804738754406571,
-0.026903390884399414,
0.015070066787302494,
0.028835207223892212,
-0.000996707589365542,
0.030661897733807564
] | [
-0.06607957184314728,
0.0046845776960253716,
-0.006627504248172045,
-0.03483467176556587,
0.08486960083246231,
-0.03188576176762581,
-0.024411430582404137,
0.01907506212592125,
0.03168109804391861,
0.024093005806207657,
0.0074285767041146755,
-0.02217431552708149,
0.007931415922939777,
0.0012593086576089263,
0.03277139365673065,
-0.013541205786168575,
-0.0036621778272092342,
-0.04606432467699051,
-0.04103881120681763,
0.05314558744430542,
-0.0060743712820112705,
-0.02660287730395794,
-0.053177159279584885,
-0.0422736331820488,
0.02318410389125347,
0.04966247081756592,
0.03711050748825073,
-0.04309886321425438,
-0.05379577353596687,
-0.20641450583934784,
-0.02416699379682541,
-0.018029209226369858,
0.06321416795253754,
0.00662513030692935,
0.02169130928814411,
-0.0038953220937401056,
0.023996561765670776,
0.007889118045568466,
-0.011543487198650837,
0.04313306882977486,
0.028958870097994804,
0.00670635187998414,
-0.04000842571258545,
-0.06583788990974426,
-0.020678333938121796,
-0.010163107886910439,
-0.007173442747443914,
0.01537392195314169,
0.06408676505088806,
0.050966884940862656,
-0.06888602674007416,
0.006372928153723478,
-0.03309588506817818,
0.00014586442557629198,
-0.001072809100151062,
0.006730387918651104,
0.0282775666564703,
0.022649718448519707,
0.013307622633874416,
0.040122441947460175,
0.011407039128243923,
0.015218880958855152,
-0.1356605738401413,
0.09859519451856613,
0.010458877310156822,
0.05529690906405449,
-0.044146254658699036,
-0.014730767346918583,
-0.01916467770934105,
0.08012013882398605,
-0.061692945659160614,
-0.023039771243929863,
-0.017034942284226418,
0.05544697120785713,
0.01776932366192341,
-0.004679983481764793,
0.002923049731180072,
0.0167484562844038,
-0.002885696478188038,
-0.05004691705107689,
-0.07361653447151184,
0.00765199726447463,
-0.01424640603363514,
-0.01488539483398199,
0.007136444561183453,
0.005808469373732805,
-0.031496092677116394,
0.006786941550672054,
0.0025015913415700197,
0.013883454725146294,
0.050087820738554,
0.012596923857927322,
0.03778676688671112,
0.02112417295575142,
-0.1133957952260971,
-0.05369879677891731,
0.0031900566536933184,
0.0019669667817652225,
-0.004965988453477621,
0.392100989818573,
-0.04205141216516495,
-0.05320299416780472,
0.06460454314947128,
0.04792546108365059,
-0.016447188332676888,
-0.0012493269750848413,
0.036512140184640884,
-0.04786650836467743,
0.016193635761737823,
-0.03801121190190315,
-0.010992009192705154,
-0.031093688681721687,
0.07896938174962997,
-0.08676175028085709,
0.04064253717660904,
0.04099293425679207,
0.014712704345583916,
0.030019644647836685,
0.01591634936630726,
0.011063886806368828,
0.0368296317756176,
0.010745189152657986,
0.024898210540413857,
-0.014411834999918938,
0.007173651829361916,
-0.018667330965399742,
0.09903541207313538,
0.05136585608124733,
0.029347293078899384,
-0.03321123123168945,
0.045647501945495605,
-0.032435644418001175,
-0.0777423307299614,
0.03099748305976391,
0.004751173779368401,
-0.01660940609872341,
0.030766095966100693,
-0.03665047138929367,
0.004594013560563326,
-0.026426618918776512,
-0.009397542104125023,
-0.09821885079145432,
0.009135229513049126,
0.02126482129096985,
-0.047993261367082596,
0.10876346379518509,
0.03718318045139313,
-0.022620677947998047,
-0.0360068678855896,
-0.018954984843730927,
-0.008417058736085892,
0.009140662848949432,
0.02922387421131134,
-0.052422087639570236,
0.01862994022667408,
0.025850027799606323,
0.10535014420747757,
-0.026988962665200233,
-0.08815636485815048,
-0.02040690928697586,
-0.02833300083875656,
-0.04853082820773125,
-0.015043804422020912,
0.0017083692364394665,
0.07338327914476395,
-0.07220227271318436,
-0.015042873099446297,
0.033934012055397034,
0.02762041613459587,
-0.04849791154265404,
0.02662026882171631,
0.007498994469642639,
-0.04578731581568718,
0.0018437476828694344,
0.057553745806217194,
-0.016569500789046288,
-0.0389690138399601,
0.02424462139606476,
0.0694364532828331,
-0.0014748484827578068,
-0.021120622754096985,
-0.00930295791476965,
-0.022360872477293015,
0.06103098392486572,
-0.06904157251119614,
-0.08128952234983444,
-0.056721556931734085,
0.024070754647254944,
-0.012183750048279762,
-0.029633628204464912,
0.05430636927485466,
-0.05495581403374672,
-0.03134859725832939,
0.06291045248508453,
-0.008443943224847317,
-0.033685509115457535,
0.032985150814056396,
0.016525357961654663,
-0.012620305642485619,
-0.066490538418293,
-0.03857141733169556,
-0.058325450867414474,
-0.0081812534481287,
0.0020571723580360413,
-0.05507442355155945,
0.02745390124619007,
0.033219221979379654,
-0.04709421098232269,
0.09014111012220383,
0.011507910676300526,
-0.0037970207631587982,
-0.014300419017672539,
-0.03291500359773636,
-0.012988422065973282,
-0.010615352541208267,
-0.020312361419200897,
-0.007476914208382368,
-0.02065856009721756,
0.023731108754873276,
0.028937995433807373,
0.008319918997585773,
-0.06141803413629532,
-0.005581190809607506,
-0.34217366576194763,
-0.028106603771448135,
0.006657634396106005,
-0.01900855265557766,
-0.010533866472542286,
-0.0580025389790535,
0.015366305597126484,
-0.017067786306142807,
0.027348240837454796,
0.058496639132499695,
0.06589402258396149,
-0.04164108261466026,
-0.006334706675261259,
-0.1184772253036499,
0.008667330257594585,
0.013789540156722069,
-0.02644522860646248,
0.0050629847683012486,
-0.002948673442006111,
0.06215992942452431,
0.023494400084018707,
-0.038908038288354874,
-0.011683004908263683,
-0.058510586619377136,
-0.013625090941786766,
-0.04684683680534363,
0.13517829775810242,
0.04998277500271797,
0.0464562326669693,
-0.06893371045589447,
0.04255134239792824,
0.01865634135901928,
0.008314370177686214,
-0.0381433330476284,
-0.009768089279532433,
-0.023584121838212013,
-0.008360950276255608,
0.016997840255498886,
-0.03092583455145359,
-0.051673319190740585,
-0.09174606949090958,
0.032164011150598526,
-0.031475331634283066,
0.004524697549641132,
-0.026196718215942383,
0.0050277020782232285,
0.004293713718652725,
-0.02847038023173809,
0.011362243443727493,
0.07361861318349838,
0.0036848888266831636,
-0.0163511261343956,
0.01674545928835869,
0.013168291188776493,
0.0024216657038778067,
-0.04195166751742363,
-0.05462431162595749,
0.023415738716721535,
0.004493711516261101,
-0.01662362925708294,
0.023231960833072662,
0.035484783351421356,
0.027638433501124382,
-0.06041531637310982,
-0.02882712334394455,
0.0287936981767416,
0.0038344862405210733,
0.008085106499493122,
0.0010119127109646797,
0.010072926990687847,
-0.06228635087609291,
0.04127076268196106,
-0.007167798466980457,
0.005994333885610104,
0.018716882914304733,
0.0669909343123436,
0.02153894118964672,
0.035789746791124344,
0.014585738070309162,
-0.018428664654493332,
0.0460122711956501,
-0.037442971020936966,
0.012188886292278767,
-0.025106534361839294,
0.03387109935283661,
0.04162488877773285,
0.008736995048820972,
-0.01925971545279026,
0.06971833854913712,
0.010762857273221016,
0.0070572905242443085,
0.021892288699746132,
-0.017574546858668327,
-0.02849855273962021,
0.04381037876009941,
0.0017572385258972645,
-0.26444950699806213,
0.04711867496371269,
0.035831499844789505,
0.06683633476495743,
0.017062893137335777,
0.0029626511968672276,
-0.009760681539773941,
-0.0018994435667991638,
0.022579530254006386,
0.0020831532310694456,
0.04572393745183945,
0.01087130606174469,
0.022576259449124336,
-0.018556654453277588,
-0.0006216971669346094,
0.0039546606130898,
0.05679019168019295,
0.03842443600296974,
0.045605286955833435,
0.034188322722911835,
0.0063417404890060425,
-0.020524853840470314,
0.1396111398935318,
0.056677911430597305,
-0.012764095328748226,
0.012133714742958546,
-0.000512119207996875,
0.0009964245837181807,
0.05260109901428223,
0.04067176580429077,
-0.013470386154949665,
-0.015571408905088902,
0.01694917492568493,
0.03796764463186264,
0.027576055377721786,
-0.04036064073443413,
-0.02454509772360325,
0.09771431982517242,
0.022319713607430458,
-0.017298050224781036,
-0.02234218269586563,
0.03371131792664528,
-0.05604662001132965,
0.02031921222805977,
0.05458172410726547,
0.01586192287504673,
-0.006801616866141558,
-0.01461020577698946,
-0.07233566045761108,
0.0012130348477512598,
-0.02562439627945423,
-0.030851861461997032,
-0.01420395728200674,
0.0070604970678687096,
0.00654484611004591,
0.09035337716341019,
0.04072942957282066,
0.030643006786704063,
0.046650826930999756,
-0.019520629197359085,
-0.046624209731817245,
-0.0654091089963913,
0.09786046296358109,
0.013439998961985111,
0.015321875922381878
] | [
0.012394104152917862,
0.020732538774609566,
0.0004260056302882731,
0.02708732895553112,
0.005990630015730858,
0.02546561509370804,
0.01044264156371355,
0.015334038063883781,
0.004562167916446924,
0.002025268506258726,
-0.013602067716419697,
0.0022060589399188757,
0.011920533142983913,
-0.048044897615909576,
-0.014907313510775566,
-0.040669865906238556,
-0.011040359735488892,
-0.031173737719655037,
0.04153835400938988,
0.02307107113301754,
-0.0019058636389672756,
0.03161490336060524,
0.012051951140165329,
0.021622994914650917,
-0.019280681386590004,
0.015420730225741863,
-0.0441482849419117,
0.014861837029457092,
0.007511429488658905,
-0.0931229218840599,
-0.041878633201122284,
0.0029938342049717903,
0.014973381534218788,
0.032195109874010086,
-0.020695827901363373,
-0.014647269621491432,
-0.023059362545609474,
-0.0009890934452414513,
-0.017735030502080917,
0.06482373178005219,
-0.01401127502322197,
-0.00025148483109660447,
-0.009121082723140717,
-0.007228250149637461,
-0.02131335809826851,
-0.02234709821641445,
-0.021643294021487236,
-0.010588143020868301,
-0.011222788132727146,
0.01656794734299183,
-0.05596265569329262,
0.04924531280994415,
-0.023376908153295517,
0.003292879555374384,
0.0012232306180521846,
-0.020465385168790817,
-0.004225883167237043,
-0.0300535149872303,
-0.0000010414780717837857,
-0.05997422710061073,
0.005551101174205542,
-0.013184627518057823,
-0.040344614535570145,
-0.014894858002662659,
-0.006683093495666981,
-0.06222806125879288,
-0.03501453995704651,
0.0266452357172966,
0.007048978470265865,
-0.009777764789760113,
-0.01717069372534752,
0.026886485517024994,
-0.03339631110429764,
-0.029947228729724884,
-0.03794235363602638,
-0.006556231062859297,
0.016712650656700134,
-0.08156467229127884,
-0.007469845004379749,
0.0030912316869944334,
-0.07645352929830551,
0.009612499736249447,
0.030615458264946938,
0.008400789462029934,
-0.027049051597714424,
-0.042100515216588974,
0.010668596252799034,
0.01309119164943695,
-0.003958116285502911,
0.026417449116706848,
-0.02214173786342144,
-0.015465941280126572,
0.028361137956380844,
0.000988301238976419,
-0.06208040937781334,
0.0613568052649498,
0.008793649263679981,
-0.022010818123817444,
0.011143005453050137,
0.8247098326683044,
0.0005442013498395681,
0.006679900921881199,
0.0010214713402092457,
0.0018469225615262985,
-0.006248360965400934,
-0.01031899731606245,
0.013640038669109344,
-0.04642326384782791,
0.022746650502085686,
-0.055374134331941605,
0.009104929864406586,
-0.011064177379012108,
0.006141160614788532,
0.009368822909891605,
0.038039952516555786,
0.043936144560575485,
0.007100554183125496,
0.031638253480196,
-0.003655856940895319,
0.012595507316291332,
0.057917796075344086,
-0.0021400926634669304,
0.0032267188653349876,
0.01372984517365694,
0.014391482807695866,
-0.15539754927158356,
0.03161347657442093,
-7.062367121004426e-33,
-0.02614966221153736,
-0.04074561595916748,
0.00400721188634634,
-0.015908433124423027,
0.0326252207159996,
0.0344674177467823,
-0.02144135907292366,
0.001215511467307806,
0.028540929779410362,
0.0011078128591179848,
0.016645850613713264,
0.0037095206789672375,
-0.01442357525229454,
-0.013419154100120068,
0.03265586122870445,
-0.00504710990935564,
-0.024955179542303085,
0.01595107465982437,
0.0033829552121460438,
0.010506035760045052,
0.057068053632974625,
0.0266418419778347,
0.0449335016310215,
0.011685878969728947,
-0.02805992029607296,
-0.005097153130918741,
-0.0017302969936281443,
0.0007251107017509639,
-0.007589376997202635,
-0.042877089232206345,
-0.020931154489517212,
0.018577512353658676,
0.0304563045501709,
-0.057960573583841324,
0.006493446882814169,
-0.0505046546459198,
-0.02327457256615162,
-0.02009553089737892,
0.000011692605767166242,
0.00804912019520998,
-0.03869756683707237,
0.0010228493483737111,
-0.0227035041898489,
-0.009060281328856945,
-0.026468878611922264,
0.016412438824772835,
0.006122136954218149,
0.04719511419534683,
-0.013336202129721642,
0.03588821738958359,
0.02065957896411419,
-0.009737811051309109,
0.03603636845946312,
-0.06547654420137405,
0.010569936595857143,
0.05581187829375267,
0.005453789606690407,
-0.0259232260286808,
0.01727837510406971,
-0.01343577541410923,
-0.007706080097705126,
-0.008208404295146465,
0.04181341826915741,
0.013980726711452007,
-0.009126502089202404,
0.009322524070739746,
0.07264046370983124,
0.03775911033153534,
0.008615967817604542,
0.004416714888066053,
-0.03942568972706795,
0.017396291717886925,
-0.01780414581298828,
-0.05249372497200966,
0.010530722327530384,
-0.01565464772284031,
0.0106973173096776,
-0.018503276631236076,
-0.0022926032543182373,
0.040457673370838165,
0.019786076620221138,
-0.016296738758683205,
-0.00807439535856247,
0.005647940561175346,
-0.035092536360025406,
-0.017035333439707756,
0.025984887033700943,
0.03793088719248772,
-0.013467571698129177,
-0.008219030685722828,
0.02969835139811039,
0.05498213320970535,
0.01813426986336708,
-0.01836659014225006,
0.0012846433091908693,
6.638341329407872e-33,
0.016272753477096558,
-0.004450195003300905,
0.01747402735054493,
-0.027161855250597,
0.031903065741062164,
-0.002130703767761588,
-0.005161760374903679,
-0.00029332173289731145,
-0.03678222373127937,
0.028362805023789406,
-0.020245380699634552,
-0.041610490530729294,
-0.04402606561779976,
0.010726596228778362,
0.0418778695166111,
0.019535847008228302,
-0.006978181190788746,
0.04352715238928795,
-0.02249831147491932,
-0.03337620943784714,
-0.04189997911453247,
0.02198677882552147,
0.0006399262929335237,
0.01862126775085926,
0.06195281073451042,
0.002098004100844264,
-0.0045454902574419975,
0.020014507696032524,
0.0011044646380469203,
0.0012208828702569008,
-0.0087346900254488,
-0.03176421672105789,
-0.004224475473165512,
-0.008527606725692749,
-0.0026026929263025522,
0.07295489311218262,
0.032393861562013626,
-0.022687630727887154,
-0.03208599239587784,
-0.01653955690562725,
0.05024869740009308,
0.030288448557257652,
0.0016404470661655068,
0.021899189800024033,
-0.0021964700426906347,
0.00913939718157053,
0.0013544164830818772,
0.02877860702574253,
0.023818407207727432,
-0.006730304099619389,
0.00803576409816742,
0.0008688925299793482,
-0.0066645266488194466,
0.025351496413350105,
0.051071278750896454,
0.006819427013397217,
-0.002966933650895953,
0.019916197285056114,
-0.06878022104501724,
-0.040578700602054596,
-0.0554715171456337,
-0.010791794396936893,
-0.03909928724169731,
0.03043139912188053,
-0.024855801835656166,
-0.004667454399168491,
-0.019101819023489952,
-0.03055974841117859,
-0.010149778798222542,
0.004395029507577419,
-0.0002247858210466802,
-0.012941275723278522,
-0.018919285386800766,
0.015380412340164185,
0.004085778258740902,
0.017223045229911804,
-0.022039419040083885,
0.011678938753902912,
-0.036722809076309204,
0.010693234391510487,
0.023161431774497032,
-0.03276229649782181,
0.019967127591371536,
-0.005151443649083376,
0.016832036897540092,
0.007289369590580463,
-0.02922797203063965,
0.012730740010738373,
0.06847783923149109,
0.01761253923177719,
0.008556950837373734,
-0.04729878529906273,
0.02761368826031685,
0.015154937282204628,
-0.018526021391153336,
-1.2775369206963205e-8,
-0.028720108792185783,
-0.01180405355989933,
-0.014734187163412571,
0.02412995509803295,
0.015550147742033005,
0.01916564628481865,
-0.004941093735396862,
-0.047679364681243896,
-0.01856120675802231,
0.014846078120172024,
0.037600185722112656,
0.003117659594863653,
0.04704456031322479,
0.0343349352478981,
0.03572959080338478,
-0.02379485033452511,
0.0317377969622612,
-0.011879649944603443,
0.023680133745074272,
-0.0032470899168401957,
-0.002316187834367156,
0.023252444341778755,
0.010729566216468811,
-0.006972307339310646,
0.014150034636259079,
-0.014985363930463791,
0.0068702478893101215,
-0.06899229437112808,
-0.004846218042075634,
-0.02110215276479721,
0.034432005137205124,
-0.04356050491333008,
-0.04202696308493614,
-0.02647554874420166,
-0.007357159163802862,
-0.05925031751394272,
0.002122409176081419,
0.031560223549604416,
-0.0016739520942792296,
0.019173387438058853,
-0.011156897060573101,
-0.01998923160135746,
0.004363470245152712,
-0.030606459826231003,
-0.01593744195997715,
-0.01930844411253929,
-0.0466141402721405,
-0.017170561477541924,
0.05348998308181763,
-0.05159576237201691,
-0.0037106755189597607,
-0.028927722945809364,
0.04152216389775276,
0.02084580436348915,
0.017733415588736534,
0.03758489340543747,
0.03398047387599945,
0.04857204481959343,
-0.05247422680258751,
-0.025403236970305443,
0.027861852198839188,
0.02082797884941101,
-0.02890416793525219,
-0.04211272671818733
] | python-find-the-highest-value-in-a-group | https://markhneedham.com/blog/2015/01/25/python-find-the-highest-value-in-a-group |
false | 2015-06-03 05:52:08 | R: ggplot geom_density - Error in exists(name, envir = env, mode = mode) : argument "env" is missing, with no default | [
"r-2",
"rstats"
] | [
"R"
] | Continuing on from yesterday's blog post where I http://www.markhneedham.com/blog/2015/06/02/r-dplyr-removing-empty-rows/[worked out how to clean up the Think Bayes Price is Right data set], the next task was to plot a distribution of the prices of show case items.
To recap, this is what the data frame we're working with looks like:
[source,R]
----
library(dplyr)
df2011 = read.csv("~/projects/rLearning/showcases.2011.csv", na.strings = c("", "NA"))
df2011 = df2011 %>% na.omit()
> df2011 %>% head()
X Sep..19 Sep..20 Sep..21 Sep..22 Sep..23 Sep..26 Sep..27 Sep..28 Sep..29 Sep..30 Oct..3
3 Showcase 1 50969 21901 32815 44432 24273 30554 20963 28941 25851 28800 37703
4 Showcase 2 45429 34061 53186 31428 22320 24337 41373 45437 41125 36319 38752
6 Bid 1 42000 14000 32000 27000 18750 27222 25000 35000 22500 21300 21567
7 Bid 2 34000 59900 45000 38000 23000 18525 32000 45000 32000 27500 23800
9 Difference 1 8969 7901 815 17432 5523 3332 -4037 -6059 3351 7500 16136
10 Difference 2 11429 -25839 8186 -6572 -680 5812 9373 437 9125 8819 14952
...
----
So our goal is to plot the density of the 'Showcase 1' items. Unfortunately those aren't currently stored in a way that makes this easy for us. We need to flip the data frame so that we have a row for each date/price type/price:
[source,text]
----
PriceType Date Price
Showcase 1 Sep..19 50969
Showcase 2 Sep..19 21901
...
Showcase 1 Sep..20 45429
Showcase 2 Sep..20 34061
----
The http://had.co.nz/reshape/introduction.pdf[reshape] library's +++<cite>+++melt+++</cite>+++ function is our friend here:
[source,R]
----
library(reshape)
meltedDf = melt(df2011, id=c("X"))
> meltedDf %>% sample_n(10)
X variable value
643 Showcase 1 Feb..24 27883
224 Showcase 2 Nov..10 34089
1062 Difference 2 Jun..4 9962
770 Showcase 2 Mar..28 39620
150 Difference 2 Oct..24 9137
431 Difference 1 Jan..4 7516
345 Bid 1 Dec..12 21569
918 Difference 2 May.1 -2093
536 Showcase 2 Jan..31 30918
502 Bid 2 Jan..23 27000
----
Now we need to plug this into ggplot. We'll start by just plotting all the prices for showcase 1:
[source,r]
----
> ggplot(aes(x = value), data = meltedDf %>% filter(X == "Showcase 1")) +
geom_density()
Error in exists(name, envir = env, mode = mode) :
argument "env" is missing, with no default
----
This error usually means that you've http://stackoverflow.com/questions/24708188/r-error-in-qplot-from-ggplot2-argument-env-is-missing-with-no-default[passed an empty data set] to ggplot which isn't the case here, but if we extract the values column we can see the problem:
[source,r]
----
> meltedDf$value[1:10]
[1] "50969" "45429" "42000" "34000" "8969" "11429" "21901" "34061" "14000" "59900"
----
They are all strings! Making it very difficult to plot a density curve which relies on the data being continuous. Let's fix that and try again:
[source,r]
----
meltedDf$value = as.numeric(meltedDf$value)
ggplot(aes(x = value), data = meltedDf %>% filter(X == "Showcase 1")) +
geom_density()
----
image::{{<siteurl>}}/uploads/2015/06/2015-06-03_06-46-48.png[2015 06 03 06 46 48,400]
If we want to show the curves for both showcases we can tweak our code slightly:
[source,R]
----
ggplot(meltedDf %>% filter(grepl("Showcase", X)), aes(x = value, colour = X)) +
geom_density() +
theme(legend.position="top")
----
image::{{<siteurl>}}/uploads/2015/06/2015-06-03_06-50-35.png[2015 06 03 06 50 35,400]
Et voila! | null | null | [
0.006723667960613966,
-0.009528310969471931,
0.012240980751812458,
0.05448656901717186,
0.08663401007652283,
0.04863737151026726,
0.016418183222413063,
-0.0046046036295592785,
0.008386845700442791,
-0.0063786753453314304,
0.020737716928124428,
-0.002435706788673997,
-0.0532328225672245,
0.045009586960077286,
-0.04696376994252205,
0.1004306972026825,
0.04848386347293854,
-0.0035370416007936,
0.011032002978026867,
0.029493477195501328,
0.04568064957857132,
0.027745814993977547,
0.01660492829978466,
0.04077289626002312,
0.023703347891569138,
-0.03650352358818054,
0.018213367089629173,
0.01749536767601967,
-0.03787979111075401,
0.010716593824326992,
0.042356621474027634,
0.037854768335819244,
-0.0018317016074433923,
0.0020601004362106323,
0.015880517661571503,
-0.0020981417037546635,
-0.016375679522752762,
0.0051760743372142315,
-0.0002719656622502953,
-0.005381207913160324,
-0.0852506160736084,
0.02126430906355381,
-0.01674295775592327,
0.025761008262634277,
-0.023457875475287437,
-0.030321767553687096,
-0.038375623524188995,
0.013112979009747505,
-0.007441957946866751,
-0.00015282146341633052,
-0.04262421652674675,
0.0340513177216053,
0.010548708029091358,
-0.03331248462200165,
-0.03897416219115257,
0.04873595014214516,
0.01784147322177887,
-0.0633036196231842,
0.03179100155830383,
-0.05343914404511452,
0.00703839398920536,
-0.0036091029178351164,
0.001644767471589148,
0.014720713719725609,
0.02537560649216175,
-0.04179413989186287,
-0.007625171449035406,
0.045703254640102386,
-0.025280211120843887,
-0.01796051301062107,
-0.04216916859149933,
0.0003411198849789798,
-0.007544247433543205,
-0.02122202329337597,
0.002499762224033475,
-0.025304686278104782,
-0.012958748266100883,
0.042426470667123795,
0.02199363335967064,
0.006372198462486267,
-0.015336367301642895,
-0.015420541167259216,
0.023743951693177223,
0.023231828585267067,
0.025844452902674675,
-0.05972471460700035,
-0.03633321821689606,
-0.05695158243179321,
-0.07499655336141586,
0.08222058415412903,
-0.02367999404668808,
-0.024582523852586746,
0.03237658739089966,
0.025376658886671066,
-0.03750568628311157,
0.012658104300498962,
0.009145586751401424,
-0.021108591929078102,
-0.005133962724357843,
-0.023921171203255653,
-0.07562605291604996,
-0.027515174821019173,
0.04253848269581795,
0.018366049975156784,
-0.06992880254983902,
-0.0017144043231382966,
-0.029401123523712158,
-0.003358685178682208,
0.008849862031638622,
0.03215784579515457,
-0.04130742698907852,
0.014286910183727741,
-0.015049058012664318,
0.008143800310790539,
-0.07070785015821457,
0.05650093033909798,
0.03733627498149872,
-0.03824383392930031,
-0.012920466251671314,
-0.013618510216474533,
0.03227036073803902,
0.014457685872912407,
-0.013387885875999928,
0.07815542817115784,
0.013864245265722275,
0.039267655462026596,
0.013593549840152264,
0.03950627148151398,
-0.009899033233523369,
-0.06646009534597397,
0.019570551812648773,
0.05068787559866905,
-0.038480743765830994,
-0.01751602254807949,
0.0027570766396820545,
-0.035243451595306396,
0.0017870280425995588,
-0.012990856543183327,
0.07797469943761826,
0.026739249005913734,
0.034755390137434006,
-0.018502894788980484,
0.01937836967408657,
0.017020005732774734,
0.041837796568870544,
0.01002323068678379,
0.00964346993714571,
-0.02712187170982361,
-0.07259927690029144,
-0.003690150333568454,
0.03508836030960083,
0.015483750961720943,
0.04846937954425812,
-0.02321109175682068,
0.03548585623502731,
0.05637967959046364,
0.01803523860871792,
-0.0075307139195501804,
0.010363147594034672,
0.022128742188215256,
0.035298045724630356,
0.04216491058468819,
0.031200852245092392,
0.02653948962688446,
-0.001491983886808157,
-0.0415470115840435,
0.025448979809880257,
0.053297970443964005,
-0.03972633183002472,
-0.023896649479866028,
-0.05770184099674225,
-0.04164004698395729,
0.07990012317895889,
-0.027249718084931374,
0.003427727846428752,
0.055522654205560684,
0.07685492187738419,
0.06698097288608551,
0.03359049931168556,
-0.005759205669164658,
-0.0844407007098198,
0.03526008501648903,
0.02642451971769333,
0.028048895299434662,
0.03268342465162277,
-0.03870275616645813,
0.08497922867536545,
0.029051149263978004,
0.05363215133547783,
0.07255470752716064,
-0.057686809450387955,
-0.06437240540981293,
-0.012485707178711891,
-0.02132863737642765,
0.037124767899513245,
-0.022605132311582565,
0.02144591137766838,
0.04987604171037674,
-0.001574162277393043,
0.012834117747843266,
-0.019214294850826263,
0.04430615156888962,
0.037701912224292755,
-0.038568172603845596,
-0.03391899913549423,
0.0058142514899373055,
0.0247435811907053,
-0.011991768144071102,
-0.00802076980471611,
0.034547749906778336,
-0.030208928510546684,
0.011246077716350555,
0.021399343386292458,
-0.026502888649702072,
0.0236095879226923,
0.01533443108201027,
0.08352743089199066,
0.018222898244857788,
0.030913449823856354,
-0.0373927503824234,
0.007833232171833515,
0.006725943647325039,
-0.01636721007525921,
-0.03849630802869797,
-0.007155324332416058,
0.1289607286453247,
0.05791427195072174,
-0.012643038295209408,
-0.03488902747631073,
0.01475211139768362,
-0.030931558459997177,
-0.022763177752494812,
0.015261981636285782,
-0.016067640855908394,
-0.01410975493490696,
0.028431816026568413,
-0.05533907562494278,
-0.047707684338092804,
0.021809067577123642,
-0.03521488606929779,
0.023312486708164215,
0.05106770247220993,
0.014869040809571743,
0.0697573870420456,
-0.0007063408847898245,
0.006363678723573685,
-0.02436492033302784,
-0.025380587205290794,
-0.09528876096010208,
-0.013954686932265759,
0.005107213277369738,
-0.0007142660906538367,
0.023394854739308357,
-0.03414138779044151,
-0.012648769654333591,
-0.014360488392412663,
-0.04431404173374176,
0.021492071449756622,
0.07117079943418503,
0.06503340601921082,
-0.013902447186410427,
0.056645043194293976,
-0.018662644550204277,
0.0007591174216940999,
-0.008280854672193527,
-0.0353260412812233,
-0.05086718872189522,
-0.024749886244535446,
0.00620101997628808,
0.025161925703287125,
0.03197924792766571,
-0.00903013814240694,
-0.0018000224372372031,
0.026417672634124756,
0.019322361797094345,
-0.05553855746984482,
0.05137903615832329,
-0.0038302037864923477,
-0.013716504909098148,
-0.01952199637889862,
-0.0026041388045996428,
0.04859314486384392,
0.005220639053732157,
0.0044004288502037525,
0.017910240218043327,
-0.060622699558734894,
0.04837177321314812,
-0.027295565232634544,
-0.02735069766640663,
0.003977694548666477,
0.016084767878055573,
0.039558231830596924,
0.04359026253223419,
0.012852788902819157,
0.05370243266224861,
0.0027713081799447536,
0.00969223864376545,
0.011320928111672401,
-0.007732455153018236,
0.05044187977910042,
0.002007816918194294,
0.003933321684598923,
0.06054190546274185,
-0.006244613789021969,
0.01198999211192131,
-0.06033860146999359,
0.02720114029943943,
-0.01846230775117874,
-0.2758442461490631,
0.0224870964884758,
-0.0019042546628043056,
-0.023201702162623405,
0.01202880498021841,
-0.048128943890333176,
0.01925409771502018,
-0.029847562313079834,
-0.021988827735185623,
0.008475128561258316,
0.010516880080103874,
-0.0460972897708416,
-0.04784779995679855,
0.03194475173950195,
0.06124591827392578,
0.013627095147967339,
0.0211682990193367,
-0.0300322063267231,
0.025738511234521866,
0.05180630460381508,
0.03437596186995506,
-0.03712999075651169,
-0.01127355545759201,
0.0456867516040802,
0.02901749685406685,
0.08514303714036942,
-0.05188433453440666,
0.03500561788678169,
-0.07857923209667206,
-0.024087103083729744,
0.01304769329726696,
-0.029605790972709656,
0.012676003389060497,
-0.007093717344105244,
0.016680853441357613,
-0.03546424210071564,
0.015565515495836735,
0.011011320166289806,
0.008874276652932167,
0.03090202808380127,
-0.010276373475790024,
-0.009185937233269215,
0.01298203133046627,
0.00838644988834858,
0.06764539331197739,
-0.010702816769480705,
-0.055430781096220016,
0.037953782826662064,
-0.027374835684895515,
0.06878416240215302,
0.011443285271525383,
-0.01163701992481947,
-0.020420778542757034,
-0.0004141134559176862,
-0.03813697397708893,
-0.009150373749434948,
-0.04933265224099159,
-0.004691121634095907,
-0.025907179340720177,
-0.04962608590722084,
-0.0030243592336773872,
-0.026379194110631943,
-0.004395538475364447,
-0.015854744240641594,
-0.010093732737004757,
-0.07187149673700333,
-0.0697513222694397,
0.0008999755955301225,
0.08518446236848831,
0.034946147352457047,
-0.03190208971500397,
-0.010116594843566418,
-0.0065920487977564335,
-0.10377968847751617,
0.021368468180298805,
-0.008834908716380596,
-0.00950148981064558,
-0.007658194284886122,
-0.004567806608974934,
0.04095681011676788,
-0.04718705639243126,
-0.0703822448849678,
0.049167755991220474,
0.01050782110542059,
0.026612386107444763,
-0.025691688060760498,
-0.01171736977994442,
0.020336110144853592,
-0.03478716313838959,
-0.0117331026121974,
0.04231562837958336,
-0.029581626877188683,
-0.014932507649064064,
-0.01180555485188961,
-0.028914783149957657,
0.037012066692113876,
0.027933381497859955,
-0.0020137904211878777,
0.022476201876997948,
0.023828506469726562,
0.024036677554249763,
-0.05978046730160713,
0.02933528833091259,
-0.07876823097467422,
-0.04063481092453003,
0.00021217638277448714,
-0.05140286684036255,
0.013188150711357594,
0.01121902372688055,
-0.0035149180330336094,
0.012756798416376114,
-0.0359710231423378,
0.04259005934000015,
-0.04370827600359917,
-0.010278432630002499,
-0.006700275465846062,
0.006514136213809252,
0.029526058584451675,
-0.003739999607205391,
-0.005665622651576996,
-0.061947666108608246,
-0.0037581727374345064,
-0.031517840921878815,
-0.02415318973362446,
-0.03798416256904602,
-0.01819436252117157,
0.02368561178445816,
0.006478267256170511,
-0.004521823488175869,
0.010507157072424889,
0.0013568836729973555,
-0.0005849958397448063,
0.04666193947196007,
-0.03800925984978676,
0.03708253055810928,
-0.008718392811715603,
-0.0424962043762207,
-0.024719219654798508,
0.01149044744670391,
0.018502064049243927,
0.007754548452794552,
-0.005150319542735815,
0.00006781113188480958,
0.021675247699022293,
-0.007093268446624279,
0.0027598990127444267,
0.02812645584344864,
-0.007935339584946632,
0.010700252838432789,
-0.0037419365253299475,
-0.012320434674620628,
0.0040319254621863365,
-0.00873587653040886,
-0.03311906009912491,
-0.027418266981840134,
0.0062975334003567696,
0.050707392394542694,
-0.024176018312573433,
-0.015863200649619102,
-0.04128178581595421,
0.010074397549033165,
-0.0396631620824337,
-0.02459065616130829,
-0.027385108172893524,
0.005178929306566715,
0.04994026944041252,
-0.023608775809407234,
0.007713533937931061,
0.023936595767736435,
0.0019360282458364964,
-0.0010203189449384809,
-0.0013105238322168589,
-0.034112438559532166,
0.012705820612609386,
0.00744487252086401,
-0.022790944203734398,
0.03209575265645981,
-0.03309434652328491,
0.030014244839549065,
0.020997973158955574,
-0.003576875664293766,
-0.02355574630200863,
-0.0038132702466100454,
0.0028345403261482716,
0.041420359164476395,
0.05565118417143822,
-0.011723512783646584,
-0.0014696877915412188,
-0.02575792372226715,
-0.0314624086022377,
-0.03714848682284355,
-0.025585154071450233,
-0.010543993674218655,
0.015262650325894356,
-0.03657739609479904,
-0.07084429264068604,
0.0232402216643095,
0.028894644230604172,
-0.01084803231060505,
0.0021416025701910257,
-0.017118269577622414,
0.0048973397351801395,
-0.044770367443561554,
0.022490736097097397,
0.0748504027724266,
-0.06122336536645889,
0.027273595333099365,
0.008679242804646492,
-0.019563576206564903,
0.03361007943749428,
-0.0019127314444631338,
-0.06134437397122383,
-0.012211648747324944,
0.0031126136891543865,
0.04501253738999367,
-0.033165670931339264,
-0.04823162779211998,
-0.06359536200761795,
0.02347797155380249,
0.0010223840363323689,
0.04196153208613396,
-0.02863061986863613,
-0.013457860797643661,
0.0046888128854334354,
-0.017991477623581886,
0.003615587716922164,
-0.034545522183179855,
-0.05140392482280731,
0.020870311185717583,
-0.020085450261831284,
-0.0009696839260868728,
-0.027249669656157494,
-0.001372173777781427,
0.04399998113512993,
-0.036207687109708786,
-0.0024056497495621443,
-0.04772700369358063,
0.014821681194007397,
-0.00839000940322876,
0.03910508379340172,
-0.00962868519127369,
-0.010939260944724083,
-0.0374356284737587,
0.01414478849619627,
-0.019518300890922546,
0.006954162381589413,
-0.008144519291818142,
-0.014126336202025414,
0.04732625558972359,
0.039372026920318604,
0.005832841619849205,
-0.022167187184095383,
-0.027800418436527252,
-0.02482190541923046,
0.05936262384057045,
-0.037820104509592056,
-0.04041624441742897,
-0.0072073242627084255,
-0.062301624566316605,
0.026486678048968315,
0.0005689610843546689,
0.006696052849292755,
-0.004870537202805281,
0.02992069162428379,
0.02754141576588154,
0.02582300640642643,
0.04358047991991043,
0.01487649604678154,
0.020825229585170746,
-0.03357535973191261,
0.010903485119342804,
-0.08558464795351028,
-0.004618391860276461,
0.010842076502740383,
0.004774976521730423,
-0.004423676524311304,
0.009694477543234825,
-0.05830789729952812,
0.030561082065105438,
-0.06446085125207901,
-0.043997518718242645,
0.031413570046424866,
-0.015316811390221119,
0.006510713137686253,
0.004100367892533541,
-0.05130889266729355,
-0.02012920379638672,
0.03692835941910744,
-0.04681279510259628,
0.0009909233776852489,
0.0029910593293607235,
0.06362143158912659,
-0.030296171084046364,
0.01200320478528738,
-0.015610413625836372,
-0.011149252764880657,
0.06561334431171417,
0.01964450068771839,
0.009138256311416626,
0.05259889364242554,
-0.03692201152443886,
0.007337838876992464,
0.02970069833099842,
-0.006969942711293697,
0.022928571328520775,
0.009498842991888523,
0.00586275989189744,
-0.028113657608628273,
-0.006420948542654514,
0.014021393842995167,
0.008520510047674179,
-0.04940126836299896,
0.07914763689041138,
0.002872130833566189,
-0.02759014256298542,
-0.06860397011041641,
0.008604956790804863,
-0.02904527820646763,
-0.0021042770240455866,
0.006685454398393631,
-0.01960022561252117,
-0.01889974996447563,
0.06082858145236969,
-0.024968260899186134,
0.008055364713072777,
0.06176523491740227,
-0.007491696160286665,
0.013599109835922718,
-0.0008958495454862714,
0.08016739040613174,
0.10792890936136246,
0.06433987617492676,
-0.009501209482550621,
0.06680198013782501,
-0.05507620796561241,
-0.04492451995611191,
0.033573877066373825,
-0.028607284650206566,
-0.014776312746107578,
-0.06667623668909073,
0.02571515180170536,
0.05831737816333771,
-0.027612296864390373,
0.05683296173810959,
-0.017991861328482628,
-0.026366008445620537,
-0.009727939032018185,
0.00723267113789916,
0.038873057812452316,
0.05643506348133087,
-0.0008920793188735843,
0.03066081739962101,
-0.009173267520964146,
-0.03893568739295006,
0.029138516634702682,
0.009608977474272251,
-0.011387432925403118,
0.01727912947535515,
-0.021055633202195168,
0.014071855694055557,
0.012069045566022396,
0.021741461008787155,
0.06469982862472534,
-0.0445684976875782,
-0.020961958914995193,
-0.0028027312364429235,
0.018360638990998268,
0.006111340131610632,
0.014673234894871712,
0.009917614050209522,
-0.026280662044882774,
-0.011446631513535976,
-0.03432131186127663,
-0.02266770787537098,
-0.008142396807670593,
-0.011900905519723892,
0.016749924048781395,
-0.03866676241159439,
0.011640835553407669,
0.06122633069753647,
-0.02702164649963379,
-0.050471946597099304,
-0.07341611385345459,
-0.03785385191440582,
-0.05373021215200424,
-0.0906982272863388,
-0.012597371824085712,
0.01568949595093727,
-0.022198064252734184,
-0.018424883484840393,
-0.007392445113509893,
-0.030937030911445618,
-0.03908659145236015,
0.019931938499212265,
-0.06599901616573334,
-0.05743547901511192,
0.016907978802919388,
0.021611955016851425,
0.013866893015801907,
0.019366169348359108,
0.03843056038022041,
0.008520045317709446,
-0.02430991642177105,
-0.0026817095931619406,
0.03337503969669342,
0.04422925412654877,
0.020449377596378326,
0.02282051555812359,
-0.07572375982999802,
0.017817357555031776,
0.010791544802486897,
-0.027581699192523956,
-0.08543288707733154,
0.03777259960770607,
-0.021647566929459572,
-0.00023420028446707875,
0.04525388032197952,
0.011786486953496933,
0.0034600114449858665,
-0.033158764243125916,
-0.029819663614034653,
-0.008644325658679008,
0.02025589346885681,
0.02649744786322117,
-0.05336826667189598,
0.06663582473993301,
0.03473746404051781,
0.0020113233476877213,
-0.07990678399801254,
-0.028980271890759468,
0.005970889236778021,
-0.007606855593621731,
-0.04466665908694267,
-0.03121813014149666,
-0.02116973139345646,
-0.0915239155292511,
-0.03976390138268471,
-0.00601209606975317,
-0.044593412429094315,
-0.022690406069159508,
0.02373661659657955,
-0.0021511525847017765,
-0.012375539168715477,
0.01821759156882763,
-0.036170803010463715,
0.01756650023162365,
-0.0199628546833992,
-0.00931041594594717,
-0.020278114825487137,
0.05454631894826889,
-0.016130981966853142,
0.010994277894496918,
-0.007019744720309973,
-0.0454629510641098,
0.00591679522767663,
-0.009768174961209297,
0.021721644327044487,
0.050840720534324646,
0.026345176622271538,
-0.00816949550062418
] | [
-0.07704098522663116,
-0.023864343762397766,
-0.03463248163461685,
0.007274141535162926,
0.08120150864124298,
-0.02750697173178196,
-0.020217401906847954,
0.040803130716085434,
0.031126471236348152,
0.024882713332772255,
0.04763840511441231,
-0.03816262632608414,
0.0068315304815769196,
-0.0008160410798154771,
0.05256197229027748,
0.007239510305225849,
0.001684067421592772,
-0.06860475987195969,
-0.03921354562044144,
0.037356700748205185,
0.00620662048459053,
-0.07933513075113297,
-0.07070980221033096,
-0.055514492094516754,
0.06664011627435684,
0.012512407265603542,
-0.008940442465245724,
-0.04403179883956909,
-0.009662059135735035,
-0.21539688110351562,
0.005277831573039293,
-0.004052805248647928,
0.04632807895541191,
-0.004219013266265392,
0.018624961376190186,
0.03492505103349686,
0.00964234210550785,
0.010268437676131725,
0.03478039801120758,
0.02873876504600048,
0.0003654629399534315,
0.003936010878533125,
-0.03807314485311508,
-0.02159368060529232,
0.007494375109672546,
0.0055529652163386345,
-0.05651872605085373,
-0.014004599303007126,
0.009143974632024765,
0.03789371997117996,
-0.05802452564239502,
-0.003920596558600664,
-0.017498524859547615,
-0.016451064497232437,
0.005469863768666983,
0.014190883375704288,
0.04179230332374573,
0.00541746336966753,
0.01981642283499241,
0.02644697204232216,
0.04101470857858658,
-0.0010822794865816832,
-0.15054702758789062,
0.08393114805221558,
0.04207683354616165,
0.029804809018969536,
-0.032834917306900024,
-0.0026777766179293394,
-0.01758716255426407,
0.07275143265724182,
0.03202447295188904,
-0.020993581041693687,
-0.039548374712467194,
0.029690522700548172,
0.024585381150245667,
-0.03332532197237015,
-0.02505476027727127,
0.013637685216963291,
0.030718015506863594,
-0.032363079488277435,
-0.030799444764852524,
0.026077069342136383,
-0.025150630623102188,
-0.010790733620524406,
-0.02800406701862812,
0.013162584975361824,
0.009413640946149826,
0.025970133021473885,
0.009337903000414371,
0.01710921712219715,
0.05334289371967316,
0.04520823433995247,
0.008990250527858734,
0.024428164586424828,
-0.11329307407140732,
0.004766813945025206,
0.03123766928911209,
0.027866415679454803,
0.002950146794319153,
0.40369144082069397,
-0.014389599673449993,
-0.02662777528166771,
0.025476010516285896,
0.028288761153817177,
-0.017751485109329224,
-0.025673819705843925,
-0.020251980051398277,
-0.022176675498485565,
0.013475361280143261,
-0.0170898474752903,
0.005009796004742384,
0.0010002616327255964,
0.05946405231952667,
-0.07830339670181274,
0.026570618152618408,
-0.0058197262696921825,
0.016305312514305115,
0.00254838727414608,
0.02734498865902424,
-0.008017043583095074,
-0.002132660010829568,
0.009709641337394714,
0.03700694814324379,
0.007530024275183678,
0.0011354306479915977,
-0.022198311984539032,
0.03232616186141968,
0.07404512912034988,
0.03832089528441429,
0.0023849313147366047,
0.040486499667167664,
-0.046014074236154556,
-0.09055682271718979,
0.00832242239266634,
0.011800378561019897,
0.014529958367347717,
0.02105805277824402,
-0.006507357116788626,
0.012936312705278397,
0.04436394199728966,
-0.04809356853365898,
0.019782857969403267,
0.021828429773449898,
-0.024592919275164604,
-0.024364694952964783,
0.12125326693058014,
0.01400098204612732,
-0.0403936393558979,
-0.005958132445812225,
-0.06589876115322113,
0.0014989287592470646,
0.041664935648441315,
0.011768784373998642,
-0.06856340914964676,
-0.0004165586142335087,
0.02428881824016571,
0.07679930329322815,
-0.03578115254640579,
-0.0805305540561676,
-0.032807108014822006,
-0.02535507082939148,
-0.01598355732858181,
-0.04535605385899544,
0.044141851365566254,
0.03674711287021637,
-0.0791921317577362,
-0.03490673005580902,
0.03080548346042633,
0.013491823337972164,
-0.058393873274326324,
0.00042033614590764046,
0.036414965987205505,
-0.06469281762838364,
-0.008716203272342682,
0.07451978325843811,
0.0009258600766770542,
-0.03610694035887718,
-0.006548077799379826,
0.03765257075428963,
0.006506001576781273,
-0.009200024418532848,
0.019280361011624336,
-0.053245604038238525,
0.01877538673579693,
-0.0620097741484642,
-0.098568856716156,
-0.08606386929750443,
0.017320754006505013,
-0.03175099194049835,
-0.005343333352357149,
0.006209960673004389,
-0.07402423024177551,
-0.08114650845527649,
0.08481490612030029,
-0.04612208157777786,
-0.02133030816912651,
0.01921623758971691,
0.02310039848089218,
-0.011180713772773743,
-0.02458581142127514,
0.003751782001927495,
-0.004777616821229458,
-0.017444681376218796,
0.04131917655467987,
-0.055673953145742416,
0.05619784817099571,
0.07990004122257233,
-0.02045021392405033,
0.07686185091733932,
0.04048502445220947,
0.03232334181666374,
0.002522507216781378,
-0.010365858674049377,
0.008278487250208855,
-0.024283966049551964,
0.009836801327764988,
0.015241789631545544,
-0.029500525444746017,
0.03160659596323967,
0.023612789809703827,
0.026393897831439972,
-0.04884069412946701,
0.002746015787124634,
-0.3651799261569977,
-0.03411998599767685,
0.006664883811026812,
-0.006688547320663929,
0.03813439980149269,
-0.03478480875492096,
-0.002175269415602088,
0.009863663464784622,
0.017315668985247612,
0.08161777257919312,
0.04290734976530075,
-0.011865261010825634,
-0.0067398566752672195,
-0.1186412125825882,
0.012295082211494446,
0.003499827813357115,
-0.02368188090622425,
-0.01941513828933239,
-0.047662120312452316,
-0.02293059043586254,
-0.03674007207155228,
-0.024016596376895905,
-0.03149721026420593,
-0.025272589176893234,
0.035133421421051025,
0.0012120638275519013,
0.13724511861801147,
0.0021186238154768944,
0.02976471744477749,
-0.028743954375386238,
0.04352441430091858,
-0.013206107541918755,
-0.014007455669343472,
0.008794199675321579,
0.02561233937740326,
-0.0433497428894043,
-0.016988536342978477,
0.021845508366823196,
-0.027694404125213623,
-0.03478691726922989,
-0.04463301971554756,
0.005876671522855759,
-0.030408600345253944,
-0.022737164050340652,
-0.047655314207077026,
0.018896836787462234,
-0.00565121928229928,
0.041843898594379425,
-0.02957453951239586,
0.11187612265348434,
0.018017549067735672,
-0.015089478343725204,
0.05727064236998558,
0.020205853506922722,
0.031288232654333115,
-0.028664521872997284,
-0.05688155069947243,
0.006220688112080097,
-0.004828115925192833,
-0.032325442880392075,
0.021694384515285492,
0.04763345047831535,
0.0677744522690773,
-0.043156202882528305,
-0.03348164260387421,
-0.009809947572648525,
0.02620655670762062,
-0.042687393724918365,
0.000707950268406421,
0.011923619545996189,
-0.031792107969522476,
0.0659744068980217,
-0.002374395029619336,
0.02924966998398304,
0.03610023483633995,
0.04693463817238808,
-0.021006012335419655,
0.017660005018115044,
-0.013017351739108562,
0.026040494441986084,
0.05946345999836922,
-0.009362716227769852,
0.0036658262833952904,
-0.011266342364251614,
0.0266334917396307,
0.028791114687919617,
0.003587996819987893,
-0.04429937154054642,
0.055601298809051514,
0.04028940945863724,
-0.02410818822681904,
-0.02878250926733017,
-0.027007298544049263,
-0.040447790175676346,
0.062455881386995316,
0.01552322693169117,
-0.274684339761734,
0.012847506441175938,
0.04416090250015259,
0.04194573685526848,
-0.011221637018024921,
0.020904304459691048,
0.022466229274868965,
-0.027669323608279228,
0.020161116495728493,
-0.019270021468400955,
-0.003029875224456191,
0.06672942638397217,
0.02593003585934639,
-0.033675920218229294,
-0.013309633359313011,
-0.059760063886642456,
0.03688284009695053,
-0.03385308012366295,
0.05325274541974068,
0.0037920817267149687,
-0.0005648903315886855,
-0.04536860063672066,
0.14831379055976868,
0.04193344712257385,
-0.02209545485675335,
-0.0322657972574234,
-0.020310092717409134,
-0.009885704144835472,
0.0815952941775322,
-0.0016272520879283547,
-0.0027001232374459505,
-0.0012684385292232037,
0.017598355188965797,
-0.001576842158101499,
0.02382984384894371,
-0.0012704270193353295,
-0.03627610579133034,
0.08008687198162079,
0.028788534924387932,
-0.008960260078310966,
0.005112574435770512,
0.004605890717357397,
-0.05805407091975212,
0.034937262535095215,
0.07602646946907043,
-0.011554626747965813,
-0.0052911750972270966,
-0.029997481033205986,
-0.03747018426656723,
-0.0014985788147896528,
-0.0006475154077634215,
0.010674604214727879,
-0.004573347046971321,
-0.02281651832163334,
0.0030115318950265646,
0.04912006855010986,
0.02205687388777733,
0.0049439468421041965,
0.0389459952712059,
-0.027833551168441772,
-0.017847828567028046,
-0.04564226418733597,
0.06896573305130005,
-0.007962321862578392,
0.04025470092892647
] | [
-0.00290792272426188,
0.03673285245895386,
0.019651005044579506,
0.012790287844836712,
-0.016721999272704124,
0.02311667986214161,
-0.008244285359978676,
-0.0035205837339162827,
-0.03523581102490425,
0.007128695026040077,
-0.006762787699699402,
-0.0073266541585326195,
0.03522797301411629,
-0.03674859553575516,
0.002835651161149144,
0.010845599696040154,
0.021142825484275818,
-0.017821380868554115,
0.04981891065835953,
0.022428907454013824,
-0.018772033974528313,
0.009274165146052837,
-0.009775655344128609,
-0.007322092540562153,
-0.012914224527776241,
0.04564701020717621,
-0.052383556962013245,
0.0025905852671712637,
0.01516325306147337,
-0.09368862956762314,
-0.011709518730640411,
-0.03215838596224785,
-0.016774483025074005,
0.024431345984339714,
-0.027594635263085365,
-0.03461924195289612,
-0.05778305605053902,
-0.001145498943515122,
0.02029566653072834,
0.01529462169855833,
-0.033119890838861465,
0.015476948581635952,
-0.025777973234653473,
0.0072531490586698055,
0.023973174393177032,
-0.031297583132982254,
0.0020565479062497616,
0.010933564975857735,
-0.004010428208857775,
0.01930730976164341,
-0.024704858660697937,
0.010827322490513325,
-0.02257649227976799,
-0.03631274029612541,
0.003861225675791502,
0.004994137678295374,
-0.0354837104678154,
-0.029004929587244987,
0.013689455576241016,
-0.005409862846136093,
0.005353596061468124,
-0.0007985534612089396,
-0.03681383281946182,
-0.028007689863443375,
0.042804278433322906,
-0.02696024812757969,
-0.057586416602134705,
0.041085340082645416,
-0.020956868305802345,
0.016186269000172615,
-0.0006980416364967823,
0.005811579525470734,
-0.019406426697969437,
-0.02275409922003746,
-0.019010009244084358,
0.03618442267179489,
0.013906462118029594,
-0.08756841719150543,
-0.012743672356009483,
-0.020632019266486168,
-0.04046883434057236,
0.03058718517422676,
-0.020562339574098587,
-0.00423148600384593,
-0.0032212291844189167,
-0.06244945153594017,
0.061251524835824966,
0.0279232207685709,
0.014813916757702827,
-0.03268076479434967,
-0.026838000863790512,
0.0053199962712824345,
-0.005591419525444508,
0.011384563520550728,
-0.09339257329702377,
-0.031025085598230362,
-0.0050827451050281525,
0.04318097606301308,
0.017305320128798485,
0.8127800822257996,
0.034360114485025406,
0.022985847666859627,
0.00913287978619337,
0.030340200290083885,
-0.07611950486898422,
-0.019300220534205437,
-0.0014487557346001267,
0.01280616782605648,
-0.03195289522409439,
-0.05287925899028778,
0.009154461324214935,
0.015171455219388008,
0.001250465982593596,
0.026618963107466698,
-0.011033670976758003,
0.04508207365870476,
0.011740217916667461,
0.0031321661081165075,
-0.019169339910149574,
-0.022791683673858643,
0.024535508826375008,
0.013452721759676933,
0.03031102940440178,
-0.011158286593854427,
-0.032395586371421814,
-0.162566676735878,
0.044897034764289856,
-6.515276621768379e-33,
-0.014205705374479294,
-0.03602343797683716,
-0.024910030886530876,
-0.03494763746857643,
0.04358649626374245,
0.01888798363506794,
0.03179842606186867,
-0.018164588138461113,
-0.006548978853970766,
0.02201726660132408,
0.033562421798706055,
0.02470431476831436,
-0.03947535529732704,
-0.015601219609379768,
0.023878833279013634,
-0.03812849521636963,
0.03141788765788078,
0.032785385847091675,
0.011716969311237335,
-0.039025332778692245,
0.05298105627298355,
0.03126334398984909,
0.03632431477308273,
0.023187074810266495,
-0.028959348797798157,
0.014707447029650211,
0.016216106712818146,
0.02093362994492054,
-0.033727508038282394,
-0.04736645147204399,
-0.006305885035544634,
-0.0005096141248941422,
0.023626577109098434,
-0.008305713534355164,
0.006162072531878948,
-0.04946446046233177,
-0.008272304199635983,
-0.009416915476322174,
0.031229037791490555,
-0.012541808187961578,
-0.057246945798397064,
-0.004204192198812962,
-0.015843627974390984,
-0.010135525837540627,
-0.06760605424642563,
0.040517888963222504,
0.009153132326900959,
0.04974839463829994,
0.0073325191624462605,
0.02104360982775688,
-0.015587816014885902,
0.004215668886899948,
0.00735376076772809,
0.019492201507091522,
-0.013819551095366478,
-0.005720414686948061,
-0.018447451293468475,
-0.04030643403530121,
0.02691509574651718,
-0.007593739777803421,
-0.01485361997038126,
-0.00008619770233053714,
0.0011460878886282444,
0.029019523411989212,
-0.053871478885412216,
0.049082137644290924,
0.05645405501127243,
0.007395141292363405,
0.0016622452531009912,
0.02171512506902218,
-0.04597233980894089,
0.04416920617222786,
0.012425360269844532,
-0.03789933770895004,
0.06538791954517365,
-0.0003099458699580282,
-0.0015408856561407447,
0.03804052621126175,
0.040429044514894485,
0.015148705802857876,
-0.012527086772024632,
-0.011117704212665558,
0.00852446723729372,
0.01427904050797224,
-0.03792531043291092,
0.01852566748857498,
0.01821497268974781,
0.01859598606824875,
-0.016392964869737625,
-0.013124666176736355,
-0.006787477992475033,
0.017389897257089615,
0.007711179554462433,
-0.024450644850730896,
0.04376039654016495,
7.007543533850013e-33,
0.004939922597259283,
-0.015932943671941757,
0.0010768701322376728,
0.015411356464028358,
0.04164664447307587,
-0.049182992428541183,
0.019656509160995483,
0.00942978635430336,
-0.029424281790852547,
0.02667519822716713,
-0.018501628190279007,
-0.016943134367465973,
-0.0359182134270668,
0.013299164362251759,
0.04571392759680748,
-0.009444937109947205,
0.03492684289813042,
0.03544311970472336,
-0.024102861061692238,
-0.012315763160586357,
-0.030484525486826897,
0.015448919497430325,
-0.015975594520568848,
0.01951342262327671,
0.024806823581457138,
0.032604753971099854,
0.02223610132932663,
-0.0017517540836706758,
0.00446553248912096,
0.02705971710383892,
0.009283071383833885,
0.0037966121453791857,
0.011155766434967518,
-0.005772334989160299,
-0.0384368859231472,
0.05493883043527603,
0.007801036816090345,
-0.027510233223438263,
0.0011732568964362144,
0.017073798924684525,
-0.0018226520624011755,
0.005687950178980827,
-0.01500394195318222,
0.0453297421336174,
0.01588779129087925,
0.0020209711510688066,
0.014042645692825317,
0.005589509382843971,
0.05691033601760864,
-0.0274050273001194,
-0.0068981521762907505,
0.054114021360874176,
0.0274418443441391,
-0.0229625403881073,
-0.016880212351679802,
-0.02009107545018196,
-0.014695228077471256,
-0.009836475364863873,
-0.04498767852783203,
0.012118608690798283,
-0.013665911741554737,
0.020281923934817314,
-0.014114763587713242,
-0.0040031541138887405,
-0.01246956828981638,
-0.01412458997219801,
-0.017866075038909912,
-0.04946732148528099,
0.00937686488032341,
0.02898327261209488,
-0.00954221747815609,
-0.012060664594173431,
0.0002920745173469186,
-0.009859982877969742,
0.000022086234821472317,
0.009396952576935291,
-0.045854806900024414,
0.02268865890800953,
0.02147614024579525,
0.025255022570490837,
0.022115319967269897,
-0.0277604591101408,
0.044992510229349136,
0.002782988827675581,
-0.0009219330386258662,
0.043532680720090866,
-0.07418669760227203,
-0.0011815732577815652,
0.006364219821989536,
-0.02991974912583828,
-0.012281784787774086,
-0.051104865968227386,
0.006251217797398567,
0.038556382060050964,
-0.041365429759025574,
-1.2478885480504687e-8,
-0.021505115553736687,
0.016286037862300873,
-0.008458603173494339,
0.023348767310380936,
0.017545994371175766,
0.030988523736596107,
0.013533243909478188,
-0.01171958539634943,
0.04586484283208847,
0.00822035688906908,
0.03951510414481163,
-0.03565273806452751,
-0.0069947210140526295,
0.01410476490855217,
-0.044937603175640106,
-0.039011482149362564,
0.0435231477022171,
0.034877900034189224,
0.025017913430929184,
-0.022396201267838478,
0.027810852974653244,
0.052482739090919495,
0.04003680869936943,
-0.04464767500758171,
-0.008885132148861885,
0.00048527747276239097,
0.008871708065271378,
-0.04610699042677879,
0.01295101922005415,
0.019461169838905334,
0.0413508266210556,
-0.05234341695904732,
-0.0038670971989631653,
-0.008252564817667007,
0.01791648007929325,
-0.03403429687023163,
0.03524576127529144,
0.039324801415205,
-0.02455204911530018,
0.003560430370271206,
-0.04427942633628845,
0.008535453118383884,
0.008692598901689053,
-0.006233790889382362,
-0.03481169790029526,
0.01320334617048502,
-0.06650546193122864,
-0.01883535645902157,
0.032314836978912354,
-0.053963303565979004,
0.02253919281065464,
-0.04700546711683273,
-0.013481104746460915,
0.027349555864930153,
0.04199590906500816,
0.013279651291668415,
0.041768573224544525,
-0.0280758086591959,
-0.030758799985051155,
0.005973140709102154,
0.015252238139510155,
-0.02057887427508831,
-0.0010780266020447016,
-0.02043982408940792
] | r-ggplot-geom_density-error-in-existsname-envir-env-mode-mode-argument-env-is-missing-with-no-default | https://markhneedham.com/blog/2015/06/03/r-ggplot-geom_density-error-in-existsname-envir-env-mode-mode-argument-env-is-missing-with-no-default |
false | 2015-06-04 22:17:34 | Neo4j: Cypher - Step by step to creating a linked list of adjacent nodes using UNWIND | [
"neo4j"
] | [
"neo4j"
] | In late 2013 I wrote a post showing http://www.markhneedham.com/blog/2013/11/22/neo4j-cypher-creating-relationships-between-nodes-from-adjacent-rows-in-a-query/[how to create a linked list connecting different football seasons together] using Neo4j's Cypher query language, a post I've frequently copy & pasted from!
Now 18 months later, and using Neo4j 2.2 rather than 2.0, we can actually solve this problem in what I believe is a more intuitive way using the +++<cite>+++http://neo4j.com/docs/stable/query-unwind.html[UNWIND]+++</cite>+++ function. Credit for the idea goes to https://twitter.com/mesirii[Michael], I'm just the messenger.
To recap, we had a collection of football seasons and we wanted to connect adjacent seasons to each other to allow easy querying between seasons. The following is the code we used:
[source,cypher]
----
CREATE (:Season {name: "2013/2014", timestamp: 1375315200})
CREATE (:Season {name: "2012/2013", timestamp: 1343779200})
CREATE (:Season {name: "2011/2012", timestamp: 1312156800})
CREATE (:Season {name: "2010/2011", timestamp: 1280620800})
CREATE (:Season {name: "2009/2010", timestamp: 1249084800})
----
[source,cypher]
----
MATCH (s:Season)
WITH s
ORDER BY s.timestamp
WITH COLLECT(s) AS seasons
FOREACH(i in RANGE(0, length(seasons)-2) |
FOREACH(si in [seasons[i]] |
FOREACH(si2 in [seasons[i+1]] |
MERGE (si)-[:NEXT]->(si2))))
----
Our goal is to replace those 3 +++<cite>+++FOREACH+++</cite>+++ loops with something a bit easier to understand. To start with, let's run the first part of the query to get some intuition of what we're trying to do:
[source,cypher]
----
MATCH (s:Season)
WITH s
ORDER BY s.timestamp
RETURN COLLECT(s) AS seasons
==> +-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
==> | seasons |
==> +-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
==> | [Node[1973]{timestamp:1249084800,name:"2009/2010"},Node[1972]{timestamp:1280620800,name:"2010/2011"},Node[1971]{timestamp:1312156800,name:"2011/2012"},Node[1970]{timestamp:1343779200,name:"2012/2013"},Node[1969]{timestamp:1375315200,name:"2013/2014"}] |
==> +-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
----
So at this point we've got all the seasons in an array going from 2009/2010 up to 2013/2014. We want to create a 'NEXT' relationship between 2009/2010 \-> 2010/2011, 2010/2011 \-> 2011/2012 and so on.
To achieve this we need to get the adjacent seasons split into two columns, like so:
[source,text]
----
2009/2010 2010/2011
2010/2011 2011/2012
2011/2012 2012/2013
2012/2013 2013/2014
----
If we can get the data into that format then we can apply a +++<cite>+++MERGE+++</cite>+++ between the two fields to create the 'NEXT' relationship. So how do we do that?
If we were in Python we'd be calling for the zip function which we could apply like this:
[source,python]
----
>>> seasons = ["2009/2010", "2010/2011", "2011/2012", "2012/2013", "2013/2014"]
>>> zip(seasons, seasons[1:])
[('2009/2010', '2010/2011'), ('2010/2011', '2011/2012'), ('2011/2012', '2012/2013'), ('2012/2013', '2013/2014')]
----
Unfortunately we don't have an equivalent function in Cypher but we can achieve the same outcome by creating 2 columns with adjacent integer values. The +++<cite>+++RANGE+++</cite>+++ and +++<cite>+++UNWIND+++</cite>+++ functions are our friends here:
[source,cypher]
----
return RANGE(0,4)
==> +-------------+
==> | RANGE(0,4) |
==> +-------------+
==> | [0,1,2,3,4] |
==> +-------------+
----
[source,cypher]
----
UNWIND RANGE(0,4) as idx
RETURN idx, idx +1;
==> +--------------+
==> | idx | idx +1 |
==> +--------------+
==> | 0 | 1 |
==> | 1 | 2 |
==> | 2 | 3 |
==> | 3 | 4 |
==> | 4 | 5 |
==> +--------------+
==> 5 rows
----
Now all we need to do is plug this code into our original query where 'idx' and 'idx + 1' represent indexes into the array of seasons. We use a range which stops 1 element early since there isn't anywhere to connect our last season to:
[source,cypher]
----
MATCH (s:Season)
WITH s
ORDER BY s.timestamp
WITH COLLECT(s) AS seasons
UNWIND RANGE(0,LENGTH(seasons) - 2) as idx
RETURN seasons[idx], seasons[idx+1]
==> +-------------------------------------------------------------------------------------------------------+
==> | seasons[idx] | seasons[idx+1] |
==> +-------------------------------------------------------------------------------------------------------+
==> | Node[1973]{timestamp:1249084800,name:"2009/2010"} | Node[1972]{timestamp:1280620800,name:"2010/2011"} |
==> | Node[1972]{timestamp:1280620800,name:"2010/2011"} | Node[1971]{timestamp:1312156800,name:"2011/2012"} |
==> | Node[1971]{timestamp:1312156800,name:"2011/2012"} | Node[1970]{timestamp:1343779200,name:"2012/2013"} |
==> | Node[1970]{timestamp:1343779200,name:"2012/2013"} | Node[1969]{timestamp:1375315200,name:"2013/2014"} |
==> +-------------------------------------------------------------------------------------------------------+
==> 4 rows
----
Now we've got all the adjacent seasons lined up we complete the query with a call to +++<cite>+++MERGE+++</cite>+++:
[source,cypher]
----
MATCH (s:Season)
WITH s
ORDER BY s.timestamp
WITH COLLECT(s) AS seasons
UNWIND RANGE(0,LENGTH(seasons) - 2) as idx
WITH seasons[idx] AS s1, seasons[idx+1] AS s2
MERGE (s1)-[:NEXT]->(s2)
==> +-------------------+
==> | No data returned. |
==> +-------------------+
==> Relationships created: 4
----
And we're done. Hopefully I can remember this approach more than I did the initial one! | null | null | [
0.006592077203094959,
-0.021352436393499374,
0.0008654181729070842,
0.025300540030002594,
0.08334297686815262,
-0.021019941195845604,
0.0450756810605526,
0.034414924681186676,
0.017924074083566666,
-0.02398752234876156,
0.01664908230304718,
-0.016748417168855667,
-0.05365594103932381,
0.015970265492796898,
-0.009455167688429356,
0.06296366453170776,
0.036112211644649506,
0.020931657403707504,
0.01620725728571415,
-0.008381539955735207,
0.01780792511999607,
0.061660703271627426,
0.009232813492417336,
0.03171217814087868,
0.049559272825717926,
0.010645262897014618,
-0.005564807914197445,
-0.0062059080228209496,
-0.04430964216589928,
0.006315522827208042,
0.05341126769781113,
-0.00018693154561333358,
0.006786327809095383,
-0.03147347271442413,
0.026982204988598824,
-0.03678034618496895,
-0.05485570803284645,
0.002260398119688034,
-0.013483674265444279,
-0.017269717529416084,
-0.06623435020446777,
0.048475027084350586,
-0.01068820245563984,
-0.01454193890094757,
-0.03261629492044449,
0.03027280606329441,
-0.04016464576125145,
0.03898447006940842,
0.0036884124856442213,
0.017603149637579918,
-0.09559039026498795,
-0.0011405362747609615,
-0.000772425439208746,
0.009088811464607716,
-0.015416402369737625,
0.059071607887744904,
0.01802653633058071,
-0.07219045609235764,
0.04387127608060837,
-0.01074222195893526,
0.015214799903333187,
-0.029198797419667244,
-0.0009710878948681056,
0.024261798709630966,
-0.00785412173718214,
-0.0702788308262825,
-0.004077607300132513,
0.06696506589651108,
-0.048613838851451874,
-0.01683773659169674,
-0.005433977581560612,
0.00738633843138814,
0.009110829792916775,
-0.014235634356737137,
0.0033851799089461565,
-0.05535006895661354,
0.004659395199269056,
0.05841382220387459,
0.03153396397829056,
0.04291726276278496,
-0.016700100153684616,
0.02161453291773796,
0.015308945439755917,
0.030821161344647408,
-0.0030236183665692806,
-0.03256254270672798,
-0.033684175461530685,
-0.03644997254014015,
-0.04455578699707985,
0.058440715074539185,
0.02101072669029236,
-0.06527693569660187,
0.0348346084356308,
0.002846585353836417,
-0.011186854913830757,
-0.01496213674545288,
0.0011247667716816068,
0.0065596136264503,
0.015679577365517616,
-0.02700316719710827,
-0.03148405998945236,
-0.04270306974649429,
0.006921641994267702,
0.020771164447069168,
-0.07931441068649292,
-0.023238785564899445,
-0.026317380368709564,
-0.00432209949940443,
0.007520912680774927,
-0.0068609449081122875,
-0.03214866295456886,
0.008615188300609589,
0.01618216186761856,
0.029495909810066223,
-0.07363719493150711,
0.06010502949357033,
0.038915492594242096,
-0.033113110810518265,
-0.03382701054215431,
0.01655508577823639,
0.02432076819241047,
0.005862790159881115,
0.006613112520426512,
0.06372196972370148,
0.006911430507898331,
0.05663241818547249,
0.012763597071170807,
0.05637089163064957,
-0.04417198523879051,
-0.07002194970846176,
-0.036391664296388626,
0.060301002115011215,
-0.02157934010028839,
0.008411496877670288,
-0.018379684537649155,
-0.05229400470852852,
-0.02978784590959549,
0.021051442250609398,
0.048590660095214844,
0.042183492332696915,
-0.005815861746668816,
-0.04576408863067627,
0.01909041963517666,
0.00348282465711236,
0.022418862208724022,
0.03232860937714577,
-0.022712342441082,
-0.02324868179857731,
-0.005694826599210501,
0.012957053259015083,
0.03080737218260765,
-0.011563302017748356,
0.026906199753284454,
-0.022030234336853027,
0.002654053969308734,
0.119188591837883,
0.03466584533452988,
0.022114984691143036,
-0.03161162883043289,
0.03147200867533684,
0.07403969764709473,
0.023247256875038147,
0.019247448071837425,
0.06354492157697678,
-0.014358524233102798,
-0.027527689933776855,
0.003449456999078393,
0.050169531255960464,
0.0006904246984049678,
-0.004855848848819733,
-0.02782505191862583,
-0.049583278596401215,
0.0539320670068264,
-0.025678930804133415,
-0.011281474493443966,
0.08604611456394196,
0.06870726495981216,
0.014695427380502224,
0.028865741565823555,
0.01386068481951952,
-0.07376249879598618,
0.05793885514140129,
0.014876162633299828,
0.004036630969494581,
0.013902618549764156,
-0.009497958235442638,
0.0760791227221489,
0.024743223562836647,
0.007123961579054594,
0.027187684550881386,
-0.08518996089696884,
-0.05735980346798897,
-0.022106265649199486,
-0.0006939235609024763,
0.051898643374443054,
-0.036143958568573,
0.0344531424343586,
0.05479840934276581,
-0.0024884752929210663,
0.04026692360639572,
0.02130887657403946,
0.0036861749831587076,
0.026582689955830574,
-0.039839353412389755,
-0.04884476214647293,
0.06990576535463333,
0.01686629094183445,
-0.0351710207760334,
-0.04667789489030838,
0.037745773792266846,
-0.011213776655495167,
0.0072214845567941666,
0.042978595942258835,
-0.029205063357949257,
0.03214268013834953,
0.030765116214752197,
0.04301924630999565,
-0.003405401250347495,
0.02131253480911255,
-0.05386089161038399,
0.04843217507004738,
0.020465699955821037,
-0.03038608655333519,
0.0032081601675599813,
-0.010234159417450428,
0.10594451427459717,
0.035791970789432526,
-0.0363958440721035,
-0.03908868506550789,
0.03313261270523071,
0.03263823315501213,
-0.008250988088548183,
0.00182305125053972,
-0.012058335356414318,
-0.01374808419495821,
-0.010546921752393246,
-0.030277108773589134,
-0.033932436257600784,
-0.02231898531317711,
-0.03738927096128464,
0.02320665307343006,
0.06943150609731674,
-0.02123492956161499,
0.05625005438923836,
-0.0029485169798135757,
-0.0030248467810451984,
-0.025315426290035248,
-0.044602930545806885,
-0.0444192998111248,
0.028893940150737762,
0.003670809790492058,
-0.013926912099123001,
0.06340501457452774,
-0.026005227118730545,
-0.026463951915502548,
-0.023888560011982918,
-0.036081161350011826,
0.04191846027970314,
0.05132370814681053,
0.05633134767413139,
-0.008635150268673897,
0.056345950812101364,
-0.03474212437868118,
-0.007772055454552174,
-0.02775862067937851,
-0.057171594351530075,
-0.04884326085448265,
-0.03515380993485451,
0.017283668741583824,
0.008013780228793621,
0.016089264303445816,
-0.03141443803906441,
0.036823172122240067,
0.02875235490500927,
0.012965201400220394,
0.008197364397346973,
0.01637480966746807,
-0.0080172810703516,
-0.015220431610941887,
-0.037378307431936264,
-0.05157072842121124,
0.038662489503622055,
-0.05383759364485741,
-0.04358261451125145,
-0.01120555866509676,
-0.0567781887948513,
0.06583768874406815,
-0.048156123608350754,
-0.001339235925115645,
0.007643461227416992,
0.03715654835104942,
0.04779285937547684,
0.017993459478020668,
0.020687606185674667,
0.06512892246246338,
0.02153433859348297,
0.015684274956583977,
0.00862210150808096,
0.0006343003478832543,
0.03619317710399628,
-0.011786435730755329,
0.028053924441337585,
0.045194074511528015,
-0.026321999728679657,
-0.0014918484957888722,
-0.028028929606080055,
0.0017944440478459,
-0.028110049664974213,
-0.2750871181488037,
0.06492139399051666,
-0.028586342930793762,
-0.03792138397693634,
0.031140243634581566,
-0.010510753840208054,
0.0066293333657085896,
-0.03671354427933693,
-0.026403963565826416,
0.015251959674060345,
0.0011896532960236073,
-0.022426020354032516,
-0.03531587868928909,
0.03351585566997528,
0.015824414789676666,
0.010347694158554077,
-0.026505354791879654,
-0.04993940517306328,
-0.01595846563577652,
0.03164239600300789,
0.009159871377050877,
-0.04579837992787361,
-0.02504906989634037,
0.023604344576597214,
0.020290499553084373,
0.03729991242289543,
-0.09572099894285202,
0.02441532164812088,
-0.06239441782236099,
-0.008690105751156807,
-0.01689191535115242,
-0.03278998285531998,
0.010551956482231617,
-0.0002724798978306353,
-0.022537002339959145,
-0.021495144814252853,
0.05482834205031395,
0.031086018308997154,
-0.005591223482042551,
0.013922621496021748,
-0.04649068042635918,
-0.0447685606777668,
-0.014497901313006878,
0.0007949626306071877,
0.09707790613174438,
0.03079712763428688,
-0.06425980478525162,
-0.022422878071665764,
-0.014895797707140446,
0.06142094358801842,
-0.031427450478076935,
-0.035841118544340134,
-0.0066972277127206326,
-0.001916439039632678,
-0.01944504678249359,
-0.04193618521094322,
0.0026298831216990948,
-0.02741961181163788,
-0.035174526274204254,
-0.020712370052933693,
-0.010307729244232178,
-0.052678387612104416,
0.02717820182442665,
-0.033951546996831894,
-0.02292492799460888,
-0.06400172412395477,
-0.07520581036806107,
-0.014314351603388786,
0.046486746519804,
0.019671322777867317,
-0.02034393697977066,
0.027976850047707558,
-0.01832972653210163,
-0.10472957044839859,
-0.036804843693971634,
-0.014158119447529316,
-0.004736160393804312,
-0.011404343880712986,
-0.031091254204511642,
0.03843161463737488,
-0.047460101544857025,
-0.03914695978164673,
-0.016104523092508316,
0.05806358903646469,
0.01194100920110941,
0.01634320244193077,
0.019505348056554794,
-0.028854215517640114,
-0.03736200928688049,
0.004074084106832743,
0.050486788153648376,
-0.01921028643846512,
-0.023285454139113426,
0.006605952512472868,
0.007470367476344109,
0.04850926995277405,
0.0002403679391136393,
-0.0046768877655267715,
0.005182053428143263,
0.044702522456645966,
0.03901560604572296,
-0.025102578103542328,
0.007733145263046026,
-0.017796333879232407,
-0.023538799956440926,
0.003138346364721656,
-0.027375521138310432,
0.026253318414092064,
0.021681180223822594,
0.031171215698122978,
-0.0014449218288064003,
-0.0004938246565870941,
-0.004594047088176012,
-0.021621787920594215,
-0.038930587470531464,
-0.000639598467387259,
0.029282938688993454,
0.037805408239364624,
0.029690049588680267,
-0.02337133139371872,
-0.07911776751279831,
0.018906164914369583,
0.032649870961904526,
0.004351867362856865,
-0.053979139775037766,
-0.04598308727145195,
-0.02316557988524437,
-0.02057013101875782,
0.02179514616727829,
0.01732785999774933,
-0.0393618680536747,
0.009615040384232998,
0.045779693871736526,
-0.009290766902267933,
0.04227939620614052,
-0.014055299572646618,
-0.038178421556949615,
-0.050144873559474945,
0.005213314667344093,
-0.020223135128617287,
-0.007316043600440025,
-0.00038166745798662305,
-0.009354740381240845,
0.04972713813185692,
0.03185773640871048,
0.0018694887403398752,
0.007980887778103352,
-0.009914944879710674,
0.011581073515117168,
0.025309136137366295,
-0.02209174633026123,
-0.03806257247924805,
-0.0022512292489409447,
-0.03560931235551834,
-0.024681711569428444,
0.007599694654345512,
0.04572061449289322,
-0.015359117649495602,
-0.018553568050265312,
-0.029432103037834167,
0.04085233435034752,
-0.060502540320158005,
0.0003624933888204396,
-0.02118360437452793,
-0.004404090344905853,
0.05360817164182663,
-0.026021409779787064,
0.03035993129014969,
-0.011390955187380314,
-0.018295513466000557,
0.006173383444547653,
-0.003955347463488579,
-0.042115937918424606,
0.011566326953470707,
-0.017560791224241257,
0.003298321273177862,
0.00250732759013772,
0.019147509709000587,
0.01287117786705494,
0.027324948459863663,
-0.01192382536828518,
-0.016084332019090652,
-0.010455220006406307,
0.014229045249521732,
0.04236520081758499,
0.04517470300197601,
-0.015682265162467957,
0.011392575688660145,
-0.034331485629081726,
-0.004630145151168108,
-0.006224374286830425,
0.01146502885967493,
-0.03208385407924652,
0.00004086865737917833,
-0.02123934030532837,
-0.06747495383024216,
0.054151859134435654,
-0.016662219539284706,
0.004930546041578054,
0.04602997377514839,
-0.0013680459233000875,
-0.015361794270575047,
-0.004464360885322094,
0.030511979013681412,
0.05426635593175888,
-0.05382869020104408,
-0.005771145224571228,
-0.006629152223467827,
-0.009070013649761677,
-0.011187991127371788,
0.04734575375914574,
-0.04634382948279381,
-0.03509613871574402,
-0.004910984542220831,
0.03703536093235016,
-0.023076988756656647,
-0.05265037715435028,
-0.004388623405247927,
-0.004786964040249586,
0.01260499656200409,
0.059054162353277206,
0.0021086465567350388,
0.024396782740950584,
-0.027664830908179283,
-0.004779634065926075,
0.046918176114559174,
-0.021959032863378525,
-0.003951750695705414,
-0.012646147981286049,
-0.029117023572325706,
0.037757571786642075,
-0.038785312324762344,
0.030401792377233505,
0.012615136802196503,
-0.014405032619833946,
-0.005511067342013121,
-0.06089116632938385,
0.01961749978363514,
-0.005490767303854227,
0.08053702116012573,
-0.019511036574840546,
-0.027111759409308434,
-0.028401687741279602,
-0.011349967680871487,
-0.026537207886576653,
-0.004334687255322933,
-0.001535629271529615,
0.025392385199666023,
0.014085755683481693,
0.03700144216418266,
0.013622218742966652,
0.030796512961387634,
-0.026241319254040718,
-0.022525614127516747,
0.05040760338306427,
-0.03672150522470474,
-0.024813475087285042,
-0.040447309613227844,
-0.052396971732378006,
-0.015081305988132954,
0.006587956566363573,
0.023662449792027473,
-0.05286618322134018,
0.06827812641859055,
0.05308593809604645,
0.04278876632452011,
0.06827940791845322,
-0.01813698559999466,
0.026090038940310478,
-0.017058460041880608,
-0.024912940338253975,
-0.09511331468820572,
0.006276129279285669,
0.053530920296907425,
0.013714802451431751,
0.007677127607166767,
0.010125300846993923,
-0.013206660747528076,
-0.009009145200252533,
-0.06235148757696152,
-0.03357063606381416,
0.017223769798874855,
-0.040113162249326706,
0.04030181095004082,
0.016166070476174355,
-0.05077618360519409,
-0.009044735692441463,
0.034329116344451904,
-0.017586687579751015,
-0.035995323210954666,
-0.027516374364495277,
0.054480720311403275,
-0.03120058961212635,
0.04361844062805176,
-0.01051297690719366,
-0.05315161496400833,
0.06208422780036926,
0.014765460044145584,
0.028867525979876518,
0.05575244501233101,
-0.001327400910668075,
0.016101840883493423,
0.03511874005198479,
0.0020871954038739204,
0.0041828453540802,
0.029311804100871086,
-0.037750694900751114,
-0.05556948855519295,
0.03816380351781845,
0.014943345449864864,
-0.01454794593155384,
-0.042312704026699066,
0.08315596729516983,
0.0064785052090883255,
-0.047484707087278366,
-0.032164424657821655,
0.020400185137987137,
0.003742334432899952,
-0.015557890757918358,
-0.04765816032886505,
0.02943951077759266,
-0.03860680013895035,
0.04914651811122894,
-0.02437080815434456,
0.005627827253192663,
0.07091767340898514,
-0.019447024911642075,
-0.011328448541462421,
0.011798921041190624,
0.07877601683139801,
0.09315216541290283,
0.042635366320610046,
-0.00237113144248724,
0.08331947773694992,
0.0032017966732382774,
-0.02711563929915428,
-0.022087251767516136,
-0.026498500257730484,
-0.003859545337036252,
0.016119128093123436,
0.014178585261106491,
0.07432650029659271,
-0.024624522775411606,
0.06440480053424835,
-0.02474793791770935,
-0.04337965324521065,
-0.019395116716623306,
-0.006393277086317539,
0.03185723349452019,
0.047452762722969055,
0.006158691365271807,
0.03538240119814873,
-0.026720767840743065,
-0.037578992545604706,
0.025242799893021584,
-0.00473578879609704,
-0.00575682520866394,
0.025294076651334763,
-0.025122519582509995,
-0.01585913635790348,
0.0017558317631483078,
0.03744608163833618,
0.06342104822397232,
-0.04151054844260216,
-0.0004787022771779448,
-0.003691206919029355,
0.002948050620034337,
0.0010733057279139757,
0.012176006101071835,
-0.020561732351779938,
-0.004930464085191488,
-0.019153401255607605,
-0.0437038317322731,
-0.046754390001297,
-0.04160438850522041,
-0.035246461629867554,
0.017410635948181152,
-0.013154943473637104,
-0.017133595421910286,
-0.010343687608838081,
-0.026238378137350082,
-0.047921568155288696,
-0.03262961655855179,
-0.03876045346260071,
-0.06648630648851395,
-0.0727587640285492,
-0.0010180800454691052,
0.027806365862488747,
0.017617637291550636,
-0.016658496111631393,
0.007800007704645395,
-0.02256140671670437,
-0.020261434838175774,
0.043331120163202286,
-0.012307582423090935,
0.011579625308513641,
0.009859681129455566,
0.046543847769498825,
0.026655660942196846,
0.011349891312420368,
0.058257922530174255,
-0.01575513742864132,
0.017969852313399315,
-0.019419396296143532,
0.009074056521058083,
0.04699596017599106,
0.03365208953619003,
-0.004486285615712404,
-0.06346584111452103,
-0.006292558275163174,
0.024087848141789436,
-0.026802262291312218,
-0.07804015278816223,
0.00800264347344637,
0.05115651339292526,
0.0020781056955456734,
0.032640520483255386,
-0.018238767981529236,
-0.010396063327789307,
-0.028452076017856598,
0.027077822014689445,
0.017891138792037964,
-0.006773738190531731,
0.0520876981317997,
-0.019757630303502083,
0.07295642048120499,
0.0348932147026062,
-0.03450823575258255,
-0.012929534539580345,
-0.02353103831410408,
0.0033067886251956224,
0.0000612321455264464,
-0.0650918036699295,
-0.030320657417178154,
-0.04643050208687782,
-0.09568390250205994,
-0.04382244870066643,
-0.00021054786338936538,
-0.013608586974442005,
-0.024107156321406364,
0.012386777438223362,
0.029555080458521843,
-0.037858545780181885,
0.01957116834819317,
-0.039910901337862015,
0.03860992193222046,
-0.01573103293776512,
-0.02200375124812126,
-0.030348796397447586,
0.008697502315044403,
-0.0035544419661164284,
0.0165285412222147,
-0.004419080447405577,
-0.05988617241382599,
-0.0014145118184387684,
-0.018684055656194687,
-0.0012545740464702249,
0.024828331544995308,
0.007449728436768055,
0.009312277659773827
] | [
-0.056486815214157104,
-0.01582084223628044,
-0.021890755742788315,
-0.02876940928399563,
0.05734631419181824,
-0.03251710534095764,
-0.03551444783806801,
0.006773628760129213,
0.05047556012868881,
-0.01752873696386814,
0.02991613931953907,
-0.03261575475335121,
0.018701069056987762,
0.014870516955852509,
0.07654887437820435,
-0.01609981060028076,
-0.046414814889431,
-0.04072408750653267,
-0.03101089410483837,
0.04306091368198395,
-0.02202460914850235,
-0.037092480808496475,
-0.02399495430290699,
-0.03220103681087494,
0.04745229333639145,
0.05816613510251045,
0.037669021636247635,
-0.04282565787434578,
-0.04063401371240616,
-0.21605172753334045,
-0.0032779034227132797,
0.023404674604535103,
0.0005256952717900276,
-0.014024174772202969,
0.0024467429611831903,
0.0015450807986781001,
0.042208414524793625,
-0.012103014625608921,
0.026306701824069023,
0.03850557282567024,
0.0055364156141877174,
0.012485145591199398,
-0.06477031856775284,
-0.02406444400548935,
0.03318525105714798,
0.014615890569984913,
-0.023264383897185326,
-0.0053664688020944595,
-0.011813514865934849,
0.026600627228617668,
-0.028554536402225494,
-0.02763996832072735,
-0.022261634469032288,
0.0049438271671533585,
0.01798122376203537,
0.08766254782676697,
0.03138216212391853,
0.083021380007267,
0.017145292833447456,
0.0852043628692627,
0.017180437222123146,
0.014111911877989769,
-0.13425689935684204,
0.07629575580358505,
-0.001926224329508841,
0.0018600031035020947,
-0.046483784914016724,
0.008480329997837543,
-0.027620743960142136,
0.0827491357922554,
0.006686485838145018,
-0.008123337291181087,
-0.04726855084300041,
0.06408700346946716,
0.010847242549061775,
0.0368138812482357,
-0.02282964065670967,
0.01567399874329567,
0.009280340746045113,
-0.027162712067365646,
-0.058016128838062286,
0.03483707457780838,
-0.03114326484501362,
-0.028696676716208458,
-0.038720276206731796,
0.04075479134917259,
-0.031850751489400864,
0.017530303448438644,
-0.009484494104981422,
0.037218570709228516,
0.031346824020147324,
0.005212937947362661,
0.03655289486050606,
0.009758446365594864,
-0.10298553109169006,
-0.019729940220713615,
0.007304852828383446,
0.005562043283134699,
-0.013441494666039944,
0.370212197303772,
-0.011141628958284855,
-0.004283081274479628,
0.04694395512342453,
0.041622910648584366,
-0.026311911642551422,
-0.011362312361598015,
0.01571383699774742,
-0.06830104440450668,
0.018879998475313187,
-0.007374865468591452,
-0.0206866767257452,
-0.046863555908203125,
0.019686099141836166,
-0.0843442752957344,
0.012159338220953941,
0.022889111191034317,
0.042874712496995926,
0.027505846694111824,
0.000013931894500274211,
0.025810349732637405,
-0.004532597027719021,
0.011442885734140873,
0.0339241661131382,
0.015635896474123,
0.005332309752702713,
0.02432491071522236,
0.0018048333004117012,
0.049650490283966064,
0.036563776433467865,
0.009051605127751827,
0.05345985293388367,
0.008412297815084457,
-0.06514621526002884,
0.029165860265493393,
-0.017360320314764977,
0.002002378925681114,
0.011422338895499706,
-0.05904817208647728,
0.02434401400387287,
0.02079796977341175,
-0.017693055793642998,
-0.054555654525756836,
0.05454491823911667,
-0.00792687851935625,
-0.0257008858025074,
0.12857218086719513,
0.005025888327509165,
-0.04303545877337456,
-0.019159095361828804,
-0.027759863063693047,
-0.01199162658303976,
0.015799835324287415,
0.010595811530947685,
-0.08191662281751633,
-0.011695698834955692,
0.009171221405267715,
0.07743337005376816,
-0.015407532453536987,
-0.08703254908323288,
-0.00125030311755836,
-0.013459713198244572,
-0.03854505345225334,
-0.04297351464629173,
0.08375182002782822,
0.051465388387441635,
-0.14398819208145142,
-0.00525665795430541,
0.03090701252222061,
0.017210932448506355,
-0.07153776288032532,
0.01669570431113243,
0.019616294652223587,
-0.05214577540755272,
0.002665763720870018,
0.0763702467083931,
0.009799841791391373,
-0.04954146593809128,
-0.03756618872284889,
0.04863876849412918,
0.00830908864736557,
0.014911198057234287,
0.002763808937743306,
-0.02940458618104458,
0.0194813534617424,
-0.07871080189943314,
-0.06589404493570328,
-0.06945282965898514,
0.023618008941411972,
-0.03889637440443039,
-0.04931148886680603,
-0.015189467929303646,
-0.03885092958807945,
-0.037812456488609314,
0.09000379592180252,
-0.03182671591639519,
-0.03866923600435257,
-0.0021936101838946342,
0.014312156476080418,
0.00028104762895964086,
-0.044384755194187164,
-0.0020445759873837233,
-0.01325790025293827,
-0.028994547203183174,
0.005310505628585815,
-0.06784479320049286,
0.013806495815515518,
0.07275932282209396,
-0.04363540932536125,
0.06843686103820801,
0.015620794147253036,
-0.04817091301083565,
-0.018866192549467087,
-0.034678615629673004,
-0.0051899924874305725,
-0.0071432385593652725,
0.00585827324539423,
-0.017959069460630417,
-0.00043049384839832783,
0.005265477113425732,
0.04308716580271721,
-0.009028521366417408,
-0.01367015391588211,
-0.008303341455757618,
-0.33774998784065247,
-0.054800789803266525,
-0.01693558506667614,
-0.008641304448246956,
-0.0025648297742009163,
-0.014280984178185463,
0.01059799175709486,
-0.025264769792556763,
-0.0006446914048865438,
0.020906545221805573,
0.08760266751050949,
0.004379377234727144,
-0.015191193670034409,
-0.09709743410348892,
0.00021123766782693565,
0.024256182834506035,
-0.01060967706143856,
-0.004040793515741825,
-0.006864746566861868,
0.03668168559670448,
0.019199658185243607,
-0.02397647127509117,
0.000010008106983150356,
-0.05125492811203003,
0.00513423653319478,
-0.02528431825339794,
0.11628621816635132,
0.019179699942469597,
0.02729078382253647,
-0.05784481018781662,
0.05177856236696243,
0.0023867161944508553,
-0.0028540492057800293,
-0.03712119162082672,
0.010947233065962791,
0.005083937663584948,
0.01059975940734148,
-0.01583878882229328,
-0.007804050575941801,
-0.04403143376111984,
-0.06971105188131332,
0.004541610833257437,
-0.04287027567625046,
-0.05983462929725647,
-0.04283629357814789,
0.023151786997914314,
-0.01606614515185356,
-0.01919582113623619,
0.00900924950838089,
0.08924707025289536,
0.023697448894381523,
0.013485779985785484,
0.03418201953172684,
0.024246884509921074,
0.03228513151407242,
-0.036861639469861984,
-0.07574301213026047,
-0.004956655204296112,
0.019277963787317276,
0.020892390981316566,
0.014245695434510708,
0.031204266473650932,
0.037483587861061096,
-0.08339008688926697,
0.037435416132211685,
0.01956556737422943,
-0.010777880437672138,
0.002956031123176217,
0.013409532606601715,
-0.027052033692598343,
-0.04061494767665863,
0.07307157665491104,
-0.013624480925500393,
0.030204441398382187,
0.04630153998732567,
0.026458565145730972,
-0.027798719704151154,
0.035163022577762604,
0.013571190647780895,
-0.0007258590194396675,
0.05022392421960831,
-0.08262742310762405,
0.09761565923690796,
-0.01402901392430067,
0.00024358383961953223,
0.06069241091609001,
0.015688179060816765,
-0.03571467474102974,
0.07398111373186111,
0.001842041383497417,
-0.0384833849966526,
0.014756510965526104,
-0.03720817342400551,
-0.03274908661842346,
0.06881589442491531,
-0.03299875557422638,
-0.26286405324935913,
0.029268896207213402,
0.040433477610349655,
0.05396195501089096,
0.013341507874429226,
0.010152849368751049,
0.01381664164364338,
-0.011164965108036995,
-0.005565805360674858,
0.0021443781442940235,
0.03265191614627838,
0.04239330440759659,
-0.00809544324874878,
0.0057168323546648026,
0.006036541890352964,
-0.0007913900772109628,
0.024940842762589455,
0.0011460068635642529,
0.03509580343961716,
0.02119540236890316,
0.04288722947239876,
-0.01939382590353489,
0.20707891881465912,
0.04359528422355652,
0.009701676666736603,
0.05022982507944107,
-0.03394067659974098,
-0.0014436176279559731,
0.04998936876654625,
0.01580038107931614,
-0.029440371319651604,
0.04324210807681084,
0.005673603620380163,
0.06303797662258148,
0.008352097123861313,
-0.04086310416460037,
-0.00602731155231595,
0.08410827815532684,
0.009292417205870152,
-0.05718736723065376,
-0.016801150515675545,
0.042654894292354584,
-0.014525478705763817,
0.03842630237340927,
0.07683796435594559,
-0.015329649671912193,
-0.0005537500837817788,
-0.0096060149371624,
-0.08063510805368423,
-0.011412201449275017,
-0.04103412479162216,
-0.051647692918777466,
-0.012593979015946388,
-0.010897655040025711,
-0.01659991778433323,
0.06356444954872131,
0.021646197885274887,
-0.017342133447527885,
0.03150789439678192,
0.009414833970367908,
-0.012631842866539955,
-0.04415791481733322,
0.08956450968980789,
-0.013615266419947147,
0.035679444670677185
] | [
0.012545178644359112,
0.0727095827460289,
0.006029121577739716,
0.029360456392169,
-0.01001313142478466,
0.007816383615136147,
-0.022083502262830734,
-0.0031882754992693663,
0.011829091235995293,
-0.020876029506325722,
-0.02560911700129509,
0.004001616965979338,
0.058757323771715164,
-0.0178163293749094,
-0.011873338371515274,
0.023096183314919472,
-0.03679026663303375,
0.026510361582040787,
0.027601735666394234,
-0.020888088271021843,
-0.03130124509334564,
-0.00978016760200262,
0.03081573359668255,
-0.006911981385201216,
-0.015547223389148712,
0.030148940160870552,
-0.05151336267590523,
0.018447227776050568,
0.0063303192146122456,
-0.08786292374134064,
-0.024629775434732437,
-0.0066496822983026505,
0.0008853008621372283,
0.014007278718054295,
-0.042751602828502655,
-0.00210593082010746,
0.026176290586590767,
0.02130209095776081,
0.005742719862610102,
0.033984530717134476,
0.03510190546512604,
-0.014029431156814098,
-0.01912250742316246,
-0.013372390531003475,
0.004159401170909405,
0.00859208032488823,
-0.014745132066309452,
-0.023317398503422737,
-0.0006288570584729314,
0.00038505494012497365,
-0.052033163607120514,
0.005454730708152056,
-0.03223580867052078,
0.007964098826050758,
0.012730561196804047,
0.011641568504273891,
-0.054676394909620285,
0.00932532362639904,
0.0013609915040433407,
-0.024720387533307076,
0.052334003150463104,
-0.026234567165374756,
-0.07013057172298431,
-0.025991424918174744,
-0.009543982334434986,
-0.013071522116661072,
-0.019165582954883575,
0.04169061407446861,
0.016529597342014313,
-0.003193240612745285,
-0.016918785870075226,
0.05942835286259651,
-0.07015807926654816,
-0.0229662973433733,
-0.0360405333340168,
0.04572651535272598,
0.040391262620687485,
-0.04241500794887543,
-0.017798149958252907,
-0.015031157992780209,
-0.02188638597726822,
0.02495218627154827,
-0.033899057656526566,
-0.016885243356227875,
-0.01968701183795929,
-0.017222518101334572,
-0.0028526040259748697,
-0.037956446409225464,
0.0075265164487063885,
0.02357565611600876,
-0.031838711351156235,
-0.0030320300720632076,
-0.0022336861584335566,
-0.014025003649294376,
-0.08038325607776642,
0.023737365379929543,
0.026601942256093025,
-0.013905884698033333,
0.022220242768526077,
0.8264626264572144,
0.035095661878585815,
-0.010121401399374008,
-0.007679284084588289,
-0.005685130134224892,
0.007026107516139746,
0.013787318021059036,
-0.0048590973019599915,
-0.007237543351948261,
-0.008108125068247318,
0.007576074451208115,
-0.009131436236202717,
0.030383024364709854,
-0.005928555503487587,
0.027935195714235306,
-0.0005566415493376553,
0.037778452038764954,
0.02615504525601864,
0.002007428789511323,
0.0035755368880927563,
0.023490360006690025,
0.003643298987299204,
0.026707887649536133,
-0.0044218385592103004,
0.011864718981087208,
0.0050581092946231365,
-0.16812069714069366,
-0.015933699905872345,
-7.409332645748856e-33,
0.061433058232069016,
0.02049759030342102,
0.0774725079536438,
-0.0027340282686054707,
0.0038457661867141724,
0.028443505987524986,
-0.007561258506029844,
-0.027361880987882614,
-0.02042953483760357,
-0.04590502381324768,
-0.0033115961123257875,
0.012007496319711208,
0.0021689673885703087,
-0.03603297844529152,
0.024600019678473473,
-0.050261493772268295,
-0.002899542450904846,
-0.004116009920835495,
0.01657630130648613,
-0.0067278072237968445,
-0.01680256612598896,
0.029180146753787994,
-0.031186839565634727,
0.04457683488726616,
-0.0031283078715205193,
0.019775390625,
0.0025538867339491844,
0.0008337328908964992,
-0.022063132375478745,
-0.04889867082238197,
-0.07285624742507935,
0.024934610351920128,
-0.01611189916729927,
-0.015940185636281967,
0.031400199979543686,
-0.06623690575361252,
-0.024642463773489,
0.00170823372900486,
-0.02013975754380226,
-0.06060352548956871,
-0.051467571407556534,
-0.004472884349524975,
-0.0004596519866026938,
-0.02363160066306591,
-0.03374633938074112,
-0.02370733581483364,
-0.008890421129763126,
0.02104821987450123,
-0.01566452533006668,
0.0234519150108099,
0.023453451693058014,
-0.004114656243473291,
-0.008978310972452164,
-0.006002067122608423,
-0.03863399475812912,
0.011074474081397057,
0.009710392914712429,
0.002504985546693206,
-0.026161881163716316,
0.03387772664427757,
0.022650351747870445,
-0.005855326075106859,
-0.008545853197574615,
0.05018730089068413,
0.04678824543952942,
0.028114622458815575,
0.0062719788402318954,
0.012833351269364357,
-0.023227175697684288,
0.0371629074215889,
-0.03546466305851936,
0.0430661179125309,
-0.012820807285606861,
-0.023594532161951065,
0.03705596551299095,
-0.036159954965114594,
-0.01662489026784897,
-0.01898960769176483,
0.020909763872623444,
0.047535669058561325,
-0.010064564645290375,
-0.007568213623017073,
0.015120708383619785,
-0.027111772447824478,
-0.035161327570676804,
-0.030537141487002373,
0.029894936829805374,
0.05346072092652321,
0.025136278942227364,
0.014735178090631962,
0.054838813841342926,
0.054713327437639236,
0.010572889819741249,
-0.008794588968157768,
-0.01852307841181755,
6.513306199362813e-33,
-0.01684521697461605,
0.008092325180768967,
0.00663732597604394,
-0.010771496221423149,
0.023599175736308098,
0.018775835633277893,
0.000875110097695142,
0.00105833460111171,
-0.03974857181310654,
0.05004493147134781,
0.009738301858305931,
-0.023986754938960075,
-0.0038624529261142015,
0.0290613304823637,
0.0623808279633522,
-0.0045130313374102116,
0.006422868464142084,
-0.022420868277549744,
-0.010216495022177696,
0.009589999914169312,
0.004279034212231636,
-0.0045368061400949955,
-0.0005172549863345921,
0.028314614668488503,
0.01636384055018425,
-0.008580384775996208,
0.02448503114283085,
0.010464953258633614,
-0.0166900884360075,
-0.01713498681783676,
0.017473680898547173,
-0.06587202847003937,
-0.005535059608519077,
-0.021062234416604042,
0.019039563834667206,
0.022751938551664352,
0.005407394841313362,
-0.012907758355140686,
0.0255865640938282,
-0.021274542436003685,
0.03136260434985161,
0.0011656528804451227,
-0.0060217310674488544,
0.06994716823101044,
0.012264911085367203,
-0.007584244944155216,
-0.004405641462653875,
0.011697806417942047,
0.00966582354158163,
0.03328787535429001,
0.019566847011446953,
0.017225483432412148,
-0.03504284471273422,
0.013623875565826893,
0.0017038941150531173,
-0.06105910241603851,
0.00252484786324203,
0.03654256835579872,
-0.009448593482375145,
-0.011057416908442974,
-0.03396720811724663,
-0.019594117999076843,
-0.04115790128707886,
0.032254744321107864,
-0.0051240636967122555,
-0.029788697138428688,
-0.01589035615324974,
0.0005194036639295518,
-0.017006361857056618,
0.0064752837643027306,
0.01827962137758732,
-0.01685504801571369,
-0.01432996615767479,
0.010074561461806297,
0.02567567490041256,
-0.03369828313589096,
-0.024330222979187965,
-0.0077805775217711926,
-0.03465291112661362,
0.02224358543753624,
0.005308868363499641,
0.013336263597011566,
0.044228702783584595,
-0.0005214494303800166,
-0.011890091933310032,
-0.026041697710752487,
-0.012890225276350975,
0.027000101283192635,
-0.000820139714051038,
-0.0016025538789108396,
0.04125259071588516,
-0.023537354543805122,
-0.024287091568112373,
0.0697043314576149,
-0.020873891189694405,
-1.2706476759660745e-8,
-0.04517102614045143,
0.0012898956192657351,
-0.025927411392331123,
0.00019392528338357806,
0.0022972889710217714,
0.026437807828187943,
-0.008569306693971157,
-0.014447571709752083,
0.011354795657098293,
0.009833713062107563,
0.005213765427470207,
-0.013333898968994617,
0.025965457782149315,
0.001315785339102149,
0.011285152286291122,
-0.04155917093157768,
-0.0009836276294663548,
-0.026880068704485893,
0.03823446109890938,
0.024887138977646828,
-0.0149019043892622,
0.03869352117180824,
-0.0578487403690815,
0.015331614762544632,
0.028587719425559044,
-0.03171125054359436,
0.03181410953402519,
-0.05405550077557564,
0.017091646790504456,
-0.023450598120689392,
0.02773534320294857,
-0.025774655863642693,
-0.02124050445854664,
0.009284366853535175,
-0.03952538222074509,
-0.04477893188595772,
0.02034822478890419,
0.03360360115766525,
0.00476117292419076,
0.03749193251132965,
-0.003282747697085142,
0.012910531833767891,
-0.044241681694984436,
-0.03210822865366936,
-0.011500644497573376,
-0.007470928598195314,
-0.0237103383988142,
-0.04294094070792198,
0.02747100032866001,
-0.04694129154086113,
-0.010141224600374699,
-0.010744310915470123,
0.06362266093492508,
0.012315068393945694,
0.033710408955812454,
0.015293378382921219,
0.0007444446091540158,
-0.0026099802926182747,
-0.002701076213270426,
-0.02805858850479126,
0.022802365943789482,
0.01649995893239975,
-0.032151274383068085,
0.0002293471625307575
] | neo4j-cypher-step-by-step-to-creating-a-linked-list-of-adjacent-nodes-using-unwind | https://markhneedham.com/blog/2015/06/04/neo4j-cypher-step-by-step-to-creating-a-linked-list-of-adjacent-nodes-using-unwind |
false | 2015-06-05 21:25:25 | Netty: Testing encoders/decoders | [
"java",
"netty"
] | [
"Java"
] | I've been working with Netty a bit recently and having built a pipeline of encoders/decoders as described in this http://seeallhearall.blogspot.co.uk/2012/05/netty-tutorial-part-1-introduction-to.html[excellent tutorial] wanted to test that the encoders and decoders were working without having to send real messages around.
Luckily there is a https://netty.io/4.0/api/io/netty/channel/embedded/EmbeddedChannel.html[EmbeddedChannel] which makes our life very easy indeed.
Let's say we've got a message 'Foo' that we want to send across the wire. It only contains a single integer value so we'll just send that and reconstruct 'Foo' on the other side.
We might write the following encoder to do this:
[source,java]
----
// Examples uses Netty 4.0.28.Final
public static class MessageEncoder extends MessageToMessageEncoder<Foo>
{
@Override
protected void encode( ChannelHandlerContext ctx, Foo msg, List<Object> out ) throws Exception
{
ByteBuf buf = ctx.alloc().buffer();
buf.writeInt( msg.value() );
out.add( buf );
}
}
public static class Foo
{
private Integer value;
public Foo(Integer value)
{
this.value = value;
}
public int value()
{
return value;
}
}
----
So all we're doing is taking the 'value' field out of 'Foo' and putting it into the list which gets passed downstream.
Let's write a test which simulates sending a 'Foo' message and has an empty decoder attempt to process the message:
[source,java]
----
@Test
public void shouldEncodeAndDecodeVoteRequest()
{
// given
EmbeddedChannel channel = new EmbeddedChannel( new MessageEncoder(), new MessageDecoder() );
// when
Foo foo = new Foo( 42 );
channel.writeOutbound( foo );
channel.writeInbound( channel.readOutbound() );
// then
Foo returnedFoo = (Foo) channel.readInbound();
assertNotNull(returnedFoo);
assertEquals( foo.value(), returnedFoo.value() );
}
public static class MessageDecoder extends MessageToMessageDecoder<ByteBuf>
{
@Override
protected void decode( ChannelHandlerContext ctx, ByteBuf msg, List<Object> out ) throws Exception { }
}
----
So in the test we write 'Foo' to the outbound channel and then read it back into the inbound channel and then check what we've got. If we run that test now this is what we'll see:
[source,java]
----
junit.framework.AssertionFailedError
at NettyTest.shouldEncodeAndDecodeVoteRequest(NettyTest.java:28)
----
The message we get back is null which makes sense given that we didn't bother writing the decoder. Let's implement the decoder then:
[source,java]
----
public static class MessageDecoder extends MessageToMessageDecoder<ByteBuf>
{
@Override
protected void decode( ChannelHandlerContext ctx, ByteBuf msg, List<Object> out ) throws Exception
{
int value = msg.readInt();
out.add( new Foo(value) );
}
}
----
Now if we run our test again it's all green and happy. We can now go and encode/decode some more complex structures and update our test accordingly. | null | null | [
-0.006613335572183132,
-0.04574466124176979,
-0.029042435809969902,
0.0459679439663887,
0.07298603653907776,
0.015868578106164932,
0.01981431432068348,
0.027926115319132805,
0.013273470103740692,
-0.030726788565516472,
0.004719208925962448,
0.007720995228737593,
-0.07961083948612213,
0.038374487310647964,
-0.009503956884145737,
0.08476699143648148,
0.06991197913885117,
-0.025589540600776672,
0.0628029927611351,
0.0026751933619379997,
0.015028398483991623,
0.043528370559215546,
0.010390877723693848,
0.043801162391901016,
0.02923506312072277,
0.019208859652280807,
-0.018778745085000992,
0.00035593166830949485,
-0.047490935772657394,
0.014930233359336853,
0.032561853528022766,
0.019587265327572823,
0.004811298567801714,
-0.02370315045118332,
-0.011892109178006649,
-0.0276448093354702,
-0.01829325407743454,
-0.001701593748293817,
0.027161959558725357,
0.028482338413596153,
-0.08202391117811203,
0.02467983216047287,
-0.01740754395723343,
0.019676323980093002,
-0.05388111248612404,
-0.011455275118350983,
-0.031346388161182404,
-0.01734963431954384,
-0.002191042061895132,
-0.0039009684696793556,
-0.06018873304128647,
0.019810525700449944,
-0.02790980413556099,
0.041209857910871506,
0.034481149166822433,
0.04423587769269943,
0.027638740837574005,
-0.08965887874364853,
0.03307987377047539,
-0.06521017104387283,
-0.006476526614278555,
-0.028194360435009003,
-0.0023415826726704836,
0.012788099236786366,
-0.0032593831419944763,
-0.02221503295004368,
-0.003411841345950961,
0.061697933822870255,
-0.041897501796483994,
-0.03118370845913887,
-0.029410842806100845,
0.003797239391133189,
-0.04000583291053772,
-0.01461978442966938,
0.028288941830396652,
-0.06400207430124283,
-0.0006127273663878441,
0.05869032070040703,
0.013348530046641827,
0.044046495109796524,
-0.009105135686695576,
0.010078484192490578,
0.01786193996667862,
0.012517007999122143,
0.04157943278551102,
-0.02397046610713005,
-0.021262047812342644,
0.009748710319399834,
-0.04493238776922226,
0.05617605894804001,
0.0007738962303847075,
-0.03978816047310829,
-0.005970385856926441,
0.004107657819986343,
-0.03629499673843384,
0.0017676753923296928,
-0.022536341100931168,
-0.0020885823760181665,
0.013908916153013706,
-0.020648345351219177,
-0.018219446763396263,
0.014166394248604774,
0.024746034294366837,
0.021769292652606964,
-0.05954713001847267,
-0.027110105380415916,
-0.028060462325811386,
-0.048643503338098526,
-0.006289636250585318,
0.014696834608912468,
-0.011222291737794876,
-0.008194850757718086,
0.010142072103917599,
-0.0011758392211049795,
-0.08115865290164948,
0.04620824009180069,
0.031058473512530327,
-0.025904135778546333,
-0.012783546932041645,
0.04223236069083214,
0.0632782056927681,
0.023437494412064552,
-0.011411933228373528,
0.09840256720781326,
0.009668262675404549,
0.029239725321531296,
-0.03392472118139267,
0.06337376683950424,
0.0008777318871580064,
-0.05991822108626366,
-0.003324303776025772,
0.058364324271678925,
0.01748364418745041,
0.0015595083823427558,
0.008318222127854824,
-0.014852182939648628,
-0.018385082483291626,
-0.014934593811631203,
0.007182772736996412,
0.02490353211760521,
-0.022080568596720695,
-0.01511063426733017,
0.034300658851861954,
-0.0014796481700614095,
0.0037959793116897345,
0.008333531208336353,
-0.01620090752840042,
-0.01638147048652172,
0.000857604609336704,
0.07324878871440887,
-0.003012450411915779,
0.03293163701891899,
0.07405557483434677,
-0.037193410098552704,
-0.006076086312532425,
0.04247494041919708,
-0.003109830431640148,
0.042051684111356735,
-0.01464497298002243,
0.044275492429733276,
0.04206457361578941,
0.01975896768271923,
0.02421354129910469,
0.027365215122699738,
0.012295656837522984,
-0.007440140936523676,
0.00959300808608532,
0.047560229897499084,
-0.02331966906785965,
-0.013534530065953732,
-0.030888939276337624,
-0.0535564199090004,
0.055254627019166946,
-0.03628719598054886,
-0.03891453891992569,
-0.011113849468529224,
0.05812064930796623,
0.008399685844779015,
0.044411346316337585,
-0.021963611245155334,
-0.059604041278362274,
0.022031476721167564,
0.011146949604153633,
0.013671674765646458,
0.014321992173790932,
0.00651397043839097,
0.07676495611667633,
0.020989729091525078,
-0.0449657179415226,
0.011844305321574211,
-0.04352514073252678,
-0.05539869889616966,
-0.057582203298807144,
-0.002298822160810232,
0.06208621338009834,
-0.033459655940532684,
0.004983981605619192,
0.036767054349184036,
0.05239519104361534,
0.016718314960598946,
0.024152010679244995,
-0.03994947299361229,
-0.004968513734638691,
-0.03448540344834328,
-0.044804930686950684,
0.04041659086942673,
0.04782429710030556,
-0.02512473426759243,
-0.06054064258933067,
0.012419360689818859,
-0.0035364835057407618,
-0.0200410857796669,
0.03605688363313675,
-0.03339795768260956,
0.04211064428091049,
0.018971368670463562,
0.019715337082743645,
-0.013865172863006592,
0.07150094211101532,
-0.059356287121772766,
0.022295676171779633,
-0.007001933176070452,
-0.023583121597766876,
-0.002118317410349846,
-0.017205357551574707,
0.1454475075006485,
0.038774557411670685,
-0.017056908458471298,
-0.029200077056884766,
0.039193157106637955,
0.033263348042964935,
-0.07201667129993439,
0.01003120094537735,
-0.023158133029937744,
0.0072169252671301365,
-0.003231664886698127,
-0.04819799214601517,
0.003816867247223854,
0.02205565571784973,
-0.034674521535634995,
0.01578184962272644,
0.08861228078603745,
-0.02211860381066799,
0.04703163728117943,
-0.0016797150019556284,
-0.006043910514563322,
0.02886325493454933,
-0.0556209459900856,
-0.04577244073152542,
0.009433015249669552,
-0.005388133693486452,
-0.008481263183057308,
0.060412053018808365,
-0.04916497692465782,
-0.038287676870822906,
-0.012827751226723194,
-0.05495469272136688,
0.0028474624268710613,
0.05255654454231262,
0.04527683183550835,
0.012765874154865742,
0.018842121586203575,
-0.01696556806564331,
0.015363753773272038,
-0.027590274810791016,
-0.048946402966976166,
0.006947250571101904,
0.007993046194314957,
0.027899159118533134,
0.028758103027939796,
0.015024550259113312,
0.013911191374063492,
0.03480008989572525,
0.0165175199508667,
-0.013335399329662323,
-0.013769837096333504,
0.03892695903778076,
-0.016108162701129913,
-0.0027773783076554537,
-0.023891698569059372,
-0.036205969750881195,
0.03735378012061119,
-0.0374889075756073,
-0.0346333384513855,
0.024632658809423447,
-0.07381890714168549,
0.023974323645234108,
-0.06215581297874451,
-0.03771550580859184,
-0.00976584292948246,
0.046713922172784805,
0.027136530727148056,
-0.007758954539895058,
0.016972878947854042,
0.07935037463903427,
0.01155351847410202,
0.015508203767240047,
0.01835242100059986,
0.010148531757295132,
0.0025417092256247997,
0.004585652146488428,
0.012473746202886105,
0.020570021122694016,
-0.0002989508502651006,
-0.030946020036935806,
-0.05030028522014618,
0.07719447463750839,
-0.031896188855171204,
-0.27604910731315613,
0.034110695123672485,
0.000056142853281926364,
-0.02454613521695137,
0.04456329345703125,
-0.042339835315942764,
0.0005358709022402763,
-0.0404677577316761,
-0.0050386288203299046,
0.03631845489144325,
-0.03518572449684143,
-0.05664585158228874,
-0.023855581879615784,
0.04597963020205498,
0.018294064328074455,
-0.038272153586149216,
-0.00757584348320961,
-0.02700902335345745,
0.01575380191206932,
0.03379834070801735,
0.0048017315566539764,
-0.0564141608774662,
0.0006706417188979685,
0.0461534783244133,
0.040109679102897644,
0.017345117405056953,
-0.09495580941438675,
0.037536635994911194,
-0.02765646018087864,
-0.0015876141842454672,
-0.02094128727912903,
-0.020647739991545677,
0.005598107818514109,
-0.026970883831381798,
-0.005032469518482685,
-0.014119169674813747,
0.029972629621624947,
0.027305638417601585,
-0.0247268695384264,
0.0029362323693931103,
-0.03985929116606712,
-0.049297358840703964,
-0.012066316790878773,
-0.009324497543275356,
0.052243221551179886,
-0.007951251231133938,
-0.0569327287375927,
-0.009069230407476425,
-0.021507274359464645,
0.06261200457811356,
-0.06800982356071472,
-0.028334971517324448,
0.03406456485390663,
0.028566762804985046,
-0.012636248953640461,
-0.029296133667230606,
-0.023388752713799477,
-0.025343002751469612,
-0.03325250372290611,
-0.013964829035103321,
0.0005575129180215299,
-0.04609880968928337,
-0.029315374791622162,
-0.03904140740633011,
0.010874885134398937,
-0.052273672074079514,
-0.04889373108744621,
0.00880268681794405,
0.0683584213256836,
0.006844295188784599,
-0.026624424383044243,
0.00929621234536171,
0.00031012334511615336,
-0.11614730209112167,
0.025993967428803444,
-0.03968563675880432,
-0.012252005748450756,
-0.033336348831653595,
0.008443223312497139,
0.03900233283638954,
-0.034211400896310806,
-0.03572933375835419,
0.04115726798772812,
0.017336038872599602,
0.018642324954271317,
-0.005636598914861679,
0.023501133546233177,
-0.04323255270719528,
-0.00815671682357788,
-0.009324034675955772,
0.07900704443454742,
-0.0038229261990636587,
-0.013822252862155437,
-0.03858625888824463,
0.0016645878786221147,
0.05302972346544266,
-0.0017646132037043571,
0.012127879075706005,
-0.018643034622073174,
0.0448172353208065,
0.044347070157527924,
-0.02298026718199253,
0.005766588728874922,
-0.04120607301592827,
0.016116784885525703,
0.00019063038052991033,
-0.037610530853271484,
0.03808758035302162,
0.01574818044900894,
0.004124973434954882,
-0.015166664496064186,
-0.026842352002859116,
-0.015783265233039856,
-0.027775121852755547,
-0.04144091159105301,
-0.01965295895934105,
0.019897524267435074,
0.027123460546135902,
-0.0004670072812587023,
-0.04808444157242775,
-0.013359819538891315,
0.022708673030138016,
0.04716450721025467,
0.017783837392926216,
-0.040043264627456665,
-0.03808628022670746,
-0.04863060265779495,
-0.010303636081516743,
-0.03596124053001404,
0.003133584978058934,
0.003142645349726081,
0.0464177131652832,
0.008653886616230011,
-0.012569683603942394,
0.018391476944088936,
-0.008690658956766129,
-0.02801097184419632,
-0.008184747770428658,
-0.016772914677858353,
-0.0011227051727473736,
0.0034673919435590506,
-0.005280581768602133,
0.007801131345331669,
0.03697892650961876,
0.03323749825358391,
0.019244922325015068,
0.028395647183060646,
-0.0020067591685801744,
-0.03321819007396698,
0.004728406667709351,
0.03406282514333725,
-0.09316761046648026,
0.010593438521027565,
-0.026318859308958054,
-0.03713540360331535,
-0.0034840451553463936,
0.03272556886076927,
-0.014918006025254726,
-0.02939012460410595,
-0.03375529125332832,
0.03377959132194519,
-0.045069530606269836,
-0.008509763516485691,
-0.012130054645240307,
0.037373799830675125,
0.05637936294078827,
-0.03256484121084213,
0.015462907962501049,
0.0015663253143429756,
-0.052721988409757614,
-0.0026617548428475857,
-0.00451983418315649,
-0.017840364947915077,
0.034337542951107025,
0.008007599972188473,
0.021683469414711,
-0.010014543309807777,
0.009575523436069489,
0.022554727271199226,
0.025872619822621346,
0.0459575392305851,
-0.014530879445374012,
0.02735242061316967,
0.014027551747858524,
0.041943829506635666,
0.004939761944115162,
0.008943315595388412,
0.007826381362974644,
-0.028293192386627197,
-0.00995109137147665,
-0.023570647463202477,
-0.016630589962005615,
-0.03309844061732292,
0.03702392801642418,
-0.03332846611738205,
-0.06621155142784119,
0.021043820306658745,
0.012601078487932682,
0.020407499745488167,
-0.0010653497884050012,
0.01976015791296959,
0.00007451995770679787,
-0.03521834313869476,
0.0272234957665205,
0.04154021665453911,
-0.03860586881637573,
0.01676764339208603,
0.007466426119208336,
0.006893438752740622,
0.016370438039302826,
0.008334701880812645,
-0.026524508371949196,
-0.03575396537780762,
0.0027490470092743635,
-0.018284369260072708,
-0.0421634204685688,
-0.024717362597584724,
-0.010468910448253155,
0.009726833552122116,
-0.0056884693913161755,
-0.006043459754437208,
-0.008318270556628704,
-0.006436442956328392,
-0.022199051454663277,
-0.0391727089881897,
0.030535124242305756,
-0.0215204618871212,
0.020034590736031532,
-0.0004251512873452157,
-0.008091466501355171,
0.013878552243113518,
-0.017227062955498695,
0.04991144314408302,
0.03967280685901642,
-0.01315295696258545,
-0.03459525853395462,
-0.04750005155801773,
0.02298763394355774,
-0.015496117062866688,
0.05449690297245979,
0.007743136491626501,
-0.027486762031912804,
-0.05876021087169647,
0.0027876091189682484,
-0.02379460632801056,
0.038161348551511765,
-0.009204333648085594,
-0.01606886088848114,
0.02530577778816223,
0.046254172921180725,
0.035819269716739655,
0.03209652006626129,
-0.00006531445251312107,
-0.039447121322155,
0.07334952801465988,
-0.04826018959283829,
-0.029720280319452286,
0.00024842791026458144,
-0.06369573622941971,
0.015548408962786198,
0.01934124156832695,
0.013853125274181366,
-0.07099372148513794,
0.0569688081741333,
0.04225216805934906,
0.020168377086520195,
0.012228086590766907,
-0.01434832252562046,
0.018451835960149765,
-0.01917283795773983,
0.009912598878145218,
-0.07189835608005524,
0.019302058964967728,
0.04066463187336922,
0.027079280465841293,
-0.004973745439201593,
-0.02864650823175907,
-0.04483694210648537,
0.02092202752828598,
-0.08361538499593735,
-0.024921167641878128,
0.02901013381779194,
-0.0007252826471813023,
-0.012300948612391949,
0.019206903874874115,
-0.05116140842437744,
0.01840631663799286,
0.026058249175548553,
-0.04558547958731651,
-0.015507380478084087,
-0.028832711279392242,
0.039842940866947174,
0.013943814672529697,
0.014651719480752945,
-0.0059306141920387745,
-0.00820911955088377,
0.052774958312511444,
0.02915334701538086,
0.08050736039876938,
0.031198011711239815,
-0.01380427647382021,
0.027129927650094032,
0.04205122962594032,
-0.023862352594733238,
0.013444856740534306,
0.016488928347826004,
-0.01908247545361519,
-0.0834909975528717,
0.008550199680030346,
0.008355689235031605,
-0.035465922206640244,
-0.05038199946284294,
0.05477246269583702,
0.011769142001867294,
-0.04585662856698036,
-0.04724925756454468,
0.037581052631139755,
-0.02390388585627079,
-0.03644679859280586,
-0.02821257710456848,
0.014467304572463036,
-0.03660566359758377,
0.07468201220035553,
0.0013769594952464104,
-0.0074088857509195805,
0.07680550217628479,
-0.016859987750649452,
-0.03620081767439842,
0.007160407491028309,
0.09590291231870651,
0.06937482208013535,
0.02716084010899067,
0.0038792528212070465,
0.05376477912068367,
-0.026641203090548515,
-0.036101777106523514,
0.01103783305734396,
-0.0084874602034688,
-0.023023901507258415,
-0.014437508769333363,
-0.006155933253467083,
0.07911805808544159,
-0.023492595180869102,
0.06354466080665588,
-0.06421228498220444,
0.012497786432504654,
0.04379021003842354,
0.028700174763798714,
0.019076960161328316,
0.05597372725605965,
0.016836091876029968,
-0.009982218034565449,
0.009520178660750389,
-0.047294698655605316,
0.0036986484192311764,
-0.016769234091043472,
-0.0020154411904513836,
0.03731894493103027,
0.01883673295378685,
0.026188209652900696,
0.012465844862163067,
0.027935992926359177,
0.07466841489076614,
-0.005505498498678207,
-0.016968632116913795,
-0.015038036741316319,
0.017864806577563286,
0.0026601559948176146,
-0.018281547352671623,
-0.03170638903975487,
-0.046272847801446915,
-0.016903361305594444,
-0.05064781382679939,
-0.041615284979343414,
-0.053347453474998474,
-0.013332493603229523,
0.010878031142055988,
-0.01298013050109148,
-0.003710925579071045,
-0.01673511043190956,
-0.006927188020199537,
-0.04659321531653404,
-0.06204776093363762,
-0.07321026176214218,
-0.044490113854408264,
-0.07582990825176239,
-0.03602838143706322,
0.0027616654988378286,
-0.02237427607178688,
-0.04221612215042114,
-0.037825461477041245,
-0.06104997918009758,
-0.0353170745074749,
0.0645541250705719,
-0.026831308379769325,
-0.01693587750196457,
0.051946673542261124,
0.015614059753715992,
0.00739541370421648,
0.041150856763124466,
0.05289110541343689,
0.026227442547678947,
0.018118111416697502,
-0.031172873452305794,
-0.022934922948479652,
0.030344026163220406,
0.002498420188203454,
0.009145052172243595,
-0.06842077523469925,
-0.022073589265346527,
0.05884625017642975,
0.013446970842778683,
-0.06574898958206177,
0.0012263610260561109,
0.035286977887153625,
0.01606346294283867,
0.06324046105146408,
-0.02358347922563553,
0.004078428260982037,
0.004946064669638872,
-0.019545409828424454,
0.0029788254760205746,
0.00562781747430563,
0.05403759330511093,
-0.013274908997118473,
0.08585447072982788,
0.07054063677787781,
-0.018514588475227356,
0.005245328415185213,
0.0028519255574792624,
-0.009409387595951557,
-0.004433774389326572,
-0.05450339987874031,
-0.02768842875957489,
-0.04996233060956001,
-0.04707328975200653,
-0.009367065504193306,
0.05497560277581215,
-0.023682357743382454,
-0.01981724612414837,
0.026524975895881653,
0.03234415501356125,
-0.02082056924700737,
0.009561003185808659,
-0.051481012254953384,
0.033112723380327225,
-0.015071427449584007,
-0.03827042505145073,
-0.012842931784689426,
0.04186811298131943,
-0.011242697015404701,
-0.02420824207365513,
0.022209221497178078,
-0.043180402368307114,
0.0007208897732198238,
0.008049535565078259,
0.07165484130382538,
0.03340587392449379,
-0.0012525635538622737,
0.007647420279681683
] | [
-0.09670232981443405,
-0.009405069053173065,
-0.060613155364990234,
-0.053922075778245926,
0.025105075910687447,
-0.04819243773818016,
0.0050100116059184074,
0.01340564712882042,
-0.017186399549245834,
-0.012838371098041534,
-0.013257085345685482,
-0.053691595792770386,
-0.009408515878021717,
-0.016863247379660606,
0.07640564441680908,
0.012255259789526463,
-0.0023503885604441166,
-0.057509783655405045,
-0.016176044940948486,
0.03428274020552635,
0.0481051430106163,
-0.03074331395328045,
-0.029778124764561653,
-0.02831231616437435,
0.027187420055270195,
-0.0037146066315472126,
0.04675975814461708,
-0.0365886315703392,
-0.009468093514442444,
-0.19486986100673676,
0.023760449141263962,
0.018054349347949028,
0.017468327656388283,
-0.012776828370988369,
-0.019345317035913467,
-0.008873254992067814,
0.015106184408068657,
-0.025879163295030594,
-0.019748752936720848,
0.04561358317732811,
0.0034842388704419136,
0.019763413816690445,
-0.06774955242872238,
-0.04015425592660904,
0.056466974318027496,
-0.037831101566553116,
0.0036244227085262537,
-0.04086963087320328,
0.011703546158969402,
-0.01936972141265869,
-0.04835304990410805,
-0.00779703538864851,
0.010124851018190384,
-0.0006272158934734762,
0.015844516456127167,
0.0189607422798872,
0.034828584641218185,
0.07187944650650024,
0.029525646939873695,
0.02234727516770363,
-0.002334089484065771,
-0.015067078173160553,
-0.1204959973692894,
0.07743038982152939,
0.03973144292831421,
0.058068420737981796,
-0.007195334415882826,
0.014909863471984863,
-0.014441174454987049,
0.07507438957691193,
0.05139435455203056,
-0.016428334638476372,
-0.05020392686128616,
0.07542096078395844,
-0.0011049791937693954,
0.009242270141839981,
0.012998552061617374,
0.018190376460552216,
0.038641393184661865,
-0.035971421748399734,
-0.05296016484498978,
-0.04123125970363617,
0.011379276402294636,
-0.009846230037510395,
-0.04196253418922424,
0.024151401594281197,
-0.00010472099529579282,
0.024974480271339417,
0.014369209297001362,
0.0041646650061011314,
0.01829220913350582,
0.0023446695413440466,
0.0032835029996931553,
0.014994298107922077,
-0.08520257472991943,
-0.009006236679852009,
-0.026624739170074463,
-0.004384554456919432,
-0.021606553345918655,
0.41203880310058594,
-0.020520009100437164,
-0.04709179326891899,
0.040790095925331116,
0.009375805035233498,
0.03527553752064705,
-0.008935526944696903,
-0.01841454766690731,
-0.03232332319021225,
0.006638066377490759,
-0.026626644656062126,
0.008214298635721207,
-0.008704603649675846,
0.05065635219216347,
-0.021194785833358765,
0.01154030580073595,
0.03568063676357269,
0.011603097431361675,
0.007102464325726032,
-0.005364045035094023,
0.00040516973240301013,
-0.03222144395112991,
0.0007618489325977862,
0.015618547797203064,
0.029577763751149178,
0.012294524349272251,
-0.03648185729980469,
0.03264034539461136,
0.054690778255462646,
0.025028668344020844,
0.059897784143686295,
0.034312449395656586,
-0.03143152594566345,
-0.06815779209136963,
0.00587640842422843,
-0.0033262949436903,
0.036841459572315216,
0.02752641960978508,
-0.02188408374786377,
-0.02214292250573635,
0.016790324822068214,
0.009729409590363503,
-0.025246845558285713,
0.004231952130794525,
-0.011183741502463818,
-0.057573143392801285,
0.09399762004613876,
-0.01077177282422781,
-0.03485997021198273,
-0.0011594697134569287,
-0.03828475996851921,
0.0028395734261721373,
0.05252862349152565,
-0.021976817399263382,
-0.05710739642381668,
0.02795831672847271,
0.03638999164104462,
0.050254642963409424,
-0.01822451874613762,
-0.04362129792571068,
-0.014287426136434078,
0.011812181212008,
-0.01655278168618679,
-0.04970791935920715,
0.054938383400440216,
0.02422727830708027,
-0.1044011265039444,
-0.006046086084097624,
0.023036470636725426,
0.00901165883988142,
-0.10082689672708511,
-0.028550514951348305,
0.015446167439222336,
-0.025842318311333656,
-0.032715924084186554,
0.009706760756671429,
-0.03602652996778488,
-0.03647785261273384,
-0.0052546062506735325,
0.019640197977423668,
0.027431288734078407,
-0.03445640578866005,
-0.0011059046955779195,
-0.01013238076120615,
0.025566380470991135,
-0.021722711622714996,
-0.0938289538025856,
-0.04002835601568222,
-0.001772410236299038,
-0.0355241522192955,
-0.012709423899650574,
-0.036826156079769135,
-0.03603820130228996,
-0.08010949939489365,
0.08202074468135834,
-0.02469884417951107,
-0.015528511255979538,
0.014507077634334564,
0.0003315828216727823,
-0.020836303010582924,
-0.017910262569785118,
0.041974205523729324,
0.06425686925649643,
-0.012590989470481873,
0.052311915904283524,
-0.08063267171382904,
0.028561128303408623,
0.05700651928782463,
-0.06575038284063339,
0.044923584908246994,
0.030743053182959557,
-0.01376356277614832,
0.0019527204567566514,
0.038612041622400284,
0.01542893797159195,
-0.019101828336715698,
-0.04613142088055611,
0.024929868057370186,
0.051488541066646576,
0.03119587153196335,
0.02102982997894287,
-0.05957980453968048,
-0.029394609853625298,
-0.03597881272435188,
-0.3685166835784912,
-0.022419992834329605,
0.007373706437647343,
-0.02663758024573326,
0.05633983388543129,
-0.04215746372938156,
0.01243758574128151,
-0.027349848300218582,
0.015780549496412277,
0.0011690751416608691,
0.10491377115249634,
-0.027619263157248497,
-0.016311414539813995,
-0.09285490214824677,
0.007428585551679134,
0.029921505600214005,
-0.039684779942035675,
-0.031992875039577484,
-0.014766223728656769,
0.049905676394701004,
-0.022948063910007477,
0.028557825833559036,
0.011348867788910866,
-0.03359634801745415,
-0.019579410552978516,
-0.03367241472005844,
0.09471036493778229,
-0.02058625966310501,
0.1380676031112671,
-0.03929764777421951,
0.029145721346139908,
0.025199327617883682,
-0.00008337678445968777,
-0.0879245325922966,
-0.00934590958058834,
-0.033567916601896286,
-0.002299840794876218,
0.03707434982061386,
0.031950693577528,
-0.018605217337608337,
-0.06689667701721191,
0.013693710789084435,
-0.026288224384188652,
-0.0820985734462738,
-0.014268412254750729,
0.003857529489323497,
-0.023489974439144135,
-0.0453328937292099,
-0.029246974736452103,
0.06092580035328865,
0.01197903323918581,
-0.015979284420609474,
0.017810851335525513,
0.045748285949230194,
0.026143044233322144,
-0.04534061998128891,
-0.035629335790872574,
-0.01648760959506035,
0.03516644611954689,
0.02274390496313572,
0.054626915603876114,
0.06665479391813278,
0.006108268164098263,
-0.07976260781288147,
-0.00107059336733073,
0.03277220577001572,
0.013820088468492031,
0.006701769772917032,
0.04739852622151375,
-0.0426633283495903,
-0.015488941222429276,
0.10829685628414154,
0.015106323175132275,
0.00451850239187479,
0.04127483814954758,
0.0652587041258812,
-0.026505498215556145,
-0.015801984816789627,
0.010987330228090286,
0.01017257384955883,
0.026897849515080452,
0.010243795812129974,
0.061867088079452515,
-0.04639158770442009,
-0.008448236621916294,
0.05262555927038193,
-0.006291440688073635,
0.01902802102267742,
0.04786233976483345,
0.013338777236640453,
-0.03662940114736557,
0.015145719051361084,
-0.004797689616680145,
-0.0685533657670021,
0.027264196425676346,
-0.032752107828855515,
-0.2539308965206146,
-0.006843830458819866,
0.02682211995124817,
0.04890155419707298,
-0.028365643694996834,
0.026495154947042465,
0.051715221256017685,
-0.03324482589960098,
-0.039273664355278015,
0.03050973452627659,
0.013506361283361912,
0.005126021336764097,
-0.007699903100728989,
0.005351353902369738,
0.04581252485513687,
0.01229280699044466,
0.047807566821575165,
0.007257536053657532,
0.00016899144975468516,
0.017714308574795723,
0.0213188324123621,
-0.03136098384857178,
0.16874605417251587,
0.03003058396279812,
0.02916465327143669,
0.030906083062291145,
-0.00886143185198307,
0.05300217121839523,
0.10771964490413666,
0.007633815985172987,
0.04102863743901253,
0.0038992161862552166,
0.05303437262773514,
-0.008434951305389404,
0.02697182074189186,
-0.06333773583173752,
0.004292694851756096,
0.03753754124045372,
0.017868032678961754,
-0.018035007640719414,
-0.010141435079276562,
0.013706226833164692,
-0.0356614924967289,
0.017542172223329544,
0.07729056477546692,
0.04626339301466942,
-0.026354512199759483,
-0.019088471308350563,
-0.028146151453256607,
0.0020679912995547056,
-0.01941119320690632,
-0.02329615131020546,
0.03854241222143173,
-0.017229130491614342,
0.014739508740603924,
0.059190623462200165,
-0.011919132433831692,
-0.07126857340335846,
-0.04050242900848389,
0.04339878633618355,
0.005863099824637175,
-0.04528205469250679,
0.09917298704385757,
0.02074584923684597,
0.022926397621631622
] | [
0.031792640686035156,
0.021573785692453384,
-0.002164815552532673,
0.0029301487375050783,
-0.005883798003196716,
0.009258984588086605,
0.010126851499080658,
0.017620382830500603,
0.003261127043515444,
0.005198642611503601,
-0.029576247557997704,
-0.025116752833127975,
0.009854073636233807,
-0.002961518708616495,
0.005677567329257727,
0.007632351480424404,
0.013957860879600048,
-0.00818135030567646,
-0.00030008150497451425,
-0.04875769093632698,
-0.011991383507847786,
0.04948408529162407,
0.03982856497168541,
-0.034087952226400375,
0.021379651501774788,
-0.0198811162263155,
-0.03027411922812462,
-0.012908738106489182,
0.027919519692659378,
-0.12760286033153534,
-0.02590813860297203,
0.0021199421025812626,
-0.0287775918841362,
0.03865671902894974,
-0.018967701122164726,
-0.0018251733854413033,
0.016000017523765564,
0.047591160982847214,
-0.008496388792991638,
0.04903561621904373,
0.010525556281208992,
-0.03372576832771301,
-0.01498909667134285,
0.021954406052827835,
-0.009787079878151417,
-0.020058512687683105,
0.012540154159069061,
-0.02077534981071949,
0.0026503754779696465,
-0.036466628313064575,
-0.006049286108464003,
0.02086586505174637,
0.028710242360830307,
0.06191530078649521,
0.029263922944664955,
-0.0313740074634552,
-0.034570276737213135,
0.004357270430773497,
-0.00845643226057291,
-0.0031262743286788464,
0.00023292105470318347,
0.01599372737109661,
-0.005639280192553997,
-0.02390121854841709,
-0.01476764865219593,
-0.01028208713978529,
0.02386578358709812,
0.02953205816447735,
0.006885820999741554,
-0.021776190027594566,
-0.018772471696138382,
0.008458455093204975,
-0.05852128192782402,
0.009928543120622635,
0.000496043125167489,
0.021353984251618385,
0.042718689888715744,
0.0025021524634212255,
0.012118191458284855,
0.013801981694996357,
-0.017547160387039185,
0.015085974708199501,
0.007463504560291767,
0.004674213472753763,
0.02058412879705429,
-0.00034356280229985714,
0.009303934872150421,
0.015075250528752804,
-0.020059915259480476,
0.041233696043491364,
-0.062132854014635086,
0.004661806859076023,
-0.018703635782003403,
0.02504713088274002,
-0.05306069552898407,
-0.006748942192643881,
-0.041089944541454315,
-0.04113386943936348,
-0.013511192984879017,
0.84018874168396,
-0.0016396668506786227,
0.0038788565434515476,
0.005772000178694725,
0.00707416282966733,
-0.009946687147021294,
-0.012596345506608486,
0.02233739010989666,
0.009108451195061207,
0.01415940746665001,
-0.037815727293491364,
0.010505249723792076,
-0.0025536580942571163,
0.03266362100839615,
0.03454919904470444,
0.050645552575588226,
0.01168596651405096,
0.02501598373055458,
0.044932834804058075,
-0.006730644032359123,
0.015990853309631348,
-0.016269613057374954,
-0.03153928369283676,
0.005029973108321428,
0.04482066258788109,
-0.0017062032129615545,
-0.1371959149837494,
0.017628198489546776,
-7.177888828331487e-33,
0.027756454423069954,
-0.00402927165850997,
0.00025998413912020624,
0.022510448470711708,
0.019180146977305412,
0.00004416016963659786,
0.025337571278214455,
0.024796046316623688,
-0.01939087174832821,
-0.02321065030992031,
-0.02596823312342167,
-0.0235386211425066,
0.015148398466408253,
0.00495148915797472,
0.04141073673963547,
-0.018626559525728226,
-0.04336853325366974,
0.005580664146691561,
0.02863299660384655,
0.016767779365181923,
-0.004976436961442232,
0.02297230064868927,
-0.01684328354895115,
-0.030811050906777382,
-0.004940116312354803,
-0.008785238489508629,
0.010311225429177284,
-0.03583438694477081,
0.030413338914513588,
-0.056282609701156616,
-0.03238709270954132,
0.024909747764468193,
0.03366120904684067,
-0.03846185654401779,
-0.0161927230656147,
-0.06149055063724518,
0.005779189523309469,
0.03382553160190582,
-0.0042558275163173676,
-0.03510039299726486,
-0.03018207848072052,
0.0004037543258164078,
-0.03496600314974785,
-0.009770040400326252,
-0.02314857766032219,
-0.0483703576028347,
-0.0435442216694355,
0.004751733969897032,
0.01755998469889164,
-0.0036586972419172525,
0.028643617406487465,
0.036296188831329346,
-0.02607213333249092,
-0.022624986246228218,
0.048094432801008224,
-0.007234318647533655,
0.006895058788359165,
0.018952004611492157,
0.017476601526141167,
0.03948744013905525,
-0.013564116321504116,
0.006106627639383078,
-0.022016702219843864,
-0.010882338508963585,
0.01186107937246561,
-0.0030422057025134563,
-0.01050101313740015,
-0.024121545255184174,
-0.017408905550837517,
-0.026065101847052574,
-0.06568629294633865,
-0.005456173326820135,
-0.008953032083809376,
-0.01639074832201004,
0.003133759368211031,
0.007081283256411552,
-0.015808692201972008,
-0.004472668282687664,
0.006529917474836111,
0.021666962653398514,
0.01408497616648674,
0.012332029640674591,
0.017817160114645958,
0.011362491175532341,
0.013339133001863956,
-0.00944580603390932,
0.015078369528055191,
-0.057691384106874466,
0.01723610982298851,
-0.005938715301454067,
0.038404375314712524,
0.058692146092653275,
-0.0012546677608042955,
-0.0087598180398345,
0.007567946333438158,
7.62048081851531e-33,
-0.04173705354332924,
0.043870631605386734,
-0.04051341861486435,
-0.0011717965826392174,
-0.020663172006607056,
-0.04104607179760933,
0.03199902921915054,
0.0029501761309802532,
-0.017375297844409943,
0.03639703243970871,
-0.007290637586265802,
0.0020307940430939198,
0.0006454074173234403,
0.02028515934944153,
0.0855834111571312,
-0.07880454510450363,
-0.007647698745131493,
-0.02200140804052353,
0.050212446600198746,
0.0027736015617847443,
0.04840746521949768,
0.008241643197834492,
0.0032402288634330034,
-0.0001741490268614143,
0.015833713114261627,
0.05314776301383972,
-0.015073570422828197,
0.037760697305202484,
-0.005383794195950031,
-0.04589149355888367,
0.024139832705259323,
-0.0348971001803875,
0.021703656762838364,
-0.05246805027127266,
-0.004560329020023346,
0.021940849721431732,
0.03209090232849121,
0.0021671438589692116,
0.01039180252701044,
0.011794780381023884,
0.02490488439798355,
-0.008365027606487274,
-0.011225746013224125,
0.003992138430476189,
-0.018272249028086662,
-0.02563636377453804,
-0.0010358772706240416,
-0.03834192454814911,
0.017841238528490067,
0.004870580043643713,
0.026687325909733772,
0.0423339307308197,
-0.003940802998840809,
0.0029251473024487495,
0.00731817539781332,
0.03301405906677246,
-0.008274240419268608,
0.004900379106402397,
0.03169422596693039,
-0.0018509628716856241,
-0.010130624286830425,
-0.03192991018295288,
0.011468381620943546,
-0.015170962549746037,
0.00026907181018032134,
-0.021503452211618423,
-0.018884269520640373,
-0.030468584969639778,
-0.012674251571297646,
-0.014206857420504093,
-0.010980364866554737,
-0.0033250031992793083,
-0.0003338821406941861,
0.040291327983140945,
0.05302863195538521,
-0.009602162055671215,
-0.0238852147012949,
0.009299620985984802,
-0.04258061572909355,
0.03162485361099243,
-0.010840347036719322,
0.0339285247027874,
-0.031932566314935684,
-0.025641020387411118,
0.02620362862944603,
-0.010152517817914486,
0.018206028267741203,
-0.006003835238516331,
-0.022956259548664093,
-0.03394008055329323,
-0.012433893978595734,
0.0005826693377457559,
-0.014206800609827042,
0.023478787392377853,
-0.0002184899349231273,
-1.288864570625492e-8,
-0.030300669372081757,
-0.023608362302184105,
-0.026924557983875275,
0.005184803158044815,
0.017308378592133522,
0.007920201867818832,
-0.024778202176094055,
-0.03517263010144234,
0.015256631188094616,
-0.026703733950853348,
0.031531404703855515,
0.0019462520722299814,
0.0075907413847744465,
0.01681518368422985,
0.06258121132850647,
-0.032875169068574905,
-0.0259120911359787,
-0.06834518909454346,
0.043498698621988297,
0.01608327031135559,
0.04916275665163994,
0.019245099276304245,
-0.030036883428692818,
0.014394642785191536,
-0.026601383462548256,
-0.04347310960292816,
0.06608991324901581,
-0.034967102110385895,
-0.03275270015001297,
-0.010817022994160652,
-0.0010676237288862467,
-0.00023139679979067296,
-0.005751826800405979,
0.04333948343992233,
-0.03439654782414436,
0.0031698867678642273,
-0.028859632089734077,
0.0157859418541193,
-0.00804742518812418,
0.0030010277405381203,
0.006155895069241524,
-0.03771178051829338,
-0.01829289086163044,
-0.01630258560180664,
0.024761363863945007,
-0.03523281216621399,
0.009341549128293991,
0.0210898257791996,
0.022296607494354248,
-0.016349121928215027,
0.00028574862517416477,
0.03519415482878685,
0.006866154260933399,
0.015183866024017334,
0.050110798329114914,
-0.013746880926191807,
-0.00700994860380888,
-0.027275502681732178,
-0.02085122838616371,
0.03262956440448761,
0.001198877696879208,
0.026388561353087425,
-0.04427769407629967,
-0.04050813242793083
] | netty-testing-encodersdecoders | https://markhneedham.com/blog/2015/06/05/netty-testing-encodersdecoders |
false | 2015-06-02 06:49:10 | R: dplyr - removing empty rows | [
"r-2",
"dplyr"
] | [
"R"
] | I'm still working my way through the exercises in Think Bayes and in Chapter 6 needed to do some cleaning of the data in a CSV file containing information about the Price is Right.
I downloaded the file using wget:
[source,bash]
----
wget http://www.greenteapress.com/thinkbayes/showcases.2011.csv
----
And then loaded it into R and explored the first few rows using dplyr
[source,R]
----
library(dplyr)
df2011 = read.csv("~/projects/rLearning/showcases.2011.csv")
> df2011 %>% head(10)
X Sep..19 Sep..20 Sep..21 Sep..22 Sep..23 Sep..26 Sep..27 Sep..28 Sep..29 Sep..30 Oct..3
1 5631K 5632K 5633K 5634K 5635K 5641K 5642K 5643K 5644K 5645K 5681K
2
3 Showcase 1 50969 21901 32815 44432 24273 30554 20963 28941 25851 28800 37703
4 Showcase 2 45429 34061 53186 31428 22320 24337 41373 45437 41125 36319 38752
5
...
----
As you can see, we have some empty rows which we want to get rid of to ease future processing. I couldn't find an easy way to filter those out but what we can do instead is have empty columns converted to 'NA' and then filter those.
First we need to tell +++<cite>+++read.csv+++</cite>+++ to treat empty columns as NA:
[source,r]
----
df2011 = read.csv("~/projects/rLearning/showcases.2011.csv", na.strings = c("", "NA"))
----
And now we can filter them out using +++<cite>+++na.omit+++</cite>+++:
[source,r]
----
df2011 = df2011 %>% na.omit()
> df2011 %>% head(5)
X Sep..19 Sep..20 Sep..21 Sep..22 Sep..23 Sep..26 Sep..27 Sep..28 Sep..29 Sep..30 Oct..3
3 Showcase 1 50969 21901 32815 44432 24273 30554 20963 28941 25851 28800 37703
4 Showcase 2 45429 34061 53186 31428 22320 24337 41373 45437 41125 36319 38752
6 Bid 1 42000 14000 32000 27000 18750 27222 25000 35000 22500 21300 21567
7 Bid 2 34000 59900 45000 38000 23000 18525 32000 45000 32000 27500 23800
9 Difference 1 8969 7901 815 17432 5523 3332 -4037 -6059 3351 7500 16136
...
----
Much better! | null | null | [
-0.00018443030421622097,
-0.004227644298225641,
-0.01519932970404625,
0.03340915963053703,
0.09558615833520889,
0.018434016034007072,
0.011162843555212021,
-0.0037328596226871014,
0.0020150530617684126,
0.0013616981450468302,
-0.00915620382875204,
0.020284082740545273,
-0.050513412803411484,
0.02160673774778843,
-0.04113903269171715,
0.09037204831838608,
0.04280010610818863,
0.0025128235574811697,
0.013169387355446815,
0.009373805485665798,
0.04396815598011017,
0.04321650415658951,
0.022594185546040535,
0.041252318769693375,
0.04657002538442612,
-0.039237700402736664,
0.025706136599183083,
0.015240459702908993,
-0.03595808893442154,
0.021090399473905563,
0.05930095165967941,
0.04397660121321678,
-0.0006954018026590347,
-0.020626647397875786,
0.010075411759316921,
0.001971510937437415,
-0.017106324434280396,
0.011070049367845058,
-0.003912402782589197,
0.0017292251577600837,
-0.08388613164424896,
0.031880903989076614,
-0.033279694616794586,
0.020445775240659714,
-0.024208318442106247,
0.005460353568196297,
-0.021507464349269867,
0.009151059202849865,
-0.02603478543460369,
-0.011538156308233738,
-0.039259303361177444,
0.025420980527997017,
0.004726110491901636,
-0.07015098631381989,
-0.0005387619603425264,
0.04943148046731949,
0.01708926074206829,
-0.07181784510612488,
0.04152543097734451,
-0.05892659351229668,
-0.006266012322157621,
-0.028328318148851395,
0.0011145665775984526,
0.03413594886660576,
0.0382247157394886,
-0.05287494882941246,
-0.010358286090195179,
0.0523725263774395,
-0.025881128385663033,
-0.025617878884077072,
-0.04202215373516083,
-0.008720986545085907,
-0.0423768125474453,
-0.01346509251743555,
-0.014190050773322582,
-0.02316867746412754,
0.016363810747861862,
0.03770013153553009,
0.026021301746368408,
0.030393442139029503,
-0.008850425481796265,
-0.009503142908215523,
0.01014685072004795,
-0.005603110883384943,
0.017284851521253586,
-0.06350268423557281,
-0.022677475586533546,
-0.03411759063601494,
-0.07787977159023285,
0.06350148469209671,
-0.011158192530274391,
0.0007797621074132621,
0.023224657401442528,
0.02322007715702057,
-0.04314986988902092,
0.023286547511816025,
0.016680026426911354,
-0.017794746905565262,
0.016276832669973373,
0.0055448440834879875,
-0.07586637139320374,
-0.009070725180208683,
0.05220460146665573,
0.016544505953788757,
-0.073920339345932,
0.004922918509691954,
-0.0032332248520106077,
-0.0069195968098938465,
0.005035376641899347,
0.024302590638399124,
-0.01436152495443821,
-0.003762371838092804,
-0.041241589933633804,
-0.008287780918180943,
-0.08683548867702484,
0.05243617668747902,
0.04396708309650421,
-0.016407407820224762,
-0.012112580239772797,
0.023117225617170334,
0.03755643963813782,
0.03382788226008415,
0.0043178219348192215,
0.05598855018615723,
0.02270088531076908,
0.019272584468126297,
0.01281799841672182,
0.049301303923130035,
0.00239040469750762,
-0.09036076068878174,
-0.00591291906312108,
0.04060840234160423,
-0.019894350320100784,
-0.0043458836153149605,
-0.019481953233480453,
-0.027231985703110695,
-0.008988602086901665,
-0.004381727427244186,
0.04913470521569252,
0.031403932720422745,
0.042525991797447205,
-0.014760010875761509,
0.013720773160457611,
-0.007255257107317448,
0.056651771068573,
0.006381741259247065,
0.004575630649924278,
-0.023829646408557892,
-0.0462733656167984,
0.010940114967525005,
0.030867019668221474,
0.021595267578959465,
0.06954115629196167,
-0.02183917723596096,
0.033361975103616714,
0.08375278115272522,
0.00927798729389906,
0.0164360161870718,
-0.0037330847699195147,
-0.00800636038184166,
0.041780877858400345,
0.05907643213868141,
0.020769700407981873,
0.045018576085567474,
-0.011133202351629734,
-0.045349571853876114,
-0.00036847396404482424,
0.024872595444321632,
-0.03476634994149208,
-0.011287525296211243,
-0.05407533794641495,
-0.059902824461460114,
0.08036939799785614,
-0.047642022371292114,
0.030833972617983818,
0.02611207403242588,
0.07581428438425064,
0.04931720346212387,
0.04011626914143562,
0.008667430840432644,
-0.07721713185310364,
0.03600401431322098,
-0.008902808651328087,
0.009019373916089535,
0.029124807566404343,
-0.037025436758995056,
0.08462077379226685,
0.031111011281609535,
0.0517597422003746,
0.06054925546050072,
-0.07069629430770874,
-0.06650950759649277,
-0.028391340747475624,
-0.016351938247680664,
0.027449503540992737,
-0.024481235072016716,
-0.019195210188627243,
0.07691625505685806,
-0.011105363257229328,
0.021850891411304474,
-0.005162776913493872,
0.033568352460861206,
0.05444774776697159,
-0.049065813422203064,
-0.05342115834355354,
0.008132087998092175,
0.007119445130228996,
-0.005625106859952211,
0.004911321680992842,
0.03954875469207764,
-0.041695185005664825,
0.025785375386476517,
0.012014146894216537,
-0.019336502999067307,
0.03219958767294884,
0.017249999567866325,
0.057074133306741714,
0.023497598245739937,
0.041662901639938354,
-0.049935389310121536,
0.009573820047080517,
-0.006833565887063742,
-0.005632291082292795,
-0.039034198969602585,
-0.005277455784380436,
0.11935820430517197,
0.0467861145734787,
0.010386987589299679,
-0.04706736281514168,
0.034760091453790665,
-0.021238354966044426,
-0.030717555433511734,
0.02041909284889698,
-0.01442889403551817,
-0.007482840213924646,
0.022447487339377403,
-0.03169131278991699,
-0.007792276795953512,
0.0181726086884737,
-0.0193602554500103,
0.003322104923427105,
0.05543678626418114,
0.023487873375415802,
0.02763947658240795,
0.017508137971162796,
-0.02077287994325161,
-0.005794803146272898,
-0.04471427574753761,
-0.09001976996660233,
-0.026295965537428856,
0.03625725582242012,
-0.00023743382189422846,
0.016190730035305023,
-0.05056630074977875,
-0.010913871228694916,
-0.012275506742298603,
-0.08120252937078476,
0.016828691586852074,
0.07624561339616776,
0.05568484961986542,
-0.051938414573669434,
0.053827714174985886,
-0.028825925663113594,
0.006455560214817524,
-0.006866802461445332,
-0.01597638614475727,
-0.025213919579982758,
-0.02996504120528698,
0.01875847764313221,
-0.011840789578855038,
0.006030844524502754,
0.01952405646443367,
-0.011481382884085178,
0.014491722919046879,
-0.0010269785998389125,
-0.04432809352874756,
0.044043537229299545,
-0.008693025447428226,
-0.0035505658015608788,
-0.04169989749789238,
0.012678461149334908,
0.050485555082559586,
-0.021722229197621346,
-0.012745979242026806,
0.01273089274764061,
-0.05495305731892586,
0.047663260251283646,
-0.004391179420053959,
-0.0445529967546463,
-0.01107905711978674,
0.006409095600247383,
0.014161214232444763,
0.030816009268164635,
0.003587026847526431,
0.03509622812271118,
0.023353394120931625,
0.01671013981103897,
0.012687602080404758,
0.02126745879650116,
0.051792435348033905,
-0.005799687933176756,
0.013020900078117847,
0.07905410975217819,
-0.0021931244991719723,
0.014287613332271576,
-0.05026109144091606,
0.017980195581912994,
-0.027503283694386482,
-0.2512870132923126,
0.031196309253573418,
-0.011080089956521988,
-0.03344470262527466,
0.00918803084641695,
-0.061017658561468124,
0.03617316484451294,
-0.031089849770069122,
-0.0334305502474308,
0.006726362742483616,
0.016375131905078888,
-0.02240915223956108,
-0.03782593086361885,
0.04119139164686203,
0.022915069013834,
0.043499305844306946,
0.01609545387327671,
-0.04795117303729057,
0.016924945637583733,
0.05506644397974014,
0.019921477884054184,
-0.006639870814979076,
-0.006335091777145863,
0.0643310546875,
0.01584639400243759,
0.08999358117580414,
-0.05037755146622658,
0.05339000001549721,
-0.07422706484794617,
-0.05403731018304825,
0.02431178279221058,
-0.04345737025141716,
-0.006792770698666573,
-0.01425145659595728,
0.02974764257669449,
-0.009708880446851254,
0.02909853123128414,
0.04447207599878311,
0.010504502803087234,
0.050683341920375824,
-0.012310338206589222,
-0.021749315783381462,
0.013169544748961926,
-0.02373545803129673,
0.06716618686914444,
-0.0018527860520407557,
-0.06447788327932358,
0.0015055802650749683,
-0.026218490675091743,
0.08358929306268692,
-0.01601705327630043,
-0.0034558717161417007,
-0.020731233060359955,
0.025771480053663254,
-0.04772259667515755,
-0.010659578256309032,
-0.025782227516174316,
-0.019300075247883797,
-0.03367802873253822,
-0.03864162415266037,
-0.0037528311368077993,
-0.028098780661821365,
-0.0001570922031532973,
-0.06293798983097076,
-0.013526941649615765,
-0.0633867010474205,
-0.08542080223560333,
-0.012978687882423401,
0.07600465416908264,
0.05087699368596077,
-0.044043444097042084,
-0.007605488412082195,
-0.006005072966217995,
-0.10044153779745102,
0.009812446311116219,
-0.032857608050107956,
-0.02242414653301239,
-0.009953641332685947,
-0.0036012204363942146,
0.0344231054186821,
-0.05142287537455559,
-0.04502938315272331,
0.05098181962966919,
0.020711591467261314,
0.019107801839709282,
-0.02958325855433941,
-0.00913230050355196,
0.0011149091878905892,
-0.04920865222811699,
-0.024434048682451248,
0.03926645219326019,
-0.011882580816745758,
0.0011003855615854263,
-0.012938432395458221,
-0.018805982545018196,
0.0469532236456871,
0.009260880760848522,
-0.010164622217416763,
0.034790001809597015,
0.0536363422870636,
0.03708120808005333,
-0.0431908555328846,
0.012031704187393188,
-0.0817636251449585,
-0.035798896104097366,
-0.014298714697360992,
-0.06750054657459259,
0.040871720761060715,
0.01742357388138771,
0.0014380143256857991,
0.018631204962730408,
-0.0032012208830565214,
0.023326117545366287,
-0.05223410204052925,
-0.028723347932100296,
0.01515395287424326,
0.010069864802062511,
0.009908672422170639,
0.009770408272743225,
-0.0019009780371561646,
-0.045903269201517105,
-0.012901710346341133,
-0.025934575125575066,
-0.03400861471891403,
-0.03195832669734955,
-0.036787062883377075,
0.032545242458581924,
0.000027954209144809283,
-0.0399651862680912,
-0.006688457913696766,
-0.0031099123880267143,
-0.006160994525998831,
0.03806691616773605,
-0.018838636577129364,
0.04703999683260918,
-0.025830617174506187,
-0.0427091047167778,
-0.017464304342865944,
0.0006747237057425082,
0.030910931527614594,
-0.020627135410904884,
-0.0104147307574749,
-0.013252288103103638,
0.045961614698171616,
0.008874901570379734,
-0.004895470105111599,
0.04272272437810898,
0.0011658433359116316,
0.024318788200616837,
-0.01192206796258688,
-0.011259001679718494,
0.00892855878919363,
0.020695094019174576,
-0.013360043056309223,
-0.04045566916465759,
-0.00927782990038395,
0.03737294673919678,
-0.013699006289243698,
-0.0092684431001544,
-0.04465782269835472,
0.016892414540052414,
-0.014977118000388145,
-0.020052963867783546,
-0.03519602119922638,
-0.007528242189437151,
0.04936470463871956,
0.012633314356207848,
-0.010164078325033188,
0.021828895434737206,
0.01004586461931467,
-0.006751941051334143,
0.003118285909295082,
-0.009839530102908611,
-0.011516357772052288,
-0.0035195101518183947,
-0.0024004869628697634,
0.07203448563814163,
-0.009224284440279007,
0.0020999694243073463,
0.008665391243994236,
-0.008319313637912273,
-0.030736606568098068,
-0.004199075512588024,
-0.008750541135668755,
0.032539669424295425,
0.05746090039610863,
-0.01197314728051424,
0.01670910231769085,
-0.03448135405778885,
-0.052891191095113754,
-0.028811242431402206,
-0.018312204629182816,
-0.008763258345425129,
-0.013340563513338566,
-0.0484466552734375,
-0.056814588606357574,
0.009011073969304562,
0.050362877547740936,
-0.03146080672740936,
0.014804868027567863,
-0.005090802907943726,
0.005864602513611317,
-0.020239312201738358,
0.028234245255589485,
0.058055613189935684,
-0.069265216588974,
0.0036886241286993027,
-0.005519020836800337,
-0.018652046099305153,
0.05359882488846779,
-0.017753785476088524,
-0.07280483096837997,
0.007701949682086706,
-0.03040863387286663,
0.052757229655981064,
-0.010427658446133137,
-0.05081550404429436,
-0.05408262461423874,
0.01750851422548294,
-0.012929463759064674,
0.0369190089404583,
-0.017393996939063072,
-0.0024268762208521366,
-0.004802360199391842,
0.0008634349214844406,
-0.008685246109962463,
-0.024826345965266228,
-0.03209457919001579,
0.03475004434585571,
-0.022753093391656876,
-0.02764996513724327,
-0.024523524567484856,
-0.0020736625883728266,
0.030906736850738525,
-0.023580793291330338,
-0.020367193967103958,
-0.015993645414710045,
0.04221787676215172,
-0.009905182756483555,
0.03185134753584862,
-0.00048127202899195254,
0.013190851546823978,
-0.02744000405073166,
0.0235439483076334,
-0.015527834184467793,
0.000949998153373599,
-0.02967546321451664,
-0.004288735333830118,
0.06440623849630356,
0.0559089258313179,
0.008654646575450897,
-0.007920307107269764,
-0.02140091359615326,
-0.0453694649040699,
0.07544079422950745,
-0.023901553824543953,
-0.05589301139116287,
-0.013697576709091663,
-0.03327784687280655,
0.03804424777626991,
0.031364504247903824,
0.011304163374006748,
-0.018656546249985695,
0.023841969668865204,
0.03388318791985512,
0.004588498268276453,
0.04843221604824066,
0.0016458770260214806,
0.03412394970655441,
-0.021778512746095657,
-0.0010859861504286528,
-0.08307452499866486,
-0.0018983532208949327,
0.04403409734368324,
-0.03679003193974495,
-0.0050262282602488995,
-0.015686506405472755,
-0.03955095633864403,
0.05448106676340103,
-0.05380154028534889,
-0.06756533682346344,
0.027085285633802414,
-0.03405752405524254,
0.021424446254968643,
-0.004946304485201836,
-0.04005393013358116,
-0.010451516136527061,
0.05850381776690483,
-0.048885323107242584,
0.006523414049297571,
-0.04864238202571869,
0.054483577609062195,
-0.032670531421899796,
-0.002260495675727725,
-0.01624402403831482,
-0.03550589829683304,
0.05107969418168068,
0.03250730782747269,
0.029420578852295876,
0.04381624609231949,
-0.033922016620635986,
0.0159438643604517,
0.023429125547409058,
-0.03463989868760109,
0.03254363685846329,
0.01968645676970482,
0.006950609851628542,
-0.014564303681254387,
-0.013014793395996094,
0.01807215064764023,
-0.0018633827567100525,
-0.04368309676647186,
0.08372694998979568,
0.005880658980458975,
-0.041069600731134415,
-0.04995647817850113,
0.001966644311323762,
-0.008587988093495369,
0.011183359660208225,
-0.012250874191522598,
-0.012571108527481556,
-0.03615032881498337,
0.03327878937125206,
-0.023252205923199654,
0.019182411953806877,
0.057993605732917786,
-0.013520427979528904,
-0.02114737033843994,
0.009768740274012089,
0.06446778774261475,
0.10307832062244415,
0.050261370837688446,
0.00995600689202547,
0.05291973426938057,
-0.023754406720399857,
-0.03112267144024372,
0.02606951631605625,
-0.02192290872335434,
0.0024455650709569454,
-0.04308333247900009,
-0.0025840764865279198,
0.0582926981151104,
-0.010573905892670155,
0.04789552465081215,
-0.037744712084531784,
-0.025677967816591263,
-0.007153790909796953,
0.002639331389218569,
0.04101625084877014,
0.024927182123064995,
0.003165164729580283,
0.05063913017511368,
-0.006701748818159103,
-0.01524411141872406,
0.013557243160903454,
0.0050796084105968475,
-0.009817065671086311,
0.0048507447354495525,
-0.033915020525455475,
-0.007990388199687004,
0.015850555151700974,
0.0407058410346508,
0.06721875071525574,
-0.027800166979432106,
-0.014042886905372143,
-0.007942777127027512,
0.044222474098205566,
-0.008565923199057579,
0.01914043538272381,
-0.010089730843901634,
-0.030155936256051064,
-0.029532523825764656,
-0.040546901524066925,
-0.035619210451841354,
0.01046688947826624,
-0.0038369835820049047,
-0.010339483618736267,
-0.04732752963900566,
0.005042658653110266,
0.042380623519420624,
0.004810979589819908,
-0.03250482305884361,
-0.07430759072303772,
-0.0377073809504509,
-0.06422603875398636,
-0.08938074111938477,
0.004570947028696537,
0.0025439132004976273,
-0.008051074109971523,
-0.016014669090509415,
-0.03637263923883438,
-0.030742309987545013,
-0.03343323990702629,
0.015044036321341991,
-0.058193452656269073,
-0.026509752497076988,
0.003117115469649434,
0.008653263561427593,
0.006799067370593548,
0.020649271085858345,
0.03309058025479317,
0.015018167905509472,
-0.013675156980752945,
0.016561226919293404,
0.021000951528549194,
0.04699339345097542,
0.011919034644961357,
0.016123909503221512,
-0.05726543068885803,
0.018246520310640335,
-0.00837389100342989,
-0.019853122532367706,
-0.09452077001333237,
0.03355822712182999,
0.019836269319057465,
-0.0010336334817111492,
0.029399674385786057,
0.002726861974224448,
0.01670254021883011,
-0.01179968100041151,
-0.026524219661951065,
0.0024966890923678875,
0.03038129024207592,
0.026954377070069313,
-0.03248627111315727,
0.057058271020650864,
0.03506356105208397,
0.02602194808423519,
-0.07651739567518234,
-0.03089279681444168,
-0.012216172181069851,
0.006104098632931709,
-0.07698536664247513,
0.0022378137800842524,
-0.02894279733300209,
-0.09382455050945282,
-0.026313388720154762,
-0.00330049404874444,
-0.05693171173334122,
-0.021697882562875748,
0.010311943478882313,
-0.0029929231386631727,
-0.01264878734946251,
0.00580686004832387,
-0.029343444854021072,
0.01746544800698757,
-0.024431895464658737,
-0.009305874817073345,
-0.0030412552878260612,
0.07307985424995422,
0.006034212652593851,
0.029645588248968124,
-0.01042155921459198,
-0.017018185928463936,
0.021127302199602127,
-0.021008223295211792,
-0.0003446275950409472,
0.08795791864395142,
0.00987870991230011,
-0.0007160823442973197
] | [
-0.04588267579674721,
-0.012488793581724167,
-0.040818821638822556,
-0.023412862792611122,
0.104642853140831,
-0.03646830841898918,
-0.023205047473311424,
0.028389733284711838,
0.03562961146235466,
0.021889565512537956,
0.032891012728214264,
-0.039594653993844986,
-0.0013550034491345286,
-0.01568421721458435,
0.0502941720187664,
-0.008291566744446754,
-0.008929438889026642,
-0.06096833571791649,
-0.040249504148960114,
0.04968840628862381,
-0.006968069355934858,
-0.0618738979101181,
-0.05480794236063957,
-0.047291241586208344,
0.04612237960100174,
-0.0007566037820652127,
0.02155531942844391,
-0.04365716129541397,
-0.023637281730771065,
-0.2120441496372223,
0.0038208498153835535,
-0.015203171409666538,
0.040071532130241394,
-0.003257074160501361,
0.020629584789276123,
0.0375494621694088,
0.006966779474169016,
-0.002039241837337613,
0.010084838606417179,
0.03204834461212158,
0.018035469576716423,
-0.0009351638145744801,
-0.03334560617804527,
-0.0022275440860539675,
-0.0009642940131016076,
0.0002364452666370198,
-0.025635620579123497,
-0.025340039283037186,
0.009057657793164253,
0.011175058782100677,
-0.07014872133731842,
-0.006750873755663633,
-0.002037955913692713,
-0.019572202116250992,
-0.0049957167357206345,
0.03619449958205223,
0.027557475492358208,
0.04427690804004669,
0.00459429481998086,
0.03986246883869171,
0.022987408563494682,
0.0016319352434948087,
-0.17871002852916718,
0.0902833640575409,
0.023782603442668915,
0.03587965667247772,
-0.030956652015447617,
0.00368356890976429,
-0.030214648693799973,
0.06586979329586029,
0.021118590608239174,
-0.026405837386846542,
-0.04973627254366875,
0.06678451597690582,
0.043140240013599396,
-0.02601688914000988,
-0.023258784785866737,
0.03443801403045654,
0.019982488825917244,
-0.031160229817032814,
-0.043302956968545914,
0.017861148342490196,
-0.010243112221360207,
-0.009417643770575523,
-0.039156150072813034,
0.016769930720329285,
-0.0028561304789036512,
0.03285381570458412,
0.0404832623898983,
0.005520528182387352,
0.044791966676712036,
0.0058305831626057625,
0.023852158337831497,
0.020273175090551376,
-0.10274774581193924,
-0.011233102530241013,
0.026768013834953308,
0.044421933591365814,
0.0020704208873212337,
0.4143122136592865,
-0.028339950367808342,
-0.004560769535601139,
0.024497605860233307,
0.016681605949997902,
-0.006947948597371578,
-0.02306974120438099,
-0.015432844869792461,
-0.025498127564787865,
0.022486109286546707,
-0.014555373229086399,
-0.014685306698083878,
-0.006734233815222979,
0.06645473092794418,
-0.07023180276155472,
0.003619009628891945,
0.0027545492630451918,
0.029656359925866127,
-0.01476933155208826,
0.011615518480539322,
-0.002610587514936924,
-0.01364136952906847,
-0.005948345642536879,
0.04797563701868057,
0.005044745746999979,
-0.0032756624277681112,
-0.013968335464596748,
0.041100844740867615,
0.07366674393415451,
0.033489637076854706,
0.012127772904932499,
0.05392852798104286,
-0.06179860606789589,
-0.08764106035232544,
0.0025868508964776993,
0.022472549229860306,
0.003327141748741269,
0.002906804671511054,
-0.0037135432939976454,
0.001747866626828909,
0.02825932577252388,
-0.05534791201353073,
0.010778993368148804,
0.020946914330124855,
-0.029501667246222496,
-0.0352262482047081,
0.12693631649017334,
0.024709375575184822,
-0.041410528123378754,
-0.0156219732016325,
-0.08112439513206482,
0.011529556475579739,
0.042338091880083084,
0.023658355697989464,
-0.05528779327869415,
-0.003664592048153281,
0.0271610077470541,
0.07604196667671204,
-0.03654181584715843,
-0.09540200233459473,
-0.030540790408849716,
-0.02519362047314644,
-0.019672462716698647,
-0.04915512353181839,
0.053657129406929016,
0.045099835842847824,
-0.046517904847860336,
-0.03973909467458725,
0.015004413202404976,
0.002774179447442293,
-0.04137362912297249,
0.019748782739043236,
0.01635565795004368,
-0.054407279938459396,
0.008907010778784752,
0.08048795908689499,
-0.00533961970359087,
-0.02198529615998268,
0.002377451630309224,
0.03729066997766495,
-0.001162076718173921,
-0.017700394615530968,
0.0036171695683151484,
-0.05600034445524216,
0.021339206025004387,
-0.057774607092142105,
-0.08808261901140213,
-0.07145880907773972,
0.012852202169597149,
-0.033603593707084656,
-0.0035085014533251524,
-0.002354241441935301,
-0.053969498723745346,
-0.06727928668260574,
0.0754949226975441,
-0.044410187751054764,
-0.009506427682936192,
0.012586040422320366,
0.009356420487165451,
-0.02732587605714798,
-0.049217402935028076,
0.012411599978804588,
0.002171783708035946,
-0.029325073584914207,
0.03435036167502403,
-0.048353731632232666,
0.029439033940434456,
0.06668338924646378,
-0.02388971485197544,
0.09968447685241699,
0.03775598481297493,
0.016759926453232765,
0.01998540759086609,
-0.006838982924818993,
0.014255762100219727,
0.0047037117183208466,
0.0051718298345804214,
0.023983726277947426,
-0.03761626034975052,
0.006713054142892361,
0.042503099888563156,
0.0218533743172884,
-0.049721669405698776,
-0.009960836730897427,
-0.3668573200702667,
-0.0316750705242157,
-0.005746064241975546,
-0.0007672294741496444,
0.028694145381450653,
-0.04057370498776436,
-0.010795325972139835,
0.019610261544585228,
0.012145514599978924,
0.07793010026216507,
0.058568038046360016,
-0.014148826710879803,
0.00011020187957910821,
-0.07864232361316681,
-0.0038354878779500723,
0.014385731890797615,
-0.01679038628935814,
-0.02289007604122162,
-0.059371937066316605,
-0.00014110324264038354,
-0.014338773675262928,
-0.025030076503753662,
-0.030403047800064087,
-0.030914047732949257,
0.052145201712846756,
0.003627540310844779,
0.12253200262784958,
0.027604063972830772,
0.04560983553528786,
-0.017101196572184563,
0.034205276519060135,
0.013899828307330608,
0.00851355493068695,
-0.04192563518881798,
0.008577090688049793,
-0.032957516610622406,
-0.024023868143558502,
0.025509091094136238,
-0.03229585289955139,
-0.022476311773061752,
-0.028331642970442772,
-0.00255475752055645,
-0.04228062555193901,
-0.018407685682177544,
-0.029065079987049103,
0.018097057938575745,
-0.024057265371084213,
0.02885027974843979,
-0.03205552324652672,
0.09085441380739212,
0.0252341590821743,
0.003207021625712514,
0.034047141671180725,
0.022638196125626564,
0.03738732263445854,
-0.03189510479569435,
-0.06708423793315887,
-0.010079219937324524,
-0.002353210933506489,
-0.03463483601808548,
0.0314403660595417,
0.04372731223702431,
0.0669185072183609,
-0.04877324402332306,
-0.023451562970876694,
-0.029185160994529724,
0.030262835323810577,
-0.018567310646176338,
0.017595713958144188,
0.004420357756316662,
-0.04127247631549835,
0.06548362970352173,
-0.012809881940484047,
0.012936842627823353,
0.022060083225369453,
0.05743639916181564,
-0.031410835683345795,
0.00048141233855858445,
-0.011684746481478214,
0.02346995286643505,
0.05845927819609642,
0.007342981640249491,
0.012789905071258545,
0.0031448439694941044,
0.012309279292821884,
0.0466579794883728,
0.013330943882465363,
-0.058565523475408554,
0.06274054199457169,
0.014285342767834663,
-0.02706295996904373,
-0.027092913165688515,
-0.01294172927737236,
-0.0421660952270031,
0.07334939390420914,
0.0021439045667648315,
-0.26336339116096497,
0.007367224898189306,
0.04590027034282684,
0.04966838285326958,
0.003567832289263606,
0.016717679798603058,
0.01285801362246275,
-0.04572725296020508,
0.017663609236478806,
0.014280491508543491,
-0.016501152887940407,
0.05815789848566055,
0.01933201774954796,
-0.04272815212607384,
-0.0036064947489649057,
-0.057138364762067795,
0.0391455702483654,
-0.018973661586642265,
0.06367281824350357,
0.0212954580783844,
0.01707896590232849,
-0.04837104678153992,
0.17546318471431732,
0.03512650355696678,
-0.016273152083158493,
-0.008017453365027905,
-0.016405854374170303,
-0.022084353491663933,
0.07742227613925934,
0.00798462238162756,
0.01031495537608862,
0.00915441382676363,
0.030876388773322105,
0.011630324646830559,
0.025531290099024773,
-0.019744014367461205,
-0.044883325695991516,
0.06866774708032608,
0.01625547558069229,
-0.024838624522089958,
-0.008128250017762184,
0.025302540510892868,
-0.046173471957445145,
0.030893515795469284,
0.06886351108551025,
-0.027971334755420685,
-0.008050752803683281,
-0.049061570316553116,
-0.05048537999391556,
0.0038404285442084074,
0.010953866876661777,
0.021475231274962425,
0.0053117661736905575,
-0.040505386888980865,
0.01951858401298523,
0.047650307416915894,
0.011958691291511059,
-0.003193852724507451,
0.042921777814626694,
-0.021361807361245155,
-0.011611396446824074,
-0.046851158142089844,
0.08956168591976166,
-0.005647631362080574,
0.02742636390030384
] | [
-0.0010898350737988949,
0.051666513085365295,
-0.0446668341755867,
-0.0005420392262749374,
0.011905772611498833,
-0.003665570868179202,
0.0038828204851597548,
0.005883426871150732,
-0.005931606516242027,
0.03383871912956238,
0.014613449573516846,
-0.02243647538125515,
0.047893378883600235,
-0.04877050220966339,
0.002481643343344331,
-0.0054663424380123615,
-0.03188656270503998,
-0.0028813022654503584,
0.01009964756667614,
-0.022407032549381256,
-0.03724417835474014,
0.02671458013355732,
0.001305957674048841,
-0.007412027567625046,
-0.016665011644363403,
0.055132314562797546,
-0.020385265350341797,
0.0002181560848839581,
0.014484584331512451,
-0.10678846389055252,
-0.01970568113029003,
-0.002341947052627802,
-0.0021925736218690872,
0.025758124887943268,
-0.02232813648879528,
-0.013734323903918266,
-0.040090445429086685,
0.033794909715652466,
-0.019348975270986557,
0.008966011926531792,
-0.019562147557735443,
0.02857796475291252,
0.005766385234892368,
0.0036504329182207584,
-0.0005028701853007078,
-0.0362919420003891,
-0.017404615879058838,
-0.011758027598261833,
-0.0028511781711131334,
-0.002739786636084318,
-0.04990605637431145,
0.008530966006219387,
-0.020675335079431534,
-0.01697148010134697,
0.01066247932612896,
-0.040318071842193604,
-0.023666847497224808,
-0.01776427961885929,
0.014527673833072186,
-0.02930975705385208,
0.002970968373119831,
-0.03834129497408867,
-0.028067192062735558,
-0.02954769879579544,
0.02819891832768917,
-0.0064865299500525,
-0.07227128744125366,
0.042525649070739746,
-0.017446473240852356,
0.0018463276792317629,
-0.008729232475161552,
0.0018657149048522115,
-0.026613790541887283,
-0.049394067376852036,
-0.024701504036784172,
0.02419942244887352,
0.02173435688018799,
-0.06329936534166336,
0.013930680230259895,
0.007450931705534458,
-0.05279764533042908,
0.016893841326236725,
-0.012624203227460384,
-0.03430136665701866,
-0.011543011292815208,
-0.027410265058279037,
0.012502622790634632,
0.0031436176504939795,
0.009812695905566216,
0.009120476432144642,
0.0014876151690259576,
0.02439611591398716,
-0.012107735499739647,
0.011401135474443436,
-0.08378946781158447,
0.0017442615935578942,
-0.0016474747098982334,
0.00220641796477139,
-0.005931880325078964,
0.8297764658927917,
0.02640092745423317,
0.026838453486561775,
0.008896175771951675,
-0.0008681797771714628,
-0.07058485597372055,
-0.015519706532359123,
0.03362846374511719,
0.04222453758120537,
-0.002509532729163766,
-0.05550302192568779,
0.01528607215732336,
0.005713741295039654,
-0.004931212402880192,
0.014894981868565083,
0.0026551242917776108,
0.051281366497278214,
0.03256775438785553,
-0.007291281130164862,
-0.01994682103395462,
-0.026036428287625313,
-0.006945165805518627,
0.007832125760614872,
0.005307340994477272,
-0.026239484548568726,
-0.03434571996331215,
-0.1752069890499115,
-0.0011114811059087515,
-6.0799598395901924e-33,
0.02379439026117325,
-0.022726772353053093,
-0.013732513412833214,
-0.006093429867178202,
0.058371927589178085,
-0.001785514410585165,
0.030532600358128548,
0.014870841056108475,
-0.021500589326024055,
-0.0003897438000421971,
0.01879289001226425,
0.026999277994036674,
-0.044403985142707825,
-0.01540016196668148,
0.01722431555390358,
-0.034188203513622284,
0.0036577857099473476,
0.017769131809473038,
-0.015014609321951866,
-0.04522446170449257,
0.05648781359195709,
0.03198738396167755,
0.03232191130518913,
0.0187438502907753,
0.01624700240790844,
0.006061865948140621,
0.016077879816293716,
0.014976883307099342,
-0.02015581913292408,
-0.044119395315647125,
-0.01645711623132229,
0.026103023439645767,
0.011127419769763947,
-0.02129194885492325,
0.010953620076179504,
-0.05489308014512062,
-0.016292965039610863,
0.014204011298716068,
0.032545898109674454,
-0.009160010144114494,
-0.04635167866945267,
-0.014012965373694897,
-0.01164573710411787,
0.013818232342600822,
-0.04771348834037781,
0.0055832890793681145,
0.03718513995409012,
0.044700924307107925,
-0.008952980861067772,
0.03749546781182289,
0.015186234377324581,
0.008453333750367165,
0.0170119795948267,
0.0037067648954689503,
-0.00937789585441351,
0.02091927081346512,
-0.02754468284547329,
-0.01948588527739048,
0.008695327676832676,
-0.01665135845541954,
-0.00529100839048624,
0.01605331152677536,
-0.004129781853407621,
0.030253242701292038,
-0.015931228175759315,
0.04544028267264366,
0.04481593891978264,
-0.015233614481985569,
0.02729032374918461,
-0.0049224733375012875,
-0.01695840060710907,
0.022010235115885735,
0.016502659767866135,
-0.04469815641641617,
0.09657560288906097,
0.015417591668665409,
-0.016422776505351067,
0.018234018236398697,
0.03462234139442444,
0.03103659488260746,
0.02310042269527912,
0.016812458634376526,
-0.006025233771651983,
-0.012381971813738346,
-0.04039892554283142,
0.014104756526648998,
0.022798841819167137,
-0.009910889901220798,
-0.01850660890340805,
-0.026098811998963356,
0.016249729320406914,
0.02089970000088215,
-0.016067931428551674,
-0.049060456454753876,
0.009880871511995792,
6.248690666049208e-33,
0.01917940191924572,
-0.007880407385528088,
0.017237588763237,
-0.00042847864096984267,
0.018417803570628166,
-0.041056077927351,
0.024702705442905426,
-0.022063417360186577,
-0.024954795837402344,
0.0017221227753907442,
-0.017005309462547302,
-0.001824254635721445,
-0.029025113210082054,
0.024431034922599792,
0.04420552775263786,
-0.008762545883655548,
0.006525409873574972,
0.029986796900629997,
-0.03478797525167465,
-0.006624092347919941,
0.013417156413197517,
0.004578571300953627,
0.005939405877143145,
0.006273563019931316,
0.02390330284833908,
0.021908514201641083,
0.0016653771745041013,
-0.006188403349369764,
-0.01198788546025753,
0.014845471829175949,
-0.0026593226939439774,
0.030265863984823227,
-0.013048620894551277,
-0.01948677748441696,
-0.06187833473086357,
0.042417675256729126,
-0.0016443388303741813,
-0.009860431775450706,
0.012435502372682095,
0.008741720579564571,
0.011200426146388054,
-0.0013531652512028813,
-0.009481505490839481,
0.026937896385788918,
0.004259314853698015,
-0.007810364011675119,
0.02669905498623848,
0.01841765269637108,
0.01370939426124096,
0.019912859424948692,
0.009564084932208061,
0.048348911106586456,
0.01013220939785242,
-0.009636014699935913,
0.022266974672675133,
-0.014363755472004414,
-0.02810138836503029,
0.015025108121335506,
-0.04078126326203346,
-0.004446291830390692,
-0.026217732578516006,
0.0117637999355793,
-0.035237450152635574,
0.010404515080153942,
-0.03417467698454857,
0.002277037128806114,
-0.009625055827200413,
-0.0002770497521851212,
0.02479514293372631,
-0.0032962237019091845,
-0.0023718755692243576,
-0.025280354544520378,
-0.0020684951450675726,
-0.0041447230614721775,
-0.01653558574616909,
0.017798298969864845,
-0.030849631875753403,
0.017505407333374023,
0.02947642095386982,
0.03155374899506569,
0.021654615178704262,
-0.0084450114518404,
0.04004959762096405,
0.011228070594370365,
0.013129633851349354,
0.012883991934359074,
-0.0512695275247097,
-0.029797719791531563,
0.024361345916986465,
0.0038757366128265858,
-0.021357623860239983,
-0.056864552199840546,
0.016505634412169456,
0.04341527447104454,
-0.029087364673614502,
-1.2416769834544539e-8,
-0.02842721901834011,
0.018793432042002678,
-0.01215742714703083,
0.014990702271461487,
0.031465984880924225,
0.02334292232990265,
-0.006920540239661932,
0.0066263689659535885,
0.014384131878614426,
0.018465803936123848,
0.04504339024424553,
-0.041589848697185516,
-0.03466217219829559,
0.024360261857509613,
-0.02597907930612564,
-0.0352267324924469,
0.051784008741378784,
0.006385562475770712,
0.01982170157134533,
-0.018888505175709724,
0.013360732235014439,
0.07180684059858322,
0.003980054520070553,
0.00825101975351572,
0.027550235390663147,
-0.017228644341230392,
-0.003331507323309779,
-0.07578036934137344,
0.020001817494630814,
0.03651203215122223,
0.03894560784101486,
-0.029890364035964012,
-0.0380425862967968,
-0.015297120437026024,
0.01458442397415638,
-0.03581853210926056,
0.03345150500535965,
0.049742359668016434,
-0.022266050800681114,
-0.0022292868234217167,
-0.03147498518228531,
0.0009475884144194424,
-0.020992271602153778,
-0.012752091512084007,
-0.04285377636551857,
-0.02069707028567791,
-0.06599952280521393,
-0.004310765769332647,
0.019675567746162415,
-0.059910450130701065,
0.01787848025560379,
-0.02134574018418789,
0.0021452747751027346,
0.03129437938332558,
0.030194338411092758,
0.012215339578688145,
0.03963424265384674,
0.00035351281985640526,
-0.05461106449365616,
-0.00537702115252614,
0.02836197055876255,
0.0171849075704813,
0.0033100617583841085,
-0.0300502460449934
] | r-dplyr-removing-empty-rows | https://markhneedham.com/blog/2015/06/02/r-dplyr-removing-empty-rows |
false | 2015-06-20 22:18:55 | R: dplyr - segfault cause 'memory not mapped' | [
"r-2",
"dplyr"
] | [
"R"
] | In my http://www.markhneedham.com/blog/2015/06/19/r-regex-capturing-multiple-matches-of-the-same-group/[continued playing around with web logs in R] I wanted to process the logs for a day and see what the most popular URIs were.
I first read in all the lines using the +++<cite>+++read_lines+++</cite>+++ function in readr and put the vector it produced into a data frame so I could process it using dplyr.
[source,r]
----
library(readr)
dlines = data.frame(column = read_lines("~/projects/logs/2015-06-18-22-docs"))
----
In the previous post I showed some code to extract the URI from a log line. I extracted this code out into a function and adapted it so that I could pass in a list of values instead of a single value:
[source,r]
----
extract_uri = function(log) {
parts = str_extract_all(log, "\"[^\"]*\"")
return(lapply(parts, function(p) str_match(p[1], "GET (.*) HTTP")[2] %>% as.character))
}
----
Next I ran the following function to count the number of times each URI appeared in the logs:
[source,r]
----
library(dplyr)
pages_viewed = dlines %>%
mutate(uri = extract_uri(column)) %>%
count(uri) %>%
arrange(desc(n))
----
This crashed my R process with the following error message:
[source,r]
----
segfault cause 'memory not mapped'
----
I narrowed it down to a problem when doing a group by operation on the 'uri' field and came across https://github.com/hadley/dplyr/issues/322[this post] which suggested that it was handled more cleanly in more recently version of dplyr.
I upgraded to 0.4.2 and tried again:
[source,R]
----
## Error in eval(expr, envir, enclos): cannot group column uri, of class 'list'
----
That makes more sense. We're probably returning a list from +++<cite>+++extract_uri+++</cite>+++ rather than a vector which would fit nicely back into the data frame. That's fixed easily enough by unlisting the result:
[source,r]
----
extract_uri = function(log) {
parts = str_extract_all(log, "\"[^\"]*\"")
return(unlist(lapply(parts, function(p) str_match(p[1], "GET (.*) HTTP")[2] %>% as.character)))
}
----
And now when we run the count function it's happy again, good times! | null | null | [
0.020202243700623512,
0.0034074855502694845,
0.0007453058497048914,
0.01598985120654106,
0.08293269574642181,
0.04468049481511116,
0.032057832926511765,
0.018910031765699387,
0.025990037247538567,
0.0066587128676474094,
-0.007649197243154049,
-0.022623389959335327,
-0.0793413296341896,
0.0144421411678195,
-0.012890747748315334,
0.0952335074543953,
0.0209052711725235,
-0.011198999360203743,
0.025749605149030685,
-0.041457399725914,
0.049777209758758545,
0.0551365464925766,
-0.01407094206660986,
0.01748773828148842,
0.052976906299591064,
0.012287160381674767,
0.0048680901527404785,
0.013866670429706573,
-0.02909260243177414,
0.00998715776950121,
0.0681174024939537,
0.056050412356853485,
0.004464777652174234,
0.009988855570554733,
0.04543066769838333,
0.013637915253639221,
-0.01908203586935997,
0.006942524574697018,
0.02173255756497383,
-0.002694992581382394,
-0.040982816368341446,
-0.0061128209345042706,
-0.05398492515087128,
0.04212184622883797,
-0.023709526285529137,
0.007675195578485727,
-0.06447400152683258,
0.024834701791405678,
0.018518665805459023,
-0.0026017508935183287,
-0.06155400350689888,
0.04276547580957413,
-0.01548277772963047,
-0.054091013967990875,
-0.0187886580824852,
0.06284736096858978,
0.04200844466686249,
-0.049310702830553055,
0.03640980273485184,
-0.045704588294029236,
-0.004143655300140381,
0.009545132517814636,
-0.018503159284591675,
0.02299516834318638,
0.0009278081706725061,
-0.007352168206125498,
-0.02485806867480278,
0.03242668882012367,
-0.043814241886138916,
-0.05018484964966774,
-0.04149150103330612,
-0.01246456615626812,
-0.0486878864467144,
0.006333872210234404,
0.008986552245914936,
-0.010998361743986607,
-0.013454156927764416,
0.04461962729692459,
0.00825665146112442,
0.045295778661966324,
-0.004613759461790323,
-0.031408946961164474,
-0.0013644949067384005,
-0.0005681156762875617,
0.024285083636641502,
-0.005028508137911558,
-0.021448321640491486,
-0.038760192692279816,
-0.048368822783231735,
0.05722615122795105,
-0.021424680948257446,
-0.06835048645734787,
0.003915713634341955,
0.023442815989255905,
-0.03679492697119713,
0.004460296593606472,
-0.0010080109350383282,
-0.007121848873794079,
-0.01169724203646183,
-0.022061187773942947,
-0.08794096857309341,
0.006317411549389362,
0.05316399410367012,
0.020555254071950912,
-0.07272320240736008,
-0.003336880821734667,
-0.025034094229340553,
-0.002782439347356558,
0.014065136201679707,
-0.00601861160248518,
-0.0062927971594035625,
0.022539237514138222,
-0.015031653456389904,
0.009578302502632141,
-0.056920167058706284,
0.07642939686775208,
0.0403437577188015,
-0.03577970340847969,
0.01656249538064003,
0.01315690390765667,
0.0540044866502285,
0.025563741102814674,
0.005156585946679115,
0.05877372995018959,
0.00375351682305336,
0.04216029495000839,
0.016748255118727684,
0.013814056292176247,
-0.05052376538515091,
-0.05532155930995941,
-0.0002814672188833356,
0.05007892847061157,
-0.01867102086544037,
0.02909090183675289,
-0.025824258103966713,
0.0031601195223629475,
-0.008358118124306202,
-0.037057794630527496,
0.06419818848371506,
0.005874196067452431,
0.03224271535873413,
-0.02289421670138836,
-0.0029078377410769463,
-0.03329126909375191,
0.04283735901117325,
0.032436978071928024,
0.003434904385358095,
-0.04633636772632599,
-0.04518037289381027,
-0.013406859710812569,
0.04213101416826248,
0.024946987628936768,
0.07155758142471313,
-0.028353629633784294,
-0.0007164194830693305,
0.08358769118785858,
0.006481178570538759,
0.005656966473907232,
-0.016371702775359154,
-0.005299542564898729,
0.014394987374544144,
0.015518086031079292,
-0.02991553023457527,
0.0468154214322567,
-0.002113260794430971,
-0.02720840647816658,
0.01663319393992424,
0.027268514037132263,
-0.03642810881137848,
-0.005139014683663845,
-0.055142395198345184,
-0.05365253612399101,
0.0692581832408905,
-0.03416162356734276,
-0.0003375189262442291,
0.009158899076282978,
0.04765315726399422,
0.027232350781559944,
0.04936065524816513,
-0.0029275277629494667,
-0.07068990916013718,
0.03289280831813812,
-0.0033621254842728376,
0.02405991591513157,
0.01669732853770256,
-0.013897625729441643,
0.126525416970253,
0.007385256700217724,
0.03163423761725426,
0.025431489571928978,
-0.054099880158901215,
-0.07349346578121185,
-0.014166372828185558,
-0.024000203236937523,
0.049986690282821655,
-0.04717198759317398,
-0.005968180019408464,
0.07733698189258575,
0.030502453446388245,
0.016022801399230957,
-0.023473532870411873,
0.05593990907073021,
0.03333500027656555,
-0.037787776440382004,
-0.04701235890388489,
0.004705187864601612,
0.03035902790725231,
-0.021626928821206093,
-0.0058311959728598595,
-0.0009835648816078901,
-0.011763510294258595,
0.06788861751556396,
0.0010393311968073249,
-0.029692858457565308,
0.04592564329504967,
0.03966038301587105,
0.035338446497917175,
-0.0021508431527763605,
0.03826330602169037,
-0.06153656914830208,
0.0022687308955937624,
-0.012656685896217823,
-0.040169067680835724,
-0.03740319982171059,
0.010750406421720982,
0.1314580887556076,
0.052308499813079834,
0.0022453521378338337,
-0.045951180160045624,
0.01870144158601761,
-0.060546282678842545,
-0.02999834530055523,
0.0019315012032166123,
-0.0071049039252102375,
-0.0690850019454956,
0.026868736371397972,
-0.003760075895115733,
-0.01969129405915737,
0.0028329561464488506,
-0.024598056450486183,
0.004932512063533068,
0.05103963240981102,
0.042545437812805176,
0.03231184557080269,
-0.0077830771915614605,
-0.002777779009193182,
-0.0015556940343230963,
-0.033102866262197495,
-0.041470419615507126,
-0.01154417172074318,
0.00833802204579115,
-0.010966125875711441,
0.005528892856091261,
-0.04079645872116089,
-0.0153386564925313,
-0.023008234798908234,
-0.03997929394245148,
0.028456825762987137,
0.06258615106344223,
0.04719950258731842,
-0.037478990852832794,
0.04317762330174446,
-0.015654556453227997,
-0.016736596822738647,
-0.0008105808519758284,
-0.031250905245542526,
-0.05220557376742363,
-0.026817165315151215,
0.015865826979279518,
0.026226265355944633,
0.023054249584674835,
0.02389267459511757,
-0.0241058599203825,
0.028594892472028732,
0.008071361109614372,
-0.043709371238946915,
0.059572502970695496,
-0.01288015116006136,
-0.022131677716970444,
0.002745810430496931,
-0.0006196002359502017,
0.02811654470860958,
-0.021111860871315002,
-0.03197944164276123,
-0.05409761890769005,
-0.0514100044965744,
0.03942832723259926,
-0.04051164537668228,
-0.0605936124920845,
0.02450861781835556,
0.01064118929207325,
0.028713330626487732,
0.02322426624596119,
0.026091566309332848,
0.03312007337808609,
0.015021202154457569,
0.04261848330497742,
0.015594851225614548,
0.05538349971175194,
0.061651043593883514,
0.0018247651169076562,
-0.006938056088984013,
0.05570651963353157,
-0.01316764298826456,
0.004116369877010584,
-0.06086311116814613,
-0.013223315589129925,
-0.010396935045719147,
-0.2505766749382019,
-0.008989077061414719,
-0.006351389456540346,
-0.018054284155368805,
0.03464597463607788,
-0.03452518954873085,
0.010239021852612495,
-0.024787504225969315,
-0.011362558230757713,
-0.0021151225082576275,
0.018390744924545288,
-0.037605658173561096,
-0.02086719125509262,
0.01771652325987816,
0.020595593377947807,
0.013861102983355522,
0.03838074207305908,
-0.02290434017777443,
0.008851282298564911,
0.050116490572690964,
0.039037466049194336,
-0.03162703663110733,
-0.045683637261390686,
0.028299270197749138,
0.02573593147099018,
0.05602876842021942,
-0.05853250250220299,
0.02990436926484108,
-0.04562380909919739,
-0.048865750432014465,
0.01328839547932148,
-0.023116296157240868,
0.027359431609511375,
-0.006222191732376814,
0.00611545704305172,
-0.03303427994251251,
0.004270255099982023,
0.0296567901968956,
0.017443962395191193,
0.04895253852009773,
-0.014802254736423492,
-0.035378847271203995,
-0.005276690702885389,
-0.04409373924136162,
0.04200780764222145,
0.04989537596702576,
-0.07363288104534149,
0.03127199783921242,
-0.0011175463441759348,
0.07542171329259872,
-0.018687911331653595,
-0.00979432463645935,
-0.0239862147718668,
-0.0009011256624944508,
-0.006582255475223064,
-0.012329697608947754,
-0.045600637793540955,
0.007335025351494551,
-0.03428204357624054,
-0.04514051601290703,
0.028861917555332184,
-0.0257621668279171,
0.00908017996698618,
-0.049605049192905426,
-0.041188325732946396,
-0.05609433352947235,
-0.04794827103614807,
-0.01763508841395378,
0.08326783776283264,
0.0477752648293972,
-0.04628114774823189,
0.02896036207675934,
-0.013128567487001419,
-0.10621757060289383,
-0.017826586961746216,
-0.03800433874130249,
-0.018695469945669174,
-0.006914135534316301,
-0.004685407504439354,
0.045846715569496155,
-0.060686979442834854,
-0.03014027141034603,
0.031227150931954384,
0.016416678205132484,
0.03236113861203194,
-0.03167397528886795,
0.005858087446540594,
-0.028820166364312172,
-0.04487694054841995,
-0.048776403069496155,
0.05420846864581108,
-0.05964212864637375,
-0.04181725159287453,
-0.00016629313176963478,
0.008528410457074642,
0.0320848785340786,
0.02229108288884163,
0.014585234224796295,
0.014228026382625103,
0.019773494452238083,
0.022731376811861992,
-0.01858942210674286,
0.021908637136220932,
-0.07282890379428864,
-0.012877671979367733,
0.030183095484972,
-0.06996467709541321,
-0.0019688119646161795,
0.033012595027685165,
0.03549829125404358,
0.004062736872583628,
-0.013872481882572174,
0.028155464679002762,
-0.05869245529174805,
-0.007088804617524147,
0.009820478968322277,
-0.0017783264629542828,
-0.0010418903548270464,
0.02130897529423237,
-0.009837357327342033,
-0.03874754533171654,
-0.03626585379242897,
0.009097990579903126,
-0.059198081493377686,
-0.029017258435487747,
-0.04050426557660103,
0.026511820033192635,
-0.009933004155755043,
-0.006969732232391834,
0.019442956894636154,
0.020098213106393814,
-0.0077332970686256886,
0.057652849704027176,
-0.009732326492667198,
0.025570571422576904,
-0.017093593254685402,
-0.021374613046646118,
-0.016840225085616112,
0.014971720986068249,
0.03232092037796974,
-0.00825379230082035,
0.0001019246265059337,
0.018926825374364853,
0.0194116048514843,
0.009968713857233524,
0.0029244835022836924,
0.011380811221897602,
0.008913776837289333,
-0.025256380438804626,
0.0013553454773500562,
-0.009251430630683899,
-0.013613860122859478,
0.025286318734288216,
-0.024828778579831123,
0.0007612280896864831,
-0.02175389789044857,
0.045187946408987045,
0.0008298690081574023,
-0.004005222115665674,
-0.060433365404605865,
0.01921389251947403,
-0.03142339363694191,
0.02114497683942318,
-0.027779994532465935,
0.007834057323634624,
0.03281008079648018,
-0.028812086209654808,
0.04988064244389534,
0.005333872977644205,
-0.021403715014457703,
-0.0057645924389362335,
0.028854437172412872,
0.0013699737610295415,
0.05049565061926842,
-0.020909884944558144,
0.010759473778307438,
0.006179529242217541,
-0.0055441888980567455,
0.019079528748989105,
0.021919339895248413,
-0.0009222747758030891,
-0.02478792890906334,
0.009647651575505733,
0.014575748704373837,
0.028781211003661156,
0.0597556047141552,
0.016590742394328117,
0.020127257332205772,
-0.02870967797935009,
-0.00989866815507412,
-0.030262541025877,
0.010808286257088184,
-0.02418568730354309,
0.008493401110172272,
-0.049889564514160156,
-0.08385374397039413,
0.016930194571614265,
0.05835222080349922,
-0.01439540833234787,
0.01927628554403782,
-0.006089237052947283,
-0.0029417627956718206,
-0.04465445503592491,
-0.0005585966864600778,
0.05935325101017952,
-0.05252278223633766,
-0.03199661523103714,
0.04134533554315567,
0.005184707697480917,
0.04699612781405449,
-0.004082824569195509,
-0.08917532861232758,
0.0006210078136064112,
-0.03513671085238457,
0.028882501646876335,
0.006958578247576952,
-0.02718070149421692,
-0.07879965007305145,
0.030996432527899742,
-0.00549898948520422,
0.007256604265421629,
-0.03327888622879982,
-0.010182314552366734,
0.012337245978415012,
-0.0025675217621028423,
-0.01826915703713894,
-0.01325058564543724,
-0.05757038667798042,
0.02148360200226307,
-0.023699307814240456,
0.05674620345234871,
-0.03659588098526001,
0.04524139687418938,
0.01278725266456604,
0.012388572096824646,
0.00354791060090065,
-0.06209190562367439,
0.03201882168650627,
-0.009833259508013725,
0.048889487981796265,
-0.007816118188202381,
0.01672336645424366,
-0.0022400550078600645,
0.023647107183933258,
-0.004079104866832495,
-0.004392856266349554,
-0.025465697050094604,
-0.041114937514066696,
0.029848737642169,
0.08726049214601517,
0.017365237697958946,
0.03034854307770729,
0.004183093085885048,
-0.046955838799476624,
0.06328123062849045,
-0.014226621016860008,
-0.046919405460357666,
-0.009300104342401028,
-0.04980578273534775,
0.024182643741369247,
0.032039348036050797,
-0.010579940862953663,
-0.03707040101289749,
0.030553176999092102,
0.028893154114484787,
0.018536316230893135,
0.04576055333018303,
0.022224517539143562,
0.023647528141736984,
-0.024798283353447914,
0.022981327027082443,
-0.07468060404062271,
0.0058541870675981045,
0.06839820742607117,
-0.01955464854836464,
0.007812368217855692,
-0.029124492779374123,
-0.025673747062683105,
0.05290143936872482,
-0.03966442495584488,
-0.06624256819486618,
0.020544856786727905,
0.012183640152215958,
0.011799845844507217,
0.008672717027366161,
-0.06393857300281525,
-0.01639815792441368,
0.039840858429670334,
-0.02453550696372986,
-0.017337724566459656,
-0.04890970513224602,
0.05510866269469261,
-0.03384216129779816,
0.009628123603761196,
-0.0037544541992247105,
-0.017175229266285896,
0.020463572815060616,
0.03150119259953499,
-0.025126032531261444,
0.07472328096628189,
-0.03204112872481346,
0.03723935782909393,
0.0222428310662508,
-0.007869353517889977,
0.013515717349946499,
0.005770684219896793,
0.015405424870550632,
-0.007790947332978249,
0.02829793095588684,
-0.0018313380423933268,
0.020687175914645195,
-0.027265362441539764,
0.09442394971847534,
0.012863610871136189,
-0.04336611181497574,
-0.08337511122226715,
-0.017276018857955933,
-0.011883600614964962,
0.016579410061240196,
0.015286954119801521,
-0.003202212043106556,
0.004542429931461811,
0.06622825562953949,
-0.00851469673216343,
0.019595470279455185,
0.07047785073518753,
0.017311936244368553,
-0.015120328404009342,
0.015705127269029617,
0.059137746691703796,
0.10937345027923584,
0.014525561593472958,
-0.022886812686920166,
0.03721132501959801,
-0.020813843235373497,
-0.06402023881673813,
0.04299071058630943,
-0.0531182698905468,
-0.005518242251127958,
-0.0461871474981308,
0.009852246381342411,
0.04989168420433998,
-0.012830576859414577,
0.06496987491846085,
-0.03783402964472771,
-0.017801782116293907,
-0.022204693406820297,
-0.014791124500334263,
0.056554000824689865,
0.02938862331211567,
-0.02212705835700035,
0.022110851481556892,
0.0018354493658989668,
0.004476890899240971,
0.013381699100136757,
-0.017801325768232346,
-0.04321181774139404,
0.013026257045567036,
0.00470100250095129,
-0.017485477030277252,
-0.00005200963278184645,
0.025828475132584572,
0.07290936261415482,
-0.034555044025182724,
-0.0036150559317320585,
-0.03867927938699722,
0.041730672121047974,
-0.01522148959338665,
-0.017426304519176483,
-0.017573144286870956,
-0.018801838159561157,
-0.02959505096077919,
-0.05121232569217682,
-0.021504150703549385,
-0.011856072582304478,
-0.029989643022418022,
0.03706616535782814,
-0.05076517537236214,
-0.004480143543332815,
0.017513247206807137,
-0.021265530958771706,
-0.008337977342307568,
-0.041789647191762924,
-0.07354119420051575,
-0.058259546756744385,
-0.0451740100979805,
0.007888779044151306,
0.00821843184530735,
0.003994461614638567,
-0.030033685266971588,
-0.03641221672296524,
-0.005667556542903185,
-0.029156876727938652,
-0.005140398629009724,
-0.05276614427566528,
0.0044069718569517136,
-0.00806080736219883,
-0.02269899845123291,
0.028184959664940834,
0.04852157458662987,
0.047111812978982925,
0.01692584529519081,
0.007000047713518143,
-0.014342023059725761,
0.013923227787017822,
0.025734758004546165,
0.020682988688349724,
-0.01447669230401516,
-0.08256907761096954,
0.010455168783664703,
0.02229306846857071,
0.0006706732092425227,
-0.0889468714594841,
0.004807443358004093,
0.007713655941188335,
-0.02279040217399597,
0.03247195482254028,
-0.008655914105474949,
0.02525281347334385,
-0.028201257809996605,
-0.05020555853843689,
-0.0005786308320239186,
0.030156588181853294,
0.025712240487337112,
-0.04200449585914612,
0.031523868441581726,
0.035184502601623535,
0.017129529267549515,
-0.058369945734739304,
-0.01511443592607975,
-0.010089611634612083,
-0.01752486638724804,
-0.048200614750385284,
-0.01871715858578682,
-0.044872917234897614,
-0.0936795100569725,
-0.05383509024977684,
0.018807005137205124,
-0.030922161415219307,
-0.017514683306217194,
0.01328478753566742,
0.027521345764398575,
-0.061030540615320206,
0.020666182041168213,
-0.018654542043805122,
0.027200520038604736,
-0.00793094839900732,
-0.06368213146924973,
-0.019436059519648552,
0.06297792494297028,
0.019178591668605804,
0.004320444073528051,
0.001915407250635326,
-0.008654257282614708,
0.006866167299449444,
-0.010495364665985107,
0.034907266497612,
0.052468184381723404,
0.005792476702481508,
0.019073328003287315
] | [
-0.09556487947702408,
0.013123069889843464,
-0.021864144131541252,
-0.013345559127628803,
0.050974830985069275,
-0.05400536581873894,
-0.04071713611483574,
0.012174568139016628,
0.04184400662779808,
0.004575629718601704,
0.03976942226290703,
-0.04275944456458092,
0.054505862295627594,
0.0023520176764577627,
0.018858827650547028,
-0.012497887015342712,
-0.024706635624170303,
-0.013557144440710545,
-0.02434464916586876,
0.008063260465860367,
-0.010284312069416046,
-0.05666673928499222,
-0.020328950136899948,
-0.029476217925548553,
0.03463936224579811,
0.047300852835178375,
-0.03621957078576088,
-0.03887731954455376,
-0.010840141214430332,
-0.24876926839351654,
-0.012550846673548222,
0.014363152906298637,
0.019755348563194275,
-0.02784682624042034,
0.0026423775125294924,
0.047043439000844955,
0.010264066979289055,
-0.00210695993155241,
0.02285054139792919,
0.016808170825242996,
0.0014462609542533755,
0.02112944796681404,
-0.05000297352671623,
0.016399091109633446,
0.014013770967721939,
-0.006021867506206036,
-0.07228772342205048,
-0.00996844656765461,
0.014886717312037945,
0.02294215001165867,
-0.05150134116411209,
0.01453620195388794,
0.01325453445315361,
0.00025100650964304805,
0.01204344630241394,
0.029240582138299942,
0.03278378024697304,
0.0402882918715477,
-0.006747018545866013,
0.019661549478769302,
0.04492141306400299,
0.020494379103183746,
-0.16122162342071533,
0.08734960854053497,
0.004945446737110615,
0.008813798427581787,
-0.01486978866159916,
-0.004096988122910261,
0.0006567006930708885,
0.0560009740293026,
-0.042637523263692856,
-0.004415316507220268,
-0.06900020688772202,
0.06826796382665634,
0.0006668992573395371,
0.012181748636066914,
-0.05701182782649994,
0.020763864740729332,
0.0418657585978508,
0.015397395007312298,
-0.004181606695055962,
0.005025604274123907,
0.0034139961935579777,
-0.036327946931123734,
-0.021495169028639793,
0.0024518845602869987,
-0.02155281975865364,
0.011521928012371063,
0.028799492865800858,
0.03184637054800987,
0.037580639123916626,
0.010895895771682262,
0.03389276936650276,
0.033154457807540894,
-0.0921836569905281,
0.0034715021029114723,
0.06071507930755615,
0.028686104342341423,
0.05007139965891838,
0.39098402857780457,
-0.0259564071893692,
-0.023764656856656075,
0.012529386207461357,
0.06460534036159515,
0.004603734239935875,
-0.027305932715535164,
-0.0008590117795392871,
-0.027218202129006386,
-0.00622869748622179,
-0.012499363161623478,
0.031692106276750565,
-0.03433733060956001,
0.05011346936225891,
-0.030613645911216736,
0.04949916899204254,
-0.010237016715109348,
0.027574123814702034,
0.0236834529787302,
0.002682680729776621,
0.0400407500565052,
0.00009410017810296267,
-0.03614788502454758,
0.03299793601036072,
-0.006036702543497086,
0.034215085208415985,
0.022657083347439766,
0.021491272374987602,
0.08947555720806122,
0.07008408010005951,
0.01061431784182787,
0.036358509212732315,
-0.009547242894768715,
-0.07310112565755844,
-0.004272127058357,
-0.013044665567576885,
-0.003854077309370041,
0.037355728447437286,
-0.05860139802098274,
-0.01443665474653244,
0.02520165406167507,
-0.04180728271603584,
-0.018437225371599197,
0.04546466842293739,
0.01723284274339676,
-0.02625877782702446,
0.15289294719696045,
-0.01019566785544157,
-0.040276143699884415,
-0.05574117973446846,
-0.049301259219646454,
0.029163742437958717,
0.05630435422062874,
-0.0179732833057642,
-0.03992544487118721,
-0.026212802156805992,
0.017600785940885544,
0.07356675714254379,
-0.04424446448683739,
-0.02296716347336769,
-0.028185168281197548,
-0.030029477551579475,
-0.04114275053143501,
-0.0036706619430333376,
0.054914917796850204,
0.04758274927735329,
-0.05684196949005127,
-0.045934319496154785,
0.02195904217660427,
-0.041609205305576324,
-0.08355352282524109,
0.02508360520005226,
-0.04493585601449013,
-0.0029666521586477757,
-0.006090796086937189,
-0.009454932995140553,
-0.013745062053203583,
-0.03375711664557457,
-0.024848762899637222,
-0.008898318745195866,
0.02021881565451622,
-0.007878611795604229,
-0.003658048575744033,
-0.056033797562122345,
0.003319800365716219,
-0.022647127509117126,
-0.07691891491413116,
-0.11190999299287796,
0.035354215651750565,
0.024326462298631668,
0.014926083385944366,
-0.004194814711809158,
-0.052128784358501434,
-0.058409955352544785,
0.03917170688509941,
-0.03372405096888542,
-0.013526075519621372,
0.029348546639084816,
0.0016608353471383452,
-0.015751957893371582,
-0.016931753605604172,
0.04790365695953369,
0.027531836181879044,
0.025860538706183434,
0.0005489752511493862,
-0.048945799469947815,
0.020231107249855995,
0.04700878635048866,
-0.03888033330440521,
-0.00035252684028819203,
0.01587584614753723,
-0.02498151734471321,
0.014223938807845116,
0.004482284653931856,
0.006144091486930847,
-0.03396312892436981,
0.01210626121610403,
0.028442198410630226,
-0.044301461428403854,
0.015071150846779346,
0.03508906811475754,
0.03593302145600319,
-0.056307174265384674,
-0.06672975420951843,
-0.3456501066684723,
-0.050881050527095795,
-0.011969277635216713,
0.025228016078472137,
0.010205031372606754,
-0.06397631764411926,
-0.03029385767877102,
0.03468220308423042,
0.00979891512542963,
0.1028536856174469,
0.03804536908864975,
0.01935788430273533,
0.0038725542835891247,
-0.08534876257181168,
-0.0025243486743420362,
0.0454920195043087,
0.011878915131092072,
-0.003370539518073201,
-0.051345206797122955,
-0.001005092984996736,
-0.026974637061357498,
-0.06545578688383102,
-0.0002538225380703807,
0.008772055618464947,
0.07725600898265839,
-0.02081790193915367,
0.11550506204366684,
0.05055443197488785,
0.004565956071019173,
-0.009438338689506054,
0.03545181453227997,
0.017822125926613808,
0.013251584954559803,
-0.07294950634241104,
0.011439439840614796,
-0.005513764917850494,
-0.0291250292211771,
0.0389193594455719,
0.039140138775110245,
-0.05907328799366951,
-0.024729974567890167,
0.013197635300457478,
-0.03678188472986221,
-0.04558419808745384,
-0.038395386189222336,
0.011437337845563889,
-0.03433988243341446,
-0.04362104833126068,
0.01765603758394718,
0.0464877188205719,
0.06712343543767929,
0.0014166021719574928,
0.0538187250494957,
0.033914580941200256,
-0.00003992231722804718,
0.004427463281899691,
-0.05805521458387375,
-0.015094184316694736,
-0.009274613112211227,
-0.08786185085773468,
0.011289640329778194,
-0.009768428280949593,
0.07389877736568451,
-0.04090812802314758,
0.029957018792629242,
0.009207241237163544,
0.004172616172581911,
-0.024733467027544975,
0.018382493406534195,
0.027065826579928398,
-0.026689212769269943,
0.09267817437648773,
-0.02620569057762623,
0.04454609379172325,
0.04771042242646217,
0.0281172264367342,
-0.04161489009857178,
-0.06911517679691315,
0.005295784678310156,
0.0009615248418413103,
0.048607829958200455,
-0.07974033057689667,
0.02623901516199112,
-0.010843100026249886,
0.016855474561452866,
0.028676655143499374,
0.0002866555587388575,
-0.018650833517313004,
0.024747293442487717,
0.02741965837776661,
0.046441178768873215,
-0.03666474670171738,
-0.007114543113857508,
-0.056076530367136,
0.05763440206646919,
0.01743791252374649,
-0.2747925817966461,
0.024436937645077705,
0.024153629317879677,
0.023658527061343193,
-0.010206853970885277,
0.01610739901661873,
0.05260858312249184,
-0.06850254535675049,
0.01874939352273941,
0.018991954624652863,
0.030159739777445793,
0.057045988738536835,
0.0052733030170202255,
-0.014905584044754505,
0.01453737635165453,
0.022130658850073814,
0.040466733276844025,
0.0020171117503196,
0.022083669900894165,
-0.002838683081790805,
-0.01323780044913292,
-0.05590203404426575,
0.1424735188484192,
0.008886520750820637,
-0.0021786403376609087,
-0.002356860786676407,
-0.018588144332170486,
-0.029374657198786736,
0.05918791890144348,
0.01637851633131504,
-0.030323853716254234,
-0.006104909349232912,
0.06416559219360352,
-0.01475509349256754,
0.040680792182683945,
0.009408584795892239,
-0.015193496830761433,
0.03584093973040581,
0.02024141140282154,
-0.032266758382320404,
-0.026383904740214348,
0.04136285185813904,
-0.009001318365335464,
0.034195683896541595,
0.06710503250360489,
-0.022058792412281036,
0.011457866989076138,
-0.058209411799907684,
-0.07514482736587524,
0.0067116436548531055,
0.03175431117415428,
-0.0254164170473814,
-0.030148865655064583,
0.00046220773947425187,
0.020003793761134148,
0.0795387476682663,
0.00897796917706728,
-0.05020219087600708,
0.02084541879594326,
0.019013220444321632,
-0.0032847134862095118,
-0.03362898528575897,
0.10723162442445755,
0.025723395869135857,
0.0037936221342533827
] | [
-0.011005694977939129,
0.006423189304769039,
-0.01872944086790085,
0.009552228264510632,
-0.004086363594979048,
-0.03483781963586807,
-0.00819434318691492,
0.0007682607392780483,
-0.009842762723565102,
-0.015702713280916214,
-0.02175968512892723,
0.021859318017959595,
0.015870723873376846,
-0.004535839427262545,
-0.001625733100809157,
0.016787955537438393,
-0.03888709470629692,
0.03853059932589531,
-0.007641626056283712,
-0.015246361494064331,
-0.020442502573132515,
0.05505261942744255,
0.02714560739696026,
-0.006556992419064045,
-0.009268287569284439,
0.008879498578608036,
-0.05391095578670502,
-0.006907510571181774,
0.02034122496843338,
-0.13497084379196167,
0.032570842653512955,
-0.01165917981415987,
0.007068137638270855,
0.029998566955327988,
-0.02697739191353321,
-0.00196666968986392,
-0.04090562090277672,
0.003588806139305234,
0.035531848669052124,
0.007500750012695789,
-0.010709214955568314,
0.0022436014842242002,
-0.002559439744800329,
-0.018208296969532967,
-0.0075639220885932446,
-0.032194603234529495,
-0.054286133497953415,
0.009029081091284752,
0.004441913217306137,
0.006301593966782093,
-0.04155440628528595,
0.0030589152593165636,
0.03385402634739876,
0.008402423933148384,
-0.001065949210897088,
-0.04769405722618103,
-0.02675493247807026,
-0.02592809498310089,
0.005793773103505373,
-0.0742184966802597,
-0.010438556782901287,
-0.01969206891953945,
-0.006113995332270861,
-0.03485914319753647,
-0.02455851621925831,
-0.013979418203234673,
-0.020183861255645752,
0.009301806800067425,
0.062403470277786255,
0.0024394409265369177,
-0.06902653723955154,
0.02742699533700943,
-0.034061383455991745,
-0.03378026932477951,
-0.0407058447599411,
0.03407147899270058,
-0.019990038126707077,
-0.009393423795700073,
-0.002393500879406929,
-0.013758310116827488,
0.003586350241675973,
-0.0038650427013635635,
0.006027414463460445,
0.025615185499191284,
0.01863105595111847,
-0.02176043391227722,
0.03496818616986275,
0.00178341509308666,
0.014219469390809536,
-0.020718930289149284,
-0.01266111433506012,
0.010456114076077938,
0.026131901890039444,
0.019963501021265984,
-0.07987914979457855,
-0.032913725823163986,
-0.0022170061711221933,
0.024515444412827492,
0.002838170388713479,
0.8188233971595764,
0.032609518617391586,
0.0173716489225626,
0.02401595748960972,
0.005836073309183121,
-0.046019963920116425,
-0.05814564600586891,
-0.007855081930756569,
0.04041602090001106,
0.027894727885723114,
-0.029540924355387688,
0.021828796714544296,
0.023919276893138885,
0.03267772123217583,
0.05987244099378586,
0.014596430584788322,
0.011954721063375473,
0.015211295336484909,
-0.015776710584759712,
-0.0009411692735739052,
0.01669459603726864,
0.01248110644519329,
0.012095817364752293,
0.022477690130472183,
-0.009197701700031757,
0.005972959101200104,
-0.15933109819889069,
0.011273500509560108,
-6.708328059003923e-33,
0.03581047058105469,
0.043895136564970016,
-0.011717612855136395,
-0.02662050537765026,
0.009276924654841423,
0.0029763944912701845,
-0.03557606786489487,
0.01444727461785078,
-0.024985866621136665,
-0.045106835663318634,
-0.04293672367930412,
0.014905563555657864,
0.027981271967291832,
-0.02988138049840927,
0.026422100141644478,
-0.010529718361794949,
-0.003128556301817298,
0.05531058833003044,
0.03363649174571037,
-0.0008808349957689643,
0.02855244092643261,
0.03404535353183746,
0.012644030153751373,
0.0194159597158432,
0.011269824579358101,
-0.01667177677154541,
0.0315033458173275,
-0.007002893835306168,
-0.01870405301451683,
-0.05692119151353836,
0.0028705657459795475,
0.017247293144464493,
-0.002930436283349991,
-0.009000577963888645,
0.06924599409103394,
-0.04155086353421211,
0.006424112245440483,
0.028081651777029037,
-0.014685274101793766,
-0.019343631342053413,
-0.05486452206969261,
-0.018270529806613922,
-0.027375629171729088,
-0.01325110625475645,
-0.014997231774032116,
-0.028671005740761757,
-0.0175012219697237,
0.053407907485961914,
-0.03267544135451317,
0.02946237102150917,
0.007251564878970385,
0.00003735056088771671,
0.003603928256779909,
-0.008074523881077766,
0.0005276540177874267,
-0.013550613075494766,
-0.011475741863250732,
-0.01687713898718357,
0.030253112316131592,
0.032495222985744476,
-0.021595612168312073,
0.015100403688848019,
0.010429270565509796,
-0.005326387006789446,
0.00747640710324049,
-0.017414510250091553,
0.06836551427841187,
0.01183979120105505,
0.02161693386733532,
0.017983872443437576,
-0.007629105355590582,
-0.014433907344937325,
-0.006353044882416725,
0.00018386595183983445,
0.02921845205128193,
-0.0002099864068441093,
-0.0066385637037456036,
-0.000698030402418226,
0.03521239012479782,
0.05115470662713051,
0.010180659592151642,
-0.005433042999356985,
0.0034862400498241186,
-0.011355233378708363,
-0.033448267728090286,
-0.03491361439228058,
0.01602787896990776,
-0.00868094153702259,
-0.06802535057067871,
-0.02074047364294529,
0.03989413008093834,
0.005421436857432127,
-0.01135314628481865,
-0.008458703756332397,
0.017697539180517197,
7.406510724622913e-33,
0.01075934711843729,
-0.0002548928023315966,
0.03554707393050194,
0.02371976524591446,
0.04697737097740173,
-0.047744326293468475,
0.027431679889559746,
-0.006310103461146355,
-0.010064348578453064,
0.039472468197345734,
0.00519035616889596,
-0.007483731489628553,
0.003199695609509945,
0.03273751586675644,
0.0741165354847908,
-0.006622547283768654,
0.011438669636845589,
0.012175312265753746,
-0.0249352864921093,
0.023799948394298553,
0.018522119149565697,
-0.005581493955105543,
0.010085728019475937,
0.03464842215180397,
0.012477509677410126,
0.05159006640315056,
0.011651825159788132,
-0.047149840742349625,
-0.0015969229862093925,
-0.01795523799955845,
0.02009717747569084,
0.018968606367707253,
-0.016703031957149506,
-0.047029364854097366,
-0.011667728424072266,
0.06693676114082336,
0.0008140267455019057,
0.00554599380120635,
0.026910968124866486,
-0.013254502788186073,
0.022092729806900024,
0.04628554731607437,
0.010119995102286339,
0.022068308666348457,
0.009729589335620403,
-0.015478680841624737,
0.010660745203495026,
0.005572529975324869,
-0.03129583224654198,
0.024278998374938965,
-0.009543944150209427,
0.013096624985337257,
0.04113667830824852,
-0.0018637761240825057,
0.014887756668031216,
-0.0111282579600811,
-0.027941450476646423,
0.027155593037605286,
-0.09651872515678406,
0.014489537104964256,
-0.00893307849764824,
0.002796922577545047,
-0.013835788704454899,
0.011378071270883083,
-0.06126668304204941,
-0.04852735251188278,
-0.037154655903577805,
-0.01707141101360321,
0.00952974520623684,
-0.013473669067025185,
0.00610602181404829,
-0.05595133453607559,
-0.004717690404504538,
0.03866109251976013,
0.034759633243083954,
-0.0015408359467983246,
-0.02783307433128357,
0.005665094591677189,
-0.0069606308825314045,
0.034935399889945984,
0.012062295340001583,
0.0033965096808969975,
0.038581348955631256,
0.019003598019480705,
0.014924181625247002,
0.006426903884857893,
-0.03560071811079979,
0.017489705234766006,
0.030872410163283348,
-0.03464469313621521,
-0.015271823853254318,
-0.02589847892522812,
-0.01803712360560894,
0.03561735898256302,
0.008614160120487213,
-1.247952496896687e-8,
-0.025593437254428864,
0.012665179558098316,
-0.016822850331664085,
0.020277349278330803,
0.05488191172480583,
0.021532494574785233,
-0.02253868244588375,
0.02743547596037388,
-0.013474537990987301,
0.01821109652519226,
0.03139515221118927,
-0.025133343413472176,
-0.028771700337529182,
-0.004247430711984634,
0.011284513399004936,
-0.025825344026088715,
-0.0042243762873113155,
-0.020175140351057053,
0.037608880549669266,
-0.016403352841734886,
0.050422124564647675,
0.015096120536327362,
0.003914755303412676,
-0.0168142206966877,
0.05311854928731918,
-0.029798880219459534,
0.024692019447684288,
-0.08189697563648224,
-0.04133498668670654,
-0.02981884777545929,
0.05960872396826744,
-0.028086882084608078,
-0.045955441892147064,
-0.013298994861543179,
-0.011288617737591267,
-0.02517353557050228,
0.03566625714302063,
0.016230814158916473,
0.00048381605301983654,
0.0006628383416682482,
0.002625321503728628,
-0.0009517226135358214,
-0.01195937767624855,
-0.017000189051032066,
-0.026397567242383957,
-0.010928076691925526,
-0.0347115620970726,
0.0012765865540131927,
0.0016122719971463084,
-0.034670282155275345,
0.03712799400091171,
-0.015457268804311752,
-0.005375227890908718,
0.05631803721189499,
0.05919009447097778,
-0.007922458462417126,
0.006244323682039976,
-0.020319871604442596,
-0.02097461000084877,
-0.01784786581993103,
0.03172599524259567,
0.01995759643614292,
-0.010683197528123856,
-0.03822111338376999
] | r-dplyr-segfault-cause-memory-not-mapped | https://markhneedham.com/blog/2015/06/20/r-dplyr-segfault-cause-memory-not-mapped |
false | 2015-06-27 22:36:50 | R: dplyr - squashing multiple rows per group into one | [
"r-2"
] | [
"R"
] | I spent a bit of the day working on my http://www.markhneedham.com/blog/2015/06/25/r-scraping-wimbledon-draw-data/[Wimbledon] http://www.markhneedham.com/blog/2015/06/26/r-ggplot-show-discrete-scale-even-with-no-value/[data set] and the next thing I explored is all the people that have beaten Andy Murray in the tournament.
The following dplyr query gives us the names of those people and the year the match took place:
[source,r]
----
library(dplyr)
> main_matches %>% filter(loser == "Andy Murray") %>% select(winner, year)
winner year
1 Grigor Dimitrov 2014
2 Roger Federer 2012
3 Rafael Nadal 2011
4 Rafael Nadal 2010
5 Andy Roddick 2009
6 Rafael Nadal 2008
7 Marcos Baghdatis 2006
8 David Nalbandian 2005
----
As you can see, Rafael Nadal shows up multiple times. I wanted to get one row per player and list all the years in a single column.
This was my initial attempt:
[source,r]
----
> main_matches %>% filter(loser == "Andy Murray") %>%
group_by(winner) %>% summarise(years = paste(year))
Source: local data frame [6 x 2]
winner years
1 Andy Roddick 2009
2 David Nalbandian 2005
3 Grigor Dimitrov 2014
4 Marcos Baghdatis 2006
5 Rafael Nadal 2011
6 Roger Federer 2012
----
Unfortunately it just gives you the last matching row per group which isn't quite what we want.. I realised my mistake while trying to pass a vector into paste and noticing that a vector came back when I'd expected a string:
[source,r]
----
> paste(c(2008,2009,2010))
[1] "2008" "2009" "2010"
----
The missing argument was 'collapse' - http://www.markhneedham.com/blog/2014/08/11/r-grouping-by-two-variables/[something I'd come across when using plyr] last year:
[source,r]
----
> paste(c(2008,2009,2010), collapse=", ")
[1] "2008, 2009, 2010"
----
Now, if we apply that to our original function:
[source,r]
----
> main_matches %>% filter(loser == "Andy Murray") %>%
group_by(winner) %>% summarise(years = paste(year, collapse=", "))
Source: local data frame [6 x 2]
winner years
1 Andy Roddick 2009
2 David Nalbandian 2005
3 Grigor Dimitrov 2014
4 Marcos Baghdatis 2006
5 Rafael Nadal 2011, 2010, 2008
6 Roger Federer 2012
----
That's exactly what we want. Let's tidy that up a bit:
[source,r]
----
> main_matches %>% filter(loser == "Andy Murray") %>%
group_by(winner) %>% arrange(year) %>%
summarise(years = paste(year, collapse =","), times = length(year)) %>%
arrange(desc(times), years)
Source: local data frame [6 x 3]
winner years times
1 Rafael Nadal 2008,2010,2011 3
2 David Nalbandian 2005 1
3 Marcos Baghdatis 2006 1
4 Andy Roddick 2009 1
5 Roger Federer 2012 1
6 Grigor Dimitrov 2014 1
---- | null | null | [
-0.029099225997924805,
-0.02519364282488823,
0.024697938933968544,
0.028455842286348343,
0.07844733446836472,
-0.004495412111282349,
0.038241565227508545,
0.03145136311650276,
0.01591898687183857,
-0.010692167095839977,
0.0029666938353329897,
-0.020461173728108406,
-0.06530997157096863,
0.024455564096570015,
-0.004252370446920395,
0.11205185949802399,
0.04922894760966301,
0.013725482858717442,
-0.0013981758384034038,
0.0073839109390974045,
0.0456911064684391,
0.04558398202061653,
0.01375794131308794,
0.03715713322162628,
0.05076233670115471,
0.001579134026542306,
-0.002049617236480117,
0.011399517767131329,
-0.054488345980644226,
0.01995374634861946,
0.0578857846558094,
0.012066002935171127,
0.013144409283995628,
0.0037753982469439507,
0.027087412774562836,
-0.024620914831757545,
-0.019697168841958046,
0.020407747477293015,
0.009083428420126438,
-0.017241958528757095,
-0.07561436295509338,
0.018429195508360863,
-0.03699827939271927,
0.029706936329603195,
-0.015809426084160805,
-0.0044953590258955956,
-0.029788507148623466,
0.02215108461678028,
0.002285064198076725,
0.018069259822368622,
-0.04695490747690201,
0.03647821024060249,
-0.005944996140897274,
0.007595880888402462,
-0.023844482377171516,
0.041412465274333954,
0.040268782526254654,
-0.051744818687438965,
0.012631132267415524,
-0.047084271907806396,
-0.011860382743179798,
0.008486272767186165,
-0.018438415601849556,
0.0036162189207971096,
0.007993229664862156,
-0.024137215688824654,
0.003544091247022152,
0.03185318037867546,
-0.023133642971515656,
0.0062589021399617195,
-0.048247337341308594,
-0.014307640492916107,
0.006706251762807369,
-0.020608149468898773,
0.014208794571459293,
-0.03267912566661835,
0.00440044654533267,
0.06070129945874214,
0.014557761140167713,
0.026599565520882607,
-0.014667931012809277,
-0.02628317102789879,
-0.0074346838518977165,
0.019691333174705505,
0.007416305597871542,
-0.0600321888923645,
-0.012565633282065392,
-0.05579286068677902,
-0.0603783093392849,
0.06779546290636063,
-0.014329587109386921,
-0.04417026415467262,
0.028003916144371033,
0.037147510796785355,
-0.01768389530479908,
-0.010551589541137218,
0.02082054503262043,
-0.014393718913197517,
-0.01518991682678461,
-0.04562247544527054,
-0.05784338712692261,
-0.04826308414340019,
0.042442888021469116,
0.010124956257641315,
-0.0972193032503128,
0.008858800865709782,
-0.032595258206129074,
0.0206303708255291,
0.0056096469052135944,
0.02373305894434452,
-0.03001539036631584,
0.003489056369289756,
-0.0018504903418943286,
-0.0011885056737810373,
-0.07098644971847534,
0.08491428941488266,
0.046305302530527115,
-0.022122491151094437,
0.022052086889743805,
0.020216593518853188,
0.033757977187633514,
0.01607455499470234,
-0.008872638456523418,
0.0866134911775589,
0.00706408079713583,
0.03829575702548027,
0.03791920840740204,
0.029578853398561478,
-0.030956225469708443,
-0.06272448599338531,
0.015812957659363747,
0.05404333025217056,
-0.01796075329184532,
0.0080908527597785,
-0.008051401935517788,
-0.02291840687394142,
-0.010735783725976944,
-0.044124241918325424,
0.061321813613176346,
0.03474918380379677,
0.03418318182229996,
-0.009537732228636742,
0.006569060496985912,
0.019143089652061462,
0.04448794946074486,
-0.005359291564673185,
0.01878310553729534,
-0.04698757454752922,
-0.021386845037341118,
-0.014348612166941166,
0.04319576174020767,
0.030763404443860054,
0.05531299114227295,
-0.022748451679944992,
0.019546156749129295,
0.10062933713197708,
0.03392532095313072,
-0.024521298706531525,
-0.019670529291033745,
0.011241387575864792,
0.06359444558620453,
0.03184033930301666,
0.025840086862444878,
0.055908020585775375,
0.015695026144385338,
-0.026532694697380066,
0.014506413601338863,
0.0360465869307518,
-0.046791113913059235,
-0.015212291851639748,
-0.06348183006048203,
-0.03789963945746422,
0.08193820714950562,
-0.0312965102493763,
0.01060582511126995,
0.03135073184967041,
0.07148952782154083,
0.03872021287679672,
0.056197796016931534,
0.006769126746803522,
-0.0737113431096077,
0.02813374251127243,
-0.0026724340859800577,
0.03653975948691368,
0.0394868440926075,
-0.013575736433267593,
0.08973592519760132,
0.041090525686740875,
0.02634654939174652,
0.07787583023309708,
-0.07095058262348175,
-0.049345601350069046,
-0.03238349035382271,
-0.028676537796854973,
0.045402128249406815,
-0.022650692611932755,
0.018902013078331947,
0.051447659730911255,
0.01864640787243843,
0.03556118905544281,
-0.023327181115746498,
0.030836010351777077,
0.02066749706864357,
-0.0369335412979126,
-0.052365418523550034,
0.02002015709877014,
0.01248306967318058,
-0.03076818957924843,
-0.0133111122995615,
0.056120604276657104,
-0.03240503743290901,
0.022641144692897797,
0.001712751341983676,
-0.02475450001657009,
0.02262856252491474,
0.025716450065374374,
0.07372063398361206,
0.012565577402710915,
0.023217614740133286,
-0.05266961827874184,
0.04373009130358696,
0.031086592003703117,
-0.021809162572026253,
-0.009270641952753067,
0.01264116819947958,
0.14914610981941223,
0.051271967589855194,
-0.024480082094669342,
-0.0682356208562851,
0.0227003563195467,
-0.021465662866830826,
-0.008715699426829815,
0.02045782469213009,
-0.007555458694696426,
-0.016564199700951576,
-0.008611934259533882,
-0.031754203140735626,
-0.042230211198329926,
0.01826678402721882,
-0.036872539669275284,
-0.0007946768891997635,
0.04980865493416786,
0.015651356428861618,
0.043105706572532654,
-0.020168809220194817,
-0.0009652150911279023,
-0.026627102866768837,
-0.01815074309706688,
-0.07066535949707031,
-0.02217167057096958,
0.01322751771658659,
-0.012175197713077068,
0.005161087494343519,
-0.02949543483555317,
-0.01338227279484272,
-0.019549230113625526,
-0.058955080807209015,
0.026852909475564957,
0.04812648519873619,
0.05464703217148781,
-0.030064022168517113,
0.03280993923544884,
-0.010720714926719666,
-0.005922493524849415,
-0.031348444521427155,
-0.044460613280534744,
-0.06365811079740524,
-0.044222813099622726,
0.01011483184993267,
0.0006943568587303162,
0.024805784225463867,
-0.015010339207947254,
-0.029408102855086327,
0.014894172549247742,
0.0049855695106089115,
-0.003570185974240303,
0.029609065502882004,
-0.004781542811542749,
0.004154434893280268,
0.003880143631249666,
0.01186686847358942,
0.0597970113158226,
-0.025384053587913513,
-0.00691976398229599,
-0.007802807725965977,
-0.05488983541727066,
0.01044504251331091,
-0.05432627350091934,
-0.029341746121644974,
0.01764405332505703,
-0.00463250745087862,
0.05232297629117966,
0.016578424721956253,
0.00010133378964383155,
0.044682808220386505,
0.010656154714524746,
0.02071189507842064,
0.031112024560570717,
-0.010356719605624676,
0.0494610033929348,
0.019026031717658043,
0.04366184398531914,
0.0443953312933445,
-0.035262443125247955,
0.02562914602458477,
-0.03759787604212761,
0.0023780963383615017,
-0.02204435132443905,
-0.2548917233943939,
0.028769200667738914,
0.008769228123128414,
-0.020846158266067505,
0.028252823278307915,
-0.04067375138401985,
0.014318715780973434,
-0.017959047108888626,
-0.01337164081633091,
-0.004325224552303553,
-0.00012580469774547964,
-0.03991122171282768,
-0.03311491385102272,
0.026627833023667336,
0.03722696751356125,
0.014552600681781769,
0.003410494886338711,
-0.04521438106894493,
0.009184928610920906,
0.0615873746573925,
0.039169952273368835,
-0.04252690449357033,
-0.016891421750187874,
0.04518677666783333,
0.029620934277772903,
0.08664762228727341,
-0.04305644333362579,
0.00004953951429342851,
-0.06844975054264069,
-0.021946679800748825,
0.003789248177781701,
-0.007338341325521469,
0.01470942422747612,
-0.00030261583742685616,
-0.0148171903565526,
-0.012983805499970913,
0.037375181913375854,
-0.005093515384942293,
0.008076963946223259,
0.03968008980154991,
-0.03443080186843872,
-0.024791294708848,
-0.005802897736430168,
-0.005535183008760214,
0.07345372438430786,
0.016065996140241623,
-0.05522649735212326,
0.014737717807292938,
-0.0328134186565876,
0.051005274057388306,
-0.007813181728124619,
-0.01740947738289833,
-0.027152521535754204,
0.004577429033815861,
-0.02570457011461258,
0.009377578273415565,
-0.02309817634522915,
-0.03454943001270294,
-0.03942892327904701,
-0.0007834308780729771,
-0.018093671649694443,
-0.018421730026602745,
-0.004008899442851543,
-0.03152833878993988,
0.001660944428294897,
-0.08081713318824768,
-0.039206504821777344,
-0.008851905353367329,
0.08807161450386047,
0.0520995631814003,
-0.028038887307047844,
0.00018113073019776493,
-0.024818768724799156,
-0.09629788994789124,
-0.022151309996843338,
-0.0018451132345944643,
0.00521750608459115,
0.007875633426010609,
0.01448772195726633,
0.03088698722422123,
-0.062265120446681976,
-0.04986966401338577,
0.005486109293997288,
-0.003579533426091075,
0.029559025540947914,
-0.010847367346286774,
0.001810679561458528,
0.030648238956928253,
-0.027028009295463562,
-0.011509670875966549,
0.07045222818851471,
-0.03360060229897499,
-0.021894238889217377,
-0.013021458871662617,
-0.020263202488422394,
0.05085146054625511,
-0.010475536808371544,
0.014860647730529308,
0.02145511656999588,
0.04042748734354973,
0.0060748993419110775,
-0.07204924523830414,
0.0262347012758255,
-0.054557446390390396,
-0.02815108373761177,
-0.006947006098926067,
-0.05603775382041931,
0.004038313869386911,
0.00959569402039051,
0.01452671829611063,
0.04024575278162956,
-0.042240772396326065,
0.019638704136013985,
-0.04975002631545067,
-0.009298381395637989,
-0.007750901859253645,
0.027307258918881416,
0.013465222902595997,
-0.00024340911477338523,
-0.001322745461948216,
-0.04466742277145386,
0.006516434717923403,
-0.02258940599858761,
-0.019572753459215164,
-0.04641743376851082,
-0.012968944385647774,
0.020960969850420952,
-0.02146260067820549,
0.008106650784611702,
0.010882486589252949,
-0.0059658680111169815,
0.008422328159213066,
0.04553770273923874,
-0.03557143360376358,
0.050494369119405746,
0.005786838009953499,
-0.04408857226371765,
-0.029270339757204056,
0.01734447479248047,
0.016461968421936035,
-0.006663660518825054,
0.01843729242682457,
0.01473207026720047,
0.009100636467337608,
0.014934312552213669,
-0.0055723609402775764,
0.005117159336805344,
-0.006392887327820063,
0.004579518456012011,
0.0021235228050500154,
-0.007288964930921793,
0.009662671945989132,
0.023611830547451973,
-0.06115046888589859,
-0.011293414980173111,
-0.012897850945591927,
0.03581678494811058,
-0.010208714753389359,
-0.026753295212984085,
-0.04617270082235336,
0.009878899902105331,
-0.023139458149671555,
-0.02785741537809372,
-0.010070965625345707,
0.007187864743173122,
0.051402267068624496,
0.00908299908041954,
0.012313240207731724,
0.010383949615061283,
0.011880746111273766,
0.007206023670732975,
-0.01656496711075306,
-0.030065396800637245,
-0.00502817751839757,
-0.022347643971443176,
-0.01212292443960905,
0.018143124878406525,
0.0001526514970464632,
0.006390969734638929,
0.020794007927179337,
-0.0007925901445560157,
-0.025357680395245552,
0.001619484624825418,
0.026949163526296616,
0.047456227242946625,
0.05609116330742836,
-0.018895884975790977,
-0.0024938222486525774,
-0.01289474405348301,
-0.022683370858430862,
-0.033158186823129654,
-0.004819544032216072,
-0.015141108073294163,
-0.0036384277045726776,
-0.051091670989990234,
-0.06558992713689804,
0.024844635277986526,
0.03203575313091278,
-0.01614944078028202,
0.0039063855074346066,
-0.0097659258171916,
-0.008990189991891384,
-0.020524177700281143,
0.05271435156464577,
0.0815243124961853,
-0.06632649153470993,
-0.012041247449815273,
0.004055339843034744,
-0.01430440042167902,
0.013055642135441303,
0.0035041512455791235,
-0.06651145964860916,
-0.0003606838872656226,
0.006757712922990322,
0.06370033323764801,
-0.03146057575941086,
-0.01871972717344761,
-0.03953441232442856,
0.0046716961078345776,
0.02746843546628952,
0.030438393354415894,
-0.03614818677306175,
-0.010077745653688908,
0.013802939094603062,
-0.019143065437674522,
0.015995725989341736,
-0.012863934971392155,
-0.06584861129522324,
0.04567325860261917,
-0.0228433795273304,
0.009353840723633766,
-0.023286830633878708,
-0.009788552299141884,
0.04611695557832718,
-0.025791732594370842,
-0.011195951141417027,
-0.026177849620580673,
0.0051395948976278305,
0.02061075158417225,
0.036757778376340866,
-0.0009358176030218601,
-0.030320409685373306,
-0.03549691289663315,
0.016629710793495178,
-0.006432283204048872,
-0.00990343652665615,
-0.007791910320520401,
-0.024398362264037132,
0.05312533304095268,
0.046329788863658905,
0.013619680888950825,
0.01977398619055748,
0.003790190676227212,
-0.03489087149500847,
0.04974430426955223,
-0.03255324810743332,
-0.035402920097112656,
-0.0067676943726837635,
-0.049774207174777985,
0.0474681556224823,
0.0008653751574456692,
0.03374430537223816,
-0.05894048511981964,
0.016219833865761757,
0.0369071364402771,
-0.0014682695036754012,
0.05836128816008568,
0.026543108746409416,
0.03332207724452019,
-0.021843984723091125,
-0.017446022480726242,
-0.09686078876256943,
-0.012636810541152954,
0.025113461539149284,
-0.0027137279976159334,
-0.0022280034609138966,
-0.007016999647021294,
-0.048129744827747345,
-0.0004335947160143405,
-0.06598588079214096,
-0.057075973600149155,
0.020677438005805016,
-0.015335356816649437,
-0.01404636725783348,
-0.0003801384009420872,
-0.06151054799556732,
-0.025155840441584587,
0.030982311815023422,
-0.040336042642593384,
-0.022586114704608917,
-0.019761355593800545,
0.05099641531705856,
-0.037784263491630554,
0.01915355958044529,
-0.01607678271830082,
-0.033666886389255524,
0.05852292478084564,
0.03148188441991806,
0.016882147639989853,
0.03274745121598244,
-0.03386763483285904,
0.032669804990291595,
0.009379656985402107,
0.005644240882247686,
0.008620275184512138,
0.02356979437172413,
0.0017147662583738565,
-0.05292650684714317,
0.008104790933430195,
-0.008348304778337479,
-0.014051142148673534,
-0.06254429370164871,
0.08591415733098984,
-0.004134188871830702,
-0.0490991435945034,
-0.05010833591222763,
-0.0007476382306776941,
-0.00977336522191763,
0.013329178094863892,
-0.0029105977155268192,
0.014062791131436825,
-0.058500986546278,
0.060230087488889694,
0.008939108811318874,
-0.00896062795072794,
0.053069766610860825,
0.017764456570148468,
-0.023429227992892265,
0.0055448682978749275,
0.09866415709257126,
0.09279560297727585,
0.03765951842069626,
-0.012003912590444088,
0.07387959212064743,
-0.010714859701693058,
-0.05929471552371979,
0.012785276398062706,
-0.02195480652153492,
-0.015148615464568138,
-0.032027292996644974,
0.012798120267689228,
0.037201445549726486,
-0.03345320373773575,
0.06988495588302612,
-0.016474012285470963,
-0.05170894414186478,
0.016896676272153854,
0.003249294823035598,
0.0430748425424099,
0.04183133319020271,
0.0026558490935713053,
0.06546271592378616,
-0.0027958129066973925,
-0.03557007759809494,
0.020411847159266472,
0.000010035844752565026,
-0.02037896402180195,
0.0014671690296381712,
-0.03567032888531685,
0.006862737704068422,
-0.005565444473177195,
0.011870707385241985,
0.077017642557621,
-0.038901638239622116,
-0.022375943139195442,
-0.003450223244726658,
0.0407126247882843,
0.01610661670565605,
0.021535707637667656,
-0.01279680710285902,
-0.026741502806544304,
-0.04951653257012367,
-0.05559248477220535,
-0.024382811039686203,
-0.01757741905748844,
-0.01277787983417511,
0.00810263305902481,
-0.06798543781042099,
0.004186445847153664,
0.04864652454853058,
-0.013709803111851215,
-0.037191059440374374,
-0.05036793649196625,
-0.039585795253515244,
-0.07279720902442932,
-0.0736420676112175,
-0.01891779527068138,
0.02220107614994049,
-0.017186613753437996,
-0.020234035328030586,
-0.011914565227925777,
-0.0004524083633441478,
-0.03571537137031555,
0.04726700112223625,
-0.06526955217123032,
-0.04650149866938591,
0.02216457389295101,
0.02184896171092987,
0.03283881023526192,
0.020958418026566505,
0.05891212448477745,
0.010609826073050499,
-0.00847608596086502,
-0.039967432618141174,
-0.005861490499228239,
0.036726340651512146,
0.020093049854040146,
-0.004562809597700834,
-0.10195311903953552,
0.0342826172709465,
-0.005245666950941086,
-0.058964166790246964,
-0.07433317601680756,
0.02137073688209057,
0.001996446866542101,
0.0008102100109681487,
0.03648843243718147,
-0.0165588166564703,
0.016777167096734047,
-0.06917514652013779,
-0.02012532949447632,
0.0031545942183583975,
0.013977914117276669,
0.045718997716903687,
-0.022343028336763382,
0.06452523171901703,
0.041915711015462875,
0.015532181598246098,
-0.05352267622947693,
-0.01674581505358219,
0.01752522587776184,
0.0019382208120077848,
-0.05416116490960121,
-0.03715057298541069,
-0.054854270070791245,
-0.11458908021450043,
-0.021857094019651413,
0.011366697028279305,
-0.03723066672682762,
-0.03660750016570091,
0.007581925950944424,
0.034662045538425446,
-0.008733205497264862,
0.00849915575236082,
-0.028145989403128624,
0.016346648335456848,
-0.02649509534239769,
-0.00029467054991982877,
-0.015588605776429176,
0.045302800834178925,
-0.00881215650588274,
0.013155016116797924,
0.02207985892891884,
-0.0447954498231411,
0.01943601854145527,
-0.02046925574541092,
-0.009768005460500717,
0.030128760263323784,
0.023234328255057335,
-0.006304709240794182
] | [
-0.0751771405339241,
-0.0013299821875989437,
-0.0457005575299263,
-0.006832506041973829,
0.06541270017623901,
-0.014083579182624817,
0.015996204689145088,
0.01387886330485344,
0.04811348393559456,
0.02358044683933258,
0.020040269941091537,
-0.06296609342098236,
0.013126031495630741,
0.007996941916644573,
-0.011072982102632523,
-0.01393910963088274,
-0.01903657428920269,
-0.05343621224164963,
-0.02633502148091793,
0.02115417644381523,
-0.047027960419654846,
-0.03816521167755127,
-0.04415028914809227,
-0.0498858280479908,
0.03233978524804115,
0.025471916422247887,
0.03641446679830551,
-0.03882354497909546,
-0.0295875146985054,
-0.2342357486486435,
0.0008948355098254979,
-0.010646418668329716,
0.02616920880973339,
-0.00862086657434702,
-0.0014950954355299473,
0.0012270109727978706,
-0.02383037842810154,
0.024215050041675568,
0.03018038719892502,
0.03706153482198715,
-0.003725225804373622,
-0.006701372098177671,
-0.03966934233903885,
0.004199075512588024,
0.041918642818927765,
0.020443474873900414,
-0.02572176791727543,
0.005620963405817747,
0.030816812068223953,
0.034138768911361694,
-0.048805490136146545,
0.020778262987732887,
-0.008714066818356514,
-0.007240943610668182,
0.009560076519846916,
0.05864114686846733,
0.05214979499578476,
0.03410055488348007,
0.010483046993613243,
0.032589469105005264,
0.04607010632753372,
0.018305081874132156,
-0.16082458198070526,
0.07817337661981583,
0.01857084408402443,
0.019252462312579155,
-0.03489901125431061,
0.02819458581507206,
-0.002697623334825039,
0.08720751106739044,
0.010740496218204498,
-0.023260999470949173,
-0.004142184276133776,
0.01511531975120306,
0.01693899929523468,
-0.014153988100588322,
-0.03986518457531929,
0.013606540858745575,
-0.013415871188044548,
0.02592216618359089,
0.0001082467133528553,
0.013831489719450474,
-0.042241111397743225,
-0.05127786844968796,
-0.03998948261141777,
0.035416390746831894,
-0.029932674020528793,
-0.0054251146502792835,
-0.014299269765615463,
0.007379590068012476,
0.0412260964512825,
0.06741547584533691,
0.013624384067952633,
0.04444009065628052,
-0.11415737122297287,
-0.017801478505134583,
0.03437060862779617,
0.025264590978622437,
0.00666058249771595,
0.42769891023635864,
-0.0043086400255560875,
0.005108232144266367,
0.033998169004917145,
0.07521805912256241,
-0.0011870997259393334,
-0.042260680347681046,
-0.02009745128452778,
-0.047303855419158936,
0.01659347303211689,
-0.01436939463019371,
0.009172522462904453,
-0.03664277866482735,
0.07088346034288406,
-0.025085678324103355,
0.03075978346168995,
0.009445312432944775,
0.020393697544932365,
0.04452960938215256,
-0.0030029979534447193,
0.020972905680537224,
-0.04133561998605728,
-0.0004017064056824893,
-0.014508245512843132,
0.015681924298405647,
-0.02570897340774536,
0.027913285419344902,
0.03362118825316429,
0.0868152603507042,
0.05400383844971657,
-0.026089739054441452,
0.05182532221078873,
0.0013478181790560484,
-0.12296389788389206,
0.02970999665558338,
0.0033301308285444975,
-0.006658845581114292,
0.034299492835998535,
-0.011740303598344326,
0.01464669220149517,
0.02340761385858059,
-0.007799346465617418,
-0.04320589452981949,
0.060703784227371216,
0.01332111842930317,
-0.018045706674456596,
0.12441426515579224,
-0.023992691189050674,
-0.04634557664394379,
-0.0019191966857761145,
-0.05326329916715622,
0.001916883629746735,
0.023178016766905785,
0.012777243740856647,
-0.03679173067212105,
-0.020787637680768967,
0.03113609179854393,
0.07653452455997467,
-0.04818962141871452,
-0.06974148750305176,
-0.03921203687787056,
-0.040067095309495926,
-0.0331386923789978,
-0.04147106409072876,
0.07020605355501175,
0.05579085275530815,
-0.11199524253606796,
-0.0336286798119545,
0.006512047722935677,
-0.024939730763435364,
-0.0720963254570961,
0.055489249527454376,
-0.006370569579303265,
-0.0334089994430542,
0.016773508861660957,
0.03380594030022621,
0.0008602866437286139,
-0.029379434883594513,
-0.027618637308478355,
0.09333059936761856,
-0.015162327326834202,
0.020640579983592033,
0.005518405698239803,
-0.05688870698213577,
0.005679707508534193,
-0.056239545345306396,
-0.03796631842851639,
-0.07670354098081589,
0.01816730946302414,
0.009557659737765789,
0.007650441024452448,
-0.031733058393001556,
-0.057522937655448914,
-0.0943387821316719,
0.09817463904619217,
-0.054031141102313995,
-0.01697530783712864,
0.010346733033657074,
-0.003785127541050315,
0.012577923946082592,
-0.033910684287548065,
-0.043555647134780884,
-0.02329813875257969,
0.027969200164079666,
0.01918376050889492,
-0.03039064258337021,
0.034956060349941254,
0.02872406132519245,
-0.02761176973581314,
0.0770173892378807,
0.026096059009432793,
0.013164462521672249,
-0.031494271010160446,
-0.0471225380897522,
0.00009855975804384798,
-0.014896317385137081,
0.0029885992407798767,
-0.009526217356324196,
-0.009682981297373772,
0.0123715465888381,
0.028165969997644424,
-0.011207549832761288,
-0.008888212963938713,
-0.0048697637394070625,
-0.3524702489376068,
-0.07122890651226044,
-0.0448756143450737,
0.008517954498529434,
0.028462788090109825,
-0.026437096297740936,
-0.013160472735762596,
-0.002953144023194909,
0.028789037838578224,
0.05928436666727066,
0.026269923895597458,
0.02105611190199852,
-0.01909681223332882,
-0.05595235899090767,
-0.015113863162696362,
-0.000051734015869442374,
-0.022784732282161713,
-0.01227996964007616,
-0.03292812034487724,
0.01212058775126934,
0.01951090432703495,
-0.005110235884785652,
-0.04626783728599548,
-0.001211254158988595,
0.01785082183778286,
-0.04830200970172882,
0.1443890631198883,
0.10211501270532608,
-0.01825975999236107,
-0.03748205304145813,
0.035029731690883636,
0.028739381581544876,
-0.02848650887608528,
-0.05408747121691704,
0.030779756605625153,
-0.00826870184391737,
0.00707880686968565,
-0.027167227119207382,
0.006840043235570192,
-0.06420385837554932,
-0.012353761121630669,
0.011365154758095741,
-0.009506482630968094,
-0.03144712373614311,
-0.04101032391190529,
0.0190048199146986,
-0.003122100606560707,
0.0006925711641088128,
-0.01889750175178051,
0.10153312236070633,
0.051105838268995285,
-0.017558222636580467,
0.08453967422246933,
-0.008048838004469872,
0.03284493088722229,
-0.01237938366830349,
-0.08858496695756912,
0.005055489484220743,
-0.010630634613335133,
-0.02031748555600643,
0.006547349505126476,
-0.010247590951621532,
0.0671328455209732,
-0.04982506111264229,
-0.033918917179107666,
0.01160371582955122,
0.01493157260119915,
-0.018806325271725655,
0.0020301626063883305,
-0.021122852340340614,
-0.021599873900413513,
0.032564688473939896,
-0.00823389645665884,
0.04954974725842476,
0.0452406108379364,
0.0442812442779541,
0.005979490000754595,
-0.016603762283921242,
0.022678136825561523,
0.010067863389849663,
0.06331125646829605,
-0.029957570135593414,
0.04693874716758728,
0.0004932274459861219,
0.026803134009242058,
0.03561290353536606,
0.014267966151237488,
0.006071127485483885,
0.045400504022836685,
0.027348823845386505,
-0.0069298455491662025,
0.0036338490899652243,
-0.044697605073451996,
-0.020525166764855385,
0.024667585268616676,
0.001522401231341064,
-0.2571110427379608,
0.04495628923177719,
0.046984463930130005,
0.0377640575170517,
0.00994829274713993,
0.018326951190829277,
0.03473443165421486,
-0.04210616275668144,
0.004343661013990641,
0.023757485672831535,
0.025551659986376762,
0.026804642751812935,
0.0018470840295776725,
-0.013049707747995853,
-0.03268129751086235,
-0.04404538497328758,
0.012572609819471836,
0.00005004183913115412,
0.029731331393122673,
0.036766570061445236,
0.05730210989713669,
-0.0009110111277550459,
0.15552519261837006,
-0.019790027290582657,
0.022342197597026825,
0.026708194985985756,
-0.03695382922887802,
-0.02820124663412571,
0.015158998779952526,
-0.00845069158822298,
-0.018308645114302635,
0.0016450921539217234,
0.04547896236181259,
-0.0006043206667527556,
0.012120639905333519,
-0.006505817174911499,
-0.01679566130042076,
0.047218207269907,
0.00038777958252467215,
-0.03941749036312103,
0.006377637851983309,
0.0024968821089714766,
-0.04569154232740402,
0.03339977562427521,
0.07161545008420944,
0.017316067591309547,
0.008310255594551563,
-0.02149892970919609,
-0.0516081228852272,
-0.012921974994242191,
-0.023755570873618126,
-0.026112418621778488,
-0.012296758592128754,
-0.024113578721880913,
-0.023718513548374176,
0.0259146336466074,
0.02170923724770546,
-0.03581828251481056,
0.05330323800444603,
-0.00723342876881361,
-0.0037744147703051567,
-0.03305794298648834,
0.04985600709915161,
0.0009140269248746336,
0.016760142520070076
] | [
0.0022209391463547945,
0.019149035215377808,
0.0012007663026452065,
-0.01080232672393322,
-0.01372325886040926,
0.0527171790599823,
0.010034691542387009,
-0.01474891509860754,
-0.022184226661920547,
-0.013682486489415169,
-0.052234847098588943,
-0.011681031435728073,
-0.010087387636303902,
0.0014824620448052883,
-0.006704352796077728,
-0.0021203949581831694,
-0.01643928326666355,
0.007008115295320749,
0.03964631259441376,
-0.001039323047734797,
-0.03685624152421951,
0.023813819512724876,
0.017299151048064232,
-0.007591474335640669,
0.0006989435059949756,
0.0459473617374897,
-0.050110962241888046,
0.0278495941311121,
0.01894948072731495,
-0.08757083117961884,
-0.04396567493677139,
-0.027976233512163162,
0.010948610492050648,
0.029998254030942917,
-0.05451361462473869,
-0.02195652388036251,
-0.06793146580457687,
0.0688527375459671,
0.00820112507790327,
0.030547024682164192,
0.023763112723827362,
-0.03978142887353897,
-0.009446535259485245,
0.023637734353542328,
-0.023724159225821495,
-0.0166631992906332,
0.0009214548044838011,
0.022085636854171753,
0.008387367241084576,
-0.020928213372826576,
-0.04941004887223244,
0.0018883328884840012,
0.017318453639745712,
-0.02041754685342312,
0.033294953405857086,
-0.04516282305121422,
-0.021372828632593155,
-0.03302253410220146,
-0.0283802542835474,
-0.07811105996370316,
0.0021672744769603014,
-0.023868735879659653,
-0.03694077953696251,
-0.017783476039767265,
-0.012171675451099873,
-0.014274687506258488,
-0.009037519805133343,
0.02595936320722103,
0.014550141990184784,
0.02101600542664528,
-0.004319337196648121,
0.021755371242761612,
-0.012800216674804688,
-0.03521650657057762,
-0.02179388329386711,
0.020321117714047432,
-0.0304252989590168,
-0.033590905368328094,
0.04318252578377724,
0.004127273336052895,
-0.026159116998314857,
0.015571089461445808,
-0.001909869140945375,
-0.012785600498318672,
0.03578631579875946,
-0.02217000164091587,
0.048803914338350296,
-0.011892295442521572,
0.0014755204319953918,
0.001387905329465866,
-0.034984953701496124,
0.059784818440675735,
0.037818439304828644,
0.026731085032224655,
-0.09695504605770111,
0.0002329021372133866,
0.02891484647989273,
-0.017042212188243866,
0.022965198382735252,
0.810524046421051,
0.006229727528989315,
0.020805461332201958,
-0.011063254438340664,
0.02337203547358513,
-0.03799498453736305,
-0.001047574682161212,
-0.03685120865702629,
0.013286268338561058,
0.02042403630912304,
-0.06261539459228516,
-0.021612728014588356,
0.05237548425793648,
0.02852938324213028,
0.050791576504707336,
-0.026928255334496498,
0.03371657058596611,
0.00702705280855298,
0.023806583136320114,
-0.02027554251253605,
0.0077507589012384415,
-0.022107772529125214,
0.013262405060231686,
0.016032515093684196,
0.010569005273282528,
-0.007689356338232756,
-0.16309866309165955,
-0.011713026091456413,
-6.788435794960555e-33,
0.025186216458678246,
-0.04253845289349556,
0.01955566741526127,
-0.007146477699279785,
-0.012260396964848042,
0.016453538089990616,
-0.0538727305829525,
-0.02298513427376747,
-0.004051142372190952,
-0.021369723603129387,
0.013469139114022255,
0.008297662250697613,
0.03816012665629387,
-0.012113104574382305,
0.03001064620912075,
0.006134630646556616,
-0.006031055934727192,
0.028141381219029427,
-0.00026244341279380023,
-0.03848351910710335,
-0.0060844761319458485,
0.031300365924835205,
0.033605098724365234,
0.015295122750103474,
-0.01525141578167677,
0.04488082230091095,
0.015171335078775883,
-0.025027209892868996,
-0.00882976409047842,
-0.04116355627775192,
-0.04151415079832077,
-0.03293232619762421,
-0.003352450905367732,
-0.004214970860630274,
-0.002085105050355196,
-0.053370796144008636,
0.002027626382187009,
-0.008778759278357029,
0.013967064209282398,
0.0031064769718796015,
-0.07399590313434601,
-0.018449053168296814,
-0.020509976893663406,
-0.04874669387936592,
-0.03671279177069664,
0.004498602356761694,
0.040186651051044464,
0.08506765961647034,
-0.031968481838703156,
0.04345304146409035,
0.03361326456069946,
-0.02760516293346882,
0.015790028497576714,
-0.03435263782739639,
-0.0159718319773674,
0.026182299479842186,
0.013288583606481552,
0.03087649494409561,
-0.0015768768498674035,
0.025369245558977127,
0.022816667333245277,
0.010464183054864407,
0.00988183543086052,
0.015883563086390495,
-0.018131623044610023,
0.04460025578737259,
0.008732946589589119,
-0.043164245784282684,
0.03769932687282562,
0.028844967484474182,
-0.03291921317577362,
0.037652719765901566,
0.0006445087492465973,
-0.017863834276795387,
0.0667496919631958,
-0.006934328470379114,
0.030091358348727226,
-0.023930665105581284,
0.0064028664492070675,
0.06966930627822876,
0.026773562654852867,
0.011734283529222012,
-0.024782836437225342,
-0.04504004120826721,
-0.04329099506139755,
0.004417172633111477,
0.0437118299305439,
0.013729952275753021,
-0.008115498349070549,
0.025687195360660553,
0.019553562626242638,
0.007966422475874424,
-0.009108185768127441,
-0.023586511611938477,
0.000918201170861721,
6.332858265619992e-33,
0.010803800076246262,
0.0004968162975274026,
0.029600581154227257,
-0.020908266305923462,
0.083529531955719,
-0.03948041796684265,
0.013772563077509403,
0.016267972066998482,
-0.010043740272521973,
0.015340698882937431,
-0.014039384201169014,
-0.016192208975553513,
-0.010345971211791039,
0.016022877767682076,
0.045093122869729996,
-0.00502930348739028,
0.0023806437384337187,
-0.0006752308108843863,
-0.05034454166889191,
-0.013274255208671093,
0.007061672862619162,
0.019569700583815575,
0.026290930807590485,
-0.0011644193436950445,
-0.022424934431910515,
0.0008412718307226896,
-0.0150632094591856,
-0.009906528517603874,
0.00041368624079041183,
0.025492100045084953,
0.038170237094163895,
-0.017004825174808502,
-0.03901205584406853,
-0.02986789494752884,
0.00004377653749543242,
0.038470059633255005,
0.007635446731001139,
-0.025425828993320465,
-0.01471263263374567,
0.010651258751749992,
-6.503883014374878e-7,
0.014820380136370659,
-0.02320064790546894,
0.05411536619067192,
0.03989074006676674,
0.000043014370021410286,
-0.02506648190319538,
-0.00041327523649670184,
-0.006865780800580978,
0.008210034109652042,
0.01784324459731579,
0.05083026736974716,
-0.0049499995075166225,
-0.00814055185765028,
0.008817730471491814,
-0.005789797753095627,
-0.018924765288829803,
0.019327379763126373,
-0.043868497014045715,
-0.01522892527282238,
-0.02847304567694664,
-0.026987992227077484,
-0.032430730760097504,
0.028454924002289772,
-0.02431461028754711,
0.009560546837747097,
-0.01239688228815794,
-0.014704209752380848,
-0.004518082831054926,
0.02614639513194561,
-0.011235535144805908,
-0.04168417677283287,
0.006930648349225521,
0.0381520576775074,
0.0004930029972456396,
0.017200827598571777,
-0.02732383832335472,
0.030520014464855194,
0.004249709192663431,
0.042593054473400116,
0.04189065843820572,
-0.00618387944996357,
0.04064425081014633,
-0.014599485322833061,
0.005435757339000702,
0.03272172436118126,
-0.01437984686344862,
-0.0031421766616404057,
0.030289310961961746,
-0.021150995045900345,
0.025109823793172836,
-0.02727152593433857,
-0.006828112993389368,
0.04708733409643173,
0.019350266084074974,
-1.2383376102320653e-8,
-0.038420435041189194,
0.0268767848610878,
-0.006663510110229254,
0.014391048811376095,
0.026414869353175163,
0.034765828400850296,
0.0021310129668563604,
-0.023608071729540825,
0.009277398698031902,
0.025769799947738647,
0.05483834818005562,
-0.004059038124978542,
0.0030296084005385637,
0.0271174143999815,
-0.01585446111857891,
-0.03402360528707504,
-0.009741583839058876,
-0.0012531607644632459,
0.02796458825469017,
0.0038124260026961565,
-0.022744104266166687,
0.031673457473516464,
-0.03045783005654812,
0.006079668644815683,
0.022573119029402733,
-0.05628698691725731,
0.004512082319706678,
-0.08551537990570068,
-0.01232986617833376,
-0.030752090737223625,
0.05819880962371826,
-0.02822783961892128,
-0.000014440086488320958,
0.01804404705762863,
-0.0153321148827672,
-0.032846663147211075,
-0.009312469512224197,
0.05518233776092529,
0.016372457146644592,
-0.008168644271790981,
-0.024686256423592567,
-0.01903519779443741,
-0.031872015446424484,
-0.018295520916581154,
-0.01973431371152401,
0.026927975937724113,
-0.03651830554008484,
-0.00940571166574955,
-0.020119357854127884,
-0.07666448503732681,
0.0284329354763031,
-0.027610769495368004,
0.004374368116259575,
0.022384796291589737,
0.034260328859090805,
0.014972712844610214,
-0.041623108088970184,
0.0074958899058401585,
-0.008121139369904995,
-0.05649881809949875,
-0.0009548246162012219,
0.005374075844883919,
-0.030204638838768005,
-0.02627568505704403
] | r-dplyr-squashing-multiple-rows-per-group-into-one | https://markhneedham.com/blog/2015/06/27/r-dplyr-squashing-multiple-rows-per-group-into-one |
false | 2015-06-27 22:47:22 | R: Command line - Error in GenericTranslator$new : could not find function "loadMethod" | [
"r-2"
] | [
"R"
] | I've been reading https://pragprog.com/book/rmtpruby/text-processing-with-ruby[Text Processing with Ruby] over the last week or so and one of the ideas the author describes is setting up your scripts so you can run them directly from the command line.
I wanted to do this with my Wimbledon R script and wrote the following script which uses the 'Rscript' executable so that R doesn't launch in interactive mode:
_wimbledon_
[source,bash]
----
#!/usr/bin/env Rscript
library(rvest)
library(dplyr)
library(stringr)
library(readr)
# stuff
----
Then I tried to run it:
[source,bash]
----
$ time ./wimbledon
...
Error in GenericTranslator$new : could not find function "loadMethod"
Calls: write.csv ... html_extract_n -> <Anonymous> -> Map -> mapply -> <Anonymous> -> $
Execution halted
real 0m1.431s
user 0m1.127s
sys 0m0.078s
----
As the error suggests, the script fails when trying to write to a CSV file - it looks like Rscript doesn't load in something from the core library that we need. It turns out https://groups.google.com/forum/#!topic/shiny-discuss/Gx2P_dhzM38[adding the following line] to our script is all we need:
[source,bash]
----
library(methods)
----
So we end up with this:
[source,bash]
----
#!/usr/bin/env Rscript
library(methods)
library(rvest)
library(dplyr)
library(stringr)
library(readr)
----
And when we run that all is well! | null | null | [
-0.00190288748126477,
-0.0036818739026784897,
-0.0025798603892326355,
0.01587652787566185,
0.08093872666358948,
0.010722639970481396,
0.03450147807598114,
0.0022237002849578857,
0.01565561629831791,
0.017156030982732773,
-0.013136351481080055,
0.00984889455139637,
-0.05817710980772972,
0.010607327334582806,
-0.015288579277694225,
0.0944795086979866,
0.07974931597709656,
-0.024645507335662842,
0.0408330000936985,
0.03342314064502716,
0.026833541691303253,
0.08366092294454575,
-0.004982476122677326,
0.03280201181769371,
0.020514415577054024,
-0.012386057525873184,
0.00438430393114686,
-0.010095534846186638,
-0.06675820797681808,
0.007382719311863184,
0.04708634689450264,
0.006492760498076677,
0.006399256177246571,
-0.022146984934806824,
0.04083450511097908,
0.007124464493244886,
-0.010231863707304,
0.020183276385068893,
-0.022801795974373817,
-0.008551359176635742,
-0.05020253360271454,
0.03508077934384346,
-0.018889473751187325,
0.01587257720530033,
-0.01552539598196745,
0.021699847653508186,
-0.039803460240364075,
0.030007384717464447,
0.012413416989147663,
0.0006801330600865185,
-0.08221693336963654,
0.03663250431418419,
-0.017714669927954674,
-0.07617571949958801,
0.02809080109000206,
0.008187616243958473,
0.0027789550367742777,
-0.08994234353303909,
0.03148742765188217,
-0.04102195054292679,
-0.01049827691167593,
0.0037752476055175066,
-0.02656617760658264,
0.018276238813996315,
0.0006456581177189946,
-0.029676200821995735,
0.0005537860561162233,
0.020503763109445572,
-0.04443007707595825,
-0.025942014530301094,
-0.015484530478715897,
-0.0015375282382592559,
-0.052506059408187866,
-0.009345706552267075,
0.03397821635007858,
-0.02864658460021019,
-0.009177107363939285,
0.06385375559329987,
0.011887488886713982,
0.062326688319444656,
-0.013597599230706692,
-0.021852750331163406,
0.015258344821631908,
0.011713058687746525,
0.014876306056976318,
-0.05403042584657669,
-0.025398431345820427,
-0.01428147405385971,
-0.04035254567861557,
0.05937634035944939,
0.01919151470065117,
-0.029784101992845535,
-0.017129039391875267,
0.005342310760170221,
0.006377434823662043,
0.019465910270810127,
-0.020126983523368835,
0.004585085902363062,
-0.01492276694625616,
-0.0003643508243840188,
-0.07989989966154099,
0.0032489344011992216,
0.04569181054830551,
-0.004318240098655224,
-0.07521892338991165,
0.019471457228064537,
-0.023226896300911903,
-0.015451976098120213,
-0.007308492437005043,
0.021175337955355644,
-0.020991185680031776,
0.01770169474184513,
-0.023088578134775162,
-0.021082226186990738,
-0.06837505102157593,
0.0873769074678421,
0.02251860871911049,
-0.02061135694384575,
0.008667529560625553,
0.013126120902597904,
0.059097275137901306,
0.06269563734531403,
-0.0020418863277882338,
0.08820196986198425,
-0.017915191128849983,
0.05849776417016983,
-0.014802903868258,
0.02407180517911911,
-0.0012001142604276538,
-0.06614825874567032,
0.02028070017695427,
0.06438706815242767,
-0.016086092218756676,
0.02079220861196518,
-0.028252681717276573,
0.011039093136787415,
-0.013801597990095615,
-0.03879321366548538,
0.08389472216367722,
0.05864593759179115,
0.0218171589076519,
0.005066682584583759,
0.026401888579130173,
-0.01554127223789692,
0.0517239049077034,
0.0022083097137510777,
0.017252875491976738,
-0.0438317134976387,
-0.06446563452482224,
0.004028277471661568,
0.025121232494711876,
0.027188999578356743,
0.07345586270093918,
-0.029542522504925728,
0.03757691755890846,
0.07222765684127808,
0.04036572203040123,
0.028251925483345985,
-0.0270322747528553,
0.010213134810328484,
0.04713594540953636,
0.039901670068502426,
0.011625184677541256,
0.049987345933914185,
-0.015269549563527107,
-0.037454064935445786,
0.017421483993530273,
0.020762663334608078,
-0.019275642931461334,
-0.036175526678562164,
-0.05164511129260063,
-0.04332129284739494,
0.08566262573003769,
-0.039496202021837234,
0.03018426150083542,
-0.012925286777317524,
0.058461498469114304,
0.03975846990942955,
0.05758320540189743,
-0.01152215339243412,
-0.07743465900421143,
0.03980165719985962,
-0.010640865191817284,
0.01844758540391922,
0.03759940341114998,
-0.025395648553967476,
0.10533831268548965,
0.004421984311193228,
0.005060964729636908,
0.047806091606616974,
-0.06586594134569168,
-0.07911735028028488,
-0.015305775217711926,
0.006459407042711973,
0.04769475385546684,
-0.018958548083901405,
-0.029324684292078018,
0.04700934514403343,
0.022405408322811127,
0.0029836464673280716,
-0.00974992848932743,
0.002359351608902216,
0.027043091133236885,
-0.06749405711889267,
-0.0615207701921463,
-0.01576904021203518,
0.03873497247695923,
-0.018618253991007805,
0.007103491574525833,
0.027617456391453743,
-0.023716624826192856,
0.053229156881570816,
0.034113701432943344,
-0.027522915974259377,
0.059824950993061066,
0.042042333632707596,
0.01991994120180607,
0.0019521291833370924,
0.04827985540032387,
-0.03143433481454849,
0.00732825230807066,
-0.005657477304339409,
0.027880428358912468,
-0.007033121306449175,
0.003998452797532082,
0.12839892506599426,
0.060179077088832855,
0.004042713437229395,
-0.0645645260810852,
0.05409673601388931,
-0.010856231674551964,
-0.04257957264780998,
0.018557025119662285,
-0.026953255757689476,
-0.029084088280797005,
0.04021444916725159,
-0.01738542504608631,
0.0008368393173441291,
-0.01897706277668476,
-0.0011971128406003118,
-0.02076934278011322,
0.08150320500135422,
0.003539150580763817,
0.04842095822095871,
-0.011056805029511452,
-0.010176287963986397,
-0.00786647666245699,
-0.041832976043224335,
-0.07834003865718842,
-0.01868600584566593,
0.023803861811757088,
0.0012777879601344466,
0.027078358456492424,
-0.017204146832227707,
-0.010645649395883083,
-0.013279690407216549,
-0.06942175328731537,
0.015084371902048588,
0.06976427882909775,
0.04986295476555824,
-0.019200285896658897,
0.04462355375289917,
-0.0408906526863575,
0.0082777701318264,
-0.011583014391362667,
-0.015405939891934395,
-0.03901241719722748,
-0.015082604251801968,
0.01601964794099331,
0.01462840847671032,
0.014236007817089558,
0.0066706594079732895,
-0.03090643510222435,
0.01461181789636612,
0.026703737676143646,
-0.014751453883945942,
0.011570830829441547,
-0.0045172953978180885,
-0.001909631653688848,
-0.026666970923542976,
0.010259785689413548,
0.014566101133823395,
-0.025008443742990494,
-0.001487420522607863,
-0.006293695420026779,
-0.03610788285732269,
0.038980331271886826,
-0.06341104954481125,
-0.04998183250427246,
-0.03991316631436348,
-0.019772587344050407,
0.04346498101949692,
0.027490437030792236,
0.021146537736058235,
0.03278626501560211,
0.014096897095441818,
0.02505876123905182,
0.028078703209757805,
0.020798608660697937,
0.06569424271583557,
0.020552223548293114,
0.023845665156841278,
0.0282942745834589,
-0.02075227163732052,
-0.012230332009494305,
-0.036050137132406235,
0.005094054155051708,
-0.04462099075317383,
-0.2725678086280823,
0.026265982538461685,
-0.030613016337156296,
-0.045641060918569565,
0.035947829484939575,
-0.03868252784013748,
0.018226776272058487,
-0.02761063165962696,
-0.010186481289565563,
0.009991266764700413,
0.0035664273891597986,
-0.028216542676091194,
-0.045477915555238724,
0.033013004809617996,
0.013598883524537086,
0.01794332265853882,
0.004599306266754866,
-0.036781903356313705,
0.01705983839929104,
0.026311667636036873,
0.0199957937002182,
-0.019766326993703842,
0.03391396999359131,
0.041491735726594925,
0.016792742535471916,
0.07914254814386368,
-0.04001510515809059,
0.0724058747291565,
-0.03518684208393097,
-0.06334541738033295,
0.030540110543370247,
-0.02316044084727764,
0.00880138948559761,
0.027406789362430573,
0.01266610436141491,
0.010202641598880291,
0.029710229486227036,
0.0300593301653862,
0.043717000633478165,
0.008603490889072418,
-0.02710546739399433,
-0.032725799828767776,
0.00842104759067297,
-0.02358003705739975,
0.06860149651765823,
-0.02261403761804104,
-0.05661696940660477,
0.00024490847135894,
-0.03276054561138153,
0.09123717993497849,
-0.03331097960472107,
-0.030872592702507973,
-0.005168265663087368,
0.004669266752898693,
-0.02415233477950096,
-0.04205179587006569,
-0.05718538910150528,
0.0018985705683007836,
-0.011861144565045834,
-0.03290877863764763,
-0.0012985032517462969,
-0.03768191486597061,
-0.023912139236927032,
-0.017125612124800682,
-0.006894276011735201,
-0.05201373249292374,
-0.04835907742381096,
-0.0171298086643219,
0.0687740370631218,
0.04559151455760002,
-0.05194685608148575,
-0.01137029379606247,
-0.012411756440997124,
-0.09821844100952148,
-0.007983388379216194,
-0.03258461505174637,
-0.034018374979496,
-0.016993816941976547,
-0.022766251116991043,
0.05440504103899002,
-0.05505936220288277,
-0.0523427277803421,
0.029503269121050835,
-0.00496385945007205,
0.021428538486361504,
-0.002266429364681244,
-0.015313603915274143,
-0.013693184591829777,
-0.016033601015806198,
-0.033928465098142624,
0.056696753948926926,
-0.07018274813890457,
-0.03148547187447548,
0.007930348627269268,
-0.00429400522261858,
0.016762750223279,
0.02462266944348812,
-0.006644079461693764,
0.035674724727869034,
0.040907349437475204,
0.04709374159574509,
-0.04582247510552406,
0.03066111169755459,
-0.04600020870566368,
-0.009255126118659973,
-0.011930541135370731,
-0.07147393375635147,
0.027881894260644913,
0.017725128680467606,
0.018705610185861588,
0.013850297778844833,
-0.01980852521955967,
0.01531599834561348,
-0.08499717712402344,
-0.006382960360497236,
0.022303547710180283,
0.02082860842347145,
-0.002304579596966505,
0.0074126990512013435,
-0.012414922006428242,
-0.0775364488363266,
-0.014752483926713467,
0.005494225770235062,
-0.046152736991643906,
-0.049145281314849854,
-0.0015641892096027732,
0.038783468306064606,
-0.01186346635222435,
0.0025264464784413576,
-0.0011131621431559324,
-0.008086430840194225,
-0.016812145709991455,
0.05275909602642059,
-0.03503827378153801,
0.00961704459041357,
-0.025125840678811073,
-0.07499675452709198,
-0.025354748591780663,
-0.007212562952190638,
0.01667347177863121,
-0.013549098744988441,
-0.013455979526042938,
0.014315818436443806,
0.02632080391049385,
0.009587508626282215,
-0.004841290879994631,
0.03402135521173477,
0.008694389835000038,
0.003943426068872213,
-0.008045445196330547,
0.017016613855957985,
-0.018909558653831482,
0.00932896789163351,
-0.03377849981188774,
-0.035644885152578354,
-0.04418109357357025,
0.028966214507818222,
-0.008316360414028168,
-0.0039005379658192396,
-0.03862335905432701,
0.019165385514497757,
-0.044711362570524216,
-0.0024001230485737324,
-0.0018495045369490981,
-0.013622937723994255,
0.029536116868257523,
0.026564162224531174,
0.028909727931022644,
0.00843180064111948,
0.007330759894102812,
-0.02140813320875168,
0.01270897313952446,
-0.00438197935000062,
0.002234958577901125,
-0.0011316685704514384,
0.0179239921271801,
0.02424338273704052,
-0.006827328819781542,
0.016047270968556404,
0.001335057197138667,
0.012142864987254143,
-0.04176323860883713,
0.021351948380470276,
0.01774616725742817,
0.025518324226140976,
0.012656524777412415,
-0.027676478028297424,
0.001554637448862195,
-0.011462191119790077,
-0.002799543784931302,
-0.05205564945936203,
0.009953130036592484,
-0.02995988540351391,
0.0038483149837702513,
-0.029444511979818344,
-0.07522295415401459,
0.02788020856678486,
0.05834855139255524,
0.007844931446015835,
0.0109972283244133,
-0.005591197405010462,
-0.005724119022488594,
-0.031663183122873306,
0.019170653074979782,
0.09298809617757797,
-0.060328975319862366,
-0.022368013858795166,
-0.0014262617332860827,
0.002908621681854129,
0.04047020524740219,
0.028680352494120598,
-0.04917367175221443,
0.008127864450216293,
-0.006796920672059059,
0.021350223571062088,
-0.015370136126875877,
-0.0644800215959549,
-0.05744989961385727,
-0.00834526214748621,
-0.006879548076540232,
-0.020209338515996933,
-0.016825219616293907,
0.019157862290740013,
0.0010289150523021817,
-0.04401494190096855,
-0.02468196675181389,
0.005013095680624247,
-0.05470966920256615,
0.02637842670083046,
-0.016486041247844696,
0.028700880706310272,
-0.022881977260112762,
0.048607420176267624,
0.008027656935155392,
-0.002285449067130685,
-0.03771127760410309,
-0.0249127559363842,
0.022668257355690002,
-0.002206482458859682,
0.02818421646952629,
0.0062425690703094006,
0.05168328061699867,
-0.012080072425305843,
0.014231923967599869,
-0.03458781912922859,
-0.030833454802632332,
-0.03530401736497879,
-0.04173845425248146,
0.03141418471932411,
0.046145159751176834,
0.023576000705361366,
0.01108249556273222,
0.0060461596585810184,
-0.04051089659333229,
0.03393300622701645,
-0.06523916125297546,
-0.052659451961517334,
0.018444161862134933,
-0.05366993322968483,
0.05566054955124855,
0.016870925202965736,
0.0005776478792540729,
-0.05766049399971962,
0.01594238355755806,
0.04118075594305992,
0.015612775459885597,
0.04893317073583603,
-0.00996892899274826,
0.03575461730360985,
-0.024462416768074036,
0.008358505554497242,
-0.097377710044384,
0.01584133692085743,
0.008162627927958965,
-0.010230679996311665,
-0.03743636608123779,
-0.00977049209177494,
-0.026493409648537636,
0.03044447861611843,
-0.019751442596316338,
-0.04791014641523361,
0.04044324904680252,
0.011953426524996758,
-0.014761089347302914,
-0.009162481874227524,
-0.0553017221391201,
0.013991979882121086,
0.01762065477669239,
-0.03416140377521515,
-0.018082065507769585,
-0.02071932703256607,
0.02152194082736969,
-0.024794526398181915,
0.04022916406393051,
-0.0332755483686924,
-0.014244741760194302,
0.061676718294620514,
0.00493272952735424,
-0.0459391251206398,
0.06076887249946594,
-0.034230172634124756,
0.01975177600979805,
0.0294203981757164,
0.00221929675899446,
0.004157696850597858,
0.021693557500839233,
0.009759988635778427,
-0.015604092739522457,
0.012548385187983513,
-0.009723242372274399,
0.025462903082370758,
-0.024578873068094254,
0.07881152629852295,
0.017505759373307228,
-0.06501853466033936,
-0.036972496658563614,
0.024931231513619423,
-0.023988433182239532,
0.014501085504889488,
-0.02608843706548214,
-0.007005678955465555,
-0.022517357021570206,
0.05515800416469574,
-0.01967729814350605,
-0.009342082776129246,
0.0703515112400055,
0.00022129446733742952,
0.0016064959345385432,
-0.008906146511435509,
0.04649423062801361,
0.09761074930429459,
0.024567613378167152,
-0.003319589886814356,
0.04087534174323082,
-0.027641985565423965,
-0.04176032915711403,
0.009993948973715305,
-0.046109698712825775,
-0.0009591492125764489,
-0.07408246397972107,
0.008403998799622059,
0.048493605107069016,
-0.03244198113679886,
0.057303912937641144,
-0.022060967981815338,
-0.00833142176270485,
0.014643282629549503,
0.015844019129872322,
0.010662046261131763,
0.035011716187000275,
0.0355302058160305,
0.039732012897729874,
-0.016568779945373535,
-0.004758781287819147,
0.027427462860941887,
-0.049130987375974655,
-0.026858078315854073,
0.002247981261461973,
-0.0068598403595387936,
0.0058510457165539265,
0.014360558241605759,
0.03226311877369881,
0.06030356511473656,
-0.030357107520103455,
-0.02644025720655918,
-0.0002952760551124811,
0.062310025095939636,
-0.010422655381262302,
0.014239415526390076,
0.00735912611708045,
-0.055475324392318726,
-0.011334930546581745,
-0.03900637850165367,
-0.03120867908000946,
-0.00143056723754853,
-0.04258771985769272,
0.03301818668842316,
-0.029397351667284966,
0.01438063383102417,
0.011739290319383144,
-0.034237559884786606,
-0.03056677244603634,
-0.03459133952856064,
-0.05101751908659935,
-0.06265997141599655,
-0.032547906041145325,
-0.018223831430077553,
-0.022093290463089943,
-0.02247527800500393,
-0.04605967551469803,
-0.01920200325548649,
0.017062893137335777,
-0.016191795468330383,
0.009988098405301571,
-0.0807313472032547,
-0.015115683898329735,
-0.0033965585753321648,
-0.009959742426872253,
0.01703813672065735,
0.04582826793193817,
0.046577759087085724,
0.02447066456079483,
-0.02975103259086609,
-0.013753379695117474,
-0.0009683838579803705,
0.05482885614037514,
-0.0019723058212548494,
0.012592463754117489,
-0.03799068182706833,
0.03298700228333473,
-0.005722019821405411,
0.028718583285808563,
-0.05839836224913597,
0.013604891486465931,
0.00008817359776003286,
0.013307406567037106,
0.04750307276844978,
0.0041767293587327,
0.039200492203235626,
-0.027575664222240448,
-0.008036375045776367,
0.008796549402177334,
0.03277666121721268,
0.025961024686694145,
-0.0285702645778656,
0.05613930895924568,
0.05189155414700508,
0.001580965705215931,
-0.05339643359184265,
-0.034244414418935776,
0.005580560769885778,
-0.011668046936392784,
-0.04607436805963516,
-0.007344856858253479,
-0.04684685170650482,
-0.07152152806520462,
-0.01075854990631342,
0.007984306663274765,
-0.013796241953969002,
-0.004714335314929485,
0.010699788108468056,
0.026993602514266968,
-0.027137894183397293,
0.05431460216641426,
-0.02178734540939331,
0.02768942341208458,
-0.026242204010486603,
-0.05432291701436043,
0.005306340754032135,
0.06117793172597885,
-0.010272059589624405,
-0.030665110796689987,
0.0054316152818500996,
-0.021861344575881958,
-0.030511192977428436,
-0.003892391687259078,
0.03810729831457138,
0.030700000002980232,
-0.01865430362522602,
0.023398607969284058
] | [
-0.08107895404100418,
-0.023117762058973312,
-0.03380585089325905,
-0.055545490235090256,
0.044560883194208145,
-0.07490528374910355,
-0.045899178832769394,
0.024410273879766464,
-0.023192502558231354,
-0.014247344806790352,
0.045570049434900284,
-0.0327596589922905,
0.02655450627207756,
-0.041415609419345856,
0.053569577634334564,
-0.01794540323317051,
-0.005968146491795778,
-0.012972240336239338,
-0.01927788183093071,
0.04587603732943535,
-0.02958507463335991,
-0.008183816447854042,
-0.06115294247865677,
-0.05801958218216896,
-0.010843937285244465,
0.055733572691679,
-0.007355095818638802,
-0.026604244485497475,
-0.049827057868242264,
-0.2210407704114914,
0.006355228368192911,
-0.01435039471834898,
0.015485062263906002,
0.0008311128476634622,
0.017955271527171135,
0.020183032378554344,
0.03059917874634266,
-0.015528147108852863,
0.01706698164343834,
0.039538975805044174,
0.00792069360613823,
-0.01122206635773182,
-0.05257822200655937,
0.039766766130924225,
0.023307107388973236,
-0.0011365482350811362,
-0.0563666969537735,
-0.013492817059159279,
0.010645141825079918,
-0.011127445846796036,
-0.08012402057647705,
0.02537771686911583,
0.01671411842107773,
-0.05846189334988594,
-0.018531927838921547,
0.012283863499760628,
0.038823727518320084,
0.08740988373756409,
0.007181541994214058,
0.0004058933991473168,
-0.013359397649765015,
0.024241978302598,
-0.1851162612438202,
0.08611027896404266,
0.03307383134961128,
0.04783119633793831,
-0.027371395379304886,
-0.018978841602802277,
-0.0021823502611368895,
0.06898929178714752,
-0.041795361787080765,
-0.004826663993299007,
-0.06036007031798363,
0.06580234318971634,
-0.02269095927476883,
-0.014428870752453804,
-0.044194407761096954,
-0.0012424984015524387,
0.052289776504039764,
-0.032911501824855804,
-0.022377733141183853,
-0.013748186640441418,
-0.025277096778154373,
0.021704567596316338,
-0.031898416578769684,
0.029261549934744835,
-0.021888302639126778,
0.05865214392542839,
0.032299600541591644,
0.03874167799949646,
0.020160535350441933,
0.0025852976832538843,
0.06811302900314331,
0.03493272513151169,
-0.11166322976350784,
0.005503877531737089,
0.013376693241298199,
0.023878313601017,
-0.02633879892528057,
0.4035775363445282,
0.0030588009394705296,
-0.04057302325963974,
0.02954866923391819,
0.0170559361577034,
0.0007194316713139415,
-0.019076509401202202,
-0.021548377349972725,
-0.029901724308729172,
0.019716421142220497,
-0.025751549750566483,
0.01681479997932911,
-0.04684581607580185,
0.07599510997533798,
-0.06879005581140518,
0.04458174481987953,
0.00007792034739395604,
0.018680138513445854,
0.02227727510035038,
-0.051193397492170334,
0.02683963254094124,
-0.025988036766648293,
0.005225248169153929,
0.015790732577443123,
0.03635335713624954,
0.03130973130464554,
-0.006734110414981842,
0.0410645455121994,
0.08573874831199646,
0.017516354098916054,
0.0021233498118817806,
0.06341133266687393,
-0.021289385855197906,
-0.08666978776454926,
0.016256313771009445,
0.011686021462082863,
0.05078985169529915,
0.017137542366981506,
-0.044415779411792755,
0.025434663519263268,
-0.0007076449692249298,
-0.018957873806357384,
-0.016300860792398453,
0.03573143482208252,
0.0006936684949323535,
-0.0018796565709635615,
0.06665947288274765,
-0.013904932886362076,
-0.013193192891776562,
-0.04432927817106247,
-0.049404244869947433,
0.021719729527831078,
0.04140476509928703,
0.0024254443123936653,
-0.042126528918743134,
-0.01606038771569729,
0.012084552086889744,
0.055534593760967255,
-0.03230184316635132,
-0.05751735344529152,
-0.031286805868148804,
-0.05414312705397606,
-0.03279111906886101,
-0.009382674470543861,
0.04207630828022957,
0.016591869294643402,
-0.09730113297700882,
-0.0365486815571785,
0.015743665397167206,
0.015470041893422604,
-0.0438154935836792,
0.02499897964298725,
-0.024012316018342972,
0.003911226987838745,
-0.025219840928912163,
0.023980053141713142,
-0.04667750000953674,
-0.004057288635522127,
0.018421189859509468,
0.08645566552877426,
0.038220785558223724,
0.024870337918400764,
0.024288972839713097,
0.0059629823081195354,
0.00512778852134943,
-0.04741832986474037,
-0.07317984104156494,
-0.06137096881866455,
-0.001748839276842773,
-0.010027141310274601,
-0.00782729871571064,
-0.02703484520316124,
-0.03198273479938507,
-0.06024276465177536,
0.01797187700867653,
-0.004530363250523806,
0.00005885143764317036,
0.03492087870836258,
-0.0005703067290596664,
-0.007316728588193655,
0.0090982336550951,
0.009183204732835293,
0.06396415829658508,
0.0207044817507267,
0.030370298773050308,
-0.05466344207525253,
0.009929847903549671,
0.03336638957262039,
-0.019006213173270226,
0.041650280356407166,
0.03825880214571953,
-0.020689215511083603,
0.000028890539397252724,
-0.0017521060071885586,
0.012192128226161003,
-0.05834484472870827,
0.004771695006638765,
-0.024109814316034317,
-0.017008064314723015,
0.037464555352926254,
0.019626740366220474,
-0.010302918963134289,
-0.0008091023191809654,
-0.03340114653110504,
-0.36710870265960693,
-0.02041725441813469,
0.015762753784656525,
-0.00791165605187416,
0.004894006531685591,
-0.06323809921741486,
0.01624801568686962,
0.0018796666990965605,
-0.027606850489974022,
0.04032716155052185,
0.09904086589813232,
-0.01383957825601101,
-0.006163910496979952,
-0.11269441992044449,
0.0087148267775774,
0.042772553861141205,
-0.02671957015991211,
-0.055081237107515335,
-0.02046441286802292,
0.029698971658945084,
-0.011843414977192879,
-0.04601433128118515,
-0.024570418521761894,
-0.033934131264686584,
0.04117888957262039,
-0.02361528016626835,
0.060945477336645126,
0.045118484646081924,
0.07664092630147934,
-0.035732559859752655,
0.039121463894844055,
-0.013161617331206799,
0.036146461963653564,
-0.08040113747119904,
-0.04688825458288193,
-0.0404098816215992,
0.029564877972006798,
0.04523240402340889,
0.038026753813028336,
0.0033951280638575554,
-0.026980558410286903,
0.017209261655807495,
-0.0451926589012146,
-0.03289297968149185,
-0.03152971714735031,
0.019397474825382233,
0.009246393106877804,
-0.014947732910513878,
0.010214230976998806,
0.059811387211084366,
0.012853147462010384,
0.030794264748692513,
0.04545627161860466,
0.02280048467218876,
0.013856260105967522,
0.0019306172616779804,
-0.07911017537117004,
-0.004923541098833084,
0.019687987864017487,
-0.005898412317037582,
0.036046791821718216,
0.04992687329649925,
0.052314698696136475,
-0.04619476571679115,
0.0028661570977419615,
-0.014039512723684311,
0.029761722311377525,
0.006289212964475155,
0.04586780443787575,
0.012424197979271412,
-0.01771554909646511,
0.08977942168712616,
-0.025297371670603752,
0.07049793750047684,
0.0008882308611646295,
0.036039210855960846,
0.0028106379322707653,
0.004738034214824438,
-0.004605371039360762,
-0.006042790599167347,
0.03887234628200531,
0.008427007123827934,
0.07072317600250244,
-0.011766568757593632,
-0.0026203307788819075,
0.020077433437108994,
-0.0250630434602499,
-0.022609220817685127,
0.05483939126133919,
0.010736972093582153,
-0.021870458498597145,
-0.019516611471772194,
-0.020435675978660583,
-0.017868833616375923,
0.07019764184951782,
0.02418246492743492,
-0.2530313730239868,
0.004822022747248411,
0.0554695688188076,
0.0337119922041893,
-0.006918445695191622,
0.006814257707446814,
0.05832260102033615,
-0.08695951104164124,
-0.015065991319715977,
0.03979169577360153,
0.025370299816131592,
0.06455854326486588,
-0.0010980459628626704,
0.00865704845637083,
0.03474293649196625,
-0.042510997503995895,
0.06468092650175095,
0.003553171409294009,
0.0019359157886356115,
-0.02715921215713024,
0.039983607828617096,
-0.03361992537975311,
0.13541392982006073,
-0.004132299218326807,
-0.019970804452896118,
0.03410853073000908,
-0.01875578612089157,
-0.012725764885544777,
0.06238097324967384,
-0.00394548662006855,
-0.010721451602876186,
0.004417714662849903,
0.010145227424800396,
-0.01696028560400009,
0.044628020375967026,
-0.02465295046567917,
-0.0031128705013543367,
0.04768189787864685,
0.044017620384693146,
-0.019595181569457054,
-0.0548328198492527,
0.03483063355088234,
-0.02287270314991474,
0.018007894977927208,
0.05592557415366173,
-0.002823633374646306,
-0.021377598866820335,
-0.04659155756235123,
-0.04049631208181381,
0.02161852829158306,
-0.02935824729502201,
-0.03466023504734039,
-0.026502639055252075,
-0.013218063861131668,
0.0046526724472641945,
0.07771613448858261,
0.03201312571763992,
-0.016449004411697388,
0.011918642558157444,
0.010266095399856567,
-0.004638505633920431,
-0.074422687292099,
0.14008504152297974,
0.05069001391530037,
-0.0011511595221236348
] | [
-0.002105665858834982,
-0.0109569001942873,
-0.05245538428425789,
-0.009842969477176666,
0.01141740195453167,
0.019240697845816612,
-0.011254397220909595,
0.049900565296411514,
-0.02470535784959793,
0.0026499207597225904,
-0.03369690477848053,
0.022797109559178352,
0.012123296037316322,
0.017213106155395508,
0.012164237909018993,
-0.033887214958667755,
0.012761399149894714,
-0.012643912807106972,
0.008196352049708366,
-0.009041418321430683,
-0.020729882642626762,
0.02140969969332218,
0.03751387447118759,
-0.014739728532731533,
-0.007663013879209757,
0.036305949091911316,
-0.044275686144828796,
-0.005508604925125837,
0.010157371871173382,
-0.12093216925859451,
0.015470055863261223,
-0.014227901585400105,
0.01202773954719305,
-0.028297564014792442,
0.013641420751810074,
0.02897341363132,
-0.01706354320049286,
0.016398552805185318,
-0.011040730401873589,
0.0027712415903806686,
-0.005819554440677166,
-0.007741488981992006,
-0.028207167983055115,
0.04298938438296318,
-0.013161740265786648,
-0.042990487068891525,
-0.02019423246383667,
0.01605740189552307,
-0.0017770990962162614,
-0.029448654502630234,
-0.03071616217494011,
0.021320439875125885,
0.016534315422177315,
-0.01818710006773472,
0.01802484504878521,
-0.02556617558002472,
-0.013940728269517422,
-0.0434834323823452,
0.001765069435350597,
-0.04838376119732857,
-0.021175984293222427,
-0.014454248361289501,
-0.05531821399927139,
-0.02059328369796276,
-0.0036349401343613863,
-0.0304789487272501,
0.006067424081265926,
0.018664605915546417,
0.011980844661593437,
0.025988208130002022,
-0.03648374602198601,
0.0037318372633308172,
-0.037706829607486725,
0.0015982376644387841,
-0.025742799043655396,
0.0029035531915724277,
0.0019804586190730333,
-0.023518159985542297,
-0.004487458150833845,
0.0033789807930588722,
-0.03866606578230858,
0.0047342851758003235,
-0.0022750666830688715,
0.01715005375444889,
-0.002774057677015662,
0.030253181234002113,
0.039770737290382385,
0.004956009332090616,
0.004937418736517429,
0.02291196770966053,
0.0023500884417444468,
0.0016342198941856623,
0.009167062118649483,
0.035577740520238876,
-0.10842574387788773,
-0.007715659681707621,
-0.01032006274908781,
0.008228898979723454,
0.0024115934502333403,
0.8365920186042786,
-0.01004042848944664,
0.0026030289009213448,
0.025901803746819496,
-0.004305184818804264,
-0.038377903401851654,
-0.00831336434930563,
-0.034214556217193604,
0.0002656992000993341,
0.013595153577625751,
-0.03284221887588501,
0.02739100344479084,
-0.009631404653191566,
0.02677355520427227,
0.04451471567153931,
0.009358994662761688,
0.025090089067816734,
0.03554286062717438,
0.033123940229415894,
0.014895296655595303,
0.03259485960006714,
0.013090750202536583,
0.00554032064974308,
-0.003264879109337926,
0.004956492222845554,
-0.007216515950858593,
-0.17019212245941162,
0.03565790876746178,
-7.00678827872961e-33,
0.03209148719906807,
-0.05004313215613365,
0.0015734973130747676,
-0.0025780643336474895,
-0.008256656117737293,
0.047370545566082,
-0.01006573811173439,
0.03728717938065529,
0.010171307250857353,
-0.021894928067922592,
0.016690516844391823,
0.0035246836487203836,
0.012653440237045288,
-0.02756110206246376,
-0.0017011943273246288,
-0.0004525807162281126,
0.01658378727734089,
0.028817251324653625,
-0.016713080927729607,
0.013234557583928108,
0.0034373418893665075,
0.030884798616170883,
-0.0021598658058792353,
0.02666492573916912,
-0.011435550637543201,
0.020400632172822952,
0.029997797682881355,
-0.02924906462430954,
-0.0034536155872046947,
-0.04086100682616234,
-0.009128130041062832,
-0.0036008688621222973,
-0.014370216988027096,
0.0005527423927560449,
0.03743873909115791,
-0.06895846128463745,
-0.003882137592881918,
0.0023899199441075325,
-0.007236837409436703,
-0.012449199333786964,
-0.015288182534277439,
-0.026084957644343376,
-0.031329259276390076,
0.013189082033932209,
-0.021672215312719345,
0.0007824389613233507,
0.022188100963830948,
0.05945027619600296,
-0.013703729026019573,
0.02136051654815674,
0.05257631838321686,
0.018455281853675842,
0.025200333446264267,
-0.02388588897883892,
0.01440849807113409,
0.024394262582063675,
-0.03342756628990173,
0.00904093962162733,
0.026343759149312973,
0.015734929591417313,
0.012948360294103622,
0.011430098675191402,
0.003362117102369666,
-0.011172288097441196,
0.040913742035627365,
-0.055363450199365616,
-0.004176024347543716,
-0.025577424094080925,
0.011636531911790371,
0.062045689672231674,
-0.02807874232530594,
0.027164805680513382,
-0.0009547451045364141,
0.05320221558213234,
0.05683095380663872,
-0.007929432205855846,
0.01381656900048256,
-0.0026633962988853455,
0.02383316494524479,
0.03840784728527069,
0.005763945635408163,
0.020851362496614456,
0.00792466290295124,
-0.026554659008979797,
-0.017903732135891914,
-0.01715990900993347,
0.014489979483187199,
-0.03907255083322525,
-0.030592622235417366,
0.0052880048751831055,
0.018011335283517838,
-0.00845355074852705,
-0.028779642656445503,
-0.029877927154302597,
-0.03753029555082321,
6.701102442166213e-33,
0.006722452584654093,
-0.01828884519636631,
-0.015323362313210964,
0.028027210384607315,
0.009075076319277287,
-0.03136293217539787,
0.028037291020154953,
-0.00518521573394537,
-0.008419068530201912,
0.018073147162795067,
-0.04451628029346466,
-0.012513760477304459,
0.021973170340061188,
0.0345873087644577,
0.0878760814666748,
-0.038850415498018265,
0.01143381092697382,
-0.005099304020404816,
-0.013248163275420666,
0.010062305256724358,
-0.01037597842514515,
0.016561346128582954,
0.03520998731255531,
0.025918060913681984,
0.028180904686450958,
0.027594998478889465,
0.0021921976003795862,
0.027676107361912727,
-0.018769824877381325,
-0.010167117230594158,
0.020881779491901398,
0.020236272364854813,
-0.019460557028651237,
-0.044259924441576004,
-0.05805101618170738,
0.050624679774045944,
0.0276078712195158,
-0.024144217371940613,
0.015894629061222076,
-0.015512794256210327,
0.016213323920965195,
0.01940721832215786,
-0.010099725797772408,
0.0006409788620658219,
0.017719607800245285,
0.026377558708190918,
-0.000596107158344239,
0.007320520468056202,
-0.0034179973881691694,
0.009090522304177284,
-0.012600512243807316,
0.01991618238389492,
0.00495508499443531,
0.0034030480310320854,
0.047230008989572525,
-0.03954156115651131,
-0.0322977714240551,
-0.004569578915834427,
-0.00711638992652297,
-0.004412724170833826,
-0.015868263319134712,
-0.02224782481789589,
-0.0083796801045537,
0.02451467700302601,
-0.03335808962583542,
-0.03657276928424835,
0.00900626927614212,
-0.0347425602376461,
0.014068853110074997,
-0.009863512590527534,
0.027278129011392593,
-0.0083669638261199,
-0.003700839588418603,
0.03509959205985069,
-0.010399322025477886,
0.016601072624325752,
-0.017053166404366493,
-0.002182179829105735,
-0.042351093143224716,
0.006445917300879955,
0.012195190414786339,
0.01624711975455284,
0.006823427975177765,
0.016244452446699142,
0.02615376003086567,
0.04386310279369354,
-0.03335781767964363,
-0.030446764081716537,
0.025404635816812515,
-0.010591343976557255,
0.014842640608549118,
-0.012924730777740479,
-0.0038867073599249125,
0.04571650177240372,
0.036119494587183,
-1.2448293951194955e-8,
0.04258374124765396,
0.013260696083307266,
-0.021525245159864426,
0.004415122326463461,
0.05549345165491104,
0.022611023858189583,
-0.025554483756422997,
-0.02239958569407463,
-0.018321091309189796,
0.005219987127929926,
0.054895274341106415,
-0.04316934570670128,
0.017612701281905174,
0.03138777241110802,
0.037598609924316406,
0.0075255804695189,
0.007030336186289787,
-0.007834374904632568,
0.010712160728871822,
0.006644272245466709,
0.015317969024181366,
0.04206155985593796,
-0.005039746407419443,
-0.002668848028406501,
-0.02090720646083355,
-0.012382658198475838,
0.02265646494925022,
-0.10220392793416977,
-0.00638282485306263,
-0.043862756341695786,
0.044440027326345444,
-0.02872001938521862,
-0.015358729287981987,
0.009996811859309673,
-0.018133629113435745,
-0.04923631623387337,
0.012220622040331364,
0.016769185662269592,
0.009625299833714962,
-0.012380236759781837,
-0.001105887582525611,
-0.0039473725482821465,
-0.028375789523124695,
-0.02037065289914608,
-0.033409539610147476,
-0.04183710366487503,
-0.04038331285119057,
-0.0032281859312206507,
-0.01869530975818634,
-0.03088323213160038,
0.03304821625351906,
-0.0038182621356099844,
-0.017232445999979973,
0.021721694618463516,
0.027817821130156517,
-0.00952283013612032,
-0.013675601221621037,
-0.034994691610336304,
-0.05450447276234627,
-0.01754412241280079,
-0.011144159361720085,
0.0034484618809074163,
-0.03516187518835068,
-0.03187776356935501
] | r-command-line-error-in-generictranslatornew-could-not-find-function-loadmethod | https://markhneedham.com/blog/2015/06/27/r-command-line-error-in-generictranslatornew-could-not-find-function-loadmethod |
false | 2015-06-11 23:15:06 | Neo4j: Using LOAD CSV to help explore CSV files | [
"neo4j"
] | [
"Shell Scripting",
"neo4j"
] | During the http://www.meetup.com/graphdb-london/events/222398970/[Neo4j How I met your mother hackathon] that we ran last week one of the attendees noticed that one of the CSV files we were importing wasn't creating as many records as they expected it to.
This is typically the case when there's some odd quoting in the CSV file but we decided to look into it.
The file in question was one containing references made in HIMYM. The first 5 lines look like this: ~~~bash $ head -n 5 data/import/references.csv ReferencedEpisodeId,ReferencingEpisodeId,ReferenceText 168,184,"Marshall will eventually hear back from the New York State Judicatory Committee in Something New, which will become a main plot point of Season 9." 168,169,Barney proclaiming to be done with Robin will be the focal point of Lobster Crawl. 58,57,"Barney finally confronts his saboteur (Abby, whom he slept with in Ten Sessions) in Everything Must Go." 58,63,"Barney finally confronts his saboteur (Abby, whom he slept with in Ten Sessions) in Everything Must Go." ~~~
And this is how many lines the Unix 'wc' command sees: ~~~bash $ wc -l data/import/references.csv 782 data/import/references.csv ~~~
So we might expect that there are going to be 782 records created if we import that file into Neo4j. Let's run a quick query in Neo4j to see what it thinks: ~~~cypher LOAD CSV WITH HEADERS FROM "file:///Users/markneedham/projects/neo4j-himym/data/import/references.csv" AS row return count(*) =\=> +----------+ =\=> | count(*) | =\=> +----------+ =\=> | 636 | =\=> +----------+ =\=> 1 row ~~~
So we have 146 less records than we expected which means Neo4j is treating multiple lines as one CSV line in some cases.
Let's go back to the Unix command line to try and work out which lines those are. There must be some lines which start with part of the 'ReferenceText' rather than a 'ReferenceEpisodeId' so let's extract the first column and see what's going on there: ~~~bash $ cat data/import/references.csv | cut -d"," -f1 | grep -v '[0-9]\+$'| head -n 10 ReferencedEpisodeId This is the Mother's first on-screen appearance with the yellow umbrella. Previously she appeared in Lucky Penny This is the Mother's first on-screen appearance with the yellow umbrella. Previously she appeared in Lucky Penny This is the Mother's first on-screen appearance with the yellow umbrella. Previously she appeared in Lucky Penny This is the Mother's first on-screen appearance with the yellow umbrella. Previously she appeared in Lucky Penny This is the Mother's first on-screen appearance with the yellow umbrella. Previously she appeared in Lucky Penny This is the Mother's first on-screen appearance with the yellow umbrella. Previously she appeared in Lucky Penny This is the Mother's first on-screen appearance with the yellow umbrella. Previously she appeared in Lucky Penny This is the Mother's first on-screen appearance with the yellow umbrella. Previously she appeared in Lucky Penny Also ~~~
We've extracted the first column and then filter the output to only keep rows which don't contain all numbers which will be our rogue rows.
Let's switch back to Neo4j land to see which rows it thinks contains these fragments of text: ~~~cypher LOAD CSV WITH HEADERS FROM "file:///Users/markneedham/projects/neo4j-himym/data/import/references.csv" AS row WITH row WHERE row.ReferenceText =~ ".*This is the Mother's first.*" RETURN row.ReferencedEpisodeId, row.ReferencingEpisodeId, row.ReferenceText =\=> +--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ =\=> | row.ReferencedEpisodeId | row.ReferencingEpisodeId | row.ReferenceText | =\=> +--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ =\=> | "45" | "37" | "This is the Mother's first on-screen appearance with the yellow umbrella. Previously she appeared in Lucky Penny, with her head obscured by a bridal veil. She is seen again in No Tomorrow, again hidden by the umbrella, her ankle is seen briefly in Girls Versus Suits, and she gets her first proper appearance in Something New, after which she appears throughout Season 9." | =\=> | "45" | "184" | "This is the Mother's first on-screen appearance with the yellow umbrella. Previously she appeared in Lucky Penny, with her head obscured by a bridal veil. She is seen again in No Tomorrow, again hidden by the umbrella, her ankle is seen briefly in Girls Versus Suits, and she gets her first proper appearance in Something New, after which she appears throughout Season 9." | =\=> +--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ ~~~
Interestingly it only returns two rows containing that phrase whereas we see it at least 8 times. Initially I thought this was an issue with the LOAD CSV command but if we filter the rows to only return ones that have a 'ReferencedEpisodeId' of '45' then we do see them returned: ~~~cypher =\=> +---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ =\=> | row | =\=> +---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ =\=> | {ReferencedEpisodeId \-> "45", ReferencingEpisodeId \-> "53", ReferenceText \-> "The website counting down to the next slap (slapcountdown.com) that Marshall sends Barney reaches zero in Slapsgiving, when the third slap is delivered."} | =\=> | {ReferencedEpisodeId \-> "45", ReferencingEpisodeId \-> "55", ReferenceText \-> "Ted gets rid of his butterfly tramp stamp through ten weekly sessions of laser tattoo removal between The Platinum Rule and Ten Sessions, over the course of which he meets, asks out, and eventually starts dating his dermatologist, Stella Zinman."} | =\=> | {ReferencedEpisodeId \-> "45", ReferencingEpisodeId \-> "57", ReferenceText \-> "Ted gets rid of his butterfly tramp stamp through ten weekly sessions of laser tattoo removal between The Platinum Rule and Ten Sessions, over the course of which he meets, asks out, and eventually starts dating his dermatologist, Stella Zinman."} | =\=> | {ReferencedEpisodeId \-> "45", ReferencingEpisodeId \-> "56", ReferenceText \-> "Ted eventually acquires the yellow umbrella in No Tomorrow (after the Mother leaves it behind at the St. Patrick's Day party, as seen in How Your Mother Met Me), and leaves it in Cindy's and the Mother's apartment in Girls Versus Suits. The umbrella is also seen/referenced in many other episodes, including Right Place, Right Time, Big Days, and Farhampton. =\=> This is the Mother's first on-screen appearance with the yellow umbrella. Previously she appeared in Lucky Penny, with her head obscured by a bridal veil. She is seen again in No Tomorrow, again hidden by the umbrella, her ankle is seen briefly in Girls Versus Suits, and she gets her first proper appearance in Something New, after which she appears throughout Season 9."} | =\=> | {ReferencedEpisodeId \-> "45", ReferencingEpisodeId \-> "200", ReferenceText \-> "Ted eventually acquires the yellow umbrella in No Tomorrow (after the Mother leaves it behind at the St. Patrick's Day party, as seen in How Your Mother Met Me), and leaves it in Cindy's and the Mother's apartment in Girls Versus Suits. The umbrella is also seen/referenced in many other episodes, including Right Place, Right Time, Big Days, and Farhampton. =\=> This is the Mother's first on-screen appearance with the yellow umbrella. Previously she appeared in Lucky Penny, with her head obscured by a bridal veil. She is seen again in No Tomorrow, again hidden by the umbrella, her ankle is seen briefly in Girls Versus Suits, and she gets her first proper appearance in Something New, after which she appears throughout Season 9."} | =\=> | {ReferencedEpisodeId \-> "45", ReferencingEpisodeId \-> "100", ReferenceText \-> "Ted eventually acquires the yellow umbrella in No Tomorrow (after the Mother leaves it behind at the St. Patrick's Day party, as seen in How Your Mother Met Me), and leaves it in Cindy's and the Mother's apartment in Girls Versus Suits. The umbrella is also seen/referenced in many other episodes, including Right Place, Right Time, Big Days, and Farhampton. =\=> This is the Mother's first on-screen appearance with the yellow umbrella. Previously she appeared in Lucky Penny, with her head obscured by a bridal veil. She is seen again in No Tomorrow, again hidden by the umbrella, her ankle is seen briefly in Girls Versus Suits, and she gets her first proper appearance in Something New, after which she appears throughout Season 9."} | =\=> | {ReferencedEpisodeId \-> "45", ReferencingEpisodeId \-> "86", ReferenceText \-> "Ted eventually acquires the yellow umbrella in No Tomorrow (after the Mother leaves it behind at the St. Patrick's Day party, as seen in How Your Mother Met Me), and leaves it in Cindy's and the Mother's apartment in Girls Versus Suits. The umbrella is also seen/referenced in many other episodes, including Right Place, Right Time, Big Days, and Farhampton. =\=> This is the Mother's first on-screen appearance with the yellow umbrella. Previously she appeared in Lucky Penny, with her head obscured by a bridal veil. She is seen again in No Tomorrow, again hidden by the umbrella, her ankle is seen briefly in Girls Versus Suits, and she gets her first proper appearance in Something New, after which she appears throughout Season 9."} | =\=> | {ReferencedEpisodeId \-> "45", ReferencingEpisodeId \-> "113", ReferenceText \-> "Ted eventually acquires the yellow umbrella in No Tomorrow (after the Mother leaves it behind at the St. Patrick's Day party, as seen in How Your Mother Met Me), and leaves it in Cindy's and the Mother's apartment in Girls Versus Suits. The umbrella is also seen/referenced in many other episodes, including Right Place, Right Time, Big Days, and Farhampton. =\=> This is the Mother's first on-screen appearance with the yellow umbrella. Previously she appeared in Lucky Penny, with her head obscured by a bridal veil. She is seen again in No Tomorrow, again hidden by the umbrella, her ankle is seen briefly in Girls Versus Suits, and she gets her first proper appearance in Something New, after which she appears throughout Season 9."} | =\=> | {ReferencedEpisodeId \-> "45", ReferencingEpisodeId \-> "161", ReferenceText \-> "Ted eventually acquires the yellow umbrella in No Tomorrow (after the Mother leaves it behind at the St. Patrick's Day party, as seen in How Your Mother Met Me), and leaves it in Cindy's and the Mother's apartment in Girls Versus Suits. The umbrella is also seen/referenced in many other episodes, including Right Place, Right Time, Big Days, and Farhampton. =\=> This is the Mother's first on-screen appearance with the yellow umbrella. Previously she appeared in Lucky Penny, with her head obscured by a bridal veil. She is seen again in No Tomorrow, again hidden by the umbrella, her ankle is seen briefly in Girls Versus Suits, and she gets her first proper appearance in Something New, after which she appears throughout Season 9."} | =\=> | {ReferencedEpisodeId \-> "45", ReferencingEpisodeId \-> "37", ReferenceText \-> "Ted eventually acquires the yellow umbrella in No Tomorrow (after the Mother leaves it behind at the St. Patrick's Day party, as seen in How Your Mother Met Me), and leaves it in Cindy's and the Mother's apartment in Girls Versus Suits. The umbrella is also seen/referenced in many other episodes, including Right Place, Right Time, Big Days, and Farhampton. =\=> This is the Mother's first on-screen appearance with the yellow umbrella. Previously she appeared in Lucky Penny, with her head obscured by a bridal veil. She is seen again in No Tomorrow, again hidden by the umbrella, her ankle is seen briefly in Girls Versus Suits, and she gets her first proper appearance in Something New, after which she appears throughout Season 9."} | =\=> | {ReferencedEpisodeId \-> "45", ReferencingEpisodeId \-> "184", ReferenceText \-> "Ted eventually acquires the yellow umbrella in No Tomorrow (after the Mother leaves it behind at the St. Patrick's Day party, as seen in How Your Mother Met Me), and leaves it in Cindy's and the Mother's apartment in Girls Versus Suits. The umbrella is also seen/referenced in many other episodes, including Right Place, Right Time, Big Days, and Farhampton. =\=> This is the Mother's first on-screen appearance with the yellow umbrella. Previously she appeared in Lucky Penny, with her head obscured by a bridal veil. She is seen again in No Tomorrow, again hidden by the umbrella, her ankle is seen briefly in Girls Versus Suits, and she gets her first proper appearance in Something New, after which she appears throughout Season 9."} | =\=> | {ReferencedEpisodeId \-> "45", ReferencingEpisodeId \-> "37", ReferenceText \-> "This is the Mother's first on-screen appearance with the yellow umbrella. Previously she appeared in Lucky Penny, with her head obscured by a bridal veil. She is seen again in No Tomorrow, again hidden by the umbrella, her ankle is seen briefly in Girls Versus Suits, and she gets her first proper appearance in Something New, after which she appears throughout Season 9."} | =\=> | {ReferencedEpisodeId \-> "45", ReferencingEpisodeId \-> "184", ReferenceText \-> "This is the Mother's first on-screen appearance with the yellow umbrella. Previously she appeared in Lucky Penny, with her head obscured by a bridal veil. She is seen again in No Tomorrow, again hidden by the umbrella, her ankle is seen briefly in Girls Versus Suits, and she gets her first proper appearance in Something New, after which she appears throughout Season 9."} | =\=> | {ReferencedEpisodeId \-> "45", ReferencingEpisodeId \-> "63", ReferenceText \-> "Marshall makes other home-made websites in Everything Must Go (lilyandmarshallselltheirstuff.com) and The Sexless Innkeeper (itwasthebestnightever.com), where Lily and Future Ted mention it being a problem."} | =\=> | {ReferencedEpisodeId \-> "45", ReferencingEpisodeId \-> "92", ReferenceText \-> "Marshall makes other home-made websites in Everything Must Go (lilyandmarshallselltheirstuff.com) and The Sexless Innkeeper (itwasthebestnightever.com), where Lily and Future Ted mention it being a problem."} | =\=> +---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ ~~~
So the actual problem is that the regex matcher doesn't deal with the new line in the string.
Our next step is therefore to get rid of new lines within strings. I spent ages trying to find the appropriate command before coming across the http://www.unix.com/shell-programming-and-scripting/195671-replace-newline-character-between-double-quotes-space.html[following use of awk which does the job]: ~~~bash $ cat data/import/references.csv | awk '(NR-1)%2{$1=$1} {print $0}' RS=\" ORS=\" | wc -l 637 $ cat data/import/references.csv | awk '(NR-1)%2{$1=$1} {print $0}' RS=\" ORS=\" > data/import/refs.csv ~~~
Let's try the LOAD CSV command again: ~~~cypher LOAD CSV WITH HEADERS FROM "file:///Users/markneedham/projects/neo4j-himym/data/import/refs.csv" AS row WITH row WHERE row.ReferenceText =~ ".*This is the Mother's first.*" RETURN row.ReferencedEpisodeId, row.ReferencingEpisodeId, row.ReferenceText =\=> +-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ =\=> | row.ReferencedEpisodeId | row.ReferencingEpisodeId | row.ReferenceText | =\=> +-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ =\=> | "45" | "56" | "Ted eventually acquires the yellow umbrella in No Tomorrow (after the Mother leaves it behind at the St. Patrick's Day party, as seen in How Your Mother Met Me), and leaves it in Cindy's and the Mother's apartment in Girls Versus Suits. The umbrella is also seen/referenced in many other episodes, including Right Place, Right Time, Big Days, and Farhampton. This is the Mother's first on-screen appearance with the yellow umbrella. Previously she appeared in Lucky Penny, with her head obscured by a bridal veil. She is seen again in No Tomorrow, again hidden by the umbrella, her ankle is seen briefly in Girls Versus Suits, and she gets her first proper appearance in Something New, after which she appears throughout Season 9." | =\=> | "45" | "200" | "Ted eventually acquires the yellow umbrella in No Tomorrow (after the Mother leaves it behind at the St. Patrick's Day party, as seen in How Your Mother Met Me), and leaves it in Cindy's and the Mother's apartment in Girls Versus Suits. The umbrella is also seen/referenced in many other episodes, including Right Place, Right Time, Big Days, and Farhampton. This is the Mother's first on-screen appearance with the yellow umbrella. Previously she appeared in Lucky Penny, with her head obscured by a bridal veil. She is seen again in No Tomorrow, again hidden by the umbrella, her ankle is seen briefly in Girls Versus Suits, and she gets her first proper appearance in Something New, after which she appears throughout Season 9." | =\=> | "45" | "100" | "Ted eventually acquires the yellow umbrella in No Tomorrow (after the Mother leaves it behind at the St. Patrick's Day party, as seen in How Your Mother Met Me), and leaves it in Cindy's and the Mother's apartment in Girls Versus Suits. The umbrella is also seen/referenced in many other episodes, including Right Place, Right Time, Big Days, and Farhampton. This is the Mother's first on-screen appearance with the yellow umbrella. Previously she appeared in Lucky Penny, with her head obscured by a bridal veil. She is seen again in No Tomorrow, again hidden by the umbrella, her ankle is seen briefly in Girls Versus Suits, and she gets her first proper appearance in Something New, after which she appears throughout Season 9." | =\=> | "45" | "86" | "Ted eventually acquires the yellow umbrella in No Tomorrow (after the Mother leaves it behind at the St. Patrick's Day party, as seen in How Your Mother Met Me), and leaves it in Cindy's and the Mother's apartment in Girls Versus Suits. The umbrella is also seen/referenced in many other episodes, including Right Place, Right Time, Big Days, and Farhampton. This is the Mother's first on-screen appearance with the yellow umbrella. Previously she appeared in Lucky Penny, with her head obscured by a bridal veil. She is seen again in No Tomorrow, again hidden by the umbrella, her ankle is seen briefly in Girls Versus Suits, and she gets her first proper appearance in Something New, after which she appears throughout Season 9." | =\=> | "45" | "113" | "Ted eventually acquires the yellow umbrella in No Tomorrow (after the Mother leaves it behind at the St. Patrick's Day party, as seen in How Your Mother Met Me), and leaves it in Cindy's and the Mother's apartment in Girls Versus Suits. The umbrella is also seen/referenced in many other episodes, including Right Place, Right Time, Big Days, and Farhampton. This is the Mother's first on-screen appearance with the yellow umbrella. Previously she appeared in Lucky Penny, with her head obscured by a bridal veil. She is seen again in No Tomorrow, again hidden by the umbrella, her ankle is seen briefly in Girls Versus Suits, and she gets her first proper appearance in Something New, after which she appears throughout Season 9." | =\=> | "45" | "161" | "Ted eventually acquires the yellow umbrella in No Tomorrow (after the Mother leaves it behind at the St. Patrick's Day party, as seen in How Your Mother Met Me), and leaves it in Cindy's and the Mother's apartment in Girls Versus Suits. The umbrella is also seen/referenced in many other episodes, including Right Place, Right Time, Big Days, and Farhampton. This is the Mother's first on-screen appearance with the yellow umbrella. Previously she appeared in Lucky Penny, with her head obscured by a bridal veil. She is seen again in No Tomorrow, again hidden by the umbrella, her ankle is seen briefly in Girls Versus Suits, and she gets her first proper appearance in Something New, after which she appears throughout Season 9." | =\=> | "45" | "37" | "Ted eventually acquires the yellow umbrella in No Tomorrow (after the Mother leaves it behind at the St. Patrick's Day party, as seen in How Your Mother Met Me), and leaves it in Cindy's and the Mother's apartment in Girls Versus Suits. The umbrella is also seen/referenced in many other episodes, including Right Place, Right Time, Big Days, and Farhampton. This is the Mother's first on-screen appearance with the yellow umbrella. Previously she appeared in Lucky Penny, with her head obscured by a bridal veil. She is seen again in No Tomorrow, again hidden by the umbrella, her ankle is seen briefly in Girls Versus Suits, and she gets her first proper appearance in Something New, after which she appears throughout Season 9." | =\=> | "45" | "184" | "Ted eventually acquires the yellow umbrella in No Tomorrow (after the Mother leaves it behind at the St. Patrick's Day party, as seen in How Your Mother Met Me), and leaves it in Cindy's and the Mother's apartment in Girls Versus Suits. The umbrella is also seen/referenced in many other episodes, including Right Place, Right Time, Big Days, and Farhampton. This is the Mother's first on-screen appearance with the yellow umbrella. Previously she appeared in Lucky Penny, with her head obscured by a bridal veil. She is seen again in No Tomorrow, again hidden by the umbrella, her ankle is seen briefly in Girls Versus Suits, and she gets her first proper appearance in Something New, after which she appears throughout Season 9." | =\=> | "45" | "37" | "This is the Mother's first on-screen appearance with the yellow umbrella. Previously she appeared in Lucky Penny, with her head obscured by a bridal veil. She is seen again in No Tomorrow, again hidden by the umbrella, her ankle is seen briefly in Girls Versus Suits, and she gets her first proper appearance in Something New, after which she appears throughout Season 9." | =\=> | "45" | "184" | "This is the Mother's first on-screen appearance with the yellow umbrella. Previously she appeared in Lucky Penny, with her head obscured by a bridal veil. She is seen again in No Tomorrow, again hidden by the umbrella, her ankle is seen briefly in Girls Versus Suits, and she gets her first proper appearance in Something New, after which she appears throughout Season 9." | =\=> +-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ ~~~
And there we go!
== Update
https://twitter.com/mesirii[Michael] pointed out that I could have used the dotall regex flag at the beginning of the regular expression in order to search across new lines without having to remove them! In that case the query would read like this: ~~~cypher LOAD CSV WITH HEADERS FROM "file:///Users/markneedham/projects/neo4j-himym/data/import/references.csv" AS row WITH row WHERE row.ReferenceText =~ "(?s).*This is the Mother.*" RETURN row =\=> +---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ =\=> | row | =\=> +---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ =\=> | {ReferencedEpisodeId \-> "45", ReferencingEpisodeId \-> "56", ReferenceText \-> "Ted eventually acquires the yellow umbrella in No Tomorrow (after the Mother leaves it behind at the St. Patrick's Day party, as seen in How Your Mother Met Me), and leaves it in Cindy's and the Mother's apartment in Girls Versus Suits. The umbrella is also seen/referenced in many other episodes, including Right Place, Right Time, Big Days, and Farhampton. =\=> This is the Mother's first on-screen appearance with the yellow umbrella. Previously she appeared in Lucky Penny, with her head obscured by a bridal veil. She is seen again in No Tomorrow, again hidden by the umbrella, her ankle is seen briefly in Girls Versus Suits, and she gets her first proper appearance in Something New, after which she appears throughout Season 9."} | =\=> | {ReferencedEpisodeId \-> "45", ReferencingEpisodeId \-> "200", ReferenceText \-> "Ted eventually acquires the yellow umbrella in No Tomorrow (after the Mother leaves it behind at the St. Patrick's Day party, as seen in How Your Mother Met Me), and leaves it in Cindy's and the Mother's apartment in Girls Versus Suits. The umbrella is also seen/referenced in many other episodes, including Right Place, Right Time, Big Days, and Farhampton. =\=> This is the Mother's first on-screen appearance with the yellow umbrella. Previously she appeared in Lucky Penny, with her head obscured by a bridal veil. She is seen again in No Tomorrow, again hidden by the umbrella, her ankle is seen briefly in Girls Versus Suits, and she gets her first proper appearance in Something New, after which she appears throughout Season 9."} | =\=> | {ReferencedEpisodeId \-> "45", ReferencingEpisodeId \-> "100", ReferenceText \-> "Ted eventually acquires the yellow umbrella in No Tomorrow (after the Mother leaves it behind at the St. Patrick's Day party, as seen in How Your Mother Met Me), and leaves it in Cindy's and the Mother's apartment in Girls Versus Suits. The umbrella is also seen/referenced in many other episodes, including Right Place, Right Time, Big Days, and Farhampton. =\=> This is the Mother's first on-screen appearance with the yellow umbrella. Previously she appeared in Lucky Penny, with her head obscured by a bridal veil. She is seen again in No Tomorrow, again hidden by the umbrella, her ankle is seen briefly in Girls Versus Suits, and she gets her first proper appearance in Something New, after which she appears throughout Season 9."} | =\=> | {ReferencedEpisodeId \-> "45", ReferencingEpisodeId \-> "86", ReferenceText \-> "Ted eventually acquires the yellow umbrella in No Tomorrow (after the Mother leaves it behind at the St. Patrick's Day party, as seen in How Your Mother Met Me), and leaves it in Cindy's and the Mother's apartment in Girls Versus Suits. The umbrella is also seen/referenced in many other episodes, including Right Place, Right Time, Big Days, and Farhampton. =\=> This is the Mother's first on-screen appearance with the yellow umbrella. Previously she appeared in Lucky Penny, with her head obscured by a bridal veil. She is seen again in No Tomorrow, again hidden by the umbrella, her ankle is seen briefly in Girls Versus Suits, and she gets her first proper appearance in Something New, after which she appears throughout Season 9."} | =\=> | {ReferencedEpisodeId \-> "45", ReferencingEpisodeId \-> "113", ReferenceText \-> "Ted eventually acquires the yellow umbrella in No Tomorrow (after the Mother leaves it behind at the St. Patrick's Day party, as seen in How Your Mother Met Me), and leaves it in Cindy's and the Mother's apartment in Girls Versus Suits. The umbrella is also seen/referenced in many other episodes, including Right Place, Right Time, Big Days, and Farhampton. =\=> This is the Mother's first on-screen appearance with the yellow umbrella. Previously she appeared in Lucky Penny, with her head obscured by a bridal veil. She is seen again in No Tomorrow, again hidden by the umbrella, her ankle is seen briefly in Girls Versus Suits, and she gets her first proper appearance in Something New, after which she appears throughout Season 9."} | =\=> | {ReferencedEpisodeId \-> "45", ReferencingEpisodeId \-> "161", ReferenceText \-> "Ted eventually acquires the yellow umbrella in No Tomorrow (after the Mother leaves it behind at the St. Patrick's Day party, as seen in How Your Mother Met Me), and leaves it in Cindy's and the Mother's apartment in Girls Versus Suits. The umbrella is also seen/referenced in many other episodes, including Right Place, Right Time, Big Days, and Farhampton. =\=> This is the Mother's first on-screen appearance with the yellow umbrella. Previously she appeared in Lucky Penny, with her head obscured by a bridal veil. She is seen again in No Tomorrow, again hidden by the umbrella, her ankle is seen briefly in Girls Versus Suits, and she gets her first proper appearance in Something New, after which she appears throughout Season 9."} | =\=> | {ReferencedEpisodeId \-> "45", ReferencingEpisodeId \-> "37", ReferenceText \-> "Ted eventually acquires the yellow umbrella in No Tomorrow (after the Mother leaves it behind at the St. Patrick's Day party, as seen in How Your Mother Met Me), and leaves it in Cindy's and the Mother's apartment in Girls Versus Suits. The umbrella is also seen/referenced in many other episodes, including Right Place, Right Time, Big Days, and Farhampton. =\=> This is the Mother's first on-screen appearance with the yellow umbrella. Previously she appeared in Lucky Penny, with her head obscured by a bridal veil. She is seen again in No Tomorrow, again hidden by the umbrella, her ankle is seen briefly in Girls Versus Suits, and she gets her first proper appearance in Something New, after which she appears throughout Season 9."} | =\=> | {ReferencedEpisodeId \-> "45", ReferencingEpisodeId \-> "184", ReferenceText \-> "Ted eventually acquires the yellow umbrella in No Tomorrow (after the Mother leaves it behind at the St. Patrick's Day party, as seen in How Your Mother Met Me), and leaves it in Cindy's and the Mother's apartment in Girls Versus Suits. The umbrella is also seen/referenced in many other episodes, including Right Place, Right Time, Big Days, and Farhampton. =\=> This is the Mother's first on-screen appearance with the yellow umbrella. Previously she appeared in Lucky Penny, with her head obscured by a bridal veil. She is seen again in No Tomorrow, again hidden by the umbrella, her ankle is seen briefly in Girls Versus Suits, and she gets her first proper appearance in Something New, after which she appears throughout Season 9."} | =\=> | {ReferencedEpisodeId \-> "45", ReferencingEpisodeId \-> "37", ReferenceText \-> "This is the Mother's first on-screen appearance with the yellow umbrella. Previously she appeared in Lucky Penny, with her head obscured by a bridal veil. She is seen again in No Tomorrow, again hidden by the umbrella, her ankle is seen briefly in Girls Versus Suits, and she gets her first proper appearance in Something New, after which she appears throughout Season 9."} | =\=> | {ReferencedEpisodeId \-> "45", ReferencingEpisodeId \-> "184", ReferenceText \-> "This is the Mother's first on-screen appearance with the yellow umbrella. Previously she appeared in Lucky Penny, with her head obscured by a bridal veil. She is seen again in No Tomorrow, again hidden by the umbrella, her ankle is seen briefly in Girls Versus Suits, and she gets her first proper appearance in Something New, after which she appears throughout Season 9."} | =\=> +---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ ~~~ | null | null | [
-0.0014406506670638919,
-0.019028542563319206,
-0.02991403266787529,
0.030204949900507927,
0.10187672078609467,
-0.006581757217645645,
0.025902559980750084,
0.04671280086040497,
0.00409206748008728,
-0.004979215562343597,
-0.0026941269170492887,
-0.010516962967813015,
-0.06510991603136063,
0.0323999784886837,
-0.02191472053527832,
0.06365815550088882,
0.06586915254592896,
0.013826497830450535,
0.022406086325645447,
-0.014759944751858711,
0.0230404045432806,
0.045524515211582184,
0.015926627442240715,
0.03494461998343468,
0.00757269561290741,
-0.0031491725239902735,
-0.01221514493227005,
-0.009681331925094128,
-0.04594079777598381,
0.022178707644343376,
0.045582182705402374,
-0.030342992395162582,
0.030992763116955757,
-0.009635238908231258,
0.025213316082954407,
-0.007664574310183525,
-0.03711037337779999,
0.007826587185263634,
-0.003923855256289244,
-0.0020659281872212887,
-0.06630774587392807,
0.03470129519701004,
-0.025423845276236534,
-0.00015739750233478844,
-0.05405227467417717,
-0.011325723491609097,
-0.030412811785936356,
0.055691007524728775,
0.02561516873538494,
0.007980942726135254,
-0.06523802131414413,
0.019948242232203484,
-0.016910329461097717,
-0.0015843147411942482,
-0.005998698994517326,
0.043725404888391495,
0.016775399446487427,
-0.071818508207798,
0.03093317151069641,
-0.010867333970963955,
-0.009330829605460167,
-0.02077542059123516,
-0.001300967764109373,
0.016520095989108086,
0.012907315976917744,
-0.03999672085046768,
-0.003493687603622675,
0.060000527650117874,
-0.042576126754283905,
-0.003770124865695834,
-0.008979715406894684,
0.01798311620950699,
-0.019380608573555946,
-0.00968671403825283,
0.012022892944514751,
-0.05324648320674896,
0.008571412414312363,
0.04227953776717186,
0.013673041015863419,
0.05765015259385109,
-0.054179608821868896,
0.032187629491090775,
0.0008886064752005041,
0.029632508754730225,
-0.007448631804436445,
-0.048034798353910446,
-0.029484951868653297,
-0.021767666563391685,
-0.07092868536710739,
0.0341833159327507,
-0.008726599626243114,
-0.05250604823231697,
0.00011471002653706819,
0.002887713722884655,
-0.02656186930835247,
0.018721379339694977,
0.01352742686867714,
0.011320395395159721,
0.023708250373601913,
-0.011233304627239704,
-0.06347132474184036,
-0.03091071918606758,
0.005366174504160881,
0.014686166308820248,
-0.07994166016578674,
-0.016399411484599113,
-0.005250329151749611,
-0.012849332764744759,
0.00023990233603399247,
-0.007403255440294743,
-0.033079877495765686,
-0.010340508073568344,
-0.018089748919010162,
0.004972035996615887,
-0.09149042516946793,
0.07574570924043655,
0.02274106629192829,
-0.04756610468029976,
-0.02586769126355648,
0.019071346148848534,
0.046842627227306366,
0.03149866312742233,
0.006530821323394775,
0.07461027055978775,
-0.006840538699179888,
0.014866002835333347,
-0.01372852548956871,
0.049226853996515274,
-0.0037329327315092087,
-0.0564846470952034,
-0.04176856204867363,
0.06142072379589081,
-0.008185513317584991,
0.01145678199827671,
-0.007371251471340656,
-0.03397548943758011,
-0.01792246848344803,
0.020565493032336235,
0.042733971029520035,
0.04777329042553902,
0.014516139402985573,
-0.045258671045303345,
0.024217674508690834,
0.014054135419428349,
0.039781052619218826,
0.005176689010113478,
-0.011142276227474213,
-0.03328686207532883,
-0.02678227610886097,
0.021652093157172203,
0.01410052552819252,
0.03903365135192871,
0.0472867488861084,
-0.029181236401200294,
0.03085133247077465,
0.09793715178966522,
0.024241739884018898,
0.017155228182673454,
-0.024726705625653267,
0.002126159146428108,
0.05671307444572449,
0.03182985261082649,
0.0077567268162965775,
0.0480632558465004,
-0.001398619031533599,
-0.01577877812087536,
-0.01852513663470745,
0.07206502556800842,
-0.023284750059247017,
0.04156064614653587,
-0.038686349987983704,
-0.04002448916435242,
0.06988266110420227,
-0.02409677952528,
-0.003132735611870885,
0.043644312769174576,
0.07050307095050812,
0.02091565541923046,
0.02712053433060646,
-0.02416090853512287,
-0.08722355961799622,
0.0567224882543087,
0.0035026813857257366,
0.019653525203466415,
0.007505131885409355,
-0.013757564127445221,
0.052375517785549164,
0.0326402448117733,
0.012495187111198902,
0.03009946644306183,
-0.06949290633201599,
-0.08686721324920654,
-0.02584252506494522,
-0.004856251645833254,
0.05135180428624153,
-0.024892332032322884,
0.0215087179094553,
0.04502049833536148,
-0.0030509831849485636,
0.03367183357477188,
-0.0029281300958245993,
0.004018167965114117,
0.0439472496509552,
-0.026121051982045174,
-0.05582809075713158,
0.05160236731171608,
0.020374802872538567,
-0.027973314747214317,
-0.032915543764829636,
0.010101338848471642,
-0.02606099285185337,
0.007648528087884188,
0.047220952808856964,
-0.0401594303548336,
0.04246356338262558,
0.021431423723697662,
0.04189823940396309,
-0.026539577171206474,
0.0076080188155174255,
-0.04536378011107445,
0.014082822017371655,
0.014934012666344643,
-0.024349672719836235,
0.0006646282854489982,
-0.014294113963842392,
0.12096060812473297,
0.05629516765475273,
-0.026162296533584595,
-0.06535115838050842,
0.03020143322646618,
0.011415780521929264,
-0.029824284836649895,
-0.014992662705481052,
-0.010063711553812027,
-0.012986429035663605,
0.007074463646858931,
-0.03598511591553688,
-0.03371572494506836,
0.01523028127849102,
-0.03984095901250839,
0.0071748788468539715,
0.05557122454047203,
-0.017008937895298004,
0.05688862502574921,
0.005436328239738941,
-0.01451818086206913,
-0.001474639750085771,
-0.02934984676539898,
-0.04775487259030342,
0.01315796747803688,
0.00660470686852932,
-0.013898765668272972,
0.052658237516880035,
-0.03147883713245392,
-0.018030667677521706,
-0.013939103111624718,
-0.04192886874079704,
0.031964488327503204,
0.053390983492136,
0.07202015072107315,
0.003790926653891802,
0.05605858936905861,
-0.04015198349952698,
0.003848497988656163,
-0.018884163349866867,
-0.03541559353470802,
-0.052974067628383636,
-0.043000150471925735,
0.017930779606103897,
-0.004390055313706398,
0.02816244587302208,
-0.005637915804982185,
0.014031360857188702,
0.007612430024892092,
0.04314174875617027,
-0.015768174082040787,
0.031725749373435974,
-0.0010632093762978911,
0.0032427713740617037,
-0.02107764221727848,
-0.047621987760066986,
0.043508633971214294,
-0.05805633217096329,
-0.01581726223230362,
0.01067169476300478,
-0.05754750221967697,
0.03943154960870743,
-0.05755012482404709,
-0.007615965325385332,
-0.012560851871967316,
0.01393184345215559,
0.047688938677310944,
0.025415532290935516,
0.003178628394380212,
0.0527818538248539,
0.011444292031228542,
0.029842853546142578,
0.01525594387203455,
0.004158117808401585,
0.04841163754463196,
-0.012575991451740265,
0.016849622130393982,
0.0317569337785244,
-0.011366968043148518,
-0.014895637519657612,
-0.010601739399135113,
0.010852241888642311,
-0.019454820081591606,
-0.2828589677810669,
0.06658487021923065,
-0.02903227135539055,
-0.03378606587648392,
0.023075325414538383,
-0.034237608313560486,
0.0202548298984766,
-0.038243722170591354,
-0.02501203678548336,
0.004386682529002428,
-0.020156335085630417,
-0.051147401332855225,
-0.027209091931581497,
0.042801473289728165,
0.016628848388791084,
0.013327902182936668,
-0.0045987023040652275,
-0.05237533897161484,
0.00676371157169342,
0.037411365658044815,
0.012249735184013844,
-0.0372575968503952,
-0.008826090022921562,
0.030275078490376472,
0.012995032593607903,
0.07078678160905838,
-0.10371789336204529,
0.028279868885874748,
-0.06136094778776169,
-0.025903478264808655,
0.001053560758009553,
-0.028931761160492897,
0.001253654481843114,
-0.0034177410416305065,
-0.017223848029971123,
-0.008472372777760029,
0.04357043653726578,
-0.011121949180960655,
-0.008156392723321915,
0.005922159180045128,
-0.019983218982815742,
-0.042585570365190506,
-0.023377584293484688,
-0.0057936981320381165,
0.08620209991931915,
0.02503069117665291,
-0.06465476751327515,
-0.01934080570936203,
-0.009718049317598343,
0.0699826255440712,
-0.020096052438020706,
-0.01353503204882145,
-0.011659056879580021,
0.03085789829492569,
-0.013745561242103577,
0.002043109852820635,
-0.008021938614547253,
-0.0037704145070165396,
-0.06485557556152344,
-0.042302440851926804,
-0.00520611647516489,
-0.0448634997010231,
0.009785694070160389,
-0.05097931995987892,
-0.019092407077550888,
-0.06977135688066483,
-0.08509969711303711,
-0.02083626389503479,
0.06857185810804367,
0.009355449117720127,
-0.023304041475057602,
0.03558148443698883,
0.008238543756306171,
-0.09644867479801178,
-0.03256282955408096,
-0.026070458814501762,
-0.026198402047157288,
0.00424350006505847,
0.003937071189284325,
0.038394197821617126,
-0.05100742354989052,
-0.04108715429902077,
0.025167224928736687,
0.006533397827297449,
0.024463191628456116,
-0.01719302125275135,
0.016347674652934074,
-0.004840456880629063,
-0.06082754582166672,
0.0036997837014496326,
0.04496752470731735,
-0.029544876888394356,
-0.030883196741342545,
-0.006673521362245083,
0.002259061671793461,
0.030757853761315346,
0.010734165087342262,
0.02090877667069435,
0.02537333033978939,
0.06821051239967346,
0.022595593705773354,
-0.05780591815710068,
0.028909744694828987,
-0.05127965658903122,
-0.029827523976564407,
-0.03409729152917862,
-0.04119012504816055,
0.026133058592677116,
0.014387504197657108,
0.0343141183257103,
0.006029604468494654,
-0.0038200118578970432,
0.03370044380426407,
-0.05714992433786392,
-0.015863969922065735,
0.021732721477746964,
0.03152117133140564,
0.02960977703332901,
0.03215332701802254,
0.0024555972777307034,
-0.06585780531167984,
0.0247958917170763,
0.0023736581206321716,
-0.008446120657026768,
-0.055812183767557144,
-0.03812661021947861,
-0.008233283646404743,
-0.0015953619731590152,
0.005822050850838423,
0.008158164098858833,
-0.05414228141307831,
0.02520923502743244,
0.026473302394151688,
-0.032402195036411285,
0.04532698914408684,
-0.010415619239211082,
-0.05709356442093849,
-0.03913801163434982,
0.009531978517770767,
0.014855839312076569,
-0.010753974318504333,
0.0027778218500316143,
-0.0050827995873987675,
0.04055812582373619,
0.04412957280874252,
0.01048507634550333,
0.027191419154405594,
-0.004910873714834452,
0.035294681787490845,
-0.008157018572092056,
0.004886200651526451,
-0.03429820388555527,
0.022402647882699966,
-0.030449731275439262,
-0.027612190693616867,
-0.009931880049407482,
0.047750845551490784,
-0.010186825878918171,
-0.017377395182847977,
-0.020521380007267,
0.021904651075601578,
-0.05522554740309715,
0.023886732757091522,
-0.02198612503707409,
-0.017823616042733192,
0.0684666782617569,
-0.009138527326285839,
0.014311899431049824,
-0.011241930536925793,
0.02140343189239502,
-0.012692761607468128,
0.04420152306556702,
-0.05449795350432396,
0.009950176812708378,
0.01781565696001053,
-0.010530971921980381,
0.01836099848151207,
0.01347111351788044,
0.031080685555934906,
0.03302731364965439,
-0.010646646842360497,
-0.03880900889635086,
-0.006970204412937164,
0.02634875290095806,
0.053499866276979446,
0.04201003536581993,
-0.014961902983486652,
0.010223914869129658,
-0.025507783517241478,
-0.020274581387639046,
-0.009037207812070847,
0.0009092589607462287,
-0.014415201731026173,
-0.014901007525622845,
-0.04187644645571709,
-0.05897895246744156,
0.042269542813301086,
0.017419131472706795,
0.0029373648576438427,
0.030532268807291985,
0.006008037365972996,
-0.003951709717512131,
-0.03106296993792057,
0.02683163806796074,
0.04877109080553055,
-0.06387675553560257,
-0.013427265919744968,
-0.013681492768228054,
0.006325616966933012,
0.008842933923006058,
0.008529557846486568,
-0.05720594525337219,
-0.033994391560554504,
-0.021660216152668,
0.03625354543328285,
-0.04369771108031273,
-0.04189131781458855,
-0.023224404081702232,
0.017383843660354614,
-0.0073847281746566296,
0.0018043011659756303,
-0.002551225945353508,
0.021727560088038445,
-0.026288075372576714,
-0.009546445682644844,
0.02736184187233448,
-0.028845567256212234,
-0.005184302106499672,
-0.0008749170228838921,
-0.02314452826976776,
0.021184921264648438,
-0.03154093772172928,
0.031750019639730453,
0.01674504019320011,
-0.027288855984807014,
-0.025786463171243668,
-0.03942429646849632,
0.021243302151560783,
-0.0023297357838600874,
0.051686909049749374,
0.01125604473054409,
-0.010249986313283443,
-0.034337118268013,
0.002590455813333392,
-0.031040983274579048,
0.008887740783393383,
-0.012415135279297829,
-0.01794295758008957,
0.024407479912042618,
0.03764715790748596,
0.017369655892252922,
0.03440866246819496,
-0.010665960609912872,
-0.03772949054837227,
0.043724142014980316,
-0.05871640890836716,
-0.046029381453990936,
-0.009380963630974293,
-0.055717483162879944,
0.000691721448674798,
0.003188623581081629,
0.016964953392744064,
-0.03582381457090378,
0.054024837911129,
0.04669849947094917,
0.01868768408894539,
0.040900129824876785,
0.02091306634247303,
0.034121278673410416,
-0.028109783306717873,
-0.008967708796262741,
-0.10033032298088074,
-0.000461971532786265,
0.04656944423913956,
-0.0054216873832046986,
0.0036915785167366266,
0.013955519534647465,
-0.03154325112700462,
0.007127332966774702,
-0.0673266276717186,
-0.03281799703836441,
0.03997648134827614,
-0.03711143136024475,
0.035169199109077454,
0.003213092451915145,
-0.055996134877204895,
0.0064240857027471066,
0.045669328421354294,
-0.048845138400793076,
-0.008344218134880066,
-0.025726813822984695,
0.06420774012804031,
-0.010002548806369305,
0.03784669190645218,
-0.0078959371894598,
-0.03558778390288353,
0.07750474661588669,
0.020809439942240715,
0.04171336069703102,
0.043585121631622314,
-0.025143854320049286,
0.03343367576599121,
0.02396494522690773,
-0.023452676832675934,
-0.013818320818245411,
0.03521392494440079,
-0.01775323785841465,
-0.046169962733983994,
0.00485600158572197,
0.026954567059874535,
-0.011020628735423088,
-0.04380819946527481,
0.08291666209697723,
0.008543575182557106,
-0.029219962656497955,
-0.04164344444870949,
0.040439099073410034,
-0.021271642297506332,
-0.0005922708660364151,
-0.03907826542854309,
-0.005397245287895203,
-0.0395667627453804,
0.043592941015958786,
-0.025299929082393646,
0.01005086861550808,
0.062448229640722275,
-0.020388105884194374,
0.006388011854141951,
-0.010957123711705208,
0.09196184575557709,
0.09858068823814392,
0.038991209119558334,
0.022298885509371758,
0.05288398265838623,
-0.010959713719785213,
-0.039417508989572525,
-0.013413980603218079,
-0.016571637243032455,
-0.019801847636699677,
0.002889245515689254,
-0.004907510709017515,
0.07592088729143143,
-0.02331724762916565,
0.08068999648094177,
-0.008310557343065739,
-0.022148655727505684,
-0.01589578576385975,
-0.0016769852954894304,
0.04860993102192879,
0.05463285371661186,
0.020087068900465965,
0.036051101982593536,
-0.022459939122200012,
-0.03721323609352112,
0.0672273188829422,
0.005612012930214405,
-0.03813385218381882,
0.039456143975257874,
-0.02373686246573925,
0.015639452263712883,
0.0037220532540231943,
0.05052337795495987,
0.07014349102973938,
-0.02207489125430584,
0.0052998000755906105,
0.0030353153124451637,
0.030316686257719994,
0.002209664089605212,
0.0344700813293457,
-0.035471055656671524,
-0.026222355663776398,
-0.013623936101794243,
-0.05480178818106651,
-0.02708861604332924,
-0.030900083482265472,
-0.032076507806777954,
0.014000419527292252,
-0.001978814136236906,
-0.01402282901108265,
0.021302716806530952,
0.00901881419122219,
-0.025981388986110687,
-0.05117715895175934,
-0.0275108702480793,
-0.06576657295227051,
-0.06588321924209595,
-0.00045948647311888635,
0.0067156339064240456,
-0.01219069305807352,
-0.015398519113659859,
0.0187354888767004,
-0.038860615342855453,
-0.02817811258137226,
0.05002722889184952,
-0.049367159605026245,
0.0006206376128830016,
0.007232446223497391,
0.015485256910324097,
0.019656632095575333,
0.0064462353475391865,
0.038167938590049744,
-0.0020127356983721256,
-0.005606472492218018,
-0.004867829382419586,
0.028560610488057137,
0.04174957424402237,
0.012550389394164085,
-0.005148278083652258,
-0.10212849825620651,
0.01983499340713024,
0.02294006757438183,
-0.03696030378341675,
-0.0882810652256012,
0.024887381121516228,
0.04219205304980278,
0.012333197519183159,
0.03419756889343262,
0.0028782531153410673,
-0.019932935014367104,
-0.042909760028123856,
0.010676479898393154,
-0.004384491126984358,
-0.016010114923119545,
0.05691586807370186,
-0.029064735397696495,
0.07952830940485,
0.0411367304623127,
-0.028635749593377113,
-0.03807070851325989,
-0.023400502279400826,
-0.0023971148766577244,
0.019823310896754265,
-0.037467118352651596,
-0.018801823258399963,
-0.031219372525811195,
-0.10154498368501663,
-0.025259800255298615,
0.01406064536422491,
-0.025353873148560524,
-0.021351460367441177,
0.018260344862937927,
0.011298131197690964,
-0.03298746421933174,
-0.00006385930464603007,
-0.027563607320189476,
0.03393024206161499,
-0.029448963701725006,
-0.02263113483786583,
-0.0244965348392725,
0.011752146296203136,
0.0005959583213552833,
0.013682170771062374,
0.014834202826023102,
-0.04487622529268265,
0.00005796601180918515,
-0.021976672112941742,
0.0221023578196764,
0.044098932296037674,
0.03709375113248825,
0.007665534969419241
] | [
-0.05580763891339302,
-0.024620316922664642,
-0.028693372383713722,
-0.042824432253837585,
0.06882604956626892,
-0.038340117782354355,
-0.02083471789956093,
0.01897554285824299,
0.030646588653326035,
-0.014630614779889584,
0.038615308701992035,
0.006296921521425247,
-0.0014264776837080717,
-0.008367802016437054,
0.03913094103336334,
-0.00353454053401947,
-0.022074729204177856,
-0.06932192295789719,
-0.027085479348897934,
0.05176568031311035,
-0.034321654587984085,
-0.06534474343061447,
-0.005738374311476946,
-0.05250905454158783,
-0.005211673676967621,
0.01334984228014946,
0.03979099541902542,
-0.047135159373283386,
-0.039464931935071945,
-0.23087605834007263,
-0.006316975690424442,
0.002665253123268485,
0.02160782180726528,
0.01140556950122118,
0.04049229621887207,
0.0018796923104673624,
0.06020466983318329,
-0.017042336985468864,
0.008057473227381706,
0.04289098083972931,
-0.004755641799420118,
0.014034228399395943,
-0.04582647979259491,
-0.007056497037410736,
0.00629735691472888,
0.006658096797764301,
-0.02671496383845806,
-0.0027117636054754257,
-0.004738933406770229,
0.03059745579957962,
-0.05832601711153984,
-0.008046425879001617,
-0.019035186618566513,
-0.011124075390398502,
0.003689902601763606,
0.0253609549254179,
0.050262853503227234,
0.05708649381995201,
0.00689909141510725,
0.04041009768843651,
0.020462486892938614,
0.00771421380341053,
-0.13859547674655914,
0.07298388332128525,
0.03598283976316452,
0.015762988477945328,
-0.06923519819974899,
-0.039303649216890335,
-0.028599394485354424,
0.07689686864614487,
-0.03214414045214653,
-0.01596805825829506,
-0.06385179609060287,
0.07934629172086716,
0.007702154107391834,
-0.0010089176939800382,
-0.013822606764733791,
0.039848193526268005,
0.013999798335134983,
-0.0403362475335598,
-0.051371194422245026,
0.015353841707110405,
-0.023742089048027992,
0.004467424005270004,
-0.07204116880893707,
0.02775575965642929,
-0.027544919401407242,
0.04447208344936371,
0.0025782398879528046,
0.02656051702797413,
0.04811524599790573,
0.005314587149769068,
0.06706628948450089,
0.021385211497545242,
-0.08865976333618164,
-0.025897914543747902,
0.0043111760169267654,
0.044443193823099136,
0.00845144409686327,
0.4077405631542206,
-0.009338021278381348,
-0.04649858921766281,
0.046919964253902435,
0.052935320883989334,
-0.0030437863897532225,
-0.00104630331043154,
0.021912749856710434,
-0.06548311561346054,
0.05598555505275726,
-0.009773596189916134,
0.01622467301785946,
-0.020564831793308258,
0.08037127554416656,
-0.08789893239736557,
0.05860612541437149,
0.027235137298703194,
0.05514220520853996,
-0.009492073208093643,
-0.04433438181877136,
0.009894028306007385,
0.01292264461517334,
0.014948902651667595,
0.04298069328069687,
-0.007677634246647358,
0.020181676372885704,
-0.013420428149402142,
0.03340164199471474,
0.06972953677177429,
0.03255666419863701,
-0.00819550734013319,
0.023954104632139206,
-0.001471741939894855,
-0.046240609139204025,
0.0531487800180912,
-0.0006225257529877126,
-0.010677332989871502,
0.031069861724972725,
-0.03242320567369461,
-0.0072384243831038475,
-0.006986561231315136,
-0.012800618074834347,
-0.02317315712571144,
-0.011721746996045113,
0.008079132996499538,
-0.03452519699931145,
0.11706539988517761,
0.019769228994846344,
-0.04660319536924362,
-0.018944311887025833,
-0.0401991605758667,
0.020213782787322998,
0.045347586274147034,
0.021749509498476982,
-0.08202946931123734,
-0.012599376030266285,
0.0013724390882998705,
0.08912736177444458,
0.0076507641933858395,
-0.11214228719472885,
-0.010433755815029144,
-0.0017412482993677258,
-0.01661493629217148,
-0.020161762833595276,
0.06545533239841461,
0.06218445673584938,
-0.06849417835474014,
-0.017703291028738022,
0.023892085999250412,
0.054225657135248184,
-0.06110110506415367,
0.017281295731663704,
-0.0021388446912169456,
-0.07479126006364822,
-0.014025771990418434,
0.037688858807086945,
-0.028714843094348907,
-0.04117344319820404,
0.014121904969215393,
0.033808499574661255,
0.005835560150444508,
-0.01603499799966812,
-0.011450933292508125,
-0.06544161587953568,
0.030796168372035027,
-0.07151947170495987,
-0.07225795835256577,
-0.07529422640800476,
0.028356142342090607,
-0.018125241622328758,
0.0022630293387919664,
-0.009770459495484829,
0.010405283421278,
-0.0382143035531044,
0.0605657696723938,
-0.029418805614113808,
-0.028565416112542152,
0.008201203308999538,
0.025508105754852295,
-0.03689317777752876,
-0.05294116586446762,
-0.00304259336553514,
-0.012720652855932713,
-0.04830991104245186,
0.01317948754876852,
-0.06746974587440491,
0.021048229187726974,
0.046424541622400284,
-0.044083014130592346,
0.08139818161725998,
0.03302140161395073,
-0.028656132519245148,
-0.008472796529531479,
-0.049217045307159424,
0.023537946864962578,
-0.007505180314183235,
-0.028092557564377785,
-0.006068029440939426,
-0.02506254054605961,
0.04956231266260147,
0.026931574568152428,
-0.04665623605251312,
-0.009919773787260056,
-0.029472902417182922,
-0.34661316871643066,
-0.039803314954042435,
-0.020121030509471893,
-0.005277630873024464,
-0.0038908522110432386,
-0.037481389939785004,
0.03871389850974083,
-0.004321515094488859,
0.002579547930508852,
0.043664153665304184,
0.032739441841840744,
-0.008296364918351173,
0.010880720801651478,
-0.08705184608697891,
0.00509568490087986,
0.03129421919584274,
-0.017559219151735306,
0.022641781717538834,
-0.013384654186666012,
0.04855641722679138,
0.016940243542194366,
-0.03681092709302902,
-0.04661638289690018,
-0.033269885927438736,
-0.026333723217248917,
-0.03366800397634506,
0.10858910530805588,
0.03856171295046806,
0.03745383396744728,
-0.03807502239942551,
0.04969722405076027,
0.023150505498051643,
-0.0024721105583012104,
-0.07345039397478104,
0.0029280129820108414,
-0.01500194426625967,
0.0029456443153321743,
0.018971163779497147,
-0.004435189068317413,
0.0018784062704071403,
-0.06950943917036057,
0.012204930186271667,
-0.037820104509592056,
-0.021139593794941902,
-0.015495850704610348,
0.01126489695161581,
-0.02960733324289322,
-0.037628721445798874,
0.010073046199977398,
0.07545988261699677,
-0.0021153052803128958,
0.01488781999796629,
0.007939799688756466,
0.014153886586427689,
0.02849608100950718,
-0.03928443416953087,
-0.05323423072695732,
0.0025559919886291027,
0.025218205526471138,
0.026038557291030884,
0.0015329420566558838,
0.032443881034851074,
0.019193999469280243,
-0.07050339132547379,
0.016532758250832558,
0.011680579744279385,
-0.00798935815691948,
0.004323962144553661,
0.013535470701754093,
-0.010850782506167889,
-0.03395505249500275,
0.09443171322345734,
-0.0031944746151566505,
0.011661477386951447,
0.004226870834827423,
0.04662643000483513,
0.005176124628633261,
-0.006763548124581575,
0.002824367256835103,
-0.014453224837779999,
0.05520963296294212,
-0.029165590181946754,
0.03996826335787773,
-0.023180680349469185,
0.013608344830572605,
0.03963351249694824,
0.0185711607336998,
-0.028390221297740936,
0.08488336205482483,
0.012750030495226383,
0.006563556380569935,
-0.00708621134981513,
-0.03314986079931259,
-0.05894289165735245,
0.06997764855623245,
-0.012498949654400349,
-0.27342742681503296,
0.026859233155846596,
0.020099615678191185,
0.05680758133530617,
0.010950135067105293,
0.014260723255574703,
0.01629132404923439,
-0.013808184303343296,
0.04721542447805405,
0.025242337957024574,
0.06139948219060898,
0.041741929948329926,
-0.004350102506577969,
-0.00021684147941414267,
-0.009579097852110863,
0.007561898790299892,
0.04835890606045723,
0.03472775220870972,
0.044980671256780624,
0.02818918228149414,
0.00042491123895160854,
-0.025530200451612473,
0.17130254209041595,
0.04458949342370033,
-0.006146685220301151,
0.03523831069469452,
-0.015614460222423077,
0.030551820993423462,
0.04090123251080513,
0.011697807349264622,
-0.025791164487600327,
0.006103300489485264,
-0.004533297847956419,
0.0390646792948246,
0.02777416631579399,
-0.04353943467140198,
-0.02489950880408287,
0.04878328740596771,
0.03719143196940422,
-0.022692415863275528,
-0.03495592623949051,
0.006307086441665888,
-0.032582104206085205,
0.03931025043129921,
0.0553184375166893,
0.0028965233359485865,
0.00968923419713974,
-0.03820619732141495,
-0.05587395280599594,
0.009486207738518715,
-0.039955656975507736,
-0.05262575298547745,
-0.004828081000596285,
-0.024360788986086845,
0.016452865675091743,
0.09047067910432816,
0.012514634057879448,
-0.003991545643657446,
0.0278659388422966,
-0.00014722248306497931,
-0.03230760246515274,
-0.07316705584526062,
0.09881138801574707,
0.017184076830744743,
0.00032948364969342947
] | [
0.016085762530565262,
0.04520931839942932,
-0.03128253296017647,
0.026222344487905502,
-0.029393520206212997,
0.022378630936145782,
-0.008200635202229023,
0.0023262030445039272,
-0.00972758885473013,
-0.0053835841827094555,
-0.05059737712144852,
-0.0018250633729621768,
0.06286824494600296,
-0.005046532955020666,
-0.006861499045044184,
0.010909516364336014,
-0.014047877863049507,
0.011608199216425419,
0.027741730213165283,
-0.0033030505292117596,
-0.029459021985530853,
-0.02450568601489067,
0.018364757299423218,
-0.020218700170516968,
-0.029258795082569122,
0.029822058975696564,
-0.029976259917020798,
-0.02874227985739708,
-0.0029672335367649794,
-0.11604190617799759,
-0.04450181499123573,
-0.007086572702974081,
-0.027095437049865723,
0.036409128457307816,
0.004849246237426996,
-0.01058866735547781,
0.024532116949558258,
0.06019672751426697,
-0.00985507108271122,
0.054296594113111496,
0.011408301070332527,
0.02022860199213028,
0.012514643371105194,
0.019729338586330414,
-0.002361900405958295,
-0.00900250393897295,
-0.04905052110552788,
-0.0104423388838768,
0.014792184345424175,
0.0015734999906271696,
-0.051327627152204514,
0.019311273470520973,
-0.0019472740823403,
-0.0048161703161895275,
-0.0025765567552298307,
-0.011912859976291656,
0.0008016829378902912,
-0.027050236240029335,
-0.0025636600330471992,
-0.005145130213350058,
0.02497718669474125,
-0.0026817326433956623,
-0.05838629975914955,
-0.01952846348285675,
-0.028794417157769203,
-0.0223084706813097,
-0.02924528531730175,
0.018363378942012787,
-0.0006263381219469011,
0.009532961994409561,
-0.04811789095401764,
0.04664665833115578,
-0.0677713006734848,
-0.02652222476899624,
-0.012777920812368393,
-0.0042368583381175995,
0.019028084352612495,
-0.03270786255598068,
0.007515233475714922,
0.0011364356614649296,
-0.043264538049697876,
0.008582192473113537,
0.01200045645236969,
-0.03681120648980141,
-0.028461406007409096,
0.010226914659142494,
-0.0021131974644958973,
0.00446668267250061,
-0.0038166081067174673,
0.03074362874031067,
-0.011498420499265194,
0.009293819777667522,
0.0021316215861588717,
0.00385902333073318,
-0.11133971810340881,
0.019902467727661133,
0.019321750849485397,
0.012760949321091175,
0.016387518495321274,
0.8349020481109619,
0.01594482734799385,
0.0178651325404644,
0.0038619956467300653,
0.008207183331251144,
-0.012650160118937492,
0.011780484579503536,
0.032466210424900055,
0.0129387890920043,
-0.00713714025914669,
-0.0451873354613781,
0.013750827871263027,
0.0026088447775691748,
0.017039109021425247,
-0.009799019433557987,
0.013212455436587334,
0.06700136512517929,
-0.004941385705024004,
0.01206224039196968,
-0.010269314050674438,
0.010911528952419758,
0.007708708755671978,
0.013874388299882412,
0.0005897826631553471,
0.02230186201632023,
0.020210377871990204,
-0.16748782992362976,
0.005863253492861986,
-7.447389275356728e-33,
0.03422018140554428,
-0.0211652722209692,
0.03490249440073967,
-0.0013556161429733038,
0.02300511859357357,
0.0049973237328231335,
-0.033396296203136444,
0.036819107830524445,
-0.013639640994369984,
-0.0179872028529644,
-0.0029082123655825853,
-0.013509702868759632,
0.011233571916818619,
-0.032475292682647705,
0.026687463745474815,
-0.005877552088350058,
0.00902654230594635,
0.0053894249722361565,
-0.0043477765284478664,
-0.0387868769466877,
-0.0018323493422940373,
0.0530720092356205,
0.007130707614123821,
0.0514175184071064,
0.016367197036743164,
0.05277435481548309,
-0.01093344483524561,
0.023651277646422386,
-0.0034775363747030497,
-0.04891727492213249,
-0.029713332653045654,
0.03670402988791466,
-0.023681780323386192,
-0.036060187965631485,
0.021779917180538177,
-0.0533403605222702,
-0.023897685110569,
-0.009074408560991287,
-0.017341161146759987,
-0.056647203862667084,
-0.0420578196644783,
0.025232534855604172,
-0.020293964073061943,
-0.018374599516391754,
-0.018119292333722115,
-0.009675778448581696,
0.014273052103817463,
0.022713463753461838,
-0.02185751311480999,
-0.002877109218388796,
0.020207058638334274,
0.024186303839087486,
0.02221543714404106,
0.004723042715340853,
-0.028782200068235397,
0.020112616941332817,
0.03025505505502224,
0.004759369883686304,
0.01577065698802471,
0.05425968021154404,
0.050856590270996094,
-0.017201654613018036,
-0.016574745997786522,
0.05673649162054062,
0.04875296354293823,
0.00829262938350439,
0.03757583349943161,
0.0031681733671575785,
0.022996485233306885,
0.014500792138278484,
-0.028098903596401215,
0.03454555198550224,
-0.004360465332865715,
-0.029622051864862442,
0.012532192282378674,
-0.020971743389964104,
-0.015293389558792114,
-0.008000741712749004,
0.030891500413417816,
0.03484451770782471,
-0.006154112983494997,
-0.0095825819298625,
-0.014976214617490768,
-0.03534270077943802,
-0.03124452754855156,
0.004974353592842817,
0.02797086164355278,
0.00672715250402689,
0.003183517837896943,
0.017527559772133827,
0.03441093489527702,
0.02566058747470379,
-0.0065809679217636585,
-0.03389447554945946,
-0.026377765461802483,
6.929467199068397e-33,
-0.0009381984709762037,
-0.0011295884614810348,
-0.0051675704307854176,
-0.006085100118070841,
0.021164432168006897,
0.015941232442855835,
0.018525050953030586,
-0.020027581602334976,
-0.02829684503376484,
0.042391709983348846,
-0.011889321729540825,
-0.011226297356188297,
0.01339036226272583,
0.03581807762384415,
0.05475527420639992,
0.01228745374828577,
0.0006906281923875213,
-0.01843411475419998,
-0.030304240062832832,
0.019963396713137627,
-0.020060190930962563,
0.015982208773493767,
-0.009568780660629272,
0.007174222730100155,
0.05463581904768944,
0.0014080946566537023,
-0.0021752368193119764,
0.0048425761051476,
0.001138998311944306,
0.022900613024830818,
-0.015525844879448414,
-0.020108910277485847,
-0.03133929520845413,
-0.012586207129061222,
-0.01537537481635809,
0.015104418620467186,
0.018549282103776932,
0.01808083988726139,
0.030273012816905975,
-0.005686519667506218,
0.023945987224578857,
0.021560218185186386,
-0.04622351750731468,
0.036192163825035095,
0.03695590794086456,
0.052954528480768204,
-0.022014616057276726,
0.04688526690006256,
-0.018051309511065483,
0.017776552587747574,
-0.02302781492471695,
0.008583485148847103,
-0.01017816737294197,
-0.004319425206631422,
0.0249989815056324,
-0.03520943224430084,
-0.02117207460105419,
0.009395758621394634,
-0.0003641413350123912,
-0.019269244745373726,
-0.04707229509949684,
0.015172009356319904,
-0.06103912740945816,
0.04231998696923256,
-0.008004659786820412,
0.00323569611646235,
-0.04473437741398811,
0.00025599179207347333,
-0.007613528054207563,
-0.029913466423749924,
0.0019522488582879305,
-0.02669477090239525,
-0.025487493723630905,
0.028601540252566338,
-0.011402261443436146,
-0.004821065813302994,
-0.029003465548157692,
0.0024540608283132315,
-0.04120458662509918,
0.042287714779376984,
0.019384365528821945,
-0.0008277851738967001,
0.03327163681387901,
0.0006355881341733038,
0.00514203729107976,
0.03559822589159012,
-0.0035043267998844385,
0.013995060697197914,
-0.0035867190454155207,
0.0240072850137949,
0.011332101188600063,
-0.032971203327178955,
0.0011139228008687496,
0.032147765159606934,
-0.03944770619273186,
-1.2719207020950307e-8,
-0.040403787046670914,
0.0014924778370186687,
0.0012118356535211205,
-0.03531563654541969,
0.029257504269480705,
0.021202364936470985,
-0.02183482237160206,
0.003100442932918668,
-0.025940539315342903,
0.04127347469329834,
0.029426321387290955,
-0.037513263523578644,
0.02200215682387352,
0.026818398386240005,
0.008739795535802841,
-0.04874711483716965,
0.01010273490101099,
-0.0323169082403183,
0.019552618265151978,
0.008362661115825176,
0.003545035608112812,
0.032876189798116684,
-0.0247513297945261,
0.02991507574915886,
-0.0014806659892201424,
-0.007040389347821474,
0.019336989149451256,
-0.06980601698160172,
0.00037470649112947285,
-0.019377674907445908,
-0.00252228369936347,
-0.01719098724424839,
-0.02786540985107422,
-0.019581535831093788,
-0.02537093125283718,
-0.04087380692362785,
0.0355243980884552,
0.032695524394512177,
0.03308694809675217,
0.012061706744134426,
-0.018923750147223473,
-0.018909165635704994,
-0.03282879292964935,
-0.022508529946208,
-0.021782152354717255,
-0.001238653901964426,
-0.05284713953733444,
-0.02816513180732727,
0.01545702014118433,
-0.05706603080034256,
-0.011171589605510235,
-0.017675058916211128,
0.02491968870162964,
0.02413124218583107,
0.036237459629774094,
0.01177412923425436,
0.005527971312403679,
0.007552425842732191,
-0.005039466544985771,
-0.021319249644875526,
0.02060777321457863,
0.0050588385201990604,
-0.018319489434361458,
-0.03092549741268158
] | neo4j-using-load-csv-to-help-explore-csv-files | https://markhneedham.com/blog/2015/06/11/neo4j-using-load-csv-to-help-explore-csv-files |
false | 2015-06-11 21:38:32 | Mac OS X: GNU sed - Hex string replacement / replacing new line characters | [
"unix"
] | [
"Shell Scripting"
] | Recently I was working with a CSV file which contained both Windows and Unix line endings which was making it difficult to work with.
The actual line endings were HEX '0A0D' i.e. Windows line breaks but there were also HEX 'OA' i.e. Unix line breaks within one of the columns.
I wanted to get rid of the Unix line breaks and discovered that you can do http://stackoverflow.com/questions/7760717/hex-string-replacement-using-sed[HEX sequence replacement using the GNU version of sed] - unfortunately the Mac ships with the BSD version which doesn't have this functionaltiy.
The first step was therefore to install the GNU version of sed.
[source,bash]
----
brew install coreutils
brew install gnu-sed --with-default-names
----
I wanted to replace my system sed so that's why I went with the '--with-default-names' flag - without that flag I believe the sed installation would be accessible as 'gs-sed'.
The following is an example of what the lines in the file look like:
[source,bash]
----
$ echo -e "Hello\x0AMark\x0A\x0D"
Hello
Mark
----
We want to get rid of the new line in between 'Hello' and 'Mark' but leave the other one be. I adapted one of the commands from http://backreference.org/2009/12/23/how-to-match-newlines-in-sed/[this tutorial] to look for lines which end in '0A' where that isn't followed by a '0D':
[source,bash]
----
$ echo -e "Hello\x0AMark\x0A\x0D" | \
sed 'N;/\x0A[^\x0D]/s/\n/ /'
Hello Mark
----
Let's go through the parts of the sed command:
* +++<cite>+++N+++</cite>+++ - this creates a multiline pattern space by reading a new line of input and appending it to the contents of the pattern space. The two lines are separated by a new line.
* +++<cite>+++/\x0A[{caret}\x0D]/+++</cite>+++ - this matches any lines which contain 'OA' not followed by 'OD'
* +++<cite>+++/s/\n/ /+++</cite>+++ - this substitutes the new line character with a space for those matching lines from the previous command.
Now let's check it works if we have multiple lines that we want to squash:
[source,bash]
----
$ echo -e "Hello\x0AMark\x0A\x0DHello\x0AMichael\x0A\x0D"
Hello
Mark
Hello
Michael
$ echo -e "Hello\x0AMark\x0A\x0DHello\x0AMichael\x0A\x0D" | \
sed 'N;/\x0A[^\x0D]/s/\n/ /'
Hello Mark
Hello Michael
----
Looks good! The actual file is a bit more nuanced so I've still got a bit more work to do but this is a good start. | null | null | [
-0.029434312134981155,
0.019838934764266014,
-0.02542688511312008,
0.0332135409116745,
0.11212652176618576,
0.03234504535794258,
-0.0032015384640544653,
0.05627848207950592,
0.01478483434766531,
-0.0307140052318573,
-0.030919989570975304,
-0.00557335140183568,
-0.06131606176495552,
-0.006701082922518253,
-0.0026814336888492107,
0.0444830022752285,
0.06473147869110107,
0.007801119238138199,
0.009898048825562,
-0.00041594303911551833,
0.03595605120062828,
0.04607584327459335,
0.0076304166577756405,
0.022021042183041573,
0.0212077759206295,
-0.03093584254384041,
-0.021835995838046074,
-0.0022910218685865402,
-0.0797843411564827,
0.02449527569115162,
0.05019580200314522,
0.0068182130344212055,
-0.009718508459627628,
-0.03190789744257927,
0.0348723866045475,
-0.004166606348007917,
-0.04046883061528206,
0.022056616842746735,
0.008206748403608799,
0.009324228391051292,
-0.0814136192202568,
0.03621350973844528,
-0.013077049516141415,
0.018799422308802605,
-0.03234834596514702,
0.010311199352145195,
-0.04902686923742294,
0.005140727385878563,
-0.029592687264084816,
0.0071961889043450356,
-0.05847307667136192,
0.019754668697714806,
-0.011884202249348164,
-0.05769875645637512,
0.018698109313845634,
0.05071075260639191,
0.017553746700286865,
-0.04171338304877281,
0.023745227605104446,
0.0025881449691951275,
-0.0016395292477682233,
-0.02149162068963051,
0.008146528154611588,
0.043325863778591156,
0.018959417939186096,
-0.03846006840467453,
-0.015216749161481857,
0.024699969217181206,
-0.04779516160488129,
-0.018010782077908516,
0.023426467552781105,
0.015219363383948803,
-0.05226554349064827,
-0.03552081063389778,
0.05298847332596779,
-0.0216179508715868,
-0.022934984415769577,
0.022020893171429634,
0.022227460518479347,
0.052489932626485825,
-0.03585149720311165,
0.03269815444946289,
0.007923408411443233,
-0.0020148276817053556,
-0.00716184638440609,
-0.02844724804162979,
-0.009038389660418034,
-0.020182274281978607,
-0.06345302611589432,
0.0453609935939312,
0.040613990277051926,
-0.05848810076713562,
0.003979741130024195,
0.031106512993574142,
-0.02291126735508442,
0.009592505171895027,
0.00398352462798357,
0.0236203670501709,
0.020177053287625313,
-0.028800295665860176,
-0.061617977917194366,
-0.004591943696141243,
0.010106022469699383,
0.039193153381347656,
-0.08596310019493103,
-0.013624182902276516,
-0.012900039553642273,
0.003568449756130576,
0.031457412987947464,
-0.016676880419254303,
-0.004890629556030035,
-0.0009582890779711306,
0.016620900481939316,
-0.0030812707263976336,
-0.08203832060098648,
0.0694335475564003,
0.003873988054692745,
-0.05285324528813362,
0.024854300543665886,
0.003020812291651964,
0.023985913023352623,
0.05575422942638397,
0.009146307595074177,
0.08093547075986862,
0.01770234853029251,
0.014817391522228718,
-0.03139454498887062,
0.06170813366770744,
-0.047590333968400955,
-0.09626748412847519,
-0.036565907299518585,
0.06981456279754639,
-0.011786716990172863,
0.010514429770410061,
0.0070096468552947044,
0.0005191991222091019,
-0.0012507680803537369,
-0.03448391705751419,
0.04352986812591553,
0.021401645615696907,
-0.0019114859169349074,
-0.02437880076467991,
-0.007481180131435394,
-0.01886405050754547,
0.030142948031425476,
-0.007409694604575634,
-0.02960994467139244,
-0.052848052233457565,
-0.046798523515462875,
0.022083885967731476,
0.046267230063676834,
0.011087942868471146,
0.07154164463281631,
-0.008274346590042114,
0.0005169131909497082,
0.09006361663341522,
0.0039045007433742285,
0.017873156815767288,
-0.04320905730128288,
-0.0074323308654129505,
0.04005720093846321,
0.04873214289546013,
0.016763649880886078,
0.05734012648463249,
0.0074839903973042965,
0.008964871056377888,
-0.0034684163983911276,
0.01948196068406105,
-0.03965150937438011,
0.016863811761140823,
-0.0343947634100914,
-0.06797764450311661,
0.047201186418533325,
-0.053882017731666565,
0.037210095673799515,
0.019170371815562248,
0.10049483180046082,
0.07013347744941711,
0.03825443610548973,
0.03191192448139191,
-0.0816890150308609,
0.05666307732462883,
0.003392282407730818,
0.05582914873957634,
0.030179377645254135,
-0.007555642630904913,
0.04367035627365112,
0.015565840527415276,
0.020634878426790237,
0.009564108215272427,
-0.09782538563013077,
-0.061077460646629333,
-0.02076941542327404,
0.00025262904819101095,
0.05308404564857483,
-0.03388819471001625,
-0.037968959659338,
0.033285267651081085,
0.011445640586316586,
0.05136168375611305,
-0.022705303505063057,
0.01605815999209881,
0.02971382439136505,
-0.06315875798463821,
-0.04309820011258125,
0.03534882515668869,
0.028774749487638474,
-0.024549055844545364,
-0.02337440475821495,
0.019658006727695465,
-0.009272372350096703,
0.01843145675957203,
0.04243011027574539,
-0.001712304656393826,
0.0572417750954628,
0.02836371771991253,
0.021576840430498123,
-0.03433071821928024,
0.039022047072649,
-0.0568191260099411,
-0.014894693158566952,
-0.00018584856297820807,
-0.028433457016944885,
-0.019714578986167908,
-0.01471510250121355,
0.1159839779138565,
0.05650924891233444,
-0.009761502966284752,
-0.04571155458688736,
0.016573425382375717,
0.0032905982807278633,
-0.05496472492814064,
0.007224736735224724,
-0.0014003192773088813,
0.0018763261614367366,
0.020517708733677864,
-0.02580511011183262,
-0.02264953777194023,
0.023201508447527885,
-0.016326474025845528,
-0.013384757563471794,
0.05323129519820213,
-0.024616757407784462,
0.06179497390985489,
0.0012631192803382874,
-0.03595461696386337,
0.03377086669206619,
-0.027392275631427765,
-0.09046642482280731,
-0.010462615638971329,
0.033285874873399734,
0.004554104059934616,
0.05170798301696777,
-0.07537171989679337,
-0.04338037595152855,
-0.005592723842710257,
-0.08039899170398712,
0.014805425889790058,
0.025450577959418297,
0.039010170847177505,
-0.05191027745604515,
0.033751361072063446,
-0.011449236422777176,
0.021732255816459656,
-0.027077311649918556,
-0.032573845237493515,
-0.04635945335030556,
0.011003805324435234,
-0.00866561010479927,
-0.015666024759411812,
-0.0162478219717741,
0.049283724278211594,
0.0072762384079396725,
-0.011162680573761463,
0.01148851029574871,
-0.02031092904508114,
0.04154319688677788,
0.007345947902649641,
-0.021070070564746857,
-0.025941254571080208,
0.01062866672873497,
0.062448903918266296,
-0.04066916182637215,
-0.001892008469440043,
0.0010602754773572087,
-0.046331536024808884,
0.040668148547410965,
-0.05712730810046196,
-0.045243069529533386,
-0.027849746868014336,
0.012370885349810123,
0.03159648925065994,
-0.015704400837421417,
0.010119431652128696,
0.04371320828795433,
0.03186608478426933,
0.028851961717009544,
0.028905969113111496,
0.026801303029060364,
0.06920966506004333,
0.027919527143239975,
0.015071635134518147,
0.05267661437392235,
-0.02910505421459675,
-0.020330479368567467,
-0.021093910560011864,
0.0014797491021454334,
-0.029129134491086006,
-0.25636088848114014,
0.05171855539083481,
-0.025735700502991676,
-0.05448667332530022,
0.028067240491509438,
-0.031068924814462662,
0.025476790964603424,
-0.043811555951833725,
-0.03379403427243233,
-0.002326440066099167,
-0.035972319543361664,
-0.0370684377849102,
0.00232274760492146,
-0.00483706034719944,
-0.015211052261292934,
0.00324648548848927,
0.039035435765981674,
-0.06587281823158264,
0.02796606346964836,
0.04359493777155876,
0.009041335433721542,
-0.03442005813121796,
0.03399379178881645,
0.046748943626880646,
0.02405179850757122,
0.05136856064200401,
-0.0910368412733078,
0.05222660303115845,
-0.043116554617881775,
-0.03994438052177429,
0.0075595020316541195,
-0.03014596737921238,
-0.006509166210889816,
0.02797166258096695,
-0.015447648242115974,
-0.01656685397028923,
0.02157410979270935,
-0.014451203867793083,
0.021140258759260178,
0.025863325223326683,
-0.00797154288738966,
-0.018538454547524452,
0.006193833891302347,
-0.017362823709845543,
0.055903855711221695,
-0.019367551431059837,
-0.041175637394189835,
-0.01436033844947815,
-0.014167482033371925,
0.08260367810726166,
-0.027582522481679916,
-0.01419516745954752,
-0.012936897575855255,
0.024890538305044174,
0.004861324559897184,
0.00638659717515111,
-0.021119950339198112,
-0.014749995432794094,
-0.02777000330388546,
-0.033978283405303955,
-0.00880467426031828,
-0.06474620848894119,
-0.009412706829607487,
-0.050033088773489,
0.004003779496997595,
-0.058857254683971405,
-0.07475118339061737,
-0.018655143678188324,
0.07827506214380264,
0.04589679837226868,
-0.013784259557723999,
0.00945738423615694,
0.021904630586504936,
-0.10067864507436752,
-0.010869680903851986,
-0.036412693560123444,
-0.047392357140779495,
-0.03289047256112099,
-0.01249668374657631,
0.02690565586090088,
-0.027911897748708725,
-0.015549616888165474,
0.023646695539355278,
0.011203973554074764,
0.030894096940755844,
-0.030461059883236885,
0.003966306336224079,
-0.0028583179228007793,
-0.04093477502465248,
-0.014847400598227978,
0.038856010884046555,
-0.034192852675914764,
-0.0348619781434536,
-0.015575816854834557,
-0.018599992617964745,
0.009820015169680119,
-0.0013787563657388091,
0.004422696772962809,
0.01963849738240242,
-0.0008425058331340551,
0.044300928711891174,
-0.034168943762779236,
0.014374823309481144,
-0.05641226842999458,
-0.028576208278536797,
-0.001795765245333314,
-0.04667774960398674,
0.011157052591443062,
0.019743965938687325,
0.03175922855734825,
-0.014530910179018974,
-0.05138251557946205,
0.02400345355272293,
-0.07071482390165329,
-0.03210769221186638,
-0.01750459335744381,
0.014977208338677883,
0.006303074769675732,
0.05742895230650902,
-0.017740445211529732,
0.007119297981262207,
0.00901517178863287,
-0.016078634187579155,
-0.019373593851923943,
-0.05023987963795662,
-0.030338536947965622,
0.014117860235273838,
0.02925233729183674,
0.003630826249718666,
0.00032343051861971617,
-0.02996714413166046,
0.019378988072276115,
0.04163455218076706,
-0.031693488359451294,
0.04107503965497017,
0.0016957646002992988,
-0.04958735778927803,
-0.013680696487426758,
-0.022330693900585175,
0.021887557581067085,
-0.03187912330031395,
0.012053297832608223,
0.023185523226857185,
0.032391902059316635,
0.043693386018276215,
0.026406388729810715,
0.04614056274294853,
-0.030933111906051636,
0.021968822926282883,
0.0277542844414711,
-0.002709608059376478,
-0.033616919070482254,
-0.004253866616636515,
-0.0036872553173452616,
-0.029575001448392868,
-0.01930575631558895,
0.04037494584918022,
-0.00653529679402709,
-0.018368573859333992,
-0.03453785926103592,
0.035934362560510635,
-0.04601408168673515,
-0.011388062499463558,
-0.0073015121743083,
-0.01882765255868435,
0.051826413720846176,
0.00706695718690753,
0.03688100352883339,
-0.010433071292936802,
-0.0014549868647009134,
0.000647139095235616,
0.045770321041345596,
-0.04001649469137192,
-0.001125930342823267,
-0.010718128643929958,
-0.005664951633661985,
0.037227924913167953,
0.03454924374818802,
0.04496263340115547,
0.017271924763917923,
0.014140021055936813,
-0.006895413156598806,
0.03281152993440628,
0.022182047367095947,
0.03750617802143097,
0.0018726944690570235,
-0.013244139961898327,
0.017762718722224236,
-0.030637316405773163,
-0.03860380873084068,
-0.009986309334635735,
-0.0034598596394062042,
-0.03226109594106674,
-0.003965546377003193,
-0.05297250300645828,
-0.06898774951696396,
0.008606732822954655,
0.034800514578819275,
0.01500103808939457,
0.011328615248203278,
-0.0063245827332139015,
0.004481455776840448,
-0.0331510566174984,
0.030445275828242302,
0.04876537621021271,
-0.04622437059879303,
-0.004671784117817879,
-0.014807186089456081,
-0.02293207310140133,
0.008277753368020058,
0.03303917497396469,
-0.06697804480791092,
-0.008352916687726974,
-0.016020890325307846,
0.04299376904964447,
-0.00869251973927021,
-0.017279066145420074,
-0.019241759553551674,
0.008036426268517971,
-0.01635131798684597,
0.009484998881816864,
-0.016762349754571915,
0.03926319628953934,
0.023796850815415382,
-0.008946298621594906,
0.009948617778718472,
-0.021961141377687454,
-0.010377539321780205,
0.05017593502998352,
-0.00662102410569787,
0.04654330387711525,
-0.013604888692498207,
0.04980209842324257,
0.020330702885985374,
-0.008909805677831173,
-0.008205384016036987,
-0.045914385467767715,
-0.027800407260656357,
-0.012939142063260078,
0.030544279143214226,
0.014968457631766796,
-0.019243156537413597,
-0.04622068256139755,
0.012189323082566261,
-0.04053904488682747,
0.006400213111191988,
-0.009449279867112637,
-0.02371160127222538,
0.01116849947720766,
0.07130321115255356,
-0.0008450069581158459,
0.033565495163202286,
0.002644095104187727,
-0.05806025490164757,
0.0501062273979187,
-0.050008464604616165,
-0.05327717214822769,
0.005269470624625683,
-0.07140431553125381,
0.044204141944646835,
0.032516904175281525,
0.045958928763866425,
-0.07091709971427917,
0.011530734598636627,
0.05321987718343735,
0.0008939669351093471,
0.027635635808110237,
0.014416422694921494,
0.042540453374385834,
-0.018804628401994705,
-0.03488412871956825,
-0.08641153573989868,
0.016546031460165977,
0.047248344868421555,
-0.0054909600876271725,
-0.03070511482656002,
0.004738332238048315,
-0.007842729799449444,
0.0007996794302016497,
-0.018981246277689934,
-0.04855796694755554,
0.03676019236445427,
0.00924144871532917,
0.01632867008447647,
0.028277913108468056,
-0.04363132640719414,
0.045387085527181625,
0.024623846635222435,
-0.036947332322597504,
-0.03719817474484444,
-0.02887958288192749,
0.0673692598938942,
0.017807548865675926,
0.06685040146112442,
-0.01327859703451395,
-0.0287245512008667,
0.06699448078870773,
0.036695465445518494,
0.016797956079244614,
0.02176559530198574,
-0.019162986427545547,
0.03910878300666809,
0.012821217998862267,
-0.0017367349937558174,
0.004614652134478092,
0.006418719422072172,
-0.02260979451239109,
-0.022406339645385742,
0.008130575530230999,
0.005254327319562435,
0.006977505516260862,
-0.02684858813881874,
0.05639951303601265,
-0.0003534622665029019,
-0.009551020339131355,
-0.050986625254154205,
0.003340418916195631,
-0.030840232968330383,
0.02714630588889122,
-0.04390350356698036,
0.03489111363887787,
-0.05234510451555252,
0.04227464646100998,
-0.012617647647857666,
0.0015485994517803192,
0.0651557669043541,
0.012397735379636288,
0.011259416118264198,
0.00004040761268697679,
0.07167952507734299,
0.07873515784740448,
0.033428799360990524,
0.03792456537485123,
0.04035906121134758,
-0.04835004359483719,
-0.0397251732647419,
0.01365138404071331,
0.007667530793696642,
-0.008600185625255108,
-0.03275568038225174,
0.0019121550722047687,
0.06535601615905762,
-0.02768932841718197,
0.07224441319704056,
0.022876130416989326,
-0.01498411875218153,
-0.018434058874845505,
0.005965924356132746,
0.050775568932294846,
0.01680123805999756,
-0.004769064486026764,
0.023370346054434776,
-0.00011089854524470866,
-0.018636900931596756,
0.03234492614865303,
-0.008899335749447346,
-0.03443440794944763,
-0.004472759552299976,
0.005130671430379152,
0.0032788945827633142,
0.0077438573352992535,
0.04327959567308426,
0.07954245060682297,
-0.03105633333325386,
0.0008978340192697942,
0.004216237924993038,
0.027281785383820534,
-0.011779756285250187,
0.013192538172006607,
-0.02481863647699356,
-0.04329025745391846,
-0.020161651074886322,
-0.016486916691064835,
-0.012440834194421768,
-0.010822810232639313,
-0.022776400670409203,
0.012331482954323292,
-0.01762361079454422,
-0.009031260386109352,
0.04282751679420471,
0.008047902956604958,
-0.03318880870938301,
-0.051248617470264435,
-0.06864386051893234,
-0.049436748027801514,
-0.03686773404479027,
-0.03981303423643112,
-0.01725495420396328,
0.00784340500831604,
-0.03747215121984482,
-0.014181585051119328,
-0.06344559788703918,
-0.0401993989944458,
-0.01661638356745243,
-0.06939179450273514,
-0.014241882599890232,
-0.007154986262321472,
0.0445324070751667,
0.001434564939700067,
0.016383981332182884,
0.03751998022198677,
-0.023470569401979446,
-0.0005323109216988087,
-0.0038430809509009123,
-0.004089239984750748,
0.037725165486335754,
-0.006897421088069677,
0.03309132531285286,
-0.08314123004674911,
0.06572546809911728,
0.022775249555706978,
0.008450415916740894,
-0.08362816274166107,
0.04990662261843681,
0.00438286829739809,
-0.04979236423969269,
0.0429731123149395,
-0.026624638587236404,
0.009843346662819386,
-0.01843847706913948,
-0.00954410433769226,
-0.020148687064647675,
-0.005617090035229921,
0.03499896079301834,
-0.009920514188706875,
0.07598469406366348,
0.024368800222873688,
0.019156981259584427,
-0.02801598235964775,
0.021372266113758087,
0.004352587275207043,
0.025199517607688904,
-0.019831575453281403,
-0.01568540744483471,
-0.010842728428542614,
-0.07332530617713928,
-0.013260201551020145,
0.008476808667182922,
-0.03853100165724754,
-0.05836891010403633,
0.018141595646739006,
0.015631763264536858,
-0.07206734269857407,
0.03889371454715729,
-0.048679057508707047,
-0.029444139450788498,
-0.017411941662430763,
-0.04232501983642578,
0.0052255564369261265,
0.03733585402369499,
0.01386564876884222,
0.01655428670346737,
0.03267858177423477,
-0.010587652213871479,
-0.016873812302947044,
-0.015293344855308533,
0.013447798788547516,
0.06770479679107666,
0.0067693572491407394,
0.013378212228417397
] | [
-0.08816540986299515,
-0.019025005400180817,
0.030446773394942284,
-0.06483905017375946,
0.06140865758061409,
-0.08255938440561295,
-0.03391672298312187,
-0.005284992512315512,
0.013343112543225288,
-0.0023641963489353657,
0.014074135571718216,
-0.02345743216574192,
0.019306320697069168,
-0.04531647264957428,
0.055491965264081955,
-0.018209684640169144,
-0.039242878556251526,
-0.006864314433187246,
-0.03998452052474022,
0.0585998073220253,
-0.02327677607536316,
-0.01708598993718624,
-0.04294415935873985,
-0.05337787792086601,
0.02047247439622879,
0.03983904793858528,
0.037129830569028854,
-0.016724003478884697,
-0.01707088015973568,
-0.23993678390979767,
0.00967311393469572,
0.0076926834881305695,
0.03387266397476196,
-0.017686685547232628,
0.038057271391153336,
0.020811494439840317,
0.0372641496360302,
-0.008803674019873142,
-0.01914733089506626,
0.024361608549952507,
0.04577125608921051,
0.016505643725395203,
-0.05687912181019783,
0.009322799742221832,
0.018629521131515503,
0.00024237044272013009,
-0.02421289123594761,
-0.0551474466919899,
0.03090669959783554,
0.030100245028734207,
-0.056232985109090805,
0.012113096192479134,
0.0003354573273099959,
-0.033754389733076096,
-0.02532988041639328,
0.017439885064959526,
0.022525349631905556,
0.03235996514558792,
-0.011275981552898884,
0.013442662544548512,
0.003870494430884719,
0.0031650266610085964,
-0.16428717970848083,
0.09682546555995941,
0.04362664744257927,
0.026239892467856407,
0.015410213731229305,
-0.04376235604286194,
-0.04333048313856125,
0.08647346496582031,
-0.0341438464820385,
-0.043543003499507904,
-0.06457545608282089,
0.09189119189977646,
-0.014005579054355621,
-0.01925349235534668,
0.00913289375603199,
0.0004523771640378982,
0.021593110635876656,
-0.0405220128595829,
-0.06857641041278839,
-0.024802066385746002,
0.0073599666357040405,
-0.02935793809592724,
-0.05303291231393814,
0.006245927419513464,
-0.01871565170586109,
0.05860448256134987,
0.040899813175201416,
0.005091357510536909,
0.025847388431429863,
-0.048034314066171646,
0.05914280191063881,
0.010835698805749416,
-0.11228107661008835,
-0.01888316124677658,
0.0024283668026328087,
0.02108217030763626,
0.006021758541464806,
0.4097616374492645,
-0.030361898243427277,
-0.03822970390319824,
0.01574701815843582,
0.012104295194149017,
0.03347388654947281,
0.0144084757193923,
0.003927320707589388,
0.010492940433323383,
-0.008483084850013256,
-0.054581817239522934,
0.033738814294338226,
-0.045757729560136795,
0.08858469873666763,
-0.07675499469041824,
0.005474455188959837,
-0.015607339330017567,
0.030884364619851112,
0.007926130667328835,
0.021604010835289955,
0.03322605788707733,
-0.0057106902822852135,
-0.0007691901992075145,
0.019017554819583893,
0.01018581259995699,
0.024963565170764923,
-0.03133494779467583,
0.015085814520716667,
0.06368935853242874,
0.010994313284754753,
0.012710747309029102,
0.0670834481716156,
-0.06548992544412613,
-0.03659858554601669,
0.0067401304841041565,
-0.012202931568026543,
0.03723619878292084,
0.000798467022832483,
-0.04157595708966255,
-0.02298789657652378,
-0.049457963556051254,
0.003280964447185397,
-0.044566042721271515,
0.033355433493852615,
0.0029903464019298553,
-0.005341743119060993,
0.06326991319656372,
-0.04109710827469826,
-0.047190532088279724,
-0.03535002842545509,
-0.040717050433158875,
-0.0039602103643119335,
0.010302344337105751,
0.004612939432263374,
-0.06306485831737518,
-0.0011488168966025114,
0.03341198340058327,
0.08197573572397232,
-0.0251828171312809,
-0.07739053666591644,
0.01739387959241867,
-0.0064058625139296055,
-0.05100315064191818,
-0.05988723412156105,
0.08508169651031494,
0.058670733124017715,
-0.06022389605641365,
-0.052341148257255554,
0.0240012314170599,
0.040251657366752625,
-0.019712822511792183,
0.026222119107842445,
-0.022606896236538887,
-0.008422116748988628,
-0.02149713970720768,
0.030766794458031654,
-0.0387745201587677,
-0.0068647898733615875,
0.013538899831473827,
0.06322113424539566,
0.02192787267267704,
0.00785043928772211,
-0.019468845799565315,
-0.025265658274292946,
0.03652796521782875,
-0.010124185122549534,
-0.08894037455320358,
-0.060246411710977554,
0.04736092686653137,
0.008087990805506706,
0.0029752368573099375,
-0.028091827407479286,
-0.013751870952546597,
-0.05872797593474388,
0.009722881019115448,
-0.019399750977754593,
0.0025621321983635426,
0.005790672264993191,
0.027970779687166214,
-0.000843526388052851,
-0.04392697289586067,
0.07205575704574585,
0.029022522270679474,
-0.0252205953001976,
0.00585146201774478,
-0.06017063185572624,
-0.0075700245797634125,
0.04420606419444084,
-0.06029793620109558,
0.049182623624801636,
0.027560589835047722,
-0.022831661626696587,
0.028888022527098656,
0.025601467117667198,
0.004502767231315374,
-0.012258902192115784,
-0.05648151412606239,
-0.014259503223001957,
-0.025147151201963425,
0.04887867346405983,
0.05416567996144295,
-0.008839072659611702,
-0.02890358678996563,
-0.041171297430992126,
-0.34090542793273926,
-0.042742885649204254,
0.01379374135285616,
-0.02031707763671875,
0.06423067301511765,
-0.08023437112569809,
-0.0011130539933219552,
-0.022362791001796722,
0.0008702338091097772,
0.03425365313887596,
0.039389654994010925,
-0.047991205006837845,
-0.009727004915475845,
-0.10328539460897446,
0.0018187466775998473,
0.041984181851148605,
0.016205910593271255,
-0.0470988005399704,
-0.0004118171345908195,
0.03727111220359802,
0.00851544551551342,
0.010135840624570847,
-0.014354736544191837,
-0.025108814239501953,
-0.006609534379094839,
-0.014964653179049492,
0.08008400350809097,
0.04227275028824806,
0.1330154538154602,
-0.057065073400735855,
0.0259905606508255,
0.001659512403421104,
0.018218064680695534,
-0.061694830656051636,
-0.0245981402695179,
0.011829941533505917,
0.005115818232297897,
0.003320113755762577,
0.03168030455708504,
-0.01908007264137268,
-0.017162472009658813,
-0.03284566104412079,
-0.023325590416789055,
-0.015737859532237053,
-0.0015441339928656816,
-0.02908029966056347,
0.03503452613949776,
-0.06401927769184113,
0.0009327246807515621,
0.06338442116975784,
0.0028367333579808474,
0.03206968307495117,
-0.0021345505956560373,
0.030865900218486786,
0.05291542038321495,
-0.026193736121058464,
-0.03665008023381233,
-0.006602807901799679,
0.025622081011533737,
-0.06526558846235275,
0.037852779030799866,
0.03437598794698715,
0.0485709011554718,
-0.021187325939536095,
-0.040142472833395004,
0.021587029099464417,
-0.003998102620244026,
0.012807353399693966,
0.04208501800894737,
-0.04981755092740059,
-0.022009119391441345,
0.08083688467741013,
-0.0007543732644990087,
-0.0037708175368607044,
0.00675301905721426,
0.055777303874492645,
-0.020702436566352844,
0.012605106458067894,
-0.022365227341651917,
-0.032926883548498154,
0.060842327773571014,
-0.002824045717716217,
0.08943579345941544,
-0.002499217400327325,
0.0005178988794796169,
0.051466867327690125,
0.017279690131545067,
0.0032937158830463886,
0.06718091666698456,
-0.007392550818622112,
-0.011770258657634258,
-0.008712267503142357,
0.00762730510905385,
-0.0589810311794281,
0.073981374502182,
0.007453685626387596,
-0.24525876343250275,
0.03581999987363815,
0.03405319154262543,
0.08296151459217072,
-0.027098840102553368,
0.029822049662470818,
0.011922572739422321,
-0.06159897893667221,
-0.0028100742492824793,
0.030125271528959274,
-0.04341588169336319,
0.01277063973248005,
0.007558111567050219,
-0.027717331424355507,
0.030911121517419815,
-0.00831736158579588,
0.05289250984787941,
0.009724646806716919,
0.03125233203172684,
0.017822861671447754,
-0.0013542614178732038,
0.007084640674293041,
0.17437149584293365,
-0.02600921504199505,
0.012808453291654587,
-0.02745627798140049,
0.019947487860918045,
0.025465896353125572,
0.06402435898780823,
0.0200838390737772,
0.02769622392952442,
0.0065287379547953606,
0.02005610801279545,
0.013351326808333397,
0.035555269569158554,
-0.019225332885980606,
-0.02085713855922222,
0.05560245364904404,
0.020813139155507088,
-0.020500322803854942,
-0.018715115264058113,
0.053398437798023224,
-0.03961522504687309,
0.006487148813903332,
0.06724429130554199,
0.01102351862937212,
0.004019744694232941,
-0.007571261841803789,
-0.0035350811667740345,
0.010112364776432514,
0.0013438313035294414,
-0.014755516313016415,
0.01040097139775753,
-0.018356038257479668,
0.016126995906233788,
0.04089445620775223,
-0.022438935935497284,
-0.020456058904528618,
0.0020910724997520447,
0.0120463278144598,
-0.01111305970698595,
-0.046577174216508865,
0.10464968532323837,
0.04276249185204506,
0.01856389082968235
] | [
-0.010946734808385372,
0.02935531921684742,
-0.03441893681883812,
-0.0014610510552302003,
-0.005843446124345064,
-0.0515662282705307,
-0.023801155388355255,
0.031062524765729904,
-0.029384929686784744,
0.0039409613236784935,
-0.029050029814243317,
-0.04253600910305977,
0.024248456582427025,
-0.03674313426017761,
-0.012917476706206799,
0.0002727055689319968,
-0.031239567324519157,
-0.016826439648866653,
0.01908622682094574,
-0.013487396761775017,
-0.030384480953216553,
0.04467632994055748,
0.021957529708743095,
-0.0015027294866740704,
-0.0064943269826471806,
0.058152224868535995,
-0.0389372780919075,
-0.010360755026340485,
0.01475311629474163,
-0.11776630580425262,
0.003794207237660885,
0.0013188275042921305,
0.03138451650738716,
-0.01280437782406807,
0.041968099772930145,
-0.0075350236147642136,
0.0717197135090828,
0.03467891365289688,
-0.05785331875085831,
-0.00830923579633236,
-0.026049833744764328,
0.01273107435554266,
-0.037188395857810974,
0.03757584095001221,
0.029151974245905876,
-0.02774754911661148,
-0.04328509047627449,
-0.007815232500433922,
0.029954908415675163,
0.024905171245336533,
-0.06082134693861008,
0.006308762356638908,
0.010261360555887222,
0.0002815538027789444,
0.017688894644379616,
-0.031106583774089813,
-0.00146172393579036,
-0.020328428596258163,
0.026940058916807175,
-0.015184947289526463,
0.018282344564795494,
0.003048644633963704,
-0.04606371000409126,
-0.0072463820688426495,
0.021705806255340576,
-0.03744179755449295,
-0.04241504520177841,
-0.009649000130593777,
-0.008373789489269257,
-0.005560505669564009,
-0.05382293835282326,
-0.02910994552075863,
-0.012507999315857887,
0.007584483362734318,
-0.012152922339737415,
0.03599251061677933,
0.011474006809294224,
-0.022265566512942314,
0.004788357764482498,
-0.012158040888607502,
-0.042846690863370895,
0.004945253953337669,
0.011844540014863014,
-0.00709797628223896,
-0.030756160616874695,
0.024891987442970276,
-0.01269760075956583,
0.0005225937929935753,
0.007327093277126551,
0.021634500473737717,
0.0014572603395208716,
0.020596832036972046,
0.022722583264112473,
-0.0335785448551178,
-0.07269283384084702,
0.00020926783327013254,
-0.02500498853623867,
0.021445075049996376,
0.020510448142886162,
0.808617115020752,
0.004338421858847141,
0.04893808811903,
0.013351775705814362,
0.037995487451553345,
-0.010449472814798355,
-0.009556806646287441,
-0.0032802799250930548,
0.043831732124090195,
0.012514391914010048,
-0.07517875730991364,
0.06811009347438812,
-0.03229638934135437,
0.024545077234506607,
-0.030134521424770355,
0.020991656929254532,
0.019670793786644936,
0.008444676175713539,
0.01661774329841137,
0.00580940255895257,
0.010274323634803295,
0.028874879702925682,
-0.04418889433145523,
-0.03266756236553192,
0.028750671073794365,
0.03850741684436798,
-0.15399795770645142,
0.048635829240083694,
-7.278448696624487e-33,
0.03911764919757843,
-0.04378066584467888,
0.002465758705511689,
-0.013061603531241417,
0.016834264621138573,
0.0030640827026218176,
-0.018100211396813393,
0.030317500233650208,
-0.02668440341949463,
-0.010034460574388504,
0.028443114832043648,
-0.01878109760582447,
0.006170277483761311,
-0.026649735867977142,
0.04565110057592392,
-0.033003292977809906,
-0.0006946646026335657,
0.013502506539225578,
-0.010248505510389805,
-0.005685137584805489,
0.02822357416152954,
0.0315028540790081,
0.044875651597976685,
0.01700938679277897,
0.06121582165360451,
0.03658079728484154,
0.029852349311113358,
-0.030878130346536636,
0.008955867029726505,
-0.0529308058321476,
-0.0398687981069088,
0.008469115011394024,
0.01833489164710045,
-0.03632611408829689,
-0.03924785554409027,
-0.03685629367828369,
-0.009698347188532352,
-0.005842613987624645,
-0.004814010113477707,
-0.014261959120631218,
-0.03930551931262016,
0.0032989259343594313,
0.017366258427500725,
-0.013692261651158333,
0.0231638140976429,
-0.02916382998228073,
-0.01365036703646183,
0.0356648713350296,
0.001388679025694728,
0.0004201034316793084,
0.03693831339478493,
0.01797027699649334,
0.012248309329152107,
0.019293809309601784,
0.008273737505078316,
0.025073479861021042,
-0.02323201671242714,
-0.0047196438536047935,
0.0000770651240600273,
0.05586453899741173,
0.020017854869365692,
0.0228886641561985,
-0.015559985302388668,
0.04170234873890877,
0.036401186138391495,
-0.03703048825263977,
0.04406311735510826,
0.006405779626220465,
-0.03212787210941315,
0.05755593627691269,
-0.057637061923742294,
0.00878395140171051,
-0.011491918005049229,
0.00384855130687356,
0.028236616402864456,
-0.04731735587120056,
-0.021735014393925667,
-0.0006197097827680409,
0.03974898159503937,
0.01885472796857357,
0.032530300319194794,
0.0032636967953294516,
-0.01825440488755703,
-0.013675828464329243,
-0.01612899638712406,
0.005039912648499012,
0.01449360977858305,
-0.012229356914758682,
-0.06835420429706573,
-0.012844386510550976,
0.026775194332003593,
0.010784261859953403,
-0.009958629496395588,
-0.00918135792016983,
-0.028509221971035004,
6.879048042309721e-33,
0.02176789939403534,
-0.025896606966853142,
0.009961823001503944,
0.02879326231777668,
-0.029384983703494072,
0.023529766127467155,
0.015778254717588425,
-0.002017104998230934,
-0.03630167618393898,
0.01831916719675064,
-0.004020337015390396,
0.04745825380086899,
-0.012383037246763706,
0.04657924920320511,
0.051328837871551514,
0.0004731485969386995,
-0.007632246240973473,
0.022877264767885208,
-0.035204995423555374,
-0.017183169722557068,
0.019295061007142067,
0.013847037218511105,
0.03249775618314743,
0.034053172916173935,
0.05748463794589043,
-0.003446534974500537,
-0.005804780870676041,
0.009782003238797188,
-0.012807048857212067,
0.012710693292319775,
0.0007733796373941004,
0.03035811148583889,
-0.026196051388978958,
-0.020975347608327866,
0.0028985822573304176,
0.04574846103787422,
-0.0027522239834070206,
0.02303585782647133,
0.047008320689201355,
0.01996735855937004,
0.006199971307069063,
0.030532529577612877,
-0.0005425389972515404,
-0.010962644591927528,
0.01063418760895729,
0.03795996680855751,
-0.011537504382431507,
0.04783811792731285,
-0.012325760908424854,
-0.005373672116547823,
-0.006350362673401833,
0.024549512192606926,
0.0031211241148412228,
0.01165682077407837,
0.01914258301258087,
-0.026627633720636368,
-0.03356515243649483,
0.029180264100432396,
-0.0462072379887104,
-0.020331040024757385,
-0.030833477154374123,
0.029812544584274292,
0.012890731915831566,
0.0025627445429563522,
-0.002265232615172863,
-0.020532509312033653,
-0.0451820082962513,
-0.024806005880236626,
0.006943209562450647,
-0.05018755793571472,
0.023724820464849472,
-0.03537556529045105,
-0.059163838624954224,
0.021888015791773796,
-0.004886457696557045,
0.01449100486934185,
-0.01093586627393961,
0.00556974858045578,
-0.029754452407360077,
0.04758515954017639,
0.015346281230449677,
0.013924338854849339,
0.02241799235343933,
0.06944236159324646,
0.008377033285796642,
0.04441363736987114,
-0.021194908767938614,
-0.0002294812584295869,
0.03227823227643967,
0.02017204463481903,
-0.01541893556714058,
-0.020386086776852608,
-0.011451507918536663,
-0.009433594532310963,
-0.020403092727065086,
-1.228822377186134e-8,
-0.01978449337184429,
-0.027178453281521797,
-0.026125481352210045,
0.002275358187034726,
0.053844887763261795,
0.04283967241644859,
-0.04754189774394035,
-0.0412006638944149,
-0.0033903152216225863,
-0.020437519997358322,
0.020323269069194794,
-0.005033400375396013,
-0.028530258685350418,
0.014856317080557346,
0.001724619185552001,
-0.012123409658670425,
0.03888319060206413,
-0.02338535152375698,
0.008369795978069305,
-0.009539634920656681,
-0.006461252924054861,
0.049288854002952576,
-0.00047205190639942884,
0.025224780663847923,
-0.005115402862429619,
-0.04375101625919342,
0.031674180179834366,
-0.07063854485750198,
0.012690430507063866,
0.023799657821655273,
0.04971184954047203,
-0.04275718703866005,
-0.03436174988746643,
-0.009520023129880428,
0.004321865737438202,
-0.06833183020353317,
0.024163872003555298,
0.07202719151973724,
0.027023861184716225,
0.0003373943327460438,
-0.025487789884209633,
-0.02319876104593277,
-0.017311478033661842,
-0.04152645915746689,
-0.05206090211868286,
-0.043181128799915314,
-0.04959918558597565,
-0.00711957598105073,
-0.029300883412361145,
-0.04755285754799843,
0.04852639511227608,
-0.009607216343283653,
0.02064247988164425,
0.013813267461955547,
-0.0035893202293664217,
-0.008879333734512329,
0.014898648485541344,
-0.014768784865736961,
0.004265471827238798,
0.0021708153653889894,
0.020057905465364456,
-0.02366797998547554,
-0.01070641353726387,
-0.023716187104582787
] | mac-os-x-gnu-sed-hex-string-replacement-replacing-new-line-characters | https://markhneedham.com/blog/2015/06/11/mac-os-x-gnu-sed-hex-string-replacement-replacing-new-line-characters |
false | 2015-06-29 05:36:22 | R: Speeding up the Wimbledon scraping job | [
"r-2"
] | [
"R"
] | Over the past few days I've written http://www.markhneedham.com/blog/2015/06/26/r-ggplot-show-discrete-scale-even-with-no-value/[a few] http://www.markhneedham.com/blog/2015/06/25/r-scraping-wimbledon-draw-data/[blog] http://www.markhneedham.com/blog/2015/06/28/r-dplyr-update-rows-with-earlierprevious-rows-values/[posts] about a https://github.com/mneedham/neo4j-wimbledon/blob/master/wimbledon.csv[Wimbledon data set] I've been building and after running the scripts a few times I noticed that it was taking much longer to run that I expected.
To recap, I started out with the following function which takes in a URI and returns a data frame containing a row for each match:
[source,r]
----
library(rvest)
library(dplyr)
scrape_matches1 = function(uri) {
matches = data.frame()
s = html(uri)
rows = s %>% html_nodes("div#scoresResultsContent tr")
i = 0
for(row in rows) {
players = row %>% html_nodes("td.day-table-name a")
seedings = row %>% html_nodes("td.day-table-seed")
score = row %>% html_node("td.day-table-score a")
flags = row %>% html_nodes("td.day-table-flag img")
if(!is.null(score)) {
player1 = players[1] %>% html_text() %>% str_trim()
seeding1 = ifelse(!is.na(seedings[1]), seedings[1] %>% html_node("span") %>% html_text() %>% str_trim(), NA)
flag1 = flags[1] %>% html_attr("alt")
player2 = players[2] %>% html_text() %>% str_trim()
seeding2 = ifelse(!is.na(seedings[2]), seedings[2] %>% html_node("span") %>% html_text() %>% str_trim(), NA)
flag2 = flags[2] %>% html_attr("alt")
matches = rbind(data.frame(winner = player1,
winner_seeding = seeding1,
winner_flag = flag1,
loser = player2,
loser_seeding = seeding2,
loser_flag = flag2,
score = score %>% html_text() %>% str_trim(),
round = round), matches)
} else {
round = row %>% html_node("th") %>% html_text()
}
}
return(matches)
}
----
Let's run it to get an idea of the data that it returns:
[source,r]
----
matches1 = scrape_matches1("http://www.atpworldtour.com/en/scores/archive/wimbledon/540/2014/results")
> matches1 %>% filter(round %in% c("Finals", "Semi-Finals", "Quarter-Finals"))
winner winner_seeding winner_flag loser loser_seeding loser_flag score round
1 Milos Raonic (8) CAN Nick Kyrgios (WC) AUS 674 62 64 764 Quarter-Finals
2 Roger Federer (4) SUI Stan Wawrinka (5) SUI 36 765 64 64 Quarter-Finals
3 Grigor Dimitrov (11) BUL Andy Murray (3) GBR 61 764 62 Quarter-Finals
4 Novak Djokovic (1) SRB Marin Cilic (26) CRO 61 36 674 62 62 Quarter-Finals
5 Roger Federer (4) SUI Milos Raonic (8) CAN 64 64 64 Semi-Finals
6 Novak Djokovic (1) SRB Grigor Dimitrov (11) BUL 64 36 762 767 Semi-Finals
7 Novak Djokovic (1) SRB Roger Federer (4) SUI 677 64 764 57 64 Finals
----
As I mentioned, it's quite slow but I thought I'd wrap it in +++<cite>+++system.time+++</cite>+++ so I could see exactly how long it was taking:
[source,r]
----
> system.time(scrape_matches1("http://www.atpworldtour.com/en/scores/archive/wimbledon/540/2014/results"))
user system elapsed
25.570 0.111 31.416
----
About 30 seconds! The first thing I tried was downloading the file separately and running the function against the local file:
[source,r]
----
> system.time(scrape_matches1("data/raw/2014.html"))
user system elapsed
25.662 0.123 25.863
----
Hmmm, that's only saved us 5 seconds so the bottleneck must be somewhere else. Still there's no point making a HTTP request every time we run the script so we'll stick with the local file version.
While browsing http://cran.r-project.org/web/packages/rvest/rvest.pdf[rvest's vignette] I noticed a function called +++<cite>+++html_table+++</cite>+++ which I was curious about. I decided to try and replace some of my code with a call to that:
[source,r]
----
matches2= html("data/raw/2014.html") %>%
html_node("div#scoresResultsContent table.day-table") %>% html_table(header = FALSE) %>%
mutate(X1 = ifelse(X1 == "", NA, X1)) %>%
mutate(round = ifelse(grepl("\\([0-9]\\)|\\(", X1), NA, X1)) %>%
mutate(round = na.locf(round)) %>%
filter(!is.na(X8)) %>%
select(winner = X3, winner_seeding = X1, loser = X7, loser_seeding = X5, score = X8, round)
> matches2 %>% filter(round %in% c("Finals", "Semi-Finals", "Quarter-Finals"))
winner winner_seeding loser loser_seeding score round
1 Novak Djokovic (1) Roger Federer (4) 677 64 764 57 64 Finals
2 Novak Djokovic (1) Grigor Dimitrov (11) 64 36 762 767 Semi-Finals
3 Roger Federer (4) Milos Raonic (8) 64 64 64 Semi-Finals
4 Novak Djokovic (1) Marin Cilic (26) 61 36 674 62 62 Quarter-Finals
5 Grigor Dimitrov (11) Andy Murray (3) 61 764 62 Quarter-Finals
6 Roger Federer (4) Stan Wawrinka (5) 36 765 64 64 Quarter-Finals
7 Milos Raonic (8) Nick Kyrgios (WC) 674 62 64 764 Quarter-Finals
----
I had to do some slightly clever stuff to get the 'round' column into shape using zoo's +++<cite>+++na.locf+++</cite>+++ function which I http://www.markhneedham.com/blog/2015/06/28/r-dplyr-update-rows-with-earlierprevious-rows-values/[wrote about previously.]
Unfortunately I couldn't work out how to extract the flag with this version - that value is hidden in the 'alt' tag of an img and presumably +++<cite>+++html_table+++</cite>+++ is just grabbing the text value of each cell. This version is much quicker though!
[source,r]
----
system.time(html("data/raw/2014.html") %>%
html_node("div#scoresResultsContent table.day-table") %>% html_table(header = FALSE) %>%
mutate(X1 = ifelse(X1 == "", NA, X1)) %>%
mutate(round = ifelse(grepl("\\([0-9]\\)|\\(", X1), NA, X1)) %>%
mutate(round = na.locf(round)) %>%
filter(!is.na(X8)) %>%
select(winner = X3, winner_seeding = X1, loser = X7, loser_seeding = X5, score = X8, round))
user system elapsed
0.545 0.002 0.548
----
What I realised from writing this version is that I need to match all the columns with one call to +++<cite>+++html_nodes+++</cite>+++ rather than getting the row and then each column in a loop.
I rewrote the function to do that:
[source,r]
----
scrape_matches3 = function(uri) {
s = html(uri)
players = s %>% html_nodes("div#scoresResultsContent tr td.day-table-name a")
seedings = s %>% html_nodes("div#scoresResultsContent tr td.day-table-seed")
scores = s %>% html_nodes("div#scoresResultsContent tr td.day-table-score a")
flags = s %>% html_nodes("div#scoresResultsContent tr td.day-table-flag img") %>% html_attr("alt") %>% str_trim()
matches3 = data.frame(
winner = sapply(seq(1,length(players),2), function(idx) players[[idx]] %>% html_text()),
winner_seeding = sapply(seq(1,length(seedings),2), function(idx) seedings[[idx]] %>% html_text() %>% str_trim()),
winner_flag = sapply(seq(1,length(flags),2), function(idx) flags[[idx]]),
loser = sapply(seq(2,length(players),2), function(idx) players[[idx]] %>% html_text()),
loser_seeding = sapply(seq(2,length(seedings),2), function(idx) seedings[[idx]] %>% html_text() %>% str_trim()),
loser_flag = sapply(seq(2,length(flags),2), function(idx) flags[[idx]]),
score = sapply(scores, function(score) score %>% html_text() %>% str_trim())
)
return(matches3)
}
----
Let's run and time that to check we're getting back the right results in a timely manner:
[source,r]
----
> matches3 %>% sample_n(10)
winner winner_seeding winner_flag loser loser_seeding loser_flag score
70 David Ferrer (7) ESP Pablo Carreno Busta ESP 60 673 61 61
128 Alex Kuznetsov (26) USA Tim Smyczek (3) USA 46 63 63 63
220 Rogerio Dutra Silva BRA Kristijan Mesaros CRO 62 63
83 Kevin Anderson (20) RSA Aljaz Bedene (LL) GBR 63 75 62
73 Kei Nishikori (10) JPN Kenny De Schepper FRA 64 765 75
56 Roberto Bautista Agut (27) ESP Jan Hernych (Q) CZE 75 46 62 62
138 Ante Pavic CRO Marc Gicquel (29) FRA 46 63 765 64
174 Tim Puetz GER Ruben Bemelmans BEL 64 62
103 Lleyton Hewitt AUS Michal Przysiezny POL 62 6714 61 64
35 Roger Federer (4) SUI Gilles Muller (Q) LUX 63 75 63
> system.time(scrape_matches3("data/raw/2014.html"))
user system elapsed
0.815 0.006 0.827
----
It's still quick - a bit slower than +++<cite>+++html_table+++</cite>+++ but we can deal with that. As you can see, I also had to add some logic to separate the values for the winners and losers - the players, seeds, flags come back as as one big list. The odd rows represent the winner; the even rows the loser.
Annoyingly we've now lost the 'round' column because that appears as a table heading so we can't extract it the same way. I ended up cheating a bit to get it to work by working out how many matches each round should contain and generated a vector with that number of entries:
[source,r]
----
raw_rounds = s %>% html_nodes("th") %>% html_text()
> raw_rounds
[1] "Finals" "Semi-Finals" "Quarter-Finals" "Round of 16" "Round of 32"
[6] "Round of 64" "Round of 128" "3rd Round Qualifying" "2nd Round Qualifying" "1st Round Qualifying"
rounds = c( sapply(0:6, function(idx) rep(raw_rounds[[idx + 1]], 2 ** idx)) %>% unlist(),
sapply(7:9, function(idx) rep(raw_rounds[[idx + 1]], 2 ** (idx - 3))) %>% unlist())
> rounds[1:10]
[1] "Finals" "Semi-Finals" "Semi-Finals" "Quarter-Finals" "Quarter-Finals" "Quarter-Finals" "Quarter-Finals"
[8] "Round of 16" "Round of 16" "Round of 16"
----
Let's put that code into the function and see if we end up with the same resulting data frame:
[source,r]
----
scrape_matches4 = function(uri) {
s = html(uri)
players = s %>% html_nodes("div#scoresResultsContent tr td.day-table-name a")
seedings = s %>% html_nodes("div#scoresResultsContent tr td.day-table-seed")
scores = s %>% html_nodes("div#scoresResultsContent tr td.day-table-score a")
flags = s %>% html_nodes("div#scoresResultsContent tr td.day-table-flag img") %>% html_attr("alt") %>% str_trim()
raw_rounds = s %>% html_nodes("th") %>% html_text()
rounds = c( sapply(0:6, function(idx) rep(raw_rounds[[idx + 1]], 2 ** idx)) %>% unlist(),
sapply(7:9, function(idx) rep(raw_rounds[[idx + 1]], 2 ** (idx - 3))) %>% unlist())
matches4 = data.frame(
winner = sapply(seq(1,length(players),2), function(idx) players[[idx]] %>% html_text()),
winner_seeding = sapply(seq(1,length(seedings),2), function(idx) seedings[[idx]] %>% html_text() %>% str_trim()),
winner_flag = sapply(seq(1,length(flags),2), function(idx) flags[[idx]]),
loser = sapply(seq(2,length(players),2), function(idx) players[[idx]] %>% html_text()),
loser_seeding = sapply(seq(2,length(seedings),2), function(idx) seedings[[idx]] %>% html_text() %>% str_trim()),
loser_flag = sapply(seq(2,length(flags),2), function(idx) flags[[idx]]),
score = sapply(scores, function(score) score %>% html_text() %>% str_trim()),
round = rounds
)
return(matches4)
}
matches4 = scrape_matches4("data/raw/2014.html")
> matches4 %>% filter(round %in% c("Finals", "Semi-Finals", "Quarter-Finals"))
winner winner_seeding winner_flag loser loser_seeding loser_flag score round
1 Novak Djokovic (1) SRB Roger Federer (4) SUI 677 64 764 57 64 Finals
2 Novak Djokovic (1) SRB Grigor Dimitrov (11) BUL 64 36 762 767 Semi-Finals
3 Roger Federer (4) SUI Milos Raonic (8) CAN 64 64 64 Semi-Finals
4 Novak Djokovic (1) SRB Marin Cilic (26) CRO 61 36 674 62 62 Quarter-Finals
5 Grigor Dimitrov (11) BUL Andy Murray (3) GBR 61 764 62 Quarter-Finals
6 Roger Federer (4) SUI Stan Wawrinka (5) SUI 36 765 64 64 Quarter-Finals
7 Milos Raonic (8) CAN Nick Kyrgios (WC) AUS 674 62 64 764 Quarter-Finals
----
We shouldn't have added much to the time but let's check:
[source,r]
----
> system.time(scrape_matches4("data/raw/2014.html"))
user system elapsed
0.816 0.004 0.824
----
Sweet. We've saved ourselves 29 seconds per page as long as the number of rounds stayed constant over the years. For the 10 years that I've looked at it has but I expect if you go back further the draw sizes will have been different and our script would break.
For now though this will do! | null | null | [
-0.003291536122560501,
-0.014021848328411579,
0.02978755347430706,
0.02724428102374077,
0.07823891192674637,
-0.010828125290572643,
0.0231642909348011,
0.016498837620019913,
0.02139863930642605,
0.0021934101823717356,
0.01671203039586544,
-0.026968196034431458,
-0.06192070245742798,
0.03188593313097954,
-0.006858490407466888,
0.09425920248031616,
0.0474843792617321,
0.00365005643106997,
0.012019776739180088,
-0.018049074336886406,
0.03044416941702366,
0.03222290799021721,
-0.007415675092488527,
0.047796830534935,
0.03828808292746544,
-0.0116405775770545,
0.005603050347417593,
0.013643691316246986,
-0.06133444234728813,
0.01215324830263853,
0.05355362221598625,
0.02046634443104267,
0.006874424871057272,
-0.012126012705266476,
0.04303595423698425,
-0.03485081344842911,
-0.02121490240097046,
0.03345803543925285,
0.006489352323114872,
-0.020051460713148117,
-0.07199132442474365,
0.005027431063354015,
-0.04432959109544754,
0.02743169665336609,
-0.01681930013000965,
0.002257493557408452,
-0.02508286014199257,
0.033068880438804626,
0.020971180871129036,
0.025495190173387527,
-0.06947692483663559,
0.04509757459163666,
0.009491786360740662,
-0.025195438414812088,
-0.0064821201376616955,
0.04324386641383171,
0.028520770370960236,
-0.047147106379270554,
0.03763865306973457,
-0.062056105583906174,
-0.017538512125611305,
-0.012812525033950806,
-0.00537685165181756,
0.009571471251547337,
-0.00029126976733095944,
-0.029091522097587585,
-0.0007595636998303235,
0.03359343856573105,
-0.028491636738181114,
-0.004147576633840799,
-0.017853284254670143,
-0.009582733735442162,
-0.009753518737852573,
-0.01719505712389946,
0.015199132263660431,
-0.03552143648266792,
-0.023482434451580048,
0.0587165541946888,
0.012136540375649929,
0.01597999595105648,
-0.011690241284668446,
-0.023123901337385178,
0.0027709214482456446,
0.024284664541482925,
-0.0075603206641972065,
-0.04071948304772377,
-0.014608670026063919,
-0.047713685780763626,
-0.051141396164894104,
0.07672976702451706,
-0.0025551600847393274,
-0.051206719130277634,
0.017201554030179977,
0.023501081392169,
-0.03659849613904953,
-0.0025495081208646297,
0.014366882853209972,
-0.0008551838691346347,
-0.016037480905652046,
-0.037492331117391586,
-0.06872162967920303,
-0.04415296018123627,
0.04815678671002388,
0.008225888945162296,
-0.09190838038921356,
0.001911383355036378,
-0.034612152725458145,
-0.008072984404861927,
0.0006300761015154421,
0.016815297305583954,
-0.024125363677740097,
0.014146179892122746,
-0.013907668180763721,
0.0024132097605615854,
-0.06674543023109436,
0.0706358328461647,
0.036780767142772675,
-0.03845338150858879,
-0.020279372110962868,
0.007973135448992252,
0.04558304324746132,
0.018946396186947823,
-0.019037671387195587,
0.06627586483955383,
-0.007828342728316784,
0.06138245016336441,
0.04015599563717842,
0.03018306940793991,
-0.015247281640768051,
-0.07825331389904022,
0.008155426010489464,
0.06307824701070786,
-0.023745805025100708,
0.0181360375136137,
-0.007348016370087862,
-0.01905018277466297,
-0.022891942411661148,
-0.04368384927511215,
0.08654004335403442,
0.03694494441151619,
0.02628338150680065,
-0.01806044392287731,
0.023668458685278893,
0.01925540901720524,
0.044379785656929016,
-0.007112574763596058,
0.02224227972328663,
-0.05317874252796173,
-0.042132418602705,
-0.003241907339543104,
0.043857354670763016,
0.026270229369401932,
0.0524744875729084,
-0.01645505055785179,
0.022396758198738098,
0.09388167411088943,
0.04116314649581909,
0.0020237641874700785,
-0.01952347345650196,
0.018389685079455376,
0.0473763681948185,
0.02929352968931198,
0.009316054172813892,
0.06308745592832565,
-0.0063858781941235065,
-0.017025860026478767,
0.03220793604850769,
0.05327073857188225,
-0.026716027408838272,
-0.012270506471395493,
-0.05648992583155632,
-0.04508967325091362,
0.08013064414262772,
-0.03137420862913132,
0.015475806780159473,
0.03976425901055336,
0.06252895295619965,
0.04016103222966194,
0.030503103509545326,
-0.004710392560809851,
-0.06919541209936142,
0.03972487524151802,
0.024424051865935326,
0.03474628925323486,
0.016857607290148735,
-0.027592234313488007,
0.09889721870422363,
0.029083823785185814,
0.0049755508080124855,
0.04832566902041435,
-0.07837514579296112,
-0.06150416284799576,
-0.005179905332624912,
-0.016623027622699738,
0.058693401515483856,
-0.021320605650544167,
0.009736636653542519,
0.06676959991455078,
0.013988503254950047,
0.014920898713171482,
0.004351411014795303,
0.023340802639722824,
0.018775256350636482,
-0.044329311698675156,
-0.060574691742658615,
0.009642617776989937,
0.03289412707090378,
-0.02945619262754917,
-0.028336331248283386,
0.026190899312496185,
-0.041418254375457764,
0.022850550711154938,
0.015794366598129272,
-0.011316582560539246,
0.024011051282286644,
0.02064727060496807,
0.08482483774423599,
0.017889387905597687,
0.037615615874528885,
-0.05008683726191521,
0.01692267879843712,
0.010127861052751541,
-0.018493719398975372,
-0.018616225570440292,
-0.0026827382389456034,
0.13216732442378998,
0.04863693192601204,
-0.014514782465994358,
-0.05378437787294388,
0.03656388819217682,
-0.04167933017015457,
-0.008356944657862186,
0.03726327046751976,
-0.010715612210333347,
-0.0413651205599308,
0.008717706426978111,
-0.02393825352191925,
-0.031388092786073685,
0.002778604393824935,
-0.03967723250389099,
0.015048154629766941,
0.04392838105559349,
0.02714606374502182,
0.04985898360610008,
-0.025271056219935417,
0.008289091289043427,
-0.008760659024119377,
-0.021700914949178696,
-0.06893592327833176,
-0.020668668672442436,
0.028945785015821457,
-0.01182476058602333,
0.013849825598299503,
-0.02055427059531212,
-0.017428336665034294,
-0.021811088547110558,
-0.03692637011408806,
0.024480916559696198,
0.04910135641694069,
0.06562281399965286,
-0.008401232771575451,
0.021632201969623566,
-0.014147274196147919,
-0.01129185315221548,
-0.02761305868625641,
-0.0515083409845829,
-0.05671517178416252,
-0.051672618836164474,
0.01973661035299301,
0.02258625440299511,
0.024531856179237366,
0.0049037751741707325,
-0.03137979283928871,
0.008485576137900352,
0.008248517289757729,
-0.027517098933458328,
0.03485417366027832,
-0.01458375621587038,
-0.00991227850317955,
0.0003816258686129004,
-0.000982804223895073,
0.0362507626414299,
-0.020310426130890846,
-0.018283797428011894,
-0.0010980658698827028,
-0.044124674052000046,
0.04005010053515434,
-0.05799240618944168,
-0.03339361771941185,
-0.0024039079435169697,
-0.023367172107100487,
0.06616706401109695,
0.022075124084949493,
0.018919607624411583,
0.048590127378702164,
-0.0002118418487953022,
0.030799075961112976,
0.011203420348465443,
-0.01546256709843874,
0.05719868466258049,
0.007877808064222336,
0.02359536848962307,
0.048937659710645676,
-0.033287111669778824,
-0.0009942129254341125,
-0.03157919645309448,
-0.0021113422699272633,
-0.021533213555812836,
-0.2717701494693756,
0.03186862915754318,
0.004388287663459778,
-0.017369907349348068,
0.015727052465081215,
-0.05214978754520416,
0.021746819838881493,
-0.020782027393579483,
-0.020290035754442215,
-0.011040899902582169,
-0.0017417640192434192,
-0.02853662148118019,
-0.03736609220504761,
0.032373540103435516,
0.048872243613004684,
0.010924751870334148,
0.004716796800494194,
-0.03616790845990181,
0.00556655740365386,
0.06490775942802429,
0.04333306476473808,
-0.03766937553882599,
-0.01028105616569519,
0.025379620492458344,
0.030227450653910637,
0.07968847453594208,
-0.06367208808660507,
0.01845415122807026,
-0.06026843935251236,
-0.0416332446038723,
0.035385746508836746,
-0.02617019973695278,
0.026918333023786545,
-0.003549914574250579,
0.004059499129652977,
-0.0062178755179047585,
0.027899235486984253,
0.021388566121459007,
0.010840496979653835,
0.023162195459008217,
-0.01901097409427166,
-0.02746151201426983,
0.005058521870523691,
-0.014557448215782642,
0.08816961199045181,
0.016581859439611435,
-0.06793441623449326,
0.0063475086353719234,
-0.018393831327557564,
0.061584196984767914,
-0.002834684681147337,
-0.005400840658694506,
-0.014413107186555862,
0.013735326938331127,
-0.04455189406871796,
-0.0127943130210042,
-0.026216013357043266,
-0.028854496777057648,
-0.025242341682314873,
-0.054002709686756134,
-0.005829420872032642,
-0.03276696056127548,
0.009048460982739925,
-0.020160753279924393,
-0.009568408131599426,
-0.060803789645433426,
-0.06332583725452423,
-0.01110483892261982,
0.05997332185506821,
0.040233418345451355,
-0.042744413018226624,
-0.0014865334378555417,
0.004448871128261089,
-0.09971427917480469,
-0.010670929215848446,
-0.0321466326713562,
-0.01049945317208767,
-0.0023586321622133255,
0.003937996458262205,
0.05111629143357277,
-0.051523271948099136,
-0.06137850135564804,
0.018299279734492302,
-0.0012207027757540345,
0.03889584168791771,
-0.004413199611008167,
0.010242423042654991,
0.006191967986524105,
-0.026428159326314926,
-0.011333389207720757,
0.06758340448141098,
-0.05359337478876114,
-0.01659281551837921,
0.0017607768531888723,
-0.032297179102897644,
0.0482570044696331,
0.01008110586553812,
-0.0026067811995744705,
0.03126567229628563,
0.04994834214448929,
0.03460283577442169,
-0.053583014756441116,
0.02458304725587368,
-0.037139225751161575,
-0.034483667463064194,
0.001441929372958839,
-0.06311825662851334,
0.006115756928920746,
0.020105427131056786,
0.02545684203505516,
0.027588706463575363,
-0.02845374494791031,
0.014109660871326923,
-0.05806782469153404,
-0.014529572799801826,
0.010020429268479347,
0.023111052811145782,
-0.001805639360100031,
-0.0027953844983130693,
-0.015380225144326687,
-0.05875188112258911,
0.0017916799988597631,
-0.021043192595243454,
-0.040671009570360184,
-0.036411870270967484,
-0.01631719060242176,
0.033882349729537964,
-0.03796052560210228,
0.006411650218069553,
0.0034788837656378746,
0.0019222964765504003,
0.0033362898975610733,
0.048562996089458466,
-0.032547224313020706,
0.03308851644396782,
0.001100896392017603,
-0.06389312446117401,
-0.015329464338719845,
0.031534336507320404,
0.01664956845343113,
-0.011787472292780876,
0.017890051007270813,
0.018237099051475525,
0.024863293394446373,
0.020410219207406044,
-0.004313544370234013,
0.022136198356747627,
0.004179788753390312,
0.007516447454690933,
0.014894803985953331,
-0.0089145852252841,
0.009014115668833256,
0.01902489922940731,
-0.055064860731363297,
-0.026618020609021187,
-0.018252452835440636,
0.04177657514810562,
-0.005811976734548807,
-0.018722686916589737,
-0.05193420872092247,
0.0027712418232113123,
-0.04066315293312073,
-0.006226854864507914,
-0.02528473362326622,
0.0014456810895353556,
0.0461241789162159,
0.01601589471101761,
0.030131176114082336,
0.018276607617735863,
-0.011354504153132439,
-0.0035017793998122215,
0.011204157955944538,
-0.023137202486395836,
0.009691025130450726,
-0.022309789434075356,
-0.006590680219233036,
0.029700085520744324,
0.005683357827365398,
0.023315152153372765,
0.012277201749384403,
-0.010277672670781612,
-0.012551137246191502,
0.01185758225619793,
0.021091951057314873,
0.03789486736059189,
0.063077412545681,
-0.012971014715731144,
0.009233814664185047,
-0.001271313289180398,
-0.0015839234692975879,
-0.017940327525138855,
0.00064672133885324,
-0.02079429291188717,
-0.006089985370635986,
-0.03469102829694748,
-0.06411655247211456,
0.014046764001250267,
0.0339730829000473,
0.0008671945543028414,
0.0184610765427351,
-0.005577050615102053,
-0.01226371806114912,
-0.03384353592991829,
0.03892168402671814,
0.06465791165828705,
-0.05135601386427879,
-0.015182716771960258,
0.004117436241358519,
0.0057423594407737255,
0.020279329270124435,
0.012500816956162453,
-0.06978686898946762,
-0.006944439373910427,
0.002322437474504113,
0.04826970025897026,
-0.007042290642857552,
-0.04661712795495987,
-0.0621718131005764,
0.0026653362438082695,
0.009836975485086441,
0.03344523906707764,
-0.01689414493739605,
0.001562204328365624,
0.009648536331951618,
-0.01902918517589569,
-0.01357789896428585,
0.0022485745139420033,
-0.05779233202338219,
0.018203597515821457,
-0.027948932722210884,
0.037353768944740295,
-0.009348282590508461,
0.007584474515169859,
0.045214246958494186,
-0.009226893074810505,
0.007209497503936291,
-0.04065196216106415,
0.01881806179881096,
0.01868981122970581,
0.05120490491390228,
-0.00263971253298223,
0.012009616009891033,
-0.04035961627960205,
0.02741520293056965,
-0.031411975622177124,
-0.010313941165804863,
-0.027187436819076538,
-0.005295803304761648,
0.04499325901269913,
0.06017836928367615,
0.01762661337852478,
0.013893057592213154,
-0.006360676139593124,
-0.03748921677470207,
0.03295086696743965,
-0.055177412927150726,
-0.04989238828420639,
-0.005874098278582096,
-0.040654852986335754,
0.03383087366819382,
0.008745292201638222,
-0.0010732430964708328,
-0.0331415981054306,
0.038483019918203354,
0.031187333166599274,
0.020332802087068558,
0.05608055740594864,
0.006807656027376652,
0.018133126199245453,
-0.03144358471035957,
-0.006570960860699415,
-0.08567939698696136,
-0.006657199002802372,
0.04085412621498108,
-0.008491120301187038,
-0.006263508461415768,
-0.011567353270947933,
-0.044337254017591476,
0.02335742861032486,
-0.056518688797950745,
-0.06230646371841431,
0.03760683536529541,
0.00922378059476614,
-0.009363253600895405,
-0.017827171832323074,
-0.06465231627225876,
-0.010477120988070965,
0.03855586051940918,
-0.03164444863796234,
-0.010704973712563515,
-0.019304443150758743,
0.04471425339579582,
-0.040545299649238586,
0.021834764629602432,
-0.013504210859537125,
-0.021374542266130447,
0.08111552894115448,
0.014504805207252502,
0.013668248429894447,
0.050417710095644,
-0.03905288130044937,
0.022462382912635803,
0.02018105238676071,
-0.009585769847035408,
0.014498479664325714,
0.013125620782375336,
0.006776347290724516,
-0.04953454062342644,
0.01191516313701868,
0.006932033691555262,
-0.011415933258831501,
-0.06477409601211548,
0.09447315335273743,
0.00007634864596184343,
-0.0486447773873806,
-0.05924747884273529,
0.0032525567803531885,
-0.019225701689720154,
-0.00008196967974072322,
0.0093664126470685,
0.012708724476397038,
-0.03594731539487839,
0.06234229728579521,
-0.006126186344772577,
0.0023363549262285233,
0.07021687179803848,
0.003125731833279133,
-0.008461778983473778,
0.01714283600449562,
0.08015943318605423,
0.11915343999862671,
0.04134561866521835,
-0.012124622240662575,
0.06963234394788742,
-0.012065017595887184,
-0.05931728333234787,
-0.0007083844975568354,
-0.033838409930467606,
-0.025845978409051895,
-0.041332755237817764,
0.012825588695704937,
0.02485744096338749,
-0.04664474353194237,
0.06597448885440826,
-0.01571095548570156,
-0.033129867166280746,
0.012106255628168583,
-0.01800794154405594,
0.014132966287434101,
0.06395117938518524,
0.0022221009712666273,
0.03348219767212868,
-0.009852765128016472,
-0.015290874056518078,
0.009080006740987301,
-0.03070761449635029,
-0.017547300085425377,
0.008921993896365166,
-0.04216133430600166,
0.0024100784212350845,
-0.006367912050336599,
0.008694153279066086,
0.08161942660808563,
-0.03208417072892189,
0.0016446185763925314,
-0.015447624959051609,
0.057741645723581314,
-0.0007323162280954421,
0.02824905328452587,
0.01467466726899147,
-0.014713013544678688,
-0.02650303766131401,
-0.05243305116891861,
-0.02598678693175316,
-0.029662447050213814,
-0.031013507395982742,
0.017746493220329285,
-0.033487718552351,
0.01776539534330368,
0.027931805700063705,
-0.055689528584480286,
-0.04072441905736923,
-0.04118218272924423,
-0.05160112679004669,
-0.08530084043741226,
-0.08896537125110626,
-0.026305273175239563,
0.012022546492516994,
-0.023028230294585228,
-0.03941885754466057,
-0.016567712649703026,
-0.018531618639826775,
-0.018574314191937447,
0.016831092536449432,
-0.05991877242922783,
-0.012131934054195881,
0.018195737153291702,
0.020054543390870094,
0.024578604847192764,
0.03056478314101696,
0.052427925169467926,
0.0144541896879673,
-0.000871926371473819,
-0.0335843451321125,
0.002973976545035839,
0.03653034195303917,
0.015824882313609123,
-0.0012249103747308254,
-0.08314277231693268,
0.029214760288596153,
0.011933104135096073,
-0.03419585898518562,
-0.0746624618768692,
0.03044559620320797,
-0.0009599050972610712,
0.0013480826746672392,
0.0490233451128006,
-0.03488953411579132,
0.027779215946793556,
-0.048261858522892,
-0.018804578110575676,
-0.007318910211324692,
0.02023337595164776,
0.026650624349713326,
-0.031991127878427505,
0.06521816551685333,
0.020248040556907654,
0.004020286723971367,
-0.06165459752082825,
-0.02662195824086666,
-0.0028324576560407877,
-0.005775881931185722,
-0.06346870958805084,
-0.025087138637900352,
-0.0610017403960228,
-0.09644665569067001,
-0.027681130915880203,
0.017266351729631424,
-0.041492536664009094,
-0.020081613212823868,
-0.004145883489400148,
0.022486228495836258,
-0.02597954496741295,
0.015145411714911461,
-0.018082844093441963,
0.037769053131341934,
-0.02940216287970543,
-0.008974950760602951,
-0.021220892667770386,
0.0413590706884861,
-0.01801651157438755,
0.003909111954271793,
0.037790995091199875,
-0.046554531902074814,
0.020980993285775185,
-0.01447560265660286,
0.01629946194589138,
0.030317531898617744,
0.016540592536330223,
0.01901932619512081
] | [
-0.0717378556728363,
-0.029452823102474213,
-0.02219652570784092,
-0.030627410858869553,
0.08214791119098663,
-0.02657434344291687,
-0.04618121311068535,
0.01467479020357132,
0.024181075394153595,
0.01764303632080555,
0.038422081619501114,
-0.06497077643871307,
0.012411846779286861,
0.008623669855296612,
0.02883324772119522,
-0.0008331767749041319,
0.0015317151555791497,
-0.06462759524583817,
-0.018227044492959976,
0.028978168964385986,
-0.027090540155768394,
-0.027540575712919235,
-0.049788814038038254,
-0.07057563215494156,
0.028630102053284645,
0.029303452000021935,
0.01852884516119957,
-0.024254323914647102,
-0.016436690464615822,
-0.217269167304039,
0.02007024921476841,
-0.008774219080805779,
0.02704564295709133,
-0.004432098474353552,
0.01468844898045063,
0.014179212972521782,
0.009670579805970192,
0.006131443195044994,
0.021293343976140022,
0.03077532723546028,
0.01602889969944954,
0.005951978266239166,
-0.06464610248804092,
0.004008286166936159,
0.04442086070775986,
0.012576261535286903,
-0.04127242788672447,
0.0031810528598725796,
-0.0007490092539228499,
0.018582766875624657,
-0.06505738198757172,
-0.007385712582617998,
-0.006507664453238249,
-0.016833262518048286,
0.0063311513513326645,
0.0393974706530571,
0.05715109035372734,
0.051355890929698944,
0.022750716656446457,
0.041799310594797134,
0.03383892774581909,
0.01651626266539097,
-0.14532853662967682,
0.09665866196155548,
0.02835659310221672,
0.031138865277171135,
-0.05689629539847374,
-0.001505874446593225,
-0.003281454322859645,
0.09082775563001633,
0.013344465754926205,
0.0017201375449076295,
-0.02875623106956482,
0.07488400489091873,
0.020115340128540993,
-0.007743622176349163,
-0.04081016406416893,
0.007084461394697428,
0.011850826442241669,
-0.02081359550356865,
-0.030182156711816788,
0.023684000596404076,
-0.037390850484371185,
-0.03293319791555405,
0.0004326730268076062,
0.026573292911052704,
-0.05078287422657013,
0.03945078328251839,
-0.00643494538962841,
0.023956183344125748,
0.04908950626850128,
0.011487496085464954,
0.02049168571829796,
0.025494281202554703,
-0.11200320720672607,
-0.015912611037492752,
0.021529383957386017,
0.006267029792070389,
-0.013372681103646755,
0.38946831226348877,
-0.015622827224433422,
-0.007135289721190929,
0.041411351412534714,
0.08229074627161026,
-0.0014772913418710232,
-0.03311208263039589,
-0.016361860558390617,
-0.053433727473020554,
0.016427619382739067,
-0.011633814312517643,
0.009900274686515331,
-0.03429924324154854,
0.061205681413412094,
-0.06640331447124481,
0.022600827738642693,
-0.013499305583536625,
0.014699136838316917,
0.025022976100444794,
0.007224285509437323,
0.033495645970106125,
-0.03014020062983036,
0.005995681043714285,
0.013746481388807297,
-0.0014795338502153754,
0.03893377631902695,
0.03486774116754532,
0.027204493060708046,
0.07166917622089386,
0.04228050634264946,
0.009627838619053364,
0.051929373294115067,
0.01843944378197193,
-0.09752148389816284,
0.021809253841638565,
0.0028493625577539206,
0.0000401488141505979,
0.033688560128211975,
-0.034396521747112274,
-0.008862129412591457,
0.03912246227264404,
-0.025349527597427368,
-0.04048656299710274,
0.03435785695910454,
-0.0013145057018846273,
-0.008691570721566677,
0.1323360651731491,
-0.002281934954226017,
-0.025436559692025185,
0.004338905215263367,
-0.08435875177383423,
0.014462253078818321,
0.0436614528298378,
0.009679951705038548,
-0.07332365959882736,
-0.011589474976062775,
0.031109021976590157,
0.0544380322098732,
-0.03583547845482826,
-0.06497081369161606,
-0.02864442951977253,
-0.04732651263475418,
-0.04728958383202553,
-0.0452224537730217,
0.053069818764925,
0.04878091439604759,
-0.10450904071331024,
-0.024724295362830162,
0.016911601647734642,
-0.006034611724317074,
-0.0746421292424202,
0.04440496861934662,
0.0018398801330477,
-0.04081711545586586,
-0.003075734479352832,
0.05698561295866966,
-0.02989177592098713,
-0.03238100931048393,
-0.002988555934280157,
0.08413545042276382,
0.003257275326177478,
0.04327121376991272,
-0.011291544884443283,
-0.053856316953897476,
0.022345028817653656,
-0.0756707638502121,
-0.059121206402778625,
-0.08035894483327866,
0.015815770253539085,
-0.022229501977562904,
-0.005779357627034187,
-0.021830402314662933,
-0.0720096305012703,
-0.06034727767109871,
0.07142641395330429,
-0.05558494105935097,
-0.035785090178251266,
0.011921952478587627,
0.0042760977521538734,
-0.004456180147826672,
-0.038453977555036545,
0.003430065233260393,
0.003843375016003847,
0.021407123655080795,
0.018713872879743576,
-0.04091516509652138,
0.03835783526301384,
0.07069623470306396,
-0.042491886764764786,
0.0738930031657219,
0.04452894628047943,
-0.006779010873287916,
-0.01563776098191738,
-0.011786413379013538,
-0.003450034884735942,
-0.014965984970331192,
0.015826839953660965,
0.0007933105225674808,
-0.032713621854782104,
0.026272688060998917,
0.06008628010749817,
-0.029261553660035133,
-0.025980284437537193,
-0.0225015040487051,
-0.3636329472064972,
-0.05250144377350807,
-0.021489933133125305,
-0.010926974005997181,
0.020226042717695236,
-0.05107523128390312,
0.0007918239571154118,
0.0017580778803676367,
0.008614028804004192,
0.05863446369767189,
0.09946371614933014,
0.005190775264054537,
0.01351237203925848,
-0.10331075638532639,
-0.006900290958583355,
0.006945125292986631,
-0.008769569918513298,
-0.028663964942097664,
-0.019702302291989326,
0.005268073175102472,
0.010805141180753708,
-0.029297959059476852,
-0.028826862573623657,
-0.04218306764960289,
0.020534450188279152,
-0.04612566530704498,
0.1431344896554947,
0.030530666932463646,
0.024425465613603592,
-0.04720356687903404,
0.0513496957719326,
0.009656006470322609,
-0.025195060297846794,
-0.0809725970029831,
0.01414790004491806,
-0.019970666617155075,
0.020626477897167206,
0.02854963205754757,
-0.023905251175165176,
-0.035600632429122925,
-0.020566973835229874,
0.010962906293570995,
-0.026422735303640366,
-0.038876261562108994,
-0.048774849623441696,
0.04214153438806534,
-0.0018429538467898965,
-0.004760561045259237,
-0.014815827831625938,
0.08134856075048447,
0.041463080793619156,
-0.019597172737121582,
0.05756154656410217,
0.034486930817365646,
0.0074004060588777065,
-0.00468934141099453,
-0.0834619477391243,
0.021360596641898155,
-0.004292275290936232,
-0.012333251535892487,
0.01259243581444025,
-0.0034341420978307724,
0.058058157563209534,
-0.0866774246096611,
-0.025590041652321815,
0.013962085358798504,
0.0177720095962286,
-0.024305418133735657,
0.022080179303884506,
-0.0020571094937622547,
-0.033095743507146835,
0.04912532866001129,
-0.004912167321890593,
0.05108311399817467,
0.027160178869962692,
0.03118138387799263,
-0.022817784920334816,
0.006671970710158348,
0.007506118156015873,
0.0034653348848223686,
0.05237549543380737,
-0.01871306076645851,
0.03933398798108101,
0.005910845939069986,
0.00891298521310091,
0.03530685976147652,
-0.004414021503180265,
-0.026152044534683228,
0.05571168288588524,
0.0442303866147995,
0.004024932626634836,
-0.0057237884029746056,
-0.0307951420545578,
-0.04259421303868294,
0.04782800376415253,
0.012042028829455376,
-0.26753154397010803,
0.0386396087706089,
0.028533581644296646,
0.05586133897304535,
-0.003409329568967223,
0.014611994847655296,
0.03470885008573532,
-0.04367618262767792,
-0.005325937177985907,
0.02453896403312683,
0.005371411796659231,
0.03346308693289757,
0.008704918436706066,
-0.018387310206890106,
-0.012200110591948032,
-0.03166789934039116,
0.022855034098029137,
0.015930404886603355,
0.00898662582039833,
0.006621629931032658,
0.057792577892541885,
-0.024516766890883446,
0.159719780087471,
0.01648588664829731,
-0.005502816289663315,
0.021938271820545197,
-0.04069584608078003,
-0.03531483933329582,
0.06775616854429245,
-0.0004646925372071564,
-0.019573960453271866,
0.024740424007177353,
0.022270994260907173,
0.014194686897099018,
0.02992497757077217,
-0.023682856932282448,
-0.030614586547017097,
0.05107833817601204,
0.012284273281693459,
-0.03583984822034836,
0.0001712901284918189,
0.024319542571902275,
-0.04146170988678932,
0.03347814083099365,
0.0593925416469574,
-0.011063898913562298,
0.02115977182984352,
-0.025795290246605873,
-0.0516127347946167,
0.013378022238612175,
-0.034480758011341095,
-0.018236840143799782,
-0.016629206016659737,
-0.010969706811010838,
-0.0024736749473959208,
0.059955086559057236,
0.03597074747085571,
-0.010469245724380016,
0.048334717750549316,
-0.010304898023605347,
-0.0032825819216668606,
-0.056320689618587494,
0.08776360750198364,
0.007386844605207443,
-0.00031271850457414985
] | [
0.024395504966378212,
0.020174164324998856,
-0.021894101053476334,
0.004110147710889578,
-0.008708283305168152,
0.009786647744476795,
0.020356930792331696,
-0.01197296567261219,
-0.023902324959635735,
-0.0019336515106260777,
-0.027924442663788795,
0.00789052713662386,
0.011848288588225842,
-0.0033308810088783503,
0.00043290332541801035,
-0.01848243921995163,
-0.011989102698862553,
0.00038430263521149755,
0.021040117368102074,
-0.0023484695702791214,
-0.0504726842045784,
0.0235269907861948,
0.02545340545475483,
-0.007043550256639719,
-0.022188186645507812,
0.03047908842563629,
-0.03712615743279457,
0.025564715266227722,
0.02455754391849041,
-0.09955097734928131,
-0.02073604241013527,
-0.04719354212284088,
0.009894958697259426,
0.018804853782057762,
-0.047519754618406296,
-0.0074486811645329,
-0.042261701077222824,
0.009789878502488136,
0.01307997852563858,
0.01815786212682724,
-0.0025620225351303816,
-0.04656965658068657,
-0.024430502206087112,
0.028690757229924202,
-0.022906027734279633,
-0.0503864623606205,
-0.049468785524368286,
0.01093946024775505,
-0.00833943672478199,
-0.02625042200088501,
-0.05326273292303085,
-0.005245121195912361,
0.012489288114011288,
-0.030998749658465385,
0.008100735023617744,
-0.04241960123181343,
-0.015636131167411804,
-0.01946222595870495,
0.0008560259593650699,
-0.012297787703573704,
-0.022191938012838364,
-0.013638287782669067,
-0.025861436501145363,
-0.029756197705864906,
0.0021493418607860804,
-0.03547290712594986,
-0.028600642457604408,
0.0109443673864007,
0.015736490488052368,
0.03453049436211586,
0.0032949510496109724,
0.04952958971261978,
-0.02074810490012169,
-0.010952455922961235,
-0.030182208865880966,
0.01075105369091034,
-0.03581974282860756,
-0.0021134333219379187,
-0.0032910124864429235,
0.007770545314997435,
-0.031246865168213844,
0.002634547185152769,
0.002931604627519846,
0.03362501785159111,
-0.007097272202372551,
-0.03026609681546688,
0.037784136831760406,
0.029752546921372414,
0.0041921064257621765,
0.0039054006338119507,
-0.02374659664928913,
0.045093782246112823,
-0.000694484100677073,
0.029530640691518784,
-0.11194051057100296,
0.01729416847229004,
0.009256959892809391,
-0.025033313781023026,
0.005575844552367926,
0.8361666798591614,
0.012775912880897522,
0.008268656209111214,
0.009325694292783737,
0.034265510737895966,
-0.011656519956886768,
-0.027137186378240585,
-0.009322072379291058,
0.015143084339797497,
0.00847985502332449,
-0.0496574230492115,
-0.012350405566394329,
0.047552116215229034,
0.01931346207857132,
0.03671415522694588,
-0.027791080996394157,
0.04141491651535034,
0.012704441323876381,
0.006932391319423914,
0.017444850876927376,
0.04021380841732025,
0.007000414188951254,
0.013439944945275784,
-0.008942938409745693,
0.028512418270111084,
-0.002958762925118208,
-0.13745200634002686,
0.011015055701136589,
-6.686926714979265e-33,
0.036139246076345444,
-0.025525135919451714,
0.020592395216226578,
-0.013962088152766228,
0.006079631857573986,
0.036710064858198166,
-0.04756435006856918,
-0.034786637872457504,
-0.020788997411727905,
-0.04478214308619499,
-0.0058849225752055645,
0.02105233259499073,
0.0197532270103693,
-0.002683462342247367,
0.03539533168077469,
0.0026173999067395926,
0.014324992895126343,
0.028131673112511635,
0.005700881592929363,
-0.026673421263694763,
0.020392123609781265,
0.034763701260089874,
0.042196474969387054,
0.0473325178027153,
-0.014616589993238449,
0.02171400748193264,
-0.007337360642850399,
-0.00885649025440216,
-0.01571177877485752,
-0.04251953214406967,
-0.025321336463093758,
-0.02639140747487545,
-0.019416632130742073,
-0.03406776487827301,
0.013420168310403824,
-0.034477900713682175,
-0.02342304028570652,
-0.002619756618514657,
-0.01795237883925438,
-0.016382142901420593,
-0.03556176647543907,
-0.0009591811103746295,
-0.01644114963710308,
-0.03996918350458145,
-0.057172808796167374,
-0.0035669896751642227,
-0.00025375583209097385,
0.03747115656733513,
-0.019359281286597252,
0.03297365456819534,
0.02686244808137417,
0.014291045255959034,
0.02256043814122677,
-0.0464894101023674,
-0.03061174973845482,
0.018636396154761314,
-0.005312609951943159,
0.001307299011386931,
0.00784345157444477,
0.022636033594608307,
0.03358589485287666,
-0.02127884142100811,
0.009343904443085194,
0.00917030405253172,
-0.006684704218059778,
0.019038453698158264,
0.00337456027045846,
-0.028113003820180893,
0.023183997720479965,
0.014711009338498116,
-0.028535593301057816,
0.03808844834566116,
0.01038450188934803,
-0.011769318953156471,
0.019045211374759674,
-0.0417015478014946,
0.01491585187613964,
-0.021829189732670784,
-0.0023610901553183794,
0.049842365086078644,
0.031029265373945236,
0.008315825834870338,
-0.014525840990245342,
-0.05928646773099899,
-0.020461777225136757,
-0.04795005917549133,
0.02650361880660057,
0.013814813457429409,
-0.027357710525393486,
0.02289235219359398,
0.011147089302539825,
0.026485424488782883,
-0.035411328077316284,
-0.034535352140665054,
0.01566527783870697,
6.183529340763282e-33,
-0.004655158147215843,
-0.011852170340716839,
0.012735758908092976,
-0.0015507808420807123,
0.0656760111451149,
-0.00934536848217249,
0.028983943164348602,
0.05166222155094147,
-0.02477051131427288,
0.03210853785276413,
-0.022811753675341606,
-0.009140951558947563,
-0.017618278041481972,
0.02918657474219799,
0.060702499002218246,
-0.01433568261563778,
0.0008973983931355178,
0.015160110779106617,
-0.01731131225824356,
0.032398078590631485,
-0.00015577142767142504,
0.024240674450993538,
0.016512969508767128,
0.03400382772088051,
0.01928633265197277,
0.019090302288532257,
-0.004205554723739624,
-0.004356196615844965,
-0.0205770805478096,
0.003975303843617439,
0.042275168001651764,
-0.00525581743568182,
-0.019815988838672638,
-0.009806498885154724,
0.002810809761285782,
0.03453163057565689,
-0.005921183619648218,
-0.016268586739897728,
-0.00009759275417309254,
0.02409561537206173,
0.023381441831588745,
0.007842062041163445,
0.010701881721615791,
0.03886502608656883,
0.020950861275196075,
0.02687305212020874,
0.0006925096968188882,
0.027194956317543983,
-0.03246314451098442,
0.005841027945280075,
-0.020013311877846718,
0.020419495180249214,
-0.005850277841091156,
0.012798309326171875,
0.020855063572525978,
-0.02761736884713173,
-0.04037865623831749,
0.02413957752287388,
-0.05661751702427864,
0.011441826820373535,
-0.009141906164586544,
-0.007589615881443024,
-0.03247368335723877,
0.010250521823763847,
-0.020030071958899498,
-0.01621599867939949,
-0.03589211776852608,
-0.01144859567284584,
-0.01946442387998104,
0.03296801820397377,
-0.03046850860118866,
-0.02817274071276188,
0.015818504616618156,
0.012202267535030842,
-0.008085454814136028,
0.018035734072327614,
-0.03452335670590401,
0.03604401648044586,
-0.05109405517578125,
0.03487253189086914,
0.06297776848077774,
0.021716075018048286,
0.032166872173547745,
-0.02285877615213394,
0.020072350278496742,
0.025931406766176224,
-0.022128159180283546,
0.012015482410788536,
0.005345525220036507,
0.0032929731532931328,
0.032163456082344055,
-0.032174549996852875,
-0.010048446245491505,
0.03275370970368385,
0.01789236068725586,
-1.2420661832379665e-8,
-0.05399244278669357,
0.016897698864340782,
-0.025260787457227707,
0.030142921954393387,
0.020866625010967255,
0.042757369577884674,
0.002599334577098489,
-0.02187190391123295,
0.0019073090516030788,
0.027443908154964447,
0.06867924332618713,
-0.03456427529454231,
0.002895178273320198,
0.019531995058059692,
-0.013681303709745407,
-0.037069763988256454,
-0.012662708759307861,
-0.014253237284719944,
0.0315915048122406,
0.0379372201859951,
0.0014370251446962357,
0.039859138429164886,
-0.013401949778199196,
0.007354287430644035,
0.02610797993838787,
-0.041814692318439484,
0.006641137879341841,
-0.08101094514131546,
-0.03333842381834984,
-0.02025708742439747,
0.05975700914859772,
-0.038206495344638824,
-0.0025989054702222347,
0.015200560912489891,
-0.010942268185317516,
-0.03275521099567413,
0.007884877733886242,
0.01924174278974533,
0.006883310619741678,
0.004287725314497948,
-0.008125556632876396,
-0.0023828076664358377,
-0.04997919872403145,
-0.03915777429938316,
-0.019529353827238083,
0.02505265362560749,
-0.06456835567951202,
0.015003732405602932,
0.0071110473945736885,
-0.043103527277708054,
0.0000036411818200576818,
-0.02313525602221489,
0.005503712687641382,
0.014272721484303474,
0.052020687609910965,
0.014940472319722176,
0.003032421227544546,
0.014548541978001595,
-0.011818782426416874,
-0.03395716845989227,
0.01601516269147396,
-0.013102064840495586,
-0.021841339766979218,
-0.021456671878695488
] | r-speeding-up-the-wimbledon-scraping-job | https://markhneedham.com/blog/2015/06/29/r-speeding-up-the-wimbledon-scraping-job |
false | 2015-06-28 22:30:08 | R: dplyr - Update rows with earlier/previous rows values | [
"r-2"
] | [
"R"
] | Recently I had a data frame which contained a column which had mostly empty values:
[source,r]
----
> data.frame(col1 = c(1,2,3,4,5), col2 = c("a", NA, NA , "b", NA))
col1 col2
1 1 a
2 2 <NA>
3 3 <NA>
4 4 b
5 5 <NA>
----
I wanted to fill in the NA values with the last non NA value from that column. So I want the data frame to look like this:
[source,text]
----
1 1 a
2 2 a
3 3 a
4 4 b
5 5 b
----
I spent ages searching around before I http://stackoverflow.com/questions/27207162/fill-in-na-based-on-the-last-non-na-value-for-each-group-in-r[came across the +++<cite>+++na.locf+++</cite>+++ function in the zoo library] which does the job:
[source,r]
----
library(zoo)
library(dplyr)
> data.frame(col1 = c(1,2,3,4,5), col2 = c("a", NA, NA , "b", NA)) %>%
do(na.locf(.))
col1 col2
1 1 a
2 2 a
3 3 a
4 4 b
5 5 b
----
This will fill in the missing values for every column, so if we had a third column with missing values it would populate those too:
[source,r]
----
> data.frame(col1 = c(1,2,3,4,5), col2 = c("a", NA, NA , "b", NA), col3 = c("A", NA, "B", NA, NA)) %>%
do(na.locf(.))
col1 col2 col3
1 1 a A
2 2 a A
3 3 a B
4 4 b B
5 5 b B
----
If we only want to populate 'col2' and leave 'col3' as it is we can apply the function specifically to that column:
[source,r]
----
> data.frame(col1 = c(1,2,3,4,5), col2 = c("a", NA, NA , "b", NA), col3 = c("A", NA, "B", NA, NA)) %>%
mutate(col2 = na.locf(col2))
col1 col2 col3
1 1 a A
2 2 a <NA>
3 3 a B
4 4 b <NA>
5 5 b <NA>
----
It's quite a neat function and certainly comes in helpful when cleaning up data sets which don't tend to be as uniform as you'd hope! | null | null | [
-0.0036647638771682978,
-0.0004435308510437608,
-0.020791783928871155,
0.049086689949035645,
0.08990895748138428,
0.02227182686328888,
-0.00015152254491113126,
-0.023893896490335464,
-0.009148824028670788,
-0.0033600309398025274,
0.0008402066887356341,
0.004494733177125454,
-0.05686153098940849,
0.022761041298508644,
-0.047573380172252655,
0.07385455071926117,
0.062236860394477844,
0.0013224692083895206,
0.03460310027003288,
-0.0035356523003429174,
0.028469597920775414,
0.015832386910915375,
-0.006022488232702017,
0.013629956170916557,
0.05052898824214935,
-0.03393068537116051,
0.00725147221237421,
0.006145779974758625,
-0.02597017027437687,
0.03823127597570419,
0.031080884858965874,
0.030819877982139587,
-0.025432750582695007,
-0.017537154257297516,
0.01959233544766903,
-0.01945589855313301,
0.01762903854250908,
0.006383515894412994,
-0.004416028503328562,
-0.014099915511906147,
-0.06643564254045486,
0.010598328895866871,
-0.03386463224887848,
0.029937686398625374,
-0.02222089096903801,
-0.016236990690231323,
-0.03460048511624336,
0.004334263503551483,
-0.013472347520291805,
0.018175048753619194,
-0.05615871027112007,
0.03016059659421444,
0.020074399188160896,
-0.03781594708561897,
0.004024063237011433,
0.026925308629870415,
0.011429266072809696,
-0.04857734590768814,
0.013059317134320736,
-0.044721294194459915,
0.0008462638361379504,
0.012297473847866058,
-0.015828020870685577,
0.024481361731886864,
0.00621244078502059,
-0.03307384252548218,
0.017468294128775597,
0.034442152827978134,
-0.037148360162973404,
0.008521730080246925,
-0.0619376078248024,
-0.018852142617106438,
-0.030576582998037338,
-0.048768557608127594,
-0.001994886202737689,
-0.006564727984368801,
-0.02548888884484768,
0.04759499058127403,
0.02338727004826069,
0.012062753550708294,
-0.0353873074054718,
-0.029408957809209824,
0.03097984753549099,
-0.027525801211595535,
-0.004056485369801521,
-0.05055859312415123,
-0.04446350783109665,
-0.06096452474594116,
-0.03075365163385868,
0.026999520137906075,
-0.0459124818444252,
-0.02740049920976162,
0.03427673131227493,
0.020201539620757103,
-0.00507134385406971,
0.0034755682572722435,
0.011355274356901646,
-0.02332066185772419,
0.024993952363729477,
0.010977370664477348,
-0.09145570546388626,
-0.031088508665561676,
0.04741055518388748,
0.0017767215613275766,
-0.06871583312749863,
-0.02199966087937355,
-0.018062572926282883,
0.0006945503992028534,
-0.027662191540002823,
0.011717402376234531,
-0.029036691412329674,
-0.02059141732752323,
-0.005724332295358181,
-0.024824311956763268,
-0.057978205382823944,
0.03728804364800453,
0.03673098608851433,
0.020174749195575714,
-0.03008069470524788,
0.01270622294396162,
0.041852205991744995,
0.0323886014521122,
-0.00942265149205923,
0.05852949246764183,
-0.0040650637820363045,
0.03978868946433067,
0.014605005271732807,
0.043373819440603256,
-0.018533552065491676,
-0.07069475203752518,
-0.031586188822984695,
0.054327189922332764,
-0.03372207656502724,
-0.0013473947765305638,
-0.018159324303269386,
-0.027449144050478935,
-0.03775964677333832,
-0.017134767025709152,
0.0695783719420433,
0.01732970029115677,
0.029175471514463425,
0.025867311283946037,
0.00046518805902451277,
0.02666299231350422,
0.06381002068519592,
0.02803182043135166,
0.010618078522384167,
-0.06337961554527283,
-0.03755977004766464,
0.022698963060975075,
0.05262218043208122,
0.04143870994448662,
0.08166003227233887,
-0.009824075736105442,
0.0269825030118227,
0.09370962530374527,
0.013706755824387074,
0.018049009144306183,
-0.03626282140612602,
-0.003227739129215479,
0.050800222903490067,
0.03577711805701256,
0.04643252119421959,
0.07249822467565536,
-0.0293257012963295,
-0.049416638910770416,
0.0016652568010613322,
0.046085480600595474,
-0.01608298346400261,
0.006336051970720291,
-0.04245353490114212,
-0.050302788615226746,
0.055529966950416565,
-0.02583145722746849,
0.0003623353550210595,
0.014718345366418362,
0.07161329686641693,
0.03897649794816971,
0.026977436617016792,
0.021821143105626106,
-0.06727015972137451,
0.05184512585401535,
-0.016146928071975708,
0.016374042257666588,
0.055085036903619766,
-0.002367042237892747,
0.0698426365852356,
0.017039304599165916,
0.03086071088910103,
0.05321083962917328,
-0.058060646057128906,
-0.04095319285988808,
-0.024123361334204674,
-0.011207190342247486,
0.033800020813941956,
-0.02356499619781971,
-0.031512584537267685,
0.0959806814789772,
-0.006827646866440773,
0.03019481897354126,
0.026271017268300056,
0.01202442031353712,
0.006719205062836409,
-0.038164522498846054,
-0.022056756541132927,
0.016468023881316185,
0.006761021912097931,
0.013769948855042458,
0.03863627836108208,
0.05126161873340607,
-0.010289083234965801,
0.04286838695406914,
0.0018614804139360785,
-0.00865665078163147,
0.058620817959308624,
0.022993633523583412,
0.06352562457323074,
-0.005888286978006363,
0.038839854300022125,
-0.03796863928437233,
0.03683175519108772,
-0.0008745343657210469,
-0.014280722476541996,
-0.04610113427042961,
-0.025295037776231766,
0.1099536344408989,
0.04859597608447075,
-0.0127858966588974,
-0.056458164006471634,
0.046650368720293045,
-0.010702003724873066,
-0.01767713762819767,
0.01674838364124298,
0.003956569824367762,
-0.03319338709115982,
0.00973562803119421,
-0.022438080981373787,
-0.024519726634025574,
0.01116117276251316,
-0.010180485434830189,
0.0037014875560998917,
0.08607883751392365,
0.021738365292549133,
0.03077004849910736,
0.01010155864059925,
-0.01632525585591793,
-0.025306636467576027,
-0.04206235706806183,
-0.08112933486700058,
-0.024863146245479584,
0.03937557712197304,
-0.0065782382152974606,
0.028022728860378265,
-0.03346153348684311,
0.005262451246380806,
-0.007623090874403715,
-0.03794759884476662,
0.015450762584805489,
0.08283666521310806,
0.04910937696695328,
-0.019854314625263214,
0.026986002922058105,
-0.025702185928821564,
-0.0038381426129490137,
-0.0447683148086071,
-0.03854772448539734,
-0.03533697873353958,
-0.024385755881667137,
0.0008862377726472914,
-0.0066704535856842995,
0.01669522002339363,
-0.014566061086952686,
-0.000879612285643816,
0.007375474087893963,
0.030482115224003792,
-0.020567748695611954,
0.021822312846779823,
-0.021657587960362434,
0.00678594596683979,
-0.02141650579869747,
0.027076832950115204,
0.06340387463569641,
-0.02378007210791111,
-0.0227975957095623,
-0.007077446207404137,
-0.05517987534403801,
0.026836330071091652,
-0.02592250518500805,
-0.021627182140946388,
0.008837421424686909,
0.01614738255739212,
0.0020873064640909433,
0.010055722668766975,
-0.008172277361154556,
0.035868413746356964,
0.01908273994922638,
0.015205691568553448,
0.025847064331173897,
0.0056625427678227425,
0.053568582981824875,
-0.00037731294287368655,
-0.001139319152571261,
0.03126831352710724,
-0.00801949854940176,
0.01970992609858513,
-0.01882726140320301,
-0.002047809772193432,
-0.01275247149169445,
-0.2638178765773773,
0.026334041729569435,
-0.02363920584321022,
-0.03487446904182434,
0.0012925865594297647,
-0.06410132348537445,
0.0246247760951519,
0.009232129901647568,
-0.04186185076832771,
0.015063343569636345,
0.017303096130490303,
-0.036966290324926376,
-0.011723707430064678,
0.06477098166942596,
0.02445211447775364,
0.014759435318410397,
0.01919500157237053,
-0.013300918973982334,
-0.004247766453772783,
0.07433734834194183,
0.011407094076275826,
-0.03668369725346565,
0.001883234246633947,
0.06835819780826569,
0.02407209388911724,
0.09003641456365585,
-0.059514664113521576,
0.05493819713592529,
-0.055379047989845276,
-0.0814029648900032,
0.015662332996726036,
-0.02926727570593357,
0.016126422211527824,
-0.002148526720702648,
-0.013086903840303421,
-0.025524182245135307,
0.04871964082121849,
0.02787189744412899,
0.02924361638724804,
0.01957036554813385,
-0.039191894233226776,
-0.040451038628816605,
-0.008383318781852722,
0.027315255254507065,
0.05974254757165909,
0.02804514206945896,
-0.06494789570569992,
0.015685580670833588,
-0.046347662806510925,
0.0698300302028656,
-0.017021117731928825,
0.02177998051047325,
-0.03952611982822418,
0.025211481377482414,
-0.024271158501505852,
0.01109243556857109,
-0.0435015894472599,
0.007348670624196529,
-0.0006379866390489042,
-0.050287120044231415,
-0.0016442512860521674,
-0.03748450055718422,
-0.01850014738738537,
-0.029308727011084557,
-0.01484212651848793,
-0.07485046982765198,
-0.11003576219081879,
-0.0016298799309879541,
0.08034855127334595,
0.04666474834084511,
-0.024527760222554207,
-0.0002284199872519821,
-0.0005308954860083759,
-0.08662283420562744,
0.02328467182815075,
-0.053220778703689575,
-0.010736407712101936,
-0.005833877250552177,
-0.03419254347681999,
0.025590190663933754,
-0.043734826147556305,
-0.03287665918469429,
0.028945909813046455,
0.03266209363937378,
0.012289907783269882,
-0.02239971235394478,
0.0018270506989210844,
0.02396123856306076,
-0.06585905700922012,
-0.04778974503278732,
0.07606366276741028,
-0.020456714555621147,
0.004758430179208517,
0.007023032754659653,
-0.0019416222348809242,
0.04709966480731964,
-0.004365377128124237,
-0.004676606971770525,
0.023985600098967552,
0.008052686229348183,
0.06745205074548721,
-0.04225564002990723,
0.01690659299492836,
-0.06900689750909805,
-0.03148914873600006,
-0.012300990521907806,
-0.0654931589961052,
0.015156885609030724,
0.0019668028689920902,
0.02153649367392063,
0.008891063742339611,
-0.015968799591064453,
0.016718925908207893,
-0.05255000665783882,
-0.028494257479906082,
0.031339917331933975,
0.006659790873527527,
0.005543361883610487,
-0.01512150652706623,
0.006000311113893986,
-0.06196622923016548,
0.028995929285883904,
0.01150632742792368,
-0.040769949555397034,
-0.02661031298339367,
-0.023803893476724625,
0.004134119022637606,
0.0009205578826367855,
-0.040518540889024734,
-0.022135820239782333,
0.004450048319995403,
-0.00935889221727848,
0.023616816848516464,
-0.01962599717080593,
0.04884875938296318,
0.02184816263616085,
-0.04143352434039116,
-0.009595148265361786,
0.028252100571990013,
0.01722399890422821,
-0.015352890826761723,
-0.0037415490951389074,
-0.017484432086348534,
0.03263646736741066,
-0.008323959074914455,
0.0023810474667698145,
0.04618144780397415,
0.020397385582327843,
-0.0012373821809887886,
0.021627457812428474,
-0.039694495499134064,
0.011507212184369564,
0.0022306260652840137,
-0.04392519220709801,
-0.03906858712434769,
-0.010607447475194931,
0.044686608016490936,
-0.04750290885567665,
0.005119037814438343,
-0.053672224283218384,
-0.039973482489585876,
-0.022152569144964218,
-0.010658200830221176,
-0.013462920673191547,
0.002171854255720973,
0.05287264660000801,
0.011472020298242569,
-0.015049677342176437,
0.020303329452872276,
0.03464852645993233,
-0.0011680138995870948,
0.0048154923133552074,
-0.010199246928095818,
0.005564750637859106,
-0.005555891431868076,
-0.028594685718417168,
0.0530039444565773,
-0.01906104013323784,
0.017986135557293892,
0.0063363416120409966,
-0.01247585378587246,
-0.005650711711496115,
0.015618515200912952,
-0.02382245473563671,
0.028134627267718315,
0.03219667449593544,
-0.012762537226080894,
0.014682686887681484,
-0.016141703352332115,
-0.060718413442373276,
-0.014675910584628582,
-0.043559301644563675,
-0.03593413531780243,
0.0039641112089157104,
-0.04754726588726044,
-0.042487598955631256,
0.004038591403514147,
0.06308453530073166,
-0.003175671910867095,
0.008689096197485924,
-0.029423534870147705,
-0.013035477139055729,
-0.04317872226238251,
0.04016108810901642,
0.06471921503543854,
-0.0692552700638771,
0.019740786403417587,
-0.017812907695770264,
-0.004755011759698391,
0.03612867742776871,
-0.012999611906707287,
-0.058213092386722565,
-0.016676703467965126,
0.006890784949064255,
0.055969707667827606,
0.009000342339277267,
-0.03841186687350273,
-0.06172087416052818,
-0.004979461897164583,
-0.0066859303042292595,
0.01896764151751995,
-0.03326014056801796,
0.023797480389475822,
-0.04988238960504532,
-0.00919647328555584,
-0.018094157800078392,
-0.006049661431461573,
-0.04460735246539116,
0.04355716332793236,
0.01008447166532278,
-0.021381914615631104,
0.0009979312308132648,
0.02428891696035862,
0.03794265165925026,
-0.019500572234392166,
-0.0016507947584614158,
-0.03551606088876724,
0.006278181914240122,
-0.015470723621547222,
0.033909834921360016,
-0.017740514129400253,
-0.006616933271288872,
-0.024784086272120476,
-0.007347570266574621,
-0.030338477343320847,
-0.042602576315402985,
-0.00993019063025713,
-0.019302738830447197,
0.055363114923238754,
0.06074940040707588,
0.03463622182607651,
-0.015727706253528595,
-0.00005087495082989335,
-0.012287545949220657,
0.07772950083017349,
0.0069986628368496895,
-0.06068456545472145,
-0.0010535828769207,
-0.017775746062397957,
0.028512660413980484,
0.057011041790246964,
0.003966011106967926,
-0.043581657111644745,
0.04886659234762192,
0.04520239681005478,
0.0010397530859336257,
0.04916960000991821,
-0.003031065221875906,
0.040409836918115616,
-0.008686894550919533,
0.0030076231341809034,
-0.09072932600975037,
-0.038846757262945175,
0.05180862918496132,
0.022146033123135567,
-0.03448416292667389,
-0.02448607236146927,
-0.029372407123446465,
0.028870239853858948,
-0.05462530627846718,
-0.04248327761888504,
0.05095461755990982,
0.004507376812398434,
0.02012641727924347,
0.0140543757006526,
-0.03983684629201889,
-0.015386302024126053,
0.005393720231950283,
-0.0306475181132555,
-0.004614496137946844,
-0.013857862912118435,
0.04795047640800476,
-0.02327924594283104,
-0.008408770896494389,
-0.012935006991028786,
-0.0028910271357744932,
0.07102551311254501,
0.04959144443273544,
0.03992409631609917,
0.05770272761583328,
-0.05228276550769806,
0.035342223942279816,
0.02666737139225006,
-0.002789018675684929,
0.010199354961514473,
0.026802221313118935,
0.010563189163804054,
-0.02372538298368454,
-0.022240957245230675,
0.02224923111498356,
0.019755184650421143,
-0.07886789739131927,
0.05499556288123131,
0.0066770631819963455,
-0.05713605508208275,
-0.07870364189147949,
0.0030058349948376417,
-0.027181351557374,
0.0268695205450058,
-0.009241788648068905,
-0.0006532777915708721,
-0.0334443561732769,
0.04422343894839287,
-0.015193146653473377,
0.003062183503061533,
0.0706801563501358,
0.013297772966325283,
-0.0008338259067386389,
0.022445224225521088,
0.06898108869791031,
0.09908126294612885,
0.02708672732114792,
0.030132193118333817,
0.05877735838294029,
-0.008613933809101582,
-0.05200984701514244,
0.01857471652328968,
-0.03884223848581314,
0.02068721503019333,
-0.030430227518081665,
0.0010725026950240135,
0.043951842933893204,
-0.027273260056972504,
0.050981707870960236,
-0.009895751252770424,
-0.033086683601140976,
0.0030210381373763084,
-0.005581649485975504,
0.03800695389509201,
0.038239479064941406,
0.0025050612166523933,
0.05298866331577301,
0.010961099527776241,
-0.006584553513675928,
0.00962658692151308,
-0.011966370046138763,
-0.0029126752633601427,
0.004324009176343679,
0.006445020437240601,
-0.003663069335743785,
0.028346776962280273,
0.02101041190326214,
0.07977159321308136,
-0.022058144211769104,
-0.0013353298418223858,
-0.006088378373533487,
0.02588389255106449,
-0.04249586537480354,
-0.01120016723871231,
0.021999748423695564,
-0.03791758790612221,
-0.03475593402981758,
-0.0430004820227623,
-0.039640940725803375,
0.014950700104236603,
0.0010546032572165132,
-0.0066240387968719006,
-0.03710479661822319,
0.017329366877675056,
0.023076679557561874,
0.004618674051016569,
-0.03709688410162926,
-0.06390891224145889,
-0.05898958444595337,
-0.06739026308059692,
-0.0778663381934166,
0.014400300569832325,
0.008571704849600792,
-0.027880489826202393,
-0.037198543548583984,
-0.02842460572719574,
-0.025314385071396828,
-0.017232181504368782,
-0.007888848893344402,
-0.018615465611219406,
-0.04154041036963463,
0.039117418229579926,
-0.006871305871754885,
0.010081657208502293,
0.016924718394875526,
0.035577353090047836,
0.03021247126162052,
-0.0027278494089841843,
-0.002974557923153043,
0.013539308682084084,
0.018422503024339676,
0.015422037802636623,
0.014277816750109196,
-0.062197811901569366,
0.02464728243649006,
0.010054346174001694,
-0.0173738244920969,
-0.0733480453491211,
0.011519630439579487,
0.04615171626210213,
-0.005884123034775257,
0.05066303163766861,
-0.01616666279733181,
0.005546179600059986,
0.006825851276516914,
-0.01627233624458313,
-0.00603285850957036,
0.03660617396235466,
0.024911411106586456,
-0.05180223658680916,
0.03546256572008133,
0.03405113145709038,
0.012363349087536335,
-0.06451646983623505,
0.007751590106636286,
-0.03830650448799133,
-0.022501938045024872,
-0.06942474842071533,
-0.0486915186047554,
-0.07585125416517258,
-0.08073518425226212,
-0.012446566484868526,
-0.028903331607580185,
-0.06407403945922852,
-0.01762373000383377,
-0.008056544698774815,
0.013030590489506721,
-0.03697916865348816,
0.056747615337371826,
-0.0281454436480999,
0.06610020250082016,
-0.0389779694378376,
-0.0015176996821537614,
-0.009383337572216988,
0.025422804057598114,
0.003722479799762368,
-0.00842877384275198,
0.004273676313459873,
-0.03557908907532692,
0.012245750986039639,
-0.0038486411795020103,
0.014461839571595192,
0.053388986736536026,
0.00007844121137168258,
0.03259208798408508
] | [
-0.07748079299926758,
-0.009449725039303303,
-0.058783307671546936,
-0.0005653775879181921,
0.05384720489382744,
-0.030418269336223602,
-0.021895350888371468,
0.013416476547718048,
0.05270932614803314,
0.029075264930725098,
0.045179132372140884,
-0.0913383886218071,
0.030778784304857254,
-0.006298750638961792,
0.02205350250005722,
-0.03840777650475502,
-0.047875482589006424,
-0.019710322842001915,
-0.06377323716878891,
0.01042624469846487,
-0.03907233476638794,
-0.059632785618305206,
-0.03340998664498329,
-0.04623696208000183,
0.05961054190993309,
0.0354885458946228,
-0.0034078515600413084,
-0.048770252615213394,
-0.011254140175879002,
-0.22395050525665283,
-0.0074104913510382175,
0.054205480962991714,
0.02004091814160347,
-0.009369776584208012,
-0.0036770529113709927,
0.027733653783798218,
-0.002911021700128913,
0.00022791055380366743,
0.015841225162148476,
0.043607231229543686,
0.02092183753848076,
0.010192636400461197,
-0.016832934692502022,
-0.029056647792458534,
0.03413913771510124,
-0.006174014415591955,
-0.05904778465628624,
-0.042585112154483795,
0.02731344848871231,
0.02761656977236271,
-0.05328470468521118,
-0.006408654619008303,
-0.02808387763798237,
0.00907884445041418,
0.01691722683608532,
0.059683386236429214,
0.015388330444693565,
0.002530316822230816,
-0.02555042691528797,
0.044410206377506256,
0.03098774328827858,
0.003831257577985525,
-0.1461169421672821,
0.09519045054912567,
0.05107007175683975,
0.048328228294849396,
-0.05177784711122513,
-0.003570596221834421,
-0.017307689413428307,
0.060532279312610626,
-0.024591557681560516,
-0.02188240736722946,
-0.02281295880675316,
0.06705421209335327,
0.017381126061081886,
-0.0015157968737185001,
-0.04240253567695618,
0.02545187622308731,
0.023167474195361137,
-0.02748010866343975,
0.00023515002976637334,
0.007844016887247562,
-0.00838394183665514,
0.007652583997696638,
0.017281198874115944,
0.010541374795138836,
-0.03130769357085228,
0.0063723353669047356,
-0.03257441893219948,
0.012962172739207745,
0.027800967916846275,
0.02662692777812481,
0.04891220107674599,
0.052557703107595444,
-0.06769852340221405,
-0.007504668086767197,
0.028310289606451988,
0.017067505046725273,
-0.0009422750445082784,
0.39231494069099426,
-0.011859983205795288,
-0.022914445027709007,
0.00374724087305367,
0.05342841520905495,
-0.0076057943515479565,
-0.018553297966718674,
-0.017045313492417336,
-0.03340539708733559,
0.00029134005308151245,
-0.010542591102421284,
-0.013991202227771282,
-0.029050681740045547,
0.04946207255125046,
-0.09126584231853485,
0.025459766387939453,
-0.003023335011675954,
0.022930003702640533,
-0.0022792534437030554,
0.004270685371011496,
0.02104445919394493,
-0.010356137529015541,
-0.025266438722610474,
0.024044565856456757,
0.0379638597369194,
0.027352726086974144,
-0.020330877974629402,
0.036254871636629105,
0.07817048579454422,
0.044475872069597244,
0.030663948506116867,
0.06380823254585266,
-0.017622627317905426,
-0.10410351306200027,
0.0062808683142066,
-0.029276316985487938,
-0.000593081465922296,
0.022307904437184334,
-0.011398488655686378,
-0.00950564630329609,
0.005953486543148756,
-0.018986769020557404,
-0.02593560516834259,
0.016737811267375946,
0.013554755598306656,
-0.03892252966761589,
0.13830174505710602,
0.005157029256224632,
-0.023824483156204224,
-0.042852144688367844,
-0.0653044730424881,
0.001127402065321803,
0.035369645804166794,
0.002718318020924926,
-0.01014581136405468,
-0.0002572680823504925,
-0.0005221308674663305,
0.053406912833452225,
-0.049269262701272964,
-0.09424243122339249,
-0.04654821380972862,
-0.03212805464863777,
-0.05249307304620743,
-0.07369165122509003,
0.032939765602350235,
0.03885919973254204,
-0.04090122506022453,
-0.04427609592676163,
0.02782493084669113,
0.01565193012356758,
-0.05479717254638672,
0.029109058901667595,
0.011829319410026073,
-0.03705785796046257,
0.0030023606959730387,
0.07591310888528824,
0.019280359148979187,
-0.03135676309466362,
0.005695027764886618,
0.057268377393484116,
0.006065831985324621,
-0.0004208196187391877,
0.01563086174428463,
-0.027951309457421303,
0.04655870422720909,
-0.04598027840256691,
-0.0921076089143753,
-0.07126963138580322,
0.013895312324166298,
-0.026151513680815697,
-0.02361873909831047,
-0.028122195973992348,
-0.01603814959526062,
-0.0459100641310215,
0.06071408465504646,
-0.07623955607414246,
-0.03793128952383995,
0.06546682119369507,
-0.009632115252315998,
-0.008677012287080288,
-0.04281949624419212,
0.0076574599370360374,
-0.0008187462808564305,
0.034233033657073975,
0.026128187775611877,
-0.028528939932584763,
0.021524880081415176,
0.041194576770067215,
-0.051745761185884476,
0.067073754966259,
0.04779127612709999,
0.023516951128840446,
0.021666210144758224,
-0.021865462884306908,
0.015715450048446655,
-0.01148195005953312,
-0.006554687395691872,
0.033297859132289886,
-0.04324645549058914,
0.03243078663945198,
0.01806577481329441,
0.023874517530202866,
-0.07092546671628952,
-0.011564269661903381,
-0.35482659935951233,
-0.025151848793029785,
0.01898869313299656,
-0.022187182679772377,
0.025883395224809647,
-0.05020328611135483,
0.014886440709233284,
0.028321655467152596,
-0.003997154533863068,
0.07106571644544601,
0.0104652876034379,
-0.017431464046239853,
-0.006534652318805456,
-0.052030086517333984,
0.012464658357203007,
0.024533161893486977,
0.012843440286815166,
-0.011835470795631409,
-0.019161822274327278,
0.02296200953423977,
-0.014593666419386864,
-0.012060810811817646,
-0.013970857486128807,
-0.031102033331990242,
0.05168784782290459,
-0.020335502922534943,
0.1509014368057251,
-0.017469245940446854,
0.05241132155060768,
-0.030515268445014954,
0.008762521669268608,
0.006917361170053482,
-0.024831432849168777,
-0.0005521783605217934,
0.03623530641198158,
-0.06111735850572586,
-0.025647325441241264,
0.06787026673555374,
-0.0288707222789526,
-0.016554834321141243,
-0.00871359370648861,
-0.01172926090657711,
-0.02214956097304821,
-0.020578602328896523,
0.005041209049522877,
0.007317781448364258,
0.001732605742290616,
-0.003860601456835866,
-0.03661732375621796,
0.07191840559244156,
0.033609405159950256,
-0.004935126751661301,
0.029951857402920723,
0.039149682968854904,
0.05692758783698082,
0.0229105893522501,
-0.06406772881746292,
0.02777925133705139,
-0.009425436146557331,
-0.015588701702654362,
0.01978614367544651,
0.03908320888876915,
0.055037971585989,
-0.08279244601726532,
-0.03974016755819321,
0.0022395881824195385,
0.02689410001039505,
-0.001040225150063634,
0.015965087339282036,
0.014508131891489029,
-0.01410196628421545,
0.10160268843173981,
-0.009065491147339344,
0.03627174720168114,
0.030557120218873024,
0.06862165778875351,
-0.04875583201646805,
0.0017435583285987377,
-0.021986162289977074,
0.02644531987607479,
0.04708937928080559,
-0.05618802830576897,
0.03650946170091629,
-0.018313094973564148,
0.05290808528661728,
0.03913562372326851,
0.017171107232570648,
-0.022243285551667213,
0.04228954762220383,
0.06168462708592415,
-0.0026264777407050133,
-0.05585053190588951,
0.018493056297302246,
-0.042657218873500824,
0.06102192401885986,
-0.007073262240737677,
-0.2963769733905792,
0.017292775213718414,
0.02397231012582779,
0.014138150960206985,
-0.01098407432436943,
0.01271816249936819,
-0.0096406489610672,
-0.05190678685903549,
-0.025222158059477806,
0.02170128934085369,
-0.029429059475660324,
0.05194785073399544,
0.042523693293333054,
-0.05215674266219139,
0.008982213214039803,
-0.01623677648603916,
0.05613366886973381,
-0.033063698559999466,
0.03347814083099365,
-0.00880914181470871,
0.01647895947098732,
-0.06790824234485626,
0.14629988372325897,
0.020059501752257347,
-0.0015119826421141624,
-0.009500335901975632,
-0.02369140274822712,
-0.026517225429415703,
0.08438289910554886,
0.016193723306059837,
0.008701796643435955,
0.02658613957464695,
0.05109701678156853,
-0.0032176359090954065,
0.01899571530520916,
0.000938070414122194,
-0.042375702410936356,
0.05532051622867584,
0.029254233464598656,
-0.053354471921920776,
-0.006922692060470581,
0.025084996595978737,
-0.034430406987667084,
0.010537258349359035,
0.04759577661752701,
-0.02087651565670967,
-0.003073860192671418,
-0.042999934405088425,
-0.0012819737894460559,
-0.013498038984835148,
-0.01956474781036377,
0.03820653632283211,
0.0007926351972855628,
-0.02532438561320305,
0.008824881166219711,
0.026856843382120132,
0.010607370175421238,
-0.017564808949828148,
0.019885454326868057,
-0.021303825080394745,
-0.004621894098818302,
-0.0757388025522232,
0.1040632575750351,
0.006992981303483248,
0.028375938534736633
] | [
0.013276488520205021,
0.0021342027466744184,
-0.00805261917412281,
0.002168339677155018,
0.01105452235788107,
-0.0488235242664814,
0.017439892515540123,
-0.03680391609668732,
0.004999825265258551,
0.012507063336670399,
-0.03191239386796951,
-0.0002935488591901958,
0.04301919788122177,
-0.010583639144897461,
-0.011445543728768826,
-0.007566577754914761,
0.0021101643797010183,
0.000624456035438925,
0.02635132521390915,
-0.033123791217803955,
-0.032453421503305435,
0.03295561671257019,
0.027769288048148155,
0.00807996280491352,
-0.008848967961966991,
0.05793813616037369,
-0.031006012111902237,
0.012419994920492172,
0.015224739909172058,
-0.11660914868116379,
-0.052177973091602325,
-0.008755173534154892,
0.0011335526360198855,
-0.006626881659030914,
-0.0618782639503479,
-0.03885352239012718,
-0.06214195117354393,
0.10424434393644333,
0.01069464348256588,
0.037394724786281586,
-0.014443866908550262,
0.03295339643955231,
0.05000216141343117,
0.05193868651986122,
-0.0032633752562105656,
-0.002309366362169385,
-0.03399989381432533,
-0.04901779815554619,
-0.0035428970586508512,
-0.005571543704718351,
-0.04341193661093712,
0.023031111806631088,
-0.005147733725607395,
-0.021631039679050446,
-0.008790082298219204,
-0.03609321266412735,
-0.05679801106452942,
-0.042361948639154434,
0.024688854813575745,
0.0061734141781926155,
0.015806226059794426,
0.017725694924592972,
-0.018572214990854263,
-0.0027391084004193544,
0.051045212894678116,
-0.018768465146422386,
-0.06285547465085983,
0.00003409156124689616,
0.0027891886420547962,
0.003770266892388463,
-0.01495656743645668,
-0.02755063958466053,
0.01344713382422924,
-0.0168745256960392,
-0.025157306343317032,
0.04733211547136307,
0.025768976658582687,
-0.042541105300188065,
0.019401278346776962,
0.016730332747101784,
-0.035006243735551834,
0.021033266559243202,
-0.015124008059501648,
0.036382369697093964,
0.0023626466281712055,
-0.04981709271669388,
0.015139897353947163,
-0.003289039945229888,
-0.01956276409327984,
-0.02144443616271019,
0.009085878729820251,
0.04759892821311951,
0.01639396883547306,
-0.02049177698791027,
-0.08405385911464691,
-0.006811700761318207,
-0.008409589529037476,
0.004916496574878693,
-0.016077732667326927,
0.790783166885376,
0.02518794871866703,
0.020779673010110855,
-0.01315237395465374,
0.00963643379509449,
-0.006813266314566135,
-0.02115439809858799,
0.002485923934727907,
-0.007319291587918997,
0.004124180879443884,
0.03312710300087929,
0.013894693925976753,
0.017674272879958153,
0.03717837855219841,
0.04724711552262306,
0.028070921078324318,
0.05380985513329506,
0.035031985491514206,
-0.03150469437241554,
0.012153132818639278,
-0.010624057613313198,
-0.006825682241469622,
-0.013419358059763908,
0.041502613574266434,
0.0002852906472980976,
0.011406410485506058,
-0.13976988196372986,
-0.011538161896169186,
-5.773746867278848e-33,
-0.022386133670806885,
-0.04489023983478546,
0.012431477196514606,
-0.0003578374453354627,
0.022101087495684624,
-0.02308744005858898,
-0.01510388683527708,
-0.02113216742873192,
0.015219178050756454,
-0.013375493697822094,
-0.014572600834071636,
0.04643290489912033,
0.01907741278409958,
-0.038713451474905014,
-0.019590133801102638,
-0.005815038923174143,
0.03324901685118675,
-0.010324954986572266,
-0.02045101299881935,
-0.011151939630508423,
0.018484653905034065,
0.04955890402197838,
0.013523143716156483,
0.02922271564602852,
0.03240584209561348,
0.014850378967821598,
0.0056802392937242985,
-0.054371509701013565,
0.021314682438969612,
-0.03913233056664467,
-0.03074207901954651,
0.010434220544993877,
-0.006176449358463287,
0.013148183934390545,
0.004688231274485588,
-0.07957666367292404,
0.008063097484409809,
-0.0002770146238617599,
0.02167353592813015,
-0.00166447798255831,
-0.03227692097425461,
-0.03331945464015007,
-0.024023445323109627,
0.004167757462710142,
-0.017587685957551003,
-0.033099833875894547,
0.0410286970436573,
0.11293932050466537,
-0.030407467857003212,
0.04772135242819786,
0.0011010663583874702,
-0.009437745437026024,
0.023242289200425148,
-0.014406650327146053,
-0.05633668974041939,
0.04634012654423714,
-0.031087972223758698,
-0.030905164778232574,
0.015959901735186577,
0.04713254049420357,
-0.0377693697810173,
0.0061340732499957085,
-0.01748831570148468,
0.01790335774421692,
-0.0322708822786808,
0.009094656445086002,
-0.005558561999350786,
-0.06965185701847076,
0.0679047554731369,
-0.016592860221862793,
0.014552307315170765,
-0.0004664722364395857,
-0.014429844915866852,
-0.028117608278989792,
0.040310584008693695,
-0.007810282986611128,
0.0062287007458508015,
-0.00397533131763339,
0.0054421257227659225,
0.028644125908613205,
0.023165898397564888,
-0.0014494323404505849,
-0.035016197711229324,
0.013677679933607578,
0.0031154071912169456,
-0.004407980479300022,
0.04013863950967789,
0.029919318854808807,
-0.003662174567580223,
0.016800332814455032,
0.024414991959929466,
-0.0217242781072855,
-0.015130513347685337,
-0.05992474406957626,
0.030794339254498482,
6.312645640257602e-33,
0.04480932652950287,
-0.01249806210398674,
-0.022571612149477005,
-0.004576660227030516,
0.0343359149992466,
-0.06977913528680801,
0.05292944982647896,
0.007605420891195536,
0.0013314427342265844,
0.007070641033351421,
0.010719109326601028,
-0.018497461453080177,
0.007564411964267492,
0.027125852182507515,
0.02116367407143116,
0.013419326394796371,
0.014195638708770275,
-0.01355704851448536,
-0.03973931074142456,
0.010818018577992916,
-0.0013898985926061869,
-0.0035226461477577686,
-0.00008635302947368473,
0.03619265928864479,
0.021047845482826233,
0.04523846134543419,
0.0017625422915443778,
-0.02288554050028324,
-0.02108212560415268,
-0.019191624596714973,
-0.016764912754297256,
0.02367761917412281,
0.01723317615687847,
-0.047502998262643814,
-0.0537673719227314,
0.02202102355659008,
0.011534002609550953,
0.008732182905077934,
-0.04846469685435295,
-0.015623028390109539,
0.016936887055635452,
0.018739547580480576,
-0.021561171859502792,
0.02672591060400009,
0.01905682496726513,
0.03154541552066803,
0.015401002950966358,
0.05143370479345322,
0.010398867540061474,
-0.015453405678272247,
0.002380095422267914,
-0.019326774403452873,
0.014616092666983604,
-0.02450511045753956,
0.04084156081080437,
-0.011421204544603825,
-0.007323069032281637,
-0.012837161310017109,
-0.008415693417191505,
0.0005035495269112289,
0.01011312659829855,
0.00849379412829876,
-0.021701764315366745,
-0.05558554455637932,
-0.034311048686504364,
0.004050741903483868,
-0.01815730519592762,
-0.011141840368509293,
0.00025351965450681746,
0.0010139747755602002,
-0.0008181424345821142,
-0.033463262021541595,
0.033277325332164764,
-0.02188412845134735,
0.015871824696660042,
0.03908195346593857,
-0.026493828743696213,
-0.01681545190513134,
0.04435160011053085,
0.007177312858402729,
0.025325419381260872,
-0.04856790974736214,
0.05771643668413162,
0.010844803415238857,
-0.00007928386912681162,
0.011691550724208355,
-0.025340015068650246,
0.004860824905335903,
0.059059757739305496,
0.0017428526189178228,
-0.006931203417479992,
-0.05138884112238884,
-0.02556912787258625,
0.047034233808517456,
0.0076310113072395325,
-1.1989015114011181e-8,
0.01883375272154808,
0.011969377286732197,
-0.02664284035563469,
0.012632692232728004,
0.04106086120009422,
0.0493910051882267,
-0.013795490376651287,
-0.009154236875474453,
0.02698938362300396,
0.02815689519047737,
0.02980652265250683,
0.006879475899040699,
-0.024586137384176254,
0.027244815602898598,
0.02031269669532776,
0.02073836512863636,
0.08117979764938354,
-0.01946086250245571,
0.028770869597792625,
-0.019770238548517227,
-0.019793298095464706,
0.046268969774246216,
-0.054122794419527054,
0.016641587018966675,
0.058139216154813766,
-0.01040663756430149,
-0.03820035234093666,
-0.09873617440462112,
0.01802312396466732,
-0.03828973323106766,
-0.0044806962832808495,
-0.03310848027467728,
0.006891090888530016,
-0.016742542386054993,
-0.005832887254655361,
-0.025665661320090294,
0.03888654708862305,
0.028380420058965683,
0.011896507814526558,
-0.01982581615447998,
-0.035710059106349945,
0.015351423993706703,
-0.055315133184194565,
-0.047219667583703995,
-0.032897595316171646,
0.0034045798238366842,
-0.03837424889206886,
0.01123742014169693,
0.031773898750543594,
-0.08300704509019852,
-0.009639847092330456,
-0.03665829077363014,
-0.019625194370746613,
0.04243205487728119,
0.029614083468914032,
-0.019341595470905304,
0.0019859676249325275,
-0.007113712839782238,
-0.010045989416539669,
-0.03311607614159584,
0.01014156173914671,
0.039392996579408646,
-0.011662815697491169,
-0.045580796897411346
] | r-dplyr-update-rows-with-earlierprevious-rows-values | https://markhneedham.com/blog/2015/06/28/r-dplyr-update-rows-with-earlierprevious-rows-values |
false | 2015-06-17 17:23:10 | Coding: Explore and retreat | [
"coding"
] | [
"Coding"
] | When refactoring code or looking for the best way to integrate a new piece of functionality I generally favour a small steps/incremental approach but recent experiences have led me to believe that this isn't always the quickest approach.
Sometimes it seems to make more sense to go on little discovery missions in the code, make some bigger steps and then if necessary retreat and revert our changes and apply the lessons learnt on our next discovery mission. This technique which isn't anything novel but I think is quite effective.
https://twitter.com/mesirii[Michael] and I were recently looking at the http://www.ludowaltman.nl/slm/[Smart Local Moving algorithm] which is used for community detection in large networks and decided to refactor the code to make sure we understood how it worked. When we started the outline of the main class was https://github.com/mneedham/slm/blob/3e8468f3598ce9f61b2be32e2953890d1d497a4b/src/main/java/Network.java[like this]:
[source,java]
----
public class Network implements Cloneable, Serializable
{
private static final long serialVersionUID = 1;
private int numberOfNodes;
private int[] firstNeighborIndex;
private int[] neighbor;
private double[] edgeWeight;
private double totalEdgeWeightSelfLinks;
private double[] nodeWeight;
private int nClusters;
private int[] cluster;
private double[] clusterWeight;
private int[] numberNodesPerCluster;
private int[][] nodePerCluster;
private boolean clusteringStatsAvailable;
...
}
----
My initial approach was to put methods around things to make it a bit easier to understand and then step by step replace each of those fields with nodes and relationships. I spent the first couple of hours doing this and while it was making the code more readable it wasn't progressing very quickly and I wasn't much wiser about how the code worked.
Michael and I paired on it for a few hours and he adopted a slightly different but more successful approach where we looked at slightly bigger chunks of code e.g. all the loops that used the +++<cite>+++firstNeighborIndex+++</cite>+++ field and then created a hypothesis of what that code was doing.
In this case +++<cite>+++firstNeighborIndex+++</cite>+++ acts as an offset into +++<cite>+++neighbor+++</cite>+++ and is used to iterate through a node's relationships. We thought we could probably replace that with something more similar to the http://neo4j.com/[Neo4j] model where you have classes for nodes and relationships and a node has a method which returns a collection of relationships.
We tried tearing out everywhere that used those two fields and replacing them with our new nodes/relationships code but that didn't work because we hadn't realised that +++<cite>+++edgeWeight+++</cite>+++ and +++<cite>+++nodeWeight+++</cite>+++ are also tied to the contents of the original fields.
We therefore needed to retreat and try again. This time I put the new approach alongside the existing approach and then slowly replaced existing bits of code.
Along the way I came up with other ideas about how to restructure the code, tried some more bigger leaps to validate my ideas and then moved back into incremental mode again.
In summary I've found the combination of incrementally changing code and going on bigger exploratory missions works quite well.
Now I'm trying to work out when each approach is appropriate and I'll write that up when I learn more! You can see my progress https://github.com/mneedham/slm/commits/master[via the github commits]. | null | null | [
0.010793955996632576,
-0.019430765882134438,
-0.0013960818760097027,
0.02764885313808918,
0.08310283720493317,
0.016269639134407043,
0.04046762362122536,
0.02903822436928749,
-0.0011030449531972408,
-0.020382601767778397,
0.008096231147646904,
-0.02405601367354393,
-0.06531191617250443,
0.008874459192156792,
-0.03866817429661751,
0.07223465293645859,
0.08575073629617691,
-0.017282890155911446,
0.023374419659376144,
0.018502188846468925,
-0.003377225948497653,
0.07767603546380997,
-0.005697352811694145,
0.03847391530871391,
0.014426148496568203,
0.009062528610229492,
0.011029438115656376,
0.0013367641950026155,
-0.06622760742902756,
-0.022189820185303688,
0.06240293011069298,
0.004983787424862385,
0.03559640049934387,
-0.0032808221876621246,
0.01599467545747757,
-0.023269550874829292,
-0.027589932084083557,
0.023281365633010864,
0.0030704436358064413,
0.01308464165776968,
-0.07393462210893631,
0.038769979029893875,
-0.017959820106625557,
0.011468303389847279,
-0.03548019006848335,
-0.005120014306157827,
-0.05507032945752144,
0.0012589257676154375,
-0.008016171865165234,
0.00275643658824265,
-0.07341397553682327,
0.025677019730210304,
-0.01999051123857498,
0.000569545547477901,
-0.009213337674736977,
0.058477018028497696,
0.0334656648337841,
-0.07025323063135147,
0.031696680933237076,
-0.05873316898941994,
-0.006221076473593712,
-0.024409862235188484,
0.010038142092525959,
0.031466178596019745,
0.014132297597825527,
-0.019083432853221893,
0.00016076942847575992,
0.04625479876995087,
-0.035293977707624435,
-0.0027223986107856035,
0.0011701002949848771,
0.008375962264835835,
-0.026066850870847702,
-0.01232901494950056,
0.007031917572021484,
-0.05247872322797775,
-0.019308682531118393,
0.06816320866346359,
0.010251739993691444,
0.040517039597034454,
-0.026812195777893066,
0.006102731451392174,
0.0028516268357634544,
0.017972279340028763,
0.028753338381648064,
-0.02825101837515831,
-0.030047031119465828,
-0.01803359016776085,
-0.059247732162475586,
0.054435767233371735,
0.010864724405109882,
-0.04799656569957733,
0.009404034353792667,
0.03678504377603531,
0.01419882196933031,
0.014212507754564285,
0.014410882256925106,
-0.0006366873276419938,
0.005920570809394121,
-0.009400551207363605,
-0.023756101727485657,
-0.027977988123893738,
0.00414297915995121,
0.004149953369051218,
-0.08365074545145035,
-0.01910295896232128,
-0.026998046785593033,
-0.007094556000083685,
-0.009883251041173935,
0.0018743088003247976,
-0.03225987032055855,
0.013871434144675732,
-0.03885982930660248,
0.014661929570138454,
-0.07114434987306595,
0.07000251859426498,
0.00956827774643898,
-0.028474263846874237,
-0.03261922672390938,
0.0037555170711129904,
0.05695365369319916,
0.03805304691195488,
0.0011942402925342321,
0.1020558625459671,
-0.011165298521518707,
0.02035762183368206,
-0.015326221473515034,
0.06356316059827805,
-0.018535373732447624,
-0.04986899718642235,
-0.016025390475988388,
0.04882490262389183,
-0.006468246690928936,
-0.009177209809422493,
-0.0005339490016922355,
-0.04966539144515991,
-0.014184624888002872,
0.029417598620057106,
0.019035441800951958,
0.01679527387022972,
-0.0004677577526308596,
-0.04915650561451912,
0.03307456895709038,
-0.004599281121045351,
0.0026594579685479403,
-0.0005880907410755754,
0.0010505089303478599,
-0.029310666024684906,
-0.029272805899381638,
0.007452114950865507,
-0.009642140008509159,
0.06383412331342697,
0.022593606263399124,
-0.053612835705280304,
0.02434915117919445,
0.11241035163402557,
0.01120019145309925,
0.014252807013690472,
-0.004909609444439411,
0.03768931329250336,
0.04304046556353569,
0.025759199634194374,
0.0005117307882755995,
0.00960204191505909,
0.021167654544115067,
-0.014068328775465488,
0.015053315088152885,
0.044714346528053284,
0.0027356415521353483,
0.003861204255372286,
-0.05840625241398811,
-0.049590110778808594,
0.05036144331097603,
-0.05622120946645737,
-0.01662231609225273,
0.019733242690563202,
0.08170410245656967,
0.013045509345829487,
0.03176368027925491,
0.006671317853033543,
-0.07264705002307892,
0.011663791723549366,
0.0011945880251005292,
0.005537631921470165,
0.021859532222151756,
-0.01322807278484106,
0.0604935921728611,
0.026731347665190697,
0.00006386911263689399,
0.02803797461092472,
-0.08230657875537872,
-0.07240372151136398,
-0.020606566220521927,
-0.006642522756010294,
0.06662803143262863,
-0.01090853288769722,
0.01014070212841034,
0.04459729418158531,
0.0028168235439807177,
0.040989626199007034,
0.03514156863093376,
-0.0024886911269277334,
-0.0009167531970888376,
-0.040301620960235596,
-0.04967507719993591,
0.033205464482307434,
0.03957409784197807,
-0.027695173397660255,
-0.05612699314951897,
0.010291286744177341,
-0.015169124118983746,
-0.009269176051020622,
0.024167077615857124,
-0.029218420386314392,
0.04933834820985794,
0.018878811970353127,
0.019723083823919296,
-0.02128884755074978,
0.07814110815525055,
-0.06299424916505814,
0.0039054544176906347,
-0.006444728467613459,
-0.0188455693423748,
0.009387784637510777,
0.011663323268294334,
0.12072904407978058,
0.05796712264418602,
-0.06374488025903702,
-0.054834503680467606,
0.043409090489149094,
0.02533409371972084,
-0.0717356726527214,
0.004840242210775614,
-0.03327663987874985,
0.014497777447104454,
-0.0043057408183813095,
-0.04779369384050369,
-0.03532388061285019,
0.011418910697102547,
-0.04472782462835312,
0.006578420288860798,
0.07039222121238708,
-0.026624299585819244,
0.05690222978591919,
0.007267529144883156,
-0.02430475503206253,
-0.006213676650077105,
-0.04567147418856621,
-0.05579489842057228,
0.03389701247215271,
0.01772279478609562,
-0.007698169909417629,
0.06103339418768883,
-0.034676771610975266,
-0.03060251474380493,
-0.03325057774782181,
-0.01454969309270382,
-0.0012143661733716726,
0.031116457656025887,
0.08132612705230713,
0.0029381774365901947,
0.04500853270292282,
-0.0031106234528124332,
0.0009643096127547324,
-0.011696687899529934,
-0.04990821331739426,
-0.019179940223693848,
-0.02965327724814415,
0.021128764376044273,
0.027886277064681053,
-0.0064361821860075,
0.024175472557544708,
0.009159501641988754,
0.0008445890853181481,
-0.016329489648342133,
-0.04033578932285309,
0.046301040798425674,
-0.005926553159952164,
-0.01841885969042778,
-0.026902714744210243,
-0.03415852412581444,
0.04475976526737213,
-0.04273576661944389,
-0.032367121428251266,
0.008517095819115639,
-0.06214064732193947,
0.06598348170518875,
-0.07021471112966537,
-0.05367140471935272,
0.0031475548166781664,
0.03535826876759529,
0.0497148260474205,
-0.01892007142305374,
0.025653734803199768,
0.08804575353860855,
0.0003367144090589136,
0.012745997868478298,
0.0013222474372014403,
0.0018077214481309056,
0.030500777065753937,
0.003792815376073122,
0.00472751259803772,
0.01805214397609234,
-0.0012844217708334327,
-0.02676442451775074,
-0.01482316106557846,
0.03716648370027542,
-0.0041898987255990505,
-0.258643239736557,
0.028234431520104408,
-0.01668764464557171,
-0.06271194666624069,
0.003612486645579338,
-0.010925576090812683,
0.002076056320220232,
-0.027379997074604034,
-0.009142104536294937,
0.026546001434326172,
-0.020044498145580292,
-0.06070859730243683,
-0.027155159041285515,
0.04949118569493294,
-0.004010172560811043,
0.015476510860025883,
-0.0012025516480207443,
-0.02314109168946743,
-0.003144608810544014,
0.06486696749925613,
-0.01234151516109705,
-0.06819000095129013,
0.01249194610863924,
0.033960890024900436,
0.03138088807463646,
0.05713522434234619,
-0.10012205690145493,
0.04200948029756546,
-0.04702141135931015,
-0.01096008624881506,
0.003299216739833355,
-0.018923232331871986,
-0.0020474169868975878,
-0.04231859743595123,
-0.025028521195054054,
-0.015811609104275703,
0.008777029812335968,
0.022161003202199936,
-0.015345743857324123,
0.03310994803905487,
-0.028358256444334984,
-0.026111824437975883,
-0.03243286535143852,
0.016389820724725723,
0.08236255496740341,
0.0001555473281769082,
-0.06195535510778427,
-0.002575254999101162,
-0.02828250639140606,
0.07662055641412735,
-0.03411116078495979,
-0.03201199322938919,
0.011419146321713924,
0.024384522810578346,
-0.016853947192430496,
-0.03720981255173683,
-0.010245399549603462,
-0.001344333402812481,
-0.03251422569155693,
-0.02554217167198658,
-0.008884163573384285,
-0.04617760330438614,
-0.002065029926598072,
-0.048478562384843826,
0.0021080398000776768,
-0.06361096352338791,
-0.05719933658838272,
-0.0009322566911578178,
0.07875887304544449,
0.00882377102971077,
-0.025609884411096573,
0.020575540140271187,
0.003990044351667166,
-0.10876770317554474,
-0.007833289913833141,
-0.035001080483198166,
-0.017985885962843895,
-0.021386202424764633,
-0.008418496698141098,
0.05225365608930588,
-0.03269463777542114,
-0.042204536497592926,
0.022837767377495766,
0.01412337925285101,
0.026446081697940826,
-0.004617858678102493,
0.0033858525566756725,
-0.006313807796686888,
-0.018321353942155838,
-0.004202690906822681,
0.06622933596372604,
-0.00831114687025547,
-0.028834344819188118,
-0.04733534902334213,
0.026864228770136833,
0.02084607630968094,
0.022072816267609596,
-0.012706022709608078,
0.005143088288605213,
0.05527932569384575,
0.025757743045687675,
-0.056897103786468506,
0.05262752249836922,
-0.013211027719080448,
-0.005542280152440071,
-0.007855376228690147,
-0.06879996508359909,
0.017270898446440697,
0.04049507528543472,
0.024596842005848885,
-0.0026387833058834076,
-0.029678506776690483,
0.0005621163873001933,
-0.047321707010269165,
-0.03109319880604744,
-0.026226865127682686,
0.006008918397128582,
0.030995149165391922,
-0.0036263144575059414,
-0.01481801737099886,
-0.06006884574890137,
0.018526462838053703,
0.018381452187895775,
-0.0026797703467309475,
-0.05683550238609314,
-0.04286550357937813,
-0.02859865128993988,
-0.0007739564753137529,
0.01999182440340519,
0.018066611140966415,
-0.007567900698632002,
0.05254225805401802,
0.013927149586379528,
-0.03722139075398445,
0.011055509559810162,
-0.008852213621139526,
-0.04074748978018761,
-0.030432168394327164,
-0.009297783486545086,
-0.004862720612436533,
0.0022092449944466352,
0.03639230504631996,
0.011356590315699577,
0.02684287540614605,
0.030983878299593925,
0.008526909165084362,
0.06220078468322754,
-0.009255127049982548,
0.010054540820419788,
-0.0014099245890974998,
0.005767818074673414,
-0.06735022366046906,
0.03328762948513031,
-0.05018463358283043,
-0.027364768087863922,
-0.04065373167395592,
0.032869189977645874,
-0.036716584116220474,
-0.032606616616249084,
-0.01255802158266306,
0.021620910614728928,
-0.038401708006858826,
-0.029255608096718788,
-0.01642508991062641,
0.00689064571633935,
0.06554440408945084,
-0.02237391471862793,
0.017949000000953674,
-0.023798801004886627,
-0.03878585249185562,
0.001436721533536911,
-0.01763129234313965,
-0.054244447499513626,
0.008633806370198727,
0.012113761156797409,
0.005197042133659124,
0.0020978720858693123,
-0.006002240348607302,
0.026103420183062553,
0.02821633405983448,
-0.005700487177819014,
-0.02293459139764309,
0.007847531698644161,
0.011060100980103016,
0.04954034835100174,
-0.004306409507989883,
0.014752013608813286,
-0.006409077905118465,
-0.0033298551570624113,
-0.0011999575654044747,
-0.03309161961078644,
-0.01289505697786808,
0.006949075032025576,
0.04370172321796417,
-0.02986966259777546,
-0.07225192338228226,
0.02865714021027088,
0.03930722177028656,
0.024721454828977585,
0.010110537521541119,
-0.01273322757333517,
0.015356170944869518,
-0.02280503325164318,
0.04208655282855034,
0.0664219930768013,
-0.06293173879384995,
0.024936160072684288,
0.007827992551028728,
0.013246230781078339,
0.006843274459242821,
0.002363826846703887,
-0.052579596638679504,
-0.018759358674287796,
-0.026796754449605942,
0.003926372621208429,
-0.02119048684835434,
-0.03302592411637306,
-0.011034736409783363,
0.0205824114382267,
-0.016374610364437103,
-0.01479350682348013,
-0.009813765995204449,
0.005351793020963669,
-0.021523477509617805,
-0.009958409704267979,
0.025720080360770226,
-0.03271098807454109,
0.02549111098051071,
0.016790026798844337,
-0.019166259095072746,
0.025529984384775162,
-0.025745436549186707,
0.029119424521923065,
0.026196042075753212,
-0.013826525770127773,
-0.008804870769381523,
-0.055652983486652374,
0.008111740462481976,
0.0031308906618505716,
0.04984760656952858,
0.0004177065275143832,
-0.0022885273210704327,
-0.04119649529457092,
-0.018096204847097397,
-0.04582596197724342,
0.008104674518108368,
-0.025396956130862236,
-0.0043100155889987946,
0.020860828459262848,
0.05442384257912636,
0.02294258400797844,
0.03919386863708496,
-0.011249707080423832,
-0.00020884114201180637,
0.08081546425819397,
-0.07038474082946777,
-0.03126372769474983,
-0.029263820499181747,
-0.05683779716491699,
-0.004905153997242451,
0.005950110033154488,
0.022379284724593163,
-0.04194414243102074,
0.03616112843155861,
0.029078468680381775,
0.016655441373586655,
0.010294930078089237,
-0.013859410770237446,
0.03862287476658821,
-0.04723266884684563,
0.013202461414039135,
-0.08666573464870453,
0.008835938759148121,
0.04434582218527794,
0.0021131830289959908,
0.004903535824269056,
-0.0258086659014225,
-0.028924839571118355,
0.0029651776421815157,
-0.08319135755300522,
-0.0227454025298357,
0.047779981046915054,
0.013451392762362957,
0.017612002789974213,
0.017326703295111656,
-0.05887654796242714,
0.023907896131277084,
0.018025055527687073,
-0.05604640021920204,
-0.011385179124772549,
-0.038485221564769745,
0.05027193948626518,
0.016756398603320122,
0.01951482519507408,
-0.031508248299360275,
0.0019341091392561793,
0.07638370990753174,
0.01068017166107893,
0.028210464864969254,
0.049719687551259995,
-0.01002340205013752,
0.0646282359957695,
0.05614429712295532,
-0.013859649188816547,
-0.02123970352113247,
0.022507017478346825,
-0.0009537177393212914,
-0.05517255887389183,
0.030443290248513222,
0.02514624409377575,
-0.04373951256275177,
-0.05933824181556702,
0.06753018498420715,
0.034343741834163666,
-0.03330714628100395,
-0.024036945775151253,
0.019841264933347702,
-0.07045100629329681,
0.006861476693302393,
-0.024431338533759117,
-0.012994049116969109,
-0.03525566682219505,
0.06112448498606682,
-0.003579503856599331,
-0.013723989017307758,
0.07497557997703552,
0.004580956883728504,
-0.016114739701151848,
-0.01954037696123123,
0.09911537915468216,
0.07913289964199066,
0.0516279861330986,
-0.01176940742880106,
0.055499833077192307,
-0.01756400801241398,
-0.03102743625640869,
0.026408208534121513,
-0.013310510665178299,
-0.03542368859052658,
-0.01707645319402218,
0.03226481378078461,
0.0572257824242115,
0.0027043612208217382,
0.05685356631875038,
-0.04645831137895584,
-0.0006599866901524365,
0.012485170736908913,
0.01766969822347164,
0.02094668708741665,
0.0629969909787178,
0.010293643921613693,
0.025593355298042297,
-0.02121635153889656,
-0.032298699021339417,
0.010705306194722652,
-0.016924869269132614,
-0.01272927038371563,
0.026719538494944572,
0.0029126231092959642,
0.0028389692306518555,
0.033152926713228226,
0.01875944621860981,
0.09559796750545502,
-0.016964828595519066,
-0.0024341698735952377,
-0.02355421707034111,
0.030854126438498497,
0.015336314216256142,
-0.006875212304294109,
-0.018607672303915024,
-0.024331042543053627,
0.008306450210511684,
-0.023903686553239822,
-0.0111366156488657,
0.0013819396262988448,
-0.0005432600737549365,
0.035913605242967606,
0.0009201181237585843,
0.011928067542612553,
0.02591482736170292,
0.024486420676112175,
-0.045452576130628586,
-0.06388936191797256,
-0.05236181616783142,
-0.06440821290016174,
-0.052137017250061035,
-0.02530868537724018,
0.011649968102574348,
-0.013358702883124352,
-0.03282766044139862,
-0.01296696625649929,
-0.04388466104865074,
-0.02565477415919304,
0.03327321633696556,
-0.0552346408367157,
-0.013055076822638512,
0.03239038959145546,
0.026515571400523186,
0.03731854259967804,
0.02278989553451538,
0.04623771458864212,
-0.006590168457478285,
0.004923011176288128,
-0.022013118490576744,
-0.0015852006617933512,
0.03517715260386467,
0.007268011569976807,
0.014373905956745148,
-0.0718451589345932,
0.020353296771645546,
0.02475183829665184,
-0.010099012404680252,
-0.05898662656545639,
0.022116227075457573,
0.028377974405884743,
0.011435231193900108,
0.052552442997694016,
-0.02320597507059574,
-0.01523139514029026,
-0.03170698136091232,
-0.0019822893664240837,
-0.007226720452308655,
0.01148198638111353,
0.059727009385824203,
-0.020145157352089882,
0.07857391983270645,
0.030033519491553307,
-0.009945196099579334,
-0.03975364565849304,
-0.007597754709422588,
-0.007260613609105349,
-0.014523600228130817,
-0.03865804150700569,
-0.0486387275159359,
-0.028233710676431656,
-0.08453360199928284,
0.0023820458445698023,
0.01691179722547531,
-0.005563627928495407,
-0.030324257910251617,
0.02852702885866165,
0.04453709349036217,
-0.04778923839330673,
0.015043784864246845,
-0.04510660097002983,
0.05490933731198311,
-0.028522023931145668,
-0.013511452823877335,
0.003724121954292059,
-0.0033606586512178183,
-0.012711219489574432,
0.01841842010617256,
0.03737844526767731,
-0.03153187409043312,
0.019407805055379868,
0.0043872082605957985,
0.04219411686062813,
0.033029280602931976,
0.012840738520026207,
-0.022246399894356728
] | [
-0.08074003458023071,
-0.03904391825199127,
-0.04308636859059334,
-0.02968311309814453,
0.05372842028737068,
-0.044016409665346146,
-0.03769825026392937,
0.01609322614967823,
-0.009843330830335617,
-0.008082466199994087,
0.04113604500889778,
-0.04452817142009735,
0.00743598910048604,
-0.020768705755472183,
0.09672757238149643,
0.017941858619451523,
0.0016867794329300523,
-0.034524641931056976,
0.01228583324700594,
0.008974370546638966,
-0.010623523965477943,
-0.016021104529500008,
-0.03488859906792641,
-0.011029873974621296,
0.04646309092640877,
0.053627558052539825,
0.02373378351330757,
-0.04455156624317169,
-0.0039619565941393375,
-0.20399312674999237,
0.019678959622979164,
0.011391297914087772,
0.08025278151035309,
0.008261971175670624,
-0.0020210579968988895,
0.059052303433418274,
0.03148652985692024,
0.010250960476696491,
-0.041110094636678696,
0.06885959208011627,
0.015427256934344769,
0.02279389649629593,
-0.03184117376804352,
-0.01596997305750847,
0.01316229160875082,
0.004543279763311148,
0.003685103030875325,
-0.029667051509022713,
-0.025421420112252235,
-0.0032244338653981686,
-0.05869286507368088,
-0.05359996482729912,
-0.03873685374855995,
0.009069956839084625,
0.010372317396104336,
0.032731298357248306,
0.051571037620306015,
0.0761028304696083,
0.028982503339648247,
0.022134697064757347,
0.03269672393798828,
0.009499927051365376,
-0.11721023917198181,
0.08244047313928604,
0.05768578127026558,
0.03778234124183655,
-0.010068032890558243,
-0.04314270243048668,
0.02165229618549347,
0.09934461861848831,
0.024185512214899063,
0.035386573523283005,
-0.0227308701723814,
0.046296875923871994,
0.02236749976873398,
0.01718287356197834,
-0.007141103968024254,
0.04598166421055794,
0.03916774317622185,
-0.03525540605187416,
-0.069010891020298,
-0.025878772139549255,
-0.00010215384827461094,
-0.01457156240940094,
-0.04116692394018173,
-0.00023080389655660838,
-0.03470273315906525,
0.03390857204794884,
0.02636152319610119,
0.022671176120638847,
0.04284559562802315,
0.0035856568720191717,
0.01991085335612297,
-0.013946344144642353,
-0.07974269986152649,
-0.008641958236694336,
-0.00524509372189641,
-0.00907810963690281,
-0.019846346229314804,
0.4059935212135315,
-0.02089601196348667,
-0.014699839055538177,
0.06788603216409683,
0.035358965396881104,
-0.008548122830688953,
-0.05050108954310417,
-0.004988454282283783,
-0.05476658418774605,
0.03966546803712845,
-0.001983568537980318,
0.00030910802888683975,
-0.014469750225543976,
0.042218539863824844,
-0.04764782637357712,
0.006669515278190374,
0.04474331811070442,
0.027125412598252296,
0.048641107976436615,
-0.0012471983209252357,
0.013089853338897228,
-0.021131133660674095,
-0.0017383494414389133,
0.040352776646614075,
0.0008671204559504986,
0.009854812175035477,
-0.020451368764042854,
-0.01191379502415657,
0.04198552295565605,
0.04677256941795349,
0.02642614021897316,
0.05877285823225975,
-0.0036341873928904533,
-0.07389015704393387,
-0.00044249382335692644,
0.013717176392674446,
0.03062187321484089,
0.036871131509542465,
-0.04150424152612686,
-0.030883418396115303,
0.014421812258660793,
0.002712029265239835,
0.010822831653058529,
0.05188619717955589,
-0.03018772602081299,
-0.05919160321354866,
0.12130094319581985,
0.002341985236853361,
-0.023839836940169334,
-0.010570692829787731,
-0.053272735327482224,
-0.003057994181290269,
0.014634591527283192,
-0.03078944981098175,
-0.06181112676858902,
0.0038186521269381046,
0.005852246191352606,
0.0978957936167717,
-0.019096998497843742,
-0.06751709431409836,
0.0019737952388823032,
-0.03611868992447853,
-0.0029440107755362988,
-0.05382073298096657,
0.07137079536914825,
0.06632094830274582,
-0.10062664747238159,
0.007922898046672344,
-0.0053400201722979546,
0.01862853392958641,
-0.06505519896745682,
-0.02390250563621521,
0.03483743593096733,
0.01345242839306593,
-0.008704053238034248,
0.02066543698310852,
-0.021770469844341278,
-0.05880009010434151,
-0.016064556315541267,
0.03897283598780632,
0.014596149325370789,
0.0001693731901468709,
0.016005603596568108,
-0.022936144843697548,
0.012562553398311138,
-0.044813841581344604,
-0.08501416444778442,
-0.06878191232681274,
0.02407947927713394,
-0.05142531543970108,
0.00568891316652298,
-0.05524497479200363,
-0.017858831211924553,
-0.07067126780748367,
0.06048046052455902,
-0.021772973239421844,
-0.05015341937541962,
0.01686624251306057,
-0.016826868057250977,
-0.0167717132717371,
-0.015757467597723007,
-0.006931413430720568,
0.0482618622481823,
-0.008929234929382801,
0.002165568294003606,
-0.0785922110080719,
0.048232585191726685,
0.054646555334329605,
-0.05366550758481026,
0.08692343533039093,
0.05112813040614128,
-0.02914811298251152,
-0.02511543221771717,
-0.00415272219106555,
0.004995007533580065,
0.003218158846721053,
-0.03368385136127472,
0.012619472108781338,
0.03683626279234886,
0.02420903369784355,
0.03012140654027462,
-0.029429389163851738,
-0.020552193745970726,
-0.027340784668922424,
-0.3401647210121155,
-0.07006283849477768,
0.013925285078585148,
-0.008252326399087906,
0.007863982580602169,
-0.07153601199388504,
0.02383173257112503,
-0.039961762726306915,
-0.0017620865255594254,
-0.013118453323841095,
0.07659101486206055,
-0.0114089110866189,
0.004670305177569389,
-0.06822067499160767,
-0.004379916470497847,
0.014085827395319939,
-0.018212120980024338,
-0.013867242261767387,
-0.036992114037275314,
0.005559734534472227,
0.008160662837326527,
-0.01064754743129015,
0.006563908886164427,
-0.08295264095067978,
-0.013167698867619038,
-0.042514462023973465,
0.09125056862831116,
-0.028352703899145126,
0.10155466943979263,
-0.02565043605864048,
0.030566027387976646,
0.0011285109212622046,
0.0008160238503478467,
-0.07719145715236664,
-0.006074230186641216,
0.001387262251228094,
0.019370215013623238,
0.010162357240915298,
0.014021014794707298,
-0.023931803181767464,
-0.06897681206464767,
-0.00847668293863535,
-0.05671713873744011,
-0.06524517387151718,
-0.05397582799196243,
0.019488032907247543,
-0.041921466588974,
-0.04528431221842766,
0.011575608514249325,
0.04340001568198204,
0.00006494298577308655,
-0.0018029878847301006,
0.029507365077733994,
-0.004858237691223621,
-0.0019342771265655756,
-0.02136962115764618,
-0.0575532466173172,
0.020774712786078453,
0.01890266314148903,
-0.023044878616929054,
0.014803942292928696,
0.048392996191978455,
-0.0043515851721167564,
-0.06630067527294159,
0.06256074458360672,
-0.011915762908756733,
-0.00867884885519743,
-0.0077643315307796,
0.030446110293269157,
-0.03984161466360092,
-0.01440416369587183,
0.11972228437662125,
0.013993135653436184,
-0.011375205591320992,
0.027102727442979813,
0.023875903338193893,
-0.0167634729295969,
0.015745023265480995,
0.0028560850769281387,
-0.005356082692742348,
0.0548139289021492,
-0.025041798129677773,
0.03993406146764755,
-0.023751286789774895,
-0.03402110934257507,
0.031964901834726334,
-0.015944574028253555,
-0.03231225907802582,
0.018181046470999718,
0.026308787986636162,
-0.010306830517947674,
0.0031875502318143845,
-0.030068183317780495,
-0.05328840762376785,
0.04061098396778107,
-0.034129511564970016,
-0.2591548264026642,
0.007545860484242439,
0.039941608905792236,
0.053468745201826096,
-0.011382042430341244,
0.0380055233836174,
0.046194110065698624,
-0.04618782922625542,
0.019542468711733818,
-0.0011145157041028142,
0.00849850382655859,
0.027951253578066826,
0.03782637417316437,
0.00841976236552,
0.06297401338815689,
-0.016538703814148903,
0.017537854611873627,
0.01932400092482567,
0.011804754845798016,
-0.021438786759972572,
0.010853514075279236,
0.005162497516721487,
0.1885337084531784,
-0.005989092867821455,
0.0226264838129282,
0.06068713963031769,
0.006462451070547104,
0.01161746121942997,
0.08867963403463364,
-0.008584128692746162,
-0.010772673413157463,
-0.0023271210957318544,
0.05897461995482445,
0.0015227533876895905,
0.03426066413521767,
-0.06051832437515259,
0.006918757688254118,
0.04449184611439705,
-0.0018022931180894375,
-0.015663808211684227,
0.023663712665438652,
0.009065876714885235,
-0.014065796509385109,
0.03615143150091171,
0.08672664314508438,
-0.003407170996069908,
-0.007230416405946016,
-0.03990965336561203,
-0.06209663301706314,
0.02472088113427162,
-0.06441107392311096,
-0.03182864189147949,
-0.003052942920476198,
-0.026354186236858368,
0.011414127424359322,
0.08872833847999573,
-0.005419800989329815,
-0.006792145315557718,
-0.053199511021375656,
0.006836526095867157,
0.01597721502184868,
-0.028506217524409294,
0.11352981626987457,
0.014529955573379993,
0.031875818967819214
] | [
0.01695716567337513,
-0.006738461088389158,
0.0021911333315074444,
0.014938630163669586,
0.01210621278733015,
0.009455770254135132,
0.003521099453791976,
0.0002560967404861003,
-0.026467902585864067,
0.0037591143045574427,
0.015049883164465427,
0.010090688243508339,
0.03389810025691986,
-0.06609097868204117,
-0.019617712125182152,
0.00008756719034863636,
0.02216903120279312,
0.010155122727155685,
0.04507740959525108,
-0.03586071729660034,
-0.03182656690478325,
0.007620634511113167,
0.025237170979380608,
0.007430982775986195,
0.01128876768052578,
0.04331567510962486,
-0.026498865336179733,
0.01582546904683113,
0.03207755833864212,
-0.08818820118904114,
-0.01625015027821064,
-0.020467430353164673,
-0.0003649948048405349,
0.0326370969414711,
-0.03709247708320618,
0.006031536962836981,
0.015389795415103436,
0.03448420763015747,
-0.018702877685427666,
0.009755827486515045,
0.008260628208518028,
-0.037074651569128036,
-0.006581573281437159,
-0.03408372774720192,
-0.02010689303278923,
-0.028004692867398262,
-0.03293716162443161,
0.00021114086848683655,
-0.024913957342505455,
-0.033593472093343735,
-0.017711475491523743,
-0.004668547306209803,
-0.002848405158147216,
0.010802540928125381,
0.06319188326597214,
0.008749212138354778,
-0.02649063616991043,
-0.015774622559547424,
0.001189323142170906,
-0.031809963285923004,
0.030842330306768417,
-0.004928582813590765,
-0.02264253795146942,
-0.018540184944868088,
0.00526695279404521,
-0.006060063373297453,
-0.005597845651209354,
0.002437482587993145,
0.03729565069079399,
-0.00969550758600235,
0.02208051271736622,
0.05152558535337448,
-0.012261180207133293,
-0.008845803327858448,
-0.005960179027169943,
0.015164433047175407,
0.009632674045860767,
-0.017019951716065407,
0.005799477454274893,
0.01704389974474907,
-0.045349057763814926,
-0.0026770520489662886,
0.036240220069885254,
-0.007101628463715315,
0.012520886026322842,
-0.002923891879618168,
-0.01228710450232029,
-0.02185792662203312,
0.019232118502259254,
0.002067567314952612,
-0.01990777999162674,
0.05790741369128227,
-0.023194363340735435,
0.00011092884233221412,
-0.09665923565626144,
0.011722210794687271,
-0.052678339183330536,
-0.019785795360803604,
0.020805297419428825,
0.8361732363700867,
-0.02263524755835533,
0.0053551639430224895,
0.02042180486023426,
0.011666059494018555,
0.03612234443426132,
0.007985132746398449,
0.006564028561115265,
-0.0011903500417247415,
0.020183872431516647,
0.003559092292562127,
0.026564327999949455,
0.017620641738176346,
0.00663749547675252,
0.030153051018714905,
-0.007691140286624432,
0.025957882404327393,
0.04861408844590187,
0.03966192156076431,
-0.023447640240192413,
-0.008619687519967556,
-0.005010224413126707,
-0.01856360398232937,
-0.011348091065883636,
0.0016248435713350773,
0.012101098895072937,
-0.1605169028043747,
-0.04817987605929375,
-7.343334515421939e-33,
0.021565429866313934,
-0.02188238687813282,
0.02836727537214756,
-0.012424120679497719,
0.0068244365975260735,
-0.022703342139720917,
-0.013620134443044662,
0.003049833932891488,
-0.015665670856833458,
-0.04340764507651329,
-0.0008282649214379489,
-0.006647475063800812,
0.049325887113809586,
-0.011644911952316761,
0.03286769613623619,
-0.0453566312789917,
0.03411289304494858,
0.019410444423556328,
0.031003611162304878,
-0.00784583855420351,
0.0274701826274395,
0.0012740262318402529,
0.025693906471133232,
0.011785372160375118,
0.009247957728803158,
0.03629870340228081,
0.03708789125084877,
-0.03532158583402634,
0.03785279765725136,
-0.03735571727156639,
-0.04060807451605797,
0.021311184391379356,
-0.0011352236615493894,
0.013272758573293686,
0.02991778962314129,
-0.03431413322687149,
-0.0044608572497963905,
0.0011284011416137218,
-0.008671395480632782,
-0.0521012619137764,
-0.06314395368099213,
0.01591292768716812,
-0.006477575749158859,
-0.06348156183958054,
-0.014885220676660538,
-0.0022383572068065405,
-0.0061339689418673515,
0.021918484941124916,
0.017123665660619736,
0.0038659677375108004,
0.0099726477637887,
-0.0067644277587533,
-0.013278378173708916,
0.017609575763344765,
-0.021779222413897514,
0.04400425776839256,
0.015543188899755478,
0.022801773622632027,
0.012316820211708546,
0.04114888235926628,
0.012309552170336246,
-0.0034776325337588787,
-0.0029734077397733927,
0.00009373592183692381,
0.029059825465083122,
-0.01717480830848217,
-0.0023894922342151403,
0.0065941717475652695,
0.036340996623039246,
0.006160328164696693,
-0.0313858836889267,
0.024509835988283157,
-0.013057333417236805,
0.025925427675247192,
0.01648302748799324,
-0.017951849848031998,
-0.013169989921152592,
-0.03160448372364044,
-0.034270815551280975,
0.006982002407312393,
-0.0121537446975708,
-0.03111903928220272,
-0.01755715161561966,
-0.026665503159165382,
0.003190554678440094,
-0.017730724066495895,
-0.010404770262539387,
0.00204280111938715,
0.01033206470310688,
0.018901769071817398,
0.04625603184103966,
0.040256280452013016,
-0.032537318766117096,
-0.008150043897330761,
-0.06180066615343094,
7.49953861286302e-33,
-0.009068566374480724,
-0.004953299183398485,
-0.02767820842564106,
-0.0007925708196125925,
0.009605827741324902,
-0.022670255973935127,
-0.013795757666230202,
0.018552741035819054,
-0.04088498279452324,
0.035515379160642624,
-0.009443006478250027,
-0.02064693160355091,
-0.009348440915346146,
0.010937525890767574,
0.07680945098400116,
-0.055953606963157654,
0.03414250537753105,
-0.013349205255508423,
0.014947746880352497,
0.008505024947226048,
0.018217364326119423,
0.006235283799469471,
-0.007151952013373375,
-0.013442120514810085,
0.05108089745044708,
0.04109641909599304,
-0.015904169529676437,
0.02504066191613674,
-0.02447611652314663,
0.002145149279385805,
0.00874655693769455,
-0.0184425450861454,
0.005493247415870428,
-0.019114168360829353,
0.005245547741651535,
0.043285712599754333,
-0.001171585638076067,
-0.00892653875052929,
0.02587144635617733,
-0.015431997366249561,
0.010733003728091717,
-0.004031239543110132,
-0.026554066687822342,
0.06157350167632103,
0.003946943674236536,
-0.0077109490521252155,
0.03706539049744606,
0.023697977885603905,
-0.04900994151830673,
-0.027220401912927628,
0.00870500411838293,
0.012397971004247665,
0.0024052311200648546,
0.04659571498632431,
0.023175759240984917,
0.006917599122971296,
0.00890161469578743,
0.009256388060748577,
-0.0158364437520504,
-0.0340287983417511,
-0.008495938964188099,
-0.050975386053323746,
-0.0595543310046196,
0.026003871113061905,
-0.01975100114941597,
-0.03273974731564522,
0.007193395867943764,
-0.05449096858501434,
-0.043596670031547546,
0.011072996072471142,
-0.0369892343878746,
0.03467009216547012,
-0.019029725342988968,
0.042552415281534195,
0.013281070627272129,
-0.03617652505636215,
-0.01098194345831871,
0.03026491589844227,
-0.030627403408288956,
0.018560174852609634,
-0.0019172962056472898,
0.003955742344260216,
-0.003619155380874872,
-0.018814336508512497,
0.027913333848118782,
-0.008820858784019947,
-0.010146690532565117,
0.01874050311744213,
0.007090062368661165,
-0.024966442957520485,
-0.017314685508608818,
0.02903136797249317,
-0.04971087723970413,
0.0133481714874506,
-0.0318983756005764,
-1.2807793936531198e-8,
-0.04568934440612793,
0.008861650712788105,
-0.03472932428121567,
0.024404391646385193,
0.05377105623483658,
0.04521737992763519,
-0.006443066522479057,
0.014459286816418171,
-0.04859992489218712,
0.008188358508050442,
0.019344326108694077,
-0.004958782810717821,
-0.00047027491382323205,
-0.019328949972987175,
0.007651248946785927,
-0.03411000594496727,
-0.01169034093618393,
-0.02330694906413555,
0.021019749343395233,
0.03227652981877327,
0.026654087007045746,
0.031991906464099884,
-0.042081255465745926,
0.044433750212192535,
0.000743366836104542,
-0.038215525448322296,
0.014176631346344948,
-0.0883147269487381,
-0.013969416730105877,
-0.0015123164048418403,
-0.02008020132780075,
-0.031297314912080765,
0.009629590436816216,
0.052706409245729446,
-0.023863937705755234,
-0.004556943196803331,
0.0016343692550435662,
0.04325202479958534,
0.030621303245425224,
0.01662101037800312,
-0.013715219683945179,
0.026604998856782913,
-0.01944618858397007,
-0.02840436063706875,
-0.0012533371336758137,
0.026644231751561165,
-0.004561924375593662,
-0.00038086765562184155,
0.044680651277303696,
-0.035536088049411774,
0.0039273276925086975,
-0.01806108094751835,
0.03300001472234726,
0.025294842198491096,
0.011745801195502281,
0.0038435335736721754,
-0.011500662192702293,
-0.034841518849134445,
0.008992640301585197,
0.036698807030916214,
0.015150797553360462,
0.0012234618188813329,
-0.06313306093215942,
-0.03477541729807854
] | coding-explore-and-retreat | https://markhneedham.com/blog/2015/06/17/coding-explore-and-retreat |
false | 2015-06-19 21:38:47 | R: Regex - capturing multiple matches of the same group | [
"r-2"
] | [
"R"
] | I've been playing around with some web logs using R and I wanted to extract everything that existed in double quotes within a logged entry.
This is an example of a log entry that I want to parse:
[source,r]
----
log = '2015-06-18-22:277:548311224723746831\t2015-06-18T22:00:11\t2015-06-18T22:00:05Z\t93317114\tip-127-0-0-1\t127.0.0.5\tUser\tNotice\tneo4j.com.access.log\t127.0.0.3 - - [18/Jun/2015:22:00:11 +0000] "GET /docs/stable/query-updating.html HTTP/1.1" 304 0 "http://neo4j.com/docs/stable/cypher-introduction.html" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.124 Safari/537.36"'
----
And I want to extract these 3 things:
* /docs/stable/query-updating.html
* http://neo4j.com/docs/stable/cypher-introduction.html
* Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.124 Safari/537.36
i.e. the URI, the referrer and browser details.
I'll be using the +++<cite>+++stringr+++</cite>+++ library which seems to work quite well for this type of work.
To extract these values we need to find all the occurrences of double quotes and get the text inside those quotes. We might start by using the +++<cite>+++str_match+++</cite>+++ function:
[source,r]
----
> library(stringr)
> str_match(log, "\"[^\"]*\"")
[,1]
[1,] "\"GET /docs/stable/query-updating.html HTTP/1.1\""
----
Unfortunately that only picked up the first occurrence of the pattern so we've got the URI but not the referrer or browser details. I tried +++<cite>+++str_extract+++</cite>+++ with similar results before I found +++<cite>+++str_extract_all+++</cite>+++ which does the job:
[source,r]
----
> str_extract_all(log, "\"[^\"]*\"")
[[1]]
[1] "\"GET /docs/stable/query-updating.html HTTP/1.1\""
[2] "\"http://neo4j.com/docs/stable/cypher-introduction.html\""
[3] "\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.124 Safari/537.36\""
----
We still need to do a bit of cleanup to get rid of the 'GET' and 'HTTP/1.1' in the URI and the quotes in all of them:
[source,r]
----
parts = str_extract_all(log, "\"[^\"]*\"")[[1]]
uri = str_match(parts[1], "GET (.*) HTTP")[2]
referer = str_match(parts[2], "\"(.*)\"")[2]
browser = str_match(parts[3], "\"(.*)\"")[2]
> uri
[1] "/docs/stable/query-updating.html"
> referer
[1] "https://www.google.com/"
> browser
[1] "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.124 Safari/537.36"
----
We could then go on to split out the browser string into its sub components but that'll do for now! | null | null | [
0.015237185172736645,
-0.0022000535391271114,
0.005258656572550535,
0.025693941861391068,
0.09178803861141205,
0.007446249481290579,
0.034329526126384735,
0.03867634758353233,
0.027792934328317642,
-0.004472778178751469,
-0.029184188693761826,
0.012750476598739624,
-0.05319514125585556,
-0.008035530336201191,
-0.00970966275781393,
0.06251659989356995,
0.047721605747938156,
0.000836655031889677,
0.013539949432015419,
-0.042871858924627304,
0.040637943893671036,
0.03933441638946533,
0.002997365780174732,
0.028951024636626244,
0.0488724447786808,
0.00022047122183721513,
0.009190975688397884,
-0.006814437452703714,
-0.04951321333646774,
0.02603122778236866,
0.0732927918434143,
0.03803199529647827,
-0.01444536168128252,
-0.029156234115362167,
0.03182997182011604,
0.037430912256240845,
-0.01724754460155964,
-0.01895185187458992,
0.014668846502900124,
0.0077457064762711525,
-0.04173962026834488,
0.01505394745618105,
-0.03654800355434418,
0.043778665363788605,
-0.05869314819574356,
0.019693946465849876,
-0.044155772775411606,
0.033200912177562714,
0.012912550941109657,
0.020809032022953033,
-0.09027855098247528,
0.03718659281730652,
-0.014331457205116749,
-0.01739334687590599,
-0.035070281475782394,
0.07886854559183121,
0.003443976631388068,
-0.05965961515903473,
0.03317383676767349,
-0.016735704615712166,
-0.027847815304994583,
-0.012649687938392162,
-0.019098708406090736,
0.04941999912261963,
-0.03287629783153534,
-0.016828954219818115,
0.01414136029779911,
0.03027135133743286,
-0.050447601824998856,
-0.008869413286447525,
-0.01585097424685955,
0.009219364263117313,
-0.042067740112543106,
0.018780076876282692,
0.016564782708883286,
0.00047690427163615823,
-0.026287579908967018,
0.05972771346569061,
-0.006861681584268808,
0.07270396500825882,
-0.03575710579752922,
-0.0055928910151124,
0.01409384049475193,
0.001238828175701201,
-0.0013846867950633168,
-0.02361905388534069,
-0.021298730745911598,
0.006387853529304266,
-0.07069436460733414,
0.020809611305594444,
0.0021697250194847584,
-0.06704717129468918,
0.006148751825094223,
0.028568973764777184,
-0.03893114626407623,
0.025888729840517044,
0.016617730259895325,
-0.024194126948714256,
-0.011316475458443165,
-0.038586266338825226,
-0.04355501011013985,
-0.01661573350429535,
0.012855774722993374,
-0.0007167712319642305,
-0.08203573524951935,
-0.013356072828173637,
-0.016605397686362267,
-0.014507105574011803,
0.006696275435388088,
-0.01680539734661579,
-0.017702633515000343,
-0.005150207784026861,
-0.025452597066760063,
-0.012915975414216518,
-0.07397937774658203,
0.05283655971288681,
0.01750688999891281,
-0.006101585458964109,
-0.0004268562188372016,
0.037335872650146484,
0.02578931674361229,
0.0032606504391878843,
0.00551430182531476,
0.05439702048897743,
0.013641060329973698,
0.04874880239367485,
0.006859175395220518,
0.036690082401037216,
-0.016967162489891052,
-0.06096862629055977,
-0.04324382171034813,
0.0650850310921669,
-0.006766414735466242,
0.027432966977357864,
0.003325937082991004,
-0.008152922615408897,
-0.04358790069818497,
-0.0028478424064815044,
0.06990165263414383,
0.0327116996049881,
0.01428452879190445,
-0.05251668393611908,
-0.022373154759407043,
-0.017369581386446953,
0.023314353078603745,
-0.003372610779479146,
-0.05801691114902496,
-0.0173844825476408,
-0.04545538127422333,
0.016366560012102127,
0.014005203731358051,
-0.006872748490422964,
0.06679437309503555,
-0.0037513854913413525,
0.0048828390426933765,
0.09280502796173096,
0.033000487834215164,
0.008819962851703167,
-0.01779821328818798,
-0.00461021950468421,
0.05278754606842995,
0.050234876573085785,
-0.031646471470594406,
0.058890365064144135,
-0.022056421265006065,
-0.012564318254590034,
-0.009558468125760555,
0.027651334181427956,
-0.04462055861949921,
0.016077091917395592,
-0.04213952273130417,
-0.0572749599814415,
0.09635497629642487,
-0.031386129558086395,
-0.016963263973593712,
0.04426972195506096,
0.06878131628036499,
0.011901735328137875,
0.05388614907860756,
0.0068427505902945995,
-0.06418287754058838,
0.0564909465610981,
0.015671243891119957,
0.017430303618311882,
0.04668557271361351,
0.007940753363072872,
0.08886919170618057,
0.01988036371767521,
-0.0034075183793902397,
0.018552394583821297,
-0.09554118663072586,
-0.09423568844795227,
-0.01861879974603653,
-0.01216588169336319,
0.06979783624410629,
-0.04340830817818642,
0.0017106726299971342,
0.03956376388669014,
0.02020743303000927,
0.004722694866359234,
-0.015417997725307941,
0.004006671719253063,
0.03489554673433304,
-0.022516073659062386,
-0.06463003903627396,
0.03610954433679581,
0.023296251893043518,
-0.040529582649469376,
-0.0029290886595845222,
-0.00833398848772049,
-0.01989572122693062,
0.0646313726902008,
0.0045903511345386505,
-0.03145650029182434,
0.036225274205207825,
0.0270853228867054,
0.028680307790637016,
-0.008499703370034695,
0.007029138505458832,
-0.02401292324066162,
0.03250925987958908,
-0.028188467025756836,
-0.010292458347976208,
-0.010519695468246937,
0.01807536743581295,
0.1352485567331314,
0.04542471095919609,
-0.0013925075763836503,
-0.03726775199174881,
0.02703656628727913,
-0.021150965243577957,
-0.025330698117613792,
0.019623786211013794,
-0.025165123865008354,
-0.025739630684256554,
0.0144961504265666,
-0.02495625615119934,
-0.005884938407689333,
0.007120709400624037,
-0.016148196533322334,
0.023412201553583145,
0.04608825966715813,
-0.013331502676010132,
0.036966051906347275,
0.0025767378974705935,
0.007731086108833551,
0.0035141627304255962,
-0.03442489728331566,
-0.048710696399211884,
-0.03006422519683838,
0.03592732921242714,
-0.007409767713397741,
0.025783458724617958,
-0.0561235286295414,
0.008793763816356659,
-0.027006836608052254,
-0.04180767387151718,
0.024344634264707565,
0.0445215217769146,
0.030594367533922195,
-0.009292732924222946,
0.021977392956614494,
-0.0427912175655365,
0.03995911031961441,
0.004560214001685381,
-0.04617413878440857,
-0.050449952483177185,
-0.050643082708120346,
0.016647500917315483,
0.023212412372231483,
0.0005046939477324486,
0.00704572768881917,
0.011659117415547371,
0.021916305646300316,
0.024947049096226692,
-0.01561120618134737,
0.036262523382902145,
0.00569597352296114,
-0.016714569181203842,
-0.02293434366583824,
-0.01837931014597416,
0.02806749939918518,
-0.06302846223115921,
-0.04632120952010155,
-0.03592634201049805,
-0.07898466289043427,
0.035610467195510864,
-0.04375389218330383,
-0.022431518882513046,
-0.004076805897057056,
0.001514639938250184,
0.04310353472828865,
0.026264548301696777,
0.038136277347803116,
0.047532789409160614,
0.0209120512008667,
0.03676607087254524,
0.03529663383960724,
0.033828023821115494,
0.04389296472072601,
0.0005164301837794483,
0.010466748848557472,
0.054004378616809845,
-0.009398197755217552,
0.024512939155101776,
-0.028219636529684067,
-0.0008070110343396664,
-0.04618195444345474,
-0.27662089467048645,
0.01908198930323124,
-0.024799713864922523,
-0.042358625680208206,
0.003949944861233234,
-0.04857542738318443,
0.018418822437524796,
-0.06221248209476471,
-0.007533388677984476,
0.008417867124080658,
0.009219438768923283,
-0.01753215678036213,
-0.001959261717274785,
0.023728162050247192,
-0.018375171348452568,
0.016058558598160744,
0.0005227697547525167,
-0.03213755786418915,
0.0033672633580863476,
0.04483042284846306,
0.042212340980768204,
-0.03480476140975952,
0.016525443643331528,
0.026733936741948128,
0.014484884217381477,
0.03205215930938721,
-0.0713219940662384,
0.023546384647488594,
-0.034114859998226166,
-0.019938772544264793,
0.03121025860309601,
-0.022007152438163757,
0.00806446187198162,
-0.009845285676419735,
-0.0034753091167658567,
-0.003825114108622074,
0.06052681431174278,
0.02155214361846447,
0.031200671568512917,
0.03938967362046242,
-0.036354515701532364,
-0.05437746271491051,
0.014348037540912628,
-0.04311683401465416,
0.052235040813684464,
0.013230186887085438,
-0.048956822603940964,
-0.0186528991907835,
0.007938829250633717,
0.08861306309700012,
-0.050722770392894745,
-0.012353324331343174,
-0.05164298787713051,
0.03767944127321243,
0.014285656623542309,
-0.03449474647641182,
-0.032665353268384933,
-0.010816681198775768,
-0.038630351424217224,
-0.027905402705073357,
0.03813861310482025,
-0.0173509381711483,
-0.007030325476080179,
-0.04958108440041542,
-0.039850831031799316,
-0.06439287960529327,
-0.05219879373908043,
-0.028363756835460663,
0.04727103188633919,
0.01214482169598341,
-0.029195811599493027,
0.04873921722173691,
0.003613061737269163,
-0.09678638726472855,
-0.037163104861974716,
-0.06532657146453857,
-0.0024246920365840197,
0.009345808997750282,
-0.013536463491618633,
0.05249679833650589,
-0.06025009602308273,
-0.03319475054740906,
0.0011832232121378183,
0.009228069335222244,
0.02644178830087185,
-0.03993619978427887,
-0.029355216771364212,
-0.04779113084077835,
-0.020559728145599365,
-0.0467781238257885,
0.07225015014410019,
-0.05555129423737526,
-0.02947675809264183,
-0.0037294751964509487,
0.025142699480056763,
0.020683666691184044,
0.02706652693450451,
-0.01127819437533617,
0.04778551310300827,
0.05052011460065842,
0.03200950846076012,
-0.023717449977993965,
0.01855616457760334,
-0.0932067409157753,
-0.03043466806411743,
-0.006602058187127113,
-0.035480499267578125,
0.01452935952693224,
0.02329549565911293,
-0.008444512262940407,
-0.032545410096645355,
-0.016099564731121063,
-0.004861093126237392,
-0.04263518750667572,
-0.026060353964567184,
-0.015450391918420792,
0.04026326909661293,
0.016014665365219116,
0.02884562499821186,
-0.06001317501068115,
-0.03676510229706764,
-0.0075386445969343185,
0.029636811465024948,
-0.04055517166852951,
-0.05616959556937218,
-0.023189498111605644,
0.01811859756708145,
-0.01726810820400715,
-0.003151867538690567,
-0.003020197618752718,
-0.037266988307237625,
0.007303004618734121,
0.048783861100673676,
0.0010785969207063317,
0.04447494447231293,
-0.023387817665934563,
0.00038664109888486564,
-0.011346365325152874,
0.02095646783709526,
0.020069733262062073,
-0.028224274516105652,
0.0007028732215985656,
0.009946663863956928,
0.050535257905721664,
0.035510506480932236,
-0.00943293608725071,
0.0159155260771513,
-0.0026474948972463608,
0.0044304318726062775,
0.011148566380143166,
-0.012148259207606316,
-0.0038134006317704916,
0.028048936277627945,
-0.0005106792668811977,
0.005069163627922535,
-0.020351504907011986,
0.045755673199892044,
0.015634384006261826,
-0.016527896746993065,
-0.05190058797597885,
0.042774748057127,
-0.03581805154681206,
0.03518344834446907,
0.00908837839961052,
-0.008075102232396603,
0.01821129024028778,
-0.012510367669165134,
0.06279618293046951,
-0.01178430113941431,
0.0036473525688052177,
0.0022407565265893936,
0.03806273266673088,
-0.009601468220353127,
0.026379084214568138,
-0.022566843777894974,
0.024850137531757355,
0.0030167805962264538,
0.04488217830657959,
0.003088056342676282,
0.024203620851039886,
0.0009907633066177368,
-0.026774663478136063,
0.01713266223669052,
0.009947791695594788,
0.03930254280567169,
0.0517604798078537,
-0.023416735231876373,
0.0017219979781657457,
-0.020302794873714447,
-0.03329066187143326,
-0.007406898308545351,
-0.012516905553638935,
-0.05141260474920273,
-0.016098270192742348,
-0.038188330829143524,
-0.07337404042482376,
0.01965080201625824,
0.011908086948096752,
-0.009078221395611763,
0.03341162949800491,
-0.0044008539989590645,
-0.011497416533529758,
-0.036665089428424835,
0.02923569642007351,
0.027993978932499886,
-0.04447220265865326,
-0.03170259669423103,
-0.018515942618250847,
-0.019328270107507706,
0.030605154111981392,
0.00582299055531621,
-0.07322446256875992,
-0.028770042583346367,
-0.021760152652859688,
0.016056286171078682,
-0.008305198512971401,
-0.0037105951923877,
-0.04438454285264015,
-0.001394079765304923,
-0.00012663919187616557,
0.041741520166397095,
0.008042818866670132,
0.015619205310940742,
-0.004107423592358828,
0.010770926252007484,
0.030829282477498055,
0.0019366516498848796,
-0.02761908248066902,
0.02535107731819153,
-0.016074109822511673,
0.015618575736880302,
-0.025931209325790405,
0.04679941013455391,
0.03976532071828842,
0.019412435591220856,
0.016949305310845375,
-0.05941033735871315,
0.03530343249440193,
-0.011334783397614956,
0.023875191807746887,
0.004639298189431429,
0.009117369540035725,
-0.02977297268807888,
0.029452387243509293,
-0.052227821201086044,
0.02101706713438034,
-0.011232384480535984,
-0.008889361284673214,
0.028976917266845703,
0.06638715416193008,
0.009650836698710918,
0.03278206288814545,
0.005111549515277147,
-0.028316538780927658,
0.05173296108841896,
-0.0029518925584852695,
-0.040657710283994675,
0.00676446920260787,
-0.055860139429569244,
0.035725269466638565,
0.04679614305496216,
0.011977903544902802,
-0.06307215988636017,
0.035056423395872116,
0.03252316638827324,
0.00521441362798214,
0.008004440926015377,
0.015891114249825478,
0.035513170063495636,
-0.054309479892253876,
-0.006580417510122061,
-0.06367730349302292,
-0.002418308751657605,
0.05298369377851486,
-0.014590460807085037,
-0.010395336896181107,
-0.019282715395092964,
-0.06085219234228134,
-0.0037398000713437796,
-0.04179968312382698,
-0.045533280819654465,
0.04152779281139374,
-0.04313467815518379,
0.01787634566426277,
0.006024662405252457,
-0.06178189069032669,
0.008938535116612911,
0.051314618438482285,
-0.030191747471690178,
-0.03867758437991142,
-0.06224009394645691,
0.06067367270588875,
-0.026510022580623627,
0.004539660643786192,
-0.008165334351360798,
-0.031528692692518234,
0.05852896720170975,
0.03035074844956398,
-0.0008673076517879963,
0.05584479495882988,
-0.025094352662563324,
-0.002700265496969223,
0.03564422205090523,
-0.03747173398733139,
0.01999262161552906,
0.0124611034989357,
-0.015192345716059208,
-0.03517330810427666,
0.018807634711265564,
0.00007864292274462059,
-0.006201697513461113,
-0.01482804398983717,
0.06650172919034958,
0.026833772659301758,
-0.0374838262796402,
-0.06349092721939087,
0.010885048657655716,
-0.0037583315279334784,
-0.009405133314430714,
-0.01760958321392536,
0.018682917580008507,
-0.02824055403470993,
0.062296170741319656,
-0.007874252274632454,
0.012661253102123737,
0.08509199321269989,
-0.00576504273340106,
0.0074932752177119255,
-0.007795064710080624,
0.0871967077255249,
0.0784933939576149,
0.028088483959436417,
0.004673669580370188,
0.06179260089993477,
-0.03609905019402504,
-0.040094126015901566,
0.02432633750140667,
-0.01644475944340229,
0.020549433305859566,
0.0014985655434429646,
-0.0011862015817314386,
0.058715276420116425,
-0.02179170586168766,
0.08764483034610748,
-0.03152957558631897,
-0.04000658914446831,
-0.0249058585613966,
-0.002218986628577113,
0.062314387410879135,
0.03994319960474968,
0.00640514912083745,
0.02114528976380825,
-0.009146729484200478,
-0.021828480064868927,
0.06298024952411652,
-0.033071864396333694,
-0.036799389868974686,
0.029077904298901558,
-0.0320727564394474,
-0.008597007021307945,
0.00708297872915864,
0.048836831003427505,
0.07994096726179123,
0.00189374596811831,
0.0023595152888447046,
-0.012261276133358479,
0.040528226643800735,
-0.01483041513711214,
0.035637687891721725,
-0.027835292741656303,
-0.0320279523730278,
-0.030197925865650177,
-0.06422414630651474,
-0.05577034503221512,
-0.015521250665187836,
-0.05353716388344765,
0.007659704424440861,
-0.03277156502008438,
0.013835443183779716,
0.009624199010431767,
-0.038481369614601135,
-0.009933632798492908,
-0.06420942395925522,
-0.051543544977903366,
-0.03233572468161583,
-0.05785199627280235,
0.0008338516927324235,
0.006623217836022377,
0.02203882485628128,
-0.031163837760686874,
-0.007116175256669521,
-0.034820131957530975,
0.02271704003214836,
0.027080439031124115,
-0.011854540556669235,
-0.001590337953530252,
0.004123091697692871,
0.02269628830254078,
-0.021214744076132774,
0.019376341253519058,
0.03293491527438164,
-0.001630638726055622,
0.000578107254114002,
-0.0031102404464036226,
0.026745248585939407,
0.0522845983505249,
0.031202903017401695,
-0.01941584050655365,
-0.07533097267150879,
-0.03819618374109268,
0.02229699306190014,
0.024362564086914062,
-0.07412532716989517,
-0.0024821211118251085,
0.04168782755732536,
-0.03016156703233719,
0.019626080989837646,
-0.020494705066084862,
0.019462987780570984,
-0.030257070437073708,
-0.02821972779929638,
0.019162770360708237,
0.02820129692554474,
0.016555126756429672,
-0.018100455403327942,
0.050765153020620346,
0.020207440480589867,
0.001985736656934023,
-0.05261097475886345,
-0.017548810690641403,
-0.006038738880306482,
0.0062081473879516125,
-0.053448084741830826,
-0.009138434194028378,
-0.05442211031913757,
-0.08948424458503723,
-0.024877220392227173,
0.020642442628741264,
-0.022853264585137367,
-0.016557522118091583,
0.009953360073268414,
0.04142018035054207,
-0.02829008735716343,
0.039722662419080734,
-0.05721964314579964,
0.02696644328534603,
-0.006187296938151121,
-0.03387005627155304,
-0.03151321783661842,
0.025293920189142227,
0.02534596063196659,
0.021401312202215195,
0.006847205106168985,
-0.020025981590151787,
-0.007260116282850504,
-0.03586670011281967,
0.022838570177555084,
0.05775607377290726,
0.03504878282546997,
0.0015948667423799634
] | [
-0.06363976001739502,
0.0371888130903244,
-0.02962818741798401,
-0.02407262660562992,
0.07569538056850433,
-0.06688392907381058,
-0.01921473816037178,
0.020205745473504066,
0.02915973775088787,
-0.041455719619989395,
0.0072553809732198715,
-0.013739575631916523,
0.018598254770040512,
-0.02611694298684597,
0.06179606169462204,
0.001994301564991474,
-0.016276108101010323,
-0.02589925192296505,
-0.014695203863084316,
0.058741845190525055,
0.012317336164414883,
-0.01552919577807188,
0.010518844239413738,
-0.055291563272476196,
0.0353497639298439,
0.017906740307807922,
-0.0003874815010931343,
-0.03879653662443161,
-0.01090357918292284,
-0.19362284243106842,
0.006908361800014973,
0.02654930390417576,
0.010386343114078045,
-0.024068119004368782,
0.015109393745660782,
0.06699509173631668,
0.0192333422601223,
-0.023519344627857208,
0.04439404234290123,
0.0352027527987957,
0.01700473017990589,
-0.021967779844999313,
-0.05612307786941528,
0.011036100797355175,
0.0004159672826062888,
-0.0005930949118919671,
-0.027005963027477264,
-0.02108273096382618,
-0.0015339712845161557,
0.024656973779201508,
-0.07141532748937607,
0.019404880702495575,
0.01203828677535057,
0.0010970600415021181,
-0.00013632480113301426,
0.006693247705698013,
0.021189335733652115,
0.06964325904846191,
0.009281906299293041,
0.0233007799834013,
-0.0034393370151519775,
0.010048558004200459,
-0.17142505943775177,
0.09380602091550827,
0.016293568536639214,
-0.0016662797424942255,
-0.06888248026371002,
0.018642213195562363,
-0.0334119014441967,
0.06060599535703659,
-0.007188642863184214,
-0.03674346208572388,
-0.055863600224256516,
0.0834759920835495,
-0.02290210872888565,
0.01773444190621376,
-0.02881963737308979,
0.0018699265783652663,
0.037694159895181656,
-0.01842847466468811,
-0.0015876643592491746,
0.031451333314180374,
-0.014704783447086811,
-0.006493493914604187,
-0.04323564097285271,
0.04937665909528732,
-0.004384809173643589,
0.038659922778606415,
0.03333247825503349,
0.04448529705405235,
0.0364798977971077,
-0.011972645297646523,
0.053100597113370895,
0.04221544414758682,
-0.10327816754579544,
-0.021472886204719543,
0.020978642627596855,
0.028488364070653915,
0.05932183191180229,
0.3913503885269165,
-0.02266751229763031,
-0.010902964510023594,
0.023750316351652145,
0.02364555187523365,
0.022079894319176674,
-0.020041732117533684,
0.0013554797042161226,
-0.05904814228415489,
0.050647590309381485,
-0.0395425409078598,
0.012521476484835148,
-0.010906800627708435,
0.06331843882799149,
-0.05976548418402672,
0.03943625092506409,
-0.0009729699813760817,
0.04590621218085289,
0.003969484008848667,
-0.024846892803907394,
0.0034199715591967106,
-0.010152076371014118,
-0.02368367277085781,
0.03460470587015152,
-0.027841486036777496,
0.040376003831624985,
-0.008473978377878666,
0.049676910042762756,
0.06541785597801208,
0.05877566337585449,
0.026187775656580925,
0.05039874091744423,
-0.010232735425233841,
-0.05450323969125748,
0.034166429191827774,
-0.039093662053346634,
0.012283527292311192,
0.03422896936535835,
-0.01203811913728714,
-0.024159321561455727,
0.04509386420249939,
-0.010215278714895248,
-0.05202025547623634,
0.00463698897510767,
0.010625511407852173,
-0.04891582950949669,
0.13615922629833221,
-0.00667734956368804,
-0.04665147513151169,
-0.04354369267821312,
-0.07064013183116913,
0.018591998144984245,
0.041405633091926575,
0.03471611067652702,
-0.025370541960000992,
-0.0157887265086174,
0.012112685479223728,
0.07967403531074524,
-0.01748344674706459,
-0.07173758000135422,
-0.041210830211639404,
0.01185163389891386,
-0.03274441510438919,
-0.02682564966380596,
0.05766484886407852,
0.07401320338249207,
-0.059095095843076706,
-0.0018581281183287501,
0.024465426802635193,
0.0133802630007267,
-0.08752685785293579,
0.04249504953622818,
-0.003036282490938902,
-0.055864013731479645,
-0.03307028114795685,
0.020162105560302734,
-0.007743754889816046,
-0.0008382517262361944,
0.006649030838161707,
0.02019215188920498,
0.01696140505373478,
-0.010853868909180164,
-0.01680225506424904,
-0.0739472284913063,
0.015887483954429626,
-0.06001025065779686,
-0.0731850117444992,
-0.10368936508893967,
0.000009632766705180984,
-0.006934112869203091,
-0.0018158839084208012,
-0.0010902920039370656,
-0.005981294438242912,
-0.06434541195631027,
0.04923807457089424,
-0.03887462615966797,
0.002833705395460129,
0.01841081492602825,
-0.0025483467616140842,
-0.02636665850877762,
-0.05923377349972725,
0.04488031193614006,
0.011818930506706238,
-0.01442793570458889,
0.00779238436371088,
-0.03574443981051445,
-0.00034257597872056067,
0.07332941144704819,
-0.036198075860738754,
0.019562067463994026,
0.02003907784819603,
-0.021898653358221054,
0.015580814331769943,
-0.005854045040905476,
0.018899813294410706,
-0.006999173667281866,
-0.02714947983622551,
0.009504938498139381,
-0.04613737389445305,
0.025141071528196335,
0.060840800404548645,
-0.03621158003807068,
-0.06177620217204094,
-0.0573347844183445,
-0.3688029944896698,
-0.040608327835798264,
-0.004615569952875376,
-0.015554926358163357,
0.04517010226845741,
-0.02810440957546234,
0.002135917544364929,
-0.017806917428970337,
0.02239152044057846,
0.05896538496017456,
0.05694771558046341,
-0.012915126979351044,
0.004310146439820528,
-0.11411447823047638,
0.02087041363120079,
0.06312202662229538,
0.018779560923576355,
-0.005128136370331049,
-0.02010156959295273,
0.03157343342900276,
-0.018661441281437874,
-0.06852316856384277,
-0.031038673594594002,
-0.008076059632003307,
0.03298116475343704,
-0.00730975391343236,
0.10908304899930954,
0.06846291571855545,
0.02275344543159008,
-0.0674932599067688,
0.021521300077438354,
0.016338525339961052,
0.012387016788125038,
-0.08578461408615112,
0.020023897290229797,
0.005281412973999977,
0.0080108018592,
0.06447888910770416,
0.008053326979279518,
-0.024704016745090485,
-0.018807755783200264,
0.020296527072787285,
-0.04189484193921089,
-0.01526654977351427,
-0.027987301349639893,
0.0013382942415773869,
-0.030516205355525017,
-0.0446757934987545,
0.011969681829214096,
0.06770389527082443,
0.019229667261242867,
0.044476382434368134,
0.02333870157599449,
0.028152601793408394,
0.009742426685988903,
0.005078366957604885,
-0.07622680068016052,
-0.029176929965615273,
0.009446661919355392,
-0.022024868056178093,
-0.002092392183840275,
0.009434049017727375,
0.036177054047584534,
-0.07853194326162338,
0.025752166286110878,
0.03279520198702812,
0.00871295016258955,
-0.011305584572255611,
0.020974010229110718,
-0.017784757539629936,
-0.011565941385924816,
0.10635905712842941,
-0.007870741188526154,
0.02539747953414917,
0.009374146349728107,
0.025787848979234695,
-0.019269902259111404,
-0.012657864019274712,
0.03501300513744354,
-0.008131233975291252,
0.048216767609119415,
-0.05188929662108421,
0.03373461589217186,
-0.02162947878241539,
-0.0003346102894283831,
0.05652128532528877,
0.003016954055055976,
-0.059112127870321274,
0.052567411214113235,
-0.001350643578916788,
-0.021308306604623795,
-0.04801018908619881,
-0.0006543847266584635,
-0.07800286263227463,
0.060594089329242706,
0.021793607622385025,
-0.26823922991752625,
0.03413285315036774,
0.024083776399493217,
0.01743660867214203,
0.00018787528097163886,
0.015137567184865475,
0.03619752079248428,
-0.0633421465754509,
0.00813712552189827,
0.007876291871070862,
0.021773934364318848,
0.06976355612277985,
-0.010500038973987103,
-0.017506593838334084,
-0.009823138825595379,
0.013552432879805565,
0.048303183168172836,
0.005009072832763195,
0.023077039048075676,
-0.00939868576824665,
0.001513488357886672,
-0.03628499433398247,
0.14754027128219604,
0.02840743027627468,
0.005044623743742704,
-0.004019699990749359,
-0.020748605951666832,
0.0036026607267558575,
0.07780274003744125,
0.0013676409143954515,
-0.0015957107534632087,
0.01221289299428463,
0.025427429005503654,
0.009179558604955673,
0.04859646409749985,
-0.029889622703194618,
-0.0337880440056324,
0.022743063047528267,
0.027616919949650764,
-0.047308746725320816,
-0.03402895852923393,
0.03216157108545303,
-0.03447902947664261,
0.010842428542673588,
0.06446152925491333,
-0.05044787377119064,
0.0070594861172139645,
-0.03476392477750778,
-0.0575898140668869,
-0.004986107815057039,
0.0006497322465293109,
-0.013816233724355698,
-0.014195856638252735,
-0.013545772060751915,
-0.00011103918950539082,
0.07331012189388275,
0.0038737833965569735,
-0.025436317548155785,
0.025952104479074478,
0.006847623270004988,
-0.03532998263835907,
-0.04735603556036949,
0.10708386451005936,
0.019975662231445312,
0.0056526497937738895
] | [
-0.010759440250694752,
0.0324932262301445,
0.02995244413614273,
0.014656462706625462,
-0.010270449332892895,
-0.04691357538104057,
-0.004074597731232643,
0.012062582187354565,
0.0042947824113070965,
0.007319377735257149,
-0.008401017636060715,
0.006702673155814409,
0.04057334363460541,
-0.0291258804500103,
0.02753634750843048,
0.01957051083445549,
-0.03250338137149811,
0.02963663823902607,
0.039685025811195374,
-0.03204401955008507,
0.012638149783015251,
0.01941314898431301,
0.04857419803738594,
0.004154767841100693,
0.00746538070961833,
0.03433598577976227,
-0.04372513294219971,
0.028008271008729935,
0.01945457234978676,
-0.12647198140621185,
-0.00028145118267275393,
-0.01991751417517662,
-0.02390807867050171,
0.016444535925984383,
-0.02092774771153927,
-0.0230361670255661,
0.030291631817817688,
0.04497820883989334,
-0.015496224164962769,
0.003523103892803192,
-0.008939662016928196,
0.0014260730240494013,
-0.01571817137300968,
-0.013049598783254623,
-0.022057820111513138,
-0.06600835174322128,
-0.017175612971186638,
0.00195939838886261,
-0.008261597715318203,
0.0006908281939104199,
-0.01567259430885315,
-0.027997246012091637,
0.024636702612042427,
0.019992055371403694,
0.05807112529873848,
0.02373887598514557,
-0.060426920652389526,
-0.015744762495160103,
0.029779044911265373,
-0.02312951162457466,
0.030412808060646057,
0.011082187294960022,
-0.05871345475316048,
-0.01557825691998005,
0.0011422446696087718,
-0.02649931237101555,
-0.028858957812190056,
-0.004959010519087315,
0.015478230081498623,
0.02026647888123989,
-0.03739412501454353,
0.010736996307969093,
-0.01914113014936447,
-0.05645718052983284,
-0.015442581847310066,
0.012885481119155884,
-0.008926229551434517,
-0.011350737884640694,
-0.03235175088047981,
0.01419234462082386,
-0.0031475203577429056,
-0.01692512072622776,
0.010816133581101894,
-0.004320600535720587,
0.006464475765824318,
-0.008528932929039001,
-0.010321572422981262,
0.028650766238570213,
0.008712210692465305,
0.010144065134227276,
0.009736898355185986,
-0.02285514585673809,
0.02181718498468399,
0.02040328085422516,
-0.08605927228927612,
-0.020743872970342636,
-0.00441080704331398,
0.03826948255300522,
0.006401956547051668,
0.8149735331535339,
0.028115402907133102,
-0.004829329438507557,
0.007085373625159264,
0.00018748716684058309,
-0.0041509768925607204,
-0.040165819227695465,
-0.010867554694414139,
0.01512838900089264,
0.05102304369211197,
-0.028737246990203857,
0.02572198398411274,
0.027485819533467293,
0.016405507922172546,
0.03575621917843819,
0.007239616475999355,
0.042875926941633224,
0.02151830494403839,
-0.005252980627119541,
-0.018676426261663437,
0.015559941530227661,
-0.020329494029283524,
0.0189999807626009,
-0.004390085116028786,
0.014741536229848862,
0.013376484625041485,
-0.17820128798484802,
0.014956297352910042,
-6.609720980701227e-33,
0.042266227304935455,
0.05378822237253189,
0.022344477474689484,
-0.025465089827775955,
-0.0004620682157110423,
0.02973821945488453,
-0.017830323427915573,
0.0006090703536756337,
-0.03601396828889847,
-0.015245601534843445,
0.02219640649855137,
-0.001243266393430531,
0.004275592975318432,
0.011777747422456741,
-0.0024142307229340076,
-0.04287361726164818,
0.0026558327954262495,
0.04259867966175079,
0.04508486017584801,
0.005872699432075024,
-0.02327023074030876,
0.036676689982414246,
0.005981296766549349,
0.019498644396662712,
0.03433416411280632,
0.007962893694639206,
0.01300077699124813,
-0.01802150160074234,
0.000703564437571913,
-0.03486796095967293,
-0.023864246904850006,
0.011489366181194782,
-0.017074931412935257,
0.0014329353580251336,
0.032850414514541626,
-0.05388164520263672,
-0.00833654124289751,
0.025398245081305504,
-0.03890177235007286,
-0.06176005303859711,
-0.07792115956544876,
0.009885246865451336,
0.005089948419481516,
-0.03663242235779762,
-0.012504889629781246,
-0.06868375837802887,
-0.06982164084911346,
0.016047567129135132,
0.017880652099847794,
-0.014882436022162437,
-0.014662033878266811,
0.01845726929605007,
-0.005191589239984751,
-0.0004089192079845816,
-0.026342500001192093,
0.0061492002569139,
0.022566767409443855,
0.0019753440283238888,
-0.012866691686213017,
0.06231231614947319,
0.004291710443794727,
0.019735068082809448,
-0.0031018522568047047,
-0.004740043077617884,
0.03480725735425949,
0.0026566332671791315,
0.05041501671075821,
0.006318992935121059,
-0.0031808584462851286,
0.0458640456199646,
-0.026462983340024948,
0.01801467128098011,
0.01890786923468113,
-0.019848240539431572,
0.016268618404865265,
-0.0484883114695549,
-0.004405339248478413,
-0.0033662228379398584,
0.024054251611232758,
0.052934203296899796,
-0.015993159264326096,
-0.07079165428876877,
0.030029602348804474,
-0.008003260008990765,
-0.024131514132022858,
-0.023853780701756477,
-0.014913897030055523,
0.007990188896656036,
-0.004126379266381264,
0.03673630207777023,
0.036330696195364,
0.03222833573818207,
-0.044002801179885864,
-0.026034317910671234,
-0.018932925537228584,
6.717698953031885e-33,
0.01472500991076231,
0.00566001096740365,
-0.006108057219535112,
0.010668008588254452,
0.0027387954760342836,
0.005434882827103138,
-0.007375206332653761,
-0.020557431504130363,
-0.03818809613585472,
-0.014110204763710499,
0.032412752509117126,
0.011871187016367912,
-0.014620662666857243,
0.0405651330947876,
0.08826383203268051,
-0.02090449072420597,
0.010402492247521877,
0.021751971915364265,
-0.0037146462127566338,
-0.0029802867211401463,
0.012336686253547668,
-0.026130715385079384,
0.002502172952517867,
0.0415981262922287,
0.05281859636306763,
0.019160106778144836,
0.013700476847589016,
0.001731593394652009,
-0.005897963419556618,
0.022404968738555908,
-0.007101250346750021,
-0.014766189269721508,
-0.004019877873361111,
-0.029869457706809044,
0.015087012201547623,
0.020730523392558098,
0.003928767517209053,
0.010219939984381199,
0.04623138904571533,
0.019400937482714653,
0.02262089215219021,
0.044748418033123016,
-0.02121586725115776,
0.0447087362408638,
-0.0014457923825830221,
-0.011186568066477776,
0.015767216682434082,
0.012526106089353561,
0.00292619108222425,
0.00007353817636612803,
0.006118046585470438,
0.02261330932378769,
-0.01709883287549019,
0.03963523358106613,
0.016525372862815857,
-0.05365066975355148,
-0.03301128000020981,
0.018480893224477768,
-0.0057533737272024155,
-0.02845214121043682,
-0.026160120964050293,
0.013836811296641827,
-0.06554780155420303,
0.01824422925710678,
-0.026357822120189667,
-0.043055906891822815,
-0.07664273679256439,
-0.0007304242462851107,
-0.00831275712698698,
-0.014043780043721199,
-0.0033947813790291548,
-0.022229859605431557,
-0.005844633094966412,
0.033094439655542374,
0.023926427587866783,
-0.011070379987359047,
-0.004623035434633493,
-0.0030211189296096563,
-0.014697792008519173,
0.03741655498743057,
0.009018908254802227,
0.018358610570430756,
0.04562968388199806,
0.022059839218854904,
0.0037227198481559753,
-0.024373188614845276,
-0.023879200220108032,
0.04398932680487633,
0.017154943197965622,
-0.05162549018859863,
-0.017092904075980186,
0.020331375300884247,
-0.06433828175067902,
0.03460296243429184,
-0.02401781640946865,
-1.2310604091680943e-8,
-0.055425722151994705,
-0.062213730067014694,
-0.037543803453445435,
0.0519239716231823,
0.03750351816415787,
0.010131089948117733,
-0.05018604174256325,
-0.006059187930077314,
-0.027280835434794426,
-0.01685311831533909,
-0.0048904698342084885,
0.009050248190760612,
0.004197905771434307,
-0.012298828922212124,
-0.014993398450314999,
-0.03542432188987732,
0.0011312058195471764,
0.006940772291272879,
0.03010564111173153,
-0.00009908980428008363,
0.030167199671268463,
0.045229289680719376,
0.029641229659318924,
-0.0012279226211830974,
0.02519405260682106,
-0.0017521968111395836,
-0.003190908581018448,
-0.055558864027261734,
-0.030395755544304848,
0.002055490855127573,
0.016730325296521187,
-0.054353173822164536,
-0.04469987004995346,
0.002768609905615449,
-0.01784612238407135,
-0.023538140580058098,
-0.0032809972763061523,
-0.0027692043222486973,
-0.00729162385687232,
-0.004978667479008436,
-0.027343207970261574,
0.003015014808624983,
0.001302385120652616,
-0.02098504640161991,
-0.0197772029787302,
-0.012487785890698433,
-0.024363087490200996,
-0.004086400847882032,
0.03675282001495361,
-0.03471531346440315,
0.01584697514772415,
0.01055445708334446,
0.05290641635656357,
0.04004751890897751,
0.0319661982357502,
0.013317777775228024,
0.02204078808426857,
-0.026201710104942322,
-0.032040420919656754,
-0.018361791968345642,
0.02510754205286503,
0.01772386021912098,
-0.009947072714567184,
-0.031878791749477386
] | r-regex-capturing-multiple-matches-of-the-same-group | https://markhneedham.com/blog/2015/06/19/r-regex-capturing-multiple-matches-of-the-same-group |
false | 2015-06-26 22:48:17 | R: ggplot - Show discrete scale even with no value | [
"r-2"
] | [
"R"
] | As I mentioned in a previous blog post, I've been http://www.markhneedham.com/blog/2015/06/25/r-scraping-wimbledon-draw-data/[scraping data for the Wimbledon tennis tournament], and having got the data for the last ten years I wrote a query using dplyr to find out how players did each year over that period.
I ended up with the following functions to filter my data frame of all the matches:
[source,r]
----
round_reached = function(player, main_matches) {
furthest_match = main_matches %>%
filter(winner == player | loser == player) %>%
arrange(desc(round)) %>%
head(1)
return(ifelse(furthest_match$winner == player, "Winner", as.character(furthest_match$round)))
}
player_performance = function(name, matches) {
player = data.frame()
for(y in 2005:2014) {
round = round_reached(name, filter(matches, year == y))
if(length(round) == 1) {
player = rbind(player, data.frame(year = y, round = round))
} else {
player = rbind(player, data.frame(year = y, round = "Did not enter"))
}
}
return(player)
}
----
When we call that function we see the following output:
[source,r]
----
> player_performance("Andy Murray", main_matches)
year round
1 2005 Round of 32
2 2006 Round of 16
3 2007 Did not enter
4 2008 Quarter-Finals
5 2009 Semi-Finals
6 2010 Semi-Finals
7 2011 Semi-Finals
8 2012 Finals
9 2013 Winner
10 2014 Quarter-Finals
----
I wanted to create a chart showing Murray's progress over the years with the round reached on the y axis and the year on the x axis. In order to do this I had to make sure the 'round' column was being treated as a factor variable:
[source,r]
----
df = player_performance("Andy Murray", main_matches)
rounds = c("Did not enter", "Round of 128", "Round of 64", "Round of 32", "Round of 16", "Quarter-Finals", "Semi-Finals", "Finals", "Winner")
df$round = factor(df$round, levels = rounds)
> df$round
[1] Round of 32 Round of 16 Did not enter Quarter-Finals Semi-Finals Semi-Finals Semi-Finals
[8] Finals Winner Quarter-Finals
Levels: Did not enter Round of 128 Round of 64 Round of 32 Round of 16 Quarter-Finals Semi-Finals Finals Winner
----
Now that we've got that we can plot his progress:
[source,r]
----
ggplot(aes(x = year, y = round, group=1), data = df) +
geom_point() +
geom_line() +
scale_x_continuous(breaks=df$year) +
scale_y_discrete(breaks = rounds)
----
image::{{<siteurl>}}/uploads/2015/06/2015-06-26_23-37-32.png[2015 06 26 23 37 32,522]
This is a good start but we've lost the rounds which don't have a corresponding entry on the x axis. I'd like to keep them so it's easier to compare the performance of different players.
It turns out that http://stackoverflow.com/questions/9818835/geom-boxplot-from-ggplot2-forcing-an-empty-level-to-appear[all we need to do] is pass 'drop = FALSE' to +++<cite>+++scale_y_discrete+++</cite>+++ and it will work exactly as we want:
[source,r]
----
ggplot(aes(x = year, y = round, group=1), data = df) +
geom_point() +
geom_line() +
scale_x_continuous(breaks=df$year) +
scale_y_discrete(breaks = rounds, drop = FALSE)
----
image::{{<siteurl>}}/uploads/2015/06/2015-06-26_23-41-01.png[2015 06 26 23 41 01,523]
Neat. Now let's have a look at the performances of some of the other top players:
[source,r]
----
draw_chart = function(player, main_matches){
df = player_performance(player, main_matches)
df$round = factor(df$round, levels = rounds)
ggplot(aes(x = year, y = round, group=1), data = df) +
geom_point() +
geom_line() +
scale_x_continuous(breaks=df$year) +
scale_y_discrete(breaks = rounds, drop=FALSE) +
ggtitle(player) +
theme(axis.text.x=element_text(angle=90, hjust=1))
}
a = draw_chart("Andy Murray", main_matches)
b = draw_chart("Novak Djokovic", main_matches)
c = draw_chart("Rafael Nadal", main_matches)
d = draw_chart("Roger Federer", main_matches)
library(gridExtra)
grid.arrange(a,b,c,d, ncol=2)
----
image::{{<siteurl>}}/uploads/2015/06/2015-06-26_23-46-15.png[2015 06 26 23 46 15,526]
And that's all for now! | null | null | [
-0.00806510727852583,
-0.010489369742572308,
0.03478308767080307,
-0.004318182356655598,
0.07839150726795197,
0.013065255247056484,
0.028069574385881424,
0.004435848910361528,
0.0038267476484179497,
0.010465950705111027,
0.003339147660881281,
-0.017593543976545334,
-0.053630419075489044,
0.0374160073697567,
-0.006414511241018772,
0.10348514467477798,
0.04315849393606186,
0.0073287091217935085,
0.025141552090644836,
-0.007348047103732824,
0.042740002274513245,
0.06616763770580292,
0.01117913331836462,
0.0433921255171299,
0.05215565115213394,
0.011872936971485615,
0.018016643822193146,
0.017088761553168297,
-0.047498028725385666,
0.025303343310952187,
0.05099115148186684,
0.010699834674596786,
-0.009296096861362457,
-0.001882448559626937,
0.020947523415088654,
-0.035574525594711304,
-0.000930655631236732,
0.027681462466716766,
0.005527365952730179,
-0.019925830885767937,
-0.07984871417284012,
0.007691759616136551,
-0.034351225942373276,
0.019243743270635605,
-0.03576330468058586,
0.003985700197517872,
-0.02968662790954113,
0.020919548347592354,
0.011758595705032349,
0.00564146600663662,
-0.046914003789424896,
0.044447146356105804,
0.0026467491406947374,
-0.016034534201025963,
-0.010518048889935017,
0.0421474315226078,
0.042929649353027344,
-0.05935942381620407,
0.021565062925219536,
-0.03860427439212799,
0.0037264942657202482,
0.013191442005336285,
0.0017338384641334414,
-0.00765371834859252,
0.014477353543043137,
-0.02974681556224823,
-0.00833753403276205,
0.024798186495900154,
-0.013960093259811401,
-0.003390149911865592,
-0.041358817368745804,
-0.030368676409125328,
-0.011759829707443714,
-0.015543063171207905,
-0.01753067411482334,
-0.035042136907577515,
-0.004750521387904882,
0.061945606023073196,
0.011298942379653454,
0.006130501162260771,
-0.006160013377666473,
-0.027434902265667915,
0.016695702448487282,
0.012636694125831127,
0.007837099023163319,
-0.06852371990680695,
-0.013262634165585041,
-0.0434739775955677,
-0.048574939370155334,
0.07934299856424332,
-0.008681765757501125,
-0.04304959625005722,
0.014388389885425568,
0.018691187724471092,
-0.042617492377758026,
-0.023394808173179626,
0.01811535842716694,
-0.030240263789892197,
-0.003091073827818036,
-0.04498422518372536,
-0.04009859636425972,
-0.042560283094644547,
0.05995667725801468,
0.007020276505500078,
-0.08666987717151642,
0.00014402973465621471,
-0.02329300343990326,
-0.003452342003583908,
0.00725368270650506,
0.024815665557980537,
-0.012567815370857716,
0.003524219850078225,
-0.006833123043179512,
-0.0030854663345962763,
-0.07160165905952454,
0.08153771609067917,
0.038233328610658646,
-0.03627346083521843,
0.008425477892160416,
0.02354394644498825,
0.05398774892091751,
0.012739695608615875,
-0.010317808948457241,
0.07949188351631165,
0.01770639233291149,
0.048971038311719894,
0.027001813054084778,
0.047803688794374466,
0.0006416554097086191,
-0.07808194309473038,
0.00571428844705224,
0.05365880951285362,
-0.03250005096197128,
0.007616441231220961,
-0.00942825898528099,
-0.023760417476296425,
-0.011417035944759846,
-0.05386468768119812,
0.07021935284137726,
0.02683914452791214,
0.04909069463610649,
-0.0209747813642025,
0.00482935132458806,
-0.009908215142786503,
0.03317614644765854,
0.0035897144116461277,
0.03144020587205887,
-0.04320544749498367,
-0.0358039066195488,
-0.01333902683109045,
0.04407191649079323,
0.029502853751182556,
0.056045468896627426,
-0.027283690869808197,
0.017804861068725586,
0.07286658883094788,
0.02279362827539444,
-0.02223070152103901,
-0.01888364367187023,
0.004276603925973177,
0.05677821487188339,
0.038575850427150726,
0.014109074138104916,
0.04211999103426933,
0.009076193906366825,
-0.026064801961183548,
0.020353227853775024,
0.04087997227907181,
-0.03777199238538742,
-0.003596334019675851,
-0.06171531602740288,
-0.04049554094672203,
0.08004402369260788,
-0.02339896745979786,
0.004525324329733849,
0.02910543605685234,
0.0651775524020195,
0.0587645024061203,
0.041656140238046646,
-0.006025363691151142,
-0.07722562551498413,
0.029952792450785637,
-0.0033857962116599083,
0.04644165188074112,
0.060358770191669464,
-0.014683575369417667,
0.08920972794294357,
0.035017143934965134,
0.012938808649778366,
0.06319694221019745,
-0.0777483880519867,
-0.06269318610429764,
-0.04142983630299568,
-0.02811000682413578,
0.04749457910656929,
-0.04061470553278923,
0.013721711002290249,
0.06102370843291283,
0.02151631750166416,
0.02174573577940464,
-0.013785932213068008,
0.035809893161058426,
0.022671634331345558,
-0.04627908021211624,
-0.04707438126206398,
0.01456624735146761,
0.017247399315238,
-0.013075685128569603,
0.0014257585862651467,
0.05961739644408226,
-0.03361935168504715,
0.012162568978965282,
-0.01014914270490408,
-0.023516982793807983,
0.00926928035914898,
0.030839936807751656,
0.07726042717695236,
0.011969950050115585,
0.03650818020105362,
-0.05487458035349846,
0.0466659814119339,
0.029048798605799675,
-0.0213181022554636,
-0.029522376134991646,
0.002508861245587468,
0.1418294906616211,
0.04646759852766991,
-0.015149123966693878,
-0.05249728262424469,
0.034903571009635925,
-0.028223294764757156,
-0.029917897656559944,
0.03304344788193703,
-0.02504465915262699,
-0.0056036170572042465,
0.0191513579338789,
-0.033624064177274704,
-0.032899536192417145,
0.017121344804763794,
-0.04435423016548157,
-0.014183372259140015,
0.04825357347726822,
0.0310519952327013,
0.048271194100379944,
-0.01712309941649437,
0.00114849500823766,
-0.023904817178845406,
-0.01102021336555481,
-0.05928223952651024,
-0.024503082036972046,
0.032430630177259445,
-0.02015201933681965,
0.00980465766042471,
-0.028446471318602562,
-0.022621948271989822,
-0.010370579548180103,
-0.06475086510181427,
0.0364111103117466,
0.05083058774471283,
0.06828848272562027,
-0.016827169805765152,
0.02335469424724579,
-0.013841898180544376,
-0.009337024763226509,
-0.026560408994555473,
-0.045619357377290726,
-0.03731343150138855,
-0.06347484886646271,
0.008174803107976913,
0.013684720732271671,
0.015920909121632576,
-0.009764440357685089,
-0.012022093869745731,
0.024923177435994148,
0.0018266475526615977,
-0.0030740753281861544,
0.03111320361495018,
-0.0026048272848129272,
-0.013699086382985115,
0.00318888365291059,
0.020404880866408348,
0.05902263894677162,
-0.01230623945593834,
-0.02097812481224537,
0.0009598108590580523,
-0.04737988859415054,
0.03861953318119049,
-0.04517105594277382,
-0.019862975925207138,
0.0009277027565985918,
-0.006082931999117136,
0.06583671271800995,
0.029960794374346733,
0.007589288521558046,
0.056092120707035065,
0.0123217161744833,
0.007108521647751331,
0.036568932235240936,
0.004449664615094662,
0.04518930986523628,
0.006627249997109175,
0.02529667131602764,
0.04637685790657997,
-0.020580502226948738,
0.01972380094230175,
-0.038452643901109695,
-0.01382769551128149,
-0.02064433880150318,
-0.2563128173351288,
0.025726109743118286,
0.002125306287780404,
-0.015823163092136383,
0.026578441262245178,
-0.04609079286456108,
0.012835750356316566,
-0.017802340909838676,
-0.016183961182832718,
0.004626893904060125,
0.011800349690020084,
-0.026876285672187805,
-0.03681507334113121,
0.03448925167322159,
0.026672247797250748,
0.024477744475007057,
0.0016342694871127605,
-0.050799861550331116,
0.002386451233178377,
0.0680176168680191,
0.03891611471772194,
-0.05078085511922836,
-0.024445664137601852,
0.025307971984148026,
0.024815229699015617,
0.07680796086788177,
-0.026125919073820114,
0.007589767221361399,
-0.05813261866569519,
-0.03292565047740936,
0.013436228036880493,
-0.005072882864624262,
0.015348315238952637,
0.0015048476634547114,
-0.004050750285387039,
-0.010913802310824394,
0.033625632524490356,
0.010201087221503258,
0.024615315720438957,
0.030423449352383614,
-0.050079237669706345,
-0.02508765086531639,
-0.005700711626559496,
0.0022492017596960068,
0.08533813059329987,
0.026706406846642494,
-0.0648360624909401,
0.0104007413610816,
-0.038685329258441925,
0.06605987250804901,
-0.000841699365992099,
-0.0171123668551445,
-0.030274059623479843,
0.0032945224083960056,
-0.0390608087182045,
0.0004597478255163878,
-0.03312727063894272,
-0.012561209499835968,
-0.03496697545051575,
-0.04148438572883606,
-0.011484243907034397,
-0.0262345839291811,
-0.00406692223623395,
-0.01799003593623638,
-0.01424118597060442,
-0.07860029488801956,
-0.04729073494672775,
0.006191219203174114,
0.06844709068536758,
0.02386583760380745,
-0.03178233280777931,
-0.006598745007067919,
-0.010174772702157497,
-0.10190889239311218,
-0.015615630894899368,
-0.006940141320228577,
0.01774531416594982,
0.014126324094831944,
0.00917772389948368,
0.041479937732219696,
-0.04427019879221916,
-0.05257926881313324,
0.018564734607934952,
0.005847027059644461,
0.025934714823961258,
-0.01117219589650631,
0.014839351177215576,
0.03006843477487564,
-0.029411185532808304,
-0.032785072922706604,
0.07768718153238297,
-0.0494159497320652,
-0.030705129727721214,
0.009861225262284279,
-0.015027306973934174,
0.06033197045326233,
-0.01573999784886837,
-0.002863542176783085,
0.009404061362147331,
0.03585270419716835,
0.015320099890232086,
-0.05210631340742111,
0.019979743286967278,
-0.04736477509140968,
-0.019965102896094322,
-0.001832561451010406,
-0.07036632299423218,
0.009990797378122807,
0.008685880340635777,
0.01573888398706913,
0.03991711139678955,
-0.032467737793922424,
0.013995995745062828,
-0.05036799609661102,
-0.00305643817409873,
-0.02025051973760128,
0.01746462658047676,
0.006766695994883776,
-0.008952304720878601,
0.014327011071145535,
-0.05437630042433739,
0.004870834294706583,
-0.018105048686265945,
-0.02123088948428631,
-0.0504317469894886,
-0.03021463192999363,
0.01197041291743517,
-0.019591644406318665,
0.014111305586993694,
0.032379474490880966,
-0.0005343022057786584,
-0.00248004961758852,
0.04063499718904495,
-0.020189104601740837,
0.04473379999399185,
0.014120412990450859,
-0.05379653349518776,
-0.015435950830578804,
0.023359334096312523,
0.02817227691411972,
-0.014978370629251003,
0.007083481177687645,
0.0089469775557518,
0.0166972354054451,
0.012103892862796783,
0.001968249911442399,
0.01864389143884182,
-0.0052228523418307304,
0.014855174347758293,
0.022915685549378395,
-0.011431965045630932,
0.011099589988589287,
0.007376181427389383,
-0.07095084339380264,
-0.02114216424524784,
0.0005735605373047292,
0.047206100076436996,
-0.012871540151536465,
-0.024868186563253403,
-0.062155719846487045,
-0.005293527618050575,
-0.03273405879735947,
-0.01943177729845047,
-0.03417515382170677,
0.015085003338754177,
0.055362407118082047,
0.0122242895886302,
0.016022546216845512,
0.028583724051713943,
-0.007382443640381098,
-0.013962585479021072,
-0.013885168358683586,
-0.021885253489017487,
0.011859939433634281,
-0.02565397135913372,
-0.018714087083935738,
0.035924673080444336,
-0.004465513862669468,
0.0029269761871546507,
-0.0022483752109110355,
0.0018046963959932327,
-0.01755302958190441,
0.01262423675507307,
0.023581331595778465,
0.04366767033934593,
0.07939814776182175,
-0.006531915627419949,
0.005291180219501257,
-0.00427428400143981,
-0.02112790010869503,
-0.03335626795887947,
-0.006816808599978685,
-0.008530796505510807,
-0.010795732960104942,
-0.05160630866885185,
-0.07240036875009537,
0.021288536489009857,
0.04073599725961685,
-0.022545024752616882,
0.0023589779157191515,
-0.007993546314537525,
-0.02830198034644127,
-0.02003498189151287,
0.031532663851976395,
0.07656855881214142,
-0.06546037644147873,
-0.005459320731461048,
0.013169202022254467,
-0.008878672495484352,
0.007591424975544214,
-0.004442438017576933,
-0.05737427994608879,
-0.0005737690371461213,
-0.007414815481752157,
0.04597436264157295,
-0.0265011265873909,
-0.021086664870381355,
-0.04574934020638466,
0.021994372829794884,
0.006582129281014204,
0.018258683383464813,
-0.04286034405231476,
-0.011442713439464569,
-0.011784106492996216,
-0.01734761707484722,
0.011888686567544937,
-0.020224329084157944,
-0.06507967412471771,
0.025901196524500847,
-0.021536123007535934,
-0.0002830378070939332,
-0.013702800497412682,
0.005660560913383961,
0.037531331181526184,
-0.013414183631539345,
-0.009268424473702908,
-0.04023301601409912,
0.013118959031999111,
0.017316583544015884,
0.04920109733939171,
-0.02120284177362919,
0.002117177937179804,
-0.036185555160045624,
0.010678456164896488,
-0.02925555221736431,
-0.000546672847121954,
-0.0021426440216600895,
-0.01789811998605728,
0.03576365485787392,
0.06140860915184021,
-0.004880528897047043,
0.011689289472997189,
-0.011206991970539093,
-0.03644975274801254,
0.05050043389201164,
-0.030046775937080383,
-0.020019544288516045,
-0.0045502944849431515,
-0.048890620470047,
0.04996741563081741,
-0.005956209730356932,
0.015236996114253998,
-0.04877832159399986,
0.02753041312098503,
0.03168025612831116,
0.007897264324128628,
0.060219164937734604,
0.0191438440233469,
0.028791721910238266,
-0.03260871022939682,
-0.010895419865846634,
-0.09538652002811432,
0.004712924361228943,
0.025736259296536446,
0.0008472403278574347,
-0.0001113809339585714,
-0.007417979650199413,
-0.05237363278865814,
0.02778126485645771,
-0.06129107251763344,
-0.04353725165128708,
0.043999865651130676,
-0.01034430880099535,
-0.010193548165261745,
0.002170870080590248,
-0.07118925452232361,
-0.017337383702397346,
0.040693499147892,
-0.023534277454018593,
-0.01760016195476055,
-0.025880267843604088,
0.04805567115545273,
-0.0472012497484684,
0.021288085728883743,
-0.018452638760209084,
-0.026219407096505165,
0.05304594337940216,
0.02463672310113907,
-0.003479258855804801,
0.05060623958706856,
-0.03445383533835411,
0.03379131108522415,
0.0067070587538182735,
0.02420484647154808,
0.013034154660999775,
0.02200443483889103,
0.01048937439918518,
-0.03680773079395294,
0.016745639964938164,
-0.006747444160282612,
-0.0022903180215507746,
-0.07448088377714157,
0.08348353952169418,
-0.007688857149332762,
-0.05444354936480522,
-0.06688004732131958,
-0.00024202046915888786,
-0.03059440851211548,
0.003548773005604744,
0.0019301619613543153,
-0.01432656217366457,
-0.051565609872341156,
0.06049153953790665,
0.008006088435649872,
-0.011473341844975948,
0.06511154025793076,
0.00008194694964913651,
-0.024283913895487785,
0.014358174987137318,
0.08754748851060867,
0.08999770879745483,
0.04769681766629219,
-0.006320564541965723,
0.0652439147233963,
-0.003471546806395054,
-0.05674567446112633,
0.012649673037230968,
-0.02447313256561756,
-0.001860669581219554,
-0.028875870630145073,
0.010953875258564949,
0.05074905976653099,
-0.017865097150206566,
0.05946457013487816,
-0.008899074047803879,
-0.02618054486811161,
0.012341811321675777,
-0.010022036731243134,
0.04108491539955139,
0.05868625268340111,
-0.005399779416620731,
0.03768105059862137,
0.007811708841472864,
-0.0226600281894207,
0.016695847734808922,
-0.005334747023880482,
-0.020434021949768066,
-0.0016007422236725688,
-0.029758043587207794,
0.014279204420745373,
-0.004627903923392296,
0.009624951519072056,
0.07439615577459335,
-0.0460810661315918,
-0.005710659082978964,
-0.028612270951271057,
0.038343969732522964,
-0.002581682987511158,
0.01481944415718317,
-0.010559463873505592,
-0.012896865606307983,
-0.04522451385855675,
-0.048156868666410446,
-0.034138888120651245,
-0.02109258808195591,
-0.025304632261395454,
0.01646086759865284,
-0.06633634865283966,
0.01962283067405224,
0.04550575092434883,
-0.02140789106488228,
-0.04998287931084633,
-0.04599830508232117,
-0.0724676251411438,
-0.06784934550523758,
-0.07854063808917999,
-0.02502385526895523,
0.019563617184758186,
-0.009127262979745865,
-0.05011846125125885,
-0.021434418857097626,
0.004936845041811466,
-0.03584882616996765,
0.020733263343572617,
-0.060768112540245056,
-0.05185878649353981,
0.0273665189743042,
0.018158454447984695,
0.05418205261230469,
0.008176857605576515,
0.06914568692445755,
0.0003373699728399515,
-0.005409931298345327,
-0.031609438359737396,
0.0002861903340090066,
0.045723360031843185,
0.027666455134749413,
-0.00014381467190105468,
-0.07981967180967331,
0.028804423287510872,
-0.005717957392334938,
-0.03512261435389519,
-0.08089637756347656,
0.014942869544029236,
-0.0008419867954216897,
0.0006801474373787642,
0.03900407627224922,
-0.026083126664161682,
0.024001343175768852,
-0.04623721167445183,
-0.013378895819187164,
0.0037377490662038326,
0.024352841079235077,
0.03834559768438339,
-0.034627530723810196,
0.06865990906953812,
0.020645083859562874,
0.0037268877495080233,
-0.05141058564186096,
-0.012654701247811317,
-0.006026999559253454,
-0.020035026594996452,
-0.06691128760576248,
-0.023895377293229103,
-0.04308217018842697,
-0.10441507399082184,
-0.016669446602463722,
0.023076295852661133,
-0.043277543038129807,
-0.03039378486573696,
-0.007844776846468449,
0.043961282819509506,
-0.010423464700579643,
0.015910755842924118,
-0.02354070171713829,
0.03910898417234421,
-0.03121696412563324,
-0.0070486003533005714,
-0.0035765597131103277,
0.06502273678779602,
-0.005926663987338543,
0.015119697898626328,
0.009321961551904678,
-0.03151822090148926,
0.01745983213186264,
-0.031194046139717102,
0.0008414598414674401,
0.040827661752700806,
0.0016162112588062882,
0.002965362509712577
] | [
-0.0839466005563736,
-0.010357093065977097,
-0.03842468559741974,
-0.021126439794898033,
0.08012169599533081,
-0.017563024535775185,
0.025889113545417786,
0.025681685656309128,
0.047292523086071014,
0.029892832040786743,
0.014485993422567844,
-0.07759726792573929,
0.016162613406777382,
-0.005698498338460922,
-0.005188118666410446,
-0.019931817427277565,
-0.012302475050091743,
-0.05866873264312744,
-0.04078084975481033,
0.027120335027575493,
-0.047787949442863464,
-0.027400899678468704,
-0.04555143415927887,
-0.04003940895199776,
0.043257132172584534,
0.017393508926033974,
0.034017931669950485,
-0.023109009489417076,
-0.03613870590925217,
-0.22620612382888794,
0.012589075602591038,
-0.01609213463962078,
0.014736499637365341,
-0.0018737021600827575,
0.0012712663738057017,
-0.00805265735834837,
-0.0038589665200561285,
0.031049076467752457,
0.02040003053843975,
0.046305909752845764,
0.012279928661882877,
0.009490796364843845,
-0.03264576196670532,
-0.007386427838355303,
0.049211155623197556,
0.021116191521286964,
-0.032703544944524765,
0.007178198080509901,
0.02164173312485218,
0.04361783713102341,
-0.058062709867954254,
0.004043860826641321,
-0.008016664534807205,
-0.01769779808819294,
0.003965623676776886,
0.0616832934319973,
0.047910187393426895,
0.04732639342546463,
0.019412018358707428,
0.053023990243673325,
0.037150315940380096,
0.012757116928696632,
-0.17440573871135712,
0.07510174065828323,
0.003579955082386732,
0.030083993449807167,
-0.047000184655189514,
0.011902190744876862,
0.011483952403068542,
0.0917154997587204,
0.002568535739555955,
-0.024387100711464882,
-0.011931086890399456,
0.02447529509663582,
0.01861652359366417,
-0.028121916577219963,
-0.023009810596704483,
0.01950470171868801,
-0.005463836248964071,
0.03177361562848091,
-0.019431158900260925,
0.011076890863478184,
-0.049124203622341156,
-0.045759689062833786,
-0.03927396237850189,
0.02379092015326023,
-0.039622414857149124,
0.005210760049521923,
0.000782000191975385,
0.0036958539858460426,
0.027759376913309097,
0.05125454440712929,
0.005997073836624622,
0.03306736797094345,
-0.1094624400138855,
-0.027593493461608887,
0.026561817154288292,
0.01974012888967991,
-0.009135503321886063,
0.4145164489746094,
-0.001737492042593658,
0.003150111297145486,
0.021399149671196938,
0.05298558250069618,
-0.0026632635854184628,
-0.034729357808828354,
-0.005625748075544834,
-0.038204390555620193,
0.022152824327349663,
-0.01860596239566803,
0.021067339926958084,
-0.031753841787576675,
0.07218769937753677,
-0.02974195033311844,
0.021467970684170723,
0.036703646183013916,
0.0008087255991995335,
0.03612898290157318,
0.0045704967342317104,
0.012147994711995125,
-0.03356398642063141,
-0.0028393168468028307,
-0.015143771655857563,
0.026292648166418076,
-0.019140981137752533,
0.023403843864798546,
0.04996681958436966,
0.07111303508281708,
0.03161410614848137,
-0.015752410516142845,
0.04795267432928085,
-0.015910988673567772,
-0.11359584331512451,
0.03235143423080444,
0.009953477419912815,
-0.016254888847470284,
0.028498293831944466,
-0.014110914431512356,
0.02687179297208786,
0.04123251885175705,
-0.020158356055617332,
-0.043366555124521255,
0.06031680107116699,
0.005165915470570326,
-0.02004043385386467,
0.1428716629743576,
-0.0022471544798463583,
-0.03902781009674072,
-0.006436240393668413,
-0.0581914484500885,
0.009869608096778393,
0.04130489006638527,
0.020003702491521835,
-0.045505233108997345,
-0.020465901121497154,
0.04026184231042862,
0.06888361275196075,
-0.056861624121665955,
-0.06470081955194473,
-0.04272063076496124,
-0.052188072353601456,
-0.035164959728717804,
-0.03616952523589134,
0.04602568596601486,
0.05628117918968201,
-0.10173681378364563,
-0.03281150385737419,
0.007682096678763628,
-0.010478842072188854,
-0.06578367948532104,
0.04825063422322273,
-0.011023200117051601,
-0.057759806513786316,
0.0036531558725982904,
0.05688874423503876,
0.00028551305877044797,
-0.0236803125590086,
-0.011370419524610043,
0.08247698098421097,
-0.012860395945608616,
0.0290312971919775,
-0.006602326408028603,
-0.04980171471834183,
0.0027983880136162043,
-0.05051324889063835,
-0.04921983554959297,
-0.07993059605360031,
0.001269915490411222,
-0.004260452464222908,
-0.009298264048993587,
-0.026897428557276726,
-0.0404675118625164,
-0.09660732001066208,
0.08881940692663193,
-0.055512093007564545,
-0.031217288225889206,
0.01185096986591816,
0.00344765093177557,
-0.002651175716891885,
-0.03881865739822388,
-0.0407898835837841,
-0.00770647544413805,
0.03701194003224373,
0.026548489928245544,
-0.0235349889844656,
0.04938463494181633,
0.027847465127706528,
-0.020079337060451508,
0.0961073487997055,
0.020740285515785217,
-0.007206495385617018,
-0.04362344369292259,
-0.03375127539038658,
0.0011931016342714429,
-0.016083255410194397,
0.011497623287141323,
-0.0047944821417331696,
-0.01597786508500576,
0.00869970303028822,
0.02376594766974449,
-0.00828683003783226,
-0.0018738150829449296,
-0.007644345983862877,
-0.3594655990600586,
-0.051582012325525284,
-0.048587631434202194,
0.015981610864400864,
0.04697500914335251,
-0.02356092631816864,
-0.012251380831003189,
-0.005213156342506409,
0.01779954694211483,
0.055275771766901016,
0.0464935377240181,
0.021865153685212135,
-0.011483228765428066,
-0.07162561267614365,
-0.008779259398579597,
-0.011210635304450989,
-0.035534266382455826,
-0.009646774269640446,
-0.031186440959572792,
0.025492239743471146,
0.013096371665596962,
-0.015100685879588127,
-0.04177641123533249,
0.0007160987588576972,
0.0053977202624082565,
-0.049096912145614624,
0.14062908291816711,
0.06707719713449478,
0.004924197215586901,
-0.040890175849199295,
0.04115190729498863,
0.010323408991098404,
-0.01573406159877777,
-0.05187663808465004,
0.03467093035578728,
-0.031121136620640755,
0.007369755767285824,
-0.013580290600657463,
-0.008031650446355343,
-0.07191827148199081,
-0.005318555980920792,
0.013207022100687027,
-0.02712765708565712,
-0.01628226414322853,
-0.0465296134352684,
0.02595517411828041,
0.0004702213918790221,
-0.007625714410096407,
-0.03562934696674347,
0.08073608577251434,
0.048453498631715775,
-0.014776896685361862,
0.08262626826763153,
-0.01222266536206007,
0.030685579404234886,
-0.018907861784100533,
-0.07399998605251312,
0.01632721535861492,
-0.017511725425720215,
-0.03328026086091995,
0.02268482930958271,
-0.004708737600594759,
0.07323994487524033,
-0.04746909439563751,
-0.03199699521064758,
0.017787210643291473,
0.04220220819115639,
-0.02854767069220543,
0.012366341426968575,
-0.031068461015820503,
-0.01720498315989971,
0.04220735654234886,
-0.0008039003587327898,
0.04238123819231987,
0.035922788083553314,
0.053339213132858276,
0.009570731781423092,
0.01906348019838333,
0.021733101457357407,
0.026159154251217842,
0.0811619907617569,
-0.033233996480703354,
0.03544856607913971,
-0.021422825753688812,
0.022912541404366493,
0.0189913809299469,
0.02148117870092392,
-0.01224724855273962,
0.05188282951712608,
0.022095834836363792,
-0.006567845586687326,
0.00797880720347166,
-0.03955336660146713,
-0.018673373386263847,
0.017857620492577553,
-0.006532363127917051,
-0.2717629671096802,
0.012160236947238445,
0.057313039898872375,
0.03144894167780876,
0.014170071110129356,
0.0025687357410788536,
0.037316080182790756,
-0.020906327292323112,
-0.013829945586621761,
0.016120748594403267,
0.0035768242087215185,
0.02760997600853443,
-0.01170051284134388,
-0.010367796756327152,
-0.0224809180945158,
-0.03731420636177063,
0.009424746036529541,
0.014379449188709259,
0.0337190106511116,
0.01920379512012005,
0.06887751817703247,
-0.004049007315188646,
0.14677032828330994,
-0.004945678170770407,
0.048245739191770554,
0.0259108729660511,
-0.032325346022844315,
-0.027375053614377975,
0.05050128325819969,
-0.014197243377566338,
0.004077676683664322,
0.002269923919811845,
0.04424583911895752,
0.015629516914486885,
0.011188695207238197,
-0.014726923778653145,
-0.024271292611956596,
0.05776654928922653,
-0.006777655798941851,
-0.04155195504426956,
0.018721800297498703,
0.007395887281745672,
-0.05529073253273964,
0.030367691069841385,
0.05777231603860855,
0.009977906942367554,
0.0038676531985402107,
-0.026104548946022987,
-0.04840169474482536,
-0.029695823788642883,
-0.03351934254169464,
-0.01707308553159237,
0.00530206086114049,
-0.01525952760130167,
-0.012905959039926529,
0.029749630019068718,
0.04544200375676155,
-0.02606232836842537,
0.05140836164355278,
-0.013877798803150654,
-0.000866966147441417,
-0.04229475557804108,
0.049484506249427795,
0.013359718024730682,
0.017008185386657715
] | [
0.024716781452298164,
0.027318133041262627,
-0.01156147662550211,
-0.008236099034547806,
-0.01352922897785902,
0.03732376545667648,
0.0033660954795777798,
0.0020297099836170673,
0.004755996633321047,
-0.026064181700348854,
-0.05620056390762329,
-0.005606357473880053,
-0.00433396827429533,
0.0022179638035595417,
0.035470347851514816,
-0.02638339065015316,
-0.02161073312163353,
0.009719870053231716,
0.04317234829068184,
-0.013954060152173042,
-0.028529617935419083,
0.0331178717315197,
0.012897307984530926,
0.010869184508919716,
-0.01744992472231388,
0.03252469003200531,
-0.05942690372467041,
0.05888943374156952,
0.0010469711851328611,
-0.10064348578453064,
-0.034063465893268585,
-0.024700716137886047,
0.007720023859292269,
0.031226111575961113,
-0.05931290611624718,
-0.051578737795352936,
-0.06772422790527344,
0.061921555548906326,
0.02557416632771492,
-0.008248451165854931,
0.0007681598654016852,
-0.011058737523853779,
0.021934764459729195,
0.021266575902700424,
-0.023928096517920494,
-0.004308344796299934,
-0.040405113250017166,
0.03234569728374481,
-0.008932475000619888,
0.003996599465608597,
-0.05798173323273659,
-0.014076648280024529,
0.024485811591148376,
0.011763224378228188,
0.028935741633176804,
-0.041085127741098404,
-0.004729931242763996,
-0.02554449811577797,
-0.013645422644913197,
-0.049419235438108444,
-0.016330229118466377,
-0.031590722501277924,
-0.04235907271504402,
-0.01802544854581356,
-0.030601097270846367,
-0.043359968811273575,
-0.029588062316179276,
0.029231570661067963,
0.0166935995221138,
0.022205974906682968,
-0.009502824395895004,
0.012183720245957375,
-0.030859103426337242,
-0.03395332396030426,
-0.02200813964009285,
0.019952692091464996,
-0.05301796644926071,
-0.009765369817614555,
0.028974279761314392,
-0.004460465162992477,
-0.030895382165908813,
0.004056565463542938,
0.0324435755610466,
0.017378976568579674,
0.006401487626135349,
-0.060009051114320755,
0.05671697109937668,
-0.033044155687093735,
-0.015156099572777748,
0.0001498894562246278,
-0.049288854002952576,
0.047930002212524414,
0.026145685464143753,
0.008600136265158653,
-0.07934170216321945,
0.001195587683469057,
0.028754111379384995,
-0.010815317742526531,
0.03222065046429634,
0.8148927688598633,
0.021236499771475792,
0.0039361873641610146,
-0.003902896773070097,
0.009922920726239681,
-0.01662774197757244,
0.008087626658380032,
-0.01100987009704113,
0.004085130523890257,
0.03889653831720352,
-0.05279555544257164,
-0.02355804480612278,
0.03571074455976486,
0.04513493925333023,
0.041315555572509766,
0.005119802430272102,
0.026870563626289368,
0.006270522251725197,
0.013437889516353607,
-0.020213507115840912,
0.013979540206491947,
-0.006084735039621592,
0.02977699227631092,
0.021209344267845154,
0.007474030368030071,
0.007907758466899395,
-0.15513236820697784,
0.014194224029779434,
-6.810230929592738e-33,
0.022078633308410645,
-0.03491569682955742,
-0.007980873808264732,
-0.01595962420105934,
-0.023658787831664085,
0.0005905340658500791,
-0.025899015367031097,
-0.024839121848344803,
-0.006177423521876335,
-0.0317351296544075,
-0.003492693416774273,
0.012610265053808689,
0.024524301290512085,
-0.024830544367432594,
0.05492944270372391,
-0.03061702288687229,
0.003919871058315039,
0.03521672636270523,
0.016759440302848816,
-0.009467423893511295,
0.003309437073767185,
-0.01386686135083437,
0.024974999949336052,
0.0438520722091198,
0.010392656549811363,
0.06448163837194443,
-0.010380765423178673,
-0.004950673319399357,
-0.016065865755081177,
-0.04052603989839554,
-0.020958857610821724,
-0.008196976035833359,
-0.01746971346437931,
-0.01339034829288721,
0.023254018276929855,
-0.04721089452505112,
-0.0029469900764524937,
0.014976934529840946,
0.006833177525550127,
0.0006230895523913205,
-0.06256300210952759,
-0.02535497210919857,
-0.018183236941695213,
-0.05873170495033264,
-0.046886809170246124,
0.021968984976410866,
0.0010987393325194716,
0.07895158231258392,
-0.009568891488015652,
0.034118182957172394,
0.026024222373962402,
-0.01772134192287922,
0.022753944620490074,
-0.03570884093642235,
0.0059357513673603535,
0.03338416665792465,
0.024031830951571465,
0.022716553881764412,
-0.014831414446234703,
0.032007161527872086,
0.05109308660030365,
0.023657292127609253,
0.008955619297921658,
0.013968651182949543,
-0.03983861580491066,
0.01869901455938816,
0.038190748542547226,
-0.033876631408929825,
0.021882329136133194,
0.016702748835086823,
-0.029545852914452553,
0.03614652901887894,
-0.000654079660307616,
0.0020136155653744936,
0.06367409229278564,
-0.013011915609240532,
0.017027003690600395,
0.005586008075624704,
0.024205313995480537,
0.03466997295618057,
0.054144758731126785,
0.012069745920598507,
-0.03144153207540512,
-0.05132870376110077,
-0.04180631414055824,
-0.02220521867275238,
0.04382193088531494,
0.0011669270461425185,
-0.022504931315779686,
0.017033442854881287,
0.012033747509121895,
-0.021670160815119743,
-0.01916392520070076,
0.006576229818165302,
-0.008260563015937805,
6.376363311543925e-33,
-0.007915082387626171,
-0.01907406374812126,
0.020268887281417847,
-0.0002904113498516381,
0.07867267727851868,
-0.01159769855439663,
0.017481498420238495,
0.01211610622704029,
0.0012902775779366493,
0.02850848250091076,
0.006069712806493044,
-0.03737648203969002,
-0.009531372226774693,
0.013267891481518745,
0.0534440241754055,
-0.008953152224421501,
0.01784469746053219,
0.001826200052164495,
-0.045895516872406006,
-0.011033792048692703,
0.0038209171034395695,
0.003787687048316002,
-0.020187750458717346,
-0.0034196435008198023,
-0.02672911062836647,
0.02142634429037571,
0.0053606098517775536,
-0.02282756380736828,
0.008680214174091816,
0.03207005560398102,
0.028885869309306145,
-0.014589356258511543,
-0.033080533146858215,
-0.03800887241959572,
-0.003506627632305026,
0.02129894122481346,
0.005012422800064087,
-0.02709120139479637,
-0.02185101807117462,
-0.0022619788069278,
0.02629980444908142,
0.015691131353378296,
-0.013425140641629696,
0.04774705693125725,
0.0322493351995945,
0.009508715942502022,
-0.005204298533499241,
0.011072671972215176,
-0.02140195108950138,
-0.01327214390039444,
0.016990458592772484,
0.018890902400016785,
-0.015444537624716759,
0.01084860134869814,
-0.01632353477180004,
0.0038279276341199875,
-0.017596526071429253,
0.011672470718622208,
-0.05353720858693123,
-0.004130844492465258,
-0.03847334161400795,
-0.015964079648256302,
-0.03134584426879883,
0.02813287451863289,
-0.030400915071368217,
0.008617214858531952,
-0.047179050743579865,
-0.013650540262460709,
0.0021811064798384905,
0.037406787276268005,
-0.0029517458751797676,
-0.026348408311605453,
0.0057845208793878555,
0.044279225170612335,
0.005175712984055281,
0.023122217506170273,
-0.03626649081707001,
0.036484599113464355,
-0.006253370549529791,
0.04559466242790222,
0.021039236336946487,
0.017701707780361176,
0.021483872085809708,
-0.009967561811208725,
0.007492190692573786,
0.014853611588478088,
-0.03348629176616669,
-0.02184397354722023,
0.003428725292906165,
-0.028944319114089012,
0.04129885137081146,
-0.04461648315191269,
0.013040856458246708,
0.03494184836745262,
0.048045333474874496,
-1.2419676842512217e-8,
-0.042218830436468124,
0.018174607306718826,
-0.004711766727268696,
0.013767683878540993,
0.02363354153931141,
0.04091350734233856,
0.0030361271928995848,
-0.015481198206543922,
0.009419816546142101,
0.010262303985655308,
0.06887419521808624,
0.0019447347149252892,
0.011079840362071991,
-0.003964133094996214,
-0.02729441039264202,
-0.02817167341709137,
-0.01133479829877615,
0.006514047272503376,
0.04214451462030411,
0.02497152052819729,
0.011285286396741867,
0.02095375396311283,
-0.02591553144156933,
-0.012984839268028736,
0.02056608349084854,
-0.03667448088526726,
0.011444229632616043,
-0.06114985793828964,
-0.017560888081789017,
-0.03572649136185646,
0.0494353286921978,
-0.025460734963417053,
-0.018608877435326576,
0.011586618609726429,
-0.02204951085150242,
-0.06161310151219368,
0.007404892239719629,
0.019708944484591484,
0.006573103368282318,
0.024669183418154716,
-0.04004807025194168,
-0.01454246137291193,
-0.046536076813936234,
-0.01919708400964737,
-0.019154785200953484,
0.02708940953016281,
-0.037003371864557266,
0.010975341312587261,
-0.02064264751970768,
-0.07283821702003479,
-0.007997133769094944,
-0.0014607157791033387,
0.026398593559861183,
0.02885136567056179,
0.022226709872484207,
0.03674080967903137,
-0.016390981152653694,
-0.016108617186546326,
-0.04325138032436371,
-0.016808271408081055,
-0.0036089555360376835,
0.00252155982889235,
0.0015455593820661306,
-0.025765541940927505
] | r-ggplot-show-discrete-scale-even-with-no-value | https://markhneedham.com/blog/2015/06/26/r-ggplot-show-discrete-scale-even-with-no-value |
false | 2015-06-21 22:07:49 | R: Scraping Neo4j release dates with rvest | [
"r-2"
] | [
"R"
] | As part of my log analysis I wanted to get the Neo4j release dates which are accessible from the http://neo4j.com/release-notes[release notes] and decided to try out http://blog.rstudio.org/2014/11/24/rvest-easy-web-scraping-with-r/[Hadley Wickham's rvest scraping library] which he released at the end of 2014.
rvest is based on Python's http://www.crummy.com/software/BeautifulSoup/bs4/doc/[beautifulsoup] which has become my scraping library of choice so I didn't find it too difficult to pick up.
To start with we need to download the release notes locally so we don't have to go over the network when we're doing our scraping:
[source,r]
----
download.file("http://neo4j.com/release-notes/page/1", "release-notes.html")
download.file("http://neo4j.com/release-notes/page/2", "release-notes2.html")
----
We want to parse those pages back and return the rows which contain version numbers and release dates. The HTML looks like this:
image::{{<siteurl>}}/uploads/2015/06/2015-06-21_22-57-20.png[2015 06 21 22 57 20,400]
We can get the rows with the following code:
[source,r]
----
library(rvest)
library(dplyr)
page1 <- html("release-notes.html")
page2 <- html("release-notes2.html")
rows = c(page1 %>% html_nodes("div.small-12 div.row"),
page2 %>% html_nodes("div.small-12 div.row") )
> rows %>% head(1)
[[1]]
<div class="row"> <h3 class="entry-title"><a href="http://neo4j.com/release-notes/neo4j-2-2-2/">Latest Release: Neo4j 2.2.2</a></h3> <h6>05/21/2015</h6> <p>Neo4j 2.2.2 is a maintenance release, with critical improvements.</p>
<p>Notably, this release:</p>
<ul><li>Provides support for running Neo4j on Oracle and OpenJDK Java 8 runtimes</li> <li>Resolves an issue that prevented the Neo4j Browser from loading in the latest Chrome release (43.0.2357.65).</li> <li>Corrects the behavior of the <code>:sysinfo</code> (aka <code>:play sysinfo</code>) browser directive.</li> <li>Improves the <a href="http://neo4j.com/docs/2.2.2/import-tool.html">import tool</a> handling of values containing newlines, and adds support f...</li></ul><a href="http://neo4j.com/release-notes/neo4j-2-2-2/">Read full notes →</a> </div>
----
Now we need to loop through the rows and pull out just the version and release date. I wrote the following function to do this and strip out any extra text that we're not interested in:
[source,r]
----
generate_releases = function(rows) {
releases = data.frame()
for(row in rows) {
version = row %>% html_node("h3.entry-title")
date = row %>% html_node("h6")
if(!is.null(version) && !is.null(date)) {
version = version %>% html_text()
version = gsub("Latest Release: ", "", version)
version = gsub("Neo4j ", "", version)
releases = rbind(releases, data.frame(version = version, date = date %>% html_text()))
}
}
return(releases)
}
> generate_releases(rows)
version date
1 2.2.2 05/21/2015
2 2.2.1 04/14/2015
3 2.1.8 04/01/2015
4 2.2.0 03/25/2015
5 2.1.7 02/03/2015
6 2.1.6 11/25/2014
7 1.9.9 10/13/2014
8 2.1.5 09/30/2014
9 2.1.4 09/04/2014
10 2.1.3 07/28/2014
11 2.0.4 07/08/2014
12 1.9.8 06/19/2014
13 2.1.2 06/11/2014
14 2.0.3 04/30/2014
15 2.0.1 02/04/2014
16 2.0.2 04/15/2014
17 1.9.7 04/11/2014
18 1.9.6 02/03/2014
19 2.0 12/11/2013
20 1.9.5 11/11/2013
21 1.9.4 09/19/2013
22 1.9.3 08/30/2013
23 1.9.2 07/16/2013
24 1.9.1 06/24/2013
25 1.9 05/13/2013
26 1.8.3 //
----
Finally I wanted to convert the 'date' column to be in R date format and get rid of the 1.8.3 row since it doesn't contain a date. lubridate is my goto library for date manipulation in R so we'll use that here:
[source,r]
----
library(lubridate)
> generate_releases(rows) %>%
mutate(date = mdy(date)) %>%
filter(!is.na(date))
version date
1 2.2.2 2015-05-21
2 2.2.1 2015-04-14
3 2.1.8 2015-04-01
4 2.2.0 2015-03-25
5 2.1.7 2015-02-03
6 2.1.6 2014-11-25
7 1.9.9 2014-10-13
8 2.1.5 2014-09-30
9 2.1.4 2014-09-04
10 2.1.3 2014-07-28
11 2.0.4 2014-07-08
12 1.9.8 2014-06-19
13 2.1.2 2014-06-11
14 2.0.3 2014-04-30
15 2.0.1 2014-02-04
16 2.0.2 2014-04-15
17 1.9.7 2014-04-11
18 1.9.6 2014-02-03
19 2.0 2013-12-11
20 1.9.5 2013-11-11
21 1.9.4 2013-09-19
22 1.9.3 2013-08-30
23 1.9.2 2013-07-16
24 1.9.1 2013-06-24
25 1.9 2013-05-13
----
We could then easily see how many releases there were by year:
[source,r]
----
releasesByDate = generate_releases(rows) %>%
mutate(date = mdy(date)) %>%
filter(!is.na(date))
> releasesByDate %>% mutate(year = year(date)) %>% count(year)
Source: local data frame [3 x 2]
year n
1 2013 7
2 2014 13
3 2015 5
----
Or by month:
[source,r]
----
> releasesByDate %>% mutate(month = month(date)) %>% count(month)
Source: local data frame [11 x 2]
month n
1 2 3
2 3 1
3 4 5
4 5 2
5 6 3
6 7 3
7 8 1
8 9 3
9 10 1
10 11 2
11 12 1
----
Previous to this quick bit of hacking I'd always turned to Ruby or Python whenever I wanted to scrape a dataset but it looks like rvest makes R a decent option for this type of work now. Good times! | null | null | [
0.012999326921999454,
-0.029042178764939308,
0.017098505049943924,
0.035341113805770874,
0.07916155457496643,
-0.018435347825288773,
0.006905915681272745,
0.025135895237326622,
0.034915741533041,
-0.00041967787547037005,
-0.007786081172525883,
-0.005095290020108223,
-0.0446307398378849,
0.03194887563586235,
-0.02251114882528782,
0.08252474665641785,
0.05188262462615967,
-0.0059709190391004086,
0.03166823461651802,
-0.01625005714595318,
0.0034671358298510313,
0.05266387388110161,
-0.02603769488632679,
0.04147157073020935,
0.036512989550828934,
-0.022076936438679695,
0.027781549841165543,
-0.0038834125734865665,
-0.06377104669809341,
-0.004665801767259836,
0.04616217315196991,
0.00880948081612587,
0.009932007640600204,
-0.008859370835125446,
0.0400666818022728,
0.005403747782111168,
-0.052608098834753036,
0.004267973359674215,
-0.009632017463445663,
0.002426005667075515,
-0.04948350042104721,
0.020211782306432724,
-0.029134931042790413,
0.02722131460905075,
-0.023966019973158836,
0.05171370133757591,
-0.018244188278913498,
0.054096855223178864,
0.0193510502576828,
0.01672375202178955,
-0.06645294278860092,
0.024635104462504387,
-0.014750023372471333,
-0.049057669937610626,
-0.002375597832724452,
0.030858110636472702,
0.022145628929138184,
-0.0604824535548687,
0.03993549942970276,
-0.035015273839235306,
-0.003297277493402362,
-0.015199817717075348,
-0.008367731235921383,
0.040745384991168976,
-0.00946150254458189,
-0.044794414192438126,
-0.002258659340441227,
0.0585208460688591,
-0.014162621460855007,
-0.021095992997288704,
-0.01519565749913454,
-0.010212799534201622,
-0.042180921882390976,
0.02166740968823433,
0.029046501964330673,
-0.007342336233705282,
-0.014967243187129498,
0.06393798440694809,
0.026411540806293488,
0.03132689744234085,
-0.028431521728634834,
-0.002270936965942383,
0.026023369282484055,
0.02675500139594078,
-0.012869122438132763,
-0.039669521152973175,
-0.041023582220077515,
-0.004915612284094095,
-0.057514216750860214,
0.032887715846300125,
0.010843787342309952,
-0.041859496384859085,
0.027463627979159355,
0.014401722699403763,
-0.02255285158753395,
0.00792871043086052,
-0.011585687287151814,
0.02336067706346512,
0.038173869252204895,
-0.02063749171793461,
-0.06713630259037018,
-0.030001884326338768,
0.018768450245261192,
0.0030704173259437084,
-0.07233919203281403,
-0.007164987735450268,
-0.03998208045959473,
-0.021486898884177208,
-0.025426814332604408,
-0.012989996932446957,
-0.009916356764733791,
0.02383708395063877,
-0.03529806062579155,
0.02521577477455139,
-0.06930099427700043,
0.0500548891723156,
-0.0015760682290419936,
-0.04343123361468315,
-0.07384758442640305,
0.01386701688170433,
0.019216375425457954,
0.01964939385652542,
0.0029863177333027124,
0.06259837001562119,
-0.006302901078015566,
0.0821392834186554,
-0.028626326471567154,
0.03196132183074951,
-0.024932144209742546,
-0.06937617063522339,
-0.00882011279463768,
0.07652679085731506,
0.0003334379871375859,
0.0052580637857317924,
-0.028068164363503456,
0.01367130782455206,
-0.04609092324972153,
-0.00026280462043359876,
0.09606020152568817,
0.028611693531274796,
0.00827864184975624,
-0.01797531731426716,
0.023274611681699753,
0.03715001419186592,
0.045383382588624954,
0.022430766373872757,
-0.03576948866248131,
-0.04803973808884621,
-0.060522034764289856,
0.0005984568851999938,
0.024561746045947075,
0.0021938257850706577,
0.03933592513203621,
0.011964201927185059,
0.02870786003768444,
0.09142443537712097,
0.04399977624416351,
0.018822496756911278,
-0.002623401815071702,
-0.00395424198359251,
0.05065677687525749,
0.05329669266939163,
-0.002515125786885619,
0.08528859913349152,
-0.0037991004064679146,
-0.02683946117758751,
-0.0025474841240793467,
0.0600363127887249,
-0.019729668274521828,
0.012411253526806831,
-0.06683627516031265,
-0.044875286519527435,
0.0782705768942833,
-0.03319410979747772,
-0.031499072909355164,
0.04111509770154953,
0.07670781761407852,
0.0015299050137400627,
0.01294996403157711,
-0.006723415572196245,
-0.05855592340230942,
0.051307596266269684,
0.02689061500132084,
0.01752542331814766,
-0.0004400121106300503,
-0.008213679306209087,
0.11874156445264816,
0.02791173942387104,
0.012062011286616325,
0.033477429300546646,
-0.09513687342405319,
-0.0724034458398819,
-0.029412593692541122,
-0.0202476866543293,
0.07016664743423462,
-0.015641244128346443,
0.0228068009018898,
0.06535129994153976,
0.009758532978594303,
0.04822098836302757,
0.012262280099093914,
0.01921619474887848,
-0.004423377104103565,
-0.05045752227306366,
-0.06771653890609741,
-0.0006182590732350945,
0.04138219356536865,
-0.06570439040660858,
-0.031937647610902786,
0.009624365717172623,
-0.03724302724003792,
0.04189317300915718,
0.021061459556221962,
-0.030341489240527153,
0.03226692974567413,
0.04632231220602989,
0.04344680532813072,
-0.0102896299213171,
0.023853734135627747,
-0.0536491721868515,
0.04326358065009117,
-0.017118360847234726,
-0.00776812806725502,
-0.03623684495687485,
0.0033984528854489326,
0.11124417930841446,
0.05495976656675339,
0.014397317543625832,
-0.03991793468594551,
0.05486109107732773,
-0.006690316833555698,
-0.01725701615214348,
0.027088448405265808,
-0.021727506071329117,
-0.006154702976346016,
-0.01600007712841034,
-0.025246789678931236,
-0.034356821328401566,
-0.01867593452334404,
-0.03116660937666893,
0.03417658060789108,
0.033147621899843216,
0.004436899442225695,
0.03344586864113808,
0.022465404123067856,
0.008841144852340221,
0.0019331619841977954,
-0.048345185816287994,
-0.04747123271226883,
0.02821216732263565,
0.048022352159023285,
-0.010358938947319984,
0.02514742501080036,
-0.024388296529650688,
-0.011857504956424236,
0.010686426423490047,
-0.03747085854411125,
0.021327314898371696,
0.07116825133562088,
0.06508495658636093,
0.01301377359777689,
-0.0072181373834609985,
-0.04371199384331703,
0.020259462296962738,
-0.008319234475493431,
-0.059423111379146576,
-0.06378789991140366,
-0.0791366845369339,
0.02526458166539669,
0.04614204913377762,
-0.0042976695112884045,
-0.016059620305895805,
-0.004099288489669561,
0.03145647421479225,
0.017769208177924156,
-0.016906246542930603,
0.05506191402673721,
-0.021170852705836296,
-0.0032944711856544018,
-0.04620730131864548,
-0.02065589278936386,
0.042341869324445724,
-0.04405214264988899,
-0.057828810065984726,
-0.03676910325884819,
-0.061323050409555435,
0.046518441289663315,
-0.0341855064034462,
-0.016336223110556602,
-0.022365732118487358,
-0.014611545018851757,
0.052359629422426224,
0.046365927904844284,
0.036019571125507355,
0.06356929987668991,
0.02408558875322342,
0.030243007466197014,
0.01098274253308773,
0.006869421806186438,
0.04360899701714516,
-0.011279753409326077,
-0.005340640898793936,
0.0368172749876976,
-0.011254243552684784,
0.04047728702425957,
-0.03901973366737366,
0.02503885328769684,
-0.04042503237724304,
-0.24875077605247498,
0.036630779504776,
-0.009752885438501835,
-0.05128692090511322,
0.024137184023857117,
-0.022732194513082504,
0.0022448389790952206,
-0.02790069207549095,
-0.005479973740875721,
0.00499796774238348,
0.00009895725816022605,
-0.014648033306002617,
0.009190731681883335,
0.032022569328546524,
0.02324529178440571,
0.010189741849899292,
0.02478775940835476,
-0.014121904037892818,
0.017523372545838356,
0.02079012803733349,
0.02596960961818695,
-0.036732714623212814,
0.009426306001842022,
0.004031372256577015,
-0.0013851500116288662,
0.04833267256617546,
-0.07510830461978912,
0.036075424402952194,
-0.05950409546494484,
-0.0557684600353241,
0.030095454305410385,
-0.03282976150512695,
0.033042196184396744,
-0.00030416989466175437,
-0.010523885488510132,
-0.0026230246294289827,
0.05633096769452095,
0.03616949915885925,
-0.0022561168298125267,
0.011114872992038727,
-0.0211657527834177,
-0.040507230907678604,
-0.024911046028137207,
-0.01349995844066143,
0.08731579780578613,
-0.009480157867074013,
-0.06203237175941467,
-0.020715678110718727,
-0.014035053551197052,
0.07612735778093338,
-0.03301724046468735,
-0.022052163258194923,
-0.009362653829157352,
0.021362314000725746,
-0.016846846789121628,
-0.04318614304065704,
-0.04327244684100151,
-0.0012360208202153444,
-0.025455458089709282,
-0.047211404889822006,
0.020166048780083656,
-0.028773793950676918,
0.009832236915826797,
-0.053922563791275024,
-0.027161909267306328,
-0.07823463529348373,
-0.05317605659365654,
-0.04371754452586174,
0.03026045300066471,
0.027447771281003952,
-0.03475622087717056,
0.007742689456790686,
-0.02558274380862713,
-0.10044093430042267,
0.0009405562886968255,
-0.06166679039597511,
-0.0029377045575529337,
-0.002693183021619916,
-0.013067156076431274,
0.06488150358200073,
-0.06467032432556152,
-0.04855149984359741,
0.02661888301372528,
0.02982967346906662,
0.0038926873821765184,
0.0011083688586950302,
0.01632959395647049,
-0.016084928065538406,
-0.01987430453300476,
-0.02222013659775257,
0.060933612287044525,
-0.043203067034482956,
-0.027431670576334,
0.009392189793288708,
-0.0043884278275072575,
0.04395998269319534,
0.011352578178048134,
0.025933770462870598,
0.04393428564071655,
0.07008537650108337,
0.015295413322746754,
-0.021836353465914726,
0.010051204822957516,
-0.018073618412017822,
-0.017673756927251816,
-0.01407821848988533,
-0.02787700854241848,
0.008062882348895073,
0.006867410149425268,
0.014940080232918262,
0.008240906521677971,
-0.024161815643310547,
-0.011988072656095028,
-0.02070498839020729,
-0.023154189810156822,
0.001785518485121429,
0.017674645408988,
0.007584135979413986,
-0.005419188179075718,
-0.01726384274661541,
-0.07773424685001373,
-0.007326881866902113,
0.0003375150845386088,
-0.01581757143139839,
-0.034373316913843155,
-0.04036622494459152,
0.01441258005797863,
-0.02934722602367401,
0.01975637674331665,
0.024765945971012115,
-0.028474433347582817,
0.02318834885954857,
0.02667968161404133,
-0.02536654844880104,
0.04100324213504791,
-0.0122119951993227,
-0.00462777866050601,
-0.038500603288412094,
0.02554554119706154,
0.0011812198208644986,
-0.046824559569358826,
-0.010931036435067654,
-0.0009866642067208886,
0.05489931255578995,
0.044745832681655884,
0.0054856520146131516,
0.03037438727915287,
0.025855351239442825,
-0.006376812234520912,
-0.016964368522167206,
-0.03301475569605827,
-0.015930788591504097,
0.009367789141833782,
-0.023393459618091583,
-0.02709321863949299,
-0.03282805532217026,
0.04944470897316933,
0.007583069149404764,
-0.03003007546067238,
-0.025028489530086517,
0.015187764540314674,
-0.06043830141425133,
0.03875281661748886,
0.012399828061461449,
-0.01640358380973339,
0.0317472368478775,
0.011339087039232254,
0.04117554798722267,
0.019328681752085686,
-0.03376994654536247,
-0.0014895126223564148,
0.029623959213495255,
0.0020689840894192457,
0.0106597188860178,
-0.01338293869048357,
-0.003854008624330163,
0.0261265616863966,
0.035120077431201935,
0.003892621723935008,
-0.006241618189960718,
-0.026680490002036095,
-0.022742347791790962,
0.02392246387898922,
0.013654423877596855,
0.01718784309923649,
0.04277276247739792,
-0.057504042983055115,
0.017496101558208466,
-0.020475586876273155,
0.003293353831395507,
-0.01273415144532919,
0.0059876954182982445,
-0.025672676041722298,
0.0018961688037961721,
-0.00619953079149127,
-0.09051627665758133,
0.033488430082798004,
-0.013445478864014149,
0.0002500280970707536,
0.020239509642124176,
-0.031647685915231705,
0.014370067045092583,
-0.02458082139492035,
0.03982343524694443,
0.038490500301122665,
-0.04422871023416519,
-0.04447896033525467,
-0.006305571645498276,
-0.010222204960882664,
0.004174006637185812,
0.007455667480826378,
-0.07857516407966614,
-0.010476022027432919,
0.043611861765384674,
0.009079493582248688,
-0.006144504062831402,
-0.06261369585990906,
-0.03590819984674454,
0.01669619232416153,
0.006275056861341,
0.027173666283488274,
0.006612230557948351,
0.0060519082471728325,
-0.017370447516441345,
-0.0068363924510777,
0.012967453338205814,
-0.000049664075049804524,
-0.03665692359209061,
-0.02737516351044178,
-0.009302911348640919,
0.04114658758044243,
-0.018965624272823334,
0.04056449234485626,
0.004326127003878355,
-0.013177254237234592,
0.004661876242607832,
-0.03202548250555992,
0.03482060506939888,
-0.0033934779930859804,
0.030303528532385826,
-0.0003297783841844648,
0.06573691219091415,
-0.025959378108382225,
-0.003294511931017041,
-0.01351582258939743,
-0.03341592475771904,
0.011287925764918327,
0.0014150821371003985,
0.009311139583587646,
0.03896838799118996,
0.02476685494184494,
0.005714984145015478,
-0.0031547686085104942,
-0.05613591521978378,
0.05300004035234451,
-0.0382930189371109,
-0.06965591758489609,
-0.028993474319577217,
-0.07157845795154572,
0.00408591004088521,
0.05767248198390007,
0.021659020334482193,
-0.03752949833869934,
0.04576398804783821,
0.01974370889365673,
0.024454249069094658,
0.04141489043831825,
-0.02780936285853386,
0.02314508706331253,
-0.0482800155878067,
0.0011970772175118327,
-0.06133652478456497,
-0.00957914162427187,
0.0551920011639595,
0.0010066416580229998,
0.0006143446662463248,
0.00395307457074523,
-0.031764570623636246,
0.024904998019337654,
-0.06225414574146271,
-0.03778908774256706,
0.04167544096708298,
-0.039744701236486435,
-0.0029260627925395966,
-0.02377242222428322,
-0.05081455782055855,
-0.0005994118400849402,
0.05835112929344177,
-0.03785380721092224,
-0.015827853232622147,
-0.02768228016793728,
0.051405660808086395,
-0.044736649841070175,
0.02517455630004406,
-0.02006443217396736,
-0.022289438173174858,
0.0914197489619255,
0.024748370051383972,
0.0058774384669959545,
0.028400521725416183,
-0.014417938888072968,
-0.0037817407865077257,
0.026417266577482224,
-0.020486747846007347,
0.013885067775845528,
0.050250425934791565,
0.01725241355597973,
-0.004996058065444231,
0.027127575129270554,
0.013857164420187473,
-0.004413305781781673,
-0.026354962959885597,
0.08319218456745148,
0.02016115002334118,
-0.04153314605355263,
-0.04345018044114113,
0.028975317254662514,
-0.022151725366711617,
-0.02334093488752842,
-0.033324725925922394,
-0.014714712277054787,
-0.046343620866537094,
0.06513103097677231,
-0.005447563715279102,
-0.005319777876138687,
0.07048770040273666,
-0.019056249409914017,
-0.0022425781935453415,
0.02024136297404766,
0.07502154260873795,
0.09900283068418503,
0.031540773808956146,
-0.0013821849133819342,
0.07407717406749725,
0.004069952759891748,
-0.043235454708337784,
-0.012842318043112755,
-0.05273253470659256,
0.007718115579336882,
-0.003482693573459983,
-0.01725885644555092,
0.0314369834959507,
-0.007242512423545122,
0.0442361980676651,
-0.034902531653642654,
0.008643520064651966,
-0.02214549109339714,
-0.006852708291262388,
0.029983535408973694,
0.014316012151539326,
0.015264307148754597,
0.019207024946808815,
-0.044730499386787415,
-0.01098609995096922,
0.044184599071741104,
-0.019283829256892204,
-0.021250953897833824,
0.02709163911640644,
-0.005893934518098831,
-0.008343702182173729,
-0.003984156064689159,
0.05662594363093376,
0.0678308829665184,
-0.02323201112449169,
-0.03395982086658478,
-0.010726381093263626,
0.029919464141130447,
-0.010950632393360138,
0.0006382825667969882,
-0.007621197495609522,
-0.009988108649849892,
0.00801919400691986,
-0.04812268167734146,
-0.020607518032193184,
-0.0220622755587101,
-0.034890033304691315,
0.02350977435708046,
-0.027964869514107704,
-0.012566149234771729,
0.0053751831874251366,
-0.04673784598708153,
-0.03556019812822342,
-0.032651230692863464,
-0.03050312213599682,
-0.043082211166620255,
-0.08462082594633102,
-0.009677889756858349,
0.027147993445396423,
0.01293153129518032,
-0.023615095764398575,
-0.011296164244413376,
-0.005063978489488363,
-0.014313863590359688,
0.023991968482732773,
-0.06004366651177406,
0.0025864208582788706,
-0.003646374912932515,
0.014938130974769592,
-0.004217534326016903,
0.03482972830533981,
0.036725014448165894,
-0.001056430977769196,
-0.02179117128252983,
-0.004272604826837778,
0.033940427005290985,
0.054591670632362366,
0.026109490543603897,
0.00789045449346304,
-0.0657113790512085,
-0.008916378952562809,
0.00606561591848731,
-0.0022264174185693264,
-0.059408240020275116,
0.004590044263750315,
0.004444446414709091,
-0.011357446201145649,
0.04300998896360397,
-0.010896876454353333,
0.006765967234969139,
-0.01095653884112835,
-0.03187059611082077,
0.038988154381513596,
0.02251904271543026,
0.019380904734134674,
-0.02267809398472309,
0.08140213787555695,
0.04233240336179733,
-0.003569919615983963,
-0.05306132882833481,
-0.03612242639064789,
-0.011334444396197796,
0.016500812023878098,
-0.061215244233608246,
-0.014204808510839939,
-0.08309037238359451,
-0.09223812818527222,
-0.07255250215530396,
0.01710447669029236,
-0.02738206647336483,
-0.025645457208156586,
0.0014189042849466205,
0.01417628489434719,
-0.007482691667973995,
0.02502400428056717,
-0.031248975545167923,
0.03070998005568981,
-0.008520827628672123,
-0.026043497025966644,
-0.017182372510433197,
0.02108926512300968,
0.0007672852952964604,
0.015598098747432232,
0.0051627750508487225,
-0.031272608786821365,
-0.02753636986017227,
-0.047019317746162415,
0.0314025916159153,
0.05265912041068077,
0.024090556427836418,
0.0016083712689578533
] | [
-0.0698351338505745,
-0.022562427446246147,
-0.009357594884932041,
-0.015209091827273369,
0.09701252728700638,
-0.04791220650076866,
-0.06322336941957474,
0.019013645127415657,
-0.008748422376811504,
-0.020697200670838356,
0.03208637610077858,
-0.01785738579928875,
-0.00604540528729558,
-0.007072211243212223,
0.05213358998298645,
-0.0033585273195058107,
-0.015340610407292843,
-0.07476846873760223,
-0.006916488520801067,
0.0660834088921547,
-0.023062609136104584,
-0.015246599912643433,
-0.02536279894411564,
-0.04814344644546509,
0.02051861584186554,
0.026138797402381897,
0.027970243245363235,
-0.016603080555796623,
-0.039278220385313034,
-0.1760193407535553,
0.012765230610966682,
-0.0002832084719557315,
0.014371014200150967,
0.0015550084644928575,
0.034727778285741806,
0.025669267401099205,
0.04214048013091087,
-0.02352297119796276,
0.025420941412448883,
0.02450738288462162,
0.009022154845297337,
0.011389227584004402,
-0.07619886845350266,
-0.002684138249605894,
0.050400905311107635,
0.033725857734680176,
-0.004469493869692087,
-0.027705298736691475,
-0.00540941720828414,
0.008980638347566128,
-0.06921892613172531,
0.03062291257083416,
0.004892181139439344,
-0.014451215043663979,
0.006573778111487627,
0.014006129465997219,
0.03993064537644386,
0.06536144018173218,
0.01978781633079052,
0.04697345197200775,
-0.0035176167730242014,
-0.002656848169863224,
-0.14641180634498596,
0.08815275877714157,
0.0025561482179909945,
0.004541818983852863,
-0.06733570247888565,
-0.011520452797412872,
-0.012513305060565472,
0.07184215635061264,
0.00040440360317006707,
-0.013897180557250977,
-0.05998300388455391,
0.06882671266794205,
-0.0026866879779845476,
-0.0004654194926843047,
0.004889161791652441,
0.018667805939912796,
0.014222037978470325,
-0.03778836503624916,
-0.037329692393541336,
0.03401472792029381,
-0.023857638239860535,
-0.02169192209839821,
-0.02434333972632885,
0.05726087838411331,
-0.0037461144383996725,
0.050573818385601044,
0.006400034297257662,
0.038093339651823044,
0.034340012818574905,
0.011866859160363674,
0.041779786348342896,
0.034673165529966354,
-0.08645448088645935,
-0.02410820685327053,
0.017126357182860374,
0.031022565439343452,
0.035413023084402084,
0.39073845744132996,
0.005627856124192476,
0.008867550641298294,
0.04452618584036827,
0.05098944902420044,
-0.005081080831587315,
-0.03611643984913826,
-0.0007056340691633523,
-0.06494329124689102,
0.02528778836131096,
-0.028213443234562874,
0.006582662463188171,
-0.00429326668381691,
0.08072683215141296,
-0.10194464027881622,
0.024734623730182648,
-0.0017314332071691751,
0.01668063923716545,
0.018185952678322792,
-0.014767584390938282,
-0.0025279466062784195,
-0.019710056483745575,
0.0007277706172317266,
0.060350652784109116,
-0.00966254249215126,
0.028292277827858925,
0.04150239750742912,
0.032586511224508286,
0.03790704160928726,
0.04368087649345398,
0.006921607069671154,
0.03359200805425644,
0.00591242965310812,
-0.07580600678920746,
0.014066111296415329,
-0.005936272442340851,
0.0011032894253730774,
0.022342359647154808,
-0.031684570014476776,
-0.025086283683776855,
0.017869429662823677,
-0.024681104347109795,
-0.05018984153866768,
0.010650118812918663,
0.019723840057849884,
-0.049996692687273026,
0.11693237721920013,
0.0095895454287529,
-0.01907855086028576,
-0.03038504719734192,
-0.04568297788500786,
-0.008456570096313953,
0.050831086933612823,
0.012599256820976734,
-0.05958230793476105,
0.0010621907422319055,
0.0005395227344706655,
0.08197857439517975,
-0.02622486650943756,
-0.08179756253957748,
-0.0019113461021333933,
-0.0031487818341702223,
-0.04067781940102577,
-0.03185718134045601,
0.05585962533950806,
0.04226214066147804,
-0.13483628630638123,
-0.005490695592015982,
0.03112412802875042,
0.040218885987997055,
-0.05351055786013603,
0.014978524297475815,
0.00208563101477921,
-0.04158275946974754,
-0.030039731413125992,
0.07632309198379517,
-0.013544134795665741,
-0.005139952525496483,
-0.006986991036683321,
0.060618188232183456,
-0.0009468522039242089,
-0.03497990593314171,
-0.01275049801915884,
-0.057004399597644806,
0.01378622092306614,
-0.057436536997556686,
-0.07692436873912811,
-0.08939997851848602,
0.028387298807501793,
-0.03888760507106781,
-0.000678872864227742,
-0.004911492113023996,
-0.04120584577322006,
-0.04193108528852463,
0.07260985672473907,
-0.03102489374577999,
-0.020062100142240524,
-0.04022807627916336,
0.02678271196782589,
-0.02033090963959694,
-0.02697090059518814,
0.018934231251478195,
-0.020501038059592247,
-0.02449692413210869,
0.007939090952277184,
-0.0433480367064476,
0.030614357441663742,
0.0959649607539177,
-0.048734162002801895,
0.06774835288524628,
0.04341650754213333,
-0.03495229408144951,
0.001326070399954915,
0.018523210659623146,
0.011939426884055138,
-0.017377277836203575,
-0.008549725636839867,
0.00550571084022522,
-0.024134833365678787,
0.01892167702317238,
0.05833778157830238,
-0.031293075531721115,
-0.051893118768930435,
-0.03500586375594139,
-0.3467444181442261,
-0.036809660494327545,
-0.023999789729714394,
-0.005762468092143536,
0.04075373709201813,
-0.04832160100340843,
0.04245967045426369,
-0.02959027700126171,
0.01682978682219982,
0.03245412930846214,
0.10088543593883514,
0.011921214871108532,
0.007147212512791157,
-0.09299282729625702,
0.01487241592258215,
0.027435557916760445,
0.005595664959400892,
-0.004473934415727854,
-0.021748973056674004,
0.013612530194222927,
0.0036541472654789686,
-0.08420076966285706,
-0.04053382948040962,
-0.03598625212907791,
0.006351863965392113,
-0.03023591823875904,
0.12123321741819382,
0.0260604415088892,
0.019878696650266647,
-0.05010470747947693,
0.03454926982522011,
0.01253628358244896,
-0.020257145166397095,
-0.09118305891752243,
-0.004828955978155136,
-0.029707731679081917,
0.01762482337653637,
0.02731027826666832,
-0.010834567248821259,
-0.03033178672194481,
-0.025258587673306465,
0.011177850887179375,
-0.024747226387262344,
-0.03182267025113106,
-0.04296310991048813,
0.022652320563793182,
-0.026756182312965393,
-0.009538567624986172,
0.015544857829809189,
0.07242859154939651,
0.033703409135341644,
0.01726260781288147,
0.016611356288194656,
0.03305651992559433,
0.014606243930757046,
-0.014779389835894108,
-0.05409545451402664,
-0.008860994130373001,
0.0234130397439003,
0.014940771274268627,
0.0006669200374744833,
0.007827669382095337,
0.040250249207019806,
-0.09023723006248474,
0.010514008812606335,
0.006024596281349659,
0.0013673490611836314,
0.007859916426241398,
0.027783725410699844,
-0.020379699766635895,
-0.014862279407680035,
0.08374765515327454,
-0.028651190921664238,
0.04958019405603409,
0.001144010224379599,
0.04853145778179169,
-0.008792247623205185,
0.014990446157753468,
0.05473369359970093,
0.003529672510921955,
0.027133967727422714,
-0.02591072767972946,
0.06921987980604172,
-0.017227012664079666,
-0.035036057233810425,
0.059651851654052734,
0.007632838562130928,
-0.06160574406385422,
0.05923885107040405,
0.03272683173418045,
-0.02020701766014099,
0.0010917267063632607,
-0.024636900052428246,
-0.0679406076669693,
0.07437268644571304,
0.004860641900449991,
-0.2541256546974182,
0.03549930080771446,
0.034624192863702774,
0.06436660885810852,
0.004053988493978977,
-0.00959986075758934,
0.014269047416746616,
-0.024000095203518867,
0.020591719076037407,
0.013624287210404873,
0.0241108201444149,
0.05722374469041824,
-0.025260526686906815,
-0.03820301219820976,
-0.00034170146682299674,
0.0059304870665073395,
0.04957679286599159,
0.017512574791908264,
0.012935993261635303,
0.005636497400701046,
0.03460519015789032,
-0.03199878707528114,
0.17080187797546387,
0.06409808993339539,
-0.035573266446590424,
0.026157712563872337,
-0.028559166938066483,
0.017290465533733368,
0.04412864148616791,
-0.029940351843833923,
-0.010832469910383224,
0.021967684850096703,
-0.018918706104159355,
0.022753046825528145,
0.011532995849847794,
-0.05291746184229851,
-0.039590638130903244,
0.05272873491048813,
0.03174564987421036,
-0.03353659063577652,
-0.012856485322117805,
0.02508704550564289,
-0.06960661709308624,
0.024002574384212494,
0.06955861300230026,
-0.02834690362215042,
-0.01019775215536356,
-0.02945053018629551,
-0.08398114889860153,
-0.0013630905887112021,
-0.028531966730952263,
-0.04286522418260574,
-0.027754025533795357,
-0.014233464375138283,
0.01257544569671154,
0.09117791056632996,
0.025955840945243835,
-0.03191928565502167,
0.04193215072154999,
0.017641015350818634,
0.005029375199228525,
-0.0556938461959362,
0.11070242524147034,
0.009120569564402103,
0.015427921898663044
] | [
0.012427949346601963,
0.053282227367162704,
-0.009054044261574745,
0.015682123601436615,
0.017877813428640366,
-0.0031487932428717613,
-0.03152133896946907,
-0.01528224814683199,
-0.0019584859255701303,
0.0006767450249753892,
-0.013905209489166737,
0.03955337405204773,
0.03361770883202553,
-0.04419868439435959,
-0.008392338640987873,
0.030448338016867638,
-0.03756559267640114,
0.014173595234751701,
0.032652925699949265,
0.04217993840575218,
-0.03097180463373661,
0.004456780850887299,
0.0409492589533329,
-0.008641652762889862,
-0.005748432129621506,
0.038513701409101486,
-0.05194009095430374,
0.003454659366980195,
0.018817849457263947,
-0.09655854851007462,
-0.009690971113741398,
-0.022126631811261177,
-0.02232777141034603,
-0.0275382399559021,
-0.002164955949410796,
0.025525400415062904,
-0.02393025904893875,
-0.00016640931426081806,
0.020601268857717514,
0.05428306385874748,
-0.010174139402806759,
0.004319733940064907,
-0.00823208037763834,
-0.005471845623105764,
-0.0010545516852289438,
-0.050223175436258316,
-0.04007621109485626,
-0.015219371765851974,
-0.01780470833182335,
-0.028526274487376213,
-0.021830067038536072,
-0.013679537922143936,
-0.012107305228710175,
-0.03500114381313324,
0.0057693589478731155,
-0.011587196961045265,
-0.016059361398220062,
-0.0255443025380373,
-0.0019484146032482386,
-0.01071539893746376,
0.022189002484083176,
-0.03270333632826805,
-0.04109415039420128,
-0.029838362708687782,
-0.009376178495585918,
-0.019426967948675156,
-0.017301999032497406,
0.03770506754517555,
-0.0003174292214680463,
0.022632118314504623,
-0.044827185571193695,
0.042541902512311935,
-0.07490668445825577,
-0.028193265199661255,
-0.031230827793478966,
-0.03291952982544899,
0.036861397325992584,
-0.022560715675354004,
-0.028201356530189514,
-0.014611107297241688,
-0.03378850966691971,
-0.016028638929128647,
-0.006800575647503138,
0.015254002995789051,
-0.048609986901283264,
-0.016109507530927658,
0.03256291151046753,
-0.015318007208406925,
-0.0007674767402932048,
-0.00855700857937336,
0.0017254800768569112,
-0.006099136080592871,
0.010137557983398438,
0.018544573336839676,
-0.10299848765134811,
-0.01129743829369545,
0.05648326873779297,
-0.01732746884226799,
0.03199506551027298,
0.816642701625824,
0.03424409031867981,
-0.026688698679208755,
-0.012462045066058636,
-0.015100989490747452,
0.012463697232306004,
-0.0071028247475624084,
-0.0024043992161750793,
0.010399671271443367,
0.01179497130215168,
-0.015409798361361027,
-0.004740308504551649,
0.02148575522005558,
-0.010763641446828842,
0.030963346362113953,
-0.01921110413968563,
0.023878470063209534,
0.005417109001427889,
-0.0038876591715961695,
0.013609695248305798,
0.021111350506544113,
0.042602669447660446,
0.029046744108200073,
0.0121474489569664,
0.0022470213007181883,
-0.004691932816058397,
-0.16309481859207153,
0.0308773722499609,
-6.496088880543113e-33,
0.051118481904268265,
-0.0092798862606287,
0.0009728874429129064,
-0.019994204863905907,
0.03711274638772011,
0.02493012696504593,
-0.02177858166396618,
-0.04444176331162453,
-0.031202783808112144,
-0.028113774955272675,
-0.008206205442547798,
0.0015099967131391168,
-0.0030747931450605392,
-0.012298806570470333,
0.008393719792366028,
-0.0008847154094837606,
0.00010961916268570349,
0.040479134768247604,
0.03767557069659233,
0.009794014506042004,
0.018677692860364914,
0.014236346818506718,
0.015583707019686699,
0.05584742873907089,
-0.001455872319638729,
0.016289975494146347,
-0.011656094342470169,
0.030217189341783524,
-0.03030272014439106,
-0.05453341826796532,
-0.003521040314808488,
0.005691369995474815,
-0.003575006267055869,
-0.048081036657094955,
0.01732836849987507,
-0.05652515962719917,
-0.027904806658625603,
0.006892148405313492,
-0.044716060161590576,
-0.05468108132481575,
-0.011972964741289616,
0.01067038718611002,
-0.019253533333539963,
-0.027117086574435234,
-0.020635848864912987,
0.029683895409107208,
-0.009409991092979908,
0.022541578859090805,
-0.004356136079877615,
0.011636955663561821,
-0.026482772082090378,
0.002563090529292822,
0.030255727469921112,
-0.012601597234606743,
-0.05037574842572212,
0.0024388679303228855,
0.01500797551125288,
-0.013786489143967628,
0.0209721140563488,
0.017729947343468666,
0.030131304636597633,
0.009082647040486336,
0.012806979939341545,
0.01639161817729473,
0.01454756036400795,
0.008744672872126102,
0.03915327414870262,
0.004289559088647366,
0.026241326704621315,
0.03219589963555336,
-0.04896146431565285,
0.060210395604372025,
-0.002502357354387641,
-0.013300014659762383,
0.07080359011888504,
-0.04087701439857483,
0.010118437930941582,
-0.002166224177926779,
0.06532660871744156,
0.046378105878829956,
0.013958667404949665,
-0.021518416702747345,
0.019223270937800407,
-0.036395881325006485,
-0.026607263833284378,
-0.015502546913921833,
-0.005808004178106785,
-0.006315566133707762,
0.014860224910080433,
0.022639883682131767,
0.018001455813646317,
0.03625987097620964,
-0.030844662338495255,
-0.031641148030757904,
-0.01403013989329338,
6.0053765597404414e-33,
-0.0012947465293109417,
0.0042832354083657265,
-0.0002207557117799297,
0.02496187388896942,
0.028820853680372238,
0.02168441191315651,
-0.017849501222372055,
0.03700564056634903,
-0.02672213688492775,
0.035537607967853546,
0.025752605870366096,
-0.011896761134266853,
-0.04862365126609802,
0.013608444482088089,
0.0633179321885109,
-0.0050077554769814014,
0.024399427697062492,
-0.035670991986989975,
-0.013426684774458408,
0.012386595830321312,
-0.021970709785819054,
0.013134991750121117,
-0.01679876446723938,
0.008578135631978512,
0.06392482668161392,
0.018522486090660095,
-0.0030775200575590134,
0.006942169275134802,
-0.009940534830093384,
0.0048681143671274185,
0.010383960790932178,
-0.03975823521614075,
-0.022770030423998833,
0.008314386941492558,
-0.02614380605518818,
0.05374260991811752,
-0.010264365002512932,
-0.011846193112432957,
0.03426375240087509,
0.04081442952156067,
0.028105374425649643,
0.017519114539027214,
0.002608250128105283,
0.03855615481734276,
0.0026267559733241796,
0.012509312480688095,
0.007600364275276661,
0.0403558686375618,
-0.01717349886894226,
0.005235299933701754,
-0.0033178450539708138,
0.004856026265770197,
-0.002832737285643816,
0.021871982142329216,
0.026503298431634903,
-0.033180899918079376,
-0.015934240072965622,
0.030805712565779686,
-0.04843952879309654,
0.03413023427128792,
-0.04000309109687805,
0.010301635600626469,
-0.05048472806811333,
0.049650102853775024,
-0.050559986382722855,
-0.016634561121463776,
-0.02445574849843979,
0.007195870857685804,
-0.017057029530405998,
0.01761043071746826,
0.015775514766573906,
0.013638571836054325,
0.004581190180033445,
-0.019618786871433258,
0.01630914956331253,
-0.007100131828337908,
-0.03713585063815117,
0.00007896526221884415,
-0.052169784903526306,
0.029895823448896408,
-0.007842994295060635,
0.03816806524991989,
0.029038861393928528,
-0.008994723670184612,
-0.01842457987368107,
0.014984522946178913,
-0.03129308298230171,
-0.010157514363527298,
0.022421574220061302,
-0.05712014064192772,
0.022122910246253014,
-0.05063823610544205,
-0.017804836854338646,
0.04003453999757767,
-0.020996229723095894,
-1.2143783756357607e-8,
-0.03558916226029396,
0.0075314464047551155,
-0.007555732503533363,
-0.004314949735999107,
0.04213091731071472,
0.03749193251132965,
-0.002481181174516678,
-0.013299298472702503,
-0.0064442455768585205,
0.023383334279060364,
0.06782988458871841,
-0.0431191548705101,
-0.008006017655134201,
-0.008627627976238728,
-0.015262448228895664,
-0.02810942940413952,
-0.0019166383426636457,
0.026217972859740257,
0.026342786848545074,
-0.009503466077148914,
0.04084005206823349,
0.01196707971394062,
0.024513250216841698,
-0.01092966366559267,
0.0426904670894146,
-0.041765760630369186,
0.0013435223372653127,
-0.07193450629711151,
0.0017643629107624292,
-0.04284330829977989,
0.04491112753748894,
-0.02204073779284954,
-0.01729535311460495,
0.003683536546304822,
0.006441246252506971,
-0.025417499244213104,
0.014010765589773655,
0.02344132959842682,
-0.02230256423354149,
0.03430229425430298,
-0.002152681816369295,
0.00243086158297956,
-0.025318503379821777,
-0.015234016813337803,
-0.044905100017786026,
-0.0026026901323348284,
-0.07028622180223465,
-0.03900616988539696,
0.042387351393699646,
-0.061335448175668716,
0.03128073364496231,
-0.035210829228162766,
0.027364395558834076,
0.032329510897397995,
0.05968419089913368,
0.007956148125231266,
0.027835283428430557,
-0.010799611918628216,
-0.03784474357962608,
-0.012872048653662205,
0.027328308671712875,
0.006673894822597504,
-0.001511324429884553,
-0.008388697169721127
] | r-scraping-neo4j-release-dates-with-rvest | https://markhneedham.com/blog/2015/06/21/r-scraping-neo4j-release-dates-with-rvest |
false | 2015-06-30 22:26:39 | R: write.csv - unimplemented type 'list' in 'EncodeElement' | [
"r-2"
] | [
"R"
] | Everyone now and then I want to serialise an R data frame to a CSV file so I can easily load it up again if my R environment crashes without having to recalculate everything but recently ran into the following error:
[source,r]
----
> write.csv(foo, "/tmp/foo.csv", row.names = FALSE)
Error in .External2(C_writetable, x, file, nrow(x), p, rnames, sep, eol, :
unimplemented type 'list' in 'EncodeElement'
----
If we take a closer look at the data frame in question it looks ok:
[source,r]
----
> foo
col1 col2
1 1 a
2 2 b
3 3 c
----
However, one of the columns contains a list in each cell and we need to find out which one it is. I've found the quickest way is to run the +++<cite>+++typeof+++</cite>+++ function over each column:
[source,r]
----
> typeof(foo$col1)
[1] "double"
> typeof(foo$col2)
[1] "list"
----
So 'col2' is the problem one which isn't surprising if you consider the way I created 'foo':
[source,r]
----
library(dplyr)
foo = data.frame(col1 = c(1,2,3)) %>% mutate(col2 = list("a", "b", "c"))
----
If we do have a list that we want to add to the data frame we need to convert it to a vector first so we don't run into this type of problem:
[source,R]
----
foo = data.frame(col1 = c(1,2,3)) %>% mutate(col2 = list("a", "b", "c") %>% unlist())
----
And now we can write to the CSV file:
[source,r]
----
write.csv(foo, "/tmp/foo.csv", row.names = FALSE)
----
[source,bash]
----
$ cat /tmp/foo.csv
"col1","col2"
1,"a"
2,"b"
3,"c"
----
And that's it! | null | null | [
0.010280328802764416,
-0.01894676685333252,
-0.021681340411305428,
0.015355360694229603,
0.08059833198785782,
0.023708699271082878,
-0.004399267490953207,
-0.021174218505620956,
-0.002500692615285516,
-0.010628718882799149,
0.018858833238482475,
-0.015736326575279236,
-0.07581768929958344,
0.044851042330265045,
-0.019490979611873627,
0.06640393286943436,
0.059061672538518906,
-0.015000238083302975,
0.022084705531597137,
0.014689497649669647,
0.013767645694315434,
0.03688712418079376,
-0.03492661938071251,
0.025414057075977325,
0.01711709424853325,
-0.017024831846356392,
-0.014944281429052353,
-0.012551416642963886,
-0.033531349152326584,
-0.013510105200111866,
0.052138328552246094,
0.034279026091098785,
-0.007385229226201773,
-0.00772884814068675,
0.029318176209926605,
-0.01920895092189312,
-0.0016406235517933965,
0.01579933799803257,
-0.000044571581383934245,
-0.04113033786416054,
-0.05683976411819458,
0.0008583072922192514,
-0.028217656537890434,
0.011118634603917599,
-0.014063517563045025,
0.008769229985773563,
-0.012705040164291859,
0.008787333965301514,
-0.027034485712647438,
0.0020349728874862194,
-0.04694502428174019,
0.01366049237549305,
-0.014843043871223927,
-0.0658385381102562,
0.02827291749417782,
0.050624798983335495,
-0.000011288099813100416,
-0.08042409271001816,
0.03423795849084854,
-0.04881526902318001,
-0.005412964150309563,
0.0027265609242022038,
0.0044277203269302845,
0.02767268568277359,
0.018657946959137917,
-0.029195228591561317,
-0.018221167847514153,
0.032511211931705475,
-0.06314508616924286,
-0.04186651110649109,
-0.03656696528196335,
-0.015958711504936218,
-0.03335118293762207,
-0.01613450050354004,
0.004808536730706692,
-0.02678891457617283,
-0.011351197026669979,
0.04621196538209915,
0.03792335465550423,
0.031076861545443535,
0.005669949110597372,
0.0032965836580842733,
-0.0008501543779857457,
-0.01870608888566494,
0.05036630481481552,
-0.028920261189341545,
-0.032913025468587875,
-0.020646370947360992,
-0.07446011900901794,
0.05932135507464409,
-0.0018316125497221947,
-0.011233369819819927,
-0.019129613414406776,
0.016604363918304443,
-0.0051906900480389595,
-0.013338432647287846,
-0.014789540320634842,
0.00891460943967104,
0.00487275468185544,
0.0061434004455804825,
-0.11478520184755325,
0.0074183642864227295,
0.03507870063185692,
0.01268776971846819,
-0.06587813794612885,
0.011054763570427895,
-0.031349100172519684,
-0.010261084884405136,
0.037506598979234695,
0.022089160978794098,
-0.002146202139556408,
-0.012550819665193558,
-0.029890675097703934,
-0.02806052938103676,
-0.07194246351718903,
0.04402248188853264,
0.04832318052649498,
-0.008372187614440918,
-0.014088249765336514,
-0.0012266353005543351,
0.05488042160868645,
0.04065240919589996,
0.007316593546420336,
0.0597267746925354,
0.01603158377110958,
0.04995068907737732,
-0.004157947842031717,
0.03330893814563751,
-0.003850196721032262,
-0.10125806927680969,
0.009092272259294987,
0.058023083955049515,
-0.03427325561642647,
0.029273254796862602,
-0.0013364336919039488,
-0.03304082155227661,
-0.022352883592247963,
-0.016366558149456978,
0.04965999722480774,
0.034664127975702286,
0.031026413664221764,
-0.013422749936580658,
0.018228521570563316,
0.0045486027374863625,
0.053136132657527924,
0.029748866334557533,
-0.02670096606016159,
-0.02990805171430111,
-0.03512037545442581,
0.025079380720853806,
0.022607605904340744,
0.039660707116127014,
0.10246925055980682,
-0.030619768425822258,
0.012770348228514194,
0.0881086140871048,
0.01589277945458889,
0.031893178820610046,
-0.03311789780855179,
0.008857743814587593,
0.05687318742275238,
0.04464012384414673,
-0.0023280454333871603,
0.03841487318277359,
0.00040354940574616194,
-0.03152153640985489,
0.007676465902477503,
0.021284643560647964,
-0.03772033378481865,
-0.0237719863653183,
-0.040712881833314896,
-0.08148153126239777,
0.06008752062916756,
-0.03838039189577103,
0.018271777778863907,
0.023144539445638657,
0.0660323053598404,
0.06141114607453346,
0.050689686089754105,
-0.015574319288134575,
-0.08119294792413712,
0.03845243155956268,
-0.026654431596398354,
-0.002153556328266859,
0.009859503246843815,
-0.026030048727989197,
0.09449490159749985,
0.042006295174360275,
0.025773372501134872,
0.062019094824790955,
-0.03889637440443039,
-0.06339814513921738,
-0.0342039056122303,
-0.02283363789319992,
0.03668634593486786,
-0.07448003441095352,
-0.0352533720433712,
0.08872619271278381,
-0.009110739454627037,
0.0034581467043608427,
-0.023441778495907784,
0.017140954732894897,
0.021712997928261757,
-0.04227472096681595,
-0.023638343438506126,
0.008040037006139755,
0.04950810223817825,
0.014741537161171436,
0.006910639349371195,
0.028419511392712593,
0.006897433195263147,
0.07321304082870483,
0.011367589235305786,
-0.017967956140637398,
0.05454901233315468,
0.045916538685560226,
0.037057895213365555,
0.008018514141440392,
0.057207219302654266,
-0.07263538986444473,
0.0357295386493206,
-0.0016041069757193327,
-0.01024143397808075,
-0.04316885396838188,
-0.009006572887301445,
0.14441150426864624,
0.04278697073459625,
0.0027074976824223995,
-0.04360189661383629,
0.016300849616527557,
-0.026040464639663696,
-0.01244354248046875,
0.008922751992940903,
-0.006406968459486961,
-0.046791981905698776,
0.07764597982168198,
-0.008310689590871334,
-0.00017248638323508203,
0.0020153080113232136,
-0.022114569321274757,
0.011076617054641247,
0.08665835112333298,
-0.008700735867023468,
0.025889886543154716,
0.00520265381783247,
-0.02501596324145794,
0.0022251708433032036,
-0.04839465022087097,
-0.0734202191233635,
-0.02013462595641613,
0.03960990160703659,
-0.0034353691153228283,
0.0549410916864872,
-0.023312076926231384,
-0.01130471471697092,
-0.027640879154205322,
-0.03752827271819115,
0.011464817449450493,
0.0625721663236618,
0.03533099964261055,
-0.03745662048459053,
0.026031382381916046,
-0.031464893370866776,
-0.003971800673753023,
-0.03803694620728493,
-0.040933817625045776,
-0.029806064441800117,
-0.023224348202347755,
0.026205947622656822,
0.005810035392642021,
-0.00397397018969059,
-0.008591704070568085,
-0.010069349780678749,
0.0348367765545845,
0.01644778437912464,
-0.01930871233344078,
0.038249727338552475,
-0.03553546220064163,
0.004481099080294371,
-0.023506078869104385,
0.019263239577412605,
0.026791054755449295,
0.002078500110656023,
-0.022011054679751396,
0.008380292914807796,
-0.042026907205581665,
0.03374231606721878,
-0.05097150430083275,
-0.05080552026629448,
-0.013291959650814533,
0.001277197035960853,
0.025784121826291084,
0.016903819516301155,
-0.009133588522672653,
0.02961781993508339,
0.03465796262025833,
0.022799838334321976,
0.028018523007631302,
0.01694250851869583,
0.05684667453169823,
0.025848103687167168,
0.013530462048947811,
0.0647721067070961,
-0.0134056331589818,
-0.0028174538165330887,
-0.025494642555713654,
-0.011267666704952717,
-0.024042339995503426,
-0.24136534333229065,
0.008170977234840393,
-0.031930118799209595,
-0.029712511226534843,
0.027173999696969986,
-0.03247001767158508,
0.01273566484451294,
-0.028135811910033226,
-0.009308919310569763,
0.009905904531478882,
0.003558814525604248,
-0.0183643139898777,
-0.052461639046669006,
0.04352697730064392,
0.03476152569055557,
0.03320233151316643,
-0.0030826658476144075,
-0.017571259289979935,
0.002923410153016448,
0.05951536074280739,
0.020783400163054466,
-0.02859477326273918,
-0.014541617594659328,
0.034271467477083206,
0.034619737416505814,
0.05889058858156204,
-0.04641859605908394,
0.0345098040997982,
-0.05440911278128624,
-0.08585923165082932,
0.010087165050208569,
-0.03386855497956276,
0.025233985856175423,
-0.013075347058475018,
0.0005157352425158024,
-0.002118645003065467,
0.02150985598564148,
0.044794581830501556,
-0.0004513318126555532,
0.005276891868561506,
-0.014738158322870731,
-0.04776322841644287,
-0.006527001038193703,
-0.036423102021217346,
0.05113440379500389,
0.004708621185272932,
-0.05095404386520386,
0.050384484231472015,
-0.0313805490732193,
0.08870968967676163,
-0.014954103156924248,
0.006540802773088217,
-0.00026107605663128197,
0.03577366843819618,
-0.01626974157989025,
0.009190469048917294,
-0.028517814353108406,
0.023571200668811798,
-0.01676480658352375,
-0.04068220034241676,
-0.0015804971335455775,
-0.04858485609292984,
-0.003999809734523296,
-0.031694624572992325,
-0.018311768770217896,
-0.0633288323879242,
-0.08336547762155533,
0.0006464647012762725,
0.08068954199552536,
0.06397037208080292,
-0.05296008288860321,
0.0075234826654195786,
0.017761562019586563,
-0.09720297902822495,
0.021072275936603546,
-0.026494335383176804,
-0.03638359159231186,
-0.03311854228377342,
-0.017418336123228073,
0.059757623821496964,
-0.03863974288105965,
-0.026816483587026596,
0.018767165020108223,
-0.00794686283916235,
0.01935425028204918,
-0.009857404977083206,
-0.0011670368257910013,
-0.03321867808699608,
-0.021381516009569168,
-0.04043308645486832,
0.05315884202718735,
-0.04986780881881714,
0.014117726124823093,
0.01738123595714569,
-0.03026498667895794,
0.04527106508612633,
0.010923041962087154,
0.015130089595913887,
0.05400752276182175,
0.006400843616575003,
0.051643308252096176,
-0.031008685007691383,
0.02239583060145378,
-0.0919409990310669,
-0.014472033828496933,
-0.031807493418455124,
-0.09322798252105713,
0.013947060331702232,
-0.002430243883281946,
0.02733767032623291,
0.01029142178595066,
-0.014181464910507202,
0.029076572507619858,
-0.07483666390180588,
-0.021422438323497772,
0.02556169405579567,
0.015018117614090443,
0.020330175757408142,
-0.013202040456235409,
-0.0036367392167448997,
-0.05535326153039932,
0.007465428207069635,
-0.007382409647107124,
-0.026866912841796875,
-0.033691659569740295,
-0.013795720413327217,
0.039093516767024994,
-0.0182113628834486,
-0.06193813309073448,
0.0078867357224226,
-0.02973305992782116,
-0.010832969099283218,
0.06030599772930145,
-0.023075511679053307,
0.021294603124260902,
-0.018388744443655014,
-0.04938963055610657,
-0.0010438485769554973,
-0.02705574408173561,
0.005790714640170336,
-0.006535016931593418,
-0.016787974163889885,
0.003945005126297474,
0.01651768386363983,
-0.00746991578489542,
-0.004978449083864689,
0.02521992102265358,
0.04631493240594864,
-0.012778986245393753,
0.015400596894323826,
0.0009637040202505887,
0.016313694417476654,
-0.009568901732563972,
-0.04183383285999298,
-0.06019824743270874,
-0.01785147562623024,
0.04686124995350838,
-0.017153680324554443,
0.009095147252082825,
-0.05222276970744133,
-0.005766564514487982,
-0.04187779873609543,
-0.03110377863049507,
-0.010746791027486324,
0.011538769118487835,
0.07284820824861526,
-0.006684962194412947,
0.01660773530602455,
0.013286162167787552,
0.0009747544536367059,
-0.022548850625753403,
0.024822324514389038,
-0.018686259165406227,
-0.007347666192799807,
-0.006026469171047211,
-0.011234121397137642,
0.033473096787929535,
-0.028453418985009193,
0.03640099987387657,
0.025150343775749207,
-0.013349635526537895,
-0.02627670392394066,
0.03093663416802883,
0.0025393138639628887,
0.02807430364191532,
0.014669645577669144,
0.0047029671259224415,
0.004996688570827246,
-0.01581181026995182,
-0.03821403905749321,
-0.032566137611866,
-0.013564159162342548,
0.0005290024564601481,
0.03678285330533981,
-0.028759798035025597,
-0.05315995588898659,
0.013024362735450268,
0.05054184049367905,
-0.007395364809781313,
0.0025383299216628075,
-0.03239857032895088,
-0.014906908385455608,
0.006143694277852774,
0.011135168373584747,
0.06321430951356888,
-0.05519760027527809,
-0.015701625496149063,
-0.01496343594044447,
-0.004686873406171799,
0.028605319559574127,
0.0003738829691428691,
-0.05415227264165878,
-0.015296799130737782,
-0.011908509768545628,
0.029148302972316742,
0.024704553186893463,
-0.03690071403980255,
-0.06103864684700966,
0.004032387863844633,
-0.01909373700618744,
-0.004680480342358351,
-0.032190605998039246,
0.02668238990008831,
-0.03004683554172516,
-0.010604442097246647,
-0.008072319440543652,
-0.013570101000368595,
-0.03880709037184715,
0.05304168537259102,
0.00590415159240365,
0.031042076647281647,
-0.015432723797857761,
0.0390101857483387,
0.014635014347732067,
0.00578355835750699,
-0.018137222155928612,
-0.004637787118554115,
0.009983893483877182,
0.013576854020357132,
0.02633572928607464,
0.005689509678632021,
0.01959882490336895,
-0.04723755642771721,
0.01667092740535736,
-0.0011450126767158508,
-0.007261216174811125,
-0.008872938342392445,
-0.010625630617141724,
0.030441079288721085,
0.07643266022205353,
0.027086108922958374,
0.00772844348102808,
-0.0008534770458936691,
-0.03879452496767044,
0.057372644543647766,
-0.046744223684072495,
-0.039963796734809875,
-0.008215591311454773,
-0.01685512624680996,
0.02797873131930828,
0.0191437229514122,
0.027329804375767708,
-0.035993557423353195,
0.02746208757162094,
0.04955533519387245,
0.01763981394469738,
0.07445165514945984,
-0.0009583010687492788,
0.03448031470179558,
-0.010732988826930523,
0.0068734982050955296,
-0.08647508919239044,
-0.01314894761890173,
0.028540579602122307,
-0.019049037247896194,
-0.016361260786652565,
-0.04412170127034187,
-0.014986650086939335,
0.018597085028886795,
-0.032714974135160446,
-0.0558544360101223,
0.04980511590838432,
-0.01164371706545353,
0.036176133900880814,
-0.0008330802666023374,
-0.014492347836494446,
0.018625669181346893,
0.04021760821342468,
-0.05177009478211403,
-0.0005080866976641119,
-0.027669083327054977,
0.042100731283426285,
-0.007968108169734478,
0.027841320261359215,
-0.009142369963228703,
0.010830424726009369,
0.015131340362131596,
0.017508162185549736,
0.003931988496333361,
0.04610533267259598,
-0.05051004886627197,
0.01489204354584217,
0.02522236853837967,
-0.028135819360613823,
0.02012387476861477,
0.021043498069047928,
0.005157803650945425,
-0.03971034660935402,
-0.026895010843873024,
0.03645016998052597,
0.02498795837163925,
-0.04509410634636879,
0.051841478794813156,
-0.014707050286233425,
-0.04803631827235222,
-0.037653494626283646,
0.009759791195392609,
-0.047926243394613266,
0.013818289153277874,
-0.004029959440231323,
-0.0009424944873899221,
-0.025143077597022057,
0.06564652174711227,
-0.03643963485956192,
-0.008851605467498302,
0.09918556362390518,
-0.01468921173363924,
-0.01873183622956276,
-0.03646799549460411,
0.05681448429822922,
0.08893270790576935,
0.023173021152615547,
-0.015169153921306133,
0.04408034309744835,
-0.009041937068104744,
-0.06853605806827545,
0.033078186213970184,
-0.01053569931536913,
0.010943389497697353,
-0.012318267486989498,
0.0005623322795145214,
0.07894536852836609,
-0.030327709391713142,
0.059716708958148956,
-0.02333744987845421,
-0.016123315319418907,
-0.006918210536241531,
0.026269979774951935,
0.023939482867717743,
0.04002156853675842,
0.030546115711331367,
0.05203552544116974,
0.005864373873919249,
-0.01868670992553234,
0.0041009667329490185,
0.014275049790740013,
-0.018661851063370705,
0.005052610766142607,
0.0018197387689724565,
0.011116258800029755,
0.03079085610806942,
0.027296531945466995,
0.07503865659236908,
-0.03894222155213356,
-0.012596160173416138,
-0.031313344836235046,
0.03485844284296036,
-0.03635193780064583,
-0.010741923935711384,
0.00934459175914526,
-0.04734396934509277,
-0.025206169113516808,
-0.04971129074692726,
-0.028331080451607704,
-0.0096198171377182,
-0.0355505608022213,
0.02134834975004196,
-0.024507835507392883,
0.00378145813010633,
0.035796839743852615,
-0.042461518198251724,
-0.02531915158033371,
-0.049199312925338745,
-0.0524292029440403,
-0.06303738802671432,
-0.0754956379532814,
-0.005055638030171394,
-0.02002790756523609,
-0.026498788967728615,
-0.05496959015727043,
-0.028543658554553986,
-0.020697740837931633,
-0.004599386360496283,
0.009677405469119549,
-0.03664933145046234,
-0.050344035029411316,
0.04206165671348572,
-0.007705613039433956,
0.005231994204223156,
0.029772751033306122,
0.04682852327823639,
0.009804364293813705,
-0.006475093774497509,
-0.010839035734534264,
-0.008326921612024307,
0.04484645277261734,
0.012200199998915195,
0.02514951303601265,
-0.053623590618371964,
0.03177462890744209,
0.004655466880649328,
-0.0009843221632763743,
-0.08739092946052551,
0.030285008251667023,
0.032768625766038895,
0.009157529100775719,
0.03198588639497757,
0.005153671372681856,
0.03643586486577988,
-0.02420775219798088,
-0.03263838216662407,
0.0032128910534083843,
0.02882419154047966,
0.037490323185920715,
-0.027648279443383217,
0.04521321877837181,
0.061578668653964996,
0.0006648472044616938,
-0.06110221892595291,
-0.008939671330153942,
0.0075428723357617855,
-0.02346700057387352,
-0.04885134473443031,
-0.04808187484741211,
-0.06364169716835022,
-0.04891088232398033,
0.008257838897407055,
0.01059957779943943,
-0.05657793954014778,
0.0011888649314641953,
-0.013555960729718208,
0.02652987651526928,
-0.05202508717775345,
0.011439196765422821,
-0.046657755970954895,
0.03606272116303444,
-0.021794036030769348,
-0.025859253481030464,
0.004616161342710257,
0.0780879557132721,
0.01703473925590515,
-0.012503723613917828,
-0.005370049737393856,
-0.038729649037122726,
0.04082411900162697,
-0.0035902373492717743,
-0.004024220164865255,
0.056995779275894165,
-0.005171413533389568,
0.04219859093427658
] | [
-0.053104203194379807,
-0.02513009123504162,
-0.046143725514411926,
-0.0021030765492469072,
0.07397298514842987,
-0.046105436980724335,
-0.06391210854053497,
0.02198312245309353,
0.01929742470383644,
0.03139659762382507,
0.038127925246953964,
-0.044307906180620193,
0.003051145700737834,
-0.021038968116044998,
0.04145902767777443,
-0.011526939459145069,
-0.022740446031093597,
-0.01082415971904993,
-0.01860681176185608,
0.048322804272174835,
-0.045137930661439896,
-0.0352037213742733,
-0.0457279346883297,
-0.052894338965415955,
0.03467164188623428,
0.013021423481404781,
-0.004745763726532459,
-0.031177211552858353,
-0.03416440263390541,
-0.24129311740398407,
-0.027293656021356583,
0.015749841928482056,
0.020038122311234474,
0.016916528344154358,
0.022936973720788956,
-0.01157341431826353,
0.020140955224633217,
-0.02177477814257145,
-0.004943225532770157,
0.024597566574811935,
0.017662469297647476,
0.0016683511203154922,
-0.02950955182313919,
-0.032339856028556824,
0.01974397525191307,
0.018082352355122566,
-0.05240282043814659,
-0.0016089295968413353,
0.02361781895160675,
0.0038700145669281483,
-0.08904437720775604,
0.026744909584522247,
-0.02951829694211483,
-0.00800637062638998,
-0.006238857284188271,
0.04580134525895119,
0.03195890784263611,
0.03611907735466957,
-0.014986625872552395,
0.008651555515825748,
-0.017248544842004776,
0.004504073411226273,
-0.16202299296855927,
0.11114256829023361,
0.004457615315914154,
0.0365007258951664,
-0.043916165828704834,
0.009307153522968292,
-0.006901838816702366,
0.06754323095083237,
-0.043425995856523514,
-0.036446601152420044,
-0.05765785649418831,
0.07234647870063782,
0.019270798191428185,
-0.027659345418214798,
-0.04475146904587746,
-0.014839664101600647,
0.025567326694726944,
-0.014638377353549004,
-0.011698991060256958,
0.0035983650013804436,
-0.0021783243864774704,
0.007311370689421892,
-0.02497553452849388,
0.021907370537519455,
-0.011011846363544464,
0.026306722313165665,
-0.0010167849250137806,
0.033883847296237946,
0.01822814531624317,
0.020087644457817078,
0.0907507911324501,
0.04889782890677452,
-0.10235028713941574,
-0.014835857786238194,
0.04452488198876381,
0.014209168031811714,
0.03320876881480217,
0.3984927833080292,
-0.05025283619761467,
-0.035065002739429474,
0.026343023404479027,
0.06353364139795303,
0.012891042977571487,
-0.015020960941910744,
-0.018535690382122993,
-0.024450233206152916,
0.009481933899223804,
-0.0321035273373127,
-0.010388298891484737,
-0.00875795166939497,
0.02539457194507122,
-0.06822101771831512,
0.025335341691970825,
-0.029439639300107956,
0.0075392937287688255,
0.008111721836030483,
-0.0152898533269763,
0.016942620277404785,
0.0027246770914644003,
-0.015452953055500984,
0.037836480885744095,
0.022153256461024284,
0.02339044213294983,
-0.04369572922587395,
0.041223056614398956,
0.07050935178995132,
0.06574928760528564,
0.039241742342710495,
0.06252005696296692,
0.0013586134882643819,
-0.06863250583410263,
-0.0011371750151738524,
-0.0038721205200999975,
0.0009081785683520138,
0.03367689251899719,
-0.008732518181204796,
0.014059850014746189,
-0.012514660134911537,
0.022741639986634254,
-0.011065943166613579,
0.01777467131614685,
0.0035145306028425694,
-0.025975637137889862,
0.1276463121175766,
-0.0171205997467041,
-0.013781623914837837,
-0.04995691403746605,
-0.0446179173886776,
0.034927383065223694,
0.040475454181432724,
0.035804666578769684,
-0.03270868584513664,
0.013883799314498901,
0.012433597818017006,
0.07419279217720032,
-0.06011537089943886,
-0.09692279994487762,
-0.03878377005457878,
-0.0324891172349453,
-0.02986443229019642,
-0.0313703827559948,
0.018506938591599464,
0.051850996911525726,
-0.07094041258096695,
-0.03860565647482872,
0.04637204483151436,
0.03277384862303734,
-0.07409372180700302,
0.019980836659669876,
-0.023102005943655968,
-0.040775783360004425,
0.0028069682884961367,
0.03681075945496559,
0.012263781391084194,
-0.00960540771484375,
-0.010655567049980164,
0.06669683754444122,
0.049889903515577316,
0.010598689317703247,
0.014118725433945656,
-0.043144989758729935,
0.011897135525941849,
-0.016367707401514053,
-0.07328740507364273,
-0.09570883214473724,
0.009019049815833569,
-0.005877648014575243,
-0.02320888079702854,
-0.0063887787982821465,
-0.01215121429413557,
-0.03920065239071846,
0.040576379746198654,
-0.05658518150448799,
0.011509934440255165,
0.08252186328172684,
-0.025003571063280106,
0.019716069102287292,
-0.046070341020822525,
0.011838087812066078,
0.017670487985014915,
0.034513480961322784,
0.03873315081000328,
-0.04671524092555046,
-0.00974428653717041,
0.04067406430840492,
-0.039579808712005615,
0.030240394175052643,
0.01985897310078144,
0.02346997894346714,
-0.011875972151756287,
-0.002967635402455926,
0.012795662507414818,
-0.07451219111680984,
-0.007564275525510311,
0.012799760326743126,
-0.03401360660791397,
0.04441174864768982,
0.02393333986401558,
-0.011604296043515205,
-0.06054752692580223,
-0.0033455220982432365,
-0.34094566106796265,
-0.04067549481987953,
0.007186891045421362,
-0.021081868559122086,
-0.001063978299498558,
-0.0366014763712883,
-0.012092978693544865,
0.028818747028708458,
-0.0306802149862051,
0.06665294617414474,
0.05700624734163284,
0.002544425893574953,
-0.011654360219836235,
-0.1153295710682869,
0.010205080732703209,
0.01706388033926487,
-0.000333622534526512,
-0.029505044221878052,
-0.028703972697257996,
0.006465360522270203,
-0.042679108679294586,
-0.017178252339363098,
-0.010725175961852074,
0.00509256636723876,
0.03688199073076248,
-0.019447086378932,
0.11353883147239685,
0.013847117312252522,
0.05912025272846222,
-0.021840635687112808,
0.014697299338877201,
0.012756122276186943,
0.03496197238564491,
-0.05655932426452637,
0.008695210330188274,
-0.06732191145420074,
-0.016881050541996956,
0.07647009938955307,
0.005197124555706978,
-0.02272866480052471,
-0.010773166082799435,
0.014634612016379833,
-0.029042549431324005,
-0.03027353622019291,
-0.013299932703375816,
0.0018561853794381022,
0.013921434059739113,
0.004625705070793629,
0.0005570957437157631,
0.08598330616950989,
0.019065815955400467,
0.020097557455301285,
0.04954637214541435,
0.05139003321528435,
0.029995279386639595,
-0.007740880362689495,
-0.07443933188915253,
-0.00139955326449126,
0.03168871998786926,
-0.03133656457066536,
0.04653516784310341,
0.03689495474100113,
0.0583505854010582,
-0.05909070372581482,
-0.02707839384675026,
-0.028061119839549065,
0.024147557094693184,
-0.024524863809347153,
0.018393438309431076,
0.015389037318527699,
0.0009302760008722544,
0.11470728367567062,
-0.021801898255944252,
0.04757332801818848,
0.023476704955101013,
0.055191218852996826,
-0.050420552492141724,
-0.011200600303709507,
0.005889829248189926,
-0.003311553969979286,
0.02895694598555565,
-0.036386098712682724,
0.032054442912340164,
-0.012094857171177864,
0.05847450718283653,
0.042233411222696304,
0.003089027013629675,
-0.025692643597722054,
0.021077940240502357,
0.02743133157491684,
0.02425972744822502,
-0.0641804188489914,
-0.0033288851846009493,
-0.008071244694292545,
0.05627167224884033,
0.015980733558535576,
-0.2839258313179016,
-0.0008231170359067619,
0.03754572570323944,
0.03099909983575344,
-0.02865632250905037,
-0.01020068023353815,
0.007922385819256306,
-0.07495845854282379,
-0.01515840645879507,
0.04301159083843231,
0.011857331730425358,
0.06931587308645248,
0.05391458421945572,
0.006419312208890915,
0.010963101871311665,
-0.029945382848381996,
0.056840863078832626,
-0.01106602419167757,
0.03429512679576874,
-0.008846309967339039,
0.008990386500954628,
-0.06048818677663803,
0.13345538079738617,
0.01673533394932747,
0.0055064246989786625,
-0.024248367175459862,
-0.029264381155371666,
-0.0180591382086277,
0.0752631425857544,
0.023877903819084167,
0.019255051389336586,
0.008321288041770458,
0.032287657260894775,
-0.004543714690953493,
0.023086436092853546,
-0.010825185105204582,
-0.004752895794808865,
0.05003875121474266,
0.058422524482011795,
-0.036381155252456665,
-0.04531071335077286,
0.018779411911964417,
-0.023411326110363007,
0.01088195201009512,
0.06291047483682632,
0.007700400426983833,
-0.014891194179654121,
-0.05394241213798523,
-0.05586261302232742,
-0.006166162900626659,
-0.025345584377646446,
-0.0036826026625931263,
-0.043053317815065384,
-0.015475263819098473,
0.007227049209177494,
0.017481878399848938,
0.021464774385094643,
-0.03247047960758209,
0.00900988932698965,
0.01621312089264393,
0.019380107522010803,
-0.07815331220626831,
0.09721733629703522,
0.046719133853912354,
0.004597932565957308
] | [
0.0026164015289396048,
0.001333308406174183,
-0.021818455308675766,
0.011582004837691784,
-0.0014273615088313818,
0.0021840273402631283,
-0.01011421624571085,
0.03795304521918297,
-0.028482921421527863,
0.010931460186839104,
-0.04601948335766792,
-0.012456952594220638,
-0.005554405506700277,
-0.03518286347389221,
-0.009480264037847519,
-0.03596603497862816,
0.020442955195903778,
0.027676548808813095,
0.058682698756456375,
-0.020741399377584457,
-0.027659885585308075,
0.05184534564614296,
-0.0001386026560794562,
-0.016897279769182205,
-0.0077276527881622314,
0.021191410720348358,
-0.026866765692830086,
0.015412784181535244,
-0.007800967898219824,
-0.1375265121459961,
-0.04136605188250542,
-0.0019750003702938557,
-0.0065321605652570724,
0.045840416103601456,
-0.0004630072508007288,
-0.00703519769012928,
-0.02672370709478855,
0.04930294305086136,
-0.03737965598702431,
-0.011517812497913837,
-0.01907236874103546,
0.02043009176850319,
-0.01653936691582203,
0.019288863986730576,
-0.026999391615390778,
-0.04522503912448883,
0.005288872867822647,
-0.02388833463191986,
-0.006275557447224855,
-0.007053718902170658,
-0.07746732234954834,
0.05897945910692215,
0.01610458642244339,
0.009097334928810596,
0.017688358202576637,
-0.04734853282570839,
-0.00020916359790135175,
-0.0020401605870574713,
0.003972626756876707,
-0.017473166808485985,
-0.010401545092463493,
-0.00896637886762619,
-0.03133311867713928,
-0.006417612545192242,
0.008519391529262066,
-0.029926294460892677,
-0.03662285953760147,
0.009691745042800903,
0.008785702288150787,
-0.011397738941013813,
-0.02294686622917652,
0.008284281939268112,
-0.05539298057556152,
-0.03391748666763306,
-0.005948242731392384,
0.025496141985058784,
0.027530761435627937,
-0.0694604441523552,
0.01370174903422594,
-0.022205160930752754,
-0.02414420060813427,
-0.019336029887199402,
-0.037606265395879745,
-0.020203610882163048,
-0.03151972219347954,
-0.0019374967087060213,
0.00981520302593708,
0.038372620940208435,
-0.009974725544452667,
-0.008454234339296818,
0.031305886805057526,
0.015803227201104164,
0.06549829244613647,
0.006669217720627785,
-0.08133546262979507,
0.0394333079457283,
-0.003031045664101839,
0.0002905016590375453,
-0.017972541972994804,
0.7976316213607788,
-0.011440255679190159,
0.019483059644699097,
-0.005824453197419643,
0.02028820663690567,
-0.00945230945944786,
-0.009161310270428658,
0.01899978518486023,
-0.02814512699842453,
-0.0015234772581607103,
-0.06945532560348511,
0.024726994335651398,
0.02703368104994297,
0.005941411014646292,
0.017000317573547363,
0.007056874223053455,
0.0354350283741951,
0.0040156724862754345,
0.020440246909856796,
0.0019746317993849516,
0.010427389293909073,
-0.0012208794942125678,
-0.054165709763765335,
-0.009083909913897514,
-0.01432814635336399,
-0.02509072795510292,
-0.19709624350070953,
0.004464172292500734,
-7.680938697030007e-33,
-0.0036738864146173,
-0.031367506831884384,
0.022862493991851807,
0.011980056762695312,
0.046749234199523926,
-0.020743366330862045,
-0.0015736365457996726,
0.037106920033693314,
-0.005370918195694685,
-0.016138015314936638,
0.008868930861353874,
-0.019359180703759193,
-0.011738045141100883,
0.033252958208322525,
0.006335489917546511,
-0.007292130496352911,
-0.009603157639503479,
0.03302823752164841,
-0.025948936119675636,
0.011767598800361156,
0.0469709075987339,
0.03400425240397453,
0.02879413776099682,
0.041600894182920456,
0.022121189162135124,
-0.009778299368917942,
-0.011546761728823185,
-0.01755414344370365,
0.005253306124359369,
-0.036173950880765915,
-0.06937041878700256,
0.035392291843891144,
0.02723337709903717,
0.02042069099843502,
0.02654469944536686,
-0.06098050996661186,
0.011302212253212929,
0.011348742060363293,
-0.013565188273787498,
-0.007337136194109917,
-0.027146922424435616,
0.003134145401418209,
-0.038237348198890686,
0.029864946380257607,
-0.03920222818851471,
-0.04387357831001282,
0.020079968497157097,
0.06705094128847122,
0.01888018101453781,
0.05171017721295357,
0.029545113444328308,
0.024912681430578232,
-0.015098032541573048,
0.0013725546887144446,
0.020460672676563263,
0.03689713403582573,
-0.009189676493406296,
-0.00940622016787529,
0.032817620784044266,
0.033571019768714905,
-0.05130155384540558,
0.0028140468057245016,
-0.016277609393000603,
-0.0016834456473588943,
-0.012851964682340622,
-0.022677289322018623,
0.02212977595627308,
-0.014402756467461586,
0.021849874407052994,
0.017788860946893692,
-0.025277864187955856,
0.010502158664166927,
-0.011094080284237862,
-0.044746577739715576,
0.033814601600170135,
0.01312080305069685,
-0.0128864711150527,
-0.03710320591926575,
0.0415179617702961,
0.028601907193660736,
0.007434110622853041,
-0.010003902949392796,
-0.01868329383432865,
0.017838506028056145,
-0.025353040546178818,
-0.012979302555322647,
0.015615659765899181,
0.028592979535460472,
0.006173525936901569,
0.008918309584259987,
0.018720068037509918,
0.03500131145119667,
0.001566835679113865,
-0.03551425784826279,
-0.026494139805436134,
7.405180946638546e-33,
0.019223911687731743,
0.002306612441316247,
-0.01789912022650242,
0.016154728829860687,
0.02552117221057415,
-0.008570424281060696,
0.00449189031496644,
-0.01286685187369585,
-0.030559610575437546,
0.012156358920037746,
0.0002142600278602913,
-0.010387826710939407,
0.015195587649941444,
0.03794531524181366,
0.048288747668266296,
-0.03937326744198799,
0.005091279745101929,
0.052439041435718536,
-0.06377503275871277,
-0.003358423477038741,
0.0038029842544347048,
0.002723588841035962,
0.044109225273132324,
-0.0039167990908026695,
0.039912037551403046,
0.0227897260338068,
-0.03342381864786148,
-0.0023429561406373978,
-0.018999287858605385,
0.004064519889652729,
0.017549021169543266,
0.015877896919846535,
0.02154596708714962,
0.002074103569611907,
-0.020600058138370514,
0.03832703456282616,
0.03355308994650841,
-0.017921997234225273,
0.015091555193066597,
0.028299015015363693,
0.010350499302148819,
0.05918285995721817,
-0.019509464502334595,
0.019192785024642944,
0.013255459256470203,
-0.012907556258141994,
-0.019836774095892906,
0.017219815403223038,
0.0343136228621006,
0.052346229553222656,
-0.001857623690739274,
0.02250201627612114,
-0.013303536921739578,
0.01395695935934782,
0.03290541097521782,
-0.015514793805778027,
-0.005880836397409439,
0.004557723179459572,
-0.03911791369318962,
0.002385769970715046,
-0.06373904645442963,
-0.0010471304412931204,
0.0011754751903936267,
-0.012229683808982372,
-0.001823122613132,
-0.020052634179592133,
-0.01119241677224636,
-0.010261722840368748,
-0.012834924273192883,
-0.020231550559401512,
0.0009503637556917965,
-0.013394230976700783,
-0.017486637458205223,
0.021092509850859642,
-0.028792643919587135,
-0.01731267385184765,
-0.053070493042469025,
-0.03962099552154541,
-0.002881175372749567,
0.025146853178739548,
0.01781967468559742,
-0.04186265170574188,
0.049322083592414856,
0.019501030445098877,
-0.004059053026139736,
-0.008069435134530067,
-0.019539857283234596,
-0.017776008695364,
0.05963645130395889,
0.042895570397377014,
-0.012812642380595207,
-0.03223884850740433,
-0.013958879746496677,
0.03968196362257004,
-0.007042889483273029,
-1.2780363434217179e-8,
-0.05264807119965553,
0.005444251000881195,
-0.037530358880758286,
0.014287669211626053,
0.05308572202920914,
0.00789908692240715,
-0.04912079498171806,
-0.017121966928243637,
0.06785304844379425,
0.0046156649477779865,
0.0060834018513560295,
-0.03758000209927559,
0.03151935338973999,
0.0203278586268425,
0.059196148067712784,
-0.010465780273079872,
0.043234847486019135,
-0.030893944203853607,
0.020556915551424026,
0.0143064484000206,
-0.00006272277823882177,
0.028488576412200928,
-0.03310583159327507,
0.014643149450421333,
0.010705824010074139,
0.006191292777657509,
0.00921616144478321,
-0.10198673605918884,
0.02612004056572914,
0.011319098062813282,
0.008290283381938934,
-0.036428455263376236,
0.026190614327788353,
-0.014743554405868053,
-0.023094695061445236,
-0.03330116346478462,
0.07501062750816345,
0.0490775927901268,
0.011928113177418709,
-0.00792970322072506,
0.002737682778388262,
-0.0010113958269357681,
-0.06052485108375549,
-0.020648498088121414,
0.012446774169802666,
-0.037755172699689865,
-0.05983559787273407,
0.017103351652622223,
-0.021250154823064804,
-0.03460995480418205,
0.03655324876308441,
0.01269462052732706,
0.020480554550886154,
0.025005469098687172,
0.07629668712615967,
0.003964066039770842,
-0.029977960512042046,
0.02772263064980507,
0.02682614140212536,
-0.020762214437127113,
-0.0012488855281844735,
0.03134825453162193,
-0.021345002576708794,
-0.036070603877305984
] | r-write-csv-unimplemented-type-list-in-encodeelement | https://markhneedham.com/blog/2015/06/30/r-write-csv-unimplemented-type-list-in-encodeelement |
false | 2015-06-08 22:23:32 | Unix: Converting a file of values into a comma separated list | [
"unix"
] | [
"Shell Scripting"
] | I recently had a bunch of values in a file that I wanted to paste into a Java program which required a comma separated list of strings.
This is what the file looked like:
[source,bash]
----
$ cat foo2.txt | head -n 5
1.0
1.0
1.0
1.0
1.0
----
And the idea is that we would end up with something like this:
[source,text]
----
"1.0","1.0","1.0","1.0","1.0"
----
The first thing we need to do is quote each of the values. I found a http://www.unix.com/unix-for-dummies-questions-and-answers/138445-unix-command-insert-double-quotes-delimited-file.html[nice way to do this using sed]:
[source,bash]
----
$ sed 's/.*/"&"/g' foo2.txt | head -n 5
"1.0"
"1.0"
"1.0"
"1.0"
"1.0"
----
Now that we've got all the values quoted we need to get rid of the new lines and replace them with commas. The way I'd normally do this is using 'tr' and then just not copy the final comma\...
[source,bash]
----
$ sed 's/.*/"&"/g' foo2.txt | tr '\n' ','
"1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0",
----
\...but I learnt that we can actually do one better than this using 'paste' which allows you to http://unix.stackexchange.com/questions/114244/replace-all-newlines-to-space-except-the-last[replace new lines excluding the last one].
The only annoying thing about paste is that you can't pipe to it so we need to use process substitution instead: ~~~bash $ paste -s -d ',' <(sed 's/.*/"&"/g' foo2.txt) "1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0","1.0" ~~~
If we're only a Mac we could even automate the copy/paste step too by piping to 'pbcopy': ~~~bash $ paste -s -d ',' <(sed 's/.*/"&"/g' foo2.txt) | pbcopy ~~~ | null | null | [
-0.009426341392099857,
-0.007713120896369219,
-0.05387994274497032,
0.035899568349123,
0.11897272616624832,
0.03211384639143944,
0.0007592003094032407,
0.030526479706168175,
0.02837303653359413,
-0.02820601500570774,
-0.015367979183793068,
0.02654697746038437,
-0.09204009920358658,
-0.007611801382154226,
-0.03136182203888893,
0.07065404206514359,
0.05057816207408905,
0.0010204652789980173,
0.0265126321464777,
-0.0015411193016916513,
0.009005491621792316,
0.048184145241975784,
0.027413342148065567,
0.008766782470047474,
0.008641989901661873,
-0.0012551186373457313,
0.0007803695625625551,
0.015474172309041023,
-0.06120947748422623,
0.03143727779388428,
0.03253544121980667,
0.0028626765124499798,
-0.01705343835055828,
-0.01051423978060484,
-0.006680862978100777,
-0.01052678469568491,
-0.04073150455951691,
-0.002811291953548789,
0.016408732160925865,
0.011608797125518322,
-0.052160847932100296,
0.035604801028966904,
-0.028565524145960808,
0.02246352657675743,
-0.0291131641715765,
-0.0074845608323812485,
-0.030367091298103333,
-0.0016439261380583048,
-0.043246254324913025,
0.007281172554939985,
-0.030876021832227707,
0.02415817230939865,
-0.009026707150042057,
-0.04169284552335739,
0.014227023348212242,
0.04531100392341614,
0.03635001555085182,
-0.06842832267284393,
0.028467027470469475,
-0.005704744253307581,
-0.010526400990784168,
-0.008168620988726616,
-0.008614261634647846,
0.048124074935913086,
0.008650205098092556,
-0.0058758994564414024,
-0.0001326044148299843,
0.028533082455396652,
-0.05405194312334061,
-0.03935758024454117,
0.008484167978167534,
0.013520820997655392,
-0.06308610737323761,
-0.03731219097971916,
0.04483477771282196,
-0.017482763156294823,
-0.00826786644756794,
0.03462721034884453,
-0.020125845447182655,
0.06393484026193619,
-0.040750570595264435,
0.0441967211663723,
-0.005113345105201006,
-0.00473582511767745,
0.040707532316446304,
-0.04598444327712059,
0.001556029194034636,
0.0009664568933658302,
-0.05966809391975403,
0.030025707557797432,
0.030381130054593086,
-0.02317507565021515,
-0.017743676900863647,
0.016409898176789284,
0.0004007075622212142,
0.0008461839752271771,
0.014553342945873737,
-0.010834767483174801,
0.007336871698498726,
0.010338722728192806,
-0.052708934992551804,
0.012322244234383106,
0.01663464494049549,
-0.008037553168833256,
-0.06499867141246796,
-0.021471146494150162,
-0.017265882343053818,
0.005063618067651987,
0.04380497336387634,
-0.0178169347345829,
-0.005321681033819914,
-0.021835600957274437,
0.01742745190858841,
0.015417329035699368,
-0.07074029743671417,
0.044906340539455414,
-0.012227392755448818,
-0.04718156158924103,
0.005983734503388405,
0.02166513353586197,
0.04680606722831726,
0.02714293822646141,
0.03508681803941727,
0.10567821562290192,
0.007293572183698416,
0.0142890065908432,
0.03922518342733383,
0.0718022882938385,
-0.02743946574628353,
-0.08307380229234695,
-0.028978893533349037,
0.054753378033638,
-0.0025068887043744326,
0.005358939990401268,
0.007909603416919708,
-0.020335953682661057,
-0.01851051300764084,
-0.027834685519337654,
0.060160014778375626,
0.017146458849310875,
0.005066585727035999,
-0.020144173875451088,
-0.03721535578370094,
-0.021306775510311127,
0.01825934834778309,
0.0064359563402831554,
-0.03247584402561188,
-0.031888995319604874,
-0.04277380183339119,
0.03870199993252754,
0.02593010850250721,
0.03274833783507347,
0.08223481476306915,
-0.011042810045182705,
-0.0003641810326371342,
0.08842995017766953,
0.02839307114481926,
0.029748277738690376,
-0.0350579097867012,
0.01631901040673256,
0.049470145255327225,
0.049791865050792694,
0.0030419034883379936,
0.04752938076853752,
-0.00561404088512063,
-0.02245323546230793,
-0.018253419548273087,
0.012457242235541344,
-0.027605945244431496,
0.0212470144033432,
-0.03849522024393082,
-0.04225834831595421,
0.06667821109294891,
-0.04956480860710144,
0.009483407251536846,
0.023418502882122993,
0.06623663008213043,
0.06296725571155548,
0.05333849787712097,
0.0031139960046857595,
-0.084483802318573,
0.05101022124290466,
-0.015475261025130749,
0.049439627677202225,
0.026908986270427704,
-0.017964763566851616,
0.029826540499925613,
0.0319911353290081,
0.015703247860074043,
0.01303305383771658,
-0.08304058760404587,
-0.08584603667259216,
-0.0347171388566494,
-0.0012323700357228518,
0.0530330091714859,
-0.03719974681735039,
-0.018920687958598137,
0.03876222297549248,
0.02573087438941002,
0.03766228258609772,
-0.02603171207010746,
0.0007928739069029689,
0.0281030535697937,
-0.07408187538385391,
-0.05052588880062103,
0.035767484456300735,
0.013158849440515041,
-0.0163740124553442,
-0.01875402219593525,
0.002175144385546446,
-0.020012926310300827,
0.03642374277114868,
0.033411044627428055,
0.003321535885334015,
0.04102944955229759,
0.028565524145960808,
0.028153667226433754,
-0.018294628709554672,
0.0482826828956604,
-0.08242572844028473,
-0.01338839903473854,
0.009958673268556595,
-0.02139917202293873,
-0.007438122294843197,
-0.009538947604596615,
0.12619149684906006,
0.04425187408924103,
-0.007902435027062893,
-0.04590503126382828,
0.028311679139733315,
-0.01998984068632126,
-0.06151474267244339,
0.002016384620219469,
0.0028237716760486364,
-0.006661379709839821,
0.032863419502973557,
-0.03735922649502754,
-0.027136387303471565,
0.010758703574538231,
-0.021847868338227272,
-0.004986835177987814,
0.05866820737719536,
-0.021121680736541748,
0.05117189139127731,
0.007089176215231419,
-0.028947019949555397,
-0.0032575582154095173,
-0.043365173041820526,
-0.06780125945806503,
-0.006804894655942917,
0.015061198733747005,
-0.010799958370625973,
0.046292729675769806,
-0.08930876851081848,
-0.0338546559214592,
-0.013090813532471657,
-0.06667234003543854,
0.01557052880525589,
0.028485530987381935,
0.045098926872015,
-0.03105928935110569,
0.07048864662647247,
-0.007408752106130123,
0.02987714298069477,
-0.03168134763836861,
-0.03186265751719475,
-0.03461431711912155,
0.021860212087631226,
-0.02331927791237831,
0.012914123013615608,
-0.009150587022304535,
0.03361190855503082,
0.005398782901465893,
0.0039221663028001785,
0.009565835818648338,
-0.02397875487804413,
0.01969793252646923,
-0.018380610272288322,
-0.010572832077741623,
-0.03153695911169052,
0.007527920883148909,
0.04130839928984642,
-0.047859229147434235,
-0.02174786850810051,
0.015890324488282204,
-0.0682005062699318,
0.04223795607686043,
-0.0526106022298336,
-0.04799265414476395,
-0.025230398401618004,
0.023105213418602943,
0.0444469191133976,
-0.01872936263680458,
-0.002913772128522396,
0.05286627262830734,
0.003781975246965885,
0.012539809569716454,
0.021330922842025757,
0.05455416440963745,
0.029358908534049988,
0.021904231980443,
0.007273447699844837,
0.052440062165260315,
-0.009837256744503975,
-0.024408208206295967,
-0.024569164961576462,
-0.012726927176117897,
-0.02505388855934143,
-0.25683659315109253,
0.03615821897983551,
-0.024987630546092987,
-0.037804096937179565,
0.024279840290546417,
-0.04257536679506302,
0.029578642919659615,
-0.07266008108854294,
-0.019350634887814522,
0.0018261942313984036,
-0.029855508357286453,
-0.029701674357056618,
-0.017816761508584023,
0.03412267565727234,
-0.023325389251112938,
-0.012325074523687363,
0.033675990998744965,
-0.04501277953386307,
0.009294860064983368,
0.034481171518564224,
0.026139255613088608,
-0.048205144703388214,
0.03175102174282074,
0.05452224612236023,
0.01886875368654728,
0.10096675157546997,
-0.07576592266559601,
0.038835179060697556,
-0.024256717413663864,
-0.03981318324804306,
-0.015971863642334938,
-0.04705510288476944,
0.022052055224776268,
-0.0028306860476732254,
-0.02449250966310501,
-0.01902944967150688,
0.04966052994132042,
0.008242454379796982,
0.009750284254550934,
0.019746435806155205,
-0.02247263491153717,
-0.02489137463271618,
-0.009860774502158165,
-0.027941705659031868,
0.0418817512691021,
-0.017633691430091858,
-0.009171274490654469,
-0.009504939429461956,
0.0023713987320661545,
0.09175481647253036,
-0.007004006300121546,
-0.012654929421842098,
0.017305459827184677,
0.03534508869051933,
0.005077044013887644,
0.008077843114733696,
-0.01166783832013607,
-0.004226230550557375,
-0.030122118070721626,
-0.01573764532804489,
0.008623957633972168,
-0.06322910636663437,
-0.02305203303694725,
-0.04124775156378746,
0.0009950665989890695,
-0.04678947851061821,
-0.054456841200590134,
-0.004434233997017145,
0.09813686460256577,
0.054989926517009735,
-0.023771263659000397,
-0.015405368059873581,
-0.0067335874773561954,
-0.08344875276088715,
-0.003662859322503209,
-0.04718739166855812,
-0.039563119411468506,
-0.024535173550248146,
-0.027578363195061684,
0.03775816410779953,
-0.04506779462099075,
-0.020136192440986633,
0.03451913222670555,
0.005563667509704828,
0.03871818259358406,
-0.06165178865194321,
-0.011823934502899647,
0.000019369079382158816,
-0.026600943878293037,
-0.0498325489461422,
0.06763549894094467,
-0.03957977518439293,
-0.03320701792836189,
-0.019462095573544502,
0.027342963963747025,
0.036030590534210205,
0.0005379860522225499,
0.012938318774104118,
0.02929404005408287,
0.0025961531791836023,
0.0465543307363987,
-0.0330144464969635,
0.026952162384986877,
-0.05680818110704422,
-0.02340306155383587,
-0.02802324667572975,
-0.04914537072181702,
0.0310760997235775,
-0.003376852488145232,
0.03476017341017723,
-0.03111148253083229,
-0.05154110863804817,
0.0275876447558403,
-0.04766165837645531,
-0.042223840951919556,
-0.009750694036483765,
0.0028270897455513477,
0.010274642147123814,
0.01992087811231613,
-0.01949199289083481,
0.01043980848044157,
-0.012199099175632,
0.016397200524806976,
-0.022673550993204117,
-0.031691454350948334,
-0.041836485266685486,
0.00944768637418747,
-0.0030503456946462393,
0.01027163676917553,
0.021735915914177895,
-0.006519638933241367,
0.013008912093937397,
0.050413426011800766,
-0.02922944910824299,
0.03886696696281433,
-0.02049695886671543,
-0.03206339851021767,
-0.0147472582757473,
-0.032093457877635956,
0.020290153101086617,
-0.014382359571754932,
-0.016746869310736656,
-0.005498193204402924,
0.030955487862229347,
0.027715107426047325,
0.008855113759636879,
0.04494854062795639,
-0.026979129761457443,
0.0227853674441576,
0.017932727932929993,
-0.01854412443935871,
-0.029089106246829033,
0.0034199459478259087,
-0.023610984906554222,
-0.05293644592165947,
0.011448420584201813,
0.02417810820043087,
-0.035258930176496506,
-0.0346045084297657,
-0.013802759349346161,
0.006910452153533697,
-0.029887134209275246,
-0.025365520268678665,
0.00103816541377455,
-0.022156041115522385,
0.03480292856693268,
-0.016135700047016144,
0.022071611136198044,
-0.026920290663838387,
0.03661372885107994,
0.009166837669909,
0.038320403546094894,
-0.023869473487138748,
-0.01159941591322422,
0.004506173077970743,
-0.04351792484521866,
0.06487393379211426,
0.04923800006508827,
0.023940589278936386,
0.03685588389635086,
0.027502167969942093,
-0.021417463198304176,
0.011510361917316914,
0.024697095155715942,
0.03124629147350788,
-0.016036462038755417,
-0.01823783665895462,
-0.005865884479135275,
-0.057493794709444046,
-0.04934085160493851,
-0.014924639835953712,
-0.037563715130090714,
-0.020252861082553864,
0.0002820341906044632,
-0.04917680099606514,
-0.0512860007584095,
0.014711086638271809,
0.05159572511911392,
0.012870818376541138,
0.01880757324397564,
0.00784380454570055,
-0.02082495018839836,
-0.017800379544496536,
0.029052171856164932,
0.01986398734152317,
-0.05965897813439369,
0.002881278283894062,
-0.02285330928862095,
0.0021392537746578455,
0.024345098063349724,
0.0023144895676523447,
-0.058138392865657806,
-0.01140486728399992,
-0.025561176240444183,
0.026155389845371246,
-0.008810906670987606,
-0.008237997069954872,
-0.047784775495529175,
-0.008615384809672832,
-0.04923948273062706,
-0.01782972179353237,
-0.017842547968029976,
0.04643391817808151,
-0.0009258482605218887,
-0.01798461750149727,
-0.00485486164689064,
-0.026486849412322044,
0.00011813415767392144,
0.036173634231090546,
-0.009615080431103706,
0.03770234063267708,
-0.01451773103326559,
0.03783479332923889,
0.03478905186057091,
0.0191960409283638,
-0.020338360220193863,
-0.02723284810781479,
0.007742959074676037,
-0.011722954921424389,
0.04488569125533104,
0.017731452360749245,
-0.01359743345528841,
-0.04977695271372795,
-0.003015667200088501,
-0.04032231122255325,
-0.004110310692340136,
-0.032781701534986496,
-0.03298291936516762,
0.01850125752389431,
0.08799893409013748,
0.032645903527736664,
0.03769594058394432,
-0.013313941657543182,
-0.019963504746556282,
0.07721653580665588,
-0.010307466611266136,
-0.05148668587207794,
-0.004860413260757923,
-0.0637124553322792,
0.04419296979904175,
0.03192584216594696,
0.05561429262161255,
-0.06528370082378387,
0.021717915311455727,
0.04809896647930145,
-0.005602168384939432,
0.02806701883673668,
-0.0005123827722854912,
0.029973212629556656,
-0.029166992753744125,
-0.03247574344277382,
-0.10089429467916489,
-0.006476766429841518,
0.04209281504154205,
-0.012777956202626228,
-0.04913465306162834,
-0.021589035168290138,
-0.01508315745741129,
0.009198633953928947,
-0.032935187220573425,
-0.01938338205218315,
0.0514134019613266,
-0.010394198819994926,
0.016383664682507515,
0.026294946670532227,
-0.05538681522011757,
0.03277230262756348,
0.042195308953523636,
-0.048285793513059616,
-0.020370906218886375,
-0.026507297530770302,
0.07222796976566315,
0.005434354767203331,
0.04489275440573692,
-0.011117399670183659,
-0.0027000808622688055,
0.08313290029764175,
0.02860678732395172,
0.009501936845481396,
0.028372136875987053,
-0.006759108975529671,
0.013100209645926952,
0.03250574693083763,
-0.023743975907564163,
-0.0028397939167916775,
0.012539141811430454,
-0.035547126084566116,
-0.022467518225312233,
-0.025706026703119278,
0.036636099219322205,
0.008484551683068275,
-0.019837360829114914,
0.06006266549229622,
0.02850901521742344,
-0.0361168310046196,
-0.04926623776555061,
0.02204230986535549,
-0.04539422318339348,
0.031757183372974396,
-0.05776973068714142,
-0.00018773836200125515,
-0.07241667062044144,
0.05467227101325989,
-0.008435252122581005,
-0.00943031907081604,
0.08671116083860397,
-0.017580373212695122,
-0.011380725540220737,
-0.006277123466134071,
0.05752462521195412,
0.08040664345026016,
0.05810286104679108,
0.042845409363508224,
0.019055817276239395,
-0.048542171716690063,
-0.03690240532159805,
0.011117381043732166,
0.007406500168144703,
0.0038300640881061554,
-0.008576637133955956,
-0.009918642230331898,
0.0795753225684166,
-0.0136252511292696,
0.0760197639465332,
0.007574144750833511,
-0.008315571583807468,
-0.01307266391813755,
0.01921299658715725,
0.05078055337071419,
0.02754930965602398,
-0.006805703975260258,
0.02030237577855587,
-0.005384650081396103,
-0.004479339346289635,
0.0653204396367073,
0.01697649247944355,
-0.005148028023540974,
0.027460629120469093,
0.005104105453938246,
0.004686260130256414,
0.002470877952873707,
0.04502274468541145,
0.06127089262008667,
0.0021655973978340626,
0.006200059317052364,
-0.0026178904809057713,
0.04023558273911476,
-0.025712616741657257,
0.023906437680125237,
-0.022056564688682556,
-0.02453000098466873,
-0.017890261486172676,
-0.029208866879343987,
-0.03835455700755119,
-0.0047672283835709095,
-0.00912869069725275,
0.016279390081763268,
-0.0014752809656783938,
0.008231444284319878,
0.05568138137459755,
0.018134739249944687,
-0.04530198127031326,
-0.041548386216163635,
-0.06609395146369934,
-0.04680466651916504,
-0.023825790733098984,
-0.02933059260249138,
0.0015531649114564061,
0.0194419976323843,
-0.01563587784767151,
-0.02086610160768032,
-0.07900780439376831,
-0.04991057142615318,
-0.011582300998270512,
-0.03922537714242935,
0.0024132279213517904,
-0.02446632646024227,
0.044192489236593246,
0.012105308473110199,
0.008225510828197002,
0.03770419582724571,
-0.001591854146681726,
-0.016384800896048546,
0.011816062033176422,
-0.0036325298715382814,
0.05109523981809616,
0.011159691959619522,
0.011313136667013168,
-0.0581696555018425,
0.03913678228855133,
0.025705033913254738,
0.011686316691339016,
-0.060236379504203796,
0.029781974852085114,
0.021449724212288857,
-0.030903305858373642,
0.04742160812020302,
-0.03858232870697975,
0.010342145338654518,
-0.012386005371809006,
-0.03619509935379028,
-0.013014226220548153,
-0.014832308515906334,
0.057826533913612366,
-0.009912916459143162,
0.07717473804950714,
0.026253044605255127,
0.017678644508123398,
-0.04474669694900513,
0.013916078954935074,
0.008370010182261467,
0.02691139467060566,
-0.008167455904185772,
-0.024536212906241417,
-0.05320092290639877,
-0.06209268048405647,
-0.01660964824259281,
0.00661497050896287,
-0.021941155195236206,
-0.03264588490128517,
0.01410465594381094,
0.017484277486801147,
-0.07324253767728806,
0.003955925814807415,
-0.019532425329089165,
-0.011272463947534561,
-0.026503663510084152,
-0.03698554262518883,
-0.03787659853696823,
0.03382991999387741,
0.004620735067874193,
0.007731468416750431,
0.015015031211078167,
-0.00710913073271513,
0.005882756784558296,
-0.00017549727635923773,
0.01440532598644495,
0.07554127275943756,
-0.007603555917739868,
0.013379419222474098
] | [
-0.09110815078020096,
-0.031901322305202484,
-0.022567709907889366,
-0.054672710597515106,
0.031858596950769424,
-0.09676302224397659,
-0.011959231458604336,
-0.0016178279183804989,
0.01713288575410843,
-0.02024664357304573,
0.009642019867897034,
-0.040803298354148865,
0.009309057146310806,
-0.03962308168411255,
0.05515913665294647,
-0.010956034995615482,
-0.02159835398197174,
-0.009767699986696243,
-0.026999525725841522,
0.04694196209311485,
0.009938421659171581,
-0.0022466762457042933,
-0.03331727534532547,
-0.03595202416181564,
0.01647580787539482,
0.04396340250968933,
0.023304643109440804,
-0.039117682725191116,
-0.015454422682523727,
-0.2070625126361847,
0.008714371360838413,
-0.003921326715499163,
0.04373856261372566,
-0.01385218184441328,
0.014779244549572468,
0.07232369482517242,
0.010962913744151592,
0.011252673342823982,
-0.010681236162781715,
0.05262073874473572,
0.030825810506939888,
-0.0015852911164984107,
-0.060933493077754974,
-0.020105477422475815,
-0.005739409010857344,
-0.024298015981912613,
-0.020367087796330452,
-0.05654900148510933,
0.03979115933179855,
0.037999227643013,
-0.05727018415927887,
-0.003961527720093727,
0.0070364810526371,
-0.02658010460436344,
-0.00698016956448555,
0.00977286510169506,
0.05044831708073616,
0.0802893340587616,
0.0005820340593345463,
0.001140134991146624,
-0.009454239159822464,
-0.0015784751158207655,
-0.12388454377651215,
0.10135254263877869,
0.047597452998161316,
0.026390785351395607,
-0.0029423856176435947,
0.001774498843587935,
-0.05311719328165054,
0.09672718495130539,
-0.013364830985665321,
-0.016880711540579796,
-0.03282772749662399,
0.08631698042154312,
-0.026914650574326515,
-0.0453239344060421,
-0.0069724032655358315,
0.003507750341668725,
-0.0011270304676145315,
-0.025514591485261917,
-0.07274267822504044,
-0.03369201719760895,
-0.01371126901358366,
-0.028582723811268806,
-0.05483189597725868,
0.02365683764219284,
-0.010027961805462837,
0.05974392592906952,
0.036900948733091354,
0.00672731501981616,
0.01752132549881935,
-0.0344567596912384,
0.051267411559820175,
0.005099021829664707,
-0.09852882474660873,
-0.01616561971604824,
0.008470352739095688,
0.00822807103395462,
-0.0011986774625256658,
0.39132925868034363,
-0.03754234313964844,
-0.04555055499076843,
0.039090339094400406,
-0.011786825954914093,
0.020478619262576103,
0.033683206886053085,
0.0021764871198683977,
-0.023075804114341736,
0.012543321587145329,
-0.051044099032878876,
0.0037193093448877335,
-0.025298431515693665,
0.07113447040319443,
-0.051747940480709076,
0.018634578213095665,
0.021619517356157303,
0.03649655357003212,
0.0008430765010416508,
-0.0035223769955337048,
0.016009297221899033,
0.003636418841779232,
-0.027373285964131355,
0.0028370870277285576,
0.03790763393044472,
0.03409189358353615,
-0.031803425401449203,
0.018540993332862854,
0.05639999732375145,
0.03445662930607796,
0.053234271705150604,
0.05557285249233246,
-0.036186251789331436,
-0.032524093985557556,
0.001310268184170127,
-0.0018388321623206139,
0.03941328078508377,
0.028270075097680092,
-0.0457894504070282,
-0.011994642205536366,
-0.030431099236011505,
0.002026554197072983,
-0.07913095504045486,
-0.004102820064872503,
-0.0019248240860179067,
-0.02522158995270729,
0.11106693744659424,
-0.028668763116002083,
-0.043429870158433914,
-0.02138625830411911,
-0.06680774688720703,
-0.033432088792324066,
0.027968555688858032,
0.013333119451999664,
-0.06515984237194061,
0.010622873902320862,
0.04075563699007034,
0.08054901659488678,
-0.028763189911842346,
-0.07438594102859497,
-0.0006374629447236657,
0.007908045314252377,
-0.03747127950191498,
-0.06909683346748352,
0.07749590277671814,
0.06411656737327576,
-0.04069673642516136,
-0.034569039940834045,
0.0025142496451735497,
0.03427007049322128,
-0.04628296568989754,
0.028749234974384308,
-0.014720545150339603,
-0.041346315294504166,
-0.0171336829662323,
0.018120024353265762,
-0.028683306649327278,
-0.0023477294016629457,
0.025957733392715454,
0.04015946760773659,
0.01806386560201645,
0.007702162954956293,
0.021309779956936836,
-0.05261499062180519,
0.04114238917827606,
-0.02267538197338581,
-0.09216557443141937,
-0.09309003502130508,
0.030212953686714172,
-0.02362728677690029,
0.029124218970537186,
-0.017499137669801712,
-0.010592177510261536,
-0.061375364661216736,
0.023570584133267403,
-0.03762432932853699,
-0.007376931607723236,
0.017564238980412483,
0.010668647475540638,
-0.022120211273431778,
-0.057513341307640076,
0.06118590757250786,
0.04625055938959122,
-0.01582699827849865,
0.008127235807478428,
-0.04165026545524597,
-0.002311474410817027,
0.05735557898879051,
-0.03535778075456619,
0.07101436704397202,
0.02544587105512619,
-0.019661257043480873,
-0.007102797739207745,
0.014775807969272137,
-0.01449334155768156,
-0.012805797159671783,
-0.027130775153636932,
-0.0014989629853516817,
-0.00645494693890214,
0.07348190993070602,
0.029985781759023666,
-0.055989813059568405,
-0.06059028208255768,
-0.0017516310326755047,
-0.34188559651374817,
-0.033105988055467606,
0.03130806237459183,
-0.016793331131339073,
0.04909093677997589,
-0.03643743693828583,
0.016572171822190285,
-0.03464430943131447,
-0.009387025609612465,
0.0174502432346344,
0.04430312663316727,
-0.07821876555681229,
0.004947356879711151,
-0.08856898546218872,
-0.011327853426337242,
0.021923083811998367,
-0.020950499922037125,
-0.02517685480415821,
0.011171669699251652,
0.06043162941932678,
-0.0005359705537557602,
-0.015643376857042313,
-0.039489153772592545,
-0.005762760061770678,
0.014232414774596691,
-0.029825478792190552,
0.09643122553825378,
0.04678905010223389,
0.09123951196670532,
-0.05410967022180557,
0.05399388074874878,
0.017235737293958664,
0.0023123163264244795,
-0.08329611271619797,
-0.014115712605416775,
-0.004893438890576363,
-0.025282591581344604,
0.03324899449944496,
0.020248480141162872,
0.020866839215159416,
-0.02054109238088131,
-0.021584823727607727,
-0.060855235904455185,
-0.02029147371649742,
0.003011391032487154,
-0.020978055894374847,
0.009043688885867596,
-0.06228766590356827,
-0.0033726003021001816,
0.08883650600910187,
0.022418448701500893,
0.024789990857243538,
0.013721560128033161,
-0.0006869843346066773,
0.04991930350661278,
-0.03869474306702614,
-0.03998100012540817,
0.0010481924982741475,
0.027330782264471054,
-0.06004184111952782,
0.053130023181438446,
0.05025574937462807,
0.052427615970373154,
-0.02335337921977043,
-0.0265484768897295,
0.015570571646094322,
-0.005409151315689087,
0.01247797254472971,
0.036495309323072433,
-0.04065448045730591,
-0.04957681521773338,
0.0844898447394371,
0.011492932215332985,
0.02001667395234108,
-0.010070782154798508,
0.04331184923648834,
-0.04317476972937584,
0.020724035799503326,
-0.012426251545548439,
-0.009552820585668087,
0.06465153396129608,
0.02423706278204918,
0.04745093360543251,
-0.010273105464875698,
-0.011985155753791332,
0.06979510188102722,
0.008934488520026207,
-0.011922166682779789,
0.06599442660808563,
-0.0038733568508177996,
-0.006072598975151777,
-0.02892938442528248,
0.02037518285214901,
-0.024591397494077682,
0.07508829981088638,
-0.010032227262854576,
-0.26748305559158325,
0.023539269343018532,
0.0220560971647501,
0.06854655593633652,
0.00890559982508421,
0.04590609669685364,
0.035349003970623016,
-0.056325387209653854,
0.0049768779426813126,
0.02394493855535984,
-0.005938895512372255,
0.03993473947048187,
-0.021978892385959625,
-0.03316442295908928,
0.015289013274013996,
-0.01585538499057293,
0.06828899681568146,
0.005264137871563435,
0.03567613661289215,
0.01009373553097248,
-0.010911357589066029,
-0.03541827201843262,
0.17892098426818848,
-0.025352437049150467,
0.03091353364288807,
0.011731814593076706,
0.016665294766426086,
0.024564499035477638,
0.10577143728733063,
0.037525299936532974,
0.019454913213849068,
0.00592678040266037,
0.052330583333969116,
0.013240588828921318,
0.026360198855400085,
-0.02866395004093647,
-0.027451422065496445,
0.03982207924127579,
0.020642757415771484,
-0.02288881130516529,
-0.02152109704911709,
0.05219901353120804,
-0.030440475791692734,
0.007245800457894802,
0.04409654065966606,
0.01860738731920719,
0.010275372304022312,
-0.03152748569846153,
-0.01962730661034584,
0.012207366526126862,
-0.03614765778183937,
-0.00012873075320385396,
-0.01446605660021305,
-0.034909725189208984,
-0.0005314361769706011,
0.04153216630220413,
0.002669278299435973,
-0.02300671488046646,
-0.012007204815745354,
0.022727860137820244,
-0.02203262969851494,
-0.061186533421278,
0.13522416353225708,
0.03089083917438984,
-0.006852843798696995
] | [
0.0034601320512592793,
0.03812263160943985,
-0.024651529267430305,
-0.01397017389535904,
-0.037154629826545715,
-0.032897986471652985,
-0.0012853791704401374,
0.05116869509220123,
-0.027446307241916656,
0.021552594378590584,
-0.03623788058757782,
-0.017992522567510605,
0.05404672026634216,
-0.054529741406440735,
0.014738584868609905,
-0.04850760102272034,
-0.0305616557598114,
0.019606338813900948,
0.031907930970191956,
-0.07109913229942322,
-0.04749443382024765,
0.05330680310726166,
0.05457691848278046,
-0.012221126817166805,
0.025037962943315506,
0.05236334726214409,
-0.004502093885093927,
-0.007279946468770504,
-0.0023246437776833773,
-0.09700826555490494,
-0.04849329963326454,
-0.025424418970942497,
0.022082576528191566,
-0.01775464415550232,
-0.007860512472689152,
0.008908161893486977,
0.03300592675805092,
0.06294082850217819,
-0.03769459202885628,
0.030627163127064705,
-0.03792969137430191,
0.008804566226899624,
-0.010528234764933586,
0.001151976059190929,
0.00951256975531578,
-0.024190129712224007,
-0.021132729947566986,
0.014396395534276962,
-0.010850638151168823,
0.0033143290784209967,
-0.04708610475063324,
0.011141682974994183,
0.018398970365524292,
0.002940852427855134,
0.03716118633747101,
-0.013808781281113625,
-0.007978815585374832,
0.010828346014022827,
-0.017003770917654037,
-0.024736754596233368,
-0.01551328506320715,
0.0073745897971093655,
-0.06818589568138123,
0.0028973359148949385,
0.01623610593378544,
-0.051259271800518036,
-0.00793707650154829,
0.009493427351117134,
0.03624222055077553,
-0.0027265744283795357,
-0.04475202038884163,
0.007652845233678818,
-0.04525918513536453,
-0.02366018481552601,
-0.024690799415111542,
0.020492924377322197,
0.040612079203128815,
-0.010382191278040409,
0.02708912268280983,
0.012265384197235107,
-0.02230004593729973,
0.0020778216421604156,
0.01040866132825613,
-0.03047654591500759,
-0.062035106122493744,
0.010333793237805367,
-0.0319221168756485,
0.05479607358574867,
0.002815342042595148,
0.012806477956473827,
0.025871019810438156,
0.0006404003943316638,
-0.003917614463716745,
-0.0068265097215771675,
-0.0833599716424942,
0.03351118415594101,
-0.04987454414367676,
0.02514554187655449,
0.01861920766532421,
0.7918293476104736,
0.013005507178604603,
0.012122602201998234,
0.026568179950118065,
0.023605087772011757,
-0.009759277105331421,
-0.0021400940604507923,
0.033537741750478745,
-0.007873392663896084,
0.0383586660027504,
-0.057894621044397354,
0.040955089032649994,
-0.01868530549108982,
0.03655107691884041,
-0.008799402043223381,
0.021220413967967033,
0.04975976422429085,
0.048964112997055054,
0.024726826697587967,
-0.010234428569674492,
0.010297488421201706,
0.003847803920507431,
-0.06376061588525772,
0.0043115271255373955,
0.03625628724694252,
0.013160170055925846,
-0.1717141717672348,
-0.022085199132561684,
-8.498454610408599e-33,
-0.0014629715587943792,
-0.046569664031267166,
0.05734513700008392,
-0.02521129883825779,
-0.027603521943092346,
0.025090346112847328,
-0.009084807708859444,
0.024379709735512733,
-0.017188383266329765,
-0.012178142555058002,
0.03221715986728668,
-0.022192368283867836,
0.013110704720020294,
-0.006807694211602211,
-0.008304827846586704,
-0.03320065885782242,
-0.006724088918417692,
0.025188090279698372,
-0.0077367243357002735,
-0.013006373308598995,
0.013142898678779602,
0.03193970397114754,
0.057164136320352554,
0.036666326224803925,
0.03891551122069359,
-0.006459725089371204,
0.0018984447233378887,
-0.03152414411306381,
0.02501550503075123,
-0.02609982155263424,
-0.03868652880191803,
0.007112445309758186,
-0.005792072042822838,
-0.005478198174387217,
0.0008944022702053189,
-0.03692375496029854,
-0.021875787526369095,
-0.003574664704501629,
0.014212457463145256,
-0.031340181827545166,
-0.05841735005378723,
-0.01969289220869541,
0.013075169175863266,
0.013508145697414875,
0.008271965198218822,
-0.04942217469215393,
-0.019698308780789375,
0.04753704369068146,
0.0020892969332635403,
0.04919181764125824,
0.021061036735773087,
0.033740561455488205,
0.0034971488639712334,
0.006637822836637497,
0.004732946865260601,
0.006734006106853485,
0.005307688843458891,
-0.0062939804047346115,
-0.01886804960668087,
0.07627081125974655,
-0.014725466258823872,
0.05997689813375473,
0.011336326599121094,
0.029978182166814804,
0.03096439316868782,
-0.018849773332476616,
0.06091681867837906,
0.018108965829014778,
-0.00047756516141816974,
0.07792078703641891,
-0.0385768860578537,
0.015103603713214397,
0.02296319603919983,
-0.04365592449903488,
-0.006580511573702097,
-0.020747624337673187,
0.018110118806362152,
-0.0300175528973341,
0.02734004147350788,
0.023988256230950356,
0.026785556226968765,
-0.026054317131638527,
-0.03620658814907074,
-0.031984977424144745,
-0.0012520788004621863,
0.0023247096687555313,
-0.0018432029755786061,
0.013824683614075184,
-0.038620028644800186,
-0.018262598663568497,
0.05969076231122017,
0.07051800191402435,
-0.029713397845625877,
-0.025590162724256516,
-0.0010646391892805696,
8.399255376826675e-33,
0.04418915510177612,
0.016422495245933533,
-0.032039955258369446,
0.004891004879027605,
0.004039899446070194,
-0.00600113719701767,
0.0075360736809670925,
-0.0259002223610878,
-0.02974063903093338,
0.008229605853557587,
-0.023340867832303047,
0.0270804762840271,
-0.01936483010649681,
0.010954441502690315,
0.07969029992818832,
-0.03192777931690216,
0.0017913264455273747,
0.03641434758901596,
-0.028768211603164673,
-0.014963123016059399,
0.016751788556575775,
-0.01948789693415165,
0.0438515730202198,
0.03391736373305321,
0.05975261703133583,
-0.016827629879117012,
-0.0194864459335804,
0.0007363965851254761,
-0.001459167106077075,
0.03818720951676369,
0.01355066616088152,
-0.036397263407707214,
0.0074090841226279736,
-0.03499014303088188,
0.01145731657743454,
0.008429453708231449,
0.001717131701298058,
0.00507864635437727,
0.04094812273979187,
-0.007564774714410305,
0.008527148514986038,
0.04798482358455658,
-0.006500022951513529,
-0.01077198050916195,
0.0027634920552372932,
0.01384731661528349,
0.0035903940442949533,
0.03706908971071243,
-0.001875868532806635,
-0.007004127837717533,
-0.006328605115413666,
0.03126875311136246,
-0.01228384580463171,
-0.005726213566958904,
0.030385414138436317,
-0.013762567192316055,
-0.06410794705152512,
0.030068740248680115,
-0.0439971387386322,
0.0194684024900198,
-0.03425760567188263,
0.009285966865718365,
-0.007505328860133886,
0.013962388038635254,
-0.0034188637509942055,
-0.012816227041184902,
-0.019767673686146736,
-0.026103554293513298,
-0.02449636161327362,
-0.005838766694068909,
0.006498872768133879,
-0.029896222054958344,
-0.032385896891355515,
0.01216137409210205,
-0.007533318363130093,
-0.017694486305117607,
-0.022472679615020752,
0.009197114035487175,
-0.027248509228229523,
0.054105378687381744,
0.03872838243842125,
0.0007396201835945249,
0.026941750198602676,
0.0382123626768589,
0.033066973090171814,
-0.027116572484374046,
-0.03696876019239426,
0.017629196867346764,
0.04094108194112778,
0.018424246460199356,
0.0066809505224227905,
-0.004820520058274269,
-0.012507417239248753,
-0.002666330197826028,
-0.05090045928955078,
-1.3180231128728792e-8,
-0.027657657861709595,
-0.02755780518054962,
-0.019676977768540382,
0.04362043738365173,
0.0504501610994339,
0.046739451587200165,
-0.06917635351419449,
-0.04966858774423599,
-0.020534390583634377,
0.014000642113387585,
0.027985839173197746,
-0.0001619735558051616,
-0.009227734990417957,
0.029808534309267998,
0.03132190182805061,
-0.012480402365326881,
0.0010075120953842998,
-0.02065267600119114,
0.013900630176067352,
0.011212235316634178,
-0.00006554883293574676,
0.05198345333337784,
-0.02230720967054367,
0.019035018980503082,
0.0031625309493392706,
-0.03358583152294159,
-0.0013494467129930854,
-0.06520041823387146,
0.011158064939081669,
0.019059883430600166,
0.0366961695253849,
-0.06278602033853531,
-0.013247505761682987,
-0.009770898148417473,
-0.01688314601778984,
-0.06649059802293777,
-0.005398918408900499,
0.04159476235508919,
-0.024851497262716293,
-0.003839777084067464,
-0.03332213684916496,
0.006129527930170298,
0.014651301316916943,
-0.026641126722097397,
-0.03772418946027756,
-0.057302430272102356,
-0.02995232492685318,
0.011144324205815792,
-0.00227029318921268,
-0.055658772587776184,
0.03526468575000763,
0.0367240384221077,
0.03616124391555786,
0.016232725232839584,
0.042096175253391266,
0.021504297852516174,
0.01621764712035656,
-0.012773638591170311,
-0.014332199469208717,
-0.0014784422237426043,
0.004335271194577217,
-0.012580450624227524,
-0.02427360974252224,
-0.01888956129550934
] | unix-converting-a-file-of-values-into-a-comma-separated-list | https://markhneedham.com/blog/2015/06/08/unix-converting-a-file-of-values-into-a-comma-separated-list |
false | 2015-06-23 22:34:47 | R: Scraping the release dates of github projects | [
"r-2"
] | [
"R"
] | Continuing on from my blog post about http://www.markhneedham.com/blog/2015/06/21/r-scraping-neo4j-release-dates-with-rvest/[scraping Neo4j's release dates] I thought it'd be even more interesting to chart the release dates of some github projects.
In theory the release dates should be accessible through the github API but the few that I looked at weren't returning any data so I scraped the data together.
We'll be using rvest again and I first wrote the following function to extract the release versions and dates from a single page:
[source,r]
----
library(dplyr)
library(rvest)
process_page = function(releases, session) {
rows = session %>% html_nodes("ul.release-timeline-tags li")
for(row in rows) {
date = row %>% html_node("span.date")
version = row %>% html_node("div.tag-info a")
if(!is.null(version) && !is.null(date)) {
date = date %>% html_text() %>% str_trim()
version = version %>% html_text() %>% str_trim()
releases = rbind(releases, data.frame(date = date, version = version))
}
}
return(releases)
}
----
Let's try it out on the https://github.com/apache/cassandra/releases[Cassandra release page] and see what it comes back with:
[source,r]
----
> r = process_page(data.frame(), html_session("https://github.com/apache/cassandra/releases"))
> r
date version
1 Jun 22, 2015 cassandra-2.1.7
2 Jun 22, 2015 cassandra-2.0.16
3 Jun 8, 2015 cassandra-2.1.6
4 Jun 8, 2015 cassandra-2.2.0-rc1
5 May 19, 2015 cassandra-2.2.0-beta1
6 May 18, 2015 cassandra-2.0.15
7 Apr 29, 2015 cassandra-2.1.5
8 Apr 1, 2015 cassandra-2.0.14
9 Apr 1, 2015 cassandra-2.1.4
10 Mar 16, 2015 cassandra-2.0.13
----
That works pretty well but it's only one page! To get all the pages we can use the +++<cite>+++follow_link+++</cite>+++ function to follow the 'Next' link until there aren't anymore pages to process.
We end up with the following function to do this:
[source,r]
----
find_all_releases = function(starting_page) {
s = html_session(starting_page)
releases = data.frame()
next_page = TRUE
while(next_page) {
possibleError = tryCatch({
releases = process_page(releases, s)
s = s %>% follow_link("Next")
}, error = function(e) { e })
if(inherits(possibleError, "error")){
next_page = FALSE
}
}
return(releases)
}
----
Let's try it out starting from the Cassandra page:
[source,r]
----
> cassandra = find_all_releases("https://github.com/apache/cassandra/releases")
Navigating to https://github.com/apache/cassandra/releases?after=cassandra-2.0.13
Navigating to https://github.com/apache/cassandra/releases?after=cassandra-2.0.10
Navigating to https://github.com/apache/cassandra/releases?after=cassandra-2.0.8
Navigating to https://github.com/apache/cassandra/releases?after=cassandra-1.2.13
Navigating to https://github.com/apache/cassandra/releases?after=cassandra-2.0.0-rc1
Navigating to https://github.com/apache/cassandra/releases?after=cassandra-1.2.3
Navigating to https://github.com/apache/cassandra/releases?after=cassandra-1.2.0-beta2
Navigating to https://github.com/apache/cassandra/releases?after=cassandra-1.0.10
Navigating to https://github.com/apache/cassandra/releases?after=cassandra-1.0.6
Navigating to https://github.com/apache/cassandra/releases?after=cassandra-1.0.0-rc2
Navigating to https://github.com/apache/cassandra/releases?after=cassandra-0.7.7
Navigating to https://github.com/apache/cassandra/releases?after=cassandra-0.7.4
Navigating to https://github.com/apache/cassandra/releases?after=cassandra-0.7.0-rc3
Navigating to https://github.com/apache/cassandra/releases?after=cassandra-0.6.4
Navigating to https://github.com/apache/cassandra/releases?after=cassandra-0.5.0-rc3
Navigating to https://github.com/apache/cassandra/releases?after=cassandra-0.4.0-final
> cassandra %>% sample_n(10)
date version
151 Mar 13, 2010 cassandra-0.5.0-rc2
25 Jul 3, 2014 cassandra-1.2.18
51 Jul 27, 2013 cassandra-1.2.8
21 Aug 19, 2014 cassandra-2.1.0-rc6
73 Sep 24, 2012 cassandra-1.2.0-beta1
158 Mar 13, 2010 cassandra-0.4.0-rc2
113 May 20, 2011 cassandra-0.7.6-2
15 Oct 24, 2014 cassandra-2.1.1
103 Sep 15, 2011 cassandra-1.0.0-beta1
93 Nov 29, 2011 cassandra-1.0.4
----
I want to plot when the different releases happened in time and in order to do that we need to create an extra column containing the 'release series' which we can do with the following transformation:
[source,r]
----
series = function(version) {
parts = strsplit(as.character(version), "\\.")
return(unlist(lapply(parts, function(p) paste(p %>% unlist %>% head(2), collapse = "."))))
}
bySeries = cassandra %>%
mutate(date2 = mdy(date), series = series(version),
short_version = gsub("cassandra-", "", version),
short_series = series(short_version))
> bySeries %>% sample_n(10)
date version date2 series short_version short_series
3 Jun 8, 2015 cassandra-2.1.6 2015-06-08 cassandra-2.1 2.1.6 2.1
161 Mar 13, 2010 cassandra-0.4.0-beta1 2010-03-13 cassandra-0.4 0.4.0-beta1 0.4
62 Feb 15, 2013 cassandra-1.1.10 2013-02-15 cassandra-1.1 1.1.10 1.1
153 Mar 13, 2010 cassandra-0.5.0-beta2 2010-03-13 cassandra-0.5 0.5.0-beta2 0.5
37 Feb 7, 2014 cassandra-2.0.5 2014-02-07 cassandra-2.0 2.0.5 2.0
36 Feb 7, 2014 cassandra-1.2.15 2014-02-07 cassandra-1.2 1.2.15 1.2
29 Jun 2, 2014 cassandra-2.1.0-rc1 2014-06-02 cassandra-2.1 2.1.0-rc1 2.1
21 Aug 19, 2014 cassandra-2.1.0-rc6 2014-08-19 cassandra-2.1 2.1.0-rc6 2.1
123 Feb 16, 2011 cassandra-0.7.2 2011-02-16 cassandra-0.7 0.7.2 0.7
135 Nov 1, 2010 cassandra-0.7.0-beta3 2010-11-01 cassandra-0.7 0.7.0-beta3 0.7
----
Now let's plot those releases and see what we get:
[source,R]
----
ggplot(aes(x = date2, y = short_series),
data = bySeries %>% filter(!grepl("beta|rc", short_version))) +
geom_text(aes(label=short_version),hjust=0.5, vjust=0.5, size = 4, angle = 90) +
theme_bw()
----
image::{{<siteurl>}}/uploads/2015/06/2015-06-23_22-59-19.png[2015 06 23 22 59 19,598]
An interesting thing we can see from this visualisation is what overlap the various series of versions have. Most of the time there are only two series of versions overlapping but the 1.2, 2.0 and 2.1 series all overlap which is unusual.
In this chart we excluded all beta and RC versions. Let's bring those back in and just show the last 3 versions:
[source,r]
----
ggplot(aes(x = date2, y = short_series),
data = bySeries %>% filter(grepl("2\\.[012]\\.|1\\.2\\.", short_version))) +
geom_text(aes(label=short_version),hjust=0.5, vjust=0.5, size = 4, angle = 90) +
theme_bw()
----
image::{{<siteurl>}}/uploads/2015/06/2015-06-23_23-08-04.png[2015 06 23 23 08 04,599]
From this chart it's clearer that the 2.0 and 2.1 series have recent releases so there will probably be three overlapping versions when the 2.2 series is released as well.
The chart is still a bit cluttered although less than before. I'm not sure of a better way of visualising this type of data so if you have any ideas do let me know! | null | null | [
-0.002953617600724101,
-0.029374299570918083,
0.02426408790051937,
0.04882276430726051,
0.08428630232810974,
0.010071675293147564,
0.02651229500770569,
0.01886976696550846,
0.012752358801662922,
0.002079220023006201,
-0.010293656960129738,
-0.006616252940148115,
-0.044492270797491074,
0.050130028277635574,
-0.024842124432325363,
0.08464353531599045,
0.059522248804569244,
-0.00480014318600297,
0.006434888578951359,
-0.009656354784965515,
0.03955133259296417,
0.04876859486103058,
-0.018165016546845436,
0.03167589008808136,
0.01428695023059845,
0.000737958587706089,
0.009862934239208698,
-0.009398390538990498,
-0.05694158002734184,
-0.03187498822808266,
0.051202140748500824,
-0.009089062921702862,
0.005501070525497198,
-0.007290379144251347,
0.031359028071165085,
-0.00740817328915,
-0.046542879194021225,
0.03229803964495659,
0.017772667109966278,
-0.0115086380392313,
-0.08251166343688965,
0.02207086607813835,
-0.012511452659964561,
0.02531607449054718,
-0.028313515707850456,
0.048757657408714294,
-0.04517403244972229,
0.023778138682246208,
0.00758103933185339,
0.0160153079777956,
-0.04934418946504593,
0.025368675589561462,
-0.00728779099881649,
-0.042702581733465195,
-0.018481606617569923,
0.04720913991332054,
0.03479798510670662,
-0.07372523099184036,
0.02343950793147087,
-0.027631433680653572,
0.020608140155673027,
-0.0150698721408844,
0.002456650836393237,
0.034477394074201584,
0.0009626636747270823,
-0.05783827602863312,
-0.0014223521575331688,
0.04965091869235039,
-0.013309428468346596,
-0.0036347012501209974,
-0.004087024834007025,
0.011304464191198349,
-0.020713215693831444,
0.001670066500082612,
-0.004841901361942291,
-0.03371504321694374,
-0.011525021865963936,
0.07361356914043427,
0.04131127521395683,
0.03067888505756855,
-0.019427482038736343,
0.007029390893876553,
0.04047127813100815,
0.024821504950523376,
0.010338856838643551,
-0.02941109985113144,
-0.03732374683022499,
-0.05728418007493019,
-0.06914795935153961,
0.06034354120492935,
0.009629730135202408,
-0.05535423383116722,
0.03924555331468582,
0.025651872158050537,
-0.01559503935277462,
0.0178019180893898,
0.01481705717742443,
-0.0017508220626041293,
0.027773389592766762,
-0.03575992211699486,
-0.05386653542518616,
0.001460278290323913,
0.010725477710366249,
0.0028110211715102196,
-0.0760021060705185,
-0.012087204493582249,
-0.03398130089044571,
-0.02027294784784317,
-0.008782871998846531,
-0.006122816354036331,
0.006007808726280928,
0.052047405391931534,
-0.010816708207130432,
0.016091931611299515,
-0.06749311089515686,
0.04438135027885437,
0.005966726690530777,
-0.06615078449249268,
-0.04104539752006531,
0.0036309759598225355,
0.03096906654536724,
0.030945265665650368,
-0.0006773418863303959,
0.07098354399204254,
0.00260736676864326,
0.08071261644363403,
0.0043943459168076515,
0.021475300192832947,
-0.02073099836707115,
-0.07237950712442398,
-0.006719261407852173,
0.07580216974020004,
-0.029256997630000114,
-0.011173899285495281,
-0.008156185038387775,
-0.02635081298649311,
-0.02607130818068981,
0.008520139381289482,
0.09258835762739182,
0.04702553525567055,
0.008114136755466461,
-0.03947169706225395,
0.008714062161743641,
0.007960684597492218,
0.029030468314886093,
0.027955543249845505,
-0.015117297880351543,
-0.043639399111270905,
-0.06471529603004456,
0.010245151817798615,
0.030310142785310745,
0.010060392320156097,
0.024076595902442932,
-0.006605376023799181,
0.036439962685108185,
0.06814716756343842,
0.016430586576461792,
0.01058989018201828,
0.006155399605631828,
0.007335906848311424,
0.03898143023252487,
0.029433727264404297,
0.013869051821529865,
0.04091484844684601,
0.007414906285703182,
-0.009680788964033127,
0.008584622293710709,
0.03429129719734192,
-0.019187413156032562,
-0.00734726944938302,
-0.08657831698656082,
-0.04721054434776306,
0.06958925724029541,
-0.045969974249601364,
-0.02059897966682911,
0.05501049384474754,
0.0811491385102272,
0.022458456456661224,
0.012870737351477146,
-0.0006317095248959959,
-0.07260878384113312,
0.05686446651816368,
0.015941856428980827,
0.015024151653051376,
0.008904971182346344,
-0.025550449267029762,
0.0835786983370781,
0.015360057353973389,
0.02855329029262066,
0.03322872146964073,
-0.09578260779380798,
-0.07115744799375534,
-0.02413984015583992,
-0.009836024604737759,
0.061467260122299194,
-0.029697319492697716,
0.020941725000739098,
0.07131434231996536,
-0.00442236103117466,
0.02710573747754097,
-0.011373277753591537,
0.026971887797117233,
0.004545552656054497,
-0.03470561280846596,
-0.03626130893826485,
0.02413063682615757,
0.029407918453216553,
-0.0484093576669693,
-0.018089385703206062,
0.021930472925305367,
-0.019246073439717293,
0.04801875352859497,
0.04245878756046295,
-0.04115495830774307,
0.030361007899045944,
0.018567292019724846,
0.052090808749198914,
0.002102951053529978,
0.04005090892314911,
-0.03735470026731491,
0.05057575926184654,
-0.007403782568871975,
-0.017902465537190437,
-0.03711555525660515,
-0.012060534209012985,
0.10898194462060928,
0.06829088181257248,
-0.000974819588009268,
-0.03541829437017441,
0.06793845444917679,
-0.0022123558446764946,
-0.026714589446783066,
0.009044384583830833,
-0.02284977026283741,
-0.0019776523113250732,
-0.007242562714964151,
-0.014674932695925236,
-0.03271893411874771,
-0.008224847726523876,
-0.03523123264312744,
0.01673203706741333,
0.054976724088191986,
-0.005252095405012369,
0.06673149764537811,
0.0022163495887070894,
-0.0024616483133286238,
-0.02013750560581684,
-0.03668320178985596,
-0.07848776876926422,
0.011932062916457653,
0.03164807707071304,
-0.002494899556040764,
0.027215804904699326,
-0.029086774215102196,
-0.033650122582912445,
-0.0010541622759774327,
-0.03850778192281723,
0.02608688361942768,
0.054823726415634155,
0.07042767852544785,
-0.00009230424620909616,
0.0024132728576660156,
-0.028298037126660347,
0.02106156200170517,
0.012580160051584244,
-0.018110953271389008,
-0.057492196559906006,
-0.06842493265867233,
0.01976434700191021,
0.028835199773311615,
0.013938496820628643,
-0.01624971628189087,
0.012863654643297195,
0.03175956383347511,
-0.010718422941863537,
-0.01947653852403164,
0.022800717502832413,
-0.012763634324073792,
-0.004834728315472603,
-0.0346260704100132,
-0.026896467432379723,
0.04611651599407196,
-0.03430093452334404,
-0.023314690217375755,
-0.0011725386139005423,
-0.0660257562994957,
0.07734116166830063,
-0.045634955167770386,
-0.024512406438589096,
-0.016289066523313522,
0.004472852684557438,
0.06752381473779678,
0.04308336600661278,
0.03546924889087677,
0.0731506273150444,
0.016104882583022118,
0.022528409957885742,
0.014942101202905178,
-0.016282355412840843,
0.03287205845117569,
-0.040652889758348465,
-0.029631244018673897,
0.06827496737241745,
-0.016430199146270752,
0.01426301896572113,
-0.04056485742330551,
0.0267182569950819,
-0.03219664469361305,
-0.2647145688533783,
0.025416258722543716,
-0.03862114995718002,
-0.03941609710454941,
0.018475497141480446,
-0.01535995677113533,
0.01797955296933651,
-0.032032325863838196,
-0.01374143362045288,
0.014381220564246178,
0.010447862558066845,
-0.010698164813220501,
-0.017261072993278503,
0.04688926041126251,
0.02729443460702896,
0.014883184805512428,
0.01574690453708172,
-0.041895102709531784,
-0.005042023491114378,
0.025546787306666374,
0.01292844396084547,
-0.038197457790374756,
0.010745937936007977,
0.02169344387948513,
0.03267498314380646,
0.04508994147181511,
-0.0812520831823349,
0.027015039697289467,
-0.05921680107712746,
-0.04012726992368698,
0.018624436110258102,
-0.020514927804470062,
0.025879649445414543,
0.007463944144546986,
0.0032476356718689203,
0.011638065800070763,
0.021495813503861427,
0.029519351199269295,
-0.012368030846118927,
0.036209236830472946,
-0.028066199272871017,
-0.023726750165224075,
-0.015762843191623688,
-0.02141817845404148,
0.08662454783916473,
-0.009347069077193737,
-0.06864463537931442,
0.005792798474431038,
-0.00797972735017538,
0.08608975261449814,
-0.031169693917036057,
-0.028916429728269577,
-0.01725485362112522,
0.025188729166984558,
-0.027173465117812157,
-0.034625355154275894,
-0.04262923449277878,
-0.005648989696055651,
0.0021701829973608255,
-0.0640871524810791,
-0.012101547792553902,
-0.04666392505168915,
0.017822686582803726,
-0.054982222616672516,
-0.03807658329606056,
-0.07145974040031433,
-0.06655371189117432,
-0.03377201035618782,
0.054727084934711456,
0.008049683645367622,
-0.03889954090118408,
-0.02345101907849312,
-0.017898818477988243,
-0.1042901873588562,
-0.013718606904149055,
-0.05613702908158302,
-0.018740413710474968,
0.006131808273494244,
-0.020170630887150764,
0.06042048707604408,
-0.04131036624312401,
-0.06062813848257065,
0.01823284663259983,
0.02173495851457119,
-0.0045022303238511086,
-0.002717115916311741,
0.02705887146294117,
-0.030856316909193993,
-0.04323194921016693,
-0.013962472788989544,
0.047693729400634766,
-0.04651062935590744,
-0.03387223184108734,
0.014273782260715961,
-0.019413698464632034,
0.03130849078297615,
-0.004322519991546869,
0.028677964583039284,
0.01639007031917572,
0.06442088633775711,
-0.0019211911130696535,
-0.05588997155427933,
0.020532600581645966,
-0.03864838927984238,
-0.01605205237865448,
-0.018017476424574852,
-0.042322609573602676,
0.00689314678311348,
0.034470897167921066,
0.02005535364151001,
0.009331305511295795,
-0.026165181770920753,
0.00670433696359396,
-0.07301577925682068,
-0.03620453551411629,
-0.006062550004571676,
0.016817135736346245,
0.01607358269393444,
-0.0027295746840536594,
-0.010082277469336987,
-0.05460413917899132,
-0.009642391465604305,
-0.02548205293715,
-0.020656103268265724,
-0.04224538803100586,
-0.036076292395591736,
-0.006911380682140589,
-0.013851701281964779,
0.05216943472623825,
0.036669209599494934,
-0.02760758250951767,
0.03644407168030739,
0.022988518700003624,
-0.014161407016217709,
0.02666577324271202,
-0.011487848125398159,
-0.0167243629693985,
-0.03878852725028992,
0.019166013225913048,
-0.015435338951647282,
-0.045890238136053085,
0.010903977788984776,
-0.008017361164093018,
0.038744255900382996,
0.01245836354792118,
0.007428046315908432,
0.03108052909374237,
0.009913445450365543,
0.006406878121197224,
0.006506421137601137,
-0.0188175980001688,
-0.02352984808385372,
0.009391461499035358,
-0.022512732073664665,
-0.02260231412947178,
-0.023789338767528534,
0.05118432268500328,
-0.012154319323599339,
-0.04976075887680054,
-0.01486948598176241,
-0.0026007394772022963,
-0.04602992534637451,
0.024569500237703323,
-0.015469725243747234,
-0.017154468223452568,
0.03090534172952175,
-0.007240548729896545,
0.031750425696372986,
0.0037200567312538624,
-0.03945186361670494,
-0.026159187778830528,
0.015344183892011642,
0.006401465740054846,
0.011423425748944283,
-0.012316668406128883,
-0.008137015625834465,
0.016387440264225006,
0.01691143773496151,
0.04036025330424309,
-0.013864479027688503,
-0.01814023219048977,
-0.012684155255556107,
0.00805726833641529,
-0.002751939231529832,
0.01926954835653305,
0.046924542635679245,
-0.01273087877780199,
0.002236018655821681,
-0.009318134747445583,
0.007973631843924522,
-0.014031022787094116,
0.015168103389441967,
-0.023389795795083046,
-0.006040412001311779,
-0.016943996772170067,
-0.09124844521284103,
0.042878273874521255,
0.013230560347437859,
0.022051844745874405,
0.028656091541051865,
-0.006833973340690136,
0.018061254173517227,
-0.02896467223763466,
0.06298162788152695,
0.07261932641267776,
-0.05688627436757088,
-0.0027882561553269625,
0.02641421929001808,
0.004331823438405991,
-0.015202940441668034,
0.016171209514141083,
-0.0734100341796875,
-0.013315119780600071,
0.009712044149637222,
0.012774716131389141,
-0.004432278219610453,
-0.0539601631462574,
-0.041600797325372696,
0.014897503890097141,
0.00405835872516036,
0.011740484274923801,
0.019076358526945114,
0.011016828939318657,
-0.0036587619688361883,
-0.0032120102550834417,
0.010834462940692902,
-0.031927045434713364,
-0.02492470294237137,
-0.01797800324857235,
-0.019618570804595947,
0.02283499576151371,
-0.027118902653455734,
0.03035985305905342,
0.008226682431995869,
-0.024469805881381035,
0.01029424648731947,
-0.0683632418513298,
0.005790156312286854,
-0.01925477385520935,
0.047770943492650986,
-0.02511129528284073,
0.013894670642912388,
-0.019568413496017456,
0.007356624584645033,
-0.024448245763778687,
-0.0076402840204536915,
-0.003295024624094367,
-0.0015638561453670263,
0.028237098827958107,
0.034707874059677124,
0.05552774667739868,
0.00536993145942688,
-0.023300662636756897,
-0.054370537400245667,
0.06219423562288284,
-0.03904132544994354,
-0.05087488517165184,
-0.022230569273233414,
-0.07504698634147644,
0.00918545015156269,
0.03183114156126976,
0.00963203888386488,
-0.046406470239162445,
0.06618154793977737,
0.013995246030390263,
0.03226441517472267,
0.04754113778471947,
-0.020645370706915855,
0.01873166486620903,
-0.026177888736128807,
0.007058406714349985,
-0.05990906432271004,
0.029431134462356567,
0.015169653110206127,
-0.014772463589906693,
-0.013967200182378292,
0.005095347296446562,
-0.03153020143508911,
0.022141512483358383,
-0.0692528784275055,
-0.029312817379832268,
0.04595598578453064,
-0.03292670100927353,
0.010669310577213764,
-0.01827245205640793,
-0.0720641016960144,
0.015701020136475563,
0.05364666134119034,
-0.03195422515273094,
-0.014020967297255993,
-0.009426262229681015,
0.06901765614748001,
-0.026842599734663963,
0.04928554594516754,
-0.014262033626437187,
-0.030343450605869293,
0.08561915159225464,
0.03746337443590164,
0.008018485270440578,
0.0570821650326252,
-0.008005630224943161,
0.0130924042314291,
0.047429971396923065,
0.011665664613246918,
-0.001175028271973133,
0.027878036722540855,
0.003681075293570757,
-0.008532189764082432,
0.031673066318035126,
0.0017156688263639808,
0.010138897225260735,
-0.024992216378450394,
0.09212848544120789,
0.015405694954097271,
-0.03656775876879692,
-0.048134833574295044,
0.020376186817884445,
-0.02160974219441414,
-0.008613158948719501,
-0.014891804195940495,
-0.020165888592600822,
-0.029386060312390327,
0.05190139636397362,
-0.008470104075968266,
0.01640358939766884,
0.07009213417768478,
-0.013592394068837166,
0.008191213011741638,
0.00959744118154049,
0.07139907777309418,
0.0906844213604927,
0.04931049793958664,
-0.0023745661601424217,
0.059023868292570114,
-0.01575200818479061,
-0.03525583818554878,
0.022921204566955566,
-0.036186132580041885,
-0.012280174531042576,
-0.013792822137475014,
-0.013778062537312508,
0.04974483698606491,
-0.03252309560775757,
0.0397183932363987,
-0.034175727516412735,
0.008555280044674873,
-0.013355666771531105,
0.005369626451283693,
0.0242117028683424,
0.01769847609102726,
-0.010042794980108738,
0.01799848861992359,
-0.034805215895175934,
-0.004909625742584467,
0.033886268734931946,
-0.02580016851425171,
-0.03011447750031948,
0.04771820455789566,
-0.011111972853541374,
0.0015220448840409517,
-0.004696346819400787,
0.042679738253355026,
0.06656507402658463,
-0.035398684442043304,
-0.0004328388022258878,
-0.0016515192110091448,
0.04197118431329727,
0.013311326503753662,
0.02433145046234131,
-0.025118127465248108,
-0.01946059800684452,
0.01406288892030716,
-0.038407228887081146,
0.0020327684469521046,
0.0061348117887973785,
-0.029097026214003563,
0.049094606190919876,
-0.03144780173897743,
-0.01440512202680111,
0.02622181922197342,
-0.06323046237230301,
-0.03419049084186554,
-0.03556710109114647,
-0.030174631625413895,
-0.03729042783379555,
-0.0656973272562027,
-0.018683413043618202,
0.0033775728661566973,
-0.021823041141033173,
-0.026453375816345215,
-0.014157252386212349,
-0.005907997954636812,
-0.015365072526037693,
0.00964116957038641,
-0.053698908537626266,
-0.006259991321712732,
-0.008351988159120083,
0.0023554936051368713,
0.004235983360558748,
0.03266400843858719,
0.04649791494011879,
0.005607005674391985,
-0.00020944298012182117,
-0.027259210124611855,
0.031625181436538696,
0.040301255881786346,
0.019819915294647217,
0.010507882572710514,
-0.0689702183008194,
0.004251475445926189,
-0.018370382487773895,
-0.0012961507309228182,
-0.05934320017695427,
0.033501558005809784,
0.0029153842478990555,
-0.02495952881872654,
0.06403188407421112,
-0.019253559410572052,
0.009141698479652405,
-0.018183907493948936,
-0.029865877702832222,
0.03349888697266579,
0.021923430263996124,
0.031286198645830154,
-0.024513550102710724,
0.09376871585845947,
0.062365662306547165,
-0.00006069200753699988,
-0.03611522912979126,
-0.04546124115586281,
0.001588502898812294,
0.0007327229250222445,
-0.05837741121649742,
-0.02964506670832634,
-0.059509169310331345,
-0.08534543961286545,
-0.059620119631290436,
0.006762620061635971,
-0.021403731778264046,
-0.024166416376829147,
0.0023046117275953293,
0.02021198533475399,
-0.023729531094431877,
0.012702150270342827,
-0.03501852974295616,
0.025787493214011192,
-0.01875244826078415,
-0.030990581959486008,
-0.018754107877612114,
0.03485126793384552,
-0.011335420422255993,
0.005350487306714058,
0.032816994935274124,
-0.07094550132751465,
0.000509713077917695,
-0.033762961626052856,
0.01358010619878769,
0.04381877928972244,
0.0239527840167284,
-0.013753560371696949
] | [
-0.08172987401485443,
-0.032196931540966034,
0.008768202736973763,
-0.021050387993454933,
0.08108749240636826,
-0.0614590048789978,
-0.0875501036643982,
0.01125597395002842,
-0.010868930257856846,
-0.001436440390534699,
0.05134213715791702,
-0.014282052405178547,
-0.003850000211969018,
0.0016060739289969206,
0.055134911090135574,
0.009560530073940754,
-0.03487660363316536,
-0.0670703798532486,
-0.000765839999075979,
0.03612847253680229,
-0.006681276019662619,
-0.03214681148529053,
-0.04598980024456978,
-0.04917290061712265,
0.042184241116046906,
0.05752316117286682,
0.006121978163719177,
-0.045922379940748215,
-0.030401278287172318,
-0.17717032134532928,
0.005605306942015886,
0.017008833587169647,
0.017101747915148735,
0.008422955870628357,
0.03431505337357521,
0.03284328430891037,
0.04075384885072708,
0.008659020066261292,
0.004981795325875282,
0.01782172918319702,
0.010522423312067986,
-0.0003887771745212376,
-0.06758134067058563,
-0.02366049773991108,
0.01842697523534298,
0.030710885301232338,
-0.020006805658340454,
-0.030453365296125412,
-0.005426096264272928,
0.028647538274526596,
-0.04459824785590172,
0.013974539004266262,
0.007370481267571449,
-0.011601587757468224,
0.00891343504190445,
0.019122308120131493,
0.03991588205099106,
0.06805647909641266,
0.022123275324702263,
0.03930092602968216,
0.0032206231262534857,
-0.01964973285794258,
-0.160113126039505,
0.08344216644763947,
0.004454599693417549,
0.01372288353741169,
-0.05341750755906105,
-0.026262478902935982,
-0.002468990394845605,
0.046761855483055115,
0.005317593924701214,
-0.008205286227166653,
-0.048209164291620255,
0.06447701156139374,
0.0070114703848958015,
-0.005171406082808971,
0.011427110061049461,
0.022926928475499153,
0.03740794584155083,
-0.03461897373199463,
-0.03385792300105095,
0.042930614203214645,
-0.019470471888780594,
-0.009522621519863605,
-0.021284567192196846,
0.051752522587776184,
0.010300288908183575,
0.06582451611757278,
0.010476886294782162,
0.04572461172938347,
0.019525960087776184,
0.015983866527676582,
0.06309056282043457,
0.02860186994075775,
-0.10783973336219788,
-0.005294515285640955,
0.014044796116650105,
0.0005989230703562498,
0.02090146392583847,
0.35176655650138855,
0.0025405448395758867,
0.006434156559407711,
0.007013770751655102,
0.054387617856264114,
0.006304020527750254,
-0.014759036712348461,
0.01343363244086504,
-0.0703335627913475,
0.01416586060076952,
-0.029908306896686554,
-0.010792536661028862,
-0.006512881256639957,
0.0850808247923851,
-0.13242235779762268,
0.03801428899168968,
-0.004899974912405014,
0.02548348903656006,
0.02802228182554245,
-0.0011976894456893206,
0.022071780636906624,
0.018554292619228363,
-0.006443350575864315,
0.07115914672613144,
-0.010117377154529095,
0.021735453978180885,
0.0564214289188385,
0.03155757486820221,
0.02316085249185562,
0.035164814442396164,
-0.002176152542233467,
0.0398368313908577,
0.0007598625379614532,
-0.07981210947036743,
0.014546062797307968,
0.006626569200307131,
0.01881995238363743,
0.016898777335882187,
-0.04032481089234352,
-0.010597809217870235,
-0.003713139332830906,
-0.05432910472154617,
-0.03274994343519211,
0.030689718201756477,
0.012331834062933922,
-0.06588498502969742,
0.10674390941858292,
0.02007891610264778,
0.0027096939738839865,
-0.027859633788466454,
-0.046911656856536865,
-0.03236420080065727,
0.0667835921049118,
0.02299901284277439,
-0.050975698977708817,
0.014113102108240128,
0.007607140112668276,
0.07324593514204025,
-0.023164846003055573,
-0.08813481032848358,
0.020711638033390045,
-0.026574622839689255,
-0.045741502195596695,
-0.032107312232255936,
0.07185064256191254,
0.03749505802989006,
-0.11723113805055618,
-0.008292397484183311,
0.03514568880200386,
0.05743132531642914,
-0.028348730877041817,
0.007091592065989971,
0.02147175557911396,
-0.011802571825683117,
-0.0641842633485794,
0.09031825512647629,
-0.0036580259911715984,
0.0065695722587406635,
-0.02892439439892769,
0.05865587666630745,
0.03132955729961395,
-0.027237985283136368,
-0.012829783372581005,
-0.0544908344745636,
0.02623745985329151,
-0.04362381622195244,
-0.09390523284673691,
-0.07722965627908707,
0.048888687044382095,
-0.04305199533700943,
-0.005519791506230831,
-0.013911162503063679,
-0.06106574088335037,
-0.05084388703107834,
0.10150572657585144,
-0.025776661932468414,
-0.028387345373630524,
-0.0372232161462307,
0.022090882062911987,
-0.018860241398215294,
-0.024557581171393394,
0.006878145504742861,
0.003222953760996461,
0.0015658603515475988,
0.021172739565372467,
-0.06171097233891487,
0.023457059636712074,
0.08604662865400314,
-0.05665212497115135,
0.051067862659692764,
0.03439823538064957,
-0.03569020703434944,
0.017701439559459686,
0.008032187819480896,
0.0010069228010252118,
-0.027988115325570107,
-0.0036508680786937475,
-0.003762834006920457,
-0.021435005590319633,
0.011333064176142216,
0.07201129198074341,
-0.022908970713615417,
-0.02096390351653099,
-0.019842306151986122,
-0.34474432468414307,
-0.023009594529867172,
-0.009888401255011559,
-0.01878393068909645,
0.044851966202259064,
-0.02801990695297718,
0.026302484795451164,
-0.032792285084724426,
0.0416780449450016,
0.03540411591529846,
0.10151796042919159,
0.016705598682165146,
-0.005659859627485275,
-0.1063699796795845,
0.000034181572118541226,
0.01608547940850258,
0.0012728279689326882,
-0.015946419909596443,
-0.03241482004523277,
-0.01985964924097061,
0.0023018678184598684,
-0.08621113747358322,
-0.03182763233780861,
-0.054454147815704346,
0.002080231672152877,
-0.005263769533485174,
0.10566908866167068,
0.033996161073446274,
0.010109001770615578,
-0.05395514518022537,
0.042075756937265396,
0.008383953012526035,
-0.007883547805249691,
-0.0955834835767746,
-0.009668645448982716,
-0.025990720838308334,
0.0009714930783957243,
0.011647801846265793,
-0.028379712253808975,
-0.03422859311103821,
-0.01241474412381649,
0.007340129930526018,
-0.025791220366954803,
-0.05670491233468056,
-0.024546345695853233,
0.02100076898932457,
-0.009866130538284779,
0.016110524535179138,
-0.0020119468681514263,
0.07460277527570724,
0.02462996356189251,
0.01729741506278515,
0.018663574010133743,
0.011917176656425,
0.022824272513389587,
-0.00841514952480793,
-0.04350275173783302,
0.006799785420298576,
0.0524916797876358,
-0.0007388395606540143,
0.015634313225746155,
0.025139451026916504,
0.010342475026845932,
-0.06795452535152435,
0.01605456881225109,
0.0051819090731441975,
-0.00029484034166671336,
-0.016013173386454582,
0.002926295856013894,
-0.02569202147424221,
-0.024633031338453293,
0.09412702172994614,
-0.0423763282597065,
0.048306144773960114,
0.016294868662953377,
0.0189999807626009,
-0.03593534603714943,
0.010070684365928173,
0.043323054909706116,
-0.007817979902029037,
0.023236267268657684,
-0.016353299841284752,
0.06558182090520859,
-0.014456512406468391,
-0.03549627214670181,
0.06038390100002289,
0.00925174355506897,
-0.05038672685623169,
0.05547577515244484,
0.017414197325706482,
-0.011299272999167442,
-0.003277383279055357,
-0.011663311161100864,
-0.06698793172836304,
0.0815335214138031,
0.012259997427463531,
-0.25086110830307007,
0.050442054867744446,
0.06276123970746994,
0.037048544734716415,
0.000013603179468191229,
-0.02250327169895172,
0.006792196072638035,
-0.02949010394513607,
-0.014399471692740917,
0.027613744139671326,
0.022971319034695625,
0.08110141009092331,
-0.03410279378294945,
-0.04152444750070572,
-0.01004477683454752,
0.006968971341848373,
0.04397813603281975,
-0.01139137800782919,
-0.013164233416318893,
-0.022320687770843506,
0.03354603424668312,
-0.04247889295220375,
0.16680540144443512,
0.059761010110378265,
-0.049858175218105316,
0.014930126257240772,
-0.028935600072145462,
0.019580097869038582,
0.049254175275564194,
-0.024206306785345078,
-0.03412969410419464,
0.03090696595609188,
0.0029926516581326723,
0.01783474162220955,
0.01283094473183155,
-0.02209075167775154,
-0.014621801674365997,
0.07218638062477112,
0.016288673505187035,
-0.006600133143365383,
-0.022553831338882446,
0.029761966317892075,
-0.0508684404194355,
0.034959740936756134,
0.10297870635986328,
-0.04508564993739128,
-0.008150509558618069,
-0.028764154762029648,
-0.09282100945711136,
-0.01404586061835289,
-0.043724533170461655,
-0.03635204955935478,
-0.03246762976050377,
-0.018516186624765396,
0.015422441996634007,
0.09356734156608582,
0.039828747510910034,
-0.035861797630786896,
0.031497806310653687,
0.020940599963068962,
0.02040208876132965,
-0.04393605887889862,
0.09700163453817368,
-0.012224497273564339,
0.024734513834118843
] | [
0.03595209866762161,
0.04483531787991524,
0.0067536295391619205,
0.027657104656100273,
0.004489814396947622,
-0.0037359639536589384,
-0.04908517375588417,
0.00023402996885124594,
-0.006898364517837763,
0.010104955174028873,
-0.001983958762139082,
0.009983298368752003,
0.028363117948174477,
-0.058683622628450394,
-0.024602185934782028,
-0.00510008679702878,
-0.029001260176301003,
0.0006519729504361749,
0.04257148131728172,
0.009720715694129467,
-0.03987471014261246,
0.013782484456896782,
0.026292558759450912,
0.008058715611696243,
0.010065113194286823,
0.016347195953130722,
-0.06690600514411926,
0.0018039729911834002,
0.022233856841921806,
-0.10325261950492859,
-0.0089424392208457,
0.002760383766144514,
-0.012988069094717503,
-0.016578124836087227,
0.016162173822522163,
0.014940689317882061,
-0.014636046253144741,
0.03138822689652443,
0.026949550956487656,
0.03676276654005051,
0.006654181517660618,
0.002061474835500121,
0.01651724800467491,
0.013796772807836533,
0.0074507081881165504,
-0.03600483387708664,
-0.03014088235795498,
-0.013796941377222538,
-0.039860982447862625,
0.009847230277955532,
-0.027243316173553467,
-0.0066801984794437885,
0.006893765181303024,
-0.03043820708990097,
0.015130436979234219,
-0.00950520671904087,
-0.016419371590018272,
-0.036600712686777115,
0.021223699674010277,
0.0030357425566762686,
0.018865209072828293,
-0.027555879205465317,
-0.06493859738111496,
-0.041672538965940475,
-0.02373255230486393,
-0.02987751178443432,
0.015652116388082504,
0.03556007146835327,
0.009585659019649029,
0.011687207035720348,
-0.02708931267261505,
0.029280364513397217,
-0.04974335432052612,
-0.04909185320138931,
-0.05078699439764023,
0.02069234475493431,
0.033483535051345825,
-0.015211005695164204,
-0.016478097066283226,
-0.0022939180489629507,
-0.025278957560658455,
-0.0031366695184260607,
-0.009685255587100983,
-0.022102421149611473,
-0.07657631486654282,
0.0039542908780276775,
0.025125987827777863,
-0.018820205703377724,
0.012313537299633026,
-0.008360612206161022,
-0.009565962478518486,
-0.006755499169230461,
0.024358626455068588,
0.014369350858032703,
-0.11366567760705948,
-0.002177145564928651,
0.05294124037027359,
-0.0014293063431978226,
0.04020068421959877,
0.8163660764694214,
0.018468933179974556,
-0.01871507614850998,
-0.02200385369360447,
0.011581799946725368,
-0.022463472560048103,
-0.01869341731071472,
-0.00956264603883028,
-0.01362226065248251,
-0.0126240449026227,
-0.007615363225340843,
0.008725891821086407,
0.030556218698620796,
-0.012348484247922897,
0.013320229016244411,
0.011883347295224667,
0.014105075038969517,
0.01089880708605051,
-0.006271800957620144,
0.01740122213959694,
0.02538175880908966,
0.04066445678472519,
0.025528036057949066,
0.02433129772543907,
0.021248959004878998,
-0.014932945370674133,
-0.1540323942899704,
0.03255945444107056,
-5.824413612535166e-33,
0.0441398099064827,
-0.013990008272230625,
0.02725207433104515,
-0.02347768098115921,
0.03133946284651756,
0.03742113336920738,
-0.03715071082115173,
-0.06390329450368881,
-0.011548593640327454,
-0.03469869866967201,
-0.018156789243221283,
0.007379962597042322,
-0.011562542989850044,
-0.03761129081249237,
0.01856345310807228,
0.004312023986130953,
0.0024857521057128906,
0.04290977492928505,
0.0267574954777956,
0.018597882241010666,
0.017101863399147987,
-0.006424352061003447,
-0.011367528699338436,
0.05208077281713486,
0.02864285744726658,
-0.004681822378188372,
0.0216799546033144,
-0.0067423200234770775,
-0.030952047556638718,
-0.053932882845401764,
-0.027420522645115852,
0.022818082943558693,
0.016203992068767548,
-0.03864366188645363,
0.009860489517450333,
-0.05874462425708771,
-0.038490187376737595,
0.0030944894533604383,
-0.01672300137579441,
-0.040216367691755295,
-0.034346386790275574,
0.006766598206013441,
-0.028352826833724976,
-0.05007478967308998,
0.00967965368181467,
0.01598271355032921,
0.0012424654560163617,
0.034508347511291504,
-0.00008355177124030888,
0.004671176429837942,
-0.011926538310945034,
0.013832037337124348,
0.023318517953157425,
-0.020682787522673607,
-0.04062452167272568,
0.017013175413012505,
0.027529170736670494,
-0.02040047012269497,
0.022378021851181984,
0.021560560911893845,
0.002873234450817108,
0.00741591164842248,
0.015531935729086399,
-0.02580653503537178,
0.024281077086925507,
0.012364278547465801,
0.010197649709880352,
0.009179655462503433,
0.024913405999541283,
0.05259270593523979,
-0.04977963864803314,
0.030096201226115227,
0.003096115542575717,
-0.02844713069498539,
0.05741391330957413,
-0.019227411597967148,
0.014840196818113327,
0.007560941856354475,
0.043457992374897,
0.03726859763264656,
0.024388369172811508,
-0.031824663281440735,
0.01022318284958601,
-0.019620824605226517,
0.012140464968979359,
-0.02285376936197281,
-0.009043637663125992,
0.011160547845065594,
0.025365443900227547,
0.011145472526550293,
0.029610082507133484,
0.025266671553254128,
-0.020732395350933075,
-0.00824188906699419,
-0.011114570312201977,
5.673246875729343e-33,
0.013464601710438728,
0.032633863389492035,
-0.017467297613620758,
0.01965893991291523,
0.04217565432190895,
-0.039230164140462875,
-0.04346442595124245,
0.04787825420498848,
-0.01638481765985489,
0.024568533524870872,
0.001875789719633758,
-0.018881388008594513,
-0.032499540597200394,
0.03844691812992096,
0.058077674359083176,
0.011268550530076027,
0.054556705057621,
-0.050221845507621765,
-0.02442627213895321,
0.011334389448165894,
-0.022479500621557236,
0.00846569798886776,
-0.02693539671599865,
0.005129451863467693,
0.08989282697439194,
-0.000032775486033642665,
0.027401337400078773,
0.021871622651815414,
-0.00355440191924572,
0.004685352556407452,
-0.009601765312254429,
-0.03972387686371803,
0.0003452504170127213,
-0.009049270302057266,
-0.021757502108812332,
0.03145839646458626,
-0.004267536569386721,
-0.005063166376203299,
0.031038502231240273,
0.013464747928082943,
-0.02501165308058262,
0.01650140807032585,
-0.009115241467952728,
0.03437994793057442,
0.020527398213744164,
0.04371027648448944,
0.045071184635162354,
0.044780999422073364,
0.007715775165706873,
-0.016470255330204964,
0.006867486517876387,
0.0017395825125277042,
-0.001448763650842011,
0.012445111759006977,
0.026017172262072563,
-0.046395402401685715,
-0.011065234430134296,
0.0402996800839901,
-0.05496915802359581,
0.003117213025689125,
-0.04785335436463356,
-0.011719146743416786,
-0.004628135357052088,
0.014066820964217186,
-0.037549182772636414,
-0.05214565992355347,
-0.024436725303530693,
-0.0100628100335598,
-0.025670038536190987,
0.008898521773517132,
0.014490023255348206,
0.00046411363291554153,
-0.016236985102295876,
-0.004490384366363287,
0.021244248375296593,
-0.0006158883334137499,
-0.040343526750802994,
-0.009539108723402023,
-0.06013479083776474,
0.019591080024838448,
-0.02577335573732853,
0.049466755241155624,
0.0010905994568020105,
0.014953467063605785,
0.007557850331068039,
0.01859770528972149,
-0.029404262080788612,
0.0032152177300304174,
0.04511900991201401,
-0.036937590688467026,
0.004951221868395805,
-0.03884756565093994,
-0.03811931237578392,
0.035233188420534134,
-0.021424397826194763,
-1.197512844441917e-8,
0.009134326130151749,
0.02421002835035324,
-0.021146995946764946,
0.021780315786600113,
0.02298749051988125,
0.028507834300398827,
0.019215364009141922,
-0.010445029474794865,
0.0006469299551099539,
0.011265099048614502,
0.05841033160686493,
-0.018499936908483505,
0.014819776639342308,
-0.006921130698174238,
0.016743818297982216,
-0.02044634148478508,
-0.020130909979343414,
0.02730546146631241,
0.014183390885591507,
-0.014744680374860764,
0.015791747719049454,
0.00392573419958353,
0.03260534256696701,
-0.013870801776647568,
-0.007521596737205982,
-0.03208570554852486,
0.02189660258591175,
-0.0704740583896637,
0.017768733203411102,
-0.042217325419187546,
0.04600004106760025,
-0.031087590381503105,
-0.005734497681260109,
-0.02857428416609764,
-0.010382598266005516,
-0.028534358367323875,
0.01602949947118759,
0.031263019889593124,
0.0378694087266922,
0.04580158367753029,
-0.017929699271917343,
0.017645714804530144,
-0.01537509448826313,
0.0019445001380518079,
-0.06455783545970917,
0.011360728181898594,
-0.05876466631889343,
-0.04639148712158203,
0.04430721700191498,
-0.05408453568816185,
0.0053065200336277485,
-0.018245426937937737,
0.00807714182883501,
0.024610577151179314,
0.05397671088576317,
0.02652886137366295,
0.009328389540314674,
-0.0015883560990914702,
-0.023246150463819504,
-0.041672997176647186,
0.002737701404839754,
-0.01713736541569233,
-0.012412648648023605,
-0.02112792618572712
] | r-scraping-the-release-dates-of-github-projects | https://markhneedham.com/blog/2015/06/23/r-scraping-the-release-dates-of-github-projects |
false | 2015-06-15 22:53:33 | Northwind: Finding direct/transitive Reports in SQL and Neo4j's Cypher | [
"neo4j"
] | [
"neo4j"
] | Every few months we run a http://www.meetup.com/graphdb-london/events/222398828/[relational to graph meetup] at the Neo London office where we go through how to take your data from a relational database and into the graph.
We use the https://code.google.com/p/northwindextended/downloads/detail?name=northwind.postgre.sql[Northwind dataset] which often comes as a demo dataset on relational databases and come up with some queries which seem graph in nature.
My favourite query is one which finds out how employees are organised and who reports to whom. I thought it'd be quite interesting to see what it would look like in Postgres SQL as well, just for fun.
We'll start off by getting a list of employees and the person they report to:
[source,sql]
----
SELECT e."EmployeeID", e."ReportsTo"
FROM employees AS e
WHERE e."ReportsTo" is not null;
EmployeeID | ReportsTo
------------+-----------
1 | 2
3 | 2
4 | 2
5 | 2
6 | 5
7 | 5
8 | 2
9 | 5
(8 rows)
----
In cypher we'd do this:
[source,cypher]
----
MATCH (e:Employee)<-[:REPORTS_TO]-(sub)
RETURN sub.EmployeeID, e.EmployeeID
+-------------------------------+
| sub.EmployeeID | e.EmployeeID |
+-------------------------------+
| "4" | "2" |
| "5" | "2" |
| "1" | "2" |
| "3" | "2" |
| "8" | "2" |
| "9" | "5" |
| "6" | "5" |
| "7" | "5" |
+-------------------------------+
8 rows
----
Next let's find the big boss who doesn't report to anyone. First in SQL:
[source,sql]
----
SELECT e."EmployeeID" AS bigBoss
FROM employees AS e
WHERE e."ReportsTo" is null
bigboss
---------
2
(1 row)
----
And now cypher:
[source,cypher]
----
MATCH (e:Employee)
WHERE NOT (e)-[:REPORTS_TO]->()
RETURN e.EmployeeID AS bigBoss
+---------+
| bigBoss |
+---------+
| "2" |
+---------+
1 row
----
We still don't need to join anything so the query isn't that interesting yet. Let's bring in some more properties from the manager record so we have to self join on the employees table:
[source,sql]
----
SELECT e."FirstName", e."LastName", e."Title", manager."FirstName", manager."LastName", manager."Title"
FROM employees AS e
JOIN employees AS manager ON e."ReportsTo" = manager."EmployeeID"
WHERE e."ReportsTo" is not null
FirstName | LastName | Title | FirstName | LastName | Title
-----------+-----------+--------------------------+-----------+----------+-----------------------
Nancy | Davolio | Sales Representative | Andrew | Fuller | Vice President, Sales
Janet | Leverling | Sales Representative | Andrew | Fuller | Vice President, Sales
Margaret | Peacock | Sales Representative | Andrew | Fuller | Vice President, Sales
Steven | Buchanan | Sales Manager | Andrew | Fuller | Vice President, Sales
Michael | Suyama | Sales Representative | Steven | Buchanan | Sales Manager
Robert | King | Sales Representative | Steven | Buchanan | Sales Manager
Laura | Callahan | Inside Sales Coordinator | Andrew | Fuller | Vice President, Sales
Anne | Dodsworth | Sales Representative | Steven | Buchanan | Sales Manager
(8 rows)
----
[source,cypher]
----
MATCH (e:Employee)<-[:REPORTS_TO]-(sub)
RETURN sub.FirstName, sub.LastName, sub.Title, e.FirstName, e.LastName, e.Title
+----------------------------------------------------------------------------------------------------------------+
| sub.FirstName | sub.LastName | sub.Title | e.FirstName | e.LastName | e.Title |
+----------------------------------------------------------------------------------------------------------------+
| "Margaret" | "Peacock" | "Sales Representative" | "Andrew" | "Fuller" | "Vice President, Sales" |
| "Steven" | "Buchanan" | "Sales Manager" | "Andrew" | "Fuller" | "Vice President, Sales" |
| "Nancy" | "Davolio" | "Sales Representative" | "Andrew" | "Fuller" | "Vice President, Sales" |
| "Janet" | "Leverling" | "Sales Representative" | "Andrew" | "Fuller" | "Vice President, Sales" |
| "Laura" | "Callahan" | "Inside Sales Coordinator" | "Andrew" | "Fuller" | "Vice President, Sales" |
| "Anne" | "Dodsworth" | "Sales Representative" | "Steven" | "Buchanan" | "Sales Manager" |
| "Michael" | "Suyama" | "Sales Representative" | "Steven" | "Buchanan" | "Sales Manager" |
| "Robert" | "King" | "Sales Representative" | "Steven" | "Buchanan" | "Sales Manager" |
+----------------------------------------------------------------------------------------------------------------+
8 rows
----
Now let's see how many direct reports each manager has:
[source,sql]
----
SELECT manager."EmployeeID" AS manager, COUNT(e."EmployeeID") AS reports
FROM employees AS manager
LEFT JOIN employees AS e ON e."ReportsTo" = manager."EmployeeID"
GROUP BY manager
ORDER BY reports DESC;
manager | reports
---------+---------
2 | 5
5 | 3
1 | 0
3 | 0
4 | 0
9 | 0
6 | 0
7 | 0
8 | 0
(9 rows)
----
[source,cypher]
----
MATCH (e:Employee)
OPTIONAL MATCH (e)<-[rel:REPORTS_TO]-(report)
RETURN e.EmployeeID AS employee, COUNT(rel) AS reports
+--------------------+
| employee | reports |
+--------------------+
| "2" | 5 |
| "5" | 3 |
| "8" | 0 |
| "7" | 0 |
| "1" | 0 |
| "4" | 0 |
| "6" | 0 |
| "9" | 0 |
| "3" | 0 |
+--------------------+
9 rows
----
Things start to get more interesting if we find the transitive reporting relationships that exist. I'm not an expert at Postgres but one way to achieve this is by writing http://www.postgresql.org/docs/current/static/queries-with.html[a recursive WITH query] like so:
[source,sql]
----
WITH RECURSIVE recursive_employees("EmployeeID", "ReportsTo") AS (
SELECT e."EmployeeID", e."ReportsTo"
FROM employees e
UNION ALL
SELECT e."EmployeeID", e."ReportsTo"
FROM employees e, recursive_employees re
WHERE e."EmployeeID" = re."ReportsTo"
)
SELECT re."ReportsTo", COUNT(*) AS count
FROM recursive_employees AS re
WHERE re."ReportsTo" IS NOT NULL
GROUP BY re."ReportsTo";
ReportsTo | count
-----------+-------
2 | 8
5 | 3
(2 rows)
----
If there's a simpler way let me know in the comments.
In cypher we only need to add one character, '*', after the 'REPORTS_TO' relationship to get it to recurse as far as it can. We'll also remove the 'OPTIONAL MATCH' so that we only get back people who have people reporting to them:
[source,cypher]
----
MATCH (e:Employee)<-[rel:REPORTS_TO*]-(report)
RETURN e.EmployeeID AS employee, COUNT(rel) AS reports
+--------------------+
| employee | reports |
+--------------------+
| "2" | 8 |
| "5" | 3 |
+--------------------+
2 rows
----
Now I need to find some relational datasets with more complicated queries to play around with. If you have any ideas do let me know. | null | null | [
0.008687257766723633,
0.0005706069059669971,
0.0057924725115299225,
0.05859226733446121,
0.0982661321759224,
0.0013223254354670644,
0.01971835270524025,
0.03726103529334068,
0.030746156349778175,
-0.023429714143276215,
-0.01664808765053749,
-0.010852987878024578,
-0.08419855684041977,
0.016013728454709053,
0.0072452896274626255,
0.07138056308031082,
0.05574759095907211,
0.024575602263212204,
0.0329403318464756,
-0.02242741920053959,
0.01253308355808258,
0.029827876016497612,
-0.002712959423661232,
0.037013765424489975,
0.0516984760761261,
0.014401374384760857,
0.009381688199937344,
0.0041715349070727825,
-0.046786729246377945,
0.012730835005640984,
0.046799518167972565,
-0.005152978003025055,
0.01902030035853386,
-0.018308361992239952,
0.036610525101423264,
0.007176041137427092,
-0.03482363745570183,
0.018610235303640366,
0.009668996557593346,
-0.0017163465963676572,
-0.06657177209854126,
0.038382355123758316,
-0.008766069076955318,
0.040553800761699677,
-0.016332410275936127,
0.019436420872807503,
-0.05509611964225769,
0.05169076845049858,
0.008953241631388664,
0.019266942515969276,
-0.08117206394672394,
0.03219114616513252,
-0.005619213450700045,
0.014408932998776436,
-0.005292772781103849,
0.04128709062933922,
0.01960390992462635,
-0.053318142890930176,
0.012301654554903507,
-0.03153020888566971,
0.024983052164316177,
-0.0013611295726150274,
-0.003337880363687873,
0.012917613610625267,
0.014792980626225471,
-0.015562443062663078,
-0.01240402553230524,
0.05000863969326019,
-0.027519213035702705,
0.01590130478143692,
-0.004716646391898394,
0.010739656165242195,
-0.019774895161390305,
0.004656082950532436,
-0.004024958703666925,
-0.03268894553184509,
0.004922241438180208,
0.04002737998962402,
0.036058396100997925,
0.05431455001235008,
-0.02339715138077736,
0.024082668125629425,
-0.0030151603277772665,
0.026019474491477013,
0.004593354184180498,
-0.03771704435348511,
-0.03835776820778847,
-0.04444313794374466,
-0.0576147735118866,
0.02177324891090393,
-0.018994808197021484,
-0.07364160567522049,
-0.0008039204403758049,
0.008487637154757977,
-0.04327773675322533,
0.013444735668599606,
0.03960443660616875,
0.004447794985026121,
0.023330772295594215,
-0.039333898574113846,
-0.013043232262134552,
-0.046396609395742416,
0.015990760177373886,
0.024588579311966896,
-0.0808921679854393,
-0.018201351165771484,
-0.03590143844485283,
-0.018655680119991302,
0.00009137234883382916,
-0.004873553290963173,
-0.03499874100089073,
-0.0177523922175169,
-0.014202420599758625,
0.014370077289640903,
-0.07520099729299545,
0.07826261222362518,
0.026520850136876106,
-0.024670064449310303,
0.0060913763009011745,
-0.012372318655252457,
0.04655107483267784,
-0.0008223370532505214,
-0.005776888690888882,
0.05920979380607605,
-0.03203772380948067,
0.029925137758255005,
-0.016090068966150284,
0.05426856875419617,
-0.025769954547286034,
-0.07063541561365128,
-0.013681797310709953,
0.054016873240470886,
-0.006876650266349316,
0.014486593194305897,
-0.005071013234555721,
-0.054725632071495056,
-0.023033039644360542,
0.022600816562771797,
0.04122137278318405,
0.01797238551080227,
0.026822593063116074,
-0.06518319994211197,
0.02935875952243805,
-0.014468984678387642,
0.033234525471925735,
0.005545522086322308,
-0.015575559809803963,
-0.03547074645757675,
-0.033874768763780594,
-0.0012844563461840153,
0.020984051749110222,
0.035631969571113586,
0.05530209094285965,
-0.03171487897634506,
0.01853916607797146,
0.10626395791769028,
0.046910662204027176,
-0.014369362965226173,
-0.0040967874228954315,
-0.008923658169806004,
0.04910685122013092,
0.021630393341183662,
-0.0008266591466963291,
0.05673982575535774,
0.0018184828804805875,
-0.013005100190639496,
-0.006949025206267834,
0.03391488268971443,
-0.005052900407463312,
0.028746532276272774,
-0.04508005827665329,
-0.0670134574174881,
0.061535730957984924,
-0.03342023119330406,
-0.03179653361439705,
0.047143805772066116,
0.07455531507730484,
0.03573412448167801,
0.02776619978249073,
-0.009363969787955284,
-0.0777188390493393,
0.045113056898117065,
-0.0024252128787338734,
0.009518946520984173,
0.01754273846745491,
0.001133105019107461,
0.07206203043460846,
0.026623675599694252,
-0.014091729186475277,
0.056889861822128296,
-0.08883657306432724,
-0.08087852597236633,
0.0007902666693553329,
-0.01775086298584938,
0.0336022824048996,
-0.046690426766872406,
0.032618820667266846,
0.0604046955704689,
0.003093452425673604,
0.030793510377407074,
-0.019413961097598076,
-0.004183654207736254,
0.034672364592552185,
-0.04204963147640228,
-0.05310685187578201,
0.05293964222073555,
0.021294008940458298,
-0.02362668514251709,
-0.052776653319597244,
0.006888366304337978,
-0.01939457654953003,
-0.017293715849518776,
0.020863106474280357,
-0.030280543491244316,
0.05477234348654747,
0.0246120598167181,
0.026020875200629234,
0.0009217588813044131,
0.030090894550085068,
-0.02862866409122944,
0.053437165915966034,
0.03476075455546379,
-0.029472803696990013,
-0.014526069164276123,
0.0032751283142715693,
0.12629419565200806,
0.0684267207980156,
0.005152852740138769,
-0.0588264986872673,
0.049230147153139114,
0.04036666452884674,
-0.02070079930126667,
0.05029677227139473,
-0.037980880588293076,
0.01231413334608078,
-0.009933218359947205,
-0.021577222272753716,
-0.03618244454264641,
0.03237040340900421,
-0.04786635562777519,
0.0057969545014202595,
0.03812910243868828,
-0.025887534022331238,
0.05724684149026871,
0.020537646487355232,
-0.03604248911142349,
-0.007419973146170378,
-0.04217615723609924,
-0.03379948064684868,
0.006785755045711994,
0.017527947202324867,
-0.007331143599003553,
0.023561032488942146,
-0.026060229167342186,
-0.00873664952814579,
-0.024627769365906715,
-0.012596813961863518,
0.04214250668883324,
0.04557304084300995,
0.0646328553557396,
-0.010289871133863926,
0.018928885459899902,
-0.03592010587453842,
0.013272072188556194,
-0.010706881992518902,
-0.045351848006248474,
-0.03147248551249504,
-0.031122388318181038,
0.010443453676998615,
0.0036193912383168936,
0.03662007674574852,
0.0033978356514126062,
0.014419185929000378,
0.011953388340771198,
0.008188091218471527,
-0.016114763915538788,
0.009228760376572609,
-0.004972049500793219,
-0.0108021330088377,
-0.040960051119327545,
-0.018498027697205544,
0.05430445447564125,
-0.061300717294216156,
-0.03053034283220768,
-0.007769016083329916,
-0.06197396293282509,
0.05354531481862068,
-0.06880251318216324,
-0.03077545575797558,
0.011429986916482449,
0.04076385498046875,
0.04187354817986488,
-0.001064096693880856,
-0.021662473678588867,
0.08827348053455353,
0.019202683120965958,
0.016585253179073334,
0.014677070081233978,
0.010408546775579453,
0.05680479854345322,
0.004248793236911297,
0.0245388001203537,
0.07335583865642548,
-0.03714708238840103,
-0.009324690327048302,
-0.048158057034015656,
0.019482731819152832,
-0.03642489016056061,
-0.27772846817970276,
0.02741096355021,
-0.030871806666254997,
-0.0477442592382431,
0.007033249828964472,
-0.060201697051525116,
0.02132280543446541,
-0.02222510799765587,
-0.024517063051462173,
-0.0036761814262717962,
-0.001941298134624958,
-0.03607930988073349,
-0.01849989965558052,
0.03979410603642464,
0.023062391206622124,
0.042023126035928726,
-0.0009725838317535818,
-0.04612060636281967,
0.016530565917491913,
0.036691874265670776,
0.010466310195624828,
-0.05537092313170433,
-0.019937612116336823,
0.030978543683886528,
0.03894401341676712,
0.04992453381419182,
-0.08402250707149506,
-0.0014678743900731206,
-0.05754593759775162,
-0.014041979797184467,
0.023609584197402,
-0.012648149393498898,
-0.015579544939100742,
-0.008958784863352776,
-0.025275232270359993,
-0.029878783971071243,
0.04740862548351288,
0.007818609476089478,
0.01185284648090601,
0.0024403000716120005,
-0.03800114616751671,
-0.03507089987397194,
0.00025631822063587606,
0.007268516346812248,
0.0901457816362381,
0.01598445698618889,
-0.06976229697465897,
0.014367558993399143,
-0.007855846546590328,
0.052063558250665665,
-0.03419351577758789,
-0.015789587050676346,
-0.0336318165063858,
0.031947020441293716,
-0.02407287247478962,
-0.015983441844582558,
-0.014309766702353954,
-0.010234769433736801,
-0.0729873925447464,
-0.008139673620462418,
0.00136982137337327,
-0.04252045974135399,
0.023243023082613945,
-0.053323425352573395,
-0.018698737025260925,
-0.07020851969718933,
-0.06984731554985046,
-0.053532421588897705,
0.044201381504535675,
0.0242401622235775,
-0.0023147976025938988,
0.027854906395077705,
-0.012558053247630596,
-0.10691186040639877,
-0.04164848476648331,
-0.021184362471103668,
0.014994950965046883,
0.016663549467921257,
0.02407003939151764,
0.03444485366344452,
-0.02274778112769127,
-0.05431883782148361,
-0.0008940936531871557,
0.017071647569537163,
0.022798651829361916,
-0.01396224182099104,
0.011192521080374718,
0.009688951075077057,
-0.0383632518351078,
-0.0012689491268247366,
0.06358254700899124,
-0.02689555659890175,
-0.004695483949035406,
-0.009472294710576534,
-0.016091234982013702,
0.019480451941490173,
-0.0028308937326073647,
-0.014329223893582821,
-0.00859462097287178,
0.02171751856803894,
0.03478395938873291,
-0.04563556984066963,
-0.001357117434963584,
-0.03478509560227394,
-0.023707315325737,
-0.02107192948460579,
-0.042774345725774765,
0.0169951431453228,
0.03834478557109833,
0.006332011427730322,
-0.016447043046355247,
-0.019465569406747818,
0.03824219852685928,
-0.04963411018252373,
-0.020109478384256363,
-0.026173975318670273,
0.024167494848370552,
0.022052032873034477,
0.03323456272482872,
-0.03134695813059807,
-0.06055434048175812,
0.02079745940864086,
0.032545629888772964,
0.00020706049690488726,
-0.06455842405557632,
-0.015099150128662586,
-0.009907557629048824,
-0.018859943374991417,
0.014138592407107353,
0.017242074012756348,
-0.03690987080335617,
0.020197052508592606,
0.025472605600953102,
-0.04330069199204445,
0.050563499331474304,
-0.02452021650969982,
-0.04630521684885025,
-0.03062097355723381,
0.005438903346657753,
0.009480982087552547,
-0.015385456383228302,
0.03336058557033539,
0.007939745672047138,
0.029235003516077995,
0.033452317118644714,
0.0028321347199380398,
0.01798614300787449,
0.01769741252064705,
0.037683386355638504,
0.02621609717607498,
-0.013466463424265385,
-0.03827207535505295,
0.02565222792327404,
-0.03896506875753403,
-0.004349172580987215,
-0.0037352072540670633,
0.06484939157962799,
-0.013203133828938007,
-0.04115141183137894,
-0.03248728811740875,
0.035169243812561035,
-0.06598008424043655,
0.0012799452524632215,
-0.021670369431376457,
0.008961532264947891,
0.050617765635252,
-0.020507389679551125,
0.011631403118371964,
-0.017361758276820183,
0.016905929893255234,
0.020910104736685753,
0.013945424929261208,
-0.01058709155768156,
0.022618884220719337,
0.01305703166872263,
-0.0029706291388720274,
0.0015544468769803643,
0.024426015093922615,
0.03124219924211502,
0.017288286238908768,
-0.03242718055844307,
0.009196162223815918,
-0.012334572151303291,
0.025645704939961433,
0.04597392678260803,
0.07027073204517365,
-0.02337489277124405,
-0.003284536302089691,
-0.003326481208205223,
-0.023121856153011322,
-0.006840699352324009,
-0.015648262575268745,
-0.04567963629961014,
0.001365169882774353,
-0.03551344573497772,
-0.06877441704273224,
0.05358024314045906,
-0.005455012898892164,
-0.012212967500090599,
0.012703600339591503,
0.004960391204804182,
-0.0025485113728791475,
-0.01911293901503086,
0.04348508641123772,
0.0438346303999424,
-0.05918314680457115,
0.0014622225426137447,
-0.004003156442195177,
-0.029466159641742706,
0.007604171521961689,
0.02488551288843155,
-0.03478259593248367,
-0.032089963555336,
-0.0333138145506382,
0.026117006316781044,
-0.03404788300395012,
-0.015146886929869652,
-0.006123032886534929,
-0.01612868905067444,
0.024570796638727188,
0.02567143365740776,
0.018033891916275024,
-0.00851607695221901,
-0.022326771169900894,
-0.001636751927435398,
0.03118862211704254,
-0.030467920005321503,
-0.022540664300322533,
0.013298572972416878,
-0.012173083610832691,
-0.013454100117087364,
-0.022569624707102776,
0.014172865077853203,
-0.0021602401975542307,
-0.013887330889701843,
0.00949878990650177,
-0.06636809557676315,
0.008722526021301746,
0.02860932983458042,
0.033265624195337296,
-0.016461167484521866,
-0.03009515069425106,
-0.021314939484000206,
-0.027680974453687668,
-0.01274439413100481,
0.0018780791433528066,
0.0031644203700125217,
0.0013310022186487913,
0.0143561577424407,
0.002176363952457905,
0.009212976321578026,
0.02023184299468994,
0.004633048083633184,
-0.03184518218040466,
0.05170566216111183,
-0.024448271840810776,
-0.023094285279512405,
-0.0005097477114759386,
-0.05610289424657822,
0.002885908354073763,
-0.011842160485684872,
-0.003649546066299081,
-0.03493260592222214,
0.048096947371959686,
0.0359751395881176,
0.036678992211818695,
0.025034528225660324,
0.018879231065511703,
0.04183143377304077,
-0.013990199193358421,
-0.018897101283073425,
-0.07838837802410126,
-0.0052317357622087,
0.029820168390870094,
-0.0034096764866262674,
-0.027741950005292892,
-0.002849426120519638,
-0.025730082765221596,
-0.0072747222147881985,
-0.06630703806877136,
-0.041279662400484085,
0.032216381281614304,
0.008465992286801338,
0.0002631580282468349,
0.0062967040576040745,
-0.04050014168024063,
0.005072329193353653,
0.040286917239427567,
-0.03350481390953064,
-0.030818939208984375,
-0.01483684591948986,
0.058447133749723434,
-0.015745941549539566,
0.028889495879411697,
-0.03157456964254379,
-0.024744538590312004,
0.09773241728544235,
0.03212329372763634,
0.025905746966600418,
0.06968379020690918,
-0.01818661391735077,
0.036225251853466034,
0.020005786791443825,
-0.02633911557495594,
-0.002046880079433322,
0.03694907948374748,
-0.015801627188920975,
-0.052857205271720886,
0.025234125554561615,
0.006448425818234682,
-0.00444305595010519,
-0.0438125878572464,
0.08701901137828827,
0.010274812579154968,
-0.043895818293094635,
-0.04868181794881821,
0.022258907556533813,
-0.007846576161682606,
-0.01791508123278618,
-0.0393349714577198,
-0.015021448023617268,
-0.04345199093222618,
0.07081012427806854,
-0.01077530812472105,
0.020844759419560432,
0.04474320635199547,
0.012357799336314201,
-0.00019551134028006345,
0.00554995471611619,
0.08862027525901794,
0.10772330313920975,
0.06117423251271248,
0.021818170323967934,
0.05854300782084465,
-0.02712337113916874,
-0.032882269471883774,
0.0024611353874206543,
-0.031312379986047745,
-0.03159083053469658,
-0.00489500118419528,
0.012922137044370174,
0.08335112780332565,
-0.035179007798433304,
0.05408927798271179,
-0.01563042402267456,
-0.011697465553879738,
0.02401723526418209,
-0.0013239252148196101,
0.0238556656986475,
0.06831269711256027,
-0.006045076064765453,
0.023358019068837166,
-0.035475172102451324,
-0.023154258728027344,
0.036433860659599304,
-0.024018092080950737,
-0.006967587396502495,
0.028166869655251503,
-0.013306924141943455,
0.007559041026979685,
-0.013579745776951313,
0.03146591782569885,
0.09586247056722641,
-0.03334468603134155,
-0.022859742864966393,
-0.011407095938920975,
0.02105605974793434,
-0.00375831569544971,
0.023827267810702324,
-0.009811975993216038,
-0.028698492795228958,
-0.015815703198313713,
-0.06243510544300079,
-0.04380267113447189,
-0.045181386172771454,
-0.046444859355688095,
-0.010318639688193798,
-0.035430584102869034,
0.011111383326351643,
0.01523210946470499,
-0.005296491552144289,
-0.012061402201652527,
-0.04906495288014412,
-0.050532177090644836,
-0.006384233944118023,
-0.07252371311187744,
-0.005274333991110325,
0.005099714267998934,
-0.034315623342990875,
-0.008288300596177578,
0.007895956747233868,
-0.013299587182700634,
-0.02368912659585476,
0.03776242956519127,
-0.024001074954867363,
-0.0370560921728611,
0.009852238930761814,
0.022344114258885384,
0.026350315660238266,
0.023142250254750252,
0.04273904860019684,
-0.006028232630342245,
0.012560345232486725,
-0.038530364632606506,
0.03218301013112068,
0.04327595606446266,
0.010148120112717152,
0.005701108369976282,
-0.08679046481847763,
0.000007495493264286779,
-0.00560596352443099,
-0.04353775829076767,
-0.0841735228896141,
0.007544776890426874,
0.06255373358726501,
0.01135127991437912,
0.030633864924311638,
0.0020771673880517483,
-0.02095714770257473,
-0.019676573574543,
0.007097112014889717,
0.01052799727767706,
0.0030750560108572245,
0.04570173844695091,
-0.04250155761837959,
0.07232610881328583,
0.03866497427225113,
-0.030295882374048233,
-0.004793022759258747,
-0.02129770815372467,
0.0005894295172765851,
0.0057907854206860065,
-0.06422863900661469,
-0.03915485367178917,
-0.02058379165828228,
-0.10183046013116837,
-0.02144724875688553,
0.004948596935719252,
-0.0181904174387455,
-0.030421115458011627,
-0.006650315131992102,
0.03657456859946251,
-0.013952662236988544,
0.03590201586484909,
-0.039838626980781555,
0.035032499581575394,
-0.03463701158761978,
-0.03661292791366577,
-0.03230368718504906,
0.01913723722100258,
-0.013976610265672207,
0.027447326108813286,
0.004700605291873217,
-0.05290929973125458,
-0.008778376504778862,
-0.03759204223752022,
0.01888640783727169,
0.025405699387192726,
0.033914223313331604,
0.0358242504298687
] | [
-0.05642550438642502,
-0.04383479803800583,
-0.054316889494657516,
-0.0102747967466712,
0.05325101688504219,
-0.044502872973680496,
0.003947386983782053,
-0.004579184576869011,
0.01450327131897211,
-0.0201950054615736,
0.02804289199411869,
-0.024671779945492744,
0.013927399180829525,
-0.0013099542120471597,
0.05085241422057152,
-0.002443088684231043,
-0.009322727099061012,
-0.06392668187618256,
-0.014461272396147251,
0.04210218787193298,
-0.05494208261370659,
-0.05457506701350212,
-0.061218395829200745,
-0.04306463897228241,
0.027896765619516373,
0.04487783461809158,
0.02785610966384411,
-0.052967365831136703,
-0.03342917189002037,
-0.1850670576095581,
-0.0011461328249424696,
0.010987170040607452,
0.04122747853398323,
0.00006077256330172531,
0.03872664272785187,
0.0037578584160655737,
0.06573352962732315,
0.0005680696340277791,
0.010867899283766747,
0.024709319695830345,
0.01586836948990822,
-0.034742340445518494,
-0.039787884801626205,
-0.0037442471366375685,
0.06238870322704315,
0.0005478148232214153,
-0.011399902403354645,
-0.0019797568675130606,
-0.036218974739313126,
0.02290247194468975,
-0.05824081599712372,
-0.01587822288274765,
-0.021596964448690414,
0.010086741298437119,
0.0109586575999856,
0.0548713244497776,
0.0585697665810585,
0.037314318120479584,
-0.0125255873426795,
0.053679343312978745,
0.014689966104924679,
0.001838003983721137,
-0.11144456267356873,
0.0791654884815216,
-0.007466576527804136,
0.03957459703087807,
-0.03778398782014847,
-0.0083162235096097,
-0.025520294904708862,
0.08696677535772324,
0.04186920076608658,
-0.04495904594659805,
-0.05867020785808563,
0.02759188786149025,
0.02781989984214306,
0.002263939706608653,
-0.01981283910572529,
0.027495093643665314,
0.028412654995918274,
-0.030878469347953796,
-0.05470121279358864,
0.014495776034891605,
-0.028593510389328003,
-0.012552443891763687,
-0.037416011095047,
0.02659553475677967,
-0.02039903774857521,
0.0455903559923172,
0.035088058561086655,
0.030271487310528755,
0.043317701667547226,
0.03378264233469963,
0.005751364398747683,
-0.013687856495380402,
-0.07400395721197128,
-0.03482750058174133,
-0.0003337831294629723,
0.027442708611488342,
-0.0038881588261574507,
0.39834725856781006,
-0.01131744310259819,
-0.0028213318437337875,
0.04371698200702667,
0.0387476347386837,
-0.03314916789531708,
-0.005884184967726469,
0.00921140518039465,
-0.06308753788471222,
0.03403535112738609,
-0.026272490620613098,
-0.0005306978709995747,
-0.02943330816924572,
0.04892631620168686,
-0.09905911237001419,
0.033787671476602554,
0.013694309629499912,
0.04508417844772339,
0.01695609651505947,
-0.010125692933797836,
-0.003021771088242531,
0.00004345695560914464,
0.034009307622909546,
-0.007547952700406313,
0.03215790167450905,
0.01698167435824871,
-0.005527369678020477,
0.03822216019034386,
0.021630164235830307,
0.037869084626436234,
0.013355330564081669,
0.06271074712276459,
0.004578802268952131,
-0.08929108828306198,
0.024605518206954002,
-0.025452066212892532,
-0.014383959583938122,
0.042090654373168945,
-0.013748692348599434,
-0.015068153850734234,
0.0449509471654892,
-0.011819496750831604,
-0.026356058195233345,
0.057065751403570175,
-0.0021000104025006294,
-0.03840559348464012,
0.16265124082565308,
0.008228624239563942,
-0.04419858381152153,
-0.034899599850177765,
-0.05150742828845978,
-0.007284675259143114,
0.03110348805785179,
0.021657438948750496,
-0.08477997779846191,
-0.019487526267766953,
0.025897590443491936,
0.08795317262411118,
-0.012335534207522869,
-0.08761424571275711,
-0.016773197799921036,
-0.00453928904607892,
-0.057622458785772324,
-0.04927000775933266,
0.07129226624965668,
0.063462033867836,
-0.14398989081382751,
-0.010956097394227982,
0.01985783316195011,
0.029912611469626427,
-0.06180290877819061,
0.014158230274915695,
0.03389163687825203,
-0.05407281592488289,
0.001481885090470314,
0.05355415493249893,
-0.005566474515944719,
-0.03190676122903824,
-0.0022125164978206158,
0.04413462430238724,
0.018884778022766113,
-0.010262509807944298,
0.020005041733384132,
-0.04089215025305748,
-0.004204547498375177,
-0.07380718737840652,
-0.04475429654121399,
-0.06438902020454407,
0.013559010811150074,
-0.013840789906680584,
-0.02765701152384281,
-0.004204246681183577,
-0.009485909715294838,
-0.0532202422618866,
0.06424003839492798,
-0.05126887932419777,
-0.026837874203920364,
0.010143391788005829,
0.0018319734372198582,
-0.02974354289472103,
-0.03835941478610039,
-0.011995762586593628,
0.008473596535623074,
-0.031226597726345062,
0.04014537110924721,
-0.054395273327827454,
0.03464395925402641,
0.04177580773830414,
-0.04692205786705017,
0.06705059856176376,
0.01497604139149189,
-0.01770678162574768,
-0.014522603712975979,
-0.013219987973570824,
0.03998296335339546,
0.0012469119392335415,
-0.013785182498395443,
0.01086446177214384,
-0.003902260446920991,
0.012220319360494614,
0.05392392352223396,
-0.02497601881623268,
0.02153630740940571,
0.027645215392112732,
-0.34699103236198425,
-0.01385605800896883,
-0.042427487671375275,
0.02104884199798107,
-0.013501288369297981,
-0.03745846822857857,
0.0005664777127094567,
0.007228394038975239,
0.0010550223523750901,
0.05856426805257797,
0.10071262717247009,
0.011321218684315681,
-0.005169694311916828,
-0.09998411685228348,
-0.006475393660366535,
0.03984780237078667,
-0.03122224658727646,
0.004006580449640751,
-0.039970360696315765,
-0.027071848511695862,
0.007188798394054174,
-0.01794036477804184,
-0.03574501723051071,
-0.05070146173238754,
0.018342716619372368,
0.0160310510545969,
0.14160996675491333,
-0.039614588022232056,
0.031086893752217293,
-0.06091064214706421,
0.03594454750418663,
-0.012839828617870808,
-0.020542122423648834,
-0.05482504144310951,
0.034605540335178375,
-0.024527063593268394,
0.0018338622758165002,
0.008313613012433052,
-0.0017514273058623075,
-0.0210737194865942,
-0.06945313513278961,
0.011797945015132427,
-0.04400099068880081,
-0.044530875980854034,
-0.052512094378471375,
0.01720535196363926,
-0.006199830211699009,
-0.01452805008739233,
-0.027862463146448135,
0.09481607377529144,
-0.010272512212395668,
0.012304485775530338,
0.02995184063911438,
0.05188797786831856,
0.01390513963997364,
-0.04403473064303398,
-0.09924466907978058,
0.0028700106777250767,
-0.017578663304448128,
0.0037179195787757635,
0.03269865736365318,
0.037665776908397675,
0.015947790816426277,
-0.05857458338141441,
0.03288312628865242,
-0.006590985227376223,
-0.016017165035009384,
0.02505929209291935,
0.049727898091077805,
-0.01866443268954754,
-0.034352608025074005,
0.052174512296915054,
-0.010179166682064533,
0.012588451616466045,
0.034712210297584534,
0.05442288517951965,
-0.012959222309291363,
0.0141207380220294,
0.011329098604619503,
0.006393662188202143,
0.048287633806467056,
-0.05927279591560364,
0.05409793183207512,
0.004237975925207138,
0.02964683435857296,
0.06541533023118973,
0.03953063115477562,
-0.03232356905937195,
0.0872899666428566,
0.03633894771337509,
-0.023461397737264633,
-0.010905306786298752,
-0.041125211864709854,
-0.0593743622303009,
0.05760855972766876,
-0.020161503925919533,
-0.2775225341320038,
0.04050842672586441,
0.01148294098675251,
0.04581747204065323,
0.016505302861332893,
-0.0007782537722960114,
-0.0038484043907374144,
-0.020458705723285675,
-0.015790505334734917,
-0.0223381407558918,
0.04833343252539635,
0.031114080920815468,
-0.023486517369747162,
-0.022957567125558853,
0.009639427997171879,
0.013362700119614601,
0.03182130306959152,
0.008804148994386196,
-0.0011266650399193168,
0.019330332055687904,
0.03183339536190033,
-0.028827253729104996,
0.17660313844680786,
0.06506424397230148,
0.039814095944166183,
0.02798806130886078,
-0.003970510791987181,
-0.023032383993268013,
0.03117850422859192,
0.02430134080350399,
-0.005760807078331709,
-0.003604625118896365,
0.02820105105638504,
0.013897279277443886,
0.011991619132459164,
-0.020915696397423744,
-0.02722194790840149,
0.06536206603050232,
0.03404081612825394,
-0.02488982491195202,
-0.015913447365164757,
0.005785773508250713,
-0.038705576211214066,
0.030853834003210068,
0.0744931623339653,
0.009995628148317337,
-0.0038318494334816933,
-0.028197985142469406,
-0.017841437831521034,
-0.005165684036910534,
-0.01404215581715107,
-0.04288952425122261,
-0.015672577545046806,
-0.01520641427487135,
0.013863916508853436,
0.06121036037802696,
0.04664960131049156,
-0.019279902800917625,
0.026741331443190575,
-0.0016507304972037673,
-0.04041636735200882,
-0.02981771156191826,
0.07645868510007858,
-0.005034198984503746,
0.014417794533073902
] | [
-0.024917136877775192,
0.04052754119038582,
-0.011709991842508316,
0.04607730731368065,
-0.03044799529016018,
0.002529282821342349,
0.0026037765201181173,
-0.019248969852924347,
-0.04121049493551254,
-0.008214985020458698,
-0.0558280274271965,
0.02804127335548401,
0.016584163531661034,
-0.03387327864766121,
0.030803322792053223,
0.029296597465872765,
0.012294181622564793,
-0.01528103556483984,
0.0459606908261776,
-0.054949741810560226,
-0.03621642291545868,
-0.019652798771858215,
0.01739341951906681,
-0.018886582925915718,
-0.02643747627735138,
0.011443106457591057,
-0.00827481783926487,
0.02421698532998562,
0.022278793156147003,
-0.07202423363924026,
-0.05719507485628128,
-0.024083245545625687,
-0.018878096714615822,
0.03393515199422836,
-0.032498572021722794,
0.003051169216632843,
0.037212856113910675,
0.05362873151898384,
0.021671641618013382,
0.03427301347255707,
-0.013095563277602196,
-0.02391541190445423,
-0.014959201216697693,
0.009379967115819454,
-0.010240359231829643,
0.008424190804362297,
-0.05515917018055916,
0.015446927398443222,
-0.0152450455352664,
-0.017250478267669678,
-0.03146575391292572,
-0.04290918633341789,
-0.0030095106922090054,
-0.0035435662139207125,
0.02822103165090084,
0.03479443117976189,
-0.046118855476379395,
-0.03762095049023628,
-0.008347936905920506,
0.014051694422960281,
-0.0015177254099398851,
-0.023496493697166443,
-0.05700081214308739,
0.005003886763006449,
-0.003430088749155402,
-0.015935568138957024,
-0.018842922523617744,
0.024351727217435837,
0.007849517278373241,
-0.0027065908070653677,
-0.05131526663899422,
-0.002789328573271632,
-0.08656886965036392,
-0.017215831205248833,
-0.006941786967217922,
0.029530536383390427,
0.008171498775482178,
-0.02595752663910389,
0.0018566070357337594,
-0.0375937819480896,
-0.044356562197208405,
0.021242650225758553,
-0.029371995478868484,
0.05321482941508293,
-0.004737261217087507,
-0.03324972093105316,
0.005040687043219805,
0.014530457556247711,
0.008173495531082153,
-0.013526681810617447,
-0.07792340964078903,
0.03031419776380062,
-0.009410860016942024,
-0.004885297268629074,
-0.08799803256988525,
0.022204093635082245,
0.013514503836631775,
0.02512039616703987,
0.0022183298133313656,
0.7840595841407776,
0.009792654775083065,
0.03183595463633537,
0.021374370902776718,
0.020208166912198067,
-0.05721843242645264,
0.0042131575755774975,
-0.01379480492323637,
0.016712337732315063,
-0.014487740583717823,
-0.02688952535390854,
-0.007912572473287582,
0.025526102632284164,
-0.00030886183958500624,
-0.021673446521162987,
0.008103610016405582,
0.05540206655859947,
-0.004521923139691353,
0.01593928411602974,
-0.006123142782598734,
0.011158334091305733,
0.023005101829767227,
0.03797832876443863,
-0.0303304735571146,
0.007445892319083214,
-0.01947629638016224,
-0.19837717711925507,
0.018483391031622887,
-7.139111473749767e-33,
0.053240906447172165,
-0.0018716072663664818,
0.08171078562736511,
-0.027605701237916946,
0.04509303718805313,
0.037106215953826904,
-0.04226604476571083,
-0.016574328765273094,
0.0370488166809082,
0.002672834089025855,
-0.008751886896789074,
0.02870466187596321,
0.06186297535896301,
-0.03710338845849037,
0.03254726156592369,
0.02723529003560543,
0.03885459527373314,
0.05243334174156189,
-0.027862925082445145,
0.00006351540650939569,
0.009554600343108177,
0.02378850430250168,
-0.022714462131261826,
0.052982691675424576,
0.016648493707180023,
0.05233455076813698,
-0.012260842137038708,
0.019114606082439423,
-0.004758766386657953,
-0.04635249078273773,
-0.04078269377350807,
0.05929926410317421,
0.02232423610985279,
0.023671485483646393,
0.012964220717549324,
-0.061946894973516464,
-0.035886965692043304,
-0.001710494514554739,
-0.010632255114614964,
-0.0731833279132843,
-0.03141893073916435,
0.012762260623276234,
0.02170374244451523,
-0.030880652368068695,
-0.03468439728021622,
-0.005557492841035128,
0.002368647838011384,
-0.016070662066340446,
0.006555219180881977,
0.010702213272452354,
0.0423753447830677,
-0.007737190928310156,
-0.022216683253645897,
0.07046347111463547,
-0.018863458186388016,
0.016090543940663338,
0.05127326026558876,
0.05022408068180084,
0.008180210366845131,
0.020361553877592087,
0.00867736991494894,
-0.014372446574270725,
0.020557517185807228,
0.06217910721898079,
0.004478421527892351,
-0.001979521242901683,
-0.018820662051439285,
0.008799353614449501,
0.026946604251861572,
-0.005829388275742531,
-0.03678826987743378,
0.11320480704307556,
-0.024992195889353752,
-0.029793573543429375,
0.02121797390282154,
-0.01826433278620243,
-0.0070264944806694984,
0.01694205403327942,
-0.014171968214213848,
0.06600479781627655,
-0.00002851150020433124,
-0.022381838411092758,
0.010954548604786396,
-0.001768068759702146,
-0.01983177661895752,
-0.005838833749294281,
0.030884742736816406,
0.0517599955201149,
-0.014532291330397129,
0.030820351094007492,
0.005386159289628267,
0.010854785330593586,
0.031859416514635086,
-0.005183386616408825,
0.013673498295247555,
6.699562544566635e-33,
0.009638705290853977,
0.012415112927556038,
0.03375823423266411,
-0.03776906803250313,
0.05366158485412598,
0.0012182112550362945,
0.03390775993466377,
-0.008805221877992153,
-0.03819423168897629,
0.06521420180797577,
-0.006333587225526571,
-0.03049161098897457,
0.007583632133901119,
0.03020387887954712,
0.05830609053373337,
-0.002619576407596469,
0.031070873141288757,
-0.01724015362560749,
-0.030926646664738655,
0.034772343933582306,
0.027078965678811073,
0.011953175067901611,
0.004355805926024914,
-0.0025567100383341312,
0.06181247904896736,
0.02584739588201046,
0.012032034806907177,
-0.013622039929032326,
-0.01447936613112688,
0.02621740661561489,
-0.03157244250178337,
-0.013307718560099602,
-0.016779974102973938,
-0.016500355675816536,
0.02194841392338276,
-0.013523103669285774,
-0.02040879800915718,
-0.0228442270308733,
0.03438962623476982,
-0.020761650055646896,
0.013547026552259922,
0.03740369528532028,
-0.015770453959703445,
0.04199931025505066,
0.04595852643251419,
0.005327483173459768,
-0.01964556984603405,
-0.007298304233700037,
-0.04688353091478348,
0.015974553301930428,
-0.0145453792065382,
0.01201168168336153,
-0.040830180048942566,
-0.007175268139690161,
0.0033005783334374428,
-0.046451810747385025,
-0.0075578028336167336,
-0.007210257928818464,
-0.010115713812410831,
-0.01411009393632412,
-0.024649204686284065,
0.012973759323358536,
-0.05387355387210846,
0.05193041265010834,
-0.029232705011963844,
-0.0330900102853775,
-0.017833063378930092,
0.0011408926220610738,
-0.007169470656663179,
0.012921731919050217,
-0.007598834112286568,
-0.025562066584825516,
-0.014777454547584057,
0.00736601185053587,
0.01991596445441246,
-0.017794569954276085,
-0.009975501336157322,
0.006375115364789963,
-0.03478951007127762,
0.03296055644750595,
0.02874913439154625,
-0.02662462554872036,
0.03516121581196785,
0.022988123819231987,
0.0044976891949772835,
0.019727574661374092,
-0.009922471828758717,
0.02293987013399601,
0.00635282089933753,
0.014557366259396076,
0.018715694546699524,
-0.07837741076946259,
-0.04111207649111748,
0.045129723846912384,
-0.019019540399312973,
-1.2264579574150503e-8,
-0.06070932373404503,
-0.0009366711019538343,
-0.005676130764186382,
-0.03227979317307472,
0.06939859688282013,
-0.00846923515200615,
0.00751648610457778,
-0.0038795883301645517,
-0.00907446164637804,
0.03501472249627113,
0.0274314284324646,
-0.03665705770254135,
0.02802610956132412,
0.027598312124609947,
-0.00015037358389236033,
-0.06323913484811783,
0.011239996179938316,
-0.03988148644566536,
0.018447402864694595,
0.008255910128355026,
-0.013099024072289467,
-0.001919030793942511,
-0.06293344497680664,
0.018362682312726974,
-0.008832640945911407,
-0.020406335592269897,
0.013281854800879955,
-0.0527096688747406,
0.020381413400173187,
-0.024475721642374992,
-0.01834837719798088,
-0.0038189648184925318,
0.01127011887729168,
0.01586739905178547,
-0.04471685364842415,
-0.0420665517449379,
0.037440069019794464,
0.03554798662662506,
0.00812378991395235,
0.0033771435264497995,
-0.00015042629092931747,
-0.0002208325022365898,
-0.021895965561270714,
-0.01738947443664074,
-0.01583203859627247,
0.007311582565307617,
-0.008437211625277996,
-0.020106013864278793,
0.00643192371353507,
-0.04119542986154556,
-0.01027667336165905,
-0.0228823721408844,
0.0526224784553051,
-0.012992420233786106,
0.025187702849507332,
0.0203764159232378,
0.004763244651257992,
-0.02528262510895729,
-0.033204857259988785,
-0.02276614122092724,
-0.01159099955111742,
-0.031021723523736,
-0.011048538610339165,
-0.027539541944861412
] | northwind-finding-directtransitive-reports-in-sql-and-neo4js-cypher | https://markhneedham.com/blog/2015/06/15/northwind-finding-directtransitive-reports-in-sql-and-neo4js-cypher |
false | 2015-06-12 23:12:32 | The Willpower Instinct: Reducing time spent mindlessly scrolling for things to read | [
"software-development"
] | [
"Software Development"
] | I recently finished reading Kelly McGonigal's excellent book 'http://www.amazon.co.uk/The-Willpower-Instinct-Kelly-McGonigal/dp/1583335080[The Willpower Instinct]' having previously watched her https://www.youtube.com/watch?v=V5BXuZL1HAg[Google talk of the same title]
My main takeaway from the book is that there are things that we want to do (or not do) but doing them (or not as the case may be) isn't necessarily instinctive and so we need to develop some strategies to help ourselves out.
In one of the early chapters she suggests picking a habit that you want to do less off and write down on a piece of paper every time you want to do it and how you're feeling at that point.
After writing it down you're free to then follow through and do it but you don't have to if you change your mind.
I was quite aware of the fact that I spend a lot of time idly scrolling from email to Twitter to Facebook to LinkedIn to news websites and back again so I thought it'd be interesting to track when/why I was doing this. The annoying thing about this habit is that it can *easily eat up 20-30 minutes at a time without you even noticing*.
I've been tracking myself for about three weeks and in the first few days I noticed that the first thing I did as soon as I woke up was grab my phone and get into the cycle.
It was quite frustrating to be lured in so early in the day but one of the suggestions in the book is that feeling guilty about something is actually detrimental to our progress. Instead we should note why it happened and then move on - the day isn't a write off because of one event!
Kelly suggests that if we can work out the times when we're most likely to fall into our habits then we can pre-plan a mitigation strategy.
From looking over my notes the following are the reasons why I want to start mindlessly scrolling:
* I'm stuck on the problem I'm working on
* I'm bored
* I'm tired
* I'm hungry
* I'm getting distracted by notifications
* I want to not think for a while
The notifications bullet is easy to address - I turn off notifications on my phone for 4 hours at a time so I don't even know there's anything to read.
I was intrigued to note that I got distracted when stuck on a problem - the main take away here is to check whether the urge to scroll mindlessly is being driven by having to think hard. If it is then I can choose to either get back to it or go for a short walk and then come back. But definitely don't start scrolling!
I often find myself bored on my commute to work so I've addressed this by working out a book/paper I'm going to read the night before and then having that ready for the journey. Lunch time is prime time for mindless scrolling as well so I've filled that time with various https://www.youtube.com/watch?v=9MKY4KypBzg[computer] https://www.youtube.com/watch?v=KSdNYi55kjg[science]/http://www.thetalkingmachines.com/blog/2015/6/4/the-economic-impact-of-machine-learning-and-using-the-kernel-trick-to-dig-in-to-big-data[data] http://www.thetalkingmachines.com/blog/2015/3/13/how-machine-learning-got-where-it-is-and-the-future-of-the-field[science] http://www.partiallyderivative.com/news/2015/6/8/episode-24-can-killer-robots-marry-their-cousins[videos].
Since I started tracking my scrolling I've found myself sleeping earlier so my assumption is that the extra hours awake were being spent mindlessly scrolling which led to being more tired so a win all around in that respect.
Something I've noticed is that I'm sometimes wasting time on other activities which I'm are not 'forbidden' but are equally unconstructive e.g. chat applications / watching music videos.
The former are obviously useful for communicating with people so I've been trying to use them only when I actually want to chat to someone rather than mindlessly looking for messages to read.
I also find myself not wanting to write down the times I've mindlessly scrolled when I'm doing it a lot on a given day. Being aware of this is helpful as I just write it down anyway and get on with the day.
The summary of my experience so far is it seems beneficial - I don't think I've lost anything by not checking those mediums so often and I've definitely read a lot more than I usually do and been more focused as well.
Now I need to go and try out some of the other exercises from the book - if you've read it / tried out any of the tips I'd love to hear what's worked well for you. | null | null | [
0.007556140422821045,
-0.00875692069530487,
0.0012874194653704762,
0.006267538294196129,
0.08217847347259521,
0.004330797586590052,
0.04601632431149483,
0.03567058965563774,
0.027556026354432106,
-0.02560168318450451,
0.014138968661427498,
0.024486253038048744,
-0.03038511984050274,
-0.014231223613023758,
-0.027445020154118538,
0.0630788579583168,
0.08160373568534851,
0.039983440190553665,
0.011902066878974438,
-0.02229660376906395,
0.04601745679974556,
0.07305490225553513,
0.046554405242204666,
0.04616911709308624,
0.0631638616323471,
-0.002107533160597086,
0.024177104234695435,
-0.02269420027732849,
-0.052201032638549805,
-0.005675600375980139,
0.04280703887343407,
0.007511662319302559,
0.004957085940986872,
0.028015244752168655,
0.04691877216100693,
-0.009310957975685596,
-0.012964070774614811,
0.010023568756878376,
-0.0003823579172603786,
0.024367274716496468,
-0.09196222573518753,
0.027349766343832016,
-0.03951116278767586,
-0.00525938905775547,
-0.03808394446969032,
0.021470041945576668,
-0.044072069227695465,
-0.0063689411617815495,
0.015081986784934998,
-0.041013285517692566,
-0.048747431486845016,
0.05353733152151108,
0.03328350931406021,
0.006027542520314455,
-0.01150194089859724,
0.05126470699906349,
-0.004818062763661146,
-0.03981579467654228,
0.022515350952744484,
-0.04152381420135498,
-0.007533974479883909,
-0.008342205546796322,
-0.026688382029533386,
0.02874951809644699,
0.022350456565618515,
-0.02428613230586052,
0.017370834946632385,
0.0402291864156723,
-0.011948187835514545,
0.023123685270547867,
-0.04713667556643486,
0.017973674461245537,
-0.0005073032225482166,
0.00590546615421772,
-0.022950544953346252,
-0.04187183454632759,
0.019940225407481194,
0.06461231410503387,
0.02242421545088291,
0.05567007139325142,
-0.010781452991068363,
0.04845065250992775,
-0.0058749676682055,
0.03546514734625816,
-0.032587841153144836,
-0.031204016879200935,
0.017312832176685333,
-0.013959799893200397,
-0.05760784074664116,
0.05035431683063507,
0.004897278733551502,
-0.0528077632188797,
0.0032021445222198963,
0.038050856441259384,
-0.0031900866888463497,
-0.013750358484685421,
0.0348246730864048,
-0.0036731099244207144,
-0.027473922818899155,
-0.010828247293829918,
-0.0075642429292202,
-0.04666413366794586,
-0.0032262096647173166,
0.011431017890572548,
-0.059721339493989944,
-0.01871633715927601,
-0.017198661342263222,
-0.018871039152145386,
0.013287494890391827,
0.014279767870903015,
-0.038939885795116425,
0.015398257412016392,
-0.02489115297794342,
0.004382711369544268,
-0.07205986976623535,
0.06502102315425873,
0.02327916957437992,
-0.025607898831367493,
-0.034830402582883835,
-0.015658795833587646,
0.03780997171998024,
0.010644412599503994,
0.0026828518602997065,
0.06578981876373291,
-0.00749875558540225,
-0.0010294902604073286,
-0.027172047644853592,
0.030897319316864014,
0.007425057236105204,
-0.05204590782523155,
-0.011175911873579025,
0.0458788126707077,
0.008962756022810936,
-0.03465721383690834,
-0.013786470517516136,
-0.00024856350501067936,
0.007548871915787458,
0.004490249790251255,
0.052905675023794174,
0.07224130630493164,
0.008999442681670189,
-0.03974878042936325,
0.026498259976506233,
0.011693519540131092,
0.01678789220750332,
-0.016154199838638306,
-0.010193570517003536,
0.00034417485585436225,
-0.06585009396076202,
-0.009682969190180302,
0.010039376094937325,
-0.004503760486841202,
0.005387779325246811,
-0.03260740265250206,
-0.009377220645546913,
0.07385271787643433,
0.012793606147170067,
0.033180952072143555,
-0.018409930169582367,
0.017864657565951347,
0.033958036452531815,
0.03511414676904678,
0.0047630383633077145,
0.03653453290462494,
0.023223569616675377,
-0.026591237634420395,
0.012510575354099274,
0.036181919276714325,
-0.025176312774419785,
0.013024485670030117,
-0.058402713388204575,
-0.02580440789461136,
0.046607136726379395,
-0.021528450772166252,
-0.03240295499563217,
0.0466032400727272,
0.06250054389238358,
0.020770790055394173,
0.012247339822351933,
0.02160704880952835,
-0.06972246617078781,
0.042400654405355453,
0.016542736440896988,
0.024828359484672546,
0.004650040529668331,
-0.03271784633398056,
0.049267880618572235,
0.021432368084788322,
0.002590915886685252,
0.05374888703227043,
-0.07137251645326614,
-0.0768585130572319,
0.036834873259067535,
-0.008586165495216846,
0.05746803060173988,
-0.04523323476314545,
0.020201068371534348,
0.08736366033554077,
-0.012157924473285675,
0.049320634454488754,
0.006976543925702572,
-0.03530072793364525,
0.01396528072655201,
-0.031520575284957886,
-0.05790310353040695,
0.05764678493142128,
0.025921111926436424,
-0.0048495144583284855,
-0.022031571716070175,
-0.012412000447511673,
-0.020308462902903557,
0.002460193121805787,
0.03320078179240227,
0.006740377750247717,
0.011161268688738346,
-0.0007511086878366768,
0.07012267410755157,
-0.00670206593349576,
0.0561719574034214,
-0.04331438988447189,
-0.006863799411803484,
0.013943769969046116,
-0.025787249207496643,
0.013401373289525509,
-0.016403602436184883,
0.08198873698711395,
0.054956868290901184,
-0.06113917753100395,
-0.04168723523616791,
0.03142816200852394,
-0.0010892166756093502,
-0.04133138433098793,
0.008553284220397472,
0.008121577091515064,
0.015653906390070915,
0.009480242617428303,
-0.035922132432460785,
-0.02241722121834755,
0.024457242339849472,
-0.06575015932321548,
-0.005712978541851044,
0.04350685328245163,
-0.0018573758425191045,
0.08770628273487091,
-0.027617331594228745,
-0.002279821550473571,
-0.028494656085968018,
0.021477218717336655,
-0.04533423110842705,
-0.005767432041466236,
0.009188180789351463,
-0.009292343631386757,
0.04291096702218056,
-0.013314328156411648,
-0.011275608092546463,
-0.053036656230688095,
-0.04932159185409546,
0.01686597242951393,
0.08212945610284805,
0.07351986318826675,
-0.011446939781308174,
0.07114013284444809,
0.006190875079482794,
0.03636017441749573,
0.004493923392146826,
-0.03858700767159462,
-0.035809312015771866,
-0.0385223887860775,
-0.002151031279936433,
0.006353092845529318,
0.010733257979154587,
0.005665769334882498,
0.016183875501155853,
0.03146006539463997,
0.0016489827539771795,
-0.0165528804063797,
0.04254470765590668,
0.013750645332038403,
-0.001915092347189784,
-0.018952447921037674,
-0.015669504180550575,
0.08595097064971924,
-0.020371686667203903,
-0.0008719994802959263,
0.017853938043117523,
-0.08932449668645859,
0.05335152894258499,
-0.044842272996902466,
-0.047040052711963654,
-0.003102552145719528,
0.014786560088396072,
0.027900099754333496,
0.024187594652175903,
0.02187548391520977,
0.057085394859313965,
0.02434529922902584,
0.012167003937065601,
0.023331936448812485,
0.010809260420501232,
0.04233568534255028,
0.03525178134441376,
-0.03266465291380882,
0.06393922865390778,
-0.0008807144477032125,
0.021056726574897766,
-0.03821209818124771,
0.010187624953687191,
-0.01968899369239807,
-0.2733443081378937,
0.05074919015169144,
0.04015616700053215,
-0.04948854073882103,
0.01198611594736576,
-0.03928250074386597,
0.016039831563830376,
-0.057727713137865067,
-0.037462443113327026,
0.04323400557041168,
-0.019404970109462738,
-0.02288678288459778,
-0.013396487571299076,
0.024229833856225014,
0.007709532976150513,
0.013984128832817078,
0.02116563729941845,
-0.04687252640724182,
-0.0056339227594435215,
0.0801885798573494,
0.002184997545555234,
-0.060276299715042114,
-0.024601170793175697,
0.02600705437362194,
0.03870784118771553,
0.07167565822601318,
-0.06085905432701111,
0.03971634432673454,
-0.06845487654209137,
-0.008825298398733139,
-0.001636411645449698,
-0.016586044803261757,
0.015244405716657639,
-0.028306908905506134,
0.017510894685983658,
-0.02705392800271511,
0.040795497596263885,
-0.0061789704486727715,
-0.019941698759794235,
0.012774553149938583,
-0.005861213896423578,
-0.04647155851125717,
-0.004322756547480822,
0.04425064101815224,
0.06748808175325394,
0.032189033925533295,
-0.06173883005976677,
-0.038594555109739304,
-0.03623150289058685,
0.0844632238149643,
-0.025935547426342964,
-0.042448632419109344,
-0.05524419620633125,
0.008626248687505722,
-0.004373661708086729,
0.0044404263608157635,
-0.019929641857743263,
-0.04234111309051514,
-0.05081051215529442,
-0.038033295422792435,
-0.028082188218832016,
-0.02133292518556118,
0.004340001847594976,
-0.046326085925102234,
-0.015958957374095917,
-0.05845293402671814,
-0.05779854580760002,
-0.018851445987820625,
0.0735723152756691,
0.025351880118250847,
-0.03730497136712074,
-0.0019062625942751765,
-0.013259705156087875,
-0.10659898072481155,
-0.04311312362551689,
0.00863058865070343,
-0.05172819644212723,
0.006292028818279505,
-0.00753632141277194,
0.03674282133579254,
-0.02683328092098236,
-0.029183832928538322,
0.021153127774596214,
0.008378236554563046,
0.05458543077111244,
-0.022043023258447647,
0.0202177781611681,
0.011304004117846489,
-0.019777392968535423,
-0.000258940301137045,
0.05637659132480621,
0.01017192006111145,
-0.038889676332473755,
-0.021204231306910515,
0.0422961600124836,
0.04192202538251877,
0.002919404534623027,
-0.04231051355600357,
0.007646264974027872,
-0.007162613328546286,
0.021621596068143845,
-0.050840266048908234,
0.036630697548389435,
0.0023789741098880768,
-0.013290110044181347,
-0.010750862769782543,
-0.04980307072401047,
0.016229644417762756,
0.03673618286848068,
-0.013134322129189968,
-0.01131179928779602,
-0.007643706165254116,
0.027073021978139877,
-0.04373333603143692,
-0.02330574207007885,
-0.02594175934791565,
0.008477240800857544,
0.04194348305463791,
-0.0029175530653446913,
-0.0040644253604114056,
-0.07818573713302612,
0.007082908879965544,
-0.027285689488053322,
-0.03895878046751022,
-0.04596270993351936,
-0.013606089167296886,
-0.010026840493083,
-0.03352847322821617,
-0.0031295916996896267,
0.04744401574134827,
-0.00007700218702666461,
-0.025724181905388832,
0.04833431541919708,
-0.018249932676553726,
0.007433412596583366,
-0.05907469987869263,
-0.06271224468946457,
-0.05421628803014755,
-0.01274693850427866,
-0.005914386361837387,
-0.03625849634408951,
0.016985269263386726,
-0.013783104717731476,
0.00606084568426013,
0.06402292102575302,
0.013571107760071754,
-0.0035363961942493916,
-0.03877197578549385,
0.001025499077513814,
0.03298855200409889,
0.004837106913328171,
-0.03887639194726944,
0.02344907820224762,
-0.0366191491484642,
-0.02788200043141842,
0.0049714562483131886,
0.034481681883335114,
-0.015967121347784996,
-0.018296822905540466,
-0.005755321122705936,
-0.003102347254753113,
-0.06510844081640244,
-0.028711818158626556,
-0.0393013097345829,
0.010700775310397148,
0.05315469950437546,
-0.033651020377874374,
0.002219474408775568,
0.012740998528897762,
0.015067456290125847,
0.022159075364470482,
-0.025903446599841118,
-0.03867080807685852,
0.013011959381401539,
-0.017205411568284035,
0.01781768910586834,
0.002379652112722397,
-0.01944141276180744,
0.03085937723517418,
0.006577569525688887,
-0.01325422152876854,
-0.03555319085717201,
0.004330073483288288,
-0.012607971206307411,
0.052421774715185165,
0.025022393092513084,
0.003805978922173381,
-0.0027648909017443657,
-0.043929871171712875,
-0.0033231175038963556,
-0.027365293353796005,
-0.01834668591618538,
-0.03949974477291107,
-0.015369981527328491,
-0.023060694336891174,
-0.052756860852241516,
0.059706803411245346,
0.008138077333569527,
0.01697826385498047,
0.038893815129995346,
-0.00891056563705206,
-0.01304459385573864,
-0.048215266317129135,
0.021721547469496727,
0.07237005978822708,
-0.06888185441493988,
0.00219677179120481,
-0.0009087843354791403,
-0.008129176683723927,
0.0387018620967865,
-0.022010887041687965,
-0.016835633665323257,
-0.0029751297552138567,
-0.01387364137917757,
0.03422309458255768,
-0.06431160867214203,
-0.016829706728458405,
-0.039230652153491974,
0.01789691485464573,
-0.0010252267820760608,
0.0025369839277118444,
-0.032766036689281464,
-0.04853048175573349,
0.0044015864841639996,
-0.022504204884171486,
0.010546931996941566,
-0.05351011082530022,
-0.021673569455742836,
0.05288378894329071,
-0.0495535247027874,
-0.0014677646104246378,
-0.01863800548017025,
0.041487131267786026,
0.017070244997739792,
-0.046633172780275345,
-0.007369702216237783,
-0.010006888769567013,
-0.0033281624782830477,
0.01275060698390007,
0.07154911756515503,
-0.010589717887341976,
-0.03006555326282978,
-0.04804440215229988,
-0.02599935792386532,
-0.023628447204828262,
0.012224728241562843,
-0.04154348745942116,
-0.007555099669843912,
0.04035870358347893,
0.06771745532751083,
0.009427711367607117,
0.007947874255478382,
0.005180322099477053,
-0.020261302590370178,
0.03987102583050728,
-0.07782227545976639,
-0.021226240321993828,
-0.027837589383125305,
-0.02814442105591297,
0.012274573557078838,
0.01613347977399826,
0.003732212819159031,
-0.04453592747449875,
0.01729764975607395,
0.028239063918590546,
0.039845291525125504,
0.031038161367177963,
0.016909491270780563,
0.01399501133710146,
-0.0337192639708519,
0.0096281748265028,
-0.08284460008144379,
-0.03676040098071098,
-0.0016720920102670789,
-0.011153592728078365,
-0.0041823317296803,
0.01846275106072426,
-0.032331861555576324,
0.047079894691705704,
-0.0809667780995369,
-0.009122471325099468,
0.04342421516776085,
-0.012365968897938728,
-0.020649759098887444,
0.03734655678272247,
-0.08620341122150421,
0.007250999100506306,
-0.005800547543913126,
-0.04258596897125244,
-0.0029009594582021236,
-0.008136803284287453,
0.05956246331334114,
0.0031425997149199247,
-0.010746654123067856,
-0.03268250450491905,
0.020022578537464142,
0.09212562441825867,
0.020522695034742355,
-0.012363480404019356,
0.047650981694459915,
-0.019129857420921326,
0.045184191316366196,
0.025435592979192734,
0.050328582525253296,
-0.02558812126517296,
-0.0009957646252587438,
-0.019788768142461777,
-0.0655595138669014,
0.023814069107174873,
-0.010448858141899109,
-0.029018672183156013,
-0.017280995845794678,
0.07235058397054672,
0.013380240648984909,
-0.030600018799304962,
-0.05052900314331055,
0.014160380698740482,
-0.04117080941796303,
-0.0281476229429245,
0.005784420762211084,
0.00032944069243967533,
-0.027873503044247627,
0.04964198172092438,
-0.012205547653138638,
0.006506898440420628,
0.06815433502197266,
-0.0177745521068573,
0.006198326125741005,
-0.00819332804530859,
0.10054672509431839,
0.07017169147729874,
0.059710919857025146,
0.02498500421643257,
0.09260748326778412,
0.014027582481503487,
-0.031244879588484764,
0.02463780716061592,
0.00005957368193776347,
-0.029143135994672775,
-0.03460320457816124,
0.04859902337193489,
0.03559389337897301,
-0.020886747166514397,
0.07414938509464264,
-0.039059534668922424,
-0.025067521259188652,
-0.011580836959183216,
0.03864384815096855,
0.009328311309218407,
0.028596486896276474,
0.022304760292172432,
0.04423066973686218,
-0.0374101884663105,
-0.03999856114387512,
0.04947592318058014,
-0.018297983333468437,
0.002304019872099161,
0.014700936153531075,
-0.04122588038444519,
0.010914947837591171,
0.0005631480598822236,
0.026946820318698883,
0.06325380504131317,
-0.016297802329063416,
0.04300861060619354,
-0.021644774824380875,
0.034881409257650375,
0.0009645975078456104,
0.012889817357063293,
-0.02828795649111271,
0.0011281189508736134,
0.010735557414591312,
-0.03717685118317604,
-0.032380491495132446,
-0.006222855299711227,
-0.014409007504582405,
0.011108404025435448,
-0.04644911736249924,
0.015104222111403942,
0.01160133071243763,
0.0033563615288585424,
-0.04319680854678154,
-0.05118248239159584,
-0.029004374518990517,
-0.018848376348614693,
-0.036112699657678604,
0.011851100251078606,
0.01538464892655611,
0.000292186246952042,
-0.04103381931781769,
-0.006109754554927349,
0.025123953819274902,
-0.034011028707027435,
0.018111469224095345,
-0.049962930381298065,
-0.011453645303845406,
0.020852327346801758,
0.02378624863922596,
0.03302977979183197,
-0.015580643899738789,
0.04699546471238136,
0.0004955391632393003,
-0.020134150981903076,
0.0004184798744972795,
0.010568765923380852,
0.031921952962875366,
-0.019144486635923386,
0.018144138157367706,
-0.08513452112674713,
0.006117477081716061,
0.0013643278507515788,
-0.039352159947156906,
-0.06342596560716629,
0.022625701501965523,
0.04273515194654465,
0.0041527291759848595,
0.0707482323050499,
-0.02058565430343151,
-0.009829258546233177,
-0.08353698253631592,
0.009494176134467125,
0.02254197560250759,
0.015545581467449665,
0.04999345913529396,
-0.02029971033334732,
0.07112585753202438,
-0.012439392507076263,
-0.013913572765886784,
-0.04038526117801666,
-0.023606522008776665,
-0.00004915095632895827,
0.002145383507013321,
-0.028412437066435814,
0.008140322752296925,
-0.009077159687876701,
-0.06647589802742004,
-0.014816741459071636,
0.030395038425922394,
-0.002387069398537278,
-0.028841489925980568,
0.04720020666718483,
0.005383023526519537,
-0.013148180209100246,
0.032321564853191376,
-0.0420898012816906,
0.009585021063685417,
-0.019332410767674446,
-0.0273862536996603,
0.00930856168270111,
0.006525247823446989,
0.004864654038101435,
0.0004528497811406851,
-0.006021721288561821,
-0.04470335319638252,
-0.0019364535110071301,
-0.017492061480879784,
0.0028599814977496862,
0.04095647484064102,
-0.03503074869513512,
-0.04414491727948189
] | [
-0.08196644484996796,
-0.01679047755897045,
0.011406143195927143,
-0.0014348261756822467,
-0.020933084189891815,
0.022483637556433678,
0.03518356755375862,
-0.0013233774807304144,
0.024841807782649994,
-0.033309515565633774,
0.008090090937912464,
0.0016051570419222116,
0.013479038141667843,
0.00958226528018713,
0.07686781883239746,
0.01742524281144142,
0.015148604288697243,
-0.09907370805740356,
-0.025611817836761475,
0.048180241137742996,
0.005351264961063862,
-0.026585502550005913,
-0.010409834794700146,
0.02073592320084572,
0.040915850549936295,
-0.006524308584630489,
0.06329098343849182,
-0.03590497002005577,
-0.010729106143116951,
-0.14270639419555664,
0.017368091270327568,
-0.0018592572305351496,
0.03401194140315056,
-0.007456914987415075,
-0.0441741980612278,
0.047259002923965454,
-0.019394928589463234,
0.03572354093194008,
0.0033762301318347454,
0.043393127620220184,
0.0067202127538621426,
0.03410842642188072,
-0.021594347432255745,
-0.013659612275660038,
0.046439118683338165,
-0.00046357617247849703,
0.003969523590058088,
-0.001091827405616641,
0.027263805270195007,
0.005006982944905758,
-0.07163666933774948,
-0.00806027464568615,
-0.0021780633833259344,
0.007928692735731602,
0.015581496991217136,
0.024297412484884262,
0.026907386258244514,
0.03978431224822998,
0.018868179991841316,
0.048015449196100235,
0.02417634427547455,
0.004034523386508226,
-0.12120016664266586,
0.1038355827331543,
0.03873922675848007,
0.02711399272084236,
-0.0352114737033844,
0.021595418453216553,
0.01960892230272293,
0.0862540602684021,
0.0008611410739831626,
0.01880645379424095,
-0.013090674765408039,
0.04554358869791031,
0.03415437415242195,
-0.013078049756586552,
0.019035086035728455,
0.025080762803554535,
0.001068214070983231,
-0.029492953792214394,
0.01733393222093582,
0.03462936729192734,
-0.0052694589830935,
-0.004668078385293484,
-0.03413056954741478,
0.006774277426302433,
-0.012926396913826466,
0.002261391608044505,
0.0064064436592161655,
0.025207268074154854,
0.027583109214901924,
-0.010666404850780964,
0.011673231609165668,
-0.008349364623427391,
-0.09325110912322998,
-0.052034392952919006,
-0.009381551295518875,
0.032169993966817856,
-0.08505440503358841,
0.46570491790771484,
-0.02671748958528042,
0.040990691632032394,
0.0793953612446785,
0.030587781220674515,
0.002349601360037923,
-0.02515534684062004,
0.02062859572470188,
-0.07199379801750183,
-0.007739726919680834,
0.0007676199893467128,
0.0511055625975132,
0.01753333769738674,
0.05670583248138428,
-0.04192420467734337,
0.04030992090702057,
0.05079040303826332,
0.07606136053800583,
0.011728329584002495,
0.013045021332800388,
-0.014837371185421944,
-0.04407087340950966,
0.01693626493215561,
0.013511061668395996,
0.000264596426859498,
-0.03570814058184624,
-0.10596609115600586,
0.021588139235973358,
0.06183595955371857,
0.007880349643528461,
-0.03491690382361412,
0.0546918660402298,
-0.05057433247566223,
-0.045806314796209335,
0.01455716136842966,
0.011528427712619305,
-0.0067362128756940365,
0.02607625536620617,
-0.04400677606463432,
0.044164080172777176,
0.016616495326161385,
0.024083519354462624,
-0.002469213679432869,
0.02310207113623619,
-0.063795305788517,
-0.005113597027957439,
0.12513044476509094,
0.05086269974708557,
-0.048544611781835556,
0.010702157393097878,
-0.006943994667381048,
0.005969548132270575,
0.011499335989356041,
0.0036827262956649065,
-0.07849470525979996,
0.01634308136999607,
-0.0032168577890843153,
0.08768509328365326,
-0.016935326159000397,
-0.048150237649679184,
-0.014739696867763996,
-0.0253769401460886,
0.0021918881684541702,
-0.05872061103582382,
0.005182079039514065,
0.07772568613290787,
-0.08110668510198593,
-0.0263984277844429,
-0.006445642560720444,
-0.003483491949737072,
-0.07173421233892441,
0.021493583917617798,
-0.025644443929195404,
-0.0582130067050457,
0.017994839698076248,
0.06845773011445999,
-0.004387021530419588,
-0.03961491584777832,
0.005801696330308914,
0.018532563000917435,
0.02282385341823101,
0.016810908913612366,
-0.031876180320978165,
-0.012683836743235588,
-0.018195630982518196,
-0.06066809967160225,
-0.06030305102467537,
-0.005468363407999277,
-0.023744814097881317,
0.028215525671839714,
-0.01947827637195587,
-0.02006632462143898,
-0.05610444024205208,
-0.07934555411338806,
0.0629933699965477,
-0.08241894841194153,
-0.053386688232421875,
0.005041428841650486,
-0.001596371061168611,
-0.0420224592089653,
-0.010702929459512234,
-0.04920968785881996,
-0.03072194568812847,
-0.03942782059311867,
0.022702965885400772,
-0.0031697035301476717,
0.04901289567351341,
0.017348788678646088,
-0.050220098346471786,
0.1197153627872467,
0.0379011407494545,
-0.021679839119315147,
-0.016798265278339386,
0.03423615172505379,
0.023193439468741417,
-0.0015582283958792686,
-0.009701100178062916,
0.0032092847395688295,
0.007984825409948826,
0.004732280969619751,
0.008124668151140213,
0.00636465335264802,
-0.004603099077939987,
-0.016552040353417397,
-0.29025712609291077,
-0.05316911265254021,
-0.030011523514986038,
0.005044740624725819,
-0.009961112402379513,
-0.06668061763048172,
0.012975567020475864,
-0.031317923218011856,
0.004265286028385162,
-0.005936273839324713,
0.052693698555231094,
-0.03328930586576462,
-0.008307951502501965,
-0.051789820194244385,
0.009237384423613548,
0.011809451505541801,
-0.031073017045855522,
-0.016224252060055733,
-0.015242984518408775,
0.014962321147322655,
0.011521901935338974,
-0.0015731301391497254,
-0.026429828256368637,
-0.05568031594157219,
0.0022211112082004547,
-0.006893187761306763,
0.0946803018450737,
0.07675129175186157,
0.032380327582359314,
-0.011237080208957195,
0.03824048861861229,
0.008094126358628273,
0.03747786208987236,
-0.13526347279548645,
-0.014473306015133858,
-0.03270716592669487,
0.004443977493792772,
-0.076240174472332,
0.004812261555343866,
-0.0581684336066246,
-0.10609765350818634,
0.02216196246445179,
-0.04121400788426399,
-0.04243893176317215,
-0.12185312807559967,
0.015015434473752975,
-0.031512558460235596,
-0.017998982220888138,
-0.03405503183603287,
0.06464459747076035,
0.03806779906153679,
-0.019755786284804344,
-0.013415047898888588,
-0.012398310005664825,
0.016025768592953682,
-0.02975301817059517,
-0.09936094284057617,
0.02746153064072132,
-0.03603256493806839,
-0.002394902752712369,
-0.0165261197835207,
0.04687763378024101,
0.030600223690271378,
-0.044459979981184006,
0.0026687094941735268,
0.019526680931448936,
-0.022385308519005775,
0.02575891651213169,
0.008231689222157001,
0.018320970237255096,
-0.023107361048460007,
0.06750860065221786,
0.00224863039329648,
-0.013812116347253323,
0.03278770297765732,
0.0032551302574574947,
-0.034944649785757065,
0.037536270916461945,
-0.02492351084947586,
-0.01013999804854393,
0.008538869209587574,
-0.02838132716715336,
0.04146549850702286,
-0.012161771766841412,
-0.05786839872598648,
-0.015714578330516815,
0.005205558612942696,
-0.06097423657774925,
0.09687347710132599,
0.04115815833210945,
-0.011659593321383,
0.024883925914764404,
-0.029794087633490562,
-0.06194629147648811,
0.12006036937236786,
-0.005001560319215059,
-0.24559283256530762,
0.004644093103706837,
0.03235286846756935,
0.08020469546318054,
-0.0009658714407123625,
0.03335271775722504,
0.03260781615972519,
-0.0016612751642242074,
0.0007918190094642341,
0.05015050247311592,
0.003549285465851426,
0.03846018388867378,
0.004103893414139748,
0.009566755965352058,
0.0054471613839268684,
-0.028619468212127686,
0.005274259019643068,
0.024617034941911697,
0.0023424518294632435,
0.00899554044008255,
0.02143595926463604,
0.0046026380732655525,
0.12915988266468048,
0.02984635718166828,
0.006646179594099522,
0.02870100922882557,
0.008169355802237988,
-0.0013073094887658954,
0.035177625715732574,
-0.019788509234786034,
-0.01365384366363287,
-0.009703017771244049,
-0.016083672642707825,
0.047590307891368866,
0.042081959545612335,
-0.093041330575943,
-0.04591672495007515,
0.03189205378293991,
0.03263377398252487,
-0.019298149272799492,
0.03798605874180794,
0.007242072839289904,
0.006787221413105726,
0.03270468860864639,
0.09803866595029831,
-0.02534244954586029,
-0.032252632081508636,
-0.01887604594230652,
-0.06873100996017456,
-0.011725363321602345,
-0.013359501957893372,
-0.04674012213945389,
0.024771975353360176,
0.018331270664930344,
0.01899927295744419,
0.06329044699668884,
0.033670246601104736,
-0.03454509377479553,
0.016606416553258896,
-0.013664210215210915,
-0.015512453392148018,
0.007016233168542385,
0.09954661130905151,
0.0165222380310297,
0.026875346899032593
] | [
-0.033757757395505905,
0.020620768889784813,
0.03882276639342308,
0.04057767242193222,
0.01377794984728098,
-0.0037460250314325094,
0.00703269662335515,
0.004465281032025814,
0.030894406139850616,
-0.0009026791085489094,
0.001230208552442491,
0.009207400493323803,
0.005510998889803886,
-0.016326898708939552,
0.02127925679087639,
-0.00383482757024467,
0.030077267438173294,
-0.004032316617667675,
0.0076129320077598095,
0.035282500088214874,
0.014363342896103859,
0.003716676263138652,
0.0016235208604484797,
0.019793152809143066,
-0.03170686215162277,
0.016267387196421623,
0.011847670190036297,
-0.043119579553604126,
0.021007830277085304,
-0.1520635038614273,
0.004033319652080536,
0.0012399076949805021,
-0.010631388053297997,
-0.0036363862454891205,
0.0007748326752334833,
-0.012471159920096397,
-0.0069244843907654285,
0.03521835431456566,
0.00625265296548605,
-0.045024573802948,
0.012555832974612713,
-0.052111849188804626,
0.03163754567503929,
0.023720186203718185,
-0.01756288670003414,
-0.025340966880321503,
0.00494227884337306,
-0.002650685142725706,
-0.052469562739133835,
-0.02111649513244629,
-0.02784617617726326,
-0.015775974839925766,
-0.03861352056264877,
-0.0009301663376390934,
0.0009940119925886393,
0.005840622819960117,
0.015616600401699543,
0.02163090929389,
0.04064425826072693,
-0.006124737672507763,
0.01873099058866501,
-0.01828603632748127,
-0.06721999496221542,
-0.019355235621333122,
-0.013349790126085281,
0.01795104704797268,
-0.010012799873948097,
0.006425181869417429,
-0.012208998203277588,
0.0071408506482839584,
-0.027434363961219788,
-0.00014422294043470174,
-0.014919870533049107,
-0.03333272039890289,
0.007701345719397068,
0.013449441641569138,
0.005542885512113571,
-0.040772803127765656,
-0.0068976436741650105,
0.021714018657803535,
-0.033288657665252686,
0.029815686866641045,
0.03223390877246857,
0.017544765025377274,
0.023262498900294304,
-0.009917497634887695,
-0.016614742577075958,
0.004192783031612635,
0.03356722369790077,
0.0010102770756930113,
-0.003686775453388691,
0.02729877643287182,
-0.011759038083255291,
0.04032272845506668,
-0.11055383086204529,
-0.024183141067624092,
-0.05601776763796806,
-0.014847544953227043,
-0.02039884403347969,
0.8531450033187866,
0.01235990785062313,
0.06726808100938797,
0.03722129389643669,
0.03839478641748428,
0.013902029953897,
-0.019149575382471085,
0.0187382735311985,
-0.0028399210423231125,
-0.002492498140782118,
-0.024339906871318817,
0.020085496827960014,
0.02063935622572899,
0.007362358272075653,
0.030623633414506912,
0.028914857655763626,
0.030650928616523743,
0.002398461801931262,
0.022724200040102005,
0.015721214935183525,
0.01156077440828085,
0.0337740033864975,
0.012464221566915512,
0.007638055365532637,
-0.026474548503756523,
0.00009362348646391183,
-0.16722938418388367,
-0.001193077303469181,
-6.777439045308612e-33,
0.02736753784120083,
0.005955372471362352,
0.025918422266840935,
0.007037235423922539,
0.0005169485812075436,
-0.010333199985325336,
0.017949970439076424,
0.011280370876193047,
0.00518991332501173,
-0.024889422580599785,
-0.0020464970730245113,
-0.022915786132216454,
0.011562522500753403,
-0.03560388833284378,
0.04208345711231232,
-0.015535312704741955,
-0.012797502800822258,
0.034143418073654175,
0.010017208755016327,
0.04132350906729698,
0.017736656591296196,
0.042728353291749954,
-0.01983417198061943,
-0.008014368824660778,
0.01419812347739935,
0.020423155277967453,
-0.006837213411927223,
0.009773945435881615,
0.0050605544820427895,
-0.03847881779074669,
-0.023489268496632576,
0.012774715200066566,
-0.008309359662234783,
-0.031075600534677505,
-0.010786698199808598,
-0.03353223204612732,
-0.02210156060755253,
0.012898045592010021,
-0.009482047520577908,
-0.020743193104863167,
-0.064750537276268,
0.009335221722722054,
-0.03207758814096451,
-0.026159053668379784,
-0.03684714064002037,
-0.017448903992772102,
0.007468571420758963,
0.02416726015508175,
0.00488972058519721,
0.0018602452473714948,
0.008904554881155491,
-0.030090466141700745,
-0.012904832139611244,
0.0018282164819538593,
-0.00406684260815382,
0.0029579265974462032,
-0.007918248884379864,
0.005872944835573435,
0.0355960950255394,
0.029201289638876915,
0.020298520103096962,
-0.00020832117297686636,
-0.004944152198731899,
0.020919952541589737,
0.0025074295699596405,
0.0064781904220581055,
-0.012807435356080532,
-0.012905522249639034,
-0.0150855528190732,
0.00619862787425518,
-0.05644047632813454,
0.02115107700228691,
0.0012133585987612605,
-0.013222303241491318,
0.022985411807894707,
0.0033212031703442335,
-0.0058322628028690815,
0.020546089857816696,
-0.03653642162680626,
0.03525390103459358,
0.0018130301032215357,
-0.004057100974023342,
0.004477525595575571,
-0.045528117567300797,
0.006542918737977743,
-0.011863064020872116,
0.010820201598107815,
-0.013691795989871025,
-0.011041228659451008,
0.018557103350758553,
0.025507798418402672,
0.01838037557899952,
0.0026568740140646696,
-0.0002923612482845783,
-0.0378388874232769,
7.618406805670077e-33,
0.007496556267142296,
-0.034092359244823456,
0.008620178326964378,
-0.0001492666342528537,
0.02107754535973072,
-0.003467508591711521,
0.01127002201974392,
-0.010592710226774216,
-0.05085426941514015,
0.02452746592462063,
-0.029796697199344635,
-0.004827345721423626,
-0.03228156641125679,
0.028121665120124817,
0.03137623146176338,
-0.011106082238256931,
0.03030693344771862,
-0.028352372348308563,
0.007103054318577051,
-0.0012283897958695889,
-0.020697182044386864,
-0.0012829131446778774,
-0.004562340676784515,
-0.0012025733012706041,
0.01603154093027115,
0.05642947927117348,
0.005562120117247105,
0.026351705193519592,
0.020055236294865608,
-0.008734489791095257,
-0.01398231741040945,
0.004292360041290522,
0.018969986587762833,
0.01055854745209217,
-0.028526708483695984,
0.033964429050683975,
-0.016565464437007904,
-0.016506096348166466,
0.020950643345713615,
-0.01661868952214718,
0.008075239136815071,
0.02589862234890461,
0.015501482412219048,
0.03355429321527481,
0.013201171532273293,
0.01156625896692276,
0.025912849232554436,
0.011189550161361694,
-0.029354706406593323,
0.013924703001976013,
0.006990630645304918,
-0.0052727642469108105,
0.013920353725552559,
0.014082420617341995,
-0.013456945307552814,
-0.027332602068781853,
0.0036983354948461056,
-0.005671538412570953,
0.00673629529774189,
-0.02368905209004879,
-0.021258171647787094,
0.01851087249815464,
-0.017942752689123154,
0.0013931815046817064,
-0.022176846861839294,
-0.005388603545725346,
0.010447249747812748,
0.012759952805936337,
0.016876423731446266,
0.04765073582530022,
-0.010252448730170727,
0.011269724927842617,
-0.024134987965226173,
0.03094661422073841,
0.03532613441348076,
0.00041272694943472743,
-0.013992968015372753,
-0.009274247102439404,
-0.038189250975847244,
-0.0062671140767633915,
0.006107635796070099,
0.038818422704935074,
0.0056609115563333035,
-0.05095493048429489,
-0.020259926095604897,
0.04390108212828636,
-0.01169547438621521,
0.027851128950715065,
0.040750689804553986,
-0.009209227748215199,
-0.009844992309808731,
-0.009729349985718727,
-0.011315521784126759,
0.03238637000322342,
0.0031412350945174694,
-1.2971958618379631e-8,
-0.009043251164257526,
-0.01881503313779831,
-0.01049558725208044,
0.011053968220949173,
0.0033885787706822157,
0.01918930746614933,
0.003197411773726344,
-0.0165708027780056,
-0.0037683809641748667,
0.016487009823322296,
0.05265272781252861,
-0.05534100905060768,
-0.0230847354978323,
-0.001013278029859066,
0.011824904941022396,
-0.07251019775867462,
0.001376344240270555,
0.012081373482942581,
0.03600342571735382,
0.030520563945174217,
0.045062173157930374,
0.03754085302352905,
-0.018225667998194695,
-0.018376795575022697,
0.04081572964787483,
-0.01147824339568615,
-0.0052337064407765865,
-0.06456415355205536,
-0.01687205210328102,
0.023591620847582817,
0.006144162267446518,
-0.034209612756967545,
-0.022230777889490128,
0.02927285060286522,
-0.03366028890013695,
-0.04733174294233322,
0.019975369796156883,
-0.01938202790915966,
-0.0018407006282359362,
0.0002707586681935936,
0.001720408326946199,
-0.01871090568602085,
0.013655539602041245,
-0.016568947583436966,
-0.03719249740242958,
-0.004059175029397011,
-0.021022340282797813,
-0.04224979877471924,
0.042311541736125946,
-0.014107749797403812,
-0.03831968083977699,
-0.016315583139657974,
0.02105959691107273,
0.013381862081587315,
0.007829035632312298,
0.01724735088646412,
0.02348288893699646,
-0.019130734726786613,
-0.05094002187252045,
-0.025220204144716263,
0.018451156094670296,
0.0111832981929183,
-0.023621995002031326,
-0.028177831321954727
] | the-willpower-instinct-reducing-time-spent-mindlessly-scrolling-for-things-to-read | https://markhneedham.com/blog/2015/06/12/the-willpower-instinct-reducing-time-spent-mindlessly-scrolling-for-things-to-read |
false | 2015-06-25 23:14:51 | R: Scraping Wimbledon draw data | [
"r-2",
"rvest"
] | [
"R"
] | Given Wimbledon starts next week I wanted to find a data set to explore before it gets underway. Having searched around and failed to find one I had to resort to scraping the http://www.atpworldtour.com/en/scores/archive/wimbledon/540/2013/results[ATP World Tour's event page] which displays the matches in an easy to access format.
We'll be using the Wimbledon 2013 draw since Andy Murray won that year! This is what the page looks like:
image::{{<siteurl>}}/uploads/2015/06/2015-06-25_23-47-16.png[2015 06 25 23 47 16,599]
Each match is in its own row of a table and each column has a class attribute which makes it really easy to scrape. We'll be using R's rvest again. I wrote the following script which grabs the player names, seedings and score of the match and stores everything in a data frame:
[source,r]
----
library(rvest)
library(dplyr)
library(stringr)
s = html_session("http://www.atpworldtour.com/en/scores/archive/wimbledon/540/2013/results")
rows = s %>% html_nodes("div#scoresResultsContent tr")
matches = data.frame()
for(row in rows) {
players = row %>% html_nodes("td.day-table-name a")
seedings = row %>% html_nodes("td.day-table-seed")
score = row %>% html_node("td.day-table-score a")
if(!is.null(score)) {
player1 = players[1] %>% html_text() %>% str_trim()
seeding1 = ifelse(!is.na(seedings[1]), seedings[1] %>% html_node("span") %>% html_text() %>% str_trim(), NA)
player2 = players[2] %>% html_text() %>% str_trim()
seeding2 = ifelse(!is.na(seedings[2]), seedings[2] %>% html_node("span") %>% html_text() %>% str_trim(), NA)
matches = rbind(data.frame(winner = player1,
winner_seeding = seeding1,
loser = player2,
loser_seeding = seeding2,
score = score %>% html_text() %>% str_trim(),
round = round), matches)
} else {
round = row %>% html_node("th") %>% html_text()
}
}
----
This is what the data frame looks like:
[source,r]
----
> matches %>% sample_n(10)
winner winner_seeding loser loser_seeding score round
61 Wayne Odesnik (4) Thiago Alves <NA> 61 64 1st Round Qualifying
4 Danai Udomchoke <NA> Marton Fucsovics <NA> 61 57 1210 1st Round Qualifying
233 Jerzy Janowicz (24) Lukasz Kubot <NA> 75 64 64 Quarter-Finals
90 Malek Jaziri <NA> Illya Marchenko (9) 674 75 64 2nd Round Qualifying
222 David Ferrer (4) Alexandr Dolgopolov (26) 676 762 26 61 62 Round of 32
54 Michal Przysiezny (11) Dusan Lojda <NA> 26 63 62 1st Round Qualifying
52 Go Soeda (13) Nikola Mektic <NA> 62 60 1st Round Qualifying
42 Ruben Bemelmans (23) Jonathan Dasnieres de Veigy <NA> 63 64 1st Round Qualifying
31 Mirza Basic <NA> Tsung-Hua Yang <NA> 674 33 (RET) 1st Round Qualifying
179 Jurgen Melzer <NA> Julian Reister (Q) 36 762 765 62 Round of 64
----
It also contains qualifying matches which I'm not so interested in. Let's strip those out:
[source,r]
----
main_matches = matches %>% filter(!grepl("Qualifying", round)) %>% mutate(year = 2013)
----
We'll also put a column in for 'year' so that we can handle the draws for multiple years later on.
Next I wanted to clean up the data a bit. I'd like to be able to do some queries based on the seedings of the players but at the moment that column contains numeric brackets in values as well as some other values which indicate whether a player is a qualifier, lucky loser or wildcard entry.
I started by adding a column to store this extra information:
[source,r]
----
main_matches$winner_type = NA
main_matches$winner_type[main_matches$winner_seeding == "(WC)"] = "wildcard"
main_matches$winner_type[main_matches$winner_seeding == "(Q)"] = "qualifier"
main_matches$winner_type[main_matches$winner_seeding == "(LL)"] = "lucky loser"
main_matches$loser_type = NA
main_matches$loser_type[main_matches$loser_seeding == "(WC)"] = "wildcard"
main_matches$loser_type[main_matches$loser_seeding == "(Q)"] = "qualifier"
main_matches$loser_type[main_matches$loser_seeding == "(LL)"] = "lucky loser"
----
And then I cleaned up the existing column:
[source,r]
----
tidy_seeding = function(seeding) {
no_brackets = gsub("\\(|\\)", "", seeding)
return(gsub("WC|Q|L", NA, no_brackets))
}
main_matches = main_matches %>%
mutate(winner_seeding = as.numeric(tidy_seeding(winner_seeding)),
loser_seeding = as.numeric(tidy_seeding(loser_seeding)))
----
Now we can write a query against the data frame to find out when the underdog won i.e. a player with no seeding beat a player with a seeding or a lower seeded player beat a higher seeded one:
[source,r]
----
> main_matches %>% filter((winner_seeding > loser_seeding) | (is.na(winner_seeding) & !is.na(loser_seeding)))
winner winner_seeding loser loser_seeding score round year
1 Jurgen Melzer NA Fabio Fognini 30 675 75 63 62 Round of 128 2013
2 Bernard Tomic NA Sam Querrey 21 766 763 36 26 63 Round of 128 2013
3 Feliciano Lopez NA Gilles Simon 19 62 64 7611 Round of 128 2013
4 Ivan Dodig NA Philipp Kohlschreiber 16 46 676 763 63 21 (RET) Round of 128 2013
5 Viktor Troicki NA Janko Tipsarevic 14 63 64 765 Round of 128 2013
6 Lleyton Hewitt NA Stan Wawrinka 11 64 75 63 Round of 128 2013
7 Steve Darcis NA Rafael Nadal 5 764 768 64 Round of 128 2013
8 Fernando Verdasco NA Julien Benneteau 31 761 764 64 Round of 64 2013
9 Grega Zemlja NA Grigor Dimitrov 29 36 764 36 64 119 Round of 64 2013
10 Adrian Mannarino NA John Isner 18 11 (RET) Round of 64 2013
11 Igor Sijsling NA Milos Raonic 17 75 64 764 Round of 64 2013
12 Kenny De Schepper NA Marin Cilic 10 (W/O) Round of 64 2013
13 Ernests Gulbis NA Jo-Wilfried Tsonga 6 36 63 63 (RET) Round of 64 2013
14 Sergiy Stakhovsky NA Roger Federer 3 675 765 75 765 Round of 64 2013
15 Lukasz Kubot NA Benoit Paire 25 61 63 64 Round of 32 2013
16 Kenny De Schepper NA Juan Monaco 22 64 768 64 Round of 32 2013
17 Jerzy Janowicz 24 Nicolas Almagro 15 766 63 64 Round of 32 2013
18 Andreas Seppi 23 Kei Nishikori 12 36 62 674 61 64 Round of 32 2013
19 Bernard Tomic NA Richard Gasquet 9 767 57 75 765 Round of 32 2013
20 Juan Martin Del Potro 8 David Ferrer 4 62 64 765 Quarter-Finals 2013
21 Andy Murray 2 Novak Djokovic 1 64 75 64 Finals 2013
----
There are actually very few times when a lower seeded player beat a higher seeded one but there are quite a few instances of non seeds beating seeds. We've got 21 occurrences of underdogs winning out of a total of 127 matches.
Let's filter that set of rows and see which seeds lost in the first round:
[source,r]
----
> main_matches %>% filter(round == "Round of 128" & !is.na(loser_seeding))
winner winner_seeding loser loser_seeding score round year
1 Jurgen Melzer NA Fabio Fognini 30 675 75 63 62 Round of 128 2013
2 Bernard Tomic NA Sam Querrey 21 766 763 36 26 63 Round of 128 2013
3 Feliciano Lopez NA Gilles Simon 19 62 64 7611 Round of 128 2013
4 Ivan Dodig NA Philipp Kohlschreiber 16 46 676 763 63 21 (RET) Round of 128 2013
5 Viktor Troicki NA Janko Tipsarevic 14 63 64 765 Round of 128 2013
6 Lleyton Hewitt NA Stan Wawrinka 11 64 75 63 Round of 128 2013
7 Steve Darcis NA Rafael Nadal 5 764 768 64 Round of 128 2013
----
Rafael Nadal is the most prominent but Stan Wawrinka also lost in the first round that year which I'd forgotten about! Next let's make the 'round' column an ordered factor one so that we can sort matches by round:
[source,r]
----
main_matches$round = factor(main_matches$round, levels = c("Round of 128", "Round of 64", "Round of 32", "Round of 16", "Quarter-Finals", "Semi-Finals", "Finals"))
> main_matches$round
...
Levels: Round of 128 Round of 64 Round of 32 Round of 16 Quarter-Finals Semi-Finals Finals
----
We can now really easily work out which unseeded players went the furthest in the tournament:
[source,r]
----
> main_matches %>% filter(is.na(loser_seeding)) %>% arrange(desc(round)) %>% head(5)
winner winner_seeding loser loser_seeding score round year
1 Jerzy Janowicz 24 Lukasz Kubot NA 75 64 64 Quarter-Finals 2013
2 Andy Murray 2 Fernando Verdasco NA 46 36 61 64 75 Quarter-Finals 2013
3 Fernando Verdasco NA Kenny De Schepper NA 64 64 64 Round of 16 2013
4 Lukasz Kubot NA Adrian Mannarino NA 46 63 36 63 64 Round of 16 2013
5 Jerzy Janowicz 24 Jurgen Melzer NA 36 761 64 46 64 Round of 16 2013
----
Next up I thought it'd be cool to write a function which showed which round each player exited in:
[source,r]
----
round_reached = function(player, main_matches) {
furthest_match = main_matches %>%
filter(winner == player | loser == player) %>%
arrange(desc(round)) %>%
head(1)
return(ifelse(furthest_match$winner == player, "Winner", as.character(furthest_match$round)))
}
----
Our function isn't vectorisable - it only works if we pass in a single player at a time so we'll have to group the data frame by player before calling it. Let's check it works by seeing how far Andy Murray and Rafael Nadal got:
[source,r]
----
> round_reached("Rafael Nadal", main_matches)
[1] "Round of 128"
> round_reached("Andy Murray", main_matches)
[1] "Winner"
----
Great. What about if we try it against each of the top 8 seeds?
[source,r]
----
> rbind(main_matches %>% filter(winner_seeding %in% 1:8) %>% mutate(name = winner, seeding = winner_seeding),
main_matches %>% filter(loser_seeding %in% 1:8) %>% mutate(name = loser, seeding = loser_seeding)) %>%
select(name, seeding) %>%
distinct() %>%
arrange(seeding) %>%
group_by(name) %>%
mutate(round_reached = round_reached(name, main_matches))
Source: local data frame [8 x 3]
Groups: name
name seeding round_reached
1 Novak Djokovic 1 Finals
2 Andy Murray 2 Winner
3 Roger Federer 3 Round of 64
4 David Ferrer 4 Quarter-Finals
5 Rafael Nadal 5 Round of 128
6 Jo-Wilfried Tsonga 6 Round of 64
7 Tomas Berdych 7 Quarter-Finals
8 Juan Martin Del Potro 8 Semi-Finals
----
Neat. Next up I want to do a comparison between the round they reached and the round you'd expect them to get to given their seeding but that's for the weekend!
I've put a CSV file containing all the data in https://gist.github.com/mneedham/8c2b46d960c2208e9961[this gist] in case you want to play with it. I'm planning to scrape a few more years worth of data before Monday and add in some extra fields as well but in case I don't get around to it the https://gist.github.com/mneedham/8c2b46d960c2208e9961#file-wimbledon-r[full script in this blog post is included in the gist] as well so feel free to tweak it if tennis is your thing. | null | null | [
-0.018347499892115593,
-0.009871121495962143,
0.03329768776893616,
0.0237895417958498,
0.07485240697860718,
-0.02426776848733425,
0.01459766086190939,
0.02841983363032341,
0.020976431667804718,
-0.00009177100582746789,
0.0024705328978598118,
-0.02621270716190338,
-0.059157587587833405,
0.016465386375784874,
0.0026587771717458963,
0.09731920063495636,
0.04796105995774269,
0.006082222331315279,
0.04607982560992241,
-0.028794633224606514,
0.005596153903752565,
0.047619231045246124,
-0.013433361425995827,
0.04112334921956062,
0.05482136830687523,
-0.016357511281967163,
0.02926602214574814,
0.006344744935631752,
-0.07068254053592682,
0.00804994162172079,
0.05927896127104759,
-0.007112659513950348,
0.008973551914095879,
-0.0057970373891294,
0.028341200202703476,
-0.043413031846284866,
0.00160573935136199,
0.015525021590292454,
-0.008634982630610466,
-0.009680616669356823,
-0.08480784296989441,
0.008963667787611485,
-0.01589074544608593,
0.02869768999516964,
-0.011795145459473133,
0.020268555730581284,
-0.017994511872529984,
0.029579132795333862,
0.0057195136323571205,
0.016641968861222267,
-0.04700743034482002,
0.05409541726112366,
-0.013084597885608673,
-0.002869331743568182,
-0.009716377593576908,
0.04540328308939934,
0.030670953914523125,
-0.049631185829639435,
0.021666401997208595,
-0.05667462572455406,
-0.002720167627558112,
-0.0010377453872933984,
0.009776710532605648,
0.022655611857771873,
0.019213296473026276,
-0.030628472566604614,
0.008050892502069473,
0.03537265956401825,
-0.02044527418911457,
0.011323677375912666,
-0.02101980336010456,
-0.021767042577266693,
-0.013367857784032822,
-0.021840525791049004,
0.026676151901483536,
-0.034548722207546234,
-0.022490747272968292,
0.06597541272640228,
0.01576324552297592,
0.017952531576156616,
-0.012716964818537235,
-0.0004416602896526456,
0.006432743743062019,
0.037437718361616135,
0.008737069554626942,
-0.05574112758040428,
-0.04586166515946388,
-0.03519221767783165,
-0.04949285089969635,
0.06628342717885971,
0.004924701992422342,
-0.030153585597872734,
0.015846772119402885,
0.024769850075244904,
-0.029490318149328232,
-0.007618655450642109,
0.009665989316999912,
-0.0154161611571908,
-0.013503054156899452,
-0.039712414145469666,
-0.03305867314338684,
-0.03251963108778,
0.044215939939022064,
0.009776489809155464,
-0.10190972685813904,
0.021286021918058395,
-0.028151314705610275,
0.014177015982568264,
0.021921418607234955,
0.02942514792084694,
-0.029160568490624428,
-0.01562018133699894,
-0.003974239807575941,
-0.00018517824355512857,
-0.06949680298566818,
0.0691651850938797,
0.04143495485186577,
-0.03750743716955185,
-0.002275286242365837,
0.031041566282510757,
0.030551208183169365,
0.018563730642199516,
-0.0005295921000652015,
0.08239971101284027,
-0.006518736481666565,
0.036383531987667084,
0.028579821810126305,
0.043124664574861526,
-0.008053099736571312,
-0.058518342673778534,
0.009437712840735912,
0.062463656067848206,
0.002678473247215152,
0.001601349445991218,
-0.01955641433596611,
-0.014257445000112057,
-0.025498654693365097,
-0.04787999764084816,
0.08400268852710724,
0.047596681863069534,
0.028451252728700638,
-0.007852240465581417,
0.007394213695079088,
0.02230312116444111,
0.05130152404308319,
-0.01397015806287527,
0.04398496076464653,
-0.044613685458898544,
-0.04024098068475723,
-0.009980477392673492,
0.03736569732427597,
0.018676437437534332,
0.04089895263314247,
-0.030402880162000656,
-0.00045134438551031053,
0.0942278802394867,
0.05573226884007454,
-0.00029815969173796475,
-0.017154410481452942,
-0.004849236458539963,
0.050524480640888214,
0.013852477073669434,
0.00918742548674345,
0.05497207120060921,
-0.001633632113225758,
-0.023218823596835136,
0.010601895861327648,
0.04990173876285553,
-0.02515030838549137,
-0.005170860327780247,
-0.07260718196630478,
-0.055042315274477005,
0.09680544584989548,
-0.03728942573070526,
0.002079466823488474,
0.026753639802336693,
0.06815331429243088,
0.023657897487282753,
0.03358640894293785,
0.0023385921958833933,
-0.06714113056659698,
0.013188157230615616,
0.016638703644275665,
0.03913445770740509,
0.04095982015132904,
-0.015171514824032784,
0.10508140176534653,
0.04690553992986679,
-0.006530262064188719,
0.06034717708826065,
-0.08893781900405884,
-0.06650330871343613,
-0.046521659940481186,
-0.027472371235489845,
0.060516051948070526,
-0.029153890907764435,
0.03992458060383797,
0.06572495400905609,
0.010545552708208561,
0.05073850601911545,
0.002995520131662488,
0.03156568855047226,
0.01602843590080738,
-0.0435134693980217,
-0.07385428249835968,
0.009346915408968925,
0.030611911788582802,
-0.04484610632061958,
-0.015940019860863686,
0.03350566700100899,
-0.03132644295692444,
0.013506213203072548,
0.004775654058903456,
-0.013455481268465519,
0.013710550963878632,
0.017420776188373566,
0.06478017568588257,
0.009270619601011276,
0.0373588390648365,
-0.049215223640203476,
0.04396139457821846,
0.03244892135262489,
-0.0066100540570914745,
-0.01838362030684948,
-0.001046202378347516,
0.13117316365242004,
0.03251487761735916,
-0.011435390450060368,
-0.05866394564509392,
0.02991686761379242,
-0.02778415009379387,
-0.010629970580339432,
0.017412954941391945,
-0.025097955018281937,
-0.003685666248202324,
-0.01018725335597992,
-0.020876670256257057,
-0.04612637683749199,
0.0055806455202400684,
-0.03426771238446236,
0.0064937518909573555,
0.03678079694509506,
0.025067761540412903,
0.05065012350678444,
0.0022905205842107534,
-0.005269994959235191,
-0.01002628542482853,
-0.022270357236266136,
-0.025801900774240494,
-0.020157478749752045,
0.0268271341919899,
-0.02174932137131691,
-0.016676675528287888,
-0.019063714891672134,
-0.02872624062001705,
-0.009534215554594994,
-0.05537983775138855,
0.036958660930395126,
0.06048757582902908,
0.07077856361865997,
-0.028234008699655533,
0.015824779868125916,
-0.009640438482165337,
0.02575197070837021,
-0.02800355665385723,
-0.05593600496649742,
-0.04567347839474678,
-0.06245079264044762,
0.019666166976094246,
0.011549743823707104,
0.016024962067604065,
0.009794648736715317,
-0.024320630356669426,
0.005554667208343744,
-0.0114247752353549,
-0.0022634023334831,
0.021351085975766182,
-0.01435970701277256,
0.0076651861891150475,
0.011968431994318962,
-0.007831809110939503,
0.05451175570487976,
-0.028795693069696426,
-0.03854968026280403,
0.014576221816241741,
-0.050053440034389496,
0.012341676279902458,
-0.07961896061897278,
-0.0232390146702528,
0.004397218115627766,
-0.015089984983205795,
0.04647168144583702,
0.018061261624097824,
0.019495904445648193,
0.08165806531906128,
0.0018803630955517292,
0.0191249568015337,
0.010022876784205437,
-0.018631255254149437,
0.04691614583134651,
0.005999252200126648,
0.024373013526201248,
0.046484366059303284,
-0.04009716957807541,
0.0371965691447258,
-0.027108384296298027,
0.0036022912245243788,
-0.025740021839737892,
-0.26500973105430603,
0.029510797932744026,
0.009815115481615067,
-0.025730546563863754,
0.0374356284737587,
-0.027740469202399254,
0.0026862123049795628,
-0.017560461536049843,
-0.0076422616839408875,
-0.010601192712783813,
-0.00826211180537939,
-0.03637666255235672,
-0.028015995398163795,
0.03431669622659683,
0.033600978553295135,
0.03026052750647068,
-0.01216689869761467,
-0.03346925973892212,
0.007037436123937368,
0.04460618272423744,
0.011463720351457596,
-0.047978900372982025,
0.0056302230805158615,
0.025893712416291237,
0.04180911183357239,
0.0769745409488678,
-0.04771801829338074,
0.0017420826479792595,
-0.04382137954235077,
-0.02495945617556572,
0.020395010709762573,
-0.011735972948372364,
0.026880890130996704,
-0.01073220744729042,
-0.01016694214195013,
-0.012594526633620262,
0.06606443971395493,
-0.00672199996188283,
0.0018230881541967392,
0.02533029578626156,
-0.034771643579006195,
-0.026231801137328148,
-0.007628230843693018,
0.02249632589519024,
0.0858408510684967,
-0.0026083756238222122,
-0.04973308742046356,
0.0015951168024912477,
-0.02003992535173893,
0.06250842660665512,
-0.018790362402796745,
-0.02171487547457218,
-0.035205040127038956,
0.024975944310426712,
-0.03113107942044735,
-0.0024649756960570812,
-0.015020889230072498,
-0.025789311155676842,
-0.028931448236107826,
-0.0395788699388504,
-0.020992742851376534,
-0.04004271700978279,
-0.00031592295272275805,
-0.032439351081848145,
0.0004432561690919101,
-0.0674533098936081,
-0.029757024720311165,
-0.007429064717143774,
0.07861024141311646,
0.03202198073267937,
-0.02583540417253971,
0.003921473398804665,
-0.021392323076725006,
-0.09951859712600708,
-0.015753449872136116,
0.005432363133877516,
0.009647110477089882,
0.0029577077366411686,
-0.0030679856427013874,
0.04227657988667488,
-0.05484570562839508,
-0.04145479202270508,
0.015615196898579597,
0.011523975990712643,
0.03618979826569557,
-0.02712995558977127,
0.021937137469649315,
0.007209123112261295,
-0.015370653010904789,
-0.020673440769314766,
0.0812455266714096,
-0.05110195279121399,
-0.023616259917616844,
-0.013406055979430676,
-0.03381742537021637,
0.059536438435316086,
-0.006510700564831495,
-0.0021995832212269306,
0.02671678736805916,
0.04757475480437279,
0.014046779833734035,
-0.04812738299369812,
0.029085220769047737,
-0.02016480825841427,
-0.01521250605583191,
-0.013278248719871044,
-0.05716188624501228,
0.02004501409828663,
-0.0006701497477479279,
0.029281271621584892,
0.03278878703713417,
-0.0496504046022892,
-0.007307172287255526,
-0.03414903208613396,
0.0004372333933133632,
0.0010566568234935403,
0.028945492580533028,
-0.0032836091704666615,
-0.0034923406783491373,
-0.012396399863064289,
-0.06089313328266144,
0.0004851852427236736,
-0.027426425367593765,
-0.0288852546364069,
-0.05443330481648445,
-0.021823570132255554,
0.027607757598161697,
-0.03460119664669037,
-0.00690967682749033,
0.0002640410966705531,
0.0042472826316952705,
-0.005521989427506924,
0.04314931854605675,
-0.019413847476243973,
0.03488128259778023,
0.0023251185193657875,
-0.02921747788786888,
-0.03872104361653328,
0.01752474531531334,
0.0186076108366251,
-0.008600984700024128,
0.015055447816848755,
0.01762845553457737,
0.03383826091885567,
0.03537910059094429,
-0.004198507871478796,
0.014610279351472855,
-0.004442155361175537,
-0.0022247720044106245,
0.014763608574867249,
-0.0282320287078619,
0.007393920328468084,
0.03359166532754898,
-0.06184184178709984,
-0.020649336278438568,
-0.030085571110248566,
0.027288958430290222,
-0.02662215381860733,
-0.028992963954806328,
-0.04183321073651314,
-0.014763646759092808,
-0.020705172792077065,
-0.00026616768445819616,
-0.011453229933977127,
0.018036765977740288,
0.05176471918821335,
0.030890490859746933,
0.020482808351516724,
0.005419543012976646,
0.00431449618190527,
0.012897979468107224,
-0.021443119272589684,
-0.03435659408569336,
-0.01496831513941288,
-0.037445392459630966,
-0.018669292330741882,
0.022285599261522293,
0.022213783115148544,
-0.001010675448924303,
0.002186015946790576,
-0.013318449258804321,
-0.018825259059667587,
0.008341997861862183,
0.0416351743042469,
0.040385931730270386,
0.052181486040353775,
-0.027354640886187553,
0.012186667881906033,
0.006922763306647539,
-0.014741978608071804,
-0.010059194639325142,
0.004815542604774237,
-0.027903109788894653,
-0.013748392462730408,
-0.033440399914979935,
-0.06890290975570679,
0.02799767628312111,
0.032675448805093765,
-0.011837598867714405,
0.013185128569602966,
-0.014278063550591469,
-0.040202219039201736,
-0.028289861977100372,
0.05526575446128845,
0.05443278327584267,
-0.058646779507398605,
-0.010372849181294441,
-0.0010145821142941713,
-0.011882674880325794,
0.020307525992393494,
0.012700848281383514,
-0.06025414913892746,
0.01600050739943981,
0.0031252815388143063,
0.0391416922211647,
-0.031159495934844017,
-0.03726716712117195,
-0.03811744973063469,
0.003003619145601988,
0.007444068323820829,
0.0328223742544651,
-0.02391083724796772,
-0.013662189245223999,
0.010803718119859695,
-0.026400180533528328,
-0.0019408452790230513,
0.0011821199441328645,
-0.057841312140226364,
0.01310832891613245,
-0.02922149747610092,
0.022965475916862488,
-0.02329045906662941,
0.0076200407929718494,
0.03365546092391014,
-0.012757089920341969,
-0.005606463644653559,
-0.03601455315947533,
0.014422168955206871,
0.02634323574602604,
0.054405562579631805,
0.002618043217808008,
-0.004513667430728674,
-0.03851812332868576,
0.012393541634082794,
-0.03924108296632767,
-0.020267220214009285,
0.004653695039451122,
-0.015451356768608093,
0.0591370053589344,
0.04338198900222778,
0.003978219348937273,
0.019650040194392204,
-0.002456449903547764,
-0.04309714213013649,
0.03637409210205078,
-0.04847920313477516,
-0.03723212331533432,
-0.004248066805303097,
-0.057020097970962524,
0.053678300231695175,
-0.0017064986750483513,
0.013355990871787071,
-0.04071561619639397,
0.03699257969856262,
0.030767014250159264,
-0.005463096313178539,
0.03942260518670082,
0.01186622679233551,
0.030205881223082542,
-0.02220686711370945,
-0.003282790305092931,
-0.09347690641880035,
-0.009441441856324673,
0.039567507803440094,
-0.013806210830807686,
-0.009819301776587963,
-0.0073791928589344025,
-0.05743534117937088,
0.01491896715015173,
-0.06818395107984543,
-0.05697505548596382,
0.04022741690278053,
-0.016006218269467354,
-0.016708509996533394,
-0.011301487684249878,
-0.06318268179893494,
0.0045467945747077465,
0.05268402770161629,
-0.013282000087201595,
0.00642209080979228,
-0.035671405494213104,
0.03664762154221535,
-0.04133369028568268,
0.01757306046783924,
-0.021260928362607956,
-0.023832185193896294,
0.06527923792600632,
0.024705486372113228,
0.006162102799862623,
0.045363593846559525,
-0.04011707752943039,
0.02157164365053177,
0.0032978449016809464,
-0.0036787912249565125,
0.01382256206125021,
0.025461813434958458,
-0.015338207595050335,
-0.054620277136564255,
0.024490544572472572,
0.012218154035508633,
-0.024751348420977592,
-0.06533760577440262,
0.08455023169517517,
-0.00281161954626441,
-0.06641270220279694,
-0.046977449208498,
-0.008931764401495457,
-0.0440993532538414,
-0.019688494503498077,
-0.010637050494551659,
0.005360178649425507,
-0.05438011884689331,
0.05854368209838867,
0.005585731007158756,
0.0014671852113679051,
0.0637679323554039,
-0.0026757395826280117,
-0.011537885293364525,
0.01832437328994274,
0.09158293157815933,
0.10978230088949203,
0.041720740497112274,
-0.0158295426517725,
0.07771401852369308,
-0.012152434326708317,
-0.0668831467628479,
-0.009916898794472218,
-0.03376759588718414,
0.007912449538707733,
-0.023590199649333954,
0.008228420279920101,
0.0328374020755291,
-0.021894728764891624,
0.059293970465660095,
-0.004727097228169441,
-0.02879793383181095,
0.029669633135199547,
0.00782020017504692,
0.02948339655995369,
0.029968295246362686,
0.006519900169223547,
0.04367485269904137,
0.018304970115423203,
-0.032230038195848465,
0.038473524153232574,
-0.012370985932648182,
-0.025444524362683296,
0.0063558644615113735,
-0.039524976164102554,
0.0209016352891922,
-0.002954059513285756,
0.0433916300535202,
0.0750366598367691,
-0.01410789042711258,
-0.01789207011461258,
0.0017657710704952478,
0.03850044310092926,
0.020146697759628296,
0.030350174754858017,
-0.0012440282152965665,
-0.01717524044215679,
-0.043212853372097015,
-0.04141375422477722,
-0.013181432150304317,
-0.014074067585170269,
-0.01649717427790165,
0.003392745740711689,
-0.06663365662097931,
0.005776932463049889,
0.03827104717493057,
-0.011808809824287891,
-0.053359705954790115,
-0.03568904474377632,
-0.04669833555817604,
-0.06569434702396393,
-0.07624199986457825,
-0.028198154643177986,
0.023421527817845345,
-0.02180730178952217,
-0.02759801410138607,
-0.045329414308071136,
-0.01061319001019001,
-0.008571140468120575,
0.025865864008665085,
-0.06619621813297272,
-0.04187445715069771,
0.02392808347940445,
0.026676740497350693,
0.03407244756817818,
0.023285508155822754,
0.05284438282251358,
0.010050559416413307,
-0.02089659497141838,
-0.02867025136947632,
-0.009378875605762005,
0.04404968395829201,
-0.0007201018743216991,
0.0036746610421687365,
-0.09001916646957397,
0.03427299112081528,
-0.0027071000076830387,
-0.026116302236914635,
-0.06091257557272911,
0.014499249868094921,
0.010626080445945263,
0.007583913393318653,
0.05569111183285713,
-0.0341474749147892,
0.027793770655989647,
-0.04718460515141487,
-0.021804947406053543,
0.00795957911759615,
0.010900168679654598,
0.04203995689749718,
-0.02958734892308712,
0.08791732043027878,
0.027275659143924713,
0.012353040277957916,
-0.04996928200125694,
-0.027236225083470345,
-0.0032720561139285564,
-0.008427482098340988,
-0.06801832467317581,
-0.015572086907923222,
-0.07217550277709961,
-0.09154140949249268,
-0.034296415746212006,
0.015248473733663559,
-0.03074478544294834,
-0.026839621365070343,
0.004302689805626869,
0.03295445814728737,
0.001990429824218154,
0.004397478885948658,
-0.02653447538614273,
0.014140510000288486,
-0.028754403814673424,
-0.011649012565612793,
-0.018060434609651566,
0.048459433019161224,
-0.002133500063791871,
0.01587534323334694,
0.04103251174092293,
-0.03314961493015289,
0.017829807475209236,
-0.03397681564092636,
-0.0018415733939036727,
0.020969081670045853,
-0.011031090281903744,
-0.012176940217614174
] | [
-0.08121254295110703,
-0.01900579407811165,
-0.02607956901192665,
-0.028201527893543243,
0.08441337198019028,
-0.012708822265267372,
0.004534107632935047,
-0.00012751200119964778,
0.02909051440656185,
0.01518242247402668,
0.007713187951594591,
-0.06549110263586044,
-0.004849932622164488,
0.014814978465437889,
0.007562729995697737,
-0.01941302791237831,
-0.004995213821530342,
-0.07192730903625488,
-0.011722145602107048,
0.059435438364744186,
-0.030635856091976166,
-0.01490523386746645,
-0.049650292843580246,
-0.04956742003560066,
0.004126221407204866,
0.03591882437467575,
0.04968820884823799,
-0.012288878671824932,
-0.03841948136687279,
-0.19728705286979675,
0.00786617398262024,
-0.026248430833220482,
0.015608660876750946,
0.024645674973726273,
0.012738111428916454,
-0.014922614209353924,
0.0037316475063562393,
0.01616189442574978,
0.017147917300462723,
0.03095853514969349,
0.011753805913031101,
-0.010680834762752056,
-0.042495399713516235,
0.0051865121349692345,
0.05948639288544655,
0.007250544149428606,
-0.00526778306812048,
0.005642913281917572,
0.036301564425230026,
0.03987102583050728,
-0.05416237935423851,
0.020313121378421783,
-0.002259335946291685,
-0.03910738229751587,
0.004941166844218969,
0.04881385713815689,
0.05451572686433792,
0.039643771946430206,
0.010195990093052387,
0.04580381512641907,
0.03931853920221329,
0.017736151814460754,
-0.14629067480564117,
0.09765639901161194,
0.005646371282637119,
0.023262932896614075,
-0.045450031757354736,
0.04640590772032738,
0.025038007646799088,
0.0852447971701622,
-0.0004333084507379681,
-0.01950998418033123,
0.0053674886003136635,
0.05716584250330925,
0.02279910258948803,
-0.02253776043653488,
-0.02424767054617405,
0.01232741866260767,
-0.01722886972129345,
0.01437382958829403,
-0.03695658594369888,
-0.010598922148346901,
-0.039770808070898056,
-0.053642138838768005,
-0.039127666503190994,
0.02507585473358631,
-0.044324640184640884,
0.027393780648708344,
-0.012737119570374489,
0.019610418006777763,
0.028633274137973785,
0.024053027853369713,
-0.00647776760160923,
0.036954592913389206,
-0.11115434765815735,
-0.02596880868077278,
0.012430156581103802,
0.017463654279708862,
0.0013546858681365848,
0.40780848264694214,
0.011474871076643467,
0.018867462873458862,
0.03935786709189415,
0.05965114384889603,
-0.012836654670536518,
-0.05026889219880104,
-0.005916944704949856,
-0.04374920204281807,
0.009078143164515495,
-0.03460739552974701,
0.004049538169056177,
-0.03664311766624451,
0.06408213078975677,
-0.04209590330719948,
0.02486429736018181,
0.03371933102607727,
0.031215718016028404,
0.05779631808400154,
0.0037172692827880383,
0.014421793632209301,
-0.054996952414512634,
-0.015163733623921871,
-0.015010916627943516,
0.0060825105756521225,
-0.014011571183800697,
0.022620705887675285,
0.03127504140138626,
0.05822225287556648,
0.04048940911889076,
-0.008753218688070774,
0.06192803382873535,
-0.020601948723196983,
-0.12084253132343292,
0.011703751049935818,
0.014790292829275131,
-0.027212893590331078,
0.020498337224125862,
-0.0313512347638607,
0.02399507537484169,
0.02412128448486328,
-0.010901713743805885,
-0.08864976465702057,
0.06703352183103561,
-0.005924553144723177,
-0.04761253669857979,
0.1228749081492424,
0.0003760343824978918,
-0.03784053400158882,
-0.004357377998530865,
-0.06576640158891678,
0.015473192557692528,
0.016846511512994766,
0.00549358082935214,
-0.04151443764567375,
-0.02939612790942192,
0.030276669189333916,
0.0715806782245636,
-0.034970786422491074,
-0.0613807737827301,
-0.041389793157577515,
-0.038926489651203156,
-0.044136933982372284,
-0.03221321105957031,
0.06397716701030731,
0.0466928631067276,
-0.12868759036064148,
-0.01683313213288784,
-0.0033976987469941378,
-0.030171506106853485,
-0.06266649067401886,
0.02814600057899952,
-0.0010550380684435368,
-0.04041632264852524,
0.02591012790799141,
0.04651490971446037,
-0.011284823529422283,
-0.01607857644557953,
-0.009231031872332096,
0.09116654098033905,
-0.012453511357307434,
0.017793968319892883,
-0.00020636631234083325,
-0.05465949326753616,
0.008438428863883018,
-0.04666278511285782,
-0.04971110448241234,
-0.0735696479678154,
0.015422293916344643,
-0.0007449614931829274,
0.008777391165494919,
-0.03508187085390091,
-0.0564049668610096,
-0.08192867785692215,
0.0816788449883461,
-0.05825290456414223,
-0.018108082935214043,
0.004904523957520723,
-0.0202985480427742,
0.0066973059438169,
-0.02563411369919777,
-0.035847585648298264,
-0.018143506720662117,
0.011890505440533161,
0.04333660751581192,
-0.016598088666796684,
0.054368119686841965,
0.05145147442817688,
-0.03568485751748085,
0.07064829021692276,
0.01360227633267641,
-0.004864309448748827,
-0.03642361983656883,
-0.02206467278301716,
-0.018370632082223892,
-0.01776602678000927,
-0.005188383627682924,
-0.0026656545232981443,
-0.009593280032277107,
0.0232158824801445,
0.040164727717638016,
-0.01851777173578739,
-0.01481099147349596,
0.00938322488218546,
-0.344465970993042,
-0.02763102762401104,
-0.06378059089183807,
0.0033533363603055477,
0.03855094313621521,
-0.017301371321082115,
-0.0044900886714458466,
-0.0036744712851941586,
0.027913644909858704,
0.04619143158197403,
0.08152378350496292,
-0.014886515215039253,
-0.0015636211028322577,
-0.05867936462163925,
-0.007600865326821804,
-0.010476364754140377,
-0.03433556109666824,
-0.010026508010923862,
-0.018779460340738297,
0.021938998252153397,
0.04248208552598953,
-0.01716557703912258,
-0.04486512765288353,
-0.027275485917925835,
0.017875824123620987,
-0.0483270026743412,
0.1376192271709442,
0.07091102004051208,
-0.0060506947338581085,
-0.07133644819259644,
0.05834101140499115,
0.009852481074631214,
-0.026223933324217796,
-0.09508755058050156,
0.011472277343273163,
-0.023746997117996216,
0.031835198402404785,
0.009424060583114624,
0.00500486558303237,
-0.06264705955982208,
-0.009899304248392582,
0.020781755447387695,
-0.024735787883400917,
-0.039350710809230804,
-0.03552290052175522,
0.025807907804846764,
0.008210965432226658,
-0.006827822420746088,
-0.013134198263287544,
0.09088485687971115,
0.03545908257365227,
-0.01672022044658661,
0.06820166856050491,
0.003522707149386406,
0.029453735798597336,
-0.01332531776279211,
-0.09014979749917984,
0.006074370816349983,
-0.015861397609114647,
-0.006448935251682997,
0.03444778546690941,
0.003476236015558243,
0.0615655742585659,
-0.059295766055583954,
-0.034373603761196136,
0.00870509073138237,
0.03537115082144737,
-0.019689172506332397,
0.01959962397813797,
-0.029249047860503197,
-0.043247468769550323,
0.015313670970499516,
0.009089005179703236,
0.05272829160094261,
0.02267174981534481,
0.03515690565109253,
0.0228569433093071,
0.021798796951770782,
0.043420735746622086,
0.029237547889351845,
0.07011382281780243,
-0.011319765821099281,
0.043941762298345566,
-0.014797247014939785,
0.01825288124382496,
0.06059782952070236,
0.014385951682925224,
-0.020147385075688362,
0.05633174255490303,
0.016804710030555725,
-0.015113702043890953,
0.013862136751413345,
-0.04810915142297745,
-0.0036048463080078363,
0.026705317199230194,
0.0027251536957919598,
-0.2711620628833771,
0.04713912680745125,
0.07641561329364777,
0.07014920562505722,
0.027334803715348244,
-0.015076031908392906,
0.032114993780851364,
-0.03436245396733284,
-0.011285300366580486,
0.01044534333050251,
0.023837890475988388,
0.0015585210639983416,
-0.019116709008812904,
-0.021670034155249596,
-0.03017692267894745,
-0.027490871027112007,
0.032924361526966095,
0.01801329478621483,
0.0054732682183384895,
0.026136651635169983,
0.07001863420009613,
-0.000011255848221480846,
0.1583206057548523,
0.002461122116073966,
0.025765087455511093,
0.028972765430808067,
-0.0214689988642931,
-0.038637835532426834,
0.027954036369919777,
0.0018305936828255653,
-0.004926483612507582,
-0.007161251734942198,
0.008648905903100967,
0.016380159184336662,
0.016448672860860825,
-0.02526731789112091,
-0.01100639533251524,
0.0581016018986702,
-0.00740089314058423,
-0.03208069130778313,
-0.004158370662480593,
0.019818320870399475,
-0.07504396885633469,
0.009589499793946743,
0.054278913885354996,
0.025951474905014038,
0.02005780301988125,
-0.02206183597445488,
-0.05954567715525627,
-0.00417841412127018,
-0.027225155383348465,
-0.03891296312212944,
-0.018323922529816628,
-0.03268183395266533,
-0.0290539488196373,
0.04251132532954216,
0.033012598752975464,
-0.024304896593093872,
0.06258003413677216,
0.018527207896113396,
0.021244997158646584,
-0.021821776404976845,
0.05857236310839653,
0.009654290974140167,
0.012805597856640816
] | [
0.0068909963592886925,
0.026969069615006447,
-0.011856073513627052,
-0.015449514612555504,
-0.0034332044888287783,
0.046717505902051926,
0.020322788506746292,
0.01006823405623436,
-0.018550990149378777,
-0.0034435333218425512,
-0.035327598452568054,
-0.0011759023182094097,
0.0005570391658693552,
0.006295745726674795,
0.0015284441178664565,
-0.033409688621759415,
-0.011294006370007992,
-0.0003148079267702997,
0.04079415276646614,
0.007604678627103567,
-0.04340139031410217,
0.02772897109389305,
0.03518811613321304,
-0.0038671332877129316,
-0.012222488410770893,
0.055064450949430466,
-0.020270835608243942,
0.04621877521276474,
0.006348504684865475,
-0.10205265134572983,
-0.03123578429222107,
-0.04584918171167374,
0.005277498159557581,
0.02101033553481102,
-0.04722443222999573,
-0.01068082544952631,
-0.07882221788167953,
0.01815352961421013,
0.01799040660262108,
0.011987995356321335,
0.002620098879560828,
-0.04954133927822113,
-0.016501225531101227,
0.07346999645233154,
-0.030726537108421326,
-0.045349154621362686,
-0.04302668571472168,
0.0348735935986042,
-0.0008612728561274707,
-0.002612978219985962,
-0.05840098857879639,
-0.026071539148688316,
0.042501550167798996,
-0.041608940809965134,
0.032384082674980164,
-0.01721845753490925,
-0.000954318093135953,
-0.0073809209279716015,
-0.0007255664095282555,
-0.02810564823448658,
-0.003435759339481592,
-0.013749326579272747,
-0.02128647267818451,
-0.013297772035002708,
-0.014565549790859222,
-0.050594352185726166,
-0.03248374164104462,
0.036484554409980774,
0.016117168590426445,
0.013055544346570969,
-0.00010752158414106816,
0.03004647046327591,
-0.01744278520345688,
-0.006829091347754002,
-0.01989605464041233,
0.021604686975479126,
-0.03404504060745239,
-0.0001293898094445467,
0.011116893030703068,
-0.0100353192538023,
-0.036557286977767944,
-0.01063565630465746,
0.0051820725202560425,
0.017432475462555885,
0.001550304819829762,
-0.028220567852258682,
0.04319898411631584,
0.0005431152530945837,
0.0005835636402480304,
-0.007848302833735943,
-0.03166329860687256,
0.024814141914248466,
0.025582408532500267,
0.022464247420430183,
-0.11152468621730804,
0.05395985022187233,
0.027703633531928062,
-0.030150726437568665,
0.0009370826883241534,
0.8099416494369507,
0.012484156526625156,
0.00990927591919899,
-0.012623603455722332,
0.030061889439821243,
-0.004579648841172457,
-0.02976033091545105,
-0.021014966070652008,
-0.005698271561414003,
0.023554878309369087,
-0.05406583473086357,
-0.011846384964883327,
0.02617141604423523,
0.016168294474482536,
0.029010197147727013,
-0.045988552272319794,
0.051824528723955154,
0.012012706138193607,
0.032163362950086594,
0.005312640219926834,
0.0419531911611557,
-0.014970988035202026,
-0.003411891171708703,
-0.008787460625171661,
0.012077385559678078,
-0.013198461383581161,
-0.14913469552993774,
0.020021498203277588,
-6.56962339902674e-33,
0.023231541737914085,
-0.059344518929719925,
0.013971375301480293,
-0.008611675351858139,
0.008263141848146915,
0.019342288374900818,
-0.0324132926762104,
-0.03344615176320076,
0.0080339340493083,
-0.058330435305833817,
-0.0006710713496431708,
0.008510385639965534,
0.02111874520778656,
-0.01044644508510828,
0.02857935056090355,
0.008482180535793304,
-0.009197749197483063,
0.02150389552116394,
0.0006129419198259711,
-0.008566774427890778,
-0.022190099582076073,
0.032240185886621475,
0.05497187003493309,
0.02199074812233448,
-0.012006213888525963,
0.03565381467342377,
-0.003998682834208012,
-0.015025695785880089,
-0.009266144596040249,
-0.035006679594516754,
-0.004722442012280226,
-0.017375899478793144,
-0.020202748477458954,
-0.024370793253183365,
0.005021925084292889,
-0.04106615111231804,
-0.009023066610097885,
-0.009861117228865623,
-0.027107708156108856,
-0.025380713865160942,
-0.0633845180273056,
-0.009845692664384842,
-0.007270673755556345,
-0.04935840144753456,
-0.0590260773897171,
-0.028599603101611137,
0.02189597859978676,
0.04920756816864014,
-0.03906981647014618,
0.03323058784008026,
0.023136189207434654,
-0.0020639877766370773,
0.03180553764104843,
-0.03209630027413368,
-0.026185309514403343,
0.037664543837308884,
-0.00572008453309536,
0.016685690730810165,
0.008689134381711483,
0.026856020092964172,
0.03870176896452904,
-0.0031058720778673887,
0.026801619678735733,
0.014975539408624172,
-0.02211304008960724,
0.017307614907622337,
-0.004286252893507481,
-0.06123251095414162,
0.03454754874110222,
0.010703066363930702,
-0.027992211282253265,
0.062419041991233826,
0.005754126235842705,
-0.020587613806128502,
0.032080259174108505,
-0.016007917001843452,
0.026314305141568184,
-0.006610383279621601,
0.004715668503195047,
0.04570690542459488,
0.057504311203956604,
0.0044253175146877766,
-0.012390194460749626,
-0.06342275440692902,
-0.040602464228868484,
-0.033393871039152145,
0.020077170804142952,
-0.006315449718385935,
-0.016433076933026314,
0.04211987182497978,
0.03264196217060089,
0.01435843575745821,
-0.043675512075424194,
-0.01817077025771141,
0.0078069912269711494,
5.9246428730419974e-33,
0.01672038994729519,
-0.011725418269634247,
0.01874164305627346,
-0.02669564075767994,
0.07583959400653839,
-0.03395748510956764,
0.02667250484228134,
0.04760010167956352,
-0.04032802954316139,
0.025343362241983414,
-0.01269899308681488,
-0.006655756384134293,
-0.025555724278092384,
0.0006516263238154352,
0.04944772273302078,
-0.0063365548849105835,
0.014433009549975395,
0.014772674068808556,
-0.009775188751518726,
0.01077505387365818,
0.01040026918053627,
0.012909641489386559,
0.016903595998883247,
0.01796727254986763,
0.0076152123510837555,
0.01619635708630085,
0.01231386512517929,
-0.0003400792193133384,
-0.0312875434756279,
0.019321663305163383,
0.05079685524106026,
-0.002795255510136485,
-0.029695259407162666,
-0.006077061872929335,
-0.0330374576151371,
0.03804659843444824,
0.0018513890681788325,
-0.027584711089730263,
0.0013100788928568363,
0.02162390761077404,
0.0426216721534729,
0.022251678630709648,
-0.013674212619662285,
0.041195183992385864,
0.02729739435017109,
0.029424266889691353,
0.006555602420121431,
0.0323340967297554,
-0.018940085545182228,
-0.009444023482501507,
-0.012379408814013004,
0.012599188834428787,
-0.024087822064757347,
0.009833170101046562,
0.03696145489811897,
-0.027437308803200722,
-0.027341345325112343,
0.03117239475250244,
-0.04540557786822319,
0.012687407433986664,
-0.014520776458084583,
0.012324299663305283,
-0.03835425525903702,
0.026955334469676018,
-0.02240321785211563,
-0.017265092581510544,
-0.07191164046525955,
0.005315418355166912,
-0.0176964420825243,
0.04524357616901398,
-0.027924515306949615,
-0.025991050526499748,
0.009150758385658264,
0.012597260996699333,
0.01318481657654047,
0.024112679064273834,
-0.024786287918686867,
0.039026737213134766,
-0.03966597095131874,
0.033832188695669174,
0.04953484982252121,
0.01583627425134182,
0.019888993352651596,
-0.025568872690200806,
0.026272771880030632,
0.030588719993829727,
-0.01415575947612524,
-0.012782445177435875,
0.009927356615662575,
-0.007035237271338701,
0.026383699849247932,
-0.0343497171998024,
-0.011395486071705818,
0.038717854768037796,
0.03388276323676109,
-1.212769351610632e-8,
-0.046009428799152374,
0.0171961672604084,
-0.01407022774219513,
0.017617151141166687,
0.0355239063501358,
0.02848276123404503,
0.004718725103884935,
-0.013944110833108425,
0.006190051324665546,
0.008994159288704395,
0.06151862442493439,
-0.026971062645316124,
0.014163861982524395,
0.022793548181653023,
-0.00838291272521019,
-0.017529718577861786,
-0.034999601542949677,
0.007097931578755379,
0.022568341344594955,
0.03435400873422623,
0.017614660784602165,
0.0031403962057083845,
-0.010367746464908123,
0.013463028706610203,
0.022246168926358223,
-0.017420191317796707,
0.003945409320294857,
-0.090560682117939,
-0.02910638600587845,
-0.03176456689834595,
0.06243107467889786,
-0.03972011059522629,
0.009358590468764305,
0.010864445008337498,
-0.005494278389960527,
-0.045287664979696274,
-0.007445320952683687,
-0.008668864145874977,
-0.0003228394198231399,
0.0291232131421566,
-0.023815728724002838,
-0.010433178395032883,
-0.051841918379068375,
-0.03054295852780342,
-0.013149688020348549,
0.03841639682650566,
-0.044320687651634216,
0.004914449993520975,
0.0023596177343279123,
-0.07441682368516922,
-0.015170170925557613,
-0.035290755331516266,
-0.004785594996064901,
0.002732126507908106,
0.04158905893564224,
0.012739237397909164,
0.008857699111104012,
0.02629363164305687,
-0.009446337819099426,
-0.021913914009928703,
0.007046204060316086,
-0.01563486084342003,
-0.010365873575210571,
-0.018124759197235107
] | r-scraping-wimbledon-draw-data | https://markhneedham.com/blog/2015/06/25/r-scraping-wimbledon-draw-data |
false | 2015-12-04 07:52:34 | Neo4j: Facts as nodes | [
"neo4j"
] | [
"neo4j"
] | On Tuesday I https://skillsmatter.com/skillscasts/7298-modelling-a-recommendation-engine-a-worked-example[spoke] at the Neo4j London user group about http://www.meetup.com/graphdb-london/events/226721630/[incrementally building a recommendation engine] and described the 'facts as nodes' modeling pattern, defined as follows in the http://graphdatabases.com/[Graph Databases book]:
____
When two or more domain entities interact for a period of time, a fact emerges. We represent a fact as a separate node with connections to each of the entities engaged in that fact. Modeling an action in terms of its product--that is, in terms of the thing that results from the action--produces a similar structure: an intermediate node that represents the outcome of an interaction between two or more entities.
____
We started with the following model describing a meetup member and the groups they've joined:
image::{{<siteurl>}}/uploads/2015/12/2015-12-04_07-26-11.png[2015 12 04 07 26 11,597]
This model works well for the query it was defined for - find groups similar to ones that I'm already a member of:
[source,cypher]
----
MATCH (member:Member {name: "Mark Needham"})-[:MEMBER_OF]->(group)-[:HAS_TOPIC]->(topic)
WITH member, topic, COUNT(*) AS score
MATCH (topic)<-[:HAS_TOPIC]-(otherGroup)
WHERE NOT (member)-[:MEMBER_OF]->(otherGroup)
RETURN otherGroup.name, COLLECT(topic.name), SUM(score) as score
ORDER BY score DESC
----
Prefixing that query with the 'PROFILE' keyword yields a query plan and the following summary text:
[source,text]
----
Cypher version: CYPHER 2.3, planner: COST. 89100 total db hits in 113 ms.
----
In this model it feels like there is a +++<cite>+++membership+++</cite>+++ fact waiting to become a node.
image::{{<siteurl>}}/uploads/2015/12/2015-12-04_07-35-38.png[2015 12 04 07 35 38,598]
We can refactor towards that model with the following query:
[source,cypher]
----
MATCH (member:Member)-[rel:MEMBER_OF]->(group)
MERGE (membership:Membership {id: member.id + "_" + group.id})
SET membership.joined = rel.joined
MERGE (member)-[:HAS_MEMBERSHIP]->(membership)
MERGE (membership)-[:OF_GROUP]->(group);
----
We'd answer our initial question with the following query:
[source,cypher]
----
MATCH (member:Member {name: "Mark Needham"})-[:HAS_MEMBERSHIP]->()-[:OF_GROUP]->(group:Group)-[:HAS_TOPIC]->(topic)
WITH member, topic, COUNT(*) AS score
MATCH (topic)<-[:HAS_TOPIC]-(otherGroup)
WHERE NOT (member)-[:HAS_MEMBERSHIP]->(:Membership)-[:OF_GROUP]->(otherGroup:Group)
RETURN otherGroup.name, COLLECT(topic.name), SUM(score) as score
ORDER BY score DESC
----
at the following cost:
[source,text]
----
Cypher version: CYPHER 2.3, planner: COST. 468201 total db hits in 346 ms.
----
The membership node hasn't proved its value yet - it does 4x more work to get the same result. However, the next question we want to answer is 'what group do people join after the Neo4j user group?' where it might come in handy.
First we'll add a 'NEXT' relationship between a user's adjacent group memberships by writing the following query:
[source,cypher]
----
MATCH (member:Member)-[:HAS_MEMBERSHIP]->(membership)
WITH member, membership ORDER BY member.id, membership.joined
WITH member, COLLECT(membership) AS memberships
UNWIND RANGE(0,SIZE(memberships) - 2) as idx
WITH memberships[idx] AS m1, memberships[idx+1] AS m2
MERGE (m1)-[:NEXT]->(m2);
----
And now for the query:
[source,cypher]
----
MATCH (group:Group {name: "Neo4j - London User Group"})<-[:OF_GROUP]-(membership)-[:NEXT]->(nextMembership),
(membership)<-[:HAS_MEMBERSHIP]-(member:Member)-[:HAS_MEMBERSHIP]->(nextMembership),
(nextMembership)-[:OF_GROUP]->(nextGroup)
RETURN nextGroup.name, COUNT(*) AS times
ORDER BY times DESC
----
[source,text]
----
Cypher version: CYPHER 2.3, planner: COST. 23671 total db hits in 39 ms.
----
And for comparison - the same query using the initial model:
[source,cypher]
----
MATCH (group:Group {name: "Neo4j - London User Group"})<-[membership:MEMBER_OF]-(member),
(member)-[otherMembership:MEMBER_OF]->(otherGroup)
WHERE membership.joined < otherMembership.joined
WITH member, otherGroup
ORDER BY otherMembership.joined
WITH member, COLLECT(otherGroup)[0] AS nextGroup
RETURN nextGroup.name, COUNT(*) AS times
ORDER BY times DESC
----
[source,text]
----
Cypher version: CYPHER 2.3, planner: COST. 86179 total db hits in 138 ms.
----
This time the membership model does 3x less work, so depending on the question a different model works better.
Given this observation we might choose to keep both models. The disadvantage of doing that is that we pay write and maintenance penalties to keep them both in sync. e.g. this is what queries to add a new membership or remove one would look like
== Adding group membership
[source,cypher]
----
WITH "Mark Needham" AS memberName,
"Neo4j - London User Group" AS groupName,
timestamp() AS now
MATCH (group:Group {name: groupName})
MATCH (member:Member {name: memberName})
MERGE (member)-[memberOfRel:MEMBER_OF]->(group)
ON CREATE SET memberOfRel.time = now
MERGE (membership:Membership {id: member.id + "_" + group.id})
ON CREATE SET membership.joined = now
MERGE (member)-[:HAS_MEMBERSHIP]->(membership)
MERGE (membership)-[:OF_GROUP]->(group)
----
== Removing group membership
[source,cypher]
----
WITH "Mark Needham" AS memberName,
"Neo4j - London User Group" AS groupName,
timestamp() AS now
MATCH (group:Group {name: groupName})
MATCH (member:Member {name: memberName})
MATCH (member)-[memberOfRel:MEMBER_OF]->(group)
MATCH (membership:Membership {id: member.id + "_" + group.id})
MATCH (member)-[hasMembershipRel:HAS_MEMBERSHIP]->(membership)
MATCH (membership)-[ofGroupRel:OF_GROUP]->(group)
DELETE memberOfRel, hasMembershipRel, ofGroupRel
----
The https://github.com/neo4j-meetups/modeling-worked-example[dataset is on github] so take a look at it and send any questions my way. | null | null | [
0.00927449855953455,
-0.02357323467731476,
0.0121648870408535,
0.03693414106965065,
0.08250933140516281,
-0.011762437410652637,
0.03489472344517708,
0.025488976389169693,
0.022693438455462456,
-0.005051641725003719,
-0.007371110841631889,
-0.007533819880336523,
-0.05573692172765732,
0.0294231865555048,
-0.02350516989827156,
0.07248886674642563,
0.04846171289682388,
0.014033469371497631,
0.009108892641961575,
-0.008811683394014835,
0.015422970056533813,
0.048755746334791183,
0.03914306312799454,
0.05169379711151123,
0.05529054254293442,
0.012572044506669044,
0.01724802516400814,
-0.014617616310715675,
-0.027908267453312874,
0.015672212466597557,
0.03989555314183235,
0.001040950301103294,
0.010133523494005203,
0.003473894437775016,
0.007123621646314859,
-0.0017379644559696317,
-0.03823249414563179,
0.007715252693742514,
-0.0033481174614280462,
-0.0034659230150282383,
-0.06458628177642822,
0.04454825073480606,
-0.018322456628084183,
0.029238181188702583,
-0.026777828112244606,
-0.010964740067720413,
-0.0564999096095562,
0.050033122301101685,
0.019754016771912575,
0.0009177901083603501,
-0.09245103597640991,
0.04041605815291405,
-0.016351567581295967,
0.020102879032492638,
-0.02264048531651497,
0.04429135471582413,
0.03063124045729637,
-0.0661703571677208,
0.036137860268354416,
-0.02554827556014061,
-0.011480456218123436,
0.0021942348685115576,
0.008874105289578438,
0.012666651979088783,
0.0025469576939940453,
-0.04024307057261467,
-0.01801399700343609,
0.05293906852602959,
-0.03441750630736351,
-0.0044558485969901085,
-0.0226532444357872,
0.024484828114509583,
-0.01678539626300335,
0.0051820483058691025,
0.007002911064773798,
-0.055917270481586456,
0.02523689530789852,
0.054865214973688126,
0.03437202423810959,
0.049070216715335846,
-0.03431681543588638,
0.006806773133575916,
0.029097402468323708,
0.027359003201127052,
-0.01456526480615139,
-0.03904012218117714,
-0.027153879404067993,
-0.048355184495449066,
-0.06609604507684708,
0.042421355843544006,
-0.005143528804183006,
-0.06684192270040512,
-0.012876583263278008,
0.016904257237911224,
-0.03430957719683647,
0.01368324551731348,
0.030796611681580544,
-0.018259938806295395,
0.00457506999373436,
-0.03996497392654419,
-0.03075701743364334,
-0.03871327266097069,
0.00558198569342494,
0.029796812683343887,
-0.09102798998355865,
-0.011815649457275867,
-0.029535353183746338,
-0.008567005395889282,
0.008619301952421665,
0.005867008585482836,
-0.03856818750500679,
0.001962840324267745,
-0.019416604191064835,
0.019260156899690628,
-0.07276266068220139,
0.06313207000494003,
0.0301358662545681,
-0.022352062165737152,
-0.010801972821354866,
0.027899516746401787,
0.043215882033109665,
0.023389821872115135,
-0.006818953901529312,
0.07670527696609497,
-0.01675356552004814,
0.03889232873916626,
-0.00211011478677392,
0.03623707592487335,
-0.027635980397462845,
-0.06267150491476059,
0.005294492468237877,
0.046507466584444046,
-0.014889419078826904,
-0.00898426678031683,
-0.011986859142780304,
-0.048468880355358124,
-0.005614701192826033,
0.02999413013458252,
0.048940449953079224,
0.04805054888129234,
0.008633097633719444,
-0.06889177858829498,
0.02911023050546646,
0.0033422415144741535,
0.04351707547903061,
-0.019617578014731407,
-0.029483914375305176,
-0.022498546168208122,
-0.02758362703025341,
-0.019205816090106964,
0.026964573189616203,
0.03541582077741623,
0.03719991073012352,
-0.028689537197351456,
0.026251882314682007,
0.09981387853622437,
0.020470721647143364,
-0.004933357238769531,
0.010425600223243237,
0.01641985774040222,
0.060754645615816116,
0.03407498076558113,
0.009602434001863003,
0.04471764713525772,
0.015893779695034027,
-0.01916949450969696,
-0.01353197731077671,
0.07445406913757324,
-0.014205865561962128,
0.012123426422476768,
-0.04993925243616104,
-0.05222051963210106,
0.06514320522546768,
-0.05207696557044983,
-0.012991378083825111,
0.049450136721134186,
0.056582339107990265,
0.03696132451295853,
0.02466944232583046,
-0.0011642419267445803,
-0.07496877759695053,
0.04971402511000633,
0.00937154795974493,
0.006798659451305866,
0.020385364070534706,
-0.008823002688586712,
0.06912122666835785,
0.04075183346867561,
0.0035771913826465607,
0.06105218082666397,
-0.07647651433944702,
-0.06830663979053497,
-0.005111845675855875,
-0.006076680030673742,
0.07145711779594421,
-0.0212650578469038,
0.030565422028303146,
0.051611486822366714,
-0.011775006540119648,
0.0327255055308342,
0.020204773172736168,
-0.006370823364704847,
0.020976580679416656,
-0.026184460148215294,
-0.04978153109550476,
0.03875938802957535,
0.017556646838784218,
-0.04992654174566269,
-0.06025516986846924,
0.014328977093100548,
-0.030102573335170746,
0.0014210856752470136,
0.02981618233025074,
-0.030787402763962746,
0.010691019706428051,
0.0022976428736001253,
0.02951185218989849,
-0.005090673454105854,
0.013021625578403473,
-0.02011754736304283,
0.025202736258506775,
0.011369307525455952,
-0.03291088715195656,
0.006726397201418877,
-0.003901375224813819,
0.1120421513915062,
0.06637053936719894,
-0.014206272549927235,
-0.06422429531812668,
0.05136338621377945,
0.024225907400250435,
-0.02620827965438366,
0.024951167404651642,
-0.01995992287993431,
0.005832696333527565,
-0.012096635065972805,
-0.04498889297246933,
-0.017687972635030746,
0.023247137665748596,
-0.04936797544360161,
0.019721366465091705,
0.05368897691369057,
-0.03696868568658829,
0.06532137095928192,
-0.0023152942303568125,
0.014248335734009743,
-0.0020401079673320055,
-0.03475230187177658,
-0.04058220982551575,
0.03328786790370941,
0.008303998038172722,
-0.01275930181145668,
0.055142030119895935,
-0.037247203290462494,
-0.005804699379950762,
-0.035978931933641434,
-0.02474823035299778,
0.04424387589097023,
0.051914554089307785,
0.06059073284268379,
-0.003999381326138973,
0.05469299852848053,
-0.03880492225289345,
0.011148457415401936,
-0.002029652474448085,
-0.04349800571799278,
-0.050870224833488464,
-0.0576188862323761,
0.01726878061890602,
0.008274789899587631,
0.04653475061058998,
-0.017535589635372162,
0.04127917066216469,
0.0026765461079776287,
0.011934646405279636,
0.010370374657213688,
0.02721620723605156,
0.008661430329084396,
-0.006070820149034262,
-0.018315596505999565,
-0.039595507085323334,
0.0635877475142479,
-0.033803410828113556,
-0.04121076315641403,
-0.0029045685660094023,
-0.06384117156267166,
0.050633177161216736,
-0.06636793166399002,
-0.023089895024895668,
0.00928761251270771,
0.021193977445364,
0.04146188497543335,
0.03828049451112747,
-0.006117851473391056,
0.05120493844151497,
0.013158293440937996,
0.0038602144923061132,
0.011262262240052223,
-0.00813276506960392,
0.04420972988009453,
-0.01384146511554718,
0.03499428555369377,
0.03787139058113098,
-0.026341281831264496,
0.01021367497742176,
-0.040976088494062424,
0.018372993916273117,
0.003169815056025982,
-0.28315621614456177,
0.03251463919878006,
-0.010601628571748734,
-0.03943001478910446,
0.008688648231327534,
-0.03722277656197548,
0.014655126258730888,
-0.0098104951903224,
-0.027614744380116463,
0.0031107189133763313,
0.0018103283364325762,
-0.025335201993584633,
-0.02687338925898075,
0.045459095388650894,
0.026475729420781136,
0.009174793027341366,
-0.01310221292078495,
-0.05689461529254913,
-0.0011540936538949609,
0.03620167449116707,
0.0020942583214491606,
-0.04431954026222229,
-0.031708408147096634,
0.03042748011648655,
0.01956489123404026,
0.037888526916503906,
-0.10425225645303726,
0.007290389854460955,
-0.057199690490961075,
-0.018815018236637115,
0.009493634104728699,
-0.00863708183169365,
0.006514695007354021,
0.00039510836359113455,
-0.001128809293732047,
-0.022669633850455284,
0.051589541137218475,
0.009771584533154964,
0.000030825380235910416,
0.0136180454865098,
-0.04888445511460304,
-0.04234779626131058,
0.0014082839479669929,
-0.011028665117919445,
0.08366017043590546,
0.02081305906176567,
-0.06632956117391586,
-0.0037311420310288668,
-0.02109997533261776,
0.06121833249926567,
-0.036179736256599426,
-0.030181175097823143,
-0.015324005857110023,
0.032867182046175,
-0.004263959359377623,
-0.027922088280320168,
-0.011544960550963879,
-0.02022980898618698,
-0.0537027046084404,
-0.033578455448150635,
-0.01133410818874836,
-0.04419103264808655,
0.02524326927959919,
-0.055556826293468475,
-0.028325490653514862,
-0.04337801784276962,
-0.07914070785045624,
-0.027536019682884216,
0.057127099484205246,
0.020692210644483566,
-0.01649445854127407,
0.03460081294178963,
-0.020458614453673363,
-0.11155585199594498,
-0.03410736471414566,
-0.015602891333401203,
0.011478519067168236,
0.00798706617206335,
0.016085738316178322,
0.039396416395902634,
-0.040490780025720596,
-0.05129585787653923,
-0.0011677984148263931,
0.00840664841234684,
0.033001985400915146,
-0.004806480836123228,
0.023167839273810387,
0.00021445822494570166,
-0.04799499362707138,
-0.004066805820912123,
0.05782691389322281,
-0.00871411431580782,
-0.010149437934160233,
0.002736440859735012,
-0.004780394956469536,
0.02219458855688572,
-0.00009798493556445464,
-0.005355588626116514,
0.011634058319032192,
0.04964669421315193,
0.023075561970472336,
-0.034121979027986526,
0.02015264891088009,
-0.026405127719044685,
-0.03117154724895954,
-0.0022915038280189037,
-0.043897468596696854,
0.002338991966098547,
0.03307824581861496,
0.005171114578843117,
-0.009269168600440025,
-0.01602945849299431,
0.03156417980790138,
-0.03862297534942627,
-0.019872941076755524,
-0.02308420091867447,
0.0041359793394804,
0.031221959739923477,
0.03657601773738861,
-0.028441505506634712,
-0.04534206539392471,
0.015818247571587563,
0.013724679127335548,
-0.0242436733096838,
-0.07727167755365372,
-0.04423726722598076,
-0.038525018841028214,
-0.01889009401202202,
-0.0039716861210763454,
0.021782318130135536,
-0.02176620252430439,
0.042684540152549744,
0.018317874521017075,
-0.016140788793563843,
0.04643772915005684,
-0.020399419590830803,
-0.0508897602558136,
-0.024510959163308144,
0.007533673662692308,
0.002220371039584279,
-0.026647575199604034,
0.006903273519128561,
0.0032205828465521336,
0.028990359976887703,
0.05891815200448036,
0.00960471946746111,
0.010286067612469196,
0.006146432366222143,
0.03710722178220749,
0.017922470346093178,
0.004238801077008247,
-0.02288936637341976,
0.02445954643189907,
-0.04652015119791031,
-0.004238233435899019,
-0.013848266564309597,
0.05881934612989426,
-0.029147963970899582,
-0.02081044763326645,
-0.037315163761377335,
0.026480335742235184,
-0.045854803174734116,
0.003779334481805563,
-0.02597160078585148,
0.007039391435682774,
0.04856197163462639,
-0.03437391296029091,
0.03384614735841751,
-0.0022998249623924494,
-0.022825077176094055,
0.020095989108085632,
0.005126152187585831,
-0.0415663905441761,
0.016440661624073982,
-0.010110563598573208,
-0.012219145894050598,
-0.0009380168630741537,
0.02316986955702305,
0.032701097428798676,
0.01753309555351734,
-0.007545271888375282,
-0.03132177144289017,
0.008101566694676876,
0.0032503847032785416,
0.052933286875486374,
0.04090745374560356,
-0.020624715834856033,
0.008253740146756172,
-0.022864796221256256,
-0.010019592940807343,
0.001360071823000908,
-0.017702294513583183,
-0.03253420814871788,
-0.00904425885528326,
-0.0406547486782074,
-0.06421353667974472,
0.04940247908234596,
-0.01925075240433216,
0.008002260699868202,
0.02684064768254757,
0.007453460246324539,
-0.006759841926395893,
-0.03545480966567993,
0.035801783204078674,
0.03649643063545227,
-0.07647335529327393,
-0.01659812405705452,
-0.011254476383328438,
-0.019820159301161766,
0.00766439363360405,
0.013378254137933254,
-0.05120272934436798,
-0.03293048217892647,
-0.006522817071527243,
0.032781340181827545,
-0.058285463601350784,
-0.030734892934560776,
-0.03567633777856827,
0.017844224348664284,
0.020131774246692657,
0.04184883087873459,
0.004241622518748045,
-0.009166533127427101,
-0.022107884287834167,
-0.02055925875902176,
0.031305015087127686,
-0.020102297887206078,
0.014686141163110733,
-0.00937306322157383,
-0.0389358215034008,
0.012334390543401241,
-0.027001868933439255,
0.0012824571458622813,
0.010527788661420345,
-0.012270445004105568,
0.01058761216700077,
-0.06409604102373123,
0.0288223996758461,
0.008463835343718529,
0.0422363243997097,
-0.01570693962275982,
-0.0231479424983263,
-0.04204941540956497,
0.003597885137423873,
-0.01856686919927597,
0.01265832968056202,
0.003823169507086277,
0.001979293767362833,
0.011918280273675919,
0.03804709017276764,
0.014123334549367428,
0.0088673559948802,
-0.030042944476008415,
-0.004980463068932295,
0.0437576100230217,
-0.046159133315086365,
-0.027944741770625114,
-0.020965231582522392,
-0.0610390305519104,
0.00776114733889699,
0.008280379697680473,
0.011837178841233253,
-0.038964591920375824,
0.04290483891963959,
0.040868207812309265,
0.031771767884492874,
0.020323241129517555,
0.010979214683175087,
0.019032983109354973,
-0.014918499626219273,
-0.007461388595402241,
-0.07873338460922241,
0.001154025667347014,
0.03638223931193352,
0.008750072680413723,
-0.004670926835387945,
0.011609675362706184,
-0.01576846092939377,
0.027592990547418594,
-0.06633850187063217,
-0.026695476844906807,
0.043971940875053406,
-0.009613974951207638,
0.019617702811956406,
0.027932683005928993,
-0.0563831552863121,
0.0007649445324204862,
0.049879372119903564,
-0.038501739501953125,
-0.018030112609267235,
-0.042693570256233215,
0.06671419739723206,
-0.030923733487725258,
0.02833583950996399,
-0.015200297348201275,
-0.02446889504790306,
0.08122625201940536,
0.03421609476208687,
0.025324465706944466,
0.07075619697570801,
-0.018510201945900917,
0.03702674061059952,
0.030512666329741478,
0.005186874885112047,
0.010558747686445713,
0.02839064598083496,
-0.03183995187282562,
-0.054183270782232285,
0.03627440705895424,
-0.003351243445649743,
-0.020058853551745415,
-0.05397002771496773,
0.06828644126653671,
0.02146853692829609,
-0.04848962649703026,
-0.05572186037898064,
0.030962936580181122,
-0.01726413145661354,
-0.017102576792240143,
-0.02526416815817356,
0.002539837034419179,
-0.033345382660627365,
0.056264400482177734,
-0.020091326907277107,
0.03084985539317131,
0.06012151017785072,
-0.007169330958276987,
-0.020245052874088287,
-0.0026580272242426872,
0.09889231622219086,
0.10821100324392319,
0.05312041565775871,
0.017399711534380913,
0.08053797483444214,
-0.01616695523262024,
-0.04820870980620384,
-0.030545610934495926,
-0.023542175069451332,
-0.035432010889053345,
-0.0011659637093544006,
0.01574411429464817,
0.07769808918237686,
-0.016320012509822845,
0.06514355540275574,
-0.03644917532801628,
-0.020938260480761528,
0.005245173815637827,
0.0009467094787396491,
0.040655266493558884,
0.05168136581778526,
0.006258159410208464,
0.04199568182229996,
-0.047412216663360596,
-0.041097063571214676,
0.032935988157987595,
-0.013539868406951427,
-0.01460134144872427,
0.02756403759121895,
-0.025065641850233078,
0.033542513847351074,
0.006008434109389782,
0.04826731234788895,
0.10938640683889389,
-0.03435453027486801,
0.006250279489904642,
-0.0037065469659864902,
-0.0018898443086072803,
-0.003026682883501053,
0.02677382342517376,
0.0024649747647345066,
-0.016786200925707817,
-0.009853877127170563,
-0.054267801344394684,
-0.026414019986987114,
-0.025517329573631287,
-0.0544872060418129,
-0.00014816578186582774,
-0.02716889977455139,
0.0023298615124076605,
0.0003521437174640596,
-0.02279149740934372,
-0.025692686438560486,
-0.043116044253110886,
-0.03085632435977459,
-0.029767461121082306,
-0.07975742220878601,
0.011171532794833183,
0.01305857952684164,
0.014428902417421341,
-0.028459619730710983,
-0.011816783808171749,
-0.017325686290860176,
-0.02539382129907608,
0.056447334587574005,
-0.054826609790325165,
0.00575851509347558,
0.00001195885670313146,
0.024985207244753838,
0.008155758492648602,
0.01854127272963524,
0.03687247261404991,
0.017799369990825653,
0.010112383402884007,
-0.02206369675695896,
0.0158544909209013,
0.039003193378448486,
0.007978842593729496,
0.014411821030080318,
-0.07865780591964722,
-0.0052100676111876965,
0.008680148050189018,
-0.03822886943817139,
-0.08426285535097122,
0.013843538239598274,
0.03677196428179741,
0.02212728187441826,
0.03078152798116207,
-0.021742645651102066,
-0.027683597058057785,
-0.042257893830537796,
0.014678423292934895,
0.0107828164473176,
-0.01491182018071413,
0.026682328432798386,
-0.032374002039432526,
0.0861867293715477,
0.024102382361888885,
-0.04248088598251343,
-0.03338053077459335,
-0.02956649288535118,
0.009670697152614594,
-0.0011854196200147271,
-0.041799385100603104,
-0.03709161654114723,
-0.02866770327091217,
-0.10323484241962433,
-0.03931625187397003,
0.019361602142453194,
-0.02739526890218258,
-0.015770507976412773,
0.0021759155206382275,
0.003129890188574791,
-0.021194159984588623,
-0.00019392410467844456,
-0.04404858872294426,
0.03113880753517151,
-0.017423434183001518,
-0.012506114318966866,
-0.032944269478321075,
0.009409451857209206,
-0.0003702385874930769,
0.01662796176970005,
0.014915185049176216,
-0.046254877001047134,
-0.00026201573200523853,
-0.042737625539302826,
0.04083815589547157,
0.021498804911971092,
0.02666258066892624,
0.019488802179694176
] | [
-0.05369437113404274,
-0.035351842641830444,
-0.04885504022240639,
-0.013483981601893902,
0.05248499661684036,
-0.015120483003556728,
-0.004245162941515446,
0.005529045592993498,
0.03001035563647747,
-0.018015995621681213,
0.03275791183114052,
-0.03687336668372154,
0.017773961648344994,
0.015636222437024117,
0.07137570530176163,
0.006328830495476723,
-0.005800831131637096,
-0.06296002119779587,
0.0018736664205789566,
0.02920098975300789,
-0.02946394309401512,
-0.05255584046244621,
-0.01538659818470478,
-0.002100708894431591,
0.023817982524633408,
0.04332130774855614,
0.030546067282557487,
-0.03528321534395218,
-0.008850778453052044,
-0.21580126881599426,
-0.02796035073697567,
0.019778769463300705,
0.044213470071554184,
-0.0014479358214884996,
-0.006283008959144354,
0.02869943156838417,
0.058624256402254105,
-0.029582291841506958,
0.0032995729707181454,
0.025630386546254158,
0.012064012698829174,
0.020246652886271477,
-0.015954257920384407,
-0.008749092929065228,
0.06394694745540619,
0.029892440885305405,
-0.011174439452588558,
-0.00593423331156373,
-0.05956696718931198,
0.0021484834142029285,
-0.013471964746713638,
-0.04467931017279625,
-0.022498030215501785,
0.015092943795025349,
0.023928914219141006,
0.06810522824525833,
0.02672233246266842,
0.053387098014354706,
0.013512134552001953,
0.02910873293876648,
0.017484834417700768,
0.01767517626285553,
-0.13628102838993073,
0.06473676860332489,
0.007253087125718594,
0.030698254704475403,
-0.05806230381131172,
-0.028030434623360634,
-0.038622964173555374,
0.07246436923742294,
0.03922807797789574,
-0.008155136369168758,
-0.03420776501297951,
0.02380475029349327,
-0.0002710011031012982,
0.03891419991850853,
-0.0018542640609666705,
0.03894486278295517,
0.02430087700486183,
-0.034281134605407715,
-0.04330858588218689,
0.03236125037074089,
-0.03705322742462158,
-0.009858892299234867,
-0.013059298507869244,
0.02415282651782036,
-0.003600863739848137,
0.01645301841199398,
-0.003195846686139703,
0.02175804227590561,
0.019982071593403816,
0.031043201684951782,
0.012409970164299011,
0.01351742260158062,
-0.06515352427959442,
-0.01614218018949032,
-0.000772730796597898,
0.0026791489217430353,
-0.022163068875670433,
0.40200769901275635,
0.0003867073974106461,
0.0034100404009222984,
0.05761132389307022,
0.035144343972206116,
-0.015040288679301739,
-0.01347408164292574,
0.008438500575721264,
-0.07743880152702332,
0.04878099262714386,
-0.0066259331069886684,
0.0009611296700313687,
-0.01737274043262005,
0.023137575015425682,
-0.08463580161333084,
0.025600524619221687,
0.011311190202832222,
0.06186509132385254,
0.02350544184446335,
0.006765258964151144,
-0.027179531753063202,
-0.02016139216721058,
0.03420006111264229,
0.03868964686989784,
0.00871396902948618,
0.010800880379974842,
0.012323706410825253,
0.008870156481862068,
0.06104252114892006,
0.04345858842134476,
0.009966458193957806,
0.06617376953363419,
0.013277403078973293,
-0.07059422135353088,
0.008180622011423111,
-0.013788296841084957,
-0.008713534101843834,
0.035710111260414124,
-0.030413253232836723,
-0.01938367635011673,
0.06102462112903595,
0.0095138531178236,
-0.01020306907594204,
0.038381148129701614,
0.005973368883132935,
-0.0508013591170311,
0.15499936044216156,
-0.0036244315560907125,
-0.04731067642569542,
-0.03557039797306061,
-0.008522051386535168,
-0.01063314825296402,
0.030254803597927094,
-0.006978979799896479,
-0.07328356057405472,
-0.016456466168165207,
0.010778013616800308,
0.08363773673772812,
0.0006330402684397995,
-0.0910460501909256,
-0.0008266945369541645,
-0.0011057183146476746,
-0.029574135318398476,
-0.054428305476903915,
0.0729440450668335,
0.060346901416778564,
-0.1267388015985489,
0.001202325918711722,
0.020667143166065216,
0.01293842401355505,
-0.07840108126401901,
-0.0072876582853496075,
0.013719460926949978,
-0.02455519139766693,
0.003068439429625869,
0.04633357375860214,
-0.009480648674070835,
-0.04726387932896614,
-0.01963730901479721,
0.03515922650694847,
-0.007212543860077858,
0.017349788919091225,
-0.0033205721992999315,
-0.04994887486100197,
0.009949454106390476,
-0.08297395706176758,
-0.024521194398403168,
-0.06788042187690735,
0.0024162158370018005,
-0.04336950555443764,
-0.01886274293065071,
-0.03195857256650925,
0.022203851491212845,
-0.059739839285612106,
0.0951182022690773,
-0.058874305337667465,
-0.0512121357023716,
-0.0043523577041924,
0.013772621750831604,
-0.04947376251220703,
-0.03408471867442131,
-0.03278476744890213,
0.02026917040348053,
-0.042250897735357285,
-0.0010888316901400685,
-0.08649322390556335,
0.04408933222293854,
0.04245052859187126,
-0.017205655574798584,
0.06998734176158905,
0.002424986334517598,
-0.03955681994557381,
-0.03810802102088928,
-0.03470027074217796,
0.0060592470690608025,
-0.01836744137108326,
-0.0008119677077047527,
0.02090354636311531,
-0.006145172286778688,
-0.010049779899418354,
0.05530624836683273,
-0.026271823793649673,
-0.0034368180204182863,
-0.026980197057127953,
-0.359182208776474,
-0.041082706302404404,
-0.020928874611854553,
0.026209596544504166,
0.005677131470292807,
-0.04077494516968727,
0.023389630019664764,
-0.03504550829529762,
-0.004872545134276152,
0.05512368306517601,
0.07063621282577515,
0.024814318865537643,
-0.031189855188131332,
-0.07294588536024094,
-0.011977899819612503,
0.0210109893232584,
0.0020813080482184887,
-0.0052805691957473755,
-0.03536073863506317,
0.016036614775657654,
-0.0007735087419860065,
-0.021531162783503532,
-0.0147144990041852,
-0.05302164703607559,
-0.00879813451319933,
-0.00544181140139699,
0.10675917565822601,
0.015450905077159405,
0.009800273925065994,
-0.03760824352502823,
0.0383002869784832,
0.025761688128113747,
-0.027712998911738396,
-0.04339370131492615,
0.01659136824309826,
-0.007283151149749756,
0.022243544459342957,
-0.006010586395859718,
-0.002997014904394746,
-0.03957705199718475,
-0.07335560023784637,
0.0099905701354146,
-0.03648916631937027,
-0.036625806242227554,
-0.0569438710808754,
0.02721368707716465,
-0.021554285660386086,
-0.00936160795390606,
-0.010109933093190193,
0.09395024925470352,
0.020951641723513603,
0.006967270281165838,
0.026254599913954735,
0.017827898263931274,
-0.02591109648346901,
-0.031023463234305382,
-0.06918039172887802,
-0.010648278519511223,
-0.017887113615870476,
0.04218610003590584,
0.011265258304774761,
0.044601745903491974,
0.006179515738040209,
-0.08730827271938324,
0.04543857276439667,
-0.028046464547514915,
-0.024434538558125496,
-0.0077545070089399815,
0.025172853842377663,
-0.03301256522536278,
-0.027988508343696594,
0.08292385935783386,
-0.0010086563415825367,
0.0018049839418381453,
0.038922373205423355,
0.014681770466268063,
-0.03292493522167206,
-0.009263766929507256,
0.009980185888707638,
0.0009274333715438843,
0.06062335520982742,
-0.047569360584020615,
0.06161201372742653,
-0.01933319866657257,
-0.008866919204592705,
0.028758816421031952,
0.01849248819053173,
-0.04884802922606468,
0.07509950548410416,
0.016674552112817764,
-0.040775131434202194,
-0.012790382839739323,
-0.034938063472509384,
-0.03362563997507095,
0.06325167417526245,
-0.021219022572040558,
-0.2798505425453186,
0.040699027478694916,
0.020955821499228477,
0.06957504898309708,
0.025242704898118973,
0.018735988065600395,
0.02238369546830654,
-0.01810615509748459,
0.0046172188594937325,
-0.008800787851214409,
0.05135779827833176,
0.06374835222959518,
0.007524425163865089,
0.012599295936524868,
-0.015952175483107567,
0.02754477597773075,
0.04196165129542351,
-0.028105448931455612,
0.02958330325782299,
0.020277077332139015,
0.034653328359127045,
-0.0035861791111528873,
0.19420821964740753,
0.019167937338352203,
0.04397051781415939,
0.034720271825790405,
-0.022563833743333817,
-0.01639856956899166,
0.03181200474500656,
0.013643298298120499,
-0.00628031138330698,
0.014410652220249176,
0.04948119446635246,
0.03964313492178917,
0.010616549290716648,
-0.0380140021443367,
-0.003055886598303914,
0.021914154291152954,
0.03584037348628044,
-0.017545975744724274,
0.02543807402253151,
-0.021761003881692886,
-0.013867883943021297,
0.03283466771245003,
0.06454005837440491,
0.012884795665740967,
0.014539016410708427,
-0.02488984912633896,
-0.06436236947774887,
0.009429392404854298,
-0.02956630103290081,
-0.0648687407374382,
-0.01995202526450157,
-0.00936500821262598,
0.03517273813486099,
0.0686190128326416,
0.019075721502304077,
-0.0059429495595395565,
0.017840808257460594,
-0.013213569298386574,
-0.05568382889032364,
-0.014397886581718922,
0.09967990964651108,
0.001388636650517583,
0.03461741283535957
] | [
-0.006112932693213224,
0.015042423270642757,
0.010409043170511723,
0.03337794914841652,
0.005732250865548849,
0.008862599730491638,
-0.019200941547751427,
0.005445831920951605,
-0.03216712176799774,
-0.019395170733332634,
-0.016073506325483322,
0.014106805436313152,
0.04929054528474808,
-0.00829584151506424,
0.02922375313937664,
0.018346579745411873,
0.01122798677533865,
-0.010451307520270348,
0.03800826892256737,
-0.031804755330085754,
-0.03201989829540253,
0.02115861140191555,
0.018487198278307915,
-0.023217299953103065,
-0.021007994189858437,
0.011372679844498634,
-0.023176344111561775,
0.005765190813690424,
0.04915689304471016,
-0.10463857650756836,
-0.043264586478471756,
0.0041645425371825695,
-0.004467536695301533,
0.0363616906106472,
-0.04718956723809242,
-0.01007654145359993,
-0.0018625818192958832,
-0.0035329703241586685,
0.0021358381491154432,
0.016410071402788162,
0.019183620810508728,
-0.0003922871546819806,
-0.012595389038324356,
0.002074465388432145,
0.024692488834261894,
0.014984745532274246,
-0.03518766164779663,
-0.014429213479161263,
-0.005220239050686359,
-0.010669130831956863,
-0.038519009947776794,
-0.03544730320572853,
-0.002776315901428461,
0.00663967477157712,
0.010688800364732742,
0.015989622101187706,
-0.019975747913122177,
-0.008235419169068336,
-0.0034493133425712585,
-0.0183283481746912,
0.029694166034460068,
-0.01798308454453945,
-0.05918305739760399,
-0.027126425877213478,
-0.002895653946325183,
-0.0158731359988451,
-0.03261444345116615,
0.00823602918535471,
-0.005093901418149471,
0.008987417444586754,
-0.01693788915872574,
0.0018944634357467294,
-0.06869567930698395,
-0.0330541729927063,
0.013304091058671474,
0.021171359345316887,
0.007676017004996538,
-0.030241234228014946,
0.012165938504040241,
0.0002239710884168744,
-0.035660114139318466,
0.009755609557032585,
-0.012383507564663887,
-0.005014951806515455,
-0.0026578069664537907,
-0.02093919925391674,
0.010447283275425434,
-0.005445610266178846,
0.01660408452153206,
0.012436442077159882,
-0.03306698799133301,
0.017575280740857124,
-0.0209659431129694,
0.0059633017517626286,
-0.10432638972997665,
0.01646886020898819,
0.013915675692260265,
0.0024161196779459715,
0.013199952431023121,
0.8469725251197815,
0.0017463404219597578,
0.01695007085800171,
-0.0031173264142125845,
0.00742417573928833,
0.009434414096176624,
0.0230729803442955,
-0.02260664664208889,
0.005655263084918261,
0.005332264583557844,
-0.01616421528160572,
-0.007790531497448683,
0.017371054738759995,
0.011626102961599827,
0.017734091728925705,
0.006475251633673906,
0.02375134266912937,
0.020526712760329247,
-0.00693857716396451,
-0.005203052423894405,
0.01520833745598793,
0.011674121953547001,
0.03993179276585579,
0.01063790824264288,
-0.004586836323142052,
-0.014757217839360237,
-0.18280234932899475,
-0.02453809790313244,
-8.311312971021814e-33,
0.055499572306871414,
-0.003003637306392193,
0.02968677692115307,
-0.002060341415926814,
-0.0007547175046056509,
0.023585688322782516,
-0.00820076372474432,
0.009842824190855026,
-0.02838197350502014,
-0.034531157463788986,
-0.01839410699903965,
0.013429352082312107,
0.026612132787704468,
-0.02777247317135334,
0.034886471927165985,
-0.011771163903176785,
0.02230483666062355,
0.025308215990662575,
0.0071441540494561195,
-0.01534485537558794,
0.024880310520529747,
0.0169678945094347,
-0.040388938039541245,
0.027122309431433678,
0.020611515268683434,
0.05103021860122681,
-0.00519219134002924,
-0.0037286083679646254,
0.010524707846343517,
-0.05613431707024574,
-0.037987567484378815,
0.03145306184887886,
-0.008093691430985928,
0.010782466270029545,
-0.0034611516166478395,
-0.05488209053874016,
-0.02872968465089798,
-0.01072567980736494,
-0.002790599362924695,
-0.09716302901506424,
-0.044337548315525055,
0.01384817436337471,
-0.019774021580815315,
-0.06166594848036766,
-0.037151653319597244,
0.004680595826357603,
-0.0022326759062707424,
-0.012551597319543362,
-0.0008020084351301193,
0.004626621026545763,
0.024419814348220825,
-0.013573435135185719,
-0.0003104704665020108,
0.02146732807159424,
-0.030613720417022705,
0.009008404798805714,
0.01009959727525711,
0.038016702979803085,
-0.015515891835093498,
0.021877141669392586,
0.021713703870773315,
-0.00045149624929763377,
-0.0060932086780667305,
0.06451842188835144,
0.005245183128863573,
0.016014356166124344,
-0.0312524139881134,
-0.011144677177071571,
0.018011411651968956,
0.023171445354819298,
-0.05741027742624283,
0.06797312200069427,
-0.013571253977715969,
-0.023121431469917297,
0.025866780430078506,
-0.047268860042095184,
-0.03325837105512619,
-0.023259444162249565,
-0.016180245205760002,
0.07315714657306671,
-0.002676798263564706,
-0.02378133125603199,
-0.01945333182811737,
-0.02689490281045437,
0.005848472472280264,
-0.013850482180714607,
0.014638982713222504,
0.01413102075457573,
0.010501266457140446,
0.01753900572657585,
0.031040621921420097,
-0.001371942926198244,
-0.008864065632224083,
0.009377599693834782,
-0.0005276461597532034,
7.973801359593872e-33,
-0.003095530439168215,
-0.0024084143806248903,
0.0023319872561842203,
-0.0026849631685763597,
0.07170756161212921,
-0.03236549347639084,
0.028022337704896927,
0.0016131351003423333,
-0.04716432839632034,
0.03956124559044838,
-0.007750567514449358,
-0.008009945042431355,
0.012472354806959629,
0.010300024412572384,
0.039342913776636124,
-0.021541377529501915,
-0.0010462014470249414,
-0.023516446352005005,
0.013373365625739098,
0.03622695803642273,
0.02448364533483982,
-0.0015301493695005774,
-0.0065116314217448235,
0.025330809876322746,
0.027549780905246735,
0.018788304179906845,
0.0062888432294130325,
-0.00028393909451551735,
-0.0007744540343992412,
0.009757542051374912,
-0.0047991154715418816,
-0.02293015643954277,
0.0013692270731553435,
-0.034542910754680634,
0.004481219686567783,
-0.006892072968184948,
-0.021377069875597954,
-0.01746547967195511,
0.026104984804987907,
0.006311904639005661,
0.0301986001431942,
0.011521438136696815,
-0.037488486617803574,
0.04356738179922104,
0.040008559823036194,
0.026067642495036125,
-0.004511609207838774,
-0.019995130598545074,
-0.006998880300670862,
0.007698919158428907,
0.017039697617292404,
0.013372107408940792,
0.008278382942080498,
0.02019352652132511,
0.002136536408215761,
-0.027534423395991325,
-0.000015388684914796613,
0.02108639106154442,
0.006775091867893934,
0.004171926062554121,
0.0035881137009710073,
0.006750061176717281,
-0.047627776861190796,
0.022541027516126633,
-0.017856674268841743,
-0.01337343454360962,
-0.017127621918916702,
0.0012521928874775767,
-0.014305722899734974,
0.01878223568201065,
-0.013589405454695225,
0.024136772379279137,
-0.010562422685325146,
0.020787041634321213,
0.016648825258016586,
-0.035094548016786575,
-0.03160172700881958,
0.01950402744114399,
-0.007976384833455086,
0.015128140337765217,
0.0053414697758853436,
0.015595845878124237,
0.03506488353013992,
0.023720331490039825,
0.001515254843980074,
0.011880407109856606,
-0.021572070196270943,
0.048642341047525406,
-0.022365417331457138,
0.003941793460398912,
0.010144348256289959,
-0.03649165853857994,
-0.018886560574173927,
0.04396706074476242,
-0.01745518110692501,
-1.3565460754705327e-8,
-0.04989331215620041,
0.018273428082466125,
-0.0097318384796381,
-0.01580977439880371,
0.03356808423995972,
0.016186587512493134,
0.012288614176213741,
-0.005123007111251354,
-0.010818662121891975,
0.01384749636054039,
0.04179229587316513,
-0.024870561435818672,
0.007854267954826355,
0.0013995826011523604,
0.023353969678282738,
-0.05944773927330971,
0.009095977991819382,
-0.03283778205513954,
0.04428231343626976,
0.01712135411798954,
0.044257644563913345,
0.024608204141259193,
-0.03890626132488251,
0.01822309009730816,
-0.00432216189801693,
-0.035959478467702866,
0.01382411178201437,
-0.05130559206008911,
0.0023540519177913666,
-0.01946389488875866,
-0.007270693778991699,
-0.018812941387295723,
0.004992641042917967,
0.03411507606506348,
-0.03366544097661972,
-0.040204357355833054,
0.02677428536117077,
0.006129904184490442,
0.014443326741456985,
0.01770939864218235,
-0.006105057895183563,
0.018554270267486572,
-0.031005442142486572,
-0.027118850499391556,
-0.018490945920348167,
0.026120519265532494,
-0.000708655861672014,
-0.021462440490722656,
0.05094712972640991,
-0.03265700489282608,
0.002264969050884247,
-0.03332611545920372,
0.0230590607970953,
0.020165422931313515,
0.0431143157184124,
0.009869365952908993,
0.009159814566373825,
-0.027190405875444412,
-0.024404453113675117,
-0.03291652351617813,
0.023938285186886787,
-0.0023845231626182795,
-0.014435763470828533,
-0.006794931832700968
] | neo4j-facts-as-nodes | https://markhneedham.com/blog/2015/12/04/neo4j-facts-as-nodes |
false | 2015-12-20 12:12:46 | Python: Squashing 'duplicate' pairs together | [
"python"
] | [
"Python"
] | As part of a data cleaning pipeline I had pairs of ids of duplicate addresses that I wanted to group together.
I couldn't work out how to solve the problem immediately so I simplified the problem into pairs of letters i.e.
[source,text]
----
A B (A is the same as B)
B C (B is the same as C)
C D ...
E F (E is the same as F)
F G ...
----
The output that I want to get is:
[source,text]
----
(A, B, C, D)
(E, F, G)
----
I spent several hours trying to come up with a clever data structure to do this until https://reshmeeauckloo.wordpress.com/[Reshmee] suggested tracking the sets of duplicates using an array of arrays or list of lists since we're going to script this using Python.
The actual data is in a CSV file but we'll create a list of tuples to save ourselves some work:
[source,python]
----
pairs = [ ("A", "B"), ("B", "C"), ("C", "D"), ("E", "F"), ("F", "G") ]
----
We're going to iterate through the list of pairs and on each iteration we'll check if there's an entry in the list containing either of the values. There can be three outcomes from this check:
. No entry - we'll add a new entry with our pair of values.
. One entry - we'll add the other value to that entry.
. Two entries - we'll merge them together replacing the existing entry.
The first step is to write a function to check the list of lists for a matching pair:
[source,python]
----
def find_matching_index(pair, dups):
return [index
for index, dup in enumerate(dups)
if pair[0] in dup or pair[1] in dup]
print find_matching_index(("A", "B"), [set(["D", "E"])])
[]
print find_matching_index(("B", "C"), [set(["A", "B"])])
[0]
print find_matching_index(("B", "C"), [set(["A", "B"]), set(["C", "D"])])
[0, 1]
----
Next we need to write a function which iterates over all our pairs of values and uses +++<cite>+++find_matching_index+++</cite>+++ to work out which decision to make:
[source,python]
----
def extract_groups(items):
dups = []
for pair in items:
matching_index = find_matching_index(pair, dups)
if len(matching_index) == 0:
dups.append(set([pair[0], pair[1]]))
elif len(matching_index) == 1:
index = matching_index[0]
matching_dup = dups[index]
dups.pop(index)
dups.append(matching_dup.union([pair[0], pair[1]]))
else:
index1, index2 = matching_index
dup1 = dups[index1]
dup2 = dups[index2]
dups.pop(index1)
dups.pop(index2 - 1) # the index decrements since we removed one entry on the previous line
dups.append(dup1.union(dup2))
return dups
----
Now let's run this with a few test cases:
[source,python]
----
test_cases = [
[ ("A", "B"), ("B", "C"), ("C", "D"), ("E", "F"), ("F", "G") ],
[ ("A", "B"), ("B", "C"), ("C", "D"), ("E", "F"), ("F", "G"), ("G", "A"), ("G", "Z"), ("B", "D") ],
[ ("A", "B"), ("B", "C"), ("C", "E"), ("E", "A") ],
[ ("A", "B"), ("C", "D"), ("F", "G"), ("H", "I"), ("J", "A") ]
]
for test_case in test_cases:
print extract_groups(test_case)
[set(['A', 'C', 'B', 'D']), set(['E', 'G', 'F'])]
[set(['A', 'C', 'B', 'E', 'D', 'G', 'F', 'Z'])]
[set(['A', 'C', 'B', 'E'])]
[set(['C', 'D']), set(['G', 'F']), set(['I', 'H']), set(['A', 'J', 'B'])]
----
This certainly doesn't scale very well but since I only have a few hundred duplicate addresses it does the job for me.
It feels like there should be a more functional way to write these functions without mutating all these lists but I haven't figured out what that is yet. | null | null | [
0.007735699415206909,
0.00008914693171391264,
-0.036154601722955704,
0.056206002831459045,
0.08123859763145447,
0.052179183810949326,
-0.011837420985102654,
0.030106525868177414,
0.0056982869282364845,
-0.024837037548422813,
0.0003883926838170737,
-0.015009088441729546,
-0.08261719346046448,
0.017569055780768394,
-0.042758759111166,
0.0619916133582592,
0.08630497753620148,
0.00859749037772417,
0.007027252111583948,
0.012469313107430935,
0.006649197079241276,
0.07511056959629059,
-0.014321497641503811,
0.030075831338763237,
0.00009206958202412352,
0.03688298165798187,
0.024137459695339203,
-0.0014130064519122243,
-0.04882469400763512,
0.004451264161616564,
0.04973983392119408,
-0.025788085535168648,
0.01582297496497631,
-0.008379661478102207,
0.03455878421664238,
-0.026311352849006653,
-0.001255973824299872,
0.0038529185112565756,
0.004322986584156752,
0.006581594701856375,
-0.04508237540721893,
0.026952005922794342,
-0.028966479003429413,
-0.007359522860497236,
-0.037374209612607956,
0.001653005019761622,
-0.06288371235132217,
0.001365878153592348,
-0.01806195266544819,
0.024958504363894463,
-0.05965213477611542,
0.019778842106461525,
-0.010691993869841099,
-0.020047402009367943,
-0.01949937269091606,
0.0604439303278923,
0.002689098473638296,
-0.07733147591352463,
0.02695278637111187,
-0.01714521087706089,
-0.010971788316965103,
-0.003827875480055809,
0.020883657038211823,
0.047592610120773315,
0.012771453708410263,
-0.03774502873420715,
0.02286612242460251,
0.05173823609948158,
-0.030489787459373474,
-0.007832111790776253,
-0.0012644933303818107,
-0.002978469245135784,
-0.03307410702109337,
-0.017488893121480942,
-0.02241310104727745,
-0.009918160736560822,
-0.023447474464774132,
0.039346106350421906,
0.003096141619607806,
0.06034575030207634,
-0.012626483105123043,
0.03270520642399788,
-0.0043110609985888,
0.01800660975277424,
0.024555860087275505,
-0.0353073924779892,
-0.05481719225645065,
-0.0171964094042778,
-0.05781319737434387,
0.02955874241888523,
-0.0006681245286017656,
-0.0646207332611084,
-0.0030336440540850163,
0.02457955852150917,
-0.013684358447790146,
-0.007193205412477255,
0.0030511280056089163,
0.00018885094323195517,
0.014114655554294586,
0.00025280509726144373,
-0.05212325602769852,
-0.007800944149494171,
0.01753363572061062,
0.014486182481050491,
-0.056150760501623154,
-0.011636548675596714,
-0.0017073177732527256,
-0.00993332639336586,
0.049912579357624054,
-0.0038377565797418356,
-0.01814931258559227,
-0.00046347163151949644,
0.002473762258887291,
0.027300570160150528,
-0.1015113890171051,
0.0720890462398529,
0.007346171420067549,
-0.007717752363532782,
-0.026277372613549232,
0.02007931098341942,
0.040007032454013824,
0.047340694814920425,
0.014814119786024094,
0.09146501123905182,
0.028611494228243828,
0.025388889014720917,
0.013135326094925404,
0.07467231899499893,
-0.051517289131879807,
-0.056204844266176224,
-0.031181322410702705,
0.043067216873168945,
-0.008425765670835972,
0.007025860715657473,
-0.0018710854928940535,
-0.025632023811340332,
-0.060773927718400955,
0.02575829066336155,
0.06015795096755028,
0.02342980168759823,
0.01218350138515234,
-0.010793641209602356,
-0.007852096110582352,
0.004323371220380068,
0.026830915361642838,
0.024153469130396843,
-0.03573296591639519,
-0.021227819845080376,
-0.024144677445292473,
0.030429869890213013,
0.001425914466381073,
0.030131449922919273,
0.05846298113465309,
-0.03537287563085556,
0.00024345272686332464,
0.09866390377283096,
0.038236185908317566,
0.040194347500801086,
-0.014200843870639801,
0.0001106570489355363,
0.011707533150911331,
0.021382475271821022,
-0.0075437156483531,
0.0603124164044857,
-0.008399530313909054,
-0.00882054679095745,
-0.008373061195015907,
0.07103373110294342,
-0.010459158569574356,
0.02139674685895443,
-0.055455174297094345,
-0.052589595317840576,
0.062339428812265396,
-0.039539191871881485,
0.0063939522951841354,
0.0071837580762803555,
0.0792679712176323,
0.016032341867685318,
0.03523379564285278,
0.003016839502379298,
-0.06461500376462936,
0.026889793574810028,
-0.024720627814531326,
0.03575310483574867,
0.02295396476984024,
-0.017008205875754356,
0.06847164034843445,
0.03829691931605339,
0.01924365945160389,
0.03343769907951355,
-0.0752614215016365,
-0.06696480512619019,
-0.015967974439263344,
-0.024348223581910133,
0.053226519376039505,
-0.05394501984119415,
-0.007856663316488266,
0.0664706751704216,
0.009703215211629868,
0.019885964691638947,
-0.0027977267745882273,
-0.00869763270020485,
0.0023043809924274683,
-0.02500361017882824,
-0.05223264917731285,
0.03342809900641441,
0.03153512254357338,
-0.024366648867726326,
-0.018153803423047066,
-0.026617353782057762,
0.0049053458496928215,
0.0003376220411155373,
0.024839214980602264,
-0.031702641397714615,
0.05953377112746239,
0.04534026235342026,
0.04287303239107132,
-0.0043764966540038586,
0.03647284954786301,
-0.058809440582990646,
0.03390083089470863,
0.0040315501391887665,
-0.018770266324281693,
-0.013936121016740799,
0.028661241754889488,
0.15170425176620483,
0.05636307969689369,
-0.04947613552212715,
-0.04901263490319252,
0.013459814712405205,
0.01999274268746376,
-0.02723241224884987,
0.010103392414748669,
-0.01666526310145855,
-0.03630395978689194,
0.022125888615846634,
-0.0502299927175045,
-0.02736710011959076,
0.03135485574603081,
-0.04272736608982086,
-0.02808774635195732,
0.057932429015636444,
-0.03350541368126869,
0.043356988579034805,
0.017909089103341103,
-0.029957303777337074,
0.01365793589502573,
-0.012484942562878132,
-0.05250287801027298,
-0.0002718527684919536,
0.018649615347385406,
-0.0072901188395917416,
0.055540572851896286,
-0.03453238680958748,
-0.025435559451580048,
-0.030697891488671303,
-0.022640828043222427,
-0.006241322495043278,
0.08171354979276657,
0.03884689137339592,
-0.05440841242671013,
0.06983815878629684,
0.0026174706872552633,
-0.010485609993338585,
-0.01209815964102745,
-0.03023766167461872,
-0.056850094348192215,
0.02079174667596817,
-0.003299685660749674,
-0.0005566405015997589,
0.013461594469845295,
0.015386582352221012,
-0.013689018785953522,
0.008357569575309753,
0.026112839579582214,
0.00918408390134573,
0.023142943158745766,
-0.003370321122929454,
-0.011956438422203064,
-0.051151782274246216,
0.0009443526505492628,
0.04612966626882553,
-0.03356253355741501,
-0.0380900539457798,
-0.0009890851797536016,
-0.08326847851276398,
0.02016025222837925,
-0.06198915094137192,
-0.048376817256212234,
0.0016603752737864852,
0.014859909191727638,
0.030258579179644585,
-0.028063999488949776,
-0.025639928877353668,
0.059889309108257294,
0.02522534877061844,
-0.001609852653928101,
0.03643418475985527,
0.015074936673045158,
0.023122763261198997,
0.030100511386990547,
0.003994339145720005,
0.03353894501924515,
-0.019341107457876205,
-0.020040562376379967,
-0.044809337705373764,
0.00521482340991497,
-0.020863953977823257,
-0.26960092782974243,
0.012747311033308506,
-0.003450852818787098,
-0.02758859656751156,
0.01361006312072277,
-0.04835965484380722,
0.009739021770656109,
-0.03501702845096588,
0.017206810414791107,
0.016924431547522545,
-0.019080407917499542,
-0.04875564947724342,
-0.0137094147503376,
0.04566783830523491,
0.007010994013398886,
0.025583911687135696,
-0.026020793244242668,
-0.03532267361879349,
0.010902488604187965,
0.03819197416305542,
0.022067690268158913,
-0.06158819422125816,
-0.009955745190382004,
0.05564744397997856,
0.008585457690060139,
0.06283695995807648,
-0.0552511066198349,
0.0004917348851449788,
-0.07937334477901459,
-0.02352474257349968,
0.011595148593187332,
-0.012858360074460506,
0.005931465420871973,
-0.016158336773514748,
-0.04693051800131798,
-0.04269842058420181,
0.04750288277864456,
-0.01900660991668701,
-0.03778243809938431,
0.034401632845401764,
-0.045945413410663605,
-0.0068848468363285065,
-0.00013483609654940665,
-0.001909454702399671,
0.057164981961250305,
0.01298652682453394,
-0.032181572169065475,
-0.018363676965236664,
-0.023094449192285538,
0.0701330155134201,
-0.03236313536763191,
-0.014162303879857063,
-0.0058480664156377316,
0.047262098640203476,
-0.03221658244729042,
-0.008615155704319477,
-0.014916245825588703,
0.0052448962815105915,
-0.03949854522943497,
-0.015722455456852913,
-0.02645559050142765,
-0.05559169128537178,
0.004651286173611879,
-0.05117565393447876,
-0.0013801866443827748,
-0.06619212031364441,
-0.07111519575119019,
-0.01898757740855217,
0.06230596452951431,
0.04562438651919365,
-0.034940287470817566,
-0.0024976881686598063,
-0.02451913431286812,
-0.09841371327638626,
-0.022554583847522736,
-0.002038378734141588,
0.01279429905116558,
-0.010468279011547565,
0.0015913252718746662,
0.056839652359485626,
-0.0463578999042511,
-0.04809615761041641,
0.023477578535676003,
-0.0012341990368440747,
0.037987228482961655,
-0.04542234167456627,
-0.005432127509266138,
-0.01565503515303135,
-0.027125738561153412,
-0.025161877274513245,
0.07287827879190445,
-0.03445487469434738,
0.009284986183047295,
0.004422516096383333,
0.025732235983014107,
0.044034309685230255,
0.028188485652208328,
0.008048034273087978,
0.018794551491737366,
0.03746354207396507,
0.029914602637290955,
-0.047791313380002975,
0.009746079333126545,
-0.06219726800918579,
-0.008063347078859806,
0.0067153675481677055,
-0.01731429435312748,
0.031975194811820984,
0.015099274925887585,
0.017905108630657196,
-0.021709874272346497,
-0.013929562643170357,
0.02612590603530407,
-0.06340356171131134,
-0.003381799440830946,
-0.035842448472976685,
0.0292169451713562,
0.023292943835258484,
0.00589658971875906,
-0.010475576855242252,
-0.04831766337156296,
0.010338893160223961,
0.013594415970146656,
0.010442513972520828,
-0.05944283306598663,
-0.040924690663814545,
-0.022837964817881584,
-0.01703295297920704,
0.005858792457729578,
0.0307866632938385,
0.011170540004968643,
0.030843257904052734,
0.016036242246627808,
-0.060524750500917435,
0.03317294642329216,
-0.027385689318180084,
-0.02106298692524433,
-0.013022872619330883,
-0.03862170875072479,
0.023769637569785118,
0.01193629577755928,
-0.02271321229636669,
-0.003970439080148935,
0.03674551099538803,
0.056389156728982925,
0.0028954516164958477,
0.02199026383459568,
-0.03482312336564064,
0.004546614829450846,
0.01793638989329338,
-0.012932118028402328,
-0.021709833294153214,
0.006841432303190231,
-0.02007993869483471,
-0.03292902186512947,
0.000483816082123667,
0.022924115881323814,
-0.01569053716957569,
-0.049484651535749435,
-0.04090437665581703,
0.009843881241977215,
-0.018334656953811646,
0.028295893222093582,
-0.019679343327879906,
0.010593803599476814,
0.05524258315563202,
-0.009303743951022625,
0.03895403444766998,
-0.035992126911878586,
0.024299323558807373,
0.013171716593205929,
0.01597149483859539,
-0.02215181663632393,
-0.007418415974825621,
-0.013038931414484978,
-0.0029944200068712234,
0.039976220577955246,
0.03823859617114067,
0.015003091655671597,
-0.007026768755167723,
-0.014066007919609547,
-0.03397095203399658,
0.011595603078603745,
0.00667980220168829,
0.048555076122283936,
0.045474324375391006,
-0.007407681550830603,
-0.021332494914531708,
-0.021879486739635468,
-0.055941544473171234,
-0.03233075886964798,
-0.011474762111902237,
-0.025175565853714943,
0.01921764761209488,
-0.03162970021367073,
-0.0889122262597084,
-0.006942007690668106,
0.02365063689649105,
-0.02113286778330803,
0.018295492976903915,
-0.025137215852737427,
-0.015225942246615887,
-0.008913613855838776,
0.009696810506284237,
0.0728813037276268,
-0.04127619415521622,
-0.014930919744074345,
-0.03213293477892876,
0.009326465427875519,
0.026538554579019547,
0.033607304096221924,
-0.050909824669361115,
-0.032259464263916016,
-0.018349332734942436,
0.040083516389131546,
-0.005979294888675213,
-0.02458881214261055,
-0.02887747623026371,
0.029713362455368042,
-0.02587299607694149,
0.005025969818234444,
-0.00028949714032933116,
0.032119493931531906,
0.01047325599938631,
-0.03210508078336716,
0.0085607273504138,
-0.03447180986404419,
-0.019787998870015144,
0.03773290291428566,
-0.018700165674090385,
0.020428387448191643,
-0.0505131296813488,
0.045733969658613205,
0.015904154628515244,
-0.01813049241900444,
-0.0075824870727956295,
-0.05522240698337555,
0.007463947404175997,
-0.03164529427886009,
0.03741611912846565,
-0.021758388727903366,
-0.03437250852584839,
-0.03543781116604805,
0.018569443374872208,
-0.024012118577957153,
0.008218434639275074,
0.015353057533502579,
-0.03616708889603615,
0.02623872645199299,
0.07362724840641022,
-0.015441734343767166,
0.02790609560906887,
-0.007867381907999516,
-0.042387090623378754,
0.05240560695528984,
-0.010887525044381618,
-0.0370691679418087,
-0.042520977556705475,
-0.043594397604465485,
0.02344403974711895,
-0.011086206883192062,
0.027519097551703453,
-0.0642620250582695,
0.03477043658494949,
0.03172652795910835,
0.03012320026755333,
0.03137199953198433,
0.013708073645830154,
0.02760927937924862,
-0.0347178652882576,
-0.006948817986994982,
-0.08190084248781204,
-0.027817927300930023,
0.029277417808771133,
-0.013627639040350914,
-0.03014969639480114,
-0.008505295030772686,
-0.02404705248773098,
-0.0066757299937307835,
-0.04697662964463234,
-0.016769059002399445,
0.051109880208969116,
0.011264439672231674,
0.0037924328353255987,
0.030969783663749695,
-0.03419845551252365,
0.01555351447314024,
0.05838693305850029,
-0.03998081386089325,
-0.017205266281962395,
-0.03123820386826992,
0.0668986514210701,
-0.009479597210884094,
0.025118891149759293,
0.004246282856911421,
-0.02437298186123371,
0.031131278723478317,
0.03908843919634819,
0.007790203206241131,
0.06831236183643341,
-0.02101367525756359,
0.01596149057149887,
0.01534208282828331,
-0.022403141483664513,
0.012880622409284115,
0.056263700127601624,
-0.009867580607533455,
-0.03355840966105461,
0.003971760161221027,
0.0044230325147509575,
-0.01658737286925316,
-0.035086628049612045,
0.0805618092417717,
0.013549897819757462,
-0.05476761609315872,
-0.06719233095645905,
0.018822813406586647,
-0.057301659137010574,
0.0019748674239963293,
-0.03014790080487728,
-0.028641454875469208,
-0.04811439290642738,
0.06489420682191849,
0.003979642875492573,
0.01966315507888794,
0.05647692456841469,
0.002692683832719922,
-0.01734471321105957,
0.027814017608761787,
0.06728953123092651,
0.09230410307645798,
0.047273099422454834,
0.012851414270699024,
0.05009649693965912,
0.006779799237847328,
-0.03901156410574913,
-0.0077235097996890545,
-0.06690597534179688,
0.019891656935214996,
0.020149700343608856,
0.017002390697598457,
0.08441884815692902,
-0.021663304418325424,
0.07920235395431519,
0.009495007805526257,
0.014955662190914154,
0.016295434907078743,
0.03005235269665718,
0.05652082338929176,
0.038050103932619095,
0.017165400087833405,
0.0594283752143383,
-0.023780815303325653,
-0.029194053262472153,
0.04665647819638252,
0.0232243575155735,
-0.008584569208323956,
0.02871539816260338,
-0.007244904525578022,
0.02295842580497265,
0.02074059285223484,
0.06054924055933952,
0.05178890377283096,
-0.012809481471776962,
-0.03478282317519188,
-0.0275134090334177,
0.019969819113612175,
-0.0023010876029729843,
0.037463996559381485,
-0.0006214805762283504,
-0.004339415580034256,
-0.0002649762900546193,
-0.04567486420273781,
-0.0032658379059284925,
-0.03426780551671982,
-0.02070738561451435,
0.027774281799793243,
-0.019847845658659935,
-0.0138866500928998,
0.02768622525036335,
0.030738141387701035,
-0.04328056052327156,
-0.03343601152300835,
-0.05207467079162598,
-0.05284308269619942,
-0.05874892324209213,
0.014757601544260979,
0.0014077448286116123,
0.011398924514651299,
-0.02237033098936081,
-0.026635030284523964,
-0.031913548707962036,
-0.02019033022224903,
0.02843501605093479,
-0.039807915687561035,
-0.014891307801008224,
0.0051731844432652,
0.0466783307492733,
0.030000489205121994,
0.035164255648851395,
0.02943086065351963,
-0.024488331750035286,
-0.025919660925865173,
0.001690391800366342,
-0.00966571643948555,
0.045042477548122406,
0.024095477536320686,
-0.022096868604421616,
-0.09802519530057907,
-0.003190458519384265,
0.020963750779628754,
-0.00410274276509881,
-0.07645729929208755,
0.0033088752534240484,
0.06153111904859543,
-0.024231204763054848,
0.014486981555819511,
-0.03015216812491417,
-0.030661633238196373,
-0.02515459433197975,
-0.006070083472877741,
-0.01056098286062479,
-0.0172846969217062,
0.05372845381498337,
-0.029633715748786926,
0.08067579567432404,
0.025147298350930214,
-0.008460616692900658,
-0.0396614596247673,
-0.000007515358902310254,
-0.015101621858775616,
0.02668081596493721,
-0.051779855042696,
-0.06307867169380188,
-0.024584202095866203,
-0.06367990374565125,
-0.04034781455993652,
-0.010875347070395947,
-0.039151839911937714,
-0.016512271016836166,
0.019800204783678055,
0.042560428380966187,
-0.028720324859023094,
0.0422108992934227,
-0.024917317554354668,
0.024016790091991425,
-0.032530102878808975,
-0.001311359810642898,
-0.012724008411169052,
0.035101648420095444,
-0.005087220575660467,
0.04015352204442024,
0.006819989066570997,
-0.015039662830531597,
0.01911376416683197,
-0.02150913141667843,
0.0292095597833395,
0.02473055012524128,
-0.021346421912312508,
0.014099903404712677
] | [
-0.08551285415887833,
-0.029965747147798538,
-0.03847479820251465,
0.00046588186523877084,
0.052813269197940826,
-0.06788167357444763,
-0.007512258365750313,
-0.023765206336975098,
0.03934741020202637,
-0.019682837650179863,
0.021586721763014793,
-0.05980733409523964,
0.052612319588661194,
-0.04033413156867027,
0.03328930214047432,
-0.019900808110833168,
-0.044664084911346436,
-0.054072022438049316,
-0.019685855135321617,
0.025890173390507698,
-0.003769375616684556,
-0.03531486168503761,
-0.07296770066022873,
-0.03919295594096184,
-0.0021981648169457912,
0.07950419932603836,
0.03687937930226326,
-0.013635562732815742,
-0.0039016976952552795,
-0.22882607579231262,
0.02507893368601799,
0.0016979146748781204,
0.033213481307029724,
-0.013150089420378208,
0.0502978190779686,
0.023502357304096222,
0.015944354236125946,
0.03534238040447235,
-0.007316236384212971,
0.029576344415545464,
0.014459139667451382,
-0.003429895266890526,
-0.06257347017526627,
-0.025633249431848526,
0.019724005833268166,
0.023556986823678017,
-0.050245825201272964,
-0.009102866984903812,
0.02335139364004135,
0.011518171057105064,
-0.05232570692896843,
-0.015106063336133957,
-0.028962550684809685,
0.0009275681804865599,
-0.01021695788949728,
0.048876289278268814,
0.05303303524851799,
0.04993429780006409,
-0.012274231761693954,
0.029785215854644775,
0.03758212551474571,
-0.007723662070930004,
-0.11200041323900223,
0.08485203236341476,
0.037423375993967056,
0.048186883330345154,
-0.014447050169110298,
-0.04974660649895668,
-0.039661992341279984,
0.0930892676115036,
-0.010746428743004799,
-0.008171702735126019,
-0.01627369038760662,
0.06411810219287872,
-0.0012127527734264731,
-0.024867601692676544,
-0.042165305465459824,
0.010335617698729038,
0.016154512763023376,
0.009904501959681511,
-0.06819405406713486,
-0.010545569472014904,
0.01306981686502695,
-0.030334344133734703,
-0.021975375711917877,
0.001249621156603098,
-0.030802875757217407,
0.030080942437052727,
0.025511372834444046,
-0.004608794581145048,
0.03218036890029907,
0.007870178669691086,
0.03476454317569733,
0.023314496502280235,
-0.0778287947177887,
-0.01269995141774416,
-0.001883688848465681,
0.036475613713264465,
-0.011990218423306942,
0.4068108797073364,
-0.04185573384165764,
-0.001478549325838685,
0.054464466869831085,
0.03455330803990364,
0.0030373260378837585,
-0.02868891879916191,
-0.03507734835147858,
-0.04763714224100113,
0.014169538393616676,
-0.07284893095493317,
0.010863990522921085,
-0.06466753035783768,
0.07791882008314133,
-0.07202483713626862,
-0.004650568589568138,
0.03461071103811264,
0.020540587604045868,
0.018951674923300743,
0.0009415895328857005,
-0.0027548172511160374,
-0.01642213761806488,
-0.021644441410899162,
0.023087801411747932,
0.018829770386219025,
-0.00014220637967810035,
0.01522891316562891,
0.031072070822119713,
0.07666962593793869,
0.02613070048391819,
0.052189599722623825,
0.03942331671714783,
-0.03672981634736061,
-0.07288457453250885,
0.006087694317102432,
-0.02716144546866417,
0.028118042275309563,
0.005530700087547302,
-0.02665468119084835,
0.015346292406320572,
0.03275670111179352,
0.014073163270950317,
-0.08991249650716782,
0.02059321105480194,
0.015218439511954784,
-0.01628238521516323,
0.16419026255607605,
-0.0301775261759758,
-0.012836218811571598,
-0.05083397030830383,
-0.03830758482217789,
-0.015790125355124474,
0.017269568517804146,
-0.00009357029193779454,
-0.08064500242471695,
-0.004384366329759359,
0.028091413900256157,
0.11220507323741913,
-0.024741526693105698,
-0.032022565603256226,
-0.013659984804689884,
-0.02039463073015213,
-0.027840105816721916,
-0.07305926829576492,
0.08143091946840286,
0.05538354441523552,
-0.12025120109319687,
-0.0044402494095265865,
-0.009029785171151161,
-0.013435661792755127,
-0.064178965985775,
0.04675266891717911,
0.009364791214466095,
-0.013375591486692429,
0.028133949264883995,
0.009985734708607197,
-0.0293866079300642,
-0.013742606155574322,
0.00845717266201973,
0.054650574922561646,
0.002738249721005559,
-0.02872299961745739,
0.024910898879170418,
-0.08680927753448486,
0.00955540593713522,
-0.04796592891216278,
-0.06652096658945084,
-0.06597664952278137,
0.02174273505806923,
-0.008885405026376247,
0.006675027776509523,
-0.02892952784895897,
-0.025247709825634956,
-0.039890993386507034,
0.05443621054291725,
-0.046752601861953735,
-0.026785127818584442,
0.017955999821424484,
0.008671675808727741,
-0.010559378191828728,
-0.02900826930999756,
0.03368539735674858,
0.006119369994848967,
-0.003128852229565382,
0.013045785948634148,
-0.056795939803123474,
0.019775215536355972,
0.03137391805648804,
-0.04103317856788635,
0.055092085152864456,
0.008828341960906982,
0.017309483140707016,
-0.01635519228875637,
-0.029857689514756203,
0.018886800855398178,
0.006928008049726486,
-0.06129853427410126,
-0.010419183410704136,
0.010255398228764534,
0.03788289427757263,
0.05353868007659912,
-0.017630010843276978,
-0.0730995163321495,
0.017478181049227715,
-0.3442571759223938,
-0.04131203517317772,
0.013809221796691418,
0.019523998722434044,
-0.001543497433885932,
-0.0435480922460556,
0.004956470336765051,
0.006498652044683695,
-0.058844443410634995,
0.06692104041576385,
0.05430150777101517,
-0.006384748034179211,
-0.007125456351786852,
-0.03405587747693062,
-0.02960790880024433,
0.04309941455721855,
-0.011263275519013405,
0.004457234870642424,
-0.008698896504938602,
0.03639736771583557,
-0.010506285354495049,
-0.006803601980209351,
-0.000595651741605252,
-0.029740381985902786,
0.04194902256131172,
-0.03355221077799797,
0.13703516125679016,
0.02025977335870266,
0.0213282722979784,
-0.031060053035616875,
0.02117123268544674,
0.02455936372280121,
-0.0037103090435266495,
-0.07006019353866577,
-0.00012475957919377834,
-0.0011999598937109113,
-0.03643704205751419,
0.031135540455579758,
0.024221519008278847,
-0.010994542390108109,
-0.06365081667900085,
0.01199114415794611,
-0.005342887248843908,
-0.00510221254080534,
-0.011698586866259575,
0.019409779459238052,
-0.026921045035123825,
-0.027836469933390617,
0.0034687318839132786,
0.09529536217451096,
0.02370719239115715,
0.007043781224638224,
0.023454802110791206,
0.0041731493547558784,
0.011004334315657616,
-0.018115174025297165,
-0.058502230793237686,
-0.023663345724344254,
0.0008360351785086095,
-0.04651371017098427,
0.028557050973176956,
0.008999296464025974,
0.05198751389980316,
-0.03578051179647446,
0.012644645757973194,
0.005309013649821281,
0.013388040475547314,
0.007150375749915838,
0.034307222813367844,
-0.00629301555454731,
-0.04764307290315628,
0.0657370463013649,
0.00019734866509679705,
0.0171783659607172,
-0.0215474683791399,
0.06129401922225952,
-0.02090122550725937,
0.009822503663599491,
0.03715350478887558,
-0.023980911821126938,
0.04891098663210869,
-0.02342798560857773,
0.03365747630596161,
0.004496186040341854,
0.02616199105978012,
0.03686630353331566,
0.0305873341858387,
0.03613724559545517,
0.06787846982479095,
-0.004540047142654657,
0.004564258735626936,
-0.030895305797457695,
-0.003768965369090438,
-0.018199177458882332,
0.06064620986580849,
0.004896048456430435,
-0.2729848623275757,
0.03286148980259895,
0.026496047154068947,
0.07237295061349869,
-0.0021387748420238495,
0.020947778597474098,
0.021210722625255585,
-0.02752567268908024,
0.02583443373441696,
-0.03947598114609718,
-0.003636716865003109,
0.036140598356723785,
-0.008491536602377892,
-0.0416497066617012,
-0.007072638254612684,
0.016308866441249847,
0.053036488592624664,
-0.027992838993668556,
-0.04072098806500435,
0.03850198909640312,
0.030267169699072838,
-0.026323040947318077,
0.1928412914276123,
0.011490441858768463,
0.011691898107528687,
0.00007351556268986315,
0.01868116296827793,
0.039916545152664185,
0.04819861799478531,
0.027332831174135208,
0.00010635985381668434,
-0.01909445971250534,
0.03972088173031807,
-0.016347743570804596,
0.034997839480638504,
-0.0024007486645132303,
-0.014840884134173393,
0.02912500873208046,
0.03204663097858429,
-0.010099460370838642,
-0.02831844612956047,
0.00028698021196760237,
-0.09268515557050705,
0.011005917564034462,
0.07200189679861069,
0.03266724944114685,
0.011276515200734138,
-0.01801721192896366,
-0.029318934306502342,
0.016208481043577194,
-0.03352576866745949,
-0.015032174065709114,
-0.0035689843352884054,
-0.016651617363095284,
0.02087242901325226,
0.04459463432431221,
-0.020456910133361816,
-0.006271987222135067,
0.019305650144815445,
0.01586209051311016,
-0.026169350370764732,
-0.03282846882939339,
0.10878469794988632,
0.012628774158656597,
-0.004720551427453756
] | [
-0.02183881215751171,
0.016236353665590286,
-0.006402950268238783,
0.01984364725649357,
-0.042695265263319016,
-0.02439417876303196,
0.0006120744510553777,
-0.017440536990761757,
-0.012911630794405937,
-0.019667966291308403,
-0.0386536680161953,
0.02154846303164959,
0.037265677005052567,
-0.040798768401145935,
-0.0037771377246826887,
0.023981530219316483,
-0.03451153263449669,
0.0021988314110785723,
0.04522141441702843,
-0.034506700932979584,
-0.051938194781541824,
0.04874688386917114,
0.0034582477528601885,
-0.03145425766706467,
-0.027951329946517944,
0.024817269295454025,
-0.01204480230808258,
0.01667747274041176,
-0.024543795734643936,
-0.11902919411659241,
-0.03283309191465378,
-0.02284352108836174,
0.0025106649845838547,
0.03144729137420654,
-0.025652986019849777,
0.0011442407267168164,
0.00720985047519207,
0.02647235058248043,
0.02670019306242466,
0.011612480506300926,
-0.03286221623420715,
-0.009536520577967167,
0.024454893544316292,
0.025750886648893356,
-0.012304944917559624,
0.031758420169353485,
-0.04840241000056267,
0.05638471990823746,
0.023478876799345016,
-0.033261798322200775,
-0.034328751266002655,
0.015949292108416557,
0.0000471534367534332,
0.013839641585946083,
0.07851184159517288,
0.0024044078309088945,
-0.03767528384923935,
-0.03547727316617966,
-0.02754640206694603,
-0.03134279325604439,
-0.0024274836760014296,
0.011882980354130268,
-0.03025170974433422,
0.0022279329132288694,
-0.0057695708237588406,
-0.03283519670367241,
-0.01725258305668831,
0.023210205137729645,
0.01922774314880371,
-0.006436036434024572,
-0.026976555585861206,
0.02242122031748295,
-0.05919882282614708,
0.008811010979115963,
-0.0018732617609202862,
0.04258726164698601,
-0.002734314650297165,
-0.053964074701070786,
-0.004189656116068363,
-0.007566178683191538,
-0.05731186270713806,
-0.02936468832194805,
0.020445970818400383,
0.040022339671850204,
-0.005694274324923754,
-0.06469555199146271,
-0.016668038442730904,
0.0007187147275544703,
-0.012198480777442455,
-0.01896054297685623,
-0.004475774709135294,
-0.012403912842273712,
0.01634582318365574,
0.000022779842765885405,
-0.08012660592794418,
0.01053839921951294,
0.0138341523706913,
0.015621446073055267,
-0.032307613641023636,
0.8204755187034607,
-0.008524172008037567,
0.03893890231847763,
0.015577774494886398,
0.0059058512561023235,
-0.0013687425525858998,
-0.006156011484563351,
0.015704786404967308,
-0.021743610501289368,
-0.0008396900375373662,
-0.03353085368871689,
0.03395574539899826,
-0.03933445364236832,
0.02937532588839531,
0.017675869166851044,
0.018006110563874245,
0.029324611648917198,
0.010045955888926983,
0.039497774094343185,
-0.0027854465879499912,
0.02083844318985939,
-0.008746656589210033,
-0.0075872959569096565,
0.018416384235024452,
-0.004552194382995367,
-0.01010946836322546,
-0.16558046638965607,
-0.004848107695579529,
-7.674010627199849e-33,
0.01867704465985298,
-0.01604505628347397,
0.02652297541499138,
-0.01520213671028614,
0.0211393553763628,
-0.009317952208220959,
-0.01655544713139534,
0.01899968460202217,
-0.04340579733252525,
-0.027236852794885635,
-0.0043692393228411674,
0.02513040415942669,
0.05190638452768326,
0.011079716496169567,
-0.028345918282866478,
-0.016372280195355415,
0.03572564572095871,
0.0677950531244278,
-0.020159685984253883,
0.012874370440840721,
0.04696780815720558,
0.04207751527428627,
0.049196187406778336,
0.0181947760283947,
0.011253713630139828,
0.006105577573180199,
-0.02521464042365551,
0.018277203664183617,
0.02757147327065468,
-0.04702990874648094,
-0.051028382033109665,
0.07148750126361847,
0.029122959822416306,
-0.013341180048882961,
0.002411456545814872,
-0.026999833062291145,
0.013933081179857254,
-0.0026220001745969057,
-0.013081961311399937,
-0.03889978304505348,
-0.01617802493274212,
0.029388226568698883,
0.009174549020826817,
-0.047031469643116,
0.005237027537077665,
-0.011024911887943745,
-0.023297280073165894,
0.03361055254936218,
0.028991306200623512,
0.06711262464523315,
0.045600444078445435,
-0.012228894978761673,
-0.04041128233075142,
0.03375261276960373,
-0.02987315133213997,
-0.0049344440922141075,
0.012968897819519043,
0.021283065900206566,
0.028049269691109657,
0.050995536148548126,
-0.0027461713179945946,
0.02355441078543663,
-0.006073664873838425,
0.03254822641611099,
0.0054390281438827515,
-0.011118264868855476,
0.058785613626241684,
0.036330390721559525,
0.01811422035098076,
0.013805107213556767,
-0.006617766804993153,
0.009619032964110374,
-0.011839198879897594,
-0.025212204083800316,
0.006116916891187429,
-0.02463352493941784,
0.005957419518381357,
-0.02471870929002762,
0.012494806200265884,
0.025364166125655174,
-0.010214749723672867,
-0.029059413820505142,
-0.025942672044038773,
-0.023835722357034683,
-0.021931102499365807,
-0.011504855938255787,
-0.0015100387390702963,
0.011614946648478508,
-0.027116045355796814,
0.008240274153649807,
0.005454174242913723,
0.05406101420521736,
-0.02125660702586174,
-0.03991444408893585,
0.013575507327914238,
7.040130441306715e-33,
0.036489129066467285,
-0.01135373767465353,
0.001291850465349853,
-0.01747884228825569,
0.030052294954657555,
-0.03171572834253311,
0.06252746284008026,
-0.010249035432934761,
-0.004510498605668545,
0.020835788920521736,
-0.017383620142936707,
0.005513093899935484,
0.027801085263490677,
0.00620921328663826,
0.04167582839727402,
0.00753023149445653,
0.010766930878162384,
0.029056187719106674,
-0.004747076891362667,
0.003558556782081723,
-0.014260455965995789,
-0.0025800573639571667,
0.03508593142032623,
0.022624479606747627,
0.009450996294617653,
0.0020101743284612894,
-0.038499049842357635,
-0.04008518159389496,
-0.004504638724029064,
-0.003357427194714546,
0.018072832375764847,
0.006623338907957077,
-0.0010325047187507153,
-0.01694677211344242,
0.004090891685336828,
0.04597194120287895,
-0.006918859202414751,
-0.021003250032663345,
0.02283431589603424,
-0.006891629658639431,
0.03880380466580391,
0.050181299448013306,
-0.03230556473135948,
0.006394775118678808,
0.03840786963701248,
-0.0025210618041455746,
0.004525681026279926,
0.01393240224570036,
-0.020416324958205223,
-0.016102340072393417,
0.022639719769358635,
0.026575792580842972,
-0.0294497050344944,
-0.015663474798202515,
0.009949063882231712,
-0.007718532811850309,
-0.01736089214682579,
0.01974782906472683,
-0.04904459789395332,
-0.0020010541193187237,
-0.010987887158989906,
0.008592497557401657,
-0.02520601823925972,
0.030076416209340096,
-0.035057518631219864,
0.007089723367244005,
-0.05445517972111702,
-0.010992043651640415,
-0.011272422969341278,
0.015224280767142773,
-0.028762532398104668,
-0.06044226512312889,
-0.0035331721883267164,
0.012999766506254673,
-0.042019642889499664,
-0.007430359721183777,
-0.04580312222242355,
0.017638539895415306,
-0.027048589661717415,
0.06651552021503448,
0.018358683213591576,
0.00018433594959788024,
0.014544375240802765,
0.03454970195889473,
-0.03387831896543503,
0.011340701952576637,
-0.023827968165278435,
-0.017404397949576378,
0.0324011892080307,
0.03785678371787071,
-0.033976055681705475,
-0.008977197110652924,
-0.012996085919439793,
0.008963290601968765,
-0.0042364755645394325,
-1.2660756887328262e-8,
-0.04098237678408623,
0.031030016019940376,
-0.021164244040846825,
0.04926403984427452,
0.009562669321894646,
-0.026847032830119133,
-0.028780058026313782,
-0.014802016317844391,
-0.013292291201651096,
-0.0013878706376999617,
-0.0021434822119772434,
-0.018971089273691177,
-0.005430695600807667,
0.02760087139904499,
0.05448682978749275,
-0.01884002424776554,
0.036760810762643814,
-0.0431436188519001,
0.02078360691666603,
0.014707774855196476,
0.009094820357859135,
0.02897784486413002,
0.005524108652025461,
0.005869555287063122,
-0.0056648217141628265,
0.004042760469019413,
0.018349817022681236,
-0.10503273457288742,
-0.011467045173048973,
0.013795462436974049,
0.03183950483798981,
-0.05966000631451607,
-0.03036528080701828,
0.011656636372208595,
0.03479015827178955,
-0.03703209385275841,
-0.02751515619456768,
0.008216454647481441,
0.002110880333930254,
0.001248228712938726,
-0.004517494235187769,
0.0010814762208610773,
0.017935723066329956,
-0.02167574316263199,
0.005572184920310974,
-0.02942945994436741,
-0.04352634772658348,
0.013362470082938671,
-0.006589414086192846,
-0.04184911400079727,
0.023506172001361847,
0.0038840961642563343,
0.003659692592918873,
0.014942161738872528,
0.05323445424437523,
0.02591794542968273,
-0.011846319772303104,
-0.008799961768090725,
0.013956360518932343,
0.008132748305797577,
0.01462673582136631,
0.003923195414245129,
-0.025244710966944695,
-0.02648051455616951
] | python-squashing-duplicate-pairs-together | https://markhneedham.com/blog/2015/12/20/python-squashing-duplicate-pairs-together |
false | 2015-12-27 12:24:05 | R: Error in approxfun(x.values.1, y.values.1, method = "constant", f = 1, : zero non-NA points | [
"r-2"
] | [
"R"
] | I've been following http://www.r-bloggers.com/how-to-perform-a-logistic-regression-in-r/[Michy Alice's logistic regression tutorial] to create an attendance model for London dev meetups and ran into an interesting problem while doing so.
Our dataset has a class imbalance i.e. most people RSVP 'no' to events which can lead to misleading accuracy score where predicting 'no' every time would lead to supposed high accuracy.
[source,r]
----
Source: local data frame [2 x 2]
attended n
(dbl) (int)
1 0 1541
2 1 53
----
I sampled the data using +++<cite>+++caret+++</cite>+++'s +++<cite>+++http://www.inside-r.org/packages/cran/caret/docs/upSample[upSample]+++</cite>+++ function to avoid this:
[source,r]
----
attended = as.factor((df %>% dplyr::select(attended))$attended)
upSampledDf = upSample(df %>% dplyr::select(-attended), attended)
upSampledDf$attended = as.numeric(as.character(upSampledDf$Class))
----
I then trained a logistic regression model but when I tried to plot the area under the curve I ran into trouble:
[source,r]
----
p <- predict(model, newdata=test, type="response")
pr <- prediction(p, test$attended)
prf <- performance(pr, measure = "tpr", x.measure = "fpr")
Error in approxfun(x.values.1, y.values.1, method = "constant", f = 1, :
zero non-NA points
----
I don't have any NA values in my data frame so this message was a bit confusing to start with. As usual http://stackoverflow.com/questions/23836955/error-in-approxfunx-values-1-y-values-1-method-constant-f-1-zero-no/33028711#33028711[Stack Overflow came to the rescue] with the suggestion that I was probably missing positive/negative values for the independent variable i.e. 'approved'.
A quick count on the test data frame using dplyr confirmed my mistake:
[source,r]
----
> test %>% count(attended)
Source: local data frame [1 x 2]
attended n
(dbl) (int)
1 1 582
----
I'll have to http://stackoverflow.com/questions/9081498/the-correct-approach-of-randomly-re-ordering-a-matrix-in-r[randomly sort the data frame] and then reassign my training and test data frames to work around it. | null | null | [
0.004341872408986092,
-0.00845169834792614,
0.01645052433013916,
0.03379874303936958,
0.08280476927757263,
0.03688180819153786,
0.015587994828820229,
0.013051970861852169,
-0.01686781272292137,
0.008779378607869148,
0.015394207090139389,
0.013398812152445316,
-0.056782834231853485,
0.031949110329151154,
-0.006677090190351009,
0.09712286293506622,
0.09395642578601837,
0.005303976126015186,
0.016074571758508682,
0.009295464493334293,
0.03454631194472313,
0.03349277749657631,
-0.0024230473209172487,
0.04631217196583748,
0.024295328184962273,
-0.008471100591123104,
0.012784614227712154,
-0.011128577403724194,
-0.0472276397049427,
0.005540573503822088,
0.05588972941040993,
0.009579304605722427,
-0.012370827607810497,
-0.017658591270446777,
0.022674033418297768,
0.035198673605918884,
0.00263314344920218,
0.009930542670190334,
0.024803021922707558,
-0.008973492309451103,
-0.08774743974208832,
0.006674908101558685,
-0.031176310032606125,
0.016011742874979973,
-0.06215183436870575,
0.0019001661567017436,
-0.040730420500040054,
0.021538814529776573,
0.037603527307510376,
0.0002456721558701247,
-0.09134151041507721,
0.06680714339017868,
0.013459115289151669,
-0.022913292050361633,
-0.000796846579760313,
0.04042581841349602,
0.03376738354563713,
-0.08231530338525772,
0.03477495536208153,
-0.07002365589141846,
-0.009642419405281544,
0.03259429335594177,
-0.0312601737678051,
0.00458940165117383,
0.0020002510864287615,
0.00814224686473608,
0.00101991998963058,
0.028551433235406876,
-0.030614512041211128,
-0.011723938398063183,
-0.05372285470366478,
0.0032262590248137712,
-0.023022636771202087,
-0.015497026965022087,
-0.032627273350954056,
-0.03416574373841286,
-0.016260527074337006,
0.020245833322405815,
0.0323808491230011,
0.02070031501352787,
0.0012652578298002481,
-0.04893830418586731,
0.04903734102845192,
0.0062866248190402985,
-0.011076774448156357,
-0.042599692940711975,
-0.0014316904125735164,
-0.06718681752681732,
-0.033893655985593796,
0.05543829873204231,
-0.0053083873353898525,
-0.028346333652734756,
0.02550598606467247,
0.014939079992473125,
-0.033911995589733124,
0.0028928781393915415,
0.03284493461251259,
-0.04725860431790352,
-0.01258818618953228,
-0.005506347864866257,
-0.08367843180894852,
-0.018059466034173965,
0.031769659370183945,
0.05251297727227211,
-0.068470798432827,
0.004270433448255062,
-0.019817611202597618,
-0.011562511324882507,
-0.02473606914281845,
0.020835520699620247,
-0.04905400797724724,
0.025303002446889877,
-0.01828915998339653,
-0.04539504274725914,
-0.09830218553543091,
0.04437730833888054,
0.005354638677090406,
0.005298676434904337,
0.01454242691397667,
-0.023046718910336494,
0.03293648362159729,
0.01272937748581171,
-0.025435900315642357,
0.05980072170495987,
-0.0452318973839283,
0.04912345111370087,
-0.00002441960714349989,
0.043102361261844635,
-0.011985985562205315,
-0.021245570853352547,
-0.030443726107478142,
0.047726262360811234,
-0.019623709842562675,
0.030180903151631355,
-0.006910389289259911,
-0.02243383601307869,
-0.03338892012834549,
0.0013861623592674732,
0.05030537024140358,
0.040464844554662704,
0.04803009331226349,
-0.0046368008479475975,
0.020598851144313812,
0.007430798839777708,
0.046425048261880875,
-0.006687053479254246,
0.007325845770537853,
-0.02262101322412491,
-0.056475959718227386,
-0.017750542610883713,
0.024649666622281075,
0.06755826622247696,
0.04248489439487457,
-0.010409961454570293,
0.01500548142939806,
0.07170095294713974,
0.008597010746598244,
-0.021466141566634178,
-0.010946211405098438,
0.010851279832422733,
0.04371616244316101,
0.04611571133136749,
0.013273393735289574,
0.024696459993720055,
0.0019961914513260126,
-0.007958400063216686,
0.01818997599184513,
0.0570547915995121,
-0.01810498908162117,
0.020286066457629204,
-0.07018113136291504,
-0.06045426428318024,
0.08154629170894623,
-0.043773747980594635,
-0.017995323985815048,
0.04312347248196602,
0.03598574921488762,
0.03583317995071411,
0.04525555670261383,
0.01638134755194187,
-0.08425735682249069,
0.0665556788444519,
0.008479184471070766,
0.027527034282684326,
0.013307275250554085,
-0.034602921456098557,
0.05900980532169342,
0.02510998025536537,
0.028784533962607384,
0.03669555485248566,
-0.06481128185987473,
-0.05664600804448128,
0.01078698318451643,
-0.02431085892021656,
0.06287626922130585,
-0.035211775451898575,
-0.005638894625008106,
0.07168160378932953,
0.008175267837941647,
0.016193486750125885,
-0.006061319261789322,
0.029328197240829468,
0.024761661887168884,
-0.031284771859645844,
-0.030464395880699158,
0.02385321445763111,
0.027338001877069473,
0.005602139979600906,
-0.01662234403192997,
0.013086938299238682,
-0.035131752490997314,
0.06863368302583694,
0.018974723294377327,
-0.010663808323442936,
0.03761007636785507,
0.021086014807224274,
0.04154973104596138,
0.006468445993959904,
0.014630072750151157,
-0.040749046951532364,
0.020134426653385162,
-0.011531679891049862,
0.002225329400971532,
-0.023979783058166504,
-0.034826554358005524,
0.11518856883049011,
0.07184380292892456,
0.024494042620062828,
-0.05033332481980324,
0.026062531396746635,
-0.0029792815912514925,
-0.04131081700325012,
0.016274619847536087,
0.003066140227019787,
-0.02445298060774803,
0.018978876993060112,
-0.026760833337903023,
-0.024760354310274124,
0.017358478158712387,
-0.047072503715753555,
-0.003898388473317027,
0.07861194759607315,
-0.0065515972673892975,
0.03672274202108383,
-0.009865330532193184,
-0.003384055569767952,
0.008612402714788914,
-0.008055289275944233,
-0.05629204958677292,
0.01032435055822134,
0.03975268825888634,
-0.0037870940286666155,
0.008940679021179676,
-0.01451614685356617,
-0.006026849150657654,
-0.027070144191384315,
-0.03847183287143707,
0.04541872814297676,
0.08503498882055283,
0.04997427016496658,
0.0023299898020923138,
0.03573506325483322,
-0.035316746681928635,
-0.007853577844798565,
-0.01027898769825697,
-0.06149755418300629,
-0.046632297337055206,
-0.02104327641427517,
0.009936975315213203,
0.04118487611413002,
0.02279161475598812,
0.003772000316530466,
-0.0008090284536592662,
0.0037833929527550936,
0.006566956639289856,
0.00022193022596184164,
0.052733391523361206,
0.013421843759715557,
-0.012829550541937351,
-0.011866717599332333,
-0.01649315655231476,
0.04714876413345337,
-0.006776485126465559,
-0.04042265564203262,
0.0153040224686265,
-0.07118633389472961,
-0.008098788559436798,
-0.02794167771935463,
-0.02402559295296669,
0.03633292764425278,
0.0044474415481090546,
0.0398455373942852,
0.03962290287017822,
-0.0032856944017112255,
0.034855760633945465,
-0.0005742140347138047,
0.019923605024814606,
0.04354248568415642,
0.012917245738208294,
0.01945006102323532,
-0.020082345232367516,
0.011957155540585518,
0.024269042536616325,
-0.005001527722924948,
0.01995447650551796,
-0.03779030591249466,
0.002188378944993019,
-0.006169372703880072,
-0.2850833833217621,
0.040369775146245956,
0.022352883592247963,
-0.010503139346837997,
0.0038414928130805492,
-0.07454519718885422,
0.03548916429281235,
-0.008803606033325195,
-0.040625594556331635,
0.00933870393782854,
0.006121438927948475,
-0.03489847481250763,
-0.027164876461029053,
0.04849312826991081,
0.0013570495648309588,
0.019194208085536957,
0.045601267367601395,
-0.04489663988351822,
-0.0002947010798379779,
0.06939126551151276,
0.04661969467997551,
-0.04638824611902237,
-0.032229021191596985,
0.07865901291370392,
0.016977345570921898,
0.06798534095287323,
-0.07231688499450684,
-0.004948863293975592,
-0.056326571851968765,
-0.0503559485077858,
0.04842425510287285,
-0.011130065657198429,
0.00996533315628767,
-0.010765989311039448,
0.010143029503524303,
-0.033072926104068756,
0.05505016818642616,
0.023946911096572876,
0.02344374544918537,
0.04465903714299202,
-0.0423109233379364,
-0.022824425250291824,
-0.004298202693462372,
-0.00747185293585062,
0.0590951144695282,
0.023560134693980217,
-0.06412587314844131,
0.029836313799023628,
-0.04061567410826683,
0.07712894678115845,
-0.06392894685268402,
-0.03864210471510887,
-0.03874126449227333,
0.011253215372562408,
-0.03223445266485214,
-0.01980561390519142,
-0.008143062703311443,
0.021952273324131966,
-0.05214495584368706,
-0.030725231394171715,
-0.0017437356291338801,
-0.01668725162744522,
-0.012030282989144325,
-0.04028197005391121,
-0.05222204327583313,
-0.05222301557660103,
-0.07515222579240799,
-0.016837213188409805,
0.042954571545124054,
0.029547015205025673,
-0.024989426136016846,
-0.0025114433374255896,
-0.00922237429767847,
-0.10071666538715363,
-0.0034435740672051907,
-0.027259131893515587,
-0.01605919376015663,
-0.011701666750013828,
0.014704854227602482,
0.03994207829236984,
-0.02615772932767868,
-0.0378790982067585,
0.04766411706805229,
0.00985914096236229,
0.02928655967116356,
0.018005361780524254,
0.019135529175400734,
0.0015998329035937786,
-0.04530450701713562,
-0.06349299103021622,
0.06709855049848557,
-0.024418238550424576,
0.0009454726823605597,
-0.02345115877687931,
-0.018504315987229347,
0.03817559778690338,
-0.000049149864935316145,
0.020397860556840897,
0.01735786907374859,
0.0051316190510988235,
0.018435770645737648,
-0.06266119331121445,
0.004615248180925846,
-0.05930311977863312,
-0.01675211451947689,
-0.02292698062956333,
-0.07620364427566528,
0.031870823353528976,
0.01280158944427967,
-0.015563786961138248,
0.016204478219151497,
-0.01274984423071146,
0.022514332085847855,
-0.04095545783638954,
-0.02887578122317791,
-0.017124749720096588,
0.01281947921961546,
0.009194480255246162,
-0.01797029934823513,
0.02319999597966671,
-0.052690938115119934,
-0.005881444085389376,
-0.05140828713774681,
-0.055857449769973755,
-0.027726536616683006,
-0.015376012772321701,
0.021077007055282593,
-0.00976865366101265,
-0.0354374460875988,
0.0016714796656742692,
-0.0011926651932299137,
0.02763865701854229,
0.0640503466129303,
0.010361338965594769,
0.04184369370341301,
0.0015527590876445174,
-0.05020306259393692,
-0.007996105588972569,
0.048749085515737534,
0.015649372711777687,
-0.006680214777588844,
0.030259331688284874,
-0.03167260065674782,
0.021173885092139244,
0.02888907492160797,
-0.015823643654584885,
0.036943159997463226,
0.012224442325532436,
0.012776228599250317,
-0.00864304881542921,
0.027674056589603424,
-0.003530780551955104,
0.014926006086170673,
-0.02338281273841858,
-0.0396619476377964,
0.010503469966351986,
0.029506808146834373,
0.00776184257119894,
-0.026360927149653435,
-0.07365541905164719,
0.0259475726634264,
-0.031851377338171005,
-0.03464435786008835,
-0.03925543278455734,
0.015028474852442741,
0.03556085750460625,
-0.012410026043653488,
0.012155787087976933,
0.007138027343899012,
-0.011021386831998825,
0.0063678305596113205,
0.013148006983101368,
-0.03728800639510155,
0.007455163169652224,
-0.014299004338681698,
-0.018340645357966423,
0.019530601799488068,
-0.01925547420978546,
0.02304214984178543,
-0.010183017700910568,
-0.010990896262228489,
-0.01782924123108387,
0.013312299735844135,
0.00801886711269617,
0.015253760851919651,
0.0525599829852581,
-0.03058158978819847,
-0.020583948120474815,
-0.015213684178888798,
-0.03776555880904198,
-0.05816494673490524,
-0.01159608643501997,
-0.024963349103927612,
0.017234250903129578,
-0.06578166037797928,
-0.06681445986032486,
-0.004187052138149738,
0.022579429671168327,
-0.026771146804094315,
-0.014370501972734928,
-0.015993783250451088,
0.00872686319053173,
-0.021269217133522034,
0.01685996726155281,
0.06777401268482208,
-0.06629235297441483,
0.006708664819598198,
0.014395840466022491,
-0.005580536555498838,
0.02492407150566578,
-0.024597981944680214,
-0.03501901403069496,
-0.01832692138850689,
0.011866900138556957,
0.03418034687638283,
-0.046188533306121826,
-0.043949611485004425,
-0.04594322293996811,
0.008709782734513283,
0.013888411223888397,
0.019962884485721588,
-0.00821784045547247,
0.0033665690571069717,
-0.022600846365094185,
0.004488773178309202,
-0.002199895679950714,
-0.0011729135876521468,
-0.05165623873472214,
0.0489327572286129,
0.0033770904410630465,
-0.004091981798410416,
-0.027314653620123863,
0.030379945412278175,
0.01680309884250164,
-0.01445160061120987,
-0.009427734650671482,
-0.07743314653635025,
0.023578764870762825,
0.019720440730452538,
0.024439947679638863,
-0.00382782774977386,
0.02737351693212986,
-0.032313272356987,
0.039390698075294495,
-0.036399807780981064,
-0.015060769394040108,
0.006337138824164867,
-0.017691459506750107,
0.053008999675512314,
0.04836675152182579,
0.021339813247323036,
-0.007883907295763493,
-0.006362681742757559,
-0.0032346625812351704,
0.04518010839819908,
-0.042966604232788086,
-0.041017819195985794,
-0.006102051120251417,
-0.04596920311450958,
0.05383453145623207,
0.02139209769666195,
0.019471853971481323,
-0.004086530767381191,
0.021969016641378403,
0.03207080438733101,
0.01617174781858921,
0.03876688331365585,
-0.002552054123952985,
0.018725693225860596,
-0.028479449450969696,
0.03390735387802124,
-0.12295548617839813,
-0.012037304230034351,
0.0453682504594326,
0.010291723534464836,
0.012872160412371159,
-0.016511965543031693,
-0.050900932401418686,
0.03877940773963928,
-0.06059733033180237,
-0.0065181441605091095,
0.02469688653945923,
0.010445309802889824,
0.01029370166361332,
0.003169520990923047,
-0.05051247775554657,
-0.020605992525815964,
0.015504566952586174,
-0.04623284190893173,
0.015903154388070107,
-0.02404223568737507,
0.060199838131666183,
-0.019255004823207855,
0.006177391391247511,
-0.027813419699668884,
0.018551498651504517,
0.05757187306880951,
0.02608165703713894,
-0.021138610318303108,
0.04362677037715912,
-0.041247427463531494,
0.041861552745103836,
0.0336444117128849,
0.0026461633387953043,
0.014553057961165905,
0.004154769238084555,
0.006029739510267973,
-0.05251822993159294,
0.03243685141205788,
-0.010160352103412151,
-0.02854180708527565,
-0.05096858739852905,
0.07136249542236328,
0.008757845498621464,
-0.05024983733892441,
-0.050592098385095596,
0.003245764411985874,
-0.005156328435987234,
-0.011314405128359795,
-0.008621078915894032,
-0.031046848744153976,
-0.024186016991734505,
0.061349451541900635,
-0.002781599760055542,
0.012296486645936966,
0.03398188576102257,
0.0037060643080621958,
0.018372956663370132,
0.017555780708789825,
0.08555523306131363,
0.08811688423156738,
0.053706567734479904,
-0.0027870265766978264,
0.07050161808729172,
-0.02069368027150631,
-0.043194107711315155,
0.016056792810559273,
-0.06921175867319107,
-0.0397932231426239,
-0.048103295266628265,
0.02419722080230713,
0.06299574673175812,
-0.002478776965290308,
0.04689028486609459,
-0.02081034518778324,
0.012844633311033249,
0.00714212516322732,
0.009428536519408226,
0.012368948198854923,
0.030653495341539383,
-0.0011213199468329549,
0.006918006576597691,
-0.003927004057914019,
-0.019218789413571358,
0.017310338094830513,
-0.01322142593562603,
-0.006761473603546619,
0.005311943124979734,
-0.018106870353221893,
0.01254922617226839,
-0.0074344417080283165,
-0.021869350224733353,
0.08633188903331757,
-0.033225852996110916,
-0.0211513489484787,
0.012568814679980278,
0.05963855981826782,
-0.006920007988810539,
0.005563818383961916,
0.021776016801595688,
-0.02361406944692135,
-0.026213841512799263,
-0.03046312928199768,
-0.02504495158791542,
0.015425024554133415,
-0.0185224749147892,
0.02591565065085888,
-0.04139568656682968,
0.005723166279494762,
0.0517343170940876,
-0.024684235453605652,
-0.03653571009635925,
-0.04957934841513634,
-0.036681972444057465,
-0.015527858398854733,
-0.05434134602546692,
-0.003586198203265667,
0.0017465881537646055,
-0.02778758481144905,
0.0007725901086814702,
-0.027745891362428665,
-0.01803303137421608,
-0.0177470613270998,
0.0055952719412744045,
-0.05436088517308235,
-0.026994269341230392,
0.018082192167639732,
-0.04275009036064148,
0.014173355884850025,
0.01943163014948368,
0.03350743651390076,
0.04261308163404465,
-0.0035376648884266615,
0.004386769607663155,
0.011004267260432243,
0.030808081850409508,
0.04227089136838913,
0.015823794528841972,
-0.06951384246349335,
-0.00007133249891921878,
0.02632381208240986,
-0.04027219116687775,
-0.07603069394826889,
0.03679423779249191,
0.024249712005257607,
0.0233770664781332,
0.03349747136235237,
-0.016061408445239067,
-0.010165675543248653,
-0.046749673783779144,
-0.01965894177556038,
0.007959587499499321,
0.0447353757917881,
0.022057268768548965,
-0.02824479155242443,
0.04895779490470886,
0.03423316031694412,
0.016564004123210907,
-0.04567635804414749,
-0.01900949329137802,
-0.00610079150646925,
-0.034955255687236786,
-0.04552925378084183,
-0.032482922077178955,
-0.04923776164650917,
-0.08725778013467789,
0.005046686623245478,
0.0214184932410717,
-0.08184250444173813,
-0.01855516992509365,
0.005721152760088444,
-0.00175390241201967,
0.008473888039588928,
0.03137023001909256,
-0.007637051399797201,
0.021885687485337257,
-0.03797871619462967,
-0.021821556612849236,
-0.025059126317501068,
0.013420116156339645,
-0.028612397611141205,
0.0018627196550369263,
0.011197170242667198,
-0.045588307082653046,
0.009332285262644291,
-0.026710545644164085,
0.016960669308900833,
0.03667372837662697,
0.014184272848069668,
0.02833128534257412
] | [
-0.045055367052555084,
-0.019915476441383362,
-0.02174311876296997,
-0.03901616483926773,
0.08475622534751892,
-0.00783783383667469,
-0.01291918195784092,
0.049140844494104385,
0.0053341626189649105,
-0.011277946643531322,
0.04253127798438072,
-0.05839754268527031,
-0.011391847394406796,
0.0022827459033578634,
0.04026717692613602,
0.001244760351255536,
-0.021471034735441208,
-0.0659363642334938,
-0.0036813572514802217,
0.06754373759031296,
-0.04260034114122391,
-0.02525125816464424,
-0.011887785978615284,
-0.012174935080111027,
0.055111970752477646,
0.03283436596393585,
-0.01468033716082573,
-0.03852735087275505,
-0.021301669999957085,
-0.22133015096187592,
0.002432631328701973,
-0.000835598330013454,
0.04721803590655327,
-0.03311845660209656,
0.004220208618789911,
0.0478132888674736,
0.05626334249973297,
0.007214362733066082,
0.043614890426397324,
0.04778038710355759,
-0.02161036618053913,
0.0008881268440745771,
-0.018949678167700768,
-0.02170531637966633,
0.04248662665486336,
-0.029725925996899605,
-0.04579663649201393,
-0.012290691025555134,
-0.02368875779211521,
-0.006682559382170439,
-0.019200453534722328,
-0.03368553891777992,
-0.01988830603659153,
0.017095930874347687,
-0.007662869058549404,
0.03411686047911644,
0.01554168201982975,
0.03314249962568283,
0.0022750382777303457,
0.005684034898877144,
0.01669202372431755,
0.022262442857027054,
-0.16169047355651855,
0.04417920485138893,
0.0028014592826366425,
0.042644377797842026,
-0.020618289709091187,
-0.05803987756371498,
-0.012539486400783062,
0.03557800501585007,
-0.0035581213887780905,
-0.020255692303180695,
-0.03921078145503998,
0.0794665589928627,
0.01047569140791893,
0.009203817695379257,
0.02136821672320366,
0.02505394071340561,
0.04181605577468872,
-0.02018882893025875,
0.02666487917304039,
0.047435276210308075,
-0.01048207562416792,
-0.04138514772057533,
0.04762833192944527,
-0.018947461619973183,
0.0017687187064439058,
-0.0005986335454508662,
-0.0045843711122870445,
-0.020499462261795998,
0.009753330610692501,
-0.009470576420426369,
-0.0010524495737627149,
0.014546625316143036,
-0.042069073766469955,
-0.0036502915900200605,
0.014283535070717335,
0.028754645958542824,
-0.05013638362288475,
0.39178532361984253,
0.0010577532229945064,
0.013012893497943878,
-0.021130960434675217,
0.08247151970863342,
-0.03097270242869854,
-0.08270980417728424,
-0.005118881352245808,
-0.04214710742235184,
-0.019678357988595963,
-0.017347613349556923,
0.03859627619385719,
-0.038280684500932693,
0.035953622311353683,
-0.03231700509786606,
0.003849659813567996,
-0.0006066951900720596,
0.07392054051160812,
-0.006450072396546602,
0.0010746668558567762,
0.01677454635500908,
0.02233733795583248,
-0.0008052431512624025,
0.048562902957201004,
-0.001969772856682539,
0.004790688864886761,
-0.011827708221971989,
0.011920596472918987,
0.09403687715530396,
0.0608464851975441,
-0.041707467287778854,
0.02635941281914711,
-0.03455013781785965,
-0.11720288544893265,
-0.00564278569072485,
-0.02472214587032795,
-0.005051830783486366,
0.047080762684345245,
0.008216855116188526,
0.016484318301081657,
0.020496364682912827,
0.020185913890600204,
-0.009433582425117493,
0.02383827418088913,
0.0015901661245152354,
-0.10132203251123428,
0.14360149204730988,
-0.046610601246356964,
0.014120100997388363,
-0.027002260088920593,
-0.0631616935133934,
0.016318263486027718,
0.04978303983807564,
-0.04383506625890732,
-0.044884245842695236,
0.015879224985837936,
0.03430771827697754,
0.06538792699575424,
-0.011283778585493565,
-0.025992922484874725,
-0.045430731028318405,
-0.01176154799759388,
-0.06981886178255081,
-0.021337706595659256,
0.026968859136104584,
0.02355308271944523,
-0.06225692480802536,
-0.011917407624423504,
0.04541080445051193,
-0.01107011642307043,
-0.09277208149433136,
0.04619880020618439,
-0.0036926274187862873,
-0.024445345625281334,
0.02916857786476612,
0.06637182831764221,
0.0053498633205890656,
-0.001481168088503182,
0.0016446481458842754,
0.07488132268190384,
0.017036816105246544,
0.03237028047442436,
-0.013301358558237553,
-0.05003206804394722,
0.006222098134458065,
-0.0016352657694369555,
-0.04339596629142761,
-0.07668105512857437,
-0.026596009731292725,
0.023379657417535782,
0.027004294097423553,
-0.030844852328300476,
-0.07826235145330429,
-0.11107450723648071,
0.024887755513191223,
-0.029555000364780426,
0.009035144932568073,
0.038169585168361664,
-0.019274400547146797,
0.006887473165988922,
-0.02176041342318058,
-0.04287315905094147,
0.06489779055118561,
0.02275964617729187,
-0.0050729671493172646,
-0.057882703840732574,
0.0490003265440464,
0.05091909319162369,
-0.02476571872830391,
0.035003598779439926,
0.04018166661262512,
-0.042436715215444565,
-0.019250571727752686,
-0.03045571967959404,
0.03716132789850235,
0.011819456703960896,
0.05162380263209343,
0.015456256456673145,
0.0297099519520998,
0.016069436445832253,
0.02661369927227497,
0.0310549084097147,
-0.01130716409534216,
-0.018888620659708977,
-0.3768315613269806,
-0.019317470490932465,
0.06431624293327332,
-0.00868041068315506,
0.011092370375990868,
-0.04370361566543579,
0.010506759397685528,
0.009325217455625534,
-0.03305675461888313,
0.08538789302110672,
0.07080826908349991,
0.04236184433102608,
0.005209808703511953,
-0.07539548724889755,
-0.0010048766853287816,
0.046591512858867645,
-0.06986042112112045,
-0.034133732318878174,
-0.046475064009428024,
-0.024271635338664055,
-0.037642836570739746,
-0.012094351463019848,
-0.010832968167960644,
-0.008594565093517303,
0.04808662831783295,
-0.013083030469715595,
0.0794953852891922,
-0.01126737892627716,
-0.003921681083738804,
-0.05625806748867035,
-0.001582304248586297,
0.019718289375305176,
0.004121107514947653,
-0.001128357369452715,
0.03863315284252167,
-0.03987525776028633,
-0.00091780029470101,
0.03258642926812172,
-0.010698801837861538,
-0.04619438573718071,
-0.019982587546110153,
0.019381629303097725,
-0.017576538026332855,
-0.0394616462290287,
-0.08698484301567078,
0.04164334014058113,
-0.05218580365180969,
0.0010803894838318229,
-0.03354482352733612,
0.06734121590852737,
0.03094301000237465,
-0.013665765523910522,
0.046163178980350494,
0.01535144541412592,
0.012969358824193478,
-0.011217565275728703,
-0.09741094708442688,
0.026416592299938202,
-0.01405967678874731,
0.006092987954616547,
0.03025149367749691,
0.0319732166826725,
0.06249995529651642,
-0.07445555180311203,
-0.04318491742014885,
-0.025954218581318855,
-0.008595075458288193,
-0.033260270953178406,
0.012402339838445187,
0.005786956287920475,
0.00018205694505013525,
0.13356606662273407,
0.018198562785983086,
0.029405709356069565,
0.04206346347928047,
0.005277009680867195,
-0.029771145433187485,
-0.05386396497488022,
0.008287833072245121,
0.01707855798304081,
0.03276333957910538,
-0.03875075653195381,
0.02871646359562874,
0.007010704837739468,
0.018212800845503807,
0.032123442739248276,
-0.015179845504462719,
-0.002042862121015787,
0.053349222987890244,
0.0418359600007534,
-0.029521824792027473,
-0.040452826768159866,
-0.018378525972366333,
-0.00513690197840333,
0.013511269353330135,
0.035822924226522446,
-0.2722248136997223,
-0.022087618708610535,
0.024412870407104492,
0.06857998669147491,
0.011233923025429249,
0.008257448673248291,
0.017138613387942314,
-0.045459095388650894,
-0.008462321944534779,
-0.028959035873413086,
0.03466909006237984,
0.03231443092226982,
0.054318252950906754,
0.002975542563945055,
0.018422596156597137,
-0.025870880112051964,
0.020768512040376663,
0.008202994242310524,
0.06478456407785416,
-0.02833569422364235,
0.02772916480898857,
-0.04112823307514191,
0.12569843232631683,
-0.0012653949670493603,
0.022255530580878258,
0.007366497535258532,
-0.0313502661883831,
-0.05648179352283478,
0.07368595898151398,
-0.02232617512345314,
-0.025073986500501633,
-0.012714376673102379,
0.058601390570402145,
0.023092908784747124,
0.04788181930780411,
-0.0119664017111063,
-0.002217727480456233,
-0.0244850292801857,
0.0035802905913442373,
-0.04454359784722328,
0.00529443146660924,
0.026552973315119743,
-0.026118965819478035,
0.03684753552079201,
0.10310196876525879,
-0.01525119412690401,
0.018400084227323532,
-0.03416549786925316,
0.016145063564181328,
0.028701413422822952,
0.009779926389455795,
-0.007098478265106678,
0.021458595991134644,
0.014819600619375706,
0.01369469054043293,
0.021606583148241043,
0.023474818095564842,
0.0028218617662787437,
-0.014964486472308636,
-0.0146142253652215,
0.0022821719758212566,
-0.04952440783381462,
0.0647243782877922,
-0.023395663127303123,
-0.02532145567238331
] | [
0.005257456097751856,
0.015984637662768364,
-0.016090724617242813,
0.0078392019495368,
-0.0017924067797139287,
-0.02790231816470623,
0.0030541052110493183,
0.009138265624642372,
-0.020229682326316833,
0.012790476903319359,
-0.005800919607281685,
0.00864078663289547,
0.0218629352748394,
0.011497188359498978,
0.009227712638676167,
-0.009668046608567238,
0.015281264670193195,
-0.015233679674565792,
0.020105665549635887,
0.03486122190952301,
-0.041133295744657516,
0.04203222319483757,
0.0135126868262887,
0.03586072474718094,
-0.025918468832969666,
-0.004460198804736137,
-0.03186160698533058,
0.030511420220136642,
0.022323137149214745,
-0.12579496204853058,
-0.043210469186306,
-0.013808760792016983,
-0.002431456232443452,
0.021740755066275597,
-0.022876814007759094,
-0.0009828510228544474,
-0.042672134935855865,
0.052514370530843735,
0.005510410293936729,
-0.0006721092504449189,
-0.014733545482158661,
-0.03131839260458946,
0.026105154305696487,
0.0006885207258164883,
0.020026929676532745,
-0.01527695544064045,
-0.026752222329378128,
-0.00610076729208231,
-0.00526898168027401,
-0.02200586348772049,
-0.03873575106263161,
0.006157523952424526,
0.015167325735092163,
-0.009041455574333668,
-0.02124011144042015,
-0.0009059780859388411,
-0.019825752824544907,
-0.0012118843151256442,
-0.014571214094758034,
-0.014727594330906868,
-0.021595429629087448,
0.021363744512200356,
-0.03012131340801716,
-0.021177589893341064,
-0.014587167650461197,
-0.02381502091884613,
-0.041090793907642365,
0.002714519388973713,
0.024242902174592018,
0.026083841919898987,
-0.022581757977604866,
0.004518213681876659,
-0.04484320059418678,
-0.031974468380212784,
0.013396406546235085,
0.0038148052990436554,
0.02132546715438366,
-0.037869494408369064,
-0.002815184649080038,
0.018854156136512756,
-0.04531699791550636,
0.017565598711371422,
0.012870377860963345,
-0.016248563304543495,
0.0005535773234441876,
-0.05960096791386604,
0.04793558269739151,
0.009206809103488922,
0.00654512969776988,
-0.0056937639601528645,
-0.014818118885159492,
0.0503496453166008,
-0.016207216307520866,
0.010058296844363213,
-0.08806845545768738,
-0.008383281528949738,
-0.0077493744902312756,
-0.003275847528129816,
-0.0013099720235913992,
0.8586276173591614,
0.006725675892084837,
0.03378854691982269,
0.02390105463564396,
0.02125624194741249,
-0.011425989679992199,
-0.03374544531106949,
-0.0010386047651991248,
-0.0033852921333163977,
0.007615064270794392,
-0.030793093144893646,
0.009277863427996635,
0.015306202694773674,
0.023534364998340607,
0.05323340371251106,
0.04628468677401543,
0.044140804558992386,
0.004246728494763374,
0.0038588205352425575,
-0.03992174565792084,
0.01858043670654297,
-0.009695960208773613,
0.0221723522990942,
-0.009347200393676758,
0.0200775358825922,
0.003885895712301135,
-0.18312039971351624,
-0.021970465779304504,
-7.251787750063868e-33,
0.03865658491849899,
-0.00727922422811389,
0.019747508689761162,
-0.031696867197752,
0.0022989355493336916,
0.013116060756146908,
-0.02907213382422924,
-0.003663274459540844,
0.017733227461576462,
-0.014041615650057793,
-0.0016798210563138127,
-0.0034103377256542444,
0.03256405144929886,
-0.024748453870415688,
0.03091316483914852,
0.003070045495405793,
-0.015242661349475384,
0.043121594935655594,
-0.019902100786566734,
0.03978831321001053,
0.018852820619940758,
0.019094137474894524,
0.003274111542850733,
-0.0007299173157662153,
0.007742449175566435,
0.030616099014878273,
0.028834357857704163,
0.03208514302968979,
0.013398820534348488,
-0.04151024669408798,
-0.007063575088977814,
0.019850969314575195,
-0.011319476179778576,
-0.03088957630097866,
0.014862006530165672,
-0.04596271738409996,
-0.015727750957012177,
0.006005344446748495,
-0.004645230248570442,
0.0043574124574661255,
-0.04676784202456474,
0.01110329944640398,
-0.027024537324905396,
-0.0041327401995658875,
-0.02921544760465622,
0.018934231251478195,
0.03644082322716713,
0.07847464084625244,
0.008342008106410503,
0.02081482857465744,
0.005443124566227198,
-0.027576865628361702,
-0.00945541262626648,
0.0017641127342358232,
-0.00971810333430767,
0.0429946705698967,
0.002895232755690813,
0.018739191815257072,
0.022975165396928787,
0.016659094020724297,
-0.0211844090372324,
-0.03183765709400177,
0.0005879986565560102,
0.021858051419258118,
-0.016009174287319183,
-0.014304589480161667,
0.020745355635881424,
-0.049641530960798264,
0.02194049209356308,
-0.0014357888139784336,
-0.040578313171863556,
0.002222606446594,
-0.023073654621839523,
-0.0033864660654217005,
0.019166598096489906,
-0.007809522096067667,
0.011539489030838013,
0.03481439873576164,
0.0422801747918129,
0.05689359828829765,
-0.0019131823210045695,
0.022017208859324455,
-0.034462302923202515,
-0.026508385315537453,
-0.013221954926848412,
-0.03538985550403595,
0.030696338042616844,
0.0055167763493955135,
-0.015023401938378811,
-0.009818179532885551,
0.009623566642403603,
0.008991694077849388,
-0.011738158762454987,
-0.03574034571647644,
-0.004870387725532055,
7.426414782718212e-33,
0.009436879307031631,
-0.001514031901024282,
-0.012274987995624542,
0.002657158998772502,
0.04432029649615288,
-0.029073094949126244,
0.009958167560398579,
0.005693128332495689,
-0.025864198803901672,
0.009403901174664497,
-0.006259219720959663,
-0.033121537417173386,
0.010725387372076511,
0.03202223405241966,
0.03927218168973923,
0.00009739701636135578,
0.007340455427765846,
0.018273962661623955,
-0.02491110935807228,
0.038543347269296646,
0.037853412330150604,
0.010102779604494572,
0.007073161657899618,
-0.0018613057909533381,
0.0040889945812523365,
0.044470738619565964,
-0.016405198723077774,
-0.008912770077586174,
0.00006218402268132195,
-0.028409231454133987,
-0.016042102128267288,
0.01812237687408924,
-0.01599089615046978,
-0.04551946744322777,
-0.014021315611898899,
0.03743455931544304,
0.022306550294160843,
-0.04233764111995697,
-0.017126014456152916,
-0.004036269150674343,
0.020513590425252914,
0.02096771076321602,
-0.008405208587646484,
0.016753561794757843,
0.0017360630445182323,
-0.00435976404696703,
-0.003466811031103134,
-0.0022245452273637056,
0.006665369961410761,
-0.007628981489688158,
-0.04302871227264404,
-0.018399517983198166,
0.024032827466726303,
0.03126802295446396,
0.01730416715145111,
-0.006331580225378275,
-0.017994852736592293,
0.015224101021885872,
-0.04691918566823006,
0.003186221234500408,
-0.011294379830360413,
0.009873660281300545,
-0.017961323261260986,
-0.011533095501363277,
-0.02451305091381073,
-0.014196423813700676,
0.01836387626826763,
-0.014402437023818493,
-0.00958289671689272,
0.013930701650679111,
-0.019933277741074562,
-0.020731210708618164,
0.03296997398138046,
0.022754278033971786,
0.01861143857240677,
0.003420265158638358,
-0.026951495558023453,
0.0030340333469212055,
0.023478951305150986,
0.009148707613348961,
0.02232428826391697,
-0.01815957948565483,
0.02953338250517845,
0.005837950389832258,
0.0038432509172707796,
0.015067698433995247,
-0.0043532769195735455,
0.002653637668117881,
0.028873059898614883,
-0.010138135403394699,
-0.004901809152215719,
-0.018469693139195442,
0.011041677556931973,
0.03784537687897682,
-0.016623804345726967,
-1.3136681076275636e-8,
-0.0027077889535576105,
0.010149246081709862,
-0.013892757706344128,
-0.0031133631709963083,
0.027973312884569168,
0.02688528411090374,
-0.01744731329381466,
-0.010632512159645557,
-0.03382611274719238,
0.03220856934785843,
0.04652152210474014,
0.005734971258789301,
0.010100439190864563,
-0.02512938901782036,
0.026905719190835953,
-0.04011833667755127,
0.01564459688961506,
0.0020978900138288736,
0.0185785461217165,
-0.0142371766269207,
-0.008738011121749878,
0.022264664992690086,
-0.03596792742609978,
-0.014709295704960823,
0.05747575685381889,
-0.010786243714392185,
-0.01695169322192669,
-0.07267234474420547,
-0.014824172481894493,
-0.03652847185730934,
0.0151736531406641,
-0.014880070462822914,
-0.007079911418259144,
0.0003947819641325623,
-0.01534572895616293,
-0.03635687008500099,
0.0414731502532959,
0.004378447309136391,
0.005628836341202259,
0.005759169347584248,
-0.007032580208033323,
-0.014727871865034103,
-0.025775091722607613,
-0.030050450935959816,
-0.009686202742159367,
0.00990327913314104,
-0.01015782356262207,
0.002531931735575199,
-0.019291788339614868,
-0.02634843811392784,
0.006758911069482565,
-0.012358659878373146,
0.00044198863906785846,
0.03610638156533241,
0.03580751270055771,
0.014683783985674381,
-0.0054741245694458485,
-0.03802984952926636,
-0.025118941441178322,
-0.01614367589354515,
-0.009960553608834743,
0.005241291597485542,
0.0011727138189598918,
-0.04268937557935715
] | r-error-in-approxfunx-values-1-y-values-1-method-constant-f-1-zero-non-na-points | https://markhneedham.com/blog/2015/12/27/r-error-in-approxfunx-values-1-y-values-1-method-constant-f-1-zero-non-na-points |
false | 2015-12-31 13:58:39 | 2015: A year in the life of the Neo4j London meetup group | [
"neo4j"
] | [
"neo4j"
] | Given we've only got a few more hours left of 2015 I thought it'd be fun to do a quick overview of how things have been going in the http://www.meetup.com/graphdb-london/events/227107130/[London chapter of the Neo4j meetup] https://github.com/neo4j-meetups/modeling-worked-example[using Neo4j] with a bit of R mixed in.
We're going to be using the RNeo4j library to interact with the database along with a few other libraries which will help us out with different tasks:
[source,r]
----
library(RNeo4j)
library(ggplot2)
library(dplyr)
library(zoo)
graph = startGraph("http://localhost:7474/db/data/", username = "neo4j", password = "myPassword")
----
Let's get to it:
== Members
[source,r]
----
query = "MATCH (:Group {name: {name}})<-[membership:MEMBER_OF]-()
RETURN membership.joined AS timestamp"
joinedDF = cypher(graph, query, name = "Neo4j - London User Group")
joinedDF$joinDate = as.Date(as.POSIXct(joinedDF$timestamp / 1000, origin="1970-01-01"))
joinedDF$joinDate = as.Date(as.POSIXct(joinedDF$timestamp / 1000, origin="1970-01-01"))
ggplot(aes(x = year, y = n, label = n),
data = joinedDF %>% mutate(year = format(joinDate, "%Y")) %>% count(year)) +
geom_bar(stat = "identity", fill = "Dark Blue") +
ggtitle("Number of new members by year") +
geom_text(vjust=-0.5)
----
image::{{<siteurl>}}/uploads/2015/12/2015-12-31_12-23-06.png[2015 12 31 12 23 06,300]
A bit down on 2014 but not too far away. We're still attracting new people who are interested in learning about graphs. Let's drill into those numbers a bit:
[source,R]
----
byYearMon = joinedDF %>%
filter(format(joinDate, "%Y") == 2015) %>%
mutate(yearmon = as.Date(as.yearmon(joinDate))) %>%
count(yearmon)
ggplot(aes(x = yearmon, y = n, label = n), data = byYearMon) +
geom_bar(stat = "identity", fill = "Dark Blue") +
theme(axis.text.x = element_text(angle = 90, hjust = 1)) +
scale_x_date(labels = date_format("%B"), breaks = "1 month") +
ggtitle("Number of new members by month/year")
----
image::{{<siteurl>}}/uploads/2015/12/2015-12-31_12-39-04.png[2015 12 31 12 39 04,300]
We had a bit of an end of year surge in October/November which was unexpected. December has been low in previous years, there was an April dip which I think is because we stopped doing events before http://graphconnect.com/gc2015-europe/[Graph Connect 2015]. I'm not sure about the September dip so let's have a look:
[source,r]
----
eventsQuery = "MATCH (:Group {name: {name}})-[:HOSTED_EVENT]->(event)
RETURN event.time + event.utcOffset AS timestamp"
eventsDF = cypher(graph, eventsQuery, name = "Neo4j - London User Group")
eventsDF$timestamp = as.Date(as.POSIXct(eventsDF$timestamp / 1000, origin="1970-01-01"))
eventsByYearMon = eventsDF %>%
filter(format(timestamp, "%Y") == 2015) %>%
mutate(yearmon = as.Date(as.yearmon(timestamp))) %>%
count(yearmon)
merge(eventsByYearMon, byYearMon, by="yearmon")
yearmon n.x n.y
1 2015-01-01 3 80
2 2015-02-01 6 76
3 2015-03-01 2 70
4 2015-04-01 2 53
5 2015-05-01 4 78
6 2015-06-01 5 83
7 2015-07-01 3 73
8 2015-08-01 5 73
9 2015-09-01 3 40
10 2015-10-01 3 94
11 2015-11-01 4 117
12 2015-12-01 3 48
----
At first glance there doesn't seem to be any correlation between the number of events held and the number of new members so I think we'll have to look for another predictor of that variable!
== Events
Next let's have a look at the events we ran in 2015. We'll start with a quick chart showing the number of events we've run over the years:
[source,r]
----
ggplot(aes(x = year, y = n, label = n), data = eventsDF %>% mutate(year = format(timestamp, "%Y")) %>% count(year)) +
geom_bar(stat = "identity", fill = "Dark Blue") +
theme(axis.text.x = element_text(angle = 90, hjust = 1)) +
ggtitle("Number of events")
----
image::{{<siteurl>}}/uploads/2015/12/2015-12-31_13-43-15.png[2015 12 31 13 43 15,300]
So less events than last year but how many people RSVPD 'yes' to the ones we did host?
[source,r]
----
eventsQuery = "MATCH (:Group {name: {name}})-[:HOSTED_EVENT]->(event)<-[:RSVPD {response: 'yes'}]-()
WHERE event.time + event.utcOffset < timestamp()
WITH event, COUNT(*) AS rsvps
RETURN event.time + event.utcOffset AS timestamp, rsvps"
eventsDF = cypher(graph, eventsQuery, name = "Neo4j - London User Group")
eventsDF$timestamp = as.Date(as.POSIXct(eventsDF$timestamp / 1000, origin="1970-01-01"))
ggplot(aes(x = year, y = rsvps),
data = eventsDF %>% mutate(year = format(timestamp, "%Y")) %>% group_by(year) %>% summarise(rsvps= sum(rsvps)) ) +
geom_bar(stat = "identity", fill = "Dark Blue") +
theme(axis.text.x = element_text(angle = 90, hjust = 1)) +
ggtitle("Number of attendees")
----
image::{{<siteurl>}}/uploads/2015/12/2015-12-31_13-59-15.png[2015 12 31 13 54 50,300]
Slightly more 'yes' RSVPs than last year. Now let's drill into the repeat events we ran this year:
[source,r]
----
eventsQuery = "MATCH (:Group {name: {name}})-[:HOSTED_EVENT]->(event)
WHERE {startYear} <= (event.time + event.utcOffset) < {endYear}
RETURN event.name AS event, COUNT(*) AS times
ORDER BY times DESC"
eventsDF = cypher(graph, eventsQuery, name = "Neo4j - London User Group",
startYear = as.numeric(as.POSIXct("2015-01-01", format="%Y-%m-%d")) * 1000,
endYear = as.numeric(as.POSIXct("2015-12-31", format="%Y-%m-%d")) * 1000)
eventsDF %>% filter(times > 1)
event times
1 Relational to graph: A worked example 7
2 Intro to Graphs 6
3 Graph Modelling - Do's and Don'ts 5
4 Hands On Intro to Cypher - Neo4j's Query Language 3
5 Build your own recommendation engine with Neo4j in an hour 2
6 Fraud Detection using Neo4j 2
----
I thought we'd run 'Intro to Graphs' most often but the data doesn't lie - it's all about relational to graph. And which were the most popular repeat events in terms of 'yes' RSVPs?
[source,R]
----
eventsQuery = "MATCH (:Group {name: {name}})-[:HOSTED_EVENT]->(event)
WHERE {startYear} <= (event.time + event.utcOffset) < {endYear}
MATCH (event)<-[:RSVPD {response: 'yes'}]-()
WITH event, COUNT(*) AS yesRSVPs
WITH event.name AS event, COUNT(*) AS times, SUM(yesRSVPs) AS rsvps
RETURN event, times, rsvps, rsvps / times AS rsvpsPerEvent
ORDER BY rsvpsPerEvent DESC"
eventsDF = cypher(graph, eventsQuery, name = "Neo4j - London User Group",
startYear = as.numeric(as.POSIXct("2015-01-01", format="%Y-%m-%d")) * 1000,
endYear = as.numeric(as.POSIXct("2015-12-31", format="%Y-%m-%d")) * 1000)
eventsDF %>% filter(times > 1)
event times rsvps rsvpsPerEvent
1 Fraud Detection using Neo4j 2 150 75
2 Intro to Graphs 6 352 58
3 Graph Modelling - Do's and Don'ts 5 281 56
4 Relational to graph: A worked example 7 367 52
5 Build your own recommendation engine with Neo4j in an hour 2 85 42
6 Hands On Intro to Cypher - Neo4j's Query Language 3 104 34
----
It looks like fraud is a popular topic although we've only run it twice so perhaps best not to read too much into that. We're http://www.meetup.com/graphdb-london/events/227211069/[running that one again] in a couple of weeks if you're interested.
Ignoring repeat events let's see which event drew the biggest crowd:
[source,r]
----
eventsQuery = "MATCH (:Group {name: {name}})-[:HOSTED_EVENT]->(event)
WHERE {startYear} <= (event.time + event.utcOffset) < {endYear}
MATCH (event)<-[:RSVPD {response: 'yes'}]-()
WITH event.id AS id, event.name AS event, COUNT(*) AS rsvps
RETURN event, rsvps
ORDER BY rsvps DESC"
eventsDF = cypher(graph, eventsQuery, name = "Neo4j - London User Group",
startYear = as.numeric(as.POSIXct("2015-01-01", format="%Y-%m-%d")) * 1000,
endYear = as.numeric(as.POSIXct("2015-12-31", format="%Y-%m-%d")) * 1000)
eventsDF %>% head(5)
event rsvps
1 Neo4j Full Stack Applications + Python, R and Neo4j - The Data Science Stack 133
2 Modelling a recommendation engine: A worked example 118
3 Building a repository of biomedical ontologies with Neo4j 107
4 GraphHack @ Graph Connect: The night before Election Day 91
5 Bootstrapping a Recommendation Engine 88
----
A http://www.meetup.com/graphdb-london/events/226184225/[double header] featuring https://twitter.com/_nicolemargaret[Nicole White] and https://twitter.com/mrmattwright[Matt Wright] proved to be the most popular event of the year and in fact the most popular in terms of 'yes' RSVPs so far:
[source,r]
----
eventsQuery = "MATCH (:Group {name: {name}})-[:HOSTED_EVENT]->(event)<-[:RSVPD {response: 'yes'}]-()
WITH event, COUNT(*) AS rsvps
RETURN event.name AS event, event.time + event.utcOffset AS time, rsvps
ORDER BY rsvps DESC"
eventsDF = cypher(graph, eventsQuery, name = "Neo4j - London User Group")
eventsDF$time = as.Date(as.POSIXct(eventsDF$time / 1000, origin="1970-01-01"))
eventsDF %>% mutate(year = format(time, "%Y")) %>% dplyr::select(-time) %>% head(10)
event rsvps year
1 Neo4j Full Stack Applications + Python, R and Neo4j - The Data Science Stack 133 2015
2 Modelling a recommendation engine: A worked example 118 2015
3 Building a repository of biomedical ontologies with Neo4j 107 2015
4 Real world Neo4j use cases 98 2014
5 The transport graph 94 2014
6 The Visualisation Special 93 2014
7 Impossible is Nothing by Jim Webber, Neo4j's Chief Scientist 93 2014
8 GraphHack @ Graph Connect: The night before Election Day 91 2015
9 Bootstrapping a Recommendation Engine 88 2015
10 Scraping and Graphing the Apple app store 88 2015
----
3 of the top 4 belong to 2015 and 6 of the top 10. Let's see what 2016 has in store.
Thanks to everyone who's come along to one of our meetups and Happy New Year! | null | null | [
0.013052062131464481,
-0.03688503056764603,
0.02314933016896248,
0.0426662340760231,
0.08078024536371231,
0.004279044456779957,
0.04166022315621376,
0.03862236067652702,
0.013695144094526768,
-0.004089021123945713,
0.006793702486902475,
-0.024585220962762833,
-0.07685394585132599,
0.024721086025238037,
-0.02047286182641983,
0.06850181519985199,
0.05960468202829361,
-0.009904930368065834,
0.00222175195813179,
-0.0009946860373020172,
0.04312247037887573,
0.036652594804763794,
0.01109758298844099,
0.04562446102499962,
0.04796293377876282,
-0.003345467848703265,
-0.0050082216039299965,
-0.01005268283188343,
-0.04942949861288071,
0.00009106110519496724,
0.0431646853685379,
0.01162213645875454,
0.018532659858465195,
-0.009847583249211311,
0.03073391504585743,
-0.018206721171736717,
-0.03933790326118469,
0.012946786358952522,
-0.008724849671125412,
-0.0029903710819780827,
-0.059111226350069046,
0.034962963312864304,
-0.011568088084459305,
0.03310698643326759,
-0.03645458072423935,
0.008193332701921463,
-0.026252606883645058,
0.04654472693800926,
0.025092586874961853,
0.006387726403772831,
-0.06667299568653107,
0.0303359292447567,
0.011150269769132137,
0.010981874540448189,
-0.014116878621280193,
0.026957467198371887,
0.029109839349985123,
-0.06332095712423325,
0.0351681187748909,
-0.025257263332605362,
0.01183063443750143,
-0.011003995314240456,
0.001498095109127462,
0.004654961172491312,
0.009424618445336819,
-0.02370404079556465,
0.005602526478469372,
0.04633529111742973,
-0.03411637991666794,
0.0021683613304048777,
-0.020207883790135384,
0.026659544557332993,
-0.023515010252594948,
0.004499790258705616,
0.004544724244624376,
-0.05401898920536041,
0.004324387758970261,
0.0550413653254509,
0.041952528059482574,
0.04538979008793831,
-0.0076096090488135815,
-0.0028840722516179085,
0.023122943937778473,
0.01992523856461048,
-0.008079290390014648,
-0.030376166105270386,
-0.02910875715315342,
-0.06058024242520332,
-0.054420631378889084,
0.038721516728401184,
-0.013790878467261791,
-0.06302753835916519,
0.01592894457280636,
0.02097616344690323,
-0.008708302862942219,
0.022488128393888474,
0.015161885879933834,
0.004244377836585045,
0.016149118542671204,
-0.02196977660059929,
-0.04371722787618637,
-0.04063347354531288,
0.013209998607635498,
0.010071664117276669,
-0.07586417347192764,
-0.03147248551249504,
-0.037530120462179184,
-0.026446940377354622,
0.007036976516246796,
-0.007861065678298473,
-0.026262732222676277,
0.00742597971111536,
-0.000505015894304961,
0.016939256340265274,
-0.0571984238922596,
0.06459669768810272,
0.03528835251927376,
-0.043928198516368866,
-0.02994125708937645,
-0.013954542577266693,
0.04042208194732666,
0.0389542430639267,
0.009325137361884117,
0.07683911174535751,
-0.023081405088305473,
0.0582013763487339,
0.0017213333630934358,
0.039975546300411224,
-0.02748989127576351,
-0.0799725353717804,
-0.005890908185392618,
0.05587370693683624,
-0.029535269364714622,
-0.011328181251883507,
-0.004947059787809849,
-0.04740893095731735,
-0.011442739516496658,
0.01718863844871521,
0.06641876697540283,
0.023363370448350906,
0.03167109191417694,
-0.044222164899110794,
0.024058928713202477,
0.003403817070648074,
0.03894076496362686,
0.018228057771921158,
-0.021678639575839043,
-0.05112243816256523,
-0.04294917732477188,
-0.015088040381669998,
0.02983972430229187,
0.0006671739974990487,
0.02427501603960991,
-0.016641562804579735,
0.023409217596054077,
0.09835676103830338,
0.007853987626731396,
0.01346279215067625,
-0.020124943926930428,
0.01823428086936474,
0.05394266918301582,
0.032463688403367996,
0.007334584835916758,
0.05274577811360359,
0.000989637803286314,
-0.022537102922797203,
-0.006282445043325424,
0.04608503356575966,
-0.02284141629934311,
0.021409057080745697,
-0.03840785101056099,
-0.060173287987709045,
0.05351698026061058,
-0.048990342766046524,
-0.018290197476744652,
0.04531282186508179,
0.09901946038007736,
0.03709014505147934,
0.005367747973650694,
-0.00968999695032835,
-0.0827743262052536,
0.042866747826337814,
0.018810352310538292,
0.03322388604283333,
0.018648019060492516,
-0.022580375894904137,
0.07919424772262573,
0.02427505888044834,
0.011699815280735493,
0.05377785116434097,
-0.06730794161558151,
-0.06633858382701874,
-0.01369061041623354,
-0.025009578093886375,
0.05971373990178108,
-0.03438502177596092,
0.028479211032390594,
0.05269362032413483,
-0.021853722631931305,
0.040764711797237396,
0.0038328790105879307,
0.010332574136555195,
0.03231298178434372,
-0.02398538962006569,
-0.04534761607646942,
0.04261229559779167,
0.01656348817050457,
-0.042671844363212585,
-0.043076831847429276,
0.012036419473588467,
-0.027340589091181755,
0.013799579814076424,
0.034248318523168564,
-0.02778773382306099,
0.037335556000471115,
0.029503144323825836,
0.05414299666881561,
-0.0017652256647124887,
0.014138401485979557,
-0.031979501247406006,
0.03726813197135925,
0.0108972592279315,
-0.02210983633995056,
-0.017872443422675133,
0.0007600239478051662,
0.11191737651824951,
0.06413339823484421,
-0.019618259742856026,
-0.04305503889918327,
0.03176143020391464,
0.010930157266557217,
-0.02360851690173149,
0.022157734259963036,
-0.017184993252158165,
0.018843023106455803,
-0.011227295733988285,
-0.024941053241491318,
-0.042793117463588715,
-0.000024652437787153758,
-0.033010825514793396,
0.00337275885976851,
0.05921735614538193,
-0.006795375607907772,
0.05771593004465103,
-0.001699527376331389,
0.013614785857498646,
-0.02829774096608162,
-0.03395747393369675,
-0.06107717007398605,
0.023432478308677673,
0.02674231305718422,
-0.014367764815688133,
0.040943440049886703,
-0.022223951295018196,
-0.004781654104590416,
-0.013829084113240242,
-0.01701105572283268,
0.036112405359745026,
0.06886621564626694,
0.05390680208802223,
-0.0024638227187097073,
0.029518594965338707,
-0.032683879137039185,
-0.003043202217668295,
-0.017893679440021515,
-0.049692392349243164,
-0.061264488846063614,
-0.07020596414804459,
0.01876870170235634,
0.012706965208053589,
0.05343031883239746,
-0.0044740731827914715,
0.029579490423202515,
0.02274206280708313,
0.01057706493884325,
-0.016152145341038704,
0.035398803651332855,
0.013557069934904575,
-0.014630689285695553,
-0.04259413853287697,
-0.017989739775657654,
0.05243752896785736,
-0.04358905553817749,
-0.024255914613604546,
-0.02013458125293255,
-0.05735522136092186,
0.06475897878408432,
-0.043864428997039795,
-0.03454000875353813,
-0.004028631374239922,
0.0242963507771492,
0.05693155154585838,
0.026073304936289787,
-0.0003324850695207715,
0.06905115395784378,
0.003719515632838011,
0.016111178323626518,
-0.0008163197198882699,
-0.024893609806895256,
0.0469437912106514,
0.004236454144120216,
0.0476517416536808,
0.04276174679398537,
-0.03308344632387161,
0.0008873395854607224,
-0.03999728336930275,
0.010479805991053581,
-0.030633999034762383,
-0.27347299456596375,
0.020255932584404945,
-0.027902472764253616,
-0.038969144225120544,
0.001212871982716024,
-0.03702053800225258,
0.03288475424051285,
-0.017915649339556694,
-0.04780212789773941,
-0.005328584928065538,
0.009606014005839825,
-0.04369798302650452,
-0.0211451668292284,
0.051469046622514725,
0.03515505790710449,
0.012248684652149677,
-0.008999956771731377,
-0.050676655024290085,
0.016580477356910706,
0.04407433792948723,
0.01246020570397377,
-0.042680174112319946,
-0.019783005118370056,
0.03582360967993736,
0.005141053348779678,
0.057068608701229095,
-0.07209153473377228,
0.014532150700688362,
-0.05549710616469383,
-0.030965479090809822,
0.02717013843357563,
-0.01710382103919983,
0.02927378937602043,
-0.01862671598792076,
-0.005372853484004736,
-0.006745456252247095,
0.03079148754477501,
0.028816187754273415,
0.002362031489610672,
0.00740030687302351,
-0.028059938922524452,
-0.031324680894613266,
-0.020008547231554985,
-0.00675765797495842,
0.08877401798963547,
0.03447781875729561,
-0.06262468546628952,
0.007117738947272301,
-0.017851846292614937,
0.06497176736593246,
-0.021193917840719223,
-0.011821283027529716,
-0.008898803032934666,
0.00995608326047659,
-0.025089390575885773,
-0.027639146894216537,
-0.0249645933508873,
-0.007046191021800041,
-0.04640436917543411,
-0.03340993821620941,
-0.02176634594798088,
-0.04560399428009987,
0.016904208809137344,
-0.047868140041828156,
-0.04185331240296364,
-0.0642235204577446,
-0.08366799354553223,
-0.03316031023859978,
0.05742630735039711,
0.011870114132761955,
-0.016463836655020714,
0.02298315055668354,
-0.009544623084366322,
-0.09525597095489502,
-0.04274042323231697,
-0.017510471865534782,
-0.01156491320580244,
-0.002242414280772209,
0.010860176756978035,
0.054254185408353806,
-0.05255403742194176,
-0.06357339024543762,
0.003386137541383505,
0.018992917612195015,
0.031886909157037735,
-0.0056479014456272125,
-0.0007429067045450211,
-0.012715877033770084,
-0.0728740394115448,
0.004067573696374893,
0.04386414960026741,
-0.03558303415775299,
-0.029801880940794945,
0.005365792196244001,
-0.0030417118687182665,
0.03314433991909027,
0.009360203519463539,
0.0038980082608759403,
0.016029080376029015,
0.05644863471388817,
0.028488613665103912,
-0.05220947042107582,
0.02155834436416626,
-0.027773182839155197,
-0.0270367544144392,
-0.03116549737751484,
-0.0497504398226738,
0.025856751948595047,
0.02194720134139061,
0.024266934022307396,
0.012826479971408844,
-0.0021242303773760796,
0.03092014603316784,
-0.065831758081913,
-0.02665558271110058,
-0.020178578794002533,
0.025826115161180496,
0.02411535009741783,
0.03163432702422142,
-0.023632748052477837,
-0.05725722759962082,
0.01934753730893135,
0.0185555387288332,
-0.006561621092259884,
-0.04251804202795029,
-0.02308770827949047,
-0.030110780149698257,
-0.03590547665953636,
0.019473711028695107,
0.021172069013118744,
-0.03224736079573631,
0.027883581817150116,
0.03130054846405983,
-0.03702022507786751,
0.056149572134017944,
-0.005706971976906061,
-0.05646726116538048,
-0.041586827486753464,
0.02446034736931324,
0.004283329471945763,
-0.022330425679683685,
0.0020214305259287357,
-0.00494270259514451,
0.027193106710910797,
0.01942451111972332,
0.01090253610163927,
0.02638181485235691,
0.0006357606034725904,
0.023406945168972015,
0.009954286739230156,
-0.00042898740503005683,
-0.017986074090003967,
0.005822544451802969,
-0.04222458228468895,
-0.0006961672334000468,
-0.009995740838348866,
0.06805974990129471,
-0.010838847607374191,
-0.010319152846932411,
-0.03766797110438347,
0.02091692015528679,
-0.07135564833879471,
-0.014787224121391773,
-0.016696831211447716,
0.005496414843946695,
0.054550934582948685,
-0.014641066081821918,
0.014939720742404461,
-0.002357899909839034,
-0.01908487267792225,
-0.0006811158382333815,
0.02272808365523815,
-0.029952261596918106,
0.018664458766579628,
-0.003525265958160162,
-0.016897324472665787,
0.00520023750141263,
0.009801333770155907,
0.04829670116305351,
0.012452740222215652,
-0.024923469871282578,
-0.007888799533247948,
-0.0028285111766308546,
-0.0008135199313983321,
0.04873156175017357,
0.05500545725226402,
0.0047006127424538136,
-0.002281113527715206,
-0.009566199034452438,
-0.03690336272120476,
0.0020051158498972654,
-0.002120036631822586,
-0.018844272941350937,
-0.006896970793604851,
-0.03852395340800285,
-0.06961560994386673,
0.04259946942329407,
0.009075939655303955,
0.007214398123323917,
0.03430437296628952,
0.022762907668948174,
-0.0033954509999603033,
-0.03700748085975647,
0.0481959730386734,
0.05797899514436722,
-0.07079289108514786,
-0.015425956808030605,
-0.00010083038068842143,
-0.015250169672071934,
0.0010530188446864486,
0.010328277945518494,
-0.04577413201332092,
-0.02629208192229271,
-0.004080754239112139,
0.026751039549708366,
-0.01322199311107397,
-0.04423648118972778,
-0.0314515046775341,
0.012104809284210205,
0.004237913526594639,
0.020951323211193085,
0.008590571582317352,
-0.005306587554514408,
-0.025873571634292603,
0.006588201969861984,
0.03814207762479782,
-0.03294651210308075,
-0.006522683892399073,
0.00022973112936597317,
-0.012803185731172562,
0.004912738222628832,
-0.03857789188623428,
0.014615430496633053,
0.015716206282377243,
-0.036467332392930984,
0.017688166350126266,
-0.06873831897974014,
0.011179473251104355,
0.009241743944585323,
0.05238388106226921,
-0.013669083826243877,
0.005602195393294096,
-0.03630121424794197,
-0.011309375986456871,
-0.04382573440670967,
0.02811197191476822,
-0.0020156130194664,
0.004605155438184738,
0.010081090033054352,
0.02576492168009281,
0.02101898565888405,
0.01004291046410799,
-0.008211709558963776,
-0.042910292744636536,
0.03372012823820114,
-0.038806360214948654,
-0.05866847559809685,
-0.0007240332779474556,
-0.0467287078499794,
-0.007898790761828423,
0.008689194917678833,
-0.009455052204430103,
-0.046117693185806274,
0.05083658546209335,
0.045557279139757156,
0.044152889400720596,
0.06509986519813538,
0.0015144400531426072,
0.010097363963723183,
-0.03042794018983841,
-0.006426392123103142,
-0.08499826490879059,
-0.005095894914120436,
0.016628434881567955,
0.002920097205787897,
-0.032556891441345215,
-0.0033343706745654345,
-0.018883412703871727,
0.01591031812131405,
-0.06416797637939453,
-0.03223416581749916,
0.06398183107376099,
-0.025006014853715897,
0.025012603029608727,
0.013170087710022926,
-0.06567371636629105,
-0.0023106078151613474,
0.046855051070451736,
-0.053800079971551895,
-0.015447440557181835,
-0.019732369109988213,
0.06977377086877823,
-0.04236496984958649,
0.044440511614084244,
-0.018277617171406746,
-0.013365168124437332,
0.07909128814935684,
0.019929086789488792,
0.009019688703119755,
0.062025684863328934,
-0.030584942549467087,
0.037572041153907776,
0.03838400915265083,
-0.01711900718510151,
-0.01672612503170967,
0.028861388564109802,
-0.003110156860202551,
-0.031623151153326035,
0.015067358501255512,
0.0009340152028016746,
-0.008650852367281914,
-0.041821472346782684,
0.08666998147964478,
0.007768212351948023,
-0.046381428837776184,
-0.03358444571495056,
0.02884671464562416,
-0.03639189898967743,
0.0016848569503054023,
-0.0250492375344038,
0.0004166715661995113,
-0.033635515719652176,
0.055271606892347336,
-0.020372577011585236,
0.016184251755475998,
0.06190326064825058,
0.012851811945438385,
-0.00881738681346178,
-0.0011772693833336234,
0.09751461446285248,
0.0971701592206955,
0.04610944539308548,
0.021368540823459625,
0.07051438838243484,
-0.01883816532790661,
-0.03829852491617203,
-0.005372133571654558,
-0.02444327622652054,
-0.04631761834025383,
-0.010885088704526424,
0.011941044591367245,
0.07362399250268936,
-0.03909997269511223,
0.060011379420757294,
0.004853867460042238,
-0.03919457271695137,
-0.015418280847370625,
-0.0036318113561719656,
0.04677736759185791,
0.04451912268996239,
0.015721511095762253,
0.05469563603401184,
-0.034481678158044815,
-0.031111063435673714,
0.04712434858083725,
-0.01993238367140293,
-0.007200444117188454,
0.036236315965652466,
-0.023522423580288887,
0.002675584750249982,
0.020749369636178017,
0.045030176639556885,
0.07769811898469925,
-0.03851188346743584,
0.0015461086295545101,
-0.008017820306122303,
0.014628159813582897,
-0.00017181456496473402,
0.025170432403683662,
-0.01267863716930151,
-0.0013967667473480105,
-0.0016963401576504111,
-0.055180564522743225,
-0.007827305234968662,
-0.018430987372994423,
-0.06717585027217865,
0.018512042239308357,
-0.03176681697368622,
-0.0016517858020961285,
-0.0017075859941542149,
-0.02451820857822895,
-0.013767330907285213,
-0.05637476593255997,
-0.032184846699237823,
-0.052796971052885056,
-0.08447752892971039,
0.004200348164886236,
0.005812426563352346,
-0.01865323632955551,
-0.032173607498407364,
0.009312950074672699,
-0.01487639918923378,
-0.02711331844329834,
0.01337569672614336,
-0.06914736330509186,
-0.018541526049375534,
0.021093493327498436,
0.007026651408523321,
0.006228058598935604,
0.021693650633096695,
0.05374511703848839,
0.011963734403252602,
0.004601792432367802,
-0.037305861711502075,
0.03954754397273064,
0.05005175620317459,
0.021820461377501488,
0.009555771946907043,
-0.085916668176651,
0.022393135353922844,
0.022049106657505035,
-0.02219538390636444,
-0.09566608816385269,
0.02831496112048626,
0.01954425871372223,
0.011968198232352734,
0.03160915896296501,
0.003696200903505087,
-0.009344551712274551,
-0.02044849283993244,
0.016005611047148705,
-0.0019635166972875595,
0.014065979979932308,
0.035333409905433655,
-0.027478614822030067,
0.05833965912461281,
0.037656016647815704,
-0.032718416303396225,
-0.030638130381703377,
-0.03832460939884186,
0.0239760372787714,
-0.007458615582436323,
-0.04894809424877167,
-0.043613918125629425,
-0.053848713636398315,
-0.10425588488578796,
-0.02271694876253605,
0.007278455421328545,
-0.022346030920743942,
-0.0014255410060286522,
-0.0002134487876901403,
0.0389145091176033,
-0.0019856819417327642,
0.01875096745789051,
-0.0261140838265419,
0.028040491044521332,
-0.010834285989403725,
-0.026402050629258156,
-0.04052900895476341,
0.008893250487744808,
-0.0045089577324688435,
0.01238823588937521,
-0.0015403545694425702,
-0.060557641088962555,
-0.010418707504868507,
-0.023153208196163177,
0.004943717736750841,
0.030275121331214905,
0.0288471058011055,
0.015632733702659607
] | [
-0.06964441388845444,
-0.029152799397706985,
-0.024377545341849327,
-0.022425707429647446,
0.07294411957263947,
-0.0397331677377224,
-0.03430822864174843,
0.011111503466963768,
0.014927258715033531,
-0.04127547889947891,
0.03549305722117424,
-0.03792566806077957,
0.004233025945723057,
0.013390058651566505,
0.06669957935810089,
-0.00125406333245337,
-0.02995511330664158,
-0.08831150084733963,
-0.023524027317762375,
0.04548681899905205,
-0.05725833401083946,
-0.04395172744989395,
-0.020145108923316002,
-0.026692761108279228,
0.014220576733350754,
0.05300108343362808,
0.04075165465474129,
-0.03918195515871048,
-0.026371482759714127,
-0.18273799121379852,
-0.0019497685134410858,
0.020468341186642647,
0.04185667261481285,
-0.0036906925961375237,
0.0010691063944250345,
0.027318205684423447,
0.05325949192047119,
-0.013096475973725319,
0.02211429364979267,
0.041377611458301544,
0.02560451813042164,
-0.001780645688995719,
-0.04853226989507675,
-0.01957150734961033,
0.058376338332891464,
0.025495830923318863,
-0.02234278991818428,
-0.001719128806143999,
-0.04678695648908615,
0.00770017271861434,
-0.04487638175487518,
-0.012991025112569332,
-0.002205091528594494,
0.000922228442505002,
0.010928253643214703,
0.06765342503786087,
0.038622815161943436,
0.027298858389258385,
0.015280083753168583,
0.03321674093604088,
0.015021736733615398,
0.0033780222292989492,
-0.13267004489898682,
0.0782187208533287,
-0.01514804270118475,
0.005938407499343157,
-0.04089691862463951,
-0.002302175387740135,
-0.001647836877964437,
0.08091075718402863,
0.030737265944480896,
0.0026563387364149094,
-0.04416830837726593,
0.04892084747552872,
-0.004821062553673983,
0.02765686996281147,
-0.012228356674313545,
0.014971382915973663,
0.04236901178956032,
-0.04125563055276871,
-0.04035261645913124,
0.050376761704683304,
-0.026633601635694504,
-0.008793683722615242,
-0.026041625067591667,
0.03445807844400406,
-0.012819328345358372,
0.060204580426216125,
-0.02363736927509308,
0.05283765867352486,
0.02680421620607376,
0.03739262372255325,
0.045523516833782196,
0.02567110024392605,
-0.10039728879928589,
-0.021639665588736534,
0.02555558830499649,
0.03615039214491844,
-0.012534580193459988,
0.40298426151275635,
-0.01402339618653059,
0.011162646114826202,
0.04369033873081207,
0.06946352869272232,
-0.03706788644194603,
-0.023612305521965027,
0.005368584301322699,
-0.08332998305559158,
0.041398514062166214,
-0.01735752820968628,
0.004675109405070543,
-0.026469985023140907,
0.0526687428355217,
-0.07927163690328598,
0.02244950458407402,
0.01316145434975624,
0.0606297105550766,
0.025637509301304817,
-0.01394484844058752,
0.015356723219156265,
-0.007467168383300304,
0.003554506925866008,
0.023474665358662605,
0.021239260211586952,
0.02076353318989277,
0.02415839582681656,
0.029347101226449013,
0.04542206600308418,
0.0316813699901104,
0.010426059365272522,
0.07118049263954163,
0.0265023335814476,
-0.07503367960453033,
0.02703890949487686,
-0.008137356489896774,
0.00027354530175216496,
0.018222473561763763,
-0.02903144061565399,
-0.007332520559430122,
0.02925276942551136,
-0.005999039858579636,
-0.045302506536245346,
0.03132588416337967,
-0.004112832713872194,
-0.02190328761935234,
0.1525449901819229,
-0.007627778220921755,
-0.050493452697992325,
-0.025760747492313385,
-0.05215978994965553,
0.0029551393818110228,
0.025195345282554626,
0.013305975124239922,
-0.07492595911026001,
-0.007580652367323637,
0.006684676744043827,
0.10474682599306107,
-0.019282186403870583,
-0.08339565247297287,
0.008891257457435131,
-0.03114437870681286,
-0.02600826323032379,
-0.048552241176366806,
0.06799762696027756,
0.05797707661986351,
-0.13431797921657562,
0.0020369472913444042,
0.00898965448141098,
0.021704303100705147,
-0.071094810962677,
0.02149057760834694,
0.009889306500554085,
-0.004951527342200279,
-0.008203328587114811,
0.0852653756737709,
0.0024962492752820253,
-0.003463400062173605,
0.008920599706470966,
0.03762314096093178,
-0.0024752519093453884,
-0.0212080180644989,
-0.016247129067778587,
-0.06527606397867203,
0.003340934170410037,
-0.0770808532834053,
-0.04626288637518883,
-0.06868895888328552,
0.020010117441415787,
-0.018442431464791298,
-0.02154124341905117,
-0.03184998035430908,
-0.012802825309336185,
-0.06885866820812225,
0.09435812383890152,
-0.06321585178375244,
-0.03323019668459892,
-0.021419212222099304,
0.004081435035914183,
-0.014131690375506878,
-0.051694355905056,
-0.006320034619420767,
0.008068312890827656,
-0.03539199382066727,
0.008033178746700287,
-0.034760549664497375,
0.03196565806865692,
0.06944622099399567,
-0.019634230062365532,
0.08698143810033798,
0.045227620750665665,
-0.01372061762958765,
-0.009777156636118889,
0.0029127714224159718,
0.0146868284791708,
0.008531846106052399,
-0.012955764308571815,
0.005900474265217781,
-0.041524488478899,
-0.009036630392074585,
0.04846366494894028,
-0.007965938188135624,
0.012094940058887005,
-0.004387810826301575,
-0.3452877402305603,
-0.020113244652748108,
-0.016132527962327003,
-0.005702606402337551,
0.013845258392393589,
-0.050572436302900314,
0.027594275772571564,
-0.02755575254559517,
0.014283434487879276,
0.04955995827913284,
0.09569799900054932,
0.007941297255456448,
-0.0026698377914726734,
-0.0890733078122139,
-0.0033731358125805855,
0.056924521923065186,
-0.015897445380687714,
0.019121138378977776,
-0.018689967691898346,
-0.008720118552446365,
-0.002870111959055066,
-0.03659074008464813,
-0.01706301048398018,
-0.044047895818948746,
-0.00893370620906353,
-0.012704151682555676,
0.11240941286087036,
0.010143137536942959,
-0.021120212972164154,
-0.05934392288327217,
0.03742765262722969,
0.013404461555182934,
-0.018804386258125305,
-0.07855185121297836,
0.009857765398919582,
-0.019704999402165413,
0.03408656641840935,
-0.004200731869786978,
-0.009080201387405396,
-0.01577109284698963,
-0.05549667030572891,
0.00746772950515151,
-0.03460888937115669,
-0.045454639941453934,
-0.045096710324287415,
0.02321721240878105,
-0.015710070729255676,
-0.018223315477371216,
-0.012454504147171974,
0.06081945821642876,
0.036075104027986526,
-0.024486087262630463,
0.02455240488052368,
0.026432950049638748,
0.009277615696191788,
-0.03925313055515289,
-0.05702326074242592,
-0.021365588530898094,
0.010852620005607605,
0.03350851312279701,
0.006245815195143223,
0.05163172259926796,
0.007899265736341476,
-0.07841812819242477,
0.017542649060487747,
-0.002931909868493676,
-0.040303658694028854,
-0.01040255930274725,
0.02558877319097519,
-0.01930186152458191,
-0.02783411554992199,
0.07514674961566925,
-0.023108702152967453,
0.015725793316960335,
0.03693080693483353,
0.02562444470822811,
-0.03402391076087952,
0.007265380583703518,
0.04030061885714531,
0.010453812777996063,
0.035916730761528015,
-0.053888991475105286,
0.06026911735534668,
-0.017785323783755302,
-0.015781763941049576,
0.054993901401758194,
0.020189832895994186,
-0.04911539703607559,
0.06677642464637756,
0.03475109487771988,
-0.024989398196339607,
-0.010451230220496655,
-0.025134021416306496,
-0.04933029040694237,
0.05550943315029144,
-0.032635316252708435,
-0.278153657913208,
0.052730992436409,
0.02156565897166729,
0.04548070207238197,
0.005997122265398502,
0.01723666861653328,
0.009360616095364094,
-0.013594400137662888,
-0.016462473198771477,
-0.004545772448182106,
0.05030979588627815,
0.05677512660622597,
-0.013833983801305294,
-0.012944521382451057,
0.00972159206867218,
0.02918122708797455,
0.016888059675693512,
0.015404519625008106,
0.0022548134438693523,
-0.0036177700385451317,
0.026433220133185387,
-0.020631922408938408,
0.16352282464504242,
0.03404470160603523,
0.02172631211578846,
0.05590277537703514,
-0.021511755883693695,
-0.0005205079796724021,
0.048799678683280945,
-0.02155466563999653,
-0.028808029368519783,
0.01838105171918869,
0.01431841216981411,
0.019071314483880997,
0.0210760235786438,
-0.0376889742910862,
-0.0389060378074646,
0.049549903720617294,
0.01621718518435955,
-0.013795140199363232,
0.0028693892527371645,
0.015462194569408894,
-0.018443511798977852,
0.04490777105093002,
0.07830998301506042,
-0.008476241491734982,
0.0006404772284440696,
-0.02257821522653103,
-0.06549400836229324,
-0.027730023488402367,
-0.03577867150306702,
-0.061650387942790985,
-0.037166692316532135,
-0.010586564429104328,
-0.009551879949867725,
0.06741375476121902,
0.02972681261599064,
-0.02551240101456642,
0.05169381946325302,
0.014478844590485096,
-0.03922722488641739,
-0.037842195481061935,
0.08516567945480347,
-0.02920849621295929,
0.006459685042500496
] | [
0.02855854667723179,
0.038860730826854706,
0.03268846869468689,
0.007602924481034279,
0.0012314293999224901,
0.0011218065628781915,
0.009883200749754906,
-0.007061763666570187,
-0.02124963328242302,
-0.019255634397268295,
-0.03740557283163071,
0.023962905630469322,
0.024095315486192703,
-0.0004947501583956182,
0.009922278113663197,
0.022230124101042747,
0.0023748050443828106,
-0.009108742699027061,
0.035861603915691376,
-0.0029753921553492546,
-0.06240851432085037,
-0.015949172899127007,
0.042240068316459656,
0.007358647417277098,
-0.03355521336197853,
0.02776559814810753,
-0.023182302713394165,
-0.0033953951206058264,
0.032321639358997345,
-0.07915810495615005,
-0.02700638398528099,
-0.019757378846406937,
-0.01170647144317627,
0.000999758718535304,
-0.028300199657678604,
0.01957548037171364,
-0.002099554520100355,
0.021334942430257797,
0.022019384428858757,
0.016470199450850487,
-0.023680198937654495,
-0.01713014580309391,
0.0002939795085694641,
0.01948660798370838,
0.00664411298930645,
0.006756103131920099,
-0.010296644642949104,
-0.021629145368933678,
0.0033102398738265038,
-0.02672601491212845,
-0.02206333912909031,
-0.0035272773820906878,
-0.035399049520492554,
-0.028387194499373436,
0.010237647220492363,
0.012991271913051605,
-0.07097361981868744,
-0.025303134694695473,
-0.008344418369233608,
-0.009263511747121811,
-0.0027634822763502598,
-0.01153822336345911,
-0.042198073118925095,
-0.014768732711672783,
0.01475418172776699,
-0.0073565151542425156,
-0.010070276446640491,
0.01708313077688217,
-0.0032054076436907053,
0.018299495801329613,
-0.028367338702082634,
0.060919638723134995,
-0.0761948674917221,
-0.0465429462492466,
-0.035241514444351196,
0.009287305176258087,
0.03161334618926048,
-0.010859131813049316,
0.014223146252334118,
-0.02247285284101963,
-0.006734233815222979,
0.010445624589920044,
-0.027221141383051872,
0.010484053753316402,
-0.00675185676664114,
-0.03980164974927902,
0.0002514698717277497,
-0.00814523734152317,
0.00549886841326952,
-0.016852641478180885,
-0.042864806950092316,
0.02356385439634323,
0.009175139479339123,
0.005972398445010185,
-0.10372287034988403,
0.0057327887043356895,
0.04586530476808548,
0.017972882837057114,
0.004795975051820278,
0.8295851349830627,
-0.011072929948568344,
-0.005857726093381643,
0.00018884801829699427,
0.0030554942786693573,
-0.013411024585366249,
0.0012439216952770948,
-0.0029917985666543245,
0.007162768393754959,
0.0027400164399296045,
0.0068384455516934395,
-0.020856689661741257,
0.025041423738002777,
0.015272038988769054,
0.03180356323719025,
0.01825713738799095,
0.04443078115582466,
0.01255467813462019,
-0.014648392796516418,
-0.007938053458929062,
0.028968866914510727,
-0.01406844612210989,
0.0215693898499012,
0.014855487272143364,
0.014772540889680386,
-0.027252331376075745,
-0.17337238788604736,
0.026635626330971718,
-6.449440856598669e-33,
0.08310143649578094,
-0.02601226605474949,
0.05089549347758293,
-0.016532348468899727,
0.02055301144719124,
0.028756164014339447,
-0.04698123037815094,
-0.0385761596262455,
-0.005310633219778538,
-0.020332572981715202,
0.004117191303521395,
0.005067279562354088,
-0.0026635536924004555,
-0.018412897363305092,
0.02157951518893242,
0.004543735180050135,
0.01854095049202442,
0.03522802144289017,
0.0008533442160114646,
0.007429326884448528,
-0.034258924424648285,
0.01788652129471302,
-0.003348500933498144,
0.04957537725567818,
0.006691677961498499,
0.039476748555898666,
0.0176873616874218,
0.022470436990261078,
-0.010547768324613571,
-0.04849576950073242,
-0.045045044273138046,
-0.0006046663620509207,
-0.02485925890505314,
-0.015841418877243996,
0.004330204334110022,
-0.06699886918067932,
-0.028263436630368233,
-0.005283448379486799,
-0.02738376334309578,
-0.03556578606367111,
-0.048556264489889145,
0.010207735933363438,
-0.025225581601262093,
-0.02930387668311596,
-0.025690976530313492,
0.007492457050830126,
0.002116139279678464,
0.04739988595247269,
-0.013554107397794724,
0.03818172216415405,
-0.005819960031658411,
0.008445768617093563,
-0.027015654370188713,
-0.008835069835186005,
-0.056173425167798996,
0.01590368151664734,
0.020097091794013977,
0.01997295953333378,
-0.0008636809070594609,
0.01105604786425829,
0.020334480330348015,
-0.011419077403843403,
0.014218836091458797,
0.04479704424738884,
0.03814429044723511,
0.03025836870074272,
-0.00025902094785124063,
-0.015184672549366951,
0.04307513311505318,
0.031997181475162506,
-0.05084308236837387,
0.05381946638226509,
-0.02139606513082981,
-0.03207357972860336,
0.05569089576601982,
-0.04761239141225815,
0.004257183987647295,
-0.01441874261945486,
0.017293551936745644,
0.06358408182859421,
-0.009151559323072433,
-0.017751693725585938,
0.004567517898976803,
-0.02153349667787552,
-0.008745335973799229,
-0.034326180815696716,
0.053128231316804886,
0.03991642966866493,
-0.012416829355061054,
0.011103910394012928,
0.02941131219267845,
0.0016848038649186492,
0.010197415947914124,
-0.03237498924136162,
0.014100172556936741,
6.250650802879204e-33,
0.02528100647032261,
0.0003096247382927686,
0.006382633466273546,
0.007982233539223671,
0.06442928314208984,
-0.015751337632536888,
0.032208915799856186,
0.02872944250702858,
-0.021606367081403732,
0.05100899189710617,
-0.006122637074440718,
-0.011057110503315926,
-0.011204917915165424,
0.037554822862148285,
0.07493288815021515,
0.004448974039405584,
0.033194974064826965,
-0.03456886485219002,
-0.053686197847127914,
0.023146606981754303,
-0.030639057978987694,
0.013999687507748604,
-0.009199745021760464,
-0.008402465842664242,
0.044454243034124374,
0.035897355526685715,
0.00512354914098978,
0.006254550069570541,
-0.01684838905930519,
0.00008811248699203134,
-0.012138817459344864,
-0.012086974456906319,
-0.015570924617350101,
-0.019378937780857086,
0.014874869026243687,
0.009551350958645344,
0.0037737812381237745,
-0.018084390088915825,
0.0028844927437603474,
-0.004976674448698759,
0.03329383209347725,
0.019717685878276825,
-0.02842516265809536,
0.04702170938253403,
0.0003198998747393489,
0.02605443261563778,
-0.032308101654052734,
0.027937939390540123,
-0.04219135642051697,
0.012435957789421082,
-0.0011411303421482444,
0.011054257862269878,
-0.006945915054529905,
-0.00991961918771267,
0.03757774457335472,
-0.03794029355049133,
-0.022156139835715294,
0.03038826957345009,
-0.0056591276079416275,
0.006290493067353964,
-0.035639021545648575,
-0.020313410088419914,
-0.019190337508916855,
0.02919781766831875,
-0.020112810656428337,
-0.024511793628335,
-0.022495990619063377,
-0.025966759771108627,
-0.002162547316402197,
0.03457048535346985,
0.008733323775231838,
-0.022433849051594734,
-0.01074355747550726,
0.01896171271800995,
0.03202420845627785,
-0.005261368118226528,
-0.032317131757736206,
-0.0020445166155695915,
-0.02648618072271347,
0.006155406124889851,
0.010165773332118988,
0.003231337293982506,
0.048309702426195145,
-0.010892481543123722,
-0.005512632429599762,
-0.007764619775116444,
-0.05674854293465614,
0.049641769379377365,
-0.006248734891414642,
0.003106706542894244,
0.029841452836990356,
-0.03512781485915184,
-0.006355972494930029,
0.07002229243516922,
-0.00148086529225111,
-1.2333368992756277e-8,
-0.03371595963835716,
0.02784806303679943,
-0.005968280136585236,
-0.010463044978678226,
0.0267840176820755,
0.018612593412399292,
-0.015276700258255005,
0.0001233200600836426,
0.0014322102069854736,
0.014926263131201267,
0.05446275696158409,
-0.017830776050686836,
0.008615836501121521,
0.011236513033509254,
-0.011255950666964054,
-0.04574509337544441,
0.010532817803323269,
-0.04240976274013519,
0.007520768791437149,
0.005856109317392111,
-0.004767180886119604,
0.01727990061044693,
-0.043542854487895966,
-0.009443392045795918,
0.0013896870659664273,
-0.009328865446150303,
0.023911969736218452,
-0.04956938326358795,
0.007692914456129074,
-0.03439023718237877,
0.017107682302594185,
-0.015136439353227615,
-0.017109619453549385,
0.005114506930112839,
-0.05075494572520256,
-0.06807181239128113,
0.025034114718437195,
0.03593779727816582,
0.0218589399009943,
0.015166477300226688,
-0.004644811153411865,
-0.0016048280522227287,
-0.016481200233101845,
-0.027217712253332138,
-0.02629515714943409,
0.027474964037537575,
-0.010218384675681591,
-0.02243255451321602,
0.01750994473695755,
-0.028005041182041168,
-0.017909877002239227,
-0.012961736880242825,
0.014421489089727402,
0.03160615265369415,
0.0331299863755703,
0.017605237662792206,
0.0008127359324134886,
-0.008700773119926453,
-0.019685231149196625,
-0.054472435265779495,
-0.0015575905563309789,
-0.006250500679016113,
-0.02546999603509903,
-0.036275945603847504
] | 2015-a-year-in-the-life-of-the-neo4j-london-meetup-group | https://markhneedham.com/blog/2015/12/31/2015-a-year-in-the-life-of-the-neo4j-london-meetup-group |
false | 2015-12-31 10:47:01 | Study until your mind wanders | [
"software-development"
] | [
"Software Development"
] | I've previously found it very difficult to read math heavy content which has made it challenging to read http://www.amazon.co.uk/Distributed-Computing-2e-Fundamentals-Simulations/dp/0471453242/ref=sr_1_1?ie=UTF8&qid=1451556471&sr=8-1&keywords=distributed+computing+fundamentals[Distributed Computing] which I bought last May.
After several false starts where I gave up after getting frustrated that I couldn't understand things the first time around and forgot everything if I left it a couple of days I decided to try again with a different approach.
I've been trying a technique http://www.markhneedham.com/blog/2015/03/17/one-month-of-mini-habits/[I learned] from http://www.amazon.co.uk/Mini-Habits-Smaller-Bigger-Results-ebook/dp/B00HGKNBDK[Mini Habits] where every day I have a (very small) goal of *reading one page of the book*. Having such a small goal means that I can read the material as slowly as I like (repeating previous days if necessary).
So far I've read 4 chapters (~100 pages) over the last month - some days I read 6 or 7 pages, other days I only manage one. The key is to keep the rhythm of reading something.
I tried doing the reading at different times of the day - on the bus on the way to work, in the evening before going to sleep - and found that for me the best time is immediately when I wake up. To minimise my mind wandering I don't read any emails, chat messages or social media accounts before I start.
Despite this, I've noticed that after a while *my mind starts to wander* while reading proofs and that's a signal for me to stop for the day. When I pick up again the next day I've often found that I understand what I was having difficulty with.
I've read that meditation prior to studying is an effective way to quiet the mind and would be a more 'on demand' way of achieving the concentration required to read this type of material. I've never done any meditation so if anyone has any tips on where to start that'd be helpful. | null | null | [
0.016749190166592598,
0.002722008852288127,
-0.002792090643197298,
0.022118467837572098,
0.08293977379798889,
0.018463319167494774,
0.04584997892379761,
0.04327600076794624,
0.00862831063568592,
-0.001673669321462512,
0.00614207424223423,
0.0054411510936915874,
-0.03300686180591583,
0.020888088271021843,
-0.029201503843069077,
0.06585600972175598,
0.1014535054564476,
-0.006932485848665237,
-0.0035090711899101734,
-0.0031475634314119816,
0.046494945883750916,
0.06391473859548569,
0.04602974280714989,
0.04371138662099838,
0.034086719155311584,
-0.010661178268492222,
0.02514115534722805,
-0.011738905683159828,
-0.03658607229590416,
-0.01478614378720522,
0.03746940195560455,
0.013950628228485584,
0.00019463314674794674,
0.004152976907789707,
0.05284377932548523,
-0.01560099795460701,
-0.017384083941578865,
0.02054060436785221,
0.002867406001314521,
0.017545877024531364,
-0.07847652584314346,
0.01978221721947193,
-0.03543375805020332,
0.005811329931020737,
-0.04629150405526161,
0.006629952695220709,
-0.046354103833436966,
-0.015000282786786556,
0.0061486829072237015,
-0.008412159979343414,
-0.05701446160674095,
0.048244625329971313,
0.04194452986121178,
-0.007414748892188072,
-0.009369746781885624,
0.04836789146065712,
0.011682315729558468,
-0.051024481654167175,
0.028285834938287735,
-0.026781173422932625,
-0.002070568734779954,
-0.009873881004750729,
-0.031922854483127594,
0.02199886366724968,
0.004453429486602545,
-0.062289074063301086,
0.0218268483877182,
0.03711804002523422,
-0.020203467458486557,
0.008129272609949112,
-0.021945716813206673,
0.03161466121673584,
-0.01807432994246483,
0.008418944664299488,
-0.02435803785920143,
-0.04925382882356644,
0.02230735495686531,
0.04266618564724922,
0.024554235860705376,
0.025166358798742294,
-0.03849858418107033,
0.034087952226400375,
0.01605512574315071,
0.03117518499493599,
-0.026421787217259407,
-0.04823791980743408,
0.0018629113910719752,
-0.023140903562307358,
-0.06443050503730774,
0.06552663445472717,
0.017096342518925667,
-0.04536893218755722,
0.001864278456196189,
0.05642510950565338,
-0.005879917182028294,
-0.014500264078378677,
0.03208430856466293,
-0.02713482268154621,
-0.023240601643919945,
-0.018162276595830917,
0.008393019437789917,
-0.033903539180755615,
0.005545723717659712,
0.014203754253685474,
-0.06577970087528229,
0.0000659057404845953,
-0.012004117481410503,
-0.01191785279661417,
-0.0021594795398414135,
0.004476540256291628,
-0.03544211760163307,
0.007207510992884636,
-0.025462498888373375,
0.005773008801043034,
-0.08144153654575348,
0.06884139776229858,
0.013415723107755184,
-0.03178800269961357,
-0.017650602385401726,
0.0046432423405349255,
0.03362100198864937,
0.03679710999131203,
0.0006574243889190257,
0.060255393385887146,
0.01035085879266262,
0.0017084843711927533,
-0.013802437111735344,
0.03340247645974159,
-0.01721995510160923,
-0.03976108133792877,
-0.01098428014665842,
0.04404551535844803,
-0.0006263056420721114,
-0.013441826216876507,
-0.013223586603999138,
-0.03518451377749443,
0.008161915466189384,
0.012984471395611763,
0.04202115535736084,
0.05478505790233612,
0.005381625611335039,
-0.030230820178985596,
0.018312791362404823,
-0.0014925734139978886,
0.01652264967560768,
-0.0028254901990294456,
0.013589849695563316,
-0.009054445661604404,
-0.047908615320920944,
-0.0331028513610363,
0.0117282560095191,
0.012881896458566189,
-0.005275852512568235,
-0.039981067180633545,
0.008576967753469944,
0.08397780358791351,
0.028634293004870415,
0.046713829040527344,
-0.004543197341263294,
0.02047356404364109,
0.03286817669868469,
0.02865412086248398,
0.01033842097967863,
0.022116227075457573,
-0.0021061617881059647,
-0.02367401495575905,
0.013226265087723732,
0.06389639526605606,
-0.013670027256011963,
0.019188789650797844,
-0.05094162002205849,
-0.02909833937883377,
0.03606809303164482,
-0.043845582753419876,
-0.01330015528947115,
0.03782225027680397,
0.08098366111516953,
0.04196683317422867,
0.030892159789800644,
-0.00950134638696909,
-0.07554782927036285,
0.041493598371744156,
0.026498818770051003,
0.04298582300543785,
0.014935949817299843,
-0.027126513421535492,
0.04679768905043602,
0.04247479885816574,
0.0018273056484758854,
0.04849434271454811,
-0.07078134268522263,
-0.06447678804397583,
0.015549498610198498,
-0.007462319917976856,
0.05562710389494896,
-0.030717218294739723,
0.012634280137717724,
0.06763987988233566,
0.009706923738121986,
0.035743050277233124,
0.01734093762934208,
-0.0020661940798163414,
0.012434684671461582,
-0.03456062078475952,
-0.058853935450315475,
0.06301555782556534,
0.00243653217330575,
0.002988887019455433,
-0.034851230680942535,
-0.005949266254901886,
-0.0223020538687706,
-0.012078740634024143,
0.010424508713185787,
-0.002685117069631815,
0.023582225665450096,
0.005816779565066099,
0.05675889924168587,
-0.02092277631163597,
0.04101962596178055,
-0.025928694754838943,
0.004239356145262718,
-0.010615569539368153,
-0.010999854654073715,
0.02273060940206051,
-0.008568009361624718,
0.11332307010889053,
0.05938190966844559,
-0.05319247394800186,
-0.04201338440179825,
0.016739724203944206,
-0.013405918143689632,
-0.05094163492321968,
-0.0014996035024523735,
0.006263464689254761,
0.01483108289539814,
0.0008998370612971485,
-0.048571519553661346,
-0.04309321939945221,
0.03299660235643387,
-0.055547382682561874,
-0.014325213618576527,
0.04703544080257416,
0.0007461479981429875,
0.06966796517372131,
-0.004737407900393009,
-0.0011684407945722342,
-0.013407755643129349,
-0.01150562521070242,
-0.05196094140410423,
0.0011032719630748034,
0.006295822560787201,
-0.011842754669487476,
0.022855794057250023,
-0.020455339923501015,
-0.019932417199015617,
-0.04491617903113365,
-0.04366001859307289,
0.03925175592303276,
0.07796274125576019,
0.0603613443672657,
-0.03706333413720131,
0.076490119099617,
0.002117827534675598,
0.02966971881687641,
-0.014532347209751606,
-0.042264942079782486,
-0.0414324589073658,
-0.03553207591176033,
0.010923122055828571,
0.006617697887122631,
0.016602834686636925,
0.003806950757279992,
0.003820904064923525,
0.03385230153799057,
-0.012300891801714897,
-0.05114572495222092,
0.045563630759716034,
0.013061906211078167,
-0.001719199470244348,
-0.01713338866829872,
-0.011160874739289284,
0.07898436486721039,
-0.026197491213679314,
0.0016825832426548004,
0.0008778971969150007,
-0.07070376724004745,
0.048638325184583664,
-0.05044504255056381,
-0.04213504493236542,
-0.016998998820781708,
0.00709608243778348,
0.045161936432123184,
0.04289139062166214,
0.010690153576433659,
0.055396612733602524,
0.025703666731715202,
0.018981583416461945,
-0.002947106957435608,
0.012261130847036839,
0.03592042997479439,
0.022429075092077255,
-0.007872062735259533,
0.05127826705574989,
0.03178201988339424,
-0.009071795269846916,
-0.0687173455953598,
0.010162889957427979,
-0.026447700336575508,
-0.28123733401298523,
0.040796756744384766,
0.02728290855884552,
-0.04134316369891167,
0.01689058542251587,
-0.04150775820016861,
0.006760800257325172,
-0.041661713272333145,
-0.03485272452235222,
0.019387610256671906,
-0.023375075310468674,
-0.022532209753990173,
-0.031766075640916824,
0.03426513448357582,
0.0065587484277784824,
0.023008402436971664,
0.006253270898014307,
-0.060675349086523056,
0.008750105276703835,
0.07071542739868164,
0.010953690856695175,
-0.05427183955907822,
-0.011261885985732079,
0.061488885432481766,
0.04195868968963623,
0.06824123114347458,
-0.07151253521442413,
0.026710709556937218,
-0.06360027939081192,
0.014212633483111858,
0.0019108488922938704,
-0.011982203461229801,
0.018398553133010864,
-0.015475720167160034,
0.009087109938263893,
-0.012561404146254063,
0.05238302797079086,
0.007633585017174482,
0.006457299459725618,
0.04057084396481514,
-0.005421159323304892,
-0.05097522214055061,
-0.000005272288035484962,
0.023915929719805717,
0.0667821615934372,
0.018334468826651573,
-0.07693273574113846,
-0.01380685530602932,
-0.034064073115587234,
0.07520468533039093,
-0.04641079902648926,
-0.06661026924848557,
-0.035219356417655945,
0.026020905002951622,
-0.006812600884586573,
-0.005572856869548559,
-0.02669999562203884,
-0.037826668471097946,
-0.03958667442202568,
-0.049567654728889465,
-0.023925436660647392,
-0.028054334223270416,
-0.024207429960370064,
-0.0717926025390625,
-0.004424549173563719,
-0.06237558647990227,
-0.08254015445709229,
-0.03169378638267517,
0.09874669462442398,
0.040033917874097824,
-0.031241776421666145,
0.0034624713007360697,
-0.017471838742494583,
-0.10023802518844604,
-0.013695128262043,
-0.004744619131088257,
-0.03770827129483223,
0.03114754892885685,
0.00934233795851469,
0.05884980782866478,
-0.05011291056871414,
-0.05413520708680153,
0.019465874880552292,
0.02372867427766323,
0.057115085422992706,
-0.024519287049770355,
0.0013052214635536075,
0.0007452174322679639,
-0.01664840243756771,
0.0030568845104426146,
0.07002875953912735,
-0.014104746282100677,
-0.033161722123622894,
-0.026503099128603935,
0.034705545753240585,
0.02543070912361145,
-0.001773535623215139,
-0.011440591886639595,
0.01269594021141529,
0.01315797958523035,
0.019144345074892044,
-0.04241149500012398,
0.04197021573781967,
-0.00931004248559475,
-0.023648835718631744,
-0.009052880108356476,
-0.05131435766816139,
0.026435598731040955,
0.04364169389009476,
-0.008691847324371338,
-0.015912478789687157,
-0.03013521246612072,
0.023250026628375053,
-0.03695555031299591,
-0.01497558318078518,
-0.03242146596312523,
0.01323798205703497,
0.04977339878678322,
-0.004559643566608429,
-0.007003206294029951,
-0.05224301666021347,
0.004338046535849571,
-0.017264407128095627,
-0.06159227341413498,
-0.04822248965501785,
-0.0051157595589756966,
-0.03683041036128998,
-0.02502450719475746,
0.00328725203871727,
0.022181706503033638,
-0.01085827499628067,
-0.009386925958096981,
0.05062367767095566,
-0.01996716484427452,
-0.00847232062369585,
-0.06370686739683151,
-0.06212160736322403,
-0.038157589733600616,
-0.00040277178050018847,
0.017862588167190552,
0.004856929183006287,
0.019772067666053772,
-0.015392469242215157,
0.026744691655039787,
0.03911960870027542,
0.018807753920555115,
0.00410859240218997,
-0.021350188180804253,
0.019109483808279037,
0.01449567824602127,
-0.0008638956351205707,
-0.058573413640260696,
0.024714088067412376,
-0.017161350697278976,
-0.03653218224644661,
0.025266850367188454,
0.027208274230360985,
-0.010770655237138271,
-0.031170081347227097,
-0.0031800393480807543,
0.01774683967232704,
-0.056613337248563766,
-0.03070887178182602,
-0.04364814981818199,
0.013697291724383831,
0.05705738067626953,
-0.007789030205458403,
0.009328514337539673,
0.013040394522249699,
-0.003905631136149168,
0.04315338283777237,
-0.007276762276887894,
-0.03871855512261391,
0.029061824083328247,
0.013424134813249111,
0.02673253044486046,
0.022776735946536064,
-0.019558221101760864,
0.04675547406077385,
0.0014165723696351051,
-0.005313440691679716,
-0.028872154653072357,
0.0011224535992369056,
0.026318669319152832,
0.06420385837554932,
0.03131600096821785,
0.01093275472521782,
-0.018854526802897453,
-0.0345909520983696,
-0.022966742515563965,
-0.023577731102705002,
-0.015084924176335335,
-0.010878072120249271,
-0.0027601930778473616,
-0.026208361610770226,
-0.060329727828502655,
0.05578671768307686,
0.03949214518070221,
0.004204264376312494,
0.0385909304022789,
-0.01405328419059515,
-0.013285158202052116,
-0.037748098373413086,
0.04189614579081535,
0.07362601161003113,
-0.0703640878200531,
0.0030970294028520584,
0.005960967857390642,
-0.007912744767963886,
0.0020561174023896456,
0.006651462055742741,
-0.0325259231030941,
-0.005779570434242487,
-0.032458480447530746,
0.018676510080695152,
-0.05590211972594261,
-0.03374653309583664,
-0.05194622278213501,
0.03249877691268921,
0.010722610168159008,
-0.00037051213439553976,
-0.01421295665204525,
-0.030954675748944283,
-0.026747101917862892,
-0.016260338947176933,
0.012721024453639984,
-0.01808040961623192,
-0.0027821355033665895,
0.026012226939201355,
-0.04214036464691162,
-0.0005085804150439799,
-0.0022870823740959167,
0.015361442230641842,
0.013629651628434658,
-0.032989501953125,
-0.02206314541399479,
-0.015263049863278866,
-0.009924033656716347,
-0.015163969248533249,
0.07367479801177979,
-0.015335438773036003,
-0.03099813312292099,
-0.05625779554247856,
0.0010605142451822758,
-0.04556970298290253,
0.03651285171508789,
-0.01654903218150139,
-0.012117303907871246,
0.01126466691493988,
0.06297491490840912,
0.008047949522733688,
0.004625201690942049,
-0.021739447489380836,
-0.02320035733282566,
0.03522329032421112,
-0.04726801812648773,
-0.032083407044410706,
-0.044007979333400726,
-0.03575735166668892,
-0.004151970613747835,
-0.004962380044162273,
-0.0059913271106779575,
-0.032182976603507996,
0.033118072897195816,
0.0205365139991045,
0.04354654252529144,
0.0387425534427166,
0.005279140546917915,
0.018433528020977974,
-0.04007915407419205,
-0.01013717520982027,
-0.1043626070022583,
-0.010692744515836239,
0.0011503444984555244,
-0.010782620869576931,
0.007826397195458412,
-0.002529383869841695,
-0.029265517368912697,
0.05117686465382576,
-0.08772044628858566,
-0.0182526595890522,
0.04030221700668335,
-0.010960439220070839,
-0.008738284930586815,
0.012148842215538025,
-0.07587355375289917,
0.006586350500583649,
0.008066175505518913,
-0.04323441907763481,
-0.0010582874529063702,
-0.020087795332074165,
0.02703465335071087,
-0.001838811207562685,
0.005167551804333925,
-0.011031598784029484,
0.009391287341713905,
0.06569821387529373,
0.005052997265011072,
-0.001117170206271112,
0.04957030713558197,
-0.010516729205846786,
0.05423496291041374,
0.04702981188893318,
0.02263653464615345,
-0.00011862219253089279,
0.011057297699153423,
-0.027951491996645927,
-0.050696708261966705,
0.026315370574593544,
-0.03222191333770752,
-0.02529597096145153,
-0.028109611943364143,
0.05985148251056671,
0.028454549610614777,
-0.03533953055739403,
-0.07166696339845657,
0.01762327179312706,
-0.0364011786878109,
-0.016986975446343422,
-0.002849359530955553,
0.010405083186924458,
-0.014264420606195927,
0.0499664731323719,
-0.02810886688530445,
-0.007345761172473431,
0.0658789798617363,
0.00032338176970370114,
-0.025197450071573257,
0.008518107235431671,
0.11276645958423615,
0.08800924569368362,
0.04204095900058746,
0.0014942666748538613,
0.07812586426734924,
-0.005542106926441193,
-0.04130835458636284,
0.015960799530148506,
-0.026237068697810173,
-0.027265489101409912,
-0.044360943138599396,
0.049200672656297684,
0.060963064432144165,
-0.023641090840101242,
0.08505057543516159,
-0.05052760988473892,
-0.017474809661507607,
0.012781756930053234,
0.0521545484662056,
0.007314068730920553,
0.04654012992978096,
0.017319370061159134,
0.03232600912451744,
-0.026189254596829414,
-0.04008596017956734,
0.029239188879728317,
-0.00555078499019146,
-0.006538229528814554,
0.0045172120444476604,
-0.024030791595578194,
0.015687964856624603,
0.012087584473192692,
0.027095310389995575,
0.0700458288192749,
-0.01983853615820408,
0.03828991949558258,
0.00027932689408771694,
0.028907466679811478,
-0.021486271172761917,
0.013281001709401608,
-0.019529953598976135,
-0.018564879894256592,
-0.0014946680748835206,
-0.029039202257990837,
-0.01074128970503807,
-0.0009310911991633475,
-0.028599200770258904,
-0.0015380728291347623,
-0.05290675163269043,
0.0003805854357779026,
0.027050795033574104,
0.022902682423591614,
-0.056712862104177475,
-0.05598954111337662,
-0.055138908326625824,
-0.014036676846444607,
-0.045736610889434814,
0.009803934954106808,
0.006547869648784399,
-0.0096193328499794,
-0.03773291036486626,
-0.02264261059463024,
-0.005402011796832085,
-0.054888639599084854,
0.013620885089039803,
-0.053518764674663544,
-0.021178582683205605,
0.01717686839401722,
0.029776379466056824,
0.012006230652332306,
0.004250684287399054,
0.04539698362350464,
-0.00946100801229477,
0.005012409295886755,
-0.0023973870556801558,
-0.019682390615344048,
0.019488247111439705,
0.001288087572902441,
0.014662404544651508,
-0.08454569429159164,
0.012240767478942871,
0.012413433752954006,
-0.0034320049453526735,
-0.07319539785385132,
0.012588937766849995,
0.04866547882556915,
0.004906193818897009,
0.040791142731904984,
-0.020160648971796036,
0.01103823073208332,
-0.048612114042043686,
-0.01618225686252117,
-0.0027661847416311502,
0.029931174591183662,
0.056280333548784256,
-0.004877298604696989,
0.07239076495170593,
0.009571162052452564,
0.01455911248922348,
-0.04019856080412865,
-0.028467794880270958,
0.0027361507527530193,
0.007744146510958672,
-0.04428008198738098,
0.01392974890768528,
-0.00882651749998331,
-0.08579326421022415,
-0.02377329207956791,
0.025861142203211784,
-0.022293977439403534,
-0.0321301631629467,
0.04767385125160217,
-0.013999219052493572,
-0.030612168833613396,
0.03361187130212784,
-0.025612177327275276,
-0.003287962870672345,
-0.03063170239329338,
-0.015537384897470474,
0.016425559297204018,
0.02316594123840332,
0.008768860250711441,
-0.01198883168399334,
0.014591705054044724,
-0.049508947879076004,
-0.0033250367268919945,
-0.002375139854848385,
0.019535629078745842,
0.0599064901471138,
-0.016554322093725204,
-0.014881960116326809
] | [
-0.07130149006843567,
-0.00255948374979198,
-0.009804717265069485,
0.012098629958927631,
-0.013107165694236755,
-0.004205710720270872,
-0.005119103007018566,
-0.0015870589995756745,
0.01214890368282795,
-0.04673588275909424,
-0.015094299800693989,
-0.043437615036964417,
-0.006234154105186462,
0.006144162267446518,
0.08296207338571548,
-0.019285760819911957,
0.005018993280827999,
-0.09907357394695282,
-0.01143913809210062,
0.04832765460014343,
0.0005269995308481157,
-0.018622180446982384,
-0.02984805963933468,
-0.008502480573952198,
0.03929968550801277,
0.025390028953552246,
0.0649162158370018,
-0.04911193624138832,
0.006314835511147976,
-0.16597935557365417,
-0.007116176653653383,
-0.0018723648972809315,
0.0246343445032835,
-0.009589791297912598,
-0.01613662578165531,
0.06762494891881943,
0.015386697836220264,
0.040145404636859894,
-0.0036958411801606417,
0.04420062527060509,
0.021576348692178726,
0.0248622614890337,
-0.028533384203910828,
0.023460419848561287,
0.03654724732041359,
0.002189737046137452,
-0.0012901696609333158,
-0.020231161266565323,
0.04146803170442581,
-0.015144234523177147,
-0.09462835639715195,
-0.006501406896859407,
-0.00953073799610138,
0.008573378436267376,
-0.00940432958304882,
0.012032915838062763,
0.03368775174021721,
0.05155591294169426,
0.01620413362979889,
0.03371051326394081,
0.0004902047803625464,
0.005754759069532156,
-0.14180347323417664,
0.11503114551305771,
0.02863600105047226,
0.022510521113872528,
-0.02416258491575718,
-0.009892811998724937,
0.020396973937749863,
0.07599283754825592,
-0.0010829534148797393,
0.0022192548494786024,
-0.02702273614704609,
0.06377490609884262,
0.03618771582841873,
-0.026929154992103577,
0.01972535252571106,
0.014800161123275757,
0.019246820360422134,
-0.03520238772034645,
0.008392971940338612,
0.03503300994634628,
0.002244307892397046,
-0.018485601991415024,
-0.04013962298631668,
0.037467699497938156,
-0.028607310727238655,
0.025222107768058777,
0.022367656230926514,
0.006377019453793764,
0.03669384866952896,
0.00940313283354044,
-0.008700806647539139,
0.012565135955810547,
-0.0652361512184143,
-0.07295111566781998,
-0.003967427648603916,
0.03044741041958332,
-0.04509994760155678,
0.4261678159236908,
-0.018121367320418358,
0.02552187629044056,
0.06899987906217575,
0.05747779458761215,
0.008966798894107342,
-0.025952326133847237,
0.03070261888206005,
-0.06845023483037949,
0.013456952758133411,
0.0022515486925840378,
0.01673518680036068,
-0.011870993301272392,
0.06920512765645981,
-0.051234081387519836,
0.01391650177538395,
0.0429551862180233,
0.0818321704864502,
-0.012539122253656387,
0.009599853307008743,
0.0023601828143000603,
-0.05339379981160164,
0.017969558015465736,
0.021469850093126297,
-0.029077336192131042,
-0.021165328100323677,
-0.09218619763851166,
0.007841725833714008,
0.06162991747260094,
0.007090587634593248,
-0.012161964550614357,
0.08198504149913788,
-0.04470879212021828,
-0.049057118594646454,
-0.022213583812117577,
0.014693867415189743,
0.01820194162428379,
0.03506113961338997,
-0.04354330152273178,
0.038391124457120895,
0.011119344271719456,
0.01520442496985197,
0.0032836764585226774,
0.017470791935920715,
-0.03538636863231659,
-0.038878168910741806,
0.12020865827798843,
0.05873491242527962,
-0.030379220843315125,
-0.004772261716425419,
-0.02666805312037468,
0.018089422956109047,
0.015787381678819656,
-0.023014262318611145,
-0.060434482991695404,
0.02485066093504429,
-0.001965455710887909,
0.11175183206796646,
0.009031008929014206,
-0.05298846587538719,
-0.020262502133846283,
-0.03352496027946472,
-0.007276355754584074,
-0.07841960340738297,
0.03167983889579773,
0.06927210092544556,
-0.03498081862926483,
-0.013799306936562061,
-0.009911008179187775,
0.005649889819324017,
-0.08773767948150635,
0.03794988989830017,
-0.0012090917443856597,
-0.03564015403389931,
0.03429302200675011,
0.08946216851472855,
-0.02611183188855648,
-0.02046162635087967,
0.0038303362671285868,
0.018908707424998283,
0.01804225519299507,
0.01138598658144474,
-0.034490011632442474,
-0.023151366040110588,
-0.007674782071262598,
-0.057194434106349945,
-0.06475914269685745,
-0.024845950305461884,
-0.004285810049623251,
-0.009055966511368752,
-0.03768916800618172,
0.0071884021162986755,
-0.04191933572292328,
-0.10287802666425705,
0.07778622955083847,
-0.06990145146846771,
-0.04570801183581352,
0.010344966314733028,
0.014865265227854252,
-0.05638307332992554,
-0.0146369943395257,
-0.030928604304790497,
-0.02201562002301216,
-0.03391329571604729,
0.030190739780664444,
-0.010999820195138454,
0.02770848385989666,
0.04632679000496864,
-0.0457831546664238,
0.11316699534654617,
0.0679917186498642,
-0.01472595613449812,
-0.03415674343705177,
0.001300895819440484,
0.01135083008557558,
-0.009799683466553688,
-0.0016673676436766982,
0.007145420182496309,
-0.003857743926346302,
-0.008925393223762512,
0.012979509308934212,
0.004024613182991743,
-0.07620266079902649,
-0.059613004326820374,
-0.3141924738883972,
-0.04666602984070778,
-0.043443676084280014,
-0.024306202307343483,
0.050679177045822144,
-0.052765510976314545,
0.014218415133655071,
0.004110959358513355,
-0.0025836762506514788,
-0.006258293986320496,
0.057408351451158524,
-0.007125193253159523,
-0.001062968629412353,
-0.07533164322376251,
0.00924605131149292,
0.002995431423187256,
-0.04429486021399498,
-0.018865469843149185,
-0.030979525297880173,
0.006306557450443506,
0.023068435490131378,
0.007788689807057381,
-0.05341532081365585,
-0.061182405799627304,
-0.016564637422561646,
-0.0024136893916875124,
0.08954117447137833,
0.034310903400182724,
0.06014159321784973,
-0.02332317642867565,
0.028001779690384865,
0.012265625409781933,
0.04402600973844528,
-0.12936833500862122,
-0.02427757903933525,
-0.023330042138695717,
0.016084706410765648,
-0.024477049708366394,
0.010792896151542664,
-0.049946971237659454,
-0.05813611298799515,
0.034165266901254654,
-0.04979057237505913,
-0.010980338789522648,
-0.12766024470329285,
0.026406478136777878,
-0.010911122895777225,
-0.0011211284436285496,
-0.018825162202119827,
0.07092756778001785,
0.01787743717432022,
-0.01593777909874916,
-0.032153625041246414,
0.013125956058502197,
-0.018461236730217934,
-0.007300620898604393,
-0.10384663939476013,
-0.0008091105264611542,
-0.021049387753009796,
-0.010663550347089767,
-0.027000291272997856,
0.08021499216556549,
0.058158427476882935,
-0.048708416521549225,
-0.014748523943126202,
0.012608076445758343,
-0.003964090254157782,
0.018774287775158882,
0.05476495251059532,
0.0006862009176984429,
-0.014050939120352268,
0.05052035301923752,
-0.03178685903549194,
-0.006019624415785074,
0.02935253083705902,
0.02898213639855385,
-0.0052202921360731125,
0.055741772055625916,
0.013493165373802185,
0.019837846979498863,
0.0022490147966891527,
-0.03464985266327858,
0.02789604291319847,
-0.010359534993767738,
-0.04021656885743141,
0.0019505330128595233,
-0.01607252098619938,
-0.04845128208398819,
0.04353505000472069,
0.018509477376937866,
-0.024209706112742424,
0.028370218351483345,
-0.016066525131464005,
-0.07529322803020477,
0.09543316066265106,
-0.0116983437910676,
-0.23763173818588257,
0.024735962972044945,
0.04410786181688309,
0.07452205568552017,
-0.01613490842282772,
0.008442705497145653,
0.016749616712331772,
-0.009364703670144081,
-0.017215296626091003,
0.0071838912554085255,
0.02392672561109066,
0.026833195239305496,
0.01076724287122488,
-0.01431235857307911,
0.017041275277733803,
-0.014251879416406155,
0.02661980129778385,
0.020293718203902245,
-0.008153473027050495,
0.011107933707535267,
0.014509440399706364,
0.004266939591616392,
0.156482994556427,
0.023541271686553955,
-0.00639231875538826,
0.013041969388723373,
0.03737012669444084,
0.016157347708940506,
0.051498860120773315,
0.016148392111063004,
0.007580338511615992,
0.004402210004627705,
0.0044758073054254055,
0.013356376439332962,
0.033744193613529205,
-0.09340094774961472,
-0.03754384070634842,
0.051752202212810516,
0.06403002142906189,
-0.0037593874149024487,
0.056724682450294495,
0.032437071204185486,
-0.034247349947690964,
0.03154675289988518,
0.08448971062898636,
-0.00656823581084609,
-0.01406929362565279,
-0.043387554585933685,
-0.06712403148412704,
-0.025780998170375824,
-0.005652708001434803,
-0.01939581334590912,
0.034676019102334976,
0.017970964312553406,
0.01706833764910698,
0.07047717273235321,
0.02950490079820156,
-0.03719822317361832,
0.021408304572105408,
-0.016179973259568214,
-0.01638229936361313,
-0.022234894335269928,
0.12011802196502686,
0.011644876562058926,
0.006352266296744347
] | [
0.010478618554770947,
0.008422315120697021,
0.0016116579063236713,
0.03178088739514351,
-0.018959879875183105,
-0.0014912165934219956,
0.02169536054134369,
-0.01812322996556759,
0.008423194289207458,
0.013325155712664127,
0.004912534262984991,
0.027560504153370857,
0.023581258952617645,
-0.0216810405254364,
0.02148251421749592,
-0.030553946271538734,
0.019247926771640778,
-0.03440235182642937,
0.01719566062092781,
0.016263088211417198,
-0.034362878650426865,
0.003265721956267953,
0.006295342463999987,
0.0015500346198678017,
0.006258521694689989,
0.03363792970776558,
-0.007393971085548401,
-0.06473257392644882,
0.03735985606908798,
-0.13498568534851074,
-0.010728281922638416,
0.002018820960074663,
-0.012803321704268456,
-0.005834029521793127,
-0.01592440903186798,
0.011297383345663548,
0.016646409407258034,
-0.0029381343629211187,
0.015725228935480118,
-0.019299324601888657,
0.02864789590239525,
-0.025482075288891792,
-0.012800692580640316,
0.033602241426706314,
0.0010399438906461,
0.007566823624074459,
0.02647794596850872,
-0.01796724833548069,
-0.016806060448288918,
-0.028867537155747414,
-0.029708651825785637,
-0.0002450360916554928,
-0.037935204803943634,
0.0385553278028965,
-0.020839326083660126,
-0.013612303882837296,
0.026095839217305183,
-0.010225793346762657,
0.01402905024588108,
-0.0005210430244915187,
0.003924449905753136,
-0.04966381937265396,
-0.04332611709833145,
-0.025938909500837326,
0.011651732958853245,
0.0005395307671278715,
0.003440058557316661,
0.005775718484073877,
-0.01720558851957321,
0.012027929536998272,
-0.009895765222609043,
0.010250389575958252,
0.005378129426389933,
-0.021774185821413994,
0.026492461562156677,
-0.025493431836366653,
0.0010120364604517817,
-0.060629379004240036,
-0.00038710562512278557,
-0.014351067133247852,
-0.05227651447057724,
0.021602528169751167,
0.01853855885565281,
0.014918903820216656,
-0.003426772076636553,
-0.014829854480922222,
0.002703014761209488,
0.011336046271026134,
0.039657026529312134,
-0.05571620166301727,
0.006019649561494589,
0.03396545350551605,
-0.01124461367726326,
0.015810996294021606,
-0.09043145924806595,
-0.041944511234760284,
0.002850295277312398,
-0.006142679136246443,
-0.0013719841372221708,
0.842993438243866,
0.020560333505272865,
0.04994894564151764,
0.06320636719465256,
0.0038383747451007366,
-0.0002681478508748114,
-0.019773190841078758,
0.015640148892998695,
-0.015621230937540531,
-0.015915360301733017,
-0.05297084152698517,
0.01440279558300972,
0.020582696422934532,
0.02758060395717621,
0.04446302354335785,
0.015668097883462906,
0.025149261578917503,
0.019992494955658913,
0.018367262557148933,
-0.012611843645572662,
0.028389878571033478,
0.015386306680738926,
0.017077883705496788,
0.024109909310936928,
0.0017481079557910562,
-0.0025033161509782076,
-0.17937272787094116,
-0.021296709775924683,
-7.671517109808167e-33,
0.017664117738604546,
0.008279068395495415,
0.008131712675094604,
-0.0006844578310847282,
0.007375595159828663,
-0.01973794773221016,
0.026592237874865532,
0.012980250641703606,
-0.008227742277085781,
-0.026852913200855255,
0.0077005187049508095,
0.0055688656866550446,
0.012645761482417583,
-0.01409540232270956,
0.04842706024646759,
-0.023031063377857208,
-0.01732015237212181,
0.028306981548666954,
0.020676597952842712,
0.009875955060124397,
0.03125341236591339,
0.029500991106033325,
-0.02190987765789032,
-0.015683192759752274,
0.025953860953450203,
0.006534959655255079,
0.025905415415763855,
-0.002039205050095916,
0.003763202577829361,
-0.0463641993701458,
-0.010312508791685104,
0.020335916429758072,
-0.018046896904706955,
-0.05375581607222557,
-0.013291521929204464,
-0.024344030767679214,
-0.008608351461589336,
0.03230287507176399,
0.01437840424478054,
-0.041116200387477875,
-0.047683194279670715,
0.00943958479911089,
0.0010595966596156359,
-0.024246511980891228,
-0.03701384365558624,
0.0034705675207078457,
0.0220636036247015,
0.020032070577144623,
0.04365301504731178,
-0.021429333835840225,
-0.004850893747061491,
-0.03663988411426544,
-0.027668416500091553,
-0.027343755587935448,
-0.009400776587426662,
-0.014433267526328564,
0.00207684189081192,
-0.0008571302169002593,
0.008392096497118473,
0.039117395877838135,
0.026567386463284492,
-0.027403781190514565,
-0.020981140434741974,
0.027636174112558365,
-0.014367165975272655,
-0.007110962178558111,
0.013555810786783695,
-0.0038061721716076136,
-0.0059767430648207664,
0.0012400641571730375,
-0.046237457543611526,
-0.020583096891641617,
0.00757046090438962,
-0.008658656850457191,
0.049918532371520996,
0.004253874067217112,
-0.03372994810342789,
0.025807702913880348,
-0.04522193223237991,
0.04981991648674011,
-0.005796421319246292,
0.004257529508322477,
-0.035992976278066635,
-0.02807752601802349,
-0.023865114897489548,
0.014586562290787697,
0.03239941596984863,
0.0077166687697172165,
-0.041756562888622284,
-0.02224254608154297,
0.01670183055102825,
0.011696954257786274,
0.021977726370096207,
-0.011972476728260517,
-0.032252609729766846,
8.138309589939544e-33,
-0.014517515897750854,
-0.02177208848297596,
-0.0075477901846170425,
0.013146096840500832,
0.025058547034859657,
0.02100871317088604,
0.03223139047622681,
-0.004174662288278341,
-0.03570779412984848,
0.03696208819746971,
-0.011102345772087574,
0.010752005502581596,
-0.01107010431587696,
0.022480247542262077,
0.0019923041108995676,
-0.018173139542341232,
0.01929490640759468,
-0.028599567711353302,
0.030612312257289886,
0.026744576171040535,
-0.003451814642176032,
-0.0013898862525820732,
-0.0015986660728231072,
-0.005776443984359503,
0.06414663046598434,
0.06164697930216789,
0.0020557804964482784,
0.03009696491062641,
-0.0012644283706322312,
0.010566381737589836,
-0.012090344913303852,
-0.005940267816185951,
0.010089914314448833,
-0.01878448575735092,
-0.037739161401987076,
0.01577935740351677,
-0.006792495958507061,
-0.024638181552290916,
-0.03894586116075516,
-0.029647989198565483,
0.03166337311267853,
0.007377938367426395,
0.008302616886794567,
0.01016652025282383,
0.02359851449728012,
0.004338233731687069,
-0.004449985921382904,
-0.0013682098360732198,
-0.033434510231018066,
0.03794746473431587,
0.014600887894630432,
-0.0006629183189943433,
0.001691922196187079,
-0.012789281085133553,
0.004370903596282005,
0.009478917345404625,
-0.026167117059230804,
0.014695707708597183,
0.003934735432267189,
-0.026652604341506958,
-0.01380061637610197,
0.0017299269093200564,
-0.014897576533257961,
0.029955437406897545,
-0.02746267057955265,
0.013586992397904396,
0.01737506501376629,
0.01749722845852375,
0.016688290983438492,
-0.0035129955504089594,
-0.005933385342359543,
0.006814012303948402,
-0.0009841654682531953,
0.010642695240676403,
-0.001414983649738133,
-0.0025414535775780678,
0.0001314448018092662,
-0.0015827900497242808,
-0.03219469636678696,
0.021701935678720474,
0.03096129186451435,
0.01583857461810112,
-0.0031208829022943974,
-0.007422422990202904,
0.0014515925431624055,
0.02306092157959938,
-0.0025956740137189627,
-0.006049941293895245,
-0.009131181985139847,
-0.018484339118003845,
-0.017932498827576637,
-0.025090549141168594,
0.005251096095889807,
0.026507478207349777,
-0.014778361655771732,
-1.3203377946524597e-8,
-0.010441739112138748,
-0.029329201206564903,
0.019453970715403557,
0.009112128987908363,
0.017779743298888206,
-0.009327349252998829,
0.007991691119968891,
-0.016926011070609093,
-0.03792402893304825,
0.020368093624711037,
0.0475243479013443,
-0.08241649717092514,
0.005224247463047504,
0.008484809659421444,
0.015075355768203735,
-0.02665109373629093,
0.0025940435007214546,
-0.02409331314265728,
0.035762108862400055,
-0.008754593320190907,
0.06007161736488342,
0.0498943105340004,
0.013329312205314636,
0.003632084233686328,
0.03859027847647667,
0.027357934042811394,
-0.00309244473464787,
-0.058181487023830414,
-0.02023259550333023,
-0.004711504094302654,
0.0003115539439022541,
-0.045914337038993835,
-0.016764629632234573,
0.016689619049429893,
-0.04155266657471657,
-0.07056865841150284,
0.04394136741757393,
0.031174326315522194,
0.018205564469099045,
0.008851875551044941,
0.00135800801217556,
0.00009935138950822875,
0.01346055418252945,
-0.016276227310299873,
-0.014168212190270424,
-0.0009877474512904882,
-0.035110145807266235,
-0.022075386717915535,
0.07067346572875977,
-0.029688583686947823,
0.015555549412965775,
-0.013874748721718788,
0.07721414417028427,
0.01651158556342125,
0.0062570031732320786,
0.0025851966347545385,
0.013382737524807453,
-0.01447097398340702,
-0.06097011640667915,
0.02471109852194786,
0.024058546870946884,
0.037043679505586624,
-0.037351418286561966,
-0.019452128559350967
] | study-until-your-mind-wanders | https://markhneedham.com/blog/2015/12/31/study-until-your-mind-wanders |
false | 2015-12-13 21:22:07 | Neo4j: Specific relationship vs Generic relationship + property | [
"neo4j"
] | [
"neo4j"
] | For optimal traversal speed in Neo4j queries we should make our *relationship types as specific as possible*.
Let's take a look at an example from the 'http://www.meetup.com/graphdb-london/events/226721630/[modelling a recommendations engine]' talk I https://skillsmatter.com/skillscasts/7298-modelling-a-recommendation-engine-a-worked-example[presented at Skillsmatter] a couple of weeks ago.
I needed to decided how to model the 'RSVP' relationship between a +++<cite>+++Member+++</cite>+++ and an +++<cite>+++Event+++</cite>+++. A person can RSVP 'yes' or 'no' to an event and I'd like to capture both of these responses.
i.e. we can choose between:
image::{{<siteurl>}}/uploads/2015/12/2015-12-13_20-39-05.png[2015 12 13 20 39 05,300]
and:
image::{{<siteurl>}}/uploads/2015/12/2015-12-13_20-39-54.png[2015 12 13 20 39 54,300]
When deciding on a model we mainly need to think about the types of queries that we want to write. We shouldn't forget about updating the model but in my experience more time is spent querying graphs than updating them.
Let's take a look at each of those in turn:
== What queries do we want to write?
The first query was going to use previous 'yes' RSVPs as an indicator of interest for future events. We're not interested in 'no' RSVPs for this query.
I started out with the generic RSVP relationship type with a 'response' property to distinguish between 'yes' and 'no':
[source,cypher]
----
MATCH (member:Member {name: "Mark Needham"})
MATCH (futureEvent:Event) WHERE futureEvent.time >= timestamp()
MATCH (futureEvent)<-[:HOSTED_EVENT]-(group)
OPTIONAL MATCH (member)-[rsvp:RSVPD {response: "yes"}]->(pastEvent)<-[:HOSTED_EVENT]-(group)
WHERE pastEvent.time < timestamp()
RETURN group.name, futureEvent.name, COUNT(rsvp) AS previousEvents
ORDER BY previousEvents DESC
----
This ran reasonably quickly but I was curious whether I could get the query to run any quicker by changing to the more specific model. Using the more specific relationship type our query reads:
[source,cypher]
----
MATCH (member:Member {name: "Mark Needham"})
MATCH (futureEvent:Event) WHERE futureEvent.time >= timestamp()
MATCH (futureEvent)<-[:HOSTED_EVENT]-(group)
OPTIONAL MATCH (member)-[rsvp:RSVP_YES]->(pastEvent)<-[:HOSTED_EVENT]-(group)
WHERE pastEvent.time < timestamp()
RETURN group.name,
futureEvent.name,
COUNT(rsvp) AS previousEvents
ORDER BY previousEvents DESC
----
We can now http://neo4j.com/docs/stable/how-do-i-profile-a-query.html[profile our query] and compare the db hits of both solutions:
[source,text]
----
RSVPD {response: "yes"}
Cypher version: CYPHER 2.3, planner: COST. 688635 total db hits in 232 ms.
RSVP_YES
Cypher version: CYPHER 2.3, planner: COST. 559866 total db hits in 207 ms.
----
So we get a slight gain by using the more specific relationship type. The reason the db hits is lower is partly because we've removed the need to lookup the 'response' property on every 'RSVP' property and check that it matches 'yes'. We're also evaluating fewer relationships since we only look at positive RSVPs, negative ones are ignored.
Our next query might be to capture all the RSVPs made by a member and list them alongside the events:
[source,cypher]
----
MATCH (member:Member {name: "Mark Needham"})-[rsvp:RSVPD]->(event)
WHERE event.time < timestamp()
RETURN event.name, event.time, rsvp.response
ORDER BY event.time DESC
----
[source,cypher]
----
MATCH (member:Member {name: "Mark Needham"})-[rsvp:RSVP_YES|:RSVP_NO]->(event)
WHERE event.time < timestamp()
RETURN event.name, event.time, CASE TYPE(rsvp) WHEN "RSVP_YES" THEN "yes" ELSE "no" END AS response
ORDER BY event.time DESC
----
Again we see a marginal db hits win for the more specific relationship type:
[source,text]
----
RSVPD {response: "yes"} / RSVPD {response: "no"}
Cypher version: CYPHER 2.3, planner: COST. 684 total db hits in 37 ms.
RSVP_YES / RSVP_NO
Cypher version: CYPHER 2.3, planner: COST. 541 total db hits in 24 ms.
----
However, the query is quite unwieldy and unless we store the response as a property on the relationship the code to return 'yes' or 'no' is a bit awkward. The more specific approach query would become even more painful to deal with if we introduced the 'waitlist' RSVP which we've chosen to exclude.
== Will we need to update the relationship?
Yes! Users are able to change their RSVP up until the event happens so we need to be able to handle that.
Let's have a look at the queries we'd have to write to handle a change in RSVP using both models:
== Generic relationship type
[source,cypher]
----
MATCH (event:Event {id: {event_id}})
MATCH (member:Member {id: {member_id}})
MERGE (member)-[rsvpRel:RSVPD {id: {rsvp_id}}]->(event)
ON CREATE SET rsvpRel.created = toint({mtime})
ON MATCH SET rsvpRel.lastModified = toint({mtime})
SET rsvpRel.response = {response}
----
== Specific relationship type
[source,cypher]
----
MATCH (event:Event {id: {event_id}})
MATCH (member:Member {id: {member_id}})
FOREACH(ignoreMe IN CASE WHEN {response} = "yes" THEN [1] ELSE [] END |
MERGE (member)-[rsvpYes:RSVP_YES {id: {rsvp_id}}]->(event)
ON CREATE SET rsvpYes.created = toint({mtime})
ON MATCH SET rsvpYes.lastModified = toint({mtime})
MERGE (member)-[oldRSVP:RSVP_NO]->(event)
DELETE oldRSVP
)
FOREACH(ignoreMe IN CASE WHEN {response} = "no" THEN [1] ELSE [] END |
MERGE (member)-[rsvpNo:RSVP_NO {id: {rsvp_id}}]->(event)
ON CREATE SET rsvpNo.created = toint({mtime})
ON MATCH SET rsvpNo.lastModified = toint({mtime})
MERGE (member)-[oldRSVP:RSVP_YES]->(event)
DELETE oldRSVP
)
----
As you can see, the code to update an RSVP is more complicated when using the specific relationship type due in part to Cypher not yet having first class support for conditionals.
In summary, for our meetup.com model we gain speed improvements by using more specific relationship types but at the expense of some more complicated read queries and a significantly more convoluted update query.
Depending on the cardinality of relationships in your model your mileage may vary but it's worth doing some profiling to compare all your options. | null | null | [
0.00890128780156374,
-0.006595269311219454,
0.01821124367415905,
0.05375069007277489,
0.06068597733974457,
-0.014969095587730408,
0.026066666468977928,
0.03162934258580208,
-0.00047305895714089274,
-0.008266651071608067,
0.022541219368577003,
-0.00019118012278340757,
-0.06792272627353668,
0.015665734186768532,
0.0055683692917227745,
0.07561051845550537,
0.04948350042104721,
0.0068800803273916245,
0.007435707841068506,
-0.01782752200961113,
0.007353193126618862,
0.05242949724197388,
-0.006181082688271999,
0.05099537596106529,
0.059355225414037704,
0.010109336115419865,
-0.0046817585825920105,
-0.011946413666009903,
-0.03300238028168678,
-0.02269122749567032,
0.04991783946752548,
0.005364841781556606,
-0.00843979325145483,
-0.013339647091925144,
0.00039919023402035236,
-0.027293244376778603,
-0.02933652512729168,
-0.01376327220350504,
0.0024731687735766172,
-0.028687013313174248,
-0.07597542554140091,
0.022719554603099823,
-0.008545784279704094,
-0.013301854021847248,
-0.029887689277529716,
0.006436973810195923,
-0.05480584874749184,
0.03134111687541008,
0.01701643317937851,
0.009468152187764645,
-0.07269098609685898,
0.026729309931397438,
-0.007158909924328327,
0.046312365680933,
-0.0051031713373959064,
0.032856132835149765,
0.026559822261333466,
-0.060319092124700546,
0.04008738696575165,
-0.02052169479429722,
-0.010464292950928211,
0.011439514346420765,
-0.002789912046864629,
0.025763388723134995,
0.00699999462813139,
-0.02141408622264862,
-0.002896179910749197,
0.045732274651527405,
-0.023945242166519165,
-0.012463079765439034,
-0.008540843613445759,
0.033368971198797226,
0.031149746850132942,
0.031116610392928123,
-0.0037172986194491386,
-0.037090692669153214,
0.0033131903037428856,
0.032556310296058655,
0.04372039809823036,
0.060891568660736084,
0.00018543725309427828,
0.015752755105495453,
0.009931121952831745,
0.016796596348285675,
0.0026623692829161882,
-0.034964669495821,
-0.010241018608212471,
-0.036504991352558136,
-0.06000252813100815,
0.043211571872234344,
-0.002072176430374384,
-0.06227578967809677,
-0.004162094090133905,
-0.008275595493614674,
-0.023850709199905396,
0.018772194162011147,
0.010523458011448383,
-0.012313607148826122,
0.01748049631714821,
-0.02224826253950596,
-0.04450881481170654,
-0.04272857680916786,
0.00871998444199562,
0.004383365623652935,
-0.08526459336280823,
-0.037998173385858536,
-0.04784039780497551,
-0.019854331389069557,
0.006307227537035942,
0.024028029292821884,
-0.05386637523770332,
0.0003047973441425711,
-0.01631518267095089,
0.02804727293550968,
-0.06823516637086868,
0.05251973867416382,
0.018865924328565598,
-0.01815788447856903,
-0.0063933334313333035,
-0.008502360433340073,
0.03964843228459358,
0.020380903035402298,
-0.012004760093986988,
0.05490003526210785,
-0.02325303852558136,
0.041864652186632156,
0.010651454329490662,
0.029906107112765312,
-0.03184005990624428,
-0.08812490105628967,
-0.00706944614648819,
0.045894116163253784,
-0.026280831545591354,
0.012867467477917671,
-0.04129411280155182,
-0.03269037976861,
-0.016942057758569717,
0.033261336386203766,
0.05105678364634514,
0.02865021675825119,
0.006119501776993275,
-0.06067488715052605,
0.058046456426382065,
0.010241935029625893,
0.05024057626724243,
0.005420988891273737,
-0.022387659177184105,
-0.0409780852496624,
-0.013949276879429817,
-0.0038822966162115335,
0.028032168745994568,
0.050106827169656754,
0.029370155185461044,
-0.03920290619134903,
0.010508871637284756,
0.11267787218093872,
0.02153988741338253,
0.002894109347835183,
-0.021796977147459984,
0.009906183928251266,
0.044641751796007156,
0.002605533692985773,
-0.0021077103447169065,
0.04969150945544243,
0.02163662761449814,
-0.011195089668035507,
-0.004921897780150175,
0.07327716052532196,
-0.006430045235902071,
0.018357286229729652,
-0.039705708622932434,
-0.05873330682516098,
0.058619916439056396,
-0.05572543665766716,
0.006455475464463234,
0.06001188978552818,
0.06621608883142471,
0.043626848608255386,
0.026798803359270096,
0.013337288983166218,
-0.08208111673593521,
0.05504903569817543,
0.010231376625597477,
-0.02095336839556694,
0.005110098514705896,
-0.004590020515024662,
0.07009533047676086,
0.036343567073345184,
-0.03122018650174141,
0.03902425989508629,
-0.099026158452034,
-0.06597906351089478,
-0.024019161239266396,
-0.02360384538769722,
0.07890970259904861,
-0.04139070212841034,
0.04408037289977074,
0.05448685213923454,
-0.007285993546247482,
0.0484611801803112,
0.03080061264336109,
0.005040937103331089,
0.0015370992477983236,
-0.028111377730965614,
-0.05854108929634094,
0.045496366918087006,
0.04212360084056854,
-0.06622938066720963,
-0.06888257712125778,
0.022283142432570457,
-0.02160734124481678,
0.027467641979455948,
0.007147946394979954,
-0.003037705784663558,
0.03867689147591591,
0.028430094942450523,
0.05189982429146767,
-0.0033981918822973967,
0.022224899381399155,
-0.05223320424556732,
0.06683814525604248,
0.010500635951757431,
-0.03468428924679756,
-0.02064017578959465,
-0.008766432292759418,
0.10077006369829178,
0.059246934950351715,
0.0005958745605312288,
-0.06735990196466446,
0.044100455939769745,
0.025321681052446365,
0.021715380251407623,
0.029974360018968582,
-0.04670274630188942,
0.0154504906386137,
-0.02605801820755005,
-0.02979912795126438,
-0.008710240013897419,
0.00631300313398242,
-0.027520393952727318,
-0.008863669820129871,
0.05716271698474884,
-0.02661651372909546,
0.06575382500886917,
-0.024835731834173203,
0.0033498420380055904,
-0.02265019156038761,
-0.046597644686698914,
-0.05540940538048744,
0.030032038688659668,
-0.006493774708360434,
0.0002245625655632466,
0.060008324682712555,
-0.031450700014829636,
0.012754310853779316,
-0.0181594118475914,
-0.00290188891813159,
0.07565323263406754,
0.06316237896680832,
0.05431002005934715,
0.012645711190998554,
0.05708293616771698,
-0.009282346814870834,
0.0012315444182604551,
0.006220624316483736,
-0.06261064112186432,
-0.04257800802588463,
-0.03593524545431137,
0.01631634123623371,
0.011645253747701645,
0.03140772879123688,
-0.021638890728354454,
0.042408060282468796,
0.011868594214320183,
0.006700300145894289,
-0.0019183486001566052,
0.02749175764620304,
0.020348550751805305,
-0.0018789125606417656,
-0.03894547373056412,
-0.03974822163581848,
0.04656800627708435,
-0.04756425321102142,
-0.07113869488239288,
-0.022628912702202797,
-0.030993251129984856,
0.04819832369685173,
-0.06672858446836472,
-0.03914982080459595,
-0.0197322815656662,
0.0313166044652462,
0.03819313272833824,
0.01911923661828041,
-0.01049081888049841,
0.06999892741441727,
0.057491522282361984,
0.0047517321072518826,
0.042023058980703354,
-0.017582520842552185,
0.0405195914208889,
-0.02364790253341198,
0.03446924686431885,
0.058808859437704086,
-0.03542841225862503,
0.0003600305353756994,
-0.017609991133213043,
0.009307441301643848,
-0.03286438435316086,
-0.2707034647464752,
0.03187929838895798,
-0.05249781534075737,
-0.028015347197651863,
-0.02161302976310253,
-0.012644977308809757,
0.03547123447060585,
-0.01405543927103281,
-0.037574224174022675,
-0.010635311715304852,
-0.006582384463399649,
-0.035663578659296036,
-0.015662984922528267,
0.03894753381609917,
0.0016345756594091654,
0.011868407018482685,
0.005191998556256294,
-0.06519006192684174,
-0.0257490836083889,
0.011964652687311172,
-0.012842085212469101,
-0.04427501931786537,
-0.02132147178053856,
0.0065909819677472115,
0.017709186300635338,
0.049390729516744614,
-0.11477848142385483,
0.012257931753993034,
-0.04589345306158066,
-0.01890869438648224,
0.037779051810503006,
-0.0022224821150302887,
-0.002541095484048128,
0.00046601626672782004,
-0.012358988635241985,
-0.009417211636900902,
0.050308194011449814,
0.01087248232215643,
0.02928614430129528,
0.033035967499017715,
-0.03984730690717697,
-0.0387871116399765,
-0.042512379586696625,
0.0014905589632689953,
0.06865715980529785,
-0.00047471022116951644,
-0.05286627262830734,
0.014380358159542084,
-0.0030679365154355764,
0.057356443256139755,
-0.04608064889907837,
-0.03880063444375992,
-0.006231582723557949,
0.023438064381480217,
-0.005908186547458172,
-0.033735886216163635,
0.015510722063481808,
-0.030207939445972443,
-0.05438542738556862,
-0.04935959354043007,
-0.023381851613521576,
-0.04923749715089798,
0.02986595220863819,
-0.029017573222517967,
-0.033613692969083786,
-0.041731301695108414,
-0.09408269822597504,
-0.019065074622631073,
0.03537409380078316,
0.004747292492538691,
-0.02432914264500141,
0.04019499570131302,
-0.023654386401176453,
-0.10795330256223679,
-0.039889320731163025,
-0.01451345719397068,
0.020317837595939636,
0.019661925733089447,
-0.02618904784321785,
0.046602096408605576,
-0.039199769496917725,
-0.043139148503541946,
-0.02968158945441246,
0.01570320874452591,
0.0337323397397995,
0.0037054866552352905,
0.01183649804443121,
-0.03248181566596031,
-0.027457650750875473,
-0.01358711812645197,
0.04582207649946213,
-0.015313772484660149,
-0.007925686426460743,
-0.0017354835290461779,
0.014393508434295654,
0.02894653007388115,
0.015107850544154644,
-0.014544261619448662,
0.023133588954806328,
0.037837088108062744,
0.037860434502363205,
-0.03589814528822899,
0.010026215575635433,
-0.01259582582861185,
-0.017739852890372276,
-0.008252104744315147,
-0.025131141766905785,
0.020134733989834785,
0.046078890562057495,
-0.0033934633247554302,
0.009095235727727413,
-0.006398218218237162,
0.013169587589800358,
-0.04727913439273834,
-0.05602376163005829,
-0.02654779516160488,
0.019924215972423553,
0.020805688574910164,
0.01428837701678276,
-0.007935721427202225,
-0.058784645050764084,
0.03760535642504692,
-0.0026246162597090006,
0.006120755802839994,
-0.07109268009662628,
-0.017104821279644966,
-0.029610680416226387,
-0.016173167154192924,
-0.016594281420111656,
0.024408815428614616,
-0.04613402485847473,
0.04505552351474762,
0.007328851148486137,
-0.03454819321632385,
0.05520196631550789,
0.005886799655854702,
-0.017602981999516487,
-0.007418643683195114,
0.00689914682880044,
-0.018252870067954063,
-0.029194142669439316,
0.00884619913995266,
0.01901915669441223,
0.04644617438316345,
0.04195927456021309,
0.025463778525590897,
0.00016925402451306581,
0.019787566736340523,
0.026594556868076324,
0.004180180374532938,
-0.021712210029363632,
-0.027532678097486496,
0.012673670426011086,
-0.04055694490671158,
-0.00276627647690475,
-0.018515752628445625,
0.04588623344898224,
-0.009957951493561268,
-0.008190370164811611,
-0.04520551860332489,
0.013001074083149433,
-0.08219464868307114,
0.0052176108583807945,
-0.015348351560533047,
0.023571670055389404,
0.05734730139374733,
-0.036915551871061325,
0.015468612313270569,
-0.020609911531209946,
-0.029088201001286507,
0.011464623734354973,
0.01836492493748665,
-0.028387265279889107,
0.00885506346821785,
-0.006058286875486374,
-0.0019256729865446687,
0.011887927539646626,
0.036047112196683884,
0.02364405430853367,
-0.002147583058103919,
-0.0039203292690217495,
-0.006884511094540358,
0.013747409917414188,
0.013914186507463455,
0.03425630182027817,
0.034005630761384964,
-0.00692788977175951,
-0.0013336369302123785,
-0.025533219799399376,
-0.007441780064254999,
-0.018375685438513756,
0.012835200875997543,
-0.01576141081750393,
-0.00511808879673481,
-0.015626128762960434,
-0.07529379427433014,
0.03991353511810303,
-0.03773275390267372,
-0.0005543084116652608,
0.007217606529593468,
0.0326603464782238,
0.0023690431844443083,
-0.010405072011053562,
0.015597065910696983,
0.05056164786219597,
-0.06592238694429398,
-0.0024847066961228848,
-0.015546741895377636,
-0.02299988642334938,
-0.0038440830539911985,
0.017841456457972527,
-0.0568959079682827,
-0.017515134066343307,
0.0172902662307024,
0.009252439253032207,
-0.03972703963518143,
-0.0528898723423481,
0.015066313557326794,
0.009473840706050396,
0.01767095737159252,
0.04759000614285469,
0.00862969271838665,
0.008212774060666561,
-0.02224809117615223,
-0.007904537953436375,
0.06312819570302963,
-0.025149645283818245,
-0.006039430387318134,
0.01846133917570114,
-0.028772935271263123,
0.009972901083528996,
-0.03438381478190422,
0.01268766075372696,
0.010694333352148533,
-0.030767805874347687,
0.01309075579047203,
-0.08863905817270279,
0.03723703697323799,
0.013045290485024452,
0.05499981716275215,
0.008366350084543228,
0.00719840731471777,
-0.029323497787117958,
0.008335774764418602,
-0.024494638666510582,
0.0043736607767641544,
0.018089300021529198,
-0.017326172441244125,
0.010801833122968674,
0.011820039711892605,
0.004349900875240564,
0.02270113117992878,
-0.02143397182226181,
-0.009998275898396969,
0.04961803928017616,
-0.034885723143815994,
-0.03862094506621361,
-0.0001266272010980174,
-0.044867388904094696,
0.002902804873883724,
0.010260112583637238,
0.015750834718346596,
-0.046030670404434204,
0.04212547466158867,
0.04800109192728996,
0.0341573990881443,
0.046494510024785995,
-0.017736172303557396,
0.0023899388033896685,
-0.005106559954583645,
-0.008636565878987312,
-0.08582697808742523,
0.004377266857773066,
0.0043517001904547215,
0.011434623971581459,
0.0009209573036059737,
-0.007550330366939306,
-0.033115848898887634,
0.02136629819869995,
-0.06518769264221191,
-0.022712338715791702,
0.01088356226682663,
-0.018967825919389725,
0.023479919880628586,
-0.003264115657657385,
-0.0600697286427021,
0.0059334710240364075,
0.04446544498205185,
-0.013867625966668129,
-0.019455168396234512,
-0.032291170209646225,
0.03872901573777199,
-0.04472951591014862,
0.034030623733997345,
-0.033616337925195694,
-0.01918819360435009,
0.0701717734336853,
0.03478437662124634,
-0.0003453061217442155,
0.047380950301885605,
-0.01954951137304306,
0.03915860131382942,
0.029990727081894875,
-0.003744396148249507,
0.011310906149446964,
0.02383536845445633,
-0.02413022890686989,
-0.059633634984493256,
0.06711466610431671,
-0.0006740358658134937,
-0.03483177348971367,
-0.059668831527233124,
0.06813541799783707,
0.0044111041352152824,
-0.04942825064063072,
-0.03628150746226311,
0.013833132572472095,
-0.00739326560869813,
-0.01022252906113863,
-0.034158285707235336,
0.011778065003454685,
-0.036488909274339676,
0.04998491704463959,
-0.014015823602676392,
0.0186797883361578,
0.05928690731525421,
-0.024289336055517197,
-0.006403273902833462,
-0.004911564290523529,
0.09458216279745102,
0.10901670902967453,
0.0790053978562355,
0.01385706290602684,
0.07043536752462387,
-0.001057302812114358,
-0.02084185741841793,
-0.019244888797402382,
-0.048715267330408096,
-0.04137640818953514,
0.0059221284464001656,
0.009117038920521736,
0.06303580105304718,
-0.018137888982892036,
0.04593431577086449,
-0.02125697210431099,
0.009764473885297775,
0.016584426164627075,
-0.026216570287942886,
0.0361824706196785,
0.07138242572546005,
0.022049397230148315,
0.0433187410235405,
-0.037077996879816055,
-0.020824674516916275,
-0.010772629640996456,
-0.004211763851344585,
-0.019253205507993698,
0.03384709358215332,
-0.0201299749314785,
0.004515598528087139,
0.012452010065317154,
0.04258732870221138,
0.07895458489656448,
-0.02978608012199402,
0.01001410186290741,
0.006257226224988699,
0.003105014096945524,
-0.010940076783299446,
0.017227396368980408,
-0.0017349007539451122,
-0.040987495332956314,
-0.019624006003141403,
-0.049324579536914825,
-0.008239920251071453,
0.006408356595784426,
-0.050964564085006714,
0.018725048750638962,
-0.03327495977282524,
0.011745822615921497,
0.018494490534067154,
-0.020361637696623802,
-0.037846069782972336,
-0.04629506543278694,
-0.029709484428167343,
-0.0396309569478035,
-0.07163076102733612,
0.007429833523929119,
-0.018867678940296173,
-0.009565494023263454,
-0.02534581907093525,
-0.01865384355187416,
-0.006096735596656799,
-0.021749818697571754,
0.040904637426137924,
-0.06076231226325035,
-0.014715200290083885,
0.022157924249768257,
0.0005526191089302301,
0.033645421266555786,
0.04113023355603218,
0.049260079860687256,
0.0051651401445269585,
0.01834692247211933,
-0.02859898842871189,
0.007634719833731651,
0.040749311447143555,
0.024662457406520844,
0.009328830987215042,
-0.07316267490386963,
0.007970142178237438,
0.035426992923021317,
-0.026530170813202858,
-0.0800991952419281,
-0.007103345822542906,
0.039743948727846146,
0.02043142169713974,
0.03098217584192753,
-0.0033111663069576025,
-0.013495626859366894,
-0.026185328140854836,
0.003718896768987179,
0.005441485438495874,
0.017999067902565002,
0.030085686594247818,
-0.013182082213461399,
0.050771791487932205,
0.0506751611828804,
-0.0512087307870388,
0.00008393711323151365,
-0.02664780244231224,
0.012664536014199257,
-0.017590299248695374,
-0.039034243673086166,
-0.04810473695397377,
-0.051315028220415115,
-0.07346857339143753,
-0.0387074239552021,
0.01842660643160343,
0.0000622518637101166,
-0.01626725308597088,
0.0042420923709869385,
0.030966244637966156,
-0.03160107508301735,
0.03808499872684479,
-0.04228949174284935,
0.02403884567320347,
0.0007406365475617349,
-0.01651819609105587,
-0.04865646734833717,
0.0158988106995821,
-0.021466799080371857,
-0.0025099623017013073,
-0.0008856402128003538,
-0.038253054022789,
0.0012649152195081115,
-0.04621325433254242,
0.03672122582793236,
0.023860692977905273,
0.03793525695800781,
0.012681981548666954
] | [
-0.0648382231593132,
0.0002156979899154976,
-0.04275505989789963,
-0.013040934689342976,
0.029823346063494682,
-0.022777371108531952,
-0.02594345062971115,
0.010746555402874947,
0.032735008746385574,
-0.015703894197940826,
0.015032998286187649,
-0.020660581067204475,
0.021427927538752556,
0.0091549688950181,
0.062243882566690445,
-0.015500747598707676,
-0.008799471892416477,
-0.02714044600725174,
-0.00323331612162292,
0.08916172385215759,
-0.01623930223286152,
-0.030016489326953888,
-0.03572375327348709,
-0.028643082827329636,
0.00744354585185647,
0.047819945961236954,
0.04726783186197281,
-0.03486834466457367,
-0.027670590206980705,
-0.21546275913715363,
-0.027407459914684296,
0.04807821288704872,
-0.003710599383339286,
0.006246983539313078,
-0.015811841934919357,
0.012081921100616455,
0.060254376381635666,
-0.03253490850329399,
0.02003910019993782,
0.03220602869987488,
-0.002818020759150386,
0.0005140787689015269,
-0.03157404065132141,
-0.0015023128362372518,
0.026992158964276314,
0.016056224703788757,
-0.01993427239358425,
-0.022671323269605637,
-0.05894387140870094,
-0.02640463039278984,
-0.04900980740785599,
-0.002960394835099578,
0.0012044948525726795,
0.004765557125210762,
0.010250349529087543,
0.04534585773944855,
0.06122118607163429,
0.044489771127700806,
-0.005632626358419657,
-0.0015270616859197617,
-0.005746725481003523,
0.019635453820228577,
-0.14271527528762817,
0.0645136907696724,
-0.008939693681895733,
0.015397430397570133,
-0.06200175732374191,
0.007881891913712025,
-0.048986323177814484,
0.09025272727012634,
0.018802527338266373,
0.02004224993288517,
-0.08472312986850739,
0.05373460054397583,
0.003393438644707203,
0.03905617073178291,
-0.012994363903999329,
0.010965674184262753,
0.04473951458930969,
-0.023114843294024467,
-0.03891985863447189,
0.020274022594094276,
-0.04695546627044678,
-0.029351454228162766,
-0.01893416792154312,
0.02511601895093918,
-0.004932153970003128,
0.0014150758506730199,
0.019677486270666122,
0.03247932717204094,
0.015124478377401829,
0.012672399170696735,
0.03145641088485718,
0.015384216792881489,
-0.06174251437187195,
0.015190229751169682,
0.002083307132124901,
-0.0065710595808923244,
0.004547945223748684,
0.4037023186683655,
0.0037260097451508045,
0.020591596141457558,
0.01822476089000702,
0.0487784817814827,
-0.003366896416991949,
-0.03560151159763336,
0.00541570782661438,
-0.09334051609039307,
0.041612956672906876,
-0.03286559507250786,
-0.01675010845065117,
-0.039051901549100876,
0.049758173525333405,
-0.10297785699367523,
-0.006156964227557182,
0.03206856548786163,
0.062393251806497574,
0.04504729434847832,
-0.01299692876636982,
0.006991018541157246,
-0.04811517149209976,
0.016522787511348724,
0.040312327444553375,
0.020672909915447235,
0.03245152160525322,
0.003283141180872917,
0.001672364305704832,
0.03689131513237953,
0.02376655675470829,
0.04292815923690796,
0.08230731636285782,
0.014295960776507854,
-0.07295176386833191,
0.024086877703666687,
-0.00987182930111885,
0.004864481743425131,
0.007642803248018026,
-0.04033892974257469,
-0.03698408976197243,
0.02342197299003601,
-0.031236346811056137,
-0.02423849143087864,
0.04343588277697563,
-0.0007203413406386971,
-0.06796004623174667,
0.15052247047424316,
-0.03140251338481903,
-0.02244776487350464,
-0.041800521314144135,
-0.017456743866205215,
0.005641214083880186,
0.05181441083550453,
0.008828636258840561,
-0.0796753466129303,
-0.04310266673564911,
-0.002706022933125496,
0.0555654875934124,
-0.02257896400988102,
-0.11904934793710709,
-0.014810699038207531,
-0.01392460148781538,
-0.03038049302995205,
-0.04207806661725044,
0.06351746618747711,
0.008077695965766907,
-0.1526491641998291,
-0.00011480754619697109,
0.020791804417967796,
-0.01730004884302616,
-0.07303465902805328,
0.011533854529261589,
0.00679871765896678,
-0.046505145728588104,
-0.022221213206648827,
0.08514732867479324,
-0.00022500863997265697,
-0.04459063336253166,
-0.03152574971318245,
0.027973977848887444,
0.009346778504550457,
-0.001774405944161117,
0.0074304440058767796,
-0.04448935016989708,
0.0040421499870717525,
-0.0420319028198719,
-0.030157363042235374,
-0.0712498128414154,
0.019815003499388695,
-0.021019626408815384,
-0.038785744458436966,
0.004497034940868616,
-0.038103364408016205,
-0.06134467571973801,
0.08372066169977188,
-0.029793106019496918,
-0.013208357617259026,
-0.0014155012322589755,
0.01412233617156744,
-0.016719365492463112,
-0.009455160237848759,
0.0044077676720917225,
0.03074152208864689,
-0.012436782009899616,
0.016405221074819565,
-0.07556790113449097,
0.014291880652308464,
0.04219585657119751,
-0.04944312945008278,
0.03834311664104462,
0.04105940833687782,
-0.05229400470852852,
-0.005491289775818586,
-0.039159324020147324,
0.013515617698431015,
0.002027552342042327,
0.008744070306420326,
0.006216751877218485,
0.009854467585682869,
0.014073843136429787,
0.07053973525762558,
-0.0152489198371768,
-0.012341426685452461,
0.01632755808532238,
-0.35343652963638306,
-0.054440855979919434,
-0.006779780611395836,
0.034271240234375,
0.03747103363275528,
-0.037434451282024384,
0.023171037435531616,
-0.016113240271806717,
-0.00016032571147661656,
0.038783490657806396,
0.06566257029771805,
0.029930291697382927,
-0.029691556468605995,
-0.05671170726418495,
0.019765105098485947,
0.06150431931018829,
0.00582159822806716,
-0.01982317492365837,
-0.03339190408587456,
-0.0005417803185991943,
-0.015694841742515564,
-0.03770601376891136,
-0.01990978792309761,
-0.06278643012046814,
0.032642778009176254,
-0.006942113395780325,
0.10348217189311981,
-0.01421149168163538,
-0.001715737278573215,
-0.03411990404129028,
0.043514832854270935,
0.0075502945110201836,
-0.03205447271466255,
-0.059546250849962234,
-0.0015850345371291041,
-0.004403376951813698,
0.03409072756767273,
0.014599175192415714,
0.005128736142069101,
-0.016317317262291908,
-0.04352821782231331,
0.002417672658339143,
-0.05080890655517578,
-0.04354999214410782,
-0.03334963321685791,
0.004821658134460449,
-0.008731295354664326,
-0.0338301844894886,
0.029346851631999016,
0.10487149655818939,
0.0052217161282896996,
0.029826445505023003,
0.008204406127333641,
0.03637244924902916,
0.010868779383599758,
-0.015462933108210564,
-0.05449236184358597,
-0.04495680704712868,
-0.006190635729581118,
0.025701850652694702,
0.01194037962704897,
0.03168350085616112,
0.018268512561917305,
-0.0756465271115303,
0.02652122639119625,
-0.03423059359192848,
-0.0015534581616520882,
-0.0038288624491542578,
0.0302229393273592,
-0.021958626806735992,
-0.022886406630277634,
0.09164156019687653,
-0.017925487831234932,
0.03035799041390419,
0.030469262972474098,
0.04965253546833992,
-0.029594535008072853,
0.025927478447556496,
0.03158535808324814,
0.001902364776469767,
0.037647321820259094,
-0.04415306821465492,
0.09746237099170685,
-0.00462262611836195,
-0.0303972028195858,
0.02999141626060009,
0.02670213207602501,
-0.023375364020466805,
0.05199745297431946,
0.014837679453194141,
-0.044801898300647736,
-0.02951069362461567,
-0.052066557109355927,
-0.027092712000012398,
0.06280147284269333,
-0.013859748840332031,
-0.25805073976516724,
0.04584343358874321,
0.032070908695459366,
0.04584589600563049,
-0.007510868366807699,
0.015444468706846237,
0.015081442892551422,
-0.06840001791715622,
-0.014440104365348816,
-0.01918812468647957,
0.03800979256629944,
0.06131595000624657,
0.03546791523694992,
0.019476579502224922,
0.014218988828361034,
0.006779334973543882,
0.03268160670995712,
0.008082768879830837,
0.008263910189270973,
-0.006820676848292351,
0.06639965623617172,
-0.028298430144786835,
0.19570891559123993,
0.03908641263842583,
0.034137435257434845,
0.017266467213630676,
-0.02762729488313198,
-0.004531623795628548,
0.03197450935840607,
-0.03229662403464317,
-0.024037837982177734,
0.02178146317601204,
0.04809066280722618,
0.026991426944732666,
0.023849917575716972,
-0.013610976748168468,
0.006917663849890232,
0.03834051638841629,
0.02746056206524372,
-0.03519037738442421,
0.0192563533782959,
0.019554218277335167,
-0.015141086652874947,
0.01828659512102604,
0.07302180677652359,
-0.023261137306690216,
-0.008985636755824089,
0.010486993007361889,
-0.057642340660095215,
0.025612475350499153,
-0.019370894879102707,
-0.042560987174510956,
-0.03972426801919937,
-0.004170113243162632,
0.03639394789934158,
0.04734908789396286,
0.03425748646259308,
-0.013597891665995121,
0.024128960445523262,
0.01700707897543907,
-0.0033530464861541986,
0.006630640011280775,
0.07599309086799622,
0.01960902288556099,
0.02342349849641323
] | [
0.023580415174365044,
0.0300789512693882,
0.02229362353682518,
0.05047677457332611,
0.000763978692702949,
0.025707509368658066,
-0.027134090662002563,
-0.011226356029510498,
0.010792579501867294,
-0.0253197830170393,
-0.03041153959929943,
0.011748788878321648,
0.030725181102752686,
0.029691025614738464,
0.017958583310246468,
0.012618170119822025,
0.015423058532178402,
-0.0007449301774613559,
0.02438574656844139,
-0.01887047477066517,
-0.04077788442373276,
-0.03809697553515434,
0.01571466028690338,
-0.029869336634874344,
-0.03405558690428734,
0.011491718702018261,
-0.023546049371361732,
-0.0073497057892382145,
0.032141849398612976,
-0.11280737817287445,
-0.014534766785800457,
-0.023387540131807327,
-0.028564896434545517,
0.008873327635228634,
-0.034346554428339005,
-0.021124862134456635,
0.014254153706133366,
0.007237972691655159,
0.024583764374256134,
0.031100355088710785,
0.017911048606038094,
-0.011472356505692005,
-0.017788849771022797,
0.00025276088854297996,
0.025248751044273376,
-0.020428285002708435,
-0.03587622195482254,
-0.02874593995511532,
0.005171759985387325,
-0.02831227518618107,
-0.041702307760715485,
-0.031967684626579285,
-0.00548635283485055,
-0.014172548428177834,
0.037661362439394,
-0.009732160717248917,
-0.025521453469991684,
-0.03321373835206032,
-0.017255118116736412,
-0.03339315205812454,
0.04145023971796036,
-0.0012451793299987912,
-0.06830937415361404,
-0.021502504125237465,
-0.009084206074476242,
-0.006206769961863756,
-0.011482136324048042,
0.023779112845659256,
0.01202442217618227,
0.010715101845562458,
-0.03668693080544472,
0.031185857951641083,
-0.06273902207612991,
-0.023165708407759666,
-0.012353130616247654,
0.0026182394940406084,
0.013949868269264698,
-0.024501631036400795,
-0.012317256070673466,
-0.0162151250988245,
-0.019606230780482292,
-0.0012036985717713833,
-0.00719812698662281,
-0.014882108196616173,
-0.01591748185455799,
-0.021673982962965965,
0.003075940767303109,
-0.02240050956606865,
0.029103733599185944,
-0.009737680666148663,
-0.031276218593120575,
0.001210355549119413,
0.014103242196142673,
-0.004317420069128275,
-0.08152347803115845,
0.023171668872237206,
-0.0037833310198038816,
-0.0265272855758667,
0.019442783668637276,
0.8216055631637573,
0.010760342702269554,
0.03605083376169205,
-0.016988730058073997,
0.010836035944521427,
-0.0021873568184673786,
0.035030558705329895,
0.002536423970013857,
0.0230087973177433,
-0.011467481963336468,
-0.006718614138662815,
-0.0031054080463945866,
0.022964850068092346,
0.0038886419497430325,
0.02092977985739708,
-0.017146026715636253,
0.042457208037376404,
-0.013815323822200298,
-0.0006028846255503595,
-0.03992406278848648,
0.01526960451155901,
-0.011095416732132435,
0.045531392097473145,
0.024679701775312424,
-0.01005952712148428,
-0.002800579182803631,
-0.1959165632724762,
0.004599995445460081,
-7.115265101475398e-33,
0.09280579537153244,
0.02059457264840603,
0.02953508123755455,
-0.023730304092168808,
0.025599291548132896,
0.036294497549533844,
-0.006391818635165691,
0.009537303820252419,
-0.01766512170433998,
-0.030949408188462257,
-0.0042999517172575,
0.0032187378965318203,
0.013167498633265495,
-0.05330207943916321,
0.03643960505723953,
-0.006234770640730858,
-0.010841389186680317,
0.036848872900009155,
0.0021703524980694056,
0.005822972394526005,
-0.010536542162299156,
0.042229972779750824,
-0.03266453742980957,
0.06540652364492416,
0.018238496035337448,
0.0666692927479744,
-0.0025485188234597445,
0.007089782971888781,
-0.01985589973628521,
-0.04250770062208176,
-0.03441622480750084,
0.03480871394276619,
-0.025762159377336502,
-0.02384176477789879,
0.014221434481441975,
-0.038581620901823044,
-0.040380656719207764,
0.002149659674614668,
-0.025793224573135376,
-0.0602155476808548,
-0.03269103914499283,
-0.007267057429999113,
-0.042228542268276215,
-0.04049880802631378,
-0.051415640860795975,
-0.0019399721641093493,
0.0034314270596951246,
0.003015549387782812,
-0.02854939177632332,
0.018885288387537003,
0.013004416599869728,
0.003116103122010827,
-0.013070879504084587,
0.01197073608636856,
-0.025890955701470375,
0.004331585951149464,
0.024221455678343773,
0.03011241741478443,
-0.011094644665718079,
0.005990404635667801,
0.044131409376859665,
-0.020590202882885933,
-0.002642538398504257,
0.05687018483877182,
0.043202292174100876,
0.006720369681715965,
-0.0113129997625947,
-0.04329649358987808,
0.038029707968235016,
0.03623119369149208,
-0.03800027817487717,
0.07142739742994308,
-0.027655823156237602,
-0.01260586641728878,
0.038483258336782455,
-0.04174114018678665,
-0.021329887211322784,
-0.015119344927370548,
0.011101162992417812,
0.059356383979320526,
-0.04094081372022629,
0.0009423879673704505,
0.00917852483689785,
-0.056850772351026535,
0.017946599051356316,
-0.03044871985912323,
0.030781958252191544,
0.028184648603200912,
-0.004522028379142284,
0.009560947306454182,
0.05556938052177429,
0.013867381028831005,
-0.012157490476965904,
-0.025896353647112846,
-0.008667129091918468,
6.957443964617967e-33,
0.010385427623987198,
0.01660170778632164,
-0.015023250132799149,
0.017241433262825012,
0.035291556268930435,
-0.02508859895169735,
0.02482917159795761,
0.014566101133823395,
-0.050655581057071686,
0.04724135994911194,
0.002088318346068263,
-0.011248494498431683,
0.012818103656172752,
0.0021435630042105913,
0.06519197672605515,
-0.010314257815480232,
0.006400126963853836,
-0.04930325597524643,
-0.001028532860800624,
0.026403464376926422,
0.015623630955815315,
0.015999892726540565,
-0.0234460961073637,
0.016197003424167633,
0.040032338351011276,
0.03312902897596359,
0.02071979083120823,
-0.022711491212248802,
-0.029242003336548805,
0.0023542167618870735,
-0.0182152409106493,
-0.026272660121321678,
-0.03026123158633709,
-0.022300846874713898,
-0.0023858279455453157,
0.029306985437870026,
0.003864105325192213,
-0.0003278511867392808,
0.03667086735367775,
-0.003004605183377862,
0.025645965710282326,
0.042529746890068054,
-0.020620910450816154,
0.06374665349721909,
0.011143878102302551,
0.014919750392436981,
-0.019485775381326675,
0.004879937972873449,
0.025660797953605652,
0.014279088005423546,
0.013209007680416107,
-0.008425679057836533,
-0.012247197329998016,
0.0037586309481412172,
0.009871039539575577,
-0.026728423312306404,
-0.01754825748503208,
0.029583072289824486,
0.00880909338593483,
0.015715118497610092,
-0.016586482524871826,
0.004703601356595755,
-0.001369694247841835,
0.06538932025432587,
-0.01224411278963089,
-0.02913084253668785,
-0.024067239835858345,
-0.00423602806404233,
-0.0022522294893860817,
-0.019403431564569473,
-0.015385597944259644,
0.0030569799710065126,
-0.01949743553996086,
0.04006975144147873,
0.017059803009033203,
-0.03477493301033974,
-0.022522691637277603,
0.028852300718426704,
0.006142331752926111,
0.0017763422802090645,
-0.006720320787280798,
0.022850675508379936,
0.045309558510780334,
0.018816377967596054,
0.004522484727203846,
0.029057011008262634,
-0.017972232773900032,
0.030179496854543686,
0.013700946234166622,
0.011071385815739632,
0.024177562445402145,
-0.02361580915749073,
0.006471212953329086,
0.03907518833875656,
-0.011118176393210888,
-1.278859329545412e-8,
-0.03950965031981468,
0.01970025710761547,
-0.0018421425484120846,
0.001204594736918807,
0.04198634997010231,
0.018680542707443237,
-0.0016406876966357231,
-0.004244907759130001,
-0.024950724095106125,
0.0012961748288944364,
0.014661974273622036,
-0.014294513501226902,
-0.005566180218011141,
-0.0007134241750463843,
0.04242544248700142,
-0.05566626414656639,
-0.0011621926678344607,
-0.03859684616327286,
0.019646091386675835,
0.0138912508264184,
0.028923101723194122,
0.0038522419054061174,
-0.044862814247608185,
0.012041973881423473,
0.009861854836344719,
-0.021385179832577705,
0.023155467584729195,
-0.07185191661119461,
0.01355716772377491,
-0.04013838246464729,
0.010941274464130402,
-0.010156531818211079,
-0.0056837559677660465,
0.0024037950206547976,
-0.02444443665444851,
-0.051437463611364365,
0.030059143900871277,
0.01895458996295929,
0.017416825518012047,
0.02008264884352684,
-0.003964786417782307,
-0.008279061876237392,
-0.02340056374669075,
-0.021595152094960213,
-0.03308425471186638,
0.03322654590010643,
-0.02137891761958599,
-0.014543980360031128,
0.019467562437057495,
-0.009891727939248085,
-0.021418899297714233,
-0.03868205472826958,
0.024814685806632042,
0.021358199417591095,
0.024592621251940727,
0.01705114170908928,
0.016229284927248955,
-0.037178944796323776,
-0.011582935228943825,
-0.05274004861712456,
0.03316853940486908,
-0.000711731263436377,
-0.014468436129391193,
-0.02621409110724926
] | neo4j-specific-relationship-vs-generic-relationship-property | https://markhneedham.com/blog/2015/12/13/neo4j-specific-relationship-vs-generic-relationship-property |
false | 2012-03-20 06:53:18 | Scala: Counting number of inversions (via merge sort) for an unsorted collection | [
"scala",
"algo-class"
] | [
"Scala"
] | The first programming questions of https://www.coursera.org/algo/class/index[algo-class] requires you to calculate the number of inversions it would take using merge sort to sort a collection in ascending order.
I found quite http://www.cp.eng.chula.ac.th/~piak/teaching/algo/algo2008/count-inv.htm[a nice explanation here too]:
____
Finding "similarity" between two rankings. Given a sequence of n numbers 1..n (assume all numbers are distinct). Define a measure that tells us how far this list is from being in ascending order. The value should be 0 if a_1 < a_2 < \... < a_n and should be higher as the list is more "out of order". e.g. 2 4 1 3 5 1 2 3 4 5 The sequence 2, 4, 1, 3, 5 has three inversions (2,1), (4,1), (4,3).
____
The simple/naive way of solving this problem is to iterate through the collection in two loops and compare each value and its current index with the others, looking for ones which are not in the right order.
I wrote the following Ruby code which seems to do the job:
[source,ruby]
----
def number_of_inversions(arr)
count = 0
arr.each_with_index do |item_a, index_a|
arr.each_with_index do |item_b, index_b|
if index_b >= index_a && item_a > item_b
count +=1
end
end
end
count
end
----
[source,text]
----
>> number_of_inversions [6,5,4,3,2,1]
=> 15
----
That works fine for small collections but since we're effectively doing nested for loops it actually takes O(n²) time which means that it pretty much kills my machine on the sample data set of 100,000 numbers.
An O(n log(n)) solution is explained in the lectures which involves recursively splitting the collection in half (like in merge sort) and then counting how many elements remain in the left collection when we select an item from the right collection since this will tell us how many positions/inversions out of place that element is.
e.g. if we're trying to work out how many inversions in the collection [1,3,5,2,4,6] we eventually end up merging [1,3,5] and [2,4,6]
* Our first iteration puts '1' from the left collection into the new array.
* The second iteration puts '2' from the right collection into the new array and there are two elements left in the left collection ('3' and '5') so we have 2 inversions (3,2 and 5,2).
* Our third iteration puts '3' from the left collection into the new array.
* Our fourth iteration puts '4' from the right collection into the new array and there is one element left in the left collection ('5') so we have 1 inversion (5,4)
* Our fifth iteration puts '5' from the left collection and the sixth puts '6' from the right collection in.
The number of inversions for that example is therefore 3.
My colleague https://twitter.com/#!/anagri[Amir] and I decided to try and write some Scala code to do this and ended up with the following adapted merge sort:
[source,scala]
----
import io.Source
object MSort {
def main(args:Array[String]) {
val fileWithNumbers = "/Users/mneedham/Documents/algo-class/IntegerArray.txt"
val inversions: BigInt = numberOfInversions(Source.fromFile(new java.io.File(fileWithNumbers)).getLines().map(Integer.parseInt).toList)
println(inversions)
}
def numberOfInversions(collection: List[Int]): BigInt = {
var count: BigInt = 0
def inversionsInner(innerCollection: List[Int]): List[Int] = {
def merge(left: List[Int], right: List[Int]): Stream[Int] = (left, right) match {
case (x :: xs, y :: ys) if x < y=> { Stream.cons(x, merge(xs, right)) }
case (x :: xs, y :: ys) => { count = count + left.length; Stream.cons(y, merge(left, ys)) }
case _ => if (left.isEmpty) right.toStream else left.toStream
}
val n = innerCollection.length / 2
if (n == 0) innerCollection
else {
val (lowerHalf, upperHalf) = innerCollection splitAt n
merge(inversionsInner(lowerHalf), inversionsInner(upperHalf)).toList
}
}
inversionsInner(collection)
count
}
}
----
The interesting line is number 15 where we are going to select a value from the right collection and therefore increment our count by the number of items left in the left collection.
It works but it's a bit annoying that we had to use a 'var' to keep track of the count since that's not really idiomatic Scala.
I've been trying to find a way of passing the count around as an accumulator and returning it at the end but really struggled to get the code to compile when I started doing that and seemed to make the code a lot more complicated than it is now.
I'm sure there is a way to do it but I can't see it at the moment!
Since the mutation is reasonably well encapsulated I'm not sure whether it really matters that much but it's always interesting an interesting exercise to try and write code which doesn't mutate state so if anyone can see a good way to do it let me know. | null | null | [
-0.024580202996730804,
-0.02256462723016739,
-0.010309246368706226,
0.04425967112183571,
0.054665133357048035,
0.018301760777831078,
0.019886290654540062,
0.02722139097750187,
-0.005219869781285524,
-0.020588582381606102,
0.0072488803416490555,
0.0044014169834554195,
-0.07243843376636505,
0.031180186197161674,
-0.002755077090114355,
0.08309870213270187,
0.0743834525346756,
-0.03306456282734871,
0.011282348074018955,
-0.004169952590018511,
0.012814627960324287,
0.05107612907886505,
-0.0008739631739445031,
0.016466310247778893,
0.016482491046190262,
-0.00999870989471674,
0.005677360575646162,
0.009660953655838966,
-0.06299592554569244,
0.0017779706977307796,
0.02690415270626545,
-0.023137355223298073,
-0.0031518645118921995,
0.012336453422904015,
0.021612025797367096,
-0.02179143764078617,
0.0017768905963748693,
0.012162689119577408,
0.008178945630788803,
0.014018365181982517,
-0.02665330283343792,
0.008743483573198318,
-0.025668306276202202,
0.004914021585136652,
-0.03796743229031563,
0.01598476432263851,
-0.06972245126962662,
0.0098887849599123,
0.008830305188894272,
0.02960903011262417,
-0.06533078849315643,
0.03187229856848717,
0.009146583266556263,
-0.010497932322323322,
-0.024446312338113785,
0.0707954540848732,
-0.00928523950278759,
-0.0557459220290184,
0.03080572932958603,
-0.036862049251794815,
0.021685585379600525,
-0.012013078667223454,
0.008415007032454014,
0.017502309754490852,
0.027752306312322617,
-0.03990001976490021,
-0.006952087394893169,
0.05343836918473244,
-0.037082768976688385,
-0.010800165124237537,
-0.017993399873375893,
0.0016627057921141386,
-0.015431944280862808,
0.004566460382193327,
-0.01848641037940979,
-0.043301668018102646,
-0.019850967451930046,
0.0736415833234787,
0.004172937944531441,
0.05083653703331947,
-0.05560021474957466,
0.03378773853182793,
0.030225291848182678,
0.039808470755815506,
0.030012939125299454,
-0.032438840717077255,
-0.07304051518440247,
0.008879728615283966,
-0.06227334588766098,
0.0486423559486866,
0.009375760331749916,
-0.07255791127681732,
-0.010603314265608788,
0.02389179915189743,
-0.032501593232154846,
-0.015187771059572697,
-0.0034821974113583565,
-0.012083770707249641,
-0.030132757499814034,
-0.0070420848205685616,
-0.032836295664310455,
-0.027595261111855507,
0.04823111742734909,
-0.0012857464607805014,
-0.06531132012605667,
-0.0030653851572424173,
-0.010314657352864742,
-0.0034981542266905308,
0.008723297156393528,
-0.007307794410735369,
-0.07839792966842651,
0.01014002040028572,
-0.04408331960439682,
0.02800985425710678,
-0.0913231298327446,
0.06044137850403786,
-0.004217168316245079,
-0.017278162762522697,
-0.006745817139744759,
0.02627061866223812,
0.04825890436768532,
0.01702289655804634,
-0.0007473546429537237,
0.0675584226846695,
0.0004668432811740786,
0.006506503559648991,
0.0017164595192298293,
0.05190426856279373,
-0.03145355358719826,
-0.06593048572540283,
-0.029663145542144775,
0.046269871294498444,
0.0036892718635499477,
-0.00491460133343935,
-0.020183270797133446,
-0.02759246900677681,
-0.06711122393608093,
0.0335034541785717,
0.06895158439874649,
0.04871862009167671,
-0.01483980193734169,
-0.052072923630476,
0.01849181391298771,
-0.024153560400009155,
0.015176749788224697,
-0.01337464340031147,
-0.007227102294564247,
-0.02132481150329113,
0.007787463720887899,
0.017371483147144318,
0.0007603539270348847,
0.04679396376013756,
0.009438719600439072,
-0.0557435117661953,
0.012439485639333725,
0.08795924484729767,
0.012519934214651585,
0.02783041074872017,
0.015273639932274818,
0.007450413890182972,
0.0221960861235857,
0.02245115116238594,
0.007471318356692791,
0.03896583616733551,
0.011331307701766491,
0.01392269041389227,
-0.011448203586041927,
0.08588869124650955,
-0.032189372926950455,
-0.01976964622735977,
-0.05788964405655861,
-0.02030305564403534,
0.05466511845588684,
-0.02246643230319023,
-0.02884509600698948,
0.019618012011051178,
0.062264375388622284,
0.026526333764195442,
0.047685861587524414,
-0.040539685636758804,
-0.06733617931604385,
0.005484953057020903,
-0.024540791288018227,
0.03250795975327492,
0.023405857384204865,
-0.007483223918825388,
0.0784500241279602,
0.042615413665771484,
0.028586314991116524,
0.01798144541680813,
-0.06695418059825897,
-0.06898078322410583,
-0.010261548683047295,
-0.017776496708393097,
0.06355243176221848,
-0.016849687322974205,
-0.016834590584039688,
0.04779396951198578,
-0.013942233286798,
0.03352275863289833,
0.0265330970287323,
-0.006582724861800671,
0.013616267591714859,
-0.03982982411980629,
-0.029350118711590767,
0.059557829052209854,
0.034110892564058304,
-0.0348116010427475,
-0.03265814110636711,
0.012846733443439007,
-0.00370984198525548,
-0.02507064677774906,
0.007625531405210495,
-0.016640689224004745,
0.050228871405124664,
0.05714317038655281,
0.03809566795825958,
-0.04176465421915054,
0.03171812742948532,
-0.05454190820455551,
0.03304392099380493,
0.021828873082995415,
0.006524338386952877,
-0.01567085087299347,
0.002645055530592799,
0.11492182314395905,
0.06578835099935532,
-0.02095692604780197,
-0.03310451656579971,
0.01646270602941513,
0.039127618074417114,
-0.061776742339134216,
0.005316103808581829,
0.0072670974768698215,
0.006497679743915796,
0.009633528999984264,
-0.04506430774927139,
-0.02574317529797554,
0.037237443029880524,
-0.03433355316519737,
-0.04719255864620209,
0.056824974715709686,
-0.040727127343416214,
0.07151045650243759,
0.059597305953502655,
-0.03881672024726868,
0.018982041627168655,
-0.0384412482380867,
-0.056191712617874146,
0.01924927346408367,
0.005402662791311741,
-0.0045741829089820385,
0.03456277400255203,
-0.035586513578891754,
-0.02781280130147934,
-0.012385754846036434,
-0.005619535688310862,
0.010441656224429607,
0.043932732194662094,
0.04765095189213753,
-0.011284583248198032,
0.0688161849975586,
0.003870063927024603,
-0.014463376253843307,
-0.01589994877576828,
-0.05530611053109169,
-0.046004295349121094,
-0.01646469347178936,
0.00821754988282919,
-0.0015163052594289184,
0.041075777262449265,
0.015326758846640587,
0.024325471371412277,
-0.007933960296213627,
-0.002220837865024805,
-0.011683846823871136,
0.03823407366871834,
-0.00970727950334549,
-0.02006411924958229,
-0.020835500210523605,
-0.027514779940247536,
0.05763830989599228,
-0.03659970685839653,
-0.027028212323784828,
-0.008400838822126389,
-0.05345015600323677,
0.0773923397064209,
-0.07593417167663574,
-0.02081579715013504,
0.01504090242087841,
0.027994442731142044,
0.048959407955408096,
-0.03403180092573166,
-0.023731576278805733,
0.07056532800197601,
0.017890779301524162,
0.01804267056286335,
0.024342648684978485,
0.029238009825348854,
0.04149964451789856,
-0.02766197733581066,
-0.027223015204072,
0.057414460927248,
0.02364502288401127,
-0.028899872675538063,
-0.059651829302310944,
0.012086453847587109,
0.020890071988105774,
-0.2789456844329834,
0.031154785305261612,
-0.03054426796734333,
-0.03526097163558006,
0.02688898704946041,
-0.024230612441897392,
0.012047898955643177,
-0.02780614234507084,
-0.0007025533705018461,
0.02931007370352745,
-0.029176883399486542,
-0.020170247182250023,
-0.027917522937059402,
0.06004412844777107,
0.011778807267546654,
0.0411202535033226,
-0.004624343477189541,
-0.0364142470061779,
-0.026604807004332542,
0.06758154928684235,
-0.0034562619403004646,
-0.05640944838523865,
-0.022506913170218468,
0.06961829960346222,
0.005142956972122192,
0.07489416748285294,
-0.0852629542350769,
-0.0013859471073374152,
-0.043057337403297424,
-0.01249887328594923,
0.015233196318149567,
-0.002017463557422161,
0.0008662437903694808,
-0.009345948696136475,
-0.01848992332816124,
-0.06651875376701355,
0.03377038985490799,
0.002338428283110261,
-0.020199228078126907,
0.03393726795911789,
-0.05763794854283333,
-0.03765391185879707,
-0.008763962425291538,
0.037108976393938065,
0.07317737489938736,
-0.005401737056672573,
-0.026365751400589943,
-0.019601790234446526,
-0.024446938186883926,
0.05594158545136452,
-0.02381748892366886,
-0.02198163978755474,
-0.010233649052679539,
0.03260323032736778,
-0.02818872407078743,
-0.01463191956281662,
-0.028371747583150864,
0.024303872138261795,
-0.03747113421559334,
-0.017155226320028305,
-0.03271106258034706,
-0.042389463633298874,
0.012495382688939571,
-0.05193314328789711,
-0.046077705919742584,
-0.06016385182738304,
-0.054606784135103226,
0.03902551159262657,
0.05928827449679375,
-0.010745465755462646,
-0.027590854093432426,
0.010845353826880455,
-0.03218784183263779,
-0.10082089155912399,
-0.036699987947940826,
0.022263390943408012,
-0.019860340282320976,
0.0037241883110255003,
0.0042486940510571,
0.04984709620475769,
-0.0645999014377594,
-0.06554480642080307,
0.0495932474732399,
0.007067369297146797,
0.00787400733679533,
-0.027443189173936844,
-0.01366434246301651,
-0.01730983890593052,
0.015567632392048836,
0.0005913313943892717,
0.05213003605604172,
-0.0097776735201478,
0.00010257404210278764,
-0.014489986933767796,
0.03982750326395035,
0.03341682255268097,
0.02376742474734783,
0.018448829650878906,
0.022789934650063515,
0.04817766323685646,
0.021548060700297356,
-0.06337877362966537,
0.04361754283308983,
-0.013507293537259102,
-0.005514534655958414,
0.006178583949804306,
-0.03137882053852081,
0.018809743225574493,
0.04336768016219139,
0.008948964066803455,
-0.01783197931945324,
-0.06846548616886139,
0.046903904527425766,
-0.028385818004608154,
-0.0206239502876997,
-0.008729171007871628,
0.009511825628578663,
0.032729972153902054,
0.009663364849984646,
0.0004758443683385849,
-0.07352583855390549,
0.013169092126190662,
0.0012497020652517676,
-0.03628798574209213,
-0.07292386144399643,
-0.0393066368997097,
-0.018101956695318222,
-0.01660734973847866,
0.0003902506723534316,
0.03512127324938774,
-0.017466360703110695,
0.028157947584986687,
-0.007494466379284859,
-0.025355514138936996,
0.031152738258242607,
-0.014345206320285797,
-0.033389169722795486,
-0.019105134531855583,
-0.009301991201937199,
0.008659915998578072,
0.0275618564337492,
-0.020521745085716248,
-0.010096057318150997,
0.04851089417934418,
0.0347527451813221,
0.040431760251522064,
0.04656275734305382,
-0.03222983330488205,
0.017454367130994797,
0.009928058832883835,
-0.010201879777014256,
-0.041034068912267685,
0.0379929393529892,
-0.04126867279410362,
-0.002319731516763568,
0.0006435101968236268,
0.020925119519233704,
-0.019826488569378853,
-0.060920633375644684,
-0.044123969972133636,
0.03174925595521927,
-0.029371213167905807,
-0.0011594434035941958,
-0.033315934240818024,
-0.005419421009719372,
0.05492039769887924,
-0.02345832623541355,
0.0331462025642395,
-0.005754503421485424,
0.0028607030399143696,
0.01098296232521534,
-0.0050176456570625305,
-0.024219684302806854,
0.009717592038214207,
0.027510710060596466,
-0.027283789590001106,
0.02415035292506218,
0.01092374324798584,
0.027410073205828667,
0.013004782609641552,
-0.009894412010908127,
-0.021530114114284515,
-0.008914059028029442,
0.004200017545372248,
0.028742052614688873,
0.016863707453012466,
-0.009537856094539165,
-0.004642515443265438,
-0.01748299039900303,
-0.04428557679057121,
-0.044972293078899384,
-0.021682240068912506,
-0.011788792908191681,
0.023379603400826454,
-0.04025706276297569,
-0.0820939913392067,
0.014535319060087204,
0.030622871592640877,
-0.011496949009597301,
-0.004610578529536724,
0.009963331744074821,
-0.010885595344007015,
-0.03289322927594185,
-0.02955031581223011,
0.0772608071565628,
-0.0534297376871109,
-0.004058421589434147,
-0.010827922262251377,
0.007983582094311714,
0.0033145046327263117,
0.024534061551094055,
-0.05890350043773651,
-0.020185140892863274,
0.0004485448298510164,
0.018275076523423195,
-0.01900370977818966,
-0.026409294456243515,
-0.027822058647871017,
0.020010923966765404,
-0.035500168800354004,
0.008897011168301105,
-0.01262504979968071,
0.0012260726653039455,
-0.009849551133811474,
-0.019153401255607605,
0.002443307312205434,
-0.013406092301011086,
-0.008874078281223774,
0.01990055851638317,
-0.02279669977724552,
0.04181002452969551,
-0.04439839720726013,
0.050917450338602066,
0.01962682604789734,
-0.004105295520275831,
-0.006179243791848421,
-0.05203086510300636,
0.002838598098605871,
0.007725540082901716,
0.04061445966362953,
0.00659100292250514,
-0.024513516575098038,
-0.0031435536220669746,
0.017909618094563484,
-0.028269469738006592,
-0.007003352977335453,
0.014800423756241798,
-0.05238749086856842,
0.028567446395754814,
0.04226531833410263,
0.004311020020395517,
0.01167130284011364,
0.010273740626871586,
-0.01038010697811842,
0.05933797359466553,
-0.05260912701487541,
-0.014624509029090405,
-0.05262312665581703,
-0.06068525090813637,
0.01708940975368023,
-0.0241568423807621,
0.024251462891697884,
-0.03151952102780342,
0.015322661958634853,
0.056490927934646606,
0.06401558220386505,
0.05000310018658638,
-0.004492294974625111,
0.044083159416913986,
-0.042116597294807434,
0.025951001793146133,
-0.09024108946323395,
-0.016416965052485466,
0.017893828451633453,
0.027919327840209007,
0.011453893966972828,
-0.012415517121553421,
-0.0375172458589077,
0.0013972294982522726,
-0.04529500752687454,
-0.0037894807755947113,
0.016553234308958054,
0.005747918505221605,
-0.018379122018814087,
0.016802804544568062,
-0.060833461582660675,
0.003634071908891201,
0.03334015980362892,
-0.01778796873986721,
0.031051339581608772,
-0.04359219968318939,
0.04795508831739426,
0.01186392642557621,
0.02022469975054264,
-0.0199537705630064,
-0.026167334988713264,
0.043643463402986526,
0.03067893348634243,
0.006268154364079237,
0.07222289592027664,
-0.030771680176258087,
0.0296554546803236,
0.019873369485139847,
0.019322708249092102,
-0.0020812510047107935,
0.02960575558245182,
-0.003068039193749428,
-0.02225879207253456,
0.04491540417075157,
0.010929903946816921,
-0.01457626186311245,
-0.052280593663454056,
0.061007700860500336,
0.03445984795689583,
-0.02305329218506813,
-0.04375113174319267,
0.024426816031336784,
-0.06448636949062347,
-0.013978198170661926,
-0.021061180159449577,
-0.0028301794081926346,
-0.050607942044734955,
0.049690939486026764,
0.008355513215065002,
0.01993081532418728,
0.06901910156011581,
-0.009275545366108418,
-0.014301927760243416,
0.01626746356487274,
0.08800452202558517,
0.08747648447751999,
0.07335282862186432,
-0.016998497769236565,
0.05298982560634613,
-0.021614864468574524,
-0.022606031969189644,
0.0006663397653028369,
-0.05256620794534683,
0.015199811197817326,
-0.012479595839977264,
0.023551136255264282,
0.05865185335278511,
-0.026966333389282227,
0.057065047323703766,
-0.03448508679866791,
0.00471873814240098,
0.017715977504849434,
0.004962538834661245,
0.017623404040932655,
0.07498171925544739,
-0.003952378872781992,
0.05641690641641617,
-0.02829838916659355,
-0.0581035315990448,
0.018162105232477188,
0.028744975104928017,
-0.014029593206942081,
0.018535997718572617,
-0.015407769940793514,
0.00665283203125,
-0.007166282273828983,
0.03835791349411011,
0.06470966339111328,
-0.02515602484345436,
-0.026856563985347748,
-0.007774414028972387,
0.006609945558011532,
-0.0019191177561879158,
-0.020979097113013268,
0.005770513787865639,
-0.04563263803720474,
-0.008500843308866024,
-0.026772968471050262,
0.00329982815310359,
0.017236197367310524,
-0.01762280985713005,
0.024159908294677734,
-0.025373920798301697,
0.03471054509282112,
0.059984881430864334,
0.011971956118941307,
-0.016003185883164406,
-0.04327983409166336,
-0.05141456425189972,
-0.039566561579704285,
-0.059335894882678986,
0.03781462460756302,
0.03561145067214966,
-0.0006125489016994834,
-0.011970176361501217,
-0.0038193867076188326,
0.000994601403363049,
-0.01562606915831566,
0.05044962465763092,
-0.048564642667770386,
-0.022625146433711052,
-0.007118442095816135,
0.01685955375432968,
0.04417205601930618,
0.04278028383851051,
0.05066651478409767,
-0.017822695896029472,
0.0028223684057593346,
-0.02942134067416191,
-0.005430232733488083,
0.04275140166282654,
0.04112257435917854,
-0.014161440543830395,
-0.08174054324626923,
0.005391961894929409,
0.01365111954510212,
-0.02967642806470394,
-0.06284326314926147,
-0.021363969892263412,
0.04401088505983353,
-0.03222716972231865,
0.03571818023920059,
-0.03175148367881775,
-0.03544588014483452,
-0.046386200934648514,
-0.01173589937388897,
-0.01289831381291151,
-0.012740117497742176,
0.03695892170071602,
-0.0412566252052784,
0.0694294348359108,
-0.007172764278948307,
-0.012787772342562675,
-0.03653450682759285,
0.021617582067847252,
-0.025891205295920372,
0.015669791027903557,
-0.03149626404047012,
-0.020709093660116196,
-0.03446340933442116,
-0.06554242223501205,
-0.029779871925711632,
0.008769435808062553,
-0.02321157604455948,
-0.02702971361577511,
0.0038424311205744743,
0.029866844415664673,
0.0019231970654800534,
0.046512670814991,
-0.040196094661951065,
0.033496227115392685,
-0.02814224548637867,
-0.02078755386173725,
0.020540442317724228,
0.026523122563958168,
-0.025602303445339203,
0.013481497764587402,
0.02399655617773533,
-0.0253706444054842,
0.0090718362480402,
-0.031279101967811584,
0.05002832040190697,
0.04127331078052521,
0.005235808435827494,
0.0019101416692137718
] | [
-0.09021912515163422,
-0.025044605135917664,
-0.0481196828186512,
0.007239512167870998,
0.02203650400042534,
-0.037133391946554184,
-0.008782751858234406,
-0.0143798952922225,
0.029008548706769943,
-0.01835831254720688,
0.018253011628985405,
-0.0518508143723011,
0.004930165596306324,
0.022610284388065338,
0.039804305881261826,
-0.041343726217746735,
-0.05308208614587784,
-0.003507127519696951,
-0.042210061103105545,
-0.0051762936636805534,
0.023265980184078217,
0.0007675207452848554,
-0.04002039134502411,
-0.04965602234005928,
-0.002820359542965889,
0.09473340958356857,
0.02026592381298542,
-0.031015804037451744,
-0.03099784068763256,
-0.23139652609825134,
-0.02255096286535263,
-0.02163149230182171,
0.0856705904006958,
-0.02665804699063301,
-0.002974035916849971,
0.029889212921261787,
-0.0036370805464684963,
0.04247652739286423,
-0.029642580077052116,
0.03922365978360176,
0.028878802433609962,
0.035042669624090195,
-0.06001400575041771,
-0.04063092917203903,
0.009104152210056782,
0.025803031399846077,
-0.014416856691241264,
0.00479256734251976,
-0.0032547067385166883,
0.020537612959742546,
-0.017987556755542755,
0.0031808342318981886,
-0.04455933719873428,
0.009489379823207855,
0.011131998151540756,
0.04055338352918625,
0.014302447438240051,
0.025210827589035034,
0.0028760379645973444,
0.019375517964363098,
0.03641282021999359,
-0.005906751379370689,
-0.1484093815088272,
0.04062855988740921,
0.01806127466261387,
0.00017118468531407416,
0.007326372899115086,
-0.04456722363829613,
-0.04668547213077545,
0.0869729295372963,
0.008200270123779774,
-0.019433794543147087,
0.001052377512678504,
0.04757627472281456,
-0.021259628236293793,
-0.012330682016909122,
-0.013936449773609638,
-0.008457676507532597,
0.05075926333665848,
-0.040446359664201736,
-0.022520404309034348,
-0.025342855602502823,
-0.026188990101218224,
-0.0360456258058548,
0.0239674411714077,
-0.028066234663128853,
0.018668657168745995,
0.027592215687036514,
0.008041398599743843,
0.015899600461125374,
0.059020284563302994,
0.014417107217013836,
0.00007102660310920328,
0.02589322067797184,
-0.030954651534557343,
-0.021849939599633217,
-0.03908190131187439,
0.014226945117115974,
0.004990966059267521,
0.4182468056678772,
0.01944155804812908,
0.03403835743665695,
0.04051036015152931,
0.027178537100553513,
-0.020382631570100784,
0.010957582853734493,
0.003905974794179201,
-0.03995301201939583,
-0.0040272921323776245,
-0.05261370167136192,
0.016502708196640015,
-0.038478244096040726,
0.10102495551109314,
-0.06174984946846962,
0.0034738907124847174,
0.013624454848468304,
0.04231558367609978,
0.042052026838064194,
0.021572064608335495,
0.01667982153594494,
-0.05238424241542816,
0.003828006563708186,
0.02647063508629799,
0.008426460437476635,
0.015637869015336037,
0.014358790591359138,
0.017735732719302177,
0.058151133358478546,
0.030807578936219215,
0.07013975083827972,
0.01549714058637619,
-0.06829540431499481,
-0.11303891986608505,
0.0010589571902528405,
-0.03838725760579109,
0.02036840282380581,
0.05167686194181442,
-0.017129043117165565,
0.04861816391348839,
0.02113012969493866,
0.026124382391572,
-0.030956482514739037,
0.04498780891299248,
0.008591781370341778,
-0.005311267450451851,
0.13828517496585846,
-0.03317965194582939,
-0.02497750148177147,
-0.048839930444955826,
-0.058592550456523895,
-0.03177697956562042,
-0.0012460816651582718,
-0.02039026841521263,
-0.07461975514888763,
-0.01768353208899498,
0.009339021518826485,
0.05996318906545639,
-0.017591461539268494,
-0.02797200158238411,
0.0014108478790149093,
-0.05805087462067604,
0.005438526626676321,
-0.03838912770152092,
0.04399492219090462,
0.06181544065475464,
-0.05911456048488617,
0.005746471229940653,
0.000050738297431962565,
-0.03079954721033573,
-0.08328273892402649,
0.019416091963648796,
0.02595709078013897,
-0.04198784381151199,
0.027319641783833504,
0.0912848562002182,
-0.01606668531894684,
-0.008204782381653786,
-0.04205406457185745,
0.0588604100048542,
-0.007524512242525816,
0.02235976606607437,
0.007073669228702784,
-0.02620541863143444,
0.009358416311442852,
-0.013528391718864441,
-0.02973131835460663,
-0.062226973474025726,
-0.01421232707798481,
-0.02391388826072216,
0.0013172042090445757,
-0.025007665157318115,
-0.05716957896947861,
-0.0462079755961895,
0.0789385661482811,
-0.03712617978453636,
-0.05385338515043259,
0.010311314836144447,
0.030693817883729935,
-0.017850825563073158,
0.01787674054503441,
-0.014711895026266575,
0.03196988254785538,
-0.0007223946158774197,
0.00670892558991909,
-0.04248867183923721,
0.04682900011539459,
0.03412146121263504,
-0.0033585024066269398,
0.06391159445047379,
0.00273920432664454,
-0.012184171006083488,
-0.02599605731666088,
-0.05718042701482773,
0.01446688175201416,
0.01599958725273609,
-0.03987986594438553,
-0.0024872238282114267,
-0.005010541062802076,
0.004438834264874458,
0.02522609382867813,
0.0031813178211450577,
-0.13285575807094574,
0.0317583829164505,
-0.34585481882095337,
-0.028974756598472595,
0.011571485549211502,
-0.0007158262305893004,
0.019993329420685768,
-0.07483135163784027,
0.027608295902609825,
-0.008609570562839508,
-0.01811934821307659,
0.04125874117016792,
0.039430297911167145,
0.009738000109791756,
-0.022255035117268562,
-0.050600212067365646,
-0.03652713820338249,
0.04435918852686882,
-0.04754885658621788,
-0.029562944546341896,
-0.024802979081869125,
-0.013825993984937668,
0.00004923199594486505,
0.0014553437940776348,
0.020569730550050735,
-0.06487350910902023,
-0.015763644129037857,
-0.035814277827739716,
0.10383902490139008,
-0.007838258519768715,
0.05127110332250595,
-0.01821501925587654,
0.02743927761912346,
-0.007126690354198217,
-0.000644301122520119,
0.03312959522008896,
-0.011486699804663658,
-0.018820498138666153,
0.0003856700495816767,
0.021138150244951248,
0.004803776275366545,
-0.006042817607522011,
-0.07364585995674133,
0.039554085582494736,
-0.02689984068274498,
-0.023515276610851288,
-0.04311298578977585,
0.04891210421919823,
-0.0359388068318367,
-0.04087932035326958,
0.05196896195411682,
0.04798716679215431,
0.00012313539627939463,
0.007587193977087736,
0.022379161790013313,
-0.01983875222504139,
-0.01260029524564743,
-0.03138112649321556,
-0.055228058248758316,
-0.05303211137652397,
0.006029275245964527,
-0.005865488201379776,
-0.0175715871155262,
0.0051526278257369995,
0.05212210863828659,
-0.03869751840829849,
-0.0458344891667366,
-0.006438000593334436,
-0.009336907416582108,
0.020033175125718117,
0.014430106617510319,
-0.007418751250952482,
-0.0010210558539256454,
0.06070903688669205,
0.008574254810810089,
0.004479067400097847,
-0.0016778458375483751,
0.061916694045066833,
0.02348809689283371,
0.06427717208862305,
0.03437751904129982,
0.010944279842078686,
0.01224147342145443,
-0.051530469208955765,
0.05290354788303375,
0.016657989472150803,
0.028113845735788345,
0.059851109981536865,
0.04877392202615738,
0.024847112596035004,
0.020525407046079636,
0.04957948252558708,
-0.008923066779971123,
0.005065946374088526,
-0.01755010336637497,
-0.006265102420002222,
0.049671027809381485,
0.02300211228430271,
-0.24534358084201813,
0.03422015160322189,
0.02407459355890751,
0.06428287923336029,
0.01883031241595745,
0.019028780981898308,
0.04690628498792648,
-0.034361500293016434,
0.04778432101011276,
-0.02832166478037834,
0.001183033105917275,
0.07703543454408646,
0.043864067643880844,
-0.02122505195438862,
0.0073104361072182655,
-0.016496822237968445,
0.025006864219903946,
-0.05987550690770149,
0.035361941903829575,
0.007474228739738464,
0.03282990679144859,
0.00896892137825489,
0.18645422160625458,
0.032298870384693146,
0.003015441820025444,
-0.004279610700905323,
-0.011775351129472256,
0.025663744658231735,
0.014741631224751472,
0.013468826189637184,
0.012301001697778702,
-0.005716924089938402,
0.06420964002609253,
-0.023246483877301216,
0.06174095347523689,
0.020948482677340508,
0.023294640704989433,
0.06246838718652725,
0.04265559837222099,
-0.022855263203382492,
-0.018062381073832512,
-0.044279079884290695,
-0.09866679459810257,
0.011869640089571476,
0.10006009042263031,
-0.02058219350874424,
-0.03939543664455414,
-0.02286386489868164,
-0.053361378610134125,
0.004870379809290171,
-0.042252685874700546,
-0.03233180195093155,
0.00536201661452651,
-0.023302091285586357,
-0.007454254664480686,
0.06063886731863022,
-0.05510420724749565,
0.03463023155927658,
-0.01417414378374815,
-0.011892815120518208,
-0.0018852727953344584,
-0.032488398253917694,
0.12660819292068481,
-0.008562872186303139,
0.01527721993625164
] | [
-0.0026372233405709267,
0.008406467735767365,
-0.014432945288717747,
0.045982372015714645,
-0.048933591693639755,
-0.03792238608002663,
-0.047736238688230515,
-0.025841696187853813,
-0.010004128329455853,
0.009029923938214779,
-0.007869399152696133,
0.04182727262377739,
0.0016572270542383194,
-0.039236344397068024,
-0.02439115382730961,
0.053055066615343094,
-0.014235470443964005,
0.014654404483735561,
0.03360118344426155,
-0.008062864653766155,
-0.027628397569060326,
0.058573052287101746,
0.021748213097453117,
0.010054370388388634,
-0.04725315049290657,
0.03455973044037819,
-0.0512852817773819,
-0.004756665322929621,
0.010290381498634815,
-0.14528027176856995,
-0.01175301056355238,
0.0072163427248597145,
0.030872266739606857,
0.029466848820447922,
-0.057546135038137436,
-0.03464146703481674,
-0.012519072741270065,
-0.006389709189534187,
-0.011549917049705982,
0.023520592600107193,
-0.008368929848074913,
0.03917790576815605,
0.02417885512113571,
0.020819824188947678,
0.004085572436451912,
-0.003238499164581299,
-0.026684323325753212,
-0.006072566844522953,
0.023053046315908432,
0.022511513903737068,
-0.027040798217058182,
0.010930478572845459,
-0.01419269759207964,
0.0018226230749860406,
-0.027242422103881836,
-0.009067204780876637,
-0.00011420305236242712,
-0.06557471305131912,
-0.0015731959138065577,
0.0063662114553153515,
0.02332255057990551,
0.041989102959632874,
-0.05944341421127319,
-0.02802533656358719,
0.0038738707080483437,
-0.043069981038570404,
0.014113541692495346,
0.006383218802511692,
-0.02637697197496891,
-0.009188119322061539,
-0.01181293185800314,
-0.010476588271558285,
-0.02378787100315094,
-0.012668728828430176,
0.01962435618042946,
-0.001374815939925611,
0.02581024542450905,
-0.07706214487552643,
-0.024048278108239174,
0.002875042613595724,
-0.01585374027490616,
-0.009891212917864323,
0.002041967585682869,
-0.0007043836521916091,
-0.006141933612525463,
-0.05916057154536247,
-0.004507372155785561,
0.02182856760919094,
-0.007980330847203732,
-0.027311159297823906,
-0.0251026414334774,
-0.007901063188910484,
-0.018938636407256126,
0.035157978534698486,
-0.04579313099384308,
0.027301033958792686,
0.008458386175334454,
0.008061788976192474,
-0.027726920321583748,
0.8264411687850952,
-0.0016472912393510342,
0.04285076633095741,
0.019780799746513367,
-0.03962086886167526,
-0.01735297590494156,
0.006213923450559378,
0.01954745687544346,
-0.015000415965914726,
0.00789998471736908,
-0.07432512193918228,
0.0501163974404335,
-0.02535785548388958,
0.03215915709733963,
-0.00918410811573267,
0.03524492681026459,
0.020762261003255844,
0.044907525181770325,
0.005420692730695009,
0.012680759653449059,
0.02090071514248848,
0.014710173942148685,
0.03227301687002182,
0.03747672215104103,
0.004335273057222366,
0.045936666429042816,
-0.15555638074874878,
-0.014703835360705853,
-7.353835353394628e-33,
0.031130069866776466,
-0.015532068908214569,
-0.004753815475851297,
0.0025947480462491512,
0.014827420003712177,
0.02635575272142887,
0.014271371997892857,
0.0011513872304931283,
-0.008006343618035316,
-0.016956167295575142,
0.04633120447397232,
0.02100040391087532,
0.02664790116250515,
-0.024511750787496567,
0.02286784164607525,
-0.03446951508522034,
0.01088623981922865,
0.035293128341436386,
-0.00411091186106205,
-0.004998438060283661,
0.019578387960791588,
0.008851956576108932,
-0.011399573646485806,
0.013667505234479904,
0.01514291949570179,
0.013797753490507603,
-0.004895057994872332,
-0.015508262440562248,
0.001233550370670855,
-0.04381409287452698,
-0.020493606105446815,
0.044601671397686005,
-0.018295247107744217,
-0.04883722588419914,
0.023377949371933937,
-0.017251310870051384,
-0.004874476697295904,
0.0029696852434426546,
0.0028015878051519394,
-0.0606868639588356,
-0.004149567801505327,
0.0041208816692233086,
-0.02135302498936653,
-0.011551548726856709,
0.0058646672405302525,
0.017888713628053665,
0.0012919137952849269,
0.05944138020277023,
0.028805280104279518,
0.03614407405257225,
0.002418295945972204,
-0.020234763622283936,
-0.01912200264632702,
-0.010552540421485901,
-0.020990286022424698,
0.017418690025806427,
0.022136004641652107,
0.04314708337187767,
0.024299778044223785,
0.019648810848593712,
-0.04027600958943367,
0.006727651692926884,
-0.014903683215379715,
0.0379016287624836,
-0.009458466432988644,
-0.02140774205327034,
0.024793630465865135,
0.003926284145563841,
0.03109009563922882,
0.032945167273283005,
-0.0277645792812109,
0.0016908947145566344,
-0.03944879025220871,
0.013455493375658989,
-0.016368605196475983,
-0.023897765204310417,
-0.011528990231454372,
-0.001147134113125503,
-0.005421750713139772,
0.060142479836940765,
0.006764118559658527,
-0.014652851969003677,
0.0016350744990631938,
-0.03724728897213936,
-0.0289914608001709,
0.03979112207889557,
0.035392675548791885,
0.025119174271821976,
-0.032382141798734665,
-0.0012607199605554342,
0.017859967425465584,
0.028071729466319084,
-0.023954931646585464,
-0.029371339827775955,
0.03051006607711315,
6.914778662470903e-33,
-0.007206388749182224,
-0.008654552511870861,
-0.021590858697891235,
0.01790904998779297,
0.028754476457834244,
-0.03626493364572525,
0.04801362752914429,
0.008639794774353504,
-0.05061345547437668,
0.003284073667600751,
-0.000626144465059042,
-0.0071192351169884205,
0.0002660356694832444,
-0.025616144761443138,
0.05710213631391525,
-0.00992893148213625,
0.006657435558736324,
0.011033236980438232,
0.01792724058032036,
0.02896491251885891,
-0.01469714567065239,
0.04032375290989876,
0.028332533314824104,
0.022891830652952194,
-0.015618635341525078,
0.008212404325604439,
-0.03064856119453907,
-0.00023633740784134716,
0.011951018124818802,
0.0045762984082102776,
0.014055101200938225,
-0.0033304670359939337,
0.03331870213150978,
-0.0009422393632121384,
-0.03742844611406326,
0.06004045903682709,
0.012625561095774174,
-0.017894836142659187,
-0.011539852246642113,
0.005538207478821278,
0.032010458409786224,
0.016682660207152367,
-0.014737769961357117,
-0.005017019342631102,
0.024319937452673912,
-0.018431907519698143,
-0.015768812969326973,
0.004453849513083696,
0.024062005802989006,
-0.027095332741737366,
-0.015185542404651642,
0.012883350253105164,
0.014883246272802353,
0.023112857714295387,
0.03503520414233208,
0.000578509469050914,
-0.04402174428105354,
-0.007066070567816496,
-0.007234583143144846,
0.03462086617946625,
-0.026162397116422653,
0.02756919339299202,
0.0008467155275866389,
-0.021299146115779877,
-0.04034873843193054,
0.006823117379099131,
-0.0336148776113987,
-0.02444382943212986,
-0.028984343633055687,
0.04482431337237358,
-0.037991002202034,
-0.008852673694491386,
0.008990857750177383,
-0.00013298502017278224,
-0.035407550632953644,
0.0071885124780237675,
-0.020296404138207436,
0.04076573625206947,
-0.050319280475378036,
-0.0027212733402848244,
0.005426180548965931,
-0.01489674299955368,
0.000941888487432152,
0.02342814765870571,
-0.021028093993663788,
-0.018756335601210594,
0.026781786233186722,
-0.002093942603096366,
0.002645408269017935,
0.006996447686105967,
-0.0025828974321484566,
-0.04522450640797615,
0.03200642764568329,
-0.02528984844684601,
0.001748418202623725,
-1.2807086946509116e-8,
-0.03932911530137062,
0.027718987315893173,
0.0075956364162266254,
0.05244821310043335,
0.02605275809764862,
0.049660105258226395,
-0.028843000531196594,
-0.007793818134814501,
-0.03555192053318024,
0.013382619246840477,
0.049990277737379074,
-0.008761437609791756,
0.011837850324809551,
0.04389120265841484,
0.038724519312381744,
-0.014508131891489029,
-0.010409892536699772,
-0.020100336521863937,
0.03543650358915329,
0.0013824753696098924,
0.0037031774409115314,
0.010027443058788776,
0.02240747958421707,
0.017932940274477005,
-0.01681669056415558,
0.02373913861811161,
-0.0007018708274699748,
-0.08382765203714371,
0.0387771911919117,
-0.0036832569167017937,
0.02413349039852619,
-0.020153138786554337,
0.0003388053155504167,
-0.007453322410583496,
0.00002739959927566815,
-0.0406205989420414,
0.004531318787485361,
0.002773348009213805,
-0.00014077084779273719,
-0.011151130311191082,
-0.03831987828016281,
-0.0045800162479281425,
-0.01806262694299221,
-0.03024044819176197,
-0.007530141156166792,
-0.05294893682003021,
-0.025746045634150505,
-0.0294034481048584,
0.053568776696920395,
-0.05454785004258156,
0.00857879500836134,
-0.02411237172782421,
0.00588944973424077,
0.03130285069346428,
0.048645637929439545,
0.014471776783466339,
0.012011884711682796,
-0.023602979257702827,
-0.04937056824564934,
0.0026364268269389868,
0.03439225256443024,
-0.02347748726606369,
-0.05158942937850952,
-0.0079805264249444
] | scala-counting-number-of-inversions-via-merge-sort-for-an-unsorted-collection | https://markhneedham.com/blog/2012/03/20/scala-counting-number-of-inversions-via-merge-sort-for-an-unsorted-collection |
false | 2012-03-20 23:36:03 | Haskell: Chaining functions to find the middle value in a collection | [
"haskell"
] | [
"Haskell"
] | I've been playing around with writing merge sort in Haskell and eventually ended up with the following function:
[source,haskell]
----
msort :: [Int] -> [Int]
msort unsorted =
let n = floor (fromIntegral(length unsorted) / 2)
in
if n == 0 then unsorted
else
let (left, right) = splitAt n unsorted
in merge (msort left) (msort right)
where
merge [] right = right
merge left [] = left
merge left@(x:xs) right@(y:ys) = if x < y then x : merge xs right else y : merge left ys
----
The 3rd line was annoying me as it has way too many brackets on it and I was fairly sure that it should be possible to just combine the functions http://www.markhneedham.com/blog/2009/01/12/f-partial-function-application-with-the-function-composition-operator/[like I learnt to do in F# a few years ago].
It's pretty easy to do that for the first two functions 'length' and 'fromIntegral' which we can do like this:
[source,haskell]
----
middle = fromIntegral . length
----
The third line now reads like this:
[source,haskell]
----
let n = floor ((middle unsorted) / 2)
----
It's a slight improvement but still not that great.
The problem with working out how to chain the division bit is that our value needs to be passed as the first argument to '/' so we can't do the following...
[source,haskell]
----
middle = ((/) 2) . fromIntegral . length
----
...since that divides 2 by the length of our collection rather than the other way around!
[source,haskell]
----
> middle [1,2,3,4,5,6]
0.3333333333333333
----
Instead we want to create an anonymous function around the '/' function and then apply floor:
[source,haskell]
----
middle :: [Int] -> Int
middle = floor . (\y -> y / 2) . fromIntegral . length
----
And merge sort now looks like this:
[source,haskell]
----
msort :: [Int] -> [Int]
msort unsorted =
let n = middle unsorted
in
if n == 0 then unsorted
else
let (left, right) = splitAt n unsorted
in merge (msort left) (msort right)
where
merge [] right = right
merge left [] = left
merge left@(x:xs) right@(y:ys) = if x < y then x : merge xs right else y : merge left ys
----
Which I think is pretty neat! | null | null | [
-0.014312369748950005,
-0.005356702022254467,
-0.026165656745433807,
0.022426234558224678,
0.04200059920549393,
0.03593426197767258,
0.007905540987849236,
-0.003841955214738846,
-0.01726551540195942,
-0.01360378134995699,
-0.006831287872046232,
-0.01015452016144991,
-0.0775114968419075,
0.011863723397254944,
0.01951533369719982,
0.048171695321798325,
0.06462253630161285,
-0.05106740817427635,
0.0014896923676133156,
0.007576506584882736,
0.019247673451900482,
0.06817308813333511,
-0.015529206022620201,
0.01688409224152565,
0.01676938869059086,
0.003480181097984314,
0.016542840749025345,
0.015291150659322739,
-0.03172226622700691,
-0.00981853250414133,
0.04285040870308876,
0.008869911544024944,
-0.004704572726041079,
-0.04648822173476219,
0.025327200070023537,
-0.03889136761426926,
0.01956631988286972,
-0.005224842578172684,
-0.0025600192602723837,
0.017430800944566727,
-0.043414656072854996,
0.011093690991401672,
-0.013549013063311577,
0.0026407139375805855,
-0.05415621027350426,
-0.007190543692559004,
-0.057768989354372025,
-0.0039456733502447605,
-0.04446105286478996,
0.00692129647359252,
-0.0468774177134037,
0.007423703558743,
-0.01768070086836815,
-0.013211609795689583,
-0.01318756677210331,
0.06404755264520645,
0.006113060284405947,
-0.07264185696840286,
0.054050132632255554,
-0.025854624807834625,
0.003671706188470125,
-0.03597167879343033,
0.012518089264631271,
0.031041184440255165,
0.023613667115569115,
-0.02286207489669323,
-0.03008156642317772,
0.02448851428925991,
-0.036119189113378525,
-0.01379017997533083,
-0.02178839035332203,
-0.0035596603993326426,
-0.013340110890567303,
-0.006361850071698427,
-0.030694440007209778,
-0.06468594074249268,
-0.000007347404334723251,
0.076475128531456,
0.007843594998121262,
0.01929781585931778,
-0.020977837964892387,
0.03477177768945694,
0.018277227878570557,
0.04718709737062454,
0.018309634178876877,
-0.010868092998862267,
-0.05800766125321388,
0.027160711586475372,
-0.036727480590343475,
0.05120879039168358,
-0.03696412965655327,
-0.07859187573194504,
-0.006081705447286367,
-0.0046357703395187855,
0.04816337302327156,
0.007035735994577408,
0.0022361562587320805,
-0.004548322409391403,
0.020421667024493217,
-0.012912245467305183,
-0.04200077801942825,
-0.011995547451078892,
0.026653382927179337,
-0.004066352732479572,
-0.04157425835728645,
-0.0025449080858379602,
-0.02473885752260685,
-0.020223505795001984,
0.02705596573650837,
-0.01842838153243065,
-0.032341741025447845,
0.002929763402789831,
0.009544583968818188,
0.0287167951464653,
-0.06692272424697876,
0.0410330668091774,
0.013819335028529167,
0.003766487119719386,
0.012659993022680283,
0.029459450393915176,
0.045991457998752594,
0.015730826184153557,
-0.009846200235188007,
0.09065454453229904,
0.039942946285009384,
0.03584003075957298,
-0.001517154392786324,
0.06522858142852783,
-0.023615926504135132,
-0.07240244746208191,
-0.028076734393835068,
0.06048789992928505,
-0.01756962016224861,
-0.020828772336244583,
-0.026875080540776253,
-0.013888916932046413,
-0.04233517125248909,
0.02562662400305271,
0.03221649304032326,
0.014108988456428051,
0.016975518316030502,
-0.031609125435352325,
0.045659005641937256,
-0.05716162919998169,
0.01054515689611435,
-0.01264883391559124,
-0.008163739927113056,
-0.010540247894823551,
0.010831352323293686,
0.02469947747886181,
0.025097662582993507,
0.04845303297042847,
0.03907869756221771,
-0.02966989204287529,
0.02954353578388691,
0.09083373844623566,
0.017874067649245262,
0.014024095609784126,
-0.0013354861875995994,
0.016127439215779305,
0.028085242956876755,
0.035268258303403854,
0.01610725373029709,
0.024246839806437492,
0.010507102124392986,
0.008820762857794762,
-0.028311965987086296,
0.03602464124560356,
-0.0236701350659132,
-0.030937517061829567,
-0.0327569805085659,
-0.009468931704759598,
0.050173841416835785,
-0.010737380012869835,
0.0007268828339874744,
-0.012637277133762836,
0.08633296191692352,
0.022926315665245056,
0.04070506989955902,
-0.000483344541862607,
-0.061177320778369904,
0.010590528137981892,
-0.01350281573832035,
0.0417897067964077,
0.004091563634574413,
0.01469666138291359,
0.05041851848363876,
0.028336051851511,
-0.0127038499340415,
0.009883049875497818,
-0.043294571340084076,
-0.0872657522559166,
-0.0337996706366539,
-0.006255086045712233,
0.06121429055929184,
-0.012822587043046951,
-0.03732546418905258,
0.0553637370467186,
-0.008957328274846077,
0.030020903795957565,
0.006711250636726618,
-0.009561621583998203,
0.01872311532497406,
-0.022699126973748207,
-0.02191162295639515,
0.07017188519239426,
0.030185943469405174,
0.029611526057124138,
-0.02765648625791073,
0.0064383139833807945,
0.022042082622647285,
-0.00419385451823473,
0.036813441663980484,
-0.029428988695144653,
0.06809312105178833,
0.07106728106737137,
0.006272485479712486,
-0.03404514491558075,
0.03259310871362686,
-0.03620916232466698,
0.05177046358585358,
0.04460283741354942,
-0.000678165175486356,
-0.01951083354651928,
0.004075499251484871,
0.1182069331407547,
0.07049732655286789,
-0.044570282101631165,
-0.015846574679017067,
0.02212056890130043,
-0.016780804842710495,
-0.027768302708864212,
0.011444938369095325,
0.04094696417450905,
-0.0018331126775592566,
0.012143786065280437,
-0.0021950206719338894,
-0.007268053945153952,
0.010306073352694511,
-0.02058570086956024,
-0.037774134427309036,
0.07697440683841705,
0.010167823173105717,
0.0656738430261612,
-0.010535363107919693,
-0.04021521657705307,
0.002866711001843214,
-0.044114481657743454,
-0.016832632943987846,
0.01601232774555683,
0.03191167861223221,
-0.00807288009673357,
0.07347933948040009,
-0.03547835722565651,
-0.020643651485443115,
-0.009853462688624859,
-0.014134066179394722,
0.019067343324422836,
0.056465525180101395,
0.030678462237119675,
-0.013269972987473011,
0.03703463077545166,
0.00018674539751373231,
-0.03618897497653961,
-0.03824327141046524,
-0.04129056632518768,
-0.04977015033364296,
-0.0014753366122022271,
0.029962128028273582,
0.026644447818398476,
0.05156831815838814,
0.00354112614877522,
0.01712912507355213,
-0.02393682301044464,
-0.021846391260623932,
-0.02758845128118992,
0.01645353063941002,
-0.012298517860472202,
-0.04921019822359085,
-0.057695578783750534,
-0.03305215761065483,
0.07019315659999847,
-0.03169718384742737,
-0.01596236787736416,
-0.003550352295860648,
-0.016023119911551476,
0.057112861424684525,
-0.08880459517240524,
-0.01773616299033165,
0.0065971864387393,
0.040396127849817276,
0.028607193380594254,
-0.043426524847745895,
-0.007376311346888542,
0.07964782416820526,
0.023618856444954872,
0.037267472594976425,
0.04531358182430267,
0.009631523862481117,
0.038966044783592224,
0.003011369379237294,
0.013400082476437092,
0.052156854420900345,
-0.0011322827776893973,
-0.020627181977033615,
-0.04749111458659172,
-0.020087039098143578,
-0.007746057119220495,
-0.2691676914691925,
0.029150143265724182,
-0.034230440855026245,
-0.012494602240622044,
0.026314400136470795,
-0.07008225470781326,
-0.011610063724219799,
-0.03193753585219383,
-0.01152875553816557,
0.027045970782637596,
-0.041082292795181274,
-0.01282129343599081,
-0.019838858395814896,
0.06048435717821121,
0.0209987610578537,
0.009777265600860119,
-0.03750240430235863,
-0.040545959025621414,
0.013720969669520855,
0.06160028278827667,
-0.028870608657598495,
-0.07794100791215897,
0.00384480319917202,
0.03954167291522026,
0.033495888113975525,
0.038895562291145325,
-0.07017722725868225,
0.03340032324194908,
-0.05794047564268112,
-0.016322800889611244,
-0.05282079055905342,
0.018653059378266335,
-0.01235442515462637,
-0.023541856557130814,
-0.01287359930574894,
-0.025148583576083183,
0.019698070362210274,
-0.000030123408578219824,
0.01848682016134262,
0.057802457362413406,
-0.03201715275645256,
-0.03876328840851784,
0.014245073311030865,
-0.022362565621733665,
0.06675154715776443,
-0.029284752905368805,
-0.04939396306872368,
-0.012016934342682362,
-0.04947695881128311,
0.061172910034656525,
-0.017486870288848877,
-0.013751142658293247,
-0.0022179584484547377,
0.027189742773771286,
-0.03401067107915878,
-0.0071777720004320145,
-0.019276726990938187,
-0.027220768854022026,
-0.03490147367119789,
0.002586871851235628,
-0.03235522285103798,
-0.03536178171634674,
-0.007090653292834759,
-0.05124982073903084,
-0.011613203212618828,
-0.05668145418167114,
-0.08299744129180908,
0.005354683846235275,
0.053402334451675415,
-0.0023491578176617622,
0.013319190591573715,
-0.04305833578109741,
-0.014291679486632347,
-0.11106238514184952,
-0.06864748895168304,
-0.016897574067115784,
-0.04403788223862648,
-0.003084892639890313,
0.018666770309209824,
0.06593211740255356,
-0.03546702489256859,
-0.07549688220024109,
0.040376048535108566,
-0.0025700016412883997,
0.03550012782216072,
-0.010703472420573235,
-0.0023187061306089163,
-0.0015668164705857635,
-0.016270114108920097,
-0.02656075544655323,
0.044485531747341156,
-0.010887793265283108,
-0.002449145307764411,
-0.025386691093444824,
0.012597416527569294,
0.027980957180261612,
-0.02859090082347393,
0.013754768297076225,
0.021398521959781647,
0.011175470426678658,
0.03202461823821068,
-0.06128109619021416,
0.01835162751376629,
-0.019834168255329132,
-0.007238615304231644,
0.0034156774636358023,
-0.04607299715280533,
0.0208873488008976,
0.03258350118994713,
0.012786328792572021,
-0.02488650754094124,
-0.052284423261880875,
0.01528237946331501,
-0.07060468941926956,
-0.048788245767354965,
-0.02425392158329487,
-0.004956022836267948,
0.008000267669558525,
0.016460459679365158,
0.021088678389787674,
-0.07255733013153076,
-0.00572974281385541,
0.011339811608195305,
-0.019024793058633804,
-0.0471491776406765,
-0.027306227013468742,
-0.04611930996179581,
-0.015383003279566765,
0.03464507311582565,
0.046828966587781906,
-0.009093490429222584,
0.032021816819906235,
0.021265894174575806,
-0.0187691580504179,
0.032515786588191986,
-0.029422571882605553,
-0.025449244305491447,
-0.014759218320250511,
-0.03917406499385834,
-0.01023252122104168,
0.04235469177365303,
-0.010029029101133347,
0.0043114712461829185,
0.02486279048025608,
0.04020938277244568,
-0.0029173139482736588,
-0.002641315571963787,
-0.02397310920059681,
-0.01596335507929325,
0.03781016543507576,
-0.01703047938644886,
-0.0482306033372879,
0.022678792476654053,
-0.041811905801296234,
0.00007061845099087805,
0.007941788993775845,
0.01964077539741993,
-0.007432521786540747,
-0.06961680203676224,
-0.061216965317726135,
0.01962834782898426,
-0.015543057583272457,
-0.030442165210843086,
-0.039448078721761703,
0.003947164863348007,
0.046288639307022095,
-0.02354334108531475,
0.05342220515012741,
-0.04289238154888153,
0.008256694301962852,
0.011523036286234856,
0.01392976101487875,
-0.012502247467637062,
0.016566576436161995,
0.004301177337765694,
0.02027282863855362,
0.01710537075996399,
0.01145755685865879,
0.04116452485322952,
0.013224788010120392,
-0.028356408700346947,
-0.02906963974237442,
-0.007941244170069695,
0.007531967479735613,
0.03606284409761429,
0.02994304709136486,
0.006158852018415928,
0.013378191739320755,
-0.04289206117391586,
-0.044309791177511215,
-0.020148709416389465,
0.00479912431910634,
-0.03392715007066727,
0.037576910108327866,
-0.03561843931674957,
-0.07286301255226135,
-0.006789110135287046,
0.03991611301898956,
-0.011001406237483025,
-0.003656784538179636,
0.04719168692827225,
-0.004868184216320515,
-0.002880193293094635,
-0.009383580647408962,
0.0724274143576622,
-0.05989731103181839,
0.022066663950681686,
0.0037252716720104218,
0.008519863709807396,
0.03706127405166626,
0.02788211964070797,
-0.03693746030330658,
-0.01958233304321766,
-0.028829151764512062,
0.010875754058361053,
0.008163080550730228,
-0.01533086970448494,
-0.01749279908835888,
-0.0006939467857591808,
-0.030001210048794746,
-0.020117999985814095,
-0.013868898153305054,
-0.0009641253273002803,
-0.019347980618476868,
-0.033998940140008926,
0.004582829307764769,
-0.050405196845531464,
-0.0032699950970709324,
0.04684731736779213,
-0.029483264312148094,
0.037275154143571854,
-0.02728154882788658,
0.05017704889178276,
0.032083909958601,
-0.0038807918317615986,
-0.008329572156071663,
-0.08279205858707428,
-0.01804506964981556,
-0.05672721564769745,
0.05936526134610176,
0.004489507060497999,
-0.0015209086704999208,
0.0007386936340481043,
-0.000023810136553947814,
-0.06284814327955246,
0.011060057207942009,
0.015387463383376598,
-0.045604363083839417,
0.013241942040622234,
0.028347637504339218,
-0.05500927194952965,
0.021520597860217094,
0.0050439476035535336,
-0.010053956881165504,
0.03844815492630005,
-0.004428963176906109,
-0.03926863521337509,
-0.02765064314007759,
-0.039597783237695694,
0.011154942214488983,
-0.0466570109128952,
0.012782915495336056,
-0.026815829798579216,
0.030759138986468315,
0.0723145604133606,
0.04766443371772766,
0.043126996606588364,
-0.009310610592365265,
0.022314760833978653,
-0.03554245084524155,
0.009119564667344093,
-0.0780470073223114,
-0.030553031712770462,
0.0010286138858646154,
0.01228479202836752,
-0.027579914778470993,
-0.012131315656006336,
0.0025715981610119343,
0.036489974707365036,
-0.061413902789354324,
-0.004349735099822283,
0.04494534805417061,
0.013080053962767124,
0.03567727655172348,
0.02626918815076351,
-0.05084144324064255,
-0.0035525637213140726,
0.0003852403606288135,
0.005191535223275423,
0.018678270280361176,
-0.03402303159236908,
0.03683607652783394,
0.014474552124738693,
0.06263706088066101,
-0.011973856948316097,
-0.015697389841079712,
0.03479457274079323,
0.04064439609646797,
0.04634290561079979,
0.06813270598649979,
-0.019357312470674515,
0.016014907509088516,
0.0007495947065763175,
0.01677648350596428,
-0.027494607493281364,
0.0212275218218565,
-0.015341048128902912,
-0.039034124463796616,
0.03456500545144081,
0.004800250753760338,
-0.0011222134344279766,
-0.03824890777468681,
0.06071123480796814,
0.003265783656388521,
-0.012329223565757275,
-0.056188974529504776,
0.04115869104862213,
-0.06317177414894104,
0.027358705177903175,
-0.0211368165910244,
-0.005714946426451206,
-0.04644479230046272,
0.053876843303442,
0.007811366114765406,
-0.012940816581249237,
0.07189550995826721,
0.004787125159054995,
-0.0035925377160310745,
0.014798978343605995,
0.09789196401834488,
0.08162250369787216,
0.06662234663963318,
-0.03516913577914238,
0.047769367694854736,
-0.02379506640136242,
-0.05427061766386032,
0.014803986996412277,
-0.0335550531744957,
0.05065145343542099,
-0.011766628362238407,
0.04954126477241516,
0.09369710832834244,
-0.05336975306272507,
0.0572035051882267,
-0.0331844836473465,
0.02252642996609211,
0.02991487830877304,
0.0058482675813138485,
0.017692305147647858,
0.0763273760676384,
0.013763731345534325,
0.03991968184709549,
0.005429176613688469,
-0.04519030824303627,
0.019452396780252457,
0.01480548270046711,
-0.0007854349096305668,
-0.005210988689213991,
0.010634738020598888,
-0.001183579908683896,
0.03912287577986717,
0.03872641921043396,
0.055251553654670715,
-0.020548608154058456,
-0.014989438466727734,
-0.011526544578373432,
0.014828021638095379,
0.012208119034767151,
-0.04045017063617706,
-0.007825423032045364,
-0.048442527651786804,
0.0001572621549712494,
-0.010136419907212257,
-0.012562592513859272,
0.007927531376481056,
-0.025126973167061806,
0.05339627340435982,
-0.021502932533621788,
0.021264081820845604,
0.02041606418788433,
-0.015858223661780357,
-0.02741730399429798,
-0.043845195323228836,
-0.025957264006137848,
-0.05268731713294983,
-0.06930819898843765,
0.029571808874607086,
-0.0009238439379259944,
-0.024130886420607567,
-0.0277448371052742,
-0.01847989857196808,
0.005597416311502457,
-0.02150290086865425,
0.04883311316370964,
-0.0023606508038938046,
-0.028089219704270363,
0.009911561384797096,
0.007049075793474913,
0.026400860399007797,
0.03236570209264755,
0.035344455391168594,
0.007649827282875776,
0.00539912236854434,
-0.030027469620108604,
-0.027380922809243202,
0.04753076657652855,
0.0464576780796051,
-0.003813547547906637,
-0.06986155360937119,
0.01529215183109045,
0.026796506717801094,
0.010491443797945976,
-0.09013240039348602,
-0.019318217411637306,
0.028342876583337784,
-0.02394375577569008,
0.029498472809791565,
-0.037538450211286545,
-0.02597612701356411,
-0.03758280351758003,
-0.00028254344942979515,
0.007665364537388086,
0.009688996709883213,
0.03683946654200554,
-0.06338025629520416,
0.08460409939289093,
0.012424487620592117,
-0.02654704637825489,
-0.024919599294662476,
0.029940562322735786,
-0.06091661378741264,
0.0335228368639946,
-0.03250690922141075,
-0.02519841119647026,
-0.024294579401612282,
-0.05745488405227661,
-0.020578665658831596,
0.014176493510603905,
-0.023677261546254158,
-0.010301453061401844,
0.009974570944905281,
0.05400462448596954,
-0.0800042524933815,
0.06419235467910767,
-0.02658497355878353,
0.01878470741212368,
-0.027836764231324196,
-0.03723854571580887,
0.0022994333412498236,
0.052783772349357605,
0.02038491517305374,
-0.005587917286902666,
0.0467660129070282,
-0.017095668241381645,
0.004535029176622629,
-0.009197951294481754,
-0.005457406397908926,
0.021648401394486427,
-0.010679305531084538,
0.04192320629954338
] | [
-0.12809236347675323,
-0.03978639468550682,
-0.030329348519444466,
-0.008337583392858505,
0.0013901811325922608,
-0.024152372032403946,
-0.02879728190600872,
0.005170612595975399,
0.040158648043870926,
-0.017523638904094696,
0.03498149663209915,
-0.05546875670552254,
0.021853560581803322,
0.012945761904120445,
0.08236317336559296,
-0.005497596692293882,
-0.05023396387696266,
-0.0070297797210514545,
-0.052079711109399796,
-0.01680784486234188,
-0.000037304507713997737,
-0.019510023295879364,
-0.0730222687125206,
-0.0510905422270298,
0.02842959575355053,
0.059023741632699966,
0.013369870372116566,
-0.05752762034535408,
-0.009091613814234734,
-0.23103226721286774,
0.013748761266469955,
0.035979725420475006,
0.02874835953116417,
-0.0465962179005146,
0.004135731607675552,
0.021126428619027138,
0.012088026851415634,
0.022639773786067963,
-0.03321356698870659,
0.03857238218188286,
0.04286067932844162,
0.03133901208639145,
-0.03365093097090721,
-0.035221442580223083,
0.022205576300621033,
0.0015232451260089874,
-0.044597625732421875,
-0.009226030670106411,
-0.016266796737909317,
0.03152162954211235,
-0.04988155886530876,
-0.023930249735713005,
-0.013110660947859287,
0.0188247412443161,
0.010663213208317757,
0.05940563231706619,
0.04267549142241478,
0.08926406502723694,
0.01602395996451378,
0.02975880354642868,
0.0437471829354763,
-0.0004341932653915137,
-0.10261046886444092,
0.07262121140956879,
0.03143983706831932,
0.01682761125266552,
-0.03833254054188728,
-0.04775552451610565,
-0.04471694305539131,
0.11482064425945282,
0.0061659119091928005,
-0.005181458778679371,
-0.03443743661046028,
0.0716327354311943,
0.0060017844662070274,
-0.059274978935718536,
-0.017168089747428894,
-0.014016487635672092,
0.04754278436303139,
-0.0011922625126317143,
-0.06462190300226212,
-0.027552619576454163,
-0.03244979307055473,
0.0015839159023016691,
-0.015326718799769878,
0.010049761272966862,
-0.03886725381016731,
0.05109039321541786,
0.01997128129005432,
-0.021197432652115822,
0.037862472236156464,
-0.029543068259954453,
0.010640684515237808,
0.000745385535992682,
-0.042935825884342194,
0.008988658897578716,
-0.025673694908618927,
0.005581293720752001,
-0.0018039257265627384,
0.4002429246902466,
-0.03481142595410347,
0.01933635212481022,
0.04243452101945877,
0.010998978279531002,
-0.03493576869368553,
0.027306480333209038,
0.003922278992831707,
-0.039264753460884094,
0.0019853333942592144,
-0.05636029317975044,
-0.017786387354135513,
-0.032381996512413025,
0.09562215209007263,
-0.07911242544651031,
0.026252832263708115,
0.021681079640984535,
0.052457280457019806,
0.01633775234222412,
-0.0037818269338458776,
0.005896586459130049,
-0.0014254016568884254,
0.0012200104538351297,
-0.016532640904188156,
0.03413807973265648,
-0.011427721939980984,
0.003752713557332754,
0.013502595946192741,
0.03939894959330559,
0.04584314674139023,
0.057059578597545624,
0.05300259217619896,
-0.025868117809295654,
-0.037137504667043686,
-0.021612035110592842,
-0.02498771995306015,
0.00994281005114317,
0.03319728001952171,
-0.04805569350719452,
0.026281945407390594,
-0.0022832383401691914,
-0.00210657250136137,
-0.04331590235233307,
0.02948438748717308,
0.01149823609739542,
0.0030558707658201456,
0.13871362805366516,
-0.021995311602950096,
-0.044122543185949326,
-0.01945672556757927,
-0.019662825390696526,
-0.002166004152968526,
0.0060453093610703945,
0.0032532853074371815,
-0.07750820368528366,
0.021849632263183594,
0.012183230370283127,
0.04507959634065628,
-0.017346898093819618,
-0.09112945199012756,
0.025968587026000023,
-0.03972078859806061,
-0.014592140913009644,
-0.04126343876123428,
0.08129437267780304,
0.011714772321283817,
-0.06812438368797302,
-0.031997039914131165,
0.01587110571563244,
0.02394995465874672,
-0.09178999066352844,
0.005206002853810787,
0.00894215889275074,
-0.00891007762402296,
-0.002398144453763962,
0.060205210000276566,
-0.03148877993226051,
-0.03303946554660797,
-0.03212539106607437,
0.07024087011814117,
0.02979944832623005,
0.010121655650436878,
-0.001545341918244958,
-0.06267353147268295,
-0.0009172181016765535,
-0.02363618277013302,
-0.07804446667432785,
-0.07690320163965225,
-0.003285459242761135,
-0.011261563748121262,
-0.01155759021639824,
0.0004548046854324639,
0.0064958250150084496,
-0.058102693408727646,
0.06749638170003891,
-0.03813472390174866,
-0.053490590304136276,
0.006984882056713104,
0.021367987617850304,
-0.021896574646234512,
0.01763150654733181,
0.009016589261591434,
0.05927938595414162,
0.008038712665438652,
0.017930150032043457,
-0.09391287714242935,
0.0017717554001137614,
0.053558602929115295,
-0.0628696084022522,
0.07921934872865677,
0.03672894462943077,
0.004406568128615618,
-0.011343611404299736,
-0.014872681349515915,
0.01935473456978798,
0.046937331557273865,
-0.03593266382813454,
0.02904580533504486,
-0.006471649743616581,
0.018035221844911575,
0.019190840423107147,
-0.033620040863752365,
-0.05140659958124161,
-0.01632828637957573,
-0.3332732319831848,
-0.06915298104286194,
0.0009139938629232347,
-0.025083791464567184,
0.010975182987749577,
-0.07577817142009735,
-0.016038447618484497,
0.0018336416687816381,
-0.059648916125297546,
0.02462056837975979,
0.07417849451303482,
-0.002307384042069316,
-0.03092973493039608,
-0.08395357429981232,
0.004052977077662945,
0.017377160489559174,
-0.01703614369034767,
-0.023233139887452126,
-0.039329346269369125,
0.03765629976987839,
-0.012804917991161346,
0.015053910203278065,
-0.02938246726989746,
-0.0649709478020668,
-0.014676732942461967,
-0.03493761643767357,
0.11428439617156982,
-0.01697925105690956,
0.10641688853502274,
-0.021961655467748642,
0.03519130125641823,
-0.017574960365891457,
0.01438637264072895,
-0.025487631559371948,
-0.03056945838034153,
0.014195938594639301,
-0.005732870660722256,
-0.0440472811460495,
0.027959739789366722,
-0.021649478003382683,
-0.07421857118606567,
0.0054808626882731915,
-0.05339222028851509,
-0.03917617350816727,
0.015065631829202175,
0.0002885422727558762,
-0.02024165354669094,
-0.034190379083156586,
0.016660494729876518,
0.05644427239894867,
-0.01928696408867836,
-0.01426650770008564,
0.03217513859272003,
0.035744816064834595,
0.014204018749296665,
-0.005976618267595768,
-0.025940176099538803,
-0.04753776267170906,
0.017569031566381454,
-0.04428364336490631,
0.026227684691548347,
0.046808525919914246,
0.06496570259332657,
-0.025382068008184433,
-0.003399140201508999,
0.012936967425048351,
-0.005759292747825384,
-0.019166400656104088,
0.01997661404311657,
-0.028427574783563614,
-0.01678755320608616,
0.08641984313726425,
0.0005919127725064754,
0.009200399741530418,
0.03057240881025791,
0.0744025856256485,
-0.01915336400270462,
0.07944712042808533,
0.04042276740074158,
0.018641598522663116,
0.03833747282624245,
-0.03362685441970825,
0.0024256326723843813,
-0.027703771367669106,
-0.017034491524100304,
0.033028289675712585,
-0.005991825368255377,
0.03686540201306343,
0.02118130959570408,
0.015365218743681908,
-0.017444223165512085,
0.03387739509344101,
0.023211928084492683,
-0.015408342704176903,
0.04358723387122154,
-0.007765218149870634,
-0.2646133005619049,
0.058307625353336334,
0.039637524634599686,
0.015048271976411343,
-0.010206114500761032,
0.04072769731283188,
0.03680219128727913,
-0.056542348116636276,
-0.014206803403794765,
-0.010854934342205524,
0.0297298114746809,
0.08268523961305618,
0.04889841005206108,
0.014165966771543026,
0.02470235712826252,
-0.012237406335771084,
0.053786784410476685,
0.006566039752215147,
0.0004861446504946798,
0.04000713676214218,
0.0335041880607605,
0.010777220129966736,
0.18752247095108032,
0.002580309519544244,
0.0043105981312692165,
0.025340475142002106,
-0.02002403698861599,
0.019029559567570686,
0.06700922548770905,
0.029874907806515694,
-0.00262761814519763,
0.0249232929199934,
0.037642959505319595,
-0.027017593383789062,
0.035309236496686935,
-0.007515471428632736,
0.02588372677564621,
0.06895636767148972,
0.027521321550011635,
0.003015306079760194,
-0.01739090494811535,
0.005553634371608496,
-0.020866086706519127,
0.028226880356669426,
0.06145729869604111,
-0.0015616462333127856,
-0.030759405344724655,
-0.03106756880879402,
-0.048843782395124435,
0.01514050830155611,
-0.022845696657896042,
0.002952900482341647,
-0.003419883782044053,
-0.032490324229002,
-0.00040016655111685395,
0.029065575450658798,
0.004485871642827988,
-0.029640216380357742,
-0.027828460559248924,
0.017208222299814224,
0.028317561373114586,
-0.04574808478355408,
0.10228482633829117,
0.0002848705044016242,
0.02385578863322735
] | [
0.0015496733831241727,
0.004286236595362425,
-0.004190319217741489,
0.007513583637773991,
-0.012992196716368198,
-0.01683809608221054,
-0.011282401159405708,
0.029195062816143036,
-0.019856983795762062,
-0.009892914444208145,
-0.02906653843820095,
-0.007557995151728392,
0.03950090333819389,
-0.014856991358101368,
-0.018060864880681038,
0.013853984884917736,
0.02693355083465576,
0.03163677453994751,
-0.00037874121335335076,
-0.04991166293621063,
-0.03342638909816742,
0.04891268536448479,
-0.011617833748459816,
0.03726881369948387,
0.013059898279607296,
0.016318827867507935,
-0.054314590990543365,
0.008524114266037941,
0.010947666130959988,
-0.13433638215065002,
-0.022138535976409912,
0.003984457813203335,
0.04975324869155884,
0.027235591784119606,
-0.008628464303910732,
0.04605429992079735,
-0.0063769924454391,
0.001173724653199315,
0.001666767057031393,
-0.04205648601055145,
-0.0700073316693306,
0.01228902768343687,
0.04056720808148384,
-0.00901323463767767,
-0.015126420184969902,
0.013711465522646904,
-0.006951367482542992,
-0.022380199283361435,
-0.0003787116438616067,
0.040225956588983536,
-0.04602566361427307,
0.036678098142147064,
-0.00857086107134819,
0.05240875482559204,
0.019374148920178413,
0.017534364014863968,
-0.02637038193643093,
-0.07244204729795456,
-0.02593543380498886,
-0.03209422156214714,
-0.05343661829829216,
0.0445927195250988,
-0.06114897131919861,
-0.03215700760483742,
-0.0015632612630724907,
0.0068320706486701965,
0.009089075960218906,
-0.012666448950767517,
-0.00021138612646609545,
-0.02544507384300232,
0.014104412868618965,
0.010057722218334675,
-0.03838571161031723,
-0.024785051122307777,
-0.0035801830235868692,
0.002160091884434223,
0.05259685218334198,
-0.02841024287045002,
-0.0097828833386302,
-0.010097764432430267,
-0.027163198217749596,
-0.01240930613130331,
0.022338179871439934,
0.01971113495528698,
-0.009187878109514713,
-0.020058969035744667,
-0.033774763345718384,
0.03654636815190315,
0.01384804304689169,
-0.029672643169760704,
-0.0009665513061918318,
0.045264068990945816,
0.007606831379234791,
0.0018860037671402097,
-0.015012186951935291,
0.016646580770611763,
-0.05279075354337692,
-0.019083034247159958,
-0.021683622151613235,
0.799757182598114,
-0.051490914076566696,
0.031992919743061066,
0.00821749959141016,
-0.008396741934120655,
0.021361101418733597,
-0.02080663852393627,
-0.007388213183730841,
-0.011757716536521912,
0.020125605165958405,
-0.06576534360647202,
0.036327995359897614,
-0.04233970865607262,
0.05099627003073692,
0.03985218703746796,
-0.017387717962265015,
0.03212261572480202,
0.031904712319374084,
-0.00833332072943449,
0.006763189099729061,
-0.046194419264793396,
0.0393739715218544,
-0.013549975119531155,
-0.0010466836392879486,
0.06621142476797104,
0.052191995084285736,
-0.15740270912647247,
0.01353894080966711,
-7.426070950620596e-33,
0.0035564913414418697,
-0.009118088521063328,
0.016448913142085075,
0.01878657005727291,
0.05194002389907837,
0.023955561220645905,
0.04438193887472153,
-0.03489328548312187,
0.00003286193168605678,
0.0007891143904998899,
0.017753565683960915,
0.00013058572949375957,
-0.0033370533492416143,
-0.027355846017599106,
0.04613915830850601,
-0.030607128515839577,
0.03227159380912781,
0.028731947764754295,
-0.041004590690135956,
0.007606098428368568,
0.025312388315796852,
0.08419156074523926,
0.00020344405493233353,
0.021382370963692665,
-0.0013590260641649365,
0.03404654189944267,
-0.016666492447257042,
-0.030119990929961205,
0.049601320177316666,
-0.04200717434287071,
-0.03536694869399071,
0.05097751319408417,
-0.00632827403023839,
0.013610574416816235,
0.03752382472157478,
-0.025290396064519882,
-0.01667078025639057,
0.012440308928489685,
-0.005233617499470711,
0.007884090766310692,
-0.01396725419908762,
0.010611322708427906,
-0.006286282557994127,
-0.03860459104180336,
0.032151080667972565,
-0.04410751909017563,
0.020606407895684242,
0.038184188306331635,
0.04896879568696022,
0.04500520974397659,
0.02034788578748703,
0.03212612494826317,
0.015489599667489529,
0.018710361793637276,
-0.01923651620745659,
0.003753660013899207,
0.01690196618437767,
0.011550636030733585,
-0.005011235363781452,
0.0691126361489296,
-0.045536015182733536,
0.028773579746484756,
0.007295270450413227,
0.05346396192908287,
-0.018212614580988884,
-0.05654025077819824,
-0.021669527515769005,
0.006020895205438137,
0.01668715290725231,
0.05612841993570328,
-0.04553670063614845,
0.006459029391407967,
-0.004436962306499481,
-0.00796709768474102,
0.00849232729524374,
-0.031456612050533295,
-0.0591200552880764,
-0.04850080609321594,
0.0028019321616739035,
-0.024944858625531197,
0.04908955842256546,
-0.007196398451924324,
0.02219899371266365,
0.010090583935379982,
0.009263671934604645,
0.008166680112481117,
-0.0231472197920084,
0.03904915973544121,
-0.020045915618538857,
-0.0020749547984451056,
-0.01938932202756405,
-0.0051836855709552765,
0.0163668654859066,
0.01307747047394514,
0.03628746047616005,
7.258894348098558e-33,
-0.047914281487464905,
-0.01704569347202778,
0.015317805111408234,
0.03689809888601303,
-0.024374881759285927,
-0.03366528078913689,
0.029670115560293198,
-0.02484111674129963,
-0.0008043647976592183,
0.026875600218772888,
0.002976413583382964,
0.03821747377514839,
-0.006756905931979418,
0.0047888075932860374,
0.04534123092889786,
-0.023538189008831978,
0.034068379551172256,
0.008268824778497219,
0.015399686060845852,
0.006428213324397802,
0.0035891979932785034,
-0.018697651103138924,
-0.0045389472506940365,
-0.003278994234278798,
0.030879858881235123,
0.035530805587768555,
0.021695846691727638,
0.049276046454906464,
0.01916399970650673,
-0.031096406280994415,
0.0013919401681050658,
-0.016311468556523323,
0.028850717470049858,
-0.06109176576137543,
0.043336592614650726,
-0.003910377621650696,
-0.0027682308573275805,
-0.03178494796156883,
0.0174668338149786,
-0.02178616262972355,
-0.000710926135070622,
-0.007064749952405691,
0.014398324303328991,
-0.0020686632487922907,
0.003949643578380346,
0.007684312295168638,
-0.018527882173657417,
-0.006164398044347763,
0.03311837464570999,
-0.02258690446615219,
0.009258035570383072,
0.009422087110579014,
0.014199000783264637,
-0.0036250664852559566,
0.019095798954367638,
-0.009226996451616287,
-0.02080596424639225,
0.03109809197485447,
-0.017047477886080742,
-0.026890825480222702,
-0.02270105853676796,
0.02321692928671837,
0.010403747670352459,
-0.04116516187787056,
-0.018684057518839836,
0.00023713505652267486,
-0.041809193789958954,
-0.06588336080312729,
-0.03734549134969711,
0.05153602734208107,
-0.029577648267149925,
-0.016035426408052444,
-0.0036295412573963404,
0.02913971059024334,
-0.03446232154965401,
0.008585209026932716,
-0.011301340535283089,
-0.013333681970834732,
0.03439849987626076,
0.011038110591471195,
-0.006984705571085215,
-0.049659017473459244,
0.04346127808094025,
0.002165318001061678,
-0.022351009771227837,
-0.011997486464679241,
0.023996174335479736,
0.030431050807237625,
0.04485480114817619,
-0.034161921590566635,
-0.005210219416767359,
-0.04737728461623192,
0.04541933164000511,
-0.008605357259511948,
0.006027856841683388,
-1.265643767567326e-8,
0.01764628291130066,
-0.03620961308479309,
-0.05716630071401596,
0.004299823194742203,
-0.007440794259309769,
0.008753025904297829,
-0.009523967280983925,
-0.0257106963545084,
-0.024083809927105904,
-0.009011426009237766,
0.018129637464880943,
0.010553643107414246,
0.003721697023138404,
-0.004107512999325991,
0.02361585758626461,
-0.02201523445546627,
0.040190503001213074,
-0.06533805280923843,
0.0077859037555754185,
-0.022573750466108322,
-0.03046778030693531,
-0.0032286725472658873,
0.023055069148540497,
-0.00315578980371356,
-0.024927955120801926,
-0.019424600526690483,
0.029098184779286385,
-0.0820787325501442,
0.03029477223753929,
0.015670448541641235,
0.027768034487962723,
-0.03480154648423195,
0.02345667965710163,
0.03032607026398182,
-0.039295099675655365,
-0.026009324938058853,
0.024211617186665535,
0.03294913098216057,
0.06001753732562065,
-0.035834066569805145,
-0.023333759978413582,
-0.010745618492364883,
0.0036767483688890934,
-0.0393681675195694,
0.003314201021566987,
-0.05241917818784714,
0.0037140189670026302,
-0.040226224809885025,
0.024020258337259293,
-0.03357568755745888,
0.01997779682278633,
-0.011162755079567432,
0.0031610915903002024,
0.01162788551300764,
0.05062342435121536,
0.028068535029888153,
0.008468410931527615,
-0.05250358581542969,
-0.016420256346464157,
0.021029680967330933,
0.0026666438207030296,
-0.0009728551958687603,
-0.0318644642829895,
-0.02515684999525547
] | haskell-chaining-functions-to-find-the-middle-value-in-a-collection | https://markhneedham.com/blog/2012/03/20/haskell-chaining-functions-to-find-the-middle-value-in-a-collection |
false | 2012-03-20 23:55:51 | Haskell: Newbie currying mistake | [
"haskell"
] | [
"Haskell"
] | As I http://www.markhneedham.com/blog/2012/03/20/haskell-chaining-functions-to-find-the-middle-value-in-a-collection/[mentioned in my last post] I've spent a bit of this evening writing a merge sort function and one of the mistakes I made a few times was incorrectly passing arguments to the recursive calls of 'merge'.
For example, this is one of the earlier versions of the function:
[source,haskell]
----
middle :: [Int] -> Int
middle = floor . (\y -> y / 2) . fromIntegral . length
msort :: [Int] -> [Int]
msort unsorted =
let n = middle unsorted
in
if n == 0 then unsorted
else
let (left, right) = splitAt n unsorted
in merge (msort left) (msort right)
where
merge [] right = right
merge left [] = left
merge left@(x:xs) right@(y:ys) = if x < y then x : merge(xs, right) else y : merge (left, ys)
----
Which doesn't actually compile:
[source,text]
----
Couldn't match expected type `[a0]' with actual type `[a0] -> [a0]'
In the return type of a call of `merge'
In the second argument of `(:)', namely `merge (xs, right)'
In the expression: x : merge (xs, right)
----
My defence for this mistake is that many of the other languages I've programmed in take function parameters separated by a comma but in this case I've actually only succeeded in currying the 'merge' function.
i.e. it thinks I only wanted to pass one value to it and return a function, hence the error message!
One correction would be to change the code to read like this so we can explicitly see that a function which takes 2 arguments can be called with each argument separately:
[source,haskell]
----
msort :: [Int] -> [Int]
msort unsorted =
let n = middle unsorted
in
if n == 0 then unsorted
else
let (left, right) = splitAt n unsorted
in merge (msort left) (msort right)
where
merge [] right = right
merge left [] = left
merge left@(x:xs) right@(y:ys) = if x < y then x : merge(xs)(right) else y : merge (left)(ys)
----
We can do exactly the same with the '/' function to use a simpler example:
[source,haskell]
----
-- a long way of dividing 2 by 3
> ((/) 2) 3
0.6666666666666666
----
The type of '/' is:
[source,haskell]
----
> :t (/)
(/) :: Fractional a => a -> a -> a
----
which means it takes in a 'Fractional' and then returns a function which takes in a 'Fractional' and returns a 'Fractional'.
In Haskell http://stackoverflow.com/questions/4768453/type-signature-vs-function-equation-in-haskell[function application is left associative] which means that 'f x y' is the same as '(f x) y' so we can omit the parentheses and pass both arguments together:
[source,haskell]
----
> (/) 2 3
0.6666666666666666
----
And we can do the same thing in the merge sort of course:
[source,haskell]
----
msort :: [Int] -> [Int]
msort unsorted =
let n = middle unsorted
in
if n == 0 then unsorted
else
let (left, right) = splitAt n unsorted
in merge (msort left) (msort right)
where
merge [] right = right
merge left [] = left
merge left@(x:xs) right@(y:ys) = if x < y then x : merge xs right else y : merge left ys
----
A fairly simple mistake to make but it had me confused for a while!
'''
Updated the explanation around how we can pass arguments to '/' after my colleague https://twitter.com/#!/gavri[Gavri] https://twitter.com/#!/gavri/status/182331266681671680[pointed out that the initial explanation was incorrect]. | null | null | [
-0.027323607355356216,
0.004159769508987665,
-0.026123138144612312,
0.021374298259615898,
0.04936821758747101,
0.033238690346479416,
0.01953236386179924,
-0.023532677441835403,
-0.00963583867996931,
-0.0195035208016634,
0.00009551832772558555,
-0.004797504283487797,
-0.08675623685121536,
0.02496715635061264,
-0.0030533962417393923,
0.06453793495893478,
0.0699896290898323,
-0.03174479678273201,
-0.0023372077848762274,
-0.0027449014596641064,
0.01039289589971304,
0.06766606867313385,
-0.011776029132306576,
0.009763884358108044,
0.022595630958676338,
0.015569270588457584,
0.008299318142235279,
0.036083947867155075,
-0.031156456097960472,
-0.03769487142562866,
0.048361945897340775,
0.03343179449439049,
0.0035228466149419546,
-0.01751629263162613,
0.010561211965978146,
-0.03777085244655609,
0.0073189083486795425,
-0.006456368137151003,
0.01269141212105751,
0.023550963029265404,
-0.03723233565688133,
0.01578783243894577,
-0.022427186369895935,
0.013050079345703125,
-0.052357252687215805,
-0.0029691613744944334,
-0.06036854535341263,
0.0009026876068674028,
-0.05158160254359245,
0.01019891444593668,
-0.06298106163740158,
0.016037311404943466,
-0.01132840197533369,
-0.012982971966266632,
-0.02669323980808258,
0.05819825828075409,
-0.0035101461689919233,
-0.07588480412960052,
0.04962831735610962,
-0.028845451772212982,
-0.022343872115015984,
-0.009792384691536427,
-0.002922462299466133,
0.02461540699005127,
0.015993846580386162,
-0.01514960452914238,
-0.015451353043317795,
0.03882630541920662,
-0.04516797885298729,
-0.03317568078637123,
-0.03894715756177902,
0.00029833021108061075,
-0.010362153872847557,
-0.002340893028303981,
-0.029578538611531258,
-0.0477166548371315,
-0.011066194623708725,
0.07795889675617218,
0.005946701858192682,
0.018327783793210983,
-0.020837092772126198,
0.019960390403866768,
0.013811598531901836,
0.038255658000707626,
0.021468443796038628,
-0.020713843405246735,
-0.050470344722270966,
0.0161442868411541,
-0.037029266357421875,
0.05157319828867912,
-0.024581026285886765,
-0.08435608446598053,
-0.0026574372313916683,
0.009729042649269104,
0.038759175688028336,
0.015954483300447464,
-0.0049948375672101974,
-0.035796891897916794,
0.03368184715509415,
-0.013562864623963833,
-0.060235343873500824,
-0.012435507029294968,
0.030353611335158348,
-0.011603123508393764,
-0.05335519462823868,
-0.016097810119390488,
-0.016644136980175972,
-0.02320125140249729,
0.009878701530396938,
-0.004515298176556826,
-0.04280932620167732,
0.012490205466747284,
0.009800259955227375,
0.026629643514752388,
-0.07747085392475128,
0.047684118151664734,
0.010209256783127785,
-0.003455579513683915,
-0.016723083332180977,
0.022464290261268616,
0.06213142350316048,
0.017536383122205734,
-0.0032535779755562544,
0.08701078593730927,
0.03582821041345596,
0.04539957642555237,
0.018138356506824493,
0.07238933444023132,
-0.021507421508431435,
-0.06430038809776306,
-0.028212521225214005,
0.061863139271736145,
-0.030132610350847244,
-0.015189886093139648,
-0.023630810901522636,
-0.02929404005408287,
-0.046324096620082855,
0.03408284857869148,
0.023060470819473267,
0.033236272633075714,
0.013941568322479725,
-0.021499162539839745,
0.04209060221910477,
-0.0290756244212389,
0.014288450591266155,
0.017148228362202644,
-0.014432446099817753,
-0.005919054616242647,
0.005915495567023754,
0.017375191673636436,
0.03521467745304108,
0.061983831226825714,
0.063470758497715,
-0.03068726137280464,
0.0380735881626606,
0.07844260334968567,
0.027850640937685966,
0.004726361483335495,
-0.008012043312191963,
0.044611066579818726,
0.03896252438426018,
0.034637853503227234,
-0.0018302469979971647,
0.03470764309167862,
0.01899454928934574,
0.024232562631368637,
-0.020766127854585648,
0.046198900789022446,
0.0025029717944562435,
-0.02538961172103882,
-0.043998975306749344,
-0.01698806881904602,
0.06081850081682205,
-0.01679150015115738,
-0.0012306722346693277,
-0.012037570588290691,
0.0887303501367569,
0.016119174659252167,
0.04438786953687668,
-0.018040871247649193,
-0.06806061416864395,
0.0235312357544899,
-0.014209792017936707,
0.04431070014834404,
-0.005689360201358795,
0.019720643758773804,
0.06426840275526047,
0.02633039839565754,
0.009268764406442642,
0.023173430934548378,
-0.04014434292912483,
-0.08792536705732346,
-0.031703170388936996,
-0.01715039275586605,
0.07751446217298508,
-0.029407717287540436,
-0.03723756968975067,
0.05046328529715538,
-0.00173369946423918,
0.02899109572172165,
0.03383874148130417,
-0.017420873045921326,
0.01435907930135727,
-0.005755940917879343,
-0.01983090490102768,
0.07002663612365723,
0.04274022579193115,
0.005333554930984974,
-0.010556868277490139,
0.0398191399872303,
0.010805295780301094,
0.02062467858195305,
0.03696651756763458,
-0.017868822440505028,
0.05916006118059158,
0.06553050875663757,
0.024322642013430595,
-0.029907258227467537,
0.04492346569895744,
-0.041179124265909195,
0.047544822096824646,
0.036042653024196625,
0.011251327581703663,
0.003276835661381483,
-0.000026940504540107213,
0.1229008138179779,
0.07939282059669495,
-0.02329239808022976,
-0.011736273765563965,
0.0008404021500609815,
-0.02991810441017151,
0.0014056205982342362,
0.012379785068333149,
0.037743888795375824,
-0.013795245438814163,
-0.018640728667378426,
-0.009450281970202923,
0.004959737882018089,
-0.009339350275695324,
-0.030954014509916306,
-0.036899980157613754,
0.07567209005355835,
-0.013851993717253208,
0.06614280492067337,
-0.024695197120308876,
-0.024683337658643723,
-0.015521887689828873,
-0.03797546401619911,
-0.011695945635437965,
0.01611422933638096,
0.02645440772175789,
-0.009783430956304073,
0.08323701471090317,
-0.037267863750457764,
-0.028014879673719406,
-0.014822161756455898,
-0.00042649341048672795,
0.002673243172466755,
0.06428560614585876,
0.046376265585422516,
0.011483142152428627,
0.039376262575387955,
0.00009768395102582872,
-0.034238576889038086,
-0.03467106819152832,
-0.0729055181145668,
-0.05177098140120506,
0.023484433069825172,
0.01502594631165266,
0.027027394622564316,
0.059498824179172516,
0.0003432878293097019,
0.01930912956595421,
-0.03527308255434036,
-0.024552401155233383,
-0.022944511845707893,
-0.004454796202480793,
-0.005355380475521088,
-0.054088957607746124,
-0.028087424114346504,
-0.04489528760313988,
0.05318893492221832,
-0.03801547363400459,
-0.02012641727924347,
-0.000578101840801537,
-0.01235103327780962,
0.04773328825831413,
-0.09444505721330643,
-0.009322794154286385,
0.0049701957032084465,
0.039202746003866196,
0.04382498562335968,
-0.02117297053337097,
-0.0115186907351017,
0.06562253087759018,
0.003109122160822153,
0.04051591455936432,
0.04728100448846817,
0.00035208198823966086,
0.04001147300004959,
-0.007271799724549055,
0.010077323764562607,
0.054703764617443085,
0.00657343864440918,
-0.01213813852518797,
-0.055892813950777054,
-0.03745394945144653,
0.010340532287955284,
-0.24941064417362213,
0.018175091594457626,
-0.009061657823622227,
-0.0022846870124340057,
0.02113785780966282,
-0.03534860536456108,
-0.0019197561778128147,
-0.03753971680998802,
-0.0038340005557984114,
0.022825011983513832,
-0.02863370068371296,
-0.035039763897657394,
-0.030586861073970795,
0.05547703802585602,
0.02507534809410572,
-0.009877407923340797,
-0.035971615463495255,
-0.03186812624335289,
0.018123824149370193,
0.050502385944128036,
0.005175079219043255,
-0.06693455576896667,
-0.0021982998587191105,
0.04454987868666649,
0.02005728892982006,
0.03016110509634018,
-0.06911290436983109,
0.02318975143134594,
-0.04851358383893967,
-0.017206421121954918,
-0.04481315612792969,
0.018922531977295876,
-0.0029768971726298332,
-0.014058159664273262,
-0.01584191434085369,
-0.0272873155772686,
0.01171831227838993,
0.019386937841773033,
0.014768606051802635,
0.04561599716544151,
-0.03585461527109146,
-0.040433190762996674,
0.03700651973485947,
-0.008881434798240662,
0.04822605103254318,
-0.028801260516047478,
-0.04523643106222153,
-0.004540056921541691,
-0.055630650371313095,
0.06395326554775238,
-0.0074679115787148476,
-0.012498928233981133,
-0.0034347118344157934,
0.02659734897315502,
-0.01425974816083908,
-0.00038270893855951726,
-0.0273088738322258,
-0.030107490718364716,
-0.022016970440745354,
0.0027309812139719725,
-0.03917575627565384,
-0.02416735142469406,
-0.02015559747815132,
-0.04172571375966072,
-0.03230813145637512,
-0.05659978464245796,
-0.07257357239723206,
-0.009108680300414562,
0.061897944658994675,
-0.0041832085698843,
0.0014514353824779391,
-0.037919677793979645,
-0.0145880077034235,
-0.1056152954697609,
-0.06134706735610962,
-0.030892539769411087,
-0.04736531153321266,
-0.016458405181765556,
0.011869114823639393,
0.06748060137033463,
-0.04116380959749222,
-0.07358898967504501,
0.0364801399409771,
-0.012456681579351425,
0.03638065233826637,
-0.02548026666045189,
-0.02915356121957302,
-0.009249662980437279,
-0.006080321967601776,
-0.008983285166323185,
0.0459674634039402,
-0.005982610862702131,
-0.012477332726120949,
-0.0027000124100595713,
0.010168231092393398,
0.04055545851588249,
-0.020494550466537476,
0.006325055379420519,
0.04296869784593582,
0.028113815933465958,
0.03733192756772041,
-0.06373321264982224,
0.024223938584327698,
-0.017477821558713913,
-0.016266684979200363,
0.010293262079358101,
-0.04468550160527229,
-0.0009788667084649205,
0.03083227574825287,
-0.0030074401292949915,
-0.02149771712720394,
-0.04221532866358757,
0.014927932061254978,
-0.072610042989254,
-0.06350681185722351,
-0.009541533887386322,
-0.0037171775475144386,
0.02125799097120762,
0.00364865199662745,
-0.003797468962147832,
-0.07826096564531326,
0.011214151047170162,
-0.015754302963614464,
-0.020519206300377846,
-0.05091165006160736,
-0.04109886288642883,
-0.033768318593502045,
-0.0069734519347548485,
0.03437957912683487,
0.047519102692604065,
-0.013096773065626621,
0.022375809028744698,
0.013888433575630188,
-0.025828970596194267,
0.02226843312382698,
-0.02940492518246174,
-0.013879572972655296,
-0.0019973318558186293,
-0.03568286448717117,
-0.021520817652344704,
0.0340389683842659,
-0.022689221426844597,
0.0007756818667985499,
0.014856572262942791,
0.03390274941921234,
-0.00590598676353693,
-0.0010935165919363499,
-0.007294682320207357,
-0.004422308411449194,
0.04853707551956177,
-0.011528716422617435,
-0.034765828400850296,
0.03037291392683983,
-0.05314955860376358,
-0.009078558534383774,
0.02543885074555874,
0.028718946501612663,
-0.017611239105463028,
-0.06767425686120987,
-0.04702875390648842,
0.015931807458400726,
-0.02821987494826317,
-0.024045052006840706,
-0.03367379307746887,
-0.004858997650444508,
0.0457279346883297,
-0.030529916286468506,
0.042403966188430786,
-0.056992411613464355,
-0.0008713837014511228,
-0.0018155629513785243,
0.0003743414126802236,
-0.03258495405316353,
0.02373664826154709,
0.017739562317728996,
-0.011638198979198933,
0.01954052411019802,
0.02060282602906227,
0.0392003133893013,
-0.001476464793086052,
-0.012886830605566502,
-0.004630930256098509,
-0.014885212294757366,
0.011576294898986816,
0.035049919039011,
0.0037229156587272882,
0.016934599727392197,
0.008298596367239952,
-0.036400724202394485,
-0.051431577652692795,
-0.04320121183991432,
-0.004015674348920584,
-0.02571737952530384,
0.05277885124087334,
-0.03594925254583359,
-0.03803970664739609,
-0.0061156912706792355,
0.03202272206544876,
-0.009647341445088387,
-0.003643667558208108,
0.02621312253177166,
-0.0017845425754785538,
0.0030873275827616453,
-0.026558270677924156,
0.07584552466869354,
-0.0582222044467926,
0.022503022104501724,
0.012672900222241879,
0.006505175027996302,
0.03535708039999008,
0.021623501554131508,
-0.02613905817270279,
-0.033332813531160355,
-0.01228576060384512,
0.017977392300963402,
-0.0031498188618570566,
-0.025851327925920486,
-0.006517348345369101,
-0.00557592511177063,
-0.01958147995173931,
-0.026856044307351112,
-0.021892493590712547,
0.01718355529010296,
-0.03691144287586212,
-0.05388863384723663,
0.009980711154639721,
-0.05282116308808327,
0.0018363329581916332,
0.05892552435398102,
-0.03433048725128174,
0.03793855011463165,
-0.029586730524897575,
0.04576095566153526,
0.02892039157450199,
-0.007019386626780033,
-0.013468216173350811,
-0.0733184665441513,
-0.01127109955996275,
-0.0676826611161232,
0.053044240921735764,
-0.002564584370702505,
0.0034148520790040493,
0.0042795478366315365,
-0.0041907476261258125,
-0.05244741216301918,
0.008689737878739834,
0.013527944684028625,
-0.05302854999899864,
-0.003432528581470251,
0.035642821341753006,
-0.029089350253343582,
0.02968830056488514,
-0.0022511903662234545,
0.0161298718303442,
0.04050431773066521,
-0.006718222051858902,
-0.040759939700365067,
-0.00897679477930069,
-0.03928937762975693,
0.02272600494325161,
-0.02445441111922264,
0.010209035128355026,
-0.04401976987719536,
0.03402780368924141,
0.06414104253053665,
0.041155654937028885,
0.04053788632154465,
-0.004178503528237343,
0.010281126014888287,
-0.04019097611308098,
0.004374988377094269,
-0.08275754004716873,
-0.03719522804021835,
-0.007115028332918882,
0.014996257610619068,
-0.032998498529195786,
-0.03949100524187088,
0.0068957689218223095,
0.01762690208852291,
-0.04636603221297264,
0.000841667118947953,
0.0306262094527483,
0.0023804372176527977,
0.024958740919828415,
0.04376913607120514,
-0.07493708282709122,
-0.007993539795279503,
0.023879757151007652,
-0.00820250902324915,
0.016854245215654373,
-0.03153172880411148,
0.05368518456816673,
0.03250003233551979,
0.06566581130027771,
-0.001326860161498189,
-0.02596471644937992,
0.039154406636953354,
0.04255814477801323,
0.017994077876210213,
0.0811927542090416,
-0.006765072699636221,
0.013280415907502174,
0.03195817768573761,
0.012136232107877731,
-0.02028035931289196,
0.03833966329693794,
-0.01855543814599514,
-0.05426514893770218,
0.014888382516801357,
0.02162257954478264,
-0.011744002811610699,
-0.0375528484582901,
0.05999932810664177,
-0.004149302840232849,
-0.02019445411860943,
-0.035910408943891525,
0.024223174899816513,
-0.073653444647789,
0.03100046142935753,
-0.01814301870763302,
0.02102668397128582,
-0.023984504863619804,
0.06285897642374039,
-0.003668481484055519,
-0.008458379656076431,
0.06334923952817917,
-0.0004139805678278208,
-0.022522345185279846,
0.011516223661601543,
0.08379223942756653,
0.08878736943006516,
0.07378669083118439,
-0.017819620668888092,
0.02525636926293373,
-0.0395393930375576,
-0.04845371097326279,
0.016414089128375053,
-0.04264775663614273,
0.030780378729104996,
-0.007575398311018944,
0.02714032121002674,
0.09407278895378113,
-0.033508773893117905,
0.058591220527887344,
-0.04680052399635315,
0.024502743035554886,
0.007050085812807083,
0.0015762971015647054,
0.01439758762717247,
0.08757785707712173,
0.02096928469836712,
0.04047219455242157,
0.0009652695152908564,
-0.048485562205314636,
0.016608232632279396,
0.008018417283892632,
-0.021533077582716942,
0.0024706250987946987,
0.024116631597280502,
0.010572613216936588,
0.04431862384080887,
0.008879373781383038,
0.05373809114098549,
-0.03522281348705292,
-0.008794639259576797,
-0.004893515259027481,
0.04350988194346428,
0.01182861439883709,
-0.04236925393342972,
0.014961443841457367,
-0.06321322917938232,
0.006435777992010117,
-0.0017713747220113873,
-0.011566121131181717,
0.0011574862292036414,
-0.04471142590045929,
0.05203511565923691,
-0.03502089902758598,
0.022684596478939056,
0.024822022765874863,
-0.01780090667307377,
-0.03374321013689041,
-0.05171654373407364,
-0.041040532290935516,
-0.053232938051223755,
-0.07693033665418625,
0.021739879623055458,
0.0022757714614272118,
-0.04113350808620453,
-0.033335816115140915,
-0.021410375833511353,
0.007910649292171001,
-0.03824206069111824,
0.034332841634750366,
-0.00853449571877718,
-0.02897803857922554,
0.00021392587223090231,
-0.0025083727668970823,
0.048864059150218964,
0.04040183499455452,
0.021472936496138573,
0.008987737819552422,
-0.019123123958706856,
-0.0159501563757658,
-0.01229835208505392,
0.0503462478518486,
0.0482858270406723,
-0.011587928980588913,
-0.07423944026231766,
0.010456212796270847,
0.024571867659687996,
0.01103464886546135,
-0.08626676350831985,
-0.012975526042282581,
0.019850121811032295,
-0.022076528519392014,
0.03556358814239502,
-0.009171878919005394,
-0.023703185841441154,
-0.06082596257328987,
-0.016305889934301376,
0.008140643127262592,
0.005865148734301329,
0.036441829055547714,
-0.04796266183257103,
0.07402341067790985,
0.018207350745797157,
-0.018546946346759796,
-0.0267508402466774,
0.0064017148688435555,
-0.022978603839874268,
0.032334670424461365,
-0.016325000673532486,
-0.017122624441981316,
-0.015638917684555054,
-0.055232979357242584,
-0.011903573758900166,
0.007117734756320715,
-0.012749973684549332,
-0.010194479487836361,
0.014061841182410717,
0.03145846351981163,
-0.061942242085933685,
0.04978840425610542,
-0.044402725994586945,
0.018890727311372757,
-0.023555289953947067,
-0.03246220946311951,
-0.0038783284835517406,
0.054638538509607315,
0.023502256721258163,
-0.0018732966855168343,
0.03254661336541176,
-0.03129987791180611,
-0.004947272129356861,
-0.003742669941857457,
-0.006760061252862215,
0.027602043002843857,
-0.022230055183172226,
0.046255797147750854
] | [
-0.12196918576955795,
-0.0514032207429409,
-0.03698393702507019,
-0.010412365198135376,
-0.0056969644501805305,
-0.039273571223020554,
-0.007508660666644573,
0.007467192597687244,
0.03857564553618431,
-0.02648499608039856,
0.04603898152709007,
-0.07188485562801361,
0.04399969056248665,
0.013271383009850979,
0.07543175667524338,
0.0051169851794838905,
-0.06586901843547821,
-0.02227877639234066,
-0.058795616030693054,
-0.016236329451203346,
-0.006312135607004166,
-0.003090488724410534,
-0.0660816878080368,
-0.060133688151836395,
0.06292334944009781,
0.05403701961040497,
0.014099642634391785,
-0.04405359551310539,
-0.03130985423922539,
-0.23248296976089478,
-0.0002679038152564317,
0.03397083654999733,
0.0342646986246109,
-0.04208635911345482,
-0.004088248126208782,
0.015080493874847889,
0.021815938875079155,
0.0118767861276865,
-0.0224246047437191,
0.052750442177057266,
0.035988204181194305,
0.026254085823893547,
-0.02138490229845047,
-0.029689351096749306,
0.027302589267492294,
0.01172047108411789,
-0.04583593085408211,
-0.010161099024116993,
-0.013641662895679474,
0.009993104264140129,
-0.05477919802069664,
-0.007430696859955788,
-0.019122308120131493,
0.014936950989067554,
0.0026913925539702177,
0.0665188878774643,
0.04699905589222908,
0.11538457870483398,
0.027320120483636856,
0.02857060916721821,
0.039725411683321,
0.000199573885765858,
-0.10536914318799973,
0.0692976787686348,
0.029963284730911255,
0.0076949698850512505,
-0.013509489595890045,
-0.05040523409843445,
-0.04915928840637207,
0.10146798193454742,
0.005096451845020056,
-0.014595226384699345,
-0.020393794402480125,
0.07826370745897293,
0.011254407465457916,
-0.06794929504394531,
-0.02081412822008133,
-0.024065911769866943,
0.05312500149011612,
0.016516758129000664,
-0.04181117191910744,
-0.030043842270970345,
-0.02641594037413597,
-0.01678525283932686,
-0.0029471893794834614,
0.01724889874458313,
-0.05095675587654114,
0.027209550142288208,
0.02660556696355343,
-0.013655613176524639,
0.03970770910382271,
-0.028346439823508263,
0.013989882543683052,
0.006925052031874657,
-0.058619797229766846,
0.021051868796348572,
-0.011533149518072605,
0.0004987660795450211,
-0.018713796511292458,
0.3908235728740692,
-0.02216724306344986,
0.016306055709719658,
0.031915150582790375,
0.01266579981893301,
-0.05265916511416435,
0.016670994460582733,
-0.02135627716779709,
-0.04491746798157692,
-0.00730137387290597,
-0.05165494978427887,
-0.014720133505761623,
-0.05169747769832611,
0.11204635351896286,
-0.06429150700569153,
0.023715820163488388,
0.034839894622564316,
0.06292133778333664,
0.025565067306160927,
-0.008716159500181675,
0.016917940229177475,
-0.0007131220190785825,
-0.0031863946933299303,
-0.010389632545411587,
0.03502108156681061,
-0.017069268971681595,
-0.00058268808061257,
0.01080315001308918,
0.04746122658252716,
0.0512801893055439,
0.0420660525560379,
0.04762747511267662,
-0.026763468980789185,
-0.03723262622952461,
-0.023656684905290604,
-0.005847493186593056,
0.009344011545181274,
0.033272262662649155,
-0.04491834342479706,
0.04057614132761955,
0.0018529783701524138,
0.0005090342601761222,
-0.06951107084751129,
0.01493281964212656,
0.017615268006920815,
-0.015713278204202652,
0.13604868948459625,
-0.013633598573505878,
-0.05262979865074158,
-0.020836826413869858,
-0.003933318424969912,
-0.014366877265274525,
0.0027117212302982807,
-0.0009546724613755941,
-0.06478405743837357,
0.007622927892953157,
0.017660731449723244,
0.053371887654066086,
-0.010351549834012985,
-0.06891648471355438,
0.031123464927077293,
-0.051651597023010254,
-0.017741404473781586,
-0.07506448030471802,
0.08328188210725784,
0.014564982615411282,
-0.058311399072408676,
-0.024376463145017624,
-0.0027184798382222652,
0.008649989031255245,
-0.08065661787986755,
0.002491005463525653,
0.008967778645455837,
-0.02845807932317257,
-0.007095610722899437,
0.05775811895728111,
-0.030972778797149658,
-0.03605955094099045,
-0.03874194622039795,
0.05904838442802429,
0.04087373986840248,
0.042847998440265656,
-0.006793307606130838,
-0.0731198638677597,
0.007780025247484446,
-0.011516553349792957,
-0.07067614048719406,
-0.08382828533649445,
-0.006927026901394129,
-0.000894157390575856,
-0.01001830492168665,
-0.0006762146367691457,
-0.016534803435206413,
-0.06908399611711502,
0.04891403764486313,
-0.038747388869524,
-0.04176459461450577,
0.0034620717633515596,
0.010084119625389576,
0.002602149033918977,
0.01614287681877613,
0.033080581575632095,
0.052865494042634964,
0.028852399438619614,
0.00924682430922985,
-0.09741180390119553,
0.0008547797915525734,
0.031244749203324318,
-0.06663931906223297,
0.057092905044555664,
0.02956099435687065,
0.027348587289452553,
-0.0024814235512167215,
-0.04042808711528778,
0.017664294689893723,
0.022405628114938736,
-0.011379001662135124,
0.050323955714702606,
-0.01033800095319748,
0.01200320664793253,
-0.004396663513034582,
-0.037910137325525284,
-0.0299605093896389,
0.00034874601988121867,
-0.336255818605423,
-0.07573696970939636,
0.002051958115771413,
-0.03111729957163334,
0.0014836654299870133,
-0.0634034052491188,
-0.024762962013483047,
0.01191760879009962,
-0.05820817872881889,
0.03149956464767456,
0.05980604887008667,
0.011894083581864834,
-0.021288329735398293,
-0.07460176944732666,
0.00845744926482439,
0.024254294112324715,
-0.02440999262034893,
-0.03164272382855415,
-0.03755657374858856,
0.04546855017542839,
-0.01793927140533924,
0.015863975510001183,
-0.012413091957569122,
-0.07295816391706467,
-0.013649842701852322,
-0.041034210473299026,
0.11557997018098831,
0.00040889476076699793,
0.10120607167482376,
-0.005178111605346203,
0.04712781310081482,
-0.006488905753940344,
0.013181259855628014,
-0.016803154721856117,
-0.03156329691410065,
0.004166558850556612,
-0.013097668997943401,
-0.04487747326493263,
0.04153931885957718,
-0.0040362440049648285,
-0.05451693385839462,
-0.0006731128669343889,
-0.04281129315495491,
-0.03738894313573837,
0.023362841457128525,
0.0057881735265254974,
-0.027964748442173004,
-0.024981550872325897,
0.032567866146564484,
0.07434451580047607,
-0.00024723896058276296,
-0.0029826494865119457,
0.03035571798682213,
0.03189884498715401,
0.015740027651190758,
0.011741342023015022,
-0.028905602172017097,
-0.038386519998311996,
0.03208501264452934,
-0.03395387530326843,
0.03144575655460358,
0.06494161486625671,
0.060083672404289246,
-0.01587735489010811,
0.002760078525170684,
-0.01980573497712612,
-0.016086921095848083,
-0.015939276665449142,
0.021856676787137985,
-0.020577458664774895,
-0.022263649851083755,
0.08544504642486572,
-0.002369089052081108,
0.01000197883695364,
0.013935383409261703,
0.09642059355974197,
-0.028534095734357834,
0.0626649335026741,
0.039449725300073624,
0.018931785598397255,
0.027254421263933182,
-0.03766624256968498,
0.015703754499554634,
-0.016836386173963547,
-0.011300222016870975,
0.014052286744117737,
-0.015538699924945831,
0.043710533529520035,
0.02383335679769516,
-0.004661437124013901,
-0.017621783539652824,
0.02317682094871998,
-0.003941259812563658,
-0.007526134140789509,
0.057430706918239594,
-0.0013098818017169833,
-0.24377889931201935,
0.04371644929051399,
0.0475371889770031,
0.015701577067375183,
-0.0172173622995615,
0.05324409529566765,
0.04351063445210457,
-0.05674608424305916,
-0.015448266640305519,
0.002983228536322713,
0.04265371710062027,
0.06784731894731522,
0.057216495275497437,
0.026077134534716606,
0.016719693318009377,
-0.03504244610667229,
0.04138169810175896,
0.004358021076768637,
-0.010076401755213737,
0.04850120097398758,
0.0423276349902153,
0.014142458327114582,
0.17370407283306122,
-0.011173810809850693,
0.005275683011859655,
0.020795298740267754,
-0.03762815147638321,
0.021097127348184586,
0.07122970372438431,
0.02563694678246975,
-0.013770007528364658,
0.028836211189627647,
0.04140321537852287,
-0.02739819511771202,
0.028193432837724686,
-0.03339758142828941,
0.03060324117541313,
0.03949384763836861,
0.02150372974574566,
-0.016349777579307556,
-0.018124952912330627,
0.014273800887167454,
-0.03451072424650192,
0.018722210079431534,
0.07517921179533005,
0.01582510955631733,
-0.03952910378575325,
-0.027689049020409584,
-0.05368678644299507,
0.017830172553658485,
-0.03498995304107666,
-0.0031162076629698277,
-0.0074356007389724255,
-0.037635382264852524,
-0.0005622808239422739,
0.017176201567053795,
0.0030089665669947863,
-0.03779074549674988,
-0.046529557555913925,
0.0157228484749794,
0.04653022438287735,
-0.04122760519385338,
0.11268582195043564,
-0.003396793268620968,
0.034524768590927124
] | [
-0.0093673225492239,
-0.004896874073892832,
-0.0018908979836851358,
0.009782430715858936,
-0.020491154864430428,
-0.026515772566199303,
0.0005810445290990174,
0.032966405153274536,
-0.02083403989672661,
-0.016812723129987717,
-0.0097875464707613,
0.004984988830983639,
0.047313425689935684,
-0.010523456148803234,
-0.010967758484184742,
0.02166733518242836,
0.005066079553216696,
0.0149859469383955,
0.012616963125765324,
-0.04276987910270691,
-0.02703946642577648,
0.05579894408583641,
-0.011150163598358631,
0.027273574844002724,
0.005580554716289043,
0.006853288505226374,
-0.0495695099234581,
-0.008351788856089115,
0.005979686509817839,
-0.13221465051174164,
-0.006361726205796003,
-0.020651571452617645,
0.025143492966890335,
0.015497501939535141,
-0.009373352862894535,
0.048797715455293655,
0.012221545912325382,
-0.009492254815995693,
0.0034856274724006653,
-0.026392865926027298,
-0.037264324724674225,
0.013192186132073402,
0.03236036375164986,
-0.00210241274908185,
-0.012281777337193489,
0.014209248125553131,
-0.024231957271695137,
-0.008985363878309727,
-0.012150866910815239,
0.027581462636590004,
-0.04598012939095497,
0.02166207879781723,
-0.003312636399641633,
0.046270448714494705,
0.034381210803985596,
0.01797667145729065,
-0.03494700416922569,
-0.06052333116531372,
-0.025990214198827744,
-0.03444841131567955,
-0.036802709102630615,
0.031823430210351944,
-0.05187925323843956,
-0.024918941780924797,
-0.0006348200840875506,
-0.0002635079144965857,
0.022508233785629272,
-0.0008606143528595567,
0.0008948619361035526,
-0.022993817925453186,
0.01779191382229328,
0.015621638856828213,
-0.037188805639743805,
-0.020292049273848534,
-0.011482412926852703,
0.009058724157512188,
0.039956144988536835,
-0.02681979350745678,
-0.007562828715890646,
-0.0070036230608820915,
-0.03149907663464546,
-0.00803595595061779,
0.023982541635632515,
0.01646074466407299,
-0.0020301234908401966,
-0.01618986576795578,
-0.03276582807302475,
0.03413864225149155,
0.019743124023079872,
-0.016020333394408226,
-0.005129632540047169,
0.03867456316947937,
-0.0007854400901123881,
-0.004006475210189819,
-0.028333814814686775,
0.010087260976433754,
-0.042176876217126846,
-0.02098706364631653,
-0.0040624188259243965,
0.8274365067481995,
-0.042232658714056015,
0.04109741374850273,
0.038630109280347824,
-0.032206468284130096,
-0.0108480928465724,
-0.008361177518963814,
-0.02336876466870308,
-0.01265022624284029,
0.01587294042110443,
-0.06561965495347977,
0.02826618030667305,
-0.028959456831216812,
0.05714903026819229,
0.021600697189569473,
-0.009945702739059925,
0.04662676900625229,
0.02139880321919918,
-0.011293341405689716,
0.0008943745633587241,
-0.019471444189548492,
0.018530474975705147,
-0.015043173916637897,
-0.006195275578647852,
0.06761277467012405,
0.04503239318728447,
-0.18165358901023865,
0.0026158224791288376,
-8.037459521478684e-33,
-0.008181697688996792,
-0.020741866901516914,
0.014183816500008106,
0.0019613050390034914,
0.05625423043966293,
0.016337286680936813,
0.03197299316525459,
-0.022149186581373215,
-0.01909308135509491,
-0.0039211963303387165,
0.00827256590127945,
-0.009595095179975033,
-0.01129053346812725,
-0.024336377158761024,
0.03982679173350334,
-0.02330363169312477,
0.04278552159667015,
0.03203277289867401,
-0.03302651643753052,
0.001975494669750333,
0.032036490738391876,
0.08030009269714355,
0.0063763391226530075,
0.012756852433085442,
-0.004228061996400356,
0.045522209256887436,
0.013286481611430645,
-0.007825037464499474,
0.04383483901619911,
-0.04949565604329109,
-0.025974716991186142,
0.03410061076283455,
-0.028729388490319252,
0.03246285021305084,
0.018180914223194122,
-0.02671019546687603,
-0.024326521903276443,
0.018419254571199417,
-0.014194144867360592,
0.014830570667982101,
-0.015463466756045818,
0.020253412425518036,
-0.010050083510577679,
-0.023158296942710876,
0.026006482541561127,
-0.032067183405160904,
0.0007324530743062496,
0.032252296805381775,
0.054114535450935364,
0.057549796998500824,
0.02481812797486782,
0.02179543301463127,
0.013495669700205326,
0.012719222344458103,
-0.025530874729156494,
0.0007341927848756313,
-0.0005044478457421064,
0.020378531888127327,
-0.00986632052809,
0.053773537278175354,
-0.014843511395156384,
0.013658985495567322,
-0.007535422686487436,
0.04843829944729805,
-0.00662523228675127,
-0.049270857125520706,
-0.007528567686676979,
0.02635478787124157,
0.025292152538895607,
0.04552802816033363,
-0.03369564935564995,
0.0008183370810002089,
-0.008843419142067432,
-0.009921949356794357,
0.0050291079096496105,
-0.040992371737957,
-0.05014467611908913,
-0.04392106086015701,
0.007181460969150066,
-0.0025056726299226284,
0.04975137487053871,
-0.0005494602373801172,
0.013182940892875195,
0.011653143912553787,
0.00398620218038559,
0.007041704375296831,
-0.006089865695685148,
0.04392607882618904,
-0.029100729152560234,
0.00666813924908638,
-0.005754560232162476,
0.016438988968729973,
0.008851608261466026,
-0.006771550048142672,
0.022795941680669785,
7.699418202908903e-33,
-0.04058174788951874,
-0.023403558880090714,
0.01414297241717577,
0.03727223351597786,
-0.028854863718152046,
-0.019645852968096733,
0.038851432502269745,
-0.0018827983876690269,
-0.0018276587361469865,
0.02402520179748535,
-0.009685490280389786,
0.034068431705236435,
-0.002143868710845709,
0.008799436502158642,
0.05841686949133873,
-0.022678513079881668,
0.03271094337105751,
0.0024818037636578083,
0.010795719921588898,
0.00023329541727434844,
-0.001581029500812292,
-0.007634751498699188,
0.004205614794045687,
0.001348581863567233,
0.01653071865439415,
0.043460119515657425,
-0.00003338427995913662,
0.030811887234449387,
0.02090327814221382,
-0.019178252667188644,
0.003420708468183875,
-0.01412935834378004,
0.02377714030444622,
-0.030028710141777992,
0.037501923739910126,
-0.004082610830664635,
-0.00024217076133936644,
-0.026241658255457878,
0.013283997774124146,
-0.006104968022555113,
0.01527316402643919,
-0.005947248078882694,
-0.0008876954088918865,
0.00941263884305954,
0.001013871282339096,
0.016523053869605064,
-0.033111803233623505,
-0.0010380983585491776,
0.0155098931863904,
-0.02311285212635994,
-0.004691803362220526,
0.0260953176766634,
0.028314588591456413,
-0.010970110073685646,
0.017950616776943207,
-0.01946474425494671,
-0.01113020721822977,
0.014428718015551567,
-0.02913273125886917,
-0.027701038867235184,
-0.025342637673020363,
0.015790212899446487,
-0.012177906930446625,
-0.02018234133720398,
-0.016452914103865623,
-0.026017051190137863,
-0.05135530233383179,
-0.0737907811999321,
-0.04021618887782097,
0.03578675538301468,
-0.03499651327729225,
-0.00039101741276681423,
-0.007213506381958723,
0.009338154457509518,
-0.04250379279255867,
0.007130608893930912,
-0.02406572736799717,
-0.019440151751041412,
0.03132316842675209,
0.004016311839222908,
-0.00008958439866546541,
-0.0440901480615139,
0.05268431082367897,
0.00008357140904990956,
-0.017536278814077377,
-0.014824798330664635,
0.002151831518858671,
0.02418825961649418,
0.041765350848436356,
-0.023023022338747978,
0.008466963656246662,
-0.05319119989871979,
0.03659873083233833,
-0.0022566926199942827,
-0.005932975094765425,
-1.316036435383694e-8,
0.008457337506115437,
-0.02369452454149723,
-0.0553460493683815,
0.012628873810172081,
0.006096296478062868,
0.015186548233032227,
-0.01690094545483589,
0.002456522546708584,
-0.020733168348670006,
0.012474565766751766,
0.010062308982014656,
0.007061236537992954,
-0.004685480613261461,
0.017987338826060295,
0.02413060888648033,
-0.03975726291537285,
0.02908978797495365,
-0.05012241378426552,
0.01916385255753994,
-0.015632232651114464,
-0.03168066218495369,
0.019632546231150627,
0.0014996386598795652,
-0.00938783772289753,
-0.022224292159080505,
-0.009391924366354942,
0.03394654020667076,
-0.06283898651599884,
0.014536774717271328,
-0.01096415240317583,
0.012824335135519505,
-0.035471346229314804,
-0.0035933584440499544,
0.027554554864764214,
-0.04523846507072449,
-0.015838854014873505,
0.014987914822995663,
0.04872153699398041,
0.06184256821870804,
-0.0268805343657732,
-0.013736787252128124,
-0.020082227885723114,
-0.00018130776879843324,
-0.028889596462249756,
-0.005182931665331125,
-0.0569286085665226,
-0.002256962237879634,
-0.01984304003417492,
0.03163618594408035,
-0.027185769751667976,
0.008514268323779106,
-0.005330979358404875,
0.01702943816781044,
-0.0165377426892519,
0.030081991106271744,
0.026639161631464958,
0.021130302920937538,
-0.038024067878723145,
-0.025335991755127907,
0.01574806310236454,
0.028460124507546425,
-0.0009586932719685137,
-0.05052723363041878,
-0.024860134348273277
] | haskell-newbie-currying-mistake | https://markhneedham.com/blog/2012/03/20/haskell-newbie-currying-mistake |
false | 2012-03-29 06:45:59 | Readability/Performance | [
"software-development"
] | [
"Software Development"
] | I recently read the http://www.aosabook.org/en/graphite.html[Graphite chapter] of http://www.aosabook.org/en/index.html[The Architecture of Open Source Applications] book which mostly tells the story of how Chris Davis incrementally built out http://graphite.wikidot.com/[Graphite] - a pretty cool tool that can be used to do real time graphing of metrics.
The whole chapter is a very good read but I found the design reflections especially interesting:
____
One of Graphite's greatest strengths and greatest weaknesses is the fact that very little of it was actually "designed" in the traditional sense. [It] evolved gradually, hurdle by hurdle, as problems arose. Many times the hurdles were foreseeable and various pre-emptive solutions seemed natural. However *it can be useful to avoid solving problems you do not actually have yet, even if it seems likely that you soon will*.
____
One of the main success criteria of the application that I'm currently working on is its performance - it doesn't have millisecond-ish latency requirements but it does need to do a lot of calculations and return within a reasonable amount of time.
Several times we've been working on a bit of code and have written something which is *easy to read but runs in quadratic time* because we have a nested iteration over a collection.
Having this performance requirement in mind has made us think twice about whether we should be looking for a better way of writing that code but that would seem to be a premature optimisation since we don't actually know that this bit of code is going to be the bottleneck.
Instead we've started to put a performance testing infrastructure in place so that we can actually https://github.com/codahale/metrics[gather some data] that tells us where the problems in the code are.
Davis goes on to state the following in his article:
____
The reason is that you can learn much more from closely studying actual failures than from theorizing about superior strategies. Problem solving is driven by both the empirical data we have at hand and our own knowledge and intuition. I've found that doubting your own wisdom sufficiently can force you to look at your empirical data more thoroughly.
____
As I http://www.markhneedham.com/blog/2012/03/28/testing-trying-not-to-overdo-it/[mentioned in my last post] the main logic in our application involves loading a bunch of data from Oracle and then processing various calculations on it.
At the moment we're getting sub second responses from most requests and where that isn't the case the bottleneck has been in one of our database queries rather than in the code.
Maybe eventually we'll want to optimise those bits of code which have quadratic running time and the good thing is that we've abstracted those bits of code so we could optimise that code with minimal impact to the rest of the code base.
I've been working through http://www.algo-class.org[Algo Class] and one of the things that I've learnt is that you only really see problems with algorithms of quadratic running time if you are iterating through really big collections - otherwise it's barely noticeable.
In our case the collections will probably be small so we unlikely to see that problem.
On the other hand we are likely to be repeating the same calculations multiple times so we will probably look to add some caching if that starts to become a problem.
Of course when we do that we'll need to check our performance tests before and after the change to ensure that we've actually addressed a real problem rather than theorised about it!
For now though we're continuing to write our code in the way that is most readable/easy to understand and waiting for our performance tests to force us to change that approach.
'''
I've not worked closely on anything which had proprietary trading style latency requirements so if your experience is different please let me know in the comments. | null | null | [
0.02446621097624302,
0.014062134549021721,
-0.0011480553075671196,
0.06561589986085892,
0.08162005990743637,
0.04574882984161377,
0.006029082927852869,
0.04777764528989792,
0.032988715916872025,
-0.045155491679906845,
0.0017364643281325698,
-0.017802603542804718,
-0.05425843596458435,
0.005399107933044434,
-0.03178885206580162,
0.06794841587543488,
0.06195138767361641,
-0.0038534291088581085,
0.03250948339700699,
0.013657920993864536,
0.035858672112226486,
0.06290093809366226,
0.007337610702961683,
0.050169821828603745,
0.017585864290595055,
0.017130589112639427,
0.02148745022714138,
0.00009607502579456195,
-0.049553047865629196,
-0.009953789412975311,
0.05377928540110588,
0.008045844733715057,
-0.01259568240493536,
-0.030266031622886658,
0.020938746631145477,
-0.017594965174794197,
-0.04526904225349426,
0.02997237630188465,
0.008650432340800762,
-0.00012704392429441214,
-0.06310220062732697,
0.05503404513001442,
-0.01710129901766777,
0.023753218352794647,
-0.040283892303705215,
0.02179151214659214,
-0.036867495626211166,
0.015389320440590382,
-0.005081891547888517,
0.005878074560314417,
-0.07721993327140808,
0.05374133214354515,
-0.010687801986932755,
0.0049078031443059444,
-0.03335196152329445,
0.04693525657057762,
0.028361346572637558,
-0.05100405216217041,
-0.006271520163863897,
-0.04603463038802147,
0.006823108531534672,
-0.014730325900018215,
-0.016085362061858177,
0.02741154097020626,
0.008539572358131409,
-0.032199960201978683,
0.00929924938827753,
0.05430229753255844,
-0.03385346382856369,
0.021316656842827797,
-0.020335594192147255,
0.02848758175969124,
-0.033583253622055054,
0.00956548098474741,
-0.006649791728705168,
-0.04205692932009697,
0.01113311480730772,
0.06497325748205185,
0.02451067976653576,
0.038257576525211334,
-0.007809862960129976,
0.013216733932495117,
0.004029763396829367,
0.025513578206300735,
-0.02279670163989067,
-0.02363668754696846,
-0.0020907316356897354,
-0.022124379873275757,
-0.07608681917190552,
0.07001253217458725,
0.009015193209052086,
-0.07285365462303162,
0.03041028417646885,
0.03394169360399246,
-0.002923791529610753,
-0.003614972112700343,
0.029502566903829575,
0.011525914072990417,
-0.0014374320162460208,
-0.0258339773863554,
-0.016487734392285347,
-0.029468458145856857,
-0.005652257706969976,
0.01938713528215885,
-0.06661492586135864,
-0.01892826519906521,
-0.022634683176875114,
-0.014157474972307682,
-0.00819846149533987,
-0.008784258738160133,
-0.003477909369394183,
0.01049614418298006,
-0.02825160138309002,
-0.014626499265432358,
-0.07569310814142227,
0.06383505463600159,
0.010410676710307598,
-0.04377596080303192,
-0.008449490182101727,
0.0028698709793388844,
0.06003681197762489,
0.05081190541386604,
0.015131580643355846,
0.07646071165800095,
0.0031318441033363342,
0.02271774597465992,
0.01488757599145174,
0.04028588905930519,
-0.013903973624110222,
-0.048872366547584534,
-0.010255941189825535,
0.058016955852508545,
-0.026113202795386314,
-0.01923382841050625,
0.006186213344335556,
-0.0399923101067543,
-0.0033771726302802563,
0.019870556890964508,
0.024601146578788757,
0.048817429691553116,
0.010304177179932594,
-0.06749990582466125,
0.043101951479911804,
0.009819925762712955,
0.017050139605998993,
-0.009876538999378681,
0.016299812123179436,
-0.024495946243405342,
-0.02556767873466015,
-0.011152888648211956,
0.013085223734378815,
0.028900984674692154,
-0.016433358192443848,
-0.04295234754681587,
0.028443440794944763,
0.09052470326423645,
0.03600956127047539,
0.031981460750103,
-0.02074432000517845,
0.034171927720308304,
0.03250662982463837,
0.019757496193051338,
0.008267758414149284,
-0.0037949439138174057,
0.0045066592283546925,
-0.012739946134388447,
0.00004683394217863679,
0.042893655598163605,
-0.013276134617626667,
-0.010480878874659538,
-0.05316789820790291,
-0.04529344290494919,
0.050750281661748886,
-0.06201224774122238,
-0.015517541207373142,
0.043586693704128265,
0.08802904188632965,
0.026377834379673004,
0.024435950443148613,
-0.01863853633403778,
-0.08342207968235016,
0.026750624179840088,
0.030655765905976295,
0.01569329760968685,
0.013004083186388016,
-0.0216233991086483,
0.0937056764960289,
0.01563495211303234,
0.009986773133277893,
0.023616988211870193,
-0.07875844091176987,
-0.08043689280748367,
0.004697701893746853,
-0.03158680722117424,
0.06849982589483261,
-0.025912156328558922,
0.0010564109543338418,
0.04547438398003578,
0.02712809108197689,
0.05072729289531708,
0.01593698188662529,
0.00017906544962897897,
0.027306558564305305,
-0.04473927617073059,
-0.04021795839071274,
0.02569369040429592,
0.046458203345537186,
-0.012676097452640533,
-0.06169300153851509,
-0.011022373102605343,
0.005205048248171806,
-0.03277299553155899,
0.043374091386795044,
-0.03112381137907505,
0.031361307948827744,
0.003349446225911379,
0.056152135133743286,
-0.020049430429935455,
0.06095360219478607,
-0.061820726841688156,
0.0032079436350613832,
-0.005769186653196812,
-0.02147515118122101,
0.024543963372707367,
0.0007511817384511232,
0.11096002161502838,
0.06316044181585312,
-0.05703281983733177,
-0.03188798949122429,
0.02139872871339321,
0.0007090795552358031,
-0.034311890602111816,
0.0030329932924360037,
-0.03652315214276314,
0.0024992728140205145,
-0.010529404506087303,
-0.050151605159044266,
-0.017304619774222374,
0.04496520385146141,
-0.036589786410331726,
-0.013402862474322319,
0.053209803998470306,
-0.022379223257303238,
0.07509024441242218,
-0.0031873779371380806,
-0.013347199186682701,
-0.0017023230902850628,
-0.023312106728553772,
-0.06101645529270172,
-0.00300610507838428,
-0.007722236216068268,
-0.005136686842888594,
0.04233996570110321,
-0.008883821777999401,
-0.033698998391628265,
-0.04527244344353676,
-0.018954357132315636,
-0.0009707759600132704,
0.05490892007946968,
0.06700951606035233,
0.0009372875792905688,
0.03416292369365692,
0.011487799696624279,
0.042150989174842834,
0.016156427562236786,
-0.06804165989160538,
-0.03737281262874603,
-0.04764680936932564,
0.018458519130945206,
0.02709304168820381,
0.014266052283346653,
0.01099069882184267,
0.03049687296152115,
-0.001156606012955308,
0.0005027423612773418,
-0.010728700086474419,
0.03158273547887802,
-0.009703929536044598,
-0.034764450043439865,
-0.02595110610127449,
0.003504872089251876,
0.06661897897720337,
-0.04885013401508331,
-0.017495451495051384,
-0.0023973712231963873,
-0.061599139124155045,
0.06418492645025253,
-0.06609513610601425,
-0.03385816141963005,
0.0010478850454092026,
0.02035745233297348,
0.04537104442715645,
-0.010795500129461288,
0.010003774426877499,
0.08027887344360352,
0.028644584119319916,
-0.001458790386095643,
-0.030085328966379166,
-0.014017937704920769,
0.021784959360957146,
0.0029021664522588253,
-0.008797142654657364,
0.020435616374015808,
0.03324241563677788,
-0.03827349841594696,
-0.04349639639258385,
0.021883897483348846,
-0.04337295889854431,
-0.28809642791748047,
0.029762862250208855,
0.00990396086126566,
-0.05870344489812851,
0.004344269633293152,
-0.007534563075751066,
-0.009351394139230251,
-0.03964001685380936,
-0.028240397572517395,
0.0048682838678359985,
-0.029966162517666817,
-0.025366580113768578,
-0.018231399357318878,
0.05714249610900879,
0.020039742812514305,
0.02227540872991085,
0.03736114501953125,
-0.038177914917469025,
-0.006291728466749191,
0.06427611410617828,
-0.006008189171552658,
-0.07345135509967804,
-0.0020017256028950214,
0.008333169855177402,
0.03169791027903557,
0.02938094176352024,
-0.11217083781957626,
0.032426752150058746,
-0.05944652855396271,
0.006284618750214577,
0.02718397043645382,
-0.00807263981550932,
0.006545402575284243,
-0.0179474875330925,
-0.009579677134752274,
-0.027791131287813187,
0.024743717163801193,
0.004778784234076738,
-0.0101640485227108,
0.01461054477840662,
-0.0012823983561247587,
-0.00952395610511303,
-0.023364713415503502,
0.02131313644349575,
0.06402448564767838,
0.02128898724913597,
-0.07475464791059494,
-0.0028510515112429857,
-0.0063864015974104404,
0.07349341362714767,
-0.04607895016670227,
-0.016062293201684952,
-0.015891611576080322,
0.030320648103952408,
-0.04091818630695343,
-0.04397619515657425,
0.01734052039682865,
-0.007256747223436832,
-0.04395954683423042,
-0.033524900674819946,
-0.013378985226154327,
-0.018074052408337593,
0.010297073982656002,
-0.04217509552836418,
-0.019126085564494133,
-0.04897259175777435,
-0.06011423096060753,
-0.02879364602267742,
0.053028371185064316,
0.016079295426607132,
-0.015285315923392773,
0.031887270510196686,
-0.001312502077780664,
-0.10355596244335175,
0.0003519764868542552,
-0.004799892194569111,
-0.012029895558953285,
-0.0030743253882974386,
0.02337563782930374,
0.05171217396855354,
-0.02598162740468979,
-0.07371379435062408,
0.023326704278588295,
0.013049118220806122,
0.03103153221309185,
-0.016385922208428383,
0.011069810017943382,
0.00631219707429409,
-0.010818555019795895,
-0.003061991184949875,
0.07401560992002487,
-0.017506210133433342,
-0.033541131764650345,
-0.032013751566410065,
0.028591692447662354,
-0.011888459324836731,
0.0437128059566021,
0.003915954846888781,
0.017563603818416595,
0.04646466299891472,
-0.0037619106005877256,
-0.05240284651517868,
0.021595502272248268,
-0.014299297705292702,
-0.02097531594336033,
-0.022916963323950768,
-0.04798965901136398,
0.010782178491353989,
0.06435918062925339,
0.017700903117656708,
-0.007004957180470228,
-0.030333135277032852,
0.013271304778754711,
-0.05088901147246361,
-0.03993866592645645,
-0.02242194302380085,
0.005595015361905098,
0.03728674724698067,
-0.018708301708102226,
-0.006871082354336977,
-0.06277688592672348,
0.01197812333703041,
-0.016543075442314148,
-0.006993540562689304,
-0.05419544130563736,
-0.00750561710447073,
-0.014452711679041386,
-0.02102810889482498,
0.003883546916767955,
0.01773645356297493,
-0.01627100072801113,
0.04968546703457832,
0.020084945484995842,
-0.031049819663167,
0.005160491913557053,
-0.03253122791647911,
-0.05260159820318222,
-0.02815602719783783,
0.011408155784010887,
-0.0016634613275527954,
0.0032935701310634613,
0.03609822317957878,
0.022137807682156563,
0.009833531454205513,
0.04952225461602211,
0.017146006226539612,
0.027423473075032234,
-0.004714323207736015,
0.02545679546892643,
0.0043432386592030525,
0.0006774680223315954,
-0.07060244679450989,
0.03607639670372009,
-0.04664623364806175,
-0.02789115719497204,
-0.036924559623003006,
0.021454093977808952,
-0.00975434947758913,
-0.02530829608440399,
-0.001277397619560361,
0.021965891122817993,
-0.04462880641222,
-0.05593026056885719,
-0.042595889419317245,
0.01383774820715189,
0.0755867063999176,
0.005655298475176096,
0.019038110971450806,
-0.002017031190916896,
-0.02277674898505211,
0.015799403190612793,
0.01326910499483347,
-0.03877435624599457,
-0.010312122292816639,
-0.0010117749916389585,
-0.002037068596109748,
-0.00429619662463665,
-0.009177610278129578,
0.053989049047231674,
0.008695242926478386,
-0.03770757094025612,
-0.035909317433834076,
-0.0009530179086141288,
0.016808876767754555,
0.045868922024965286,
0.007940749637782574,
-0.008219260722398758,
0.011027032509446144,
-0.01579401083290577,
-0.021373866125941277,
-0.015504135750234127,
-0.014008822850883007,
0.0027645365335047245,
0.024407684803009033,
-0.02390267141163349,
-0.06614252179861069,
0.05466683581471443,
0.0069915978237986565,
0.00827774591743946,
-0.0042780679650604725,
-0.0014951362973079085,
0.015050197951495647,
-0.04045671224594116,
0.055286962538957596,
0.06396644562482834,
-0.05703115835785866,
-0.007656445726752281,
0.014577462337911129,
0.02960147336125374,
0.0048229568637907505,
-0.006969523150473833,
-0.04141061380505562,
-0.022315172478556633,
-0.010628510266542435,
0.018741503357887268,
-0.03667720779776573,
-0.03805528208613396,
-0.011950535699725151,
0.001987192314118147,
-0.003646432887762785,
-0.02904665656387806,
-0.0117110013961792,
-0.01989828608930111,
-0.03495948761701584,
-0.014102187007665634,
0.011466694995760918,
-0.024801043793559074,
-0.0036999850999563932,
0.005513206124305725,
-0.03474785014986992,
-0.0005836500786244869,
-0.02230650559067726,
0.012826097197830677,
0.03169628605246544,
0.0025145243853330612,
0.004164635203778744,
-0.04291347786784172,
-0.002588433912023902,
0.008404511027038097,
0.037279922515153885,
-0.024568192660808563,
-0.020267527550458908,
-0.042291466146707535,
0.006637639366090298,
-0.02945624105632305,
0.025060320273041725,
-0.018571337684988976,
-0.0049429284408688545,
0.00138217699714005,
0.06091809645295143,
0.004386189393699169,
0.02119171805679798,
-0.012754588387906551,
-0.03214593231678009,
0.05366114154458046,
-0.05845368653535843,
-0.01579684019088745,
-0.03449840098619461,
-0.0460224375128746,
0.003977835178375244,
-0.016549184918403625,
0.005236426368355751,
-0.03269488736987114,
0.05340488627552986,
0.007227814756333828,
0.04352458938956261,
0.05140651762485504,
0.007450409699231386,
0.03463026136159897,
-0.05176682770252228,
0.01418973132967949,
-0.0909033864736557,
-0.0026523165870457888,
0.014668007381260395,
0.00037907325895503163,
-0.024309637024998665,
-0.005541246850043535,
-0.012650485150516033,
0.049554403871297836,
-0.07640428096055984,
-0.0314527302980423,
0.05022262781858444,
0.0037787214387208223,
-0.01947775110602379,
0.02551696076989174,
-0.059475820511579514,
0.022736333310604095,
0.0227313581854105,
-0.04932700842618942,
-0.017393721267580986,
-0.007990165613591671,
0.05534806847572327,
-0.0018990242388099432,
0.033673230558633804,
-0.03414876013994217,
-0.013285834342241287,
0.07256073504686356,
0.013618569821119308,
0.009985658340156078,
0.04705796018242836,
-0.0038239669520407915,
0.05620469152927399,
0.04452647268772125,
0.018024694174528122,
-0.004617818631231785,
0.018529338762164116,
-0.007839837111532688,
-0.041034236550331116,
0.030978212133049965,
-0.004005732946097851,
-0.03326840698719025,
-0.03630811348557472,
0.05767623707652092,
0.017772821709513664,
-0.02912532538175583,
-0.058081407099962234,
0.005929872393608093,
-0.05749499797821045,
0.013598861172795296,
-0.0072388602420687675,
-0.012332386337220669,
-0.0344996452331543,
0.05836837738752365,
-0.010955600999295712,
-0.001252339337952435,
0.06797170639038086,
0.012545481324195862,
-0.02692752331495285,
-0.021122653037309647,
0.10019910335540771,
0.08716551214456558,
0.04983687773346901,
0.0005871022585779428,
0.0693829208612442,
-0.006605864968150854,
-0.026822244748473167,
0.006521926261484623,
0.003810505149886012,
-0.02608822099864483,
-0.037397630512714386,
0.035118117928504944,
0.054885394871234894,
-0.023928100243210793,
0.06592724472284317,
-0.04958445206284523,
0.0021335550118237734,
0.008550005033612251,
0.04334169998764992,
-0.002526619704440236,
0.07151045650243759,
-0.002779026748612523,
0.028972210362553596,
-0.029460811987519264,
-0.03244077041745186,
-0.0007805261993780732,
-0.043995168060064316,
-0.007161248475313187,
0.048918742686510086,
0.005814938340336084,
0.02651522122323513,
0.022676482796669006,
0.024987202137708664,
0.09014158695936203,
-0.04383373633027077,
0.006299841683357954,
-0.014299191534519196,
0.03409992903470993,
-0.0037836008705198765,
0.015082938596606255,
-0.036317117512226105,
-0.03345600143074989,
-0.00758338812738657,
-0.024033043533563614,
-0.014447852969169617,
-0.019571837037801743,
-0.015158073976635933,
0.03461575135588646,
-0.020421229302883148,
-0.0004235965898260474,
0.02473611943423748,
0.007611571811139584,
-0.0322161540389061,
-0.056552574038505554,
-0.033139437437057495,
-0.02262704446911812,
-0.048642225563526154,
-0.006554293446242809,
0.023520326241850853,
-0.00990001205354929,
-0.04028400033712387,
-0.03261929377913475,
-0.006560381967574358,
-0.03464163467288017,
0.03488830476999283,
-0.06369904428720474,
-0.02983817085623741,
0.009133628569543362,
0.03356606140732765,
0.020263688638806343,
0.01895889639854431,
0.061745088547468185,
-0.0032633638475090265,
0.005137179978191853,
-0.009835682809352875,
0.012601533904671669,
0.008332064375281334,
0.018204351887106895,
0.03491135686635971,
-0.09334468841552734,
0.007110814098268747,
0.007597564719617367,
-0.029612518846988678,
-0.07260051369667053,
0.025239191949367523,
0.017395759001374245,
-0.008438610471785069,
0.05878261849284172,
-0.006422350183129311,
0.012629528529942036,
-0.04234866425395012,
0.004355883691459894,
-0.013016321696341038,
0.007848887704312801,
0.04259929805994034,
-0.031836554408073425,
0.09180556237697601,
0.015126618556678295,
-0.018860049545764923,
-0.016121594235301018,
-0.006202376913279295,
-0.001416279119439423,
0.016114067286252975,
-0.02694297768175602,
-0.025050504133105278,
-0.011996429413557053,
-0.09124761819839478,
-0.02202516794204712,
0.006418087054044008,
-0.02633892372250557,
-0.028549157083034515,
0.02735651098191738,
0.026701677590608597,
-0.03312737122178078,
0.011240256018936634,
-0.05268162861466408,
0.02428971230983734,
-0.03758741915225983,
-0.01603040285408497,
0.010860161855816841,
0.02814723365008831,
-0.006289454642683268,
0.01666240207850933,
0.013760870322585106,
-0.04472070932388306,
-0.006368089467287064,
-0.007044333964586258,
0.030205968767404556,
0.041970059275627136,
0.017310509458184242,
-0.005116465501487255
] | [
-0.06930875778198242,
-0.012096665799617767,
-0.026939529925584793,
-0.018652331084012985,
0.033562880009412766,
-0.029037920758128166,
-0.04805291071534157,
0.023340849205851555,
-0.017719827592372894,
-0.0043446775525808334,
0.021627582609653473,
-0.025479018688201904,
0.005632171873003244,
0.002751136664301157,
0.06640110164880753,
0.0146828293800354,
-0.0070869955234229565,
-0.030481917783617973,
0.031193772330880165,
0.032483797520399094,
0.029306400567293167,
-0.03814774751663208,
-0.05507492274045944,
-0.05973130464553833,
0.034883491694927216,
0.0346430242061615,
0.017886292189359665,
-0.062186770141124725,
-0.002750226529315114,
-0.22646528482437134,
-0.01336686685681343,
-0.001119522494263947,
0.07462954521179199,
-0.03105817176401615,
0.0006089331000111997,
0.04540411755442619,
0.039148688316345215,
0.03265524283051491,
-0.016424667090177536,
0.027545934543013573,
0.025287479162216187,
0.0264043677598238,
-0.049541786313056946,
0.0074957674369215965,
0.019319042563438416,
0.027112364768981934,
0.024816730991005898,
-0.0173936914652586,
-0.038054097443819046,
0.02273007668554783,
-0.06432204693555832,
-0.02134125865995884,
-0.027732545509934425,
-0.00658959848806262,
0.006755752023309469,
0.03844507783651352,
0.03574211522936821,
0.07115732133388519,
0.0013890665723010898,
0.01206237729638815,
0.007255093660205603,
-0.022681433707475662,
-0.11567560583353043,
0.07408007234334946,
0.08126219362020493,
0.04045761749148369,
-0.037830762565135956,
-0.03287719562649727,
-0.02315674163401127,
0.08314145356416702,
0.022938154637813568,
-0.026572927832603455,
-0.005644095130264759,
0.03391312062740326,
0.041148941963911057,
0.01389697939157486,
-0.005977860651910305,
-0.008371853269636631,
0.021727019920945168,
-0.06488244235515594,
-0.025479240342974663,
0.009194816462695599,
-0.012540235184133053,
-0.014138045720756054,
-0.04425353929400444,
0.000875717552844435,
-0.022904353216290474,
0.06655200570821762,
0.06309482455253601,
0.02091580629348755,
0.035947587341070175,
0.010555271059274673,
0.024504419416189194,
0.012191852554678917,
-0.037750910967588425,
-0.026304911822080612,
-0.00016197300283238292,
0.020541617646813393,
-0.025629909709095955,
0.4434490501880646,
-0.028060713782906532,
-0.0004106953856535256,
0.07148143649101257,
0.03215654194355011,
-0.0034838474821299314,
-0.0267957653850317,
0.012658271007239819,
-0.04805327579379082,
0.009021952748298645,
-0.014414514414966106,
0.04503178223967552,
-0.0028406274504959583,
0.02845136448740959,
-0.042427342385053635,
0.011583059094846249,
-0.0030741419177502394,
-0.012597518041729927,
0.024275731295347214,
0.030356602743268013,
0.004474114626646042,
-0.026814283803105354,
0.04085364192724228,
0.016279704868793488,
-0.01673918217420578,
-0.008280912414193153,
-0.045745763927698135,
0.01684768870472908,
0.0426761656999588,
0.00018375770014245063,
0.011238588951528072,
0.05332969129085541,
-0.026405589655041695,
-0.06999524682760239,
0.007291188929229975,
-0.015421266667544842,
0.006019268184900284,
0.05850862339138985,
-0.007323057856410742,
0.013132631778717041,
0.029660169035196304,
0.0016648828750476241,
0.06777152419090271,
0.03363826125860214,
0.003346649929881096,
-0.03549950197339058,
0.10768613964319229,
0.06409252434968948,
-0.031648486852645874,
-0.03302789852023125,
-0.07637035846710205,
0.0023082420229911804,
0.026992114260792732,
-0.025319091975688934,
-0.05215651914477348,
0.004991231951862574,
0.025749705731868744,
0.055977948009967804,
-0.01630990393459797,
-0.04346183314919472,
-0.00940998550504446,
-0.06190113350749016,
-0.011345106177031994,
-0.07990898936986923,
0.060965023934841156,
0.05311860516667366,
-0.07677814364433289,
-0.0032465422991663218,
0.021967437118291855,
0.013146767392754555,
-0.08572333306074142,
0.02270430698990822,
0.015627967193722725,
-0.01917029730975628,
0.0004792529798578471,
0.05038367584347725,
-0.03360896185040474,
-0.040035974234342575,
0.00014856822963338345,
0.055581431835889816,
0.00441775331273675,
0.034616973251104355,
0.029019711539149284,
-0.039820726960897446,
-0.006858495529741049,
-0.042507339268922806,
-0.08181649446487427,
-0.05487372726202011,
0.019004976376891136,
-0.02431100234389305,
0.012654290534555912,
-0.006525991950184107,
-0.010284237563610077,
-0.08345386385917664,
0.0988020971417427,
-0.048724036663770676,
-0.023449722677469254,
0.0118479635566473,
-0.023520953953266144,
-0.07243586331605911,
-0.016868794336915016,
-0.010562131181359291,
0.012553642503917217,
-0.025942569598555565,
0.04972342774271965,
-0.03498947247862816,
0.029065413400530815,
0.033478472381830215,
-0.05321125686168671,
0.06984034180641174,
0.04109008610248566,
-0.050307177007198334,
-0.05512378737330437,
0.009315832518041134,
0.005635807290673256,
-0.009319324046373367,
-0.02618764154613018,
0.04137317091226578,
0.013090775348246098,
0.013604186475276947,
0.055185750126838684,
-0.010748477652668953,
0.005890819244086742,
-0.04592578113079071,
-0.3417968153953552,
-0.05577303469181061,
-0.024624589830636978,
0.028514936566352844,
0.07440850138664246,
-0.05095099285244942,
-0.005117232911288738,
-0.01573224551975727,
-0.01899425871670246,
0.005111487582325935,
0.07312600314617157,
0.004103110171854496,
-0.016034865751862526,
-0.1105106845498085,
-0.004269421566277742,
-0.013798852451145649,
-0.030904097482562065,
-0.03129064664244652,
-0.06688839197158813,
-0.014746198430657387,
-0.014085732400417328,
0.022082313895225525,
-0.03562965244054794,
-0.07246344536542892,
-0.0008371108560822904,
-0.02405897155404091,
0.10475732386112213,
-0.07930818945169449,
0.07363378256559372,
-0.025648197159171104,
0.009859896264970303,
-0.013785671442747116,
0.003083848161622882,
-0.07112259417772293,
-0.00031919419416226447,
-0.000019424933270784095,
0.011325579136610031,
0.014861932024359703,
-0.004767024423927069,
-0.0389336459338665,
-0.05643448233604431,
0.001144931185990572,
-0.029988408088684082,
-0.016687577590346336,
-0.04668157920241356,
0.013977852649986744,
-0.0013266393216326833,
-0.026234649121761322,
-0.034341443330049515,
0.06100287660956383,
0.021774180233478546,
0.013782643713057041,
0.022130372002720833,
0.013082806952297688,
-0.02056964300572872,
-0.051393166184425354,
-0.07097601145505905,
0.034325819462537766,
-0.00006499536539195105,
-0.0008469335734844208,
0.009017711505293846,
0.019711768254637718,
0.019648361951112747,
-0.03024745173752308,
0.025148525834083557,
0.025424383580684662,
0.03088042512536049,
-0.028232790529727936,
0.022553235292434692,
-0.02871682681143284,
0.0267509613186121,
0.11073961108922958,
-0.009646170772612095,
-0.012181952595710754,
0.05532760173082352,
0.016687773168087006,
0.006878334563225508,
0.046425774693489075,
0.06352977454662323,
0.00024290336295962334,
0.0036811870522797108,
0.001746004680171609,
0.02323201112449169,
-0.011277291923761368,
0.006728891748934984,
0.024622812867164612,
-0.016950573772192,
-0.03623194620013237,
0.007310928776860237,
0.01466591190546751,
-0.008024094626307487,
-0.008964397013187408,
-0.03480684012174606,
-0.05480104684829712,
0.05782706290483475,
0.015734905377030373,
-0.2532035708427429,
-0.006668566260486841,
0.07431892305612564,
0.052522383630275726,
-0.018747704103589058,
-0.008974756114184856,
0.04905332624912262,
-0.023571182042360306,
0.03190667927265167,
0.020706040784716606,
-0.017219096422195435,
0.042584482580423355,
-0.009251624345779419,
-0.012947449460625648,
0.040972355753183365,
-0.02058562822639942,
0.052692633122205734,
-0.016233203932642937,
0.01174255833029747,
-0.016297729685902596,
0.04398365318775177,
-0.003930897917598486,
0.17984452843666077,
-0.016464849933981895,
0.018850553780794144,
0.039420370012521744,
0.02112741582095623,
-0.013520481064915657,
0.08600915968418121,
-0.01905859261751175,
-0.0050423284992575645,
0.01232332456856966,
0.042440563440322876,
-0.005464791785925627,
0.012221833691000938,
-0.05312912538647652,
-0.02324189990758896,
0.03702265024185181,
0.011868474073708057,
-0.003233096795156598,
0.042996034026145935,
-0.01583620347082615,
-0.016235334798693657,
0.033773891627788544,
0.07604525238275528,
0.018473749980330467,
-0.014567924663424492,
-0.06451374292373657,
-0.022887097671628,
-0.019241830334067345,
-0.02946198172867298,
-0.05552910268306732,
-0.014424328692257404,
-0.020798807963728905,
-0.025979796424508095,
0.06229529529809952,
0.012806608341634274,
0.012774312868714333,
-0.012652148492634296,
0.0014994465745985508,
-0.00850894395262003,
-0.01500771939754486,
0.09111376106739044,
0.024174829944968224,
0.024982372298836708
] | [
-0.016485104337334633,
0.0317353792488575,
-0.00255231698974967,
0.012266452424228191,
-0.02878260239958763,
-0.027453742921352386,
-0.019135423004627228,
0.023241901770234108,
-0.042879167944192886,
0.04429836571216583,
-0.012009825557470322,
0.016035445034503937,
-0.00864291749894619,
-0.006909260991960764,
0.01581178419291973,
0.00714082783088088,
0.012152936309576035,
0.003565640654414892,
0.04519188031554222,
0.014922448433935642,
-0.024974912405014038,
-0.016581837087869644,
0.011030230671167374,
-0.017594093456864357,
0.023025326430797577,
0.06136185675859451,
-0.02400118112564087,
0.019687693566083908,
0.02561316266655922,
-0.10601632297039032,
-0.003355031367391348,
-0.027745194733142853,
0.002053631702437997,
0.04706843942403793,
-0.025233464315533638,
0.026816388592123985,
0.01665148325264454,
-0.0011612129164859653,
-0.015790237113833427,
0.024329479783773422,
-0.004367003683000803,
0.026355233043432236,
-0.009772177785634995,
0.019851798191666603,
-0.02417858876287937,
-0.020419267937541008,
-0.04515158385038376,
-0.014856449328362942,
-0.008934645913541317,
-0.02310868725180626,
-0.03192988410592079,
-0.007123654242604971,
-0.03165769577026367,
-0.02855600416660309,
0.00187407317571342,
0.016041431576013565,
0.02053126133978367,
-0.006474606692790985,
0.011988501995801926,
0.016343355178833008,
0.0198159608989954,
-0.04474238306283951,
-0.03468143567442894,
-0.04002055525779724,
0.011982329189777374,
0.020583342760801315,
-0.010214784182608128,
0.017129529267549515,
-0.03152089565992355,
0.03508760407567024,
0.009112239815294743,
0.026402419432997704,
-0.07534229010343552,
-0.040819309651851654,
0.011827661655843258,
0.020475126802921295,
0.024536320939660072,
0.006820811424404383,
0.0037738860119134188,
-0.026005813851952553,
-0.03495454415678978,
0.01758675090968609,
-0.021301908418536186,
-0.017459474503993988,
0.0013515350874513388,
0.005750024691224098,
-0.005826662760227919,
0.0033043446019291878,
0.004047769121825695,
-0.014343209564685822,
-0.01680607721209526,
0.058798898011446,
-0.037710390985012054,
0.02164728194475174,
-0.07059118896722794,
0.00795198604464531,
0.07077945023775101,
0.015427716076374054,
-0.006050284020602703,
0.831343948841095,
0.029134659096598625,
-0.00825230497866869,
-0.009309654124081135,
0.009798243641853333,
-0.005030975677073002,
0.0060043735429644585,
-0.003051972948014736,
-0.002057988429442048,
-0.0014762302162125707,
-0.04726756364107132,
-0.01871475763618946,
0.03599861264228821,
0.03553163632750511,
0.05727284774184227,
0.019059104844927788,
0.016622163355350494,
0.010284125804901123,
0.003368283389136195,
0.03367515280842781,
0.020256133750081062,
-0.01861480437219143,
0.040731508284807205,
-0.0013869119575247169,
-0.02299526147544384,
0.0034669223241508007,
-0.1689632385969162,
0.00933150015771389,
-7.796274529312844e-33,
0.04138248413801193,
0.009672081097960472,
0.0035045547410845757,
-0.017987165600061417,
0.002980280201882124,
0.011729832738637924,
-0.02977946400642395,
0.015016977675259113,
-0.011125712655484676,
-0.03625103086233139,
-0.005250027868896723,
-0.029012534767389297,
0.004734984133392572,
0.006510527804493904,
0.05653126910328865,
-0.025452876463532448,
0.023125600069761276,
0.012126756832003593,
0.017732687294483185,
-0.009534567594528198,
0.008037942461669445,
-0.024447213858366013,
-0.007123446092009544,
0.042619504034519196,
0.007504837121814489,
0.002307063899934292,
0.019745437428355217,
0.009205078706145287,
-0.004731231369078159,
-0.05082782730460167,
-0.03161221742630005,
0.0407223217189312,
0.011372790671885014,
-0.026593508198857307,
-0.018761176615953445,
-0.027635948732495308,
-0.025701502338051796,
-0.0007633970817551017,
-0.014195091091096401,
-0.07153437286615372,
-0.04579436779022217,
-0.003928879741579294,
-0.029161786660552025,
-0.0208126213401556,
-0.04818464443087578,
-0.010736753232777119,
0.0009897870477288961,
-0.012678194791078568,
0.02401350438594818,
-0.035634152591228485,
-0.014128664508461952,
0.025057798251509666,
-0.002381416503340006,
0.05121989920735359,
-0.010140138678252697,
0.021176258102059364,
0.009218255989253521,
0.001416540122590959,
-0.011034735478460789,
0.029999911785125732,
0.038944970816373825,
0.0056938789784908295,
0.002871408360078931,
0.015373296104371548,
-0.008396614342927933,
-0.00499668437987566,
0.006629825569689274,
-0.0001338461006525904,
0.0446845218539238,
0.003090027952566743,
-0.042778294533491135,
0.012549865059554577,
-0.013582445681095123,
-0.006721496116369963,
0.0027316659688949585,
0.00020910061721224338,
0.00695350207388401,
-0.011761684902012348,
-0.05298963934183121,
0.006913532968610525,
-0.03056780993938446,
-0.025560470297932625,
0.014700762927532196,
-0.01986568607389927,
-0.002231730381026864,
-0.008849834091961384,
0.05756063759326935,
-0.04759359359741211,
-0.003205582033842802,
0.008981962688267231,
0.03538404405117035,
-0.010856174863874912,
-0.033281195908784866,
-0.028368312865495682,
-0.023111794143915176,
7.968256699677837e-33,
0.009765403345227242,
-0.002735511865466833,
-0.006531357299536467,
0.03520246595144272,
0.01700880378484726,
-0.016013817861676216,
0.011174358427524567,
-0.008923009037971497,
-0.05605817958712578,
0.054708048701286316,
-0.011162024922668934,
-0.040834587067365646,
-0.002110040746629238,
-0.019616130739450455,
0.05517137795686722,
-0.012268374674022198,
0.03150214999914169,
-0.041989054530858994,
0.0411824993789196,
-0.02618400938808918,
0.022481301799416542,
0.0004786711360793561,
0.0007091414881870151,
-0.02814885787665844,
0.05664028227329254,
0.02417665719985962,
-0.03211991861462593,
-0.01982431299984455,
-0.011937083676457405,
-0.030084999278187752,
0.01836675964295864,
-0.00908117275685072,
0.017236052080988884,
-0.015013477765023708,
0.030065640807151794,
0.015328665263950825,
0.01545656006783247,
-0.01298257615417242,
0.018638791516423225,
0.018786022439599037,
0.03882311284542084,
0.01563894748687744,
-0.041659340262413025,
0.029077360406517982,
0.002811528742313385,
0.038881756365299225,
-0.002140352502465248,
0.01851496659219265,
-0.04650615155696869,
0.0260886549949646,
0.004507820587605238,
0.012587206438183784,
0.02586144581437111,
0.006502669770270586,
0.00260432087816298,
-0.0212567076086998,
-0.0017184546450152993,
-0.004363034851849079,
-0.02522822842001915,
0.023100856691598892,
-0.014516351744532585,
-0.014068071730434895,
-0.03837975487112999,
-0.009803399443626404,
-0.04224533587694168,
-0.025614289566874504,
-0.037483591586351395,
-0.014024490490555763,
0.019978061318397522,
0.024453433230519295,
-0.0016484262887388468,
0.02522016316652298,
-0.010115641169250011,
0.04390859976410866,
0.008975944481790066,
0.006006262265145779,
-0.039482466876506805,
0.055055100470781326,
-0.047191720455884933,
0.004206113051623106,
0.011925694532692432,
0.055378157645463943,
0.030361127108335495,
0.006105502136051655,
-0.02171104960143566,
0.017544522881507874,
-0.0071164886467158794,
0.016426309943199158,
-0.04098591208457947,
0.0158957801759243,
-0.007822503335773945,
-0.027549633756279945,
-0.04546599090099335,
0.02677776850759983,
0.01512671448290348,
-1.3531368026065138e-8,
-0.052849456667900085,
0.02063385769724846,
0.008581405505537987,
-0.019807858392596245,
0.022626785561442375,
0.03417174890637398,
0.0440421886742115,
0.04608289897441864,
-0.013612829148769379,
0.026080023497343063,
0.03568534180521965,
-0.061529405415058136,
-0.01575661264359951,
0.005857483949512243,
-0.013166914694011211,
-0.04113679379224777,
-0.012488361448049545,
-0.012883610092103481,
0.03664284199476242,
0.035768527537584305,
0.026395564898848534,
0.0346825085580349,
-0.02434775047004223,
0.026443516835570335,
-0.03444302827119827,
0.0016240797704085708,
0.008904286660254002,
-0.0614783801138401,
-0.027767010033130646,
0.02293374016880989,
-0.018051445484161377,
-0.04384441301226616,
0.0640217661857605,
0.012696225196123123,
-0.01752069778740406,
-0.0016028558602556586,
0.0012707291170954704,
0.005374164320528507,
0.007053488399833441,
0.008325864560902119,
-0.01798415742814541,
0.019557911902666092,
-0.02871249057352543,
-0.023423468694090843,
-0.01033940538764,
-0.02514852024614811,
-0.034193143248558044,
0.0121895931661129,
0.04634765535593033,
-0.04181930795311928,
-0.003769670147448778,
0.003500001970678568,
0.020582493394613266,
0.00936996378004551,
0.06102399155497551,
0.018517112359404564,
-0.012877707369625568,
-0.05036775395274162,
-0.024388762190937996,
0.010637378320097923,
0.01602957956492901,
0.011779369786381721,
-0.03793732449412346,
-0.016215408220887184
] | readabilityperformance | https://markhneedham.com/blog/2012/03/29/readabilityperformance |
false | 2012-03-28 00:10:46 | Testing: Trying not to overdo it | [
"testing"
] | [
"Testing"
] | The design of the code which contains the main logic of the application that I'm currently working on looks a bit like the diagram on the right hand side:
image::{{<siteurl>}}/uploads/2012/03/orchestration-code.gif[Orchestration code,329]
We load a bunch of stuff from an Oracle database, construct some objects from the data and then invoke a sequence of methods on those objects in order to execute our domain logic.
Typically we might expect to see unit level test against all the classes described in this diagram but we've actually been trying out an approach where we don't test the orchestration code directly but rather only test it via the resource which makes use of it.
We originally started off writing some tests around that code but they ended up being really similar to our database and resource tests.
Having them around also made it difficult to change the way the orchestration worked since we'd end up breaking most of the tests when we tried to change anything.
One disadvantage of not testing this code is that we end up using the debugger more when trying to work out why resource tests aren't working since we now have more code being directly tested.
image::{{<siteurl>}}/uploads/2012/03/orchestration-tests2.gif[Orchestration tests2,427]
On the other hand we've been forced to drive logic into the domain objects as a result since we don't have any other place to test that functionality from.
Testing directly against the domain objects is much easier since everything's in memory and we can easily setup the data to be how we want it to be and inject it into the objects.
Another approach we could have taken would be to mock out the dependencies of the orchestration code but since this code is mostly coordinating other classes there are a lot of dependencies and the tests ended up being quite complicated and brittle.
Initially I was of the opinion that it wasn't a good idea to not test the orchestration code but looking back a month later I think it's working reasonably well and putting this constraint on ourselves has made the code easier to change while still being well tested. | null | null | [
0.028379181399941444,
0.0007337990100495517,
-0.021971188485622406,
0.06391963362693787,
0.10182708501815796,
-0.0073356954380869865,
0.007806065957993269,
0.04221418499946594,
0.03558038920164108,
-0.03082663007080555,
-0.0069849854335188866,
-0.007308072876185179,
-0.07162482291460037,
0.021041011437773705,
-0.025034211575984955,
0.08600026369094849,
0.06435288488864899,
-0.005194948520511389,
0.056856002658605576,
-0.01308278739452362,
0.034944746643304825,
0.06727022677659988,
-0.03123706765472889,
0.05470232293009758,
0.02414027787744999,
0.01858554407954216,
0.013460921123623848,
0.0022036905866116285,
-0.054810523986816406,
-0.03121897578239441,
0.0473899245262146,
0.011789937503635883,
0.00004177947266725823,
0.011535626836121082,
0.005786977242678404,
0.00637716893106699,
-0.034663133323192596,
0.0275876447558403,
0.0006399565027095377,
-0.0016873248387128115,
-0.06960393488407135,
0.04201822727918625,
0.0004997344221919775,
-0.002053281292319298,
-0.04824052006006241,
-0.006548673380166292,
-0.0561823695898056,
0.008705966174602509,
-0.01859406754374504,
0.0019152956083416939,
-0.0815461128950119,
0.02349143847823143,
-0.028816379606723785,
-0.009390424937009811,
-0.011054770089685917,
0.05471102148294449,
0.0210267324000597,
-0.05209777131676674,
0.015544614754617214,
-0.05346141383051872,
-0.010982413776218891,
0.020128626376390457,
-0.01488842535763979,
0.0217105895280838,
0.02190048061311245,
-0.022248582914471626,
-0.01732533611357212,
0.05124593526124954,
-0.03302579000592232,
-0.008323983289301395,
-0.0006995496223680675,
0.002847183495759964,
-0.0036354826297611,
-0.00801385659724474,
0.004619003273546696,
-0.04473881050944328,
-0.007452104240655899,
0.0589965358376503,
-0.005479727406054735,
0.05176283419132233,
-0.021495772525668144,
0.008365124464035034,
0.02070583589375019,
0.004956043791025877,
0.02076251618564129,
-0.02983247861266136,
-0.038339752703905106,
0.010091562755405903,
-0.044158756732940674,
0.06505578756332397,
0.033475834876298904,
-0.06426912546157837,
0.020984305068850517,
0.028745079413056374,
-0.001035092631354928,
0.016611741855740547,
0.012304773554205894,
0.017270352691411972,
0.013211162760853767,
-0.0017775576561689377,
-0.0320357047021389,
-0.0004649658512789756,
0.01290795486420393,
0.007035336457192898,
-0.07438162714242935,
-0.018200213089585304,
-0.03091687150299549,
-0.026812994852662086,
-0.012628352269530296,
-0.011255031451582909,
-0.017534539103507996,
0.0000766471421229653,
-0.031629133969545364,
-0.003739304607734084,
-0.07543163001537323,
0.08775211125612259,
0.006579316221177578,
-0.01538673136383295,
-0.006577189080417156,
0.0027864642906934023,
0.06628712266683578,
0.023955518379807472,
-0.019548628479242325,
0.09255339205265045,
0.007898046635091305,
0.028621623292565346,
-0.037174444645643234,
0.06724319607019424,
-0.009961063973605633,
-0.04758036509156227,
-0.004175561014562845,
0.042575519531965256,
-0.022524116560816765,
0.005121876485645771,
0.0012383179273456335,
-0.012540670111775398,
-0.012324037030339241,
-0.004490142688155174,
0.035821352154016495,
0.03634408861398697,
-0.011523742228746414,
-0.06272321194410324,
0.011166577227413654,
-0.006619967520236969,
0.011223983950912952,
-0.00013262116408441216,
0.01103783305734396,
-0.0321696437895298,
0.0004903412773273885,
0.010289047844707966,
0.016981283202767372,
0.03319288790225983,
0.00949903205037117,
-0.032438188791275024,
0.030051425099372864,
0.11890333890914917,
0.0323573462665081,
0.012669369578361511,
-0.003919698763638735,
0.03319469466805458,
0.015134784393012524,
0.03591933101415634,
0.027538619935512543,
0.03214692696928978,
0.023476220667362213,
0.00646284781396389,
-0.015399979427456856,
0.051442306488752365,
-0.007815249264240265,
0.00582103943452239,
-0.07824507355690002,
-0.07468586415052414,
0.07561271637678146,
-0.04254423826932907,
-0.022145099937915802,
0.03580063208937645,
0.09158902615308762,
0.016402116045355797,
0.046393003314733505,
0.018016457557678223,
-0.07648101449012756,
0.01362276915460825,
0.008095958270132542,
0.0005202008178457618,
0.023271892219781876,
-0.020265253260731697,
0.06768236309289932,
0.006888874806463718,
-0.005396884400397539,
0.03494519367814064,
-0.07751934975385666,
-0.08233948051929474,
-0.01309120375663042,
-0.0071648466400802135,
0.05069095641374588,
-0.005129824858158827,
-0.005874409340322018,
0.07254309207201004,
0.025977788493037224,
0.03692617639899254,
0.04150998964905739,
0.02117631770670414,
0.003981162328273058,
-0.039526693522930145,
-0.02605654112994671,
0.03631555661559105,
0.03617364168167114,
-0.024529295042157173,
-0.05177539587020874,
-0.022285884246230125,
-0.007693235296756029,
-0.008888734504580498,
0.04281547665596008,
-0.015177850611507893,
0.040790196508169174,
0.007205356378108263,
0.03433104604482651,
-0.03477534279227257,
0.05383053049445152,
-0.07509313523769379,
0.015242618508636951,
-0.013859204947948456,
-0.027624372392892838,
-0.013017705641686916,
-0.004803953226655722,
0.11260420829057693,
0.06093769520521164,
-0.006688746623694897,
-0.05998632684350014,
0.04592942073941231,
0.0006268933648243546,
-0.05751308053731918,
-0.004552439786493778,
-0.022086966782808304,
0.01354933250695467,
0.0043798089027404785,
-0.04652339592576027,
-0.010396515019237995,
0.00374546367675066,
-0.030457893386483192,
0.021041372790932655,
0.06376270949840546,
-0.01958617940545082,
0.04641382023692131,
-0.015699658542871475,
-0.022616185247898102,
0.01552588865160942,
-0.04207691550254822,
-0.04413487762212753,
0.032567985355854034,
0.020156115293502808,
-0.00945629645138979,
0.05831664428114891,
-0.017649082466959953,
-0.02873193845152855,
-0.021245582029223442,
-0.02070467919111252,
0.013519953936338425,
0.0056465379893779755,
0.046767864376306534,
-0.001371606602333486,
0.04376029223203659,
-0.01284583006054163,
0.0221476461738348,
0.010576323606073856,
-0.049911998212337494,
-0.025708070024847984,
-0.007063961122184992,
-0.006804672535508871,
0.031898245215415955,
0.016828307881951332,
0.00524957524612546,
0.05482110008597374,
-0.0005732090212404728,
-0.02894100546836853,
-0.019068805500864983,
0.017955424264073372,
0.02608543261885643,
-0.02691076695919037,
-0.030842913314700127,
-0.01766856759786606,
0.0560772679746151,
-0.03359878808259964,
-0.01735837571322918,
0.007287818938493729,
-0.08352362364530563,
0.047469522804021835,
-0.08595886081457138,
-0.0777667760848999,
0.011958518996834755,
0.03438897058367729,
0.03219907358288765,
-0.001966116251423955,
0.002993730828166008,
0.07596933096647263,
0.006861294154077768,
0.007229824084788561,
-0.0010130510199815035,
0.018160182982683182,
0.023723507300019264,
-0.023183079436421394,
0.006853883620351553,
0.025856105610728264,
-0.0038157410454005003,
-0.012743017636239529,
-0.04631991311907768,
0.033942461013793945,
-0.007479441352188587,
-0.2748190462589264,
0.019816691055893898,
-0.015965955331921577,
-0.04007267206907272,
0.028867851942777634,
-0.026246869936585426,
-0.002249411540105939,
-0.04145246744155884,
-0.023668350651860237,
0.02208966203033924,
-0.025554178282618523,
-0.05897843465209007,
0.005129348021000624,
0.057012446224689484,
-0.010328423231840134,
0.03835691884160042,
0.0226268507540226,
-0.028935272246599197,
0.006684240885078907,
0.03154229745268822,
-0.020210368558764458,
-0.07459349930286407,
0.016497280448675156,
0.031826749444007874,
0.01881472021341324,
0.04294313117861748,
-0.08617162704467773,
0.04752808064222336,
-0.04640129581093788,
-0.02675219438970089,
0.03363775089383125,
-0.02117735706269741,
-0.0066764079965651035,
-0.012496714480221272,
-0.017560699954628944,
-0.010617118328809738,
0.024061718955636024,
0.0036698132753372192,
-0.0023926065769046545,
0.01964443363249302,
-0.013817843981087208,
-0.03831653669476509,
-0.023008882999420166,
0.011611324734985828,
0.05864385887980461,
-0.023068362846970558,
-0.05829871445894241,
-0.008062656968832016,
-0.024474067613482475,
0.0866813063621521,
-0.02083447016775608,
-0.01402728445827961,
0.004218215588480234,
0.03408392146229744,
-0.0374380499124527,
-0.01731264591217041,
0.0036923589650541544,
0.01637875847518444,
-0.04652402549982071,
-0.028664132580161095,
-0.031602293252944946,
-0.05616471916437149,
0.005304241552948952,
-0.03783305361866951,
-0.009693067520856857,
-0.04921068996191025,
-0.05405381694436073,
-0.01221693679690361,
0.07510993629693985,
0.034051019698381424,
-0.013005290180444717,
0.025496361777186394,
0.004583684727549553,
-0.11252118647098541,
-0.018165692687034607,
-0.02921479381620884,
0.004890971817076206,
-0.024313855916261673,
0.009235840290784836,
0.032955266535282135,
-0.02016390673816204,
-0.03983673080801964,
0.03523894399404526,
0.026261890307068825,
0.012529643252491951,
0.00036345465923659503,
0.0488516129553318,
-0.0006883738096803427,
0.00039108283817768097,
0.02479330450296402,
0.08267558366060257,
-0.0011401146184653044,
-0.0206579752266407,
-0.03285568207502365,
-0.00284846150316298,
0.011622757650911808,
0.02573252096772194,
-0.0009372550412081182,
-0.0005644804332405329,
0.019224783405661583,
0.008214594796299934,
-0.05131157860159874,
0.03727465867996216,
0.006998027209192514,
-0.015007851645350456,
-0.044999364763498306,
-0.04554996266961098,
0.03784845769405365,
0.020097609609365463,
0.02706143632531166,
-0.0029543288983404636,
-0.03194480761885643,
0.017358243465423584,
-0.07212194055318832,
-0.04228188842535019,
-0.028158389031887054,
0.02184048481285572,
0.027123097330331802,
-0.008687684312462807,
-0.021980900317430496,
-0.03709177300333977,
0.025459490716457367,
0.027197135612368584,
0.008906989358365536,
-0.05395021289587021,
-0.03057948127388954,
-0.020892586559057236,
-0.027032626792788506,
0.01323714293539524,
0.018437370657920837,
0.01678430661559105,
0.03698466718196869,
0.0017682610778138041,
-0.030439181253314018,
0.007565334439277649,
-0.023480860516428947,
-0.043182939291000366,
-0.024957742542028427,
-0.014716006815433502,
-0.0005870740860700607,
0.008742502890527248,
0.02428029291331768,
0.0010200714459642768,
0.00926242582499981,
0.023999731987714767,
-0.015385852195322514,
0.05287395417690277,
-0.0025410230737179518,
0.01450077723711729,
0.009614859707653522,
-0.005711813922971487,
-0.07597868144512177,
0.012173407711088657,
-0.04934275522828102,
-0.023241741582751274,
-0.01670704409480095,
0.013149905949831009,
-0.01609088107943535,
-0.01612705923616886,
-0.02469542622566223,
-0.006264487747102976,
-0.0667739063501358,
-0.04531962051987648,
-0.017399515956640244,
0.0023884212132543325,
0.07389732450246811,
-0.033710360527038574,
0.03171924501657486,
-0.028219180181622505,
-0.04321581870317459,
0.022313125431537628,
0.016032639890909195,
-0.0074613881297409534,
0.00989509280771017,
0.010798721574246883,
-0.006860179826617241,
0.0035434463061392307,
0.007193773053586483,
0.04715906083583832,
0.03381070867180824,
-0.012382996268570423,
-0.0365259051322937,
0.02348931133747101,
-0.010696008801460266,
0.05544615164399147,
0.01914335787296295,
-0.026073507964611053,
-0.0021496170666068792,
0.0076592424884438515,
-0.011113157495856285,
-0.061858631670475006,
-0.022478049620985985,
-0.014969823881983757,
0.016456110402941704,
-0.03687543421983719,
-0.07865121960639954,
0.056789498776197433,
0.020758014172315598,
-0.004011694807559252,
-0.012850150465965271,
0.03370128571987152,
0.01573101244866848,
-0.04153895378112793,
0.027013281360268593,
0.04456726089119911,
-0.050748974084854126,
0.0006827703909948468,
0.003059825161471963,
0.025683963671326637,
0.009118816815316677,
0.012180078774690628,
-0.05081910267472267,
-0.03741506487131119,
-0.006173507776111364,
-0.005558965262025595,
-0.020555902272462845,
-0.020818976685404778,
-0.03796106576919556,
0.006905215792357922,
-0.007554076611995697,
-0.028081193566322327,
0.011151124723255634,
-0.0067066592164337635,
-0.0024663261137902737,
-0.02780493162572384,
0.01646191067993641,
-0.023552894592285156,
-0.0020862137898802757,
0.012728587724268436,
-0.04374277964234352,
0.026476813480257988,
-0.02499326877295971,
0.004431987181305885,
-0.0009986314689740539,
0.0004653724317904562,
-0.03536323830485344,
-0.01689901016652584,
-0.0004550037265289575,
0.02054823935031891,
0.016634685918688774,
-0.005385673604905605,
0.006602206267416477,
-0.014828357845544815,
-0.00832006148993969,
-0.02127281203866005,
0.033095583319664,
-0.016833288595080376,
-0.028458846732974052,
0.020178139209747314,
0.06693682074546814,
0.021844498813152313,
0.03336217254400253,
0.013837335631251335,
-0.010216830298304558,
0.05751064047217369,
-0.08802418410778046,
-0.01024921890348196,
-0.03431297838687897,
-0.0848679170012474,
0.024329515174031258,
0.008780389092862606,
0.020009271800518036,
0.008243822492659092,
0.017395833507180214,
0.01511433720588684,
0.02621648833155632,
0.035112928599119186,
-0.002272044774144888,
0.05318984016776085,
-0.06562894582748413,
0.02207270823419094,
-0.07625221461057663,
0.013211957179009914,
0.02302149310708046,
0.0011984506854787469,
-0.029692238196730614,
-0.003183143911883235,
-0.056447066366672516,
0.08416307717561722,
-0.050993263721466064,
-0.000815694744233042,
0.05306806042790413,
0.028652701526880264,
-0.012966621667146683,
0.003215090837329626,
-0.07115976512432098,
0.03275546804070473,
0.03482672944664955,
-0.03923361375927925,
-0.012683399021625519,
0.0002854167250916362,
0.04168812930583954,
0.02251255139708519,
0.004968926776200533,
-0.03642359375953674,
-0.010710781440138817,
0.08228261023759842,
0.009036351926624775,
0.025641020387411118,
0.0314568467438221,
-0.0004389481036923826,
0.05703859403729439,
0.004279048647731543,
-0.0004462612560018897,
-0.010996107012033463,
0.02195628173649311,
-0.009764714166522026,
-0.05661825090646744,
0.039014630019664764,
-0.01272877398878336,
-0.02612260729074478,
-0.0634506344795227,
0.0701957419514656,
0.008144499734044075,
-0.016861548647284508,
-0.028174394741654396,
0.005456330720335245,
-0.05589601770043373,
-0.019086340442299843,
-0.016151538118720055,
-0.02246776781976223,
-0.027541805058717728,
0.06904198229312897,
-0.0034939462784677744,
0.013345385901629925,
0.07661985605955124,
0.005337000824511051,
-0.030628768727183342,
-0.014299530535936356,
0.0764915719628334,
0.08233409374952316,
0.04295369237661362,
0.02113114297389984,
0.06269066780805588,
-0.012436031363904476,
-0.04467751458287239,
0.014087886549532413,
-0.024073660373687744,
-0.015223552472889423,
-0.02807365357875824,
0.018820704892277718,
0.06252064555883408,
-0.01627938635647297,
0.05885696038603783,
-0.012094084173440933,
0.0010847140802070498,
0.01971685141324997,
0.006482775788754225,
0.012855255044996738,
0.053780991584062576,
0.01502225361764431,
0.0057871402241289616,
-0.006324706133455038,
-0.0315878689289093,
0.023632951080799103,
-0.046271275728940964,
-0.026529764756560326,
0.036488570272922516,
0.0088394396007061,
-0.006526993587613106,
0.013172797858715057,
0.011020198464393616,
0.0779176577925682,
-0.01850154809653759,
0.017731700092554092,
-0.008528076112270355,
0.027356259524822235,
0.022176701575517654,
-0.0008926509763114154,
-0.022770056501030922,
-0.024656834080815315,
-0.004762283060699701,
-0.02318689599633217,
-0.022313125431537628,
-0.022678043693304062,
-0.028320875018835068,
0.05357769504189491,
-0.008645146153867245,
0.001980235567316413,
0.01286579854786396,
0.009800114668905735,
-0.021628929302096367,
-0.058996859937906265,
-0.06597486138343811,
-0.03882481902837753,
-0.06723375618457794,
-0.02817896008491516,
0.03422999382019043,
-0.011790871620178223,
-0.02917042374610901,
-0.02158902771770954,
-0.03028925321996212,
-0.025008974596858025,
0.013164669275283813,
-0.019188111647963524,
-0.03677821904420853,
0.03139865770936012,
0.016123780980706215,
0.034095775336027145,
-0.0017417464405298233,
0.06632991880178452,
0.00991608016192913,
0.019132738932967186,
-0.04901175945997238,
0.00014712853590026498,
0.018319368362426758,
-0.0010618915548548102,
0.02327701821923256,
-0.08196913450956345,
-0.016723688691854477,
0.008490754291415215,
-0.003328746184706688,
-0.07056301832199097,
0.03536742925643921,
0.0015071392990648746,
-0.01824197918176651,
0.07279632985591888,
-0.04635808989405632,
0.019502708688378334,
-0.0017374989110976458,
-0.0368075929582119,
-0.004391297232359648,
0.027314724400639534,
0.03397531807422638,
-0.03191409260034561,
0.08455544710159302,
0.03091171197593212,
-0.032108157873153687,
-0.024673933163285255,
0.01719113439321518,
-0.028142882511019707,
0.013255300000309944,
-0.035435181111097336,
-0.03521839901804924,
-0.04138224944472313,
-0.07480992376804352,
-0.039296314120292664,
0.02763606235384941,
-0.04180030897259712,
-0.041061267256736755,
0.0014151951763778925,
0.014724668115377426,
-0.056384410709142685,
0.01972571201622486,
-0.03928346186876297,
0.031417395919561386,
-0.03833870589733124,
-0.02691655233502388,
0.02837570570409298,
0.017477722838521004,
0.00156437698751688,
0.031745556741952896,
0.026595912873744965,
-0.032008763402700424,
-0.025997085496783257,
-0.004881818778812885,
0.02507995069026947,
0.03185710310935974,
0.012245682999491692,
0.007379887159913778
] | [
-0.07853852212429047,
-0.00692317821085453,
-0.006721892859786749,
-0.0658302754163742,
0.054666999727487564,
-0.04958390071988106,
-0.015453207306563854,
0.010706517845392227,
-0.015617265366017818,
-0.04395280033349991,
-0.011495676822960377,
0.0009081545867957175,
-0.024981550872325897,
-0.02381972037255764,
0.09297958761453629,
-0.01565011963248253,
-0.02872202917933464,
-0.04640533775091171,
-0.004992385860532522,
0.034847501665353775,
0.01942121982574463,
-0.015139683149755001,
-0.07066569477319717,
-0.01831320859491825,
0.001365888980217278,
0.06873759627342224,
0.04732734337449074,
-0.021136188879609108,
0.0032191844657063484,
-0.19183281064033508,
0.023087332025170326,
-0.015938710421323776,
0.01722928322851658,
-0.02836865559220314,
0.006231007631868124,
0.03145179525017738,
-0.0016936622560024261,
0.0007319611613638699,
-0.0280979685485363,
0.05949405953288078,
0.04906319081783295,
0.02933790162205696,
-0.06893481314182281,
-0.02074442431330681,
0.009402543306350708,
-0.02419501543045044,
-0.0018308169674128294,
-0.04467642679810524,
-0.02324293553829193,
0.023631222546100616,
-0.03571302071213722,
-0.002101086312904954,
-0.011429349891841412,
-0.026336805894970894,
-0.022416679188609123,
0.0038406434468925,
0.029443712905049324,
0.07358726859092712,
0.020070880651474,
0.01438888069242239,
-0.009296934120357037,
-0.042215678840875626,
-0.13611294329166412,
0.09562300145626068,
0.03849826380610466,
0.04193050414323807,
-0.007121507544070482,
-0.02219017967581749,
-0.018945222720503807,
0.11987032741308212,
0.016616223379969597,
-0.013163823634386063,
-0.019752228632569313,
0.058718279004096985,
0.016959667205810547,
0.00829459261149168,
0.0018661587964743376,
-0.01157084759324789,
0.05176113545894623,
-0.04908513277769089,
-0.04634435847401619,
-0.04124029725790024,
-0.0019544498063623905,
0.011599925346672535,
-0.025114495307207108,
0.007499939762055874,
-0.02361483871936798,
0.06314394623041153,
0.05177420750260353,
0.04226560890674591,
0.033064160495996475,
-0.026464426890015602,
0.024648187682032585,
0.001571298111230135,
-0.049899984151124954,
0.013102009892463684,
-0.03470452502369881,
-0.009732846170663834,
-0.025373470038175583,
0.41070178151130676,
-0.024010108783841133,
-0.015826884657144547,
0.031117595732212067,
0.036487825214862823,
0.011193164624273777,
0.0034008314833045006,
0.03729068860411644,
-0.03467173874378204,
0.0264947060495615,
-0.013086647726595402,
0.01838766410946846,
0.014022012241184711,
0.04661411792039871,
-0.056073326617479324,
-0.004595309495925903,
0.03155762329697609,
0.009701225906610489,
0.011508000083267689,
-0.04236699268221855,
0.00008902635454433039,
-0.004051349125802517,
-0.011656799353659153,
0.018483975902199745,
0.014150403439998627,
0.013766168616712093,
-0.01877974532544613,
0.036000851541757584,
0.05169057473540306,
0.02504776418209076,
-0.008811475709080696,
0.0551823154091835,
-0.0639234408736229,
-0.0764107033610344,
-0.02584158442914486,
-0.009479469619691372,
0.003975825384259224,
0.035158757120370865,
-0.007107522804290056,
-0.030417976900935173,
0.041834015399217606,
-0.023411285132169724,
0.003725223010405898,
0.05570079758763313,
-0.029591692611575127,
-0.043786466121673584,
0.10463515669107437,
0.00985888671129942,
-0.011325954459607601,
-0.028333324939012527,
-0.026913965120911598,
0.018898140639066696,
0.025419514626264572,
0.0015860196435824037,
-0.06037919223308563,
-0.01279818918555975,
0.01652073673903942,
0.04612298309803009,
0.020587638020515442,
-0.053377702832221985,
-0.016465695574879646,
-0.030669620260596275,
-0.01799018494784832,
-0.028064247220754623,
0.06967899203300476,
0.02193906530737877,
-0.09584999829530716,
-0.029870564118027687,
-0.010104662738740444,
0.04927161708474159,
-0.0673607587814331,
-0.03568180277943611,
0.004924357868731022,
-0.01930924318730831,
-0.025990882888436317,
0.03947846591472626,
-0.038327332586050034,
-0.0024599756579846144,
0.04247394949197769,
0.04989565163850784,
0.031987082213163376,
0.009570558555424213,
0.014145690016448498,
-0.04284023120999336,
0.006872746627777815,
-0.025520946830511093,
-0.07674704492092133,
-0.05347767472267151,
-0.014235864393413067,
-0.052015144377946854,
-0.021353643387556076,
-0.05037664249539375,
0.020572785288095474,
-0.09844271838665009,
0.09511242806911469,
-0.028816713020205498,
-0.043521203100681305,
0.02745477482676506,
-0.02491658926010132,
-0.03154721111059189,
0.005250738933682442,
0.02904306910932064,
0.04501572623848915,
-0.025677364319562912,
0.0364798903465271,
-0.04969276115298271,
0.0646534189581871,
0.053506556898355484,
-0.04134657606482506,
0.03585907071828842,
0.0350012332201004,
-0.030829057097434998,
-0.02172764763236046,
0.006227968260645866,
0.031914860010147095,
0.004615765530616045,
-0.024319974705576897,
-0.01109135989099741,
0.03591225668787956,
-0.0047805351205170155,
0.008211652748286724,
-0.02752166986465454,
0.0011251454707235098,
0.01080196350812912,
-0.3490810990333557,
-0.03508639708161354,
-0.034306325018405914,
-0.011784913949668407,
0.002069355919957161,
-0.03754741698503494,
0.029688263311982155,
-0.005881465971469879,
-0.03875061124563217,
-0.03257899731397629,
0.08518975228071213,
0.0012441527796909213,
0.003304223297163844,
-0.08012623339891434,
-0.0009274024050682783,
-0.004534425213932991,
-0.04802145063877106,
-0.033612120896577835,
-0.04251363128423691,
0.019185200333595276,
0.002771314000710845,
-0.011866586282849312,
0.01712733693420887,
-0.07441962510347366,
-0.009226223453879356,
-0.038699906319379807,
0.08966424316167831,
-0.044468168169260025,
0.12557518482208252,
-0.029394032433629036,
0.05908186361193657,
0.004414448980242014,
0.034273911267519,
-0.08850850909948349,
0.01926618255674839,
-0.021316027268767357,
-0.005348451901227236,
0.009042944759130478,
0.0429159440100193,
-0.03846639022231102,
-0.06737077981233597,
0.011483621783554554,
-0.05335358902812004,
-0.023794282227754593,
-0.012966151349246502,
-0.018095863983035088,
-0.01308290846645832,
-0.03508953005075455,
-0.03430769965052605,
0.05067182704806328,
-0.0014800953213125467,
-0.019313134253025055,
0.0026837538462132215,
0.02811768837273121,
0.012738111428916454,
-0.011192274279892445,
-0.061804305762052536,
0.0015768478624522686,
0.0056684925220906734,
0.014680299907922745,
0.03993607312440872,
0.08122088760137558,
0.033347662538290024,
-0.03561003506183624,
0.03467072173953056,
-0.013749250210821629,
0.0008501125848852098,
-0.016939150169491768,
0.0958552435040474,
-0.055153414607048035,
-0.0077199554070830345,
0.10960345715284348,
-0.006949515547603369,
-0.03546498343348503,
0.04910121485590935,
0.02681233361363411,
-0.02666255086660385,
0.013633303344249725,
0.03201758861541748,
0.008727640844881535,
0.015298725105822086,
0.007229498587548733,
0.010821287520229816,
-0.06962310522794724,
-0.009209253825247288,
0.06745374202728271,
-0.004570724442601204,
-0.00899047963321209,
0.0552511103451252,
-0.024672023952007294,
-0.02134048193693161,
0.003969815094023943,
-0.017004525288939476,
-0.04775317385792732,
0.0874706357717514,
0.013228648342192173,
-0.25406572222709656,
-0.0014407107373699546,
0.07685655355453491,
0.060492970049381256,
-0.02316945791244507,
0.004546111915260553,
0.07406532019376755,
-0.02979450672864914,
0.0023835343308746815,
-0.02892899140715599,
0.03065100498497486,
0.008328073658049107,
0.006503507029265165,
-0.012270952574908733,
0.04048657417297363,
0.00309106707572937,
0.0687062069773674,
-0.01679837331175804,
0.027007022872567177,
-0.0013901039492338896,
0.004084425512701273,
-0.027826277539134026,
0.16976039111614227,
0.0044835652224719524,
0.027573924511671066,
0.023668067529797554,
0.04294668883085251,
0.0323755256831646,
0.07331826537847519,
0.01766381226480007,
0.01178940013051033,
-0.011863444931805134,
0.053993161767721176,
-0.014771290123462677,
-0.0031849760562181473,
-0.06431590765714645,
0.023664996027946472,
0.022618962451815605,
0.03892071172595024,
-0.004027221817523241,
0.011157985776662827,
-0.02382955141365528,
-0.011686055921018124,
0.03435661643743515,
0.07234074920415878,
0.021309617906808853,
0.002842805813997984,
-0.04229415953159332,
-0.03249671682715416,
-0.006165618076920509,
-0.036000482738018036,
-0.07311006635427475,
0.019182803109288216,
-0.015743860974907875,
-0.012862016446888447,
0.08612849563360214,
0.005976059008389711,
-0.02769889496266842,
0.005376714281737804,
0.017855899408459663,
0.016737421974539757,
-0.025306461378932,
0.12119799107313156,
0.03625498712062836,
0.017753662541508675
] | [
0.01549951359629631,
0.00644159410148859,
-0.005214785225689411,
0.02347739227116108,
-0.030117610469460487,
-0.01344089861959219,
-0.011873293668031693,
0.004532970022410154,
0.018547696992754936,
0.009679504670202732,
-0.03374801576137543,
-0.009969623759388924,
0.02375233918428421,
-0.026785749942064285,
0.07987965643405914,
-0.026084186509251595,
0.057831935584545135,
-0.019383937120437622,
0.021457644179463387,
-0.01595015823841095,
-0.007047601509839296,
0.01063750870525837,
-0.04874597117304802,
-0.027923686429858208,
0.05205047130584717,
-0.024775400757789612,
-0.043597687035799026,
-0.00376476114615798,
0.013432852923870087,
-0.09450188279151917,
-0.0032871284056454897,
0.02370564267039299,
-0.03921906277537346,
0.020941631868481636,
0.01425850484520197,
0.02415449358522892,
0.053292855620384216,
-0.0015370442997664213,
-0.030762644484639168,
0.052688002586364746,
0.07711842656135559,
-0.0033587845973670483,
0.01933315582573414,
-0.008241629227995872,
-0.012032072991132736,
-0.017253682017326355,
-0.02221016213297844,
-0.035918205976486206,
-0.0011630072258412838,
0.012965833768248558,
-0.019146928563714027,
-0.02584858611226082,
-0.00758620910346508,
0.02293134666979313,
0.011238977313041687,
0.021462256088852882,
0.0018594292923808098,
-0.007153811398893595,
-0.0012627671239897609,
0.0186162106692791,
-0.011687705293297768,
-0.0031042504124343395,
-0.008770948275923729,
-0.0378180630505085,
-0.024600375443696976,
-0.002738766372203827,
0.035692714154720306,
0.015352766960859299,
-0.008250812068581581,
-0.015141299925744534,
0.017593158408999443,
-0.005623830948024988,
-0.028355661779642105,
-0.013523261994123459,
0.02169717662036419,
0.04595290124416351,
0.014912211336195469,
-0.047069136053323746,
0.013103692792356014,
-0.06689288467168808,
-0.020489351823925972,
0.03211021423339844,
0.009830729104578495,
0.016627471894025803,
0.01310337707400322,
0.04729849472641945,
0.014074922539293766,
0.023830946534872055,
-0.005098490975797176,
0.014036090113222599,
-0.019529905170202255,
0.01861962489783764,
0.028959164395928383,
0.005308299791067839,
-0.04981926083564758,
0.015144993551075459,
-0.0695175975561142,
-0.025289608165621758,
0.0040847561322152615,
0.7944950461387634,
-0.014809660613536835,
0.05454796925187111,
0.0841936394572258,
-0.01850978285074234,
-0.039294809103012085,
0.022686969488859177,
0.015085886232554913,
0.04385281354188919,
0.004536018706858158,
-0.029017752036452293,
0.004969466477632523,
0.002111464273184538,
0.04150615632534027,
-0.0426965169608593,
-0.0077833980321884155,
0.03535649552941322,
0.016292404383420944,
-0.005782554391771555,
-0.022550927475094795,
0.01092861033976078,
0.03793128952383995,
-0.04042673856019974,
-0.013632629066705704,
0.02337457984685898,
0.018252329900860786,
-0.19070781767368317,
-0.012701742351055145,
-7.882739485655516e-33,
0.04198310896754265,
-0.08312226086854935,
0.05595824494957924,
-0.015805210918188095,
0.05966326966881752,
0.004618324805051088,
0.010000140406191349,
-0.003575280774384737,
0.0007047249237075448,
-0.003763830289244652,
0.0008328102412633598,
-0.014901692979037762,
-0.008111398667097092,
0.01624106988310814,
0.025799747556447983,
-0.00787945557385683,
-0.008601346984505653,
0.018388958647847176,
0.0005348323611542583,
0.009140362031757832,
0.021457858383655548,
0.020067021250724792,
-0.07033141702413559,
-0.03190234303474426,
0.056603722274303436,
0.026782771572470665,
0.024963896721601486,
-0.002374706557020545,
-0.0053339144214987755,
-0.04110316187143326,
-0.037136539816856384,
-0.029437368735671043,
-0.01651657372713089,
0.005650800187140703,
0.027561720460653305,
-0.03589058294892311,
-0.052910540252923965,
0.02102915197610855,
-0.03987511992454529,
-0.08646691590547562,
-0.004672680981457233,
-0.02107045240700245,
-0.07225668430328369,
0.0413425974547863,
-0.008072849363088608,
0.011037876829504967,
-0.029865721240639687,
-0.01334748137742281,
0.02480175346136093,
-0.029847759753465652,
0.06720327585935593,
0.04849359393119812,
-0.01706255041062832,
0.012866408564150333,
-0.009812054224312305,
0.02557235024869442,
-0.0020603309385478497,
0.023493165150284767,
0.0020980979315936565,
0.0030839964747428894,
0.016357729211449623,
-0.028964422643184662,
-0.01502327062189579,
0.08528807014226913,
0.026340743526816368,
-0.025767650455236435,
-0.021119577810168266,
-0.018486954271793365,
0.03143417090177536,
-0.04005106911063194,
-0.03307066112756729,
-0.018855560570955276,
-0.0013951538130640984,
-0.014680404216051102,
0.0374719463288784,
-0.028180113062262535,
-0.01054998766630888,
0.004818021785467863,
-0.035444632172584534,
0.010875847190618515,
0.01875227689743042,
-0.03868401050567627,
-0.001895655645057559,
-0.0261688269674778,
-0.02620948664844036,
0.02099970355629921,
0.021390248090028763,
-0.01789030246436596,
-0.05156797543168068,
-0.015157793648540974,
0.013031698763370514,
0.04374631866812706,
0.029253918677568436,
0.0004330869996920228,
-0.02293778583407402,
7.98772729423127e-33,
-0.015211340971291065,
0.021256886422634125,
-0.016956407576799393,
-0.04328938573598862,
0.0018533632392063737,
-0.023955296725034714,
0.04419316351413727,
0.031961191445589066,
-0.06628645211458206,
0.033326905220746994,
0.03577662259340286,
0.0032052278984338045,
-0.01788805052638054,
-0.0023915900383144617,
-0.007226688787341118,
-0.02572452649474144,
0.0401998907327652,
0.00014958748943172395,
0.026370957493782043,
0.014388808980584145,
0.037423815578222275,
0.021547729149460793,
0.06368230283260345,
0.009636512957513332,
-0.010082031600177288,
0.036781229078769684,
-0.03379884734749794,
0.021639082580804825,
-0.03248695656657219,
0.00682605616748333,
0.007127775810658932,
-0.011066497303545475,
0.028906485065817833,
-0.07582178711891174,
-0.02619023062288761,
0.021860172972083092,
-0.03727586567401886,
-0.03847242146730423,
0.0005952741485089064,
-0.020015859976410866,
-0.025223590433597565,
0.019202668219804764,
0.02739907242357731,
0.029052898287773132,
-0.019739024341106415,
0.012332461774349213,
0.015473108738660812,
-0.05147235095500946,
-0.0008760116761550307,
-0.0325644351541996,
-0.0251175370067358,
0.026316829025745392,
0.028418662026524544,
-0.0025092633441090584,
0.060002755373716354,
0.029661966487765312,
-0.01199148129671812,
-0.013634723611176014,
0.005210856907069683,
0.030619820579886436,
0.0006304384442046285,
0.021801168099045753,
0.013120238669216633,
0.01729055866599083,
-0.003220309503376484,
0.032768551260232925,
-0.023316416889429092,
0.006098028738051653,
-0.014459144324064255,
0.012808114290237427,
-0.007438656874001026,
0.032120175659656525,
-0.021248899400234222,
0.08197199553251266,
0.011061105877161026,
-0.05059046670794487,
-0.009844474494457245,
0.02278592251241207,
-0.02765374258160591,
0.027055973187088966,
0.0040901475585997105,
-0.036190133541822433,
-0.058475062251091,
0.006003419402986765,
-0.03462447598576546,
-0.035957805812358856,
0.03545872122049332,
0.003579308744519949,
-0.0019387324573472142,
0.042975716292858124,
-0.032205916941165924,
-0.04609047994017601,
0.00946386530995369,
-0.0019568693824112415,
-0.0023087607696652412,
-1.3062924075768478e-8,
-0.014961562119424343,
0.024745846167206764,
-0.008484146557748318,
0.01905594766139984,
-0.007446367759257555,
-0.012412529438734055,
-0.027322065085172653,
-0.002820047317072749,
-0.051591504365205765,
0.021832218393683434,
0.022874144837260246,
-0.0015022576553747058,
-0.026763299480080605,
0.021782422438263893,
0.03351965919137001,
-0.03769749775528908,
0.006236532237380743,
-0.04566580802202225,
0.028155962005257607,
0.000738138216547668,
0.054455485194921494,
0.03182034194469452,
-0.017048468813300133,
0.00342985475435853,
-0.02520584501326084,
0.03320489078760147,
-0.007960830815136433,
-0.040082842111587524,
0.0014651648234575987,
0.0508037805557251,
0.012236639857292175,
-0.008446164429187775,
-0.04920627176761627,
-0.010705670341849327,
-0.04789401963353157,
-0.011452949605882168,
-0.032931480556726456,
-0.00425762077793479,
0.027148190885782242,
-0.011402921751141548,
-0.021357927471399307,
0.01476882304996252,
0.038715582340955734,
-0.010932841338217258,
-0.0036394603084772825,
-0.012064261361956596,
0.0070046717301011086,
0.001655281288549304,
0.01223685685545206,
-0.03659839555621147,
0.023889392614364624,
-0.007340510841459036,
-0.02605862356722355,
-0.02911471202969551,
0.006222419906407595,
-0.0008222709875553846,
0.008888358250260353,
0.03913825750350952,
-0.03591341897845268,
0.04767918586730957,
0.013415372930467129,
0.014003749936819077,
-0.019054653123021126,
-0.015162039548158646
] | testing-trying-not-to-overdo-it | https://markhneedham.com/blog/2012/03/28/testing-trying-not-to-overdo-it |
false | 2012-03-17 11:19:11 | Coding: Wait for the abstractions to emerge | [
"software-development"
] | [
"Software Development"
] | One of the things that I've learnt while developing code in an incremental way is that the way the code should be designed isn't going to be obvious straight away so we need to be patience and wait for it to emerge.
There's often a tendency to pull out classes or methods but more recently I've been trying to follow an approach where I leave the code in one class/method and play around with/study it until I see a good abstraction to make.
More often than not it takes a few times over multiple days before anything reveals itself.
I recently watched https://twitter.com/#!/venkat_s[Venkat Subramaniam's] Agile India presentation 'http://www.youtube.com/watch?v=iGsPeR-SYYo&feature=youtu.be[How to Approach Refactoring]' in which amongst other bits of advice he suggests that we '*make it work then make it evolve*' which sounds like it's covering the same type of ground.
Sometimes in the rush to abstract code to make it easier to test or to reduce the size of a class we end up creating an abstraction which doesn't really make sense in the business domain.
Having big methods of inline code goes against what we've learnt but putting all the code together makes it much easier to see the real abstractions in the code than if some premature abstractions have been made and we have to remember those as well.
It's still useful to be driven by the goal of pulling out small classes of behaviour/data that are easy to test but *spending a bit more time understanding the domain before doing so seems to work better*.
We recently had some unwieldy code which we couldn't quite work out how to abstract so we left the logic inline until we knew better even though it looked quite messy.
Eventually when talking to one of the subject matter experts they mentioned a term that they used which actually combined two things together which we'd originally thought were independent.
A simple rule of thumb is that if there is no name in the domain for what you're abstracting then it might not make sense to do so.
It doesn't always work but at least gets your thinking about whether you're improving the code with the abstraction you're about to make! | null | null | [
0.032592643052339554,
-0.020020781084895134,
0.002662483137100935,
0.047729406505823135,
0.07894603163003922,
0.014519996009767056,
0.03796609118580818,
0.021172378212213516,
0.024438930675387383,
-0.014303949661552906,
-0.01410165149718523,
0.00023396503820549697,
-0.060522668063640594,
0.026067113503813744,
-0.026219787076115608,
0.07861245423555374,
0.06963635236024857,
-0.014868424274027348,
0.03165983036160469,
0.018324661999940872,
0.010651622898876667,
0.06868872791528702,
-0.006553119979798794,
0.024874048307538033,
0.018649592995643616,
0.0009746287250891328,
0.01077396608889103,
0.010662547312676907,
-0.0694211795926094,
-0.016170771792531013,
0.05965421348810196,
0.0025672977790236473,
0.007823565974831581,
-0.00847116019576788,
0.010213984176516533,
-0.027184486389160156,
-0.022558080032467842,
0.018307382240891457,
0.0099062230437994,
0.02680717594921589,
-0.05695868656039238,
0.03094577230513096,
0.0069344439543783665,
-0.004335698671638966,
-0.03307369351387024,
-0.013315659016370773,
-0.04546278715133667,
0.0023388115223497152,
-0.008993062190711498,
-0.013060947880148888,
-0.05757364258170128,
0.03483934700489044,
0.0019117682240903378,
-0.013157958164811134,
-0.02151552401483059,
0.057411059737205505,
0.033568382263183594,
-0.08025239408016205,
-0.00026151249767281115,
-0.05843716114759445,
0.015009538270533085,
-0.01976540870964527,
-0.005504169035702944,
0.031832255423069,
0.014738168567419052,
-0.0043855393305420876,
-0.012787249870598316,
0.030208520591259003,
-0.04039128124713898,
0.00886219460517168,
-0.008856542408466339,
0.02901610918343067,
-0.02462131716310978,
-0.0020382532384246588,
-0.018513858318328857,
-0.030745424330234528,
-0.010061566717922688,
0.06492705643177032,
0.02396317943930626,
0.03885439410805702,
-0.03503185883164406,
0.010802390053868294,
0.0018259963253512979,
0.014725053682923317,
0.013394752517342567,
-0.035329803824424744,
-0.010782482102513313,
-0.013718749396502972,
-0.053239960223436356,
0.06536702066659927,
0.01786653697490692,
-0.06826389580965042,
0.01972799561917782,
0.043783534318208694,
0.0013844312634319067,
0.021743886172771454,
0.016502752900123596,
0.0006530022365041077,
-0.0017746594967320561,
0.00021454293164424598,
-0.027697989717125893,
-0.01970975659787655,
0.0013287878828123212,
-0.0032005752436816692,
-0.06325491517782211,
-0.014662029221653938,
-0.026714513078331947,
-0.021664198487997055,
0.009283999912440777,
-0.0005994403036311269,
-0.05806200951337814,
0.007591661531478167,
-0.030599497258663177,
0.0008507656748406589,
-0.05628937482833862,
0.056381236761808395,
-0.005600281059741974,
-0.03445930406451225,
-0.01879996992647648,
-0.00504654087126255,
0.027763117104768753,
0.02166256494820118,
-0.010594337247312069,
0.08953415602445602,
-0.0018223661463707685,
0.01713571883738041,
-0.0341576524078846,
0.05332374945282936,
-0.01836203783750534,
-0.04642077535390854,
-0.010607863776385784,
0.04794954136013985,
-0.037883006036281586,
-0.020171936601400375,
-0.00390780670568347,
-0.01852637156844139,
-0.009073124267160892,
0.006293176673352718,
0.022961309179663658,
0.02882002666592598,
-0.0036580474115908146,
-0.04369202256202698,
0.027275606989860535,
0.009494255296885967,
0.021763797849416733,
-0.00009425965254195035,
0.0021324146073311567,
-0.033401720225811005,
-0.02796134166419506,
-0.03018576093018055,
-0.015633581206202507,
0.04877493157982826,
0.011932569555938244,
-0.03375008702278137,
0.03809133917093277,
0.09152431041002274,
0.023525629192590714,
0.025343015789985657,
0.0063608381897211075,
0.042028140276670456,
0.03342888131737709,
0.020810211077332497,
0.022623293101787567,
0.02602332830429077,
0.0419665202498436,
-0.020412415266036987,
-0.0009967817459255457,
0.04885782301425934,
-0.006173841655254364,
0.0015018550911918283,
-0.0704028457403183,
-0.05548103526234627,
0.06424078345298767,
-0.05348268151283264,
-0.02965264953672886,
0.03127801790833473,
0.0902315154671669,
0.024198070168495178,
0.03966376930475235,
-0.026828080415725708,
-0.06532299518585205,
0.002429540967568755,
0.008450874127447605,
0.03355874866247177,
0.012208905071020126,
-0.02140515111386776,
0.052018582820892334,
0.022789236158132553,
-0.017587127164006233,
0.03615575656294823,
-0.07133151590824127,
-0.0756673514842987,
-0.022455548867583275,
-0.03950302302837372,
0.06332553923130035,
-0.024189285933971405,
0.012856315821409225,
0.07601391524076462,
0.014018004760146141,
0.06233486533164978,
0.040369924157857895,
0.008527630940079689,
-0.00706128403544426,
-0.029911167919635773,
-0.015953626483678818,
0.04956897720694542,
0.04501074180006981,
-0.017219925299286842,
-0.051706768572330475,
-0.004506145138293505,
0.00941458810120821,
-0.028712760657072067,
0.04873643442988396,
-0.021016720682382584,
0.033639006316661835,
0.018781142309308052,
0.05294274911284447,
-0.03984373062849045,
0.06005942448973656,
-0.05786146968603134,
-0.010183556005358696,
0.002227167598903179,
-0.015534549951553345,
0.005460092332214117,
0.0020628103520721197,
0.10670442879199982,
0.052745088934898376,
-0.05002381652593613,
-0.053425733000040054,
0.0034100685734301805,
0.021187981590628624,
-0.04979019612073898,
-0.00018188795365858823,
-0.013241267763078213,
0.0006353611242957413,
-0.004799568559974432,
-0.04205605015158653,
-0.017614038661122322,
0.013555633835494518,
-0.03362078219652176,
0.007204616442322731,
0.06460928916931152,
-0.041096027940511703,
0.051707781851291656,
-0.011618750169873238,
-0.00862645823508501,
-0.0027618904132395983,
-0.02209555357694626,
-0.052991606295108795,
0.03630571439862251,
0.021113600581884384,
-0.011655299924314022,
0.0628298968076706,
-0.03169173747301102,
-0.043765950947999954,
-0.033877141773700714,
-0.02557991072535515,
-0.012799865566194057,
0.02951468527317047,
0.07636620849370956,
-0.0033509277272969484,
0.05528237670660019,
0.018023798242211342,
0.027041437104344368,
-0.004403570666909218,
-0.056395843625068665,
-0.022832423448562622,
-0.0169407706707716,
0.010405064560472965,
0.0449032261967659,
-0.0064801438711583614,
0.02952599711716175,
0.0245499424636364,
0.002547841751947999,
-0.034975484013557434,
-0.030877208337187767,
0.02249395102262497,
0.003110682126134634,
-0.022730635479092598,
-0.028975391760468483,
-0.02681969851255417,
0.05192183703184128,
-0.042117033153772354,
-0.03684098273515701,
-0.009101984091103077,
-0.062295179814100266,
0.05867590755224228,
-0.07530544698238373,
-0.05877005681395531,
0.009125368669629097,
0.048278097063302994,
0.04748129844665527,
-0.036017753183841705,
0.0310162715613842,
0.08574970066547394,
0.0037795468233525753,
0.008975431323051453,
-0.031360261142253876,
0.004003152716904879,
0.04038548469543457,
-0.0020698492880910635,
0.0030650438275188208,
0.039645519107580185,
0.008443465456366539,
-0.015407372266054153,
-0.03563901409506798,
0.04083985090255737,
-0.004215036053210497,
-0.27816522121429443,
0.02140449918806553,
0.0002750912681221962,
-0.0491618886590004,
0.002007118659093976,
-0.030862290412187576,
-0.01385616883635521,
-0.044167328625917435,
-0.007090231403708458,
0.009593022987246513,
-0.036480214446783066,
-0.05530862882733345,
-0.018230991438031197,
0.04319639131426811,
-0.01565430872142315,
0.021571381017565727,
0.022079816088080406,
-0.02394930087029934,
0.0020413582678884268,
0.06908820569515228,
-0.023371510207653046,
-0.07957489043474197,
0.007410218473523855,
0.045174311846494675,
0.03989926725625992,
0.019407935440540314,
-0.11334430426359177,
0.030298765748739243,
-0.047748763114213943,
0.012335460633039474,
0.0017490715254098177,
0.006689021829515696,
-0.010193371213972569,
-0.028516730293631554,
-0.022600937634706497,
-0.0069242785684764385,
0.024266447871923447,
0.007127260323613882,
-0.005836099851876497,
0.04191071167588234,
-0.009846638888120651,
-0.03272036835551262,
-0.028243012726306915,
0.024852747097611427,
0.05744574964046478,
-0.013452280312776566,
-0.06418419629335403,
-0.0009838140103965998,
-0.026197293773293495,
0.08340887725353241,
-0.04722004383802414,
-0.03370857983827591,
0.011347906664013863,
0.025753028690814972,
-0.01529539842158556,
-0.032358475029468536,
0.016215043142437935,
-0.022986896336078644,
-0.031103866174817085,
-0.04139910638332367,
-0.012702371925115585,
-0.042470213025808334,
-0.0015211235731840134,
-0.048544418066740036,
0.01941939815878868,
-0.049358900636434555,
-0.04619113728404045,
0.0034271646291017532,
0.0568770207464695,
0.03597383573651314,
-0.027542680501937866,
0.030205145478248596,
0.004635927267372608,
-0.1113816425204277,
0.006389126647263765,
-0.021290769800543785,
0.006516589317470789,
-0.02033133991062641,
0.021052716299891472,
0.04620387405157089,
-0.015467740595340729,
-0.06143009290099144,
0.021503623574972153,
0.02664344012737274,
0.04163247346878052,
-0.008088819682598114,
0.027970867231488228,
0.003101358423009515,
-0.005166411399841309,
0.014195304363965988,
0.06675703823566437,
-0.00006110007961979136,
-0.03321961686015129,
-0.03727157786488533,
0.03681724891066551,
0.011844811029732227,
0.033915333449840546,
-0.017791051417589188,
0.00378378271125257,
0.020457841455936432,
-0.002191888866946101,
-0.06616383790969849,
0.020787280052900314,
-0.005674853455275297,
0.009368129074573517,
-0.031244365498423576,
-0.04280971363186836,
0.017257126048207283,
0.045559562742710114,
0.03172782063484192,
-0.019426526501774788,
-0.028337018564343452,
-0.020907418802380562,
-0.046718332916498184,
-0.05356239154934883,
-0.02180768921971321,
-0.01422875840216875,
0.05054545775055885,
-0.02792694792151451,
-0.01933637633919716,
-0.052052583545446396,
-0.00272543472237885,
0.0007717260741628706,
0.014707201160490513,
-0.05653490498661995,
-0.04448143392801285,
-0.018331073224544525,
-0.015671323984861374,
0.018546301871538162,
0.009284790605306625,
-0.0075795091688632965,
0.03524395078420639,
0.016907304525375366,
-0.053386591374874115,
0.0011079786345362663,
-0.012202173471450806,
-0.02842169627547264,
-0.01596284657716751,
-0.014929426833987236,
-0.027528027072548866,
-0.012189426459372044,
0.04378705471754074,
0.004841034300625324,
0.035261884331703186,
0.03577437996864319,
0.007094116415828466,
0.05227145180106163,
-0.0017581970896571875,
0.01418989710509777,
0.024144060909748077,
0.02185633033514023,
-0.09006678313016891,
0.023610390722751617,
-0.040594927966594696,
-0.029567066580057144,
-0.03740286827087402,
0.03034166991710663,
-0.01627645082771778,
-0.0411393940448761,
-0.007377395406365395,
0.01392641942948103,
-0.04101670905947685,
-0.03189648315310478,
-0.025697819888591766,
0.029168935492634773,
0.06703826785087585,
-0.025330644100904465,
0.014560765586793423,
-0.021881308406591415,
-0.031323015689849854,
-0.00034245839924551547,
0.02566998451948166,
-0.0372539721429348,
0.001862724544480443,
0.02459568902850151,
-0.014431342482566833,
-0.018459759652614594,
-0.0051229773089289665,
0.04062094911932945,
0.037732742726802826,
0.00891304761171341,
-0.022821633145213127,
0.0076448507606983185,
0.022565102204680443,
0.052772004157304764,
0.0057242377661168575,
-0.004866128787398338,
0.0010686800815165043,
-0.019903039559721947,
-0.011727484874427319,
-0.03806031867861748,
-0.015473175793886185,
0.018846100196242332,
0.035743214190006256,
-0.03772897645831108,
-0.0628916546702385,
0.05645735189318657,
0.05439398065209389,
0.02408480830490589,
-0.012423863634467125,
0.007027352228760719,
0.017199018970131874,
-0.02871534787118435,
0.025914419442415237,
0.06412557512521744,
-0.047250643372535706,
0.001627933350391686,
-0.000780078989919275,
0.015046202577650547,
0.005124010611325502,
0.0028855863492935896,
-0.05371614545583725,
-0.02531750313937664,
-0.041821081191301346,
-0.010453585535287857,
-0.038214415311813354,
-0.016252560541033745,
-0.017534615471959114,
0.016413789242506027,
0.00992159266024828,
-0.030809197574853897,
-0.012752621434628963,
0.00041495379991829395,
-0.007152196019887924,
-0.030062759295105934,
0.002299768850207329,
-0.026550598442554474,
0.027431383728981018,
0.03626582399010658,
-0.03571402281522751,
0.01832684502005577,
-0.024843251332640648,
0.014717476442456245,
0.025200743228197098,
-0.014581955969333649,
-0.025233671069145203,
-0.02581876330077648,
0.023404378443956375,
-0.001594489673152566,
0.025254199281334877,
-0.01071955356746912,
-0.024099143221974373,
-0.023807549849152565,
-0.0073029357008636,
-0.05849786475300789,
0.004437474999576807,
-0.0447077676653862,
-0.02213515341281891,
0.0020602624863386154,
0.0674796998500824,
0.015585862100124359,
0.036045949906110764,
0.008197586983442307,
0.0023980329278856516,
0.056414827704429626,
-0.07471643388271332,
-0.021468443796038628,
-0.03867616131901741,
-0.07945481687784195,
0.01570999063551426,
0.011461704038083553,
0.02843189798295498,
-0.017649462446570396,
0.024787357077002525,
0.031950756907463074,
0.04441222548484802,
0.034105781465768814,
-0.01087417546659708,
0.05637555941939354,
-0.0589645616710186,
0.010291592217981815,
-0.07977670431137085,
0.01381713431328535,
0.01174186822026968,
0.01198890432715416,
-0.025695599615573883,
-0.038370270282030106,
-0.03291397541761398,
0.03925129398703575,
-0.061218004673719406,
0.0023675879929214716,
0.03931453824043274,
0.020837444812059402,
-0.000022640777388005517,
0.002211070852354169,
-0.08178188651800156,
0.01876591332256794,
0.0325729101896286,
-0.0445043109357357,
-0.014977441169321537,
-0.029185621067881584,
0.046279389411211014,
0.03396186977624893,
0.02141895331442356,
-0.03090176358819008,
0.008449886925518513,
0.07025447487831116,
-0.0007134021143428981,
-0.002909757662564516,
0.029273657128214836,
0.018156450241804123,
0.05065630376338959,
0.03670426458120346,
-0.000579509767703712,
-0.024543175473809242,
0.019513504579663277,
0.0004759222792927176,
-0.055868420749902725,
0.04679794982075691,
0.02893153205513954,
-0.04964226111769676,
-0.031394314020872116,
0.07214391976594925,
0.02518634870648384,
-0.041847169399261475,
-0.019664987921714783,
0.010882622562348843,
-0.06934855133295059,
-0.00338934687897563,
-0.025527769699692726,
-0.013736644759774208,
-0.045487791299819946,
0.05815598741173744,
-0.008106905966997147,
-0.012257416732609272,
0.06625957787036896,
-0.005143670365214348,
-0.01934332214295864,
-0.03579750657081604,
0.0909276232123375,
0.05741790309548378,
0.05626900494098663,
-0.015185635536909103,
0.05081434175372124,
-0.025650614872574806,
-0.02771071158349514,
0.035448938608169556,
-0.001163617940619588,
-0.016453556716442108,
-0.03799255192279816,
0.06248104199767113,
0.04395565018057823,
-0.004634454846382141,
0.08081063628196716,
-0.036093082278966904,
-0.0010550427250564098,
0.013691159896552563,
0.019587934017181396,
0.007494436576962471,
0.08616261184215546,
0.014006546698510647,
-0.0023668829817324877,
0.005175980273634195,
-0.03144087269902229,
0.015377762727439404,
-0.047437649220228195,
-0.016888193786144257,
0.023569902405142784,
0.02839488722383976,
0.005954412743449211,
0.016580304130911827,
0.021973906084895134,
0.08735742419958115,
-0.04743118956685066,
0.014275945723056793,
-0.011877265758812428,
0.04246043041348457,
0.006833826191723347,
0.002964251907542348,
-0.022612234577536583,
-0.028711188584566116,
0.00036894320510327816,
-0.01697688363492489,
-0.03403661772608757,
-0.010711411014199257,
-0.00363152869977057,
0.05193932726979256,
-0.01498844102025032,
-0.015691686421632767,
0.014857947826385498,
0.014537348411977291,
-0.01691032573580742,
-0.07561251521110535,
-0.04131804406642914,
-0.01740003377199173,
-0.05160252004861832,
-0.03041313961148262,
0.05093295872211456,
-0.03271641954779625,
-0.018363649025559425,
-0.027280893176794052,
-0.016372738406062126,
-0.021224750205874443,
0.04675433412194252,
-0.05295567587018013,
-0.023732798174023628,
0.01164319459348917,
0.022131366655230522,
0.06797588616609573,
0.01026581134647131,
0.03243543580174446,
-0.004927912261337042,
-0.00593032781034708,
-0.03335646167397499,
0.00225621834397316,
0.020672697573900223,
0.02109290286898613,
0.005752318073064089,
-0.08305364847183228,
0.019488917663693428,
0.027232060208916664,
0.0052143847569823265,
-0.0607229620218277,
0.03422293812036514,
-0.006746677681803703,
0.0038964436389505863,
0.06923087686300278,
-0.04506167769432068,
-0.0063290782272815704,
-0.050490353256464005,
-0.015949038788676262,
0.0027309530414640903,
0.03089842200279236,
0.038311202079057693,
-0.020277483388781548,
0.0755930244922638,
0.014864001423120499,
-0.0025346337351948023,
-0.034579113125801086,
-0.00607509259134531,
-0.006972145289182663,
-0.0011792801087722182,
-0.015677254647016525,
-0.036827452480793,
-0.02684064395725727,
-0.06329458951950073,
-0.021039457991719246,
0.013452436774969101,
-0.016561396420001984,
-0.03136243298649788,
0.023091794922947884,
0.04885135218501091,
-0.04141716659069061,
0.03338983282446861,
-0.04104159027338028,
0.045967619866132736,
-0.030317313969135284,
-0.009668450802564621,
0.018009742721915245,
0.0024072492960840464,
-0.01546858623623848,
0.03726305812597275,
0.02232036367058754,
-0.02309112809598446,
-0.005871850065886974,
0.004781799856573343,
0.049799591302871704,
0.02341609261929989,
0.0004942621453665197,
0.004219560418277979
] | [
-0.08374851942062378,
-0.01493838056921959,
-0.036484718322753906,
-0.04311075434088707,
0.045298732817173004,
-0.024643387645483017,
-0.020870305597782135,
0.016707250848412514,
0.00437659677118063,
-0.023877853527665138,
0.0017119874246418476,
-0.027089940384030342,
-0.015899576246738434,
-0.013760235160589218,
0.09395019710063934,
0.014660288579761982,
-0.014256494119763374,
-0.026001939550042152,
0.02424226514995098,
-0.004238151013851166,
0.027424238622188568,
-0.034576717764139175,
-0.04708276316523552,
-0.0171990804374218,
0.03224135562777519,
0.04447660967707634,
0.029366979375481606,
-0.04021572694182396,
0.027134405449032784,
-0.20211559534072876,
0.0038732774555683136,
0.019285963848233223,
0.05067199096083641,
-0.038141366094350815,
0.009612176567316055,
0.05862624943256378,
0.008589986711740494,
0.04401244968175888,
-0.00910173263400793,
0.04639213904738426,
0.000883999397046864,
0.03293909877538681,
-0.05520652234554291,
-0.04316328838467598,
0.011419827118515968,
-0.0042562587186694145,
0.0063043502159416676,
-0.03940780088305473,
-0.02488035149872303,
0.008127069100737572,
-0.055832959711551666,
-0.04725751280784607,
-0.026320746168494225,
-0.0240620169788599,
-0.015849558636546135,
0.031476762145757675,
0.03248334303498268,
0.0771094560623169,
0.010931791737675667,
0.017794739454984665,
0.006812392268329859,
-0.03483656421303749,
-0.11139508336782455,
0.09414932131767273,
0.049617163836956024,
0.05437307059764862,
-0.045185890048742294,
-0.00983593612909317,
0.012130849063396454,
0.13293059170246124,
0.01618373952805996,
-0.012985797598958015,
-0.01271110214293003,
0.05951302498579025,
0.024005213752388954,
-0.010442170314490795,
0.004594898782670498,
0.009629144333302975,
0.04642295837402344,
-0.0375676229596138,
-0.03485320881009102,
-0.01704994961619377,
-0.0130287054926157,
-0.00772855244576931,
-0.04447038099169731,
0.023852163925766945,
-0.005656744819134474,
0.04326430708169937,
0.06463709473609924,
0.02086198888719082,
0.05258157104253769,
-0.023392409086227417,
0.015352841466665268,
-0.013925818726420403,
-0.041075509041547775,
-0.012556717731058598,
-0.006603410933166742,
-0.005397670902311802,
-0.043604932725429535,
0.4082275331020355,
-0.04309792444109917,
-0.04208112880587578,
0.08478713035583496,
0.03504904732108116,
-0.03263915702700615,
0.013081665150821209,
0.021896764636039734,
-0.036316826939582825,
0.027354519814252853,
-0.03872948884963989,
-0.003722060238942504,
0.025498569011688232,
0.054922524839639664,
-0.05163602530956268,
-0.012360646389424801,
0.0005527649191208184,
0.010835718363523483,
0.008158398792147636,
0.0013856315053999424,
-0.005943748634308577,
0.007384642492979765,
0.017308328300714493,
0.02877846173942089,
0.012710372917354107,
-0.02656315453350544,
-0.01496399100869894,
0.003103320486843586,
0.05187080428004265,
0.015112512744963169,
-0.0019848390948027372,
0.06145023927092552,
-0.028376495465636253,
-0.06098392978310585,
-0.00876263715326786,
-0.0049434443935751915,
0.01284925639629364,
0.021873867139220238,
-0.010369385592639446,
0.0012006001779809594,
0.03190892934799194,
-0.007067573256790638,
0.0322129987180233,
0.0202826876193285,
-0.019536351785063744,
-0.05535157397389412,
0.11676229536533356,
0.005654413718730211,
-0.021122749894857407,
-0.026874955743551254,
-0.05295584723353386,
0.002905246103182435,
0.022120695561170578,
0.002516241045668721,
-0.06372526288032532,
0.041787274181842804,
-0.014913060702383518,
0.1070539727807045,
0.006063755135983229,
-0.05756915360689163,
-0.01975151337683201,
-0.04824686050415039,
-0.004955218639224768,
-0.05703476443886757,
0.06569156795740128,
0.04188745096325874,
-0.07622417062520981,
-0.011833309195935726,
-0.013309250585734844,
0.03529854118824005,
-0.07573606073856354,
-0.01000495906919241,
0.02535282075405121,
-0.004722488112747669,
0.0020730984397232533,
0.06661850214004517,
-0.028925256803631783,
-0.03707440569996834,
-0.003248946275562048,
0.07348691672086716,
0.03580218553543091,
0.05139382556080818,
0.018824173137545586,
-0.033157434314489365,
0.024234317243099213,
-0.030629366636276245,
-0.09709365665912628,
-0.04487146809697151,
-0.0036298511549830437,
-0.04914114996790886,
-0.00788833387196064,
-0.0342443622648716,
-0.0021667093969881535,
-0.07885420322418213,
0.09749862551689148,
-0.05335128307342529,
-0.03573460504412651,
0.04262873902916908,
-0.02021104283630848,
-0.026088295504450798,
-0.02603890746831894,
-0.03816079720854759,
0.03665648400783539,
-0.01989562064409256,
0.02277955785393715,
-0.06531975418329239,
0.05226314067840576,
0.06553464382886887,
-0.04670559614896774,
0.07262568920850754,
0.06582707911729813,
-0.04225575178861618,
-0.03555081784725189,
0.01375974528491497,
0.00687882024794817,
0.03229641541838646,
-0.009089057333767414,
0.010572103783488274,
0.033301860094070435,
-0.0041713230311870575,
0.016028687357902527,
-0.039253268390893936,
-0.004373192321509123,
-0.00189090461935848,
-0.33444324135780334,
-0.04931274801492691,
-0.007634639739990234,
-0.024519484490156174,
0.019838644191622734,
-0.07318489998579025,
0.015277780592441559,
-0.019551649689674377,
-0.027076847851276398,
-0.01779896207153797,
0.05554600805044174,
-0.005157174542546272,
-0.019686216488480568,
-0.0966125875711441,
-0.012064303271472454,
0.011415495537221432,
-0.026677923277020454,
-0.0446542389690876,
-0.037118785083293915,
0.017142893746495247,
-0.0023867408744990826,
-0.00191106041893363,
-0.008661122992634773,
-0.0920201763510704,
-0.009000691585242748,
-0.05641021579504013,
0.09703781455755234,
-0.0358290858566761,
0.12233462929725647,
-0.019431525841355324,
0.03392407298088074,
-0.011506314389407635,
0.018024874851107597,
-0.10124965012073517,
0.014912925660610199,
-0.01635892689228058,
0.026242652907967567,
-0.013723336160182953,
0.05353589355945587,
-0.0343867726624012,
-0.025668611750006676,
0.010129288770258427,
-0.04695349186658859,
-0.048611629754304886,
-0.059356022626161575,
0.008235451765358448,
-0.04724591225385666,
-0.04482589662075043,
-0.024189302697777748,
0.0638563483953476,
0.01103765144944191,
0.003514288691803813,
0.01879866234958172,
0.0193314366042614,
-0.025799931958317757,
-0.02535681053996086,
-0.07038221508264542,
0.020768040791153908,
0.016835400834679604,
0.008072121068835258,
0.0281867366284132,
0.06559685617685318,
0.02548965997993946,
-0.039974287152290344,
0.014459867961704731,
0.019422762095928192,
0.005435669329017401,
-0.029909444972872734,
0.0370982326567173,
-0.03327623009681702,
0.003840523539111018,
0.12468268722295761,
0.006227065343409777,
-0.05587559565901756,
0.018253907561302185,
0.02514973096549511,
-0.007165329530835152,
0.04975714907050133,
0.029908157885074615,
-0.0068482765927910805,
-0.0027809790335595608,
-0.021998153999447823,
0.021024229004979134,
-0.03373041749000549,
-0.01489386148750782,
0.01825113222002983,
-0.016742270439863205,
-0.044045642018318176,
0.0281462911516428,
0.006209498271346092,
-0.025370286777615547,
0.014900614507496357,
-0.013851678930222988,
-0.03876017779111862,
0.07650140672922134,
-0.004568064119666815,
-0.24005594849586487,
0.009975751861929893,
0.0746985375881195,
0.0444924421608448,
-0.008680347353219986,
0.051785822957754135,
0.0533054880797863,
-0.060824859887361526,
0.002209911122918129,
0.0053871325217187405,
0.010821746662259102,
0.008344756439328194,
0.03439272940158844,
0.001182189560495317,
0.04426748678088188,
-0.018007788807153702,
0.05215108394622803,
-0.023674843832850456,
0.034810781478881836,
-0.011855274438858032,
0.018788913264870644,
-0.009633297100663185,
0.17828048765659332,
-0.026537470519542694,
0.05901563540101051,
0.013879338279366493,
0.0036064167506992817,
-0.01093202456831932,
0.0996299460530281,
0.005213750526309013,
0.007844092324376106,
-0.005377077031880617,
0.0587388277053833,
-0.013855603523552418,
0.025295251980423927,
-0.05802631378173828,
-0.010189946740865707,
0.029396003112196922,
0.02450118213891983,
-0.006987544242292643,
0.03930167108774185,
-0.010404190979897976,
-0.02784080244600773,
0.034031543880701065,
0.024080827832221985,
0.03335672616958618,
-0.0008775385795161128,
-0.04152394086122513,
-0.06670807301998138,
0.0010504410602152348,
-0.04833458364009857,
-0.0282832533121109,
0.0026952994521707296,
-0.0048531219363212585,
0.016785647720098495,
0.05850495770573616,
0.02644580416381359,
-0.009989837184548378,
-0.04235187545418739,
0.020257342606782913,
-0.002153917448595166,
-0.030885521322488785,
0.108662448823452,
0.027325157076120377,
0.02921610325574875
] | [
-0.020464064553380013,
-0.005450540687888861,
-0.021688425913453102,
0.019759248942136765,
-0.011278615333139896,
-0.0025873412378132343,
-0.01860455796122551,
0.006203310564160347,
-0.005376783665269613,
0.0006500486633740366,
0.010378801263868809,
0.01486253459006548,
-0.002028903691098094,
-0.008038341999053955,
0.033272821456193924,
-0.0137866185978055,
0.01178471278399229,
-0.004777758382260799,
0.0218286644667387,
-0.007143884431570768,
-0.021633854135870934,
0.03451615944504738,
0.0005883319536224008,
0.006262744311243296,
-0.01647419109940529,
0.026685643941164017,
-0.012878967449069023,
-0.02415889874100685,
0.04160073399543762,
-0.12484638392925262,
-0.011207563802599907,
-0.012173859402537346,
0.011408735997974873,
0.019578736275434494,
-0.01099510956555605,
0.013814231380820274,
-0.0014585460303351283,
0.041379403322935104,
0.01970093324780464,
-0.020166173577308655,
-0.0196894109249115,
-0.003469448769465089,
0.0144018130376935,
-0.011438156478106976,
-0.0006174127338454127,
0.016625793650746346,
-0.017238350585103035,
-0.06439855694770813,
-0.013628507032990456,
-0.04889471456408501,
-0.03494690731167793,
0.004926271736621857,
-0.02904445305466652,
0.002148775616660714,
0.018559779971837997,
-0.010430872440338135,
0.034715164452791214,
-0.0018387541640549898,
0.011777251958847046,
-0.009913584217429161,
-0.005158865824341774,
-0.016615809872746468,
-0.03037111833691597,
-0.026548031717538834,
-0.002741460455581546,
-0.008048532530665398,
-0.002726353704929352,
0.04406426474452019,
-0.009202085435390472,
0.011413739994168282,
0.002425997983664274,
0.004159702453762293,
-0.01343633234500885,
-0.01151985488831997,
0.006409851368516684,
0.02554219588637352,
0.0015447208425030112,
0.012838095426559448,
0.025481900200247765,
-0.023003635928034782,
-0.033863987773656845,
0.021365737542510033,
0.03595082461833954,
-0.006287911906838417,
0.013108895160257816,
0.011176850646734238,
0.012093785218894482,
-0.00906764529645443,
0.019243229180574417,
-0.0170857235789299,
0.008911367505788803,
0.036377035081386566,
-0.03233569487929344,
0.01149545144289732,
-0.07720185071229935,
-0.01643911376595497,
-0.03746838495135307,
-0.03335738554596901,
-0.00035960052628070116,
0.8760888576507568,
-0.008820348419249058,
0.04411951079964638,
0.017007723450660706,
0.008536812849342823,
-0.0050343782640993595,
-0.01080253068357706,
-0.006081022322177887,
-0.00822084303945303,
0.020569181069731712,
-0.018956927582621574,
0.0023412038572132587,
0.00835572462528944,
0.03063112311065197,
0.01247330941259861,
0.008481984958052635,
0.011784971691668034,
0.002591399010270834,
-0.00822926964610815,
0.0009288970031775534,
-0.0027773533947765827,
0.02504679001867771,
-0.0164752546697855,
0.006723789498209953,
0.00830246601253748,
0.002800673246383667,
-0.19213037192821503,
-0.010890118777751923,
-9.674436056702508e-33,
0.02636578679084778,
-0.00009534327546134591,
-0.01305204164236784,
-0.0027813336346298456,
0.007785462774336338,
-0.022170569747686386,
0.02892320603132248,
0.0006793552311137319,
0.013109712861478329,
-0.01249111257493496,
-0.01602177321910858,
-0.011371930129826069,
0.0011149514466524124,
-0.0026526350993663073,
0.025557899847626686,
-0.018624911084771156,
-0.03166753798723221,
0.019969919696450233,
-0.0279612448066473,
0.018140718340873718,
0.027307802811264992,
0.027932183817029,
-0.0030217848252505064,
-0.011166424490511417,
0.016502151265740395,
0.022950125858187675,
0.04543337970972061,
-0.00026720433379523456,
-0.013764034025371075,
-0.03628285601735115,
0.004172810353338718,
0.01396824698895216,
-0.036378707736730576,
0.0029074011836200953,
0.026939785107970238,
-0.03771888464689255,
-0.010100862011313438,
0.006108391098678112,
-0.016869382932782173,
-0.012429672293365002,
-0.03205282613635063,
-0.015097987838089466,
-0.04767148196697235,
-0.0060404581017792225,
0.004298266489058733,
0.009967447258532047,
0.014840935356914997,
0.038214851170778275,
0.014202014543116093,
-0.024059468880295753,
0.019405782222747803,
0.02096283808350563,
-0.00911512691527605,
0.0007961437804624438,
-0.02618587762117386,
0.021197302266955376,
-0.0060077812522649765,
0.00890368688851595,
0.009815764613449574,
0.031827621161937714,
-0.007119899149984121,
-0.011834575794637203,
-0.037175048142671585,
0.029903128743171692,
-0.028675492852926254,
-0.01635356992483139,
-0.0013382667675614357,
0.024950135499238968,
0.03765271231532097,
-0.024370599538087845,
-0.019364008679986,
-0.01717752031981945,
-0.018387507647275925,
0.0232837051153183,
0.01725354790687561,
-0.011108838021755219,
0.016444524750113487,
0.020032620057463646,
-0.03331400454044342,
0.03720206022262573,
0.0131942518055439,
0.01911897584795952,
0.00792762916535139,
-0.03605570271611214,
0.008808563463389874,
-0.006884914822876453,
0.002321782289072871,
-0.02280675806105137,
0.0030072343070060015,
0.018315846100449562,
0.03798219934105873,
-0.023614725098013878,
0.010858734138309956,
-0.003408272983506322,
-0.01151521410793066,
9.132552997440604e-33,
0.005363821517676115,
-0.027816133573651314,
-0.03329654410481453,
-0.0018331223400309682,
-0.0052715870551764965,
-0.015598622150719166,
0.004508418031036854,
0.004955189302563667,
-0.05939936637878418,
0.026633495464920998,
-0.017463888972997665,
-0.0003262193058617413,
-0.012838092632591724,
0.020491667091846466,
0.032004084438085556,
-0.012028653174638748,
0.012834738940000534,
-0.0290151908993721,
0.02554907090961933,
-0.0008382564410567284,
0.012290716171264648,
0.0032216450199484825,
0.014657044783234596,
-0.00033747407724149525,
0.002267700619995594,
0.07674290239810944,
-0.024256093427538872,
0.03440745547413826,
0.018456149846315384,
-0.0032258944120258093,
-0.0030292016454041004,
-0.025564424693584442,
0.006023803260177374,
-0.01732495054602623,
-0.018981078639626503,
0.026911024004220963,
-0.0072290292009711266,
-0.030014706775546074,
0.006130676716566086,
-0.0026404019445180893,
0.0014504920691251755,
0.009371508844196796,
0.0069726575165987015,
0.019654352217912674,
0.028362439945340157,
-0.0017961724661290646,
0.005159584805369377,
-0.007159022148698568,
-0.012401153333485126,
0.00526406429708004,
0.017166156321763992,
0.03601231426000595,
0.03288594260811806,
-0.014588026329874992,
0.01276968140155077,
-0.03523910790681839,
-0.02902584709227085,
-0.02245239168405533,
-0.04025859013199806,
0.038379669189453125,
-0.012532860040664673,
-0.005813895259052515,
-0.010552565567195415,
-0.0009453617967665195,
-0.03963920474052429,
0.005486130248755217,
0.012763862498104572,
-0.014066305011510849,
-0.007628382183611393,
-0.017488805577158928,
-0.021814998239278793,
0.013012999668717384,
-0.009891296736896038,
0.024920890107750893,
0.023075416684150696,
-0.002481059404090047,
-0.021724047139286995,
0.015393601730465889,
-0.005060272291302681,
0.014723503962159157,
-0.002044808818027377,
-0.01000184752047062,
0.0028093967121094465,
-0.007364561781287193,
-0.0163830928504467,
0.0055226427502930164,
-0.02419990673661232,
0.06046871468424797,
0.01409937720745802,
-0.027341414242982864,
-0.00887158140540123,
-0.002356515033170581,
0.021437807008624077,
0.021663358435034752,
0.001737611717544496,
-1.4623641853006575e-8,
0.010142411105334759,
0.025075478479266167,
0.00041637776303105056,
0.000459973030956462,
0.04685769975185394,
0.02210495062172413,
-0.027294756844639778,
0.012811126187443733,
-0.028679804876446724,
-0.006508904509246349,
0.03842664510011673,
-0.006216525565832853,
-0.011037806048989296,
0.0029595226515084505,
-0.010766752064228058,
-0.04070413485169411,
-0.022903813049197197,
-0.02180536650121212,
0.028790336102247238,
0.02117171697318554,
0.00603977357968688,
0.05663253739476204,
-0.028578801080584526,
0.013271947391331196,
-0.007209306582808495,
-0.0068666390143334866,
-0.015208262950181961,
-0.07567258179187775,
0.00103045126888901,
0.012098817154765129,
0.01483236812055111,
-0.016240080818533897,
-0.035033855587244034,
0.014910919591784477,
-0.01433845516294241,
-0.03402579203248024,
0.045929767191410065,
0.016495393589138985,
0.0173011627048254,
-0.0027279257774353027,
-0.01610012724995613,
0.008803760632872581,
0.01256532222032547,
-0.028881069272756577,
-0.0007942694355733693,
0.007222568616271019,
-0.036889709532260895,
-0.04684114456176758,
0.004243132658302784,
-0.03447551280260086,
0.007536736316978931,
0.0029479593504220247,
0.01681317575275898,
0.0361923910677433,
0.017422284930944443,
0.003561744699254632,
-0.02255026251077652,
-0.026595588773489,
-0.04752271994948387,
0.01777331531047821,
0.005184969864785671,
0.0017049267189577222,
-0.02205468900501728,
-0.01880970224738121
] | coding-wait-for-the-abstractions-to-emerge | https://markhneedham.com/blog/2012/03/17/coding-wait-for-the-abstractions-to-emerge |
false | 2012-03-19 23:25:47 | Functional Programming: One function at a time | [
"functional-programming",
"haskell"
] | [
"Haskell"
] | As I mentioned in an earlier post I got a bit stuck working out all the diagonals in the 20x20 grid of http://projecteuler.net/problem=11[Project Euler problem 11] and my http://www.markhneedham.com/blog/2012/03/13/functional-programming-shaping-the-data-to-fit-a-function/[colleague Uday ended up showing me how to do it].
I realised while watching him solve the problem that we'd been using quite different approaches to solving the problem and that his way worked way better than mine, at least in this context.
My approach was to try and drive out the solution from the top down which meant in this case:
* Get all of the diagonals left to right by iterating over a 2 dimensional array and accumulating sub arrays of the values 1 row and 1 column greater than the current position.
I was stuck for ages trying to work out how to do that whereas Uday made it much easier by just focusing on one of the functions that we'd need, getting that to work and then moving onto the next one.
After we'd iterated with that approach a few times we had a bunch of functions that we could compose together to solve the initial problem.
We started with a simple function to find the value at position (x,y) in the array:
[source,haskell]
----
findValue :: Int -> Int -> [[Int]] -> Int
findValue x y grid = (grid !! x) !! y
----
We then worked on writing a function in the REPL which would find all the diagonals going down from the current position
[source,haskell]
----
[findValue (0+z) (0+z) grid | z <- [0..19]]
----
We eventually realised that running that from anywhere but the top left hand corner would throw an exception since we'd gone out of bounds of the array:
[source,text]
----
> [findValue (1+z) (1+z) grid | z <- [0..19]]
[49,31,23,51,3,67,20,97,45,3,24,44,52,26,32,40,4,5,48,*** Exception: Prelude.(!!): index too large
----
We then wrote a function to check that a given point was actually in the array:
[source,haskell]
----
hasItemSingle :: [a] -> Int -> Bool
hasItemSingle array position = position >= 0 && (length array - 1) >= position
hasItem :: [[a]] -> Int -> Int -> Bool
hasItem array x y = hasItemSingle array x && hasItemSingle (array !! x) y
----
And our function to calculate the diagonals then used that:
[source,text]
----
> [findValue (1+z) (1+z) grid | z <- [0..19], hasItem grid (1+z) (1+z) ]
[49,31,23,51,3,67,20,97,45,3,24,44,52,26,32,40,4,5,48]
----
That function eventually ended up like this:
[source,haskell]
----
diagonalAt :: Int -> Int -> [[Int]] -> [Int]
diagonalAt x y grid = [findValue (x+z) (y+z) grid | z <- [0..(length grid)], hasItem grid (x + z) (y + z)]
----
The nice thing about taking this approach of only thinking about one function at a time is that you can actually make some progress since you only need to think about a small part of the problem as compared to the whole thing.
I still start off trying to solve a problem from the outside in but if I get stuck then I start looking for some simple functions that I can write to get started and help me work towards an overall solution. | null | null | [
-0.0209323950111866,
0.01344191376119852,
-0.00870137196034193,
0.03661949560046196,
0.05131293460726738,
0.04020201042294502,
0.010726090520620346,
0.011309787631034851,
-0.0030823841225355864,
-0.02579113095998764,
0.0014662113972008228,
-0.02464008890092373,
-0.0602291040122509,
0.013947410508990288,
-0.008252961561083794,
0.08084910362958908,
0.07141649723052979,
-0.026451217010617256,
-0.015274410136044025,
0.019361397251486778,
0.01654292270541191,
0.04039406403899193,
-0.0022254660725593567,
0.028168972581624985,
0.02091056853532791,
-0.012328704819083214,
0.011128854937851429,
0.002475523157045245,
-0.03283240273594856,
0.0005889934836886823,
0.018791159614920616,
0.033922404050827026,
0.007642634678632021,
-0.03809070214629173,
0.027614101767539978,
-0.0156345646828413,
-0.008840695023536682,
0.02913706749677658,
-0.013091242872178555,
0.028132092207670212,
-0.051994964480400085,
0.019012384116649628,
-0.004176540300250053,
0.03071090392768383,
-0.03014068864285946,
0.01137772761285305,
-0.03570893406867981,
-0.011007185094058514,
0.0005710928817279637,
-0.01127632800489664,
-0.05768059939146042,
0.02384767308831215,
0.012856281362473965,
-0.006709141656756401,
-0.04322558268904686,
0.05376259982585907,
0.026096995919942856,
-0.04626530036330223,
0.04340842738747597,
-0.043586622923612595,
-0.010397194884717464,
-0.0013247922761365771,
0.0014544916339218616,
0.047634124755859375,
-0.008226698264479637,
-0.015912219882011414,
-0.01973194070160389,
0.03572667017579079,
-0.0609155148267746,
-0.023009365424513817,
-0.03101763129234314,
0.018055232241749763,
-0.01710856519639492,
-0.05518513172864914,
-0.011134391650557518,
-0.03741774335503578,
-0.0036274853628128767,
0.053844235837459564,
0.01953665353357792,
0.014435316435992718,
-0.027776405215263367,
0.01671367697417736,
0.025244981050491333,
0.012750618159770966,
0.006663203239440918,
-0.026088451966643333,
-0.04192006215453148,
-0.046536557376384735,
-0.04714919999241829,
0.06539919972419739,
0.014504482038319111,
-0.05570833012461662,
-0.01367692556232214,
0.014774264767765999,
-0.006493612192571163,
0.020659727975726128,
0.015299591235816479,
-0.004261743742972612,
-0.010720880702137947,
0.0010840262984856963,
-0.009284262545406818,
-0.053463179618120193,
0.023517703637480736,
0.0012639880878850818,
-0.06861225515604019,
-0.021155565977096558,
-0.0009008802589960396,
-0.008754760026931763,
-0.008688376285135746,
0.005127225536853075,
-0.03135066106915474,
-0.004585130140185356,
-0.01003828551620245,
-0.010090412572026253,
-0.07219846546649933,
0.07088746875524521,
0.020211270079016685,
0.005477619357407093,
-0.008759556338191032,
0.050877586007118225,
0.05077986419200897,
0.044533856213092804,
-0.01726006716489792,
0.10045582056045532,
0.021673534065485,
0.046819936484098434,
0.009077263064682484,
0.06853996217250824,
-0.03363705053925514,
-0.06003650277853012,
-0.014821654185652733,
0.045022521167993546,
-0.008014452643692493,
-0.008142306469380856,
0.0026473484467715025,
-0.05315115302801132,
-0.04452963545918465,
0.012463000603020191,
0.032413262873888016,
0.040839869529008865,
-0.004198336973786354,
-0.03327392414212227,
0.04316394403576851,
-0.01536649465560913,
0.013205574825406075,
-0.003058196511119604,
0.008386525325477123,
-0.017904004082083702,
-0.0113212950527668,
0.015334980562329292,
0.04102208465337753,
0.016385065391659737,
0.02626587636768818,
-0.031804945319890976,
0.01745757646858692,
0.07743523269891739,
0.025304540991783142,
0.03516851365566254,
-0.007382159121334553,
0.019337007775902748,
0.03034803457558155,
0.024418329820036888,
0.027579717338085175,
0.03390621021389961,
-0.0222992654889822,
-0.014962595887482166,
0.01856040768325329,
0.056504715234041214,
-0.022933416068553925,
-0.025725042447447777,
-0.046549491584300995,
-0.031820233911275864,
0.054230947047472,
-0.03432316333055496,
-0.02963198721408844,
-0.022067012265324593,
0.08652212470769882,
0.024652745574712753,
0.05567708984017372,
-0.03475148230791092,
-0.0745524913072586,
0.014455637894570827,
0.014320312067866325,
0.028260990977287292,
0.022478338330984116,
0.0065384297631680965,
0.046148695051670074,
0.02449752762913704,
0.03018178790807724,
0.0394149050116539,
-0.038349080830812454,
-0.06967965513467789,
-0.005898021161556244,
-0.034736376255750656,
0.06162060424685478,
-0.006828696001321077,
0.00296386843547225,
0.022005682811141014,
0.001255835173651576,
0.0410892590880394,
0.026231521740555763,
-0.005811790935695171,
0.01874401979148388,
0.0000012668263025261695,
-0.04101742431521416,
0.049721118062734604,
0.049363285303115845,
-0.017923444509506226,
-0.048339489847421646,
0.01716666668653488,
-0.0033641676418483257,
-0.022268021479249,
0.038303546607494354,
-0.015293978154659271,
0.037878844887018204,
0.033683113753795624,
0.0398300364613533,
-0.011721516028046608,
0.04949222132563591,
-0.061850957572460175,
0.028706446290016174,
0.006968540605157614,
-0.002515495289117098,
-0.003511391580104828,
-0.001788912108168006,
0.1425897181034088,
0.06791477650403976,
-0.06289065629243851,
-0.046445395797491074,
0.029696445912122726,
-0.0005644838674925268,
-0.031607624143362045,
0.016019798815250397,
0.0014916191576048732,
-0.009527843445539474,
0.01830168627202511,
-0.030546361580491066,
-0.041802652180194855,
0.05327977240085602,
-0.03406159579753876,
-0.021261097863316536,
0.07122166454792023,
-0.017061971127986908,
0.05759119614958763,
-0.0046699559316039085,
-0.04026312753558159,
0.005289879161864519,
-0.02426830865442753,
-0.05223846063017845,
0.002088378183543682,
-0.0007742351153865457,
-0.0012328563025221229,
0.034749843180179596,
-0.012959145940840244,
-0.030014092102646828,
-0.02032962627708912,
-0.013320082798600197,
-0.0057992152869701385,
0.06092027574777603,
0.06995002180337906,
-0.008868498727679253,
0.04763410985469818,
-0.000171544830664061,
-0.030444497242569923,
-0.015469390898942947,
-0.0627400204539299,
-0.03211907669901848,
-0.0091745899990201,
0.009344283491373062,
0.04500741884112358,
0.05490431189537048,
0.004764414392411709,
0.0034822721499949694,
-0.0046868398785591125,
-0.02075205184519291,
-0.04171329364180565,
0.024760309606790543,
-0.029008174315094948,
-0.05548687279224396,
-0.02300882898271084,
-0.01007105689495802,
0.07966107130050659,
-0.04652566835284233,
-0.003924370743334293,
0.0021488023921847343,
-0.010132006369531155,
0.03776021674275398,
-0.07685741037130356,
-0.03866944834589958,
-0.012309095822274685,
0.01808117888867855,
0.02600829489529133,
-0.049265798181295395,
-0.021613268181681633,
0.053322382271289825,
0.014403034001588821,
0.022632654756307602,
0.0008234002743847668,
0.00484915217384696,
0.013193083927035332,
0.004658244084566832,
0.014859932474792004,
0.05115028843283653,
0.018317081034183502,
-0.024070460349321365,
-0.05431787297129631,
0.003029052633792162,
-0.02419441007077694,
-0.2955276370048523,
0.013522706925868988,
-0.01401718519628048,
-0.008280414156615734,
0.01003784779459238,
-0.015458852052688599,
-0.02023705095052719,
-0.01572677120566368,
0.0012947159120813012,
-0.0082823745906353,
-0.024510478600859642,
-0.03586595132946968,
-0.06069299206137657,
0.04970875382423401,
0.020698832347989082,
0.017748381942510605,
0.01896490529179573,
-0.048612795770168304,
0.000752133084461093,
0.03159337490797043,
-0.0004147464642301202,
-0.07128962874412537,
0.005887240637093782,
0.04363461211323738,
0.023129835724830627,
0.05256124958395958,
-0.08810694515705109,
0.013997634872794151,
-0.07966042309999466,
-0.003456086851656437,
-0.029257558286190033,
-0.033653974533081055,
-0.0020077363587915897,
-0.019536012783646584,
0.002084897831082344,
-0.029873568564653397,
0.026305433362722397,
-0.0044118985533714294,
-0.007786988280713558,
0.05695035308599472,
-0.01652742549777031,
-0.023170126602053642,
-0.015204322524368763,
0.03083093650639057,
0.07032894343137741,
0.0011286208173260093,
-0.04426245018839836,
-0.011473075486719608,
-0.02947894297540188,
0.06025351956486702,
-0.01442280225455761,
-0.020500238984823227,
-0.0154937244951725,
0.02204512432217598,
-0.025839561596512794,
-0.028487881645560265,
-0.0030897550750523806,
-0.025551335886120796,
-0.03526914864778519,
-0.0010757904965430498,
-0.00043771517812274396,
-0.046949442476034164,
-0.016563817858695984,
-0.060372550040483475,
-0.015811214223504066,
-0.06154797971248627,
-0.08205629885196686,
-0.00639080535620451,
0.08371223509311676,
0.013101748190820217,
-0.010767798870801926,
0.010874267667531967,
0.0015047166962176561,
-0.10777291655540466,
-0.024503080174326897,
0.005544920917600393,
-0.027051536366343498,
-0.012477042153477669,
0.037069857120513916,
0.03474061191082001,
-0.041634317487478256,
-0.09491290152072906,
0.027758484706282616,
0.008987790904939175,
0.03167734667658806,
-0.005777259357273579,
-0.0025589505676180124,
-0.01257962267845869,
-0.017294032499194145,
0.01670141890645027,
0.07227092236280441,
-0.012193607166409492,
0.005839040968567133,
-0.04014090821146965,
0.046446360647678375,
0.039538607001304626,
0.019479477778077126,
-0.017904071137309074,
0.036265309900045395,
0.03585582599043846,
0.00836266204714775,
-0.06111888214945793,
0.03233766183257103,
-0.0136337885633111,
-0.0180148147046566,
0.015056747943162918,
-0.03795844689011574,
0.022740241140127182,
0.03383713215589523,
0.026400502771139145,
-0.018410149961709976,
-0.06057654321193695,
0.019422028213739395,
-0.05172307789325714,
-0.012688047252595425,
-0.019519144669175148,
0.013336622156202793,
0.04022359102964401,
0.02014138549566269,
-0.003624620847404003,
-0.05771588161587715,
0.0021807474549859762,
0.014207570813596249,
-0.0021204540971666574,
-0.04638346657156944,
0.005869670305401087,
-0.0021090826485306025,
-0.022718723863363266,
0.015157612040638924,
0.033121466636657715,
0.005807149689644575,
0.04951320216059685,
0.014754088595509529,
-0.01619790866971016,
0.025823771953582764,
-0.018419107422232628,
-0.023900166153907776,
-0.03333934769034386,
-0.015609733760356903,
-0.005005716811865568,
0.0321609303355217,
0.028428616002202034,
0.027978967875242233,
0.016438253223896027,
0.03933986276388168,
0.005783062428236008,
0.0242910236120224,
-0.010861573740839958,
0.009480185806751251,
0.03152671083807945,
0.00044288704521022737,
-0.04639502614736557,
0.040723856538534164,
-0.04373520240187645,
-0.009667888283729553,
-0.0027581132017076015,
0.05971661955118179,
-0.026368990540504456,
-0.04730425775051117,
-0.04178930073976517,
0.055167123675346375,
-0.039117518812417984,
-0.041273195296525955,
-0.03283599764108658,
-0.022148555144667625,
0.05985601246356964,
-0.0249521154910326,
0.02753203548491001,
-0.036718372255563736,
0.015710648149251938,
0.03552911803126335,
0.03307710960507393,
-0.02196214720606804,
0.014418261125683784,
-0.009153869934380054,
-0.00588697986677289,
0.024971451610326767,
0.005362753290683031,
0.037904392927885056,
-0.021132709458470345,
-0.015471132472157478,
-0.02593148499727249,
-0.0006515901768580079,
0.005314867477864027,
0.052688952535390854,
0.019149769097566605,
0.015916185453534126,
0.001540766446851194,
-0.033351387828588486,
-0.00884169340133667,
-0.04673350229859352,
-0.0046444605104625225,
-0.021108070388436317,
0.03297848254442215,
-0.029804691672325134,
-0.054275620728731155,
0.03098858706653118,
0.018835192546248436,
-0.014355244114995003,
0.029952460899949074,
0.00423842528834939,
-0.010327179916203022,
-0.026154382154345512,
0.04219330474734306,
0.08743344992399216,
-0.052561040967702866,
0.02391103282570839,
-0.006961954291909933,
0.04706081002950668,
0.020590998232364655,
0.02901587076485157,
-0.051967598497867584,
-0.035954367369413376,
-0.010388958267867565,
0.020086390897631645,
-0.010416594333946705,
-0.033261798322200775,
-0.031244920566678047,
0.02703617513179779,
0.0042402599938213825,
-0.026018336415290833,
-0.00064585090149194,
-0.001177968573756516,
-0.02516156993806362,
-0.040118612349033356,
0.01759655773639679,
-0.03650514408946037,
-0.047745708376169205,
0.013061168603599072,
-0.03087647072970867,
0.025407811626791954,
-0.031696900725364685,
0.013416524045169353,
0.016840027645230293,
-0.0003995463193859905,
-0.012124656699597836,
-0.055466122925281525,
0.0025092940777540207,
-0.046340130269527435,
0.06038437783718109,
-0.0005715158185921609,
-0.011662264354526997,
-0.02138119749724865,
-0.010117577388882637,
-0.02538951113820076,
0.01580827310681343,
0.0332048200070858,
-0.03469552472233772,
0.009231981821358204,
0.030060844495892525,
-0.005234424956142902,
0.018824726343154907,
-0.005476830992847681,
-0.016624271869659424,
0.046998608857393265,
-0.022243129089474678,
-0.03375638276338577,
-0.013022756204009056,
-0.026517823338508606,
-0.002042617881670594,
-0.02396561950445175,
0.02225172333419323,
-0.04775643348693848,
0.01650511845946312,
0.02539762109518051,
0.0433770976960659,
0.020502885803580284,
-0.016356606036424637,
0.04513358324766159,
-0.020442187786102295,
-0.009530511684715748,
-0.08416664600372314,
-0.00817512534558773,
0.016558077186346054,
0.006462853401899338,
-0.009945542551577091,
-0.00014894944615662098,
-0.006433489732444286,
0.06399994343519211,
-0.07728451490402222,
-0.01738632470369339,
0.05782231315970421,
0.007892508991062641,
-0.013396712020039558,
0.008950434625148773,
-0.021937871351838112,
-0.0058287507854402065,
0.01815624162554741,
-0.02272728644311428,
-0.004679681267589331,
-0.012629739940166473,
0.02798842266201973,
-0.007470099255442619,
0.00944604817777872,
0.007459397427737713,
0.01335986703634262,
0.0790729746222496,
0.011271227151155472,
0.0002062464482150972,
0.05191482603549957,
-0.0246710404753685,
0.04475841671228409,
0.029512673616409302,
0.012401136569678783,
-0.011950871907174587,
0.031060947105288506,
-0.00139732682146132,
-0.0738329216837883,
0.013424661941826344,
0.001976815052330494,
-0.017486125230789185,
-0.0626179501414299,
0.056241344660520554,
0.02106931246817112,
-0.02111552655696869,
-0.04038558155298233,
0.034372489899396896,
-0.06841818243265152,
0.02779628150165081,
-0.019275333732366562,
-0.030254466459155083,
-0.031695760786533356,
0.05400367081165314,
-0.0182221457362175,
-0.03480834513902664,
0.05888550728559494,
0.024001244455575943,
-0.039260510355234146,
0.0016804608749225736,
0.10573350638151169,
0.09107928723096848,
0.05860750004649162,
-0.0047270795330405235,
0.05919657275080681,
-0.0443488247692585,
-0.045413803309202194,
0.019401518628001213,
-0.016066912561655045,
-0.0027506910264492035,
-0.03285221755504608,
0.058926526457071304,
0.08696552366018295,
-0.013714320957660675,
0.06067835912108421,
-0.042339541018009186,
-0.006685248576104641,
0.013358879834413528,
0.006864555180072784,
-0.0167037695646286,
0.05472216382622719,
0.007360546384006739,
0.047118812799453735,
-0.0257851742208004,
-0.03232849761843681,
0.019438784569501877,
-0.0032806459348648787,
0.016093898564577103,
-0.002897301223129034,
0.023708146065473557,
0.016070563346147537,
0.02767781727015972,
0.022595545276999474,
0.07334821671247482,
-0.04686242341995239,
-0.022619107738137245,
-0.0041601769626140594,
0.04330672696232796,
-0.0038503638934344053,
0.003913053777068853,
-0.021113138645887375,
-0.02614997699856758,
0.0005019414820708334,
-0.010706517845392227,
-0.00691735977306962,
-0.020858248695731163,
-0.018481798470020294,
0.0305939931422472,
-0.042277537286281586,
0.015997350215911865,
0.0111470902338624,
-0.014140014536678791,
-0.05821964517235756,
-0.0842275470495224,
-0.022717954590916634,
-0.03823551908135414,
-0.08086275309324265,
0.014074988663196564,
0.01110863033682108,
-0.023347247391939163,
-0.02883254736661911,
-0.031307514756917953,
-0.017007730901241302,
-0.04046764597296715,
0.02348736673593521,
-0.02851555123925209,
-0.03206738084554672,
0.018258240073919296,
0.027822116389870644,
0.0441415011882782,
0.02657078392803669,
0.03487006947398186,
-0.005097505636513233,
0.003554409136995673,
-0.031261932104825974,
-0.02423669584095478,
0.02630084753036499,
0.04488549754023552,
0.0066606891341507435,
-0.08662809431552887,
0.023432742804288864,
0.013173389248549938,
0.0017496591899544,
-0.08562782406806946,
-0.0026348629035055637,
0.01648656278848648,
-0.023749610409140587,
0.030488116666674614,
-0.0063787223771214485,
-0.013258145190775394,
-0.03552824258804321,
-0.017341360449790955,
0.0028802042361348867,
-0.009705834090709686,
0.052822839468717575,
-0.03965020179748535,
0.0856986865401268,
-0.0036911198403686285,
-0.03613394498825073,
-0.04349450394511223,
-0.008921847678720951,
-0.015353062190115452,
0.04461821913719177,
-0.05009985342621803,
-0.03691813722252846,
-0.03023938275873661,
-0.07841621339321136,
0.005747678689658642,
-0.0020530312322080135,
-0.026342814788222313,
-0.027797959744930267,
0.040959104895591736,
0.04669702425599098,
-0.07654734700918198,
0.07706638425588608,
-0.04162720590829849,
0.02962610498070717,
-0.03746120631694794,
-0.007407393306493759,
0.033106863498687744,
0.028836315497756004,
0.013936558738350868,
-0.01017390750348568,
0.019515493884682655,
-0.0528077632188797,
0.004707749001681805,
-0.019877012819051743,
0.018057547509670258,
0.02203790843486786,
0.00853756908327341,
0.03511754423379898
] | [
-0.10055357962846756,
-0.02167997695505619,
-0.036999721080064774,
-0.029181214049458504,
-0.010252643376588821,
-0.01695895381271839,
-0.01836477778851986,
0.03426777198910713,
0.020622458308935165,
-0.01507153082638979,
0.008763088844716549,
-0.06689418852329254,
0.009725247509777546,
0.011631443165242672,
0.08357866108417511,
0.02264847792685032,
-0.029356442391872406,
-0.007703735958784819,
-0.026303431019186974,
0.014525932259857655,
-0.001287539373151958,
-0.0611172690987587,
-0.06334464251995087,
-0.059893734753131866,
0.03468697890639305,
0.05757572874426842,
0.019274646416306496,
-0.054092466831207275,
0.02408573217689991,
-0.25043076276779175,
0.0019227040465921164,
0.002026149071753025,
0.05178307369351387,
-0.04638918489217758,
0.026556937023997307,
0.014650803059339523,
-0.0009851627983152866,
0.028496677055954933,
-0.029139485210180283,
0.04793780669569969,
0.02801990695297718,
0.030435407534241676,
-0.025620797649025917,
-0.027181189507246017,
0.035583481192588806,
0.0025884786155074835,
-0.0362679585814476,
-0.013533202931284904,
-0.010775990784168243,
0.023249873891472816,
-0.0722155049443245,
-0.0063790022395551205,
-0.0020606559701263905,
-0.008194757625460625,
0.022936036810278893,
0.049799904227256775,
0.043952036648988724,
0.06089980900287628,
-0.004175965674221516,
0.03359927982091904,
0.00009379682887811214,
-0.03283665329217911,
-0.1277347356081009,
0.08937445282936096,
0.06641148775815964,
0.03772065043449402,
-0.00421553710475564,
-0.061220552772283554,
-0.017571017146110535,
0.11188434809446335,
0.022197525948286057,
-0.029135940596461296,
-0.0064267320558428764,
0.037059977650642395,
0.022993972525000572,
-0.03504994139075279,
-0.02254842221736908,
0.002124442020431161,
0.03365757688879967,
-0.030111515894532204,
-0.036622148007154465,
-0.030578728765249252,
-0.027870148420333862,
0.015068786218762398,
-0.011430282145738602,
0.021786106750369072,
-0.03476874530315399,
0.04621781036257744,
0.006537454668432474,
0.015667160972952843,
0.0388154499232769,
0.001861024647951126,
-0.009441898204386234,
0.0012907270574942231,
-0.07669727504253387,
-0.002024346496909857,
-0.00013443519128486514,
0.013024529442191124,
-0.03226792812347412,
0.4256872832775116,
-0.034300483763217926,
-0.0007036927854642272,
0.07156606018543243,
0.018589777871966362,
-0.05213266611099243,
-0.004952062387019396,
-0.020161546766757965,
-0.04186740145087242,
-0.00382305309176445,
-0.047208454459905624,
-0.01674545928835869,
-0.024651125073432922,
0.08641253411769867,
-0.046618636697530746,
-0.00016646018775645643,
-0.010736065916717052,
0.04054907336831093,
0.012782439589500427,
0.011054567992687225,
0.00995562318712473,
-0.007038047071546316,
0.048324499279260635,
0.01484200730919838,
0.011411543004214764,
0.002165543381124735,
-0.0132203483954072,
-0.005105019547045231,
0.0546041764318943,
0.02064124494791031,
0.05072372779250145,
0.06361718475818634,
-0.0415848009288311,
-0.04937085509300232,
0.0015115018468350172,
0.01962600089609623,
0.029712028801441193,
0.04269035533070564,
-0.02075924351811409,
0.023892629891633987,
0.030545609071850777,
-0.021704044193029404,
-0.018543867394328117,
0.043669819831848145,
-0.006430843845009804,
-0.0006305734277702868,
0.11870192736387253,
-0.030396418645977974,
-0.03512747585773468,
0.0016248802421614528,
-0.06520302593708038,
0.009438206441700459,
0.03896079957485199,
-0.0029212881345301867,
-0.06914477050304413,
0.00192481919657439,
0.018095050007104874,
0.043663714081048965,
-0.009439267218112946,
-0.07371582835912704,
0.0012129689566791058,
-0.06610444188117981,
-0.025729220360517502,
-0.0444449819624424,
0.055170416831970215,
0.028758324682712555,
-0.06678212434053421,
-0.010230855084955692,
0.012660003267228603,
0.04133079946041107,
-0.07998430728912354,
0.0165166687220335,
0.03952586278319359,
-0.0321064367890358,
0.013388938270509243,
0.07149215787649155,
-0.01991008222103119,
-0.04688103497028351,
0.011775325983762741,
0.05034780874848366,
0.016257794573903084,
0.008883134461939335,
0.009862971492111683,
-0.03812213987112045,
0.0038353614509105682,
-0.049734607338905334,
-0.06904775649309158,
-0.05730721354484558,
0.003963123541325331,
-0.029368722811341286,
-0.03388803452253342,
-0.005787999834865332,
-0.02521767094731331,
-0.0862542912364006,
0.06878399848937988,
-0.03543286770582199,
-0.04051543399691582,
0.025632306933403015,
-0.0047246115282177925,
-0.01756858453154564,
0.0024951340164989233,
0.008404063992202282,
0.02654941938817501,
-0.01959931291639805,
0.03157094866037369,
-0.06606627255678177,
0.0181166660040617,
0.06125089153647423,
-0.0694243460893631,
0.06851232796907425,
0.07031425833702087,
0.005702956113964319,
-0.026229791343212128,
-0.024641357362270355,
0.010562838055193424,
0.007545041851699352,
-0.014818989671766758,
0.027546487748622894,
-0.0008805330726318061,
-0.009542815387248993,
0.030617056414484978,
-0.0013603493571281433,
-0.049142733216285706,
-0.04665328562259674,
-0.33505716919898987,
-0.07268299162387848,
-0.01713595911860466,
-0.019754115492105484,
-0.01042462233453989,
-0.08435617387294769,
0.0010786285856738687,
-0.018682554364204407,
-0.03818121179938316,
0.031049752607941628,
0.05586696416139603,
-0.001356406370177865,
-0.008837101049721241,
-0.10528061538934708,
-0.024263421073555946,
0.0004816376604139805,
-0.01589224673807621,
-0.006090634036809206,
-0.0384596548974514,
0.0081083495169878,
-0.02636149898171425,
0.01954861730337143,
-0.03979305177927017,
-0.06460452824831009,
-0.021142126992344856,
-0.04601283743977547,
0.12912911176681519,
0.009879032149910927,
0.09338007122278214,
-0.02559453621506691,
0.04313890263438225,
-0.04199250414967537,
0.018572885543107986,
-0.008059822954237461,
-0.0009341462864540517,
-0.012490746565163136,
0.0032124524004757404,
-0.020325057208538055,
0.03166712075471878,
-0.017136316746473312,
-0.03874330222606659,
0.004223386757075787,
-0.0391676239669323,
-0.024397611618041992,
-0.03773169592022896,
0.04922844097018242,
-0.006183532532304525,
-0.0490838997066021,
-0.009248947724699974,
0.0811883956193924,
0.031895484775304794,
-0.014058869332075119,
0.026200156658887863,
0.0007433841819874942,
0.030603304505348206,
-0.0002621037419885397,
-0.04663647711277008,
-0.014650726690888405,
0.020039711147546768,
-0.006777756381779909,
0.01273192185908556,
0.04742947965860367,
0.031977128237485886,
-0.018374769017100334,
0.0060628061182796955,
0.031880348920822144,
0.003762163920328021,
0.0010748604545369744,
0.03106858767569065,
-0.017369965091347694,
-0.015949051827192307,
0.07773757725954056,
0.018578872084617615,
0.02544017694890499,
0.04463503509759903,
0.04108046367764473,
0.01062349695712328,
0.06050942465662956,
0.056417424231767654,
0.010608057491481304,
0.04108819365501404,
-0.027890382334589958,
0.02339494414627552,
-0.03882330283522606,
0.011103803291916847,
-0.0028208254370838404,
-0.0055579920299351215,
0.0031296375673264265,
0.026578392833471298,
-0.0004064374079462141,
-0.01927359588444233,
0.0371692031621933,
-0.0024775804486125708,
-0.03704337775707245,
0.06521302461624146,
-0.00036181806353852153,
-0.25951939821243286,
0.032084871083498,
0.05285918712615967,
0.02830161154270172,
-0.014420578256249428,
0.0005430174060165882,
0.02751484513282776,
-0.031913839280605316,
-0.018238963559269905,
-0.031275298446416855,
-0.003719429252669215,
0.06354314833879471,
0.029793735593557358,
0.0012696296907961369,
0.025784440338611603,
-0.03507765009999275,
0.024276921525597572,
-0.008320589549839497,
0.010067184455692768,
0.002129434607923031,
0.038002368062734604,
0.01773752272129059,
0.19933739304542542,
0.0005154788377694786,
0.00861014612019062,
0.017384523525834084,
0.0013372309040278196,
-0.009766096249222755,
0.05588624253869057,
0.012322986498475075,
-0.02282973937690258,
0.008682087063789368,
0.029165145009756088,
-0.011943633668124676,
0.044396426528692245,
-0.031256917864084244,
-0.016054240986704826,
0.06542647629976273,
0.025877999141812325,
-0.0341048389673233,
-0.011839666403830051,
0.009467155672609806,
-0.04196404665708542,
0.04960751533508301,
0.06311549991369247,
0.02400672808289528,
0.01123296283185482,
-0.01076279766857624,
-0.030562547966837883,
0.0027483676094561815,
-0.010942826978862286,
-0.021610494703054428,
0.004695693962275982,
-0.02465049922466278,
-0.02224528230726719,
0.07676935195922852,
-0.010140564292669296,
-0.030943196266889572,
-0.004436491522938013,
0.0037622039671987295,
-0.014332594349980354,
-0.016276979818940163,
0.10765723884105682,
-0.013668490573763847,
0.03318781778216362
] | [
0.0004428061074577272,
0.06040479615330696,
-0.06953555345535278,
0.0042178938165307045,
-0.0392724983394146,
-0.01785101741552353,
0.025073517113924026,
0.0013418439775705338,
-0.0539335235953331,
0.006024710834026337,
-0.04343954101204872,
0.005697312764823437,
0.008842968381941319,
-0.03275859355926514,
-0.018238432705402374,
-0.014096740633249283,
0.013054543174803257,
0.010218053124845028,
0.03728356212377548,
-0.008409546688199043,
-0.008096247911453247,
-0.0037018386647105217,
0.010115825571119785,
-0.028569884598255157,
0.00029245318728499115,
0.025365587323904037,
-0.02460712194442749,
0.016919199377298355,
0.017968609929084778,
-0.10870657116174698,
-0.0003503104380797595,
-0.02540801279246807,
-0.015332198701798916,
0.0023874675389379263,
-0.02800859324634075,
-0.01132639404386282,
-0.014106474816799164,
0.039595186710357666,
0.015377368777990341,
-0.005842105485498905,
0.030771784484386444,
0.012212354689836502,
-0.025076398625969887,
0.00840925332158804,
0.007645821198821068,
-0.026367368176579475,
-0.008700093254446983,
-0.03328067809343338,
-0.010027395561337471,
-0.0010862989583984017,
-0.07250950485467911,
-0.0015464479802176356,
0.0076546077616512775,
0.007448463700711727,
0.04684441164135933,
-0.05343640595674515,
-0.005985056981444359,
-0.007283555343747139,
0.026917630806565285,
-0.01793171465396881,
0.000020103952920180745,
-0.01460555661469698,
-0.04007788002490997,
-0.036598823964595795,
-0.0023837871849536896,
-0.03872256726026535,
-0.00669787498190999,
-0.021226482465863228,
0.003950726240873337,
-0.03621794283390045,
0.008761194534599781,
0.036962129175662994,
-0.04346363991498947,
-0.015215383842587471,
-0.008323006331920624,
-0.01747066155076027,
0.019025031477212906,
-0.057193074375391006,
0.024343520402908325,
-0.029746660962700844,
-0.014953398145735264,
0.014659102074801922,
0.05878062918782234,
0.027088264003396034,
0.00287086539901793,
-0.010502688586711884,
-0.018821295350790024,
0.025671839714050293,
0.02984260395169258,
-0.012165169231593609,
0.016123857349157333,
0.027510548010468483,
-0.007354110945016146,
0.07648773491382599,
-0.09456634521484375,
-0.0181423407047987,
0.016251543536782265,
0.0017369947163388133,
-0.02729220874607563,
0.845061719417572,
-0.03772052377462387,
0.014692513272166252,
0.04949130117893219,
0.017095346003770828,
-0.0048674363642930984,
0.016616959124803543,
0.029582643881440163,
-0.006860564462840557,
-0.050567626953125,
-0.05462786927819252,
-0.000612261239439249,
-0.0081323916092515,
0.02204524539411068,
0.010082612745463848,
0.01800384931266308,
0.026637660339474678,
0.01906372606754303,
0.017102975398302078,
0.0058705732226371765,
-0.018679101020097733,
0.014864872209727764,
-0.0006612288998439908,
0.005980664864182472,
0.054101452231407166,
0.00907640065997839,
-0.158843532204628,
-0.03849538043141365,
-6.92911528544712e-33,
0.015204156748950481,
-0.017048483714461327,
0.008133753202855587,
0.02211684174835682,
0.03351147472858429,
0.01566062495112419,
0.029579810798168182,
0.003949971869587898,
0.011007767170667648,
0.020378101617097855,
-0.012623513117432594,
-0.009445623494684696,
-0.027992570772767067,
0.007931317202746868,
0.02551114931702614,
-0.022854240611195564,
0.005692812614142895,
0.042827993631362915,
-0.030430035665631294,
-0.0013595644850283861,
0.05529915913939476,
0.01591421477496624,
0.018748542293906212,
0.00008984439773485065,
0.01539542805403471,
-0.007896545343101025,
0.005205582361668348,
-0.022485770285129547,
0.02602207288146019,
-0.04802661016583443,
-0.012171248905360699,
0.012148675508797169,
-0.02435438521206379,
-0.028768043965101242,
0.045046936720609665,
-0.04662082716822624,
0.018895501270890236,
0.012783648446202278,
-0.010551576502621174,
-0.029471904039382935,
-0.03379405662417412,
0.0091065913438797,
-0.02399943396449089,
0.012100785039365292,
0.00717772264033556,
-0.023934783414006233,
0.03333582356572151,
0.02557673491537571,
0.016317715868353844,
-0.02460094913840294,
-0.014725237153470516,
0.038461122661828995,
-0.017798395827412605,
0.015586585737764835,
-0.02509959042072296,
0.005973272491246462,
-0.0037853734102100134,
0.024835782125592232,
0.024966685101389885,
0.04582493379712105,
0.01699540577828884,
-0.013201825320720673,
-0.006643245462328196,
0.01647523045539856,
-0.017873091623187065,
-0.008415788412094116,
0.004955350421369076,
-0.023356325924396515,
0.022530818358063698,
0.0027218221221119165,
-0.05457555875182152,
0.0029473374597728252,
-0.01781570166349411,
-0.04130210354924202,
0.031100871041417122,
-0.035667534917593,
-0.01897059753537178,
-0.025765100494027138,
-0.006895034108310938,
-0.025748899206519127,
0.014858724549412727,
0.02439216524362564,
-0.03513642027974129,
0.0070305801928043365,
-0.011388508602976799,
-0.00778657803311944,
0.010960347950458527,
-0.0018525667255744338,
-0.03309598192572594,
-0.012217068113386631,
0.01629597693681717,
0.002636311575770378,
0.003948126919567585,
0.002554870443418622,
-0.018815981224179268,
6.709706326130263e-33,
-0.027787650004029274,
-0.0043008639477193356,
-0.033789683133363724,
-0.005709700286388397,
0.02680833637714386,
-0.005907607264816761,
0.05896203592419624,
-0.004009748809039593,
0.00031149183632805943,
0.017804060131311417,
-0.0044925217516720295,
0.02635037526488304,
-0.029794109985232353,
0.0490836575627327,
0.03201482817530632,
-0.01728690043091774,
-0.006187964230775833,
0.02639857865869999,
0.00976495910435915,
-0.023982848972082138,
-0.021650943905115128,
0.0019771107472479343,
-0.002531389007344842,
0.031036093831062317,
0.0027322552632540464,
0.060963161289691925,
0.017058586701750755,
-0.007137381471693516,
-0.0040688239969313145,
0.06016024947166443,
0.006305737420916557,
0.007156977895647287,
0.025486133992671967,
-0.018764415755867958,
0.009801318868994713,
0.048308566212654114,
-0.007317520212382078,
-0.023174377158284187,
0.003861816832795739,
0.011576926335692406,
0.01152030099183321,
-0.018269198015332222,
0.011218356899917126,
0.018875980749726295,
0.020765872672200203,
0.00039885600563138723,
-0.0009889353532344103,
0.009475866332650185,
-0.009894081391394138,
-0.005995031446218491,
0.0017117384122684598,
0.00298458244651556,
-0.015586023218929768,
0.026106365025043488,
0.018116382881999016,
0.00044165633153170347,
-0.005690957885235548,
0.0267860796302557,
-0.0009081028983928263,
-0.03474726527929306,
-0.06261079758405685,
0.011518045328557491,
-0.003270313609391451,
0.017927035689353943,
0.014050277881324291,
0.0511339046061039,
-0.013988716527819633,
-0.04454251006245613,
0.008164893835783005,
0.049584366381168365,
-0.015137646347284317,
0.013616824522614479,
-0.010930584743618965,
0.014559579081833363,
-0.026844056323170662,
-0.01771852746605873,
-0.016515251249074936,
0.018320690840482712,
-0.01187251228839159,
0.035829413682222366,
0.03695409744977951,
-0.024724747985601425,
0.0391869954764843,
-0.03472444787621498,
-0.015087793581187725,
-0.041922565549612045,
0.000012128461094107479,
-0.004165231250226498,
-0.013569331727921963,
-0.016460005193948746,
0.0297581497579813,
-0.03998974710702896,
-0.00229256390593946,
0.011815856210887432,
0.007535529788583517,
-1.2593688758499866e-8,
-0.011392847634851933,
0.001447537331841886,
-0.010624587535858154,
0.009022128768265247,
0.01387905701994896,
-0.018784109503030777,
-0.025983210653066635,
-0.04477648809552193,
-0.03290557488799095,
0.0009001375874504447,
0.03929667919874191,
0.013072970323264599,
0.02613656222820282,
0.02862054482102394,
0.011331431567668915,
-0.013381605967879295,
0.015044324100017548,
-0.028427403420209885,
0.01317582931369543,
0.0013709455961361527,
-0.002408350585028529,
0.045336026698350906,
-0.024733657017350197,
0.016032740473747253,
-0.023644570261240005,
-0.0390075221657753,
-0.008142932318150997,
-0.08411947637796402,
0.02690492384135723,
0.018686428666114807,
0.017559634521603584,
-0.013050994835793972,
0.030287232249975204,
0.046988021582365036,
-0.009588499553501606,
-0.003026885911822319,
0.014958003535866737,
0.004372939933091402,
0.03711322695016861,
-0.015398448333144188,
-0.0210390854626894,
-0.012315703555941582,
0.018454549834132195,
-0.03887719288468361,
-0.007351648062467575,
-0.012984746135771275,
-0.03146948665380478,
-0.007744785398244858,
0.02975437603890896,
-0.0436067134141922,
0.022512534633278847,
0.034231241792440414,
0.029630696401000023,
0.006417618133127689,
0.02317817509174347,
0.005273390561342239,
-0.028352830559015274,
-0.02558978833258152,
0.0016435919096693397,
0.02609255723655224,
0.0038687267806380987,
0.002247092081233859,
-0.021466312929987907,
-0.030143920332193375
] | functional-programming-one-function-at-a-time | https://markhneedham.com/blog/2012/03/19/functional-programming-one-function-at-a-time |
false | 2012-03-21 00:50:37 | Functional Programming: Handling the Options | [
"functional-programming",
"totallylazy"
] | [
"Java"
] | A couple of weeks ago https://twitter.com/#!/channingwalton/status/177662437905010688[Channing Walton tweeted the following]:
____
Every time you call get on an Option a kitten dies.
____
As Channing points out in the comments he was referring to unguarded calls to 'get' which would lead to an exception if the Option was empty, therefore pretty much defeating the point of using an Option in the first place!
We're using Dan Bodart's http://code.google.com/p/totallylazy/[totallylazy] library on the application I'm currently working on and in fact were calling 'get' on an Option so I wanted to see if we could get rid of it.
The code in question is used to work out a price based on a base value and an increment value, both of which are optional.
I've re-created some tests to show roughly how it works:
[source,java]
----
@Test
public void myOptionsExample() {
Assert.assertThat(calculate(Option.<Double>none(), Option.<Double>none(), 20), is(Option.<Double>none()));
Assert.assertThat(calculate(Option.<Double>none(), Option.some(12.0), 20), is(Option.some(240.0)));
Assert.assertThat(calculate(Option.some(50.0), Option.some(12.0), 20), is(Option.some(290.0)));
Assert.assertThat(calculate(Option.some(50.0), Option.<Double>none(), 20), is(Option.some(50.0)));
}
----
[source,java]
----
private Option<Double> calculate(Option<Double> base, final Option<Double> increment, final int multiplier) {
if(base.isEmpty() && increment.isEmpty()) {
return Option.none();
}
if(increment.isEmpty()){
return base;
}
double baseBit = base.getOrElse(0.0);
double incrementBit = increment.get() * multiplier;
return Option.some(baseBit + incrementBit);
}
----
We can get rid of the 'increment.isEmpty()' line by making use of a 'getOrElse' a few lines later like so:
[source,java]
----
private Option<Double> calculate(Option<Double> base, final Option<Double> increment, final int multiplier) {
if(base.isEmpty() && increment.isEmpty()) {
return Option.none();
}
double baseBit = base.getOrElse(0.0);
double incrementBit = increment.getOrElse(0.0) * multiplier;
return Option.some(baseBit + incrementBit);
}
----
In Scala we can often make use of a for expression when combining Options but I'm not sure it would help in this case because we want to return a 'Some' if either of the Options has a value and only return a 'None' if they're both empty.
I can't figure out how to get rid of that opening if statement - I tried pushing the options into a list and then calling 'foldLeft' on that to sum up the components but we still have the problem of how to deal with returning a 'None' when the list is empty.
If you know how to simplify that code either using totallylazy or another language please let me know in the comments! | null | null | [
-0.013531493954360485,
-0.03272442892193794,
-0.008829309605062008,
0.029818952083587646,
0.08252786099910736,
0.012158195488154888,
0.04061833769083023,
0.03395409137010574,
0.015297899954020977,
-0.015269764699041843,
-0.004727004561573267,
0.012785468250513077,
-0.07809234410524368,
0.023812441155314445,
-0.0009402837022207677,
0.0628611147403717,
0.08998282998800278,
-0.006205417215824127,
0.015044357627630234,
-0.019378850236535072,
0.012109380215406418,
0.04647054523229599,
-0.00600906228646636,
0.014537512324750423,
0.04575274884700775,
0.007129142992198467,
0.007959053851664066,
0.014679926447570324,
-0.05325313284993172,
-0.017315788194537163,
0.04483940824866295,
0.04605725035071373,
0.012166522443294525,
-0.03153993934392929,
0.0025576769839972258,
-0.008173087611794472,
-0.01617412641644478,
-0.004860895685851574,
-0.00781458429992199,
0.04593656212091446,
-0.07023055106401443,
0.04788684844970703,
-0.0457477830350399,
0.023675188422203064,
-0.05700744315981865,
-0.01399022713303566,
-0.013829069212079048,
-0.014839859679341316,
-0.0016867442755028605,
-0.029452312737703323,
-0.07368957996368408,
0.05329102650284767,
-0.0494605228304863,
-0.0028261865954846144,
0.018857602030038834,
0.06400730460882187,
0.016007177531719208,
-0.09808604419231415,
0.02768959477543831,
-0.04941805452108383,
0.007629850879311562,
-0.0120909558609128,
-0.018581140786409378,
0.016286376863718033,
-0.006772308610379696,
-0.023003488779067993,
0.01551660057157278,
0.045642055571079254,
-0.04369797930121422,
-0.019229790195822716,
-0.020037507638335228,
0.009285748936235905,
-0.019471168518066406,
-0.010714123956859112,
0.01518169790506363,
-0.0378214493393898,
-0.008386783301830292,
0.06008794531226158,
0.035789038985967636,
0.04475327581167221,
-0.02240123227238655,
-0.005026944447308779,
0.04131695255637169,
0.01823394186794758,
0.014396966435015202,
-0.048115115612745285,
-0.012823720462620258,
0.005484089255332947,
-0.03821451589465141,
0.06848841160535812,
0.029185812920331955,
-0.03129400685429573,
0.028820719569921494,
0.017519280314445496,
-0.036267831921577454,
0.017649099230766296,
0.014082883484661579,
-0.038442213088274,
0.025121210142970085,
0.004257469438016415,
-0.038547616451978683,
-0.031349919736385345,
0.012768436223268509,
0.0069502308033406734,
-0.07153984904289246,
0.005623739678412676,
-0.006798719987273216,
-0.008421521633863449,
-0.012131285853683949,
0.008508923463523388,
-0.055777791887521744,
0.0363653190433979,
0.0026997544337064028,
-0.004948867484927177,
-0.06990654766559601,
0.0780055820941925,
0.013609820045530796,
-0.0285590011626482,
-0.00013075860624667257,
0.04397094249725342,
0.03358018025755882,
0.014925822615623474,
-0.021810444071888924,
0.07760242372751236,
0.01811809092760086,
0.013904916122555733,
0.006920768413692713,
0.0494227297604084,
-0.012244432233273983,
-0.06414511799812317,
-0.004492874722927809,
0.06100708246231079,
-0.002871487522497773,
-0.005356630776077509,
-0.003890383755788207,
0.00446596834808588,
-0.0005428262520581484,
0.0048260935582220554,
0.060561761260032654,
0.005981477443128824,
-0.013595851138234138,
-0.04088633507490158,
-0.005115421488881111,
0.024442704394459724,
0.018584858626127243,
0.0077792806550860405,
0.014067061245441437,
-0.0025782836601138115,
-0.031005878001451492,
0.01433093473315239,
0.007168385200202465,
0.027492346242070198,
0.04967110604047775,
-0.027100905776023865,
0.014694730751216412,
0.08780352771282196,
0.023626767098903656,
-0.007601174525916576,
-0.0013247773749753833,
0.03052579239010811,
0.056607890874147415,
0.025831546634435654,
0.018311411142349243,
0.03825012594461441,
0.03308843448758125,
-0.01572621986269951,
-0.007638649083673954,
0.05187661945819855,
-0.06416195631027222,
-0.00871874950826168,
-0.062247660011053085,
-0.06587198376655579,
0.06510395556688309,
-0.04045955836772919,
-0.007911070249974728,
0.00354653294198215,
0.07209507375955582,
-0.0093161566182971,
0.061230774968862534,
0.006093998439610004,
-0.09402415156364441,
0.04353989660739899,
0.028989585116505623,
0.03914031758904457,
-0.0007601843681186438,
0.009176838211715221,
0.054526910185813904,
0.016162831336259842,
0.009352974593639374,
0.00538050290197134,
-0.0709884762763977,
-0.07890774309635162,
-0.0291996281594038,
0.0005174055695533752,
0.058424826711416245,
-0.03458847850561142,
0.008081207051873207,
0.05527539923787117,
0.0361316092312336,
0.022935418412089348,
0.015925178304314613,
-0.030432697385549545,
0.006109091453254223,
-0.04006209596991539,
-0.052896786481142044,
0.07576393336057663,
0.022942733019590378,
-0.026280559599399567,
-0.02022920362651348,
0.039462096989154816,
-0.0005038210656493902,
0.015347041189670563,
0.01734074391424656,
-0.041068386286497116,
0.038402754813432693,
0.028857160359621048,
0.030721716582775116,
-0.04534886032342911,
0.08442776650190353,
-0.03725765645503998,
-0.005659440997987986,
0.02339921146631241,
0.004796747583895922,
0.009217794984579086,
0.0344693586230278,
0.11395250260829926,
0.044079817831516266,
-0.018663346767425537,
-0.06882941722869873,
0.030071185901761055,
0.005850100424140692,
-0.03979502618312836,
-0.007190588861703873,
-0.024117758497595787,
0.0107334665954113,
-0.009362408891320229,
-0.04249546676874161,
-0.027653468772768974,
0.026969708502292633,
-0.03883754834532738,
0.02355474792420864,
0.06406193226575851,
-0.01333378255367279,
0.06250820308923721,
-0.02452196180820465,
-0.02094889245927334,
-0.027844838798046112,
-0.05558009073138237,
-0.060713741928339005,
-0.018015794456005096,
0.005879227537661791,
-0.011583581566810608,
0.030272336676716805,
-0.0193663090467453,
-0.043694738298654556,
-0.026678623631596565,
-0.04942123219370842,
0.014096738770604134,
0.022407690063118935,
0.06947953253984451,
0.0058073136024177074,
0.05728655308485031,
0.00004835796789848246,
0.008043442852795124,
-0.040483806282281876,
-0.05041724815964699,
-0.05057711899280548,
0.012722864747047424,
0.010875015519559383,
0.027332762256264687,
0.019217301160097122,
0.022961298003792763,
0.006917182821780443,
-0.0024039552081376314,
-0.01433213148266077,
-0.007740732282400131,
0.016832910478115082,
0.02456897869706154,
-0.006447691936045885,
-0.028127575293183327,
-0.018050361424684525,
0.058785248547792435,
-0.0312945619225502,
-0.030969934538006783,
0.04522386193275452,
-0.06999840587377548,
0.058773454278707504,
-0.06604893505573273,
-0.04828204959630966,
-0.0024150540120899677,
0.03231022506952286,
0.01548006758093834,
0.00807168334722519,
0.017213599756360054,
0.06155748292803764,
-0.029674949124455452,
0.026530250906944275,
0.026388244703412056,
0.008570011705160141,
0.01938590593636036,
0.003838956356048584,
0.0017456857021898031,
0.05096025764942169,
-0.01585526205599308,
0.017380986362695694,
-0.04566415399312973,
0.03076467476785183,
-0.007908495143055916,
-0.2633252441883087,
0.04011070728302002,
0.007143680937588215,
-0.022126922383904457,
0.008450550958514214,
-0.039300717413425446,
0.02015145868062973,
-0.05069878324866295,
-0.02137381210923195,
0.06393694877624512,
-0.026202714070677757,
-0.054863542318344116,
-0.014111456461250782,
0.026893069967627525,
-0.005504647735506296,
-0.015538407489657402,
0.03517867997288704,
-0.0251810010522604,
-0.008733837865293026,
0.05967303365468979,
-0.006211343687027693,
-0.05896942690014839,
0.015659183263778687,
0.06706483662128448,
0.05205221846699715,
0.05971739441156387,
-0.07267032563686371,
0.01620243676006794,
-0.046779945492744446,
0.001663017668761313,
-0.009243314154446125,
-0.007731619291007519,
0.011565059423446655,
-0.014909961260855198,
-0.014691755175590515,
-0.009224331006407738,
0.036226365715265274,
-0.011152747087180614,
-0.010107656940817833,
0.04652826115489006,
-0.03080116957426071,
-0.05288922041654587,
-0.017274396494030952,
0.02368002198636532,
0.06747958809137344,
-0.027322834357619286,
-0.07633674144744873,
0.009415572509169579,
-0.0229016225785017,
0.06865349411964417,
-0.015482012182474136,
0.0002497715759091079,
-0.03627098351716995,
0.005975663661956787,
-0.032942019402980804,
-0.014900182373821735,
-0.03814753517508507,
-0.022645816206932068,
-0.011434723623096943,
-0.02308899722993374,
-0.005711876321583986,
-0.03127260133624077,
-0.02041909098625183,
-0.02365773171186447,
-0.010957978665828705,
-0.07045845687389374,
-0.038985978811979294,
-0.0054135750979185104,
0.08811773359775543,
-0.00693016080185771,
-0.015583029948174953,
0.00331188109703362,
0.013934262096881866,
-0.10967378318309784,
-0.00855038408190012,
-0.03179434686899185,
-0.033178653568029404,
-0.009607943706214428,
-0.015090880915522575,
0.034456636756658554,
-0.04165656864643097,
-0.03885843604803085,
0.06688079237937927,
0.02054467238485813,
0.02543533407151699,
-0.03230493143200874,
0.005457708612084389,
-0.029575161635875702,
0.0005970855709165335,
0.03366951644420624,
0.07950328290462494,
-0.000226441741688177,
-0.0362306647002697,
-0.0170521829277277,
-0.007814303040504456,
0.04884040728211403,
0.006120903883129358,
0.0017238587606698275,
-0.0048436918295919895,
0.041786935180425644,
0.05712948739528656,
-0.027520783245563507,
0.02011393941938877,
-0.04720936715602875,
-0.016227180138230324,
-0.02198508195579052,
-0.029464025050401688,
0.018965525552630424,
0.021321645006537437,
0.021050594747066498,
-0.007717187516391277,
-0.014901350252330303,
0.009327763691544533,
-0.030851751565933228,
-0.04442508891224861,
-0.01067905593663454,
-0.012034635059535503,
0.019329959526658058,
-0.013607817701995373,
-0.03209276124835014,
-0.043799422681331635,
0.017635634168982506,
0.00430805841460824,
-0.014497807249426842,
-0.058457229286432266,
-0.04059175029397011,
-0.01929829828441143,
-0.006479200907051563,
-0.02236606739461422,
-0.0003242463571950793,
-0.007661588490009308,
0.03295540437102318,
0.00889621116220951,
-0.007910571061074734,
-0.015894200652837753,
-0.034573815762996674,
-0.007619839161634445,
-0.0467551052570343,
0.0011035370407626033,
-0.016200711950659752,
0.007129023317247629,
0.02069370448589325,
-0.00961398333311081,
0.014359459280967712,
0.033142466098070145,
-0.018393611535429955,
0.05982431024312973,
-0.0019426097860559821,
0.019597815349698067,
0.033934783190488815,
0.0005366550758481026,
-0.052371587604284286,
0.026469636708498,
-0.010317014530301094,
-0.02767990343272686,
-0.02428709715604782,
0.037341125309467316,
-0.034781087189912796,
-0.02969892881810665,
-0.03704477846622467,
0.0035908620338886976,
-0.05461150035262108,
-0.039172183722257614,
-0.02212364226579666,
0.010173615999519825,
0.06929059326648712,
-0.028095977380871773,
0.03541726619005203,
-0.02746567875146866,
-0.025270795449614525,
0.019697589799761772,
-0.035456955432891846,
-0.0312940739095211,
0.04034462198615074,
0.026419805362820625,
-0.015259849838912487,
-0.01022646389901638,
-0.012022633105516434,
0.0018568558152765036,
0.006502512376755476,
0.0004513131862040609,
-0.016415301710367203,
0.007739479653537273,
-0.02247919701039791,
0.038698289543390274,
-0.005101147573441267,
-0.011178639717400074,
0.008898203261196613,
-0.0070997984148561954,
-0.014239304699003696,
-0.05568942427635193,
-0.033776942640542984,
-0.011913224123418331,
0.030094720423221588,
-0.04767733812332153,
-0.06375785917043686,
0.014770187437534332,
0.028680194169282913,
0.021044379100203514,
0.03495680168271065,
0.001967604970559478,
0.010605991818010807,
-0.011882190592586994,
0.038173507899045944,
0.06565071642398834,
-0.05556990206241608,
0.01813620515167713,
0.004210811108350754,
0.01669226959347725,
0.0389152355492115,
0.0011044986313208938,
-0.034927938133478165,
-0.0009475123952142894,
-0.026121828705072403,
0.018183527514338493,
-0.03694881498813629,
-0.014112296514213085,
-0.012095288373529911,
-0.004271716810762882,
-0.03325709328055382,
0.018847255036234856,
0.0056236726231873035,
-0.00795711949467659,
-0.022628016769886017,
-0.04247947037220001,
0.0047227428294718266,
-0.030050279572606087,
-0.004610779695212841,
0.06508079171180725,
-0.030516935512423515,
-0.012688424438238144,
-0.01903475821018219,
-0.014352081343531609,
0.04865743964910507,
-0.015584247186779976,
-0.021222447976469994,
-0.03413095697760582,
0.009410749189555645,
-0.0142440814524889,
0.0459597185254097,
-0.018864279612898827,
-0.01854921504855156,
-0.02826007828116417,
-0.025321360677480698,
-0.04010113328695297,
0.002249938901513815,
-0.0020306999795138836,
-0.029179198667407036,
0.03756800666451454,
0.0568525530397892,
-0.0020746798254549503,
0.02438327670097351,
0.0029392726719379425,
0.012231300584971905,
0.05418440327048302,
-0.049931883811950684,
-0.05319215729832649,
-0.01224313210695982,
-0.0704931989312172,
0.051218729466199875,
0.022018885239958763,
0.037734657526016235,
-0.05236012116074562,
0.04231160879135132,
0.029235800728201866,
-0.011779582127928734,
0.04066532477736473,
-0.0019197093788534403,
0.0321907177567482,
-0.040231041610240936,
0.02975897118449211,
-0.09044941514730453,
-0.010648135095834732,
0.03289139270782471,
0.005988212767988443,
-0.006522731389850378,
-0.028014766052365303,
-0.036575235426425934,
0.004612296354025602,
-0.08047761768102646,
-0.024788884446024895,
0.033995140343904495,
-0.021936634555459023,
0.011734576895833015,
0.025849763303995132,
-0.05824023857712746,
0.019582413136959076,
0.017940497025847435,
-0.049439992755651474,
-0.019411442801356316,
-0.035494547337293625,
0.0669761598110199,
0.03816899284720421,
0.0046982914209365845,
-0.018755270168185234,
0.006550920195877552,
0.09712697565555573,
0.02291102148592472,
0.056554414331912994,
0.0434560626745224,
-0.00878453254699707,
0.030316824093461037,
0.029802093282341957,
0.02062809467315674,
0.0179592352360487,
0.008245407603681087,
-0.010569743812084198,
-0.07059749960899353,
-0.0011710518738254905,
0.025744866579771042,
-0.03404625877737999,
-0.02826477214694023,
0.05295659974217415,
0.013161924667656422,
-0.0304070133715868,
-0.02596704475581646,
0.01814851351082325,
-0.025799104943871498,
-0.0476900152862072,
-0.03484735265374184,
-0.0007579000084660947,
-0.035701360553503036,
0.05914630740880966,
-0.007278332021087408,
0.011438577435910702,
0.05515401065349579,
0.015510840341448784,
-0.007846934720873833,
0.005952231585979462,
0.106361024081707,
0.06786110997200012,
0.020167451351881027,
0.027156157419085503,
0.04851604253053665,
0.003987857140600681,
-0.06659083813428879,
-0.0031587400007992983,
-0.042895540595054626,
-0.0379624180495739,
-0.018148628994822502,
0.01777533069252968,
0.03288520500063896,
-0.009929470717906952,
0.07026397436857224,
-0.032266248017549515,
-0.005863489117473364,
0.006555033847689629,
0.02583928033709526,
0.0043948860839009285,
0.029225783422589302,
0.005493389908224344,
0.02136923372745514,
-0.002178329275920987,
-0.07422398775815964,
0.04922359064221382,
-0.03668026998639107,
-0.022905563935637474,
0.017048673704266548,
0.01647845283150673,
0.021731877699494362,
0.01954706199467182,
0.045462433248758316,
0.08569329977035522,
-0.04024095460772514,
0.009252944961190224,
0.017575055360794067,
0.03241003677248955,
0.012271273881196976,
-0.005992586724460125,
-0.005087091587483883,
-0.006438572891056538,
-0.007819234393537045,
0.013352415524423122,
0.0038682459853589535,
-0.01248884852975607,
0.017860325053334236,
0.039873477071523666,
-0.03779983893036842,
0.00967784970998764,
0.012968525290489197,
-0.030956322327256203,
-0.03201953321695328,
-0.06876104325056076,
-0.02781507931649685,
-0.024462463334202766,
-0.08566173911094666,
-0.002066678134724498,
0.03613719344139099,
-0.013638974167406559,
-0.042241547256708145,
-0.022735344246029854,
-0.021691245958209038,
-0.02973293699324131,
0.046272940933704376,
-0.016073619946837425,
-0.024068843573331833,
0.028589682653546333,
0.0022609271109104156,
0.01896582916378975,
0.02696354314684868,
0.05115808546543121,
-0.0015489524230360985,
-0.017840538173913956,
-0.03503835201263428,
0.005359448026865721,
0.033657874912023544,
0.007968421094119549,
-0.012121922336518764,
-0.07550209760665894,
0.011142272502183914,
0.017654987052083015,
-0.015973476693034172,
-0.08302443474531174,
0.001889747683890164,
0.02617260068655014,
0.009480630047619343,
0.07189443707466125,
-0.0012049268698319793,
-0.004285214934498072,
-0.05148161202669144,
-0.0015361097175627947,
0.00490174163132906,
-0.03947172313928604,
0.029781177639961243,
-0.013571045361459255,
0.06323876231908798,
0.017088256776332855,
-0.015626797452569008,
-0.02942890115082264,
0.008784149773418903,
-0.007651709020137787,
0.00127263437025249,
-0.033109769225120544,
-0.02837587520480156,
-0.04396872967481613,
-0.0775560736656189,
-0.00943208858370781,
0.036217689514160156,
-0.03575237840414047,
-0.034267425537109375,
0.025129634886980057,
0.0452020987868309,
-0.013421843759715557,
0.03814220800995827,
-0.05267821252346039,
0.026030685752630234,
-0.027281029149889946,
-0.01966109126806259,
0.004008118994534016,
0.02410206012427807,
-0.009140873327851295,
0.02301485277712345,
0.02740994282066822,
-0.02734762616455555,
-0.04390254616737366,
-0.022034134715795517,
0.030417505651712418,
0.061094675213098526,
-0.012905033305287361,
-0.018644781783223152
] | [
-0.11599099636077881,
-0.057030774652957916,
-0.03824261575937271,
-0.007634805049747229,
-0.014298169873654842,
-0.04529263451695442,
0.050599996000528336,
0.048189014196395874,
0.03013475611805916,
-0.00297168898396194,
0.013595753349363804,
-0.00883458461612463,
-0.008663857355713844,
0.0178066473454237,
0.07123395055532455,
0.013161870650947094,
0.006980655714869499,
-0.10298044234514236,
-0.03880486637353897,
0.015082119032740593,
0.03795205056667328,
-0.04242265969514847,
-0.03537525609135628,
-0.043885741382837296,
0.06139471381902695,
0.01791415922343731,
0.02254532277584076,
-0.02441210299730301,
-0.005095948930829763,
-0.18624742329120636,
0.02802615985274315,
0.0018362816190347075,
0.0342785008251667,
-0.03998379036784172,
-0.046141285449266434,
0.05931871756911278,
-0.008078188635408878,
0.029677631333470345,
0.013270567171275616,
0.043870437890291214,
0.006073680240660906,
0.04675241559743881,
-0.07937276363372803,
-0.02123996615409851,
0.01341758668422699,
0.0036052719224244356,
0.004532691091299057,
-0.034332819283008575,
-0.001951374113559723,
0.02131311222910881,
-0.044787291437387466,
0.0022038621827960014,
0.020810186862945557,
-0.03989044949412346,
-0.00625099241733551,
0.03180650249123573,
0.0491710789501667,
0.0921792984008789,
0.02682136557996273,
0.03384904935956001,
0.03934841230511665,
-0.021213829517364502,
-0.11180523782968521,
0.07474444061517715,
0.01927356980741024,
0.024391133338212967,
0.00821532029658556,
-0.018038243055343628,
-0.0294231828302145,
0.08579158037900925,
0.054607193917036057,
-0.020411299541592598,
-0.0014808170963078737,
0.04504280164837837,
0.009237810969352722,
-0.0272285807877779,
0.014871996827423573,
0.019846227020025253,
0.024889511987566948,
-0.023763293400406837,
-0.041341736912727356,
-0.05328599736094475,
-0.020898638293147087,
-0.002854991937056184,
-0.02942514792084694,
0.0036075685638934374,
-0.009466885589063168,
0.06461240351200104,
0.05447607487440109,
0.03341308981180191,
0.08045203238725662,
0.0005510852788574994,
0.007390474434942007,
-0.00983675941824913,
-0.07058680057525635,
0.02606298215687275,
-0.021036269143223763,
-0.00828660186380148,
-0.061216890811920166,
0.43370699882507324,
0.00725942850112915,
0.005962011869996786,
0.039244040846824646,
0.025148913264274597,
-0.008714481256902218,
-0.01047336496412754,
-0.03349704667925835,
-0.039725162088871,
0.0032180396374315023,
-0.03348478302359581,
0.011112185195088387,
-0.007044118829071522,
0.08764205873012543,
-0.04293842986226082,
-0.02786094881594181,
0.031108485534787178,
0.03717687353491783,
-0.014032971113920212,
0.02000301517546177,
0.014386015944182873,
-0.039465513080358505,
0.0031536025926470757,
0.019460828974843025,
0.02691834419965744,
0.0066904635168612,
-0.05183422937989235,
0.01844499632716179,
0.06800725311040878,
0.007158127147704363,
0.009072350338101387,
0.059076521545648575,
-0.0936102345585823,
-0.07943759858608246,
-0.011606446467339993,
0.008912144228816032,
0.014605038799345493,
0.0283390861004591,
-0.001426992006599903,
0.031047731637954712,
0.027474628761410713,
-0.02016321010887623,
-0.044714801013469696,
0.0006675090990029275,
-0.018563035875558853,
-0.026086363941431046,
0.10178419202566147,
0.03179432451725006,
-0.02376684546470642,
0.011728817597031593,
-0.03907688334584236,
-0.029412219300866127,
0.005851356312632561,
0.011170247569680214,
-0.09448529779911041,
0.011097898706793785,
0.032854270190000534,
0.06507867574691772,
-0.008577807806432247,
-0.052211906760931015,
-0.01920284517109394,
-0.019428951665759087,
-0.013084854930639267,
-0.06133851781487465,
0.05771125108003616,
0.027711961418390274,
-0.07610267400741577,
-0.0195695199072361,
-0.0006536561995744705,
0.007520145736634731,
-0.05770152434706688,
-0.02397284470498562,
0.039317481219768524,
-0.04644095525145531,
-0.04476162791252136,
0.06813190132379532,
-0.01453432533890009,
-0.0335855670273304,
-0.023297026753425598,
0.01721677929162979,
0.014477299526333809,
-0.010136155411601067,
0.00897215586155653,
-0.047469362616539,
-0.007097041700035334,
-0.0419803112745285,
-0.06649064272642136,
-0.0565975084900856,
-0.014497864991426468,
-0.02305085025727749,
0.006171735934913158,
-0.013530319556593895,
-0.0488726869225502,
-0.09087833762168884,
0.07027977705001831,
-0.03764377534389496,
-0.03310533985495567,
-0.018044518306851387,
-0.0035081137903034687,
0.0048875994980335236,
-0.021202553063631058,
0.03436543419957161,
0.0016377961728721857,
-0.01901911199092865,
0.04625798016786575,
-0.03239278867840767,
0.07634805887937546,
0.04991883039474487,
-0.0332830511033535,
0.08764041215181351,
0.013701867312192917,
-0.01953580230474472,
-0.01251662615686655,
0.012480184435844421,
0.05339198186993599,
-0.018381817266345024,
-0.007384940516203642,
0.0023967809975147247,
0.0061234766617417336,
0.018013477325439453,
-0.002535909879952669,
-0.03700055181980133,
-0.009960257448256016,
0.01829306036233902,
-0.3305743336677551,
-0.04999322071671486,
-0.035032834857702255,
-0.03895353525876999,
0.0014158166013658047,
-0.06337292492389679,
0.017829155549407005,
-0.04808853566646576,
-0.03228460252285004,
0.015768788754940033,
0.07387101650238037,
-0.037573736160993576,
0.01022354606539011,
-0.07814166694879532,
0.004268703982234001,
-0.00493752583861351,
-0.081997349858284,
-0.0328993983566761,
-0.026309914886951447,
0.04101777821779251,
-0.020503809675574303,
-0.013351039960980415,
-0.019937394186854362,
-0.06300822645425797,
0.012821848504245281,
-0.00463741272687912,
0.11723747104406357,
0.026873765513300896,
0.08977049589157104,
-0.02911033108830452,
0.05701769143342972,
0.015990961343050003,
0.005582723766565323,
-0.05669889226555824,
0.007107879500836134,
-0.017524614930152893,
-0.02369675785303116,
-0.02797134779393673,
0.019127555191516876,
-0.028113974258303642,
-0.06103738024830818,
0.014367961324751377,
-0.05554690584540367,
-0.0496855154633522,
-0.010812550783157349,
0.033493734896183014,
-0.009157601743936539,
0.0033291655126959085,
-0.0035832610446959734,
0.09366949647665024,
0.0158593337982893,
-0.010030822828412056,
0.029857836663722992,
0.007121308706700802,
0.06456240266561508,
-0.018382305279374123,
-0.04965521767735481,
0.010339098982512951,
0.030562996864318848,
-0.0004387442022562027,
0.04129795357584953,
0.05923690274357796,
0.026127826422452927,
-0.04463209584355354,
-0.00933397188782692,
0.0039275228045880795,
-0.01021197997033596,
-0.01955919712781906,
0.00037918039015494287,
-0.015471098944544792,
-0.021591922268271446,
0.10087041556835175,
-0.009655755944550037,
-0.002732350490987301,
0.006223741453140974,
0.05193716660141945,
0.027805574238300323,
-0.009016049094498158,
0.0012945287162438035,
0.0062996516935527325,
0.017732899636030197,
-0.007981979288160801,
0.03436866030097008,
-0.025852076709270477,
-0.038021791726350784,
0.031167401000857353,
-0.001334414235316217,
0.002895917510613799,
0.05473902076482773,
-0.017585597932338715,
-0.042423635721206665,
-0.009043683297932148,
-0.024133358150720596,
-0.06898505240678787,
0.08623941242694855,
-0.02129066362977028,
-0.23906171321868896,
-0.006841098889708519,
0.049045808613300323,
0.04198978841304779,
-0.009560230188071728,
0.04586068540811539,
0.02628200687468052,
-0.04014480113983154,
-0.021190743893384933,
0.028151841834187508,
0.00853401143103838,
0.046373382210731506,
0.00833257008343935,
-0.02256510592997074,
0.05098759010434151,
-0.03446880355477333,
0.036121245473623276,
0.004766668193042278,
0.01609107106924057,
0.024206900969147682,
0.046504609286785126,
-0.011122931726276875,
0.1683790236711502,
0.014670470729470253,
0.0005633335094898939,
0.03475136309862137,
-0.007978891022503376,
0.038953687995672226,
0.07849246263504028,
0.013211579993367195,
-0.020128315314650536,
0.0017739003524184227,
0.03851010277867317,
-0.018349619582295418,
0.03224975988268852,
-0.10338760912418365,
-0.03269585594534874,
0.024018023163080215,
0.04188212752342224,
-0.009038813412189484,
0.011342099867761135,
0.021226005628705025,
-0.02625899761915207,
0.03534401208162308,
0.07849329710006714,
-0.008849963545799255,
-0.0038132183253765106,
0.0027387922164052725,
-0.0368504635989666,
0.02149738371372223,
-0.0220351479947567,
-0.046171899884939194,
0.006702235899865627,
-0.016477681696414948,
0.0016680224798619747,
0.07272511720657349,
0.005633133463561535,
-0.02943766675889492,
-0.01098141260445118,
-0.0011085757287219167,
-0.00582306832075119,
-0.009370554238557816,
0.12995068728923798,
-0.0023281483445316553,
0.06125066056847572
] | [
-0.024235259741544724,
0.03327513858675957,
0.00966264121234417,
-0.014601578004658222,
-0.022055618464946747,
0.017219986766576767,
0.011372767388820648,
0.029512442648410797,
0.006744686048477888,
0.003886162769049406,
0.005493566859513521,
-0.006747640203684568,
-0.0037708233576267958,
-0.023603122681379318,
0.013568989932537079,
-0.02339506521821022,
-0.018930375576019287,
0.004535218700766563,
0.023316748440265656,
-0.02571473829448223,
-0.004910063464194536,
0.019854534417390823,
0.010107756592333317,
-0.013886171393096447,
0.016871852800250053,
-0.002894165925681591,
-0.03400937840342522,
0.00466563506051898,
0.025296853855252266,
-0.1312577724456787,
-0.02604338526725769,
-0.007295685820281506,
0.00921324361115694,
0.000610052200499922,
-0.039760179817676544,
0.0018453409429639578,
0.015110548585653305,
0.012919960543513298,
0.013524956069886684,
0.004410103894770145,
-0.023926977068185806,
-0.010130251757800579,
-0.04576309025287628,
0.00679033063352108,
-0.011590737849473953,
-0.0257702823728323,
0.0256397295743227,
0.0055444384925067425,
-0.001824671751819551,
-0.014947195537388325,
-0.011308600194752216,
0.009854116477072239,
0.02188553847372532,
-0.011319218203425407,
0.026999255642294884,
0.000694521761033684,
-0.028307022526860237,
0.0004512277082540095,
0.008674046956002712,
-0.024895010516047478,
-0.010435722768306732,
0.014164297841489315,
-0.0385378934442997,
-0.015081612393260002,
-0.013515745289623737,
-0.00939625222235918,
0.006369634065777063,
-0.009350806474685669,
-0.009085494093596935,
-0.006213539279997349,
0.004555162973701954,
0.010431397706270218,
-0.016329064965248108,
-0.017421241849660873,
-0.034013260155916214,
0.022726908326148987,
0.016307896003127098,
-0.01506648026406765,
0.023076249286532402,
-0.001550271175801754,
-0.012973448261618614,
-0.03297415003180504,
0.0013628766173496842,
0.0007159287924878299,
0.02079830877482891,
-0.04553164541721344,
-0.007813124917447567,
0.022585749626159668,
0.0272276122123003,
0.015176182612776756,
-0.015056352131068707,
0.02038741111755371,
-0.025348318740725517,
0.02585585229098797,
-0.10359204560518265,
0.03128725290298462,
-0.015917789191007614,
-0.01941750757396221,
-0.002218028763309121,
0.8646357655525208,
0.007989848963916302,
0.03241721913218498,
0.0441240519285202,
-0.01007493119686842,
-0.00793467741459608,
-0.00699260551482439,
-0.019553013145923615,
-0.0016777258133515716,
0.048784658312797546,
-0.03847556561231613,
0.012176483869552612,
-0.015492487698793411,
0.03654904663562775,
0.035957422107458115,
0.005207190290093422,
0.02314375713467598,
0.042932190001010895,
-0.012683696113526821,
0.01171823125332594,
-0.00018490123329684138,
0.02475755289196968,
0.014519352465867996,
0.030999047681689262,
0.03270228952169418,
-0.01765444502234459,
-0.1627386510372162,
-0.012628649361431599,
-7.62781663794841e-33,
0.01982700265944004,
-0.0061234417371451855,
0.0022265405859798193,
0.006384178064763546,
-0.002967886859551072,
0.03253709524869919,
-0.022363968193531036,
0.05311085656285286,
-0.03779995068907738,
-0.03724118694663048,
0.014631186611950397,
-0.018711218610405922,
0.027266675606369972,
-0.006171160843223333,
0.010385035537183285,
-0.03533383831381798,
0.012047665193676949,
0.03235709294676781,
0.03538253903388977,
0.018283186480402946,
0.014945946633815765,
0.026501409709453583,
0.011776328086853027,
0.021247439086437225,
0.02923174574971199,
0.021327054128050804,
0.030404504388570786,
-0.0141170434653759,
-0.003681466681882739,
-0.045298535376787186,
0.0014749587280675769,
0.0070120966993272305,
-0.0205985140055418,
-0.025562185794115067,
0.005825424566864967,
-0.039648205041885376,
-0.009810814633965492,
0.013803549110889435,
-0.01705736294388771,
-0.04697192832827568,
-0.026562288403511047,
-0.0056425100192427635,
-0.004067413508892059,
0.01858634501695633,
-0.011579347774386406,
0.011102952994406223,
-0.003257783129811287,
0.014735374599695206,
0.02443733625113964,
0.014575299806892872,
-0.01903964951634407,
0.03343864530324936,
-0.005531542003154755,
-0.024809159338474274,
-0.040261298418045044,
0.02235679142177105,
-0.01373387686908245,
0.014695937745273113,
-0.023380814120173454,
0.023961085826158524,
0.009668002836406231,
0.0030234321020543575,
-0.011033878661692142,
0.012074309401214123,
-0.04759056121110916,
0.0016747843474149704,
-0.030880233272910118,
-0.041297122836112976,
0.045882634818553925,
0.01739398203790188,
-0.03571325168013573,
0.014081988483667374,
0.020485082641243935,
-0.003788924077525735,
-0.015493042767047882,
-0.03352022543549538,
0.004737776704132557,
-0.0002262960042571649,
-0.008254259824752808,
0.003444873495027423,
0.016863223165273666,
-0.011242048814892769,
0.04821714758872986,
-0.03558221086859703,
0.017138345167040825,
-0.011715543456375599,
0.016174226999282837,
-0.002831646241247654,
0.010884087532758713,
0.005984200164675713,
0.03433496505022049,
0.03324184939265251,
-0.024566685780882835,
-0.03606577217578888,
0.018120940774679184,
6.798982918023307e-33,
-0.0348949059844017,
-0.016955923289060593,
-0.026444844901561737,
-0.0070525058545172215,
-0.00733835157006979,
0.015373649075627327,
0.036530785262584686,
0.008743428625166416,
-0.02862495929002762,
-0.0003836113610304892,
-0.02484791912138462,
0.027254575863480568,
-0.002639979589730501,
0.011645984835922718,
0.0597335621714592,
-0.04415910691022873,
0.017056068405508995,
-0.00780280539765954,
0.022762829437851906,
0.01907074823975563,
-0.003973452840000391,
0.006970183923840523,
0.00044074637116864324,
0.02696717157959938,
0.03373182937502861,
0.053128499537706375,
-0.048689525574445724,
0.008690757676959038,
0.011604515835642815,
0.015521800145506859,
0.025861673057079315,
-0.010573337785899639,
0.012122543528676033,
-0.04016081243753433,
0.01930062659084797,
-0.009678389877080917,
0.020102012902498245,
-0.029440393671393394,
0.01864420436322689,
0.004372595809400082,
0.030805030837655067,
-0.010213911533355713,
-0.007635341491550207,
0.018504507839679718,
0.000665710715111345,
0.01942640170454979,
0.024647889658808708,
-0.005564470309764147,
-0.005021349992603064,
-0.008532112464308739,
0.013054046779870987,
0.01603400520980358,
-0.03042883239686489,
0.04626534506678581,
0.010280068032443523,
-0.012789491564035416,
-0.037897732108831406,
-0.0007003919454291463,
-0.0022469335235655308,
0.005979345180094242,
-0.01120190229266882,
-0.009687038138508797,
-0.027521507814526558,
0.019752122461795807,
-0.02524186484515667,
-0.014341519214212894,
-0.01943686418235302,
-0.04074116796255112,
-0.03475791960954666,
-0.0037010146770626307,
-0.04291513189673424,
-0.025186730548739433,
0.005686660297214985,
0.03836899995803833,
0.0012608271790668368,
0.027193164452910423,
-0.005594221875071526,
-0.002426904859021306,
-0.0003331075713504106,
-0.006635796278715134,
0.00948783103376627,
0.008405947126448154,
-0.004569568671286106,
-0.008614646270871162,
0.008913349360227585,
-0.036093298345804214,
-0.019908081740140915,
0.027411578223109245,
-0.011992891319096088,
-0.029775284230709076,
-0.008290671743452549,
0.0016996433259919286,
-0.018371371552348137,
0.024332592263817787,
0.02237449586391449,
-1.3194299874896842e-8,
-0.007408049888908863,
-0.00003296053546364419,
0.005273487884551287,
0.004900637548416853,
0.0410730317234993,
-0.010453390888869762,
-0.03230881690979004,
-0.03157104551792145,
0.0033314384054392576,
-0.022609548643231392,
-0.013232002034783363,
0.004846378229558468,
-0.006419905927032232,
0.02083824761211872,
0.011949382722377777,
-0.05838362127542496,
-0.005665746983140707,
-0.015508909709751606,
0.016202498227357864,
0.04785877466201782,
-0.0010857832385227084,
0.05464226007461548,
-0.030100682750344276,
0.010384926572442055,
-0.0022090086713433266,
-0.018356716260313988,
0.023004790768027306,
-0.05660110339522362,
0.01915961317718029,
-0.005977326072752476,
0.0009313594782724977,
-0.01723109744489193,
-0.01008397527039051,
0.01901526376605034,
-0.03048659861087799,
0.018211450427770615,
-0.005113283172249794,
0.02257073111832142,
0.004645536188036203,
-0.011123592965304852,
-0.022142259404063225,
-0.03764365240931511,
-0.012633796781301498,
-0.02854498289525509,
0.002563810208812356,
-0.04791161045432091,
-0.023600967600941658,
-0.005048506893217564,
0.02776440978050232,
-0.017923174425959587,
-0.018684078007936478,
0.040134090930223465,
0.017321713268756866,
0.008765907026827335,
0.04493198171257973,
-0.019210509955883026,
-0.019632363691926003,
-0.03636862710118294,
-0.0360524021089077,
0.015766557306051254,
0.04893238842487335,
-0.04031532630324364,
-0.0356837622821331,
-0.039601899683475494
] | functional-programming-handling-the-options | https://markhneedham.com/blog/2012/03/21/functional-programming-handling-the-options |
false | 2012-03-31 09:06:14 | Micro Services: A simple example | [
"domain-driven-design"
] | [
"Micro Services"
] | In our code base we had the concept of a 'ProductSpeed' with two different constructors which initialised the object in different ways:
[source,java]
----
public class ProductSpeed {
public ProductSpeed(String name) {
...
}
public ProductSpeed(String name, int order)) {
}
}
----
In the cases where the first constructor was used the order of the product was irrelevant.
When the second constructor was used we did care about it because we wanted to be able sort the products before showing them in a drop down list to the user.
The reason for the discrepancy was that this object was being constructed from data which originated from two different systems and in one the concept of order existed and in the other it didn't.
What we actually needed was to have two different versions of that object but we probably wouldn't want to name them 'ProductSpeedForSystem1' and 'ProductSpeedForSystem2'!
In Domain Driven Design terms we actually have the concept of a 'ProductSpeed' but in two different bounded contexts which could just mean that they come under different packages if we're building everything in one (monolithic) application.
However, we could see from looking at the way 'ProductSpeed' initialised from the second constructor was being used in the application that it didn't interact with anything else and so could easily be pulled out into its own mini application or http://2012.33degree.org/talk/show/67[micro service].
We're actually building an API for other systems to interact with and the initial design of the code described above was:
image::{{<siteurl>}}/uploads/2012/03/api-before.gif[Api before,303]
We get a product from the product list (which is sorted based on the ordering described!) and then post a request which includes the product amongst other things.
After we'd pulled out a micro service it looked like this:
image::{{<siteurl>}}/uploads/2012/03/api-after.gif[Api after,303]
The choice of product is actually a step that you do before you make your request to the main API whereas we'd initially coupled them into the same deployable.
These are the advantages I see from what we've done:
* We can now *easily change the underlying data source* of the products micro service if we want to since it now has its own schema which we could switch out if necessary.
* It takes about 5 minutes to populate all the products and we run the script to repopulate the main DB quite frequently. Now products can be loaded separately.
* Our code is now *much simplified*!
And some disadvantages:
* We now have to *deploy two jars instead of one* so our deployment has become a bit more complicated. My colleague http://twitter.com/boicy[James Lewis] points out that we're effectively pushing the complexity from the application into the infrastructure when we design systems with lots of mini applications doing one thing.
* Overall I think we have *more code* since there are some similarities between the objects in both contexts and we've now got two versions of each object since they're deployed separately. My experience is that sharing domain code generally leads to suffering so we're not doing that. | null | null | [
0.010290193371474743,
0.0024526030756533146,
-0.009423374198377132,
0.054474007338285446,
0.08493456989526749,
0.019698917865753174,
0.02210281230509281,
0.026146097108721733,
0.009756872430443764,
-0.0056534940376877785,
-0.0111875394359231,
-0.013850648887455463,
-0.06798350811004639,
0.04593156278133392,
-0.029414676129817963,
0.059627242386341095,
0.0679185763001442,
-0.0024451117496937513,
0.036237817257642746,
0.026322705671191216,
-0.0020922531839460135,
0.0655399039387703,
-0.00610286695882678,
0.032119039446115494,
0.04334190860390663,
0.03748246654868126,
0.0008436107309535146,
0.01590644381940365,
-0.05758199095726013,
-0.001971583580598235,
0.029920881614089012,
0.0016504771774634719,
-0.018187932670116425,
0.006498957518488169,
-0.0021839209366589785,
-0.028378581628203392,
-0.026746133342385292,
0.007838844321668148,
0.007988590747117996,
0.007620061282068491,
-0.055553607642650604,
0.03908790275454521,
0.0055822222493588924,
-0.018116822466254234,
-0.06899721920490265,
0.007119137793779373,
-0.05069964379072189,
-0.010267230682075024,
-0.020838050171732903,
-0.0005595398251898587,
-0.078092060983181,
0.019004572182893753,
-0.04318840056657791,
0.009539283812046051,
-0.013631178066134453,
0.034264568239450455,
0.023663150146603584,
-0.07039932906627655,
0.01615486666560173,
-0.06487370282411575,
0.01450109388679266,
-0.0004983923281542957,
0.02175145223736763,
0.014169844798743725,
0.02306152507662773,
-0.01974959298968315,
-0.016883809119462967,
0.04754066839814186,
-0.03268725052475929,
-0.025464823469519615,
-0.01949302665889263,
-0.020062720403075218,
0.003751481417566538,
0.0022499847691506147,
0.008663497865200043,
-0.03791799768805504,
-0.01185761671513319,
0.05487270653247833,
-0.011426221579313278,
0.03618844971060753,
-0.024119414389133453,
0.014848915860056877,
0.0166604183614254,
0.012663912028074265,
0.0029744587372988462,
-0.019523171707987785,
-0.04100895673036575,
0.001097215572372079,
-0.03141876682639122,
0.05635259300470352,
0.021530205383896828,
-0.03541817143559456,
0.012951711192727089,
0.0281936377286911,
-0.00646473653614521,
-0.0008518166141584516,
0.017052723094820976,
-0.025965867564082146,
0.0035761198960244656,
0.010092542506754398,
-0.02649027854204178,
-0.016699519008398056,
0.019574640318751335,
0.00850435346364975,
-0.06260353326797485,
-0.012525499798357487,
-0.02762703411281109,
-0.026452114805579185,
-0.007932762615382671,
0.002387029817327857,
-0.016026418656110764,
0.01903238147497177,
-0.0323573462665081,
0.01969529502093792,
-0.06823772937059402,
0.08222392201423645,
-0.0022637112997472286,
-0.035137347877025604,
-0.00036437908420339227,
0.0374099425971508,
0.04600130766630173,
0.013871844857931137,
-0.02967192605137825,
0.07990312576293945,
0.010497036390006542,
0.03524806722998619,
-0.03336778283119202,
0.048029687255620956,
-0.019038096070289612,
-0.0643690824508667,
-0.006598603446036577,
0.042423851788043976,
-0.018258899450302124,
0.011346935294568539,
-0.0059484513476490974,
-0.02516593225300312,
0.008806824684143066,
-0.009701736271381378,
0.04643924534320831,
0.02053944766521454,
-0.019592419266700745,
-0.05860303342342377,
0.007646025624126196,
-0.016564372926950455,
0.01642770878970623,
0.005763608496636152,
0.02183130942285061,
-0.043071627616882324,
-0.017130864784121513,
0.0053745657205581665,
-0.007212272845208645,
0.046903278678655624,
0.04734565690159798,
-0.02380221337080002,
0.010848886333405972,
0.08592280000448227,
0.0030140732415020466,
0.01705322042107582,
-0.013888656161725521,
0.016578732058405876,
0.026350433006882668,
0.028741152957081795,
-0.0028675708454102278,
0.02289620228111744,
0.02280699647963047,
-0.00003117477535852231,
0.006410195026546717,
0.0568092055618763,
-0.01090544369071722,
-0.03236459568142891,
-0.08320718258619308,
-0.07752924412488937,
0.05766285955905914,
-0.026402177289128304,
-0.024306803941726685,
0.04478985071182251,
0.08575878292322159,
0.008683543652296066,
0.07088502496480942,
-0.012791087850928307,
-0.07458733022212982,
0.012699856422841549,
0.008672501891851425,
0.017724694684147835,
0.02928805910050869,
-0.009140648879110813,
0.0746936947107315,
0.02794826030731201,
-0.010738854296505451,
0.020317506045103073,
-0.05563171207904816,
-0.07833722233772278,
-0.028914878144860268,
-0.020871898159384727,
0.05741835758090019,
-0.020634308457374573,
-0.005283209029585123,
0.06547865271568298,
0.009414787404239178,
0.053096942603588104,
0.032597508281469345,
0.0011342960642650723,
-0.003156212391331792,
-0.06564358621835709,
-0.040486689656972885,
0.03583507239818573,
0.03385518863797188,
-0.005945918615907431,
-0.03348652273416519,
0.008672187104821205,
-0.025901194661855698,
-0.014094991609454155,
0.03880070894956589,
-0.012535005807876587,
0.04878442734479904,
0.02197798155248165,
0.05885634571313858,
-0.03819457069039345,
0.046421345323324203,
-0.08161398023366928,
0.022958440706133842,
-0.008349892683327198,
-0.019371338188648224,
0.0036620190367102623,
-0.005983819719403982,
0.11892465502023697,
0.0516507513821125,
-0.045070208609104156,
-0.04244174435734749,
0.04941853880882263,
0.0385601706802845,
-0.05930051580071449,
-0.006601681932806969,
-0.029536494985222816,
-0.00392876984551549,
0.016487861052155495,
-0.04196782782673836,
-0.00926298275589943,
0.005826679058372974,
-0.03692006319761276,
0.01851452887058258,
0.07541701942682266,
-0.032009467482566833,
0.04245667904615402,
0.016297653317451477,
-0.032533079385757446,
0.000684506434481591,
-0.029823150485754013,
-0.0752505213022232,
-0.0022908314131200314,
0.0022173745092004538,
-0.012783396057784557,
0.06506581604480743,
-0.012216279283165932,
-0.0423433817923069,
-0.028933510184288025,
-0.03646045923233032,
0.02139551006257534,
0.013908238150179386,
0.06813344359397888,
-0.00760447746142745,
0.06435392796993256,
-0.0029805994126945734,
0.02250397950410843,
-0.007086853962391615,
-0.04819374531507492,
0.002117943949997425,
0.005140478722751141,
0.007130031939595938,
0.057094186544418335,
0.014619937166571617,
-0.004125381354242563,
0.02353542298078537,
-0.004860022105276585,
-0.010390103794634342,
-0.008126500062644482,
0.03717464581131935,
-0.01333688572049141,
-0.01606842502951622,
-0.017640991136431694,
-0.0206708125770092,
0.044162727892398834,
-0.032780326902866364,
-0.03687318414449692,
0.02246345579624176,
-0.07943572849035263,
0.05868346616625786,
-0.10791385173797607,
-0.05752388760447502,
0.01179081667214632,
0.038368020206689835,
0.03959736227989197,
-0.014411241747438908,
0.025576002895832062,
0.09646351635456085,
0.01610286347568035,
-0.02705313079059124,
-0.004542176146060228,
0.01839686930179596,
0.020006991922855377,
-0.016506409272551537,
0.023685673251748085,
0.02611674554646015,
0.009069720283150673,
0.0011884907726198435,
-0.04652098938822746,
0.022623533383011818,
-0.00557079678401351,
-0.2677767276763916,
0.01237343531101942,
0.010082020424306393,
-0.041834332048892975,
0.03326450660824776,
0.003073992906138301,
0.028060706332325935,
-0.057797469198703766,
-0.014799303375184536,
0.048865873366594315,
-0.02382449060678482,
-0.04649340733885765,
-0.00817176979035139,
0.051216136664152145,
-0.019838573411107063,
0.03408152610063553,
0.007851261645555496,
-0.03221581503748894,
-0.02263571508228779,
0.04286649078130722,
-0.020798854529857635,
-0.07431156933307648,
0.0071390182711184025,
0.02290424518287182,
0.02693379484117031,
0.038484156131744385,
-0.09102758020162582,
0.04385627433657646,
-0.035970963537693024,
-0.012400158680975437,
0.01951570436358452,
0.000978344352915883,
0.011075970716774464,
-0.029884088784456253,
-0.019995329901576042,
-0.03145700320601463,
0.0063208346255123615,
0.021763892844319344,
0.00551098957657814,
0.00040180369978770614,
-0.033492762595415115,
-0.04750621318817139,
-0.007259280886501074,
0.004984816536307335,
0.06538183987140656,
-0.004217798821628094,
-0.07217754423618317,
-0.017397111281752586,
-0.05701747536659241,
0.06372535228729248,
-0.016583479940891266,
-0.0374489463865757,
-0.002748692175373435,
0.03852895274758339,
-0.01659303531050682,
-0.020002294331789017,
0.01596742682158947,
-0.0062102749943733215,
-0.04724634066224098,
-0.031759634613990784,
-0.005334062501788139,
-0.041111525148153305,
-0.027788175269961357,
-0.038489799946546555,
0.011893795803189278,
-0.07298892736434937,
-0.05167785659432411,
0.013572990894317627,
0.05973910167813301,
0.016482502222061157,
-0.025064757093787193,
0.02365691028535366,
0.011615884490311146,
-0.11832953244447708,
0.02699403092265129,
-0.04816107079386711,
-0.013000079430639744,
-0.035588473081588745,
-0.007820517756044865,
0.03882932662963867,
-0.011756866239011288,
-0.0511041134595871,
0.026676490902900696,
0.0303950235247612,
0.013702334836125374,
-0.014680922962725163,
0.04790818318724632,
-0.007789159193634987,
-0.019824283197522163,
0.009869266301393509,
0.07560306042432785,
0.002201562514528632,
-0.014527862891554832,
-0.05279415100812912,
0.01992442086338997,
0.011566780507564545,
0.0072940620593726635,
0.0075324540957808495,
-0.0025431981775909662,
0.027741776779294014,
0.010894994251430035,
-0.05703520029783249,
0.02807917445898056,
0.001705338479951024,
-0.0013412466505542397,
-0.01650814339518547,
-0.03963437303900719,
0.017112622037529945,
0.03801748901605606,
0.03233709558844566,
-0.0033695767633616924,
-0.0368131659924984,
0.011060936376452446,
-0.05744711682200432,
-0.0350467823445797,
-0.011909376829862595,
-0.005403911229223013,
0.049651455134153366,
-0.025906406342983246,
0.0006922665052115917,
-0.0324229821562767,
0.03824394568800926,
0.02098647691309452,
-0.012007378973066807,
-0.05304938927292824,
-0.046550020575523376,
-0.02874963916838169,
-0.009234415367245674,
0.020689234137535095,
0.017752399668097496,
-0.011618409305810928,
0.04195089638233185,
-0.00521299010142684,
-0.049781057983636856,
-0.005464948248118162,
0.0021333564072847366,
-0.03552336245775223,
-0.03898801654577255,
-0.007667265832424164,
-0.015562977641820908,
0.018819203600287437,
0.011547048576176167,
0.0328640379011631,
0.01284562237560749,
0.04918235167860985,
0.0024421680718660355,
0.05822933465242386,
-0.0010662617860361934,
0.01583118923008442,
-0.025564372539520264,
0.013567006215453148,
-0.083309106528759,
0.021521158516407013,
-0.047789253294467926,
-0.029034951701760292,
-0.04314855486154556,
0.026764724403619766,
-0.01533666905015707,
-0.07171725481748581,
-0.022154562175273895,
0.029612049460411072,
-0.06156677380204201,
-0.03818396106362343,
-0.0368589386343956,
0.00719711696729064,
0.07052247226238251,
-0.00940146017819643,
0.03286859020590782,
-0.01910848170518875,
-0.0429546982049942,
0.02267778292298317,
0.007991530001163483,
-0.03659068048000336,
0.02259264886379242,
0.00017864946858026087,
-0.002325778128579259,
-0.003801649669185281,
0.01309872791171074,
0.06164557486772537,
0.018424194306135178,
0.006297741085290909,
-0.01020960882306099,
0.0084826136007905,
-0.01724342256784439,
0.04309103637933731,
0.014753150753676891,
0.0025907382369041443,
0.0077956621535122395,
-0.013916201889514923,
-0.009775853715837002,
-0.02665652334690094,
-0.016485143452882767,
0.0009514327393844724,
0.03372380882501602,
-0.023559557273983955,
-0.09026335924863815,
0.03515544906258583,
0.018257174640893936,
0.0200576800853014,
0.011398603208363056,
-0.00622553750872612,
0.02915986441075802,
-0.034344419836997986,
0.02988743782043457,
0.05232374370098114,
-0.04999867454171181,
0.02120092697441578,
-0.007152548525482416,
0.02999778650701046,
0.02133152447640896,
0.00355700240470469,
-0.05484332889318466,
-0.0250140018761158,
-0.031110556796193123,
-0.024784957990050316,
-0.05360892415046692,
-0.03157593309879303,
-0.018786435946822166,
0.013288673013448715,
-0.007131156045943499,
-0.009902655147016048,
0.0057372418232262135,
-0.005318419076502323,
-0.02375064231455326,
-0.020440204069018364,
0.02703261561691761,
-0.041296832263469696,
0.015175688080489635,
0.02775343507528305,
-0.0318944938480854,
0.014067086391150951,
-0.0017332027200609446,
0.009977125562727451,
0.02787576988339424,
-0.021728290244936943,
-0.017368877306580544,
-0.04320572689175606,
-0.010593616403639317,
0.011876082979142666,
0.057058144360780716,
0.007123815361410379,
-0.006772660184651613,
-0.028633950278162956,
-0.008393803611397743,
-0.02640911191701889,
0.028000937774777412,
-0.005619791802018881,
-0.018535979092121124,
0.022770000621676445,
0.04525415226817131,
-0.0053997160866856575,
0.022391336038708687,
0.0021559358574450016,
0.0031985417008399963,
0.07036042213439941,
-0.064638651907444,
-0.022942330688238144,
-0.03016570210456848,
-0.06542474776506424,
0.006753320340067148,
0.012569007463753223,
0.027214277535676956,
-0.029420243576169014,
0.05292021483182907,
0.040934979915618896,
0.026875313371419907,
0.05022348463535309,
0.007543700281530619,
0.037648625671863556,
-0.045715928077697754,
-0.005078685935586691,
-0.07811089605093002,
0.036296598613262177,
0.05966969206929207,
0.022499533370137215,
-0.009481118060648441,
-0.02325611002743244,
-0.03769447281956673,
0.06997382640838623,
-0.06287656724452972,
-0.017796890810132027,
0.03227928653359413,
0.010358263738453388,
-0.017170457169413567,
0.005843534599989653,
-0.06251455843448639,
0.030626073479652405,
0.017461787909269333,
-0.04724673926830292,
-0.00976589135825634,
-0.02821151539683342,
0.06339990347623825,
0.00658235652372241,
0.017358701676130295,
-0.03475677967071533,
-0.018542055040597916,
0.07244206964969635,
0.0022206096909940243,
0.023575402796268463,
0.04605155438184738,
-0.021044939756393433,
0.04152842238545418,
0.018806325271725655,
-0.022267283871769905,
-0.0199932511895895,
0.019524624571204185,
0.011408292688429356,
-0.04460742697119713,
0.010849952697753906,
0.008990660309791565,
-0.03725562244653702,
-0.072135791182518,
0.06677146255970001,
0.028163183480501175,
-0.013010678812861443,
-0.05263860896229744,
0.03408521041274071,
-0.061457592993974686,
-0.02009541541337967,
-0.013711907900869846,
-0.009418537840247154,
-0.053925659507513046,
0.0499422550201416,
0.006894370075315237,
0.0009022727026604116,
0.07831519842147827,
0.006434531416743994,
-0.025930672883987427,
-0.009291415102779865,
0.07799984514713287,
0.07287509739398956,
0.03263986110687256,
0.0005497045931406319,
0.05013811215758324,
-0.013104485347867012,
-0.04372187331318855,
0.025218011811375618,
-0.03259364888072014,
-0.03884024918079376,
-0.0030529808718711138,
0.024176834151148796,
0.055913884192705154,
-0.006863385438919067,
0.04868115484714508,
-0.03633010387420654,
0.00882518570870161,
0.01195590104907751,
0.05519114062190056,
0.02028348669409752,
0.05755867436528206,
0.009372048079967499,
0.03069787472486496,
0.008145485073328018,
-0.03898831084370613,
-0.009015318937599659,
-0.027971407398581505,
-0.00685849878937006,
0.022303506731987,
-0.024616321548819542,
0.008158277720212936,
-0.00526761868968606,
0.010027062147855759,
0.07910428941249847,
-0.019641496241092682,
-0.011149449273943901,
0.004800703376531601,
0.027851896360516548,
0.024391066282987595,
-0.021997561678290367,
-0.01508254837244749,
-0.015610079281032085,
0.00047630956396460533,
-0.020801948383450508,
-0.018635310232639313,
-0.004441637080162764,
-0.0016414717538282275,
0.06465855985879898,
0.00439080037176609,
0.026047522202134132,
0.015787852928042412,
0.014291547238826752,
-0.013599834404885769,
-0.05130657181143761,
-0.06546641141176224,
-0.03219645097851753,
-0.06557006388902664,
-0.018788665533065796,
0.029929500073194504,
0.00008981858263723552,
-0.01729436032474041,
-0.037016090005636215,
-0.017280397936701775,
-0.0022297396790236235,
0.05874626338481903,
-0.0487210638821125,
-0.02235722728073597,
0.03489381819963455,
0.01646442711353302,
0.027765104547142982,
0.013885071501135826,
0.05745502933859825,
-0.008239645510911942,
0.0035397822503000498,
-0.05973850190639496,
0.005828164052218199,
0.03245904669165611,
0.006538619287312031,
-0.003586551873013377,
-0.07671181857585907,
0.028572585433721542,
0.0067868842743337154,
-0.023264901712536812,
-0.05937808379530907,
0.0024865230079740286,
0.01944710500538349,
-0.010983431711792946,
0.05097618326544762,
-0.032399874180555344,
-0.017426252365112305,
-0.03307780250906944,
-0.02369125373661518,
0.015126771293580532,
0.015550510957837105,
0.040618646889925,
-0.02337428741157055,
0.0915701687335968,
0.04406442120671272,
-0.025099461898207664,
-0.03332969546318054,
0.0064548468217253685,
-0.01659148931503296,
0.013754562474787235,
-0.018737629055976868,
-0.049255408346652985,
-0.03542838990688324,
-0.0774274617433548,
-0.015044991858303547,
0.024109570309519768,
-0.03345766291022301,
-0.036245305091142654,
0.007143787574023008,
0.05044771358370781,
-0.039337169378995895,
0.01304436381906271,
-0.022688118740916252,
0.033298783004283905,
-0.01596187986433506,
0.007735823281109333,
0.008637330494821072,
0.018196145072579384,
-0.0005477520753629506,
-0.0014317252207547426,
0.012157600373029709,
-0.01617894507944584,
-0.02114785648882389,
-0.026784369722008705,
0.03460945934057236,
0.05551595240831375,
0.025525623932480812,
0.006672396324574947
] | [
-0.08616159856319427,
-0.018126122653484344,
-0.05905807763338089,
-0.04878455772995949,
0.02786402218043804,
-0.040520988404750824,
-0.019399622455239296,
0.018469754606485367,
0.02474191039800644,
-0.024111051112413406,
0.006145784631371498,
-0.02205258049070835,
-0.012167716398835182,
-0.0011203554458916187,
0.09453165531158447,
-0.021641667932271957,
0.013553017750382423,
-0.06931106746196747,
-0.011737603694200516,
0.012806401588022709,
0.057212088257074356,
-0.029157808050513268,
-0.039348095655441284,
-0.06427251547574997,
0.011835695244371891,
0.04300102964043617,
0.03321550041437149,
-0.01801612600684166,
0.011266498826444149,
-0.20936723053455353,
0.012065590359270573,
-0.008784282952547073,
0.031853221356868744,
-0.0222734734416008,
-0.0093867601826787,
0.027254069223999977,
0.014697922393679619,
0.03803980350494385,
-0.031069263815879822,
0.03205927833914757,
-0.0017246262868866324,
0.03932900354266167,
-0.057644251734018326,
-0.025579608976840973,
0.011867048218846321,
0.009302539750933647,
0.008383017033338547,
-0.020003734156489372,
-0.009440496563911438,
0.008943537250161171,
-0.04420826956629753,
-0.002594585996121168,
0.015673795714974403,
-0.012957783415913582,
0.005297763738781214,
0.02031284011900425,
0.047075580805540085,
0.08391351997852325,
0.02453666366636753,
0.03455153480172157,
0.02510731667280197,
-0.05491717532277107,
-0.12772753834724426,
0.09386266767978668,
0.03046228364109993,
0.04600485786795616,
-0.036216817796230316,
-0.04094263166189194,
-0.022534359246492386,
0.08377551287412643,
0.018569229170680046,
-0.0022725865710526705,
-0.023335903882980347,
0.07420390844345093,
0.01848512515425682,
-0.017770232632756233,
0.012291645631194115,
0.015415697358548641,
0.04362253472208977,
-0.036133039742708206,
-0.05106915161013603,
-0.05007375031709671,
-0.04250124841928482,
-0.006455577444285154,
-0.023857196792960167,
0.025771411135792732,
0.014346202835440636,
0.04301387816667557,
0.06904861330986023,
0.0261511392891407,
0.0266539566218853,
-0.026823345571756363,
0.02455071359872818,
0.019732054322957993,
-0.08156329393386841,
0.028589319437742233,
-0.04741658270359039,
0.012947872281074524,
-0.019614866003394127,
0.4283776581287384,
-0.00837702490389347,
-0.033238485455513,
0.03920163959264755,
0.03321110084652901,
0.00976647064089775,
0.00017382536316290498,
-0.012106815353035927,
-0.05064127966761589,
0.017848460003733635,
-0.04267352819442749,
0.007975257001817226,
0.022995488718152046,
0.04509229212999344,
-0.05053555220365524,
-0.008650933392345905,
0.00270297029055655,
-0.01595045067369938,
0.00748034380376339,
0.0092842448502779,
0.014058287255465984,
-0.006770511157810688,
-0.0033542485907673836,
0.01342408824712038,
0.0076371533796191216,
-0.04749995842576027,
-0.03016340360045433,
0.033176880329847336,
0.04854679852724075,
0.01844196766614914,
0.018136361613869667,
0.05343230813741684,
-0.06368737667798996,
-0.06829805672168732,
0.00015127836377359927,
0.027081532403826714,
0.024206027388572693,
0.025632310658693314,
-0.0033984649926424026,
-0.006011694669723511,
0.019099842756986618,
-0.02144748903810978,
0.01671653240919113,
0.015269816853106022,
-0.05345102399587631,
-0.04983121156692505,
0.12592466175556183,
0.029022490605711937,
-0.004487162921577692,
-0.024260548874735832,
-0.008064139634370804,
-0.023911692202091217,
0.024611419066786766,
0.022416146472096443,
-0.07122285664081573,
0.017315473407506943,
0.027434909716248512,
0.05954659357666969,
-0.01712133176624775,
-0.049411121755838394,
-0.032629504799842834,
-0.0020313041750341654,
-0.007766104303300381,
-0.03813718631863594,
0.05543316900730133,
0.030490132048726082,
-0.11980786174535751,
-0.016696879640221596,
0.01924886368215084,
0.038376063108444214,
-0.042009443044662476,
-0.022820433601737022,
0.050267692655324936,
-0.00032151243067346513,
-0.014630560763180256,
0.05514352768659592,
-0.007358904927968979,
-0.03725689277052879,
0.013740274123847485,
0.015841113403439522,
0.008672273717820644,
0.007050787098705769,
0.02470066398382187,
-0.04592664912343025,
-0.008702065795660019,
0.0029665674082934856,
-0.08722807466983795,
-0.0732562318444252,
0.015928493812680244,
-0.03288226202130318,
-0.01740391179919243,
-0.02815321460366249,
-0.029528332874178886,
-0.08198607712984085,
0.1017286479473114,
-0.03438815474510193,
-0.013992233201861382,
0.02570338547229767,
0.009126652032136917,
-0.0003489330701995641,
-0.02026018314063549,
0.01361317839473486,
0.042421020567417145,
-0.015838617458939552,
0.053735069930553436,
-0.08744868636131287,
0.05601507052779198,
0.05360252037644386,
-0.03982509672641754,
0.07483898848295212,
0.006962719839066267,
-0.058154232800006866,
-0.026489023119211197,
-0.02580772340297699,
0.02641087770462036,
-0.007304535713046789,
-0.039234668016433716,
-0.013870835304260254,
0.0427049845457077,
0.01688520237803459,
0.008646815083920956,
-0.035585273057222366,
-0.014314775355160236,
0.0021978924050927162,
-0.34903234243392944,
-0.04407535865902901,
-0.007688469719141722,
-0.009027045220136642,
-0.0029022572562098503,
-0.04019897058606148,
0.01354814600199461,
-0.02592947892844677,
-0.02613571099936962,
0.0007553293253295124,
0.09571417421102524,
-0.02475014328956604,
0.010337830521166325,
-0.0553661584854126,
-0.029203468933701515,
0.013828648254275322,
-0.037690598517656326,
-0.028123697265982628,
-0.021387046203017235,
0.0020644369069486856,
-0.016101710498332977,
0.013341227546334267,
0.018211359158158302,
-0.06326725333929062,
0.0015882753068581223,
-0.030247393995523453,
0.10615892708301544,
-0.002541395602747798,
0.0693957656621933,
-0.06494772434234619,
0.06293293833732605,
0.01587960310280323,
0.0016161688836291432,
-0.07373063266277313,
0.002253105631098151,
-0.022371895611286163,
-0.025700418278574944,
-0.023057229816913605,
0.030402623116970062,
-0.0010350446682423353,
-0.06476861238479614,
0.003999860491603613,
-0.03635836020112038,
-0.016153762117028236,
0.003981088288128376,
-0.01455654390156269,
-0.03224598988890648,
-0.036801908165216446,
-0.022154202684760094,
0.08254167437553406,
-0.01848927140235901,
-0.03931684046983719,
0.010624725371599197,
0.028760898858308792,
0.030260629951953888,
-0.030061043798923492,
-0.03143569082021713,
0.020908625796437263,
0.019220370799303055,
-0.0003041894524358213,
0.023599127307534218,
0.06447624415159225,
0.022653842344880104,
-0.02428756095468998,
-0.010156973265111446,
-0.019302720203995705,
-0.004082948435097933,
0.0011006095446646214,
0.024365825578570366,
-0.04573843628168106,
-0.031490206718444824,
0.1115102469921112,
-0.00982719101011753,
0.014345400966703892,
0.059308141469955444,
0.039472293108701706,
-0.0007378500886261463,
0.03021444007754326,
0.02410743571817875,
-0.0028065023943781853,
0.011584238149225712,
0.036641038954257965,
0.029624491930007935,
-0.024566639214754105,
-0.004704911727458239,
0.02274320088326931,
0.013962397351861,
-0.02500150352716446,
0.011716530658304691,
0.0036988358478993177,
-0.03160298988223076,
0.005502169951796532,
-0.026224816218018532,
-0.040778450667858124,
0.07346337288618088,
-0.019104085862636566,
-0.25835981965065,
0.05050288513302803,
0.08682605624198914,
0.06273911893367767,
-0.008485163561999798,
0.029174912720918655,
0.018908534198999405,
-0.0451274998486042,
0.009828134439885616,
0.014361211098730564,
0.007428466808050871,
0.02582305110991001,
0.032398711889982224,
-0.008146236650645733,
0.05439869314432144,
0.018967418000102043,
0.05857368931174278,
-0.0021741383243352175,
0.020147861912846565,
-0.006357280071824789,
-0.0026607385370880365,
-0.014013714157044888,
0.17794695496559143,
0.028581224381923676,
0.020527636632323265,
0.020390940830111504,
-0.005230629350990057,
0.03204543888568878,
0.051356278359889984,
0.041918911039829254,
-0.0017809682758525014,
-0.005926087498664856,
0.08563532680273056,
-0.002310275798663497,
0.011944507248699665,
-0.0883336290717125,
0.02068403549492359,
0.023776648566126823,
0.018453024327754974,
0.01503347884863615,
-0.005567782558500767,
-0.0018111101817339659,
-0.047550830990076065,
0.012632286176085472,
0.07326803356409073,
0.003913816995918751,
-0.033468782901763916,
-0.05543894320726395,
-0.048487547785043716,
-0.010934189893305302,
-0.019118480384349823,
-0.08893931657075882,
-0.003099823836237192,
0.007478159386664629,
0.01749523915350437,
0.04280359670519829,
0.019812125712633133,
-0.038150329142808914,
-0.054082516580820084,
0.0036511255893856287,
0.01875213533639908,
-0.0141227375715971,
0.0851115807890892,
0.02611122839152813,
0.02903245948255062
] | [
-0.0172882042825222,
0.0393972247838974,
0.022685283794999123,
-0.02319064922630787,
0.016947206109762192,
-0.0001283022720599547,
0.0024926229380071163,
0.03000584803521633,
-0.015078719705343246,
-0.006162124685943127,
0.015139070339500904,
0.034593578428030014,
0.00617313152179122,
-0.04085170477628708,
0.05979398638010025,
-0.005468391347676516,
0.04862476885318756,
0.019385987892746925,
-0.00005122269067214802,
0.013678817078471184,
-0.005577895790338516,
0.01540838461369276,
-0.0544283427298069,
0.006059801671653986,
-0.010483070276677608,
0.050410907715559006,
-0.04013894498348236,
0.009871579706668854,
-0.001964920898899436,
-0.16605764627456665,
-0.020124007016420364,
-0.04409468546509743,
-0.009529666975140572,
0.024180643260478973,
0.03447609022259712,
0.00520669249817729,
0.03092658892273903,
-0.048201821744441986,
0.013966938480734825,
-0.0303289033472538,
0.0028443948831409216,
-0.025904666632413864,
0.0034402140881866217,
-0.007258405908942223,
-0.0007164803682826459,
-0.0148170730099082,
0.023924801498651505,
-0.005706035997718573,
0.013586564920842648,
-0.021227629855275154,
-0.04754581302404404,
0.011762382462620735,
-0.023404322564601898,
0.015454069711267948,
0.0021925598848611116,
-0.028819328173995018,
-0.0025884578935801983,
0.02059408463537693,
0.009062991477549076,
-0.0028505849186331034,
0.0036683031357824802,
-0.04826460778713226,
-0.026590287685394287,
-0.0041257236152887344,
-0.012156540527939796,
-0.01937102898955345,
0.0334089919924736,
-0.03675885871052742,
-0.02223489247262478,
0.004015299025923014,
0.008551748469471931,
0.030989043414592743,
-0.010329914279282093,
0.0029048060532659292,
-0.02044019289314747,
-0.015905870124697685,
0.03789292275905609,
0.030656175687909126,
0.01244916021823883,
-0.01596982218325138,
-0.010086734779179096,
0.002091397996991873,
-0.013637775555253029,
0.01195506937801838,
-0.023891331627964973,
-0.009899298660457134,
0.013781024143099785,
0.01085850689560175,
0.030035728588700294,
0.02930278889834881,
-0.027056902647018433,
0.022454267367720604,
0.031755559146404266,
-0.002308102324604988,
-0.053059838712215424,
0.005357952322810888,
-0.031005559489130974,
-0.024083105847239494,
-0.030059460550546646,
0.8306366205215454,
-0.0026665579061955214,
-0.005872743669897318,
0.027145816013216972,
0.061045411974191666,
0.023226195946335793,
-0.013004403561353683,
-0.04490283131599426,
0.050954483449459076,
0.04898447543382645,
0.026295090094208717,
0.03053184039890766,
0.012557638809084892,
-0.0014256378635764122,
0.023508653044700623,
-0.023167572915554047,
-0.017708713188767433,
-0.023875363171100616,
-0.00979190319776535,
0.018719643354415894,
-0.022264186292886734,
0.03698760271072388,
-0.006344975903630257,
0.02476462908089161,
-0.052522990852594376,
-0.0020875968039035797,
-0.12882833182811737,
0.021506495773792267,
-7.15019712016199e-33,
-0.0010608821175992489,
-0.04115595296025276,
0.019021961838006973,
0.004702847916632891,
0.017748067155480385,
0.04273643344640732,
-0.01832105591893196,
0.02413558028638363,
0.024172790348529816,
-0.03463200479745865,
-0.017681002616882324,
-0.01658446341753006,
-0.024537185207009315,
0.015775835141539574,
0.026735292747616768,
-0.046151794493198395,
0.005878472235053778,
0.008801420219242573,
0.0215007197111845,
-0.0028207649011164904,
0.011828276328742504,
-0.009810496121644974,
-0.037514276802539825,
0.0009951908141374588,
-0.03251485526561737,
0.046676427125930786,
0.007171706296503544,
-0.010647332295775414,
0.041059333831071854,
-0.03048049472272396,
0.012555267661809921,
-0.02291606366634369,
-0.009765742346644402,
0.00037035520654171705,
-0.0051719797775149345,
-0.03837527707219124,
-0.07219427824020386,
-0.018410921096801758,
-0.02737189084291458,
0.0018568241503089666,
-0.012044652365148067,
-0.006989767774939537,
-0.08874273300170898,
0.01479507889598608,
-0.06181586906313896,
-0.015421833842992783,
-0.017181161791086197,
0.045618291944265366,
-0.00434153713285923,
-0.024528924375772476,
-0.014322228729724884,
0.02780984900891781,
0.023151934146881104,
-0.019292660057544708,
0.025405442342162132,
-0.014502433128654957,
0.003906475845724344,
-0.07588347792625427,
-0.02366071753203869,
0.0044809612445533276,
-0.02750617451965809,
-0.007271530572324991,
0.030646217986941338,
0.014841877855360508,
0.012285575270652771,
0.007414720486849546,
0.0034186160191893578,
0.009378938004374504,
-0.002964038634672761,
0.0456777960062027,
-0.03895241767168045,
-0.004529089201241732,
0.008493350818753242,
-0.005060521420091391,
0.05841933190822601,
-0.015535758808255196,
0.003429614007472992,
-0.00867486372590065,
-0.022568535059690475,
-0.0045357272028923035,
-0.00011259518942097202,
-0.01513682957738638,
0.018267566338181496,
0.025192147120833397,
-0.0326119102537632,
-0.004229211714118719,
-0.006724830251187086,
-0.00159289943985641,
-0.016446897760033607,
0.0124047314748168,
0.02906014770269394,
0.023400649428367615,
-0.022193798795342445,
0.02766517363488674,
-0.03009811043739319,
6.904673819157647e-33,
-0.013944347389042377,
-0.010762462392449379,
-0.008262122981250286,
0.002750968560576439,
0.015381146222352982,
-0.04334428161382675,
-0.0018938218709081411,
0.02497137151658535,
-0.03527671843767166,
0.04424518719315529,
0.009365098550915718,
-0.008934845216572285,
-0.047856878489255905,
-0.0015164834912866354,
0.07635831832885742,
-0.03200322762131691,
0.027038132771849632,
-0.05598796159029007,
0.05489606410264969,
0.005388318095356226,
0.03123796172440052,
0.0014924081042408943,
0.008769681677222252,
-0.005065026227384806,
-0.0172424353659153,
0.016209213063120842,
-0.0050705852918326855,
0.022712217643857002,
-0.01391568686813116,
-0.03521637246012688,
0.04177633300423622,
-0.027366669848561287,
0.029839258641004562,
-0.025428539142012596,
-0.014031919650733471,
0.03750142455101013,
-0.01933266408741474,
-0.013132069259881973,
0.0035709429066628218,
-0.027345234528183937,
0.03336173668503761,
-0.026766303926706314,
-0.0018826245795935392,
0.019900577142834663,
0.02254456840455532,
-0.04575322940945625,
-0.0017648147186264396,
-0.05343673378229141,
0.013941364362835884,
0.05474328249692917,
0.007212150376290083,
0.020525407046079636,
0.004383994732052088,
0.014284145087003708,
-0.03319428861141205,
-0.005601711105555296,
0.0027535688132047653,
0.024704083800315857,
0.012659952975809574,
0.040660273283720016,
0.02549593709409237,
-0.016786567866802216,
0.016276834532618523,
0.005983545444905758,
-0.04506174102425575,
-0.004033231176435947,
-0.006706814747303724,
-0.02541482262313366,
-0.026965491473674774,
0.003292732872068882,
-0.00939834676682949,
0.0037575634196400642,
0.0014086099108681083,
0.053712256252765656,
0.017169421538710594,
-0.06607842445373535,
0.008257913403213024,
0.050561003386974335,
-0.0013720057904720306,
-0.0001492282171966508,
0.0027384143322706223,
0.03026547096669674,
0.04090730473399162,
0.019800247624516487,
-0.05007099360227585,
0.0026238735299557447,
-0.01820548251271248,
0.010773380286991596,
0.025427628308534622,
0.013388274237513542,
-0.01269756443798542,
0.004562633112072945,
-0.0164281465113163,
0.04763578996062279,
-0.008118608966469765,
-1.2974246565988778e-8,
-0.018563931807875633,
0.009503798559308052,
-0.0024008757900446653,
0.009478365071117878,
-0.003667031414806843,
0.003317271824926138,
-0.012696403078734875,
-0.0013615291099995375,
-0.008938764221966267,
-0.04549974203109741,
0.03487679362297058,
-0.0001829302782425657,
-0.025859389454126358,
0.004431318491697311,
0.011522999964654446,
-0.014732884243130684,
-0.03618112951517105,
-0.013125527650117874,
0.024882739409804344,
0.023166285827755928,
0.018789973109960556,
0.04344179108738899,
0.03335122391581535,
0.007014130242168903,
0.023931950330734253,
-0.02652624249458313,
0.03193006291985512,
-0.0742444396018982,
0.019802197813987732,
0.030384505167603493,
-0.04125143215060234,
-0.008892258629202843,
0.007579547353088856,
0.0033556248527020216,
-0.02689213864505291,
-0.06819517910480499,
-0.008652709424495697,
0.04633909836411476,
0.027256306260824203,
0.009861542843282223,
-0.010352304205298424,
0.0007947819540277123,
-0.010324391536414623,
-0.014865688979625702,
0.02183736488223076,
-0.026132268831133842,
-0.023097475990653038,
0.003721958724781871,
-0.01223213504999876,
0.006685124710202217,
-0.0025734449736773968,
0.022875525057315826,
-0.011640213429927826,
0.024556858465075493,
0.004959553945809603,
-0.03653540462255478,
0.001284837955608964,
-0.044901687651872635,
-0.057588282972574234,
0.016943760216236115,
0.0317314974963665,
0.018876919522881508,
0.01966676115989685,
-0.0037702973932027817
] | micro-services-a-simple-example | https://markhneedham.com/blog/2012/03/31/micro-services-a-simple-example |
false | 2012-03-31 22:49:18 | Haskell: Pattern matching data types with named fields | [
"haskell"
] | [
"Haskell"
] | One of my favourite things about coding in Haskell is that I often end up pattern matching against data types.
I've been playing around with modelling cars coming into and out from a car park and changing the state of the car park accordingly.
I started with these data type definitions:
[source,haskell]
----
data CarParkState = Available Bool Int Int | AlmostFull Bool Int Int | Full Bool Int deriving (Show)
data Action = Entering | Leaving deriving (Show)
data Sticker = Handicap | None deriving (Show)
----
which were used in the following function:
[source,haskell]
----
car_park_state :: CarParkState -> (Action, Sticker) -> CarParkState
car_park_state (Available _ 8 handicap) (Entering, None) = AlmostFull True 9 handicap
car_park_state (AlmostFull _ 11 handicap) (Entering, None) = Full True handicap
car_park_state (AlmostFull _ 9 handicap) (Leaving, None) = Available True 8 handicap
-- there are more states but I've cut them for brevity
----
This code isn't too bad but it's not obvious what the numbers '8', '11' and '9' are referring to without scrolling back up to the data type definition and checking.
By coincidence I came across a http://en.wikibooks.org/wiki/Haskell/More_on_datatypes[Haskell data types wiki page] which introduced me to the concept of named fields.
This means that rather than referring to the arguments of a data type by position we can give them a name instead:
[source,haskell]
----
data CarParkState = Available { changed :: Bool, normalSpaces :: Int, handicapSpaces :: Int } |
AlmostFull { changed :: Bool, normalSpaces :: Int, handicapSpaces :: Int } |
Full { changed :: Bool, handicapSpaces :: Int } deriving (Show)
----
The +++<cite>+++car_park_state+++</cite>+++ function now reads like this:
[source,haskell]
----
car_park_state :: CarParkState -> (Action, Sticker) -> CarParkState
car_park_state state@(Available {normalSpaces=8}) (Entering, None) = AlmostFull True 9 (handicapSpaces state)
car_park_state state@(AlmostFull {normalSpaces=11}) (Entering, None) = Full True (handicapSpaces state)
car_park_state state@(AlmostFull {normalSpaces=9}) (Leaving, None) = Available True 8 (handicapSpaces state)
----
There's more code in this solution than the original although to me +++<cite>+++car_park_state+++</cite>+++ is clearer since you can tell what it's doing just by glancing at the code.
I'm not sure which of these approaches is considered idiomatic Haskell but my feeling is that it's probably the former since it's more concise.
On the other hand, the value of named fields goes up as the total number of parameters in a data types increases since people will find it increasingly difficult to remember which parameter is in each position. | null | null | [
-0.012706591747701168,
0.0087815523147583,
-0.02848120778799057,
0.051407407969236374,
0.07426759600639343,
0.06377315521240234,
0.0008043785346671939,
0.00934484601020813,
0.0313137024641037,
-0.009246855042874813,
-0.022138912230730057,
-0.01729624904692173,
-0.05952644720673561,
0.01782860979437828,
0.008459050208330154,
0.055751536041498184,
0.053132910281419754,
-0.019107673317193985,
-0.00060464401030913,
0.013952160254120827,
0.011608839966356754,
0.057649221271276474,
-0.029698051512241364,
0.03440483659505844,
0.031432583928108215,
0.014127939939498901,
0.04145194962620735,
0.010839050635695457,
-0.05344008654356003,
0.01680556684732437,
0.03829633444547653,
0.00992826372385025,
-0.01758989877998829,
0.025114726275205612,
0.014019173569977283,
-0.024671679362654686,
0.0049055214039981365,
-0.011030937545001507,
0.013472805730998516,
0.001103675807826221,
-0.06536519527435303,
0.03000730089843273,
-0.011316721327602863,
-0.003115265630185604,
-0.06195652112364769,
-0.00425791135057807,
-0.04294510558247566,
0.003954769112169743,
-0.026849113404750824,
0.0024517609272152185,
-0.049159690737724304,
0.029703445732593536,
-0.04200540855526924,
0.033830445259809494,
-0.00676628528162837,
0.05727626383304596,
0.003255173796787858,
-0.098839171230793,
0.024768009781837463,
-0.04078853502869606,
0.030072463676333427,
-0.017169753089547157,
0.014453848823904991,
0.03319970518350601,
0.022560354322195053,
-0.011656544171273708,
-0.04347294196486473,
0.051405325531959534,
-0.0289150383323431,
-0.01615656539797783,
-0.028185609728097916,
0.008530587889254093,
-0.007990533486008644,
-0.009864138439297676,
-0.016673129051923752,
-0.04826653376221657,
-0.005303806159645319,
0.05070721358060837,
0.01939293183386326,
0.033655401319265366,
-0.00799375120550394,
0.02330061048269272,
0.023251110687851906,
0.0260168369859457,
0.030367137864232063,
-0.049858130514621735,
-0.043171726167201996,
-0.014707201160490513,
-0.04882541671395302,
0.05379103496670723,
-0.000008723676728550345,
-0.04733111709356308,
-0.0002892593911383301,
-0.013095919974148273,
-0.005641518160700798,
0.002604624954983592,
0.018282119184732437,
-0.033295925706624985,
0.008252742700278759,
-0.009035616181790829,
-0.03752972558140755,
-0.025824708864092827,
0.03222021833062172,
-0.0010592445032671094,
-0.0824313759803772,
0.0014628965873271227,
-0.04716608300805092,
-0.007489720359444618,
0.02014654502272606,
0.017378956079483032,
0.0020764111541211605,
-0.018740937113761902,
-0.00601694593206048,
0.02882353402674198,
-0.08956491202116013,
0.03355139121413231,
0.013089542277157307,
-0.011202816851437092,
0.018676646053791046,
0.035427045077085495,
0.03937336802482605,
0.0006771843181923032,
0.007579674944281578,
0.04894183203577995,
0.020332030951976776,
0.047348860651254654,
-0.0038880861829966307,
0.06689105182886124,
-0.019737539812922478,
-0.05110882967710495,
-0.031523220241069794,
0.06705307960510254,
-0.03489404544234276,
0.004306553862988949,
-0.009568046778440475,
-0.006834905594587326,
-0.05642653629183769,
0.038490939885377884,
0.04721933975815773,
0.058522772043943405,
0.01935209333896637,
-0.04988666996359825,
0.040813129395246506,
-0.021827759221196175,
0.03317344933748245,
0.002009285381063819,
0.005629028659313917,
-0.009990779682993889,
-0.018683800473809242,
0.028524361550807953,
0.01860472559928894,
0.038422875106334686,
0.04640130326151848,
-0.02113768272101879,
0.027486294507980347,
0.09536577016115189,
0.01296477485448122,
0.008030896075069904,
-0.015069224871695042,
0.013235032558441162,
0.024212079122662544,
0.02023898810148239,
0.0075018624775111675,
0.025024352595210075,
0.02241368219256401,
0.004308155272156,
-0.028445247560739517,
0.04075172170996666,
0.002675709081813693,
0.009057427756488323,
-0.04750338941812515,
-0.05534897372126579,
0.06957509368658066,
-0.02252632938325405,
0.0075689745135605335,
0.01638799160718918,
0.09720313549041748,
0.014997520484030247,
0.04112878814339638,
-0.005983372218906879,
-0.07465454190969467,
0.020237142220139503,
-0.012896113097667694,
0.02974243462085724,
0.01596296951174736,
-0.010323286056518555,
0.0714251846075058,
0.030850091949105263,
0.0025832639075815678,
0.00858459621667862,
-0.04791310057044029,
-0.07174068689346313,
-0.028418656438589096,
-0.02737438678741455,
0.05697639659047127,
-0.046547017991542816,
0.009863326326012611,
0.0466848649084568,
-0.001237302552908659,
0.05148009955883026,
0.007026307284832001,
-0.013770909048616886,
0.044441863894462585,
-0.018650228157639503,
-0.02829037979245186,
0.05619020015001297,
0.06037231534719467,
-0.0028313524089753628,
-0.06285946816205978,
0.00723078940063715,
-0.007887378334999084,
-0.0182493906468153,
0.024709051474928856,
0.011358097195625305,
0.04055560380220413,
0.012759994715452194,
0.03885440155863762,
-0.004462202079594135,
0.02962699718773365,
-0.05799909681081772,
0.04208720847964287,
0.03871931880712509,
-0.021969644352793694,
-0.022556575015187263,
-0.004762736614793539,
0.12965740263462067,
0.07693898677825928,
-0.0215971227735281,
-0.003055832115933299,
0.04268577694892883,
0.001225632498972118,
-0.015994323417544365,
0.023371784016489983,
-0.007933853194117546,
0.0060402825474739075,
-0.007328375708311796,
0.015704156830906868,
-0.007103260140866041,
0.028400102630257607,
-0.04040159285068512,
-0.03304801508784294,
0.06684444844722748,
-0.04298143461346626,
0.0561164915561676,
-0.029710829257965088,
-0.04508000239729881,
-0.003199443221092224,
-0.032056380063295364,
-0.0701078325510025,
-0.0084451949223876,
0.010614126920700073,
-0.006518649403005838,
0.05593419075012207,
-0.025855040177702904,
-0.04542030394077301,
-0.032615575939416885,
-0.023807963356375694,
0.03093775175511837,
0.05167248845100403,
0.0487530417740345,
-0.024094268679618835,
0.013834193348884583,
-0.03179098665714264,
-0.005531356669962406,
-0.0017848373390734196,
-0.05894869938492775,
-0.02045799233019352,
0.004881561733782291,
0.0031586766708642244,
0.028924264013767242,
0.03206710144877434,
0.019877342507243156,
0.04157159850001335,
-0.011881532147526741,
0.006225734017789364,
-0.007554550189524889,
0.01151338778436184,
-0.015223221853375435,
-0.03188116475939751,
-0.018479425460100174,
-0.045656073838472366,
0.07103174924850464,
-0.035076629370450974,
-0.029831422492861748,
0.035092610865831375,
-0.02470625750720501,
0.07043656706809998,
-0.07375164330005646,
-0.0583784319460392,
0.011994346976280212,
0.033914923667907715,
0.02923353761434555,
-0.031521979719400406,
-0.0007828731904737651,
0.07929089665412903,
0.029568880796432495,
0.028234612196683884,
0.024110641330480576,
-0.004639140795916319,
0.04602310433983803,
0.006617844570428133,
0.049813412129879,
0.05313589423894882,
0.0011666591744869947,
-0.001868784660473466,
-0.026930907741189003,
0.0015033157542347908,
-0.010237633250653744,
-0.27161991596221924,
0.015143467113375664,
-0.037073757499456406,
-0.058349400758743286,
0.022189470008015633,
-0.0020175708923488855,
-0.029565047472715378,
-0.02585902065038681,
-0.006514377426356077,
0.01865663379430771,
-0.029850760474801064,
-0.05416399985551834,
-0.03887283802032471,
0.05140414834022522,
0.0281330905854702,
0.03725241497159004,
-0.007412579841911793,
-0.04353800788521767,
-0.020698850974440575,
0.018938910216093063,
-0.027378372848033905,
-0.06065279245376587,
-0.003905460936948657,
0.0622137188911438,
0.010928022675216198,
0.026426423341035843,
-0.07944849133491516,
0.00059252924984321,
-0.06039176881313324,
-0.028417300432920456,
-0.00220950273796916,
-0.011024486273527145,
-0.014834555797278881,
-0.028485720977187157,
-0.003378388937562704,
-0.016335491091012955,
-0.004374569747596979,
-0.0025435613933950663,
0.011586271226406097,
0.04721081629395485,
-0.0330876000225544,
-0.023215942084789276,
0.026735395193099976,
-0.0089905159547925,
0.07702568173408508,
-0.02660994790494442,
-0.0614670105278492,
-0.004042439628392458,
-0.03165731951594353,
0.049271196126937866,
-0.049121782183647156,
0.010588116012513638,
-0.020088478922843933,
0.05755424126982689,
-0.005127418786287308,
-0.008105844259262085,
-0.00632791081443429,
-0.0165784303098917,
-0.05771175026893616,
-0.02587486058473587,
0.0007788159418851137,
-0.039611611515283585,
-0.0253980103880167,
-0.06781672686338425,
-0.009271739982068539,
-0.059152062982320786,
-0.08466019481420517,
-0.020228778943419456,
0.03778638690710068,
0.02292938157916069,
-0.030360203236341476,
-0.01880398951470852,
0.0003499249869491905,
-0.12155915051698685,
-0.02638535015285015,
-0.023501813411712646,
-0.009760701097548008,
-0.011906776577234268,
0.006985630840063095,
0.06763371080160141,
-0.0003880664589814842,
-0.0663086473941803,
0.04517576843500137,
0.009059793315827847,
0.020133838057518005,
-0.01935461163520813,
0.014697674661874771,
-0.026893367990851402,
-0.006038130261003971,
-0.020735038444399834,
0.06556900590658188,
-0.01713445782661438,
-0.009724044241011143,
-0.027374358847737312,
-0.009018384851515293,
0.001385388197377324,
-0.0018426546594128013,
-0.013334115035831928,
-0.0015330668538808823,
0.025277594104409218,
0.01088909711688757,
-0.047484517097473145,
0.015572555363178253,
-0.020205549895763397,
-0.010813803412020206,
-0.017053429037332535,
-0.04930117726325989,
0.031117619946599007,
0.05014638975262642,
0.0025044747162610292,
-0.009996448643505573,
-0.0483623743057251,
0.0033080114517360926,
-0.07785528898239136,
-0.04028705507516861,
-0.018972033634781837,
0.011831896379590034,
0.0037559799384325743,
0.016201026737689972,
0.014634795486927032,
-0.04901157319545746,
-0.019371839240193367,
0.00186723202932626,
0.005301161669194698,
-0.05400775372982025,
-0.008265928365290165,
-0.019751161336898804,
-0.027704114094376564,
-0.0030049614142626524,
0.031463585793972015,
-0.004580160137265921,
0.0458570271730423,
0.02710842341184616,
-0.029335658997297287,
0.014797206036746502,
0.01244173850864172,
-0.012812389992177486,
-0.0072751534171402454,
-0.012739160098135471,
-0.03034164197742939,
0.006241563707590103,
0.011220010928809643,
0.05620263144373894,
0.025348477065563202,
0.053550317883491516,
-0.011132193729281425,
0.03531255945563316,
0.0038146956358104944,
0.015720883384346962,
0.021616347134113312,
-0.03284602239727974,
-0.05474938452243805,
0.026124702766537666,
-0.04254322126507759,
-0.009737322106957436,
-0.020772414281964302,
0.05467461049556732,
-0.017779191955924034,
-0.04842687025666237,
-0.03609640896320343,
0.004027705639600754,
-0.03369424119591713,
-0.03434953838586807,
-0.04636289179325104,
0.029407024383544922,
0.08127368241548538,
-0.01164452824741602,
0.01571659930050373,
-0.009063554927706718,
0.03691890835762024,
-0.006634310353547335,
0.0036710351705551147,
-0.022117899730801582,
0.015855412930250168,
-0.03445297107100487,
-0.04012584686279297,
0.00212306622415781,
0.002925105392932892,
0.03357548266649246,
-0.008960545994341373,
-0.052041202783584595,
0.01215062290430069,
-0.010683690197765827,
0.018165336921811104,
0.04946509748697281,
0.03570088744163513,
-0.0020257949363440275,
0.016509201377630234,
0.008947741240262985,
-0.04136434197425842,
-0.02576422691345215,
-0.004568125121295452,
-0.03829849511384964,
0.03371194005012512,
-0.04265018180012703,
-0.0593012236058712,
0.013236206024885178,
0.009032557718455791,
-0.0006340857944451272,
-0.003658693516626954,
0.009320855140686035,
-0.018226634711027145,
0.019482446834445,
-0.000869234383571893,
0.06602204591035843,
-0.049566641449928284,
0.019791319966316223,
0.00880130473524332,
-0.007524844724684954,
0.025045113638043404,
0.020878911018371582,
-0.051192570477724075,
-0.030442729592323303,
-0.00721242930740118,
-0.0010223488789051771,
-0.024133741855621338,
-0.03938638046383858,
-0.02617306262254715,
-0.013638140633702278,
-0.019375577569007874,
-0.0014348268741741776,
0.00043169173295609653,
-0.002079583937302232,
-0.03810639679431915,
-0.026794442906975746,
-0.009442804381251335,
-0.04294497147202492,
-0.0025324691087007523,
0.03746742755174637,
-0.008441939018666744,
0.013336836360394955,
-0.03364640101790428,
0.019740672782063484,
0.008743692189455032,
-0.01091811154037714,
-0.03238367661833763,
-0.05976641923189163,
0.011856133118271828,
-0.03051944635808468,
0.044125720858573914,
0.017158515751361847,
-0.019368188455700874,
-0.0052111283876001835,
-0.011632800102233887,
-0.033506304025650024,
0.00826245453208685,
0.007508017588406801,
-0.020104635506868362,
0.013021033257246017,
0.030886294320225716,
-0.056682564318180084,
0.020696252584457397,
-0.019375674426555634,
-0.022741571068763733,
0.035334065556526184,
-0.012698701582849026,
-0.011484388262033463,
-0.013244722969830036,
-0.02245517447590828,
0.0209024790674448,
0.009894820861518383,
0.029704343527555466,
-0.008006839081645012,
0.039178937673568726,
0.037886541336774826,
0.03306042030453682,
0.035311322659254074,
-0.020827360451221466,
0.06539080291986465,
-0.03671003505587578,
0.002120953518897295,
-0.07200675457715988,
0.012446966953575611,
-0.002086855471134186,
0.0002111421781592071,
-0.051556363701820374,
-0.015306291170418262,
-0.024244146421551704,
0.026849206537008286,
-0.05144227668642998,
-0.014643083326518536,
0.04608245939016342,
0.015343265607953072,
0.00666695274412632,
0.009348712861537933,
-0.035612888634204865,
0.03390708565711975,
0.01579197309911251,
-0.01622740365564823,
0.0040191528387367725,
-0.023341165855526924,
0.0347713902592659,
-0.003769191214814782,
0.050465986132621765,
-0.004403699655085802,
-0.032206375151872635,
0.07440461218357086,
0.04481315240263939,
0.043935708701610565,
0.041595131158828735,
-0.020067298784852028,
0.05896856635808945,
-0.012126781046390533,
-0.01691240817308426,
-0.017070701345801353,
0.015658531337976456,
-0.0032344828359782696,
-0.07079340517520905,
0.04514387622475624,
0.022750327363610268,
-0.0055723898112773895,
-0.0358152836561203,
0.08504156023263931,
0.0389222726225853,
-0.011146786622703075,
-0.043920375406742096,
0.02419765293598175,
-0.04712022840976715,
-0.0020833327434957027,
0.004817927721887827,
-0.003345260862261057,
-0.048721592873334885,
0.042545340955257416,
-0.005921129137277603,
0.001219275058247149,
0.054615866392850876,
-0.0015570372343063354,
-0.028739023953676224,
-0.008694072254002094,
0.10805012285709381,
0.1019446849822998,
0.028372855857014656,
0.014533516019582748,
0.06552644819021225,
-0.025215083733201027,
-0.04211720451712608,
0.02335040271282196,
-0.014800865203142166,
0.008034502156078815,
-0.026251066476106644,
0.011595946736633778,
0.06796452403068542,
-0.026775643229484558,
0.05633292719721794,
-0.022790120914578438,
0.03279625624418259,
0.010704808868467808,
0.029191067442297935,
0.03485455363988876,
0.06053460016846657,
0.020764091983437538,
0.04365548864006996,
0.007181679829955101,
-0.04429489001631737,
0.005247619468718767,
-0.017408546060323715,
-0.033023275434970856,
-0.009110508486628532,
-0.01538807712495327,
0.012699084356427193,
0.023347238078713417,
0.06678728759288788,
0.07697439938783646,
0.00029504336998797953,
0.008374763652682304,
0.008760428987443447,
0.06188378855586052,
-0.0019908605609089136,
0.01032152958214283,
-0.035145360976457596,
-0.04056442528963089,
0.001556788687594235,
-0.03920610621571541,
-0.028948165476322174,
-0.035368263721466064,
-0.04915083572268486,
0.0443865992128849,
-0.022025829181075096,
-0.01637094095349312,
0.022175606340169907,
-0.01622230000793934,
-0.038760945200920105,
-0.045475978404283524,
-0.07945903390645981,
0.008294315077364445,
-0.09729215502738953,
-0.000865630223415792,
-0.006823176052421331,
-0.026193825528025627,
-0.017356088384985924,
-0.044081538915634155,
-0.0011909148888662457,
-0.016627304255962372,
0.025691619142889977,
-0.05312111973762512,
-0.04220284894108772,
0.013752824626863003,
0.0077407872304320335,
0.038556791841983795,
0.027813447639346123,
0.04603216424584389,
0.0161781944334507,
-0.004168027546256781,
-0.038665685802698135,
-0.014073718339204788,
0.04250209033489227,
0.03928320109844208,
0.007014147471636534,
-0.06031131371855736,
-0.008789055980741978,
0.02413666807115078,
0.0230566319078207,
-0.07350284606218338,
-0.0013170934980735183,
-0.0018818018725141883,
0.012881825678050518,
0.03985431790351868,
-0.0501943938434124,
-0.00494072400033474,
0.0051376898773014545,
-0.010051358491182327,
0.012448223307728767,
0.025255611166357994,
0.0359097383916378,
-0.040087200701236725,
0.08647584170103073,
0.027823567390441895,
-0.022389253601431847,
-0.018044158816337585,
0.0025511733256280422,
-0.03764672949910164,
0.025265058502554893,
-0.05363431200385094,
-0.053783759474754333,
-0.04161802679300308,
-0.06604199856519699,
-0.015123353339731693,
-0.0031041940674185753,
-0.040983494371175766,
-0.01752421073615551,
0.0010645163711160421,
0.051067277789115906,
-0.057966478168964386,
0.05420166254043579,
-0.03765290603041649,
0.04609966278076172,
-0.04649287462234497,
-0.022571010515093803,
-0.00042373486212454736,
0.03437799587845802,
-0.000801046029664576,
0.028911761939525604,
0.015002130530774593,
-0.03891695290803909,
0.032965049147605896,
-0.019619613885879517,
0.0468561165034771,
-0.017814412713050842,
-0.028703363612294197,
0.0451560877263546
] | [
-0.09445654600858688,
-0.02310420200228691,
-0.01710718870162964,
-0.0005701029440388083,
0.008705123327672482,
0.017563553526997566,
0.025341728702187538,
0.008668303489685059,
0.006181661039590836,
-0.026501474902033806,
-0.01593116857111454,
-0.058578383177518845,
0.0046019768342375755,
0.015905367210507393,
0.059288591146469116,
0.003931984305381775,
-0.005830675829201937,
-0.015389143489301205,
-0.012592488899827003,
0.017156507819890976,
0.024372583255171776,
-0.032987285405397415,
-0.08719117939472198,
-0.05422479286789894,
0.008259288966655731,
0.07426237314939499,
0.04049048200249672,
-0.03615003451704979,
0.01202330831438303,
-0.2280997931957245,
-0.025015955790877342,
-0.0018842230783775449,
0.05497218295931816,
-0.017104044556617737,
-0.0054226345382630825,
0.023067710921168327,
-0.011453798040747643,
0.03554005175828934,
-0.031497035175561905,
0.0631195530295372,
0.026915721595287323,
0.014151745475828648,
-0.023406414315104485,
-0.014528046362102032,
0.005659646354615688,
0.004218065645545721,
-0.03716350346803665,
0.004022544249892235,
-0.02681117318570614,
0.010114414617419243,
-0.08048585802316666,
0.007704718038439751,
-0.001619410584680736,
0.01957882195711136,
0.006269337143748999,
0.03480266407132149,
0.07348161935806274,
0.08102383464574814,
0.0019388271030038595,
-0.006867262534797192,
0.011217264458537102,
0.0019173225155100226,
-0.11899379640817642,
0.0976511761546135,
0.036407362669706345,
0.06697392463684082,
-0.05205719172954559,
-0.04840517044067383,
-0.02981443703174591,
0.07491307705640793,
0.022631781175732613,
-0.025343067944049835,
-0.05472688376903534,
0.07423913478851318,
0.015573921613395214,
-0.050867337733507156,
-0.03671883046627045,
0.016048572957515717,
0.04263180494308472,
-0.030171221122145653,
-0.04951576516032219,
-0.055342819541692734,
-0.03590315580368042,
-0.004764788318425417,
0.0017950717592611909,
-0.0009357973467558622,
-0.04698408395051956,
0.04667298495769501,
0.0120787238702178,
0.008834869600832462,
0.007023274432867765,
-0.008516182191669941,
0.01328493282198906,
0.016297416761517525,
-0.04320229962468147,
0.02240152843296528,
-0.015522419475018978,
0.020998558029532433,
-0.011106851510703564,
0.385793000459671,
-0.04085635766386986,
-0.010809686966240406,
0.030584169551730156,
0.03494305536150932,
-0.015310505405068398,
0.00043769311741925776,
-0.01752368174493313,
-0.07066706568002701,
-0.013989295810461044,
-0.06400042027235031,
0.003952113911509514,
-0.01957608386874199,
0.08844868093729019,
-0.04351258650422096,
-0.0090956911444664,
0.002015597652643919,
0.045064423233270645,
0.02032303996384144,
0.025004250928759575,
0.02154581993818283,
-0.01297633908689022,
0.016069471836090088,
-0.0037273294292390347,
0.029261460527777672,
-0.01870017498731613,
-0.0009036848205141723,
0.05127064138650894,
0.028878988698124886,
0.013098635710775852,
0.05406931787729263,
0.0582265630364418,
-0.035095058381557465,
-0.07417765259742737,
-0.012417305260896683,
0.001325911027379334,
-0.01476374827325344,
0.02996128238737583,
-0.01979879103600979,
0.001909678801894188,
0.02845536544919014,
-0.017387110739946365,
-0.04196271300315857,
0.038689836859703064,
0.007739413995295763,
-0.022015666589140892,
0.1105712428689003,
-0.02366679720580578,
-0.04153991490602493,
-0.017608551308512688,
-0.019888272508978844,
-0.01996716670691967,
0.04515644535422325,
-0.002287165494635701,
-0.07123070955276489,
0.006293763872236013,
0.030216922983527184,
0.058239713311195374,
-0.01814775913953781,
-0.0623835064470768,
-0.0018533008405938745,
-0.027645843103528023,
-0.0318259559571743,
-0.029940912500023842,
0.04705621302127838,
-0.009953081607818604,
-0.08199945837259293,
-0.028939494863152504,
0.016925081610679626,
0.028564712032675743,
-0.07665012776851654,
0.008481020107865334,
0.0369640477001667,
-0.0280479546636343,
0.03730955347418785,
0.04972353205084801,
-0.012752863578498363,
-0.049250658601522446,
0.005409123841673136,
0.012283144518733025,
0.023631278425455093,
-0.020778361707925797,
0.007267801556736231,
-0.0658852830529213,
0.013157282024621964,
-0.034419309347867966,
-0.04437432438135147,
-0.0892176553606987,
0.020149609073996544,
-0.004584896378219128,
-0.0178157240152359,
0.033738721162080765,
0.000005976768534310395,
-0.054061952978372574,
0.04983051121234894,
-0.0388014018535614,
-0.02221067249774933,
0.03247258439660072,
-0.006877503823488951,
-0.008117379620671272,
-0.030398575589060783,
-0.024301039054989815,
0.05514587461948395,
0.006397180259227753,
0.028926735743880272,
-0.09246557950973511,
-0.0014452374307438731,
0.026463964954018593,
-0.06794090569019318,
0.05494549870491028,
0.04974069073796272,
-0.00977845024317503,
0.0015028174966573715,
-0.04001899063587189,
0.010182147845625877,
0.014715787954628468,
-0.04490171745419502,
0.0008790112333372235,
-0.015538071282207966,
0.01747550070285797,
0.035572599619627,
-0.04236484691500664,
-0.036935362964868546,
-0.018864614889025688,
-0.34390896558761597,
-0.07706838101148605,
-0.012577911838889122,
0.014251786284148693,
-0.013042939826846123,
-0.08272380381822586,
0.010921873152256012,
-0.00580188911408186,
-0.03289768472313881,
0.039073191583156586,
0.05930448696017265,
-0.02875879965722561,
-0.02957318164408207,
-0.058820027858018875,
0.007544032763689756,
0.02242279425263405,
-0.019594181329011917,
-0.022120120003819466,
-0.04076434671878815,
0.03850776329636574,
-0.004425107967108488,
-0.0006501121097244322,
-0.022422313690185547,
-0.06540878862142563,
-0.004700788296759129,
-0.0418049693107605,
0.14144983887672424,
-0.016137003898620605,
0.08463940769433975,
-0.04576561972498894,
0.04835069179534912,
-0.05184174329042435,
-0.007943323813378811,
-0.032855551689863205,
0.01926775835454464,
-0.06589963287115097,
-0.013937852345407009,
0.011158280074596405,
0.04746938869357109,
-0.05492907762527466,
-0.05643092468380928,
-0.008569995872676373,
-0.039704933762550354,
-0.024024732410907745,
0.010298574343323708,
0.007043943740427494,
0.0026878276839852333,
-0.061283379793167114,
-0.028761710971593857,
0.07331456989049911,
0.026912085711956024,
0.010510002262890339,
0.023858705535531044,
0.023726461455225945,
-0.006681471131742001,
-0.020028946921229362,
-0.050905659794807434,
-0.02712583914399147,
-0.001266741892322898,
-0.020869137719273567,
0.03472286835312843,
0.052306972444057465,
0.040515121072530746,
-0.028328469023108482,
-0.005189226474612951,
0.018067101016640663,
-0.02594844438135624,
-0.031381573528051376,
0.0034758485853672028,
-0.015859661623835564,
-0.03714172542095184,
0.11438317596912384,
0.00727528240531683,
-0.02130340225994587,
0.02221761643886566,
0.06339135766029358,
-0.029524128884077072,
0.06935705244541168,
0.0725850909948349,
0.016204215586185455,
0.04200362786650658,
0.009645577520132065,
0.03175141289830208,
-0.011368675157427788,
0.017924005165696144,
0.024994779378175735,
0.018866145983338356,
0.0053690350614488125,
0.056559160351753235,
0.008984637446701527,
0.004999582190066576,
0.04260331392288208,
0.02886013314127922,
-0.050460778176784515,
0.07872094213962555,
-0.004909774288535118,
-0.2817001938819885,
0.03432904928922653,
0.053326595574617386,
0.051078230142593384,
-0.009998537600040436,
-0.007374953478574753,
0.015238840132951736,
-0.044291671365499496,
-0.02498987875878811,
-0.054991718381643295,
0.014504123479127884,
0.058408014476299286,
0.05292390659451485,
0.028234995901584625,
0.006482668686658144,
-0.004188578110188246,
0.0853564590215683,
-0.01119732204824686,
0.00625555869191885,
0.005542379338294268,
0.045036282390356064,
0.03595235198736191,
0.2023162543773651,
0.017088066786527634,
0.045573268085718155,
0.024625902995467186,
-0.00039183039916679263,
0.014010460115969181,
0.0650603249669075,
0.03265109658241272,
-0.009931636974215508,
-0.013775716535747051,
0.04759572818875313,
0.012180028483271599,
0.04954031854867935,
-0.007862193509936333,
-0.008214821107685566,
0.054860979318618774,
0.03467286005616188,
0.00014275395369622856,
0.0017252061516046524,
0.022720811888575554,
-0.03593405336141586,
0.023899056017398834,
0.05617603659629822,
0.033377766609191895,
-0.00011880747479153797,
-0.03406889736652374,
-0.030550550669431686,
0.03384760767221451,
-0.006673980038613081,
-0.023373622447252274,
-0.05798543244600296,
-0.04607211798429489,
-0.0003953015839215368,
0.05328979715704918,
0.011448214761912823,
-0.016422927379608154,
0.01570889540016651,
0.027325917035341263,
0.00180380092933774,
-0.03198831155896187,
0.0791231244802475,
0.008066543377935886,
-0.005637065041810274
] | [
-0.012115719728171825,
0.011989835649728775,
0.04515715688467026,
0.020735500380396843,
0.00631554564461112,
0.03639334812760353,
0.007872178219258785,
0.03721940517425537,
-0.03562997281551361,
-0.017778728157281876,
-0.023334268480539322,
-0.014777317643165588,
0.01231121364980936,
0.004511942621320486,
0.004528244026005268,
0.00540054589509964,
0.05703105032444,
0.003928424324840307,
0.0008711048285476863,
0.022160978987812996,
0.01949186995625496,
0.01466386392712593,
-0.025214511901140213,
0.0325809009373188,
-0.042640648782253265,
0.03695932775735855,
-0.05074600875377655,
0.015060032717883587,
0.021563095971941948,
-0.11430814117193222,
-0.07465491443872452,
-0.02140338160097599,
0.028603067621588707,
-0.017191313207149506,
-0.011350234970450401,
-0.014170396141707897,
-0.022217169404029846,
-0.01769208163022995,
0.00204586423933506,
-0.011432643979787827,
-0.0015832021599635482,
-0.036344997584819794,
0.00965349655598402,
-0.023249851539731026,
0.023435935378074646,
0.015364015474915504,
0.028235841542482376,
-0.0295315720140934,
0.03536380082368851,
-0.024317754432559013,
-0.027656955644488335,
0.04702423885464668,
0.049043770879507065,
-0.0218551866710186,
-0.0006327062146738172,
-0.006642072461545467,
-0.030473312363028526,
-0.002531929174438119,
-0.02344822697341442,
-0.020371710881590843,
0.020786914974451065,
0.01589024066925049,
-0.039710961282253265,
-0.012846546247601509,
-0.04327801987528801,
-0.0018782595871016383,
-0.04232177883386612,
-0.005346501246094704,
0.022700734436511993,
0.014562527649104595,
0.043858252465724945,
0.012468885630369186,
-0.03380732238292694,
-0.0523679219186306,
0.009594413451850414,
-0.012761387042701244,
0.01918010413646698,
-0.010388167575001717,
0.012498831376433372,
-0.05342652276158333,
-0.014689474366605282,
0.021542219445109367,
0.047305550426244736,
-0.011294673196971416,
0.0550377257168293,
-0.035347312688827515,
-0.016886061057448387,
0.009095492772758007,
0.03755169361829758,
0.01423767488449812,
-0.03621971979737282,
0.019812757149338722,
0.010376031510531902,
-0.0031709568575024605,
-0.05483101308345795,
0.05797124281525612,
0.023924486711621284,
-0.026217197999358177,
0.011342390440404415,
0.7908642292022705,
0.021151168271899223,
0.06636369973421097,
-0.0007846422959119081,
0.027849998325109482,
0.004082052502781153,
0.051041796803474426,
-0.02820863574743271,
-0.013373337686061859,
-0.01570218987762928,
-0.04414008930325508,
0.07015196979045868,
-0.01989852637052536,
0.06571737676858902,
0.016609810292720795,
-0.05095944553613663,
0.006659213453531265,
-0.044151727110147476,
-0.012954671867191792,
0.02625058777630329,
-0.002397069474682212,
-0.012115751393139362,
-0.049969885498285294,
0.013079995289444923,
0.022579500451683998,
0.033556509763002396,
-0.16481773555278778,
0.004352006129920483,
-7.17981149627905e-33,
-0.01714439131319523,
-0.04775957018136978,
0.0019652757328003645,
-0.029039612039923668,
0.009299864992499352,
-0.014286946505308151,
-0.0019830157980322838,
-0.007728673983365297,
-0.024900639429688454,
0.017545286566019058,
0.05588126182556152,
0.006078058388084173,
-0.0007947078556753695,
-0.04861494526267052,
0.05909442529082298,
-0.014331513084471226,
-0.005016734357923269,
0.006270728074014187,
-0.03254007175564766,
-0.02909182384610176,
0.018091270700097084,
0.06311643868684769,
-0.0005801509832963347,
-0.016322240233421326,
0.025471927598118782,
0.06100332736968994,
-0.008402273990213871,
-0.014203296042978764,
0.017220389097929,
-0.028009451925754547,
-0.027925066649913788,
0.013570623472332954,
-0.020638057962059975,
0.008590427227318287,
0.04165153205394745,
-0.0470421276986599,
-0.016503795981407166,
0.012372313067317009,
-0.04216211661696434,
-0.013299514539539814,
0.03322521224617958,
-0.025517243891954422,
-0.08174452185630798,
-0.03658909350633621,
-0.002135677495971322,
0.013592020608484745,
0.0552140548825264,
0.019593320786952972,
-0.03448111191391945,
0.01639907993376255,
0.021663272753357887,
0.014751510694622993,
-0.022434663027524948,
-0.01397482305765152,
-0.05344031751155853,
0.02120794542133808,
0.004491996951401234,
0.025423726066946983,
-0.05074334517121315,
0.04007948562502861,
-0.018493901938199997,
0.02156921848654747,
0.001798097975552082,
0.023930132389068604,
-0.029406612738966942,
-0.004275920335203409,
-0.03869007155299187,
-0.01948966272175312,
0.030380355194211006,
0.014772001653909683,
0.018636958673596382,
0.0032715266570448875,
-0.016564510762691498,
-0.011368051171302795,
0.0329471118748188,
-0.0342283695936203,
-0.00269876210950315,
-0.04534914344549179,
-0.04559100419282913,
0.005103750620037317,
0.016820153221488,
-0.002203169511631131,
-0.024976016953587532,
-0.011474289000034332,
-0.01006766315549612,
0.002953324932605028,
0.033826250582933426,
-0.006680225022137165,
-0.008805322460830212,
-0.007712728343904018,
-0.006448698695749044,
0.037608906626701355,
0.0002695245493669063,
-0.017489450052380562,
-0.0044573284685611725,
6.762378023938701e-33,
-0.044892292469739914,
-0.04153216630220413,
0.015036378055810928,
-0.011305304244160652,
-0.017966285347938538,
-0.014424762688577175,
0.02745651639997959,
-0.032297756522893906,
-0.002194897970184684,
0.042568549513816833,
-0.060952078551054,
0.013982029631733894,
0.023186037316918373,
0.026067068800330162,
0.030779778957366943,
-0.023735826835036278,
0.001275528222322464,
0.0036672865971922874,
-0.0479276180267334,
-0.002094699302688241,
0.01892653852701187,
0.01030886359512806,
0.007194430101662874,
0.04436659812927246,
0.006626678165048361,
0.04229745641350746,
-0.007790095638483763,
0.03179482743144035,
-0.008290303871035576,
-0.00461500184610486,
-0.0035017640329897404,
-0.04336662217974663,
-0.012535206973552704,
-0.013137715868651867,
-0.018738143146038055,
0.010643891990184784,
0.02293766476213932,
-0.03898654505610466,
-0.04820334538817406,
-0.010654965415596962,
0.0307927243411541,
-0.03896455839276314,
0.004387077409774065,
0.011918251402676105,
0.017304062843322754,
0.01032858993858099,
-0.01997537910938263,
-0.007077506277710199,
0.02058558166027069,
0.025665057823061943,
0.031978581100702286,
0.002883380511775613,
-0.00625634053722024,
0.03946191817522049,
0.0027580417227,
-0.010784750804305077,
0.03333105519413948,
0.01799476332962513,
-0.022929470986127853,
0.011336143128573895,
-0.00499836215749383,
0.03999084234237671,
-0.032662756741046906,
0.02820117399096489,
0.005122749134898186,
-0.05036824941635132,
-0.05278794467449188,
-0.08354095369577408,
-0.010348114185035229,
-0.0345044806599617,
-0.02224421314895153,
0.021133996546268463,
0.0035391279961913824,
0.039572618901729584,
-0.02148878574371338,
0.03633460775017738,
0.015315971337258816,
0.035501085221767426,
0.050557129085063934,
-0.018565071746706963,
0.021223563700914383,
-0.04788199067115784,
0.09516367316246033,
0.0167581457644701,
-0.004733354318886995,
0.02405284158885479,
-0.007951120845973492,
0.00011354074376868084,
0.056966010481119156,
0.03824730962514877,
0.03450360521674156,
-0.015192101709544659,
0.014668622054159641,
0.02623586356639862,
-0.05116043612360954,
-1.2469357990596563e-8,
0.019359445199370384,
-0.03596363589167595,
-0.04979556053876877,
-0.02247522957623005,
-0.023098543286323547,
0.013388315215706825,
0.0004362750332802534,
-0.02957802638411522,
-0.0734064057469368,
-0.005391267128288746,
0.061696697026491165,
-0.00006832301005488262,
-0.008825481869280338,
0.01545544620603323,
0.017634974792599678,
-0.029420429840683937,
0.05786801874637604,
-0.030938927084207535,
0.010057289153337479,
0.017941555008292198,
-0.019952842965722084,
0.02282550372183323,
-0.019314881414175034,
0.01188647374510765,
0.001678428496234119,
-0.03763921186327934,
0.02329227142035961,
-0.09453471004962921,
0.026630543172359467,
-0.03170834854245186,
0.032412633299827576,
-0.01645553857088089,
0.0353323370218277,
0.002841954817995429,
0.01719449646770954,
-0.03982636705040932,
0.0036563510075211525,
0.05826340243220329,
0.030206210911273956,
0.011318404227495193,
-0.011740848422050476,
-0.006739158183336258,
-0.020589033141732216,
-0.03449514880776405,
-0.02263800799846649,
0.01140828337520361,
-0.019406048581004143,
-0.01573231816291809,
0.04526902735233307,
-0.029589742422103882,
-0.014499293640255928,
-0.037873636931180954,
-0.015221482142806053,
0.051843974739313126,
0.036926060914993286,
-0.005612844135612249,
0.019825812429189682,
-0.007438116706907749,
-0.027626287192106247,
-0.028821449726819992,
0.017159249633550644,
0.052568480372428894,
0.01033011544495821,
-0.011252433061599731
] | haskell-pattern-matching-data-types-with-named-fields | https://markhneedham.com/blog/2012/03/31/haskell-pattern-matching-data-types-with-named-fields |
false | 2012-03-30 06:21:00 | IntelliJ: Find/Replace using regular expressions with capture groups | [
"software-development",
"intellij"
] | [
"Software Development"
] | Everyone now and then we end up having to write a bunch of mapping code and I quite like using IntelliJ's 'Replace' option to do it but always end up spending about 5 minutes trying to remember how to do capture groups so I thought I'd write it down this time.
Given the following text in our file:
[source,scala]
----
val mark = 0
val dave = 0
val john = 0
val alex = 0
----
Let's say we wanted to prefix each of those names with 'cool' and had decided not to use Column mode for whatever reason.
One way of doing that is to capture the names and then replace each of them with 'cool' appended on the beginning:
A (very hacky) find regex could be this:
[source,text]
----
\s([a-zA-Z]+)\s=
----
Where we capture all the letters in the variable name inside a group and then build our replacement string like so:
[source,text]
----
cool$1 =
----
I always expect the capture group replacement syntax to be '\1', '\2' and so on but it actually uses a '$' instead.
Hopefully now I shall remember! | null | null | [
-0.00814205314964056,
-0.012023737654089928,
0.011835484765470028,
0.04143483191728592,
0.09430801868438721,
0.010592094622552395,
0.0447528176009655,
0.023099564015865326,
0.004534528125077486,
-0.03098193183541298,
-0.045687220990657806,
-0.01866297796368599,
-0.07979264110326767,
-0.015978343784809113,
-0.04965589568018913,
0.07733721286058426,
0.058325331658124924,
-0.01096312701702118,
0.01535232923924923,
0.0058347005397081375,
0.06276543438434601,
0.042001668363809586,
0.02322738990187645,
0.042329173535108566,
0.020672110840678215,
0.024608200415968895,
-0.007306824903935194,
0.020579854026436806,
-0.06907206773757935,
0.019167914986610413,
0.03557710349559784,
0.007647991646081209,
0.004162359517067671,
0.016561809927225113,
-0.0020804698579013348,
-0.01782401092350483,
-0.004301039036363363,
0.0005788560374639928,
0.024604668840765953,
0.03535172715783119,
-0.034123655408620834,
0.008574378676712513,
-0.003550396068021655,
0.011795168742537498,
-0.03133174031972885,
-0.00041988634620793164,
-0.09986867010593414,
-0.008374526165425777,
-0.04037919640541077,
-0.03326670080423355,
-0.03319395333528519,
0.027477417141199112,
-0.030470646917819977,
0.007314990274608135,
-0.008501586504280567,
0.04619847238063812,
0.06869065761566162,
-0.06545552611351013,
0.03058633767068386,
-0.030632516369223595,
-0.034245483577251434,
0.0155453160405159,
-0.0139236431568861,
0.05391409993171692,
0.01809709705412388,
-0.008259770460426807,
-0.0003530836256686598,
0.06010360270738602,
-0.040424056351184845,
-0.0383225679397583,
-0.006595473270863295,
0.013133968226611614,
-0.022427096962928772,
-0.014174693264067173,
0.024666205048561096,
-0.04528062418103218,
-0.026546793058514595,
0.049186162650585175,
0.0014695620629936457,
0.05966340750455856,
-0.02886352315545082,
-0.03477900102734566,
0.00267231953330338,
-0.0019031994743272662,
0.029359139502048492,
-0.018715281039476395,
-0.02546209841966629,
-0.025258591398596764,
-0.04320652410387993,
0.048437222838401794,
-0.010709577240049839,
-0.08333727717399597,
0.03076736442744732,
0.04469176381826401,
0.02353714592754841,
-0.004617863800376654,
0.00028143194504082203,
0.04064978286623955,
0.0003834535600617528,
0.03872961178421974,
-0.05436200648546219,
-0.001950868871062994,
0.023649664595723152,
-0.009002342820167542,
-0.08414323627948761,
-0.02072031982243061,
-0.02740560658276081,
0.021313579753041267,
0.012403668835759163,
-0.003513940144330263,
-0.04732527583837509,
-0.02522166445851326,
-0.028719719499349594,
0.002722064731642604,
-0.07463701069355011,
0.054893989115953445,
0.013685056939721107,
-0.0008089955663308501,
-0.007254127878695726,
0.05421647056937218,
0.055023837834596634,
0.007855069823563099,
-0.005978579632937908,
0.0880364254117012,
-0.01763548143208027,
0.0773966833949089,
0.012454667128622532,
0.07071155309677124,
-0.005582304205745459,
-0.06634305417537689,
-0.032211072742938995,
0.05774589255452156,
-0.027061283588409424,
0.0034569406416267157,
0.0198514461517334,
-0.017690276727080345,
-0.03275570273399353,
-0.025378411635756493,
0.027886999770998955,
0.001709258765913546,
-0.017864836379885674,
0.0028712281491607428,
-0.018403174355626106,
-0.035489264875650406,
0.03082519769668579,
0.029571659862995148,
-0.02665824070572853,
-0.04357443377375603,
-0.008395261131227016,
0.02035042829811573,
0.01114935614168644,
0.006433621980249882,
0.04783276841044426,
-0.012243152596056461,
0.008034730330109596,
0.08229872584342957,
0.0018223053775727749,
0.038707975298166275,
-0.029044384136795998,
0.002071971772238612,
0.03834012523293495,
0.048809222877025604,
0.016005583107471466,
0.07045476138591766,
0.016530131921172142,
-0.01364650297909975,
0.007213865406811237,
0.024757234379649162,
-0.015498301014304161,
-0.0060548847541213036,
-0.051155924797058105,
-0.050206348299980164,
0.05852721631526947,
-0.040825650095939636,
0.011983021162450314,
-0.009598351083695889,
0.057994455099105835,
0.027341779321432114,
0.06682843714952469,
0.018879443407058716,
-0.0650438666343689,
0.03051866963505745,
-0.02899671532213688,
0.024007674306631088,
0.04166526347398758,
-0.0063916281796991825,
0.0747709721326828,
0.036707568913698196,
0.02461838722229004,
0.01923440210521221,
-0.07633958011865616,
-0.05201233550906181,
0.009984014555811882,
0.00014818395720794797,
0.046292148530483246,
-0.04830366373062134,
0.0002866022987291217,
0.05792539194226265,
0.03267302364110947,
0.027832578867673874,
0.026636844500899315,
0.00466223806142807,
0.022152340039610863,
-0.043304312974214554,
0.00402333727106452,
0.05135165527462959,
0.007357309572398663,
-0.024379458278417587,
-0.03560255840420723,
0.03120279870927334,
-0.01346526388078928,
0.02897452376782894,
0.03767925500869751,
-0.035822976380586624,
0.03260454535484314,
0.04208793491125107,
0.010268593207001686,
-0.001279404736123979,
0.06351515650749207,
-0.05057244747877121,
0.04385507479310036,
-0.006621634121984243,
-0.045281317085027695,
-0.019115449860692024,
0.005117320921272039,
0.12656572461128235,
0.05810502916574478,
-0.021059323102235794,
-0.056123875081539154,
-0.010893422178924084,
-0.010915139690041542,
-0.05878586322069168,
-0.005214355420321226,
0.00823893304914236,
-0.0140727199614048,
0.004167047794908285,
-0.03711819648742676,
-0.014066291972994804,
0.004880198743194342,
-0.017289716750383377,
0.0047056786715984344,
0.050596922636032104,
-0.014893848448991776,
0.03589952364563942,
-0.01941036619246006,
-0.012883397750556469,
-0.025073343887925148,
-0.04421497881412506,
-0.0674181804060936,
-0.0019741582218557596,
0.04307594522833824,
-0.02214096114039421,
0.042230021208524704,
-0.03178931027650833,
-0.012302998453378677,
-0.04541050270199776,
-0.06976024806499481,
-0.017236053943634033,
0.037658680230379105,
0.037433139979839325,
-0.020311862230300903,
0.06028095260262489,
-0.02140759862959385,
-0.005966979544609785,
-0.01119274366647005,
-0.018220366910099983,
-0.046842921525239944,
0.006456059403717518,
-0.03360280767083168,
-0.006432533264160156,
0.004032627679407597,
0.07054504007101059,
0.010627069510519505,
0.023449737578630447,
0.0007428714307025075,
0.0028931095730513334,
0.016978560015559196,
-0.0016362557653337717,
-0.012141291983425617,
0.006262749899178743,
-0.023942723870277405,
0.04250198230147362,
-0.028050903230905533,
-0.009987537749111652,
-0.05084431171417236,
-0.04798440635204315,
0.029946839436888695,
-0.0665668323636055,
-0.07925813645124435,
0.005871988367289305,
0.06286422908306122,
0.015844963490962982,
-0.03377429023385048,
0.016855739057064056,
0.03127897530794144,
-0.003150746924802661,
0.012229690328240395,
0.025630643591284752,
0.01032191701233387,
0.02586420811712742,
0.01794852316379547,
0.0355488657951355,
0.050918541848659515,
-0.01914873905479908,
-0.013797382824122906,
-0.05616137385368347,
0.006539790891110897,
-0.03284387290477753,
-0.27424803376197815,
0.044893842190504074,
-0.02570696733891964,
-0.020041875541210175,
0.03182050585746765,
-0.06208805739879608,
0.0021435183007270098,
-0.048567939549684525,
-0.025890816003084183,
0.04154404252767563,
-0.028331521898508072,
-0.029718363657593727,
-0.011866146698594093,
0.03623571991920471,
-0.030119638890028,
-0.03354688733816147,
-0.016756834462285042,
-0.04369846731424332,
0.0008196911658160388,
0.02216906100511551,
0.013399668037891388,
-0.061659857630729675,
0.01877235248684883,
0.07136180996894836,
0.01637355238199234,
0.051374759525060654,
-0.0914144292473793,
0.026140645146369934,
-0.02163812518119812,
0.005242258310317993,
-0.004766660742461681,
-0.008788736537098885,
0.010601833462715149,
-0.017578240483999252,
-0.012841446325182915,
-0.03408403694629669,
0.03655882924795151,
0.0064627076499164104,
0.028423598036170006,
0.030486369505524635,
-0.03728689253330231,
-0.05645432695746422,
0.01267946232110262,
-0.03626582399010658,
0.05391397327184677,
-0.007487733848392963,
-0.06697887182235718,
-0.00998022872954607,
-0.027043772861361504,
0.06851033121347427,
-0.012982654385268688,
-0.039120517671108246,
-0.005921893287450075,
0.052285633981227875,
0.008350154384970665,
-0.022544005885720253,
-0.007324041798710823,
-0.030721697956323624,
-0.023721953853964806,
-0.004423867911100388,
-0.011208062060177326,
-0.04910534992814064,
-0.016321323812007904,
-0.04851381853222847,
-0.009258427657186985,
-0.05798853561282158,
-0.059992946684360504,
0.013971163891255856,
0.06400028616189957,
0.049451593309640884,
-0.032889820635318756,
-0.008444823324680328,
-0.017502276226878166,
-0.10467403382062912,
-0.023974284529685974,
-0.03181847929954529,
-0.0002164274046663195,
-0.015182336792349815,
-0.03027561865746975,
0.05005289614200592,
-0.06314720958471298,
-0.026189710944890976,
0.0253873523324728,
-0.023552004247903824,
0.03162596747279167,
-0.016635160893201828,
0.018906913697719574,
-0.02534843422472477,
-0.007399972062557936,
-0.008217981085181236,
0.0638909861445427,
-0.014357669278979301,
-0.014094867743551731,
-0.010315370745956898,
-0.021903228014707565,
0.037186700850725174,
0.007337342482060194,
-0.00411656079813838,
0.02752986177802086,
0.020970169454813004,
0.036745794117450714,
-0.03880956396460533,
0.01371261477470398,
-0.016918594017624855,
-0.03133213520050049,
-0.0036078300327062607,
-0.07382727414369583,
0.016988040879368782,
0.034964386373758316,
-0.00823313556611538,
-0.017464423552155495,
-0.006089230999350548,
0.008300097659230232,
-0.03287481516599655,
-0.03157791867852211,
-0.02577284164726734,
0.008001383394002914,
0.012873132713139057,
0.012502781115472317,
-0.0359414704144001,
-0.04297976195812225,
0.008657478727400303,
0.042302489280700684,
0.013706741854548454,
-0.05728207528591156,
-0.05977818742394447,
0.003808716544881463,
0.0020781701896339655,
0.030945204198360443,
-0.0005430590244941413,
-0.014313779771327972,
0.033769603818655014,
0.0010334932012483478,
-0.022174084559082985,
0.020950129255652428,
-0.008808205835521221,
-0.010336928069591522,
-0.027827711775898933,
-0.03021065704524517,
0.0030274144373834133,
-0.014800355769693851,
0.0014044983545318246,
-0.027894768863916397,
0.011894193477928638,
0.028628075495362282,
0.004548972472548485,
0.022319389507174492,
-0.028809532523155212,
-0.0027468400076031685,
0.012843281030654907,
0.026653269305825233,
-0.03187496215105057,
-0.01722732000052929,
-0.032625455409288406,
-0.009602220728993416,
-0.011372692883014679,
0.027015920728445053,
-0.02076101116836071,
0.016297072172164917,
-0.021664422005414963,
0.03528919816017151,
-0.02440814860165119,
-0.0037826928310096264,
0.01957602985203266,
-0.010805822908878326,
0.05512867122888565,
-0.017328854650259018,
0.02380058728158474,
-0.015652872622013092,
0.01954517513513565,
-0.0017326852539554238,
0.02638177014887333,
0.011009392328560352,
0.016006557270884514,
-0.008331498131155968,
0.0015532883116975427,
0.02670849673449993,
0.03323680907487869,
0.023726411163806915,
0.034857045859098434,
0.03178679570555687,
-0.007877295836806297,
-0.004045677836984396,
0.02498392015695572,
0.04969685897231102,
-0.02426718920469284,
0.0072274780832231045,
-0.026472395285964012,
-0.04007893055677414,
-0.044491078704595566,
-0.02908300794661045,
-0.02397289127111435,
-0.03573836013674736,
0.010517945513129234,
-0.03400028124451637,
-0.06801529228687286,
0.014900618232786655,
0.043269917368888855,
0.0016067548422142863,
0.018309926614165306,
-0.004999243188649416,
-0.01308981329202652,
-0.04342825338244438,
-0.01695338264107704,
0.04781333729624748,
-0.046766865998506546,
-0.01089086476713419,
-0.0449124276638031,
-0.009733742102980614,
0.016386324539780617,
0.022547364234924316,
-0.0673261508345604,
0.0021270529832690954,
0.009337402880191803,
-0.015542324632406235,
-0.04431971162557602,
-0.0528346411883831,
-0.024012945592403412,
0.02260947972536087,
0.009083183482289314,
0.0022945746313780546,
-0.0010765353217720985,
0.016805673018097878,
0.014084777794778347,
-0.011608370579779148,
0.009351599961519241,
-0.03344903513789177,
0.01948533020913601,
0.04561430215835571,
-0.006265272386372089,
0.05377565324306488,
-0.0274047814309597,
0.057565294206142426,
0.0330960676074028,
-0.007316098548471928,
-0.002539662644267082,
-0.05176505818963051,
0.010678070597350597,
-0.004220322705805302,
0.037573445588350296,
0.03813526779413223,
-0.024578670039772987,
-0.027288859710097313,
0.03537789732217789,
-0.006735316012054682,
-0.010033562779426575,
-0.010710278525948524,
-0.03192907199263573,
-0.01611950621008873,
0.084255650639534,
0.036578256636857986,
0.05438530072569847,
-0.0017962405690923333,
-0.03443487361073494,
0.09552961587905884,
-0.06925880908966064,
-0.02856629341840744,
-0.0034999926574528217,
-0.032942451536655426,
0.02682439796626568,
0.032761503010988235,
0.034029390662908554,
-0.006047611124813557,
0.03599900007247925,
0.05380553752183914,
0.00007820434257155284,
0.01102047972381115,
-0.02460046298801899,
0.024913504719734192,
-0.03622652217745781,
-0.0025691622868180275,
-0.08249783515930176,
0.008649117313325405,
0.028207162395119667,
0.03750695660710335,
-0.020812464877963066,
-0.026530319824814796,
-0.05050940811634064,
0.024835489690303802,
-0.04973563551902771,
-0.020361993461847305,
0.03429967910051346,
-0.02126932144165039,
0.013452251441776752,
0.017432494089007378,
-0.07997042685747147,
0.011394974775612354,
0.047509364783763885,
-0.06979544460773468,
-0.02884598821401596,
-0.028971770778298378,
0.047079820185899734,
-0.0017841322114691138,
0.004637572914361954,
-0.023237796500325203,
0.015917913988232613,
0.054503846913576126,
0.03420235216617584,
0.03586534783244133,
0.04834606125950813,
-0.004826378542929888,
0.0352046899497509,
0.010871914215385914,
-0.02791849710047245,
-0.001817666576243937,
0.02157958410680294,
-0.04799196124076843,
-0.058794114738702774,
0.017611367627978325,
-0.0032875831238925457,
-0.029393509030342102,
-0.043585799634456635,
0.05585770308971405,
0.03467046469449997,
-0.028699858114123344,
-0.046982403844594955,
0.017385048791766167,
-0.03100065514445305,
-0.027469884604215622,
-0.03064093180000782,
0.03934220224618912,
-0.06545072048902512,
0.035115472972393036,
0.0007495749741792679,
0.016659362241625786,
0.06405960768461227,
0.001237114891409874,
-0.005124708171933889,
-0.0035755811259150505,
0.046614546328783035,
0.08908911049365997,
0.05758848413825035,
0.027719596400856972,
0.02783305197954178,
-0.02324976585805416,
-0.05166052281856537,
0.008605098351836205,
0.003081490285694599,
0.0198715478181839,
-0.0002707082312554121,
-0.02017758972942829,
0.06672283262014389,
0.005617316346615553,
0.0689680203795433,
-0.006286263465881348,
-0.02737533487379551,
-0.027991997078061104,
-0.007632533088326454,
0.025689177215099335,
0.03976505994796753,
-0.000999548239633441,
0.029157079756259918,
-0.016609307378530502,
-0.03280695900321007,
0.01759786531329155,
-0.0035089682787656784,
-0.0047083827666938305,
0.03798409923911095,
-0.02751406468451023,
0.003624892560765147,
0.04869077354669571,
0.01079089567065239,
0.09001971781253815,
-0.024799618870019913,
-0.012809442356228828,
-0.018427906557917595,
0.009121282026171684,
-0.007347882259637117,
-0.009252765215933323,
-0.026089753955602646,
-0.03781504184007645,
-0.02587740123271942,
-0.05487446114420891,
-0.004267631098628044,
-0.00013542651140596718,
-0.04495914280414581,
0.017352215945720673,
-0.012506132945418358,
0.01646546460688114,
0.028267143294215202,
0.018551014363765717,
0.002768859500065446,
-0.06450259685516357,
-0.03963199630379677,
-0.06248771399259567,
-0.060199957340955734,
-0.006042976398020983,
-0.0028644888661801815,
0.015029825270175934,
-0.02054339461028576,
-0.015486856922507286,
-0.042769335210323334,
-0.007804743479937315,
0.020485633984208107,
-0.04529187083244324,
-0.029919542372226715,
0.018451057374477386,
0.03367830440402031,
0.030196893960237503,
0.03099043108522892,
0.04424760863184929,
0.009793721139431,
0.008534891530871391,
-0.007685423828661442,
0.007458278443664312,
0.030122267082333565,
-0.0021289782598614693,
0.015687013044953346,
-0.08148709684610367,
0.007512419018894434,
0.06829733401536942,
0.005128710996359587,
-0.0720609799027443,
0.055871497839689255,
0.006058595608919859,
-0.02743317186832428,
0.038209233433008194,
-0.013603564351797104,
0.008876695297658443,
-0.013822837732732296,
-0.011779667809605598,
-0.015410210937261581,
0.01940350979566574,
0.05233102664351463,
-0.007495677098631859,
0.07595593482255936,
0.03501037135720253,
-0.010868329554796219,
-0.01794319413602352,
-0.019753865897655487,
-0.00004744311809190549,
0.0485142357647419,
-0.027140479534864426,
-0.027541011571884155,
-0.10052819550037384,
-0.04624875262379646,
-0.020042458549141884,
-0.019928237423300743,
-0.03663825988769531,
-0.03526398539543152,
0.013619756326079369,
0.020699432119727135,
-0.03661813214421272,
0.06745505332946777,
-0.0303146131336689,
0.016276806592941284,
-0.01329707633703947,
-0.022366011515259743,
0.002080877311527729,
0.016786083579063416,
-0.009908847510814667,
0.0587526299059391,
0.06971416622400284,
-0.029079915955662727,
0.028922833502292633,
-0.0052128685638308525,
0.021668419241905212,
0.01876349002122879,
-0.005941740702837706,
0.0138438381254673
] | [
-0.08862432837486267,
-0.04835459589958191,
-0.03422058746218681,
-0.029459349811077118,
0.02137202024459839,
-0.04931209608912468,
-0.01845094934105873,
0.008980602025985718,
0.013689223676919937,
-0.025459429249167442,
-0.004952633287757635,
-0.039486970752477646,
0.02444114349782467,
-0.025791555643081665,
0.06105765700340271,
0.0005086748860776424,
-0.0020569057669490576,
-0.014469652436673641,
-0.04918895661830902,
-0.0002514913503546268,
-0.021232742816209793,
-0.014303875155746937,
-0.0320373959839344,
-0.032940179109573364,
0.030778903514146805,
0.050629716366529465,
0.030881382524967194,
-0.026851514354348183,
-0.0036043990403413773,
-0.23573026061058044,
0.012067689560353756,
0.0009938119910657406,
0.02761181816458702,
-0.03097068890929222,
-0.02204694040119648,
0.06136978417634964,
-0.005172802601009607,
0.03286243602633476,
-0.02089131437242031,
0.034921903163194656,
0.03696181997656822,
-0.0009778677485883236,
-0.08152163773775101,
-0.04808502644300461,
0.030656183138489723,
-0.0005035361973568797,
-0.02088397555053234,
-0.023564929142594337,
-0.021183587610721588,
0.04635563865303993,
-0.06643786281347275,
-0.027083007618784904,
-0.011163508519530296,
0.008436683565378189,
0.004558038432151079,
0.03604540601372719,
0.0598643496632576,
0.05878093093633652,
0.01302819699048996,
-0.017638051882386208,
-0.005610027816146612,
-0.022454706951975822,
-0.13165602087974548,
0.0728025734424591,
-0.004046834073960781,
0.06021157279610634,
0.009871222078800201,
-0.0421585775911808,
-0.010054890997707844,
0.09722602367401123,
-0.007668708451092243,
-0.02745874412357807,
-0.056185029447078705,
0.06633725762367249,
0.013766507618129253,
-0.004837313666939735,
-0.030303042382001877,
0.016824854537844658,
0.02099684439599514,
-0.026135995984077454,
-0.052613984793424606,
-0.032287102192640305,
-0.014792113564908504,
-0.004962574690580368,
-0.03491424396634102,
0.008993144147098064,
-0.012124652042984962,
0.048557624220848083,
0.06506095081567764,
0.033268772065639496,
0.04307190701365471,
-0.01782931014895439,
0.03969641774892807,
0.03321231156587601,
-0.0813940241932869,
-0.011046400293707848,
-0.005507864989340305,
0.0028151138685643673,
0.009239384904503822,
0.4473486840724945,
-0.028404971584677696,
-0.009730909951031208,
0.03222246840596199,
0.012312552891671658,
-0.0009885788895189762,
0.014441749081015587,
-0.01463722251355648,
-0.02412381023168564,
0.01979386992752552,
-0.06139460578560829,
0.0041347392834723,
-0.018301649019122124,
0.06629294902086258,
-0.05940213054418564,
-0.0012167891254648566,
0.0177422184497118,
0.04235449805855751,
0.015778720378875732,
-0.004978161305189133,
0.0037549366243183613,
-0.007401297800242901,
-0.022143550217151642,
-0.008553058840334415,
0.04448046535253525,
0.04469740390777588,
0.0033752897288650274,
0.013098531402647495,
0.055810194462537766,
0.06319984793663025,
0.033675193786621094,
0.03940512239933014,
-0.019178876653313637,
-0.07490664720535278,
-0.012254053726792336,
-0.012185047380626202,
0.03499177098274231,
0.01780688390135765,
-0.04880239814519882,
-0.024512315168976784,
0.03120696172118187,
-0.0030093789100646973,
-0.061326779425144196,
0.0029405863024294376,
0.00935283675789833,
-0.011251352727413177,
0.12240353971719742,
-0.04746624082326889,
-0.05976106971502304,
-0.007801524363458157,
-0.016778292134404182,
-0.046288397163152695,
0.03771669790148735,
-0.022034060209989548,
-0.029694370925426483,
-0.004680211655795574,
0.0175637099891901,
0.09492337703704834,
-0.029787974432110786,
-0.06489766389131546,
-0.001140712876804173,
-0.01074758730828762,
-0.02271730825304985,
-0.05147319659590721,
0.04753241688013077,
0.024548256769776344,
-0.06322281807661057,
-0.03069487027823925,
-0.010259472765028477,
0.010005940683186054,
-0.05970422551035881,
-0.01914900355041027,
0.0037146685644984245,
-0.01975899189710617,
0.014384868554770947,
0.031241390854120255,
-0.012942931614816189,
-0.037327833473682404,
-0.03241332620382309,
0.01191228348761797,
0.014603745192289352,
-0.021366290748119354,
0.024816220626235008,
-0.04546032473444939,
0.002082454040646553,
-0.02682490646839142,
-0.07287538051605225,
-0.06620846688747406,
-0.0072656492702662945,
-0.016383932903409004,
0.020422756671905518,
-0.016051113605499268,
0.001616917666979134,
-0.05200260132551193,
0.04383019730448723,
-0.02744501456618309,
-0.003982589580118656,
0.012383732944726944,
0.03990240395069122,
0.012515967711806297,
-0.024826159700751305,
0.02352812886238098,
0.0697152242064476,
0.01342266146093607,
0.01832413673400879,
-0.04079262539744377,
0.03645034506917,
0.06490182876586914,
-0.05842479318380356,
0.04520152509212494,
0.02555251680314541,
-0.031219106167554855,
-0.01265573501586914,
0.004630706273019314,
0.022414959967136383,
-0.01750183291733265,
-0.04096606373786926,
-0.025651484727859497,
-0.01691162958741188,
0.036485735327005386,
0.034357573837041855,
-0.037636466324329376,
-0.04913487285375595,
-0.020503723993897438,
-0.3242228329181671,
-0.01688673160970211,
0.017193548381328583,
0.0016926161479204893,
0.021434715017676353,
-0.0775030180811882,
0.008989071473479271,
-0.0003198106132913381,
-0.006963870953768492,
0.009310642257332802,
0.07430358231067657,
-0.042628370225429535,
-0.01255126018077135,
-0.06721923500299454,
-0.01630660891532898,
0.044523708522319794,
-0.03620903193950653,
-0.003861465957015753,
-0.030914848670363426,
0.02478664368391037,
0.0038953309413045645,
-0.015743369236588478,
-0.04660267382860184,
-0.04207586124539375,
0.026569664478302002,
-0.009825957007706165,
0.12124302983283997,
0.030988754704594612,
0.07290223240852356,
-0.04683706536889076,
0.05571720749139786,
-0.002642503008246422,
0.013346684165298939,
-0.05534237623214722,
0.01863768883049488,
-0.018122881650924683,
-0.018201416358351707,
0.013860081322491169,
0.060963891446590424,
-0.025034131482243538,
-0.004084036685526371,
0.008532523177564144,
-0.07895734906196594,
-0.05354483425617218,
0.0013377722352743149,
0.02028956077992916,
-0.027555378153920174,
-0.03720836713910103,
-0.004923936910927296,
0.080969899892807,
0.03386944532394409,
0.0045221163891255856,
0.03234051167964935,
0.014670245349407196,
0.02418886311352253,
-0.02168557047843933,
-0.06914635747671127,
0.0064746905118227005,
0.030869347974658012,
-0.027577880769968033,
0.06643600761890411,
0.05566123500466347,
0.04354303330183029,
-0.04221052676439285,
0.00925673171877861,
-0.002419249853119254,
-0.011185551062226295,
-0.001781555125489831,
0.02523365430533886,
-0.0224077757447958,
-0.05345978960394859,
0.09333086758852005,
-0.00622906256467104,
0.009460541419684887,
0.020283028483390808,
0.05078911781311035,
-0.0351443849503994,
0.006071547511965036,
0.009336497634649277,
-0.015681101009249687,
0.02819967269897461,
-0.011842128820717335,
0.039902541786432266,
-0.0363999605178833,
-0.007513015531003475,
0.07765399664640427,
0.0030283236410468817,
-0.019791381433606148,
0.06418449431657791,
-0.0005592399975284934,
-0.04584943503141403,
0.009275910444557667,
-0.00876233633607626,
-0.015448990277945995,
0.06474217027425766,
-0.011232003569602966,
-0.2690606117248535,
0.045092858374118805,
0.04980117082595825,
0.04003557562828064,
0.007779712323099375,
0.0333874449133873,
0.015620539896190166,
-0.0791725218296051,
-0.02951863780617714,
0.0003155068843625486,
0.010931233875453472,
0.03575189784169197,
0.012960127554833889,
-0.014141522347927094,
0.010569597594439983,
-0.002901616506278515,
0.04965916648507118,
-0.03184763342142105,
0.00878725666552782,
0.0038765394128859043,
0.017011426389217377,
-0.0046646432019770145,
0.1932835429906845,
0.0027281970251351595,
0.02052566222846508,
0.015015513636171818,
0.005007603671401739,
0.02549680694937706,
0.09481561183929443,
0.031575772911310196,
-0.018834685906767845,
0.0037596598267555237,
0.0753478929400444,
0.02568504773080349,
0.041567280888557434,
-0.0674639567732811,
-0.051704876124858856,
0.016171671450138092,
0.013250352814793587,
-0.0021879486739635468,
0.022788619622588158,
0.031009262427687645,
-0.012784656137228012,
0.028196368366479874,
0.04445042088627815,
0.0038525331765413284,
0.024126620963215828,
-0.024571334943175316,
-0.04827063903212547,
0.005913448520004749,
-0.004227273166179657,
0.015441706404089928,
-0.046372365206480026,
0.00004898697079624981,
0.011394147761166096,
0.049364589154720306,
-0.0075209541246294975,
-0.01695152372121811,
0.03071107715368271,
0.02905561774969101,
-0.03314807265996933,
-0.030960654839873314,
0.11381205916404724,
0.03535739332437515,
-0.009541712701320648
] | [
-0.006673670839518309,
0.001139155705459416,
-0.0387631319463253,
0.037164028733968735,
-0.011183938942849636,
-0.04733333736658096,
-0.013422938995063305,
-0.010581489652395248,
-0.035441815853118896,
-0.010498985648155212,
0.0150609090924263,
0.026197385042905807,
0.03540235757827759,
-0.0338468924164772,
-0.004261606372892857,
-0.0019442916382104158,
-0.009139573201537132,
0.02057156339287758,
0.0026409532874822617,
-0.05341867730021477,
-0.0335923470556736,
-0.0029438866768032312,
0.021355988457798958,
-0.02214820683002472,
0.03572560474276543,
0.06707917898893356,
-0.011999156326055527,
0.04339250922203064,
0.005135784391313791,
-0.09912202507257462,
-0.02458810992538929,
-0.0031274701468646526,
0.014142761938273907,
-0.0182227473706007,
-0.01638469658792019,
-0.0055952235125005245,
-0.0008265631040558219,
0.04547558352351189,
0.019817886874079704,
0.005214283708482981,
-0.01602962426841259,
-0.05548945441842079,
0.018136458471417427,
0.026289042085409164,
0.038989972323179245,
-0.006322220899164677,
-0.020402487367391586,
-0.05735097825527191,
-0.025798000395298004,
0.007512049749493599,
-0.027102241292595863,
-0.02099580131471157,
-0.016310781240463257,
0.012162229977548122,
0.0009867079788818955,
-0.0035280955489724874,
-0.0073001449927687645,
-0.028721269220113754,
-0.029660403728485107,
-0.015630202367901802,
-0.00012130054528824985,
-0.010766520164906979,
-0.0504230298101902,
-0.03628342226147652,
-0.026874694973230362,
0.00013385640340857208,
0.014303005300462246,
0.029692109674215317,
-0.008609907701611519,
0.006941481027752161,
0.007554213050752878,
-0.0089718634262681,
-0.013038668781518936,
-0.027237389236688614,
-0.0063707842491567135,
0.04819837212562561,
0.0075648571364581585,
-0.02891720086336136,
0.06937219202518463,
-0.006207653321325779,
0.010291988030076027,
-0.0020673160906881094,
0.0018707271665334702,
0.03088357113301754,
-0.025093652307987213,
-0.0259570125490427,
-0.005519339814782143,
-0.005198606755584478,
0.034883398562669754,
0.03909316658973694,
-0.022393876686692238,
0.015305306762456894,
0.03628477826714516,
-0.03566550835967064,
-0.09064401686191559,
0.014159911312162876,
-0.05290396884083748,
0.012135053053498268,
0.010072778910398483,
0.8348995447158813,
-0.008121480233967304,
0.031894441694021225,
-0.021021777763962746,
0.027489282190799713,
-0.01559247262775898,
0.0025227407459169626,
0.02642430178821087,
-0.017166148871183395,
0.011031688190996647,
-0.03841198608279228,
0.03854823857545853,
-0.004653984680771828,
0.02406613901257515,
-0.053003013134002686,
0.01781879924237728,
-0.012062606401741505,
0.03287264704704285,
0.06665981560945511,
0.010844741947948933,
0.035781096667051315,
0.017113398760557175,
0.017193812876939774,
0.03246009722352028,
0.03120904602110386,
0.03688037768006325,
-0.1019459143280983,
-0.04407846927642822,
-7.142878198460183e-33,
0.050506845116615295,
0.011778771877288818,
0.012347073294222355,
-0.0031802630983293056,
-0.009419663809239864,
-0.005346589256078005,
-0.015467440709471703,
-0.01000322587788105,
-0.02469630353152752,
-0.01785282976925373,
0.003949909470975399,
-0.0019662543199956417,
-0.01504717767238617,
0.0004437641764525324,
0.015636324882507324,
0.0022650067694485188,
0.03214036300778389,
-0.022210964933037758,
-0.05208783596754074,
-0.013516152277588844,
0.02418217994272709,
0.02783377282321453,
-0.005567372776567936,
0.0026118496898561716,
0.028490064665675163,
0.026784144341945648,
0.034517377614974976,
-0.0036103595048189163,
-0.02237550914287567,
-0.04370320960879326,
-0.032814908772706985,
-0.009988470934331417,
0.009790653362870216,
0.012974628247320652,
0.03024795651435852,
-0.0425223782658577,
-0.004859830718487501,
0.019772063940763474,
0.02249778062105179,
-0.004850916098803282,
-0.018475372344255447,
-0.008036775514483452,
-0.04077603295445442,
-0.02050003781914711,
-0.008545545861124992,
-0.03339296206831932,
0.011088945902884007,
0.04307128116488457,
-0.013279403559863567,
-0.014761710539460182,
0.001715627033263445,
0.027617843821644783,
-0.014686856418848038,
0.043502938002347946,
-0.015672307461500168,
0.014015832915902138,
-0.009605410508811474,
0.020827122032642365,
0.023459088057279587,
0.010917103849351406,
-0.05240197852253914,
0.018408488482236862,
-0.00009057189890882,
0.04110700637102127,
0.015595907345414162,
0.02080230973660946,
-0.004592812620103359,
0.0118617108091712,
-0.02121255174279213,
0.051670148968696594,
-0.004969773348420858,
0.005693590268492699,
-0.01523282565176487,
-0.023992935195565224,
-0.004870967008173466,
-0.02993055433034897,
-0.029204828664660454,
-0.018650095909833908,
-0.010954510420560837,
0.031059609726071358,
-0.020154569298028946,
-0.014373375102877617,
-0.001235576462931931,
0.0008441786631010473,
-0.028083298355340958,
-0.02251393347978592,
0.024327393621206284,
-0.014341209083795547,
0.007118001580238342,
-0.018689200282096863,
-0.00345469918102026,
0.019667232409119606,
0.02661803923547268,
-0.012011859565973282,
-0.010544978082180023,
7.472777749282581e-33,
0.047616809606552124,
0.010767538100481033,
-0.03577650338411331,
0.029321419075131416,
0.010304703377187252,
-0.026608960703015327,
0.01981605775654316,
0.013472829014062881,
-0.016430344432592392,
0.06459572166204453,
-0.036846745759248734,
-0.000158323222422041,
-0.019206615164875984,
-0.025500012561678886,
0.06820745766162872,
-0.005305668339133263,
0.014438698999583721,
0.006436734460294247,
0.017830198630690575,
0.007174879778176546,
0.00014280923642218113,
0.012676969170570374,
0.04681292548775673,
0.03620567172765732,
0.04360882565379143,
-0.0066792904399335384,
-0.013026764616370201,
-0.004688057117164135,
-0.009875592775642872,
0.0231412872672081,
0.026482898741960526,
-0.03674469143152237,
-0.0023360401391983032,
-0.018680574372410774,
-0.026010198518633842,
0.06276915222406387,
0.018432432785630226,
0.022993646562099457,
-0.006320946849882603,
0.01778309978544712,
0.01842951960861683,
-0.032304052263498306,
0.008876776322722435,
0.034538205713033676,
-0.02951173298060894,
0.017244692891836166,
0.020361248403787613,
-0.002403444843366742,
-0.006413119379431009,
-0.043755728751420975,
0.009123324416577816,
0.010530759580433369,
-0.026211032643914223,
0.013430164195597172,
0.01944827288389206,
-0.015323933213949203,
-0.01338183507323265,
0.009993011131882668,
-0.036752160638570786,
0.010556044057011604,
-0.03227189555764198,
-0.02873336337506771,
0.023769529536366463,
-0.0064027514308691025,
-0.01009155623614788,
0.01627209037542343,
-0.026015538722276688,
-0.0075590480118989944,
0.012293963693082333,
-0.04697978124022484,
-0.0045984587632119656,
-0.06288301944732666,
-0.034550268203020096,
0.023278985172510147,
-0.01515923347324133,
-0.005561402067542076,
-0.05124214291572571,
0.01994295045733452,
0.004332562908530235,
0.018312787637114525,
0.053008321672677994,
-0.047581177204847336,
-0.022335076704621315,
0.04483382776379585,
0.01811292953789234,
0.006258674897253513,
-0.017427679151296616,
0.051328618079423904,
0.026822930201888084,
-0.042255062609910965,
-0.00007581309910165146,
-0.008926568552851677,
0.0016862144693732262,
0.015150421299040318,
-0.0009456553380005062,
-1.2685694272818182e-8,
-0.01826145127415657,
-0.0027645693626254797,
-0.03857792168855667,
0.05361106991767883,
0.028346529230475426,
-0.010796599090099335,
-0.012898183427751064,
0.0031695233192294836,
0.018029160797595978,
0.003077112138271332,
0.020137954503297806,
-0.012032411992549896,
-0.0307094044983387,
0.012292786501348019,
0.016610531136393547,
-0.004219163209199905,
0.03831829875707626,
0.013185103423893452,
0.02914656326174736,
0.01531673688441515,
-0.00914755742996931,
0.04883641004562378,
-0.047672685235738754,
-0.046621598303318024,
-0.048549726605415344,
-0.013972804881632328,
0.031938984990119934,
-0.10050898045301437,
0.02134433574974537,
-0.008977053686976433,
0.008959222584962845,
-0.025993507355451584,
-0.02268785797059536,
0.02877258136868477,
-0.016148874536156654,
-0.04750220477581024,
0.047072503715753555,
-0.011256908997893333,
0.06742925941944122,
0.027678968384861946,
-0.004386832471936941,
0.021606046706438065,
-0.019820142537355423,
-0.028018245473504066,
-0.05507451668381691,
0.002873681951314211,
0.004019798245280981,
0.007157367654144764,
0.007392986677587032,
-0.0010279245907440782,
0.05856426805257797,
-0.013957411050796509,
-0.027704084292054176,
0.03420022130012512,
0.013929151929914951,
0.01580866239964962,
0.037228845059871674,
0.012492855079472065,
0.017240073531866074,
0.00440392829477787,
0.013196521438658237,
0.008117232471704483,
-0.04999127611517906,
-0.057847198098897934
] | intellij-findreplace-using-regular-expressions-with-capture-groups | https://markhneedham.com/blog/2012/03/30/intellij-findreplace-using-regular-expressions-with-capture-groups |
false | 2012-03-06 01:17:30 | Choosing where to put the complexity | [
"software-development"
] | [
"Software Development"
] | On the current application I'm working on we need to make use of some data which comes from another system so we've created an import script which creates a copy of that data so that we can use it in our application.
In general we've been trying not to do too much manipulation of the data and keeping it close to the initial structure so that if something goes wrong with the import we can more easily trace the problem back to the original data source.
image::{{<siteurl>}}/uploads/2012/03/complexity.gif[Complexity,474]
While that approach has generally been fine we recently had a situation where the way the data was stored in the original database was quite de-normalised and recreating that structure made some of the code in the data access layer quite messy.
We therefore decided to change the import script to normalise the data, thereby simplifying our database access code.
For now the complexity trade off seems ok because we haven't had to change the schema that much so it'll still be reasonably easy to track the data back to the source.
We currently don't have any tests specifically around the data import because there's not very much logic going on but if the complexity increases and we start to see problems with the import process then we'll need to change that.
While we were having this conversation about where we should place the complexity I found it interesting that you could argue for each approach equally convincingly and neither really seemed definitively better - it was back to the world of http://www.markhneedham.com/blog/?s=trade+off[trade offs]! | null | null | [
0.007323706988245249,
0.037325698882341385,
-0.0036094323731958866,
0.04145541787147522,
0.10746686905622482,
0.0036112985108047724,
0.014086028560996056,
0.02413027361035347,
-0.0057189916260540485,
-0.03733016550540924,
-0.0019240964902564883,
-0.004826930817216635,
-0.08476202934980392,
0.02256997674703598,
0.007254419848322868,
0.07756976038217545,
0.08570560812950134,
-0.009262608364224434,
0.04328738525509834,
-0.0022329746279865503,
0.01772608421742916,
0.07700207084417343,
0.0012639028718695045,
0.03430920094251633,
0.015835480764508247,
0.020799873396754265,
-0.006260016933083534,
-0.007064970210194588,
-0.06926347315311432,
-0.005765161011368036,
0.04388035461306572,
-0.0275298859924078,
-0.006989730056375265,
-0.016046293079853058,
0.021135445684194565,
-0.0264241062104702,
-0.04137394577264786,
0.028834382072091103,
-0.01679765246808529,
-0.007052886765450239,
-0.06337529420852661,
0.034315790981054306,
-0.011777153238654137,
0.018554644659161568,
-0.054223399609327316,
-0.023901747539639473,
-0.0524258017539978,
0.023497803136706352,
-0.02130149118602276,
0.008657397702336311,
-0.05076257139444351,
0.042061444371938705,
-0.013220745138823986,
-0.002938337391242385,
-0.013452396728098392,
0.06192521005868912,
0.00428908783942461,
-0.0651625543832779,
0.0005917561938986182,
-0.03771773353219032,
0.009492109529674053,
0.0008679426391609013,
-0.016263047233223915,
0.015170560218393803,
0.03721380978822708,
-0.028085660189390182,
0.0029574863146990538,
0.038012322038412094,
-0.054742179811000824,
0.01121850498020649,
0.014603864401578903,
-0.008287113159894943,
-0.023144224658608437,
-0.012060270644724369,
-0.003942932467907667,
-0.036525845527648926,
-0.016989238560199738,
0.04450307786464691,
0.020069120451807976,
0.05260322615504265,
-0.011999432928860188,
0.024069979786872864,
0.005784565582871437,
-0.0013442402705550194,
0.02237941324710846,
-0.06401487439870834,
-0.02749824710190296,
-0.021713264286518097,
-0.02733253687620163,
0.025424282997846603,
0.016283513978123665,
-0.04634370654821396,
0.03313153609633446,
0.020310409367084503,
-0.0027665472589433193,
-0.029223984107375145,
0.01651773415505886,
0.012281893752515316,
0.00245244475081563,
0.008554651401937008,
-0.04210220277309418,
-0.008377600461244583,
0.025708433240652084,
-0.004700379446148872,
-0.07737010717391968,
0.008572133257985115,
-0.04210605472326279,
-0.00806558970361948,
-0.0011158150155097246,
0.005711788777261972,
-0.026752756908535957,
-0.0016588253201916814,
-0.002931993454694748,
-0.004851408768445253,
-0.08530791103839874,
0.056496985256671906,
0.016028232872486115,
-0.04297575354576111,
0.0014754504663869739,
0.005310077220201492,
0.04993141070008278,
0.024396920576691628,
-0.0009197632898576558,
0.08351191878318787,
0.003566258354112506,
0.013872509822249413,
0.004507387988269329,
0.06953247636556625,
-0.01611769013106823,
-0.05731593444943428,
0.018998833373188972,
0.06592527031898499,
-0.01960299350321293,
0.010753300972282887,
0.008034423924982548,
-0.05430331081151962,
0.004134126007556915,
0.02968554012477398,
0.055738624185323715,
0.030040506273508072,
0.003338586539030075,
-0.06575603783130646,
-0.001897415379062295,
0.026262281462550163,
-0.006719302386045456,
0.0193790253251791,
0.029931968078017235,
-0.03529950603842735,
-0.017149990424513817,
-0.011556144803762436,
0.0007652244530618191,
0.05304161459207535,
0.02567291632294655,
-0.03383168950676918,
0.03696475550532341,
0.13108724355697632,
-0.003962834365665913,
-0.006703671999275684,
-0.04954531788825989,
0.011925654485821724,
0.02439202181994915,
0.01618165709078312,
0.012540302239358425,
0.005818052217364311,
0.0023817531764507294,
-0.01205685269087553,
-0.004201096948236227,
0.05404145270586014,
0.0020599926356226206,
0.009888652712106705,
-0.05729854479432106,
-0.05764581635594368,
0.08256293833255768,
-0.036398157477378845,
-0.026865171268582344,
0.060435619205236435,
0.07612086087465286,
0.028604907914996147,
0.02961398847401142,
0.005351088009774685,
-0.08861646801233292,
0.0214656013995409,
-0.039136577397584915,
0.014762884937226772,
0.02116711065173149,
-0.00852569192647934,
0.07102620601654053,
-0.0003711280587594956,
0.003824849147349596,
0.021948358044028282,
-0.06055595725774765,
-0.07821766287088394,
-0.023316876962780952,
-0.0051948451437056065,
0.04004271328449249,
-0.024380134418606758,
0.001749565708450973,
0.10249955952167511,
-0.00005819623402203433,
0.02947363071143627,
0.025183601304888725,
0.028664277866482735,
0.003710025455802679,
-0.07714692503213882,
-0.03782704100012779,
0.020778518170118332,
0.029881266877055168,
-0.004825177602469921,
-0.036887962371110916,
0.016650334000587463,
-0.012315571308135986,
-0.033712588250637054,
0.0330689363181591,
-0.027485955506563187,
0.03647654503583908,
0.02223835326731205,
0.030164634808897972,
-0.0436447449028492,
0.025376949459314346,
-0.04450559616088867,
0.02121848613023758,
0.020682767033576965,
-0.0052000535652041435,
-0.0009821654530242085,
-0.0095202112570405,
0.11368343234062195,
0.07321597635746002,
-0.029598956927657127,
-0.039050713181495667,
0.025536026805639267,
0.022562073543667793,
-0.05555133894085884,
-0.0002475681249052286,
-0.03712581843137741,
0.012682885862886906,
0.011173366568982601,
-0.0633658692240715,
-0.01821742206811905,
0.01139321643859148,
-0.012094910256564617,
-0.005361546762287617,
0.052371103316545486,
-0.02142631635069847,
0.057895220816135406,
0.013966849073767662,
-0.030945811420679092,
-0.0012880706926807761,
-0.026020603254437447,
-0.04048597812652588,
0.0031272671185433865,
0.010963303968310356,
-0.0044092051684856415,
0.053873080760240555,
-0.008033931255340576,
-0.010969598777592182,
-0.052651017904281616,
-0.044483013451099396,
0.022567294538021088,
0.03032963164150715,
0.06906372308731079,
-0.025314487516880035,
0.04592367634177208,
0.00017910297901835293,
0.0005597827257588506,
-0.014071469195187092,
-0.0356515571475029,
-0.040709152817726135,
-0.021052764728665352,
-0.0015068312641233206,
0.027418985962867737,
0.020105848088860512,
-0.00013416081492323428,
0.010650251992046833,
0.008928567171096802,
0.0025084316730499268,
-0.022137243300676346,
0.04094246029853821,
-0.02269558422267437,
-0.021206848323345184,
-0.029070360586047173,
-0.022261222824454308,
0.05957857519388199,
-0.039570536464452744,
-0.018704773858189583,
0.006833369378000498,
-0.06862376630306244,
0.03290799632668495,
-0.07437483221292496,
-0.032473959028720856,
0.003985213581472635,
0.019388988614082336,
0.03134995698928833,
-0.024675142019987106,
0.003873549634590745,
0.09578584879636765,
0.007629299070686102,
0.015096365474164486,
0.0032744845375418663,
0.040937308222055435,
0.044171448796987534,
0.010143650695681572,
0.026787923648953438,
0.029724502936005592,
0.011298264376819134,
-0.011281146667897701,
-0.033312130719423294,
0.009782110340893269,
-0.027912823483347893,
-0.2863069176673889,
0.0354531966149807,
-0.007452781777828932,
-0.04348195344209671,
0.030676430091261864,
-0.013403224758803844,
0.003138777334243059,
-0.04338446632027626,
-0.02499517612159252,
0.026509908959269524,
-0.018831899389624596,
-0.05546191334724426,
-0.016734514385461807,
0.0801595151424408,
-0.00012104729103157297,
0.08103630691766739,
0.00836880411952734,
-0.03361945226788521,
-0.025638442486524582,
0.06294262409210205,
-0.019624734297394753,
-0.04642119258642197,
0.01662920042872429,
0.02105022966861725,
0.028245866298675537,
0.04287201166152954,
-0.05015859380364418,
0.02262927033007145,
-0.06479490548372269,
-0.023447465151548386,
0.010293527506291866,
-0.0034119475167244673,
0.014026048593223095,
-0.043019238859415054,
-0.00817608181387186,
-0.040243279188871384,
0.025521688163280487,
0.019245218485593796,
0.019833458587527275,
-0.007701447233557701,
-0.04337433725595474,
-0.02599605731666088,
-0.00021597555314656347,
0.018829436972737312,
0.06964579224586487,
-0.028186693787574768,
-0.06379741430282593,
-0.0008063485147431493,
-0.03583792597055435,
0.07125087082386017,
-0.01818121038377285,
-0.03946173936128616,
-0.006000622641295195,
0.04302995279431343,
-0.014146947301924229,
0.010427743196487427,
0.011381168849766254,
0.004342380445450544,
-0.046466387808322906,
-0.03193320706486702,
-0.004210997372865677,
-0.03792959079146385,
-0.007731006480753422,
-0.001800236408598721,
0.005583280231803656,
-0.05760962888598442,
-0.06641337275505066,
-0.025939324870705605,
0.05783272534608841,
0.05066481977701187,
-0.03156505152583122,
0.039364248514175415,
0.022974994033575058,
-0.0919584259390831,
0.016893072053790092,
-0.04137786850333214,
-0.02142964117228985,
-0.013199914246797562,
-0.012979862280189991,
0.025287052616477013,
-0.025485221296548843,
-0.037464290857315063,
0.032382283359766006,
0.010014984756708145,
0.027585584670305252,
-0.04219930246472359,
0.04409944638609886,
0.025218399241566658,
-0.05039399862289429,
0.007474314887076616,
0.06519479304552078,
-0.028411757200956345,
0.002530596451833844,
-0.022680260241031647,
-0.017750801518559456,
-0.005913492292165756,
0.023288564756512642,
-0.020376181229948997,
0.011895716190338135,
0.009427525103092194,
0.03924986720085144,
-0.0318429172039032,
0.026634762063622475,
-0.009401449002325535,
-0.01564091257750988,
-0.040018096566200256,
-0.0540405698120594,
0.03157227486371994,
0.03283055126667023,
0.03400721028447151,
0.005596276372671127,
-0.03226298466324806,
0.006709641311317682,
-0.07060347497463226,
-0.002453826367855072,
-0.010823355987668037,
0.020521724596619606,
0.026179498061537743,
-0.005415956024080515,
-0.03559878095984459,
-0.0530037097632885,
0.019875554367899895,
0.02395125851035118,
0.010342658497393131,
-0.06174713745713234,
-0.033794522285461426,
-0.0095002930611372,
-0.006311691366136074,
0.010555099695920944,
0.00958538893610239,
-0.02446822077035904,
0.009288222528994083,
0.031471431255340576,
-0.04537557065486908,
0.028204085305333138,
-0.0253757331520319,
-0.05189240723848343,
0.0019033125136047602,
-0.015848735347390175,
-0.026800425723195076,
0.0022474280558526516,
0.020707959309220314,
0.012135443277657032,
0.01964748464524746,
0.032769810408353806,
-0.001663396367803216,
0.03938266634941101,
0.0028886494692415,
0.030503541231155396,
-0.016985759139060974,
0.002359626581892371,
-0.08612482249736786,
0.02879192866384983,
-0.06112077832221985,
-0.03973939269781113,
-0.018791019916534424,
0.043264858424663544,
-0.006964181084185839,
0.0021149874664843082,
-0.042496372014284134,
0.008794686757028103,
-0.054997965693473816,
-0.02258613146841526,
-0.03389332816004753,
-0.00027117450372315943,
0.07539130747318268,
0.0036737071350216866,
0.0075254254043102264,
-0.015334204770624638,
0.025202106684446335,
0.01436473149806261,
0.029840955510735512,
-0.06658261269330978,
-0.016379766166210175,
0.022847294807434082,
-0.02294120006263256,
-0.0014007444260641932,
-0.00900966301560402,
0.04011857882142067,
0.030088452622294426,
-0.022042661905288696,
-0.0026426806580275297,
-0.012767677195370197,
0.017325466498732567,
0.05727484077215195,
0.019219275563955307,
-0.002191664883866906,
-0.006370841525495052,
-0.003219270147383213,
-0.037844106554985046,
-0.034674886614084244,
-0.008578471839427948,
-0.016064085066318512,
0.013398099690675735,
-0.008084483444690704,
-0.0736958459019661,
0.0428941547870636,
0.027171142399311066,
0.010839060880243778,
0.02862686850130558,
0.037025146186351776,
0.00038216644315980375,
-0.010514252819120884,
0.03556400537490845,
0.051221203058958054,
-0.046847738325595856,
0.005041706375777721,
0.0061879404820501804,
0.005641654133796692,
0.025356030091643333,
0.02219647541642189,
-0.025336693972349167,
-0.05080988258123398,
-0.025015734136104584,
-0.0007366710342466831,
0.0020867472048848867,
-0.029254434630274773,
-0.0042998408898711205,
0.008291334845125675,
-0.007013735361397266,
-0.037526655942201614,
0.007268048357218504,
0.01084167417138815,
-0.015403210185468197,
-0.013929991982877254,
0.02150726318359375,
-0.0025899107567965984,
0.018831387162208557,
0.021566586568951607,
-0.007620933465659618,
0.0035653423983603716,
-0.03354273736476898,
0.013465517200529575,
0.009378037415444851,
-0.01269380934536457,
-0.016990041360259056,
-0.03507138788700104,
0.03102494589984417,
-0.007304270286113024,
0.037247538566589355,
-0.025623222813010216,
-0.028257744386792183,
-0.009568176232278347,
0.00656716525554657,
-0.030008964240550995,
0.001735285739414394,
-0.04096207767724991,
-0.023532014340162277,
0.012522649951279163,
0.035315871238708496,
-0.006880969274789095,
0.007912974804639816,
-0.004943201318383217,
-0.05314110964536667,
0.04658510163426399,
-0.06920923292636871,
-0.028521671891212463,
-0.03738398104906082,
-0.04615950956940651,
0.0055632819421589375,
0.00043091794941574335,
0.004752767272293568,
-0.029194403439760208,
0.028053415939211845,
0.03223642334342003,
0.035310715436935425,
0.04218070209026337,
0.00578302750363946,
0.060269612818956375,
-0.061967883259058,
-0.013928485102951527,
-0.09449012577533722,
0.03559112921357155,
0.018764158710837364,
-0.004872495774179697,
-0.026519525796175003,
0.008187190629541874,
-0.038399823009967804,
0.04044240340590477,
-0.06318172812461853,
-0.029339248314499855,
0.044037073850631714,
0.014955463819205761,
0.009329454973340034,
-0.0039472514763474464,
-0.05655781179666519,
0.006496242713183165,
0.015373115427792072,
-0.018565820530056953,
-0.01447124220430851,
-0.01817968860268593,
0.054228734225034714,
0.011615904979407787,
0.03487851843237877,
-0.017942136153578758,
-0.006276499014347792,
0.06917130947113037,
-0.003261884907260537,
0.029885105788707733,
0.039415035396814346,
-0.034173883497714996,
0.054243940860033035,
0.024416949599981308,
0.0037099665496498346,
-0.015396030619740486,
0.019457967951893806,
-0.0016606450080871582,
-0.04764220118522644,
0.008674806915223598,
0.01952723041176796,
0.005618401803076267,
-0.04870171099901199,
0.07194110751152039,
0.014296034350991249,
-0.023112468421459198,
-0.05438108742237091,
0.026896851137280464,
-0.05393946170806885,
0.00768357515335083,
-0.0005089828046038747,
-0.0354146771132946,
-0.04806419089436531,
0.036615099757909775,
-0.03157031536102295,
-0.005541248247027397,
0.07216744869947433,
-0.009584365412592888,
0.0010310832876712084,
-0.011881108395755291,
0.0839729756116867,
0.08618508279323578,
0.06525983661413193,
0.03119446337223053,
0.05078020691871643,
-0.010501316748559475,
-0.02836797758936882,
0.022566603496670723,
-0.02605610527098179,
-0.00991856213659048,
-0.015323277562856674,
-0.0024084250908344984,
0.06063045188784599,
-0.004681392107158899,
0.08074571192264557,
-0.007969046011567116,
-0.011784020811319351,
0.009834150783717632,
-0.0031039512250572443,
0.012342986650764942,
0.09012089669704437,
0.008278760127723217,
0.01524153258651495,
-0.02404443919658661,
-0.04630051180720329,
-0.0015978572191670537,
-0.013098223134875298,
-0.011545565910637379,
0.041935261338949203,
-0.025948558002710342,
0.02271844632923603,
0.028031548485159874,
0.049183353781700134,
0.07952728122472763,
-0.03522438928484917,
-0.0105204526335001,
-0.026159420609474182,
0.04149659723043442,
0.009305144660174847,
0.008259642869234085,
-0.015260573476552963,
-0.02819642797112465,
0.009670985862612724,
-0.03993835300207138,
-0.012424645014107227,
0.005435784347355366,
-0.021054774522781372,
0.03691845014691353,
0.004485766403377056,
-0.00825818907469511,
0.02404605969786644,
0.030987557023763657,
-0.0317964106798172,
-0.03868400678038597,
-0.06855788081884384,
-0.020743442699313164,
-0.0526750385761261,
-0.016646428033709526,
0.021943654865026474,
-0.0031641877721995115,
-0.016392318531870842,
-0.010614913888275623,
-0.03038817085325718,
-0.028974056243896484,
0.04370938614010811,
-0.05589309707283974,
-0.045494720339775085,
0.029363619163632393,
0.03312322497367859,
0.025593237951397896,
0.01723949797451496,
0.045947927981615067,
-0.014076974242925644,
-0.010084755718708038,
-0.02165091782808304,
0.013801666907966137,
0.046543434262275696,
-0.015123801305890083,
-0.008864281699061394,
-0.07094883918762207,
0.007513694930821657,
0.012727505527436733,
-0.027628734707832336,
-0.07850842922925949,
0.027798587456345558,
0.03673458844423294,
-0.001657500397413969,
0.06463680416345596,
-0.02503545768558979,
0.013006121851503849,
-0.025991976261138916,
-0.01271816436201334,
-0.01876460760831833,
0.02640361152589321,
0.035191480070352554,
-0.02803507260978222,
0.08759476989507675,
0.03152225911617279,
-0.008977877907454967,
-0.04235498234629631,
-0.012964882887899876,
0.009794945828616619,
0.005734316073358059,
-0.009592139162123203,
-0.029911210760474205,
-0.029218770563602448,
-0.08478664606809616,
-0.0346587598323822,
0.01481049694120884,
-0.02085186168551445,
-0.03769053518772125,
0.011473788879811764,
0.038054902106523514,
-0.0480777844786644,
0.01834903098642826,
-0.02954280562698841,
0.03676365688443184,
-0.0420595146715641,
-0.04528632387518883,
0.0017419102368876338,
0.038611024618148804,
-0.013586108572781086,
-0.010269342921674252,
0.011493857949972153,
-0.06876997649669647,
-0.01492843497544527,
-0.009377607144415379,
0.0270344577729702,
0.013309222646057606,
0.013447532430291176,
0.006290604826062918
] | [
-0.08391183614730835,
-0.027360668405890465,
-0.016493454575538635,
-0.04333191365003586,
0.050800301134586334,
-0.04317246004939079,
-0.016215678304433823,
0.0063018775545060635,
-0.011174946092069149,
-0.02826676145195961,
0.0177150946110487,
-0.026407452300190926,
0.010324157774448395,
-0.021574119105935097,
0.059784792363643646,
0.010432565584778786,
-0.03213648870587349,
-0.09379471838474274,
-0.004936611745506525,
0.028231309726834297,
-0.017465105280280113,
-0.02558576874434948,
-0.05984291434288025,
-0.027499541640281677,
-0.014245402999222279,
0.05741216242313385,
0.029147619381546974,
-0.02883479930460453,
-0.007188023533672094,
-0.21831916272640228,
0.008384931832551956,
-0.009923629462718964,
0.018668392673134804,
-0.0044999211095273495,
0.04846404492855072,
0.025858985260128975,
0.027096236124634743,
0.015275377780199051,
0.006230177357792854,
0.05090402439236641,
0.038079313933849335,
0.01425275206565857,
-0.048402391374111176,
-0.013449340127408504,
0.01739129237830639,
-0.008037111721932888,
-0.00918043777346611,
-0.006767266895622015,
-0.015107360668480396,
0.0394534207880497,
-0.05609341710805893,
0.00715193897485733,
-0.03368326276540756,
-0.009387432597577572,
-0.005135819781571627,
0.05067840963602066,
0.06355786323547363,
0.0639113187789917,
0.004606283735483885,
0.024379219859838486,
0.02920822985470295,
0.001152831013314426,
-0.11392522603273392,
0.09411259740591049,
0.05482642725110054,
0.06092236936092377,
-0.04368580877780914,
-0.0573502816259861,
-0.02188948541879654,
0.06441071629524231,
-0.04335666820406914,
-0.05077798292040825,
-0.049902480095624924,
0.050929874181747437,
0.01152873132377863,
-0.007115915883332491,
-0.011755635030567646,
0.015028604306280613,
0.0023363959044218063,
-0.02797985076904297,
-0.0203617662191391,
-0.008760595694184303,
-0.009400748647749424,
-0.012471063993871212,
-0.04860562086105347,
0.00203911354765296,
-0.03407644107937813,
0.07534652948379517,
0.022613385692238808,
-0.00553970318287611,
0.060974009335041046,
-0.027585450559854507,
0.06864865124225616,
0.022417135536670685,
-0.05799298360943794,
-0.006834430620074272,
-0.009413834661245346,
0.0442967563867569,
-0.010236633941531181,
0.4273103177547455,
-0.013584201224148273,
-0.013969453983008862,
0.04930351302027702,
0.058548808097839355,
-0.02683311514556408,
0.014951441437005997,
-0.020232830196619034,
-0.026836218312382698,
0.03589974343776703,
-0.034647319465875626,
0.004851093515753746,
-0.003456392325460911,
0.05837298557162285,
-0.046399615705013275,
-0.002598763909190893,
0.007012398447841406,
-0.00820619985461235,
-0.01246816385537386,
-0.01495890412479639,
-0.002937124576419592,
0.0008711012778803706,
0.013594898395240307,
0.024756405502557755,
0.02186390571296215,
0.008355192840099335,
-0.017120644450187683,
0.013153508305549622,
0.02876215986907482,
0.004415636416524649,
0.005103664007037878,
0.0401122011244297,
-0.046852417290210724,
-0.11047623306512833,
0.012724094092845917,
-0.00029268988873809576,
-0.0010846381774172187,
0.021721649914979935,
-0.012708448804914951,
-0.007533103693276644,
0.016124270856380463,
-0.029318692162632942,
-0.021275026723742485,
0.018912866711616516,
-0.002360482467338443,
-0.04660662263631821,
0.12907876074314117,
0.015608206391334534,
-0.0333232618868351,
-0.04324878379702568,
-0.06497862190008163,
0.00453731045126915,
0.04343545436859131,
-0.01199302263557911,
-0.06284040212631226,
-0.0014986427268013358,
0.017477862536907196,
0.07504860311746597,
-0.020743336528539658,
-0.06539133191108704,
-0.026108982041478157,
-0.016744844615459442,
-0.040747154504060745,
-0.04165098816156387,
0.06398654729127884,
0.04626834765076637,
-0.12652142345905304,
-0.017761951312422752,
0.010201993398368359,
0.04482386261224747,
-0.025673668831586838,
0.006062227301299572,
0.01772734336555004,
-0.034837402403354645,
-0.0005946830497123301,
0.040103763341903687,
-0.04955221712589264,
-0.03809449449181557,
0.013626187108457088,
0.025249766185879707,
-0.010384071618318558,
0.016145652160048485,
-0.000604668166488409,
-0.05928716063499451,
-0.00041379217873327434,
-0.037955962121486664,
-0.09444911777973175,
-0.05956411734223366,
0.04806780442595482,
-0.031203806400299072,
0.0020742120686918497,
-0.01739559695124626,
0.0025653336197137833,
-0.0794178768992424,
0.0768190398812294,
-0.026132989674806595,
-0.03322090208530426,
0.008756306953728199,
0.021528948098421097,
-0.020478902384638786,
-0.036460135132074356,
0.018895335495471954,
0.03955206274986267,
-0.006925851572304964,
0.028308048844337463,
-0.06817396730184555,
0.07256270945072174,
0.05732443556189537,
-0.04441563040018082,
0.07208161056041718,
0.061155766248703,
-0.01862698793411255,
-0.020164739340543747,
0.014244567602872849,
0.03300944343209267,
-0.0029377646278589964,
-0.029717734083533287,
0.009713992476463318,
0.011715138331055641,
0.03864749148488045,
0.03156764432787895,
-0.04727237671613693,
-0.004214305430650711,
0.011592110618948936,
-0.3542269170284271,
-0.027958065271377563,
-0.04013987258076668,
0.03505382314324379,
-0.011597530916333199,
-0.06706766039133072,
0.03648031875491142,
-0.006962472572922707,
-0.014543656259775162,
0.03106452152132988,
0.06117195636034012,
0.006475511472672224,
0.019299138337373734,
-0.041114021092653275,
-0.008082536980509758,
0.0008570742211304605,
-0.01766522228717804,
-0.002552647842094302,
-0.056808751076459885,
-0.005680750589817762,
-0.026271283626556396,
-0.013368459418416023,
-0.041608765721321106,
-0.05485192686319351,
0.011694886721670628,
-0.043964724987745285,
0.11786999553442001,
-0.0681084543466568,
0.08326040208339691,
-0.03272638097405434,
0.05506177619099617,
-0.017323127016425133,
0.0010387096554040909,
-0.09629951417446136,
0.0034428031649440527,
-0.022015728056430817,
-0.003756308928132057,
0.02370697446167469,
0.014520067721605301,
-0.020956560969352722,
-0.033981598913669586,
-0.01892874203622341,
-0.0421224869787693,
-0.037502139806747437,
0.002723830984905362,
0.02681301161646843,
-0.037893522530794144,
-0.019848981872200966,
-0.035562824457883835,
0.07158759981393814,
0.004383813589811325,
0.021526888012886047,
0.047888949513435364,
0.037266381084918976,
0.007988928817212582,
-0.02313736267387867,
-0.06814002990722656,
0.036285482347011566,
0.010788258165121078,
0.033107269555330276,
0.016519280150532722,
0.05783804878592491,
0.03302302956581116,
-0.05691654980182648,
-0.009849222376942635,
-0.008300830610096455,
0.015140080824494362,
-0.005668074358254671,
0.038503728806972504,
-0.017174366861581802,
-0.02547723799943924,
0.11435569822788239,
-0.02215762622654438,
0.010007146745920181,
-0.00040216060006059706,
0.07750336080789566,
-0.030374273657798767,
0.04080639407038689,
0.02196812629699707,
-0.005238089710474014,
0.048892587423324585,
-0.010359976440668106,
0.040629368275403976,
-0.004895337391644716,
-0.0022151118610054255,
0.06914742290973663,
0.01077059842646122,
-0.039123233407735825,
0.04650459438562393,
0.00044219166738912463,
-0.014088612049818039,
-0.05634371563792229,
-0.022297602146863937,
-0.0654444694519043,
0.07891608029603958,
-0.024567842483520508,
-0.23541121184825897,
0.006087951827794313,
0.04723813012242317,
0.05053643137216568,
0.001312341308221221,
0.031674351543188095,
0.03973456472158432,
-0.008666861802339554,
0.05075703561306,
-0.006512946914881468,
0.016713976860046387,
0.006884326692670584,
0.01950179599225521,
0.008730413392186165,
0.037621717900037766,
-0.010180681943893433,
0.054201144725084305,
0.016097089275717735,
0.025288011878728867,
0.01808316633105278,
0.011074730195105076,
-0.018810568377375603,
0.16384263336658478,
0.0439712293446064,
0.012250944040715694,
0.012209808453917503,
0.0026096231304109097,
0.0360492467880249,
0.06373967975378036,
0.0373343825340271,
-0.020913247019052505,
0.0015957619762048125,
0.013788407668471336,
0.002553252736106515,
0.014933114871382713,
-0.05562178045511246,
-0.037305381149053574,
0.033604785799980164,
0.027135394513607025,
-0.010054485872387886,
-0.013163900002837181,
-0.012416350655257702,
-0.05565785616636276,
0.029185296967625618,
0.055286020040512085,
0.011075779795646667,
-0.007264712359756231,
-0.04637535661458969,
-0.043926846235990524,
0.0022309075575321913,
-0.04104702174663544,
-0.024746837094426155,
-0.011092262342572212,
-0.016283975914120674,
0.014926246367394924,
0.07672378420829773,
0.01841600425541401,
0.012856002897024155,
0.022018635645508766,
0.010776717215776443,
0.006319715175777674,
-0.030837906524538994,
0.10651178658008575,
0.009922457858920097,
-0.013872569426894188
] | [
-0.003253828501328826,
0.007818897254765034,
-0.01615992560982704,
0.04268348589539528,
-0.02184472605586052,
-0.028844168409705162,
0.005885593593120575,
-0.016183922067284584,
-0.03475267067551613,
-0.00034979480551555753,
-0.01942702755331993,
0.022596636787056923,
0.03912166878581047,
-0.03101976588368416,
0.008729933761060238,
0.011131907813251019,
0.007913132198154926,
-0.013282195664942265,
0.029828276485204697,
-0.014598628506064415,
-0.035529207438230515,
0.005405916832387447,
-0.010565773583948612,
0.0009714147890917957,
0.013939832337200642,
0.01879468373954296,
-0.02152242325246334,
0.009100298397243023,
0.020259303972125053,
-0.1320146918296814,
-0.04176001250743866,
-0.03362707793712616,
0.0014247300568968058,
0.02178283967077732,
-0.004060015548020601,
-0.003241682192310691,
0.00012506621715147048,
0.006780792027711868,
0.00846322812139988,
-0.0012290525482967496,
0.022205017507076263,
-0.012268741615116596,
-0.012872369959950447,
0.030025051906704903,
-0.02876640297472477,
0.0037814187817275524,
-0.026514628902077675,
-0.013267804868519306,
0.0004489045822992921,
-0.01435760222375393,
-0.02938397228717804,
-0.0195985808968544,
-0.02822275646030903,
0.012144154869019985,
0.006658786442130804,
0.01466718502342701,
-0.0009587978129275143,
-0.002455101814121008,
-0.04196427762508392,
0.014690444804728031,
-0.02287023700773716,
-0.013923614285886288,
-0.0059157670475542545,
-0.025548353791236877,
-0.015787797048687935,
-0.003797988872975111,
-0.041045211255550385,
0.02491074986755848,
0.020937569439411163,
-0.004670705180615187,
-0.0172912385314703,
0.03865724056959152,
-0.057856105268001556,
-0.015614780597388744,
0.009496854618191719,
-0.005481433589011431,
-0.02688000164926052,
-0.00850006565451622,
0.009945218451321125,
-0.030651714652776718,
-0.03641972318291664,
0.028582125902175903,
0.02467765286564827,
-0.006032534409314394,
0.001197734265588224,
-0.01383331697434187,
0.02218470349907875,
0.002684461884200573,
-0.005639661569148302,
0.009102262556552887,
0.009228021837770939,
0.020620698109269142,
0.008534387685358524,
0.038037125021219254,
-0.07996343821287155,
0.0009613227448426187,
-0.0071451058611273766,
0.002980451565235853,
0.00920675229281187,
0.8619492650032043,
0.0009081693133339286,
0.02651280350983143,
0.006715134717524052,
0.0032981084659695625,
-0.009276621975004673,
-0.002044691238552332,
0.013701030984520912,
-0.0060051726177334785,
-0.013077137060463428,
-0.03148743882775307,
0.0032393215224146843,
0.011663063429296017,
0.019139688462018967,
-0.006259819492697716,
0.000573303026612848,
0.034356169402599335,
-0.027927683666348457,
-0.009411009028553963,
-0.03021545521914959,
-0.015051493421196938,
0.015368027612566948,
0.023363402113318443,
-0.002515822649002075,
0.0008113534422591329,
0.018573911860585213,
-0.1677630990743637,
-0.01402648352086544,
-7.964402547575079e-33,
0.0030741263180971146,
-0.006417387630790472,
0.01399260200560093,
-0.004025752656161785,
0.01729527860879898,
-0.0015182248316705227,
0.0054391734302043915,
0.011404968798160553,
-0.04585098847746849,
-0.0015553554985672235,
-0.007966085337102413,
0.020080339163541794,
-0.0020184533204883337,
-0.024374043568968773,
0.047195035964250565,
0.02270427905023098,
0.0008470055763609707,
0.04839850962162018,
0.004393551032990217,
0.019808180630207062,
0.0403771735727787,
0.021372126415371895,
0.014426362700760365,
0.01921749673783779,
0.03311854228377342,
0.02201409451663494,
-0.0251374002546072,
0.008888217620551586,
0.030038584023714066,
-0.04342879354953766,
-0.0203273743391037,
0.0021346157882362604,
-0.01318566408008337,
-0.029204342514276505,
-0.00334237702190876,
-0.042146097868680954,
0.007136112079024315,
-0.002394602168351412,
-0.042376723140478134,
-0.004560931585729122,
-0.0212189182639122,
0.020038390532135963,
-0.04384911432862282,
-0.0027647654060274363,
-0.02149120345711708,
0.001114757265895605,
-0.015928108245134354,
0.02881976030766964,
0.0021823891438543797,
0.027801591902971268,
0.011226866394281387,
-0.006446309387683868,
-0.010233917273581028,
-0.007017360534518957,
-0.012133585289120674,
0.02187928557395935,
-0.013289224356412888,
-0.0096314437687397,
0.04171815142035484,
0.02241067960858345,
0.01751762256026268,
-0.007336208131164312,
0.01184453908354044,
0.02610398642718792,
0.004048162139952183,
-0.0005565333412960172,
0.02518514357507229,
0.0017769357655197382,
0.025741074234247208,
-0.014494596049189568,
-0.0385056771337986,
0.014377661980688572,
-0.034202221781015396,
0.008252392522990704,
0.026706846430897713,
-0.02725921757519245,
-0.020199758931994438,
-0.003976920619606972,
-0.0014346287352964282,
0.018731750547885895,
0.024336356669664383,
-0.016809435561299324,
-0.025820693001151085,
-0.022932689636945724,
-0.03786104544997215,
-0.0011775988386943936,
-0.0038786795921623707,
0.0004777322756126523,
-0.003494689939543605,
0.009945040568709373,
0.04020438715815544,
0.009947482496500015,
0.017036406323313713,
-0.06012614816427231,
-0.026674268767237663,
8.153667423633037e-33,
0.05059553310275078,
-0.027234628796577454,
0.0010862939525395632,
0.00451119989156723,
0.023947779089212418,
-0.01124308630824089,
0.026813199743628502,
0.03926709294319153,
-0.025822410359978676,
0.051780350506305695,
0.013859769329428673,
0.01885971799492836,
0.018358048051595688,
-0.00854481104761362,
0.028642557561397552,
0.0039881207048892975,
0.013150759972631931,
-0.0002529746270738542,
-0.0031741089187562466,
0.008070947602391243,
-0.0009722945978865027,
0.013611574657261372,
0.018331585451960564,
0.00573353236541152,
0.018818028271198273,
0.052540894597768784,
-0.03679589182138443,
0.01137734204530716,
0.0041825841180980206,
0.025928230956196785,
-0.04740332067012787,
0.002688431181013584,
0.02751481533050537,
-0.01654120348393917,
-0.05411712825298309,
0.02541586197912693,
-0.0023276370484381914,
0.0003319382667541504,
0.017340967431664467,
0.017939453944563866,
-0.004261248279362917,
0.04337167367339134,
-0.0025784200988709927,
0.015893444418907166,
0.0013279120903462172,
0.03262828290462494,
-0.029093600809574127,
0.01730872504413128,
-0.009481817483901978,
-0.018509333953261375,
-0.026590142399072647,
0.007827289402484894,
0.0342317558825016,
-0.02576066553592682,
0.023715779185295105,
0.001823995728045702,
-0.018854325637221336,
-0.002196135465055704,
-0.016549192368984222,
-0.0040050470270216465,
0.0004525353142526001,
0.02377951703965664,
-0.04232590273022652,
-0.0012593374121934175,
-0.05418192222714424,
0.0018294370966032147,
-0.028553253039717674,
-0.0038348871748894453,
0.007163189351558685,
-0.046354472637176514,
0.0064199198968708515,
-0.014528190717101097,
0.0025124468374997377,
0.03674917668104172,
0.02621246874332428,
-0.005506479647010565,
-0.050093598663806915,
0.03571478649973869,
-0.010351455770432949,
0.06684558093547821,
0.018783245235681534,
-0.0037757023237645626,
0.0406673289835453,
-0.01043368224054575,
-0.008241715840995312,
0.015665201470255852,
-0.014936174266040325,
0.018965676426887512,
0.009503884240984917,
0.012003094889223576,
-0.053840212523937225,
-0.026580967009067535,
-0.01646399311721325,
0.01685084030032158,
0.024269402027130127,
-1.346199507423762e-8,
-0.03525983914732933,
-0.016888102516531944,
0.0166877880692482,
-0.008521721698343754,
0.04854888841509819,
0.025712205097079277,
-0.02804267406463623,
0.05638303607702255,
-0.015733543783426285,
0.02252018451690674,
0.0340370312333107,
0.003097852226346731,
0.003511701710522175,
0.014488712884485722,
-0.020139314234256744,
-0.011059842072427273,
0.009478313848376274,
-0.03210822120308876,
0.024797363206744194,
-0.008869169279932976,
-0.005651365499943495,
0.06698095053434372,
-0.019275715574622154,
0.0042080357670784,
0.03146554157137871,
0.021304361522197723,
-0.016100727021694183,
-0.07268515229225159,
-0.018353736028075218,
0.00417976314201951,
0.031319741159677505,
-0.04551716148853302,
0.015954650938510895,
0.006854947656393051,
-0.038327835500240326,
-0.048415232449769974,
0.036718156188726425,
0.015056218951940536,
0.012816175818443298,
-0.0123093007132411,
-0.009063244797289371,
-0.01678461767733097,
-0.03273007646203041,
-0.0348280631005764,
-0.012232653796672821,
-0.011427120305597782,
-0.009548787958920002,
0.0011707053054124117,
-0.01187209039926529,
-0.04072005674242973,
0.0443655289709568,
-0.002221464179456234,
-0.016521263867616653,
0.03237534314393997,
0.026800455525517464,
0.013840071856975555,
-0.010067539289593697,
0.014821814373135567,
-0.04118317738175392,
-0.0008413740433752537,
0.0038557322695851326,
0.017555898055434227,
-0.009966046549379826,
-0.021091841161251068
] | choosing-where-to-put-the-complexity | https://markhneedham.com/blog/2012/03/06/choosing-where-to-put-the-complexity |
false | 2012-03-24 12:28:03 | Haskell: Memoization using the power of laziness | [
"haskell"
] | [
"Haskell"
] | I've been trying to solve http://projecteuler.net/problem=15[problem 15 of Project Euler] which requires you to find the number of routes that can be taken to navigate from the top corner of a grid down to the bottom right corner.
For example there are six routes across a 2x2 grid:
image::{{<siteurl>}}/uploads/2012/03/grid.gif[Grid,270]
My initial solution looked like this:
[source,haskell]
----
routes :: (Int, Int) -> Int -> Int
routes origin size =
inner origin size
where
inner origin@(x, y) size
| x == size && y == size = 0
| x == size || y == size = 1
| otherwise = inner (x+1, y) size + inner (x, y+1) size
----
Which can be called like this:
[source,haskell]
----
routes (0,0) 2
----
Once we reach the edge of the grid i.e. 'x==size' or 'y==size' then we know there are no more routes from that path because you're not allowed to backtrack so we return a value of 1.
At every other position we recurse twice, once going down the grid and once going across it to get all of the routes.
This solution works fine for small sizes but it starts to take a serious amount of time to finish once 'size' gets above 11. Since the problem requires you to solve the problem for a grid size of 20 it doesn't suffice!
From working through the problem on paper it was clear that a lot of the calculations were being repeated since there were many different ways of reaching each point on the grid. We therefore need to cache the calculations so that they wouldn't be repeated multiple times.
The normal imperative language way of doing that would be to create a map or 2D array containing each grid position and then updating it once a grid position had been calculated.
Unfortunately that doesn't really work with the normal array in Haskell because it's immutable and passing it around as a parameter doesn't seem to work either since we only have a new updated array when it's too late to be useful for other calculations.
I came across a http://unspecified.wordpress.com/2011/11/04/lazy-dynamic-programming-with-arrays-in-haskell/[cool blog post by Matt Giuca] where he suggests that we need to think of things which have been computed and those which haven't rather than thinking about the problem in terms of which elements of the array have been mutated.
He suggests creating an array where (in our case) the key represents a grid position and the value is a function call to work out how many routes we have from that position.
Since Haskell is lazily evaluated that function won't be evaluated until that array position is accessed and once it's been calculated the value will be stored in the array for any future lookups.
The code now ends up looking like this:
[source,haskell]
----
routes :: Int -> Int
routes size =
arr ! (size, size)
where
arr = array ((0,0),(size,size)) [((x,y), inner (x,y) size) | x<-[0..size], y<-[0..size]]
inner origin@(x, y) size
| x == 0 && y == 0 = 0
| x == 0 || y == 0 = 1
| otherwise = arr ! (x-1, y) + arr ! (x, y-1)
----
We first create an array which contains entries for every position on the grid and a corresponding call to the function which works out the number of rotues from there.
I had to change the way we navigate through the grid to be from the bottom right up to the top left corner since that made it much easier to just do a lookup on position (size, size) as the entry point.
And now it returns instantly!
[source,text]
----
> routes 20
137846528820
---- | null | null | [
-0.024718469008803368,
0.012348358519375324,
-0.018051473423838615,
0.022883007302880287,
0.053530339151620865,
0.01698434166610241,
0.01735667698085308,
0.0378313772380352,
0.013906175270676613,
-0.03245212882757187,
0.0054872590117156506,
-0.04810888692736626,
-0.05279301479458809,
0.03398166596889496,
0.00020738414605148137,
0.06958220899105072,
0.0626208558678627,
-0.03157404065132141,
-0.018750209361314774,
0.012831410393118858,
0.04937055706977844,
0.0635942742228508,
-0.0029542436823248863,
0.03807717561721802,
0.025531485676765442,
-0.0016805371269583702,
-0.003936275839805603,
0.018413597717881203,
-0.023465806618332863,
0.010108929127454758,
0.01963505707681179,
0.002142659854143858,
0.02034609764814377,
-0.02938801422715187,
0.04529625177383423,
-0.015368582680821419,
0.0002765158424153924,
-0.0020673968829214573,
-0.017304709181189537,
-0.0058947172947227955,
-0.03040032647550106,
0.02462894469499588,
-0.03041381575167179,
-0.010952616110444069,
-0.02758360467851162,
0.013000402599573135,
-0.038733791559934616,
-0.000632350449450314,
-0.003417789237573743,
-0.0004977610660716891,
-0.07567059993743896,
0.032666489481925964,
-0.0008078592945821583,
-0.0026501535903662443,
-0.023407721891999245,
0.04066475108265877,
0.01987280324101448,
-0.07232776284217834,
0.05120588466525078,
-0.030320458114147186,
0.00917420256882906,
0.009476321749389172,
0.008640856482088566,
0.07765647023916245,
0.0014918813249096274,
-0.025984840467572212,
-0.015004709362983704,
0.049256689846515656,
-0.04128016531467438,
-0.02037419192492962,
-0.05061441659927368,
0.00018294733308721334,
-0.01146619487553835,
-0.004865041468292475,
-0.01787007600069046,
-0.03288213908672333,
-0.014471016824245453,
0.0605667419731617,
0.017448054626584053,
0.019646868109703064,
-0.03424432501196861,
-0.0004461378848645836,
0.008533045649528503,
0.029083700850605965,
0.02086852863430977,
-0.017479466274380684,
-0.04998680576682091,
-0.02367442101240158,
-0.05287183076143265,
0.03982260078191757,
0.009283347055315971,
-0.06816799938678741,
-0.017986951395869255,
0.001058136229403317,
0.021685848012566566,
-0.023212093859910965,
-0.01699131354689598,
0.010130108334124088,
0.006963032763451338,
-0.01047129649668932,
-0.018083753064274788,
-0.03546391800045967,
0.020250285044312477,
0.0060518099926412106,
-0.06340032815933228,
-0.009176932275295258,
-0.011473453603684902,
-0.012577291578054428,
0.018041536211967468,
-0.007944131270051003,
-0.04869461804628372,
-0.016669174656271935,
-0.026425659656524658,
0.0005821841186843812,
-0.05849912762641907,
0.05309835076332092,
0.01857362501323223,
0.02043134719133377,
-0.007347137201577425,
0.03989622741937637,
0.04097157344222069,
0.029607033357024193,
-0.019763650372624397,
0.09622914344072342,
-0.010603554546833038,
0.0505949966609478,
0.015477323904633522,
0.055729206651449203,
-0.03426550328731537,
-0.07538379728794098,
-0.010821049101650715,
0.07470116019248962,
-0.022650714963674545,
-0.015962371602654457,
-0.00753747345879674,
-0.045586518943309784,
-0.03115990199148655,
0.008329125121235847,
0.041469842195510864,
0.032211992889642715,
-0.007562240120023489,
-0.05200012028217316,
0.04932712763547897,
-0.01795116253197193,
0.0384807363152504,
0.01747256889939308,
-0.0011082061100751162,
-0.04724275320768356,
-0.00048417432117275894,
0.028408028185367584,
0.029116423800587654,
0.055753305554389954,
0.05699118599295616,
-0.03286019340157509,
0.020206280052661896,
0.07006385922431946,
0.01927025616168976,
0.013427277095615864,
-0.009158802218735218,
0.01284247450530529,
0.03506125509738922,
0.03566792607307434,
0.040484510362148285,
0.03388513997197151,
0.0037781172432005405,
-0.007795903366059065,
0.009058798663318157,
0.05044638738036156,
-0.01403843518346548,
-0.035434290766716,
-0.0495745912194252,
-0.026356041431427002,
0.06620775908231735,
-0.024145962670445442,
-0.006632565520703793,
-0.008066386915743351,
0.07149052619934082,
0.017345212399959564,
0.03269677236676216,
-0.03855114057660103,
-0.06650250405073166,
0.020566917955875397,
0.009772153571248055,
0.052848491817712784,
0.019992955029010773,
-0.007166809868067503,
0.05882715806365013,
0.04245627298951149,
0.006310577038675547,
0.020333580672740936,
-0.02110123075544834,
-0.07165134698152542,
-0.023796511813998222,
-0.02792898193001747,
0.06299351900815964,
-0.002992065157741308,
-0.0025317189283668995,
0.035480715334415436,
0.017572689801454544,
0.037174105644226074,
0.017693808302283287,
0.006470029707998037,
0.05201328545808792,
-0.03077002428472042,
-0.03903566300868988,
0.06250462681055069,
0.023758219555020332,
-0.006688602268695831,
-0.06858540326356888,
0.00036191559047438204,
-0.02737736701965332,
-0.024561012163758278,
0.026469441130757332,
0.00900987908244133,
0.03331447392702103,
0.030035756528377533,
0.023706559091806412,
-0.006461352109909058,
0.057862743735313416,
-0.04991033673286438,
0.03859960287809372,
0.03218842297792435,
-0.012042204849421978,
-0.017728598788380623,
-0.04211455583572388,
0.13751961290836334,
0.054276689887046814,
-0.03798384219408035,
-0.061585962772369385,
0.012161264196038246,
-0.017391614615917206,
-0.026300916448235512,
-0.0036319021601229906,
0.024628933519124985,
-0.009884659200906754,
-0.0013226522132754326,
-0.004410224966704845,
-0.02461622841656208,
0.03369986265897751,
-0.03927889093756676,
-0.04083738103508949,
0.07536804676055908,
-0.020433666184544563,
0.054732926189899445,
0.013720445334911346,
-0.043746478855609894,
0.016299255192279816,
-0.026099655777215958,
-0.05700214207172394,
0.002900863764807582,
0.007099159527570009,
0.003940082620829344,
0.06017666682600975,
-0.027352098375558853,
-0.04229592904448509,
-0.02502976730465889,
-0.00863322801887989,
0.015189863741397858,
0.05447929725050926,
0.06321205198764801,
-0.02186940796673298,
0.06431341916322708,
0.012763261795043945,
-0.02663099579513073,
-0.027129923924803734,
-0.05471162125468254,
-0.043568629771471024,
-0.01898283138871193,
0.01638171449303627,
0.039473097771406174,
0.049698613584041595,
-0.016770917922258377,
0.016549674794077873,
-0.022927016019821167,
-0.002384788589552045,
-0.028162261471152306,
-0.0003060148737858981,
-0.019385231658816338,
-0.04651539400219917,
-0.011365515179932117,
0.00003791877315961756,
0.06446412950754166,
-0.04909473657608032,
-0.016917601227760315,
0.011087187565863132,
0.016788778826594353,
0.06658823788166046,
-0.07601962238550186,
-0.018488483503460884,
0.009392728097736835,
0.035249654203653336,
0.031190115958452225,
-0.035588134080171585,
-0.012266566976904869,
0.04994732141494751,
0.026574231684207916,
0.022172383964061737,
0.016043810173869133,
0.0337604396045208,
0.009498783387243748,
0.007532227784395218,
0.030244285240769386,
0.03144976496696472,
0.011234696954488754,
-0.014415980316698551,
-0.052702803164720535,
-0.02169174700975418,
-0.013888667337596416,
-0.2746697962284088,
0.014332312159240246,
-0.03539736941456795,
-0.02080000936985016,
0.021644454449415207,
-0.021760130301117897,
-0.018634190782904625,
-0.009249508380889893,
-0.0037999688647687435,
0.029219718649983406,
0.0038613793440163136,
-0.03355645388364792,
-0.054094210267066956,
0.055658694356679916,
0.008161402307450771,
0.01611652970314026,
0.004314774181693792,
-0.038948044180870056,
-0.008429371751844883,
0.014199243858456612,
-0.014935547485947609,
-0.07455218583345413,
0.011577801778912544,
0.038597505539655685,
0.0024637870956212282,
0.047295838594436646,
-0.08480451256036758,
0.0240064337849617,
-0.05518917739391327,
-0.020476089790463448,
-0.011615537106990814,
-0.04970801621675491,
0.022191205993294716,
-0.02680552750825882,
-0.03519298508763313,
-0.05693938210606575,
0.015363197773694992,
-0.009201413951814175,
0.014963828027248383,
0.020520247519016266,
-0.027221357449889183,
-0.03206326439976692,
0.004079035948961973,
0.00039568610372953117,
0.07001639902591705,
-0.015340283513069153,
-0.054757870733737946,
-0.021937688812613487,
-0.008767236024141312,
0.06152811646461487,
-0.022886117920279503,
-0.027600403875112534,
-0.012905318289995193,
0.036607351154088974,
-0.0285973958671093,
-0.013347489759325981,
0.00532078742980957,
-0.025583822280168533,
-0.06708619743585587,
-0.014830629341304302,
0.011638566851615906,
-0.01998341828584671,
-0.06125115230679512,
-0.06059504300355911,
-0.020315051078796387,
-0.05140267312526703,
-0.07270222902297974,
-0.011791996657848358,
0.049187783151865005,
0.0006995310541242361,
-0.008606547489762306,
-0.015162774361670017,
-0.020447436720132828,
-0.1018809899687767,
-0.017686687409877777,
-0.018208026885986328,
-0.041819505393505096,
0.012174434028565884,
0.01417570747435093,
0.03420092910528183,
-0.039186831563711166,
-0.05388662591576576,
0.013332114554941654,
0.008409198373556137,
0.03006359003484249,
-0.00008974297088570893,
0.00957633275538683,
-0.012335294857621193,
-0.024083400145173073,
-0.0014250274980440736,
0.06397541612386703,
0.0005411261226981878,
0.0036932288203388453,
-0.03477628156542778,
0.02741524577140808,
0.02987152710556984,
-0.000335267570335418,
-0.008281825110316277,
0.031694602221250534,
0.04042482748627663,
0.04247578606009483,
-0.052523814141750336,
0.03293801471590996,
-0.00685185706242919,
-0.04064926505088806,
0.016603225842118263,
-0.054167188704013824,
0.032889265567064285,
0.03080936148762703,
0.034812696278095245,
-0.013818744570016861,
-0.040120113641023636,
0.0030274358578026295,
-0.06493041664361954,
-0.048428725451231,
0.0052360836416482925,
0.024778757244348526,
0.03194217383861542,
0.032283686101436615,
0.009302052669227123,
-0.04895239695906639,
0.029192427173256874,
0.002306486014276743,
0.006484295707195997,
-0.035114675760269165,
-0.007263630162924528,
-0.03493594378232956,
0.002063316060230136,
0.011228577233850956,
0.039624303579330444,
-0.005538636352866888,
0.030172521248459816,
0.04050087928771973,
-0.025150226429104805,
0.031348034739494324,
-0.025672966614365578,
-0.06015268340706825,
-0.029938606545329094,
-0.013697740621864796,
-0.0001096662090276368,
0.0279989130795002,
0.013439199887216091,
0.029059769585728645,
0.01788540557026863,
0.05462673678994179,
-0.006331336218863726,
0.05421966314315796,
-0.013829806819558144,
0.0032385829836130142,
-0.0006719309603795409,
0.001841156859882176,
-0.05047658458352089,
0.02227773331105709,
-0.02250620163977146,
0.010733318515121937,
-0.0016468529356643558,
0.026845259591937065,
-0.03600146621465683,
-0.04293913394212723,
-0.04787030071020126,
0.040158651769161224,
-0.053610630333423615,
-0.036412108689546585,
-0.003912222571671009,
-0.023098045960068703,
0.06184271350502968,
-0.010104900225996971,
0.017881600186228752,
-0.03547314554452896,
-0.009924099780619144,
0.015763062983751297,
0.019306175410747528,
-0.03682689741253853,
0.028221461921930313,
-0.030062489211559296,
0.020791921764612198,
0.006457159295678139,
-0.008637127466499805,
0.05991005524992943,
-0.0009219239582307637,
-0.028750356286764145,
0.016137294471263885,
0.010588981211185455,
0.016258642077445984,
0.02903147228062153,
-0.0016312357038259506,
-0.0023397752083837986,
0.03120199218392372,
-0.03221331164240837,
-0.02124866470694542,
-0.02271079458296299,
0.012843908742070198,
-0.04049122706055641,
0.033139221370220184,
-0.017579928040504456,
-0.05569219961762428,
0.006245963741093874,
0.008015325292944908,
-0.0004627832386177033,
0.008939978666603565,
0.01955644227564335,
-0.0375451035797596,
0.0005964706651866436,
-0.002933257259428501,
0.05926141142845154,
-0.03998812288045883,
0.007309145759791136,
0.004838165361434221,
0.059858035296201706,
0.027106979861855507,
0.02325315587222576,
-0.058914102613925934,
-0.012414113618433475,
-0.014087418094277382,
0.0041117058135569096,
-0.03538169339299202,
-0.035685647279024124,
-0.032173044979572296,
0.006742008496075869,
0.011397461406886578,
-0.02530783787369728,
0.0062067243270576,
-0.008915300481021404,
-0.04919726774096489,
-0.042323604226112366,
0.01103613805025816,
-0.035563383251428604,
-0.07086439430713654,
0.039349205791950226,
-0.026968801394104958,
0.03340985253453255,
-0.02989031933248043,
0.024113187566399574,
0.0123268011957407,
0.027695154771208763,
-0.012984870001673698,
-0.06182229891419411,
0.010738885961472988,
-0.045629892498254776,
0.07005413621664047,
0.0027081200387328863,
0.0036283473018556833,
-0.000042194416892016307,
0.009950172156095505,
-0.007485634181648493,
0.016469409689307213,
0.020177064463496208,
-0.03456662595272064,
0.015165163204073906,
-0.0029935440979897976,
-0.03282541036605835,
-0.004431284032762051,
-0.0018468322232365608,
-0.024481212720274925,
0.04051044210791588,
-0.015749989077448845,
-0.03075581230223179,
-0.02113984525203705,
-0.05668923258781433,
0.020072566345334053,
-0.01035943441092968,
-0.0008555127424187958,
-0.058808375149965286,
0.023046789690852165,
0.049617789685726166,
0.04223308339715004,
0.04003961384296417,
-0.04120597988367081,
0.02974831312894821,
-0.045616474002599716,
-0.011766431853175163,
-0.11048615723848343,
0.00511929951608181,
-0.002386366715654731,
-0.012724057771265507,
-0.022535353899002075,
0.0025927512906491756,
-0.001964007504284382,
0.07471643388271332,
-0.07709121704101562,
-0.040198009461164474,
0.05003490298986435,
0.005942787509411573,
0.01641680859029293,
0.042999427765607834,
-0.039270687848329544,
-0.002327808877453208,
0.02151580899953842,
-0.037060488015413284,
0.01590222865343094,
-0.011457070708274841,
0.02927253767848015,
-0.022389445453882217,
0.011281933635473251,
-0.007736767176538706,
0.004258839879184961,
0.0609222874045372,
0.011593818664550781,
0.019856110215187073,
0.07971594482660294,
-0.04696597158908844,
0.0404452309012413,
0.018315622583031654,
-0.00619847746565938,
-0.028234275057911873,
0.045725610107183456,
-0.006676157470792532,
-0.04774293303489685,
0.0640626773238182,
0.0013767379568889737,
-0.0032086975406855345,
-0.0654539242386818,
0.08004347234964371,
0.023544389754533768,
0.00027809306629933417,
-0.03814854100346565,
0.03361627086997032,
-0.04525667428970337,
0.016790971159934998,
0.006119431462138891,
-0.013350148685276508,
-0.004004128277301788,
0.05170971527695656,
-0.006109417416155338,
-0.0027992522809654474,
0.0565042719244957,
0.02165590040385723,
-0.04184826835989952,
0.002325151115655899,
0.09204330295324326,
0.0896216630935669,
0.041516147553920746,
-0.0032409592531621456,
0.061577439308166504,
-0.05663229897618294,
-0.038748376071453094,
0.006582011468708515,
-0.03224543482065201,
-0.0013600911479443312,
-0.02928965538740158,
0.03627510741353035,
0.07318023592233658,
-0.0025264578871428967,
0.05513866990804672,
-0.056391824036836624,
0.02499457448720932,
0.036410681903362274,
0.01410612091422081,
0.015497603453695774,
0.050153739750385284,
0.022758716717362404,
0.05947044864296913,
-0.02921554632484913,
-0.04462391883134842,
0.008210369385778904,
0.024643488228321075,
0.01235814206302166,
0.0038944915868341923,
0.00937645509839058,
0.0024745911359786987,
0.036681581288576126,
-0.0024645146913826466,
0.064399853348732,
-0.030789146199822426,
-0.03570597246289253,
-0.008417409844696522,
0.025044331327080727,
-0.029910806566476822,
-0.016450906172394753,
-0.01041466649621725,
-0.022127140313386917,
0.014651916921138763,
-0.03018983080983162,
-0.037366028875112534,
-0.019375335425138474,
-0.016764631494879723,
0.025603491812944412,
-0.01868523098528385,
0.034438397735357285,
0.011820257641375065,
-0.01329907774925232,
-0.06441754847764969,
-0.03946617618203163,
-0.04759316146373749,
-0.0647936761379242,
-0.07424717396497726,
0.05189085379242897,
0.00251746061258018,
-0.043706245720386505,
-0.006169904489070177,
-0.04024568200111389,
0.0015569360693916678,
-0.041946347802877426,
0.04156351462006569,
-0.015085390768945217,
-0.04825407266616821,
0.014688782393932343,
0.008716322481632233,
0.03456493467092514,
0.051329489797353745,
0.049918193370103836,
-0.007898161187767982,
0.024272464215755463,
-0.02106238715350628,
-0.027399029582738876,
0.04739348590373993,
0.03368193283677101,
0.004772135056555271,
-0.07730082422494888,
-0.008864850737154484,
0.026079270988702774,
0.03223744034767151,
-0.07969678938388824,
-0.006595829501748085,
0.024740120396018028,
-0.023247981444001198,
0.03351421281695366,
-0.026947584003210068,
-0.014827217906713486,
-0.03008858487010002,
-0.00930088758468628,
0.022790223360061646,
0.004311566706746817,
0.05287866294384003,
-0.039437368512153625,
0.06591396778821945,
0.023090843111276627,
-0.04082494601607323,
-0.02688737027347088,
0.012363359332084656,
-0.03265144303441048,
0.027963899075984955,
-0.0189337357878685,
-0.03447144478559494,
-0.03742114081978798,
-0.07501523196697235,
-0.012566007673740387,
-0.011798360385000706,
-0.006136361509561539,
-0.02276155911386013,
0.028671326115727425,
0.04380524158477783,
-0.07233120501041412,
0.04865912348031998,
-0.03165917098522186,
0.038271378725767136,
-0.02759893238544464,
-0.03616238385438919,
0.02237771451473236,
0.042295653373003006,
0.018187008798122406,
-0.004512595944106579,
0.04102911427617073,
-0.042501647025346756,
0.010528042912483215,
-0.032510824501514435,
0.030878709629178047,
0.013165879063308239,
0.00936076045036316,
0.031166013330221176
] | [
-0.08679483830928802,
-0.046203263103961945,
-0.002839408814907074,
-0.011614500544965267,
-0.022009236738085747,
0.013659936375916004,
-0.024566305801272392,
0.009080339223146439,
0.015609526075422764,
-0.025314461439847946,
0.00440866919234395,
-0.08523854613304138,
0.026646718382835388,
0.026737919077277184,
0.0209813229739666,
0.03045339323580265,
-0.054715897887945175,
-0.017121830955147743,
-0.01072920486330986,
0.019440295174717903,
0.035591356456279755,
-0.055263616144657135,
-0.01120641641318798,
-0.03782143443822861,
0.00018130864191334695,
0.07067457586526871,
0.016532408073544502,
-0.0418388731777668,
0.004367138724774122,
-0.23800338804721832,
-0.03389698266983032,
-0.024553805589675903,
0.022067368030548096,
-0.038496531546115875,
-0.022653358057141304,
0.03496028110384941,
-0.00574914226308465,
0.02837790735065937,
0.0044291322119534016,
0.05851199850440025,
0.061397187411785126,
0.07453639805316925,
-0.009800288826227188,
0.0025646178983151913,
-0.008394146338105202,
-0.014636642299592495,
-0.043183133006095886,
-0.009766394272446632,
0.021556641906499863,
0.04246540740132332,
-0.033037133514881134,
-0.010269341059029102,
0.007885010913014412,
0.009428239427506924,
0.03746023401618004,
0.042240239679813385,
0.019670164212584496,
0.054788194596767426,
0.005430936347693205,
-0.00538271851837635,
0.004684325307607651,
-0.028178127482533455,
-0.13928236067295074,
0.08327078819274902,
0.0135304881259799,
0.0322602279484272,
-0.010055656544864178,
-0.04069564491510391,
-0.055061694234609604,
0.09234817326068878,
-0.016827229410409927,
-0.01062300056219101,
-0.02961721085011959,
0.05234607681632042,
0.035728491842746735,
-0.08145156502723694,
-0.040622908622026443,
0.05575088411569595,
0.0791916623711586,
-0.026315076276659966,
-0.025150619447231293,
-0.03470741584897041,
0.019797639921307564,
0.029878880828619003,
0.0067175873555243015,
-0.0019152261083945632,
-0.011318651959300041,
0.049351997673511505,
0.013110465370118618,
-0.03529280051589012,
0.03455599397420883,
-0.03760303929448128,
-0.04060813784599304,
0.00497814966365695,
-0.058639418333768845,
-0.036419253796339035,
0.00813213549554348,
0.01750473491847515,
-0.02444210648536682,
0.3625934422016144,
-0.0021832433994859457,
0.019830258563160896,
0.03675520420074463,
0.0906667560338974,
-0.041206199675798416,
-0.016765480861067772,
0.0032888620626181364,
-0.03354618325829506,
-0.0002438783267280087,
-0.02153816446661949,
-0.025316957384347916,
-0.027817174792289734,
0.053454697132110596,
-0.03199908509850502,
-0.0024502058513462543,
-0.02305760607123375,
0.03835131600499153,
0.015512284822762012,
-0.024537572637200356,
0.027718400582671165,
-0.016634732484817505,
0.03589239716529846,
0.042421791702508926,
0.01916658692061901,
0.005793204065412283,
0.023942479863762856,
-0.006083768792450428,
0.05045799911022186,
0.034698087722063065,
0.06829666346311569,
0.05334143713116646,
-0.03400270268321037,
-0.033455993980169296,
-0.01224388275295496,
-0.0015868386253714561,
0.001238955999724567,
0.036165039986371994,
-0.047155339270830154,
0.03546902909874916,
0.01890992932021618,
-0.03249397128820419,
0.0009966528741642833,
0.05900341644883156,
-0.016795216128230095,
-0.010413228534162045,
0.12803219258785248,
-0.004075363744050264,
-0.039872199296951294,
-0.030978644266724586,
-0.05588318035006523,
0.02333555370569229,
0.06553542613983154,
0.004419682547450066,
-0.07659415155649185,
-0.014458720572292805,
0.041700877249240875,
0.047872405499219894,
-0.02008100599050522,
-0.041360825300216675,
0.005099404137581587,
-0.045844946056604385,
0.00014876906061545014,
-0.05340685322880745,
0.07362029701471329,
0.01080993004143238,
-0.08754133433103561,
-0.03264864161610603,
0.023497778922319412,
-0.003859588410705328,
-0.07699007540941238,
-0.026118498295545578,
0.02078338712453842,
-0.013395226560533047,
0.023374292999505997,
0.0887729749083519,
-0.005939260125160217,
-0.07476150989532471,
0.011378331109881401,
0.020034873858094215,
0.03887108340859413,
0.0018329732120037079,
-0.009111138060688972,
-0.010808940045535564,
-0.005186162889003754,
-0.04884384945034981,
-0.042465973645448685,
-0.06798505783081055,
0.01247957069426775,
-0.010943669825792313,
-0.024920165538787842,
-0.021893560886383057,
-0.010118376463651657,
-0.03519859164953232,
0.04236283525824547,
-0.02945087105035782,
-0.015722952783107758,
0.018921900540590286,
0.00501711992546916,
0.019528711214661598,
0.011395798064768314,
0.051024653017520905,
0.017736097797751427,
-0.019265785813331604,
0.014904509298503399,
-0.08897457271814346,
-0.010398920625448227,
0.03224429488182068,
-0.06854769587516785,
0.045460060238838196,
0.05830227956175804,
-0.02345350943505764,
-0.032142993062734604,
-0.03715121001005173,
-0.02022487297654152,
0.025039641186594963,
-0.03938065841794014,
0.04171522706747055,
0.0025231936015188694,
-0.01515966560691595,
0.03557485714554787,
0.02314174547791481,
-0.08479055017232895,
-0.05325836315751076,
-0.3212205171585083,
-0.06299612671136856,
-0.014831739477813244,
-0.007440075743943453,
-0.015630492940545082,
-0.10678467899560928,
-0.007596502546221018,
-0.010936154052615166,
-0.04199184849858284,
0.038360532373189926,
0.09491933137178421,
-0.030673017725348473,
-0.028325168415904045,
-0.07839100807905197,
-0.04413694888353348,
0.006695091724395752,
-0.023453688248991966,
-0.015146322548389435,
-0.05493227392435074,
-0.00289675360545516,
-0.001293706358410418,
0.011884121224284172,
-0.0284033864736557,
-0.08422056585550308,
-0.0330408439040184,
-0.021042944863438606,
0.1532459408044815,
-0.010104374028742313,
0.07226401567459106,
-0.07001607120037079,
0.0768548995256424,
-0.01898665726184845,
0.013101378455758095,
0.016575777903199196,
-0.015348211862146854,
-0.015675919130444527,
0.024608388543128967,
-0.0038404439110308886,
0.042357876896858215,
-0.017985332757234573,
-0.06301447004079819,
0.0056408061645925045,
-0.018538564443588257,
0.0024242396466434,
-0.010744722560048103,
0.039364829659461975,
-0.018124373629689217,
-0.07103420048952103,
0.017617980018258095,
0.011272285133600235,
0.014283308759331703,
0.007819089107215405,
0.008938911370933056,
-0.007768456358462572,
0.014053390361368656,
0.021799392998218536,
-0.015824465081095695,
-0.0464237742125988,
-0.011522007174789906,
-0.026945872232317924,
-0.03158134967088699,
0.05661617964506149,
0.04094246029853821,
-0.009220300242304802,
0.03341393545269966,
0.05311752110719681,
-0.011875595897436142,
-0.011933798901736736,
0.02184947021305561,
-0.0065957410261034966,
-0.008312118239700794,
0.10039959102869034,
0.024567505344748497,
0.046804990619421005,
0.07426054030656815,
0.02410120517015457,
-0.0018370322650298476,
0.08677228540182114,
0.06744037568569183,
-0.0037064822390675545,
0.023961322382092476,
-0.029371237382292747,
0.04079316183924675,
-0.010255570523440838,
0.024267597123980522,
0.007709703873842955,
-0.028060678392648697,
0.02660350129008293,
-0.011706415563821793,
-0.00965229980647564,
-0.0011737752938643098,
0.04472604766488075,
-0.010560049675405025,
-0.022419381886720657,
0.041792791336774826,
0.0001596618676558137,
-0.256096750497818,
0.03435158357024193,
0.05795882269740105,
0.02089063823223114,
-0.017543649300932884,
0.021573850885033607,
0.03249947726726532,
0.005839022807776928,
0.015117094852030277,
-0.03378179296851158,
0.026861172169446945,
0.061056725680828094,
0.06846658885478973,
0.013251690194010735,
0.004355412907898426,
-0.006320105865597725,
0.055956289172172546,
0.0010064791422337294,
-0.0022481833584606647,
0.005457778461277485,
0.057167328894138336,
-0.03107086941599846,
0.21143384277820587,
0.03606097400188446,
0.006592136342078447,
-0.0028592876624315977,
-0.019193019717931747,
-0.02098311297595501,
0.043564919382333755,
0.044160835444927216,
-0.0202445387840271,
-0.031624674797058105,
0.07069519907236099,
-0.015919439494609833,
0.07822845876216888,
-0.016606826335191727,
0.007934543304145336,
0.048673782497644424,
0.0021516219712793827,
-0.04400458559393883,
-0.04705236852169037,
0.011164909228682518,
-0.027122873812913895,
0.04393496736884117,
0.06632796674966812,
0.0004573580517899245,
0.010388050228357315,
-0.025531316176056862,
-0.042987845838069916,
0.03370354697108269,
-0.025853240862488747,
-0.019864950329065323,
-0.020519433543086052,
-0.013528292998671532,
0.017619991675019264,
0.05761091411113739,
-0.016985995694994926,
-0.06380406022071838,
-0.06642797589302063,
0.017894426360726357,
0.008714046329259872,
-0.026964426040649414,
0.09383086860179901,
-0.07270751893520355,
0.02902839705348015
] | [
0.008222872391343117,
0.03097585402429104,
-0.01728149875998497,
0.03376913070678711,
-0.01826574094593525,
-0.014382208697497845,
0.006843143608421087,
-0.0019343921449035406,
-0.0493815578520298,
0.02921169251203537,
-0.03319011628627777,
0.02087579295039177,
-0.018444040790200233,
0.004106411710381508,
-0.018736593425273895,
0.022999899461865425,
0.024267079308629036,
0.032942596822977066,
0.02620816044509411,
-0.019648917019367218,
-0.01953977905213833,
0.0016215642681345344,
0.010447234846651554,
0.012859965674579144,
0.009903828613460064,
-0.00918018352240324,
-0.00692810257896781,
0.0037163880188018084,
0.02478845790028572,
-0.11367624253034592,
-0.012032260186970234,
-0.03183712065219879,
-0.038525454699993134,
0.014178412035107613,
-0.030751675367355347,
0.03617846220731735,
-0.031074678525328636,
-0.009889837354421616,
0.011523706838488579,
-0.03199809044599533,
0.022632170468568802,
0.015559826977550983,
-0.025105532258749008,
-0.02957390621304512,
-0.012463758699595928,
-0.04297306016087532,
-0.02160441130399704,
-0.017655648291110992,
-0.006558480206876993,
0.016386568546295166,
-0.04775801673531532,
-0.008803591132164001,
0.013892806135118008,
-0.01646907441318035,
0.07105343043804169,
-0.011341297999024391,
-0.039415501058101654,
-0.04434458166360855,
-0.0032077396754175425,
-0.02387435920536518,
0.010160352103412151,
-0.03571943938732147,
-0.07006107270717621,
-0.043038904666900635,
-0.04353690147399902,
-0.016938621178269386,
-0.007027738727629185,
-0.0076508005149662495,
0.0020590664353221655,
-0.0003915643028449267,
0.023235410451889038,
0.02066648378968239,
-0.035569146275520325,
-0.004724839236587286,
-0.014639142900705338,
-0.01213554386049509,
0.030440641567111015,
-0.004738643765449524,
0.026094242930412292,
0.003026460064575076,
-0.0013880754122510552,
0.009038416668772697,
0.04495473951101303,
0.0231219120323658,
0.012701300904154778,
-0.027361109852790833,
0.004096250981092453,
0.023298760876059532,
0.06335210800170898,
-0.0223305094987154,
-0.021955229341983795,
0.04352870211005211,
0.0020086849108338356,
0.06358149647712708,
-0.09306739270687103,
-0.008030785247683525,
-0.004130532965064049,
0.00045821169624105096,
-0.008877666667103767,
0.7934368848800659,
-0.03876597434282303,
0.012903978116810322,
0.06407873332500458,
0.05016752704977989,
-0.014342675916850567,
0.020911261439323425,
0.05221924930810928,
0.028630686923861504,
-0.01593356393277645,
-0.032711829990148544,
0.005048737861216068,
-0.018159881234169006,
0.021418699994683266,
0.02545027621090412,
0.01569594256579876,
-0.007475303485989571,
0.02182706445455551,
-0.010104527696967125,
-0.014501224271953106,
-0.013117020018398762,
0.009265581145882607,
-0.026964357122778893,
0.025524288415908813,
0.033959027379751205,
0.0012337231310084462,
-0.18832944333553314,
-0.01467451173812151,
-7.355096805769854e-33,
0.023827562108635902,
-0.002175321336835623,
-0.013700873591005802,
0.013696237467229366,
0.05997496843338013,
0.0027884964365512133,
0.05273852497339249,
0.007642611861228943,
0.006935775745660067,
0.003872315399348736,
-0.03975032642483711,
-0.010394632816314697,
-0.028821216896176338,
-0.021135251969099045,
0.029907669872045517,
-0.0334920659661293,
0.013919714838266373,
0.038266655057668686,
0.013734650798141956,
-0.03291120007634163,
0.04110101982951164,
0.01364150270819664,
0.004163017030805349,
-0.011879818513989449,
0.038720883429050446,
-0.011345217004418373,
0.012179296463727951,
-0.01827659085392952,
0.01739884912967682,
-0.04700516536831856,
0.031171031296253204,
0.020846545696258545,
-0.024742726236581802,
-0.013414301909506321,
0.03606722876429558,
-0.014022953808307648,
0.041101086884737015,
0.01649630255997181,
-0.01420564204454422,
0.01597706228494644,
-0.04454834759235382,
0.011007333174347878,
-0.012918041087687016,
0.017258774489164352,
-0.01020008698105812,
-0.03674833104014397,
0.014033498242497444,
0.06009006127715111,
0.006998654920607805,
0.033232882618904114,
-0.010695121251046658,
0.05994700640439987,
0.0009302740218117833,
-0.020092567428946495,
0.00041637863614596426,
-0.016255777329206467,
0.011058158241212368,
0.03647947683930397,
0.018264906480908394,
0.04936710372567177,
0.04116633161902428,
-0.011668957769870758,
-0.009163540787994862,
0.04591435566544533,
-0.024758657440543175,
0.0020036823116242886,
0.0056730336509644985,
0.01824861206114292,
0.004092876333743334,
0.021123675629496574,
-0.06396680325269699,
-0.003989111632108688,
-0.007355945650488138,
-0.02133023552596569,
0.07252135127782822,
-0.05678520351648331,
-0.05792611464858055,
-0.04302389919757843,
0.002199973678216338,
0.011660692282021046,
-0.011354001238942146,
-0.011392396874725819,
-0.000395934417610988,
0.001080517191439867,
-0.010336460545659065,
0.006796371657401323,
0.03452233597636223,
-0.004938527941703796,
0.004225186072289944,
0.01491563394665718,
0.021477606147527695,
-0.0036603582557290792,
-0.0006580410990864038,
0.03292208909988403,
-0.021680494770407677,
7.436881825228315e-33,
-0.03318112716078758,
0.007083254866302013,
-0.024981362745165825,
0.01689361035823822,
-0.03382714465260506,
-0.012368431314826012,
0.07180159538984299,
-0.02724175713956356,
0.014798440039157867,
0.03384611755609512,
-0.005142733920365572,
0.04009295254945755,
-0.022092558443546295,
0.008584529161453247,
0.0649857297539711,
-0.062296755611896515,
0.0027056557592004538,
-0.011184503324329853,
-0.00795835629105568,
-0.006864359602332115,
-0.020640995353460312,
0.00046377285616472363,
-0.029925810173153877,
-0.03244872763752937,
0.024367667734622955,
0.07737971097230911,
0.041372302919626236,
-0.018222667276859283,
-0.03663744032382965,
0.056029465049505234,
0.014012168161571026,
-0.02819826826453209,
0.01814023032784462,
-0.020775824785232544,
0.03593121096491814,
0.06486476212739944,
-0.02433951199054718,
-0.01993056759238243,
0.025085145607590675,
-0.017809448763728142,
0.042493581771850586,
-0.02561086229979992,
0.01865331642329693,
0.04759593680500984,
-0.02278873324394226,
0.00010942277003778145,
-0.0003743369015865028,
-0.011445579119026661,
-0.018962452188134193,
-0.001367094460874796,
0.018465504050254822,
0.011819212697446346,
0.002329494571313262,
0.008410709910094738,
0.03719933703541756,
0.013335539028048515,
-0.03368264436721802,
0.02923613414168358,
0.0006752758054062724,
-0.030293865129351616,
-0.02597515471279621,
-0.0061861248686909676,
-0.01665910705924034,
0.038665760308504105,
0.005759224761277437,
0.02188788540661335,
-0.05528214946389198,
-0.07859291136264801,
0.004693989641964436,
0.040894027799367905,
-0.03782089054584503,
0.004525539465248585,
-0.04267963767051697,
0.05442533642053604,
-0.011354353278875351,
-0.0350613035261631,
0.01202014833688736,
0.042589060962200165,
-0.008855274878442287,
0.018638383597135544,
0.04101554676890373,
-0.0011157657718285918,
0.021174848079681396,
-0.06315091252326965,
-0.007962173782289028,
-0.012440694496035576,
-0.00883305910974741,
0.020463617518544197,
0.0013240104308351874,
0.0369449146091938,
0.039769552648067474,
-0.024722568690776825,
-0.00011823778186226264,
-0.0029910102020949125,
-0.018551619723439217,
-1.2470559695998418e-8,
-0.040601860731840134,
0.013856442645192146,
-0.02764894813299179,
-0.00431268522515893,
0.03952545300126076,
-0.0032383401412516832,
-0.00686455937102437,
-0.015175042673945427,
-0.04212528467178345,
0.043514639139175415,
0.04172946885228157,
0.028529047966003418,
-0.010314784944057465,
0.03725256770849228,
0.007511121220886707,
-0.05088512599468231,
0.01338383462280035,
-0.034868571907281876,
0.01219404861330986,
-0.015689047053456306,
-0.03793657198548317,
0.05222266912460327,
-0.00517673185095191,
-0.0006017558625899255,
-0.010174201801419258,
-0.058608777821063995,
0.0005861326353624463,
-0.0843033716082573,
0.008395541459321976,
0.016822343692183495,
-0.020034587010741234,
-0.012507123872637749,
-0.00711805047467351,
0.0726843997836113,
-0.033050816506147385,
0.016633955761790276,
0.00007271618960658088,
0.023840095847845078,
0.03511479124426842,
0.01249143946915865,
-0.04236029088497162,
0.0001802832557586953,
0.017195209860801697,
-0.018690109252929688,
0.004002941772341728,
-0.0060051726177334785,
-0.0441766083240509,
-0.00986022874712944,
0.027747085317969322,
-0.040218040347099304,
0.005627237726002932,
-0.009167371317744255,
0.025902440771460533,
-0.0037867927458137274,
0.028906773775815964,
-0.031422775238752365,
-0.006892831064760685,
-0.070726677775383,
-0.016627328470349312,
0.03520340099930763,
0.00031471726833842695,
0.01089642383158207,
-0.028042415156960487,
-0.05287807434797287
] | haskell-memoization-using-the-power-of-laziness | https://markhneedham.com/blog/2012/03/24/haskell-memoization-using-the-power-of-laziness |
false | 2012-03-24 00:40:34 | Saving the values of dynamically populated dropdown on back button | [
"software-development"
] | [
"Software Development"
] | We wanted to be able to retain the value of a drop down menu that was being dynamically populated (via an AJAX call) when the user hit the back button but the AJAX request re-runs when we go hit back therefore losing our selection.
Our initial thinking was that we might be able to store the value of the dropdown in a hidden field and then restore it into the dropdown using jQuery on page load but that approach didn't work since hidden fields don't seem to retain their values when you hit back.
Another approach would be to update the URL with a new # value on each change of the dropdown and then parse the URL on page load to figure out which value should be selected.
That would probably work but it seemed a bit too complicated.
Eventually we realised that we could create an extra text box, 'hide' it by use of 'display:none' in our CSS and then copy the dropdown value into that every time it changed.
We ended up with code something like this to capture the selected value:
[source,javascript]
----
$("#dropdown-menu").live('change', function() {
$("#hidden-field').val($(this).val());
});
----
And then we populated the dropdown with the saved value on the callback from the AJAX call:
[source,javascript]
----
$.ajax({
url: 'url/to/populate_dropdown',
success: function(data) {
$("#dropdown-menu").html(data);
$("#dropdown-menu").val($("#hidden-field").val());
}
});
----
It seems to work pretty well and it's a simple technique as well so it worked in all the browsers that we tested it in. | null | null | [
-0.030893474817276,
-0.024332409724593163,
-0.0007291885558515787,
0.03855627402663231,
0.07436569780111313,
-0.018485847860574722,
-0.0192008838057518,
0.03595156595110893,
0.004609761759638786,
-0.02956479787826538,
-0.026177670806646347,
0.04620283469557762,
-0.01479958277195692,
-0.007173608522862196,
0.003362827468663454,
0.05889588221907616,
0.09577633440494537,
-0.0052358368411660194,
0.01920734904706478,
-0.010406806133687496,
-0.010079937987029552,
0.05410447716712952,
-0.01946064457297325,
0.02335333824157715,
0.0689924955368042,
-0.013332292437553406,
-0.013922397047281265,
-0.0037093963474035263,
-0.04710734635591507,
0.007335576694458723,
0.013414185494184494,
0.02405564859509468,
0.0046529620885849,
-0.008381816558539867,
-0.02699374035000801,
-0.03659072145819664,
0.027100181207060814,
-0.0007343144970946014,
0.00559367798268795,
0.04196307808160782,
-0.08670851588249207,
0.015764426440000534,
-0.003788501024246216,
0.014824158512055874,
-0.0085706552490592,
-0.01706152968108654,
-0.021483590826392174,
0.0036205837968736887,
-0.01937253586947918,
-0.019867537543177605,
-0.05003640800714493,
0.021421177312731743,
-0.012414876371622086,
-0.0006944373599253595,
-0.009000243619084358,
0.0662393644452095,
0.008098538033664227,
-0.03442757576704025,
0.008554287254810333,
-0.08024033904075623,
0.002091497415676713,
0.05103721469640732,
0.04171406477689743,
0.057740144431591034,
0.007969290018081665,
-0.02958935871720314,
0.038467053323984146,
0.03774986416101456,
-0.03143354505300522,
-0.010286075063049793,
-0.017081644386053085,
0.016749722883105278,
-0.012195480987429619,
-0.008940336294472218,
0.02439645491540432,
-0.04301653057336807,
-0.04152451083064079,
0.06432339549064636,
-0.03007698617875576,
0.05509725585579872,
-0.010839005932211876,
0.0040856655687093735,
0.019751522690057755,
0.0201222263276577,
0.024593504145741463,
-0.059056028723716736,
-0.06708764284849167,
0.005286711733788252,
-0.04646920785307884,
0.030094623565673828,
0.008623502217233181,
-0.04334419593214989,
0.029610535129904747,
0.02040519006550312,
0.034408945590257645,
0.02612510323524475,
-0.006454492919147015,
-0.011525320820510387,
-0.0021493874955922365,
-0.029685283079743385,
-0.05384858325123787,
0.013066551648080349,
0.0283835306763649,
-0.03211739659309387,
-0.09172556549310684,
-0.006565113086253405,
-0.03190462291240692,
0.01232543122023344,
-0.018762024119496346,
-0.004772522486746311,
-0.03925948962569237,
-0.00852278433740139,
-0.038310546427965164,
0.013533912599086761,
-0.049794841557741165,
0.026054639369249344,
0.01687420904636383,
0.04140811786055565,
-0.010565198957920074,
0.023815827444195747,
0.041590768843889236,
-0.005650753621011972,
-0.020876049995422363,
0.06701391935348511,
0.035345982760190964,
0.0011825083056464791,
0.0007427593809552491,
0.015568186528980732,
-0.03667326271533966,
-0.06720665097236633,
0.004058347549289465,
0.041686758399009705,
-0.04760515317320824,
-0.010655248537659645,
0.012989487498998642,
-0.02741207741200924,
-0.00008296736632473767,
0.012117026373744011,
0.05052505061030388,
0.02265792340040207,
-0.03759593144059181,
-0.02626395784318447,
-0.000050341910537099466,
0.005564657039940357,
0.054614923894405365,
0.024758068844676018,
0.009315870702266693,
-0.04569391533732414,
-0.01713186502456665,
0.05096209794282913,
0.04181445389986038,
-0.014009499922394753,
0.05769387260079384,
-0.016260676085948944,
-0.01051532756537199,
0.06972678750753403,
0.013091960921883583,
-0.03930596262216568,
-0.008666306734085083,
0.035078778862953186,
0.06537211686372757,
0.014624003320932388,
0.021942662075161934,
0.054653193801641464,
0.021185653284192085,
-0.008381886407732964,
-0.0023194579407572746,
0.06408189982175827,
0.008487037383019924,
-0.00333426333963871,
-0.08037232607603073,
-0.015816614031791687,
0.054498378187417984,
-0.04967706277966499,
-0.00413689436390996,
0.0720062330365181,
0.05566870793700218,
0.009725172072649002,
0.027192378416657448,
0.017352625727653503,
-0.061488546431064606,
0.0012338737724348903,
0.033943112939596176,
0.01767118275165558,
0.03458685800433159,
0.012438878417015076,
0.040911752730607986,
0.04190715774893761,
0.0290159173309803,
0.013659010641276836,
-0.06323199719190598,
-0.058911096304655075,
-0.07661183178424835,
0.0017692907713353634,
0.05871189013123512,
-0.04337240010499954,
-0.016304001212120056,
0.09402811527252197,
0.03735283017158508,
0.06210562214255333,
0.02145252749323845,
-0.057012077420949936,
0.008437377400696278,
-0.017790820449590683,
-0.01216710451990366,
-0.010252510197460651,
0.06788831949234009,
-0.016837619245052338,
-0.02871488407254219,
0.024324309080839157,
-0.04629632085561752,
0.04076376557350159,
0.023379141464829445,
-0.011730524711310863,
0.0641220211982727,
0.015367572195827961,
0.01882725954055786,
-0.02413824386894703,
0.03792651370167732,
-0.03430097922682762,
0.08155426383018494,
0.03773390129208565,
0.008764238096773624,
-0.01920851692557335,
0.011958225630223751,
0.12333758175373077,
0.057487811893224716,
0.005601712968200445,
-0.03723256662487984,
0.018252847716212273,
0.003630314953625202,
-0.04677082598209381,
-0.020565811544656754,
-0.003990355413407087,
0.008542723022401333,
-0.02214406244456768,
-0.03938206285238266,
-0.018485192209482193,
-0.019196968525648117,
-0.04157961905002594,
0.047152042388916016,
0.04684135690331459,
0.0005960508715361357,
0.03994998708367348,
-0.011823892593383789,
-0.01154326368123293,
0.03171565756201744,
0.019407380372285843,
-0.02122788317501545,
-0.01818225346505642,
0.04696211591362953,
0.002452538115903735,
0.048372965306043625,
-0.027644066140055656,
-0.014568628743290901,
-0.03759227693080902,
-0.009447344578802586,
-0.0036024677101522684,
0.013610596768558025,
0.05184941738843918,
0.0051062339916825294,
0.05055633559823036,
0.003482456784695387,
0.04132154583930969,
-0.03269068896770477,
-0.07616768777370453,
-0.013430115766823292,
0.01244033221155405,
0.0036170172970741987,
0.04767457768321037,
0.011425938457250595,
-0.035339582711458206,
-0.0048844763077795506,
-0.02265581116080284,
-0.021661432459950447,
0.007518005091696978,
-0.01344802975654602,
0.005200707819312811,
-0.00448415894061327,
-0.023697543889284134,
-0.003590930253267288,
0.05160186439752579,
-0.050267115235328674,
-0.07921285182237625,
0.00004909887138637714,
-0.04907518997788429,
0.018567362800240517,
-0.05805867537856102,
-0.050680093467235565,
0.0021821793634444475,
0.01425664871931076,
-0.0131601607427001,
-0.01191658340394497,
0.06708153337240219,
0.06809365004301071,
-0.002544057322666049,
0.0003578710020519793,
0.04225403815507889,
0.014523309655487537,
0.04254673048853874,
-0.023793917149305344,
-0.024567509070038795,
0.05387946590781212,
-0.0057624271139502525,
0.004814744461327791,
-0.033379629254341125,
0.039063893258571625,
-0.006721006706357002,
-0.26825961470603943,
0.029426487162709236,
0.020797444507479668,
-0.04284268245100975,
0.028456369414925575,
-0.02922430820763111,
-0.010293319821357727,
-0.039951764047145844,
0.01049982663244009,
0.020425843074917793,
-0.009427186101675034,
-0.03365273028612137,
-0.02928515523672104,
0.052089396864175797,
-0.02473357506096363,
0.030693626031279564,
0.04914238303899765,
-0.026088600978255272,
-0.0019657486118376255,
0.014404535293579102,
-0.023041727021336555,
-0.0936441496014595,
0.03161100298166275,
0.10519059002399445,
0.023980125784873962,
0.07066519558429718,
-0.04938739538192749,
0.01973016932606697,
-0.039113715291023254,
-0.005693403538316488,
0.030288295820355415,
-0.020662056282162666,
0.03754675015807152,
0.006683927960693836,
-0.03872453793883324,
-0.019943758845329285,
0.0679725855588913,
-0.004234928637742996,
0.004319357685744762,
0.00978231430053711,
-0.052108533680438995,
-0.01594236120581627,
-0.024750499054789543,
0.000006250675141927786,
0.06446542590856552,
-0.03917227312922478,
-0.05135602876543999,
0.02430943213403225,
-0.05128345638513565,
0.043120577931404114,
0.041321270167827606,
-0.037562210112810135,
-0.032508525997400284,
0.0299454964697361,
-0.010332444682717323,
0.027679219841957092,
0.005711236037313938,
0.0012517896248027682,
-0.020274147391319275,
-0.043897561728954315,
0.013049118220806122,
-0.020092377439141273,
-0.021675530821084976,
-0.016555216163396835,
0.038126859813928604,
-0.06664136797189713,
-0.04164479672908783,
0.008951656520366669,
0.06789304316043854,
0.06740443408489227,
-0.029930071905255318,
-0.00166782783344388,
-0.03750811144709587,
-0.09479223191738129,
0.0032480349764227867,
-0.026053614914417267,
0.006024451460689306,
-0.02226940356194973,
-0.03911549225449562,
0.008545057848095894,
-0.03608919307589531,
-0.02399253472685814,
0.03969990834593773,
-0.02233722433447838,
-0.015109388157725334,
-0.0053433580324053764,
0.03545147180557251,
0.023229125887155533,
-0.01089581660926342,
-0.018631156533956528,
0.08952667564153671,
-0.028231842443346977,
0.0037071185652166605,
-0.03650682047009468,
-0.00106973631773144,
0.06012430787086487,
0.0044416687451303005,
-0.023487836122512817,
0.0365682989358902,
0.0037653790786862373,
0.05383903905749321,
-0.028149690479040146,
0.031887806951999664,
-0.03157613426446915,
0.005927481222897768,
-0.021462786942720413,
-0.046366579830646515,
0.027532320469617844,
-0.025732040405273438,
0.00008049475582083687,
-0.041688475757837296,
-0.012456014752388,
-0.03405502438545227,
-0.0606561042368412,
0.005772537551820278,
0.0029448748100548983,
-0.002485336037352681,
-0.02388629876077175,
0.0028795248363167048,
-0.05827310308814049,
-0.06294675916433334,
0.02953665517270565,
0.02309206873178482,
-0.020929114893078804,
-0.03475756198167801,
-0.056446731090545654,
-0.020008204504847527,
0.0016538053750991821,
0.004681181628257036,
-0.016012167558073997,
0.03362911194562912,
0.016629593446850777,
-0.007364651188254356,
0.011727371253073215,
0.022274088114500046,
-0.009392828680574894,
0.02442084439098835,
0.006211340427398682,
-0.006604962982237339,
-0.02311868406832218,
-0.017258336767554283,
-0.006810507271438837,
-0.01644805073738098,
-0.0023907425347715616,
0.03482963889837265,
0.0127885015681386,
-0.009691528044641018,
0.027353523299098015,
0.0012231057044118643,
0.01703944243490696,
-0.012938941828906536,
-0.0754065215587616,
-0.023703591898083687,
-0.029070913791656494,
-0.039594825357198715,
-0.038206592202186584,
0.020923934876918793,
0.008759993128478527,
-0.002312516560778022,
-0.02014586329460144,
-0.027375273406505585,
-0.050562016665935516,
-0.025767337530851364,
0.004391325172036886,
-0.04686513543128967,
0.015314582735300064,
0.024644678458571434,
0.000054414656915469095,
0.03234076872467995,
0.003893969813361764,
-0.01131050568073988,
-0.006127392873167992,
-0.03918033838272095,
-0.017985332757234573,
0.008027052506804466,
-0.029120802879333496,
-0.00337287993170321,
-0.03526409715414047,
0.00562714971601963,
0.02064514346420765,
0.03796388953924179,
-0.02908354252576828,
0.04946494102478027,
0.025363462045788765,
0.04580686241388321,
-0.04758656769990921,
-0.039249882102012634,
0.0083625428378582,
0.0032031252048909664,
-0.03312345966696739,
-0.06232622265815735,
-0.03320550173521042,
-0.03571895509958267,
-0.018903931602835655,
-0.020687079057097435,
-0.057948075234889984,
-0.002587065566331148,
0.0006182020879350603,
0.007373213768005371,
0.04495169222354889,
-0.039900824427604675,
-0.009761813096702099,
-0.02278800867497921,
0.04553988575935364,
0.03646412119269371,
-0.04355793446302414,
0.007635045796632767,
0.016005266457796097,
0.005564493592828512,
-0.0023612205404788256,
-0.011525474488735199,
-0.04242490977048874,
-0.03743470460176468,
-0.03569245710968971,
0.0067698233760893345,
-0.008646599017083645,
-0.04808694124221802,
-0.04175253584980965,
-0.004897517617791891,
-0.005714914295822382,
0.00008916066872188821,
-0.0027553103864192963,
0.0027113391552120447,
-0.005699836649000645,
-0.014724940061569214,
0.02352411113679409,
0.006414992734789848,
-0.013157307170331478,
0.02693968638777733,
-0.0072065694257617,
0.035604894161224365,
-0.01644226722419262,
0.04480941221117973,
0.01961616612970829,
-0.020920587703585625,
-0.014302724041044712,
-0.03294437378644943,
-0.015255218371748924,
-0.0069265831261873245,
0.07501863688230515,
-0.015311338007450104,
-0.014445807784795761,
-0.032073453068733215,
0.020590312778949738,
-0.02046067826449871,
-0.01517762802541256,
-0.01620052009820938,
-0.0557415746152401,
0.04097767546772957,
0.05301216244697571,
0.04953647777438164,
0.011231801472604275,
0.01241226214915514,
-0.010346739552915096,
0.030639395117759705,
-0.08612752705812454,
-0.026900969445705414,
-0.02724635601043701,
-0.04106046259403229,
0.014405622147023678,
0.03709559515118599,
0.058047834783792496,
-0.049320124089717865,
0.05087338760495186,
0.020751751959323883,
-0.00800374336540699,
0.005721988156437874,
-0.009123020805418491,
0.05520125478506088,
-0.03933676704764366,
0.018315337598323822,
-0.075051449239254,
-0.013578247278928757,
0.02654898911714554,
0.02403240278363228,
-0.013034697622060776,
-0.007517888210713863,
-0.047019343823194504,
0.028595207259058952,
-0.06055136397480965,
-0.038829099386930466,
0.049143463373184204,
0.04819471016526222,
-0.02347235381603241,
-0.009489099495112896,
-0.07375168055295944,
0.0367291234433651,
0.05123399943113327,
-0.030670417472720146,
-0.011157235130667686,
-0.03672793135046959,
0.05380340665578842,
0.021723201498389244,
-0.019132638350129128,
-0.0444403737783432,
0.005168568342924118,
0.04004212096333504,
0.010808887891471386,
0.013294185511767864,
0.053832635283470154,
-0.00870431587100029,
0.014994550496339798,
0.027166344225406647,
0.0165012925863266,
-0.01565721444785595,
0.053886253386735916,
0.020683934912085533,
-0.06690511107444763,
-0.013158893212676048,
0.0508388914167881,
0.0211191289126873,
-0.060886260122060776,
0.03569667786359787,
0.027480758726596832,
0.00972158182412386,
-0.023078512400388718,
-0.027452286332845688,
-0.021872449666261673,
-0.007652588654309511,
-0.01876154914498329,
-0.009198017418384552,
-0.0054533882066607475,
0.06728316843509674,
0.002722507808357477,
-0.007151796016842127,
0.04713597148656845,
0.007298495154827833,
0.007760524284094572,
-0.02359229326248169,
0.05381735786795616,
0.06622916460037231,
0.07190632820129395,
0.016776911914348602,
0.051364414393901825,
0.009346198290586472,
-0.07499771565198898,
-0.0027702488005161285,
-0.05097174644470215,
-0.006851638667285442,
-0.02323862910270691,
-0.037312667816877365,
0.06801626831293106,
0.016765877604484558,
0.03450460731983185,
-0.003510138252750039,
0.0031936364248394966,
0.018018139526247978,
0.021779218688607216,
0.00985109992325306,
0.035101354122161865,
0.02226789854466915,
0.022173788398504257,
0.002039905171841383,
-0.009467924013733864,
0.03126343712210655,
-0.009114516898989677,
-0.036477845162153244,
0.015623776242136955,
0.006276789121329784,
0.02875557169318199,
0.02454332821071148,
0.05730108171701431,
0.06489799171686172,
-0.030076028779149055,
0.004171393346041441,
0.006979696452617645,
0.0256411861628294,
-0.00366155500523746,
0.020103439688682556,
0.022115273401141167,
-0.01791449263691902,
0.009364954195916653,
-0.013308491557836533,
-0.011969844810664654,
0.0025746659375727177,
-0.0029785826336592436,
0.015493609942495823,
-0.040543798357248306,
0.025231601670384407,
0.05899028852581978,
0.029820643365383148,
-0.05901380628347397,
-0.04814358055591583,
-0.04846375808119774,
-0.04252540320158005,
-0.06707344949245453,
-0.06306999176740646,
0.0634860172867775,
-0.01652139239013195,
-0.02424289844930172,
-0.005513682961463928,
-0.04043419659137726,
-0.018580500036478043,
0.025435006245970726,
0.00123070296831429,
-0.034396942704916,
0.04272317513823509,
-0.03730542212724686,
0.04584631696343422,
0.01803768053650856,
-0.0031789776403456926,
0.013917810283601284,
-0.054972365498542786,
-0.010283014737069607,
-0.04114266484975815,
0.05727961286902428,
0.0027164057828485966,
0.0038862961810082197,
-0.08467672765254974,
0.009252733550965786,
0.005376571789383888,
0.001183785730972886,
-0.039635542780160904,
0.036580752581357956,
-0.007751008961349726,
-0.04413679987192154,
0.06819872558116913,
-0.04679803550243378,
-0.02061062678694725,
-0.05823700502514839,
-0.0441540889441967,
-0.0004716031835414469,
0.024544091895222664,
0.0557340569794178,
-0.016859708353877068,
0.0831594318151474,
0.03527650237083435,
-0.02015993371605873,
-0.014062239788472652,
-0.011904584243893623,
-0.0017782015493139625,
-0.02499980852007866,
-0.02529819868505001,
-0.06206471845507622,
-0.07111096382141113,
-0.04389773681759834,
-0.019776487722992897,
0.007185046561062336,
-0.0067020985297858715,
-0.010367754846811295,
-0.007888926193118095,
0.041519880294799805,
-0.03689312934875488,
0.017934491857886314,
-0.050084542483091354,
-0.006390859838575125,
-0.032845281064510345,
-0.022911999374628067,
0.0065917884930968285,
0.0114205963909626,
0.025111867114901543,
-0.02186514623463154,
0.06404312700033188,
-0.018636640161275864,
0.00011050781904486939,
-0.01880434714257717,
0.023254912346601486,
0.01792246848344803,
-0.036950357258319855,
0.001240517944097519
] | [
-0.1074681282043457,
-0.015066818334162235,
-0.028981147333979607,
-0.03468865528702736,
-0.0005560776335187256,
-0.005076012574136257,
0.014432352967560291,
0.02753126621246338,
0.04287353530526161,
-0.016906360164284706,
-0.031680621206760406,
0.029115380719304085,
-0.04801762104034424,
0.00968237966299057,
0.07726741582155228,
-0.0005626532365567982,
-0.030321212485432625,
-0.033510722219944,
-0.08112336695194244,
0.03969365358352661,
-0.0036267139948904514,
-0.03545980155467987,
-0.028723297640681267,
-0.018777240067720413,
-0.029131818562746048,
-0.007335313130170107,
0.04594246298074722,
-0.01994412951171398,
-0.012936840765178204,
-0.1698606014251709,
0.03761431202292442,
-0.05925391986966133,
-0.0016907277749851346,
-0.026208702474832535,
-0.007612697314471006,
0.026751307770609856,
0.007467614021152258,
0.012137601152062416,
0.06820332258939743,
0.05321488529443741,
0.03570523485541344,
-0.0003768262977246195,
-0.06680437177419662,
-0.04646670073270798,
0.05712661147117615,
0.005206237081438303,
0.024091560393571854,
-0.04826534539461136,
0.014386327937245369,
0.03382554277777672,
0.0003527700901031494,
0.027098385617136955,
-0.024739818647503853,
-0.021663540974259377,
0.0031474956776946783,
0.06249060481786728,
0.03874314948916435,
0.0606401264667511,
-0.001428420888260007,
0.05920249596238136,
0.007497586775571108,
-0.02252810262143612,
-0.1051996648311615,
0.1177840307354927,
0.020747266709804535,
0.04448463022708893,
-0.04845183342695236,
-0.006499966140836477,
-0.004113381262868643,
0.055300332605838776,
0.017306005582213402,
-0.011613132432103157,
-0.010060174390673637,
0.04488097131252289,
0.03611769899725914,
-0.037450019270181656,
-0.0007447062525898218,
0.011904576793313026,
0.040836088359355927,
-0.007552554365247488,
-0.012203025631606579,
-0.03279012069106102,
-0.024832554161548615,
-0.013363668695092201,
-0.03821665048599243,
-0.010455126874148846,
0.024520600214600563,
0.028285769745707512,
0.02740502543747425,
0.0011862716637551785,
0.04973144084215164,
-0.06646110117435455,
0.01392943225800991,
-0.00027461483841761947,
-0.0821593776345253,
0.005653636530041695,
-0.006211956962943077,
0.00015678434283472598,
-0.03563230484724045,
0.3952794671058655,
-0.025922611355781555,
0.016175825148820877,
0.05943742021918297,
-0.028797553852200508,
-0.04535011202096939,
-0.0385127067565918,
-0.0002584320609457791,
-0.03644788637757301,
0.004914935678243637,
-0.010037136264145374,
-0.010599037632346153,
0.012310948222875595,
0.07009217888116837,
-0.03774091973900795,
-0.003389920573681593,
0.03558740019798279,
0.0049469321966171265,
-0.010122201405465603,
0.018902935087680817,
-0.017891963943839073,
0.021941909566521645,
0.041041433811187744,
0.057066529989242554,
0.007805849425494671,
0.04101214557886124,
0.019411735236644745,
0.05824965611100197,
0.0702587217092514,
0.030794909223914146,
0.05263455584645271,
0.04842601343989372,
-0.0991189107298851,
-0.06595632433891296,
-0.028480932116508484,
0.0011247481452301145,
0.0013701540883630514,
0.025854505598545074,
0.018276385962963104,
0.010626762174069881,
0.012442739680409431,
-0.011243211105465889,
-0.03191487491130829,
0.03588932007551193,
-0.03352857008576393,
-0.017724091187119484,
0.12438572198152542,
0.007533292286098003,
-0.05755981057882309,
-0.007205788046121597,
-0.04428430274128914,
-0.026242859661579132,
0.034725602716207504,
0.009905461221933365,
-0.0433819405734539,
-0.011266492307186127,
0.03645268827676773,
0.006585512310266495,
-0.011161328293383121,
-0.018402310088276863,
-0.02177298814058304,
-0.028397083282470703,
-0.05126650631427765,
-0.043019820004701614,
0.039421502500772476,
0.007655991706997156,
-0.12916219234466553,
-0.05323347449302673,
-0.01788366213440895,
0.020618101581931114,
-0.08941438049077988,
-0.04222801327705383,
0.02342914789915085,
-0.0626569539308548,
-0.056464049965143204,
0.07539650052785873,
-0.012014300562441349,
-0.030338328331708908,
-0.008131290785968304,
0.030654195696115494,
-0.02720411866903305,
-0.00572167756035924,
-0.02314290963113308,
-0.043529756367206573,
-0.0030432604253292084,
-0.04528364911675453,
-0.07976958155632019,
-0.0357016921043396,
0.0000014823425544818747,
0.0036728698760271072,
0.05319131538271904,
-0.022831829264760017,
-0.07590436190366745,
-0.058104705065488815,
0.04590032994747162,
-0.01815548539161682,
0.004647455178201199,
-0.01885581761598587,
-0.04334806650876999,
0.019880974665284157,
0.013945034705102444,
0.036132343113422394,
-0.014022975228726864,
-0.012751852162182331,
0.03577757254242897,
-0.017654521390795708,
0.08113805949687958,
0.08458363264799118,
-0.061327241361141205,
0.08355258405208588,
-0.0090691102668643,
-0.03630426153540611,
0.01768185757100582,
0.009547526016831398,
0.01841013878583908,
0.024052683264017105,
-0.030964896082878113,
-0.011258052662014961,
0.02531018666923046,
0.022060906514525414,
-0.004752006381750107,
0.030891908332705498,
0.003119358327239752,
0.056988414376974106,
-0.31553542613983154,
-0.034080665558576584,
-0.049062423408031464,
0.0022846688516438007,
0.00021890521747991443,
-0.06061488762497902,
0.023898674175143242,
-0.04056168347597122,
-0.017995942384004593,
0.006836823653429747,
0.09123063832521439,
-0.038912564516067505,
0.004022649489343166,
-0.06831449270248413,
0.013168292120099068,
0.004512540064752102,
-0.019082292914390564,
-0.06114039197564125,
-0.018660273402929306,
0.012584369629621506,
-0.015414184890687466,
-0.0043348646722733974,
-0.012185635045170784,
-0.07903321087360382,
0.03253241628408432,
-0.04475207254290581,
0.1131269633769989,
0.025550583377480507,
0.06458119302988052,
-0.04831762984395027,
0.05042104423046112,
0.021250640973448753,
-0.003442176850512624,
-0.04014863818883896,
0.008087445050477982,
-0.018957728520035744,
-0.023601368069648743,
-0.01577349565923214,
-0.006110544316470623,
-0.016103137284517288,
-0.046031463891267776,
-0.01238611526787281,
-0.01699676923453808,
-0.08412354439496994,
-0.004988586530089378,
-0.0021242524962872267,
-0.01751701347529888,
-0.006647531408816576,
-0.022058594971895218,
0.09984995424747467,
0.06068846583366394,
0.0005359563510864973,
0.017912140116095543,
0.0228811576962471,
0.021337682381272316,
0.014144332148134708,
0.00443710433319211,
-0.02922963909804821,
-0.024078620597720146,
0.019011035561561584,
-0.0035224524326622486,
0.02457367070019245,
0.027704648673534393,
-0.05330256000161171,
0.028683189302682877,
0.0378471240401268,
0.018840085715055466,
-0.011439396999776363,
0.0689561665058136,
-0.06074560806155205,
-0.06695698946714401,
0.0723322406411171,
0.03847144544124603,
0.05089090019464493,
0.044863924384117126,
0.04338020086288452,
-0.04885246604681015,
0.02716195024549961,
0.03275510296225548,
0.03446149080991745,
0.03063475899398327,
0.05658610910177231,
0.04020674526691437,
-0.0010043233633041382,
0.00006567108357558027,
0.044759251177310944,
-0.03287235647439957,
-0.035530172288417816,
0.023734664544463158,
-0.051098670810461044,
-0.03632182627916336,
-0.012642811052501202,
-0.039132263511419296,
-0.07840336114168167,
0.03956497833132744,
-0.04328169673681259,
-0.2494334578514099,
0.03811752051115036,
0.08269467204809189,
0.06373827904462814,
0.04297448322176933,
0.05346878618001938,
0.03083193115890026,
-0.04098719730973244,
-0.011123467236757278,
0.020215146243572235,
-0.03325488045811653,
0.02177637256681919,
-0.014913285151124,
-0.029808804392814636,
0.016834460198879242,
-0.0220514927059412,
-0.001243847538717091,
-0.0011246955255046487,
0.020404580980539322,
-0.0010225711157545447,
0.045692168176174164,
-0.011412626132369041,
0.17323115468025208,
0.05024689435958862,
0.00005898077870369889,
0.035278767347335815,
-0.007479784078896046,
0.008572501130402088,
0.07427425682544708,
0.0034822733141481876,
-0.013586964458227158,
0.007754701655358076,
0.07230725884437561,
-0.013640600256621838,
0.019941136240959167,
-0.10140367597341537,
-0.07763560116291046,
0.05000923201441765,
0.02318018302321434,
-0.030542811378836632,
-0.003178434446454048,
0.03622516244649887,
-0.04223167151212692,
-0.018181467428803444,
0.07144256681203842,
-0.006693795323371887,
0.018624471500515938,
-0.0019106451654806733,
-0.031429946422576904,
0.014663580805063248,
-0.028595419600605965,
-0.05267416313290596,
0.027993468567728996,
-0.04553937166929245,
-0.007468178868293762,
0.1079116240143776,
0.011715378612279892,
-0.006330400705337524,
0.0288848839700222,
0.04873135685920715,
-0.015449188649654388,
0.02730395644903183,
0.11144095659255981,
-0.03177425637841225,
0.03535014018416405
] | [
-0.027573194354772568,
0.044689029455184937,
0.013366302475333214,
0.04678409546613693,
0.0189876239746809,
-0.005840033758431673,
0.0007953309686854482,
-0.05259985476732254,
0.026950761675834656,
-0.07354623824357986,
-0.006604813039302826,
0.034080952405929565,
-0.0031828407663851976,
-0.05462178960442543,
0.0053300862200558186,
-0.014224153012037277,
-0.01759715937077999,
-0.005692293867468834,
0.004354501608759165,
-0.01368210930377245,
-0.022210944443941116,
-0.0110322842374444,
-0.00976472720503807,
0.007693529594689608,
-0.016438940539956093,
-0.009069466963410378,
0.02546895481646061,
0.0025972749572247267,
-0.0004993222537450492,
-0.12081680446863174,
-0.04025663807988167,
-0.05728521943092346,
-0.03475068509578705,
-0.0677192434668541,
-0.06779582053422928,
-0.015041559003293514,
-0.012551266700029373,
0.043742645531892776,
0.02050521783530712,
0.0415145643055439,
-0.07857035845518112,
-0.02525092288851738,
-0.005162741057574749,
0.017286162823438644,
-0.010731262154877186,
-0.0019166754791513085,
-0.010214471258223057,
-0.005565457511693239,
-0.03953872621059418,
0.01579137146472931,
0.018748780712485313,
0.022951245307922363,
0.023705048486590385,
0.011230291798710823,
-0.045024365186691284,
-0.02588040567934513,
-0.04832149296998978,
-0.005845153238624334,
-0.014129445888102055,
0.07974239438772202,
0.004326205234974623,
0.018246332183480263,
-0.03353171423077583,
-0.029875721782445908,
0.024523533880710602,
0.009279339574277401,
-0.01824626699090004,
-0.03126728534698486,
-0.01206311583518982,
-0.00876577477902174,
0.06805455684661865,
-0.01799730956554413,
0.010836999863386154,
0.02078702114522457,
-0.00666092662140727,
-0.022143753245472908,
-0.011194595135748386,
0.009494123980402946,
0.0019379414152354002,
0.013648515567183495,
0.00002399621189397294,
-0.006334097124636173,
-0.06116846203804016,
0.03603935241699219,
0.0038405770901590586,
-0.004564713686704636,
0.005933497101068497,
0.01932259276509285,
-0.008675952441990376,
-0.0030233310535550117,
-0.02529408037662506,
-0.01781817339360714,
0.011083712801337242,
0.06583599001169205,
-0.06117812916636467,
0.014509717002511024,
0.0022421099711209536,
-0.014722922816872597,
-0.029140379279851913,
0.7867342829704285,
0.006034015212208033,
0.028032666072249413,
0.06723354011774063,
0.020191136747598648,
-0.0011468196753412485,
-0.04185279458761215,
0.01938491314649582,
0.025130655616521835,
0.04297715052962303,
0.05864384397864342,
-0.024333467707037926,
0.005840562749654055,
0.011075061745941639,
0.06236155331134796,
0.011165904812514782,
0.010154071263968945,
0.05485119670629501,
-0.05369610711932182,
-0.007025290280580521,
0.013481282629072666,
0.021289527416229248,
-0.0016120871296152472,
-0.010212098248302937,
0.02703840844333172,
0.04205293953418732,
-0.15945619344711304,
0.002192746615037322,
-9.490885552557485e-33,
0.05023599788546562,
-0.010412466712296009,
0.04160649701952934,
0.001960132969543338,
-0.013019890524446964,
0.0032949321903288364,
-0.008428717963397503,
0.006039354018867016,
-0.012695342302322388,
-0.020485905930399895,
0.03326866775751114,
-0.006901722867041826,
-0.0064941346645355225,
-0.03731987625360489,
0.04799800366163254,
0.02263258583843708,
-0.005178918596357107,
0.03005102463066578,
0.028149615973234177,
-0.031228963285684586,
0.03431153669953346,
0.060164738446474075,
0.026209861040115356,
0.051334913820028305,
0.0008092841599136591,
0.057110559195280075,
-0.030012667179107666,
0.014670085161924362,
-0.04163242131471634,
-0.047855883836746216,
-0.017176203429698944,
-0.0001046380348270759,
0.0074808127246797085,
-0.01141518633812666,
0.000014664430636912584,
-0.0024005628656595945,
-0.030999714508652687,
0.017382383346557617,
0.00434139184653759,
-0.00445153983309865,
0.005246727727353573,
-0.021942105144262314,
-0.015303500927984715,
-0.007105324883013964,
-0.029757430776953697,
-0.04596233740448952,
0.0168753694742918,
0.0028416865970939398,
-0.016235610470175743,
-0.008064445108175278,
-0.02017051912844181,
0.02483423426747322,
0.02221425622701645,
-0.013269834220409393,
-0.03129737451672554,
0.028689319267868996,
-0.047213781625032425,
0.027013633400201797,
0.010367616079747677,
-0.00117184326518327,
0.06565534323453903,
-0.026528319343924522,
0.014712370000779629,
0.03448700159788132,
-0.023284487426280975,
-0.02115723118185997,
-0.0026570414192974567,
0.0018517113057896495,
0.029252691194415092,
-0.0046464912593364716,
-0.044629018753767014,
0.021756039932370186,
0.013290716335177422,
-0.020904235541820526,
0.033274803310632706,
-0.005032224114984274,
-0.031165823340415955,
-0.0009141364716924727,
0.024751098826527596,
0.019392920657992363,
0.0075187827460467815,
-0.035294342786073685,
-0.01116796676069498,
-0.0008615980623289943,
0.03219756484031677,
0.02502588927745819,
0.025482168421149254,
0.01931282877922058,
0.012242892757058144,
-0.0009047125931829214,
-0.005999334622174501,
0.02661842294037342,
-0.012758579105138779,
0.010379328392446041,
-0.0027289402205497026,
7.890845988572374e-33,
0.022547900676727295,
-0.019994985312223434,
-0.028062311932444572,
0.02235448732972145,
0.023381490260362625,
-0.0018467343179509044,
-0.026359397917985916,
0.06520676612854004,
-0.05401726812124252,
0.01965354010462761,
-0.013658752664923668,
0.028462158516049385,
-0.03731486573815346,
0.002434701891615987,
0.03491927310824394,
0.015395517461001873,
0.02336854115128517,
-0.034737758338451385,
0.008156090043485165,
-0.021963072940707207,
0.013652976602315903,
0.00521899713203311,
-0.0001180926919914782,
0.007631025277078152,
-0.046515583992004395,
0.028206326067447662,
-0.0021989140659570694,
-0.01992654986679554,
0.023891767486929893,
0.01725112460553646,
-0.0414888821542263,
0.029435576871037483,
0.032048311084508896,
-0.0402618907392025,
-0.0016139107756316662,
0.01723022200167179,
-0.011913327500224113,
-0.01505775935947895,
0.028311917558312416,
0.009758444502949715,
-0.015652941539883614,
-0.02399170957505703,
0.010934349149465561,
-0.005245905369520187,
0.03175158426165581,
-0.005468635354191065,
0.004392843693494797,
0.010185589082539082,
0.03263787552714348,
0.017055297270417213,
-0.005667675752192736,
-0.009680084884166718,
-0.03932815045118332,
0.02623051218688488,
0.026819279417395592,
-0.0299043171107769,
-0.05186060816049576,
-0.0010456473100930452,
-0.02622082084417343,
0.05674213171005249,
-0.02580469660460949,
0.010576695203781128,
-0.03478068485856056,
0.022894468158483505,
-0.04043116047978401,
0.054009608924388885,
-0.01667778566479683,
0.020039353519678116,
-0.011221397668123245,
-0.038595035672187805,
-0.0026706091593950987,
-0.03507966175675392,
0.042921654880046844,
-0.000928318768274039,
0.06311473995447159,
-0.08242378383874893,
0.008127410896122456,
-0.008475270122289658,
0.001594266388565302,
0.01392381638288498,
0.05673961713910103,
-0.05649322643876076,
0.010697701014578342,
-0.06313709169626236,
0.026014594361186028,
-0.013184331357479095,
-0.058698464184999466,
0.011220235377550125,
-0.010983494110405445,
-0.04401653632521629,
0.023526659235358238,
-0.006873601116240025,
-0.01407852303236723,
-0.02466268464922905,
-0.0119137242436409,
-1.3472062576624921e-8,
0.004245448391884565,
0.05100656673312187,
0.003961001988500357,
-0.005287917330861092,
-0.006932777818292379,
-0.007385889068245888,
-0.0475010946393013,
-0.015958916395902634,
0.005463226232677698,
0.04261321946978569,
0.027026444673538208,
-0.024814805015921593,
0.01593361236155033,
0.02183779701590538,
-0.04419875517487526,
-0.01867695152759552,
-0.04449217766523361,
-0.016110332682728767,
0.05810585618019104,
0.05727624520659447,
-0.015718460083007812,
0.028925659134984016,
0.0006850617355667055,
-0.012740415520966053,
0.07082029432058334,
-0.019003698602318764,
-0.04041400924324989,
-0.07662350684404373,
-0.009252099320292473,
0.014766049571335316,
-0.02668369561433792,
-0.01855367235839367,
0.0019913690630346537,
-0.018565138801932335,
-0.04255884140729904,
0.0032072197645902634,
-0.0032782170455902815,
-0.02086864411830902,
-0.005454848986119032,
0.005579693242907524,
0.045230165123939514,
-0.0413062646985054,
-0.022572604939341545,
-0.04237339273095131,
-0.00026358338072896004,
-0.0014515448128804564,
-0.06169167906045914,
0.048302263021469116,
0.035122260451316833,
-0.048890531063079834,
-0.009911742992699146,
-0.013208883814513683,
0.08414201438426971,
-0.03595736250281334,
0.06510285288095474,
-0.0022657066583633423,
0.036061640828847885,
-0.0031080679036676884,
0.024676190689206123,
-0.027719594538211823,
0.04739638790488243,
0.030510516837239265,
-0.036453086882829666,
-0.036610763520002365
] | saving-the-values-of-dynamically-populated-dropdown-on-back-button | https://markhneedham.com/blog/2012/03/24/saving-the-values-of-dynamically-populated-dropdown-on-back-button |
false | 2012-03-23 23:54:42 | Oracle Spatial: Querying by a point/latitude/longitude | [
"oracle",
"spatial"
] | [
"Software Development"
] | We're using Oracle Spatial on the application I'm working on and while most of the time any spatial queries we make are done from Java code we wanted to be able to run them directly from SQL as well to verify the code was working correctly.
We normally end up forgetting how to construct a query so I thought I'd document it.
Assuming we have a table +++<cite>+++table_with_shape+++</cite>+++ which has a column +++<cite>+++shape+++</cite>+++ which is a polygon, if we want to check whether a lat/long value interacts with that shape we can do that with the following query:
[source,text]
----
SELECT *
FROM table_with_shape tws
WHERE
SDO_ANYINTERACT(tws.shape, SDO_GEOMETRY(2001, 8307, SDO_POINT_TYPE(<LongValueHere>, <LatValueHere>, NULL), NULL, NULL) ) = 'TRUE'
----
The first parameter to +++<cite>+++SDO_GEOMETRY+++</cite>+++ http://docs.oracle.com/cd/B19306_01/appdev.102/b14255/sdo_objrelschema.htm#i1004087[defines the type of geometry] which in this case is a point.
The second parameter is the coordinate system which is 8307 since we're using the 'WGS 84 longitude/latitude' system.
The third parameter is our point and the rest of the parameters aren't interesting here so we pass null for them. | null | null | [
0.018925663083791733,
0.03289298713207245,
-0.015997709706425667,
0.03781972825527191,
0.0845155194401741,
0.013133026659488678,
-0.008298326283693314,
0.03344190865755081,
0.02097417041659355,
-0.04991685971617699,
-0.021589241921901703,
-0.03615424409508705,
-0.05286143347620964,
0.009277828969061375,
-0.0078919418156147,
0.07209685444831848,
0.04580099135637283,
-0.00290672923438251,
0.014089872129261494,
-0.005410593003034592,
0.045424990355968475,
0.02326062135398388,
-0.0026627746410667896,
0.0027539697475731373,
0.045073192566633224,
0.04159722849726677,
-0.0016606998397037387,
0.0018600854091346264,
-0.053192976862192154,
-0.01878778077661991,
0.03661879152059555,
-0.006634032353758812,
-0.009129351004958153,
-0.019055325537919998,
0.01639663800597191,
0.0072826421819627285,
-0.023557957261800766,
0.011958487331867218,
-0.020211294293403625,
0.008145474828779697,
-0.07296507060527802,
0.037481747567653656,
0.006829194258898497,
0.025989267975091934,
-0.00016984320245683193,
-0.0012198035838082433,
-0.04544997587800026,
0.01571929268538952,
-0.022593067958950996,
0.01780141331255436,
-0.04652651399374008,
0.047974515706300735,
-0.06183763965964317,
0.02118413895368576,
0.011347142979502678,
0.04848163202404976,
0.03161134570837021,
-0.06918948888778687,
0.019683847203850746,
-0.04035695642232895,
0.015098022297024727,
-0.00008257737499661744,
-0.004718197509646416,
0.024870118126273155,
0.05236974358558655,
-0.0005917171947658062,
-0.0026781728956848383,
0.03862742334604263,
-0.03234628587961197,
0.01975962519645691,
-0.022165663540363312,
0.006139280740171671,
0.008424882777035236,
-0.0032426207326352596,
0.004469635896384716,
-0.00418773153796792,
-0.011678052134811878,
0.0591927170753479,
0.015154346823692322,
0.0627477616071701,
-0.006109133362770081,
-0.02892925776541233,
0.006303832400590181,
0.009824736975133419,
-0.009689005091786385,
-0.028607025742530823,
-0.027082370594143867,
-0.03650980815291405,
-0.022845519706606865,
0.05500790476799011,
0.007474068086594343,
-0.02143321931362152,
-0.00899833720177412,
0.024158159270882607,
-0.02221742272377014,
-0.0007785704219713807,
0.01150576863437891,
-0.003713705111294985,
0.0003501389583107084,
-0.0342131108045578,
-0.030341913923621178,
-0.01834966614842415,
0.05981730669736862,
0.03162099048495293,
-0.07583723217248917,
-0.03673988953232765,
-0.03129997476935387,
-0.031062211841344833,
0.028771575540304184,
0.02076520025730133,
-0.03642774000763893,
0.024105170741677284,
-0.01806383766233921,
-0.016457144170999527,
-0.0760335847735405,
0.06683959811925888,
0.04083406925201416,
-0.003370357910171151,
0.023953324183821678,
0.009689816273748875,
0.04141915962100029,
0.019776320084929466,
-0.014961237087845802,
0.06183363497257233,
-0.002852757228538394,
0.040340736508369446,
-0.04957600682973862,
0.03009294532239437,
-0.03377974405884743,
-0.09204917401075363,
-0.015839863568544388,
0.04817808419466019,
0.01675102300941944,
0.007132197730243206,
0.000604238361120224,
-0.019570544362068176,
-0.023737214505672455,
-0.01824616640806198,
0.05579579621553421,
0.0197315514087677,
-0.007120674941688776,
-0.039985232055187225,
-0.02306179329752922,
0.0028460107278078794,
0.048983652144670486,
0.028546178713440895,
0.030177924782037735,
-0.05338669940829277,
-0.05779314413666725,
0.02820710465312004,
0.020478157326579094,
0.025069881230592728,
0.05992358177900314,
-0.04490971937775612,
0.0022395248524844646,
0.10931237787008286,
0.004509851336479187,
0.03136445954442024,
-0.0019179839873686433,
-0.006066290661692619,
0.06357526779174805,
0.007593544200062752,
0.0038682962767779827,
0.05540088564157486,
0.023054875433444977,
0.0018240578938275576,
0.028992457315325737,
0.035579975694417953,
0.009304255247116089,
0.004846019204705954,
-0.054881006479263306,
-0.09052868187427521,
0.06604038178920746,
-0.04250989854335785,
-0.027416115626692772,
0.017569463700056076,
0.08687665313482285,
0.023207221180200577,
0.04150659963488579,
0.018828457221388817,
-0.08466088771820068,
0.022142700850963593,
-0.01394287496805191,
-0.0008082831045612693,
0.04057340696454048,
-0.009624425321817398,
0.0887552872300148,
0.02862081490457058,
-0.013452357612550259,
0.026700202375650406,
-0.07010474056005478,
-0.10731114447116852,
-0.013463513925671577,
-0.010203789919614792,
0.058553993701934814,
-0.036004215478897095,
-0.005543078295886517,
0.0695297047495842,
-0.0055518923327326775,
0.0045739091001451015,
0.011560815386474133,
0.019510392099618912,
0.03805997222661972,
-0.023355824872851372,
-0.03937000408768654,
0.014041940681636333,
0.039103392511606216,
0.003325031138956547,
-0.003876006230711937,
0.0390658900141716,
-0.014068289659917355,
-0.00680146599188447,
0.0014325923984870315,
0.004084285814315081,
0.04189774766564369,
0.008433888666331768,
0.04857734963297844,
-0.021200833842158318,
0.06067479029297829,
-0.035309258848428726,
0.028758889064192772,
0.03944120556116104,
-0.04138495400547981,
-0.004731905180960894,
-0.0005917652742937207,
0.13106192648410797,
0.0505860336124897,
-0.007886625826358795,
-0.04575004428625107,
0.032662082463502884,
0.019507937133312225,
-0.03714272379875183,
0.034569475799798965,
-0.033938828855752945,
0.029389621689915657,
-0.013877194374799728,
0.010132934898138046,
-0.030498070642352104,
0.0259716734290123,
0.0010877783643081784,
-0.005175838712602854,
0.0553089864552021,
-0.0039228107780218124,
0.04434038698673248,
0.008738068863749504,
-0.02958521991968155,
0.009770371951162815,
-0.02166597917675972,
-0.043824974447488785,
-0.009501366876065731,
0.01764591969549656,
-0.015203789807856083,
0.03478475287556648,
-0.026138795539736748,
-0.032999128103256226,
-0.036639075726270676,
-0.036600228399038315,
0.0026375395245850086,
0.057914845645427704,
0.029805628582835197,
-0.03197922185063362,
0.05618305876851082,
0.0014642897294834256,
0.006006361450999975,
-0.0376165509223938,
-0.047910287976264954,
-0.017181897535920143,
0.00031643459806218743,
-0.02205556258559227,
0.05362675338983536,
0.03110159933567047,
0.017499325796961784,
0.03009970299899578,
-0.028780708089470863,
-0.01955408975481987,
0.002325517125427723,
0.004767934326082468,
-0.002519985195249319,
-0.03104422800242901,
-0.03653368353843689,
-0.00608443608507514,
0.028969962149858475,
-0.032421670854091644,
-0.04053700342774391,
0.010111150331795216,
-0.04665372148156166,
0.04120501130819321,
-0.06897816807031631,
-0.0653892531991005,
0.014690671116113663,
0.009838652797043324,
0.030430695042014122,
-0.011531256139278412,
-0.009650405496358871,
0.10788240283727646,
0.019296914339065552,
0.0030230898410081863,
0.001368326018564403,
0.006065557710826397,
0.0036103446036577225,
-0.005438400898128748,
-0.00018905513570643961,
0.04422549158334732,
-0.015918485820293427,
-0.0012442084262147546,
-0.03933064267039299,
0.008033826015889645,
-0.009816868230700493,
-0.2676566541194916,
0.022190682590007782,
-0.05144660547375679,
-0.03157702460885048,
0.006877968553453684,
-0.006488519255071878,
0.009257186204195023,
-0.040053561329841614,
-0.032051991671323776,
0.030854713171720505,
-0.019920947030186653,
-0.0301958080381155,
-0.016380229964852333,
0.04834416136145592,
0.013356293551623821,
0.0397392176091671,
-0.01188569888472557,
-0.027838336303830147,
0.0009198927436955273,
0.04454987123608589,
0.014711439609527588,
-0.060652121901512146,
0.010332019068300724,
0.030689675360918045,
0.028814425691962242,
0.07655477523803711,
-0.07419773191213608,
0.03406968340277672,
-0.011039524339139462,
-0.03301822021603584,
0.0342981331050396,
-0.027006026357412338,
0.003244399791583419,
-0.009365498088300228,
-0.036913927644491196,
-0.024498581886291504,
0.022335441783070564,
0.02225484326481819,
0.011829709634184837,
0.0058947657234966755,
-0.043986786156892776,
-0.04160947725176811,
-0.020614972338080406,
0.024977199733257294,
0.06354952603578568,
-0.024151301011443138,
-0.06336238235235214,
0.010807196609675884,
-0.02146916277706623,
0.036120735108852386,
-0.017790628597140312,
-0.03825579211115837,
-0.02073235809803009,
0.038482531905174255,
-0.04661225900053978,
-0.019930848851799965,
0.003622978925704956,
-0.02298136055469513,
-0.08723695576190948,
-0.029493944719433784,
0.019527779892086983,
-0.06609711050987244,
-0.006410740315914154,
-0.062386538833379745,
-0.012627393007278442,
-0.06304710358381271,
-0.07488085329532623,
0.007623508106917143,
0.044899582862854004,
0.04591571167111397,
-0.004742948804050684,
0.029620520770549774,
-0.01991541124880314,
-0.10664914548397064,
-0.016087058931589127,
-0.03425271064043045,
-0.04173627868294716,
-0.02616577036678791,
-0.024047262966632843,
0.04497883841395378,
-0.028253793716430664,
-0.014716463163495064,
0.035341326147317886,
0.05577464774250984,
-0.00817131344228983,
-0.03214539960026741,
0.03110462985932827,
-0.006089529022574425,
-0.015793614089488983,
-0.005137171130627394,
0.07840627431869507,
-0.04340609908103943,
0.0031446274369955063,
0.0010920640779659152,
-0.013336309231817722,
-0.004872418940067291,
0.031724605709314346,
-0.04242311790585518,
0.03626638650894165,
0.019628966227173805,
0.006777753122150898,
-0.016335923224687576,
0.015264005400240421,
-0.0373079739511013,
-0.014135104604065418,
-0.016389289870858192,
-0.039848022162914276,
0.027080213651061058,
0.020930683240294456,
-0.003198422957211733,
-0.0055927131325006485,
0.001682037254795432,
0.015953419730067253,
-0.060058899223804474,
-0.04860909655690193,
-0.018406853079795837,
0.01530351024121046,
0.032852284610271454,
0.025716815143823624,
-0.06637834757566452,
-0.062097273766994476,
0.00784280989319086,
0.004899607039988041,
-0.04564639553427696,
-0.04360632598400116,
-0.0009690723964013159,
-0.037270814180374146,
0.0007370933890342712,
-0.01974327675998211,
0.0333062969148159,
-0.028551358729600906,
0.03578853979706764,
0.047403234988451004,
-0.009336532093584538,
0.013048934750258923,
0.004556260537356138,
-0.05148782953619957,
-0.01720830798149109,
0.004107446875423193,
0.011083567515015602,
-0.006920549087226391,
0.011217270977795124,
0.010092492215335369,
0.034696850925683975,
0.014682991430163383,
-0.016905225813388824,
0.014299186877906322,
0.01341356709599495,
0.02113284170627594,
0.029188310727477074,
-0.02485705353319645,
-0.04035509005188942,
0.025665707886219025,
-0.030404796823859215,
-0.040490005165338516,
-0.02864813059568405,
0.058894988149404526,
-0.030002593994140625,
0.007164627313613892,
-0.02400607243180275,
0.024057427421212196,
-0.037826988846063614,
-0.013730297796428204,
-0.008243788033723831,
-0.02300802432000637,
0.043694883584976196,
-0.021122926846146584,
0.04416513815522194,
-0.010529688559472561,
-0.0015648548724129796,
0.029981136322021484,
-0.024742452427744865,
-0.009104007855057716,
0.03933262079954147,
-0.020490441471338272,
0.007947515696287155,
0.02198323979973793,
0.02609374187886715,
0.03243875876069069,
-0.027825165539979935,
-0.005180698353797197,
0.01427788008004427,
0.008024169132113457,
-0.01388430967926979,
0.03959710896015167,
0.009876687079668045,
-0.03079248033463955,
-0.016087768599390984,
-0.018264321610331535,
-0.03998926281929016,
-0.026447683572769165,
0.0030780378729104996,
-0.0445549413561821,
0.0369742177426815,
-0.013997243717312813,
-0.052005115896463394,
0.05351339280605316,
0.012060862965881824,
-0.03823041170835495,
0.03325844928622246,
0.010590311139822006,
-0.007623195182532072,
-0.039438482373952866,
0.016750101000070572,
0.059007078409194946,
-0.06435927003622055,
0.01785827800631523,
-0.0022596658673137426,
-0.040446218103170395,
-0.020064527168869972,
-0.01806347258388996,
-0.034491539001464844,
-0.004637656267732382,
-0.00032468000426888466,
0.019104791805148125,
-0.007752223405987024,
-0.006664582993835211,
-0.016374370083212852,
-0.0008067700546234846,
0.01282306294888258,
0.018170220777392387,
0.01679088920354843,
-0.01902763731777668,
-0.014774070121347904,
-0.005906178615987301,
0.0677356943488121,
-0.022284559905529022,
-0.009517696686089039,
0.04295119643211365,
-0.008539150469005108,
-0.003946761600673199,
-0.02961607649922371,
0.015460532158613205,
0.03504268825054169,
-0.011639513075351715,
-0.020461630076169968,
-0.06165580078959465,
0.00335590704344213,
-0.0028501690831035376,
0.07303814589977264,
0.021518567577004433,
-0.023249994963407516,
0.007672192994505167,
0.011029010638594627,
-0.030455535277724266,
0.023287085816264153,
-0.019180385395884514,
-0.007814401760697365,
-0.0006914408877491951,
0.043880220502614975,
0.027903234586119652,
-0.006919698789715767,
-0.016610335558652878,
-0.03390286862850189,
0.056995656341314316,
-0.04168568551540375,
-0.018402352929115295,
-0.007810754701495171,
-0.07108520716428757,
0.00273954588919878,
-0.0011513454373925924,
0.019761893898248672,
-0.02814888395369053,
0.03973856940865517,
0.04310213774442673,
0.008280592039227486,
0.02991529181599617,
0.02810475043952465,
0.04279795661568642,
-0.028088362887501717,
-0.03174851834774017,
-0.07179205119609833,
0.03468948230147362,
0.013398840092122555,
0.02081107720732689,
-0.058711837977170944,
-0.015836210921406746,
-0.026874925941228867,
0.03353734314441681,
-0.09758953750133514,
-0.04149475321173668,
0.022962212562561035,
0.022472675889730453,
-0.028546907007694244,
0.006777281407266855,
-0.020844101905822754,
0.00942326057702303,
0.053584422916173935,
-0.03882768377661705,
-0.03052835538983345,
-0.03030654415488243,
0.03421691432595253,
0.0026742112822830677,
0.008896585553884506,
-0.03242126479744911,
0.011385604739189148,
0.08428393304347992,
0.034392889589071274,
-0.005388620309531689,
0.04887336492538452,
-0.030773771926760674,
0.05427136644721031,
0.020034490153193474,
-0.013320268131792545,
0.009286980144679546,
-0.006974979769438505,
0.004166804254055023,
-0.06727807968854904,
0.02207118459045887,
0.03731232136487961,
0.013039487414062023,
-0.04029815271496773,
0.06451601535081863,
0.01709616184234619,
-0.0458126999437809,
-0.06642012298107147,
0.02039942517876625,
-0.02341965027153492,
-0.01694006659090519,
-0.031410038471221924,
-0.024270543828606606,
-0.03375794366002083,
0.07956572622060776,
-0.00009091122046811506,
0.029190190136432648,
0.05418706685304642,
0.007390116807073355,
-0.03670516982674599,
0.01078398060053587,
0.09376870840787888,
0.07673881202936172,
0.01152206864207983,
0.023654092103242874,
0.0425792820751667,
-0.019678916782140732,
-0.02235882543027401,
-0.0008224332123063505,
-0.043126195669174194,
-0.005889711901545525,
-0.008932334370911121,
-0.0073339794762432575,
0.08350859582424164,
-0.02242431230843067,
0.05580941215157509,
-0.02308989316225052,
-0.0007150207529775798,
0.01343667320907116,
0.011251532472670078,
0.023859160020947456,
0.020686306059360504,
0.006442274432629347,
0.03138495981693268,
-0.02150016464293003,
-0.028597118332982063,
0.0038555844221264124,
-0.02111685648560524,
-0.014948412775993347,
0.01635979861021042,
-0.012916579842567444,
0.014049689285457134,
-0.00653388537466526,
0.028337892144918442,
0.08806062489748001,
-0.02278480865061283,
-0.0074284072034060955,
-0.006388367619365454,
0.03631605952978134,
-0.030264854431152344,
0.037051159888505936,
-0.0039571737870574,
-0.05053228884935379,
0.005843558814376593,
-0.04130617901682854,
-0.019397197291254997,
-0.0006811500061303377,
-0.03711868077516556,
-0.007737777661532164,
-0.005162595771253109,
0.040776509791612625,
0.0068991295993328094,
0.010786992497742176,
-0.05689559876918793,
-0.07523377984762192,
-0.0562746487557888,
-0.023166850209236145,
-0.06350960582494736,
0.0003165728412568569,
0.022219503298401833,
-0.005405868869274855,
-0.04737953096628189,
-0.011696814559400082,
-0.036672256886959076,
0.023887479677796364,
-0.011381796561181545,
-0.021406956017017365,
-0.04047958180308342,
0.030576037243008614,
0.016795767471194267,
0.004564784467220306,
0.024957958608865738,
0.0661289170384407,
-0.027194887399673462,
0.03846544772386551,
-0.045892927795648575,
-0.006601570639759302,
0.065189890563488,
0.017843009904026985,
0.011639771983027458,
-0.08109097927808762,
0.004799115937203169,
0.006993369199335575,
0.019659044221043587,
-0.06266221404075623,
-0.01056924182921648,
0.03305494412779808,
-0.0004967502900399268,
0.039189960807561874,
-0.010717742145061493,
0.03259104862809181,
-0.03125812113285065,
-0.028427811339497566,
0.024763159453868866,
-0.0029800087213516235,
0.03383328393101692,
-0.034502413123846054,
0.05603770911693573,
0.06440497934818268,
-0.041591577231884,
-0.015258355997502804,
0.0012424979358911514,
0.022961469367146492,
0.00823415070772171,
-0.0672667846083641,
-0.03946158289909363,
-0.0409267358481884,
-0.08592934906482697,
-0.016908857971429825,
0.03241999074816704,
-0.02793976664543152,
-0.03318770229816437,
-0.019022079184651375,
0.05478781461715698,
-0.06345903873443604,
0.03231310099363327,
-0.04357996582984924,
0.05251992121338844,
-0.056812893599271774,
-0.036137569695711136,
-0.012607535347342491,
0.04431745037436485,
0.010082543827593327,
0.020547760650515556,
0.020921939983963966,
-0.04242589697241783,
0.00627335999161005,
-0.025206629186868668,
0.027333181351423264,
0.02952566184103489,
0.016423380002379417,
0.04206152632832527
] | [
-0.05573885887861252,
-0.019565779715776443,
-0.007742174435406923,
-0.0288853719830513,
0.008732616901397705,
-0.06465087831020355,
0.005158897489309311,
0.01229135226458311,
0.005010207183659077,
-0.024273989722132683,
-0.01836755871772766,
-0.0693710595369339,
-0.025639384984970093,
0.015962164849042892,
0.010560148395597935,
-0.03534943237900734,
-0.02703920006752014,
-0.02411777339875698,
0.01611987128853798,
0.03580569475889206,
0.010160092264413834,
-0.026254743337631226,
-0.05607239529490471,
-0.04729476571083069,
0.014527491293847561,
0.07422421127557755,
0.045292384922504425,
-0.07031971216201782,
-0.011817537248134613,
-0.1971329301595688,
0.00032581508276052773,
0.02508702501654625,
-0.005941999144852161,
-0.025730399414896965,
-0.04772114381194115,
0.028668006882071495,
0.01832636073231697,
0.015990426763892174,
0.016473820433020592,
0.03987887501716614,
0.025766531005501747,
0.01033239159733057,
-0.028081169351935387,
-0.01529033575206995,
0.015976643189787865,
-0.004115457646548748,
0.00014948514581192285,
-0.014456501230597496,
0.012001722119748592,
0.02941562421619892,
-0.056141335517168045,
0.01856244169175625,
-0.008166843093931675,
0.008661244064569473,
0.010165116749703884,
0.03739463910460472,
0.054988108575344086,
0.07211633026599884,
-0.004980206955224276,
0.011231175623834133,
0.04008917883038521,
-0.023080160841345787,
-0.1346941441297531,
0.09941483289003372,
-0.007030734792351723,
0.04969211667776108,
-0.0003623381198849529,
-0.019501477479934692,
-0.031567253172397614,
0.06616213917732239,
0.03712395206093788,
-0.00462678074836731,
-0.04545161873102188,
0.07641582936048508,
0.05387263000011444,
-0.02363002859055996,
-0.023115936666727066,
0.02046455442905426,
0.0217776857316494,
-0.04053942859172821,
-0.0588921420276165,
0.02781805768609047,
-0.032047733664512634,
-0.0012823360739275813,
-0.03146139159798622,
0.01664801687002182,
-0.027129998430609703,
0.06128961220383644,
0.02996140532195568,
0.009711180813610554,
0.04085739329457283,
-0.01439674012362957,
-0.010481584817171097,
0.01693826913833618,
-0.04724962264299393,
-0.03740203380584717,
-0.013979160226881504,
-0.005347865633666515,
0.010693354532122612,
0.3826735019683838,
-0.014882027171552181,
0.003383421804755926,
0.0358436182141304,
0.05843207240104675,
-0.011102167889475822,
-0.011051572859287262,
-0.00009820807463256642,
-0.06839577108621597,
0.017456747591495514,
0.0032576569356024265,
-0.014925176277756691,
-0.02764798514544964,
0.033055368810892105,
-0.0407012514770031,
-0.009571705013513565,
0.020487533882260323,
0.06890201568603516,
0.010190281085669994,
-0.04472468048334122,
-0.02659490704536438,
-0.06127694994211197,
0.022248174995183945,
-0.004123743157833815,
0.02580265887081623,
0.018926234915852547,
-0.04384712129831314,
0.0008390590664930642,
0.05271757021546364,
0.03778892755508423,
-0.004134547896683216,
0.055610593408346176,
-0.040770024061203,
-0.09289468079805374,
-0.004874433856457472,
-0.0014948883326724172,
0.010699530132114887,
0.05435091629624367,
-0.01825752668082714,
-0.035656847059726715,
0.035274308174848557,
-0.04996330291032791,
-0.04821997135877609,
0.06292717158794403,
0.019143464043736458,
-0.018994446843862534,
0.1307000368833542,
-0.01588798500597477,
-0.041647739708423615,
-0.03012026660144329,
-0.042952947318553925,
0.009837900288403034,
0.020733870565891266,
-0.030812878161668777,
-0.05576545372605324,
-0.032576195895671844,
0.02793491818010807,
0.049546606838703156,
0.021496417000889778,
-0.11804380267858505,
-0.04472476243972778,
-0.0056742336601018906,
-0.02760537527501583,
-0.044318631291389465,
0.08689644187688828,
0.035685066133737564,
-0.09215958416461945,
-0.04780404269695282,
0.017460104078054428,
0.0385102815926075,
-0.018336962908506393,
0.04266945272684097,
0.022086691111326218,
-0.023428820073604584,
-0.015137787908315659,
0.06783951073884964,
-0.0033032691571861506,
-0.034575287252664566,
0.028547054156661034,
0.02182772569358349,
0.006135596893727779,
0.010391547344624996,
0.02023179829120636,
-0.01157049648463726,
-0.022137735038995743,
-0.06503172218799591,
-0.10517708212137222,
-0.08542178571224213,
0.024980535730719566,
-0.010777211748063564,
-0.049424152821302414,
0.03961177170276642,
-0.025759881362318993,
-0.0873982384800911,
0.08938069641590118,
-0.0350930355489254,
-0.04726561903953552,
0.030868204310536385,
-0.0016344885807484388,
0.0012366357259452343,
-0.010585132986307144,
0.03942885994911194,
0.019167697057127953,
-0.023686407133936882,
0.03339653089642525,
-0.009437797591090202,
0.021206580102443695,
0.08001668751239777,
-0.03182942420244217,
0.029744312167167664,
0.0493994802236557,
-0.008881969377398491,
-0.006026431918144226,
-0.01429920643568039,
0.01625821366906166,
0.026502836495637894,
-0.013263982720673084,
-0.005171614699065685,
-0.0028932944405823946,
-0.003798152320086956,
0.019549554213881493,
-0.041187070310115814,
-0.042940653860569,
0.012913959100842476,
-0.36920031905174255,
-0.04873986169695854,
-0.03283209726214409,
-0.009124509058892727,
0.004763054195791483,
-0.041837215423583984,
-0.00786607526242733,
0.002173587679862976,
0.012223723344504833,
-0.009376609697937965,
0.07151522487401962,
-0.013119447976350784,
0.0114688565954566,
-0.04414181038737297,
-0.0465221181511879,
0.026080360636115074,
-0.04894587770104408,
0.01884886808693409,
-0.04203205928206444,
-0.03619549423456192,
-0.008458797819912434,
0.0034758613910526037,
-0.07422330975532532,
-0.07147783786058426,
0.019611133262515068,
0.010500829666852951,
0.1256193220615387,
-0.006279417779296637,
0.060921356081962585,
-0.061028823256492615,
0.06669996678829193,
-0.01994357258081436,
0.011246374808251858,
-0.07902783900499344,
0.003951810300350189,
-0.008475851267576218,
-0.02024729549884796,
0.033797383308410645,
-0.02043362334370613,
-0.023013096302747726,
-0.07640742510557175,
0.009786945767700672,
-0.046154484152793884,
-0.002149214968085289,
-0.018327677622437477,
0.003025464713573456,
0.013610106892883778,
0.003077027853578329,
0.008983436971902847,
0.09659740328788757,
0.005496409721672535,
0.0042980508878827095,
0.036178167909383774,
0.04130535200238228,
0.04307101294398308,
-0.014879168942570686,
-0.0676782876253128,
-0.03123266063630581,
0.002748357830569148,
0.007374397478997707,
0.03393963724374771,
0.035801876336336136,
0.046788521111011505,
-0.03814635053277016,
0.01081907469779253,
0.03139924630522728,
-0.01391745638102293,
-0.007824249565601349,
0.06218670308589935,
-0.019845305010676384,
-0.0509910061955452,
0.09469053894281387,
-0.029337894171476364,
-0.004294692073017359,
0.05588535591959953,
0.019288433715701103,
0.04119614139199257,
0.05745460093021393,
0.05306211858987808,
-0.002641425235196948,
0.05311278626322746,
-0.019455205649137497,
0.041774507611989975,
-0.0002804418618325144,
0.005694398656487465,
0.06307980418205261,
0.04298657923936844,
-0.027606191113591194,
0.04384097084403038,
-0.0277556125074625,
-0.026037150993943214,
0.0093515794724226,
-0.0009129574173130095,
-0.07896081358194351,
0.05199389159679413,
-0.008163227699697018,
-0.2786600589752197,
0.03827594220638275,
0.039140909910202026,
0.07264237850904465,
-0.01881684549152851,
-0.022563109174370766,
0.017737172544002533,
-0.03318111225962639,
-0.011470125056803226,
-0.027911370620131493,
0.02558530680835247,
0.009542223997414112,
-0.0011445516720414162,
-0.032584305852651596,
0.01657293550670147,
-0.008841958828270435,
0.039026565849781036,
0.03242764249444008,
0.04189841449260712,
-0.004623165354132652,
0.007777640596032143,
0.0009453069651499391,
0.16183912754058838,
0.04100237414240837,
0.036018986254930496,
-0.0046787443570792675,
0.022738182917237282,
-0.002172712702304125,
0.05987922474741936,
0.04388949275016785,
0.008662554435431957,
0.0051199933513998985,
0.054701369255781174,
-0.005806555040180683,
0.0444987490773201,
-0.015922879800200462,
-0.016933498904109,
0.07870400696992874,
0.013826153241097927,
-0.01683838479220867,
0.007134006358683109,
0.019415775313973427,
-0.027673419564962387,
0.05816030502319336,
0.058995749801397324,
0.028992705047130585,
0.011624366044998169,
0.004687867593020201,
-0.02642858400940895,
-0.008928470313549042,
-0.014152264222502708,
-0.03820812702178955,
-0.020290546119213104,
-0.02593333087861538,
-0.015432173386216164,
0.040705159306526184,
0.0068231914192438126,
-0.04238934814929962,
0.006911272183060646,
0.02033277601003647,
0.006505942903459072,
-0.039817482233047485,
0.08968565613031387,
-0.03733367100358009,
0.018290501087903976
] | [
0.032749343663454056,
0.0008298807078972459,
-0.028467297554016113,
-0.006028030999004841,
0.0016259519616141915,
-0.011162972077727318,
0.022681115195155144,
0.04317153990268707,
-0.016482846811413765,
0.005622853524982929,
-0.010725540108978748,
-0.01438160054385662,
-0.026123913004994392,
-0.00935368612408638,
0.024872981011867523,
0.010688657872378826,
-0.0008794894674792886,
-0.0018572075059637427,
0.05492016300559044,
0.0204636137932539,
-0.031247900798916817,
0.025587400421500206,
0.005444645415991545,
0.003205152228474617,
0.02197105996310711,
0.033044811338186264,
0.011273680254817009,
-0.021413695067167282,
0.013167241588234901,
-0.11670204252004623,
-0.042593806982040405,
0.011735157109797001,
-0.015437892638146877,
0.011828478425741196,
-0.021924030035734177,
-0.024813150987029076,
0.022701535373926163,
0.010308446362614632,
-0.00563858961686492,
0.011507770046591759,
-0.001104988856241107,
-0.03427664935588837,
0.004476683214306831,
0.02232028730213642,
-0.041453663259744644,
-0.015508309006690979,
-0.047324325889348984,
-0.027519240975379944,
-0.011992085725069046,
0.011970638297498226,
-0.05144834890961647,
-0.0006906732451170683,
-0.04120275750756264,
-0.01788686215877533,
0.006090088281780481,
-0.021527498960494995,
-0.005211692303419113,
0.04317531734704971,
0.016888312995433807,
-0.02659543976187706,
-0.022393550723791122,
-0.021218981593847275,
0.015445307828485966,
0.005455398000776768,
-0.01647445559501648,
-0.031079856678843498,
-0.01192055270075798,
-0.020692605525255203,
-0.0016889252001419663,
-0.016306402161717415,
-0.03063543699681759,
0.045420244336128235,
-0.05464615672826767,
-0.0028805434703826904,
-0.008158584125339985,
0.022118696942925453,
0.008161432109773159,
-0.007605014368891716,
0.01180492714047432,
-0.05847148224711418,
-0.011814992874860764,
0.026398947462439537,
-0.0045862519182264805,
0.025799695402383804,
-0.005171594675630331,
-0.004914593882858753,
-0.019016673788428307,
0.015360896475613117,
0.041805025190114975,
-0.0019064353546127677,
0.03256475552916527,
-0.010229634121060371,
-0.025477472692728043,
-0.03518647328019142,
-0.0696868896484375,
0.0069836899638175964,
-0.030903764069080353,
-0.036121588200330734,
-0.0077751148492097855,
0.8238196969032288,
0.015655171126127243,
0.0470363013446331,
-0.021918782964348793,
0.033565815538167953,
-0.012266481295228004,
0.029118092730641365,
0.016263296827673912,
-0.022626494988799095,
0.018520744517445564,
-0.013535376638174057,
0.009748266078531742,
-0.01418532058596611,
0.04393872991204262,
-0.009933988563716412,
-0.025466257706284523,
0.04634394124150276,
-0.022864123806357384,
0.004699481185525656,
0.018175188452005386,
-0.003824693849310279,
-0.003138428321108222,
-0.02185167372226715,
-0.05429989472031593,
0.020584898069500923,
-0.006188773084431887,
-0.12950748205184937,
0.013820831663906574,
-7.056909153796765e-33,
0.01817302592098713,
-0.03176020085811615,
0.04209359362721443,
-0.018359558656811714,
0.004898639861494303,
-0.012825960293412209,
-0.007731706835329533,
0.028817493468523026,
0.008002186194062233,
-0.02375299297273159,
-0.04576127231121063,
-0.025620268657803535,
-0.017069121822714806,
-0.02865147590637207,
0.04923136532306671,
0.05509959161281586,
0.002809615572914481,
0.06287170201539993,
-0.056915704160928726,
0.026316368952393532,
0.01407549623399973,
0.0036314036697149277,
-0.02791512757539749,
-0.004041820298880339,
0.02676854282617569,
0.05065524950623512,
0.0010604289127513766,
0.010787188075482845,
-0.023306829854846,
-0.03928786516189575,
-0.05097247287631035,
-0.024171948432922363,
-0.04098792374134064,
-0.0063743251375854015,
0.03979603573679924,
-0.07931369543075562,
-0.016675107181072235,
0.01371715497225523,
-0.017300790175795555,
-0.036479149013757706,
-0.02423950284719467,
0.01351731363683939,
-0.05242249742150307,
0.025559188798069954,
0.013635857030749321,
-0.02100525237619877,
0.01632252149283886,
0.06302852183580399,
-0.029301842674613,
0.009992298670113087,
0.016944166272878647,
0.018704423680901527,
-0.05025433003902435,
0.01773572526872158,
0.01503042783588171,
0.009386495687067509,
-0.008343254216015339,
0.00834083091467619,
-0.0017755880253389478,
0.03252533823251724,
0.01401535328477621,
-0.01434222050011158,
-0.01791798695921898,
0.001458061975426972,
-0.0049392543733119965,
0.014163519255816936,
-0.014968020841479301,
-0.022193120792508125,
0.0052321613766252995,
-0.02578059956431389,
0.00880507193505764,
-0.019329216331243515,
0.018684761598706245,
-0.01158610824495554,
-0.03769988566637039,
-0.04922695830464363,
-0.008078422397375107,
-0.015141310170292854,
0.00750262476503849,
0.03970040753483772,
0.023442059755325317,
0.00034310828777961433,
-0.037513360381126404,
-0.052035994827747345,
-0.02753842994570732,
-0.03302154317498207,
0.014916780404746532,
-0.025842394679784775,
-0.01622345857322216,
0.003587347688153386,
0.061633091419935226,
0.006855939980596304,
-0.010209188796579838,
-0.012396222911775112,
-0.0293794646859169,
7.146567781353827e-33,
0.0033239005133509636,
-0.029949788004159927,
-0.006463408935815096,
-0.034762538969516754,
-0.0016026700614020228,
-0.01264827512204647,
-0.008836538530886173,
0.03697171062231064,
-0.04834674671292305,
0.004856133833527565,
-0.06776592880487442,
-0.010788352228701115,
0.006130984518676996,
0.007657390087842941,
0.08096126466989517,
0.030232401564717293,
0.04683482646942139,
0.01997944340109825,
-0.05112024024128914,
0.01740001142024994,
0.0466478206217289,
0.011280938051640987,
0.032664306461811066,
0.039168015122413635,
0.03838902711868286,
0.019540857523679733,
-0.012813825160264969,
0.002614458091557026,
-0.04041095823049545,
0.04797165095806122,
-0.007798703853040934,
-0.00503759877756238,
-0.01956888660788536,
-0.005362407304346561,
-0.02879599668085575,
0.025527948513627052,
0.001767268287949264,
-0.0021715282928198576,
-0.005302366800606251,
-0.012192046269774437,
0.014972543343901634,
-0.00733139319345355,
0.03226521238684654,
0.056055858731269836,
-0.013403699733316898,
0.011684185825288296,
0.006852790713310242,
0.0296710804104805,
-0.026213716715574265,
-0.018371349200606346,
-0.027911324054002762,
0.0002920761180575937,
0.01062643900513649,
0.01733907125890255,
0.03132804110646248,
-0.0071163298562169075,
-0.07445088028907776,
0.03308204934000969,
-0.02583461068570614,
-0.0625840425491333,
-0.010355998761951923,
0.016845520585775375,
-0.0037026337813585997,
0.04382123425602913,
0.014234544709324837,
0.02046852745115757,
0.020785829052329063,
-0.008250139653682709,
-0.01825960911810398,
-0.005119770765304565,
-0.01359611563384533,
-0.007321130950003862,
-0.025391381233930588,
0.06694621592760086,
0.047107670456171036,
-0.017361612990498543,
-0.011083930730819702,
-0.0074030556716024876,
-0.030889267101883888,
0.008844845928251743,
0.020129194483160973,
0.016305014491081238,
0.03093777783215046,
-0.005755833350121975,
-0.0005876405048184097,
0.025018226355314255,
-0.04005466774106026,
0.024930529296398163,
-0.012053284794092178,
0.014225796796381474,
-0.024436505511403084,
0.014001176692545414,
-0.021690307185053825,
0.04410804063081741,
0.007735838182270527,
-1.2656420800283286e-8,
0.018111050128936768,
-0.00931637641042471,
-0.0027335570193827152,
0.004342521540820599,
0.02106100507080555,
-0.01943057030439377,
-0.016840815544128418,
0.03107006661593914,
-0.0283262487500906,
0.002209206810221076,
-0.01935921609401703,
-0.0008736038580536842,
0.039684608578681946,
0.024795090779662132,
0.052362117916345596,
-0.034778106957674026,
0.021641764789819717,
-0.029436225071549416,
-0.002831684425473213,
-0.000676022085826844,
0.01585807092487812,
0.04493186995387077,
-0.02043134719133377,
0.027006078511476517,
0.016528740525245667,
0.053955450654029846,
0.03476099669933319,
-0.052930790930986404,
0.06358038634061813,
0.003039916744455695,
0.04859357699751854,
-0.011337513104081154,
-0.04954686388373375,
0.026209088042378426,
-0.01762000285089016,
-0.03417590633034706,
0.030188225209712982,
0.07270438224077225,
-0.003824789309874177,
0.019460445269942284,
-0.05910668894648552,
0.038554880768060684,
-0.031663767993450165,
-0.005285199731588364,
-0.0006745845312252641,
0.0487990528345108,
-0.004802524112164974,
0.020925626158714294,
0.0017428096616640687,
-0.012451861053705215,
0.010464539751410484,
-0.019321594387292862,
-0.012430760078132153,
0.03164853900671005,
-0.018461717292666435,
0.01786728762090206,
-0.004055418539792299,
0.04222703352570534,
0.006071350537240505,
-0.030161630362272263,
0.013523051515221596,
0.01414958294481039,
-0.022227464243769646,
-0.021852625533938408
] | oracle-spatial-querying-by-a-pointlatitudelongitude | https://markhneedham.com/blog/2012/03/23/oracle-spatial-querying-by-a-pointlatitudelongitude |
Subsets and Splits