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
2013-03-02 22:19:11
Ruby/Haml: Maintaining white space/indentation in a <pre> tag
[ "ruby", "haml" ]
[ "Ruby" ]
I've been writing a little web app in which I wanted to display cypher queries inside a .... tag which was then prettified using SyntaxHighlighter but I was having problems with how code on new lines was being displayed.</p> I had the following Haml code to display a query looking up Gareth Bale in a graph: ~~~haml %pre{ :class => "brush: cypher; gutter: false; toolbar: false;"} START player = node:players('name:"Gareth Bale"') RETURN player.name ~~~ When I rendered the page it looked like this: After a bit of googling I ended up on this Stack Overflow post which described the preserve helper which seems to do the job: ~~~haml %pre{ :class => "brush: cypher; gutter: false; toolbar: false;"} = preserve do START player = node:players('name:"Gareth Bale"') RETURN player.name ~~~ That part of the page now looks much better: ....
null
null
[ -0.0019903937354683876, 0.00808318704366684, -0.009668193757534027, 0.02311558462679386, 0.07695745676755905, -0.06051728501915932, 0.025095874443650246, 0.022974137216806412, 0.014656760729849339, -0.02619204670190811, -0.04213530570268631, -0.013790389522910118, -0.06605936586856842, 0.0248700138181448, 0.046081461012363434, 0.06770113110542297, 0.055188555270433426, 0.020836269482970238, -0.0018790991744026542, -0.01789695955812931, 0.014547174796462059, 0.03636796399950981, -0.038810133934020996, 0.02184220217168331, 0.05248145014047623, 0.018285520374774933, -0.0035549323074519634, -0.0015233546728268266, -0.0514235645532608, 0.01112882699817419, 0.0442526750266552, -0.007294792681932449, 0.036192286759614944, -0.04619140177965164, 0.00037274337955750525, -0.019798971712589264, -0.055345967411994934, 0.028655720874667168, -0.02468778006732464, 0.013208938762545586, -0.05851499363780022, 0.03102019988000393, 0.003674939274787903, 0.020228311419487, -0.03011920489370823, 0.0027092990931123495, -0.040306370705366135, 0.038813456892967224, -0.013051130808889866, -0.0262113269418478, -0.09875192493200302, 0.007202784530818462, -0.006957759149372578, 0.0021515542175620794, -0.00403475109487772, 0.020453866571187973, 0.031244555488228798, -0.06228559836745262, 0.019654804840683937, -0.02501402609050274, -0.007472021039575338, 0.02294749580323696, -0.0009578262106515467, 0.037118084728717804, 0.012945973314344883, -0.05892718955874443, -0.017182104289531708, 0.04549649730324745, -0.04191352054476738, -0.03295323997735977, 0.013218731619417667, 0.03988935053348541, -0.04428495839238167, -0.01943858526647091, 0.04628293588757515, -0.009838410653173923, -0.010755634866654873, 0.050846751779317856, 0.013643290847539902, 0.05246356129646301, -0.025991812348365784, 0.01793152652680874, 0.03762165084481239, 0.03476153686642647, 0.020564259961247444, -0.024792905896902084, -0.047403983771800995, -0.024995742365717888, -0.028037313371896744, 0.06777505576610565, 0.026336777955293655, -0.07204041630029678, 0.015818685293197632, -0.027088921517133713, 0.0030005290172994137, 0.026100140064954758, 0.0074812276288867, 0.016573255881667137, 0.007589906454086304, -0.061842113733291626, -0.036047667264938354, -0.03127986937761307, 0.020349109545350075, -0.046882499009370804, -0.08334606885910034, 0.00594460591673851, -0.03059615008533001, -0.016557009890675545, 0.03905666247010231, -0.010475553572177887, -0.02020377293229103, 0.004839352332055569, -0.015989355742931366, 0.014483394101262093, -0.042351432144641876, 0.07269053161144257, 0.026803653687238693, 0.003228137968108058, -0.012171938084065914, 0.056566253304481506, 0.012399108149111271, 0.03508520871400833, 0.00522318109869957, 0.09861709922552109, 0.002861635060980916, 0.0401419922709465, -0.00817665085196495, 0.03776594623923302, -0.038983263075351715, -0.07022848725318909, 0.0072816116735339165, 0.08846821635961533, -0.031177595257759094, 0.043022215366363525, -0.03569445759057999, -0.003949412610381842, -0.0028736055828630924, -0.032966237515211105, 0.046627797186374664, 0.027394991368055344, -0.0018640117486938834, -0.03055662102997303, 0.012139947153627872, -0.0066368174739181995, 0.006086805369704962, -0.008295595645904541, -0.01345342118293047, -0.00934622809290886, 0.013944020494818687, 0.03488568589091301, 0.044180963188409805, -0.008806048892438412, 0.05727937072515488, 0.009626567363739014, 0.026001514866948128, 0.07464417815208435, 0.04854549840092659, -0.0004915206809528172, -0.004649038426578045, -0.007307503372430801, 0.029943451285362244, 0.016302207484841347, 0.015203006565570831, 0.07814812660217285, -0.008307763375341892, 0.011531746946275234, -0.009767738170921803, 0.02890440635383129, -0.017394326627254486, -0.01087076123803854, -0.03145270049571991, -0.03452213481068611, 0.09218233078718185, -0.04154672473669052, 0.006573024205863476, 0.05468684434890747, 0.05374104529619217, 0.016676124185323715, 0.034351594746112823, -0.012121637351810932, -0.05270453914999962, 0.002027110429480672, 0.0035980779211968184, 0.03314807265996933, -0.0035496344789862633, -0.012500973418354988, 0.08158420026302338, 0.03660065308213234, -0.026326948776841164, 0.02561420202255249, -0.10337275266647339, -0.06164003908634186, -0.0012901670997962356, -0.023112766444683075, 0.09441567957401276, -0.027611106634140015, 0.03232318535447121, 0.03458811715245247, 0.02210954576730728, 0.02581278420984745, 0.007081994786858559, 0.007549295201897621, 0.00046020650188438594, -0.030611176043748856, -0.06602845340967178, 0.04487370699644089, 0.03284932300448418, -0.0415002703666687, -0.06442155689001083, 0.02225979045033455, -0.00700836768373847, 0.015665490180253983, 0.035278696566820145, 0.005958261899650097, 0.020753463730216026, 0.030252620577812195, 0.035943642258644104, -0.02063797600567341, 0.017456181347370148, -0.041707687079906464, 0.023578308522701263, 0.02915113791823387, -0.0027091670781373978, -0.03528403490781784, -0.01698954962193966, 0.13148851692676544, 0.05141248553991318, -0.04072162136435509, -0.05764162912964821, 0.01925821788609028, -0.01377171277999878, -0.03508691489696503, 0.023235704749822617, -0.03063395619392395, -0.03512931242585182, -0.03934657946228981, -0.04087613895535469, -0.0173569954931736, 0.0011497619561851025, -0.03557789325714111, 0.009128094650804996, 0.0438540019094944, -0.0057482635602355, 0.020759889855980873, -0.007308242376893759, 0.0018405521987006068, 0.013859163969755173, -0.022959142923355103, -0.05359246954321861, 0.040518127381801605, 0.01998671516776085, -0.00398657564073801, 0.043266162276268005, -0.03263768553733826, -0.0333564393222332, -0.005437952931970358, -0.027799127623438835, 0.009422904811799526, 0.02902401238679886, 0.05774756148457527, 0.026293138042092323, 0.03628646582365036, -0.03039417415857315, 0.01172755379229784, -0.03556409478187561, -0.05291182920336723, -0.04465019702911377, -0.046230390667915344, 0.029774300754070282, 0.006117921322584152, 0.021309692412614822, 0.015674861147999763, 0.019304605200886726, 0.0004874200385529548, 0.005281801335513592, 0.01317607145756483, 0.01968015730381012, -0.00215319637209177, 0.026357315480709076, -0.022653689607977867, -0.01768490858376026, 0.04497795179486275, -0.051605913788080215, -0.029571356251835823, -0.05480796843767166, -0.03814975172281265, 0.055247046053409576, -0.06678687781095505, -0.053085267543792725, -0.00030821244581602514, 0.05487159639596939, 0.06064576655626297, 0.016765540465712547, 0.05680521950125694, 0.053458914160728455, -0.010247106663882732, 0.021321143954992294, 0.0242721289396286, -0.023723674938082695, 0.06611089408397675, 0.006953379604965448, 0.056111130863428116, 0.04859045520424843, -0.03489379584789276, 0.005037284456193447, -0.028226526454091072, 0.009617416188120842, -0.027636125683784485, -0.2793852686882019, 0.05619686096906662, -0.0022124943789094687, -0.04012252762913704, 0.011670924723148346, -0.032281361520290375, -0.028884153813123703, -0.02191484160721302, -0.015112722292542458, 0.0010712742805480957, 0.007195421494543552, -0.02972657047212124, -0.013983253389596939, 0.025752350687980652, 0.03546195477247238, 0.02588651515543461, -0.004214382264763117, -0.0473395437002182, 0.007612170185893774, 0.011857200413942337, -0.027504397556185722, -0.042497631162405014, -0.003288719803094864, 0.024369526654481888, 0.02863987535238266, 0.02275802381336689, -0.08386053144931793, 0.011106357909739017, -0.04219590499997139, -0.03188732638955116, 0.013221177272498608, -0.0240175761282444, -0.009179129265248775, 0.007230318151414394, -0.02966831810772419, 0.003578591626137495, 0.036234814673662186, 0.025425639003515244, 0.04338820278644562, 0.04948652908205986, -0.01995798759162426, -0.03442247211933136, -0.003949129953980446, -0.018726550042629242, 0.09795335680246353, -0.012170093134045601, -0.0685960054397583, -0.016107195988297462, -0.020303428173065186, 0.06938722729682922, -0.023680783808231354, -0.04099681228399277, -0.011722124181687832, 0.023344751447439194, 0.009503810666501522, -0.03596530854701996, 0.002502367366105318, -0.020230218768119812, -0.05034315213561058, -0.0405057929456234, -0.02105840854346752, -0.02987566590309143, 0.0038711032830178738, -0.01834510825574398, 0.00792396254837513, -0.055419810116291046, -0.02772558480501175, -0.026378732174634933, 0.039335738867521286, 0.023890480399131775, -0.03857959061861038, 0.018243245780467987, -0.004857057239860296, -0.0936112031340599, -0.008401949889957905, -0.042963653802871704, 0.0265758465975523, 0.0001414967846358195, -0.006139659788459539, 0.01035594753921032, -0.03206636384129524, -0.059939801692962646, 0.006226256489753723, 0.00882931798696518, 0.03306114673614502, 0.01379266194999218, 0.0311879925429821, -0.02636069804430008, -0.031828925013542175, 0.0015179674373939633, 0.07419387996196747, -0.02004559338092804, -0.025766827166080475, 0.030120259150862694, -0.01508255209773779, 0.035407453775405884, 0.015463891439139843, -0.029553739354014397, 0.019858254119753838, 0.050200603902339935, 0.043327633291482925, -0.03262913227081299, 0.011102989315986633, -0.0024912802036851645, -0.01696680299937725, 0.03213568031787872, -0.033830367028713226, 0.01317559089511633, 0.04801900312304497, 0.0027497888077050447, -0.006544499192386866, -0.027237897738814354, -0.004142125137150288, -0.01505091693252325, -0.024589983746409416, -0.02240973711013794, 0.025342438369989395, 0.0038311288226395845, 0.050035472959280014, -0.041495535522699356, -0.060824859887361526, 0.006035591475665569, 0.008554230444133282, 0.0006821172428317368, -0.0691990852355957, -0.04613131284713745, -0.009356160648167133, -0.003511265618726611, 0.025347726419568062, 0.004583452828228474, -0.010813169181346893, 0.046200282871723175, 0.028255844488739967, -0.05029742792248726, 0.0608186274766922, -0.0027140816673636436, -0.03699427470564842, -0.03402300924062729, -0.010684704408049583, 0.013230113312602043, -0.01513363141566515, -0.007305362727493048, 0.04156599938869476, 0.03923232480883598, 0.06441277265548706, -0.0365075059235096, 0.010348916985094547, -0.02352430485188961, 0.007875530049204826, 0.0032686360646039248, -0.010058077052235603, -0.04395784065127373, 0.027602290734648705, -0.07627822458744049, -0.003027742262929678, -0.030712928622961044, 0.04300013929605484, -0.0018467059126123786, -0.02221609279513359, -0.02601231448352337, 0.03400642052292824, -0.0636093020439148, -0.0011232122778892517, 0.01552505511790514, 0.0009807939641177654, 0.05710157752037048, -0.012929433956742287, 0.027283072471618652, -0.021396519616246223, -0.01157874334603548, -0.0346725657582283, 0.010135012678802013, -0.022275855764746666, 0.0029775951988995075, -0.024070773273706436, -0.004538663197308779, -0.008057018741965294, 0.034419674426317215, 0.0008935296791605651, 0.01576344110071659, -0.011542081832885742, 0.022425098344683647, 0.020541321486234665, 0.04732949286699295, 0.05017608776688576, 0.015493589453399181, -0.02205648459494114, -0.000096820731414482, -0.03287191316485405, -0.005149101838469505, -0.0002912697964347899, -0.004878985695540905, -0.03070971369743347, 0.013502311892807484, -0.02797565795481205, -0.07688625901937485, 0.007072972133755684, 0.028339117765426636, 0.017774876207113266, -0.0032583102583885193, 0.015527458861470222, -0.017545253038406372, -0.037146348506212234, 0.020430346950888634, 0.05258553847670555, -0.06416827440261841, -0.005359055940061808, 0.0018125241622328758, -0.035150304436683655, -0.004349487833678722, 0.014234491623938084, -0.07270661741495132, -0.027726344764232635, -0.03025330789387226, 0.013911426067352295, -0.016770774498581886, -0.025830557569861412, -0.008616478182375431, 0.002732665743678808, -0.008604174479842186, -0.011603041552007198, -0.006221212446689606, 0.011724286712706089, 0.010870182886719704, -0.02575766295194626, 0.019911957904696465, 0.0002713918511290103, 0.0019710208289325237, 0.02524224855005741, -0.018354658037424088, 0.052508626133203506, -0.005748766008764505, 0.07116957753896713, 0.030113065615296364, 0.012483768165111542, -0.005915590096265078, -0.054466646164655685, -0.0064502134919166565, -0.03833586350083351, 0.04886956885457039, 0.02638547495007515, -0.004815698601305485, -0.030018186196684837, 0.01089494489133358, -0.01086236909031868, -0.016094617545604706, -0.01082852203398943, -0.034432537853717804, 0.00708149466663599, 0.025491543114185333, 0.0023122697602957487, 0.04446860030293465, -0.009078559465706348, -0.016270646825432777, 0.056339848786592484, -0.024105602875351906, -0.03424501791596413, 0.013995155692100525, -0.05828695371747017, 0.011908769607543945, 0.023630419746041298, 0.026533689349889755, -0.05738384649157524, 0.06275027245283127, 0.019146407023072243, 0.014882533811032772, 0.016248101368546486, -0.033857379108667374, 0.028910666704177856, -0.03272125869989395, 0.012332442216575146, -0.0707445964217186, 0.04427221417427063, 0.06737937033176422, -0.007366248406469822, -0.03448106348514557, -0.04264155402779579, -0.04638112708926201, 0.013183697126805782, -0.06523120403289795, -0.041933029890060425, 0.016734419390559196, 0.04525172710418701, 0.011458644643425941, 0.022601444274187088, -0.05559930205345154, 0.010223652236163616, 0.04544954001903534, -0.016144292429089546, -0.05888419225811958, -0.04932412505149841, 0.042325459420681, -0.022148851305246353, 0.02226193994283676, -0.007040044292807579, -0.028113875538110733, 0.0641142725944519, 0.030637012794613838, 0.034003738313913345, 0.01941615901887417, -0.009427550248801708, 0.015444341115653515, 0.03571369871497154, 0.005011952482163906, -0.008069681003689766, 0.04970138892531395, -0.028043346479535103, -0.04997468367218971, 0.0050890580751001835, -0.00646440451964736, -0.01403905265033245, -0.04261743649840355, 0.06270574778318405, -0.008316898718476295, -0.029728956520557404, -0.011980807408690453, 0.0368322990834713, -0.03546467795968056, -0.029321542009711266, -0.038612883538007736, 0.00549809355288744, -0.0225022342056036, 0.05100713297724724, -0.0015224029775708914, -0.0014001067029312253, 0.07358255982398987, -0.009789654985070229, -0.016188722103834152, -0.005299857351928949, 0.09173087775707245, 0.10468617081642151, 0.04635247960686684, -0.027810197323560715, 0.07264107465744019, -0.036824777722358704, -0.03222182020545006, -0.026905575767159462, -0.017873015254735947, -0.005007586441934109, 0.002146354876458645, 0.01606687344610691, 0.07189081609249115, -0.04279711842536926, 0.052572499960660934, -0.02496112324297428, -0.036326341331005096, 0.013955029658973217, 0.013896280899643898, 0.010792937129735947, 0.095332071185112, 0.009086702018976212, 0.02562638744711876, 0.00005759532723459415, -0.03853166103363037, 0.02838118001818657, -0.030434075742959976, -0.02019481360912323, 0.03892150893807411, -0.010867523029446602, -0.015012805350124836, -0.00489085866138339, 0.025274811312556267, 0.09882226586341858, -0.027865217998623848, -0.011847431771457195, 0.008048910647630692, 0.003769087838009, -0.0034730408806353807, 0.02442520670592785, -0.0028053137939423323, -0.022118687629699707, -0.023663710802793503, -0.029983948916196823, -0.017623981460928917, -0.054526932537555695, -0.03595362976193428, 0.03226831555366516, -0.03787696361541748, 0.015784086659550667, 0.011196713894605637, -0.019643420353531837, -0.02549838088452816, -0.06820434331893921, -0.05644173547625542, -0.06407701224088669, -0.06154405698180199, -0.0381268747150898, 0.007830853573977947, -0.005381608847528696, -0.05230151489377022, 0.007189434487372637, -0.01148911565542221, -0.019650481641292572, 0.01658659055829048, -0.019221896305680275, -0.02413344196975231, 0.01680983044207096, 0.03569294884800911, 0.009858899749815464, 0.013509112410247326, 0.023914214223623276, 0.008667794987559319, 0.013759113848209381, -0.029994938522577286, -0.006199702154844999, 0.031230971217155457, 0.019927728921175003, 0.0001645647716941312, -0.07446343451738358, 0.0013815010897815228, 0.006778163835406303, 0.0026328323874622583, -0.07695895433425903, 0.01202121190726757, 0.02807288058102131, -0.004119191784411669, 0.05016627535223961, -0.003117828629910946, 0.04111833497881889, -0.01708241179585457, 0.012083069421350956, -0.02716629020869732, 0.02652386575937271, 0.04077576845884323, -0.019871827214956284, 0.09110324829816818, -0.002669770270586014, 0.011924236081540585, -0.04806329309940338, -0.02904384583234787, 0.005237312987446785, -0.011472602374851704, -0.060244180262088776, -0.04476311057806015, -0.042794179171323776, -0.07412436604499817, -0.0029106694273650646, -0.0005891330074518919, 0.00812945794314146, -0.03427710384130478, -0.020818784832954407, 0.02920019067823887, -0.04717123508453369, 0.03477058559656143, -0.03806402534246445, 0.022136768326163292, -0.003889963263645768, -0.027116842567920685, -0.012755430303514004, 0.025089696049690247, 0.008814694359898567, -0.0025028367526829243, 0.019650626927614212, -0.030460935086011887, 0.017363090068101883, -0.016412539407610893, 0.001950632082298398, 0.013553566299378872, 0.01811681129038334, 0.01208128035068512 ]
[ -0.0789705216884613, 0.009165874682366848, -0.06180832162499428, -0.013598119840025902, 0.062212638556957245, -0.02928823232650757, -0.007510230876505375, 0.01804349757730961, 0.006601068191230297, -0.013316423632204533, -0.004398090299218893, -0.027744518592953682, 0.011323525570333004, 0.002074814634397626, 0.07792151719331741, 0.020453307777643204, -0.010029515251517296, -0.025980837643146515, -0.030253879725933075, 0.014460177160799503, -0.009587530978024006, -0.014434860087931156, -0.004850171972066164, -0.03962790593504906, 0.004683664068579674, 0.03504808992147446, -0.002584705827757716, -0.027362244203686714, -0.0052284132689237595, -0.20837284624576569, 0.01842951774597168, -0.002417513867840171, -0.013964246958494186, -0.0031847867649048567, -0.029881339520215988, 0.01659448631107807, 0.056055717170238495, -0.019590260460972786, 0.030757900327444077, 0.0652434453368187, 0.03248382359743118, -0.008188985288143158, -0.06927646696567535, -0.004529691766947508, 0.04878177121281624, -0.007599436212331057, 0.005301384255290031, -0.056628476828336716, -0.021269390359520912, 0.03842834755778313, -0.02287130430340767, -0.03851792961359024, -0.010582217015326023, -0.02956984005868435, 0.007321302313357592, 0.0331813283264637, 0.035554490983486176, 0.06582926213741302, 0.04716785252094269, 0.057980895042419434, -0.013472842052578926, -0.015136441215872765, -0.13538886606693268, 0.1071426272392273, -0.0005411962629295886, 0.0473182387650013, -0.05036346986889839, -0.018491588532924652, -0.029806142672896385, 0.08635837584733963, 0.03924676775932312, -0.044710226356983185, -0.041285037994384766, 0.07912026345729828, -0.01258031651377678, -0.005140375345945358, 0.021866826340556145, 0.0002248623495688662, 0.03249311074614525, -0.047582969069480896, -0.05387066304683685, -0.01047497522085905, -0.028459956869482994, -0.002188209444284439, -0.028759140521287918, 0.028543761000037193, -0.030446670949459076, 0.06138677895069122, 0.03294213488698006, -0.001212232280522585, 0.03525310754776001, -0.028899913653731346, 0.03428797423839569, 0.01815609820187092, -0.09951311349868774, -0.022272910922765732, -0.01389786321669817, 0.03511638194322586, -0.049738164991140366, 0.4154405891895294, -0.021260911598801613, -0.016376616433262825, 0.05957923084497452, -0.00027328188298270106, 0.024495461955666542, -0.015185649506747723, 0.04177582636475563, -0.023985914885997772, 0.012500690296292305, -0.03754295036196709, 0.0014575202949345112, -0.02538980357348919, 0.0383855439722538, -0.03646747022867203, 0.012157006189227104, 0.010031577199697495, 0.03844860941171646, -0.00040869598160497844, 0.001677128835581243, -0.008283033035695553, 0.01665017195045948, 0.03428536280989647, 0.023188825696706772, 0.01914030686020851, 0.022375820204615593, 0.027412276715040207, 0.030270317569375038, 0.06346454471349716, 0.0022483589127659798, 0.02478291466832161, 0.05074533820152283, -0.016320813447237015, -0.05192533880472183, 0.020314380526542664, -0.00830311793833971, -0.006380369886755943, 0.03246220946311951, -0.03343143314123154, 0.02530808188021183, 0.012041781097650528, -0.031144671142101288, -0.007877439260482788, 0.028548656031489372, 0.013930639252066612, -0.03400392830371857, 0.07287495583295822, -0.00030880069243721664, -0.03048296831548214, -0.030463702976703644, -0.03547172620892525, -0.03584407642483711, 0.022396018728613853, -0.006777202244848013, -0.043265316635370255, -0.016076935455203056, 0.030324745923280716, 0.06565115600824356, -0.012752635404467583, -0.054613396525382996, -0.008625446818768978, -0.00047306885244324803, -0.044034525752067566, -0.04182235896587372, 0.06218980252742767, 0.02632383070886135, -0.120243601500988, -0.02969590201973915, 0.013812949880957603, 0.02206677757203579, -0.07518400251865387, -0.02890085242688656, 0.04743441939353943, -0.031632713973522186, -0.024926256388425827, 0.04954018071293831, -0.02132674679160118, -0.05400971323251724, 0.00991219561547041, 0.05691850185394287, 0.003195267403498292, -0.00023242692986968905, 0.005113133229315281, -0.030818892642855644, 0.005232980940490961, -0.0403282456099987, -0.07201234251260757, -0.06169581785798073, 0.017951350659132004, -0.016890091821551323, -0.03149803727865219, -0.03342588245868683, -0.023903312161564827, -0.03668772056698799, 0.04521343857049942, -0.035984888672828674, 0.007740389090031385, -0.02651217207312584, -0.02813193015754223, 0.0026682105381041765, -0.033891234546899796, 0.05821804329752922, 0.02882833406329155, -0.011618353426456451, 0.04149296134710312, -0.031658511608839035, 0.03453139588236809, 0.04884013906121254, -0.03732534870505333, 0.0820070281624794, 0.015288040041923523, -0.08166537433862686, 0.005257881712168455, -0.02203267626464367, 0.020749663934111595, 0.005601143464446068, -0.014429524540901184, -0.02027457393705845, 0.005006578750908375, 0.04660189524292946, 0.02364843338727951, -0.023352259770035744, -0.04369359835982323, -0.06034374237060547, -0.35505515336990356, -0.012034649960696697, -0.029531098902225494, -0.017239635810256004, 0.04411769658327103, -0.06420791149139404, 0.01825488545000553, -0.028292054310441017, 0.011434695683419704, -0.025451093912124634, 0.09169623255729675, -0.0011777563486248255, -0.0035794167779386044, -0.09516427665948868, -0.022711055353283882, 0.029074454680085182, -0.000646471104118973, -0.011445256881415844, -0.014195932075381279, 0.045834776014089584, 0.018983978778123856, -0.06760884821414948, -0.025449175387620926, -0.06359710544347763, -0.009221561253070831, -0.022154675796628, 0.13957519829273224, 0.04028566554188728, 0.06250644475221634, -0.05769399553537369, 0.050044991075992584, -0.0047568753361701965, -0.011116061359643936, -0.07936988025903702, 0.023881852626800537, -0.007227899972349405, -0.009398744441568851, 0.0077328127808868885, -0.0002689432876650244, -0.017390387132763863, -0.009489220567047596, -0.0038658510893583298, -0.038346581161022186, -0.05410408228635788, -0.03374508023262024, 0.020051011815667152, -0.03048589453101158, -0.02278818190097809, -0.024654608219861984, 0.07452986389398575, 0.0127906808629632, -0.010174904018640518, 0.02500033751130104, 0.03163399547338486, 0.012944206595420837, 0.00003686954005388543, -0.05358775705099106, -0.034925106912851334, 0.005465729162096977, 0.01827465370297432, 0.015250751748681068, 0.028413834050297737, 0.027555156499147415, -0.08594748377799988, 0.028892485424876213, 0.036003533750772476, 0.026304658502340317, -0.01415993832051754, 0.045222941786050797, -0.06226307526230812, -0.05690104141831398, 0.07890399545431137, 0.004030360374599695, 0.004256278742104769, 0.022287840023636818, 0.05709068104624748, -0.011700316332280636, 0.0360555499792099, 0.018712330609560013, 0.0031420779414474964, 0.017762985080480576, -0.0028004080522805452, 0.062336456030607224, -0.03637530654668808, -0.03061673603951931, 0.05844467505812645, -0.03725726157426834, -0.02852267399430275, 0.060154303908348083, 0.00011670339154079556, -0.043539125472307205, 0.012984057888388634, -0.008725902996957302, -0.03910636156797409, 0.055591896176338196, -0.01885783113539219, -0.2741056978702545, 0.033592574298381805, 0.05385454744100571, 0.058029040694236755, -0.0038599262479692698, 0.00659169489517808, 0.03132018446922302, -0.010043448768556118, -0.002395193325355649, 0.0015529283555224538, 0.03318701311945915, 0.031049290671944618, -0.008127756416797638, -0.012415423057973385, 0.01855282112956047, -0.0021145648788660765, 0.05450069159269333, -0.0028215341735631227, 0.01539664901793003, 0.023177413269877434, 0.03857416659593582, -0.04451892524957657, 0.19573991000652313, 0.04688325524330139, 0.04253481328487396, 0.018824001774191856, -0.00962559599429369, -0.01850888505578041, 0.04413596913218498, 0.023019863292574883, 0.01483702939003706, 0.012406749650835991, 0.06425072997808456, 0.04518716037273407, 0.007241266779601574, -0.053608041256666183, -0.01901639625430107, 0.025808658450841904, 0.005588465370237827, -0.01792314276099205, -0.003324653720483184, 0.023780960589647293, -0.055352263152599335, 0.04004330933094025, 0.042967744171619415, -0.00789932906627655, 0.007218190003186464, 0.010193213820457458, -0.04742128774523735, -0.020446524024009705, 0.007088260725140572, -0.03309779241681099, -0.014914308674633503, -0.023007581010460854, -0.00785775575786829, 0.05760601535439491, 0.039594780653715134, 0.003138881642371416, -0.007557818666100502, 0.038645725697278976, 0.0023610005155205727, -0.02255433425307274, 0.13149438798427582, -0.03188543766736984, 0.015126531943678856 ]
[ 0.0021232517901808023, 0.04639831557869911, 0.05532500147819519, 0.02482607029378414, 0.00558639969676733, 0.01850467547774315, -0.03495968133211136, 0.011103986762464046, -0.006922285072505474, 0.0030695688910782337, -0.0036723590455949306, -0.00016584045079071075, 0.04229689761996269, -0.0037492946721613407, 0.019637659192085266, 0.023899786174297333, 0.008098335936665535, -0.008971469476819038, 0.0017480094684287906, -0.02679629810154438, -0.022343790158629417, 0.0047531635500490665, 0.030337980017066002, -0.0022917441092431545, 0.007144487928599119, -0.002815084997564554, -0.04013833776116371, 0.05412629619240761, 0.03953142836689949, -0.10447030514478683, -0.036365509033203125, -0.032123859971761703, 0.005053752101957798, 0.052949801087379456, -0.027862709015607834, 0.046223461627960205, 0.04637432098388672, 0.0349818579852581, 0.016961973160505295, 0.033198531717061996, 0.012749099172651768, -0.02272835373878479, -0.06574174016714096, 0.007540329359471798, 0.016217002645134926, -0.01752922125160694, -0.023545052856206894, -0.013241591863334179, -0.021578719839453697, -0.020637068897485733, -0.02777675725519657, -0.04202434420585632, 0.01295295637100935, -0.027653314173221588, 0.006342687644064426, 0.04620086029171944, -0.04800887405872345, -0.04308384656906128, 0.004722567740827799, -0.02384094148874283, 0.006142185069620609, 0.008789033629000187, -0.05407959967851639, -0.01762482337653637, -0.014665935188531876, 0.00005940383562119678, -0.014211454428732395, 0.02072734199464321, 0.027283402159810066, 0.008820760063827038, -0.041151661425828934, 0.009539567865431309, -0.05473586171865463, -0.020015645772218704, -0.0417422354221344, 0.021178096532821655, 0.0303172804415226, -0.025968894362449646, 0.011609756387770176, -0.023770635947585106, 0.02261444181203842, 0.011599191464483738, 0.00600707670673728, 0.029617775231599808, 0.023000232875347137, 0.021724171936511993, -0.016468999907374382, 0.005266974214464426, 0.03239598870277405, 0.0141086271032691, -0.033770445734262466, -0.004725087899714708, -0.0018404220463708043, 0.02554333209991455, -0.09211926907300949, 0.003670612582936883, 0.03212187439203262, -0.03134632110595703, 0.02599238231778145, 0.823422908782959, 0.03292832151055336, -0.0368516631424427, 0.03565423935651779, -0.00019860253087244928, 0.009832862764596939, -0.02305661141872406, 0.03322027996182442, 0.02915101684629917, 0.011647451668977737, -0.003301891963928938, -0.017166992649435997, 0.014305687509477139, -0.0321601927280426, 0.00824093259871006, -0.01278289221227169, 0.025479860603809357, 0.04558228328824043, -0.009242082946002483, -0.008070950396358967, 0.001721586799249053, 0.013371865265071392, 0.025510471314191818, -0.001920328359119594, 0.03342195600271225, 0.008563059382140636, -0.1690646857023239, -0.019969584420323372, -7.196414619300446e-33, 0.04707656428217888, -0.04967057704925537, 0.039616908878088, 0.018847201019525528, -0.04013720527291298, 0.037860266864299774, 0.012004696764051914, 0.017060430720448494, -0.035182204097509384, -0.01814737170934677, 0.021891668438911438, -0.014003529213368893, 0.004842117428779602, -0.015066048130393028, 0.02510346658527851, -0.0074167861603200436, 0.0007097425987012684, 0.015520241111516953, -0.030212506651878357, -0.04155387729406357, -0.0339445099234581, 0.008226485922932625, 0.013952774927020073, -0.00026690869708545506, 0.0027564517222344875, 0.033152349293231964, 0.01803147979080677, -0.031005246564745903, -0.023594919592142105, -0.06395068764686584, -0.02612675353884697, -0.004656127188354731, -0.0005743843503296375, 0.00782032497227192, -0.018902920186519623, -0.04034784063696861, -0.0004765446064993739, -0.013686335645616055, -0.004317710641771555, -0.0683399885892868, -0.06630963087081909, 0.0025160808581858873, -0.011787176132202148, -0.011948113329708576, -0.020273316651582718, -0.027764998376369476, -0.053640082478523254, -0.014493655413389206, -0.017392247915267944, 0.015955425798892975, 0.016310803592205048, 0.06343621015548706, -0.032665662467479706, 0.019450046122074127, -0.03175739198923111, 0.010118483565747738, 0.04656233265995979, 0.04485307261347771, -0.03370783105492592, -0.0011925905710086226, 0.0009247051784768701, -0.0024437583051621914, -0.0218498595058918, 0.027416860684752464, 0.022241517901420593, 0.017741575837135315, -0.014368959702551365, -0.012056045234203339, -0.05557989701628685, 0.03268570452928543, -0.054706718772649765, 0.06140200048685074, 0.0037779565900564194, -0.023106737062335014, 0.030556878075003624, -0.038383882492780685, -0.03965085372328758, -0.020178569480776787, 0.02487521804869175, 0.050973184406757355, 0.014906092546880245, -0.037841927260160446, 0.007071769796311855, -0.002601981395855546, -0.006676704157143831, -0.0272917989641428, 0.0584724061191082, 0.0110941706225276, 0.025711406022310257, 0.021878046914935112, 0.06571295857429504, -0.014648117125034332, 0.0013619406381621957, -0.02045593596994877, -0.03969057276844978, 6.520650100319576e-33, -0.013362252153456211, 0.03163888305425644, -0.006380738224834204, 0.012532713823020458, -0.001941011636517942, -0.004430820234119892, -0.013477715663611889, -0.0019605166744440794, -0.04426727816462517, 0.02196870557963848, -0.0023897788487374783, 0.017893342301249504, -0.009043669328093529, 0.05422338843345642, 0.06194516271352768, 0.0027410490438342094, -0.007232252042740583, -0.010449090972542763, 0.022514959797263145, 0.0015434793895110488, 0.012484971433877945, -0.015543367713689804, 0.004216739907860756, 0.021778540685772896, 0.0054007843136787415, 0.02480386383831501, 0.027603888884186745, 0.01440479140728712, -0.0014703386696055532, -0.014402777887880802, 0.011455886997282505, -0.015544457361102104, 0.02318134531378746, -0.035535961389541626, 0.027344008907675743, 0.019227469339966774, -0.03768089786171913, -0.01592302694916725, 0.012387915514409542, -0.004194531124085188, -0.010013510473072529, -0.02715453691780567, -0.034756850451231, 0.029939208179712296, 0.008108226582407951, 0.012423591688275337, -0.010829375125467777, -0.009956073015928268, 0.015188302844762802, 0.05459541827440262, 0.02007925510406494, 0.018337391316890717, -0.01207020040601492, 0.0023882517125457525, 0.014163617044687271, -0.04024537280201912, -0.029594071209430695, 0.02827480062842369, 0.01049365196377039, -0.04514067992568016, -0.02359398826956749, -0.019310109317302704, -0.059464771300554276, 0.0005825705011375248, 0.005459073465317488, -0.041090529412031174, -0.048567429184913635, 0.019747871905565262, 0.0016184027772396803, -0.006343886721879244, 0.027591239660978317, 0.032263632863759995, -0.02537352964282036, 0.0014890017919242382, 0.04452957585453987, -0.004087540786713362, 0.022998828440904617, -0.0024782870896160603, -0.01845906674861908, 0.02845647558569908, 0.02144220657646656, -0.001190444570966065, 0.033057987689971924, 0.03041478618979454, 0.012810945510864258, -0.005278544966131449, -0.009354735724627972, 0.037276577204465866, -0.02423875778913498, -0.03877725824713707, 0.020935799926519394, -0.012034531682729721, -0.03491192311048508, 0.06099102646112442, -0.0046392339281737804, -1.2510712465996221e-8, -0.05227000638842583, -0.015836771577596664, -0.041723933070898056, 0.005915873683989048, 0.01215503178536892, 0.016940437257289886, 0.00150224135722965, -0.015253723599016666, -0.030970808118581772, 0.020044300705194473, 0.04570234194397926, 0.022870579734444618, 0.027496175840497017, 0.008961577899754047, -0.011135186068713665, -0.044961314648389816, -0.05032355710864067, -0.015465564094483852, 0.04121246561408043, 0.014494606293737888, -0.031291816383600235, 0.05441264808177948, -0.015698550269007683, 0.0007246011518873274, 0.0030269604176282883, -0.03059973567724228, 0.034191958606243134, -0.04433709755539894, 0.004224495962262154, -0.0069792140275239944, 0.009119928814470768, -0.0058013927191495895, 0.005348207429051399, 0.03620349243283272, -0.022855244576931, -0.02876901999115944, -0.014946379698812962, 0.0157038401812315, 0.010335858911275864, 0.0364813506603241, -0.004019320476800203, -0.005183402914553881, -0.04420981556177139, -0.024778440594673157, -0.013072185218334198, -0.017623335123062134, -0.01424358133226633, -0.025651294738054276, 0.037721168249845505, -0.037206701934337616, -0.010153532028198242, -0.006449781823903322, 0.009094848297536373, 0.008246387355029583, 0.013251034542918205, -0.025670848786830902, 0.00021723394456785172, 0.020194975659251213, 0.002730883192270994, -0.012083044275641441, -0.012111329473555088, 0.0010423208586871624, -0.002427352126687765, -0.015596297569572926 ]
rubyhaml-maintaining-white-spaceindentation-in-a-pre-tag
https://markhneedham.com/blog/2013/03/02/rubyhaml-maintaining-white-spaceindentation-in-a-pre-tag
false
2013-03-02 23:22:50
Ruby/Haml: Conditionally/Optionally setting an attribute/class
[ "ruby", "haml" ]
[ "Ruby" ]
One of the things that we want to do reasonably frequently is set an attribute (most often a class) on a HTML element depending on the value of a variable. I always forget how to do this in Haml so I thought I better write it down so I'll remember next time! Let's say we want to add a +++<cite>+++success+++</cite>+++ class to a paragraph if the variable +++<cite>+++correct+++</cite>+++ is true and not have any value if it's false. The following code does what we want: [source,haml] ---- - correct = true %p{:class => (correct ? "success" : nil) } important text ---- This generates the following HTML is +++<cite>+++correct+++</cite>+++ is true: [source,html4strict] ---- <p class="success"> important text </p> ---- And the following HTML if it's false [source,html4strict] ---- <p> important text </p> ---- To summarise, http://stackoverflow.com/questions/3841116/conditionally-set-html-element-id-with-haml[if we set an attribute to nil in Haml it just won't be rendered at all] which is exactly what we want in this situation.
null
null
[ -0.007565773092210293, 0.04442214593291283, -0.03586844354867935, 0.013744297437369823, 0.05636821687221527, -0.033696822822093964, 0.012083758600056171, 0.023271379992365837, 0.005665517877787352, -0.015907427296042442, -0.06372842192649841, 0.026866024360060692, -0.07156448066234589, 0.026064565405249596, -0.017619013786315918, 0.06383802741765976, 0.08640407025814056, 0.0194577444344759, -0.008984158746898174, 0.02604002133011818, 0.025106947869062424, 0.044071927666664124, -0.03436387702822685, 0.014758446253836155, 0.05431491881608963, 0.01628609001636505, 0.022255640476942062, -0.012522341683506966, -0.04472808539867401, 0.01639511063694954, -0.005345033947378397, 0.004362584091722965, -0.0014609526842832565, -0.00335609819740057, 0.009099322371184826, -0.018786609172821045, -0.0021708067506551743, -0.03404175862669945, -0.002091845264658332, 0.021465973928570747, -0.052200812846422195, 0.014592217281460762, -0.002329024951905012, 0.005058060400187969, -0.028068767860531807, -0.01824210211634636, -0.024498771876096725, 0.04450495168566704, -0.011449400335550308, 0.0027310680598020554, -0.10351838916540146, 0.007725376635789871, -0.02680622972548008, -0.0016765266191214323, 0.01633547805249691, 0.04382196441292763, 0.01694306544959545, -0.06465405970811844, 0.020972367376089096, -0.05186564847826958, 0.008365290239453316, 0.0419621467590332, -0.012108264490962029, 0.033428240567445755, 0.020324181765317917, 0.003027531784027815, -0.02908223867416382, 0.0384196862578392, -0.07149647921323776, -0.012393071316182613, -0.03552413731813431, 0.02466713823378086, -0.055341269820928574, -0.030397947877645493, 0.051623597741127014, -0.026297636330127716, -0.03543125092983246, 0.02982601895928383, 0.0058446601033210754, 0.05651123821735382, -0.0066925473511219025, 0.01905214972794056, 0.05249800533056259, 0.01771383360028267, 0.010492959059774876, -0.03039608895778656, -0.04107997193932533, -0.015853455290198326, -0.021368086338043213, 0.0734127089381218, 0.005981443915516138, -0.03370407968759537, 0.026547521352767944, 0.00031252566259354353, 0.011781194247305393, -0.003780335420742631, -0.02958044782280922, 0.006808190140873194, -0.018886737525463104, 0.005477629601955414, -0.038057841360569, -0.06205052137374878, 0.03174709901213646, -0.028013356029987335, -0.111758753657341, 0.03692321479320526, -0.03212422877550125, 0.003552633337676525, 0.03328584507107735, 0.0021005147136747837, -0.042744431644678116, -0.013803680427372456, -0.0227969903498888, -0.011348504573106766, -0.053091228008270264, 0.03552263602614403, 0.018444128334522247, 0.008729079738259315, 0.00028565587126649916, 0.028957616537809372, 0.030181914567947388, 0.013815563172101974, 0.01373100932687521, 0.06902477145195007, 0.00894882157444954, 0.026223495602607727, -0.00019250164041295648, 0.05255308374762535, -0.03517561033368111, -0.08639181405305862, 0.02297835983335972, 0.0689951479434967, -0.013738135807216167, 0.00889954436570406, -0.013586093671619892, 0.04121362790465355, -0.018167415633797646, -0.00272726290859282, 0.05577840656042099, 0.03072197735309601, -0.034380052238702774, -0.011247888207435608, -0.015079640783369541, 0.024731503799557686, 0.028211446478962898, -0.005121777765452862, 0.0043425229378044605, -0.017764398828148842, -0.012877929024398327, 0.009238294325768948, 0.050189219415187836, 0.007034424226731062, 0.04090046510100365, -0.013776223175227642, 0.009825951419770718, 0.05321558192372322, 0.03503308817744255, 0.021480223163962364, -0.010887187905609608, -0.0021750209853053093, 0.03778741508722305, 0.03855536878108978, 0.042357321828603745, 0.07993032783269882, 0.03450571745634079, 0.00023816466273274273, -0.013849721290171146, 0.05640682950615883, 0.013933051377534866, -0.0436740443110466, -0.0646403431892395, -0.02272041328251362, 0.07244467735290527, -0.009021659381687641, 0.01506873033940792, 0.06477632373571396, 0.03734462335705757, -0.02037002518773079, 0.042142078280448914, -0.01557749230414629, -0.07790127396583557, -0.003053598338738084, 0.003974938299506903, 0.042550213634967804, 0.01933618076145649, -0.019727561622858047, 0.057630833238363266, 0.0171511210501194, 0.013698690570890903, 0.038357097655534744, -0.0895470678806305, -0.03504214808344841, -0.019023597240447998, -0.03472905233502388, 0.11235310882329941, -0.017722483724355698, -0.018025191500782967, 0.08742054551839828, 0.041568536311388016, 0.03696439787745476, 0.032207734882831573, -0.012967419810593128, -0.015292410738766193, -0.05390523746609688, -0.02665386162698269, 0.03169665485620499, 0.036229874938726425, -0.0045755463652312756, -0.04877246543765068, 0.019358070567250252, -0.01814642921090126, 0.029688911512494087, 0.0343056283891201, 0.004721402656286955, 0.00545780872926116, 0.016956618055701256, 0.04677574336528778, -0.03967493399977684, 0.0304061621427536, -0.03320184350013733, 0.03373559191823006, 0.016168707981705666, -0.012920859269797802, -0.03625461831688881, -0.02741762064397335, 0.12277784943580627, 0.041671715676784515, 0.018309973180294037, -0.04702701047062874, 0.047229278832674026, 0.016678733751177788, -0.054429009556770325, 0.04308171570301056, 0.003759595099836588, -0.01955057866871357, 0.006645029876381159, -0.05114353448152542, 0.016005732119083405, 0.04059198126196861, -0.030994165688753128, 0.03845026716589928, 0.06564978510141373, -0.01688191667199135, 0.05087582767009735, -0.007320459000766277, 0.010468563996255398, 0.010984926484525204, 0.014808837324380875, -0.07600392401218414, -0.029137063771486282, 0.0000405180653615389, -0.028077896684408188, 0.027330679818987846, -0.006727076601237059, -0.027922865003347397, -0.014689781703054905, -0.035820215940475464, 0.013384674675762653, 0.024924801662564278, 0.031649764627218246, 0.00887820590287447, 0.033329132944345474, -0.014872080646455288, -0.02173488587141037, -0.02771378681063652, -0.06818707287311554, -0.026239773258566856, 0.0026730913668870926, -0.00021223403746262193, 0.032293301075696945, 0.021007956936955452, 0.02898777835071087, 0.032858047634363174, -0.014969885349273682, -0.023726191371679306, 0.045491088181734085, 0.047071997076272964, 0.00979189109057188, 0.0023139941040426493, -0.028062857687473297, -0.0454774834215641, 0.026320254430174828, -0.025508303195238113, -0.04973619431257248, -0.023020293563604355, -0.05505567789077759, 0.0279135312885046, -0.07402068376541138, -0.06563380360603333, -0.020575983449816704, -0.005403045564889908, 0.010820715688169003, 0.017394591122865677, 0.03806131333112717, 0.06891154497861862, 0.009812353178858757, 0.005872267764061689, 0.013176022097468376, -0.017335152253508568, 0.03716634586453438, -0.004035966005176306, 0.0008956612437032163, 0.033577945083379745, -0.03227904811501503, 0.01463315263390541, -0.022962654009461403, 0.005803507287055254, -0.0024403876159340143, -0.26083338260650635, 0.03627224266529083, -0.032739847898483276, -0.05492294952273369, 0.009238367900252342, -0.04622602090239525, -0.004730738699436188, -0.026238007470965385, -0.012729266658425331, 0.015566541813313961, -0.010399366728961468, -0.0333191379904747, -0.009918596595525742, 0.0739000216126442, 0.01721612550318241, 0.005243300925940275, 0.0319228433072567, -0.01332998089492321, 0.020295031368732452, 0.023538632318377495, -0.012392046861350536, -0.045096058398485184, 0.005614697467535734, 0.048994097858667374, 0.029924355447292328, 0.029555318877100945, -0.05189524590969086, 0.03546396270394325, -0.028989551588892937, -0.028477570042014122, 0.04574309289455414, -0.0349670872092247, 0.01359980646520853, -0.01450559962540865, 0.005921975709497929, -0.03121708706021309, 0.06476646661758423, 0.042984820902347565, 0.033312320709228516, 0.026147590950131416, -0.031815700232982635, -0.03303959220647812, 0.010449623689055443, 0.008447155356407166, 0.0801301896572113, -0.017579849809408188, -0.05258310213685036, -0.02339286543428898, -0.05911652371287346, 0.06193786486983299, -0.02527882717549801, -0.030455416068434715, 0.005309141241014004, 0.03438597545027733, -0.009345551021397114, -0.013650587759912014, 0.012520839460194111, -0.014591491781175137, -0.0509299598634243, -0.0524413138628006, -0.020760660991072655, -0.036860838532447815, -0.028296682983636856, -0.034599363803863525, 0.006487881299108267, -0.039180606603622437, -0.031220678240060806, -0.030182698741555214, 0.0364774689078331, 0.025003237649798393, -0.04236069694161415, -0.02090723067522049, -0.024689188227057457, -0.09335946291685104, 0.0016579150687903166, -0.04734848439693451, 0.00030430711922235787, -0.018211141228675842, -0.03998474404215813, 0.025517761707305908, -0.013451782986521721, -0.052678752690553665, 0.012433710508048534, 0.03545749932527542, 0.013401845470070839, -0.012327968142926693, 0.05018513649702072, 0.007900337688624859, 0.007125188130885363, -0.004450110252946615, 0.09141533821821213, -0.02729412540793419, -0.02115938812494278, 0.005016292445361614, -0.017067309468984604, 0.02758513204753399, 0.025541074573993683, -0.03495722636580467, 0.05678766965866089, -0.003486679634079337, 0.028539329767227173, -0.04844066873192787, 0.028918903321027756, -0.030234767124056816, -0.02789083682000637, 0.02118329517543316, -0.05973227694630623, 0.0291490089148283, 0.024254880845546722, -0.014494017697870731, -0.02660824917256832, -0.026507064700126648, 0.006708175875246525, -0.036249540746212006, -0.023034866899251938, -0.025358479470014572, 0.0022518308833241463, 0.02882322482764721, 0.02770676091313362, -0.013456935063004494, -0.05735892057418823, 0.009877976961433887, 0.005408925469964743, -0.043159328401088715, -0.04702926427125931, -0.020035333931446075, 0.032524142414331436, -0.027797240763902664, -0.018193218857049942, -0.010223768651485443, -0.002415680093690753, 0.027838317677378654, 0.015054795891046524, -0.006301790941506624, 0.0043686628341674805, 0.022430041804909706, -0.03692401200532913, -0.005715233739465475, -0.0055485134944319725, -0.006847103592008352, -0.02062917873263359, -0.0035697140265256166, 0.015555821359157562, 0.025449348613619804, 0.08803310990333557, -0.017668653279542923, 0.020260009914636612, 0.0146411694586277, -0.02733979932963848, -0.0049355304799973965, 0.0034882058389484882, -0.03767771273851395, 0.015975749120116234, -0.0156438946723938, -0.04484022408723831, -0.019236408174037933, 0.05496755987405777, 0.014497951604425907, -0.0059104133397340775, -0.031323350965976715, 0.004612338729202747, -0.05732666328549385, -0.010092557407915592, -0.0029820764902979136, 0.01622886024415493, 0.0677955374121666, -0.038233496248722076, 0.037913769483566284, -0.00028302244027145207, 0.010510513558983803, -0.02790217101573944, -0.007398886606097221, -0.03466309979557991, -0.010009906254708767, -0.016688412055373192, -0.03430004417896271, 0.012529480271041393, 0.007348764222115278, -0.017321495339274406, -0.008699278347194195, 0.01625853031873703, 0.01358784083276987, 0.03636953607201576, 0.03168334439396858, 0.025762369856238365, -0.01717965118587017, -0.053341470658779144, -0.002944094594568014, -0.013612327165901661, -0.039762724190950394, -0.04257621616125107, -0.03733477741479874, -0.023598598316311836, -0.010166025720536709, -0.027425460517406464, -0.07071764767169952, -0.00768768135458231, 0.001199246384203434, 0.029742468148469925, 0.007530516944825649, -0.019559601321816444, -0.00809184554964304, -0.05734012648463249, 0.004070124588906765, 0.0253464262932539, -0.06285690516233444, 0.01789735071361065, 0.00477764755487442, -0.05361993610858917, 0.0314599983394146, 0.008059103041887283, -0.06677298992872238, 0.02880164235830307, 0.048841074109077454, 0.024148263037204742, -0.04377925023436546, -0.04224872589111328, -0.018340740352869034, -0.01985963061451912, -0.0374123640358448, 0.021701345220208168, -0.020160242915153503, 0.041604600846767426, -0.0071520195342600346, -0.032532699406147, -0.009836515411734581, 0.018634214997291565, -0.003288783598691225, 0.05220682546496391, -0.00992033164948225, 0.045149583369493484, 0.005118106491863728, 0.01375661976635456, 0.03968900069594383, -0.026370786130428314, -0.04795735701918602, -0.041027866303920746, 0.024573080241680145, -0.0020261339377611876, 0.04855174943804741, 0.035566605627536774, -0.005697945132851601, -0.01922217570245266, 0.005551840644329786, -0.008573882281780243, -0.040043435990810394, -0.0256962887942791, -0.01780536398291588, 0.021474117413163185, 0.06410809606313705, 0.0015020393766462803, 0.011018063873052597, -0.014603495597839355, -0.020364616066217422, 0.04332493245601654, -0.028816644102334976, -0.022599201649427414, -0.01195423025637865, -0.045348525047302246, 0.04881468787789345, 0.029974838718771935, 0.07344083487987518, -0.059940773993730545, 0.042146045714616776, 0.033227790147066116, 0.030555708333849907, -0.006084341090172529, -0.04340274631977081, 0.0356462262570858, -0.03416191786527634, 0.028965115547180176, -0.09270644932985306, 0.025572262704372406, 0.04176676273345947, 0.02456083707511425, -0.035629380494356155, -0.04947842285037041, -0.04152991622686386, 0.0549403615295887, -0.07047253102064133, -0.027266161516308784, 0.02183571830391884, 0.04745762422680855, 0.011184885166585445, 0.0170388575643301, -0.04686431586742401, 0.016896402463316917, 0.047898564487695694, -0.03916371613740921, -0.006309278309345245, -0.031813111156225204, 0.029949713498353958, -0.012667106464505196, -0.004035262390971184, -0.024098025634884834, 0.012478447519242764, 0.09081646054983139, 0.05239635705947876, -0.006116730626672506, 0.02166023664176464, -0.03439515456557274, 0.036754220724105835, 0.006437082774937153, 0.02455076575279236, -0.0016049868427217007, 0.0226590596139431, -0.008244735188782215, -0.0651455745100975, -0.0007962411618791521, 0.012184658087790012, -0.039118241518735886, -0.029464881867170334, 0.053117696195840836, 0.01953963376581669, -0.02971358597278595, -0.025572052225470543, 0.02378368005156517, -0.013192404992878437, -0.028997117653489113, -0.010570017620921135, -0.0011659740703180432, -0.06736242026090622, 0.062070515006780624, 0.009502604603767395, -0.022537967190146446, 0.08422819525003433, -0.016261667013168335, -0.026461534202098846, 0.008584610186517239, 0.10507195442914963, 0.07992442697286606, 0.04686877131462097, -0.010333207435905933, 0.06611919403076172, -0.012306948192417622, -0.05124616622924805, -0.02377172000706196, -0.018961569294333458, 0.02239088900387287, -0.00032201813883148134, 0.01480068452656269, 0.05957126244902611, -0.023345600813627243, 0.04699590057134628, -0.020591219887137413, -0.020750539377331734, -0.007282692473381758, 0.053034838289022446, 0.0343894325196743, 0.0610356479883194, 0.025463929399847984, 0.0026160094421356916, -0.006359510589390993, -0.0543522872030735, 0.009792033582925797, -0.011011598631739616, -0.009396879933774471, 0.01297284197062254, -0.0019097569165751338, 0.008683573454618454, 0.004829633980989456, 0.008695494383573532, 0.0772503986954689, -0.022720811888575554, -0.03834623098373413, 0.005442028399556875, 0.039783231914043427, -0.018482759594917297, 0.024845683947205544, 0.01868768222630024, -0.023344626650214195, -0.012363947927951813, -0.016623787581920624, -0.022731604054570198, -0.03173340857028961, -0.004869552329182625, 0.032823167741298676, -0.02917480655014515, 0.019419195130467415, 0.035444293171167374, -0.010815545916557312, -0.03412124514579773, -0.04541666805744171, -0.034602418541908264, -0.07037917524576187, -0.04893314838409424, 0.007770919241011143, 0.020315170288085938, -0.023874053731560707, -0.05106353014707565, -0.020342105999588966, -0.005162052344530821, 0.009350055828690529, 0.03490378335118294, -0.05260665714740753, -0.0313752107322216, 0.01695997826755047, 0.027135927230119705, 0.04949481412768364, 0.011946319602429867, 0.013770068064332008, -0.004307213239371777, -0.02287733368575573, -0.0019890537951141596, -0.014356772415339947, 0.03472638502717018, -0.0004332572571001947, -0.01308390311896801, -0.08355925977230072, 0.0024988881777971983, 0.004985066596418619, -0.019493022933602333, -0.05967019125819206, 0.017517078667879105, 0.005860417149960995, -0.02884521707892418, 0.0675060972571373, -0.015696024522185326, 0.01740705408155918, -0.026152214035391808, -0.006244776304811239, -0.015868231654167175, 0.017359113320708275, 0.05374974384903908, -0.009338145144283772, 0.115777388215065, 0.005855052266269922, -0.008890927769243717, -0.045084793120622635, -0.011268489062786102, -0.04299800843000412, -0.008976255543529987, -0.06306072324514389, -0.03371205925941467, -0.06819158047437668, -0.05005640536546707, -0.04089890047907829, -0.003410440869629383, 0.003863356076180935, -0.020651213824748993, 0.0030410662293434143, 0.03118835762143135, -0.05224989727139473, 0.04874836653470993, -0.05101146921515465, 0.04767991974949837, -0.03904227539896965, -0.013301022350788116, -0.009170951321721077, 0.0057806638069450855, -0.006362198386341333, 0.008466308936476707, 0.05136134475469589, -0.021442577242851257, 0.014652488753199577, -0.026873189955949783, 0.018401525914669037, 0.02765602618455887, -0.014570923522114754, 0.03277113661170006 ]
[ -0.08981281518936157, 0.03231151029467583, -0.0630970373749733, -0.045343004167079926, 0.042871348559856415, -0.0019387387437745929, 0.006660685874521732, 0.040196824818849564, 0.011076417751610279, -0.051915064454078674, -0.013769886456429958, -0.017624912783503532, -0.013439971953630447, 0.005487964488565922, 0.07059112936258316, 0.025501783937215805, -0.01171362679451704, 0.018492354080080986, -0.036726124584674835, 0.029957158491015434, 0.03637080267071724, -0.020983882248401642, 0.00453902967274189, -0.013674730435013771, 0.028031673282384872, 0.04899853467941284, 0.014728506095707417, -0.022306673228740692, 0.005953557323664427, -0.20290301740169525, 0.006452872417867184, -0.016043275594711304, 0.01504535786807537, -0.007365422789007425, -0.005304667633026838, 0.06461936235427856, 0.012290154583752155, 0.031849417835474014, 0.04604644700884819, 0.07554659992456436, 0.020660966634750366, -0.0027003572322428226, -0.04699770361185074, -0.03661821782588959, 0.04367876797914505, -0.013152784667909145, 0.011853314936161041, -0.05534940958023071, -0.04064597934484482, 0.019370704889297485, -0.046444039791822433, -0.014737206511199474, -0.003693686332553625, -0.012648452073335648, -0.00173194648232311, 0.05548945069313049, 0.017780503258109093, 0.08073238283395767, 0.022399311885237694, 0.015199094079434872, -0.02645104192197323, 0.020343592390418053, -0.16277877986431122, 0.12798000872135162, 0.02239859849214554, 0.05138980224728584, -0.04610881581902504, 0.00528791593387723, -0.06094202771782875, 0.10930773615837097, 0.05452559515833855, -0.026631763204932213, -0.02527369000017643, 0.10242617875337601, 0.020861120894551277, -0.01644907332956791, 0.016794657334685326, -0.014855223707854748, 0.05211440473794937, -0.04101548716425896, -0.028269747272133827, -0.03415529057383537, 0.0020430507138371468, -0.017947612330317497, 0.004593197721987963, -0.004610101226717234, 0.021608203649520874, 0.00777516420930624, 0.003982121590524912, -0.01837499812245369, -0.012398098595440388, -0.05876457691192627, 0.01229054480791092, 0.005060330033302307, -0.04559214040637016, 0.010594021528959274, -0.027417359873652458, -0.009194218553602695, -0.07602407783269882, 0.40690428018569946, -0.0630483627319336, 0.005275430623441935, 0.03230756148695946, -0.03575776517391205, 0.0006846170290373266, 0.0045683723874390125, 0.018918471410870552, -0.022884726524353027, -0.011547253467142582, -0.057917751371860504, 0.01381903886795044, -0.007927080616354942, 0.015336458571255207, -0.03439014032483101, -0.01984824426472187, 0.01657303422689438, 0.05639733374118805, -0.0013360421871766448, 0.010647566989064217, -0.025749795138835907, -0.0029270753730088472, 0.004681553225964308, 0.0319800078868866, 0.036084894090890884, -0.006345759145915508, -0.023534025996923447, 0.05114295706152916, 0.0830736979842186, -0.015054628252983093, 0.01866246946156025, 0.025408146902918816, -0.059283871203660965, -0.07533923536539078, -0.053780220448970795, -0.006684672087430954, 0.03439208120107651, 0.02176741324365139, -0.009770549833774567, 0.01686662621796131, 0.003229109337553382, -0.013368944637477398, -0.01943088509142399, 0.000124533282360062, 0.007794689852744341, -0.04591337591409683, 0.10129307955503464, -0.007764921057969332, -0.01401156559586525, -0.032353486865758896, -0.048808470368385315, -0.030878946185112, 0.025389226153492928, -0.01501790713518858, -0.031015003100037575, -0.028907306492328644, 0.02426592819392681, 0.05579712241888046, -0.03274347633123398, -0.015113038010895252, -0.03644878417253494, -0.0331064872443676, -0.022438524290919304, -0.03175972402095795, 0.05691881477832794, 0.01330572459846735, -0.07002993673086166, -0.05330295115709305, 0.015288883820176125, 0.007489487063139677, -0.06573084741830826, -0.02682660147547722, 0.0819665715098381, -0.03625400736927986, -0.016971642151474953, 0.06818051636219025, -0.0017739885952323675, -0.01260107010602951, 0.03786657005548477, 0.0433758869767189, 0.023363081738352776, 0.013322045095264912, 0.01489989273250103, -0.07762044668197632, 0.01840975508093834, -0.011982818134129047, -0.029498856514692307, -0.07110723853111267, -0.02514728717505932, -0.008854466490447521, 0.01832577772438526, 0.0009328592568635941, -0.0001780101883923635, -0.017613383010029793, 0.026239817962050438, -0.034944020211696625, -0.017234988510608673, 0.016208546236157417, -0.018602734431624413, -0.0065683587454259396, -0.010124695487320423, 0.002196570159867406, 0.04248138517141342, 0.0024088064674288034, 0.014563567005097866, -0.025473924353718758, 0.024571293964982033, 0.05985086411237717, -0.020522234961390495, 0.07240062206983566, 0.010139619931578636, -0.06258338689804077, -0.007715275045484304, -0.03756016865372658, 0.015651332214474678, 0.01238692831248045, 0.000012418339792930055, -0.02245403826236725, 0.020965663716197014, 0.05531581491231918, 0.041842829436063766, -0.0441923625767231, -0.09220845252275467, -0.006067556329071522, -0.3405103087425232, -0.035972267389297485, -0.020445333793759346, -0.048115603625774384, 0.029465245082974434, -0.04764629527926445, -0.004722461570054293, -0.00463271327316761, -0.05681904777884483, -0.00002275755105074495, 0.0854966789484024, -0.0186753012239933, -0.008391112089157104, -0.08545481413602829, -0.013329297304153442, 0.030527345836162567, 0.0027752413880079985, -0.06576181203126907, -0.009599568322300911, 0.052246782928705215, 0.005771929863840342, -0.014167939312756062, -0.06890561431646347, -0.060132913291454315, 0.016237961128354073, -0.022380879148840904, 0.07628241926431656, 0.017772875726222992, 0.05927368253469467, -0.03010132722556591, 0.04687076434493065, 0.005417730193585157, -0.004469048697501421, -0.06702602654695511, 0.010743191465735435, -0.02114630863070488, -0.04911288246512413, 0.040614962577819824, -0.0038447112310677767, 0.0031804905738681555, 0.028506137430667877, 0.009464897215366364, -0.04312031716108322, -0.05716660991311073, -0.039433449506759644, -0.01719179004430771, 0.01108692865818739, -0.020527631044387817, -0.014346775598824024, 0.047287870198488235, 0.003695722669363022, -0.0012790249893441796, 0.005712405312806368, 0.05479377880692482, 0.018315093591809273, -0.012572653591632843, -0.04107799381017685, -0.01745072565972805, 0.014916784130036831, -0.048737842589616776, 0.05585527420043945, 0.016100939363241196, 0.059707120060920715, -0.044552993029356, -0.025298550724983215, 0.006119192112237215, 0.012456758879125118, -0.04162592440843582, -0.001472968840971589, -0.02770630083978176, -0.03492781147360802, 0.0779319778084755, 0.048459794372320175, 0.009436829015612602, 0.006354380398988724, 0.029185311868786812, -0.03808540850877762, 0.03270387277007103, 0.029025714844465256, 0.005990852601826191, 0.014971978031098843, 0.02479967102408409, 0.02897627279162407, -0.02168724685907364, -0.0021392880007624626, 0.04344150796532631, -0.022820178419351578, 0.025435088202357292, 0.05733893811702728, 0.007662799675017595, -0.0763137936592102, -0.007628213614225388, 0.007728025782853365, -0.046700369566679, 0.018997326493263245, -0.01964152418076992, -0.26352229714393616, -0.004065146669745445, 0.08009501546621323, 0.08241824060678482, -0.009210503660142422, 0.011368213221430779, 0.048244282603263855, -0.04925062134861946, -0.018484797328710556, -0.024932848289608955, 0.02065952681005001, 0.0378262922167778, 0.014147702604532242, -0.022051140666007996, 0.018136104568839073, -0.04194575920701027, 0.052398379892110825, -0.02092377096414566, -0.0005763193476013839, 0.006618734914809465, 0.036395832896232605, -0.027461225166916847, 0.20976315438747406, 0.01569618284702301, 0.05444471165537834, -0.027080804109573364, -0.004495599307119846, 0.014390985481441021, 0.056432705372571945, 0.03929848596453667, 0.04946083948016167, -0.015734566375613213, 0.11794106662273407, 0.03302668780088425, 0.003926824312657118, -0.03977698087692261, -0.055200982838869095, 0.0101137300953269, -0.009297933429479599, -0.02787364087998867, -0.020891327410936356, 0.047666486352682114, -0.07915113866329193, 0.05294587463140488, 0.07907051593065262, 0.024293474853038788, 0.004417163319885731, -0.011313237249851227, -0.036853108555078506, -0.0013754440005868673, 0.000344371102983132, 0.02179841510951519, -0.015036671422421932, 0.007216281723231077, 0.0017526510637253523, 0.0274164117872715, 0.046867821365594864, -0.011724443174898624, -0.023421403020620346, 0.008847463876008987, -0.025053003802895546, 0.03569956496357918, 0.09299011528491974, 0.037098489701747894, 0.05484434962272644 ]
[ -0.006693345960229635, 0.05426013842225075, -0.0018662643851712346, 0.04043145477771759, 0.017528526484966278, 0.02917833812534809, -0.0031191797461360693, -0.03583039715886116, 0.008524352684617043, -0.019106248393654823, -0.026106948032975197, 0.01853487268090248, 0.03397161886096001, -0.011530802585184574, 0.019740398973226547, 0.03399201110005379, -0.010709679685533047, 0.008489074185490608, -0.007667535915970802, -0.026927683502435684, -0.01705309748649597, 0.003970219288021326, 0.03868665173649788, -0.0058023976162076, -0.03567352145910263, 0.02739569917321205, -0.04364679753780365, 0.0034532092977315187, 0.02628551423549652, -0.14695554971694946, -0.04146943613886833, -0.01052592508494854, 0.00701522920280695, 0.01409841701388359, -0.02192874439060688, 0.06881498545408249, 0.05182556435465813, 0.05466120317578316, 0.005548782646656036, 0.03220372647047043, -0.009441981092095375, -0.009497147984802723, -0.018718069419264793, -0.017331721261143684, 0.03439534828066826, -0.02583007700741291, -0.008407809771597385, -0.02313961274921894, -0.016452698037028313, -0.03983616828918457, -0.03593519702553749, -0.052712198346853256, 0.0644017830491066, -0.04703027009963989, -0.007616491988301277, -0.009798555634915829, 0.017865488305687904, -0.03215884417295456, -0.009711195714771748, -0.013094075955450535, -0.02684665285050869, -0.015809273347258568, -0.06105905771255493, -0.02351924404501915, 0.0033238152973353863, -0.02202131412923336, -0.01522020436823368, 0.019255109131336212, -0.01885099709033966, -0.013791692443192005, -0.0022238222882151604, -0.01468578539788723, -0.014546435326337814, -0.01614052802324295, -0.020927084609866142, 0.010918455198407173, 0.013370845466852188, -0.029073525220155716, 0.04001223295927048, -0.006283873226493597, -0.03958700969815254, 0.01132435817271471, 0.03058854676783085, -0.015855697914958, 0.043160583823919296, -0.007786727510392666, -0.02983670122921467, -0.0023715163115411997, -0.013838332146406174, 0.0003151614801026881, -0.0383150652050972, 0.0025833100080490112, 0.0029267987702041864, 0.02922412008047104, -0.05810658633708954, 0.013071814551949501, 0.03710833936929703, -0.0327359139919281, 0.020151613280177116, 0.8084564208984375, 0.04595594108104706, 0.008003364317119122, -0.001284967758692801, -0.018543165177106857, 0.02604636177420616, -0.019296996295452118, 0.0030446844175457954, 0.04063265398144722, 0.022113362327218056, -0.028511589393019676, -0.0073329308070242405, 0.014087503775954247, 0.007022398058325052, 0.022986069321632385, 0.0014961106935516, 0.042254187166690826, 0.05163264647126198, 0.003688245313242078, 0.021887628361582756, -0.004949681926518679, -0.00006218033377081156, 0.03942741081118584, 0.029092999175190926, 0.020279720425605774, -0.02617204561829567, -0.18218106031417847, -0.00046434480464085937, -7.729984729450129e-33, 0.04572199657559395, -0.0010098933707922697, 0.01692335307598114, 0.010062950663268566, -0.009876107797026634, -0.008688348345458508, 0.004007195588201284, 0.015872526913881302, 0.004558146465569735, -0.04809311777353287, 0.04826049134135246, -0.017817026004195213, 0.00874403491616249, -0.03281281143426895, 0.0421576201915741, -0.009616031311452389, -0.02969619818031788, 0.032534513622522354, -0.005667471326887608, -0.027362637221813202, -0.01336190290749073, 0.02123437076807022, 0.0483911968767643, 0.0156551506370306, 0.00759825250133872, 0.02625489979982376, 0.02404799312353134, -0.0070671928115189075, -0.02163611724972725, -0.0428856797516346, 0.022866660729050636, 0.04884866625070572, 0.004652061033993959, -0.012159592472016811, -0.006877291947603226, -0.034405454993247986, -0.012321768328547478, 0.04727157577872276, -0.028795670717954636, -0.040737051516771317, -0.052384838461875916, -0.010544074699282646, 0.00034703215351328254, -0.05375497415661812, -0.01657457835972309, -0.013131655752658844, 0.033552564680576324, 0.036501504480838776, -0.016925739124417305, 0.025688571855425835, 0.005720036569982767, 0.048006583005189896, -0.009671533480286598, 0.015252076089382172, -0.0312957689166069, 0.020348571240901947, 0.03296559303998947, 0.04227800294756889, -0.020813334733247757, 0.018843291327357292, -0.001715498510748148, 0.024283351376652718, -0.015404213219881058, 0.01733793318271637, 0.004635648336261511, -0.013450810685753822, 0.009523430839180946, -0.01712767966091633, -0.0014050458557903767, 0.03538074344396591, -0.009444612078368664, 0.05629638954997063, -0.022747522220015526, 0.004911361262202263, 0.01360886450856924, -0.037003129720687866, -0.01077737845480442, -0.00445936806499958, 0.016006257385015488, 0.07423163205385208, 0.02210364118218422, 0.03961120918393135, -0.01650356501340866, -0.039950884878635406, -0.026076775044202805, -0.018860481679439545, 0.05124964192509651, 0.01981199160218239, -0.03267280012369156, 0.012987163849174976, 0.0611250102519989, -0.01023141946643591, -0.047522787004709244, -0.025193404406309128, -0.01049325056374073, 6.78934900713435e-33, 0.013247549533843994, 0.00036651399568654597, -0.006205158308148384, -0.004279014188796282, -0.012995228171348572, -0.01086000632494688, 0.004279154818505049, -0.0030977479182183743, -0.04612918198108673, 0.020315149798989296, 0.03624472767114639, -0.0032988551538437605, -0.021089831367135048, 0.05991315469145775, 0.023679912090301514, -0.010770891793072224, -0.04371649771928787, 0.0012628185795620084, 0.027347827330231667, 0.018824702128767967, 0.057511575520038605, -0.013668576255440712, -0.0006462395540438592, 0.02055656723678112, 0.012317540124058723, 0.01902368851006031, -0.03645096719264984, 0.010036177933216095, 0.00046775530790910125, 0.002798693487420678, 0.01145985722541809, -0.0024719666689634323, -0.01685228943824768, -0.045297153294086456, 0.0014369074488058686, 0.03360878676176071, -0.018803520128130913, -0.012607262469828129, 0.019136037677526474, 0.023161306977272034, 0.016181208193302155, -0.008763255551457405, -0.022129539400339127, 0.021158479154109955, 0.002287898678332567, -0.0032016674522310495, 0.003866250393912196, -0.0067168730311095715, -0.0008223049808293581, 0.015563973225653172, 0.005192079581320286, -0.012079606764018536, 0.013544557616114616, 0.00736992759630084, 0.0388115830719471, -0.05820206180214882, -0.04230193793773651, 0.03765679523348808, -0.046983763575553894, 0.005230306647717953, -0.047254256904125214, 0.027249231934547424, -0.014967566356062889, 0.011423022486269474, -0.034399110823869705, -0.047718800604343414, -0.05400383472442627, -0.009854177944362164, 0.0037013767287135124, -0.0016096795443445444, -0.00604751892387867, 0.01954353228211403, 0.006715603172779083, 0.01631423644721508, -0.024681681767106056, -0.020214425399899483, 0.018149668350815773, 0.018181417137384415, -0.033635105937719345, 0.011098493821918964, 0.03836628794670105, 0.01610199548304081, 0.028934979811310768, 0.00010866390221053734, 0.024523820728063583, 0.001561539014801383, 0.03361037001013756, 0.021999500691890717, 0.007872747257351875, -0.028511207550764084, -0.007045643404126167, 0.013236264698207378, -0.004978604149073362, 0.016549156978726387, -0.0036120747681707144, -1.281688000176473e-8, -0.06699809432029724, -0.010725957341492176, -0.016023870557546616, -0.009608475491404533, 0.022817494347691536, 0.0419694185256958, -0.04656952992081642, -0.041761018335819244, -0.027216585353016853, 0.0005329006817191839, 0.031114578247070312, 0.04816373065114021, 0.008907279931008816, -0.02028832584619522, -0.06534392386674881, -0.05563464015722275, -0.046349044889211655, -0.021977784112095833, 0.06019652634859085, -0.004029682371765375, 0.024566370993852615, 0.013584088534116745, -0.024405663833022118, 0.017468668520450592, 0.05353566259145737, -0.035257503390312195, -0.0025796578265726566, -0.0778588131070137, 0.014392134733498096, -0.02225682884454727, 0.03946298360824585, -0.03132082521915436, -0.011682123877108097, -0.006442884914577007, 0.01976749487221241, -0.012865635566413403, -0.025702763348817825, 0.0047526671551167965, -0.009995762258768082, 0.005912242457270622, -0.014473838731646538, -0.032969072461128235, -0.0549035370349884, -0.04268728196620941, -0.008103230968117714, -0.017506727948784828, -0.05730330944061279, -0.020117785781621933, 0.0074249813333153725, -0.030215132981538773, 0.008017485029995441, -0.04743533208966255, 0.055759623646736145, 0.04588529095053673, 0.02618040144443512, -0.004272596910595894, 0.020561935380101204, -0.008625584654510021, 0.0053109535947442055, -0.01719050109386444, 0.0246499702334404, -0.004310137592256069, -0.024823494255542755, -0.018398046493530273 ]
rubyhaml-conditionallyoptionally-setting-an-attributeclass
https://markhneedham.com/blog/2013/03/02/rubyhaml-conditionallyoptionally-setting-an-attributeclass
false
2013-03-20 00:25:00
neo4j/cypher: Getting the hang of the WITH statement
[ "neo4j", "cypher" ]
[ "neo4j" ]
I wrote a post a few weeks ago http://www.markhneedham.com/blog/2013/02/24/neo4jcypher-combining-count-and-collect-in-one-query/[showing an example of a cypher query which made use of the WITH statement] but I still don't completely understand how it works so I thought I'd write some more queries that use it. I wanted to find out whether Luis Suárez has a better scoring record depending on which day a match is played on. We start out by finding all the matches that he's played in and which days those matches were on: [source,cypher] ---- START player = node:players('name:"Luis Suárez"') MATCH game-[:in]-stats-[:played]-player, game-[:on_day]-day RETURN day.name, game.name ---- [source,text] ---- +---------------------------------------------------+ | day.name | game.name | +---------------------------------------------------+ | "Saturday" | "Liverpool vs Southampton" | | "Saturday" | "Southampton vs Liverpool" | | "Saturday" | "Liverpool vs Reading" | | "Saturday" | "West Bromwich Albion vs Liverpool" | ... +---------------------------------------------------+ 29 rows ---- We can then group those matches by day to find out how many games he played in on a particular day: [source,cypher] ---- START player = node:players('name:"Luis Suárez"') MATCH game-[:in]-stats-[:played]-player, game-[:on_day]-day RETURN day.name, COUNT(game.name) ---- [source,text] ---- +--------------------------------+ | day.name | COUNT(game.name) | +--------------------------------+ | "Sunday" | 13 | | "Wednesday" | 4 | | "Monday" | 1 | | "Saturday" | 11 | +--------------------------------+ 4 rows ---- Now we want to find out which days the games that Suarez scored in were on so we start out by returning each day that Suarez played in a match and then return a collection containing information about the games he played on that day and whether he scored: [source,cypher] ---- START player = node:players('name:"Luis Suárez"') MATCH game-[:in]-stats-[:played]-player-[r?:scored_in]-game-[:on_day]-day RETURN day, COLLECT(DISTINCT([type(r), game.name])) AS games ---- [source,text] ---- +----------------------------------------------------------------------------------------+ | day.name | games | +----------------------------------------------------------------------------------------+ | "Sunday" | [["scored_in","Liverpool vs Manchester City"]…] | | "Wednesday" | [[<null>,"Tottenham Hotspur vs Liverpool"],[<null>,"Stoke City vs Liverpool"]...] | | "Monday" | [[<null>,"Liverpool vs West Bromwich Albion"]] | | "Saturday" | [[<null>,"Liverpool vs Southampton"]…] | +----------------------------------------------------------------------------------------+ 4 rows ---- This query has got a little bit more complicated than our previous ones because we wanted to return all the days that Suarez played matches on even if he didn't score on that day. The only interesting thing in the first couple of lines is that we match the 'scored_in' relationship http://www.markhneedham.com/blog/2012/06/24/neo4j-handling-optional-relationships/[optionally] so that we can handle the situation where Suarez didn't score while still returning a row. On the third line we return the day and then we get a collection of tuples of the 'scored_in' relationship and the corresponding game. We use +++<cite>+++DISTINCT+++</cite>+++ on this line to take care of the situation where Suarez scored multiple times in the same match. We're working out the number of games that Suarez scored in so counting multiple goals in the same match would ruin that count. We then need to tweak that query slightly to get a count of the matches that Suarez scored in rather than just returning them. We end up with the following: [source,cypher] ---- START player = node:players('name:"Luis Suárez"') MATCH game-[:in]-stats-[:played]-player-[r?:scored_in]-game-[:on_day]-day WITH day, COLLECT(DISTINCT([type(r), game.name])) AS games RETURN day.name, REDUCE(totalGames = 0, game in FILTER(x in games : head(x) = "scored_in"): totalGames + 1) AS gamesScoredIn ---- [source,text] ---- +-----------------------------+ | day.name | gamesScoredIn | +-----------------------------+ | "Wednesday" | 2 | | "Saturday" | 6 | | "Sunday" | 7 | | "Monday" | 0 | +-----------------------------+ 4 rows ---- We start off by http://docs.neo4j.org/chunked/milestone/query-function.html#functions-filter[filtering] the games so that we only keep the ones that Suarez scored in. We then run a http://docs.neo4j.org/chunked/milestone/query-function.html#functions-reduce[+++<cite>+++REDUCE+++</cite>+++] over the resulting collection which just adds 1 to an accumulator for each record in the collection. Now that we've got that the next step is to combine our games played and games scored in queries together so that we can see what % of games Suarez scores in on each day. We end up with the following: [source,cypher] ---- START player = node:players('name:"Luis Suárez"') MATCH game-[:in]-stats-[:played]-player, game-[:on_day]-day WITH player, day, COUNT(game) AS playedGames MATCH game-[:in]-stats-[:played]-player-[r?:scored_in]-game-[:on_day]-day WITH day, COLLECT(DISTINCT([type(r), game.name])) AS games, playedGames WITH day, REDUCE(totalGames = 0, game in FILTER(x in games : head(x) = "scored_in"): totalGames + 1) AS scoredGames, playedGames RETURN day.name, playedGames, scoredGames, (scoredGames*1.0/playedGames*1.0) * 100 AS percentage ---- [source,text] ---- +-------------------------------------------------------------+ | day.name | playedGames | scoredGames | percentage | +-------------------------------------------------------------+ | "Saturday" | 11 | 6 | 54.54545454545454 | | "Monday" | 1 | 0 | 0.0 | | "Wednesday" | 4 | 2 | 50.0 | | "Sunday" | 13 | 7 | 53.84615384615385 | +-------------------------------------------------------------+ 4 rows ---- One thing I kept getting confused about here is that we need to pass everything that we want to eventually return in each WITH statement otherwise it won't be available to us at the end. If we're going to do multiple MATCH statements we need to pass the starting node in the preceding WITH statement which in this case means that we need to pass the player variable along. Other than that this query is the amalgamation of the previous two except we've added some arithmetic on the final line to work out the % of matches that Suarez scores in. I had to multiply each number by 1.0 to force float based arithmetic rather than integer based. In answer to our initial question it doesn't seem to matter which day a match is played on, Suarez scores in approximately every other game.
null
null
[ 0.009901478886604309, 0.0007845535292290151, 0.017441468313336372, 0.020128479227423668, 0.07036283612251282, -0.010027507320046425, 0.0287338774651289, 0.011476271785795689, 0.020662246271967888, -0.022619036957621574, 0.009865364991128445, -0.0023380161728709936, -0.06429363787174225, 0.004458611831068993, 0.013032859191298485, 0.07157354801893234, 0.05927972123026848, 0.03449573740363121, 0.012254104018211365, -0.048330582678318024, 0.035356104373931885, 0.0602714903652668, -0.0031919816974550486, 0.036065634340047836, 0.05698518827557564, 0.008936378173530102, -0.013327949680387974, -0.012183967046439648, -0.038587432354688644, -0.007030625827610493, 0.06350616365671158, -0.005514167249202728, 0.019246667623519897, -0.020342810079455376, 0.016226956620812416, -0.018176009878516197, -0.02876591868698597, 0.00867895781993866, -0.006462815683335066, -0.015287134796380997, -0.055376335978507996, 0.0285702683031559, -0.026574043557047844, 0.030505657196044922, -0.05536745861172676, 0.014086151495575905, -0.05128127336502075, 0.03165615350008011, 0.002931478898972273, 0.018811171874403954, -0.0670963004231453, 0.023901883512735367, 0.0036256439052522182, 0.016092510893940926, -0.001907093683257699, 0.04955745115876198, 0.006514610722661018, -0.05180763453245163, 0.017700696364045143, -0.00859945546835661, -0.009662942960858345, -0.0035314986016601324, 0.015416462905704975, 0.00014328985707834363, 0.004106185398995876, -0.039670366793870926, -0.024324791505932808, 0.04303386062383652, -0.04887189716100693, 0.019779805094003677, -0.0087786465883255, 0.012564404867589474, -0.0039953263476490974, -0.023823924362659454, 0.013092654757201672, -0.06379512697458267, 0.0016365117626264691, 0.0665329322218895, 0.02842557616531849, 0.05713215470314026, -0.023537971079349518, 0.01570052094757557, 0.009993772953748703, 0.043837305158376694, -0.00017929797468241304, -0.027424190193414688, -0.015395657159388065, -0.04602215439081192, -0.03693331778049469, 0.05990494415163994, 0.014238286763429642, -0.046635039150714874, 0.033957477658987045, -0.00308726797811687, -0.02039427123963833, -0.003740237094461918, 0.03699025884270668, 0.008418292738497257, -0.010394499637186527, -0.023679103702306747, -0.003547494998201728, -0.04973328486084938, 0.01110625546425581, -0.01308959349989891, -0.08895973861217499, -0.015131944790482521, -0.01648298278450966, 0.008843080140650272, 0.020125992596149445, -0.02517896145582199, -0.03201885148882866, 0.0016087447293102741, 0.000027100339138996787, 0.005290227942168713, -0.0774945393204689, 0.06871053576469421, 0.018632937222719193, -0.03861201927065849, -0.016648894175887108, 0.024816347286105156, 0.014031000435352325, 0.0077334241941571236, 0.014578391797840595, 0.08125459402799606, 0.005270111374557018, 0.03044530749320984, 0.027009692043066025, 0.03998593986034393, -0.00695394491776824, -0.07346507906913757, -0.006033541634678841, 0.07554373890161514, -0.014015546068549156, 0.013329132460057735, -0.01845644786953926, -0.04744100570678711, -0.020582465454936028, 0.00822084117680788, 0.045458536595106125, 0.03277770057320595, 0.006121407728642225, -0.03476870059967041, 0.018701348453760147, 0.007388648111373186, 0.04414096847176552, 0.007684255950152874, -0.0105206910520792, -0.023081481456756592, 0.004431794863194227, -0.0011455873027443886, 0.033530253916978836, 0.01954689994454384, 0.029527416452765465, -0.04608282074332237, -0.002093941206112504, 0.09928695857524872, 0.02703062817454338, -0.0132743613794446, -0.03611648455262184, 0.006522488780319691, 0.04803141579031944, 0.00909472443163395, 0.03616144135594368, 0.04487232491374016, -0.0029192124493420124, -0.02497773803770542, 0.004824549425393343, 0.06554235517978668, -0.012411491014063358, 0.016262482851743698, -0.03977420553565025, -0.04378707706928253, 0.06974824517965317, -0.04809641093015671, -0.019153684377670288, 0.056474972516298294, 0.06492649018764496, 0.031614962965250015, 0.06394249945878983, 0.009405803866684437, -0.08386477828025818, 0.03794298693537712, -0.008499211631715298, 0.03467527776956558, 0.019875751808285713, -0.00597715750336647, 0.08122257143259048, 0.046310920268297195, 0.014277126640081406, 0.03033352829515934, -0.08374756574630737, -0.07425577193498611, 0.004409146960824728, -0.00947829894721508, 0.05199992656707764, -0.04893500357866287, 0.03305984288454056, 0.011158384382724762, 0.011937182396650314, 0.01975126937031746, 0.013333830051124096, 0.01806349866092205, 0.012233029119670391, -0.04177229851484299, -0.04997700825333595, 0.05850406736135483, 0.023312218487262726, -0.04799693822860718, -0.0374249592423439, 0.03270922228693962, -0.027863791212439537, -0.002453400520607829, 0.03218115121126175, -0.028913989663124084, -0.006325690075755119, 0.011317993514239788, 0.036747269332408905, -0.006065433844923973, 0.04374590888619423, -0.03850436210632324, 0.007716981694102287, 0.045484356582164764, -0.03634266182780266, 0.03329552710056305, 0.0005506702000275254, 0.11785685271024704, 0.04139743745326996, -0.02108350396156311, -0.06641162931919098, 0.0019047919195145369, 0.012894616462290287, -0.03016461245715618, -0.0014040422393009067, 0.01062557939440012, 0.0004858145257458091, -0.02376721240580082, -0.05100594088435173, -0.03134751319885254, 0.011955666355788708, -0.029072357341647148, 0.012067429721355438, 0.05472063645720482, -0.0014592909719794989, 0.04193171486258507, -0.02948657050728798, 0.0036173423286527395, -0.03494294732809067, -0.023647163063287735, -0.039358679205179214, 0.03345884382724762, -0.007965913973748684, -0.019043324515223503, 0.018823305144906044, -0.018205614760518074, 0.0024539653677493334, -0.030513813719153404, -0.029794838279485703, 0.05530573055148125, 0.0547214075922966, 0.06518899649381638, -0.011530301533639431, 0.03680625930428505, -0.013206681236624718, 0.007434370927512646, -0.02426869422197342, -0.052310843020677567, -0.06802129745483398, -0.01944800652563572, 0.004059811122715473, 0.004301687236875296, 0.0382261760532856, -0.012583928182721138, 0.025213081389665604, -0.0031740565318614244, 0.00008240259194280952, 0.013031946495175362, 0.034169506281614304, 0.012121976353228092, -0.008007192052900791, -0.03030329942703247, -0.0379154235124588, 0.053502000868320465, -0.038862623274326324, -0.036068614572286606, -0.012261955067515373, -0.07118242233991623, 0.040025677531957626, -0.055385760962963104, -0.020419923588633537, -0.002425685292109847, 0.005746670067310333, 0.06066828593611717, 0.004793812520802021, 0.0032989613246172667, 0.05720784142613411, -0.010474523529410362, 0.011067423038184643, 0.04054107889533043, 0.018482467159628868, 0.03499618172645569, -0.01269438210874796, 0.03076094761490822, 0.05721255764365196, -0.02424454502761364, 0.020301276817917824, -0.039311278611421585, 0.003267106367275119, -0.0037010088562965393, -0.27965447306632996, 0.050825413316488266, -0.023758279159665108, -0.030206220224499702, 0.022465433925390244, -0.01437203586101532, 0.0052244337275624275, -0.03172125294804573, -0.04413722828030586, 0.003663264913484454, -0.02773306518793106, -0.023593556135892868, -0.016820119693875313, 0.03264172375202179, 0.0429045595228672, 0.01924079656600952, -0.014504258520901203, -0.06243158131837845, -0.011579329147934914, 0.05184269696474075, 0.012391330674290657, -0.05743776261806488, -0.042794886976480484, 0.03588864952325821, 0.005758463870733976, 0.06542625278234482, -0.08333022147417068, -0.009193994104862213, -0.06622644513845444, -0.0053292834199965, 0.004180938471108675, -0.009319481439888477, -0.009880163706839085, -0.01384403370320797, -0.03389393538236618, -0.017333824187517166, 0.04687964916229248, -0.010846312157809734, -0.006802215240895748, 0.025766124948859215, -0.048106834292411804, -0.045156873762607574, -0.01842672936618328, -0.02242310717701912, 0.08901186287403107, 0.0034905746579170227, -0.06205613166093826, -0.02455994486808777, -0.01662752963602543, 0.05582502484321594, -0.01697644032537937, -0.04677676782011986, -0.02074117213487625, 0.0020651572849601507, -0.015999997034668922, -0.032864633947610855, -0.012353101745247841, -0.03263683244585991, -0.04752916097640991, -0.008472418412566185, -0.011463243514299393, -0.036702290177345276, 0.012873927131295204, -0.028010152280330658, -0.013276579789817333, -0.04311900585889816, -0.042150046676397324, -0.02308451198041439, 0.06622970849275589, 0.012934217229485512, -0.008147746324539185, 0.01807926408946514, -0.018371768295764923, -0.08299136161804199, -0.04989297688007355, 0.005864573642611504, 0.0038549562450498343, 0.011357119306921959, 0.012357346713542938, 0.028280483558773994, -0.044508371502161026, -0.05841560289263725, -0.013181240297853947, 0.026117293164134026, 0.03243693709373474, 0.003459606785327196, 0.027854548767209053, 0.005757157225161791, -0.043424516916275024, 0.003888782113790512, 0.06498478353023529, -0.02881455048918724, -0.008129104971885681, 0.021336445584893227, -0.006495644338428974, 0.037693411111831665, -0.002693174872547388, 0.003060748102143407, 0.018112044781446457, 0.05788291618227959, 0.04615205526351929, -0.029691169038414955, 0.008601531386375427, -0.04183854162693024, -0.03725453466176987, 0.006732343230396509, -0.047711681574583054, 0.016564395278692245, 0.022173091769218445, 0.017471231520175934, 0.021597202867269516, -0.010796422138810158, 0.012421500869095325, -0.030176928266882896, -0.014667042531073093, -0.03139505535364151, 0.049169354140758514, 0.010181766003370285, 0.043033674359321594, -0.01392957754433155, -0.06929460167884827, 0.027389537543058395, 0.006420166231691837, -0.0323120579123497, -0.08369716256856918, -0.02673654444515705, -0.014250901527702808, -0.022111602127552032, 0.010913833044469357, 0.016608547419309616, -0.033254414796829224, 0.022716283798217773, 0.038016486912965775, -0.020471051335334778, 0.03940975293517113, -0.006376356352120638, -0.0358860045671463, -0.029974712058901787, 0.008797286078333855, 0.0038108874578028917, 0.0062484717927873135, 0.007603160105645657, 0.011695402674376965, 0.051042359322309494, 0.02718210034072399, -0.005937619600445032, -0.0071907080709934235, -0.00834640022367239, 0.0043353852815926075, 0.026136258617043495, -0.008382396772503853, -0.032200295478105545, 0.026529556140303612, -0.06653609871864319, -0.014058785513043404, 0.012705857865512371, 0.054114099591970444, -0.016211992129683495, -0.02115890011191368, -0.02694091759622097, 0.0054592532105743885, -0.050092585384845734, 0.0004108453285880387, -0.02064804546535015, 0.027388811111450195, 0.0680193305015564, -0.05149397253990173, 0.018335700035095215, -0.005569090601056814, 0.009728742763400078, -0.002523415954783559, -0.013190950267016888, -0.04965030401945114, 0.035776108503341675, -0.015012886375188828, 0.0013429148821160197, -0.013608911074697971, 0.03464799374341965, -0.002374347299337387, 0.0038399584591388702, -0.012964656576514244, 0.0003003451565746218, 0.0016505303792655468, 0.040898483246564865, 0.06632895022630692, 0.05373845994472504, -0.023961355909705162, -0.031938157975673676, -0.009093454107642174, -0.0007952786982059479, -0.020245172083377838, 0.01578926481306553, -0.03362473100423813, 0.004391052294522524, -0.046722978353500366, -0.08531270921230316, 0.03178873658180237, 0.012092468328773975, 0.007786126341670752, 0.02926819957792759, 0.006902375724166632, -0.027354389429092407, -0.027834545820951462, 0.028598159551620483, 0.0702824592590332, -0.06437993794679642, -0.00639417814090848, -0.0016793638933449984, -0.018792377784848213, -0.005143528338521719, -0.00001837531635828782, -0.0697949007153511, -0.030659908428788185, -0.010063870809972286, 0.025584878399968147, -0.011641127988696098, 0.0021596108563244343, -0.005096420645713806, -0.016357271000742912, -0.011618693359196186, 0.04353222995996475, 0.017516765743494034, 0.005559320095926523, -0.0020863860845565796, -0.028920264914631844, 0.03372279927134514, -0.004091095644980669, -0.024552399292588234, 0.011285902000963688, -0.02544005773961544, 0.025614967569708824, -0.040727660059928894, 0.026741139590740204, 0.043907612562179565, -0.01238972321152687, 0.005560323596000671, -0.04787513241171837, -0.0027171974070370197, 0.00936154741793871, 0.06380216032266617, -0.022848160937428474, -0.017836252227425575, -0.02914281189441681, -0.021350646391510963, -0.04129612445831299, 0.01731013134121895, -0.0004187699523754418, -0.023392947390675545, -0.0005782145890407264, 0.03934111073613167, 0.012692115269601345, 0.03769761323928833, -0.018448684364557266, -0.025281008332967758, 0.04635883867740631, -0.02898421511054039, -0.030767394229769707, -0.019157785922288895, -0.04117334261536598, 0.017876751720905304, 0.0006728279404342175, 0.001073806663043797, -0.01283565629273653, 0.0516139380633831, 0.04522839933633804, 0.017568988725543022, 0.04838736727833748, 0.020151838660240173, 0.014914276078343391, -0.025535667315125465, -0.01990523748099804, -0.07604972273111343, 0.003952297382056713, 0.060588277876377106, 0.014939471147954464, 0.018515564501285553, 0.003138473955914378, -0.03959432989358902, 0.03168361634016037, -0.07403833419084549, -0.03740914538502693, 0.014112929813563824, -0.023355193436145782, 0.020578598603606224, 0.018037430942058563, -0.05516970902681351, -0.02227407693862915, 0.04182685539126396, -0.026474805548787117, -0.037429410964250565, -0.044685136526823044, 0.055905163288116455, -0.02576439641416073, 0.03745577111840248, 0.016855748370289803, -0.023513853549957275, 0.06729522347450256, 0.035199932754039764, 0.052005890756845474, 0.03296094387769699, -0.022801196202635765, 0.04102269560098648, 0.018559681251645088, 0.019396629184484482, -0.002245086943730712, 0.034575238823890686, -0.028634240850806236, -0.05823206156492233, 0.006915698759257793, -0.0033414762001484632, 0.007093123625963926, -0.051131345331668854, 0.07738180458545685, 0.0019406883511692286, -0.05288944020867348, -0.044057514518499374, 0.016631321981549263, -0.023129703477025032, -0.0240078866481781, -0.007800247985869646, 0.025936616584658623, -0.029909450560808182, 0.06503942608833313, -0.0033789658918976784, 0.01927448809146881, 0.060076937079429626, -0.001501024584285915, -0.03741125017404556, 0.01015902403742075, 0.11880836635828018, 0.08918048441410065, 0.027349097654223442, -0.006383511703461409, 0.0870976522564888, -0.008111827075481415, -0.05040881037712097, -0.007626515347510576, -0.03116542659699917, -0.013125533238053322, 0.018898529931902885, 0.03640761598944664, 0.05591505393385887, -0.04646940901875496, 0.060902368277311325, -0.01512687373906374, -0.04271389916539192, 0.028155982494354248, -0.010063917376101017, 0.02956809289753437, 0.07567945122718811, 0.009554699063301086, 0.042578864842653275, -0.016513360664248466, -0.0474935844540596, 0.018155401572585106, -0.0041282325983047485, -0.023477675393223763, 0.030198978260159492, -0.06435845047235489, 0.006726130843162537, -0.014781258068978786, 0.0445999801158905, 0.09068707376718521, -0.024177614599466324, 0.030474955216050148, -0.0016201328253373504, 0.008950426243245602, 0.0011049637105315924, 0.027280563488602638, -0.014404558576643467, -0.01141184102743864, -0.037753283977508545, -0.038622912019491196, -0.018673259764909744, -0.0457131527364254, -0.05656486377120018, 0.002329443581402302, 0.0002823740942403674, -0.011204699985682964, -0.001629645237699151, -0.004506169352680445, -0.018433187156915665, -0.05055611580610275, -0.051615532487630844, -0.050166577100753784, -0.08155836910009384, -0.015865130349993706, 0.03672771900892258, -0.001688317395746708, -0.026621831580996513, 0.026974782347679138, -0.01886826567351818, -0.011132587678730488, 0.022669373080134392, -0.03164627030491829, -0.0004463526711333543, 0.022168336436152458, 0.0481589250266552, 0.018244171515107155, 0.012381406500935555, 0.05547047778964043, -0.01209742296487093, 0.012778212316334248, -0.03017226792871952, 0.013965964317321777, 0.03699614852666855, 0.01588783971965313, -0.012521976605057716, -0.08742743730545044, -0.009719905443489552, 0.023773567751049995, -0.03662438690662384, -0.08849001675844193, -0.0014279985334724188, 0.017898818477988243, 0.023217054083943367, 0.053790073841810226, -0.03727160394191742, -0.012290319427847862, -0.04113822802901268, 0.03923169896006584, 0.013804600574076176, -0.0021286490373313427, 0.03939343988895416, -0.016988689079880714, 0.09018854051828384, 0.015811029821634293, -0.03824671357870102, -0.033994629979133606, -0.022060243412852287, 0.00019084307132288814, -0.004068990703672171, -0.029084451496601105, -0.018724098801612854, -0.04143955186009407, -0.1051422655582428, -0.02478828653693199, 0.015698881819844246, -0.03504054620862007, -0.04585252329707146, -0.0095870615914464, 0.004856074694544077, 0.0017676912248134613, 0.01916421204805374, -0.038335494697093964, 0.05019516870379448, -0.006873736623674631, -0.006894422695040703, -0.06295298039913177, 0.005835996475070715, -0.0013884988147765398, 0.02578028291463852, 0.007056275382637978, -0.04662133380770683, -0.0012874777894467115, -0.016560522839426994, -0.0035185148008167744, 0.008525429293513298, 0.012031483463943005, 0.0007577657816000283 ]
[ -0.061119627207517624, 0.017049433663487434, -0.03871297836303711, -0.011572854593396187, 0.04883364215493202, -0.018770335242152214, 0.03435920178890228, 0.014341417700052261, 0.06709598749876022, -0.001378424116410315, 0.010577439330518246, -0.05652308091521263, -0.0006050303927622736, 0.02154606580734253, 0.04002360254526138, -0.01930001750588417, -0.036079347133636475, -0.08276239037513733, -0.04314900562167168, 0.04117186367511749, -0.03795238584280014, -0.005901187192648649, -0.024638088420033455, -0.019372567534446716, 0.03385055437684059, 0.03174690529704094, 0.04929546266794205, -0.02771858312189579, -0.03194057196378708, -0.22193485498428345, -0.004186953883618116, -0.019035689532756805, 0.025782335549592972, -0.011098208837211132, 0.0008218324510380626, -0.009896070696413517, 0.011093025095760822, -0.011213520541787148, 0.03613569959998131, 0.05473356321454048, 0.025448646396398544, 0.0010446346132084727, -0.037223055958747864, -0.020525524392724037, 0.03502952679991722, 0.010210134088993073, -0.005096444860100746, 0.0170701015740633, 0.03300866484642029, 0.06262322515249252, -0.028765099123120308, 0.006979325786232948, -0.01429955568164587, -0.019277423620224, -0.0018228125991299748, 0.08512835949659348, 0.03672311455011368, 0.0537400022149086, 0.023135283961892128, 0.07211305946111679, 0.03953864052891731, 0.01973024383187294, -0.1489749550819397, 0.048678454011678696, -0.001720174215734005, -0.008195980452001095, -0.0700867548584938, 0.011133750900626183, -0.013614598661661148, 0.09313424676656723, 0.01284091081470251, -0.027813462540507317, -0.010371895506978035, 0.05131126567721367, 0.005946614313870668, -0.0032059212680906057, -0.02464611455798149, 0.014003562740981579, -0.0010090427240356803, 0.001643946161493659, -0.04759880527853966, 0.008629691787064075, -0.03174281120300293, -0.028641333803534508, -0.03391910716891289, 0.010479962453246117, -0.036805883049964905, 0.03041156381368637, -0.002997018862515688, 0.0325862281024456, 0.05166754871606827, 0.05745775252580643, -0.00822904147207737, 0.03595897927880287, -0.10449162125587463, -0.05033722519874573, 0.009799718856811523, 0.013059559278190136, -0.034372515976428986, 0.43083083629608154, 0.023132752627134323, -0.0018910845974460244, 0.02370927669107914, 0.04004959389567375, -0.007408343721181154, -0.024987569078803062, 0.014111828058958054, -0.05710132420063019, 0.012621280737221241, -0.025103241205215454, -0.014510874636471272, -0.04061581939458847, 0.02009366825222969, -0.0681394711136818, 0.006129138171672821, 0.055221304297447205, 0.04978065937757492, 0.015066766180098057, 0.013887766748666763, 0.009997054003179073, -0.013869930990040302, 0.0011368348496034741, -0.012530478648841381, 0.019242139533162117, 0.012703349813818932, 0.0577838271856308, 0.03831280767917633, 0.06459110230207443, 0.021525714546442032, 0.013785437680780888, 0.04383924603462219, -0.024949174374341965, -0.09045097231864929, 0.007785059977322817, -0.035195089876651764, -0.01327138114720583, 0.043839454650878906, -0.029586123302578926, 0.03450648486614227, 0.030834142118692398, -0.017201246693730354, -0.057463638484478, 0.06957556307315826, -0.023786799982190132, -0.03590566664934158, 0.11712861061096191, 0.0034762462601065636, -0.03147969767451286, -0.0034213752951472998, -0.06498005241155624, -0.01604386232793331, 0.01827622391283512, 0.028164047747850418, -0.07188664376735687, -0.04915551841259003, 0.007252383045852184, 0.06787049025297165, -0.03446229547262192, -0.06290063261985779, -0.0050261435098946095, -0.05000055208802223, -0.03461722284555435, -0.02462674118578434, 0.0679284855723381, 0.025968121364712715, -0.10571125149726868, -0.015939341858029366, -0.016170114278793335, -0.013787486590445042, -0.08157118409872055, 0.0211211945861578, 0.003783278865739703, -0.0537121519446373, 0.00644025020301342, 0.04834696650505066, -0.00047872442519292235, -0.027422180399298668, -0.021059410646557808, 0.057840000838041306, -0.011428901925683022, 0.006948499474674463, 0.010351492092013359, -0.06355945020914078, 0.00028020652825944126, -0.06425005197525024, -0.032886698842048645, -0.07189005613327026, 0.009200298227369785, -0.020248573273420334, -0.03126861900091171, -0.037902384996414185, -0.013387080281972885, -0.04738333448767662, 0.060679756104946136, -0.04710933193564415, 0.001247096573933959, -0.02987414225935936, -0.012718023732304573, -0.013551624491810799, -0.03779082000255585, -0.0009578922763466835, -0.009045109152793884, 0.00871983915567398, 0.007056216709315777, -0.0015080416342243552, 0.03964171186089516, 0.014234674163162708, -0.022777153179049492, 0.0665161982178688, -0.00512812752276659, -0.03155108168721199, -0.02883971482515335, -0.038844577968120575, 0.018265455961227417, -0.015077224932610989, 0.0020150712225586176, -0.04211684688925743, 0.0063826292753219604, 0.006763768382370472, 0.05179614573717117, -0.043288394808769226, -0.007744829170405865, 0.02665066532790661, -0.32602939009666443, -0.030019383877515793, -0.03750614821910858, 0.003250635927543044, 0.009429245255887508, -0.025363663211464882, 0.0006149834371171892, -0.04456489160656929, 0.003963027615100145, 0.06603994220495224, 0.04237319901585579, 0.025894394144415855, -0.004050820600241423, -0.06415383517742157, -0.024856802076101303, 0.012493599206209183, -0.03305155038833618, -0.019255153834819794, -0.014865078032016754, 0.04582745209336281, 0.0600803978741169, -0.02867879346013069, -0.040568385273218155, -0.022056370973587036, -0.01208261027932167, -0.0463845320045948, 0.1470693051815033, 0.06044667214155197, -0.013596773147583008, -0.061331912875175476, 0.04134523123502731, 0.0013802911853417754, -0.010877683758735657, -0.051521893590688705, 0.028090909123420715, -0.01307310163974762, 0.018251437693834305, -0.026782168075442314, 0.014835364185273647, -0.050438281148672104, -0.027350636199116707, 0.010209951549768448, -0.020531918853521347, -0.04108385741710663, -0.06485506147146225, 0.03116356022655964, -0.013976220972836018, -0.02105160430073738, -0.017215915024280548, 0.08033434301614761, 0.023384373635053635, 0.024062158539891243, 0.06513623148202896, -0.017342297360301018, 0.04703400284051895, -0.024255620315670967, -0.10239244252443314, 0.0072723994962871075, -0.01914445497095585, 0.018050847575068474, -0.003933352883905172, 0.006679713726043701, 0.06497598439455032, -0.0889870896935463, -0.006820149254053831, 0.03430784493684769, 0.01646149903535843, 0.0018906017066910863, 0.00247969850897789, -0.02053474262356758, -0.018512168899178505, 0.011257021687924862, -0.008101904764771461, 0.04115073382854462, 0.03122418373823166, 0.0409267283976078, 0.026033679023385048, 0.013050836510956287, 0.035616185516119, 0.020649434998631477, 0.06068984419107437, -0.05596345663070679, 0.05230109021067619, -0.030164707452058792, 0.017234738916158676, 0.04547920450568199, 0.03816261515021324, 0.007828659377992153, 0.06844259053468704, 0.006544901989400387, -0.015351598151028156, 0.004092787858098745, -0.011692793108522892, -0.016705237329006195, 0.03513302281498909, -0.0386735163629055, -0.2506037950515747, 0.02469286322593689, 0.035306479781866074, 0.04441993683576584, 0.0326574333012104, 0.000031711682822788134, 0.01601068489253521, -0.022863904014229774, -0.033422328531742096, 0.0061309500597417355, 0.04248015210032463, 0.02949831448495388, -0.011047981679439545, -0.025773780420422554, -0.021895641461014748, -0.008718524128198624, 0.023681921884417534, -0.012703879736363888, 0.04094742611050606, 0.040390126407146454, 0.08188186585903168, -0.004013147205114365, 0.18498694896697998, 0.006755714304745197, 0.04988252744078636, 0.07194457203149796, -0.012858318164944649, -0.03767847269773483, -0.004962734412401915, 0.01770424097776413, 0.0007612855988554657, 0.005331781227141619, 0.041354257613420486, 0.0720863938331604, -0.004982722923159599, -0.0011875875061377883, -0.009361956268548965, 0.07976353913545609, -0.007083700969815254, -0.0684305876493454, -0.010043991729617119, 0.03989904001355171, -0.05391043797135353, 0.010871173813939095, 0.07387636601924896, 0.012014380656182766, -0.008842152543365955, -0.006145931314677, -0.05124400183558464, -0.02762257494032383, -0.039310943335294724, -0.04264870658516884, -0.0060009039007127285, -0.014671421609818935, -0.0008257325971499085, 0.045780397951602936, 0.03464400768280029, -0.027293654158711433, 0.048672713339328766, 0.015240051783621311, -0.02401457168161869, 0.011862746439874172, 0.08734890073537827, -0.019601531326770782, 0.029821140691637993 ]
[ 0.03832471743226051, 0.04404149949550629, 0.017650259658694267, 0.02376958355307579, -0.0033914304804056883, 0.05029390752315521, -0.01445911917835474, 0.030749943107366562, 0.00849298108369112, -0.008734898641705513, -0.059580497443675995, -0.024220287799835205, 0.019097408279776573, 0.02050904557108879, 0.035263363271951675, -0.014354344457387924, -0.046337779611349106, 0.01408684067428112, 0.037980157881975174, -0.027707625180482864, -0.049822092056274414, -0.006857803091406822, 0.005884496029466391, -0.02630387246608734, -0.025767898187041283, 0.03210413083434105, -0.0349942184984684, 0.04278506338596344, 0.0352402925491333, -0.10860785096883774, -0.061860911548137665, -0.029611676931381226, 0.04149904474616051, 0.05138693377375603, -0.052171941846609116, -0.06530442088842392, -0.009886283427476883, -0.014734799042344093, -0.003223205218091607, 0.03575101122260094, 0.003540276549756527, -0.005606482271105051, -0.03172384575009346, 0.03944343328475952, -0.015744563192129135, 0.014277555048465729, -0.02460603415966034, 0.028198376297950745, -0.02014971897006035, 0.0073636076413095, -0.05383896082639694, 0.00266252807341516, 0.014605941250920296, 0.025535933673381805, 0.02049723081290722, 0.039882317185401917, -0.0357954315841198, 0.008782335557043552, 0.02097155898809433, -0.018453776836395264, 0.027794623747467995, -0.018162572756409645, -0.05911840498447418, -0.033035218715667725, -0.03263884782791138, -0.053839948028326035, -0.03713207319378853, 0.027053622528910637, -0.000756928522605449, 0.02586054988205433, -0.027223438024520874, 0.01753346063196659, -0.03117678128182888, -0.00046405423199757934, -0.013822582550346851, 0.03772658482193947, -0.014846807345747948, -0.04410416632890701, 0.008367801085114479, 0.0014517386443912983, -0.037222232669591904, -0.0008134135277941823, -0.01181013137102127, 0.0038779221940785646, 0.015087351202964783, -0.0011699371971189976, 0.014658489264547825, 0.016355661675333977, 0.026314040645956993, 0.003428188618272543, -0.050789885222911835, 0.0051446459256112576, 0.01607179269194603, 0.004933829419314861, -0.07517993450164795, 0.013571136631071568, -0.005029893480241299, -0.008190385065972805, 0.040373295545578, 0.8087979555130005, 0.02635793760418892, 0.0289164911955595, -0.009871953167021275, 0.017764877527952194, 0.002063342370092869, 0.00205415696837008, -0.015370737761259079, 0.008599487133324146, -0.005130228586494923, -0.03954288363456726, -0.002377462340518832, 0.04105180874466896, 0.021780800074338913, 0.022244656458497047, -0.005460039712488651, 0.07455018162727356, 0.03890262171626091, 0.029523784294724464, -0.01326274685561657, 0.01757310889661312, 0.017545146867632866, -0.004238520748913288, -0.02583969756960869, 0.03313799574971199, -0.003243125043809414, -0.16231803596019745, 0.026536520570516586, -8.09863812496723e-33, 0.03381938487291336, -0.04021338000893593, 0.039886560291051865, -0.007804821711033583, -0.012615734711289406, 0.027365179732441902, -0.008453715592622757, -0.014979158528149128, -0.028843743726611137, -0.05738428607583046, 0.005808189976960421, 0.012794082053005695, 0.017161989584565163, -0.009319611825048923, 0.037507135421037674, -0.006567656062543392, -0.013191674835979939, 0.02711487002670765, 0.006884885486215353, 0.008928801864385605, 0.03802341967821121, 0.0035311977844685316, -0.023448944091796875, 0.018822908401489258, 0.005025687161833048, 0.059641219675540924, 0.001756289741024375, -0.02972906269133091, -0.012078491039574146, -0.06690214574337006, -0.031004609540104866, -0.019555164501070976, -0.023772427812218666, 0.025139981880784035, 0.021983202546834946, -0.04383907467126846, -0.013616858050227165, 0.010038310661911964, -0.03195418044924736, -0.06394094228744507, -0.03922835364937782, 0.010816091671586037, -0.023781929165124893, -0.058463189750909805, -0.05488075315952301, -0.018424080684781075, -0.010229876264929771, 0.005699343979358673, 0.009152824059128761, 0.006966729648411274, 0.04500293359160423, -0.01676204428076744, -0.010704846121370792, -0.015415211208164692, -0.011081498116254807, 0.03618840128183365, 0.003240317804738879, 0.01980629935860634, -0.00023986760061234236, 0.009856884367763996, 0.04563768953084946, -0.03046688623726368, 0.001478141057305038, 0.06046290695667267, 0.007072926964610815, 0.02924352139234543, 0.01028808020055294, -0.018490180373191833, 0.00012937239080201834, -0.0012554744025692344, -0.02447107993066311, 0.04356846585869789, 0.003068262478336692, -0.04149859398603439, 0.012560178525745869, -0.03030255436897278, -0.017711305990815163, -0.014400900341570377, -0.03791441768407822, 0.0605577751994133, 0.009780198335647583, -0.03162859380245209, -0.030621012672781944, -0.03390186280012131, -0.036208536475896835, 0.015730177983641624, 0.02715008705854416, 0.028602195903658867, 0.013291004113852978, 0.03261127322912216, 0.023522641509771347, 0.009461830370128155, -0.011214190162718296, -0.01584738865494728, -0.03163251280784607, 7.924324067683793e-33, -0.018036769703030586, -0.013557583093643188, 0.017334837466478348, -0.016148308292031288, 0.04210871085524559, -0.039969947189092636, 0.026416877284646034, 0.006179113872349262, -0.022565394639968872, 0.042305171489715576, -0.0076003363355994225, -0.0225372314453125, -0.013855690136551857, 0.027451148256659508, 0.025707831606268883, -0.00957917794585228, 0.01483017485588789, 0.012718476355075836, 0.002514892490580678, 0.042934320867061615, -0.0028760950081050396, -0.007076575420796871, 0.0233253575861454, 0.005882709752768278, 0.0032382302451878786, 0.03909311443567276, 0.027689125388860703, -0.014635484665632248, -0.027331700548529625, 0.006910824682563543, 0.03946167230606079, -0.029207032173871994, 0.005890802014619112, -0.024861205369234085, 0.006098735611885786, 0.00866851769387722, -0.023646526038646698, -0.014342723414301872, 0.019351836293935776, 0.013904218561947346, 0.0026683551259338856, 0.018244603648781776, -0.009478292427957058, 0.020455308258533478, 0.014688161201775074, 0.03332303464412689, -0.01016605831682682, -0.013813843950629234, 0.007222676649689674, 0.019783586263656616, 0.008427572436630726, 0.01073435414582491, -0.04528459161520004, 0.03462987393140793, 0.002773450454697013, -0.03910244628787041, -0.012457343749701977, 0.02485455572605133, -0.02482319250702858, -0.02963663451373577, -0.002710227621719241, 0.01620454154908657, -0.08217500150203705, 0.02437753789126873, 0.0037389318458735943, 0.010744918137788773, -0.05987394228577614, -0.010830557905137539, -0.011505457572638988, 0.012515721842646599, -0.030209999531507492, 0.014482308179140091, 0.005970879923552275, 0.04222560673952103, -0.04363222047686577, -0.005706980358809233, -0.02822779305279255, 0.006804781965911388, -0.021439330652356148, 0.06421642005443573, -0.017647475004196167, -0.016965504735708237, 0.027534248307347298, 0.029806913807988167, -0.023998919874429703, -0.016184590756893158, -0.021873576566576958, 0.013318680226802826, 0.021122312173247337, 0.028636183589696884, 0.055982012301683426, -0.025495456531643867, -0.00973131787031889, 0.025781381875276566, -0.006792695727199316, -1.3269698229123605e-8, -0.05316717177629471, -0.02792784571647644, -0.05401720106601715, 0.04701952263712883, 0.0035687561612576246, 0.015131385065615177, 0.018422195687890053, -0.02021399885416031, 0.02264530397951603, 0.01634393073618412, 0.04523934796452522, -0.03761846199631691, 0.022054322063922882, 0.002888099290430546, 0.022020623087882996, -0.029186764732003212, -0.02512935921549797, 0.002394790994003415, 0.04788563773036003, 0.04539726302027702, -0.002476986963301897, 0.03941528499126434, -0.03343167528510094, 0.03422248363494873, 0.040750645101070404, 0.001526656560599804, -0.007858412340283394, -0.0656505897641182, 0.005915575660765171, -0.03199787810444832, 0.04613481089472771, -0.02939119189977646, 0.03220159187912941, -0.003265672130510211, -0.01384230237454176, -0.026795560494065285, 0.021270891651511192, -0.011047284118831158, -0.008067966438829899, 0.006080032791942358, 0.00007194713543867692, -0.0012644939124584198, -0.05878851190209389, -0.029515577480196953, -0.0060332403518259525, -0.001635369611904025, -0.04237356409430504, -0.03539706766605377, 0.030650492757558823, -0.03955933451652527, 0.020291868597269058, 0.009028419852256775, 0.06941211223602295, -0.008337465114891529, 0.03541301190853119, 0.05899260193109512, -0.02154858410358429, 0.005367825273424387, -0.00918284896761179, -0.030902422964572906, -0.01675131916999817, 0.01900823786854744, -0.024844354018568993, -0.007013784255832434 ]
neo4jcypher-getting-the-hang-of-the-with-statement
https://markhneedham.com/blog/2013/03/20/neo4jcypher-getting-the-hang-of-the-with-statement
false
2013-03-20 02:54:43
neo4j/cypher: WITH, COLLECT & EXTRACT
[ "neo4j", "cypher" ]
[ "neo4j" ]
As I http://www.markhneedham.com/blog/2013/03/20/neo4jcypher-getting-the-hang-of-the-with-statement/[mentioned in my last post] I'm trying to get the hang of the +++<cite>+++http://docs.neo4j.org/chunked/milestone/query-with.html[WITH]+++</cite>+++ statement in neo4j's http://docs.neo4j.org/chunked/milestone/cypher-query-lang.html[cypher] query language and I found another application when trying to work out which opponents teams played on certain days. I started out with a query which grouped the data set by day and showed the opponents that were played on that day: [source,cypher] ---- START team = node:teams('name:"Manchester United"') MATCH team-[h:home_team|away_team]-game-[:on_day]-day RETURN DISTINCT day.name, COLLECT(TRIM(REPLACE(REPLACE(game.name, "Manchester United", ""), "vs", ""))) ---- [source,text] ---- +-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | day.name | opponents | +-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | "Sunday" | ["Liverpool","Everton","Southampton","Liverpool","Newcastle United","Chelsea","Manchester City","Swansea City","Tottenham Hotspur"] | | "Wednesday" | ["Southampton","West Ham United","Newcastle United"] | | "Monday" | ["Everton"] | | "Saturday" | ["Reading","Fulham","Wigan Athletic","Tottenham Hotspur","Stoke City","Arsenal","Queens Park Rangers","Sunderland","West Bromwich Albion","Norwich City","Reading","Aston Villa","Norwich City","Fulham","Queens Park Rangers"] | | "Tuesday" | ["Wigan Athletic"] | +-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ 5 rows ---- The way we've got the opponents is a bit of a hack - the name of the two teams is in the 'name' property of a game node and we've removed 'Manchester United' and the word 'vs' to get the opponent's name. I thought it'd be cool if we could separate the games on each day based on whether Manchester United were playing at home or away. With https://groups.google.com/forum/?fromgroups=#!topic/neo4j/D4M1gXKwQ3U[a lot of help from Wes Freeman] we ended up with the following query which does the job: [source,cypher] ---- START team = node:teams('name:"Manchester United"') MATCH team-[h:home_team|away_team]-game-[:on_day]-day WITH day.name as d, game, team, h MATCH team-[:home_team|away_team]-game-[:home_team|away_team]-opp WITH d, COLLECT([type(h),opp.name]) AS games RETURN d, EXTRACT(c in FILTER(x in games: HEAD(x) = "home_team") : HEAD(TAIL(c))) AS home, EXTRACT(c in FILTER(x in games: HEAD(x) = "away_team") : HEAD(TAIL(c))) AS away ---- We use a similar approach with COLLECT as in the http://www.markhneedham.com/blog/2013/03/20/neo4jcypher-getting-the-hang-of-the-with-statement/[previous post] whereby we have a collection of tuples describing whether Manchester United were at home or not and who they were playing. A neat thing that Wes pointed out is that since there are only 2 teams per game we're able to get the opponent node easily because it's the only other node that can match the 'home_team|away_team" relationship since we've already matched our team. If we run the query just up to the last WITH we get the following result: [source,text] ---- +-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | d | games | +-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | "Sunday" | [["home_team","Liverpool"],["home_team","Everton"],["away_team","Southampton"],["away_team","Liverpool"],["away_team","Newcastle United"],["away_team","Chelsea"],["away_team","Manchester City"],["away_team","Swansea City"],["away_team","Tottenham Hotspur"]] | | "Wednesday" | [["home_team","Southampton"],["home_team","West Ham United"],["home_team","Newcastle United"]] | | "Monday" | [["away_team","Everton"]] | | "Saturday" | [["home_team","Reading"],["home_team","Fulham"],["home_team","Wigan Athletic"],["home_team","Tottenham Hotspur"],["home_team","Stoke City"],["home_team","Arsenal"],["home_team","Queens Park Rangers"],["home_team","Sunderland"],["home_team","West Bromwich Albion"],["home_team","Norwich City"],["away_team","Reading"],["away_team","Aston Villa"],["away_team","Norwich City"],["away_team","Fulham"],["away_team","Queens Park Rangers"]] | | "Tuesday" | [["away_team","Wigan Athletic"]] | +-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ 5 rows ---- We then use the http://docs.neo4j.org/chunked/milestone/query-function.html#functions-filter[FILTER] function to choose either the opponents Manchester United played at home or away and then we use the http://docs.neo4j.org/chunked/milestone/query-function.html#functions-extract[EXTRACT] function to get the opponent from the tuple: [source,text] ---- +-------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | d | home | +-------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | "Sunday" | ["Liverpool","Everton"] | | "Wednesday" | ["Southampton","West Ham United","Newcastle United"] | | "Monday" | [] | | "Saturday" | ["Reading","Fulham","Wigan Athletic","Tottenham Hotspur","Stoke City","Arsenal","Queens Park Rangers","Sunderland","West Bromwich Albion","Norwich City"] | | "Tuesday" | [] | +-------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ 5 rows +-----------------------------------------------------------------------------------------------------------------------------+ | d | away | +-----------------------------------------------------------------------------------------------------------------------------+ | "Sunday" | ["Southampton","Liverpool","Newcastle United","Chelsea","Manchester City","Swansea City","Tottenham Hotspur"] | | "Wednesday" | [] | | "Monday" | ["Everton"] | | "Saturday" | ["Reading","Aston Villa","Norwich City","Fulham","Queens Park Rangers"] | | "Tuesday" | ["Wigan Athletic"] | +-----------------------------------------------------------------------------------------------------------------------------+ 5 rows ---- _(I ran the query twice alternating between the last two lines so that it's readable here. In actual fact the away teams would be in a column next to the home teams)_ I thought it was quite interesting how many games Manchester United play away on a Sunday - I think all of those games were probably televised so I thought they'd be more evenly split between home and away matches. Adding televised matches is perhaps http://www.markhneedham.com/blog/2012/07/21/neo4j-embracing-the-sub-graph/[another layer to add to the graph]. It's probably more useful to summarise how many games were played on each day at home and away rather than who they're against and we can use the +++<cite>+++REDUCE+++</cite>+++ function to do this: [source,cypher] ---- START team = node:teams('name:"Manchester United"') MATCH team-[h:home_team|away_team]-game-[:on_day]-day WITH day.name as dayName, game, team, h MATCH team-[:home_team|away_team]-game-[:home_team|away_team]-opp WITH dayName, COLLECT([type(h),opp.name]) AS games RETURN dayName, REDUCE(homeGames=0, game in EXTRACT(c in FILTER(x in games: head(x) = "home_team") : HEAD(TAIL(c))) : homeGames + 1) as home, REDUCE(awayGames=0, game in EXTRACT(c in FILTER(x in games: head(x) = "away_team") : HEAD(TAIL(c))) : awayGames + 1) as away, REDUCE(totalGames=0, game in games : totalGames + 1) as total ---- [source,text] ---- +-----------------------------------+ | dayName | home | away | total | +-----------------------------------+ | "Sunday" | 2 | 7 | 9 | | "Wednesday" | 3 | 0 | 3 | | "Monday" | 0 | 1 | 1 | | "Saturday" | 10 | 5 | 15 | | "Tuesday" | 0 | 1 | 1 | +-----------------------------------+ 5 rows ---- An alternative way of writing the initial query would be the following which Michael Hunger suggested on the thread: [source,cypher] ---- START team = node:teams('name:"Manchester United"') MATCH p=team-[:home_team|away_team]-game-[:home_team|away_team]-(), game-[:on_day]-day WITH day.name as dayName, COLLECT([LAST(p), HEAD(RELS(p))]) AS opponents WITH dayName, EXTRACT(y in FILTER(x in opponents: TYPE(HEAD(TAIL(x))) = "home_team") : HEAD(y)) AS home, EXTRACT(y in FILTER(x in opponents : TYPE(HEAD(TAIL(x))) = "away_team") : HEAD(y)) AS away RETURN dayName, EXTRACT(team in home: team.name) AS homeOpponents, EXTRACT(team in away: team.name) AS awayOpponents ORDER BY dayName ---- Here we take a slightly different approach where we make use of functions that we can apply to a matching path. We create a collection of tuples where +++<cite>+++LAST(p)+++</cite>+++ matches the opponent node and +++<cite>+++HEAD(RELS(p))+++</cite>+++ matches the 'home_team' or 'away_team' relationship accordingly. We then filter the collection to find the times that we played at home and away. This is done by taking the second value from the tuple and then calling +++<cite>+++TYPE+++</cite>+++ on it which either returns 'home_team' or 'away_team'. We then extract the first value from the tuple which is the opponent node. In the last part of the query we extract the name from the opponent nodes.
null
null
[ 0.014861569739878178, -0.01650833897292614, -0.01561096590012312, 0.010615036822855473, 0.07341905683279037, -0.029088793322443962, 0.050520461052656174, 0.02616305835545063, 0.031136898323893547, -0.01948765106499195, 0.008141221478581429, 0.0006704097031615674, -0.08043655008077621, 0.005933509673923254, 0.013713139109313488, 0.06819622963666916, 0.05379116162657738, 0.02617807500064373, 0.008175444789230824, -0.05809826776385307, 0.024403780698776245, 0.05794175714254379, -0.0007716357940807939, 0.042434319853782654, 0.0514177642762661, 0.010046667419373989, -0.01196859497576952, -0.015536600723862648, -0.03411119803786278, 0.015092644840478897, 0.0557829923927784, -0.011906142346560955, 0.028214627876877785, -0.025404756888747215, 0.03414572402834892, -0.02478133700788021, -0.03295980766415596, -0.007100163493305445, -0.0071387095376849174, -0.037964820861816406, -0.05102409049868584, 0.027612924575805664, -0.030683323740959167, 0.03782588243484497, -0.04794315993785858, 0.03187185898423195, -0.04656447470188141, 0.038868099451065063, -0.02595444954931736, 0.0014976661186665297, -0.08509556204080582, 0.013488099910318851, 0.012058256193995476, 0.02907944656908512, -0.011535627767443657, 0.06155017390847206, 0.005237730219960213, -0.06315990537405014, 0.03984936699271202, -0.004827981349080801, -0.009068402461707592, -0.01345333456993103, 0.0027392199262976646, 0.024740509688854218, 0.002867333823814988, -0.0363033153116703, 0.0027855124790221453, 0.05676478520035744, -0.05365033447742462, 0.003978025633841753, 0.00027151990798301995, 0.029659271240234375, -0.005363606382161379, -0.018157558515667915, 0.0024201383348554373, -0.04137685149908066, 0.0053776586428284645, 0.06797809898853302, 0.025642771273851395, 0.07750771939754486, -0.03764032572507858, 0.038497090339660645, 0.012864777818322182, 0.025492412969470024, -0.006715507246553898, -0.031401440501213074, -0.016246207058429718, -0.04357835277915001, -0.03605308383703232, 0.052860986441373825, 0.006080951076000929, -0.04405369237065315, 0.02536822110414505, -0.006202422548085451, -0.033961374312639236, 0.0016670777695253491, 0.01913256198167801, 0.0134036336094141, 0.007595463655889034, -0.0208644587546587, -0.010170266032218933, -0.051076848059892654, 0.0084476787596941, 0.01704065129160881, -0.0936860516667366, -0.023614397272467613, -0.02253865823149681, -0.009440441615879536, 0.006120186764746904, -0.02775605022907257, -0.03862397372722626, 0.009566891938447952, -0.003633034648373723, 0.0028064732905477285, -0.07657905668020248, 0.07234670966863632, 0.03007524460554123, -0.026646610349416733, -0.02938227728009224, 0.016078758984804153, 0.01695902645587921, 0.020250234752893448, 0.0026737861335277557, 0.06563329696655273, -0.004946446977555752, 0.05480242893099785, 0.0033332782331854105, 0.03242037072777748, -0.035215362906455994, -0.08846065402030945, -0.011392488144338131, 0.07777656614780426, -0.02515687420964241, 0.010983502492308617, -0.007983426563441753, -0.04252186045050621, -0.008810281753540039, 0.014262489043176174, 0.06986045837402344, 0.027464665472507477, -0.013240202330052853, -0.04314664751291275, -0.00811384990811348, 0.026070168241858482, 0.03053964488208294, 0.0021522026509046555, -0.029695868492126465, -0.028034912422299385, -0.007950308732688427, 0.0037288942839950323, 0.02659081667661667, 0.005640868563205004, 0.04010702297091484, -0.014976894482970238, 0.0005860059754922986, 0.11598877608776093, 0.020405441522598267, 0.0025887286756187677, -0.03325466811656952, -0.007893386296927929, 0.036356303840875626, 0.02114655263721943, 0.008020942099392414, 0.04906357452273369, -0.012681441381573677, -0.012063768692314625, 0.0016573929460719228, 0.06561283767223358, 0.015622720122337341, 0.014335677027702332, -0.026490140706300735, -0.06307636201381683, 0.0779949426651001, -0.03219752013683319, 0.0010468229884281754, 0.0438535138964653, 0.05029544234275818, 0.013354625552892685, 0.04940571263432503, 0.012253016233444214, -0.08161777257919312, 0.05406905338168144, 0.010913860984146595, 0.021775098517537117, -0.00882344227284193, 0.006393979769200087, 0.07780783623456955, 0.04440881684422493, -0.007116700988262892, 0.024033110588788986, -0.08832144737243652, -0.06909473240375519, -0.009243328124284744, -0.020292719826102257, 0.055193014442920685, -0.03269298002123833, 0.034221455454826355, 0.02821635641157627, -0.001536909374408424, 0.022239580750465393, 0.03719775751233101, -0.005925435107201338, 0.02106587029993534, -0.032746151089668274, -0.047559116035699844, 0.06742836534976959, 0.01161959022283554, -0.0587884858250618, -0.049893978983163834, 0.026206810027360916, -0.03365170955657959, 0.02490021288394928, 0.011268513277173042, -0.02292916551232338, 0.019167691469192505, 0.014382144436240196, 0.029407722875475883, -0.008950863964855671, 0.02411445416510105, -0.04888973757624626, 0.02856523171067238, 0.022706352174282074, -0.012674490921199322, 0.0181307103484869, 0.0011681619798764586, 0.10139191895723343, 0.04593917354941368, -0.01148749515414238, -0.05791104957461357, 0.026228373870253563, 0.00801692996174097, -0.015693876892328262, 0.00884333997964859, -0.012747208587825298, -0.01078774407505989, -0.038890525698661804, -0.029004471376538277, -0.025354085490107536, -0.0009931050008162856, -0.037810467183589935, 0.009370365180075169, 0.051659151911735535, -0.00265687657520175, 0.048363957554101944, 0.010624540038406849, -0.017289748415350914, -0.02153932675719261, -0.03328246623277664, -0.03898495063185692, 0.03650698810815811, 0.014823912642896175, -0.020443344488739967, 0.02302277833223343, -0.027751296758651733, 0.008611836470663548, -0.01947333663702011, -0.021248355507850647, 0.06312865763902664, 0.05354195460677147, 0.0716683566570282, -0.015904501080513, 0.049807071685791016, -0.05137494578957558, -0.005434008315205574, -0.015348859131336212, -0.0415985994040966, -0.05692880228161812, -0.020457981154322624, 0.00792414415627718, -0.0070228432305157185, 0.022138146683573723, -0.018611319363117218, 0.023799074813723564, -0.01041446439921856, -0.00042112491792067885, -0.01319078542292118, 0.021611357107758522, -0.003230567090213299, -0.00751651031896472, -0.033847544342279434, -0.05114547163248062, 0.039434559643268585, -0.03395504131913185, -0.038239121437072754, -0.021781621500849724, -0.05483817309141159, 0.06218739226460457, -0.042829521000385284, -0.028094667941331863, 0.0019876740407198668, 0.011133195832371712, 0.04589863121509552, -0.012432854622602463, 0.012994080781936646, 0.058421604335308075, 0.00545863714069128, 0.026548607274889946, 0.03381844982504845, 0.006808783393353224, 0.05535629764199257, -0.005160326603800058, 0.0400376096367836, 0.05994441732764244, -0.050475191324949265, -0.0025187847204506397, -0.04791409149765968, 0.003743731416761875, -0.026018984615802765, -0.2779461443424225, 0.0608784519135952, -0.03645695000886917, -0.034782107919454575, 0.016771450638771057, -0.0208001546561718, -0.016185898333787918, -0.03745381534099579, -0.0407429113984108, 0.003489371854811907, -0.009079384617507458, -0.03586840257048607, -0.019024182111024857, 0.015767717733979225, 0.027920667082071304, 0.005922288633882999, 0.0037221694365143776, -0.053461696952581406, -0.015057709999382496, 0.03488140553236008, 0.007945559918880463, -0.027961302548646927, -0.015978049486875534, 0.024805324152112007, 0.002094899071380496, 0.05743543803691864, -0.07107824087142944, 0.019696546718478203, -0.055637046694755554, -0.020831728354096413, 0.001542970072478056, -0.01838558167219162, 0.003582743462175131, -0.006004908587783575, -0.03654968738555908, -0.019424334168434143, 0.06449607759714127, 0.01696615107357502, 0.009943763725459576, 0.029836786910891533, -0.04642083868384361, -0.04484515264630318, -0.0018808059394359589, -0.013710678555071354, 0.08695275336503983, 0.014764273539185524, -0.05792344734072685, -0.03274654597043991, -0.008554189465939999, 0.06685987859964371, -0.005730306264013052, -0.03293260186910629, -0.009040502831339836, 0.02414776012301445, -0.012124157510697842, -0.04999928921461105, -0.010672368109226227, -0.03416256234049797, -0.026395386084914207, -0.0016044573858380318, -0.0006473910761997104, -0.04676105082035065, 0.01835694909095764, -0.047299180179834366, -0.020297778770327568, -0.06225406751036644, -0.056157294660806656, -0.00847056694328785, 0.04105452075600624, 0.026166047900915146, -0.014170420356094837, 0.03929000720381737, -0.012723295018076897, -0.09792790561914444, -0.06438462436199188, -0.02818755805492401, -0.010752263478934765, 0.01923430524766445, -0.0007615986396558583, 0.036688823252916336, -0.05775545537471771, -0.054588742554187775, -0.013199863024055958, 0.04278663918375969, 0.0355188213288784, -0.0006171312998048961, 0.03368876129388809, 0.007970611564815044, -0.03975214809179306, 0.02572394534945488, 0.052241984754800797, -0.0074125598184764385, -0.03118918649852276, 0.025748075917363167, -0.0023947502486407757, 0.041463274508714676, 0.0011921834666281939, -0.004732630215585232, 0.013103070668876171, 0.06109943985939026, 0.03399026766419411, -0.020976897329092026, 0.023163000121712685, -0.04413451999425888, -0.04222378507256508, 0.0006914857658557594, -0.04934138059616089, -0.005003177095204592, 0.022914724424481392, 0.03242194652557373, 0.003907376434653997, -0.002862674416974187, 0.023991985246539116, -0.03252767398953438, -0.02826072834432125, -0.02139998972415924, 0.03975643962621689, 0.024521009996533394, 0.04335144907236099, -0.03940673917531967, -0.07783953845500946, 0.02967379055917263, 0.0352688692510128, -0.023179873824119568, -0.06688039004802704, -0.02827073633670807, -0.01621568761765957, -0.04154612496495247, 0.00981495063751936, 0.016049064695835114, -0.03336780145764351, 0.021532131358981133, 0.040095433592796326, 0.0040743388235569, 0.028000174090266228, -0.01652752235531807, -0.03225189447402954, -0.012081584893167019, 0.0067425803281366825, -0.0026578085962682962, 0.00013486662646755576, 0.011867213994264603, 0.0116279823705554, 0.05617902800440788, 0.03916383534669876, -0.0023234370164573193, -0.00898030586540699, -0.006359579041600227, 0.01771918497979641, 0.021060721948742867, -0.011479533277451992, -0.031462568789720535, 0.013257398270070553, -0.05503048375248909, -0.004905637353658676, 0.016364192590117455, 0.05862218141555786, -0.01717844046652317, -0.029275234788656235, -0.04011063650250435, 0.011471283622086048, -0.07636398822069168, 0.021350981667637825, 0.002586290007457137, 0.003485766239464283, 0.0430564284324646, -0.04327612742781639, 0.004144692327827215, -0.037142422050237656, -0.012029243633151054, 0.005119153764098883, 0.021097853779792786, -0.04147561267018318, 0.01955496333539486, -0.0034008536022156477, 0.017209189012646675, 0.019908733665943146, 0.041349366307258606, 0.019308926537632942, 0.01655818149447441, 0.00022117880871519446, 0.001313813147135079, 0.025585317984223366, 0.03121800906956196, 0.053772103041410446, 0.036133356392383575, 0.004612925928086042, -0.00746538583189249, -0.012473631650209427, -0.020695969462394714, 0.004405861254781485, 0.006408242043107748, -0.04960312321782112, -0.01544081512838602, -0.03033510409295559, -0.0726284310221672, 0.037276491522789, 0.018347198143601418, 0.00697766849771142, 0.03617235645651817, 0.010769642889499664, -0.013671305030584335, -0.03498590737581253, 0.026853758841753006, 0.0397554486989975, -0.04545910656452179, -0.006614240352064371, -0.017021887004375458, -0.013296646066009998, 0.0003360351547598839, 0.010111785493791103, -0.0827205702662468, -0.0424409843981266, -0.014585458673536777, 0.025298677384853363, -0.016141099855303764, -0.031495481729507446, -0.01629902608692646, -0.00631001777946949, -0.003301827237010002, 0.07859382778406143, 0.02185884863138199, 0.01425784733146429, 0.003498917678371072, -0.007828991860151291, 0.03609975799918175, -0.01937655173242092, -0.013659211806952953, -0.0005988928023725748, -0.010058599524199963, 0.03145304694771767, -0.034380536526441574, 0.03453158959746361, 0.019462624564766884, 0.003301416989415884, -0.022051014006137848, -0.05292367562651634, 0.02099798060953617, -0.01575133576989174, 0.05372244492173195, -0.009582564234733582, -0.029950059950351715, -0.021478870883584023, -0.017104357481002808, -0.040512893348932266, 0.018870532512664795, -0.014450415037572384, -0.015575330704450607, -0.0038047258276492357, 0.03634415939450264, 0.019662776961922646, 0.04339253529906273, -0.010068516246974468, -0.036745164543390274, 0.03882193937897682, -0.025003744289278984, -0.05002281814813614, -0.003024164354428649, -0.03441138193011284, -0.00506605627015233, 0.016758214682340622, -0.002891669049859047, -0.03105545975267887, 0.051667220890522, 0.05524132773280144, 0.020176729187369347, 0.05347582325339317, 0.003471083240583539, 0.0071096764877438545, -0.011806786991655827, -0.03266867995262146, -0.08365152031183243, -0.004335002973675728, 0.05890750512480736, 0.008475148119032383, 0.020209668204188347, 0.003927943296730518, -0.03422136604785919, 0.008719929493963718, -0.048418477177619934, -0.028272302821278572, 0.01290934532880783, -0.0208668801933527, 0.025265244767069817, 0.030642403289675713, -0.05150549113750458, -0.016935354098677635, 0.06235569342970848, -0.017587509006261826, -0.03433927521109581, -0.05119914188981056, 0.05846046283841133, -0.04465615376830101, 0.026325544342398643, -0.02117101103067398, -0.03968602046370506, 0.06246022880077362, 0.035100825130939484, 0.04478682950139046, 0.054705630987882614, -0.024379920214414597, 0.03476932272315025, 0.018004827201366425, -0.0001471706054871902, 0.00033636129228398204, 0.03920606151223183, -0.04450930655002594, -0.06147965416312218, 0.011335259303450584, -0.009887300431728363, -0.005140712950378656, -0.029927454888820648, 0.07696077227592468, 0.007907354272902012, -0.04391239956021309, -0.008550912141799927, 0.004971839487552643, -0.021398676559329033, -0.02518416941165924, -0.02861139364540577, 0.03803975507616997, -0.03078627400100231, 0.04877794533967972, -0.00760839506983757, 0.014802873134613037, 0.07964693754911423, 0.011252214200794697, -0.030990103259682655, 0.00454331561923027, 0.09206532686948776, 0.09923524409532547, 0.01798723079264164, -0.0030765391420572996, 0.0808652713894844, -0.005855601746588945, -0.048949576914310455, -0.008094158954918385, -0.0413881354033947, -0.020389216020703316, 0.012909842655062675, 0.015508266165852547, 0.05771765485405922, -0.03704731911420822, 0.05980733036994934, -0.01779535412788391, -0.035250332206487656, 0.002593648387119174, -0.017429709434509277, 0.03592611104249954, 0.06532705575227737, -0.007032477762550116, 0.02789650857448578, -0.028457999229431152, -0.03626185655593872, 0.02753072790801525, -0.004522701725363731, 0.008743129670619965, 0.020997026935219765, -0.05326282978057861, 0.015330248512327671, -0.0013758707791566849, 0.0438850000500679, 0.0809379443526268, -0.019582530483603477, 0.025170063599944115, -0.0025261836126446724, 0.01575670763850212, 0.00028659196686930954, 0.0232401043176651, 0.003001090604811907, -0.018122583627700806, -0.02596469223499298, -0.04080267623066902, -0.03383682295680046, -0.04814806208014488, -0.06388159096240997, -0.0038719626609236, -0.004096560180187225, -0.000155695277499035, -0.011674688197672367, -0.015721188858151436, -0.017120596021413803, -0.040073733776807785, -0.05136490240693092, -0.04892689734697342, -0.08297835290431976, -0.012134125456213951, 0.01598440669476986, 0.011725036427378654, -0.030273206532001495, 0.014773243106901646, -0.04054699093103409, -0.019496919587254524, 0.03633064031600952, -0.02914823777973652, 0.015060840174555779, 0.0028742095455527306, 0.043802451342344284, 0.02109932340681553, 0.03272710368037224, 0.059515781700611115, -0.0076849921606481075, 0.027190683409571648, -0.009403263218700886, 0.01880272477865219, 0.04767313227057457, 0.02098187245428562, -0.007012778893113136, -0.08041403442621231, -0.0011469199089333415, 0.031928036361932755, -0.02913769707083702, -0.08933136612176895, -0.002273875055834651, 0.036056358367204666, -0.0026601136196404696, 0.03503412753343582, -0.015947625041007996, -0.010075642727315426, -0.021948659792542458, 0.02305269055068493, 0.017525477334856987, -0.0006756604416295886, 0.03656585514545441, -0.020096922293305397, 0.08064807951450348, 0.030357403680682182, -0.025896143168210983, -0.042665306478738785, -0.03469160944223404, 0.004675437696278095, -0.0032779297325760126, -0.022126302123069763, -0.016772286966443062, -0.06193074956536293, -0.09633956104516983, -0.0447557307779789, 0.02147061936557293, -0.034463413059711456, -0.03833453729748726, 0.013903433457016945, 0.007633819244801998, -0.01640530675649643, 0.03767034783959389, -0.030690360814332962, 0.02472998946905136, -0.0015295420307666063, -0.015629298985004425, -0.03852768987417221, -0.005085693206638098, 0.011739862151443958, 0.02379590831696987, 0.00841908622533083, -0.05906583368778229, 0.0050398181192576885, -0.015726670622825623, -0.001421958557330072, 0.02063806541264057, 0.012691300362348557, 0.006252559367567301 ]
[ -0.06995457410812378, 0.003052537329494953, -0.02058563195168972, -0.010902941226959229, 0.06105521321296692, -0.02832496166229248, 0.01860157959163189, 0.013652992434799671, 0.04283255711197853, -0.018626701086759567, 0.01067140232771635, -0.014758128672838211, -0.0062319072894752026, 0.0038669114001095295, 0.04029103368520737, -0.010825474746525288, -0.06266476958990097, -0.053669415414333344, -0.02419731207191944, 0.05837768316268921, -0.039418186992406845, -0.020795879885554314, -0.018763771280646324, -0.02449123002588749, 0.030099380761384964, 0.06041191145777702, 0.042547065764665604, -0.036073990166187286, -0.01764439046382904, -0.20595091581344604, -0.024573111906647682, -0.001223239698447287, 0.02132958173751831, 0.0005040144314989448, -0.00017449639562983066, 0.04149475321173668, 0.0227048397064209, -0.0024227153044193983, 0.010903948917984962, 0.042092010378837585, 0.03242722898721695, 0.002269916934892535, -0.02917717769742012, -0.022263655439019203, 0.02761419676244259, 0.03101244568824768, -0.0020143473520874977, -0.00006000115172355436, -0.013067744672298431, 0.045810211449861526, -0.022579830139875412, -0.0026017760392278433, -0.010348963551223278, 0.0008096659439615905, 0.017291223630309105, 0.0682670995593071, 0.026054108515381813, 0.06773630529642105, 0.023076970130205154, 0.05589285492897034, 0.02054085209965706, 0.019039569422602654, -0.14309076964855194, 0.0651962161064148, -0.011974835768342018, 0.01747957058250904, -0.059082575142383575, 0.016710611060261726, -0.02499789372086525, 0.0853322222828865, 0.02875291183590889, -0.01504454854875803, -0.022430766373872757, 0.07253795862197876, 0.018213605508208275, 0.03366773948073387, -0.015007127076387405, -0.00945374183356762, 0.012217801064252853, -0.01759398728609085, -0.05151359364390373, 0.004818191286176443, -0.04346131533384323, -0.033491067588329315, -0.04269491881132126, 0.04219741001725197, -0.04548725485801697, 0.03996208310127258, 0.011453323997557163, 0.043001316487789154, 0.030375488102436066, 0.0479891262948513, 0.026495961472392082, 0.03861051797866821, -0.09340262413024902, -0.034172073006629944, -0.003558615455403924, 0.008786346763372421, -0.004760243929922581, 0.41405734419822693, 0.010907243005931377, 0.0054250601679086685, 0.0036416067741811275, 0.07673263549804688, 0.00281547917984426, -0.03777939826250076, 0.0121292844414711, -0.06676620990037918, 0.021048473194241524, -0.013042480684816837, -0.006996710319072008, -0.02620384842157364, 0.04943786561489105, -0.08200078457593918, 0.014043355360627174, 0.0301772840321064, 0.07869132608175278, 0.01646137796342373, -0.02682756446301937, 0.030537566170096397, -0.01653124950826168, 0.0023365847300738096, -0.011099799536168575, 0.019931651651859283, 0.01376283634454012, 0.029877398163080215, 0.017209136858582497, 0.04584059864282608, 0.05122174695134163, -0.012308571487665176, 0.04688865318894386, -0.013003391213715076, -0.09157753735780716, 0.004499842878431082, -0.018699634820222855, -0.011029754765331745, 0.021738875657320023, -0.04426123574376106, -0.008260932750999928, 0.03173185884952545, -0.007240420673042536, -0.0442422516644001, 0.049289919435977936, -0.008876596577465534, -0.048303376883268356, 0.13018715381622314, -0.005463981069624424, -0.04021167755126953, -0.015090608969330788, -0.03683015704154968, -0.01939414069056511, 0.009977802634239197, 0.002661737846210599, -0.0637129694223404, -0.052191562950611115, 0.0010493117151781917, 0.059201743453741074, -0.01329348050057888, -0.06215164437890053, -0.01082601398229599, -0.01989590749144554, -0.027721848338842392, -0.027329863980412483, 0.0702107846736908, 0.047052521258592606, -0.11180464923381805, -0.025882236659526825, 0.01121340412646532, 0.019357191398739815, -0.09356443583965302, 0.01826971210539341, -0.016253914684057236, -0.03447609394788742, -0.014175170101225376, 0.04911089316010475, -0.00008364979294128716, -0.02729739248752594, -0.019263019785284996, 0.06532490998506546, 0.006263792049139738, 0.010225861333310604, 0.004033222328871489, -0.03501619026064873, -0.005147999618202448, -0.059590328484773636, -0.06449446082115173, -0.06915923953056335, 0.0073409173637628555, -0.024330344051122665, -0.03522123768925667, -0.04118794947862625, -0.022587619721889496, -0.05779194086790085, 0.09707345813512802, -0.05901065468788147, -0.00877056922763586, -0.012376080267131329, -0.024004796519875526, -0.03320459648966789, -0.05149039626121521, -0.01062793843448162, 0.005317279603332281, 0.005502659827470779, 0.006401317659765482, -0.00881133135408163, 0.028790462762117386, 0.0619485005736351, -0.058247972279787064, 0.059443362057209015, -0.008840790018439293, -0.03722994774580002, 0.0008993578376248479, -0.022497348487377167, 0.011172451078891754, -0.0026040151715278625, 0.00454131281003356, -0.025440696626901627, -0.020818233489990234, -0.017332861199975014, 0.04887518286705017, -0.03990396484732628, 0.0030595208518207073, 0.007189640775322914, -0.3364391624927521, -0.031240753829479218, -0.04046676307916641, -0.0210337545722723, -0.01350076962262392, -0.003600211115553975, -0.0030747537966817617, -0.040786005556583405, 0.016978736966848373, 0.05226121470332146, 0.0624430775642395, 0.02592642977833748, -0.01487688533961773, -0.07999548316001892, 0.007467842660844326, 0.03843001648783684, -0.022778110578656197, 0.013359294272959232, -0.01749752275645733, 0.027854980900883675, 0.05014539882540703, -0.06583705544471741, -0.04125272110104561, -0.04964694380760193, -0.017219576984643936, -0.0023986510932445526, 0.12918424606323242, 0.0528249628841877, -0.019192282110452652, -0.047964029014110565, 0.030852187424898148, -0.001697319676168263, -0.009038747288286686, -0.06859789788722992, 0.01650296151638031, -0.020714301615953445, 0.024403654038906097, -0.005049342289566994, 0.0008748983964323997, -0.04794573783874512, -0.05330154672265053, 0.009389454498887062, -0.04347767308354378, -0.06627710163593292, -0.025406867265701294, 0.023714497685432434, -0.011845331639051437, -0.019479351118206978, 0.015450218692421913, 0.07072922587394714, 0.016926009207963943, 0.02363109402358532, 0.05515424907207489, 0.02551601082086563, 0.02925395406782627, -0.01679334230720997, -0.0991002544760704, 0.016931122168898582, -0.00032217931584455073, 0.012930808588862419, 0.0026246076449751854, 0.0077008833177387714, 0.051366034895181656, -0.07449065148830414, 0.01901647076010704, 0.0372365303337574, 0.010593241080641747, -0.006195221561938524, 0.02176436223089695, 0.0009692833409644663, -0.03018045425415039, 0.04474464803934097, -0.013193727470934391, 0.015367520973086357, 0.04089239239692688, 0.04538210481405258, -0.003819897538051009, -0.0032886185217648745, 0.03393634781241417, 0.012543401680886745, 0.05536506325006485, -0.07417339086532593, 0.08650866150856018, -0.019991084933280945, -0.006270039360970259, 0.05667222663760185, 0.0339374765753746, -0.03179025277495384, 0.09178921580314636, 0.020025037229061127, -0.028491433709859848, 0.008564149029552937, -0.01123038213700056, -0.0463499091565609, 0.0448431558907032, -0.03562634065747261, -0.26543354988098145, 0.04238327592611313, 0.04277545586228371, 0.037333227694034576, 0.035339340567588806, 0.011597425676882267, 0.03247379884123802, -0.008261810056865215, -0.04483601823449135, 0.0014642756432294846, 0.03673670440912247, 0.044031985104084015, -0.022947050631046295, -0.03455907478928566, -0.00041007858817465603, -0.0001530244917375967, 0.0513085313141346, 0.009313547052443027, 0.028755130246281624, 0.018301554024219513, 0.0560486726462841, -0.012402025982737541, 0.17763406038284302, 0.0198264941573143, 0.02233022451400757, 0.05549481883645058, -0.019327927380800247, -0.004066041205078363, 0.01354942936450243, -0.002518879482522607, -0.02685699239373207, 0.026893390342593193, 0.01800175942480564, 0.0699310153722763, -0.013917393982410431, -0.02174730971455574, -0.0013642507838085294, 0.07327378541231155, 0.014592786319553852, -0.05661061406135559, -0.022420449182391167, 0.03870759159326553, -0.029889915138483047, 0.021450726315379143, 0.07795804738998413, 0.009461200796067715, -0.003772118827328086, -0.01740315742790699, -0.07590339332818985, -0.01472601480782032, -0.05162801221013069, -0.0426742322742939, -0.025327350944280624, -0.02448457106947899, 0.005082639399915934, 0.04686710983514786, 0.014593832194805145, -0.03464560583233833, 0.054336585104465485, 0.022900737822055817, -0.03634685277938843, -0.003515595803037286, 0.09163758158683777, -0.031138278543949127, 0.029266947880387306 ]
[ 0.02549842745065689, 0.08072737604379654, 0.024363383650779724, 0.02891072817146778, -0.0021910779178142548, 0.01660582795739174, -0.044029418379068375, -0.00626004533842206, -0.028316419571638107, -0.008417835459113121, -0.04970343038439751, 0.0021210007835179567, 0.047077927738428116, -0.010224814526736736, 0.010451029054820538, -0.012292551808059216, -0.02136871963739395, 0.05157902464270592, 0.032735053449869156, -0.043640799820423126, -0.034875497221946716, -0.023150676861405373, 0.033680260181427, 0.01492656022310257, 0.004394048824906349, 0.022746993228793144, -0.023183442652225494, 0.021626828238368034, 0.03556645289063454, -0.09916101396083832, -0.05144848674535751, -0.02351963520050049, 0.015773113816976547, 0.018334822729229927, -0.04222209379076958, -0.008839204907417297, 0.02270401269197464, 0.00834838580340147, 9.530321563033795e-7, 0.040372829884290695, 0.02560535818338394, -0.02262664958834648, -0.0379558689892292, 0.01603325642645359, 0.010624228976666927, -0.01338884700089693, -0.020333394408226013, -0.0025944376830011606, -0.004896015394479036, 0.0023725703358650208, -0.04256552457809448, -0.026830699294805527, 0.0072803501971066, 0.01406368799507618, 0.02249736525118351, 0.03525396063923836, -0.052148785442113876, -0.008786381222307682, 0.0162587258964777, -0.02832626923918724, 0.03724011406302452, -0.03723955154418945, -0.06188151612877846, -0.03310862556099892, -0.022356629371643066, -0.018580613657832146, 0.010281458497047424, 0.0451091006398201, 0.0063853757455945015, 0.00044933654135093093, 0.012018629349768162, 0.03361988812685013, -0.04601225629448891, -0.003627352649345994, -0.011162230744957924, 0.06850262731313705, 0.016580911353230476, -0.026886142790317535, 0.018282325938344002, -0.004922740627080202, -0.0259922593832016, -0.001951086800545454, -0.02040899731218815, 0.01310848630964756, -0.004662849009037018, -0.009318528696894646, 0.010209240019321442, 0.0031995472963899374, 0.01387825608253479, 0.01624535396695137, -0.04538765177130699, 0.019107576459646225, -0.003356630215421319, -0.018499771133065224, -0.0760662779211998, 0.016480417922139168, 0.014535557478666306, -0.013282896019518375, 0.048576824367046356, 0.8169358968734741, 0.047138094902038574, 0.01071189995855093, -0.01911400817334652, 0.018201040104031563, -0.007581107784062624, -0.003062905976548791, -0.00004537724089459516, 0.01729344204068184, -0.018047815188765526, 0.0038628883194178343, -0.014588618651032448, 0.019228657707571983, 0.010496385395526886, -0.0044848802499473095, -0.0103265680372715, 0.059736911207437515, 0.005803637206554413, 0.008217740803956985, -0.019790666177868843, 0.004935708828270435, 0.01436182577162981, 0.0284512247890234, -0.014876696281135082, 0.027071934193372726, 0.0021273340098559856, -0.15742766857147217, -0.01561610959470272, -7.77657618272894e-33, 0.038283877074718475, -0.007713820319622755, 0.051825761795043945, 0.0004679881385527551, -0.02232934534549713, 0.024553142488002777, 0.001805403851903975, -0.030629927292466164, -0.042287155985832214, -0.06049419566988945, -0.026254236698150635, -0.012089469470083714, 0.03983205556869507, -0.04564142972230911, 0.022739937528967857, -0.04270671308040619, 0.0032549386378377676, 0.012503976002335548, -0.016017207875847816, 0.012582870200276375, 0.00202915258705616, 0.036027390509843826, -0.042835112661123276, 0.036656953394412994, 0.025706568732857704, 0.04283910617232323, -0.011534024029970169, -0.0037990438286215067, -0.031589798629283905, -0.052718374878168106, -0.049845874309539795, 0.008586052805185318, -0.02762792445719242, 0.014051992446184158, 0.011842933483421803, -0.05614389106631279, -0.003986387979239225, -0.00010975154873449355, -0.017081432044506073, -0.08118604868650436, -0.061899036169052124, -0.006726069375872612, -0.014925269410014153, -0.03942422568798065, -0.034657400101423264, -0.028967754915356636, -0.004622069653123617, -0.015196466818451881, 0.0033157370053231716, 0.0038662264123559, 0.03603952378034592, 0.028278645128011703, -0.0061716726049780846, -0.02573518082499504, -0.03124120458960533, 0.012689194642007351, 0.030388759449124336, 0.026049457490444183, -0.016129424795508385, 0.014228901825845242, 0.03599341958761215, 0.005942138843238354, -0.009548546746373177, 0.055481817573308945, 0.01612948440015316, 0.03673446550965309, -0.03353321924805641, 0.014520931988954544, -0.008803555741906166, 0.02620554156601429, -0.009595771320164204, 0.030366897583007812, -0.007356218062341213, -0.04143502935767174, 0.03497254475951195, -0.04480845108628273, -0.02414677105844021, -0.01927272230386734, -0.01323589775711298, 0.05173591151833534, -0.013201541267335415, -0.04492888227105141, 0.0027213520370423794, -0.0443144328892231, -0.003329294500872493, -0.011743023991584778, 0.016822118312120438, 0.017021505162119865, 0.026861367747187614, 0.041055381298065186, 0.021838033571839333, -0.009776663966476917, 0.00948629342019558, 0.019236309453845024, -0.017690839245915413, 7.639916882922187e-33, 0.0021290460135787725, -0.0009425316820852458, -0.0008584950119256973, 0.004186523146927357, 0.034913476556539536, -0.0009650985011830926, 0.0022843193728476763, 0.019859569147229195, -0.045598626136779785, 0.0510186105966568, 0.012382475659251213, -0.010963388718664646, -0.016942618414759636, 0.036337532103061676, 0.03397902473807335, -0.015828637406229973, 0.02540833316743374, -0.02795262448489666, 0.024351349100470543, 0.03675111383199692, 0.004051486030220985, -0.011052608489990234, 0.0010474465088918805, 0.033164046704769135, 0.03129997476935387, 0.025464966893196106, 0.016658980399370193, -0.008869694545865059, -0.0065929703414440155, 0.005179917439818382, 0.024985818192362785, -0.05952119827270508, -0.019723743200302124, -0.008400662802159786, 0.0320507287979126, 0.023407908156514168, -0.02358318120241165, -0.01502719335258007, -0.0031749822665005922, -0.0022277741227298975, -0.010985868982970715, 0.0008565926691517234, -0.007725891191512346, 0.08009112626314163, 0.03315842151641846, 0.006152065005153418, 0.00884995423257351, 0.023563377559185028, 0.004865232389420271, 0.013428074307739735, 0.012771377339959145, 0.04912953823804855, -0.014090302400290966, 0.058829762041568756, 0.02575591392815113, -0.039432134479284286, -0.026036612689495087, 0.018591972067952156, -0.010469269938766956, -0.008713672868907452, -0.020380690693855286, -0.021639736369252205, -0.056969646364450455, 0.039535731077194214, 0.0018057184061035514, -0.028372563421726227, -0.052705660462379456, 0.02438799850642681, -0.02384091168642044, 0.006665478460490704, -0.004849729128181934, 0.01495145633816719, -0.004749147221446037, 0.03113796003162861, 0.011176451109349728, -0.014608098194003105, -0.03440781682729721, 0.00817707646638155, -0.042639706283807755, 0.04096488654613495, 0.029158318415284157, 0.00030001052073203027, 0.01804933324456215, 0.020273685455322266, -0.019692696630954742, -0.01674688048660755, -0.01918105222284794, 0.04072660207748413, -0.020669249817728996, 0.0018822625279426575, 0.05026346445083618, -0.04457021504640579, -0.03025098517537117, 0.06335831433534622, -0.028806690126657486, -1.296819984730746e-8, -0.02149014174938202, 0.020756378769874573, -0.046401247382164, 0.0014044861309230328, 0.0013161039678379893, -0.00062492152210325, -0.016631288453936577, -0.02951282449066639, 0.004573388025164604, 0.04634755104780197, 0.041009385138750076, -0.031786803156137466, 0.011483670212328434, -0.0015906903427094221, 0.008681977167725563, -0.04278929904103279, -0.028141677379608154, -0.006089624483138323, 0.03632369637489319, 0.03175985813140869, -0.007152496371418238, 0.03830485790967941, -0.06083860620856285, 0.017588285729289055, 0.015668470412492752, -0.008423024788498878, 0.005214084405452013, -0.04587617516517639, 0.01942077837884426, -0.037111688405275345, -0.006384752690792084, -0.02603168971836567, -0.039493437856435776, 0.023002393543720245, -0.022117378190159798, -0.0376325398683548, 0.018795780837535858, 0.016803717240691185, 0.03274298831820488, 0.05319938436150551, -0.002780130598694086, 0.022880949079990387, -0.02850077487528324, -0.024565454572439194, -0.012813846580684185, 0.013909971341490746, -0.04595043882727623, -0.030344482511281967, 0.0324208065867424, -0.04125852882862091, 0.00037475337740033865, -0.005072250962257385, 0.039881058037281036, 0.011613733135163784, 0.03365325555205345, 0.023434000089764595, -0.0004982725949957967, -0.0070838057436048985, 0.0025973122101277113, -0.04237029328942299, -0.0022450238466262817, -0.00870171096175909, -0.014322171919047832, -0.00739999720826745 ]
neo4jcypher-with-collect-extract
https://markhneedham.com/blog/2013/03/20/neo4jcypher-with-collect-extract
false
2013-03-18 23:19:36
neo4j/cypher: SQL style GROUP BY WITH LIMIT query
[ "neo4j", "cypher" ]
[ "neo4j" ]
A few weeks ago I wrote a blog post where I described how we could http://www.markhneedham.com/blog/2013/02/17/neo4jcypher-sql-style-group-by-functionality/[construct a SQL GROUP BY style query] in http://docs.neo4j.org/chunked/milestone/cypher-query-lang.html[cypher] and last week I wanted to write a similar query but with what I think would be a LIMIT clause in SQL. I wanted to find the maximum number of goals that players had scored in a match for a specific team and started off with the following query to find all the matches that players had scored in: [source,cypher] ---- START team = node:teams('name:"Manchester United"') MATCH team-[:home_team|away_team]-game-[:scored_in]-player-[:played]-stats-[:for]-team, stats-[:in]-game RETURN DISTINCT player.name, stats.goals, game.name ---- We find all the matches where Manchester United were playing and then get a list of the players who scored for them in those games: [source,text] ---- +--------------------------------------------------------------------------------+ | player.name | stats.goals | game.name | +--------------------------------------------------------------------------------+ | "Javier Hernández" | 1 | "Manchester United vs Wigan Athletic" | | "Robin Van Persie" | 1 | "Manchester United vs Sunderland" | | "Danny Welbeck" | 1 | "Manchester United vs Stoke City" | | "Rafael" | 1 | "Queens Park Rangers vs Manchester United" | | "Wayne Rooney" | 1 | "Manchester United vs Norwich City" | | "Shinji Kagawa" | 1 | "Manchester United vs Fulham" | | "Shinji Kagawa" | 3 | "Manchester United vs Norwich City" | ... +--------------------------------------------------------------------------------+ 50 rows ---- Our next step would be to only return the unique combinations of players and goals: [source,cypher] ---- START team = node:teams('name:"Manchester United"') MATCH team-[:home_team|away_team]-game-[:scored_in]-player-[:played]-stats-[:for]-team, stats-[:in]-game RETURN DISTINCT player.name, stats.goals ---- [source,text] ---- +-----------------------------------+ | player.name | stats.goals | +-----------------------------------+ | "Nemanja Vidic" | 1 | | "Shinji Kagawa" | 1 | | "Danny Welbeck" | 1 | | "Darren Fletcher" | 1 | | "Wayne Rooney" | 2 | | "Javier Hernández" | 1 | | "Nani" | 1 | | "Tom Cleverley" | 1 | | "Robin Van Persie" | 2 | | "Shinji Kagawa" | 3 | ... | "Robin Van Persie" | 3 | +-----------------------------------+ 21 rows ---- Since we only want to return each player once along with their maximum value from the 'stats.goals' column all we have to do now is make use of the +++<cite>+++http://docs.neo4j.org/chunked/milestone/query-aggregation.html#aggregation-max[MAX]+++</cite>+++ function: [source,cypher] ---- START team = node:teams('name:"Manchester United"') MATCH team-[:home_team|away_team]-game-[:scored_in]-player-[:played]-stats-[:for]-team, stats-[:in]-game RETURN DISTINCT player.name, MAX(stats.goals) AS goals ORDER BY goals DESC ---- [source,text] ---- +-----------------------------+ | player.name | goals | +-----------------------------+ | "Robin Van Persie" | 3 | | "Shinji Kagawa" | 3 | | "Javier Hernández" | 2 | | "Wayne Rooney" | 2 | | "Paul Scholes" | 1 | | "Ryan Giggs" | 1 | | "Tom Cleverley" | 1 | ... | "Rafael" | 1 | | "Darren Fletcher" | 1 | | "Nani" | 1 | +-----------------------------+ 16 rows ----
null
null
[ -0.0041443826630711555, 0.00022181938402354717, 0.013093428686261177, 0.008584056049585342, 0.07725785672664642, -0.02647288888692856, 0.0411294661462307, 0.02033263072371483, 0.02846328169107437, -0.024455135688185692, 0.0007716894615441561, 0.011738362722098827, -0.06009788066148758, 0.006866033188998699, 0.014172021299600601, 0.0714556947350502, 0.03183877840638161, 0.04136986285448074, 0.01927284710109234, -0.043149854987859726, 0.02777603641152382, 0.053509268909692764, 0.0037656035274267197, 0.024236084893345833, 0.06300723552703857, 0.012005863711237907, -0.013102785684168339, -0.00248846597969532, -0.045040249824523926, 0.010687585920095444, 0.04412539303302765, 0.0012134345015510917, 0.02081199735403061, -0.02829054556787014, 0.016899218782782555, -0.02285599708557129, -0.02041812241077423, 0.02969338931143284, -0.024407563731074333, -0.017196515575051308, -0.07266781479120255, 0.011834181845188141, -0.026717334985733032, 0.023713674396276474, -0.03470909595489502, 0.012867058627307415, -0.05086703971028328, 0.04392433539032936, -0.016616417095065117, 0.015325438231229782, -0.06911344826221466, 0.036106303334236145, -0.008415021002292633, 0.0014259540475904942, 0.010949089191854, 0.04669453576207161, 0.017352959141135216, -0.05205007642507553, 0.006655838340520859, -0.015383057296276093, 0.01601741462945938, 0.00890771672129631, 0.016659850254654884, -0.003456922946497798, 0.0025934772565960884, -0.024954458698630333, -0.011456828564405441, 0.04437441751360893, -0.05196795612573624, 0.010635021142661572, -0.013274062424898148, 0.01368230115622282, -0.014216981828212738, -0.018930640071630478, 0.02540135756134987, -0.0544964037835598, 0.027548374608159065, 0.049481820315122604, 0.03265686333179474, 0.07002010196447372, -0.018599167466163635, 0.023800496011972427, 0.009149678982794285, 0.03178716078400612, -0.015942320227622986, -0.04255662485957146, -0.020027995109558105, -0.03760511800646782, -0.021061820909380913, 0.05802473798394203, 0.01200499851256609, -0.05702396109700203, 0.010740863159298897, 0.0038718939758837223, -0.029898138716816902, -0.003160163527354598, 0.022462062537670135, 0.022636665031313896, -0.00871023815125227, -0.028642840683460236, -0.0015663900412619114, -0.06215372309088707, 0.017490221187472343, -0.01493520475924015, -0.09641080349683762, -0.002180341398343444, -0.05165513977408409, 0.015462190844118595, 0.028287546709179878, -0.007777560967952013, -0.025980308651924133, 0.0033953734673559666, -0.006824133452028036, 0.01687634363770485, -0.07512866705656052, 0.06450480967760086, 0.03548882529139519, -0.021200142800807953, 0.002154855988919735, 0.016420744359493256, 0.01866123266518116, 0.0027118627913296223, 0.013441802933812141, 0.07734618335962296, -0.010459288954734802, 0.028276905417442322, 0.033205363899469376, 0.05446741729974747, -0.021148210391402245, -0.07968062907457352, -0.012685497291386127, 0.07128502428531647, -0.0288556981831789, 0.02846737951040268, 0.004123785067349672, -0.06216186285018921, -0.02072671428322792, 0.011496837250888348, 0.04097813740372658, 0.01756017468869686, 0.025716112926602364, -0.040827978402376175, 0.010220573283731937, 0.007933982647955418, 0.04511182755231857, -0.00474963616579771, -0.007081803400069475, -0.03895611688494682, -0.015541697852313519, 0.005946887657046318, 0.029808277264237404, 0.0007013477152213454, 0.05265047773718834, -0.03913891687989235, 0.013828749768435955, 0.1116752028465271, 0.0400637648999691, -0.02629668079316616, -0.034314777702093124, 0.009992879815399647, 0.04474901035428047, 0.025017034262418747, 0.005656954366713762, 0.025472993031144142, -0.006332986056804657, -0.034836579114198685, 0.0053855967707931995, 0.059232860803604126, -0.00235178810544312, 0.03145525977015495, -0.024288415908813477, -0.05260983109474182, 0.06609979271888733, -0.04070030152797699, -0.018361924216151237, 0.059618182480335236, 0.05844271183013916, 0.05148280784487724, 0.052723873406648636, 0.010995223186910152, -0.0791667103767395, 0.023481113836169243, 0.016813481226563454, 0.020064501091837883, 0.021715421229600906, -0.0036701858043670654, 0.0891391932964325, 0.045853495597839355, 0.004499190952628851, 0.042112741619348526, -0.08286039531230927, -0.08333151042461395, -0.005175850819796324, -0.015461013652384281, 0.05457744002342224, -0.03511648252606392, 0.0486021488904953, 0.04842400178313255, -0.005605387035757303, 0.026455095037817955, 0.020133662968873978, 0.02637871727347374, 0.043846551328897476, -0.037050891667604446, -0.042926982045173645, 0.053644534200429916, 0.01646237261593342, -0.038163527846336365, -0.04932233691215515, 0.047343771904706955, -0.046177055686712265, -0.0016949201235547662, 0.009148411452770233, -0.02640681527554989, 0.01966964080929756, 0.0014552458887919784, 0.030814973637461662, -0.0051362537778913975, 0.04869110882282257, -0.04870711639523506, 0.03480183333158493, 0.049434687942266464, -0.04008869454264641, 0.019410807639360428, 0.02214168757200241, 0.11988957226276398, 0.041173189878463745, -0.02306213043630123, -0.049424685537815094, 0.0026290512178093195, 0.014236469753086567, -0.0014193028910085559, 0.023612862452864647, -0.008948570117354393, 0.010554688051342964, -0.040000393986701965, -0.048152294009923935, -0.04295160621404648, 0.011855006217956543, -0.03439401090145111, 0.01382630318403244, 0.055788759142160416, 0.003880463307723403, 0.04356168583035469, -0.017695210874080658, -0.01748647354543209, -0.03007432632148266, -0.02536904439330101, -0.026945810765028, 0.02925962582230568, 0.006958296522498131, -0.018456796184182167, 0.024332672357559204, -0.010990461334586143, 0.01491869892925024, -0.018238594755530357, -0.031195448711514473, 0.030697474256157875, 0.04409367963671684, 0.0678594633936882, -0.025679396465420723, 0.04114461690187454, -0.004598601721227169, 0.012265435419976711, -0.036362625658512115, -0.05014503747224808, -0.07536343485116959, -0.037735480815172195, 0.0011140553979203105, 0.009761186316609383, 0.030943775549530983, 0.006401394493877888, 0.016456363722682, 0.02235163003206253, -0.0003551012778189033, 0.01500052958726883, 0.018767230212688446, 0.012117186561226845, -0.02056281454861164, -0.03130372613668442, -0.02673068456351757, 0.04676271602511406, -0.045525722205638885, -0.04615073278546333, -0.006227812729775906, -0.06769433617591858, 0.03354422375559807, -0.0445530079305172, -0.02016180194914341, 0.004653296433389187, 0.009009277448058128, 0.03822104632854462, 0.015879536047577858, -0.004188343416899443, 0.07011830806732178, -0.016876256093382835, 0.016858123242855072, 0.03613291680812836, 0.014303243719041348, 0.04496844857931137, -0.013038020581007004, 0.04255702719092369, 0.044161077588796616, -0.048931702971458435, 0.024277688935399055, -0.034229908138513565, 0.006500955671072006, -0.017340850085020065, -0.2671946585178375, 0.04995056614279747, -0.02765962854027748, -0.02693444862961769, 0.025191383436322212, -0.026786992326378822, -0.01357207354158163, -0.03311627730727196, -0.02424430288374424, 0.0028203497640788555, -0.021153254434466362, -0.027491547167301178, -0.02195572666823864, 0.041226617991924286, 0.0422549806535244, 0.03633049875497818, 0.005680701229721308, -0.04816713184118271, -0.013862322084605694, 0.05342702195048332, 0.027803627774119377, -0.06127065420150757, -0.028813598677515984, 0.019447332248091698, 0.03206354007124901, 0.06522974371910095, -0.06464186310768127, 0.0016708944458514452, -0.07110073417425156, -0.005709029268473387, -0.008328843861818314, 0.003456657752394676, -0.004379249177873135, 0.003937703091651201, -0.05092719942331314, -0.006409470457583666, 0.053503163158893585, -0.008257811889052391, -0.008721256628632545, 0.0064560417085886, -0.056044287979602814, -0.04261568933725357, -0.02131836488842964, -0.0101442476734519, 0.09320109337568283, 0.009312202222645283, -0.06425642967224121, -0.01343685295432806, -0.02111213281750679, 0.0528770387172699, -0.014381623826920986, -0.04508374258875847, -0.009465554729104042, 0.02654159627854824, -0.002689819782972336, -0.032675933092832565, -0.007863420993089676, -0.023250168189406395, -0.04630695655941963, -0.006671948824077845, 0.006868341937661171, -0.042514946311712265, 0.026977762579917908, -0.019780511036515236, -0.0132156852632761, -0.0405607596039772, -0.020151058211922646, -0.033408273011446, 0.04960020259022713, 0.025717275217175484, -0.019859105348587036, 0.011804847978055477, -0.027580196037888527, -0.08779704570770264, -0.06525348871946335, 0.00019937667821068317, 0.019164657220244408, 0.013923944905400276, -0.011110885068774223, 0.03303661197423935, -0.03745444491505623, -0.030009085312485695, -0.025385774672031403, 0.026851803064346313, 0.03249554708600044, -0.009075918234884739, 0.02783305197954178, 0.0021102444734424353, -0.04532964527606964, 0.009481211192905903, 0.0703643262386322, -0.044786807149648666, 0.007747010327875614, 0.028839893639087677, -0.000551072065718472, 0.02791406773030758, -0.015456178225576878, -0.014770029112696648, 0.005640833172947168, 0.03298814222216606, 0.042719271034002304, -0.02772173099219799, 0.004206203389912844, -0.05072715878486633, -0.04269890859723091, 0.011337153613567352, -0.047009751200675964, 0.018699774518609047, 0.011637805961072445, 0.029926124960184097, 0.009939029812812805, -0.017336798831820488, 0.00025108689442276955, -0.022133780643343925, -0.033518146723508835, -0.04151530563831329, 0.03299478068947792, 0.015649350360035896, 0.033622872084379196, -0.02908892184495926, -0.06416887789964676, 0.021922240033745766, 0.00856014620512724, -0.007633755914866924, -0.07132627815008163, -0.022082537412643433, -0.019217798486351967, -0.02045929990708828, 0.000029875338441343047, 0.01105613075196743, -0.04031967371702194, 0.01319143082946539, 0.03637969493865967, -0.01304763276129961, 0.0522671677172184, -0.017162997275590897, -0.05186784639954567, -0.035721756517887115, 0.006811759900301695, 0.009445183910429478, 0.001537703676149249, 0.007456700783222914, 0.012498903088271618, 0.055228251963853836, 0.03711419552564621, 0.0036914756055921316, -0.00946339126676321, -0.0027641989290714264, 0.010648717172443867, 0.04561517387628555, -0.010073784738779068, -0.026520654559135437, 0.04326683655381203, -0.0705936998128891, -0.0017136308597400784, 0.00243125157430768, 0.06382566690444946, -0.0032657620031386614, -0.012759791687130928, -0.029540104791522026, 0.009934060275554657, -0.04810309782624245, -0.009613745845854282, -0.020900296047329903, 0.01961801014840603, 0.06823766231536865, -0.032461654394865036, 0.013662328943610191, -0.016525935381650925, 0.018543686717748642, -0.007732546888291836, -0.0018196325981989503, -0.055100299417972565, 0.015450156293809414, 0.007010782603174448, 0.005361798219382763, 0.0002556468534749001, 0.04009467363357544, 0.005772943142801523, 0.006824031937867403, -0.007942881435155869, -0.010366220027208328, 0.021463284268975258, 0.05415993928909302, 0.06973583996295929, 0.06028909608721733, -0.01566951535642147, -0.028269538655877113, -0.010080120526254177, -0.014531582593917847, -0.0129386680200696, 0.005421549081802368, -0.016237469390034676, -0.013588285073637962, -0.025412287563085556, -0.062998928129673, 0.0514073371887207, 0.018978100270032883, 0.0076509565114974976, 0.03229423984885216, 0.018897756934165955, -0.03732655197381973, -0.026802772656083107, 0.0372939370572567, 0.061424244195222855, -0.0569838210940361, -0.0027549827937036753, -0.015702812001109123, -0.031997907906770706, -0.002919986378401518, 0.010399009101092815, -0.05156495422124863, -0.03532760217785835, -0.022643713280558586, 0.03505042940378189, -0.029890453442931175, 0.012138203717768192, 0.011549120768904686, -0.00912531465291977, -0.013560794293880463, 0.03680667281150818, -0.005265086889266968, 0.022390618920326233, -0.018795374780893326, -0.02376520447432995, 0.037196338176727295, -0.017327675595879555, -0.01723901927471161, 0.008534018881618977, -0.02059699036180973, 0.010963634587824345, -0.04314214363694191, 0.013341308571398258, 0.01996813900768757, 0.00033882350544445217, 0.0013490101555362344, -0.04687565565109253, 0.007014244794845581, -0.010323301889002323, 0.05951631814241409, -0.015600602142512798, -0.02635437622666359, -0.02814360149204731, -0.0272529274225235, -0.044394876807928085, 0.01403574924916029, -0.0024385948199778795, -0.010803412646055222, 0.0016223554266616702, 0.04458995163440704, -0.002040943130850792, 0.03677524998784065, -0.030339134857058525, -0.02723005972802639, 0.05771506577730179, -0.01798964850604534, -0.0077019864693284035, -0.011788883246481419, -0.03739846497774124, 0.014081978239119053, 0.007430445868521929, 0.003595689544454217, -0.04762233421206474, 0.06575020402669907, 0.03727920725941658, 0.013152776286005974, 0.047643423080444336, 0.01691867969930172, 0.02581203728914261, -0.032861895859241486, -0.030878577381372452, -0.08735685050487518, -0.006745972670614719, 0.0434265062212944, 0.008878900669515133, -0.0018684992101043463, 0.00672425702214241, -0.028607690706849098, 0.029255708679556847, -0.05578039959073067, -0.03805164247751236, 0.015491172671318054, -0.01568843424320221, 0.004419934004545212, 0.027242105454206467, -0.053203798830509186, -0.022314900532364845, 0.057400017976760864, -0.015764174982905388, -0.04526219144463539, -0.05130639672279358, 0.05815054103732109, -0.033104170113801956, 0.02361423708498478, -0.015304334461688995, -0.038820281624794006, 0.07906325161457062, 0.032461415976285934, 0.03478535637259483, 0.034277431666851044, -0.023224517703056335, 0.026534589007496834, 0.02397800423204899, 0.020162831991910934, 0.01133235264569521, 0.0213082917034626, -0.03968736529350281, -0.0650678426027298, 0.0007885610684752464, 0.004858963191509247, 0.0011325175873935223, -0.05176916718482971, 0.07536213845014572, 0.004480566363781691, -0.051180802285671234, -0.04616221413016319, 0.009897178038954735, -0.027186475694179535, -0.035539980977773666, -0.019207937642931938, 0.021015342324972153, -0.033299509435892105, 0.058641090989112854, -0.002441417658701539, 0.01149378065019846, 0.053802646696567535, 0.005799427162855864, -0.021459398791193962, 0.010497178882360458, 0.10120701789855957, 0.08082690089941025, 0.030723344534635544, -0.004253546707332134, 0.07482411712408066, -0.030803296715021133, -0.05243706703186035, 0.00339569803327322, -0.033463068306446075, -0.015682736411690712, 0.019553951919078827, 0.01247553899884224, 0.06769809126853943, -0.04233688488602638, 0.060266509652137756, -0.0009912211680784822, -0.030196763575077057, 0.01731407456099987, -0.02773999236524105, 0.03838459402322769, 0.09372904896736145, -0.009398973546922207, 0.031570471823215485, -0.025569211691617966, -0.024664876982569695, 0.012366844341158867, -0.006704295985400677, -0.015129401348531246, 0.017525149509310722, -0.042304906994104385, 0.01464602630585432, -0.022303054109215736, 0.04478960856795311, 0.09686947613954544, -0.03792858123779297, 0.015688922256231308, -0.011535188183188438, 0.015369115397334099, -0.023066530004143715, 0.01761995069682598, -0.006677908357232809, -0.013261914253234863, -0.03403565660119057, -0.04466736316680908, -0.0237588994204998, -0.05383862182497978, -0.06147642806172371, 0.000013006579138163943, -0.0050604990683496, -0.013129631988704205, -0.004269750788807869, 0.0025302835274487734, -0.018104305490851402, -0.060591552406549454, -0.06026884540915489, -0.04841505363583565, -0.07626175880432129, -0.012529861181974411, 0.03925137221813202, 0.020045066252350807, -0.03700730577111244, 0.015631334856152534, -0.01464806403964758, -0.022956833243370056, 0.02684623748064041, -0.022519923746585846, 0.001400777488015592, 0.01952867954969406, 0.038789696991443634, 0.03576013445854187, 0.002603410743176937, 0.06316930800676346, -0.020597785711288452, 0.011054706759750843, -0.013873504474759102, 0.01390390656888485, 0.037575334310531616, 0.009231161326169968, 0.006334739737212658, -0.08706017583608627, -0.0001580148673383519, 0.016776535660028458, -0.021545929834246635, -0.07453464716672897, 0.012804168276488781, 0.020407099276781082, 0.004968412220478058, 0.05073567107319832, -0.036595046520233154, 0.014429971575737, -0.02966712787747383, 0.0198915284126997, -0.0020400523208081722, -0.005345598794519901, 0.037442855536937714, -0.03001350909471512, 0.06347966939210892, 0.029497627168893814, -0.048875465989112854, -0.04007846489548683, -0.015609399415552616, -0.0023056422360241413, 0.016527224332094193, -0.045898161828517914, -0.022175388410687447, -0.05730584263801575, -0.0984024703502655, -0.025546500459313393, 0.013944263570010662, -0.033756934106349945, -0.031220657750964165, 0.006924030836671591, 0.030672160908579826, -0.016618194058537483, 0.014267860911786556, -0.064686119556427, 0.03853655979037285, -0.011700587347149849, -0.03037186898291111, -0.0626906007528305, -0.0012459751451388001, 0.0005940441624261439, 0.02000311017036438, 0.005491972900927067, -0.0577864907681942, -0.002152955625206232, -0.020992159843444824, -0.00907949823886156, 0.0067268176935613155, 0.0018196171149611473, 0.018236080184578896 ]
[ -0.057703256607055664, -0.00441993260756135, -0.021072397008538246, -0.031063741073012352, 0.0690004974603653, -0.007514814380556345, 0.02018878422677517, 0.011464874260127544, 0.059665746986866, -0.009767883457243443, 0.023436306044459343, -0.04734913632273674, -0.011466147378087044, 0.0037368277553468943, 0.02221769280731678, -0.02766728587448597, -0.04802962392568588, -0.06862776726484299, -0.053816813975572586, 0.03043457306921482, -0.05835900455713272, -0.01592838205397129, -0.03465864434838295, -0.045278940349817276, 0.02284880541265011, 0.0293557308614254, 0.056279439479112625, -0.059468820691108704, -0.0460985042154789, -0.21853311359882355, -0.007101445458829403, 0.004135787952691317, 0.02713754214346409, -0.02109668403863907, 0.02445066161453724, 0.0007775154081173241, 0.01218496821820736, -0.006378118880093098, 0.04245806112885475, 0.040082428604364395, 0.015820812433958054, -0.005186193156987429, -0.04476788640022278, -0.03739452734589577, 0.048479773104190826, 0.0026761279441416264, -0.00579093350097537, -0.002923468593508005, 0.032352201640605927, 0.06315942108631134, -0.02761051058769226, 0.011677552945911884, -0.012336243875324726, 0.007100902963429689, 0.018020322546362877, 0.05770638585090637, 0.02333991788327694, 0.05203932896256447, 0.023434855043888092, 0.06294244527816772, 0.023663775995373726, 0.015471755526959896, -0.14419102668762207, 0.052382320165634155, -0.02303566224873066, -0.0017680395394563675, -0.050590015947818756, -0.0043596443720161915, -0.010641949251294136, 0.09327509999275208, 0.01656770333647728, -0.031102096661925316, -0.021182749420404434, 0.041883889585733414, 0.00918627716600895, 0.02136063203215599, -0.0234118290245533, -0.002628157613798976, 0.010885789059102535, 0.007309400476515293, -0.04407361522316933, 0.012538700364530087, -0.02795836143195629, -0.04365072399377823, -0.03690192848443985, 0.010661556385457516, -0.04119911044836044, 0.04344896227121353, 0.00986309815198183, 0.01733972504734993, 0.0526881143450737, 0.051091957837343216, -0.0021475835237652063, 0.03745667263865471, -0.10922852903604507, -0.04649295657873154, 0.0021052388474345207, 0.008350629359483719, -0.01096359919756651, 0.41977789998054504, 0.01799786649644375, -0.006287751719355583, 0.02795572020113468, 0.06256167590618134, -0.002616505604237318, -0.019239094108343124, 0.019103704020380974, -0.05402962118387222, 0.023209096863865852, -0.01598692685365677, -0.028214864432811737, -0.0300510935485363, 0.041762575507164, -0.07177431881427765, 0.004916156176477671, 0.04175648093223572, 0.05306011065840721, 0.008055616170167923, 0.00893306639045477, 0.008404748514294624, -0.0009694006876088679, 0.000565716065466404, -0.00928830448538065, 0.010501296259462833, -0.0014681906905025244, 0.0665188655257225, 0.01219683326780796, 0.06845927983522415, 0.032674916088581085, 0.028645208105444908, 0.04633761942386627, -0.025361651554703712, -0.08973032236099243, 0.02177412062883377, -0.015996670350432396, -0.007938704453408718, 0.034344058483839035, -0.03302943333983421, 0.0035499376244843006, 0.019475998356938362, -0.018161313608288765, -0.08315281569957733, 0.06571578234434128, -0.02979906089603901, -0.03470336273312569, 0.14869780838489532, -0.0063127861358225346, -0.036890409886837006, -0.023868529126048088, -0.03682266175746918, -0.018315857276320457, 0.005083553027361631, 0.024100085720419884, -0.07236810028553009, -0.06232133135199547, 0.025557866320014, 0.07174098491668701, -0.05775744467973709, -0.08530726283788681, -0.017726438120007515, -0.024825632572174072, -0.037133220583200455, -0.03477756679058075, 0.07267127931118011, 0.025941984727978706, -0.10383407771587372, -0.0026615881361067295, -0.005056663881987333, 0.0010577688226476312, -0.06805433332920074, 0.020254839211702347, -0.0015371476765722036, -0.05207592248916626, 0.017651885747909546, 0.042476192116737366, 0.024678386747837067, -0.01894039288163185, -0.034181270748376846, 0.05154319480061531, -0.004936549346894026, -0.011976995505392551, 0.009449549950659275, -0.05984854698181152, 0.008018825203180313, -0.05998146906495094, -0.026158828288316727, -0.05704436078667641, 0.016704214736819267, -0.008861157111823559, -0.04187110438942909, -0.05320579186081886, -0.01326875388622284, -0.037814900279045105, 0.05167814716696739, -0.04493587091565132, 0.0034453831613063812, -0.0052277822978794575, -0.002223244635388255, -0.0165957510471344, -0.049649931490421295, -0.02304818667471409, -0.005605216603726149, 0.0013549068244174123, 0.02818557247519493, -0.002915100660175085, 0.026264436542987823, 0.0431966707110405, -0.03191385045647621, 0.0826520100235939, 0.008434449322521687, -0.027542686089873314, -0.024905798956751823, -0.037319064140319824, 0.010602328926324844, -0.015345252119004726, -0.0032300762832164764, -0.031009729951620102, 0.015260246582329273, -0.002854362828657031, 0.046800147742033005, -0.02046862058341503, 0.03107881173491478, -0.004308341071009636, -0.3259454369544983, -0.017896566540002823, -0.03991134837269783, -0.03432489559054375, -0.007546807173639536, -0.009970204904675484, 0.0012084756745025516, -0.04632806032896042, 0.014970129355788231, 0.04368599131703377, 0.07127548009157181, 0.02551945298910141, -0.021942617371678352, -0.06297483295202255, -0.007611047010868788, 0.0063630640506744385, -0.049179911613464355, 0.014047389850020409, -0.012331521138548851, 0.04001813381910324, 0.07499431073665619, -0.02588956244289875, -0.04514295235276222, -0.03815055638551712, 0.0028489113319665194, -0.05473027750849724, 0.1498720645904541, 0.04901571944355965, 0.00852368026971817, -0.07627657055854797, 0.04186651110649109, 0.005672090221196413, -0.0034961500205099583, -0.049268465489149094, 0.031494658440351486, -0.009465320035815239, 0.0021393171045929193, -0.03532552719116211, 0.02103019878268242, -0.04679209738969803, -0.01803715154528618, -0.003024677513167262, -0.03573988005518913, -0.04877486079931259, -0.051770273596048355, 0.01202164962887764, -0.011303240433335304, -0.008283402770757675, -0.011303408071398735, 0.08436895161867142, 0.028005633503198624, 0.01183775719255209, 0.05646534636616707, -0.020567629486322403, 0.051497768610715866, -0.02445835806429386, -0.10208101570606232, 0.003616920206695795, -0.014763527549803257, 0.030936291441321373, 0.010472188703715801, -0.008218638598918915, 0.06028270721435547, -0.07142047584056854, 0.007782605476677418, 0.004037001170217991, 0.03089853748679161, 0.012747399508953094, 0.03422711044549942, -0.007958224974572659, -0.020379358902573586, 0.01909894309937954, -0.01240338571369648, 0.046719927340745926, 0.04940203204751015, 0.03392711654305458, 0.0399552546441555, 0.02022145688533783, 0.02319161407649517, 0.01951630599796772, 0.061406832188367844, -0.05293196067214012, 0.05120960250496864, -0.03536462411284447, 0.04485595226287842, 0.04261665791273117, 0.03670714050531387, 0.0011650315718725324, 0.06787411868572235, 0.021632017567753792, -0.018928272649645805, 0.00005480009349412285, -0.022251708433032036, -0.006005581002682447, 0.0440269336104393, -0.05779969319701195, -0.2304345965385437, 0.0343407541513443, 0.03129715099930763, 0.019562143832445145, 0.04637908190488815, 0.006219620816409588, 0.007519717328250408, -0.020755112171173096, -0.056641291826963425, 0.0034920864272862673, 0.02215355634689331, 0.04317588359117508, -0.015511185862123966, -0.015527614392340183, -0.01074480265378952, -0.008461127057671547, 0.02216617576777935, -0.00249258941039443, 0.05317862704396248, 0.04292335733771324, 0.053116317838430405, -0.00615738658234477, 0.18744602799415588, 0.01030571199953556, 0.05678766220808029, 0.08405381441116333, -0.015967614948749542, -0.04498986527323723, -0.0048536937683820724, 0.007777801714837551, -0.004398385062813759, 0.021524636074900627, 0.04741930589079857, 0.06365660578012466, -0.009829362854361534, 0.013300699181854725, -0.008090420626103878, 0.07976892590522766, 0.010322979651391506, -0.05407634750008583, -0.009114064276218414, 0.02781022898852825, -0.03917628154158592, 0.024945072829723358, 0.07545796036720276, 0.015503487549722195, -0.008939523249864578, -0.03027798980474472, -0.05227458104491234, -0.03635339438915253, -0.030219165608286858, -0.038255561143159866, -0.016616936773061752, -0.019929582253098488, 0.016926156356930733, 0.04329856485128403, 0.029889922589063644, -0.04698167368769646, 0.051209982484579086, 0.0010036370949819684, -0.037356890738010406, -0.0071191792376339436, 0.0847959816455841, -0.02878429926931858, 0.019244950264692307 ]
[ 0.02515859715640545, 0.025547916069626808, -0.017546238377690315, 0.017443906515836716, 0.009576093405485153, 0.04743644595146179, -0.014740439131855965, 0.022092901170253754, -0.019375529140233994, 0.0021703101228922606, -0.06608206778764725, 0.0056815617717802525, 0.05398271232843399, 0.009225228801369667, 0.01200182270258665, -0.018520837649703026, -0.050726957619190216, 0.012939085252583027, 0.02596159465610981, -0.03288896009325981, -0.020407358184456825, -0.022076187655329704, 0.007142371963709593, -0.015744687989354134, -0.0073742191307246685, 0.02133237011730671, -0.0014262624317780137, 0.04265555739402771, 0.008655298501253128, -0.09168592840433121, -0.07925614714622498, -0.0407269224524498, 0.045135870575904846, 0.05319977551698685, -0.034946177154779434, -0.032988402992486954, -0.009447194635868073, -0.001180056482553482, -0.0053464993834495544, 0.014219548553228378, -0.004590976983308792, -0.014077696017920971, -0.03994651511311531, 0.028284667059779167, 0.016862807795405388, 0.017711734399199486, -0.04821159690618515, 0.0017447867430746555, -0.013195288367569447, 0.022744780406355858, -0.03454931825399399, -0.012286673299968243, 0.020872578024864197, 0.01961730793118477, 0.04230152815580368, 0.03386002033948898, -0.05076330155134201, 0.0012913671089336276, 0.00848834216594696, -0.037666674703359604, 0.03299039602279663, -0.03722260519862175, -0.057154443114995956, -0.02372504025697708, -0.0456007681787014, -0.034669142216444016, 0.006258872337639332, 0.02604641579091549, 0.015601282007992268, 0.003843924729153514, 0.012772847898304462, 0.011368351988494396, -0.04455394670367241, -0.0035843015648424625, -0.006610674783587456, 0.05745953693985939, -0.010451187379658222, -0.04008221626281738, 0.007898937910795212, -0.013863438740372658, -0.045751411467790604, 0.014571040868759155, -0.006822691764682531, 0.012421250343322754, 0.008489318192005157, -0.015319348312914371, 0.027595695108175278, -0.011452552862465382, 0.027567660436034203, 0.014665402472019196, -0.06200946494936943, 0.02980969473719597, 0.00230561220087111, 0.0021262664813548326, -0.07224002480506897, 0.029669849202036858, -0.00019251661433372647, -0.020773829892277718, 0.050986696034669876, 0.8159414529800415, 0.03690386563539505, 0.015706371515989304, -0.02959626540541649, 0.01709444262087345, -0.01663053035736084, 0.003041369840502739, 0.03377010300755501, -0.005610545165836811, 0.02025144174695015, -0.013630690984427929, -0.016672754660248756, 0.057073500007390976, 0.007554172538220882, 0.0012872747611254454, -0.026050802320241928, 0.036999236792325974, 0.01753358356654644, 0.021484827622771263, -0.018447395414114, 0.015114562585949898, 0.03338273987174034, 0.017143944278359413, -0.03290301188826561, 0.047553692013025284, 0.036491356790065765, -0.13123847544193268, -0.012844827957451344, -7.886086705819482e-33, 0.013012738898396492, -0.022457947954535484, 0.04384089261293411, -0.01949910633265972, -0.03254750743508339, 0.024428226053714752, -0.002593536861240864, 0.0024684350937604904, -0.04790911450982094, -0.04570130631327629, -0.015770820900797844, -0.00831800140440464, 0.03674320504069328, -0.023758627474308014, 0.050600383430719376, -0.008980470709502697, -0.003249211236834526, 0.017227940261363983, -0.005214792210608721, 0.012937409803271294, 0.005592494737356901, 0.027480624616146088, -0.002174142748117447, 0.014608444646000862, -0.007761378772556782, 0.04200740531086922, -0.03759054094552994, -0.03634591028094292, -0.01638367399573326, -0.041636835783720016, -0.04511798545718193, -0.027553759515285492, -0.0443752147257328, 0.017180906608700752, -0.018256695941090584, -0.02943285182118416, 0.005365945864468813, -0.00045767787378281355, -0.008104960434138775, -0.05470763146877289, -0.046050820499658585, -0.005783244501799345, -0.02440011315047741, -0.04959897696971893, -0.035717736929655075, -0.009994701482355595, -0.02348312735557556, 0.0051768808625638485, -0.020527126267552376, -0.032402001321315765, 0.0409950315952301, 0.0005759435589425266, 0.007848909124732018, -0.02370627596974373, -0.00726317148655653, 0.013349498622119427, 0.002814082195982337, 0.035707876086235046, -0.01000971719622612, -0.006693264003843069, 0.051851652562618256, -0.0036248371470719576, -0.008128438144922256, 0.05794662982225418, 0.020253263413906097, 0.04157741367816925, 0.012185477651655674, -0.007008939050137997, 0.023573219776153564, -0.017518986016511917, -0.018686065450310707, 0.033514995127916336, 0.018467705696821213, -0.03507550433278084, -0.0011932149063795805, -0.028952784836292267, 0.005669123958796263, 0.010256060399115086, -0.022562311962246895, 0.049832165241241455, -0.007071934640407562, -0.026594314724206924, -0.04970398172736168, -0.03355320915579796, -0.024465098977088928, 0.021543608978390694, 0.024842169135808945, 0.015270272269845009, 0.006355620454996824, 0.024362238124012947, 0.04793588072061539, 0.005100664217025042, 0.016361847519874573, 0.0002947471512015909, -0.05089571699500084, 7.81481354459325e-33, -0.00877829547971487, 0.014006833545863628, 0.009059794247150421, -0.035660143941640854, 0.06378594040870667, -0.015770411118865013, 0.011594937182962894, 0.0033380917739123106, -0.04025847837328911, 0.04082648828625679, 0.005114640574902296, -0.034217435866594315, 0.001706931390799582, 0.020310012623667717, 0.015504356473684311, -0.008054246194660664, 0.02953110821545124, -0.004391296301037073, 0.028455525636672974, 0.021219678223133087, 0.03499927744269371, -0.0015277559868991375, 0.019842060282826424, 0.03614570572972298, 0.0010930013377219439, 0.0218708124011755, 0.015269849449396133, -0.016537779942154884, -0.021786794066429138, 0.02326650358736515, 0.0534958690404892, -0.03810233995318413, -0.015857964754104614, -0.027716709300875664, -0.0022581005468964577, -0.0002928767935372889, -0.04027533158659935, -0.006495121866464615, 0.0009914292022585869, 0.030675146728754044, -0.014179167337715626, -0.014172671362757683, -0.008436349220573902, 0.054419081658124924, 0.03817996755242348, 0.0006579035543836653, 0.012700377032160759, -0.027620889246463776, 0.006196244154125452, 0.018482010811567307, 0.01718144118785858, 0.013687478378415108, -0.04093387350440025, 0.02111922949552536, 0.011702226474881172, -0.03495362028479576, -0.03338928148150444, -0.008425620384514332, -0.008172035217285156, -0.054500024765729904, 0.0027950587682425976, 0.028116686269640923, -0.06765840202569962, 0.0450415275990963, 0.002366469707340002, 0.029370639473199844, -0.05167119950056076, 0.006147455889731646, -0.017785994336009026, 0.003047481644898653, -0.027912884950637817, 0.008996804244816303, 0.02874751016497612, 0.05704359710216522, -0.008919798769056797, -0.0037802255246788263, -0.04631864279508591, 0.014123004861176014, -0.031034018844366074, 0.055375244468450546, 0.018406271934509277, -0.02190231904387474, 0.00880619790405035, 0.03662150353193283, -0.01718820631504059, -0.003210678929463029, -0.018477637320756912, 0.03298230096697807, -0.011611984111368656, 0.005644361954182386, 0.036397989839315414, -0.033989619463682175, -0.01118400413542986, 0.02006727084517479, -0.02103363536298275, -1.320422882145067e-8, -0.03585811331868172, 0.009770939126610756, -0.053110260516405106, 0.03688360005617142, 0.010273800231516361, 0.020999707281589508, -0.0037766587920486927, -0.007483507972210646, 0.02235630713403225, 0.018456019461154938, 0.0415533147752285, -0.01951850764453411, 0.048625219613313675, -0.0159775298088789, 0.03080764412879944, -0.003810595255345106, -0.020418057218194008, -0.008022308349609375, 0.03479450196027756, 0.02909487672150135, -0.03803858160972595, 0.05180193483829498, -0.06783460080623627, 0.0009874342940747738, 0.018378177657723427, -0.01400661002844572, -0.02343982271850109, -0.05864115431904793, -0.011492782272398472, -0.054071828722953796, 0.01895933970808983, -0.024476472288370132, -0.0058033955283463, 0.04320242628455162, -0.005892808083444834, -0.04920867085456848, 0.02371351420879364, 0.005107127595692873, 0.018432846292853355, 0.039560962468385696, -0.006606028415262699, 0.014307336881756783, -0.03560040891170502, -0.011005849577486515, -0.020433949306607246, -0.020045839250087738, -0.04544617608189583, -0.014828379265964031, 0.012733543291687965, -0.05096719041466713, 0.03373454883694649, 0.0008385732653550804, 0.040971435606479645, 0.021145125851035118, 0.044103022664785385, 0.03628447279334068, -0.02383764088153839, 0.021000418812036514, -0.02191944792866707, -0.041124675422906876, -0.01364776212722063, 0.03496859595179558, -0.018576771020889282, 0.0006586842355318367 ]
neo4jcypher-sql-style-group-by-with-limit-query
https://markhneedham.com/blog/2013/03/18/neo4jcypher-sql-style-group-by-with-limit-query
false
2013-03-29 10:51:37
Editing config files on a server & Ctrl-Z
[ "software-development" ]
[ "Software Development" ]
"A couple of weeks ago https://twitter.com/timrgoodwin[Tim] and I were spinning up a new service on (...TRUNCATED)
null
null
[0.020787741988897324,-0.020870553329586983,-0.008831940591335297,0.03842626139521599,0.102838501334(...TRUNCATED)
[-0.10668612271547318,-0.028614232316613197,-0.011191360652446747,-0.04260871931910515,0.06387036293(...TRUNCATED)
[-0.04834061488509178,0.037395745515823364,-0.001488151028752327,0.001364432042464614,0.006659605540(...TRUNCATED)
editing-config-files-on-a-server-ctrl-z
https://markhneedham.com/blog/2013/03/29/editing-config-files-on-a-server-ctrl-z
false
2013-03-16 11:58:42
A quick and dirty way of testing the performance of a service
[ "software-development" ]
[ "Software Development" ]
"We had a power outage in our data centre yesterday and once it had recovered https://twitter.com/ja(...TRUNCATED)
null
null
[0.030247362330555916,-0.01343638077378273,0.01028284803032875,0.045743465423583984,0.05697846785187(...TRUNCATED)
[-0.08546430617570877,-0.04089677333831787,-0.024446990340948105,-0.008896862156689167,0.06583327800(...TRUNCATED)
[-0.009783712215721607,0.06838808208703995,-0.021387062966823578,0.025298725813627243,0.007329901680(...TRUNCATED)
a-quick-and-dirty-way-of-testing-the-performance-of-a-service
"https://markhneedham.com/blog/2013/03/16/a-quick-and-dirty-way-of-testing-the-performance-of-a-serv(...TRUNCATED)
false
2013-03-17 20:21:10
clojure/Java Interop: The doto macro
[ "java", "clojure", "interop" ]
[ "Clojure" ]
"I recently wrote about some http://www.markhneedham.com/blog/2013/03/17/clojurejava-interop-importi(...TRUNCATED)
null
null
[0.002471019048243761,-0.013959275558590889,-0.03309272229671478,-0.005049073603004217,0.07075443118(...TRUNCATED)
[-0.06643670052289963,-0.04220634326338768,-0.009614154696464539,-0.029233591631054878,0.03872268646(...TRUNCATED)
[0.029796916991472244,0.04653238132596016,0.010706035420298576,-0.0004499733913689852,-0.00636274600(...TRUNCATED)
clojurejava-interop-the-doto-macro
https://markhneedham.com/blog/2013/03/17/clojurejava-interop-the-doto-macro
false
2013-03-17 18:56:36
clojure/Java Interop - Importing neo4j spatial data
[ "java", "clojure", "neo4j" ]
[ "neo4j" ]
"I wrote a post about a week ago where I described how I'd http://www.markhneedham.com/blog/2013/03/(...TRUNCATED)
null
null
[0.010771064087748528,-0.011268312111496925,-0.02168768085539341,0.020929010584950447,0.083746537566(...TRUNCATED)
[-0.015485635958611965,-0.0224214568734169,0.009397018700838089,-0.05304528772830963,0.0953090637922(...TRUNCATED)
[0.07055427134037018,0.042397722601890564,-0.020967237651348114,-0.005194726400077343,0.014124209992(...TRUNCATED)
clojurejava-interop-importing-neo4j-spatial-data
https://markhneedham.com/blog/2013/03/17/clojurejava-interop-importing-neo4j-spatial-data
false
2013-03-17 14:00:35
Understanding what lsof socket/port aliases refer to
[ "software-development", "devops-2" ]
[ "DevOps" ]
"Earlier in the week we wanted to check which ports were being listened on and by what processes whi(...TRUNCATED)
null
null
[-0.037673283368349075,-0.003555653151124716,-0.009796075522899628,0.009113416075706482,0.0915163159(...TRUNCATED)
[-0.06968486309051514,-0.055897656828165054,-0.01805156283080578,-0.06910508126020432,0.055130138993(...TRUNCATED)
[0.02144784666597843,-0.002786268014460802,0.013498280197381973,-0.04672441631555557,0.0017769109690(...TRUNCATED)
understanding-what-lsof-socketport-aliases-refer-to
https://markhneedham.com/blog/2013/03/17/understanding-what-lsof-socketport-aliases-refer-to
README.md exists but content is empty. Use the Edit dataset card button to edit it.
Downloads last month
2
Edit dataset card