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
2009-06-18 18:31:59
Functional Collection Parameters: A different way of thinking about collections
[ "functional-programming", "functional-collection-parameters" ]
[ ".NET" ]
One of the changes that I've noticed in my coding now compared to around 7 or 8 months ago is that whenever there's some operations to be performed on a collection I am far more inclined to think of how to do those operations using a functional approach. I've written previously about the ways I've been http://www.markhneedham.com/blog/2008/12/17/functional-collection-parameters-in-c/[making use] http://www.markhneedham.com/blog/2009/02/03/c-refactoring-to-functional-collection-parameters/[of] http://www.markhneedham.com/blog/2009/06/16/functional-collection-parameters-handling-the-null-collection/[functional] http://www.markhneedham.com/blog/2009/01/19/f-vs-c-vs-java-functional-collection-parameters/[collection] parameters in my code but what I hadn't really considered was that the way of thinking about the problem we want to solve is slightly different. While http://twitter.com/deanrcornish[Dean] and I were talking through http://www.markhneedham.com/blog/2009/06/16/functional-collection-parameters-handling-the-null-collection/[the refactoring that I mentioned in my post about handling null collections], we realised that the way it was originally written followed a very sequential mindset. [source,csharp] ---- public IEnumerable<Foo> MapFooMessages(IEnumerable<FooMessage> fooMessages) { var result = new List<Foo>(); if(fooMessages != null) { foreach(var fooMessage in fooMessages) { result.Add(new Foo(fooMessage)); } } return result; } ---- * Create a new collection * Take an existing collection * If it's not null then iterate over the existing collection * Add each item to the new collection * Return the new collection I find when I'm thinking about doing this type of code now my thought process is *more focused towards the collection as a whole* rather than about the individual items in the collection. If I do want to only apply an operation on a subset of the collection then I need to first apply another function to the whole collection that filters the collection down. I find myself thinking about what I want to happen rather than how I want to do it - *a declarative approach over an imperative one in summary*. One of the LINQ C# extension methods which I sometimes find myself abusing is the 'ForEach' one which I feel is used a lot more times than is necessary and often ends up with complicated lambda blocks inside it which could be avoided by using some of the other functions. To give a very simple example of some code I came across recently: [source,csharp] ---- public IEnumerable<string> GetFooKeys(IEnumerable<Foo> foos) { var list = new List<string>(); foos.Where(foo => foo.Opted).ToList().ForEach(foo => list.Add(foo.Key)); return list; } ---- We are making use of functional collection parameters but we can easily do this without using the 'ForEach' method: [source,csharp] ---- public IEnumerable<string> GetFooKeys(IEnumerable<Foo> foos) { return foos.Where(foo => foo.Opted).Select(foo => foo.Key); } ---- I think the danger with 'ForEach' is that we are creating side effects which may be unexpected. In this case there's not really that much problem as we're just adding a value to a list but it is possible to do anything else in the ForEach block as well. I also came across a good post written by one of the 8th light guys talking about http://blog.8thlight.com/articles/2009/6/16/a-functional-refactoring-in-scala[the use of ForEach in Scala and how we can use it in a way that minimises side effects].
null
null
[ 0.013159818015992641, -0.04351659119129181, 0.006655995734035969, -0.002427060855552554, 0.06918822228908539, -0.007131495978683233, 0.020596303045749664, 0.025920912623405457, -0.012174949049949646, -0.04749254882335663, 0.0010397526202723384, -0.005855330731719732, -0.07529173791408539, 0.010183924809098244, -0.02063465677201748, 0.07744430750608444, 0.05125458911061287, -0.04051420837640762, 0.036310214549303055, 0.009525262750685215, -0.017699165269732475, 0.08662417531013489, 0.03231949731707573, 0.027333645150065422, 0.035951972007751465, 0.0157245434820652, 0.010322865098714828, -0.002905906643718481, -0.05488474667072296, -0.026360344141721725, 0.03221799433231354, 0.0067842742428183556, -0.018851183354854584, -0.007490186952054501, -0.0052504101768136024, -0.06412827223539352, 0.004374682437628508, -0.0037001152522861958, 0.005954626947641373, 0.015573081560432911, -0.06482183188199997, 0.04023700952529907, -0.020886937156319618, -0.012487567961215973, -0.03320185840129852, 0.015065843239426613, -0.028581950813531876, -0.020394427701830864, -0.038761962205171585, -0.019066836684942245, -0.05479072779417038, 0.003055744571611285, -0.03679097816348076, 0.010745401494204998, -0.012729762122035027, 0.07541287690401077, -0.018460143357515335, -0.08044369518756866, 0.000771410355810076, -0.05231337994337082, 0.015404925681650639, -0.004661900922656059, -0.005174271296709776, 0.02720981277525425, 0.03801082819700241, -0.015068002976477146, -0.022829663008451462, 0.04408575966954231, -0.03402869775891304, -0.018792208284139633, -0.024428602308034897, 0.014952806755900383, 0.003472269279882312, -0.020822830498218536, 0.011874523013830185, -0.05236218869686127, -0.017117829993367195, 0.05121464654803276, 0.0025135071482509375, 0.04954012483358383, 0.003040303010493517, 0.002087256172671914, 0.05113052949309349, 0.012293173000216484, 0.049738917499780655, -0.022547541186213493, -0.026720700785517693, -0.0011528439354151487, -0.006296849809587002, 0.06658537685871124, 0.03965631127357483, -0.045950792729854584, -0.002099428791552782, 0.02694046124815941, -0.012999276630580425, -0.003509834874421358, 0.003323429264128208, -0.014168129302561283, -0.014594309031963348, 0.0201973095536232, -0.02269924245774746, -0.01482535619288683, 0.019383437931537628, -0.02653726190328598, -0.07135384529829025, -0.03854561969637871, -0.023515231907367706, -0.018819760531187057, -0.0065075429156422615, 0.00596046494320035, -0.04932158440351486, 0.03733129799365997, -0.021469011902809143, 0.027070138603448868, -0.06727064400911331, 0.046469904482364655, 0.022361772134900093, -0.0012461604783311486, -0.022515613585710526, 0.0351804681122303, 0.06636421382427216, 0.03234003484249115, 0.012747090309858322, 0.07544146478176117, 0.00664525805041194, 0.0269013661891222, -0.02735433354973793, 0.05294983088970184, -0.0031429703813046217, -0.06923598796129227, -0.013034534640610218, 0.02500288002192974, -0.014599397778511047, 0.006084413733333349, -0.0032028520945459604, -0.05496877804398537, -0.03195640817284584, 0.021683646366000175, 0.044461511075496674, 0.018874628469347954, -0.007549758534878492, -0.03560955449938774, 0.002949386602267623, -0.009339871816337109, 0.019437920302152634, 0.021199647337198257, -0.014573120512068272, -0.005639682523906231, -0.0016942225629463792, 0.03517504781484604, 0.041198886930942535, 0.060249775648117065, 0.04050946608185768, -0.03992921859025955, 0.0076476228423416615, 0.11010383069515228, -0.002884326037019491, 0.0356982946395874, 0.005832206923514605, 0.03765984624624252, 0.05159435793757439, 0.030321838334202766, 0.0017076715594157577, 0.05284298211336136, -0.01306705642491579, 0.007833557203412056, -0.005349707789719105, 0.0626911073923111, 0.003261653706431389, -0.032106444239616394, -0.05087699368596077, -0.06424171477556229, 0.042879559099674225, -0.04461006820201874, -0.0200659167021513, 0.023351896554231644, 0.08559133857488632, -0.005266817752271891, 0.05289723724126816, 0.00995336938649416, -0.06961004436016083, 0.019314339384436607, 0.0053978171199560165, -0.000031391351512866095, 0.009697952307760715, 0.0028912348207086325, 0.0763816237449646, 0.017986120656132698, -0.0009853788651525974, 0.013107877224683762, -0.06639381498098373, -0.07151778787374496, -0.04814499244093895, -0.01165155041962862, 0.06779973208904266, -0.017155351117253304, 0.0012147844536229968, 0.06928100436925888, 0.013785813935101032, 0.03569505363702774, 0.05388067290186882, -0.023293588310480118, 0.02593422867357731, -0.020208634436130524, -0.047899480909109116, 0.06386836618185043, 0.024238932877779007, -0.002946001710370183, -0.05087960511445999, 0.024569015949964523, -0.01698249578475952, 0.010481433011591434, 0.033815499395132065, -0.003332168096676469, 0.06709236651659012, -0.0002602394379209727, 0.020926816388964653, -0.06424885243177414, 0.054868973791599274, -0.07824945449829102, 0.01889893040060997, 0.012917344458401203, 0.007325547747313976, 0.0013026915257796645, -0.0009497958235442638, 0.09694556146860123, 0.05176738277077675, -0.058418020606040955, -0.031204527243971825, 0.011067348532378674, 0.034185878932476044, -0.037386033684015274, -0.00039995627594180405, -0.01765989512205124, 0.03202017396688461, 0.016581278294324875, -0.0358918197453022, 0.0013363186735659838, -0.006173731293529272, -0.03503662720322609, -0.0010318735148757696, 0.04691488668322563, -0.008826675824820995, 0.061894308775663376, 0.02119390107691288, -0.027449745684862137, -0.00942829716950655, -0.03563569858670235, -0.05242440104484558, 0.0016398190055042505, 0.01865246705710888, -0.01582721620798111, 0.05169368535280228, -0.015810104086995125, -0.02660973370075226, -0.005786162801086903, -0.03334019333124161, -0.0028842631727457047, 0.039239466190338135, 0.07412141561508179, -0.015149143524467945, 0.045462992042303085, -0.0037497077137231827, -0.011368473060429096, -0.011596604250371456, -0.039590269327163696, 0.008465851657092571, 0.004741447977721691, 0.0194719135761261, 0.0471884161233902, 0.018503934144973755, -0.012890320271253586, 0.03239477425813675, 0.00930373091250658, -0.04242026433348656, -0.0346946157515049, 0.026765061542391777, -0.006102097220718861, -0.06112416833639145, -0.041055794805288315, -0.044423457235097885, 0.045073479413986206, -0.034418780356645584, -0.034538209438323975, 0.004909949377179146, -0.053830042481422424, 0.07022324949502945, -0.06766156107187271, -0.05888605862855911, 0.006287308409810066, 0.05591960251331329, 0.0264892578125, -0.021155260503292084, -0.01011405885219574, 0.05869954079389572, 0.0032159192487597466, -0.013422301970422268, 0.010302828624844551, 0.008488158695399761, -0.009629799984395504, -0.023251216858625412, -0.0005912874476052821, 0.0543721579015255, 0.0033014595974236727, -0.01687503792345524, -0.05516832694411278, 0.018012894317507744, -0.006091695744544268, -0.27392578125, 0.035629261285066605, 0.0019152803579345345, -0.028147658333182335, 0.02106347866356373, 0.0024559327866882086, 0.010306797921657562, -0.03406983241438866, -0.024825699627399445, 0.06317632645368576, -0.022864200174808502, -0.014664537273347378, -0.05238953232765198, 0.06736479699611664, -0.015755845233798027, 0.007611764129251242, -0.018073154613375664, -0.020772837102413177, -0.015052469447255135, 0.06146446615457535, -0.008512659929692745, -0.07815355807542801, -0.0006748238229192793, 0.03189939260482788, 0.03189748898148537, 0.05523311719298363, -0.09606852382421494, 0.06791598349809647, -0.030569210648536682, 0.014798304997384548, 0.0015571259427815676, -0.0058021508157253265, 0.015202593058347702, -0.04780852422118187, -0.03064124286174774, -0.018925467506051064, 0.021297438070178032, 0.023358434438705444, -0.014812570065259933, 0.02379213459789753, -0.021825380623340607, -0.04701954871416092, -0.03211735934019089, 0.047292765229940414, 0.07035589963197708, 0.010169848799705505, -0.06913849711418152, -0.00018288771389052272, -0.03451603278517723, 0.058714061975479126, -0.012729685753583908, -0.06102091073989868, 0.007204134948551655, 0.04110640287399292, -0.021543413400650024, -0.03901622071862221, 0.0008156968979164958, -0.020843571051955223, -0.030115004628896713, -0.01705344207584858, -0.0031263092532753944, -0.06603727489709854, -0.009318160824477673, -0.032685525715351105, -0.032572146505117416, -0.04786396399140358, -0.060517389327287674, 0.0005293589783832431, 0.07243414223194122, 0.012533777393400669, 0.0014021613169461489, 0.0015780192334204912, -0.011693356558680534, -0.10871051251888275, -0.027407318353652954, -0.0481969378888607, -0.05129241570830345, -0.022158276289701462, -0.005129238590598106, 0.038325175642967224, -0.026501713320612907, -0.05257732793688774, 0.009576660580933094, 0.03932523727416992, 0.017055083066225052, -0.021064938977360725, 0.02766740694642067, 0.005285501480102539, -0.031156452372670174, 0.004711918532848358, 0.06918821483850479, 0.009787578135728836, 0.0007709920173510909, -0.016776205971837044, 0.018038231879472733, 0.03639540076255798, 0.0309409499168396, -0.005780911073088646, 0.014283443801105022, 0.03464599326252937, 0.051110152155160904, -0.037176452577114105, 0.04431295394897461, -0.02107718214392662, -0.007840864360332489, -0.007359392940998077, -0.049069106578826904, 0.02927696704864502, 0.031133363023400307, 0.0010339808650314808, -0.009044072590768337, -0.017290474846959114, -0.0002724648220464587, -0.056157369166612625, -0.022266389802098274, 0.004219117574393749, -0.0006450344808399677, 0.030646204948425293, 0.02717321738600731, -0.02113099955022335, -0.0618487223982811, 0.01991327293217182, 0.002483626827597618, -0.0073665957897901535, -0.07523078471422195, -0.03534354642033577, -0.035460520535707474, -0.015837976709008217, -0.003859286429360509, 0.021353211253881454, -0.008805583231151104, 0.031861111521720886, 0.006003070622682571, -0.028931789100170135, 0.02902999520301819, -0.027766600251197815, -0.007376161403954029, -0.03712240979075432, -0.051711320877075195, -0.0370706170797348, -0.003626458579674363, -0.004307236522436142, 0.02471272647380829, 0.006736635696142912, 0.007176696788519621, -0.0031714399810880423, 0.02719467133283615, 0.015766343101859093, 0.016533801332116127, 0.032730408012866974, -0.010809790343046188, -0.04899562522768974, 0.005935232155025005, -0.051073938608169556, -0.03678889945149422, -0.016857733950018883, 0.029266614466905594, -0.06711237877607346, -0.022257763892412186, -0.04647776484489441, 0.03694584593176842, -0.0508122444152832, -0.029189229011535645, -0.030877280980348587, -0.03033893182873726, 0.048093561083078384, -0.04304741322994232, 0.03211834654211998, -0.016946686431765556, -0.009913214482367039, 0.0063732583075761795, -0.024572746828198433, -0.018990227952599525, 0.02712058089673519, 0.004071141127496958, -0.0050118835642933846, -0.006858435925096273, 0.02304370142519474, 0.01880347542464733, 0.001902777235955, 0.020401524379849434, 0.004181902855634689, 0.021075475960969925, -0.016590800136327744, 0.040070079267024994, -0.012283088639378548, 0.03586708381772041, -0.022721875458955765, -0.020951954647898674, -0.019329771399497986, -0.055368874222040176, -0.013584238477051258, -0.01366365421563387, 0.04187912866473198, -0.03468267247080803, -0.07286658883094788, 0.03986700251698494, 0.009104389697313309, 0.008201739750802517, -0.0016910613048821688, 0.02482454851269722, 0.013119436800479889, -0.016693275421857834, 0.005975802894681692, 0.06775031983852386, -0.0528232641518116, 0.01896204985678196, -0.008355960249900818, 0.01397304143756628, 0.02439318411052227, 0.024012960493564606, -0.0222124345600605, -0.010108672082424164, -0.000014254763300414197, 0.019632982090115547, -0.01961754821240902, -0.029673615470528603, -0.014056707732379436, 0.024067722260951996, 0.009098846465349197, -0.03064797632396221, -0.008601401001214981, -0.005043703597038984, -0.02461223490536213, -0.029499908909201622, 0.0002476436784490943, -0.02310953661799431, -0.009779967367649078, 0.01655752584338188, -0.048663314431905746, 0.02484208159148693, -0.05200705677270889, 0.0417274534702301, 0.019628841429948807, -0.0017229588702321053, -0.008726468309760094, -0.049410630017519, 0.012330640107393265, -0.018831076100468636, 0.05579117313027382, -0.010903975926339626, -0.032740846276283264, 0.013905784115195274, -0.032484009861946106, -0.03726200386881828, -0.007058955729007721, 0.005837452597916126, -0.007479283958673477, 0.010346205905079842, 0.05370868742465973, -0.005424459930509329, 0.022433733567595482, -0.003983514849096537, 0.005380128510296345, 0.08042854070663452, -0.058307260274887085, -0.009194884449243546, -0.021426483988761902, -0.05319419875741005, -0.014799115248024464, 0.010217486880719662, 0.008411857299506664, -0.04631280526518822, 0.028146836906671524, 0.03553425148129463, 0.03720638528466225, 0.037770822644233704, 0.021382266655564308, 0.04004364833235741, -0.010106775909662247, -0.013954393565654755, -0.061382874846458435, 0.01712162233889103, 0.03232487663626671, 0.04863534867763519, -0.03230099752545357, -0.0343608483672142, -0.026448214426636696, 0.022004323080182076, -0.06609000265598297, -0.0034430213272571564, 0.007149008102715015, -0.014500518329441547, 0.0029575256630778313, 0.04905444756150246, -0.05392349883913994, 0.038649000227451324, 0.03161440044641495, -0.03123585507273674, -0.020734218880534172, -0.031173598021268845, 0.058898840099573135, 0.025840573012828827, 0.004813368432223797, -0.017926156520843506, 0.020384470000863075, 0.049603644758462906, 0.045917704701423645, 0.024116190150380135, 0.08900964260101318, -0.011434306390583515, 0.03229474276304245, 0.013278440572321415, -0.015493214130401611, -0.015360726043581963, 0.019355015829205513, -0.018847238272428513, -0.05817238986492157, 0.0012274106265977025, 0.010218673385679722, -0.05443966016173363, -0.04925965517759323, 0.06686804443597794, 0.014963896945118904, -0.004401494283229113, -0.04958014935255051, 0.003961430862545967, -0.05714448541402817, -0.0075511629693210125, -0.03107641264796257, 0.03144899010658264, -0.02824401669204235, 0.07284649461507797, -0.003231637179851532, -0.019718466326594353, 0.06984886527061462, -0.02086758241057396, -0.014641827903687954, -0.0067911939695477486, 0.08228661864995956, 0.08293890208005905, 0.05702083557844162, -0.005596289411187172, 0.07112520933151245, -0.019011108204722404, -0.03122306801378727, -0.009640323929488659, -0.019404232501983643, 0.0029379986226558685, -0.0005027273437008262, 0.03689507767558098, 0.10809288918972015, 0.005971952341496944, 0.06207883358001709, -0.04960557073354721, -0.01579134538769722, -0.006449470762163401, 0.020578976720571518, 0.026635222136974335, 0.033887896686792374, 0.00002580539512564428, 0.017435375601053238, 0.0002904330031014979, -0.030577749013900757, 0.03929273039102554, -0.020277759060263634, -0.006564322859048843, 0.02704411745071411, 0.009922324679791927, 0.0063413577154278755, 0.03372001275420189, 0.038932789117097855, 0.06707829982042313, -0.01234495360404253, -0.008873691782355309, -0.02037247084081173, 0.012456919997930527, 0.010270187631249428, -0.028974808752536774, -0.011311721056699753, -0.034794341772794724, 0.037686776369810104, 0.008645538240671158, -0.02261863648891449, -0.011014599353075027, -0.03122870996594429, 0.042026977986097336, -0.011890526860952377, 0.019099801778793335, 0.0011346301762387156, 0.018175281584262848, -0.03939212113618851, -0.03984951972961426, -0.03759351000189781, -0.03541767597198486, -0.05630142241716385, -0.011181515641510487, 0.05031627044081688, -0.006888424511998892, -0.039555761963129044, -0.016954541206359863, -0.004744526464492083, -0.025651797652244568, 0.03971630334854126, -0.022627858445048332, -0.03935430571436882, 0.021971045061945915, 0.011345311999320984, 0.036014508455991745, 0.01534945610910654, 0.043152086436748505, -0.017709387466311455, 0.010524721816182137, -0.04323768615722656, -0.002630197675898671, 0.06285861134529114, 0.015582269057631493, 0.028682325035333633, -0.07505815476179123, 0.037021372467279434, 0.034013450145721436, -0.0064316620118916035, -0.08259457349777222, -0.013389131054282188, 0.01115089375525713, -0.010765801183879375, 0.022743409499526024, -0.01915159448981285, -0.030481185764074326, -0.045594699680805206, 0.012768267653882504, 0.023150436580181122, 0.02104891836643219, 0.057370711117982864, -0.03551747277379036, 0.058615028858184814, 0.0031419042497873306, -0.01850617676973343, -0.028261234983801842, -0.0037466592621058226, -0.01937803253531456, 0.0038463622331619263, -0.04885229840874672, -0.05676478147506714, -0.005747863091528416, -0.04054305702447891, -0.005612784996628761, 0.023597732186317444, -0.01017568726092577, -0.029393499717116356, 0.012453107163310051, 0.07057730853557587, -0.06731429696083069, 0.03275936096906662, -0.01699736900627613, 0.04647216200828552, -0.013211367651820183, -0.022009674459695816, -0.0014341920614242554, 0.011115780100226402, 0.011688841506838799, 0.015388261526823044, 0.03616204857826233, -0.049346718937158585, -0.02699017897248268, -0.02362176403403282, 0.006026746705174446, 0.0510861873626709, -0.02907499298453331, 0.03903376683592796 ]
[ -0.08411746472120285, 0.013731907121837139, -0.03504302725195885, -0.024107662960886955, 0.03719983622431755, -0.03195629268884659, 0.026534730568528175, 0.035832881927490234, 0.001798340817913413, -0.009631121531128883, -0.000005377047727961326, -0.03640644997358322, -0.002289203926920891, 0.0313495509326458, 0.04109237343072891, 0.006805528420954943, 0.006567876785993576, -0.03020143322646618, -0.041480857878923416, 0.038169194012880325, 0.044387299567461014, -0.02021333947777748, -0.04422657936811447, -0.0464189276099205, 0.04783216863870621, 0.04316490888595581, 0.01643369160592556, -0.043887194246053696, 0.001210846472531557, -0.2037084698677063, -0.028505884110927582, 0.005220575258135796, 0.04690144211053848, -0.031776607036590576, -0.037740904837846756, 0.04799922555685043, 0.03937981277704239, 0.03400829806923866, -0.023649143055081367, 0.07252401113510132, 0.027120443060994148, 0.043191034346818924, -0.06638839840888977, -0.04503987357020378, 0.0010777909774333239, -0.009412452578544617, -0.009461646899580956, -0.06599856913089752, -0.005780909676104784, 0.02910802699625492, -0.0771467536687851, -0.03151465579867363, -0.015271288342773914, -0.01836017146706581, -0.03220946341753006, 0.03423115983605385, 0.029611319303512573, 0.05764997377991676, 0.005810901056975126, 0.021438520401716232, 0.03579454496502876, -0.020078010857105255, -0.09765952080488205, 0.08627364784479141, 0.004739837255328894, 0.05051713064312935, -0.00040529589750804007, -0.022726088762283325, 0.011321181431412697, 0.10504705458879471, 0.025320375338196754, -0.019962472841143608, -0.020812494680285454, 0.05804644152522087, 0.021570241078734398, -0.03357065096497536, -0.02229251340031624, 0.019937768578529358, 0.03547459840774536, -0.03481822460889816, -0.0729963555932045, -0.042079608887434006, 0.031609658151865005, -0.03651248663663864, -0.03684905171394348, 0.017447102814912796, 0.011319885030388832, 0.023450758308172226, 0.024896252900362015, 0.05269837751984596, 0.0834137350320816, 0.032303549349308014, 0.0506824254989624, 0.009531160816550255, -0.10097585618495941, -0.014046144671738148, -0.028324177488684654, 0.007195578888058662, -0.02275579236447811, 0.4004916846752167, -0.012315649539232254, -0.019352180883288383, 0.07332710921764374, 0.010575715452432632, -0.03961697220802307, -0.0022024032659828663, 0.01163350511342287, -0.0670994371175766, 0.0035553202033042908, -0.0670076236128807, -0.037840135395526886, -0.03280720114707947, 0.04662895202636719, -0.04614948108792305, 0.0016388936201110482, 0.03396504372358322, 0.030176617205142975, 0.0251933541148901, 0.012798912823200226, 0.006441527511924505, 0.01877780631184578, 0.01162372063845396, 0.013277145102620125, 0.026464471593499184, 0.008168774656951427, -0.005523471161723137, 0.011118697002530098, 0.03664064034819603, 0.0492442324757576, 0.022877128794789314, 0.05959024280309677, -0.03207482770085335, -0.11766146123409271, -0.021090514957904816, 0.0064768241718411446, 0.03830495849251747, 0.04290275648236275, -0.03353442624211311, 0.032347679138183594, 0.014530058018863201, 0.004483287688344717, 0.001763432170264423, 0.01025084313005209, -0.027000457048416138, -0.05309847742319107, 0.11351630091667175, 0.006187584716826677, -0.040070489048957825, -0.004334474913775921, -0.054193295538425446, 0.008717716671526432, 0.05007900670170784, 0.017613010480999947, -0.0500313863158226, 0.011835617013275623, 0.018194865435361862, 0.07540854811668396, -0.008167608641088009, -0.061547406017780304, -0.0034671283792704344, -0.07526081800460815, 0.017248691990971565, -0.05978100374341011, 0.059231843799352646, 0.031378429383039474, -0.04751318320631981, -0.010732901282608509, -0.03288990259170532, -0.003365478478372097, -0.05575144663453102, -0.009649770334362984, 0.032800234854221344, -0.03163222223520279, -0.0020321542397141457, 0.06409364193677902, -0.010343289002776146, -0.02885948121547699, -0.024481363594532013, 0.016262909397482872, 0.022849980741739273, 0.00794532522559166, 0.0212731771171093, -0.057138338685035706, 0.026005150750279427, -0.041730064898729324, -0.1201481893658638, -0.06444501131772995, -0.003388409037142992, -0.02054419368505478, 0.006139295641332865, -0.015430118888616562, -0.035257454961538315, -0.03235423192381859, 0.08400456607341766, -0.03507976979017258, -0.04969731345772743, 0.029638532549142838, -0.013210024684667587, -0.012887148186564445, -0.0004778119910042733, 0.03550714626908302, 0.048782505095005035, 0.011971721425652504, 0.03474467620253563, -0.04824047163128853, -0.00989754032343626, 0.03358519822359085, -0.06901270151138306, 0.038799189031124115, 0.005991056561470032, -0.05056116729974747, -0.005676934029906988, -0.020550603047013283, 0.03030005656182766, -0.01274462603032589, -0.03610219433903694, 0.022192666307091713, 0.01938001997768879, 0.029464008286595345, -0.016323937103152275, -0.04037012532353401, -0.05087912455201149, 0.028369387611746788, -0.34979385137557983, -0.026773683726787567, -0.03804610297083855, -0.03924769535660744, 0.012669816613197327, -0.029559168964624405, 0.0111638642847538, -0.041145142167806625, -0.046378154307603836, -0.01859145425260067, 0.04692788049578667, -0.038554269820451736, -0.0010232885833829641, -0.06128203868865967, -0.009798696264624596, 0.005816501099616289, -0.04521564394235611, -0.04894515126943588, -0.04422171413898468, 0.0357414074242115, -0.0018949982477352023, 0.010109802708029747, 0.022237135097384453, -0.07600082457065582, -0.004811997525393963, -0.012435742653906345, 0.08157166838645935, -0.03227905184030533, 0.06614967435598373, -0.03315826877951622, 0.06345865875482559, -0.010526667349040508, -0.01646389067173004, -0.04863886162638664, -0.010163167491555214, -0.012908099219202995, -0.0410451740026474, -0.027413489297032356, 0.03801173344254494, -0.019984927028417587, -0.05786071717739105, 0.010046095587313175, -0.04924697056412697, -0.03748680278658867, -0.038405437022447586, 0.019907033070921898, -0.022542189806699753, -0.03283315151929855, 0.018861453980207443, 0.07297319173812866, -0.0031709028407931328, -0.022320065647363663, 0.031784359365701675, 0.008051909506320953, 0.013070410117506981, -0.04223699867725372, -0.05764027684926987, -0.004340622574090958, 0.0023122825659811497, 0.02106139063835144, 0.029640022665262222, 0.0759679302573204, 0.0378715954720974, -0.021908923983573914, 0.012673943303525448, 0.0020488433074206114, -0.011278246529400349, -0.0006321401451714337, 0.01190707366913557, -0.06046389043331146, -0.04390532523393631, 0.07127594202756882, -0.019786931574344635, -0.003914961591362953, 0.035057879984378815, 0.07125692069530487, -0.027817286550998688, 0.018638961017131805, 0.033161625266075134, 0.001961561618372798, 0.012949183583259583, 0.018967291340231895, 0.045627959072589874, -0.0056233336217701435, -0.03466133400797844, 0.0652722492814064, -0.002348068868741393, -0.014760956168174744, 0.029234401881694794, -0.014190702699124813, -0.03133997693657875, -0.004718867130577564, -0.005260956007987261, -0.04480002075433731, 0.07037588208913803, 0.014549575746059418, -0.22117497026920319, 0.016467658802866936, 0.0680428296327591, 0.04163076728582382, -0.01796879805624485, 0.03584158048033714, 0.0544818677008152, -0.062212325632572174, 0.045707665383815765, 0.009513613767921925, 0.034966420382261276, 0.04933746159076691, -0.0009165426599793136, 0.008191163651645184, 0.04378120228648186, -0.0382036454975605, 0.008163596503436565, 0.01808038353919983, 0.045115914195775986, -0.027321917936205864, 0.03927500918507576, 0.0034353851806372404, 0.1969599723815918, 0.014568667858839035, 0.02617342583835125, 0.014196403324604034, 0.055020883679389954, 0.01831415481865406, 0.07502046972513199, 0.006239174399524927, 0.02361508458852768, -0.014758932404220104, 0.10330434143543243, 0.014977212995290756, 0.04277593269944191, -0.0925176814198494, -0.01903240568935871, 0.04997049644589424, 0.019017601385712624, -0.018887247890233994, -0.04004684463143349, 0.027359137311577797, -0.03504263982176781, 0.02579423040151596, 0.11622779071331024, 0.008518731221556664, -0.03586043789982796, -0.023681487888097763, -0.06561465561389923, 0.021116914227604866, -0.02053227648139, -0.017638903111219406, 0.015124456025660038, -0.04725424200296402, 0.008512064814567566, 0.07512082159519196, 0.0037801882717758417, -0.024116668850183487, -0.04624372720718384, 0.0561971440911293, 0.009705684147775173, 0.034325551241636276, 0.08016156405210495, 0.004388210829347372, 0.03366899862885475 ]
[ 0.015075048431754112, 0.03506820648908615, -0.021490713581442833, 0.028746623545885086, -0.04323314130306244, 0.017865054309368134, -0.004286479204893112, 0.010764692910015583, 0.007508749607950449, -0.002540480811148882, -0.011776167899370193, -0.005468140356242657, 0.00020986613526474684, -0.010982953011989594, 0.03897938132286072, 0.002156608970835805, 0.009588459506630898, -0.03248705342411995, 0.032817110419273376, 0.0061731962487101555, -0.01744302175939083, 0.04982196167111397, 0.032536253333091736, -0.027417205274105072, -0.06135745346546173, 0.027370022609829903, -0.03539223596453667, -0.06500589847564697, 0.0025253877975046635, -0.12739308178424835, -0.037863750010728836, -0.02157626673579216, -0.017556458711624146, 0.01282708439975977, -0.000156178415636532, -0.004333864897489548, 0.02963249944150448, 0.029908180236816406, 0.021056097000837326, -0.01884709671139717, -0.05679008737206459, 0.027423538267612457, -0.07056639343500137, -0.020961066707968712, -0.012218949384987354, 0.010994690470397472, -0.003521276405081153, -0.036414727568626404, 0.013913827016949654, 0.009703204035758972, -0.011006779968738556, 0.019744878634810448, -0.02827492542564869, 0.026260970160365105, 0.04601864516735077, -0.010582644492387772, -0.007153477054089308, -0.05716557800769806, 0.01427318062633276, -0.006168288644403219, -0.017365841194987297, -0.019052008166909218, -0.03683900460600853, -0.025327494367957115, 0.005617164075374603, -0.04747927188873291, 0.020756185054779053, 0.0005181985907256603, 0.008427415043115616, -0.014139492064714432, -0.030963007360696793, 0.026509955525398254, 0.0036505963653326035, -0.028339805081486702, 0.014472917653620243, 0.014677849598228931, 0.024170761927962303, -0.05210210755467415, -0.008250950835645199, 0.00022271314810495824, -0.052517738193273544, 0.018418746069073677, -0.006552570499479771, 0.007085365243256092, 0.025688568130135536, -0.043736688792705536, -0.017019227147102356, -0.04239470511674881, 0.025803161785006523, 0.024031322449445724, -0.04755859822034836, 0.00213302718475461, 0.01065081637352705, 0.012335523962974548, -0.058701567351818085, 0.015142443589866161, 0.010674163699150085, -0.008230989798903465, -0.012970243580639362, 0.8287065029144287, 0.005223069805651903, 0.07148715853691101, 0.04091700538992882, -0.02804736979305744, -0.02406524494290352, 0.011271691881120205, -0.03961619362235069, 0.0007746482151560485, -0.002135560382157564, -0.03294271603226662, 0.006907241884618998, -0.01767285354435444, 0.04221584275364876, 0.03166757524013519, -0.015265063382685184, 0.03251427784562111, -0.00224596937187016, -0.002600709907710552, 0.005705108400434256, 0.011685517616569996, 0.05568480119109154, -0.016867442056536674, 0.02985207550227642, 0.01927492395043373, 0.03529946133494377, -0.14456284046173096, -0.020323073491454124, -8.868719902554265e-33, 0.06947626173496246, -0.017591280862689018, 0.03719177842140198, 0.03440580889582634, 0.01097366027534008, -0.03588561341166496, 0.014051901176571846, 0.018408475443720818, 0.0271987933665514, -0.03831268846988678, 0.009991370141506195, -0.002228014636784792, -0.0013550725998356938, -0.010181018151342869, 0.04165954887866974, -0.020505458116531372, 0.007810370530933142, 0.019537249580025673, 0.019176768139004707, 0.004422015510499477, -0.004695022013038397, 0.03868357092142105, 0.05445210635662079, -0.035430870950222015, 0.01819201186299324, 0.026939870789647102, 0.0006466539925895631, 0.024822814390063286, -0.035734329372644424, -0.038645461201667786, 0.0029681462328881025, 0.03347877785563469, 0.010936086066067219, 0.006683459971100092, 0.05893251672387123, 0.0059736487455666065, 0.005622288212180138, -0.01864011399447918, -0.00046502292389050126, -0.06993495672941208, -0.028972003608942032, 0.0035679363645613194, -0.03021555207669735, 0.007239995989948511, -0.03851747512817383, -0.04736456647515297, -0.009894220158457756, 0.04329884424805641, 0.020619360730051994, 0.07412701100111008, 0.03433042764663696, 0.007456520572304726, -0.008478827774524689, -0.00945337675511837, -0.008575459942221642, 0.008849484845995903, -0.018656600266695023, -0.03484122455120087, 0.016913140192627907, 0.0425589419901371, -0.004608655348420143, 0.0018123127520084381, 0.015137295238673687, 0.04341303929686546, 0.0270246434956789, -0.03344438597559929, 0.006164804566651583, 0.0144754434004426, -0.020046476274728775, -0.03434000164270401, -0.017990371212363243, 0.029438059777021408, 0.01095153484493494, -0.0006279664812609553, -0.010651112534105778, -0.032799843698740005, -0.016580814495682716, -0.05490235611796379, -0.03572341054677963, 0.01159745268523693, 0.05343543365597725, -0.00896525289863348, -0.012045533396303654, -0.009236035868525505, 0.004431851673871279, 0.006939399521797895, 0.036543916910886765, 0.0003176675527356565, 0.03588750585913658, -0.024346033111214638, 0.008968218229711056, 0.038959961384534836, -0.02206338196992874, -0.014339091256260872, -0.005624690093100071, 8.134082218380399e-33, -0.010139095596969128, -0.022153452038764954, -0.01868371106684208, 0.009246421977877617, 0.017273200675845146, -0.025737185031175613, 0.022736143320798874, -0.017342833802103996, -0.031200574710965157, 0.042059652507305145, -0.02986171282827854, -0.004154162015765905, -0.028345877304673195, 0.007786547765135765, 0.045517921447753906, -0.009160528890788555, 0.00949867907911539, -0.04719770699739456, 0.0014276824658736587, 0.0011764831142500043, 0.008199883624911308, -0.016727782785892487, 0.02178596705198288, -0.00473843002691865, -0.0030777130741626024, 0.03532097861170769, -0.04204671084880829, -0.009550612419843674, -0.02205275371670723, -0.005475836805999279, 0.023196803405880928, 0.004052520729601383, 0.025681214407086372, -0.05160016566514969, 0.022385040298104286, -0.010154536925256252, 0.004814860876649618, -0.0018057413399219513, 0.059375036507844925, 0.011301296763122082, 0.018522188067436218, 0.0007417527376674116, 0.01643553376197815, -0.014836224727332592, 0.028978537768125534, -0.026108000427484512, 0.014245274476706982, -0.0038886077236384153, 0.03276994451880455, 0.040909912437200546, 0.014561150223016739, -0.015625476837158203, -0.0012359500396996737, 0.029928430914878845, 0.011058488860726357, -0.023912034928798676, -0.017688067629933357, -0.044745441526174545, 0.013895745389163494, -0.022149525582790375, -0.010465461760759354, 0.019867267459630966, -0.010877180844545364, -0.009961327537894249, -0.02216808870434761, -0.006441184785217047, -0.005170815158635378, -0.03492940962314606, -0.022928860038518906, 0.0027143373154103756, -0.022401463240385056, -0.02312447875738144, -0.02127809263765812, 0.02177576534450054, 0.010789910331368446, -0.0442628338932991, -0.00692326994612813, 0.0013649521861225367, -0.019901303574442863, 0.014826809987425804, 0.017406385391950607, -0.01939263939857483, 0.020014174282550812, -0.024376051500439644, -0.012814793735742569, 0.023467132821679115, 0.013966427184641361, -0.005183614324778318, -0.03367092087864876, -0.004464640747755766, -0.008485469967126846, -0.015255874022841454, 0.02285652793943882, 0.02959800884127617, 0.014539743773639202, -1.3703885137772431e-8, -0.06505797058343887, 0.003599104005843401, -0.02184765785932541, 0.02200809121131897, 0.03842519596219063, -0.00048077217070385814, -0.023106100037693977, -0.026152344420552254, -0.017472250387072563, -0.01692356914281845, 0.0034567215479910374, 0.00503832520917058, 0.02763167768716812, -0.010135314427316189, 0.03330123424530029, -0.04367421567440033, -0.007804377004504204, 0.01469431072473526, 0.013336357660591602, 0.02215750887989998, -0.011066894046962261, 0.04939045384526253, -0.014074728824198246, 0.007583551574498415, 0.017321040853857994, 0.018460048362612724, 0.024691615253686905, -0.0881911963224411, -0.01377115584909916, 0.029890378937125206, 0.02048678696155548, -0.016470063477754593, -0.0008992877556011081, -0.021244743838906288, -0.03871969133615494, -0.05248397961258888, 0.032304514199495316, 0.022323185577988625, -0.027320386841893196, -0.01413046382367611, -0.027513878419995308, 0.007027118932455778, -0.0033797991927713156, -0.02210216596722603, -0.007353468798100948, -0.01639469340443611, -0.04218580573797226, 0.013569281436502934, 0.021256424486637115, 0.02478860691189766, 0.007404061499983072, 0.036228377372026443, 0.07161685824394226, 0.00002247925294796005, 0.008557275868952274, 0.03986651077866554, 0.039338551461696625, -0.03737204894423485, -0.015499562956392765, 0.0166502483189106, 0.033459559082984924, -0.016901489347219467, -0.054281558841466904, 0.006867173593491316 ]
functional-collection-parameters-a-different-way-of-thinking-about-collections
https://markhneedham.com/blog/2009/06/18/functional-collection-parameters-a-different-way-of-thinking-about-collections
false
2009-06-27 22:55:02
F#: More thoughts on the forward & application operators
[ "f" ]
[ "fsharp" ]
I've been spending a bit of time reading through the http://code.google.com/p/fake/source/checkout[Fake source code] to try and understand how it works and one of the things which I quite like about it is the way the authors have made use of different F# operators to make expressions easier to read by reducing the number of brackets that need to be written and reordering the functions/values depending on the particular context. One which I hadn't seen before is the http://codebetter.com/blogs/matthew.podwysocki/archive/2009/04/27/functional-c-reverse-functional-composition.aspx[application operator] which is the opposite of the http://www.markhneedham.com/blog/2009/01/06/f-forward-operator/[forward operator] which I have previously written about. [cols=2*] |=== | The application operator (< | ) applies a value to a function, the function being on the left and the value on the right. |=== It is used in http://code.google.com/p/fake/source/browse/trunk/src/app/FakeLib/FileHelper.fs[FileHelper.fs] as part of the DeleteFile function: [source,ocaml] ---- let DeleteFile x = let file = new FileInfo(x) if file.Exists then log <| sprintf "Deleting %s" file.FullName file.Delete() else log <| sprintf "%s does not exist." file.FullName ---- The log function is of type 'string \-> unit' and the sprintf call helps create that string. Without the application operator we would have to put in extra parentheses: [source,ocaml] ---- log (sprintf "Deleting %s" file.FullName) ---- The code also makes use of the forward operator which I think panders more to the object oriented style of programming whereby you have have some data/object and then apply a method/function to that. I find that code written in this way reads more intuitively to me at the moment. One example of this is the SetDirReadOnly function in FileHelper.fs [source,ocaml] ---- let rec SetDirReadOnly readOnly (dir:DirectoryInfo) = dir.GetDirectories() |> Seq.iter (fun dir -> SetDirReadOnly readOnly dir setDirectoryReadOnly readOnly dir) dir.GetFiles() |> Seq.iter (fun file -> file.IsReadOnly <- readOnly) ---- In this case if we didn't have the forward operator then in theory we should be able to just put the 'dir.GetFiles()' can be passed as the second argument to 'Seq.iter': [source,ocaml] ---- let rec SetDirReadOnly readOnly (dir:DirectoryInfo) = dir.GetDirectories() |> Seq.iter (fun dir -> SetDirReadOnly readOnly dir setDirectoryReadOnly readOnly dir) Seq.iter (fun file -> file.IsReadOnly <- readOnly) dir.GetFiles() ---- In fact what we get is a compilation error: [source,text] ---- Successive arguments should be separated by spaces or tupled, and arguments involving function or method applications should be parenthesized. ---- In this case we need to paranthesise the 'dir.GetFiles()' method call: [source,ocaml] ---- let rec SetDirReadOnly readOnly (dir:DirectoryInfo) = dir.GetDirectories() |> Seq.iter (fun dir -> SetDirReadOnly readOnly dir setDirectoryReadOnly readOnly dir) Seq.iter (fun file -> file.IsReadOnly <- readOnly) (dir.GetFiles()) ---- Which leads to another compilation error: [source,text] ---- Lookup on object of indeterminate type based on information prior to this program point. A type annotation may be needed prior to this program point to constrain the type of the object. This may allow the lookup to be resolved ---- In this case what we're being told is that the compiler is unable to work out the type of 'file' in the function being passed to 'Seq.iter'. We can fix this by specifically stating its type: [source,ocaml] ---- let rec SetDirReadOnly readOnly (dir:DirectoryInfo) = dir.GetDirectories() |> Seq.iter (fun dir -> SetDirReadOnly readOnly dir setDirectoryReadOnly readOnly dir) Seq.iter (fun (file:FileInfo) -> file.IsReadOnly <- readOnly) (dir.GetFiles()) ---- It works but it seems to miss the point of getting the F# compiler to infer which types you're talking about - the forward operator simplifies the code a lot. I also think the code is more readable having 'files' at the beginning as it seems more obvious that the function is being applied to the sequence of files when written this way. These operators are pretty cool and I've found it quite useful to look at the http://research.microsoft.com/en-us/um/cambridge/projects/fsharp/manual/FSharp.Core/Microsoft.FSharp.Core.Operators.html[full list of the F# operators available on the Microsoft Research website] as there may well be even more built in functions that can help simplify our code further.
null
null
[ 0.0016199751989915967, 0.016211070120334625, -0.011961843818426132, 0.022469859570264816, 0.0953918993473053, 0.023110533133149147, 0.008770604617893696, 0.04337640479207039, 0.0109220240265131, -0.011839891783893108, -0.034138817340135574, -0.002798686735332012, -0.09319034963846207, -0.0005672713741660118, -0.020135700702667236, 0.07242456823587418, 0.07982078194618225, -0.030017325654625893, 0.04869019240140915, -0.022839341312646866, 0.008983644656836987, 0.06520632654428482, -0.01189995277673006, 0.023555545136332512, 0.016475388780236244, 0.022971179336309433, 0.01370713859796524, 0.016827702522277832, -0.0491633377969265, -0.0014372756704688072, 0.04757509008049965, 0.0395871065557003, 0.006744622718542814, -0.01375166792422533, 0.006358587183058262, 0.005134106148034334, -0.0010868243407458067, 0.006363153923302889, -0.01497658807784319, 0.0651177167892456, -0.05515963211655617, 0.012307434342801571, 0.011083231307566166, 0.006685309112071991, -0.06254734843969345, -0.00674216216430068, -0.05114218592643738, 0.0041445777751505375, -0.020404113456606865, 0.0018104829359799623, -0.03533462435007095, 0.027343804016709328, -0.026588860899209976, -0.02017403580248356, -0.016271671280264854, 0.07300227880477905, 0.02281695418059826, -0.05980042368173599, 0.018940400332212448, -0.05202759802341461, -0.0007029371336102486, -0.004278856795281172, 0.0056451307609677315, 0.04762100428342819, 0.029986673966050148, -0.016938472166657448, -0.02284541167318821, 0.027476046234369278, -0.032288938760757446, -0.054739534854888916, 0.008673543110489845, 0.014832695946097374, -0.039633482694625854, -0.018797175958752632, 0.003986295312643051, -0.014723335392773151, 0.0046312445774674416, 0.05910572037100792, 0.00712868757545948, 0.05480979382991791, -0.006605640985071659, 0.033551767468452454, 0.040648434311151505, 0.019734375178813934, 0.013704575598239899, -0.00979966577142477, -0.02859310619533062, 0.008966454304754734, -0.020271731540560722, 0.05613688752055168, -0.0026810176204890013, -0.05640612170100212, -0.006430633366107941, 0.02422967553138733, 0.020075013861060143, 0.028913505375385284, 0.02021206170320511, -0.01894744671881199, 0.001879590330645442, -0.0157422237098217, -0.06283596903085709, -0.025844592601060867, 0.023934008553624153, -0.000023823491574148647, -0.06684982776641846, -0.0026797682512551546, -0.030525511130690575, -0.016435399651527405, 0.01674618571996689, 0.0066261678002774715, -0.042906321585178375, 0.025916513055562973, -0.016502421349287033, 0.009086324833333492, -0.08579495549201965, 0.04232264310121536, -0.015105800703167915, -0.028233330696821213, -0.0025626407004892826, 0.018788307905197144, 0.06182394549250603, 0.033570606261491776, -0.01487398985773325, 0.06234940513968468, 0.0352059043943882, 0.013365842401981354, -0.006577424239367247, 0.06627507507801056, -0.01664036512374878, -0.04800748452544212, -0.0426238588988781, 0.04517345502972603, -0.025808611884713173, -0.01417763251811266, -0.010163620114326477, -0.013715765438973904, -0.04296654462814331, -0.02908388152718544, 0.05881594866514206, 0.04760042950510979, -0.0026396699249744415, -0.040777191519737244, -0.011470026336610317, -0.05544230714440346, 0.03560272231698036, -0.0015594316646456718, 0.0004628042515832931, -0.014876159839332104, -0.014327741228044033, 0.012273038737475872, 0.01611643098294735, 0.02428428828716278, 0.06559982150793076, -0.036747585982084274, 0.005220144987106323, 0.07984848320484161, 0.037775564938783646, 0.008383174426853657, 0.012752730399370193, 0.0019335756078362465, 0.07582145929336548, 0.03691696375608444, -0.029490966349840164, 0.04778437688946724, 0.008243147283792496, 0.012583990581333637, 0.015181506983935833, 0.06265640258789062, -0.03518693149089813, -0.015954647213220596, -0.0496365986764431, -0.0250207781791687, 0.09464256465435028, -0.028775719925761223, -0.030499685555696487, 0.015152113512158394, 0.06861191242933273, 0.010342549532651901, 0.03456355631351471, 0.003888203762471676, -0.06990072131156921, 0.053385715931653976, 0.007850577123463154, 0.01757146418094635, -0.009448563680052757, 0.021036911755800247, 0.061945345252752304, 0.009798308834433556, 0.013733398169279099, 0.030609717592597008, -0.06287460774183273, -0.09367931634187698, -0.02924366109073162, -0.02484433725476265, 0.08866921812295914, -0.0349825918674469, 0.0018844668520614505, 0.060903407633304596, 0.027930159121751785, 0.03761059045791626, 0.03050842694938183, -0.01374362874776125, 0.003953756298869848, 0.0031225879210978746, -0.04479558765888214, 0.04128200560808182, 0.02960158698260784, -0.016642222180962563, -0.03676667809486389, 0.022754136472940445, -0.00137341080699116, 0.002364420099183917, 0.03324185684323311, -0.022818883880972862, 0.038754403591156006, 0.030201876536011696, 0.029605764895677567, -0.03820853680372238, 0.03562646731734276, -0.05436728149652481, 0.00017402491357643157, 0.028089644387364388, -0.01625589281320572, 0.001462807529605925, 0.013251862488687038, 0.13334278762340546, 0.07937707006931305, -0.04955977946519852, -0.05010388791561127, 0.00737063167616725, 0.004172904416918755, -0.06733041256666183, 0.007043921854346991, -0.013214499689638615, 0.0046885255724191666, 0.007248464040458202, -0.012999080121517181, 0.021180955693125725, 0.02938798815011978, -0.025248486548662186, 0.006978771183639765, 0.058441367000341415, -0.026462670415639877, 0.03296917304396629, -0.011291777715086937, -0.04872404783964157, 0.02188648283481598, -0.01941130869090557, -0.04577147588133812, -0.019585993140935898, 0.035488471388816833, -0.011162789538502693, 0.053948353976011276, -0.02797812968492508, -0.01679059863090515, -0.03185422345995903, -0.044950030744075775, 0.030449185520410538, 0.03724728152155876, 0.04269390553236008, -0.007575443014502525, 0.032983068376779556, -0.011403968557715416, 0.009094798937439919, -0.031725794076919556, -0.030336501076817513, -0.03160560503602028, 0.011008734814822674, 0.0212145633995533, 0.06022632494568825, -0.004428595770150423, 0.017697589471936226, 0.003848913824185729, 0.026689397171139717, -0.007337161339819431, -0.010324479080736637, 0.026180719956755638, -0.0105854207649827, -0.04644584283232689, -0.03743641451001167, -0.03794727474451065, 0.05350806191563606, -0.03045019879937172, -0.017671041190624237, -0.009965573437511921, -0.052199430763721466, 0.0515960194170475, -0.055219486355781555, -0.05900082737207413, -0.00300059886649251, 0.014051188714802265, 0.014721262268722057, -0.018116401508450508, 0.0031943891663104296, 0.0644058883190155, 0.012893632054328918, 0.01720457710325718, 0.010356223210692406, 0.0035619810223579407, 0.016584930941462517, 0.015946807339787483, 0.0027269450947642326, 0.04700750112533569, -0.01243295893073082, -0.00009456284897169098, -0.031941067427396774, 0.009241287596523762, -0.00017607033078093082, -0.2720624804496765, 0.04618930444121361, -0.032700732350349426, -0.03797968104481697, 0.027348633855581284, -0.015418050810694695, -0.012471462599933147, -0.051308050751686096, -0.01579655334353447, 0.03579596057534218, -0.02328023687005043, -0.03917872533202171, -0.029619017615914345, 0.01734250970184803, -0.025348685681819916, -0.0040870909579098225, -0.00954689085483551, -0.04439525306224823, 0.010870092548429966, 0.0576295480132103, -0.02990948036313057, -0.05683399736881256, 0.04436379298567772, 0.03013000451028347, 0.0470280647277832, 0.036213748157024384, -0.09992855787277222, 0.038115400820970535, -0.025749554857611656, -0.0020219101570546627, -0.01250480953603983, -0.01186856348067522, 0.02180475927889347, -0.007639069110155106, -0.025178467854857445, -0.02407120168209076, 0.004986106418073177, 0.01644940674304962, -0.00933852232992649, 0.01376025564968586, -0.03161882609128952, -0.01834012009203434, -0.014898771420121193, 0.009558962658047676, 0.08218274265527725, -0.011761662550270557, -0.08643101155757904, -0.01297549158334732, -0.017468513920903206, 0.06891719251871109, -0.04276338964700699, -0.030492886900901794, -0.015745297074317932, 0.05425012856721878, -0.011980516836047173, -0.01640203595161438, 0.008047578856348991, -0.039437416940927505, -0.03755456209182739, -0.03788706660270691, -0.01853531040251255, -0.037437304854393005, -0.0024831013288348913, -0.03262866660952568, -0.024038147181272507, -0.05745241418480873, -0.06775403022766113, -0.0075495182536542416, 0.08064325898885727, 0.015180242247879505, -0.012473332695662975, 0.024739455431699753, 0.013612667098641396, -0.1146942749619484, -0.040203604847192764, -0.03060641884803772, -0.051034145057201385, -0.004507037345319986, 0.02967936359345913, 0.055978816002607346, -0.039344754070043564, -0.04418911784887314, 0.043012212961912155, 0.030379926785826683, 0.03010849840939045, -0.03384268283843994, 0.028914539143443108, 0.003027557395398617, -0.0391659177839756, -0.005216360557824373, 0.07653207331895828, -0.005511490162461996, -0.01079544797539711, -0.024046914651989937, 0.02441982924938202, 0.020003262907266617, 0.041196633130311966, -0.00642395718023181, 0.03528675064444542, 0.022520996630191803, 0.019908592104911804, -0.04643937200307846, 0.013901743106544018, -0.05087163299322128, 0.004624601453542709, -0.0007496892940253019, -0.043073080480098724, 0.03780970349907875, 0.027754273265600204, 0.005872996523976326, -0.008273813873529434, -0.029075071215629578, 0.036325063556432724, -0.0554245226085186, -0.055127717554569244, -0.027027439326047897, 0.0009597831522114575, 0.016612328588962555, 0.04231204465031624, -0.02841056138277054, -0.03129617124795914, 0.004997744224965572, 0.01531284675002098, -0.011950703337788582, -0.0828850045800209, -0.037953827530145645, -0.010053725913167, 0.0012050805380567908, 0.015382329933345318, 0.02132027968764305, 0.003266635350883007, 0.050945576280355453, -0.0125961909070611, -0.0470060370862484, 0.030646059662103653, -0.010316113941371441, -0.0027074930258095264, -0.055147748440504074, -0.037567827850580215, -0.012453733943402767, 0.008670985698699951, -0.00961089413613081, 0.043135110288858414, 0.012850617989897728, 0.039852313697338104, 0.00045869420864619315, 0.02438223734498024, 0.004113561008125544, -0.007765090558677912, 0.007582566700875759, 0.0018191160634160042, -0.06845143437385559, 0.04799753054976463, -0.03834723308682442, -0.005916828755289316, -0.023094698786735535, 0.03151039779186249, -0.016589928418397903, -0.048236340284347534, -0.031695205718278885, 0.06513083726167679, -0.008012981154024601, -0.01681806705892086, -0.03888995945453644, -0.027036089450120926, 0.056847453117370605, -0.034006837755441666, 0.056286491453647614, -0.006650702562183142, 0.0070176804438233376, 0.004213410895317793, 0.029553821310400963, -0.0161241814494133, 0.004526467528194189, -0.019834322854876518, -0.010886033996939659, -0.017822295427322388, 0.03911295533180237, 0.03429551050066948, 0.024479752406477928, -0.021320611238479614, -0.029502149671316147, 0.004021767992526293, 0.02509247697889805, 0.04965126886963844, -0.009297865442931652, 0.004717866890132427, -0.01995954103767872, -0.03346595913171768, -0.013363064266741276, -0.05161809176206589, -0.013840774074196815, -0.024679994210600853, 0.02801985666155815, -0.0509081669151783, -0.08448626101016998, -0.0023187233600765467, 0.057953838258981705, -0.012592185288667679, -0.00519530987367034, 0.006927064619958401, -0.002632542047649622, -0.009923607110977173, -0.008735381998121738, 0.038160618394613266, -0.03988554701209068, 0.007355990819633007, 0.0029053580947220325, 0.028431326150894165, 0.04406075179576874, 0.01723814196884632, -0.04356223717331886, -0.013572933152318, -0.009480980224907398, -0.007393446285277605, -0.02163822390139103, -0.016064796596765518, -0.02765495330095291, -0.009405373595654964, -0.022305453196167946, -0.02091088704764843, -0.009408646263182163, -0.0324261449277401, 0.006097727455198765, -0.018466155976057053, 0.008502577431499958, -0.030821707099676132, 0.0032651147339493036, 0.04328970983624458, -0.028599657118320465, 0.011094437912106514, -0.04901164025068283, 0.03965096175670624, 0.05665094405412674, 0.00755426986142993, -0.005525744520127773, -0.054460249841213226, -0.013790423050522804, -0.037074871361255646, 0.050871919840574265, 0.008479610085487366, -0.015744512900710106, -0.0019785535987466574, 0.010420296341180801, -0.04016653075814247, 0.005764312576502562, -0.01991897076368332, -0.05153855308890343, 0.0227059219032526, 0.059606362134218216, 0.008147330954670906, 0.046546947211027145, -0.00070593087002635, 0.002619209699332714, 0.07718159258365631, -0.06251031160354614, -0.03201350197196007, -0.017093658447265625, -0.05936681479215622, 0.016458291560411453, 0.024036845192313194, 0.008689670823514462, -0.04538274183869362, 0.03411541134119034, 0.05827052891254425, 0.028141584247350693, 0.04255421832203865, 0.020126529037952423, 0.040407922118902206, -0.012817859649658203, -0.004514582920819521, -0.07973801344633102, 0.02465815655887127, 0.046868328005075455, 0.015947237610816956, -0.015817053616046906, -0.014787455089390278, -0.006740661337971687, 0.03946289047598839, -0.05174322798848152, -0.015410901047289371, 0.03837207704782486, 0.03669331595301628, -0.030800849199295044, 0.021111756563186646, -0.04175961762666702, 0.02766895294189453, 0.05123271048069, -0.029674822464585304, -0.0341545008122921, -0.032345954328775406, 0.04593511298298836, -0.014494949951767921, 0.009688207879662514, 0.0024190146941691637, -0.008295160718262196, 0.03757379576563835, 0.04557984694838524, -0.004781236406415701, 0.04733521118760109, -0.01765592396259308, 0.009768633171916008, 0.017937839031219482, -0.024153677746653557, -0.015984246507287025, 0.015240969136357307, -0.004312028642743826, -0.08543358743190765, 0.014458454214036465, 0.016990039497613907, -0.01691311039030552, -0.04516502842307091, 0.040723156183958054, 0.011166424490511417, 0.003980735316872597, -0.048306655138731, -0.007219444494694471, -0.04301435500383377, -0.015035008080303669, -0.011959759518504143, 0.007321028038859367, -0.05128438398241997, 0.06140471622347832, -0.0034323595464229584, -0.028809525072574615, 0.07642035186290741, -0.002130494685843587, -0.020017948001623154, -0.017537325620651245, 0.07498863339424133, 0.09172651171684265, 0.04385984316468239, 0.015354682691395283, 0.043940190225839615, -0.01077018678188324, -0.05644869804382324, 0.006996575277298689, -0.01642184518277645, 0.011553757824003696, -0.02635279670357704, 0.0013082129880785942, 0.09559036046266556, -0.0214968454092741, 0.06525636464357376, -0.029935322701931, 0.005602579098194838, -0.010740186087787151, 0.024030253291130066, 0.01637992262840271, 0.08154325187206268, 0.008008071221411228, 0.005173749756067991, -0.009476018138229847, -0.032604482024908066, 0.026335638016462326, -0.019016653299331665, -0.013425015844404697, 0.014127211645245552, 0.013744187541306019, 0.001096203806810081, 0.007711432874202728, 0.03569236397743225, 0.06076188012957573, -0.0329422727227211, 0.0026099691167473793, -0.006948201917111874, 0.01105310209095478, 0.010173600167036057, 0.0001359503366984427, -0.03422808274626732, -0.0269188042730093, 0.016938604414463043, -0.006599919870495796, -0.02974872663617134, -0.030954929068684578, -0.01637178473174572, 0.04510417580604553, -0.02742118388414383, 0.010117056779563427, 0.007993876934051514, -0.007996784523129463, -0.02562665566802025, -0.04334660619497299, -0.04630039632320404, -0.037201277911663055, -0.08282177150249481, -0.023957587778568268, 0.014095719903707504, -0.02112286351621151, -0.03508811816573143, -0.02892012894153595, -0.03741053119301796, -0.0340680368244648, 0.04891586676239967, -0.022248320281505585, -0.045927517116069794, 0.014276235364377499, 0.009535686112940311, 0.021265223622322083, 0.01888931728899479, 0.016698334366083145, -0.02210354059934616, -0.01970784366130829, -0.01222500391304493, -0.03332589194178581, 0.039471495896577835, -0.0007591017638333142, 0.007939738221466541, -0.08261915296316147, 0.025429408997297287, 0.015011911280453205, 0.004069330170750618, -0.08512137830257416, 0.016548097133636475, 0.0014701924519613385, -0.01824847050011158, 0.032993946224451065, -0.044070422649383545, -0.0024138635490089655, -0.023891279473900795, -0.0201252531260252, 0.009644707664847374, -0.010908647440373898, 0.07125513255596161, -0.03762946277856827, 0.0943833440542221, 0.006941660773009062, -0.019176477566361427, -0.027608148753643036, 0.006552199833095074, -0.01349532138556242, 0.013353751972317696, -0.025333641096949577, -0.030258620157837868, -0.003916453570127487, -0.05358662083745003, -0.027821838855743408, 0.0055268327705562115, -0.0372108593583107, -0.044322218745946884, 0.015506541356444359, 0.04114280641078949, -0.04818437993526459, 0.05724048614501953, -0.012367294169962406, 0.03887390345335007, -0.014364085160195827, -0.03725690022110939, 0.0028172703459858894, 0.03410641476511955, 0.030622918158769608, -0.0029728016816079617, 0.04597805067896843, -0.026908081024885178, -0.02183081954717636, 0.005249680019915104, 0.015053503215312958, 0.04202989116311073, -0.00517486035823822, 0.027536792680621147 ]
[ -0.11539646238088608, 0.01879727840423584, -0.042247623205184937, -0.0464499406516552, 0.052961114794015884, -0.04388691857457161, 0.018936092033982277, 0.011123331263661385, -0.00061423284932971, -0.02259436435997486, -0.007152953185141087, 0.0038661400321871042, -0.012464169412851334, -0.026063278317451477, 0.07236815989017487, -0.02516031078994274, -0.015149479731917381, -0.05579690635204315, -0.00529538094997406, -0.003445579670369625, 0.04985794797539711, -0.015332645736634731, -0.06015932559967041, -0.03893778473138809, 0.017671525478363037, 0.028535865247249603, 0.02216796949505806, -0.04030124843120575, -0.011208471842110157, -0.20742549002170563, 0.021834081038832664, 0.0035309642553329468, 0.03455901890993118, -0.042967721819877625, -0.009089970961213112, 0.02845328114926815, 0.019474782049655914, 0.027845265343785286, -0.011510570533573627, 0.0420197919011116, 0.0028331021312624216, 0.03234885632991791, -0.02232140302658081, 0.0002958748082164675, 0.030892686918377876, -0.017901664599776268, -0.04040095582604408, -0.02765689790248871, -0.023539157584309578, 0.02019527554512024, -0.03213179111480713, 0.02976326271891594, -0.0016598624642938375, 0.001183697022497654, 0.0008209530496969819, -0.0012210663408041, 0.0613403394818306, 0.057828161865472794, 0.015202049165964127, 0.02620166353881359, 0.0011533352080732584, -0.02400556392967701, -0.12317463010549545, 0.09172837436199188, 0.02675466053187847, 0.04419331252574921, 0.005149374715983868, -0.06018560007214546, -0.036690276116132736, 0.0970349982380867, -0.014877019450068474, -0.015565040521323681, -0.07157667726278305, 0.035458989441394806, 0.027662700042128563, -0.05387353524565697, 0.0030712264124304056, 0.03678172081708908, 0.008417454548180103, -0.034798987209796906, -0.04287801310420036, -0.041884031146764755, -0.016322670504450798, -0.012909980490803719, -0.04949241131544113, 0.02340967394411564, 0.029024627059698105, 0.04575248435139656, 0.03859183192253113, 0.03359842672944069, 0.05271940678358078, -0.013709957711398602, 0.08016020059585571, 0.013990859501063824, -0.055573876947164536, 0.01115092821419239, -0.014286848716437817, 0.04526400938630104, -0.02766036055982113, 0.41592106223106384, -0.04349801689386368, 0.0014720524195581675, 0.04304271563887596, 0.010946059599518776, 0.00606553116813302, 0.002378634409978986, 0.01722358539700508, -0.00941705983132124, 0.004020192660391331, -0.04734925925731659, 0.002134737791493535, 0.015157422050833702, 0.06504011154174805, -0.03709765896201134, 0.0044258651323616505, 0.014017936773598194, 0.02969973534345627, -0.005038650240749121, -0.004136005882173777, 0.019836563616991043, 0.0013768902281299233, -0.014233972877264023, -0.005534513387829065, 0.06054777652025223, 0.016236508265137672, -0.03215174004435539, 0.01942627690732479, 0.055974651128053665, 0.03275993838906288, 0.04268648475408554, 0.03411632776260376, -0.06211984530091286, -0.06824558973312378, -0.011434201151132584, 0.00620526447892189, 0.023948827758431435, 0.004558722488582134, -0.017968762665987015, -0.03180863708257675, 0.014720304869115353, -0.010651716962456703, 0.0031806642655283213, 0.026301806792616844, 0.008162745274603367, -0.03360112011432648, 0.10918761789798737, -0.01934136264026165, -0.031421542167663574, -0.009251020848751068, -0.03487621992826462, 0.003601787379011512, 0.05635228380560875, -0.015812885016202927, -0.03565996512770653, 0.019866615533828735, 0.014558261260390282, 0.0524846576154232, -0.024654388427734375, -0.05218512564897537, 0.0033192236442118883, -0.049318112432956696, -0.008919148705899715, -0.01442175917327404, 0.04910251125693321, 0.006878069136291742, -0.09927459061145782, -0.03980924189090729, 0.01803082600235939, 0.021555786952376366, -0.061378102749586105, 0.016514955088496208, -0.03695063665509224, -0.022706126794219017, -0.05922416225075722, 0.018071725964546204, -0.023060906678438187, -0.03415549546480179, -0.006895938888192177, 0.04762844368815422, 0.00577418552711606, 0.019911110401153564, 0.012545367702841759, -0.049884457141160965, -0.003183477558195591, -0.04339639097452164, -0.08794248849153519, -0.04011663794517517, -0.002282189903780818, -0.0171978622674942, 0.015763061121106148, -0.03802900016307831, -0.04263614863157272, -0.07627986371517181, 0.048759572207927704, -0.06451624631881714, -0.046967972069978714, -0.005968902260065079, -0.008476356975734234, -0.016873611137270927, -0.021441113203763962, 0.03508587181568146, 0.056495241820812225, -0.012828421778976917, 0.02763516828417778, -0.06388849765062332, 0.04625871777534485, 0.046531278640031815, -0.04651755094528198, 0.04116154462099075, 0.03672400861978531, -0.057464469224214554, -0.0005383185925893486, 0.005481882486492395, 0.014372080564498901, -0.00694503728300333, -0.07511305063962936, -0.014073952101171017, 0.022516418248414993, 0.024799931794404984, 0.0059709707275033, -0.04493628442287445, -0.0219107735902071, -0.017635414376854897, -0.35477134585380554, -0.03970884531736374, -0.035958193242549896, -0.013160118833184242, 0.017501622438430786, -0.08321986347436905, -0.0051871961914002895, -0.010880782268941402, -0.019622279331088066, 0.02321038767695427, 0.06283415853977203, -0.013526981696486473, 0.004429661203175783, -0.06387613713741302, 0.010131597518920898, 0.03909739479422569, -0.019271820783615112, -0.05758129432797432, -0.020098714157938957, 0.018341319635510445, -0.018844159319996834, 0.02971784584224224, -0.019108576700091362, -0.04029204323887825, 0.03428758308291435, -0.020018592476844788, 0.06251915544271469, 0.0067596277222037315, 0.12152428925037384, -0.030939966440200806, 0.043639086186885834, -0.013412709347903728, 0.03202367573976517, -0.05168770253658295, 0.01201481930911541, -0.02347308211028576, 0.005407925695180893, -0.01329005602747202, 0.06177913770079613, -0.000052034269174328074, -0.019621124491095543, -0.005620968993753195, -0.045175451785326004, -0.012526100501418114, -0.009381823241710663, 0.011306985281407833, -0.03222058340907097, -0.032214075326919556, 0.012485393323004246, 0.08774405717849731, 0.010933000594377518, -0.001150969648733735, 0.01981765404343605, 0.024348078295588493, 0.03609064966440201, -0.053038377314805984, -0.022258728742599487, -0.002696841489523649, -0.030636128038167953, -0.008495645597577095, 0.03692731261253357, 0.018443582579493523, 0.03365923464298248, -0.027413593605160713, 0.020147772505879402, 0.01975046470761299, -0.004413938615471125, -0.028233380988240242, 0.09057974815368652, -0.04161631315946579, -0.01973976194858551, 0.12677446007728577, -0.019338851794600487, -0.00453562568873167, 0.045169588178396225, 0.030778247863054276, 0.003180961823090911, 0.001756950980052352, 0.016857773065567017, -0.020470131188631058, 0.03424603119492531, 0.03620380535721779, 0.044487062841653824, -0.062282904982566833, -0.004256035666912794, 0.017825879156589508, -0.014626428484916687, -0.018961312249302864, 0.021914521232247353, -0.008800803683698177, -0.027843954041600227, -0.0016950152348726988, 0.0037064801435917616, -0.07270552963018417, 0.06453558057546616, -0.018280893564224243, -0.27580514550209045, -0.029621083289384842, 0.07626193016767502, 0.055013176053762436, -0.013826902024447918, 0.022829322144389153, 0.050326719880104065, -0.05877180024981499, -0.018327942118048668, 0.006716585718095303, -0.019416267052292824, 0.034903548657894135, 0.005515402648597956, -0.021365493535995483, 0.04692874848842621, -0.009674306027591228, 0.03849988803267479, 0.006058007013052702, 0.025043722242116928, 0.018544035032391548, 0.017162611708045006, -0.032046254724264145, 0.16866308450698853, -0.007127199321985245, 0.03834877535700798, 0.034596025943756104, 0.011708698235452175, 0.01234655175358057, 0.09732305258512497, -0.005678234156221151, 0.048210058361291885, 0.00012440614227671176, 0.08308429270982742, -0.0067123351618647575, 0.032779760658741, -0.08706246316432953, -0.02471163496375084, 0.09613540768623352, 0.014933782629668713, -0.04258272796869278, -0.006330838426947594, 0.009113687090575695, -0.03220609948039055, -0.010115530341863632, 0.07678073644638062, -0.01967208832502365, 0.011533036828041077, -0.0320764034986496, -0.03665635362267494, 0.02890317514538765, -0.0257563516497612, -0.0023643835447728634, 0.015176077373325825, -0.00785896833986044, 0.014596094377338886, 0.049266427755355835, -0.002629129681736231, -0.029482558369636536, -0.0003651814186014235, 0.04012269154191017, 0.01860467717051506, 0.0032943435944616795, 0.12189117819070816, 0.054470475763082504, 0.03494592756032944 ]
[ 0.012316913343966007, -0.012690510600805283, -0.0024307221174240112, 0.006248425226658583, 0.013171941041946411, -0.039491720497608185, 0.02651325613260269, 0.02317892014980316, 0.018365448340773582, 0.011222831904888153, -0.010464372113347054, 0.01343479659408331, 0.012147955596446991, -0.011244276538491249, 0.037424128502607346, -0.009990655817091465, -0.002451695501804352, -0.012853399850428104, 0.009217942133545876, -0.0028399075381457806, -0.004733828827738762, 0.040291063487529755, 0.020337628200650215, 0.016214923933148384, -0.00031344612943939865, -0.015033746138215065, -0.04017646610736847, -0.03713209927082062, 0.025736607611179352, -0.14517681300640106, -0.011489230208098888, -0.01205251831561327, 0.012195376679301262, 0.016743376851081848, -0.0159696526825428, -0.017782701179385185, 0.01837974227964878, -0.003511884016916156, -0.01939864456653595, 0.017693132162094116, -0.04006224125623703, -0.02821342647075653, 0.00018265406833961606, 0.002669184235855937, 0.01907922886312008, 0.006008865311741829, -0.023242250084877014, -0.013531719334423542, 0.00591674679890275, 0.009269686415791512, -0.04286246746778488, 0.023343028500676155, -0.029959479346871376, 0.001955024665221572, 0.023419426754117012, 0.011852176859974861, 0.022442979738116264, 0.01502794399857521, 0.01992548070847988, -0.0008654887205921113, -0.008064703084528446, 0.01279046293348074, -0.058786939829587936, -0.02509848028421402, 0.009662541560828686, -0.04246354103088379, -0.04140152782201767, -0.011388423852622509, 0.02149922586977482, 0.008728464134037495, -0.03140285611152649, 0.018431639298796654, -0.004878649953752756, -0.007374447770416737, -0.006279002875089645, 0.033071815967559814, 0.03463093191385269, 0.02270924486219883, 0.0018267635023221374, -0.04148475453257561, -0.0011681371834129095, -0.0013153954641893506, 0.02047746069729328, 0.004115532152354717, 0.0021424409933388233, -0.010617071762681007, 0.005199758801609278, -0.009109705686569214, 0.02806447260081768, -0.01800381951034069, -0.030355343595147133, 0.0023957949597388506, 0.002699919743463397, -0.0033110310323536396, -0.07463765144348145, -0.009195021353662014, -0.007863572798669338, -0.007156093139201403, -0.01853172481060028, 0.858176589012146, -0.023524276912212372, 0.03868173807859421, 0.04057156667113304, -0.0009759868844412267, 0.002290592063218355, 0.007830996066331863, -0.0023060201201587915, 0.014670675620436668, 0.030722441151738167, -0.07369910925626755, 0.028332693502306938, 0.009429693222045898, 0.028884684666991234, 0.01457699853926897, 0.027665773406624794, 0.009909121319651604, 0.022895559668540955, -0.04249956086277962, -0.014385285787284374, 0.022000612691044807, 0.02870536409318447, -0.030356060713529587, -0.0054741608910262585, 0.04136289283633232, 0.022745950147509575, -0.14758990705013275, 0.02436634711921215, -7.542267097831441e-33, 0.005860792472958565, 0.007814532145857811, -0.0007862349739298224, -0.006092850584536791, 0.05286969989538193, 0.012283564545214176, 0.028055716305971146, 0.0059453160502016544, -0.00853308942168951, -0.008507905527949333, -0.018917519599199295, -0.017784742638468742, -0.009915373288094997, -0.0003225000109523535, 0.032221946865320206, -0.03351794555783272, 0.023898525163531303, 0.02517843060195446, 0.005915082059800625, 0.000903705891687423, 0.06843115389347076, 0.06096082925796509, 0.0023600133135914803, -0.003330926178023219, 0.04927704110741615, 0.035882607102394104, 0.019385069608688354, -0.021157363429665565, 0.007918805815279484, -0.04086270183324814, -0.011427742429077625, -0.0015149606624618173, -0.032216932624578476, -0.02423480898141861, 0.038209885358810425, -0.03264205530285835, -0.03449259325861931, -0.005098813679069281, -0.003527833381667733, -0.03237581625580788, -0.04734307900071144, -0.012485530227422714, -0.07588532567024231, 0.004209388513118029, -0.03346417099237442, -0.03433924540877342, -0.009914251044392586, 0.04346971958875656, 0.036649007350206375, -0.003989057615399361, 0.0305461585521698, 0.027966639026999474, -0.007701360620558262, -0.016330095008015633, -0.007361996453255415, 0.005901969037950039, 0.008116672746837139, -0.016989246010780334, 0.01027671992778778, 0.025051072239875793, 0.013102896511554718, -0.014931196346879005, -0.022137342020869255, 0.03235265240073204, -0.025944361463189125, -0.007852379232645035, 0.00938856415450573, -0.016507461667060852, 0.04297209158539772, -0.012446108274161816, -0.05559898912906647, 0.016109026968479156, 0.008003183640539646, -0.01916566491127014, -0.002956236945465207, 0.013513820245862007, -0.015833064913749695, -0.01470294501632452, -0.00030310757574625313, 0.013508868403732777, -0.002687490079551935, -0.0007314981194213033, 0.004802447743713856, 0.018874116241931915, -0.002306920476257801, -0.0421266071498394, 0.0017975758528336883, -0.03136218339204788, -0.020175177603960037, 0.02439119853079319, 0.025721529498696327, 0.0067558311857283115, -0.01678699441254139, -0.02547527849674225, 0.015000682324171066, 7.763854395117165e-33, -0.007189641240984201, 0.014298295602202415, -0.010618734173476696, 0.0026650733780115843, -0.0017108791507780552, -0.012549838982522488, 0.033358003944158554, 0.0075519573874771595, -0.02159671112895012, 0.02002992108464241, -0.010381420142948627, 0.013978168368339539, -0.007784567773342133, -0.003570658154785633, 0.06543941795825958, -0.01109875738620758, 0.0026484557893127203, -0.022312069311738014, -0.021158436313271523, 0.010947109200060368, 0.0030977034475654364, 0.013398493640124798, 0.028341643512248993, 0.029871627688407898, 0.03153149038553238, 0.05636060610413551, -0.00991541426628828, -0.0006707906723022461, 0.01426081731915474, -0.020014356821775436, -0.001169006573036313, -0.009977526031434536, 0.024871157482266426, -0.07135874778032303, -0.0012163863284513354, 0.015559731982648373, 0.016696829348802567, 0.01767374388873577, 0.037086136639118195, -0.02057190239429474, 0.048781342804431915, -0.004172127228230238, 0.022532353177666664, -0.011090157553553581, -0.0330972857773304, 0.031815074384212494, 0.008562820963561535, -0.009625506587326527, 0.008154557086527348, -0.0013434175634756684, 0.012840935960412025, -0.033583227545022964, -0.002901609055697918, 0.02102704718708992, -0.001263430225662887, -0.023646904155611992, 0.0037427113857120275, -0.019455300644040108, -0.03948167711496353, 0.011211711913347244, 0.006987535860389471, 0.02478681318461895, 0.00589118804782629, 0.0014867301797494292, -0.02129358984529972, -0.016397209838032722, -0.028676846995949745, -0.023029161617159843, -0.018153611570596695, -0.03050713986158371, -0.00002710326407395769, 0.0005224017077125609, 0.004347001668065786, 0.057948846369981766, 0.0040000141598284245, 0.013428698293864727, -0.004647568799555302, -0.0011064920108765364, -0.009976731613278389, 0.03466750308871269, 0.0210088063031435, -0.007396953646093607, 0.02087268978357315, 0.013961467891931534, -0.03902344033122063, -0.007936177775263786, -0.020420612767338753, 0.006532583385705948, 0.036456577479839325, -0.023123659193515778, -0.005402326118201017, -0.03922510892152786, 0.0025553174782544374, 0.008517849259078503, -0.006931472569704056, -1.3190540215646251e-8, -0.04783602058887482, 0.004721556790173054, -0.010400909930467606, 0.015543011948466301, 0.014674817211925983, 0.012100301682949066, -0.03191875293850899, -0.004328761249780655, -0.017096223309636116, -0.011139205656945705, -0.0020427624695003033, -0.009021208621561527, 0.005088081117719412, -0.02364763803780079, 0.025204269215464592, -0.04965067654848099, 0.006475525442510843, -0.03047582320868969, 0.029800711199641228, 0.04353747144341469, 0.007230107206851244, 0.04471307992935181, -0.03314908593893051, 0.005779226776212454, 0.016615005210042, -0.016256075352430344, -0.00031739179394207895, -0.07148975133895874, 0.008856347762048244, -0.0002328902337467298, 0.04172215238213539, -0.021615272387862206, -0.0011444290867075324, 0.025173304602503777, -0.045824140310287476, -0.024673383682966232, 0.037825681269168854, 0.02002163976430893, -0.020249871537089348, -0.009752397425472736, -0.004897615406662226, 0.01262187585234642, 0.012769290246069431, -0.03152209520339966, -0.035482171922922134, -0.04022480174899101, -0.005000722594559193, -0.017599500715732574, 0.03529569134116173, -0.015039687976241112, -0.0022108883131295443, 0.0099862739443779, -0.023447593674063683, 0.03173862770199776, 0.026894282549619675, -0.0016625160351395607, 0.01078571192920208, -0.049363043159246445, -0.024221032857894897, 0.012720001861453056, 0.03360966593027115, -0.0033980475272983313, 0.00018846412422135472, -0.014555714093148708 ]
f-more-thoughts-on-the-forward-application-operators
https://markhneedham.com/blog/2009/06/27/f-more-thoughts-on-the-forward-application-operators
false
2009-06-11 07:44:41
Coding: Keep method/variable names positive
[ "coding" ]
[ "Coding" ]
Something which I've come across a few times recently in code is method names which describe the negative aspect of something and for me at least these are very difficult to understand since I need to keep remembering that we are dealing with the negative and not the positive which I think is significantly easier to reason about. A recent example of this which I came across was in some acceptance test code which among other things was asserting whether or not the policy number that had been created was in a valid format and returning the result of that assertion back to our Fitnesse fixture. The code to do this was similar to this - we are using the 'http://dannorth.net/introducing-bdd[Given, When, Then]' syntax for acceptance testing and this code came under the 'Then' section: [source,csharp] ---- public bool ThenCustomerShouldSeePageWithPurchasedPolicy() { ... var policyNumber = GetPolicyNumber(); if(InvalidPolicyNumber(policyNumber)) { return false; } ... } ---- [source,csharp] ---- private bool InvalidPolicyNumber(string policyNumber) { string integerPattern = "^[0-9]{7}$"; return policyNumber.Substring(0,5) != "POLIC" && !Regex.IsMatch(policyNumber.Substring(6,7), integerPattern) && policyNumber.Length != 12 } ---- Originally the lines of code in 'InvalidPolicyNumber' were actually inlined in the 'ThenCustomerShouldSeePageWithPurchasedPolicy' method but we pulled them out to try and understand the code more easily. I still found it quite difficult to reason about what made an invalid policy since the reasoning of what makes something invalid from reading this code is: * The first 5 characters are not 'POLIC' * The next 7 characters are not digits * The total length is not 12 The actual rule for a valid policy number are: * It should start with the characters 'POLIC' * The next 7 characters should be digits * The total length should be 12 So in fact our 'InvalidPolicyNumber' method as well as being quite difficult to read will only tell us that a policy number is invalid if all 3 of those conditions have not been met when in actual fact if any of them are not met the policy number is invalid. A perhaps subtle error has crept in! We refactored the code to http://www.markhneedham.com/blog/2008/12/11/code-for-positive-data-values-not-negative/[refer to what we know is valid] rather than looking at the reverse which I think is much more difficult to reason about. [source,csharp] ---- public bool ThenCustomerShouldSeePageWithPurchasedPolicy() { ... var policyNumber = GetPolicyNumber(); if(!ValidPolicyNumber(policyNumber)) { return false; } ... } ---- [source,csharp] ---- private bool ValidPolicyNumber(string policyNumber) { string integerPattern = "^[0-9]{7}$"; return policyNumber.Substring(0,5) == "POLIC" && Regex.IsMatch(policyNumber.Substring(6,7), integerPattern) && policyNumber.Length == 12 } ---- I've come across a few other examples and the underlying theme is that I find it much easier to reason about code which is written using positive method/variable names and then make use of language constructs if we need to invert that somewhere. I find it takes me much longer to understand methods which refer to the negative and every time I come back to them in the future I have to reason through each line slowly to make sure I understand what's going on.
null
null
[ 0.010441862978041172, -0.027733614668250084, -0.031089508906006813, 0.02829568274319172, 0.06459406018257141, 0.023556189611554146, 0.03742554783821106, -0.015495066531002522, -0.008959883823990822, -0.005516964942216873, -0.007289469707757235, 0.026237811893224716, -0.08049197494983673, -0.0008330754935741425, -0.026829158887267113, 0.07259675860404968, 0.06504470109939575, -0.006038715597242117, 0.03354187682271004, -0.0037176250480115414, -0.008813409134745598, 0.05161057412624359, -0.005147709045559168, 0.022158926352858543, 0.024790814146399498, 0.04494566470384598, 0.004084414802491665, 0.0015586239751428366, -0.06987171620130539, -0.011139282025396824, 0.04627954959869385, 0.0328274630010128, 0.010955695062875748, 0.03208523616194725, 0.030355127528309822, -0.005891528911888599, -0.027885183691978455, 0.001740566804073751, 0.018425261601805687, 0.016600411385297775, -0.05436725541949272, 0.011420691385865211, -0.016149891540408134, -0.017828306183218956, -0.04245132952928543, 0.00006731576286256313, -0.04857471585273743, -0.010728077962994576, -0.01996573805809021, -0.02513858489692211, -0.0454702228307724, 0.04899675399065018, -0.060490868985652924, 0.024060286581516266, 0.013856330886483192, 0.05419321730732918, 0.03452715650200844, -0.0672711730003357, 0.01667620800435543, -0.08173249661922455, 0.008936144411563873, -0.02463565208017826, 0.0009440892026759684, 0.026898324489593506, 0.023329023271799088, 0.01417024526745081, -0.009306919761002064, 0.06040050834417343, -0.0486171580851078, -0.02766541950404644, -0.026010341942310333, 0.012046055868268013, 0.0018593280110508204, -0.01212090253829956, 0.022787760943174362, -0.04389551281929016, -0.0070039681158959866, 0.05898912250995636, 0.03342137858271599, 0.06552906334400177, -0.022280577570199966, 0.019155485555529594, 0.03953687846660614, 0.000005009408141631866, 0.010276785120368004, -0.004593878984451294, -0.01442845817655325, 0.015466440469026566, 0.0013055382296442986, 0.027353061363101006, 0.02192082069814205, -0.02391095645725727, 0.006714403163641691, 0.020473428070545197, -0.009610392153263092, -0.010562712326645851, -0.011690051294863224, -0.016695545986294746, -0.009756072424352169, -0.00900821853429079, -0.02369041182100773, -0.026987357065081596, 0.05853049457073212, 0.012942880392074585, -0.07957099378108978, 0.005915964487940073, -0.011200811713933945, 0.02280590869486332, 0.0163846705108881, 0.01893380656838417, -0.04665125161409378, 0.03001520037651062, -0.03786959499120712, 0.021120529621839523, -0.08873777091503143, 0.03727256506681442, -0.01442053820937872, -0.016776004806160927, 0.024511793628335, 0.039101265370845795, 0.02901478298008442, 0.01092252042144537, -0.005199851933866739, 0.06857100129127502, -0.005194488912820816, 0.04791691154241562, -0.01277146302163601, 0.0710572898387909, -0.008572760969400406, -0.05927630886435509, -0.04342087358236313, 0.04316755011677742, 0.0020729731768369675, -0.0015534296398982406, -0.02209780178964138, -0.00887671485543251, -0.02278478629887104, -0.014183648861944675, 0.031356144696474075, 0.02452746406197548, -0.030830740928649902, -0.0430520661175251, 0.04546258971095085, -0.03406936675310135, 0.015970436856150627, 0.008912041783332825, 0.010720422491431236, -0.03238889202475548, -0.013870376162230968, 0.028272468596696854, 0.021205047145485878, 0.056165773421525955, 0.05754062905907631, -0.03299199789762497, -0.0036572429817169905, 0.033903948962688446, 0.019074562937021255, 0.02203473262488842, 0.005380464717745781, 0.008333777077496052, 0.03139768913388252, 0.039845455437898636, 0.007672958076000214, 0.07164227962493896, 0.04938560351729393, 0.006244349293410778, 0.0053337146528065205, 0.04980405420064926, -0.018195604905486107, 0.01187069620937109, -0.056590814143419266, -0.05315573886036873, 0.04911302775144577, -0.04275291785597801, 0.010731745511293411, 0.03170139342546463, 0.04680388420820236, 0.005504772532731295, 0.04572362080216408, 0.011856143362820148, -0.06590891629457474, 0.034078117460012436, 0.000983053003437817, 0.03597113862633705, 0.011707956902682781, -0.012849577702581882, 0.06896974891424179, 0.023956967517733574, -0.0009745590505190194, 0.0384160578250885, -0.07940942794084549, -0.06571771949529648, -0.016233349218964577, -0.03003532811999321, 0.06581477075815201, -0.02863345295190811, -0.0023610973730683327, 0.0869922786951065, 0.0023735989816486835, 0.05480227991938591, 0.014217963442206383, 0.005095467437058687, 0.0050071715377271175, -0.03564853221178055, -0.03527268394827843, 0.0644272118806839, 0.04787641763687134, 0.0033182555343955755, -0.03970269113779068, 0.01826361007988453, -0.0007890948327258229, 0.007464297115802765, 0.01139125693589449, -0.008303395472466946, 0.022249406203627586, 0.02426072768867016, 0.06399346888065338, -0.02046814002096653, 0.04759982228279114, -0.07372623682022095, 0.015208094380795956, -0.013961163349449635, -0.0007450053817592561, -0.006525539793074131, 0.002693314105272293, 0.10616997629404068, 0.055837348103523254, -0.02561306580901146, -0.061540063470602036, 0.0016139661893248558, 0.005477696657180786, -0.03612428531050682, 0.0013564769178628922, -0.023492658510804176, -0.0021231968421489, 0.01836502179503441, -0.04317666217684746, -0.014712190255522728, 0.031183306127786636, -0.034104038029909134, 0.020928168669342995, 0.07749772071838379, -0.012264614924788475, 0.019535087049007416, -0.03974901884794235, -0.01795326918363571, -0.01611235924065113, -0.0062927664257586, -0.06010878458619118, 0.01794333942234516, 0.022807065397500992, -0.0029086358845233917, 0.05389266833662987, 0.013538461178541183, -0.032793089747428894, -0.007243650034070015, -0.048354461789131165, 0.009543190710246563, 0.02997870184481144, 0.045858778059482574, -0.03174030780792236, 0.06216650828719139, -0.02469443716108799, -0.023242317140102386, -0.007702546659857035, -0.03917793557047844, -0.015208229422569275, 0.030355816707015038, 0.01827089674770832, 0.03997042030096054, 0.009940652176737785, 0.05045467987656593, -0.013988004066050053, -0.01273783203214407, -0.008619210682809353, -0.021877743303775787, 0.08226930350065231, 0.0069949934259057045, -0.02782951109111309, -0.015139477327466011, -0.04667256399989128, 0.045614227652549744, -0.0410563126206398, -0.055926017463207245, 0.009929206222295761, -0.05871380493044853, 0.04675030708312988, -0.07501531392335892, -0.0685172975063324, 0.010706426575779915, 0.02979593351483345, 0.035809073597192764, 0.0006981159676797688, 0.03506838530302048, 0.07320693880319595, -0.02808384783565998, -0.008921969681978226, 0.042208846658468246, 0.06045185402035713, 0.019770735874772072, 0.0246264785528183, 0.014008618891239166, 0.008883604779839516, -0.014989720657467842, 0.00636795349419117, -0.05768045783042908, 0.01312118861824274, 0.01048347633332014, -0.25654491782188416, 0.05275664106011391, -0.02172931656241417, -0.042964790016412735, 0.03872416913509369, -0.03170185163617134, 0.048771295696496964, -0.047796040773391724, -0.02233605645596981, 0.03247377648949623, -0.025467682629823685, -0.05373768508434296, -0.003557345364242792, 0.04410456866025925, -0.0025932113640010357, 0.01618960313498974, -0.001925240969285369, -0.06695151329040527, -0.014714953489601612, 0.020650159567594528, 0.013772213831543922, -0.06945911049842834, 0.014207920990884304, 0.06080464646220207, 0.026346072554588318, 0.062272053211927414, -0.04345592483878136, 0.03281768783926964, -0.022170094773173332, -0.01944812387228012, 0.0033996598795056343, 0.007942774333059788, 0.014687123708426952, -0.03214072808623314, -0.012706692330539227, -0.0336124449968338, -0.024032112210989, -0.027852676808834076, -0.01658421941101551, 0.04294905439019203, -0.05323231592774391, -0.048707909882068634, 0.01523322518914938, 0.0030604982748627663, 0.058524806052446365, 0.027233054861426353, -0.042385533452034, -0.028636334463953972, -0.06225316971540451, 0.07205270975828171, -0.03185461089015007, -0.002053405623883009, -0.007784875109791756, 0.052797120064496994, -0.016927257180213928, 0.002893381053581834, -0.0034772565122693777, -0.0028298567049205303, -0.05258108675479889, -0.03725232556462288, -0.029651479795575142, -0.054267555475234985, -0.018024703487753868, -0.04464559257030487, 0.000756246445234865, -0.06071481853723526, -0.055517759174108505, 0.004306488670408726, 0.0504596047103405, 0.027435826137661934, -0.007510550785809755, -0.011663073673844337, 0.009703551419079304, -0.1170361265540123, 0.00770201999694109, -0.06102405861020088, -0.032948531210422516, -0.022771287709474564, -0.006496964953839779, 0.024838842451572418, -0.046404726803302765, -0.05121888220310211, 0.02268693596124649, 0.03791842609643936, 0.026192352175712585, 0.0013631110778078437, 0.049104705452919006, -0.017981119453907013, -0.04069841653108597, -0.00198850454762578, 0.06750249117612839, -0.002256641862913966, -0.023620247840881348, -0.066609688103199, 0.006456742994487286, 0.01025695726275444, 0.02959967963397503, -0.009162119589745998, 0.002076471224427223, 0.033474598079919815, 0.02909625507891178, -0.06434457004070282, 0.029909584671258926, -0.060761913657188416, 0.0018501534359529614, -0.027135711163282394, -0.06142224371433258, 0.03190843015909195, 0.052796296775341034, 0.0013581400271505117, -0.008373042568564415, -0.023770421743392944, 0.0008091675117611885, -0.05725400149822235, -0.03948808088898659, -0.038215506821870804, -0.00384856341406703, 0.005526623222976923, -0.0055905976332724094, -0.018983686342835426, -0.04904603585600853, 0.03712593764066696, 0.006970370188355446, -0.007250476628541946, -0.0804470106959343, -0.05335450917482376, 0.004284663591533899, -0.006870946381241083, -0.005485450383275747, 0.008776201866567135, -0.029006486758589745, 0.0345587320625782, 0.007758461404591799, -0.023428961634635925, 0.012098732404410839, 0.013757563196122646, -0.018799711018800735, -0.045721087604761124, -0.03278210386633873, 0.0019213344203308225, 0.01132476981729269, -0.012019449844956398, -0.002944718347862363, 0.033779826015233994, 0.05764772370457649, 0.006787834223359823, 0.06843706965446472, -0.003125598654150963, -0.01087349746376276, 0.02920800819993019, 0.006287577096372843, -0.07686182111501694, 0.055636391043663025, -0.04951595887541771, -0.020564161241054535, -0.005019417032599449, 0.030404144898056984, -0.0036641075275838375, -0.011328448541462421, -0.037033069878816605, 0.04044344276189804, -0.023850202560424805, -0.03259715810418129, -0.036679018288850784, 0.0035608261823654175, 0.05205484852194786, -0.04231454059481621, 0.010854334570467472, -0.023324918001890182, 0.001711941440589726, 0.02707059308886528, 0.02676708996295929, -0.019455820322036743, 0.048607729375362396, -0.028681309893727303, -0.012951238080859184, 0.012098308652639389, -0.0035149508621543646, 0.036786045879125595, 0.03159765526652336, 0.0020437464118003845, -0.050993215292692184, 0.03892425447702408, -0.009763672016561031, 0.032808080315589905, 0.019263043999671936, -0.012549314647912979, -0.00547472620382905, -0.025519097223877907, -0.022920161485671997, -0.025598468258976936, -0.03632751479744911, -0.0073025645688176155, 0.021621406078338623, -0.05876666679978371, -0.045355889946222305, 0.005056996364146471, 0.009706160984933376, 0.02405543066561222, 0.02689562365412712, 0.01760690100491047, 0.011503007262945175, -0.012410595081746578, 0.001487251603975892, 0.005994793493300676, -0.04536866396665573, 0.02891252376139164, -0.01016300544142723, 0.02766500972211361, 0.051185671240091324, -0.0030817538499832153, -0.05960551276803017, -0.012014355510473251, -0.0513092502951622, 0.0025515512097626925, -0.054591745138168335, -0.052332617342472076, -0.03410843759775162, 0.015116414055228233, -0.03313707932829857, 0.004002843517810106, -0.024892810732126236, 0.0016286724712699652, -0.045950137078762054, 0.018791954964399338, -0.0025014986749738455, -0.01943335309624672, -0.014127295464277267, 0.03804084658622742, -0.04784410446882248, -0.014094263315200806, -0.019267559051513672, 0.028284503147006035, 0.01575092412531376, -0.04537004604935646, -0.058158453553915024, -0.07169734686613083, 0.017547450959682465, -0.006715806201100349, 0.0577697679400444, -0.02207598090171814, 0.010897157713770866, -0.013651150278747082, -0.0022906260564923286, -0.012946930713951588, 0.02278522215783596, -0.008080038242042065, -0.057239800691604614, -0.012214231304824352, 0.06306204199790955, 0.013183264061808586, 0.03660966828465462, -0.03061184287071228, -0.0058359066024422646, 0.08927875757217407, -0.0344664640724659, 0.00978058110922575, -0.019840866327285767, -0.04030270874500275, 0.033578187227249146, -0.009992438368499279, 0.006474949419498444, -0.004909750539809465, 0.036949850618839264, 0.04473843798041344, 0.02000930719077587, 0.03917444869875908, 0.0039756037294864655, 0.018482472747564316, -0.023248884826898575, -0.006896612700074911, -0.07787685841321945, 0.03607358783483505, 0.03043268248438835, 0.005528359208256006, -0.01367726270109415, -0.039155639708042145, -0.01930793933570385, 0.05454865097999573, -0.07412919402122498, -0.01826324686408043, 0.039357904344797134, 0.006199302617460489, 0.01955808512866497, 0.03218965232372284, -0.047409918159246445, 0.002209082944318652, 0.04016745835542679, -0.039119575172662735, -0.05299166962504387, -0.015675725415349007, 0.054816216230392456, -0.007605583872646093, -0.0011665442725643516, -0.05149818956851959, 0.0014899128582328558, 0.04821043089032173, 0.018544917926192284, 0.049841780215501785, 0.018645809963345528, -0.033594727516174316, 0.047928839921951294, 0.019826699048280716, -0.029909567907452583, -0.05148066207766533, 0.01448194868862629, 0.0005166782648302615, -0.0705639198422432, 0.017589645460247993, 0.020388023927807808, -0.03518098220229149, -0.04688337445259094, 0.045186515897512436, 0.018703263252973557, -0.008415491320192814, -0.05412806570529938, 0.008663933724164963, -0.023817941546440125, -0.036644674837589264, -0.030151035636663437, -0.009159871377050877, -0.008341941982507706, 0.07834059000015259, 0.02035623975098133, 0.02642243355512619, 0.0714905634522438, -0.015548406168818474, 0.029998764395713806, 0.01081540435552597, 0.06268253177404404, 0.07548779994249344, 0.04109537601470947, 0.008371497504413128, 0.04601606726646423, -0.018115241080522537, -0.05129608139395714, 0.005341882351785898, -0.04199260100722313, -0.004294287413358688, -0.0040384880267083645, 0.0017756781307980418, 0.04334919899702072, 0.017461618408560753, 0.06240919232368469, -0.038205016404390335, -0.005709463264793158, -0.02325768955051899, 0.03674885258078575, 0.014610135927796364, 0.04600154608488083, 0.01526460237801075, -0.009498443454504013, 0.012078025378286839, -0.0341007374227047, 0.0316571407020092, -0.023805297911167145, -0.039529070258140564, 0.01734563149511814, -0.010928734205663204, -0.009386935271322727, -0.011638390831649303, 0.0199892520904541, 0.08796852827072144, -0.02326485887169838, -0.016754960641264915, 0.025557339191436768, 0.030489357188344002, 0.02058514580130577, -0.0331825390458107, -0.025528430938720703, -0.008988914079964161, -0.020515359938144684, -0.008856152184307575, -0.017238395288586617, -0.0374724417924881, -0.009643464349210262, 0.04257787764072418, -0.02311032824218273, 0.001290494343265891, 0.020327359437942505, 0.008936570957303047, -0.03883146867156029, -0.03453189507126808, -0.07191689312458038, -0.03667827695608139, -0.06072717159986496, -0.023486942052841187, 0.024456219747662544, -0.023705098778009415, -0.0228365920484066, -0.003551483154296875, -0.005622088443487883, -0.0007006283849477768, 0.055034980177879333, -0.017241990193724632, -0.011049107648432255, 0.056851718574762344, 0.018595505505800247, 0.0435362234711647, 0.04581592231988907, 0.020329860970377922, -0.014049188233911991, -0.00674359779804945, -0.028958270326256752, -0.02323579415678978, 0.04166831076145172, 0.031039578840136528, 0.02647930011153221, -0.07393433153629303, -0.01510473433881998, 0.02756473794579506, 0.005751674063503742, -0.060244325548410416, 0.042849112302064896, -0.008825208991765976, 0.01646425575017929, 0.059369977563619614, -0.02767345681786537, -0.019754383713006973, -0.013252154923975468, -0.01904175616800785, -0.0031380755826830864, 0.01699628308415413, 0.03936590626835823, -0.035816870629787445, 0.05135998874902725, -0.0006398193654604256, -0.02331475168466568, -0.04018078371882439, 0.0037168310955166817, -0.022247960790991783, 0.019457025453448296, -0.04477034509181976, -0.036564454436302185, -0.04851099103689194, -0.06767313182353973, 0.04432648792862892, 0.04801267012953758, -0.03237535431981087, -0.03860319033265114, 0.01995023898780346, 0.027653109282255173, -0.07887697964906693, 0.0249410942196846, -0.015540091320872307, 0.0430401973426342, -0.027520619332790375, -0.01932847686111927, 0.01071137748658657, 0.029040826484560966, -0.0023096504155546427, -0.003943141549825668, 0.01713576167821884, -0.021993115544319153, 0.00732596917077899, -0.032051801681518555, 0.019991401582956314, 0.056215111166238785, -0.023479850962758064, 0.026150207966566086 ]
[ -0.1135849729180336, -0.003650275757536292, -0.0492255873978138, -0.04664301499724388, 0.03891986608505249, -0.001586739905178547, 0.02726193703711033, 0.014264888130128384, 0.007510599214583635, -0.009272349067032337, 0.003359167603775859, -0.01724102534353733, -0.006464407779276371, -0.021411187946796417, 0.05261113494634628, 0.004110513720661402, -0.010758299380540848, -0.06310521066188812, 0.007952327840030193, 0.03804047033190727, 0.05174432322382927, -0.006827214267104864, -0.03680985048413277, -0.02585998736321926, 0.017752084881067276, 0.03743775188922882, 0.0498553141951561, -0.03489222750067711, 0.0025962027721107006, -0.2076548933982849, 0.027533529326319695, 0.006563998758792877, 0.03391532227396965, -0.010403119027614594, 0.013961412943899632, 0.01784956268966198, -0.005557762924581766, 0.05592353641986847, -0.012047617696225643, 0.044153839349746704, -0.0007900410564616323, 0.025481775403022766, -0.047556884586811066, -0.019732549786567688, 0.04700810834765434, 0.00343751790933311, -0.014505024999380112, -0.008498811163008213, -0.03308635205030441, 0.0058241127990186214, -0.048264846205711365, -0.0015609038528054953, -0.007737183477729559, -0.01709490828216076, -0.009820462204515934, 0.0016581076197326183, 0.0789048820734024, 0.05323716998100281, 0.005168164148926735, 0.0056998999789357185, 0.022483089938759804, -0.02797868475317955, -0.1525382548570633, 0.07447198778390884, 0.02211706154048443, 0.05772989243268967, -0.00014647000352852046, -0.023677924647927284, -0.023148123174905777, 0.0722629576921463, 0.02994428388774395, -0.051880624145269394, -0.03448215872049332, 0.03822231665253639, -0.006587035953998566, -0.00933085661381483, 0.013337243348360062, 0.025009391829371452, 0.03607896715402603, -0.03628768399357796, -0.04634226858615875, -0.023148387670516968, 0.017872359603643417, -0.041285440325737, -0.006328086368739605, 0.00598412798717618, -0.012976165860891342, 0.04998759180307388, 0.04341006651520729, 0.03621460869908333, 0.05350160971283913, -0.0300880279392004, 0.02032661996781826, 0.0041941930539906025, -0.08668142557144165, -0.013592494651675224, -0.03418048471212387, -0.004217485431581736, -0.0550832599401474, 0.4419768154621124, -0.02097099833190441, -0.008496308699250221, 0.03581038862466812, 0.030031077563762665, 0.003088721539825201, -0.009199670515954494, -0.005393723491579294, -0.06361886113882065, 0.0054543050937354565, -0.05072220787405968, 0.02116784267127514, 0.011128438636660576, 0.06248985975980759, -0.046830400824546814, -0.015094205737113953, 0.014149277471005917, 0.039279643446207047, 0.0037040356546640396, -0.008712933398783207, -0.0011299275793135166, -0.030073018744587898, -0.005728327203541994, 0.0046697948127985, 0.018247518688440323, -0.0026021571829915047, -0.047184716910123825, 0.007635671179741621, 0.07351820170879364, 0.029887044802308083, 0.008056698366999626, 0.03532949462532997, -0.07045164704322815, -0.06200271099805832, -0.012219012714922428, 0.006920170970261097, -0.008583695627748966, 0.040268778800964355, 0.010218683630228043, 0.010561191476881504, 0.010003924369812012, 0.01656746119260788, -0.03028704971075058, -0.00953718088567257, -0.009147252887487411, -0.06816894561052322, 0.10751695930957794, -0.02862110361456871, -0.012276848778128624, -0.005498023703694344, 0.0015628617256879807, 0.021003002300858498, 0.032556578516960144, -0.020068563520908356, -0.07319954037666321, 0.004656258039176464, 0.009930511936545372, 0.07784093916416168, -0.018056601285934448, -0.03988448530435562, -0.015106682665646076, 0.01919928751885891, -0.03790943697094917, -0.04059575870633125, 0.048476751893758774, 0.05405319854617119, -0.09092628210783005, -0.03817359730601311, -0.006005493924021721, 0.007850142195820808, -0.06585821509361267, 0.011809444054961205, 0.00003576280869310722, -0.015034754760563374, -0.007106403354555368, 0.020530439913272858, -0.0005079261609353125, 0.009645145386457443, -0.0003618606133386493, 0.03665142506361008, 0.006331013049930334, -0.01663253828883171, -0.001376190921291709, -0.06085788086056709, -0.01897222362458706, -0.008733336813747883, -0.044300854206085205, -0.07450804114341736, -0.024806249886751175, -0.009532952681183815, -0.003062993288040161, -0.04057189077138901, -0.05321821942925453, -0.10697289556264877, 0.10159076005220413, -0.04496895521879196, -0.013497850857675076, 0.004198884125798941, -0.0031486444640904665, 0.00909777358174324, -0.03333304449915886, 0.012541547417640686, 0.054371729493141174, 0.006574581377208233, 0.0481705479323864, -0.04193352907896042, 0.060813628137111664, 0.058470018208026886, -0.06829565018415451, 0.06928447633981705, 0.051214613020420074, -0.05144842341542244, -0.005656903609633446, 0.009928449057042599, 0.03282288834452629, 0.011790493503212929, -0.033188726752996445, -0.02597750537097454, 0.022602835670113564, 0.009679267182946205, 0.018052006140351295, -0.04564707726240158, -0.020086493343114853, 0.012665968388319016, -0.336448609828949, -0.03615101799368858, -0.021842751652002335, -0.015419741161167622, 0.009289786219596863, -0.0708044022321701, 0.010381653904914856, -0.028845705091953278, -0.03559321165084839, 0.035146377980709076, 0.06222400441765785, -0.001843346282839775, -0.01666230522096157, -0.05247725918889046, 0.011698045767843723, 0.03210432827472687, -0.03951781243085861, -0.0314730741083622, -0.03420470282435417, 0.036706313490867615, -0.01591254398226738, 0.01449600886553526, -0.0038495459593832493, -0.047707147896289825, 0.011782953515648842, -0.05004004389047623, 0.10397655516862869, 0.008114631287753582, 0.08448987454175949, -0.032781947404146194, 0.03871825709939003, -0.01195740420371294, 0.006588967051357031, -0.0879601314663887, 0.0458965003490448, -0.0562756210565567, -0.02489207312464714, -0.008981180377304554, 0.044938281178474426, -0.031117333099246025, -0.03758374974131584, 0.012001831084489822, -0.07629700005054474, -0.011358680203557014, -0.012958789244294167, 0.016567904502153397, -0.02430696226656437, -0.026427315548062325, -0.024323824793100357, 0.07145778089761734, 0.03248673677444458, 0.01541777141392231, 0.020153554156422615, 0.029260190203785896, 0.02600371092557907, -0.015750586986541748, -0.08359403163194656, -0.009344740770757198, 0.01586608588695526, -0.017618851736187935, 0.044676098972558975, 0.05632943660020828, 0.04931844025850296, -0.06452830135822296, -0.017495712265372276, 0.02648157812654972, -0.00623806519433856, -0.012616035528481007, 0.036133646965026855, -0.024360910058021545, -0.031868062913417816, 0.14921309053897858, 0.018656007945537567, -0.034609995782375336, 0.03065834753215313, 0.05150965228676796, -0.019803116098046303, 0.027145734056830406, -0.004554259590804577, -0.013415723107755184, 0.036141570657491684, 0.0142045384272933, 0.043058592826128006, -0.03948341682553291, -0.02198897860944271, 0.010733287781476974, -0.04645046591758728, -0.0020180358551442623, 0.08292494714260101, -0.006670378614217043, -0.018881764262914658, 0.024470916017889977, 0.000476589280879125, -0.04341656342148781, 0.05836983025074005, -0.019925618544220924, -0.24317482113838196, 0.006729784421622753, 0.060890812426805496, 0.08108270913362503, -0.0008612532401457429, 0.02518390864133835, 0.031092606484889984, -0.04363156110048294, -0.00419056648388505, 0.002048331778496504, 0.025209173560142517, 0.04103603586554527, 0.02611229009926319, -0.028060432523489, 0.0034923895727843046, -0.016895737498998642, 0.04171733930706978, -0.014724140986800194, 0.03392227366566658, 0.030812663957476616, 0.04831990227103233, -0.03251280263066292, 0.1467551589012146, -0.009080259129405022, 0.03223823383450508, -0.002641988219693303, 0.01972767524421215, 0.04028486832976341, 0.06704525649547577, 0.010149318724870682, -0.015495115891098976, -0.005443518050014973, 0.07259402424097061, 0.008992137387394905, 0.05613645911216736, -0.08132445812225342, -0.026699692010879517, 0.001759019447490573, 0.030171532183885574, 0.00016872899141162634, -0.0061774407513439655, 0.010382148437201977, -0.037648964673280716, 0.026977326720952988, 0.05696737766265869, 0.028260665014386177, -0.0046128262765705585, -0.03233642503619194, -0.013042044825851917, 0.012844167649745941, -0.04710431769490242, -0.015835676342248917, -0.004706378094851971, -0.0037778401747345924, 0.002248266479000449, 0.05149050056934357, 0.02466985210776329, -0.04542817175388336, -0.017787961289286613, 0.022592410445213318, -0.03049858845770359, -0.02315717749297619, 0.1353190541267395, 0.04241454228758812, 0.014827268198132515 ]
[ -0.024675698950886726, 0.04430574178695679, -0.02730521745979786, 0.005516148172318935, -0.00321459723636508, 0.033459488302469254, 0.0417090579867363, 0.0214003287255764, -0.008527254685759544, 0.021047208458185196, -0.004501186776906252, -0.004302226938307285, 0.04850608482956886, -0.007070125080645084, 0.014021845534443855, -0.0122068477794528, 0.0018456547986716032, 0.00343511626124382, 0.0054370807483792305, 0.010335271246731281, -0.01218403223901987, 0.022929014638066292, -0.0002128461201209575, -0.023782487958669662, -0.0031670976895838976, 0.019107937812805176, 0.014117549173533916, -0.006552438251674175, 0.008737778291106224, -0.13452406227588654, -0.01888464391231537, -0.010250845924019814, -0.024979203939437866, 0.032808784395456314, 0.019433286041021347, -0.0017567678587511182, -0.012111104093492031, -0.00002314858284080401, -0.006645762361586094, 0.017533989623188972, -0.0182485431432724, -0.005390225909650326, 0.00307870632968843, 0.022438470274209976, 0.00810745358467102, 0.001588513026945293, -0.045296505093574524, 0.007108267862349749, -0.012314992025494576, -0.01607545092701912, -0.015707137063145638, -0.003394396509975195, 0.028292208909988403, 0.012071848846971989, 0.043473534286022186, -0.0045976703986525536, -0.026786355301737785, -0.012919927947223186, -0.005969393067061901, -0.0281565822660923, 0.040545754134655, -0.0027076145634055138, -0.04051586613059044, -0.036471977829933167, -0.04071463271975517, -0.011400031857192516, -0.02858576364815235, -0.007922674529254436, 0.001884010387584567, -0.022736551240086555, -0.020965270698070526, 0.020342281088232994, -0.00010144372208742425, 0.00554466899484396, -0.033319272100925446, 0.011365920305252075, 0.0019759314600378275, 0.005452039185911417, 0.05357145890593529, -0.039242472499608994, -0.03276297450065613, -0.013441543094813824, 0.029355259612202644, 0.014692672528326511, 0.029254280030727386, -0.004290428478270769, 0.0012240918586030602, 0.016874462366104126, -0.008839990943670273, 0.02918037585914135, 0.005360196810215712, 0.0492800734937191, 0.006197160109877586, -0.00591995706781745, -0.09650828689336777, 0.003473919816315174, -0.06150954216718674, -0.034653037786483765, -0.0071226670406758785, 0.8496081233024597, -0.010484356433153152, 0.04297134652733803, 0.01938752457499504, 0.03850654885172844, -0.010100407525897026, -0.04381575062870979, 0.023433953523635864, 0.013089163228869438, 0.060848865658044815, -0.04021502658724785, -0.0017272098921239376, 0.0003812309296336025, 0.034141793847084045, 0.02840348146855831, 0.0034787626937031746, 0.010696771554648876, 0.007016825955361128, 0.014503128826618195, -0.0048180269077420235, 0.01849951781332493, 0.016657250002026558, 0.009165781550109386, 0.004914350342005491, -0.008710561320185661, 0.005485006142407656, -0.1499958485364914, 0.01712610572576523, -8.40346217723468e-33, 0.02573985420167446, -0.008674316108226776, 0.0031364818569272757, 0.01205572858452797, 0.013353856280446053, 0.0015660665230825543, 0.042761266231536865, 0.004812664818018675, 0.036995772272348404, -0.03262527659535408, -0.005318876821547747, -0.029034830629825592, 0.02831096760928631, -0.016338057816028595, 0.051346126943826675, -0.03461826592683792, -0.011800394393503666, 0.0418749675154686, 0.003526587039232254, 0.01010000891983509, 0.03106965869665146, 0.021333618089556694, 0.03987974673509598, -0.011803658679127693, 0.027752617374062538, 0.04921123385429382, -0.013090393505990505, 0.04736854508519173, 0.0233694426715374, -0.03629345819354057, 0.02840891294181347, -0.00896564032882452, -0.016523052006959915, -0.016950178891420364, 0.025257999077439308, -0.06017802655696869, 0.008698675781488419, 0.018131073564291, 0.002036414109170437, -0.028820455074310303, -0.043863311409950256, -0.000310643226839602, 0.0036068556364625692, 0.016960224136710167, 0.0030518686398863792, -0.005635193083435297, 0.02140171080827713, -0.001584608224220574, 0.0007640664698556066, -0.023808009922504425, 0.009235220029950142, 0.012558439746499062, 0.027439367026090622, -0.035907696932554245, -0.01422503124922514, -0.012203681282699108, -0.005554732866585255, 0.04500463604927063, -0.025127505883574486, -0.01579737849533558, 0.04662653058767319, -0.008388697169721127, -0.02589617483317852, -0.017023790627717972, -0.002445089863613248, 0.007148884702473879, -0.017005162313580513, -0.012448284775018692, -0.00023150129709392786, -0.03291642665863037, -0.03243497386574745, 0.009373693726956844, -0.02329922839999199, 0.005291961133480072, 0.008836056105792522, -0.009595314040780067, 0.012794815935194492, 0.015291263349354267, -0.021547896787524223, 0.0003428799391258508, 0.018753841519355774, -0.01855202578008175, 0.0017433945322409272, 0.0039360118098556995, -0.0029075671918690205, -0.011114733293652534, 0.02375885844230652, -0.010798291303217411, 0.026823896914720535, -0.007403042633086443, 0.04094463586807251, -0.022055594250559807, -0.035896968096494675, 0.007058727089315653, 0.01410272903740406, 7.832107270545754e-33, -0.02112889289855957, -0.01813030242919922, -0.002070196671411395, -0.002482919255271554, -0.005365488585084677, -0.0007096235640347004, 0.023743340745568275, 0.0028364926110953093, -0.02585313282907009, 0.014693204313516617, -0.003299090778455138, 0.03965726122260094, -0.02198738604784012, 0.03394799306988716, 0.04536338150501251, -0.020885491743683815, -0.0006955230492167175, 0.008674701675772667, 0.04503428563475609, 0.015662645921111107, 0.04677512124180794, 0.02023504115641117, -0.04258621856570244, 0.01838560588657856, 0.015889065340161324, 0.06819964200258255, -0.02311817742884159, 0.004217235837131739, 0.0250373687595129, 0.039333488792181015, 0.03798060491681099, -0.012012952007353306, -0.011192413978278637, -0.017801692709326744, -0.03168172389268875, 0.00693543953821063, 0.007133843377232552, -0.010213818401098251, -0.00569907808676362, -0.004188190679997206, 0.0246597770601511, -0.06836258620023727, 0.019005142152309418, -0.0015336390351876616, 0.0019648356828838587, -0.03143645077943802, 0.03014361672103405, -0.02366897650063038, -0.023049553856253624, 0.004181439522653818, 0.010391955263912678, 0.0029437171760946512, -0.0057713547721505165, 0.027515776455402374, -0.006987885106354952, 0.003457535756751895, -0.029727013781666756, 0.007104899734258652, -0.020799871534109116, 0.004898965358734131, -0.030461624264717102, 0.03266055881977081, -0.016236022114753723, 0.011205345392227173, -0.03577008470892906, 0.0017188673373311758, -0.057698823511600494, -0.03217792883515358, 0.011763360351324081, -0.052684418857097626, -0.036216579377651215, -0.023179177194833755, -0.021147804334759712, 0.05135170742869377, -0.011184071190655231, -0.023313283920288086, -0.00879670586436987, 0.017558308318257332, -0.018591055646538734, 0.04176764562726021, 0.0029670933727174997, -0.003435840830206871, -0.00800415500998497, 0.01298791915178299, 0.00007059790368657559, -0.01159573532640934, -0.005228122230619192, -0.017299465835094452, 0.035891421139240265, -0.029797576367855072, -0.022119371220469475, -0.024568362161517143, 0.005886673461645842, 0.009275021031498909, -0.02299615368247032, -1.3316794778006624e-8, -0.01929246261715889, -0.0007173262420110404, 0.012763061560690403, 0.013037464581429958, 0.03755541518330574, 0.004500892478972673, -0.06218372657895088, -0.04420894384384155, -0.03718580678105354, -0.011234949342906475, 0.036577850580215454, 0.02732660062611103, -0.004987064749002457, -0.02884455770254135, 0.0005481780390255153, -0.052814263850450516, -0.013381024822592735, -0.018339289352297783, 0.02417214773595333, 0.049540672451257706, -0.008288851007819176, 0.029289811849594116, -0.015538359992206097, -0.004696387331932783, 0.026307953521609306, -0.023784197866916656, 0.019038042053580284, -0.06725853681564331, -0.007075309753417969, 0.017880430445075035, 0.02088296227157116, -0.010989226400852203, -0.007035073358565569, -0.009349402971565723, -0.02922561578452587, 0.016675924882292747, 0.011778697371482849, 0.0055663674138486385, 0.04866081476211548, -0.012965742498636246, 0.00965535081923008, -0.009200160391628742, -0.018167084082961082, -0.008482545614242554, -0.005555605981498957, -0.033593107014894485, -0.042856212705373764, -0.051871828734874725, 0.0199592188000679, -0.06388388574123383, 0.004075872711837292, 0.001782885636202991, -0.007706936914473772, 0.04212256893515587, 0.005428325850516558, 0.004767050500959158, -0.015221054665744305, -0.02708076313138008, -0.03467923030257225, 0.048407260328531265, 0.007280619814991951, 0.005557854659855366, 0.0007757989224046469, -0.0330185666680336 ]
coding-keep-methodvariable-names-positive
https://markhneedham.com/blog/2009/06/11/coding-keep-methodvariable-names-positive
false
2009-06-29 00:28:14
F#: Setting properties like named parameters
[ "f", "objects" ]
[ "fsharp" ]
One of the most frustrating things for me lately about interacting with C# libraries from F# has been setting up objects through the use of properties. While I am against the use of setters to construct objects in the first place, that's the way that a lot of libraries work so it's a bit of a necessary evil! In C# we would typically make use of the http://www.markhneedham.com/blog/2009/02/16/c-object-initializer-and-the-horse-shoe/[object initializer] syntax to do this, but in F# I've been writing code like this to do the same thing: [source,ocaml] ---- type MessageBuilder(?message:string, ?user:string) = let buildMessage message user = let twitterStatusBuilder = new TwitterStatus() twitterStatusBuilder.Text <- message twitterStatusBuilder.User <- let userBuilder = new TwitterUser() userBuilder.ScreenName <- user userBuilder twitterStatusBuilder member self.Build() = buildMessage (if message.IsSome then message.Value else "") (if user.IsSome then user.Value else "") ---- This is more verbose than strictly necessary but I wanted to try and ensure all mutations to objects were being done within the function creating it rather than creating an object and then mutating it which feels strange to me in F# land. I recently realised that it's actually possible to call properties http://msdn.microsoft.com/en-us/library/dd233192(VS.100).aspx[in the same way that we can create objects using named parameters]. We therefore end up with the following code: [source,ocaml] ---- type MessageBuilder(?message:string, ?user:string) = let buildMessage message user = new TwitterStatus(Text = message, User = new TwitterUser(ScreenName = user)) member self.Build() = buildMessage (if message.IsSome then message.Value else "") (if user.IsSome then user.Value else "") ---- Which is much more concise and does the same thing.
null
null
[ 0.021532902494072914, -0.02277086302638054, -0.018659688532352448, 0.004955748096108437, 0.07632593810558319, 0.025354871526360512, 0.01398855447769165, 0.02063836343586445, -0.0097232386469841, -0.017446139827370644, -0.02575869858264923, 0.011785617098212242, -0.09518139064311981, 0.025193942710757256, -0.004202721640467644, 0.05282530188560486, 0.08993348479270935, -0.02749248780310154, 0.024469155818223953, 0.013978639617562294, 0.00662308931350708, 0.07041872292757034, -0.0066178711131215096, 0.0007596153882332146, 0.03497513756155968, 0.021306045353412628, -0.0012078634463250637, 0.0016128323040902615, -0.0429401695728302, -0.001922788331285119, -0.0026416387408971786, 0.012583741918206215, 0.0011061468394473195, -0.035396136343479156, -0.0004615064535755664, -0.027478015050292015, 0.010648826137185097, -0.0025645734276622534, -0.018758095800876617, 0.05311422049999237, -0.06990927457809448, 0.02105867862701416, 0.020382199436426163, 0.012456649914383888, -0.04311667010188103, 0.012790337204933167, -0.052529942244291306, 0.005205318331718445, -0.027303649112582207, -0.01456379797309637, -0.04819375276565552, 0.021915119141340256, -0.03303170204162598, -0.006359403487294912, 0.02231205813586712, 0.03896546736359596, 0.009553126990795135, -0.08187803626060486, 0.03279292583465576, -0.04415765777230263, 0.014430629089474678, -0.010812053456902504, 0.030472349375486374, 0.019015954807400703, 0.021066391840577126, 0.012967284768819809, -0.020923716947436333, 0.019084183499217033, -0.055010296404361725, -0.021797675639390945, -0.024257469922304153, 0.0019497070461511612, -0.011987155303359032, -0.024455474689602852, 0.007605750113725662, -0.04163025692105293, 0.009745744056999683, 0.07012879103422165, 0.027535466477274895, 0.032080721110105515, -0.007513721007853746, 0.029634276404976845, 0.02545638382434845, 0.02117190510034561, -0.0026025790721178055, -0.006353064440190792, -0.03061053156852722, 0.0391831211745739, -0.0215994194149971, 0.05407697707414627, 0.014399614185094833, -0.024273233488202095, 0.002057629404589534, 0.005404845345765352, 0.042060885578393936, 0.009992802515625954, 0.007436311803758144, -0.016540151089429855, -0.020149990916252136, -0.010492387227714062, -0.03192369267344475, -0.029367437586188316, 0.00800197385251522, 0.003991375677287579, -0.05301741510629654, -0.016363274306058884, -0.031436700373888016, 0.0005845195264555514, 0.029502518475055695, 0.016569893807172775, -0.060272738337516785, 0.01080961525440216, -0.0008820052025839686, -0.001040611183270812, -0.06799069792032242, 0.021158473566174507, 0.023408588021993637, 0.006153613328933716, -0.023319020867347717, 0.054203953593969345, 0.052777864038944244, 0.029031584039330482, -0.026958361268043518, 0.06260442733764648, -0.0171637125313282, 0.03363907337188721, -0.01569541171193123, 0.09702601283788681, -0.0006284930277615786, -0.07866918295621872, -0.021674109622836113, 0.053152862936258316, -0.04081682115793228, 0.008316083811223507, 0.008617521263659, -0.01033844705671072, -0.0003907405771315098, -0.02766626514494419, 0.0520646907389164, 0.05350614711642265, 0.0026471479795873165, -0.06359332799911499, 0.01976999081671238, -0.03319641575217247, 0.0034887513611465693, 0.023679018020629883, -0.020802926272153854, 0.0003020219155587256, -0.013251502066850662, 0.049244459718465805, 0.02534308284521103, 0.041800446808338165, 0.065247543156147, -0.03116208128631115, 0.009039631113409996, 0.07812295854091644, 0.009689286351203918, -0.0007440868066623807, -0.019929848611354828, 0.022404218092560768, 0.035011176019907, 0.017790082842111588, 0.018752340227365494, 0.033879950642585754, 0.04154200479388237, -0.00008762531069805846, 0.012059357017278671, 0.03806127980351448, -0.015606015920639038, -0.04924790561199188, -0.059259820729494095, -0.026688549667596817, 0.03542486950755119, -0.02316359244287014, 0.002109845634549856, 0.015202119946479797, 0.061950117349624634, -0.03581373766064644, 0.05036316066980362, 0.009526043199002743, -0.0657401904463768, 0.012925089336931705, -0.0037026535719633102, 0.005118418950587511, 0.002903300104662776, 0.0069951340556144714, 0.05982329323887825, 0.0031689447350800037, 0.021258456632494926, 0.016806993633508682, -0.04410800710320473, -0.07037404179573059, -0.035234104841947556, -0.011533364653587341, 0.05734759196639061, -0.030892815440893173, -0.02672666683793068, 0.06967086344957352, 0.024897990748286247, 0.05204150080680847, 0.042425237596035004, -0.03219858929514885, 0.014746126718819141, -0.00824051909148693, -0.03716551139950752, 0.04422276094555855, 0.014040841720998287, -0.002172421896830201, -0.04761645197868347, 0.019788390025496483, -0.002171880565583706, -0.00640955101698637, 0.07172153145074844, -0.008235741406679153, 0.02816791459918022, 0.0007866523810662329, 0.007032780442386866, -0.03510776162147522, 0.02803572081029415, -0.06182407587766647, 0.01572934351861477, 0.004143138416111469, -0.005476045422255993, -0.015727324411273003, -0.021185332909226418, 0.13544273376464844, 0.05081985145807266, -0.05574611574411392, -0.06569048017263412, -0.0029931773897260427, 0.014923160895705223, -0.037608206272125244, 0.008431651629507542, -0.0055441055446863174, -0.0026182755827903748, 0.01356829609721899, -0.008205609396100044, 0.0056725237518548965, 0.006101966369897127, -0.022366877645254135, 0.030039716511964798, 0.07435520738363266, -0.03293900936841965, 0.04386560991406441, 0.0032675100956112146, -0.027993937954306602, 0.012901334092020988, -0.031929802149534225, -0.03596823662519455, 0.026750659570097923, 0.02991114743053913, -0.019249001517891884, 0.08454205095767975, -0.0003945091739296913, -0.030055394396185875, -0.01347329467535019, -0.04142482951283455, 0.03017197549343109, 0.017340820282697678, 0.0507267490029335, -0.006096080876886845, 0.032197028398513794, -0.05110765993595123, -0.01791570894420147, -0.010933100245893002, -0.052280426025390625, 0.015909641981124878, -0.00561352726072073, 0.028326082974672318, 0.051394958049058914, 0.0058722710236907005, -0.0217646062374115, 0.017399394884705544, 0.019116465002298355, -0.043485127389431, 0.014146419242024422, 0.025925414636731148, -0.026048656553030014, -0.041944995522499084, -0.0598432682454586, -0.04214928299188614, 0.04420032724738121, -0.0380321703851223, -0.03967085853219032, -0.016484301537275314, -0.0699896365404129, 0.03896563872694969, -0.08569404482841492, -0.0546254888176918, -0.011019875295460224, 0.022858144715428352, 0.01383715309202671, 0.012048018164932728, 0.041431866586208344, 0.0638967752456665, 0.023327695205807686, 0.01353621855378151, 0.014743134379386902, -0.026645107194781303, 0.0315508171916008, -0.016600357368588448, 0.040296975523233414, 0.05048297718167305, -0.013475204817950726, -0.011418293230235577, -0.04191889986395836, 0.0004349344235379249, 0.023220699280500412, -0.2562902867794037, 0.03705916553735733, 0.0004609115712810308, -0.04239024594426155, 0.016125023365020752, -0.00695975124835968, 0.007827633991837502, -0.04603665694594383, -0.012165199033915997, 0.07189203053712845, -0.010950332507491112, -0.022872744128108025, -0.014785037375986576, 0.05571822077035904, 0.013918480835855007, -0.0025058500468730927, -0.015339912846684456, -0.05636368319392204, -0.0012371039483696222, 0.07287896424531937, -0.020413247868418694, -0.042125530540943146, 0.03578503429889679, 0.03556003049015999, 0.037818171083927155, 0.03277716785669327, -0.10070662200450897, 0.03517729789018631, -0.011492248624563217, 0.003286295337602496, -0.03361174091696739, 0.015349311754107475, 0.00846320390701294, -0.015793129801750183, -0.030081814154982567, -0.03115217760205269, 0.010814953595399857, 0.02338993176817894, 0.007490479853004217, 0.013024929910898209, -0.041617006063461304, -0.06532783061265945, -0.03371257334947586, -0.03473383188247681, 0.08361358195543289, -0.024922262877225876, -0.09636221081018448, -0.02935975231230259, -0.06265588104724884, 0.05124286189675331, -0.030930249020457268, -0.05082865431904793, -0.00766626326367259, 0.06350360065698624, 0.008785235695540905, -0.011786960065364838, 0.030685311183333397, 0.0004147063009440899, -0.05722669139504433, -0.02876068465411663, -0.02505498006939888, -0.031062036752700806, -0.012065907008945942, -0.021997984498739243, -0.004432738292962313, -0.06629499047994614, -0.06019013002514839, 0.002730536973103881, 0.06513213366270065, 0.02412281185388565, -0.029911654070019722, 0.0006321610999293625, 0.011354751884937286, -0.1134452223777771, -0.008581869304180145, -0.04260628670454025, -0.010938350111246109, -0.04699486494064331, -0.0021484647877514362, 0.048719070851802826, -0.010672904551029205, -0.041960038244724274, 0.021233374252915382, 0.015352007001638412, 0.010792357847094536, 0.024585800245404243, 0.026467517018318176, 0.005628054961562157, -0.01605464331805706, -0.009812730364501476, 0.07304193824529648, -0.00013219028187450022, 0.019207222387194633, -0.03594941645860672, 0.0018899458227679133, 0.03803323209285736, 0.02624363824725151, -0.01662570610642433, 0.034767571836709976, 0.022984420880675316, 0.056482281535863876, -0.04363627731800079, 0.005678854417055845, -0.031266551464796066, -0.013598848134279251, -0.003888164646923542, -0.07104291766881943, 0.035044245421886444, 0.021355606615543365, 0.01734510064125061, -0.014554639346897602, -0.016141101717948914, 0.001141281216405332, -0.0521574430167675, -0.013738109730184078, -0.018898459151387215, -0.007024772930890322, -0.00033520604483783245, 0.026329336687922478, -0.01662275567650795, -0.0679628774523735, 0.024465711787343025, 0.017243968322873116, -0.005892633460462093, -0.07441910356283188, -0.049586787819862366, -0.015183263458311558, -0.020663926377892494, -0.02137044444680214, 0.009723220951855183, -0.014782124198973179, 0.029296869412064552, 0.008859961293637753, -0.02945425920188427, 0.02033909037709236, 0.03617981821298599, -0.007948691956698895, -0.07677576690912247, -0.026285061612725258, -0.021985875442624092, -0.005582665093243122, -0.02072167582809925, 0.038545843213796616, 0.011458483524620533, 0.05178047716617584, 0.007683893665671349, 0.030583886429667473, 0.030358271673321724, -0.0005846135318279266, 0.02202525921165943, 0.0200648196041584, -0.07686150819063187, 0.04493488371372223, -0.03452610597014427, -0.024880535900592804, -0.028405169025063515, 0.037286512553691864, -0.05071130394935608, -0.038040075451135635, -0.0595519095659256, 0.04143600910902023, -0.023753270506858826, -0.024072935804724693, -0.043632976710796356, 0.00929485447704792, 0.04736720398068428, -0.02024509757757187, 0.04024544358253479, -0.032620806246995926, -0.0005386536358855665, 0.008330310694873333, 0.009471523575484753, -0.038303665816783905, 0.040623970329761505, -0.007595706265419722, -0.01574758067727089, -0.020762354135513306, 0.03545078635215759, 0.032469287514686584, 0.02924693189561367, -0.00042499465052969754, -0.0021086460910737514, 0.0021480703726410866, -0.007370577193796635, 0.05862906575202942, 0.008068570867180824, 0.002834482118487358, -0.0017426525009796023, -0.026620294898748398, 0.015786025673151016, -0.024110320955514908, -0.028035743162035942, -0.01961011253297329, 0.04219704121351242, -0.028218958526849747, -0.0628831759095192, 0.01812453381717205, 0.0232705045491457, 0.044191062450408936, 0.0075447275303304195, -0.0022693127393722534, 0.01061391644179821, -0.02094295807182789, -0.010488653555512428, 0.0666353777050972, -0.040949746966362, 0.009755019098520279, -0.016828320920467377, 0.019668415188789368, 0.0625152513384819, 0.022529417648911476, -0.03257022053003311, 0.0045706043019890785, -0.0205814428627491, -0.0111177247017622, -0.03339347243309021, -0.03445092961192131, -0.032490331679582596, -0.012576590292155743, -0.022389249876141548, -0.010824078693985939, -0.02635357528924942, 0.01789233274757862, -0.015220475383102894, -0.02798115834593773, 0.0273123849183321, -0.06708027422428131, 0.00856826826930046, 0.058794859796762466, -0.015466560609638691, 0.008171627297997475, -0.00746801495552063, 0.03660237789154053, 0.023875543847680092, -0.01796078123152256, -0.017770402133464813, -0.07336940616369247, 0.012847899459302425, -0.026539865881204605, 0.045252494513988495, 0.009555202908813953, -0.018145104870200157, -0.01593022607266903, -0.03213020786643028, -0.041092585772275925, 0.0034944515209645033, -0.01158258318901062, -0.017638443037867546, 0.035358063876628876, 0.03703809157013893, -0.033196888864040375, 0.039661239832639694, -0.0007526297704316676, 0.0013504128437489271, 0.0415472686290741, -0.06852427870035172, -0.01572754792869091, -0.010393857955932617, -0.05173426494002342, 0.007858662866055965, 0.01798962987959385, 0.012569637037813663, -0.06548004597425461, 0.07471954077482224, 0.05936921015381813, 0.010213571600615978, 0.05810783430933952, -0.0037410808727145195, 0.015643509104847908, -0.02742692455649376, -0.017557604238390923, -0.06109675392508507, 0.029714243486523628, 0.04809918627142906, 0.01669750176370144, -0.022650986909866333, -0.020758742466568947, 0.02582988515496254, 0.0422547273337841, -0.05324472114443779, -0.024146080017089844, 0.04412713646888733, 0.02005775272846222, 0.011732880026102066, -0.002988269552588463, -0.04266442731022835, 0.03720356523990631, 0.05016973242163658, -0.025335034355521202, -0.04010362923145294, -0.0320325642824173, 0.03583322837948799, -0.022019043564796448, 0.017976030707359314, -0.02906370721757412, -0.015119343996047974, 0.05552961677312851, 0.022373080253601074, 0.036677226424217224, 0.05943497642874718, -0.03925367444753647, 0.023955460637807846, 0.03185610473155975, -0.03531433269381523, -0.003413838567212224, -0.008269932121038437, 0.002602902241051197, -0.060295406728982925, -0.0030209883116185665, 0.007333551999181509, -0.0520302876830101, -0.07603952288627625, 0.06904458999633789, 0.004170594271272421, -0.026080232113599777, -0.033508628606796265, 0.01650370843708515, -0.016069287434220314, -0.0292985700070858, -0.03548120707273483, 0.02497180365025997, -0.039773982018232346, 0.06517741829156876, 0.0017816086765378714, -0.017531385645270348, 0.08238444477319717, -0.02781091444194317, 0.01393912360072136, -0.01566334255039692, 0.06825758516788483, 0.06903881579637527, 0.046815425157547, -0.03444979339838028, 0.05884714424610138, -0.012788374908268452, -0.07408662885427475, 0.010534927248954773, -0.018636416643857956, -0.0040313382633030415, -0.02762896753847599, 0.02770349755883217, 0.08619427680969238, -0.01090027391910553, 0.045832838863134384, -0.0645330473780632, -0.0033836974762380123, -0.02126014418900013, 0.023953232914209366, 0.017402224242687225, 0.030314061790704727, 0.0035341684706509113, 0.04151516407728195, 0.008500215597450733, -0.04339123144745827, 0.04262874647974968, -0.03457150608301163, -0.020175902172923088, -0.0060018752701580524, 0.007963154464960098, 0.011898702010512352, 0.00802970863878727, 0.04175026714801788, 0.07179302722215652, -0.02483472041785717, -0.007910090498626232, 0.023424366489052773, 0.0200213436037302, 0.018757959827780724, -0.0332363061606884, -0.011433080770075321, 0.006574877072125673, 0.019604844972491264, -0.0037675637286156416, 0.01105401199311018, -0.02270457148551941, -0.007652364205569029, 0.05945970490574837, -0.032576531171798706, 0.011876784265041351, -0.02625022642314434, -0.010944378562271595, -0.020308038219809532, -0.03874950110912323, -0.05729713290929794, -0.028430365025997162, -0.07741837948560715, 0.0055574760772287846, 0.0068331374786794186, -0.01185168419033289, -0.019002657383680344, -0.037764668464660645, 0.004613993689417839, 0.006895989645272493, 0.06822868436574936, -0.00938329752534628, -0.03963405638933182, 0.022539259865880013, 0.0029138221871107817, 0.027118440717458725, 0.03194760903716087, 0.04108197242021561, -0.025709161534905434, -0.030853714793920517, -0.06404627859592438, -0.010053210891783237, 0.030175162479281425, -0.014770695939660072, 0.004654076416045427, -0.07750512659549713, 0.019242964684963226, 0.009834503754973412, -0.00458801444619894, -0.07158903777599335, -0.0047663128934800625, 0.0225639920681715, 0.00572171900421381, 0.054143115878105164, -0.00478338822722435, -0.021573210135102272, -0.014833979308605194, 0.005914716981351376, 0.03287544846534729, 0.017433201894164085, 0.04561512544751167, -0.032096780836582184, 0.07755763828754425, 0.01346726156771183, -0.04661969095468521, -0.014287388883531094, -0.02081940323114395, -0.012563791126012802, 0.023863399401307106, -0.015118427574634552, -0.02585933916270733, -0.03607549890875816, -0.033281031996011734, 0.011616561561822891, 0.019537486135959625, -0.021046370267868042, -0.012702886946499348, -0.00126353045925498, 0.07255527377128601, -0.06702513247728348, 0.060485176742076874, -0.026784779503941536, 0.027070336043834686, 0.009599937126040459, -0.025868915021419525, 0.01165589690208435, 0.014309494756162167, 0.013646267354488373, 0.005623956210911274, 0.0284955445677042, -0.016390083357691765, -0.03324059024453163, -0.014563477598130703, 0.028069760650396347, 0.01714739389717579, -0.032225970178842545, 0.055005382746458054 ]
[ -0.07799141108989716, -0.013599407859146595, -0.05048743262887001, -0.025526531040668488, 0.031481411308050156, -0.05861115828156471, 0.024953793734312057, 0.018024466931819916, 0.020002884790301323, 0.0021119187586009502, -0.019491814076900482, -0.05459558218717575, -0.03438703715801239, -0.0016388464719057083, 0.08271539211273193, 0.028362246230244637, -0.025177178904414177, -0.037595633417367935, -0.0328880175948143, 0.009773960337042809, 0.027723347768187523, -0.021408727392554283, -0.02663443051278591, -0.04503488540649414, 0.027446119114756584, 0.020138278603553772, 0.013984269462525845, -0.015607180073857307, 0.022964399307966232, -0.18960773944854736, -0.0013048124965280294, 0.006156213115900755, 0.037286654114723206, -0.0006764693534933031, 0.01587560400366783, 0.008532894775271416, 0.015637651085853577, 0.028287045657634735, -0.020236225798726082, 0.07582224905490875, 0.00377427926287055, 0.03437323123216629, -0.040602583438158035, -0.02127552404999733, 0.05314433202147484, -0.006618693005293608, -0.014063536189496517, -0.01892898790538311, -0.02601715177297592, 0.0011476785875856876, -0.040514443069696426, -0.027899743989109993, -0.022024111822247505, -0.020213408395648003, 0.00615416094660759, 0.03699268773198128, 0.035696402192115784, 0.07355175167322159, 0.03999852389097214, 0.01931026391685009, 0.008939751423895359, -0.04784083738923073, -0.11270337551832199, 0.11019403487443924, 0.03263676166534424, 0.04698362201452255, 0.007304544560611248, -0.03311881795525551, 0.008087661117315292, 0.08938107639551163, 0.03920458257198334, -0.013343442231416702, -0.007563162595033646, 0.0382046140730381, 0.031690437346696854, -0.03328792378306389, -0.0010336858686059713, 0.022136978805065155, 0.04121243581175804, -0.02515452355146408, -0.06254009902477264, -0.007389478851109743, 0.00032204645685851574, 0.004109610803425312, -0.05099806562066078, 0.0282750241458416, -0.010586611926555634, 0.03512578085064888, 0.03252823278307915, 0.044122364372015, -0.008037000894546509, -0.040418967604637146, 0.0499221533536911, 0.03671480342745781, -0.08474460989236832, -0.001090822508558631, -0.02877887524664402, -0.019205117598176003, -0.057266902178525925, 0.41580355167388916, -0.034820087254047394, -0.03015599399805069, 0.05277290195226669, 0.020977964624762535, -0.011615069583058357, 0.03965732082724571, 0.0025243277195841074, -0.06662026792764664, -0.0040115052834153175, -0.054458197206258774, -0.026716439053416252, 0.015514625236392021, 0.002392673399299383, -0.05697489529848099, -0.0028531383723020554, -0.011153127998113632, 0.02290106564760208, 0.0027869807090610266, -0.008070496842265129, 0.015663115307688713, 0.013004370965063572, 0.014604153111577034, 0.020579954609274864, 0.06351164728403091, 0.014498302713036537, -0.045177001506090164, 0.013532915152609348, 0.06167794391512871, 0.03273064270615578, 0.008525901474058628, 0.02593088522553444, 0.006387151312083006, -0.10391327738761902, 0.006942307110875845, 0.017896689474582672, 0.027418406680226326, 0.01199453417211771, -0.02479185350239277, -0.003079982241615653, 0.023918889462947845, -0.00147082912735641, -0.03512641042470932, 0.028138739988207817, -0.02351841703057289, -0.049858223646879196, 0.11283547431230545, -0.012589254416525364, 0.0011315966257825494, -0.027372388169169426, -0.013019316829741001, 0.002623616484925151, 0.038737986236810684, -0.02069808356463909, -0.04749773442745209, 0.015647390857338905, 0.02787286788225174, 0.0658784881234169, -0.023212945088744164, -0.03545954078435898, -0.04096579551696777, -0.046882372349500656, 0.03025287389755249, -0.021826453506946564, 0.0002408064465271309, -0.007559611462056637, -0.10647281259298325, -0.052593715488910675, 0.02278107777237892, 0.017784172669053078, -0.08464273065328598, -0.009044871665537357, 0.02178097888827324, -0.05826898291707039, -0.01988123171031475, 0.06794405728578568, 0.010236692614853382, -0.0428406223654747, -0.012798366136848927, 0.031109189614653587, 0.04129389300942421, -0.015222019515931606, 0.022143322974443436, -0.04818120226264, -0.0030409647151827812, -0.03528875485062599, -0.0756165161728859, -0.04283331334590912, -0.01127984095364809, -0.0083735017105937, -0.019358370453119278, -0.0016926013631746173, -0.01121201179921627, -0.049347102642059326, 0.06547555327415466, -0.058094244450330734, -0.01052997075021267, 0.03515114635229111, 0.012218800373375416, 0.020091351121664047, -0.020968282595276833, 0.02583432011306286, 0.046153027564287186, -0.019461311399936676, 0.062494054436683655, -0.07711446285247803, 0.056779105216264725, 0.05084814876317978, -0.05018089711666107, 0.05350179597735405, 0.01645108126103878, -0.04609311744570732, -0.04089149832725525, -0.01912843808531761, 0.006994785275310278, -0.029283422976732254, -0.023117724806070328, 0.015059441328048706, 0.028347644954919815, 0.021471865475177765, -0.0006527133518829942, -0.06820684671401978, -0.014209986664354801, -0.010037480853497982, -0.33836883306503296, -0.02166673168540001, -0.012484154663980007, -0.0306291114538908, -0.026837050914764404, -0.06168631464242935, -0.01149831060320139, -0.031000569462776184, -0.03130536153912544, -0.01011592522263527, 0.07898519933223724, -0.05662309750914574, 0.011697574518620968, -0.07751751691102982, -0.0009921828750520945, 0.015547000803053379, -0.052580367773771286, -0.06322892010211945, -0.03543483465909958, 0.020948603749275208, -0.01879516988992691, 0.028807910159230232, -0.025276465341448784, -0.04910309985280037, 0.02173503302037716, -0.03819437697529793, 0.0846540704369545, -0.015256264247000217, 0.12072043120861053, -0.010607369244098663, 0.0885026752948761, 0.020672207698225975, -0.0035500216763466597, -0.09203676134347916, -0.01930987276136875, -0.008305883966386318, -0.006203043274581432, 0.024903709068894386, 0.04145903140306473, 0.013280018232762814, -0.0172090046107769, 0.024193044751882553, -0.03363202139735222, -0.05324486643075943, -0.006894589401781559, -0.021664856001734734, -0.006009094417095184, -0.017740972340106964, -0.0030282563529908657, 0.09474199265241623, -0.011069713160395622, -0.023614857345819473, 0.03791636973619461, 0.06378429383039474, -0.006068222224712372, -0.06144028902053833, -0.06457315385341644, -0.0019983642268925905, -0.0029547465965151787, 0.025020243600010872, 0.06249815970659256, 0.0380374975502491, 0.03164549544453621, -0.04111099615693092, -0.001716113300062716, -0.009909669868648052, -0.004788869991898537, -0.037003956735134125, 0.0409717932343483, -0.06374721229076385, -0.02207483910024166, 0.11066645383834839, -0.009386458434164524, 0.02594943903386593, 0.04526251181960106, 0.031143343076109886, -0.011333215981721878, 0.006856235209852457, -0.007269494701176882, 0.019715292379260063, -0.011113913729786873, 0.014042779803276062, 0.030609896406531334, -0.03022913634777069, 0.02100016362965107, 0.0194691251963377, -0.0436817891895771, 0.01767057739198208, 0.02912825718522072, -0.033937495201826096, -0.008882805705070496, -0.0033205789513885975, 0.006963709369301796, -0.07261507958173752, 0.059475239366292953, -0.0380147248506546, -0.26188063621520996, -0.001983539666980505, 0.10309797525405884, 0.06467366963624954, -0.02059616707265377, 0.017209893092513084, 0.029192907735705376, -0.05454840883612633, 0.008546722121536732, 0.013175573199987411, 0.014877710491418839, 0.030696623027324677, 0.018254339694976807, 0.020081745460629463, 0.037587832659482956, -0.010553335770964622, 0.03789721429347992, -0.009172888472676277, 0.018345395103096962, 0.0005010038148611784, 0.022525249049067497, -0.011527943424880505, 0.1867302507162094, 0.004441614728420973, 0.04991225153207779, 0.0020211993250995874, 0.007980531081557274, 0.030842524021863937, 0.07182925194501877, 0.037010982632637024, 0.03796100243926048, -0.004371691029518843, 0.09664870798587799, 0.016457805410027504, 0.042923830449581146, -0.09560363739728928, 0.013842126354575157, 0.023007838055491447, 0.02057650126516819, 0.010982672683894634, -0.04018683359026909, 0.02372509054839611, -0.06522448360919952, 0.02695084922015667, 0.07598467171192169, -0.0006188425468280911, -0.01627686806023121, -0.02778661623597145, -0.0381711982190609, -0.012541410513222218, -0.06066935881972313, -0.009115091525018215, 0.019901379942893982, -0.004774748347699642, 0.006581015884876251, 0.029536446556448936, 0.023465801030397415, -0.007670143153518438, -0.012080955319106579, 0.03636907413601875, 0.02099527232348919, 0.010507719591259956, 0.07635392248630524, 0.03772934898734093, 0.04019498452544212 ]
[ -0.01995858922600746, 0.008552095852792263, 0.009310441091656685, 0.02256026305258274, -0.009859991259872913, -0.005939704831689596, 0.028060439974069595, 0.05049091577529907, 0.002838332438841462, 0.0005923734279349446, -0.009565375745296478, -0.01334233395755291, 0.017433922737836838, -0.0016653985949233174, 0.027515361085534096, 0.01485352497547865, 0.019108537584543228, -0.04176165908575058, 0.011232295073568821, -0.011383247561752796, -0.007594204507768154, 0.043071046471595764, 0.012493368238210678, 0.00029433530289679766, 0.002228059805929661, -0.042856357991695404, -0.020131589844822884, 0.0036619186867028475, 0.030301127582788467, -0.0922122374176979, -0.025796907022595406, -0.020514976233243942, -0.010264875367283821, 0.024934113025665283, -0.029495233669877052, -0.019783418625593185, 0.005637611728161573, -0.004029472824186087, 0.0012176631717011333, 0.028812402859330177, -0.040768105536699295, -0.0591011680662632, -0.018742717802524567, 0.02289009466767311, -0.027890870347619057, 0.021704521030187607, 0.019524846225976944, 0.019139505922794342, -0.026069704443216324, 0.029013773426413536, -0.033893827348947525, -0.013432273641228676, -0.02010926604270935, 0.0175416711717844, 0.04742599278688431, 0.008194402791559696, -0.014124947600066662, 0.013182912021875381, 0.036275867372751236, -0.02568567916750908, 0.017195193096995354, 0.020180851221084595, -0.007953920401632786, -0.038135629147291183, 0.01643436774611473, -0.011536568403244019, -0.04168200120329857, 0.0020613817032426596, 0.023254526779055595, -0.009653397835791111, 0.013494228944182396, 0.041502051055431366, 0.015389101579785347, 0.016808105632662773, -0.0238945409655571, 0.037404756993055344, 0.015844028443098068, 0.00622136564925313, 0.016922224313020706, -0.0020924427080899477, -0.025336047634482384, -0.008469569496810436, 0.016314608976244926, 0.014274564571678638, 0.029697421938180923, 0.012488141655921936, 0.0020522812847048044, 0.014047256670892239, -0.009586192667484283, 0.05860751494765282, -0.03846725821495056, 0.004082358907908201, 0.012718014419078827, 0.027872512117028236, -0.09071021527051926, 0.010791470296680927, -0.020547160878777504, -0.050274062901735306, -0.025946352630853653, 0.8401473164558411, -0.05518946796655655, 0.03033393621444702, 0.05209018290042877, 0.012623483315110207, -0.0030070170760154724, -0.02264866791665554, -0.020404664799571037, -0.024368708953261375, 0.030139323323965073, -0.00878411065787077, 0.02842692844569683, 0.027411114424467087, 0.03750546649098396, 0.03411560878157616, 0.04191111773252487, 0.002920685103163123, 0.0037655080668628216, 0.008465452119708061, 0.03397145867347717, 0.020393013954162598, 0.026803594082593918, -0.01530510000884533, 0.02159157767891884, 0.001492679468356073, -0.0018676327308639884, -0.16158758103847504, -0.0061009651981294155, -7.305643023746791e-33, 0.045318879187107086, -0.0010211396729573607, -0.00583235826343298, 0.032294295728206635, 0.02120901085436344, 0.009446981362998486, 0.031594112515449524, 0.01810227893292904, -0.013374713249504566, -0.031656987965106964, -0.02590080350637436, -0.022138942033052444, 0.011592539958655834, -0.01706927828490734, 0.045518647879362106, -0.0374336913228035, -0.0036149665247648954, 0.028133966028690338, -0.009962286800146103, 0.019644124433398247, 0.04907338321208954, 0.04455644637346268, 0.005942254792898893, -0.03199974074959755, 0.021675357595086098, 0.04012451320886612, 0.016094977036118507, -0.007567775435745716, -0.016229253262281418, -0.03432769700884819, -0.04579988867044449, 0.02058614231646061, 0.01349959522485733, -0.01846255362033844, 0.0678713396191597, -0.0636746808886528, -0.003560998011380434, 0.005547259468585253, -0.03215545788407326, -0.039625752717256546, -0.004751249216496944, 0.00712365098297596, -0.03242690488696098, -0.034018807113170624, -0.04080883413553238, -0.01166794914752245, -0.011020319536328316, 0.034973934292793274, 0.0066148461773991585, -0.03325537592172623, 0.012395203113555908, 0.047966957092285156, -0.014441639184951782, -0.016657494008541107, 0.00009406448225490749, -0.01282522827386856, -0.03309930860996246, -0.022854579612612724, 0.024990597739815712, -0.02135467529296875, 0.011127440258860588, -0.016964709386229515, -0.0009116964647546411, 0.0028414411935955286, -0.0034308151807636023, -0.04318499192595482, -0.03599925711750984, -0.025624020025134087, 0.01588212326169014, -0.01530686765909195, -0.02091258578002453, 0.001988233532756567, -0.021344324573874474, -0.022226668894290924, -0.0017514894716441631, -0.010737479664385319, -0.00717191444709897, -0.0012463288148865104, -0.023500677198171616, -0.005508029833436012, -0.021058961749076843, -0.0058165257796645164, 0.015847759321331978, -0.02533610910177231, 0.025201212614774704, -0.028022563084959984, 0.020727090537548065, -0.02199971117079258, 0.005532943177968264, 0.02852707728743553, 0.008818486705422401, 0.0012424945598468184, -0.02128787711262703, -0.02363300882279873, -0.018085913732647896, 7.447477437433039e-33, -0.01587091200053692, -0.014523157849907875, -0.0413120798766613, -0.0027159941382706165, 0.008473374880850315, -0.024007542058825493, 0.02634161338210106, -0.019029030576348305, -0.03042132593691349, 0.018583526834845543, -0.03185775503516197, 0.02183983288705349, -0.023168940097093582, 0.013547530397772789, 0.057888858020305634, -0.04457705467939377, 0.01753428764641285, -0.050356674939394, 0.03577646613121033, -0.01811312697827816, 0.00011549259215826169, -0.018307873979210854, 0.0017050568712875247, 0.007721861824393272, -0.01686808466911316, 0.0491611585021019, -0.02640807442367077, -0.0015932739479467273, 0.014927550218999386, -0.02199183963239193, 0.010106181725859642, -0.00791932176798582, 0.041400205343961716, -0.05852905660867691, -0.021848946809768677, 0.014523244462907314, 0.002562253037467599, -0.04666724056005478, 0.05491519346833229, -0.009364297613501549, 0.10279959440231323, -0.01867934688925743, -0.026381315663456917, -0.00932534970343113, -0.025175612419843674, 0.008905486203730106, -0.0038826523814350367, -0.035642076283693314, 0.0113835409283638, 0.027628911659121513, 0.060958243906497955, -0.020238135010004044, 0.008154967799782753, -0.013946049846708775, 0.010581874288618565, -0.021427497267723083, 0.016708403825759888, -0.027737054973840714, -0.019558006897568703, 0.0151352034881711, -0.022140992805361748, 0.008799243718385696, -0.011175514198839664, 0.006920976564288139, -0.02525855228304863, -0.009901355020701885, -0.04344554618000984, -0.0059893373399972916, -0.01898297853767872, -0.018632864579558372, -0.011924337595701218, -0.046095896512269974, 0.01366463303565979, 0.030242757871747017, 0.02416999824345112, -0.01658317632973194, 0.01332310400903225, 0.004063412081450224, 0.016588471829891205, -0.004752341192215681, -0.001050192629918456, -0.010325873270630836, 0.034899692982435226, 0.007538129575550556, -0.007909651845693588, -0.009707022458314896, -0.03663015738129616, 0.031373657286167145, 0.020825134590268135, 0.0017565429443493485, -0.008109157904982567, 0.004314425401389599, 0.005382569041103125, 0.016529059037566185, 0.0259571373462677, -1.3100431850432415e-8, -0.06991119682788849, 0.02692110650241375, -0.02666672132909298, 0.05541234463453293, 0.011758198030292988, 0.004413374233990908, -0.02706841565668583, -0.017090780660510063, 0.035137828439474106, -0.013042262755334377, -0.004332247655838728, 0.022347938269376755, 0.0029824799858033657, -0.0019300876883789897, 0.041506435722112656, -0.04482710361480713, -0.015978269279003143, -0.049938078969717026, 0.018922314047813416, -0.0002800807124003768, 0.007567868568003178, 0.04591648653149605, -0.028711877763271332, -0.00196305220015347, 0.015347425825893879, -0.008257901296019554, 0.0174171831458807, -0.07986283302307129, -0.016105249524116516, 0.030824165791273117, -0.012856020592153072, -0.011822128668427467, -0.019227679818868637, 0.020765023306012154, -0.030857611447572708, 0.01587163284420967, 0.02628718689084053, 0.00808669626712799, 0.029771437868475914, -0.020671777427196503, 0.03491223230957985, 0.012704561464488506, -0.006439741235226393, -0.03225010260939598, -0.02536899782717228, 0.008360262960195541, -0.022336063906550407, 0.012830844148993492, 0.000021107460270286538, -0.021139537915587425, -0.04127440229058266, 0.038983844220638275, 0.011800493113696575, 0.025526804849505424, 0.0066263433545827866, 0.01404760591685772, 0.03037571720778942, -0.0191342830657959, -0.016188845038414, -0.01779286377131939, 0.03904857486486435, -0.012845722958445549, -0.005226000212132931, -0.011792049743235111 ]
f-setting-properties-like-named-parameters
https://markhneedham.com/blog/2009/06/29/f-setting-properties-like-named-parameters
false
2009-06-16 23:37:04
Book Club: Arguments and Results (James Noble)
[ "books", "papers", "james-noble", "arguments-and-results" ]
[ "Book Club" ]
We restarted our book club again last week by reading http://www.laputan.org/pub/patterns/noble/noble.pdf[James Noble's Arguments and Results paper], a paper I came across from a http://blog.objectmentor.com/articles/2009/02/26/10-papers-every-programmer-should-read-at-least-twice[Michael Feathers blog post a few months ago detailing 10 papers that every programmer should read]. We decided to try out the idea of reading papers/individual chapters from books as it allows us to vary the type of stuff we're reading more frequently and is an approach which http://blog.obiefernandez.com/content/2009/06/agile-design-o-rly.html[Obie seems to be having some success with]. This firs half of paper describes some approaches for detailing with complexity in the arguments that we send to methods and the second half approaches for the results that we get back from methods. We split the different patterns between us and attempted to come up with examples in code we'd worked on where we'd seen each of the patterns in use. == Arguments Object This pattern is used to simplify a method's signature by grouping up the common arguments and object and changing the method signature to take in this object instead. The author quotes http://en.wikipedia.org/wiki/Alan_Perlis[Alan Perlis] as saying "If you have a procedure with 10 parameters you probably missed some" which I think best sums up the reason why you would want to do this refactoring. Another advantage of doing this, which http://camswords.wordpress.com/[Cam] pointed out, is that it may help to bring out domain concepts which weren't explicit before. The disadvantage of this approach is that we make it more difficult for clients to use our API. I think this was http://www.markhneedham.com/blog/2009/04/27/coding-weakstrong-apis/#comment-15672[best summed up in a comment on a post I wrote about using weak or strong APIs] by 'Eric': ____ The choice is between passing (1) what the client probably has on hand already (the pieces) vs. passing (2) what the class demands (a pre-formed object). Which serves the client better and more naturally? Which brick-and-mortar shop gets more business--the one taking credit cards (already in the customers' hands), or the one demanding cash in some foreign currency (which the customers first have to go get)? Subordinate the service's convenience to the client's. Accept what a client likely has at the ready. (At the least, offer an overloaded constructor that does so.) ____ A simple example from some code I worked on recently involved refactoring a few methods similar to this: [source,csharp] ---- public void Process(string streetName, string streetNumber, string state) { } ---- to: [source,csharp] ---- public void Process(Address address) { } ---- Some other examples which we thought of were: * The way that Ruby makes use of hashmaps to pass data into constructors instead of passing in each option individually to a separate parameter * http://www.martinfowler.com/apsupp/spec.pdf[The specification pattern]/Query object pattern == Selector Object This pattern is used to try and reduce the number of similar methods that exist on an object by creating one method which takes in the original object and an additional 'selector object' argument which is used to determine what exactly we do inside the new method. The author also describes another way of solving this problem which is to build a small inheritance hierarchy and then make use of the double dispatch pattern to determine which specific method needs to be called. The advantage of this pattern is that it helps to simplify the API of the object as there is now just one method to call to perform that specific operation. The disadvantage is that the client of this object needs to do more work to use it although again I feel that this patterns helps to draw out domain concepts and move behaviour to the correct places. I worked on a project where we did something similar to this although I'm not sure if it's exactly the same: [source,csharp] ---- public abstract class OurObject { public abstract void Configure(Configuration configuration) } public class ObjectOne : OurObject { public void Configure(Configuration configuration) { configuration.ConfigureObjectOne(this); } } public class ObjectTwo : OurObject { public void Configure(Configuration configuration) { configuration.ConfigureObjectTwo(this); } } ---- [source,csharp] ---- public class Configuration { public void ConfigureObjectOne(ObjectOne objectOne) { // do config stuff } public void ConfigureObjectTwo(ObjectTwo objectTwo) { // do config stuff } ... } ---- We felt that possibly the http://en.wikipedia.org/wiki/Composite_pattern[composite pattern] might work well especially for the example described in the paper although we didn't come up with any other examples of this pattern on code we'd worked on. == Curried Object This pattern is used to help simplify the arguments that a client needs to send to an object by simplifying that interface through the use of a 'curried object' which takes care of any values that the object needs which the client doesn't need to worry about (these could be arguments which don't really change for example). The client now sends its arguments to the 'curried object' which is then sent to the object. I've come across the idea of http://diditwith.net/2008/01/30/WhyILoveFFunctionsFunctionsFunctions.aspx[currying] while playing around with F# and in the functional world it seems to be about composing functions together, each of which only takes in one argument. I'm not sure if the author uses such a strict definition as that. The advantage of this pattern is that it helps to simplify things for the client of the object although we now add in a level of indirection into the code because we send data to the 'curried object' which is actually executed by another example. I'm not sure whether it's strictly currying but an example which seemed to fit into this pattern is where we make calls to external services which might require some arguments passed to them that the rest of our application doesn't care about. We therefore keep this setup inside a 'Gateway' object which the rest of our code interacts with. The 'Gateway' object can then send the external services this data and the data we pass it. http://en.wikipedia.org/wiki/Iterator[Iterators] are suggested as being the most common use of currying in our code as they shield us from the internals of how the data is stored. == Result Object This pattern is used to allow us to keep the results of potentially expensive operations so that we don't need to make several of these expensive calls to get the data that we want. The advantage of doing this is that we are able to make out code more efficient although the client needs to do more work to get the data they care about out of the returned object. An example of this could be if we are making a call across the network to get some data. If there are three pieces of data that we want then it makes more sense to get all this data in one 'result object' instead of making individual calls for the data. I think this pattern is also useful in situations where there are multiple outcomes from an operation and we want to signify this in the result we return. An example of where this might be useful could be if we want to know whether a call was successful or not and if it wasn't then we want details about the way in which it failed. This could easily be modeled in a result object. I'm not sure whether an Option/Maybe in functional programming could be considered to be a result object - they do return more information than other data types do although this isn't for performance purposes. == Future Object This pattern is used when we want to perform an expensive operation and do something else while we wait for that operation to return - effectively we want to asynchronously process a result and then probably call a callback when it's done. This pattern is useful when we want to go and get some data via a network call but we don't want to freeze up the user interface while we're doing that. I think this pattern is probably more applicable for client side applications than on the web where the typical approach I've seen is to block the use from doing anything while an operation is being executed. Perhaps something like Gmail does make use of this pattern though, I'm not sure. The concurrency aspects should be taken care of by the 'future object' in this pattern meaning that the future object will be more complicated than other code. http://www.infoq.com/articles/pickering-fsharp-async[F# asynchronous work flows] certainly seem to be an example of this pattern whereby we make use of other threads to make network calls or put data into a database before returning results to the main thread when they're done. == Lazy Object This pattern is used when we want to return a result but we don't know whether or not that method will actually be called - we therefore only get the data when the method is actually called. The advantage of this is that we don't get data unnecessarily although it can be difficult to debug since we don't know exactly when the data is going to be fetched. An example of this is Hibernate which by http://docs.jboss.org/hibernate/stable/core/reference/en/html/performance.html[default lazy loads] our data. If we later on try to access some data inside an aggregate root then we need to ensure that we have a Hibernate session open so that it is able to go and fetch the data for us. F# also has a 'lazy' keyword which we can use to create lazy values which are only evaluated when specifically called: [source,ocaml] ---- let foo value = printfn "%d" value value > 10 let fooBar = lazy foo 10 > fooBar.Force();; 10 false ---- http://dotnetperls.com/lazy-linq-queries[LINQ in C#] also makes use of lazy evaluation. == In Summary I think this is a really interesting paper and it was the first one that caught my eye from briefly skimming through the 10 that Michael Feathers listed. I found it quite difficult explaining some of the patterns so if anything doesn't make sense or you can think of a better way describing a pattern then please let me know. Book club wise it was good to get to discuss what I'd read as others always come up with ideas that you hadn't thought of and we had some interesting discussions. Next time we are reading 'http://www.mockobjects.com/book/readability.html[The Readability of Tests]' from Steve Freeman and Nat Pryce's upcoming book 'http://www.mockobjects.com/book/index.html[Growing Object Oriented Software, guided by tests]'.
null
null
[ 0.002707510255277157, 0.008322587236762047, -0.026641372591257095, 0.015827223658561707, 0.0666625052690506, 0.009601372294127941, 0.03603494539856911, 0.013138086535036564, 0.021391121670603752, -0.008284755982458591, 0.01746515743434429, 0.0011785092065110803, -0.0673520565032959, -0.006905693560838699, -0.04735417291522026, 0.06437637656927109, 0.05843605101108551, -0.01432513352483511, 0.012689384631812572, 0.0005740848719142377, 0.01485530100762844, 0.07857060432434082, 0.005951596889644861, 0.02435644529759884, 0.04098906368017197, 0.007703984621912241, 0.002973027527332306, -0.009115132503211498, -0.05177280306816101, -0.004981712903827429, 0.016842538490891457, 0.0025958381593227386, 0.01521394681185484, 0.002302167471498251, 0.020815089344978333, -0.021183600649237633, -0.011272579431533813, 0.007137297187000513, 0.015907276421785355, 0.01012005377560854, -0.05687374249100685, 0.04677857458591461, -0.017582587897777557, 0.01280931942164898, -0.03199051320552826, 0.014936662279069424, -0.03488533943891525, 0.004182989709079266, -0.02611248753964901, -0.00010135494085261598, -0.06440679728984833, 0.04180363565683365, -0.01563536562025547, -0.012450379319489002, 0.007886466570198536, 0.05883714184165001, 0.02306537888944149, -0.05757402256131172, 0.012467512860894203, -0.04010101407766342, -0.02746858075261116, -0.012172681279480457, 0.017874306067824364, 0.03594224527478218, 0.02735036052763462, -0.017612766474485397, -0.026713447645306587, 0.04011085256934166, -0.032701510936021805, -0.020426468923687935, -0.026539241895079613, 0.004999153316020966, -0.007961024530231953, -0.011404755525290966, -0.00020211264200042933, -0.034185271710157394, 0.012989724054932594, 0.0647660493850708, 0.015534176491200924, 0.032047420740127563, -0.01015500072389841, 0.035502318292856216, 0.005008671432733536, 0.03300195187330246, 0.004591763019561768, -0.03849098086357117, -0.015971260145306587, -0.007097005844116211, -0.028402503579854965, 0.06017083302140236, 0.021430891007184982, -0.06853024661540985, 0.006258182693272829, 0.04322537034749985, 0.019099494442343712, 0.01328789722174406, 0.025629617273807526, 0.019978251308202744, -0.02920650690793991, -0.004209622275084257, -0.03225076571106911, -0.03312045708298683, 0.030203184112906456, -0.0015987317310646176, -0.0760192722082138, -0.0020132374484091997, -0.02246764674782753, -0.03197817876935005, 0.00480535626411438, 0.013879518024623394, -0.02715434320271015, 0.01047787256538868, -0.02860996127128601, 0.0012114731362089515, -0.06461012363433838, 0.07427314668893814, 0.007595067843794823, -0.05080017074942589, -0.019164958968758583, 0.01621602661907673, 0.027856657281517982, 0.04144206643104553, 0.012558974325656891, 0.07695537060499191, 0.01107263844460249, 0.008934665471315384, -0.022795315831899643, 0.07310633361339569, -0.022505564615130424, -0.05200062692165375, -0.003824444254860282, 0.0423564575612545, -0.030994201079010963, -0.006979986559599638, -0.013162214308977127, -0.022732475772500038, -0.006920591928064823, 0.013570333831012249, 0.03374997898936272, 0.04956519976258278, -0.014739267528057098, -0.0381232388317585, 0.012894450686872005, 0.0007250762428157032, 0.02280363440513611, -0.005713480990380049, 0.009199628606438637, -0.011405857279896736, -0.016088882461190224, -0.010194681584835052, 0.026579050347208977, 0.023749560117721558, 0.015510049648582935, -0.03621019795536995, 0.012795084156095982, 0.09323644638061523, 0.013845293782651424, 0.04279971495270729, -0.005446729715913534, 0.021558834239840508, 0.03463985398411751, 0.04917258769273758, 0.0030777323991060257, 0.03491593897342682, 0.006638222374022007, -0.009825815446674824, -0.010099947452545166, 0.06409186869859695, 0.009566513821482658, 0.008899140171706676, -0.06592946499586105, -0.03457389771938324, 0.05240919440984726, -0.04022490978240967, -0.006459524855017662, 0.005984035320580006, 0.0900493636727333, 0.021637892350554466, 0.047958679497241974, 0.007848219946026802, -0.07676997780799866, 0.020201506093144417, 0.01111093070358038, -0.009709206409752369, -0.011684222146868706, -0.025721009820699692, 0.06386572122573853, 0.043007224798202515, 0.0029462147504091263, 0.046918436884880066, -0.07243902236223221, -0.0746026486158371, 0.0003393623628653586, -0.020718799903988838, 0.06440116465091705, -0.03217146918177605, 0.011477855034172535, 0.09123741835355759, 0.016153378412127495, 0.047521259635686874, 0.03343011438846588, 0.01272235531359911, 0.003969702869653702, -0.040469855070114136, -0.035965364426374435, 0.03506363555788994, 0.038589317351579666, 0.017565924674272537, -0.04464176669716835, 0.004684198647737503, -0.01854570396244526, 0.009824695065617561, 0.036225493997335434, -0.0061500705778598785, 0.011576789431273937, 0.009128974750638008, 0.0800318717956543, -0.026166284456849098, 0.07542246580123901, -0.07238391786813736, -0.0072203814052045345, -0.0030517380218952894, -0.002772834151983261, 0.018044106662273407, -0.006582890171557665, 0.1342131644487381, 0.06751071661710739, -0.04602587968111038, -0.023891562595963478, 0.022119585424661636, 0.011514493264257908, -0.02743077278137207, 0.019350919872522354, -0.006757667288184166, 0.002074779011309147, 0.00641509797424078, -0.06090904027223587, -0.025332165881991386, 0.010389604605734348, -0.04283233731985092, 0.0033542655874043703, 0.07234801352024078, -0.017579292878508568, 0.04822840914130211, 0.01026723999530077, -0.014376714825630188, -0.01750509813427925, -0.025137117132544518, -0.038926515728235245, 0.024333365261554718, 0.00340033951215446, -0.0196242518723011, 0.05613702908158302, -0.043186817318201065, -0.02808118797838688, -0.029795531183481216, -0.04398399591445923, 0.009121461771428585, 0.061876848340034485, 0.059573233127593994, -0.02004283294081688, 0.06563565135002136, -0.007151381112635136, 0.012260080315172672, -0.0018829284235835075, -0.06025197356939316, -0.030664600431919098, -0.022698326036334038, -0.0038577362429350615, 0.044369738548994064, 0.019010361284017563, 0.04735162854194641, 0.017408575862646103, 0.008913607336580753, -0.028684545308351517, -0.026213768869638443, 0.05244176834821701, -0.016957415267825127, -0.029813291504979134, -0.030082281678915024, -0.04425816237926483, 0.04516467824578285, -0.04426952451467514, -0.03665836527943611, 0.0013142212992534041, -0.07690441608428955, 0.05924684926867485, -0.08170707523822784, -0.06663002818822861, 0.011538982391357422, 0.03228143975138664, 0.05522933974862099, 0.014713666401803493, 0.011010888032615185, 0.07162916660308838, 0.01567118801176548, -0.02199445106089115, -0.009560726583003998, 0.007178690284490585, 0.034426309168338776, 0.010325642302632332, -0.021641194820404053, 0.0584779754281044, 0.004077918827533722, -0.0070185586810112, -0.059891678392887115, 0.03590289130806923, 0.010877927765250206, -0.27654850482940674, 0.02744164504110813, -0.004491416271775961, -0.04813365638256073, 0.005043326411396265, 0.0056082503870129585, 0.01009104959666729, -0.05728647857904434, 0.0007730200886726379, 0.03441469371318817, -0.03715834394097328, -0.04044777899980545, -0.031060470268130302, 0.06037971377372742, 0.01028013601899147, 0.03164822980761528, 0.006018523126840591, -0.03943697735667229, 0.0011586882174015045, 0.06291893124580383, -0.012291871011257172, -0.07615343481302261, 0.007394223008304834, 0.03843782842159271, 0.0073219179175794125, 0.04717231169342995, -0.10641885548830032, 0.024090882390737534, -0.04456574469804764, -0.003701448906213045, 0.014331688173115253, 0.011708535254001617, 0.000269654905423522, -0.04480864480137825, -0.011349204927682877, -0.013661971315741539, 0.028074603527784348, 0.019789960235357285, -0.018458645790815353, 0.04582243412733078, -0.02066321112215519, -0.029927916824817657, -0.024694105610251427, 0.0015329611487686634, 0.07457243651151657, 0.00809289701282978, -0.06317553669214249, -0.01935586705803871, -0.027729062363505363, 0.08296710252761841, -0.05785788968205452, -0.045966118574142456, -0.00012891538790427148, 0.024043027311563492, -0.004211437422782183, -0.041233327239751816, 0.006930546835064888, -0.02995273657143116, -0.03509720042347908, -0.03952167555689812, -0.0003662831149995327, -0.033391401171684265, 0.008657137863337994, -0.046241819858551025, -0.017982376739382744, -0.056744299829006195, -0.05182618647813797, -0.01049852091819048, 0.0750168040394783, 0.04164402186870575, -0.04900656268000603, 0.022987589240074158, -0.019996458664536476, -0.11339099705219269, -0.016525181010365486, -0.02176429145038128, -0.014942193403840065, 0.002987324260175228, 0.003337899688631296, 0.05768517032265663, -0.01960172690451145, -0.05265286937355995, 0.003953984007239342, 0.016478024423122406, 0.03980550542473793, -0.026897985488176346, 0.01066136546432972, -0.008149837143719196, -0.03345942497253418, 0.004325868096202612, 0.055314116179943085, 0.0160361360758543, -0.014907418750226498, -0.019827868789434433, 0.030371326953172684, 0.02854233980178833, 0.04280108958482742, -0.03162518888711929, 0.0057984692975878716, 0.039252735674381256, -0.0005177616258151829, -0.0650760680437088, 0.0309321116656065, -0.020106319338083267, -0.01798292063176632, -0.0256943441927433, -0.04663560166954994, 0.017906449735164642, 0.034112975001335144, -0.006600795313715935, 0.007490960415452719, -0.034271929413080215, 0.02567402832210064, -0.04898887872695923, -0.027174213901162148, -0.017592862248420715, 0.012254404835402966, 0.04127016291022301, -0.040607012808322906, -0.02251206710934639, -0.07782484591007233, 0.00672253267839551, -0.01585383713245392, -0.0316154807806015, -0.04667596146464348, -0.055292073637247086, -0.009194557555019855, -0.03584443777799606, 0.006791732273995876, 0.024250060319900513, -0.015755660831928253, 0.017573723569512367, 0.02391057275235653, -0.049664679914712906, 0.0021682840306311846, -0.012368276715278625, -0.054995082318782806, -0.029728349298238754, -0.02256472036242485, -0.01325311604887247, 0.016126958653330803, 0.009220488369464874, 0.007797981612384319, 0.04457114636898041, 0.020215407013893127, -0.010519098490476608, 0.023584797978401184, -0.0011069378815591335, 0.005500221624970436, 0.015844671055674553, 0.00032672524685040116, -0.07465283572673798, 0.027700431644916534, -0.030618401244282722, -0.022113163024187088, -0.044413693249225616, 0.020213374868035316, 0.002200572518631816, -0.035606324672698975, -0.02180551365017891, 0.03305378183722496, -0.04155995324254036, -0.03450055792927742, -0.04042442888021469, 0.0052857063710689545, 0.05916114151477814, -0.0324227474629879, 0.047673046588897705, -0.03451048955321312, -0.05137354135513306, 0.019517187029123306, 0.0032133441418409348, -0.017203565686941147, 0.026028983294963837, 0.006654993165284395, -0.011960301548242569, 0.0047453041188418865, 0.004863252397626638, 0.04733295366168022, 0.003102039685472846, -0.008305813185870647, -0.04012333229184151, 0.008525168523192406, 0.0038365682121366262, 0.06843745708465576, 0.005479041486978531, -0.0013290587812662125, -0.008740229532122612, -0.040227580815553665, -0.0214820709079504, -0.04081958904862404, 0.005112632177770138, 0.013650642707943916, 0.04137849062681198, -0.036289989948272705, -0.07666177302598953, 0.043783772736787796, 0.046904999762773514, 0.004176896996796131, -0.0022566518746316433, -0.0026906048879027367, 0.01286673080176115, -0.026111429557204247, 0.01396314799785614, 0.03895449638366699, -0.054481785744428635, 0.005634281784296036, -0.02516862563788891, 0.011425902135670185, 0.021229581907391548, 0.014327377080917358, -0.05068591982126236, -0.013680469244718552, -0.003203979693353176, 0.005427921190857887, -0.048727039247751236, -0.03380441293120384, -0.02448967657983303, 0.018002508208155632, 0.006319201085716486, -0.008159022778272629, -0.026321720331907272, -0.0038000610657036304, -0.014419600367546082, -0.022386278957128525, 0.03285842016339302, -0.04071061685681343, -0.009219660423696041, 0.029960187152028084, -0.041392337530851364, 0.027975276112556458, -0.02670135349035263, 0.011506136506795883, 0.013538266532123089, -0.012906727381050587, -0.013317436911165714, -0.03434235602617264, 0.006644900422543287, -0.00982650276273489, 0.06485674530267715, -0.008456612937152386, -0.018737496808171272, -0.028750013560056686, -0.00876501016318798, -0.054362885653972626, 0.03665175661444664, -0.039150312542915344, -0.029192838817834854, 0.013692695647478104, 0.07617107778787613, 0.015882430598139763, 0.033031001687049866, 0.007410677149891853, -0.02298385091125965, 0.047668248414993286, -0.04581970348954201, -0.03198796510696411, -0.03271326422691345, -0.06042778491973877, 0.01547432690858841, 0.02284333109855652, 0.016402537003159523, -0.040427662432193756, 0.04620708152651787, 0.01907634548842907, 0.03499060869216919, 0.05135617405176163, 0.0034907760564237833, 0.029455162584781647, -0.03390589728951454, 0.014259831048548222, -0.09280707687139511, 0.014627259224653244, 0.04300060123205185, 0.010731487534940243, -0.02088461071252823, -0.020903781056404114, -0.03139160946011543, 0.052010584622621536, -0.09203749895095825, -0.008900594897568226, 0.023125290870666504, 0.01653842255473137, -0.02164962701499462, -0.007172999903559685, -0.07263890653848648, 0.030001718550920486, 0.034533027559518814, -0.03398953378200531, -0.012755252420902252, -0.03049389086663723, 0.04169049486517906, 0.013291786424815655, 0.02292969450354576, -0.00016279223200399429, 0.012478367425501347, 0.07817801088094711, 0.007652005180716515, -0.011189916171133518, 0.037892505526542664, -0.02147025614976883, 0.042535144835710526, 0.03871778026223183, -0.004849532153457403, -0.005552077665925026, 0.006953793112188578, -0.005863032303750515, -0.06853950768709183, 0.028223494067788124, 0.008024279028177261, -0.05589357018470764, -0.02832646854221821, 0.06686028093099594, 0.01999892108142376, -0.039482228457927704, -0.06498931348323822, 0.00668894499540329, -0.05039218068122864, 0.0018635900923982263, -0.007695693988353014, 0.0021527886856347322, -0.027497440576553345, 0.040111392736434937, -0.01382535696029663, 0.0008888066513463855, 0.049950338900089264, -0.011732303537428379, -0.009183217771351337, -0.03786252811551094, 0.09010321646928787, 0.08222295343875885, 0.06954173743724823, 0.009134531952440739, 0.059922847896814346, -0.018330834805965424, -0.041528113186359406, 0.0018012498039752245, -0.0024454933591187, -0.020657798275351524, -0.02064880169928074, 0.02917773649096489, 0.06041882187128067, -0.006578000728040934, 0.037254706025123596, -0.02395639568567276, -0.014580191113054752, -0.011674108915030956, 0.021107669919729233, 0.016060134395956993, 0.07952576130628586, 0.026340408250689507, 0.02972688153386116, -0.031807996332645416, -0.03171035274863243, 0.031970247626304626, -0.02105163037776947, -0.024208592250943184, 0.012973019853234291, -0.0012272471794858575, 0.029431544244289398, 0.02732914127409458, 0.05794470012187958, 0.061444882303476334, -0.022064248099923134, -0.0005522047285921872, -0.0015409588813781738, 0.028703220188617706, 0.007815266959369183, -0.011038709431886673, -0.006055035162717104, -0.03171093761920929, 0.0012462136801332235, -0.014420847408473492, -0.005614055786281824, -0.017466951161623, -0.018280424177646637, 0.0665724128484726, -0.011526082642376423, -0.0087202750146389, 0.020614707842469215, 0.021092280745506287, -0.037850867956876755, -0.05878384783864021, -0.047311410307884216, -0.026125049218535423, -0.04328151047229767, -0.020486660301685333, 0.01625151000916958, 0.0023147573228925467, -0.04323188215494156, -0.024335945025086403, 0.002840849105268717, -0.03629535064101219, 0.05645732209086418, -0.0513564832508564, -0.010796868242323399, 0.019827652722597122, 0.03867282345890999, 0.022314751520752907, 0.014968611299991608, 0.024644406512379646, -0.0012148693203926086, -0.008836997672915459, -0.014505743980407715, 0.00825191754847765, 0.024872658774256706, 0.01125627662986517, 0.02463141269981861, -0.07807988673448563, 0.022245490923523903, 0.022473832592368126, -0.006816118955612183, -0.07805296778678894, 0.027972469106316566, 0.01620246283710003, -0.010315926745533943, 0.04475407674908638, -0.014372008852660656, 0.004062266554683447, -0.020717447623610497, -0.004978075623512268, -0.006037362851202488, 0.0466650053858757, 0.026915041729807854, -0.004448083229362965, 0.07857409864664078, 0.02503010630607605, -0.03257061541080475, -0.05169692635536194, -0.01187106966972351, -0.0016649033641442657, 0.016970321536064148, -0.02846471592783928, -0.023710617795586586, -0.020648540928959846, -0.05465969443321228, -0.05219603329896927, 0.030273189768195152, -0.023448629304766655, -0.022647975012660027, 0.03272714093327522, 0.030925504863262177, -0.04531530663371086, 0.033309753984212875, -0.03622003272175789, 0.05153718963265419, -0.01855144463479519, -0.0027354045305401087, 0.0022949615959078074, 0.00014565889432560652, 0.006954871583729982, 0.01381436362862587, 0.0004073046147823334, -0.03686169907450676, -0.02171524241566658, 0.005759037099778652, 0.027680400758981705, 0.0379672609269619, -0.010013135150074959, -0.022631365805864334 ]
[ -0.0960465669631958, -0.005144331604242325, -0.0434570387005806, -0.024629317224025726, 0.03843921050429344, -0.03424542024731636, -0.02587215229868889, 0.02935713715851307, 0.014178132638335228, -0.023669028654694557, -0.01236437913030386, -0.008819261565804482, -0.02150874026119709, -0.017206892371177673, 0.06683189421892166, -0.015507765114307404, 0.015440160408616066, -0.05561763048171997, -0.005330548621714115, 0.018386421725153923, 0.011096338741481304, -0.007752681616693735, -0.04189564660191536, -0.02350142039358616, 0.004427049309015274, 0.049481648951768875, 0.008384378626942635, -0.037391338497400284, 0.019027719274163246, -0.2050873339176178, -0.011535261757671833, 0.019865212962031364, 0.040710993111133575, -0.015574034303426743, 0.009296134114265442, 0.04981353506445885, 0.03164982795715332, 0.027477137744426727, 0.0032848555129021406, 0.04549882560968399, 0.013868673704564571, 0.014844013378024101, -0.03287184238433838, 0.0068886238150298595, 0.049194250255823135, 0.015605239197611809, -0.016869112849235535, -0.03821156173944473, -0.01754608564078808, -0.00532070966437459, -0.07931223511695862, -0.02535698376595974, -0.011987363919615746, -0.03785882145166397, -0.0038057060446590185, 0.018526410683989525, 0.028679197654128075, 0.08103897422552109, -0.0014113999204710126, 0.008222565054893494, 0.019283665344119072, -0.02915717288851738, -0.13039863109588623, 0.1033085361123085, 0.048214998096227646, 0.059719543904066086, -0.04592547565698624, -0.026234475895762444, -0.008158870041370392, 0.08760153502225876, 0.008615086786448956, -0.02039000205695629, -0.01718522235751152, 0.036887578666210175, 0.02358376421034336, 0.0041032470762729645, -0.0019729232881218195, 0.00035676159313879907, 0.034194957464933395, -0.059894271194934845, -0.03671274706721306, -0.014766172505915165, -0.0006649675196968019, -0.009454773738980293, -0.04275622218847275, 0.029622109606862068, -0.014731105417013168, 0.03626367449760437, 0.05663096532225609, 0.01590120978653431, 0.056121475994586945, -0.01712513528764248, 0.03399187698960304, 0.025567676872015, -0.09225866198539734, -0.023794036358594894, -0.010859033092856407, 0.020257610827684402, -0.022503556683659554, 0.4426937699317932, -0.03190859034657478, -0.022758381441235542, 0.06434483081102371, 0.04216805472970009, -0.009601568803191185, -0.013908152468502522, 0.028127990663051605, -0.07993242144584656, 0.029789598658680916, -0.01550210826098919, 0.006604493595659733, 0.0067586880177259445, 0.06756006926298141, -0.050144046545028687, -0.0053137680515646935, 0.02092784456908703, 0.03760526701807976, 0.022145608440041542, -0.0017680544406175613, 0.0010656195227056742, -0.01033336203545332, -0.014459734782576561, 0.01593725010752678, 0.01366196945309639, -0.01192264724522829, -0.04589710757136345, 0.01903257891535759, 0.07009870558977127, 0.027908995747566223, 0.013190723024308681, 0.06691479682922363, -0.030594477429986, -0.08067358285188675, -0.01855464279651642, 0.016590729355812073, 0.02584144100546837, 0.016479678452014923, -0.015721045434474945, 0.0053686778992414474, 0.023771272972226143, 0.004063975997269154, 0.005632597953081131, 0.022260377183556557, 0.004158048424869776, -0.03344055637717247, 0.12133892625570297, 0.02622445859014988, -0.040231674909591675, -0.018231013789772987, -0.04612767696380615, 0.008875079452991486, 0.03929378464818001, -0.014263463206589222, -0.062304578721523285, 0.018985791131854057, 0.006521670613437891, 0.09609214961528778, -0.01248916145414114, -0.06091274321079254, -0.006961921229958534, -0.017208099365234375, -0.009339526295661926, -0.05213251709938049, 0.030031589791178703, 0.04837428033351898, -0.10546348243951797, -0.006802907679229975, -0.002454654313623905, 0.008439037017524242, -0.07091774046421051, 0.00512302340939641, 0.0068078311160206795, -0.026688605546951294, 0.01956283673644066, 0.05797090381383896, -0.0033854329958558083, -0.030112601816654205, 0.004538424778729677, 0.059463534504175186, 0.012403329834342003, 0.00527309812605381, 0.01471343170851469, -0.05564272403717041, 0.011426630429923534, -0.028565557673573494, -0.06088964268565178, -0.06368038803339005, -0.02802511304616928, -0.01603672280907631, 0.008488955907523632, -0.018839389085769653, -0.027154237031936646, -0.08747551590204239, 0.0802779421210289, -0.03777732700109482, -0.019711293280124664, 0.020745523273944855, -0.006333453115075827, -0.03831250220537186, -0.002633624942973256, -0.04895765706896782, 0.026153264567255974, -0.03662167489528656, 0.04374212771654129, -0.042097341269254684, 0.04499891400337219, 0.06320136785507202, -0.05917729437351227, 0.08086886256933212, 0.04925980791449547, -0.03999801725149155, -0.051342256367206573, -0.010692459531128407, 0.030456406995654106, -0.015445677563548088, -0.014549709856510162, 0.0039018974639475346, 0.026554590091109276, -0.012987356632947922, 0.013783780857920647, -0.042243391275405884, -0.03241094574332237, -0.03504117578268051, -0.326931893825531, -0.034609925001859665, -0.016828635707497597, -0.03541472181677818, 0.019353343173861504, -0.05470754951238632, 0.02023155987262726, -0.007167350966483355, -0.036512114107608795, 0.01313734706491232, 0.06917187571525574, -0.02141774259507656, 0.0033986689522862434, -0.09017360210418701, -0.0046323989517986774, 0.027835721150040627, -0.05632341280579567, -0.046836551278829575, -0.0490029938519001, 0.02613101713359356, 0.01436433382332325, -0.017640210688114166, -0.01995757594704628, -0.05266297981142998, -0.015929320827126503, -0.04813545197248459, 0.08819430321455002, 0.01933009922504425, 0.10572827607393265, -0.02127450704574585, 0.028779800981283188, 0.006498079746961594, 0.01949981041252613, -0.09284637868404388, -0.01491907611489296, 0.0024904722813516855, -0.006661260034888983, -0.030182529240846634, 0.04009375348687172, -0.033300768584012985, -0.037429120391607285, 0.03989352285861969, -0.03746487572789192, -0.033097028732299805, -0.07777021080255508, 0.01958228461444378, -0.005473905708640814, -0.04322563484311104, -0.01848980411887169, 0.07398872822523117, 0.01696278713643551, 0.005867696832865477, 0.0041512176394462585, 0.01518795732408762, -0.041768670082092285, -0.013130181469023228, -0.08323395997285843, -0.00759760569781065, 0.0066708531230688095, 0.010303611867129803, 0.019439980387687683, 0.06274423003196716, 0.019144754856824875, -0.04607175663113594, 0.019054511561989784, 0.0030283296946436167, -0.00024657166795805097, -0.005561994854360819, 0.05631090700626373, -0.026196273043751717, -0.014733772724866867, 0.0924811065196991, 0.003342415438964963, -0.023186326026916504, 0.018597153946757317, 0.05346306413412094, 0.0023426800034940243, 0.04459095001220703, 0.014438560232520103, -0.0026183088775724173, 0.021462073549628258, -0.024646375328302383, 0.02867846004664898, -0.034959472715854645, 0.0029162734281271696, 0.02054363116621971, -0.024743016809225082, -0.03195434436202049, 0.04501476511359215, 0.0004735541879199445, -0.032761815935373306, 0.017988182604312897, -0.026675567030906677, -0.03144359588623047, 0.0722070038318634, 0.010510829277336597, -0.2349633127450943, 0.00903963204473257, 0.07415138930082321, 0.06620091944932938, 0.0023014338221400976, 0.06555778533220291, 0.022536734119057655, -0.07452046126127243, 0.023302575573325157, -0.0002842438989318907, 0.03950904682278633, 0.03860186040401459, -0.007905838079750538, -0.02339325286448002, 0.03677497059106827, 0.003371473867446184, 0.05014169216156006, -0.005827433429658413, 0.01717800460755825, -0.0033538423012942076, 0.013314539566636086, 0.01119401678442955, 0.16525982320308685, -0.004147928673774004, 0.036399610340595245, 0.01589839532971382, 0.031621627509593964, 0.01784377731382847, 0.06911870092153549, 0.028988057747483253, 0.01786842569708824, -0.006280744448304176, 0.04348095878958702, 0.01079687848687172, 0.01839807629585266, -0.09134511649608612, -0.014926224946975708, 0.017493052408099174, 0.03286292031407356, -0.022544467821717262, 0.023767014965415, -0.00646939454600215, -0.057749081403017044, 0.01799074187874794, 0.05557446926832199, 0.01717502251267433, -0.031853314489126205, -0.050532154738903046, -0.036055125296115875, 0.0018404065631330013, -0.03562158718705177, -0.047299742698669434, -0.006885608192533255, 0.0037052154075354338, 0.014990565367043018, 0.06520914286375046, 0.020675932988524437, -0.013435554690659046, -0.01584627851843834, 0.011762217618525028, -0.012769983150064945, -0.03015325218439102, 0.13794946670532227, 0.061853133141994476, 0.04845096915960312 ]
[ -0.0360882505774498, 0.0034553236328065395, -0.0289563350379467, -0.027147401124238968, -0.015387976542115211, 0.003182734828442335, -0.001607078593224287, 0.034496597945690155, -0.007751333061605692, -0.0035934546031057835, -0.020033787935972214, 0.07010816782712936, 0.04245022311806679, -0.004463047254830599, 0.03973093628883362, 0.0012255936162546277, -0.005948616191744804, -0.013424971140921116, 0.010039474815130234, 0.022762322798371315, -0.030944587662816048, 0.04614398255944252, -0.011165333911776543, -0.003908922895789146, -0.020878884941339493, 0.00699964864179492, -0.0098432507365942, -0.05101236701011658, 0.018947506323456764, -0.10597658902406693, -0.005421807989478111, -0.02687225118279457, -0.019469883292913437, 0.0315437838435173, -0.012222939170897007, 0.0002893359924200922, -0.015453360974788666, 0.0022000959143042564, 0.0208699069917202, 0.006749533582478762, -0.019823044538497925, -0.018756520003080368, -0.034581318497657776, -0.00511271832510829, 0.003636688459664583, 0.00754645187407732, -0.03490545600652695, -0.024355566129088402, -0.0028349889907985926, -0.005832646042108536, -0.04313712939620018, -0.02698362246155739, -0.037837956100702286, -0.006999270524829626, 0.01581702195107937, -0.017443718388676643, -0.006614793092012405, -0.010464740917086601, -0.00759467389434576, -0.04916269704699516, -0.005314401816576719, 0.019484084099531174, -0.053901974111795425, -0.008890214376151562, -0.02366204373538494, 0.016730543226003647, -0.0028376507107168436, 0.011409302242100239, 0.0032549207098782063, 0.008352190256118774, 0.0034489398822188377, 0.022121820598840714, -0.01766388490796089, -0.03523627668619156, 0.021619774401187897, -0.002530112862586975, 0.0003333112981636077, -0.023679718375205994, 0.018246689811348915, -0.03579821437597275, -0.03844772279262543, 0.012713740579783916, -0.027911854907870293, -0.006555724889039993, -0.011694193817675114, -0.007948124781250954, 0.0225262138992548, -0.012001503258943558, 0.019427314400672913, -0.0013167840661481023, 0.000219026071135886, 0.010367305018007755, 0.0021948732901364565, 0.006670897826552391, -0.09603738784790039, 0.005366787780076265, 0.021294983103871346, -0.024386361241340637, -0.006845267489552498, 0.8695042729377747, -0.0031176244374364614, 0.06217864528298378, 0.06340139359235764, -0.02031206153333187, 0.011036951094865799, -0.004985513631254435, -0.009415612556040287, -0.03507297486066818, 0.017242489382624626, -0.05447344481945038, -0.0003973850980401039, 0.010842577554285526, 0.0227238517254591, 0.017459848895668983, 0.014436041936278343, 0.02802768535912037, 0.03607406094670296, 0.0018934125546365976, -0.008326798677444458, 0.006756296847015619, 0.0036311354488134384, -0.009266665205359459, 0.0028284448198974133, 0.0017818330088630319, 0.0004253196530044079, -0.1580825001001358, 0.008507505990564823, -8.554087084613171e-33, 0.03060871921479702, -0.006473127752542496, -0.010555602610111237, 0.0035463273525238037, 0.006988363340497017, -0.026047324761748314, 0.04048670828342438, 0.01964038796722889, 0.00030572531977668405, -0.030594076961278915, -0.002847707597538829, -0.008379065431654453, 0.014070799574255943, -0.002816978842020035, 0.04992053657770157, 0.013177571818232536, -0.010120304301381111, 0.034812066704034805, -0.008192216977477074, 0.026039419695734978, 0.03218700364232063, 0.02832792140543461, 0.002718727570027113, -0.0027247846592217684, 0.0038085838314145803, 0.04242711514234543, 0.02775600738823414, 0.0034522470086812973, -0.03470208868384361, -0.043131399899721146, 0.00909183919429779, 0.02615838684141636, -0.022680150344967842, -0.021784748882055283, 0.02302725613117218, -0.02434966340661049, -0.010039516724646091, 0.00463836221024394, 0.015935128554701805, -0.036079008132219315, -0.024259978905320168, -0.009611207991838455, -0.02866489440202713, 0.005329624284058809, -0.0009196393075399101, -0.0027987395878881216, 0.005558989476412535, 0.03238594904541969, 0.035854894667863846, -0.014255001209676266, -0.0011887965956702828, 0.01876203715801239, 0.009997663088142872, 0.013766780495643616, 0.01251487247645855, -0.013388682156801224, -0.007212367374449968, 0.03750407695770264, 0.024314315989613533, 0.02472815290093422, 0.039204586297273636, -0.01961689628660679, -0.008014626801013947, 0.04500260204076767, -0.024475501850247383, -0.030508235096931458, -0.011037800461053848, 0.030413635075092316, 0.0420868881046772, -0.010745960287749767, -0.030381198972463608, 0.01587342843413353, -0.024551259353756905, -0.025323979556560516, 0.015246512368321419, -0.018178362399339676, 0.028642218559980392, -0.0071546174585819244, -0.015667900443077087, 0.01665809191763401, 0.009382398799061775, 0.039850156754255295, 0.00037874607369303703, -0.006405831780284643, -0.010186313651502132, 0.027351509779691696, 0.02990580163896084, -0.02155674248933792, -0.02246406488120556, -0.012972072698175907, 0.04241911321878433, -0.011038931086659431, -0.008479327894747257, -0.029894353821873665, -0.014759667217731476, 8.270405767613198e-33, -0.0044583468697965145, -0.050286754965782166, -0.030384626239538193, 0.017725570127367973, -0.0030136534478515387, -0.016584454104304314, -0.0006719671073369682, 0.009502177126705647, -0.048622049391269684, 0.049171023070812225, -0.04287298023700714, 0.009712042286992073, -0.01407984271645546, 0.013609602116048336, 0.04413067176938057, -0.03201761096715927, 0.010020002722740173, -0.008834389969706535, 0.027443427592515945, -0.002945835003629327, 0.031834542751312256, 0.013908717781305313, 0.017770303413271904, -0.009808230213820934, 0.01992609165608883, 0.045695796608924866, -0.04666772112250328, 0.0009524261695332825, -0.002738382900133729, -0.011128367856144905, -0.005056656431406736, -0.0027901914436370134, 0.007616884540766478, -0.002736009657382965, -0.03721568360924721, 0.01969686895608902, 0.015554548241198063, -0.013835392892360687, -0.01084528211504221, -0.0189882293343544, 0.02640520967543125, -0.01495694275945425, -0.00584105309098959, 0.000968237582128495, 0.008496655151247978, 0.0006904688780196011, 0.0049783955328166485, -0.029859598726034164, -0.005187876522541046, 0.017330488190054893, 0.014783273451030254, 0.004385952837765217, 0.021934302523732185, 0.0075540137477219105, -0.011385461315512657, -0.0014094988582655787, -0.00776328518986702, -0.0036109182983636856, -0.022183870896697044, 0.0046052210964262486, -0.02799333818256855, 0.023002058267593384, -0.03373032435774803, 0.011419718153774738, -0.02562537044286728, -0.01711679995059967, 0.01145506277680397, -0.015505751594901085, -0.007035841699689627, -0.01098816841840744, -0.04289887100458145, 0.0059590693563222885, 0.036389127373695374, 0.02557232789695263, 0.02264513447880745, -0.0017429320141673088, -0.0176628977060318, 0.005358204711228609, -0.01477405708283186, 0.021686246618628502, 0.015620091930031776, -0.035188958048820496, 0.003951733931899071, 0.01856629177927971, -0.02077929861843586, 0.011413989588618279, -0.019081415608525276, 0.025249464437365532, -0.0136013925075531, -0.02095259726047516, 0.015172060579061508, -0.012041681446135044, 0.024797629565000534, 0.015767257660627365, 0.01258856151252985, -1.406259464431514e-8, -0.01007307879626751, 0.03351309522986412, -0.008655311539769173, 0.009878487326204777, 0.04171200841665268, 0.01577921211719513, -0.009175578132271767, 0.02541496604681015, -0.046513207256793976, 0.027156075462698936, 0.03744944930076599, -0.04612581431865692, -0.016767922788858414, 0.006133746355772018, 0.017525948584079742, -0.03606139123439789, 0.00254961964674294, -0.009835975244641304, 0.014173770323395729, -0.0005494358483701944, -0.0046276552602648735, 0.04713967815041542, 0.011487582698464394, 0.0029098899103701115, 0.026471422985196114, 0.0005966897588223219, 0.013499568216502666, -0.06736713647842407, -0.01000368595123291, -0.019599033519625664, -0.008092706091701984, -0.029374605044722557, -0.023525532335042953, -0.00113285006955266, -0.013662808574736118, -0.002603689208626747, 0.0524878166615963, 0.03547458350658417, 0.0016226558946073055, 0.0013459913898259401, -0.022407375276088715, 0.010629670694470406, -0.013176354579627514, -0.015857847407460213, -0.004188850987702608, -0.013866493478417397, -0.014458736404776573, -0.016170375049114227, 0.00941239669919014, -0.052432987838983536, -0.011273154057562351, -0.021300818771123886, 0.05116882175207138, 0.0036612614057958126, -0.0035441273357719183, -0.0028088747058063745, -0.010994136333465576, -0.04342638701200485, -0.02774895913898945, 0.008256948553025723, 0.01384739764034748, 0.044824883341789246, -0.011624840088188648, -0.0015515005216002464 ]
book-club-arguments-and-results-james-noble
https://markhneedham.com/blog/2009/06/16/book-club-arguments-and-results-james-noble
false
2009-06-16 20:29:29
Functional Collection Parameters: Handling the null collection
[ "c", "net", "functional-programming", "functional-collection-parameters" ]
[ ".NET" ]
One of the interesting cases where I've noticed we tend to avoid http://www.markhneedham.com/blog/2008/12/17/functional-collection-parameters-in-c/[functional] http://www.markhneedham.com/blog/2009/01/19/f-vs-c-vs-java-functional-collection-parameters/[collection parameters] in our code base is when there's the possibility of the collection being null. The code is on the boundary of our application's interaction with another service so it is actually a valid scenario that we could receive a null collection. When using extension methods, although we wouldn't get a null pointer exception by calling one on a null collection, we would get a 'source is null' exception when the expression is evaluated so we need to protect ourself against this. As a result of defending against this scenario we have quite a lot of code that looks like this: [source,csharp] ---- public IEnumerable<Foo> MapFooMessages(IEnumerable<FooMessage> fooMessages) { var result = new List<Foo>(); if(fooMessagaes != null) { foreach(var fooMessage in fooMessages) { result.Add(new Foo(fooMessage)); } } return result; } ---- The method that we want to apply here is 'Select' and even though we can't just apply that directly to the collection we can still make use of it. [source,csharp] ---- private IEnumerable<Foo> MapFooMessages(IEnumerable<FooMessage> fooMessages) { if(fooMessages == null) return new List<Foo>(); return fooMessages.Select(eachFooMessage => new Foo(eachFooMessage)); } ---- There's still duplication doing it this way though so I pulled it up into a 'SafeSelect' extension method: [source,csharp] ---- public static class ICollectionExtensions { public static IEnumerable<TResult> SafeSelect<TSource, TResult>(this IEnumerable<TSource> source, Func<TSource, TResult> selector) { return source == null ? new List<TResult>() : source.Select(selector) ; } } ---- We can then make use of this extension method like so: [source,csharp] ---- private IEnumerable<Foo> MapFooMessages(IEnumerable<FooMessage> fooMessages) { return fooMessages.SafeSelect(eachFooMessage => new Foo(fooMessage)); } ---- The extension method is a bit different to the original way that we did this as I'm not explicitly converting the result into a list at the end which means that it will only be evaluated when the data is actually needed. In this particular case I don't think that decision will have a big impact but it's something interesting to keep in mind.
null
null
[ 0.006603318732231855, -0.041393980383872986, 0.0051269237883389, 0.020380116999149323, 0.0652218610048294, -0.014410203322768211, 0.02531396970152855, 0.011888815090060234, -0.017112066969275475, -0.0418817475438118, -0.017371203750371933, 0.0213432889431715, -0.07304162532091141, 0.017637260258197784, -0.018590440973639488, 0.08158701658248901, 0.0654616728425026, -0.038639847189188004, 0.016416603699326515, -0.0010928699048236012, 0.003537790384143591, 0.07394777983427048, 0.028226841241121292, 0.038217343389987946, 0.05008450523018837, 0.030800849199295044, 0.000028256183213670738, 0.012061592191457748, -0.04272216185927391, -0.006784789264202118, 0.04186559468507767, 0.02642122656106949, -0.01873151771724224, -0.012635931372642517, -0.004653125535696745, -0.038085516542196274, 0.005992216523736715, 0.0066599659621715546, -0.008010581135749817, 0.025917116552591324, -0.06685996055603027, 0.042332835495471954, -0.022284038364887238, 0.008824069052934647, -0.026279358193278313, 0.019602978602051735, -0.03913817182183266, -0.00413536699488759, -0.05532265454530716, -0.0033976323902606964, -0.06261157244443893, 0.020906176418066025, -0.0711856260895729, 0.039582569152116776, -0.008797691203653812, 0.054251059889793396, -0.011374994181096554, -0.08962064981460571, 0.021778393536806107, -0.05399483069777489, -0.009511539712548256, -0.0047497618943452835, -0.017562659457325935, 0.03329401835799217, 0.021967321634292603, -0.0031931076664477587, -0.018245315179228783, 0.05086718127131462, -0.04346117377281189, -0.015459161251783371, -0.012203395366668701, 0.00728197768330574, -0.004719625227153301, -0.0025194797199219465, 0.013993305154144764, -0.041154421865940094, -0.030729947611689568, 0.05048476532101631, 0.017947223037481308, 0.05635830760002136, -0.007548531051725149, -0.007370366249233484, 0.05828521028161049, 0.002857445739209652, 0.035491909831762314, -0.04893864691257477, -0.012053719721734524, 0.005313326604664326, -0.005413758102804422, 0.05982847884297371, 0.03820820525288582, -0.02968783490359783, -0.008019160479307175, 0.021905161440372467, -0.001393830985762179, -0.004649387206882238, 0.013026665896177292, -0.028170809149742126, -0.017245976254343987, 0.017072346061468124, -0.00467938557267189, -0.00941799208521843, 0.021458270028233528, -0.003754996694624424, -0.07637131959199905, -0.02626616880297661, -0.004966003354638815, -0.006760370451956987, -0.011137562803924084, 0.022232146933674812, -0.04512500762939453, 0.028895322233438492, -0.030416136607527733, 0.005079085007309914, -0.08153042942285538, 0.045569002628326416, 0.03176036477088928, 0.015521337278187275, 0.004717829171568155, 0.04253366217017174, 0.06407120078802109, 0.014817500486969948, -0.0000985152946668677, 0.0698707178235054, 0.00444587180390954, 0.01451462134718895, -0.028811829164624214, 0.05618522688746452, 0.00749025447294116, -0.07923054695129395, -0.0008395298500545323, 0.047207895666360855, -0.006493008695542812, -0.012563318945467472, 0.007233479060232639, -0.029428882524371147, -0.026922766119241714, 0.017956560477614403, 0.03485913202166557, 0.017366662621498108, -0.039071571081876755, -0.04673571512103081, 0.010972386226058006, -0.003232961054891348, 0.028256604447960854, 0.01806562952697277, -0.011661450378596783, -0.00901760719716549, -0.005604096222668886, 0.043862249702215195, 0.04458528384566307, 0.07886651903390884, 0.05846880003809929, -0.04471522942185402, -0.022235987707972527, 0.106432244181633, 0.003547113621607423, 0.029130129143595695, 0.0066855717450380325, 0.03471275046467781, 0.055987510830163956, 0.022902261465787888, 0.008550810627639294, 0.05537409335374832, 0.011196445673704147, 0.026422543451189995, -0.010869157500565052, 0.0591394267976284, 0.003287198953330517, -0.029172619804739952, -0.06421878188848495, -0.05195753648877144, 0.04497897997498512, -0.07464564591646194, -0.008503696881234646, 0.028726495802402496, 0.08313501626253128, -0.003058683592826128, 0.06671687960624695, -0.001297456445172429, -0.07090690732002258, 0.0029655741527676582, -0.01912270113825798, -0.004059276077896357, 0.013225516304373741, 0.004196247551590204, 0.061507631093263626, 0.029340684413909912, -0.023478537797927856, 0.018763691186904907, -0.07318302243947983, -0.072651706635952, -0.04160807281732559, -0.01217623520642519, 0.0554514117538929, -0.04426407441496849, -0.0033476657699793577, 0.08092173933982849, 0.02258235588669777, 0.0254195686429739, 0.047000255435705185, -0.022036269307136536, 0.016786061227321625, -0.011032464914023876, -0.0485524982213974, 0.053443025797605515, 0.02871313877403736, 0.0025534718297421932, -0.037415534257888794, 0.021685680374503136, -0.021725716069340706, 0.016399851068854332, 0.03436524048447609, -0.01941484771668911, 0.05206725001335144, -0.011642617173492908, 0.018642131239175797, -0.04350268840789795, 0.05656464397907257, -0.0728360190987587, 0.02513389103114605, 0.015655284747481346, -0.008775495924055576, 0.013609706424176693, -0.0028701606206595898, 0.11768922209739685, 0.05188232660293579, -0.020647786557674408, -0.028168965131044388, 0.03148442879319191, 0.037825632840394974, -0.04079853743314743, -0.003789310809224844, -0.037746310234069824, 0.014419629238545895, 0.0049209860153496265, -0.03796953335404396, 0.006038006395101547, 0.0013205809518694878, -0.032258763909339905, 0.002638382138684392, 0.05810503661632538, -0.016690794378519058, 0.052587371319532394, 0.02105589024722576, -0.024371765553951263, -0.011250772513449192, -0.05109100788831711, -0.0525272935628891, -0.0048652212135493755, 0.023183558136224747, -0.007662925403565168, 0.04340964928269386, -0.018359212204813957, -0.01491143461316824, 0.0013527169357985258, -0.04665893316268921, -0.0033369921147823334, 0.039770741015672684, 0.06781849265098572, -0.010575245134532452, 0.038583047688007355, -0.009922349825501442, -0.009806560352444649, -0.010045742616057396, -0.0436505526304245, 0.024356912821531296, 0.014565158635377884, 0.022036980837583542, 0.03952879458665848, 0.012795060873031616, 0.001155987847596407, 0.018235836178064346, 0.012001201510429382, -0.04438774287700653, -0.018941761925816536, 0.030057799071073532, 0.0011271981056779623, -0.043172597885131836, -0.041787952184677124, -0.04106803983449936, 0.050548143684864044, -0.03335652872920036, -0.04687193036079407, 0.0028558766935020685, -0.05391503497958183, 0.05857173353433609, -0.07463161647319794, -0.07102200388908386, 0.00861271284520626, 0.028007080778479576, 0.014999639242887497, -0.014177094213664532, 0.0050162277184426785, 0.04946713522076607, 0.009827470406889915, -0.009328456595540047, 0.033470459282398224, 0.020921768620610237, -0.028495892882347107, -0.02084638737142086, 0.005700272042304277, 0.04900461435317993, 0.013986464589834213, -0.0009969404200091958, -0.04157043993473053, 0.03410234674811363, 0.0002267930976813659, -0.27239182591438293, 0.034718044102191925, -0.01760309562087059, -0.033006682991981506, 0.016062766313552856, 0.0023655968252569437, 0.025721048936247826, -0.045236483216285706, -0.00922803021967411, 0.06708187609910965, -0.005899026524275541, -0.021893847733736038, -0.02905585803091526, 0.0409063994884491, 0.0018356646178290248, 0.0038948555011302233, -0.00530294980853796, -0.038440410047769547, 0.011377440765500069, 0.05023325979709625, -0.014443942345678806, -0.07135669142007828, 0.011476187966763973, 0.06556033343076706, 0.025288423523306847, 0.06753186136484146, -0.07000341266393661, 0.05451048165559769, -0.012787643820047379, -0.0032963508274406195, -0.0050516147166490555, -0.012543990276753902, 0.014927352778613567, -0.054250556975603104, -0.04297703504562378, -0.004643796943128109, 0.033363714814186096, 0.031559791415929794, -0.034944869577884674, 0.04225212708115578, -0.026668095961213112, -0.0389690063893795, -0.021948333829641342, 0.04509204253554344, 0.04954880103468895, -0.01202789880335331, -0.06939888000488281, -0.0008293615537695587, -0.025944992899894714, 0.06568864732980728, -0.03855956718325615, -0.03635455667972565, 0.0024767043069005013, 0.051742829382419586, -0.02615172229707241, -0.028253648430109024, -0.021355193108320236, -0.01832236908376217, -0.046447768807411194, -0.00960380770266056, -0.007010319735854864, -0.06586732715368271, -0.01917881704866886, -0.026806876063346863, -0.03289962187409401, -0.04968661442399025, -0.06325921416282654, 0.0020275248680263758, 0.07561510056257248, 0.010741607286036015, 0.004130172543227673, -0.020878387615084648, 0.007646854966878891, -0.12058306485414505, -0.02758561633527279, -0.04051562771201134, -0.054001741111278534, -0.024900389835238457, -0.004925400950014591, 0.05542489141225815, -0.027825389057397842, -0.042041413486003876, 0.018444973975419998, 0.056537970900535583, 0.0205402709543705, -0.00962842721492052, 0.011941418051719666, -0.002039995277300477, -0.028975650668144226, 0.012679610401391983, 0.05433628335595131, 0.014370081946253777, 0.005070684477686882, -0.01699119247496128, 0.013527501374483109, 0.03719528391957283, 0.026667801663279533, 0.006253096275031567, 0.03687649592757225, 0.023562341928482056, 0.057182151824235916, -0.04642501473426819, 0.04251503944396973, -0.0442739762365818, 0.011203507892787457, -0.010126978158950806, -0.04215032979846001, 0.04131752997636795, 0.030325718224048615, -0.027114784345030785, -0.0038162758573889732, -0.0020342618227005005, -0.011736975982785225, -0.07076668739318848, -0.03459599241614342, -0.01364950928837061, -0.0012110871030017734, 0.033006612211465836, 0.02054166980087757, -0.04201928898692131, -0.061303332448005676, 0.02633429504930973, 0.00940998736768961, -0.01786787435412407, -0.07594118267297745, -0.03839855268597603, -0.03569285199046135, -0.000614397693425417, -0.01865471713244915, 0.013210839591920376, -0.0003308044106233865, 0.02999347820878029, 0.009041995741426945, -0.018636276945471764, 0.02017091028392315, -0.024915281683206558, -0.011861078441143036, -0.023282857611775398, -0.05750112235546112, -0.024167554453015327, -0.0008027487783692777, -0.0030042510479688644, 0.009016045369207859, 0.03890535235404968, 0.023195624351501465, -0.017875446006655693, 0.024414820596575737, 0.014893543906509876, -0.006071621086448431, 0.03168804198503494, -0.01948499120771885, -0.05741863697767258, 0.03204603120684624, -0.03284353017807007, -0.03205452486872673, -0.022360336035490036, 0.021404532715678215, -0.03374161943793297, -0.02626699209213257, -0.050076693296432495, 0.03586328774690628, -0.054410386830568314, -0.03116491250693798, -0.02510877326130867, -0.02893955260515213, 0.04572449252009392, -0.04359957575798035, 0.03534003719687462, -0.018047811463475227, -0.010441173799335957, 0.02636113576591015, -0.01491842046380043, -0.030405107885599136, 0.04245235398411751, 0.007074886932969093, 0.008435008116066456, -0.023340411484241486, 0.0028085820376873016, 0.018847882747650146, 0.019011901691555977, 0.01866302639245987, -0.005756923463195562, 0.038951974362134933, -0.03375614061951637, 0.03781730681657791, -0.0023597017861902714, 0.011529694311320782, -0.021069981157779694, -0.009084881283342838, -0.02604471519589424, -0.058303024619817734, -0.0254678912460804, -0.0332690104842186, 0.0319664403796196, -0.034710511565208435, -0.054709792137145996, 0.05124290660023689, -0.022637011483311653, 0.017747798934578896, 0.00853730645030737, 0.020746460184454918, -0.0025520457420498133, -0.013638384640216827, 0.006214330438524485, 0.04077395796775818, -0.049084123224020004, 0.033215321600437164, 0.004355536308139563, 0.00013391328684519976, 0.02972698211669922, 0.007559264078736305, -0.028126997873187065, -0.0021795369684696198, 0.004829807672649622, 0.03058837540447712, -0.03965267911553383, -0.02984672412276268, -0.01724269613623619, 0.006129004992544651, 0.007247801870107651, -0.019952578470110893, -0.004213167820125818, -0.022422119975090027, -0.025301236659288406, -0.02487758919596672, 0.00040145523962564766, -0.01775781437754631, -0.030649254098534584, 0.01797661930322647, -0.050511445850133896, 0.005912829656153917, -0.03342587128281593, 0.031587034463882446, 0.004878240171819925, -0.009315959177911282, -0.014367817901074886, -0.061039090156555176, 0.020587997511029243, -0.01684560626745224, 0.06635256856679916, -0.01768695004284382, -0.034793589264154434, 0.01865122839808464, -0.02526463381946087, -0.034347016364336014, 0.00801308173686266, 0.0029780680779367685, -0.021100753918290138, 0.018243227154016495, 0.0445159412920475, 0.003479189006611705, 0.011728017590939999, 0.0010390717070549726, 0.0007196228252723813, 0.08416114747524261, -0.05934927612543106, -0.013190021738409996, -0.03200264275074005, -0.056081902235746384, 0.01233657542616129, 0.00521836755797267, 0.016155293211340904, -0.025453031063079834, 0.029984474182128906, 0.041343800723552704, 0.009397594258189201, 0.03402090445160866, 0.020660707727074623, 0.04539652541279793, -0.02443033829331398, -0.019992491230368614, -0.06292343884706497, 0.035375598818063736, 0.0345567911863327, 0.03975588455796242, -0.03592592105269432, -0.03532841056585312, -0.03239382058382034, 0.008529302664101124, -0.07389001548290253, -0.020757975056767464, -0.014944168739020824, -0.016661833971738815, -0.010967206209897995, 0.037748485803604126, -0.049546174705028534, 0.026153849437832832, 0.04603612422943115, -0.024039173498749733, -0.04227646812796593, -0.038864102214574814, 0.05935175344347954, 0.03374487906694412, -0.016319993883371353, -0.03053336590528488, 0.028033988550305367, 0.034284867346286774, 0.0281460452824831, 0.024622345343232155, 0.07941540330648422, -0.031462542712688446, 0.028608765453100204, 0.017842577770352364, -0.020749574527144432, -0.007158320397138596, -0.004668732639402151, 0.0003861469158437103, -0.05661071836948395, -0.015003912150859833, 0.01597984880208969, -0.03679616004228592, -0.04459333419799805, 0.05637612193822861, 0.020948436111211777, -0.014769390225410461, -0.04955098405480385, 0.0005881970282644033, -0.033257849514484406, -0.011147741228342056, -0.032835982739925385, 0.025585850700736046, 0.0016717882826924324, 0.07716477662324905, 0.004857415799051523, 0.008550645783543587, 0.05971641466021538, 0.0035867285914719105, -0.01235316600650549, -0.001109628239646554, 0.06601297110319138, 0.07678259909152985, 0.03841480612754822, 0.007459480781108141, 0.06902110576629639, -0.03610562905669212, -0.04060277342796326, 0.0044887252151966095, -0.028155537322163582, -0.010901568457484245, 0.0015661153011023998, 0.026017755270004272, 0.09797165542840958, 0.00417505344375968, 0.0623786486685276, -0.053529128432273865, -0.010839318856596947, -0.010462232865393162, 0.04035810008645058, 0.03889497369527817, 0.020405767485499382, -0.004171239677816629, 0.01751719042658806, 0.009779419749975204, -0.03810420632362366, 0.04527727887034416, -0.010790322907269001, -0.02166748233139515, 0.004756276495754719, 0.00506637105718255, 0.006846100557595491, 0.02850925549864769, 0.045097384601831436, 0.05220627039670944, -0.026232602074742317, -0.010878489352762699, -0.0018023197771981359, 0.012511877343058586, 0.013880860060453415, -0.020620329305529594, -0.0028691599145531654, -0.03269447758793831, 0.0069564818404614925, 0.015879223123192787, -0.01770145259797573, -0.04080065339803696, -0.028358453884720802, 0.03306746482849121, -0.0243139136582613, 0.02662043645977974, 0.005725021008402109, 0.005608995910733938, -0.03580830246210098, -0.0405876487493515, -0.043426066637039185, -0.030273139476776123, -0.0664779394865036, -0.009116665460169315, 0.041136596351861954, -0.01729467697441578, -0.03415071591734886, -0.013496027328073978, 0.0025473355781286955, -0.019812103360891342, 0.05135204643011093, -0.017121678218245506, -0.04111528396606445, 0.03512818366289139, 0.0017831436125561595, 0.032112967222929, 0.02765425480902195, 0.035008545964956284, -0.02240792103111744, 0.008863111957907677, -0.03832266479730606, -0.006687975954264402, 0.06282690167427063, 0.011305700987577438, 0.027886882424354553, -0.07064167410135269, 0.01452431920915842, 0.02615857683122158, -0.0022093146108090878, -0.06822862476110458, -0.009501161053776741, 0.021861212328076363, -0.02497449330985546, 0.034688569605350494, -0.011244593188166618, -0.045149125158786774, -0.05490026995539665, 0.011665912345051765, 0.03871218115091324, 0.021846428513526917, 0.035151176154613495, -0.022557592019438744, 0.058598414063453674, 0.022883504629135132, -0.029900070279836655, -0.016075365245342255, 0.015227247029542923, -0.017042862251400948, 0.010301082395017147, -0.04133414849638939, -0.04358644410967827, -0.03197939693927765, -0.04176655411720276, -0.00717542739585042, 0.0289937611669302, -0.012662889435887337, -0.03526443615555763, 0.0005106487078592181, 0.0683782771229744, -0.07503434270620346, 0.008797644637525082, -0.015953436493873596, 0.04977335035800934, -0.022263793274760246, -0.04756362736225128, 0.0010688990587368608, 0.03950757905840874, -0.0018283042591065168, -0.010590114630758762, 0.04122777283191681, -0.04416433349251747, -0.012693367898464203, -0.01650838926434517, 0.018219521269202232, 0.05711176246404648, -0.02686055190861225, 0.03908609226346016 ]
[ -0.07949114590883255, 0.02322912961244583, -0.06753663718700409, -0.00845922902226448, 0.02727832831442356, -0.008546561934053898, 0.05577126517891884, 0.03513525798916817, 0.00709505844861269, -0.04688408970832825, 0.0174289308488369, -0.02754085324704647, 0.020961716771125793, 0.028260497376322746, 0.015078676864504814, 0.010120297782123089, -0.0058816769160330296, -0.02234448492527008, -0.02369348332285881, 0.046548325568437576, 0.06036608666181564, -0.0007939293282106519, -0.00937705673277378, -0.049648553133010864, 0.049035098403692245, 0.024578338488936424, 0.013698494993150234, -0.04929571598768234, -0.025745010003447533, -0.20617860555648804, -0.052821774035692215, -0.020598167553544044, 0.004402081482112408, -0.028052687644958496, -0.026404527947306633, 0.02263411320745945, 0.06067870929837227, 0.018055927008390427, -0.004901744890958071, 0.046020831912755966, 0.002304542576894164, 0.05340231955051422, -0.06357201188802719, -0.03365876153111458, -0.016301624476909637, -0.026889432221651077, -0.012054424732923508, -0.053460557013750076, -0.004383255261927843, 0.0045427074655890465, -0.05836555361747742, 0.004614247940480709, -0.004593691322952509, 0.008968452922999859, -0.03369535878300667, 0.024567462503910065, 0.05387617647647858, 0.060519613325595856, 0.0034316766541451216, 0.020804330706596375, 0.032573722302913666, -0.023842446506023407, -0.09974168986082077, 0.056850023567676544, -0.014637960121035576, 0.03911980241537094, 0.035709597170352936, -0.013470578007400036, -0.008026272058486938, 0.03990824148058891, 0.04176688939332962, 0.005271408706903458, -0.026370231062173843, 0.07338004559278488, 0.03583237901329994, -0.01657315157353878, -0.01357725728303194, 0.0023654233664274216, 0.04391001537442207, -0.00996047630906105, -0.06991618126630783, -0.06366970390081406, 0.0585361048579216, -0.03360576182603836, -0.002594968304038048, 0.02531367912888527, 0.02795405127108097, 0.00883693527430296, 0.044980738312006, 0.033775024116039276, 0.044098109006881714, -0.0060203103348612785, 0.03195866942405701, 0.013975720852613449, -0.09130030125379562, -0.01925668679177761, -0.039414603263139725, -0.028529079630970955, -0.02242657169699669, 0.4144556522369385, -0.021859915927052498, 0.014144163578748703, 0.008871498517692089, 0.015290494076907635, -0.034028198570013046, -0.021358685567975044, 0.007217392325401306, -0.045480500906705856, 0.01210270170122385, -0.050806399434804916, -0.018266869708895683, -0.05213433504104614, 0.03783521056175232, -0.03823293745517731, -0.01895745098590851, 0.016727237030863762, 0.059406574815511703, -0.010102503933012486, -0.02587335743010044, -0.00753498449921608, -0.031858690083026886, 0.0016634601633995771, 0.023045683279633522, 0.029721902683377266, 0.009360245428979397, -0.020720912143588066, 0.014891845174133778, 0.060796916484832764, 0.06671209633350372, 0.015833180397748947, 0.06900649517774582, -0.06457051634788513, -0.11832170188426971, -0.03429245948791504, 0.025080464780330658, 0.01436435803771019, 0.02238594926893711, -0.014592906460165977, 0.023164981976151466, -0.0226299986243248, 0.02591663971543312, -0.026473306119441986, 0.016970183700323105, -0.007662831339985132, -0.0576338991522789, 0.11219537258148193, -0.016086889430880547, 0.0007717275293543935, -0.04593074694275856, -0.0770367980003357, -0.004719709977507591, 0.023779243230819702, -0.0005634846747852862, -0.016498660668730736, 0.022621506825089455, 0.011135420762002468, 0.05399703606963158, -0.008218036033213139, -0.06023435667157173, 0.0009734783670864999, -0.036972496658563614, 0.010524416342377663, -0.029573651030659676, 0.07335533201694489, 0.021985217928886414, -0.04774070903658867, -0.032163482159376144, -0.016969071701169014, -0.03754982724785805, -0.023624271154403687, 0.010885916650295258, 0.005823261570185423, -0.020989680662751198, -0.032293837517499924, 0.016100192442536354, 0.006292432546615601, -0.03299454227089882, -0.06983008980751038, 0.008920970372855663, 0.044297777116298676, 0.001123592839576304, 0.025964800268411636, -0.0348077267408371, 0.004968024790287018, -0.010486653074622154, -0.11922851949930191, -0.07119119167327881, -0.011983303353190422, 0.002635519253090024, -0.025222770869731903, -0.0536537803709507, -0.06684564054012299, -0.023512370884418488, 0.06730643659830093, -0.044958166778087616, -0.020654221996665, 0.03155779093503952, -0.013279391452670097, 0.021784687414765358, 0.008779559284448624, 0.07493353635072708, 0.04856251925230026, 0.031200721859931946, 0.055553048849105835, -0.04475071653723717, -0.024137604981660843, 0.012894847430288792, -0.0800439715385437, 0.03564453125, -0.0036658411845564842, -0.051556576043367386, 0.018655797466635704, -0.012675211764872074, 0.03591986000537872, -0.02498389407992363, -0.02623564563691616, 0.030673565343022346, 0.04869844764471054, 0.03435864672064781, -0.010233038105070591, -0.049072641879320145, -0.009105324745178223, 0.030051296576857567, -0.340331494808197, -0.010939675383269787, -0.05067756399512291, -0.054087914526462555, -0.005042647942900658, -0.028957637026906013, -0.0153359929099679, -0.04083966836333275, -0.043039508163928986, -0.01947622001171112, 0.0684550553560257, -0.027314389124512672, -0.0370919406414032, -0.0498165637254715, -0.01518482156097889, 0.023104973137378693, -0.05671609193086624, -0.037061940878629684, -0.008327583782374859, 0.040214911103248596, -0.028900397941470146, 0.013779537752270699, 0.018732551485300064, -0.06930235773324966, -0.01703546568751335, 0.00840279832482338, 0.05933799967169762, -0.008066718466579914, 0.06316440552473068, -0.03350850194692612, 0.049310434609651566, -0.0018558218143880367, -0.0018601129995658994, -0.04593740031123161, -0.012543672695755959, -0.017398083582520485, -0.07470542192459106, -0.021518602967262268, 0.041035424917936325, 0.0073990891687572, -0.029055124148726463, 0.008548861369490623, -0.04205777496099472, -0.04856216534972191, 0.01919579692184925, -0.03556150197982788, -0.01422441191971302, -0.009976409375667572, 0.04122569039463997, 0.09089019149541855, -0.01679646037518978, -0.015855206176638603, 0.04885087534785271, 0.03929601237177849, 0.04578686133027077, -0.04174051061272621, -0.04311284050345421, -0.04004906862974167, 0.02405354380607605, 0.021625537425279617, 0.0245642252266407, 0.07155276834964752, 0.05295436456799507, -0.03321848809719086, -0.018191520124673843, -0.021026616916060448, 0.0035049046855419874, 0.0015667250845581293, 0.006416875869035721, -0.05516953021287918, -0.051165591925382614, 0.10675884783267975, -0.006965271197259426, 0.006018758751451969, -0.008793188259005547, 0.075395368039608, -0.002040986670181155, -0.015603926964104176, 0.03139235079288483, -0.004681144375354052, -0.013808228075504303, 0.02782866172492504, 0.07595740258693695, 0.007666053716093302, -0.05088033154606819, 0.08897919207811356, 0.003570335218682885, 0.039983298629522324, 0.03926025703549385, -0.043289415538311005, -0.04212017357349396, -0.029155906289815903, 0.0032966192811727524, -0.04461127892136574, 0.06944268196821213, 0.00007502891821786761, -0.2165091335773468, -0.005078957881778479, 0.06602413952350616, 0.00798096600919962, -0.00280976970680058, 0.019185619428753853, 0.06644967198371887, -0.045615486800670624, 0.028927039355039597, 0.01580115221440792, 0.035985805094242096, 0.03524357080459595, 0.008155840449035168, -0.0019671274349093437, 0.027659891173243523, 0.010709976777434349, 0.014751254580914974, 0.03817936033010483, 0.04758941009640694, -0.023440970107913017, 0.03885951265692711, 0.017346912994980812, 0.2039429098367691, 0.04152880609035492, 0.01575697772204876, 0.0324503630399704, 0.06918227672576904, 0.015530691482126713, 0.05715566128492355, 0.023452995344996452, 0.024205556139349937, -0.036801308393478394, 0.11174160242080688, -0.006062788423150778, 0.030601346865296364, -0.0751359686255455, 0.01359428558498621, 0.024989601224660873, 0.01120502594858408, -0.030986953526735306, -0.04776063188910484, 0.05062215402722359, -0.03463216871023178, 0.030834868550300598, 0.10411244630813599, -0.00851929560303688, -0.048933275043964386, -0.03302833065390587, -0.025082988664507866, 0.020761843770742416, -0.013091877102851868, -0.007115266285836697, 0.046726666390895844, -0.052646320313215256, 0.02509121038019657, 0.03566036373376846, -0.008165908046066761, -0.03590911999344826, -0.056727055460214615, 0.024230923503637314, 0.04905376955866814, 0.03285932540893555, 0.06515984237194061, 0.028540976345539093, 0.058752674609422684 ]
[ 0.0003854894021060318, 0.045188333839178085, -0.013163469731807709, 0.028772685676813126, 0.0015647347318008542, 0.027157265692949295, 0.016366882249712944, 0.014447272755205631, 0.004003193229436874, 0.00885858479887247, -0.0203875545412302, -0.04270680621266365, 0.014970011077821255, -0.03461959585547447, 0.0405825674533844, 0.008806368336081505, 0.020665965974330902, -0.03377888724207878, 0.01044540200382471, -0.004346123430877924, -0.0064669279381632805, 0.060327064245939255, 0.03268521651625633, -0.03022260218858719, -0.04857410117983818, 0.016537237912416458, -0.003601743606850505, -0.0646173357963562, 0.02144109271466732, -0.14692826569080353, -0.042141396552324295, -0.028714124113321304, -0.03661787882447243, 0.014392278157174587, -0.0063478779047727585, 0.0013656842056661844, 0.027405347675085068, 0.012728044763207436, 0.013388766907155514, 0.005217710044234991, -0.0559200681746006, 0.018335701897740364, -0.050782475620508194, -0.025031112134456635, -0.024347275495529175, -0.029133019968867302, -0.018768031150102615, -0.03029686026275158, -0.003527966793626547, 0.0010900698835030198, 0.005434338003396988, 0.009072011336684227, -0.008189180865883827, 0.023227179422974586, 0.042760103940963745, -0.02399146370589733, -0.02035089023411274, -0.04046253859996796, 0.014173240400850773, 0.04741335287690163, -0.011371651664376259, -0.011541096493601799, -0.02168702706694603, -0.031531959772109985, 0.010334119200706482, -0.012983886525034904, 0.00991401169449091, -0.003993899095803499, 0.0005737353349104524, -0.0146415363997221, -0.03615729138255119, 0.012846652418375015, -0.007075258996337652, -0.0068740942515432835, -0.003730871481820941, 0.008639426901936531, 0.010640370659530163, -0.049370177090168, -0.01892159879207611, -0.0002068402973236516, -0.02379429340362549, 0.0035341831389814615, 0.013464272953569889, 0.029991911724209785, 0.04042089730501175, -0.014705091714859009, -0.0127817802131176, -0.02682388760149479, 0.03652181848883629, 0.014860465191304684, -0.029900943860411644, 0.013564619235694408, 0.023925643414258957, 0.05374224856495857, -0.04564922675490379, -0.0027498200070112944, 0.004473424982279539, -0.0155140096321702, -0.028571490198373795, 0.8293085694313049, 0.005554304923862219, 0.07057539373636246, 0.05805050581693649, -0.013316413387656212, -0.029931725934147835, -0.016583645716309547, -0.021704623475670815, 0.0001551363675389439, 0.02073032408952713, -0.011326939798891544, 0.008856993168592453, -0.014360811561346054, 0.009737792424857616, 0.01176806166768074, -0.023286977782845497, 0.007017501164227724, -0.0073248823173344135, -0.040144987404346466, 0.015917543321847916, 0.013537454418838024, 0.05680565536022186, 0.014981523156166077, 0.025878142565488815, 0.015205277130007744, 0.028476383537054062, -0.16040092706680298, 0.008305728435516357, -8.49483996527982e-33, 0.05024762824177742, -0.00337032089009881, 0.014819202944636345, 0.031990326941013336, 0.01704983226954937, -0.02565135806798935, -0.0035464358516037464, 0.01648913137614727, 0.013839996419847012, -0.04690438508987427, 0.033396199345588684, -0.017101559787988663, 0.017418570816516876, -0.029786232858896255, 0.04180078208446503, 0.0003990856639575213, 0.011911680921912193, 0.039336152374744415, 0.02229529805481434, -0.011404931545257568, 0.004683682695031166, 0.05057455599308014, 0.05195284262299538, -0.038979239761829376, 0.0139214051887393, 0.036325328052043915, -0.01756732165813446, 0.02485608123242855, -0.024021565914154053, -0.03058272786438465, -0.003778391983360052, 0.016342366114258766, 0.009018071927130222, -0.006566505879163742, 0.05480416491627693, 0.008442786522209644, -0.01355769019573927, -0.0034496451262384653, -0.0065978881902992725, -0.042994141578674316, -0.036973077803850174, -0.00089695502538234, -0.009011340327560902, 0.0023709984961897135, -0.016743246465921402, -0.04882783070206642, -0.031873662024736404, 0.0036824161652475595, 0.022584764286875725, 0.05955874174833298, 0.019397303462028503, 0.011821174062788486, -0.007827704772353172, -0.008806736208498478, -0.0036701555363833904, 0.016079824417829514, -0.02871902845799923, -0.014996050857007504, 0.011198281310498714, 0.02327585592865944, 0.019732017070055008, -0.022733421996235847, -0.00643392838537693, 0.018901461735367775, 0.01356432493776083, -0.040731653571128845, -0.002065956359729171, -0.011679303832352161, -0.00837797112762928, -0.05469329655170441, -0.043055471032857895, 0.024308910593390465, 0.013037306256592274, -0.006215617526322603, -0.023165570572018623, -0.03379250317811966, -0.027876263484358788, 0.00010025082156062126, 0.0004667061730287969, 0.019834762439131737, 0.034754928201436996, -0.02518298849463463, 0.010035790503025055, -0.00391567824408412, 0.006023110821843147, -0.01652771793305874, 0.011749506928026676, 0.017698464915156364, 0.02381640300154686, -0.023451408371329308, 0.015424243174493313, 0.05107506737112999, -0.027369707822799683, -0.0059909941628575325, -0.01967262290418148, 7.669506279784291e-33, 0.011217857711017132, -0.015232199802994728, -0.02281026914715767, 0.018883954733610153, 0.000759576796554029, -0.012184055522084236, 0.02449994534254074, -0.011182449758052826, -0.03756627067923546, 0.022487306967377663, 0.0015255659818649292, 0.028866639360785484, -0.025681762024760246, 0.0016071477439254522, 0.06689610332250595, -0.013013692572712898, 0.006699375808238983, -0.01734079234302044, -0.008722431026399136, 0.01949210651218891, 0.03371535986661911, -0.007963266223669052, 0.00009821564890444279, -0.010612218640744686, -0.009826264344155788, 0.042461659759283066, -0.05958959460258484, -0.021176310256123543, 0.002064753556624055, 0.005970698315650225, 0.02177448570728302, 0.01178604643791914, 0.012709912844002247, -0.07409806549549103, 0.006531925871968269, 0.007096194662153721, 0.004395280499011278, 0.011638348922133446, 0.0635128766298294, -0.003301754593849182, 0.02106252685189247, 0.012394201010465622, 0.02935851737856865, -0.016031958162784576, 0.030086545273661613, -0.026126865297555923, -0.004149791784584522, -0.00798376277089119, 0.026796160265803337, 0.047929391264915466, 0.002509510610252619, -0.013274166733026505, 0.002766513731330633, 0.032479651272296906, 0.013720068149268627, -0.004588715732097626, 0.002794733503833413, -0.024554293602705002, 0.006013226229697466, -0.01875407248735428, -0.01896083354949951, 0.014478042721748352, -0.02110598422586918, -0.00874827429652214, -0.015026846900582314, 0.012688574381172657, -0.06245305389165878, -0.02941170334815979, -0.012212800793349743, -0.01563219539821148, -0.02790851518511772, -0.016516268253326416, -0.03588808700442314, 0.005317735020071268, -0.0048536318354308605, -0.054775748401880264, 0.020322589203715324, -0.016464509069919586, 0.0003807080502156168, 0.003597229951992631, 0.0073146577924489975, -0.005324960220605135, 0.03773011639714241, -0.028124989941716194, -0.0020797448232769966, 0.016518795862793922, 0.00024583490449003875, -0.032940082252025604, -0.01457718014717102, -0.002562618814408779, -0.029639428481459618, -0.0355277881026268, 0.0002914319047704339, 0.01236844714730978, 0.01065229531377554, -1.3274756405223798e-8, -0.08821914345026016, 0.01205132994800806, -0.028794294223189354, 0.011797086335718632, 0.05549570918083191, 0.0022899562027305365, -0.05292373523116112, -0.05337534099817276, 0.0066737402230501175, 0.006173969712108374, -0.008036000654101372, -0.00004236168388160877, 0.021663188934326172, -0.0017716767033562064, 0.03977460041642189, -0.06321863830089569, -0.014619017951190472, 0.0048859454691410065, 0.011857585050165653, 0.02912069298326969, -0.02303467132151127, 0.03842714801430702, 0.008795196190476418, -0.0060400404036045074, 0.03843512386083603, 0.01459802407771349, 0.03194842115044594, -0.08929278701543808, 0.005137568339705467, 0.04740549996495247, -0.007791518233716488, -0.009091327898204327, -0.032242678105831146, -0.005971899721771479, -0.047367218881845474, -0.013845960609614849, 0.023524567484855652, 0.010865561664104462, -0.010949363000690937, -0.011582961305975914, -0.003963346127420664, -0.014140683226287365, 0.01857803389430046, -0.009087203070521355, 0.018235525116324425, -0.006373729091137648, -0.03026753105223179, 0.0002495521039236337, 0.04572778195142746, 0.013013938441872597, -0.017521001398563385, 0.03553817793726921, 0.04548860341310501, 0.01039999257773161, 0.01663174107670784, 0.021943489089608192, 0.03157530725002289, -0.030445175245404243, -0.00026315488503314555, 0.03127007186412811, 0.03542441502213478, -0.02904849871993065, -0.037103891372680664, 0.009650278836488724 ]
functional-collection-parameters-handling-the-null-collection
https://markhneedham.com/blog/2009/06/16/functional-collection-parameters-handling-the-null-collection
false
2009-06-16 18:55:38
C#/F#: Using .NET framework classes
[ "c", "net", "f" ]
[ ".NET", "fsharp" ]
I was recently discussing F# with a couple of colleagues and one thing that came up is the slightly different ways that we might choose to interact with certain .NET framework classes compared to how we use those same classes in C# code. One of those where I see potential for different use is the Dictionary class. In C# code when we're querying a dictionary to check that a value exists before we try to extract it we might typically do this: [source,csharp] ---- public string GetValueBy(string key) { var dictionary = new Dictionary<string, string>() { {"key", "value" } }; if(dictionary.ContainsKey(key)) { return dictionary[key]; } return ""; // maybe we'd do something else here but for the sake of this we return the empty string } ---- There is an alternative way to do this but it makes use of the 'out' keyword so it's generally frowned upon. [source,csharp] ---- public string GetValueBy(string key) { var dictionary = new Dictionary<string, string>() {{"key", "value"}}; string value = ""; dictionary.TryGetValue(key, out value); return value; } ---- In F# when we make use of a method which effectively defines a second return parameter by using the 'out' keyword the return value of that method becomes a tuple containing that value. For example when querying Dictionary: [source,ocaml] ---- open System.Collections.Generic open System open System.Globalization let testDictionary = let builder = new Dictionary<string, string>() builder.Add("key1", "value") builder let getByKey key = let result, value = testDictionary.TryGetValue(key) if(result) then value result else "" ---- The return type of TryGetValue is 'bool * string' in this case and by assigning that result to two different values we can get the appropriate values. This is certainly a time when http://www.markhneedham.com/blog/2009/06/02/f-tuples-dont-seem-to-express-intent-well/[tuples] are really useful for simplifying our code. We could have made use of an 'out' parameter as we did in C# but I think it's much easier to just use the tuple. Dustin Campbell http://diditwith.net/2008/01/29/WhyILoveFResultTuples.aspx[describes the other ways we could extract a value from a dictionary on his blog]. It's not significantly more concise code wise compared to the C# way of doing things although from a brief look at the way that the Dictionary code works in http://www.red-gate.com/products/reflector/[Reflector] theoretically we are making less calls to the underlying data structure to get the value from it. I tried timing 100,000 accesses to a dictionary with each approach to see if the total time would be significantly different but there wasn't any noticeable difference. There are other 'Try...' methods defined in the base class library - DateTime for example has some more - which I've never used in C# so I'd be intrigued to see whether other languages that run on the CLR will make use of these methods.
null
null
[ -0.005144525319337845, -0.025796648114919662, -0.01085862796753645, 0.02946263924241066, 0.06903152167797089, 0.012276459485292435, 0.021337777376174927, 0.039622362703084946, -0.008454854600131512, -0.02755950763821602, -0.026784386485815048, 0.013618489727377892, -0.083926260471344, 0.007732042111456394, -0.006041979882866144, 0.05859989672899246, 0.09198495000600815, -0.04424614459276199, 0.028474699705839157, -0.025502769276499748, -0.0019743358716368675, 0.05322504788637161, -0.00693244393914938, 0.028123609721660614, 0.03585813567042351, 0.029452528804540634, -0.011215620674192905, -0.020026056095957756, -0.041386187076568604, -0.004068744368851185, 0.04596574977040291, 0.04460809379816055, 0.011495733633637428, -0.02129962109029293, -0.0021852203644812107, -0.007442124653607607, 0.020090073347091675, 0.007946306839585304, 0.010549211874604225, 0.04917291924357414, -0.05887724086642265, 0.018534507602453232, 0.010207421146333218, 0.012817434035241604, -0.05807265639305115, 0.01445757132023573, -0.05730118229985237, 0.004261953290551901, -0.037574272602796555, -0.009717108681797981, -0.04065651819109917, 0.013693103566765785, -0.03565274551510811, -0.020902829244732857, -0.005221059080213308, 0.05757446214556694, 0.0001289473002543673, -0.06748007237911224, 0.027843065559864044, -0.044772669672966, -0.010198934935033321, -0.010951741598546505, 0.026030587032437325, 0.039570823311805725, 0.03905067220330238, -0.00604409072548151, -0.009744562208652496, 0.04293569549918175, -0.0809248685836792, -0.025656193494796753, 0.013039118610322475, 0.02333628199994564, -0.018835922703146935, 0.005346943624317646, 0.014769285917282104, -0.03139043226838112, -0.00419973861426115, 0.03552204370498657, 0.03393950313329697, 0.05703035742044449, 0.0014830705476924777, 0.013026400469243526, 0.050377048552036285, -0.007283019833266735, 0.011080153286457062, -0.017546825110912323, -0.03447622060775757, 0.015403158962726593, -0.011290759779512882, 0.044720251113176346, 0.02981249801814556, -0.026154909282922745, 0.015041600912809372, 0.0190846286714077, -0.008284151554107666, 0.02790779434144497, -0.007093663327395916, -0.03045724332332611, -0.004168665036559105, 0.005465667694807053, -0.029081441462039948, -0.03856480494141579, 0.02321857027709484, 0.005691017024219036, -0.07326944172382355, -0.017593802884221077, -0.029098419472575188, -0.01301334798336029, 0.013604586943984032, 0.012134792283177376, -0.05763700604438782, 0.019863341003656387, -0.025175632908940315, -0.017470959573984146, -0.07517632097005844, 0.023913133889436722, 0.017598582431674004, 0.00539708137512207, -0.01816071756184101, 0.04547208547592163, 0.03766975924372673, 0.0070276218466460705, -0.02345794439315796, 0.06721240282058716, 0.020723659545183182, 0.019670210778713226, -0.03364948183298111, 0.09718143939971924, 0.005266495514661074, -0.08169213682413101, -0.018760256469249725, 0.051011525094509125, -0.02821318618953228, -0.008656387217342854, -0.008363655768334866, -0.026291847229003906, -0.0047427089884877205, 0.00519071938470006, 0.04304898530244827, 0.04686758294701576, -0.03134893998503685, -0.048872679471969604, -0.006506925914436579, -0.02956993132829666, -0.0034290787298232317, 0.011031960137188435, -0.02578696794807911, 0.00829063355922699, 0.004550268407911062, 0.04974325746297836, 0.03344391658902168, 0.06693477928638458, 0.057771533727645874, -0.036755483597517014, 0.0014196898555383086, 0.06231663003563881, -0.010360675863921642, 0.018799377605319023, 0.013117549940943718, 0.002780980197712779, 0.0332191064953804, 0.016077950596809387, 0.01977802999317646, 0.02173002064228058, 0.015937604010105133, 0.015649018809199333, 0.018987635150551796, 0.05188116431236267, -0.029209543019533157, -0.005097154062241316, -0.055940788239240646, -0.009304357692599297, 0.05593368411064148, -0.05167529731988907, 0.01486580166965723, 0.053501538932323456, 0.06033710762858391, -0.009288056753575802, 0.05094585940241814, -0.021661942824721336, -0.06960330903530121, 0.025217510759830475, 0.01936853490769863, -0.030532972887158394, 0.004352940712124109, 0.0216422900557518, 0.06701672822237015, 0.03240438550710678, 0.023327236995100975, 0.02805924043059349, -0.05890172719955444, -0.07437048852443695, -0.07199133932590485, -0.03193533420562744, 0.08817726373672485, -0.025873662903904915, -0.0028644283302128315, 0.05703762546181679, 0.006777849979698658, 0.05640236660838127, 0.05221075192093849, -0.04976584389805794, 0.011224377900362015, -0.0038284037727862597, -0.018046002835035324, 0.05765492469072342, 0.0333542637526989, -0.014017856679856777, -0.03013334609568119, 0.00797828659415245, 0.006321494933217764, -0.011017775163054466, 0.04338494688272476, -0.004913941957056522, 0.04078401252627373, 0.009982576593756676, 0.026039496064186096, -0.04061339795589447, 0.043801724910736084, -0.059186968952417374, 0.03439239785075188, -0.010977696627378464, -0.009097310714423656, -0.03500748425722122, 0.006427467335015535, 0.11989372223615646, 0.058004237711429596, -0.03582366555929184, -0.057021062821149826, -0.010713559575378895, 0.01293816976249218, -0.04629959538578987, -0.00006812242645537481, -0.02951451577246189, 0.00026744225760921836, 0.0032840981148183346, -0.038561172783374786, 0.004209317732602358, 0.020313916727900505, -0.042880427092313766, 0.01382768526673317, 0.07766664773225784, -0.04757361114025116, 0.044676750898361206, -0.003516437951475382, -0.03612281754612923, 0.023529160767793655, -0.014932526275515556, -0.012056774459779263, -0.01412765122950077, 0.021480197086930275, -0.01526979636400938, 0.051521185785532, -0.011191918514668941, -0.003553931601345539, 0.0027138618752360344, -0.03146490454673767, 0.019893841817975044, 0.024158494547009468, 0.049138814210891724, -0.0031203937251120806, 0.04591163620352745, -0.022273974493145943, -0.0054058898240327835, 0.000118735057185404, -0.056185752153396606, 0.006644568406045437, 0.013462393544614315, 0.04315495118498802, 0.03825109079480171, -0.004492500796914101, -0.0008597433334216475, 0.018524134531617165, 0.01314688939601183, -0.05155215784907341, 0.003317120485007763, 0.04526180773973465, 0.005447629373520613, -0.07006578147411346, -0.06593883037567139, -0.05492459610104561, 0.04095832258462906, -0.03970623016357422, -0.05992046743631363, -0.011458605527877808, -0.07843559235334396, 0.0449107401072979, -0.07479993253946304, -0.06488388031721115, -0.02641937881708145, 0.034214943647384644, 0.02122795395553112, -0.021573275327682495, 0.005318028852343559, 0.05097498744726181, 0.015828615054488182, -0.0018089894438162446, 0.03421829640865326, -0.005015111528337002, 0.016890812665224075, -0.009353077970445156, 0.0229952409863472, 0.05150763690471649, 0.00980205088853836, -0.008110507391393185, -0.044637538492679596, 0.016388744115829468, -0.0004527675628196448, -0.26020920276641846, 0.02899756096303463, -0.026115689426660538, -0.016051342710852623, 0.028851475566625595, -0.00020610801584552974, -0.010615970939397812, -0.0511932335793972, -0.001146529451943934, 0.04836621508002281, -0.023737221956253052, -0.048875920474529266, -0.036889515817165375, 0.05014693737030029, -0.011312665417790413, 0.000051883107516914606, -0.000733632652554661, -0.041643861681222916, -0.01061911042779684, 0.05158775672316551, 0.01000435370951891, -0.06718617677688599, 0.00576208857819438, 0.05206121504306793, 0.03388885408639908, 0.0271876510232687, -0.07324323058128357, 0.03304595500230789, -0.03515961393713951, 0.0009508858784101903, -0.006783694494515657, 0.021471094340085983, 0.024049025028944016, -0.045558251440525055, -0.022608915343880653, -0.028633808717131615, 0.021637538447976112, 0.02151232212781906, -0.009856360964477062, 0.024335339665412903, -0.04917747899889946, -0.05557989701628685, -0.012458493001759052, -0.006203425582498312, 0.09307188540697098, 0.005367263685911894, -0.05948770046234131, -0.01765928976237774, -0.053346242755651474, 0.07096292823553085, -0.034258950501680374, -0.055759038776159286, -0.03510235622525215, 0.07645490765571594, -0.01676786318421364, -0.005993090104311705, 0.03547361120581627, -0.015408293344080448, -0.0251349788159132, -0.027910469099879265, 0.00013935148308519274, -0.03722729906439781, -0.01286364160478115, -0.048790331929922104, -0.03959919139742851, -0.06750842183828354, -0.05932122841477394, -0.006647519301623106, 0.038540590554475784, 0.01899038255214691, -0.021923068910837173, -0.005273770075291395, 0.012383165769279003, -0.10799141228199005, -0.006489726714789867, -0.02515559270977974, -0.03599978983402252, -0.04600686579942703, 0.009395693428814411, 0.04493372142314911, -0.04329477995634079, -0.04367893561720848, 0.0474352166056633, 0.016637330874800682, 0.01446634903550148, 0.00460473308339715, 0.01162605918943882, -0.013859981670975685, -0.03318614140152931, 0.010546257719397545, 0.07461947202682495, 0.018424462527036667, 0.014235681854188442, -0.043324150145053864, -0.00015007765614427626, 0.01990649290382862, 0.0545724555850029, -0.00992569513618946, 0.042732492089271545, 0.014905950985848904, 0.05070687457919121, -0.04807179048657417, 0.01990712620317936, -0.04680916294455528, 0.0034285075962543488, -0.026030579581856728, -0.05735563859343529, 0.03693461790680885, 0.04438967630267143, -0.004186300095170736, -0.010180339217185974, -0.039995793253183365, -0.0051856813952326775, -0.04585085064172745, -0.024213984608650208, -0.04482346028089523, 0.012075611390173435, 0.019112708047032356, 0.01538989506661892, -0.024029718711972237, -0.053914036601781845, 0.014770218171179295, 0.03304531052708626, 0.0010844510979950428, -0.0861058458685875, -0.045338280498981476, -0.0030790437012910843, -0.02611793950200081, -0.026759639382362366, 0.04074505344033241, -0.02894609235227108, 0.04495378956198692, -0.01250244677066803, -0.04474101960659027, 0.018932359293103218, 0.015070615336298943, 0.029018118977546692, -0.028764139860868454, -0.03543155640363693, -0.03940712288022041, -0.0067487298510968685, -0.0238245390355587, 0.016969041898846626, 0.024465287104249, 0.04395313560962677, 0.02095300890505314, 0.01318210456520319, 0.0210386011749506, -0.00035187063622288406, 0.03310336172580719, 0.008791226893663406, -0.055615510791540146, 0.047132041305303574, -0.0351557657122612, -0.03890174627304077, -0.016130628064274788, 0.024324575439095497, -0.03255578503012657, -0.033168405294418335, -0.04723873734474182, 0.04101377725601196, -0.03297895938158035, -0.027083100751042366, -0.03675733134150505, 0.00001735257319523953, 0.054615434259176254, -0.036514315754175186, 0.05091845616698265, -0.028187913820147514, 0.0010706876637414098, 0.028566734865307808, 0.027860727161169052, -0.029551060870289803, 0.03930238261818886, -0.008400024846196175, -0.019250310957431793, -0.005171915981918573, 0.03445718064904213, 0.006081267260015011, 0.024730408564209938, 0.015500909648835659, -0.03608984127640724, 0.02073235809803009, -0.007198770996183157, 0.052733827382326126, 0.019558152183890343, -0.013594839721918106, -0.01401794608682394, -0.01399212796241045, -0.007139299530535936, -0.03630777820944786, -0.023153526708483696, -0.03737563639879227, 0.03369786962866783, -0.03375667706131935, -0.0670577734708786, -0.004756726790219545, 0.02249828353524208, 0.02974843606352806, 0.022141125053167343, 0.0033621350303292274, 0.014563240110874176, -0.012329715304076672, 0.0013749549398198724, 0.049971651285886765, -0.047821443527936935, 0.01254225056618452, -0.0065530878491699696, 0.02004394307732582, 0.025618642568588257, 0.036022622138261795, -0.039179813116788864, -0.017212003469467163, -0.021256521344184875, -0.013001332059502602, -0.020969271659851074, -0.03754206374287605, -0.0045877243392169476, 0.010184535756707191, -0.022128980606794357, -0.011500351130962372, -0.023145120590925217, -0.0006679432699456811, -0.02355833724141121, -0.00941919069737196, 0.03522190451622009, -0.0513853058218956, -0.014420661143958569, 0.02810228057205677, -0.024351779371500015, -0.0017391477013006806, -0.02932986244559288, 0.022905604913830757, 0.01768570765852928, -0.03749328851699829, -0.013092849403619766, -0.0719013512134552, 0.017767678946256638, -0.024276690557599068, 0.031757693737745285, -0.00194461434148252, -0.02510794997215271, -0.01326433289796114, -0.027009794488549232, -0.039139047265052795, -0.005617073737084866, 0.006474753376096487, -0.02370471879839897, 0.022886477410793304, 0.03145759552717209, -0.004455583170056343, 0.031167106702923775, -0.00339115341193974, -0.0028755636885762215, 0.06751400977373123, -0.05589280277490616, -0.023584449663758278, -0.010851748287677765, -0.048697568476200104, 0.021454891189932823, 0.01639237068593502, 0.02062053605914116, -0.05319489538669586, 0.0693056508898735, 0.048062294721603394, 0.02284969575703144, 0.050502803176641464, 0.006834396161139011, 0.03971615433692932, -0.024895725771784782, -0.014682185836136341, -0.06543896347284317, 0.027507729828357697, 0.045947443693876266, 0.016913531348109245, -0.02829977497458458, -0.01441240031272173, -0.012276165187358856, 0.052230700850486755, -0.0625990629196167, -0.023382222279906273, 0.024926017969846725, -0.004080289509147406, 0.0025492398999631405, -0.0021053776144981384, -0.034694693982601166, 0.03658539801836014, 0.040552422404289246, -0.02028273232281208, -0.0642259269952774, -0.027823174372315407, 0.05439980700612068, 0.02199399657547474, 0.010248408652842045, -0.05323543772101402, 0.0042254626750946045, 0.04325922951102257, 0.027165396139025688, 0.01673514023423195, 0.057980287820100784, -0.04938919469714165, 0.01663990318775177, 0.012701218947768211, -0.060320738703012466, 0.014615839347243309, -0.009957946836948395, 0.023541755974292755, -0.05633670836687088, 0.01515562180429697, 0.015581429935991764, -0.010106982663273811, -0.06639751046895981, 0.06599507480859756, 0.0037927806843072176, -0.011738259345293045, -0.03436049818992615, 0.0059051006101071835, -0.04625146836042404, -0.017286231741309166, -0.002030664822086692, 0.00841791182756424, -0.022205201908946037, 0.07512840628623962, 0.025496672838926315, -0.00431202445179224, 0.05458811670541763, -0.019349921494722366, -0.0017326533561572433, 0.019516540691256523, 0.06964872777462006, 0.07744350284337997, 0.04685178026556969, -0.013937477953732014, 0.05585889145731926, -0.013560336083173752, -0.06450734287500381, 0.018086271360516548, -0.03568699583411217, -0.01946362294256687, -0.004373330622911453, 0.03968566656112671, 0.07987568527460098, 0.0247183945029974, 0.045955218374729156, -0.05690870061516762, 0.00889216922223568, -0.035261914134025574, 0.03262513130903244, 0.019172558560967445, 0.03985688090324402, 0.002309107221662998, 0.011336332187056541, 0.011479672975838184, -0.045166563242673874, 0.048119571059942245, -0.01150995772331953, -0.020093180239200592, -0.014918690547347069, 0.008688348345458508, 0.007988205179572105, 0.022909874096512794, 0.05568869411945343, 0.07199382036924362, -0.056669577956199646, -0.007953491061925888, 0.01127234473824501, 0.007346188649535179, 0.014853148721158504, -0.014238828793168068, 0.008002474904060364, -0.0018950983649119735, 0.015472066588699818, 0.027539832517504692, -0.016278140246868134, -0.049509793519973755, -0.010785805061459541, 0.02848636358976364, -0.032514531165361404, 0.024593226611614227, 0.010489235632121563, -0.01205418910831213, -0.013402286916971207, -0.04773557931184769, -0.060640979558229446, -0.019676437601447105, -0.07402558624744415, -0.012734017334878445, 0.03696383535861969, -0.010140258818864822, -0.010952651500701904, -0.02593129500746727, -0.0035907947458326817, -0.00895172543823719, 0.05386679247021675, -0.00653387326747179, -0.04762626066803932, 0.02928788587450981, 0.02134452946484089, 0.03924625366926193, 0.042748454958200455, 0.03365233913064003, -0.046366043388843536, -0.015028060413897038, -0.04113513231277466, -0.023954810574650764, 0.051116008311510086, 0.012804081663489342, 0.008981473743915558, -0.08719967305660248, 0.01368548534810543, 0.008876915089786053, 0.012086676433682442, -0.07809530198574066, 0.000008711655937077012, 0.015819601714611053, -0.00830364041030407, 0.03605975955724716, -0.027457010000944138, -0.01502121239900589, -0.03702647238969803, -0.007077865302562714, 0.03856318071484566, 0.01438912469893694, 0.04303446039557457, -0.04416311904788017, 0.057117704302072525, 0.016258569434285164, -0.004537386354058981, -0.03140223026275635, -0.011482474394142628, -0.0018349007004871964, 0.034159306436777115, -0.02722286246716976, -0.03483523055911064, -0.028570745140314102, -0.04070939123630524, -0.004931299015879631, 0.014211785048246384, -0.014533543959259987, -0.04796675220131874, 0.019069895148277283, 0.05001702159643173, -0.05613149330019951, 0.0597153976559639, -0.024603672325611115, 0.025917671620845795, 0.00684318644925952, -0.01666979305446148, 0.010688352398574352, 0.0356798954308033, -0.010124790482223034, 0.014316277578473091, 0.04789992794394493, -0.017527109012007713, -0.02112652361392975, -0.01470454316586256, 0.02274993434548378, 0.03515631705522537, -0.021019458770751953, 0.04451204836368561 ]
[ -0.10339732468128204, -0.028814619407057762, -0.042817533016204834, -0.038237106055021286, 0.04421812668442726, -0.03478885814547539, 0.05316885933279991, 0.020563362166285515, -0.014850681647658348, -0.024232132360339165, -0.011461906135082245, -0.026203997433185577, -0.01312104519456625, 0.023231809958815575, 0.05191429704427719, 0.00007019800978014246, -0.012732326053082943, -0.046181656420230865, -0.06202012300491333, 0.005508266389369965, 0.053949255496263504, -0.03151024878025055, -0.031039297580718994, -0.03106614388525486, 0.025285324081778526, 0.04178109019994736, 0.007519247476011515, -0.0675061047077179, 0.014568231999874115, -0.17397958040237427, -0.0037946768570691347, 0.02044956013560295, 0.01648693159222603, 0.0044343979097902775, 0.0000735891007934697, 0.015204857103526592, 0.03200611472129822, 0.02269938215613365, -0.0023355798330157995, 0.0742209181189537, -0.0017777414759621024, 0.04386789724230766, -0.026500195264816284, 0.022816771641373634, 0.023622749373316765, -0.005185286048799753, -0.03905567154288292, -0.008435500785708427, -0.018205389380455017, 0.014312786981463432, -0.03386868163943291, -0.007788542192429304, -0.05409761518239975, -0.019356360659003258, -0.028050119057297707, 0.028479205444455147, 0.03943879157304764, 0.04174375534057617, -0.0020776111632585526, 0.022701671347022057, 0.032390326261520386, -0.02906077913939953, -0.10990113765001297, 0.09256376326084137, 0.041235700249671936, 0.07636310160160065, 0.02901346981525421, -0.03690741956233978, 0.0027731594163924456, 0.07213345915079117, 0.055531345307826996, -0.02358509600162506, -0.031472448259592056, 0.06074301153421402, 0.013816384598612785, -0.053650904446840286, -0.006176922935992479, 0.020889775827527046, 0.05587119236588478, -0.006046323571354151, -0.05104723945260048, 0.0056496355682611465, 0.06275293976068497, -0.0021398107055574656, -0.027994327247142792, -0.017922239378094673, -0.009218163788318634, 0.026783853769302368, 0.04020526632666588, 0.008790274150669575, 0.03044239617884159, -0.03573736175894737, 0.029419472441077232, 0.048336055129766464, -0.0458708256483078, -0.013529881834983826, 0.010626399889588356, -0.0042387498542666435, -0.013219963759183884, 0.38910847902297974, -0.03740616515278816, -0.02555502951145172, 0.02098778448998928, -0.0028970702551305294, -0.0039024746511131525, 0.006734973751008511, -0.009301835671067238, -0.03455162048339844, -0.0034867438953369856, -0.023970037698745728, 0.006230452563613653, 0.030253291130065918, 0.04569290950894356, -0.046667397022247314, -0.041515499353408813, -0.00732068158686161, 0.009288239292800426, -0.0003165096277371049, -0.00013675642549060285, 0.013946043327450752, -0.012171571142971516, -0.031430285423994064, 0.021591341122984886, 0.014889615587890148, 0.020553145557641983, -0.027557548135519028, 0.023795975372195244, 0.06855520606040955, 0.045627787709236145, 0.017911599949002266, 0.04436015710234642, -0.07840665429830551, -0.07931256294250488, -0.01397438533604145, 0.013201314955949783, 0.02059359662234783, 0.015229098498821259, -0.014663671143352985, 0.010952763259410858, 0.01171008963137865, 0.021012846380472183, -0.030002297833561897, 0.018374096602201462, -0.020627036690711975, -0.05425218120217323, 0.14765344560146332, -0.021798117086291313, -0.0052293394692242146, -0.048630960285663605, -0.00805587600916624, -0.00038523587863892317, 0.029140934348106384, -0.02735971473157406, -0.04884413257241249, 0.016772352159023285, 0.028897009789943695, 0.09448637813329697, -0.009209963493049145, -0.038679659366607666, -0.041627176105976105, -0.0748288631439209, -0.017003430053591728, -0.04881526529788971, 0.02651924267411232, 0.0192634928971529, -0.08216408640146255, -0.028858570381999016, -0.0005090879858471453, -0.019456222653388977, -0.0879162922501564, -0.006852630991488695, 0.0014833447057753801, -0.06496108323335648, -0.014101801440119743, 0.053330209106206894, 0.0018322033574804664, -0.03917163982987404, -0.04007796198129654, 0.04593948274850845, 0.0002749804116319865, -0.029905380681157112, 0.030875377357006073, -0.053506359457969666, -0.012326646596193314, 0.004146632272750139, -0.07980591803789139, -0.037663672119379044, 0.012486751191318035, 0.0024895055685192347, 0.007446337956935167, -0.007165770046412945, -0.052438464015722275, -0.035198137164115906, 0.08109712600708008, -0.04667998105287552, -0.032251372933387756, 0.040307700634002686, -0.010161872953176498, 0.000607209512963891, -0.011719960719347, 0.04702231287956238, 0.06507150083780289, 0.006194729823619127, 0.03791828081011772, -0.022329099476337433, 0.02144838683307171, 0.050145089626312256, -0.0548175573348999, 0.009704080410301685, 0.032901447266340256, -0.0367736779153347, 0.01874314807355404, -0.019943535327911377, -0.0003765371802728623, -0.03443901613354683, -0.09099742770195007, 0.024684734642505646, 0.051425330340862274, 0.0024092423263937235, 0.011291510425508022, -0.07397864013910294, -0.07629047334194183, 0.00044172193156555295, -0.34360361099243164, -0.013201416470110416, -0.0241513904184103, -0.03084304742515087, 0.042378585785627365, -0.0647403672337532, 0.004928204696625471, -0.029919710010290146, -0.07047084718942642, 0.011623358353972435, 0.04949556663632393, -0.01560184545814991, 0.0029878164641559124, -0.04745819419622421, 0.019929837435483932, 0.026598677039146423, -0.02666213922202587, -0.07773572951555252, -0.043155487626791, 0.04539554566144943, 0.006485939025878906, 0.009455856867134571, -0.009134300984442234, -0.07065996527671814, 0.01628747582435608, -0.04678277298808098, 0.09206940233707428, -0.05009869113564491, 0.11031690239906311, -0.01883893832564354, 0.023809373378753662, 0.018574686720967293, 0.023160774260759354, -0.06610871851444244, -0.006896891165524721, -0.0682016983628273, -0.03044511005282402, 0.007681065704673529, 0.022023605182766914, -0.009212031029164791, 0.004185800440609455, 0.014109528623521328, -0.033883918076753616, -0.038861487060785294, 0.013306786306202412, -0.02549068070948124, -0.017385859042406082, -0.006116504780948162, -0.006075835786759853, 0.09345661103725433, -0.018308553844690323, 0.025588886812329292, 0.015412814915180206, 0.04563017934560776, 0.0029581054113805294, -0.003548989538103342, -0.0606277659535408, -0.011393733322620392, -0.0026453754398971796, 0.004007866606116295, 0.05648285150527954, 0.04361271485686302, 0.029761498793959618, -0.05493352934718132, -0.0036133627872914076, -0.005017864517867565, -0.005027491133660078, -0.0001366522628813982, 0.06227113679051399, -0.04595671966671944, -0.043126512318849564, 0.09630957245826721, -0.022060628980398178, 0.0364566445350647, 0.023152075707912445, 0.07268451899290085, -0.014910111203789711, 0.027775555849075317, 0.01958182267844677, -0.001990030286833644, 0.031281448900699615, 0.009200396947562695, 0.035026345402002335, -0.028098298236727715, 0.030383557081222534, 0.008749919943511486, -0.0014416236663237214, 0.05982424318790436, 0.03100774809718132, -0.03343065083026886, -0.03442563861608505, -0.012004378251731396, 0.01324983686208725, -0.062013398855924606, 0.058534204959869385, -0.03195749223232269, -0.25106871128082275, 0.01884208619594574, 0.12893229722976685, 0.06900937110185623, -0.0007850026013329625, 0.01731828786432743, 0.04226541146636009, -0.0775851458311081, -0.0034643523395061493, 0.024205921217799187, 0.012939298525452614, 0.013146317563951015, 0.019235769286751747, -0.039790261536836624, 0.020782368257641792, -0.005443370435386896, 0.07560495287179947, 0.00032517037470825016, 0.0253837238997221, 0.02964388206601143, 0.03163932263851166, 0.019452812150120735, 0.1833873689174652, 0.011421864852309227, 0.054598525166511536, -0.016790954396128654, 0.022113081067800522, 0.026206331327557564, 0.0810987576842308, 0.017928659915924072, 0.07798723876476288, -0.01976322941482067, 0.0767844170331955, 0.0025157697964459658, 0.030208995565772057, -0.09942897409200668, -0.015295285731554031, 0.031305454671382904, 0.016660349443554878, -0.01809532940387726, -0.029340116307139397, -0.008619457483291626, -0.0905529037117958, -0.012079356238245964, 0.10469502955675125, -0.0019087851978838444, 0.016674021258950233, -0.07118099927902222, -0.018845902755856514, -0.013003145344555378, -0.047000132501125336, -0.01575595512986183, 0.014331469312310219, -0.028734765946865082, 0.027378596365451813, 0.03722408413887024, 0.03252405673265457, -0.04165739193558693, -0.020641587674617767, 0.04484755918383598, 0.013001118786633015, -0.001775627606548369, 0.06124058738350868, 0.04397823289036751, 0.026244482025504112 ]
[ 0.01462765783071518, 0.029333679005503654, -0.03738749772310257, 0.005935782101005316, -0.013618535362184048, -0.006702870596200228, 0.0168923232704401, 0.016439899802207947, -0.0006170494598336518, 0.006486234720796347, -0.02072092890739441, -0.003931502811610699, 0.013286681845784187, -0.018291454762220383, 0.03529089316725731, 0.012344119139015675, -0.021595647558569908, -0.044567473232746124, 0.007354550063610077, -0.021273242309689522, -0.008652540855109692, 0.02713472954928875, 0.025696629658341408, -0.016608603298664093, -0.01291552186012268, -0.008067740127444267, -0.021691126748919487, -0.004308856558054686, 0.022123387083411217, -0.11486577242612839, -0.048367392271757126, -0.005955666769295931, -0.027259396389126778, 0.02376866526901722, 0.002980094635859132, 0.015180732123553753, 0.013965293765068054, 0.054835472255945206, -0.0251743346452713, -0.008268085308372974, -0.039269786328077316, 0.009819203056395054, 0.0037350114434957504, 0.027833545580506325, -0.005429321434348822, 0.007873356342315674, -0.021624445915222168, -0.024025829508900642, -0.01320209726691246, -0.008433057926595211, -0.018945634365081787, 0.01373412273824215, -0.023741479963064194, 0.001822680002078414, 0.05167260766029358, -0.0021716828923672438, -0.03936590999364853, -0.031100157648324966, 0.009953100234270096, -0.001567661645822227, -0.014735379256308079, -0.023035835474729538, -0.04122345522046089, -0.020906969904899597, 0.02343093417584896, -0.0003040025767404586, -0.014158995822072029, -0.018198911100625992, -0.006347482558339834, -0.0423632487654686, 0.012690736912190914, -0.00600429205223918, -0.00793825276196003, 0.004606320522725582, -0.017894385382533073, -0.008445185609161854, 0.02275168150663376, -0.031124871224164963, 0.02648055925965309, 0.009852784685790539, -0.03211914375424385, 0.027401145547628403, -0.0207943357527256, 0.042783088982105255, 0.04392925649881363, -0.0033050940837711096, -0.02384449914097786, -0.010479063726961613, -0.011622708290815353, 0.04167043790221214, -0.05035562813282013, 0.008745819330215454, 0.0312560610473156, 0.0075867860578000546, -0.05328793823719025, 0.014386234804987907, 0.02116468921303749, -0.04702981561422348, 0.004258406348526478, 0.8646185398101807, -0.021703150123357773, 0.029025157913565636, 0.036409538239240646, -0.02395634539425373, -0.0020789208356291056, 0.01266473438590765, 0.01864026114344597, -0.022375520318746567, 0.02832867205142975, -0.02872403897345066, 0.012197052128612995, 0.00811820849776268, 0.05832190439105034, 0.01702233962714672, 0.013429558835923672, 0.00509373564273119, 0.019309794530272484, -0.009470444172620773, 0.003507543122395873, 0.019607149064540863, 0.00205046683549881, -0.029453177005052567, -0.007519873790442944, 0.01892250031232834, -0.001594159402884543, -0.17647682130336761, 0.019750598818063736, -7.660259547347136e-33, 0.03155312314629555, 0.003467180533334613, 0.022360000759363174, 0.017952684313058853, 0.04434562101960182, -0.011302643455564976, 0.040837474167346954, 0.010281133465468884, 0.00032155431108549237, -0.03866981342434883, -0.004510301165282726, 0.005738324485719204, -0.018137171864509583, -0.02503841184079647, 0.0447566956281662, -0.01784035749733448, 0.028296304866671562, 0.04528769478201866, -0.008704381063580513, 0.00738221500068903, 0.03839684650301933, 0.03348277509212494, 0.029772361740469933, -0.02802107110619545, -0.009598481468856335, -0.008619598113000393, -0.004455666057765484, 0.009997284039855003, 0.005469507072120905, -0.041330404579639435, -0.011344715021550655, 0.0234027449041605, -0.006215472240000963, -0.02974041737616062, 0.01686485856771469, -0.031986527144908905, 0.005685009993612766, 0.01896272599697113, 0.01336060743778944, -0.060946933925151825, -0.02937045507133007, 0.02378665842115879, -0.025316456332802773, 0.005789711605757475, -0.037178922444581985, -0.0266883485019207, 0.010297632776200771, 0.015787970274686813, 0.026845864951610565, 0.016530759632587433, 0.028712909668684006, 0.03843845799565315, -0.013092693872749805, 0.007157399319112301, -0.019719010218977928, 0.020363034680485725, -0.015716662630438805, -0.017279308289289474, 0.005803883075714111, 0.028452018275856972, -0.005069233942776918, 0.0021629538387060165, -0.0015093720285221934, 0.018002081662416458, 0.014169802889227867, -0.01809052936732769, 0.014495903626084328, -0.048211369663476944, 0.029256079345941544, -0.022802460938692093, -0.03567639738321304, -0.000718003953807056, -0.046006835997104645, -0.04010320082306862, 0.02308565378189087, -0.013174991123378277, 0.0012560907052829862, 0.004187750164419413, 0.001344767166301608, 0.006624398287385702, 0.0203221645206213, -0.0009267877321690321, -0.0006806530291214585, -0.0007485702517442405, 0.002707570791244507, -0.0031130968127399683, -0.004749289248138666, -0.03228763863444328, 0.036610428243875504, 0.0006413854425773025, 0.02943059615790844, -0.0065511972643435, -0.02620360441505909, -0.030376441776752472, -0.006001737434417009, 7.10499275021715e-33, 0.007297252770513296, -0.0271912869066, -0.014296609908342361, 0.0091917235404253, -0.014517487026751041, -0.011244885623455048, 0.001571414526551962, 0.02602843940258026, -0.01714680902659893, 0.018979279324412346, 0.008076154626905918, -0.0020047293510288, 0.017698250710964203, 0.03747261315584183, 0.035471584647893906, 0.0019131044391542673, -0.0046911416575312614, -0.004753202199935913, 0.03875458613038063, -0.0066253626719117165, 0.0005177991115488112, -0.005449095740914345, 0.014159590005874634, -0.004088527522981167, -0.014543288387358189, 0.07920344173908234, -0.0467815101146698, -0.01588979922235012, 0.004194859880954027, 0.003166928654536605, 0.008517060428857803, 0.017678000032901764, 0.016710398718714714, -0.06185755878686905, -0.03995317593216896, 0.015052088536322117, 0.009954673238098621, -0.025816192850470543, 0.004988405853509903, 0.02623460255563259, 0.03478849679231644, -0.025112107396125793, -0.0029549195896834135, -0.032365020364522934, -0.004615293815732002, -0.017306208610534668, 0.006852050311863422, 0.0002493294305168092, 0.02396857924759388, -0.0057152616791427135, 0.04614749550819397, 0.006713204551488161, -0.03652431070804596, -0.013058330863714218, 0.02878585457801819, 0.006387798581272364, -0.013064377941191196, -0.020080871880054474, -0.030622027814388275, -0.02798869088292122, -0.017286550253629684, 0.017464037984609604, -0.024623656645417213, 0.010991339571774006, -0.013422476127743721, 0.008716794662177563, -0.03673454746603966, -0.02515297383069992, -0.0005045194993726909, -0.037862375378608704, -0.028929591178894043, -0.011914215981960297, 0.01516522467136383, -0.00007031192944850773, -0.0008629239746369421, -0.009335378184914589, -0.003851389978080988, -0.01296708919107914, 0.008537634275853634, 0.02336331456899643, 0.030028700828552246, 0.000018276588889420964, 0.030995989218354225, 0.019253283739089966, -0.039382558315992355, -0.008055979385972023, 0.021089546382427216, -0.014707128517329693, -0.01215988676995039, 0.024857131764292717, -0.022988250479102135, -0.01781146228313446, -0.017888948321342468, 0.0286988765001297, 0.025270191952586174, -1.3344488181132874e-8, -0.0584816075861454, 0.05482370778918266, -0.03041103482246399, 0.03892851248383522, -0.0033722303342074156, 0.004939141217619181, -0.029379958286881447, -0.017407448962330818, 0.0016653721686452627, -0.017080696299672127, 0.013477959670126438, 0.016475960612297058, -0.0020132388453930616, -0.03464912250638008, 0.030965033918619156, 0.004827100317925215, -0.023812323808670044, -0.023712676018476486, 0.027582988142967224, 0.02090291678905487, 0.030087703838944435, 0.009167599491775036, -0.0216157715767622, 0.012346851639449596, -0.010985702276229858, -0.0040021431632339954, 0.012422202154994011, -0.049039777368307114, 0.032080329954624176, 0.03129647672176361, -0.01046356838196516, -0.027534930035471916, -0.0026271273382008076, 0.00922341737896204, -0.012566527351737022, -0.00827722530812025, -0.02758948504924774, -0.012846743687987328, 0.018055707216262817, 0.0036957866977900267, 0.014265064150094986, 0.006146550178527832, -0.004194264300167561, -0.015005744062364101, -0.035721395164728165, -0.011331005021929741, 0.005594272166490555, 0.01807916723191738, 0.008138651959598064, -0.029854467138648033, -0.02111431583762169, 0.01892232894897461, 0.014561510644853115, 0.005829743109643459, -0.007128396071493626, 0.04624156653881073, 0.00514070363715291, -0.015049322508275509, -0.044518232345581055, -0.004592844285070896, 0.0229562446475029, -0.026088761165738106, -0.040678929537534714, -0.017539268359541893 ]
cf-using-net-framework-classes
https://markhneedham.com/blog/2009/06/16/cf-using-net-framework-classes
false
2009-06-26 00:02:45
Safe refactoring: Removing object initializer, introducing builder
[ "coding", "refactoring", "safe" ]
[ "Coding", "Incremental Refactoring" ]
I previously wrote about http://www.markhneedham.com/blog/2009/05/26/refactoring-removing-duplication-more-safely/[an approach we took to safely remove some duplication] and I recently followed a similar mantra to replace an http://www.markhneedham.com/blog/2009/02/16/c-object-initializer-and-the-horse-shoe/[object initializer] call which had around 40 properties being setup with a builder to try and make the code a bit easier to understand. We did have tests checking the values being setup by the object initializer so I was already able to refactor with some degree of safety - it would probably have been possible to just create the builder and build the object from that and then delete the old code and replace it with the new but I've caused myself too many problems from doing that before that I decided to try a more incremental approach. The idea was to have the builder and the object initializer both creating the object at the same time and as I built a property from the builder I would set it in the object initializer until eventually all of the properties were being set directly from the builder's object and then I could just return that instead - this approach feels quite similar to what Kent Beck describes as having parallel implementations in http://www.infoq.com/presentations/responsive-design[his recent presentation on Responsive Design]. The code I started with was something like this: [source,csharp] ---- public Foo CreateMeAFoo() { return new Foo { Bar = "someValue", OtherBar = "someOtherValue", UltraBar = "aValue", ... AnotherArgumentWayDownHere = 1 ... AndSoOn = "yes" } } ---- I worked together with one of the business analysts on our team who pointed out that there were actually some clear groupings in what I had just been considering 'data' and we were able to put those explicit domain concepts into the code as part of the builder. My first step however was to remove the object initializer to avoid making any silly mistakes - an example of one I have made when using object initializers is to set a property using 'Int16.Parse' and then passing in a string with a value of "53700" which causes the method to throw an exception and the stack trace just directs you to the first line of the object initializer, making it quite difficult to work out which line has failed. Having worked the code into a sequence of setters I gradually added methods to the builder to create the policy: [source,csharp] ---- public Foo CreateMeAFoo() { var fooBuilder = new FooBuilder().AddBars("someValue", "someOtherValue", "aValue); var newFoo = fooBuilder.Build(); var foo = new Foo(); foo.Bar = newFoo.Bar; foo.OtherBar = newFoo.OtherBar; foo.UltraBar = newFoo.UltraBar; ... foo.AnotherArgumentWayDownHere = 1 return foo; } ---- [source,csharp] ---- public class FooBuilder { private string bar; private string otherBar; private string ultraBar; public FooBuilder AddBars(string bar, string otherBar, string ultraBar) { this.bar = bar; this.otherBar = otherBar; this.ultraBar = ultraBar; return this; } public Foo Build() { var foo = new Foo(); foo.Bar = bar; foo.OtherBar = otherBar; foo.UltraBar = ultraBar; return foo; } } ---- I created some duplication by doing this - I am now creating the 'Foo' twice - but I didn't check any of the code into the main branch until I had totally replaced the original Foo creation with the builder. I did about two of three properties at a time and then ran the tests which I thought might be too small a step but actually saved me on a couple of occasions so it probably actually saved me time. Eventually when I had all the tests passing I got rid of the original Foo and replaced it with the one from the builder: [source,csharp] ---- public Foo CreateMeAFoo() { var fooBuilder = new FooBuilder().AddBars("someValue", "someOtherValue", "aValue); return fooBuilder.Build(); } ---- This code is still in a state of transition - it is still possible to create an object with half the fields not set by passing in nulls to the builder for example - and I'm trying to work out what the best step is to fix that. I generally prefer to have everything setup in the constructor and then you know that the object is in a good state as soon as you create it, but in this case moving everything straight into the constructor will probably make the object even more difficult to deal with. My current thinking is to maybe check the pre conditions for creating the object inside the builder and then refactor out value objects so that there are not so many properties overall but I'm open to other ideas.
null
null
[ 0.009941916912794113, -0.02144327387213707, -0.005602745339274406, 0.031336408108472824, 0.08003797382116318, 0.027984468266367912, 0.0442882664501667, 0.01750832237303257, -0.000004416401679918636, -0.028491467237472534, -0.008925408124923706, -0.005438356194645166, -0.07260998338460922, 0.013004211708903313, -0.020344657823443413, 0.06436120718717575, 0.07892383635044098, -0.011782622896134853, 0.021215414628386497, 0.016254929825663567, 0.022752126678824425, 0.07276014983654022, -0.0120864761993289, 0.022891974076628685, 0.045098789036273956, 0.03261919319629669, -0.018201082944869995, 0.004259692970663309, -0.05887501314282417, -0.014217913150787354, 0.017026763409376144, 0.023998690769076347, 0.0003452238452155143, -0.025799721479415894, 0.012183254584670067, -0.02846478670835495, -0.01725083217024803, 0.0014528215397149324, -0.004265738185495138, 0.021772772073745728, -0.07033401727676392, 0.040086645632982254, 0.006812722887843847, 0.005855129566043615, -0.035169873386621475, -0.005938746500760317, -0.047844599932432175, -0.02118825726211071, -0.03050236590206623, -0.018125558272004128, -0.06495076417922974, 0.03194226324558258, -0.017386725172400475, -0.002162147779017687, -0.0033866362646222115, 0.055776990950107574, 0.02747151628136635, -0.08970264345407486, 0.019534006714820862, -0.043663181364536285, 0.014755822718143463, -0.008733794093132019, 0.002714072586968541, 0.020754989236593246, 0.014220718294382095, -0.004542225040495396, -0.0158025324344635, 0.026069248095154762, -0.03152140602469444, -0.026346735656261444, -0.016443897038698196, -0.007745970506221056, 0.009894912131130695, 0.002065239939838648, 0.0036133676767349243, -0.04708562418818474, -0.015304656699299812, 0.06285154819488525, 0.004637385252863169, 0.05581357702612877, -0.011390660889446735, -0.001090427627786994, 0.010836382396519184, 0.014958473853766918, 0.007011873181909323, -0.029559992253780365, -0.03325125575065613, 0.012221142649650574, -0.042514100670814514, 0.0454508513212204, 0.021108917891979218, -0.03238184377551079, 0.0025307489559054375, 0.024607578292489052, 0.013192516751587391, 0.0074821640737354755, 0.002869302872568369, 0.012298421002924442, -0.0030051523353904486, 0.012600420042872429, -0.027065085247159004, -0.015696628019213676, 0.012451098300516605, 0.0025996759068220854, -0.053835175931453705, -0.02381436713039875, -0.04907267168164253, -0.008765138685703278, 0.008785643614828587, 0.0017922944389283657, -0.07169309258460999, 0.032397013157606125, -0.025578627362847328, -0.0067283036187291145, -0.07309486716985703, 0.048193395137786865, 0.012828639708459377, -0.018355168402194977, -0.02407783642411232, 0.024831142276525497, 0.033769167959690094, 0.023884614929556847, -0.011645333841443062, 0.0796763002872467, -0.020043473690748215, 0.029874052852392197, -0.015830105170607567, 0.07537128776311874, -0.029285188764333725, -0.08299273252487183, -0.0024171092081815004, 0.04652009159326553, -0.021666808053851128, 0.011716228909790516, 0.006363815627992153, -0.016680952161550522, 0.00001639798028918449, -0.0006826305179856718, 0.053880903869867325, 0.009555957280099392, -0.002500403905287385, -0.07443045824766159, 0.02847396768629551, -0.0027499147690832615, 0.002334028948098421, 0.030729666352272034, -0.0035717040300369263, -0.013794627971947193, -0.014083008281886578, 0.03381359204649925, 0.007889495231211185, 0.06951318681240082, 0.03910847753286362, -0.033652644604444504, 0.024992460384964943, 0.09692472219467163, 0.011228593997657299, 0.011770988814532757, -0.008318807929754257, 0.034475501626729965, 0.026552647352218628, 0.019617240875959396, 0.02930963598191738, 0.02690201811492443, 0.030055508017539978, 0.02025267668068409, -0.0063331592828035355, 0.05072185397148132, 0.0023867778945714235, -0.03581327572464943, -0.07332372665405273, -0.04702876880764961, 0.035935141146183014, -0.05969403311610222, -0.018853800371289253, 0.017719026654958725, 0.08564002811908722, -0.01738854870200157, 0.06550979614257812, 0.004926467780023813, -0.06428389251232147, 0.005287584383040667, 0.0022445651702582836, 0.028442930430173874, 0.02152177318930626, -0.02190818265080452, 0.0702333077788353, 0.035687100142240524, 0.007534859701991081, 0.02239408530294895, -0.0419158972799778, -0.06356297433376312, -0.01532818004488945, -0.02285286970436573, 0.05373223498463631, -0.0011146448086947203, -0.02132270485162735, 0.07235322147607803, 0.03594042733311653, 0.04429754987359047, 0.03273244947195053, 0.00020000350195914507, -0.005376976914703846, -0.03159447759389877, -0.025386016815900803, 0.01945982314646244, 0.01605893298983574, -0.007817143574357033, -0.052918121218681335, -0.004722399637103081, 0.0004935770411975682, -0.013391993939876556, 0.06601487845182419, -0.008612587116658688, 0.026698987931013107, 0.006785856559872627, 0.038903769105672836, -0.026314320042729378, 0.04102111980319023, -0.07141020148992538, 0.015340653248131275, -0.0013477727770805359, -0.006287168245762587, -0.0009246073313988745, 0.003773233387619257, 0.12267332524061203, 0.0291160736232996, -0.05943487957119942, -0.05936802923679352, 0.0070835622027516365, 0.024840686470270157, -0.019485803321003914, -0.0037458124570548534, -0.02186531573534012, 0.009541814215481281, 0.012064439244568348, -0.03387849032878876, -0.015723712742328644, 0.01719149388372898, -0.024991480633616447, 0.02490890398621559, 0.08026823401451111, -0.039507780224084854, 0.030195893719792366, 0.005197672173380852, -0.006866831798106432, -0.01020720973610878, -0.03709080442786217, -0.07910945266485214, 0.011745485477149487, 0.011940241791307926, -0.004953014198690653, 0.08504113554954529, -0.010181193239986897, -0.03341701254248619, -0.025955135002732277, -0.0376347154378891, -0.0061619943007826805, 0.015114677138626575, 0.07030636817216873, 0.005562927573919296, 0.06597637385129929, -0.019320372492074966, 0.013179340399801731, 0.00015891785733401775, -0.05395533889532089, 0.016624823212623596, -0.0046823411248624325, 0.007538520265370607, 0.04642990231513977, -0.010018503293395042, 0.0096583291888237, 0.007166496478021145, 0.003891946515068412, -0.025815144181251526, -0.01337066013365984, 0.028171956539154053, 0.0038452190347015858, -0.025610940530896187, -0.030257418751716614, -0.056241102516651154, 0.031337201595306396, -0.040999636054039, -0.02747422084212303, -0.002011738019064069, -0.08143775910139084, 0.036672160029411316, -0.08342001587152481, -0.07010070234537125, 0.004229573532938957, 0.030927011743187904, 0.03162778913974762, 0.0009992884006351233, 0.03969778120517731, 0.09240734577178955, 0.015422988682985306, -0.00988851673901081, -0.0019823862239718437, -0.013743212446570396, 0.028038669377565384, -0.00391390873119235, 0.023819925263524055, 0.0418902151286602, 0.006380630191415548, 0.0031017994042485952, -0.02847742848098278, 0.028129300102591515, 0.010315647348761559, -0.2656829357147217, 0.0032131699845194817, 0.003963498864322901, -0.07090450823307037, 0.00521800247952342, -0.003200720762833953, 0.015081856399774551, -0.035404693335294724, -0.024794217199087143, 0.06937047839164734, -0.014733023010194302, -0.06481987982988358, -0.01678970642387867, 0.04571196436882019, -0.00387947796843946, 0.04637305438518524, 0.010368941351771355, -0.014130782335996628, -0.01740621216595173, 0.06760837882757187, -0.009334512054920197, -0.07928571850061417, 0.01372097060084343, 0.0335170142352581, 0.016975589096546173, 0.039644576609134674, -0.095797099173069, 0.04926666244864464, -0.04747425392270088, 0.006911789532750845, -0.002243103925138712, 0.005482093896716833, 0.0033195645082741976, -0.0205416027456522, -0.03675948083400726, -0.0209585539996624, -0.0000996711605694145, 0.02976425737142563, -0.014963166788220406, 0.012963157147169113, -0.01812800019979477, -0.05879058688879013, 0.003095425898209214, -0.005577601492404938, 0.06278662383556366, -0.0038679835852235556, -0.08116763085126877, -0.03324815630912781, -0.06047873571515083, 0.06554780900478363, -0.01742360182106495, -0.04923569783568382, -0.0021330879535526037, 0.04247928038239479, 0.012638618238270283, -0.03433412313461304, 0.02149951085448265, -0.007257567718625069, -0.05141675844788551, -0.015162290073931217, -0.008006613701581955, -0.03523051738739014, -0.006298265885561705, -0.04034775495529175, 0.003542084014043212, -0.06274638324975967, -0.050756778568029404, -0.002145778853446245, 0.07803529500961304, 0.041441064327955246, -0.017005711793899536, 0.013221065513789654, 0.025721482932567596, -0.10928018391132355, 0.006864061113446951, -0.046703267842531204, 0.01559469010680914, -0.027974708005785942, -0.022950226441025734, 0.047256987541913986, -0.029330488294363022, -0.022007470950484276, 0.01703009009361267, 0.022318635135889053, -0.001288891420699656, -0.001914460794068873, 0.023176291957497597, 0.009908133186399937, -0.019785307347774506, 0.00603126548230648, 0.06686655431985855, -0.006708548404276371, 0.0065920534543693066, -0.04698840156197548, 0.008589019067585468, 0.038624007254838943, 0.025854013860225677, -0.020600860938429832, 0.017997317016124725, 0.007799570914357901, 0.04509357735514641, -0.05662089213728905, 0.034435514360666275, -0.03864516690373421, -0.010712829418480396, -0.018447866663336754, -0.04678910970687866, 0.0147338742390275, 0.03221289440989494, 0.035749584436416626, -0.008696667850017548, -0.037850674241781235, -0.0017768492689356208, -0.04932084307074547, -0.02270357497036457, -0.01937541738152504, 0.009838895872235298, 0.025807036086916924, -0.02100990153849125, -0.029222846031188965, -0.06801246851682663, 0.028304100036621094, -0.002423075260594487, 0.01311191264539957, -0.06396622210741043, -0.059073060750961304, -0.008660247549414635, -0.008219700306653976, -0.008216098882257938, 0.017073092982172966, -0.016907863318920135, 0.04423818737268448, -0.012585604563355446, -0.021418921649456024, -0.00732508534565568, 0.012042026035487652, -0.0379890538752079, -0.03945579752326012, -0.03939737379550934, 0.007101086433976889, 0.010546017438173294, 0.003660776186734438, 0.03156403824687004, 0.02651170641183853, 0.0443209707736969, 0.00003337303132866509, 0.06825238466262817, 0.001991641940549016, 0.0009721035021357238, 0.0212287288159132, 0.020124459639191628, -0.10465280711650848, 0.03014593943953514, -0.05267249792814255, -0.035628870129585266, -0.027073608711361885, 0.049237608909606934, -0.042602453380823135, -0.05486227199435234, -0.02619858831167221, 0.033692922443151474, -0.034290019422769547, -0.04102645441889763, -0.042316410690546036, 0.022415757179260254, 0.048138219863176346, -0.016673848032951355, 0.03680690377950668, -0.0265911016613245, -0.015181009657680988, 0.021392948925495148, 0.010409228503704071, -0.06377268582582474, 0.010699603706598282, 0.017052525654435158, -0.013816979713737965, -0.017159204930067062, 0.02784193493425846, 0.047826170921325684, 0.023553650826215744, 0.004534917883574963, -0.0172280203551054, 0.0004237803223077208, 0.00565377390012145, 0.05962114781141281, -0.008090839721262455, 0.0019703709986060858, 0.0022583333775401115, -0.013983351178467274, -0.0066227694042027, -0.03247221186757088, -0.010580024681985378, 0.007114926353096962, 0.04829661175608635, -0.020084278658032417, -0.06923817098140717, 0.026695959270000458, 0.04505990818142891, 0.018775828182697296, 0.024838512763381004, 0.000033243220968870446, 0.004586508963257074, -0.02760899066925049, 0.009678053669631481, 0.0673137828707695, -0.04633128270506859, -0.0005497565725818276, -0.016434410586953163, 0.021872596815228462, 0.048639848828315735, 0.028174301609396935, -0.04794849827885628, -0.005730761680752039, -0.0518365241587162, 0.005996627267450094, -0.04254862666130066, -0.014874479733407497, -0.019165275618433952, 0.016190458089113235, -0.009660775773227215, 0.0009931656531989574, -0.006889835000038147, 0.015814313665032387, 0.008148928172886372, -0.03182707726955414, 0.0309870857745409, -0.03754507750272751, 0.015188606455922127, 0.02575981616973877, -0.04427507147192955, 0.03799052909016609, -0.018305664882063866, 0.017806340008974075, 0.018091285601258278, -0.007022718898952007, -0.01646425575017929, -0.049517400562763214, 0.021012181416153908, 0.009253223426640034, 0.04610343277454376, -0.002409649547189474, -0.027225909754633904, -0.03243156522512436, -0.00253038527444005, -0.036545805633068085, 0.008382434025406837, -0.03481327369809151, -0.0015987763181328773, 0.021851571276783943, 0.059183694422245026, -0.014941772446036339, 0.04406902939081192, -0.022560102865099907, -0.006727761588990688, 0.06436187028884888, -0.08860378712415695, -0.026895122602581978, -0.043333616107702255, -0.08808934688568115, 0.01892152428627014, 0.013363715261220932, 0.03052106313407421, -0.037675756961107254, 0.0646938905119896, 0.039268799126148224, 0.025324104353785515, 0.033675190061330795, 0.010109387338161469, 0.02778090350329876, -0.04070967063307762, -0.0025438526645302773, -0.08043517172336578, 0.023982912302017212, 0.05572348088026047, 0.01509898342192173, -0.024201970547437668, -0.02570383995771408, -0.020594587549567223, 0.04552560672163963, -0.054760951548814774, -0.03172002732753754, 0.03890025615692139, 0.024733340367674828, -0.0038792684208601713, -0.008528108708560467, -0.04161377251148224, 0.005503952503204346, 0.02921539731323719, -0.05029352381825447, -0.02754308097064495, -0.04452856257557869, 0.05430148169398308, 0.004012895282357931, 0.023267917335033417, -0.04796258732676506, 0.010029764845967293, 0.06294486671686172, 0.009922581724822521, 0.04619140550494194, 0.03042469546198845, -0.018014200031757355, 0.05284040793776512, 0.041323717683553696, -0.024990327656269073, -0.009335069917142391, 0.0035014492459595203, 0.01763434335589409, -0.0530545711517334, 0.009272697381675243, 0.018294192850589752, -0.05204694718122482, -0.04753313958644867, 0.07115638256072998, 0.009672250598669052, -0.01962687447667122, -0.04133228585124016, 0.01157423760741949, -0.028207136318087578, -0.02174120768904686, -0.027016904205083847, 0.015186806209385395, -0.028174491599202156, 0.06439947336912155, -0.007579409517347813, -0.012609208934009075, 0.0616266168653965, 0.005521691869944334, -0.006052830256521702, -0.031235501170158386, 0.07274159789085388, 0.0835590660572052, 0.04300488531589508, -0.014055196195840836, 0.04093533754348755, -0.02295423299074173, -0.057666268199682236, 0.015398206189274788, -0.016046058386564255, -0.021479496732354164, -0.03845330327749252, 0.021907610818743706, 0.07004032284021378, -0.024381086230278015, 0.06183703616261482, -0.04375527426600456, -0.015279502607882023, 0.0056462460197508335, 0.02449020929634571, 0.031470149755477905, 0.04998728260397911, 0.006182083394378424, 0.018724527209997177, -0.0002507859899196774, -0.053135763853788376, 0.011375028640031815, -0.008758691139519215, -0.027052536606788635, 0.03168272227048874, 0.0062147025018930435, 0.020426267758011818, -0.004456368274986744, 0.014216512441635132, 0.07694979012012482, -0.033237650990486145, -0.008179846219718456, -0.010864482261240482, 0.01636393554508686, 0.03715536370873451, -0.03563535585999489, -0.008551189675927162, -0.03245953470468521, 0.020358514040708542, 0.0008183778845705092, -0.004017255734652281, -0.03638613969087601, -0.02027657814323902, 0.04328926280140877, -0.027527689933776855, 0.015085581690073013, 0.0024637077003717422, 0.020193152129650116, -0.021327629685401917, -0.06038738414645195, -0.050482381135225296, -0.0454334132373333, -0.06108146905899048, -0.01077919639647007, 0.017077837139368057, -0.01562771573662758, -0.013064885511994362, -0.02703814022243023, -0.01686055026948452, -0.003128134412690997, 0.06732219457626343, -0.044955454766750336, -0.04100741446018219, 0.014963415451347828, 0.006575369276106358, 0.03141733258962631, 0.037542812526226044, 0.042412370443344116, 0.005270002875477076, -0.01557644922286272, -0.0361781008541584, -0.0018221171339973807, 0.03134812414646149, 0.015070331282913685, -0.0027254377491772175, -0.1009802371263504, 0.022901691496372223, 0.009567736648023129, -0.022680507972836494, -0.06788884848356247, 0.01800484210252762, 0.022468971088528633, -0.0040421816520392895, 0.049123093485832214, -0.014307099394500256, -0.011445480398833752, -0.028924696147441864, -0.008749027736485004, 0.01649690978229046, 0.014020527713000774, 0.03948294371366501, -0.008702968247234821, 0.0833815336227417, 0.010605769231915474, -0.04131380468606949, -0.009388905018568039, 0.0013603855622932315, -0.004649704322218895, 0.016860300675034523, -0.01651771552860737, -0.013739393092691898, -0.028223417699337006, -0.039354655891656876, 0.004248255398124456, 0.020686089992523193, -0.02723555453121662, -0.025822067633271217, 0.005670289974659681, 0.05838203430175781, -0.05756014585494995, 0.029636472463607788, -0.030825229361653328, 0.04231656715273857, -0.00857731606811285, -0.016878794878721237, -0.010505830869078636, -0.0018458080012351274, 0.015351562760770321, 0.025543536990880966, 0.00008368790440727025, -0.019305773079395294, -0.017924264073371887, -0.016478249803185463, 0.049270354211330414, 0.020749596878886223, 0.009403972886502743, 0.010959477163851261 ]
[ -0.09022596478462219, -0.011496329680085182, -0.03175124153494835, -0.03116639330983162, 0.0063362205401062965, -0.043553248047828674, -0.015360989607870579, 0.031920138746500015, 0.03519222512841225, 0.01889810897409916, -0.009949197992682457, -0.053467247635126114, -0.028239570558071136, -0.01973189413547516, 0.08757814764976501, -0.004516267217695713, -0.02195054106414318, -0.03163227438926697, -0.010045846924185753, 0.018166011199355125, 0.0016684764996170998, -0.03268660604953766, -0.03200200945138931, -0.02105761505663395, 0.015066606923937798, 0.030760273337364197, 0.02502097748219967, -0.001515497569926083, 0.04379771649837494, -0.23280906677246094, -0.00346159259788692, 0.01924118399620056, 0.023711292073130608, -0.011551330797374249, 0.011586515232920647, 0.035033997148275375, 0.002466063480824232, 0.05619565024971962, -0.0197921022772789, 0.057245101779699326, 0.00910746119916439, 0.05481510981917381, -0.04680541902780533, -0.027688194066286087, 0.04079270735383034, 0.03633248060941696, 0.017285382375121117, -0.04068225622177124, 0.014758909121155739, 0.020831285044550896, -0.02868514321744442, -0.03864198178052902, -0.03657357022166252, -0.029122086241841316, 0.02472657896578312, 0.04865500330924988, 0.03781106323003769, 0.06636181473731995, 0.05091363191604614, 0.025556378066539764, 0.022558148950338364, -0.024374358355998993, -0.10382483899593353, 0.10315880179405212, 0.04328829050064087, 0.06063910201191902, -0.015045389533042908, -0.07232233881950378, 0.008914302103221416, 0.10985398292541504, -0.006419135257601738, -0.010623722337186337, 0.0031513457652181387, 0.01854008436203003, 0.019547561183571815, -0.017597610130906105, -0.011866659857332706, 0.02539156749844551, 0.03966841101646423, -0.019808193668723106, -0.04143912345170975, -0.031315214931964874, -0.021144738420844078, -0.011855782009661198, -0.040331169962882996, 0.01608309894800186, -0.008227676153182983, 0.03383715823292732, 0.05091513693332672, 0.030058741569519043, 0.030453622341156006, -0.02924269065260887, 0.048536378890275955, 0.0005686564836651087, -0.09698640555143356, 0.004601532127708197, -0.008748489432036877, -0.020101087167859077, -0.031020626425743103, 0.4138811230659485, -0.028573263436555862, -0.04051054269075394, 0.0736427754163742, 0.028368987143039703, -0.01884526014328003, 0.013328362256288528, -0.01938926987349987, -0.03708906099200249, 0.01556167472153902, -0.026670916005969048, -0.008555805310606956, 0.01113500539213419, 0.023182174190878868, -0.06472337990999222, 0.0061523267067968845, 0.02053282968699932, 0.00451681949198246, 0.0036013163626194, 0.008114906027913094, 0.03535400331020355, 0.011892098002135754, -0.0078084347769618034, 0.01142176054418087, 0.029601428657770157, -0.0319373719394207, -0.021804777905344963, 0.01710866391658783, 0.0483422726392746, 0.000202016337425448, 0.026243967935442924, 0.017135929316282272, -0.016275564208626747, -0.10886535048484802, 0.00551669392734766, 0.024916669353842735, 0.03030458465218544, 0.01158458273857832, -0.017232198268175125, 0.020961454138159752, 0.017889736220240593, -0.018533499911427498, -0.006030156742781401, 0.02709934115409851, -0.023758655413985252, -0.019845787435770035, 0.08352843672037125, -0.02228463441133499, -0.021330371499061584, -0.018896471709012985, -0.031544264405965805, -0.007277780212461948, 0.04674820229411125, 0.0038716462440788746, -0.07061541080474854, 0.023414315655827522, 0.014450506307184696, 0.06211842596530914, -0.004147546831518412, -0.03193863853812218, -0.04041919857263565, -0.042142193764448166, 0.007405392825603485, -0.05215287208557129, 0.015161195769906044, 0.023032695055007935, -0.12311334908008575, -0.051457688212394714, 0.026887880638241768, 0.024077868089079857, -0.06682560592889786, -0.007966245524585247, 0.02539045549929142, -0.04695092514157295, 0.008136549033224583, 0.07520569860935211, -0.011651352047920227, -0.06075286120176315, 0.006238246336579323, 0.04954685643315315, 0.03962856903672218, 0.014838171191513538, 0.02832953631877899, -0.05747774615883827, 0.000928268360439688, -0.037802424281835556, -0.08128146082162857, -0.04129001125693321, 0.01460512075573206, -0.02998245507478714, -0.0109042814001441, -0.046986229717731476, -0.01464124582707882, -0.10175110399723053, 0.09106866270303726, -0.028935663402080536, -0.00577501067891717, 0.017134441062808037, 0.014379329048097134, 0.006781594827771187, -0.011182582937180996, 0.009750787168741226, 0.04165546968579292, -0.026225900277495384, 0.04882130026817322, -0.09294182062149048, 0.08526984602212906, 0.04929540306329727, -0.04467843472957611, 0.06369400024414062, 0.027577480301260948, -0.032775700092315674, -0.013565736822783947, -0.019769104197621346, -0.018786735832691193, 0.022813575342297554, -0.024381212890148163, -0.03074079565703869, 0.02048327401280403, 0.0033277380280196667, -0.012174809351563454, -0.03932024911046028, 0.015126011334359646, 0.008433615788817406, -0.35924041271209717, -0.016711195930838585, -0.012230096384882927, -0.01438942365348339, 0.005528909619897604, -0.07242680341005325, 0.01754390262067318, -0.0248740091919899, -0.013058741576969624, -0.026765543967485428, 0.03918568417429924, -0.016251929104328156, 0.03112410381436348, -0.06615571677684784, -0.0020752798300236464, 0.020053556188941002, -0.018546709790825844, -0.04166392236948013, -0.054897382855415344, 0.01571367308497429, 0.0054033491760492325, 0.017424089834094048, -0.009570491500198841, -0.05635497719049454, 0.021747786551713943, -0.0639265924692154, 0.0905948057770729, -0.03816619887948036, 0.09488369524478912, -0.014392661862075329, 0.06548229604959488, 0.027630139142274857, 0.0026351946871727705, -0.06396567821502686, 0.004242208786308765, 0.011682169511914253, -0.003164133056998253, 0.014928145334124565, 0.036960188299417496, -0.0033504723105579615, -0.003925967961549759, 0.026291869580745697, -0.04366154596209526, -0.059319958090782166, -0.0004206649900879711, -0.004196076653897762, -0.041071582585573196, 0.001257620402611792, -0.006939810235053301, 0.11469639837741852, -0.00768577354028821, -0.002860174747183919, 0.023435335606336594, 0.047690290957689285, 0.008742768317461014, -0.056169718503952026, -0.06400831788778305, 0.00021841199486516416, 0.024841396138072014, 0.005490853916853666, 0.035504404455423355, 0.03565354645252228, 0.04419255629181862, -0.047137536108493805, 0.010738659650087357, 0.007669730577617884, 0.011903748847544193, -0.039906151592731476, 0.02640492096543312, -0.052768461406230927, -0.03541528806090355, 0.07892586290836334, 0.009165383875370026, -0.03287073224782944, 0.03841916844248772, 0.02892162837088108, -0.01888773776590824, -0.005363880190998316, 0.02419341169297695, 0.01479667704552412, -0.014181487262248993, -0.01115603931248188, 0.023731298744678497, 0.0006424838793464005, -0.0007506853435188532, 0.016223987564444542, -0.025300944223999977, 0.007612656336277723, 0.007698622066527605, -0.0323488675057888, 0.001984821865335107, -0.018393971025943756, -0.010861939750611782, -0.04451692849397659, 0.07501048594713211, -0.031913310289382935, -0.2544573247432709, -0.019332509487867355, 0.08612246811389923, 0.04979076609015465, 0.001612724969163537, 0.030902178958058357, 0.03405164182186127, -0.045130789279937744, 0.05030170828104019, -0.002665426582098007, -0.037246689200401306, 0.025294112041592598, 0.012798949144780636, 0.027142301201820374, 0.05726755037903786, -0.02297445945441723, 0.03928220644593239, 0.0009353581117466092, 0.014997237361967564, -0.0124382758513093, 0.018249405547976494, -0.011725880205631256, 0.17688725888729095, 0.0032828068360686302, 0.042383141815662384, 0.00032920148805715144, -0.015657272189855576, 0.014916962943971157, 0.07813680171966553, 0.04228764399886131, 0.0018746567657217383, -0.010210790671408176, 0.07808800786733627, 0.012933820486068726, 0.04025927931070328, -0.1082715317606926, -0.03133317083120346, 0.027263157069683075, 0.02424800954759121, 0.006850074511021376, -0.007546760607510805, 0.0073272162117064, -0.04450972378253937, 0.00855548121035099, 0.06850781291723251, 0.003058582777157426, -0.014980749227106571, -0.006829438265413046, -0.0513104684650898, -0.04741430655121803, -0.04740772023797035, -0.05055291950702667, 0.03547131270170212, -0.017481990158557892, -0.0013594332849606872, 0.03250003606081009, 0.002786056138575077, 0.0017317620804533362, -0.01614673063158989, 0.004938279744237661, 0.021210094913840294, 0.008227245882153511, 0.09471927583217621, 0.0433620810508728, 0.024068282917141914 ]
[ -0.034830108284950256, 0.029621783643960953, 0.025396985933184624, 0.020474296063184738, -0.04109515994787216, -0.010022210888564587, -0.027178209275007248, 0.034492798149585724, -0.026491856202483177, -0.007623889949172735, -0.004858486354351044, -0.01190627459436655, 0.023311257362365723, -0.029085567221045494, 0.026869257912039757, 0.009567453525960445, 0.029108107089996338, -0.011468479409813881, -0.0023267939686775208, 0.008977817371487617, -0.01581289991736412, 0.018014617264270782, -0.017515579238533974, -0.004504540469497442, 0.009008285589516163, -0.0013426679652184248, -0.00954070221632719, 0.03071054443717003, 0.033363375812768936, -0.12014693766832352, -0.007361245807260275, -0.02852582558989525, 0.0057762195356190205, 0.031224902719259262, -0.011588750407099724, -0.0009273298783227801, 0.05006462335586548, 0.012846453115344048, 0.003335394198074937, -0.019118133932352066, 0.017895525321364403, -0.013596362434327602, -0.005683961324393749, -0.017401769757270813, 0.0048729837872087955, 0.018757710233330727, -0.008666809648275375, -0.0020881094969809055, -0.013748859986662865, -0.026484781876206398, -0.028774024918675423, 0.007837027311325073, 0.013043621554970741, 0.010748532600700855, 0.030542537569999695, 0.009084327146410942, -0.011381388641893864, -0.002205129014328122, 0.0254606232047081, -0.017330678179860115, 0.012443456798791885, 0.009256772696971893, -0.021713372319936752, -0.02170083485543728, -0.004633902106434107, -0.0023550475016236305, -0.0023691768292337656, 0.015353196300566196, 0.021014926955103874, -0.010115481913089752, 0.014098796993494034, -0.0025675708893686533, 0.03050636313855648, -0.008807994425296783, -0.000016728137779864483, 0.03451419994235039, -0.014006317593157291, -0.0050956192426383495, 0.024800606071949005, -0.011414425447583199, -0.02497277408838272, -0.004891147371381521, -0.008354480378329754, -0.0012226010439917445, 0.00877678208053112, 0.0006794104701839387, 0.015182341448962688, 0.010715794749557972, -0.0041246539913117886, 0.0326278917491436, -0.02851763926446438, -0.005833869334310293, -0.0029297827277332544, 0.03604448214173317, -0.06690879911184311, -0.0021021466236561537, -0.006085846107453108, -0.04066184535622597, -0.005249587818980217, 0.8478600978851318, -0.016495978459715843, 0.043768227100372314, 0.0521475225687027, 0.047772083431482315, 0.0025159388314932585, -0.03430699557065964, -0.03304252028465271, 0.023401012644171715, 0.018401531502604485, -0.009227616712450981, 0.015689589083194733, 0.017837801948189735, 0.04914585500955582, 0.007533720228821039, 0.024702468886971474, 0.000031205556297209114, -0.0015468335477635264, -0.007250844966620207, -0.01171263586729765, 0.016430238261818886, 0.022827140986919403, -0.017046110704541206, 0.016809478402137756, -0.006859141867607832, 0.008968901820480824, -0.2208062708377838, -0.022613000124692917, -7.980519309808822e-33, 0.04962652549147606, -0.03241297975182533, 0.015394928865134716, 0.018174368888139725, 0.02415766753256321, -0.005354137625545263, 0.04098062217235565, 0.07163573801517487, 0.014230824075639248, -0.027900760993361473, 0.019778212532401085, -0.028502946719527245, -0.001323681091889739, -0.019726315513253212, 0.030073875561356544, -0.012979865074157715, -0.01659379154443741, 0.03252020850777626, -0.020430278033018112, 0.01350653450936079, 0.02158627100288868, 0.03860606253147125, -0.0007012627902440727, -0.010056709870696068, 0.04752092435956001, -0.00877027865499258, 0.025070885196328163, 0.0029843912925571203, -0.022724665701389313, -0.03639278933405876, -0.038434937596321106, 0.007218794897198677, 0.009728661738336086, -0.012367227114737034, 0.0010415175929665565, -0.048450011759996414, 0.008379936218261719, -0.0008130045025609434, -0.015602263621985912, -0.037885770201683044, -0.01947234757244587, -0.022772470489144325, -0.039979804307222366, -0.006624003406614065, -0.04437467083334923, -0.019455309957265854, -0.023639725521206856, 0.01936238817870617, 0.02737831324338913, -0.002622965257614851, 0.008476045913994312, 0.07238666713237762, -0.0031779231503605843, -0.005569161381572485, -0.029214156791567802, -0.02063281275331974, -0.03156478703022003, -0.01707145757973194, -0.011422447860240936, -0.030976062640547752, -0.029776856303215027, 0.004580000415444374, -0.028357533738017082, 0.020635763183236122, -0.02940582111477852, -0.017466899007558823, 0.011329183354973793, -0.0006255003390833735, 0.014293954707682133, -0.003830223809927702, -0.03631288930773735, -0.00008573038212489337, -0.034386008977890015, -0.03812016174197197, 0.02683917246758938, -0.020420236513018608, -0.006769978441298008, 0.005475690122693777, -0.010497624054551125, 0.011137929745018482, -0.013975653797388077, 0.021487804129719734, -0.0031087729148566723, 0.011104586534202099, 0.00982593186199665, -0.0028760400600731373, 0.03854018449783325, -0.0035145848523825407, -0.018667280673980713, -0.009379391558468342, 0.03565454110503197, 0.015795482322573662, -0.0023649800568819046, -0.03028188832104206, -0.0053633046336472034, 8.113586739689843e-33, 0.01069655455648899, -0.03579288721084595, -0.011305003426969051, 0.015142735093832016, 0.002583335619419813, -0.039300352334976196, -0.0053994799964129925, 0.0052209836430847645, -0.02678138203918934, 0.01843593642115593, 0.007609463296830654, 0.022439030930399895, -0.00941180344671011, 0.016460807994008064, 0.041076499968767166, -0.005819324869662523, 0.010293942876160145, -0.04228183627128601, 0.03996066376566887, -0.001559709431603551, 0.042140550911426544, 0.0014120478881523013, 0.014924664981663227, 0.01346266083419323, -0.01014398317784071, 0.039398495107889175, -0.05828244984149933, 0.007573064416646957, -0.003360447473824024, 0.00566054554656148, 0.005695358384400606, -0.012923614121973515, 0.028786800801753998, -0.023347245529294014, -0.06002889573574066, 0.015075018629431725, -0.010374496690928936, -0.011930584907531738, 0.02471155673265457, -0.012380750849843025, 0.03356834873557091, -0.008829088881611824, -0.00609883526340127, 0.013735624961555004, -0.004981952253729105, -0.023712901398539543, 0.025749705731868744, -0.026246650144457817, -0.0005232523544691503, 0.006464686710387468, 0.03952093422412872, 0.03782482072710991, 0.012597309425473213, 0.004585067741572857, 0.01395491138100624, -0.025806177407503128, -0.020821258425712585, -0.008485948666930199, -0.026664352044463158, 0.031394895166158676, -0.012350279837846756, 0.019874393939971924, -0.004016876686364412, -0.010602260939776897, -0.03295343369245529, 0.004377158358693123, -0.0316733680665493, -0.030202843248844147, -0.005429002922028303, -0.035605818033218384, -0.020078865811228752, 0.006552447564899921, -0.00981072150170803, 0.05149279162287712, 0.028373852372169495, -0.02653518132865429, -0.0019438255112618208, 0.008934100158512592, 0.008787054568529129, 0.00907048862427473, 0.01076394785195589, -0.013909274712204933, 0.030713912099599838, -0.01350742019712925, 0.00013796411803923547, -0.010956322774291039, -0.0277195293456316, 0.014620809815824032, 0.015227909199893475, 0.01619848608970642, -0.045377664268016815, 0.012924887239933014, 0.0006820785347372293, 0.012011907063424587, -0.015957364812493324, -1.336520316641554e-8, -0.029731251299381256, 0.013296429067850113, -0.03641452267765999, 0.029995251446962357, 0.001207410590723157, -0.01111255120486021, -0.04243664816021919, -0.0034302209969609976, 0.0018821805715560913, -0.03511402755975723, 0.05517087131738663, 0.007509337272495031, -0.022539732977747917, 0.009092546068131924, 0.01014658808708191, -0.09299643337726593, -0.005455793812870979, -0.029443275183439255, 0.012289168313145638, -0.022106051445007324, 0.0035533453337848186, 0.04609674960374832, 0.007489068899303675, 0.0010957944905385375, 0.04835749417543411, 0.002326470799744129, 0.007480662316083908, -0.09036420285701752, 0.014840672723948956, 0.0396040678024292, -0.02437775209546089, -0.016285406425595284, -0.005070527549833059, 0.02554667741060257, -0.02391420677304268, -0.01007053256034851, 0.04756733775138855, 0.03165779262781143, 0.009991609491407871, -0.030554527416825294, 0.048116665333509445, -0.003329243278130889, -0.021012095734477043, -0.023598959669470787, 0.014981219545006752, 0.008696496486663818, -0.007392907049506903, 0.013732395134866238, 0.024110998958349228, -0.026489444077014923, -0.01440452504903078, 0.03596588596701622, 0.030926743522286415, 0.014231713488698006, 0.012268162332475185, -0.0032547393348068, -0.001177573692984879, -0.003052949672564864, -0.007197277154773474, 0.008423982188105583, 0.042807914316654205, -0.005075966939330101, -0.009836617857217789, -0.010927530936896801 ]
safe-refactoring-removing-object-initializer-introducing-builder
https://markhneedham.com/blog/2009/06/26/safe-refactoring-removing-object-initializer-introducing-builder
false
2009-06-26 18:15:23
Coding Dojo #18: Groovy Bowling Game
[ "oop", "coding-dojo", "bowling-game", "groovy" ]
[ "Coding Dojo" ]
This week's dojo involved coding a familiar problem - the http://www.markhneedham.com/blog/2008/11/06/object-calisthenics-first-thoughts/[bowling] http://www.markhneedham.com/blog/2008/11/13/coding-dojo-2-bowling-game-object-calisthenics-continued/[game] - in a different language, Groovy. The code we wrote is available on http://bitbucket.org/codingdojosydney/bowling-game-groovy/src/tip/src/[bitbucket]. == The Format http://camswords.wordpress.com/[Cam], http://twitter.com/deanrcornish[Dean] and I took turns pairing with each other with the code projected onto a TV. As there were only a few of us the discussion on where we were taking the code tended to included everyone rather than just the two at the keyboard. == What We Learnt * I've sometimes wondered about the wisdom of running dojos in newer languages but this one worked quite well because Cam has been learning Groovy and he was able to point us in the right direction when we started writing Java-esque Groovy code. The particular syntax that I didn't know about was that you can define and put items into a list in a much simpler way than in Java: I was starting to write code like this: ~~~groovy def frames = new List+++<Frame>+++() frames.Add(frame) ~~~ Which Cam simplified down to: ~~~groovy def frames = [] frames << frame ~~~ I didn't feel that I missed the static typing you get in Java although IntelliJ wasn't quite as useful when it came to suggesting which methods you could call on a particular object. </li> I'm even more convinced that using various languages functional equivalent of the 'for each' loop, in this case 'eachWith' and 'eachWithIndex' is http://www.markhneedham.com/blog/2009/06/18/functional-collection-parameters-a-different-way-of-thinking-about-collections/[not the way to go] and we could see http://bitbucket.org/codingdojosydney/bowling-game-groovy/src/tip/src/BowlingGame.groovy[our code becoming very complicated] when trying to work out how to score strikes thanks to our use of it! I think we actually got further this time in terms of the implementation although we did slow down when it came to scoring strikes to try and work out exactly how we wanted to do it. Prior to this we had been following the idea of just getting the tests to pass and driving the design of the code that way but we at this stage it seemed foolish to keep doing that as the code would increased dramatically in complexity by doing so. The two approaches we were thinking of involved using the state pattern to determine what the current frame outcome was and then work out the cumulative score based on that by looking forward to future frames or an approach that would make use of functional collection parameters (not sure exactly which ones!) to calculate the score in a more function rather than OO way. </ul> == For next time * We'll probably keep going with some more Groovy as it's actually more interesting than I thought it would be. I'm also keen to do a coding dojo where we http://www.antiifcampaign.com/[never make use of the if statement].+++</Frame>+++
null
null
[ 0.009053012356162071, 0.00321560469456017, -0.011107563972473145, 0.01942303404211998, 0.06333856284618378, 0.02759016677737236, 0.039542634040117264, 0.027328643947839737, 0.0010043459478765726, -0.02054077759385109, -0.000514793733600527, 0.00214441423304379, -0.07208102196455002, 0.015422563999891281, -0.04412737861275673, 0.06499935686588287, 0.0792100727558136, -0.018208537250757217, 0.027744581922888756, 0.010453041642904282, 0.016178598627448082, 0.08041033148765564, -0.006530942860990763, 0.021381936967372894, 0.01585608534514904, 0.020231209695339203, 0.007520409766584635, 0.02966288849711418, -0.06836193054914474, -0.027770046144723892, 0.016176024451851845, 0.025300761684775352, 0.016717741265892982, 0.0069910394959151745, -0.0005720315966755152, -0.04447166994214058, 0.009222772903740406, 0.019571717828512192, 0.010116847231984138, 0.03705194965004921, -0.04317805543541908, 0.04477911815047264, -0.004541582427918911, 0.00675073591992259, -0.0483543686568737, 0.002607906935736537, -0.02840595506131649, 0.01665169931948185, -0.012250757776200771, -0.017969781532883644, -0.05375370383262634, 0.032008517533540726, -0.008140331134200096, 0.0002382756647421047, -0.020365379750728607, 0.05062415078282356, 0.048050832003355026, -0.06852119415998459, 0.023356787860393524, -0.043547164648771286, -0.008072057738900185, -0.012681643478572369, 0.013905361294746399, 0.0010401791660115123, 0.0019624424166977406, -0.03150644898414612, -0.025136534124612808, 0.06415833532810211, -0.026459991931915283, -0.012633229605853558, -0.017840947955846786, 0.009028399363160133, -0.005863178055733442, -0.042663250118494034, 0.026977287605404854, -0.06370574235916138, -0.006786795798689127, 0.07011563330888748, 0.001247136970050633, 0.0228053480386734, -0.033512987196445465, 0.024729976430535316, 0.021689429879188538, 0.02504875138401985, 0.019431298598647118, -0.027000771835446358, -0.01763054169714451, -0.014664617367088795, -0.048834946006536484, 0.05720209702849388, -0.010448061861097813, -0.03524868190288544, 0.001996290637180209, 0.02255314402282238, -0.015696577727794647, 0.008535737171769142, 0.008942489512264729, -0.0072457450442016125, -0.006718668155372143, -0.008883843198418617, -0.03286734223365784, -0.025309426710009575, 0.03680584579706192, 0.00415218248963356, -0.06394387781620026, -0.01439590286463499, 0.0009590447880327702, -0.019342666491866112, 0.015517907217144966, 0.021826742216944695, -0.03761710599064827, 0.0021882187575101852, -0.01594332791864872, -0.01139241922646761, -0.05165841430425644, 0.06551967561244965, -0.004952809773385525, -0.0520419143140316, -0.045306745916604996, 0.028397157788276672, 0.03375092148780823, 0.02430075779557228, 0.0013062640791758895, 0.10273270308971405, 0.021570488810539246, 0.019575806334614754, -0.024629071354866028, 0.05561574548482895, 0.003126302035525441, -0.06718393415212631, 0.0022931727580726147, 0.0375489704310894, -0.025560574606060982, 0.003349323058500886, 0.010126651264727116, -0.02729480341076851, -0.016614187508821487, -0.0009821254061535, 0.010912961326539516, 0.03929183632135391, -0.01814456470310688, -0.03303644433617592, 0.005570396315306425, -0.012040332891047001, 0.019469134509563446, 0.014610846526920795, -0.013354535214602947, -0.02674037776887417, -0.01766687072813511, 0.00472765089944005, -0.014346618205308914, 0.017775055021047592, 0.034010399132966995, -0.03872833773493767, 0.005797074642032385, 0.08673130720853806, -0.002874355297535658, 0.0555875226855278, -0.02145490236580372, 0.022121945396065712, 0.01185508444905281, 0.011515392921864986, -0.00045656185830011964, 0.023923682048916817, 0.0025379271246492863, -0.00394838210195303, 0.012977671809494495, 0.0527031347155571, -0.006913637276738882, 0.02335112914443016, -0.062416721135377884, -0.04186614975333214, 0.05157952010631561, -0.03929385542869568, -0.03770952299237251, 0.011811974458396435, 0.08356140553951263, 0.027293860912322998, 0.05775769054889679, 0.009050905704498291, -0.07690708339214325, -0.020092546939849854, 0.0029460296500474215, 0.012548335827887058, 0.023665975779294968, -0.02914411760866642, 0.05941224843263626, 0.01507047563791275, 0.004932647105306387, 0.04837777838110924, -0.06111381575465202, -0.08556673675775528, -0.01911873370409012, -0.012900389730930328, 0.06972846388816833, -0.02764083445072174, 0.007328526116907597, 0.04530283436179161, 0.03670423850417137, 0.045474231243133545, 0.03618149086833, -0.01693698950111866, 0.017614493146538734, -0.024536795914173126, -0.013642804697155952, 0.032850611954927444, 0.04116510972380638, -0.007251839153468609, -0.04109857976436615, 0.011569437570869923, -0.006482042372226715, -0.009658340364694595, 0.03888069838285446, -0.02195838838815689, 0.029126906767487526, 0.045083679258823395, 0.0682409256696701, -0.028507299721240997, 0.04638173058629036, -0.07254231721162796, -0.005269404035061598, 0.003857942530885339, -0.026167668402194977, -0.014726271852850914, 0.0013418293092399836, 0.13759887218475342, 0.0523109994828701, -0.03398190811276436, -0.0386645533144474, 0.008085843175649643, 0.0016078358748927712, -0.05331423133611679, -0.013018820434808731, -0.008821794763207436, -0.0019895031582564116, 0.010879659093916416, -0.04596099257469177, -0.04271775111556053, -0.0007654516375623643, -0.05312789976596832, 0.010152642615139484, 0.08176887780427933, -0.0030473892111331224, 0.029876144602894783, -0.0105137899518013, -0.017468972131609917, 0.005574463400989771, -0.008309130556881428, -0.03531298413872719, 0.02765875682234764, -0.008768163621425629, -0.019481275230646133, 0.07003530114889145, -0.01812068559229374, -0.03584183007478714, -0.03429575264453888, -0.03162207454442978, -0.0004088214773219079, 0.04689526557922363, 0.0518769696354866, -0.005831046495586634, 0.049293290823698044, -0.014881922863423824, 0.010088058188557625, -0.014190738089382648, -0.05277169495820999, -0.022989608347415924, -0.017331400886178017, -0.01668773591518402, 0.035959240049123764, 0.002304240595549345, 0.04185624048113823, 0.03284662589430809, 0.013745010830461979, -0.02004079334437847, -0.009655131958425045, 0.031830839812755585, -0.004786700941622257, -0.027789998799562454, -0.032947950065135956, -0.03637319058179855, 0.04358213394880295, -0.020446203649044037, -0.022958427667617798, -0.0032744635827839375, -0.06788692623376846, 0.0691295936703682, -0.06261055916547775, -0.06999897211790085, 0.009388205595314503, 0.02607281319797039, 0.06127667427062988, -0.0450124554336071, 0.024639111012220383, 0.06983254104852676, 0.004017198923975229, 0.013619456440210342, -0.0008473473717458546, -0.01017261203378439, 0.02762889303267002, 0.0017134377267211676, 0.026249822229146957, 0.03653871640563011, 0.006941189523786306, -0.02249712496995926, -0.0327761135995388, 0.03711412847042084, -0.0001531616144347936, -0.2862464487552643, 0.030183611437678337, -0.013430743478238583, -0.05387356877326965, 0.024183357134461403, 0.01766413263976574, -0.0034646051935851574, -0.05610352382063866, -0.004687333945184946, 0.025951143354177475, -0.03623279556632042, -0.056599847972393036, -0.052039410918951035, 0.059513963758945465, 0.011362023651599884, 0.018619902431964874, 0.010094843804836273, -0.03148450702428818, -0.012614330276846886, 0.05704589560627937, -0.0032539432868361473, -0.06684328615665436, 0.0014484887942671776, 0.04545089602470398, 0.015516961924731731, 0.05074143037199974, -0.09441405534744263, 0.011892071925103664, -0.03491473197937012, 0.004558448679745197, 0.0026947916485369205, 0.01341231819242239, -0.0024229451082646847, -0.01977144181728363, -0.017912141978740692, 0.002605684334412217, 0.04249374940991402, -0.006205671466886997, 0.0016440678155049682, 0.029702043160796165, -0.04747254028916359, -0.03870749846100807, -0.032367125153541565, 0.00439089722931385, 0.08936163038015366, 0.010377462953329086, -0.07303125411272049, -0.0156285110861063, -0.043458715081214905, 0.06713123619556427, -0.024883771315217018, -0.0421883650124073, 0.0047598350793123245, 0.04240197688341141, 0.010054467245936394, -0.015127998776733875, -0.0035799210891127586, -0.004221084527671337, -0.02937333844602108, -0.047570936381816864, -0.007162367459386587, -0.05625364929437637, -0.013472998514771461, -0.047210969030857086, 0.005317069590091705, -0.08186808228492737, -0.0316014401614666, 0.033082399517297745, 0.09699995070695877, 0.031583186239004135, -0.04685649275779724, 0.03175610676407814, -0.0009546061628498137, -0.10942544043064117, 0.0023002109955996275, -0.0042560165748000145, -0.011744866147637367, -0.023540334776043892, -0.0011428516590967774, 0.04506507143378258, -0.024685025215148926, -0.06082087382674217, 0.03375012427568436, 0.0036934728268533945, 0.015743914991617203, -0.0265891645103693, 0.04384911432862282, -0.002075596945360303, 0.00017509219469502568, 0.008228861726820469, 0.08197056502103806, -0.011997214518487453, -0.023726392537355423, -0.013091262429952621, 0.03724196180701256, 0.062069810926914215, 0.03718489408493042, -0.02420111373066902, -0.001518902601674199, 0.020626535639166832, -0.0069548506289720535, -0.06434895843267441, 0.02854122407734394, -0.025554528459906578, 0.0005646262434311211, -0.007581424433737993, -0.04639265686273575, 0.014677301980555058, 0.03199455514550209, 0.030257761478424072, 0.0030102350283414125, -0.03649735823273659, 0.008340390399098396, -0.04622577875852585, -0.009160530753433704, -0.02335665002465248, 0.006576168816536665, 0.03737590089440346, -0.002296491526067257, -0.026457911357283592, -0.05574704334139824, 0.017560746520757675, 0.01652100682258606, -0.014426476322114468, -0.06205679848790169, -0.02559686452150345, -0.03552727773785591, -0.029735350981354713, 0.02925480343401432, 0.025922320783138275, -0.003408845979720354, 0.032706160098314285, 0.016126299276947975, -0.026231087744235992, 0.013089734129607677, -0.006409378256648779, -0.040873877704143524, -0.025278393179178238, -0.02070741355419159, -0.011934200301766396, 0.015368785709142685, 0.018847817555069923, -0.0010206337319687009, 0.024791095405817032, 0.01136768702417612, 0.011108774691820145, 0.031025391072034836, -0.0033583089243620634, -0.017120832577347755, 0.01730831153690815, 0.012081608176231384, -0.09555809944868088, 0.012558572925627232, -0.04846303164958954, -0.04373433440923691, -0.017777465283870697, 0.030919596552848816, -0.011505386792123318, -0.01590118743479252, -0.02250225655734539, 0.02996465004980564, -0.030151279643177986, -0.02028777077794075, -0.018702736124396324, 0.009743002243340015, 0.05998258292675018, -0.017734624445438385, 0.02569705992937088, -0.0242502111941576, -0.022482238709926605, -0.005485521163791418, 0.0033323701936751604, -0.015037001110613346, 0.02327279932796955, 0.0200932789593935, -0.01776549033820629, 0.0024453510995954275, -0.0030376515351235867, 0.030093587934970856, 0.02694091387093067, 0.015096394345164299, -0.028263382613658905, 0.0046419114805758, 0.020927391946315765, 0.035573575645685196, 0.006550430320203304, -0.008347352035343647, 0.0037510106340050697, 0.00434299698099494, -0.017584383487701416, -0.04317568987607956, -0.018544208258390427, 0.007141587790101767, 0.040440067648887634, -0.027665050700306892, -0.06906075030565262, 0.044999003410339355, 0.03764808550477028, -0.012274816632270813, 0.011217163875699043, -0.010323339141905308, 0.0029896588530391455, -0.015469895675778389, 0.02017839252948761, 0.06705151498317719, -0.05092849209904671, 0.006193195004016161, -0.024718523025512695, 0.03110138326883316, 0.0041761212050914764, -0.0006251597660593688, -0.03630366548895836, -0.02093287743628025, -0.04329478368163109, 0.0055279857479035854, -0.038638439029455185, -0.026992257684469223, -0.014021546579897404, 0.013790013268589973, -0.027588732540607452, -0.007704365067183971, -0.014343371614813805, -0.00982214231044054, -0.011885954067111015, -0.027501629665493965, 0.007542282342910767, -0.06490796059370041, 0.0023428332060575485, 0.03864728659391403, -0.0096993837505579, 0.015938427299261093, -0.023843925446271896, 0.02254454232752323, 0.03211205080151558, -0.021006353199481964, -0.018091436475515366, -0.036699842661619186, 0.012915723025798798, 0.015726059675216675, 0.055162739008665085, 0.028238587081432343, -0.007945757359266281, -0.0372779481112957, -0.0005004993872717023, -0.05193747207522392, 0.008021393790841103, -0.027402110397815704, -0.02811303734779358, 0.03893980756402016, 0.0689055547118187, 0.0296762865036726, 0.041709259152412415, -0.014208877459168434, -0.018853135406970978, 0.05160392448306084, -0.08233773708343506, -0.0248231440782547, -0.026324119418859482, -0.05987323075532913, 0.013286817818880081, 0.00808944832533598, 0.04708121344447136, -0.02540297619998455, 0.05302757769823074, 0.011369195766746998, 0.03958680108189583, 0.036817766726017, -0.02138926088809967, 0.03606635704636574, -0.05074851214885712, -0.0034208183642476797, -0.082334965467453, -0.0016398722073063254, 0.05533061549067497, 0.04900509491562843, -0.021762344986200333, -0.02020399086177349, -0.04154115915298462, 0.040003251284360886, -0.06251560151576996, 0.009926638565957546, 0.04313825070858002, -0.001345698838122189, -0.020737772807478905, 0.0005009069573134184, -0.07345909625291824, 0.024329721927642822, 0.03519642353057861, -0.048970405012369156, -0.034796979278326035, -0.03961778059601784, 0.04255393147468567, 0.019523492082953453, 0.04462898150086403, 0.0009354306384921074, -0.01745523326098919, 0.06874224543571472, -0.003534699557349086, -0.014211938716471195, 0.04415323585271835, -0.008514728397130966, 0.05164732784032822, 0.031124025583267212, 0.007937693037092686, -0.014415320940315723, 0.004254219122231007, -0.007009757217019796, -0.06109769269824028, 0.002873613266274333, 0.015497380867600441, -0.0593666173517704, -0.04158744215965271, 0.0629051998257637, 0.024472123011946678, -0.0322686992585659, -0.05121514946222305, 0.034291304647922516, -0.05349403992295265, -0.011786277405917645, -0.02783609926700592, 0.008015977218747139, -0.0413740836083889, 0.0707099586725235, -0.013983303681015968, 0.005290640983730555, 0.06928174942731857, -0.01821586862206459, -0.02854795940220356, -0.020561710000038147, 0.07815699279308319, 0.06556394696235657, 0.02797003835439682, 0.01360322069376707, 0.05944673344492912, -0.020921917632222176, -0.04131048917770386, 0.016202185302972794, 0.019172077998518944, -0.011067042127251625, -0.020132647827267647, 0.005730224773287773, 0.05205848067998886, -0.01574905961751938, 0.06267175078392029, -0.03499230369925499, -0.03637343645095825, -0.0003090579411946237, 0.021878469735383987, 0.00969747919589281, 0.0563582107424736, 0.02151430957019329, 0.01565460115671158, -0.000662975711748004, -0.03269810974597931, 0.030871335417032242, -0.04329053685069084, -0.022510675713419914, 0.022524934262037277, -0.001285952515900135, 0.03573749586939812, 0.015956344082951546, 0.04041210189461708, 0.07955944538116455, -0.03878967463970184, 0.009075689129531384, -0.01693844050168991, 0.01889224164187908, 0.0016541220247745514, -0.0023608615156263113, -0.025247136130928993, -0.021277477964758873, 0.012858966365456581, -0.03928069397807121, -0.002269938588142395, -0.02436905913054943, -0.020404327660799026, 0.05431744456291199, -0.00945311039686203, 0.02706773951649666, 0.008820120245218277, 0.029620757326483727, -0.03694602847099304, -0.07007972151041031, -0.06130099669098854, -0.020700154826045036, -0.0549958236515522, -0.029498569667339325, 0.04436194896697998, -0.0038920987863093615, -0.049723125994205475, -0.02304305136203766, -0.027491604909300804, -0.018839707598090172, 0.0448782742023468, -0.04388679936528206, -0.05174559727311134, 0.035306043922901154, 0.0063081649132072926, 0.048537660390138626, 0.028494875878095627, 0.05615933611989021, -0.028696369379758835, -0.002603586995974183, -0.046921949833631516, 0.004803611431270838, 0.04024718329310417, 0.0022384400945156813, 0.008862541057169437, -0.07348588109016418, 0.019054105505347252, 0.03073045425117016, -0.0025211467873305082, -0.05247335880994797, 0.018234139308333397, 0.014847992919385433, 0.0037106082309037447, 0.06668564677238464, -0.022927219048142433, 0.012514923699200153, -0.05317185819149017, -0.009032603353261948, -0.0035247441846877337, 0.014404351823031902, 0.0537022165954113, -0.008975706994533539, 0.08961568027734756, 0.03653566166758537, -0.03555566444993019, -0.0439634770154953, -0.008132257498800755, 0.00024831516202539206, -0.015679936856031418, -0.01613517850637436, -0.06181636452674866, -0.03757407143712044, -0.056700579822063446, -0.020952347666025162, 0.026250896975398064, 0.005958794616162777, -0.03088841587305069, 0.01930955797433853, 0.03968805447220802, -0.039222028106451035, 0.02244747430086136, -0.03241482749581337, 0.049935534596443176, -0.025505760684609413, 0.0029043699614703655, 0.020389558747410774, 0.0007619817042723298, -0.019838785752654076, 0.010032834485173225, 0.019107596948742867, -0.038204874843358994, 0.009487813338637352, 0.02120938152074814, 0.023762227967381477, 0.03576511889696121, 0.006393470801413059, -0.02133896015584469 ]
[ -0.10178776830434799, -0.002877091756090522, -0.031144635751843452, -0.046138983219861984, 0.015370822511613369, -0.01675402745604515, -0.01288364827632904, 0.028212513774633408, 0.007941504009068012, -0.016064800322055817, -0.019825026392936707, -0.037210796028375626, -0.02266518585383892, 0.025606917217373848, 0.08567629754543304, -0.02465180866420269, -0.019783765077590942, -0.05066964402794838, -0.02606707625091076, 0.0031521546188741922, 0.026891499757766724, -0.009175472892820835, -0.044637251645326614, -0.041747089475393295, 0.018331605941057205, 0.040692660957574844, 0.03148557245731354, -0.0210187379270792, 0.021056707948446274, -0.20153427124023438, 0.004493079613894224, 0.024992914870381355, 0.02941538766026497, -0.007948261685669422, -0.04458028823137283, 0.025342456996440887, 0.012285084463655949, 0.025682268664240837, -0.02765006758272648, 0.030336910858750343, 0.004253359977155924, 0.030179770663380623, -0.03751806169748306, -0.04265671595931053, 0.04802260920405388, 0.0063527412712574005, -0.00978520791977644, -0.028558721765875816, 0.004175878595560789, 0.008430040441453457, -0.05860909819602966, -0.01014285534620285, 0.01832471787929535, -0.046727024018764496, 0.004234469495713711, 0.020346790552139282, 0.03863179683685303, 0.06924764066934586, -0.000498663866892457, 0.02429184317588806, 0.02197621576488018, -0.008296022191643715, -0.11471734195947647, 0.09722546488046646, 0.0023487056605517864, 0.04411432892084122, -0.009868115186691284, -0.0028251069597899914, 0.002593936864286661, 0.09386751055717468, 0.007867933250963688, -0.012166965752840042, 0.011179039254784584, 0.04315813258290291, 0.014426818117499352, -0.015481916256248951, -0.010512221604585648, -0.011238088831305504, 0.004849181044846773, -0.02380858175456524, -0.043792176991701126, -0.0429079495370388, -0.01021906640380621, -0.023531310260295868, -0.05069747194647789, 0.0370393842458725, -0.02406463585793972, 0.0479675829410553, -0.005565660074353218, 0.01633758842945099, 0.04552006348967552, 0.012352370657026768, 0.033604878932237625, 0.006116441451013088, -0.09470753371715546, -0.0059748003259301186, -0.01672316901385784, 0.024185463786125183, -0.043097078800201416, 0.46198922395706177, -0.0172475166618824, -0.03554276376962662, 0.08989754319190979, 0.024071544408798218, 0.005091620143502951, 0.0031386457849293947, -0.01935001090168953, -0.0742618665099144, 0.019060583785176277, -0.025103233754634857, -0.0038988222368061543, 0.0004346933856140822, 0.07574494928121567, -0.009543192572891712, -0.021357126533985138, 0.01787237823009491, 0.028949905186891556, 0.018415192142128944, 0.021270262077450752, 0.0256938599050045, -0.00942302867770195, 0.0135783851146698, -0.012070979923009872, 0.011830516159534454, -0.0035985372960567474, -0.048590563237667084, -0.01626017689704895, 0.036928441375494, 0.04884938895702362, 0.0015946959611028433, 0.05514059215784073, -0.04060317203402519, -0.05738168954849243, -0.0026064617559313774, 0.004641989711672068, 0.011331436224281788, 0.06925112009048462, -0.029697297140955925, 0.006724952720105648, 0.025153782218694687, 0.015526579692959785, -0.033254485577344894, 0.05857715383172035, -0.019275924190878868, -0.037484075874090195, 0.0975174829363823, 0.012412958778440952, -0.034882690757513046, 0.02586199715733528, -0.025300446897745132, 0.00018507491040509194, 0.028679899871349335, -0.0005471669137477875, -0.05871069058775902, 0.0021042204461991787, 0.01691482402384281, 0.07887112349271774, -0.012475843541324139, -0.054518766701221466, -0.034011442214250565, -0.05036024749279022, -0.02126643806695938, -0.036901943385601044, 0.01962868683040142, 0.05233972892165184, -0.10505979508161545, -0.02692890353500843, 0.005809953436255455, 0.008549677208065987, -0.10016892105340958, 0.005961915943771601, 0.019933030009269714, -0.07811024785041809, 0.012148021720349789, 0.06461232900619507, -0.00685011176392436, -0.010671933181583881, 0.015856202691793442, 0.058904364705085754, 0.028051527217030525, 0.03018634021282196, 0.0077200997620821, -0.027182264253497124, -0.024890154600143433, -0.034570347517728806, -0.07905281335115433, -0.0569285973906517, -0.004886303097009659, -0.020093906670808792, -0.015368343330919743, -0.023479174822568893, -0.029004402458667755, -0.08539943397045135, 0.07548409700393677, -0.017236998304724693, -0.026484249159693718, 0.016088569536805153, -0.02421554923057556, -0.005619566887617111, -0.007465284317731857, -0.03390643373131752, 0.042786337435245514, -0.002666255459189415, 0.018284231424331665, -0.029129646718502045, 0.02501840330660343, 0.06738629192113876, -0.042643409222364426, 0.06671437621116638, 0.035674020648002625, -0.0427720881998539, -0.04417753219604492, 0.012642579153180122, 0.023833634331822395, -0.026841934770345688, -0.0031105191446840763, -0.00771219190210104, 0.020720139145851135, -0.0006120390607975423, -0.007774154655635357, -0.043266210705041885, -0.027310168370604515, -0.001073544379323721, -0.33649471402168274, -0.06167181581258774, -0.008405374363064766, -0.012642299756407738, 0.02084994688630104, -0.03650360554456711, 0.016531124711036682, -0.028265273198485374, 0.0023854824248701334, 0.0013907065149396658, 0.06402287632226944, -0.019812213256955147, -0.00630220165476203, -0.08830337226390839, -0.012589653953909874, 0.031136073172092438, -0.04195254668593407, -0.032588616013526917, -0.02983962558209896, 0.040919169783592224, 0.029095269739627838, -0.0019980997312813997, -0.02364666759967804, -0.03852735832333565, -0.04147433489561081, -0.04807264730334282, 0.11311623454093933, 0.018907027319073677, 0.10134432464838028, -0.062122657895088196, 0.04195815697312355, -0.010380487889051437, 0.008284569717943668, -0.059959590435028076, 0.019611170515418053, -0.023969000205397606, 0.0024615866132080555, -0.015612752176821232, 0.041631512343883514, -0.034998517483472824, -0.04985980689525604, 0.011321485042572021, -0.04591940715909004, -0.05915597081184387, -0.04869106411933899, 0.030297618359327316, -0.003835175884887576, -0.0696089044213295, 0.009814233519136906, 0.06266861408948898, 0.023488152772188187, -0.013470171019434929, 0.04130711406469345, -0.0006851640646345913, -0.02413170412182808, -0.022234778851270676, -0.05821690335869789, 0.017449533566832542, 0.014356859028339386, 0.013473688624799252, 0.04398771747946739, 0.055551908910274506, 0.025931527838110924, -0.06021227687597275, 0.0037007019855082035, 0.015007244423031807, 0.031088847666978836, -0.02059103175997734, 0.061451658606529236, -0.01889481209218502, -0.026460137218236923, 0.052037131041288376, 0.005636449437588453, -0.0012765399878844619, 0.03291760012507439, 0.055287208408117294, 0.019974078983068466, 0.015761250630021095, 0.011980073526501656, 0.017683865502476692, 0.03225695341825485, -0.01058244053274393, 0.0470634363591671, -0.018508560955524445, -0.01651804894208908, 0.031459882855415344, 0.012097460217773914, -0.04032500833272934, 0.057599954307079315, 0.013973078690469265, -0.00812569074332714, 0.015667155385017395, -0.005924667231738567, -0.011517949402332306, 0.05222928896546364, -0.018995376303792, -0.2650328278541565, 0.03341103717684746, 0.05464032664895058, 0.048003870993852615, -0.0015103216283023357, 0.03162708505988121, 0.04299682006239891, -0.07526814192533493, 0.0040092747658491135, 0.019599515944719315, 0.05182192102074623, 0.014300492592155933, 0.0038250964134931564, -0.015858247876167297, 0.031049592420458794, -0.020991235971450806, 0.025280654430389404, 0.008565977215766907, 0.06511405110359192, 0.005033915396779776, 0.030091529712080956, 0.019944200292229652, 0.17185930907726288, -0.0007296280818991363, 0.04306287690997124, 0.02062283456325531, 0.011368462815880775, 0.001340134534984827, 0.06103597208857536, 0.0032142933923751116, -0.01541831810027361, 0.0011413146276026964, 0.056718356907367706, 0.018450971692800522, 0.024373406544327736, -0.08139193058013916, -0.035334259271621704, 0.04714982584118843, 0.007187041454017162, -0.0160975344479084, -0.008680484257638454, 0.0032287046778947115, -0.041659291833639145, -0.0056388117372989655, 0.0739499032497406, 0.042242661118507385, -0.014803516678512096, -0.01816854067146778, -0.04375198110938072, -0.010533584281802177, -0.04149774834513664, -0.054270509630441666, -0.006247373763471842, -0.01786843128502369, -0.017984511330723763, 0.07811829447746277, 0.02309585176408291, -0.02252488024532795, -0.02721286751329899, 0.03556342050433159, 0.003551115747541189, -0.018414897844195366, 0.10555487126111984, 0.03288332000374794, 0.020488575100898743 ]
[ 0.0011365519603714347, -0.0018643917283043265, -0.038193244487047195, -0.03998926281929016, -0.008223294280469418, 0.028767988085746765, 0.0369839183986187, 0.017041534185409546, 0.028779491782188416, 0.00015959740267135203, -0.0034045204520225525, 0.027585573494434357, -0.010732520371675491, -0.0006100171012803912, 0.026088044047355652, -0.04314957186579704, 0.019450576975941658, -0.0037900074385106564, 0.017631923779845238, 0.003227634122595191, -0.01693413034081459, 0.0028752621728926897, 0.029183408245444298, -0.013312237337231636, -0.009974154643714428, 0.03702624514698982, -0.004705329425632954, -0.009344360791146755, 0.0016744837630540133, -0.10862179100513458, -0.025192972272634506, -0.01762690395116806, 0.005490229465067387, 0.04041014984250069, -0.015120615251362324, -0.02436271496117115, -0.03351597487926483, -0.022445278242230415, -0.03868534415960312, -0.022136850282549858, -0.022051315754652023, -0.013579745776951313, -0.00952813122421503, 0.016927750781178474, -0.012913178652524948, 0.0013587219873443246, -0.013468620367348194, -0.0054597980342805386, -0.004420533310621977, -0.017075542360544205, -0.04384599253535271, 0.012765382416546345, 0.011904741637408733, 0.018244044855237007, 0.053336262702941895, -0.005337749142199755, -0.0032736635766923428, 0.015072854235768318, 0.003968804609030485, -0.020589154213666916, -0.0011855080956593156, 0.008071363903582096, -0.04242448881268501, -0.007135168649256229, -0.04223986715078354, -0.02809489332139492, -0.00028850973467342556, 0.014706574380397797, -0.007004610728472471, 0.006238841451704502, -0.008970562368631363, 0.03891395777463913, -0.0011232426622882485, -0.04995838925242424, 0.008281855843961239, -0.026333021000027657, 0.027919236570596695, -0.028472984209656715, 0.023972660303115845, -0.002110883593559265, -0.026788948103785515, -0.020681044086813927, -0.008734905160963535, 0.010817156173288822, 0.020566705614328384, -0.011218900792300701, 0.025340929627418518, 0.03249058127403259, 0.04277836158871651, 0.009915711358189583, -0.057791661471128464, 0.03439180552959442, 0.03936133533716202, -0.003158545820042491, -0.08377277851104736, 0.029235536232590675, -0.023898597806692123, -0.05238998681306839, -0.025819653645157814, 0.8577646613121033, -0.03298596292734146, 0.016345037147402763, 0.05952431634068489, 0.032690346240997314, 0.012408727779984474, 0.031008414924144745, -0.02833518385887146, 0.012022037990391254, 0.003266054205596447, -0.038359858095645905, 0.011099946685135365, 0.0397268645465374, 0.05396726354956627, 0.036261312663555145, 0.006136659067124128, 0.016203276813030243, 0.02093053236603737, 0.03997507691383362, 0.0041754464618861675, 0.016724295914173126, 0.0065389638766646385, 0.0005776208126917481, 0.00343194417655468, 0.0020002739038318396, 0.025192759931087494, -0.15479548275470734, -0.016637910157442093, -7.357787218465299e-33, 0.026331769302487373, -0.05072726309299469, 0.014611591584980488, -0.010182586498558521, -0.005762580782175064, 0.004185330122709274, -0.001712385448627174, 0.011547237634658813, 0.0029897885397076607, -0.025467460975050926, 0.02863006666302681, -0.023689355701208115, -0.006154805887490511, -0.00594076793640852, 0.06485141068696976, 0.003513236530125141, -0.00955716148018837, 0.0427895188331604, 0.02133837155997753, 0.045232485979795456, -0.0024475432001054287, 0.00835003238171339, 0.005618485156446695, -0.020818540826439857, -0.032362330704927444, 0.05666770040988922, 0.019275084137916565, -0.00944073311984539, -0.006494639907032251, -0.035497505217790604, -0.03268297761678696, -0.01284730900079012, 0.0022166476119309664, -0.017529254779219627, 0.014316561631858349, -0.020374927669763565, -0.021854430437088013, -0.018343960866332054, -0.03859742730855942, 0.0010914135491475463, -0.034656181931495667, 0.0028439334128051996, -0.03974410891532898, -0.01936105079948902, -0.03746497631072998, -0.018742728978395462, 0.01178966648876667, 0.06245454028248787, 0.02189776487648487, 0.07515273988246918, 0.009173121303319931, 0.00574700441211462, -0.003206108696758747, -0.02096232771873474, -0.0027764486148953438, 0.004461376462131739, -0.011551589705049992, 0.014618719927966595, 0.007779552135616541, -0.004766471683979034, -0.01563611626625061, -0.02840407006442547, -0.004882211331278086, 0.03068726882338524, 0.020059281960129738, -0.011804885230958462, -0.003223047126084566, 0.007948825135827065, 0.0007143375696614385, -0.005595516413450241, -0.06351515650749207, 0.009769227355718613, -0.0029819486662745476, -0.012351867742836475, -0.00026340430486015975, -0.008382981643080711, -0.01616712287068367, -0.03498847410082817, 0.025367796421051025, 0.02288893423974514, 0.024184446781873703, -0.01520270574837923, -0.013515589758753777, -0.023417865857481956, -0.045803338289260864, 0.01836210861802101, 0.02045898512005806, -0.004082828760147095, -0.01003220770508051, 0.02327605150640011, 0.008293027989566326, 0.026757586747407913, -0.0028054744470864534, -0.0009743580012582242, -0.018318267539143562, 7.080583610022325e-33, -0.02565191686153412, 0.0143735371530056, -0.03936268761754036, 0.004365681670606136, 0.05194323509931564, -0.026555631309747696, 0.02134605683386326, -0.006688796915113926, -0.02516266703605652, 0.0049660950899124146, -0.04288344085216522, -0.005878197494894266, -0.04254314303398132, -0.006214542780071497, 0.08049400895833969, -0.018084533512592316, 0.012277587316930294, -0.010079354047775269, -0.0012203864753246307, -0.016483483836054802, 0.03319477289915085, 0.00323025812394917, 0.009235866367816925, -0.027025600895285606, -0.006535446271300316, 0.027837740257382393, -0.011033465154469013, 0.017476003617048264, -0.026311514899134636, 0.027962576597929, 0.028225315734744072, -0.021137189120054245, 0.002066240180283785, -0.000255456892773509, 0.010031812824308872, 0.03147480636835098, 0.028964195400476456, -0.008772590197622776, 0.007436955347657204, 0.0013869469985365868, -0.006938601844012737, -0.006985507905483246, -0.013914122246205807, 0.03914472833275795, -0.020009605213999748, 0.002977815456688404, -0.000674879236612469, -0.005921895150095224, 0.008711952716112137, 0.032460689544677734, -0.02718001790344715, 0.012357329949736595, -0.018056588247418404, -0.007154202088713646, 0.003467441303655505, -0.01472665835171938, 0.004679826088249683, 0.005245455540716648, -0.018802866339683533, -0.009428453631699085, -0.028865141794085503, -0.006173015106469393, -0.020148860290646553, 0.03203120827674866, 0.015708234161138535, 0.013544511049985886, -0.043876077979803085, -0.009957597590982914, -0.023295825347304344, -0.002208488993346691, -0.03335931897163391, -0.006872180383652449, 0.009511222131550312, 0.04365361109375954, -0.006590398494154215, -0.01614520139992237, -0.01771146059036255, 0.024632254615426064, -0.008480312302708626, 0.028758985921740532, 0.010553824715316296, 0.016242530196905136, 0.01719353161752224, -0.0009881432633846998, -0.004346730187535286, 0.009484879672527313, -0.02219337224960327, -0.00031760268029756844, 0.029342632740736008, 0.005038504954427481, 0.014150609262287617, 0.020158812403678894, 0.0251879021525383, 0.005528150591999292, 0.030528968200087547, -1.305184138544746e-8, -0.05856712535023689, -0.005407280754297972, -0.05190207064151764, 0.003873094916343689, 0.005464764311909676, 0.02034665457904339, -0.027737556025385857, -0.006025708746165037, -0.019981062039732933, -0.008186808787286282, 0.05481063574552536, 0.00820448063313961, 0.005386730656027794, 0.03490306809544563, 0.04824452102184296, -0.029694845899939537, -0.01015921588987112, -0.03257374092936516, 0.006086104083806276, 0.019247103482484818, 0.02481253258883953, -0.002215860178694129, 0.0014224512269720435, -0.01501911599189043, -0.0501478835940361, -0.011391991749405861, 0.001065466902218759, -0.07225852459669113, -0.023302605375647545, 0.023014063015580177, 0.0003005317703355104, -0.015388721600174904, -0.014234424568712711, 0.019757816568017006, 0.007251661736518145, -0.055276092141866684, 0.015618093311786652, 0.02009245567023754, 0.018520064651966095, 0.02217789739370346, -0.039822500199079514, -0.012112242169678211, -0.012370719574391842, -0.015085943974554539, 0.011752688325941563, 0.014575798995792866, -0.036466896533966064, -0.0060800788924098015, 0.0029535756912082434, -0.011000948958098888, 0.005405117757618427, 0.028814025223255157, -0.0017236112616956234, -0.025069648399949074, 0.025029998272657394, 0.022435156628489494, 0.012165277265012264, -0.023405758664011955, 0.002277583349496126, 0.00527706416323781, 0.0007033744477666914, 0.03838115930557251, -0.029860280454158783, -0.005622141063213348 ]
coding-dojo-18-groovy-bowling-game
https://markhneedham.com/blog/2009/06/26/coding-dojo-18-groovy-bowling-game
false
2009-06-21 17:21:22
Seams: Some thoughts
[ "coding", "software-development", "seams" ]
[ "Software Development" ]
I pick up Michael Feathers' http://www.amazon.co.uk/Working-Effectively-Legacy-Robert-Martin/dp/0131177052/ref=sr_1_1?ie=UTF8&s=books&qid=1245554188&sr=8-1[Working Effectively with Legacy Code] book from time to time and one of my favourite parts of the book is the chapter where he talks about 'Seams'. To quote the book: ____ A seam is a place where you can alter behaviour in your program without editing in that place ____ Seams in the book are generally discussed in terms of how we can get tests around legacy code which was written without easy testability in mind but I've noticed that the ideas behind seams seem to be more widely applicable than this. The reason for using seams elsewhere is fairly similar as far as I can tell - *we want to alter the way that code works in a specific context but we don't want to change it in that place since it needs to remain the way it is when used in other contexts*. == Removing dependencies One place where we recently used what I consider to be a seam was to remove calls to external sites from our application when we were running our tests against the application in our normal build. We don't have any control over these dependencies as they are completely external so we made calls to those urls go to localhost instead by adding an entry in our hosts file (C:\WINDOWS\system32\drivers\etc) like so: [source,text] ---- 127.0.0.1 external.site.com ---- On our UAT and production servers further down the pipeline we don't have that type of setting in the hosts file so those run against the real dependencies. I think the ideal place to apply this seam would be in a configuration file where you would be able to configure dependencies but in this case the dependency is actually added in outside of our team's control so we decided to adjust the behaviour where we could albeit a bit further away from where the behaviour is than we would have liked. == Impersonators Another area where we might make use of seams in our systems is in the creation of what my colleague Julio Maia refers to as 'impersonators'. Impersonators are little pieces of code that we write to *impersonate 3rd party systems we need to integrate with* - ideally we would have an impersonator for every integration point and we can make use of these impersonators at certain stages of our build rather than always having to call the real end point. One example of an impersonator that we've used recently is a proxy which captures requests and responses being made to a service layer from our application and then just replays these back every other time the same requests are made. The ideal place for this seams to be triggered (i.e. the seam's *enabling point*) is in a configuration which is independent of our production code and therefore allows us to choose when we want to make use of the impersonator and when we need to use the real service. image::{{<siteurl>}}/uploads/2009/06/proxy.gif[proxy.gif,514] In our case we have the endpoint defined in our 'web.config' and a step in our build process generates versions of that file for each of the environments that we might run our application in. We can then change the 'service.Endpoint' entry to point to the proxy for our development environment but have it point to the real service layer for other environments.
null
null
[ 0.006375606171786785, 0.00872174184769392, -0.033444926142692566, 0.0059968940913677216, 0.10564592480659485, -0.00278605823405087, 0.04429161921143532, 0.027881339192390442, 0.022826939821243286, -0.04234736040234566, -0.03216918557882309, -0.0013494770973920822, -0.07426821440458298, 0.0063081043772399426, -0.04314204677939415, 0.07225223630666733, 0.08446576446294785, -0.013218190521001816, 0.007718625012785196, -0.0010060089407488704, 0.020507603883743286, 0.07602502405643463, 0.0034953502472490072, 0.03893782198429108, 0.006953775882720947, 0.027872581034898758, 0.008509312756359577, -0.013569357804954052, -0.04512711614370346, -0.010374789126217365, 0.05029056966304779, -0.021224386990070343, 0.019269468262791634, -0.004873066674917936, 0.02037074603140354, -0.006146658211946487, -0.049895092844963074, 0.013200812041759491, 0.008898122236132622, 0.009502393193542957, -0.06390094757080078, 0.03421875089406967, 0.002026674570515752, 0.00883474387228489, -0.04955529794096947, 0.007288184016942978, -0.04784688353538513, 0.014394600875675678, -0.004258332308381796, -0.021326204761862755, -0.0615825429558754, 0.052646879106760025, -0.033538445830345154, -0.0007529265130870044, 0.01120127271860838, 0.034595031291246414, 0.015382492914795876, -0.06400644779205322, 0.034846361726522446, -0.04616117477416992, -0.007510188966989517, -0.0017417257186025381, -0.008963235653936863, 0.041312407702207565, 0.00745032262057066, -0.017929520457983017, 0.003084826050326228, 0.02704480290412903, -0.03373437002301216, -0.022090952843427658, -0.007484104949980974, 0.018509183079004288, -0.01602395437657833, -0.00848243199288845, 0.007877498865127563, -0.020154770463705063, -0.013616833835840225, 0.048846323043107986, 0.019783450290560722, 0.0808296799659729, -0.019592612981796265, 0.026320090517401695, 0.02043694630265236, 0.013384823687374592, -0.0008313498692587018, -0.03153981268405914, -0.017362385988235474, 0.008765211328864098, -0.053817398846149445, 0.06741756200790405, 0.026707196608185768, -0.062458574771881104, 0.0028682586271315813, 0.033739443868398666, 0.004674231633543968, 0.00885397382080555, 0.02219369448721409, 0.005508789326995611, 0.019052930176258087, -0.020170878618955612, -0.05195259302854538, -0.007030955515801907, -0.008227523416280746, 0.03107229620218277, -0.07252691686153412, 0.005506496410816908, -0.01749396324157715, -0.013927808031439781, -0.023877307772636414, 0.002300921129062772, -0.04738746955990791, 0.012548933736979961, -0.01631144993007183, 0.009347144514322281, -0.0832958072423935, 0.06461738049983978, -0.016715658828616142, -0.04473845660686493, 0.012635389342904091, 0.035555772483348846, 0.05314755439758301, 0.049610793590545654, 0.0015350724570453167, 0.07613613456487656, 0.005790643859654665, 0.02573407255113125, -0.01339077390730381, 0.059596240520477295, -0.03663892298936844, -0.062205761671066284, -0.007848924025893211, 0.057601068168878555, -0.020704394206404686, 0.02074570767581463, -0.011252017691731453, 0.002500124042853713, -0.0021884345915168524, 0.009063522331416607, 0.034603387117385864, 0.0451190248131752, -0.019733842462301254, -0.026774674654006958, 0.002565095666795969, 0.004987902939319611, 0.018134551122784615, -0.0005392289021983743, 0.00008838780922815204, -0.024989478290081024, -0.027628708630800247, 0.013248966075479984, 0.03551626205444336, 0.03165041655302048, 0.03716183081269264, -0.04680625721812248, 0.00007024031947366893, 0.07494141906499863, 0.03389450162649155, 0.011915729381144047, -0.022205689921975136, 0.004763193428516388, 0.04275134950876236, 0.0447140596807003, 0.007711268030107021, 0.03752043843269348, 0.014644536189734936, 0.025212446227669716, -0.018817944452166557, 0.03785282373428345, 0.019664762541651726, 0.006233737338334322, -0.0594203881919384, -0.053942594677209854, 0.0483177974820137, -0.05101246386766434, -0.029768064618110657, 0.02332717925310135, 0.08237243443727493, 0.011519928462803364, 0.038612913340330124, 0.012165349908173084, -0.07761441171169281, 0.03608223423361778, 0.020035728812217712, 0.011361549608409405, 0.014974460005760193, -0.008768145926296711, 0.06860783696174622, 0.023195169866085052, 0.003595218062400818, 0.033721063286066055, -0.09372464567422867, -0.07960499078035355, 0.007774233352392912, -0.024771245196461678, 0.0567060224711895, -0.02499239705502987, -0.004089329857379198, 0.08286354690790176, 0.02433704026043415, 0.059246715158224106, 0.02301589958369732, -0.011642052792012691, 0.016646290197968483, -0.053977057337760925, -0.05694712698459625, 0.03701457008719444, 0.02157716453075409, 0.003669165773317218, -0.05559399724006653, -0.00012029479694319889, -0.015953566879034042, 0.011295060627162457, 0.03659777343273163, -0.019193854182958603, 0.04393453150987625, 0.008310225792229176, 0.026231206953525543, -0.05757476016879082, 0.056113019585609436, -0.06064707040786743, 0.015339021570980549, 0.005901006516069174, -0.009980286471545696, 0.01486161071807146, 0.0012992401607334614, 0.11174628138542175, 0.06088729947805405, -0.04680878669023514, -0.0431339368224144, 0.011882610619068146, 0.0033151067327708006, -0.046913992613554, -0.00882379338145256, -0.013290165923535824, 0.021060170605778694, -0.009710892103612423, -0.04779722914099693, -0.010508263483643532, 0.005776493810117245, -0.017874030396342278, -0.008206191472709179, 0.07008868455886841, -0.013412321917712688, 0.045032210648059845, -0.0038271036464720964, -0.030072180554270744, 0.003522630315274, -0.02530491165816784, -0.04466352239251137, 0.009914116933941841, 0.005710897967219353, -0.003233051160350442, 0.05726734921336174, -0.045530665665864944, -0.008979938924312592, 0.0003139364707749337, -0.055280230939388275, 0.028100553900003433, 0.01475908700376749, 0.06953445822000504, -0.022547343745827675, 0.05731051415205002, -0.04499627649784088, 0.0313313789665699, 0.005241789389401674, -0.040210336446762085, -0.021521437913179398, -0.01599634252488613, 0.0040982565842568874, 0.008301942609250546, 0.01217655185610056, 0.020540747791528702, 0.019059443846344948, -0.0003505805798340589, 0.012600081041455269, 0.004420062061399221, 0.04297787696123123, 0.003760688006877899, -0.002613482531160116, -0.026758013293147087, -0.03406664356589317, 0.036945730447769165, -0.05072745308279991, -0.028057275339961052, 0.005397433415055275, -0.07136991620063782, 0.02675464004278183, -0.09418165683746338, -0.07730685919523239, -0.0053376201540231705, 0.04333411529660225, 0.05418433994054794, 0.03828689828515053, 0.03049616515636444, 0.053099095821380615, 0.023450816050171852, -0.00361956306733191, 0.031970880925655365, 0.010640892200171947, 0.04762578383088112, 0.0022942372597754, -0.007801624946296215, 0.026150135323405266, -0.013400341384112835, 0.0018050348153337836, -0.07555234432220459, 0.01595713198184967, -0.04901215061545372, -0.29201680421829224, 0.05340665578842163, 0.008626297116279602, -0.06324378401041031, 0.04036068916320801, -0.005536156240850687, 0.012788940221071243, -0.04873460531234741, -0.0335216261446476, 0.0388280488550663, -0.017866969108581543, -0.0480593666434288, -0.010235472582280636, 0.02589862234890461, -0.016605274751782417, 0.042341962456703186, 0.023552270606160164, -0.041594699025154114, -0.0062668463215231895, 0.022730911150574684, -0.022442063316702843, -0.057670604437589645, 0.002507984172552824, 0.009348698891699314, 0.004169153980910778, 0.04964573308825493, -0.08225278556346893, 0.045150090008974075, -0.04164685681462288, 0.004760382231324911, -0.000712001696228981, -0.006484236568212509, 0.00394975021481514, -0.01018443237990141, -0.03799078240990639, -0.03133358061313629, 0.02802526019513607, 0.014952020719647408, -0.0149913365021348, 0.01300902385264635, -0.020308926701545715, -0.016640815883874893, -0.02576567232608795, 0.0012787244049832225, 0.06491237878799438, -0.018220005556941032, -0.07730244845151901, -0.03300851583480835, -0.0005667662480846047, 0.09940814226865768, -0.06457087397575378, -0.0327427051961422, -0.0062569971196353436, 0.04346679896116257, -0.006382961757481098, -0.01784709095954895, -0.018198948353528976, -0.018383346498012543, -0.05069144815206528, -0.02687658928334713, -0.019550856202840805, -0.0251348614692688, -0.009965336881577969, -0.0663379579782486, 0.00798181165009737, -0.06391436606645584, -0.0704852044582367, -0.03695507347583771, 0.07417625188827515, 0.019097454845905304, -0.028544196859002113, 0.019285723567008972, -0.012205565348267555, -0.12128838896751404, -0.01165679283440113, -0.035030514001846313, -0.04951588064432144, -0.023540914058685303, 0.017599880695343018, 0.057444024831056595, -0.04235517606139183, -0.03247910737991333, 0.006969596724957228, 0.002371729351580143, 0.006990156602114439, -0.01448378711938858, 0.0224644485861063, 0.006881851702928543, -0.015141183510422707, -0.004343072418123484, 0.07196793705224991, 0.009304855018854141, -0.03736666217446327, -0.041862763464450836, 0.03570103645324707, 0.0030146357603371143, 0.02879408374428749, 0.0009493319084867835, 0.004134759306907654, 0.036704886704683304, 0.004269989673048258, -0.07536202669143677, 0.04227379709482193, -0.036065731197595596, 0.012210634537041187, 0.00411778362467885, -0.0444168895483017, 0.011668602004647255, 0.04650614783167839, 0.03730163723230362, -0.005043763667345047, -0.04432288557291031, 0.022169580683112144, -0.03875091299414635, -0.06685469299554825, -0.017207447439432144, 0.02810904011130333, 0.031930260360240936, -0.015913954004645348, -0.017919490113854408, -0.041407860815525055, 0.015582733787596226, 0.007241497281938791, -0.013137067668139935, -0.0557505264878273, -0.028588077053427696, 0.013441663235425949, -0.005347456783056259, 0.05391659960150719, 0.018962526693940163, -0.03212999552488327, 0.03087044507265091, 0.029201125726103783, -0.03282950446009636, 0.01841302216053009, -0.0002437384391669184, -0.04007890447974205, -0.034949492663145065, -0.02397642657160759, 0.003226248314604163, -0.034954894334077835, -0.0015414874069392681, 0.003038838505744934, 0.02373604290187359, 0.048133138567209244, 0.012332542799413204, 0.043163057416677475, -0.0038059945218265057, 0.03200762718915939, 0.01580633595585823, 0.03619508817791939, -0.07922817766666412, 0.014254076406359673, -0.046966973692178726, -0.036565426737070084, -0.027117587625980377, 0.03150402754545212, 0.0007207428570836782, -0.0068582273088395596, -0.014035786502063274, 0.03991454094648361, -0.054778654128313065, -0.004923952277749777, -0.011783765628933907, 0.010802517645061016, 0.05560480058193207, -0.03049544245004654, 0.01853174716234207, -0.024414222687482834, -0.025019437074661255, -0.010543988086283207, 0.01953037455677986, -0.03549937531352043, 0.024714356288313866, 0.02066471427679062, 0.029251836240291595, -0.005843804217875004, 0.020233459770679474, 0.0545630119740963, 0.015454957261681557, -0.004701981786638498, -0.019150521606206894, 0.009370824322104454, -0.003250907873734832, 0.04703240096569061, -0.019357889890670776, -0.0017473960760980844, -0.00903558824211359, -0.017989380285143852, -0.016696244478225708, -0.006543850991874933, -0.004230980761349201, -0.0033595217391848564, 0.021165624260902405, -0.0359363779425621, -0.07130514085292816, 0.0317804180085659, -0.0032832759898155928, -0.000035564993595471606, -0.003442236455157399, -0.00506706815212965, 0.025762617588043213, -0.01289856806397438, 0.03361666202545166, 0.035742390900850296, -0.05148513987660408, 0.002260567620396614, 0.00010005302465287969, -0.009456004947423935, 0.00842844508588314, 0.003662330564111471, -0.04021017998456955, -0.036983389407396317, 0.0036801050882786512, 0.005105952266603708, -0.07809124141931534, -0.0396231934428215, -0.027598723769187927, 0.021596737205982208, 0.0016593548934906721, -0.014587854966521263, -0.028393706306815147, 0.009162980131804943, 0.006528445053845644, -0.04557503014802933, 0.01680751144886017, -0.010621670633554459, -0.01100814901292324, 0.031975094228982925, -0.04600965604186058, 0.02175316959619522, -0.030338646844029427, 0.05484447255730629, 0.021784119307994843, -0.02405749447643757, -0.011673139408230782, -0.04017086327075958, -0.005027803126722574, 0.0016753533855080605, 0.02040354534983635, 0.0030571238603442907, -0.012767932377755642, -0.030191155150532722, -0.008606338873505592, -0.016209935769438744, 0.021915320307016373, -0.015150009654462337, -0.014671653509140015, 0.0213431678712368, 0.05992152914404869, 0.011004801839590073, 0.03510243073105812, -0.01301809772849083, -0.003724890761077404, 0.048713572323322296, -0.06741666793823242, -0.03018084540963173, -0.01590675488114357, -0.05696317180991173, 0.015259667299687862, 0.011182000860571861, 0.007385608274489641, -0.02949114330112934, 0.01043247152119875, 0.030387137085199356, 0.01113112922757864, 0.042711760848760605, 0.015455884858965874, 0.0393412746489048, -0.04833211004734039, -0.01708770915865898, -0.07404351234436035, 0.005236105993390083, 0.024944176897406578, -0.0038159608375281096, -0.012129435315728188, 0.007340661715716124, -0.011891553178429604, 0.03458395227789879, -0.05947289243340492, -0.029643984511494637, 0.027416596189141273, 0.002856372855603695, 0.0024404828436672688, 0.02756875567138195, -0.05081977695226669, 0.029688522219657898, 0.004060449078679085, -0.044491853564977646, -0.04335039481520653, -0.01474705059081316, 0.05290211737155914, 0.022003380581736565, 0.014933333732187748, -0.03676882013678551, -0.01758272387087345, 0.06090961769223213, 0.015093417838215828, 0.008718297816812992, 0.03574373945593834, -0.009869508445262909, 0.036430634558200836, 0.012019961141049862, 0.022909218445420265, -0.0003278273215983063, 0.0166856050491333, -0.004602798726409674, -0.06791720539331436, 0.04095118120312691, -0.021398967131972313, -0.009438013657927513, -0.0274486243724823, 0.05645661801099777, 0.026588257402181625, -0.023620735853910446, -0.06554421037435532, 0.013917888514697552, -0.03922559320926666, -0.03237590566277504, -0.024991316720843315, -0.013342059217393398, -0.03763924539089203, 0.05298401787877083, -0.00036693873698823154, 0.01009111013263464, 0.07457683980464935, -0.015473458915948868, -0.002301432192325592, -0.031489238142967224, 0.08455179631710052, 0.09376882761716843, 0.057411301881074905, 0.056534938514232635, 0.056530989706516266, 0.01452146377414465, -0.061088044196367264, 0.00013191024481784552, 0.006352168507874012, -0.012076165527105331, -0.01990428753197193, -0.0009274102048948407, 0.05707470700144768, -0.004186234902590513, 0.07220535725355148, -0.021284693852066994, 0.004081630147993565, -0.0017103441059589386, 0.027627304196357727, 0.0029592979699373245, 0.06676633656024933, 0.006185978651046753, 0.021489644423127174, -0.024501707404851913, -0.031151873990893364, 0.040221743285655975, -0.018833452835679054, -0.005237407051026821, 0.029877914115786552, 0.00629166467115283, 0.02281493879854679, 0.01441021729260683, 0.03585352003574371, 0.07014483213424683, -0.015400019474327564, 0.004717519041150808, 0.004431227687746286, 0.010307262651622295, 0.0014911422040313482, 0.015406601130962372, -0.031297631561756134, -0.017597412690520287, -0.0036142943426966667, -0.029526706784963608, -0.031699713319540024, 0.009642860852181911, -0.006316959857940674, 0.056207891553640366, -0.003940790891647339, 0.0028028155211359262, 0.011632680892944336, 0.011900235898792744, -0.03339064121246338, -0.046002790331840515, -0.05214513838291168, -0.012212639674544334, -0.03208368644118309, -0.035697586834430695, 0.0033733388409018517, 0.004859791602939367, -0.032174233347177505, -0.009410005062818527, -0.02881435491144657, -0.041305284947156906, 0.0406309999525547, -0.06258309632539749, -0.045636873692274094, -0.00011358958727214485, 0.016566386446356773, 0.03485647961497307, 0.025900976732373238, 0.07628936320543289, 0.0012098177103325725, -0.003179431427270174, -0.023499900475144386, 0.022244498133659363, 0.03207073360681534, -0.004894644487649202, 0.0392385832965374, -0.09879505634307861, 0.012628487311303616, 0.024744313210248947, 0.002206393051892519, -0.07256201654672623, 0.013921957463026047, 0.020059732720255852, -0.01943831890821457, 0.036769211292266846, -0.018009042367339134, 0.0019700746051967144, -0.002027980051934719, -0.0045111472718417645, -0.02255954220890999, 0.017614856362342834, 0.04308098182082176, 0.0053574093617498875, 0.07733369618654251, 0.025445958599448204, -0.01931070163846016, -0.0308429766446352, -0.004971390124410391, 0.00959840975701809, 0.026090778410434723, -0.03866472467780113, -0.00492290360853076, -0.026994192972779274, -0.08961936831474304, -0.01759806089103222, 0.026776131242513657, -0.012439336627721786, -0.03980032727122307, 0.005624864716082811, 0.0010203983401879668, -0.045778628438711166, 0.005165215115994215, -0.04325183480978012, 0.009886491112411022, -0.022485872730612755, -0.029270729050040245, 0.03312167525291443, 0.016628466546535492, 0.012545454315841198, 0.01884053461253643, 0.022019987925887108, -0.02156766690313816, -0.0004109151486773044, -0.02843906730413437, 0.02633209154009819, 0.05402400717139244, 0.0039156158454716206, -0.020673707127571106 ]
[ -0.1102169081568718, 0.014600221998989582, -0.0037948861718177795, -0.03544946387410164, 0.03778309002518654, -0.038566287606954575, -0.0040366388857364655, 0.011020737700164318, -0.02681274153292179, -0.0009355417569167912, -0.00800933688879013, -0.01044222991913557, -0.021856609731912613, -0.02509174682199955, 0.08714288473129272, 0.020104702562093735, -0.027899492532014847, -0.04250597208738327, -0.0012931158998981118, 0.030089246109128, 0.011753899976611137, -0.04914591461420059, -0.045188650488853455, -0.03311651572585106, 0.005903494078665972, 0.021593835204839706, 0.024827878922224045, -0.019513826817274094, 0.02461005002260208, -0.20177751779556274, 0.014649447053670883, 0.010691842995584011, -0.0046522486954927444, -0.017582155764102936, -0.0039333440363407135, 0.0347004272043705, 0.02221815474331379, -0.016052208840847015, 0.0036252173595130444, 0.022798044607043266, 0.01940605789422989, 0.04726327583193779, -0.0488455630838871, -0.008747147396206856, 0.02300846017897129, 0.005763261578977108, 0.008770461194217205, -0.03786442428827286, -0.025135789066553116, 0.007481019478291273, -0.04236896336078644, 0.002176611451432109, -0.015605871565639973, -0.024258650839328766, -0.010526351630687714, 0.011610167101025581, 0.025723468512296677, 0.07760639488697052, -0.009672397747635841, 0.022651338949799538, 0.006294015794992447, -0.034708186984062195, -0.1359831541776657, 0.09854771941900253, 0.038759298622608185, 0.04895126447081566, -0.03733693063259125, -0.027014603838324547, -0.023073263466358185, 0.09045195579528809, -0.04368410259485245, -0.01694352738559246, -0.047029316425323486, 0.05150960013270378, 0.03975057229399681, 0.0029205780010670424, 0.0041793216951191425, 0.024024521932005882, 0.033640868961811066, -0.05396240949630737, -0.031968582421541214, -0.021901337429881096, -0.006327840033918619, -0.02713293395936489, -0.041577208787202835, 0.024683620780706406, 0.007450512144714594, 0.049021389335393906, 0.042502354830503464, 0.01836029253900051, 0.04223025590181351, -0.029210416600108147, 0.06725120544433594, 0.0011821002699434757, -0.07033488154411316, -0.0007778552826493979, -0.004407950211316347, 0.04129550978541374, -0.027931828051805496, 0.44919949769973755, -0.02870042249560356, -0.03758079931139946, 0.039304669946432114, 0.05082908645272255, 0.02117084711790085, 0.02195570059120655, 0.015523306094110012, -0.016153531149029732, 0.04331982508301735, 0.0018099717563018203, -0.005669762380421162, 0.0019534623716026545, 0.07151830196380615, -0.03245076164603233, 0.00310412235558033, -0.0005976126994937658, 0.008641109801828861, 0.027155878022313118, 0.03642670810222626, -0.022006671875715256, -0.010885989293456078, 0.011599650606513023, 0.03043866530060768, 0.022789595648646355, -0.001240964513272047, -0.010416348464787006, 0.026041463017463684, 0.049000468105077744, 0.03070761449635029, 0.04115010425448418, 0.03353172540664673, -0.0614289864897728, -0.04079729691147804, 0.015594057738780975, -0.0028485748916864395, 0.018750499933958054, 0.020690228790044785, -0.00989310909062624, -0.018955163657665253, 0.03327840194106102, -0.009998021647334099, 0.012818027287721634, 0.01176360622048378, 0.006341753993183374, -0.02994561195373535, 0.08228294551372528, 0.011577669531106949, -0.041869327425956726, -0.0285054761916399, -0.026551879942417145, 0.014479998499155045, 0.048305004835128784, -0.030609572306275368, -0.04949818551540375, 0.009808226488530636, 0.010946453548967838, 0.05550859495997429, -0.008642441593110561, -0.055522773414850235, -0.014824029058218002, -0.008238951675593853, -0.027108849957585335, -0.05130961909890175, 0.06740253418684006, 0.05187550559639931, -0.1133153960108757, -0.03939463943243027, 0.028752697631716728, 0.03321085497736931, -0.06512075662612915, -0.023527802899479866, -0.012533108703792095, -0.02931187115609646, -0.010282647795975208, 0.038673531264066696, -0.016725966706871986, -0.059590134769678116, 0.013075077906250954, 0.033142320811748505, 0.030928747728466988, 0.01763492077589035, 0.00003687189382617362, -0.05564987659454346, -0.015339837409555912, -0.045398082584142685, -0.09878797829151154, -0.03832703083753586, -0.004629170522093773, -0.026483701542019844, 0.009319042786955833, -0.03313860297203064, -0.01434758398681879, -0.0656120628118515, 0.07143023610115051, 0.014551183208823204, -0.003865302074700594, 0.003243635641410947, -0.003881898708641529, -0.0396324023604393, -0.045123837888240814, -0.01547666359692812, 0.04017668217420578, -0.028482386842370033, 0.015254204161465168, -0.08316034078598022, 0.06992542743682861, 0.048561979085206985, -0.057057082653045654, 0.09841897338628769, 0.03729183226823807, -0.04172122851014137, -0.036321211606264114, -0.0053769974038004875, 0.020358266308903694, 0.0019170675659552217, -0.0326438769698143, -0.0012731981696560979, 0.009331842884421349, 0.019618762657046318, 0.01744207926094532, -0.029510829597711563, -0.0180949866771698, -0.03406987339258194, -0.35360386967658997, -0.03295139968395233, -0.03518253192305565, 0.0021315929479897022, 0.003558078547939658, -0.06698621064424515, 0.03204910084605217, 0.0009523070766590536, 0.0010977693600580096, -0.003021108452230692, 0.0874113067984581, -0.03453526273369789, 0.01039073895663023, -0.054602500051259995, -0.013421555049717426, 0.010070630349218845, -0.03938809782266617, -0.029149500653147697, -0.05256102979183197, 0.009135059081017971, 0.007543538231402636, -0.0020316094160079956, 0.009830903261899948, -0.05336831882596016, -0.015800101682543755, -0.038548920303583145, 0.07242128252983093, -0.02037292718887329, 0.08990620076656342, -0.07196715474128723, 0.028315657749772072, 0.015780989080667496, 0.02556787244975567, -0.09958778321743011, -0.001159476232714951, 0.014715424738824368, -0.0025104950182139874, -0.04821433126926422, 0.05515791103243828, -0.04493877664208412, -0.0747065320611, 0.027003318071365356, -0.05059107765555382, -0.03737346827983856, -0.033495303243398666, 0.03775479644536972, -0.010139879770576954, -0.052359770983457565, -0.026491539552807808, 0.07024268060922623, 0.013717836700379848, -0.007689991500228643, 0.021140558645129204, 0.01904827356338501, -0.027479391545057297, -0.04734420031309128, -0.0692014992237091, 0.00866528321057558, 0.018339525908231735, 0.026931628584861755, 0.033684518188238144, 0.045330971479415894, 0.02230885997414589, -0.057106535881757736, 0.04120233654975891, 0.010917678475379944, -0.0013388079823926091, -0.0025365480687469244, 0.06817257404327393, -0.0359945222735405, -0.009985881857573986, 0.09913819283246994, -0.009550005197525024, -0.023224351927638054, 0.013096574693918228, 0.03536950796842575, -0.01208981778472662, 0.03989945724606514, 0.008712293580174446, -0.023682013154029846, 0.02593989297747612, -0.002071503782644868, 0.020702950656414032, -0.02485242486000061, -0.0025683194398880005, 0.03826725855469704, -0.02344605140388012, -0.018942521885037422, 0.06436306238174438, 0.016710670664906502, -0.031126292422413826, 0.011775539256632328, -0.02281581051647663, -0.06042787432670593, 0.0630456879734993, 0.006519695278257132, -0.25095391273498535, 0.009240135550498962, 0.06486313045024872, 0.03630147501826286, -0.007608228828758001, 0.010203870013356209, 0.04539063572883606, -0.050987545400857925, 0.03499235585331917, 0.003995186649262905, 0.04899509996175766, 0.025821102783083916, 0.014116386882960796, -0.0076590790413320065, 0.043790653347969055, -0.005501613020896912, 0.05823124945163727, -0.009121838957071304, -0.020097283646464348, -0.007354278117418289, 0.008979438804090023, -0.035273876041173935, 0.18128007650375366, 0.02590853162109852, 0.038060612976551056, 0.01407209038734436, 0.03278910741209984, 0.02358901873230934, 0.04043997824192047, 0.00776596600189805, 0.018034137785434723, -0.017766784876585007, 0.07033026218414307, -0.012452876195311546, 0.017878467217087746, -0.0758209228515625, -0.020563917234539986, 0.045685406774282455, 0.009590879082679749, -0.013510476797819138, -0.014148231595754623, 0.01810348406434059, -0.018340056762099266, 0.038587234914302826, 0.06099294126033783, 0.010990500450134277, -0.0026717819273471832, 0.010112158954143524, -0.018082914873957634, -0.0195857435464859, -0.02972695790231228, -0.03298519179224968, -0.0004247943579684943, -0.031892329454422, 0.023964280262589455, 0.07435418665409088, 0.01323702558875084, -0.018698932603001595, -0.017849087715148926, 0.03596378490328789, 0.0007150508463382721, 0.0006635008030571043, 0.13020861148834229, 0.018744781613349915, 0.02498043142259121 ]
[ -0.05941316857933998, 0.02893652580678463, 0.014655039645731449, -0.01862926036119461, 0.003666321048513055, -0.006664898246526718, -0.01589835435152054, 0.019177913665771484, -0.03570927679538727, 0.0346967950463295, -0.019804349169135094, -0.011748400516808033, 0.02496437169611454, 0.008228234015405178, 0.044162020087242126, 0.010362551547586918, -0.008899196051061153, 0.008629655465483665, 0.0007244664011523128, -0.015346251428127289, -0.0483359694480896, 0.03443652763962746, -0.004736148752272129, 0.0055388640612363815, -0.025894688442349434, 0.017277326434850693, -0.019293224439024925, 0.011354001238942146, 0.015989437699317932, -0.1316707581281662, 0.016726352274417877, -0.00731305917724967, -0.024687208235263824, 0.03285825252532959, 0.0034146613907068968, 0.03659511357545853, 0.00888401921838522, -0.009374992921948433, -0.00277755712158978, -0.0027838791720569134, 0.02621537260711193, 0.0044390191324055195, 0.003796229837462306, 0.022920705378055573, -0.016672233119606972, 0.009167751297354698, -0.002367779379710555, 0.0028752342332154512, -0.005124659277498722, 0.007370378356426954, -0.03209717944264412, 0.02499346062541008, 0.000158910799655132, 0.030123936012387276, -0.019575240090489388, -0.0016287999460473657, -0.012568485923111439, -0.00859103724360466, -0.01580076292157173, -0.001187686575576663, -0.008625471033155918, -0.005628198850899935, -0.038170959800481796, -0.016177773475646973, -0.010267154313623905, -0.022908257320523262, -0.0013115218607708812, 0.02052481286227703, -0.01743052527308464, 0.00045189252705313265, -0.0351472906768322, 0.016782043501734734, -0.03758342191576958, 0.0045385817065835, 0.018431346863508224, 0.01058980356901884, -0.0008267696248367429, -0.0000020441598280740436, -0.018706979230046272, 0.00013517355546355247, -0.04218864068388939, -0.02027866058051586, 0.012977829203009605, -0.0032103208359330893, -0.005144805647432804, -0.026590993627905846, -0.010279033333063126, -0.009741989895701408, 0.03413878381252289, -0.00038913116441108286, -0.0012887446209788322, -0.00014600690337829292, 0.009284517727792263, 0.0152865806594491, -0.025759898126125336, 0.007320759352296591, -0.00962797086685896, 0.038234639912843704, -0.008565627038478851, 0.8346495032310486, -0.03490331768989563, 0.005378406494855881, 0.014058548957109451, 0.029320912435650826, 0.006142213009297848, -0.05141424015164375, -0.021418116986751556, 0.059196628630161285, 0.05479535460472107, -0.04776231199502945, 0.039645686745643616, -0.013376850634813309, 0.03150419890880585, -0.04537893086671829, 0.025565356016159058, -0.010197360068559647, 0.004675749689340591, 0.019550448283553123, -0.0043316734954714775, 0.04814856871962547, 0.04164997860789299, 0.014389178715646267, -0.015103553421795368, -0.0032994276843965054, -0.007679026573896408, -0.17817746102809906, 0.018684519454836845, -7.611471389000226e-33, 0.034843191504478455, 0.009060794487595558, -0.026623312383890152, -0.003971855156123638, 0.03331565484404564, 0.0017121053533628583, 0.00359349325299263, 0.025554504245519638, 0.023059634491801262, -0.029827982187271118, -0.027650928124785423, -0.007930800318717957, -0.027807356789708138, -0.026161720976233482, 0.013468246906995773, 0.017421724274754524, -0.008091898635029793, 0.01471739262342453, -0.01661905273795128, 0.028332818299531937, 0.03058340586721897, 0.00590178370475769, 0.010336753912270069, 0.0034511233679950237, -0.0051380242221057415, 0.023514915257692337, 0.02782866172492504, -0.00023884921392891556, -0.0035188847687095404, -0.030248228460550308, 0.00500949751585722, 0.02182239294052124, -0.005142877344042063, -0.02557859569787979, 0.009241234511137009, -0.040144696831703186, -0.05158814787864685, 0.014385185204446316, -0.030397430062294006, 0.0029002639930695295, -0.03602951020002365, -0.03283127769827843, 0.0041427891701459885, 0.001398223452270031, -0.03019886650145054, -0.058753155171871185, 0.004883284214884043, 0.04489072412252426, 0.05075773224234581, 0.034524958580732346, 0.05633493885397911, -0.004545485135167837, -0.0034121295902878046, 0.013624239712953568, -0.00515199126675725, 0.02053895778954029, -0.023960191756486893, -0.008272020146250725, -0.01072267908602953, 0.026028480380773544, 0.00685600470751524, -0.0034635209012776613, -0.005659483838826418, 0.028300218284130096, 0.016462555155158043, -0.04739205166697502, 0.05723235011100769, 0.033140506595373154, 0.0377265065908432, -0.029942011460661888, -0.0374782532453537, 0.03536561504006386, -0.02675972320139408, -0.007169865537434816, -0.02562003582715988, -0.03751864656805992, 0.003999232314527035, 0.027225926518440247, 0.05141622945666313, 0.03465178981423378, 0.0004776614950969815, 0.01188734546303749, 0.0035366984084248543, -0.01050395704805851, -0.036249734461307526, -0.01777622103691101, -0.0012375967344269156, -0.009474636055529118, -0.019630808383226395, -0.028704188764095306, 0.07472681999206543, 0.006524269003421068, 0.016575194895267487, -0.040239594876766205, -0.027648422867059708, 7.679861650331067e-33, 0.03910594806075096, -0.020550889894366264, -0.025638867169618607, -0.004119839984923601, 0.008931776508688927, 0.02116290293633938, 0.035963501781225204, 0.04597676172852516, -0.05638455972075462, 0.020131630823016167, 0.006397082004696131, 0.03224324434995651, -0.01626516319811344, 0.0029744026251137257, 0.009172038175165653, -0.02067573182284832, 0.04681287333369255, -0.014093363657593727, 0.03961026668548584, 0.020138781517744064, 0.019976608455181122, 0.0022392133250832558, -0.019093738868832588, -0.031923357397317886, 0.030671557411551476, 0.012858070433139801, -0.024112451821565628, -0.013503214344382286, -0.020801298320293427, -0.015098504722118378, 0.024498242884874344, 0.012919760309159756, -0.01285701896995306, -0.03240455314517021, -0.013381763361394405, 0.010661892592906952, 0.026117773726582527, 0.02205817587673664, -0.010263818316161633, -0.04789208248257637, 0.06217452138662338, 0.022745613008737564, -0.0035881896037608385, 0.020006656646728516, 0.006638426333665848, 0.036295320838689804, -0.038934752345085144, -0.02370583638548851, -0.037333302199840546, 0.03451213240623474, -0.00225040758959949, 0.04841669276356697, 0.01920544169843197, -0.048609647899866104, -0.014980632811784744, -0.01179435569792986, -0.07719498127698898, 0.010283464565873146, -0.03221362084150314, 0.03692710027098656, 0.016001924872398376, 0.01191622018814087, -0.029129235073924065, -0.0006388812907971442, -0.03698313608765602, 0.008047007024288177, -0.07873184233903885, 0.011059818789362907, 0.012294608168303967, -0.003325818572193384, -0.015415814705193043, -0.02073318138718605, -0.041053593158721924, -0.008930684067308903, 0.015813153237104416, -0.02116965875029564, -0.006495035253465176, 0.004466252401471138, 0.023162225261330605, 0.04836840182542801, -0.010124756954610348, -0.013347283005714417, -0.0062080672942101955, -0.0018518470460548997, -0.0010699562262743711, -0.00792543776333332, -0.029987333342432976, 0.030193811282515526, 0.026437917724251747, -0.00219111074693501, -0.03611436486244202, -0.049903132021427155, -0.007580164819955826, 0.0012709173606708646, -0.0019379555014893413, -1.3117660735417758e-8, 0.006993716116994619, 0.007696342188864946, -0.02259294129908085, -0.007031091023236513, 0.017720622941851616, 0.03536101430654526, -0.032101307064294815, 0.009789470583200455, -0.02257731556892395, 0.02490878850221634, 0.0216179471462965, -0.03801405429840088, -0.01297181099653244, 0.01224475633352995, 0.010822242125868797, -0.05575357750058174, 0.00883351918309927, 0.007242128252983093, 0.007391860242933035, -0.006259932182729244, 0.03993840515613556, 0.06148950383067131, 0.028617415577173233, 0.03308931365609169, 0.029640551656484604, -0.007943123579025269, -0.003649903228506446, -0.07709743827581406, -0.02530558966100216, 0.0192207433283329, -0.030313612893223763, -0.016850236803293228, -0.04698805510997772, -0.004550682380795479, -0.031499020755290985, -0.01894202269613743, -0.003622066928073764, 0.04166824743151665, 0.020086906850337982, 0.0020275614224374294, -0.0005085106822662055, 0.03433852642774582, -0.018230639398097992, -0.01781993918120861, 0.017107414081692696, -0.030398953706026077, 0.00066802476067096, 0.0006619886262342334, -0.021762697026133537, -0.03855861723423004, 0.04096641764044762, -0.003167177317664027, 0.01781163364648819, 0.041989073157310486, 0.02540508471429348, -0.006138017401099205, 0.0304274745285511, -0.016948986798524857, -0.04284704104065895, 0.0329064317047596, 0.011069265194237232, -0.01072040107101202, -0.02853352576494217, -0.01463320106267929 ]
seams-some-thoughts
https://markhneedham.com/blog/2009/06/21/seams-some-thoughts
false
2009-06-07 08:19:01
F#: Explicit interface implementation
[ "f", "interfaces" ]
[ "fsharp" ]
I've been writing some code to map between CouchDB documents and F# objects and something which I re-learned while doing this is the way that interfaces work in F#. In F# when you have a class which implements an interface that class makes use of explicit interface implementation. This means that in order to access any members of the interface that the class implements you need to specifically refer to the interface by upcasting the value using the ':>' operator. Given the following interface and class definitions: [source,ocaml] ---- type CouchDBDocument = abstract DocType : string type UserDocument = { UserName:string; FirstName:string; Surname:string } interface CouchDBDocument with member x.DocType = "User" ---- If we had the following value: [source,ocaml] ---- let mark = { UserName = "mneedham"; FirstName = "Mark"; Surname = "Needham" } ---- In order to access the 'DocType' member of 'mark' we would need to do the following: [source,ocaml] ---- (mark :> CouchDBDocument).DocType ---- Coming from the world of C# I had expected that it would be possible to define a value as being of type 'CouchDBDocument' and then pass in a value of UserDocument like this: [source,ocaml] ---- let mark : CouchDBDocument = { UserName = "mneedham"; FirstName = "Mark"; Surname = "Needham" };; ---- But that doesn't actually compile: [source,text] ---- error FS0191: The type CouchDBDocument does not contain a field UserName ---- It is possible to do this in C# as well although the implementation would be implicit in C# unless we explicitly declare it to be explicit like so: [source,csharp] ---- public interface CouchDBDocument { string DocType { get; } } public class UserDocument : CouchDBDocument { string CouchDBDocument.DocType { get { return "User"; } } } ---- To access the 'DocType' property in this case we would need to be explicitly referring to the 'CouchDBDocument': [source,csharp] ---- CouchDBDocument mark = new UserDocument(); Console.WriteLine(mark.DocType); ---- Mauricio Scheffer has an http://bugsquash.blogspot.com/2009/01/implementing-interfaces-in-f.html[interesting post where he talks about rewriting a piece of C# code in F#] which required him to use interfaces in F# and http://cs.hubfs.net/forums/permalink/7579/7586/ShowThread.aspx#7586[Brian McNamara explains on hubfs why explicit interface implementation can actually be quite useful]. The http://www.markhneedham.com/blog/2009/05/24/real-world-functional-programming-book-review/[Real World Functional Programming book] also has a chapter which describes interfaces in C# and F# and the way they differ very clearly.
null
null
[ -0.024632643908262253, 0.01041480340063572, -0.013622644357383251, 0.014238693751394749, 0.06430267542600632, -0.022887766361236572, 0.018523067235946655, 0.02724691480398178, 0.014102679677307606, -0.023803267627954483, -0.03581090271472931, 0.0024987992364913225, -0.07854439318180084, 0.02795625850558281, 0.01232269499450922, 0.07099490612745285, 0.08541570603847504, -0.03873355686664581, -0.02528255246579647, -0.016502104699611664, 0.015299092046916485, 0.0746714323759079, -0.02983643114566803, 0.01855623349547386, 0.03174182400107384, 0.027500221505761147, 0.009087552316486835, -0.012052591890096664, -0.029678208753466606, 0.0063612493686378, -0.0006054810364730656, -0.009015080519020557, -0.008439632132649422, -0.019357630982995033, -0.0029467660933732986, 0.0036124251782894135, 0.0021518731955438852, -0.005359563510864973, -0.014544469304382801, 0.02821190468966961, -0.06894169002771378, 0.004601761698722839, 0.001469618291594088, 0.013870852999389172, -0.060992661863565445, -0.00652026804164052, -0.07728080451488495, 0.0027840975672006607, -0.03839530423283577, 0.013890382833778858, -0.06814707070589066, 0.010701444000005722, -0.060840293765068054, 0.02588241919875145, 0.01792382448911667, 0.060070548206567764, -0.020923977717757225, -0.0873291864991188, 0.04167749360203743, -0.035815414041280746, 0.009687596932053566, -0.009183005429804325, 0.014844720251858234, 0.02645263634622097, 0.022755419835448265, 0.010324157774448395, -0.0236702561378479, 0.03140649572014809, -0.0820029005408287, -0.04584885016083717, -0.0031605090480297804, -0.00258560455404222, -0.04232156276702881, 0.013352776877582073, 0.02538127452135086, -0.050027407705783844, -0.0059812539257109165, 0.025441253557801247, 0.050442978739738464, 0.05088065564632416, -0.023831281810998917, 0.06208803877234459, 0.03961790353059769, -0.002702434081584215, 0.008488079532980919, -0.030803430825471878, -0.03314608335494995, 0.03225691616535187, -0.026255561038851738, 0.03907996416091919, 0.028846122324466705, -0.03408775106072426, -0.006480426527559757, 0.015100006945431232, 0.008512204512953758, -0.0044783735647797585, 0.013125834055244923, -0.028460614383220673, 0.004960165824741125, 0.008820313960313797, -0.04753465577960014, -0.023271789774298668, 0.021296074613928795, 0.023912819102406502, -0.057504262775182724, -0.011060473509132862, -0.03907099738717079, -0.02369210682809353, 0.00041657331166788936, 0.0054163457825779915, -0.05621069669723511, -0.002830213401466608, -0.035147979855537415, -0.01652260310947895, -0.07221527397632599, 0.02061222307384014, 0.0406179241836071, 0.0327969491481781, 0.009732142090797424, 0.04464868828654289, 0.04441220685839653, 0.02262805588543415, -0.007315034978091717, 0.0607890784740448, 0.0027311034500598907, 0.019098373129963875, -0.03605923801660538, 0.07007952034473419, -0.0025311242789030075, -0.08129958063364029, -0.031512681394815445, 0.06385553628206253, -0.02447512559592724, 0.02273479849100113, 0.01375794131308794, -0.009616770781576633, -0.019512856379151344, 0.024285655468702316, 0.03887602314352989, 0.04661392793059349, -0.030336081981658936, -0.07220035046339035, -0.016413722187280655, -0.041035499423742294, 0.00011046807048842311, -0.014386843889951706, -0.03639421612024307, 0.0070832655765116215, -0.0009698190842755139, 0.03987153619527817, 0.02662772499024868, 0.04262837767601013, 0.07984534651041031, -0.028932340443134308, -0.008878471329808235, 0.08817403018474579, 0.00419502193108201, 0.03877406567335129, 0.006984255742281675, -0.006668162066489458, 0.04025309905409813, 0.02861885540187359, -0.00036430582986213267, 0.007252097595483065, 0.025795940309762955, 0.007685198914259672, 0.015932206064462662, 0.03765825182199478, -0.027316158637404442, -0.013633276335895061, -0.041145309805870056, -0.03015899285674095, 0.055887371301651, -0.004524925258010626, -0.0019904570654034615, 0.049344416707754135, 0.07372236251831055, -0.004169842693954706, 0.04281027987599373, 0.010296833701431751, -0.08716230094432831, 0.007161962334066629, -0.008737855590879917, -0.01679864339530468, 0.003816612996160984, 0.01806616224348545, 0.050930868834257126, 0.020590996369719505, 0.00910900067538023, 0.030705928802490234, -0.06121444329619408, -0.06047780439257622, -0.03920384868979454, -0.01419195719063282, 0.08185483515262604, -0.05731191858649254, -0.02112555131316185, 0.06485871225595474, 0.019106555730104446, 0.02700180746614933, 0.027194516733288765, -0.04569683596491814, 0.026925573125481606, -0.005211147014051676, -0.03183352202177048, 0.061834707856178284, 0.022359291091561317, -0.006383522413671017, -0.03176811337471008, -0.008759662508964539, 0.012224568985402584, 0.01794973947107792, 0.0604008249938488, 0.002573807258158922, 0.03667667135596275, 0.012021229602396488, 0.01470752339810133, -0.051051970571279526, 0.05201854929327965, -0.06123426929116249, 0.03757018968462944, 0.00735860550776124, 0.005000143777579069, -0.013326231390237808, -0.027755960822105408, 0.1252673864364624, 0.05858496204018593, -0.02281523309648037, -0.04492819309234619, -0.0044020735658705235, 0.0022163691464811563, -0.05331480875611305, 0.00048587433411739767, -0.020184094086289406, -0.0005648495862260461, 0.005075717344880104, -0.009890158660709858, 0.03338778391480446, 0.030675319954752922, -0.03168933466076851, 0.007657635025680065, 0.06589053571224213, -0.02817652001976967, 0.0382654145359993, 0.012541528791189194, -0.0469062514603138, 0.029150599613785744, -0.012200652621686459, -0.032520685344934464, 0.0147121362388134, 0.028313735499978065, -0.00986879225820303, 0.060742687433958054, -0.03761829063296318, 0.008543961681425571, -0.005171800032258034, -0.044276800006628036, 0.038235656917095184, 0.03185378015041351, 0.048268795013427734, -0.0006945497007109225, 0.024542389437556267, -0.029197169467806816, -0.005288660526275635, -0.002946478547528386, -0.042340293526649475, -0.016050780192017555, 0.0471862331032753, 0.023931706324219704, 0.004449883941560984, 0.011366252787411213, -0.0032459571957588196, 0.03262678161263466, 0.011320625431835651, -0.026692457497119904, 0.016630524769425392, 0.017834821715950966, 0.014614542946219444, -0.02958151325583458, -0.05789753422141075, -0.05459951236844063, 0.029861055314540863, -0.027494249865412712, -0.053251586854457855, 0.0015567230293527246, -0.079507015645504, 0.03090791404247284, -0.06908953189849854, -0.03934885933995247, -0.026964524760842323, 0.04366624355316162, 0.023779194802045822, -0.02243220806121826, 0.023084772750735283, 0.05307773873209953, 0.02934165857732296, 0.028366612270474434, 0.01365302037447691, -0.015197363682091236, 0.020043058320879936, -0.02481492981314659, 0.03599715605378151, 0.07981552928686142, -0.014085282571613789, 0.002501009264960885, -0.03505696728825569, 0.019034195691347122, -0.006279350258409977, -0.2584019899368286, 0.027401776984333992, -0.04431673884391785, -0.03592313826084137, 0.023310663178563118, -0.008787030354142189, 0.0035118665546178818, -0.06533852219581604, -0.02165122888982296, 0.047564487904310226, -0.014721495099365711, -0.04804280772805214, -0.03152377903461456, 0.04298383742570877, -0.005326039157807827, -0.004200770985335112, -0.020577959716320038, -0.040737900882959366, -0.018450262024998665, 0.05994551628828049, -0.015353094786405563, -0.05827855318784714, 0.017293088138103485, 0.042716134339571, 0.01891540363430977, 0.02122722566127777, -0.0781160444021225, 0.03027992881834507, 0.005067246034741402, -0.027050776407122612, -0.0158083476126194, 0.0012094269040971994, 0.02942422777414322, -0.029555998742580414, -0.02594737894833088, -0.05014742910861969, 0.023879779502749443, 0.016714807599782944, 0.010746273212134838, 0.008417598903179169, -0.04106813669204712, -0.03044571727514267, -0.016615120694041252, -0.022586781531572342, 0.07280077785253525, -0.03339530527591705, -0.0773092731833458, -0.009583933278918266, -0.04572439566254616, 0.07372970134019852, -0.03997565060853958, -0.035611167550086975, -0.007138472516089678, 0.07639546692371368, -0.00032155661028809845, -0.026001574471592903, 0.018156345933675766, -0.009659252129495144, -0.05123699828982353, -0.016059109941124916, -0.03943251445889473, -0.049065396189689636, -0.03283895552158356, -0.04097593575716019, -0.015174399130046368, -0.06704491376876831, -0.09143151342868805, -0.0026005725376307964, 0.046249888837337494, 0.02080792933702469, -0.009755239821970463, -0.011150975711643696, 0.00270438427105546, -0.10170620679855347, -0.024260519072413445, -0.04363084211945534, -0.011990727856755257, -0.04769429564476013, -0.0026586586609482765, 0.05844142660498619, -0.017008518800139427, -0.031946826726198196, 0.007869469933211803, 0.012581171467900276, 0.004569814540445805, 0.01156996376812458, 0.03541316092014313, -0.018833748996257782, -0.021922754123806953, 0.00035409763222560287, 0.06575324386358261, 0.013574079610407352, 0.014612064696848392, -0.03949403762817383, -0.0008052906487137079, 0.009157649241387844, 0.045078568160533905, -0.017506735399365425, 0.01948431134223938, 0.01019973959773779, 0.0801641047000885, -0.04626103863120079, -0.0021189830731600523, -0.05461247265338898, -0.03763236105442047, -0.02468276210129261, -0.05008234456181526, 0.049672774970531464, 0.0432761125266552, -0.008731282316148281, -0.04222070053219795, -0.04317637160420418, 0.006152304820716381, -0.06283307820558548, -0.018931014463305473, -0.023969866335392, 0.008547235280275345, 0.03241921216249466, 0.041666846722364426, -0.03979303687810898, -0.013461612164974213, 0.0006628474220633507, 0.04812340810894966, -0.014830878004431725, -0.08292412012815475, -0.013748872093856335, -0.006238999776542187, -0.0245693139731884, 0.0033899873960763216, 0.026867324486374855, -0.02863355539739132, 0.009544684551656246, -0.01915142498910427, -0.03577716648578644, 0.026929227635264397, -0.004711938090622425, 0.021318692713975906, -0.015247049741446972, -0.027001265436410904, -0.03302783519029617, -0.012030405923724174, -0.022158564999699593, 0.03332207351922989, 0.0331299789249897, 0.04673163220286369, 0.006670243572443724, 0.0009717656066641212, 0.021121995523571968, -0.029655776917934418, 0.0004163560224696994, 0.04727213457226753, -0.03425568342208862, 0.03199406713247299, -0.004675514530390501, -0.037228699773550034, -0.011089270003139973, 0.04446188360452652, -0.03736229985952377, -0.01585431396961212, -0.058514222502708435, 0.04872322827577591, -0.011813569813966751, -0.02637639455497265, -0.027239155024290085, -0.004816861357539892, 0.04873538762331009, -0.03413776680827141, 0.03529667109251022, -0.0209776870906353, 0.006295007653534412, 0.004922184627503157, 0.0304904542863369, -0.02363877184689045, 0.025785958394408226, -0.008440230041742325, -0.009157707914710045, -0.01941966637969017, 0.04704848676919937, 0.028961414471268654, 0.02171993814408779, 0.017769593745470047, -0.011648914776742458, 0.021610062569379807, 0.0020399852655828, 0.036270562559366226, -0.018238795921206474, 0.013966526836156845, -0.012981281615793705, -0.022430123761296272, -0.0029905023984611034, -0.00963849201798439, -0.01612970046699047, -0.054623283445835114, 0.031116876751184464, -0.03213033452630043, -0.05466608330607414, 0.023681307211518288, 0.03423822298645973, 0.02163957990705967, 0.0070787230506539345, -0.0015838303370401263, 0.01577611453831196, -0.015088739804923534, -0.009275785647332668, 0.045916520059108734, -0.04491516202688217, 0.011651130393147469, 0.0010976336197927594, -0.012780961580574512, 0.016211770474910736, 0.02649478241801262, -0.029990967363119125, -0.01869703084230423, -0.007667730562388897, -0.010708107613027096, 0.005343741271644831, -0.015376793220639229, -0.024141449481248856, 0.004153113346546888, -0.0029850525315850973, -0.0021711033768951893, -0.008908431977033615, 0.01024059671908617, 0.007780574727803469, -0.004663226660341024, 0.02364952862262726, -0.04819920286536217, -0.010689922608435154, 0.022512312978506088, -0.022488806396722794, 0.016910938546061516, -0.017781149595975876, 0.05402006208896637, 0.015654943883419037, -0.029195137321949005, -0.020933838561177254, -0.07658074796199799, 0.040983472019433975, -0.01999652199447155, 0.03986741602420807, 0.03621833026409149, -0.03271700441837311, 0.001985898008570075, -0.017486991360783577, -0.021580839529633522, -0.0045229597017169, -0.00826171226799488, -0.0596497543156147, 0.010822340846061707, 0.041862454265356064, -0.019371097907423973, 0.03305419161915779, -0.014861197210848331, -0.02420218661427498, 0.048621103167533875, -0.061005473136901855, -0.0033176869619637728, 0.02460417151451111, -0.06479707360267639, 0.029950959607958794, 0.011378863826394081, 0.018242063000798225, -0.042555246502161026, 0.06435437500476837, 0.07364234328269958, 0.013620338402688503, 0.03951381891965866, -0.005498887039721012, 0.04339698329567909, -0.006055627949535847, -0.033472854644060135, -0.0750158280134201, 0.022067446261644363, 0.01372711081057787, 0.022416340187191963, -0.03432023525238037, -0.0021050958894193172, -0.008962254039943218, 0.023114431649446487, -0.050695352256298065, -0.03101709671318531, 0.027908068150281906, 0.007667523343116045, 0.011860992759466171, -0.0003207879781257361, -0.03409506753087044, 0.04519617557525635, 0.02810412086546421, -0.02359999157488346, -0.048540666699409485, -0.022932687774300575, 0.048621952533721924, 0.0037153097800910473, 0.01369596365839243, -0.016180215403437614, 0.0005991172511130571, 0.04478028789162636, 0.03631926327943802, 0.04675804078578949, 0.06763506680727005, -0.05070551857352257, 0.04167550429701805, 0.002762725343927741, -0.05027221515774727, -0.00125481269787997, -0.02230929583311081, 0.004654361866414547, -0.057973671704530716, 0.012655231170356274, -0.008919138461351395, -0.0333465151488781, -0.04540099948644638, 0.04433497413992882, 0.001469960669055581, 0.006668769754469395, -0.030781561508774757, 0.019616635516285896, -0.03596319630742073, -0.0038027858827263117, -0.028198666870594025, 0.027958877384662628, -0.026129236444830894, 0.07714725285768509, -0.01194432657212019, -0.014629160985350609, 0.06529156118631363, -0.028479591012001038, -0.004908787552267313, -0.015183242037892342, 0.0842428132891655, 0.08545394241809845, 0.05318297818303108, 0.0016473300056532025, 0.06566441059112549, -0.04088872671127319, -0.051451537758111954, 0.013820191845297813, -0.030283121392130852, 0.014028108678758144, 0.024066168814897537, 0.015350207686424255, 0.12010828405618668, 0.016665583476424217, 0.07075414806604385, -0.039983611553907394, 0.0011741745984181762, -0.023711875081062317, 0.0005385142867453396, 0.028739547356963158, 0.015014247968792915, 0.010343009606003761, -0.021366411820054054, 0.011113472282886505, -0.05451530963182449, 0.0352206751704216, -0.010323612950742245, -0.005050471052527428, -0.019651902839541435, -0.002235420746728778, 0.03482460603117943, 0.006554372608661652, 0.04856652393937111, 0.06710553169250488, -0.023810576647520065, -0.0025614455807954073, 0.011676210910081863, 0.00231354683637619, 0.011180548928678036, -0.026260558515787125, -0.014037776738405228, 0.007609235588461161, 0.021553652361035347, 0.005961249582469463, -0.01505191158503294, -0.02170235477387905, -0.01866351068019867, 0.05404447764158249, -0.04046949744224548, 0.011667768470942974, 0.011545916087925434, 0.011885673739016056, -0.007894456386566162, -0.043385740369558334, -0.052869636565446854, 0.006512973457574844, -0.08019950985908508, 0.00818993803113699, 0.025602668523788452, 0.00014888223086018115, -0.010250037536025047, -0.03570455312728882, -0.015829861164093018, 0.019105590879917145, 0.04819081723690033, -0.005347172264009714, -0.031458064913749695, 0.005956041626632214, 0.022742129862308502, 0.03917086124420166, 0.02485714852809906, 0.032585714012384415, -0.04274377226829529, 0.006175197660923004, -0.0497523732483387, -0.04793911427259445, 0.048681993037462234, -0.018182097002863884, 0.004495573695749044, -0.08151835203170776, 0.0020840733777731657, 0.027022622525691986, 0.04049234464764595, -0.0851220041513443, -0.005500130821019411, 0.018139071762561798, -0.027885600924491882, 0.0340295247733593, -0.017309140413999557, -0.017461223527789116, -0.004983093589544296, 0.007615262642502785, 0.011965197511017323, 0.01586282067000866, 0.03407147154211998, -0.013433544896543026, 0.08119653910398483, 0.023714125156402588, -0.014108979143202305, 0.010550850071012974, -0.009359469637274742, -0.017886489629745483, 0.05331670492887497, -0.033412568271160126, -0.0004165352147538215, -0.014621604233980179, -0.036587610840797424, -0.03469603508710861, 0.02574939653277397, -0.022856082767248154, -0.037860121577978134, 0.020281406119465828, 0.06544547528028488, -0.07719909399747849, 0.06359825283288956, -0.03139873594045639, 0.03778935596346855, -0.00417448440566659, -0.04020053520798683, 0.019476886838674545, 0.020687084645032883, 0.011746818199753761, -0.004860141780227423, 0.053364694118499756, -0.040845248848199844, -0.01552552543580532, -0.007089607883244753, -0.00352928857319057, 0.013704434037208557, -0.015219428576529026, 0.04655526950955391 ]
[ -0.08625812828540802, -0.014031521044671535, -0.048463016748428345, -0.01835174672305584, 0.05736013874411583, -0.05700581148266792, 0.02812197431921959, 0.014379852451384068, 0.006959062069654465, 0.008919288404285908, -0.024473892524838448, -0.03485231101512909, -0.013543750159442425, -0.011379512026906013, 0.057873211801052094, 0.02345959097146988, -0.04143572226166725, -0.01216130517423153, -0.005525881890207529, 0.048830803483724594, 0.058736562728881836, -0.006026834715157747, -0.053747184574604034, -0.01488803792744875, -0.032117243856191635, 0.047409601509571075, 0.02242833375930786, -0.06790496408939362, 0.016909237951040268, -0.20328845083713531, -0.005874405149370432, 0.009275339543819427, 0.020170340314507484, -0.004967143293470144, 0.01874700002372265, -0.012118690647184849, 0.04807598516345024, 0.03190646320581436, -0.0068938275799155235, 0.07778596878051758, -0.016526013612747192, 0.0243216622620821, -0.03354966267943382, -0.025028357282280922, 0.032821234315633774, -0.014926202595233917, -0.026280874386429787, 0.014152133837342262, -0.000467843608930707, -0.018939847126603127, -0.06314421445131302, 0.01264894101768732, -0.03578932210803032, -0.0023363360669463873, -0.009044340811669827, 0.0254307109862566, 0.05929962173104286, 0.06610521674156189, -0.010093135759234428, 0.03561795502901077, 0.021998507902026176, -0.019534282386302948, -0.11975125968456268, 0.1262570470571518, 0.024757254868745804, 0.06952017545700073, -0.04411051422357559, -0.040949828922748566, 0.004923739470541477, 0.04081715643405914, 0.025130238384008408, -0.031146662309765816, -0.04109146073460579, 0.06484006345272064, 0.06067146733403206, -0.053358614444732666, -0.02234315127134323, 0.022290745750069618, 0.06307294219732285, -0.01642286404967308, -0.07284979522228241, 0.007450484205037355, 0.015180353075265884, 0.012738220393657684, -0.015005587600171566, 0.02134736068546772, 0.005601098295301199, -0.01427304744720459, 0.006324162241071463, 0.05379127711057663, -0.002548123011365533, -0.04263428971171379, 0.03098723478615284, 0.037801727652549744, -0.06511707603931427, -0.022082649171352386, 0.0162441935390234, -0.0022188681177794933, -0.0008618862484581769, 0.3815908432006836, -0.04703449085354805, -0.06195064261555672, 0.021055517718195915, 0.005357806105166674, 0.012907526455819607, 0.024370307102799416, 0.03091837465763092, -0.06729684770107269, -0.00010707588808145374, -0.02950654923915863, -0.04984612390398979, 0.006625884212553501, -0.030187783762812614, -0.036172207444906235, -0.01594521664083004, 0.014494468457996845, 0.009160392917692661, 0.041113436222076416, -0.027571484446525574, -0.015128249302506447, 0.010502269491553307, 0.01333650853484869, 0.005763120483607054, 0.06617368757724762, 0.018231093883514404, -0.02559797652065754, 0.05110223963856697, 0.03810807690024376, 0.04393012449145317, 0.019766326993703842, 0.04382842779159546, -0.01408506277948618, -0.09830232709646225, -0.027401454746723175, 0.022907376289367676, 0.012457157485187054, 0.016441596671938896, -0.02252236194908619, -0.017185421660542488, 0.02419256418943405, 0.01712622307240963, -0.03652725741267204, -0.00851777009665966, 0.013002843596041203, -0.0628848671913147, 0.11780234426259995, -0.02044318988919258, -0.005030543077737093, -0.04468822479248047, -0.013765637762844563, 0.014189425855875015, 0.06918994337320328, -0.05601136386394501, -0.03192747384309769, -0.011717171408236027, 0.017321240156888962, 0.07351746410131454, 0.000418429437559098, -0.04822133854031563, -0.02869749441742897, -0.030491113662719727, -0.010140977799892426, 0.003853156929835677, 0.0551869161427021, -0.0004715353134088218, -0.08577989786863327, -0.04056795686483383, 0.02557392790913582, -0.019238151609897614, -0.08321841806173325, -0.011744245886802673, -0.021002119407057762, -0.04583313316106796, 0.016525378450751305, 0.05972527340054512, 0.01819033734500408, -0.03337187319993973, 0.0040464699268341064, 0.021151235327124596, 0.03461143746972084, -0.026512108743190765, 0.012389480136334896, -0.08059040457010269, -0.0175973791629076, -0.009505719877779484, -0.03945055976510048, -0.05207160860300064, 0.009705232456326485, 0.004414179362356663, 0.018924115225672722, 0.0009216961916536093, 0.009822032414376736, -0.06568227708339691, 0.07752392441034317, -0.02443521097302437, -0.015637649223208427, 0.027239706367254257, 0.002858841558918357, 0.025082772597670555, -0.03715056926012039, 0.056068483740091324, 0.05957704037427902, 0.00033352553145959973, 0.033286869525909424, -0.04570939764380455, 0.0025319878477603197, 0.031745169311761856, -0.02500542439520359, 0.02739979512989521, 0.007319862022995949, -0.03910389915108681, -0.019944781437516212, -0.03949621319770813, 0.01939317211508751, -0.027438368648290634, -0.012806246057152748, 0.018751593306660652, 0.03231398016214371, 0.025159422308206558, 0.01579401269555092, -0.043058618903160095, -0.017356568947434425, 0.00965604092925787, -0.33399319648742676, -0.019497932866215706, -0.04453526437282562, -0.026427799835801125, -0.05482235923409462, -0.05948273092508316, 0.021374644711613655, 0.010820325464010239, -0.04592182859778404, -0.00005064219294581562, 0.07874730229377747, -0.014506061561405659, -0.02895374596118927, -0.05551464110612869, -0.006146468222141266, 0.037105824798345566, -0.0007753468817099929, -0.08379556983709335, -0.05525732412934303, 0.015807148069143295, 0.021600477397441864, 0.02356775477528572, -0.05980620160698891, -0.015506479889154434, 0.022671256214380264, -0.03390643745660782, 0.09633743017911911, -0.027251336723566055, 0.11002329736948013, -0.0002934279618784785, 0.0604809932410717, -0.01240795198827982, -0.0030629790853708982, -0.08516626805067062, -0.025943070650100708, -0.03626422584056854, -0.03291088342666626, 0.016062885522842407, 0.04203752800822258, -0.018313484266400337, -0.043286584317684174, 0.04123174399137497, -0.016893919557332993, -0.044483840465545654, 0.01013916451483965, -0.013658656738698483, -0.01220050361007452, -0.05682044476270676, 0.003683149116113782, 0.08500109612941742, -0.02132471837103367, 0.015645768493413925, 0.002186165191233158, 0.07251802831888199, -0.027236822992563248, -0.02790180593729019, -0.0561714805662632, -0.022873759269714355, -0.019431790336966515, 0.007948800921440125, 0.0636722519993782, 0.034580036997795105, 0.027177665382623672, -0.03870264068245888, -0.0017137983813881874, -0.020703166723251343, -0.036961041390895844, -0.0012686382979154587, 0.05106285214424133, -0.08723104745149612, -0.04388295114040375, 0.10277797281742096, -0.01234399899840355, 0.011675428599119186, 0.03236682713031769, 0.037379857152700424, -0.0023219031281769276, 0.00013727111218031496, 0.015624398365616798, -0.029230689629912376, -0.003934420645236969, 0.035096511244773865, 0.054292503744363785, -0.02016754075884819, 0.0039486950263381, 0.04881696030497551, 0.008377096615731716, -0.006522679701447487, 0.037141334265470505, -0.0362745076417923, -0.02872603014111519, -0.014557530172169209, -0.006650610826909542, -0.06878583133220673, 0.042568501085042953, 0.004127995576709509, -0.2861900329589844, 0.011795041151344776, 0.08186383545398712, 0.06019382178783417, -0.018050746992230415, 0.05630847066640854, 0.03613613173365593, -0.08557667583227158, 0.003233414376154542, -0.00597301684319973, 0.01960783451795578, 0.026311878114938736, 0.0009421193390153348, 0.01122376136481762, 0.0014685312053188682, 0.01793656311929226, 0.05287700891494751, 0.027640240266919136, 0.025560958310961723, 0.0030804944690316916, 0.009171780198812485, 0.014560006558895111, 0.19032633304595947, 0.0032405597157776356, 0.06443376839160919, -0.014919385313987732, 0.01137547567486763, 0.009347496554255486, 0.11078143119812012, 0.032917771488428116, 0.040326859802007675, -0.013361806981265545, 0.09976893663406372, 0.017329441383481026, 0.03466275334358215, -0.09936521202325821, 0.04467438906431198, 0.049353014677762985, 0.026197779923677444, -0.024275945499539375, -0.022018825635313988, 0.010277722962200642, -0.08478453755378723, -0.030177278444170952, 0.06481058150529861, 0.025313396006822586, -0.005320808384567499, -0.014543921686708927, -0.01336152944713831, 0.018605221062898636, -0.03820556402206421, -0.0063671451061964035, 0.007126934360712767, -0.013170108199119568, 0.008932477794587612, 0.02697199210524559, 0.010446480475366116, 0.010687231086194515, -0.03903812915086746, 0.014642353169620037, 0.009896702133119106, 0.0039684223011136055, 0.02695312909781933, 0.06279952824115753, 0.02703171595931053 ]
[ 0.0012567826779559255, 0.01843152567744255, 0.04047476500272751, 0.03805260360240936, 0.016874711960554123, 0.017783911898732185, 0.006485514808446169, 0.028926681727170944, -0.0394691526889801, 0.020445290952920914, -0.02570836804807186, -0.016940871253609657, 0.0365055650472641, 0.002283473964780569, 0.013409205712378025, 0.008989961817860603, 0.019828228279948235, -0.021144594997167587, 0.0186564102768898, 0.09697367250919342, -0.018654601648449898, 0.06698822230100632, -0.007931387983262539, -0.011420954950153828, -0.028584470972418785, -0.047951072454452515, -0.03162191063165665, -0.005913441069424152, 0.03168197348713875, -0.11422599107027054, -0.01076529361307621, -0.006341480650007725, -0.029156984761357307, 0.0405670702457428, -0.04541504383087158, -0.04467049613595009, 0.02231079712510109, -0.048244837671518326, -0.00885908305644989, 0.031146399676799774, -0.048201266676187515, -0.04667354375123978, -0.012165038846433163, 0.01723730005323887, 0.02766873873770237, -0.014186945743858814, -0.02094521000981331, -0.030487313866615295, 0.016080157831311226, 0.03896826133131981, -0.05095156654715538, -0.007585939019918442, 0.02532905898988247, -0.01270521804690361, 0.03315054625272751, -0.013612323440611362, 0.02087891660630703, 0.0595129020512104, -0.02709205634891987, -0.012570885941386223, 0.005835639778524637, -0.023668451234698296, -0.02419753558933735, -0.02551698498427868, 0.004136838484555483, 0.010895151644945145, -0.060278598219156265, -0.03770202398300171, 0.004299496300518513, -0.0113327382132411, -0.039017029106616974, 0.028382346034049988, 0.017290446907281876, -0.0190139077603817, 0.002013610443100333, -0.026674509048461914, -0.022560788318514824, 0.0007828417583368719, 0.01387777365744114, -0.004523828625679016, -0.01614220254123211, 0.017999783158302307, -0.026964504271745682, 0.006855084095150232, -0.019616540521383286, -0.0014077828964218497, 0.018315929919481277, -0.006456949282437563, -0.01740003563463688, 0.04640994966030121, -0.029206261038780212, -0.038270339369773865, 0.025542180985212326, -0.0046857986599206924, -0.10376829653978348, 0.021057521924376488, 0.014792583882808685, -0.03564979135990143, 0.0011434179032221437, 0.7895233631134033, -0.06428536027669907, 0.03114551492035389, 0.020348496735095978, 0.0074006603099405766, -0.017085393890738487, -0.023839633911848068, -0.02173064835369587, -0.02592404931783676, -0.046671636402606964, -0.03883611038327217, 0.023977156728506088, -0.0021571184042841196, 0.011034442111849785, 0.0035633796360343695, 0.0024740914814174175, 0.037170544266700745, 0.028406206518411636, -0.06284632533788681, 0.010991442948579788, -0.008372057229280472, 0.011058892123401165, -0.006484637036919594, 0.03235930576920509, 0.054781630635261536, -0.03256780654191971, -0.18444876372814178, 0.05706540122628212, -8.132316772802258e-33, 0.023102156817913055, -0.02978806383907795, 0.0004981723031960428, 0.039834585040807724, 0.03596333786845207, 0.009019149467349052, 0.015282819978892803, 0.04368189722299576, -0.017944948747754097, -0.04537121206521988, 0.01650930941104889, 0.005285914987325668, -0.013976708985865116, -0.024092184379696846, 0.0337483249604702, -0.008541317656636238, -0.005057081580162048, 0.020129093900322914, -0.015653615817427635, 0.04477322846651077, 0.06355232745409012, 0.0441550575196743, 0.03757033497095108, -0.00389524782076478, -0.016353167593479156, 0.06734561920166016, -0.015661481767892838, -0.03485703095793724, -0.003298893803730607, -0.04635000228881836, -0.01649206317961216, -0.028930626809597015, -0.014601684175431728, -0.06099070981144905, -0.00911345612257719, -0.059950828552246094, -0.018099669367074966, -0.015856945887207985, -0.034645114094018936, -0.0412505604326725, -0.019482247531414032, 0.021800067275762558, -0.00937537383288145, -0.02666446939110756, 0.005385231226682663, 0.028210803866386414, 0.02508251741528511, 0.06382077932357788, 0.006472884677350521, 0.018252667039632797, 0.028590351343154907, 0.030002115294337273, -0.02793671190738678, -0.005571013316512108, 0.019878987222909927, -0.007490796968340874, -0.006435293238610029, 0.016847537830471992, -0.005377825349569321, 0.02119619771838188, 0.00567615544423461, -0.033956099301576614, 0.014728293754160404, 0.023485105484724045, -0.0503888763487339, 0.00034682496334426105, 0.012835207395255566, 0.031001415103673935, 0.060643382370471954, 0.022945575416088104, -0.03937387093901634, 0.02519132010638714, -0.022275760769844055, -0.0172895397990942, 0.033790864050388336, 0.015108360908925533, -0.023020995780825615, -0.03549518063664436, 0.0096129160374403, -0.007006747182458639, -0.001669173827394843, 0.016980133950710297, -0.0015196261228993535, -0.003368614474311471, -0.039846088737249374, -0.025723300874233246, 0.027525532990694046, 0.004442860372364521, -0.008212577551603317, 0.016658945009112358, 0.028452470898628235, 0.04144694283604622, -0.013737610541284084, -0.049555402249097824, 0.0008107933099381626, 7.041367649110955e-33, 0.030491741374135017, -0.05562328174710274, -0.0373845212161541, -0.032319389283657074, 0.027753064408898354, -0.008267518132925034, 0.02395608462393284, 0.015732839703559875, -0.018194250762462616, 0.04044496640563011, 0.003034480381757021, -0.005565543659031391, 0.011152002960443497, 0.008189138025045395, 0.030649226158857346, -0.029674379155039787, -0.028526876121759415, -0.05513068661093712, 0.02821597456932068, 0.017424751073122025, 0.0077028414234519005, -0.00645323796197772, 0.057663559913635254, 0.02370125614106655, 0.0006796757807023823, 0.04569614306092262, -0.04425038769841194, -0.00023217280977405608, -0.028266603127121925, 0.020980508998036385, -0.010210426524281502, 0.0032775236759334803, 0.03313366323709488, -0.011759658344089985, 0.00103435677010566, 0.035364821553230286, 0.010030917823314667, 0.012320750392973423, -0.007481001317501068, -0.00895798858255148, 0.04909192770719528, -0.025899017229676247, -0.031778473407030106, -0.01491768378764391, -0.028836408630013466, -0.01631774567067623, -0.06275071203708649, 0.00021452612418215722, 0.00966314785182476, 0.02784084901213646, 0.03097142092883587, 0.0013587635476142168, 0.008942646905779839, -0.02463831566274166, -0.0042335656471550465, -0.004361392930150032, -0.005766506772488356, -0.028690436854958534, -0.0031749659683555365, 0.07167740911245346, 0.026351571083068848, 0.02568354643881321, -0.04251950606703758, 0.07582276314496994, -0.021779851987957954, -0.036604106426239014, -0.03501616418361664, -0.04472387209534645, -0.04453406482934952, 0.011113369837403297, 0.023867465555667877, -0.0054110088385641575, 0.011814054101705551, 0.004226453136652708, 0.03720482811331749, -0.005693688057363033, 0.025640811771154404, 0.010616232641041279, -0.008668117225170135, 0.007704777177423239, -0.004759643692523241, -0.0274501983076334, 0.07463308423757553, 0.019233740866184235, -0.022115668281912804, -0.003913563676178455, -0.037460215389728546, -0.008330652490258217, -0.0014520295662805438, 0.03669589385390282, -0.06119333952665329, 0.0017893766053020954, -0.030955839902162552, -0.016915127635002136, -0.0035435918252915144, -1.2920616576650445e-8, -0.08705908805131912, -0.010296575725078583, -0.021533362567424774, 0.02663978934288025, 0.01548517495393753, 0.0036751870065927505, -0.06211124733090401, 0.009044848382472992, -0.013864049687981606, -0.0025142384693026543, 0.02330615743994713, 0.010407534427940845, -0.0011994426604360342, 0.006796691566705704, 0.08116195350885391, -0.05286862328648567, 0.03534156084060669, -0.04313337802886963, 0.0032673487439751625, 0.010246696881949902, -0.031036313623189926, 0.007547933608293533, -0.03775416314601898, -0.019770260900259018, 0.015717437490820885, 0.014862237498164177, 0.006680764723569155, -0.03624989092350006, 0.021972360089421272, 0.012138677760958672, 0.029660314321517944, -0.016958484426140785, -0.02788858860731125, 0.008770415559411049, -0.016322040930390358, 0.02948181889951229, 0.027851732447743416, 0.04657907783985138, 0.0008392776944674551, -0.0060813636519014835, 0.0010224469006061554, -0.0006982949562370777, -0.016249187290668488, -0.037607867270708084, 0.00004359898957773112, 0.018268031999468803, 0.01990622654557228, 0.0026266747154295444, 0.0652141124010086, 0.011696351692080498, -0.04280731454491615, -0.01886098086833954, 0.018094884231686592, 0.02210678905248642, -0.02648969367146492, 0.017675252631306648, 0.014213225804269314, 0.012898920103907585, -0.018504630774259567, -0.01741579733788967, 0.03490188345313072, -0.015178030356764793, 0.020280610769987106, 0.008334998041391373 ]
f-explicit-interface-implementation
https://markhneedham.com/blog/2009/06/07/f-explicit-interface-implementation
false
2009-06-09 23:29:15
F#: Useful for scripting
[ "f", "scripting" ]
[ "fsharp" ]
We had the need to do a bit of scripting recently to change the names of the folders where we store our artifacts to signify which artifacts were created from our build's production branch and which were generated from the main branch. The problem we had was that we were ending up overwriting old artifacts from the main branch with the production branch's artifacts so we wanted to fix this. We had already manually changed some of the folder names to work with the changes that had already been made to our deployment script to read from the proposed new folder names. We therefore had a folder structure that looked like this: * Artifacts ** 12 ** 20 ** 45 ** 1000 ** 1001 ** Trunk-1050 ** Prod-23 All the folders with numbers over 1000 were from the trunk build since our production build is only up to around 50. The trouble in the renaming was around the lower numbers where some could be production or trunk. I think this could have been calculated by checking the creation date of the folders but I decided it was quicker at the time to just scan through them and manually note which were of each type. At the time we didn't have F# installed so I wrote the script in Ruby but I decided to rewrite it later on in an F# script file and then use F# interactive to execute the script. This is the script I've ended up with: (rename.fsx) [source,ocaml] ---- open System open System.IO open System.Text.RegularExpressions let get_position_of_last_folder (dir:string) = dir.LastIndexOf('\\') + 1 let get_last_folder_name (dir:string) = dir.Substring(get_position_of_last_folder dir) let get_rest_of_dir_name (dir:string) = dir.Substring(0, (get_position_of_last_folder dir)-1) let create_new_dir_name dir = let prodVersions = seq { yield! [47..48]; yield! [37..45]; yield! [28..34]; } let folderName = get_last_folder_name dir let isProdDir = prodVersions |> Seq.exists (fun item -> item = Int32.Parse(folderName)) let build_dir_name branch = (get_rest_of_dir_name dir) + "\\" + branch + "-" + folderName if (isProdDir) then build_dir_name "Prod" else build_dir_name "Trunk" let rename_directories = Array.filter (fun dir -> Regex.IsMatch(get_last_folder_name dir , "^[0-9]") ) >> Array.iter (fun dir -> Directory.Move(dir, create_new_dir_name dir)) rename_directories <| Directory.GetDirectories("C:\\artifacts") ---- I don't really like the 'get_position_of_last_folder' function but it helped to remove the duplication in the following two functions. Maybe there's a better way to remove this duplication that I'm not aware of. We can then execute this by using the following command (note I have added 'C:\Program Files\FSharp-1.9.6.2\bin' to the path): [source,text] ---- fsi --exec --nologo rename.fsx ---- I wrote this script file in Visual Studio so that I could get all the Intellisense help that I need but it's not part of any project - it stands alone! I learnt about the possibility to do scripting in F# from a blog post by Chris Smith http://blogs.msdn.com/chrsmith/archive/2008/09/12/scripting-in-f.aspx[where he talks about some of the ways that he's been able to use F# for scripting in his work]. I thought running an F# script would be significantly slower than running an equivalent Ruby one since the F# code needs to be compiled first but I didn't notice that the F# script ran any slower than the Ruby one just from observation.
null
null
[ 0.0211494080722332, 0.010942446067929268, -0.03892357274889946, 0.04154011979699135, 0.09900544583797455, 0.009614460170269012, 0.0051461211405694485, 0.024860626086592674, -0.010096520185470581, -0.035136815160512924, -0.03570510819554329, -0.01271920558065176, -0.0790252834558487, 0.031689442694187164, -0.04236321896314621, 0.06520552188158035, 0.06423688679933548, 0.0033581589814275503, 0.03391187638044357, 0.016178056597709656, 0.02819208614528179, 0.06463392823934555, -0.006450084503740072, 0.035735536366701126, 0.009026175364851952, 0.01800691895186901, 0.00720245623961091, -0.013575333170592785, -0.0857357531785965, -0.008796069771051407, -0.001405987422913313, -0.030690046027302742, 0.015397299081087112, -0.009289121255278587, -0.0017790591809898615, -0.0033736524637788534, -0.024791618809103966, -0.014514083974063396, -0.017044672742486, 0.007194500416517258, -0.04700925573706627, 0.014462145045399666, 0.012793058529496193, -0.017522260546684265, -0.051547639071941376, 0.019402144476771355, -0.05277254804968834, 0.008027333766222, 0.0031046499498188496, -0.014797428622841835, -0.0521407313644886, -0.0018636336317285895, -0.02878742292523384, -0.061850655823946, -0.0014028481673449278, 0.037418562918901443, 0.02034940756857395, -0.08141035586595535, 0.023412147536873817, -0.03661371394991875, -0.007613309659063816, -0.01134781539440155, 0.005051585379987955, 0.05656079947948456, 0.040029946714639664, -0.03913566842675209, 0.015494887717068195, 0.046027667820453644, -0.033373020589351654, -0.026690896600484848, -0.003530837595462799, 0.0011231881799176335, -0.016518021002411842, -0.03082621470093727, 0.02058093063533306, -0.029669910669326782, -0.0012612438295036554, 0.06851659715175629, 0.014897127635776997, 0.05445791035890579, -0.04209383949637413, 0.022721296176314354, 0.027303026989102364, 0.018726816400885582, 0.004619047045707703, -0.02752712182700634, -0.05036834627389908, -0.006179073825478554, -0.020500460639595985, 0.04987459257245064, 0.014220301061868668, -0.06697342544794083, 0.02839154563844204, 0.03436938300728798, -0.011324841529130936, -0.016242194920778275, -0.026232469826936722, 0.040697578340768814, 0.008121565915644169, 0.025259239599108696, -0.03529917448759079, 0.009579909965395927, -0.00989408977329731, 0.017267214134335518, -0.05195316672325134, 0.0006592546706087887, -0.02990223839879036, -0.014479425735771656, -0.011361860670149326, -0.0260469987988472, -0.018753109499812126, 0.02226579561829567, -0.02649426832795143, 0.03346088156104088, -0.06806612759828568, 0.0568901002407074, 0.026576390489935875, -0.055324986577034, -0.018326597288250923, 0.024419113993644714, 0.04662105068564415, 0.06437620520591736, 0.0005384715623222291, 0.08288342505693436, -0.013295067474246025, 0.025834448635578156, 0.010090536437928677, 0.06307962536811829, -0.02567460760474205, -0.06328540295362473, -0.011527914553880692, 0.07683537900447845, -0.014305954799056053, 0.008244317956268787, -0.024094682186841965, -0.018339861184358597, -0.03142325580120087, -0.014526961371302605, 0.06545024365186691, 0.02538057044148445, -0.018635468557476997, -0.025461863726377487, -0.0025217358488589525, -0.029680518433451653, 0.023029062896966934, 0.020237747579813004, -0.012643068097531796, -0.03965539112687111, -0.04655955731868744, 0.018573304638266563, -0.0030323246028274298, 0.018804427236318588, 0.03664548322558403, -0.046676117926836014, 0.026712920516729355, 0.12142053246498108, 0.026319891214370728, 0.003509028349071741, -0.037458635866642, -0.0017646235646679997, 0.02786758914589882, 0.05607640743255615, 0.014082074165344238, 0.049700651317834854, -0.0023514656350016594, -0.010096576996147633, 0.009792721830308437, 0.011355038732290268, 0.015362504869699478, -0.0026645329780876637, -0.07213931530714035, -0.0316288135945797, 0.07054180651903152, -0.022893957793712616, -0.0004870745469816029, 0.03686469420790672, 0.07032052427530289, 0.017718875780701637, 0.006094734650105238, 0.00853578932583332, -0.08194486051797867, 0.03297221660614014, -0.023844445124268532, 0.002385664964094758, 0.02226407639682293, -0.008902720175683498, 0.08928240090608597, 0.022191133350133896, 0.029991572722792625, 0.03443996608257294, -0.07467129081487656, -0.09142569452524185, 0.003114586928859353, -0.007922627963125706, 0.052588969469070435, -0.01113020721822977, -0.018427690491080284, 0.06644172966480255, 0.007243212778121233, 0.0494292788207531, 0.008359675295650959, -0.0023672410752624273, 0.02081046625971794, -0.08895692974328995, -0.032541222870349884, 0.04437224566936493, 0.026169389486312866, -0.007022583391517401, -0.010762221179902554, 0.032440803945064545, 0.00882265716791153, 0.015662668272852898, 0.04792321100831032, 0.0019730625208467245, 0.06283201277256012, 0.03482891246676445, 0.014285298995673656, -0.043872762471437454, 0.04033149406313896, -0.060208141803741455, 0.004919789731502533, 0.012017075903713703, -0.026189401745796204, -0.014116314239799976, -0.009354149922728539, 0.11894648522138596, 0.04178363084793091, -0.06358432024717331, -0.052961066365242004, 0.004340269602835178, -0.0035010087303817272, -0.042925309389829636, -0.017125993967056274, 0.0017825302202254534, 0.00039843207923695445, 0.017144648358225822, -0.04971320554614067, -0.014770174399018288, -0.013436561450362206, -0.038240883499383926, 0.003939722664654255, 0.05444660037755966, -0.023174423724412918, 0.038094814866781235, 0.02690073288977146, -0.02895037643611431, 0.017139362171292305, -0.035228386521339417, -0.07062878459692001, 0.0170733705163002, 0.03634556382894516, -0.01006997562944889, 0.03503615781664848, -0.02413235232234001, -0.010722976177930832, -0.0008011615136638284, -0.04061945155262947, 0.01654287613928318, 0.011915106326341629, 0.0634392499923706, -0.02574884705245495, 0.05338084697723389, -0.013254424557089806, 0.018741648644208908, -0.003646662924438715, -0.030466245487332344, -0.02378036454319954, 0.0012351985787972808, 0.00693369098007679, 0.0003749700263142586, 0.004336202051490545, 0.00035652468795888126, 0.015016814693808556, 0.029415741562843323, 0.02040281891822815, -0.0034200570080429316, 0.013408824801445007, -0.0017814862076193094, -0.020446769893169403, -0.04593178629875183, -0.0076279123313724995, 0.03253171965479851, -0.03353389725089073, -0.002051514806225896, 0.0024250131100416183, -0.06775800883769989, 0.03332627937197685, -0.05020156502723694, -0.04392588138580322, -0.025214217603206635, -0.007296623196452856, 0.017312796786427498, -0.010706795379519463, 0.02554665505886078, 0.04308083653450012, 0.031151307746767998, 0.01938111148774624, 0.020749833434820175, 0.016683237627148628, 0.026753826066851616, 0.01383339986205101, 0.006673032883554697, 0.022223515436053276, -0.007327992469072342, -0.016898270696401596, -0.02848619595170021, 0.0004378358134999871, -0.044253069907426834, -0.2779623866081238, 0.03763404116034508, -0.0069038840010762215, -0.048710450530052185, 0.04858779534697533, -0.006455212831497192, 0.0006517709116451442, -0.06836869567632675, -0.005268095061182976, 0.018551340326666832, -0.040563590824604034, -0.05864540487527847, 0.020888380706310272, 0.05317866802215576, -0.006049696821719408, 0.020451828837394714, 0.026912471279501915, -0.031080590561032295, 0.024572838097810745, 0.013712271116673946, -0.014598026871681213, -0.058514151722192764, 0.023847201839089394, 0.03617365285754204, 0.023294100537896156, 0.07862133532762527, -0.0632501095533371, 0.07070449739694595, -0.02970723807811737, -0.02438231371343136, 0.015958309173583984, -0.015125601552426815, 0.0055456277914345264, 0.016794385388493538, -0.027248837053775787, -0.03743181377649307, 0.01619279943406582, 0.013812066987156868, 0.041087593883275986, -0.03059834986925125, -0.043090853840112686, -0.03471691906452179, -0.008882028050720692, 0.01409752294421196, 0.08068399131298065, -0.007653594482690096, -0.08574490994215012, -0.018791431561112404, -0.04440532624721527, 0.08824392408132553, -0.016522500663995743, -0.04150189459323883, 0.008694026619195938, 0.01891172304749489, 0.0015452246880158782, -0.04619794338941574, 0.014494532719254494, 0.017487861216068268, -0.056666914373636246, -0.017611123621463776, 0.0008003409020602703, -0.04042685031890869, -0.001046260236762464, -0.0382499173283577, 0.01081667561084032, -0.0556030198931694, -0.0683830976486206, -0.0017494986532256007, 0.054633911699056625, 0.013310868293046951, -0.018006032332777977, -0.008329714648425579, -0.025862665846943855, -0.11032255738973618, 0.005571601912379265, -0.03938231244683266, -0.05602465197443962, -0.01924910955131054, -0.02513165771961212, 0.049021217972040176, -0.02739749476313591, -0.033837202936410904, 0.03163255751132965, 0.009617645293474197, -0.0009441715083085, 0.02204745076596737, 0.014307191595435143, 0.021132979542016983, -0.023865608498454094, 0.0051096361130476, 0.053392376750707626, -0.02625957876443863, -0.018018752336502075, -0.013360900804400444, 0.012348504737019539, 0.021650368347764015, 0.035766296088695526, 0.0032640881836414337, 0.0555729866027832, 0.061909742653369904, 0.04230067506432533, -0.06261645257472992, 0.014817136339843273, -0.04428686201572418, -0.03623584657907486, -0.0024893234949558973, -0.03965573012828827, 0.029495665803551674, 0.037919580936431885, 0.02379191666841507, 0.003531709313392639, -0.01331664901226759, 0.03592162951827049, -0.057420894503593445, -0.016049884259700775, 0.0016445601359009743, 0.030470849946141243, 0.021729029715061188, 0.025357741862535477, -0.003083462594076991, -0.06121345981955528, -0.006593949161469936, 0.020212722942233086, 0.0020833343733102083, -0.05270800366997719, -0.02410300262272358, -0.0058671580627560616, 0.016050929203629494, 0.020305730402469635, -0.0009768378222361207, 0.014779647812247276, 0.006975659169256687, 0.0087432274594903, -0.03461889922618866, 0.04231274500489235, 0.01794092170894146, -0.04316046088933945, -0.042922258377075195, -0.005839078687131405, 0.014074783772230148, -0.0263590719550848, -0.01708727888762951, 0.010722390376031399, 0.022901909425854683, 0.048406053334474564, -0.01918935589492321, 0.02302488312125206, -0.024464469403028488, 0.014323432929813862, -0.036777153611183167, 0.012508478946983814, -0.06351076066493988, 0.03028465248644352, -0.056008484214544296, -0.010066123679280281, -0.01709548756480217, 0.00813364889472723, -0.045219503343105316, -0.06286992132663727, -0.03993083909153938, 0.04288683459162712, -0.05309513583779335, -0.0006222332012839615, 0.008043658919632435, -0.037213899195194244, 0.04996294528245926, 0.029549185186624527, 0.028893398120999336, -0.010082893073558807, 0.012865623459219933, -0.002152672503143549, 0.02163560874760151, -0.04373873770236969, -0.003990623168647289, -0.0015547621296718717, 0.002788753714412451, 0.019521450623869896, 0.007146618794649839, 0.057866670191287994, 0.036913178861141205, -0.02045498415827751, 0.00413493299856782, 0.0034278070088475943, 0.006529997568577528, 0.036239881068468094, -0.0046272361651062965, -0.038342881947755814, 0.0022318570408970118, -0.06059480085968971, -0.03472544252872467, -0.023456305265426636, 0.0030126026831567287, -0.028978198766708374, 0.0425582155585289, -0.010635585524141788, -0.08531409502029419, 0.033898916095495224, 0.028071539476513863, 0.024176225066184998, -0.004001169931143522, 0.02292008325457573, -0.011132690124213696, -0.012807943858206272, 0.007913200184702873, 0.079119011759758, -0.050526708364486694, -0.014404323883354664, -0.006284698843955994, 0.018324265256524086, 0.0248529352247715, 0.027084561064839363, -0.04773951694369316, -0.02960623800754547, 0.00414554588496685, 0.029482752084732056, -0.046346936374902725, -0.03263448178768158, -0.030763788148760796, -0.0030009427573531866, -0.035969048738479614, -0.007877064868807793, -0.017490802332758904, 0.022631919011473656, 0.00990104116499424, -0.027204269543290138, -0.019074300304055214, -0.031574659049510956, -0.007144180592149496, 0.024392006918787956, 0.007106091361492872, 0.02504134550690651, -0.024902764707803726, 0.059907216578722, 0.00985239539295435, 0.018299704417586327, -0.009281224571168423, -0.03598978742957115, -0.0064056748524308205, -0.029341915622353554, 0.010692588984966278, -0.0037833312526345253, 0.025464706122875214, -0.017316773533821106, 0.005204608663916588, -0.03764569014310837, -0.020987579599022865, -0.04698725417256355, -0.035968538373708725, 0.017916064709424973, 0.04857044294476509, 0.0007092024898156524, 0.028120670467615128, -0.004666856490075588, -0.019669117406010628, 0.05763716623187065, -0.0911206603050232, -0.023690640926361084, -0.031088190153241158, -0.04995454102754593, 0.05215789005160332, 0.021442750468850136, -0.006962948944419622, -0.04570156708359718, 0.046284738928079605, 0.04844992607831955, 0.014478054828941822, 0.004144700709730387, -0.012569447979331017, 0.009587476029992104, -0.049599789083004, -0.018272707238793373, -0.07257679849863052, 0.03235682472586632, 0.024022143334150314, -0.010163180530071259, -0.021503234282135963, 0.008002047426998615, -0.030551671981811523, 0.016073230654001236, -0.05430568382143974, -0.03177952021360397, 0.04363403096795082, -0.009357311762869358, 0.008481254801154137, 0.003931176383048296, -0.06503460556268692, 0.03768084943294525, 0.024771297350525856, -0.017877865582704544, 0.0029392829164862633, -0.015740714967250824, 0.06149192526936531, -0.011778660118579865, 0.0342910960316658, -0.009972445666790009, -0.007565807085484266, 0.07227478176355362, 0.026545243337750435, 0.02134404145181179, 0.04778718948364258, -0.013850673101842403, 0.03870229050517082, 0.024586493149399757, -0.007966714911162853, -0.011662793345749378, 0.02481004409492016, -0.004948485642671585, -0.0209190770983696, 0.004496500361710787, -0.005886087194085121, -0.0015404855366796255, -0.029923215508461, 0.05909591168165207, 0.0036598569713532925, -0.030699025839567184, -0.06673312187194824, 0.01851150207221508, -0.061736539006233215, -0.022214826196432114, -0.023045627400279045, -0.007785309571772814, -0.05011439695954323, 0.05768459662795067, -0.0022511559072881937, 0.012599014677107334, 0.0762365460395813, 0.00948518980294466, 0.001125482958741486, -0.0022259256802499294, 0.04412861540913582, 0.08221971988677979, 0.046132635325193405, 0.012904978357255459, 0.07313825935125351, -0.028749750927090645, -0.044082432985305786, 0.005670546088367701, -0.034429553896188736, 0.04310029745101929, -0.01084873080253601, 0.012958290986716747, 0.08319318294525146, -0.011767757125198841, 0.07999636977910995, -0.006631623953580856, 0.0169106163084507, 0.009653917513787746, -0.021574731916189194, 0.01738741807639599, 0.06777679920196533, 0.02480492927134037, 0.014055540785193443, -0.004071911796927452, -0.021101417019963264, 0.01759492978453636, -0.02497325837612152, -0.013873081654310226, 0.05061882734298706, -0.01248865108937025, 0.02992941439151764, 0.009998563677072525, 0.020458195358514786, 0.07029591500759125, -0.016474615782499313, -0.025017499923706055, -0.01687432825565338, 0.037598177790641785, 0.0064193373546004295, -0.013877992518246174, -0.03911178559064865, 0.0005244821077212691, 0.015119175426661968, -0.051996827125549316, -0.05005752295255661, -0.009446236304938793, -0.010243086144328117, 0.051156677305698395, -0.00849590077996254, 0.0423957034945488, 0.05181979760527611, -0.003152047749608755, 0.0038569821044802666, -0.018356943503022194, -0.06946694105863571, -0.05105742812156677, -0.04149780422449112, 0.031296245753765106, 0.009150873869657516, 0.02809666469693184, -0.02281799353659153, 0.0018962050089612603, -0.01670566014945507, -0.013833186589181423, 0.055728472769260406, -0.04664487764239311, -0.04080091044306755, 0.008017698302865028, 0.007511186879128218, 0.023523403331637383, 0.028540130704641342, 0.04188687726855278, -0.009330720640718937, -0.01333203911781311, -0.007067075464874506, 0.010784788988530636, 0.044598665088415146, -0.018850378692150116, 0.00540916109457612, -0.07560207694768906, 0.040492717176675797, 0.02301926724612713, 0.018764866515994072, -0.06032001972198486, 0.010805122554302216, 0.0149441072717309, -0.051949094980955124, 0.05428219586610794, -0.023396726697683334, 0.001965514849871397, -0.026846710592508316, 0.00010711734648793936, -0.0007994789048098028, 0.0028018243610858917, 0.04224603250622749, -0.020772594958543777, 0.0953117311000824, 0.02163505367934704, -0.021253738552331924, -0.055997900664806366, -0.018092995509505272, -0.02451278641819954, -0.008820469491183758, -0.02003692463040352, -0.00815384928137064, -0.02857096865773201, -0.07795605063438416, -0.029535558074712753, -0.010022931732237339, -0.021105419844388962, -0.048079848289489746, -0.00410373555496335, 0.0008355170139111578, -0.04741761088371277, 0.015208364464342594, -0.026333054527640343, 0.03512009233236313, -0.025985434651374817, -0.03555790334939957, 0.005607543047517538, 0.02306284010410309, 0.01720604859292507, 0.008824137970805168, 0.03696395829319954, -0.03265119343996048, -0.015192162245512009, -0.009433924220502377, 0.029584670439362526, 0.04008616879582405, 0.01329078059643507, -0.0027655235026031733 ]
[ -0.06806595623493195, 0.0002823366958182305, 0.0009963035117834806, -0.011412534862756729, 0.05161052569746971, -0.06408219784498215, -0.03051796741783619, -0.004167845938354731, -0.004340639337897301, -0.024704189971089363, 0.028361881151795387, -0.02071625180542469, -0.005652438849210739, -0.04537196829915047, 0.07516007870435715, 0.025684144347906113, -0.013814383186399937, -0.02313685603439808, 0.0008352540899068117, 0.006119547411799431, 0.009157870896160603, -0.0192573145031929, -0.003811906324699521, -0.02921627275645733, -0.028220780193805695, 0.05832938104867935, 0.015941042453050613, -0.0065472922287881374, -0.030578484758734703, -0.2064572125673294, 0.021609745919704437, 0.003331906860694289, 0.0425652451813221, -0.022616056725382805, 0.04809540882706642, 0.03908415511250496, 0.0016226080479100347, 0.034148529171943665, -0.008161386474967003, 0.05204460769891739, 0.04650347679853439, 0.019952798262238503, -0.06059345602989197, -0.03982935845851898, -0.003325509838759899, 0.01285497099161148, 0.006520248483866453, -0.030025534331798553, 0.012437487952411175, 0.023860683664679527, -0.05473751202225685, -0.015033659525215626, -0.010026682168245316, -0.027670126408338547, -0.01930319517850876, 0.021966522559523582, 0.07741712778806686, 0.083218514919281, 0.012269794940948486, 0.0030284093227237463, 0.03549811244010925, -0.03220826014876366, -0.13637623190879822, 0.08058945834636688, 0.054048433899879456, 0.031779441982507706, -0.04680944234132767, -0.07131950557231903, -0.018855953589081764, 0.09655340015888214, -0.012298942543566227, -0.01700354926288128, -0.05275388062000275, 0.0675472766160965, -0.00015918127610348165, -0.017778649926185608, -0.016735132783651352, 0.01823883131146431, 0.03142882138490677, -0.06433804333209991, -0.06455399096012115, -0.015523799695074558, -0.06001930311322212, -0.01666136085987091, -0.057480309158563614, 0.015470384620130062, -0.007932127453386784, 0.09076270461082458, 0.04311445355415344, 0.03393542021512985, 0.03955703601241112, -0.025163549929857254, 0.07129615545272827, 0.034464944154024124, -0.10020340979099274, -0.01670811139047146, -0.02028091810643673, 0.03313470259308815, -0.0330062098801136, 0.4458170533180237, -0.013944662176072598, -0.040918782353401184, 0.059115536510944366, 0.013979915529489517, -0.014053228311240673, 0.023412926122546196, -0.008520850911736488, -0.015381241217255592, 0.005318398587405682, -0.02696341834962368, 0.025679878890514374, 0.01664760522544384, 0.07754458487033844, -0.059560105204582214, 0.032649483531713486, 0.016530433669686317, 0.0019846174400299788, 0.020849203690886497, -0.037615321576595306, -0.01273095328360796, -0.00821120198816061, 0.019962932914495468, 0.019807273522019386, 0.025974316522479057, -0.00904412753880024, 0.006727440282702446, 0.05285290628671646, 0.04172174260020256, 0.03379557654261589, 0.02274056151509285, 0.0022317308466881514, -0.03449697047472, -0.07994066178798676, -0.004222256131470203, 0.006204952485859394, 0.055356089025735855, 0.021151576191186905, -0.02045600861310959, -0.0077910819090902805, 0.010991781949996948, -0.0069664581678807735, -0.01807987317442894, 0.0077049620449543, 0.011804203502833843, -0.04425608366727829, 0.09304673969745636, -0.028096823021769524, -0.03255034238100052, -0.024228280410170555, -0.050559233874082565, -0.03557910770177841, 0.03704185038805008, 0.02545875497162342, -0.04788357764482498, -0.014207246713340282, -0.015846092253923416, 0.04857432097196579, -0.02514788880944252, -0.03572216257452965, 0.002459521871060133, -0.0017384691163897514, -0.05563616007566452, -0.02588016353547573, 0.04063176363706589, 0.05951501056551933, -0.08496573567390442, -0.036372825503349304, 0.0004127353895455599, 0.05149218440055847, -0.053042568266391754, -0.008813586086034775, 0.009160660207271576, 0.006222046911716461, -0.009994207881391048, 0.049619510769844055, -0.032169077545404434, -0.0213466826826334, 0.021364277228713036, 0.021358827129006386, -0.003214089199900627, 0.02177797630429268, 0.02282889187335968, -0.05370412394404411, 0.004327577538788319, -0.020989978685975075, -0.09416300803422928, -0.08476825058460236, -0.00021409043984021991, -0.004390977323055267, 0.01823049783706665, -0.03380251303315163, 0.0006344658904708922, -0.042300764471292496, 0.0543273463845253, 0.014719868078827858, -0.008550100028514862, 0.017912518233060837, 0.03689052164554596, -0.017713643610477448, -0.020292775705456734, 0.01756851188838482, 0.058575503528118134, -0.03166481480002403, 0.03524772450327873, -0.10727205127477646, 0.02660103514790535, 0.025915855541825294, -0.031553879380226135, 0.04979932680726051, 0.04011323302984238, -0.03940355405211449, -0.024646565318107605, 0.01948789320886135, 0.05959908664226532, -0.013776352629065514, -0.04581787437200546, -0.039295654743909836, -0.0006231440347619355, 0.045764755457639694, 0.014508984982967377, -0.0313703827559948, -0.01928531751036644, 0.028854619711637497, -0.3516923785209656, -0.006185951642692089, -0.015211387537419796, 0.0025330299977213144, -0.0008249917300418019, -0.05464845895767212, 0.03553299605846405, -0.018229881301522255, -0.0308619923889637, -0.013722989708185196, 0.06236699968576431, -0.0440494567155838, 0.014208747074007988, -0.060491401702165604, -0.011257515288889408, 0.042967136949300766, -0.038716886192560196, -0.021323561668395996, -0.015842964872717857, 0.005686933174729347, 0.0077172331511974335, -0.03094273991882801, 0.004804762080311775, -0.05692417919635773, 0.008066684007644653, -0.03222106397151947, 0.12291257828474045, -0.0056696501560509205, 0.07209648936986923, -0.02901517041027546, 0.048646774142980576, -0.012717297300696373, 0.019486986100673676, -0.0945170670747757, -0.008551837876439095, -0.03873980790376663, -0.011120556853711605, 0.028164850547909737, 0.01934696175158024, 0.0040624202229082584, -0.060172613710165024, 0.006997091230005026, -0.03837313875555992, -0.048994019627571106, 0.004414114635437727, 0.012863989919424057, -0.044833824038505554, -0.037504229694604874, 0.02411475032567978, 0.04216935485601425, 0.01978585496544838, 0.00033130243537016213, 0.013725141063332558, 0.03184608742594719, -0.0015069619985297322, -0.05477252975106239, -0.048635806888341904, 0.0028888939414173365, 0.0342111699283123, -0.012517916038632393, 0.036938026547431946, 0.04144260287284851, 0.02728528529405594, -0.06558740139007568, 0.013274195604026318, -0.0005074505461379886, -0.02311573550105095, 0.013073690235614777, 0.03566120192408562, -0.04425724595785141, -0.0031149161513894796, 0.0959070473909378, 0.030594920739531517, -0.03079223819077015, 0.0164581760764122, 0.035790279507637024, -0.028526537120342255, 0.01996827870607376, 0.02686484158039093, -0.02662108838558197, 0.018018245697021484, -0.014683591201901436, 0.06178683787584305, -0.008221950381994247, 0.015742281451821327, 0.06443531066179276, -0.0050211562775075436, -0.014668201096355915, 0.06723203510046005, 0.00996654573827982, -0.029607310891151428, -0.01414453610777855, -0.01500236988067627, -0.035859838128089905, 0.09306425601243973, -0.0008641891763545573, -0.2513364553451538, 0.032365500926971436, 0.07884043455123901, 0.014988021925091743, -0.00752898259088397, 0.02806173264980316, 0.007124153897166252, -0.018312877044081688, 0.0572027750313282, 0.010006636381149292, 0.014585218392312527, 0.015526597388088703, -0.0026794767472893, -0.03185689449310303, 0.023517798632383347, -0.006472953595221043, 0.0557708814740181, -0.007510118652135134, 0.0008978580590337515, 0.00676729017868638, 0.0046318890526890755, -0.005572215653955936, 0.15737922489643097, 0.011289873160421848, 0.010301638394594193, -0.00021254378953017294, -0.025614982470870018, 0.04088708385825157, 0.058949146419763565, 0.049403272569179535, 0.009191167540848255, -0.023454202339053154, 0.043178509920835495, -0.010772312059998512, 0.029734943062067032, -0.029475312680006027, -0.01947655715048313, 0.013264037668704987, -0.006643030792474747, 0.016249598935246468, -0.03862294554710388, -0.012095492333173752, -0.06820698827505112, 0.04463643580675125, 0.06303613632917404, -0.01811775378882885, 0.0064506083726882935, -0.008596531115472317, -0.03200871869921684, -0.007463266607373953, -0.04046265780925751, -0.01638878509402275, -0.037022560834884644, 0.00950175803154707, 0.01531396433711052, 0.055699482560157776, 0.02167472243309021, -0.022894954308867455, -0.0026853650342673063, 0.014900073409080505, -0.025477226823568344, -0.024497980251908302, 0.13704992830753326, 0.013370444066822529, -0.01227549184113741 ]
[ 0.012162498198449612, 0.019327400252223015, -0.020863700658082962, 0.03188523277640343, 0.019581858068704605, -0.0445227175951004, 0.007173303980380297, 0.03553668037056923, -0.02279551513493061, 0.020309146493673325, 0.02602382004261017, -0.005121833179146051, 0.04559812694787979, 0.009759629145264626, -0.02760070376098156, -0.013731810264289379, -0.017186781391501427, 0.011882789433002472, 0.01246687676757574, -0.025968801230192184, -0.015176939778029919, 0.06166226416826248, 0.016484303399920464, -0.0235789455473423, 0.026589587330818176, 0.003604301018640399, -0.03713605925440788, 0.006419376470148563, 0.026576204225420952, -0.1464151293039322, 0.028409719467163086, 0.019432613626122475, 0.015195279382169247, 0.010693572461605072, 0.04323037713766098, -0.015047833323478699, 0.0024727708660066128, 0.005830650217831135, -0.01284004282206297, -0.005551911890506744, -0.0027565769851207733, 0.0007694353116676211, 0.013275410048663616, -0.03436986729502678, -0.03673149645328522, -0.052960172295570374, -0.02530398592352867, -0.021619761362671852, -0.013989489525556564, 0.04402437433600426, -0.01797674037516117, -0.020389849320054054, -0.032954227179288864, -0.0030194027349352837, 0.012146004475653172, 0.00582922762259841, -0.003228789661079645, -0.02242402546107769, -0.021013136953115463, -0.0085464371368289, 0.03765355795621872, -0.025425542145967484, -0.03363276645541191, -0.057494089007377625, 0.028314419090747833, 0.012972970493137836, 0.006730188615620136, 0.0032696579582989216, -0.033072952181100845, -0.006769315339624882, 0.01781601272523403, 0.023627087473869324, -0.029823655262589455, -0.006238670088350773, 0.012438897043466568, 0.02238917350769043, 0.019217992201447487, 0.020331095904111862, 0.012462233193218708, -0.04176580160856247, -0.04736347869038582, 0.02704131230711937, 0.012653857469558716, -0.03716186806559563, -0.0188458189368248, 0.01493663340806961, -0.007411608472466469, 0.0653480738401413, 0.012317485176026821, 0.039044808596372604, -0.031621191650629044, -0.012928301468491554, -0.012712382711470127, 0.01660575531423092, -0.10843038558959961, 0.02026449888944626, -0.024288777261972427, 0.017947297543287277, 0.009888438507914543, 0.8203117251396179, -0.005295478273183107, 0.017314720898866653, 0.030339987948536873, -0.025601504370570183, -0.039174169301986694, 0.03558134287595749, 0.008603786118328571, 0.010222663171589375, -0.0003494671836961061, -0.05444493889808655, 0.049865949898958206, 0.033292800188064575, 0.009874574840068817, -0.014788848347961903, 0.05298157036304474, 0.02165982685983181, 0.021220361813902855, -0.0030861354898661375, -0.010167092084884644, 0.03885399177670479, 0.058298978954553604, -0.016796043142676353, 0.025956125929951668, 0.01430973969399929, 0.016445960849523544, -0.161174938082695, -0.017941366881132126, -6.487231530609667e-33, 0.02003585360944271, -0.008952336385846138, -0.0024760691449046135, -0.0010364394402131438, 0.05392979830503464, -0.0008816178306005895, 0.022322671487927437, 0.02057620882987976, -0.0022530979476869106, -0.017300304025411606, -0.03312227502465248, -0.016092022880911827, -0.03348100185394287, -0.08108673244714737, 0.03507237136363983, -0.05677172914147377, -0.011354459449648857, 0.032968975603580475, -0.014023198746144772, 0.0022820106241852045, 0.03208647295832634, 0.026949645951390266, -0.012809453532099724, -0.009927317500114441, 0.06911870092153549, 0.015460104681551456, 0.024235207587480545, 0.0327850878238678, -0.0037360757123678923, -0.03730366379022598, -0.015944145619869232, 0.029770484194159508, 0.012965154834091663, -0.01889772340655327, 0.0019439442548900843, -0.038846831768751144, -0.04515640065073967, 0.005604701582342386, -0.018290294334292412, -0.020149648189544678, 0.0006738174706697464, -0.003014389658346772, -0.05365932360291481, 0.044180721044540405, -0.013354746624827385, 0.004983844701200724, 0.01737099513411522, 0.010638168081641197, 0.00803937204182148, 0.01787486858665943, 0.006732546724379063, 0.04911461099982262, 0.01505793072283268, -0.014677444472908974, 0.0018532787216827273, 0.030173951759934425, -0.0014028570149093866, 0.00002996394323417917, -0.004418468568474054, -0.012449788860976696, 0.0083084087818861, 0.019958531484007835, -0.014031464233994484, 0.048715729266405106, -0.03416648134589195, -0.0038638797122985125, 0.04043066129088402, 0.01860065758228302, 0.02708001621067524, 0.018255306407809258, -0.047954291105270386, 0.015412555076181889, -0.010832005180418491, -0.02274511568248272, 0.01458797324448824, -0.019404252991080284, -0.006761700380593538, -0.0010318778222426772, -0.009690972045063972, -0.0007883954676799476, -0.027393866330385208, 0.017636923119425774, -0.0506242960691452, -0.02505984716117382, -0.005710636265575886, 0.018256282433867455, -0.010693663731217384, 0.019134294241666794, -0.01831931620836258, -0.030624067410826683, 0.054580993950366974, 0.009259290061891079, 0.012613097205758095, -0.03214401379227638, -0.00007815809658495709, 6.88605619269253e-33, 0.0016255562659353018, -0.014008548110723495, 0.012043120339512825, 0.011701769195497036, -0.0269650649279356, -0.024942509829998016, -0.0018821621779352427, 0.0073196012526750565, -0.07233434915542603, 0.018315641209483147, -0.031023800373077393, 0.03957080468535423, -0.03917622193694115, -0.017551874741911888, 0.054353322833776474, -0.03767070919275284, 0.03675807639956474, 0.009456606581807137, 0.040260933339595795, 0.006843056529760361, 0.004182795062661171, 0.028602659702301025, 0.010505112819373608, 0.0018962855683639646, -0.005947957281023264, 0.07030148059129715, -0.025514177978038788, -0.010511549189686775, 0.02664804831147194, -0.0038824803195893764, 0.005847161170095205, 0.006470108404755592, -0.001566727994941175, -0.055993009358644485, -0.01424888614565134, -0.0005431463359855115, -0.0019461170304566622, -0.008538953959941864, 0.007412639446556568, -0.02912336029112339, 0.013559802435338497, 0.01800556294620037, -0.0010096468031406403, 0.028838947415351868, -0.032616350799798965, -0.0028765585739165545, 0.031564921140670776, -0.03736418858170509, -0.000491924409288913, -0.014346741139888763, 0.026602499186992645, 0.008093055337667465, -0.04079604521393776, -0.020861228927969933, 0.005095433909446001, -0.01307762786746025, -0.03213513642549515, -0.011624366044998169, -0.039987944066524506, 0.028177743777632713, -0.035934142768383026, 0.022828154265880585, 0.006294091232120991, 0.0026448622811585665, -0.049592629075050354, 0.0029297953005880117, -0.0567045696079731, 0.002989768283441663, 0.009538373909890652, 0.014873682521283627, -0.01013386994600296, -0.017752354964613914, -0.05139452964067459, 0.05123034864664078, -0.017963506281375885, -0.025343280285596848, -0.002287712413817644, 0.008743900805711746, 0.005356287583708763, 0.03319127485156059, 0.00976342149078846, 0.027972444891929626, -0.030989376828074455, 0.030261002480983734, -0.011780565604567528, -0.015962675213813782, -0.046701252460479736, 0.02242480032145977, 0.04639402776956558, 0.0000822942893137224, -0.002265714108943939, -0.03413306549191475, 0.0040826559998095036, 0.007054449524730444, -0.016258597373962402, -1.2584242981006355e-8, -0.042457856237888336, 0.029478685930371284, -0.01888817362487316, 0.046577088534832, 0.020349012687802315, -0.041296616196632385, -0.035566505044698715, 0.01665484718978405, -0.008294655941426754, -0.007324800360947847, 0.018787013366818428, -0.007631971966475248, -0.007195994723588228, 0.04203301668167114, 0.0034421428572386503, -0.03277283161878586, 0.030794618651270866, -0.01107245683670044, 0.021360069513320923, 0.018596962094306946, -0.008296235464513302, 0.05382103472948074, 0.007574645336717367, 0.026431379839777946, -0.027563471347093582, -0.02699771337211132, 0.017814401537179947, -0.056765418499708176, 0.02120545133948326, 0.013840659521520138, 0.018357310444116592, -0.008079399354755878, -0.04814470186829567, 0.02366572618484497, -0.017815757542848587, -0.044888827949762344, 0.011237460188567638, 0.009519626386463642, 0.02591981366276741, 0.018474102020263672, 0.0006389276240952313, -0.007632077671587467, 0.013082914054393768, -0.026996435597538948, -0.039191920310258865, -0.028320632874965668, -0.02135453000664711, -0.010981159284710884, -0.009726137854158878, -0.0634584128856659, -0.00019494222942739725, -0.018099721521139145, -0.013359866105020046, 0.03446677327156067, 0.015312004834413528, 0.03213883936405182, 0.03304178640246391, 0.012826127000153065, -0.018774639815092087, 0.02676839753985405, 0.03347776085138321, 0.0036018204409629107, -0.0075807287357747555, -0.05056973174214363 ]
f-useful-for-scripting
https://markhneedham.com/blog/2009/06/09/f-useful-for-scripting
false
2009-06-30 23:09:35
F#: What I've learnt so far
[ "altnet", "f" ]
[ "fsharp" ]
I did a presentation of some of the stuff that I've learnt from playing around with F# over the last six months or so at the most recent http://sydney.ozalt.net/2009/05/june-meeting-f.html[Alt.NET Sydney meeting]. I've included the slides below but there was also some interesting discussion as well. * One of the questions asked was around how you would deal with code on a real project with regards to structuring it and ensuring that it was maintainable. I'm not actually sure what the answer is to this question as I haven't written any code in F# that's in production but there are certainly applications written n F# that are in production - the main one that I know a bit about is one which http://pandamonial.com/[Amanda Laucher] worked on http://vimeo.com/3555080[which she spoke about at the Alt.NET conference in Seattle]. * There was some discussion about dynamic v static languages - http://fragmental.tw/[Phil] spoke of not caring about what type something is rather caring about what it does. I pretty much agree with this and I think when using languages which have quite strong type inference such as F# (and more-so Haskell from what I hear) then I think we do move more towards that situation. * http://erik.doernenburg.com[Erik] raised the point that functional languages aren't the solution for everything and I certainly feel it's niche is probably around operations with heavy data parsing/mining involved. I'm not sure I'd fancy doing an ASP.NET MVC application only in F# although I've seen some WPF code written using F# (unfortunately can't remember where) which looked reasonable so I'm not sure we should write it off just yet. I've put the code that I walked through in the presentation on http://bitbucket.org/markhneedham/altnet-sydney-fsharp/changeset/dfcbc2acf486/[bitbucket]. http://www.slideshare.net/markhneedham/f-what-ive-learnt-so-far?type=presentation[F#: What I&#39;ve learnt so far]
null
null
[ 0.013482745736837387, -0.007773933466523886, 0.020031359046697617, 0.04720119386911392, 0.07506363093852997, 0.029304660856723785, 0.0167381651699543, 0.04155173897743225, 0.0024652581196278334, -0.022861763834953308, -0.004912456497550011, 0.005609506741166115, -0.06660515069961548, 0.019966352730989456, 0.0008618655265308917, 0.059657879173755646, 0.06927761435508728, -0.028461404144763947, 0.037445321679115295, 0.016070444136857986, 0.0014433662872761488, 0.06398279219865799, 0.021133361384272575, 0.031097374856472015, 0.005469529889523983, 0.007628684863448143, 0.01609572023153305, -0.010788604617118835, -0.060607507824897766, 0.0000013853973541699816, 0.03191107138991356, 0.012538517825305462, 0.006980546284466982, -0.009577805176377296, 0.010113181546330452, -0.00984109565615654, 0.01020808145403862, 0.0143141970038414, 0.011937631294131279, 0.03070857748389244, -0.08248961716890335, 0.03381107375025749, 0.009904516860842705, 0.0015361957484856248, -0.05198245123028755, 0.021913103759288788, -0.05293342098593712, -0.0025696814991533756, -0.006658805999904871, 0.0063683087937533855, -0.0680948868393898, 0.013049661181867123, 0.025679297745227814, 0.009293589740991592, -0.013031230308115482, 0.0467790812253952, 0.012182341888546944, -0.07699552923440933, 0.011888233944773674, -0.059996988624334335, -0.006917096208781004, -0.007679654750972986, 0.017990266904234886, 0.04786656051874161, 0.034749582409858704, -0.02842467464506626, -0.03902101144194603, 0.04814540222287178, -0.05706465616822243, -0.01353007648140192, 0.008532692678272724, 0.037229496985673904, -0.018376709893345833, -0.028457144275307655, 0.04128007963299751, -0.05142626911401749, -0.0038996399380266666, 0.062367167323827744, 0.023569075390696526, 0.03038347326219082, -0.04096236079931259, 0.0402572937309742, 0.04341477155685425, 0.02004084549844265, 0.012419763021171093, -0.01580248586833477, -0.024093763902783394, -0.007243715226650238, -0.04712957516312599, 0.04884903505444527, 0.005573704838752747, -0.07049067318439484, -0.0000070115438575157896, 0.021420132368803024, 0.010834183543920517, 0.014839529991149902, 0.00618444150313735, 0.000595379329752177, -0.008667501620948315, 0.013910971581935883, -0.03318808972835541, -0.029503580182790756, 0.007089934311807156, -0.0018772775074467063, -0.07761174440383911, -0.008549799211323261, -0.030883777886629105, -0.0061696963384747505, 0.015263911336660385, 0.018693605437874794, -0.021615078672766685, 0.0044114780612289906, -0.009727752767503262, -0.011351027525961399, -0.07113324105739594, 0.0506463423371315, 0.007387027144432068, -0.0212352704256773, -0.005342184100300074, 0.014499626122415066, 0.04856272041797638, 0.012814070098102093, -0.024776821956038475, 0.08332325518131256, 0.0018681203946471214, 0.03735138103365898, -0.027410907670855522, 0.06891888380050659, -0.01606661267578602, -0.07634788751602173, -0.012835197150707245, 0.05616229772567749, -0.03998613730072975, -0.008776534348726273, -0.007955093868076801, -0.027981750667095184, -0.02388370782136917, -0.014276308938860893, 0.021984273567795753, 0.04939920827746391, -0.0046295966021716595, -0.03912166506052017, 0.010217547416687012, -0.0075705815106630325, 0.022345688194036484, 0.006364652421325445, -0.021550647914409637, -0.022888587787747383, -0.03183608502149582, 0.0018291205633431673, -0.0044487109407782555, 0.024498745799064636, 0.03390650078654289, -0.04912036284804344, 0.017885342240333557, 0.08940765261650085, 0.03316200152039528, 0.005597403738647699, -0.007729404140263796, 0.015106015838682652, 0.038071464747190475, 0.031225014477968216, 0.006531444378197193, 0.029872309416532516, 0.009999948553740978, 0.009502289816737175, -0.00862105842679739, 0.04700875282287598, -0.01699806936085224, 0.011692389845848083, -0.05625651031732559, 0.0007818997837603092, 0.059778355062007904, -0.04350530728697777, -0.015080292709171772, 0.04181242361664772, 0.07011281698942184, 0.023919086903333664, 0.03428592532873154, -0.008039595559239388, -0.0768672525882721, 0.005417902022600174, 0.03542918339371681, 0.0163137074559927, 0.0060662575997412205, -0.007660092785954475, 0.07798992842435837, 0.023338790982961655, 0.017689727246761322, 0.04932725429534912, -0.04430153965950012, -0.0866316705942154, -0.038764167577028275, -0.03530432656407356, 0.08058304339647293, -0.01857049949467182, 0.015694327652454376, 0.04887758567929268, 0.014989785850048065, 0.060970038175582886, 0.05958851799368858, -0.0226907916367054, 0.022058362141251564, -0.015005643479526043, -0.0363842137157917, 0.053571272641420364, 0.03861791267991066, -0.005515248514711857, -0.06038346886634827, 0.0026634540408849716, 0.005177903454750776, -0.020467137917876244, 0.0558478981256485, -0.003250671550631523, 0.056265607476234436, 0.02291424199938774, 0.029678117483854294, -0.03189919888973236, 0.026703346520662308, -0.05579732730984688, 0.035731762647628784, 0.007054944988340139, -0.019676877185702324, -0.01684071496129036, -0.018918748944997787, 0.11994703114032745, 0.07014594972133636, -0.04272526875138283, -0.032565224915742874, -0.010806269012391567, 0.010681082494556904, -0.0474199540913105, -0.010174197144806385, -0.005591850262135267, 0.017960989847779274, -0.010078960098326206, -0.05699952691793442, 0.00838535837829113, 0.015475325286388397, -0.03464522957801819, 0.032849911600351334, 0.07841427624225616, -0.029642311856150627, 0.039543576538562775, -0.02459796890616417, -0.024725135415792465, 0.020042629912495613, -0.02070850320160389, -0.04043234884738922, 0.020344840362668037, 0.02408975176513195, -0.007229623384773731, 0.056288450956344604, -0.021599754691123962, -0.03514606133103371, -0.02500363066792488, -0.025204148143529892, 0.010486000217497349, 0.04855867102742195, 0.06361596286296844, 0.021468481048941612, 0.0290122888982296, -0.04837993159890175, 0.017028460279107094, 0.004905210807919502, -0.05764695256948471, -0.017369307577610016, -0.013089531101286411, 0.02312689833343029, 0.050839461386203766, 0.007987994700670242, 0.006798126734793186, 0.009233995340764523, -0.0047552380710840225, -0.014510533772408962, -0.040680911391973495, 0.03378608822822571, 0.00476779043674469, -0.05623055621981621, -0.035379353910684586, -0.04809105396270752, 0.052771203219890594, -0.03354630619287491, -0.02753331884741783, -0.011023485101759434, -0.03136826679110527, 0.050025518983602524, -0.06626427918672562, -0.04052041843533516, -0.014478106983006, 0.03326619416475296, 0.030271252617239952, -0.024920610710978508, 0.020370841026306152, 0.06565910577774048, 0.015248341485857964, 0.019983258098363876, 0.00405245553702116, -0.03412198647856712, 0.029830876737833023, -0.0034171142615377903, 0.021296784281730652, 0.047320205718278885, 0.007447324227541685, -0.0032741737086325884, -0.05270381644368172, 0.031351488083601, -0.034011952579021454, -0.27890440821647644, 0.028896046802401543, -0.016892097890377045, -0.043778933584690094, 0.016240976750850677, -0.012112432159483433, -0.013717717491090298, -0.042238831520080566, -0.007638956885784864, 0.007269352208822966, -0.04043919965624809, -0.043783038854599, -0.04207180067896843, 0.04136468842625618, 0.009020308963954449, 0.03579931706190109, 0.008353445678949356, -0.04394373670220375, -0.0031468786764889956, 0.04252165928483009, -0.009158331900835037, -0.0636768490076065, 0.01254186313599348, 0.060115646570920944, 0.036856114864349365, 0.03845127671957016, -0.10407411307096481, 0.0438058078289032, -0.02688043937087059, -0.013617576099932194, -0.014495331794023514, 0.005241737700998783, 0.01422666385769844, -0.030400801450014114, -0.017306078225374222, -0.015064449049532413, 0.034025777131319046, 0.013594350777566433, 0.01863756589591503, 0.005284782964736223, -0.017864564433693886, -0.043752413243055344, -0.016669807955622673, -0.006452140398323536, 0.07171767204999924, -0.004719538614153862, -0.09681213647127151, -0.007132938597351313, -0.04086790978908539, 0.06308303028345108, -0.04977608844637871, -0.05236037075519562, -0.000553704856429249, 0.07284267991781235, -0.007519823964685202, -0.021343206986784935, 0.010899683460593224, -0.009216549806296825, -0.040213994681835175, -0.022007470950484276, -0.019773736596107483, -0.0507950522005558, -0.013537335209548473, -0.06758613139390945, 0.010085823014378548, -0.0660751610994339, -0.06189519912004471, 0.009226381778717041, 0.061816878616809845, 0.008363599888980389, -0.030502833425998688, 0.02404095232486725, 0.002930989721789956, -0.11078149825334549, -0.015518664382398129, -0.029316876083612442, -0.036604855209589005, -0.02027960866689682, 0.05198219045996666, 0.05469047650694847, -0.013182707130908966, -0.06475598365068436, 0.0264472346752882, 0.004912008065730333, 0.03286004438996315, 0.0033621187321841717, 0.027314823120832443, 0.0026861040387302637, -0.012844173237681389, 0.001380427973344922, 0.06807682663202286, -0.005306953564286232, 0.009817819111049175, -0.030505649745464325, 0.029191158711910248, -0.0006079783197492361, 0.02448669634759426, -0.008731916546821594, 0.023289315402507782, 0.03844932094216347, 0.028805533424019814, -0.066512830555439, 0.014870058745145798, -0.02989622764289379, -0.007618575822561979, 0.010411933064460754, -0.04832788184285164, 0.015534776262938976, 0.04319414123892784, 0.019450552761554718, -0.019538238644599915, -0.050890881568193436, 0.022329460829496384, -0.06246742978692055, -0.03834999352693558, 0.011075533926486969, 0.009322477504611015, 0.020106371492147446, 0.009390825405716896, -0.030749520286917686, -0.04505091905593872, -0.010388046503067017, 0.022431958466768265, 0.005970892496407032, -0.06207970157265663, -0.014413009397685528, -0.024231014773249626, -0.023415395990014076, -0.013163206167519093, 0.04094361886382103, -0.0011652543907985091, 0.022496620193123817, -0.007024588529020548, -0.04735816270112991, 0.037487730383872986, 0.004421010613441467, -0.014655068516731262, -0.023129522800445557, -0.012799865566194057, -0.038016412407159805, -0.00842598918825388, 0.029509715735912323, 0.013120697811245918, 0.029636899009346962, 0.022981127724051476, 0.02129528857767582, 0.007786199916154146, 0.005498629994690418, 0.016448087990283966, -0.0017840005457401276, 0.02185354009270668, -0.07566379010677338, -0.0002905806468334049, -0.03180916979908943, -0.03547468036413193, -0.012611211277544498, 0.05789192393422127, -0.032741155475378036, -0.020870545879006386, -0.04056526720523834, 0.04379376769065857, -0.030113941058516502, -0.03352184221148491, -0.030558304861187935, 0.011396271176636219, 0.04626929387450218, -0.014282495714724064, 0.03002423606812954, -0.009078596718609333, -0.010755190625786781, 0.0012373593635857105, 0.045573413372039795, -0.038836777210235596, 0.014181938022375107, 0.01826617494225502, -0.009217924438416958, -0.010735267773270607, 0.004346976522356272, 0.07497092336416245, 0.03364996984601021, 0.0230572447180748, -0.041724324226379395, 0.0034591953735798597, 0.025286024436354637, 0.05506175011396408, 0.011597677133977413, 0.012323866598308086, 0.016621947288513184, -0.016668779775500298, 0.005187382455915213, -0.028702862560749054, -0.004432684276252985, -0.01790347322821617, 0.0460904985666275, -0.03679993748664856, -0.06950630992650986, 0.05111689120531082, 0.009236278012394905, 0.020287221297621727, -0.008646545931696892, 0.0015789562603458762, 0.009897601790726185, -0.01022748090326786, 0.021558761596679688, 0.062212564051151276, -0.046890806406736374, 0.0016929159173741937, 0.007915294729173183, 0.031805526465177536, 0.016116896644234657, 0.02294432744383812, -0.030141858384013176, -0.04627009481191635, -0.02198002301156521, -0.007510292809456587, -0.026313303038477898, -0.035201311111450195, -0.021636616438627243, 0.003407812211662531, 0.01381318736821413, -0.025391479954123497, -0.0061730509623885155, -0.015287267975509167, -0.01792195625603199, -0.0332566536962986, -0.0004044844536110759, -0.03621724992990494, 0.002606133697554469, 0.006991409696638584, -0.027479691430926323, 0.003612991189584136, -0.04569993540644646, 0.03910110145807266, 0.02539815753698349, -0.007541780360043049, -0.008203361183404922, -0.0649673193693161, -0.005906331352889538, -0.018717000260949135, 0.04057741537690163, -0.014332800172269344, -0.025833047926425934, -0.03544096648693085, -0.005819643381983042, -0.047612227499485016, 0.007475275546312332, -0.013107191771268845, -0.023930106312036514, 0.017921602353453636, 0.044283561408519745, -0.01587606780230999, 0.032909754663705826, -0.005447873845696449, -0.009643004275858402, 0.029789302498102188, -0.05780167505145073, -0.016428256407380104, -0.0271358173340559, -0.05483435094356537, -0.0035932117607444525, -0.00604614894837141, 0.011099412105977535, -0.04887619614601135, 0.05199957266449928, 0.03101172111928463, 0.03581559658050537, 0.03232442960143089, -0.012707948684692383, 0.04776009917259216, -0.016777537763118744, -0.0013370654778555036, -0.0843222364783287, 0.015661539509892464, 0.01345060020685196, 0.009817407466471195, -0.017132597044110298, 0.0021640046034008265, -0.03438156098127365, 0.048360370099544525, -0.05411890894174576, -0.021710295230150223, 0.031988706439733505, 0.008583320304751396, -0.00349711487069726, -0.007646853104233742, -0.0650596097111702, 0.016940563917160034, 0.0373709574341774, -0.041154928505420685, -0.026095224544405937, -0.018637562170624733, 0.04075927287340164, -0.01230249647051096, 0.012819691561162472, -0.0353161059319973, -0.02075309120118618, 0.03308533877134323, 0.009127095341682434, -0.0015161802293732762, 0.059057217091321945, -0.01821022480726242, 0.021838318556547165, 0.017848437651991844, -0.003821935737505555, -0.0062632630579173565, -0.015148863196372986, -0.019990745931863785, -0.055134017020463943, 0.02970699779689312, 0.00945095531642437, -0.028521358966827393, -0.047354746609926224, 0.06783800572156906, 0.027510561048984528, -0.00958189181983471, -0.04388022422790527, 0.01799425669014454, -0.05351966619491577, 0.003972330596297979, -0.02162165381014347, 0.026664655655622482, -0.0385591946542263, 0.06273860484361649, 0.015867536887526512, -0.017898842692375183, 0.0662354826927185, -0.0006999099277891219, -0.007720729801803827, -0.019968831911683083, 0.08750569820404053, 0.06996884942054749, 0.07926354557275772, 0.0023747258819639683, 0.06339464336633682, -0.04716331884264946, -0.05591840296983719, -0.0002528777695260942, 0.0008752730791456997, -0.007408533710986376, -0.023363342508673668, 0.04920000955462456, 0.09749430418014526, -0.007112602703273296, 0.06237464025616646, -0.04141370579600334, 0.01637623831629753, -0.009545696899294853, 0.018110420554876328, 0.016934489831328392, 0.07717723399400711, 0.03444315120577812, 0.0036369701847434044, 0.00028330134227871895, -0.0432954803109169, 0.02748814783990383, -0.029405204579234123, -0.0012471425579860806, -0.011229724623262882, 0.03215201199054718, 0.035903166979551315, 0.011681579053401947, 0.0489017590880394, 0.08245430886745453, -0.024851752445101738, 0.007664367090910673, -0.009273639880120754, 0.018201861530542374, 0.013351722620427608, 0.006800856441259384, -0.044867001473903656, -0.0026978200767189264, 0.005056302063167095, -0.019050898030400276, -0.031134890392422676, -0.02218923345208168, -0.03010442480444908, 0.04548529535531998, -0.03454967960715294, -0.003114215098321438, 0.013396787457168102, -0.016134845092892647, -0.023949749767780304, -0.06438881903886795, -0.05900938808917999, -0.04238384962081909, -0.07064086943864822, -0.019664188846945763, 0.013577817007899284, -0.024809395894408226, -0.014136029407382011, -0.04843998700380325, -0.030846193432807922, -0.0362933874130249, 0.06330461800098419, -0.03781592845916748, -0.06072220206260681, 0.01993771828711033, -0.005772730335593224, 0.021276911720633507, 0.04063732549548149, 0.026251057162880898, -0.014844541437923908, 0.002682868856936693, -0.04229980707168579, -0.01678547076880932, 0.0242456067353487, 0.03145439550280571, 0.021194621920585632, -0.08599508553743362, 0.031123705208301544, 0.020114606246352196, 0.008002236485481262, -0.07305923104286194, 0.015901634469628334, -0.008459777571260929, -0.008030237630009651, 0.03656933456659317, -0.023294391110539436, 0.009715582244098186, -0.01447016280144453, -0.008399360813200474, -0.025241293013095856, 0.029706815257668495, 0.05120183527469635, -0.023852219805121422, 0.10542309284210205, 0.00234827003441751, 0.0027168160304427147, -0.04679451882839203, -0.016568860039114952, -0.029700949788093567, 0.02538188546895981, -0.012806205078959465, -0.03484588488936424, -0.02727215178310871, -0.0449787862598896, -0.01388795766979456, -0.003924090415239334, -0.0273431409150362, -0.02948671393096447, 0.02605362795293331, 0.035947564989328384, -0.05287081375718117, 0.033116016536951065, -0.03534102067351341, 0.026767872273921967, 0.016253162175416946, -0.02074170671403408, 0.004388006404042244, 0.011389408260583878, 0.0007856593583710492, -0.009856929071247578, 0.031437765806913376, -0.05299634486436844, -0.004504116717725992, 0.011527582071721554, 0.02162994258105755, 0.022136684507131577, -0.0006425979663617909, 0.022017696872353554 ]
[ -0.10150428116321564, -0.003987631760537624, -0.04793207347393036, -0.02999444492161274, 0.03613715618848801, -0.007925186306238174, -0.02779802493751049, 0.028857940807938576, -0.0366181954741478, -0.04443961754441261, -0.019762743264436722, -0.02111482247710228, -0.022006046026945114, 0.01766619086265564, 0.10049755871295929, 0.024146245792508125, -0.00684176804497838, -0.07497745752334595, 0.008443223312497139, 0.02651377208530903, 0.03496327996253967, -0.04359978809952736, -0.062089838087558746, -0.010877976194024086, -0.013098691590130329, 0.03253983333706856, 0.03175666555762291, -0.03651854023337364, 0.029292555525898933, -0.18548813462257385, -0.01194680668413639, 0.03591018542647362, 0.07167024910449982, -0.023804951459169388, -0.0011380754876881838, 0.02212175354361534, 0.01260622963309288, 0.009680057875812054, -0.031927913427352905, 0.04953222721815109, 0.013039916753768921, -0.0012310363817960024, -0.011218644678592682, -0.020706694573163986, 0.041971247643232346, -0.014469168148934841, -0.014895731583237648, -0.041308119893074036, -0.036720748990774155, 0.0024391019251197577, -0.06278308480978012, -0.016880961135029793, -0.008213241584599018, -0.0063659935258328915, -0.016134336590766907, 0.03665425255894661, 0.028726937249302864, 0.06801263242959976, -0.009216926991939545, 0.017644435167312622, 0.013123443350195885, -0.025405552238225937, -0.12110491842031479, 0.11424287408590317, 0.031197771430015564, 0.08497121185064316, -0.015762880444526672, -0.03579818457365036, 0.0015041263541206717, 0.0801568552851677, 0.0030104978941380978, -0.028597645461559296, -0.029506243765354156, 0.036040231585502625, 0.029819415882229805, -0.02444133721292019, 0.004489963408559561, 0.028230587020516396, 0.03391188755631447, -0.04942663013935089, -0.014697793871164322, -0.026653779670596123, -0.007917351089417934, -0.008998388424515724, -0.038910750299692154, 0.02073715627193451, -0.0018098606960847974, 0.07024303078651428, 0.022890886291861534, 0.013167019933462143, 0.015452048741281033, -0.010981431230902672, 0.040105465799570084, -0.005469764117151499, -0.03399677947163582, -0.010156754404306412, 0.0005953022046014667, -0.012066541239619255, -0.046277958899736404, 0.4491693079471588, -0.03746725991368294, -0.042125582695007324, 0.09001391381025314, 0.016015103086829185, -0.014510734006762505, 0.025724507868289948, 0.017059575766324997, -0.03449229523539543, 0.009252598509192467, -0.04534568265080452, -0.03367302194237709, 0.02878250926733017, 0.057763442397117615, -0.041606176644563675, -0.004964078776538372, 0.005809205584228039, 0.03944847360253334, 0.019029024988412857, 0.008669031783938408, -0.01613617315888405, 0.014829841442406178, 0.015160147100687027, 0.0028223549015820026, 0.0026657632552087307, 0.006968652829527855, -0.02075924165546894, 0.029326392337679863, 0.03298791125416756, 0.04954301565885544, 0.038862381130456924, 0.05882095545530319, -0.03986741602420807, -0.051438745111227036, -0.024034671485424042, -0.002013474702835083, 0.002160442527383566, 0.02635258622467518, -0.015269801951944828, -0.010080241598188877, 0.03268955275416374, -0.011424627155065536, -0.01149907335639, 0.037830859422683716, -0.022476445883512497, -0.04108278825879097, 0.12766677141189575, -0.0071031320840120316, -0.019878624007105827, -0.026803968474268913, -0.02268066816031933, 0.012702153995633125, 0.0434291809797287, -0.010467463172972202, -0.05383993312716484, 0.042638812214136124, 0.018957901746034622, 0.06675005704164505, -0.030536102131009102, -0.08310326933860779, -0.015908343717455864, -0.04118509590625763, -0.015118809416890144, -0.0319855660200119, 0.0537969134747982, 0.025236299261450768, -0.11522859334945679, -0.037614837288856506, -0.0061376518569886684, 0.05657907575368881, -0.09053574502468109, -0.00809892825782299, 0.005957307759672403, -0.024246038869023323, -0.020246373489499092, 0.04643245413899422, -0.015600469894707203, -0.03130940720438957, -0.0034888284280896187, 0.033140625804662704, 0.025188051164150238, 0.008175997994840145, 0.016549797728657722, -0.032780714333057404, -0.0037207745481282473, -0.04043946787714958, -0.10369183868169785, -0.02820376679301262, -0.011794794350862503, -0.026556499302387238, -0.014600910246372223, -0.011351451277732849, -0.016408847644925117, -0.06778999418020248, 0.08153008669614792, -0.023326216265559196, -0.015479516237974167, 0.036792121827602386, -0.00964068528264761, -0.020407622680068016, -0.024124864488840103, -0.011882425285875797, 0.06530530750751495, -0.027004968374967575, 0.04231667518615723, -0.051200900226831436, 0.030383534729480743, 0.05080888420343399, -0.04027184844017029, 0.05990535393357277, 0.06232943385839462, -0.03621235862374306, -0.015500223264098167, 0.03756580874323845, 0.02054414711892605, 0.007697263732552528, -0.024843527004122734, 0.0019030708353966475, 0.017100080847740173, -0.012731660157442093, 0.020782819017767906, -0.0256018228828907, -0.01792464591562748, -0.017042456194758415, -0.33635076880455017, -0.0306252371519804, -0.014829671010375023, -0.0180691909044981, -0.0006723058177158237, -0.06616205722093582, 0.01634920947253704, -0.027178853750228882, -0.011808757670223713, 0.0147793497890234, 0.06402970850467682, 0.010402555577456951, 0.004132529255002737, -0.08554449677467346, -0.004958301316946745, 0.011494112201035023, 0.0029954896308481693, -0.04426313936710358, -0.03895895183086395, 0.008877857588231564, -0.011022806167602539, 0.016610054299235344, -0.03942491114139557, -0.06618723273277283, -0.002644515363499522, -0.037248581647872925, 0.09328126907348633, -0.02929195947945118, 0.1335761845111847, -0.03560945391654968, 0.058551378548145294, -0.000998763251118362, 0.008360649459064007, -0.09327083826065063, 0.014055000618100166, -0.026972364634275436, 0.01930227503180504, -0.014854063279926777, 0.04680165275931358, -0.026293162256479263, -0.023173782974481583, -0.02056754380464554, -0.05302856117486954, -0.04195161163806915, -0.0486832894384861, 0.0036981271114200354, -0.019108334556221962, -0.06756886839866638, -0.040053170174360275, 0.07374257594347, -0.0037691411562263966, -0.010017751716077328, 0.03024558536708355, 0.048289742320775986, -0.03984387591481209, -0.010157194919884205, -0.0760049894452095, -0.017957938835024834, -0.013385229744017124, 0.019307129085063934, 0.05308625474572182, 0.06078556180000305, 0.02854715660214424, -0.02698977291584015, 0.01671750284731388, 0.012827142141759396, -0.011660534888505936, -0.003735192818567157, 0.06553680449724197, -0.014738492667675018, -0.03533582389354706, 0.09194080531597137, -0.004900232423096895, -0.0005080253467895091, 0.026626557111740112, 0.04673824831843376, -0.030808348208665848, 0.03765333443880081, 0.02345822937786579, 0.0024703664239495993, 0.03137020394206047, 0.0044316439889371395, 0.03601214289665222, -0.025839217007160187, -0.010504414327442646, 0.027038823813199997, -0.013367721810936928, -0.035277653485536575, 0.013910626992583275, 0.02839992567896843, -0.027229899540543556, 0.014519530348479748, -0.00761455250903964, -0.08238627016544342, 0.06847718358039856, -0.005018857307732105, -0.24768655002117157, 0.012773728929460049, 0.10244222730398178, 0.049188435077667236, -0.02622970938682556, 0.019094787538051605, 0.034412357956171036, -0.06901764869689941, 0.008224989287555218, 0.006830803118646145, 0.018125565722584724, 0.02865750715136528, 0.029586784541606903, 0.005675120744854212, 0.05457457900047302, -0.016209116205573082, 0.016299331560730934, -0.0048659988678991795, 0.025475556030869484, -0.016048138961195946, 0.018639186397194862, 0.010376938618719578, 0.16156861186027527, 0.0090794013813138, 0.03912169486284256, -0.0010034155566245317, 0.0064985682256519794, 0.006491705309599638, 0.0626877024769783, 0.004613049793988466, 0.035596635192632675, -0.015381552278995514, 0.05414922535419464, 0.013115930370986462, 0.018721435219049454, -0.1060977354645729, -0.017545146867632866, 0.055041734129190445, 0.02865755558013916, 0.004873544443398714, 0.015344107523560524, 0.004074891097843647, -0.020978765562176704, 0.02240964025259018, 0.054586417973041534, -0.002499946393072605, 0.008907193318009377, -0.029568953439593315, -0.04464524984359741, -0.003239884739741683, -0.05417947098612785, -0.011392348445951939, 0.026362812146544456, -0.025186002254486084, -0.005078643094748259, 0.04730936512351036, 0.026028543710708618, -0.02491195872426033, -0.02243753895163536, 0.04568857327103615, -0.003911307547241449, -0.002874090801924467, 0.07897433638572693, 0.03476923704147339, 0.03757958114147186 ]
[ 0.007438689470291138, -0.0022105625830590725, -0.008570426143705845, 0.00792211014777422, 0.013531616888940334, 0.023092379793524742, 0.011951656080782413, 0.030146509408950806, -0.016573568806052208, 0.007998241111636162, -0.03000241331756115, 0.01582089439034462, -0.007959241047501564, 0.005350424442440271, 0.012897107750177383, -0.033719275146722794, -0.01750970631837845, -0.019147174432873726, 0.004816769622266293, 0.01315149012953043, -0.0066398801282048225, 0.03091757744550705, -0.010377204976975918, -0.011350051499903202, -0.025891512632369995, -0.005769644398242235, -0.038335368037223816, -0.00044655162491835654, 0.03266783058643341, -0.1185920238494873, -0.024803055450320244, 0.017620334401726723, 0.01747914031147957, 0.020979702472686768, -0.013722351752221584, -0.009353269822895527, -0.021899232640862465, -0.0027429985348135233, -0.006876140832901001, 0.0016466197557747364, -0.055183347314596176, -0.016591139137744904, 0.007895080372691154, -0.014037050306797028, -0.011746572330594063, 0.00038517697248607874, 0.024748874828219414, -0.029367268085479736, -0.018695848062634468, 0.03786393254995346, -0.003902675583958626, 0.0186917744576931, -0.03624743968248367, 0.022158518433570862, 0.019539903849363327, -0.007463865447789431, 0.017470939084887505, -0.03676694631576538, -0.032459523528814316, 0.0067238034680485725, -0.028745265677571297, -0.021434733644127846, -0.046804264187812805, -0.03601953759789467, 0.0006859881686978042, 0.03409986197948456, -0.02630610764026642, 0.00885196402668953, 0.0023723526392132044, 0.008470692671835423, 0.011377531103789806, 0.03786032646894455, -0.024361932650208473, -0.0201200470328331, 0.02249927446246147, -0.005461932625621557, 0.015738321468234062, -0.022670814767479897, 0.031770382076501846, -0.020081661641597748, -0.01751253381371498, 0.01916174776852131, 0.02718193456530571, 0.001974396873265505, 0.023306943476200104, 0.003425576724112034, -0.017075715586543083, -0.01687372289597988, -0.002055393997579813, 0.031672004610300064, -0.06446293741464615, 0.025707636028528214, 0.009973950684070587, 0.03230022266507149, -0.06756029278039932, -0.009446117095649242, -0.006155749782919884, -0.035779744386672974, 0.00424173241481185, 0.8518765568733215, -0.032385241240262985, 0.031835250556468964, 0.01664675585925579, -0.010836161673069, -0.009863766841590405, -0.01542824599891901, -0.002848370699211955, 0.01629619300365448, -0.000059257155953673646, -0.059520456939935684, 0.009281843900680542, 0.022270511835813522, 0.045988988131284714, 0.0026298004668205976, 0.00809022132307291, -0.01626504585146904, 0.020506300032138824, -0.015441563911736012, -0.005971530452370644, -0.0019076236058026552, 0.021551398560404778, -0.0060546305030584335, 0.004835380706936121, 0.051584742963314056, 0.0007989655714482069, -0.19538834691047668, -0.020883185788989067, -8.142919731846675e-33, 0.033104054629802704, 0.010119792073965073, 0.018438849598169327, 0.014946320094168186, 0.016870109364390373, -0.004335175734013319, 0.08476608246564865, -0.020609432831406593, -0.01576591283082962, -0.01025430765002966, -0.010370835661888123, 0.002870426047593355, -0.017770837992429733, -0.03359602019190788, 0.038097355514764786, -0.041808124631643295, 0.03309341147542, 0.028305821120738983, -0.021805414929986, 0.0037035332061350346, 0.07254326343536377, 0.0357712060213089, 0.02585212141275406, -0.050626832991838455, 0.022137610241770744, 0.04480758681893349, -0.01126847043633461, 0.035224802792072296, -0.006488034967333078, -0.035271789878606796, -0.042451128363609314, 0.0031033968552947044, -0.025248253718018532, -0.02970682643353939, 0.03956903889775276, -0.049977291375398636, -0.025330016389489174, -0.009204532951116562, -0.022312844172120094, -0.03211158141493797, -0.0075427452102303505, 0.020048538222908974, -0.046469058841466904, -0.0022463949862867594, -0.016308803111314774, 0.004241498187184334, -0.008375019766390324, 0.05720204859972, 0.023637283593416214, 0.028570087626576424, 0.03018147684633732, 0.02596980519592762, 0.002228077966719866, 0.0003827637410722673, -0.012316079810261726, 0.024624064564704895, -0.007068158593028784, -0.020585883408784866, 0.015776125714182854, 0.05860365554690361, -0.011523320339620113, -0.013944347389042377, -0.008774522691965103, 0.01057515200227499, -0.03031681664288044, -0.021885748952627182, 0.01437346637248993, 0.000052333183703012764, 0.024090243503451347, 0.0015696947230026126, -0.02952570840716362, 0.021212993189692497, -0.009718121029436588, -0.01626952923834324, 0.01878666691482067, 0.03290937840938568, -0.016715427860617638, -0.023301053792238235, -0.030760927125811577, 0.00783658865839243, 0.030086513608694077, 0.0018070016521960497, 0.012324439361691475, -0.014652552083134651, -0.01573326624929905, -0.011435949243605137, 0.0006533448467962444, -0.029778556898236275, 0.02882619947195053, -0.011494633741676807, 0.03195524215698242, -0.01739274337887764, 0.012898600660264492, -0.02395535074174404, -0.00831472035497427, 7.929754116900623e-33, -0.015417753718793392, -0.013281515799462795, -0.041315436363220215, 0.004890405107289553, -0.008999555371701717, -0.03109664097428322, 0.011028583161532879, 0.010423746891319752, -0.04827413335442543, 0.04451741650700569, -0.019040947780013084, -0.01056696753948927, -0.014587375335395336, 0.013326955959200859, 0.026475874707102776, -0.015977319329977036, 0.03037782944738865, -0.021572448313236237, 0.040808141231536865, 0.015535636804997921, 0.011059450916945934, 0.012420108541846275, 0.009849381633102894, -0.0074625164270401, 0.013266569003462791, 0.06940677016973495, -0.031061410903930664, 0.004779178183525801, 0.01089559867978096, 0.01702565886080265, 0.01149732805788517, 0.0031399603467434645, 0.0355900414288044, -0.04347945377230644, -0.009125872515141964, 0.01567087136209011, 0.007683664560317993, -0.0041211508214473724, 0.038576506078243256, 0.005286527797579765, 0.037162747234106064, 0.000789259560406208, 0.021916037425398827, -0.006013649050146341, -0.0024372118059545755, 0.009106575511395931, -0.008488180115818977, 0.006235343404114246, 0.019253073260188103, 0.031326036900281906, -0.00319481804035604, -0.008124040439724922, -0.01893811859190464, -0.02522643283009529, -0.02772044576704502, -0.030145274475216866, 0.003030790016055107, -0.0015204038936644793, -0.04443482309579849, 0.03935740515589714, -0.004806238692253828, -0.027093980461359024, -0.02689121663570404, -0.009737097658216953, -0.019458161666989326, -0.01467619277536869, -0.026466166600584984, -0.03414659947156906, 0.022657060995697975, 0.01723352074623108, -0.026751985773444176, 0.0010569619480520487, 0.019699478521943092, 0.04657912626862526, 0.010875001549720764, -0.026749201118946075, -0.0025100556667894125, 0.010477060452103615, -0.011118078604340553, 0.05135033279657364, 0.01774323172867298, -0.0036421790719032288, 0.01534926239401102, 0.019089514389634132, -0.026336228474974632, -0.01830899901688099, -0.008620738983154297, 0.017317650839686394, -0.010308449156582355, -0.039189137518405914, -0.003663575742393732, -0.02143922448158264, 0.010771152563393116, -0.001097512780688703, 0.017133202403783798, -1.3539578347376846e-8, -0.03683697059750557, 0.026769891381263733, -0.03393227607011795, -0.005163226742297411, 0.012184962630271912, 0.007699077948927879, -0.019690368324518204, -0.011611982248723507, -0.006419190671294928, -0.006695237010717392, 0.0047320411540567875, -0.011477135121822357, 0.00788815226405859, -0.017399556934833527, 0.009426632896065712, -0.01680474728345871, 0.019698766991496086, -0.02594377100467682, 0.020512402057647705, 0.006014336831867695, 0.002655881689861417, 0.06449542194604874, -0.030535385012626648, 0.0013671166962012649, -0.017605463042855263, -0.004547706805169582, -0.0011522622080519795, -0.06732330471277237, 0.004018958192318678, 0.03250511363148689, 0.002843692200258374, -0.017753776162862778, -0.04485054314136505, 0.018444787710905075, -0.0330754853785038, -0.031205806881189346, 0.0004008990654256195, 0.003277919953688979, -0.020749974995851517, 0.004699926823377609, 0.022473635151982307, 0.022047070786356926, 0.005670790560543537, -0.027437642216682434, -0.02356099709868431, 0.0026746352668851614, 0.02344057336449623, -0.013745326548814774, 0.008213430643081665, -0.03859656676650047, 0.01558365486562252, 0.023889979347586632, 0.030081452801823616, 0.04600418359041214, 0.00642824824899435, 0.032063428312540054, 0.0078521016985178, -0.0036279712803661823, -0.016608625650405884, 0.019578177481889725, -0.006946077104657888, 0.026492120698094368, -0.020279573276638985, -0.02985423430800438 ]
f-what-ive-learnt-so-far
https://markhneedham.com/blog/2009/06/30/f-what-ive-learnt-so-far
false
2009-06-08 17:05:46
Pair Programming: So you don't want to do it...
[ "pair-programming" ]
[ "Pair Programming" ]
I've worked on several software development teams over the last few years - some that pair programmed all the time and some that didn't - and one of the key things that I've noticed is that the level of collaboration on these teams was significantly higher when pair programming was being done on a regular basis. The following are some of the observations I have noticed in teams which don't pair program frequently. == A culture of silence The amount of communication in a team which doesn't pair is almost by that very definition going to be lower than in one that does - you don't have that almost constant dialogue/discussion going on that you get when a pair are at the keyboard since everyone is head down coding in their own little world. A consequence of this is that *other types of communication are also reduced*. When a room is full of people pairing it's not uncommon for someone to shout across the room for a colleague to come and help them and their pair with something. Since there is already a lot of communication going on this doesn't feel that unusual and since other people in the room might hear us speaking we can also get the benefits of http://alistair.cockburn.us/Osmotic+communication[osmotic communication]. When we don't have that it feels very awkward to do this and in fact often the person you call won't actually hear you since their head is down and focused on the task their working on. The inclination the next time you need help is to just work it out yourself, further harming team collaboration. == Code silos Another consequence of having people working alone is that *people become very specialised in certain areas of the code base* and then when they either leave the project or are ill there isn't anyone else who knows their area to work in that area of the code. It becomes obvious that we have silos in the code base when code starts to be referred to as "X's code' or 'X's way of doing things". Another danger sign is when there is a lot of talk about "handovers" - a sure sign that collaboration hasn't been taking place. One way to address this problem without pair programming is to mandate that code reviews must be done before code written alone is checked into the source control system. The problem with this is that there isn't really way to enforce it if people don't want to have their code looked at by someone else beyond reverting their changes which seems perhaps over confrontational. == Repeated code The tendency to end up with *several people solving the same problem* is one that rears itself quite frequently when people are working alone. Since each developer doesn't have as much visibility into what their colleagues have been working on - the sharing of knowledge that pair programming encourages is absent - we often end up with several sub par solutions to the same problem instead of collaborating to come up with one good solution. Repeated code is perhaps the biggest waste of any developer's time - we are adding no value at all by doing it and are creating confusion for our colleagues as they now don't know which bit of code is the correct one to use. == In Summary I'm sure there are ways to overcome these problems but I've never seen it done effectively without having people working together more closely. I'd be interested in hearing ways that others have created collaborative teams without having developers collaborating closely by using a practice such as pair programming.
null
null
[ 0.027149612084031105, 0.014681795611977577, -0.019780345261096954, 0.026942448690533638, 0.07089545577764511, 0.017727894708514214, 0.03388562053442001, 0.04924532771110535, 0.024087198078632355, -0.043715596199035645, -0.04215610399842262, 0.0038767769001424313, -0.06528716534376144, 0.010374373756349087, -0.05444933474063873, 0.08777482062578201, 0.07005193829536438, -0.0056151654571294785, 0.009175118990242481, 0.004068893380463123, 0.0411621555685997, 0.07135291397571564, 0.01558601949363947, 0.037885632365942, 0.049765631556510925, 0.005995133891701698, 0.0029241214506328106, -0.0038824097719043493, -0.040947429835796356, -0.007033724803477526, 0.05731908604502678, -0.0007777427090331912, 0.015690002590417862, -0.018049607053399086, 0.006928753573447466, -0.017857050523161888, -0.013666843064129353, 0.033389244228601456, 0.017371421679854393, 0.007960425689816475, -0.05334194004535675, 0.040492016822099686, -0.012465056963264942, -0.000007995693522389047, -0.037941381335258484, 0.01363949105143547, -0.04584505036473274, 0.031157974153757095, 0.0013494656886905432, 0.00646193278953433, -0.06422923505306244, 0.008348620496690273, -0.0009513258701190352, -0.0034798262640833855, -0.021240204572677612, 0.039411935955286026, 0.018140289932489395, -0.04999912530183792, -0.00306690763682127, -0.050481926649808884, -0.0006788132595829666, -0.015958990901708603, 0.008609004318714142, 0.02834092639386654, 0.025407806038856506, -0.029896529391407967, 0.015995467081665993, 0.026690194383263588, -0.028758017346262932, 0.01761496253311634, -0.01613469235599041, 0.00711872149258852, -0.04559893533587456, -0.03183634579181671, -0.006838085595518351, -0.053630854934453964, 0.004488199949264526, 0.05999098718166351, 0.02545059658586979, 0.054508648812770844, -0.01178576797246933, 0.02275468036532402, -0.023244274780154228, 0.03437894210219383, -0.01684536226093769, -0.04074074700474739, 0.012361540459096432, -0.0110721280798316, -0.06766719371080399, 0.04783955216407776, 0.01699640043079853, -0.0764821395277977, 0.020968519151210785, 0.03820386901497841, -0.006422598846256733, 0.032436106353998184, 0.026371223852038383, 0.01751355640590191, -0.00908429641276598, -0.021211516112089157, -0.02812105603516102, -0.019484495744109154, -0.005634564906358719, 0.012066509574651718, -0.07795397192239761, 0.007831682451069355, 0.0035918871872127056, -0.00898653268814087, -0.011527569964528084, 0.0068990024738013744, -0.024827120825648308, 0.004317272454500198, -0.011781597509980202, 0.013549359515309334, -0.07705576717853546, 0.07156858593225479, 0.0007652880158275366, -0.04339492693543434, -0.013012251816689968, -0.008088307455182076, 0.04118730500340462, 0.02887403592467308, -0.010481664910912514, 0.08493869006633759, -0.009134085848927498, 0.030165594071149826, -0.04532147943973541, 0.0505371131002903, -0.025753984227776527, -0.052688561379909515, -0.018041322007775307, 0.05697016790509224, -0.04269212856888771, -0.007604518905282021, 0.0025312171783298254, -0.021380659192800522, 0.0034179543145000935, 0.013699609786272049, -0.0022124662064015865, 0.0670253336429596, -0.014395673759281635, -0.024849627166986465, 0.021813541650772095, 0.025162357836961746, 0.023523980751633644, 0.001021199976094067, -0.02211330458521843, -0.028783584013581276, -0.03074571304023266, -0.014223538339138031, 0.002887243404984474, 0.01774495467543602, 0.025796500965952873, -0.0492541529238224, 0.04200156778097153, 0.08301717042922974, 0.04889605566859245, 0.01683235354721546, 0.005624939221888781, 0.02547905594110489, 0.024169471114873886, 0.016426686197519302, -0.005159894935786724, 0.029875120148062706, 0.014088870957493782, 0.0035882345400750637, -0.012698594480752945, 0.030888300389051437, -0.0009983780328184366, 0.03744575008749962, -0.061755578964948654, -0.027924450114369392, 0.039276592433452606, -0.04752754047513008, -0.022203242406249046, 0.036224883049726486, 0.06870435178279877, 0.029057186096906662, 0.032071929425001144, 0.013505305163562298, -0.07929226011037827, 0.02335229702293873, 0.004976747091859579, 0.02057669870555401, 0.039796534925699234, -0.012490197084844112, 0.05128397047519684, 0.03149046376347542, -0.01965591125190258, 0.036503639072179794, -0.07159607112407684, -0.08182456344366074, -0.013540088199079037, -0.007977694272994995, 0.05553533881902695, -0.053679950535297394, 0.008389163762331009, 0.06872934848070145, 0.01610059104859829, 0.03145419806241989, 0.026296522468328476, 0.01190074160695076, 0.016203498467803, -0.020838897675275803, -0.05783711373806, 0.07886943966150284, 0.04689294844865799, 0.0012554904678836465, -0.06492140889167786, 0.01784009113907814, -0.007578448858112097, -0.011362557299435139, 0.040405914187431335, -0.027606811374425888, 0.06073509529232979, -0.0031777750700712204, 0.043942056596279144, -0.03383081406354904, 0.04247257485985756, -0.055071815848350525, -0.002194287721067667, 0.000032418778573628515, -0.0022974666208028793, 0.019178180024027824, 0.0019545811228454113, 0.09938602149486542, 0.08247974514961243, -0.05529598519206047, -0.04093893989920616, 0.03967215120792389, 0.025611642748117447, -0.043992601335048676, 0.0037995243910700083, 0.002919964026659727, -0.0036020036786794662, -0.006650984287261963, -0.06285024434328079, -0.04148009791970253, 0.005089487414807081, -0.04376408830285072, -0.012662852182984352, 0.0641825720667839, -0.021103348582983017, 0.06580955535173416, -0.01751136966049671, -0.029706921428442, 0.012462247163057327, -0.021360931918025017, -0.029402442276477814, 0.02772250585258007, -0.0025723183061927557, -0.02382984384894371, 0.046957239508628845, -0.031010989099740982, -0.031204216182231903, -0.047416459769010544, -0.0030897585675120354, 0.006275842897593975, 0.05240454152226448, 0.043517835438251495, -0.004429371561855078, 0.050471238791942596, -0.005193695891648531, 0.009933924302458763, -0.009297397918999195, -0.048710037022829056, -0.043959036469459534, -0.012073452584445477, 0.003957786597311497, 0.00007602500409120694, -0.006661185063421726, 0.008804203011095524, 0.012631810270249844, 0.007833617739379406, -0.013335033319890499, 0.005547111388295889, 0.01321439165621996, -0.006652469746768475, 0.003998975735157728, -0.0387619324028492, -0.011207612231373787, 0.03425014019012451, -0.030117737129330635, -0.03089670091867447, -0.005609001033008099, -0.07121486961841583, 0.045882005244493484, -0.08088654279708862, -0.05105208978056908, -0.013631291687488556, 0.017134474590420723, 0.040525633841753006, -0.0031287935562431812, 0.013364016078412533, 0.06526435911655426, 0.000157953763846308, 0.031858887523412704, 0.013070113025605679, -0.004849286284297705, 0.0479261688888073, 0.031578853726387024, -0.008651012554764748, 0.024316733703017235, -0.025050174444913864, -0.022617070004343987, -0.05396314337849617, 0.06969559192657471, -0.03144267201423645, -0.28484031558036804, 0.034313883632421494, 0.0061083524487912655, -0.038125306367874146, 0.0265155341476202, -0.021787960082292557, 0.021299107000231743, -0.04369697719812393, -0.030646545812487602, 0.026146944612264633, -0.048681020736694336, -0.033870842307806015, -0.006560181733220816, 0.044770173728466034, 0.003950811456888914, 0.02080724760890007, 0.007971628569066525, -0.04126562923192978, 0.004799981601536274, 0.0540701262652874, -0.013824857771396637, -0.053558215498924255, -0.009919672273099422, 0.031777165830135345, 0.04145773500204086, 0.0563923642039299, -0.0736956000328064, 0.033188506960868835, -0.06251740455627441, -0.011204962618649006, -0.010161051526665688, 0.012116280384361744, 0.016648512333631516, -0.027459746226668358, -0.012641571462154388, -0.018873760476708412, 0.05085281282663345, 0.005448866635560989, -0.010069819167256355, 0.030917447060346603, -0.0135872233659029, -0.0330839566886425, -0.00001416681243426865, 0.005619041156023741, 0.06299546360969543, 0.010971317067742348, -0.08542898297309875, 0.00041932292515411973, -0.0254896841943264, 0.08625900745391846, -0.053722552955150604, -0.03589852526783943, 0.006021745502948761, 0.03726627305150032, -0.010691882111132145, -0.035126931965351105, -0.010571757331490517, -0.00792296975851059, -0.02033647894859314, -0.018414003774523735, -0.03822178393602371, -0.02947911247611046, -0.0096958689391613, -0.05927899479866028, 0.01846987009048462, -0.05300793796777725, -0.07494834810495377, -0.009961475618183613, 0.07000166177749634, -0.0009179064654745162, -0.04222320765256882, 0.008013585582375526, -0.0018815790535882115, -0.10868924856185913, -0.015581184066832066, 0.004593756981194019, -0.026418965309858322, -0.014957455918192863, 0.02940329909324646, 0.04897601902484894, -0.025131430476903915, -0.06872258335351944, 0.021935967728495598, 0.006020208355039358, 0.037571802735328674, -0.004981976002454758, 0.04071720317006111, 0.02145828679203987, -0.0329468697309494, 0.0041595869697630405, 0.060491226613521576, 0.00924517959356308, -0.04674553871154785, -0.006080146878957748, 0.027168458327651024, -0.005264912731945515, 0.022265655919909477, 0.0011367584811523557, -0.006894578691571951, 0.03615569695830345, -0.019067881628870964, -0.050842512398958206, 0.02605612762272358, -0.012189861387014389, 0.0029644283931702375, -0.013247957453131676, -0.0547657273709774, 0.02717544324696064, 0.043418459594249725, 0.04764329269528389, 0.006743215024471283, -0.030911050736904144, 0.007910010404884815, -0.04963807016611099, -0.0188513845205307, -0.024182448163628578, 0.01014464907348156, 0.049475736916065216, -0.016633938997983932, 0.0007249063928611577, -0.04960416257381439, 0.014110749587416649, -0.0026993693318217993, 0.024163471534848213, -0.075237937271595, -0.00765394838526845, -0.038110893219709396, -0.03464099392294884, 0.011317950673401356, 0.014517342671751976, -0.021678132936358452, 0.038763079792261124, 0.034076496958732605, -0.04014143347740173, 0.014634257182478905, -0.00586434593424201, -0.06760618090629578, -0.015282915905117989, -0.026548055931925774, -0.016838356852531433, 0.011338469572365284, 0.03130655735731125, -0.014161690138280392, 0.010266801342368126, 0.03504234924912453, 0.010660119354724884, 0.016995878890156746, -0.03006145730614662, 0.04055898264050484, 0.014590575359761715, 0.006725330371409655, -0.06738382577896118, 0.01695200800895691, -0.03143705055117607, -0.032706040889024734, -0.03138256072998047, 0.030370835214853287, -0.007224120199680328, -0.04065314680337906, -0.0036256900057196617, -0.000036670066037913784, -0.05396044999361038, -0.041825536638498306, -0.03594324365258217, 0.059210825711488724, 0.05921829119324684, -0.012704097665846348, 0.001767058507539332, -0.03441518545150757, -0.013993280939757824, -0.01444148551672697, 0.03348575904965401, -0.05931307002902031, -0.0030487626791000366, 0.011979226022958755, 0.012916773557662964, -0.008661212399601936, 0.0027049570344388485, 0.04434724524617195, 0.018423432484269142, 0.025429515168070793, -0.003054250031709671, -0.006051651202142239, 0.022078728303313255, 0.046614162623882294, 0.020120253786444664, 0.010674847289919853, -0.019855787977576256, -0.011261329054832458, -0.018154805526137352, -0.040744028985500336, -0.019830554723739624, -0.013113937340676785, 0.025073997676372528, -0.039075691252946854, -0.06242748722434044, 0.03182593360543251, 0.04842235893011093, 0.015035068616271019, 0.018031243234872818, -0.0071893841959536076, 0.02820458635687828, -0.02713068202137947, 0.01842861995100975, 0.06716110557317734, -0.07201878726482391, 0.028546543791890144, -0.00483815697953105, -0.017438992857933044, -0.0038499971851706505, -0.02602999657392502, -0.029644165188074112, -0.04183478653430939, -0.03156620264053345, 0.01634649559855461, -0.07753826677799225, -0.021510634571313858, -0.011616451665759087, 0.0073697431944310665, -0.009121102280914783, -0.02610131725668907, -0.028069768100976944, -0.009940708987414837, -0.02678762935101986, -0.0346698984503746, 0.009582887403666973, -0.04066082835197449, 0.03792751207947731, 0.006722049321979284, -0.028252078220248222, -0.004220796748995781, -0.03200207278132439, 0.01783568598330021, 0.006082517560571432, -0.019181353971362114, -0.017768586054444313, -0.025033095851540565, -0.008438237942755222, 0.01013940665870905, 0.033879417926073074, -0.007749709766358137, -0.032665424048900604, -0.025392819195985794, -0.02901914156973362, -0.040819499641656876, 0.010023882612586021, -0.027158595621585846, -0.010417914018034935, 0.019901465624570847, 0.057755373418331146, 0.032223932445049286, 0.030970923602581024, -0.007025835104286671, -0.012174109928309917, 0.03773069009184837, -0.04749426245689392, -0.04522988572716713, -0.026138773187994957, -0.050351910293102264, -0.011937987990677357, 0.005330646876245737, 0.007669643498957157, -0.03859623149037361, 0.030185025185346603, 0.025300433859229088, 0.04349088668823242, 0.039877451956272125, -0.004237995482981205, 0.02980193868279457, -0.06287353485822678, 0.007816811092197895, -0.08787920325994492, 0.0017737675225362182, 0.018095100298523903, 0.007136703003197908, -0.008665725588798523, -0.004204797558486462, -0.030977236106991768, 0.036132171750068665, -0.0639372318983078, -0.008679701946675777, 0.030506281182169914, 0.004406037740409374, -0.0024417079985141754, 0.03558730706572533, -0.08534673601388931, 0.02373947761952877, 0.017816508188843727, -0.051638517528772354, -0.019395628944039345, -0.01943778619170189, 0.05376032739877701, 0.0053835054859519005, 0.04786555841565132, -0.04081758111715317, -0.03226488083600998, 0.06830596178770065, 0.009257180616259575, 0.003842353355139494, 0.06814993172883987, -0.008808589540421963, 0.04648642987012863, 0.033021196722984314, 0.004867802374064922, -0.00924158375710249, 0.034678030759096146, 0.000056592787586851045, -0.06318161636590958, 0.006271325051784515, 0.017924003303050995, -0.04097454249858856, -0.02454284578561783, 0.06573771685361862, 0.021428663283586502, -0.03357920050621033, -0.029354505240917206, 0.000008891726793081034, -0.06323122978210449, 0.011659118346869946, -0.01812800206243992, -0.0153181292116642, -0.06509952247142792, 0.05006321892142296, 0.00729131605476141, 0.006081193219870329, 0.06137039512395859, 0.017819562926888466, -0.02767014689743519, -0.003574807895347476, 0.10425468534231186, 0.08292968571186066, 0.06672069430351257, 0.025042923167347908, 0.05941403657197952, -0.013700846582651138, -0.03727271780371666, 0.011637462303042412, -0.0051937103271484375, -0.03647454082965851, -0.010497499257326126, 0.01932603493332863, 0.047397177666425705, -0.013249191455543041, 0.06683073937892914, -0.0019873743876814842, -0.024476831778883934, 0.0043099713511765, 0.03685435280203819, 0.01599889248609543, 0.07987472414970398, 0.0172930546104908, 0.022721489891409874, -0.023532070219516754, -0.04329436644911766, 0.03664613887667656, -0.027449822053313255, -0.006342890206724405, 0.01819971576333046, 0.0026019911747425795, 0.013845457695424557, 0.027082404121756554, 0.02607906423509121, 0.08028747886419296, -0.03418773040175438, 0.00818865466862917, -0.00976619590073824, 0.02968556247651577, -0.036191802471876144, 0.01648041605949402, -0.02084174193441868, -0.03208877518773079, 0.008750700391829014, -0.024868298321962357, -0.03755072504281998, -0.022557999938726425, -0.010563497431576252, 0.06394066661596298, -0.014468187466263771, 0.011094562709331512, 0.014812548644840717, 0.02668573334813118, -0.026965444907546043, -0.06441930681467056, -0.04028042405843735, -0.04092913866043091, -0.03263473883271217, -0.026412298902869225, 0.030339866876602173, 0.004114474635571241, -0.031233225017786026, 0.01098986342549324, -0.023032642900943756, -0.030604423955082893, 0.03062800131738186, -0.04889051616191864, -0.024270769208669662, 0.023707730695605278, 0.02959304489195347, 0.04531475156545639, 0.015347369946539402, 0.05077540501952171, -0.024820813909173012, 0.008794096298515797, -0.03112422488629818, 0.019049841910600662, 0.016657577827572823, 0.015186329372227192, -0.0036628281231969595, -0.06794901937246323, 0.002614881843328476, 0.03140755742788315, -0.012908105738461018, -0.07100818306207657, 0.037199389189481735, 0.007695753127336502, 0.009865324012935162, 0.040628932416439056, -0.014790182933211327, 0.020787684246897697, -0.046732403337955475, 0.0011691116960719228, -0.01742466352880001, 0.0339483767747879, 0.051309920847415924, -0.014396539889276028, 0.0904143750667572, 0.02278013527393341, -0.020172590389847755, -0.03361065313220024, -0.016338801011443138, 0.0030135917477309704, -0.004419438075274229, -0.017036501318216324, -0.031038381159305573, -0.017298296093940735, -0.07999089360237122, -0.023348286747932434, 0.020501744002103806, -0.03398962318897247, -0.039455167949199677, 0.04041755199432373, 0.024732651188969612, -0.03466535359621048, 0.029401564970612526, -0.0469246581196785, 0.042565569281578064, -0.020142756402492523, -0.01364611741155386, 0.013872926123440266, 0.021525079384446144, -0.0131935840472579, -0.011865805834531784, 0.024515097960829735, -0.037272535264492035, 0.015205773524940014, 0.013040154241025448, 0.023971231654286385, 0.04245153069496155, 0.001323216944001615, 0.021516377106308937 ]
[ -0.08934641629457474, 0.003532601287588477, -0.04775891453027725, -0.04173479974269867, 0.04613201320171356, -0.03952956944704056, -0.010022567585110664, 0.015468444675207138, 0.002134351059794426, -0.045160114765167236, 0.011433941312134266, 0.0033126482740044594, 0.032984644174575806, -0.027166079729795456, 0.08725319057703018, 0.00513770617544651, -0.025332139804959297, -0.0783451721072197, 0.013336035422980785, 0.018972555175423622, 0.004716822877526283, -0.05657697468996048, -0.03807200863957405, -0.02957548387348652, -0.0010595598723739386, 0.034257374703884125, 0.012952431105077267, -0.05453001707792282, 0.019725635647773743, -0.19146963953971863, -0.006184850819408894, 0.04053199291229248, 0.0674547404050827, -0.009661749005317688, 0.018103711307048798, 0.05819571018218994, 0.031882356852293015, -0.006000494118779898, -0.02230731025338173, 0.03381577134132385, 0.0032884441316127777, 0.023076675832271576, -0.03677773103117943, -0.04792141541838646, 0.0013990445295348763, 0.009773826226592064, -0.006066350266337395, -0.05209178477525711, -0.046858977526426315, 0.019476071000099182, -0.04673333466053009, -0.03734934329986572, -0.028920238837599754, 0.0003526219225022942, -0.018299199640750885, 0.049701131880283356, 0.02579917386174202, 0.06219198927283287, -0.02576659433543682, 0.02786380425095558, 0.011070957407355309, -0.03742467612028122, -0.12595993280410767, 0.05761924386024475, 0.05965041369199753, 0.05644238367676735, -0.04959873482584953, -0.021546397358179092, -0.018634594976902008, 0.08729320019483566, 0.015396294184029102, -0.022076111286878586, -0.015975940972566605, 0.028208086267113686, 0.02987905964255333, 0.008837718516588211, -0.004936790559440851, 0.02752171829342842, 0.035025421530008316, -0.05279619246721268, -0.037604618817567825, -0.02156018652021885, -0.005915065295994282, 0.006362213287502527, -0.0427774079144001, 0.019806338474154472, -0.0038261041045188904, 0.05012274906039238, 0.01828496716916561, 0.0030063483864068985, 0.02091418020427227, -0.0007479460909962654, 0.036755066365003586, -0.01407934445887804, -0.07738721370697021, 0.0013165378477424383, 0.0100786704570055, 0.013936014845967293, -0.0669359564781189, 0.4699282944202423, -0.04481250047683716, -0.03173067793250084, 0.09283413738012314, 0.037899669259786606, -0.007875838316977024, -0.0007830519462004304, 0.013489572331309319, -0.04024718329310417, 0.03185367211699486, -0.01576867699623108, 0.011645590886473656, 0.021996155381202698, 0.05920093134045601, -0.0276816226541996, 0.0195064228028059, 0.05249093100428581, 0.009961760602891445, 0.043892305344343185, 0.013704786077141762, -0.00917312502861023, 0.0021982507314532995, 0.015792233869433403, 0.018900688737630844, 0.018889879807829857, -0.009818874299526215, -0.023989124223589897, 0.02049354650080204, 0.05661774426698685, 0.03545733168721199, -0.009148385375738144, 0.07564263790845871, -0.028700945898890495, -0.02746950276196003, 0.010020582936704159, -0.027079759165644646, -0.0052306572906672955, 0.01001601293683052, -0.014480681158602238, -0.02636886201798916, 0.044529322534799576, 0.045825548470020294, -0.015450629405677319, 0.028774678707122803, -0.016660504043102264, -0.021287493407726288, 0.12643609941005707, 0.01141534186899662, -0.0157078318297863, -0.02267390675842762, -0.03901746869087219, 0.0020364688243716955, 0.028539374470710754, -0.003947047982364893, -0.044912103563547134, 0.02727755531668663, -0.006801951676607132, 0.10162375867366791, -0.01731310784816742, -0.0561324879527092, 0.016199083998799324, -0.005542706232517958, -0.013479458168148994, -0.07431107014417648, 0.03749556466937065, 0.09133795648813248, -0.08179562538862228, 0.004598465748131275, 0.007515464443713427, 0.032484862953424454, -0.060197971761226654, -0.02136196941137314, -0.0011353313457220793, 0.017023641616106033, -0.003477938938885927, 0.030274759978055954, -0.05025198310613632, -0.05360553413629532, 0.02433871664106846, 0.04572555795311928, 0.013676214031875134, 0.0007412980776280165, 0.03771619498729706, -0.03084596060216427, -0.00737056415528059, -0.029976142570376396, -0.07246904075145721, -0.04265662655234337, -0.0013650963082909584, -0.03362496942281723, 0.004024030640721321, -0.027991576120257378, -0.020152952522039413, -0.07127314060926437, 0.09508856385946274, -0.015197107568383217, -0.018599815666675568, 0.038167279213666916, -0.039214711636304855, -0.06110384687781334, -0.011549156159162521, -0.054289691150188446, 0.0480157844722271, -0.025973394513130188, 0.02522190287709236, -0.055994343012571335, 0.038669247180223465, 0.04156230390071869, -0.03446488082408905, 0.07359179854393005, 0.04292122647166252, -0.004117831587791443, -0.05352725088596344, 0.017841769382357597, 0.02803056873381138, 0.00515833031386137, -0.019126227125525475, -0.003787640016525984, 0.0437980517745018, 0.008579164743423462, 0.029242413118481636, -0.024819448590278625, 0.03568160906434059, -0.002306882292032242, -0.33918312191963196, -0.012407106347382069, -0.007210280280560255, -0.0007251737988553941, 0.0001760657614795491, -0.05337759479880333, 0.009229321032762527, -0.015553808771073818, -0.04211033508181572, 0.036220733076334, 0.11246087402105331, 0.007562914397567511, -0.016746141016483307, -0.06964496523141861, -0.007011385168880224, 0.030192341655492783, -0.045244891196489334, 0.013792806304991245, -0.03173598647117615, -0.0034099251497536898, 0.011806951835751534, 0.015290883369743824, -0.025900615379214287, -0.04030375927686691, -0.009021545760333538, -0.05317489057779312, 0.08983547985553741, -0.021735703572630882, 0.08862898498773575, -0.027790840715169907, 0.020362216979265213, 0.00183298927731812, 0.020374633371829987, -0.11992593109607697, 0.015192833729088306, -0.0002335535828024149, 0.011647643521428108, -0.04473292827606201, 0.03401707485318184, -0.02445126883685589, -0.07550890743732452, -0.001861218479461968, -0.06628001481294632, -0.016458958387374878, -0.06618978828191757, 0.0013092482695356011, -0.032191187143325806, -0.050550494343042374, -0.04313075169920921, 0.06172021105885506, 0.002199713373556733, -0.0022176746279001236, 0.016394149512052536, 0.005149431526660919, -0.01911900006234646, -0.04565400630235672, -0.08208803832530975, 0.016815118491649628, 0.012428700923919678, -0.007319582626223564, 0.036244865506887436, 0.05653252452611923, 0.004985931795090437, -0.05230056867003441, 0.022489359602332115, 0.006142968311905861, -0.0057318550534546375, 0.01566125452518463, 0.05764518305659294, 0.013366030529141426, 0.005219677463173866, 0.10862792283296585, 0.01450811605900526, -0.03428291156888008, 0.005752693396061659, 0.006911140400916338, -0.013431106694042683, -0.0016573281027376652, -0.0030491051729768515, -0.027532503008842468, 0.043532535433769226, -0.03415162116289139, 0.02439984679222107, -0.02094474621117115, 0.017415929585695267, 0.026150768622756004, 0.009791817516088486, -0.011618547141551971, 0.05329371616244316, 0.017414415255188942, -0.018544865772128105, -0.009292995557188988, 0.006969273556023836, -0.05287608131766319, 0.08306358754634857, 0.003738870844244957, -0.2583390176296234, -0.005261299200356007, 0.041769981384277344, 0.02181730791926384, -0.03029286488890648, 0.04044142737984657, 0.022962583228945732, -0.03892924636602402, -0.02060401625931263, -0.006848964840173721, 0.029926272109150887, 0.0010938600171357393, -0.0005251478287391365, -0.017632612958550453, 0.0553947277367115, 0.020889010280370712, 0.06627627462148666, -0.022930528968572617, 0.008842727169394493, -0.008666242472827435, 0.0035343850031495094, -0.022084593772888184, 0.14564001560211182, -0.007239704020321369, 0.060193151235580444, 0.007993909530341625, 0.003775925375521183, 0.04265100136399269, 0.06067996099591255, 0.0077736410312354565, -0.0035842638462781906, 0.00428201537579298, 0.03769192099571228, -0.021128883585333824, -0.010512497276067734, -0.04095858335494995, -0.0077586728148162365, 0.008958256803452969, 0.033832184970378876, 0.027698108926415443, 0.0012868735939264297, -0.006681981962174177, -0.004686048254370689, -0.000391509965993464, 0.06897734105587006, 0.026322072371840477, 0.0003170751442667097, -0.04096651077270508, -0.036228615790605545, -0.016614362597465515, -0.062440335750579834, -0.03943045064806938, 0.011976359412074089, 0.004930534400045872, 0.009684323333203793, 0.04658491909503937, 0.01106373593211174, -0.019430464133620262, -0.014868124388158321, 0.012909955345094204, -0.01524264644831419, -0.01865926943719387, 0.07193432003259659, 0.03928214684128761, 0.02198016084730625 ]
[ -0.012988689355552197, 0.013025203719735146, 0.003338697599247098, 0.013524442911148071, -0.021402627229690552, 0.02837563306093216, -0.018751421943306923, -0.010396873578429222, 0.03344547376036644, -0.010828493162989616, -0.03112761490046978, 0.008303752169013023, 0.017554545775055885, -0.00897076353430748, 0.017540404573082924, -0.0357455275952816, -0.010717371478676796, -0.03903217613697052, 0.037630099803209305, 0.02415386214852333, -0.021937698125839233, -0.006136089563369751, -0.023053646087646484, -0.022826844826340675, 0.026917360723018646, -0.0029298325534909964, -0.01954151690006256, -0.03558266907930374, 0.04292653873562813, -0.12480022758245468, -0.056801218539476395, 0.006411521229892969, 0.030150899663567543, 0.03370043262839317, 0.0024628581013530493, 0.007740424945950508, 0.04442434012889862, 0.04358215630054474, -0.008061380125582218, -0.0029339550528675318, -0.042509526014328, -0.005778396036475897, 0.02146211639046669, 0.011965999379754066, -0.023556208238005638, 0.0069511947222054005, -0.016024062409996986, -0.05368007346987724, -0.023011352866888046, -0.006263564340770245, -0.03916417807340622, 0.023647021502256393, 0.001221259357407689, 0.011482966132462025, 0.03578631579875946, 0.021059095859527588, 0.020929861813783646, -0.030162479728460312, -0.005090842954814434, -0.0002510115737095475, 0.002355030272156, -0.010814378038048744, -0.057014770805835724, -0.018399925902485847, -0.03935587406158447, 0.0013171168975532055, -0.008485283702611923, 0.020428169518709183, -0.031142136082053185, 0.0059545147232711315, -0.030313964933156967, -0.01930037885904312, -0.015803106129169464, -0.0267950352281332, 0.015487803146243095, 0.019402865320444107, 0.00655540032312274, -0.06029852107167244, 0.039927102625370026, -0.0287174042314291, -0.05512445792555809, 0.027335595339536667, 0.00383105780929327, 0.014240384101867676, 0.01543150283396244, -0.00915244035422802, 0.01685424894094467, 0.003023153869435191, 0.00038201999268494546, 0.00369047443382442, -0.05184575170278549, 0.058148644864559174, 0.004815882537513971, -0.0007121410453692079, -0.07331761717796326, 0.006517855916172266, -0.03398995101451874, 0.001994928577914834, -0.007168273441493511, 0.8428284525871277, -0.010435040108859539, 0.022706933319568634, 0.03459426760673523, -0.016853805631399155, 0.0047804671339690685, 0.023003477603197098, 0.054219186305999756, -0.022835705429315567, 0.01438486110419035, -0.021137412637472153, -0.005243299063295126, -0.014018520712852478, 0.0045179277658462524, 0.006960674654692411, 0.034737832844257355, 0.027139341458678246, 0.0330658033490181, 0.0361749604344368, 0.006630247924476862, -0.019250165671110153, 0.03230169415473938, -0.030764471739530563, 0.0008557685650885105, -0.01527284737676382, 0.028778385370969772, -0.15632395446300507, 0.020420201122760773, -8.34075175767022e-33, 0.03997613489627838, 0.024613607674837112, -0.011202121153473854, -0.020807389169931412, 0.007707953918725252, 0.0009701691451482475, 0.029698196798563004, 0.005391483660787344, -0.039276354014873505, -0.02519863285124302, 0.002484697150066495, -0.021645650267601013, 0.03704231604933739, -0.010069773532450199, 0.01080329529941082, -0.05191274359822273, 0.02700752392411232, 0.020348429679870605, -0.04037473350763321, 0.022978220134973526, 0.034357164055109024, 0.0326397679746151, -0.008263525553047657, 0.0029653250239789486, 0.0005765185342170298, -0.0023680003359913826, -0.031828444451093674, -0.0023434124886989594, 0.033493880182504654, -0.044832803308963776, -0.03193002566695213, 0.06012765318155289, -0.01813546195626259, -0.009899099357426167, -0.036422744393348694, -0.0257041584700346, -0.02228124998509884, 0.005341857671737671, -0.0005419718218035996, -0.03135482221841812, -0.02671755477786064, 0.015847571194171906, -0.03413785621523857, -0.04528405889868736, 0.03333134949207306, -0.02225319668650627, -0.002691514790058136, 0.023410357534885406, 0.005630435422062874, -0.04874492436647415, -0.011024441570043564, 0.048451606184244156, -0.017663322389125824, 0.03628789260983467, -0.011286655440926552, 0.012085577473044395, 0.008134467527270317, 0.0210884939879179, 0.0050481040962040424, 0.03617865964770317, 0.02197982929646969, -0.0037869333755224943, -0.020158590748906136, 0.012083451263606548, 0.025605054572224617, -0.00011662115139188245, -0.013217194937169552, -0.02192699909210205, 0.007783174514770508, -0.029333261772990227, -0.05557049438357353, -0.008032800629734993, 0.009873281233012676, -0.012068219482898712, 0.004321714863181114, 0.01677217334508896, -0.006135070696473122, 0.006026014219969511, 0.0028833358082920313, 0.018668711185455322, -0.01030711829662323, 0.012820297852158546, 0.014492064714431763, -0.026992857456207275, -0.022295575588941574, 0.0014386156108230352, 0.012259896844625473, -0.01174359954893589, -0.055490873754024506, 0.07295313477516174, -0.009153819642961025, 0.003990123048424721, 0.011177150532603264, -0.0155029920861125, 0.0013047595275565982, 8.141809624369117e-33, 0.00045185830094851553, -0.007578155491501093, -0.011275884695351124, -0.004010646138340235, 0.0460478849709034, 0.017493899911642075, 0.02574990876019001, -0.052357643842697144, -0.0476190559566021, 0.05522763729095459, 0.007392102852463722, -0.02084026113152504, -0.0013312981463968754, 0.0022372540552169085, 0.04853103682398796, -0.016703808680176735, 0.03157767653465271, -0.008240042254328728, 0.034772004932165146, 0.00426348065957427, 0.03969581052660942, 0.0021447271574288607, 0.024553285911679268, 0.029208576306700706, 0.02291860058903694, 0.027665449306368828, 0.01537331473082304, 0.019204290583729744, -0.0026634472887963057, -0.009034939110279083, -0.007377986330538988, -0.006142387632280588, -0.005133607424795628, -0.04176132380962372, 0.0319126732647419, 0.01438287366181612, -0.05086779594421387, -0.019707532599568367, -0.005073430482298136, -0.01650063507258892, -0.0005478962557390332, 0.008797625079751015, -0.013243735767900944, 0.030337000265717506, 0.04566686972975731, 0.007893245667219162, -0.012399386614561081, -0.027460584416985512, -0.02636849507689476, 0.0075728376396000385, 0.04593488574028015, 0.012665306217968464, -0.015380008146166801, -0.043873801827430725, -0.021438447758555412, -0.03084726072847843, -0.004650856833904982, -0.0025957312900573015, 0.008640849031507969, 0.00877194944769144, 0.002375070471316576, -0.016067111864686012, -0.03343953937292099, 0.005988001357764006, -0.0168825164437294, 0.007823518477380276, -0.013353615067899227, 0.041663944721221924, 0.012354699894785881, 0.012670254334807396, -0.01523851789534092, 0.012791607528924942, 0.0004690679779741913, 0.04930891841650009, -0.018355824053287506, -0.0009296007337979972, -0.029708385467529297, -0.04722914844751358, 0.0014700364554300904, 0.0048789773136377335, 0.004021506290882826, 0.03703192621469498, 0.027042469009757042, 0.010399708524346352, -0.0032560063991695642, 0.051524773240089417, 0.017484331503510475, 0.05555728077888489, -0.027611030265688896, 0.0024369859602302313, -0.02079797349870205, -0.03906005993485451, 0.03366760164499283, -0.027707690373063087, -0.017251184210181236, -1.3742812221551048e-8, 0.003954668994992971, 0.01973254233598709, 0.0006259134970605373, 0.00879502110183239, -0.025246992707252502, -0.010117467492818832, 0.010017209686338902, -0.01585008017718792, 0.007910151965916157, 0.024907469749450684, 0.03267626464366913, -0.023574303835630417, 0.014824108220636845, 0.022326594218611717, 0.054684609174728394, -0.007090948522090912, -0.005805532447993755, -0.018767796456813812, 0.024227401241660118, 0.001973825739696622, 0.01921721175312996, 0.03269602358341217, -0.04992106184363365, 0.04874790459871292, -0.021476473659276962, 0.002169618383049965, 0.026385366916656494, -0.05322772264480591, -0.01726618967950344, 0.008374917320907116, 0.03222158923745155, -0.01773396134376526, -0.05022990331053734, 0.01591651700437069, -0.012134055607020855, -0.03706808388233185, 0.008440900593996048, -0.010048976168036461, 0.02937980741262436, 0.0028689405880868435, -0.015339990146458149, 0.011318664066493511, -0.025052737444639206, -0.02399231679737568, 0.006874522659927607, 0.008009674027562141, -0.0337601937353611, -0.03344535455107689, -0.028634892776608467, -0.045501142740249634, 0.0251423642039299, 0.012539266608655453, -0.009622076526284218, 0.007133403327316046, 0.006002072244882584, 0.02609182521700859, -0.02093541994690895, -0.0031356799881905317, 0.01702093333005905, -0.0068062301725149155, -0.007512550335377455, 0.039857544004917145, -0.027957776561379433, -0.03643745183944702 ]
pair-programming-so-you-dont-want-to-do-it
https://markhneedham.com/blog/2009/06/08/pair-programming-so-you-dont-want-to-do-it
false
2009-06-08 11:57:39
Javascript: Using 'replace' to make a link clickable
[ "javascript" ]
[ "Javascript" ]
I've been doing a bit more work on my http://www.markhneedham.com/blog/2009/04/13/f-a-day-of-writing-a-little-twitter-application/[twitter application] over the weekend - this time taking the tweets that I've stored in CouchDB and displaying them on a web page. One of the problems I had is that the text of the tweets is just plain text so if there is a link in a tweet then when I display it on a web page it isn't clickable since it isn't enclosed by the '<a href"..."></a>' tag. Javascript has a 'replace' function which you can call to allow you to replace some characters in a string with some other characters. What I actually wanted to do was surround some characters with the link tag but most of the examples I came across didn't explain how to do this. Luckily I came across a http://www.webmasterworld.com/forum91/562.htm[forum post from a few years ago] which explained how to do it. In this case then we would make use of a matching group on links to create a clickable link: [source,javascript] ---- "Interesting post... Kanban & estimates http://tinyurl.com/p58o3r".replace(/(http:\/\/\S+)/g, "<a href='$1'>$1</a>"); ---- Which results in a tweet with a nice clickable link: [source,text] ---- "Interesting post... Kanban & estimates <a href='http://tinyurl.com/p58o3r'>http://tinyurl.com/p58o3r</a>" ----
null
null
[ 0.02773483283817768, 0.005400083493441343, 0.002491840161383152, 0.029634255915880203, 0.07409317046403885, 0.0028032674454152584, 0.034756164997816086, 0.06116866320371628, 0.013506394810974598, -0.014400112442672253, -0.020233992487192154, 0.001918007736094296, -0.07177980989217758, -0.0022911306004971266, -0.03732595965266228, 0.056118614971637726, 0.06689360737800598, -0.0026202823501080275, 0.02280552126467228, -0.004381101578474045, 0.022662119939923286, 0.07940870523452759, 0.009770259261131287, 0.008745822124183178, 0.052508801221847534, 0.03342251479625702, 0.02000400237739086, 0.012459506280720234, -0.029941555112600327, -0.0007065906538628042, 0.0378040187060833, 0.01838330738246441, -0.00931253656744957, -0.016590120270848274, 0.005159903783351183, -0.019620053470134735, -0.020815307274460793, 0.0013578247744590044, -0.004746114835143089, 0.01079220324754715, -0.07423455268144608, 0.051170457154512405, -0.012497996911406517, 0.04038951173424721, -0.03825335204601288, -0.011054919101297855, -0.05139083415269852, 0.011289788410067558, -0.01735655590891838, -0.005813985131680965, -0.06385210156440735, 0.040247511118650436, -0.005367690231651068, -0.006455936934798956, 0.006929880008101463, 0.05847485363483429, 0.014596947468817234, -0.07014493644237518, 0.0357939675450325, -0.02926616184413433, 0.008381952531635761, 0.01093971449881792, -0.006815582513809204, 0.05050328001379967, 0.005343965720385313, -0.017409024760127068, -0.004838941618800163, 0.056822218000888824, -0.02832065522670746, -0.012482131831347942, 0.016002822667360306, 0.02744664065539837, -0.026279766112565994, -0.018987612798810005, 0.04098641127347946, -0.04248753562569618, -0.031526606529951096, 0.07044175267219543, 0.02313009835779667, 0.045990291982889175, -0.019446441903710365, 0.017739148810505867, 0.03310813009738922, 0.043462980538606644, 0.004977033007889986, -0.039313171058893204, -0.04640033096075058, 0.002120928606018424, -0.0630655586719513, 0.058978840708732605, 0.007092535495758057, -0.04269879311323166, 0.03719708323478699, 0.02416309528052807, -0.00024320761440321803, 0.023046337068080902, 0.013855683617293835, 0.023703334853053093, -0.020441405475139618, -0.028239885345101357, -0.06407415121793747, -0.013177675195038319, 0.007054850924760103, -0.009631907567381859, -0.07402931153774261, 0.010815558023750782, -0.010706771165132523, 0.0134970061480999, 0.036565933376550674, -0.009797145612537861, -0.011177131906151772, 0.020606128498911858, -0.03272207826375961, -0.003950412850826979, -0.06047213450074196, 0.0520470105111599, 0.015312342904508114, -0.01188746839761734, -0.02222307026386261, 0.027991147711873055, 0.04561363905668259, 0.025007009506225586, -0.0037159810308367014, 0.07026215642690659, 0.008551190607249737, 0.027256924659013748, -0.010702398605644703, 0.03694590926170349, -0.03429991751909256, -0.04901750758290291, 0.002764463424682617, 0.06327452510595322, -0.013517184183001518, 0.0015596722951158881, -0.009563433937728405, -0.01716720499098301, -0.018916426226496696, -0.015235189348459244, 0.05710804462432861, 0.009104469791054726, -0.005747778341174126, -0.0404944084584713, -0.041896071285009384, 0.014401540160179138, 0.03751204162836075, 0.0015459314454346895, -0.0303523950278759, -0.027308166027069092, -0.029877666383981705, 0.038846705108881, 0.02530011720955372, -0.03714992478489876, 0.04650074616074562, -0.012664987705647945, -0.003137847175821662, 0.088748499751091, 0.05170400068163872, -0.013700046576559544, -0.00806663278490305, 0.03770478442311287, 0.04145142808556557, 0.0338766947388649, -0.023572469130158424, 0.03471922129392624, 0.010433905757963657, -0.03855873644351959, 0.0032921903766691685, 0.06426625698804855, -0.011512803845107555, -0.03140079230070114, -0.025721708312630653, -0.04333014413714409, 0.08219780027866364, -0.02635902166366577, 0.005403848830610514, 0.0394979789853096, 0.050854239612817764, -0.005376769695430994, 0.023140011355280876, 0.05303499475121498, -0.07477487623691559, 0.0545245036482811, 0.03843873739242554, 0.03303360939025879, 0.03128320351243019, -0.03160875663161278, 0.06624934822320938, 0.02726210467517376, 0.0016537850024178624, 0.02226918376982212, -0.09857694059610367, -0.08365901559591293, -0.03650354593992233, 0.018547549843788147, 0.08054284006357193, -0.03970782458782196, 0.005744429305195808, 0.06986675411462784, 0.049852702766656876, 0.029479289427399635, -0.010477183386683464, -0.017999017611145973, 0.03779567405581474, -0.06379816681146622, -0.05385676398873329, 0.04002385586500168, 0.02955898828804493, -0.04336578771471977, -0.047034431248903275, 0.0038837860338389874, -0.025343382731080055, 0.006077551748603582, 0.02414046786725521, -0.04941341280937195, 0.009335748851299286, 0.012806085869669914, 0.03811013326048851, -0.009547890163958073, 0.038382306694984436, -0.0416145958006382, 0.017714733257889748, 0.0024484614841639996, -0.004479010123759508, -0.023037191480398178, 0.004550717305392027, 0.14578877389431, 0.0342741496860981, -0.02572505921125412, -0.04885568097233772, -0.00230536051094532, -0.01734684407711029, -0.03595569357275963, 0.00874002929776907, -0.010825401172041893, -0.019798817113041878, 0.009905337356030941, -0.06813251227140427, -0.0423915721476078, 0.006040074862539768, -0.05209904909133911, 0.01717582903802395, 0.06618166714906693, -0.02981187403202057, 0.056180793792009354, -0.011448588222265244, -0.008327886462211609, 0.0033922207076102495, -0.052613765001297, -0.034208331257104874, -0.003987168427556753, 0.02549763396382332, -0.0052850921638309956, 0.01683206856250763, -0.055002856999635696, 0.01355281937867403, -0.015341999009251595, -0.04716631770133972, 0.017666807398200035, 0.03685777261853218, 0.055551256984472275, -0.012039504945278168, 0.0627070888876915, -0.008776016533374786, 0.018834294751286507, -0.030338633805513382, -0.02004890702664852, -0.04723697155714035, -0.00047663634177297354, -0.006128774490207434, 0.016012271866202354, 0.027974506840109825, 0.01233354490250349, -0.013921994715929031, 0.008885958231985569, -0.005380016751587391, 0.0018547963118180633, 0.02326016128063202, -0.02225288562476635, -0.003422277048230171, -0.029191935434937477, -0.038975708186626434, 0.05714374780654907, -0.028302108868956566, -0.05578871816396713, -0.03344093635678291, -0.08314495533704758, 0.030443022027611732, -0.05848710238933563, -0.04440387710928917, -0.01602320931851864, 0.010230042971670628, 0.037047404795885086, 0.026441391557455063, 0.007950177416205406, 0.051321521401405334, -0.01586359553039074, 0.010443883948028088, 0.007923073135316372, 0.0009887455962598324, 0.038407422602176666, -0.00866159237921238, 0.02881161868572235, 0.07052265107631683, -0.012734304182231426, -0.0022732792422175407, -0.052155155688524246, -0.004697189666330814, -0.02594715543091297, -0.27771079540252686, 0.07188083231449127, 0.0023452516179531813, -0.04364016279578209, 0.010162404738366604, -0.03774431720376015, 0.026538459584116936, -0.04727141186594963, -0.02009715512394905, 0.020032016560435295, -0.004103562794625759, 0.00847161840647459, -0.027129489928483963, -0.004540968220680952, -0.022408435121178627, -0.023229341953992844, -0.0017380309291183949, -0.02769041433930397, 0.002068870235234499, 0.022298570722341537, -0.012564210221171379, -0.05749386176466942, -0.0020459468942135572, 0.04382786527276039, 0.03256410360336304, 0.050746940076351166, -0.07548924535512924, 0.03413023799657822, -0.017063159495592117, 0.004797713831067085, 0.011117897927761078, -0.023775307461619377, 0.02157840132713318, 0.004176077898591757, -0.018444707617163658, -0.008330395445227623, 0.056857697665691376, -0.026167815551161766, 0.0009736757492646575, 0.01811821758747101, -0.02550610899925232, -0.0045555164106190205, 0.0029718754813075066, -0.024983787909150124, 0.07550615072250366, 0.004948517773300409, -0.04610219970345497, 0.021891815587878227, -0.028747525066137314, 0.07462682574987411, 0.004591900855302811, -0.06988212466239929, -0.022154677659273148, 0.03440446779131889, 0.025473007932305336, -0.03322829306125641, -0.03141113743185997, -0.02901013195514679, -0.03536098822951317, -0.05108785256743431, 0.0024026036262512207, -0.02045195735991001, -0.027151068672537804, -0.011769698932766914, -0.01246725395321846, -0.061959851533174515, -0.0659094974398613, -0.005045116879045963, 0.0803462490439415, 0.033715732395648956, -0.029374469071626663, 0.03566961735486984, -0.012730484828352928, -0.09215832501649857, 0.01823641173541546, -0.006177832372486591, -0.023465007543563843, 0.013237426988780499, -0.006004164926707745, 0.03957156091928482, -0.035008907318115234, -0.031675368547439575, 0.0011612140806391835, -0.0002906744775827974, 0.014464731328189373, -0.042820900678634644, 0.04587635025382042, -0.007534019183367491, 0.003799180965870619, -0.014566137455403805, 0.08908205479383469, -0.03789953887462616, -0.049502111971378326, 0.01924739219248295, -0.009333954192698002, 0.02733572944998741, 0.0287229735404253, -0.003349951235577464, -0.006474015302956104, 0.047211889177560806, 0.07199160754680634, -0.039665017277002335, 0.007390385027974844, -0.03821469098329544, -0.01954459957778454, 0.01863502338528633, -0.06315111368894577, 0.0246560201048851, -0.0037861911114305258, 0.016850126907229424, -0.0421685166656971, -0.03709852322936058, -0.01160234585404396, -0.026218606159090996, -0.027928588911890984, -0.023545600473880768, 0.008736331015825272, 0.004121129866689444, -0.009125477634370327, -0.05302153900265694, -0.016275789588689804, 0.018379302695393562, 0.02754613570868969, 0.011691915802657604, -0.05908183753490448, -0.01969163864850998, 0.020573897287249565, -0.006730755791068077, 0.045352376997470856, -0.008756428025662899, 0.02466283179819584, 0.009484648704528809, -0.013747621327638626, -0.019228186458349228, 0.035064660012722015, -0.042610421776771545, -0.012453333474695683, -0.04134831205010414, 0.01709841750562191, -0.0049715605564415455, 0.011088330298662186, -0.004679002799093723, -0.01826712302863598, -0.006324783433228731, 0.06771533936262131, 0.005572386085987091, 0.00131161545868963, 0.0017859798390418291, 0.0026444157119840384, 0.01755196787416935, -0.014879914931952953, -0.02891998179256916, -0.014574402943253517, -0.008032718673348427, -0.022139493376016617, -0.017180820927023888, 0.03710374981164932, -0.001704351743683219, 0.004071029368788004, -0.02471880428493023, 0.004012138582766056, -0.04322526976466179, -0.015738433226943016, 0.051150448620319366, -0.01860707625746727, 0.019635403528809547, -0.01101654302328825, 0.048996273428201675, -0.001173231634311378, -0.016454577445983887, 0.008201059885323048, 0.007221701554954052, -0.001015221350826323, -0.018284039571881294, 0.007406614255160093, -0.02097216621041298, -0.015936337411403656, 0.032820142805576324, 0.017974141985177994, 0.0396440289914608, 0.035185035318136215, -0.029789533466100693, 0.028799807652831078, 0.021467896178364754, 0.05930745229125023, 0.03037446364760399, -0.0187007375061512, 0.008885744959115982, -0.04383654147386551, -0.0210513174533844, -0.02263106405735016, -0.027235137298703194, -0.015464033000171185, 0.011137005873024464, -0.024888884276151657, -0.08797603845596313, 0.04098343476653099, -0.0031505057122558355, 0.0008173047681339085, 0.0379810594022274, -0.023531166836619377, 0.014210152439773083, -0.05810710787773132, 0.04749499633908272, 0.03038356639444828, -0.04521413519978523, -0.009617157280445099, -0.02577214501798153, -0.007404009811580181, 0.0076762656681239605, 0.032876648008823395, -0.07012515515089035, 0.009374039247632027, -0.02963223122060299, 0.037336524575948715, -0.044478535652160645, -0.019075652584433556, -0.03085448034107685, 0.029423363506793976, -0.015335090458393097, 0.014235512353479862, -0.02063537947833538, -0.015854891389608383, 0.012309605255723, -0.03515822812914848, 0.03068075142800808, -0.01804056204855442, -0.033356938511133194, 0.03673620894551277, -0.05638044327497482, 0.03245081380009651, -0.017096133902668953, 0.04283338040113449, 0.05616290494799614, -0.03200169652700424, 0.0017482686089351773, -0.04415248706936836, 0.006261247675865889, -0.012653271667659283, 0.04496781527996063, -0.0030792432371526957, -0.02941194176673889, -0.03428198769688606, 0.01163390465080738, -0.05606973543763161, -0.014419902116060257, -0.042589254677295685, 0.006778815295547247, 0.014978855848312378, 0.053944870829582214, 0.03315224125981331, 0.013024215586483479, -0.027828777208924294, -0.02119196578860283, 0.03256460279226303, -0.04808323085308075, -0.044465288519859314, -0.023901358246803284, -0.017767203971743584, 0.02261609025299549, 0.015974754467606544, 0.015900060534477234, -0.03908965736627579, 0.02714601345360279, 0.025596238672733307, -0.005879077594727278, 0.04333391413092613, -0.021817374974489212, 0.035836637020111084, -0.03908929228782654, -0.02007400244474411, -0.0689614862203598, -0.006476142443716526, 0.02037689834833145, -0.010861583054065704, 0.004289641045033932, 0.001521583879366517, -0.028922520577907562, 0.010173619724810123, -0.06371557712554932, -0.02574034593999386, 0.02382068894803524, -0.011707093566656113, -0.009807810187339783, 0.02771707996726036, -0.057782597839832306, 0.04636913537979126, 0.01753191277384758, -0.04922118037939072, -0.04823211580514908, -0.0044113690964877605, 0.06526980549097061, -0.013467307202517986, 0.005458883009850979, -0.0321466401219368, 0.002074695425108075, 0.07101015001535416, 0.021738827228546143, 0.02114354819059372, 0.06624174118041992, 0.003146153874695301, 0.019554737955331802, 0.0320955365896225, -0.007222525775432587, 0.02560555748641491, 0.00135185441467911, -0.03996817767620087, -0.0548141784965992, 0.01963401958346367, 0.02339412271976471, -0.02398527041077614, -0.022223833948373795, 0.07516878098249435, 0.035251468420028687, -0.03872456029057503, -0.032833367586135864, 0.01044749841094017, -0.018653439357876778, -0.021210653707385063, -0.04524225741624832, 0.008990516886115074, -0.02437477745115757, 0.06060729920864105, -0.005093207582831383, -0.009791672229766846, 0.08025126904249191, -0.00838377233594656, 0.011161013506352901, -0.03842615336179733, 0.06272392719984055, 0.10237234830856323, 0.0808376595377922, 0.0005855800118297338, 0.044081926345825195, -0.0005653654225170612, -0.052412308752536774, 0.009891604073345661, 0.012572702020406723, 0.006360928062349558, -0.002802659757435322, -0.018933575600385666, 0.06385747343301773, -0.04787988215684891, 0.08960210531949997, 0.0063775391317903996, -0.024115387350320816, -0.04452691599726677, 0.0038596102967858315, -0.0044442443177104, 0.01291298121213913, 0.009270848706364632, 0.043497636914253235, -0.020040608942508698, -0.012163564562797546, 0.0682729035615921, -0.020333752036094666, -0.01133238710463047, 0.035232871770858765, -0.01131944265216589, 0.016682026907801628, 0.021367080509662628, 0.043525222688913345, 0.07693027704954147, -0.04242516681551933, 0.004033443983644247, 0.01290500070899725, 0.025189105421304703, -0.016811665147542953, 0.051143672317266464, 0.016023200005292892, 0.005722428672015667, -0.03125172108411789, -0.010901608504354954, 0.02371176891028881, -0.009078431874513626, -0.0071486420929431915, 0.04506013169884682, -0.038028933107852936, -0.01937449909746647, -0.0006313103367574513, -0.015704287216067314, -0.0395352840423584, -0.04425742104649544, -0.029583975672721863, -0.07650493830442429, -0.06325788795948029, -0.01283096894621849, 0.02101621963083744, -0.004338182043284178, -0.051391635090112686, -0.01871291920542717, -0.040513962507247925, -0.006577485706657171, 0.010323453694581985, -0.04255722090601921, -0.030031632632017136, 0.006034765858203173, 0.03586888313293457, 0.026442233473062515, 0.034999944269657135, 0.045568931847810745, 0.012083427980542183, -0.010985433124005795, -0.02293323539197445, 0.026441868394613266, 0.05300338938832283, 0.028191151097416878, -0.016507945954799652, -0.07005714625120163, 0.0024092465173453093, 0.005617784336209297, -0.0019056117162108421, -0.07000519335269928, -0.00019601715030148625, 0.025959501042962074, -0.01142482552677393, 0.04090424254536629, -0.001186950015835464, 0.0017642915481701493, -0.059197768568992615, 0.0029898511711508036, -0.02304314635694027, -0.010707653127610683, 0.04331398010253906, -0.019924793392419815, 0.09328583627939224, 0.006186225451529026, -0.011250436305999756, -0.04386547580361366, -0.01647944375872612, 0.0070259044878184795, 0.011537233367562294, -0.05039181187748909, -0.049264613538980484, -0.050619687885046005, -0.0970628559589386, -0.05368047580122948, 0.03180756792426109, -0.009504646062850952, -0.026804547756910324, 0.04408823698759079, 0.017603326588869095, -0.029704920947551727, 0.04355676844716072, -0.044639088213443756, 0.007640812546014786, 0.0017679511802271008, -0.00728771835565567, -0.03030143305659294, -0.013230991549789906, -0.0012499007862061262, 0.002379410667344928, 0.013376493938267231, -0.025122249498963356, 0.014229263179004192, -0.020313724875450134, 0.002176788868382573, 0.022047558799386024, 0.009582161903381348, 0.021235795691609383 ]
[ -0.06400298327207565, -0.032814137637615204, -0.037856388837099075, -0.02413121610879898, 0.05571245029568672, -0.06196337193250656, -0.004608858376741409, 0.031354665756225586, -0.0025365983601659536, -0.010976772755384445, 0.001358352485112846, -0.0329488143324852, 0.0017481530085206032, -0.007857894524931908, 0.0944783166050911, 0.024094823747873306, -0.0035110062453895807, -0.07385139167308807, -0.03705359622836113, 0.03150846064090729, -0.007405170705169439, 0.00217269454151392, -0.018938187509775162, -0.03222949430346489, 0.011157425120472908, 0.00806792639195919, 0.04089532420039177, -0.05337060987949371, 0.019832968711853027, -0.1704464703798294, 0.03512666001915932, -0.016600290313363075, 0.019645515829324722, -0.01114647276699543, -0.008469682186841965, 0.05859578028321266, 0.034168969839811325, -0.009508323855698109, 0.01766282692551613, 0.03629385679960251, 0.015357200056314468, -0.007292081601917744, -0.05349326133728027, -0.020456761121749878, 0.061432525515556335, 0.013860607519745827, -0.008640608750283718, -0.021895160898566246, -0.026525385677814484, 0.035847295075654984, -0.06631114333868027, -0.005253142211586237, -0.01311467681080103, -0.03246404230594635, 0.022630497813224792, 0.04993022233247757, 0.038199711591005325, 0.058003902435302734, 0.006403534673154354, 0.024029426276683807, 0.040311217308044434, -0.01127480249851942, -0.10721779614686966, 0.13609102368354797, 0.021534597501158714, 0.05232108384370804, -0.033130135387182236, 0.028286416083574295, -0.003711818950250745, 0.10330656915903091, 0.013532466255128384, -0.015762396156787872, -0.030718332156538963, 0.05543319508433342, 0.013279134407639503, 0.0023975581862032413, -0.016786446794867516, 0.012764571234583855, 0.019673729315400124, -0.02363717369735241, -0.04561382532119751, -0.02179141156375408, -0.0014402110828086734, -0.019093481823801994, -0.03192614018917084, -0.027836835011839867, -0.02369591034948826, 0.0434143953025341, -0.011293628253042698, 0.04047222062945366, 0.01645069383084774, -0.026312414556741714, 0.04459591954946518, -0.024465199559926987, -0.10156033933162689, -0.05162559077143669, -0.0068190088495612144, 0.0050439671613276005, -0.03318942338228226, 0.4414372444152832, -0.04453441500663757, -0.017726752907037735, 0.09200350940227509, 0.0015046733897179365, 0.02220100164413452, -0.010776513256132603, 0.013276220299303532, -0.05617738142609596, 0.01726733334362507, -0.031001027673482895, -0.03127226606011391, -0.02320937067270279, 0.045391540974378586, -0.025893596932291985, 0.01433348748832941, 0.0009741413523443043, 0.018296509981155396, 0.043352339416742325, 0.022131439298391342, 0.011906380765140057, -0.012964130379259586, 0.025801241397857666, 0.014426523819565773, -0.000722781871445477, 0.015055172145366669, 0.018071666359901428, 0.04817890003323555, 0.062451690435409546, 0.05673205852508545, 0.03443029150366783, 0.025157203897833824, -0.021336298435926437, -0.0732916072010994, 0.019325338304042816, -0.021484797820448875, 0.014586035162210464, 0.005612427834421396, -0.0308064091950655, -0.0073189930990338326, 0.017209984362125397, -0.00779479555785656, -0.05500182881951332, 0.020617512986063957, -0.004168704152107239, -0.02269662916660309, 0.10665031522512436, -0.002841952722519636, -0.03193344548344612, -0.029553208500146866, -0.02527298405766487, 0.0039743524976074696, 0.05100168287754059, -0.017068084329366684, -0.04629457741975784, -0.011023635044693947, 0.006187445484101772, 0.05744250863790512, -0.032900381833314896, -0.03977542370557785, -0.011729164980351925, 0.008351849392056465, -0.013120701536536217, -0.012709184549748898, -0.006171553861349821, 0.04641261696815491, -0.13628600537776947, -0.01196651067584753, 0.015449078753590584, 0.00965843815356493, -0.0988641306757927, 0.0038518893998116255, 0.017963306978344917, -0.04267972707748413, -0.005067743360996246, 0.05053310841321945, -0.009508125483989716, -0.010686378926038742, 0.025105973705649376, 0.06049448251724243, 0.02243673801422119, 0.014767125248908997, -0.017235945910215378, -0.04986724257469177, 0.008261787705123425, -0.06359183043241501, -0.05958767235279083, -0.040590737015008926, -0.02440756745636463, 0.014291089959442616, 0.016726728528738022, 0.010019679553806782, -0.04323611035943031, -0.08955714851617813, 0.041126690804958344, -0.012400425970554352, 0.006974691059440374, 0.02319294959306717, -0.00992351770401001, 0.0243242084980011, -0.022465234622359276, -0.000793097133282572, -0.022118443623185158, -0.04065905138850212, 0.019155045971274376, -0.042934514582157135, 0.05051112174987793, 0.08598940819501877, -0.05101783946156502, 0.07408984750509262, 0.009672320447862148, -0.03543325513601303, -0.01649278961122036, -0.012246305122971535, 0.006486380938440561, -0.0011670748936012387, -0.04113035649061203, -0.007911209017038345, -0.007576990872621536, 0.03725447878241539, 0.05113278329372406, -0.027325041592121124, -0.03272056207060814, 0.0005017919465899467, -0.3239727020263672, -0.040662504732608795, -0.007693246938288212, 0.011540238745510578, 0.005022330675274134, -0.06186152622103691, -0.020041819661855698, -0.029804954305291176, 0.016253648325800896, 0.03375542536377907, 0.09410417079925537, -0.05016826093196869, 0.01986256055533886, -0.11406043916940689, -0.019160376861691475, 0.009970096871256828, -0.01632332243025303, -0.02897222898900509, 0.013368900865316391, 0.005450728349387646, -0.026419159024953842, -0.01902204006910324, -0.03749227151274681, -0.06266576051712036, 0.007573118899017572, -0.032468531280756, 0.10881086438894272, 0.06410236656665802, 0.04688114672899246, -0.05213925987482071, 0.05909139662981033, 0.019467247650027275, 0.0007251539500430226, -0.10502305626869202, 0.008326142095029354, 0.008191213943064213, -0.006019687745720148, -0.01650531403720379, 0.008878552354872227, -0.02743976190686226, -0.04670383781194687, 0.042641781270504, -0.039263226091861725, -0.0683758556842804, -0.037489503622055054, 0.01799059845507145, -0.026373565196990967, -0.05133412778377533, -0.008788429200649261, 0.08326636999845505, 0.016774510964751244, -0.007195654325187206, 0.030150864273309708, 0.030651966109871864, -0.005872507579624653, -0.011473161168396473, -0.050787657499313354, -0.013334577903151512, -0.025096360594034195, -0.018688661977648735, 0.007332758978009224, 0.03725273162126541, 0.03340233489871025, -0.05412962660193443, -0.017046131193637848, 0.04532951861619949, -0.011611604131758213, -0.005880249198526144, 0.027349257841706276, -0.019682694226503372, -0.03822876140475273, 0.09193213284015656, 0.0049821557477116585, 0.048647306859493256, 0.042865216732025146, 0.025112198665738106, -0.029763486236333847, 0.028502045199275017, 0.03323544189333916, -0.01604216918349266, 0.04138888418674469, -0.01920515112578869, 0.0707528367638588, -0.024601662531495094, -0.04598107933998108, 0.04110395535826683, -0.01277435664087534, -0.04999862611293793, 0.06593931466341019, 0.027922332286834717, -0.014415105804800987, -0.008614069782197475, -0.0008371759904548526, -0.07970909029245377, 0.0398973785340786, -0.023642320185899734, -0.248662069439888, 0.03829696774482727, 0.0786408856511116, 0.044037774205207825, 0.0070454031229019165, 0.024395866319537163, 0.03520437702536583, -0.05724482238292694, 0.0036147483624517918, -0.006462497636675835, -0.004955834709107876, 0.056377604603767395, -0.013605605810880661, -0.020924558863043785, 0.012066826224327087, -0.00015701742086093873, 0.014481495134532452, 0.005417562555521727, -0.013768904842436314, 0.017055826261639595, 0.03211194649338722, -0.055976927280426025, 0.16285401582717896, 0.018040450289845467, 0.011725449934601784, 0.027142716571688652, -0.011504309251904488, 0.01920587569475174, 0.09540419280529022, 0.031412284821271896, 0.0012998894089832902, 0.0022783461026847363, 0.04076442867517471, 0.011732245795428753, 0.04168953374028206, -0.11804196983575821, -0.04204767197370529, 0.022151943296194077, 0.016138194128870964, -0.005931928753852844, -0.015667937695980072, 0.03293906897306442, -0.050003115087747574, 0.0015474212123081088, 0.04088424891233444, -0.0025784310419112444, -0.0028037098236382008, -0.002440665615722537, -0.06652025878429413, 0.012749276123940945, -0.016498614102602005, -0.021755624562501907, -0.001004454679787159, 0.019363434985280037, 0.02889418788254261, 0.07601283490657806, 0.027893686667084694, -0.004457124508917332, 0.02766280435025692, 0.02396758645772934, -0.05012306198477745, -0.015134996734559536, 0.09015435725450516, 0.05391022935509682, 0.06251818686723709 ]
[ -0.01991388201713562, 0.034954555332660675, 0.01527450978755951, 0.04056362062692642, 0.03119245544075966, 0.009972884319722652, -0.022262180224061012, 0.005572398193180561, 0.014580545015633106, -0.004328914452344179, -0.0010941022774204612, 0.00785838346928358, 0.04815815016627312, -0.042647331953048706, 0.013334493152797222, 0.008950969204306602, -0.01407929603010416, -0.021661821752786636, 0.01068162638694048, -0.032058462500572205, -0.030977504327893257, 0.004561715293675661, 0.01613192819058895, 0.018792293965816498, 0.015398377552628517, -0.02161017805337906, -0.03701484948396683, -0.005678819492459297, 0.010613820515573025, -0.10604474693536758, -0.0281093530356884, -0.039341557770967484, -0.025248847901821136, -0.030471032485365868, -0.027697844430804253, 0.03991927206516266, -0.030136963352560997, 0.007634344045072794, 0.03623511642217636, 0.004185392055660486, -0.007817842997610569, -0.05113746225833893, -0.054210174828767776, 0.006339414976537228, -0.00450706435367465, -0.0034574968740344048, -0.011723227798938751, -0.0073236869648098946, -0.06178600341081619, 0.03156059607863426, -0.026557056233286858, -0.014689795672893524, -0.001031119143590331, 0.0007023545331321657, -0.022160273045301437, -0.011737460270524025, -0.016038505360484123, 0.016429811716079712, 0.01884460635483265, -0.00006698901415802538, 0.010595079511404037, -0.01451835222542286, 0.0006933361291885376, -0.017170485109090805, 0.00027303717797622085, -0.02541290782392025, -0.029706349596381187, 0.021942194551229477, -0.004386725835502148, 0.0187870841473341, -0.0114570502191782, 0.02382589876651764, -0.005885188467800617, 0.004875901620835066, -0.039932217448949814, -0.025162875652313232, -0.007711560931056738, 0.001745086396113038, 0.022645501419901848, 0.05204004421830177, -0.007037663832306862, -0.012893999926745892, 0.02944823168218136, 0.026982897892594337, 0.019149350002408028, 0.0020509150344878435, 0.008668127469718456, 0.0010119396029040217, 0.0049848249182105064, -0.0038346860092133284, -0.007307376246899366, 0.003734553698450327, 0.01843630149960518, 0.019474269822239876, -0.09555309265851974, -0.00045360688818618655, -0.03385757654905319, -0.01746305823326111, -0.017783410847187042, 0.8282759189605713, -0.014502221718430519, 0.014224909245967865, 0.0273544080555439, -0.011683938093483448, -0.016363535076379776, -0.046684425324201584, -0.01348898932337761, 0.02816103585064411, 0.04638850316405296, -0.03291428089141846, 0.025963937863707542, 0.0158868245780468, 0.006899314001202583, 0.030616791918873787, -0.014220992103219032, 0.00432717427611351, 0.052094828337430954, -0.016951167955994606, 0.05222468450665474, 0.025143243372440338, 0.052332766354084015, 0.022905658930540085, 0.03253837674856186, 0.010515768080949783, 0.008110065013170242, -0.14780457317829132, 0.03656862676143646, -8.137840861567153e-33, 0.08669861406087875, 0.008233009837567806, -0.011479928158223629, -0.01668918877840042, 0.005438895430415869, 0.02392573468387127, -0.012466896325349808, 0.011644372716546059, -0.04072820395231247, -0.025102999061346054, 0.009764367714524269, -0.01973288133740425, 0.01192933227866888, -0.025759603828191757, 0.03423597663640976, -0.01609550602734089, -0.010102057829499245, 0.03801852837204933, 0.028697825968265533, -0.01891205832362175, 0.015844855457544327, 0.05790385603904724, 0.03971974551677704, 0.03254648670554161, -0.015865862369537354, 0.035877641290426254, 0.01692996360361576, -0.004438962321728468, -0.04632163420319557, -0.044945407658815384, -0.0029195535462349653, 0.017455726861953735, -0.03158799558877945, -0.024936437606811523, 0.05432376638054848, -0.05063607916235924, -0.035214126110076904, 0.019381873309612274, -0.014044472947716713, -0.02781859040260315, -0.03798120841383934, -0.004694714676588774, 0.01294452603906393, -0.05979786813259125, -0.005955077242106199, 0.011776571162045002, 0.027715720236301422, -0.01878288760781288, -0.03150232508778572, 0.010250965133309364, -0.00427869101986289, 0.011558214202523232, -0.0025598518550395966, 0.0003205848333891481, -0.003223286708816886, -0.0033225142396986485, -0.003972365986555815, -0.015872543677687645, 0.025623761117458344, 0.006083727348595858, 0.0347043015062809, -0.023387262597680092, 0.014705543406307697, -0.008311944082379341, 0.003852752037346363, -0.015423927456140518, 0.008347573690116405, 0.009558240883052349, 0.018232865259051323, -0.011013736017048359, -0.0035770011600106955, 0.03011971525847912, 0.009279071353375912, 0.015398324467241764, 0.02339557185769081, -0.026388276368379593, -0.02760096825659275, 0.005543242208659649, -0.007048743776977062, 0.019387824460864067, 0.035853419452905655, -0.05243963003158569, 0.03145483136177063, -0.020597100257873535, -0.00525138434022665, -0.044622067362070084, 0.020214751362800598, -0.007250980939716101, -0.02385757677257061, 0.011326496489346027, 0.049264200031757355, 0.06216792017221451, -0.04120391607284546, -0.03873588144779205, -0.01027662679553032, 7.763835293333964e-33, 0.009728388860821724, -0.0026234150864183903, -0.0022099774796515703, 0.004678115714341402, 0.00747531047090888, 0.006853670813143253, 0.008018294349312782, 0.017845554277300835, -0.020747041329741478, 0.03448833152651787, 0.01072230376303196, -0.011787449941039085, -0.059188004583120346, -0.0031358497217297554, 0.05123421549797058, -0.02389272302389145, 0.018489306792616844, -0.04101650416851044, -0.0014739726902917027, -0.019324960187077522, 0.02532537840306759, -0.01766122505068779, 0.0005513682262971997, 0.03496131673455238, 0.05107561871409416, 0.03704744949936867, 0.004282101057469845, 0.004540003836154938, 0.012397956103086472, 0.01353431772440672, -0.011874258518218994, 0.0006808527396060526, 0.016698183491826057, 0.0058032795786857605, -0.02257906086742878, 0.04138992726802826, -0.009766977280378342, -0.0035103445407003164, 0.08178956061601639, 0.0018660826608538628, 0.08120214194059372, -0.0266055129468441, 0.047618135809898376, 0.011907635256648064, -0.021100470796227455, -0.001402196241542697, -0.017834676429629326, -0.015067978762090206, -0.020793180912733078, 0.0018777491059154272, 0.02903234399855137, 0.011548721231520176, -0.0021564795169979334, -0.005561537574976683, -0.001020099502056837, -0.029294539242982864, -0.04517282545566559, -0.00875266082584858, -0.053662292659282684, 0.008313794620335102, -0.012437705881893635, 0.006573821883648634, -0.025420021265745163, 0.04146861657500267, -0.04878580942749977, -0.03586445748806, -0.049980372190475464, -0.008023492991924286, 0.0104910209774971, -0.025109585374593735, 0.024356244131922722, -0.023975912481546402, -0.001425685710273683, 0.014169185422360897, 0.037089474499225616, -0.051269739866256714, 0.003002660349011421, 0.013848532922565937, 0.0008264424977824092, 0.0134996697306633, 0.015541590750217438, 0.02364242821931839, 0.04375816881656647, -0.05525645613670349, 0.011636745184659958, -0.0036770442966371775, -0.017831362783908844, 0.016826704144477844, 0.010054204612970352, -0.032332029193639755, 0.001496973098255694, -0.0023792139254510403, -0.01316135749220848, 0.018987948074936867, 0.020079754292964935, -1.3130489584511906e-8, -0.048963576555252075, -0.013044491410255432, -0.011483322829008102, -0.004466709680855274, 0.011892334558069706, 0.02875453047454357, -0.023116236552596092, 0.007893548347055912, -0.0071042985655367374, 0.007269380614161491, 0.047475121915340424, 0.006479439791291952, -0.01452323142439127, 0.040995460003614426, -0.014894282445311546, -0.04262625426054001, -0.05876892805099487, -0.03746561333537102, 0.03442640230059624, 0.02392517775297165, 0.0033812010660767555, 0.05859292298555374, -0.008969382382929325, -0.029937149956822395, 0.06213736906647682, 0.007944567129015923, -0.03107639029622078, -0.06646034121513367, -0.01834012009203434, -0.006771008018404245, 0.012639068067073822, -0.025548651814460754, -0.043807242065668106, -0.01889980584383011, -0.03258107975125313, -0.005738416220992804, 0.003977522719651461, -0.03249698877334595, -0.041231926530599594, -0.007088447455316782, 0.023341458290815353, 0.014739295467734337, -0.024769959971308708, -0.023424023762345314, -0.03483862429857254, -0.022714946419000626, -0.000008085856279649306, -0.005904851946979761, 0.03285172954201698, -0.0392257459461689, 0.031480029225349426, -0.007189454976469278, 0.015127654187381268, 0.023466072976589203, 0.020251788198947906, -0.01167218666523695, 0.04753797873854637, -0.01826300658285618, -0.038936156779527664, -0.01693939045071602, 0.05675005540251732, 0.020087214186787605, -0.0058585586957633495, -0.033007364720106125 ]
javascript-using-replace-to-make-a-link-clickable
https://markhneedham.com/blog/2009/06/08/javascript-using-replace-to-make-a-link-clickable
false
2009-06-24 23:58:38
QTB: Agile Adoption - How to stuff it up
[ "agile", "thoughtworks", "qtb" ]
[ "Software Development", "QTB" ]
I attended the most recent http://www.thoughtworks.com/what-we-say/events/tech-briefing_au.html[ThoughtWorks Quarterly Technology briefing] on Tuesday which was titled 'http://www.thoughtworks.com/pdfs/aus-qtb-june09.pdf[Agile Adoption - How to stuff it up]' and presented by my colleagues Andy Marks and Martin Fowler. There seems to be quite a few books out at the moment about how to introduce a more agile approach into your organisation - I've been reading http://www.amazon.co.uk/Lean-Agile-Software-Development-Enterprise-Objectives/dp/0321532899/ref=sr_1_5?ie=UTF8&s=books&qid=1245767478&sr=8-5[Lean-Agile Software Development] and http://www.amazon.co.uk/Becoming-Agile-imperfect-Imperfect/dp/1933988258/ref=sr_1_1?ie=UTF8&s=books&qid=1245767583&sr=8-1[Becoming Agile] and there is also a book called http://www.amazon.co.uk/Scaling-Lean-Agile-Development-Organizational/dp/0321480961/ref=sr_1_1?ie=UTF8&s=books&qid=1245767478&sr=8-1[Scaling Lean and Agile Development] - so I was intrigued to see whether the messages from this talk would be similar to those in these books. == What did I learn? * I often find when listening to Martin Fowler speak that although what he says is quite similar each time when speaking about agile there always seems to be something different that stands out for me each time. This time what stood out was his mention of the *Dreyfus model with regards to people's level of skill when it comes to agile* - when you first start out as a novice it's quite hard to keep the principles in mind so you spend a lot of time focusing on the practices and getting better at these but if you want to keep improving then at some stage you need to move up to a level where the principles do become more predominant. * Andy made an interesting point that *IT and in particular software development is pretty much made for people who want to learn new things* and he also pointed out the myth that 'learning finishes at school'. I never really considered this before but for me it definitely applies - the process of learning new ideas appeals far more to me than the results and outcomes of projects so it was interesting to hear this coming from someone else. * *Transparency with regards to bad news* was something else which was pointed out as being fairly important and it's certainly http://www.markhneedham.com/blog/2008/08/26/the-transparency-of-agile/[an area where we often run into trouble] - often organisations aren't used to bad news being delivered to them early and they get the impression that if it's going badly now then it's going to keep on going badly, rather than seeing that it's quite good to get bad news early because then you have time to fix it. * Martin described the '*pilot project anti pattern*' which he has come across where organisations make use of agile on a project which noone really cares about and use it as a training ground. It was suggested that this is not an effective way of introducing an an agile approach as it doesn't matter to anyone so there's no incentive to work out whether the new approach is really beneficial or not. * I liked the question that Andy posed about success and failure. He first of all asked anyone in the room who had seen an email from their CEO talking about a really successful project and congratulating the team to put their hands up. Pretty much the whole room did. He then asked who had received an email from their CEO talking about a failure and the lessons learned from that and only one person's hand went up! Andy is definitely right when he suggests that "*if you're not failing you're not learning anything*" and this is something which I've also come across from Andy Hunt in http://www.markhneedham.com/blog/2008/10/06/pragmatic-learning-and-thinking-book-review/[Pragmatic Learning and Thinking] and more recently I'm trying to get into the 'improvement ravine' with regards to learning F# as I'm still writing object oriented F# which I think is missing the point a bit. http://blogs.msdn.com/wesdyer/archive/2007/01/15/thinking-functionally.aspx[Thinking in a more functional way] is the key for me there. * A question was raised about how agile can fit in with fixed price projects at the end where it was pointed out that if the price and the time are fixed then the *scope has to be variable* - it can be infinitely flexible. It's actually often the case that a lot of value can be delivered with reduced scope even though it doesn't seem that way when you're told that all three of them are fixed!
null
null
[ 0.017827481031417847, -0.00530218705534935, -0.014631570316851139, 0.04074956476688385, 0.08667784184217453, 0.015485340729355812, 0.01392518263310194, 0.04246827960014343, 0.010382444597780704, -0.014355692081153393, -0.017979007214307785, -0.001999135361984372, -0.04219751060009003, 0.009852038696408272, -0.039614237844944, 0.07033120095729828, 0.07672551274299622, 0.008037528954446316, 0.027476118877530098, 0.0039711520075798035, 0.03749702125787735, 0.07737100124359131, 0.021095409989356995, 0.03151800110936165, 0.048280972987413406, -0.0014368761330842972, 0.030713355168700218, -0.03709461912512779, -0.05849294364452362, -0.020666247233748436, 0.033091168850660324, -0.019973063841462135, 0.0064256866462528706, -0.008222554810345173, 0.03350824862718582, -0.006558878812938929, 0.006650792434811592, 0.018951039761304855, -0.0033836830407381058, -0.02140507847070694, -0.06857208907604218, 0.03976468741893768, -0.017672060057520866, 0.013642537407577038, -0.037207335233688354, 0.01651703752577305, -0.04205361381173134, 0.0018419314874336123, -0.007355071604251862, 0.010897118598222733, -0.038295481353998184, 0.03289617598056793, 0.002804277930408716, -0.023898625746369362, 0.0039380379021167755, 0.057164471596479416, -0.005662739742547274, -0.0424220897257328, -0.008713759481906891, -0.05338510498404503, -0.015539228916168213, -0.017702193930745125, -0.007677095010876656, 0.041174691170454025, 0.03822585940361023, -0.0523456446826458, -0.007939879782497883, 0.037547893822193146, -0.03228861466050148, 0.01707339659333229, -0.030927158892154694, 0.021355921402573586, -0.022863144055008888, 0.012410074472427368, -0.0006723825936205685, -0.060113534331321716, 0.010456256568431854, 0.08296139538288116, 0.020037708804011345, 0.049888644367456436, -0.01650127023458481, 0.04485957324504852, -0.011060968041419983, 0.026127783581614494, -0.019140098243951797, -0.033926982432603836, 0.014600127935409546, -0.009257450699806213, -0.07088033854961395, 0.06847715377807617, 0.002752299653366208, -0.079709991812706, 0.006036138627678156, 0.06204161420464516, -0.0071222903206944466, 0.013117687776684761, 0.0371212363243103, 0.027568764984607697, 0.001882968470454216, -0.02156638540327549, -0.021910104900598526, -0.01334384921938181, -0.0073527125641703606, 0.0008765573729760945, -0.0627036839723587, 0.020191965624690056, -0.020028455182909966, -0.03865581750869751, -0.0035163466818630695, 0.006898107007145882, -0.04771047830581665, 0.01220852043479681, -0.03979254513978958, 0.003973710350692272, -0.06768636405467987, 0.0709935650229454, 0.007288667839020491, -0.027866698801517487, -0.020919417962431908, -0.015723353251814842, 0.033092111349105835, 0.020311668515205383, -0.00574133824557066, 0.06254013627767563, -0.0031300773844122887, 0.008943880908191204, -0.04618631675839424, 0.06986068189144135, -0.006119898520410061, -0.05840372294187546, -0.008486080914735794, 0.042088091373443604, -0.03776015713810921, -0.01901494711637497, -0.007832971401512623, -0.004192488733679056, 0.012044920586049557, 0.020475173369050026, 0.021145574748516083, 0.060015641152858734, 0.009584617801010609, -0.017071066424250603, 0.01860474981367588, 0.032843463122844696, 0.01379305962473154, -0.011064709164202213, 0.00908623170107603, -0.03309662640094757, -0.062129583209753036, -0.02193135768175125, 0.01978333480656147, 0.005860049277544022, 0.023864146322011948, -0.030269160866737366, 0.0347910039126873, 0.09250327199697495, 0.04277867078781128, -0.011349755339324474, -0.008073233999311924, 0.01732339709997177, 0.03187097981572151, 0.01935168355703354, 0.008940550498664379, 0.011551998555660248, 0.0008465292048640549, -0.01566493511199951, -0.018113557249307632, 0.012588794343173504, -0.0009128258679993451, -0.00751215685158968, -0.06527696549892426, -0.021673621609807014, 0.04064866900444031, -0.03790054842829704, -0.020047983154654503, 0.02732226625084877, 0.07999198883771896, 0.05410398542881012, 0.021490400657057762, 0.011480964720249176, -0.07288222014904022, 0.03546516224741936, 0.02541205659508705, 0.020645059645175934, 0.029972197487950325, -0.02408340759575367, 0.06407691538333893, 0.03964048996567726, -0.0003415652900002897, 0.051251087337732315, -0.08836403489112854, -0.09607278555631638, -0.02370796725153923, -0.019799020141363144, 0.052238740026950836, -0.0645105391740799, 0.023911774158477783, 0.06919832527637482, 0.004771071020513773, 0.05277588218450546, 0.023521170020103455, -0.007392572239041328, -0.007644380908459425, -0.02608063444495201, -0.021725969389081, 0.06105707958340645, 0.04605681821703911, 0.01469444390386343, -0.039446163922548294, 0.011082119308412075, 0.007936449721455574, -0.012147578410804272, 0.032421503216028214, 0.002596531994640827, 0.032564662396907806, 0.007080326322466135, 0.0545683428645134, -0.03293782100081444, 0.05489472672343254, -0.038893863558769226, 0.009548063389956951, 0.008003655821084976, -0.0009266848210245371, 0.017842194065451622, -0.01368884276598692, 0.0852004811167717, 0.06175677105784416, -0.055079907178878784, -0.04674465209245682, 0.015224919654428959, 0.025330092757940292, -0.026783136650919914, 0.004488734994083643, -0.016528835520148277, 0.03252735361456871, -0.019507497549057007, -0.04279542714357376, -0.04089801013469696, 0.01683349534869194, -0.054498206824064255, 0.025039948523044586, 0.04144513979554176, -0.008769395761191845, 0.0734400525689125, 0.011898512952029705, -0.01085817813873291, -0.014912719838321209, -0.00036028880276717246, -0.05739680305123329, 0.018564406782388687, 0.017877379432320595, -0.017776979133486748, 0.057662371546030045, -0.03316716104745865, -0.04865248128771782, -0.03709544241428375, -0.033466778695583344, 0.022033831104636192, 0.05945179611444473, 0.0587877556681633, -0.01904848776757717, 0.05244997516274452, -0.008985989727079868, 0.050745315849781036, 0.013031836599111557, -0.029648644849658012, -0.041115470230579376, -0.0574321411550045, -0.0071107507683336735, 0.02011793665587902, 0.012691907584667206, 0.018749557435512543, 0.017762809991836548, 0.0058436039835214615, -0.022512728348374367, -0.009693046100437641, 0.029608730226755142, 0.00036765949334949255, 0.013838921673595905, -0.04267016798257828, -0.03324495255947113, 0.06200379505753517, -0.027074769139289856, -0.017716551199555397, 0.006286743562668562, -0.08776511251926422, 0.04547272250056267, -0.055321142077445984, -0.029883647337555885, -0.004310183692723513, 0.016563666984438896, 0.05030471086502075, 0.025584334507584572, 0.022543705999851227, 0.05195492506027222, 0.03441654518246651, 0.020866237580776215, -0.006002901587635279, -0.01762671023607254, 0.051426369696855545, 0.03568273410201073, -0.020876513794064522, 0.07846212387084961, 0.013055467046797276, 0.01007416658103466, -0.07260628044605255, 0.055388517677783966, -0.06927090138196945, -0.26899245381355286, 0.03655783832073212, 0.017945291474461555, -0.05516032874584198, 0.01843041181564331, -0.009471136145293713, 0.006407058797776699, -0.06571082770824432, -0.03306611627340317, 0.01612868160009384, -0.05725768953561783, -0.037713322788476944, -0.013050148263573647, 0.03517819568514824, 0.009365620091557503, 0.04055402800440788, 0.04281133413314819, -0.020331673324108124, 0.008512279950082302, 0.07285904884338379, -0.02413005195558071, -0.06961193680763245, 0.006459364201873541, 0.04675889015197754, 0.058417778462171555, 0.037486229091882706, -0.08745598047971725, 0.04387225583195686, -0.032607465982437134, 0.00812123715877533, 0.009184170514345169, 0.013587424531579018, -0.0018817513482645154, -0.01924305036664009, -0.0024027558974921703, -0.0018230234272778034, 0.03116254322230816, -0.00036409564199857414, -0.015887074172496796, -0.008099906146526337, -0.005176902748644352, -0.034203141927719116, 0.0279401745647192, 0.026524214074015617, 0.0673019140958786, 0.010203886777162552, -0.05996701866388321, -0.015553134493529797, -0.03002404235303402, 0.07409974187612534, -0.03461303561925888, -0.029665706679224968, -0.010986861772835255, 0.03304104134440422, -0.003953345585614443, -0.012469678185880184, 0.016018657013773918, -0.040884871035814285, -0.018862409517169, -0.008701741695404053, -0.017561085522174835, -0.02872519940137863, -0.02314702980220318, -0.05269557610154152, -0.006221952382475138, -0.07172717899084091, -0.07017366588115692, -0.006856079213321209, 0.052354853600263596, -0.012233279645442963, -0.03333143889904022, -0.00479139806702733, 0.003442789427936077, -0.10910466313362122, -0.006430815439671278, -0.014031201601028442, -0.010428473353385925, 0.024944469332695007, 0.015819091349840164, 0.0446714423596859, -0.03757936507463455, -0.057900216430425644, 0.024358002468943596, 0.012009265832602978, 0.03638799116015434, -0.002795254811644554, 0.03740331158041954, 0.03893041983246803, -0.02638877183198929, 0.010255027562379837, 0.049433428794145584, 0.0004347987996879965, -0.026299700140953064, -0.028864851221442223, 0.04021228104829788, -0.010724196210503578, 0.006847145035862923, -0.005188922397792339, 0.010031387209892273, 0.029839975759387016, -0.03057272545993328, -0.03276308998465538, 0.006559787318110466, -0.007014350034296513, -0.010584761388599873, -0.023387497290968895, -0.0427943579852581, 0.018456488847732544, 0.05822170525789261, 0.010229671373963356, -0.000338989106239751, -0.029985951259732246, 0.01285699475556612, -0.04928921163082123, -0.060092199593782425, -0.01989153027534485, -0.005877974443137646, 0.041300851851701736, -0.024006308987736702, 0.009632758796215057, -0.07816626876592636, -0.003998222295194864, -0.035204578191041946, -0.019306529313325882, -0.08061129599809647, -0.01929585076868534, -0.02627827413380146, -0.03907935321331024, 0.009033340029418468, 0.010850116610527039, -0.0067046754993498325, 0.009020010940730572, 0.031153656542301178, -0.036176878958940506, 0.005945407785475254, -0.050937362015247345, -0.057793989777565, -0.033364422619342804, 0.00628411490470171, 0.001414056750945747, -0.01840156875550747, 0.042664535343647, 0.0059582265093922615, 0.01651441492140293, 0.019614143297076225, 0.026646777987480164, -0.0006158073083497584, 0.008803477510809898, 0.033199455589056015, 0.02541341818869114, 0.013724717311561108, -0.0645333081483841, 0.028788845986127853, -0.029826389625668526, -0.034436941146850586, -0.025221552699804306, 0.024736344814300537, -0.02090274542570114, -0.019498707726597786, -0.011287691071629524, -0.01267924252897501, -0.06094102934002876, -0.029079239815473557, -0.041570939123630524, 0.04726133868098259, 0.0648261159658432, -0.009102324955165386, 0.01065816730260849, -0.02653265744447708, -0.007738629821687937, -0.000690840242896229, -0.011876323260366917, -0.04616062343120575, -0.004839170724153519, 0.010348847135901451, 0.009992125444114208, 0.02589070424437523, 0.010537843219935894, 0.03778864070773125, 0.00013127805141266435, 0.0035572017077356577, -0.03923694044351578, 0.0029267671052366495, 0.008461917750537395, 0.03631594404578209, 0.020902277901768684, -0.01831893064081669, -0.006719733122736216, -0.036171868443489075, -0.043520037084817886, -0.0249856635928154, 0.006690554786473513, 0.0016548263374716043, 0.02899254858493805, -0.03335798904299736, -0.07986865192651749, 0.06565482914447784, 0.017152130603790283, 0.005000500474125147, 0.004444144666194916, -0.030927244573831558, -0.0031623668037354946, -0.018674049526453018, 0.03867083415389061, 0.062400996685028076, -0.06727284938097, -0.024677330628037453, -0.014778903685510159, -0.001139904255978763, -0.006204491015523672, -0.013759751804172993, -0.04362545907497406, -0.031955018639564514, -0.01648574508726597, -0.0029339189641177654, -0.05635592341423035, -0.01350405439734459, -0.028370611369609833, 0.008505823090672493, 0.012057644315063953, 0.018527116626501083, -0.029437515884637833, -0.03978710249066353, -0.012758494354784489, -0.024038109928369522, 0.008237311616539955, -0.03193506971001625, -0.011075197719037533, 0.007371369283646345, -0.028773857280611992, -0.016700495034456253, -0.03738849610090256, 0.010103772394359112, -0.005614695139229298, -0.024212641641497612, 0.014926652424037457, -0.025208722800016403, 0.0014306927332654595, 0.002039180835708976, 0.03181011974811554, -0.008480647578835487, -0.00405692495405674, -0.029567932710051537, -0.002802566858008504, -0.05999046564102173, 0.005759244319051504, -0.023188544437289238, -0.006857356987893581, 0.026175661012530327, 0.08122880011796951, 0.007607362698763609, 0.04708648845553398, 0.0014065841678529978, -0.009723289869725704, 0.04702449589967728, -0.05690319463610649, -0.046464305371046066, -0.026534834876656532, -0.06339528411626816, -0.021716283634305, 0.019147107377648354, 0.02790295146405697, -0.0486866794526577, 0.05481208488345146, 0.010482722893357277, 0.037002820521593094, 0.022910336032509804, 0.008868261240422726, 0.0158719252794981, -0.03628837317228317, -0.015639210119843483, -0.07444635033607483, -0.013609184883534908, 0.023287177085876465, 0.0017373096197843552, -0.014044011943042278, -0.005963810253888369, -0.023106690496206284, 0.04173436388373375, -0.0703154131770134, -0.023093393072485924, 0.06037543714046478, 0.002276271814480424, -0.018931260332465172, 0.0077820271253585815, -0.060349613428115845, 0.027037397027015686, 0.029704874381422997, -0.038660675287246704, -0.008703449741005898, 0.0011854344047605991, 0.042880017310380936, 0.011816749349236488, 0.028756316751241684, -0.04861132428050041, -0.006864785682410002, 0.09002993255853653, -0.0025494371075183153, -0.013920020312070847, 0.04978620633482933, 0.010985145345330238, 0.03664586320519447, 0.04151477664709091, 0.013479183427989483, -0.015037622302770615, 0.015329333022236824, -0.013833986595273018, -0.06916071474552155, 0.045489270240068436, -0.007509483955800533, -0.010731889866292477, -0.021761929616332054, 0.042602747678756714, 0.00481118680909276, -0.04014894366264343, -0.05366094782948494, 0.00815538689494133, -0.062314484268426895, -0.010377582162618637, -0.008273175917565823, -0.006477044895291328, -0.06247701868414879, 0.031157003715634346, -0.01184371393173933, 0.024209072813391685, 0.05784524604678154, -0.006674282252788544, -0.02096589282155037, -0.024958934634923935, 0.08090592175722122, 0.08089512586593628, 0.07528434693813324, -0.005248259287327528, 0.0705401599407196, -0.015566522255539894, -0.051018886268138885, 0.01816607639193535, -0.004295145161449909, -0.0099090076982975, -0.04211496189236641, 0.018199332058429718, 0.05746670439839363, -0.006041821092367172, 0.06332492083311081, -0.023297572508454323, -0.022049563005566597, 0.0032534615602344275, 0.04024934023618698, -0.00089036620920524, 0.05886775255203247, 0.006707500200718641, 0.020039383322000504, -0.04095333069562912, -0.03507453203201294, 0.023281635716557503, -0.023519648239016533, -0.0251157246530056, 0.026842517778277397, 0.011599607765674591, 0.027235930785536766, 0.014287934638559818, 0.02157110720872879, 0.08101321756839752, -0.043939583003520966, 0.036518823355436325, 0.0007054356392472982, 0.009747511707246304, -0.00976995937526226, 0.010337536223232746, 0.00005765051901107654, -0.021944191306829453, 0.0027741813100874424, -0.0010528366547077894, -0.0337994322180748, -0.008647781796753407, -0.017673050984740257, 0.04118117690086365, -0.030196016654372215, 0.01761864311993122, 0.042823176831007004, 0.00003566414306988008, -0.04180024191737175, -0.0624503456056118, -0.0443182997405529, -0.0195888951420784, -0.029305225238204002, 0.015055850148200989, 0.041964106261730194, -0.004183476325124502, -0.03578589856624603, -0.008096570149064064, -0.013404779136180878, -0.04720773547887802, 0.02066326141357422, -0.05026042461395264, -0.04130243510007858, -0.005587251391261816, 0.023497911170125008, 0.009561074897646904, 0.01670248992741108, 0.051094233989715576, 0.008066949434578419, -0.01672322303056717, -0.013196040876209736, 0.03243856504559517, 0.022914014756679535, 0.010335911065340042, 0.028215594589710236, -0.0812448188662529, 0.017912477254867554, 0.026690447703003883, -0.01822895184159279, -0.060338057577610016, 0.02740204893052578, 0.01959053985774517, -0.025944575667381287, 0.05495310202240944, 0.005710815079510212, 0.02824830450117588, -0.03039633110165596, -0.02232283167541027, 0.01274186372756958, 0.0162737388163805, 0.0384618304669857, -0.02703026495873928, 0.09278956800699234, 0.03294378146529198, 0.015851151198148727, -0.06925498694181442, -0.00603750254958868, -0.006154715549200773, 0.014196127653121948, 0.0023122772108763456, -0.02021646872162819, -0.027863048017024994, -0.07316829264163971, -0.015066639520227909, 0.020176444202661514, -0.022292545065283775, -0.018671400845050812, 0.030297206714749336, 0.005110695026814938, -0.027906160801649094, 0.027644280344247818, -0.04587697610259056, 0.024622946977615356, -0.018949594348669052, -0.023311195895075798, 0.0063360813073813915, 0.02581527642905712, -0.00012209427950438112, -0.009870531037449837, 0.013838098384439945, -0.06117183342576027, 0.01866365410387516, 0.018246246501803398, 0.020490868017077446, 0.057620469480752945, 0.02773427590727806, -0.010376124642789364 ]
[ -0.08240246027708054, -0.004881190601736307, -0.010441242717206478, -0.03575340658426285, 0.0380992591381073, -0.02393902838230133, -0.021471042186021805, 0.022449396550655365, -0.015191429294645786, -0.018044140189886093, 0.014113952405750751, -0.02254618890583515, -0.01248637493699789, -0.04408981278538704, 0.09688231348991394, 0.009937427937984467, 0.010409574955701828, -0.08190786093473434, 0.00741677638143301, 0.022560173645615578, -0.007716808933764696, -0.03460349142551422, -0.04209106042981148, -0.005675072316080332, 0.03343060612678528, 0.025025643408298492, 0.0003300749813206494, -0.027729319408535957, 0.011174334213137627, -0.15527163445949554, 0.009012307040393353, 0.02462724968791008, 0.05776588246226311, -0.010715888813138008, 0.016642462462186813, 0.08275561034679413, 0.022691546007990837, 0.014199410565197468, -0.008008193224668503, 0.045313507318496704, 0.03624360263347626, 0.013638016767799854, -0.045242223888635635, -0.0260888934135437, 0.005699175875633955, 0.006098905578255653, 0.022694172337651253, -0.048172011971473694, -0.013245848938822746, -0.0036988945212215185, -0.06380151957273483, -0.048359114676713943, -0.010904914699494839, -0.04322024807333946, -0.023907536640763283, 0.026727288961410522, 0.02500475011765957, 0.06070058047771454, -0.00616916548460722, 0.017460474744439125, 0.013032551854848862, -0.02315969578921795, -0.1378571093082428, 0.0783919021487236, 0.04622220993041992, 0.06377341598272324, -0.07160540670156479, 0.014070646837353706, -0.018131662160158157, 0.08972922712564468, 0.03830631822347641, -0.029075181111693382, -0.006843637675046921, 0.03586344048380852, 0.03764544799923897, 0.01870938017964363, -0.008818539790809155, 0.011110145598649979, 0.023397134616971016, -0.04435869678854942, -0.025342904031276703, -0.008685803972184658, -0.03882528841495514, -0.013980019837617874, -0.054252739995718, 0.02565157786011696, -0.010008231736719608, 0.040422696620225906, 0.0472421757876873, 0.024100884795188904, 0.039043206721544266, 0.002591068157926202, 0.013242303393781185, -0.019038084894418716, -0.05599510297179222, -0.033650923520326614, 0.004836435429751873, 0.01633624918758869, -0.05435048043727875, 0.44223231077194214, -0.017796074971556664, 0.002624258864670992, 0.08107828348875046, 0.03780238702893257, -0.022717172279953957, 0.006458636373281479, 0.030365467071533203, -0.048014137893915176, 0.05278469994664192, 0.0019134699832648039, 0.047776978462934494, 0.03708384186029434, 0.04237135872244835, -0.0713602751493454, -0.0026344868820160627, 0.033479925245046616, 0.002350381575524807, 0.008665223605930805, -0.0028112276922911406, -0.007824697531759739, -0.02040543593466282, 0.01238550990819931, 0.05608537793159485, -0.0022019187454134226, -0.03529583290219307, -0.019108174368739128, 0.03810936585068703, 0.03673407435417175, 0.023562831804156303, -0.01732989400625229, 0.05467429384589195, -0.036736782640218735, -0.08539062738418579, -0.020277991890907288, -0.0028559525962918997, 0.010145347565412521, 0.03460057079792023, -0.023463500663638115, -0.009872098453342915, 0.07572954893112183, 0.02852282114326954, 0.005280205048620701, 0.02381310611963272, -0.06321103125810623, -0.039003580808639526, 0.129055917263031, 0.02629871293902397, -0.03601079434156418, -0.017488760873675346, -0.04124622419476509, -0.007606501691043377, 0.014184857718646526, 0.039287883788347244, -0.05026815086603165, 0.05493178218603134, -0.0036356921773403883, 0.11336074024438858, 0.012785786762833595, -0.06002658233046532, -0.0036386041902005672, -0.017695613205432892, -0.01744561642408371, -0.063543900847435, 0.049320466816425323, 0.08089759945869446, -0.14070279896259308, -0.03383882716298103, -0.026507655158638954, 0.03741541877388954, -0.06028617173433304, -0.003995902836322784, 0.016839342191815376, -0.017232108861207962, 0.015001557767391205, 0.09838181734085083, -0.04226880520582199, -0.025467639788985252, 0.006584598682820797, 0.05804252624511719, 0.029213253408670425, 0.05111881345510483, 0.004045940935611725, -0.017659079283475876, -0.0010251388885080814, -0.049350555986166, -0.06773687154054642, -0.04035301133990288, -0.03469186648726463, -0.026043403893709183, -0.012444957159459591, -0.02232707105576992, -0.0010487237013876438, -0.06166176125407219, 0.09959056228399277, -0.04051046073436737, -0.027562135830521584, 0.014345338568091393, -0.004617176949977875, -0.05151394382119179, -0.019594358280301094, -0.10119511932134628, 0.026398897171020508, -0.05008451268076897, 0.028343744575977325, -0.05782286077737808, 0.035953670740127563, 0.033861447125673294, -0.050787899643182755, 0.1096428707242012, 0.06579882651567459, -0.032083503901958466, -0.04881482943892479, 0.04554223269224167, 0.038497645407915115, 0.013234918005764484, -0.008872847072780132, -0.012783650308847427, 0.025577928870916367, -0.029876364395022392, 0.027083849534392357, -0.02380986697971821, 0.04674395173788071, -0.034788697957992554, -0.32131659984588623, -0.011188830249011517, -0.03730994090437889, 0.00007436267333105206, 0.01506766676902771, -0.013413582928478718, 0.04013480618596077, -0.010897747240960598, -0.015431875362992287, -0.02198871597647667, 0.07034055888652802, -0.017673246562480927, 0.02947099879384041, -0.0826411247253418, 0.006600359454751015, 0.0057146670296788216, -0.04292577877640724, -0.04106052592396736, -0.027220312505960464, -0.004709099419414997, 0.018706312403082848, 0.007421309594064951, -0.030474046245217323, -0.03366145119071007, -0.014208407141268253, -0.05081692710518837, 0.0791294202208519, -0.003512375522404909, 0.05810071900486946, -0.021371040493249893, 0.022223204374313354, 0.01726045459508896, 0.01668570563197136, -0.09460928291082382, 0.014196700416505337, -0.00948267336934805, 0.032930999994277954, -0.04951765015721321, 0.022075850516557693, -0.034039709717035294, -0.05020742863416672, 0.0326184518635273, -0.07006315886974335, -0.02949702925980091, -0.06437058001756668, -0.016788221895694733, -0.039724428206682205, -0.01579640619456768, -0.017431410029530525, 0.058113887906074524, -0.001590452971868217, 0.02677857130765915, 0.022807201370596886, 0.020907919853925705, -0.008072135038673878, -0.04267996922135353, -0.0921936184167862, 0.03265759348869324, 0.003110569203272462, 0.0008217614376917481, 0.00652643758803606, 0.07593003660440445, 0.035802192986011505, -0.040710918605327606, 0.006581760477274656, -0.00912710465490818, 0.012757770717144012, 0.003610993269830942, 0.023051604628562927, -0.031231146305799484, 0.011102763935923576, 0.03780702129006386, -0.0010059134801849723, -0.03176677227020264, 0.00006639017374254763, 0.015837348997592926, -0.0392175018787384, 0.010053632780909538, 0.01109207421541214, -0.01821163482964039, -0.0022282609716057777, -0.03614738583564758, 0.024776233360171318, -0.008889436721801758, -0.022438788786530495, 0.015645908191800117, -0.007905026897788048, -0.07292252033948898, 0.042533643543720245, 0.030247049406170845, -0.018131934106349945, 0.006721929647028446, -0.028668688610196114, -0.03226060792803764, 0.09490236639976501, 0.00951977539807558, -0.2168647050857544, 0.01960010826587677, 0.06289390474557877, 0.029387598857283592, -0.02068883180618286, 0.055678416043519974, 0.04401590675115585, -0.05814598500728607, 0.031067851930856705, 0.02672760933637619, 0.0036288201808929443, 0.00034108280669897795, 0.010038184002041817, -0.01544695533812046, 0.03969753161072731, 0.007975189946591854, 0.058237429708242416, -0.0022329483181238174, 0.0335957407951355, -0.01824607513844967, 0.0017062468687072396, 0.005967908538877964, 0.13609766960144043, 0.020948955789208412, 0.027990631759166718, 0.01424912828952074, -0.014225533232092857, -0.0011924031423404813, 0.07552087306976318, 0.012931675650179386, 0.036656543612480164, -0.017401093617081642, 0.035486556589603424, 0.02824368141591549, 0.0053290193900465965, -0.08760229498147964, -0.027232853695750237, 0.026263942942023277, 0.02405877783894539, -0.001155785284936428, 0.03403327241539955, -0.015606025233864784, -0.02888355776667595, 0.043471865355968475, 0.0593145489692688, -0.02746550180017948, -0.022407617419958115, -0.07902403175830841, -0.05579599365592003, -0.008769901469349861, -0.04223300516605377, -0.038232412189245224, 0.019281694665551186, -0.013118433766067028, 0.0349845327436924, 0.08694470673799515, 0.047820065170526505, -0.013659821823239326, -0.011747773736715317, -0.013596960343420506, -0.008726786822080612, -0.03941233828663826, 0.09282967448234558, 0.03322137892246246, 0.0523034930229187 ]
[ 0.007118007633835077, -0.003491252427920699, -0.013289682567119598, 0.005553003866225481, -0.023629263043403625, -0.0033449067268520594, -0.011321072466671467, 0.016541358083486557, 0.0005708176759071648, -0.007379449438303709, 0.019399205222725868, 0.04299605265259743, 0.004095345735549927, 0.0027010985650122166, 0.04042379558086395, 0.0017414073226973414, -0.010733754374086857, -0.031916480511426926, 0.03782259300351143, 0.008189120329916477, -0.029250722378492355, 0.028360716998577118, -0.01307380199432373, 0.02034195326268673, -0.0259020384401083, 0.04846934601664543, -0.00130540004465729, 0.020478639751672745, 0.025723565369844437, -0.11683893948793411, -0.016428830102086067, -0.0271223783493042, 0.027874181047081947, -0.0013903744984418154, 0.019913271069526672, 0.023072687909007072, 0.03066658042371273, 0.0009964252822101116, 0.0007247624453157187, -0.00005047349623055197, -0.010435204021632671, -0.00364752858877182, -0.00632053567096591, -0.00015766179421916604, 0.004528089892119169, 0.026688309386372566, -0.006660338491201401, -0.012380603700876236, -0.026952160522341728, -0.023052098229527473, -0.039086103439331055, -0.045684490352869034, -0.023930169641971588, -0.01744277961552143, 0.028318263590335846, 0.02559664100408554, 0.04563334584236145, -0.0060088238678872585, 0.02080489881336689, -0.03877944499254227, -0.0009438451379537582, -0.031607478857040405, -0.03259235993027687, -0.0161278173327446, 0.020686611533164978, -0.006972790230065584, -0.05349497124552727, 0.02065451443195343, -0.03561251237988472, 0.01962842419743538, -0.0067298561334609985, -0.024324992671608925, 0.005172498524188995, -0.030593961477279663, 0.02326602302491665, -0.012256558984518051, 0.005334191024303436, -0.01284247450530529, 0.0074964771047234535, -0.0047201490961015224, -0.08669877052307129, 0.028363022953271866, -0.01773971877992153, -0.022717086598277092, -0.034358736127614975, -0.01388709805905819, 0.017516717314720154, -0.03180604800581932, 0.014466027729213238, 0.021408505737781525, -0.012492767535150051, 0.023497218266129494, -0.01923401840031147, 0.0021874462254345417, -0.06713563948869705, -0.01119311060756445, -0.00145194202195853, -0.048452090471982956, 0.01797296479344368, 0.8437959551811218, -0.009599442593753338, 0.019545329734683037, 0.04932748153805733, 0.012208479456603527, -0.00015261316730175167, -0.022311801090836525, 0.004049674142152071, -0.021925298497080803, 0.024307623505592346, -0.03058192878961563, -0.011797768995165825, 0.02301885560154915, 0.044790610671043396, 0.010371600277721882, 0.044371187686920166, 0.016687363386154175, -0.016523398458957672, -0.01440833043307066, -0.05597889423370361, 0.012068822048604488, 0.04313978552818298, 0.014052762649953365, 0.010534306988120079, 0.009972239844501019, -0.01317525003105402, -0.15475814044475555, -0.04190291091799736, -8.8289301534629e-33, 0.01255045086145401, -0.001941867871209979, 0.006261914968490601, -0.010170544497668743, 0.025011679157614708, -0.030651038512587547, 0.018964175134897232, 0.0010575484484434128, 0.012807520106434822, -0.015278259292244911, -0.006383918225765228, -0.004796453285962343, 0.023678427562117577, -0.017717977985739708, 0.018948230892419815, -0.050985388457775116, -0.009785410948097706, 0.03915102779865265, 0.0014417242491617799, 0.04346279799938202, 0.05672796070575714, 0.000910529459360987, -0.005384653341025114, -0.003812852082774043, 0.01818954199552536, 0.01937469094991684, 0.03886393830180168, 0.026622405275702477, -0.013650726526975632, -0.05662189796566963, -0.018817588686943054, 0.006127260159701109, -0.03924158588051796, -0.051519304513931274, -0.011780140921473503, -0.056517016142606735, -0.026546861976385117, -0.00549768190830946, 0.007342117838561535, -0.03871121257543564, -0.011859463527798653, -0.019886191934347153, -0.02801721915602684, -0.027758289128541946, 0.006614526733756065, 0.017573468387126923, 0.022478563711047173, 0.03382721543312073, 0.023246033117175102, -0.027173176407814026, 0.007299622055143118, -0.023394744843244553, 0.028122445568442345, 0.0068287658505141735, 0.0013331547379493713, -0.002543593058362603, 0.006772600580006838, 0.017132768407464027, -0.016936982050538063, 0.012005161494016647, 0.02916477806866169, 0.0027651821728795767, -0.01568344049155712, -0.002450463827699423, -0.022465532645583153, -0.016108553856611252, 0.002714511239901185, 0.02956201508641243, 0.011093813925981522, -0.005039483308792114, -0.04281468316912651, 0.004485686309635639, -0.015689704567193985, 0.018926087766885757, 0.018852993845939636, -0.038411833345890045, -0.00125423155259341, 0.07291606068611145, -0.013004418462514877, 0.03621421009302139, -0.01742698810994625, 0.023345783352851868, -0.005742847453802824, -0.043309397995471954, -0.002729759318754077, 0.02420218102633953, 0.005416722968220711, -0.029047774150967598, -0.010072617791593075, 0.03289613127708435, -0.008994579315185547, -0.028047004714608192, -0.007026312407106161, 0.02702096290886402, 0.0021341615356504917, 8.461974612598768e-33, 0.013488199561834335, -0.026728017255663872, -0.018345888704061508, 0.012995118275284767, 0.05433087423443794, -0.01339499931782484, -0.005903084762394428, 0.01474073901772499, -0.06502901017665863, 0.0024987340439110994, -0.02479025349020958, -0.005597996991127729, -0.033570315688848495, 0.013818489387631416, 0.04865848273038864, -0.006519682705402374, 0.013416347093880177, -0.025571923702955246, 0.05774346739053726, -0.021362312138080597, 0.03238065913319588, -0.0215647891163826, 0.007037073839455843, 0.004410001449286938, 0.055159881711006165, 0.05798998475074768, -0.024188900366425514, 0.0101859075948596, 0.026362966746091843, -0.022051382809877396, 0.0034171161241829395, 0.006199168041348457, -0.0006959711317904294, 0.016108863055706024, -0.025825422257184982, 0.0014031111495569348, -0.025619864463806152, -0.03071763925254345, -0.0045109037309885025, 0.013638759031891823, 0.02310105785727501, -0.015566669404506683, -0.009357020258903503, 0.0096669876947999, -0.007188866380602121, 0.03279916197061539, 0.03285342827439308, -0.013004113920032978, -0.040114276111125946, -0.007641597650945187, 0.010270426981151104, 0.030327793210744858, 0.020022079348564148, 0.012286124750971794, 0.013002200983464718, 0.00009327832231065258, 0.027714110910892487, -0.028493022546172142, 0.0018650934798642993, -0.0031211290042847395, -0.006478135008364916, 0.0015064820181578398, -0.02181500941514969, 0.003796114819124341, -0.04856889694929123, -0.00607285788282752, 0.02592405304312706, 0.012707573361694813, -0.02422320283949375, -0.00477658910676837, -0.02918868511915207, 0.0009560727048665285, 0.032170653343200684, 0.014094994403421879, -0.009257360361516476, -0.0049896095879375935, -0.03805093839764595, -0.011884517036378384, -0.0368892103433609, 0.00016033623251132667, -0.006036174949258566, 0.01593438722193241, -0.004215266555547714, 0.04104242101311684, -0.011768958531320095, 0.031456854194402695, -0.02199631556868553, 0.006604848895221949, 0.005667433608323336, 0.006986186373978853, -0.024546822533011436, -0.04579520970582962, 0.02856573462486267, 0.018526507541537285, -0.010389977134764194, -1.418604522740452e-8, -0.022518010810017586, 0.009867635555565357, -0.010158092714846134, 0.0017763098003342748, 0.03635087236762047, 0.029149604961276054, -0.011750449426472187, 0.020111050456762314, -0.019361868500709534, 0.03482441604137421, 0.03472600504755974, -0.061196234077215195, -0.01049073226749897, 0.019650911912322044, -0.0008547945762984455, -0.04133876785635948, -0.006859675049781799, 0.000740238931030035, 0.041495293378829956, -0.016971003264188766, 0.03373067453503609, 0.07401829212903976, -0.01808037795126438, 0.006229562219232321, 0.011873121373355389, -0.003080450464040041, -0.034591637551784515, -0.06267749518156052, 0.018924832344055176, -0.011036377400159836, 0.005264879669994116, -0.014636578969657421, -0.020335359498858452, 0.033225830644369125, -0.0232390183955431, -0.046865615993738174, 0.03303884342312813, 0.044760655611753464, -0.027550537139177322, 0.003017771290615201, -0.015964265912771225, 0.006073548924177885, 0.006480813026428223, -0.04119185730814934, -0.03704461455345154, 0.025545338168740273, -0.061282042413949966, -0.0047179339453577995, 0.02719591185450554, -0.04353652149438858, 0.0157941747456789, -0.02497408352792263, 0.043779466301202774, 0.053382813930511475, 0.003544688457623124, 0.030785642564296722, -0.011789517477154732, -0.04468788579106331, -0.028164828196167946, -0.00220221234485507, 0.011270237155258656, 0.0015518635045737028, 0.013811953365802765, -0.011532697826623917 ]
qtb-agile-adoption-how-to-stuff-it-up
https://markhneedham.com/blog/2009/06/24/qtb-agile-adoption-how-to-stuff-it-up
false
2009-06-24 17:46:23
Using Fiddler with IIS
[ "software-development", "fiddler" ]
[ ".NET" ]
We've been using http://www.fiddler2.com/fiddler2/[Fiddler] to debug the requests and responses sent via web services to a service layer our application interacts with and it works pretty well when you run the application using http://en.wikipedia.org/wiki/UltiDev_Cassini_Web_Server[Cassini] but by default won't work when you run the website through IIS. The key to this as one of my colleagues (who gives credit to http://erik.doernenburg.com[Erik]) showed me today is to ensure that IIS is running under the same user that Fiddler is running under which in our case is the 'Administrator' account. The default user for IIS is 'Network Service' but as far as I'm aware you can't actually launch an application such as Fiddler from that account. We therefore changed IIS to run under the 'Administrator' account on local development machines since this is where we typically use Fiddler. To do this we need to: * Create a new application pool by going to the 'Application Pool' menu in IIS Manager and setting the 'Identity' of the new pool to be the Administrator account. * Change the application pool for our application to match that new application pool. * Go to 'Computer Management > Local Users and Groups > IIS_WPG' and add the Administrator as a user of that group. Fiddler should now capture requests/responses! I'm not sure running IIS as the Administrator account is such a great idea although it's only on the local development environment so maybe it's a reasonable trade off for the benefits we get from being able to debug web service communication.
null
null
[ 0.008953258395195007, -0.008863955736160278, 0.019649995490908623, 0.05704035237431526, 0.09631016105413437, -0.030801957473158836, 0.03615094721317291, 0.041251976042985916, 0.006073805037885904, -0.054194316267967224, 0.001608631107956171, -0.013117151334881783, -0.08647574484348297, 0.020969249308109283, -0.0012347509618848562, 0.06340232491493225, 0.08537925034761429, -0.009680116549134254, 0.016590813174843788, -0.019717199727892876, 0.013870064169168472, 0.06758499890565872, -0.002872838405892253, 0.03909037634730339, 0.012172874994575977, 0.04823501035571098, 0.01625121757388115, -0.006493146996945143, -0.040644288063049316, -0.02674875408411026, 0.05131765827536583, 0.010985265485942364, 0.004133677575737238, 0.0066885207779705524, 0.01797913946211338, -0.01212277077138424, -0.01791282743215561, 0.04059821367263794, -0.017915921285748482, 0.014646156691014767, -0.08750820904970169, 0.04498901590704918, -0.0119185084477067, 0.01551591232419014, -0.022673577070236206, -0.00597948906943202, -0.025010785087943077, 0.0044568972662091255, 0.0391804464161396, 0.005529381334781647, -0.08125853538513184, 0.04025254026055336, -0.03176715970039368, 0.02024175226688385, 0.003055463545024395, 0.01285814680159092, 0.012912186793982983, -0.05342583358287811, 0.021094191819429398, -0.04863821715116501, 0.004884364549070597, 0.010672151111066341, -0.0007101972005330026, 0.022789176553487778, 0.02062743343412876, -0.01645716279745102, 0.029328228905797005, 0.05653882026672363, -0.02122430130839348, 0.007240758743137121, 0.03165159001946449, 0.015037200413644314, -0.012897065840661526, -0.006311198230832815, 0.05882905051112175, -0.03247770294547081, -0.012024707160890102, 0.03726545721292496, 0.014069857075810432, 0.04008543863892555, -0.039204247295856476, 0.0008652222459204495, 0.015261187218129635, 0.00689335260540247, -0.02094685658812523, -0.05969095602631569, -0.037212103605270386, 0.03680982440710068, -0.0561692900955677, 0.06955172121524811, 0.03173660486936569, -0.06600833684206009, 0.03960850462317467, 0.022016029804944992, 0.0005967894685454667, 0.00009025740291690454, 0.01980345882475376, -0.0048106820322573185, 0.02392827533185482, -0.02217159979045391, -0.021531376987695694, -0.0016663187416270375, -0.0121246837079525, 0.028714386746287346, -0.08388028293848038, -0.006253115367144346, -0.020922942087054253, 0.011456936597824097, -0.031001798808574677, 0.011283290572464466, -0.04399976134300232, 0.008546263910830021, -0.0208140779286623, -0.001441528438590467, -0.07548243552446365, 0.09083206951618195, 0.0015829406911507249, -0.05324289947748184, 0.00010094864410348237, 0.035613205283880234, 0.06421408802270889, 0.03382711485028267, -0.025030922144651413, 0.06597258895635605, 0.024495992809534073, 0.011633655056357384, 0.01486226636916399, 0.043134309351444244, -0.018403442576527596, -0.07402603328227997, 0.00794103555381298, 0.05986403673887253, -0.0014141566352918744, 0.021877234801650047, -0.005150699056684971, -0.011869847774505615, 0.01845569536089897, -0.017872922122478485, 0.02780551090836525, 0.04476628452539444, -0.02105190046131611, -0.04380640760064125, -0.0011156027903780341, 0.013623015023767948, 0.03341423347592354, 0.02234431356191635, 0.010485142469406128, -0.032047338783741, -0.021138928830623627, -0.004801587201654911, 0.03435533121228218, 0.02677599899470806, 0.03473522141575813, -0.029200328513979912, -0.004741317592561245, 0.06801994144916534, 0.06457717716693878, 0.005961003713309765, -0.006137673743069172, 0.001913545886054635, 0.043745432049036026, 0.027243521064519882, -0.000016642192349536344, 0.034932926297187805, 0.015112720429897308, 0.005709218792617321, -0.00881944689899683, 0.03749319911003113, 0.01889558508992195, -0.0010504875099286437, -0.07286924868822098, -0.02939753234386444, 0.05118674784898758, -0.04713253304362297, -0.009453445672988892, 0.05396426096558571, 0.06270263344049454, 0.001816088450141251, 0.05207771435379982, -0.004205652978271246, -0.06929197907447815, 0.005975055042654276, 0.012165077030658722, 0.01862308196723461, 0.02492731437087059, 0.018087277188897133, 0.07144803553819656, 0.027978939935564995, 0.03167387470602989, 0.033716704696416855, -0.06514931470155716, -0.07494673877954483, -0.007183107081800699, 0.01677386276423931, 0.03224582225084305, -0.017542220652103424, -0.00777608435600996, 0.0852111354470253, 0.03374473378062248, 0.03649991750717163, 0.031154537573456764, -0.00852289330214262, 0.040599074214696884, -0.04387719929218292, -0.07704195380210876, 0.03848222643136978, 0.02479442209005356, -0.0064324140548706055, -0.06666968762874603, -0.0023540379479527473, -0.05286141484975815, -0.03114359825849533, 0.03704305365681648, -0.026398787274956703, 0.05660097301006317, 0.010392261669039726, 0.025973860174417496, -0.03693162649869919, 0.04276720806956291, -0.045564960688352585, 0.02879476733505726, -0.009030282497406006, -0.0030209769029170275, 0.022680673748254776, 0.00911724753677845, 0.1221083551645279, 0.07796838879585266, -0.030922047793865204, -0.060331739485263824, 0.02773291803896427, 0.001999649917706847, -0.056970253586769104, -0.0009727714932523668, -0.0072663757018744946, -0.005022148601710796, 0.032416559755802155, -0.03791949898004532, -0.057604506611824036, 0.027623949572443962, -0.0343809649348259, 0.01957596093416214, 0.07896047085523605, -0.01832890324294567, 0.05538157746195793, -0.009064252488315105, -0.032005805522203445, -0.006359849125146866, -0.026505805552005768, -0.03487973287701607, 0.0036928574554622173, 0.01948159746825695, 0.003702591871842742, 0.05623812600970268, -0.03569917008280754, -0.003472735174000263, -0.030303725972771645, -0.03385628014802933, 0.03520282730460167, 0.004080762155354023, 0.05813983827829361, 0.0036616194993257523, 0.06336856633424759, -0.018734179437160492, 0.03969428315758705, 0.013720647431910038, -0.04169999808073044, -0.03144706040620804, -0.02020915597677231, -0.009008961729705334, -0.0008180454606190324, 0.008924325928092003, -0.0050719198770821095, 0.03098394349217415, -0.004704507067799568, -0.004119901452213526, -0.0024878380354493856, 0.02605937048792839, 0.019000275060534477, -0.002181500196456909, -0.01093759760260582, -0.012139507569372654, 0.030953552573919296, -0.045493580400943756, -0.01941557414829731, -0.007263038773089647, -0.07931441068649292, 0.03638436645269394, -0.09345119446516037, -0.06373145431280136, -0.020182151347398758, 0.03503365442156792, 0.03345734626054764, 0.018755463883280754, 0.036259278655052185, 0.05017244443297386, 0.001939275418408215, 0.020724430680274963, 0.03166975826025009, 0.01890941709280014, 0.015613054856657982, 0.012913431972265244, 0.024661021307110786, 0.04447459056973457, -0.003067725570872426, -0.013078846968710423, -0.0815141350030899, 0.02686057612299919, -0.051744136959314346, -0.29180389642715454, 0.012385486625134945, 0.024363715201616287, -0.03800307214260101, 0.02851303108036518, 0.001448416500352323, 0.01919369213283062, -0.04527299851179123, -0.011296547949314117, 0.03419558331370354, -0.013733808882534504, -0.044607844203710556, -0.0180448517203331, 0.021371185779571533, -0.018855543807148933, 0.030398918315768242, 0.033096566796302795, -0.030829237774014473, 0.0033919219858944416, -0.02189348079264164, -0.02119985967874527, -0.06284357607364655, 0.027267171069979668, 0.024368124082684517, 0.01761157438158989, 0.06780286133289337, -0.048945195972919464, 0.04876357689499855, -0.04200981929898262, -0.013411312364041805, -0.006477379240095615, -0.007766066584736109, 0.007975802756845951, -0.014116127043962479, -0.0464697927236557, -0.03595098853111267, 0.016254717484116554, 0.006270114798098803, 0.025012757629156113, -0.02075011096894741, -0.04272376000881195, -0.059653718024492264, -0.003953638486564159, 0.0027979968581348658, 0.05754653736948967, -0.007593432441353798, -0.06474345922470093, 0.024478601291775703, -0.03125803917646408, 0.07073342055082321, -0.02469176985323429, -0.031957149505615234, 0.0009486337075941265, 0.04300099238753319, -0.034374188631772995, -0.01997358910739422, -0.029286522418260574, 0.022015605121850967, -0.05680902302265167, -0.04507363587617874, -0.0072801546193659306, -0.018624985590577126, -0.03590872511267662, -0.03468989580869675, 0.016962986439466476, -0.059042807668447495, -0.052138157188892365, -0.026066148653626442, 0.0840068832039833, 0.01341712661087513, -0.012901823967695236, 0.03849335014820099, -0.006557951681315899, -0.09945286810398102, 0.03623577952384949, -0.01757287047803402, -0.03867604210972786, -0.0074307783506810665, 0.016019942238926888, 0.035190414637327194, -0.041439492255449295, -0.029641147702932358, -0.011315163224935532, 0.010843079537153244, 0.00803200900554657, -0.018527725711464882, 0.028675779700279236, -0.0017547971801832318, -0.009474016726016998, 0.0225678738206625, 0.07242579013109207, -0.02017895132303238, -0.012134314514696598, -0.010514185763895512, 0.015033315867185593, 0.018082963302731514, 0.02228296548128128, 0.008813360705971718, 0.02138218842446804, 0.02197175659239292, 0.04292105510830879, -0.06732024997472763, 0.03694663196802139, -0.03656061738729477, 0.009926031343638897, 0.012338399887084961, -0.04301504045724869, 0.0014061644906178117, 0.06622219830751419, 0.0036245558876544237, -0.03172365948557854, -0.07389635592699051, 0.0011400511721149087, -0.06493381410837173, -0.025681668892502785, -0.012502273544669151, 0.028328217566013336, 0.009805820882320404, -0.00234261155128479, -0.02947748452425003, -0.03753349930047989, 0.011741871945559978, 0.03071529231965542, 0.008081095293164253, -0.06861833482980728, -0.03435530886054039, -0.0012087784707546234, 0.008321216329932213, 0.049701325595378876, 0.03624025359749794, -0.014408200047910213, 0.03262970224022865, 0.029052037745714188, -0.05094139650464058, 0.021441040560603142, -0.00558829540386796, -0.013961934484541416, -0.029216231778264046, 0.007262632716447115, 0.0019669746980071068, -0.025061657652258873, 0.013175676576793194, 0.022435471415519714, 0.015546681359410286, 0.056032583117485046, 0.028266632929444313, 0.0363282673060894, -0.02284938283264637, 0.003477164776995778, -0.002561842557042837, 0.002294213743880391, -0.07455193996429443, 0.004469689447432756, -0.020776325836777687, -0.043072398751974106, -0.02195463515818119, 0.04590078443288803, -0.01828530617058277, -0.030562467873096466, -0.009128273464739323, 0.02513597533106804, -0.0948108583688736, -0.039655644446611404, 0.022744422778487206, 0.015080363489687443, 0.07415249943733215, -0.016028380021452904, 0.00850753765553236, 0.009563981555402279, 0.006991218309849501, 0.025927230715751648, 0.05424009636044502, -0.023070037364959717, 0.017986038699746132, -0.0011857321951538324, 0.016357161104679108, -0.036014385521411896, 0.022634385153651237, 0.05285461246967316, 0.020375868305563927, 0.007607341278344393, -0.01346767507493496, -0.009763719514012337, 0.016733726486563683, 0.03336258977651596, -0.016505630686879158, -0.005858654621988535, 0.004920542240142822, 0.02382415160536766, 0.0009102497133426368, 0.0014912696788087487, -0.015429975464940071, -0.0334276407957077, 0.014068343676626682, -0.01812760904431343, -0.07751565426588058, 0.0319560207426548, -0.020555470138788223, 0.0130313690751791, 0.014829394407570362, 0.0038524542469531298, 0.007786417379975319, -0.010189525783061981, 0.02795221284031868, 0.020671458914875984, -0.03948042169213295, -0.017239708453416824, 0.01325573492795229, 0.019042253494262695, 0.01165087055414915, -0.012544151395559311, -0.06826752424240112, 0.022549979388713837, -0.005175849888473749, 0.008378077298402786, -0.06523707509040833, -0.05191708728671074, -0.03085576742887497, 0.007594002410769463, 0.01190175674855709, -0.026127055287361145, 0.004794982261955738, 0.0003781631530728191, -0.016696741804480553, -0.0552871935069561, 0.021265607327222824, -0.002095394302159548, -0.022175677120685577, -0.010969209484755993, -0.02611421048641205, 0.011581938713788986, -0.03131541609764099, 0.027357792481780052, 0.01784386858344078, -0.04318187013268471, -0.01670074462890625, -0.06274223327636719, 0.005879994947463274, 0.013890130445361137, 0.03708059713244438, -0.027887821197509766, -0.011439456604421139, -0.05133425444364548, -0.017840813845396042, 0.002812351565808058, 0.003707251511514187, -0.01802029460668564, -0.017884500324726105, 0.025092249736189842, 0.0472516268491745, 0.01129959523677826, 0.015676138922572136, 0.01689828373491764, -0.03772791847586632, 0.04199639707803726, -0.08700056374073029, -0.008488181047141552, -0.003704007249325514, -0.050932396203279495, -0.005968447774648666, -0.019441066309809685, 0.02645600400865078, -0.03289653733372688, 0.01566840149462223, 0.01409697812050581, -0.01944032683968544, 0.040907979011535645, 0.006867749150842428, 0.048471298068761826, -0.051333460956811905, 0.00024153491540346295, -0.07913094758987427, 0.02493935264647007, 0.01782471314072609, 0.00956709310412407, -0.000126069484394975, 0.02651945874094963, -0.03381940349936485, 0.0496087372303009, -0.03623458743095398, -0.040999121963977814, 0.028465954586863518, -0.032679904252290726, -0.03588312864303589, -0.010006716474890709, -0.06534185260534286, 0.05161689221858978, 0.03781255707144737, -0.040382713079452515, -0.028852447867393494, -0.019691213965415955, 0.03738906979560852, -0.005527456756681204, 0.028457874432206154, -0.04716060683131218, -0.019430851563811302, 0.05578514561057091, 0.015615743584930897, -0.009048990905284882, 0.04250096529722214, -0.023976949974894524, 0.02372269704937935, 0.013446900062263012, -0.0062205553986132145, -0.01517177652567625, 0.010662549175322056, 0.0009450232028029859, -0.06696214526891708, 0.013400846160948277, -0.01275780238211155, -0.007031322922557592, -0.054012101143598557, 0.051832422614097595, 0.026676077395677567, -0.0196259506046772, -0.04182378947734833, 0.0018829694017767906, -0.017345119267702103, -0.017049100250005722, -0.025896241888403893, 0.03820110484957695, -0.02903391420841217, 0.06378629803657532, 0.02262372523546219, 0.011161883361637592, 0.057437051087617874, 0.012534902431070805, -0.004336297977715731, -0.017131492495536804, 0.09109026938676834, 0.0851682722568512, 0.036074861884117126, 0.027022989466786385, 0.06350652128458023, -0.022455081343650818, -0.053717002272605896, 0.02481362409889698, -0.05593414977192879, -0.03859957307577133, -0.019363118335604668, 0.008435971103608608, 0.04938492178916931, 0.007897955365478992, 0.05664096772670746, -0.016886595636606216, -0.005145026836544275, -0.007610916625708342, 0.02797461859881878, 0.01913558691740036, -0.0018604096258059144, 0.013306275010108948, 0.0037988482508808374, 0.0015439406270161271, -0.04253799468278885, 0.008719541132450104, -0.02105664275586605, -0.026634523645043373, 0.010302456095814705, -0.01516719814389944, 0.009650700725615025, -0.009169488213956356, -0.012774618342518806, 0.07788857817649841, -0.03941241279244423, -0.002493900479748845, -0.010956539772450924, 0.004960900172591209, 0.0006965313805267215, 0.014845337718725204, -0.02933279424905777, -0.021493418142199516, -0.030360117554664612, -0.014269408769905567, -0.01769106276333332, 0.004801280330866575, -0.029782500118017197, 0.01576271653175354, -0.017782598733901978, 0.021761469542980194, 0.0020045635756105185, 0.016753289848566055, -0.022094357758760452, -0.025786954909563065, -0.06918687373399734, -0.02870948426425457, -0.05942455679178238, -0.026301836594939232, 0.011052115820348263, 0.0012818319955840707, -0.02441914565861225, -0.017869433388113976, -0.007776893209666014, -0.007575913332402706, 0.039923105388879776, -0.03203990310430527, -0.045125868171453476, 0.00570405600592494, 0.01324207428842783, 0.0368494838476181, 0.037934962660074234, 0.056366629898548126, -0.016757680103182793, -0.017782725393772125, -0.06944634765386581, 0.0018380442634224892, 0.06502913683652878, -0.010473372414708138, -0.014590787701308727, -0.08515068888664246, 0.03078913316130638, 0.027544699609279633, 0.006444379221647978, -0.05683804303407669, 0.01618754304945469, 0.022653216496109962, -0.00981798954308033, 0.05754273384809494, -0.027641093358397484, -0.02606012113392353, -0.022996779531240463, -0.03338449075818062, -0.004318408202379942, 0.002779255621135235, 0.03463784605264664, 0.00515452865511179, 0.07844941318035126, 0.04249352961778641, -0.015243426896631718, -0.027065828442573547, 0.022356782108545303, -0.023940861225128174, -0.006314513273537159, -0.018848849460482597, -0.016512975096702576, -0.019174929708242416, -0.06866709142923355, -0.03578844666481018, 0.019259419292211533, 0.00449732318520546, -0.03694332018494606, 0.029368355870246887, 0.0001491723523940891, -0.06703546643257141, 0.004481476731598377, -0.03838203474879265, 0.02270619384944439, -0.0379924401640892, -0.032876111567020416, 0.01200757548213005, 0.03193090856075287, -0.013337008655071259, -0.04974096268415451, 0.007796133868396282, -0.03524943068623543, -0.030224615707993507, -0.0069114635698497295, 0.03342178836464882, 0.037429094314575195, 0.010958844795823097, 0.012341554276645184 ]
[ -0.07890886068344116, -0.037987884134054184, -0.03744146227836609, -0.039448484778404236, 0.01629079505801201, -0.0761561393737793, 0.010099430568516254, 0.017594121396541595, 0.007135392166674137, -0.039614103734493256, 0.03896408528089523, 0.006373657379299402, -0.012243512086570263, 0.02380024641752243, 0.08796120434999466, 0.005456147715449333, -0.003233172232285142, -0.039967309683561325, -0.015747668221592903, 0.039343398064374924, -0.03119445964694023, -0.010369568131864071, -0.03819550573825836, -0.050865538418293, -0.053480423986911774, 0.02708037942647934, 0.02644646354019642, -0.012366913259029388, -0.010364321991801262, -0.17125347256660461, 0.03463525325059891, -0.05333886295557022, -0.031614866107702255, 0.006833511404693127, -0.01476452499628067, -0.00862043909728527, 0.015420584008097649, -0.006579712498933077, 0.018757954239845276, 0.022616181522607803, 0.02927578054368496, 0.046660080552101135, -0.06581073999404907, 0.013671458698809147, 0.02588735707104206, -0.025449305772781372, -0.017060156911611557, 0.008249694481492043, -0.03366411104798317, 0.018077397719025612, -0.0198021549731493, -0.018634628504514694, 0.028542915359139442, 0.006349081639200449, -0.010556898079812527, 0.013147938065230846, 0.02483905293047428, 0.09534020721912384, -0.002584206871688366, 0.026054222136735916, 0.018319526687264442, -0.06755472719669342, -0.1313437670469284, 0.1254841685295105, 0.02247149683535099, 0.044205810874700546, -0.03174833208322525, -0.026450365781784058, -0.044639524072408676, 0.052515659481287, -0.021950656548142433, 0.0017105953302234411, -0.06085830181837082, 0.030689477920532227, 0.006115640979260206, -0.011107856407761574, -0.026304099708795547, 0.052506763488054276, 0.06682134419679642, -0.02087884582579136, -0.009727761149406433, -0.034060847014188766, -0.021558020263910294, 0.031170029193162918, -0.03207395225763321, 0.05645149573683739, -0.009850645437836647, 0.07052337378263474, 0.05847718566656113, 0.035529397428035736, 0.030632680281996727, -0.05134299769997597, 0.06412940472364426, -0.029665211215615273, -0.08432178944349289, -0.006926184054464102, -0.027639608830213547, 0.03327370434999466, -0.06236184015870094, 0.40922221541404724, 0.00033775498741306365, -0.042203065007925034, 0.04880409315228462, 0.03429699316620827, -0.004971387330442667, 0.01059956755489111, -0.031766634434461594, -0.008846502751111984, 0.022570449858903885, -0.00967355351895094, 0.016395337879657745, 0.010330805554986, 0.028251390904188156, -0.042398851364851, 0.035655420273542404, 0.007781139109283686, -0.011935492046177387, 0.009784586727619171, -0.0009595718001946807, -0.015316897071897984, 0.0016500885831192136, 0.0039052206557244062, 0.026992568746209145, 0.011291229166090488, 0.02057618275284767, -0.004613795317709446, 0.057974498718976974, 0.03501002490520477, -0.014204639941453934, 0.03971032425761223, 0.05415579304099083, -0.058093614876270294, -0.0570765919983387, -0.010626127943396568, 0.0037327902391552925, 0.0074521745555102825, 0.028918426483869553, 0.012395326979458332, -0.01761345937848091, 0.044975560158491135, -0.018151218071579933, -0.034739620983600616, 0.04139487072825432, -0.012316861189901829, -0.006233328487724066, 0.0889093354344368, 0.029497291892766953, -0.03938911855220795, -0.004830867983400822, -0.05246457830071449, 0.009974989108741283, 0.046960197389125824, -0.010423300787806511, -0.048833075910806656, 0.0003761423286050558, 0.03424059599637985, 0.036691103130578995, 0.004919406492263079, -0.02115383930504322, -0.027495872229337692, -0.02631569281220436, -0.05041288956999779, -0.02635994926095009, 0.05217757448554039, 0.019700415432453156, -0.13088710606098175, -0.036435943096876144, 0.01761910319328308, 0.01969955489039421, -0.022535981610417366, -0.030695345252752304, -0.01343668345361948, -0.05067971721291542, -0.045642297714948654, 0.05274688079953194, -0.04876814782619476, -0.02324722707271576, 0.03703082725405693, 0.01062373723834753, 0.016186518594622612, 0.014193727634847164, 0.009750149212777615, -0.036463357508182526, -0.0005491241463460028, -0.05174819752573967, -0.05360793322324753, -0.049309369176626205, -0.013754775747656822, -0.023234086111187935, -0.06001332029700279, -0.08508802205324173, -0.0018277890048921108, -0.09707602858543396, 0.05175717920064926, 0.04530904442071915, 0.03792652487754822, -0.002745573641732335, 0.005006819032132626, -0.007290093693882227, -0.0198947936296463, 0.07952781021595001, 0.03149184212088585, -0.027591144666075706, 0.03994858264923096, -0.036870077252388, 0.08256684988737106, 0.03474108874797821, -0.042811568826436996, 0.06400494277477264, 0.007162034511566162, -0.03613848611712456, -0.01485569216310978, 0.03907829523086548, 0.03841456025838852, -0.01699266955256462, -0.008693460375070572, -0.003386187832802534, 0.03691024333238602, 0.012303742580115795, 0.08458081632852554, -0.01010363269597292, 0.04653581604361534, -0.02210579253733158, -0.33036234974861145, -0.04738808423280716, -0.010097379796206951, 0.004898934159427881, -0.010723473504185677, -0.059209439903497696, 0.04038240760564804, 0.00023195518588181585, -0.0070412191562354565, 0.045999202877283096, 0.09399348497390747, 0.01954348012804985, 0.062106478959321976, -0.08116041123867035, 0.02704049088060856, 0.03939040005207062, -0.019402973353862762, 0.008890502154827118, -0.03737878054380417, -0.01378242764621973, -0.007126125972718, -0.01827835850417614, 0.02466554194688797, -0.045820239931344986, -0.02089097909629345, -0.0306856669485569, 0.125472292304039, -0.0017334017902612686, 0.11203183978796005, -0.052987437695264816, 0.04248589277267456, 0.01823367364704609, 0.013124009594321251, -0.10726447403430939, -0.032852351665496826, -0.003955798223614693, 0.026056712493300438, 0.0016810281667858362, 0.010793250985443592, -0.02535748854279518, -0.04454413801431656, 0.016375597566366196, -0.07039663195610046, -0.04305277392268181, -0.021703852340579033, 0.02816617861390114, -0.011497373692691326, -0.027044015005230904, -0.056498199701309204, 0.05066891759634018, 0.0003544992650859058, 0.023166436702013016, 0.01785396970808506, 0.08544938266277313, 0.011058966629207134, -0.036791667342185974, -0.053659819066524506, -0.011977680027484894, 0.004410786088556051, 0.028823448345065117, 0.023964079096913338, 0.06978759914636612, 0.03280223160982132, -0.08042390644550323, 0.030237676575779915, 0.056392524391412735, 0.013474148698151112, -0.00546632194891572, 0.08383199572563171, -0.057973235845565796, -0.04580514505505562, 0.0731329396367073, -0.02506590075790882, 0.006270978599786758, -0.015154840424656868, -0.0011129394406452775, -0.02252011001110077, -0.014059030450880527, 0.024020152166485786, -0.0016673441277816892, 0.02906036004424095, -0.01196239236742258, 0.04250381514430046, -0.0571671724319458, -0.012003983370959759, 0.023530662059783936, -0.05570242181420326, -0.013472308404743671, 0.040210023522377014, -0.004359003156423569, -0.021710937842726707, 0.008652525953948498, -0.04439351707696915, -0.039630793035030365, 0.06792855262756348, -0.017905715852975845, -0.25684788823127747, 0.003402048023417592, 0.06106217950582504, 0.008256993256509304, -0.0200466588139534, -0.00022035682923160493, 0.0037252039182931185, -0.04160778969526291, -0.03249606117606163, 0.027266845107078552, 0.037962011992931366, 0.008668607100844383, -0.007244357839226723, 0.00026320788310840726, 0.025832192972302437, 0.03309255465865135, 0.0013316934928297997, 0.039949458092451096, -0.004331286996603012, -0.014447348192334175, -0.0073563517071306705, -0.03809246048331261, 0.1782975196838379, 0.038509614765644073, 0.02321137860417366, 0.036382000893354416, 0.017022879794239998, 0.02771339938044548, 0.030068183317780495, 0.0014779511839151382, 0.0092075876891613, -0.03579769656062126, 0.03851820155978203, -0.016773881390690804, 0.04422769695520401, -0.07878812402486801, -0.031263843178749084, 0.034744080156087875, 0.019319675862789154, -0.011293591931462288, -0.030109265819191933, 0.007958278991281986, -0.025556785985827446, 0.024700738489627838, 0.07736296951770782, -0.0026857436168938875, 0.0020629132632166147, 0.0023729237727820873, -0.011567945592105389, 0.027445057407021523, -0.05953146144747734, -0.04603787511587143, 0.03790580853819847, -0.008551198057830334, -0.013931789435446262, 0.06498728692531586, -0.00871104933321476, -0.05560789629817009, 0.017590761184692383, 0.026140768080949783, 0.027838904410600662, -0.007912839762866497, 0.12285296618938446, -0.030150407925248146, 0.02098352089524269 ]
[ -0.028689878061413765, 0.015841960906982422, 0.0005925190635025501, 0.01451879646629095, -0.026566598564386368, -0.058620087802410126, 0.025418613106012344, -0.027470484375953674, -0.0033458659891039133, -0.03320831432938576, -0.012920626439154148, -0.019599467515945435, 0.01237396989017725, -0.017427271232008934, 0.013762732967734337, -0.0014991196803748608, 0.004200620576739311, -0.00216211611405015, 0.022612519562244415, -0.023372435942292213, -0.025528578087687492, -0.000708548934198916, -0.004886157810688019, -0.045683130621910095, -0.03014553152024746, 0.022060571238398552, -0.023530712351202965, 0.036563366651535034, 0.015048985369503498, -0.12602095305919647, -0.0077525353990495205, -0.029072538018226624, -0.06871798634529114, -0.011613951064646244, -0.039769452065229416, -0.026050908491015434, 0.02311207726597786, 0.009938920848071575, -0.010850358754396439, -0.00012376683298498392, 0.0412374772131443, 0.021237507462501526, 0.002204014454036951, 0.0052351439371705055, -0.0008010882884263992, -0.010162784717977047, -0.039629869163036346, -0.02129814773797989, 0.00005581946606980637, 0.04494437202811241, -0.030263029038906097, 0.02601628564298153, -0.004765209276229143, -0.018301749601960182, 0.011352166533470154, -0.04979247972369194, 0.0020588014740496874, 0.04008784145116806, 0.024397581815719604, 0.052922572940588, -0.017179418355226517, -0.03728868439793587, 0.019311096519231796, -0.021131278946995735, 0.018914494663476944, 0.011631510220468044, 0.010842942632734776, -0.009682415053248405, -0.06434912234544754, -0.019889194518327713, -0.05175289139151573, -0.005043758545070887, -0.06075511872768402, -0.0010674806544557214, -0.010156936943531036, -0.026321986690163612, -0.028208011761307716, 0.03296149522066116, -0.021752407774329185, 0.012779095210134983, 0.00112023891415447, 0.003156011924147606, 0.03455678001046181, 0.04903343319892883, 0.009615074843168259, 0.03335386887192726, -0.042181067168712616, -0.015321236103773117, 0.03310643136501312, 0.021811338141560555, -0.02751997858285904, 0.010089094750583172, -0.006505237426608801, 0.03745681047439575, -0.05327478051185608, -0.005136995110660791, 0.0013950781431049109, -0.005051387473940849, -0.05190245434641838, 0.769081711769104, -0.029779018834233284, -0.025104625150561333, 0.03412412106990814, 0.00002442855475237593, -0.03282048925757408, -0.019818879663944244, 0.02552342228591442, 0.022738484665751457, 0.021657437086105347, -0.00921662338078022, -0.006422259379178286, 0.058009251952171326, 0.014222931116819382, -0.05118332430720329, 0.046907324343919754, -0.0013624291168525815, 0.026634832844138145, 0.03186895325779915, -0.000593443401157856, 0.005100809503346682, 0.03765799477696419, 0.02311709336936474, -0.04615608602762222, -0.02242090366780758, 0.04194392263889313, -0.1800568401813507, 0.0155738340690732, -8.403426177720187e-33, -0.02148539200425148, 0.010763142257928848, 0.018268104642629623, 0.034276459366083145, 0.060936879366636276, -0.08315644413232803, 0.048813868314027786, 0.04537183791399002, -0.008884337730705738, -0.016805922612547874, -0.01698371395468712, -0.03255437687039375, -0.01929914951324463, -0.011308945715427399, 0.053571783006191254, -0.019120167940855026, 0.00004924743916490115, -0.007412007078528404, 0.013941370882093906, -0.028711507096886635, 0.03968438878655434, -0.0010716081596910954, 0.0526529997587204, 0.0062263719737529755, 0.00595284067094326, 0.0012484167236834764, 0.0004211240157019347, 0.07094928622245789, -0.017912933602929115, -0.04932111129164696, 0.06000230461359024, -0.029162906110286713, -0.011261857114732265, -0.06429598480463028, 0.06646028161048889, -0.023160161450505257, 0.01697646453976631, 0.03462797775864601, 0.006589972414076328, 0.012739582918584347, -0.041455287486314774, -0.017838943749666214, -0.007484239060431719, 0.06735628843307495, -0.009045636281371117, -0.0869491696357727, 0.005361632909625769, -0.0008069262257777154, 0.026729483157396317, -0.029770245775580406, 0.00000386774036087445, 0.02604616992175579, 0.001221784041263163, 0.008552412502467632, 0.013604771345853806, 0.07183827459812164, 0.019679950550198555, -0.028530893847346306, -0.044634122401475906, 0.02530963160097599, 0.05773741379380226, -0.03747709468007088, -0.055603500455617905, -0.0023828300181776285, -0.025442233309149742, -0.03571571782231331, 0.0532836988568306, 0.005734057631343603, 0.012207845225930214, -0.010853161104023457, 0.005701486486941576, -0.003826116444543004, 0.009631277993321419, 0.012498375028371811, 0.055385250598192215, 0.023174628615379333, -0.03242114558815956, 0.029423415660858154, 0.019238190725445747, 0.003277147887274623, 0.02624133788049221, -0.031986385583877563, -0.020283928140997887, 0.004698100965470076, -0.027583561837673187, -0.013173908926546574, -0.002420904813334346, -0.034587178379297256, 0.04476795718073845, 0.004473974462598562, 0.047321733087301254, 0.028723713010549545, 0.013639922253787518, -0.005972834769636393, -0.032022032886743546, 7.608479021193414e-33, 0.007685823366045952, 0.034849438816308975, -0.022216232493519783, -0.00554587272927165, -0.017025209963321686, -0.004078598227351904, 0.04975572228431702, 0.0016933698207139969, -0.024854211136698723, 0.027270855382084846, 0.03188993036746979, 0.044978171586990356, -0.012372922152280807, 0.02797016315162182, -0.0021574723068624735, 0.011794865131378174, -0.0013806583592668176, 0.007974456995725632, 0.055124446749687195, -0.03809497505426407, 0.013631423935294151, 0.0082248505204916, 0.01725911721587181, -0.01936330832540989, -0.00319970422424376, 0.0354219414293766, -0.0006033677491359413, -0.024005312472581863, -0.022963866591453552, 0.021713310852646828, -0.008220010437071323, -0.03611123561859131, 0.01702558435499668, -0.08423058688640594, -0.00029219422140158713, -0.011332148686051369, 0.007974253036081791, 0.02082311548292637, -0.013380582444369793, 0.0004186999867670238, 0.020325442776083946, -0.030800076201558113, 0.012723135761916637, 0.024378692731261253, 0.041133906692266464, 0.03398093581199646, -0.015701841562986374, -0.0024573071859776974, -0.02146545797586441, 0.02560064196586609, -0.027903318405151367, 0.0393395870923996, 0.009954004548490047, 0.020179634913802147, 0.012644150294363499, -0.006660687271505594, -0.013494778424501419, -0.043166227638721466, -0.013438781723380089, 0.0070503209717571735, 0.013865839689970016, -0.022581497207283974, -0.05768081545829773, 0.04168885573744774, 0.015044721774756908, 0.04508066177368164, -0.019726967439055443, -0.001524074119515717, 0.010756370611488819, -0.014398584142327309, -0.02317611128091812, -0.015082716010510921, -0.027770327404141426, 0.01185091957449913, 0.0005055698566138744, -0.052976422011852264, -0.009610054083168507, -0.016339052468538284, -0.04955090954899788, 0.0294079277664423, 0.005991864949464798, -0.01961718685925007, -0.026350725442171097, -0.049570824950933456, -0.008275427855551243, -0.010580805130302906, -0.027630217373371124, -0.027527829632163048, -0.021657900884747505, -0.032772861421108246, -0.01528631430119276, -0.0008769807172939181, -0.007429267279803753, -0.03494281321763992, 0.0038991360925137997, -1.2808324179047759e-8, -0.04630411043763161, 0.04607966169714928, -0.026868831366300583, -0.03256084769964218, 0.004645746201276779, -0.006398259196430445, -0.06753083318471909, 0.0021346760913729668, -0.0164786446839571, 0.027945110574364662, -0.02892691269516945, 0.02705364115536213, 0.04191967099905014, 0.007754884194582701, 0.03860927373170853, -0.0011831549927592278, 0.024519039317965508, -0.03899345546960831, 0.045668698847293854, -0.03237263113260269, 0.08716922998428345, 0.05296012759208679, 0.03686505928635597, -0.003807344241067767, -0.010735675692558289, -0.037293363362550735, -0.025789067149162292, -0.04345065355300903, -0.004796870052814484, 0.05922596901655197, -0.05393737182021141, -0.003833810333162546, -0.021504255011677742, -0.016001978889107704, -0.027981892228126526, -0.03157472610473633, -0.074372299015522, -0.038338128477334976, 0.05931020528078079, 0.003610544139519334, 0.006900631356984377, 0.03138212114572525, 0.005392780993133783, 0.0057379817590117455, 0.02681695856153965, 0.04435977712273598, -0.00591611210256815, 0.025677764788269997, 0.038021575659513474, -0.09510228037834167, 0.06341526657342911, 0.00365242687985301, 0.0531974695622921, 0.022162796929478645, 0.008999207988381386, 0.03649267181754112, 0.01875550113618374, -0.008261749520897865, -0.00896455068141222, 0.056733373552560806, 0.0399918369948864, 0.05776967480778694, -0.03474847972393036, -0.015515436418354511 ]
using-fiddler-with-iis
https://markhneedham.com/blog/2009/06/24/using-fiddler-with-iis
false
2009-06-23 19:31:37
Visual Studio/Resharper: Changing the order of arguments
[ "resharper", "visual-studio" ]
[ "Software Development" ]
We've recently run into some places in our tests where the expectation and actual values passed into http://nunit.org/index.php[NUnit]'s 'Assert.AreEqual' are the wrong way round, therefore meaning that the error messages we get when tests fail are somewhat confusing! [source,csharp] ---- Assert.AreEqual(theActualValue, "the expectation"); ---- We can change the arguments around using Resharper by using the key combination 'Ctrl-Alt-Shift-ArrowKey' but you can only do this one line at a time which was a bit annoying as there were about 20 to change. I got a bit bored of doing this after a while so I thought I'd look into whether it would be possible to do this with a 'Find & Replace'. After a bit of trial and error this is what I've ended up with: * Select all the areas of code that you want to change and press 'Ctrl-H' * In the find box type: ~~~text \({.*}, {\".*\"} ~~~ * And in the replace box type: ~~~text (\2, \1 ~~~ The '{}' define a matching group of which we define two in this case and then switch them around. Visual Studio's regex seems a bit different than the one I'm used to - http://msdn.microsoft.com/en-us/library/2k3te2cs(VS.80).aspx[the reference list for the syntax is available on MSDN]. It's not too complicated and I'm sure there are edge cases where it wouldn't work but for the little case I had it did the job reasonably well.
null
null
[ -0.010446244850754738, -0.01588456705212593, -0.020601237192749977, 0.06392852216959, 0.07710988074541092, 0.02398567833006382, 0.03912368789315224, 0.014235819689929485, 0.015275503508746624, -0.03006514348089695, -0.031437475234270096, 0.023045886307954788, -0.0702526792883873, -0.001816359581425786, -0.030323604121804237, 0.08048094063997269, 0.05851402506232262, -0.004253246355801821, 0.03203336149454117, -0.0286514014005661, 0.024230187758803368, 0.03156450390815735, 0.022247035056352615, 0.009667727164924145, 0.04201187938451767, 0.049081988632678986, 0.004790198989212513, -0.0442250557243824, -0.07182939350605011, -0.017107045277953148, 0.04274822399020195, 0.017392409965395927, -0.005897639784961939, -0.021558286622166634, 0.018268972635269165, 0.000017199254216393456, -0.017873749136924744, 0.00753941060975194, 0.02106652595102787, 0.014588255435228348, -0.06546138226985931, -0.001961162080988288, -0.006232380401343107, 0.027984272688627243, -0.02490176074206829, 0.003273826790973544, -0.03233762085437775, -0.03081839717924595, -0.06348168849945068, -0.024123072624206543, -0.0647500604391098, 0.05771505460143089, -0.0168526079505682, -0.005251224152743816, 0.01020760927349329, 0.04839949682354927, 0.03063807636499405, -0.065381720662117, 0.03045530989766121, -0.05989189073443413, -0.010456905700266361, 0.012260697782039642, -0.027015304192900658, 0.05774713307619095, 0.042439937591552734, -0.0019152159802615643, 0.017557738348841667, 0.05036713555455208, -0.0668894425034523, -0.03298899903893471, -0.012118876911699772, 0.008421726524829865, 0.006820010486990213, -0.04090109467506409, 0.036709610372781754, -0.044576581567525864, -0.03063567541539669, 0.023996036499738693, 0.023046772927045822, 0.053528714925050735, 0.0058494191616773605, 0.013692684471607208, 0.07050265371799469, -0.009044064208865166, 0.022477123886346817, -0.025637254118919373, -0.004751516971737146, -0.014205320738255978, -0.012595616281032562, 0.0354202575981617, -0.0003139158943668008, -0.046654585748910904, 0.02777177467942238, 0.026500068604946136, 0.006394148804247379, 0.006768899504095316, 0.017031894996762276, -0.021900949999690056, 0.016253476962447166, 0.004579208325594664, -0.035281307995319366, -0.012343530543148518, 0.03000866062939167, 0.0037968347314745188, -0.09493160992860794, -0.0016562065575271845, -0.021897733211517334, -0.008506464771926403, 0.021739400923252106, 0.0060204919427633286, -0.06357266008853912, 0.0226682610809803, -0.005635320674628019, -0.009157758206129074, -0.08307113498449326, 0.04394609481096268, 0.02942466177046299, 0.023669010028243065, 0.0036310835275799036, 0.048236265778541565, 0.04108038917183876, 0.01230038981884718, -0.026945870369672775, 0.10149125754833221, 0.008322627283632755, 0.07588523626327515, -0.001320511451922357, 0.050188906490802765, 0.005043350625783205, -0.07579009234905243, 0.004026818089187145, 0.04187542945146561, 0.00534788565710187, 0.013618823140859604, -0.007961231283843517, -0.03758727386593819, -0.020797420293092728, -0.028917107731103897, 0.035424843430519104, 0.038846325129270554, -0.0027619379106909037, -0.029902301728725433, 0.001253594527952373, 0.010835706256330013, 0.009562736377120018, 0.014155554585158825, -0.0453806146979332, -0.025053465738892555, -0.00705869123339653, 0.06981886923313141, 0.03564119338989258, 0.020925428718328476, 0.053135208785533905, -0.04176442697644234, -0.015146173536777496, 0.07022262364625931, 0.004669825080782175, 0.022693200036883354, -0.0009399451082572341, 0.031131833791732788, 0.03435554355382919, 0.04419635236263275, 0.01583082787692547, 0.05583258345723152, 0.013119854964315891, 0.005993072409182787, -0.016962818801403046, 0.047022607177495956, -0.02323923073709011, 0.00789362657815218, -0.06504513323307037, -0.05951663479208946, 0.04559144377708435, -0.06535598635673523, 0.0014050264144316316, 0.04718080908060074, 0.045519765466451645, 0.007686285302042961, 0.0745939165353775, 0.0023169037885963917, -0.06803471595048904, 0.034523073583841324, 0.009852828457951546, 0.008852136321365833, -0.004169568885117769, -0.00515711260959506, 0.07254023849964142, 0.011138567700982094, 0.006972257513552904, 0.03779549151659012, -0.08165479451417923, -0.08457136154174805, -0.030962977558374405, -0.037248171865940094, 0.06228033825755119, -0.02586238831281662, -0.019210975617170334, 0.07175273448228836, -0.0009412688668817282, 0.044434498995542526, 0.0469285249710083, -0.018040714785456657, 0.03176533430814743, -0.029613137245178223, -0.03791370987892151, 0.0383991114795208, 0.04546758905053139, 0.006061742547899485, -0.04668792709708214, 0.011906762607395649, -0.014020100235939026, 0.020537586882710457, 0.025722458958625793, 0.0024367813020944595, 0.054668426513671875, 0.01821071282029152, 0.05302407220005989, -0.016646595671772957, 0.06834865361452103, -0.06687164306640625, 0.027313482016324997, -0.024297131225466728, -0.00007763499888824299, -0.026760555803775787, -0.008192241191864014, 0.12800218164920807, 0.048505209386348724, -0.03651796281337738, -0.04676533490419388, -0.015195596031844616, 0.003950945567339659, -0.04002472013235092, 0.005046953447163105, -0.0045831166207790375, 0.0053884717635810375, -0.008280390873551369, -0.038982123136520386, -0.024175288155674934, -0.0023513445630669594, -0.03340398892760277, 0.03679858520627022, 0.06109152361750603, -0.0032429718412458897, 0.05921678617596626, -0.007002528291195631, -0.02012910507619381, 0.00908849947154522, -0.017620917409658432, -0.04583437740802765, 0.009033191949129105, 0.023650338873267174, -0.001419604173861444, 0.046046722680330276, -0.028436535969376564, -0.043882016092538834, 0.009925158694386482, -0.04775771126151085, -0.0003662192029878497, 0.036487799137830734, 0.055468183010816574, 0.007691898383200169, 0.04066634923219681, -0.016351504251360893, 0.012801260687410831, 0.00951043888926506, -0.055235605686903, -0.015369655564427376, 0.01661374419927597, -0.016298357397317886, 0.010443639010190964, 0.014448359608650208, 0.0036307084374129772, 0.02386370673775673, 0.006271470803767443, -0.016710126772522926, -0.02528202347457409, 0.04834303259849548, 0.040252190083265305, -0.03780291602015495, -0.006739254109561443, -0.02593196928501129, 0.032856669276952744, -0.03204653039574623, -0.01682622916996479, 0.01661362126469612, -0.07756050676107407, 0.009726244024932384, -0.1160711720585823, -0.07736098766326904, -0.002036654856055975, 0.0102163627743721, 0.03244653716683388, -0.0038047311827540398, 0.03252335265278816, 0.047493379563093185, -0.013133426196873188, 0.011370841413736343, 0.020142437890172005, 0.03173943981528282, 0.020604435354471207, 0.024994008243083954, 0.01965341717004776, 0.024438517168164253, -0.018781611695885658, 0.023832276463508606, -0.09556224942207336, 0.008961892686784267, -0.023894580081105232, -0.2615000903606415, 0.04615896940231323, 0.0019808851648122072, -0.01568419672548771, 0.05048308148980141, -0.042693983763456345, 0.06025811657309532, -0.049431994557380676, -0.007871292531490326, 0.043754614889621735, -0.031752318143844604, -0.03969079628586769, -0.01991439051926136, 0.041722409427165985, -0.01037121657282114, -0.043503209948539734, 0.01092458888888359, -0.06697390973567963, 0.024121835827827454, 0.037371255457401276, -0.011610950343310833, -0.03194603696465492, 0.017972376197576523, 0.05586450919508934, 0.05116396024823189, 0.09260821342468262, -0.0823097750544548, 0.04467185214161873, -0.01772398315370083, -0.00153319479431957, 0.010851089842617512, 0.011311322450637817, -0.008598056621849537, -0.03748507797718048, -0.005620136391371489, -0.00537725118920207, 0.017356546595692635, 0.009817316196858883, -0.022641731426119804, 0.01875736191868782, -0.045701559633016586, -0.04196661710739136, 0.012506285682320595, -0.02580156922340393, 0.076860211789608, -0.014971712604165077, -0.0427788682281971, 0.018126077950000763, -0.026891786605119705, 0.052221279591321945, -0.043252356350421906, -0.016527047380805016, -0.00008794402674539015, 0.05558216571807861, 0.005391861777752638, -0.00816429778933525, 0.01627156510949135, -0.02111015096306801, -0.0448097363114357, -0.018908729776740074, -0.014442948624491692, -0.05159809812903404, -0.03044244647026062, -0.032265350222587585, -0.014384031295776367, -0.07979480922222137, -0.050538044422864914, -0.0310593880712986, 0.06478969752788544, 0.01385559607297182, -0.04251924902200699, -0.009962614625692368, 0.011294960975646973, -0.08997192978858948, 0.010868011973798275, -0.036577727645635605, -0.04252523556351662, -0.033768948167562485, -0.018333595246076584, 0.03504451364278793, -0.03789546340703964, -0.04190057888627052, 0.027334121987223625, 0.03776174783706665, 0.01685059443116188, 0.000027292016966384836, 0.028291648253798485, -0.0070279440842568874, -0.033249370753765106, 0.015384416095912457, 0.06990023702383041, -0.01517881266772747, -0.024764293804764748, -0.03329896926879883, 0.0185276810079813, 0.009134756401181221, 0.02434791997075081, -0.011602792888879776, 0.034992046654224396, 0.014193503186106682, 0.041451841592788696, -0.058714836835861206, 0.044271744787693024, -0.0424555167555809, 0.02069348283112049, -0.010523246601223946, -0.02068045176565647, 0.023967985063791275, 0.033393435180187225, -0.01541185099631548, -0.0313834622502327, -0.027554575353860855, 0.0015146564692258835, -0.04240289703011513, -0.029474688693881035, -0.03205210715532303, 0.016241654753684998, 0.007595905102789402, -0.023839276283979416, -0.03655914589762688, -0.006062207743525505, 0.010630453005433083, 0.0065551940351724625, -0.022455735132098198, -0.06151100620627403, -0.05375261604785919, 0.01685897819697857, 0.033433832228183746, 0.0007482091896235943, -0.00980405043810606, -0.012196250259876251, 0.03069736808538437, 0.018030943349003792, -0.03146620839834213, 0.02153797261416912, 0.0038083295803517103, 0.017209652811288834, -0.0031309258192777634, -0.004296513274312019, -0.010931071825325489, -0.011186931282281876, -0.0022550993598997593, -0.013450533151626587, -0.0015503312461078167, 0.04291750490665436, -0.008102770894765854, 0.019508305937051773, -0.022537274286150932, -0.01595560647547245, 0.012173788622021675, 0.010807589627802372, -0.06649352610111237, 0.028047513216733932, -0.009699220769107342, -0.013057432137429714, -0.019447214901447296, 0.04031067341566086, -0.023367129266262054, -0.04107958823442459, -0.05308862403035164, 0.015497064217925072, -0.04091677814722061, -0.04813674837350845, -0.028950007632374763, 0.0037911541294306517, 0.03698263689875603, -0.0032749692909419537, 0.05642244964838028, -0.03235964477062225, 0.0009721593814902008, 0.020103927701711655, 0.019747193902730942, -0.027341559529304504, 0.02957473136484623, -0.023308010771870613, -0.004258127883076668, 0.009240278042852879, 0.004578948952257633, 0.02794034220278263, 0.028095277026295662, 0.0471983440220356, -0.013343803584575653, 0.015024013817310333, 0.010088907554745674, 0.039963193237781525, -0.017008746042847633, 0.00886558648198843, 0.0022274309303611517, -0.020527632907032967, -0.027193477377295494, -0.04766382649540901, -0.04450548440217972, -0.03527352958917618, 0.02067188359797001, -0.053316112607717514, -0.075625479221344, 0.02410862222313881, -0.009620510041713715, 0.036224063485860825, 0.01910747028887272, 0.04204895347356796, -0.004263343755155802, -0.0329730287194252, 0.03560693562030792, 0.0417947992682457, -0.05859123915433884, 0.020777180790901184, 0.006303479894995689, -0.007549751549959183, 0.023045174777507782, 0.01975974626839161, -0.03687503933906555, -0.015957320109009743, -0.023489922285079956, 0.004624080378562212, -0.03799959644675255, -0.03775351867079735, -0.04400843009352684, 0.03663985803723335, -0.024637676775455475, -0.01803656853735447, -0.00544861052185297, 0.030627047643065453, -0.0016986519331112504, -0.002617458812892437, -0.006411734037101269, -0.015393475070595741, -0.0064504812471568584, 0.057772196829319, -0.02329065091907978, -0.0037017418071627617, -0.034517791122198105, 0.03258247300982475, 0.021757930517196655, -0.005121342372149229, -0.03618302941322327, -0.08118683099746704, -0.02153276838362217, -0.0072152502834796906, 0.017655156552791595, -0.016495537012815475, -0.02931606024503708, -0.03390802443027496, 0.004821648355573416, -0.007417703978717327, 0.022806962952017784, 0.016993416473269463, -0.0378122515976429, 0.030019914731383324, 0.07075908780097961, 0.020968502387404442, 0.02306170016527176, 0.005971857812255621, 0.015480521135032177, 0.05489736795425415, -0.07297062128782272, -0.0033540562726557255, -0.005893858615309, -0.07008808851242065, 0.016219334676861763, 0.02885129489004612, 0.011506490409374237, -0.04899446666240692, 0.021591130644083023, 0.01887805387377739, 0.0024939097929745913, 0.021943315863609314, -0.009853075258433819, 0.01607181504368782, -0.052996035665273666, 0.0062186275608837605, -0.0757398009300232, 0.026993118226528168, 0.024622946977615356, 0.01171877421438694, -0.05784149840474129, -0.018905125558376312, -0.01727774180471897, 0.02671506628394127, -0.035176146775484085, -0.025781042873859406, 0.023662107065320015, -0.001117404317483306, 0.0031279283575713634, 0.009523645043373108, -0.053639110177755356, 0.036790356040000916, 0.0210043303668499, -0.03989490121603012, -0.039001379162073135, -0.031999170780181885, 0.06642944365739822, 0.002530378056690097, 0.005304941441863775, -0.06247618794441223, 0.005188326351344585, 0.05001377314329147, 0.04127988964319229, 0.050776157528162, 0.03759440407156944, -0.04259001463651657, 0.025236839428544044, 0.031376902014017105, -0.008929286152124405, -0.00646184990182519, -0.004179701674729586, 0.004025100730359554, -0.055783919990062714, 0.03341794013977051, 0.00608952809125185, -0.01515271794050932, -0.05845201760530472, 0.06441107392311096, -0.0011587123153731227, -0.020391616970300674, -0.043022364377975464, -0.02315494418144226, -0.03233783319592476, -0.024496721103787422, -0.025196384638547897, -0.0025336584076285362, -0.01264298427850008, 0.051228322088718414, 0.008982013911008835, 0.004474474582821131, 0.08812228590250015, -0.009086503647267818, 0.006750012747943401, -0.006765708327293396, 0.05636167153716087, 0.08818622678518295, 0.05003630369901657, -0.004715804010629654, 0.04506302997469902, -0.06040606647729874, -0.05508268252015114, 0.023576591163873672, -0.02568737603724003, 0.01805206574499607, -0.02561846934258938, 0.009249002672731876, 0.055696625262498856, -0.001826945343054831, 0.040907226502895355, -0.0560356043279171, 0.012489024549722672, -0.024794060736894608, 0.009181451052427292, 0.013020261190831661, 0.028964821249246597, 0.00351478043012321, 0.00794151984155178, -0.0038443729281425476, -0.01079651340842247, 0.052128635346889496, -0.02035519853234291, -0.006984021980315447, 0.008413794450461864, -0.009797202423214912, -0.012890150770545006, -0.01852310076355934, 0.017033839598298073, 0.07657996565103531, -0.014246948063373566, -0.009091549552977085, 0.03646223247051239, 0.02921753190457821, 0.022547584027051926, 0.001137573504820466, -0.016331525519490242, -0.027971956878900528, -0.03993501886725426, -0.00853174738585949, -0.026667321100831032, -0.019670123234391212, -0.012149857357144356, 0.020787229761481285, -0.012427598237991333, 0.021348945796489716, 0.01835453137755394, 0.0257935281842947, -0.024845870211720467, -0.06254711747169495, -0.06797540932893753, -0.026211418211460114, -0.05354129150509834, -0.002805837895721197, 0.0002611307136248797, -0.0042802016250789165, -0.008341039530932903, -0.026259727776050568, -0.0285175871104002, -0.0067738136276602745, 0.04285223037004471, -0.022239206358790398, -0.026876619085669518, 0.025147484615445137, 0.03733464330434799, 0.020200522616505623, 0.040385160595178604, 0.019230222329497337, 0.014886710792779922, -0.023110343143343925, -0.04511604830622673, -0.01196463406085968, 0.030153101310133934, 0.0021030381321907043, 0.048328328877687454, -0.06345246732234955, -0.0034055954311043024, 0.04193880409002304, 0.021091781556606293, -0.06502962112426758, 0.02466573752462864, -0.009784403257071972, -0.037296634167432785, 0.04252620041370392, -0.012196303345263004, -0.00854492001235485, 0.013434669934213161, 0.0023860647343099117, -0.005848863627761602, 0.024921473115682602, 0.02716144360601902, -0.028150547295808792, 0.06546328961849213, 0.02168041653931141, -0.016946259886026382, -0.05252539739012718, -0.026183051988482475, 0.01808750443160534, 0.027778301388025284, -0.02687050588428974, -0.010442592203617096, -0.0592118501663208, -0.06766360253095627, 0.008175859227776527, 0.004535729996860027, -0.00798520166426897, -0.0223129540681839, 0.02366344816982746, 0.021401377394795418, -0.10270291566848755, 0.05908941105008125, -0.018848296254873276, 0.004338644444942474, -0.031587451696395874, -0.03628814220428467, 0.018921298906207085, 0.03692103549838066, 0.002882359316572547, 0.01844761148095131, 0.05419467017054558, -0.038008302450180054, -0.006610598415136337, -0.035348158329725266, -0.018740637227892876, 0.026006435975432396, 0.0004751778324134648, 0.03762216866016388 ]
[ -0.12249644100666046, -0.0075079165399074554, -0.04165324196219444, -0.023346947506070137, 0.049269214272499084, -0.052350301295518875, 0.018713507801294327, 0.0027160877361893654, 0.0017593763768672943, -0.025023577734827995, -0.008471699431538582, -0.012113293632864952, -0.011447436176240444, -0.009654869325459003, 0.07296188175678253, 0.02553114853799343, -0.012581966817378998, -0.022838689386844635, -0.007570177782326937, 0.029822442680597305, 0.001907734782435, 0.007654815446585417, -0.027971476316452026, -0.012243651784956455, 0.03212440386414528, 0.02680617943406105, 0.05101527273654938, -0.05904192477464676, 0.008087581023573875, -0.2203667163848877, 0.0018378890817984939, -0.01656412146985531, -0.0030253001023083925, -0.04174526408314705, 0.002815627958625555, 0.04350069537758827, -0.006021399050951004, -0.01159822940826416, 0.0024798063095659018, 0.05718497186899185, 0.003987093456089497, 0.012971799820661545, -0.03549841418862343, -0.04258894920349121, 0.02050892636179924, -0.010275001637637615, -0.00509240385144949, 0.0011360604548826814, -0.014493175782263279, -0.000863195804413408, -0.0481601320207119, -0.04052501171827316, -0.010414290241897106, -0.035938236862421036, -0.012627855874598026, 0.001544186845421791, 0.04231487587094307, 0.062328845262527466, 0.018370328471064568, 0.0003821295977104455, 0.023230884224176407, -0.02326587401330471, -0.14517728984355927, 0.09646525979042053, 0.022895021364092827, 0.04055190086364746, -0.02347961999475956, -0.053774792701005936, -0.04548574239015579, 0.08678961545228958, 0.023022890090942383, -0.03246878832578659, -0.057424068450927734, 0.0566210001707077, 0.028841136023402214, -0.018047332763671875, 0.004208968952298164, 0.025341836735606194, 0.06808243691921234, -0.007487795315682888, -0.04347311332821846, -0.03239504620432854, -0.017069492489099503, -0.009680871851742268, -0.02036491222679615, 0.027019793167710304, 0.018183061853051186, 0.06709715723991394, 0.06356777995824814, 0.021929820999503136, 0.03513145446777344, -0.0103923249989748, 0.0006854962557554245, 0.004082333762198687, -0.06987553089857101, 0.00002724585465330165, -0.03533868119120598, 0.016584360972046852, -0.009855294600129128, 0.4528941512107849, -0.015748994424939156, 0.0032330297399312258, 0.008479240350425243, 0.02329445630311966, 0.009436392225325108, -0.006577418185770512, 0.009939237497746944, -0.03710566833615303, 0.02264062687754631, -0.02927209623157978, 0.01784229651093483, 0.01370391808450222, 0.055244095623493195, -0.06696602702140808, -0.022341445088386536, 0.05867548659443855, 0.04987544193863869, -0.00011182214802829549, -0.006842585746198893, -0.015901362523436546, -0.02576257474720478, -0.005772808101028204, 0.010840103961527348, -0.0037471968680620193, 0.02052517980337143, -0.036891765892505646, 0.029175247997045517, 0.08721525967121124, 0.02432607300579548, 0.019853902980685234, 0.053612254559993744, -0.05204232782125473, -0.06602831929922104, -0.00546610401943326, 0.010550680570304394, 0.02409498579800129, 0.004219473339617252, -0.010411933064460754, 0.003912154585123062, 0.04779430478811264, 0.0032423390075564384, -0.058710966259241104, 0.009718761779367924, -0.0068263397552073, -0.06586094200611115, 0.11265017837285995, -0.04344136267900467, -0.003637607442215085, 0.0022345029283314943, -0.05315161868929863, 0.019487449899315834, 0.020999135449528694, -0.04394865036010742, -0.04907574877142906, -0.001279363059438765, -0.009483256377279758, 0.0700838565826416, -0.03009164147078991, -0.03382619470357895, -0.03553244099020958, -0.007529545575380325, -0.03865720331668854, -0.05455676466226578, 0.05884305760264397, 0.022857973352074623, -0.07317280024290085, -0.03316185623407364, 0.009421330876648426, 0.04131506755948067, -0.05782464146614075, -0.005284391343593597, -0.012056227773427963, -0.03446105867624283, -0.026958143338561058, 0.030142944306135178, -0.023363245651125908, 0.00022771349176764488, 0.011097229085862637, 0.04005900397896767, 0.007260072510689497, -0.010503950528800488, 0.023100847378373146, -0.04855203628540039, 0.01035403460264206, -0.020869022235274315, -0.06280621886253357, -0.038630980998277664, 0.008615737780928612, -0.007985771633684635, -0.013602585531771183, -0.005935274064540863, -0.026721306145191193, -0.09033338725566864, 0.1040155217051506, -0.013562332838773727, 0.011374250054359436, 0.01257731206715107, -0.01074001844972372, 0.008596325293183327, -0.019787341356277466, 0.052672311663627625, 0.03630285710096359, -0.0019446504302322865, 0.006710256915539503, -0.05355669558048248, 0.05315052345395088, 0.06415160745382309, -0.05822988972067833, 0.056039564311504364, 0.05486684292554855, -0.03621820732951164, -0.01707826554775238, 0.0007607975276187062, 0.035177990794181824, -0.0008469909662380815, -0.017698438838124275, 0.0028987349942326546, 0.008949331007897854, 0.011317848227918148, 0.0748835876584053, -0.04859393835067749, -0.04413812607526779, -0.001779732876457274, -0.32295751571655273, -0.02293703332543373, -0.0055173165164887905, -0.012990673072636127, 0.0542839914560318, -0.046747785061597824, -0.01580999791622162, 0.022735700011253357, -0.016768857836723328, 0.03820420056581497, 0.05644726753234863, 0.01186165027320385, 0.01066123228520155, -0.09159868955612183, 0.025042984634637833, -0.019023824483156204, -0.04215986281633377, -0.026937218382954597, -0.038679350167512894, -0.009429842233657837, -0.02934797666966915, 0.006562649738043547, -0.030748803168535233, -0.053999848663806915, 0.03628697991371155, -0.03311571851372719, 0.10415205359458923, 0.0006268455763347447, 0.09425592422485352, -0.024155180901288986, 0.04500637575984001, -0.011685917153954506, 0.06238972023129463, -0.06725755333900452, 0.022069964557886124, -0.017637256532907486, -0.027693016454577446, -0.0016650744946673512, 0.04211050271987915, -0.03188297525048256, 0.008563561365008354, 0.02843123860657215, -0.05122455209493637, -0.043994367122650146, 0.00590662332251668, -0.0003730050229933113, -0.009906655177474022, 0.01087998691946268, -0.038609057664871216, 0.10176592320203781, -0.0029486108105629683, 0.007942721247673035, -0.0064980085007846355, 0.033290620893239975, 0.023748481646180153, 0.013138044625520706, -0.09869258105754852, -0.017534278333187103, 0.020616726949810982, -0.04603675380349159, 0.06319999694824219, 0.05087074264883995, 0.052046649158000946, -0.05906708911061287, -0.015558402985334396, 0.050912898033857346, 0.01227684784680605, -0.040748290717601776, 0.06455668807029724, -0.004939453676342964, -0.009722277522087097, 0.07942143827676773, -0.037833575159311295, 0.0011755090672522783, -0.0005102973082102835, 0.050386082381010056, -0.03596581518650055, 0.022801680490374565, 0.02847299911081791, 0.004884150344878435, 0.017002439126372337, -0.004376249387860298, 0.019228098914027214, -0.040749967098236084, 0.009437941014766693, 0.004862606059759855, -0.0640292540192604, -0.01336786337196827, 0.07794594019651413, 0.000719773001037538, -0.042684998363256454, -0.015806211158633232, -0.022726943716406822, -0.04727766290307045, 0.05322512984275818, -0.015581942163407803, -0.2304166853427887, 0.012910321354866028, 0.07270771265029907, 0.03546971455216408, -0.041676975786685944, 0.017867708578705788, 0.013628443703055382, -0.0776776447892189, -0.04544435814023018, -0.0188980083912611, 0.010898842476308346, 0.04595481976866722, 0.014819723553955555, -0.02015667036175728, 0.02186114713549614, -0.03185533359646797, 0.03807416185736656, -0.005802567582577467, 0.009795894846320152, 0.012867477722465992, 0.011566846631467342, 0.011443400755524635, 0.17743690311908722, 0.015517682768404484, -0.010775348171591759, 0.021419605240225792, 0.0352608747780323, 0.00502851651981473, 0.07878021150827408, 0.013345763087272644, -0.008298820815980434, 0.002387167187407613, 0.05237218365073204, 0.008618766441941261, 0.05585994943976402, -0.043101951479911804, -0.047783661633729935, 0.016792824491858482, 0.03424622118473053, -0.04155533015727997, -0.023858265951275826, 0.0108521468937397, -0.03701992705464363, 0.03799408674240112, 0.07731521874666214, -0.011871615424752235, 0.006442626938223839, 0.004498642403632402, -0.028375981375575066, 0.014270441606640816, -0.06741252541542053, 0.009357641451060772, -0.013140073977410793, -0.006398958154022694, 0.007255884353071451, 0.04287073016166687, 0.010338351130485535, -0.04917256534099579, 0.016351494938135147, 0.0035314231645315886, -0.019304927438497543, 0.00405716709792614, 0.11541637033224106, 0.03195982426404953, 0.023315127938985825 ]
[ 0.0010293344967067242, 0.004294971935451031, -0.015042885206639767, 0.046870455145835876, -0.012814001180231571, 0.01779484562575817, -0.009292986243963242, 0.0018888114718720317, 0.0016830789390951395, 0.002600381849333644, -0.032156217843294144, -0.007283421698957682, 0.022950008511543274, -0.019592924043536186, -0.03250657021999359, 0.006310419179499149, -0.030858516693115234, -0.000302973814541474, 0.018983539193868637, 0.010815891437232494, -0.022296622395515442, 0.025687536224722862, -0.0010451731504872441, 0.007480810862034559, 0.008001046255230904, -0.0012074824189767241, -0.019444607198238373, 0.022496867924928665, 0.015014012344181538, -0.13184913992881775, -0.022718671709299088, -0.014414417557418346, 0.0009627302060835063, 0.004332025069743395, -0.015062632039189339, 0.0006959777674637735, 0.031127426773309708, 0.00505070062354207, -0.004485797137022018, -0.019512612372636795, 0.005151901859790087, -0.0034857154823839664, 0.006637653335928917, 0.011298008263111115, 0.022075973451137543, 0.017969541251659393, -0.010834402404725552, -0.0061341337859630585, -0.024489164352416992, -0.0024529455695301294, -0.023895354941487312, -0.01145895104855299, -0.009361960925161839, 0.007091716397553682, 0.007903511635959148, 0.0005033190827816725, 0.013472803868353367, 0.0023383593652397394, 0.018105583265423775, -0.014777042903006077, 0.012149211950600147, 0.0048107425682246685, -0.011350495740771294, -0.03834782913327217, -0.010753395967185497, 0.0029623352456837893, -0.008654230274260044, 0.00903343502432108, -0.012091085314750671, -0.02386985905468464, -0.04859510436654091, -0.0010393215343356133, -0.056645020842552185, 0.016197670251131058, 0.0012868228368461132, 0.020106764510273933, -0.004289501812309027, -0.014510180801153183, 0.03280377760529518, 0.0033455262891948223, -0.03476186469197273, -0.010075128637254238, 0.03285270184278488, 0.006686312612146139, 0.040840230882167816, 0.006297749001532793, -0.005198136903345585, -0.016581963747739792, 0.035820122808218, 0.0068510170094668865, -0.038324933499097824, -0.0027000433765351772, -0.019921066239476204, 0.036073893308639526, -0.056276820600032806, -0.001259701093658805, -0.02046428807079792, -0.020458443090319633, 0.0020080446265637875, 0.868431568145752, -0.02598322369158268, 0.037644997239112854, 0.009543070569634438, -0.01534575130790472, -0.01812184974551201, -0.02029106207191944, 0.07518139481544495, -0.02557159774005413, 0.012011614628136158, -0.06996921449899673, 0.025584276765584946, 0.01140145119279623, 0.010394599288702011, -0.03808136284351349, 0.006093291565775871, 0.026437656953930855, 0.024229859933257103, -0.00013218079402577132, -0.017778079956769943, -0.00042428457527421415, 0.004996349103748798, -0.012578369118273258, 0.0006701804231852293, 0.01501744706183672, 0.044523559510707855, -0.18061979115009308, 0.022332537919282913, -7.642644029816094e-33, 0.04805447906255722, -0.03139564022421837, 0.011732088401913643, 0.005619429517537355, 0.013831512071192265, 0.016110412776470184, 0.042323604226112366, 0.01043909601867199, 0.005307773593813181, -0.029321573674678802, 0.005134524777531624, -0.04040975868701935, -0.001292180153541267, -0.027078168466687202, 0.05261966958642006, -0.014706619083881378, -0.00020664195471908897, 0.019854528829455376, 0.00010539303184486926, -0.008558236993849277, 0.02009287290275097, 0.0330897718667984, 0.01698918640613556, 0.0008691526018083096, 0.016421224921941757, -0.0073396265506744385, 0.013196726329624653, 0.015198176726698875, -0.008256250061094761, -0.04785202443599701, 0.006899034604430199, 0.02305721864104271, -0.027068741619586945, -0.012784215621650219, 0.008005729876458645, -0.035655949264764786, 0.017809102311730385, 0.011764433234930038, 0.0064244880340993404, 0.010027998127043247, -0.028531311079859734, 0.005877981428056955, -0.00970327015966177, 0.00014347399701364338, 0.011702080257236958, -0.039894960820674896, -0.0008913234923966229, -0.01636900193989277, 0.048173509538173676, 0.011618711054325104, -0.00484890304505825, 0.05524221807718277, -0.0009950989624485373, -0.003931327722966671, -0.002211719285696745, 0.005091075785458088, -0.01761413924396038, 0.03690364956855774, 0.02579304575920105, 0.00689375214278698, -0.017981769517064095, -0.02979404479265213, -0.02249118871986866, 0.03260652720928192, 0.003954008687287569, -0.001218338729813695, 0.029088685289025307, -0.008849685080349445, 0.03943914547562599, 0.004593509249389172, -0.02163454331457615, -0.01216593012213707, -0.02836586721241474, -0.011619259603321552, -0.00017093577480409294, -0.013993808068335056, 0.015948710963129997, 0.02058473229408264, 0.05811784788966179, 0.006978918332606554, 0.004770954139530659, -0.001997242448851466, 0.0006005550385452807, -0.017437376081943512, -0.00490018492564559, -0.028395075350999832, 0.002498266287147999, -0.023278605192899704, -0.00463956780731678, -0.018836600705981255, 0.03899495676159859, 0.042425885796546936, 0.006239322014153004, -0.027356024831533432, -0.015011926181614399, 7.58979747722297e-33, 0.022870557382702827, -0.002613590331748128, -0.01978600025177002, 0.030534477904438972, -0.014905541203916073, 0.0028586937114596367, -0.003149958560243249, -0.012579316273331642, -0.02573109045624733, 0.010962464846670628, -0.007978263311088085, 0.011045522056519985, -0.02355133183300495, 0.04289446771144867, 0.029058821499347687, -0.020133966580033302, 0.004705747589468956, -0.025645487010478973, 0.05259089916944504, -0.009592065587639809, 0.02480710670351982, 0.023111892864108086, 0.019740618765354156, -0.0035167797468602657, -0.00482952268794179, 0.043159954249858856, -0.027124250307679176, 0.007429738994687796, 0.0009799132822081447, -0.010807803831994534, -0.022057203575968742, 0.012896524742245674, 0.007941748015582561, 0.007056736387312412, 0.0036329631693661213, 0.029621899127960205, 0.018272627145051956, -0.0026241724845021963, -0.010201165452599525, 0.01801045425236225, 0.036398302763700485, -0.014179414138197899, 0.003625222248956561, -0.009919064119458199, 0.008480570279061794, -0.007463046349585056, 0.010033843107521534, -0.008418337441980839, 0.019186828285455704, 0.0020481208339333534, 0.017374714836478233, 0.0027161838952451944, -0.009709890000522137, 0.0027934121899306774, -0.006215414498001337, -0.03303932398557663, -0.04208538308739662, -0.034821826964616776, -0.03783222287893295, 0.026596110314130783, -0.018063584342598915, 0.03139249235391617, -0.018379895016551018, 0.01278238371014595, -0.027631528675556183, 0.03316688910126686, -0.03125128149986267, -0.002580078551545739, -0.00524132652208209, -0.02068612538278103, -0.014837072230875492, -0.04076755419373512, -0.006513902451843023, 0.018245495855808258, 0.004417682532221079, -0.054550427943468094, 0.006923045497387648, 0.0062994216568768024, 0.018346654251217842, 0.014041579328477383, 0.02118241786956787, -0.019677001982927322, 0.014779365621507168, -0.022123277187347412, -0.02672116458415985, 0.037236347794532776, -0.02931772731244564, -0.0008996122633107007, 0.0008796783513389528, -0.0017499392852187157, -0.035863012075424194, -0.0191096942871809, 0.004594410769641399, -0.028148047626018524, 0.033229198306798935, -1.3232527962259155e-8, -0.01724565401673317, 0.048294391483068466, -0.01573316939175129, 0.007546843029558659, 0.007118942681699991, -0.02173902466893196, -0.0449393168091774, -0.002969972789287567, -0.025474194437265396, 0.016259299591183662, 0.03652583062648773, -0.0032237819395959377, 0.02147156000137329, -0.0018808511085808277, 0.0391671247780323, -0.0345919206738472, -0.02446616441011429, -0.025217952206730843, 0.014657940715551376, -0.0021771565079689026, 0.0017470510210841894, 0.06229718029499054, 0.012767895124852657, -0.029710324481129646, -0.011814093217253685, 0.010949643328785896, 0.006121468264609575, -0.051410842686891556, -0.010406767018139362, 0.039366260170936584, 0.03083963319659233, -0.015288559719920158, -0.01947884075343609, -0.01199895329773426, -0.024997837841510773, -0.028263434767723083, -0.005767056252807379, -0.007964990101754665, 0.011743544600903988, 0.004670978989452124, 0.0015462073497474194, -0.019752033054828644, 0.01074797473847866, -0.024782637134194374, -0.032518718391656876, -0.001999388448894024, -0.007997189648449421, -0.008069915696978569, 0.018366988748311996, -0.07288742065429688, 0.033871203660964966, 0.0054148118942976, 0.010315037332475185, 0.034946855157613754, -0.009253811091184616, 0.04185290262103081, 0.02727259323000908, 0.0001675566891208291, -0.0204006377607584, -0.01638561300933361, 0.020348330959677696, -0.0063460152596235275, -0.022575408220291138, -0.03019639477133751 ]
visual-studioresharper-changing-the-order-of-arguments
https://markhneedham.com/blog/2009/06/23/visual-studioresharper-changing-the-order-of-arguments
false
2009-06-15 20:03:34
F#: Using C# extension methods
[ "f" ]
[ "fsharp" ]
An interesting thing I noticed about referencing C# libraries from F# is that you can't access C# extension methods on generic open types in the same way that you would be able to if you were using the library from C# code. I came across this problem when playing around with the http://ayende.com/projects/rhino-mocks.aspx[Rhino Mocks framework] in some F# code. I wrote a simple test to see whether I could get an expectation to work correctly, without paying any regard for the fact that you can't use all C# extension methods in the same way as you can from C# code! [source,ocaml] ---- open Xunit open Rhino.Mocks type IFoo = abstract Bar : string -> string type Foo() = interface IFoo with member x.Bar (value) = value type Baz(foo: IFoo) = member x.Barry(value) = foo.Bar(value) |> ignore [<Fact>] let my_mocking_test () = let foo = MockRepository.GenerateMock<IFoo>() foo.Expect(fun f -> f.Bar("random")).Return("someValue") let baz = new Baz(foo) baz.Barry("random") |> ignore foo.VerifyAllExpectations(); ---- That code doesn't compile with lines 18 and 23 being the offending ones. If we want to use Rhino Mocks' extension methods in our F# code we need to call them specifically. With a little exploration through Rhino Mocks I came up with the following code. [source,ocaml] ---- ... [<Fact>] let my_mocking_test () = let foo = MockRepository.GenerateMock<IFoo>() (RhinoMocksExtensions.Expect<IFoo, string>(foo, fun f -> f.Bar("random"))).Return("someValue") |> ignore let baz = new Baz(foo) baz.Barry("random") |> ignore RhinoMocksExtensions.VerifyAllExpectations(foo) ---- It doesn't read particularly fluently although it does work. I imagine an equivalent extension method could be written in F# to get around the problem although I ended up not needing to do any mocking after I first wrote this code so I haven't looked into how to do that yet. * Update * I've updated this post to point out that this problem occurs when trying to use C# extension methods on open generic types rather than all C# extension methods, something which Matthew Podwysocki points out in the comments. I had originally thought that you couldn't use any C# extension methods since they didn't show up on the Intellisense drop down in Visual Studio and I assumed they were just a language feature of C# 3.0. As it turns out you can get the Intellisense by importing the 'System.Linq' namespace although if you want to use a C# extension method you will need to ensure the type has been evalualted which can sometimes mean you need to put brackets around the code. For example: [source,ocaml] ---- [1..5]. (* No extension methods will show up *) ([1..5]). (* All the extension methods that can be applied to IEnumerable show up *) ---- Under the covers the same thing seems to be happening as if we called the extension methods from C# code. Scott Hanselman has a http://www.hanselman.com/blog/HowDoExtensionMethodsWorkAndWhyWasANewCLRNotRequired.aspx[nice post which explains how this works].
null
null
[ 0.0057618324644863605, -0.019327346235513687, -0.024159647524356842, 0.02495063841342926, 0.06193508580327034, 0.002600936684757471, 0.033863045275211334, 0.019797608256340027, -0.015445608645677567, -0.022419976070523262, -0.016273420304059982, 0.006286737509071827, -0.09544511884450912, 0.016442151740193367, -0.0054070246405899525, 0.052123572677373886, 0.08685722202062607, -0.0392562635242939, 0.02331850677728653, 0.013005176559090614, 0.025696001946926117, 0.04620416462421417, -0.01951400749385357, 0.006625199690461159, 0.015770412981510162, 0.008094819262623787, 0.02015388011932373, -0.005390441510826349, -0.03485219553112984, -0.007156585343182087, 0.02231650985777378, 0.026539847254753113, 0.012170151807367802, -0.03971449285745621, -0.006370296236127615, 0.01166488602757454, 0.007116427179425955, -0.017819371074438095, -0.003508483525365591, 0.04483262822031975, -0.068153016269207, 0.023397628217935562, -0.000012389832590997685, 0.009319084696471691, -0.07208140939474106, 0.0029483067337423563, -0.0345548577606678, 0.018114961683750153, -0.03612359240651131, 0.02598685957491398, -0.028241436928510666, 0.010007104836404324, -0.048337068408727646, -0.01958257518708706, 0.011553061194717884, 0.03820563480257988, 0.01136823184788227, -0.08189629018306732, 0.04039110988378525, -0.053631775081157684, -0.028638437390327454, 0.004846726544201374, 0.031954772770404816, 0.061110325157642365, 0.0328572541475296, -0.002644660882651806, -0.00878101121634245, 0.05153721198439598, -0.09423025697469711, -0.016940834000706673, -0.002403617836534977, 0.002893695142120123, -0.0315244197845459, -0.03552699089050293, 0.03100772388279438, -0.04738231375813484, -0.006773910019546747, 0.047552451491355896, 0.04336090385913849, 0.053642790764570236, 0.00015232290024869144, 0.013945686630904675, 0.05407474562525749, -0.013802052475512028, 0.04351511225104332, -0.019898338243365288, -0.03987401723861694, 0.031420234590768814, -0.0138047831133008, 0.048288267105817795, 0.02242470346391201, -0.033721476793289185, -0.002681860700249672, 0.030459299683570862, 0.02095746621489525, 0.017524071037769318, 0.008446015417575836, -0.03480905666947365, 0.010582736693322659, 0.01125380303710699, -0.047694116830825806, -0.011962217278778553, 0.002210362581536174, 0.010119328275322914, -0.07881541550159454, -0.0000696504139341414, -0.02501293085515499, -0.0376385934650898, -0.028455983847379684, 0.019874082878232002, -0.06182847544550896, 0.014858213253319263, -0.01697446219623089, -0.016807200387120247, -0.08762919157743454, 0.012961109168827534, 0.004018050618469715, 0.01303837914019823, -0.004193911328911781, 0.04063201695680618, 0.04807591438293457, 0.03173983842134476, -0.0064109452068805695, 0.06586452573537827, 0.024751991033554077, 0.026152005419135094, -0.0586489774286747, 0.07669641077518463, 0.029444802552461624, -0.06461238861083984, -0.030651738867163658, 0.06456844508647919, -0.017258640378713608, 0.0013399942545220256, -0.008592960424721241, -0.01958680897951126, -0.023102983832359314, -0.034520335495471954, 0.044575754553079605, 0.04990324750542641, -0.018267426639795303, -0.02582346461713314, -0.0017433245666325092, -0.02093913033604622, 0.010463736020028591, 0.018845638260245323, -0.03176077827811241, -0.013705250807106495, -0.02618839219212532, 0.06618332117795944, 0.008908850140869617, 0.06447865813970566, 0.03827468678355217, -0.04246293753385544, 0.020641960203647614, 0.09418702870607376, 0.013291111215949059, 0.022257592529058456, 0.004375535994768143, -0.0021799688693135977, 0.05535013973712921, 0.03910833224654198, -0.02291944809257984, 0.055542055517435074, 0.038688696920871735, 0.012075850740075111, 0.008616361767053604, 0.04931453987956047, -0.05260845646262169, -0.01652451418340206, -0.04500961676239967, -0.01019174326211214, 0.06497892737388611, -0.03011906147003174, 0.02786548063158989, 0.05418667942285538, 0.0758151113986969, -0.00936942733824253, 0.04053110256791115, 0.002415847033262253, -0.0818951204419136, 0.003955213353037834, 0.02886825054883957, -0.009451640769839287, -0.0068479133769869804, 0.023053565993905067, 0.05303874611854553, -0.00896562822163105, 0.009092539548873901, 0.05123983696103096, -0.06929433345794678, -0.08457555621862411, -0.04466977342963219, -0.035345762968063354, 0.10236748307943344, -0.05699130892753601, -0.004874539561569691, 0.08441592007875443, 0.01677573472261429, 0.036260321736335754, 0.03904620558023453, -0.03845469281077385, 0.026326404884457588, -0.006737771909683943, -0.037764377892017365, 0.06139659881591797, 0.04509442672133446, -0.009272896684706211, -0.044785890728235245, 0.021154792979359627, -0.008335841819643974, 0.023578094318509102, 0.031088141724467278, -0.0087398961186409, 0.03782680630683899, 0.01349799893796444, 0.03534967824816704, -0.04340759292244911, 0.049305759370326996, -0.055471863597631454, 0.026758240535855293, -0.01625286042690277, -0.03181495517492294, -0.03108110837638378, -0.020479900762438774, 0.12110435962677002, 0.06446728110313416, -0.05700327828526497, -0.06437095999717712, -0.027042200788855553, 0.03995572030544281, -0.056570086628198624, -0.020473960787057877, -0.017750052735209465, 0.00835139025002718, -0.016051847487688065, -0.009537332691252232, 0.018023815006017685, 0.029481882229447365, -0.03011424094438553, 0.011463625356554985, 0.08672423660755157, -0.03233646601438522, 0.031218932941555977, -0.016219312325119972, -0.02799510397017002, 0.018306346610188484, -0.028913963586091995, -0.048301924020051956, 0.012500803917646408, 0.03545408695936203, -0.022854546085000038, 0.07262736558914185, -0.026021528989076614, -0.01713293418288231, -0.010258091613650322, -0.036676906049251556, 0.04379004240036011, 0.02251223288476467, 0.05658422410488129, 0.004083499778062105, 0.017494598403573036, -0.030011173337697983, 0.01048311684280634, -0.01482344139367342, -0.052076950669288635, -0.009028072468936443, 0.028129486367106438, 0.011918761767446995, 0.02371469885110855, -0.009956923313438892, 0.0030140273738652468, 0.039805300533771515, 0.0051351734437048435, -0.04839088022708893, 0.0060762399807572365, 0.02412264794111252, 0.014445407316088676, -0.060456596314907074, -0.06363927572965622, -0.035732727497816086, 0.04227566346526146, -0.017201432958245277, -0.035010844469070435, -0.006115713156759739, -0.05982942506670952, 0.0321936309337616, -0.07038790732622147, -0.04921875521540642, -0.020473461598157883, 0.018555913120508194, 0.02217891812324524, -0.009971242398023605, 0.04282774031162262, 0.01424025371670723, 0.023678850382566452, 0.024792565032839775, 0.038890570402145386, -0.009896175004541874, 0.018558459356427193, -0.005547041073441505, 0.009463735856115818, 0.04266892746090889, 0.03175507113337517, 0.01831669919192791, -0.05059882998466492, 0.0062063997611403465, -0.007752626668661833, -0.25167202949523926, 0.03261692449450493, -0.03125554695725441, -0.01447703130543232, 0.017161672934889793, -0.0015266996342688799, 0.011441949754953384, -0.06929830461740494, -0.018056310713291168, 0.05588183552026749, -0.020354697480797768, -0.020607121288776398, -0.02133977599442005, 0.05338531360030174, -0.013415126129984856, 0.00719474395737052, 0.0020153301302343607, -0.041620247066020966, 0.02166869305074215, 0.04590509459376335, -0.010476183146238327, -0.052791353315114975, 0.013513525947928429, 0.04304088279604912, 0.014284524135291576, 0.03469036519527435, -0.07488096505403519, 0.051158711314201355, 0.004875465761870146, -0.00786667875945568, -0.01092196349054575, 0.000517760228831321, 0.006761996075510979, -0.028296498581767082, -0.03657451644539833, -0.013866167515516281, 0.01721802167594433, -0.010009430348873138, -0.005867349449545145, 0.021752018481492996, -0.03652288392186165, -0.041704367846250534, -0.011749721132218838, -0.016975725069642067, 0.07322981208562851, -0.033380646258592606, -0.07079070806503296, -0.019091077148914337, -0.037363629788160324, 0.07227544486522675, -0.05901890993118286, -0.026864003390073776, -0.014137276448309422, 0.0688534528017044, -0.007956095971167088, -0.02488606423139572, 0.020997682586312294, -0.013952355831861496, -0.04167857766151428, -0.019402192905545235, -0.029615618288517, -0.05143973231315613, -0.040584247559309006, -0.022471565753221512, -0.04574182629585266, -0.06547164916992188, -0.06906480342149734, -0.021257620304822922, 0.04967886209487915, 0.019500067457556725, -0.016940489411354065, 0.006035030819475651, -0.013574439100921154, -0.10147278755903244, -0.009065093472599983, -0.05018718168139458, -0.05330929532647133, -0.0293128564953804, 0.02773333340883255, 0.06349379569292068, -0.042103398591279984, -0.030048144981265068, 0.03562040999531746, 0.026742728427052498, 0.026284242048859596, 0.009702617302536964, -0.0003304487909190357, -0.008415278047323227, -0.04533776268362999, 0.0015058431308716536, 0.04445731267333031, 0.0013674970250576735, 0.014646776020526886, -0.012415592558681965, 0.018589990213513374, 0.02374730445444584, 0.05970121547579765, 0.022852549329400063, 0.0441988930106163, 0.02869628742337227, 0.04628032445907593, -0.06679486483335495, 0.010129737667739391, -0.053147900849580765, 0.024124063551425934, -0.040345922112464905, -0.04487701132893562, 0.05055657774209976, 0.03547678887844086, -0.010612474754452705, -0.02295777015388012, -0.02922586351633072, 0.02015628293156624, -0.04402783513069153, -0.030876895412802696, -0.007690967991948128, 0.006616910919547081, 0.032367490231990814, 0.03201760724186897, -0.011366256512701511, -0.03664976730942726, 0.010935818776488304, 0.010664301924407482, -0.028059037402272224, -0.07658998668193817, -0.026786435395479202, -0.018774548545479774, 0.011462900787591934, -0.004522382747381926, 0.011504663154482841, -0.019778398796916008, 0.01819208264350891, 0.013070807792246342, -0.01225520670413971, 0.016716696321964264, 0.014719885773956776, 0.01674818992614746, -0.03654289245605469, -0.013238501735031605, -0.019338615238666534, -0.015270079486072063, -0.021559104323387146, 0.018106436356902122, 0.04242975637316704, 0.02377316728234291, 0.0199239831417799, 0.027049114927649498, 0.003961306996643543, -0.009734384715557098, 0.016143741086125374, 0.014766131527721882, -0.0571298711001873, 0.05293465405702591, -0.017970457673072815, -0.012806669808924198, -0.02252357080578804, 0.026207182556390762, -0.013359631411731243, -0.006120830308645964, -0.0714152455329895, 0.024724775925278664, -0.011484384536743164, -0.03801310062408447, -0.03704345226287842, 0.0053674643859267235, 0.0635012686252594, -0.03343444690108299, 0.04504280909895897, -0.013694271445274353, -0.004895756486803293, 0.0137467747554183, 0.03722125291824341, -0.0211345087736845, 0.04605291411280632, -0.013067684136331081, -0.0026828767731785774, -0.010143124498426914, 0.022704996168613434, 0.021851936355233192, 0.03600761666893959, 0.02021084725856781, -0.03585110977292061, 0.03358137235045433, -0.014181829988956451, 0.050994642078876495, -0.01552584394812584, 0.0004537158238235861, -0.02321428805589676, -0.025602424517273903, -0.009197888895869255, -0.03391996771097183, -0.012992951087653637, -0.04788152500987053, 0.035902347415685654, -0.03287980705499649, -0.07524911314249039, 0.008837792091071606, 0.008143781684339046, 0.0026088934391736984, -0.020892595872282982, -0.0036119467113167048, -0.012430823408067226, -0.010810930281877518, -0.004020862281322479, 0.07137659192085266, -0.048609260469675064, 0.0026557391975075006, 0.009266783483326435, 0.028581293299794197, 0.024694126099348068, 0.013674908317625523, -0.04263792559504509, -0.018321072682738304, 0.022094015032052994, -0.01550813764333725, -0.01054953783750534, -0.04907660931348801, -0.017181716859340668, -0.00406831968575716, -0.0034469175152480602, -0.026840416714549065, -0.03613939508795738, -0.0011019096709787846, -0.013134079985320568, -0.005728359799832106, -0.004053980577737093, -0.03858987241983414, -0.019871797412633896, 0.02815217338502407, -0.04951776564121246, 0.0020228219218552113, -0.03787848725914955, 0.03819745406508446, 0.0112125463783741, -0.028065189719200134, -0.011308593675494194, -0.057507410645484924, 0.010288846679031849, -0.05034814029932022, 0.025467848405241966, 0.008302689529955387, -0.025819240137934685, -0.009320039302110672, -0.029119806364178658, -0.03697799891233444, 0.0003369819314684719, 0.0024092979729175568, -0.040556035935878754, 0.014053566381335258, 0.028024962171912193, -0.0108833322301507, 0.023676548153162003, -0.009008807130157948, 0.022863557562232018, 0.05554698407649994, -0.06391251087188721, -0.014136312529444695, 0.012847991660237312, -0.05986152961850166, 0.02472558803856373, 0.022868545725941658, -0.007541324943304062, -0.04796713963150978, 0.061496198177337646, 0.060625188052654266, 0.020915398374199867, 0.05977446213364601, -0.003038592403754592, 0.016647126525640488, -0.031155379489064217, -0.025751248002052307, -0.06174439564347267, 0.04041131213307381, 0.03456024453043938, 0.02833390049636364, -0.031823914498090744, -0.025347977876663208, 0.002766198478639126, 0.058370403945446014, -0.05821904540061951, -0.008899495005607605, 0.01380839105695486, -0.007608464919030666, 0.0011813556775450706, 0.011301581747829914, -0.042582180351018906, 0.043918266892433167, 0.04169999435544014, -0.027422618120908737, -0.06078316271305084, -0.009187542833387852, 0.0471966415643692, -0.006470629945397377, -0.000637353747151792, -0.02424650453031063, -0.008908108808100224, 0.02251221239566803, 0.008764456957578659, 0.004779869690537453, 0.06737100332975388, -0.03928123787045479, 0.004433132242411375, 0.01032762136310339, -0.03515687957406044, 0.007116593886166811, -0.006707437802106142, -0.0022788732312619686, -0.0391664132475853, 0.03841393068432808, 0.0030750560108572245, -0.02392280101776123, -0.05387137085199356, 0.03291260823607445, -0.005931104067713022, -0.007915726862847805, -0.016703147441148758, -0.0007086722180247307, -0.042301494628190994, 0.00745012704282999, -0.02435942366719246, 0.00643913634121418, 0.005637266673147678, 0.07926424592733383, -0.0015377908712252975, -0.0023082690313458443, 0.053892966359853745, -0.03485410287976265, 0.0017097186064347625, -0.005128652323037386, 0.0688280314207077, 0.06327557563781738, 0.0249471478164196, 0.02038530632853508, 0.048737525939941406, -0.022038735449314117, -0.05642683804035187, -0.00004591863398673013, -0.04260578379034996, 0.012601283378899097, -0.02693329192698002, 0.011023459956049919, 0.0978238582611084, 0.02691304124891758, 0.05024687200784683, -0.08376746624708176, 0.02227775752544403, -0.03811033070087433, 0.030945535749197006, 0.02689414843916893, 0.04974846541881561, 0.007787351496517658, 0.016972700133919716, -0.007486777845770121, -0.05745114013552666, 0.058087997138500214, -0.015933528542518616, -0.006914815399795771, -0.004881188273429871, 0.00653815595433116, 0.011431610211730003, 0.020735137164592743, 0.03947324678301811, 0.042219240218400955, -0.021977044641971588, 0.004824458621442318, 0.031047344207763672, 0.020936409011483192, 0.02851630561053753, -0.025842666625976562, -0.017945848405361176, 0.005281297955662012, -0.00591915613040328, 0.008483330719172955, -0.004437319468706846, -0.03921295702457428, -0.004025732632726431, 0.02681668847799301, -0.02485579438507557, 0.00137718312907964, -0.0033399162348359823, 0.01022419985383749, -0.017576118931174278, -0.029953349381685257, -0.0631895437836647, 0.005298236850649118, -0.05860935151576996, 0.004294123034924269, 0.008444310165941715, -0.03872378543019295, -0.026047514751553535, -0.028031708672642708, -0.013462274335324764, 0.007568626664578915, 0.04375327378511429, 0.010128057561814785, -0.0580563023686409, 0.020670562982559204, 0.005572748836129904, 0.018490010872483253, 0.020896608009934425, 0.04589750990271568, -0.0023153198417276144, 0.004155945498496294, -0.04481140151619911, -0.014684520661830902, 0.03850143402814865, 0.011674253270030022, 0.03732791543006897, -0.07769858837127686, 0.006078634411096573, 0.00801254715770483, 0.04094831645488739, -0.07143226265907288, 0.010037645697593689, 0.0074296630918979645, -0.03140896558761597, 0.037676695734262466, -0.02987021394073963, -0.005680867470800877, -0.0009723480907268822, -0.0022128522396087646, 0.029661869630217552, 0.012198715470731258, 0.02031102403998375, -0.01412471104413271, 0.0754508227109909, 0.013750333338975906, -0.013689659535884857, -0.02362075261771679, -0.006456963252276182, 0.002427738392725587, 0.05642266571521759, -0.04065342992544174, -0.022033490240573883, -0.04272226244211197, -0.02346169576048851, 0.02366260252892971, 0.03951432555913925, -0.014466391876339912, -0.0081503726541996, 0.006884642876684666, 0.04697151854634285, -0.08932219445705414, 0.0326153002679348, -0.014356475323438644, 0.03421022742986679, -0.009844474494457245, -0.053495854139328, 0.019717605784535408, 0.04974484071135521, 0.008369862101972103, -0.010985703207552433, 0.04979724436998367, -0.05404556915163994, -0.03428115323185921, -0.02848041243851185, -0.003489165334030986, 0.04877291992306709, -0.017056170850992203, 0.03643897920846939 ]
[ -0.1100810170173645, 0.017254123464226723, -0.04575427621603012, 0.009343192912638187, 0.039945390075445175, -0.03113548271358013, 0.04207983985543251, 0.008824393153190613, -0.017503591254353523, -0.03303233161568642, -0.024364735931158066, -0.01409202255308628, -0.009947597049176693, 0.011612547561526299, 0.07794006913900375, 0.011022261343896389, -0.024339111521840096, -0.038798920810222626, -0.03237733617424965, 0.025111377239227295, 0.050794217735528946, -0.010808346793055534, -0.028674384579062462, -0.01099542248994112, 0.018403857946395874, 0.02714744582772255, 0.043818969279527664, -0.048980310559272766, -0.001615425106137991, -0.20803067088127136, -0.0015078402357175946, 0.015478319488465786, -0.002021378604695201, -0.032477039843797684, -0.016606422141194344, 0.014954834245145321, 0.03150038793683052, 0.01740856096148491, 0.015505875460803509, 0.07880174368619919, 0.007845110259950161, 0.0463564358651638, -0.03493057191371918, 0.007325052283704281, 0.031031865626573563, -0.0267181359231472, -0.055368922650814056, 0.010253360494971275, -0.032164838165044785, -0.0017552991630509496, -0.05403060093522072, -0.015476617962121964, -0.024558885022997856, -0.002327496651560068, -0.04280176758766174, 0.03432183340191841, 0.03883828595280647, 0.04196883738040924, 0.02698567323386669, 0.044524285942316055, 0.0028760661371052265, -0.036795198917388916, -0.1362137645483017, 0.09494215250015259, 0.005700132343918085, 0.06249580532312393, 0.000020008377759950235, -0.030852356925606728, 0.02103384956717491, 0.08326640725135803, 0.03403022512793541, 0.000417723145801574, -0.03376459702849388, 0.05068497732281685, 0.023195603862404823, -0.012410653755068779, -0.01000125240534544, 0.0035533164627850056, 0.06973506510257721, -0.029348811134696007, -0.07759636640548706, -0.03133528307080269, 0.03099675104022026, -0.02726396918296814, -0.012607666663825512, 0.045700497925281525, 0.012489725835621357, 0.03183884173631668, 0.06551255285739899, 0.03386951982975006, 0.014010142534971237, -0.03608938306570053, 0.0168451014906168, 0.006786629091948271, -0.06095093488693237, -0.009842542931437492, 0.0014603296294808388, -0.03752461075782776, -0.04820430278778076, 0.40835630893707275, -0.04598715156316757, -0.03153148293495178, 0.007249738089740276, 0.037755731493234634, -0.01362014003098011, 0.016486793756484985, 0.0009002370061352849, -0.04653485119342804, 0.0012558723101392388, -0.0412905253469944, -0.01621086709201336, 0.0012326398864388466, 0.021638447418808937, -0.070170097053051, -0.00942797027528286, 0.005239557009190321, 0.041014883667230606, -0.0017218486173078418, -0.028697168454527855, -0.020273080095648766, -0.011834102682769299, -0.008984193205833435, 0.01545855961740017, 0.050023097544908524, 0.0030634384602308273, -0.013622974045574665, -0.009586341679096222, 0.06977938115596771, 0.032718345522880554, -0.0039078532718122005, 0.049985405057668686, -0.04864008352160454, -0.0832933709025383, -0.040153395384550095, -0.0008655385463498533, 0.02567451074719429, 0.03948865830898285, -0.01794768124818802, -0.0019165144767612219, 0.018755070865154266, 0.019741112366318703, -0.04575318843126297, 0.01750895567238331, -0.027192458510398865, -0.060455743223428726, 0.12130644917488098, -0.039669208228588104, 0.01575244404375553, -0.034442804753780365, -0.014430277049541473, 0.024378258734941483, 0.05736455321311951, -0.05260155349969864, -0.021709522232413292, 0.04650724679231644, -0.04117438197135925, 0.038499005138874054, 0.006795818451792002, -0.030113834887742996, 0.00022661905677523464, -0.07226481288671494, -0.0017989316256716847, -0.015687361359596252, 0.0008206615457311273, -0.017090270295739174, -0.07607796788215637, -0.02915220893919468, 0.015667131170630455, -0.004082897678017616, -0.072615846991539, 0.022749921306967735, -0.02917902171611786, -0.01684444770216942, -0.014289405196905136, 0.037037353962659836, 0.004037946462631226, -0.027480274438858032, -0.033975254744291306, 0.0396452397108078, 0.03591063618659973, -0.03177593648433685, 0.020018910989165306, -0.038324519991874695, 0.016039177775382996, -0.019442763179540634, -0.07575497031211853, -0.04884502291679382, -0.03571697697043419, -0.00827005598694086, -0.021099818870425224, -0.030800526961684227, -0.02727685123682022, -0.04797009378671646, 0.08595208078622818, -0.04239895939826965, -0.018382158130407333, 0.026349922642111778, 0.015202546492218971, 0.0468149296939373, -0.04381196200847626, 0.048433687537908554, 0.07063330709934235, -0.0032500370871275663, 0.05014071241021156, -0.05170559883117676, 0.02344612404704094, 0.03508438915014267, -0.05345316231250763, 0.07407867908477783, 0.022242454811930656, -0.05754856392741203, -0.008798734284937382, -0.009146211668848991, 0.05740394443273544, -0.021241363137960434, -0.040359240025281906, 0.003292076289653778, 0.02002556249499321, 0.005816243588924408, -0.0012710324954241514, -0.038894712924957275, -0.010358382947742939, -0.011992311105132103, -0.3391682803630829, -0.017273029312491417, 0.004513398744165897, -0.01574443280696869, 0.021506372839212418, -0.09129906445741653, 0.0025095741730183363, -0.0067937737330794334, -0.030610010027885437, -0.003523130202665925, 0.0687185600399971, 0.015346172265708447, -0.0022902642376720905, -0.06098460406064987, 0.018518269062042236, 0.03721016272902489, -0.058369722217321396, -0.06860965490341187, 0.008641998283565044, 0.043377526104450226, -0.010063402354717255, 0.027461564168334007, -0.024197576567530632, -0.03390936926007271, 0.036817438900470734, -0.027755608782172203, 0.0663670152425766, -0.022363783791661263, 0.09993395209312439, 0.0011503761634230614, 0.04205257073044777, 0.008661027997732162, 0.03518141806125641, -0.06020363047719002, -0.021595362573862076, -0.009862224571406841, 0.002194497035816312, 0.01638118550181389, 0.0840124562382698, -0.0069990577176213264, -0.020525917410850525, 0.013671698048710823, -0.031670767813920975, -0.061336636543273926, 0.002402580576017499, 0.0057714697904884815, -0.0040740687400102615, -0.022424383088946342, -0.02052079327404499, 0.0873149186372757, -0.015849759802222252, 0.010722645558416843, 0.012357429601252079, 0.030852962285280228, -0.011571137234568596, -0.006794145796447992, -0.06566263735294342, -0.012385214678943157, -0.004591871984302998, -0.013735725544393063, 0.06962046027183533, 0.031631894409656525, 0.06513187289237976, -0.03225085511803627, -0.005461347755044699, -0.009161597117781639, 0.001715356484055519, -0.027156831696629524, 0.043941594660282135, -0.04357048124074936, -0.033013805747032166, 0.10713274776935577, -0.009757773019373417, 0.010984429158270359, 0.016626745462417603, 0.061127670109272, 0.004871896002441645, -0.00559930270537734, -0.02134740725159645, 0.004960527177900076, 0.006834748666733503, 0.03282871097326279, 0.004038040991872549, -0.024618420749902725, -0.02367389388382435, 0.03280407190322876, -0.04162232205271721, 0.0037133542355149984, 0.06433963775634766, -0.0322844460606575, -0.031900521367788315, 0.008869394659996033, 0.015989545732736588, -0.0635286346077919, 0.08438581228256226, -0.007724117487668991, -0.24734896421432495, -0.014864739961922169, 0.09105668216943741, 0.049780234694480896, -0.018684308975934982, 0.02559545263648033, 0.04709283635020256, -0.10123261064291, -0.0034805741161108017, -0.0006025105249136686, 0.03468456491827965, 0.02863042615354061, 0.044081542640924454, 0.009547320194542408, 0.03354358673095703, -0.02596997283399105, 0.04630066454410553, -0.01066132914274931, 0.026892727240920067, 0.0025261100381612778, 0.030128631740808487, -0.007594485767185688, 0.20476074516773224, 0.015371090732514858, 0.01177614089101553, 0.006336081773042679, 0.03819189965724945, 0.009462837129831314, 0.09061572700738907, 0.002933731535449624, 0.06853006035089493, -0.03962770476937294, 0.06037027761340141, -0.012234912253916264, 0.05940941348671913, -0.10289785265922546, 0.014198354445397854, 0.03240341320633888, 0.019396498799324036, -0.018971683457493782, -0.021713392809033394, 0.011309695430099964, -0.05788286402821541, 0.008464554324746132, 0.057045161724090576, -0.0010180157842114568, -0.030707277357578278, -0.03854261711239815, -0.035805296152830124, 0.015311341732740402, -0.05519003048539162, -0.020690012723207474, 0.03347190469503403, -0.03783068805932999, 0.011810271069407463, 0.031760524958372116, 0.049570586532354355, -0.04608156532049179, -0.043630827218294144, 0.020633753389120102, 0.05375821515917778, -0.008872137404978275, 0.054495323449373245, 0.044699836522340775, 0.03265952318906784 ]
[ 0.003448493778705597, 0.0048602670431137085, 0.0026763775385916233, 0.04772644117474556, 0.027190694585442543, 0.009882951155304909, 0.020585842430591583, 0.04582369327545166, -0.029016178101301193, 0.014934101141989231, -0.03125302121043205, -0.016285786405205727, -0.016846083104610443, 0.023127397522330284, 0.022573836147785187, -0.00007591994653921574, -0.010786895640194416, -0.0567406490445137, 0.005589955952018499, 0.005666112992912531, -0.001342483563348651, 0.03329750895500183, 0.03998883068561554, -0.00496766809374094, -0.022424766793847084, -0.03644644469022751, -0.03266582265496254, -0.019765956327319145, 0.0497078038752079, -0.11564430594444275, -0.013748464174568653, -0.006940691731870174, -0.007481517735868692, 0.0055726976133883, 0.0033460187260061502, -0.011795859783887863, 0.003353090723976493, 0.0352545864880085, 0.020582906901836395, 0.03099343739449978, -0.04433215782046318, -0.008529666811227798, 0.01132120005786419, 0.011495733633637428, -0.005995963700115681, -0.046312279999256134, 0.006010867189615965, -0.0025785057805478573, -0.003648733487352729, 0.008489289321005344, -0.007465474773198366, -0.006940615829080343, -0.06375139206647873, -0.008184034377336502, 0.03022712655365467, -0.01821259595453739, -0.0016842957120388746, -0.05796658992767334, 0.016155479475855827, -0.0034263255074620247, 0.011459075845777988, -0.017090853303670883, -0.04245465621352196, -0.0217337254434824, -0.002813581842929125, -0.014843491837382317, -0.004346095025539398, 0.0027104937471449375, -0.0019587683491408825, -0.02940090000629425, -0.04670485854148865, 0.016298679634928703, 0.00021906029724050313, 0.04781180992722511, 0.011583206243813038, 0.02262776345014572, 0.015341791324317455, -0.01484003011137247, 0.04600483924150467, -0.01624622941017151, -0.022733865305781364, 0.012454977259039879, 0.007573216687887907, 0.038610395044088364, 0.031373411417007446, 0.026731017976999283, -0.009896285831928253, 0.00735042430460453, 0.024462450295686722, 0.017866309732198715, -0.019347058609128, 0.02097325399518013, -0.01131581049412489, 0.053171247243881226, -0.05327024310827255, -0.016231350600719452, 0.02860185317695141, -0.025047875940799713, -0.004163805861026049, 0.8444123268127441, -0.03191094845533371, 0.009583535604178905, 0.06018202379345894, 0.010151433758437634, -0.01569942943751812, -0.0018224840750917792, 0.003291844390332699, -0.01764618419110775, 0.01421576738357544, -0.03499985486268997, -0.0005409298464655876, 0.01688210293650627, 0.03302808851003647, -0.020226210355758667, 0.035685066133737564, 0.014462302438914776, -0.01869867369532585, -0.012004552409052849, -0.014706349931657314, 0.0035965663846582174, 0.006456688046455383, -0.0121229849755764, 0.01892799139022827, 0.018381474539637566, 0.011960769072175026, -0.16770681738853455, 0.031070532277226448, -7.715160276318321e-33, 0.0236860029399395, -0.005992282181978226, 0.001345927594229579, 0.03507639467716217, 0.03177249804139137, 0.02033199928700924, 0.058171287178993225, 0.019662655889987946, -0.028663011267781258, -0.026480641216039658, 0.0005166035844013095, -0.01281008031219244, -0.04208333417773247, -0.031098319217562675, 0.024660568684339523, -0.004974534269422293, -0.00021677267795894295, 0.05413703992962837, -0.03505990281701088, 0.02987324632704258, 0.038466162979602814, 0.06772828102111816, -0.007692011073231697, -0.02006802149116993, 0.004671293310821056, 0.02092158794403076, 0.011691431514918804, 0.004680868703871965, -0.019037440419197083, -0.03841108828783035, -0.017685122787952423, 0.010855176486074924, -0.037504687905311584, -0.024101238697767258, 0.003984913229942322, -0.055123280733823776, -0.01968660019338131, -0.0207284577190876, 0.007035037502646446, -0.0443340502679348, 0.01914195902645588, 0.0178501158952713, -0.04763276129961014, 0.015531947836279869, 0.0038762767799198627, -0.007746335584670305, -0.004458700306713581, 0.04615824669599533, 0.03231043741106987, 0.007701682858169079, 0.014368895441293716, 0.032316554337739944, -0.01535547524690628, 0.007808036636561155, 0.016380008310079575, 0.031945131719112396, 0.008162260986864567, 0.014408150687813759, 0.006167167332023382, -0.002310115611180663, -0.011081567034125328, -0.027643762528896332, -0.04393605887889862, 0.014670414850115776, -0.02253064140677452, -0.012123635970056057, -0.03595227375626564, -0.02985244430601597, 0.05418248474597931, -0.011544940993189812, -0.04189498722553253, -0.0026595559902489185, -0.03599342703819275, -0.012760844081640244, 0.007803095504641533, -0.009354967623949051, -0.009014198556542397, 0.041231364011764526, 0.005955447908490896, 0.034620705991983414, 0.016530027613043785, 0.03369928151369095, 0.02885446511209011, -0.005205700173974037, 0.030679820105433464, -0.01862180605530739, 0.014985516667366028, -0.02622094936668873, 0.015557807870209217, -0.029109692201018333, 0.02565871924161911, -0.011058323085308075, -0.02742631919682026, -0.029925599694252014, -0.021694893017411232, 7.776315369919851e-33, -0.019677387550473213, -0.006084269843995571, -0.02495666779577732, 0.006546367425471544, -0.015526059083640575, -0.008988240733742714, 0.010691304691135883, 0.000866066780872643, -0.03149867430329323, -0.011731497012078762, -0.012247334234416485, 0.0047863544896245, -0.012918964959681034, 0.023740781471133232, 0.05185375735163689, -0.05799191817641258, 0.014800066128373146, -0.035506051033735275, 0.018138311803340912, 0.015708602964878082, 0.02589602582156658, 0.00024063173623289913, 0.026624789461493492, -0.008670574985444546, -0.015411472879350185, 0.07930687814950943, -0.03090260736644268, -0.0030138897709548473, 0.04252810776233673, -0.007257126271724701, 0.028133193030953407, 0.028136154636740685, 0.014093087986111641, -0.032338883727788925, 0.021619519218802452, 0.005786733236163855, 0.011567926965653896, 0.0015773779014125466, -0.014112786389887333, -0.03538989648222923, 0.01360780093818903, -0.018708009272813797, -0.00512499175965786, -0.020404186099767685, -0.0014956163940951228, -0.003277632873505354, -0.02269863337278366, -0.01902899146080017, 0.0026815535966306925, 0.02255740389227867, 0.01134926825761795, -0.012144488282501698, 0.010960610583424568, 0.011896591633558273, -0.009692361578345299, -0.021954070776700974, -0.013223007321357727, -0.01745874248445034, 0.021710943430662155, 0.022423377260565758, 0.005395528394728899, -0.00634721340611577, -0.023469075560569763, -0.01944834552705288, -0.02799011953175068, -0.020146114751696587, -0.03480188921093941, -0.03267709165811539, -0.011267207562923431, 0.005982481874525547, -0.037793733179569244, -0.007755142170935869, 0.011022021993994713, 0.004091511946171522, 0.01328478753566742, 0.010703152976930141, 0.04837379604578018, -0.033118583261966705, 0.007723786402493715, -0.009510050527751446, -0.01712004840373993, -0.02917928621172905, 0.04270084947347641, 0.0005039878888055682, -0.027368050068616867, -0.0035631863866001368, -0.015422454103827477, 0.004248522687703371, 0.015879614278674126, 0.023772481828927994, -0.025362525135278702, 0.009139670059084892, 0.022164996713399887, 0.000805139250587672, 0.027727661654353142, -1.3278507182690191e-8, -0.03550528362393379, 0.03388877585530281, -0.02857206203043461, 0.04255001246929169, 0.012400285340845585, 0.004981836769729853, -0.06898662447929382, -0.039138320833444595, 0.005024943500757217, 0.0033012269996106625, 0.01870385929942131, 0.023387232795357704, 0.02832622081041336, 0.014500156044960022, 0.016597680747509003, -0.05566446855664253, -0.007180182728916407, -0.034512270241975784, 0.021232845261693, -0.0007280642166733742, -0.013408077880740166, 0.03944402560591698, 0.013323471881449223, -0.0038971202448010445, -0.025079935789108276, 0.011193504557013512, 0.01696898601949215, -0.060812808573246, 0.026707038283348083, 0.029223967343568802, -0.026551738381385803, -0.007423694245517254, -0.017548028379678726, 0.046783145517110825, -0.011440010741353035, 0.029284706339240074, 0.02060389146208763, 0.007037756498903036, 0.008434287272393703, -0.015949364751577377, 0.038135185837745667, -0.02954530529677868, 0.03723088651895523, -0.011048095300793648, -0.00042426929576322436, -0.017958752810955048, -0.024747947230935097, 0.012076173909008503, 0.04333263263106346, -0.03691055625677109, -0.01973922923207283, 0.03196929022669792, -0.025395339354872704, -0.03660682216286659, -0.03928256407380104, 0.03005761280655861, -0.014217644929885864, -0.0029438992496579885, -0.04575375095009804, -0.0054827965795993805, -0.0006943445187062025, -0.05767134577035904, -0.022380273789167404, -0.01165325939655304 ]
f-using-c-extension-methods
https://markhneedham.com/blog/2009/06/15/f-using-c-extension-methods
false
2009-06-12 17:35:51
Coding: Single Level of Abstraction Principle
[ "coding", "slap" ]
[ "Coding" ]
One of the other useful principles for writing readable code that I've come across in the last year or so is the Single Level of Abstraction Principle. I first came across the idea of writing code at the same level of abstraction in http://www.markhneedham.com/blog/2008/09/15/clean-code-book-review/[Uncle Bob's Clean Code] although I only learnt about the actual term in http://www.markhneedham.com/blog/2008/09/05/the-productive-programmer-book-review/[Neal Ford's The Productive Programmer]. As the name suggests the idea is that within a certain method we look to keep all the code at the same level of abstraction to help us read it more easily. It needs to be consistent with stuff around it otherwise it's really confusing as our brain tried to make the mental shift between thinking about higher level concepts and low level implementation details in the code. While trying to understand the code which I wrote about in a http://www.markhneedham.com/blog/2009/06/11/coding-keep-methodvariable-names-positive/[previous post about keeping method names positive] we decided to extract each of the validation rules so that we could see in English what was going on. [source,csharp] ---- private bool ValidPolicyNumber(string policyNumber) { var hasExpectedPrefix = policyNumber.Substring(0,5) == "POLIC"; var followedBy7Digits = Regex.IsMatch(policyNumber.Substring(6,7), "^[0-9]{7}$"); var hasLengthOf12 = policyNumber.Length == 12; return hasExpectedPrefix && followedBy7Digits && hasLengthOf12; } ---- Although there's more code in that second example I think it makes it more clear what's going on and if we're interested in the how then we can just read the assignments to each of the variables. After we'd done this refactoring I suggested that perhaps we could inline the 'hasLengthOf12' variable since it didn't seem to be adding value as all it's doing is abstracting away the fact that we're calling the 'Length' properly on string to check the length. The code would then read like this: [source,csharp] ---- private bool ValidPolicyNumber(string policyNumber) { var hasExpectedPrefix = policyNumber.Substring(0,5) == "POLIC"; var followedBy7Digits = Regex.IsMatch(policyNumber.Substring(6,7), "^[0-9]{7}$"); return hasExpectedPrefix && followedBy7Digits && policyNumber.Length == 12; } ---- http://twitter.com/davcamer[Dave] rightly pointed out that if we were to do this then we would be mixing code which said *what* made a valid policy with code that determined *how* we did this therefore violating the Single Level of Abstraction Principle. The whole point of doing this for me is that we can keep less context in our head about the code and we can just read through the code and quickly understand what's going on. An added benefit is that from my experience it helps to bring out subtle errors that we may have looked over when there was a mixture of levels of abstraction in the code. I know this is a fairly simple example but it helped me to understand a bit more clearly what it actually means to code to this principle. * Update * As Dan points out in the comments the 'followedBy7Digits' variable could never be true. I had the example wrong so I've change it to how it was meant to be.
null
null
[ 0.009518055245280266, -0.006700438447296619, -0.012271031737327576, 0.019057640805840492, 0.07231304049491882, 0.009571196511387825, 0.03469680994749069, 0.019103920087218285, -0.0020021323580294847, -0.012662921100854874, 0.01022881455719471, 0.002264853799715638, -0.07368861883878708, 0.009387154132127762, -0.029905252158641815, 0.0695095956325531, 0.07826113700866699, -0.026736639440059662, 0.016691923141479492, 0.0028100679628551006, -0.0009287598077207804, 0.08651053160429001, 0.015213912352919579, 0.019838986918330193, 0.020922403782606125, 0.03717514127492905, 0.007370627019554377, -0.007212079595774412, -0.06430567800998688, 0.01812533475458622, 0.04606097191572189, 0.029368536546826363, 0.014534033834934235, 0.017987508326768875, 0.01411445066332817, -0.005318378563970327, 0.009680122137069702, 0.011249365285038948, 0.016548892483115196, 0.023759523406624794, -0.06323982030153275, 0.026588667184114456, -0.012974423356354237, -0.0032222485169768333, -0.054938267916440964, -0.0005127844633534551, -0.04437396675348282, -0.010875586420297623, -0.01830984838306904, -0.0036983881145715714, -0.05780100077390671, 0.03495603799819946, -0.04368491470813751, 0.006370002869516611, -0.009438052773475647, 0.0646270364522934, 0.019982213154435158, -0.07291532307863235, 0.005924779921770096, -0.06589004397392273, 0.0014798238407820463, -0.018247701227664948, -0.004270641133189201, 0.025038795545697212, 0.02124321088194847, -0.009178904816508293, -0.023788291960954666, 0.039874039590358734, -0.04480364918708801, -0.007553857285529375, -0.014584563672542572, 0.027277793735265732, -0.016036830842494965, -0.010971996001899242, 0.012663839384913445, -0.02743360586464405, -0.010059040039777756, 0.044425733387470245, 0.02379515953361988, 0.0710509717464447, -0.020454376935958862, 0.009241165593266487, 0.027820870280265808, 0.010163415223360062, 0.035094812512397766, -0.025578046217560768, 0.00148221873678267, -0.01707714982330799, -0.02670983038842678, 0.05533258244395256, 0.003260199446231127, -0.059955574572086334, -0.0002158727584173903, 0.03112640604376793, -0.023357167840003967, -0.02826494164764881, 0.023211730644106865, -0.005089840851724148, -0.00624521030113101, -0.010336938314139843, -0.0342714749276638, -0.018584461882710457, 0.04417456313967705, -0.013925636187195778, -0.08130002021789551, 0.011672240681946278, -0.04174399375915527, -0.0029640693683177233, 0.023154566064476967, -0.0013772017555311322, -0.014969507232308388, 0.023090744391083717, -0.033027976751327515, 0.00667607830837369, -0.0756850615143776, 0.041640374809503555, -0.004340652376413345, -0.024582529440522194, 0.022291647270321846, 0.025696348398923874, 0.04563575237989426, 0.02259455807507038, 0.011385430581867695, 0.06996876746416092, 0.012942448258399963, 0.01968017779290676, -0.013729206286370754, 0.06427522748708725, -0.017216194421052933, -0.05551791936159134, -0.023543091490864754, 0.03546137362718582, -0.019000036641955376, 0.008937247097492218, -0.03505243360996246, -0.010434603318572044, -0.022326329723000526, 0.0021727695129811764, 0.01783599704504013, 0.04114283248782158, -0.002846780000254512, -0.052600134164094925, 0.04134451970458031, -0.04682117700576782, -0.0004432706627994776, -0.00022824801271781325, -0.0013630096800625324, -0.01771724782884121, -0.04183943197131157, 0.00027565108030103147, 0.028039569035172462, 0.052613623440265656, 0.04078024625778198, -0.013220148161053658, 0.023852860555052757, 0.06495068222284317, 0.03504928946495056, 0.019462434574961662, -0.01240628119558096, 0.021195515990257263, 0.044791728258132935, 0.045070305466651917, 0.011644948273897171, 0.04608479142189026, 0.024902964010834694, 0.0007691940409131348, 0.003113590180873871, 0.05030004680156708, -0.01546262763440609, -0.005264369770884514, -0.039341799914836884, -0.03579508885741234, 0.06274595856666565, -0.055460475385189056, -0.007997731678187847, 0.015346317552030087, 0.05585870519280434, 0.01242134440690279, 0.06107207387685776, 0.011887699365615845, -0.06812263280153275, 0.004020791966468096, 0.007612608373165131, 0.04590977728366852, 0.0051708039827644825, -0.02671186253428459, 0.06200715899467468, 0.030021727085113525, -0.015084450133144855, 0.03481705114245415, -0.07472454756498337, -0.054765064269304276, -0.022467901930212975, -0.00600799173116684, 0.06354928016662598, -0.018441926687955856, 0.009458653628826141, 0.0900871753692627, 0.016895843669772148, 0.06365407258272171, 0.05193305015563965, -0.013877502642571926, 0.009662041440606117, -0.02220412716269493, -0.014971251599490643, 0.07258839160203934, 0.048460524529218674, 0.010689170099794865, -0.06629382818937302, 0.009406915865838528, 0.014437339268624783, 0.013168674893677235, 0.00957474298775196, 0.007870331406593323, 0.016433821991086006, 0.03586002439260483, 0.0459434948861599, 0.0014069554163143039, 0.06380175054073334, -0.05809362605214119, -0.0025075343437492847, 0.006587592884898186, 0.00249883602373302, 0.002953451359644532, -0.006662753876298666, 0.12180884182453156, 0.05529782548546791, -0.053870685398578644, -0.06299123167991638, 0.019489334896206856, 0.010565844364464283, -0.042313918471336365, 0.008921770378947258, -0.03461018577218056, 0.015515231527388096, 0.014454834163188934, -0.053316257894039154, -0.0007294273236766458, 0.024187259376049042, -0.04446985945105553, 0.005192712880671024, 0.06856425106525421, -0.01826309598982334, 0.03486163914203644, -0.031898725777864456, -0.010228049010038376, -0.020573124289512634, -0.016349615529179573, -0.06168840080499649, 0.028387444093823433, 0.00036314877797849476, -0.0055786604061722755, 0.049860477447509766, -0.005970969796180725, -0.04474175348877907, -0.018195031210780144, -0.03378095105290413, 0.004771971143782139, 0.044034235179424286, 0.05920446291565895, -0.027091382071375847, 0.06249589845538139, 0.007666395045816898, 0.010250980965793133, 0.0029569664038717747, -0.05087176337838173, -0.030818263068795204, -0.009487778879702091, 0.023122211918234825, 0.03794080391526222, 0.0014021089300513268, 0.05807202681899071, -0.0006941825849935412, 0.019324006512761116, -0.011166329495608807, -0.020752403885126114, 0.05254063382744789, 0.008133959956467152, -0.03420977294445038, -0.029961779713630676, -0.04739975929260254, 0.05044037103652954, -0.03439577668905258, -0.04390605911612511, -0.002896427409723401, -0.0775536447763443, 0.04848650470376015, -0.07140327244997025, -0.04602585732936859, 0.004851544741541147, 0.027784045785665512, 0.0310505423694849, -0.015526319853961468, 0.022038085386157036, 0.05737370252609253, -0.006562180817127228, 0.015244473703205585, 0.006303452420979738, 0.038549236953258514, 0.015955757349729538, 0.0050171189941465855, -0.0003865620237775147, 0.033716198056936264, -0.0062888492830097675, -0.008430752903223038, -0.029825303703546524, 0.025104010477662086, 0.003821807913482189, -0.26905557513237, 0.04300879314541817, -0.018737709149718285, -0.06658013164997101, 0.020604178309440613, -0.0022006663493812084, 0.011873253621160984, -0.038579124957323074, -0.022753989323973656, 0.03382623568177223, -0.029855482280254364, -0.06211700662970543, -0.005198500584810972, 0.0545770488679409, -0.003736247308552265, -0.001757915480993688, -0.004270510748028755, -0.047971244901418686, 0.008819452486932278, 0.04867459833621979, 0.004498972557485104, -0.08071892708539963, 0.008407586254179478, 0.06574998050928116, 0.02923702448606491, 0.045291729271411896, -0.09008992463350296, 0.03225849196314812, -0.05471430718898773, -0.008779510855674744, -0.014494108036160469, 0.02283409982919693, 0.001692280056886375, -0.032402198761701584, -0.02657259628176689, -0.016880061477422714, 0.013459760695695877, -0.010046620853245258, 0.00011917570373043418, 0.04156509041786194, -0.04255498945713043, -0.026567095890641212, -0.024730799719691277, -0.00816263910382986, 0.06753891706466675, 0.01926734857261181, -0.05010605603456497, -0.026756342500448227, -0.03444724902510643, 0.07419280707836151, -0.04805409535765648, -0.02119099535048008, 0.002610437572002411, 0.03652035444974899, -0.026440858840942383, -0.03590076044201851, 0.004220537841320038, -0.026788506656885147, -0.03294855356216431, -0.04579481482505798, -0.0071258703246712685, -0.04358411580324173, 0.003362920368090272, -0.0654296949505806, 0.009246811270713806, -0.06390406936407089, -0.06134038418531418, 0.004689544439315796, 0.057293396443128586, 0.04097927734255791, -0.005871959496289492, -0.008121330291032791, -0.009760448709130287, -0.11801238358020782, -0.016184525564312935, -0.04639674350619316, -0.01520005613565445, -0.02965782769024372, 0.016470786184072495, 0.04698562994599342, -0.03499220311641693, -0.05561577156186104, 0.03949322551488876, 0.03147305175662041, 0.030972689390182495, -0.002006643684580922, 0.029929254204034805, 0.004549674689769745, -0.0447823740541935, -0.015103049576282501, 0.07437191158533096, 0.010025630705058575, -0.026237454265356064, -0.05035591125488281, 0.027661819010972977, 0.007958142086863518, 0.040866222232580185, -0.02265884168446064, -0.006823429837822914, 0.009242406114935875, 0.03955242410302162, -0.05243132263422012, 0.012759283185005188, -0.04349268972873688, -0.017211133614182472, -0.023162629455327988, -0.05515677109360695, 0.022238733246922493, 0.04063145071268082, 0.0040572104044258595, -0.03274260461330414, -0.0344281904399395, 0.000045390996092464775, -0.055417511612176895, -0.022814661264419556, -0.04292575269937515, 0.0019964638631790876, 0.021301062777638435, -0.0110625009983778, -0.015888189896941185, -0.055139318108558655, 0.00995931401848793, 0.01922806352376938, 0.010696940124034882, -0.08568353950977325, -0.0667625144124031, -0.00905327033251524, -0.024866273626685143, 0.011832128278911114, 0.04187518358230591, -0.021065693348646164, 0.056594595313072205, 0.006634639576077461, -0.05161435902118683, 0.015967663377523422, 0.000835673650726676, -0.016520945355296135, -0.03726210445165634, -0.011686430312693119, -0.012342006899416447, -0.005727529525756836, 0.015888838097453117, 0.0030721549410372972, 0.023959480226039886, 0.05187024176120758, 0.0012854266678914428, 0.040095213800668716, -0.01473341602832079, -0.013966986909508705, 0.021101048216223717, 0.016495291143655777, -0.0802299901843071, 0.026855379343032837, -0.04355520382523537, -0.03004932403564453, -0.03151648864150047, 0.024165766313672066, -0.014166101813316345, -0.026054747402668, -0.022267961874604225, 0.0588817223906517, -0.02205514907836914, -0.03642195090651512, -0.02740819938480854, 0.011124629527330399, 0.06022801250219345, -0.03670665994286537, 0.038314420729875565, -0.026969702914357185, -0.004836278967559338, 0.024785678833723068, 0.01848692260682583, -0.018696177750825882, 0.03376350924372673, -0.0063373553566634655, -0.013314569368958473, -0.00027744960971176624, -0.007406018208712339, 0.030567239969968796, 0.03564319387078285, 0.01614580862224102, -0.04646582156419754, 0.0027632322162389755, 0.01451041828840971, 0.04579899460077286, -0.00317035592161119, 0.007986095733940601, -0.007683435920625925, -0.03129465878009796, -0.003974095918238163, -0.02707240730524063, -0.03157738223671913, -0.02393481880426407, 0.04451152682304382, -0.05446456000208855, -0.04496592655777931, 0.015013635158538818, 0.031223608180880547, 0.017782237380743027, 0.0024326134007424116, -0.005347651429474354, 0.01102696917951107, -0.010791564360260963, 0.01043673325330019, 0.03942835330963135, -0.0373341403901577, 0.01215006597340107, 0.0033850492909550667, 0.009806766174733639, 0.034023355692625046, 0.004512058570981026, -0.054505277425050735, -0.013069527223706245, -0.04168669134378433, 0.009517889469861984, -0.03950885683298111, -0.03267259523272514, -0.0331571027636528, 0.022326594218611717, -0.016824321821331978, 0.004702132195234299, -0.020242195576429367, 0.003943492658436298, -0.023332791402935982, -0.013233755715191364, -0.009342811070382595, -0.0360536128282547, 0.01474585197865963, 0.05620460957288742, -0.02422385849058628, 0.006001979112625122, -0.008321434259414673, 0.03855866566300392, 0.025704821571707726, -0.03139055147767067, -0.04400677606463432, -0.06231104955077171, 0.020510436967015266, -0.02582305669784546, 0.039056941866874695, -0.011307352222502232, -0.021560220047831535, -0.019014757126569748, -0.01554667018353939, -0.04290502145886421, 0.02049112878739834, -0.032089751213788986, -0.04305260628461838, 0.023019783198833466, 0.06322573870420456, -0.0007464063819497824, 0.03292999416589737, -0.00964598823338747, -0.013189318589866161, 0.06173045560717583, -0.048750657588243484, 0.00033881707349792123, -0.025926856324076653, -0.050797782838344574, 0.023070383816957474, -0.0007273367373272777, 0.0270493533462286, -0.026761610060930252, 0.02499411441385746, 0.04195953905582428, 0.02912657894194126, 0.02273831143975258, 0.007903662510216236, 0.04461488127708435, -0.051016949117183685, 0.01378628145903349, -0.0984913557767868, 0.017433714121580124, 0.02267075516283512, 0.01907602697610855, -0.026343204081058502, -0.026175132021307945, -0.022159144282341003, 0.03226221725344658, -0.06917642056941986, -0.026683896780014038, 0.0324346125125885, 0.015363817103207111, 0.015254257246851921, 0.01610488072037697, -0.06466697156429291, 0.004746960010379553, 0.029178187251091003, -0.041455816477537155, -0.040897220373153687, -0.03184328228235245, 0.03964827209711075, 0.02918528951704502, 0.01614806428551674, -0.02288156934082508, 0.015564079396426678, 0.05307238921523094, 0.04225170239806175, 0.02152179926633835, 0.030068660154938698, -0.005672505125403404, 0.04292183741927147, 0.003528862027451396, -0.004184720106422901, -0.02968127653002739, 0.0070885480381548405, -0.0051050940528512, -0.06358159333467484, 0.01906243897974491, 0.015056260861456394, -0.05371232330799103, -0.04194113239645958, 0.05969775468111038, 0.007640378549695015, -0.03244612365961075, -0.04966552555561066, 0.008191574364900589, -0.05481080710887909, -0.014838616363704205, -0.013309509493410587, 0.01002216525375843, -0.02232437953352928, 0.07409507036209106, 0.0270699355751276, -0.00033355550840497017, 0.06734417378902435, -0.01952035166323185, -0.004272535443305969, -0.019731832668185234, 0.10246425122022629, 0.06244072690606117, 0.04965410754084587, -0.0020952399354428053, 0.05502944812178612, -0.03773196041584015, -0.04238228499889374, 0.022735970094799995, -0.0290916096419096, -0.01015166100114584, -0.038009610027074814, 0.020726706832647324, 0.055495720356702805, 0.013162259943783283, 0.08691870421171188, -0.05443834885954857, -0.003109546145424247, -0.013920528814196587, 0.03999138996005058, 0.026928110048174858, 0.06187515705823898, 0.02526518702507019, 0.00178444548510015, 0.0069885035045444965, -0.04505117982625961, 0.019777828827500343, -0.02854304574429989, -0.02781878411769867, 0.015230048447847366, 0.010272647254168987, 0.00850391574203968, 0.005198828410357237, 0.03973345831036568, 0.07263069599866867, -0.03475702553987503, -0.0021854096557945013, 0.0028924185317009687, 0.02450343407690525, 0.01908957026898861, -0.03034706600010395, -0.02906930446624756, -0.03226853162050247, -0.020232219249010086, -0.01447447668761015, -0.003966316115111113, -0.02708052098751068, -0.03017321228981018, 0.057563476264476776, -0.013410576619207859, -0.0034775203093886375, 0.017531385645270348, 0.03527461737394333, -0.02532920613884926, -0.05145446956157684, -0.0631120353937149, -0.04316677898168564, -0.04191683232784271, -0.03755970299243927, 0.024024464190006256, -0.006878209766000509, -0.03294786438345909, -0.013722656294703484, -0.013313191011548042, -0.028362618759274483, 0.062477074563503265, -0.03584878146648407, -0.01464829035103321, 0.03383700177073479, 0.03008999302983284, 0.04878406599164009, 0.025486566126346588, 0.027606066316366196, -0.014935419894754887, -0.0015010880306363106, -0.03809308633208275, -0.02919195219874382, 0.04564870521426201, 0.012025502510368824, 0.010168671607971191, -0.07851389050483704, 0.009917172603309155, 0.03385332226753235, 0.01483075600117445, -0.07852780818939209, 0.038967132568359375, -0.021558409556746483, -0.0027981791645288467, 0.046854227781295776, -0.02985631301999092, 0.009255177341401577, -0.024697259068489075, -0.013825702480971813, 0.004826345480978489, 0.021892143413424492, 0.04505102336406708, -0.02102610655128956, 0.06779095530509949, 0.006482192315161228, 0.0019603909458965063, -0.03698616474866867, -0.001967869931831956, -0.030460067093372345, 0.002784827258437872, -0.0362449586391449, -0.044302020221948624, -0.02694261074066162, -0.06648729741573334, 0.013663954101502895, 0.03389006108045578, -0.039431653916835785, -0.038685061037540436, 0.02337881736457348, 0.04619643837213516, -0.061165228486061096, 0.029580170288681984, -0.028637122362852097, 0.045525114983320236, -0.011893920600414276, -0.008643382228910923, -0.005836519878357649, 0.01391689758747816, -0.009158743545413017, 0.023511838167905807, 0.026718351989984512, -0.03043859452009201, -0.011725575663149357, -0.014502241276204586, 0.04028037562966347, 0.04480371251702309, -0.01703268103301525, 0.025612248107790947 ]
[ -0.10228177905082703, -0.000298211321933195, -0.04651092737913132, -0.04656529426574707, 0.030481450259685516, -0.03142517805099487, -0.002683380153030157, 0.020630666986107826, -0.00046776520321145654, -0.01821069046854973, -0.003179543185979128, -0.0267011858522892, -0.011858539655804634, -0.01119648665189743, 0.0696457177400589, -0.011309483088552952, -0.00017446083074901253, -0.03814459219574928, 0.023614393547177315, 0.008287250064313412, 0.04530569538474083, -0.02941305562853813, -0.04631512239575386, -0.009825529530644417, 0.038216061890125275, 0.05108219385147095, 0.03960645943880081, -0.03661022707819939, 0.019817283377051353, -0.20189400017261505, -0.010821620002388954, 0.028471285477280617, 0.051594220101833344, -0.03517119213938713, 0.008807582780718803, 0.04681035503745079, 0.028712907806038857, 0.03801299259066582, -0.010196875780820847, 0.04458457976579666, -0.0016638058004900813, 0.023627877235412598, -0.03584403172135353, -0.010126679204404354, 0.01673114113509655, 0.020831869915127754, -0.0024130253586918116, -0.03932446241378784, -0.02087479829788208, 0.010270747356116772, -0.055103544145822525, -0.01781076192855835, -0.02802226133644581, -0.02145613171160221, -0.01710423082113266, 0.03041630983352661, 0.03032786026597023, 0.0885877013206482, -0.0024032897781580687, -0.0067757973447442055, 0.01801125891506672, -0.0275731161236763, -0.13112983107566833, 0.09786046296358109, 0.04489383473992348, 0.061209529638290405, -0.03256078436970711, -0.023805508390069008, 0.0002543661976233125, 0.10179394483566284, 0.01978222467005253, -0.015157363377511501, -0.025484057143330574, 0.05705924332141876, 0.023034362122416496, -0.026568617671728134, -0.00524876406416297, 0.007708095014095306, 0.026736851781606674, -0.04546140879392624, -0.04943431168794632, -0.011592141352593899, 0.005100323352962732, -0.012700020335614681, -0.047922175377607346, 0.045448169112205505, -0.01924123987555504, 0.03726108372211456, 0.05126769840717316, 0.012323589064180851, 0.04266635701060295, -0.03443920239806175, 0.02555357851088047, -0.011826720088720322, -0.06047018617391586, -0.004283880814909935, -0.0005309134721755981, -0.004642203915864229, -0.028778227046132088, 0.4227200746536255, -0.049284011125564575, -0.04748987779021263, 0.06450256705284119, 0.027243321761488914, -0.012010935693979263, 0.008915542624890804, 0.02936958335340023, -0.04811554029583931, 0.029163450002670288, -0.04475582018494606, -0.00607183575630188, 0.0005669397651217878, 0.06643803417682648, -0.04534786939620972, 0.006819118745625019, 0.014584634453058243, 0.0415436215698719, 0.00669806869700551, 0.012163842096924782, -0.007192274555563927, 0.005965196993201971, 0.0013903992949053645, 0.011725615710020065, 0.010803041979670525, -0.014408508315682411, -0.03253054991364479, 0.012083993293344975, 0.054204653948545456, 0.02938777394592762, 0.028250375762581825, 0.06164456158876419, -0.026214849203824997, -0.06048242375254631, -0.014934679493308067, 0.003784096334129572, 0.013455348089337349, 0.019743667915463448, -0.011858220212161541, 0.013113460503518581, 0.023285111412405968, -0.0036286432296037674, 0.011440523900091648, 0.000685734034050256, 0.0006240532384254038, -0.05935031548142433, 0.11447353661060333, -0.010391327552497387, -0.029520893469452858, -0.029390132054686546, -0.03509040176868439, 0.016115814447402954, 0.037456121295690536, -0.005269805900752544, -0.05528915300965309, 0.022275960072875023, 0.028569307178258896, 0.07853042334318161, -0.014583999291062355, -0.05608128383755684, -0.018742891028523445, -0.02832844853401184, -0.00009043601312441751, -0.0645822212100029, 0.06164456531405449, 0.042398303747177124, -0.07142075151205063, -0.015219634398818016, -0.002629833063110709, 0.018626408651471138, -0.07888458669185638, 0.014467750675976276, 0.00873549748212099, -0.023223742842674255, 0.010575754567980766, 0.047677893191576004, -0.02223343960940838, -0.026053162291646004, 0.021307416260242462, 0.06971661001443863, 0.02729063667356968, 0.027172314003109932, -0.006918154191225767, -0.053058598190546036, 0.009244050830602646, -0.02245177887380123, -0.07087904959917068, -0.06896549463272095, -0.02688884548842907, -0.029879944398999214, 0.015344846062362194, -0.01493825763463974, -0.011638708412647247, -0.081771120429039, 0.08301173150539398, -0.049421556293964386, -0.027353201061487198, 0.027028106153011322, -0.0006889321375638247, -0.03381533548235893, -0.01878717541694641, -0.025899959728121758, 0.04487401619553566, -0.03947325050830841, 0.03902081400156021, -0.0551595501601696, 0.042891476303339005, 0.05913294851779938, -0.043074239045381546, 0.06800320744514465, 0.055002469569444656, -0.027083778753876686, -0.028568098321557045, 0.003389426739886403, 0.016864676028490067, 0.018503490835428238, -0.027971409261226654, -0.012965517118573189, 0.024417072534561157, 0.005194758530706167, -0.00447551254183054, -0.04329465702176094, -0.04511982947587967, -0.03064918704330921, -0.34433549642562866, -0.047082073986530304, -0.01688285544514656, -0.036675166338682175, 0.03108639270067215, -0.06668272614479065, 0.00844123587012291, -0.02585548534989357, -0.0486319437623024, -0.00550309382379055, 0.0677342638373375, -0.010329585522413254, -0.027295183390378952, -0.09793408960103989, -0.01709570549428463, 0.01906258799135685, -0.03323347121477127, -0.043393976986408234, -0.043066274374723434, 0.028556929901242256, 0.011481750756502151, 0.010198485106229782, -0.02435869164764881, -0.06876984238624573, -0.01571117341518402, -0.06495386362075806, 0.08534227311611176, -0.0316193588078022, 0.14190182089805603, -0.009603099897503853, 0.03886708617210388, -0.02825227566063404, 0.017985394224524498, -0.11182405799627304, 0.004301948938518763, -0.025818202644586563, -0.01614353060722351, 0.0000041808857531577814, 0.0378764383494854, -0.032840125262737274, -0.025243310257792473, 0.014607490040361881, -0.0743008553981781, -0.027615010738372803, -0.05135422945022583, 0.012392988428473473, -0.030641885474324226, -0.051263272762298584, -0.01528535783290863, 0.056590646505355835, 0.020523440092802048, 0.007463719695806503, -0.004643045831471682, 0.003680989146232605, -0.012473593465983868, -0.02431187406182289, -0.07743445038795471, 0.010050486773252487, 0.00315136113204062, 0.0036894544027745724, 0.026187323033809662, 0.06357790529727936, 0.03464220091700554, -0.024195674806833267, 0.006638042628765106, 0.02325313352048397, 0.009738322347402573, -0.010425605811178684, 0.04158135503530502, -0.026768341660499573, -0.009818069636821747, 0.10969828069210052, 0.005027132574468851, -0.06498774141073227, 0.03519904613494873, 0.05877786502242088, -0.0101917190477252, 0.050564125180244446, 0.019345080479979515, -0.010863924399018288, 0.016329430043697357, -0.0029577650129795074, 0.0397147461771965, -0.031340423971414566, -0.019450809806585312, 0.025762712582945824, -0.02072879858314991, -0.02377806417644024, 0.03517810255289078, 0.019538722932338715, -0.02830546908080578, 0.02282567322254181, -0.008193070068955421, -0.048271484673023224, 0.06818247586488724, -0.003447770606726408, -0.23863019049167633, -0.004033183678984642, 0.05110087990760803, 0.06596226245164871, 0.005589374806731939, 0.0403217077255249, 0.047594111412763596, -0.07081880420446396, 0.00170178955886513, 0.012672115117311478, 0.02386518567800522, 0.03663337975740433, 0.016211414709687233, -0.0011948872124776244, 0.038365740329027176, -0.020894048735499382, 0.055327679961919785, -0.010892015881836414, 0.015810251235961914, 0.005087036173790693, 0.040000565350055695, 0.003953958861529827, 0.16805320978164673, -0.02876180410385132, 0.03484983369708061, 0.01613122969865799, 0.028189642354846, 0.022487428039312363, 0.09354270249605179, 0.022452369332313538, 0.009812246076762676, 0.006024432834237814, 0.07032892853021622, -0.00832812674343586, 0.02271849662065506, -0.07140092551708221, -0.019180597737431526, 0.03390352427959442, 0.04964759945869446, -0.020119890570640564, 0.03487519919872284, 0.009114624932408333, -0.04090361297130585, 0.00794787798076868, 0.047326862812042236, 0.03411806747317314, -0.02706673927605152, -0.0351652167737484, -0.052857186645269394, 0.0017094204667955637, -0.03347783908247948, -0.01765788160264492, -0.005963686387985945, -0.0025812366511672735, 0.008133547380566597, 0.04532560333609581, 0.02885545790195465, -0.0202547088265419, -0.042304493486881256, 0.022266989573836327, -0.018113134428858757, -0.016519656404852867, 0.12788571417331696, 0.05463659018278122, 0.03570813313126564 ]
[ -0.012391364201903343, 0.02054453268647194, -0.029955023899674416, -0.0003788989852182567, -0.02108054980635643, 0.037556037306785583, 0.0382814034819603, 0.01343892328441143, -0.008509655483067036, 0.034720905125141144, -0.023738620802760124, 0.014210267923772335, 0.026859601959586143, -0.007945680059492588, 0.03671085834503174, 0.003072755178436637, 0.0023991167545318604, -0.012408711947500706, 0.00827681552618742, -0.00011125505989184603, -0.01908845081925392, 0.03869331255555153, 0.0008825984550639987, -0.006675732787698507, -0.018694113940000534, 0.047968070954084396, 0.010976970195770264, -0.0018422025023028255, 0.023543581366539, -0.10205411911010742, -0.030426200479269028, -0.036152034997940063, -0.0065217693336308, 0.032388798892498016, -0.010891078040003777, 0.0007735894760116935, -0.0008182978490367532, 0.02765733189880848, -0.0033338209614157677, -0.002994993468746543, -0.07491587847471237, 0.0053682392463088036, 0.005799621809273958, 0.01680936850607395, 0.004326564725488424, 0.0037526178639382124, -0.03013244830071926, -0.01200846303254366, -0.012124143540859222, -0.04421105235815048, -0.02182629518210888, -0.007475009188055992, -0.002413809997960925, 0.007164051756262779, 0.0662236213684082, -0.025752486661076546, -0.032770249992609024, -0.006837910506874323, 0.01504768617451191, -0.01395939290523529, -0.005321540869772434, -0.00019483188225422055, -0.0394071526825428, -0.027698250487446785, -0.020662615075707436, -0.01693534478545189, -0.025003207847476006, 0.00588027760386467, -0.0005199816660024226, -0.010965162888169289, -0.023135505616664886, 0.034934718161821365, -0.005627322942018509, 0.0012620608322322369, -0.016592783853411674, -0.019528552889823914, 0.012098518200218678, -0.0009776930091902614, 0.05704928934574127, -0.05280248820781708, -0.03874354809522629, 0.0057781231589615345, 0.03694920614361763, 0.03728795796632767, 0.026281272992491722, -0.02212151698768139, 0.010194904170930386, 0.018151527270674706, 0.009692827239632607, 0.017191320657730103, -0.00815163180232048, 0.020383043214678764, 0.016228187829256058, -0.015384338796138763, -0.08841744065284729, -0.0038088408764451742, -0.027671294286847115, -0.03041069395840168, -0.000712636683601886, 0.869543194770813, -0.01362159289419651, 0.02631414495408535, 0.014843265525996685, 0.00848361849784851, -0.0011979661649093032, -0.010068926960229874, 0.013823465444147587, 0.018843939527869225, 0.033674295991659164, -0.0345199890434742, 0.0016922767972573638, 0.015761304646730423, 0.029862960800528526, 0.015834588557481766, -0.012128257192671299, 0.021847236901521683, 0.0164477601647377, -0.01459807250648737, 0.015441235154867172, 0.02599010244011879, 0.003937130328267813, 0.00038270727964118123, -0.0028574177995324135, 0.018345264717936516, 0.013442261144518852, -0.1859576553106308, 0.0362289696931839, -8.876010171581271e-33, 0.015782447531819344, -0.011370864696800709, -0.0011474840575829148, 0.02580707147717476, 0.005501207429915667, 0.012263087555766106, 0.036369744688272476, 0.005812736228108406, 0.020515941083431244, -0.02352108247578144, 0.005129736848175526, -0.0031136339530348778, 0.005300150718539953, -0.000022920667106518522, 0.054453425109386444, -0.015045084059238434, 0.006816244218498468, 0.03285177797079086, -0.018027393147349358, 0.00333765079267323, 0.013787808828055859, 0.037564631551504135, 0.04637562856078148, 0.009957673028111458, 0.02114185132086277, 0.05337520316243172, 0.0001544341939734295, 0.011661751195788383, -0.00042062674765475094, -0.03488028049468994, 0.003978213761001825, 0.019914360716938972, -0.027294043451547623, -0.008401155471801758, 0.013454575091600418, -0.04968100041151047, 0.003663404146209359, 0.00446129497140646, 0.0057214731350541115, -0.03465181216597557, -0.021803025156259537, -0.0037986510433256626, -0.003020187607035041, -0.0018307841382920742, 0.0019719821866601706, -0.01896016113460064, 0.01601964235305786, 0.01288013905286789, 0.010912010446190834, 0.0032666558399796486, 0.013934885151684284, 0.04144541174173355, 0.015209331177175045, -0.024521106854081154, -0.025792503729462624, 0.01277641300112009, 0.008021154440939426, 0.025301212444901466, -0.014375444501638412, 0.028310824185609818, 0.026746030896902084, 0.012575522065162659, -0.011567587032914162, 0.004560705274343491, -0.007965169847011566, 0.00048183411126956344, -0.012525739148259163, -0.00950892549008131, 0.029487082734704018, -0.029098909348249435, -0.06012193486094475, 0.024733172729611397, 0.0008965737652033567, -0.013774777762591839, -0.01194513589143753, -0.019478216767311096, 0.00012862667790614069, -0.0013110568979755044, -0.026684924960136414, 0.00879746861755848, 0.0018474084790796041, 0.005099327303469181, 0.019638488069176674, -0.024755774065852165, 0.008109702728688717, 0.006813893560320139, 0.015745727345347404, 0.002878644736483693, -0.005742513108998537, 0.025451580062508583, 0.025311710312962532, -0.011063000187277794, -0.036577340215444565, -0.012369086034595966, 0.008329778909683228, 7.60783470335237e-33, -0.006217369809746742, -0.03648485243320465, -0.016618365421891212, -0.010079442523419857, -0.009481288492679596, 0.0015019766287878156, 0.005332697182893753, -0.0009131639963015914, -0.03268849849700928, 0.011036044918000698, -0.014686726033687592, 0.017502957955002785, -0.024462293833494186, 0.0337454117834568, 0.055099911987781525, -0.015142015181481838, -0.014061415567994118, -0.01587274856865406, 0.019843721762299538, -0.01760002411901951, 0.008175036869943142, 0.005748631898313761, -0.008266865275800228, 0.03107360377907753, -0.0003187475958839059, 0.04470764473080635, -0.028320522978901863, 0.010577772743999958, 0.023945530876517296, 0.04870923236012459, -0.00916227512061596, -0.01494021899998188, -0.011734184809029102, -0.019564522430300713, -0.030935177579522133, -0.004633700009435415, -0.009287561289966106, -0.02705336920917034, 0.008627673611044884, 0.002628643997013569, 0.015284406021237373, -0.0470508374273777, -0.008326953276991844, -0.0029532029293477535, 0.006852475460618734, -0.00823069829493761, 0.011100482195615768, -0.008124365471303463, -0.02694004215300083, -0.0035848640836775303, 0.02569674514234066, -0.008104600943624973, -0.02512892708182335, 0.02125866524875164, -0.012088105082511902, -0.005898880772292614, -0.047307904809713364, -0.0203696396201849, -0.008579831570386887, 0.015137728303670883, -0.00708043621852994, 0.032133638858795166, -0.021126991137862206, 0.0066157737746834755, -0.005702781490981579, 0.002511095954105258, -0.061645861715078354, -0.03911344334483147, 0.012321850284934044, -0.04719965532422066, -0.0454305000603199, -0.01863754168152809, 0.001746597234159708, 0.02436172217130661, -0.017443617805838585, -0.007045269478112459, -0.0012088519288226962, -0.014269603416323662, -0.02735152468085289, 0.04051782190799713, 0.02635042928159237, -0.00668498408049345, 0.024325186386704445, 0.0051406677812337875, -0.007936989888548851, 0.010349683463573456, -0.012912094593048096, -0.007277202792465687, 0.01472499966621399, -0.03119187243282795, -0.011198995634913445, 0.004467573948204517, 0.0198338832706213, -0.007806227542459965, -0.03278317674994469, -1.3630248929530353e-8, -0.041228875517845154, 0.027195898815989494, -0.0005255579017102718, 0.010767780244350433, 0.018916906788945198, 0.009057112969458103, -0.04664500430226326, -0.014876279979944229, -0.019569244235754013, -0.0044164895080029964, 0.0481349416077137, 0.003314349800348282, 0.00883840024471283, -0.0026585229206830263, -0.010002367198467255, -0.04828902333974838, -0.019404571503400803, -0.006722196005284786, 0.023875033482909203, 0.056205231696367264, 0.0024494593963027, 0.013957977294921875, -0.02106531709432602, 0.012386839836835861, 0.009000737220048904, -0.022788038477301598, 0.004417845048010349, -0.06767159700393677, 0.0002926551387645304, 0.015948127955198288, 0.0037201920058578253, -0.016874143853783607, -0.015321120619773865, 0.01057401578873396, -0.021855603903532028, -0.021590018644928932, 0.023518241941928864, 0.008285085670650005, 0.027327124029397964, -0.010315998457372189, 0.02322603389620781, -0.010642950423061848, -0.033606480807065964, -0.013327364809811115, 0.001698533189482987, -0.004360099323093891, -0.004803304094821215, -0.033083993941545486, 0.020741406828165054, -0.0356610044836998, -0.002901618368923664, 0.028512127697467804, 0.004833258222788572, 0.017023218795657158, 0.015198379755020142, 0.005122852977365255, -0.004006992559880018, -0.047576483339071274, -0.024707017466425896, 0.029851211234927177, -0.009608118794858456, 0.012964875437319279, -0.02194300852715969, -0.02375141717493534 ]
coding-single-level-of-abstraction-principle
https://markhneedham.com/blog/2009/06/12/coding-single-level-of-abstraction-principle
false
2009-06-12 17:07:30
Coding Dojo #17: Refactoring Cruise Control .NET
[ "coding-dojo" ]
[ "Coding Dojo" ]
After a couple of weeks of http://www.markhneedham.com/blog/2009/05/21/coding-dojo-15-smalltalk/[more experimental] http://www.markhneedham.com/blog/2009/05/29/coding-dojo-16-reading-sunit-code/[coding dojos] this week we decided to get back to some pure coding with the session being focused around doing some refactoring of the continuous integration server http://confluence.public.thoughtworks.org/display/CCNET/Welcome+to+CruiseControl.NET[Cruise Control .NET]. The overall intention of the refactoring we worked on is to try and introduce the concept of a 'ChangeSet' into the code base to represent the revisions that come in from source control systems that CC.NET integrates with. == The Format We had 6 people for the majority of the dojo so we resorted to the Randori style with each pair at the keyboard for 10 minutes before rotating. http://twitter.com/davcamer[Dave] and I have been reading/trying out the http://blog.staffannoteberg.com/2008/02/22/pomodoro-technique-in-5-minutes/[Pomodoro technique] in our spare time recently so we decided to use Pomodoro's idea of reflecting on our work by stopping every 3 pairing sessions and discussing what we'd done and whether we wanted to vary the approach or keep going the same way. == What We Learnt * The most obvious place in the code where the 'ChangeSet' concept made sense was in the RssFeedPublisher which was taking a collection of modifications and then converting them back into the same revision format that the data was in when it came from the source control system. The https://bitbucket.org/davcamer/ccnet/src/tip/project/core/sourcecontrol/ISourceControl.cs[ISourceControl].GetModifications() method was the one that we needed to change if we wanted to introduce the changes which we started doing by changing the return type from being a modification array to an IEnumerable<Modificatiion>. The goal was to *drive towards a place where we could create a ChangeSet* and have that extend an IEnumerable<Modificatiion> so that we could easily get that into the code before working out how to remove the concept of a Modification. We wanted it to extend a more generic type than array since we didn't want to tie the ChangeSet class to something as concrete as an array. Even with seemingly minor change we still ended up taking around 40 minutes to get the code compiling again - we were very much leaning on the compiler to guide us on what to fix, a technique http://twitter.com/mfeathers[Michael Feathers] talks about in http://www.amazon.com/Working-Effectively-Legacy-Robert-Martin/dp/0131177052[Working Effectively with Legacy Code]. It would be interesting to see how a refactoring like this would work in a dynamic language like Ruby where you would lose the compiler support but still have the ability to run your tests to help guide you to the places that need fixing. * There were 963 usages of Modification in the code so we didn't have the option of just deleting it straight away! I've not yet worked on a code base this size so it was interesting for me to see how we were forced into a *smaller steps approach* by the code. * After 3 pairing sessions we discussed the approach that we were taking which had led us to a situation where the code still wasn't compiling. The alternative approach was to *go in even smaller steps and make another method on ISourceControl for 'GetModfications' with a different signature* and then delegate from the new method to the existing one. The problem with this was that there were 20 classes which implemented ISourceControl so we would have had to implement the delegation in all of these or create an abstract base class which did the delegation and then get all the existing implementors to extend the case class instead. We decided to keep going with our original approach for 3 more pairs as it seems like we were quite close and it wasn't clear whether changing the approach would give us significant benefits. * The main compilation errors in the code were actually tests which no longer compiled due to the fact that IEnumerable doesn't have a 'Length' property on it whereas array does. CC.NET is a .NET 2.0 code base so we weren't able to introduce http://msdn.microsoft.com/en-us/library/system.linq.enumerable_members.aspx[LINQ] into the code which would have made it really easy to just make use of the 'Count' extension method instead of casting the results from 'GetModification' back to an array in the tests for the time being. We accidentally came across the *ICollection interface towards the end which perhaps would have been a better choice than IEnumerable* as it would have allowed us to avoid the nasty casting and just make use of the Count property on ICollection instead. == For next time * The pace this week was a bit slower but it definitely seemed to keep people more involved so we're going to try and keep it more focused on the coding rather than experimentation. Possibly a refactoring exercise on some Java code as we have more people using that on their projects.
null
null
[ 0.003395278472453356, -0.025867201387882233, -0.018048737198114395, 0.04443623498082161, 0.07979702949523926, 0.00023122159473132342, 0.025912854820489883, 0.041230250149965286, 0.016180921345949173, -0.027427587658166885, -0.017204508185386658, 0.012561255134642124, -0.06020214781165123, 0.002213120460510254, -0.04469417780637741, 0.05857591703534126, 0.05775103718042374, -0.02404879964888096, 0.044708650559186935, -0.002591277239844203, 0.010002202354371548, 0.06818688660860062, 0.007235847879201174, 0.022471804171800613, 0.011342335492372513, 0.03544370457530022, 0.006509779486805201, -0.008903933688998222, -0.06910701096057892, -0.019385604187846184, 0.03729591146111488, 0.02206578478217125, 0.015892518684267998, 0.010346700437366962, 0.00886914785951376, -0.018078025430440903, -0.030319148674607277, 0.026317641139030457, 0.0023401977960020304, 0.02576533704996109, -0.06577181816101074, 0.050749871879816055, 0.012303950265049934, 0.016466639935970306, -0.03902863338589668, 0.004291214980185032, -0.02725365199148655, 0.009615935385227203, -0.0071594007313251495, -0.033765193074941635, -0.09052824974060059, 0.018428774550557137, -0.016359815374016762, -0.004294375889003277, -0.017774278298020363, 0.04824114963412285, 0.031143072992563248, -0.05856956169009209, 0.009486459195613861, -0.04484274983406067, -0.007290685549378395, -0.022403283044695854, 0.020257076248526573, 0.023832712322473526, 0.019379999488592148, -0.03741665929555893, -0.00691314646974206, 0.05363791808485985, -0.01939830556511879, -0.003330840729176998, 0.0002839344379026443, 0.03887605667114258, -0.011768225580453873, -0.012212932109832764, 0.02125321514904499, -0.04496713727712631, -0.000653614813927561, 0.06397023797035217, 0.031500909477472305, 0.023549068719148636, -0.02278255484998226, 0.024369342252612114, 0.017292773351073265, 0.024789761751890182, 0.00019762574811466038, -0.04261203482747078, -0.009655418805778027, -0.01804429292678833, -0.06084626540541649, 0.06813926994800568, 0.01367646548897028, -0.05164622515439987, 0.034034304320812225, 0.03240572661161423, -0.0021541749592870474, 0.023258937522768974, 0.01375690195709467, 0.00917721726000309, -0.0000597386242588982, -0.018838541582226753, -0.013745174743235111, 0.006512355990707874, 0.019055597484111786, -0.00008334666927112266, -0.08165983110666275, -0.01441678311675787, -0.02114240638911724, -0.012994536198675632, 0.02148057147860527, 0.019171182066202164, -0.03236318379640579, 0.011460785754024982, -0.007981957867741585, 0.00877777487039566, -0.06678695976734161, 0.05522124469280243, -0.004182239528745413, -0.05002644285559654, -0.024804459884762764, 0.013951290398836136, 0.035226959735155106, 0.04043368995189667, 0.00022487899695988744, 0.09779258072376251, 0.027990087866783142, 0.02213580347597599, -0.015374865382909775, 0.04736736789345741, -0.015487726777791977, -0.06456239521503448, 0.0022616153582930565, 0.04627265781164169, -0.025408899411559105, -0.016959408298134804, -0.0013200965477153659, -0.03375205025076866, -0.0052866567857563496, 0.02024032734334469, 0.017100932076573372, 0.04624072462320328, -0.006891205441206694, -0.04119161143898964, 0.023137571290135384, 0.008332754485309124, 0.02524726279079914, 0.028389297425746918, -0.015628574416041374, -0.037414051592350006, -0.03543472662568092, 0.01687941513955593, -0.013237183913588524, 0.010422495193779469, 0.009843666106462479, -0.05111035704612732, 0.03398832678794861, 0.07611223310232162, 0.011713415384292603, 0.026889797300100327, -0.021625369787216187, 0.03413521870970726, 0.016730431467294693, 0.018976381048560143, -0.00017464188567828387, 0.03803175687789917, -0.007201598957180977, -0.018853915855288506, -0.011697191745042801, 0.03798529505729675, 0.026699615642428398, 0.027473166584968567, -0.05921892449259758, -0.04091871529817581, 0.04612567275762558, -0.05820276960730553, -0.027388297021389008, 0.03998716548085213, 0.06825118511915207, 0.028465034440159798, 0.03438715264201164, 0.0020577709656208754, -0.07660740613937378, 0.011930936947464943, 0.016188794746994972, -0.009338579140603542, 0.016688592731952667, -0.02068665809929371, 0.06093088537454605, 0.03386347368359566, 0.018871046602725983, 0.04371121898293495, -0.0785197839140892, -0.07727700471878052, -0.02512301690876484, -0.009693124331533909, 0.06801965832710266, -0.003100534901022911, 0.005463895387947559, 0.07368674129247665, 0.006713386625051498, 0.04875728860497475, 0.04003462940454483, 0.0018745907582342625, 0.03366992622613907, -0.033192139118909836, -0.02678874507546425, 0.03495628386735916, 0.029927048832178116, -0.013416887260973454, -0.059240441769361496, 0.0002802819071803242, -0.015873348340392113, -0.017521576955914497, 0.035010140389204025, -0.026198869571089745, 0.034021541476249695, 0.011556558310985565, 0.03814630210399628, -0.03176730498671532, 0.052711136639118195, -0.05901342257857323, 0.0030484581366181374, -0.0042128171771764755, -0.02939528599381447, 0.023888997733592987, 0.005349915474653244, 0.12596583366394043, 0.06408000737428665, -0.042214639484882355, -0.030652055516839027, 0.025151468813419342, 0.00713947881013155, -0.05738590285181999, -0.025786351412534714, -0.010417223908007145, 0.02400493621826172, -0.01963452436029911, -0.06568378955125809, -0.034933410584926605, 0.004211528226733208, -0.04221773147583008, 0.04247672110795975, 0.060941729694604874, -0.013311660848557949, 0.043702077120542526, -0.004877913277596235, -0.0007958094356581569, -0.010489994660019875, -0.0122101791203022, -0.04522606357932091, 0.017464715987443924, 0.013110188767313957, -0.017325185239315033, 0.06155449151992798, -0.038241852074861526, -0.010214220732450485, -0.036861155182123184, -0.025529075413942337, -0.011367309838533401, 0.03556053340435028, 0.07220547646284103, 0.006407502572983503, 0.05670253932476044, -0.0011440928792580962, 0.016324572265148163, 0.005569044966250658, -0.0507570281624794, -0.02666502445936203, -0.011901439167559147, 0.014742806553840637, 0.019441496580839157, -0.01485870685428381, 0.02325964905321598, 0.029953166842460632, -0.0045478809624910355, -0.014657681807875633, -0.04219875857234001, 0.0460779182612896, 0.0007028503459878266, -0.018852051347494125, -0.026937469840049744, -0.045555680990219116, 0.041408296674489975, -0.04232423007488251, -0.00023573296493850648, 0.005357575137168169, -0.06897412240505219, 0.04320515692234039, -0.0857689157128334, -0.05634651705622673, 0.003882222343236208, 0.016642991453409195, 0.03406830132007599, -0.02041914314031601, 0.03289184346795082, 0.07455360144376755, -0.008245854638516903, 0.023054689168930054, -0.016582241281867027, -0.007175535894930363, 0.03348344936966896, 0.0003597724426072091, 0.006024786736816168, 0.027479073032736778, 0.02396877110004425, -0.009199513122439384, -0.040334057062864304, 0.05822811275720596, -0.008187762461602688, -0.28686901926994324, 0.04227248206734657, 0.009124078787863255, -0.05416484922170639, 0.03557933494448662, 0.003612235188484192, 0.02603859081864357, -0.06264528632164001, -0.012937960214912891, 0.004838797263801098, -0.04535062238574028, -0.04230866953730583, -0.03049258328974247, 0.05030102655291557, 0.005717230495065451, 0.04392926022410393, 0.009631190448999405, -0.029369672760367393, 0.018418628722429276, 0.041785866022109985, -0.0057305884547531605, -0.06146194785833359, 0.010383721441030502, 0.02532104030251503, 0.012872946448624134, 0.05437333881855011, -0.10838877409696579, 0.05533280223608017, -0.04157264158129692, 0.001307615195401013, -0.0019199972739443183, 0.00967019610106945, -0.0010235855588689446, -0.013634287752211094, -0.016624104231595993, -0.005968011915683746, 0.03973257541656494, 0.02814648486673832, -0.014321641996502876, -0.0004051883006468415, -0.03422291949391365, -0.043603915721178055, -0.013096860609948635, 0.000019577897546696477, 0.08223341405391693, 0.021679559722542763, -0.08746439218521118, -0.015120511874556541, -0.03706543147563934, 0.08171134442090988, -0.015482248738408089, -0.05357465520501137, 0.003204152686521411, 0.03627939149737358, 0.018035124987363815, -0.038191523402929306, -0.013818812556564808, -0.00917940866202116, -0.03723534196615219, -0.02978590503334999, -0.00444608461111784, -0.05191243439912796, -0.011767370626330376, -0.06696218997240067, 0.023295428603887558, -0.06869786232709885, -0.06304348260164261, -0.009487085044384003, 0.09780201315879822, 0.033345870673656464, -0.052685316652059555, 0.03614979609847069, -0.004277907777577639, -0.11046692728996277, 0.0022513826843351126, -0.014189713634550571, -0.024287832900881767, -0.017195476219058037, 0.023310963064432144, 0.051896825432777405, -0.02739095501601696, -0.0404135026037693, 0.03099817968904972, 0.00440237345173955, 0.028365669772028923, -0.015172477811574936, 0.04627722129225731, 0.013535167090594769, -0.026991290971636772, 0.00611902168020606, 0.06945491582155228, -0.014369513839483261, -0.043357498943805695, -0.03733765333890915, 0.04592260345816612, 0.013706978410482407, 0.03193822130560875, -0.0045841773971915245, 0.004663243889808655, 0.031561095267534256, 0.016854796558618546, -0.04471450671553612, 0.04634628817439079, -0.04623223841190338, -0.01344436313956976, 0.0009337668889202178, -0.0552961602807045, 0.010582172311842442, 0.026045506820082664, 0.039520952850580215, -0.009204843081533909, -0.042466118931770325, 0.006428812630474567, -0.046530142426490784, -0.016381481662392616, 0.004634100943803787, 0.001661790767684579, 0.0383528396487236, -0.015007633715867996, -0.012434003874659538, -0.04010411351919174, 0.006748014595359564, 0.009182852692902088, 0.009301803074777126, -0.042216937988996506, -0.036705248057842255, -0.02359122782945633, -0.01608336716890335, 0.03152786195278168, 0.019832724705338478, -0.00988155696541071, 0.04161256551742554, 0.013371635228395462, -0.03416263312101364, 0.0146792558953166, -0.012448507361114025, -0.03813786432147026, -0.028239890933036804, 0.004607662558555603, 0.007274618837982416, -0.027541454881429672, 0.04068465530872345, -0.0026896728668361902, 0.013463141396641731, 0.035057004541158676, 0.012085928581655025, 0.01825317181646824, -0.015436440706253052, 0.029685063287615776, 0.00537359481677413, 0.00796147994697094, -0.0862991064786911, 0.004081948660314083, -0.043780166655778885, -0.0345899760723114, -0.01456642709672451, 0.033044446259737015, -0.014540936797857285, -0.006255712825804949, 0.005763043649494648, 0.012726757675409317, -0.053591206669807434, -0.02516414038836956, -0.012132056057453156, 0.014020497910678387, 0.04085259884595871, -0.014391640201210976, 0.020834287628531456, -0.0036727902479469776, -0.04656480625271797, 0.0015993729466572404, 0.034211594611406326, -0.04693875461816788, 0.01258494146168232, 0.03696460649371147, 0.0046975258737802505, 0.0016204632120206952, 0.005621003918349743, 0.04125748947262764, 0.02164115011692047, 0.005851624999195337, -0.029603691771626472, -0.00582765182480216, 0.016953948885202408, 0.051783524453639984, 0.004084133543074131, -0.0012271131854504347, 0.01327679492533207, 0.0018488405039533973, -0.01944071240723133, -0.02417367696762085, 0.004985001869499683, -0.00866214744746685, 0.019921209663152695, -0.033172186464071274, -0.07134643942117691, 0.06004837900400162, 0.03784875199198723, 0.015331347472965717, 0.024507679045200348, -0.005534146446734667, 0.02162824012339115, -0.015579653903841972, 0.022486796602606773, 0.04656694829463959, -0.05514347180724144, 0.0036706281825900078, -0.020518731325864792, 0.007254358381032944, -0.003919714596122503, -0.014871891587972641, -0.04861399158835411, -0.025449782609939575, -0.04572949931025505, 0.00793326273560524, -0.05618288367986679, -0.04062048718333244, -0.02389991469681263, 0.018642084673047066, -0.02335558645427227, -0.0038615502417087555, -0.002193577354773879, -0.006532806903123856, -0.01524156704545021, -0.024077124893665314, 0.013876444660127163, -0.046164099127054214, 0.01966855488717556, -0.004782527219504118, -0.036731768399477005, 0.013653934933245182, -0.019873833283782005, 0.009889948181807995, 0.01765875145792961, -0.020109279081225395, -0.03375678509473801, -0.03539058193564415, 0.013494347222149372, 0.002048273803666234, 0.05352409929037094, -0.0028816931881010532, -0.008315539918839931, -0.03690475597977638, -0.013675774447619915, -0.052130695432424545, 0.02939671464264393, -0.0433647595345974, -0.008447075262665749, 0.032304249703884125, 0.045384731143713, 0.02277127467095852, 0.04924144968390465, -0.03544096276164055, -0.024759570136666298, 0.05570792406797409, -0.07930134981870651, -0.03219921141862869, -0.040128424763679504, -0.06465087831020355, -0.0041991546750068665, 0.014830125495791435, 0.034890830516815186, -0.03028275817632675, 0.02924317494034767, 0.015563632361590862, 0.03215482085943222, 0.017321772873401642, -0.026426084339618683, 0.03081122599542141, -0.041941169649362564, -0.0020112309139221907, -0.07802846282720566, 0.007909023202955723, 0.049937885254621506, 0.0318673700094223, -0.008378188125789165, 0.00022733448713552207, -0.03292699158191681, 0.04813055694103241, -0.05419733375310898, -0.01718078926205635, 0.050148580223321915, -0.007580345496535301, -0.006504685617983341, 0.007534168194979429, -0.07512703537940979, 0.03747538477182388, 0.03040906973183155, -0.04144375026226044, -0.015990663319826126, -0.05485464632511139, 0.05392614006996155, 0.010192967019975185, 0.044225018471479416, -0.02906438149511814, -0.023183101788163185, 0.06436187028884888, 0.006476675160229206, -0.004596896003931761, 0.050000082701444626, 0.01574854739010334, 0.03269271180033684, 0.043564144521951675, -0.004773783963173628, -0.00920852366834879, 0.0008501994889229536, -0.0018218113109469414, -0.061549849808216095, 0.02085471898317337, 0.02281159907579422, -0.034993451088666916, -0.03328392654657364, 0.06615178287029266, 0.03919585421681404, -0.033325087279081345, -0.05376987159252167, 0.01571120135486126, -0.06102314963936806, -0.007063009776175022, -0.022328123450279236, 0.018195554614067078, -0.04360232129693031, 0.043601155281066895, 0.003001130186021328, -0.009370198473334312, 0.06973408162593842, -0.005340852774679661, -0.024949166923761368, -0.032201871275901794, 0.07391251623630524, 0.0739046186208725, 0.05096025392413139, -0.0013610454043373466, 0.056774504482746124, -0.0331343337893486, -0.03635033965110779, 0.02566569298505783, 0.02374366484582424, -0.013243921101093292, -0.038658954203128815, 0.02090132050216198, 0.07594955712556839, -0.0075654033571481705, 0.06544173508882523, -0.02264801599085331, -0.03077821061015129, -0.014052772894501686, 0.02908717468380928, 0.020016536116600037, 0.05537489429116249, 0.025485996156930923, -0.007519196253269911, -0.006083167158067226, -0.04891858622431755, 0.02764897793531418, -0.023492883890867233, -0.02393195778131485, 0.01586742140352726, -0.0007573537295684218, 0.013323851861059666, -0.007458389736711979, 0.03886611759662628, 0.07060747593641281, -0.04233304783701897, 0.026996102184057236, -0.009997078217566013, 0.03223803639411926, 0.014046742580831051, 0.0027338091749697924, -0.03862268850207329, -0.025866325944662094, 0.008561334572732449, -0.0321408212184906, -0.04157372564077377, -0.012128922156989574, -0.024870403110980988, 0.04000154510140419, -0.013543466106057167, -0.00048763578524813056, 0.021216928958892822, 0.01317940279841423, -0.04966151341795921, -0.06361472606658936, -0.04204750061035156, -0.04151109606027603, -0.043179646134376526, -0.03377807140350342, 0.03405574709177017, 0.00010607498552417383, -0.027427244931459427, -0.0036591270472854376, -0.05783899873495102, -0.026307793334126472, 0.049791157245635986, -0.047460854053497314, -0.002441978780552745, 0.02050187438726425, 0.013203958049416542, 0.025120584294199944, 0.026507817208766937, 0.038850702345371246, -0.01022518053650856, -0.007638805545866489, -0.03870990127325058, 0.02435002662241459, 0.026731999590992928, 0.008650621399283409, 0.010625324212014675, -0.08272060751914978, 0.023327860981225967, 0.03420361503958702, 0.008396479301154613, -0.056217655539512634, 0.03419974073767662, 0.01227318961173296, -0.0058858562260866165, 0.0590747632086277, -0.020227914676070213, 0.009966370649635792, -0.015069007873535156, -0.019301224499940872, -0.009026847779750824, 0.02224797010421753, 0.04038595035672188, -0.007138361223042011, 0.0827355906367302, 0.04436077922582626, -0.019585438072681427, -0.04834084212779999, -0.0022373448591679335, 0.0001387977972626686, 0.0008035855134949088, -0.025105232372879982, -0.037095025181770325, -0.032847192138433456, -0.08003555983304977, -0.01875879056751728, 0.01335364580154419, -0.002984517952427268, -0.030036685988307, 0.029411427676677704, 0.014986437745392323, -0.04217158630490303, -0.006333658937364817, -0.03849770873785019, 0.025722138583660126, -0.028340458869934082, -0.008611192926764488, 0.00662305997684598, -0.013856575824320316, -0.005697671324014664, 0.008152120746672153, 0.006631570402532816, -0.041969940066337585, 0.0006377639947459102, 0.01706003211438656, 0.03341604024171829, 0.046303004026412964, 0.025252245366573334, -0.043009232729673386 ]
[ -0.12252689152956009, -0.009970800951123238, -0.009268772788345814, -0.038040291517972946, 0.03154141083359718, -0.020173588767647743, -0.028286250308156013, 0.04206395149230957, -0.015349872410297394, -0.027081700041890144, 0.021274877712130547, -0.023644806817173958, -0.02088942937552929, 0.009262031875550747, 0.10506970435380936, 0.00190010538790375, -0.01438176166266203, -0.03186602517962456, 0.0003339041140861809, 0.009225726127624512, 0.007636175490915775, -0.03089270181953907, -0.04702823981642723, -0.017933567985892296, -0.0001732143573462963, 0.03753076121211052, 0.039051879197359085, -0.03439853712916374, 0.014232517220079899, -0.20105502009391785, -0.0070098270662128925, 0.012804053723812103, 0.041098687797784805, -0.009957882575690746, -0.00018136024300474674, 0.049348000437021255, 0.01751350797712803, -0.013972219079732895, -0.020117033272981644, 0.03941929712891579, 0.015493356622755527, 0.023893171921372414, -0.03963464871048927, -0.017965421080589294, 0.016873784363269806, -0.006517859175801277, 0.026594221591949463, -0.028987498953938484, -0.015552853234112263, 0.018278462812304497, -0.05401386320590973, -0.03946765512228012, -0.0152652682736516, -0.017451569437980652, 0.004633232019841671, 0.010524241253733635, 0.035832006484270096, 0.07653304934501648, 0.01072657946497202, 0.018827900290489197, 0.03004942275583744, -0.006558525841683149, -0.14726227521896362, 0.07923277467489243, 0.03654076159000397, 0.05507175996899605, -0.019552700221538544, -0.020521361380815506, 0.01394573412835598, 0.09960530698299408, 0.0023664969485253096, -0.03933430835604668, -0.027970610186457634, 0.03902732953429222, 0.014497085474431515, -0.007376439403742552, -0.020684946328401566, 0.030065538361668587, 0.020855097100138664, -0.04404319077730179, -0.04135359823703766, -0.015908775851130486, -0.016369083896279335, -0.010830835439264774, -0.04454438015818596, 0.014517257921397686, -0.012844606302678585, 0.04733606055378914, 0.0052511184476315975, 0.005840303376317024, 0.01992308348417282, -0.002020786749199033, 0.075442373752594, -0.002271283883601427, -0.0997379794716835, -0.005991753656417131, -0.006264505907893181, 0.04057816043496132, -0.01464206911623478, 0.4269104599952698, -0.0305786170065403, -0.03724440932273865, 0.07373875379562378, 0.018065504729747772, -0.011329091154038906, 0.005993769969791174, 0.026970941573381424, -0.04412805661559105, 0.05290519818663597, -0.014460199512541294, -0.012587584555149078, 0.01455716136842966, 0.07113561034202576, -0.032038480043411255, -0.008597447536885738, 0.050103865563869476, 0.006262803450226784, 0.043198876082897186, 0.0028971771243959665, 0.011953108012676239, -0.012325185351073742, 0.006796402856707573, 0.026827741414308548, 0.011292318813502789, 0.0045213219709694386, 0.0011090724729001522, 0.025125330314040184, 0.04839520528912544, 0.023674022406339645, 0.018985167145729065, 0.0649302527308464, -0.013188677839934826, -0.0602206215262413, 0.003773683914914727, 0.007143435534089804, 0.006807677913457155, 0.042997147887945175, -0.030297454446554184, -0.012982083484530449, 0.0387636236846447, 0.003670714097097516, -0.012027343735098839, 0.052243269979953766, -0.02278829924762249, -0.04424234479665756, 0.12167100608348846, -0.007491157855838537, -0.039004236459732056, 0.004560436587780714, -0.021969739347696304, -0.0013633213238790631, 0.03897269442677498, -0.002656731754541397, -0.05009569227695465, 0.009856912307441235, 0.0017092969501391053, 0.08475092798471451, -0.008074507117271423, -0.03916776180267334, -0.00719350716099143, -0.022542117163538933, -0.01941603794693947, -0.05102981626987457, 0.043479569256305695, 0.06361149996519089, -0.11969947069883347, -0.020190710201859474, -0.004500977694988251, 0.037823308259248734, -0.07473774999380112, -0.022120632231235504, 0.035750165581703186, -0.026067880913615227, -0.014564676210284233, 0.06974075734615326, -0.006890423595905304, -0.010312274098396301, 0.012241687625646591, 0.03623667359352112, 0.03085850551724434, 0.018399769440293312, 0.0192373376339674, -0.03520704805850983, -0.0036133441608399153, -0.04433730989694595, -0.06783172488212585, -0.039393048733472824, 0.006279366090893745, -0.0458737313747406, -0.003538385732099414, -0.03471112251281738, -0.021843675523996353, -0.07620108872652054, 0.09972257167100906, -0.009888820350170135, -0.05517195165157318, 0.004056751262396574, -0.010875147767364979, -0.030650923028588295, -0.020525265485048294, -0.022480003535747528, 0.05064280331134796, -0.019998978823423386, 0.00026144037838093936, -0.06234915181994438, 0.04194217547774315, 0.04070325568318367, -0.0413845032453537, 0.0583537258207798, 0.06095762923359871, -0.06260707229375839, -0.009008620865643024, 0.035359807312488556, 0.021037312224507332, 0.004496150650084019, -0.0018475028919056058, -0.020838508382439613, 0.03346724063158035, -0.004227035213261843, 0.00403208564966917, -0.019707340747117996, 0.000643261824734509, -0.0061350720934569836, -0.34278544783592224, -0.043061498552560806, -0.015080510638654232, -0.015306999906897545, 0.0288320891559124, -0.05507957190275192, 0.02437785640358925, -0.02793237380683422, -0.009614472277462482, -0.023156434297561646, 0.04688681289553642, -0.005110281519591808, -0.005106748081743717, -0.09556123614311218, 0.0013026304077357054, -0.0034727093297988176, -0.0015964270569384098, -0.03741605207324028, -0.03466978296637535, -0.010512549430131912, 0.01438035350292921, 0.006340934894979, -0.009464392438530922, -0.05989687517285347, -0.01664435863494873, -0.036346789449453354, 0.09486138075590134, -0.028961388394236565, 0.13728179037570953, -0.03550022095441818, 0.03139466419816017, -0.013086484745144844, 0.03295428305864334, -0.09297500550746918, 0.03846510499715805, -0.018250396475195885, 0.007366132456809282, -0.015764132142066956, 0.050079766660928726, -0.0332767590880394, -0.022723281756043434, 0.00669113639742136, -0.07371073961257935, -0.06576759368181229, -0.05012834817171097, -0.00641592824831605, -0.04146508127450943, -0.06562765687704086, -0.0244634710252285, 0.04338349029421806, -0.004204491153359413, -0.007000083569437265, 0.0021402512211352587, -0.0006869735079817474, -0.036487143486738205, -0.0044043478555977345, -0.06942085176706314, -0.01010118518024683, 0.01195968221873045, -0.016204429790377617, 0.012970144860446453, 0.0855318084359169, 0.02268807776272297, -0.07817938178777695, -0.0031674057245254517, 0.03188377618789673, 0.025969982147216797, -0.029191136360168457, 0.06688307225704193, -0.01939868927001953, -0.024312524124979973, 0.07460403442382812, 0.0032614513766020536, -0.013542337343096733, 0.032730985432863235, 0.0387810543179512, -0.02940323017537594, 0.0091816745698452, -0.003116165054962039, -0.009298020042479038, 0.027841554954648018, -0.017644517123699188, 0.04646257683634758, -0.022392982617020607, 0.004229063633829355, 0.02953195944428444, 0.00672710919752717, -0.05167780816555023, 0.04525568708777428, 0.03468974679708481, -0.019106116145849228, -0.0019382762257009745, -0.007151946425437927, -0.06504415720701218, 0.08665677160024643, -0.008098826743662357, -0.24930836260318756, 0.025100821629166603, 0.0533888079226017, 0.055486176162958145, -0.007442873436957598, 0.06029629707336426, 0.041102293878793716, -0.05671404302120209, 0.014036835171282291, 0.004318857565522194, 0.02150280401110649, 0.03275280445814133, 0.00012782085104845464, 0.011852074414491653, 0.05219564959406853, 0.009113254956901073, 0.02819215878844261, 0.011280135251581669, 0.05383682996034622, -0.005977372173219919, -0.007457854691892862, 0.014333231374621391, 0.15813952684402466, 0.014429683797061443, 0.04772369936108589, 0.03410637006163597, -0.01391938328742981, -0.003328432561829686, 0.08872926235198975, 0.0125741520896554, -0.03530323877930641, 0.008592896163463593, 0.044053398072719574, -0.002526393625885248, 0.0185781829059124, -0.0807843878865242, -0.045644909143447876, 0.04061305895447731, 0.007486170623451471, -0.012603679671883583, -0.012222487479448318, -0.013465040363371372, -0.023078322410583496, 0.011083154939115047, 0.08789408206939697, 0.02704325132071972, -0.004632015246897936, -0.041582029312849045, -0.03826538845896721, -0.0034920601174235344, -0.04948119446635246, -0.03931847959756851, 0.0070735919289290905, -0.016322951763868332, -0.005835683085024357, 0.07369942963123322, -0.019825587049126625, -0.014246826060116291, -0.012375406920909882, 0.0074744755402207375, 0.009549467824399471, -0.03363575041294098, 0.12185756117105484, 0.0069868662394583225, 0.02536088041961193 ]
[ -0.006949049886316061, 0.025735950097441673, -0.00549693638458848, 0.013257231563329697, 0.0018931301310658455, 0.0019570691511034966, 0.007739278953522444, 0.004521756898611784, 0.0008059914107434452, -0.007623427081853151, 0.039196278899908066, 0.010281547904014587, 0.01791108213365078, -0.01894145831465721, 0.006870378740131855, 0.020845402032136917, 0.019546562805771828, 0.0158540066331625, 0.014119078405201435, 0.03488638997077942, -0.04600319266319275, 0.0030784031841903925, -0.0028873381670564413, -0.00530543876811862, -0.027541089802980423, 0.02697666734457016, -0.0133000947535038, -0.0014763022772967815, 0.010240696370601654, -0.14693041145801544, -0.028245603665709496, 0.0002990680222865194, -0.004389167297631502, -0.0177653506398201, 0.010351263917982578, -0.006338680163025856, 0.005957608576864004, 0.014706616289913654, -0.0050517194904387, -0.009265311062335968, -0.005783718079328537, -0.020014716312289238, 0.018793979659676552, 0.0181035865098238, 0.015546190552413464, -0.020574085414409637, -0.007347120437771082, -0.04271601140499115, 0.007522608619183302, -0.02520618587732315, -0.021512508392333984, 0.008547402918338776, 0.013374736532568932, -0.013071062043309212, 0.02896052785217762, -0.02178466133773327, -0.02127460017800331, -0.004381624516099691, 0.00987253524363041, -0.023133888840675354, 0.010146444663405418, 0.022873464971780777, -0.05513019114732742, -0.03078320436179638, -0.030474606901407242, 0.0033964498434215784, -0.001056837965734303, -0.007044820114970207, -0.023412058129906654, -0.0253266803920269, -0.06129270792007446, 0.021282322704792023, -0.018994737416505814, -0.014109546318650246, -0.007077008485794067, -0.006505248136818409, 0.014792337082326412, 0.001451129443012178, 0.01079767756164074, -0.03402494639158249, -0.027393870055675507, 0.0013787883799523115, 0.025247888639569283, 0.0007648360915482044, 0.0015624063089489937, -0.018215535208582878, -0.0016522743972018361, 0.016293805092573166, 0.03380342945456505, 0.02925713174045086, -0.0279739610850811, 0.030375296249985695, -0.016785789281129837, 0.0009023179300129414, -0.09970682859420776, -0.0012483568862080574, -0.010832753032445908, -0.0047943792305886745, 0.015115362592041492, 0.8632450699806213, 0.03392419219017029, 0.022055229172110558, 0.02574285678565502, 0.010839815251529217, -0.01839134655892849, 0.015826141461730003, 0.038870345801115036, -0.004254588391631842, 0.0038921309169381857, -0.057655710726976395, 0.009134078398346901, 0.04160316288471222, 0.026283303275704384, -0.018814202398061752, 0.01280053798109293, 0.027445878833532333, -0.008730363100767136, 0.015698298811912537, -0.010412066243588924, 0.027745092287659645, 0.01872101239860058, -0.017201511189341545, 0.016646020114421844, 0.011768453754484653, 0.018664203584194183, -0.1844322681427002, 0.03800997510552406, -6.922601577375626e-33, 0.038147199898958206, -0.009860608726739883, 0.013073805719614029, 0.016609253361821175, 0.05440573766827583, 0.010126793757081032, 0.012336869724094868, -0.012938045896589756, 0.0025095457676798105, -0.0414249561727047, 0.0031066560186445713, -0.014452952891588211, -0.01152956672012806, -0.035833608359098434, 0.04528499394655228, -0.036894746124744415, -0.0052804723381996155, 0.057424332946538925, -0.00836615264415741, -0.02923179790377617, 0.0017996733076870441, 0.04766654968261719, 0.004413817543536425, -0.01627560518682003, 0.006275280378758907, 0.045748185366392136, 0.014851774089038372, 0.0203256756067276, -0.008389169350266457, -0.036548081785440445, -0.019904309883713722, 0.04617690667510033, -0.006190256215631962, -0.004065766930580139, -0.02341499924659729, -0.016554590314626694, -0.01756375841796398, -0.026941142976284027, -0.02522798255085945, -0.04452277347445488, -0.036535512655973434, 0.004506899043917656, -0.06383397430181503, 0.012516587972640991, -0.032507479190826416, -0.022411953657865524, 0.0197566170245409, 0.05619848147034645, 0.010753845795989037, 0.02701536938548088, -0.005164779257029295, 0.018872858956456184, -0.016237422823905945, -0.009072809480130672, -0.027534447610378265, 0.02229074202477932, 0.005576986353844404, 0.010717779397964478, -0.005035185255110264, 0.02999037504196167, -0.006311736069619656, -0.009961583651602268, -0.018379289656877518, 0.02677299454808235, 0.008890818804502487, 0.02145826444029808, -0.013078990392386913, -0.015091142617166042, 0.01639936864376068, -0.004547981545329094, -0.0642566904425621, 0.004848066251724958, -0.01721554808318615, -0.00718035688623786, 0.030510189011693, -0.007085406221449375, 0.005420094821602106, 0.010654065757989883, 0.0024496777914464474, 0.04516594111919403, 0.007399160880595446, 0.017635216936469078, -0.016793103888630867, -0.028229091316461563, -0.005591270048171282, -0.006621892098337412, -0.005225067492574453, 0.028757980093359947, -0.019679805263876915, 0.009141643531620502, 0.044231731444597244, -0.01124099362641573, 0.028473898768424988, -0.023568114265799522, 0.012541299685835838, 6.952383461437677e-33, -0.03938376158475876, -0.00558102410286665, -0.01287626288831234, -0.004355281125754118, -0.0019768751226365566, -0.004404446110129356, 0.02183588221669197, 0.0004663917061407119, -0.04590786248445511, 0.016367943957448006, -0.024356858804821968, -0.023188618943095207, -0.03135136514902115, 0.02347671426832676, 0.024263612926006317, -0.0035781385377049446, 0.0007775539415888488, 0.011697997339069843, 0.00650429492816329, 0.01580103673040867, 0.04239609092473984, 0.015910372138023376, -0.01466692890971899, 0.012765972875058651, -0.007254559081047773, 0.06132332980632782, -0.015338039956986904, 0.01731349155306816, -0.007311922963708639, -0.0049645500257611275, -0.0005573004600591958, 0.0003302545810583979, -0.010253549553453922, 0.020694376900792122, -0.009679976850748062, 0.011018194258213043, -0.019231269136071205, 0.012631515972316265, -0.016415078192949295, 0.024394266307353973, -0.019576216116547585, -0.028652889654040337, -0.0014374811435118318, 0.004902242217212915, 0.00007342245226027444, 0.0051984344609081745, -0.006654044613242149, -0.01997346244752407, -0.02054045908153057, 0.03317919373512268, 0.007782862521708012, 0.019718710333108902, 0.015270057134330273, -0.01279078982770443, -0.013235487043857574, -0.024617912247776985, -0.022532019764184952, -0.007854621857404709, -0.0009058864088729024, 0.015608451329171658, -0.0013043117942288518, 0.016791462898254395, -0.010976660065352917, 0.042678508907556534, -0.0140315480530262, 0.0009325095452368259, -0.0171867236495018, -0.00911373645067215, -0.010724075138568878, -0.0077860308811068535, -0.010735598392784595, -0.005530700087547302, 0.003282915335148573, 0.03311419486999512, 0.02113785408437252, -0.04854220896959305, -0.002707794075831771, -0.013351700268685818, 0.000025924411602318287, 0.02645638771355152, -0.000740240968298167, -0.000024971541279228404, 0.023355964571237564, -0.011092395521700382, -0.03933204710483551, 0.02622951567173004, -0.0074582709930837154, 0.008133292198181152, 0.025633318349719048, -0.001828903565183282, 0.0008100621635094285, -0.008001885376870632, 0.017536088824272156, 0.019684158265590668, -0.00035222290898673236, -1.2748954780761323e-8, -0.0435689277946949, -0.0016628868179395795, -0.01260942779481411, 0.03067411296069622, 0.01511700451374054, 0.015155445784330368, -0.036948062479496, 0.003969104029238224, -0.04170698672533035, 0.0007749824435450137, 0.06939329952001572, -0.003007410792633891, 0.020517908036708832, -0.013125340454280376, 0.021413573995232582, -0.06149658188223839, 0.009067283011972904, -0.023033253848552704, 0.03124016523361206, -0.01544325053691864, 0.03731968626379967, 0.036709051579236984, 0.0016363272443413734, 0.011812138371169567, 0.02016269415616989, 0.008685384877026081, 0.02179653011262417, -0.04459316283464432, 0.0003662464441731572, -0.0011573880910873413, 0.01348206214606762, -0.013517281040549278, -0.04308480769395828, 0.0292478296905756, -0.02029780112206936, -0.018772423267364502, -0.0038766441866755486, 0.01212663110345602, 0.03228934109210968, -0.007035449612885714, -0.012743419036269188, 0.004990756046026945, -0.013897217810153961, -0.008886369876563549, -0.008643174543976784, 0.012067287229001522, -0.03250988572835922, -0.026812907308340073, 0.010069604031741619, -0.05542626231908798, 0.012748719193041325, 0.0002797414781525731, 0.0212656632065773, 0.02692348323762417, 0.009477021172642708, 0.009235117584466934, 0.008614625781774521, 0.0062051331624388695, -0.009012551046907902, 0.006339493207633495, -0.0038848223630338907, 0.006559974513947964, -0.026684939861297607, -0.03280376270413399 ]
coding-dojo-17-refactoring-cruise-control-net
https://markhneedham.com/blog/2009/06/12/coding-dojo-17-refactoring-cruise-control-net
false
2009-06-14 00:37:01
F#: Overlapping fields in record types
[ "f", "records" ]
[ "fsharp" ]
A problem which has confused me for a while is how to create instances of record types whose fields overlap with another record defined further down in an F# file. The most recently defined record seems to take precedence even if it has more fields than a record defined earlier and you don't specify all of those fields in your record creation attempt. For example, if I have the following two record types: [source,ocaml] ---- type Mark = { Value : string } type SpecificMark = { Value: string; AnotherValue : int } ---- I thought it would be possible to create an instance of 'Mark' by doing this: [source,ocaml] ---- let mark = { Value = "mark" } ---- But what I actually got is the following compilation error: [source,text] ---- No assignment given for field 'AnotherValue' ---- It turns out that you need to be more explicit about the fact that you want to create the 'Mark' record type. Using the pre F# 1.9.16 syntax we would use the following http://www.markhneedham.com/blog/2009/05/19/f-object-expressions/[object expression]: [source,ocaml] ---- let mark = { new Mark with Value = "mark" } ---- But versions after that indicate that this syntax is deprecated and we need to do something more like this: [source,ocaml] ---- let mark = { new Mark with member self.Value = "mark" } ---- Which leads to the following error: [source,text] ---- error FS0191: Only simple bindings of the form 'id = expr' can be used in construction expressions ---- This has http://cs.hubfs.net/forums/thread/10412.aspx[also been mentioned on the hubfs forums] although there is no suggestion as for why this syntax would be invalid - it seems like it should work to me. Luckily there are a couple of other ways to get an instance of the 'Mark' type: [source,ocaml] ---- let (m:Mark) = { Value = "mark" } ---- [source,ocaml] ---- let mark = {Value = "mark" } : Mark ---- Both of which require less typing anyway!
null
null
[ -0.0023659823928028345, 0.01443371083587408, -0.03969072550535202, 0.023264216259121895, 0.06817270815372467, 0.009826135821640491, 0.0053715878166258335, 0.02027473784983158, 0.008137720637023449, -0.02794952504336834, -0.005131170153617859, 0.0015406510792672634, -0.10042023658752441, 0.029491087421774864, 0.014057670719921589, 0.06261928379535675, 0.06639548391103745, -0.021650508046150208, 0.011993641965091228, -0.015776371583342552, 0.017002813518047333, 0.06543788313865662, -0.013303820043802261, 0.008696841076016426, 0.03883376345038414, 0.03133981302380562, -0.014766179025173187, -0.02240242250263691, -0.04790739715099335, 0.022000627592206, 0.029681585729122162, 0.010597143322229385, -0.0069297612644732, -0.02394409291446209, 0.008722404949367046, -0.0029990412294864655, 0.026787977665662766, -0.002659508492797613, -0.023978807032108307, 0.02376178279519081, -0.08333640545606613, 0.009602278470993042, 0.01137157715857029, -0.0012654813472181559, -0.07305586338043213, 0.037988778203725815, -0.038925036787986755, 0.02155846543610096, -0.039272427558898926, 0.022631097584962845, -0.07165993005037308, 0.015419751405715942, -0.006460960488766432, -0.003273298032581806, 0.010761224664747715, 0.0435522235929966, 0.005962019320577383, -0.05307615175843239, 0.04781040921807289, -0.03165651857852936, 0.004879414569586515, 0.009508025832474232, 0.01500749122351408, 0.033282190561294556, 0.04671349748969078, 0.008801762014627457, -0.02895723469555378, 0.03566380590200424, -0.08174178749322891, -0.010346422903239727, -0.014278938062489033, -0.0005511159542948008, -0.02175196260213852, -0.013922293670475483, 0.02055673860013485, -0.03051435574889183, -0.006426727399230003, 0.04350963979959488, 0.04926268756389618, 0.056876346468925476, -0.0003736061044037342, 0.011045883409678936, 0.03838222473859787, -0.0119661595672369, 0.04169265180826187, -0.011713162064552307, -0.01896936632692814, 0.01056238915771246, -0.03624027222394943, 0.046695537865161896, 0.01739259995520115, -0.057847119867801666, 0.00034894762211479247, 0.00955783948302269, 0.012798329815268517, -0.006462333723902702, -0.005999551620334387, -0.023077817633748055, -0.013111636973917484, -0.01978195644915104, -0.03945847228169441, -0.016246851533651352, 0.022836606949567795, 0.04094759374856949, -0.05511067062616348, -0.012179195880889893, -0.03584091365337372, -0.012043763883411884, 0.04628562182188034, 0.008683811873197556, -0.0413227453827858, -0.014714183285832405, -0.02767433598637581, 0.015174377709627151, -0.08548088371753693, 0.025288095697760582, 0.02902568131685257, 0.0052894167602062225, 0.0005859676748514175, 0.044107694178819656, 0.03570833057165146, -0.0011361269280314445, -0.0223208237439394, 0.07384897768497467, -0.007484721951186657, 0.023458361625671387, -0.030264565721154213, 0.08909380435943604, -0.021323736757040024, -0.08711986988782883, -0.05592937767505646, 0.0758100226521492, -0.07113607972860336, 0.030580516904592514, 0.02451770380139351, 0.010201684199273586, -0.03232721984386444, -0.014667900279164314, 0.06275204569101334, 0.049405671656131744, 0.0034962778445333242, -0.05440174788236618, 0.0015611015260219574, -0.03621001914143562, 0.0011838359059765935, 0.030605776235461235, -0.03132401779294014, -0.032935917377471924, -0.022304175421595573, 0.043894682079553604, 0.05211067572236061, 0.050630465149879456, 0.07128391414880753, -0.012137931771576405, 0.008816477842628956, 0.09490784257650375, 0.017919840291142464, 0.011358111165463924, -0.03142504766583443, -0.00992321316152811, 0.03157214820384979, 0.03358497470617294, 0.0025908462703227997, 0.06626070290803909, 0.0447113960981369, -0.0004225226875860244, 0.010194184258580208, 0.024820510298013687, -0.01824387162923813, -0.019019614905118942, -0.0565669946372509, -0.0008260663016699255, 0.06249840185046196, -0.0356186106801033, 0.00934808049350977, 0.061508163809776306, 0.07432013005018234, 0.004978230223059654, 0.05590182542800903, 0.003940216731280088, -0.07864397019147873, 0.01903538405895233, -0.016227619722485542, 0.014765669591724873, -0.003162796376273036, 0.017103765159845352, 0.054350581020116806, 0.03485100343823433, 0.020543163642287254, 0.019452502951025963, -0.0496644489467144, -0.07665327936410904, 0.002078923163935542, -0.022923026233911514, 0.07414909452199936, -0.05461343005299568, -0.006111303344368935, 0.07326046377420425, 0.01247645914554596, 0.07905684411525726, 0.030432337895035744, -0.018568553030490875, 0.01200052723288536, -0.00634187925606966, -0.02625245414674282, 0.07434988766908646, -0.0009055479313246906, 0.005462213419377804, -0.03677389398217201, 0.022129371762275696, -0.008614501915872097, 0.007050030864775181, 0.05164709687232971, 0.017992407083511353, 0.017875295132398605, 0.03856982663273811, -0.005200413055717945, -0.06408873200416565, 0.00441321823745966, -0.07260648161172867, 0.023216821253299713, 0.013913494534790516, -0.010503348894417286, -0.01409509964287281, -0.0438108816742897, 0.1211925819516182, 0.03933849185705185, -0.026967233046889305, -0.03191344812512398, -0.007692350074648857, 0.01907861977815628, -0.013455820269882679, 0.007144774775952101, 0.016229752451181412, 0.0323745533823967, -0.004581117071211338, -0.0003395083185750991, 0.04250401258468628, 0.031681980937719345, -0.02553858421742916, 0.013203800655901432, 0.06071845814585686, -0.024730147793889046, 0.05583471804857254, 0.004048640374094248, -0.043997421860694885, 0.021384013816714287, -0.0047130160965025425, -0.051563553512096405, 0.022222278639674187, 0.019673259928822517, -0.020498566329479218, 0.049429167062044144, 0.0002571534423623234, -0.05297476053237915, -0.010406030341982841, -0.05404157191514969, 0.027129678055644035, 0.05031184107065201, 0.029171589761972427, -0.025445185601711273, 0.03020777925848961, -0.01272145751863718, -0.017523745074868202, -0.020858870819211006, -0.05798415094614029, -0.030145717784762383, 0.029355783015489578, 0.04341605678200722, 0.027579210698604584, -0.006829260382801294, 0.010656177997589111, 0.023052705451846123, 0.027061045169830322, -0.008502923883497715, 0.03512215241789818, 0.02399638295173645, -0.006706219632178545, -0.034750908613204956, -0.036654964089393616, -0.04638328403234482, 0.05468392372131348, -0.0286484993994236, -0.040334608405828476, -0.012123307213187218, -0.050164852291345596, 0.03041694685816765, -0.10128963738679886, -0.050025325268507004, -0.007630261592566967, -0.013101584278047085, 0.01968752034008503, -0.02828698232769966, 0.001788201043382287, 0.06616589426994324, 0.0071877785958349705, 0.02049657702445984, 0.004752614069730043, 0.0023741628974676132, 0.02517714910209179, -0.012604319490492344, 0.015899591147899628, 0.0488431341946125, -0.026721322908997536, 0.002309742383658886, -0.03611580654978752, -0.012970239855349064, -0.006120579782873392, -0.2585950195789337, 0.029820984229445457, -0.049508433789014816, -0.04416436702013016, 0.005570691078901291, -0.03693040460348129, 0.03305436298251152, -0.057184476405382156, -0.05115363001823425, 0.02425275929272175, -0.04199986159801483, -0.05409849062561989, -0.000680090393871069, 0.06002693623304367, 0.010629161261022091, 0.03215156868100166, 0.009742025285959244, -0.06299544870853424, -0.009690996259450912, 0.05454309284687042, -0.030307650566101074, -0.04973621666431427, -0.009091314859688282, 0.03511897474527359, 0.034646835178136826, 0.0399974025785923, -0.09771072119474411, 0.011491159908473492, -0.03637107461690903, -0.010282519273459911, -0.00855197198688984, 0.003973121289163828, 0.013120082207024097, -0.042503323405981064, -0.03431804105639458, -0.05381881818175316, 0.019217636436223984, 0.029295898973941803, 0.017605671659111977, -0.014961224049329758, -0.02473307028412819, -0.038505859673023224, -0.012697935104370117, -0.024046290665864944, 0.05399997532367706, -0.024520793929696083, -0.055288780480623245, -0.019236039370298386, -0.03642149269580841, 0.06815323233604431, -0.024207703769207, -0.03525085747241974, -0.00017050163296516985, 0.04717393219470978, 0.025313783437013626, -0.013098349794745445, 0.03643717244267464, -0.020572297275066376, -0.0379650816321373, -0.015247870236635208, -0.011566937901079655, -0.06981771439313889, -0.028053557500243187, -0.031356897205114365, 0.01847117580473423, -0.05795731768012047, -0.07803744077682495, -0.008701528422534466, 0.05361681059002876, 0.011887876316905022, 0.01706799305975437, -0.01145503856241703, -0.009094078093767166, -0.10732404887676239, -0.030275901779532433, -0.03537333756685257, -0.03155720978975296, -0.021543921902775764, 0.007521450985223055, 0.07607204467058182, -0.01187871117144823, -0.021584302186965942, 0.017159244045615196, 0.03128885105252266, 0.019670920446515083, 0.014802982099354267, 0.031756021082401276, -0.00408772611990571, -0.04479286074638367, -0.017057323828339577, 0.05768930912017822, 0.006632125936448574, 0.029702339321374893, -0.03891678899526596, 0.018585894256830215, 0.015083879232406616, 0.029682153835892677, 0.013120598159730434, 0.017101727426052094, 0.013362579979002476, 0.045114144682884216, -0.0451403483748436, 0.01131706777960062, -0.06541147083044052, -0.047740936279296875, 0.00760843139141798, -0.054198816418647766, 0.040417514741420746, 0.007721440866589546, -0.002053789794445038, -0.01881868951022625, -0.04378783330321312, 0.02943747490644455, -0.061446234583854675, -0.036059774458408356, -0.01315016858279705, 0.00022979509958531708, 0.013825715519487858, 0.03602461889386177, -0.030804431065917015, -0.01909485086798668, 0.034761905670166016, 0.004093227442353964, -0.010794629342854023, -0.0753985345363617, -0.030329367145895958, -0.009721944108605385, -0.0020959062967449427, -0.030512453988194466, 0.05099477618932724, -0.02232176996767521, 0.027546076104044914, 0.006383344065397978, -0.0580163411796093, 0.03041224740445614, 0.04037756472826004, 0.006657246500253677, -0.029718156903982162, -0.020975694060325623, -0.010743062943220139, 0.0035591660998761654, -0.011574716307222843, 0.04195031896233559, 0.04381708428263664, 0.0573657862842083, 0.01002140250056982, 0.014876040630042553, 0.01698661968111992, 0.005563783459365368, 0.0006508347578346729, 0.023993277922272682, -0.044282473623752594, 0.015406854450702667, -0.029229752719402313, -0.0007770746015012264, 0.005171974189579487, 0.03879986330866814, -0.05027170106768608, -0.008116506040096283, -0.054803114384412766, 0.03144748508930206, -0.02903367578983307, -0.001403051894158125, -0.051497943699359894, -0.007454547565430403, 0.04779142141342163, -0.033044274896383286, 0.04009098932147026, -0.016048481687903404, 0.022407367825508118, -0.022720670327544212, 0.0029414326418191195, -0.04685726761817932, 0.012020023539662361, -0.01123744435608387, 0.02165025658905506, -0.006687323562800884, 0.04258013889193535, 0.029922710731625557, 0.01535278744995594, -0.02820577099919319, 0.0069038961082696915, 0.018504546955227852, 0.016163993626832962, 0.033013176172971725, -0.01596994698047638, 0.008098572492599487, -0.01595880463719368, -0.007927355356514454, 0.000773876381572336, -0.013471035286784172, -0.02812667191028595, -0.024457897990942, 0.04175896197557449, -0.019758019596338272, -0.051148541271686554, 0.007843390107154846, 0.026957595720887184, 0.01461908221244812, -0.01721806637942791, 0.014402859844267368, -0.0075796521268785, 0.0037405246403068304, -0.013866469264030457, 0.06873227655887604, -0.03954259678721428, 0.02107863873243332, -0.016694188117980957, -0.009344273246824741, 0.03984036296606064, 0.013405443169176579, -0.044182468205690384, -0.011471842415630817, -0.0006058759172447026, 0.005392844323068857, -0.03167640045285225, -0.009200291708111763, -0.002667822875082493, 0.0014148959890007973, -0.013183984905481339, 0.010099410079419613, -0.016435783356428146, 0.025257058441638947, -0.007088596932590008, -0.04018525034189224, 0.027088599279522896, -0.07500194013118744, 0.025975065305829048, 0.05462188646197319, 0.003665825817734003, 0.016458453610539436, -0.041397079825401306, 0.06599097698926926, 0.02105804905295372, 0.0037143647205084562, 0.00344408443197608, -0.08446211367845535, 0.031421758234500885, -0.029046710580587387, 0.03170164301991463, 0.029173683375120163, -0.04571263864636421, -0.0034957865718752146, -0.018193760886788368, -0.03142520785331726, 0.006928892806172371, 0.01576230488717556, -0.04001962020993233, 0.0031888040248304605, 0.051826249808073044, -0.013161354698240757, 0.037438713014125824, -0.026144711300730705, -0.019508928060531616, 0.05648895353078842, -0.03334870561957359, -0.019573336467146873, 0.0020392274018377066, -0.0782032310962677, 0.046832021325826645, 0.022216688841581345, -0.002167776692658663, -0.04856891930103302, 0.04785903915762901, 0.06580369919538498, 0.021213596686720848, 0.017968758940696716, -0.02164400927722454, 0.023618489503860474, -0.03421754390001297, -0.0284368135035038, -0.07805698364973068, 0.03257681429386139, 0.022848116233944893, 0.02428974211215973, -0.015237300656735897, -0.027043409645557404, -0.010924779810011387, 0.024811413139104843, -0.0426279678940773, -0.03691919147968292, 0.043006815016269684, 0.016709519550204277, 0.029365673661231995, -0.00541023351252079, -0.02307259663939476, 0.010054298676550388, 0.03327983617782593, -0.015435914508998394, -0.0427204854786396, -0.027123089879751205, 0.03650154545903206, -0.01181711908429861, 0.021385572850704193, -0.021457040682435036, -0.020353885367512703, 0.02994617447257042, 0.03497409448027611, -0.00731416791677475, 0.06662019342184067, -0.04112321138381958, 0.019365932792425156, 0.018109191209077835, -0.04434620961546898, -0.012422587722539902, 0.000013566240340878721, -0.026899727061390877, -0.06073553487658501, 0.019437821581959724, 0.005346118938177824, -0.020115111023187637, -0.04852718487381935, 0.058474160730838776, -0.01729056052863598, -0.012748153880238533, -0.04384055361151695, 0.0028202757239341736, -0.05739034339785576, -0.018317509442567825, -0.014303335919976234, 0.02808835357427597, -0.06612283736467361, 0.055445872247219086, 0.01253011729568243, 0.0092026237398386, 0.06105237081646919, -0.008971181698143482, -0.00832951720803976, -0.013246748596429825, 0.08498216420412064, 0.06948283314704895, 0.03984195739030838, 0.0005193956894800067, 0.06977371126413345, -0.020833363756537437, -0.056703586131334305, 0.0007136294152587652, -0.022217463701963425, 0.028310976922512054, 0.010526313446462154, 0.023680901154875755, 0.08436834812164307, 0.021857084706425667, 0.05628905072808266, -0.028080657124519348, -0.015209900215268135, -0.012247071601450443, 0.007863336242735386, 0.027076702564954758, 0.047791626304388046, -0.0013599259546026587, -0.006070805713534355, 0.03254390507936478, -0.0406322181224823, 0.024820592254400253, 0.0005335223977454007, -0.02247084118425846, -0.012019945308566093, -0.002319772494956851, 0.013747830875217915, -0.01525780837982893, 0.054257676005363464, 0.0658525675535202, -0.03881914168596268, -0.015052657574415207, 0.007707715034484863, 0.015851089730858803, 0.0070834411308169365, -0.022611211985349655, 0.004053189419209957, -0.016751570627093315, 0.014940015971660614, -0.01831083744764328, 0.000012368253010208718, -0.052941806614398956, -0.033281970769166946, 0.04290357977151871, -0.016805022954940796, 0.020977452397346497, 0.03450380638241768, -0.024527547881007195, -0.011850622482597828, -0.04285414144396782, -0.04109111428260803, -0.020308518782258034, -0.0748966708779335, 0.030712757259607315, 0.007259034086018801, -0.018738646060228348, -0.0015364761929959059, -0.04085571691393852, -0.01961410604417324, 0.011979685164988041, 0.04352722316980362, -0.02153390645980835, -0.043412961065769196, 0.009241756051778793, 0.0034111333079636097, 0.010519350878894329, 0.0312897190451622, 0.032582927495241165, -0.04102134704589844, 0.01760709285736084, -0.01991291157901287, -0.026768969371914864, 0.01824140176177025, -0.013359187170863152, -0.003663631621748209, -0.08515002578496933, 0.004913761280477047, 0.020429547876119614, -0.0014834331814199686, -0.08755051344633102, -0.0005476914229802787, -0.00041924393735826015, -0.010811054147779942, 0.055333543568849564, -0.020359952002763748, -0.02547357603907585, -0.027904924005270004, 0.0014122197171673179, 0.02252555638551712, 0.010448213666677475, 0.02924099750816822, -0.010515864007174969, 0.05947377532720566, 0.010629923082888126, -0.04016943648457527, -0.009580735117197037, -0.0060638561844825745, -0.01287107728421688, 0.025981971994042397, 0.007315303198993206, -0.028200754895806313, -0.024899685755372047, -0.029786961153149605, -0.04169319197535515, 0.01869814284145832, -0.02624572068452835, -0.021368075162172318, -0.005892314948141575, 0.05323760583996773, -0.06740511208772659, 0.058968689292669296, -0.021490173414349556, 0.03325197473168373, -0.02139044739305973, -0.04185132682323456, -0.030915580689907074, 0.014328114688396454, 0.039423149079084396, -0.010856485925614834, 0.05103772133588791, -0.05193321406841278, -0.005802540108561516, -0.0258440263569355, -0.006258625537157059, 0.03468162193894386, -0.02640644833445549, 0.01735907793045044 ]
[ -0.10033831745386124, -0.014692106284201145, -0.039028555154800415, -0.03382556885480881, 0.024410713464021683, -0.03346455842256546, -0.003941284026950598, -0.02213709056377411, 0.02923707105219364, -0.013857979327440262, 0.0031553006265312433, -0.040232714265584946, -0.0049329181201756, -0.01022015605121851, 0.06338854134082794, 0.011113462969660759, -0.048269931226968765, -0.034123387187719345, -0.017550544813275337, 0.02531295455992222, 0.019472138956189156, -0.03715004026889801, -0.060059309005737305, -0.00741282245144248, -0.009271119721233845, 0.05454135686159134, 0.0012929249787703156, -0.05042039975523949, 0.01363328006118536, -0.21760320663452148, -0.01141691580414772, 0.0046516526490449905, 0.0020185380708426237, -0.021178752183914185, -0.0015521462773904204, -0.009147943928837776, 0.007278973702341318, 0.030010849237442017, 0.005705409683287144, 0.07824429869651794, -0.009199502877891064, 0.02859633043408394, -0.044659215956926346, -0.056793343275785446, 0.016078880056738853, 0.01599346473813057, -0.04636646807193756, -0.004605334252119064, -0.020562905818223953, 0.026279669255018234, -0.02931617572903633, 0.007684598211199045, -0.04741789028048515, -0.003365376964211464, -0.0036430542822927237, 0.024795016273856163, 0.023393483832478523, 0.07734476774930954, 0.00840514712035656, 0.01851275935769081, 0.04329248145222664, -0.028665410354733467, -0.12916989624500275, 0.09693406522274017, 0.007357801776379347, 0.0849546566605568, -0.00021319619554560632, -0.042846135795116425, -0.028020918369293213, 0.06898805499076843, 0.001078300061635673, -0.011458774097263813, -0.058057751506567, 0.05592750385403633, 0.004675326403230429, -0.034199342131614685, -0.020404355600476265, 0.02520718239247799, 0.027852926403284073, -0.037035271525382996, -0.07175348699092865, 0.0015914987307041883, 0.010755824856460094, -0.005680738482624292, -0.05774497613310814, 0.007525329478085041, 0.0027177780866622925, -0.0057660061866045, 0.032945819199085236, 0.018040714785456657, 0.03698965907096863, -0.0389522984623909, 0.05367141589522362, 0.025957414880394936, -0.07464084029197693, -0.011370832100510597, -0.017641492187976837, 0.023876966908574104, -0.014860739931464195, 0.4186829626560211, -0.026303712278604507, 0.001938525354489684, 0.030354872345924377, 0.03278370946645737, 0.010334351100027561, 0.030180100351572037, -0.0022812788374722004, -0.054798901081085205, -0.001419471693225205, -0.09466298669576645, -0.021224476397037506, 0.0030275974422693253, 0.0008378876955248415, -0.08091853559017181, 0.0032284166663885117, 0.0053388457745313644, 0.04562251642346382, -0.008398068137466908, -0.0071179429069161415, -0.008363621309399605, 0.025312189012765884, -0.006582397967576981, -0.003086634911596775, 0.053303062915802, 0.002573247067630291, 0.01536850817501545, 0.030766278505325317, 0.05428295582532883, 0.06538998335599899, -0.004837519489228725, 0.029708996415138245, -0.022033171728253365, -0.055221498012542725, -0.042784709483385086, 0.004247401375323534, 0.015209635719656944, 0.01678144372999668, -0.03002863936126232, 0.021016638725996017, 0.022228794172406197, 0.007392316125333309, -0.04877791926264763, 0.00815413799136877, 0.017571186646819115, -0.035311777144670486, 0.12711019814014435, -0.029553977772593498, -0.011063652113080025, -0.042638976126909256, -0.013106059283018112, -0.05176609382033348, 0.022322019562125206, -0.042625170201063156, -0.036036793142557144, 0.020200980827212334, 0.013126282952725887, 0.07005699723958969, -0.014628015458583832, -0.040637776255607605, -0.05199471488595009, -0.013855469413101673, -0.03849918395280838, -0.03798583149909973, 0.06016634404659271, -0.0023022193927317858, -0.10582997649908066, -0.027432845905423164, 0.01265652384608984, 0.013925815932452679, -0.08245737105607986, -0.013581971637904644, -0.021744566038250923, -0.030569594353437424, -0.014929181896150112, 0.051017262041568756, 0.0032847209367901087, -0.02996627241373062, -0.022892486304044724, 0.0349460132420063, 0.008564349263906479, 0.02079353854060173, 0.017210550606250763, -0.061152134090662, -0.0383421964943409, -0.028055718168616295, -0.07293631136417389, -0.037098877131938934, -0.02113906666636467, -0.017066527158021927, -0.003426027251407504, 0.00017343800573144108, -0.0036734677851200104, -0.034666359424591064, 0.06599749624729156, -0.058368973433971405, -0.03835735470056534, 0.02744833566248417, 0.025293048471212387, 0.009873954579234123, -0.024962959811091423, 0.059114180505275726, 0.06277789175510406, 0.013480755500495434, 0.03953699395060539, -0.0528026819229126, 0.006241036579012871, 0.07637764513492584, -0.02806999161839485, 0.03960990905761719, 0.014275511726737022, -0.05972709134221077, -0.002532435581088066, -0.012002082541584969, 0.015237287618219852, 0.013132741674780846, -0.02071770839393139, -0.018373584374785423, 0.02509745955467224, 0.02643205225467682, 0.021901259198784828, -0.06398938596248627, -0.06194305047392845, 0.01229855790734291, -0.3533730208873749, -0.01776687614619732, -0.02735014446079731, -0.01020096056163311, -0.004394714720547199, -0.0747346431016922, 0.01465483009815216, 0.024366343393921852, -0.08182846754789352, 0.02803598903119564, 0.06337390840053558, -0.01964586414396763, -0.01423618569970131, -0.04542636498808861, -0.022144120186567307, 0.04206506162881851, -0.01529807411134243, -0.06766923516988754, 0.02383292280137539, 0.042841702699661255, 0.00519109982997179, 0.02147076278924942, -0.01541981939226389, -0.03465116024017334, 0.030887575820088387, -0.042882487177848816, 0.09815961867570877, -0.003987428266555071, 0.08511470258235931, -0.04716935381293297, 0.06276584416627884, 0.0017957836389541626, -0.010540245100855827, -0.03607768565416336, -0.04278082400560379, -0.009461544454097748, -0.054903049021959305, 0.04323699697852135, 0.038392528891563416, -0.001189123373478651, -0.0011720278998836875, 0.010684422217309475, -0.03478524088859558, -0.028753498569130898, 0.0009606391540728509, -0.021658847108483315, -0.00041721182060427964, -0.04465392604470253, 0.008501366712152958, 0.09851811081171036, 0.020525189116597176, 0.014408036135137081, 0.019553842023015022, 0.05613984540104866, 0.01389233861118555, -0.007598487194627523, -0.07912198454141617, -0.019438479095697403, -0.011133083142340183, -0.004178651608526707, 0.07121989876031876, 0.01928907074034214, 0.04313294216990471, -0.02243737131357193, 0.02058488503098488, 0.02803167887032032, -0.02075149491429329, -0.010760577395558357, 0.031364805996418, -0.03548391908407211, -0.006717250682413578, 0.09227143228054047, -0.026659753173589706, 0.00945446826517582, 0.03667522966861725, 0.0669630914926529, -0.04195748269557953, -0.00832450482994318, 0.010704582557082176, 0.011772959493100643, -0.00030404067365452647, -0.0033037506509572268, 0.03030419908463955, -0.006234828382730484, 0.005945445969700813, 0.06265280395746231, 0.01794455386698246, 0.030784986913204193, 0.06659822911024094, -0.06845280528068542, -0.030017158016562462, -0.026671001687645912, 0.0043435776606202126, -0.04076577350497246, 0.07132524251937866, -0.020688187330961227, -0.26529619097709656, 0.022330785170197487, 0.09469510614871979, 0.06783661246299744, -0.004048059228807688, 0.05441194027662277, 0.027915887534618378, -0.03743923082947731, 0.004881903994828463, 0.0010731873335316777, -0.010722083039581776, 0.017052244395017624, 0.028092848137021065, 0.007541256956756115, 0.006385980639606714, -0.003716887906193733, 0.03394584730267525, -0.029909010976552963, 0.04730226844549179, -0.0029590041376650333, 0.019963635131716728, 0.03190629929304123, 0.16705133020877838, 0.039417099207639694, 0.031178276985883713, -0.012158005498349667, -0.0008904144051484764, 0.030978219583630562, 0.08392471075057983, 0.021989524364471436, 0.03658561408519745, -0.03185950219631195, 0.07940614223480225, 0.030066218227148056, 0.035389047116041183, -0.04682183265686035, -0.0013131347950547934, 0.03569180890917778, 0.00814028363674879, -0.02821427211165428, -0.012054180726408958, -0.0007186845759861171, -0.06809768825769424, 0.03399571031332016, 0.07967288047075272, 0.01866016909480095, -0.02433048188686371, 0.0008407362620346248, -0.029021315276622772, -0.011554882861673832, -0.02574307657778263, -0.001968772616237402, 0.0014748646644875407, -0.012997799552977085, 0.0046681626699864864, 0.037215229123830795, 0.03194909542798996, -0.008218156173825264, -0.008902403526008129, 0.026714999228715897, 0.029723770916461945, -0.010100889950990677, 0.08507085591554642, 0.04970061406493187, 0.03159751743078232 ]
[ 0.02248503267765045, -0.013611339032649994, 0.012675032950937748, 0.043412066996097565, 0.017071276903152466, -0.04048224911093712, 0.02787019871175289, 0.03879181295633316, -0.02856769785284996, -0.019894614815711975, -0.029177537187933922, -0.012554293498396873, -0.025205571204423904, 0.003806844586506486, 0.035076528787612915, 0.011761806905269623, 0.009380767121911049, -0.017323480919003487, 0.0259837806224823, 0.0006110529648140073, -0.01983991265296936, 0.022976508364081383, 0.019857771694660187, 0.017143214121460915, -0.01674024946987629, -0.03099863789975643, -0.061611805111169815, 0.03140947222709656, 0.05426272749900818, -0.11403942853212357, -0.015573504380881786, -0.0427020899951458, 0.0100313201546669, 0.024487055838108063, -0.008628743700683117, -0.03557664528489113, 0.02852846123278141, -0.0015136286383494735, -0.038549602031707764, 0.02006158046424389, -0.018308278173208237, -0.00710090808570385, 0.0047768643125891685, -0.0005115161184221506, 0.047047946602106094, -0.007709007244557142, -0.001616350607946515, -0.011516766622662544, -0.031073488295078278, 0.015773408114910126, -0.04671748727560043, 0.008924988098442554, -0.02792363613843918, -0.007085708901286125, 0.023490512743592262, -0.006795009132474661, -0.012385385110974312, -0.017307033762335777, -0.010226909071207047, -0.005580014083534479, -0.01755865290760994, -0.019807614386081696, -0.00844070129096508, -0.045430272817611694, 0.010181029327213764, -0.004263862036168575, -0.020768459886312485, -0.010226782411336899, 0.012539391405880451, 0.006829404272139072, -0.01795605570077896, 0.022429468110203743, -0.001279757241718471, 0.026922738179564476, 0.017247028648853302, 0.02285485342144966, -0.023074639961123466, 0.023171329870820045, 0.010924017988145351, -0.027532974258065224, -0.021209901198744774, -0.009117594920098782, -0.024522630497813225, 0.011892421171069145, -0.007914218120276928, -0.04737282171845436, 0.006469185929745436, 0.018033696338534355, 0.025662021711468697, 0.0386582687497139, -0.04579337686300278, 0.001061303191818297, -0.0015938496217131615, 0.019975177943706512, -0.09108863770961761, -0.02087586745619774, -0.0035360525362193584, 0.0035738188307732344, 0.0017488265875726938, 0.8185099363327026, -0.01290479488670826, 0.02026156149804592, -0.0022254926152527332, 0.022319981828331947, -0.014017677865922451, 0.01778089813888073, -0.02810320258140564, -0.006339679006487131, -0.038671400398015976, -0.06554665416479111, 0.06004941835999489, 0.03190801665186882, 0.03601843863725662, -0.03172657638788223, 0.04380486533045769, 0.02220262959599495, -0.006736661773175001, -0.012578013353049755, -0.0039206622168421745, 0.0063166008330881596, 0.023937949910759926, -0.058276575058698654, -0.0012341021792963147, 0.042322855442762375, -0.010390108451247215, -0.15616615116596222, 0.03378730267286301, -6.88341133040318e-33, 0.053202882409095764, 0.008531803265213966, 0.018655704334378242, -0.02143750712275505, 0.04199375957250595, 0.010625889524817467, -0.001321704825386405, 0.030458033084869385, -0.034494079649448395, -0.05614401400089264, 0.03724882751703262, -0.0489211343228817, -0.018202031031250954, -0.013285093940794468, 0.044674333184957504, -0.013579301536083221, 0.0038131985347718, 0.01747114397585392, -0.022423235699534416, 0.04585760459303856, 0.042183201760053635, 0.04631774500012398, -0.02140033058822155, 0.04089193791151047, 0.013231520541012287, 0.07982853055000305, 0.012184608727693558, -0.011308077722787857, 0.011530074290931225, -0.048634327948093414, -0.020448818802833557, -0.019685210660099983, 0.03812435641884804, -0.02646932378411293, 0.02187485620379448, -0.02743668667972088, -0.034995242953300476, 0.007338829338550568, 0.015293523669242859, -0.07126376032829285, -0.004483375698328018, 0.012331466190516949, -0.039293915033340454, -0.03330004960298538, -0.027528731152415276, -0.015054281800985336, -0.005190212279558182, 0.07808864116668701, 0.0013619930250570178, -0.011038548313081264, 0.02547476254403591, 0.03576148673892021, -0.018247181549668312, -0.01060435175895691, -0.004695662762969732, 0.0019910894334316254, -0.05285254865884781, -0.024551857262849808, 0.02062102034687996, 0.005064952187240124, 0.013777748681604862, -0.015209686011075974, 0.01041646208614111, 0.037039730697870255, -0.06139470636844635, 0.03711066022515297, 0.03458501398563385, -0.012509863823652267, 0.05738858878612518, 0.03003283031284809, -0.0325419120490551, 0.023197172209620476, -0.040307678282260895, -0.03828411176800728, 0.016213517636060715, -0.012225361540913582, -0.04012566804885864, -0.025827458128333092, -0.0019758762791752815, 0.04300709813833237, -0.05079752951860428, 0.013420329429209232, -0.009426669217646122, -0.0022679101675748825, -0.00041533473995514214, -0.04057047516107559, 0.01671196147799492, -0.011774021200835705, -0.035141974687576294, 0.006753202993422747, 0.02625042386353016, 0.021033242344856262, 0.02289825864136219, -0.02737603150308132, -0.018432991579174995, 7.481854035038868e-33, 0.021475592628121376, -0.00041046837577596307, -0.03269590437412262, 0.0053528123535215855, -0.017532598227262497, -0.042334385216236115, -0.003944067750126123, 0.02457403391599655, -0.005235238466411829, 0.03412368893623352, -0.033770497888326645, -0.023136081174016, -0.02436184696853161, -0.0027540004812180996, 0.03195783868432045, -0.032119058072566986, -0.019529515877366066, 0.014604883268475533, 0.026966243982315063, 0.009273172356188297, 0.018512018024921417, -0.009423529729247093, 0.06022870913147926, 0.045253951102495193, 0.0030503463931381702, 0.0583767332136631, -0.015806587412953377, -0.017383107915520668, -0.03222549334168434, -0.023347916081547737, 0.0025851717218756676, -0.017212508246302605, 0.03630322590470314, -0.07133742421865463, -0.021757567301392555, 0.009928573854267597, 0.02561943233013153, -0.015873949974775314, 0.0017691261600703, 0.008223195560276508, 0.014787353575229645, 0.005993831902742386, -0.011364356614649296, -0.005663330666720867, -0.06354474276304245, 0.032792504876852036, 0.011798354797065258, 0.05347444862127304, 0.014583616517484188, 0.01869570091366768, 0.007457373663783073, -0.013977771624922752, -0.01296977885067463, 0.004492728505283594, -0.016415130347013474, 0.00484682759270072, -0.03395294025540352, -0.0015192284481599927, -0.030660733580589294, 0.02101612649857998, -0.0019344615284353495, 0.008541638031601906, 0.03328722342848778, 0.0027027276810258627, 0.022787263616919518, -0.002783166943117976, -0.002581459004431963, -0.026904741302132607, -0.06593385338783264, 0.007366143632680178, -0.019763801246881485, 0.0028162486851215363, 0.014103066176176071, 0.05547280237078667, 0.0203041173517704, 0.016545414924621582, -0.013039463199675083, 0.003730814903974533, 0.0001723525783745572, 0.011264180764555931, -0.012281406670808792, -0.04391567409038544, 0.039205409586429596, 0.06100796163082123, -0.045536089688539505, 0.02848309837281704, -0.016665436327457428, 0.0235372856259346, -0.007615665905177593, 0.042813580483198166, -0.02572602778673172, -0.021401334553956985, -0.0034333253279328346, 0.006743305362761021, -0.03951875492930412, -1.2690268391679638e-8, -0.06888316571712494, 0.0019850770477205515, -0.05692682042717934, 0.01508669275790453, -0.020786695182323456, -0.011360670439898968, -0.0007964327232912183, 0.019907139241695404, 0.02450263872742653, -0.01629132591187954, 0.022929754108190536, 0.005458588246256113, -0.008396867662668228, -0.02584797330200672, 0.021548781543970108, -0.05642280355095863, 0.018011335283517838, -0.036103229969739914, 0.0033137567806988955, -0.01349253486841917, 0.016284512355923653, 0.01160208135843277, -0.017033254727721214, 0.012608113698661327, 0.005120131652802229, -0.019779298454523087, 0.022764509543776512, -0.04411220923066139, 0.034083057194948196, 0.023127596825361252, 0.03687543049454689, -0.021372634917497635, 0.02577986568212509, 0.028500622138381004, 0.00491673918440938, -0.03980785980820656, 0.014870659448206425, 0.028080103918910027, 0.032279953360557556, 0.01998739317059517, 0.022273296490311623, 0.01971450075507164, 0.028217360377311707, -0.027554204687476158, -0.0002990617067553103, -0.01628148928284645, -0.016957981511950493, 0.019533712416887283, 0.026928912848234177, 0.007629500236362219, 0.01628536358475685, 0.003262876532971859, 0.015609921887516975, 0.03618571162223816, 0.011300960555672646, -0.0013141732197254896, 0.018791010603308678, 0.0024842710699886084, -0.0007340486044995487, -0.007457961328327656, 0.05408640205860138, -0.03389456868171692, 0.0066559165716171265, 0.008812464773654938 ]
f-overlapping-fields-in-record-types
https://markhneedham.com/blog/2009/06/14/f-overlapping-fields-in-record-types
false
2009-06-22 23:39:07
F#: Continuation Passing Style
[ "f", "continuation-passing-style", "continuations" ]
[ "fsharp" ]
I recently came across the idea of continuations while reading http://www.markhneedham.com/blog/2009/05/24/real-world-functional-programming-book-review/[Real World Functional Programming] and Wes Dyer has http://blogs.msdn.com/wesdyer/archive/2007/12/22/continuation-passing-style.aspx[a blog post where he explains continuations in more detail and also talks about the idea of using a continuation passing style in languages] which don't support Call/CC (Call with Current continuation). As I understand it we can achieve a continuation passing style of programming by passing in the bit of code that we went executed next (i.e. the continuation) as an argument to a function. Wes has a series of examples in C# so I thought I'd see what they look like in F#: The first example is a function 'Identity' which originally returns the value it is given before the calling function prints it to the screen. [source,ocaml] ---- let identity value = value printfn "%s" (identity "mark") ---- In CPS the function 'identity' would take in the printfn statement as a continuation: [source,ocaml] ---- let identity value k = k value identity "mark" (printfn "%s") ---- The type of identity has change from "'a \-> 'a" to "'a \-> ('a \-> 'b) \-> 'b" which in our example is "string \-> (string \-> unit) \-> unit). The next example is to convert a 'Max' function to CPS style: [source,ocaml] ---- let max m n = if m > n then m else n printfn "%d" (max 2 3) ---- That would become: [source,ocaml] ---- let max m n k = if m > n then k m else k n max 2 3 (printfn "%d") ---- In both of these cases the "printfn.." part of the statement implicitly defines a function which takes in a value of 'string' in the first case and 'int' in the second. We could just have easily written the code like this: [source,ocaml] ---- let max m n k = if m > n then k m else k n max 2 3 (fun number -> printfn "%d" number) ---- I found the next example a bit tricky as it involves passing the continuation on to another function. We originally have the following: [source,ocaml] ---- let g n = n + 1 let f n = g(n + 1) + 1 printfn "%d" (f(1) + 1) ---- This becomes: [source,ocaml] ---- let g n k = k(n+1) let f n k = g (n + 1) (fun x -> k(x + 1)) f 1 (fun n -> printfn "%d" (n + 1)) ---- The thing I found strange when trying to think about how to do this is that anything which would happen after the initial function call needs to be passed into the continuation instead. You need to always think about what happens next instead of just thinking about the result that needs to be calculated. At the moment I think I'm more used to a sequential flow of operations but I'm sure that will change. The same applied for the last example, factorial: [source,ocaml] ---- let rec factorial n = if n = 0 then 1 else n * factorial (n-1) ---- Apply the same idea of putting any additional calculations outside the function call into the continuation we end up with: [source,ocaml] ---- let rec factorial n k = if n = 0 then k(1) else factorial (n-1) (fun x -> k(n*x)) ---- The first factorial I define here is http://cs.hubfs.net/forums/permalink/8022/8022/ShowThread.aspx#8022[not tail recursive] as we still need to multiply the result of all the recursive calls by n at the end, meaning that the compiler can't optimise this code to just keep the latest call to the function on the stack. The usual way I've seen to get around this is to thread an accumulator to an inner function inside factorial which would keep the running total of the factorial calculation but passing continuations is another way of doing this as we are passing on all the data needed to factorial every time we call it. Looking at the C# via IL code version of these two functions we get the following: [source,csharp] ---- public static int factorial(int n) { if (n == 0) { return 1; } return (n * factorial(n - 1)); } ---- [source,csharp] ---- public static a factorial2<a>(int n, FastFunc<int, a> k) { while (n != 0) { k = new factorial2@103<a>(n, k); n--; } return k.Invoke(1); } ---- The second one has been converted into a while loop which I hadn't realised was what happened with tail recursive calls until I came across http://blogs.msdn.com/jomo_fisher/archive/2007/09/19/adventures-in-f-tail-recursion-in-three-languages.aspx[Jomo Fisher's post about tail recursion]. I'm still getting the hang of this and would definitely agree with Wes' comment: ____ CPS turns a program inside-out. In the process, the programmer may feel that his brain has been turned inside-out as well. ____ When I first read about continuations they sounded a bit similar to callbacks and Wes defines a callback as being an 'explicity-passed continuation' which is effectively what we are doing here. The difference for me is that we are passing the continuation around whereas when I've used a callback it's typically executed straight away. http://www.williamcaputo.com/archives/000285.html[William Caputo has also been playing around with continuations in C#] and has some interesting thoughts as well.
null
null
[ 0.0002650791429914534, -0.014467878267168999, -0.0016687685856595635, 0.02179458551108837, 0.07057411223649979, 0.017559316009283066, 0.015991846099495888, 0.016764145344495773, -0.0018185448134317994, -0.025504233315587044, -0.014170065522193909, -0.011154337786138058, -0.08540807664394379, 0.016638990491628647, -0.0009835108648985624, 0.0511862114071846, 0.0735492929816246, -0.01810496486723423, 0.027215680107474327, -0.008940277621150017, -0.008440112695097923, 0.06695855408906937, -0.0031468085944652557, 0.02058117464184761, 0.02501315250992775, 0.023988690227270126, 0.005669798236340284, -0.008826865814626217, -0.05364752933382988, -0.021853076294064522, 0.034152764827013016, 0.03409199044108391, 0.0006473300745710731, -0.0017510059988126159, -0.002492987783625722, -0.00846516340970993, 0.0038359977770596743, -0.018911490216851234, 0.003206470515578985, 0.04246838018298149, -0.06922540068626404, 0.0017298003658652306, -0.006592925172299147, -0.00793176144361496, -0.033258866518735886, -0.006148447748273611, -0.051845427602529526, -0.004560216795653105, -0.02512647584080696, 0.0004993058391846716, -0.0587850920855999, 0.03068283013999462, -0.026944905519485474, 0.012737755663692951, 0.007670019753277302, 0.040474820882081985, 0.013282647356390953, -0.06609581410884857, 0.009976903907954693, -0.04017132893204689, -0.0009122505434788764, -0.012320793233811855, 0.015298042446374893, 0.060895081609487534, 0.008591116406023502, -0.005953125189989805, -0.012379098683595657, 0.016169143840670586, -0.05688255652785301, -0.026471421122550964, -0.03409549593925476, 0.019530871883034706, -0.02243124134838581, -0.01639464683830738, 0.005166308954358101, -0.04415154457092285, -0.007730885874480009, 0.05832550674676895, 0.011186809279024601, 0.03504445031285286, -0.019101925194263458, 0.05065291002392769, 0.036509014666080475, 0.013563781976699829, 0.008975433185696602, -0.008447235450148582, -0.009396820329129696, 0.02005017362535, -0.00577589450404048, 0.052402932196855545, -0.02225193753838539, -0.08113911002874374, -0.01557614654302597, 0.025708677247166634, 0.003655984066426754, -0.01844782382249832, -0.015545433387160301, 0.0009712050086818635, -0.009551129303872585, -0.02635524980723858, -0.04201902821660042, -0.0457288958132267, 0.0017190318321809173, -0.012292956002056599, -0.06895414739847183, -0.013629132881760597, -0.032327182590961456, 0.0052239131182432175, 0.03188114985823631, 0.03475730121135712, -0.047261834144592285, -0.004326523281633854, -0.00914845708757639, 0.021348949521780014, -0.0654035285115242, 0.035331740975379944, -0.004975367337465286, -0.022952456027269363, -0.022114887833595276, 0.03277325630187988, 0.0444699302315712, 0.022586321458220482, -0.0019748073536902666, 0.06346473842859268, 0.02702496200799942, 0.031129484996199608, -0.011762719601392746, 0.07695754617452621, -0.027090389281511307, -0.0802646055817604, -0.004957254510372877, 0.047583118081092834, -0.029950859025120735, -0.0130084790289402, -0.007257121615111828, -0.030828077346086502, -0.044758304953575134, 0.00714599946513772, 0.048681482672691345, 0.057188913226127625, 0.018948635086417198, -0.033568646758794785, 0.02846563793718815, -0.010725673288106918, 0.03951938822865486, -0.02961696684360504, -0.022361908107995987, -0.018707608804106712, -0.03574472665786743, 0.019739869982004166, 0.025834571570158005, 0.0212253388017416, 0.055984869599342346, -0.05711799114942551, 0.03532685711979866, 0.06606291979551315, 0.038487717509269714, 0.024904854595661163, 0.010708472691476345, -0.0023426448460668325, 0.057436298578977585, 0.02340882457792759, 0.001201628358103335, 0.061218179762363434, 0.034395329654216766, 0.023488841950893402, 0.0029961352702230215, 0.04591447114944458, -0.005110344849526882, -0.011126839555799961, -0.06293310225009918, -0.016545353457331657, 0.06716684997081757, -0.045687489211559296, -0.0010155275231227279, -0.011333812959492207, 0.0777883380651474, 0.006307668052613735, 0.021660441532731056, 0.00007884595106588677, -0.05982338637113571, 0.024078188464045525, 0.009198864921927452, 0.011964743956923485, -0.008437829092144966, 0.008943652734160423, 0.04843689128756523, 0.03668459877371788, 0.008633735589683056, 0.018031412735581398, -0.04078475758433342, -0.06856759637594223, -0.02596115507185459, -0.021073726937174797, 0.07040029764175415, -0.042084950953722, -0.01293015107512474, 0.07503911852836609, -0.0006508399383164942, 0.050203703343868256, 0.02941364422440529, -0.03198286518454552, 0.014418068341910839, 0.01001069787889719, -0.009427256882190704, 0.05934394896030426, 0.05423930659890175, -0.008203773759305477, -0.02916778065264225, 0.030572224408388138, 0.007327912375330925, 0.010507850907742977, 0.02686149999499321, -0.005663719959557056, 0.044720057398080826, 0.01527633611112833, 0.021734515205025673, -0.045504599809646606, 0.06059081852436066, -0.07193324714899063, 0.013045287691056728, 0.020838391035795212, 0.006218368653208017, -0.006937157362699509, 0.015915801748633385, 0.12421301752328873, 0.0795193463563919, -0.04930786043405533, -0.051376309245824814, 0.029448004439473152, 0.00606683362275362, -0.018605733290314674, 0.00890677236020565, 0.010678019374608994, 0.000512110476847738, -0.006317443214356899, -0.010094575583934784, 0.023647824302315712, 0.025953728705644608, -0.03286522999405861, -0.003965792711824179, 0.06480740755796432, -0.037867020815610886, 0.041975896805524826, 0.005581649485975504, -0.03093675710260868, 0.001090911333449185, -0.010719900019466877, -0.03153080493211746, 0.015029167756438255, 0.033893633633852005, -0.009637005627155304, 0.07104871422052383, -0.02490595355629921, -0.026704225689172745, -0.00663297763094306, -0.029734963551163673, -0.0005654399283230305, 0.05812130868434906, 0.07929031550884247, -0.004131765104830265, 0.05244409292936325, -0.023665621876716614, -0.011845670640468597, -0.03294968977570534, -0.0575738251209259, -0.04151913896203041, 0.00621836306527257, 0.0359758660197258, 0.026924164965748787, 0.005633489694446325, 0.012533768080174923, -0.006166595965623856, -0.0028053170535713434, -0.01990715228021145, 0.0029000933282077312, 0.01231310609728098, -0.007300221361219883, -0.04569369554519653, -0.03307057172060013, -0.052869077771902084, 0.03982732445001602, -0.039382416754961014, -0.04010060057044029, -0.018593981862068176, -0.057116925716400146, 0.029068706557154655, -0.06920996308326721, -0.03676344454288483, 0.015367775224149227, 0.002495894441381097, 0.023739293217658997, -0.026648933067917824, 0.02327568456530571, 0.06700658798217773, 0.007800729013979435, 0.016853490844368935, 0.009386424906551838, -0.004926749039441347, 0.016559461131691933, -0.004662227816879749, -0.01397064421325922, 0.06318233907222748, 0.011371508240699768, 0.0017877286300063133, -0.03235616162419319, 0.01213421206921339, -0.002788795391097665, -0.26987209916114807, 0.015713782981038094, -0.021255269646644592, -0.03215349093079567, 0.02923417277634144, -0.008060351014137268, 0.000011552639080036897, -0.045600805431604385, -0.010038429871201515, 0.040375202894210815, -0.03696335479617119, -0.03065502643585205, -0.021489731967449188, 0.05377642810344696, -0.0014251329703256488, 0.005457225255668163, 0.005059769377112389, -0.019188852980732918, -0.002486454090103507, 0.08358027040958405, -0.002390837064012885, -0.07743234187364578, 0.013019398786127567, 0.04871596768498421, 0.01587274670600891, 0.03039657138288021, -0.10850474238395691, 0.03497784957289696, -0.03202170133590698, -0.013724158518016338, -0.06130678579211235, 0.007961368188261986, -0.0008818696369417012, -0.009550506249070168, -0.021081751212477684, -0.04528559744358063, 0.0005913323257118464, 0.012927724979817867, 0.013450372032821178, 0.013113363645970821, -0.04044055566191673, -0.0574522539973259, -0.016831716522574425, 0.038857605308294296, 0.07678153365850449, -0.000058486064517637715, -0.0656527429819107, 0.019296444952487946, -0.033967506140470505, 0.0723576620221138, -0.02695099450647831, -0.027871182188391685, -0.022510148584842682, 0.036239150911569595, -0.015022092498838902, -0.01877547800540924, -0.014783450402319431, -0.037828586995601654, -0.021958032622933388, -0.01096123643219471, -0.014954887330532074, -0.03512150049209595, -0.013757803477346897, -0.04735955595970154, -0.004898621700704098, -0.05088024213910103, -0.07987000048160553, 0.006845206022262573, 0.06526288390159607, 0.019131800159811974, 0.012364879250526428, -0.009191351942718029, -0.031012509018182755, -0.1238478273153305, -0.05687777325510979, -0.05216711759567261, -0.026091866195201874, 0.002289998112246394, 0.054192058742046356, 0.041193876415491104, -0.024479806423187256, -0.04704277589917183, 0.018710751086473465, 0.02818232960999012, 0.04828235134482384, 0.008365019224584103, 0.003444319823756814, 0.004419464152306318, -0.02248982898890972, -0.009584687650203705, 0.061569202691316605, 0.0028993552550673485, -0.02245519682765007, -0.07110841572284698, 0.04120278358459473, -0.0217110775411129, 0.03921431675553322, 0.014497573487460613, 0.018528711050748825, 0.024823689833283424, 0.018517224118113518, -0.051171522587537766, 0.01424489077180624, -0.03946224972605705, -0.03065064549446106, 0.012301580980420113, -0.054612115025520325, 0.014838183298707008, 0.030424341559410095, 0.026570983231067657, -0.04392062500119209, -0.03460748493671417, 0.016808059066534042, -0.04546906799077988, -0.04004109278321266, -0.028806185349822044, -0.00010763885074993595, 0.021107377484440804, 0.030157839879393578, -0.036918897181749344, -0.052606001496315, 0.006326920352876186, 0.01636485569179058, -0.00330092990770936, -0.05463431403040886, -0.027543677017092705, -0.015153789892792702, -0.0012691018637269735, 0.00040473011904396117, 0.025828305631875992, -0.009282399900257587, 0.010572092607617378, 0.0015518523287028074, -0.02452220767736435, 0.01911088079214096, 0.01352265290915966, 0.0029921610839664936, -0.04270431771874428, -0.011644000187516212, -0.031420815736055374, 0.011287429369986057, 0.009725230745971203, 0.050897952169179916, 0.030483055859804153, 0.04359399899840355, 0.013623766601085663, 0.014586269855499268, 0.01680329255759716, -0.002724927384406328, 0.02129487879574299, 0.05011804401874542, -0.05507441237568855, 0.010663460940122604, -0.027834231033921242, 0.005034253466874361, -0.012117861770093441, 0.02118895761668682, -0.029983310028910637, -0.046439915895462036, -0.03211599588394165, 0.057615138590335846, -0.012825637124478817, -0.010379303246736526, -0.03202039375901222, 0.0016682535642758012, 0.02515595406293869, -0.05418036878108978, 0.04365263506770134, -0.025738747790455818, 0.005647377576678991, -0.012372633442282677, 0.028392864391207695, -0.04742368310689926, 0.02740565873682499, 0.011090106330811977, -0.00010133792966371402, 0.002859833650290966, 0.008293784223496914, 0.02454347535967827, -0.00778988329693675, -0.013649621047079563, -0.018722612410783768, 0.008790044113993645, 0.017621826380491257, 0.060850854963064194, 0.005850686691701412, 0.012476901523768902, -0.022695276886224747, -0.04514973238110542, -0.0016544312238693237, -0.01751839742064476, -0.010493457317352295, -0.04027169942855835, 0.041718993335962296, -0.03830463066697121, -0.049629248678684235, 0.014232116751372814, 0.04321637004613876, 0.0016610955353826284, 0.015906305983662605, -0.006672109942883253, 0.03272771090269089, -0.0017401999793946743, -0.009659520350396633, 0.06095509976148605, -0.03144072741270065, 0.03069169446825981, -0.004417950287461281, 0.024588800966739655, 0.032747793942689896, 0.027711421251296997, -0.04451180249452591, -0.02872188203036785, -0.015559862367808819, -0.021416202187538147, -0.012906847521662712, -0.041191693395376205, -0.011581562459468842, -0.008328915573656559, -0.0021198424510657787, -0.0010989151196554303, -0.038909912109375, 0.009245218709111214, -0.03476177155971527, -0.024666685611009598, 0.03414308652281761, -0.05985933542251587, -0.005534892436116934, 0.046919774264097214, -0.022364573553204536, 0.016780056059360504, -0.05616572126746178, 0.04681093618273735, 0.020531050860881805, -0.007685565855354071, -0.017300717532634735, -0.07639965415000916, 0.02400221675634384, -0.04694477468729019, 0.04974121227860451, 0.0015238616615533829, -0.032770950347185135, 0.010430625639855862, -0.024471143260598183, -0.035775989294052124, 0.025079188868403435, -0.003762206295505166, -0.048786669969558716, 0.004749997518956661, 0.046047184616327286, -0.031178560107946396, 0.029053982347249985, -0.01185307651758194, -0.016812840476632118, 0.037925027310848236, -0.030134031549096107, -0.009627078659832478, -0.021565787494182587, -0.03889341279864311, 0.02551216632127762, 0.0067015523090958595, 0.022501492872834206, -0.04935973137617111, 0.03622204810380936, 0.07863850891590118, 0.04219774901866913, 0.05597953870892525, 0.016584346070885658, 0.021074693650007248, -0.005480139050632715, 0.004406678024679422, -0.09007596224546432, 0.019636161625385284, 0.02557593397796154, 0.03580649569630623, -0.04919680207967758, -0.007783445063978434, -0.00270078401081264, 0.03500232845544815, -0.06334930658340454, 0.003817060962319374, 0.03658392280340195, -0.0028725164011120796, 0.013830711133778095, 0.03074350580573082, -0.03664795681834221, 0.023743418976664543, 0.02938361093401909, -0.006293895188719034, -0.0095794927328825, -0.037724677473306656, 0.039083629846572876, 0.015223562717437744, 0.04191974923014641, 0.0013242812128737569, 0.0005576097755692899, 0.040974389761686325, 0.028214795514941216, -0.011052154935896397, 0.06232592090964317, -0.0012948057847097516, 0.021846117451786995, 0.029561543837189674, -0.0003554461873136461, -0.004613211378455162, 0.034454766660928726, -0.04936106875538826, -0.08899614214897156, 0.022363824769854546, 0.028942562639713287, -0.01884661428630352, -0.037515826523303986, 0.025261525064706802, 0.009043815545737743, -0.017507506534457207, -0.04906383156776428, -0.017536401748657227, -0.0725841373205185, -0.007772305980324745, -0.013899462297558784, 0.02841440960764885, -0.04068858176469803, 0.07658511400222778, 0.004522405564785004, -0.016384735703468323, 0.06270921230316162, -0.006256766151636839, -0.008743202313780785, -0.0394255593419075, 0.07500040531158447, 0.07019036263227463, 0.07210071384906769, -0.00041881256038323045, 0.030092686414718628, -0.04222855344414711, -0.047055866569280624, -0.0026751458644866943, -0.031090980395674706, 0.015013235621154308, -0.011981070041656494, 0.03601998835802078, 0.11307336390018463, -0.014741684310138226, 0.058291807770729065, -0.04249480366706848, 0.005629900377243757, -0.011517846025526524, 0.019062045961618423, 0.02092473767697811, 0.09623304009437561, 0.025554953143000603, 0.011959417723119259, -0.005799212958663702, -0.053368888795375824, 0.04305719584226608, -0.007665528450161219, -0.024996912106871605, -0.028215618804097176, 0.02297314628958702, 0.016663191840052605, 0.002213221974670887, 0.048062510788440704, 0.0957590788602829, -0.03949529305100441, 0.0000438585011579562, -0.01670144684612751, 0.02034742943942547, 0.02966379188001156, -0.0010136471828445792, -0.001783287967555225, -0.01551259495317936, 0.019349614158272743, -0.002114785136654973, -0.021808665245771408, 0.00023868975404184312, -0.040611863136291504, 0.02731565199792385, -0.05289669334888458, -0.01267084851861, 0.020638426765799522, -0.02915859781205654, -0.048906110227108, -0.03758086636662483, -0.0440058559179306, -0.044342394918203354, -0.0836949571967125, -0.028222816064953804, 0.007295120507478714, -0.02568751387298107, -0.04370865970849991, -0.04047596454620361, 0.015104406513273716, -0.02969006635248661, 0.04232274368405342, -0.006489782594144344, -0.02992924675345421, 0.021053390577435493, 0.020787447690963745, 0.03196372464299202, 0.022045519202947617, 0.004202068317681551, -0.014627431519329548, -0.00928452331572771, -0.04140498861670494, -0.021951591596007347, 0.024100346490740776, 0.04494223743677139, -0.002413621172308922, -0.08218741416931152, 0.01429810281842947, 0.0070368763990700245, 0.015476567670702934, -0.09352824836969376, 0.005185628309845924, -0.010759907774627209, -0.02723921835422516, 0.029050419107079506, -0.021994654089212418, -0.02255147323012352, -0.03259327635169029, -0.017146093770861626, 0.02007008157670498, 0.010337792336940765, 0.0636061429977417, -0.04538862034678459, 0.0962236225605011, 0.0059297094121575356, -0.029468873515725136, -0.004888318944722414, -0.00147590774577111, -0.0396687388420105, 0.025178907439112663, -0.025297097861766815, -0.02884066291153431, -0.016541900113224983, -0.045368269085884094, -0.0015234299935400486, 0.016421709209680557, -0.03765903040766716, -0.03247227892279625, 0.02424198016524315, 0.05659360811114311, -0.056498490273952484, 0.06406066566705704, -0.03528255224227905, 0.03426307067275047, -0.006217669695615768, -0.034400369971990585, 0.013005412183701992, 0.03214596211910248, 0.03480246663093567, 0.011624891310930252, 0.03974888101220131, -0.02234373241662979, -0.017946243286132812, -0.020352879539132118, 0.01941194385290146, 0.017192399129271507, -0.02293090522289276, 0.008296280167996883 ]
[ -0.11556866019964218, -0.00019042438361793756, -0.043652962893247604, -0.024163343012332916, -0.004674834199249744, -0.011864695698022842, -0.009454361163079739, 0.0008769768173806369, 0.016525769606232643, -0.011496121063828468, -0.0013157339999452233, 0.009985268115997314, -0.02506924420595169, -0.01743871159851551, 0.02967970445752144, 0.005157053470611572, -0.018747983500361443, -0.010369163006544113, -0.03110661543905735, -0.0028766226023435593, 0.026516355574131012, -0.022716449573636055, -0.0657738447189331, -0.04195646196603775, 0.03517508879303932, 0.05582280457019806, 0.04057786241173744, -0.05355370044708252, 0.017322644591331482, -0.19622541964054108, -0.004052845761179924, 0.007036180701106787, -0.0012141192564740777, -0.029897358268499374, -0.0029324411880224943, 0.020198823884129524, -0.005787305999547243, 0.045383259654045105, 0.0022403800394386053, 0.07235781103372574, -0.011774353682994843, 0.05520150437951088, -0.016681496053934097, -0.03908609226346016, 0.04953380674123764, -0.005841729696840048, -0.01673777401447296, -0.054930299520492554, -0.01794026605784893, 0.03575393185019493, -0.053255800157785416, -0.0030337858479470015, -0.020001104101538658, -0.016064126044511795, 0.006964065600186586, 0.051031410694122314, 0.04056182876229286, 0.030179625377058983, 0.016514819115400314, 0.007451481651514769, 0.022098427638411522, -0.024647770449519157, -0.13126921653747559, 0.08241935074329376, 0.009878316894173622, 0.08847707509994507, -0.008654615841805935, -0.04061570391058922, 0.0013520014472305775, 0.11496558785438538, 0.009946335107088089, -0.03519706800580025, -0.05222122743725777, 0.059074752032756805, 0.023271705955266953, -0.035832252353429794, 0.020264146849513054, 0.026940252631902695, 0.0386379100382328, -0.025625383481383324, -0.014084986411035061, -0.02371790260076523, -0.0010340141598135233, -0.010907615534961224, -0.03704017400741577, 0.03350236266851425, -0.0076422058045864105, 0.0019320383435115218, 0.036311764270067215, 0.03687477111816406, 0.04438614100217819, -0.016765419393777847, 0.03672279417514801, 0.025446627289056778, -0.08410924673080444, -0.008396618068218231, 0.03137066960334778, 0.012863589450716972, -0.007458903826773167, 0.3830786347389221, -0.02144923061132431, -0.05646885186433792, 0.08118528127670288, 0.051260609179735184, 0.00044569361489266157, 0.018066149204969406, 0.019197769463062286, -0.03260226920247078, 0.0011634980328381062, -0.04668736457824707, -0.026106134057044983, 0.00987663958221674, 0.047071054577827454, -0.03289993852376938, 0.016050679609179497, 0.058143604546785355, 0.03152397647500038, 0.01383218728005886, 0.012754089199006557, -0.015682648867368698, 0.015218581072986126, 0.011392413638532162, 0.018746860325336456, 0.031838200986385345, 0.003845336614176631, -0.020154420286417007, 0.034877896308898926, 0.04778346046805382, 0.04650195315480232, -0.0008797899354249239, 0.08196074515581131, -0.036751870065927505, -0.058015450835227966, 0.016381079331040382, -0.017435718327760696, 0.009515715762972832, 0.03363717719912529, -0.034242063760757446, 0.013399112969636917, 0.0067686112597584724, 0.0020026275888085365, -0.009704501368105412, 0.02806844934821129, -0.030306000262498856, -0.03494809940457344, 0.13336904346942902, -0.016111230477690697, -0.015546074137091637, -0.03284773975610733, 0.004379976075142622, 0.007112809456884861, 0.01651361770927906, -0.029111430048942566, -0.06564202904701233, 0.0035922322422266006, 0.0337342768907547, 0.07057811319828033, -0.012868508696556091, -0.07969370484352112, -0.0023217732086777687, -0.043606728315353394, 0.00040590434218756855, -0.061950284987688065, 0.06967118382453918, 0.04551054164767265, -0.09479149430990219, -0.01630505733191967, 0.0012725746491923928, 0.009181072004139423, -0.07902435213327408, -0.01595107465982437, 0.01196271926164627, -0.03536631911993027, -0.05275043100118637, 0.05230008438229561, -0.008863925002515316, -0.06446670740842819, -0.02120998688042164, 0.06787995249032974, 0.046409882605075836, 0.01241715345531702, 0.0024098155554383993, -0.04729504510760307, -0.0022164590191096067, -0.04681871458888054, -0.10797729343175888, -0.0777132660150528, -0.01139880996197462, -0.021393734961748123, -0.005786352325230837, -0.008309030905365944, -0.01818169839680195, -0.06331222504377365, 0.059638917446136475, -0.043235912919044495, -0.04695173352956772, 0.013674753718078136, -0.0036230518016964197, -0.009021583944559097, -0.03157166764140129, -0.00400097481906414, 0.036387935280799866, -0.015072972513735294, 0.025552671402692795, -0.06384807080030441, 0.02816091850399971, 0.0371069498360157, -0.040263526141643524, 0.04204217344522476, 0.057060714811086655, -0.03587806597352028, -0.02754480578005314, 0.0068175592459738255, 0.018986975774168968, -0.01099539827555418, -0.04987064003944397, -0.018206560984253883, 0.037615761160850525, -0.009722206741571426, 0.01651965267956257, -0.035202573984861374, -0.03862590342760086, 0.0105208121240139, -0.34182727336883545, -0.013097144663333893, 0.016271347180008888, -0.046138912439346313, 0.037723325192928314, -0.10037645697593689, -0.017163366079330444, 0.015666762366890907, -0.04009846970438957, -0.03389213606715202, 0.06442492455244064, -0.022499168291687965, -0.034172337502241135, -0.07730558514595032, 0.029490193352103233, 0.020786156877875328, -0.017985913902521133, -0.060685012489557266, -0.03397662565112114, 0.02645292319357395, 0.00006699364894302562, 0.03055732138454914, -0.0317796990275383, -0.06010816991329193, -0.018437661230564117, -0.03714510425925255, 0.0849015936255455, -0.04171806573867798, 0.1455899327993393, -0.02368614822626114, 0.02973846346139908, 0.00018229673150926828, 0.0001101655579986982, -0.058091938495635986, 0.0034689113963395357, -0.03847026824951172, -0.0012810277985408902, -0.03079945780336857, 0.05362769961357117, -0.02825801633298397, -0.018798010423779488, 0.003899224102497101, -0.0497267059981823, -0.0075938706286251545, -0.01687448099255562, 0.021404162049293518, -0.02746090665459633, -0.025019105523824692, 0.007296910975128412, 0.09557559341192245, -0.005844686646014452, -0.005256819073110819, 0.012363710440695286, 0.0065933456644415855, 0.010177183896303177, -0.009974398650228977, -0.05588861182332039, -0.024000134319067, -0.026509394869208336, -0.004899056162685156, 0.0214407779276371, 0.04640832543373108, 0.008333448320627213, 0.0032541637774556875, 0.015298161655664444, 0.035385649651288986, 0.036082420498132706, -0.018070222809910774, 0.0640571191906929, -0.05118474364280701, -0.03135349601507187, 0.08716244995594025, -0.008852963335812092, -0.045193012803792953, 0.02582153119146824, 0.06398096680641174, -0.021965865045785904, 0.01925896853208542, -0.03035500831902027, -0.01806805282831192, 0.014402654021978378, -0.03496197983622551, 0.04617777094244957, -0.06598769128322601, 0.01935545913875103, 0.0015460901195183396, -0.003132748883217573, -0.009774431586265564, 0.023297496140003204, -0.002776472130790353, -0.04562068730592728, 0.025986578315496445, 0.006282339803874493, -0.07821008563041687, 0.06298105418682098, -0.009322688914835453, -0.24914218485355377, -0.0016513516893610358, 0.08841509371995926, 0.08760122954845428, 0.002117516240105033, 0.03624037653207779, 0.025088025256991386, -0.05732014402747154, -0.01747446320950985, 0.00576925789937377, 0.029163584113121033, 0.02786872535943985, 0.03828594461083412, 0.024750489741563797, 0.061364635825157166, -0.014599413610994816, 0.07037340849637985, -0.015134654007852077, 0.023968402296304703, 0.024220779538154602, 0.03236657753586769, 0.001952211488969624, 0.16677893698215485, -0.013903136365115643, 0.037602223455905914, -0.025324584916234016, 0.004231725353747606, 0.03903942182660103, 0.09941195696592331, 0.000971130037214607, 0.00740648852661252, 0.018281536176800728, 0.053935401141643524, 0.004030643962323666, 0.00030887298635207117, -0.07922053337097168, -0.008706131018698215, 0.09329298138618469, 0.03238128870725632, -0.0033690722193568945, 0.0006588251562789083, -0.021389300003647804, -0.03959408029913902, -0.007175341248512268, 0.09837716817855835, 0.010867219418287277, -0.006611105054616928, -0.0166592076420784, -0.022121990099549294, 0.015447740443050861, -0.0330224335193634, -0.005772874690592289, 0.026696696877479553, -0.02566223405301571, 0.021851638332009315, 0.05543789640069008, 0.0075431992299854755, -0.021577894687652588, -0.033599287271499634, 0.0339617058634758, -0.010567732155323029, -0.021476197987794876, 0.11863063275814056, 0.028697384521365166, 0.050655148923397064 ]
[ 0.007831943221390247, 0.014961764216423035, -0.021359849721193314, -0.012593498453497887, -0.010618709959089756, -0.0380648709833622, 0.005899838171899319, 0.027217857539653778, -0.0077262395061552525, -0.016492445021867752, -0.01665760762989521, 0.028544344007968903, -0.020913535729050636, -0.007390857208520174, 0.0340438038110733, 0.026394015178084373, -0.007386841345578432, -0.004977229982614517, 0.016647687181830406, -0.010182536207139492, -0.01252074632793665, 0.05360928922891617, 0.009448948316276073, 0.0007537105702795088, -0.03420152887701988, 0.022699575871229172, -0.04395698755979538, -0.001985300099477172, 0.03157581761479378, -0.12239458411931992, -0.014237158931791782, -0.03922704607248306, -0.012164616025984287, -0.007117785979062319, -0.005902048200368881, -0.0034869075752794743, -0.007116851396858692, 0.015195460990071297, 0.004028150346130133, -0.004133159760385752, -0.026750661432743073, 0.0077339354902505875, -0.011629360727965832, 0.05318840220570564, 0.018102455884218216, 0.005106338765472174, -0.018307732418179512, -0.0051847053691744804, 0.005379361566156149, 0.0313386507332325, -0.04923586547374725, -0.023460671305656433, -0.018863338977098465, -0.004050604999065399, 0.035553939640522, -0.05274533852934837, 0.005245581269264221, 0.004528133664280176, 0.026991277933120728, -0.013380450196564198, 0.012253697030246258, 0.007815835997462273, -0.07864002138376236, -0.02070402354001999, -0.013474139384925365, -0.025231381878256798, -0.0006762282573617995, 0.002164597390219569, 0.0001868536783149466, -0.011199304834008217, -0.03598417714238167, -0.021428467705845833, -0.015769481658935547, 0.005338712595403194, 0.029719550162553787, 0.03392183408141136, 0.023439185693860054, -0.01025763526558876, 0.04171818867325783, -0.04693860933184624, -0.013126054778695107, 0.002885896945372224, 0.045870427042245865, 0.007586239837110043, 0.00821658968925476, 0.0022692743223160505, 0.005257276352494955, -0.009691311046481133, 0.020134547725319862, 0.029811689630150795, -0.025668984279036522, -0.013892830349504948, 0.012258810922503471, -0.01250680722296238, -0.07953249663114548, -0.00300299609079957, -0.05715813487768173, -0.02248540148139, 0.025294892489910126, 0.8230341076850891, -0.019095528870821, 0.0362105630338192, 0.03152720257639885, -0.03890330716967583, -0.0038487385027110577, -0.03090137615799904, -0.009949003346264362, -0.0022417157888412476, 0.048873066902160645, -0.09754642099142075, 0.018938489258289337, 0.010462230071425438, 0.040852922946214676, -0.015915904194116592, 0.04075545817613602, 0.025296812877058983, 0.03295197710394859, -0.004905194044113159, 0.011432238854467869, -0.011245537549257278, 0.049946460872888565, -0.017019130289554596, -0.01591118611395359, 0.05160663649439812, 0.012021389789879322, -0.14519886672496796, 0.03543718531727791, -8.604861093729002e-33, 0.0006251083686947823, -0.04229900985956192, 0.01296223234385252, 0.009637902490794659, 0.04555089399218559, -0.006001446396112442, 0.028437498956918716, 0.0002528021577745676, -0.011036748066544533, -0.019784240052103996, -0.027467411011457443, -0.025680476799607277, -0.006076371297240257, -0.0026151665952056646, 0.016934024170041084, -0.06291764229536057, 0.03826908767223358, 0.02961001731455326, 0.0009608374093659222, 0.024367572739720345, 0.06728243082761765, 0.007839049212634563, 0.036140043288469315, -0.00338133261539042, 0.026671450585126877, 0.0586390383541584, 0.011565811932086945, 0.05386553704738617, 0.002782465424388647, -0.040575750172138214, -0.02597966603934765, -0.008078986778855324, -0.017120536416769028, -0.006293704267591238, -0.009061591699719429, -0.0521133653819561, 0.02013261243700981, 0.004337727092206478, 0.03709055110812187, -0.0391717366874218, -0.06526290625333786, 0.016310255974531174, -0.03168550878763199, 0.04509659484028816, 0.006403542589396238, -0.047976501286029816, -0.00447293184697628, 0.06411205977201462, 0.02127453126013279, -0.026757609099149704, 0.03808709606528282, 0.0232539102435112, -0.03171316534280777, 0.011939811520278454, -0.0202599186450243, 0.022804345935583115, -0.03654547408223152, -0.0005709572578780353, -0.017691006883978844, 0.017283080145716667, 0.02492677792906761, -0.008641421794891357, -0.02349497750401497, 0.033701393753290176, -0.026713987812399864, 0.0052575781010091305, -0.043530672788619995, 0.0007058135233819485, 0.042073387652635574, 0.023194892331957817, -0.02504563145339489, -0.0018441361607983708, -0.006698552053421736, -0.015927711501717567, -0.008980904705822468, -0.017886796966195107, -0.05914952605962753, -0.006425728090107441, -0.01389703806489706, 0.054015714675188065, -0.005874142982065678, 0.04451463371515274, 0.013553040102124214, -0.021084900945425034, -0.003824149491265416, -0.03633445128798485, -0.004902706015855074, -0.02069668471813202, -0.01642277091741562, 0.012337070889770985, -0.01831979863345623, -0.010268238373100758, 0.011845018714666367, -0.02713686041533947, 0.006941913161426783, 7.5907863618456e-33, -0.011364965699613094, -0.009047861211001873, -0.023653479292988777, 0.00007534747419413179, -0.029566526412963867, -0.020642492920160294, -0.00024649666738696396, 0.018107609823346138, -0.04615943133831024, 0.03164082020521164, -0.003427445888519287, 0.02264147624373436, 0.005116863641887903, 0.058476440608501434, 0.01997566595673561, -0.02361324056982994, -0.0004997998476028442, -0.005757391918450594, 0.038249511271715164, 0.010427290573716164, 0.026218567043542862, -0.00960937887430191, 0.005898429546505213, 0.012207739986479282, 0.021343447268009186, 0.06584125757217407, -0.04870694503188133, -0.00726157845929265, 0.04595601558685303, -0.001574346562847495, 0.016396809369325638, -0.04589430242776871, 0.03352213278412819, -0.05836181715130806, 0.0331667922437191, 0.02675834484398365, 0.009380050003528595, -0.02063433639705181, 0.03274233266711235, 0.021302025765180588, 0.050756800919771194, -0.0525265708565712, 0.03758459910750389, 0.02733142487704754, 0.008213584311306477, -0.000012167416571173817, 0.0037899857852607965, -0.005580053199082613, -0.017696112394332886, 0.0068414281122386456, -0.001084892195649445, -0.012987885624170303, 0.0067731356248259544, 0.023738086223602295, -0.015267075970768929, -0.016974009573459625, -0.0283384770154953, 0.011190597899258137, -0.06086057797074318, -0.016203269362449646, -0.0044962139800190926, 0.016568059101700783, 0.017966726794838905, -0.021551253274083138, 0.0056552826426923275, 0.02508864924311638, -0.016866197809576988, -0.01551931630820036, -0.04247606173157692, -0.02745392732322216, -0.02542264759540558, 0.00258486345410347, -0.010841112583875656, 0.04250786080956459, -0.010837267152965069, 0.0029762322083115578, -0.016277529299259186, -0.009335046634078026, 0.004397479351609945, 0.025720195844769478, -0.001938098925165832, -0.03529258444905281, 0.022912483662366867, 0.025652268901467323, -0.03152802214026451, -0.007070467807352543, -0.03700248524546623, 0.003933501895517111, 0.03918421268463135, -0.009824151173233986, 0.013582429848611355, -0.022589003667235374, -0.0045847357250750065, 0.008658078499138355, 0.024450361728668213, -1.3391933784134835e-8, -0.03938181698322296, 0.037167973816394806, -0.009584915824234486, 0.0011443482944741845, 0.030486872419714928, -0.007399896625429392, -0.022668637335300446, -0.01440805196762085, -0.04285666346549988, -0.011043391190469265, 0.016097089275717735, 0.02104458212852478, 0.056877247989177704, -0.04029688239097595, 0.003625629935413599, -0.014316083863377571, 0.03245948255062103, -0.07562918961048126, 0.03363090008497238, 0.039931099861860275, -0.03640132024884224, 0.009902806021273136, -0.042233552783727646, -0.0029427690897136927, -0.0212264247238636, -0.006062885746359825, -0.004652655217796564, -0.05977813899517059, 0.020448757335543633, -0.025580888614058495, 0.0365460067987442, -0.0013728463090956211, -0.013161902315914631, 0.030420610681176186, -0.008684206753969193, -0.043713875114917755, 0.019246656447649002, -0.003042723285034299, 0.018959591165184975, 0.015700247138738632, 0.006290327291935682, -0.029544832184910774, 0.028952285647392273, -0.005093151703476906, 0.0006476126727648079, -0.045704714953899384, -0.004105881322175264, -0.012190097011625767, -0.012498177587985992, -0.0104190269485116, 0.007638843730092049, 0.0184975303709507, 0.01397280115634203, 0.047111719846725464, -0.0012180051999166608, -0.012176409363746643, -0.033970966935157776, 0.0000032945415568974568, -0.04548361897468567, 0.05425620079040527, 0.014318624511361122, 0.0004441186028998345, -0.028390469029545784, 0.0004489717830438167 ]
f-continuation-passing-style
https://markhneedham.com/blog/2009/06/22/f-continuation-passing-style
false
2009-12-03 16:27:29
Book Club: Working Effectively With Legacy Code - Chapter 11 (Michael Feathers)
[ "book-club" ]
[ "Book Club" ]
In our latest technical book club we discussed chapter 11 - 'I Need to Make a Change. What Methods Should I Test?' - of Michael Feathers' 'http://www.amazon.com/gp/product/0131177052?ie=UTF8&tag=marneesblo-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=0131177052[Working Effectively With Legacy Code]'. In this chapter Feathers covers some techniques which allow us to work out which parts of the code we need to write tests around when we make changes. These are some of my thoughts and our discussion of the chapter: * Feathers starts off the chapter by introducing the idea of *effect sketching* which I've been trying out recently both on the projects I've been working on and with the http://www.markhneedham.com/blog/2009/11/04/reading-code-unity/[Unity dependency injection container]. The idea is that we create a diagram which shows the effect that changing different fields and methods will have on the rest of the class and then based on this we can see where we need to create a safety net of tests for any given change. It seems like this type of diagram would also be quite useful for identifying when a class has more than one responsibility because you would end up with several mini unconnected effect sketches within the main one. * Feathers suggests that we should look to write *characterisation tests* around legacy code. These are written a little differently to TDD's tests because we make the assertion match what the code is currently doing. The idea is to document what the system is doing now. We might come across 'bugs' while doing this but we wouldn't necessarily change the tests to verify how the code 'should' be until we find out what the effect of doing that would be. We want to write enough of these tests that we feel confident that we have a good enough safety net to allow us to change the code. * There are some interesting ideas about encapsulation towards the end of the chapter where Feathers considers the *trade off between ensuring test coverage and encapsulation*. + ____ Breaking encapsulation can make reasoning about our code harder, but it can make it easier if we end up with good explanatory tests afterward. \... Encapsulation and test coverage aren't always at odds, but when they are, I bias towards test coverage. Often it can help me get more encapsulation later. Encapsulation isn't an end in itself; it is a tool for understanding. ____ + I find this is sometimes quite a big barrier to break down because people are often reluctant to change code to make it more testable. That's sometimes a valid concern but with legacy code not so much.
null
null
[ 0.002703116973862052, -0.011696936562657356, -0.036243878304958344, 0.024171914905309677, 0.08365046232938766, 0.0026136506348848343, 0.027667997404932976, 0.012599990703165531, 0.0422525480389595, -0.040623631328344345, -0.01642059162259102, 0.011583450250327587, -0.05239621177315712, -0.0029117923695594072, -0.061334215104579926, 0.07506115734577179, 0.07277896255254745, -0.004653299227356911, 0.028959499672055244, 0.005582137499004602, 0.014377210289239883, 0.08029879629611969, -0.006568302866071463, 0.04718402773141861, 0.024610131978988647, -0.005913367494940758, 0.021453261375427246, -0.010304017923772335, -0.05892765522003174, 0.021220341324806213, 0.021818052977323532, -0.00629475899040699, -0.00046838208800181746, -0.024842942133545876, 0.004994167014956474, -0.017282040789723396, -0.031962938606739044, 0.014333674684166908, 0.029275596141815186, -0.026888154447078705, -0.07691780477762222, 0.009463696740567684, -0.009017011150717735, -0.013786230236291885, -0.031851623207330704, 0.0019465687219053507, -0.039659857749938965, 0.0030252980068325996, -0.01498888898640871, -0.02272350713610649, -0.06024760380387306, 0.03453407064080238, -0.008523387834429741, -0.03734222799539566, 0.025276605039834976, 0.06280526518821716, 0.02489287778735161, -0.040630705654621124, 0.02249688282608986, -0.05962600186467171, -0.00455115083605051, 0.005242721643298864, -0.005136552266776562, 0.051196593791246414, 0.030092665925621986, -0.02020644210278988, -0.025192569941282272, 0.032581452280282974, -0.03504715487360954, -0.0026961490511894226, -0.005334022920578718, 0.015401005744934082, -0.01674363575875759, 0.0004625846049748361, -0.0009098905138671398, -0.019179286435246468, -0.003169488860294223, 0.07674302160739899, 0.01889563724398613, 0.03605635464191437, 0.0032736051362007856, 0.021344823762774467, 0.036499984562397, -0.00850270688533783, -0.00476787518709898, -0.029435232281684875, 0.003907850012183189, -0.0020159967243671417, -0.04073334485292435, 0.062459178268909454, 0.014201789163053036, -0.06774862855672836, 0.013663128018379211, 0.059791892766952515, -0.014489094726741314, 0.013550893403589725, 0.023871835321187973, 0.023952772840857506, 0.003714493475854397, -0.014572669751942158, -0.02267172932624817, -0.008232876658439636, 0.01612580567598343, 0.014736538752913475, -0.08326520770788193, 0.0013830589596182108, -0.02433962933719158, -0.054930198937654495, 0.002263628877699375, 0.020047495141625404, -0.039133891463279724, 0.00628606416285038, -0.008854134939610958, -0.010267576202750206, -0.08893143385648727, 0.05566034093499184, 0.0047105965204536915, -0.003194542834535241, -0.006335083860903978, 0.026876486837863922, 0.022998729720711708, 0.03739131987094879, 0.02503228932619095, 0.08966609835624695, 0.022911954671144485, 0.04723432660102844, -0.05690748244524002, 0.07368239015340805, -0.026405205950140953, -0.06716366112232208, 0.0019488716498017311, 0.030174536630511284, -0.04618104547262192, -0.014954597689211369, -0.0034521757625043392, -0.003857005387544632, -0.02994353324174881, 0.011504746973514557, 0.030554767698049545, 0.06509711593389511, -0.024172727018594742, -0.04028415307402611, 0.031024429947137833, -0.009583916515111923, 0.009990280494093895, -0.005370275117456913, -0.01831814832985401, -0.008158590644598007, -0.036526765674352646, 0.017755649983882904, 0.027296656742691994, 0.013348221778869629, 0.019314583390951157, -0.03736019879579544, 0.014208015985786915, 0.07403072714805603, 0.00223427708260715, 0.026578104123473167, -0.02795962244272232, 0.04392970725893974, 0.053602222353219986, 0.04504738748073578, 0.05456211417913437, 0.0322207547724247, -0.009255723096430302, 0.012128823436796665, -0.015002685599029064, 0.024587227031588554, 0.023937920108437538, -0.004918946418911219, -0.05538875237107277, -0.044468771666288376, 0.0474996380507946, -0.05626128986477852, 0.016197778284549713, 0.04370963200926781, 0.06271594017744064, 0.02573947235941887, 0.02530093677341938, 0.008048917166888714, -0.0686398446559906, 0.03371297940611839, 0.03429185971617699, 0.006379183381795883, 0.004584880080074072, -0.02056155353784561, 0.05584114417433739, 0.0420256033539772, -0.008689956739544868, 0.018413295969367027, -0.09074851125478745, -0.08165070414543152, 0.004700102843344212, -0.037658169865608215, 0.0566188246011734, -0.03628088906407356, 0.006286149844527245, 0.08137854188680649, 0.02632690779864788, 0.05082585662603378, 0.037099771201610565, 0.01564476266503334, 0.027191780507564545, -0.038051310926675797, -0.01568567380309105, 0.034621551632881165, 0.019952576607465744, 0.0012788830790668726, -0.08989691734313965, 0.0005662651383318007, -0.004975704941898584, 0.020585043355822563, 0.04305940866470337, 0.010209129191935062, 0.048673149198293686, -0.0023300128523260355, 0.04141157492995262, -0.012994433753192425, 0.0819641724228859, -0.08311577886343002, -0.014747507870197296, -0.0037000251468271017, -0.028897486627101898, -0.017399810254573822, -0.0075713167898356915, 0.11589718610048294, 0.03601870685815811, -0.05451874062418938, -0.027528846636414528, 0.0280897356569767, -0.0012370896292850375, -0.04631303250789642, 0.01073383167386055, -0.016283202916383743, 0.018084336072206497, -0.019388990476727486, -0.053741294890642166, -0.0007346748607233167, 0.022844234481453896, -0.042717620730400085, 0.013237923383712769, 0.07611697167158127, -0.016803253442049026, 0.053668275475502014, -0.013534802943468094, 0.00413157744333148, -0.007404631935060024, -0.028534308075904846, -0.04774675518274307, 0.024493282660841942, 0.03875415772199631, -0.013172861188650131, 0.04172218218445778, -0.04785613343119621, -0.03666899353265762, -0.0003800688427872956, -0.04983179643750191, -0.013541103340685368, 0.031245583668351173, 0.04324186593294144, -0.006302255671471357, 0.03248664364218712, -0.011705167591571808, 0.03543467074632645, 0.014060279354453087, -0.04911046102643013, -0.02745758183300495, -0.029280342161655426, 0.00433387653902173, 0.02284080721437931, 0.017526132985949516, 0.027693718671798706, 0.02552303671836853, 0.0016396786086261272, -0.03454725816845894, -0.00948099885135889, 0.029757745563983917, 0.016533110290765762, -0.02756977640092373, -0.03199866786599159, -0.022513605654239655, 0.03877708688378334, -0.05299859493970871, -0.03402417525649071, 0.03922732546925545, -0.0534631572663784, 0.04352736100554466, -0.05118953436613083, -0.07702060788869858, 0.014459746889770031, 0.0244176983833313, 0.038450222462415695, -0.013026208616793156, 0.017753897234797478, 0.05147191137075424, 0.006950030103325844, 0.006645663175731897, 0.0027196966111660004, 0.011650755070149899, 0.04170924425125122, 0.02590825967490673, -0.016268976032733917, 0.01958976499736309, -0.004833661951124668, -0.00891686137765646, -0.049437955021858215, 0.04177349433302879, -0.027980860322713852, -0.2640487253665924, 0.03413001075387001, -0.005708599463105202, -0.044048480689525604, 0.03568735718727112, -0.041969962418079376, -0.0006619395571760833, -0.04573266580700874, -0.0158682893961668, 0.027724675834178925, -0.03744157776236534, -0.04581441357731819, -0.0014149599010124803, 0.054962579160928726, 0.0008747564861550927, -0.002846028422936797, 0.030793769285082817, -0.036743998527526855, 0.02747294120490551, 0.07144135236740112, -0.007884657010436058, -0.07014454901218414, -0.009021001867949963, 0.04036431759595871, 0.012991666793823242, 0.04173910990357399, -0.10539678484201431, 0.06605412811040878, -0.04649439826607704, -0.010805189609527588, 0.01578640751540661, -0.016580473631620407, -0.008938814513385296, -0.014818930067121983, 0.0019493151921778917, 0.01710674911737442, 0.024015232920646667, 0.016504162922501564, -0.027532299980521202, 0.01030023768544197, -0.02854248136281967, -0.032102447003126144, -0.025424961000680923, 0.012761515565216541, 0.0708223506808281, -0.009122118353843689, -0.0638054609298706, -0.013632114045321941, -0.021102961152791977, 0.1065501794219017, -0.05144282802939415, -0.0054216450080275536, 0.005040544085204601, 0.029722323641180992, -0.03493155539035797, -0.05091238021850586, 0.0214025117456913, -0.011685486882925034, -0.03280886262655258, -0.015545176342129707, -0.02056650072336197, -0.05370226129889488, 0.0040602367371320724, -0.04711270332336426, 0.005078076850622892, -0.057873062789440155, -0.06303253024816513, -0.015209889970719814, 0.046004313975572586, -0.010763205587863922, -0.03594708442687988, -0.016751956194639206, -0.015190234407782555, -0.11168427765369415, -0.013149825856089592, -0.04962544143199921, -0.013323454186320305, -0.0337199866771698, 0.014554262161254883, 0.04657446965575218, -0.0185654666274786, -0.060818862169981, 0.029651816934347153, -0.008268492296338081, 0.0050853765569627285, 0.022206295281648636, 0.019038725644350052, 0.009558421559631824, -0.023456914350390434, 0.005484535358846188, 0.0702504962682724, 0.008967808447778225, -0.028417015448212624, -0.033355049788951874, 0.04511295631527901, 0.015144241973757744, 0.022774316370487213, -0.020935626700520515, 0.012343576177954674, 0.033959317952394485, 0.005454992409795523, -0.05907414108514786, 0.039561379700899124, -0.008966179564595222, -0.003724203445017338, -0.015392189845442772, -0.04013283923268318, 0.042393527925014496, 0.03577040880918503, 0.024002356454730034, 0.005759303458034992, -0.03474017605185509, 0.003732067532837391, -0.040181610733270645, -0.05809563770890236, -0.03399760648608208, 0.020584262907505035, 0.031391244381666183, -0.04937194660305977, -0.015286323614418507, -0.048672132194042206, -0.0014204862527549267, -0.02603638544678688, -0.0076187229715287685, -0.04083654657006264, -0.03013814426958561, -0.0020018310751765966, -0.03735320270061493, 0.016412174329161644, 0.02391119673848152, -0.01250586099922657, 0.035103533416986465, 0.03055422380566597, -0.046922195702791214, -0.00048050086479634047, -0.0013502847868949175, -0.06484290957450867, -0.009570772759616375, -0.029736511409282684, -0.019350958988070488, -0.034089408814907074, 0.013141599483788013, 0.004794017877429724, 0.005739857908338308, 0.022355401888489723, -0.008984353393316269, 0.021246017888188362, -0.02457364648580551, 0.013676431030035019, 0.032295260578393936, 0.042570024728775024, -0.05599333345890045, 0.011695456691086292, -0.04437319561839104, -0.044136904180049896, -0.027252765372395515, 0.03088110126554966, -0.008850452490150928, -0.016501309350132942, -0.02525819092988968, 0.02695227786898613, -0.06837061792612076, -0.04478103667497635, -0.028987614437937737, 0.014015020802617073, 0.06776396930217743, -0.02578342705965042, 0.03031281754374504, -0.027129903435707092, -0.04794606193900108, -0.032146189361810684, 0.007952731102705002, -0.041708435863256454, 0.03392120823264122, 0.00938456878066063, -0.011500042863190174, 0.01789356954395771, -0.01226078625768423, 0.049360740929841995, 0.01462862640619278, -0.011953691020607948, -0.040927816182374954, 0.016666172072291374, -0.010136491619050503, 0.03658442199230194, -0.004305925685912371, 0.0012330792378634214, -0.010537282563745975, -0.03230797126889229, -0.04069710895419121, -0.03317572921514511, -0.007147657219320536, -0.012869680300354958, 0.02173667959868908, -0.05003823712468147, -0.0742531418800354, 0.03599028289318085, 0.01205279678106308, 0.028638456016778946, -0.010446188971400261, 0.01372634619474411, 0.021037230268120766, -0.009149211458861828, 0.06406667083501816, 0.05279328301548958, -0.0722409263253212, -0.003381188493221998, 0.000294096942525357, -0.0011517162201926112, 0.0070099602453410625, 0.014247868210077286, -0.05282047018408775, -0.037932008504867554, -0.008658749982714653, -0.0008742489153519273, -0.04932373762130737, -0.02469807304441929, -0.0367293655872345, 0.012680183164775372, -0.016051532700657845, -0.029591521248221397, -0.023165928199887276, 0.01806984469294548, -0.008976471610367298, -0.01769372820854187, -0.01667494885623455, -0.006369978655129671, 0.0017160121351480484, 0.015350212343037128, -0.02661944180727005, 0.030032897368073463, -0.006418613716959953, 0.04601813480257988, 0.013878782279789448, -0.01745266653597355, -0.01687086746096611, -0.04118438810110092, -0.009858325123786926, 0.020679853856563568, 0.008049801923334599, -0.011624068021774292, 0.006185117177665234, -0.025671828538179398, -0.014072702266275883, -0.031851209700107574, 0.028717953711748123, -0.015756765380501747, -0.03824221342802048, 0.0337093360722065, 0.06667905300855637, 0.040872443467378616, 0.03934261202812195, 0.0007989986333996058, 0.01135867740958929, 0.05111910402774811, -0.07338207215070724, -0.01753896474838257, -0.026548396795988083, -0.07535620033740997, 0.014871114864945412, 0.010689148679375648, 0.028452523052692413, -0.03944246843457222, 0.015793412923812866, 0.012910698540508747, 0.03411360830068588, 0.041651129722595215, -0.007993513718247414, 0.027514800429344177, -0.07042540609836578, 0.01387256383895874, -0.07360783964395523, 0.002619750564917922, 0.030560994520783424, -0.012136710807681084, -0.01862519420683384, 0.00469569768756628, -0.02970910631120205, 0.056231383234262466, -0.05855996161699295, -0.018336161971092224, 0.0451497957110405, -0.010772891342639923, 0.0019191027386114001, 0.005426057148724794, -0.05967112258076668, 0.02109728753566742, 0.027287637814879417, -0.034634098410606384, -0.03800593689084053, -0.007105643395334482, 0.04924575239419937, 0.03164016455411911, 0.033963680267333984, -0.01347437035292387, 0.0032295549754053354, 0.07201974093914032, 0.01161485631018877, 0.04990838095545769, 0.016299093142151833, -0.020426053553819656, 0.04835324361920357, 0.02876252494752407, 0.020847653970122337, -0.006877398118376732, 0.012956097722053528, 0.013352546840906143, -0.040339529514312744, 0.02764180488884449, 0.004464833997189999, -0.021627528592944145, -0.039597608149051666, 0.054756250232458115, 0.02410058304667473, -0.026372257620096207, -0.03128691762685776, 0.0003841690195258707, -0.06370699405670166, -0.00760473171249032, -0.023875311017036438, -0.031961359083652496, -0.041212718933820724, 0.052616268396377563, -0.0032070428133010864, -0.006619342137128115, 0.05212797224521637, -0.008961849845945835, 0.003251897171139717, -0.04130541533231735, 0.0679117888212204, 0.0871465653181076, 0.07850609719753265, 0.028005803003907204, 0.05964113399386406, 0.00853064563125372, -0.04354150965809822, 0.02465684898197651, 0.02554118074476719, 0.0014293162385001779, -0.021885981783270836, 0.03471824899315834, 0.05229378864169121, 0.018062610179185867, 0.03716469183564186, -0.02708137407898903, 0.001795394578948617, 0.0033427730668336153, 0.02063407003879547, -0.0010037202155217528, 0.08521919697523117, 0.0066798678599298, 0.025841211900115013, 0.01428027544170618, -0.02759159356355667, 0.03899046778678894, -0.05134360119700432, 0.006277883425354958, 0.03135770559310913, -0.0075109186582267284, 0.033230267465114594, 0.02701536938548088, 0.043456096202135086, 0.06786737591028214, -0.013880573213100433, 0.00583662698045373, -0.004446879494935274, 0.028639182448387146, 0.005049997009336948, 0.011077980510890484, -0.02559731714427471, -0.021007459610700607, -0.003937974572181702, -0.03648577257990837, -0.0353396013379097, -0.015212135389447212, -0.024232834577560425, 0.04845394194126129, 0.009671376086771488, 0.015480938367545605, 0.05036293715238571, 0.009952357970178127, -0.059041138738393784, -0.05014916509389877, -0.051377225667238235, -0.034806445240974426, -0.03340395167469978, -0.014311407692730427, 0.026086827740073204, 0.008534201420843601, -0.038889750838279724, 0.010664620436728, -0.025198116898536682, -0.04181627556681633, 0.04997440427541733, -0.06679803878068924, -0.010316086933016777, 0.0043196845799684525, 0.027768440544605255, 0.015552379190921783, 0.0051343622617423534, 0.04659220948815346, 0.032217614352703094, -0.011920275166630745, -0.021871572360396385, 0.013770383782684803, 0.016917215660214424, 0.009301422163844109, 0.06743472069501877, -0.09365925937891006, -0.00015713143511675298, 0.02651825360953808, 0.011005563661456108, -0.06375552713871002, 0.0476568266749382, -0.007399461232125759, -0.04234829172492027, 0.037291690707206726, -0.016043901443481445, 0.019355997443199158, 0.030256127938628197, -0.015595659613609314, 0.005389180034399033, 0.03019050881266594, 0.02601691149175167, -0.029557442292571068, 0.07828979939222336, -0.015440375544130802, -0.025276118889451027, -0.024367408826947212, 0.000500122201628983, -0.016381755471229553, 0.007618687115609646, -0.03147398680448532, -0.027806121855974197, -0.022677693516016006, -0.0611763522028923, 0.005100005306303501, 0.029583130031824112, -0.028397709131240845, -0.015678226947784424, 0.005038063507527113, 0.011001721024513245, -0.035350967198610306, 0.027490943670272827, -0.036112230271101, 0.02688450738787651, -0.03291246294975281, -0.008566411212086678, 0.025642231106758118, -0.0014459611847996712, -0.0025532578583806753, 0.01636527292430401, 0.029726149514317513, -0.05119417607784271, -0.00367058371193707, -0.0060325791127979755, 0.022562861442565918, 0.04863777756690979, -0.02539585344493389, -0.01811579056084156 ]
[ -0.12569652497768402, 0.0011979356640949845, 0.0021432810463011265, -0.03559156134724617, 0.03221091255545616, -0.028020735830068588, -0.02133820950984955, 0.0250703077763319, -0.018778540194034576, -0.00947344209998846, -0.00993044301867485, -0.0205055084079504, -0.027427731081843376, 0.009885288774967194, 0.07516956329345703, -0.0012710330775007606, -0.011279375292360783, -0.03327082470059395, 0.01293958630412817, 0.020090853795409203, -0.00012693938333541155, -0.04176502674818039, -0.023786332458257675, -0.016383912414312363, 0.014292294159531593, 0.050286468118429184, 0.03347984701395035, -0.04338108375668526, 0.018509896472096443, -0.22638551890850067, 0.010378224775195122, 0.0251444261521101, 0.011231951415538788, -0.030386971309781075, 0.0027785752899944782, 0.052828408777713776, 0.010449429042637348, -0.00688233831897378, -0.0021808533929288387, 0.045479945838451385, 0.018102550879120827, 0.026028333231806755, -0.060583364218473434, -0.03216004744172096, 0.038804084062576294, -0.0037791887298226357, 0.0037695178762078285, -0.05459511652588844, -0.0049399323761463165, 0.014245923608541489, -0.04118514060974121, -0.04747374728322029, -0.017975904047489166, -0.03591698035597801, -0.013002176769077778, 0.020078694447875023, 0.03285494074225426, 0.07847258448600769, 0.012439055368304253, 0.011158434674143791, 0.011699658818542957, -0.03353263810276985, -0.13744302093982697, 0.10531148314476013, 0.0713053047657013, 0.044333454221487045, -0.038563553243875504, -0.02793719433248043, 0.016548406332731247, 0.094960056245327, -0.013699309900403023, -0.010516929440200329, -0.014256449416279793, 0.046333711594343185, 0.007665861863642931, 0.011101515032351017, 0.00797944888472557, 0.0010119498474523425, 0.058003123849630356, -0.06569977849721909, -0.019730638712644577, -0.013653789646923542, -0.004856264218688011, -0.008059361949563026, -0.015675967559218407, 0.030476097017526627, -0.003047357313334942, 0.042459383606910706, 0.046076830476522446, 0.030039697885513306, 0.04350436478853226, -0.017511384561657906, 0.04850225895643234, 0.01742202416062355, -0.0805952250957489, 0.0007392120896838605, -0.006737231742590666, -0.01780029758810997, -0.044858574867248535, 0.44694116711616516, -0.024176260456442833, -0.04241815209388733, 0.03376131132245064, 0.02436891384422779, -0.0005894214264117181, 0.0010683179134503007, 0.04252170771360397, -0.04793857783079147, 0.03742435947060585, -0.018289808183908463, 0.006221933756023645, 0.034651048481464386, 0.058212097734212875, -0.04790394380688667, -0.013202949427068233, 0.029869142919778824, 0.010202656500041485, -0.0016273186774924397, 0.0033240211196243763, -0.013468392193317413, -0.010791470296680927, -0.002666976535692811, 0.015776660293340683, -0.013159873895347118, 0.00999339297413826, -0.04247582331299782, 0.008881015703082085, 0.0551249198615551, 0.0025864297058433294, 0.021677296608686447, 0.04751969128847122, -0.02724418044090271, -0.0809381902217865, -0.003958228509873152, 0.01824193261563778, 0.03579579293727875, 0.02501866966485977, -0.013974123634397984, 0.00012639039778150618, 0.0354454331099987, -0.0038283206522464752, 0.005946480203419924, 0.04296162351965904, -0.026888329535722733, -0.03390106186270714, 0.09680290520191193, 0.023031989112496376, -0.021529385820031166, -0.023649489507079124, -0.03288622573018074, 0.00969244446605444, 0.029335638508200645, -0.016988221555948257, -0.032661937177181244, 0.023276591673493385, 0.009153400547802448, 0.0736064612865448, -0.00583409471437335, -0.048788201063871384, -0.016311172395944595, -0.012464662082493305, -0.01655522547662258, -0.05930902808904648, 0.05455384775996208, 0.034703873097896576, -0.08960166573524475, -0.032496705651283264, 0.019877156242728233, 0.0379461944103241, -0.07710935920476913, -0.03104255348443985, 0.02551395632326603, -0.02574070170521736, -0.018013082444667816, 0.05601935461163521, -0.026997199282050133, -0.04080815613269806, 0.014728988520801067, 0.06701239198446274, 0.02766588144004345, 0.006652645766735077, 0.02979450114071369, -0.04995670169591904, 0.0028588231652975082, -0.02794046141207218, -0.083742655813694, -0.032924629747867584, -0.008948872797191143, -0.044542837888002396, 0.013513728976249695, -0.02725929394364357, -0.0042615472339093685, -0.09116051346063614, 0.10465262830257416, -0.03295831382274628, -0.020710568875074387, 0.014579007402062416, -0.017083346843719482, -0.02497091516852379, -0.027274465188384056, -0.02224259078502655, 0.04306187853217125, -0.03431090712547302, 0.028409289196133614, -0.05785171315073967, 0.06426052004098892, 0.05931801348924637, -0.07006373256444931, 0.10212045162916183, 0.04956958815455437, -0.04703368991613388, -0.025447731837630272, 0.03784402459859848, 0.02564309537410736, 0.007128356955945492, -0.014752124436199665, -0.016282983124256134, 0.03281240537762642, 0.0002388395369052887, 0.014363296329975128, 0.0006539531168527901, -0.010942810215055943, -0.02514190785586834, -0.3415525257587433, -0.01195663120597601, -0.025761574506759644, -0.034058842808008194, 0.008768601343035698, -0.0609479658305645, 0.00856315903365612, -0.01050963718444109, -0.01384259294718504, -0.041155971586704254, 0.08140449225902557, -0.007443204987794161, 0.015340110287070274, -0.08601181209087372, 0.016985036432743073, -0.011779624968767166, -0.03253325819969177, -0.04790438711643219, -0.04647098854184151, 0.00578089477494359, -0.01869497448205948, -0.007223865017294884, 0.0031535581219941378, -0.054021693766117096, -0.0022541643120348454, -0.05954961106181145, 0.08298147469758987, -0.032923366874456406, 0.10529239475727081, -0.0037061392795294523, 0.029607370495796204, 0.00913080945611, 0.022640982642769814, -0.09086952358484268, 0.017381751909852028, -0.0037619508802890778, -0.023037103936076164, -0.010929523035883904, 0.013211947865784168, -0.04503312706947327, -0.01902736723423004, 0.021660272032022476, -0.05241084843873978, -0.04056420549750328, -0.06654633581638336, 0.00863927137106657, -0.024904098361730576, -0.02128971740603447, -0.025346681475639343, 0.06724999845027924, 0.01303753163665533, -0.006527216639369726, 0.0001556937932036817, 0.030620530247688293, -0.026550471782684326, -0.011660135351121426, -0.07315178215503693, 0.023235250264406204, 0.017048202455043793, -0.006459383759647608, 0.030902134254574776, 0.07818081974983215, 0.02816418744623661, -0.06398368626832962, 0.020048243924975395, 0.006145053077489138, -0.009294044226408005, -0.0455227829515934, 0.07650529593229294, -0.028655003756284714, 0.00009570850670570508, 0.0824730172753334, -0.002571439603343606, -0.022221554070711136, 0.020657943561673164, 0.042200084775686264, 0.004777805879712105, 0.04907269403338432, 0.015952594578266144, 0.004347061272710562, -0.01421303953975439, -0.00017255553393624723, 0.019476259127259254, -0.024017490446567535, -0.01968304254114628, 0.006892915815114975, -0.015318679623305798, -0.045620620250701904, 0.045826271176338196, 0.008226130157709122, -0.03414439037442207, 0.019044680520892143, -0.015107443556189537, -0.05378834903240204, 0.07486201822757721, 0.02053600735962391, -0.2305779606103897, 0.0014515999937430024, 0.09249145537614822, 0.061846546828746796, -0.013698216527700424, 0.0060980976559221745, 0.033090583980083466, -0.06782768666744232, -0.0006957175792194903, -0.006384806241840124, 0.03660979121923447, 0.01980091631412506, 0.012742904014885426, 0.007635955698788166, 0.028799789026379585, 0.009033290669322014, 0.06465953588485718, -0.02985568344593048, 0.011589069850742817, -0.0239220280200243, 0.024074068292975426, -0.007457182742655277, 0.17145487666130066, 0.007002260535955429, 0.025572754442691803, -0.00029204413294792175, 0.015614604577422142, 0.011718947440385818, 0.06404975801706314, 0.02733931690454483, 0.009626208804547787, -0.0009854374220594764, 0.02689988724887371, -0.012405689805746078, 0.023869093507528305, -0.05875871703028679, -0.026491058990359306, 0.004905512556433678, 0.010597161017358303, 0.004093156661838293, 0.02420596219599247, 0.01164408028125763, -0.01634211838245392, 0.01946108601987362, 0.056829579174518585, 0.026228830218315125, -0.015414518304169178, -0.02244824543595314, -0.05391926318407059, -0.01598292775452137, -0.031145131215453148, -0.038956303149461746, 0.013475948944687843, -0.03292767331004143, 0.0016272952780127525, 0.07203876227140427, 0.02880134806036949, -0.03069000318646431, -0.0002680698817130178, 0.01208102609962225, 0.012840373441576958, -0.0168614499270916, 0.1171596348285675, 0.04315325245261192, 0.04137382656335831 ]
[ -0.014083498157560825, -0.010848842561244965, 0.023278456181287766, 0.008387136273086071, 0.017489979043602943, 0.028644677251577377, 0.012680575251579285, 0.007533574476838112, -0.008571702986955643, 0.028622101992368698, -0.011703895404934883, 0.035387177020311356, -0.017814381048083305, 0.006453557405620813, -0.0018232285510748625, 0.00038143814890645444, 0.013198472559452057, -0.009842490777373314, 0.013615202158689499, 0.027661271393299103, -0.0007185688591562212, -0.013695267960429192, 0.02857208624482155, 0.011073275469243526, -0.011309719644486904, -0.009444218128919601, -0.03508806601166725, 0.005492863245308399, 0.018466711044311523, -0.11385346949100494, -0.01664355956017971, -0.01148044690489769, -0.028310928493738174, 0.0042867944575846195, -0.009318096563220024, 0.021396033465862274, 0.005567457526922226, 0.02084820531308651, 0.0013043422950431705, -0.010806829668581486, -0.021877558901906013, -0.015855912119150162, -0.02004203386604786, 0.0052342345006763935, 0.015556464903056622, -0.001649767393246293, -0.007841922342777252, -0.0395188108086586, 0.003497499041259289, 0.001155578764155507, -0.03325340151786804, -0.0127037912607193, -0.03144356235861778, -0.015774037688970566, 0.01653970591723919, -0.011263041757047176, 0.03950861096382141, -0.04004000127315521, 0.0013231034390628338, -0.02741176262497902, -0.012997983023524284, 0.011724749580025673, -0.014639485627412796, -0.021021980792284012, -0.004516146145761013, -0.009469528682529926, -0.010348165407776833, 0.016682269051671028, -0.020065728574991226, -0.019842009991407394, 0.00038520805537700653, 0.01319819688796997, -0.030860157683491707, -0.008111105300486088, 0.021819541230797768, 0.05422404035925865, -0.026572879403829575, -0.00467449426651001, 0.05265405774116516, -0.025254366919398308, -0.008625343441963196, 0.02725883573293686, 0.05057596042752266, 0.01098883617669344, 0.014788240194320679, 0.025947323068976402, 0.005881274119019508, -0.0015220928471535444, 0.008973803371191025, 0.02576427161693573, -0.0054914336651563644, 0.04009676352143288, 0.01869945414364338, 0.05137120187282562, -0.056698061525821686, -0.02376851812005043, -0.018771784380078316, 0.006346374284476042, -0.007220926228910685, 0.8738174438476562, -0.010845144279301167, 0.030687902122735977, 0.031899526715278625, -0.002060685772448778, 0.024527844041585922, 0.002810216508805752, 0.01967019960284233, -0.04479048401117325, 0.004228110890835524, -0.05465163290500641, 0.007023311220109463, -0.007493018638342619, 0.01915702037513256, -0.02505817636847496, 0.02119637094438076, 0.018389791250228882, 0.012088486924767494, 0.01898798532783985, 0.027542972937226295, 0.00556158646941185, 0.052012182772159576, -0.01369340531527996, 0.02664748579263687, 0.01526671089231968, 0.02509409748017788, -0.16651403903961182, -0.03746660798788071, -8.005409668003514e-33, 0.06274458765983582, -0.03673754259943962, -0.00889661442488432, 0.03702923655509949, -0.016125312075018883, -0.003728674491867423, 0.018791548907756805, 0.02006656676530838, -0.014084668830037117, -0.010707576759159565, -0.01292148046195507, -0.03405057266354561, -0.012560060247778893, 0.0023428972344845533, 0.05574242025613785, -0.002051143441349268, -0.011282120831310749, 0.016275251284241676, 0.000910195813048631, 0.0005214413977228105, -0.008981430903077126, 0.01395773608237505, -0.018640603870153427, -0.03184498846530914, 0.004879996180534363, 0.03790061175823212, -0.0070540886372327805, 0.007547473069280386, -0.022055968642234802, -0.0392310731112957, 0.0011633450631052256, 0.007436505518853664, -0.005668109282851219, -0.009415963664650917, -0.014252620749175549, -0.05592045560479164, -0.005558602511882782, -0.003927026409655809, -0.011102929711341858, 0.0027281823568046093, -0.010982911102473736, -0.024497365579009056, -0.046846743673086166, -0.0054541900753974915, 0.015770012512803078, -0.018416309729218483, -0.011342991143465042, 0.0426306314766407, 0.01329684630036354, -0.023585958406329155, 0.023536622524261475, 0.046519238501787186, 0.006942767649888992, -0.024947263300418854, -0.024590466171503067, 0.04044666513800621, 0.009688284248113632, -0.014119869098067284, 0.019088005647063255, 0.03651440516114235, -0.00689433328807354, 0.008415189571678638, -0.040454622358083725, 0.020304134115576744, -0.006408662535250187, -0.017870988696813583, -0.0019695255905389786, -0.012874114327132702, -0.0067079681903123856, 0.003527693450450897, -0.054198652505874634, -0.015425021760165691, -0.00323916575871408, -0.018747050315141678, -0.0038842882495373487, -0.026262231171131134, 0.005411012098193169, 0.03314157947897911, -0.02229156345129013, -0.0001712064113235101, 0.01532212644815445, 0.006131155416369438, 0.00007776220445521176, -0.009553644806146622, -0.023804115131497383, -0.017728406935930252, 0.04052253067493439, -0.012503883801400661, -0.01110998447984457, 0.0009531038231216371, 0.05004051327705383, 0.004986143670976162, 0.008594904094934464, -0.040387898683547974, -0.026223663240671158, 8.185508626860935e-33, -0.016439547762274742, -0.00658951373770833, -0.06442377716302872, -0.0024259856436401606, -0.011663587763905525, -0.01768135279417038, 0.030286476016044617, -0.011671431362628937, -0.03994104266166687, 0.04691785201430321, -0.023824457079172134, -0.032199274748563766, -0.04097135365009308, 0.04188575595617294, 0.021568620577454567, 0.0035397286992520094, 0.006793808192014694, -0.027011003345251083, 0.03400822728872299, -0.015572571195662022, 0.03768250346183777, 0.034488119184970856, 0.019667601212859154, -0.020318005234003067, -0.02509213425219059, 0.029631685465574265, -0.025081250816583633, 0.030515100806951523, 0.013810232281684875, -0.015027973800897598, -0.008525761775672436, -0.01859596185386181, 0.025558210909366608, 0.03792508691549301, -0.008600863628089428, 0.010943302884697914, -0.001554637448862195, -0.038346681743860245, -0.0117041552439332, 0.007541229482740164, 0.0019022448686882854, -0.006032656412571669, -0.010511795058846474, 0.0007621195400133729, 0.018841490149497986, 0.0006803919677622616, -0.0073106554336845875, -0.018746189773082733, -0.0032129220198839903, -0.0011551760835573077, 0.00018716685008257627, -0.0009073663968592882, 0.03928977996110916, 0.007554944138973951, 0.0025181155651807785, -0.016752799972891808, -0.006942742969840765, -0.021804990246891975, -0.0030468793120235205, 0.022046849131584167, 0.001967089483514428, 0.023667849600315094, -0.013395394198596478, -0.008821215480566025, 0.00470519857481122, 0.012414315715432167, -0.053856972604990005, -0.01199429016560316, -0.025407003238797188, -0.02240011841058731, -0.0356682650744915, -0.009461438283324242, 0.018370425328612328, 0.04277527332305908, 0.0066591836512088776, -0.009570816531777382, -0.0024294035974889994, 0.0006183757213875651, 0.01584596373140812, 0.004166057333350182, -0.003633910557255149, -0.03413620591163635, 0.014789736829698086, -0.003196269739419222, -0.015035957098007202, 0.031217360869050026, -0.00513816811144352, 0.029326431453227997, 0.005100581794977188, -0.028948336839675903, -0.007768412586301565, -0.0013797753490507603, 0.030810128897428513, -0.002035151468589902, 0.02120157517492771, -1.3689146705075927e-8, -0.003523907158523798, 0.039132606238126755, -0.0029600304551422596, -0.001557650975883007, 0.00002408046020718757, 0.00281897303648293, -0.009793506935238838, -0.013881023973226547, -0.026762939989566803, 0.005070325452834368, 0.02360977791249752, 0.0185996163636446, 0.015365781262516975, 0.000010543522876105271, 0.0008105525048449636, -0.03222208470106125, -0.015573224984109402, 0.010853865183889866, 0.020543303340673447, -0.0016821380704641342, -0.008073023520410061, 0.07103678584098816, -0.017637943848967552, 0.012146610766649246, -0.040521040558815, -0.006933657918125391, 0.02826247178018093, -0.08121445775032043, 0.008203507401049137, 0.019065052270889282, -0.024897225201129913, -0.026917457580566406, -0.006433703470975161, 0.003292822279036045, -0.021452000364661217, -0.009735782630741596, 0.001967470394447446, 0.021832499653100967, 0.04328500106930733, 0.012671215459704399, -0.02497968077659607, -0.03425426408648491, 0.020005811005830765, -0.027233973145484924, 0.005912475753575563, -0.011298474855720997, -0.007664249278604984, -0.040364135056734085, 0.001519854529760778, 0.0020493685733526945, 0.015616643242537975, 0.021172262728214264, -0.000020719018721138127, 0.020070254802703857, 0.0006652804440818727, 0.00746347289532423, -0.0002563378366176039, 0.009209336712956429, -0.018091222271323204, -0.004008112940937281, 0.014601071365177631, 0.02017992176115513, -0.003798866644501686, -0.011326379142701626 ]
book-club-working-effectively-with-legacy-code-chapter-11-michael-feathers
https://markhneedham.com/blog/2009/12/03/book-club-working-effectively-with-legacy-code-chapter-11-michael-feathers
false
2009-12-20 10:09:30
F#: Word Count using a Dictionary
[ "f" ]
[ "fsharp" ]
Having spent some time unsuccessfully trying to make http://www.markhneedham.com/blog/2009/12/18/f-word-count-a-somewhat-failed-attempt/[my F# attempt at the word count problem] work I decided to follow the lead of the other examples I've read and make use of a Dictionary to keep count of the words. I originally thought that I might be having a problem with the downloading of the files and storing of those strings in memory so I tried to change that bit of code to be lazily evaluated: [source,ocaml] ---- let downloadFile path = lazy(use streamReader = new StreamReader(File.OpenRead path) streamReader.ReadToEnd()) ---- That didn't seem to make much difference though and it seemed like the StackOverflowException was happening on the 'List.fold' line: [source,ocaml] ---- let wordCount = files >> List.map downloadFile >> List.map words >> List.fold (fun acc x -> Seq.append acc x) Seq.empty >> Seq.groupBy (fun x -> x) >> Seq.map (fun (value, sequence) -> (value, Seq.length sequence)) ---- I couldn't see a way of changing the solution such that the current approach wouldn't need that line so I rewrote part of it ending up with the following solution: [source,ocaml] ---- #light #r "FSharp.PowerPack" open System open System.IO open System.Text.RegularExpressions open System.Collections.Generic let (|File|Directory|) path = if(Directory.Exists path) then Directory(path) else File(path) let getFileSystemEntries path = Directory.GetFileSystemEntries path |> Array.to_list let files path = let rec inner fileSystemEntries files = match fileSystemEntries with | [] -> files | File path :: rest -> inner rest (path :: files) | Directory path :: rest -> inner (List.append rest (getFileSystemEntries path)) files inner (getFileSystemEntries path) [] let download path = using (new StreamReader(File.OpenRead path)) (fun reader -> reader.ReadToEnd()) let writeTo (path:string) f = using (new StreamWriter(path)) (fun writer -> f writer) let words input = Regex.Matches(input, "\w+") |> Seq.cast |> Seq.map (fun (x:Match) -> x.Value.ToLower()) let apply (dict:Dictionary<string,int>) key f = if(dict.ContainsKey(key)) then dict.[key] <- f dict.[key] else dict.[key] <- f 0 let startTime = DateTime.Now let dict = new Dictionary<string, int>() files "Z:\\20_newsgroups" |> List.iter (fun file -> download file |> words |> Seq.iter (fun word -> apply dict word ((+) 1) )) printfn "Writing counts in alphabetical order" writeTo "C:\\results\\counts-alphabetical-fsharp.txt" (fun out -> dict |> Seq.sortBy (fun x -> x.Key) |> Seq.iter (fun entry -> out.WriteLine(entry.Key + " " + entry.Value.ToString()))) printfn "Writing counts in descending order" writeTo "C:\\results\\counts-descending-fsharp.txt" (fun out -> dict |> Seq.sortBy (fun x -> x.Value * -1) |> Seq.iter (fun entry -> out.WriteLine(entry.Key + " " + entry.Value.ToString()))) let endTime = DateTime.Now printfn "Finished in: %d seconds" (endTime - startTime ).Seconds ---- As I wrote about previously I found out that I could use the 'using' function instead of the 'use' keyword with the 'StreamWriter' and 'StreamReader' so those bits of code are a bit simplified. The way of interacting with dictionaries in F# doesn't seem as nice as in Ruby so I've ended up with the somewhat verbose bit of code on line 23. Is there a cleaner way of doing that? By using a Dictionary I think it's now more difficult to parallelise the counting up of the words which was something I thought might be possible when I first came across the problem. This seems like the perfect problem for the http://en.wikipedia.org/wiki/MapReduce[MapReduce] approach although I'm not quite sure about the implementation details. My thinking is that we'd have a Dictionary for each node/actor and it would sum up the words in its file before passing the result to another actor which would be responsible for taking all the dictionaries and accumulating the word counts? This was an interesting problem for showing what happens if you try to store too much data in memory and it's something that I've not come across before because I don't typically work with data sets that are this big.
null
null
[ -0.020830577239394188, -0.0388287790119648, -0.031439851969480515, 0.03545558825135231, 0.07399816066026688, 0.040907904505729675, 0.007911252789199352, 0.02341967076063156, -0.0020628762431442738, -0.028220152482390404, -0.015343785285949707, 0.010835016146302223, -0.08566213399171829, 0.005998489446938038, 0.009987693279981613, 0.06848558783531189, 0.09202199429273605, -0.04110880196094513, 0.008036606945097446, -0.02204113081097603, 0.029065262526273727, 0.07460465282201767, -0.0029998833779245615, 0.028331797569990158, 0.011500694788992405, -0.01637277565896511, 0.008944772183895111, -0.01402982510626316, -0.04413335397839546, 0.01796591654419899, 0.020140310749411583, -0.01095666829496622, 0.020360715687274933, -0.023645026609301567, 0.03388085588812828, -0.014155362732708454, -0.001915804110467434, -0.004973588511347771, -0.0124678835272789, 0.054903242737054825, -0.05987204983830452, -0.004399274475872517, -0.030472183600068092, -0.01200075913220644, -0.034411270171403885, 0.025952043011784554, -0.036771051585674286, 0.015640879049897194, -0.03428587317466736, -0.0075613223016262054, -0.03168955817818642, 0.019580053165555, 0.00006314143683994189, -0.022334717214107513, 0.03431454673409462, 0.03853975608944893, 0.012814536690711975, -0.07370265573263168, 0.054561715573072433, -0.02845568023622036, -0.020043974742293358, -0.034677691757678986, 0.021832304075360298, 0.05951840057969093, 0.010065349750220776, -0.043422631919384, -0.014338784851133823, 0.056533634662628174, -0.05367763340473175, -0.01724911481142044, -0.01530739851295948, 0.030749524012207985, -0.025826377794146538, 0.008139503188431263, 0.007625795900821686, -0.058423884212970734, 0.010868312790989876, 0.05125517398118973, 0.03960857540369034, 0.03530363738536835, -0.030509205535054207, 0.05551154166460037, 0.03649987652897835, 0.022001754492521286, 0.00721179461106658, -0.017410246655344963, -0.023742683231830597, 0.010412720032036304, -0.0276566781103611, 0.04512607306241989, 0.020491810515522957, -0.047716423869132996, -0.006786405108869076, 0.034438516944646835, -0.0008951964555308223, 0.01154134888201952, -0.013624905608594418, 0.016271056607365608, -0.008130937814712524, 0.04464932158589363, -0.0457996241748333, -0.00043396977707743645, 0.014710847288370132, 0.03192632272839546, -0.06126336380839348, -0.0006566611118614674, -0.01160211768001318, -0.022421369329094887, 0.04767116159200668, -0.016540681943297386, -0.03236040100455284, 0.018536711111664772, -0.011485719121992588, 0.014621681533753872, -0.12112489342689514, 0.024933496490120888, 0.016712339594960213, 0.010668224655091763, -0.02441508136689663, 0.039175309240818024, 0.04844137281179428, -0.0033718447666615248, 0.02846476249396801, 0.05156555399298668, -0.0009176775347441435, 0.006581900641322136, -0.00047987751895561814, 0.0628679171204567, -0.011052558198571205, -0.06184116750955582, -0.04190538078546524, 0.048535123467445374, -0.027245474979281425, -0.011662598699331284, 0.005802649073302746, 0.003713724436238408, -0.03906187042593956, 0.006725030951201916, 0.04755472391843796, 0.01829792559146881, -0.02209257148206234, 0.005245871376246214, -0.00574506213888526, -0.034454647451639175, 0.024288786575198174, 0.022868815809488297, -0.052817028015851974, -0.0024722355883568525, -0.05382940173149109, 0.013315306045114994, 0.030880199745297432, 0.0475989505648613, 0.0632028877735138, -0.040333352982997894, -0.005661705508828163, 0.09116315096616745, -0.006203819066286087, 0.02732868678867817, -0.012413496151566505, 0.011428377591073513, 0.025855252519249916, 0.04437575489282608, -0.018259190022945404, 0.04670262336730957, 0.03106796182692051, -0.01753830537199974, 0.02668164297938347, 0.020743971690535545, -0.04230012372136116, 0.004746824037283659, -0.05961903929710388, -0.015489725396037102, 0.04953078180551529, -0.030179547145962715, -0.009503960609436035, 0.03183748573064804, 0.08515810966491699, 0.014823269098997116, 0.03350318595767021, 0.021095553413033485, -0.06816956400871277, 0.01702895015478134, -0.029127873480319977, 0.03725256398320198, -0.02832259051501751, -0.009594596922397614, 0.07204772531986237, 0.016215821728110313, 0.018438780680298805, 0.008867785334587097, -0.051775477826595306, -0.08068326860666275, -0.02682092785835266, -0.027514707297086716, 0.05533187463879585, -0.05404425784945488, 0.006545095704495907, 0.03657012805342674, -0.00836464948952198, 0.046759217977523804, 0.04231375455856323, -0.025019558146595955, 0.01519270520657301, -0.040865469723939896, -0.07594814896583557, 0.07557050883769989, 0.02563514932990074, -0.031308867037296295, -0.03758733719587326, -0.008849706500768661, -0.021869944408535957, 0.017953528091311455, 0.05037733167409897, -0.0006198021001182497, 0.029293030500411987, 0.03145226463675499, 0.013377253897488117, -0.03928211331367493, 0.04493552818894386, -0.08669684082269669, 0.0071999928914010525, 0.014374932274222374, -0.005733258090913296, -0.016465311869978905, -0.02775927074253559, 0.12143520265817642, 0.06046966463327408, -0.02344772405922413, -0.058121826499700546, -0.01240378525108099, -0.003737736726179719, -0.057052917778491974, -0.005640366114675999, 0.03454957157373428, -0.002670512767508626, 0.014604099094867706, -0.027344586327672005, 0.010338922031223774, 0.02485695853829384, -0.024212807416915894, 0.011403433047235012, 0.06574321538209915, -0.018469367176294327, 0.028701497241854668, 0.05490230396389961, -0.028576789423823357, 0.022690149024128914, -0.029684098437428474, -0.024809932336211205, 0.016247669234871864, 0.02559926174581051, -0.010318920947611332, 0.051160577684640884, -0.02273596078157425, -0.031190671026706696, -0.0022531994618475437, -0.056555550545454025, 0.02213352732360363, 0.0664680004119873, 0.06330166012048721, -0.01281421072781086, 0.05540184676647186, -0.03351817652583122, -0.015310203656554222, -0.022687749937176704, -0.06180121749639511, -0.04267150163650513, -0.006633571349084377, 0.016579095274209976, 0.03066568449139595, 0.01842498779296875, 0.004941802006214857, -0.013343462720513344, 0.008817500434815884, -0.02972365729510784, 0.0030523384921252728, 0.06264536827802658, -0.0012704604305326939, -0.04918549954891205, -0.04396465793251991, -0.029420750215649605, 0.06227840855717659, -0.012522974982857704, -0.02408575639128685, -0.00585491256788373, -0.024298937991261482, 0.040548864752054214, -0.04395706579089165, -0.041029587388038635, 0.0029391469433903694, 0.01025113184005022, 0.019662635400891304, -0.02301381528377533, -0.00654260627925396, 0.053581103682518005, 0.022243736311793327, 0.00015697767958045006, -0.0026743775233626366, 0.010334916412830353, 0.02228425443172455, -0.0042345873080194, 0.0024301556404680014, 0.06191948428750038, 0.019489077851176262, 0.001680085901170969, -0.037037257105112076, -0.01587693952023983, -0.008273586630821228, -0.26752087473869324, 0.05394979566335678, -0.01867201365530491, -0.013188011012971401, 0.028044085949659348, 0.004456163849681616, 0.00469812098890543, -0.06590764969587326, -0.015756461769342422, 0.05285732075572014, -0.043544549494981766, -0.025538137182593346, 0.007318117190152407, 0.0606449618935585, 0.027044599875807762, 0.0033637280575931072, 0.00124016881454736, -0.04986397176980972, 0.01899092271924019, 0.06049012392759323, 0.018088307231664658, -0.06499887257814407, 0.031213197857141495, 0.057272206991910934, 0.029677916318178177, 0.056846849620342255, -0.07573124021291733, 0.040280479937791824, -0.019466565921902657, -0.009845142252743244, -0.034863173961639404, -0.020931048318743706, 0.03651444986462593, -0.033454880118370056, -0.05060981959104538, -0.03733421117067337, 0.02727152779698372, 0.01583305560052395, -0.00877431035041809, 0.03319143131375313, -0.013001193292438984, -0.06814219802618027, -0.003314125584438443, -0.02384350262582302, 0.05653339624404907, -0.02244490571320057, -0.07966598123311996, -0.020967645570635796, -0.03969214856624603, 0.06686678528785706, -0.03248065710067749, -0.06956938654184341, -0.01395801268517971, 0.07407469302415848, 0.01652052067220211, -0.029031874611973763, 0.026757577434182167, -0.023332636803388596, -0.02954075112938881, -0.024606112390756607, -0.011031687259674072, -0.04661191627383232, -0.018967237323522568, -0.032479602843523026, -0.03402683883905411, -0.04866193234920502, -0.0675584077835083, 0.011847360990941525, 0.04729491099715233, 0.031831320375204086, -0.02845613658428192, -0.014709568582475185, -0.034610334783792496, -0.10861583054065704, -0.04414748772978783, -0.007094657514244318, -0.04843532294034958, -0.016807688400149345, -0.004393918439745903, 0.07503104954957962, -0.03734596446156502, -0.03739742934703827, 0.033188533037900925, 0.03853142634034157, 0.030610332265496254, -0.030562425032258034, 0.01317986473441124, -0.019118178635835648, -0.017264535650610924, -0.015188705176115036, 0.038449931889772415, -0.022479282692074776, 0.005686966702342033, -0.0131835313513875, 0.024037152528762817, 0.0232162494212389, 0.014033442363142967, 0.019104458391666412, 0.03306883946061134, 0.017197376117110252, 0.048867709934711456, -0.03507952019572258, 0.02906864881515503, -0.03817780315876007, -0.014331307262182236, 0.010447755455970764, -0.04056518152356148, 0.004382748156785965, 0.036948319524526596, 0.029272062703967094, -0.015062795951962471, -0.023463498800992966, 0.062247056514024734, -0.05173303931951523, 0.0004109999572392553, -0.004514082334935665, 0.007463531568646431, 0.018375592306256294, 0.018977688625454903, -0.032823462039232254, -0.05817199498414993, 0.02223777398467064, 0.009584028273820877, -0.03727292641997337, -0.06576788425445557, -0.02219540625810623, 0.006075154058635235, -0.032709136605262756, -0.011339880526065826, 0.051457975059747696, -0.03938024863600731, -0.002724969293922186, -0.001208550063893199, -0.052973031997680664, 0.020881609991192818, -0.036779746413230896, -0.009083221666514874, -0.037982478737831116, -0.030519235879182816, -0.007097701542079449, 0.01384742558002472, -0.03821674361824989, 0.03217100352048874, 0.028848234564065933, 0.04479338601231575, 0.0170426107943058, 0.01709277369081974, 0.019238324835896492, 0.0004551794845610857, -0.013194886036217213, 0.003136176848784089, -0.04692183434963226, 0.04135577008128166, -0.027686379849910736, -0.016994835808873177, -0.01719571091234684, 0.027060311287641525, -0.03616460785269737, -0.0342940129339695, -0.05913593992590904, 0.04935726150870323, -0.021052667871117592, -0.019109809771180153, -0.014665147289633751, -0.0001930200232891366, 0.047991812229156494, -0.008914713747799397, 0.034025970846414566, 0.007889604195952415, 0.016426801681518555, 0.001341778552159667, 0.009959197603166103, -0.023811612278223038, 0.03013036958873272, -0.005032983608543873, 0.02060355618596077, 0.016003606840968132, 0.012764005921781063, -0.006238291505724192, 0.028728004544973373, -0.020654605701565742, -0.028473587706685066, 0.018549969419836998, 0.02142644301056862, 0.07764030992984772, -0.00762949138879776, -0.020117858424782753, -0.00737600727006793, -0.07384154945611954, -0.0160971786826849, -0.03839457780122757, -0.010338418185710907, -0.022832728922367096, 0.03618947044014931, -0.02657591737806797, -0.07541349530220032, 0.02487802878022194, 0.0013923984952270985, 0.005387510638684034, 0.0007232389762066305, -0.014985673129558563, -0.03834313899278641, 0.016507450491189957, -0.03068159520626068, 0.05645480751991272, -0.039526939392089844, -0.031285252422094345, -0.018220536410808563, 0.03521638363599777, 0.04142703860998154, 0.000687463441863656, -0.02794414758682251, -0.019727041944861412, -0.013350971974432468, -0.004051824100315571, -0.015373765490949154, -0.021186882629990578, -0.01608036644756794, 0.0031817371491342783, -0.03669329360127449, -0.010632640682160854, -0.021011028438806534, -0.0004078202473465353, -0.012141894549131393, -0.011394454166293144, 0.012674180790781975, -0.03602178022265434, -0.04038399085402489, 0.03654969483613968, -0.008497637696564198, 0.00418430007994175, -0.04667556285858154, 0.055551715195178986, 0.03442881256341934, -0.01893199235200882, -0.0062260860577225685, -0.023759467527270317, 0.029486382380127907, -0.009007690474390984, 0.03402840718626976, 0.026111634448170662, -0.0002726589154917747, -0.010432734154164791, -0.017441393807530403, -0.046685319393873215, 0.016736792400479317, -0.012496648356318474, -0.03293662145733833, 0.02118898555636406, 0.07730814814567566, -0.009119095280766487, 0.04034854471683502, -0.011697798036038876, -0.021724706515669823, 0.04524129629135132, -0.027292849496006966, -0.038504526019096375, -0.023291021585464478, -0.02835167944431305, 0.0561101920902729, 0.012317121960222721, -0.01836792565882206, -0.06185179576277733, 0.07619929313659668, 0.054403822869062424, 0.019743574783205986, 0.05401206389069557, -0.006151849403977394, 0.01912047527730465, -0.0021005060989409685, -0.015010984614491463, -0.08665049076080322, -0.025563692674040794, 0.026795396581292152, 0.0041489992290735245, -0.0026633308734744787, -0.0256267711520195, -0.013089523650705814, 0.04459083825349808, -0.05169784650206566, -0.03298770263791084, 0.018267596140503883, -0.03385462984442711, 0.03616327419877052, 0.0020906999707221985, -0.02807626686990261, 0.04531914368271828, 0.04311487451195717, -0.03221266344189644, -0.036625225096940994, -0.03086799941956997, 0.0371750108897686, -0.013526031747460365, -0.008726310916244984, -0.01749410293996334, -0.0037885422352701426, 0.02420991100370884, 0.005190993659198284, 0.0037583315279334784, 0.05837145447731018, -0.044004861265420914, 0.025178762152791023, 0.042806465178728104, -0.05186793953180313, -0.024712231010198593, 0.007030657958239317, -0.01374278124421835, -0.05596086010336876, 0.00714321481063962, 0.013687106780707836, 0.0022306512109935284, -0.034005019813776016, 0.06699483841657639, 0.03584933280944824, -0.02045176550745964, -0.04669914022088051, 0.002575390273705125, -0.05139920115470886, -0.007538404781371355, -0.016034264117479324, 0.04189818724989891, -0.030081884935498238, 0.05801120400428772, 0.010606507770717144, -0.0030514125246554613, 0.06738071143627167, -0.007660541217774153, -0.0014221412129700184, 0.017043959349393845, 0.09371893852949142, 0.07082387804985046, 0.021288152784109116, -0.02794818766415119, 0.06742201745510101, -0.0512416772544384, -0.044235408306121826, -0.02153492346405983, -0.020168568938970566, 0.004409333691000938, -0.0008347073453478515, 0.04060187190771103, 0.0849456712603569, 0.027241967618465424, 0.06406700611114502, -0.04830775037407875, 0.005144227296113968, -0.010566196404397488, 0.01968851312994957, 0.02277979627251625, 0.03447914496064186, 0.006223896984010935, 0.00974566675722599, -0.02995995804667473, -0.029364047572016716, 0.03771954029798508, 0.023132232949137688, 0.005560901947319508, 0.009077934548258781, -0.0006991681293584406, -0.02211933024227619, -0.0051018171943724155, 0.07315417379140854, 0.04322762414813042, -0.005935758352279663, 0.01799720712006092, -0.004622270353138447, 0.013885127380490303, 0.019027365371584892, -0.009175658226013184, -0.004002806730568409, 0.0037316372618079185, 0.03238583356142044, -0.012222747318446636, -0.016441291198134422, -0.02267649583518505, -0.01740480586886406, 0.0028678029775619507, -0.04596046358346939, 0.0169314406812191, -0.006773362401872873, -0.0035155729856342077, -0.011988039128482342, -0.03194065019488335, -0.03985275328159332, -0.016328265890479088, -0.09445646405220032, 0.039962396025657654, 0.005742023233324289, -0.0106829684227705, -0.01180022582411766, -0.03859493508934975, -0.014557475224137306, -0.03147104009985924, 0.04155902937054634, -0.020142456516623497, -0.026324722915887833, 0.012062438763678074, -0.01159494835883379, 0.030871661379933357, 0.03195735067129135, 0.046046171337366104, -0.016100382432341576, -0.02004696987569332, -0.007333667948842049, -0.013658900745213032, 0.051877208054065704, 0.021551748737692833, -0.0010532222222536802, -0.08918748795986176, 0.026461146771907806, 0.04416687414050102, 0.019619423896074295, -0.08634025603532791, 0.0030498038977384567, 0.031401462852954865, -0.012882169336080551, 0.05003303289413452, -0.013313091360032558, -0.02766340970993042, -0.04988594353199005, -0.011361115612089634, 0.02179201878607273, 0.0032747676596045494, 0.05742398649454117, -0.018729815259575844, 0.05076264962553978, 0.019174883142113686, -0.00672840466722846, -0.04841063916683197, -0.007287932094186544, -0.009476901963353157, 0.0344943068921566, -0.01250389777123928, -0.02367216907441616, -0.039712369441986084, -0.030986839905381203, -0.03780055418610573, 0.019374825060367584, -0.043655890971422195, -0.016674485057592392, 0.003254707669839263, 0.017537474632263184, -0.06971283257007599, 0.05825759470462799, -0.016278916969895363, 0.003986758179962635, -0.006577721796929836, -0.04975469410419464, 0.008324261754751205, 0.003474379191175103, 0.028175778687000275, 0.02056831866502762, 0.03970634564757347, -0.02854631096124649, 0.006606714334338903, 0.013473888859152794, 0.005360759329050779, 0.052211128175258636, -0.04071201756596565, 0.022140145301818848 ]
[ -0.07932022213935852, -0.036275167018175125, -0.01068124733865261, -0.012452967464923859, 0.021154671907424927, -0.04132663086056709, -0.021294619888067245, 0.0003127890813630074, -0.0045174197293818, -0.017313804477453232, 0.010152374394237995, -0.047377634793519974, 0.042746491730213165, 0.002308107679709792, 0.04549568146467209, 0.007393753156065941, -0.004572506528347731, -0.05689314007759094, -0.032003436237573624, 0.008876733481884003, 0.02080957032740116, -0.015071886591613293, -0.011917090974748135, 0.00474313972517848, -0.014654530212283134, 0.04828298091888428, 0.002687746426090598, -0.04588267579674721, -0.015392608940601349, -0.22159169614315033, -0.017823686823248863, -0.03417687490582466, 0.016015028581023216, -0.013530278578400612, 0.011268503963947296, 0.03757959231734276, 0.034040454775094986, 0.03362971916794777, -0.004993779584765434, 0.06077197566628456, -0.013903636485338211, 0.046800244599580765, -0.046547792851924896, -0.006628300994634628, 0.03496193885803223, -0.0032774973660707474, -0.04022698476910591, -0.005311635322868824, 0.020905565470457077, 0.00408597756177187, -0.06629066914319992, 0.004426485858857632, -0.02633073553442955, 0.0017762931529432535, -0.029230289161205292, 0.018824348226189613, 0.052370354533195496, 0.07242366671562195, 0.02117282524704933, 0.012594440020620823, 0.01135259959846735, -0.03187046945095062, -0.14080096781253815, 0.09916748851537704, 0.02231944166123867, 0.02342556230723858, -0.030073918402194977, 0.001810748828575015, -0.02742747776210308, 0.07998265326023102, -0.019948557019233704, 0.0026692065875977278, -0.0039794365875422955, 0.07986591756343842, 0.0225360207259655, -0.030644061043858528, 0.03262336924672127, 0.055572666227817535, 0.021660709753632545, -0.03400134667754173, -0.047133542597293854, 0.004147495608776808, 0.03473260626196861, -0.020496390759944916, -0.02454223856329918, -0.021294817328453064, -0.01097822841256857, 0.047837864607572556, 0.015027293004095554, 0.005596653558313847, 0.04600878804922104, -0.017419522628188133, 0.03411597013473511, 0.026841958984732628, -0.09850709140300751, -0.030428092926740646, -0.02438371069729328, 0.0278612170368433, -0.045492157340049744, 0.41096407175064087, -0.05379633232951164, -0.00764691224321723, 0.012229411862790585, 0.008423902094364166, -0.02340616285800934, -0.004470483399927616, -0.0074495780281722546, -0.012899704277515411, -0.030407682061195374, -0.03539819270372391, 0.008549872785806656, -0.03810091316699982, 0.07653715461492538, -0.07371281087398529, 0.025592800229787827, 0.01902821846306324, 0.01619395986199379, 0.016067970544099808, -0.03618364408612251, 0.003918929491192102, -0.03378123417496681, -0.021477073431015015, 0.04978741332888603, 0.0106990747153759, 0.03114912286400795, 0.033969443291425705, 0.06027524545788765, 0.054232437163591385, 0.06671981513500214, -0.0010381507454439998, 0.020232031121850014, -0.01445825770497322, -0.0839465856552124, -0.02246502973139286, 0.0017246592324227095, 0.029702212661504745, 0.033307407051324844, -0.04805611073970795, 0.017371254041790962, -0.019636187702417374, 0.020820878446102142, -0.03165128454566002, 0.009646586142480373, -0.01633622497320175, -0.02456539496779442, 0.1288711130619049, 0.007611825596541166, -0.011300328187644482, -0.021050402894616127, -0.03933946415781975, 0.018391232937574387, 0.03721160814166069, -0.00006640856008743867, -0.0879717692732811, -0.007835449650883675, 0.04872553423047066, 0.08563794940710068, -0.03559969738125801, -0.05024775117635727, 0.0063276467844843864, -0.03189607337117195, 0.0015351208858191967, -0.04437699168920517, 0.014440692029893398, 0.0234769769012928, -0.04405270516872406, -0.024484161287546158, -0.010645482689142227, -0.025840505957603455, -0.09115239232778549, 0.045977093279361725, -0.03515591844916344, -0.020502960309386253, -0.007770300842821598, 0.028653545305132866, -0.01717616431415081, -0.02443312108516693, -0.006296187173575163, 0.049645476043224335, 0.012739378027617931, 0.0002245375799247995, 0.029567230492830276, -0.06133022531867027, 0.004469053819775581, -0.00800303090363741, -0.07003650069236755, -0.049028050154447556, 0.016313234344124794, 0.022788647562265396, 0.0026190439239144325, 0.005525638349354267, -0.04201019927859306, -0.030673922970891, 0.036974817514419556, -0.05506036803126335, -0.01748274825513363, 0.02318483218550682, 0.011484253220260143, -0.001133588026277721, -0.022746924310922623, 0.05489104241132736, 0.021258467808365822, 0.009187458083033562, 0.021222854033112526, -0.026514731347560883, 0.02017921209335327, 0.04180129989981651, -0.02829914540052414, 0.07835238426923752, -0.011125526390969753, -0.03568420931696892, -0.03315052017569542, -0.04652787372469902, 0.0188499316573143, -0.04844171181321144, -0.046714190393686295, -0.022709358483552933, 0.003345147706568241, 0.04043450206518173, 0.022428730502724648, -0.027524709701538086, -0.11913423240184784, -0.013027065433561802, -0.3626861572265625, -0.04057532548904419, 0.009417964145541191, 0.0038988753221929073, 0.013794027268886566, -0.060889631509780884, 0.04089898616075516, -0.01054832898080349, -0.04992269352078438, 0.030977459624409676, 0.060613058507442474, -0.017278151586651802, -0.00405298825353384, -0.0850733146071434, 0.00266630039550364, 0.002910251496359706, -0.05004153773188591, -0.04682425782084465, -0.01447285432368517, 0.043181952089071274, 0.049876753240823746, -0.04556460306048393, -0.022521106526255608, -0.030749725177884102, 0.009709677658975124, -0.027802051976323128, 0.10655588656663895, 0.010419508442282677, 0.07382640242576599, -0.016786586493253708, 0.0693335235118866, 0.04969679191708565, -0.004394113086163998, -0.09337615221738815, -0.01579483225941658, -0.023277146741747856, -0.04955434426665306, 0.027127863839268684, -0.005325826350599527, 0.026546241715550423, -0.05146921053528786, 0.05103892460465431, -0.0342947281897068, -0.008822331205010414, -0.046914808452129364, 0.01621059700846672, 0.005505890119820833, -0.043955013155937195, -0.00021968359942547977, 0.04648629203438759, -0.01204489916563034, -0.01747426949441433, 0.03330380097031593, 0.031286317855119705, 0.0077848234213888645, -0.014863062649965286, -0.053254228085279465, -0.009429937228560448, -0.024926139041781425, -0.007807310204952955, 0.01056339405477047, 0.020180750638246536, 0.05526178702712059, -0.021151166409254074, -0.029614608734846115, 0.020885011181235313, 0.0034474418498575687, 0.021488970145583153, 0.0024347917642444372, -0.016873875632882118, -0.020217670127749443, 0.08953844755887985, -0.016456276178359985, 0.015568053349852562, -0.01799844205379486, 0.06515190005302429, -0.008412397466599941, -0.01683669164776802, 0.019941436126828194, -0.041348665952682495, 0.04058019444346428, 0.017300447449088097, 0.048360634595155716, -0.007599137723445892, 0.008467334322631359, 0.0497160479426384, -0.0008720910409465432, 0.046764615923166275, 0.03659440949559212, -0.003756413236260414, 0.03256579861044884, -0.00015942566096782684, 0.031202586367726326, -0.035013142973184586, 0.05816463381052017, 0.019373463466763496, -0.2568105459213257, 0.02201947383582592, 0.033310048282146454, 0.03942769020795822, -0.008325327187776566, 0.014572926796972752, 0.0298019852489233, -0.028078079223632812, 0.027268914505839348, 0.046071238815784454, 0.004404536448419094, 0.03886843100190163, -0.02305525541305542, -0.06058236211538315, -0.004301362205296755, -0.03546382486820221, 0.03566467761993408, 0.04468753561377525, 0.06294500827789307, 0.0044700587168335915, 0.022506706416606903, -0.012037115171551704, 0.183790922164917, -0.009268170222640038, 0.006110161542892456, 0.008489590138196945, 0.010047799907624722, 0.03499147668480873, 0.06295491755008698, 0.03533859923481941, -0.005451600067317486, -0.013615816831588745, 0.08017569035291672, 0.005507358815521002, 0.01219654269516468, -0.06479869782924652, 0.018562186509370804, 0.017576655372977257, 0.04251537472009659, -0.007148089352995157, -0.009832676500082016, 0.029030080884695053, -0.048745203763246536, 0.04413676634430885, 0.07037214934825897, 0.027273647487163544, 0.03459944576025009, -0.06871268898248672, -0.04016029089689255, 0.026440385729074478, -0.04090224206447601, -0.033064693212509155, 0.005542121361941099, -0.024436574429273605, 0.03349025920033455, 0.05284034460783005, 0.017310790717601776, -0.034175578504800797, -0.019982565194368362, -0.009368506260216236, 0.00940808653831482, -0.05468549206852913, 0.1450604498386383, 0.00423734076321125, 0.010555832646787167 ]
[ -0.015199859626591206, 0.012137752957642078, -0.02304822951555252, 0.04828474298119545, 0.030361726880073547, -0.0034974461887031794, 0.01543162576854229, 0.0667601004242897, 0.0020292059052735567, 0.010852616280317307, 0.021889397874474525, 0.014104786328971386, 0.014108963310718536, -0.0033240385819226503, 0.00833960622549057, -0.005386099219322205, -0.016086801886558533, -0.016547735780477524, 0.03930271044373512, -0.011181619949638844, -0.004575199913233519, 0.06667429953813553, 0.05654912069439888, -0.019789444282650948, 0.010454378090798855, 0.01467602327466011, -0.05315728858113289, -0.01091005839407444, 0.026057902723550797, -0.14625339210033417, 0.0189394298940897, -0.0008605927578173578, 0.0031172034796327353, 0.0024633407592773438, 0.035535503178834915, -0.023030349984765053, 0.02821219712495804, -0.039729129523038864, -0.032724689692258835, 0.010675402358174324, -0.007405573036521673, -0.016392966732382774, -0.0037470427341759205, 0.008179772645235062, -0.024053629487752914, -0.022924015298485756, 0.001051560160703957, -0.0037468455266207457, -0.01799274981021881, 0.014819003641605377, -0.04287222772836685, 0.02520877495408058, -0.037285447120666504, 0.018281342461705208, 0.021779218688607216, -0.016767701134085655, -0.029118886217474937, 0.0007391795516014099, -0.01345893181860447, -0.017993096262216568, 0.007304004393517971, -0.053189054131507874, -0.03956378996372223, -0.029764771461486816, 0.0005844568368047476, 0.00252998317591846, -0.006197735667228699, 0.03266472369432449, 0.0069593763910233974, -0.004288352094590664, 0.0021570255048573017, 0.03908965364098549, -0.029992900788784027, -0.01880989409983158, -0.027024393901228905, -0.027188096195459366, 0.02339751645922661, 0.01676511950790882, -0.014871290884912014, -0.020943494513630867, -0.027231814339756966, -0.00533221336081624, 0.01713072881102562, 0.009557013399899006, -0.022299574688076973, -0.016780784353613853, 0.004801474045962095, -0.0003503065090626478, 0.0020182766020298004, -0.041380271315574646, -0.030527053400874138, -0.004213965963572264, 0.022290943190455437, 0.02836102992296219, -0.08438210934400558, 0.01789703406393528, 0.019844617694616318, -0.0063196830451488495, -0.038448866456747055, 0.8232631087303162, 0.024954797700047493, 0.037199754267930984, 0.02297145128250122, -0.004662846680730581, -0.01230771653354168, -0.008235235698521137, 0.019161416217684746, 0.011961926706135273, -0.0008843491668812931, -0.08012690395116806, 0.012907343916594982, 0.01152649987488985, 0.04293765872716904, 0.021377883851528168, 0.021425042301416397, -0.017604772001504898, -0.012755957432091236, 0.02486474998295307, -0.00021615298464894295, 0.047180771827697754, 0.03429068624973297, -0.02053578570485115, 0.025290127843618393, 0.002414069604128599, 0.018886230885982513, -0.1700904369354248, 0.04717639088630676, -6.653773366182261e-33, 0.026999913156032562, 0.0025969473645091057, 0.0017474355408921838, 0.01965584047138691, 0.027054782956838608, -0.029461679980158806, 0.018800251185894012, 0.030015600845217705, -0.042129091918468475, -0.040957991033792496, 0.006140704732388258, -0.03147926181554794, -0.029549015685915947, -0.002617385471239686, 0.04898122698068619, -0.026769258081912994, -0.008632330223917961, 0.03187352046370506, 0.008061637170612812, 0.018832487985491753, 0.039331819862127304, 0.019469918683171272, 0.02856907993555069, 0.006955722812563181, -0.013934154994785786, 0.0038536328356713057, 0.010020006448030472, -0.014259980991482735, -0.005768654868006706, -0.03868965432047844, -0.013166496530175209, 0.01459415815770626, 0.03801082447171211, -0.04510796442627907, 0.014500658959150314, -0.037684205919504166, -0.027124881744384766, 0.002732006600126624, -0.011335599236190319, -0.05542084202170372, -0.015555606223642826, 0.024472277611494064, -0.0436837375164032, 0.0003056596324313432, -0.03900884464383125, -0.012569963932037354, -0.00514450715854764, 0.028017787262797356, -0.014665213413536549, 0.0355365090072155, 0.023592907935380936, 0.006005445029586554, -0.026130588725209236, 0.001562528545036912, -0.018684910610318184, -0.008764022029936314, -0.0216661524027586, -0.0011184668401256204, 0.01811021938920021, 0.02864980883896351, -0.0016092993319034576, -0.0035620098933577538, 0.010178799740970135, 0.016804484650492668, 0.008564633317291737, -0.018758239224553108, 0.04280461370944977, 0.009907519444823265, 0.02671734057366848, 0.037240833044052124, -0.03677035868167877, 0.001701597822830081, -0.011019372381269932, -0.031817369163036346, 0.036784619092941284, -0.025786610320210457, -0.018215738236904144, -0.04372277483344078, 0.0038590917829424143, 0.03550609201192856, 0.003183757420629263, -0.044914308935403824, -0.01425908599048853, -0.021141164004802704, -0.023259228095412254, 0.004603933542966843, 0.020923692733049393, -0.019028624519705772, -0.027286453172564507, 0.012882158160209656, 0.03457385301589966, 0.047943323850631714, 0.020161308348178864, -0.05152365565299988, -0.021924486383795738, 7.101321534422738e-33, 0.018338602036237717, -0.008710582740604877, -0.011119815520942211, -0.00258815404959023, 0.012576536275446415, -0.009398645721375942, 0.035413868725299835, 0.05090336501598358, -0.002515126019716263, 0.038801971822977066, -0.032599736005067825, 0.018338672816753387, -0.029427459463477135, -0.011292338371276855, 0.05967968329787254, -0.035694777965545654, 0.019973646849393845, -0.04083039239048958, 0.03347925469279289, 0.018795285373926163, -0.00019596188212744892, -0.011994526721537113, 0.022158218547701836, 0.01944497972726822, 0.043262794613838196, 0.06685763597488403, -0.020347872748970985, -0.0010902960784733295, -0.01227208785712719, -0.010903913527727127, 0.05918142572045326, -0.03330593556165695, -0.0016051491256803274, -0.0524219274520874, -0.01677338406443596, 0.03308144211769104, 0.03157752379775047, 0.02047090418636799, -0.0040227510035037994, 0.010976881720125675, 0.03455362841486931, 0.0050414204597473145, -0.02156025916337967, -0.03794551640748978, 0.0014678769512102008, -0.004707248415797949, -0.01619378663599491, 0.0019176385831087828, -0.014169941656291485, 0.011075523681938648, 0.030776550993323326, 0.022047825157642365, -0.016662586480379105, 0.025796610862016678, 0.030015015974640846, -0.009802772663533688, -0.023870427161455154, -0.016517436131834984, -0.0386444628238678, -0.021286822855472565, -0.019326433539390564, 0.0018088612705469131, -0.012321420013904572, -0.0008618391584604979, -0.01603911817073822, -0.02710389532148838, -0.006038933992385864, -0.015654567629098892, -0.011067667976021767, 0.008740313351154327, -0.0026887627318501472, -0.03434491530060768, -0.020434243604540825, 0.0417843721807003, 0.016314607113599777, 0.0020551118068397045, -0.013283836655318737, -0.0011657449649646878, -0.028719855472445488, 0.013533205725252628, -0.0041946787387132645, 0.014632203616201878, -0.0018369500758126378, 0.005225379019975662, -0.009091425687074661, -0.026051873341202736, 0.006092916242778301, -0.014555031433701515, 0.037633515894412994, 0.0042853704653680325, 0.001198147889226675, -0.0838850662112236, -0.0018680524080991745, 0.0033488962799310684, 0.0010076648322865367, -1.2490179557289594e-8, -0.09236303716897964, -0.024057114496827126, -0.0206049382686615, 0.06046314910054207, 0.04867951199412346, -0.009097875095903873, -0.041298724710941315, 0.022153958678245544, 0.024965623393654823, -0.013496771454811096, 0.04332911595702171, -0.011346706189215183, 0.0013798829168081284, 0.02304738759994507, 0.027078455314040184, -0.029711997136473656, 0.0545562207698822, -0.00022035269648768008, 0.018439792096614838, 0.003946049604564905, 0.012621068395674229, 0.017002981156110764, -0.0014133312506601214, 0.007411588914692402, -0.012391075491905212, -0.0010858894092962146, 0.04828896373510361, -0.08743023127317429, 0.015193333849310875, -0.0197053924202919, 0.03453170135617256, -0.03268957510590553, -0.005965867545455694, 0.022258251905441284, -0.02278171293437481, -0.029380248859524727, 0.00857129693031311, 0.022668195888400078, 0.012538659386336803, 0.025138184428215027, 0.00849362276494503, 0.007285003084689379, 0.027382254600524902, -0.01156179141253233, -0.029799122363328934, -0.04887942969799042, -0.024440664798021317, -0.00914829783141613, 0.025530477985739708, -0.031510017812252045, -0.001016416004858911, -0.016474047675728798, 0.0035655242390930653, 0.029842115938663483, 0.014368006028234959, -0.007494016550481319, 0.03561130538582802, -0.02858143113553524, -0.05751883611083031, 0.0008877356885932386, 0.05648467317223549, 0.021760711446404457, -0.016492731869220734, 0.002437235089018941 ]
f-word-count-using-a-dictionary
https://markhneedham.com/blog/2009/12/20/f-word-count-using-a-dictionary
false
2009-12-20 03:52:12
Book Club: Working Effectively With Legacy Code - Chapters 12 & 13 (Michael Feathers)
[ "book-club" ]
[ "Book Club" ]
In the last Sydney book club that I attended before I moved back to the UK we discussed Chapters 12 and 13 of Michael Feathers' 'http://www.amazon.com/gp/product/0131177052?ie=UTF8&tag=marneesblo-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=0131177052[Working Effectively With Legacy Code]' http://lizdouglass.wordpress.com[Liz] has taken over the http://lizdouglass.wordpress.com/2009/12/10/book-club-working-effectively-with-legacy-code-–-chapters-14-15-and-16-michael-feathers/[summarising of the book club] now that I'm not there so if you want to keep on reading about the book club Liz's blog is the place to go! == Chapter 12 - I Need to Make Many Changes in One Area. Do I Have to Break Dependencies for All the Class Involved? One of the ideas suggested in this chapter is that *when writing tests we should try and write these as close to the change point as possible*. Ideally we want to write a test directly against the method that we're changing but sometimes that isn't possible. In this case Feathers suggests writing a test at the closest interception point (place to detect effects) and then changing the code at the change point to ensure that the test fails as expected. Tony Pitluga describes this approach in more detail in http://tonypitluga.blogspot.com/2009/05/gain-confidence-before-you-refactor.html[his post about gaining confidence before refactoring]. When working out where we need to write our tests, Feathers suggests that we need to look for *pinch points* i.e. methods from which we can detect changes in other methods in a class. Feathers has a nice analogy where he compares this approach to 'walking several steps into a forest and drawing a line, saying "I own all of this area".' We can then work with the code in that area of the code base with some degree of safety until we've got the code into a better state at which point we might decide the pinch point tests are no longer needed. == Chapter 13 - I Need to Make a Change, but I Don't Know What Tests to Write Feather suggests writing http://www.markhneedham.com/blog/2009/12/03/book-club-working-effectively-with-legacy-code-chapter-11-michael-feathers/[characterisation tests] - tests to document what the system currently does - for the parts of the code base that we're currently working on. This is the approach that http://intwoplacesatonce.com/[Dave] encouraged on the last project I worked on - trying to write tests for code that we're not currently working on is a bit risky since we're not really sure what the behaviour is supposed to be. In addition we don't get much benefit from them since we're not changing anything in that area. Feathers also points out that we shouldn't try to fix any 'bugs' that we come across while writing these tests - we should instead raise them and see if anything needs to be done. I remember watching an Uncle Bob presentation where he described how he had 'fixed a bug' which actually broke all dependent systems which relied on the bug being there. This is the situation we're trying to avoid! Another approach suggested if we're having difficulty testing a large chunk of code is to refactor it into smaller methods and then test directly against those instead. I think this works well as a short term approach until we can test more easily from elsewhere.
null
null
[ -0.002179468749091029, -0.016728444024920464, -0.0007091899169608951, 0.027601733803749084, 0.08927669376134872, 0.0007749357610009611, 0.03650959953665733, 0.023694217205047607, 0.040874261409044266, -0.020436108112335205, -0.023807330057024956, 0.0023503995034843683, -0.04941186681389809, -0.006413792259991169, -0.04956604167819023, 0.07275412231683731, 0.06642729043960571, 0.004564359784126282, 0.019225068390369415, 0.001254907576367259, 0.030117670074105263, 0.07697310298681259, 0.005934949032962322, 0.03958704322576523, 0.03735345974564552, -0.0021627529058605433, 0.015897024422883987, -0.010563178919255733, -0.0542929470539093, 0.018170319497585297, 0.027689380571246147, -0.005827353335916996, 0.012332971207797527, -0.0038498921785503626, 0.02110403962433338, -0.0088399238884449, -0.02170969732105732, 0.024733830243349075, 0.031150510534644127, -0.003964705858379602, -0.05827663093805313, 0.035241205245256424, -0.02302420139312744, -0.00018077041022479534, -0.04401791840791702, 0.012191789224743843, -0.047052014619112015, 0.012119840830564499, -0.007955262437462807, -0.039307206869125366, -0.07314097136259079, 0.05207173898816109, 0.005783018656075001, -0.031372226774692535, 0.00882642436772585, 0.06598176807165146, 0.00023859759676270187, -0.04690948501229286, 0.023340225219726562, -0.057849906384944916, -0.006922728847712278, 0.010786212049424648, -0.010783614590764046, 0.04417417198419571, 0.04115109145641327, -0.040523964911699295, -0.011152073740959167, 0.04587557166814804, -0.029279859736561775, -0.015163284726440907, -0.012974418699741364, 0.017391346395015717, -0.008784905076026917, 0.004895967431366444, -0.0159098282456398, -0.02979918196797371, 0.0037125437520444393, 0.08749384433031082, 0.029355021193623543, 0.049952492117881775, 0.0021588436793535948, 0.025824563577771187, 0.012383393943309784, 0.009702318347990513, -0.01154020894318819, -0.04139767587184906, -0.00425045657902956, -0.01996307633817196, -0.04084441810846329, 0.06218544766306877, -0.0018694553291425109, -0.07757750153541565, 0.020771346986293793, 0.05800063535571098, 0.005491979885846376, 0.011855400167405605, 0.018863225355744362, 0.00872131623327732, -0.004072081297636032, -0.03862496465444565, -0.04173296317458153, -0.034142330288887024, 0.02870846539735794, 0.0007464722730219364, -0.0763525515794754, 0.002943105064332485, -0.011257895268499851, -0.028556503355503082, -0.010360406711697578, 0.007279345765709877, -0.03237837553024292, 0.008330312557518482, -0.02305654250085354, -0.012105991132557392, -0.08740875869989395, 0.05815919116139412, -0.002945793094113469, -0.02302943915128708, -0.01471723709255457, 0.018149254843592644, 0.031650274991989136, 0.038270074874162674, 0.018183613196015358, 0.09044796228408813, 0.02810991369187832, 0.039758119732141495, -0.03480643406510353, 0.06255973875522614, -0.03009617328643799, -0.06841196119785309, -0.002114703645929694, 0.04127828776836395, -0.04188484326004982, -0.012779059819877148, -0.008017055690288544, 0.00665799668058753, -0.018796809017658234, 0.007013658527284861, 0.031508054584264755, 0.05899351090192795, 0.003814839292317629, -0.02812376245856285, 0.014823338016867638, 0.0014691365649923682, 0.019413677975535393, 0.001116849947720766, -0.010260554030537605, -0.01970810815691948, -0.024980755522847176, 0.00048514336231164634, 0.01708289235830307, 0.029096176847815514, 0.011865423060953617, -0.05011364445090294, 0.010969182476401329, 0.06538022309541702, 0.021949149668216705, 0.024560697376728058, -0.036208368837833405, 0.033788807690143585, 0.05281032621860504, 0.03267093375325203, 0.03782447800040245, 0.03406340628862381, -0.004025289788842201, -0.005212719552218914, -0.0036690826527774334, 0.049322228878736496, 0.0008112994255498052, 0.028674421831965446, -0.06659316271543503, -0.0319826677441597, 0.059055741876363754, -0.051909442991018295, 0.0017050303285941482, 0.03062872774899006, 0.0653064027428627, 0.026544511318206787, 0.02808472327888012, -0.0032486175186932087, -0.07610731571912766, 0.041012946516275406, 0.01932331547141075, 0.022189589217305183, -0.006743247155100107, -0.02204277738928795, 0.06888877600431442, 0.04678550735116005, 0.011513096280395985, 0.042142655700445175, -0.08599352091550827, -0.0836186334490776, 0.0040260967798531055, -0.037396885454654694, 0.07534489780664444, -0.02685864455997944, 0.020723124966025352, 0.0737801268696785, 0.011548780836164951, 0.0569985993206501, 0.04225926101207733, -0.00335023389197886, 0.02892415225505829, -0.026439763605594635, -0.03644322603940964, 0.03716243803501129, 0.0230141282081604, 0.004830426536500454, -0.06267832219600677, 0.012359199114143848, -0.014033768326044083, 0.02256830595433712, 0.047746580094099045, 0.01809411495923996, 0.02970782294869423, 0.013811671175062656, 0.06616943329572678, -0.029914649203419685, 0.08029485493898392, -0.07468502968549728, 0.009409413672983646, -0.003298769937828183, -0.02689073048532009, -0.020216455683112144, 0.003026502439752221, 0.11406596004962921, 0.05990538001060486, -0.04271325841546059, -0.040904492139816284, 0.0063360934145748615, -0.0018101799068972468, -0.06750310957431793, 0.0010073311859741807, -0.006148586515337229, 0.016275852918624878, -0.02454429492354393, -0.05901074409484863, -0.014368277043104172, 0.0407075509428978, -0.04651282727718353, 0.004871978424489498, 0.06870432198047638, -0.008597364649176598, 0.050295744091272354, -0.022159460932016373, -0.0030132876709103584, -0.020745685324072838, -0.004421750083565712, -0.033301353454589844, 0.016615014523267746, 0.016794729977846146, -0.002439080737531185, 0.04069847613573074, -0.05025842785835266, -0.03361491113901138, -0.003218273865059018, -0.04399678483605385, 0.0007142375106923282, 0.06055615842342377, 0.04951997101306915, 0.004990146029740572, 0.03556531295180321, 0.0008173330570571125, 0.0354502834379673, 0.011308468878269196, -0.04333397001028061, -0.032208170741796494, -0.04408049210906029, 0.0046153319999575615, 0.014393427409231663, 0.012371565215289593, 0.034563396126031876, 0.025347813963890076, 0.01580275036394596, -0.022473841905593872, 0.0042593893595039845, 0.025851836428046227, 0.007179688662290573, -0.0135741475969553, -0.02639477513730526, -0.0196145698428154, 0.03812701627612114, -0.060472358018159866, -0.03785333037376404, 0.021124936640262604, -0.0676257386803627, 0.057279109954833984, -0.048435989767313004, -0.056697409600019455, -0.0002707801468204707, 0.011444918811321259, 0.04567712917923927, 0.0041870842687785625, 0.023078760132193565, 0.04902562126517296, 0.004730120301246643, -0.004008365795016289, 0.015820719301700592, -0.0013114927569404244, 0.033791400492191315, 0.01849851757287979, -0.014260940253734589, 0.02752094902098179, 0.004053506534546614, -0.019336974248290062, -0.03934696316719055, 0.024753833189606667, -0.03080913797020912, -0.29005175828933716, 0.053752750158309937, -0.010036434978246689, -0.044814907014369965, 0.032901689410209656, -0.03184621036052704, -0.0030126834753900766, -0.05080636590719223, -0.021032165735960007, 0.03315028175711632, -0.026536516845226288, -0.0591413676738739, -0.00739744957536459, 0.05677798017859459, -0.00008177389827324077, 0.02120785601437092, 0.010058840736746788, -0.04539269208908081, 0.007076271343976259, 0.062000129371881485, -0.004251489415764809, -0.06993894279003143, 0.006902899127453566, 0.0337241068482399, 0.025120995938777924, 0.06941106170415878, -0.10192613303661346, 0.04282628744840622, -0.05011604353785515, -0.018037734553217888, 0.012041516602039337, 0.00003272807953180745, -0.0014277735026553273, -0.012875274755060673, -0.005749828647822142, -0.007490116637200117, 0.023434067144989967, 0.014458836987614632, -0.04008815065026283, 0.008814365603029728, -0.042362846434116364, -0.026186633855104446, -0.023957232013344765, 0.01800014078617096, 0.07703720033168793, 0.003513028845191002, -0.06332764029502869, -0.01885840855538845, -0.014432290568947792, 0.09078092128038406, -0.04535599425435066, -0.017478449270129204, -0.012459984980523586, 0.029089003801345825, -0.01664150506258011, -0.04083304479718208, 0.011385137215256691, -0.028562072664499283, -0.0320809967815876, -0.02304449863731861, -0.018742760643363, -0.050262339413166046, 0.02110520377755165, -0.04514535516500473, -0.0019487524405121803, -0.062062911689281464, -0.07803889364004135, -0.017943494021892548, 0.06541253626346588, -0.0010140486992895603, -0.04562690109014511, -0.00304454006254673, -0.016953296959400177, -0.10632771998643875, -0.024406099691987038, -0.031575124710798264, -0.004346100147813559, -0.006498162634670734, 0.013294643722474575, 0.053473345935344696, -0.022246289998292923, -0.05551610514521599, 0.02065937966108322, 0.002876773476600647, 0.015742020681500435, 0.0006965436623431742, 0.0073415013030171394, 0.017167726531624794, -0.013483596965670586, -0.0020551171619445086, 0.07109830528497696, 0.016340088099241257, -0.03320521116256714, -0.035314735025167465, 0.033361706882715225, 0.013304660096764565, 0.023428553715348244, -0.02357201650738716, 0.01674765907227993, 0.03629476577043533, -0.0038351607508957386, -0.058161985129117966, 0.04062965139746666, -0.038377050310373306, -0.0029202629812061787, -0.014685031957924366, -0.04125070571899414, 0.031813252717256546, 0.04250280559062958, 0.007749298121780157, 0.001669188030064106, -0.03740271180868149, 0.009206012822687626, -0.04187259078025818, -0.058448418974876404, -0.0214164387434721, 0.021531783044338226, 0.02287229336798191, -0.030857844278216362, -0.0158793106675148, -0.05313492193818092, 0.003120474051684141, -0.03035910241305828, -0.02148287370800972, -0.05816260352730751, -0.0409206859767437, -0.01185170654207468, -0.0275912843644619, -0.0004785775381606072, 0.023851223289966583, -0.018925117328763008, 0.02665700390934944, 0.023546013981103897, -0.04552266374230385, 0.004375136457383633, 0.004244192503392696, -0.062198106199502945, -0.028014618903398514, -0.005238255485892296, 0.012283699586987495, -0.034657690674066544, 0.022246887907385826, -0.004335586912930012, 0.027621150016784668, 0.03499297797679901, 0.000553732446860522, 0.028499027714133263, -0.027883775532245636, 0.01672518067061901, 0.028049571439623833, 0.016422366723418236, -0.05083196237683296, 0.02928714081645012, -0.04688652977347374, -0.029929477721452713, -0.022893335670232773, 0.02194737084209919, -0.0023565765004605055, -0.01782684028148651, -0.003126912983134389, 0.03593681380152702, -0.05516795441508293, -0.02422681450843811, -0.028750769793987274, 0.004270945210009813, 0.057022836059331894, -0.023067226633429527, 0.05102040618658066, -0.02883288264274597, -0.03501807898283005, -0.007324331905692816, 0.007820898666977882, -0.04434015601873398, 0.034905921667814255, 0.015016741119325161, 0.0003087896038778126, -0.005285416264086962, -0.008418191224336624, 0.046581193804740906, -0.007764942478388548, -0.013572180643677711, -0.05088505521416664, 0.006079305894672871, -0.004702137317508459, 0.04399316385388374, 0.004526361357420683, 0.0005502334097400308, -0.02045394666492939, -0.02981588803231716, -0.035148654133081436, -0.03600337356328964, -0.0053866105154156685, -0.007236522622406483, 0.032732877880334854, -0.045198552310466766, -0.06968992948532104, 0.03521515429019928, 0.0287138931453228, 0.017282357439398766, 0.012118224985897541, -0.013029034249484539, 0.015162843279540539, -0.017781514674425125, 0.03666788712143898, 0.051632001996040344, -0.06075238436460495, -0.007698496803641319, -0.01890060119330883, -0.002199977869167924, 0.005788773763924837, -0.0005701086483895779, -0.06511068344116211, -0.016659723594784737, 0.010382081381976604, 0.0008321035420522094, -0.05267795920372009, -0.031025167554616928, -0.02349718101322651, 0.028092408552765846, -0.0032225444447249174, -0.003289790591225028, -0.029299665242433548, 0.018796315416693687, -0.011064963415265083, -0.01809297874569893, 0.016807492822408676, -0.009114822372794151, 0.0051593780517578125, 0.022364560514688492, -0.045834288001060486, 0.024779286235570908, -0.022100573405623436, 0.036987680941820145, 0.011039446108043194, -0.007417313754558563, 0.0015818020328879356, -0.04354891926050186, -0.006761989090591669, 0.0065175495110452175, 0.040325138717889786, -0.006564641371369362, -0.006127377040684223, -0.02221720665693283, -0.002635212615132332, -0.04382256790995598, 0.028762314468622208, -0.02721090242266655, -0.04065755382180214, 0.017953814938664436, 0.057439956814050674, 0.015046348795294762, 0.03165888041257858, 0.016076844185590744, -0.0033633089624345303, 0.0492439903318882, -0.0648757666349411, -0.02484550140798092, -0.019965453073382378, -0.06687706708908081, 0.012951688840985298, 0.015345021151006222, 0.029126135632395744, -0.03849489241838455, 0.03758876770734787, 0.0024654604494571686, 0.03003743104636669, 0.027450142428278923, -0.008048546500504017, 0.017171645537018776, -0.06214674934744835, 0.024226132780313492, -0.08781955391168594, 0.013358204625546932, 0.028129400685429573, 0.007108733523637056, -0.009500651620328426, 0.013739879243075848, -0.053530968725681305, 0.04686949402093887, -0.06684993207454681, -0.012916363775730133, 0.046390026807785034, -0.00548595143482089, -0.005437876097857952, -0.0017838992644101381, -0.060203585773706436, 0.028195133432745934, 0.029257217422127724, -0.04274807497859001, -0.02184377983212471, -0.03224185109138489, 0.05653786286711693, 0.009772843681275845, 0.037854429334402084, -0.022842613980174065, -0.005151404067873955, 0.05897226184606552, 0.007024304009974003, 0.021230904385447502, 0.021392401307821274, -0.02341242879629135, 0.030678562819957733, 0.02695339173078537, 0.02129419334232807, 0.0073556615971028805, 0.016608329489827156, 0.026295099407434464, -0.053062912076711655, 0.048397958278656006, -0.00851856917142868, -0.02563365362584591, -0.02885310910642147, 0.057939037680625916, 0.022146955132484436, -0.017169231548905373, -0.059154246002435684, 0.015227247960865498, -0.0559200644493103, -0.014358563348650932, -0.015039779245853424, -0.02709984965622425, -0.04372591897845268, 0.061285924166440964, -0.006051199045032263, -0.010052005760371685, 0.05482205003499985, -0.021063335239887238, -0.007790085859596729, -0.03048250451683998, 0.08042547106742859, 0.06860238313674927, 0.07399607449769974, 0.01876208186149597, 0.06802386045455933, 0.004991916008293629, -0.0480053573846817, -0.0018654363229870796, 0.0006485602934844792, -0.0027583178598433733, -0.01252371072769165, 0.027244452387094498, 0.05661069601774216, -0.0009007558110170066, 0.046993885189294815, -0.03038850985467434, -0.0034959896001964808, -0.003936935216188431, 0.028214717283844948, 0.013218521140515804, 0.08602311462163925, 0.008780702948570251, 0.031042546033859253, -0.02286309376358986, -0.0507691353559494, 0.0544775053858757, -0.026451697573065758, -0.010266336612403393, 0.02891855128109455, -0.02285926416516304, 0.023099385201931, 0.016026217490434647, 0.04585758224129677, 0.06882663071155548, -0.033042747527360916, -0.003402343951165676, 0.0020005011465400457, 0.027961404994130135, 0.020000983029603958, 0.010234232060611248, -0.034793563187122345, -0.02053731121122837, 0.006683475337922573, -0.04687297344207764, -0.03737323358654976, -0.011050691828131676, -0.010786766186356544, 0.03409050405025482, -0.006413637660443783, 0.014196416363120079, 0.03604104742407799, 0.004474113695323467, -0.05494050309062004, -0.04884829744696617, -0.04816274717450142, -0.03274709731340408, -0.05461709201335907, -0.010471479035913944, 0.006715787574648857, -0.000589223753195256, -0.02799157239496708, -0.0036819244269281626, -0.03251665458083153, -0.037057504057884216, 0.04200134426355362, -0.05514038726687431, -0.013627652078866959, 0.0026562961284071207, 0.010834957472980022, 0.02546883001923561, 0.01316814310848713, 0.043906319886446, 0.022370878607034683, -0.014791552908718586, -0.006886992137879133, 0.020053762942552567, 0.03092568926513195, 0.013181918300688267, 0.04252849891781807, -0.10136344283819199, 0.01170452032238245, 0.013994081877171993, 0.018733184784650803, -0.0576341487467289, 0.03931093588471413, 0.006645859219133854, -0.040156684815883636, 0.038432177156209946, -0.00466857710853219, 0.01102448906749487, 0.006134888157248497, -0.02252904139459133, -0.004290557932108641, 0.02413336932659149, 0.031955692917108536, -0.011501949280500412, 0.08149977028369904, -0.004221259616315365, -0.023926079273223877, -0.04801834374666214, -0.024065183475613594, 0.0036121581215411425, 0.016789419576525688, -0.03872276097536087, -0.03233925998210907, -0.018199125304818153, -0.06430134922266006, -0.001472385716624558, 0.02926561050117016, -0.011837426573038101, -0.016907084733247757, 0.014672250486910343, 0.021062947809696198, -0.021464284509420395, 0.039854053407907486, -0.024146659299731255, 0.027197787538170815, -0.02158934623003006, -0.01711864024400711, 0.01575976237654686, 0.001128677511587739, 0.009334919042885303, 0.01347402110695839, 0.016796978190541267, -0.044738806784152985, -0.010686388239264488, 0.00011221811291761696, 0.0004878459731116891, 0.044533275067806244, -0.036145973950624466, -0.019185997545719147 ]
[ -0.10242963582277298, -0.005923912860453129, 0.0039008616004139185, -0.011926277540624142, 0.04513668268918991, -0.013453547842800617, -0.03076357953250408, 0.019445037469267845, -0.01141017209738493, -0.0212514977902174, -0.0024450107011944056, -0.018184414133429527, -0.02054901048541069, 0.012994611635804176, 0.04472099989652634, -0.006159687880426645, -0.01427486352622509, -0.054632045328617096, -0.013718213886022568, 0.027909209951758385, -0.01349679660052061, -0.021855367347598076, -0.01779290847480297, 0.014030206017196178, 0.041440755128860474, 0.03581887483596802, 0.05863805115222931, -0.034584641456604004, -0.0052854442037642, -0.20361825823783875, -0.00790703110396862, 0.02002475969493389, 0.022720199078321457, -0.02828921377658844, 0.0022110617719590664, 0.055474381893873215, 0.022048529237508774, 0.011254124343395233, 0.010950217954814434, 0.057028524577617645, 0.03283233940601349, 0.022075915709137917, -0.0370265394449234, 0.0037958193570375443, 0.03963277488946915, 0.016221001744270325, 0.013815946877002716, -0.042967844754457474, -0.007287257816642523, 0.006332111079245806, -0.05072204768657684, -0.05287650227546692, -0.009523500688374043, -0.01917070522904396, -0.017968764528632164, 0.020505506545305252, 0.030010849237442017, 0.06893616914749146, 0.006681483238935471, 0.011926619336009026, 0.00592834921553731, -0.02669232152402401, -0.16919180750846863, 0.10183440148830414, 0.03187224268913269, 0.06023624166846275, -0.01962084323167801, -0.00682040024548769, 0.005078787449747324, 0.10779363662004471, -0.04027475416660309, -0.013963419012725353, -0.019269293174147606, 0.07483772933483124, 0.01672189123928547, 0.01348867081105709, 0.021820202469825745, 0.01661054417490959, 0.044629499316215515, -0.04918826371431351, -0.021986067295074463, -0.02060318924486637, -0.022628054022789, -0.024243203923106194, -0.01654091663658619, 0.003986603580415249, -0.01723582297563553, 0.026491213589906693, 0.03820754960179329, 0.01556046400219202, 0.05679643154144287, -0.03920702636241913, 0.04035685956478119, 0.019649742171168327, -0.08684008568525314, -0.03818489983677864, -0.009062955155968666, 0.0030733735766261816, -0.034380555152893066, 0.43580445647239685, -0.040244512259960175, -0.010815790854394436, 0.037490326911211014, 0.051276326179504395, -0.007769820746034384, -0.03169854357838631, 0.058135729283094406, -0.055708128958940506, 0.029702525585889816, -0.03472514450550079, 0.024856941774487495, 0.009154054336249828, 0.09301646798849106, -0.057199716567993164, 0.0009170346893370152, 0.028653688728809357, 0.02323652245104313, 0.01988253742456436, -0.0014077848754823208, -0.004616326652467251, -0.007876850664615631, -0.006098983343690634, 0.0015420874115079641, -0.019653864204883575, -0.008786640129983425, -0.035375144332647324, 0.004628119058907032, 0.05600828304886818, 0.01860097050666809, 0.007945498451590538, 0.04962965101003647, -0.046515755355358124, -0.07396699488162994, -0.013744688592851162, 0.007903266698122025, 0.03327599912881851, 0.022446366026997566, -0.011268412694334984, 0.03475678712129593, 0.024774271994829178, 0.009219713509082794, -0.01706751063466072, 0.021586986258625984, 0.021724216639995575, -0.042445406317710876, 0.1026216521859169, 0.0091822799295187, -0.028381114825606346, -0.013541092164814472, -0.016111599281430244, 0.024017006158828735, 0.023012325167655945, -0.0333031602203846, -0.04759733006358147, 0.032770175486803055, 0.012968458235263824, 0.09249338507652283, -0.005005388054996729, -0.0411125011742115, -0.029308807104825974, -0.0050662425346672535, -0.016351277008652687, -0.060602664947509766, 0.03790240362286568, 0.05122965946793556, -0.09116335958242416, -0.008656338788568974, -0.0001691241341177374, -0.004070115275681019, -0.08097659796476364, 0.015267221257090569, 0.019188277423381805, -0.028907697647809982, 0.009072291664779186, 0.06747247278690338, -0.013521280139684677, -0.019670989364385605, 0.023796321824193, 0.06387150287628174, 0.026265567168593407, 0.00569732952862978, 0.014931218698620796, -0.04243052005767822, 0.009069993160665035, -0.02167952060699463, -0.07227611541748047, -0.037698954343795776, -0.03352062404155731, -0.01966463215649128, 0.009401100687682629, -0.015157362446188927, -0.01113750971853733, -0.09717533737421036, 0.08929100632667542, -0.016534889116883278, -0.02839394100010395, 0.01598985865712166, -0.010863853618502617, -0.024351712316274643, -0.03896191716194153, -0.054086074233055115, 0.020007748156785965, -0.03795280680060387, 0.01805439405143261, -0.04660678654909134, 0.0661378875374794, 0.07393871247768402, -0.06731034815311432, 0.08929608762264252, 0.052129581570625305, -0.06179417297244072, -0.0474223755300045, 0.022972214967012405, 0.003026698250323534, 0.006353671662509441, -0.017303284257650375, -0.01009450014680624, 0.015639113262295723, -0.016332458704710007, 0.013471345417201519, 0.008597895503044128, -0.03933503106236458, -0.014086293056607246, -0.36409974098205566, -0.02818109840154648, -0.014710099436342716, -0.02618132159113884, 0.01339053362607956, -0.06897605210542679, 0.005334849003702402, -0.013610917143523693, -0.03851621225476265, 0.008839751593768597, 0.07587965577840805, -0.03868815675377846, 0.029461190104484558, -0.07111922651529312, 0.019464591518044472, -0.00046278818626888096, -0.038323719054460526, -0.048854392021894455, -0.046712521463632584, 0.007563470862805843, 0.009742075577378273, -0.020417338237166405, -0.026599865406751633, -0.05403589829802513, -0.005636636633425951, -0.03897574543952942, 0.08386789262294769, -0.00799181591719389, 0.09336425364017487, -0.02208114042878151, 0.030957890674471855, 0.015239035710692406, 0.039896994829177856, -0.07916560024023056, 0.002828465076163411, 0.006676869932562113, -0.02475176751613617, -0.018445156514644623, 0.011960778385400772, -0.05683604255318642, -0.013733218424022198, 0.05125027894973755, -0.06407739967107773, -0.02676093950867653, -0.08416774123907089, 0.022370563820004463, -0.01235649362206459, -0.028244275599718094, -0.024860190227627754, 0.07073384523391724, 0.030616512522101402, 0.00007895953604020178, -0.015392147935926914, 0.02017240971326828, -0.03291994705796242, -0.02296873927116394, -0.0677093118429184, 0.02448910102248192, -0.0015396374510601163, -0.017465762794017792, 0.030810222029685974, 0.07367397099733353, 0.03002730943262577, -0.05015498027205467, 0.004969517234712839, 0.006927952170372009, -0.012335347011685371, -0.02101215161383152, 0.06723291426897049, -0.01583375595510006, -0.029182765632867813, 0.06010749563574791, 0.01038416475057602, -0.030240869149565697, 0.021813111379742622, 0.03721848875284195, -0.018671095371246338, 0.045226696878671646, 0.004411025438457727, -0.013240325264632702, 0.00826284196227789, -0.017707398161292076, 0.0262911356985569, -0.026398437097668648, -0.017948586493730545, 0.02223402075469494, -0.01531402301043272, -0.025083862245082855, 0.06461826711893082, 0.02378409169614315, -0.054038260132074356, 0.025008589029312134, -0.01685374602675438, -0.019488753750920296, 0.05815066769719124, 0.0010827508522197604, -0.2227630913257599, -0.0008414764888584614, 0.06476341933012009, 0.06082122400403023, -0.002699061529710889, 0.02122122421860695, 0.03909669071435928, -0.056948140263557434, 0.011759757995605469, 0.01801144890487194, 0.03604437783360481, 0.03234582394361496, 0.007420527283102274, -0.00535604590550065, 0.03879816085100174, -0.010199137032032013, 0.0544096864759922, 0.006869800854474306, 0.001195307937450707, -0.007790407165884972, 0.02989368885755539, -0.014458267949521542, 0.14839525520801544, 0.026506714522838593, 0.01687532104551792, -0.015477268025279045, 0.027277665212750435, 0.012363645248115063, 0.07450052350759506, 0.0005941989948041737, 0.02788745053112507, -0.009450701996684074, 0.03102770820260048, 0.000480019225506112, 0.02107122726738453, -0.07471390813589096, -0.04757016897201538, 0.025248097255825996, 0.03103686310350895, -0.0017133568180724978, 0.03339396044611931, 0.006723673082888126, -0.0727248266339302, 0.0015733458567410707, 0.07228964567184448, 0.023525800555944443, -0.025660715997219086, -0.039706505835056305, -0.05519939586520195, 0.0024024508893489838, -0.018429003655910492, -0.022534135729074478, 0.016603585332632065, -0.010726898908615112, 0.0011987993493676186, 0.0680835172533989, 0.030228547751903534, -0.03016665391623974, -0.020514104515314102, 0.010421842336654663, -0.004676993004977703, -0.020450126379728317, 0.14081205427646637, 0.0328553132712841, 0.01894950121641159 ]
[ -0.01592121459543705, -0.02559122070670128, 0.007680168841034174, 0.010555311106145382, -0.0019190547754988074, 0.039363324642181396, 0.007777165621519089, -0.0109694954007864, -0.01512580830603838, 0.02379714697599411, 0.026334594935178757, 0.02843419834971428, -0.008955622091889381, 0.02215375006198883, 0.01319216564297676, 0.004815791267901659, -0.011091767810285091, -0.04812005162239075, 0.011387806385755539, 0.033720824867486954, -0.011091065593063831, 0.002243019873276353, -0.009915394708514214, 0.029459714889526367, -0.042354363948106766, 0.0020821038633584976, -0.007585613988339901, 0.029988041147589684, 0.008268325589597225, -0.12691989541053772, -0.01185013446956873, -0.007009532768279314, -0.0006180666387081146, 0.0032081154640764, -0.02198963053524494, 0.0009183446527458727, -0.0035230331122875214, 0.011406788602471352, 0.008726797997951508, -0.008137363940477371, 0.003733303863555193, -0.027905279770493507, -0.0073961480520665646, 0.0268686693161726, 0.00020729453535750508, 0.0012176211457699537, 0.0029008174315094948, 0.0017873937031254172, -0.01896349899470806, 0.025247624143958092, -0.03176124766469002, -0.02717301994562149, -0.007330572698265314, -0.020945772528648376, 0.023191628977656364, -0.0012334545608609915, -0.002077185781672597, -0.019280169159173965, -0.023626893758773804, -0.03871613368391991, 0.025593113154172897, 0.004567062482237816, -0.0506177581846714, -0.028378816321492195, -0.02461710013449192, 0.006562285590916872, -0.03385056182742119, 0.007352807093411684, -0.013061380945146084, -0.011727379634976387, -0.003957655746489763, -0.0012275113258510828, -0.026036955416202545, -0.022658035159111023, 0.018166210502386093, 0.03569541499018669, 0.002032459480687976, -0.008537324145436287, 0.03340994566679001, -0.015305064618587494, -0.034471143037080765, -0.00036990392254665494, 0.04148583486676216, -0.013891423121094704, 0.012295017950236797, -0.019145213067531586, 0.03147674724459648, -0.022653093561530113, 0.026109915226697922, 0.010139751248061657, -0.025545848533511162, 0.03728271275758743, -0.009503643959760666, 0.03848971053957939, -0.0648476853966713, 0.007254420779645443, -0.012205193750560284, 0.009270546026527882, -0.008572007529437542, 0.8658522963523865, -0.00010213692439720035, 0.05799052119255066, 0.008879221975803375, -0.02737678587436676, 0.01226758025586605, -0.005427056457847357, 0.014350315555930138, -0.019865043461322784, 0.015371965244412422, -0.03628355637192726, 0.025525888428092003, 0.014406582340598106, 0.019575085490942, -0.002816681284457445, 0.0356590710580349, 0.011925211176276207, 0.010487205348908901, 0.02395583875477314, -0.014446632005274296, 0.021386586129665375, 0.02230522409081459, 0.012755240313708782, 0.03174979239702225, 0.018858402967453003, 0.012878472916781902, -0.16284966468811035, -0.04045720025897026, -7.360425468598926e-33, 0.03576549142599106, -0.026037581264972687, -0.02560684084892273, 0.001586008002050221, -0.020017040893435478, -0.01441167201846838, 0.0071093132719397545, 0.0027040240820497274, -0.0028169152792543173, -0.02121766470372677, 0.0002880663378164172, -0.023308051750063896, 0.003974191378802061, -0.03883397579193115, 0.05667886137962341, -0.004377351142466068, -0.004316279664635658, 0.0043731252662837505, 0.005156615749001503, 0.00566486269235611, -0.010019243694841862, 0.03352300077676773, 0.0005086760502308607, -0.033165786415338516, -0.006690185517072678, 0.0610562302172184, 0.005416966043412685, 0.005898635368794203, -0.0024914846289902925, -0.03579200804233551, 0.03052987903356552, -0.010553544387221336, -0.030139779672026634, -0.05335206538438797, -0.011370223946869373, -0.028899667784571648, -0.024247223511338234, -0.021749531850218773, -0.006078952457755804, -0.004284287337213755, -0.019734974950551987, -0.03968145698308945, -0.030851537361741066, 0.019787292927503586, -0.0014031317550688982, 0.010692580603063107, -0.024897007271647453, 0.03929073363542557, 0.005876792129129171, -0.006389001850038767, 0.005990118253976107, 0.002337958663702011, 0.01940472051501274, -0.027201132848858833, -0.025816211476922035, 0.01914357952773571, -0.026995422318577766, 0.017919592559337616, 0.010708944872021675, 0.002893745666369796, 0.030859699472784996, -0.00768180750310421, -0.038985010236501694, 0.026562685146927834, -0.02073361538350582, -0.017026793211698532, 0.009596539661288261, -0.042151760309934616, -0.0033973343670368195, -0.0016073015285655856, -0.043508172035217285, 0.017442405223846436, -0.01142682321369648, -0.015876635909080505, -0.01814108155667782, -0.03521736338734627, 0.01907302811741829, 0.06455865502357483, 0.016035964712500572, 0.013058179058134556, -0.001906473538838327, 0.010652854107320309, 0.008879883214831352, -0.027003375813364983, -0.03845975548028946, -0.01932799629867077, 0.06266988068819046, -0.023586224764585495, -0.0003545689978636801, 0.002192187588661909, 0.03550265356898308, 0.030063636600971222, -0.0033402564004063606, -0.027807598933577538, 0.0017150213243439794, 7.372350124104048e-33, 0.011353143490850925, -0.029240239411592484, -0.02459091879427433, 0.00655651930719614, 0.010623105801641941, 0.004252084996551275, 0.025750668719410896, -0.013055442832410336, -0.04000810906291008, 0.02908214181661606, -0.03776854649186134, 0.00011974381050094962, -0.032764047384262085, 0.025719890370965004, 0.030850252136588097, -0.02822941727936268, 0.0208504069596529, -0.00740188779309392, 0.030772684141993523, -0.004370664246380329, 0.03671318292617798, 0.01822255179286003, 0.02333781123161316, 0.002053783740848303, -0.024431144818663597, 0.029139308258891106, -0.03216678276658058, 0.007244102656841278, -0.015519017353653908, -0.01588037982583046, 0.03112107515335083, -0.001761618652381003, 0.018345925956964493, 0.00011943178833462298, -0.056385572999715805, 0.03399612754583359, -0.002212733495980501, -0.024719122797250748, -0.024386484175920486, -0.0025971699506044388, 0.02865614928305149, -0.028605056926608086, 0.0004309417272452265, -0.005570488516241312, -0.009046301245689392, 0.011119962669909, -0.014682958833873272, -0.016265159472823143, -0.022485939785838127, 0.038594357669353485, 0.014685145579278469, 0.006607268936932087, 0.022102579474449158, 0.002193324500694871, 0.01846742071211338, 0.013050530105829239, -0.01800169236958027, -0.033771052956581116, -0.008673394098877907, 0.053909722715616226, -0.0028285058215260506, 0.012646416202187538, -0.04645013436675072, 0.020380627363920212, 0.00662976922467351, 0.0005432364414446056, -0.05912994593381882, -0.03230069950222969, -0.00349615141749382, -0.0004019969201181084, -0.042178940027952194, 0.005579690914601088, 0.02313436008989811, 0.02783607691526413, 0.002081106184050441, 0.0016252045752480626, -0.012240080162882805, -0.0010325218318030238, 0.021392183378338814, 0.004466031212359667, -0.004439867567270994, -0.026506677269935608, 0.003278519958257675, 0.009427434764802456, -0.014325928874313831, 0.03859008848667145, 0.03583935648202896, 0.013082467950880527, 0.009567487053573132, -0.03290019929409027, 0.011253631673753262, -0.041272759437561035, 0.04643974080681801, -0.015945447608828545, 0.02037709951400757, -1.3273481869191528e-8, -0.04410189017653465, 0.04769982397556305, -0.02311626635491848, 0.019892128184437752, 0.02512669935822487, 0.03393014892935753, -0.013888104818761349, -0.015694664791226387, -0.000520375557243824, 0.0322393961250782, 0.04015960916876793, -0.010871119797229767, 0.01596120186150074, 0.004633025731891394, 0.010954509489238262, -0.04929821938276291, -0.007462992332875729, -0.002468423917889595, 0.018082797527313232, -0.00443851575255394, 0.017034396529197693, 0.06373501569032669, -0.013571027666330338, 0.009619800373911858, 0.00481831468641758, -0.031321074813604355, 0.011149406433105469, -0.04646393284201622, -0.029228240251541138, 0.008220246061682701, -0.016971023753285408, -0.030232569202780724, 0.0031716465018689632, 0.019024912267923355, -0.01819528639316559, -0.00985545851290226, 0.004093565978109837, 0.02973233349621296, 0.023251106962561607, 0.025440705940127373, -0.02255672588944435, -0.030835917219519615, 0.0016636201180517673, -0.026269732043147087, -0.009820913895964622, 0.010077930986881256, 0.003929078578948975, -0.016950247809290886, 0.007869887165725231, -0.014551594853401184, -0.0009411927312612534, 0.03268582001328468, 0.02743103727698326, 0.029083246365189552, -0.0009650922729633749, 0.015688007697463036, -0.0012440350838005543, 0.018464799970388412, -0.02423899434506893, -0.005978900007903576, 0.020569680258631706, -0.009975790977478027, -0.021112238988280296, -0.017199458554387093 ]
book-club-working-effectively-with-legacy-code-chapters-12-13-michael-feathers
https://markhneedham.com/blog/2009/12/20/book-club-working-effectively-with-legacy-code-chapters-12-13-michael-feathers
false
2009-12-18 02:58:34
F#: Word Count - A somewhat failed attempt
[ "f" ]
[ "fsharp" ]
I came across http://blogs.sourceallies.com/2009/12/word-counts-example-in-ruby-and-scala/[Zach Cox's word count problem] via http://twitter.com/samaaron/status/6701378774[Sam Aaron] and http://twitter.com/olabini/status/6705741285[Ola Bini's] twitter streams and I thought it'd be interesting to try it out in F# to see what the solution would be like. The solution needs to count word frequencies from a http://kdd.ics.uci.edu/databases/20newsgroups/20newsgroups.html[selection of newsgroup articles]. I wanted to see if it was possible to write it in F# without using a map to keep track of how many of each word had been found. My thinking was that I would need to keep all of the words found and then calculate the totals at the end. After a bit of fiddling this is the version I ended up with: word-count.fsx [source,ocaml] ---- #light open System open System.IO open System.Text.RegularExpressions let (|File|Directory|) path = if(Directory.Exists path) then Directory(path) else File(path) let getFileSystemEntries path = Directory.GetFileSystemEntries path |> Array.to_list let files path = let rec inner fileSystemEntries files = match fileSystemEntries with | [] -> files | File path :: rest -> inner rest (path :: files) | Directory path :: rest -> inner (List.append rest (getFileSystemEntries path)) files inner (getFileSystemEntries path) [] let downloadFile path = use streamReader = new StreamReader(File.OpenRead path) streamReader.ReadToEnd() let words input= Regex.Matches(input, "\w+") |> Seq.cast |> Seq.map (fun (x:Match) -> x.Value.ToLower()) let wordCount = files >> List.map downloadFile >> List.map words >> List.fold (fun acc x -> Seq.append acc x) Seq.empty >> Seq.groupBy (fun x -> x) >> Seq.map (fun (value, sequence) -> (value, Seq.length sequence)) let writeTo (path:string) (values:seq<string * int>) = use writer = new StreamWriter(path) values |> Seq.iter (fun (value,count) -> writer.WriteLine(value + " " + count.ToString())) let startTime = DateTime.Now let count = wordCount "Z:\\20_newsgroups" printfn "Writing counts in alphabetical order" count |> Seq.sort |> writeTo "C:\\results\\counts-alphabetical-fsharp.txt" printfn "Writing counts in descending order" count |> Seq.sortBy (fun (_, count) -> count * -1) |> writeTo "C:\\results\\counts-descending-fsharp.txt" let endTime = DateTime.Now printfn "Finished in: %d seconds" (endTime - startTime).Seconds ---- The problem is that this version results in a StackOverFlow exception when I try to execute it with all the newsgroup articles although it does work correctly if I select just one of the folders. From what I can tell the exception happens on line 24 when I get the text out of each of the files and store it in the list. I tried changing this bit of code so that instead of doing that I combined the 'words' and 'downloadFile' functions so that the whole string wouldn't be saved but this doesn't seem to help that much. The exception just ended up happening a bit further down. I'm not sure if it's possible to make this work by making use of lazy collections - I'm not that familiar with those yet so I"m not sure how to do it - or if this approach is just doomed! Despite the fact it doesn't quite work there were some interesting things I noticed while playing with this problem: * At one stage http://twitter.com/markhneedham/statuses/6744178046[I was trying to deal with a list of sequences] whereby I had a list of sequences of words for each of the newsgroup articles. I found this really difficult to reason about as I was writing a 'List.map' and then a 'Seq.map' inside that. I originally had the 'List.fold (fun acc x \-> Seq.append acc x) Seq.empty' line happening later on in that composition of functions such that I grouped all the words and then counted how many there were before folding down into a single sequence. I realised this didn't make much sense and it would be much easier to just go to the sequence earlier on and make the code easier to follow. * I've previously written about http://www.markhneedham.com/blog/2009/07/12/f-wrapping-net-library-calls/[wrapping .NET library calls] and I was doing this quite a lot when I started writing this code. For example I had written a function called 'isDirectory' which wrapped 'Directory.Exists' which I wrote more out of habit than anything else but it doesn't really add much value. I think when we're talking about wrapping static methods this is probably always the case. It's when we want to call a method on a C# object that the wrapping approach can be helpful. * I quite like the Ruby way of writing to a file\... ~~~ruby open("counts-descreasing-ruby", "w") do |out| counts.sort { |a, b| b[1] \<=> a[1] }.each { |pair| out << "#{pair[0]}\t#{pair[1]}\n" } end ~~~ \...so I thought I'd see what it would look like to change my 'writeTo' function to be more like that: ~~~ocaml let writeTo (path:string) (f: StreamWriter \-> Unit) = use writer = new StreamWriter(path) f writer ~~~ ~~~ocaml writeTo "C:\\results\\counts-alphabetical-fsharp.txt" (fun out \-> count |> Seq.sort |> Seq.iter (fun (v,c) \-> out.WriteLine(v + " " + c.ToString()))) ~~~ I'm not sure it reads as well as the original version - the writing to file seems to becomes more prominent in this version than the data being written to it. If anyone has any ideas about how I can get this not to blow up that would be cool! These are some of the other solutions that I've come across: * http://www.bestinclass.dk/index.php/2009/12/clojure-vs-ruby-scala-transient-newsgroups/comment-page-1/#comment-1234[Lau B. Jensen comments on Zach's post and provides an additional version in Clojure] * http://gist.github.com/257079[A version in Ruby by Sam Aaron] * https://gist.github.com/257236/e08eed68c89fef6c6ae1f857a8190bc3b5e3c278[A version in Ioke by Sam Aaron] * https://gist.github.com/257236/4b9ce470fda49282cc3bc2d89617506062811035[Ola Bini's slightly modified version of Sam Aaron's Ioke version] * http://gist.github.com/257164[A version by Shot in Ruby]
null
null
[ -0.0014178967103362083, -0.04004884138703346, -0.02952476218342781, 0.01636749692261219, 0.08165431022644043, 0.053601767867803574, 0.021046433597803116, 0.03391202166676521, 0.0023465026170015335, -0.010097392834722996, -0.02320447564125061, 0.015052837319672108, -0.08451603353023529, -0.006481481250375509, 0.001069896505214274, 0.06651151180267334, 0.07366802543401718, -0.010047835297882557, 0.032701991498470306, -0.022946203127503395, 0.026999615132808685, 0.07734839618206024, 0.0037468785885721445, 0.021892253309488297, 0.011642000637948513, -0.021700982004404068, 0.042218782007694244, 0.005436894949525595, -0.04088320955634117, 0.025013791397213936, 0.01710135117173195, -0.0027839913964271545, 0.013077612966299057, -0.01070687361061573, 0.013839427381753922, -0.003000517375767231, 0.003323913784697652, 0.008405089378356934, -0.0050460160709917545, 0.0397595539689064, -0.052210986614227295, 0.009984683245420456, -0.024056527763605118, 0.007531330455094576, -0.02095031552016735, 0.03618808463215828, -0.04757389798760414, 0.02416202798485756, -0.0054923458956182, -0.0020086548756808043, -0.04068770259618759, 0.0328173004090786, -0.0033887592144310474, -0.014570580795407295, 0.020811274647712708, 0.05135369300842285, 0.03156162053346634, -0.058583930134773254, 0.03149948641657829, -0.018929628655314445, -0.0061321621760725975, -0.01666085049510002, 0.010655744932591915, 0.05741375684738159, 0.008923604153096676, -0.031014153733849525, -0.019604286178946495, 0.059370435774326324, -0.03393492102622986, -0.014394134283065796, 0.002675575204193592, 0.024225136265158653, -0.030316585674881935, 0.013564100489020348, -0.002735583344474435, -0.03771929442882538, 0.017714224755764008, 0.06261362135410309, 0.025895139202475548, 0.02776050753891468, -0.05349799245595932, 0.02452566660940647, 0.031067129224538803, 0.03363380208611488, 0.003720716806128621, -0.01894979365170002, -0.03334340453147888, 0.014262269251048565, -0.047272004187107086, 0.049345873296260834, 0.00933194812387228, -0.04675772786140442, 0.015501841902732849, 0.021328458562493324, 0.006782708689570427, 0.017658688127994537, -0.018394887447357178, 0.018191097304224968, -0.030045099556446075, 0.006531684659421444, -0.044980358332395554, -0.005909871309995651, 0.03018450178205967, 0.03314521163702011, -0.060200285166502, -0.007006812375038862, -0.0013045378727838397, 0.0009436142281629145, 0.05710228532552719, 0.002544108312577009, -0.03206063061952591, 0.011539086699485779, -0.01648850366473198, 0.026386138051748276, -0.08406803756952286, 0.05014269798994064, 0.004865173250436783, -0.008348561823368073, -0.013501298613846302, 0.034779809415340424, 0.052101340144872665, 0.014621234498918056, 0.024045316502451897, 0.053784191608428955, -0.017640726640820503, 0.003928519785404205, -0.0040838695131242275, 0.04726193845272064, -0.02801540121436119, -0.05779619514942169, -0.018731625750660896, 0.04721604660153389, -0.007605166174471378, 0.0022113872691988945, -0.014086905866861343, 0.005790288560092449, -0.03916897624731064, -0.019854836165905, 0.04349721595644951, 0.044781461358070374, -0.0035567765589803457, -0.0029171211645007133, -0.015696510672569275, -0.04062134400010109, 0.030869513750076294, 0.015546110458672047, -0.04014280438423157, -0.02618282474577427, -0.04208654910326004, 0.0017134126974269748, 0.0186524149030447, 0.020077688619494438, 0.05227396637201309, -0.06344462931156158, 0.010384801775217056, 0.0684889480471611, 0.03836700692772865, 0.00467320391908288, -0.006423670798540115, 0.009764906950294971, 0.020852986723184586, 0.05847577750682831, 0.002736043883487582, 0.04905300587415695, 0.011944700963795185, -0.03243754431605339, 0.001685356954112649, 0.04453393444418907, -0.03989863023161888, -0.016073156148195267, -0.055670008063316345, -0.031062036752700806, 0.05169032886624336, -0.023012235760688782, 0.02001800388097763, 0.0020649281796067953, 0.07162892073392868, 0.023915594443678856, 0.02024002932012081, 0.007129330653697252, -0.07180705666542053, 0.0278002992272377, -0.017494089901447296, 0.04617966711521149, 0.008799545466899872, -0.03503095731139183, 0.06775231659412384, 0.022153008729219437, 0.01866048201918602, 0.004040875006467104, -0.04999304562807083, -0.08788258582353592, 0.003664532210677862, -0.010508819483220577, 0.038078781217336655, -0.04515745863318443, 0.014739573001861572, 0.03508136421442032, 0.011496605351567268, 0.017793722450733185, 0.025304419919848442, -0.009705445729196072, 0.02147606946527958, -0.05426362156867981, -0.07280395925045013, 0.07897145301103592, 0.014714459888637066, -0.035748060792684555, -0.05382659286260605, -0.010028120130300522, -0.012230634689331055, 0.006217431742697954, 0.04488309100270271, -0.014354070648550987, 0.018973272293806076, 0.03847508877515793, 0.02061113901436329, -0.01774001680314541, 0.04941754788160324, -0.07191181182861328, 0.02329859882593155, -0.0005098948604427278, -0.00589563325047493, -0.025017505511641502, -0.011501709930598736, 0.11876240372657776, 0.03765329718589783, -0.02403281442821026, -0.08300814032554626, -0.002956451615318656, -0.012240730226039886, -0.05056820437312126, -0.005372932180762291, 0.018235746771097183, -0.01930069737136364, 0.02774183452129364, -0.06379660218954086, -0.02193135768175125, 0.02115521766245365, -0.01788175106048584, 0.013923040591180325, 0.06041368097066879, -0.0029397469479590654, 0.024805080145597458, 0.048628196120262146, -0.026869438588619232, 0.013498467393219471, -0.0406639538705349, -0.03790858015418053, 0.014280724339187145, 0.02389296144247055, -0.015101234428584576, 0.027926921844482422, -0.03465554863214493, -0.02069133147597313, -0.007102649193257093, -0.05884644389152527, 0.031062638387084007, 0.05771981552243233, 0.053681422024965286, -0.00129872711841017, 0.04490752890706062, -0.05719878524541855, -0.014494504779577255, -0.025749169290065765, -0.03216607868671417, -0.0400971993803978, -0.014850224368274212, -0.0019972403533756733, 0.025489097461104393, 0.026550641283392906, 0.01297786645591259, -0.009444233030080795, 0.014463846571743488, -0.002050669165328145, 0.013905186206102371, 0.05977087840437889, -0.02468176744878292, -0.026859886944293976, -0.036168523132801056, -0.04041333124041557, 0.06515611708164215, -0.01255600992590189, -0.01891043223440647, -0.028140755370259285, -0.049944695085287094, 0.04645413160324097, -0.044587764889001846, -0.035959020256996155, 0.010878995060920715, -0.007330601569265127, 0.004621753003448248, 0.028032058849930763, -0.030960051342844963, 0.05358000099658966, 0.027005447074770927, -0.005871094763278961, -0.008646311238408089, -0.0016074014129117131, 0.03259418159723282, -0.01541964989155531, 0.011563900858163834, 0.0729500874876976, 0.005071645136922598, 0.002810245379805565, -0.04621248319745064, -0.018270326778292656, -0.0007233171490952373, -0.2681843340396881, 0.05805613100528717, -0.03695562854409218, -0.019458645954728127, 0.02606099098920822, -0.029879998415708542, 0.015341023914515972, -0.04784829542040825, -0.009001466445624828, 0.046499863266944885, -0.03307657316327095, -0.010472064837813377, -0.002206196542829275, 0.044364627450704575, 0.01880682446062565, -0.0149898836389184, -0.0038949823938310146, -0.050380125641822815, 0.002188696525990963, 0.046646472066640854, 0.02154150977730751, -0.049277495592832565, 0.010441544465720654, 0.06064891815185547, 0.026768505573272705, 0.06695862114429474, -0.09546978771686554, 0.02561141550540924, -0.023121865466237068, -0.0038590007461607456, -0.016130253672599792, -0.048624854534864426, 0.004115883260965347, -0.011098703369498253, -0.03650767356157303, -0.05130419880151749, 0.0482771173119545, 0.003530227579176426, -0.0025051163975149393, 0.016735808923840523, -0.00487373024225235, -0.04086317867040634, -0.018068436533212662, -0.04268445819616318, 0.06002825126051903, -0.00911582913249731, -0.07673853635787964, -0.013522611930966377, -0.04796329513192177, 0.06913131475448608, -0.03590425103902817, -0.07530689239501953, -0.048473112285137177, 0.05219054967164993, -0.00391588918864727, -0.04165387526154518, 0.012926899828016758, -0.02566269226372242, -0.036087747663259506, -0.03229975327849388, -0.017946362495422363, -0.045026492327451706, -0.00920463539659977, -0.02883356809616089, -0.02051701955497265, -0.04785852134227753, -0.08169307559728622, 0.020184887573122978, 0.0557357519865036, 0.01575116254389286, -0.01599930040538311, 0.007981388829648495, -0.045009348541498184, -0.10476244986057281, -0.04829270392656326, 0.016611985862255096, -0.0293752308934927, -0.0030159899033606052, -0.0011428443249315023, 0.0816965252161026, -0.058396365493535995, -0.033317241817712784, 0.031439073383808136, 0.013649595901370049, 0.04027503356337547, -0.026552923023700714, 0.022066647186875343, -0.01632717065513134, -0.023558564484119415, -0.008189624175429344, 0.05818476155400276, -0.06040739268064499, 0.005388547200709581, -0.013191808015108109, 0.01766078919172287, 0.022899772971868515, 0.01506614126265049, 0.026099439710378647, 0.020772919058799744, 0.03741157054901123, 0.05245884507894516, -0.0372810885310173, 0.02549024485051632, -0.05127214267849922, 0.007939784787595272, 0.01733499765396118, -0.03937172517180443, 0.016942057758569717, 0.030802138149738312, 0.015681836754083633, -0.009494447149336338, -0.03608657792210579, 0.032238252460956573, -0.04940687492489815, 0.0034896363504230976, -0.0028258287347853184, 0.005709629040211439, 0.010410768911242485, 0.04014872387051582, 0.00011858902144012973, -0.05102871358394623, -0.00492852320894599, 0.0009752076584845781, -0.03742734715342522, -0.05538083612918854, -0.03946959227323532, 0.000010665335139492527, -0.04339929670095444, 0.0022378601133823395, 0.030675049871206284, -0.01970789022743702, -0.00603832583874464, 0.006939818151295185, -0.04610293358564377, 0.029001496732234955, -0.04133766517043114, -0.026521049439907074, -0.056081973016262054, -0.008718766272068024, 0.008082469925284386, 0.013783900998532772, -0.02519994042813778, 0.017715727910399437, 0.03747658431529999, 0.06311123818159103, 0.02877957373857498, 0.0237551461905241, 0.029562484472990036, 0.01116547454148531, -0.018675226718187332, -0.0008033131016418338, -0.040630411356687546, 0.028975507244467735, -0.019061477854847908, -0.006206890102475882, -0.005068086553364992, 0.04130455479025841, -0.035361237823963165, -0.029610276222229004, -0.05636034160852432, 0.05422941967844963, -0.019059428945183754, -0.02438676729798317, 0.0014878931688144803, 0.0020796924363821745, 0.03966590389609337, -0.015795685350894928, 0.04090533033013344, 0.001997652929276228, 0.006731023546308279, -0.010262077674269676, -0.01321504544466734, -0.008705195039510727, 0.03009794093668461, -0.01223705429583788, -0.002187261590734124, 0.01188982930034399, 0.030475780367851257, 0.010815621353685856, 0.030120162293314934, -0.02205679938197136, -0.02360851690173149, 0.021247534081339836, 0.04585946351289749, 0.05726761743426323, 0.054868001490831375, -0.029591748490929604, 0.0007133674225769937, -0.07767914235591888, 0.005364629440009594, -0.03284815326333046, 0.017490006983280182, -0.018800776451826096, 0.0223248153924942, -0.042483583092689514, -0.10010572522878647, 0.02772715501487255, 0.01399747934192419, 0.0014544010628014803, 0.00028159035718999803, -0.027231531217694283, -0.01827392727136612, -0.002556218532845378, -0.00055932771647349, 0.05191424489021301, -0.045166611671447754, -0.021224448457360268, -0.00838143564760685, 0.03202004358172417, 0.0342729389667511, 0.0044042193330824375, -0.05228514224290848, -0.014724066480994225, -0.028155894950032234, 0.021016402170062065, -0.04136176034808159, -0.0355001799762249, -0.04494646191596985, 0.009818066842854023, -0.035846542567014694, 0.0072173490189015865, -0.023082561790943146, -0.005230587441474199, -0.008297638967633247, -0.016619957983493805, 0.006480429787188768, -0.024027060717344284, -0.04436539486050606, 0.043747007846832275, -0.01450007501989603, 0.0014587434707209468, -0.04628104716539383, 0.06107476353645325, 0.048966072499752045, -0.008472246117889881, 0.011318937875330448, -0.032671891152858734, 0.019963718950748444, -0.018916217610239983, 0.04340610280632973, 0.007474737241864204, -0.01701689511537552, -0.020248932763934135, -0.02132883109152317, -0.038495950400829315, -0.010968114249408245, -0.022021444514393806, -0.011451570317149162, 0.031071020290255547, 0.0721958801150322, -0.0026621976867318153, 0.04910155013203621, -0.005894962698221207, -0.009119994938373566, 0.05704602226614952, -0.01724684052169323, -0.011795596219599247, -0.026887785643339157, -0.036491312086582184, 0.04200945794582367, 0.01031277235597372, -0.007883557118475437, -0.0644674003124237, 0.07837880402803421, 0.04841849207878113, 0.013884739950299263, 0.06579498946666718, -0.00879218615591526, 0.01985049620270729, 0.00021683464001398534, 0.007340012118220329, -0.09435027092695236, -0.04096829518675804, 0.05129624903202057, -0.002711051143705845, 0.01856459118425846, -0.020982082933187485, -0.01270637009292841, 0.042258165776729584, -0.06952188909053802, -0.03468919172883034, 0.026630686596035957, -0.049459464848041534, 0.03388909995555878, 0.0038037241902202368, -0.025005580857396126, 0.04354880377650261, 0.050390854477882385, -0.02981584146618843, -0.023561595007777214, -0.036381710320711136, 0.03389003500342369, -0.0008213474065996706, 0.004306451417505741, 0.005009866319596767, -0.029820121824741364, 0.049916937947273254, 0.0072760917246341705, 0.018732257187366486, 0.08278033882379532, -0.037881508469581604, 0.0382976159453392, 0.024836469441652298, -0.038760051131248474, 0.004850035533308983, 0.0014799009077250957, -0.022274624556303024, -0.04305342212319374, 0.027298882603645325, 0.01896183378994465, -0.012474899180233479, -0.039131056517362595, 0.07117506861686707, 0.027252057567238808, -0.034702375531196594, -0.06535596400499344, 0.012445750646293163, -0.015866920351982117, -0.02830980345606804, -0.027049759402871132, 0.030261022970080376, -0.044853635132312775, 0.0457727313041687, 0.005210895091295242, 0.013412484899163246, 0.058804936707019806, -0.00726290000602603, -0.008375515230000019, 0.020666835829615593, 0.08876405656337738, 0.08554716408252716, 0.02993267960846424, -0.03829478099942207, 0.06688366085290909, -0.045011334121227264, -0.04620343819260597, -0.02566821128129959, -0.023882977664470673, 0.008330071344971657, 0.01954617351293564, 0.022604569792747498, 0.05868221074342728, 0.009055343456566334, 0.07284216582775116, -0.04211306944489479, -0.001556082279421389, -0.02228311263024807, 0.0033452429343014956, 0.04002350941300392, 0.031477898359298706, 0.006711696274578571, 0.041002307087183, -0.032280296087265015, -0.01943075843155384, 0.04032624885439873, -0.0015696242917329073, 0.011648813262581825, -0.00037105506635271013, -0.01486134435981512, -0.026865743100643158, 0.0002185382618336007, 0.07692243158817291, 0.06511464715003967, -0.023958124220371246, 0.023712776601314545, 0.01371657382696867, -0.008533862419426441, 0.00638887844979763, -0.006024027243256569, -0.0024775213096290827, -0.0030382671393454075, 0.001483775326050818, -0.03590094670653343, -0.0050516496412456036, -0.03255759924650192, -0.025621997192502022, -0.00342794437892735, -0.03847658261656761, 0.022972647100687027, -0.007744834758341312, 0.006313419435173273, -0.003646960249170661, -0.0371585339307785, -0.031125115230679512, -0.04147547855973244, -0.09424161165952682, 0.051164086908102036, 0.015180486254394054, 0.0038956182543188334, -0.005856712814420462, -0.04431194067001343, -0.014506475999951363, -0.023072950541973114, 0.032427217811346054, -0.02842986397445202, -0.01989048533141613, -0.0017532727215439081, 0.0112003767862916, 0.02428145706653595, 0.05187516659498215, 0.060205359011888504, -0.02676139399409294, -0.0328461118042469, -0.024310195818543434, -0.006294576916843653, 0.04873143881559372, 0.03163689747452736, -0.004843621514737606, -0.09787534177303314, 0.007990279234945774, 0.028675688430666924, 0.020190110430121422, -0.07838266342878342, -0.001768360729329288, 0.035714324563741684, 0.02091635763645172, 0.050010014325380325, -0.0009080400923267007, -0.016360169276595116, -0.05007876083254814, -0.007903211750090122, 0.0033872369676828384, -0.0029642796143889427, 0.0637519583106041, -0.02718101069331169, 0.07145501673221588, 0.0035056141205132008, -0.005197103135287762, -0.0482356883585453, -0.011505941860377789, -0.02864125929772854, 0.02902958355844021, -0.020462999120354652, -0.014397901482880116, -0.04378584772348404, -0.058664385229349136, -0.030155250802636147, 0.004026581067591906, -0.03613153472542763, -0.023803094401955605, 0.027302728965878487, 0.03033464588224888, -0.0458877831697464, 0.045021336525678635, -0.029878651723265648, 0.014826393686234951, -0.010100015439093113, -0.05637727305293083, 0.012228635139763355, -0.004377034492790699, 0.01594936102628708, 0.014167141169309616, 0.023478643968701363, 0.00013356377894524485, 0.0036528862547129393, -0.024644041433930397, 0.01907249353826046, 0.039735838770866394, -0.030099432915449142, 0.000117460687761195 ]
[ -0.04122643545269966, -0.062207791954278946, -0.033051226288080215, 0.010778850875794888, 0.04057604819536209, -0.057885389775037766, -0.02295340783894062, 0.05111261457204819, 0.02573520503938198, -0.013110705651342869, 0.002707822248339653, -0.031964436173439026, 0.03004082292318344, -0.0009026602492667735, 0.05855358764529228, -0.014284833334386349, 0.011623562313616276, -0.0631258636713028, -0.03160128369927406, 0.0009645745158195496, 0.017228063195943832, -0.01966121606528759, 0.01309334859251976, -0.004536494147032499, -0.001341578783467412, 0.022128427401185036, -0.0019674210343509912, -0.06368183344602585, -0.017625566571950912, -0.21369591355323792, -0.012740965001285076, -0.026355929672718048, 0.05853500962257385, -0.014316249638795853, 0.018468964844942093, 0.03775574639439583, 0.02093380317091942, 0.0036890667397528887, -0.0003464281908236444, 0.05876557156443596, 0.0065369741059839725, 0.025472575798630714, -0.026970326900482178, 0.007991730235517025, 0.013803916051983833, 0.0018765386193990707, -0.03647395223379135, 0.020679142326116562, -0.028279146179556847, 0.004937261343002319, -0.05212217941880226, -0.009471159428358078, -0.027941321954131126, 0.0032915561459958553, -0.0033842530101537704, 0.028962919488549232, 0.06765285134315491, 0.06831635534763336, 0.02949472889304161, -0.011012126691639423, 0.024717573076486588, -0.024777894839644432, -0.16749095916748047, 0.07748984545469284, -0.009591822512447834, 0.048352792859077454, -0.03954946994781494, -0.0032484072726219893, -0.02838187851011753, 0.09191054850816727, -0.018578117713332176, 0.022466668859124184, 0.007350954692810774, 0.0639096349477768, -0.0018437668913975358, -0.011256491765379906, 0.018595470115542412, 0.03799641877412796, 0.02417701482772827, -0.04118744283914566, -0.049009110778570175, 0.0022241452243179083, 0.006233849097043276, -0.025092827156186104, -0.02137231081724167, -0.042894307523965836, 0.004104859661310911, 0.0764378011226654, 0.01483581680804491, 0.026894113048911095, 0.04460231959819794, -0.005723592359572649, 0.0393301285803318, 0.003991725388914347, -0.07205267250537872, -0.069896399974823, -0.008823697455227375, 0.0153719587251544, -0.012646669521927834, 0.40076032280921936, -0.040856827050447464, -0.019954102113842964, 0.052234500646591187, 0.02308766543865204, -0.012901819311082363, -0.003817760618403554, -0.0021201660856604576, -0.037678465247154236, -0.02380513772368431, -0.017100749537348747, 0.014564032666385174, -0.05837102234363556, 0.0723380371928215, -0.08986900001764297, 0.03013865277171135, 0.0021858797408640385, 0.0687183067202568, 0.042859360575675964, 0.0005193169927224517, 0.009073851630091667, -0.04164724424481392, -0.029481258243322372, 0.04680004343390465, 0.008234395645558834, 0.06262362003326416, 0.05448305234313011, 0.09051661193370819, 0.06399155408143997, 0.08399942517280579, 0.02031710185110569, 0.003139364765956998, -0.014465711079537868, -0.10961560159921646, -0.0018689162097871304, -0.016641415655612946, 0.035269852727651596, 0.02455778419971466, -0.028959793969988823, -0.015010843053460121, 0.026868103072047234, 0.015894712880253792, -0.03396034985780716, 0.024703066796064377, -0.02392532490193844, -0.05921167880296707, 0.13934941589832306, -0.013841747306287289, -0.03427524119615555, -0.016073932871222496, -0.04762139171361923, 0.00978793390095234, 0.03755925968289375, -0.013039838522672653, -0.07967543601989746, -0.012139711529016495, 0.04880073294043541, 0.07921794801950455, -0.022553633898496628, -0.0542115680873394, 0.004991215653717518, -0.032667577266693115, -0.013950783759355545, -0.0060023958794772625, 0.030789189040660858, 0.013388533145189285, -0.07602854073047638, -0.023850727826356888, -0.0026600093115121126, 0.00010771545930765569, -0.12465574592351913, 0.047733962535858154, -0.023601429536938667, -0.012700135819613934, -0.024230096489191055, 0.04125091806054115, -0.02476222813129425, -0.0014931501355022192, 0.017890077084302902, 0.0636371448636055, 0.03916092589497566, 0.007777743507176638, 0.030475160107016563, -0.02916085720062256, 0.016735577955842018, -0.04348067194223404, -0.04401232674717903, -0.02812151238322258, -0.013589325360953808, 0.031518787145614624, 0.008541573770344257, -0.0038285807240754366, -0.0250137560069561, -0.020625878125429153, 0.01930372230708599, -0.032411038875579834, -0.02637244574725628, 0.005219019018113613, 0.016883505508303642, -0.00606919638812542, -0.019558267667889595, -0.01910378225147724, 0.018567301332950592, -0.006480734329670668, -0.0004109714936930686, -0.018309341743588448, 0.04206299036741257, 0.03691212832927704, -0.019620763137936592, 0.0764942392706871, -0.01358683779835701, -0.035091597586870193, -0.03430897742509842, -0.048713892698287964, 0.009223651140928268, -0.0409240648150444, -0.03597141057252884, -0.017208267003297806, -0.015600252896547318, -0.008359079249203205, 0.06680731475353241, -0.0191607978194952, -0.08382631838321686, -0.029918499290943146, -0.3516293168067932, -0.06102261319756508, 0.01931549422442913, 0.03450976684689522, 0.011609895154833794, -0.06405016034841537, 0.00846012867987156, -0.028549641370773315, -0.006774479523301125, 0.08953657001256943, 0.05482406169176102, 0.004622290376573801, -0.03018166683614254, -0.11017169803380966, 0.018081199377775192, 0.0025024833157658577, -0.046886567026376724, -0.027286401018500328, -0.006954352371394634, 0.019617948681116104, 0.03834831342101097, -0.041930750012397766, -0.029846783727407455, -0.04138965532183647, 0.049567293375730515, -0.03208807110786438, 0.0796746239066124, 0.01700146496295929, 0.05093691125512123, -0.06334273517131805, 0.05439751595258713, 0.0045240493491292, -0.007385060656815767, -0.05276494100689888, -0.007815790362656116, -0.031973473727703094, -0.00964393001049757, 0.03357630595564842, 0.011526640504598618, -0.0012550181709229946, -0.05676241219043732, 0.046123817563056946, -0.03294224292039871, -0.038954704999923706, -0.05111556500196457, 0.011315779760479927, -0.0017445302801206708, -0.08317935466766357, -0.0037468685768544674, 0.01976577565073967, -0.015162231400609016, -0.009317736141383648, 0.03763395547866821, 0.02864527888596058, -0.007218008860945702, -0.03992808237671852, -0.06612995266914368, -0.002006917493417859, -0.041337378323078156, -0.04317691549658775, 0.01559814065694809, 0.05888431519269943, 0.07260648161172867, -0.035286031663417816, -0.0006063675973564386, 0.03463320434093475, -0.017804399132728577, 0.010170557536184788, 0.003311920678243041, 0.0016479744808748364, -0.01246838178485632, 0.09398183226585388, -0.0065485103987157345, 0.012046920135617256, 0.008451214991509914, 0.012107097543776035, 0.009770512580871582, -0.03044823184609413, 0.019112445414066315, -0.02570836804807186, 0.06421530246734619, -0.016046693548560143, 0.05848047882318497, -0.01589040458202362, -0.005914309062063694, 0.07332032918930054, -0.0021958034485578537, 0.026896590366959572, 0.05651775747537613, 0.03154946491122246, 0.025265397503972054, 0.014354194514453411, 0.033169154077768326, -0.045367781072854996, 0.0442621074616909, 0.01980098895728588, -0.22892965376377106, 0.0015572422416880727, 0.037919431924819946, 0.025119226425886154, 0.0011190638178959489, -0.020891692489385605, 0.025807876139879227, -0.04250126704573631, 0.017861494794487953, 0.0034776765387505293, 0.0022129372227936983, 0.06663554161787033, -0.009253961965441704, -0.05781407654285431, 0.020835895091295242, -0.01963166892528534, 0.036994680762290955, 0.024450896307826042, 0.012129616923630238, 0.010080436244606972, 0.04711410030722618, -0.032004669308662415, 0.19136790931224823, -0.023659715428948402, 0.0027284054085612297, 0.004962748382240534, 0.012679568491876125, 0.014219074510037899, 0.05505359172821045, 0.016441240906715393, -0.01034386083483696, -0.03473629429936409, 0.06212792545557022, 0.007858691737055779, 0.017033575102686882, -0.06486420333385468, 0.009425991214811802, 0.03333308920264244, 0.02187403477728367, -0.0012511698296293616, -0.005358685273677111, 0.012404774315655231, -0.048051249235868454, 0.06250236928462982, 0.04805499315261841, -0.006325431168079376, 0.0020477846264839172, -0.06143730506300926, -0.03901876509189606, 0.051351796835660934, -0.02805723249912262, -0.045754823833703995, 0.011338900774717331, 0.027396054938435555, 0.0541204959154129, 0.07755865901708603, 0.007822123356163502, -0.011921719647943974, 0.018734117969870567, -0.024752363562583923, -0.03290204331278801, -0.05380423367023468, 0.09531755745410919, -0.000828365096822381, 0.013721977360546589 ]
[ 0.014810574240982533, 0.010579423047602177, -0.031303491443395615, 0.07531115412712097, 0.010743037797510624, 0.023610729724168777, 0.011099508963525295, 0.030228914692997932, 0.007932021282613277, 0.01494639553129673, 0.0008993584779091179, 0.013484419323503971, 0.03873378410935402, -0.008895215578377247, 0.0005858929944224656, -0.0074698165990412235, -0.03503623977303505, -0.0010764474282041192, 0.015700338408350945, -0.027394339442253113, -0.023338306695222855, 0.06870169192552567, 0.05779143050312996, -0.010743875987827778, 0.00012227841943968087, 0.021694282069802284, -0.047259390354156494, -0.012672302313148975, 0.02752002328634262, -0.11992458254098892, 0.019693363457918167, 0.015267754904925823, 0.017665669322013855, 0.012926425784826279, -0.004268614575266838, -0.029830576851963997, 0.003917064983397722, -0.012657685205340385, -0.00669608311727643, 0.00361347827129066, -0.01736338436603546, -0.013671085238456726, -0.01771569810807705, 0.01750405691564083, -0.021938826888799667, -0.013665742240846157, -0.02352265641093254, -0.0026084694545716047, -0.025836482644081116, 0.035084255039691925, -0.025305794551968575, 0.012772390618920326, -0.019542688503861427, 0.03189829736948013, 0.005064866505563259, -0.023854145780205727, -0.018981678411364555, -0.02533673495054245, -0.024452343583106995, -0.05095488205552101, 0.010192814283072948, -0.03789855167269707, -0.028987281024456024, -0.03766413778066635, -0.019065195694565773, 0.0024394295178353786, -0.024792227894067764, 0.01812700927257538, -0.0032879516948014498, 0.007129836827516556, 0.01568709686398506, 0.04438849911093712, -0.017864344641566277, -0.021483825519680977, -0.03429441154003143, -0.015355387702584267, 0.03231887146830559, -0.016398213803768158, 0.015798019245266914, 0.006490978412330151, -0.03127586469054222, -0.026522332802414894, 0.014149116352200508, 0.022597933188080788, 0.007611503358930349, -0.02750801481306553, -0.013486333191394806, -0.0016995524056255817, -0.0011284687789157033, -0.007175976876169443, -0.036602310836315155, 0.026875244453549385, 0.031403131783008575, 0.008907160721719265, -0.09725870937108994, 0.014649491757154465, -0.017356285825371742, 0.0059205046854913235, -0.009430460631847382, 0.8383923768997192, 0.006557299289852381, 0.027651473879814148, 0.004420394543558359, 0.011891841888427734, -0.035795558243989944, -0.01689351163804531, 0.003510897746309638, -0.0037720671389251947, -0.004348211456090212, -0.050655730068683624, 0.02393478713929653, 0.000985252088867128, 0.04887379705905914, 0.031859736889600754, 0.0342167466878891, -0.010920227505266666, 0.03429476171731949, 0.018268149346113205, 0.04597410187125206, 0.044272281229496, 0.05091499537229538, 0.0285713579505682, 0.01601846143603325, -0.006078503094613552, 0.008337737992405891, -0.13569338619709015, 0.017631549388170242, -6.750720793398391e-33, 0.04279245808720589, 0.013222512789070606, -0.0022504234220832586, 0.01623000204563141, 0.021269001066684723, 0.0030813820194453, -0.012921747751533985, -0.0015645793173462152, -0.013315054588019848, -0.026312192901968956, -0.011608901433646679, 0.007114759646356106, -0.006656779441982508, -0.03382859751582146, 0.045869551599025726, -0.013858157210052013, 0.004418211057782173, 0.038019198924303055, -0.011455506086349487, -0.015129944309592247, 0.039800968021154404, 0.004206435289233923, 0.01665223203599453, 0.01015328150242567, -0.004687367007136345, 0.022053761407732964, 0.012195607647299767, -0.02019343338906765, -0.016798606142401695, -0.046136897057294846, -0.005718052387237549, 0.019589373841881752, 0.01931704580783844, -0.03592919185757637, 0.028392890468239784, -0.051037319004535675, -0.019768651574850082, 0.02621643990278244, -0.02492763288319111, -0.05905506759881973, -0.015412812121212482, 0.011400958523154259, -0.029625074937939644, -0.029018700122833252, -0.012165598571300507, 0.01040532998740673, 0.013360763899981976, 0.025966959074139595, -0.009543802589178085, 0.018346164375543594, 0.04912078380584717, -0.010511534288525581, -0.01534670777618885, 0.03977223113179207, 0.002264295006170869, 0.010567507706582546, 0.007235108874738216, -0.0024749410804361105, 0.01819779723882675, 0.031369198113679886, 0.0033515242394059896, -0.004848617594689131, 0.028765132650732994, 0.019092224538326263, 0.014373072423040867, -0.008914811536669731, 0.027858460322022438, 0.02480560541152954, 0.01738412119448185, 0.046458519995212555, -0.01320205070078373, 0.029102984815835953, -0.0031895539723336697, -0.002907461253926158, 0.004545798525214195, -0.042476702481508255, -0.0034859778825193644, -0.044121045619249344, -0.021011395379900932, 0.048435911536216736, 0.009115735068917274, -0.051046065986156464, -0.012889900244772434, -0.024387329816818237, -0.017165809869766235, -0.013261132873594761, 0.024748070165514946, -0.00038366735680028796, -0.01169810350984335, -0.014821846969425678, 0.0471387580037117, 0.04719311743974686, 0.014442283660173416, -0.039274927228689194, -0.015730757266283035, 7.318216405196774e-33, -0.01689552702009678, -0.013006256893277168, -0.0008096155361272395, -0.0008832240127958357, 0.006149330176413059, -0.006260998081415892, 0.050458889454603195, 0.03611258417367935, -0.012170981615781784, 0.035922225564718246, -0.0359480194747448, -0.017554940655827522, -0.024023450911045074, 0.006388915702700615, 0.056085918098688126, -0.03605353832244873, 0.032113250344991684, -0.025281205773353577, 0.03665189445018768, 0.019892742857336998, -0.026360100135207176, -0.0007895042072050273, 0.019652018323540688, 0.0507647804915905, 0.0252008605748415, 0.026062123477458954, -0.025899814441800117, -0.020760292187333107, -0.0016311097424477339, 0.0016013470012694597, 0.06501354277133942, -0.040711432695388794, 0.011756767518818378, -0.03344953432679176, -0.013188141398131847, 0.022456815466284752, 0.01738683693110943, 0.013002226129174232, 0.007905436679720879, 0.00854819267988205, 0.024517735466361046, -0.0015155405271798372, -0.02048676647245884, -0.013819750398397446, -0.009896887466311455, 0.024617794901132584, 0.0023086583241820335, -0.013243447989225388, -0.016077132895588875, 0.006676419638097286, 0.0392468199133873, 0.022864025086164474, -0.03894752636551857, 0.0371733233332634, 0.013266132213175297, -0.004520892631262541, -0.03064764104783535, -0.028027670457959175, -0.041115328669548035, -0.0020899258088320494, -0.020959587767720222, 0.00984402559697628, -0.030293580144643784, 0.0015854932134971023, -0.02025018259882927, -0.04587327688932419, -0.0387277714908123, -0.018857857212424278, -0.0018926470074802637, 0.0270044207572937, -0.04160752519965172, -0.012710128910839558, -0.014035974629223347, 0.046156059950590134, 0.011380058713257313, 0.017206532880663872, -0.02509487420320511, 0.011441388167440891, -0.024667687714099884, 0.021357337012887, 0.005551171023398638, 0.0142258545383811, -0.0040320479311048985, -0.009215236641466618, -0.00472128065302968, -0.0328131802380085, -0.018255259841680527, -0.002526654629036784, 0.019665736705064774, 0.0012274413602426648, -0.003965467214584351, -0.05727975443005562, -0.013786431401968002, -0.010853491723537445, -0.0031522144563496113, -1.2688266437521634e-8, -0.08841551095247269, -0.03308909758925438, -0.03637424856424332, 0.045020733028650284, 0.04492051899433136, 0.011240856721997261, -0.024682719260454178, -0.00722159817814827, -0.0011723027564585209, -0.0020810412243008614, 0.01204472966492176, -0.007744963280856609, -0.01936447247862816, 0.02386466972529888, 0.016169240698218346, -0.04525403678417206, 0.04725356772542, -0.0007681884453631938, 0.041133563965559006, 0.008400550112128258, 0.024973852559924126, 0.03915576636791229, 0.0007841342012397945, -0.012133455835282803, -0.019554762169718742, 0.0037438212893903255, -0.00012295873602852225, -0.07970678806304932, -0.00579215120524168, -0.016409648582339287, 0.06184960901737213, -0.04207644239068031, -0.0229552760720253, 0.0070250993594527245, -0.025007719174027443, -0.030448589473962784, 0.001059158006682992, 0.00654564006254077, -0.01310351025313139, 0.022541817277669907, 0.008333695121109486, 0.023691348731517792, -0.018832601606845856, -0.019466573372483253, -0.031199390068650246, -0.0314573235809803, -0.031628355383872986, -0.022222908213734627, 0.0182833019644022, -0.05025839805603027, 0.016551289707422256, -0.024287205189466476, 0.021652787923812866, 0.03289131820201874, 0.015645841136574745, 0.012751887552440166, 0.053130075335502625, -0.02507016807794571, -0.04209929704666138, 0.005740765947848558, 0.03622939810156822, 0.0030165589414536953, -0.022453639656305313, -0.01568288542330265 ]
f-word-count-a-somewhat-failed-attempt
https://markhneedham.com/blog/2009/12/18/f-word-count-a-somewhat-failed-attempt
false
2009-12-16 06:15:14
The Computer Scientist as Toolsmith - Fred Brooks
[ "software-development" ]
[ "Software Development" ]
I've come across http://elegantcode.com/2009/12/01/is-software-craftsmanship-to-gender-specific/[a couple] http://www.devchix.com/2009/11/28/craftsmanship-without-the-man/[of posts] recently talking about the gender specificness of the term 'Software Craftsman' and Victoria suggests that the term 'Codesmith' would be a more appropriate name to use. I'm not that bothered what the name is but I was reading the transcript of Fred Brooks' acceptance speech for winning the ACM Allen Newell Award in 1994 titled 'http://www.cs.unc.edu/~brooks/Toolsmith-CACM.pdf[The Computer Scientist as Toolsmith]' which has some interesting ideas about what our role should be. These were some of the parts that I found interesting in the talk: * I quite liked the following quote and it seems to cover the same type of ground that we try to cover with the agile approach to software development with respect to *writing software that actually provides value to our users*: + ____ If we perceive our role aright, we then see more clearly the proper criterion for success: a toolmaker succeeds as, and only as, the users of his tool succeed with his aid. ____ + The article goes on to say the following: + ____ \...we tend to forget our users and their real problems, climbing into our ivory towers to dissect tractable abstractions of these problems , abstractions that may have left behind the essence of the real problem. ____ + I also came across an interesting blog post by Rob Bowley where he http://blog.robbowley.net/2009/12/14/something-in-agile-needs-fixing/[discusses some of the limitations he's noticed in the agile approach with respect to addressing the needs of our customers] which seems to cover similar ground. * He also makes some interesting points around interdisciplinary collaboration: + ____ There are real costs associated with any professional collaboration, and interdisciplinary collaborations have some unique costs. I find that our teams spend about a quarter of our professional effort on routine work that supports our collaborators ____ + I'm not sure whether that last statistic stands true for collaboration between software development teams and the business but a fairly common objection from the business is that they don't have the time to interact with the software guys and that we should just get on build what they want. Rob's post seems to suggest that we're not collaborating in a particularly effective way and Brooks goes on to suggest that we need to do some preparation before interacting with these guys: + ____ Our Ph.D. students often take introductory courses in the using disciplines, and they always take reading courses from our collaborators to prepare them for their dissertation work. *One need not become an expert in the partner's field, of course, but one does need to learn the basic principles, the vocabulary, and the partner's research objectives*. ____ + I wonder if this is where we sometimes go wrong - we're focused on the software solution rather than stepping back and working out our customers' real problems and helping them solve those. This part of the article also reminded me of http://www.markhneedham.com/blog/2009/03/13/qcon-london-2009-what-ive-learned-about-ddd-since-the-book-eric-evans/[comments made by Eric Evans in his QCon talk about not wasting domain experts time]. * In one part of the article Brooks talks about artificial intelligence, suggesting: + ____ \...intelligence amplifying systems can, at any given level of available systems technology, beat AI systems. That is, a machine and a mind can beat a mind-imitating machine working by itself ____ + This seems quite similar to an idea that I read in http://www.markhneedham.com/blog/2008/12/09/taiichi-ohnos-workplace-management-book-review/[Taaichi Ohno's Workplace Management] whereby we look to automate processes but not just for the sake of automation. We should automate so that the human can do their job more effectively. On the projects I've worked on we often make use of automation to provide us with code metrics but a human would then analyse those and work out whether we need to make any changes to the way that we do things based on those metrics. Google seem to be going with http://gojko.net/2009/12/07/improving-testing-practices-at-google/[an even more automated approach with respect to understanding which tests are useful as Marcus Striebeck described in a talk at XP Day] and since it seems to be working well for them, perhaps we haven't yet worked out where the usefulness of a machine ends and a human is required.
null
null
[ 0.019947359338402748, 0.003807521890848875, -0.013561218976974487, 0.053956348448991776, 0.08315384387969971, 0.04263013228774071, 0.02405587211251259, 0.03870362043380737, 0.013536151498556137, -0.025178270414471626, -0.04511161521077156, -0.009252835065126419, -0.042908377945423126, 0.009818125516176224, -0.05677110701799393, 0.07843203842639923, 0.05864550545811653, 0.0044622342102229595, 0.031392358243465424, -0.008512218482792377, 0.025944462046027184, 0.07780608534812927, 0.02089272066950798, 0.02008749358355999, 0.026130065321922302, 0.017522379755973816, 0.006815300323069096, -0.008707159198820591, -0.05628213286399841, -0.01055847853422165, 0.05389215052127838, 0.0037098126485943794, 0.01452276948839426, -0.015248794108629227, 0.004716866184026003, -0.01734631508588791, -0.013542835600674152, 0.02267461083829403, 0.005281425081193447, -0.0031042490154504776, -0.05984409153461456, 0.051649417728185654, 0.0016599728260189295, 0.01356169581413269, -0.0358782634139061, 0.006327525712549686, -0.05286487564444542, 0.010826978832483292, -0.008024117909371853, 0.006734587252140045, -0.06414476782083511, 0.011299206875264645, -0.008384604007005692, -0.006796886678785086, -0.006396281998604536, 0.056226663291454315, 0.022486010566353798, -0.05921349301934242, -0.021355407312512398, -0.047612786293029785, -0.008935583755373955, -0.0202656127512455, 0.007477967068552971, 0.041729968041181564, 0.028183558955788612, -0.02040782757103443, -0.008347802795469761, 0.024348227307200432, -0.029122374951839447, 0.010334718972444534, -0.013375084847211838, 0.009629745036363602, -0.011234690435230732, -0.02480025589466095, 0.0033067178446799517, -0.06018868833780289, 0.0011502595152705908, 0.0680650919675827, 0.027256350964307785, 0.033238593488931656, -0.01983388140797615, 0.02934127114713192, 0.0009133744169957936, 0.03222374618053436, -0.03413887321949005, -0.03627544641494751, 0.008640582673251629, -0.020896390080451965, -0.06034742295742035, 0.048767540603876114, 0.002650793641805649, -0.07136548310518265, 0.02251623198390007, 0.04963516816496849, -0.005886111408472061, 0.02645288221538067, 0.03701314330101013, 0.006993166171014309, 0.005129510071128607, -0.016181733459234238, -0.042014509439468384, -0.0064002820290625095, -0.004085309337824583, 0.011560769751667976, -0.08036115765571594, -0.0007872971473261714, -0.01786174066364765, -0.005502975545823574, -0.005618584807962179, -0.001532694324851036, -0.015757588669657707, 0.013867481611669064, -0.02537170611321926, 0.005198251456022263, -0.048506565392017365, 0.07343599945306778, 0.004068796057254076, -0.048812177032232285, -0.006909274496138096, 0.0070589082315564156, 0.04706917330622673, 0.024343673139810562, -0.020001037046313286, 0.08093602955341339, 0.01818636804819107, 0.015368005260825157, -0.029493121430277824, 0.06360028684139252, -0.010851087048649788, -0.05691937357187271, -0.025861583650112152, 0.04863984137773514, -0.04418320953845978, -0.024008508771657944, -0.002947168191894889, -0.036433570086956024, -0.00033874911605380476, 0.018493875861167908, 0.011777419596910477, 0.053187496960163116, -0.004816404543817043, -0.04103321582078934, 0.011114897206425667, 0.01241595484316349, 0.03917437791824341, -0.009275472722947598, 0.008210781030356884, -0.004863578360527754, -0.04144478961825371, -0.0012156699085608125, -0.0031566207762807608, 0.027132688090205193, 0.027506288141012192, -0.045688193291425705, 0.04087575897574425, 0.0728747621178627, 0.043862201273441315, 0.013544292189180851, -0.00540973711758852, 0.026260584592819214, 0.02900100126862526, 0.017962785437703133, 0.007156305946409702, 0.018408942967653275, 0.017034154385328293, 0.005020415410399437, 0.002928680507466197, 0.03418995067477226, -0.005319040734320879, 0.017515407875180244, -0.05823573097586632, -0.03850768506526947, 0.04953765496611595, -0.052605729550123215, -0.030254067853093147, 0.05350444093346596, 0.07322272658348083, 0.041041504591703415, 0.032899174839258194, 0.008758177049458027, -0.08000412583351135, 0.029379064217209816, 0.013371161185204983, 0.004565576557070017, 0.038785409182310104, -0.015987686812877655, 0.05860363692045212, 0.01692570373415947, -0.005318121984601021, 0.04599718004465103, -0.07707614451646805, -0.09287708252668381, -0.02334444411098957, -0.01169878151267767, 0.04872928559780121, -0.02667129971086979, 0.00744076119735837, 0.0739024206995964, -0.0031601160299032927, 0.043115727603435516, 0.018655207008123398, 0.0073335375636816025, 0.0022914092987775803, -0.041086770594120026, -0.04557391256093979, 0.057436831295490265, 0.04332445189356804, 0.0003596331807784736, -0.059749677777290344, 0.011555783450603485, -0.0019147590501233935, -0.02227654494345188, 0.055563557893037796, -0.04120874032378197, 0.0358777679502964, 0.01696452498435974, 0.05955398082733154, -0.03179365396499634, 0.04282175377011299, -0.04546847939491272, -0.005849247332662344, -0.017817800864577293, -0.012502633035182953, 0.023003429174423218, 0.021137310191988945, 0.10968359559774399, 0.062912218272686, -0.05278320237994194, -0.04454386234283447, 0.016351165249943733, 0.019933849573135376, -0.04408319294452667, -0.003332503605633974, -0.003965516574680805, 0.014980864711105824, -0.009815051220357418, -0.07173717767000198, -0.049308355897665024, 0.016645196825265884, -0.03576669842004776, 0.009168567135930061, 0.07227808982133865, -0.01503217127174139, 0.06187564134597778, -0.00839980784803629, -0.0015328476438298821, -0.01097058318555355, -0.02430473081767559, -0.04133063554763794, 0.03032117336988449, 0.007573538925498724, -0.01293689850717783, 0.032512541860342026, -0.013869774527847767, -0.03509657829999924, -0.03913174569606781, -0.02582371048629284, 0.004808210767805576, 0.044755540788173676, 0.0628875270485878, 0.003278817282989621, 0.03887518495321274, -0.01595555990934372, 0.035010386258363724, 0.009583121165633202, -0.04690619185566902, -0.039159826934337616, -0.04579433053731918, 0.00013049747212789953, 0.021598178893327713, -0.01273223478347063, 0.023597976192831993, 0.01308448612689972, 0.0030057078693062067, -0.0012419363483786583, -0.00030396285001188517, 0.0191610399633646, -0.0015871983487159014, -0.025838784873485565, -0.0291399247944355, -0.023699335753917694, 0.04289066046476364, -0.041103560477495193, -0.017955010756850243, 0.0020167732145637274, -0.07849641144275665, 0.04558657109737396, -0.08051835745573044, -0.040463149547576904, -0.004399710800498724, 0.016727622598409653, 0.049076974391937256, 0.000069864334363956, 0.028733719140291214, 0.058882929384708405, 0.0054463716223835945, 0.004399314057081938, 0.010305902920663357, -0.025133294984698296, 0.03066764585673809, 0.012600051239132881, 0.012428241781890392, 0.04905330017209053, 0.004347143229097128, -0.004248504526913166, -0.039655350148677826, 0.0694279819726944, -0.03479021042585373, -0.2819860279560089, 0.04293171316385269, -0.014830258674919605, -0.03868095204234123, 0.011542313732206821, -0.003161126282066107, 0.016851000487804413, -0.04678013175725937, -0.0007254480151459575, -0.00008338155748788267, -0.04787832498550415, -0.04332133010029793, -0.016222985461354256, 0.049720171838998795, 0.00814331229776144, 0.028726518154144287, 0.02071557007730007, -0.035051312297582626, 0.016865219920873642, 0.051975201815366745, -0.0071718888357281685, -0.06195914000272751, 0.0001838590542320162, 0.037803784012794495, 0.04663030058145523, 0.03958522528409958, -0.08800091594457626, 0.04289799556136131, -0.04566201567649841, -0.0003880025469698012, 0.0025558285415172577, 0.03353004530072212, -0.0017050403403118253, -0.01595006138086319, -0.014263436198234558, -0.006635801400989294, 0.04852154105901718, -0.003931874874979258, -0.010075854137539864, 0.015004022978246212, -0.003641041461378336, -0.023287378251552582, 0.0001942699309438467, 0.004193470347672701, 0.07422439754009247, 0.013892168179154396, -0.07896056026220322, -0.00332387862727046, -0.020770560950040817, 0.07484930008649826, -0.04214812442660332, -0.03128519654273987, 0.008152168244123459, 0.054137248545885086, -0.009915280155837536, -0.028157582506537437, 0.004474122542887926, -0.013312501832842827, -0.024828966706991196, -0.02464492991566658, -0.019174182787537575, -0.021598611027002335, 0.00983109325170517, -0.057693928480148315, -0.00604855315759778, -0.07706853002309799, -0.08589322119951248, -0.0059874458238482475, 0.06206106022000313, 0.0035840212367475033, -0.03348235413432121, 0.02770514041185379, 0.003279278287664056, -0.10705006122589111, 0.016686653718352318, -0.010527944192290306, -0.014702788554131985, -0.00426107831299305, 0.0259238388389349, 0.03039148636162281, -0.01764683984220028, -0.08277168869972229, 0.02615458145737648, 0.015915725380182266, 0.011877038516104221, -0.004428622778505087, 0.06479135900735855, 0.021813957020640373, -0.03758465126156807, 0.017768897116184235, 0.05509420856833458, 0.015195751562714577, -0.0468268096446991, -0.011448383331298828, 0.03553455322980881, 0.005994957406073809, 0.036543842405080795, 0.0004890971467830241, 0.0011738053290173411, 0.042435429990291595, -0.023529695346951485, -0.06918339431285858, 0.0084841875359416, -0.03619508817791939, -0.0016932340804487467, -0.004830359481275082, -0.04564385861158371, -0.0072889169678092, 0.05965219438076019, 0.01969030685722828, 0.003981181886047125, -0.03342631459236145, 0.003392376471310854, -0.052336275577545166, -0.03375282883644104, -0.0074232276529073715, 0.013720978982746601, 0.03705080226063728, -0.008940084837377071, -0.0036009603645652533, -0.04345855116844177, 0.013273617252707481, -0.00758854765444994, 0.003669389523565769, -0.07605817914009094, -0.021884499117732048, -0.03271450102329254, -0.01422385685145855, 0.019092673435807228, 0.01345541886985302, -0.02426925301551819, 0.02445858344435692, -0.004427987150847912, -0.05277638882398605, 0.014507098123431206, -0.006025467533618212, -0.06726715713739395, -0.016603659838438034, -0.015946174040436745, -0.013854819349944592, 0.006952347233891487, 0.03049207106232643, -0.0004860719491261989, 0.0055335285142064095, 0.03752451390028, 0.0038946776185184717, 0.00566762313246727, -0.0032333864364773035, 0.031711287796497345, 0.017467312514781952, 0.0019728373736143112, -0.07856204360723495, 0.03727332502603531, -0.0455934964120388, -0.018336722627282143, -0.04623276740312576, 0.0385051965713501, -0.01029245089739561, -0.03872865065932274, -0.014866206794977188, -0.00551160192117095, -0.04101763293147087, -0.03900788724422455, -0.04176447540521622, 0.0417385995388031, 0.05989525467157364, -0.006985490210354328, 0.01798672415316105, -0.022854942828416824, -0.007719059474766254, 0.009887698106467724, 0.04021985083818436, -0.03328289836645126, -0.006801535375416279, 0.012812469154596329, -0.001830561552196741, -0.007225467823445797, 0.0015072694513946772, 0.04119846969842911, 0.013733310624957085, 0.0010212487541139126, -0.030135242268443108, -0.0009568032110109925, 0.029954681172966957, 0.04125778004527092, 0.027599811553955078, -0.0061398702673614025, -0.00408410606905818, -0.021067911759018898, -0.008934942074120045, -0.042590364813804626, -0.00341633684001863, 0.0024429820477962494, 0.042400602251291275, -0.04594610258936882, -0.08105798065662384, 0.06386597454547882, 0.02140108495950699, 0.00797245092689991, -0.0016779532888904214, -0.009678392671048641, 0.004828201606869698, -0.013789142481982708, 0.03406727686524391, 0.06020861864089966, -0.07845346629619598, 0.00047153743798844516, -0.022257285192608833, -0.011396314017474651, 0.000050257138354936615, -0.008187235333025455, -0.03153360262513161, -0.006977997720241547, -0.025323372334241867, 0.000218767105252482, -0.073888398706913, -0.01473917718976736, -0.009764527902007103, 0.0056068552657961845, -0.0006244277465157211, -0.019981076940894127, -0.024460935965180397, -0.0012269156286492944, -0.003816818119958043, -0.026853391900658607, 0.01325244177132845, -0.04447284713387489, 0.019458139315247536, 0.009196544997394085, -0.030493563041090965, -0.006047171540558338, -0.047430116683244705, -0.0015388624742627144, 0.022407768294215202, -0.01145048625767231, 0.001343187061138451, -0.02718440443277359, -0.0023829161655157804, 0.008707673288881779, 0.0323767364025116, -0.01195580791682005, -0.04193814843893051, -0.04103975370526314, -0.023076120764017105, -0.057745032012462616, 0.0061093843542039394, -0.04782356321811676, -0.007315556984394789, 0.014937766827642918, 0.06419220566749573, 0.027081292122602463, 0.030103839933872223, -0.014269220642745495, -0.007178171072155237, 0.029925452545285225, -0.055006589740514755, -0.03004603646695614, -0.03183719888329506, -0.0660298764705658, -0.00925163272768259, 0.013607078231871128, 0.02879326045513153, -0.03205064684152603, 0.05734182149171829, 0.01149260625243187, 0.04057707637548447, 0.01222244556993246, 0.004842311609536409, 0.024158908054232597, -0.06528057157993317, 0.0030964803881943226, -0.07887918502092361, 0.002001899993047118, 0.00829844269901514, 0.0006760465330444276, -0.011400015093386173, 0.0089346282184124, -0.03121769428253174, 0.039537668228149414, -0.06632544100284576, -0.028122395277023315, 0.043097108602523804, -0.010924223810434341, 0.0043364036828279495, 0.017874859273433685, -0.07418328523635864, 0.037623800337314606, 0.03467395901679993, -0.04944362863898277, -0.035921964794397354, -0.02501283399760723, 0.05626135692000389, 0.00502053601667285, 0.05584084987640381, -0.042475901544094086, -0.029240913689136505, 0.07148409634828568, 0.004838275723159313, -0.00156885152682662, 0.04006355255842209, -0.005996424704790115, 0.027511952444911003, 0.042549047619104385, 0.000945241772569716, -0.016063373535871506, 0.017367500811815262, -0.005855630151927471, -0.05978166311979294, 0.003018616698682308, 0.02232619747519493, -0.049319587647914886, -0.03540797904133797, 0.06523416191339493, 0.025118784978985786, -0.03217669576406479, -0.0452098473906517, 0.006572573445737362, -0.05296669527888298, 0.025552639737725258, -0.016714030876755714, -0.0078026545234024525, -0.05123821645975113, 0.056210242211818695, 0.0022607247810810804, 0.004880050662904978, 0.07230580598115921, 0.006423432845622301, -0.011826588772237301, -0.02814447693526745, 0.09016625583171844, 0.087041936814785, 0.06477957963943481, 0.008375703357160091, 0.061080608516931534, -0.027842195704579353, -0.053572606295347214, 0.015121896751224995, 0.02105206809937954, -0.022815963253378868, -0.022094856947660446, 0.018524235114455223, 0.050734009593725204, -0.00578699167817831, 0.0745958611369133, -0.013180702924728394, -0.02030092477798462, -0.0011482017580419779, 0.02703213505446911, 0.008664580062031746, 0.0666850283741951, 0.004977350123226643, 0.009007665328681469, -0.03152863308787346, -0.03264252468943596, 0.03519744053483009, -0.05437089875340462, -0.020331544801592827, 0.0386800616979599, 0.006179454270750284, 0.03444412723183632, 0.013262714259326458, 0.02677418291568756, 0.08704159408807755, -0.0536448210477829, -0.01060436014086008, -0.022961581125855446, 0.04382225498557091, 0.0038763652555644512, 0.016133202239871025, -0.03196156024932861, -0.0049394587986171246, -0.0059271520003676414, -0.01601625233888626, -0.02510433830320835, -0.017748717218637466, -0.01187142450362444, 0.07575834542512894, -0.02619585581123829, 0.0009662208613008261, 0.04202576354146004, 0.010267609730362892, -0.03143925219774246, -0.055877648293972015, -0.03238515928387642, -0.036181382834911346, -0.05490520969033241, -0.004822368733584881, 0.04359214007854462, 0.0050012217834591866, -0.028507715091109276, 0.0015912177041172981, -0.0072664301842451096, -0.03113093413412571, 0.05010664090514183, -0.05952581763267517, -0.037247177213430405, -0.0035602853167802095, 0.026193514466285706, 0.02022506110370159, 0.019125813618302345, 0.04676284268498421, -0.0205833837389946, 0.0023045260459184647, -0.014046451076865196, 0.02093157358467579, 0.01693509891629219, 0.020240455865859985, 0.014030381105840206, -0.06558741629123688, 0.01043827272951603, 0.025607414543628693, -0.008278141729533672, -0.064006507396698, 0.03264914080500603, 0.006502707954496145, -0.0071441903710365295, 0.05499939247965813, 0.0020054185297340155, 0.02170134149491787, -0.031982384622097015, -0.006923312321305275, -0.01303930301219225, 0.022718258202075958, 0.04106936603784561, -0.014919433742761612, 0.09442740678787231, 0.03182603046298027, -0.018911711871623993, -0.03349544107913971, -0.02147320657968521, -0.016612740233540535, 0.008467580191791058, -0.014516196213662624, -0.024660510942339897, -0.024975646287202835, -0.07737375050783157, -0.024702224880456924, 0.018600067123770714, -0.022530250251293182, -0.03417874500155449, 0.03113279491662979, 0.026756690815091133, -0.0319785512983799, 0.020567841827869415, -0.05327876657247543, 0.050176408141851425, -0.02186344936490059, -0.005729165859520435, -0.00002059058715531137, 0.005031239707022905, -0.0170443058013916, 0.00903785228729248, 0.010277283377945423, -0.0533147007226944, 0.015791546553373337, -0.0034636936616152525, 0.022121507674455643, 0.03058706969022751, 0.03354129195213318, 0.01582309417426586 ]
[ -0.07899133861064911, 0.01414831355214119, -0.031973060220479965, -0.03400047495961189, 0.040025580674409866, -0.0524163544178009, 0.008912553079426289, 0.03537455201148987, -0.019295770674943924, -0.026743976399302483, 0.02063099481165409, -0.004316739737987518, -0.003549500834196806, -0.06314682960510254, 0.09570854902267456, 0.028968922793865204, 0.011372813023626804, -0.041036300361156464, 0.015377885662019253, 0.030032822862267494, 0.014791526831686497, -0.05232636630535126, -0.029433611780405045, -0.04451592639088631, 0.013880398124456406, 0.0017508578021079302, -0.006310516502708197, -0.045611388981342316, 0.013140404596924782, -0.18335281312465668, -0.012301568873226643, 0.03504745662212372, 0.07479272037744522, -0.03452889993786812, 0.029712535440921783, 0.07513462752103806, 0.0344800166785717, -0.005031288135796785, -0.012583873234689236, 0.03415161743760109, 0.0018171967240050435, -0.008961896412074566, -0.041796158999204636, -0.008954864926636219, 0.028491143137216568, 0.011746174655854702, 0.016590341925621033, -0.047373950481414795, -0.09266333281993866, 0.011827629059553146, -0.05604047700762749, -0.04421354457736015, -0.014824057929217815, -0.0035240098368376493, -0.013271370902657509, 0.045146118849515915, 0.04204286262392998, 0.05351872369647026, -0.013628993183374405, -0.00030146987410262227, 0.00792543962597847, -0.02937900274991989, -0.15484672784805298, 0.100094735622406, 0.03599884361028671, 0.05125266686081886, -0.07383334636688232, -0.04551739618182182, -0.02608136460185051, 0.07587793469429016, 0.034349922090768814, -0.03741411864757538, -0.024191539734601974, 0.019376598298549652, 0.03564995154738426, 0.0219122264534235, 0.00024065207981038839, -0.011262044310569763, 0.0236556027084589, -0.040767207741737366, -0.037728406488895416, 0.009229602292180061, -0.0248442180454731, -0.011063032783567905, -0.045586492866277695, 0.03734783083200455, 0.012207587249577045, 0.04795120283961296, 0.03298657387495041, -0.005828114692121744, 0.028231805190443993, -0.005996074061840773, 0.04308934509754181, 0.0014889499871060252, -0.07504898309707642, -0.006603393238037825, 0.012364075519144535, 0.034798964858055115, -0.06203557550907135, 0.44472193717956543, -0.026503192260861397, -0.04007555916905403, 0.079398512840271, -0.0008432943723164499, 0.006197730079293251, 0.02502562664449215, 0.004558313637971878, -0.05056745186448097, 0.029137756675481796, -0.013885934837162495, 0.05071172118186951, 0.04345386475324631, 0.03647662326693535, -0.04168342426419258, -0.01198547426611185, 0.005893985275179148, 0.005370704457163811, 0.010366874746978283, 0.024624774232506752, -0.037999946624040604, -0.015705743804574013, 0.026038896292448044, 0.02244250476360321, 0.007709437515586615, -0.04234209284186363, -0.011340539902448654, 0.032183628529310226, 0.04490204155445099, 0.03497914969921112, -0.018818233162164688, 0.07701260596513748, -0.0056777154095470905, -0.04577602818608284, 0.022928185760974884, 0.013740275986492634, 0.004928071983158588, 0.020656172186136246, -0.009664135053753853, -0.020021378993988037, 0.04308861121535301, 0.004103302024304867, 0.01473477017134428, 0.02380101941525936, -0.019885070621967316, -0.0456874817609787, 0.10268653929233551, 0.026992810890078545, -0.05634252354502678, -0.009792125783860683, -0.020085692405700684, -0.0000845777103677392, 0.025750724598765373, 0.015048340894281864, -0.045503318309783936, 0.03996245935559273, 0.014271840453147888, 0.09980392456054688, -0.014720831997692585, -0.0818958505988121, 0.001140641514211893, 0.021572045981884003, -0.02857079915702343, -0.05986068770289421, 0.0542321503162384, 0.08264214545488358, -0.11952680349349976, 0.0015593093121424317, 0.029994141310453415, 0.015183662995696068, -0.06811106204986572, -0.004731716588139534, 0.006783385761082172, -0.02917361445724964, 0.005929268430918455, 0.05421916022896767, -0.036387763917446136, -0.04003758355975151, 0.007410928141325712, 0.0498419888317585, 0.031855031847953796, 0.03653964027762413, 0.02129114232957363, -0.017547164112329483, -0.016731807962059975, -0.02218807116150856, -0.05853044241666794, -0.023938169702887535, -0.016824396327137947, -0.022386422380805016, 0.007430325262248516, -0.0029852103907614946, 0.0421382300555706, -0.03211338818073273, 0.11188936233520508, -0.0005809761350974441, 0.0028878548182547092, 0.008122648112475872, -0.02932491898536682, -0.051976416260004044, -0.022817816585302353, -0.0795581117272377, 0.04601193219423294, -0.03274606540799141, 0.025339681655168533, -0.06427735090255737, 0.0353643000125885, 0.048813026398420334, -0.034034546464681625, 0.09179263561964035, 0.052294034510850906, -0.036516692489385605, -0.03444743901491165, 0.0025391103699803352, 0.02990611083805561, -0.007825254462659359, -0.021295899525284767, 0.002173852641135454, 0.022094912827014923, 0.021346764639019966, 0.04028736799955368, -0.05632929503917694, 0.049020856618881226, -0.036815937608480453, -0.35311323404312134, -0.02735455520451069, -0.03475242853164673, 0.035142067819833755, 0.00609741173684597, -0.04023117944598198, 0.01055479608476162, -0.024754561483860016, -0.023735985159873962, 0.016891203820705414, 0.05254888907074928, 0.005452296696603298, -0.011178459040820599, -0.07950326800346375, 0.0011992623331025243, 0.020993484184145927, -0.018698599189519882, -0.03534054756164551, -0.04256291314959526, -0.00240459106862545, 0.0018991597462445498, 0.010829152539372444, -0.01608305610716343, -0.04245710372924805, -0.04299337789416313, -0.04948312044143677, 0.07412704080343246, -0.0017438458744436502, 0.07749956101179123, -0.0260835699737072, 0.02141389809548855, 0.0039551397785544395, 0.031641557812690735, -0.10951726883649826, 0.020957693457603455, -0.0028892667032778263, 0.02629348263144493, -0.04086428880691528, 0.0179282259196043, -0.010426042601466179, -0.06335251778364182, 0.023368017747998238, -0.05588620901107788, -0.03214249387383461, -0.033910587430000305, -0.005398601293563843, -0.028071576729416847, -0.06586892157793045, -0.025196807458996773, 0.06833285838365555, 0.0021624919027090073, 0.024706151336431503, 0.020102670416235924, 0.012231776490807533, -0.027574071660637856, -0.0424993559718132, -0.0962943285703659, 0.03620211035013199, -0.0022912737913429737, -0.005432741716504097, 0.04811135679483414, 0.027687668800354004, 0.010545073077082634, -0.06807446479797363, 0.006281556561589241, -0.0064742774702608585, 0.01000995747745037, 0.02161533385515213, 0.03709430992603302, -0.049436941742897034, 0.010200219228863716, 0.08884922415018082, 0.02554182894527912, -0.027238668873906136, 0.020980585366487503, 0.01662958227097988, 0.007424961309880018, 0.022821594029664993, 0.014247409999370575, -0.030757492408156395, 0.009714418090879917, -0.00102540897205472, 0.04112347960472107, -0.022464146837592125, 0.012792672030627728, 0.019004426896572113, -0.01700723171234131, -0.03951796889305115, 0.035647131502628326, 0.019922487437725067, -0.022653646767139435, 0.0017624408937990665, -0.0362544022500515, -0.05904744938015938, 0.0601741261780262, 0.02186167612671852, -0.23432759940624237, 0.017049413174390793, 0.057335685938596725, 0.02730906754732132, -0.0225153099745512, 0.03806068375706673, 0.008720957674086094, -0.07876162976026535, 0.01643710769712925, 0.03647792711853981, 0.03747476264834404, 0.018219225108623505, 0.0006733359186910093, 0.0031832947861403227, 0.04754761606454849, 0.0026301066391170025, 0.05458908528089523, -0.00782773271203041, 0.014687119983136654, -0.025500675663352013, 0.014098926447331905, 0.013995976187288761, 0.16155947744846344, -0.008901845663785934, 0.0342368520796299, 0.005560531280934811, -0.0032646844629198313, 0.012379868887364864, 0.05912516638636589, 0.0075962133705616, 0.02032691426575184, 0.014724052511155605, 0.06462176889181137, 0.0007158481748774648, 0.014881020411849022, -0.04925395920872688, -0.016989270225167274, -0.005658718291670084, 0.03381595015525818, 0.01080952025949955, -0.0018066599732264876, -0.016825610771775246, -0.049187418073415756, 0.03207210451364517, 0.07879368215799332, -0.0060091642662882805, -0.008726458065211773, -0.043199118226766586, -0.02647317945957184, 0.0001022417054628022, -0.05380712077021599, -0.02867669239640236, -0.013471618294715881, 0.002968677319586277, 0.015197654254734516, 0.05176563188433647, 0.03397646173834801, -0.026047656312584877, -0.028704501688480377, -0.011220136657357216, -0.036848798394203186, -0.015605279244482517, 0.054505158215761185, 0.05502696335315704, 0.02827158197760582 ]
[ -0.04563557356595993, -0.0024580461904406548, -0.013983062468469143, 0.016488198190927505, -0.024093417450785637, -0.026254944503307343, -0.03008047118782997, -0.016785327345132828, -0.076899953186512, 0.003910873085260391, -0.004941496532410383, 0.013059054501354694, 0.047390151768922806, -0.03080446645617485, -0.0000490140519104898, 0.02969461679458618, 0.008099234662950039, -0.015737522393465042, 0.025711512193083763, 0.011450976133346558, -0.0005276323645375669, 0.028602097183465958, -0.03386181965470314, -0.0010729874484241009, -0.033506762236356735, -0.02624131739139557, -0.00919498223811388, 0.017347313463687897, 0.014247928746044636, -0.09396229684352875, -0.049305401742458344, 0.01586749218404293, 0.039968736469745636, 0.02558133937418461, 0.006102353800088167, 0.053606923669576645, 0.02963634766638279, -0.00833651702851057, 0.02068561315536499, -0.01460040733218193, -0.07518139481544495, -0.006408457178622484, 0.013966210186481476, 0.029259150847792625, -0.027132293209433556, 0.014871211722493172, 0.016462773084640503, -0.06724157184362411, -0.044016335159540176, -0.009043563157320023, -0.037843555212020874, -0.007230041082948446, -0.01611263118684292, -0.0066805570386350155, 0.003997440449893475, 0.004395630676299334, 0.05283794552087784, -0.004067258443683386, 0.011985557153820992, -0.012952487915754318, 0.007050582207739353, -0.012649338692426682, -0.0745471641421318, -0.015082896687090397, -0.015043766237795353, -0.028261395171284676, -0.031019864603877068, 0.014596567489206791, -0.05319906771183014, 0.003131517907604575, 0.05697746202349663, -0.0010503625962883234, -0.037671029567718506, 0.015761271119117737, 0.06602782756090164, -0.010164482519030571, 0.012740119360387325, -0.027594318613409996, 0.052127406001091, 0.0038959255907684565, -0.07827278971672058, 0.013466776348650455, -0.01233868207782507, 0.03336052596569061, -0.03266645595431328, -0.027923036366701126, 0.028019875288009644, 0.0024453531950712204, 0.008370944298803806, 0.027225341647863388, -0.025078896433115005, -0.0028949109837412834, 0.002871517324820161, 0.008302072063088417, -0.08586225658655167, -0.010902847163379192, -0.009719446301460266, -0.01368495263159275, -0.015658238902688026, 0.7956498861312866, -0.021949458867311478, 0.022700689733028412, 0.002095170319080353, -0.016649704426527023, -0.017049916088581085, 0.04019242897629738, 0.0027592068072408438, -0.013047375716269016, -0.002940852427855134, -0.020515065640211105, 0.033152997493743896, 0.0067816139198839664, -0.0013234075158834457, -0.003427776275202632, 0.039171408861875534, -0.01059654075652361, 0.001576978131197393, 0.00825370941311121, -0.02746470272541046, 0.014140508137643337, 0.023114105686545372, 0.007856297306716442, 0.004728156141936779, 0.0127269197255373, 0.03357972949743271, -0.1627071350812912, 0.02438635379076004, -9.375659922870038e-33, -0.011238840408623219, 0.0016153247561305761, -0.030742129310965538, 0.01303040236234665, 0.01671046018600464, 0.030363960191607475, 0.07573562860488892, 0.043520666658878326, -0.008825023658573627, -0.02509424090385437, 0.011069952510297298, -0.009592527523636818, -0.05656294524669647, -0.007802958134561777, 0.018329737707972527, 0.004948912654072046, 0.00455123744904995, 0.015610341913998127, -0.026650840416550636, 0.03597276657819748, 0.06741102039813995, 0.030494261533021927, -0.0413978137075901, 0.014921499416232109, 0.03920556977391243, 0.011009464971721172, 0.0384550467133522, 0.015171041712164879, -0.01794484257698059, -0.03109566494822502, -0.018174875527620316, 0.028907382860779762, -0.0004468390252441168, -0.016733871772885323, -0.020935390144586563, -0.014195282943546772, -0.03040310926735401, 0.004854173865169287, -0.01895317994058132, -0.004088759422302246, -0.039297379553318024, 0.0069425394758582115, -0.023694179952144623, -0.044686801731586456, -0.013165646232664585, 0.0027005719020962715, 0.02163955196738243, 0.06469407677650452, 0.02601028047502041, -0.006516562309116125, -0.013167531229555607, 0.0630854070186615, 0.07076919078826904, 0.06875468045473099, -0.006882271729409695, 0.006559239234775305, 0.0030197070445865393, -0.0010701922001317143, 0.015339743345975876, -0.011744552291929722, 0.06684216856956482, 0.0012324632843956351, 0.012353206984698772, 0.043657392263412476, -0.022253863513469696, -0.02867899462580681, 0.05615720525383949, 0.01510291825979948, 0.03372863680124283, 0.033499691635370255, -0.061160702258348465, -0.023221898823976517, 0.003858148120343685, 0.013312199153006077, -0.03845372423529625, 0.017356129363179207, -0.0023707819636911154, 0.03931276127696037, -0.009875176474452019, -0.00857058446854353, -0.017360765486955643, 0.007277889177203178, -0.010122302919626236, -0.005707401316612959, -0.015121139585971832, 0.009245949797332287, 0.021193483844399452, -0.02971946820616722, -0.03491371497511864, 0.03330876678228378, 0.0005711768753826618, -0.029426034539937973, 0.013724435120821, 0.016061976552009583, -0.009884421713650227, 8.752231351123653e-33, 0.00882107112556696, -0.026026060804724693, -0.012097232043743134, 0.03318195044994354, 0.04493122920393944, -0.020022794604301453, 0.036660898476839066, -0.016398444771766663, -0.0509628988802433, 0.045911528170108795, 0.018636232241988182, -0.021294202655553818, -0.05531783401966095, 0.01962541602551937, 0.07336494326591492, -0.020155830308794975, 0.0005105296731926501, -0.0007252455689013004, 0.026267897337675095, -0.02426396682858467, -0.008723688311874866, 0.021884839981794357, 0.011215605773031712, 0.002210120903328061, 0.03834403306245804, 0.03759593889117241, -0.043817613273859024, 0.04008191078901291, -0.001621565199457109, 0.01563224196434021, 0.014767282642424107, -0.02395412139594555, 0.0011970002669841051, 0.006076405290514231, -0.0009954512352123857, -0.026736095547676086, -0.01462635025382042, 0.0006927294889464974, 0.04555672034621239, 0.045883480459451675, 0.0435192808508873, 0.008935866877436638, -0.007240231614559889, 0.059616394340991974, 0.0024258450139313936, 0.020129146054387093, 0.01211082935333252, -0.018157565966248512, 0.020737212151288986, 0.016933629289269447, 0.016380496323108673, 0.05648825317621231, -0.017095044255256653, -0.03634735941886902, -0.007844536565244198, -0.03446339815855026, 0.010548758320510387, -0.048761218786239624, 0.004655804950743914, 0.06054511293768883, -0.04428127408027649, -0.0022072948049753904, -0.00473449332639575, 0.03942401334643364, -0.05541712045669556, -0.026854759082198143, 0.026128191500902176, 0.004108847584575415, -0.05602274462580681, -0.004793184343725443, 0.005152867175638676, 0.024451784789562225, 0.03302339091897011, 0.028769616037607193, -0.029484158381819725, -0.009128274396061897, -0.026483289897441864, -0.013423847034573555, -0.049829401075839996, -0.04331986606121063, 0.017956677824258804, -0.02971746027469635, 0.055989183485507965, 0.05115412920713425, -0.03684421628713608, 0.04667900130152702, -0.0326518788933754, 0.029873358085751534, -0.03006153553724289, -0.0055724503472447395, -0.018549667671322823, -0.044636320322752, 0.002433985471725464, -0.04201120138168335, -0.035751424729824066, -1.3913484586680624e-8, -0.023831134662032127, 0.0091917235404253, -0.035410646349191666, -0.02331630513072014, 0.002513894345611334, 0.0208264347165823, -0.024988392367959023, 0.007552194409072399, 0.002749267965555191, 0.03841124102473259, 0.06651847064495087, -0.049067508429288864, -0.027953682467341423, 0.04994302615523338, 0.020142272114753723, -0.04780704900622368, 0.006781712640076876, 0.0025645599234849215, 0.017090030014514923, -0.05004647374153137, 0.036971770226955414, 0.03521602973341942, -0.04098327457904816, 0.018573489040136337, -0.030311662703752518, 0.019831499084830284, -0.04672057181596756, -0.06269876658916473, 0.015540018677711487, 0.007909941487014294, -0.003957082983106375, -0.012515686452388763, -0.023454155772924423, 0.03002581186592579, -0.02422463148832321, -0.011352554894983768, 0.018482478335499763, 0.019793866202235222, -0.03528796136379242, 0.0008913199417293072, -0.02070402354001999, -0.005299828946590424, -0.03016149438917637, -0.037317905575037, 0.010207190178334713, -0.004920643288642168, -0.004286420531570911, 0.0026042836252599955, -0.005696817766875029, 0.042646024376153946, 0.004228859208524227, -0.00008958660328062251, 0.04596485570073128, 0.008433055132627487, 0.026570487767457962, 0.016437644138932228, -0.032111380249261856, -0.044967588037252426, -0.029032427817583084, 0.0016802792670205235, -0.00842440128326416, -0.0029797565657645464, -0.015172058716416359, -0.032978761941194534 ]
the-computer-scientist-as-toolsmith-fred-brooks
https://markhneedham.com/blog/2009/12/16/the-computer-scientist-as-toolsmith-fred-brooks
false
2009-12-16 22:08:22
Coding: Naming
[ "coding" ]
[ "Coding" ]
Sarah Taraporewalla recently wrote http://sarahtaraporewalla.com/thoughts/design/the-importance-of-words[an interesting post about the importance of words with respect to the way that we use them in our code] and it reminded me of some conversations I've had with http://intwoplacesatonce.com/[Dave Cameron] about the importance of creating a shared understanding of the different types/objects in the systems that we build. On a few projects that I've worked on where we didn't have a common understanding of what different concepts in the domain should be I noticed that there was a reluctance to make changes to class names. Dave pointed out that this was probably because people have different maps in their head about what different domain concepts actually mean and changing class names ruins that map and therefore people's mechanism for remembering what different classes do. == So how can we identify the real names? If we can come up with a good enough way to name the types that exist in our system such that everyone has the same understanding then the mapping problem disappears. Domain Driven Design suggests the http://devlicio.us/blogs/casey/archive/2009/02/09/ddd-the-ubiquitous-language.aspx[ubiquitous language] as a way to solve this problem, and while getting the language of the business into our code is the best way that I've come across for doing this sometimes it's difficult to get this sort of access to domain experts to make it possible. In that situation I think just listening to how we talk about the code is enough to identify problem areas. Typically if a concept isn't described by the name that it's been given then the person will describe the actual concept in the words they use to explain what they're actually referring to. The neat thing about a ubiquitous language is that if we name things in such a way that everyone does have the same understanding then if we decide later that we need a new name by definition the new name will do a better name of describing an object than the old one. Names are there to make it easier for us to talk and reason about code - if they're not doing that then we need to change them until they do.
null
null
[ 0.017049318179488182, 0.015849702060222626, -0.00209377845749259, 0.04508192464709282, 0.0790601372718811, 0.018897389993071556, 0.02924412675201893, 0.03727216273546219, 0.03132526949048042, -0.027405017986893654, -0.03409575670957565, -0.013990540988743305, -0.05734340101480484, 0.03722459077835083, -0.024204881861805916, 0.07894988358020782, 0.05960547924041748, 0.00819756742566824, 0.013116997666656971, 0.01146091241389513, 0.02295631170272827, 0.05305857956409454, 0.014534578658640385, 0.03601731359958649, 0.02913995087146759, 0.010757850483059883, 0.01159028522670269, 0.01169514562934637, -0.05512257292866707, -0.014857818372547626, 0.04506025090813637, 0.007638841401785612, -0.0003068172081839293, 0.015835318714380264, 0.01254552323371172, -0.025323158130049706, -0.02393447980284691, -0.002286098897457123, 0.0016209774184972048, 0.02229720912873745, -0.07327038794755936, 0.04251648858189583, 0.00680305203422904, -0.004741244483739138, -0.03806494548916817, -0.00041253966628573835, -0.07761415094137192, 0.018623104318976402, 0.002698215888813138, 0.00426366925239563, -0.05317290499806404, 0.019441969692707062, 0.0009314456256106496, 0.011480486020445824, -0.03265797346830368, 0.03166335076093674, 0.03425075113773346, -0.07897070795297623, 0.003438831539824605, -0.04588423669338226, 0.016900328919291496, -0.006531627848744392, 0.0040696896612644196, 0.035216402262449265, 0.02930917777121067, -0.019811837002635002, -0.020630640909075737, 0.020996935665607452, -0.05310899391770363, 0.005265567451715469, -0.003956949803978205, 0.005498428829014301, 0.005970583762973547, -0.003357401117682457, -0.013565643690526485, -0.024655990302562714, 0.005913580767810345, 0.06656106561422348, 0.025276849046349525, 0.039814114570617676, -0.04056749492883682, 0.004374449606984854, 0.007128521800041199, 0.025665417313575745, -0.012243131175637245, -0.0521751344203949, -0.008202102966606617, -0.01837710477411747, -0.058060795068740845, 0.05308183282613754, -0.004915208090096712, -0.06658841669559479, 0.025874214246869087, 0.026331553235650063, -0.001432062592357397, -0.007212103810161352, 0.03277842700481415, -0.0028396009001880884, -0.016200559213757515, 0.0016587590798735619, -0.034726280719041824, -0.031518757343292236, 0.006500413175672293, -0.006650594528764486, -0.07707148045301437, -0.02409457415342331, -0.01683030091226101, -0.007073753979057074, -0.002865958958864212, -0.003673899918794632, -0.03696192800998688, 0.027816710993647575, -0.018872471526265144, -0.013296286575496197, -0.04420643299818039, 0.06947039067745209, -0.007246000692248344, -0.03626515716314316, -0.006676346529275179, 0.020329149439930916, 0.03073994815349579, -0.0024055286776274443, -0.029025113210082054, 0.07060262560844421, 0.009246866218745708, 0.014080236665904522, -0.03097243420779705, 0.04590469226241112, -0.035325538367033005, -0.06950069963932037, -0.003603372722864151, 0.046214282512664795, -0.030376143753528595, -0.004133057314902544, 0.00019485752272885293, -0.040405794978141785, -0.0005552880465984344, 0.005928944330662489, 0.03970200568437576, 0.039365004748106, -0.010073132812976837, -0.03120114654302597, -0.0003488962247502059, 0.018602538853883743, 0.042305804789066315, 0.0030403505079448223, -0.01447337307035923, -0.02974511869251728, -0.03770216554403305, -0.01870192587375641, -0.019921191036701202, 0.057243164628744125, 0.017358219251036644, -0.03916351869702339, 0.01471744291484356, 0.08705402165651321, 0.03293444588780403, 0.027766551822423935, 0.0029929387383162975, 0.05227944999933243, 0.016292734071612358, -0.011873104609549046, 0.010492846369743347, 0.03823478892445564, 0.0233622957020998, -0.0017339017940685153, 0.0016986244590952992, 0.06527026742696762, 0.011743804439902306, -0.010544484481215477, -0.06653571128845215, -0.05681847035884857, 0.056886132806539536, -0.05943276733160019, -0.019149305298924446, 0.03741300478577614, 0.07826100289821625, 0.024473348632454872, 0.04355936124920845, -0.009915506467223167, -0.07286372035741806, 0.009618233889341354, 0.003507256507873535, 0.016886990517377853, 0.02509186789393425, -0.015159049071371555, 0.048560526221990585, 0.029031045734882355, 0.0023231511004269123, 0.06331053376197815, -0.058988966047763824, -0.07711581885814667, -0.012269358150660992, -0.011761714704334736, 0.0544150285422802, -0.024216894060373306, 0.017150118947029114, 0.1002105101943016, 0.0025891042314469814, 0.05353643745183945, 0.022503530606627464, 0.0175008587539196, -0.0004029215779155493, -0.039953961968421936, -0.023610547184944153, 0.05404224619269371, 0.02119586430490017, -0.0042588296346366405, -0.02911638654768467, 0.015363851562142372, 0.01653423346579075, -0.026342911645770073, 0.05757678672671318, -0.016400085762143135, 0.03112356923520565, -0.015972893685102463, 0.06658096611499786, -0.03892173990607262, 0.04903971403837204, -0.05673202499747276, 0.017121853306889534, 0.008973093703389168, -0.018296830356121063, 0.012122021988034248, -0.0019419207237660885, 0.12535133957862854, 0.05337266996502876, -0.022596001625061035, -0.04422710835933685, 0.008723925799131393, 0.017478691413998604, -0.03768691048026085, 0.00894366018474102, -0.011007590219378471, -0.010811920277774334, 0.008137817494571209, -0.05749483034014702, -0.04556312412023544, 0.016588103026151657, -0.0226143691688776, -0.007759165484458208, 0.07530777901411057, -0.04436229169368744, 0.05179665982723236, -0.01777474768459797, 0.014635084196925163, -0.0055886125192046165, -0.04151616618037224, -0.03885602578520775, 0.008634287863969803, -0.0016762801678851247, -0.011464479379355907, 0.03256217762827873, -0.009818192571401596, -0.0220562182366848, -0.029860766604542732, -0.035569142550230026, 0.009469350799918175, 0.03347186744213104, 0.06922612339258194, -0.02480408176779747, 0.09684675931930542, -0.011699755676090717, 0.02013624645769596, -0.009601449593901634, -0.07276681065559387, -0.009493086487054825, -0.028675008565187454, -0.0024021496064960957, 0.030228376388549805, 0.013209973461925983, 0.029448170214891434, 0.0122084841132164, -0.008637001737952232, 0.0023489040322601795, 0.012473678216338158, 0.015056646429002285, -0.0014687032671645284, -0.0027123240288347006, -0.025437604635953903, -0.03716520965099335, 0.040013574063777924, -0.04744549095630646, -0.02660529315471649, -0.011138508096337318, -0.06800533831119537, 0.04912075400352478, -0.08287638425827026, -0.06070655956864357, 0.013791711069643497, 0.04984721541404724, 0.02156883291900158, -0.006794418673962355, 0.009241869673132896, 0.06499874591827393, 0.003727151546627283, -0.012812554836273193, -0.015783390030264854, -0.018174679949879646, 0.04658985137939453, -0.0367574542760849, 0.01460990309715271, 0.03342682123184204, 0.012854418717324734, -0.006383986212313175, -0.038760457187891006, 0.029553081840276718, -0.0013337816344574094, -0.2980870008468628, 0.01343904435634613, -0.0012854140950366855, -0.04697669297456741, 0.014213141053915024, -0.008876916952431202, 0.01196675281971693, -0.0581592433154583, -0.027637148275971413, 0.025081047788262367, -0.04060161113739014, -0.04563312232494354, 0.00030049867928028107, 0.026182986795902252, -0.005822843872010708, 0.03632976487278938, 0.020733971148729324, -0.04594242200255394, -0.018823666498064995, 0.03869813680648804, -0.019692594185471535, -0.057890892028808594, -0.010089270770549774, 0.060541506856679916, 0.02851039357483387, 0.05120740830898285, -0.08641618490219116, 0.03766949474811554, -0.046788573265075684, 0.018492398783564568, 0.019476668909192085, 0.011122839525341988, -0.011566728353500366, -0.02327461540699005, -0.01991415210068226, -0.02698787860572338, 0.029760107398033142, 0.007710744626820087, -0.015581001527607441, 0.014359110966324806, -0.015799453482031822, -0.04445356875658035, -0.004654044285416603, 0.016357535496354103, 0.04992382600903511, -0.01049521192908287, -0.08755406737327576, -0.003029528772458434, -0.04359759762883186, 0.08481355011463165, -0.035589493811130524, -0.050149258226156235, 0.011562020517885685, 0.04202358052134514, -0.005965515971183777, -0.004198652226477861, 0.01852816343307495, -0.0444408617913723, -0.06595013290643692, -0.05368519946932793, 0.000524958421010524, -0.030056539922952652, -0.011526829563081264, -0.0554560087621212, 0.01129432674497366, -0.05228136479854584, -0.08952628821134567, -0.0012374375946819782, 0.07020589709281921, 0.03706683591008186, -0.044652342796325684, 0.033005088567733765, -0.001605781028047204, -0.12318073213100433, -0.0002795098116621375, -0.01139689702540636, -0.01089510228484869, -0.027396388351917267, 0.012035571038722992, 0.02664930187165737, -0.01761735789477825, -0.05174607038497925, -0.0011829076102003455, 0.03074503131210804, 0.004067397676408291, -0.01758372224867344, 0.051234371960163116, 0.009832335636019707, -0.029769450426101685, 0.012052284553647041, 0.057356663048267365, 0.015596422366797924, -0.02590198814868927, -0.023881269618868828, 0.023402130231261253, 0.0037102585192769766, 0.024508453905582428, -0.010827814228832722, 0.016576489433646202, 0.019781984388828278, -0.011439421214163303, -0.07631821185350418, 0.03385015204548836, -0.00763229513540864, 0.005966564640402794, -0.0038208081386983395, -0.036172833293676376, 0.000493491708766669, 0.05186418071389198, 0.0017980727134272456, -0.017928121611475945, -0.03759002313017845, 0.0006314577185548842, -0.05636836588382721, -0.05325068533420563, -0.017778431996703148, 0.015673769637942314, 0.04645821824669838, -0.005483049433678389, -0.032328709959983826, -0.029662271961569786, 0.02430562488734722, 0.009387090802192688, 0.003457243088632822, -0.0600290447473526, -0.02816108800470829, -0.006795206572860479, -0.01990477181971073, 0.020564043894410133, 0.01871355250477791, -0.004434341564774513, 0.021220020949840546, 0.013189950957894325, -0.039291709661483765, 0.021723585203289986, -0.010050402022898197, -0.038028862327337265, -0.011131541803479195, -0.012171662412583828, -0.018891364336013794, 0.01037499587982893, 0.009837816469371319, 0.01177570503205061, 0.0035759645979851484, 0.07146245986223221, -0.0019150220323354006, 0.01852414757013321, 0.006328881718218327, 0.03887937217950821, 0.009721453301608562, -0.0032151497434824705, -0.0893608033657074, 0.03355635330080986, -0.038995157927274704, -0.015486159361898899, -0.0437781848013401, 0.028637241572141647, -0.004943510517477989, -0.03778306394815445, -0.017622122541069984, 0.0045593054965138435, -0.05839214101433754, -0.017544511705636978, -0.0038611057680100203, 0.017448149621486664, 0.06634984910488129, -0.02884036675095558, 0.030991438776254654, -0.012749627232551575, -0.011190366931259632, 0.03507278487086296, 0.02455083280801773, -0.034866444766521454, 0.01947181299328804, 0.01679496467113495, -0.00880719255656004, -0.017932569608092308, 0.013648458756506443, 0.05822554975748062, 0.0331786572933197, 0.008420849218964577, -0.005774096120148897, 0.014476527459919453, 0.015020898543298244, 0.06341131031513214, 0.020143913105130196, 0.015738246962428093, 0.008899882435798645, -0.020305663347244263, -0.023696033284068108, -0.037649642676115036, 0.01497781090438366, 0.0017763132927939296, 0.019062455743551254, -0.048915326595306396, -0.06828014552593231, 0.061252661049366, -0.001784194028005004, 0.013422947376966476, 0.0076812077313661575, 0.0005076872766949236, 0.00889821257442236, -0.028465652838349342, 0.03412316367030144, 0.05718150734901428, -0.07147638499736786, 0.025272564962506294, -0.004347797948867083, -0.005034836940467358, 0.01269516721367836, 0.010809121653437614, -0.03366843983530998, -0.032267045229673386, -0.04639387130737305, 0.011265045963227749, -0.05375850945711136, -0.04670696705579758, -0.016589829698204994, 0.03597630560398102, 0.0010271953651681542, 0.0019831424579024315, -0.007402701303362846, 0.01804378628730774, 0.009162123315036297, -0.026637306436896324, 0.021009886637330055, -0.029831206426024437, 0.012579623609781265, 0.026104360818862915, -0.05038702115416527, 0.004043280612677336, -0.017740624025464058, 0.00762888602912426, 0.01649913564324379, -0.031117286533117294, -0.025363808497786522, -0.021928410977125168, -0.000550840690266341, 0.0006340269464999437, 0.07058396935462952, 0.012699765153229237, -0.037573397159576416, -0.04333361238241196, -0.002861058572307229, -0.03531591221690178, 0.022399600595235825, -0.04279066249728203, -0.015779677778482437, 0.004767803009599447, 0.05081824213266373, 0.014194094575941563, 0.016643185168504715, -0.023661945015192032, 0.0025842871982604265, 0.040350619703531265, -0.08063455671072006, -0.03473811224102974, -0.03154820203781128, -0.06208636611700058, -0.0025291561614722013, 0.013655745424330235, 0.014063367620110512, -0.012826870195567608, 0.042100731283426285, 0.03228019177913666, 0.03246723487973213, 0.028706740587949753, 0.008705697022378445, 0.03929887339472771, -0.04807266220450401, 0.014863408170640469, -0.07322966307401657, 0.020639609545469284, 0.005996266845613718, 0.006763103883713484, -0.00905669666826725, -0.015227862633764744, -0.04834838584065437, 0.062433209270238876, -0.0706758052110672, -0.03002985194325447, 0.02485707215964794, 0.011784708127379417, -0.00988404918462038, -0.0017639851430431008, -0.07816512882709503, 0.011489363387227058, 0.01912803389132023, -0.03294116258621216, -0.03670194745063782, -0.02854972891509533, 0.04383905231952667, 0.009861425496637821, 0.029893450438976288, -0.03873054310679436, 0.006759671960026026, 0.06394567340612411, 0.011514013633131981, -0.007913146167993546, 0.0436684712767601, -0.0027057609986513853, 0.05253404378890991, 0.029194852337241173, 0.005081846844404936, 0.0055421339347958565, 0.007887657731771469, -0.01778215542435646, -0.07229558378458023, 0.04029499739408493, 0.012648205272853374, -0.028635922819375992, -0.043908972293138504, 0.07969330251216888, 0.028639530763030052, -0.02131672203540802, -0.03696953505277634, 0.02899707481265068, -0.04972095042467117, -0.0006361749838106334, -0.020105477422475815, -0.026011189445853233, -0.032028526067733765, 0.059928666800260544, 0.020923780277371407, 0.006737386342138052, 0.05821346864104271, -0.011515139602124691, -0.03465768322348595, -0.014207573607563972, 0.08818857371807098, 0.09513121843338013, 0.05209587141871452, -0.005243610590696335, 0.05895460397005081, -0.02330077812075615, -0.04118688032031059, 0.02832476980984211, -0.011397778987884521, -0.0129172932356596, -0.011278508231043816, 0.02247801050543785, 0.03772875294089317, -0.020624028518795967, 0.07724229246377945, -0.027296820655465126, -0.004926824942231178, 0.007409506011754274, 0.023418227210640907, 0.023755496367812157, 0.05128896236419678, 0.0031398178543895483, 0.035284847021102905, -0.01856505498290062, -0.036540716886520386, 0.015190179459750652, -0.014458545483648777, -0.01290754321962595, 0.009563067927956581, -0.00018484705651644617, 0.015154324471950531, -0.02015882357954979, 0.032601259648799896, 0.09522824734449387, -0.0421549454331398, -0.014501960016787052, 0.011007801629602909, 0.027507955208420753, 0.0012988498201593757, 0.030795663595199585, -0.0036341582890599966, -0.0032537230290472507, -0.010910254903137684, -0.022902464494109154, -0.02148268185555935, -0.021976329386234283, -0.01908368617296219, 0.05891250818967819, -0.03130556643009186, -0.02633425034582615, -0.002808432327583432, 0.016939949244260788, -0.019523505121469498, -0.06288953870534897, -0.05511600524187088, 0.004709377884864807, -0.06378459185361862, -0.012734051793813705, 0.030368315055966377, -0.020027821883559227, -0.017791543155908585, -0.015930043533444405, -0.009144612587988377, -0.028468599542975426, 0.05295749381184578, -0.061401985585689545, -0.022228583693504333, 0.024519724771380424, 0.013428354635834694, 0.03605395928025246, 0.04090256989002228, 0.045168641954660416, -0.017244089394807816, 0.01671249233186245, -0.019753338769078255, 0.0012967274524271488, 0.02244575321674347, 0.012336302548646927, 0.013487706892192364, -0.08743195980787277, 0.031129226088523865, 0.014033903367817402, -0.011552872136235237, -0.06825774163007736, 0.015637550503015518, 0.006475050467997789, -0.0019413987174630165, 0.04878535866737366, 0.00920312199741602, 0.011254646815359592, -0.032129161059856415, -0.007832629606127739, -0.007369217462837696, 0.013426568359136581, 0.03945514187216759, -0.01306871511042118, 0.07403344660997391, 0.03376149386167526, -0.011084291152656078, -0.045340895652770996, -0.032327793538570404, -0.0026480169035494328, 0.011448200792074203, -0.019553519785404205, -0.030809851363301277, -0.008086476475000381, -0.06460495293140411, -0.0345970019698143, 0.02809496968984604, -0.027436748147010803, -0.03205545246601105, 0.028488025069236755, 0.021433841437101364, -0.02553822100162506, 0.03608345985412598, -0.035283882170915604, 0.019249791279435158, -0.0029002856463193893, 0.0005905994912609458, -0.014275284484028816, 0.026129350066184998, -0.014696597121655941, 0.010816970840096474, 0.018992578610777855, -0.04185130447149277, 0.0016460645711049438, -0.0004415948351379484, 0.04045794904232025, 0.01887594722211361, 0.011362078599631786, 0.029906950891017914 ]
[ -0.07382979243993759, -0.020832614973187447, -0.028709687292575836, -0.02596295066177845, 0.023393385112285614, -0.02547416463494301, -0.007309109903872013, 0.03259207680821419, -0.004744352772831917, -0.04029899463057518, -0.021189885213971138, -0.020837832242250443, -0.01711422950029373, -0.012125756591558456, 0.10254289209842682, 0.023085150867700577, -0.006694232113659382, -0.04159407690167427, 0.026264609768986702, 0.008313664235174656, 0.03815726935863495, -0.01955047994852066, -0.02064613252878189, -0.0026424573734402657, -0.015610452741384506, 0.03334055840969086, 0.04877406731247902, -0.019096387550234795, 0.01985999569296837, -0.19615018367767334, -0.012391909956932068, 0.04413243383169174, 0.043055176734924316, -0.011246765963733196, -0.001156329526565969, 0.041883330792188644, 0.020096687600016594, 0.038514524698257446, -0.016382256522774696, 0.0496477410197258, -0.0007095379405654967, 0.007613076362758875, -0.023141350597143173, -0.017038509249687195, 0.029617611318826675, 0.013818849809467793, 0.008207783102989197, -0.03130892291665077, -0.07051655650138855, 0.009761441498994827, -0.04535030946135521, -0.030986687168478966, -0.026426134631037712, 0.00708774896338582, -0.020868701860308647, 0.03825552761554718, 0.041530437767505646, 0.061030399054288864, 0.007791470270603895, -0.020419355481863022, 0.033963412046432495, -0.0073073250241577625, -0.12645353376865387, 0.12767960131168365, 0.019514737650752068, 0.05785034969449043, -0.028907790780067444, -0.02623913809657097, -0.030428491532802582, 0.10005248337984085, 0.012472018599510193, -0.01721695065498352, -0.01707484945654869, 0.0630299299955368, 0.01635831594467163, -0.017808642238378525, 0.0037990843411535025, 0.005275479983538389, 0.043655991554260254, -0.07284635305404663, -0.02337408810853958, 0.0030619283206760883, -0.008030211552977562, -0.04069959744811058, -0.04682004451751709, 0.03260326012969017, -0.00722070038318634, 0.03228064253926277, 0.007556584198027849, 0.02026510238647461, 0.023810487240552902, -0.02958262898027897, 0.06378565728664398, 0.013702337630093098, -0.06906423717737198, -0.014484694227576256, -0.04135774075984955, 0.01339020300656557, -0.048732027411460876, 0.42014485597610474, -0.03934438154101372, -0.029586249962449074, 0.073307104408741, 0.003856611205264926, 0.005538181401789188, 0.014561252668499947, 0.008385402150452137, -0.05757509917020798, 0.03025028482079506, -0.025778930634260178, 0.02191595360636711, 0.006008594296872616, 0.029555486515164375, -0.005439307074993849, 0.006728112697601318, -0.018178347498178482, 0.03334548696875572, 0.0037462518084794283, 0.017269637435674667, -0.02996203862130642, -0.03174459934234619, 0.023153206333518028, 0.004260744899511337, 0.0049852775409817696, -0.008296722546219826, -0.012499315664172173, 0.03068707138299942, 0.04713349789381027, 0.03686234727501869, 0.019177500158548355, 0.05199212580919266, -0.04070666432380676, -0.052767377346754074, -0.004247489385306835, 0.017720505595207214, 0.012766673229634762, 0.025906942784786224, -0.016454655677080154, -0.005102493800222874, 0.022538211196660995, 0.01460412610322237, -0.026921652257442474, 0.014477702789008617, 0.014215797185897827, -0.05323385074734688, 0.11084306985139847, 0.0031424083281308413, -0.03930221125483513, -0.016496969386935234, 0.004584946669638157, -0.00224848254583776, 0.026958642527461052, -0.0241349246352911, -0.056272801011800766, -0.002017889404669404, 0.03273841366171837, 0.11150560528039932, -0.010879655368626118, -0.047096651047468185, -0.03313864395022392, 0.02354595996439457, -0.014991222880780697, -0.02492440864443779, 0.0588490292429924, 0.058131348341703415, -0.10154234617948532, -0.0336153469979763, 0.0008574221283197403, 0.020302990451455116, -0.08327297866344452, -0.024229034781455994, 0.0189873818308115, -0.018410447984933853, 0.016306810081005096, 0.0525517538189888, -0.02618779055774212, -0.04963656887412071, -0.006100253667682409, 0.0431348942220211, 0.004138865042477846, 0.0338185578584671, 0.014259297400712967, -0.025219133123755455, -0.01775108464062214, -0.03463433310389519, -0.09456535428762436, -0.05833445489406586, -0.007624153513461351, -0.01564829796552658, 0.0037642030511051416, 0.014299631118774414, -0.027174226939678192, -0.07130984216928482, 0.0947447419166565, -0.02433379925787449, -0.019012711942195892, 0.037913452833890915, -0.006097731646150351, -0.019526556134223938, -0.017136085778474808, -0.05951985344290733, 0.0670401006937027, -0.02500619925558567, 0.008662313222885132, -0.06386466324329376, 0.056691672652959824, 0.08248355239629745, -0.05322841927409172, 0.06632483005523682, 0.012580580078065395, -0.028751177713274956, -0.016472378745675087, -0.008508087135851383, 0.029781684279441833, -0.0012408304028213024, -0.017736157402396202, 0.01806519739329815, 0.03129661828279495, 0.019973481073975563, 0.0066163125447928905, -0.015848306939005852, -0.022798966616392136, -0.040144823491573334, -0.3491608798503876, -0.04752805829048157, -0.02376091107726097, -0.023674651980400085, 0.005690241232514381, -0.05890148878097534, 0.007296971045434475, 0.02042786218225956, -0.016697319224476814, 0.0016159953083842993, 0.06808912009000778, -0.019315144047141075, -0.01003908272832632, -0.07399145513772964, -0.008772291243076324, 0.036222297698259354, -0.0168415866792202, -0.04654255881905556, -0.04394664987921715, -0.006365473847836256, -0.0037770860362797976, 0.016700701788067818, 0.0066052814945578575, -0.0852697491645813, -0.015330771915614605, -0.03949190303683281, 0.10463745146989822, -0.003912267275154591, 0.10012486577033997, -0.035617079585790634, 0.04944971203804016, -0.03750107064843178, 0.01825222186744213, -0.1030779629945755, 0.011380827985703945, -0.026179514825344086, -0.011150632053613663, -0.0013856232399120927, 0.020048264414072037, -0.03565159812569618, -0.040255021303892136, -0.0007659378461539745, -0.05332134664058685, -0.02128824219107628, -0.050712328404188156, 0.03012462705373764, -0.03000079095363617, -0.04165961220860481, -0.0067708855494856834, 0.08230574429035187, 0.006152045447379351, 0.03204185143113136, 0.011783617548644543, 0.027316197752952576, -0.049783892929553986, -0.029955346137285233, -0.06985723227262497, 0.016512932255864143, 0.02279561012983322, 0.016895197331905365, 0.04184983670711517, 0.06090923026204109, 0.03509471192955971, -0.07066527009010315, -0.007045660633593798, 0.009646283462643623, -0.05223822221159935, -0.0037963001523166895, 0.057684581726789474, -0.013035687617957592, -0.026431303471326828, 0.12325697392225266, -0.0036818482913076878, -0.049568623304367065, 0.028389951214194298, 0.01818540133535862, 0.001515140407718718, 0.030692851170897484, 0.028717992827296257, -0.014236955903470516, 0.024894868955016136, -0.022387877106666565, 0.06363534182310104, -0.01817043498158455, 0.031628791242837906, 0.038077741861343384, 0.011340747587382793, -0.04114202782511711, 0.03020537458360195, -0.0151293920353055, -0.028049226850271225, 0.035420212894678116, 0.0067601194605231285, -0.052386488765478134, 0.0649261623620987, -0.0081639364361763, -0.23094946146011353, 0.036013636738061905, 0.08736073225736618, 0.06788718700408936, -0.0034081062767654657, 0.05529140308499336, 0.0162368081510067, -0.045820895582437515, 0.019385943189263344, 0.011049928143620491, 0.04137366637587547, 0.010977276600897312, 0.00004202501804684289, -0.002560668857768178, 0.01476813293993473, 0.008647259324789047, 0.06179707869887352, -0.015432344749569893, 0.0003113359853159636, -0.007230652961879969, 0.018858173862099648, -0.0075996085070073605, 0.18742682039737701, -0.00875096581876278, 0.03651406243443489, -0.04184531420469284, -0.0011697742156684399, 0.05404657498002052, 0.023582832887768745, 0.03720570355653763, -0.007750463206321001, -0.009460881352424622, 0.04264167323708534, -0.013505044393241405, 0.020803328603506088, -0.06341910362243652, -0.02585037797689438, -0.02462424710392952, 0.030841056257486343, -0.00006812234641984105, 0.023910963907837868, -0.0034958533942699432, -0.06458114832639694, 0.024623051285743713, 0.07791335880756378, 0.04146589711308479, 0.006980354432016611, -0.02440885826945305, -0.06523525714874268, 0.011988583952188492, -0.05076412484049797, -0.06129665672779083, -0.0358770489692688, 0.013600647449493408, -0.008335997350513935, 0.03897840902209282, 0.0238332636654377, -0.0360158234834671, -0.036168064922094345, 0.010929702781140804, -0.016606496647000313, -0.01912856288254261, 0.08470246195793152, 0.038674287497997284, 0.04606716334819794 ]
[ -0.005936977453529835, 0.0012022721348330379, -0.0022872958797961473, -0.007137778215110302, -0.008834137581288815, -0.01627163216471672, 0.004606802482157946, 0.0004527434357441962, -0.028120487928390503, 0.0005756643950007856, -0.023918142542243004, 0.020548399537801743, 0.011596577242016792, -0.01249130442738533, 0.04891613870859146, -0.005978462286293507, 0.023322179913520813, -0.017937125638127327, 0.007938364520668983, -0.015390998683869839, 0.0033323292154818773, 0.03124868869781494, -0.008474082686007023, -0.01194172166287899, -0.0035281581804156303, 0.032213374972343445, 0.0007292768568731844, -0.007754843216389418, 0.027949664741754532, -0.1429813802242279, -0.041084349155426025, -0.008007819764316082, 0.006938279140740633, 0.03056163899600506, -0.019542841240763664, 0.010856405831873417, -0.010748427361249924, 0.027650868520140648, 0.022922752425074577, -0.01819661073386669, -0.028359590098261833, -0.014202393591403961, 0.0054516978561878204, 0.021716997027397156, -0.005579964257776737, -0.0029922479297965765, -0.023184221237897873, -0.030269546434283257, -0.006518216338008642, -0.03911503031849861, -0.01614391803741455, -0.023954613134264946, -0.021580275148153305, 0.013697615824639797, -0.018959078937768936, -0.005200973711907864, 0.002319598337635398, 0.009173313155770302, -0.013701745308935642, -0.0303055252879858, -0.017555177211761475, -0.016787389293313026, -0.013551200740039349, -0.015434974804520607, -0.02097618766129017, -0.007981428876519203, -0.0030394899658858776, 0.021300047636032104, -0.004629145376384258, -0.0020228491630405188, -0.003991662058979273, 0.019773241132497787, 0.008007967844605446, -0.018966831266880035, 0.03130887821316719, 0.022188903763890266, 0.015364304184913635, -0.010083219036459923, 0.023177923634648323, -0.007117350585758686, -0.02057165838778019, 0.027533316984772682, 0.01886153593659401, 0.0033229307737201452, 0.03076692670583725, 0.03196387737989426, 0.01828751713037491, -0.0011461360845714808, 0.00884410459548235, 0.016781656071543694, -0.036716192960739136, 0.005470555275678635, -0.004043554421514273, -0.011949601583182812, -0.07807713747024536, -0.008564573712646961, -0.024772783741354942, -0.021689146757125854, -0.02295532636344433, 0.8843520879745483, -0.013008086010813713, -0.0008367361151613295, 0.02646167390048504, -0.00557387201115489, 0.0043251425959169865, -0.007062714081257582, -0.004474568646401167, 0.014265073463320732, 0.0400741882622242, -0.024151908233761787, -0.005840425845235586, -0.005689162295311689, 0.015456806868314743, 0.016455477103590965, -0.009240856394171715, 0.004620329476892948, 0.022309496998786926, -0.008061699569225311, 0.007869137451052666, -0.013625146821141243, 0.011504479683935642, 0.00843726471066475, -0.009523652493953705, -0.021874213591217995, -0.01582697592675686, -0.19517511129379272, 0.003204597858712077, -9.26118367083124e-33, 0.019337443634867668, 0.02439016103744507, -0.0007569480803795159, 0.023503633216023445, 0.024185199290513992, -0.01992933638393879, 0.035884201526641846, 0.016553983092308044, 0.014008316211402416, -0.02108118124306202, 0.007596450857818127, 0.002277861349284649, 0.0073812841437757015, -0.009360118769109249, 0.02447506971657276, 0.007633238565176725, -0.0003590252890717238, 0.021691057831048965, -0.003981218673288822, 0.006294081918895245, 0.035708822309970856, 0.036435533314943314, 0.002088978188112378, -0.016444509848952293, 0.013961123302578926, 0.026527227833867073, 0.011550664901733398, 0.006001624744385481, -0.014937232248485088, -0.04075457900762558, -0.01035116333514452, 0.005332635715603828, -0.00567984115332365, -0.01019502803683281, 0.032571714371442795, -0.047708868980407715, -0.009989769198000431, 0.007812276482582092, -0.002390423556789756, -0.04447599872946739, -0.053741708397865295, 0.0026342058554291725, -0.03812577202916145, 0.01022379007190466, -0.006811175961047411, -0.0123412124812603, 0.016430554911494255, 0.01703064888715744, 0.004020185675472021, -0.0026013506576418877, 0.002275786828249693, 0.012429310940206051, -0.014295520260930061, 0.04244113713502884, 0.0011393759632483125, -0.015415085479617119, -0.002983334707096219, 0.020963620394468307, 0.008368871174752712, 0.006765106692910194, 0.0194961316883564, -0.002156556583940983, -0.017201941460371017, 0.03576095029711723, -0.0006648213020525873, -0.026564419269561768, 0.01042286865413189, 0.013154241256415844, 0.01922512613236904, -0.020740246400237083, -0.025043949484825134, -0.021748917177319527, -0.01961936242878437, 0.012386619113385677, 0.008649726398289204, 0.0006699457298964262, 0.0008251897525042295, 0.013072948902845383, -0.009158488363027573, 0.03881035000085831, 0.024844447150826454, -0.01723712496459484, 0.03347266465425491, -0.019326580688357353, -0.0047508166171610355, -0.004620599094778299, 0.050172194838523865, -0.017419373616576195, 0.010463623329997063, 0.019573301076889038, 0.0384080708026886, 0.013086813502013683, 0.014162000268697739, -0.0040012844838202, -0.016454631462693214, 8.645091653201925e-33, -0.005505053326487541, -0.006319890264421701, -0.033063553273677826, -0.0058616939932107925, -0.02592051774263382, -0.007009206805378199, 0.014539322815835476, 0.016698351129889488, -0.05733437463641167, 0.02494736574590206, -0.01528615690767765, 0.013841387815773487, -0.010596048086881638, 0.02391132526099682, 0.040360063314437866, -0.028411751613020897, 0.0050190952606499195, -0.018131453543901443, 0.039233334362506866, 0.02362506464123726, 0.02867201715707779, 0.010940675623714924, 0.009226184338331223, -0.0048507098108530045, -0.02961764857172966, 0.04322068765759468, -0.021308479830622673, 0.02074519358575344, -0.014388302341103554, 0.002576654776930809, 0.001329699414782226, -0.0017163418233394623, -0.0008211862295866013, -0.0334063321352005, -0.03760315850377083, 0.00625977385789156, 0.011288910172879696, -0.021924180909991264, 0.010544773191213608, -0.0013944071251899004, 0.0020417021587491035, -0.029463553801178932, -0.023798683658242226, -0.004865441471338272, 0.004941096529364586, -0.025378376245498657, -0.009329162538051605, -0.022595448419451714, 0.003600360592827201, 0.01711871288716793, 0.02930295839905739, 0.013844949193298817, 0.02659251168370247, -0.02105344459414482, 0.017336681485176086, -0.01793452352285385, -0.006371887866407633, -0.014683106914162636, -0.009473280049860477, 0.03535986691713333, 0.0005129321943968534, -0.0062634642235934734, -0.03588968887925148, 0.004681452177464962, -0.03144441917538643, 0.0039749350398778915, -0.036630138754844666, -0.015276248566806316, -0.008231676183640957, -0.022361045703291893, -0.02021549455821514, 0.014654370956122875, -0.017966793850064278, 0.023780742660164833, -0.005390518810600042, -0.012892134487628937, 0.0011898850789293647, 0.005999707151204348, -0.012238544411957264, 0.02165430784225464, 0.009561531245708466, 0.01686915196478367, 0.0175948366522789, -0.0077321939170360565, -0.01583859696984291, 0.019776932895183563, -0.0007053029839880764, 0.03210267424583435, -0.01886494643986225, -0.024454308673739433, -0.003768694354221225, 0.0010729334317147732, -0.009957297705113888, 0.025618981570005417, -0.0038641972932964563, -1.440723274015454e-8, -0.03252273052930832, 0.028042541816830635, -0.0201992467045784, -0.0004471695574466139, 0.010426546446979046, -0.009263449348509312, -0.022729091346263885, -0.012743673287332058, -0.008634490892291069, 0.005960050038993359, 0.04623481631278992, 0.001917269197292626, 0.007952529937028885, 0.009770656935870647, 0.03732667490839958, -0.0193422120064497, -0.02730466052889824, -0.006328511517494917, 0.03241261467337608, 0.0007615715148858726, 0.0381571426987648, 0.036931782960891724, -0.007747130934149027, -0.0026955523062497377, 0.019580280408263206, -0.01332618948072195, 0.022452140226960182, -0.07047732174396515, -0.011802628636360168, 0.02560415118932724, -0.002104040002450347, -0.019646884873509407, -0.04169686138629913, 0.010563377290964127, -0.009139488451182842, -0.04066963121294975, -0.010637319646775723, -0.015322108753025532, 0.010269872844219208, 0.00351473456248641, 0.006674754898995161, 0.003973735962063074, 0.0006135139847174287, -0.013550837524235249, 0.011184903793036938, 0.022047923877835274, 0.0023414718452841043, -0.013262336142361164, 0.029224999248981476, -0.012877685017883778, -0.018805012106895447, 0.03560821712017059, -0.006811877246946096, -0.002738470444455743, 0.02474963292479515, -0.027184227481484413, -0.008660594932734966, -0.01623068004846573, -0.043132297694683075, -0.007061577867716551, 0.009799592196941376, 0.03522647172212601, -0.019731668755412102, -0.023250414058566093 ]
coding-naming
https://markhneedham.com/blog/2009/12/16/coding-naming
false
2009-12-10 22:14:26
TDD: Big leaps and small steps
[ "tdd" ]
[ "Testing" ]
About a month ago or so http://blog.extracheese.org/2009/11/how_i_started_tdd.html[Gary Bernhardt wrote a post showing how to get started with TDD] and while the post is quite interesting, several comments on the post pointed out that he had jumped from iteratively solving the problem straight to the solution with his final step. Something which I've noticed while solving algorithmic problems in couple of different functional programming languages is that the test driven approach doesn't work so well for these types of problems. Dan North points out something similar in an http://vimeo.com/7722342[OreDev presentation where he talks about writing a BDD framework in Clojure]. To paraphrase: ____ If you can't explain to me where this approach breaks down then you don't know it well enough. You're trying to sell a silver bullet. The classic failure mode for iterative development is the big algorithm case. That's about dancing with the code and massaging it until all the test cases pass. ____ http://blog.objectmentor.com/articles/2009/10/08/tdd-triage[Uncle Bob also points this out] while referring to the way we develop code around the UI: ____ There is a lot of coding that goes into a Velocity template. But to use TDD for those templates would be absurd. The problem is that I'm not at all sure what I want a page to look like. I need the freedom to fiddle around with the formatting and the structure until everything is just the way I want it. Trying to do that fiddling with TDD is futile. Once I have the page the way I like it, then I'll write some tests that make sure the templates work as written. ____ I think the common theme is that TDD works pretty well when we have a rough idea of where we intend to go with the code but we just don't know the exact path yet. We can take *small steps* and incrementally work out exactly how we're going to get there. When we don't really know how to solve the problem - which more often than not seems to be the case with algorithmic type problems - then at some stage we will take a *big leap* from being nowhere near a working solution to the working solution. In those cases I think it still makes sense to have some automated tests both to act as regression to ensure we don't break the code and to tell us when we've written the algorithm correctly. An example of a problem where TDD doesn't work that well is solving the http://www.markhneedham.com/blog/2009/07/04/coding-dojo-19-groovy-traveling-salesman-variation/[traveling salesman problem]. In this case the solution to the problem is the implementation of an algorithm and it's pretty difficult to get there unless you actually know the algorithm. During that dojo http://blog.rufiao.com/[Julio] actually spent some time working on the problem a different way - by implementing the algorithm directly - and he managed to get much further than we did. It seems to me that perhaps this explains why although TDD is a useful design technique it's not the only one that we should look to use. When we have worked out where we are driving a design then TDD can be quite a useful tool for working incrementally towards that but it's no substitute for taking the time to think about what exactly we're trying to solve.
null
null
[ 0.01620541885495186, 0.010900989174842834, -0.019687142223119736, 0.04855191335082054, 0.0730644017457962, 0.012397520244121552, 0.03477444499731064, 0.03566098213195801, 0.01649456098675728, -0.024724984541535378, 0.007643281482160091, -0.003431665012612939, -0.04936864599585533, 0.005924444179981947, -0.032742373645305634, 0.07149317115545273, 0.07295306026935577, -0.021477069705724716, 0.030117925256490707, 0.01585283875465393, 0.03388344869017601, 0.05746333301067352, 0.011633762158453465, 0.031264644116163254, 0.03233485668897629, 0.014611786231398582, 0.012529545463621616, -0.0010539363138377666, -0.07480290532112122, -0.012404212728142738, 0.0289619117975235, -0.004203373566269875, 0.01437802892178297, -0.026019390672445297, 0.010598539374768734, 0.012026305310428143, -0.01856258139014244, 0.01798711158335209, 0.008477562107145786, 0.016186673194169998, -0.0643012598156929, 0.04356900230050087, -0.019347423687577248, 0.014904721640050411, -0.03197789937257767, 0.015737954527139664, -0.026055149734020233, -0.0018930122023448348, 0.010569554753601551, -0.0028148938436061144, -0.058847904205322266, 0.05025823414325714, 0.0022242527920752764, 0.0071288240142166615, -0.012095916084945202, 0.039096370339393616, 0.044808279722929, -0.08590074628591537, 0.010104685090482235, -0.025860780850052834, -0.012694303877651691, -0.017609233036637306, 0.005923195276409388, 0.045740868896245956, 0.011157981120049953, -0.005228661000728607, -0.023393312469124794, 0.04340400919318199, -0.04557637870311737, -0.02466399408876896, -0.0024204521905630827, -0.003526207758113742, -0.006370942108333111, -0.01563294418156147, 0.015048108994960785, -0.034742873162031174, -0.008543278090655804, 0.0577845424413681, 0.00045959980343468487, 0.03442271426320076, -0.027267148718237877, 0.028185784816741943, 0.01113910786807537, 0.027510864660143852, -0.012902969494462013, -0.0172208733856678, -0.0030611639376729727, -0.013771685771644115, -0.04559961333870888, 0.06187599152326584, 0.0258554108440876, -0.05354142561554909, 0.010549410246312618, 0.040978580713272095, 0.001436679158359766, 0.011940959841012955, 0.022942716255784035, 0.020554393529891968, -0.0013705369783565402, 0.002333966549485922, -0.013927390798926353, -0.04352157190442085, 0.004621969535946846, 0.01766139641404152, -0.07665698230266571, -0.011934693902730942, -0.03420284017920494, -0.02326461300253868, 0.0045143235474824905, 0.004942933563143015, -0.048005782067775726, 0.022593067958950996, -0.015661660581827164, -0.006331669632345438, -0.07964035123586655, 0.07714038342237473, -0.015476473607122898, -0.04010278359055519, -0.006891248282045126, 0.01281304843723774, 0.034450288861989975, 0.021569835022091866, 0.0010332801612094045, 0.07807686924934387, 0.007799793500453234, 0.04139384254813194, -0.009649389423429966, 0.06266352534294128, -0.013751729391515255, -0.04163474962115288, -0.022683899849653244, 0.04341456666588783, -0.02707267738878727, -0.010203835554420948, -0.001349247875623405, -0.04023590311408043, -0.0029449411667883396, -0.011073964647948742, 0.02844429947435856, 0.056398697197437286, -0.017883313819766045, -0.03680850565433502, 0.03879491984844208, 0.0031820833683013916, 0.02800155244767666, 0.003628369653597474, 0.0049224006943404675, 0.008967168629169464, -0.04983910545706749, 0.0024494074750691652, 0.011845238506793976, 0.03783251345157623, 0.020023783668875694, -0.025327734649181366, 0.02519751526415348, 0.09104989469051361, 0.02382119931280613, 0.021846450865268707, -0.00006961190229048952, 0.04394027963280678, 0.043612271547317505, 0.03721367195248604, 0.019281135872006416, 0.020522626116871834, 0.016891879960894585, -0.001611857209354639, 0.0008505739970132709, 0.04625026881694794, 0.008762536570429802, -0.012361248023808002, -0.0512189082801342, -0.040999315679073334, 0.05813266336917877, -0.04152246192097664, -0.009531745687127113, 0.030765842646360397, 0.0832948237657547, -0.003481267485767603, 0.03494254872202873, 0.003169872798025608, -0.07501368224620819, 0.01584389992058277, 0.028261633589863777, 0.018585361540317535, 0.003632601583376527, -0.03324035555124283, 0.07621419429779053, 0.014450076036155224, -0.006472861859947443, 0.033671095967292786, -0.064191535115242, -0.08618438988924026, -0.015186731703579426, -0.04309799522161484, 0.06365311145782471, -0.030347226187586784, 0.008773530833423138, 0.04818350821733475, 0.020024020224809647, 0.0667845606803894, 0.045573316514492035, 0.00010282624134561047, 0.019271770492196083, -0.03879570588469505, -0.022847970947623253, 0.05578786879777908, 0.06331104785203934, -0.020210616290569305, -0.07479889690876007, 0.005597392097115517, 0.013279731385409832, -0.023359019309282303, 0.04349100589752197, -0.022445017471909523, 0.03523118793964386, 0.025272324681282043, 0.06352052092552185, -0.02728261798620224, 0.057819969952106476, -0.06068383902311325, -0.0062896753661334515, -0.002268740441650152, -0.02000001072883606, 0.011777260340750217, 0.0006838013068772852, 0.11218077689409256, 0.04833073541522026, -0.048431556671857834, -0.039264190942049026, 0.008863051421940327, 0.007676170207560062, -0.006976079661399126, -0.022479046136140823, -0.014129670336842537, 0.0022325352765619755, 0.0009641126962378621, -0.05437563732266426, -0.02081804908812046, 0.02136843651533127, -0.04086809977889061, 0.015353753231465816, 0.06502940505743027, -0.01582971028983593, 0.03506850823760033, -0.013207503594458103, -0.020266009494662285, -0.01588192954659462, -0.018466802313923836, -0.06068874150514603, 0.010111836716532707, 0.005163440480828285, -0.020907636731863022, 0.03803294524550438, -0.016342801973223686, -0.04819706454873085, -0.02411094680428505, -0.03401460498571396, 0.0013503418304026127, 0.04694710671901703, 0.08570031076669693, -0.012215978465974331, 0.04859437793493271, -0.011324508115649223, 0.010088813491165638, 0.007290042471140623, -0.07209597527980804, -0.039881858974695206, -0.010777425020933151, 0.004256449174135923, 0.06313750892877579, -0.015368734486401081, 0.02955862693488598, 0.01658720150589943, -0.0015004019951447845, -0.02481509931385517, -0.02233036234974861, 0.03309234604239464, 0.0298155527561903, -0.033432118594646454, -0.015221726149320602, -0.05183885619044304, 0.04880443215370178, -0.036400485783815384, -0.013298907317221165, 0.0014397846534848213, -0.04154503718018532, 0.0514487661421299, -0.08596660941839218, -0.04875543341040611, 0.024867817759513855, 0.02129165269434452, 0.04326989874243736, -0.027642134577035904, 0.01274421252310276, 0.08177828043699265, 0.0030933599919080734, 0.019242368638515472, -0.02676924504339695, 0.0008558128611184657, 0.02443946897983551, 0.015814093872904778, -0.006644487846642733, 0.03571691736578941, 0.01418602280318737, 0.005753248929977417, -0.026098987087607384, 0.03037549927830696, -0.010420471429824829, -0.2919010519981384, 0.031800299882888794, 0.00581992557272315, -0.049995895475149155, 0.008758657611906528, -0.00855986773967743, -0.010819640010595322, -0.034682489931583405, -0.008302430622279644, 0.01067416276782751, -0.047041699290275574, -0.02607591822743416, -0.033944789320230484, 0.05517284944653511, -0.013223833404481411, -0.006385489832609892, 0.03350024297833443, -0.03566334396600723, 0.0069389040581882, 0.04435291513800621, -0.0019234506180509925, -0.08630120009183884, 0.011034204624593258, 0.03569473698735237, 0.037551891058683395, 0.03979691118001938, -0.10439369827508926, 0.056201815605163574, -0.04287285730242729, -0.0014408596325665712, 0.008662465959787369, 0.004111229907721281, 0.0028869076631963253, -0.03200395405292511, -0.02311345934867859, -0.0010859087342396379, 0.03736700117588043, -0.011053306981921196, -0.007451455574482679, 0.018835855647921562, 0.002110555302351713, -0.035888027399778366, -0.002163562923669815, 0.0012911034282296896, 0.07120335847139359, 0.004355944227427244, -0.06734202057123184, -0.015182620845735073, -0.031049558892846107, 0.06609947234392166, -0.029878899455070496, -0.022698165848851204, 0.0037082841154187918, 0.029580095782876015, -0.004349774215370417, -0.03715715557336807, 0.012370811775326729, -0.026829112321138382, -0.03394366428256035, -0.018989091739058495, -0.0326947458088398, -0.03463829681277275, -0.005826378241181374, -0.05360575392842293, 0.003552614012733102, -0.06530290842056274, -0.054871536791324615, -0.0062455907464027405, 0.06338733434677124, 0.008889246731996536, -0.012372576631605625, 0.027129054069519043, -0.006439016200602055, -0.11069036275148392, -0.020250175148248672, -0.00814962200820446, -0.01557249203324318, -0.034575752913951874, -0.0009829455520957708, 0.05318865925073624, -0.04369208589196205, -0.05487719550728798, 0.04075426980853081, 0.021840203553438187, 0.03165287524461746, -0.0027883723378181458, 0.02428223378956318, 0.015685800462961197, -0.004813958425074816, 0.009329449385404587, 0.06690757721662521, -0.0065170773304998875, -0.03078209049999714, -0.028062859550118446, 0.045885827392339706, 0.028365280479192734, 0.03877812996506691, -0.004642358049750328, 0.00508461007848382, 0.023255396634340286, -0.009877503849565983, -0.060741256922483444, 0.053798530250787735, -0.01707610674202442, -0.015457481145858765, -0.026353204622864723, -0.055725764483213425, 0.009021746926009655, 0.02042369544506073, 0.04166862368583679, -0.03428184986114502, -0.041654519736766815, -0.0014000482624396682, -0.047633878886699677, -0.043281812220811844, 0.0029278683941811323, 0.009685027413070202, 0.031148675829172134, -0.01067301444709301, -0.0028578832279890776, -0.08004344999790192, 0.010291051119565964, -0.019460435956716537, 0.00046475202543661, -0.04769989103078842, -0.02916485071182251, -0.0026922719553112984, -0.01638696901500225, 0.03383500128984451, 0.027696317061781883, -0.013516332022845745, 0.05016908794641495, -0.004962201230227947, -0.021912071853876114, 0.014569848775863647, -0.045291099697351456, -0.04267182573676109, -0.00456768786534667, -0.0017965539591386914, -0.01933346316218376, 0.03254496678709984, 0.007428102660924196, 0.01975252665579319, 0.0009820704581215978, 0.05291017144918442, 0.0054408046416938305, 0.03376157209277153, -0.00657059159129858, 0.0069810012355446815, 0.0008934761281125247, 0.02013777755200863, -0.07857238501310349, 0.02933492138981819, -0.056709881871938705, -0.03826167806982994, -0.039991963654756546, 0.032033346593379974, -0.013171318918466568, -0.034842029213905334, -0.025110265240073204, 0.013666973449289799, -0.040274281054735184, -0.02022295631468296, -0.03236370533704758, 0.03160640597343445, 0.0630519911646843, -0.029259009286761284, 0.04438845440745354, -0.031393975019454956, -0.022465629503130913, -0.0027658625040203333, 0.013087534345686436, -0.041262559592723846, 0.020471440628170967, 0.00881942268460989, -0.012996180914342403, -0.01117622759193182, -0.007857287302613258, 0.03771305829286575, 0.021234693005681038, -0.006946843583136797, -0.03747072070837021, 0.02128615230321884, 0.04677803814411163, 0.05449617654085159, -0.025086883455514908, 0.010414491407573223, 0.009743781760334969, -0.025594301521778107, -0.009977768175303936, -0.031088603660464287, -0.020708810538053513, 0.02426399290561676, 0.03063950687646866, -0.0368531309068203, -0.0800401121377945, 0.04240467771887779, 0.022727390751242638, 0.0021441499702632427, 0.008935605175793171, 0.0025713248178362846, -0.02097567915916443, -0.01612009108066559, 0.03687429800629616, 0.0603211484849453, -0.049314144998788834, 0.011704081669449806, -0.005479276645928621, 0.023769518360495567, 0.021164394915103912, 0.016187595203518867, -0.06910239905118942, -0.037225231528282166, -0.021346790716052055, -0.028605632483959198, -0.04507507383823395, -0.01574174501001835, -0.012808182276785374, 0.009606093168258667, 0.005282135214656591, -0.019515343010425568, -0.005523717030882835, -0.022916628047823906, -0.004235784988850355, -0.024218298494815826, 0.012353128753602505, -0.04305137321352959, -0.005652011372148991, 0.02277185767889023, -0.03457769751548767, 0.01176345907151699, -0.0284316036850214, 0.023665383458137512, 0.029101252555847168, -0.02365100011229515, -0.04177366569638252, -0.024951867759227753, 0.0267875287681818, 0.002759267808869481, 0.025683362036943436, -0.004292740486562252, -0.03568337857723236, -0.0347767136991024, 0.0043020350858569145, -0.035120557993650436, 0.006324613466858864, -0.013400630094110966, -0.024430520832538605, 0.03891376405954361, 0.06711974740028381, 0.018727237358689308, 0.04543495550751686, -0.021634411066770554, -0.018045293167233467, 0.0371355377137661, -0.0826486274600029, -0.0195377916097641, -0.05731061473488808, -0.06260678917169571, 0.005616769194602966, -0.017733454704284668, 0.018159667029976845, -0.02080160565674305, 0.022963259369134903, 0.024989549070596695, 0.03469556197524071, 0.019876753911376, -0.008696431294083595, 0.04898266866803169, -0.05408318340778351, 0.00404095184057951, -0.1024964302778244, -0.0048082307912409306, 0.042105887085199356, 0.005462326109409332, -0.012519977055490017, -0.005410284269601107, -0.020031452178955078, 0.03748226538300514, -0.05158684402704239, -0.00868108682334423, 0.04898917302489281, -0.009199184365570545, -0.016283629462122917, 0.008074467070400715, -0.051971372216939926, 0.023335712030529976, 0.03365467116236687, -0.045455027371644974, -0.029240919277071953, -0.005066426005214453, 0.028860032558441162, 0.01892103999853134, 0.014756930992007256, -0.02043316513299942, 0.0056121437810361385, 0.06932346522808075, 0.0129648232832551, 0.00508391298353672, 0.0438055694103241, -0.0014767816755920649, 0.04165108501911163, 0.02777387760579586, 0.0011463690316304564, -0.022599561139941216, 0.016184872016310692, -0.016985749825835228, -0.057382408529520035, 0.047408927232027054, 0.0320308655500412, -0.037343498319387436, -0.025541765615344048, 0.06951529532670975, 0.04225395247340202, -0.02505129761993885, -0.026082517579197884, -0.0045501175336539745, -0.07303032279014587, -0.0036138512659817934, -0.016022030264139175, 0.0023402050137519836, -0.03922541067004204, 0.04748225957155228, -0.007259096950292587, 0.001094726612791419, 0.06508714705705643, 0.019944176077842712, -0.013978741131722927, -0.029811955988407135, 0.08052480965852737, 0.08455813676118851, 0.04735260829329491, -0.0048376121558249, 0.05420134961605072, -0.0529969297349453, -0.033282361924648285, 0.009456977248191833, 0.002794768428429961, -0.008991152048110962, -0.04584532231092453, 0.026601269841194153, 0.058425940573215485, -0.009347126819193363, 0.06746983528137207, -0.023451514542102814, -0.007255968637764454, -0.0023597634863108397, 0.022453714162111282, 0.015512232668697834, 0.07831224799156189, -0.011071690358221531, 0.00039869698230177164, -0.008736181072890759, -0.03631327673792839, 0.014345993287861347, -0.06001272797584534, -0.013660915195941925, 0.02732245810329914, 0.016262484714388847, 0.022865090519189835, 0.01766609027981758, 0.029975444078445435, 0.08238811045885086, -0.04090580344200134, 0.015100976452231407, -0.010618521831929684, 0.03258403390645981, -0.002574496204033494, -0.004252641461789608, -0.023179437965154648, -0.030183276161551476, -0.00337641010992229, -0.0003573121502995491, -0.008363847620785236, -0.032226141542196274, -0.038321997970342636, 0.053583648055791855, -0.03118915669620037, -0.03018932230770588, 0.03501375764608383, 0.006784044671803713, -0.04524001479148865, -0.06706312298774719, -0.04068659245967865, -0.03864295035600662, -0.06622553616762161, -0.005571163725107908, 0.022193094715476036, -0.0043153539299964905, -0.023417778313159943, -0.022359933704137802, -0.009782752953469753, -0.01837197318673134, 0.05859605595469475, -0.0380534790456295, -0.050131022930145264, 0.02202073112130165, 0.014524189755320549, 0.03241407871246338, 0.01014468539506197, 0.037733446806669235, 0.0037295117508620024, 0.001369969453662634, -0.02980683371424675, 0.005098124034702778, 0.025606965646147728, 0.009793396107852459, 0.026987241581082344, -0.09190724045038223, 0.01222415454685688, 0.04085492342710495, 0.005945743527263403, -0.06031632050871849, 0.049885425716638565, -0.000988688669167459, 0.00800338201224804, 0.043062370270490646, -0.02510114200413227, 0.017340335994958878, -0.05276281759142876, 0.00077432906255126, 0.0034700764808803797, 0.017339352518320084, 0.051289401948451996, -0.02344205230474472, 0.08008886128664017, -0.014425895176827908, -0.02689855359494686, -0.04345893859863281, -0.0025379008147865534, -0.014979584142565727, -0.005658561363816261, -0.006810769904404879, -0.04505453631281853, -0.03230687975883484, -0.060998935252428055, -0.011741853319108486, 0.008270668797194958, -0.050685808062553406, -0.03420029580593109, 0.023109523579478264, 0.02957037277519703, -0.05161851644515991, 0.0530083104968071, -0.05479731410741806, 0.046964820474386215, -0.019014297053217888, -0.004850292578339577, 0.02053924649953842, -0.0060274419374763966, -0.002578197279945016, 0.01931106112897396, 0.037493862211704254, -0.044775787740945816, -0.007424321491271257, -0.004094275645911694, 0.028827175498008728, 0.01893961802124977, 0.00616587046533823, -0.008100112900137901 ]
[ -0.11502953618764877, -0.018388310447335243, -0.024504460394382477, -0.042646411806344986, 0.02192491665482521, -0.017550429329276085, -0.03442970663309097, 0.029055550694465637, -0.019243791699409485, -0.040042225271463394, 0.021299878135323524, -0.009983266703784466, -0.0033039364498108625, 0.007587921340018511, 0.08324243873357773, 0.038109928369522095, -0.012074537575244904, -0.045065756887197495, 0.0436382070183754, 0.007835718803107738, 0.027051471173763275, -0.013211843557655811, -0.05199155583977699, -0.04650270193815231, 0.022334720939397812, 0.05604514479637146, 0.05020682141184807, -0.052348047494888306, 0.01826542802155018, -0.2295009046792984, 0.010707585141062737, 0.007777190767228603, 0.04574035108089447, -0.050373200327157974, -0.0011555289383977652, 0.03711652383208275, 0.02360396645963192, 0.019345609471201897, -0.013718078844249249, 0.016290729865431786, 0.013901443220674992, 0.02903154492378235, -0.05938871577382088, -0.0385078601539135, 0.043974485248327255, 0.021084055304527283, -0.009954776614904404, -0.026951419189572334, -0.011425856500864029, 0.007355960551649332, -0.07460624724626541, -0.015440305694937706, -0.011682230047881603, -0.04346993938088417, -0.01228148303925991, 0.02769051119685173, 0.0278172604739666, 0.0979667529463768, -0.011342963203787804, 0.011962124146521091, 0.020197469741106033, -0.015499086119234562, -0.11937059462070465, 0.09654441475868225, 0.0598972886800766, 0.060173746198415756, -0.014960920438170433, -0.023990534245967865, -0.005733371712267399, 0.10401277244091034, 0.023294221609830856, -0.017085585743188858, -0.0061212689615786076, 0.05149398371577263, 0.020238496363162994, -0.024366170167922974, 0.010410611517727375, 0.013079947791993618, 0.05024836212396622, -0.05661492794752121, -0.025736447423696518, -0.010736299678683281, -0.011143229901790619, -0.0030612803529947996, -0.04413825646042824, 0.000905516732018441, -0.022260155528783798, 0.045086149126291275, 0.01916375756263733, 0.0297335684299469, 0.05609568580985069, -0.005415377207100391, 0.016539424657821655, -0.0026765181683003902, -0.08555584400892258, -0.022605614736676216, 0.015821458771824837, 0.005107848905026913, -0.027607440948486328, 0.43412330746650696, -0.02496798150241375, -0.028035955503582954, 0.07386774569749832, 0.03743985295295715, -0.0436759889125824, 0.002296902472153306, 0.006094019860029221, -0.05717860534787178, 0.004231402184814215, -0.03194651007652283, -0.0007252845098264515, -0.014170144684612751, 0.053471364080905914, -0.03649504482746124, -0.009310825727880001, -0.01798020862042904, 0.01288993377238512, 0.0194095391780138, 0.006528601516038179, 0.0021385932341217995, -0.0029815894085913897, 0.014955197460949421, 0.016593601554632187, -0.01282563153654337, -0.01288679614663124, -0.028641091659665108, -0.016074879094958305, 0.06051329895853996, 0.027529330924153328, 0.03008951246738434, 0.05531402677297592, -0.02835726924240589, -0.07713141292333603, -0.0009345083963125944, 0.003521714825183153, -0.0003776238299906254, 0.008817632682621479, -0.04714568704366684, -0.0008521091658622026, 0.01771003007888794, -0.002995694288983941, 0.005422278307378292, 0.04448184370994568, -0.012624537572264671, -0.03748512268066406, 0.08531954139471054, 0.009423784911632538, -0.02476264350116253, 0.003652227111160755, -0.04156457260251045, 0.021832620725035667, 0.017275623977184296, -0.02249634824693203, -0.07762312889099121, 0.007874339818954468, 0.023447977378964424, 0.07016658037900925, -0.0015174936270341277, -0.09265584498643875, 0.014768272638320923, -0.03366537019610405, -0.029276829212903976, -0.06872577965259552, 0.0671706572175026, 0.023649876937270164, -0.08108579367399216, -0.03051152639091015, 0.010391595773398876, 0.06223659589886665, -0.06872401386499405, -0.000593301432672888, 0.023345641791820526, -0.016495706513524055, -0.02101973257958889, 0.030231880024075508, -0.032362304627895355, -0.034716974943876266, -0.0065363491885364056, 0.048798441886901855, 0.021017057821154594, 0.029685668647289276, 0.003676251508295536, -0.025600962340831757, 0.015092969872057438, -0.02029297687113285, -0.05782238021492958, -0.017322346568107605, -0.014652406796813011, -0.03652646392583847, -0.01869155839085579, -0.0019828579388558865, -0.017577802762389183, -0.09391417354345322, 0.05078066512942314, -0.04516708105802536, -0.04858905449509621, 0.021712815389037132, -0.0043238201178610325, 0.008608170785009861, 0.0019344730535522103, -0.01345068123191595, 0.010197611525654793, -0.02619609236717224, 0.03979857638478279, -0.06272387504577637, 0.04118072986602783, 0.052700646221637726, -0.08373416215181351, 0.07823581248521805, 0.06359000504016876, -0.030427265912294388, -0.033900968730449677, 0.016833746805787086, 0.015575430355966091, -0.004649795591831207, -0.0007044501835480332, 0.008280533365905285, 0.0035093119367957115, 0.0001413678255630657, 0.05429798737168312, -0.00473620742559433, 0.0033546239137649536, -0.02062397636473179, -0.31464657187461853, -0.07841517776250839, -0.03464367613196373, -0.00948837399482727, 0.017156315967440605, -0.08603265881538391, -0.005068161990493536, -0.01245197281241417, -0.04076538607478142, 0.005995121784508228, 0.08022299408912659, -0.014697551727294922, -0.022041205316781998, -0.12815827131271362, -0.003272351808845997, -0.0009208263945765793, -0.018700722604990005, -0.02278517745435238, -0.043260686099529266, 0.007505270652472973, -0.011949801817536354, -0.02021249756217003, -0.020451586693525314, -0.08622738718986511, -0.00693651894107461, -0.029566198587417603, 0.09471626579761505, -0.010557769797742367, 0.12215808033943176, -0.019156279042363167, 0.028306869789958, 0.0025030141696333885, 0.016602586954832077, -0.07352294772863388, 0.01742267981171608, -0.005819275509566069, 0.02080235257744789, -0.028858723118901253, 0.0439145565032959, -0.059786275029182434, -0.05293441563844681, 0.014775063842535019, -0.04686819016933441, -0.04298746958374977, -0.05721551179885864, 0.015346227213740349, -0.03833917900919914, -0.02347041480243206, -0.021686196327209473, 0.09118042886257172, 0.03655216842889786, 0.0025578776840120554, 0.02097436413168907, -0.0013519282219931483, 0.015040419064462185, -0.03058411180973053, -0.06765852868556976, 0.0038584074936807156, 0.019084393978118896, -0.011362753808498383, 0.020799068734049797, 0.050908710807561874, 0.018982021138072014, -0.03999659791588783, 0.00765927555039525, 0.0023926820140331984, 0.0016032945131883025, -0.020026477053761482, 0.04338475316762924, -0.018567273393273354, 0.0018539982847869396, 0.10428757220506668, -0.007504228502511978, 0.018802205100655556, 0.03192674368619919, 0.037834182381629944, -0.009769968688488007, 0.05333973467350006, 0.042782969772815704, -0.009377975948154926, 0.023832978680729866, -0.023140544071793556, 0.06138129159808159, -0.03324690833687782, -0.017057716846466064, 0.006876444909721613, -0.029944349080324173, -0.02504570037126541, 0.023728765547275543, 0.016896924003958702, -0.02329854480922222, 0.015892954543232918, -0.013197102583944798, -0.02702614851295948, 0.06713250279426575, 0.028562244027853012, -0.23907427489757538, 0.016371391713619232, 0.0617104172706604, 0.05925201624631882, -0.020420700311660767, 0.03290434554219246, 0.06363110989332199, -0.05916838347911835, 0.024361586198210716, -0.007271596696227789, 0.005216771736741066, 0.045874208211898804, 0.012763725593686104, -0.005258157383650541, 0.050457995384931564, -0.02664628066122532, 0.03510977700352669, -0.020374584943056107, 0.025103770196437836, -0.028118010610342026, 0.027081947773694992, 0.029358377680182457, 0.17942148447036743, -0.023187583312392235, 0.005819113925099373, 0.010491826571524143, 0.035194121301174164, 0.0062715704552829266, 0.07091935724020004, 0.008040116168558598, -0.022437801584601402, 0.01517701055854559, 0.032615575939416885, 0.015835296362638474, 0.027035456150770187, -0.056367404758930206, -0.023429187014698982, 0.037119630724191666, 0.021939117461442947, 0.00465672230347991, 0.031786903738975525, 0.004087301902472973, 0.012081597931683064, 0.03181145340204239, 0.052310749888420105, 0.03434288129210472, 0.01021496020257473, -0.01303534209728241, -0.05530707165598869, -0.0026720031164586544, -0.04190016910433769, -0.03705839812755585, 0.005975742358714342, -0.023628393188118935, 0.007525081746280193, 0.062099162489175797, 0.02209235541522503, -0.011035814881324768, -0.01778138242661953, 0.011612175032496452, -0.011801856569945812, -0.014702554792165756, 0.12510856986045837, 0.058818213641643524, 0.03819136694073677 ]
[ -0.0067650810815393925, 0.0022705148439854383, 0.005127107724547386, -0.01994211971759796, 0.005568748340010643, 0.001109482953324914, -0.01796797290444374, 0.024520525708794594, -0.025526493787765503, -0.01562844030559063, -0.02026509679853916, 0.018160022795200348, 0.010678865946829319, -0.025207607075572014, -0.000058274199545849115, 0.018752455711364746, -0.00642988970503211, 0.021098125725984573, 0.024602415040135384, 0.0280245840549469, -0.03329518809914589, 0.030798012390732765, -0.00021509628277271986, 0.012255020439624786, -0.04117428883910179, 0.045532118529081345, 0.0025132589507848024, -0.04070112481713295, 0.04154874011874199, -0.12509484589099884, -0.006288351956754923, -0.040117233991622925, -0.028072413057088852, 0.015335425734519958, 0.006856622640043497, -0.0010022600181400776, -0.0008862558752298355, 0.0037841838784515858, -0.02473393827676773, -0.00834414828568697, 0.0018193133873865008, -0.01122340653091669, -0.004297223873436451, 0.013465199619531631, 0.046034764498472214, 0.007706870790570974, -0.02090841345489025, -0.04489433020353317, -0.014679874293506145, -0.05183209106326103, -0.04495967552065849, -0.010745852254331112, -0.014224574901163578, -0.014060468412935734, 0.0041155023500323296, -0.026841364800930023, 0.04354805126786232, 0.010373027995228767, 0.028642775490880013, -0.00712090078741312, -0.01400350034236908, -0.003755601355805993, -0.02392595075070858, -0.01883121021091938, -0.01823357492685318, -0.0015832774806767702, 0.0020377319306135178, 0.007259871810674667, -0.025349989533424377, 0.01149022113531828, 0.014595597051084042, 0.03746096417307854, -0.014964236877858639, -0.0021261463407427073, 0.002162494231015444, -0.028614722192287445, 0.008262379094958305, -0.03630829602479935, -0.006111658178269863, -0.018603309988975525, -0.014778015203773975, 0.013111012056469917, 0.015876978635787964, -0.0007891204440966249, 0.021435508504509926, 0.0057517169043421745, 0.009504118002951145, 0.014422674663364887, 0.015376023016870022, -0.007994278334081173, -0.0031903001945465803, 0.031926464289426804, -0.02322741597890854, 0.003202422522008419, -0.08742565661668777, 0.008645063266158104, -0.008152807131409645, -0.025242961943149567, 0.021108465269207954, 0.8596857190132141, -0.013703560456633568, 0.013008960522711277, 0.020332863554358482, 0.037838514894247055, 0.008162799291312695, 0.005222012754529715, 0.03000720590353012, 0.021199969574809074, 0.02371026948094368, -0.02289487048983574, 0.01908428966999054, 0.028109341859817505, 0.03601566702127457, -0.0011745404917746782, -0.019854119047522545, 0.0058677103370428085, -0.04907308518886566, 0.016607409343123436, 0.03140133619308472, 0.014268700033426285, 0.012156243436038494, -0.022602958604693413, -0.01775870844721794, 0.036697156727313995, 0.00788617692887783, -0.18410928547382355, 0.004866671282798052, -8.040795721383111e-33, 0.02636636793613434, -0.001761488034389913, 0.0024369501043111086, 0.00107819982804358, 0.014351632446050644, 0.0014869237784296274, 0.025019869208335876, -0.020856210961937904, -0.008292829617857933, -0.02099865861237049, -0.009753548540174961, -0.03539164364337921, -0.02377927117049694, -0.010103045962750912, 0.0343288779258728, -0.015513109974563122, -0.022811276838183403, 0.027896147221326828, -0.015472590923309326, 0.008542260155081749, 0.05997276306152344, 0.0029986847657710314, -0.02235926128923893, 0.004326813388615847, -0.00922469049692154, 0.0326424241065979, 0.026718083769083023, 0.029003890231251717, 0.005127421580255032, -0.03844178095459938, -0.026134371757507324, 0.007693446706980467, -0.0235909316688776, 0.012165204621851444, 0.013324703089892864, -0.018606871366500854, 0.007388580124825239, -0.007591814734041691, -0.04068716615438461, 0.030146390199661255, -0.03697988763451576, 0.002845998387783766, -0.06853709369897842, -0.008020193316042423, -0.023572230711579323, -0.02727966196835041, 0.03370405361056328, 0.02037438564002514, 0.007365918718278408, -0.03658411651849747, -0.007242429070174694, -0.005962441209703684, 0.014164891093969345, -0.01723092794418335, 0.0159352645277977, 0.010342593304812908, -0.022217221558094025, -0.029057778418064117, 0.013668166473507881, 0.07208545506000519, 0.02004699595272541, -0.018329357728362083, -0.011260036379098892, -0.003999584354460239, -0.025822507217526436, -0.024309080094099045, -0.01148325763642788, -0.007933787070214748, 0.04623023048043251, -0.022994477301836014, -0.03810790926218033, 0.003761583473533392, -0.008100053295493126, -0.004110704176127911, 0.0165143683552742, -0.016037579625844955, 0.012328587472438812, -0.005639613140374422, -0.0013562464155256748, 0.024842746555805206, 0.0015452578663825989, -0.016253245994448662, -0.028152331709861755, -0.008194033056497574, 0.011905737221240997, -0.0362723246216774, -0.005990728735923767, -0.019694240763783455, -0.027705591171979904, -0.011393164284527302, 0.02789592556655407, -0.008534909226000309, 0.004472209140658379, 0.0012537345755845308, -0.030634375289082527, 8.328968896171164e-33, -0.020637189969420433, 0.021927334368228912, -0.016224712133407593, 0.014534268528223038, 0.01722566783428192, -0.015750568360090256, 0.03402987867593765, 0.01684664748609066, -0.02956259250640869, 0.02125667966902256, -0.028573157265782356, -0.00045333962771110237, -0.01839694008231163, 0.027332885190844536, 0.029956167563796043, 0.0031555104069411755, 0.01563747227191925, -0.044783055782318115, -0.023693786934018135, 0.019249113276600838, 0.021420080214738846, 0.006335263606160879, 0.01203084085136652, -0.01173820998519659, 0.04307258129119873, 0.07504796236753464, -0.028124971315264702, 0.03313227370381355, -0.0002723262005019933, 0.027126029133796692, 0.02196086384356022, -0.012931580655276775, 0.013184173963963985, 0.02983519621193409, -0.007016718853265047, 0.057178135961294174, -0.010481885634362698, 0.0038574938662350178, 0.003783109365031123, 0.022106198593974113, 0.013954482972621918, -0.006140765734016895, -0.01013320405036211, 0.05975243076682091, 0.006486272439360619, 0.027153706178069115, 0.025112029165029526, -0.002964417217299342, 0.012668944895267487, 0.006408725865185261, -0.008699588477611542, -0.0015591016272082925, 0.019304247573018074, 0.019773880019783974, -0.021983256563544273, -0.04422048479318619, -0.03385927155613899, 0.03420231118798256, -0.026470381766557693, 0.00518944812938571, 0.004438084550201893, 0.01795141026377678, -0.0029214927926659584, 0.024923933669924736, -0.01696053519845009, -0.026523614302277565, -0.01802835427224636, -0.024252770468592644, -0.02878700941801071, -0.010156298987567425, -0.03189012408256531, 0.008417343720793724, 0.022120481356978416, 0.04711270332336426, 0.005333316046744585, -0.02476862072944641, -0.02600119821727276, 0.010733017697930336, -0.024815205484628677, 0.023982424288988113, 0.022395001724362373, 0.011518656276166439, 0.014386173337697983, -0.0015805793227627873, -0.036022379994392395, 0.030510636046528816, -0.018215058371424675, 0.011894931085407734, 0.0037520749028772116, -0.0337376594543457, -0.023736383765935898, 0.006880755536258221, -0.0029136824887245893, 0.024234596639871597, -0.01855119876563549, -1.3537147403042127e-8, -0.017524000257253647, 0.0035470821894705296, -0.011137465015053749, -0.010622587986290455, 0.03209502995014191, 0.018822800368070602, 0.010058348067104816, 0.012325824238359928, -0.03271660581231117, -0.005568110849708319, 0.019897127524018288, 0.003933043219149113, -0.013824764639139175, 0.014294841326773167, 0.02389414608478546, -0.021137729287147522, -0.014067891985177994, -0.02747940644621849, 0.014190643094480038, 0.013393066823482513, 0.01517448015511036, 0.06308339536190033, -0.004594296682626009, 0.014598539099097252, -0.005617287941277027, -0.0169211495667696, 0.00944690965116024, -0.09569481015205383, -0.007061204873025417, -0.0012740164529532194, 0.0030569478403776884, -0.02526775747537613, -0.0176682211458683, 0.03580482676625252, 0.00006566329830093309, 0.001656142994761467, 0.020883427932858467, 0.062396109104156494, 0.005194828845560551, 0.004110966809093952, -0.016811825335025787, 0.010949690826237202, 0.00268424185924232, -0.0321887768805027, -0.009856471791863441, -0.00230186409316957, -0.045929599553346634, 0.0067694042809307575, 0.018756777048110962, -0.025172313675284386, 0.02969069592654705, -0.009808934293687344, -0.008972248062491417, 0.024388212710618973, 0.03087002970278263, -0.004983394872397184, -0.0026045532431453466, -0.03247414529323578, -0.00455627404153347, -0.024380922317504883, 0.006760907359421253, 0.02655787020921707, 0.024817924946546555, -0.022858712822198868 ]
tdd-big-leaps-and-small-steps
https://markhneedham.com/blog/2009/12/10/tdd-big-leaps-and-small-steps
false
2009-12-19 02:52:15
You and Your Research - Richard Hamming
[ "software-development" ]
[ "Software Development" ]
Another paper that I read on my Sydney to London flight was one titled 'http://www.cs.virginia.edu/~robins/YouAndYourResearch.html[You and Your Research]' by Richard Hamming. It's a transcript of a talk that Richard Hamming gave to Bellcore employees at the Morris Research and Engineering Centre in 1986. The talk is aimed at computer science researchers and Hamming describes ways for them to do the best research that they can. I think several of the ideas in the talk relate to software development as well. These were some of the bits I found interesting: * Hamming makes an observation about working conditions which I thought was quite interesting: + ____ So ideal working conditions are very strange. The ones you want aren't always the best ones for you. ____ + From what I've noticed this is true in software development too. As a contrived example, the 'ideal' software project would have unlimited time and money but that's never the case so we have to find ways to deal with the fact that we have to work within that framework. One of the benefits of this is that we try only to develop the features which are the most important rather than absolutely everything which might be the case if we didn't have that constraint. I'm inclined to believe that when we're working in a difficult environment we have more freedom to try things out because what's currently being tried is probably not working anyway. This seems to be the type of situation where innovation can happen. * Hamming seems to touch on the idea of 10,000 hours of practice to achieve expertise that http://www.psy.fsu.edu/faculty/ericsson/ericsson.exp.perf.html[J. Anders Ericcsson has researched] and http://www.markhneedham.com/blog/2009/01/06/outliers-book-review/[Malcolm Gladwell popularised]: + ____ On this matter of drive Edison says, ``Genius is 99% perspiration and 1% inspiration.'' He may have been exaggerating, but the idea is that solid work, steadily applied, gets you surprisingly far. The steady application of effort with a little bit more work, intelligently applied is what does it. That's the trouble; drive, misapplied, doesn't get you anywhere\...the misapplication of effort is a very serious matter. Just hard work is not enough - it must be applied sensibly. ____ + This seems to cover the same type of ground that http://www.markhneedham.com/blog/2008/12/29/talent-is-overrated-book-review/[Geoff Colvin covers with the idea of deliberate practice] where we should always look to practice something which is a bit beyond our current ability. That way we're always improving. * I really liked the following part of the article: + ____ But most great scientists are well aware of why their theories are true and they are also well aware of some slight misfits which don't quite fit and they don't forget it. Darwin writes in his autobiography that he found it necessary to write down every piece of evidence which appeared to contradict his beliefs because otherwise they would disappear from his mind. ____ + I often forget that there are other ways of solving problems than the ways I currently use and it's always good to read about people being successful with http://blog.edgecase.com/2009/6/2/a-rant-about-testing[different] http://blogs.msdn.com/cashto/archive/2009/03/31/it-s-ok-not-to-write-unit-tests.aspx[approaches]. That way we can keep questioning what we're doing rather than just blindly doing so. * He also talks about the idea of bouncing ideas of other people because they will get you to think about the idea in different ways: + ____ What you want to do is get that critical mass in action; ``Yes, that reminds me of so and so,'' or, ``Have you thought about that or this?'' When you talk to other people, you want to get rid of those sound absorbers who are nice people but merely say, ``Oh yes,'' and to find those who will stimulate you right back. ____ + I think this is where something like a http://www.markhneedham.com/blog/category/book-club/[technical book club] can be invaluable. On every single paper or chapter we read in the ThoughtWorks Sydney book club others had different/better ideas than I did and it was really useful for showing me perspectives that I hadn't even thought of. In 'http://www.markhneedham.com/blog/2008/10/06/pragmatic-learning-and-thinking-book-review/[Pragmatic Learning and Thinking]' Andy Hunt suggests that whenever we read something we should try and explain the idea to a peer to see how well we understand the material and to get other ideas that we hadn't thought of. I'd really recommend this approach. * There's also some interesting advice about giving presentations: + ____ The technical person wants to give a highly limited technical talk\...the audience wants a broad general talk and wants much more background than the speaker is willing to give. As a result, many talks are ineffective. \... You should paint a general picture to say why it's important, and then slowly give a sketch of what was done\...the tendency is to give a highly restricted, safe talk; this is usually ineffective. Furthermore, many talks are filled with far too much information. So I say this idea of selling is obvious. ____ + This is very similar to the advice Dan North gives. He suggests that three ideas/new things in a talk is all that people will be able to remember and anything more than this is a bit overwhelming. There's certainly other interesting ideas in this paper but those were some of the bits that stood out for me. Worth reading.
null
null
[ 0.03155289590358734, 0.03080827370285988, -0.01567131094634533, 0.06509643793106079, 0.0952540785074234, 0.016789888963103294, 0.008787339553236961, 0.04716090112924576, 0.019560661166906357, -0.024187050759792328, -0.044976428151130676, -0.018438396975398064, -0.060484182089567184, 0.020917922258377075, -0.04269759729504585, 0.06293956935405731, 0.050659164786338806, 0.0022957278415560722, 0.019622327759861946, 0.003493672702461481, 0.0375387966632843, 0.10646133869886398, 0.05705522745847702, 0.028045548126101494, 0.04989556223154068, -0.0171494260430336, 0.011587671935558319, -0.008054288104176521, -0.030390599742531776, 0.00770924985408783, 0.03340795636177063, 0.006382787134498358, -0.0006915151607245207, 0.005388928577303886, 0.019287269562482834, 0.00227077747695148, -0.029146835207939148, 0.023204380646348, -0.008356580510735512, 0.0015308528672903776, -0.06847819685935974, 0.05689509958028793, -0.023441797122359276, -0.002679992699995637, -0.05170455574989319, 0.008404013700783253, -0.034329213201999664, 0.010052388533949852, -0.004386252723634243, 0.00657947501167655, -0.060295768082141876, 0.03429552540183067, -0.0055510844103991985, -0.011590570211410522, -0.030572228133678436, 0.05405260995030403, 0.00954973604530096, -0.06216840818524361, -0.002490095794200897, -0.044379979372024536, -0.003295952919870615, -0.010684847831726074, -0.003079804824665189, 0.04383716732263565, 0.05385054647922516, -0.035859525203704834, 0.004822442773729563, 0.016936415806412697, -0.029013600200414658, 0.006942969746887684, -0.03059188649058342, 0.015401729382574558, -0.0058586313389241695, -0.0026197766419500113, 0.018801072612404823, -0.05954550579190254, 0.03521638363599777, 0.06149444356560707, 0.012214954011142254, 0.02576413005590439, -0.025177305564284325, 0.022501660510897636, 0.005334062036126852, 0.04077284410595894, -0.02487933449447155, -0.042184315621852875, -0.016497937962412834, -0.019607413560152054, -0.0728796124458313, 0.06471400707960129, 0.020460449159145355, -0.04264743998646736, 0.022498566657304764, 0.04276354983448982, -0.0023550528567284346, 0.018762953579425812, 0.03468017652630806, 0.007137514650821686, -0.02761659398674965, -0.011934251524508, -0.033695660531520844, -0.03486568480730057, 0.0015041587175801396, 0.0036662621423602104, -0.08213313668966293, -0.0026767661329358816, -0.01424800418317318, 0.002837443957105279, -0.009013226255774498, 0.006385968532413244, -0.018418170511722565, 0.0030575189739465714, -0.01957065239548683, 0.011955861933529377, -0.07566242665052414, 0.07002587616443634, 0.020591439679265022, -0.06412576138973236, -0.014053900726139545, -0.004881718661636114, 0.03277745097875595, 0.034682948142290115, -0.01878816820681095, 0.058939456939697266, 0.017244447022676468, 0.014965851791203022, -0.012983618304133415, 0.04043419659137726, -0.01076671201735735, -0.04664238914847374, -0.0093627218157053, 0.06324151903390884, -0.04248674958944321, 0.004614781588315964, -0.004236288368701935, -0.02063254453241825, 0.016113879159092903, 0.011476225219666958, 0.03104550391435623, 0.061751652508974075, 0.00739882979542017, -0.05494027957320213, 0.005931782070547342, 0.0011749661061912775, 0.01896936073899269, -0.01872982457280159, 0.004298141226172447, -0.009234827011823654, -0.044812384992837906, -0.03457130864262581, 0.00889668334275484, -0.0022194581106305122, 0.01713402569293976, -0.024644212797284126, 0.04713854193687439, 0.068308025598526, 0.041415248066186905, 0.01798863336443901, 0.004046364687383175, 0.0224754698574543, 0.030042245984077454, 0.04489883407950401, 0.021304413676261902, 0.0060366191901266575, -0.008134066127240658, -0.004605219233781099, 0.007459189742803574, 0.044767506420612335, -0.0028797942213714123, -0.0013346686027944088, -0.05744810774922371, -0.025741657242178917, 0.07051756232976913, -0.0447685681283474, -0.0392882265150547, 0.04840024560689926, 0.06148826330900192, 0.03536449000239372, 0.0268128402531147, 0.0059016612358391285, -0.08877123892307281, 0.0354628749191761, 0.02118675783276558, 0.01391410082578659, 0.022470252588391304, -0.0260102991014719, 0.055111318826675415, 0.03876834735274315, -0.0017283172346651554, 0.04158491641283035, -0.08232933282852173, -0.08610561490058899, -0.010832414031028748, -0.0184174794703722, 0.045023784041404724, -0.012464949861168861, 0.03338111191987991, 0.050510965287685394, -0.005763940513134003, 0.058185186237096786, 0.020716479048132896, -0.010174828581511974, 0.013962631113827229, -0.03494352847337723, -0.046904753893613815, 0.05188896134495735, 0.04136629030108452, 0.008734285831451416, -0.039062634110450745, 0.009770429693162441, -0.0010787890059873462, -0.01976095885038376, 0.047808095812797546, -0.012266413308680058, 0.02084769867360592, -0.006370195187628269, 0.04120025038719177, -0.037384193390607834, 0.034160103648900986, -0.036847807466983795, 0.0005880421958863735, 0.01570725440979004, -0.020309440791606903, 0.034378767013549805, 0.030581388622522354, 0.12623997032642365, 0.069388248026371, -0.05145126208662987, -0.03062290884554386, 0.04294164851307869, 0.013757294043898582, -0.0617862194776535, 0.008271780796349049, -0.017563041299581528, 0.017792075872421265, 0.0053292615339159966, -0.06303104013204575, -0.0356910414993763, 0.03533234819769859, -0.048160724341869354, 0.008446533232927322, 0.05526336282491684, -0.019729645922780037, 0.062093984335660934, -0.004502599127590656, -0.01688152365386486, -0.010727779939770699, -0.025820493698120117, -0.05147209390997887, -0.0018621201161295176, -0.014128770679235458, -0.0035369647666811943, 0.01909216120839119, -0.012090071104466915, -0.025296887382864952, -0.04235083609819412, -0.019774729385972023, 0.02869834378361702, 0.06745389848947525, 0.05693599581718445, -0.007334689609706402, 0.07111143320798874, -0.015979992225766182, 0.04379624128341675, 0.003936465363949537, -0.0507851205766201, -0.034786563366651535, -0.05444977805018425, 0.009829933755099773, 0.025964075699448586, 0.014428526163101196, 0.009586641564965248, 0.011489362455904484, 0.016730377450585365, -0.02058739773929119, -0.027224775403738022, 0.03830297663807869, 0.0024139166343957186, -0.027692357078194618, -0.017531534656882286, -0.008375388570129871, 0.06640637665987015, -0.04140465706586838, -0.02161935530602932, 0.00821786466985941, -0.09076979756355286, 0.034004464745521545, -0.04121502488851547, -0.023846354335546494, -0.01720169000327587, 0.013074273243546486, 0.034834496676921844, 0.02673374116420746, 0.022651005536317825, 0.049142323434352875, 0.01757063902914524, 0.021455826237797737, -0.0068071275018155575, -0.006764260586351156, 0.027412647381424904, 0.005543777719140053, -0.004425188060849905, 0.02307984232902527, 0.027071189135313034, 0.003494114615023136, -0.04124954715371132, 0.059378571808338165, -0.04073674976825714, -0.28669288754463196, 0.034042030572891235, 0.024364901706576347, -0.03444180265069008, 0.02615310065448284, 0.0043229879811406136, -0.007439222186803818, -0.054135046899318695, -0.016120921820402145, -0.0028016536962240934, -0.02669060230255127, -0.04099160432815552, -0.026698797941207886, 0.05682362616062164, 0.009324375540018082, 0.018475331366062164, 0.024945521727204323, -0.04614509642124176, 0.010409547947347164, 0.05256263166666031, -0.012234434485435486, -0.07357015460729599, -0.009524025022983551, 0.05746462568640709, 0.037939026951789856, 0.059175342321395874, -0.07293528318405151, 0.029726367443799973, -0.0660938173532486, -0.0011589094065129757, 0.004105862695723772, -0.005693298764526844, 0.02850767783820629, -0.02923681028187275, 0.0005348016275092959, -0.0063408236019313335, 0.04459391161799431, 0.02145744301378727, 0.0017505959840491414, 0.03961380198597908, -0.016996577382087708, -0.017705142498016357, -0.023839786648750305, 0.013013813644647598, 0.07510175555944443, 0.008356085978448391, -0.07278278470039368, -0.016897909343242645, -0.008034955710172653, 0.06376916915178299, -0.04389886185526848, -0.0037925783544778824, -0.004002563655376434, 0.04553676024079323, -0.0365988053381443, -0.010792377404868603, -0.00778130441904068, -0.016882121562957764, -0.04447680339217186, -0.02625228278338909, -0.0019154745386913419, -0.009333918802440166, -0.01215555053204298, -0.04407110810279846, -0.009990980848670006, -0.06549131870269775, -0.0741000548005104, -0.021318325772881508, 0.07904843986034393, 0.0034419214352965355, -0.033262982964515686, 0.018619127571582794, -0.0018817608943209052, -0.10509533435106277, -0.00191061373334378, -0.008524682372808456, -0.030826812610030174, 0.0023169356863945723, 0.03868342936038971, 0.056090567260980606, -0.0226553063839674, -0.07054617255926132, 0.016162652522325516, 0.00732032535597682, 0.032134413719177246, -0.021988103166222572, 0.027359552681446075, 0.017235547304153442, -0.005786407273262739, 0.005533713847398758, 0.05865227431058884, -0.004082922823727131, -0.03842603415250778, -0.01878206431865692, 0.02653692476451397, -0.004407214932143688, -0.014613613486289978, 0.0014897045912221074, 0.02094871923327446, 0.04897681996226311, -0.02544565685093403, -0.06694959849119186, 0.005936716683208942, -0.022815613076090813, -0.015342961065471172, -0.011793196201324463, -0.046237025409936905, 0.01593845523893833, 0.029203420504927635, 0.03263358771800995, 0.013530028983950615, -0.023575829342007637, 0.02492239512503147, -0.043100569397211075, -0.025820249691605568, -0.02730189450085163, 0.01928238570690155, 0.059010304510593414, -0.01695292256772518, -0.02501540631055832, -0.04541349038481712, -0.0020942746195942163, -0.013889258727431297, -0.015285240486264229, -0.044888146221637726, -0.002873000456020236, -0.016487589105963707, -0.005548134911805391, 0.000586083100643009, 0.023557456210255623, -0.021715747192502022, 0.022252406924962997, 0.02625470608472824, -0.03915276378393173, 0.00011625912884483114, -0.02350393868982792, -0.08839733153581619, -0.034791987389326096, 0.006372140720486641, -0.0048695835284888744, 0.003967003431171179, 0.018278954550623894, 0.017948973923921585, 0.026298394426703453, 0.03847236931324005, 0.012446530163288116, 0.006035442464053631, -0.011257845908403397, 0.045005328953266144, -0.005397843662649393, -0.0018422140274196863, -0.06523943692445755, 0.014035730622708797, -0.02961084619164467, -0.02621457539498806, -0.036778707057237625, 0.033107127994298935, -0.021973416209220886, -0.027695966884493828, 0.0002064649888779968, 0.02510974369943142, -0.043767049908638, -0.06392393261194229, -0.03853403404355049, 0.025984928011894226, 0.06911168247461319, -0.008825141936540604, 0.014621113426983356, -0.009379494935274124, -0.009505946189165115, 0.006004007998853922, 0.01139927003532648, -0.043921712785959244, 0.0029495605267584324, 0.0033168604131788015, 0.013566266745328903, -0.0025391755625605583, -0.00862211361527443, 0.056054696440696716, 0.00359030207619071, -0.004817083012312651, -0.029732132330536842, -0.01472622249275446, 0.020664695650339127, 0.04824281856417656, 0.015859711915254593, -0.005120761226862669, -0.000008762381185078993, -0.00788194965571165, -0.040247395634651184, -0.0345141664147377, -0.012939108535647392, -0.008097208105027676, 0.022012941539287567, -0.04043813794851303, -0.08328963071107864, 0.043007344007492065, 0.014125143177807331, 0.01114546786993742, 0.022957831621170044, -0.008715298026800156, -0.0008938262471929193, -0.01556442677974701, 0.020150024443864822, 0.0438341461122036, -0.07298802584409714, -0.011753845028579235, -0.002162458375096321, 0.002329630544409156, 0.017984014004468918, -0.033203016966581345, -0.01559266448020935, -0.004494268912822008, -0.005950328428298235, 0.0003848779306281358, -0.0493326261639595, -0.015762681141495705, -0.03232361376285553, -0.005006913095712662, 0.0011337926844134927, -0.026641713455319405, -0.008130990900099277, -0.018324896693229675, -0.023051729425787926, -0.03160375356674194, 0.016581803560256958, -0.027305496856570244, -0.005105587188154459, 0.00656236382201314, -0.05432901158928871, -0.019309312105178833, -0.026905421167612076, 0.0020170898642390966, 0.03260522708296776, -0.01831602305173874, -0.00016155019693542272, -0.002746578771620989, -0.01679363287985325, -0.014714126475155354, 0.0441383421421051, -0.02403944544494152, -0.03774929419159889, -0.0431830994784832, -0.0068882424384355545, -0.04907890409231186, 0.033792559057474136, -0.019785581156611443, 0.009268882684409618, 0.03900044783949852, 0.040653735399246216, 0.018504135310649872, 0.030192971229553223, -0.011777449399232864, -0.003034743946045637, 0.029346445575356483, -0.04965875297784805, -0.016125734895467758, -0.03867418318986893, -0.044478632509708405, -0.018884703516960144, -0.0037270619068294764, 0.03167657181620598, -0.05782395973801613, 0.06710046529769897, 0.01428194995969534, 0.02250107377767563, 0.028408635407686234, 0.011250477284193039, 0.027589136734604836, -0.07960069179534912, 0.017130762338638306, -0.07873520255088806, -0.016855068504810333, 0.02649715729057789, -0.010731413960456848, 0.0140367541462183, 0.012889234349131584, -0.04188176244497299, 0.0510982945561409, -0.08273345232009888, -0.023007381707429886, 0.052747610956430435, 0.0048645492643117905, -0.03428807109594345, 0.004881257191300392, -0.06691459566354752, 0.022177016362547874, 0.02756553702056408, -0.03326544165611267, -0.018331004306674004, -0.009369123727083206, 0.03854282945394516, -0.00028836855199187994, 0.04430070519447327, -0.033051423728466034, -0.006808640900999308, 0.0657665878534317, 0.009838481433689594, 0.00029685383196920156, 0.036929901689291, -0.013890116475522518, 0.02776930294930935, 0.03297414630651474, 0.013532666489481926, -0.0077758170664310455, 0.029464086517691612, -0.004021151922643185, -0.0547206811606884, 0.01845349743962288, -0.01647627167403698, -0.024235708639025688, -0.03733859956264496, 0.04640772566199303, 0.03065582737326622, -0.020329326391220093, -0.0677264928817749, 0.00876913033425808, -0.04889054223895073, 0.00019841290486510843, -0.01866273023188114, -0.020181722939014435, -0.03158535808324814, 0.027872459962964058, -0.0076127974316477776, 0.006368567701429129, 0.07256415486335754, 0.010484359227120876, -0.03108241781592369, -0.01651185378432274, 0.10921581089496613, 0.07144439220428467, 0.07323066145181656, -0.006670009810477495, 0.08949724584817886, -0.0009457135456614196, -0.045130565762519836, 0.012718193233013153, -0.011960765346884727, -0.017098374664783478, -0.026940859854221344, 0.029082968831062317, 0.075785331428051, -0.0010150306625291705, 0.05710912123322487, -0.019846489652991295, -0.016117408871650696, 0.01171167567372322, 0.04798278212547302, 0.011414112523198128, 0.07725826650857925, 0.016460677608847618, 0.012005954049527645, -0.021058106794953346, -0.06347498297691345, 0.03401912748813629, -0.03456316143274307, -0.02477584406733513, 0.035861413925886154, -0.014348584227263927, 0.029547154903411865, -0.009474561549723148, 0.025121474638581276, 0.07996157556772232, -0.025391552597284317, 0.01871415600180626, -0.0054131969809532166, 0.037514153867959976, -0.017646407708525658, 0.03167345002293587, -0.03831244632601738, -0.008485492318868637, -0.017686571925878525, -0.023793822154402733, -0.024819254875183105, -0.012164484709501266, -0.017633825540542603, 0.0351477712392807, -0.030249541625380516, 0.007515122648328543, 0.03609288111329079, -0.00904944259673357, -0.02544531412422657, -0.06132159009575844, -0.029207177460193634, -0.04054681956768036, -0.05462174490094185, -0.030201390385627747, 0.017086056992411613, 0.0007626025471836329, -0.04676683247089386, -0.01569085381925106, -0.008315862156450748, -0.041035354137420654, 0.056384049355983734, -0.06234873831272125, -0.01273756381124258, 0.008296418003737926, 0.01572088524699211, 0.004329001065343618, 0.004286890849471092, 0.050194524228572845, -0.012430589646100998, -0.013420800678431988, -0.019658226519823074, 0.0017087934538722038, 0.02355472929775715, 0.012780025601387024, 0.0142916115000844, -0.0784200057387352, 0.01959705352783203, 0.018152303993701935, -0.024260835722088814, -0.06938881427049637, 0.027731284499168396, 0.018024520948529243, 0.003949005622416735, 0.05267595872282982, 0.0018396833911538124, 0.01976313814520836, -0.028989462181925774, -0.017318377271294594, -0.023380795493721962, -0.006720936857163906, 0.04147648438811302, -0.022678615525364876, 0.09815753996372223, 0.016837161034345627, 0.0063003855757415295, -0.03568626940250397, -0.015911972150206566, 0.004991237539798021, -0.003617512993514538, -0.019217170774936676, -0.023924825713038445, -0.030630003660917282, -0.08671820908784866, -0.04235241562128067, 0.022194482386112213, -0.0441962331533432, -0.02775787003338337, 0.0481795109808445, 0.04594767838716507, -0.0017441357485949993, 0.010500823147594929, -0.04048856720328331, 0.025440331548452377, -0.009732098318636417, -0.0048086089082062244, 0.0000014541935797751648, 0.03156353905797005, -0.0062957629561424255, -0.01119636557996273, 0.005457153543829918, -0.05163988098502159, 0.012793764472007751, -0.007096411194652319, 0.020439885556697845, 0.03778664767742157, 0.011521908454596996, -0.008530454710125923 ]
[ -0.08473248034715652, 0.002100030891597271, -0.022448258474469185, -0.0419207327067852, 0.046101272106170654, -0.025840377435088158, -0.012095825746655464, 0.03492407500743866, -0.020407604053616524, -0.023838749155402184, 0.008028454147279263, -0.004560511093586683, 0.004168203100562096, -0.02841120958328247, 0.06839485466480255, 0.03457416594028473, -0.005984727758914232, -0.09473343938589096, 0.010620941407978535, 0.0219718050211668, 0.036281127482652664, -0.04223952814936638, -0.03097575344145298, -0.04146478697657585, 0.02544451132416725, 0.01325960922986269, 0.025441335514187813, -0.039229243993759155, 0.02329394593834877, -0.16255347430706024, -0.016751298680901527, 0.01679128408432007, 0.048655226826667786, -0.01712019555270672, 0.023649640381336212, 0.08328540623188019, 0.0316561684012413, 0.006877959705889225, -0.008869556710124016, 0.03141346946358681, 0.02337787300348282, -0.001182189560495317, -0.038053352385759354, -0.01992010697722435, 0.027490129694342613, 0.0112740658223629, -0.00252267112955451, -0.05094686895608902, -0.04871836304664612, 0.021923623979091644, -0.07120821624994278, -0.02901924028992653, -0.0337141789495945, -0.008665422908961773, -0.020617039874196053, 0.032111138105392456, 0.0159221850335598, 0.06027492135763168, -0.021373489871621132, 0.009859222918748856, 0.014316407963633537, -0.015628432855010033, -0.16311754286289215, 0.07539399713277817, 0.07073947787284851, 0.04820183292031288, -0.07953666150569916, -0.03174573555588722, -0.04100480675697327, 0.09965147823095322, 0.018535953015089035, -0.04043591767549515, -0.017631318420171738, 0.03685924410820007, 0.03701235353946686, 0.010963262058794498, 0.0006003117887303233, 0.0131362434476614, 0.016675250604748726, -0.05655010789632797, -0.003155916463583708, -0.0038330310489982367, -0.02228538505733013, 0.01723780483007431, -0.039696354418992996, 0.033166054636240005, -0.0026913026813417673, 0.051674507558345795, 0.03746509924530983, 0.018069138750433922, 0.045556873083114624, -0.00922116357833147, 0.02688627503812313, -0.025710683315992355, -0.0654330924153328, -0.017569996416568756, 0.011889406479895115, 0.025785667821764946, -0.04671564698219299, 0.44238191843032837, -0.023318475112318993, -0.027212468907237053, 0.08660467714071274, 0.031535208225250244, -0.018978027626872063, 0.0077144126407802105, 0.0073092044331133366, -0.03467627987265587, 0.031573034822940826, -0.014283404685556889, 0.0384628027677536, 0.041733238846063614, 0.05434400588274002, -0.03272375091910362, 0.016087399795651436, 0.01524205319583416, 0.010673548094928265, 0.011976616457104683, -0.007954693399369717, -0.03084048256278038, -0.026188155636191368, 0.018161099404096603, 0.021261118352413177, -0.009697221219539642, -0.047746457159519196, -0.040908653289079666, 0.012188399210572243, 0.06120483577251434, 0.00936117209494114, -0.033170849084854126, 0.06282049417495728, -0.05376379191875458, -0.0454799048602581, 0.007929861545562744, 0.0035760561004281044, -0.001692734775133431, 0.01569661870598793, -0.011440115980803967, -0.006581006105989218, 0.057885006070137024, 0.018066778779029846, 0.011248932220041752, 0.0014390939613804221, -0.03145785257220268, -0.03539739176630974, 0.11794080585241318, 0.048501156270504, -0.04261918365955353, -0.024607529863715172, -0.04079895094037056, 0.0008045245194807649, 0.01524416171014309, 0.016553882509469986, -0.05474520102143288, 0.047812748700380325, 0.009089075960218906, 0.10623529553413391, 0.001031604129821062, -0.06021233648061752, 0.005004941485822201, -0.009976896457374096, 0.0019276610109955072, -0.05476568639278412, 0.07138587534427643, 0.07909426838159561, -0.08994729816913605, -0.004219219088554382, 0.024179384112358093, 0.026300502941012383, -0.061230339109897614, -0.006304124835878611, 0.015691805630922318, -0.032425958663225174, 0.007147307973355055, 0.038590241223573685, -0.050943244248628616, -0.05210435763001442, 0.02718823403120041, 0.06409388780593872, 0.013258877210319042, 0.03191918879747391, 0.007650095038115978, -0.026590809226036072, -0.0006653983145952225, -0.0326133631169796, -0.07817120850086212, -0.020365174859762192, -0.0014458218356594443, -0.04283934086561203, -0.0028940418269485235, -0.008165485225617886, 0.008081103675067425, -0.08377917855978012, 0.1045570969581604, -0.02324545383453369, -0.03642388433218002, 0.010281721130013466, -0.011142028495669365, -0.04330790042877197, -0.029979785904288292, -0.07535907626152039, 0.008476070128381252, -0.048138558864593506, 0.02899750880897045, -0.05168475583195686, 0.032821040600538254, 0.04840181767940521, -0.04324175417423248, 0.1052609533071518, 0.05290862172842026, -0.035358574241399765, -0.03766395151615143, 0.01780126988887787, 0.038134507834911346, 0.011975937522947788, -0.015105444937944412, 0.015523071400821209, 0.02360040508210659, 0.010511060245335102, 0.034312739968299866, -0.021828440949320793, 0.015763327479362488, -0.06103813648223877, -0.3558845818042755, -0.05482355132699013, -0.03620321676135063, -0.005775005090981722, 0.03477873280644417, -0.029671330004930496, 0.016372837126255035, -0.017053401097655296, -0.01622658222913742, 0.005262186285108328, 0.04560980200767517, -0.015011308714747429, 0.007737272419035435, -0.07211557030677795, 0.014109546318650246, 0.001068956800736487, -0.028869835659861565, -0.01476582046598196, -0.03883355110883713, -0.008194676600396633, 0.01130939181894064, 0.005774824880063534, -0.04040082171559334, -0.05718998983502388, -0.0222710520029068, -0.06145363301038742, 0.08285471796989441, -0.010370629839599133, 0.08522859215736389, -0.00957475695759058, 0.02539021521806717, -0.011292673647403717, 0.04235391691327095, -0.10550668090581894, 0.006207600235939026, 0.003203818341717124, 0.02800319716334343, -0.011271486058831215, -0.00506631750613451, -0.029937688261270523, -0.042625509202480316, 0.018271811306476593, -0.06610086560249329, -0.008724788203835487, -0.09956229478120804, 0.02307415008544922, -0.03201611340045929, -0.046146903187036514, -0.027431903406977654, 0.0731596052646637, -0.004789675585925579, 0.023930048570036888, 0.010370463132858276, 0.0008261201437562704, -0.005175742786377668, -0.02560172788798809, -0.08178544044494629, 0.05312839522957802, 0.005254451185464859, 0.001023180317133665, 0.01802786998450756, 0.04159919172525406, 0.026018373668193817, -0.04369444400072098, -0.0094496700912714, -0.0075758835300803185, 0.01357673853635788, 0.020926741883158684, 0.027867713943123817, 0.0016020567854866385, -0.0005238244775682688, 0.10980013012886047, -0.0026843359228223562, -0.02835109271109104, 0.012224212288856506, 0.014432485215365887, 0.0017875521443784237, 0.007928564213216305, 0.01326893549412489, -0.025381529703736305, 0.014963448978960514, -0.022161709144711494, 0.022294236347079277, -0.013682371005415916, -0.012457978911697865, 0.027059726417064667, -0.026184342801570892, -0.06887069344520569, 0.058617718517780304, 0.015226657502353191, -0.039607416838407516, 0.004434550646692514, -0.02775602787733078, -0.05723564699292183, 0.0771162137389183, 0.022787394002079964, -0.22486212849617004, 0.026513535529375076, 0.05704478546977043, 0.03222844377160072, -0.03324558958411217, 0.03994190692901611, 0.031407881528139114, -0.02906724065542221, 0.01673925295472145, 0.037459373474121094, 0.02462131157517433, -0.006729266606271267, -0.0014866174897179008, -0.010972719639539719, 0.04759841412305832, -0.0245368555188179, 0.06995575875043869, -0.025700395926833153, 0.01669801026582718, -0.008966690860688686, 0.011321015655994415, 0.013461912982165813, 0.15134592354297638, -0.009123791009187698, 0.031006863340735435, 0.018403878435492516, -0.00701773539185524, 0.032364849001169205, 0.062196917831897736, -0.0034392918460071087, 0.04231179133057594, -0.011528742499649525, 0.01393471285700798, 0.009516051970422268, 0.00931199174374342, -0.0472726970911026, -0.04040732607245445, 0.011639973148703575, 0.008983183652162552, 0.011781078763306141, 0.015470558777451515, -0.00177027378231287, -0.02008899487555027, 0.040171656757593155, 0.08645986020565033, 0.014210272580385208, -0.0017074976349249482, -0.05056913197040558, -0.038327138870954514, -0.009539229795336723, -0.05058843642473221, -0.041575659066438675, 0.01564672403037548, -0.0025026341900229454, 0.025527460500597954, 0.05577612295746803, 0.042055848985910416, -0.005372945219278336, -0.0014077966334298253, -0.006132415495812893, -0.02004137821495533, -0.0058824741281569, 0.09511080384254456, 0.04164417088031769, 0.05274258181452751 ]
[ 0.014347695745527744, 0.018349885940551758, 0.024580540135502815, -0.004957030527293682, 0.0007375830318778753, 0.0008722795755602419, 0.002530842088162899, 0.01618059352040291, -0.027398470789194107, 0.030075039714574814, -0.03380333259701729, 0.03778595104813576, 0.02061472460627556, 0.010516304522752762, -0.0004304044123273343, 0.019089939072728157, -0.0027085423935204744, -0.03387412801384926, 0.014939562417566776, 0.004629820119589567, -0.011176273226737976, 0.013605519197881222, 0.0025436817668378353, -0.021364474669098854, -0.03206483647227287, 0.0455743670463562, -0.012960472144186497, 0.021997906267642975, 0.0371733158826828, -0.11251325160264969, -0.046745747327804565, 0.002688957843929529, -0.009845774620771408, 0.01521054282784462, 0.015357603318989277, 0.022196946665644646, 0.03153873234987259, 0.009898661635816097, 0.013168362900614738, -0.016614602878689766, -0.014341248199343681, -0.014285331591963768, 0.003781556384637952, 0.012990007176995277, 0.0020575611852109432, 0.0017807697877287865, 0.02023506350815296, -0.042536377906799316, -0.01623016968369484, -0.028018061071634293, -0.033493414521217346, -0.0047212811186909676, -0.0014120874693617225, -0.009240309707820415, 0.011469409801065922, 0.014990895986557007, 0.022940397262573242, -0.01509303878992796, -0.004124398808926344, -0.007538785692304373, 0.010405171662569046, -0.032026953995227814, -0.07591458410024643, -0.00789112038910389, 0.005033247638493776, -0.007073552347719669, -0.036155667155981064, 0.026276618242263794, -0.06170962378382683, 0.00878240168094635, 0.010221274569630623, -0.008754530921578407, -0.06414253264665604, -0.023548835888504982, 0.018373100087046623, 0.0012610512785613537, 0.017975186929106712, -0.031037883833050728, 0.031792350113391876, -0.016751043498516083, -0.05188945680856705, 0.025565771386027336, -0.004285555332899094, -0.012962931767106056, -0.02392747439444065, -0.02471810206770897, 0.018767543137073517, 0.00867446232587099, 0.0316404290497303, -0.0018198948819190264, -0.031996481120586395, 0.012006381526589394, -0.006292484235018492, 0.024347882717847824, -0.08215513080358505, -0.024614686146378517, 0.011947410181164742, -0.011062529869377613, 0.003802170278504491, 0.851879358291626, -0.004154711961746216, -0.010029936209321022, 0.037869926542043686, -0.011920694261789322, 0.036368608474731445, 0.018071753904223442, 0.025137200951576233, 0.0057934848591685295, 0.01714681275188923, -0.03824362903833389, -0.020253455266356468, 0.02467449940741062, 0.01732151210308075, 0.021421844139695168, 0.025830145925283432, 0.02429094910621643, 0.0013887210516259074, 0.019506823271512985, -0.02253606542944908, 0.012110740877687931, 0.02233804389834404, -0.016080940142273903, 0.00106140342541039, -0.00632501021027565, -0.02907809056341648, -0.1952754706144333, 0.003922955133020878, -8.352361233752528e-33, 0.01009876187890768, -0.014149700291454792, 0.005193311255425215, -0.0074865324422717094, 0.029120540246367455, -0.017315244302153587, 0.024199509993195534, 0.06927118450403214, 0.02298051491379738, -0.001682320493273437, -0.01784619130194187, -0.02348523959517479, 0.007997077889740467, -0.02298762835562229, 0.047581207007169724, -0.01587667316198349, 0.0019396627321839333, 0.03287827968597412, -0.002547325799241662, 0.006256551947444677, 0.007909189909696579, 0.018689710646867752, -0.007414693012833595, 0.0012117415899410844, 0.020459163933992386, 0.003087722696363926, 0.0211589764803648, -0.02173912711441517, 0.003227176610380411, -0.035891368985176086, 0.0006999168545007706, 0.06256335973739624, -0.02519376017153263, -0.0252886600792408, -0.009803591296076775, -0.017021240666508675, -0.013493536971509457, 0.007408972829580307, 0.028846796602010727, -0.005293988157063723, -0.03657582029700279, -0.015210245735943317, -0.02481848932802677, -0.008331251330673695, -0.0010068792616948485, -0.003914217464625835, 0.029633034020662308, 0.014279096387326717, 0.006708537228405476, 0.000004260817604517797, -0.0033329157158732414, 0.024958550930023193, 0.009847805835306644, 0.011500131338834763, -0.0004233993822708726, 0.00968378409743309, 0.025080369785428047, 0.01908445544540882, 0.014575482346117496, 0.01944945752620697, -0.0037015152629464865, -0.00013893195136915892, -0.019685054197907448, 0.022887904196977615, -0.0127437524497509, -0.0009717723587527871, 0.014808626845479012, 0.002120653400197625, 0.0033047238830477, 0.011600600555539131, -0.05324067920446396, 0.008037218824028969, -0.014772237278521061, -0.019987011328339577, -0.005299048498272896, 0.0033095511607825756, -0.008533692918717861, 0.012840750627219677, -0.024622149765491486, 0.056337159126996994, -0.0004277051193639636, 0.04904725030064583, -0.04499109834432602, -0.051647648215293884, 0.0010274634696543217, 0.02373865805566311, 0.0297700222581625, -0.0032078735530376434, -0.01798173598945141, 0.0049279662780463696, 0.015802938491106033, -0.02223113738000393, -0.00796905905008316, -0.021910665556788445, -0.011330116540193558, 8.396671493306774e-33, -0.010652046650648117, -0.03213207796216011, -0.02795800007879734, -0.008428394794464111, 0.025803277269005775, 0.02128208987414837, 0.02354326657950878, -0.024320833384990692, -0.06543407589197159, 0.03295350819826126, -0.02585674077272415, -0.03313443064689636, -0.02147779054939747, 0.023326363414525986, 0.008122430182993412, -0.027825120836496353, -0.005484212189912796, -0.001966772833839059, 0.021624045446515083, 0.016393575817346573, 0.03779217600822449, 0.004935961216688156, -0.019143056124448776, -0.0005543287843465805, 0.03527086600661278, 0.04721326380968094, -0.017357196658849716, 0.0352880135178566, 0.008500047028064728, 0.016673807054758072, -0.005443610716611147, 0.018763883039355278, -0.006319050211459398, 0.010258171707391739, 0.004508354235440493, 0.01855565793812275, 0.014870814047753811, -0.0191034022718668, -0.01246203389018774, -0.02381829172372818, 0.014348494820296764, -0.013976957648992538, 0.006076964084059, 0.027239546179771423, 0.023795954883098602, 0.021908001974225044, -0.005608309060335159, -0.03845210000872612, -0.04293324798345566, 0.010905602015554905, 0.02585570141673088, 0.000600477505940944, -0.00362485833466053, 0.013580881990492344, 0.012757264077663422, -0.01378787774592638, -0.030287617817521095, -0.0045872097834944725, 0.00022285831801127642, -0.0034659672528505325, -0.019830137491226196, 0.0011131145292893052, -0.017636340111494064, 0.005001434590667486, -0.018195677548646927, -0.022627247497439384, 0.009080520831048489, -0.0012146423105150461, -0.0021344716660678387, -0.0222163088619709, -0.037788599729537964, 0.027941390872001648, 0.01323357131332159, 0.0490301214158535, -0.042395032942295074, 0.0029394589364528656, 0.0012860805727541447, -0.00976303219795227, -0.047283053398132324, 0.020131468772888184, 0.025204364210367203, 0.008709771558642387, 0.022135837003588676, 0.02308528684079647, -0.006573365535587072, 0.050359517335891724, -0.0085105299949646, 0.014943553134799004, -0.015372166410088539, -0.01631581224501133, -0.0036955338437110186, -0.025192316621541977, -0.0031714739743620157, 0.003758358070626855, -0.012788219377398491, -1.3819069444309662e-8, -0.01988154835999012, -0.01364830881357193, 0.003576933406293392, -0.009308620356023312, 0.002380597637966275, 0.023191552609205246, -0.018869591876864433, -0.005431514233350754, -0.02898584119975567, 0.011635730974376202, 0.055609166622161865, -0.037113338708877563, -0.014767964370548725, 0.03974318876862526, -0.01084139384329319, -0.043633874505758286, -0.001885909354314208, 0.0017956738593056798, 0.02958373911678791, 0.02093423716723919, 0.02377074398100376, 0.08337878435850143, -0.006617777980864048, 0.028841296210885048, 0.0322466678917408, -0.01556018739938736, -0.005532076116651297, -0.08328745514154434, 0.009921424090862274, 0.009130551479756832, -0.009074293076992035, -0.03457755967974663, -0.014057762920856476, 0.023596104234457016, -0.017362799495458603, -0.034561485052108765, 0.035995494574308395, 0.021764934062957764, -0.008786431513726711, -0.0093162190169096, -0.011209478601813316, 0.0027942375745624304, -0.03311673924326897, -0.026528192684054375, -0.0019993663299828768, -0.013894613832235336, -0.03489623963832855, -0.029223570600152016, 0.012368235737085342, -0.051760658621788025, 0.024738308042287827, 0.005171889904886484, 0.05784381926059723, 0.02622743509709835, 0.016002727672457695, 0.01941954530775547, -0.040836151689291, -0.025393987074494362, -0.04030128940939903, 0.013710351660847664, 0.0077314916998147964, 0.04171987995505333, -0.02658429555594921, -0.03158221393823624 ]
you-and-your-research-richard-hamming
https://markhneedham.com/blog/2009/12/19/you-and-your-research-richard-hamming
false
2009-12-19 10:33:57
F#: The use keyword and using function
[ "f" ]
[ "fsharp" ]
While I was playing around with http://www.markhneedham.com/blog/2009/12/18/f-word-count-a-somewhat-failed-attempt/[the little F# script that I wrote to try and solve the word count problem] I noticed that in a couple of places I had used the 'http://msdn.microsoft.com/en-us/library/dd233240(VS.100).aspx[use]' keyword when dealing with resources that needed to be released when they'd been used. Using the 'use' keyword means that the 'Dispose' method will be called on the resource when it goes out of scope. The two examples were 'StreamWriter' and 'StreamReader': [source,ocaml] ---- let writeTo (path:string) f = use writer = new StreamWriter(path) f writer ---- [source,ocaml] ---- let download path = use streamReader = new StreamReader(File.OpenRead path) streamReader.ReadToEnd() ---- I found it quite annoying that those bits of code needed to take up three lines despite the fact I don't really need to have the class construction assigned. Luckily there is a 'using' function available which allows us to make these bits of code more concise. 'using' takes in 2 arguments - the object to be created and a function which takes in that object and does something with it. If we make use of that function instead of the 'use' keyword we end up with the following function definitions: [source,ocaml] ---- let writeTo (path:string) f = using (new StreamWriter(path)) (fun writer -> f writer) ---- [source,ocaml] ---- let download path = using (new StreamReader(File.OpenRead path)) (fun reader -> reader.ReadToEnd()) ---- When we're just doing one thing with the resource, as I am here, then I think this reads better. If we're using it for multiple different operations then perhaps the use keyword is more appropriate.
null
null
[ -0.00929337739944458, -0.02658780664205551, -0.007410689257085323, 0.013605717569589615, 0.07211696356534958, 0.00864314753562212, -0.0016653529601171613, 0.028753651306033134, 0.00683253351598978, -0.02175946533679962, -0.005499357357621193, 0.015008709393441677, -0.09179170429706573, 0.019881417974829674, 0.011536087840795517, 0.06366441398859024, 0.08673284202814102, -0.019983448088169098, 0.032547954469919205, -0.028194444254040718, 0.0177715253084898, 0.0768078863620758, -0.022520821541547775, 0.030689185485243797, 0.011609957553446293, -0.0039899107068777084, -0.006134761963039637, -0.015550204552710056, -0.04280382767319679, -0.005604883655905724, 0.024593373760581017, 0.004225241020321846, -0.010409069247543812, -0.018309172242879868, 0.019778484478592873, -0.04326101765036583, 0.0013073582667857409, 0.0015473745297640562, -0.019119609147310257, 0.057778842747211456, -0.07485022395849228, 0.02389366924762726, 0.006064003799110651, -0.014323253184556961, -0.02476632222533226, 0.022263215854763985, -0.03399739786982536, 0.006595340091735125, -0.03331886976957321, 0.004835816100239754, -0.06666965037584305, 0.015500864014029503, -0.020265644416213036, -0.01444642711430788, -0.00046981408377178013, 0.04087609797716141, 0.041542280465364456, -0.0578366294503212, 0.04228557273745537, -0.0351148396730423, 0.007174825761467218, -0.019503995776176453, 0.015341646037995815, 0.06390739977359772, 0.045340415090322495, -0.024058442562818527, -0.022191757336258888, 0.05090939253568649, -0.05416681617498398, -0.034200407564640045, 0.0132884681224823, 0.03207968920469284, -0.04621836915612221, 0.0050187017768621445, 0.006040163338184357, -0.050651099532842636, 0.025541381910443306, 0.04334286227822304, 0.03578554466366768, 0.046970538794994354, -0.003909377846866846, 0.03616851195693016, 0.024355391040444374, 0.03074904903769493, 0.007138446904718876, -0.014427561312913895, -0.019838152453303337, 0.025622785091400146, -0.015141519717872143, 0.04516049474477768, -0.006020736414939165, -0.062294334173202515, -0.006681156810373068, 0.01912681572139263, 0.026986828073859215, 0.004263927694410086, -0.0000352438582922332, 0.0032457406632602215, -0.005096878856420517, 0.014977244660258293, -0.05934959277510643, -0.027552764862775803, 0.02773960493505001, 0.02640148624777794, -0.06758423149585724, 0.003142383648082614, -0.017679806798696518, -0.02242669090628624, 0.036916155368089676, 0.011847981251776218, -0.01954653300344944, 0.014788459986448288, -0.022228458896279335, -0.0022035904694348574, -0.09260421246290207, 0.018748389557003975, -0.003202056046575308, 0.005493090953677893, -0.008148315362632275, 0.049318138509988785, 0.0486941896378994, -0.005808559712022543, 0.010145213454961777, 0.0657622441649437, 0.002335228957235813, -0.005205794703215361, -0.013474385254085064, 0.07718107104301453, -0.0006177340401336551, -0.06279803067445755, -0.0008461126126348972, 0.04740479588508606, -0.02848188765347004, -0.01731492392718792, -0.004866731818765402, -0.0024111608508974314, -0.016198161989450455, -0.018445607274770737, 0.025139721110463142, 0.039439499378204346, -0.006437447853386402, -0.019891424104571342, -0.01786397024989128, -0.03380102664232254, 0.017887549474835396, 0.03705981746315956, -0.04064907506108284, -0.013197744265198708, -0.0044204904697835445, 0.020119676366448402, 0.028653036803007126, 0.049950309097766876, 0.06217298284173012, -0.0374254435300827, 0.0063835750333964825, 0.08450891077518463, 0.007670743856579065, 0.034053705632686615, -0.0068232836201786995, 0.018986351788043976, 0.0422654002904892, 0.031003423035144806, -0.006409841123968363, 0.04366036131978035, 0.02494758740067482, -0.008400993421673775, 0.02610117942094803, 0.029283370822668076, -0.025933662429451942, -0.013068639673292637, -0.06193596124649048, -0.0005990894278511405, 0.06299436837434769, -0.0467187836766243, 0.013729126192629337, 0.030913442373275757, 0.07824037224054337, -0.002173810265958309, 0.05453148111701012, 0.00014959827240090817, -0.07571922987699509, 0.026723748072981834, 0.003129498800262809, 0.01730511151254177, -0.02502327971160412, -0.006038997787982225, 0.07484158873558044, 0.025951635092496872, -0.0019135853508487344, 0.01476250495761633, -0.044304993003606796, -0.09059308469295502, -0.043169088661670685, -0.0034732732456177473, 0.0686231181025505, -0.057556506246328354, -0.009346628561615944, 0.06402429193258286, 0.02795618772506714, 0.05592874065041542, 0.028832856565713882, -0.037746772170066833, 0.009665711782872677, -0.03379096835851669, -0.06918109208345413, 0.04934659227728844, 0.034750908613204956, -0.012644889764487743, -0.053373221307992935, 0.0035585735458880663, -0.0009767090668901801, 0.02870507538318634, 0.03850258141756058, 0.008433133363723755, 0.032510533928871155, 0.037526704370975494, 0.011379152536392212, -0.05273059383034706, 0.055396560579538345, -0.07533901929855347, -0.0027486945036798716, -0.00019034287834074348, 0.0025247600860893726, -0.01447543315589428, -0.010834257118403912, 0.13742764294147491, 0.048262447118759155, -0.034987468272447586, -0.07470281422138214, -0.027821963652968407, -0.015914270654320717, -0.04269806295633316, -0.0060667176730930805, 0.010509004816412926, -0.014526636339724064, 0.003540828125551343, -0.04638119041919708, 0.02088613063097, 0.01424095593392849, -0.0306110717356205, 0.028200671076774597, 0.07444028556346893, -0.02272212691605091, 0.04196859151124954, 0.03648966923356056, -0.030673114582896233, 0.022437581792473793, -0.020878922194242477, -0.013349964283406734, 0.01148499920964241, 0.01946626789867878, -0.012528899125754833, 0.06416025757789612, -0.027629120275378227, -0.03567737340927124, -0.0059776767157018185, -0.04874568432569504, 0.046097446233034134, 0.06628955155611038, 0.04765782877802849, 0.003350300481542945, 0.042145803570747375, -0.023570602759718895, -0.00791268702596426, -0.013727916404604912, -0.05421975255012512, -0.023710697889328003, 0.002724283840507269, 0.02068188413977623, 0.03953187167644501, 0.0048760222271084785, 0.00945406872779131, 0.01820981875061989, 0.014590254984796047, -0.039114560931921005, 0.005381552502512932, 0.05210947245359421, 0.008143258281052113, -0.040547776967287064, -0.055895425379276276, -0.033426884561777115, 0.034367285668849945, -0.01036164816468954, -0.02591259777545929, -0.01993456855416298, -0.030177520588040352, 0.03685543313622475, -0.057697098702192307, -0.06433571130037308, -0.007761763408780098, 0.008700416423380375, 0.003173739882186055, -0.014043540693819523, 0.007540465332567692, 0.05643380060791969, 0.03027605265378952, -0.009908691979944706, -0.009720665402710438, 0.01284177415072918, 0.011268486268818378, -0.0033978247083723545, 0.005923050455749035, 0.08107858151197433, 0.00958240032196045, -0.019793320447206497, -0.033245623111724854, -0.009496555663645267, 0.0035165774170309305, -0.2514355480670929, 0.04485257714986801, -0.03031076118350029, -0.02568475902080536, 0.03610776364803314, -0.0021899924613535404, 0.011513103730976582, -0.06588204205036163, -0.0343552865087986, 0.042911022901535034, -0.04774518311023712, -0.03476553037762642, -0.01039982307702303, 0.052441779524087906, 0.018549425527453423, 0.0021085881162434816, -0.007011916022747755, -0.06094016134738922, 0.022893134504556656, 0.055942509323358536, -0.004687140695750713, -0.060528021305799484, 0.013830373995006084, 0.04483024403452873, 0.04210313409566879, 0.026150254532694817, -0.09537416696548462, 0.03173402324318886, -0.024143526330590248, 0.01281102653592825, -0.014847361482679844, -0.011304386891424656, 0.019391372799873352, -0.03660975396633148, -0.01694180630147457, -0.040424901992082596, 0.03660152480006218, 0.025865036994218826, -0.0044575403444468975, 0.0016791429370641708, -0.0064139110036194324, -0.06526961177587509, -0.017038661986589432, -0.025392848998308182, 0.06773395836353302, -0.00883442722260952, -0.09261101484298706, -0.007791903801262379, -0.030291836708784103, 0.07768906652927399, -0.058267898857593536, -0.06727111339569092, -0.024690743535757065, 0.043609850108623505, 0.003851003712043166, -0.03157572075724602, 0.02212698943912983, -0.02661510929465294, -0.011397679336369038, -0.02983010560274124, -0.01438083779066801, -0.03927052393555641, -0.014559360221028328, -0.02806682325899601, -0.022470474243164062, -0.05112434923648834, -0.06617050617933273, 0.006658462807536125, 0.04856811836361885, 0.04731430858373642, -0.03684300556778908, -0.0049140565097332, 0.0030154231935739517, -0.10527956485748291, -0.013074184767901897, -0.03325904533267021, -0.03775443136692047, -0.014069681987166405, -0.005555527750402689, 0.06480671465396881, -0.029230425134301186, -0.04281759262084961, 0.02672377973794937, 0.024941474199295044, 0.03066026233136654, -0.019025728106498718, 0.02994616888463497, -0.008342672139406204, -0.01933419704437256, -0.015021348372101784, 0.06015176698565483, -0.0030495361424982548, 0.011584348045289516, -0.042666610330343246, 0.0037342612631618977, 0.020355964079499245, 0.0313933901488781, -0.0026054817717522383, 0.035679880529642105, 0.01691846363246441, 0.06441057473421097, -0.02933843620121479, 0.010795958340168, -0.038743697106838226, -0.0006381463608704507, -0.008508536033332348, -0.05619525536894798, 0.02237762324512005, 0.02919573336839676, 0.006458173040300608, -0.005269219167530537, -0.015269259922206402, 0.03208004683256149, -0.03627165034413338, -0.02409420721232891, -0.0032209656201303005, 0.00769674452021718, -0.008591732941567898, 0.01838349737226963, -0.02814031019806862, -0.05943256616592407, 0.00818191934376955, 0.015374843962490559, -0.040705278515815735, -0.07382387667894363, -0.033963847905397415, 0.007337465416640043, -0.02288571558892727, -0.003926612436771393, 0.040141645818948746, -0.023189816623926163, 0.015533636324107647, 0.009594389237463474, -0.05291960760951042, 0.0050765397027134895, -0.018620291724801064, -0.013294864445924759, -0.04585984721779823, -0.027601754292845726, -0.008828849531710148, 0.008290416561067104, -0.01806158944964409, 0.037731464952230453, 0.008553404361009598, 0.05958697944879532, 0.00976400263607502, 0.007387068122625351, 0.029843498021364212, -0.010000509209930897, 0.006737224292010069, 0.0027792982291430235, -0.05122498422861099, 0.04173901304602623, -0.02771138772368431, -0.01138793770223856, -0.02427969127893448, 0.020966840907931328, -0.03419165685772896, -0.033060699701309204, -0.041729945689439774, 0.05858524888753891, -0.030032604932785034, -0.02936493419110775, -0.013567153364419937, 0.0026170939672738314, 0.046176835894584656, -0.010287203826010227, 0.06138898804783821, -0.006846006028354168, -0.0005648098886013031, 0.01927153766155243, 0.01896234042942524, -0.020008357241749763, 0.047596678137779236, -0.00298181246034801, 0.004477728623896837, -0.011466574855148792, 0.036867428570985794, 0.0008910686010494828, 0.027125246822834015, -0.011212298646569252, -0.027610711753368378, 0.02283751592040062, 0.015281443484127522, 0.05542810633778572, -0.003948113415390253, -0.00400588707998395, -0.003748473944142461, -0.06869668513536453, 0.003957969602197409, -0.03207559883594513, 0.0015482271555811167, -0.030879316851496696, 0.06039931997656822, -0.02902533859014511, -0.09182783961296082, 0.02544786036014557, 0.04041337966918945, 0.008649256080389023, -0.005109995137900114, -0.010463949292898178, -0.012993569485843182, -0.01128900796175003, -0.028698895126581192, 0.027170585468411446, -0.047291792929172516, -0.006210117135196924, -0.020225845277309418, 0.02326854132115841, 0.058603763580322266, 0.019159046933054924, -0.030738074332475662, -0.008712082169950008, -0.011591876856982708, -0.008805220946669579, -0.02606966346502304, -0.03612209111452103, -0.03745007887482643, 0.005444978829473257, -0.02722945064306259, 0.004691115114837885, -0.019374703988432884, -0.004575595259666443, -0.02826850675046444, -0.024308042600750923, 0.025389540940523148, -0.03821510821580887, -0.03461051359772682, 0.03522764518857002, -0.022686902433633804, 0.00625316658988595, -0.05011396482586861, 0.052059438079595566, 0.025828305631875992, -0.002006678143516183, -0.007707579527050257, -0.06013157218694687, 0.013151738792657852, -0.03241187706589699, 0.05172625184059143, 0.031215230002999306, -0.010471593588590622, -0.006419196724891663, -0.023610645905137062, -0.04252328723669052, 0.0053732930682599545, -0.024881165474653244, -0.03787590563297272, 0.003450613236054778, 0.06858056038618088, -0.008758424781262875, 0.03044583834707737, 0.008748063817620277, -0.009429694153368473, 0.05305325239896774, -0.04185732454061508, -0.020620189607143402, 0.0054352544248104095, -0.042837753891944885, 0.03739648684859276, 0.0195697583258152, 0.005279211793094873, -0.08587732166051865, 0.07903337478637695, 0.044071365147829056, 0.0210915207862854, 0.05414101481437683, -0.011570645496249199, 0.022495737299323082, -0.0056017134338617325, 0.0032749769743531942, -0.08429480344057083, -0.01817120425403118, 0.028992393985390663, 0.043036606162786484, -0.02150861732661724, -0.030979588627815247, 0.005065612029284239, 0.06946486979722977, -0.07393903285264969, -0.014663686975836754, 0.03089539147913456, 0.0003442516317591071, 0.0143494363874197, 0.001494240015745163, -0.026163320988416672, 0.055990222841501236, 0.049226678907871246, -0.018674489110708237, -0.0386083722114563, -0.03000439889729023, 0.02630901336669922, 0.0037445162888616323, 0.012310423888266087, -0.023711740970611572, -0.0015744967386126518, 0.04491216316819191, 0.014519261196255684, -0.00471111387014389, 0.06007087230682373, -0.031766127794981, 0.015236595645546913, 0.043311357498168945, -0.043812576681375504, -0.005078800488263369, -0.00876423716545105, -0.011703443713486195, -0.05217931047081947, 0.014435891062021255, 0.017445364966988564, -0.005121972877532244, -0.03640821576118469, 0.06506097316741943, 0.0018245830433443189, -0.015471280552446842, -0.06428049504756927, -0.0023164430167526007, -0.03699561208486557, 0.00019050101400353014, -0.027071505784988403, 0.02949860878288746, -0.029881170019507408, 0.04690392687916756, 0.0008795076864771545, -0.019169112667441368, 0.06623062491416931, -0.023233937099575996, 0.013746154494583607, 0.004728949628770351, 0.06210336461663246, 0.0713052973151207, 0.0356084406375885, -0.049067527055740356, 0.053577035665512085, -0.037975650280714035, -0.049214888364076614, -0.0002711881825234741, -0.022936394438147545, 0.006363323424011469, 0.0008867674041539431, 0.04641041159629822, 0.07871513068675995, 0.0245974101126194, 0.05358268693089485, -0.04220633581280708, -0.007682675030082464, -0.02266894094645977, 0.02535063400864601, -0.008959781378507614, 0.029133262112736702, 0.01733236014842987, -0.0011917512165382504, -0.008249552920460701, -0.04823342710733414, 0.047626301646232605, -0.004248925484716892, -0.014299809001386166, 0.006560986395925283, 0.014885873533785343, -0.011646864004433155, -0.011904341168701649, 0.06431227922439575, 0.07032287120819092, -0.026520557701587677, -0.0019119979115203023, 0.005992385558784008, 0.010842622257769108, 0.015546223148703575, -0.019688304513692856, -0.01697004772722721, 0.004037348087877035, 0.02937505953013897, -0.008270674385130405, -0.023181838914752007, -0.04718963801860809, -0.023640427738428116, 0.011766871437430382, -0.051213961094617844, 0.013686961494386196, -0.023410851135849953, -0.019592635333538055, -0.038464318960905075, -0.05260278657078743, -0.044350411742925644, -0.03192023187875748, -0.0858716294169426, 0.02136809378862381, 0.00008574187086196616, -0.02710132859647274, -0.027461670339107513, -0.03921772167086601, -0.0047832028940320015, -0.038457997143268585, 0.05271676182746887, -0.007561263162642717, -0.028236761689186096, 0.02080814354121685, -0.002482291078194976, 0.024192944169044495, 0.04193820059299469, 0.037759628146886826, -0.012135359458625317, -0.040928084403276443, -0.015289419330656528, -0.02714613825082779, 0.04105153679847717, 0.008522971533238888, 0.0028662236873060465, -0.09001114964485168, 0.02342507801949978, 0.045967184007167816, 0.014622736722230911, -0.08656821399927139, 0.010211743414402008, 0.04059366509318352, -0.0021049866918474436, 0.050711099058389664, -0.015779763460159302, -0.020768867805600166, -0.035497426986694336, -0.0006433824310079217, 0.008141869679093361, 0.013010001741349697, 0.06437121331691742, -0.02777234837412834, 0.0750868171453476, 0.012864376418292522, -0.012722744606435299, -0.027011780068278313, -0.008922375738620758, -0.025205301120877266, 0.042028140276670456, -0.03749961033463478, -0.014164390973746777, -0.02565101906657219, -0.030412092804908752, -0.029298676177859306, 0.027281738817691803, -0.030384328216314316, -0.0188650730997324, 0.02139238826930523, 0.06309816241264343, -0.032820604741573334, 0.0473051443696022, -0.006836562417447567, 0.01152279507368803, -0.000650979985948652, -0.055023401975631714, 0.012595314532518387, 0.03413653373718262, 0.052558865398168564, -0.007779298350214958, 0.022637560963630676, -0.0264509916305542, -0.0039036571979522705, 0.006239028647542, -0.0027342166285961866, 0.055795200169086456, -0.04410821571946144, 0.03435153141617775 ]
[ -0.07748409360647202, -0.03629743680357933, -0.027522532269358635, -0.0388772115111351, 0.02376536838710308, -0.0520726703107357, 0.006717611104249954, 0.013759452849626541, 0.000313033553538844, -0.013848571106791496, -0.0022876672446727753, -0.022592540830373764, -0.011524481698870659, -0.0018803031416609883, 0.06036071479320526, -0.0038753983099013567, -0.027184784412384033, -0.05625079199671745, -0.0018012813525274396, -0.00005948292891844176, 0.05115372687578201, -0.009465881623327732, -0.018823785707354546, -0.03603719547390938, -0.02105557732284069, 0.024278558790683746, 0.01740575022995472, -0.04653023183345795, -0.007415823172777891, -0.19538721442222595, 0.0002670386456884444, -0.02033919095993042, 0.008127288892865181, 0.002123169368132949, -0.039543405175209045, 0.026859065517783165, 0.039695631712675095, 0.03690703585743904, 0.00047041228390298784, 0.057842835783958435, -0.013595400378108025, 0.04966481402516365, -0.04287907853722572, -0.0020181697327643633, 0.011600523255765438, 0.0008779841009527445, -0.034167706966400146, -0.03873584419488907, 0.002144640777260065, 0.03346727788448334, -0.05807581916451454, -0.005020493641495705, -0.0002383939572609961, -0.007783225737512112, -0.003504051361232996, 0.014683752320706844, 0.05620516091585159, 0.05888725072145462, 0.015836486592888832, -0.0031860729213804007, 0.01530430931597948, -0.024234067648649216, -0.1639101803302765, 0.09675963222980499, 0.00790066085755825, 0.058869898319244385, -0.02703440561890602, -0.009147980250418186, -0.029273366555571556, 0.08571064472198486, -0.015932075679302216, -0.010470055975019932, -0.023114817216992378, 0.0684761106967926, 0.006139770150184631, -0.01674039475619793, -0.003692737314850092, 0.015446357429027557, 0.028241224586963654, -0.05692621320486069, -0.0609709806740284, -0.017765412107110023, 0.024796923622488976, -0.015456167049705982, -0.05096537992358208, 0.022469310089945793, 0.028211841359734535, 0.03702959045767784, 0.06395696103572845, -0.0010273740626871586, 0.030409831553697586, -0.03238475322723389, 0.05257081240415573, 0.01974109187722206, -0.06381744146347046, -0.015351463109254837, -0.011770903132855892, 0.019601985812187195, -0.05149019882082939, 0.3877837061882019, -0.054217830300331116, -0.011809423565864563, 0.026393955573439598, 0.012263227254152298, -0.013984724879264832, 0.01765843853354454, 0.025943081825971603, -0.037328917533159256, -0.00018894071399699897, -0.028632935136556625, 0.021140726283192635, -0.004438533913344145, 0.03323471173644066, -0.0440204031765461, 0.032589882612228394, 0.033101677894592285, 0.003127514384686947, -0.01976514235138893, -0.009443874470889568, 0.04287115857005119, 0.006796720903366804, -0.031992871314287186, 0.0119246831163764, 0.0516471303999424, 0.02997414581477642, -0.014705738984048367, 0.06056629493832588, 0.06015906482934952, 0.027592448517680168, -0.006265679839998484, 0.046655964106321335, -0.06694179028272629, -0.08326944708824158, -0.007880346849560738, 0.01434989646077156, 0.012082390487194061, 0.05171551555395126, -0.02300257235765457, 0.017150983214378357, 0.012272261083126068, 0.02760220877826214, 0.015464115887880325, 0.003154922043904662, -0.01754806563258171, 0.0016384755726903677, 0.15792274475097656, 0.007692401297390461, -0.026467720046639442, -0.0215997863560915, -0.046392735093832016, 0.029360391199588776, 0.04285730421543121, -0.017301728948950768, -0.079083651304245, 0.008767884224653244, 0.03988746553659439, 0.0630904957652092, -0.009523721411824226, -0.04004187136888504, -0.01649702899158001, -0.039172377437353134, -0.009578978642821312, -0.047913700342178345, 0.013609150424599648, 0.0315772145986557, -0.08516053110361099, -0.05481090769171715, -0.007218250073492527, -0.015580099076032639, -0.061810314655303955, 0.010199462063610554, -0.03189452737569809, -0.03382325544953346, -0.022223489359021187, 0.030704721808433533, -0.0029433222953230143, -0.038230862468481064, 0.0010537186171859503, 0.056293684989213943, 0.04328570142388344, 0.016382833942770958, 0.006148060783743858, -0.046050023287534714, -0.0071887485682964325, -0.028552040457725525, -0.060245562344789505, -0.0315871424973011, -0.01639384962618351, 0.01869862712919712, 0.028508376330137253, -0.012766496278345585, -0.028178390115499496, -0.04694250226020813, 0.04689062386751175, -0.04043759033083916, 0.01776839606463909, 0.0013097339542582631, 0.009685704484581947, -0.006427648942917585, -0.03369196504354477, 0.050466377288103104, 0.04146990180015564, -0.005191829986870289, 0.02590061165392399, -0.01420062780380249, 0.06372885406017303, 0.0322837233543396, -0.05153164640069008, 0.05446038022637367, 0.03132016584277153, -0.06913706660270691, -0.026133961975574493, -0.030696753412485123, 0.035492729395627975, -0.028969712555408478, -0.05169631913304329, 0.0026080922689288855, 0.024676254019141197, 0.013093152083456516, 0.00855603814125061, -0.029227755963802338, -0.061161331832408905, -0.014066476374864578, -0.3534477651119232, -0.020764393731951714, -0.004552179481834173, -0.013305244036018848, 0.025374922901391983, -0.05754510313272476, 0.013640135526657104, -0.028177497908473015, -0.055497605353593826, 0.02136046439409256, 0.05495341867208481, -0.04048413410782814, 0.02863921970129013, -0.07855832576751709, 0.006367306690663099, 0.019437342882156372, -0.04347694292664528, -0.07570521533489227, -0.050805240869522095, 0.033733069896698, 0.025130711495876312, 0.00509999506175518, -0.006041555665433407, -0.06853166222572327, 0.02310250699520111, -0.014869684353470802, 0.0970105230808258, -0.0048013711348176, 0.12922140955924988, -0.039161670953035355, 0.06068617105484009, 0.005786155816167593, -0.009852619841694832, -0.09673597663640976, -0.04222938418388367, -0.01583804003894329, -0.014106265269219875, 0.0019673474598675966, 0.022352369502186775, -0.005075482651591301, -0.031421612948179245, 0.02083957940340042, -0.061411820352077484, -0.024063531309366226, -0.030750662088394165, -0.005689122714102268, -0.023577069863677025, -0.05791959911584854, -0.019292982295155525, 0.08286534249782562, -0.0039805276319384575, 0.00952878873795271, 0.02903655171394348, 0.05539502575993538, 0.0020887251012027264, -0.030393660068511963, -0.020069817081093788, 0.022739151492714882, -0.02810383215546608, 0.0005212047835811973, 0.03899015858769417, 0.045467548072338104, 0.03411344066262245, -0.035812146961688995, 0.003939779940992594, 0.04024374112486839, -0.0031456337310373783, -0.013075550086796284, 0.04320638254284859, -0.033883459866046906, -0.05056235194206238, 0.13196521997451782, -0.01668762043118477, -0.004861889407038689, 0.010276269167661667, 0.05176739767193794, -0.016235578805208206, -0.01194269210100174, 0.005709279794245958, -0.02057483047246933, 0.04612221568822861, -0.005429722368717194, 0.03986610844731331, -0.02618899941444397, -0.0018003552686423063, 0.033238012343645096, -0.034787893295288086, 0.0076526678167283535, 0.025409113615751266, -0.02541680820286274, -0.014727897010743618, -0.007983955554664135, 0.005944715812802315, -0.06557774543762207, 0.07617911696434021, -0.026064913719892502, -0.26840776205062866, 0.011814667843282223, 0.08086445927619934, 0.06087193638086319, -0.013437257148325443, 0.009281400591135025, 0.04335736855864525, -0.034202780574560165, 0.013998204842209816, 0.05102318152785301, 0.0038255942054092884, 0.0424964502453804, -0.020968372002243996, -0.013665704056620598, 0.041856035590171814, -0.006002228241413832, 0.06128719821572304, 0.017124399542808533, 0.00947707798331976, 0.019311469048261642, 0.019522259011864662, -0.030292656272649765, 0.17523972690105438, 0.004234012216329575, 0.01875303126871586, 0.014860849827528, 0.012921231798827648, 0.04749557375907898, 0.0925004854798317, 0.019871339201927185, 0.025848722085356712, -0.018963437527418137, 0.09063079953193665, 0.00250754551962018, 0.05838586762547493, -0.09664326906204224, -0.0009040481527335942, 0.059424471110105515, 0.02935577929019928, -0.013720679096877575, 0.0030991975218057632, 0.01663825660943985, -0.055392540991306305, -0.0003391578502487391, 0.06696154177188873, 0.021561171859502792, 0.01548726949840784, -0.09114405512809753, -0.029390661045908928, 0.005190534982830286, -0.04876159504055977, -0.017146136611700058, 0.02386511117219925, 0.014354875311255455, -0.004208036232739687, 0.04736887663602829, 0.022193873301148415, -0.021669238805770874, -0.02579779177904129, 0.02326037734746933, 0.03102825954556465, -0.0380730926990509, 0.10666383802890778, 0.012345273047685623, 0.017791511490941048 ]
[ -0.0007806795183569193, -0.020263472571969032, -0.0067266239784657955, 0.03627918288111687, 0.032491929829120636, -0.02104409784078598, 0.03622818738222122, 0.04297814145684242, 0.014091520570218563, -0.0073997159488499165, -0.02238312177360058, 0.00696180947124958, -0.007861187681555748, 0.008056503720581532, 0.012466066516935825, 0.000970768800470978, -0.017728017643094063, -0.02567005343735218, -0.006687333807349205, -0.0004551401943899691, 0.019803578034043312, 0.036478254944086075, 0.03262850269675255, -0.018653590232133865, 0.004565790761262178, -0.005769428797066212, -0.026072029024362564, -0.006426365114748478, 0.03304039686918259, -0.1311645805835724, 0.013172648847103119, -0.008191564120352268, -0.019041113555431366, -0.017899852246046066, 0.0147300586104393, -0.023732200264930725, 0.02830938622355461, -0.03059760108590126, -0.053973231464624405, 0.024716757237911224, 0.0010256419191136956, -0.008975904434919357, 0.010126807726919651, 0.04224046692252159, -0.026568427681922913, 0.008817148394882679, -0.017369650304317474, -0.014502408914268017, -0.030039597302675247, 0.004738694056868553, -0.05088410526514053, -0.008827588520944118, -0.040771495550870895, 0.002814903389662504, 0.014817072078585625, -0.03521164879202843, 0.002926003420725465, 0.0020314957946538925, -0.02758483774960041, -0.03852254897356033, -0.008793379180133343, -0.029274431988596916, -0.0520186722278595, -0.030745260417461395, 0.012463648803532124, 0.0009650852298364043, -0.016819363459944725, 0.03160000964999199, 0.011799114756286144, 0.013190200552344322, -0.03647493198513985, 0.032416488975286484, -0.01817396655678749, 0.009940391406416893, -0.022993532940745354, -0.012593594379723072, 0.022361645475029945, 0.01602480746805668, 0.021230580285191536, -0.009991424158215523, -0.006672834977507591, 0.019314905628561974, 0.018350830301642418, 0.008886804804205894, -0.0007478927727788687, 0.01723511889576912, 0.03080521710216999, -0.005962302442640066, 0.03239567205309868, 0.004242928232997656, -0.05945233628153801, 0.0077933319844305515, 0.02277962490916252, -0.008805069141089916, -0.0834428071975708, 0.0074826572090387344, 0.020610244944691658, -0.015150383114814758, 0.005136747378855944, 0.8128468990325928, -0.021572133526206017, 0.040267281234264374, 0.024451885372400284, -0.011320428922772408, -0.005222736392170191, -0.03103788197040558, 0.005614712834358215, 0.05337059125304222, 0.04441040754318237, -0.0731591209769249, 0.02609816938638687, 0.02476540207862854, 0.040786709636449814, 0.002440685871988535, 0.03765422850847244, 0.0011260228930041194, -0.019400984048843384, -0.025069646537303925, -0.007207199931144714, 0.04144040495157242, 0.005035222973674536, -0.010923974215984344, 0.013230151496827602, 0.021488308906555176, 0.007025003898888826, -0.15817083418369293, 0.06110011786222458, -7.207607529572182e-33, 0.031161684542894363, -0.029532575979828835, -0.011303632520139217, 0.031543366611003876, 0.04399213567376137, -0.025307945907115936, 0.049891144037246704, 0.03572090342640877, -0.033841077238321304, -0.0619707815349102, -0.002509233308956027, -0.054692722856998444, -0.035730764269828796, 0.0010365840280428529, 0.04678228124976158, -0.037964873015880585, 0.005283765494823456, 0.036052435636520386, 0.0003940674941986799, 0.03131178021430969, 0.06624867767095566, 0.03194284066557884, 0.030852941796183586, 0.008147045038640499, -0.02266557887196541, 0.028792355209589005, 0.0021129027009010315, -0.016188213601708412, 0.002021542750298977, -0.03966693952679634, 0.002131963614374399, 0.004826114978641272, -0.014481163583695889, -0.06299902498722076, 0.035209670662879944, -0.05829470977187157, -0.04244881123304367, 0.01856015808880329, 0.003352683037519455, -0.030280448496341705, -0.047872394323349, 0.03038785047829151, -0.05184515193104744, 0.0004554323386400938, -0.018429512158036232, -0.024960696697235107, 0.007314604707062244, 0.03685475140810013, -0.008922272361814976, 0.014628760516643524, 0.03521836921572685, 0.020433049649000168, 0.0056478348560631275, 0.012752200476825237, 0.006805394310504198, -0.004262574017047882, -0.021438656374812126, -0.0016322428127750754, 0.014179452322423458, 0.00046612779260613024, 0.04836227372288704, 0.017707839608192444, -0.009825890883803368, 0.029260892421007156, 0.008289664052426815, -0.01197829283773899, 0.04752199724316597, 0.0012712071184068918, 0.03946302831172943, 0.003112941747531295, -0.04087243974208832, -0.027915487065911293, -0.0353526771068573, -0.044150348752737045, 0.009615310467779636, 0.010008546523749828, 0.006769710220396519, -0.035575982183218, -0.007376149762421846, 0.055104006081819534, -0.005032927263528109, -0.0012101959437131882, 0.007146921474486589, -0.04250209778547287, -0.027741193771362305, 0.00011043911217711866, 0.02416512928903103, -0.04468434303998947, -0.03162989765405655, 0.04962552711367607, 0.039877329021692276, 0.007752587553113699, 0.007407688070088625, -0.04783660173416138, -0.024764589965343475, 7.574242013541745e-33, 0.01589832454919815, 0.006594203878194094, -0.021881625056266785, 0.002595005091279745, -0.011918554082512856, -0.011527618393301964, 0.004358294419944286, 0.028076916933059692, 0.0026730794925242662, 0.01749347895383835, -0.03165300190448761, 0.032725103199481964, -0.038282301276922226, 0.03562669828534126, 0.06450873613357544, -0.06137814000248909, 0.016140682622790337, -0.02469622530043125, 0.016400150954723358, 0.014956952072679996, -0.0009904085891321301, -0.015016123652458191, 0.02397141233086586, -0.010474924929440022, 0.05954045429825783, 0.07294456660747528, -0.04152262955904007, -0.013839135877788067, -0.007019056938588619, -0.027170194312930107, 0.04473883658647537, 0.013725499622523785, 0.011664338409900665, -0.04718866944313049, -0.01777699589729309, 0.026730958372354507, 0.04350171983242035, 0.014990058727562428, 0.0025506187230348587, 0.012874823994934559, 0.04732983931899071, -0.01599268987774849, -0.0006820564158260822, -0.02674466371536255, -0.00685870973393321, 0.02314658649265766, -0.0367308147251606, -0.010966004803776741, -0.013464021496474743, 0.013790437020361423, 0.016379788517951965, -0.01565028727054596, -0.022449810057878494, 0.009573016315698624, 0.02991703897714615, -0.016371721401810646, 0.006193829234689474, -0.023457609117031097, -0.025626912713050842, -0.023588325828313828, 0.012835217639803886, -0.010300349444150925, -0.023936882615089417, 0.0032859770581126213, -0.02472541481256485, 0.008327311836183071, 0.023019365966320038, 0.0045636603608727455, -0.036043912172317505, -0.01451887283474207, -0.008888828568160534, -0.01837223209440708, -0.005251131486147642, 0.039806872606277466, 0.0026076887734234333, 0.01450976449996233, -0.007467864081263542, 0.012041205540299416, -0.04487872123718262, 0.02675352431833744, -0.007193644531071186, 0.018311413004994392, -0.009118692018091679, -0.00044535959023050964, -0.014833242632448673, -0.020976871252059937, -0.009995224885642529, -0.046441689133644104, 0.01176346093416214, 0.012547580525279045, -0.020453082397580147, -0.06737864762544632, -0.01650138758122921, -0.006975504569709301, 0.013485996052622795, -1.2786719238988553e-8, -0.060174401849508286, 0.004157611168920994, -0.024834483861923218, 0.043238356709480286, 0.021501600742340088, -0.0068096015602350235, -0.03996449336409569, 0.03511941060423851, 0.03283918648958206, 0.008791930042207241, 0.053801827132701874, -0.029191600158810616, 0.03163143992424011, -0.00978880189359188, 0.0508691743016243, -0.057738665491342545, 0.023339487612247467, -0.0541195347905159, 0.015660254284739494, -0.01586507260799408, 0.016292963176965714, 0.018784089013934135, -0.0022705774754285812, 0.0219684187322855, -0.011388645507395267, -0.022569876164197922, 0.05129620060324669, -0.06442209333181381, 0.009850287809967995, -0.014910968951880932, 0.01943867839872837, -0.01619870588183403, -0.0005030350876040757, 0.03934994339942932, -0.012654000893235207, -0.029585862532258034, -0.007483742665499449, 0.04131277650594711, 0.010042049922049046, 0.02198074944317341, 0.007856801152229309, 0.0020722944755107164, 0.02385980822145939, -0.009243933483958244, 0.004771295003592968, -0.0013915388844907284, 0.0038987735752016306, 0.0017384919337928295, -0.004624553490430117, -0.032552994787693024, -0.019837960600852966, 0.023309115320444107, 0.005748557858169079, 0.08060004562139511, -0.017711054533720016, -0.013580207712948322, 0.018126728013157845, -0.04805530235171318, -0.0599244087934494, -0.020532039925456047, 0.042687829583883286, 0.037418998777866364, -0.011294431053102016, -0.012125366367399693 ]
f-the-use-keyword-and-using-function
https://markhneedham.com/blog/2009/12/19/f-the-use-keyword-and-using-function
false
2009-12-19 00:55:19
Coding: An outside in observation
[ "coding" ]
[ "Coding" ]
I've been reading http://cacm.acm.org/magazines/2009/5/24646-api-design-matters[Michl Henning's post on API design] and one thing which he points out is that it's important to drive the design of an API based on the way that it will be used by its clients: ____ A great way to get usable APIs is to let the customer (namely, the caller) write the function signature, and to give that signature to a programmer to implement. This step alone eliminates at least half of poor APIs: too often, the implementers of APIs never use their own creations, with disastrous consequences for usability ____ This is similar to http://butunclebob.com/ArticleS.MichaelFeathers.TheGoldenRuleOfApiDesign[Michael Feathers' Golden Rule of API Design]: ____ It's not enough to write tests for an API you develop, you have to write unit tests for code that uses your API. When you do, you learn first-hand the hurdles that your users will have to overcome when they try to test their code independently ____ When we don't do this we start guessing how we think things might be used and we end up with generic solutions which solve many potential use cases in an average to poor way and none of them in a good way. Henning goes on to say: ____ There are many ways to "pass the buck" when designing an API. A favorite way is to be afraid of setting policy: "Well, the caller might want to do this or that, and I can't be sure which, so I'll make it configurable." The typical outcome of this approach is functions that take five or 10 parameters. Because the designer does not have the spine to set policy and be clear about what the API should and should not do, the API ends up with far more complexity than necessary. ____ What I found interesting while thinking about this is that the underlying idea is to *drive the design from the outside in* which is quite a popular approach in several different areas of software development. == Consumer Driven Contracts My colleague Ian Robinson came up with the idea of http://martinfowler.com/articles/consumerDrivenContracts.html[consumer driven contracts] for describing an effective way for service providers and consumers to work together. The idea here is that since the consumer is going to be using the service they should have more say on its design i.e. the contract is designed with the end use in sight rather than the provider just coming up with something and throwing it over the fence to its consumers who then have to deal with whatever they've been given. == Test Driven Development/Behaviour Driven Development While not the only way that we can drive design from the outside in, test driven development is quite a useful way of achieving this when we do it well. We might typically start out by writing a functional test to describe the functionality that we're about to create and then move down to smaller more targeted unit tests to drive out the functionality. This approach helps ensure that we only write the code that we need to write to satisfy the bit of functionality being added and from my experience the APIs tend to be more usable than when we just write code without considering how it will be used. This is similar to what Liz Keogh describes in her 'http://lizkeogh.com/2009/07/01/pixie-driven-development/[Pixie driven development]' post where she describes how to use a behaviour driven approach to implement functionality. == Functional Programming I've been playing around with a couple of functional languages for about a year now and I nearly always find that I start out with the high level function and then work out which other functions I need to help me solve the problem at hand. I can't think of a better way to write functional code than this. On a few occasions I've started writing functions without keeping the end in sight and whenever I do this I seem to end up throwing away the functions because they don't contribute to the overall problem I'm trying to solve.
null
null
[ 0.02736961655318737, 0.00872070249170065, 0.006635937839746475, 0.029970776289701462, 0.06716103851795197, 0.024948082864284515, 0.016635242849588394, 0.040063124150037766, 0.01736433431506157, -0.00910539273172617, 0.0064660836942493916, 0.007029133848845959, -0.059811193495988846, 0.00991407036781311, -0.0396772064268589, 0.06643344461917877, 0.06741304695606232, -0.0057103377766907215, 0.03362562879920006, -0.0007544251275248826, 0.03604051098227501, 0.053445130586624146, 0.02197140082716942, 0.02204134128987789, 0.02017662301659584, 0.019819147884845734, -0.003521935548633337, 0.010556160472333431, -0.06477393209934235, -0.002096841810271144, 0.04042763262987137, 0.002342048566788435, -0.010263594798743725, -0.01451880019158125, -0.005911848042160273, -0.01910526119172573, -0.027445102110505104, 0.011213153600692749, 0.020669301971793175, 0.034274812787771225, -0.04831426963210106, 0.030359311029314995, -0.00930308923125267, 0.013947851955890656, -0.04257219284772873, -0.004122672602534294, -0.050200723111629486, 0.00607550423592329, -0.014834359288215637, -0.00482266116887331, -0.0525885708630085, 0.03832649439573288, -0.03784412145614624, 0.01409431267529726, 0.004857489839196205, 0.04744180291891098, 0.01819606125354767, -0.0790724828839302, -0.0012359799584373832, -0.05772173032164574, 0.003022935939952731, -0.015827467665076256, 0.028253698721528053, 0.023768065497279167, 0.03142939880490303, 0.003687256947159767, -0.018384693190455437, 0.03956709802150726, -0.050148073583841324, -0.008372713811695576, -0.03866347298026085, -0.014428574591875076, -0.018649961799383163, -0.015401430428028107, -0.01192194689065218, -0.05359220504760742, -0.007186912465840578, 0.06517496705055237, 0.018654342740774155, 0.02831331454217434, -0.01727966032922268, 0.036098334938287735, 0.03076586313545704, 0.02356657013297081, -0.0008515448425896466, -0.05213413015007973, -0.0063101183623075485, -0.011633492074906826, -0.04278821870684624, 0.059748709201812744, 0.04003383219242096, -0.05590452998876572, 0.01533298660069704, 0.03567260876297951, -0.021343931555747986, 0.013458487577736378, 0.02516218088567257, 0.0023107549641281366, -0.011969885788857937, 0.0026075358036905527, -0.024153457954525948, -0.0287418682128191, -0.0012651673750951886, 0.0040000141598284245, -0.06657134741544724, -0.019361309707164764, -0.012161149643361568, -0.018340395763516426, 0.003936598543077707, 0.00880110077559948, -0.03315633535385132, 0.010092741809785366, -0.007030111271888018, -0.003073457395657897, -0.05281265452504158, 0.07276587933301926, 0.003224507439881563, -0.052864156663417816, -0.0074512469582259655, 0.02748222090303898, 0.06949380040168762, 0.04472744092345238, -0.0000531117657374125, 0.06853991746902466, 0.024332212284207344, 0.014995768666267395, -0.0180851761251688, 0.060183580964803696, 0.0007064560195431113, -0.06152229756116867, -0.01679890975356102, 0.039806727319955826, -0.027378670871257782, -0.014752589166164398, 0.008308843709528446, -0.008890852332115173, -0.004163648001849651, -0.002468707738444209, 0.03673161193728447, 0.02574395388364792, -0.01718929223716259, -0.055548861622810364, 0.0067369076423347, -0.009551742114126682, 0.029273677617311478, 0.018206490203738213, 0.019072989001870155, -0.0196109376847744, -0.029758242890238762, 0.001106038922443986, 0.018819933757185936, 0.04808975011110306, 0.0170967448502779, -0.0289610642939806, 0.0217384435236454, 0.062040671706199646, 0.013487360440194607, 0.010712053626775742, -0.010564000345766544, 0.0330524705350399, 0.02617216482758522, 0.024701779708266258, 0.015128963626921177, 0.012735770083963871, 0.006655887234956026, -0.007809110917150974, 0.012315862812101841, 0.07236051559448242, 0.008349413052201271, 0.00649115489795804, -0.07370808720588684, -0.05522484704852104, 0.04147691652178764, -0.033663149923086166, -0.009054120630025864, 0.027162019163370132, 0.08866536617279053, 0.017407739534974098, 0.044038496911525726, 0.022664114832878113, -0.08019733428955078, 0.04977837949991226, 0.01873762719333172, -0.008295858278870583, 0.0030612857080996037, -0.024987539276480675, 0.08372839540243149, 0.02510036528110504, -0.012799807824194431, 0.013296794146299362, -0.05954282358288765, -0.06528040766716003, -0.027844009920954704, -0.016844796016812325, 0.05645497888326645, -0.014855672605335712, -0.010476886294782162, 0.07591959834098816, 0.0180593803524971, 0.06270702928304672, 0.012074164114892483, 0.0039108311757445335, 0.028252573683857918, -0.052868347615003586, -0.03905913233757019, 0.027770651504397392, 0.05603811889886856, -0.023251201957464218, -0.04311326518654823, 0.012419160455465317, -0.00710046011954546, -0.022209422662854195, 0.05621906742453575, -0.03743644803762436, 0.014880447648465633, -0.017176346853375435, 0.058704640716314316, -0.01373088825494051, 0.04377438500523567, -0.0599069818854332, 0.010180141776800156, 0.007083284202963114, -0.019541120156645775, 0.03556912764906883, -0.008916620165109634, 0.12538617849349976, 0.05053286626935005, -0.05601034685969353, -0.02117985114455223, 0.02627953700721264, 0.034441981464624405, -0.038571182638406754, -0.008577710017561913, -0.034886207431554794, -0.02355889417231083, 0.012960037216544151, -0.059767428785562515, -0.004583783447742462, 0.0207518357783556, -0.039282817393541336, 0.004627004731446505, 0.0717674121260643, -0.028485670685768127, 0.04977182298898697, -0.022031214088201523, -0.005000840872526169, -0.02473052777349949, -0.025521794334053993, -0.05399324372410774, 0.022329483181238174, -0.0077603827230632305, -0.007517219055444002, 0.051776543259620667, -0.020197968930006027, -0.03168215602636337, -0.01813679188489914, -0.03236948698759079, 0.03224143385887146, 0.04733508452773094, 0.05978850647807121, -0.010621963068842888, 0.05230792611837387, -0.011968938633799553, 0.013477958738803864, -0.0009647061815485358, -0.06439350545406342, 0.004406484309583902, -0.0007624055724591017, 0.003936605527997017, 0.04742727056145668, 0.01412804052233696, 0.027325939387083054, 0.027418922632932663, -0.007151390891522169, -0.023502197116613388, 0.007420479319989681, 0.03542804345488548, 0.0014900832902640104, -0.020971160382032394, -0.015613439492881298, -0.017748462036252022, 0.0546695813536644, -0.04655226692557335, -0.03507592901587486, 0.010828942060470581, -0.06045550853013992, 0.06148518621921539, -0.08968228846788406, -0.05199292674660683, -0.010844352655112743, 0.041222747415304184, 0.05463841184973717, -0.020071405917406082, 0.029124243184924126, 0.07076632976531982, 0.015258964151144028, -0.013932663947343826, -0.006195645313709974, -0.006247555371373892, 0.03680364415049553, 0.001647213357500732, -0.006356665398925543, 0.045007068663835526, 0.00020612093794625252, 0.010556208901107311, -0.05401844158768654, 0.03256919980049133, 0.005754121579229832, -0.2779814302921295, 0.0168441329151392, 0.008279325440526009, -0.015442591160535812, 0.015288922935724258, 0.018521109595894814, -0.00624013552442193, -0.038056839257478714, 0.00785035826265812, 0.031379129737615585, -0.011293204501271248, -0.03023291751742363, -0.03351035714149475, 0.041561055928468704, 0.00031399272847920656, 0.01829749345779419, 0.013470252975821495, -0.03615501523017883, -0.008526726625859737, 0.04937420412898064, -0.010221044532954693, -0.08496426790952682, 0.0010222805431112647, 0.018059296533465385, 0.04409971460700035, 0.02281089499592781, -0.11439985781908035, 0.04917338863015175, -0.04852204769849777, -0.018425708636641502, -0.002407601336017251, -0.0021329668816179037, -0.008182154037058353, -0.03640728443861008, -0.0018072683596983552, 0.004296175204217434, 0.03659037873148918, -0.0024023030418902636, -0.014755814336240292, 0.03419454023241997, -0.012509589083492756, -0.03299613296985626, -0.024653127416968346, 0.017253005877137184, 0.09583106637001038, 0.007465122267603874, -0.08521965891122818, -0.019253389909863472, -0.04224327206611633, 0.05531112477183342, -0.028546005487442017, -0.03404802456498146, -0.008285339921712875, 0.05352604016661644, -0.012972485274076462, -0.027460893616080284, 0.0019688461907207966, -0.017367945984005928, -0.04198167100548744, -0.010535895824432373, 0.007322762161493301, -0.043358538299798965, -0.0028049659449607134, -0.037799566984176636, -0.03217369690537453, -0.06348253786563873, -0.04675617441534996, -0.007265300024300814, 0.08203403651714325, 0.03242134675383568, -0.028141964226961136, 0.027845129370689392, -0.00435581523925066, -0.10817748308181763, 0.011241752654314041, -0.040382612496614456, -0.010657857172191143, -0.006518850568681955, 0.0017482752446085215, 0.03787114843726158, -0.012019663117825985, -0.059544842690229416, 0.019122479483485222, 0.018316354602575302, 0.027679840102791786, -0.018206289038062096, 0.04003522917628288, 0.0020252421963959932, -0.027036363258957863, 0.027049001306295395, 0.05015186592936516, -0.024167299270629883, -0.03952232748270035, -0.03228839486837387, 0.006874202284961939, -0.0013245276641100645, 0.0451946035027504, 0.0005566778709180653, -0.002692355075851083, 0.05164163559675217, 0.006544420961290598, -0.05999273434281349, 0.009463096037507057, -0.015131288208067417, 0.001044505974277854, -0.022510254755616188, -0.04262245446443558, 0.018159043043851852, 0.04200761020183563, 0.03505167365074158, -0.0009201921056956053, -0.03032653219997883, -0.0032798745669424534, -0.05602003261446953, -0.05218210071325302, -0.012864789925515652, -0.007760080508887768, 0.04858602583408356, -0.009429308585822582, -0.01143430545926094, -0.044963862746953964, 0.011815204285085201, 0.013501178473234177, 0.0016509270062670112, -0.05268417298793793, -0.03216811269521713, -0.028492746874690056, 0.006230929400771856, 0.006995433941483498, 0.04028754308819771, -0.00036280244239605963, 0.032099511474370956, 0.011794923804700375, -0.051310133188962936, 0.0012489784276112914, -0.008152272552251816, -0.04611318185925484, 0.0013285486493259668, -0.00420651538297534, -0.025516800582408905, 0.020134976133704185, 0.006555142812430859, 0.020621193572878838, 0.043538957834243774, 0.03231320157647133, -0.006143775302916765, 0.03344811499118805, 0.009980798698961735, 0.023778347298502922, 0.01970003917813301, 0.012247066013514996, -0.07756634056568146, 0.023675942793488503, -0.04797299578785896, -0.024618523195385933, -0.06850076466798782, 0.03273506835103035, -0.01165477279573679, -0.02950386330485344, -0.026367321610450745, 0.002784674521535635, -0.06918195635080338, -0.05520863085985184, -0.0496772900223732, 0.02808869257569313, 0.06188999488949776, -0.025543540716171265, 0.010497020557522774, -0.017737947404384613, -0.030463622882962227, 0.008766751736402512, 0.018596226349473, -0.03012343868613243, 0.02311098761856556, -0.004926460795104504, -0.019865762442350388, -0.026239806786179543, -0.02111608162522316, 0.053316034376621246, -0.005867424421012402, 0.002467305166646838, -0.0278986394405365, 0.025520365685224533, -0.00922023132443428, 0.05029892548918724, 0.002918265527114272, 0.004292965866625309, 0.0057093556970357895, -0.02579360269010067, -0.026980239897966385, -0.04240013286471367, -0.0010115253971889615, 0.010017896071076393, 0.02782650664448738, -0.0299275703728199, -0.06287992745637894, 0.03261005878448486, 0.02541193924844265, 0.017374593764543533, 0.01698852702975273, -0.0031183366663753986, 0.015731604769825935, -0.0390646755695343, 0.029153550043702126, 0.053958144038915634, -0.0653022974729538, 0.009568463079631329, 0.01735338568687439, 0.000607035995926708, 0.02245277352631092, 0.006367512512952089, -0.03960265591740608, -0.020706601440906525, -0.0269333366304636, -0.0183127298951149, -0.048412833362817764, -0.01679880917072296, -0.02078295685350895, 0.005987048149108887, 0.008701530285179615, -0.027299830690026283, -0.015481102280318737, -0.01594151183962822, -0.022592715919017792, -0.02143842913210392, 0.01829088106751442, -0.029048897325992584, -0.005904835183173418, 0.010653932578861713, -0.04808756709098816, 0.028743579983711243, -0.03814534470438957, 0.016528315842151642, 0.03213607519865036, -0.03376506268978119, -0.008334476500749588, -0.04350558668375015, -0.010449358262121677, -0.04035944491624832, 0.07026157528162003, -0.030524929985404015, -0.03767438232898712, -0.05154343694448471, -0.003512982279062271, -0.051241032779216766, 0.01941717602312565, -0.016459830105304718, -0.011178127489984035, 0.018483228981494904, 0.0626530721783638, -0.003557380987331271, 0.01652437448501587, 0.0001325322809861973, -0.006241288967430592, 0.047674763947725296, -0.0536956712603569, -0.012195137329399586, -0.045814912766218185, -0.0562494620680809, -0.010239304974675179, -0.0010655528167262673, 0.02795211598277092, -0.033935412764549255, 0.05107356235384941, 0.024692023172974586, 0.03552011400461197, 0.04107379540801048, -0.0030179626774042845, 0.04627517983317375, -0.05513497814536095, 0.02456246316432953, -0.08390218764543533, 0.03141455352306366, 0.03288550674915314, 0.008998784236609936, -0.0272561926394701, -0.006863436661660671, -0.054744381457567215, 0.07155520468950272, -0.06448891758918762, -0.011338549666106701, 0.03378763049840927, 0.008835655637085438, -0.02763659879565239, 0.015581120736896992, -0.07756255567073822, 0.010771227069199085, 0.03733902424573898, -0.03961838409304619, -0.025545185431838036, -0.01003463938832283, 0.0631728395819664, 0.018802644684910774, 0.027028478682041168, -0.031072251498699188, -0.010311619378626347, 0.07095716893672943, -0.004330193158239126, 0.01179428119212389, 0.04140053689479828, -0.015664655715227127, 0.03577282652258873, 0.023476187139749527, 0.0110221728682518, 0.001180049730464816, 0.024082036688923836, -0.003567017149180174, -0.05675731599330902, 0.02996412105858326, 0.0046370066702365875, -0.03527893126010895, -0.0526869110763073, 0.06625554710626602, 0.017575712874531746, -0.04191811755299568, -0.050714876502752304, 0.02288598194718361, -0.057296015322208405, -0.014316210523247719, -0.01232947502285242, -0.032785043120384216, -0.029087664559483528, 0.051463961601257324, -0.007272942923009396, 0.008126727305352688, 0.06596850603818893, -0.008476287126541138, -0.0219721719622612, -0.027394358068704605, 0.09180975705385208, 0.07352928072214127, 0.052980631589889526, 0.0036924306768924, 0.06333459913730621, -0.006541925948113203, -0.03969896584749222, 0.012544509954750538, 0.006430398672819138, -0.02562827244400978, -0.02372041903436184, 0.024015681818127632, 0.06277703493833542, -0.006128605455160141, 0.06065525487065315, -0.01353321224451065, -0.007164201233536005, -0.006536433007568121, 0.024253567680716515, 0.01864566095173359, 0.08324702829122543, 0.005868567619472742, 0.02504374086856842, -0.00955784972757101, -0.05427400395274162, 0.029531311243772507, -0.010778747498989105, -0.030407415702939034, 0.036910250782966614, -0.0009943433105945587, 0.031080201268196106, 0.020266860723495483, 0.03911004215478897, 0.08157691359519958, -0.03468655049800873, -0.004539120011031628, 0.0049381498247385025, 0.03790631145238876, 0.004329843446612358, -0.013362490572035313, -0.03916030377149582, -0.015547308139503002, -0.013582251965999603, -0.021566666662693024, -0.014232056215405464, -0.0005764614325016737, -0.011233535595238209, 0.07250592112541199, -0.015877000987529755, -0.020713260397315025, 0.015504149720072746, 0.012771188281476498, -0.046177033334970474, -0.043749719858169556, -0.05844879895448685, -0.03337595611810684, -0.05367971211671829, -0.03708641231060028, 0.02003062330186367, -0.008620942011475563, -0.056278906762599945, -0.03515726700425148, -0.0016134987818077207, -0.0101254191249609, 0.04629357159137726, -0.05840297415852547, -0.043453000485897064, 0.028961610049009323, 0.016522428020834923, 0.03072088025510311, 0.005574331618845463, 0.05310586467385292, 0.009905559942126274, -0.010246354155242443, -0.043376579880714417, -0.007425979245454073, 0.02627957984805107, 0.025819050148129463, 0.02341456152498722, -0.06832608580589294, 0.01726989634335041, 0.013772689737379551, 0.004417267628014088, -0.07927799224853516, 0.018229562789201736, -0.002155096037313342, 0.011660988442599773, 0.08052396029233932, -0.008799864910542965, 0.012276284396648407, -0.030895283445715904, -0.008611965924501419, 0.008243454620242119, 0.010479754768311977, 0.03778659552335739, -0.0054932767525315285, 0.0954250767827034, 0.013930704444646835, -0.027581259608268738, -0.019497686997056007, -0.0015852615470066667, -0.02434750273823738, 0.013323741964995861, -0.04144567623734474, -0.026768071576952934, -0.010250330902636051, -0.06871899962425232, -0.002594179939478636, 0.02012495882809162, -0.029380254447460175, -0.0211604256182909, 0.025363463908433914, 0.032325733453035355, -0.03466793894767761, 0.006771821994334459, -0.05758274719119072, 0.04097669571638107, -0.010192293673753738, -0.0038133838679641485, 0.011052598245441914, 0.0404164120554924, -0.013961145654320717, 0.006630515214055777, 0.019742215052247047, -0.046713363379240036, -0.021718522533774376, 0.004616009537130594, 0.04586712643504143, 0.030221063643693924, -0.021037977188825607, -0.006688205525279045 ]
[ -0.10921923816204071, -0.0209329966455698, -0.049240678548812866, -0.04005277901887894, 0.018442997708916664, -0.023874053731560707, -0.005159881431609392, 0.04395008832216263, -0.005424362141638994, -0.015426049008965492, -0.027352765202522278, 0.015510124154388905, 0.003918220289051533, -0.033486925065517426, 0.05120278522372246, -0.01205113623291254, 0.020689019933342934, -0.0592496357858181, 0.0040573482401669025, 0.019066546112298965, 0.035058341920375824, -0.01781318709254265, -0.03211256489157677, -0.04156619682908058, -0.018918843939900398, 0.05486270412802696, 0.020334400236606598, -0.015306377783417702, 0.022770723327994347, -0.18172229826450348, 0.005854305345565081, 0.03631275147199631, 0.03701663762331009, -0.019537433981895447, -0.0011850412702187896, 0.03842707350850105, 0.028068840503692627, 0.008880749344825745, -0.004115726798772812, 0.029054876416921616, 0.019266339018940926, 0.030925150960683823, -0.0330548994243145, -0.01427523884922266, 0.01123873796314001, -0.0021898450795561075, -0.021475432440638542, -0.01427371334284544, -0.0634772777557373, 0.00250662281177938, -0.044610995799303055, -0.0158300269395113, -0.023325499147176743, -0.010984987020492554, 0.010492678731679916, 0.029217442497611046, 0.010092549957334995, 0.10105360299348831, -0.0005141536821611226, 0.015176641754806042, 0.029909899458289146, -0.054877422749996185, -0.1365286409854889, 0.10134350508451462, 0.0317516028881073, 0.07690159976482391, -0.05166903883218765, -0.009808564558625221, -0.023183168843388557, 0.09897036850452423, 0.011936449445784092, -0.04343995824456215, -0.036087632179260254, 0.022186052054166794, 0.046227939426898956, 0.008853220380842686, 0.010730873793363571, 0.022145651280879974, 0.05996815115213394, -0.039090048521757126, -0.050259437412023544, -0.028368256986141205, -0.018763305619359016, 0.015042886137962341, -0.03210204094648361, 0.015476313419640064, 0.0068131606094539165, 0.038942717015743256, 0.07266789674758911, 0.014800701290369034, 0.027187712490558624, -0.028499513864517212, 0.013642466627061367, 0.006447893101722002, -0.08269248902797699, 0.007497270125895739, -0.010880217887461185, -0.0006977992015890777, -0.07608774304389954, 0.41572305560112, -0.03156428039073944, -0.04455610364675522, 0.0448942631483078, 0.015375894494354725, -0.02872072346508503, -0.01587696187198162, -0.006534191779792309, -0.05420880764722824, 0.013672374188899994, -0.026359301060438156, -0.022138813510537148, 0.04882096126675606, 0.019221557304263115, -0.03150695934891701, -0.004956641234457493, 0.015245819464325905, -0.018917148932814598, 0.04640572890639305, 0.016371704638004303, -0.029302608221769333, -0.011649765074253082, 0.009388270787894726, 0.007263450883328915, 0.04296666383743286, -0.02900341898202896, -0.0010057298932224512, 0.04813573881983757, 0.05292315408587456, -0.012146657332777977, 0.01924251578748226, 0.0456199012696743, -0.04356542229652405, -0.06557346880435944, 0.00305943307466805, 0.015284305438399315, 0.023182418197393417, 0.0006323657580651343, 0.0017048553563654423, -0.0036272022407501936, 0.06728411465883255, 0.00930555909872055, 0.0337979681789875, 0.02288023941218853, -0.021004365757107735, -0.010147941298782825, 0.10115595161914825, 0.06404030323028564, -0.0024776379577815533, -0.032513704150915146, -0.046166397631168365, 0.024335650727152824, 0.049385249614715576, 0.000673088594339788, -0.0508091002702713, 0.019568828865885735, 0.023639807477593422, 0.08613721281290054, 0.004301830660551786, -0.06649158149957657, 0.00776913994923234, -0.005911843851208687, -0.01419838797301054, -0.039349839091300964, 0.059168897569179535, 0.015992028638720512, -0.11771538108587265, 0.005048769526183605, 0.016386134549975395, 0.017346996814012527, -0.056577108800411224, -0.01604463905096054, 0.039213187992572784, -0.03883352503180504, 0.0002757719485089183, 0.03374408558011055, -0.011089813895523548, -0.07866378128528595, 0.01705200783908367, 0.024824973195791245, -0.022287476807832718, -0.012872742488980293, 0.018287405371665955, -0.031302500516176224, -0.018785813823342323, -0.02468528226017952, -0.0705794021487236, -0.016936590895056725, -0.016498813405632973, -0.029747357591986656, -0.009404726326465607, -0.008021039888262749, 0.0018075044499710202, -0.07264132797718048, 0.08437701314687729, -0.03328169137239456, -0.03860790655016899, 0.021458951756358147, 0.0008112662471830845, -0.03597939759492874, 0.002068668371066451, -0.04419269785284996, 0.024052783846855164, -0.02283804677426815, 0.01687941513955593, -0.04426122456789017, 0.034306034445762634, 0.054648738354444504, -0.04465851932764053, 0.07370081543922424, 0.05557723715901375, -0.013472887687385082, -0.008890499360859394, -0.013675546273589134, 0.03527899831533432, 0.0027543597389012575, -0.03638485446572304, 0.037462662905454636, 0.03202885016798973, -0.00013119408686179668, -0.004118470475077629, -0.024617306888103485, 0.011171495541930199, -0.03295142203569412, -0.3436354398727417, -0.059552740305662155, -0.04455012455582619, 0.007611572276800871, -0.00045243717613629997, -0.09158588200807571, 0.007231602445244789, 0.00004819775131181814, -0.05487215518951416, 0.01715897023677826, 0.08452888578176498, -0.026870135217905045, -0.003179019782692194, -0.05407101660966873, -0.007169827353209257, 0.01432044804096222, -0.05599189177155495, -0.04010019451379776, -0.05532480403780937, 0.013403510674834251, -0.024466320872306824, 0.0004715534741990268, 0.01175783108919859, -0.07484721392393112, 0.00694257952272892, -0.026065541431307793, 0.09264808148145676, -0.016206901520490646, 0.06634782999753952, -0.03836383670568466, 0.05993012338876724, -0.030831746757030487, 0.01670687459409237, -0.09020999073982239, -0.017765948548913002, 0.018657052889466286, 0.001980452798306942, -0.006386617198586464, 0.05355522036552429, -0.041396331042051315, -0.05929898843169212, 0.030823541805148125, -0.04672907292842865, -0.026854850351810455, -0.0319841168820858, 0.0004994341870769858, -0.06318730860948563, -0.024681877344846725, -0.039652708917856216, 0.06824382394552231, -0.00583327142521739, 0.02239784598350525, 0.01300988532602787, 0.008657307364046574, -0.04560420662164688, -0.03968077152967453, -0.05717143416404724, 0.01569102704524994, 0.01796991564333439, 0.02161969617009163, -0.015479239635169506, 0.04999285936355591, 0.0288853719830513, -0.04450521618127823, 0.02655450999736786, -0.01608492247760296, 0.009371798485517502, 0.010803118348121643, 0.034990567713975906, -0.014923951588571072, -0.024094022810459137, 0.12535160779953003, -0.027448002249002457, -0.017176859080791473, 0.0399615615606308, 0.039021436125040054, 0.017952362075448036, 0.0037684282287955284, 0.03416730463504791, -0.013737013563513756, -0.0066086240112781525, 0.016852594912052155, 0.03144633024930954, -0.052507225424051285, 0.003793450305238366, 0.049186255782842636, -0.022522740066051483, -0.030404789373278618, 0.02890985645353794, -0.02835245616734028, -0.013822692446410656, 0.00830700434744358, -0.026597704738378525, -0.05054882913827896, 0.07453230023384094, 0.014207925647497177, -0.22866396605968475, 0.021330945193767548, 0.0629943460226059, 0.06311933696269989, -0.02022649720311165, 0.04910476133227348, 0.03887282684445381, -0.06590896844863892, -0.010809268802404404, 0.015175782144069672, 0.02702004462480545, 0.04024416580796242, 0.015243948437273502, 0.009376229718327522, 0.08648344874382019, 0.0075074126943945885, 0.08793625980615616, -0.011362633667886257, 0.025002900511026382, -0.025713883340358734, 0.012619227170944214, 0.021798791363835335, 0.19104240834712982, -0.010064821690320969, 0.021944956853985786, 0.04143272712826729, 0.012148742564022541, 0.04134732484817505, 0.09092429280281067, 0.028027493506669998, 0.02015555091202259, -0.02295454777777195, 0.04476258531212807, 0.013574960641562939, 0.04221392050385475, -0.07307306677103043, -0.01196205522865057, -0.03855188190937042, -0.016092471778392792, 0.007068344857543707, 0.028498424217104912, 0.007189001422375441, 0.0008878562948666513, 0.024309147149324417, 0.06963219493627548, 0.03162499517202377, -0.05417708307504654, -0.04635166376829147, -0.0397447906434536, -0.00241206050850451, -0.05017620325088501, -0.09146697074174881, -0.01104567851871252, -0.01676291413605213, 0.024235228076577187, 0.05750775337219238, 0.046346500515937805, -0.026763176545500755, -0.02595432847738266, 0.02173854410648346, 0.017743142321705818, -0.011663430370390415, 0.09360659122467041, 0.03807050362229347, 0.051914725452661514 ]
[ -0.02548319101333618, 0.0285340566188097, 0.002243328606709838, -0.028062853962183, -0.0021118868608027697, -0.005284229759126902, -0.006480983924120665, 0.03842542693018913, 0.011431119404733181, 0.001541758538223803, -0.02898329682648182, 0.019065987318754196, 0.02621045894920826, -0.02253841795027256, 0.04028463363647461, -0.011850772425532341, 0.009321861900389194, -0.012840969488024712, 0.014475088566541672, 0.007010134868323803, 0.00707812886685133, 0.034774791449308395, -0.019257061183452606, -0.02425426058471203, -0.030441639944911003, -0.010005748830735683, 0.005129655823111534, -0.012196441181004047, 0.010293149389326572, -0.11065356433391571, -0.017410892993211746, -0.021052025258541107, -0.0076510305516421795, 0.005643776617944241, -0.0042764171957969666, 0.010226147249341011, -0.0020924394484609365, -0.022094281390309334, 0.016993431374430656, -0.009061798453330994, -0.007168665062636137, -0.018051408231258392, -0.029582573100924492, -0.010806634090840816, -0.015782738104462624, 0.0009590787813067436, -0.02128659375011921, -0.021162495017051697, -0.008829835802316666, -0.0003055974084418267, -0.015499369241297245, 0.01380367111414671, -0.027329597622156143, -0.02151837944984436, 0.036469973623752594, -0.03397223725914955, -0.015001784078776836, -0.006518292240798473, -0.02014336548745632, -0.027003830298781395, 0.028344355523586273, -0.009654524736106396, -0.0539558082818985, -0.003995685372501612, -0.04273654520511627, 0.031045617535710335, -0.023537922650575638, 0.004488705657422543, -0.031353436410427094, -0.004559092223644257, -0.0008965084562078118, -0.029000718146562576, -0.020810434594750404, -0.02524391934275627, 0.03875601664185524, -0.008738289587199688, 0.01723429188132286, -0.01932070031762123, 0.027289655059576035, -0.0494169145822525, -0.0289573073387146, 0.024456506595015526, -0.009740120731294155, 0.025745783001184464, -0.0031428427901118994, -0.006121860817074776, 0.017103901132941246, -0.003034641733393073, -0.0034282163251191378, -0.0010210160398855805, 0.007976305671036243, 0.028640929609537125, -0.01459419447928667, -0.008311373181641102, -0.07612188905477524, -0.025970429182052612, 0.0006799364928156137, -0.03375837951898575, -0.00895160436630249, 0.8665839433670044, -0.012719398364424706, 0.026320382952690125, 0.02625684067606926, 0.025455228984355927, 0.017387952655553818, 0.009578150697052479, -0.011781039647758007, 0.0031770917121320963, -0.010447891429066658, -0.021522292867302895, 0.011278043501079082, 0.023562103509902954, 0.019074473530054092, 0.01851913519203663, 0.0414610356092453, 0.010590490885078907, -0.018814783543348312, 0.004698746372014284, 0.01505528949201107, -0.0038535399362444878, 0.02126125805079937, -0.02963145449757576, 0.0082020815461874, -0.005565310828387737, -0.0046930150128901005, -0.1753406524658203, 0.027895767241716385, -9.049137714254347e-33, -0.0028451518155634403, -0.02285677194595337, 0.02594183385372162, 0.010684972628951073, 0.048963762819767, -0.0044640363194048405, 0.05891979858279228, 0.05271904543042183, 0.025219038128852844, -0.029834458604454994, 0.02935413457453251, -0.046680863946676254, 0.004216328263282776, 0.0037369492929428816, 0.03466847538948059, 0.009764612652361393, -0.021588511765003204, 0.03087611310184002, -0.012496523559093475, 0.00960371270775795, 0.006623746827244759, 0.027033761143684387, 0.0055570113472640514, 0.004316106904298067, -0.01120314933359623, 0.023059042170643806, -0.01667621359229088, 0.02288614958524704, 0.0008518242393620312, -0.03068973682820797, -0.03216018155217171, 0.03401097655296326, -0.008693424984812737, -0.00880204513669014, 0.006145072635263205, -0.011011801660060883, -0.020166335627436638, 0.012108937837183475, -0.020904432982206345, -0.026679599657654762, -0.001376157277263701, -0.001763619715347886, -0.04321794584393501, 0.030717402696609497, -0.02927675098180771, 0.01960168033838272, 0.007619120180606842, 0.0366157665848732, 0.01438417099416256, -0.019840188324451447, 0.003073393600061536, 0.04382220655679703, 0.04082569479942322, 0.010821725241839886, -0.0013569475850090384, -0.014348596334457397, -0.010379251092672348, -0.03288460895419121, -0.0043056439608335495, 0.0004992400645278394, 0.006998326629400253, -0.03325304761528969, -0.007801819127053022, 0.02851690538227558, -0.02303636632859707, -0.006446443032473326, 0.0004458070907276124, 0.0003424390160944313, 0.04109031334519386, 0.015728600323200226, -0.020524505525827408, 0.02028629742562771, -0.021423660218715668, -0.006853314116597176, 0.0031845259945839643, 0.0020146463066339493, 0.02894854173064232, 0.009995314292609692, -0.029755283147096634, 0.026761362329125404, 0.025479163974523544, 0.04359068721532822, 0.015705959871411324, -0.01662472076714039, 0.0006245268159545958, 0.02538563497364521, 0.02304515428841114, -0.004862578585743904, -0.0058980416506528854, 0.019689319655299187, 0.018081150949001312, -0.021289851516485214, -0.014583413489162922, -0.022326232865452766, -0.037603847682476044, 8.87892539757131e-33, -0.012602346949279308, -0.036576930433511734, -0.037156496196985245, 0.0076341526582837105, -0.02411504089832306, -0.019894087687134743, 0.013123036362230778, 0.0021663091611117125, -0.025559768080711365, 0.03953948989510536, 0.002241758396849036, 0.011467767879366875, -0.007173510733991861, 0.045045915991067886, 0.02963724546134472, -0.009115559048950672, 0.006573099177330732, -0.019610928371548653, 0.039362743496894836, 0.004436970688402653, 0.035921089351177216, 0.006601956207305193, 0.017944244667887688, -0.009279782883822918, -0.025323642417788506, 0.06387610733509064, -0.06428585201501846, 0.035570621490478516, -0.0022918987087905407, -0.030962388962507248, 0.0003948143857996911, -0.030276624485850334, 0.03522469475865364, 0.00022265657025855035, -0.01598205603659153, 0.015081226825714111, -0.01209701132029295, -0.0011036263313144445, -0.01374088879674673, -0.012756306678056717, 0.009073295630514622, -0.045092880725860596, 0.006859326735138893, 0.0038492472376674414, 0.039793044328689575, -0.022650310769677162, -0.0030017162207514048, -0.033057812601327896, -0.02981707453727722, 0.021165532991290092, 0.029896831139922142, 0.015444612130522728, 0.009189478121697903, 0.017861466854810715, -0.04781914874911308, 0.006857919506728649, -0.0071950252167880535, 0.03353423625230789, 0.022214872762560844, 0.04133632779121399, -0.0028108612168580294, 0.02414010651409626, -0.008070924319326878, -0.011224288493394852, -0.025518639013171196, -0.021681860089302063, 0.007389061618596315, -0.003923844546079636, 0.011864358559250832, -0.022085657343268394, -0.04724328964948654, -0.009936576709151268, 0.004187311045825481, 0.04155735298991203, 0.030393099412322044, -0.001049541519023478, -0.006219277158379555, -0.016411032527685165, -0.014430745504796505, 0.02171424962580204, -0.016626425087451935, -0.024557732045650482, 0.024220913648605347, 0.04515139386057854, -0.03600421920418739, -0.02113218605518341, -0.007073473650962114, 0.012927290052175522, 0.0042466288432478905, 0.04279171675443649, -0.02062600664794445, 0.019351862370967865, 0.011036206968128681, -0.003967868164181709, 0.005889358464628458, -1.4321079433443629e-8, 0.010948879644274712, 0.015275961719453335, 0.006430394947528839, 0.029312536120414734, 0.012023757211863995, 0.0103767653927207, -0.025662297382950783, -0.009080273099243641, -0.016762439161539078, 0.00695823086425662, 0.025082001462578773, -0.01638193614780903, -0.03361076861619949, 0.010669122450053692, -0.00714156124740839, -0.049157414585351944, -0.022838618606328964, 0.003527290653437376, 0.014223908074200153, -0.012175175361335278, -0.03405516594648361, 0.07573041319847107, -0.0006905952468514442, -0.026969317346811295, 0.03928687423467636, -0.008015203289687634, 0.02483154460787773, -0.07010042667388916, -0.004994340240955353, 0.011182698421180248, -0.02374628558754921, -0.033322773873806, -0.03104202076792717, -0.005043784622102976, -0.013168446719646454, -0.01947880908846855, 0.01803964376449585, 0.017615603283047676, 0.027570214122533798, -0.005569811444729567, -0.0033375516068190336, 0.01346596796065569, -0.022172225639224052, -0.007018207106739283, 0.004473158158361912, -0.02790554240345955, -0.01717863418161869, 0.007149131037294865, 0.03598150983452797, -0.00962155032902956, -0.006073949858546257, 0.015965253114700317, 0.01748492754995823, -0.022020114585757256, -0.02095487155020237, -0.03826051950454712, -0.013377200812101364, -0.02279708720743656, -0.011144451797008514, 0.010504385456442833, 0.013957289978861809, 0.04418915882706642, 0.013039013370871544, -0.00514109805226326 ]
coding-an-outside-in-observation
https://markhneedham.com/blog/2009/12/19/coding-an-outside-in-observation
false
2009-12-07 17:05:57
Our obsession with efficiency - Dan North
[ "software-development" ]
[ "Software Development" ]
http://www.oredev.org/[Oredev] have put some of the videos from the conference on http://www.vimeo.com/channels/oredev[Vimeo] and one of my favourites is 'http://www.vimeo.com/7849591[Our obsession with efficiency]' by my colleague http://dannorth.net/[Dan North]. The slides for the talk are available on http://www.slideshare.net/dannorth/the-fallacy-of-efficiency[SlideShare]. In this talk Dan leads from the following statement about efficiency: ____ So here's the thing, I don't believe in efficiency. It's our obsession with efficiency that has got us into the current technology mess, and which has led almost directly to heavy waterfall processes. Efficiency is how you let the big vendors sell their bloated technologies to the poor CIOs. ____ == What did I learn? * Dan spends quite a bit of time explaining how *what we should really care about is effectiveness and not efficiency*. Efficiency is defined as: + ____ the accomplishment of or ability to accomplish a job with a minimum expenditure of time and effort ____ + which makes sense in a way but what tends to happen is that achieving that becomes our goal at the expense of everything else. For example adhering to the http://en.wikipedia.org/wiki/Don't_repeat_yourself[DRY principle] is considered a good thing and not repeating code is efficient. However, if we take that to an extreme then it results in code that is difficult to understand and difficult to change which defeats the purpose of that efficiency. In lean terms we want to look to http://www.markhneedham.com/blog/2009/04/14/lean-big-picture-over-local-optimisations/[favour the big picture over local optimisations] whereby we start to measure our effectiveness rather than efficiency. i.e. we focus on the results rather than the effort. * Later on he points out that *effectiveness is often inefficient* which makes a lot of sense to me. http://www.markhneedham.com/blog/category/pair-programming/[Pair programming] is not an efficient way to get the most code produced - we can do that much more efficiently if we have people working individually. However it allows us to create a much greater shared understanding of the code, reduce the defects and increase the cohesion of that code which is a more important goal overall. The same can be said for something like http://www.markhneedham.com/blog/2009/09/19/set-based-concurrent-engineering-a-simple-example/[set based concurrent engineering] where we work on two solutions simultaneously and then throw one away. It's inefficient but we can delay potentially making the wrong decision so it makes sense to do it. * Dan also suggests that '*you get what you measure*' and lists a series of examples where aiming for a certain target is actually not very effective and doesn't give us what we want anyway. For example if our goal is to have all the tests passing by the end of the month then we may be tempted to comment out failing tests to achieve this. One which I notice quite frequently is http://www.markhneedham.com/blog/2009/11/23/requirements-the-story-points-focus/[aiming for a story point total] which tends to result in reduced communication between business and IT and we end up delivering features that may not have that much value. It might seem to be locally efficient but in the grand scheme of things it's not efficient at all. * There's also some discussion around *the desire for people to be 'busy' all the time* which is quite common from my experience. Dan points out that if we can get to a stage where we have time when we're not busy then we have more time to think about what we're doing and perhaps we can even spend this time innovating. I think the key here is to ensure that we're still doing something which is contributing to the overall system goal rather than not doing nothing at all! There's loads more - it's a very good talk - but these are some of the bits that stand out for me.
null
null
[ 0.04598554968833923, 0.018371041864156723, 0.011677207425236702, 0.05328510329127312, 0.08418804407119751, 0.035333264619112015, 0.013092408888041973, 0.039419978857040405, 0.026833156123757362, -0.03115510754287243, -0.017188386991620064, -0.006911443080753088, -0.053989652544260025, 0.021728243678808212, -0.04729531705379486, 0.057897958904504776, 0.07796701788902283, 0.005945193115621805, 0.03314666822552681, 0.02885725162923336, 0.038544539362192154, 0.0911201536655426, 0.03689802438020706, 0.02237916924059391, 0.03252704069018364, 0.01704748533666134, -0.006531592458486557, -0.0027202207129448652, -0.06745558232069016, -0.024446872994303703, 0.060432031750679016, -0.0003658101486507803, -0.00034330098424106836, -0.007712981663644314, 0.030353857204318047, -0.006857224274426699, -0.01719263568520546, 0.016910512000322342, -0.008488207124173641, 0.021316902711987495, -0.07002586871385574, 0.05111227557063103, -0.02697243168950081, 0.01561056636273861, -0.04498583823442459, -0.007017586845904589, -0.03586212545633316, 0.0011002285173162818, -0.012511053122580051, -0.0008109826012514532, -0.06902439892292023, 0.02850000374019146, -0.00411193585023284, 0.011554834432899952, -0.037268396466970444, 0.04475482925772667, 0.0098352562636137, -0.05293246731162071, -0.018041390925645828, -0.035678498446941376, 0.003902048571035266, -0.023896025493741035, -0.017397312447428703, 0.02491319179534912, 0.04752359166741371, -0.04288069158792496, 0.010237026028335094, 0.03912823274731636, -0.030511194840073586, 0.004044731613248587, -0.02557462453842163, 0.017443973571062088, -0.013048971071839333, 0.011606537736952305, 0.02106369286775589, -0.05961916223168373, 0.003440723055973649, 0.054714154452085495, 0.017457490786910057, 0.03670859336853027, -0.01799805276095867, 0.03300992399454117, -0.0035891677252948284, 0.03830152750015259, -0.04132380709052086, -0.012009838595986366, 0.013049585744738579, -0.023651527240872383, -0.06749521940946579, 0.05706352740526199, -0.010804727673530579, -0.053312432020902634, 0.021707072854042053, 0.03927995264530182, -0.01664399541914463, 0.0015511622186750174, 0.03047281689941883, 0.0176408514380455, -0.002255595987662673, -0.012774989008903503, -0.04786728695034981, -0.03245022892951965, -0.006891842931509018, 0.02022334560751915, -0.05803867429494858, -0.012652475386857986, -0.011783933266997337, -0.013520820066332817, 0.005605069454759359, 0.004250815603882074, -0.02136647142469883, 0.021129868924617767, -0.020823366940021515, 0.0008957711397670209, -0.0741128921508789, 0.056606244295835495, 0.012149037793278694, -0.05271712690591812, -0.007540485356003046, 0.01134450826793909, 0.0582563653588295, 0.03776167333126068, 0.0030872374773025513, 0.06767916679382324, -0.0009107206715270877, 0.0069197784177958965, -0.017750892788171768, 0.05159364268183708, -0.017371755093336105, -0.049209170043468475, 0.0051421248354017735, 0.046406589448451996, -0.03276046738028526, -0.022205058485269547, 0.00248355302028358, -0.01710166409611702, 0.02275993674993515, 0.001518120407126844, 0.035780906677246094, 0.03751076012849808, -0.0074700419791042805, -0.06421110033988953, 0.023440908640623093, 0.029566649347543716, 0.03183349594473839, -0.010734466835856438, -0.0030089470092207193, -0.02316858060657978, -0.03447260335087776, -0.02927470952272415, 0.002759252442047, 0.02468840777873993, 0.03757476806640625, -0.030761294066905975, 0.034637272357940674, 0.10481079667806625, 0.016689782962203026, 0.014572554267942905, -0.009747784584760666, 0.032599836587905884, 0.016167962923645973, 0.029228150844573975, 0.022839216515421867, 0.018320990726351738, 0.016668280586600304, -0.004819244146347046, 0.016247376799583435, 0.05230124294757843, -0.007279347628355026, 0.0004459997871890664, -0.04596668481826782, -0.040518131107091904, 0.047773975878953934, -0.03076140582561493, -0.03550727665424347, 0.05091800540685654, 0.0770128071308136, 0.05440383777022362, 0.03354119509458542, 0.004472379107028246, -0.08420189470052719, 0.029045628383755684, 0.01500765047967434, 0.01885954849421978, 0.030468912795186043, -0.020952092483639717, 0.08084245771169662, 0.017469752579927444, 0.007529410533607006, 0.03461000695824623, -0.06920906156301498, -0.09229028224945068, -0.022032398730516434, -0.03443404659628868, 0.039422933012247086, -0.037289198487997055, 0.01555842999368906, 0.03685011342167854, 0.00798507034778595, 0.05377205088734627, 0.012588033452630043, -0.03054160811007023, 0.01771995984017849, -0.05522921681404114, -0.04331279918551445, 0.05068808048963547, 0.04145522788167, -0.011503678746521473, -0.056815020740032196, 0.0005915346555411816, -0.004101565573364496, -0.024770239368081093, 0.03402044251561165, -0.019464125856757164, 0.023455170914530754, 0.010482026264071465, 0.05401719734072685, -0.035814013332128525, 0.03333008661866188, -0.028409168124198914, 0.002676194068044424, 0.023533815518021584, -0.013922487385571003, 0.03389155492186546, 0.01347661204636097, 0.1100437119603157, 0.07994231581687927, -0.04411645233631134, -0.05191374942660332, 0.04280196875333786, 0.029852157458662987, -0.037879057228565216, -0.018261831253767014, -0.0032695606350898743, 0.0037927052471786737, 0.007271463982760906, -0.0510040745139122, -0.02046772465109825, 0.02025040052831173, -0.047925956547260284, 0.0009250511648133397, 0.038263969123363495, -0.01392435748130083, 0.054850589483976364, 0.006571145262569189, -0.004971179645508528, -0.010653003118932247, -0.0031286277808248997, -0.06481434404850006, 0.011285047046840191, -0.01749720238149166, -0.0029614069499075413, 0.061850372701883316, -0.018284743651747704, -0.01055909413844347, -0.03857993707060814, -0.024780884385108948, 0.02018657512962818, 0.0662892535328865, 0.0674331933259964, -0.0027632396668195724, 0.06397911161184311, -0.011210722848773003, 0.03590264916419983, 0.026266425848007202, -0.05584428459405899, -0.062015678733587265, -0.05907877907156944, -0.0027815448120236397, 0.010862578637897968, 0.014379634521901608, 0.013408543542027473, 0.005034861620515585, 0.0035318955779075623, -0.01043311133980751, -0.018639426678419113, 0.03945157676935196, 0.017493126913905144, -0.0034002799075096846, -0.026941780000925064, -0.014228537678718567, 0.06633596867322922, -0.03650122880935669, 0.005734948441386223, -0.025922177359461784, -0.06432092189788818, 0.03418248891830444, -0.08415878564119339, -0.0183698832988739, -0.005730069242417812, 0.032826997339725494, 0.03529098629951477, 0.0001738599967211485, 0.017087677493691444, 0.052362147718667984, 0.021168220788240433, 0.0037117302417755127, -0.02175825648009777, 0.002824078081175685, 0.04046263173222542, 0.016658900305628777, -0.0035793869756162167, 0.05544973537325859, 0.014451886527240276, -0.022487260401248932, -0.053393688052892685, 0.04925500974059105, -0.03541373834013939, -0.2758050858974457, 0.03656751289963722, 0.03408211097121239, -0.018057122826576233, 0.018205702304840088, -0.01859131269156933, -0.014313483610749245, -0.05734090879559517, -0.016042979434132576, -0.009374094195663929, -0.05132059380412102, -0.03803524374961853, -0.018901092931628227, 0.039892978966236115, 0.010404474101960659, 0.019924761727452278, 0.03793076425790787, -0.02784106135368347, 0.014690090902149677, 0.04525367543101311, -0.01747136190533638, -0.06685341894626617, -0.0052145724184811115, 0.036837100982666016, 0.046667829155921936, 0.048776786774396896, -0.08785022795200348, 0.03818942606449127, -0.06559070199728012, -0.008133276365697384, -0.016216982156038284, 0.009059698320925236, -0.007243127096444368, -0.02846403419971466, -0.0038900491781532764, -0.014876685105264187, 0.04870926961302757, 0.001199066173285246, -0.0033610090613365173, 0.012479507364332676, 0.003484572982415557, -0.028032904490828514, -0.003193792188540101, 0.027817079797387123, 0.059109002351760864, 0.028681855648756027, -0.0757230818271637, -0.015620550140738487, -0.03141356632113457, 0.05848868563771248, -0.02500971220433712, -0.017733674496412277, 0.008609853684902191, 0.05328402295708656, -0.010835954919457436, -0.014245129190385342, -0.00005177068669581786, -0.015201750211417675, -0.026274079456925392, -0.02496700920164585, -0.017864776775240898, -0.019109029322862625, -0.00911039486527443, -0.02565544843673706, -0.004409370478242636, -0.05753375217318535, -0.05306223779916763, -0.013614047318696976, 0.06430952250957489, 0.01349380798637867, -0.03794063627719879, 0.022554349154233932, 0.005327985156327486, -0.10278493911027908, 0.009907174855470657, -0.002194399479776621, -0.017936421558260918, 0.027319958433508873, 0.03317766264081001, 0.05360957980155945, -0.019079117104411125, -0.08035808056592941, 0.037000011652708054, 0.005744782742112875, 0.05028289183974266, -0.029336463660001755, 0.03999016806483269, 0.007859664037823677, 0.00702237943187356, 0.020680533722043037, 0.05215312913060188, -0.016758088022470474, -0.04746571183204651, -0.017070526257157326, 0.02542739361524582, 0.0183411855250597, 0.029977526515722275, 0.005439800210297108, -0.001098465290851891, 0.03760731592774391, -0.019328352063894272, -0.05677376687526703, 0.021715758368372917, -0.017844704911112785, -0.015194526873528957, -0.01963300257921219, -0.046508677303791046, 0.01420743577182293, 0.04247598350048065, 0.02414635941386223, 0.002453641267493367, -0.033127252012491226, 0.0043901605531573296, -0.031666383147239685, -0.03664939105510712, 0.0026993281207978725, -0.011972887441515923, 0.038700416684150696, -0.0005834929761476815, -0.024502163752913475, -0.04317926988005638, 0.00787427183240652, -0.020883217453956604, -0.03038705699145794, -0.059935737401247025, 0.0032522673718631268, -0.0216059572994709, -0.006794707849621773, 0.014553392305970192, 0.03291117772459984, -0.02825884521007538, 0.024053193628787994, 0.013601139187812805, -0.05100402981042862, 0.0067894659005105495, -0.04323467239737511, -0.061215292662382126, -0.02661040984094143, 0.0026988836470991373, -0.021927308291196823, 0.0050026909448206425, 0.019632667303085327, 0.0046362606808543205, 0.024204863235354424, 0.04192178323864937, 0.05144273489713669, 0.028589872643351555, -0.009428602643311024, 0.03371362015604973, 0.007439672015607357, 0.010027986951172352, -0.08178118616342545, 0.00899780448526144, -0.051584962755441666, -0.013012368232011795, -0.03213384747505188, 0.029005812481045723, -0.028559353202581406, -0.02544287219643593, -0.011169863864779472, 0.021244507282972336, -0.02966492995619774, -0.0657886490225792, -0.041144441813230515, 0.04512069746851921, 0.06595689803361893, -0.009616774506866932, 0.016865747049450874, -0.01527636032551527, -0.0024571309331804514, 0.014778313226997852, 0.0031086651142686605, -0.05540229007601738, -0.005534708965569735, 0.026445632800459862, -0.012110203504562378, -0.005206459667533636, 0.001766897737979889, 0.03203560784459114, 0.011572484858334064, -0.004803490824997425, -0.03140116482973099, 0.013150941580533981, -0.0017705439822748303, 0.048951875418424606, -0.006687905639410019, -0.014239107258617878, 0.011929530650377274, -0.0013316173572093248, -0.0203247033059597, -0.05003691464662552, -0.025517864152789116, 0.006516139954328537, 0.0018566736252978444, -0.022089123725891113, -0.07040491700172424, 0.061022765934467316, 0.004921686369925737, -0.0029934728518128395, 0.019595302641391754, -0.006570188328623772, 0.004013409372419119, -0.027867790311574936, 0.002292384160682559, 0.06397133320569992, -0.06905592232942581, -0.017777783796191216, 0.005881940945982933, 0.0017309867544099689, 0.004406601656228304, -0.014269775710999966, -0.02447357587516308, -0.02331346459686756, -0.02389674447476864, 0.01383920107036829, -0.0522569864988327, -0.028381945565342903, -0.022601554170250893, 0.0099568460136652, -0.01842271164059639, -0.0009696074412204325, -0.023385340347886086, -0.03189771622419357, -0.010538619942963123, -0.015869032591581345, 0.006932722870260477, -0.021114157512784004, 0.012934090569615364, 0.014798820950090885, -0.05013963580131531, -0.016540952026844025, -0.023555057123303413, 0.0008087516180239618, 0.03766278550028801, -0.01764931157231331, 0.015829501673579216, -0.01319846324622631, 0.021317660808563232, -0.00037428774521686137, 0.03203529492020607, -0.017479002475738525, -0.014292076230049133, -0.0384301133453846, -0.00823962688446045, -0.0442381389439106, 0.016698967665433884, -0.03420380502939224, 0.00195790221914649, 0.029574016109108925, 0.057672079652547836, 0.0003427669871598482, 0.02134530618786812, -0.01240665465593338, -0.02178148739039898, 0.026080582290887833, -0.09368369728326797, -0.01686483435332775, -0.03526582568883896, -0.04784366488456726, 0.004723472986370325, -0.010054795071482658, 0.011587639339268208, -0.03591366112232208, 0.034324608743190765, 0.010812048800289631, 0.052234869450330734, 0.023396922275424004, 0.009989541955292225, 0.013600143603980541, -0.0711921826004982, -0.000039599639421794564, -0.08610647916793823, -0.04611501842737198, 0.0003301830729469657, 0.018114501610398293, -0.024730609729886055, 0.008797872811555862, -0.024077685549855232, 0.03444550186395645, -0.0845896378159523, -0.014651007950305939, 0.046519726514816284, -0.008692161180078983, -0.01342249196022749, 0.017200283706188202, -0.07573996484279633, 0.014724012464284897, 0.017375826835632324, -0.04921158775687218, -0.01986575871706009, -0.015103417448699474, 0.04091980308294296, 0.01414871122688055, 0.023488501086831093, -0.05406782403588295, -0.006912333890795708, 0.07943402230739594, 0.008040128275752068, -0.026528093963861465, 0.03170745074748993, 0.0035211751237511635, 0.037622205913066864, 0.03239618241786957, 0.015308104455471039, -0.020323781296610832, 0.0034638121724128723, 0.0014917750377207994, -0.05253944173455238, 0.02601468749344349, 0.007745614740997553, -0.020564652979373932, -0.02363728918135166, 0.06525952368974686, 0.028968926519155502, -0.030790667980909348, -0.05878729000687599, 0.0014300402253866196, -0.05559195205569267, 0.0015458178240805864, -0.012655094265937805, -0.013255449943244457, -0.054577987641096115, 0.04167419299483299, -0.012901299633085728, 0.010504585690796375, 0.07164498418569565, 0.02065955102443695, -0.02807854674756527, 0.006054739002138376, 0.10301142185926437, 0.08474401384592056, 0.05829821899533272, 0.008145013824105263, 0.07093890756368637, -0.025663301348686218, -0.01982693187892437, 0.0068104444071650505, 0.0041217440739274025, -0.03588647022843361, -0.04012821987271309, 0.040536798536777496, 0.05341218784451485, -0.012928318232297897, 0.08388232439756393, -0.03014569915831089, -0.030891265720129013, -0.017650369554758072, 0.02969568967819214, -0.0006570606492459774, 0.05835368111729622, 0.004760520067065954, 0.007631512824445963, -0.022517552599310875, -0.0510425940155983, 0.02972656488418579, -0.031984709203243256, -0.006031870376318693, 0.04006488248705864, 0.022639064118266106, 0.015716860070824623, 0.025909220799803734, 0.021147267892956734, 0.0764298290014267, -0.05141189694404602, 0.032308947294950485, 0.004142409656196833, 0.02380242943763733, -0.012901588343083858, 0.0018562356708571315, -0.02916138432919979, -0.009242920204997063, -0.006955427583307028, -0.013255336321890354, -0.013658195734024048, -0.01800457201898098, -0.0059692999348044395, 0.03577530384063721, -0.016577845439314842, -0.006223010830581188, 0.03055860474705696, -0.002414294518530369, -0.026390407234430313, -0.062056563794612885, -0.03563600406050682, -0.05046641826629639, -0.05527382344007492, -0.017450522631406784, 0.035338301211595535, -0.005190801341086626, -0.032902467995882034, -0.023463698104023933, 0.001970448764041066, -0.02742130495607853, 0.03599856421351433, -0.07286584377288818, -0.0313459187746048, 0.009803494438529015, -0.007035185117274523, 0.0211627259850502, 0.01377828512340784, 0.042770400643348694, -0.005392728839069605, -0.0030272589065134525, -0.0123648252338171, 0.05493076145648956, 0.006975852884352207, 0.009386169724166393, 0.017416559159755707, -0.07816292345523834, 0.025298917666077614, 0.02007129043340683, -0.03500833362340927, -0.06927698850631714, 0.03292941302061081, 0.023551015183329582, 0.0027544230688363314, 0.055088337510824203, -0.007888809777796268, 0.01315927505493164, -0.059192828834056854, -0.0073316218331456184, -0.02594112418591976, 0.0021898308768868446, 0.02073747105896473, -0.020028021186590195, 0.08670292794704437, 0.028275499120354652, 0.004005582071840763, -0.05456524342298508, -0.0033903121948242188, -0.01894059218466282, 0.0011421727249398828, -0.021372145041823387, -0.020240625366568565, -0.019526593387126923, -0.09828752279281616, -0.03632655739784241, 0.02640412747859955, -0.04782586917281151, -0.035988256335258484, 0.042059533298015594, 0.03802284598350525, -0.020803233608603477, 0.01167172659188509, -0.047275200486183167, 0.02450353093445301, -0.020888706669211388, -0.0012138847960159183, 0.02694416604936123, 0.03289058431982994, -0.005029378458857536, 0.008599339984357357, -0.010899932123720646, -0.05728656053543091, 0.011714874766767025, -0.0015119718154892325, 0.049844589084386826, 0.051945675164461136, 0.03277750685811043, 0.00440728385001421 ]
[ -0.07878191024065018, 0.005471253301948309, -0.02815733663737774, 0.0005034263012930751, 0.056475985795259476, -0.041021689772605896, 0.00661373371258378, 0.04104769229888916, 0.0070952377282083035, -0.008320732973515987, -0.021230423822999, -0.041541583836078644, 0.006570505443960428, -0.03203508257865906, 0.07466057687997818, 0.009024498984217644, 0.006965655833482742, -0.06945765018463135, -0.013560413382947445, 0.0038931509479880333, 0.05051100626587868, -0.07224788516759872, -0.0486956462264061, -0.03490413352847099, 0.01064517255872488, 0.014961411245167255, 0.016848454251885414, -0.04238225892186165, 0.03244495019316673, -0.17692402005195618, 0.004440322984009981, 0.0009504030458629131, 0.06594923138618469, -0.016454128548502922, -0.005776436999440193, 0.04572644084692001, 0.04414929077029228, 0.0019007825758308172, -0.012619317509233952, 0.03096807561814785, 0.01472755242139101, 0.01832973025739193, -0.0405137799680233, -0.02550048753619194, 0.010942392982542515, 0.0486096516251564, 0.007741931360214949, -0.0295567587018013, -0.029269561171531677, 0.010920354165136814, -0.021823497489094734, -0.010715700685977936, -0.03691471740603447, -0.04330739006400108, 0.0074864719063043594, 0.023204190656542778, 0.03854295238852501, 0.06611897796392441, 0.005957451649010181, -0.025175295770168304, 0.020559081807732582, -0.0062986742705106735, -0.1575779914855957, 0.05381879583001137, 0.07018560916185379, 0.0014584577875211835, -0.04028045013546944, -0.034346453845500946, -0.05095219239592552, 0.07773161679506302, 0.01763208396732807, -0.030977854505181313, -0.012341652996838093, -0.0017446846468374133, -0.012599475681781769, 0.006459284108132124, -0.009469928219914436, 0.01998908631503582, 0.01214203517884016, -0.05041257292032242, 0.02251088060438633, 0.00031717392266727984, -0.03923344239592552, -0.015352475456893444, -0.03612106293439865, 0.007579268421977758, -0.03422711789608002, 0.06981603801250458, 0.0652531310915947, -0.0005450377939268947, 0.014986393973231316, -0.0027453762013465166, 0.03246576339006424, -0.017694156616926193, -0.018327854573726654, 0.005618901923298836, 0.015259847044944763, 0.029581310227513313, -0.058376677334308624, 0.45527252554893494, -0.0633094310760498, 0.004608300980180502, 0.09646716713905334, 0.015871470794081688, 0.010696673765778542, -0.002218367764726281, 0.0017305291257798672, -0.03603686764836311, 0.037532515823841095, -0.0011307117529213428, 0.04380393028259277, 0.021290840581059456, 0.07056459784507751, -0.024958960711956024, 0.02905924990773201, 0.016331542283296585, 0.016916681081056595, 0.025727257132530212, 0.021291576325893402, 0.009591936133801937, -0.02606010250747204, 0.022555561736226082, 0.035123568028211594, 0.007605693768709898, -0.03275790065526962, -0.07792439311742783, 0.015157561749219894, 0.07116705924272537, 0.007983026094734669, -0.022177644073963165, 0.06458831578493118, -0.03873628377914429, -0.04612854868173599, 0.03361339494585991, 0.01609252393245697, -0.0047701080329716206, 0.03672431409358978, -0.023385267704725266, 0.01103215292096138, 0.07942333072423935, 0.030440663918852806, -0.005280424375087023, 0.0017499920213595033, -0.0635700449347496, -0.02323451265692711, 0.12234429270029068, 0.055662691593170166, -0.035414278507232666, 0.0019113681046292186, -0.048353660851716995, 0.0034215599298477173, 0.005814132280647755, 0.03382039815187454, -0.06415674835443497, 0.0025826236233115196, 0.006373696494847536, 0.08074092119932175, -0.012984802015125751, -0.057055823504924774, -0.006797087378799915, -0.03059420920908451, 0.014294593594968319, -0.08652612566947937, 0.038473811000585556, 0.06441976875066757, -0.06897631287574768, -0.01977948471903801, -0.011147305369377136, 0.03341648727655411, -0.06264181435108185, -0.003223674139007926, 0.020724914968013763, -0.03805096819996834, -0.006115833297371864, 0.09596475213766098, -0.028718166053295135, -0.04669658839702606, -0.003341978881508112, 0.06511861085891724, 0.007273073773831129, 0.0464753732085228, 0.004710710607469082, -0.02194046601653099, -0.027349643409252167, -0.021611696109175682, -0.0623096339404583, -0.04136122763156891, -0.004261378664523363, -0.044128309935331345, 0.040727123618125916, -0.03651239350438118, -0.021299373358488083, -0.08180419355630875, 0.10945000499486923, -0.02440408617258072, -0.026086969301104546, 0.019007042050361633, -0.003370942547917366, -0.05230947583913803, -0.01914282888174057, -0.0689801573753357, -0.0022740268614143133, -0.027453118935227394, 0.036560848355293274, -0.04577791318297386, 0.04634140804409981, 0.023243935778737068, -0.03932299464941025, 0.09884213656187057, 0.04813595116138458, -0.018958525732159615, -0.0609034039080143, 0.01580040715634823, 0.04510372877120972, 0.01480362843722105, -0.019767656922340393, 0.02558686025440693, 0.015596290118992329, -0.01251810323446989, 0.015182578936219215, 0.012833639048039913, 0.004940377548336983, -0.04299492761492729, -0.33684131503105164, -0.01813628524541855, -0.011370226740837097, -0.0009559132740832865, 0.05994321033358574, -0.05007341876626015, 0.0017220191657543182, -0.009902650490403175, -0.05422858148813248, 0.02732168324291706, 0.06875945627689362, -0.02363373339176178, 0.00019066088134422898, -0.08207697421312332, 0.015094813890755177, 0.010813799686729908, -0.014548919163644314, -0.022488784044981003, -0.049696024507284164, -0.002039109356701374, 0.007029002532362938, 0.016559354960918427, 0.010448559187352657, -0.0642659068107605, 0.009407400153577328, -0.06147607043385506, 0.08922722190618515, -0.032928094267845154, 0.09127692133188248, 0.007751501630991697, 0.01617969200015068, 0.011177862994372845, -0.005022411234676838, -0.07918766885995865, -0.01282601896673441, 0.009880110621452332, 0.01858905889093876, -0.03848616033792496, -0.00791406910866499, -0.029806606471538544, -0.07794952392578125, -0.0001393363781971857, -0.07762010395526886, -0.02843962423503399, -0.02850126288831234, 0.017541563138365746, -0.052784476429224014, -0.0437203049659729, -0.0402948260307312, 0.040268879383802414, 0.026956843212246895, 0.031052377074956894, 0.03554148226976395, -0.012166710570454597, 0.0034070054534822702, -0.020489217713475227, -0.07358884811401367, 0.04272489994764328, -0.006801110692322254, 0.00002698816570045892, 0.005462828557938337, 0.04490248113870621, 0.01912199892103672, -0.030122587457299232, -0.006926377769559622, -0.010496518574655056, 0.011845916509628296, -0.007902043871581554, 0.02081051655113697, 0.04439440742135048, 0.0022624798584729433, 0.11347666382789612, -0.017407990992069244, -0.05462140962481499, 0.0082106227055192, 0.011914573609828949, -0.008533038198947906, 0.02495446242392063, 0.013667725957930088, -0.01788855530321598, 0.04826993867754936, -0.00717951450496912, 0.03584221377968788, 0.008443476632237434, -0.019755259156227112, -0.009791036136448383, -0.01956810988485813, -0.049397971481084824, 0.015390005894005299, 0.024417977780103683, -0.0427444763481617, 0.013272062875330448, -0.013750098645687103, -0.07643063366413116, 0.09533312171697617, -0.008116022683680058, -0.2331908941268921, 0.01909208670258522, 0.06188901141285896, 0.007657050155103207, -0.028420694172382355, 0.04892696812748909, 0.023727592080831528, -0.04706642031669617, 0.04099646583199501, 0.029750091955065727, -0.004826301243156195, 0.007571737747639418, 0.00678467471152544, 0.010947443544864655, 0.07548969238996506, -0.022252265363931656, 0.051343947649002075, -0.029723478481173515, 0.019323544576764107, 0.021470285952091217, 0.028907516971230507, -0.015185234136879444, 0.12800782918930054, -0.005814620293676853, 0.028176944702863693, 0.02911900170147419, -0.02648511715233326, 0.021710533648729324, 0.06423477083444595, 0.03207620605826378, -0.0029799407348036766, 0.007145690266042948, 0.024507666006684303, -0.0210086889564991, 0.0075014689937233925, -0.0480450876057148, -0.03163572773337364, -0.01114028412848711, 0.0393364317715168, 0.0021517721470445395, 0.014698836021125317, -0.0263218954205513, -0.022606180980801582, 0.02446168102324009, 0.09182636439800262, 0.009698377922177315, 0.0027364168781787157, -0.07539258152246475, -0.03961857035756111, -0.005837768316268921, -0.03839854151010513, -0.021116239950060844, 0.01315326988697052, 0.03662581369280815, 0.012374667450785637, 0.04469222202897072, 0.0035579255782067776, -0.015941116958856583, -0.006684642285108566, -0.0018472858937457204, -0.02496972866356373, -0.042489442974328995, 0.06667321175336838, 0.05148822441697121, 0.04801179841160774 ]
[ 0.0063934666104614735, 0.02647995576262474, 0.016359614208340645, -0.003978042397648096, 0.012909388169646263, 0.007362902630120516, -0.001268406631425023, 0.030314520001411438, -0.01397632621228695, -0.010012391023337841, -0.03485220670700073, 0.03846636414527893, 0.004274474922567606, -0.021946419030427933, 0.0186002179980278, -0.024407805874943733, 0.012330829165875912, -0.0026163067668676376, 0.006694781128317118, 0.006678338162600994, 0.007773127406835556, -0.01798749342560768, -0.01258072815835476, -0.019958384335041046, -0.00020010229491163045, 0.01717938296496868, -0.021304374560713768, -0.0010558889480307698, 0.038220733404159546, -0.13171836733818054, -0.042829304933547974, -0.01305657159537077, 0.0010576018830761313, 0.020156051963567734, 0.005364512093365192, 0.0012020448921248317, -0.0009319997043348849, 0.0007349810330197215, 0.0005045410944148898, 0.01961592398583889, 0.019325533881783485, -0.01455996185541153, -0.0063778250478208065, -0.01751892827451229, 0.0013899363111704588, 0.0010322792222723365, 0.0007822024635970592, -0.05065928027033806, -0.00274931569583714, -0.02960362285375595, -0.016799496486783028, -0.004950705450028181, -0.007365536876022816, -0.013515226542949677, 0.011755297891795635, 0.0061917356215417385, -0.0018959144363179803, -0.024126945063471794, 0.016901865601539612, -0.01150529645383358, 0.005314335227012634, -0.03683318942785263, -0.03953905403614044, -0.008308692835271358, 0.00041276405681855977, 0.01681445725262165, 0.002435888396576047, 0.040201082825660706, -0.05468539893627167, -0.002896514255553484, -0.016031388193368912, 0.005425848066806793, -0.05778150260448456, -0.016175277531147003, 0.026383938267827034, -0.0034724792931228876, 0.022173069417476654, -0.03474956750869751, -0.001923236413858831, -0.023538511246442795, -0.024198828265070915, 0.018301768228411674, 0.007143357302993536, -0.035330481827259064, 0.008085725829005241, -0.008677300065755844, 0.015705011785030365, -0.025932997465133667, 0.02047061361372471, -0.02949747070670128, -0.06942782551050186, 0.03794940561056137, -0.009622718207538128, 0.003572902176529169, -0.054566849023103714, -0.02008558250963688, -0.013154954649508, -0.019915636628866196, -0.003854101523756981, 0.8614398241043091, 0.008949777111411095, 0.03176870942115784, 0.04104223847389221, -0.023620296269655228, -0.01289936900138855, -0.004211808554828167, 0.0006603149813599885, 0.049911901354789734, 0.044471148401498795, -0.019513534381985664, -0.0023798062466084957, 0.023079439997673035, 0.025595972314476967, 0.003175681456923485, 0.029396777972579002, 0.01819678209722042, -0.01926448754966259, 0.015095604583621025, -0.001294212299399078, 0.005140587221831083, 0.00008546825119992718, 0.007570140995085239, 0.0066736661829054356, -0.005803306121379137, -0.022121179848909378, -0.2107701599597931, 0.003632462350651622, -8.326645825460352e-33, -0.006083586718887091, 0.012056058272719383, -0.003309942316263914, -0.010291924700140953, 0.013492090627551079, -0.01131075993180275, 0.01249872799962759, 0.011961887590587139, -0.025735529139637947, -0.034691330045461655, -0.016042202711105347, -0.034033797681331635, 0.0022889107931405306, 0.001777750556357205, 0.02077445760369301, -0.03962374106049538, 0.020698806270956993, 0.02719537355005741, -0.00830776896327734, -0.0017815580358728766, 0.05451898276805878, 0.02294308878481388, -0.008231446146965027, 0.005369668360799551, 0.006602687295526266, -0.006895815953612328, 0.005299572367221117, 0.0010500266216695309, -0.005523986183106899, -0.04097498953342438, -0.02438570000231266, 0.028969231992959976, -0.0008532667416147888, -0.017908230423927307, 0.00351082906126976, -0.03297638148069382, -0.036440957337617874, 0.027716992422938347, -0.00593118229880929, -0.02361038513481617, -0.044197678565979004, 0.025063689798116684, -0.02206915058195591, 0.0004099406360182911, -0.025171399116516113, 0.009269355796277523, 0.016118891537189484, 0.042269665747880936, 0.025886256247758865, -0.0037638861685991287, -0.011371945962309837, 0.030976245179772377, 0.009906671941280365, 0.022238839417696, 0.00647874316200614, -0.011986464262008667, 0.013721815310418606, -0.010907561518251896, -0.0009052670793607831, 0.022810515016317368, 0.0010719868587329984, -0.0018810528563335538, -0.037223316729068756, 0.02196681685745716, -0.009141930378973484, -0.0008522685384377837, 0.011573879979550838, 0.02071545645594597, 0.032038893550634384, -0.02427680417895317, -0.06425493210554123, 0.017686255276203156, -0.015553862787783146, -0.03187477961182594, 0.008614783175289631, 0.0001608969469089061, 0.0020494982600212097, -0.018575746566057205, -0.013092323206365108, 0.04266349971294403, -0.025552289560437202, -0.0020845343824476004, 0.02316221222281456, -0.041169457137584686, -0.0063764723017811775, 0.012066774070262909, 0.018118327483534813, -0.03347057104110718, 0.010131815448403358, 0.023190991953015327, 0.0465761199593544, 0.029203202575445175, -0.022518321871757507, -0.02715774066746235, 0.01960948295891285, 8.102562806731038e-33, -0.0016740607097744942, 0.005025675520300865, -0.019885800778865814, 0.002527983160689473, 0.03794862702488899, 0.0059733921661973, 0.01045644748955965, -0.024026302620768547, -0.05488752946257591, 0.017268087714910507, -0.031881678849458694, -0.04012391343712807, -0.033122122287750244, 0.00815129466354847, 0.0312312263995409, -0.024501599371433258, 0.024933231994509697, -0.0412600114941597, 0.053347665816545486, 0.015239906497299671, 0.027582062408328056, 0.016609763726592064, -0.001975924940779805, -0.038551390171051025, 0.0013055397430434823, 0.06993012130260468, -0.025690456852316856, 0.018550066277384758, -0.0009777045343071222, -0.0024621370248496532, 0.01174420490860939, -0.0048895482905209064, -0.022084735333919525, 0.007278437726199627, 0.014428229071199894, 0.03219746798276901, 0.0010377507423982024, -0.01723405160009861, 0.003616690868511796, -0.008674832992255688, 0.011148539371788502, 0.005934278015047312, -0.0139659708365798, 0.03218679875135422, 0.01728922687470913, 0.0068573965691030025, 0.0049729784950613976, -0.03300561010837555, -0.030580895021557808, 0.008782343938946724, 0.02066975086927414, 0.037116486579179764, -0.01783188246190548, 0.00653260899707675, -0.0191153846681118, -0.04103369265794754, 0.004801654722541571, 0.0012152030831202865, -0.004430057015269995, 0.011324575170874596, -0.0023882673121988773, -0.023853963240981102, -0.015496192499995232, 0.026987990364432335, -0.03341792896389961, 0.009683880023658276, 0.030920203775167465, 0.030580580234527588, 0.00008218319271691144, -0.002137105679139495, -0.02027718909084797, 0.017178406938910484, 0.0007151091122068465, 0.03593437001109123, -0.025118310004472733, -0.001612461288459599, -0.012043471448123455, 0.022338468581438065, -0.018246270716190338, 0.009571838192641735, 0.004516430199146271, 0.024388130754232407, 0.03547244146466255, -0.016549941152334213, -0.017656611278653145, 0.03708156570792198, 0.00851956196129322, -0.0050677587278187275, -0.00899367406964302, -0.004672110080718994, -0.001991590019315481, -0.04441511631011963, 0.009069585241377354, 0.021636739373207092, 0.0009636027971282601, -1.4101686041101402e-8, -0.04053901135921478, 0.029219234362244606, -0.016169872134923935, -0.00456769997254014, 0.012534481473267078, -0.010398085229098797, -0.002919113030657172, 0.03790983930230141, -0.019698254764080048, 0.0006626828107982874, 0.03419528901576996, -0.03695334121584892, 0.00608391547575593, 0.03240141272544861, 0.03787575289607048, -0.035769592970609665, -0.001158571452833712, 0.026558035984635353, 0.027288904413580894, 0.016545014455914497, 0.026238108053803444, 0.05062270164489746, -0.009452772326767445, 0.01315886527299881, -0.01152284350246191, 0.009078122675418854, 0.023228200152516365, -0.03326250612735748, 0.005835157819092274, 0.005712927784770727, 0.014334548264741898, -0.017663361504673958, -0.047333668917417526, 0.00495606055483222, -0.010733790695667267, -0.04019179940223694, -0.016899554058909416, 0.019154002889990807, -0.032054949551820755, -0.006371486932039261, -0.01640225388109684, 0.00429951399564743, -0.002142808400094509, -0.010451771318912506, 0.010110672563314438, -0.007054157089442015, -0.010463102720677853, -0.02076602727174759, 0.035835836082696915, -0.04378388822078705, -0.01308663934469223, 0.008310506120324135, 0.02539350651204586, 0.019602378830313683, 0.033569756895303726, -0.019240982830524445, -0.007490556687116623, -0.027763821184635162, -0.041309501975774765, -0.001009468105621636, -0.004458908457309008, 0.022576922550797462, -0.006970129441469908, -0.02072807401418686 ]
our-obsession-with-efficiency-dan-north
https://markhneedham.com/blog/2009/12/07/our-obsession-with-efficiency-dan-north
false
2009-12-09 22:10:27
Haskell vs F#: Function composition
[ "f", "haskell" ]
[ "fsharp" ]
I'm reading through John Hughes' 'http://www.cs.chalmers.se/~rjmh/Papers/whyfp.html[Why functional programming matters]' paper and one thing I've come across which is a bit counter intuitive to me is the Haskell function composition operator. I've http://www.markhneedham.com/blog/2009/01/12/f-partial-function-application-with-the-function-composition-operator/[written previously about F#'s function composition operator] which is defined as follows: [source,ocaml] ---- let inline (>>) f g x = g(f x) ---- To write a function which doubled all the values in a list and then returned the odd values we'd do this: [source,ocaml] ---- let doubleThenOdd = List.map (fun x -> x*2) >> List.filter (fun x -> x % 2 <> 0) ---- Of course it's not possible for there to be any values! [source,text] ---- doubleThenOdd [1..5];; val it : int list = [] ---- Based on that understanding I would expect the Haskell function composition operator ('.') to work in the same way: [source,haskell] ---- let doubleThenOdd = map (\ x -> x*2) . filter (\ x -> (mod x 2) /= 0) ---- But it doesn't! [source,text] ---- Prelude> doubleThenOdd [1..5] [2,6,10] ---- In Haskell the functions are applied from right to left rather than left to right as I had expected. The definition of '.' is therefore: [source,text] ---- (f . g) x = f (g x) ---- So to get what I wanted we'd need to switch around 'map' and 'filter': [source,haskell] ---- let doubleThenOdd = filter (\ x -> (mod x 2) /= 0) . map (\ x -> x*2) ---- [source,text] ---- Prelude> doubleThenOdd [1..5] [] ---- It's not too difficult to follow once I worked out that it was different to what I was used to but I was very confused for a while! Is there a reason why they implement this operator differently?
null
null
[ -0.0009980415925383568, 0.022065505385398865, -0.00011950571206398308, 0.00738384947180748, 0.04195186868309975, 0.032272789627313614, -0.0035092756152153015, 0.01900884136557579, 0.014409908093512058, -0.011136973276734352, -0.016843363642692566, -0.0017166301840916276, -0.07563720643520355, 0.015140973962843418, 0.017298659309744835, 0.056833069771528244, 0.0721317008137703, -0.03368028253316879, 0.01117146946489811, 0.0008551760111004114, 0.0361754447221756, 0.08644922822713852, -0.03373665735125542, 0.009206841699779034, 0.010881521739065647, -0.0024916757829487324, 0.0070589627139270306, 0.01729871891438961, -0.04422960430383682, 0.008064071647822857, 0.0296464990824461, 0.04529426246881485, -0.04204554483294487, -0.03991251811385155, -0.012792318128049374, 0.014892321079969406, 0.018547361716628075, -0.01975550316274166, -0.003155121812596917, 0.04800289124250412, -0.07224934548139572, 0.006758703850209713, 0.010873639956116676, 0.018041599541902542, -0.06456661969423294, -0.0024649924598634243, -0.07013366371393204, 0.0016363173490390182, -0.032578106969594955, 0.003603450721129775, -0.054433755576610565, 0.015541237778961658, -0.010674402117729187, 0.006097744219005108, -0.009298606775701046, 0.04856034368276596, -0.003475167555734515, -0.06562476605176926, 0.0350385457277298, -0.04590892791748047, 0.009071712382137775, -0.001511727343313396, -0.009950680658221245, 0.03373584523797035, 0.04004337266087532, 0.01975822262465954, -0.04418548196554184, 0.03256439417600632, -0.044949598610401154, -0.01011201273649931, -0.01364559680223465, 0.027891790494322777, -0.049165986478328705, -0.006103171966969967, -0.013785849325358868, -0.0470648817718029, 0.00008041647379286587, 0.0649186298251152, -0.01372742373496294, 0.03462047502398491, -0.003996879793703556, 0.041431497782468796, 0.031103305518627167, 0.02928541973233223, 0.023483792319893837, -0.019657906144857407, -0.014664477668702602, 0.028527501970529556, -0.02661176398396492, 0.04657093808054924, -0.02363407611846924, -0.07828018069267273, -0.0010566096752882004, -0.004940277896821499, 0.01830003410577774, -0.01285479124635458, 0.02441372536122799, -0.009369328618049622, -0.0029864206444472075, -0.009642857126891613, -0.03886055573821068, -0.040537986904382706, 0.007595359347760677, -0.02188512682914734, -0.06877053529024124, -0.017961522564291954, -0.022347668185830116, -0.015370996668934822, 0.02573494054377079, 0.019264988601207733, -0.020670251920819283, -0.006400171667337418, -0.011800158768892288, 0.0037633758038282394, -0.08510424196720123, 0.04491310194134712, -0.015348014421761036, -0.011799449101090431, -0.004364138003438711, 0.03241255506873131, 0.06559615582227707, 0.02665875107049942, -0.02388719841837883, 0.06502216309309006, 0.032971251755952835, 0.038583774119615555, 0.001404710696078837, 0.08225074410438538, 0.008975254371762276, -0.06837240606546402, -0.018841344863176346, 0.06457191705703735, -0.04043201729655266, 0.002569562057033181, -0.012731179594993591, -0.020512258633971214, -0.06158199906349182, -0.008658169768750668, 0.036821454763412476, 0.027410004287958145, 0.020791305229067802, -0.04710538685321808, 0.002778713358566165, -0.05742865055799484, 0.018125982955098152, -0.01520528458058834, 0.02260434441268444, -0.009270996786653996, 0.018813664093613625, -0.0019741461146622896, 0.020675962790846825, 0.053878314793109894, 0.048812247812747955, -0.014219868928194046, 0.016796644777059555, 0.07745493203401566, 0.0454101637005806, 0.014153914526104927, -0.009512300603091717, 0.015537019819021225, 0.05483749508857727, 0.0409267358481884, 0.003843872807919979, 0.0302350502461195, -0.00756691163405776, -0.020923862233757973, -0.0066022430546581745, 0.07039177417755127, -0.003706925315782428, -0.02742157131433487, -0.03638110309839249, -0.04535975679755211, 0.0729399025440216, -0.023325026035308838, 0.015277399681508541, -0.0035935647320002317, 0.07351479679346085, -0.00749169709160924, 0.0580013282597065, 0.009969184175133705, -0.07181432843208313, 0.016375936567783356, -0.016469478607177734, 0.020190145820379257, 0.00418745307251811, 0.003080237889662385, 0.04413660988211632, 0.0014835076872259378, 0.01970723830163479, 0.029605476185679436, -0.04602048918604851, -0.07247734069824219, -0.01599854603409767, -0.012485642917454243, 0.07756694406270981, -0.024448467418551445, -0.03933946043252945, 0.02459602989256382, 0.03381891921162605, 0.04088321328163147, 0.028483599424362183, -0.03611321747303009, 0.02652301825582981, -0.005960019305348396, -0.010770000517368317, 0.048109784722328186, 0.027014922350645065, 0.01402334775775671, -0.056189972907304764, 0.006836660671979189, 0.013218563050031662, -0.014946880750358105, 0.02687697298824787, -0.029795246198773384, 0.04371615871787071, 0.05092408508062363, 0.02352425456047058, -0.03305584192276001, 0.0357644222676754, -0.0516563355922699, 0.03899630531668663, 0.04090540483593941, 0.013033666647970676, -0.0182766392827034, -0.0041409567929804325, 0.12978589534759521, 0.07121817022562027, -0.03450261056423187, -0.06622549146413803, 0.022893192246556282, -0.020878728479146957, -0.038520101457834244, 0.009601140394806862, 0.013254052959382534, 0.006140175275504589, 0.006092217285186052, 0.0013061852660030127, 0.040756627917289734, 0.018554439768195152, -0.017006073147058487, -0.010282800532877445, 0.05195440724492073, -0.03603951260447502, 0.033087484538555145, -0.032927725464105606, -0.03670452907681465, 0.013235827907919884, -0.016269491985440254, -0.021122010424733162, -0.007617102470248938, 0.009601437486708164, -0.0006873120437376201, 0.07359884679317474, -0.023234756663441658, -0.013990465551614761, -0.012609031051397324, -0.02610783651471138, 0.032117560505867004, 0.06968732923269272, 0.017034156247973442, -0.04211409389972687, 0.018611149862408638, -0.027457520365715027, -0.0039012369234114885, -0.015066160820424557, -0.043686140328645706, -0.03883706033229828, 0.014798996970057487, -0.0010041330242529511, 0.03235370293259621, 0.03274799510836601, -0.014032382518053055, 0.03218711540102959, -0.00437379814684391, -0.015620076097548008, -0.010571072809398174, 0.016095060855150223, -0.010602832771837711, -0.05378285422921181, -0.047222793102264404, -0.03249143436551094, 0.08608178049325943, -0.022646110504865646, -0.018668157979846, -0.048292554914951324, -0.03489239886403084, 0.06807726621627808, -0.07608505338430405, -0.02303815633058548, 0.007116132881492376, 0.043229613453149796, 0.03074217215180397, -0.021676942706108093, -0.010354334488511086, 0.05763022601604462, 0.048713114112615585, 0.030484875664114952, 0.034830134361982346, 0.001034501357935369, 0.03619815409183502, -0.014131130650639534, 0.033881280571222305, 0.09212533384561539, 0.015396702103316784, -0.00400652177631855, -0.0315011590719223, 0.0010411138646304607, 0.016510827466845512, -0.24324849247932434, 0.020866477862000465, -0.05018847435712814, -0.02514800801873207, 0.010254458524286747, -0.03181483969092369, -0.008191983215510845, -0.043944500386714935, -0.02216297946870327, 0.0201571024954319, -0.03614329546689987, -0.016215844079852104, -0.028298886492848396, 0.05378895252943039, -0.002718462375923991, -0.014553121291100979, -0.029382288455963135, -0.043227504938840866, -0.01412321999669075, 0.07439542561769485, -0.010512999258935452, -0.054110389202833176, 0.02240777015686035, 0.04200604557991028, 0.005566321779042482, 0.00733897415921092, -0.07695969194173813, 0.030226116999983788, -0.05320349708199501, -0.012775560840964317, -0.051399048417806625, -0.014157277531921864, 0.008661593310534954, -0.011819740757346153, -0.02315376326441765, -0.02778293937444687, 0.004157571587711573, 0.01885996013879776, 0.018107693642377853, 0.04216485843062401, -0.03089740313589573, -0.03450528904795647, -0.005063066259026527, -0.025874176993966103, 0.07526198774576187, -0.02504373900592327, -0.0945076048374176, -0.00005789353963336907, -0.022809023037552834, 0.06093713641166687, -0.014356161467730999, -0.03815124183893204, -0.0069846343249082565, 0.050856202840805054, -0.016751252114772797, -0.017233021557331085, -0.016258079558610916, -0.040154192596673965, -0.021819936111569405, -0.002836038591340184, -0.0443919412791729, -0.04167615622282028, -0.03257475793361664, -0.024783100932836533, -0.050765279680490494, -0.030797971412539482, -0.08157974481582642, -0.006255466025322676, 0.053794875741004944, 0.02922341600060463, -0.00008333650475833565, -0.023505445569753647, -0.031228382140398026, -0.11505426466464996, -0.05062247812747955, -0.04738159850239754, -0.02906537987291813, -0.015118456445634365, 0.029880916699767113, 0.059479691088199615, -0.031214211136102676, -0.054508648812770844, 0.015982581302523613, -0.0017124799778684974, 0.05742326378822327, -0.01671835407614708, 0.014368441887199879, -0.005000196862965822, -0.010700900107622147, -0.025199349969625473, 0.07346578687429428, 0.00173566781450063, -0.010624302551150322, -0.02121206372976303, 0.01724846661090851, 0.01404346153140068, 0.009814124554395676, -0.0049397205002605915, 0.01641867496073246, 0.018067214637994766, 0.03299202024936676, -0.04792466759681702, 0.0036852045450359583, -0.04241577163338661, -0.031744252890348434, -0.0035651728976517916, -0.08354637026786804, 0.02079811692237854, 0.028631532564759254, -0.006978309713304043, -0.025717178359627724, -0.025589076802134514, 0.03075278177857399, -0.03513060137629509, -0.03976370766758919, -0.025118133053183556, -0.009791025891900063, 0.0027079819701611996, 0.036887068301439285, 0.018349699676036835, -0.037497177720069885, 0.000858008221257478, 0.019069386646151543, -0.03350047022104263, -0.06640724837779999, -0.015426352620124817, -0.04544273763895035, -0.02292160876095295, 0.01917611062526703, 0.05264801159501076, 0.015393027104437351, 0.04228432476520538, 0.0002959381090477109, -0.008684847503900528, 0.01617414504289627, -0.028190303593873978, -0.011682783253490925, -0.02618258260190487, -0.03901892900466919, -0.029800334945321083, 0.02593766339123249, -0.007347119506448507, 0.03569604456424713, 0.020537927746772766, 0.03495730459690094, -0.012695484794676304, -0.009904512204229832, 0.013022207655012608, -0.02331024967133999, 0.022791331633925438, 0.03067348152399063, -0.04067516326904297, 0.01398475281894207, -0.027485119178891182, 0.01321727130562067, -0.014066752046346664, 0.05119725689291954, -0.010188791900873184, -0.03545396402478218, -0.04167414829134941, 0.03985625132918358, -0.01849685050547123, -0.02516932599246502, -0.0342642143368721, 0.013894690200686455, 0.04684632644057274, -0.05706021934747696, 0.05001244693994522, -0.0418379120528698, 0.03202318772673607, 0.01240867655724287, 0.030546115711331367, -0.007339585106819868, 0.014232562854886055, -0.009528668597340584, -0.012561667710542679, -0.0045445882715284824, 0.04483431577682495, 0.03596971556544304, 0.02625647559762001, -0.03873245790600777, -0.021798213943839073, 0.000584835943300277, 0.03813837841153145, 0.061163950711488724, -0.00394116947427392, -0.010874498635530472, -0.02881966345012188, -0.026855621486902237, -0.0022947739344090223, -0.04589521884918213, 0.020146073773503304, -0.05227327719330788, 0.01731298118829727, -0.046361103653907776, -0.06984326988458633, 0.01016127597540617, 0.051057882606983185, -0.01580991968512535, -0.024218272417783737, 0.03559647500514984, -0.004967974964529276, -0.009957931004464626, -0.029167290776968002, 0.04502107575535774, -0.0497792586684227, 0.0151437446475029, 0.010301901027560234, -0.022400569170713425, 0.0632411390542984, 0.031522899866104126, -0.043591756373643875, -0.023248717188835144, -0.025548210367560387, -0.025570029392838478, -0.017555784434080124, -0.021200204268097878, -0.007797914557158947, -0.0028586408589035273, 0.005381008610129356, -0.011486798524856567, 0.004392593167722225, -0.01954790949821472, -0.027462027966976166, -0.020710820332169533, 0.009631922468543053, -0.041026484221220016, 0.0016884069191291928, 0.05721483752131462, -0.04646587371826172, 0.01617695949971676, -0.03359651193022728, 0.02661837264895439, 0.037781037390232086, 0.02570146881043911, 0.0024206049274653196, -0.0672176331281662, 0.003981982823461294, -0.05993861332535744, 0.03858330473303795, 0.022519728168845177, -0.0075551425106823444, 0.005715018138289452, 0.016805753111839294, -0.08063789457082748, 0.008699513040482998, 0.030137255787849426, -0.047217149287462234, -0.0031530263368040323, 0.03201447054743767, -0.022200100123882294, 0.04117241129279137, 0.003174940124154091, -0.0013885197695344687, 0.06536611169576645, -0.02068679966032505, -0.012470239773392677, -0.0011075196089223027, -0.051400553435087204, 0.007267841137945652, -0.018849115818738937, 0.016622981056571007, -0.014018911868333817, 0.008084548637270927, 0.0693434327840805, 0.04663749411702156, 0.030994245782494545, -0.0018746816786006093, 0.049546513706445694, -0.023681554943323135, -0.012211439199745655, -0.08105648308992386, -0.02146831713616848, 0.011051882058382034, 0.03608302026987076, -0.037544187158346176, -0.030112450942397118, -0.016709761694073677, 0.03893418237566948, -0.03777885437011719, 0.008732357062399387, 0.04783910885453224, 0.025776216760277748, 0.0236369576305151, 0.026168648153543472, -0.05591535568237305, 0.03283236548304558, 0.014289024285972118, -0.009766916744410992, -0.010446835309267044, -0.008077693171799183, 0.029974710196256638, 0.024995386600494385, 0.027850830927491188, 0.007925454527139664, 0.013943138532340527, 0.03863602876663208, 0.04385528340935707, 0.026739947497844696, 0.04356216639280319, -0.0283181332051754, -0.004714882932603359, 0.017948560416698456, 0.026277847588062286, -0.025563005357980728, 0.023380324244499207, -0.03047902323305607, -0.058001741766929626, 0.02379046566784382, -0.010024935007095337, -0.01196337305009365, -0.048632655292749405, 0.04339674487709999, 0.005793867167085409, -0.022227207198739052, -0.05380677059292793, 0.019114069640636444, -0.04736936092376709, 0.02073199301958084, -0.007524610962718725, 0.03018956072628498, -0.040755823254585266, 0.058206722140312195, -0.007831552997231483, -0.012755709700286388, 0.07171201705932617, -0.015393598936498165, -0.02068331278860569, 0.005453736986964941, 0.089972585439682, 0.060933176428079605, 0.04991364851593971, 0.0014318418689072132, 0.05200640484690666, -0.04907650873064995, -0.04731138423085213, 0.0061391741037368774, -0.02692960575222969, 0.016765674576163292, -0.003513489617034793, 0.032617948949337006, 0.09339594841003418, -0.00687619810923934, 0.06917473673820496, -0.019526563584804535, 0.006721846293658018, 0.000552053505089134, -0.003243241924792528, 0.02715553715825081, 0.07015375792980194, 0.015953661873936653, 0.01687464490532875, -0.0034922498743981123, -0.04050659015774727, 0.013506521470844746, -0.01585082896053791, 0.000020944959032931365, -0.022390784695744514, 0.011857795529067516, -0.008190094493329525, 0.03304910287261009, 0.03226763755083084, 0.07851789891719818, -0.010172419250011444, -0.0036233910359442234, 0.017304234206676483, 0.005378249567002058, -0.003539250697940588, -0.005086490418761969, -0.029698282480239868, -0.05499511957168579, 0.01124640740454197, -0.017398139461874962, -0.04069138690829277, -0.0004884282243438065, -0.0404304675757885, 0.057377949357032776, -0.04527897387742996, 0.009333720430731773, -0.006814020220190287, -0.030181510373950005, -0.02004254423081875, -0.04237746819853783, -0.037063442170619965, -0.03265061601996422, -0.08219218254089355, -0.0032793667633086443, 0.018185406923294067, -0.05391134321689606, -0.03549105301499367, -0.0239691361784935, 0.0006887080962769687, -0.02618645876646042, 0.049912601709365845, -0.013976535759866238, -0.0315278060734272, 0.010169707238674164, 0.007884399965405464, 0.036141909658908844, 0.004982432816177607, 0.0504736453294754, -0.017993709072470665, 0.01291988417506218, -0.0292791947722435, -0.032490190118551254, 0.047937553375959396, 0.008209732361137867, 0.02618793211877346, -0.08789081871509552, -0.010003984905779362, 0.02852831408381462, 0.032151538878679276, -0.09368769824504852, 0.0006663791718892753, 0.02089976705610752, -0.02538173645734787, 0.027964629232883453, -0.01587698981165886, -0.004283850081264973, -0.014809400774538517, -0.014964140951633453, 0.021656036376953125, 0.03470458835363388, 0.0499965138733387, -0.03610150143504143, 0.07917836308479309, 0.015282192267477512, -0.010509581305086613, 0.006962393876165152, 0.03132910653948784, -0.07207212597131729, 0.04323285445570946, -0.03968880698084831, -0.01189170777797699, -0.024034401401877403, -0.041329286992549896, -0.01672625169157982, -0.0006698134238831699, -0.06055917218327522, -0.04518171027302742, 0.008184556849300861, 0.05427304655313492, -0.0550207756459713, 0.08405034989118576, -0.031931690871715546, 0.03334531933069229, -0.017736107110977173, -0.024491531774401665, 0.019182104617357254, 0.03857530653476715, 0.030709391459822655, 0.027297288179397583, 0.030919207260012627, -0.04383966699242592, -0.032779112458229065, 0.0017146830214187503, 0.00320215942338109, 0.03211485967040062, -0.02082195319235325, 0.049068011343479156 ]
[ -0.08414106070995331, -0.02937319315969944, -0.021807771176099777, -0.046374041587114334, -0.0008744340157136321, -0.010811137035489082, 0.014041726477444172, 0.042294520884752274, 0.011140291579067707, -0.04543203487992287, -0.01764402538537979, -0.04292640462517738, 0.02438485622406006, 0.00258066039532423, 0.07728677988052368, 0.005837904755026102, -0.022349616512656212, -0.01471063494682312, -0.04593690484762192, -0.017809728160500526, 0.04034853354096413, -0.011121433228254318, -0.05864508077502251, -0.03601347655057907, 0.04047838971018791, 0.05536223575472832, 0.004396154545247555, -0.029664646834135056, 0.01345412153750658, -0.2351478785276413, -0.023563791066408157, 0.013018258847296238, 0.024044517427682877, -0.07047158479690552, -0.02155243046581745, 0.038642462342977524, 0.021351521834731102, 0.01254231110215187, -0.0015564946224913, 0.06601853668689728, 0.009991208091378212, -0.000153309665620327, -0.0246760044246912, 0.002825710456818342, 0.023027438670396805, 0.005684880074113607, -0.0366516038775444, -0.026901600882411003, -0.03896753489971161, 0.011034117080271244, -0.04485475271940231, 0.01636865921318531, 0.020114397630095482, 0.006686663720756769, 0.024712977930903435, 0.04091065749526024, 0.03156798705458641, 0.08359326422214508, 0.010679897852241993, 0.03369531035423279, -0.023064102977514267, -0.021459922194480896, -0.1082112118601799, 0.10669834166765213, -0.014370786026120186, 0.05588970333337784, -0.0394892692565918, -0.06037547066807747, -0.0441911481320858, 0.09864320605993271, 0.005833165720105171, -0.009135724045336246, -0.03633978217840195, 0.01726369559764862, 0.016848163679242134, -0.07969935238361359, 0.0010671578347682953, 0.02013116329908371, 0.03794588893651962, -0.0176946260035038, -0.006316342391073704, -0.024391844868659973, 0.0017813899321481586, -0.009499145671725273, 0.007651614490896463, 0.019243212416768074, -0.028398271650075912, 0.04933583736419678, 0.003948525991290808, -0.0003486329806037247, 0.00961246620863676, -0.03693602606654167, 0.033997680991888046, 0.039217185229063034, -0.03959865868091583, 0.021754736080765724, 0.006021644454449415, 0.021475927904248238, -0.037182532250881195, 0.4011201858520508, -0.046088214963674545, -0.002965563675388694, 0.04681596904993057, -0.0027286726981401443, -0.014604819007217884, 0.004517220892012119, -0.010662984102964401, -0.03678416088223457, -0.026802800595760345, -0.04937233030796051, -0.03304973617196083, -0.008803481236100197, 0.06992954760789871, -0.07360733300447464, -0.010750539600849152, -0.01899999938905239, 0.051114823669195175, -0.00002303838118677959, 0.04250651225447655, 0.020942719653248787, 0.00011243794142501429, 0.016947729513049126, 0.01966148428618908, 0.05548689141869545, 0.008129483088850975, 0.018164532259106636, 0.014874069020152092, 0.03829602897167206, 0.03395632654428482, 0.07508064061403275, 0.04025476053357124, -0.051837872713804245, -0.025207173079252243, -0.019678540527820587, -0.012668861076235771, 0.04162365198135376, 0.03299899399280548, -0.05322275310754776, 0.032174620777368546, 0.016070952638983727, 0.0035706355702131987, -0.01354987733066082, -0.01601278968155384, -0.0025000623427331448, -0.006475909613072872, 0.12931837141513824, -0.01700519770383835, -0.04164286330342293, -0.028866270557045937, -0.017300421372056007, -0.03455127775669098, 0.033996809273958206, -0.0043769110925495625, -0.044228993356227875, 0.03237594664096832, 0.05847179517149925, 0.033892035484313965, -0.020225299522280693, -0.08612740784883499, 0.023125076666474342, -0.07637960463762283, -0.016151055693626404, -0.04370742291212082, 0.08488538861274719, -0.01257365196943283, -0.0381438322365284, -0.06498879939317703, 0.01544136181473732, 0.003508596448227763, -0.08940014988183975, 0.002225564094260335, -0.006327327340841293, -0.026446150615811348, -0.02200336754322052, 0.0389823317527771, -0.02671782672405243, -0.02781837247312069, -0.03212999552488327, 0.02217160165309906, -0.000517232168931514, 0.013158815912902355, 0.027721868827939034, -0.05930734798312187, -0.0033966675400733948, -0.02711859531700611, -0.059229776263237, -0.04414855316281319, -0.02393706515431404, -0.024712512269616127, 0.013126526027917862, 0.003834506031125784, 0.013228118419647217, -0.02467140555381775, 0.030163630843162537, -0.040777284651994705, -0.0391259528696537, 0.024220794439315796, -0.008276114240288734, -0.026778971776366234, 0.0024299989454448223, -0.00986263994127512, 0.05435531586408615, 0.0127498684450984, 0.01923326775431633, -0.07428908348083496, -0.0011868673609569669, 0.04816726595163345, -0.038791436702013016, 0.03108384646475315, 0.04938230663537979, -0.03499356284737587, 0.0016186852008104324, -0.05544779822230339, 0.0391809418797493, 0.015174548141658306, -0.04277347773313522, -0.007056707050651312, -0.004705633502453566, 0.011775401420891285, 0.006869059521704912, -0.041310686618089676, -0.05149994045495987, -0.05281326547265053, -0.3402586877346039, -0.046868305653333664, -0.02588268369436264, 0.0035652208607643843, -0.005731139797717333, -0.09328391402959824, -0.028221292421221733, 0.0007010156405158341, -0.08566675335168839, 0.04256264120340347, 0.07241424173116684, -0.003049133811146021, -0.016059203073382378, -0.08469458669424057, -0.00546583766117692, 0.003912496380507946, 0.0027398914098739624, -0.058911070227622986, -0.021443316712975502, 0.04866359382867813, -0.0026393046136945486, 0.02412143535912037, -0.026994192972779274, -0.05374481528997421, 0.04697069525718689, -0.04165242612361908, 0.09199142456054688, -0.00134229043032974, 0.11269703507423401, -0.039051689207553864, 0.06308796256780624, -0.020481690764427185, 0.0157349593937397, -0.01646358147263527, -0.012617162428796291, -0.03210930526256561, -0.015576961450278759, -0.025135884061455727, 0.04454106464982033, -0.020559312775731087, -0.0292816162109375, 0.00362963555380702, -0.06477677077054977, -0.004397673066705465, 0.001542923622764647, 0.03761059045791626, -0.023425979539752007, -0.05570277199149132, -0.010290413163602352, 0.07151322811841965, 0.015412868931889534, 0.01383492723107338, -0.0018931253580376506, 0.02583209052681923, 0.0061014494858682156, -0.01702604629099369, -0.047723595052957535, -0.051027052104473114, -0.016955841332674026, 0.01675044372677803, 0.03857056051492691, 0.047624371945858, 0.05037553980946541, -0.006334987934678793, -0.005266884807497263, 0.03004087321460247, 0.01599493809044361, -0.037558238953351974, 0.02274296246469021, -0.011794333346188068, -0.020970743149518967, 0.08057965338230133, -0.01601208932697773, -0.0009152105776593089, 0.03664447367191315, 0.05593134090304375, 0.016300318762660027, 0.07343438267707825, 0.08391691744327545, 0.013944467529654503, 0.04174249619245529, -0.00635448656976223, -0.026612892746925354, -0.05335266515612602, -0.001332642394118011, -0.0005085900775156915, -0.00697686430066824, 0.02174222469329834, -0.0010242656571790576, -0.022243158891797066, -0.04193487763404846, 0.048281408846378326, 0.01864250935614109, -0.051936205476522446, 0.05182177200913429, -0.016057411208748817, -0.2602918744087219, 0.00841301679611206, 0.0673486739397049, 0.03819113224744797, -0.024187620729207993, 0.03661898896098137, 0.028516722843050957, -0.07191670686006546, -0.05610933154821396, 0.006900058127939701, 0.019807444885373116, 0.05722048878669739, 0.04909311980009079, 0.0345626175403595, 0.022700432687997818, -0.03477092459797859, 0.04834166541695595, 0.0018837478710338473, 0.025353098288178444, 0.024668468162417412, 0.0486937090754509, 0.02421402558684349, 0.2130698263645172, -0.02163301780819893, 0.008392421528697014, -0.007148484233766794, 0.002708136336877942, -0.02328650653362274, 0.045924559235572815, 0.005453146994113922, 0.04433927312493324, 0.015488478355109692, 0.06966997683048248, -0.005048017483204603, 0.02024334855377674, -0.02691856026649475, 0.0050234002992510796, 0.04571189731359482, 0.04643785208463669, -0.014515993185341358, -0.01136378850787878, 0.008296152576804161, -0.023512154817581177, 0.01694159209728241, 0.07834994792938232, 0.004105524159967899, 0.0023583683650940657, -0.0249808169901371, -0.05244147405028343, 0.05490437522530556, 0.001428885036148131, -0.0013524910900741816, 0.003547480795532465, -0.01999322511255741, 0.019819045439362526, 0.015738166868686676, -0.027410920709371567, -0.03356759995222092, -0.019957398995757103, 0.059590280055999756, 0.03704531490802765, 0.008533955551683903, 0.11933138966560364, 0.044822048395872116, 0.028955012559890747 ]
[ -0.009510459378361702, 0.002313239499926567, 0.05086766183376312, 0.01640884205698967, -0.009958636946976185, -0.006239360198378563, 0.02953467331826687, 0.011598174460232258, -0.03589734807610512, -0.025739513337612152, -0.005401969887316227, -0.022540178149938583, -0.003620240604504943, -0.04883856326341629, 0.035907529294490814, 0.003832210786640644, 0.008080078288912773, 0.042397212237119675, 0.012476783245801926, -0.042023368179798126, 0.01863846182823181, 0.035039082169532776, -0.006247158627957106, 0.016744446009397507, 0.025406846776604652, 0.027245257049798965, -0.06379102170467377, -0.012466566637158394, 0.024406103417277336, -0.12261233478784561, -0.011914674192667007, -0.00847673136740923, -0.0028169145807623863, 0.009649968706071377, -0.0579206608235836, 0.01650913991034031, 0.03937666863203049, 0.03577837720513344, -0.04120952636003494, -0.033067476004362106, -0.04767819866538048, -0.004179248120635748, -0.03197941556572914, -0.021795691922307014, -0.003586753038689494, -0.0017135526286438107, 0.06727965921163559, -0.027705853804945946, 0.04337314888834953, 0.03694196790456772, -0.04156132787466049, 0.03450346365571022, 0.005154973827302456, 0.014684921130537987, 0.04938632249832153, 0.018360555171966553, -0.03353679180145264, -0.04177970439195633, -0.0261289793998003, -0.009528669528663158, -0.054267752915620804, 0.018282128497958183, -0.04508945345878601, 0.01726246438920498, -0.005744339432567358, -0.006017589941620827, -0.02006816864013672, -0.03702690824866295, -0.01205278281122446, -0.012232348322868347, 0.017009491100907326, 0.02117631956934929, -0.009466614574193954, -0.07691486179828644, 0.017749721184372902, -0.008901220746338367, 0.013622249476611614, -0.025663230568170547, 0.008634865283966064, -0.012131133116781712, 0.036096811294555664, -0.022989334538578987, 0.0485830157995224, -0.014299987815320492, -0.028128497302532196, -0.027373790740966797, -0.0002868750598281622, 0.008827107958495617, 0.019431481137871742, 0.00374159449711442, -0.011376257054507732, 0.023685138672590256, 0.041753459721803665, 0.038763176649808884, -0.04688415676355362, 0.026943298056721687, -0.02983834780752659, 0.018394306302070618, 0.000044024811359122396, 0.7620802521705627, -0.03165321424603462, 0.03461158648133278, 0.024072149768471718, -0.015421309508383274, 0.0348229855298996, -0.03376026079058647, -0.01168670505285263, 0.004564280156046152, 0.0039056313689798117, -0.07597587257623672, 0.0732075646519661, 0.009013381786644459, 0.05014629289507866, 0.001186124049127102, 0.0005734573351219296, 0.018910376355051994, 0.05018161982297897, -0.036479491740465164, -0.02991602197289467, -0.00801683496683836, -0.03367985412478447, -0.03139748051762581, 0.02494117058813572, 0.04528898000717163, 0.02839730679988861, -0.1707814484834671, -0.03117467276751995, -7.571713231319539e-33, 0.0263022743165493, 0.013657969422638416, 0.03469691425561905, 0.001198490266688168, 0.04813641309738159, 0.011093287728726864, 0.04318344220519066, -0.012263701297342777, -0.03390522301197052, -0.0022418173030018806, 0.06674890220165253, -0.043488599359989166, -0.03741908445954323, 0.054299529641866684, 0.0160836149007082, -0.026012053713202477, 0.010115625336766243, 0.026806356385350227, 0.013865781016647816, -0.03244154155254364, 0.0011194933904334903, 0.04751408100128174, 0.006486661732196808, 0.03972189128398895, 0.026708614081144333, 0.04037998616695404, -0.003078891197219491, -0.02713172137737274, 0.023359199985861778, -0.022081498056650162, -0.018543561920523643, 0.02885298617184162, 0.004529526922851801, 0.041266318410634995, 0.048738330602645874, -0.0017721076728776097, 0.01113663800060749, 0.0355992391705513, -0.023571645841002464, -0.015326923690736294, -0.051074035465717316, 0.0065961843356490135, -0.009490588679909706, -0.055430818349123, 0.00355775048956275, -0.07290343195199966, -0.02182653360068798, 0.05974433198571205, 0.05046406015753746, 0.01640484109520912, 0.022351060062646866, 0.05954611673951149, -0.01376876700669527, 0.01869642361998558, 0.01747111789882183, -0.019726138561964035, -0.016795502975583076, 0.021382929757237434, 0.017627833411097527, 0.07923386991024017, -0.009599266573786736, 0.03074941225349903, -0.016083862632513046, 0.033591024577617645, -0.035699423402547836, -0.027961982414126396, -0.0033474978990852833, -0.025898557156324387, 0.03094818815588951, 0.03953127935528755, -0.0407174788415432, -0.010715963318943977, -0.00016410833632107824, -0.04045775905251503, 0.021691111847758293, -0.05455261096358299, -0.051342740654945374, -0.11498674750328064, 0.0016002828488126397, 0.025807848200201988, 0.01823999173939228, -0.01221496518701315, 0.036206282675266266, 0.01939116232097149, -0.04347270354628563, -0.0336591973900795, -0.006068071816116571, 0.040397897362709045, -0.025503652170300484, 0.004364475607872009, -0.01358457189053297, 0.035899776965379715, -0.010713611729443073, -0.01977086439728737, 0.023322952911257744, 7.406771537432002e-33, -0.015926862135529518, -0.022016214206814766, -0.018963422626256943, 0.040941692888736725, 0.017151707783341408, -0.02329842559993267, 0.035366278141736984, 0.001191405113786459, 0.017711784690618515, 0.02110403962433338, 0.020122624933719635, 0.04807211458683014, -0.007831192575395107, 0.02849522791802883, 0.04262984171509743, -0.048309240490198135, 0.019441980868577957, 0.03973299264907837, -0.014557533897459507, 0.01386520080268383, -0.005012000910937786, 0.013363252393901348, 0.01984681375324726, 0.012370799668133259, 0.033013179898262024, 0.04500003159046173, -0.01142348162829876, 0.02562396414577961, 0.0030330102890729904, 0.011075401678681374, -0.006078589241951704, -0.02743610180914402, 0.05179371312260628, -0.030519040301442146, 0.058685582131147385, -0.018269600346684456, 0.017517665401101112, 0.011050081811845303, 0.018825653940439224, -0.0005594289395958185, -0.00894123688340187, -0.005471172276884317, 0.00951720867305994, 0.02294684201478958, -0.010257608257234097, -0.011676336638629436, 0.007834922522306442, -0.023346945643424988, 0.04207918420433998, -0.0015388159081339836, 0.023069579154253006, -0.022173918783664703, -0.043216876685619354, 0.06142837926745415, -0.007183206733316183, -0.0010138024808838964, -0.03419540077447891, 0.017727963626384735, -0.005439849570393562, 0.004096519201993942, -0.04004998877644539, 0.0024374898057430983, -0.009176873601973057, -0.01348171103745699, 0.019153524190187454, 0.008377323858439922, -0.046216074377298355, -0.0478903092443943, -0.034794699400663376, 0.016633864492177963, -0.035482462495565414, -0.025090474635362625, -0.023050738498568535, 0.019883453845977783, -0.04323578253388405, 0.00715935742482543, -0.0016499579651281238, 0.011013680137693882, 0.029572732746601105, 0.021609529852867126, 0.010736644268035889, -0.055962935090065, 0.04805179685354233, 0.00896899402141571, -0.026724450290203094, -0.03951546922326088, 0.03459419682621956, 0.03920741751790047, 0.014194912277162075, -0.03183456137776375, 0.00137206946965307, -0.02424461767077446, -0.03369705379009247, -0.006972455885261297, 0.00522270891815424, -1.2592116682696997e-8, -0.05256808176636696, -0.07759921252727509, -0.035585444420576096, 0.05449024587869644, 0.009591416455805302, 0.010704180225729942, -0.03284215182065964, -0.049552470445632935, -0.022090520709753036, -0.010811945423483849, -0.0006556253065355122, 0.02567497454583645, -0.00632085744291544, -0.04579514265060425, 0.041503142565488815, -0.0696333572268486, 0.03066481091082096, 0.02462906390428543, -0.006008231546729803, -0.0034245133865624666, -0.04999259114265442, 0.005634749308228493, 0.019916506484150887, 0.00015652537695132196, -0.053050339221954346, -0.03028075210750103, 0.01578427664935589, -0.11649204790592194, 0.020939162001013756, 0.01964719220995903, -0.011908294633030891, -0.042811959981918335, -0.003516358556225896, 0.015048017725348473, -0.05231233313679695, -0.06420361250638962, -0.002130933338776231, 0.017707258462905884, 0.02525591477751732, -0.05086737871170044, -0.016992706805467606, -0.009769085794687271, 0.058824580162763596, -0.015830619260668755, 0.004809759557247162, -0.030529167503118515, 0.012754520401358604, -0.02992558479309082, 0.031713444739580154, 0.009722203016281128, 0.009718512184917927, 0.044667720794677734, 0.05025758594274521, -0.003566504456102848, 0.03246031701564789, 0.02980813942849636, 0.01990971527993679, -0.03804340586066246, -0.04887145757675171, 0.002119907410815358, 0.030197279527783394, 0.017351143062114716, -0.014924201183021069, -0.02170443907380104 ]
haskell-vs-f-function-composition
https://markhneedham.com/blog/2009/12/09/haskell-vs-f-function-composition
false
2009-12-09 02:41:47
Clojure: when-let macro
[ "clojure" ]
[ "Clojure" ]
In my continued playing around with Clojure I came across the 'http://richhickey.github.com/clojure/clojure.core-api.html#clojure.core/when-let[when-let]' macro. 'when-let' is used when we want to bind an expression to a symbol and only execute the body provided as the second argument to the macro if that symbol evaluates to true. As I http://www.markhneedham.com/blog/2009/11/20/clojure-a-few-things-ive-been-tripping-up-on/[wrote previously], a value of 'false' or 'nil' would result in the second argument not being evaluated. A simple example of using 'when-let' would be: [source,lisp] ---- (when-let [a 2] (println "The value of a is:" a)) ---- This is the definition: [source,lisp] ---- (defmacro when-let "bindings => binding-form test When test is true, evaluates body with binding-form bound to the value of test" [bindings & body] (assert-args when-let (vector? bindings) "a vector for its binding" (= 2 (count bindings)) "exactly 2 forms in binding vector") (let [form (bindings 0) tst (bindings 1)] `(let [temp# ~tst] (when temp# (let [~form temp#] ~@body))))) ---- The 'assert-args' call at the beginning of the macro is quite interesting. Two assertions are stated: * The first argument should be a vector * That vector should contain exactly two forms I've not used dynamic languages very much before but it seems like this is one way for a dynamic language to fail fast by checking that the arguments are as expected. In a static language that would be a compile time check. Line 9 is quite interesting as we know that 'bindings' will be a vector so we can take the '0th' and '1st' elements from it and bind them to 'form' and 'tst' respectively. I didn't quite pick up on the first few times I read it. On line 10 it makes use of 'auto-gensym' to create a unique name which begins with 'temp' and is bound to the value of 'tst' which in the simple example provided would be the value '2'. As I understand it the name would be something like 'temp__304' or something similarly random! 'when 2' evaluates to true which means that we execute the body provided as the second argument. [source,text] ---- user=> (when-let [a 2] (println "The value of a is:" a)) The value of a is: 2 nil ---- This is a bit of a contrived example of using the construct and it seems to be properly used when we're getting a value out of a list and want to check whether or not we've reached the end of that list or not. If we have then eventually we'll have a value of 'nil' bound by the 'let' and then we'll know we're finished. An example of where the body wouldn't be evaluated is: [source,text] ---- user=> (when-let [a nil] (println "This won't get printed")) nil ---- I don't really understand why we need to bind 'form' to 'temp' on the second last line as it doesn't seem like the value is used? I'm sure there's probably something I'm missing there so if anyone could point it out that'd be cool! As I understand it, the '~@body' on the last line is called the 'splicing unquote' and it allows the individual values in 'body' to be put into the template started at '`(let [temp# ~tst]' individually rather than just being put in there as a list.
null
null
[ -0.013578594662249088, 0.03357300907373428, -0.030176352709531784, -0.020361511036753654, 0.03620259836316109, -0.013223330490291119, 0.03203835338354111, -0.0038024839013814926, 0.0018849289044737816, -0.0009582681232132018, -0.01248814444988966, -0.004934410564601421, -0.07031828165054321, 0.040332354605197906, 0.005060448311269283, 0.04068315029144287, 0.0750209391117096, -0.03234861046075821, 0.02849840745329857, -0.011465833522379398, 0.03551410511136055, 0.038341276347637177, 0.00517479469999671, -0.008896641433238983, 0.06829586625099182, 0.013577918522059917, 0.030508290976285934, -0.019794076681137085, -0.05123461037874222, 0.005664499942213297, -0.003105997107923031, 0.011433218605816364, -0.021021176129579544, -0.016923673450946808, 0.003815039061009884, 0.01681034453213215, 0.02468724548816681, -0.025491930544376373, -0.0261231642216444, 0.01921253278851509, -0.06861049681901932, 0.015146058052778244, 0.016761790961027145, 0.01628798060119152, -0.019746236503124237, 0.012041261419653893, -0.04660647734999657, 0.03928076848387718, -0.04135188087821007, 0.00012583020725287497, -0.05948176980018616, -0.01389271393418312, 0.009136339649558067, 0.025188684463500977, 0.017678789794445038, 0.00968390703201294, -0.010517407208681107, -0.10104309022426605, 0.05529223009943962, -0.03643263131380081, 0.008597875013947487, 0.023206043988466263, 0.036262474954128265, 0.02529100887477398, 0.029808560386300087, -0.030850905925035477, -0.025787491351366043, 0.006559785921126604, -0.09283594787120819, -0.05858367681503296, -0.03287813812494278, 0.051957935094833374, -0.038043178617954254, -0.02349613606929779, 0.057555004954338074, -0.025388078764081, -0.00024723069509491324, 0.04455786943435669, 0.014386720024049282, 0.04431593418121338, -0.0005973004153929651, 0.028376897796988487, 0.03568501025438309, 0.035562846809625626, 0.038821056485176086, -0.026951221749186516, -0.052417729049921036, 0.0051277861930429935, -0.002757892943918705, 0.030139587819576263, 0.03275587409734726, -0.05435316264629364, 0.005143271759152412, -0.0038689400535076857, 0.0188416950404644, -0.0017877835780382156, -0.022030947729945183, 0.004036137834191322, -0.019302893429994583, 0.011992565356194973, -0.03202169016003609, -0.043945133686065674, -0.01110390480607748, -0.0031463298946619034, -0.08155214786529541, 0.009247342124581337, -0.03392083942890167, -0.02623012103140354, 0.04089050367474556, -0.019430574029684067, -0.026658346876502037, 0.007635677233338356, 0.003731941804289818, -0.00015377237286884338, -0.05424332991242409, 0.04030005633831024, 0.0009317483636550605, -0.021716643124818802, -0.027975408360362053, 0.0515374131500721, 0.009085600264370441, -0.010824388824403286, 0.006641749758273363, 0.05271752551198006, -0.03045889548957348, 0.022541366517543793, -0.029030902311205864, 0.039698582142591476, 0.026955101639032364, -0.039687883108854294, -0.033864859491586685, 0.060616716742515564, -0.007071733940392733, -0.0029674582183361053, -0.0032328071538358927, -0.018572816625237465, -0.01849248632788658, -0.027249740436673164, 0.029977552592754364, 0.018357574939727783, -0.005545568186789751, -0.016667691990733147, 0.033203862607479095, 0.0006988688255660236, 0.03462398052215576, 0.04983537644147873, -0.019960585981607437, 0.00880273338407278, -0.02492562122642994, 0.028865410014986992, 0.04089178144931793, 0.044200628995895386, 0.06443578749895096, 0.001132356934249401, 0.028438441455364227, 0.053343888372182846, 0.012152166105806828, 0.04419122636318207, -0.018810806795954704, -0.003890121355652809, 0.029064398258924484, 0.04927296191453934, 0.015474735759198666, 0.04639871045947075, 0.04968283325433731, -0.008190574124455452, -0.006856052204966545, 0.02576669678092003, 0.01686643622815609, -0.02126924879848957, -0.0655122622847557, -0.026186563074588776, 0.06277278065681458, -0.010298164561390877, -0.006591180805116892, 0.042238280177116394, 0.06554200500249863, -0.013229617848992348, 0.06732078641653061, -0.019579632207751274, -0.06612100452184677, 0.03165817633271217, 0.005537822842597961, 0.02939748577773571, 0.037826523184776306, -0.012986990623176098, 0.0908636823296547, -0.016011886298656464, 0.022814907133579254, 0.031220192089676857, -0.05549732968211174, -0.05631360784173012, 0.007486398797482252, -0.0239242073148489, 0.07065784931182861, -0.06545016169548035, -0.015197672881186008, 0.08589671552181244, -0.00483013316988945, 0.04055284336209297, 0.01687886007130146, -0.01423520315438509, 0.019912712275981903, -0.041635073721408844, -0.021100228652358055, 0.027590500190854073, 0.04786531627178192, -0.03363889828324318, -0.04562395066022873, 0.04180893674492836, -0.004660934675484896, 0.0582282617688179, 0.03251632675528526, -0.022092245519161224, 0.04310652241110802, 0.025825506076216698, 0.022197550162672997, -0.016609888523817062, 0.040563423186540604, -0.03716050833463669, 0.0402594655752182, 0.020207324996590614, 0.02766113542020321, -0.023666849359869957, -0.01730719394981861, 0.13861951231956482, 0.05792870372533798, -0.0038766227662563324, -0.08366654068231583, 0.006387072149664164, -0.017284102737903595, -0.04192589223384857, -0.00850979145616293, 0.004089965019375086, 0.012211361899971962, -0.025907859206199646, -0.002729116939008236, 0.021723154932260513, -0.0023770714178681374, -0.03667767345905304, 0.024231433868408203, 0.10339376330375671, -0.006553169339895248, 0.044545602053403854, -0.013119811192154884, -0.01630539447069168, 0.005673106759786606, -0.04622049629688263, -0.06670640408992767, 0.033324114978313446, 0.0028702905401587486, -0.03994709253311157, 0.05000203475356102, -0.017303118482232094, -0.04191644862294197, 0.005016289185732603, -0.045251209288835526, -0.0023743745405226946, 0.03474079445004463, 0.044556111097335815, 0.006054719910025597, 0.013084381818771362, -0.01627901941537857, -0.002211144892498851, -0.012905623763799667, -0.08410705626010895, -0.029204238206148148, 0.05072127655148506, -0.00885140523314476, 0.023804152384400368, 0.028637602925300598, -0.00836036168038845, 0.01059532817453146, -0.03293313831090927, -0.02692047320306301, -0.014116739854216576, 0.014186808839440346, 0.0364982932806015, -0.011807933449745178, -0.010065488517284393, -0.03129648044705391, 0.07580561935901642, -0.011612892150878906, -0.03961152583360672, -0.013128595426678658, -0.034358903765678406, 0.06208096444606781, -0.07806641608476639, -0.01954173482954502, -0.03485297039151192, 0.014277365989983082, 0.018696298822760582, -0.039857588708400726, 0.01403303723782301, 0.04123448207974434, 0.01865040697157383, 0.021208735182881355, 0.011866317130625248, 0.008236397057771683, 0.02387816831469536, 0.016529470682144165, 0.0033386382274329662, 0.022933002561330795, 0.003929401282221079, 0.013046464882791042, -0.04711800441145897, 0.006313323974609375, 0.00936400517821312, -0.2586376368999481, 0.030435075983405113, -0.024202359840273857, -0.019584961235523224, 0.001998868538066745, -0.03245515003800392, 0.01075487770140171, -0.057127695530653, -0.027774641290307045, 0.003679703688248992, -0.017208000645041466, -0.017040854319930077, -0.021869949996471405, 0.06306140869855881, 0.010829697363078594, -0.060356926172971725, 0.004786510486155748, -0.07395946979522705, -0.001444088644348085, 0.03439025953412056, 0.021654868498444557, -0.05296804755926132, 0.04017305746674538, 0.0376310870051384, 0.015792574733495712, 0.022045504301786423, -0.07750071585178375, 0.01964958757162094, -0.029778920114040375, -0.007938475348055363, -0.0016316050896421075, 0.011397802270948887, 0.0027205736842006445, -0.03799935057759285, -0.029309632256627083, -0.0036979098804295063, 0.02014700323343277, 0.02594326063990593, 0.0581737756729126, 0.04286205768585205, -0.01710636354982853, -0.06983765959739685, 0.03974470868706703, -0.046005625277757645, 0.04018624871969223, -0.00990674551576376, -0.08240506052970886, -0.03149496391415596, -0.042118173092603683, 0.07446348667144775, -0.017555244266986847, -0.028004955500364304, -0.022680439054965973, 0.03420116379857063, 0.0030940982978791, -0.022013941779732704, -0.02798452228307724, -0.024274617433547974, -0.05191926285624504, 0.0013459330657497048, -0.04644595459103584, -0.032386768609285355, -0.001282836077734828, -0.06058468297123909, -0.030233651399612427, -0.03693403676152229, -0.0664541944861412, 0.01136455126106739, 0.036747537553310394, 0.01817820407450199, -0.025956185534596443, -0.03248375281691551, -0.031948868185281754, -0.117157943546772, -0.028940433636307716, -0.03018835373222828, -0.011039132252335548, -0.030666911974549294, 0.02001337707042694, 0.02359500527381897, -0.06267151981592178, -0.06660230457782745, 0.0181468203663826, 0.0403764508664608, 0.023855185136198997, -0.011534378863871098, -0.01399652287364006, -0.03757179528474808, -0.006398944184184074, 0.009105589240789413, 0.03945782780647278, -0.02489623613655567, -0.020164577290415764, -0.01824912242591381, 0.0033183256164193153, 0.035903967916965485, -0.0021561195608228445, -0.021868867799639702, 0.041260309517383575, 0.01521899364888668, 0.05418240278959274, -0.04832199215888977, 0.011813588440418243, -0.018335415050387383, -0.016525672748684883, 0.006552765611559153, -0.07255962491035461, 0.016108514741063118, 0.005331984721124172, -0.008723568171262741, -0.011669669300317764, -0.03569725900888443, -0.0036407283041626215, -0.0501931831240654, -0.037492021918296814, -0.015807796269655228, -0.017092391848564148, 0.008748911321163177, 0.021817011758685112, -0.030902989208698273, -0.059704069048166275, 0.01982811652123928, 0.026568155735731125, -0.056788474321365356, -0.05039104074239731, -0.01790160872042179, 0.017874503508210182, -0.015942251309752464, -0.006771689280867577, 0.04236551374197006, -0.009422805160284042, 0.0327393040060997, -0.01972070150077343, -0.05101065710186958, 0.02130223996937275, 0.0019108804408460855, 0.0171962920576334, 0.009479246102273464, -0.04918040707707405, -0.006342687644064426, -0.013652647845447063, -0.012349812313914299, 0.04336797446012497, -0.009665373712778091, 0.02564423903822899, 0.002101956168189645, 0.013657738454639912, 0.04105331748723984, -0.055423930287361145, 0.031163634732365608, 0.06015626713633537, -0.05991106480360031, 0.03277716785669327, -0.02044111303985119, -0.00004350548260845244, -0.007503881584852934, 0.028342686593532562, -0.006792091764509678, 0.004146029241383076, -0.06525779515504837, 0.02470272034406662, -0.029604310169816017, -0.010749075561761856, -0.019318511709570885, -0.010352065786719322, 0.03377761319279671, -0.010840519331395626, 0.06651899218559265, -0.03260185942053795, -0.00730732548981905, -0.023563355207443237, -0.0007246187306009233, -0.04440131410956383, 0.04707934334874153, -0.00396598968654871, 0.021923575550317764, -0.007377049420028925, 0.031719326972961426, 0.017491530627012253, 0.0034579590428620577, 0.0031105077359825373, 0.0035357275046408176, 0.03998842090368271, 0.022081362083554268, 0.03476107120513916, -0.02507498487830162, -0.02867347188293934, -0.0012170551344752312, -0.023248808458447456, 0.00033537481795065105, 0.0037829321809113026, -0.0104456702247262, -0.008731059730052948, 0.004311585798859596, -0.04824945703148842, -0.039783746004104614, -0.004429027438163757, 0.07578354328870773, 0.014247999526560307, 0.015576884150505066, -0.0022599336225539446, -0.011872118338942528, -0.03267667815089226, 0.00579430628567934, 0.07215950638055801, -0.03011292591691017, 0.006053960416465998, 0.03911430761218071, 0.007770534139126539, 0.02580104023218155, -0.000623558007646352, -0.0695083737373352, -0.0060419607907533646, -0.00023666946799494326, -0.041108403354883194, -0.031457219272851944, -0.019586283713579178, -0.02749495767056942, 0.010871757753193378, -0.03049895353615284, 0.004876556806266308, 0.012304162606596947, -0.024702269583940506, 0.019901013001799583, -0.01654711924493313, -0.0050003682263195515, -0.0216666329652071, 0.013517885468900204, 0.06809527426958084, -0.012883532792329788, 0.026898495852947235, -0.04060037434101105, 0.045948125422000885, 0.011098618619143963, -0.015137366019189358, -0.03259200602769852, -0.03431607410311699, 0.040618207305669785, -0.0029105222783982754, 0.030313052237033844, 0.014722338877618313, 0.006189415697008371, -0.03221961110830307, 0.005854375660419464, -0.01704513281583786, 0.00863189622759819, -0.017395131289958954, -0.04069729521870613, -0.0036430014297366142, 0.05420548468828201, 0.0030668373219668865, 0.05520589277148247, -0.013735887594521046, -0.020651767030358315, 0.04830775409936905, -0.04220208525657654, -0.057074178010225296, -0.011956566013395786, -0.03334401175379753, 0.007255602162331343, 0.03250594809651375, 0.023361150175333023, -0.056477516889572144, 0.05705294385552406, 0.016446644440293312, 0.023383384570479393, 0.04258831962943077, -0.013348108157515526, 0.014142856933176517, -0.026546521112322807, -0.04311904311180115, -0.10288134217262268, 0.01040965411812067, 0.029950372874736786, 0.019822172820568085, -0.041784726083278656, -0.051099877804517746, -0.02039014920592308, 0.036561258137226105, -0.025622013956308365, 0.0018962627509608865, 0.029844382777810097, 0.023267405107617378, 0.028069794178009033, 0.0342676118016243, -0.07789482176303864, 0.011087596416473389, 0.04447782039642334, -0.02388448640704155, -0.010366645641624928, -0.029126029461622238, 0.010483669117093086, -0.017566686496138573, 0.013446870259940624, -0.042814407497644424, 0.02488686703145504, 0.07794260233640671, 0.030880311504006386, 0.013102203607559204, 0.046731315553188324, -0.02703062817454338, -0.006818245630711317, 0.07307540625333786, -0.03648490086197853, -0.0124599514529109, 0.0251005906611681, -0.026792950928211212, -0.04992803558707237, 0.021865488961338997, 0.028093459084630013, -0.004796614870429039, -0.05554364621639252, 0.09169308841228485, 0.0362180732190609, -0.03395643085241318, -0.00031505554215982556, 0.027137069031596184, -0.08144354075193405, -0.02535996399819851, -0.02125934511423111, -0.011673030443489552, -0.02713579125702381, 0.03876756131649017, -0.02045862004160881, 0.0281166173517704, 0.04350802302360535, 0.015480742789804935, -0.024587862193584442, -0.028034435585141182, 0.07471278309822083, 0.05985981971025467, 0.05385849252343178, -0.0045140585862100124, 0.0388500951230526, -0.05557716265320778, -0.06041903421282768, -0.0016134431352838874, 0.0013682604767382145, 0.0014404674293473363, 0.01431024819612503, 0.020758764818310738, 0.049852706491947174, -0.016019277274608612, 0.039566200226545334, -0.024018561467528343, -0.00871440302580595, 0.008312679827213287, 0.022849150002002716, 0.06146542727947235, 0.07241387665271759, 0.042652785778045654, -0.0028879172168672085, 0.021075420081615448, -0.022746898233890533, 0.04777989909052849, -0.025930078700184822, -0.03628961741924286, -0.0073843542486429214, -0.00659409211948514, 0.016974350437521935, -0.0207759328186512, 0.06710103154182434, 0.061397504061460495, -0.027379769831895828, -0.0095350481569767, 0.025533102452754974, 0.059904731810092926, 0.013912762515246868, -0.013707255944609642, 0.01850099489092827, -0.009713537059724331, 0.00661761499941349, -0.0038845676463097334, -0.029991578310728073, -0.05866142362356186, -0.060826897621154785, 0.0401020385324955, -0.0316433422267437, -0.02691398561000824, 0.010693022981286049, -0.006568600423634052, -0.008319628424942493, -0.035575635731220245, -0.033188626170158386, -0.047484904527664185, -0.05084022507071495, -0.005528884008526802, 0.0043670497834682465, -0.03385899215936661, -0.00820800382643938, -0.0016601666575297713, 0.03577135503292084, 0.01170379389077425, 0.06439438462257385, -0.01050279475748539, -0.035191670060157776, 0.03706887736916542, -0.00039970054058358073, 0.02674921788275242, 0.0321325920522213, 0.022597037255764008, -0.015584821812808514, -0.02972612902522087, -0.011955895461142063, 0.021183043718338013, 0.037017498165369034, 0.015280050225555897, -0.00398189527913928, -0.09750545024871826, -0.021405082195997238, 0.04128442332148552, 0.026788119226694107, -0.06958930939435959, 0.03699750825762749, -0.03439677506685257, -0.006581430789083242, 0.04600986838340759, -0.006564015988260508, 0.023295201361179352, -0.01556383352726698, -0.013205825351178646, 0.02117503620684147, 0.06151348352432251, 0.02448512613773346, 0.0019331284565851092, 0.10179079324007034, 0.03726615011692047, -0.040820688009262085, -0.041468869894742966, -0.027216941118240356, -0.03142986446619034, 0.034368522465229034, -0.019667688757181168, -0.015970537438988686, -0.062098901718854904, -0.024145161733031273, -0.018037214875221252, 0.018218791112303734, -0.03314190357923508, -0.02658790349960327, -0.016487501561641693, 0.04867292568087578, -0.013494666665792465, 0.06400467455387115, -0.01337458286434412, 0.016984930261969566, 0.0175311416387558, -0.019611770287156105, -0.006970153655856848, -0.0026793782599270344, 0.003502083010971546, 0.009610230103135109, 0.05721239000558853, -0.04049761965870857, -0.029206790030002594, -0.03379293903708458, -0.01982128620147705, 0.0026808634866029024, -0.04825076460838318, 0.024247851222753525 ]
[ -0.12991361320018768, -0.039316724985837936, -0.02199033834040165, -0.03904043138027191, -0.013272414915263653, -0.015764344483613968, 0.05455147847533226, 0.018861213698983192, 0.006640027277171612, -0.0038075146730989218, -0.007660253904759884, -0.03861445188522339, -0.006980925798416138, 0.014155570417642593, 0.08820552378892899, -0.01761174015700817, -0.061310455203056335, -0.04453118145465851, -0.05252797156572342, -0.014941541478037834, 0.04795587807893753, -0.043737612664699554, -0.028144774958491325, -0.04906601458787918, 0.036092836409807205, 0.0429600365459919, 0.01710236631333828, -0.062476493418216705, 0.016580656170845032, -0.2127188891172409, 0.005601159296929836, 0.008294230327010155, 0.021278446540236473, -0.038588427007198334, -0.04173280671238899, 0.062104348093271255, 0.013315132819116116, 0.029261646792292595, -0.03288515657186508, 0.01941911317408085, 0.054318517446517944, 0.061308834701776505, -0.0052972943522036076, -0.06349919736385345, 0.057463388890028, -0.0012335856445133686, 0.025080667808651924, -0.019620586186647415, -0.07054124027490616, 0.014397134073078632, -0.037462927401065826, -0.004151448607444763, 0.04662223532795906, -0.027446826919913292, 0.02219378761947155, 0.037046629935503006, 0.010568950325250626, 0.08664412796497345, 0.04378638416528702, 0.03584606200456619, -0.02756725437939167, -0.024092739447951317, -0.12265977263450623, 0.08596359938383102, 0.005699994508177042, 0.03221425414085388, 0.02014864981174469, -0.003540456760674715, -0.029893655329942703, 0.0687154158949852, 0.048072416335344315, -0.00982696283608675, -0.020119501277804375, 0.07997947186231613, 0.003414271865040064, -0.05303988233208656, 0.023371323943138123, -0.006510067265480757, 0.06435616314411163, -0.04659917578101158, -0.044562794268131256, -0.0019250353798270226, 0.02025463432073593, 0.0226361732929945, 0.0023780015762895346, 0.033494580537080765, -0.01411384902894497, 0.02190963178873062, 0.03935268521308899, -0.02390601672232151, 0.004187673795968294, -0.02275921404361725, 0.04884163662791252, 0.016666971147060394, -0.10154952108860016, 0.041961416602134705, 0.040822748094797134, 0.024059945717453957, -0.03481091931462288, 0.38139858841896057, -0.04828937351703644, 0.011663108132779598, 0.012898805551230907, 0.04104168340563774, 0.004669967573136091, 0.014783898368477821, 0.014103108085691929, -0.05408095940947533, 0.01272960938513279, -0.05101267248392105, -0.013425257056951523, -0.013330838643014431, 0.034380681812763214, -0.02610745094716549, -0.0367119200527668, -0.00014946130977477878, 0.09162445366382599, 0.00450186338275671, 0.008702758699655533, -0.007401561364531517, 0.02085081674158573, -0.013379030860960484, 0.023655980825424194, -0.02067643031477928, 0.019945135340094566, 0.00636186171323061, 0.03321367874741554, 0.06965412944555283, 0.021832965314388275, 0.004096102435141802, 0.02042577788233757, -0.027829879894852638, -0.06177937239408493, -0.0066337790340185165, 0.010389129631221294, -0.01972167007625103, 0.041219498962163925, -0.04798489063978195, 0.029871631413698196, 0.0019199110101908445, 0.03332079201936722, -0.028142530471086502, 0.02644413523375988, -0.012151850387454033, -0.01297783199697733, 0.058174241334199905, -0.024201633408665657, -0.024504996836185455, -0.018364667892456055, -0.01852148212492466, -0.036055248230695724, 0.04939970374107361, -0.014561271294951439, -0.045065946877002716, 0.007044936064630747, 0.03916424512863159, 0.05511738732457161, 0.004956783261150122, -0.05870138853788376, -0.019783420488238335, -0.0660974383354187, 0.019710788503289223, -0.08472374826669693, 0.015869582071900368, -0.023637359961867332, -0.04782719165086746, -0.018562806770205498, -0.01003001257777214, 0.02018185891211033, -0.049175769090652466, -0.003047446021810174, 0.017125632613897324, -0.013100024312734604, -0.03655204921960831, 0.04292430356144905, -0.028418656438589096, -0.07455430179834366, -0.03327883034944534, 0.028238076716661453, 0.022348597645759583, -0.0014191858936101198, 0.011390988714993, -0.025855643674731255, 0.058478280901908875, -0.017669836059212685, -0.030306363478302956, -0.06889990717172623, -0.0021638062316924334, -0.012389140203595161, 0.015047494322061539, -0.009235093370079994, -0.03302496671676636, -0.0381547287106514, 0.06767347455024719, -0.04630404710769653, -0.017162805423140526, 0.008055334910750389, 0.024464154615998268, -0.007997756823897362, -0.010840771719813347, -0.0006725038401782513, 0.04650839418172836, 0.004466773010790348, 0.036074426025152206, -0.06505637615919113, 0.008424335159361362, 0.01442657969892025, -0.06689775735139847, 0.057032451033592224, 0.04127712547779083, -0.06196129322052002, 0.038941409438848495, -0.0366097055375576, -0.013058858923614025, -0.030841121450066566, 0.02989126555621624, -0.02893521636724472, -0.02113156020641327, 0.005376309622079134, 0.0039051908534020185, -0.06869257986545563, -0.0885171964764595, -0.023242563009262085, -0.3507855236530304, -0.016961995512247086, -0.005693917628377676, -0.009109878912568092, 0.05840744823217392, -0.07866393774747849, 0.005433341022580862, 0.004077557940036058, -0.04693422466516495, -0.016848249360919, 0.06463229656219482, -0.014017980545759201, -0.055031828582286835, -0.07951563596725464, 0.025395620614290237, 0.03147603198885918, 0.014267660677433014, -0.04632655531167984, -0.05407504737377167, 0.023009903728961945, -0.009728317148983479, -0.041172292083501816, -0.008870193734765053, -0.05579820275306702, -0.007485757581889629, 0.0033537321723997593, 0.08513745665550232, 0.009871790185570717, 0.08037503063678741, -0.06278996914625168, 0.03824033960700035, -0.002860384527593851, -0.024057501927018166, -0.08946849405765533, -0.019405726343393326, -0.03046249970793724, -0.04108930006623268, -0.013752210885286331, 0.035557445138692856, 0.027876567095518112, 0.01526612788438797, 0.029108742251992226, -0.050995834171772, -0.046087365597486496, -0.009742960333824158, 0.024351824074983597, 0.021100850775837898, -0.00825273897498846, -0.007184975780546665, 0.04256631061434746, 0.010584183968603611, 0.02016490139067173, -0.005971022415906191, -0.0021972665563225746, 0.03969235345721245, -0.009300191886723042, -0.05506524816155434, -0.021788811311125755, 0.028023365885019302, 0.019139664247632027, 0.023974435403943062, 0.053133826702833176, 0.04850474372506142, -0.07944700121879578, 0.014077392406761646, -0.002601277083158493, 0.02151712216436863, -0.04345589876174927, -0.009630395099520683, -0.02121661603450775, -0.053179796785116196, 0.10215605795383453, -0.016843773424625397, 0.01468668133020401, 0.07484188675880432, 0.07207014411687851, -0.008441643789410591, 0.012259602546691895, -0.0007679242989979684, 0.022592563182115555, 0.021000461652874947, 0.010771696455776691, 0.026590608060359955, -0.02917584218084812, -0.013341027311980724, 0.017146920785307884, 0.0032732461113482714, 0.023262985050678253, 0.03568897396326065, -0.020124582573771477, -0.04984652251005173, -0.005168823525309563, -0.006794638466089964, -0.038303837180137634, 0.06756077706813812, -0.011860162019729614, -0.25467532873153687, 0.055126093327999115, 0.06110956892371178, 0.06417203694581985, -0.01725626550614834, 0.04667436331510544, 0.03076348453760147, -0.07834674417972565, -0.06512749195098877, 0.012947292998433113, 0.005182158667594194, 0.06127786263823509, 0.049403514713048935, 0.014527859166264534, 0.02461603656411171, -0.019199902191758156, 0.06380625069141388, -0.04104674607515335, 0.016350653022527695, -0.005458740517497063, 0.03767832741141319, 0.014260564930737019, 0.21613754332065582, -0.003229292342439294, 0.002346591092646122, 0.013847460970282555, 0.01032255683094263, 0.012429581955075264, 0.04994595795869827, 0.026855699717998505, 0.024635229259729385, -0.00944408867508173, 0.06734178960323334, -0.009820953942835331, 0.01774565875530243, -0.04939379543066025, -0.053401533514261246, 0.02539753168821335, 0.039274491369724274, -0.024434519931674004, 0.00622137077152729, 0.03571793809533119, -0.0157827939838171, 0.029856860637664795, 0.07089526206254959, 0.037079304456710815, -0.0025054130237549543, -0.031398624181747437, -0.010969654656946659, 0.0006657835328951478, -0.0024305651895701885, -0.012673825025558472, 0.02948460914194584, -0.015491021797060966, 0.010814221575856209, 0.024530410766601562, 0.01760348305106163, -0.03417269513010979, -0.03506356105208397, 0.05111360177397728, 0.033410899341106415, -0.010131162591278553, 0.13401761651039124, 0.007502054795622826, 0.045370619744062424 ]
[ -0.001868221559561789, 0.004482089076191187, 0.01728912629187107, 0.001106889802031219, 0.0002962546132039279, -0.016169870272278786, 0.009896095842123032, 0.012977326288819313, -0.0007420072215609252, -0.023478999733924866, -0.024488601833581924, -0.003293540794402361, 0.023897072300314903, -0.019113833084702492, 0.034484416246414185, 0.0014331917045637965, 0.003676530672237277, 0.0025644677225500345, 0.02683885581791401, 0.027103913947939873, 0.00823467317968607, 0.055234625935554504, 0.02639545127749443, -0.015071606263518333, -0.002090535592287779, 0.001970102312043309, -0.011589350178837776, -0.0019023711793124676, 0.054291266947984695, -0.12949980795383453, -0.05262678861618042, -0.031203050166368484, 0.012555154040455818, 0.02449757792055607, -0.04029061645269394, 0.03128734603524208, -0.005916467402130365, 0.022476408630609512, -0.01908610388636589, 0.017146483063697815, -0.014266729354858398, 0.001956840278580785, -0.024268727749586105, 0.007702808827161789, 0.024070613086223602, 0.03782876208424568, -0.021773917600512505, -0.026505012065172195, -0.024621596559882164, -0.0075366199016571045, -0.028351686894893646, -0.0076410709880292416, 0.01830381527543068, -0.010208639316260815, 0.03373157978057861, -0.03188669681549072, -0.046801164746284485, -0.007280782796442509, 0.03934798389673233, -0.044071003794670105, 0.010482185520231724, 0.02771134488284588, -0.030681636184453964, -0.02657390385866165, 0.0066408878192305565, -0.03823132440447807, 0.028250079602003098, 0.019546272233128548, -0.010594037361443043, -0.005213870666921139, 0.024512309581041336, 0.02275310456752777, -0.02487516775727272, -0.02708176150918007, -0.02576148509979248, 0.02654048427939415, 0.026261581107974052, -0.04592995345592499, 0.006685860920697451, -0.028511667624115944, -0.009853669442236423, -0.008099308237433434, 0.021971503272652626, 0.035127948969602585, 0.007143847178667784, -0.007952638901770115, 0.006290993187576532, -0.009915461763739586, 0.029002992436289787, 0.02808588743209839, -0.003402520902454853, 0.02240024134516716, 0.020209943875670433, 0.02352665737271309, -0.08211038261651993, 0.034766461700201035, -0.02218853496015072, 0.0007013959111645818, 0.0008404079708270729, 0.8545012474060059, -0.02196733094751835, 0.051868610084056854, 0.03357544168829918, 0.023105045780539513, -0.0012925610644742846, -0.013570189476013184, 0.010848509147763252, -0.03154782950878143, 0.025117984041571617, 0.011601805686950684, 0.017673075199127197, -0.01840641163289547, 0.05412423610687256, 0.012257559224963188, -0.002589023904874921, 0.016203252598643303, 0.04683127999305725, 0.03115723468363285, 0.03293085843324661, 0.036670781672000885, 0.01968621276319027, -0.0165492445230484, -0.001076845801435411, 0.0062160673551261425, -0.006613181438297033, -0.1746158003807068, -0.009882229380309582, -7.289000227791056e-33, 0.027164213359355927, -0.01365648303180933, 0.011254051700234413, -0.001078974804840982, -0.0033145714551210403, -0.017015526071190834, 0.011341818608343601, -0.026375893503427505, -0.05410531163215637, -0.016292491927742958, 0.01012269128113985, -0.008110083639621735, -0.01120935007929802, -0.0019896673038601875, 0.010810759849846363, -0.00792769342660904, 0.01934344321489334, 0.052770476788282394, 0.0013067959807813168, 0.017296077683568, 0.01134457252919674, 0.014409861527383327, 0.0012419051490724087, 0.0035768155939877033, -0.0009326134459115565, -0.0028818382415920496, 0.042618658393621445, 0.006368224509060383, 0.016569528728723526, -0.04964447021484375, -0.036298420280218124, 0.0012532620457932353, -0.010985865257680416, 0.011185013689100742, 0.018307123333215714, -0.07395921647548676, 0.033899396657943726, 0.02974899858236313, -0.04110157489776611, -0.03459009528160095, -0.004653604701161385, -0.028191741555929184, -0.06215599551796913, -0.006217048969119787, -0.010561229661107063, -0.03582780808210373, -0.007017731666564941, 0.04493085294961929, 0.010219842195510864, 0.007199459243565798, -0.0011622195597738028, 0.02801995910704136, -0.0024113513063639402, -0.00596266845241189, -0.018328839913010597, -0.015324428677558899, -0.038448549807071686, -0.010578060522675514, -0.004155165981501341, 0.016132378950715065, 0.01091352105140686, 0.01192955207079649, -0.008811340667307377, 0.03954660892486572, -0.012649450451135635, -0.028472337871789932, -0.02461274527013302, -0.0034486891236156225, 0.030845273286104202, 0.025554973632097244, -0.0291101336479187, 0.006732468027621508, -0.026385650038719177, -0.028490016236901283, 0.015873858705163002, -0.05081132426857948, 0.0007718891720287502, -0.03897010535001755, 0.0018510897643864155, 0.04783802852034569, 0.03634864091873169, -0.005611337721347809, 0.005412308964878321, 0.027052350342273712, 0.014456977136433125, -0.014995301142334938, -0.006416122894734144, 0.009303229860961437, -0.0011155216488987207, -0.005275171250104904, 0.030321218073368073, -0.010691467672586441, -0.0037626558914780617, -0.05178134888410568, -0.06246251240372658, 7.633434766261371e-33, -0.006769014988094568, -0.0175639558583498, -0.022479062899947166, 0.035186637192964554, -0.014767730608582497, -0.03325936570763588, 0.01363261230289936, -0.013907077722251415, -0.012845812365412712, 0.018813755363225937, -0.01544187031686306, -0.019161082804203033, 0.009635710157454014, 0.029256675392389297, 0.04904141277074814, -0.004100157879292965, -0.0009125075303018093, -0.015332125127315521, -0.011097697541117668, -0.009553417563438416, 0.013281187042593956, 0.0009253555326722562, 0.006875870283693075, 0.024398325011134148, -0.01610209420323372, 0.05436713621020317, -0.03766898065805435, 0.04127906262874603, -0.014682114124298096, 0.01814289763569832, 0.0027238167822360992, -0.021669629961252213, 0.019552553072571754, 0.012166605331003666, -0.024326017126441002, 0.017645947635173798, 0.005312791094183922, -0.017239931970834732, 0.031353168189525604, 0.003372735111042857, 0.006389734800904989, -0.02322952076792717, -0.003958085086196661, 0.011526815593242645, 0.0003625178069341928, 0.001136230886913836, 0.026700424030423164, -0.010000709444284439, 0.0460745170712471, -0.04071338102221489, 0.018286580219864845, 0.04296981543302536, -0.009567983448505402, 0.013687307015061378, -0.003713412443175912, -0.01249019056558609, -0.032962996512651443, 0.015234953723847866, -0.01672620140016079, 0.006125922314822674, -0.010694410651922226, -0.022859811782836914, -0.001779734855517745, 0.017274215817451477, -0.0009339216630905867, -0.02440480701625347, -0.0039136530831456184, -0.027702581137418747, -0.005948483943939209, -0.006263027433305979, -0.026489466428756714, -0.0018710300792008638, 0.012699623592197895, 0.030054869130253792, 0.01646275818347931, 0.02428602986037731, 0.017841100692749023, 0.0014308772515505552, 0.02383735403418541, 0.016446180641651154, 0.013681561686098576, -0.0072425310499966145, 0.009574029594659805, 0.0059251259081065655, 0.01182758342474699, 0.008126509375870228, -0.018124839290976524, 0.006233936175704002, 0.008663469925522804, -0.013813868165016174, 0.0034427852369844913, -0.024520698934793472, 0.0021217430476099253, 0.03642286732792854, -0.009566590189933777, -1.3217624328376587e-8, 0.021327054128050804, -0.011476249434053898, -0.015247180126607418, 0.02729528769850731, 0.010124120861291885, 0.015813784673810005, 0.0027804458513855934, -0.019504845142364502, -0.041037335991859436, 0.0033747958950698376, 0.0016427941154688597, 0.02871776930987835, -0.00805263128131628, 0.015655629336833954, 0.05753317475318909, -0.047049425542354584, 0.02541382610797882, 0.002560619730502367, 0.014162719249725342, -0.047417666763067245, -0.006169699598103762, 0.04117771238088608, 0.0025425548665225506, -0.00864447746425867, -0.02387855388224125, -0.023217888548970222, 0.003998263739049435, -0.0870010107755661, 0.010521255433559418, -0.03568187355995178, -0.0035062115639448166, -0.026010295376181602, -0.03879072144627571, -0.011813269928097725, -0.01512658130377531, -0.019057735800743103, -0.0016687840688973665, 0.02417643740773201, 0.022828437387943268, 0.014958271756768227, -0.0007105058175511658, 0.016157878562808037, -0.01296525914222002, -0.03220979496836662, -0.04191448912024498, -0.02283307909965515, -0.015252050943672657, 0.006911336909979582, 0.004153645597398281, -0.018246280029416084, 0.039371125400066376, 0.01950305700302124, -0.00006617191684199497, 0.02291177213191986, 0.006210308987647295, 0.009539040736854076, -0.005402687471359968, -0.04123703017830849, -0.04089147225022316, 0.00754529656842351, -0.003989692311733961, 0.014418144710361958, -0.03183164820075035, -0.02930196188390255 ]
clojure-when-let-macro
https://markhneedham.com/blog/2009/12/09/clojure-when-let-macro
false
2009-12-31 16:08:25
OOP: Behavioural and Structural constraints
[ "oop" ]
[ "OOP" ]
A few months ago I wrote a post describing how we should http://www.markhneedham.com/blog/2009/09/02/tdd-test-the-behaviour-rather-than-implementation/[test the behaviour of code rather than the implementation] whereby we would write tests against the public API of an object rather than exposing other internal data of the object and testing against that directly. While I still think this is a useful way of testing code I didn't really have a good definition for what makes that a test of an object's behaviour. I've been reading through James Odell's 'http://www.amazon.com/gp/product/052164819X?ie=UTF8&tag=marneesblo-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=052164819X[Advanced Object-Oriented Analysis and Design Using UML]' and he describes it like so: ____ Behavioural constraints limit the way object state changes may occur ____ In http://www.markhneedham.com/blog/2009/12/01/fundamentals-of-object-oriented-design-in-uml-book-review/[Meilir Page-Jones language] I think this would describe informative and imperative messages: * Informative -- a message telling an object about something that happened in the past. * Imperative -- a message telling an object to take some action on itself. Both of these types of messages change the state of the object so in C# or Java these would be the public methods on an object that clients interact with. That seems to describe the way that we would test the object. These would be the methods that we'd call in our test. Odell goes on to describe structural constraints: ____ Structural constraints limit the way objects associate with each other, that is, they restrict object state. ____ This seems close to an interrogative message: * Interrogative -- a message asking an object to reveal something about itself. This would seem closer to the way that we would verify whether the object's state changed as expected. We're querying the object through the structural constraints that have been setup. I can think of two main reasons why this approach is more effective than just testing directly against the internals of an object: * It ensures we're testing something useful otherwise we might be writing tests on our code for a scenario that will never happen. * We have a better idea of when we've finished writing our tests since we know when we've tested all the behaviour.
null
null
[ -0.011169622652232647, -0.00004345163324614987, -0.024496687576174736, 0.02919953316450119, 0.06132732331752777, 0.004339129664003849, 0.04667927324771881, 0.019214123487472534, 0.004641013219952583, -0.009669718332588673, -0.02188578061759472, 0.0032203716691583395, -0.06502334028482437, 0.00704183941707015, -0.023697318509221077, 0.063080795109272, 0.057172741740942, -0.030296562239527702, 0.04605626314878464, 0.014078847132623196, 0.029351739212870598, 0.0536627471446991, -0.0063849384896457195, 0.029447250068187714, 0.054887354373931885, 0.014639059081673622, 0.029371295124292374, 0.0038487552665174007, -0.059792205691337585, 0.005380095914006233, 0.003868432017043233, 0.008295463398098946, -0.003959544934332371, 0.0044053299352526665, -0.008336503989994526, 0.00983553845435381, -0.016534512862563133, 0.014426682144403458, 0.010059288702905178, 0.027042614296078682, -0.07647103816270828, 0.03184884041547775, -0.02951434813439846, -0.004048926290124655, -0.05190388485789299, 0.009720860049128532, -0.04809790849685669, 0.00035501422826200724, -0.00723970215767622, -0.004552130587399006, -0.07136477530002594, 0.035437919199466705, -0.03229697421193123, 0.0308977160602808, 0.003582383506000042, 0.04733366519212723, 0.011236142367124557, -0.08372489362955093, 0.01960667222738266, -0.06236588582396507, 0.0159358698874712, -0.029345255345106125, -0.009060855954885483, 0.006820471491664648, 0.018345624208450317, -0.017003826797008514, -0.008951526135206223, 0.03337060660123825, -0.04861291125416756, -0.0071459501050412655, -0.01152590848505497, 0.009270453825592995, -0.002046925248578191, -0.01913456805050373, 0.013540475629270077, -0.029377304017543793, -0.0037996829487383366, 0.046821434050798416, -0.01771196350455284, 0.03141865134239197, -0.025083107873797417, 0.04099356010556221, 0.027051756158471107, 0.011196189559996128, -0.0084378682076931, -0.033833883702754974, -0.009330939501523972, 0.00466249929741025, -0.03333643078804016, 0.0629507303237915, 0.018412893638014793, -0.040043048560619354, 0.011901319958269596, 0.028679808601737022, -0.0243879035115242, 0.0040850262157619, 0.014482902362942696, 0.019175468012690544, -0.03297452628612518, -0.013285193592309952, -0.02135784737765789, -0.03486023470759392, 0.018283888697624207, 0.021192697808146477, -0.08229345083236694, -0.012063354253768921, -0.01432041171938181, -0.02947085350751877, -0.028588585555553436, 0.010892100632190704, -0.0386323519051075, 0.023701626807451248, -0.02245630882680416, -0.0051907324232161045, -0.07983022183179855, 0.06543544679880142, 0.014121731743216515, -0.03117644228041172, 0.005534559953957796, 0.04404222592711449, 0.02915959246456623, 0.015600168146193027, 0.004017008002847433, 0.0757361650466919, 0.03051312454044819, 0.02624671906232834, -0.03435796871781349, 0.06610915064811707, -0.024071794003248215, -0.06255112588405609, -0.0008032017503865063, 0.04810239002108574, -0.01842249184846878, 0.00090837012976408, -0.0012876697583124042, -0.02304055728018284, 0.015831762924790382, -0.016641538590192795, 0.025761354714632034, 0.055321354418992996, -0.007722469512373209, -0.05371519923210144, 0.03284744918346405, 0.01127918902784586, 0.0028536194004118443, 0.015916461125016212, 0.012617302127182484, 0.0004588922602124512, -0.04331061616539955, 0.014055514708161354, 0.025283129885792732, 0.03418884798884392, 0.04087250307202339, -0.03272203356027603, 0.02508588694036007, 0.06706757843494415, 0.011692896485328674, 0.018870096653699875, 0.00032832505530677736, 0.03245485574007034, 0.04735127091407776, 0.038365352898836136, 0.017490997910499573, 0.009299755096435547, 0.03138113394379616, -0.0046614776365458965, 0.000919689831789583, 0.05718069523572922, 0.0005099403206259012, -0.015328454785048962, -0.05244841426610947, -0.06706061214208603, 0.04642694443464279, -0.02248430624604225, -0.018066488206386566, 0.04751399904489517, 0.07484737783670425, -0.012777703814208508, 0.04568229615688324, 0.010997156612575054, -0.07759985327720642, 0.004337852355092764, 0.006700380705296993, 0.013591982424259186, 0.03284909203648567, -0.013668551109731197, 0.07185573130846024, 0.020318156108260155, -0.02726256288588047, 0.026564162224531174, -0.06417257338762283, -0.06680604070425034, -0.00014681948232464492, -0.014477877877652645, 0.05424865707755089, -0.029276909306645393, -0.004905360285192728, 0.0720462054014206, 0.010710721835494041, 0.054293401539325714, 0.030946513637900352, 0.0057841818779706955, 0.009625044651329517, -0.0366373173892498, -0.007012368645519018, 0.040390633046627045, 0.05400934815406799, 0.0028362274169921875, -0.07422173768281937, 0.00515878526493907, -0.014151204377412796, -0.023099733516573906, 0.029130278155207634, -0.032861288636922836, 0.03712135925889015, 0.011615893803536892, 0.06879596412181854, -0.02356540597975254, 0.07151688635349274, -0.06895257532596588, -0.007766418624669313, -0.000028597587515832856, -0.029809344559907913, 0.00931545253843069, -0.023184457793831825, 0.10789866745471954, 0.04361380636692047, -0.036888834089040756, -0.04535675048828125, 0.0283694788813591, 0.014062204398214817, -0.0481148436665535, -0.0011632007081061602, -0.030550172552466393, 0.004683734383434057, 0.02673208899796009, -0.05784222483634949, -0.003986857831478119, 0.02812209352850914, -0.04011571779847145, 0.030775824561715126, 0.07512757182121277, -0.019295910373330116, 0.03407011926174164, -0.033354662358760834, -0.016246773302555084, 0.02434645965695381, -0.026678767055273056, -0.06757618486881256, 0.01690755970776081, -0.008364196866750717, -0.009908245876431465, 0.06847639381885529, -0.027858028188347816, -0.0328962542116642, -0.020263325423002243, -0.02132824994623661, -0.0030514944810420275, 0.052995648235082626, 0.059461697936058044, -0.01234443485736847, 0.055210813879966736, -0.024516282603144646, 0.024804046377539635, -0.005801465827971697, -0.059952590614557266, -0.02740536630153656, -0.012891109101474285, -0.01570512354373932, 0.05442001670598984, 0.006247668527066708, 0.015119052492082119, 0.0234269667416811, 0.014995839446783066, -0.008003169670701027, -0.0008184570469893515, 0.01749665103852749, 0.02018902823328972, -0.018479568883776665, 0.004391989205032587, -0.03578280285000801, 0.0277703944593668, -0.04187816381454468, -0.03394822031259537, 0.024295538663864136, -0.08605732023715973, 0.054689858108758926, -0.06483756750822067, -0.06452011317014694, 0.01585630141198635, 0.022376880049705505, 0.016554268077015877, -0.00247047352604568, 0.015618936158716679, 0.07297049462795258, 0.024212663993239403, 0.009915624745190144, 0.0005656212451867759, 0.01785808987915516, 0.032178573310375214, 0.021544741466641426, 0.002275333972647786, 0.029658393934369087, 0.008331745862960815, 0.0052204676903784275, -0.03280354291200638, 0.041936080902814865, 0.02315216138958931, -0.28357434272766113, 0.008753827773034573, 0.014209608547389507, -0.050558336079120636, 0.0216593686491251, 0.01190008781850338, 0.013592695817351341, -0.05109487473964691, -0.012301301583647728, 0.04554251208901405, -0.0015124049969017506, -0.06114235892891884, -0.0008479800308123231, 0.07738471776247025, 0.019679037854075432, 0.007972448132932186, 0.02052529901266098, -0.037478335201740265, 0.005776295438408852, 0.06977542489767075, -0.008459409698843956, -0.08729170262813568, 0.014855059795081615, 0.0477195642888546, 0.018614131957292557, 0.012995438650250435, -0.1070326492190361, 0.04858255758881569, -0.03514031693339348, 0.003981896676123142, -0.01331703457981348, 0.004284913185983896, -0.013318154029548168, -0.0259570125490427, -0.01687534525990486, 0.005115623585879803, 0.01962350308895111, 0.012503153644502163, 0.004834713414311409, 0.04228145629167557, -0.043398767709732056, -0.0426502600312233, -0.025739559903740883, 0.011486872099339962, 0.06206967309117317, 0.016832510009407997, -0.04623570665717125, -0.03279295191168785, -0.038921378552913666, 0.06029723957180977, -0.04310678318142891, -0.03512502834200859, -0.01846647448837757, 0.032139670103788376, -0.005005954764783382, -0.03104809857904911, 0.011228471994400024, -0.0436253696680069, -0.05073587968945503, -0.021007921546697617, -0.027905849739909172, -0.033121902495622635, -0.028326263651251793, -0.04084743931889534, -0.014506026171147823, -0.048801667988300323, -0.05620242655277252, -0.0064424690790474415, 0.0597054697573185, 0.005450763273984194, -0.0053565772250294685, 0.017731478437781334, -0.01101573184132576, -0.12299318611621857, -0.001410208409652114, -0.027486389502882957, -0.006584809627383947, -0.06123719364404678, 0.012721128761768341, 0.032275665551424026, -0.0326726920902729, -0.044467318803071976, 0.03318524733185768, 0.03317008167505264, 0.027261005714535713, -0.008009684272110462, 0.03697381541132927, 0.0049172635190188885, -0.047950319945812225, 0.0016205708961933851, 0.06866780668497086, 0.0008361192303709686, -0.029983719810843468, -0.019954077899456024, 0.012050957418978214, 0.01884879730641842, 0.037782832980155945, -0.02990224026143551, 0.0067251999862492085, 0.02909487672150135, -0.0068895029835402966, -0.0697057694196701, 0.026041297242045403, 0.006340965628623962, 0.0038357414305210114, -0.010178135707974434, -0.06571041792631149, 0.037817567586898804, 0.04106592386960983, 0.006160408724099398, -0.016508277505636215, -0.04110374674201012, 0.022871190682053566, -0.041118767112493515, -0.0327666737139225, -0.02731308899819851, 0.004172638989984989, 0.021565411239862442, -0.029266631230711937, -0.04153502732515335, -0.05027724429965019, 0.016545815393328667, 0.01382998377084732, -0.004711072891950607, -0.07171333581209183, -0.04112175852060318, -0.0066244457848370075, -0.0015190738486126065, -0.021578341722488403, 0.022328831255435944, -0.012629368342459202, 0.04019903391599655, 0.03986218199133873, -0.024475835263729095, 0.007884981110692024, 0.01666085794568062, -0.04244282841682434, -0.01966504193842411, -0.016562122851610184, -0.016333241015672684, 0.013000722974538803, -0.003330651903524995, 0.02551870234310627, 0.03242192044854164, 0.05200181528925896, -0.008052119053900242, 0.0352298803627491, -0.011656521819531918, -0.0017016452038660645, 0.02522066794335842, 0.019562970846891403, -0.09286060184240341, 0.033786430954933167, -0.03537891432642937, -0.03499355539679527, -0.052168793976306915, 0.04033704847097397, -0.012422827072441578, -0.02799648605287075, -0.028635969385504723, 0.022695476189255714, -0.055413972586393356, -0.019153816625475883, -0.034559495747089386, 0.020820990204811096, 0.061160191893577576, -0.025553448125720024, 0.03772240877151489, -0.002054997021332383, -0.052917055785655975, -0.011752133257687092, -0.01109074242413044, -0.014314798638224602, 0.012659328058362007, -0.0021361596882343292, -0.0016045001102611423, -0.014405250549316406, -0.010513349436223507, 0.035823166370391846, 0.004316004924476147, 0.005184125620871782, -0.04973945394158363, 0.02061541937291622, 0.02342461235821247, 0.05588463693857193, -0.007096446584910154, 0.024058250710368156, 0.0029104622080922127, 0.0025353445671498775, -0.013377631083130836, -0.045102015137672424, -0.007883277721703053, -0.005365818738937378, 0.04358937218785286, -0.051094312220811844, -0.06739436089992523, 0.04217198118567467, 0.00019533952581696212, 0.03611775487661362, 0.007897445932030678, 0.021742194890975952, 0.0010100179351866245, 0.0009838879341259599, 0.024353139102458954, 0.0361616387963295, -0.05344028025865555, -0.006265249103307724, 0.013258115388453007, -0.006613501813262701, 0.025479992851614952, -0.01131222490221262, -0.06805021315813065, -0.03531983494758606, -0.014311701990664005, -0.013804564252495766, -0.06133967638015747, -0.029035259038209915, -0.02706010453402996, 0.014783872291445732, 0.005524884443730116, -0.021975241601467133, 0.015563232824206352, -0.01550939679145813, 0.010357393883168697, -0.023060599341988564, 0.010422983206808567, -0.033940643072128296, 0.0031586484983563423, 0.03924715891480446, -0.026638226583600044, 0.011231859214603901, 0.01829017512500286, 0.02890952117741108, 0.030213411897420883, -0.03564547002315521, -0.054152898490428925, -0.01146196573972702, 0.013261767104268074, -0.021499978378415108, 0.044855404645204544, -0.0002996644761878997, -0.025529315695166588, -0.027424555271863937, -0.012723464518785477, -0.03802492842078209, 0.028337648138403893, -0.00478475634008646, -0.020800555124878883, 0.03683009743690491, 0.0535488985478878, 0.011378888972103596, 0.039893511682748795, -0.015035329386591911, -0.01498450618237257, 0.05596362054347992, -0.05532749742269516, -0.006214723456650972, -0.033082325011491776, -0.05732110142707825, 0.008475074544548988, 0.00771279027685523, 0.012035679072141647, -0.02959093265235424, 0.02667911909520626, 0.01023123413324356, 0.02992129884660244, 0.05028194189071655, 0.013145849108695984, 0.04984929412603378, -0.0522751659154892, 0.0007994710467755795, -0.08165402710437775, 0.025873539969325066, 0.04693808779120445, -0.0012439036509022117, -0.016087191179394722, -0.020359128713607788, -0.029468245804309845, 0.04404096677899361, -0.0471966378390789, -0.005950809456408024, 0.04703976958990097, -0.001261311350390315, -0.019984260201454163, 0.03171553462743759, -0.06277844309806824, 0.030186552554368973, 0.021033717319369316, -0.03740759193897247, -0.0527462400496006, -0.013671359047293663, 0.02864290587604046, 0.0008646754431538284, 0.007162468042224646, -0.028539173305034637, 0.03180274739861488, 0.06003299355506897, 0.015512059442698956, 0.040132075548172, 0.0202557984739542, -0.0362769179046154, 0.026562845334410667, 0.03070315159857273, 0.009194577112793922, -0.031774211674928665, 0.004978624638170004, -0.008674295619130135, -0.06757014244794846, 0.036465562880039215, 0.023399095982313156, -0.05315137282013893, -0.030755221843719482, 0.0627942904829979, 0.0224122516810894, -0.03436849266290665, -0.03035060502588749, 0.0030158949084579945, -0.06705277413129807, -0.020794207230210304, -0.008342036046087742, 0.0033243419602513313, -0.009164196439087391, 0.06177405267953873, 0.00397221464663744, 0.00499209389090538, 0.07781686633825302, -0.020826471969485283, -0.010711069218814373, -0.018831107765436172, 0.0943414643406868, 0.09972234070301056, 0.03467273339629173, 0.0016266170423477888, 0.0594794936478138, -0.03991781175136566, -0.03934164717793465, 0.0285959392786026, -0.010364633984863758, -0.005229824688285589, -0.015382198616862297, -0.003280041739344597, 0.05498930811882019, -0.024334343150258064, 0.035127732902765274, -0.03039906919002533, -0.0004033727163914591, 0.0047263335436582565, 0.017686424776911736, 0.006658367812633514, 0.08554480224847794, 0.01043761894106865, 0.005686068907380104, -0.0040419744327664375, -0.037940558046102524, 0.000902878527995199, -0.054561156779527664, -0.022656818851828575, 0.02829960361123085, 0.00027222814969718456, 0.02032073400914669, 0.007449474185705185, 0.04408641904592514, 0.09375247359275818, -0.019244255498051643, 0.037744224071502686, -0.004364553838968277, 0.01810869202017784, 0.01686173491179943, 0.0016889383550733328, -0.012955037876963615, -0.02009286731481552, 0.005138338543474674, -0.014156387187540531, -0.01519546378403902, -0.02269170992076397, -0.03499188274145126, 0.06091174855828285, 0.003215221455320716, 0.003987510688602924, 0.009000828489661217, 0.016870683059096336, -0.01810682751238346, -0.050832826644182205, -0.07083144038915634, -0.025039639323949814, -0.04889657348394394, -0.02268686331808567, 0.04159398004412651, 0.00555034726858139, -0.050266992300748825, -0.028992410749197006, -0.017287274822592735, -0.00375727959908545, 0.07465057075023651, -0.03701845556497574, -0.03830816596746445, 0.03220333158969879, 0.04139247164130211, 0.026375746354460716, -0.009980322793126106, 0.05013754218816757, 0.0009145811200141907, -0.0017784315859898925, -0.06233518570661545, 0.01825612038373947, 0.0267413891851902, -0.0011128217447549105, 0.010269070975482464, -0.07960464805364609, -0.0058764019049704075, 0.013482975773513317, -0.02105385810136795, -0.06253550201654434, 0.02322806976735592, -0.009056235663592815, 0.022459331899881363, 0.04955694079399109, -0.024141687899827957, 0.01688074879348278, -0.007609165273606777, -0.016790732741355896, 0.015424670651555061, 0.021305551752448082, 0.04542403295636177, -0.019469130784273148, 0.08726662397384644, 0.038955170661211014, -0.04783635213971138, -0.0400073379278183, -0.006669186986982822, 0.004228029865771532, 0.0054483795538544655, -0.033648040145635605, -0.04213770106434822, -0.03654089942574501, -0.06822578608989716, -0.009083142504096031, 0.05385773256421089, -0.027759626507759094, -0.026103781536221504, 0.005348981823772192, 0.01938449777662754, -0.043536897748708725, 0.027864105999469757, -0.05447515472769737, 0.045234955847263336, -0.008307132869958878, -0.011999177746474743, 0.016570596024394035, -0.014050832949578762, 0.0033392836339771748, 0.020999198779463768, 0.006682001519948244, -0.035956889390945435, -0.02561725676059723, -0.00696110213175416, 0.038457293063402176, 0.018430834636092186, -0.005211351439356804, -0.02397267334163189 ]
[ -0.1092768982052803, 0.03636989742517471, -0.017174648120999336, -0.040272291749715805, 0.037585239857435226, -0.022215625271201134, 0.021531732752919197, 0.016752751544117928, -0.021615369245409966, -0.017854275181889534, -0.017910722643136978, -0.02531549334526062, -0.04404478147625923, 0.009571303613483906, 0.06591024994850159, 0.00393175333738327, 0.00018437925609759986, -0.040624573826789856, 0.02139732427895069, 0.017875060439109802, 0.0438995286822319, -0.009913759306073189, -0.052566658705472946, -0.033605001866817474, 0.029700323939323425, 0.07471553981304169, 0.05053288862109184, -0.033630385994911194, 0.019436143338680267, -0.20167812705039978, -0.010908740572631359, -0.008978535421192646, 0.02699393965303898, -0.032408684492111206, 0.013500693254172802, 0.045886117964982986, 0.010925499722361565, -0.0007351514650508761, -0.015096018090844154, 0.04694646969437599, 0.016994724050164223, 0.04769054055213928, -0.029886556789278984, -0.0406171940267086, 0.017939819023013115, -0.014982304535806179, 0.006021446548402309, -0.051306020468473434, -0.03140163794159889, 0.01766856387257576, -0.053671251982450485, -0.02657451294362545, -0.014126126654446125, -0.037321481853723526, -0.006782826967537403, 0.021944783627986908, 0.045433517545461655, 0.07607186585664749, -0.002511216327548027, 0.0001600594405317679, 0.02123991958796978, -0.03118877112865448, -0.1332133710384369, 0.10992132127285004, 0.0719851702451706, 0.07196055352687836, -0.034873273223638535, -0.01895846612751484, 0.008532313629984856, 0.09344889968633652, 0.03252014145255089, -0.015593531541526318, -0.016377197578549385, 0.04624743387103081, 0.02827155590057373, -0.02283940277993679, 0.001118596876040101, 0.0006930190720595419, 0.05340204015374184, -0.04542706534266472, -0.04433180391788483, 0.0032474033068865538, 0.008374282158911228, -0.02189849317073822, -0.037352874875068665, -0.014158248901367188, -0.0004253898514434695, 0.01867542415857315, 0.0392056480050087, 0.06231481209397316, 0.010941716842353344, -0.02522105909883976, 0.03084772825241089, -0.021167919039726257, -0.06569356471300125, -0.016664206981658936, -0.03249764442443848, -0.005774256773293018, -0.04052146524190903, 0.3971904218196869, -0.04657074064016342, -0.027542507275938988, 0.06402011215686798, 0.03789818659424782, -0.01771882176399231, 0.0347248800098896, 0.02578716166317463, -0.05261099711060524, -0.004806946963071823, -0.01796959526836872, 0.0009654039167799056, 0.018876176327466965, 0.03239916265010834, -0.028613772243261337, -0.02371036633849144, -0.009210081771016121, 0.047115884721279144, -0.001935793086886406, 0.005787935573607683, -0.00864086952060461, 0.0018634756561368704, -0.0014839392388239503, 0.024727635085582733, -0.022828275337815285, 0.018976230174303055, -0.05541874095797539, 0.014313007704913616, 0.0643862634897232, 0.025281865149736404, -0.020885244011878967, 0.03469995781779289, -0.0457022562623024, -0.09207610040903091, 0.003835292300209403, 0.023956533521413803, 0.011792550794780254, 0.015511893667280674, -0.02286515198647976, 0.006003041286021471, 0.04181075841188431, -0.003935917280614376, -0.022770605981349945, 0.03599662706255913, -0.01656881533563137, -0.06458903104066849, 0.12202924489974976, 0.018580835312604904, -0.024368243291974068, -0.02795693464577198, -0.027905691415071487, 0.02993418090045452, 0.05580970272421837, -0.01722104474902153, -0.05174661800265312, 0.0125641580671072, 0.013932589441537857, 0.041174598038196564, 0.01989133283495903, -0.055581748485565186, -0.017886774614453316, -0.04094184190034866, -0.018274234607815742, -0.04099731892347336, 0.06025170907378197, 0.017132097855210304, -0.08737452328205109, -0.039570074528455734, 0.02024439536035061, 0.05361103266477585, -0.0907905250787735, 0.009788180701434612, 0.05123961344361305, -0.05435372516512871, -0.034838274121284485, 0.01662648655474186, -0.013820217922329903, -0.01547244656831026, 0.018466686829924583, 0.01084333285689354, 0.032677408307790756, 0.016775304451584816, 0.009285960346460342, -0.04718494042754173, 0.010650173760950565, -0.014320619404315948, -0.04589376226067543, -0.034000083804130554, 0.0019493693253025413, -0.01276069600135088, -0.025650810450315475, -0.0036219044122844934, -0.029799235984683037, -0.06574112176895142, 0.08600308746099472, -0.05366825312376022, -0.025949859991669655, 0.022325506433844566, 0.004159505479037762, -0.02019129879772663, -0.013308702036738396, -0.009210463613271713, 0.05790705233812332, -0.04079223424196243, 0.029250727966427803, -0.05815793201327324, 0.06417685002088547, 0.060825977474451065, -0.06182042136788368, 0.047942958772182465, 0.02359486185014248, -0.038721028715372086, -0.032649800181388855, -0.01781078614294529, 0.03510526940226555, 0.009265945293009281, -0.03985288366675377, 0.0076793828047811985, 0.016257809475064278, -0.01950097270309925, 0.027505265548825264, -0.05968020111322403, -0.013482864014804363, -0.007910476066172123, -0.35554149746894836, -0.031810276210308075, -0.032698873430490494, -0.004060438834130764, 0.01784818060696125, -0.047179486602544785, -0.004950713366270065, -0.013801480643451214, -0.0033468895126134157, -0.027087928727269173, 0.06808243691921234, -0.002316563855856657, -0.016719574108719826, -0.1036585196852684, 0.0180628951638937, 0.02578955702483654, -0.051564838737249374, -0.05513892322778702, -0.06610476970672607, 0.02306808903813362, -0.0019782076124101877, 0.012410897761583328, -0.017128214240074158, -0.06664294004440308, -0.004904019646346569, -0.06155011057853699, 0.08531610667705536, -0.031073467805981636, 0.09967728704214096, -0.0026904637925326824, 0.03212764114141464, 0.010614845901727676, 0.02551356703042984, -0.1007329449057579, 0.01696520857512951, -0.01528021041303873, -0.02948017045855522, 0.0067412531934678555, 0.04132229834794998, -0.042094986885786057, -0.02553548850119114, 0.014851676300168037, -0.03862429037690163, -0.03553612157702446, -0.02767198532819748, -0.006284251809120178, 0.01474890299141407, -0.017177250236272812, -0.026651548221707344, 0.07705415785312653, -0.00805989932268858, 0.007654073182493448, 0.008825469762086868, 0.05358995869755745, -0.016970258206129074, -0.02569267340004444, -0.08156479895114899, -0.02931116707623005, -0.0011985490564256907, -0.006356958765536547, 0.02790713869035244, 0.06163426488637924, 0.029741453006863594, -0.04722727835178375, -0.010246659629046917, 0.018526658415794373, -0.01293997187167406, -0.03539302572607994, 0.07421065866947174, -0.00783515814691782, -0.015396366827189922, 0.13614849746227264, -0.009006389416754246, -0.02791714109480381, 0.04825152829289436, 0.057575616985559464, -0.0018389616161584854, 0.033721670508384705, 0.01865084283053875, -0.01604638062417507, 0.00662590004503727, 0.015491629019379616, 0.018069177865982056, -0.03414611518383026, 0.013479639776051044, 0.008433021605014801, -0.0012830160558223724, -0.029672911390662193, 0.04008789360523224, -0.018414052203297615, -0.005571417976170778, -0.006845082622021437, 0.010221856646239758, -0.07214490324258804, 0.06519755721092224, 0.0009813564829528332, -0.24757759273052216, -0.013561300002038479, 0.09744296967983246, 0.05966471508145332, -0.02143663540482521, 0.044502533972263336, 0.057493675500154495, -0.06014196574687958, 0.005159622989594936, -0.019982511177659035, 0.018102366477251053, 0.0338793620467186, 0.005755582824349403, 0.019210873171687126, 0.040094681084156036, 0.0014589522033929825, 0.05737059563398361, -0.01956070400774479, 0.030487319454550743, -0.021665679290890694, -0.006380120757967234, -0.005284509155899286, 0.1786770522594452, 0.005403206683695316, 0.02678300067782402, 0.004375763237476349, 0.03182069584727287, 0.0193615835160017, 0.07097646594047546, 0.02058551274240017, 0.03938701003789902, -0.016456762328743935, 0.06678669154644012, 0.007756514009088278, 0.03416402265429497, -0.070848748087883, -0.017416439950466156, 0.0440499410033226, 0.04512452706694603, -0.013627675361931324, 0.0010186018189415336, -0.0012554164277389646, -0.01727423630654812, -0.006260543595999479, 0.09413386136293411, 0.041648540645837784, -0.008584247902035713, -0.01879705861210823, -0.04029441252350807, -0.004310218617320061, -0.04329381883144379, -0.04820682480931282, 0.014642494730651379, -0.022942431271076202, 0.0261937715113163, 0.053305745124816895, 0.017509084194898605, -0.02449372224509716, -0.013718745671212673, 0.0009636175818741322, 0.03054947778582573, 0.002610411960631609, 0.10062333941459656, 0.026146043092012405, 0.04040351137518883 ]
[ -0.007151199970394373, 0.0042620194144546986, 0.010523722507059574, 0.01109379343688488, -0.004400621168315411, -0.013834869489073753, -0.014397997409105301, 0.02316165342926979, 0.025663821026682854, 0.0168349239975214, -0.028296522796154022, -0.0017194966785609722, -0.001076334505341947, 0.012737208977341652, 0.03454139828681946, -0.010537475347518921, 0.013843710534274578, -0.01549718901515007, 0.025233155116438866, 0.020458808168768883, 0.00003638262933236547, 0.0034579725470393896, -0.00063853629399091, -0.018550930544734, -0.027775030583143234, 0.028639623895287514, -0.0003091558173764497, -0.00313149974681437, 0.011853031814098358, -0.13381856679916382, -0.01240134984254837, -0.032447390258312225, -0.013930878601968288, 0.014543685130774975, -0.01767081953585148, 0.008395310491323471, 0.047287046909332275, -0.019505498930811882, 0.004641336854547262, -0.03129927068948746, -0.012048475444316864, 0.0054680644534528255, 0.022933270782232285, -0.015071215108036995, -0.007683917880058289, 0.009584741666913033, -0.03165612369775772, -0.025902969762682915, -0.025120411068201065, -0.03673248738050461, -0.03804291412234306, 0.01193143893033266, -0.0011743548093363643, -0.001541427685879171, 0.012822241522371769, -0.0017822193913161755, 0.02727736532688141, -0.02185797318816185, -0.010405855253338814, -0.017633754760026932, 0.0005480122636072338, -0.0003711801837198436, -0.019800961017608643, -0.008088678121566772, -0.042923979461193085, -0.0023646147456020117, 0.0045112501829862595, 0.0019882970955222845, 0.004675989970564842, -0.00018323873518966138, -0.02395348995923996, 0.002862172434106469, 0.015804100781679153, -0.0019165454432368279, 0.0131520451977849, 0.009186852723360062, -0.007953540422022343, 0.001918276073411107, 0.04204781726002693, -0.012424327433109283, -0.048637062311172485, 0.03653642162680626, 0.010529132559895515, 0.026287293061614037, 0.0029016751796007156, 0.0023614715319126844, 0.0009460545843467116, -0.009604067541658878, 0.011857145465910435, 0.041097454726696014, 0.0016183869447559118, 0.023769622668623924, -0.010266145691275597, 0.027120981365442276, -0.06296491622924805, -0.019902069121599197, -0.023854367434978485, -0.024455368518829346, 0.013279818929731846, 0.8703078627586365, 0.019479146227240562, 0.05617009848356247, 0.025358077138662338, 0.036309875547885895, 0.00849481113255024, 0.0016754943644627929, -0.02298988215625286, -0.01473096664994955, 0.03338323533535004, -0.007377977017313242, -0.017439188435673714, 0.02535216137766838, 0.05386362969875336, 0.004331404808908701, -0.0056167952716350555, -0.027063757181167603, -0.01888214983046055, 0.0005085983430035412, 0.0071614207699894905, 0.00910479761660099, 0.04577958583831787, -0.03835547715425491, -0.015761805698275566, -0.0002987300686072558, 0.03087981976568699, -0.17108166217803955, -0.01431902777403593, -1.0153099560409252e-32, 0.05076636001467705, -0.03065870702266693, 0.007457464933395386, -0.010913018137216568, 0.014205544255673885, 0.02589341625571251, 0.019931761547923088, 0.030011024326086044, 0.01874084398150444, -0.02666163444519043, 0.0013465220108628273, -0.02045917883515358, 0.007224838249385357, -0.028280334547162056, 0.0518370196223259, 0.004150259308516979, -0.018940690904855728, 0.04668183624744415, -0.019855892285704613, 0.029649876058101654, 0.0150489816442132, 0.037921253591775894, -0.0020551809575408697, -0.008703654631972313, 0.007559769321233034, 0.035960134118795395, 0.019087716937065125, -0.006533497013151646, 0.0030375439673662186, -0.037278421223163605, -0.018968753516674042, 0.008201893419027328, -0.005342376884073019, 0.009725093841552734, 0.029147788882255554, -0.02866925485432148, -0.025794174522161484, 0.015134167857468128, -0.005019837990403175, -0.04457540065050125, 0.017032800242304802, -0.030940547585487366, -0.04507756605744362, 0.005093745421618223, -0.020220182836055756, -0.026830462738871574, -0.0222745593637228, 0.02254815772175789, -0.006760906428098679, -0.01443276647478342, 0.015761950984597206, 0.009565822780132294, -0.0002576469851192087, -0.04156367853283882, -0.03945554420351982, 0.01687576062977314, -0.009000308811664581, -0.0014461501268669963, -0.007606593891978264, 0.02269871160387993, -0.003913660999387503, -0.019243566319346428, -0.0017135898815467954, 0.016354192048311234, -0.012945851311087608, -0.03213291987776756, -0.04250355437397957, -0.012976212427020073, 0.013593227602541447, 0.030924461781978607, -0.03220092132687569, 0.018682293593883514, -0.030421104282140732, 0.022200636565685272, -0.0026105372235178947, -0.018070608377456665, 0.006662080064415932, 0.021151289343833923, -0.009032533504068851, 0.02019856870174408, 0.033806174993515015, -0.007193257100880146, 0.010327214375138283, -0.03515087813138962, 0.014916383661329746, -0.0014988465700298548, -0.00003263680628151633, -0.004042221698909998, 0.007380372378975153, 0.02001514472067356, 0.03581076115369797, -0.0009826415916904807, -0.004671453032642603, -0.02142258919775486, -0.012462547980248928, 9.624750849229127e-33, 0.002613687189295888, -0.041718557476997375, -0.02895643562078476, -0.012331685051321983, 0.0004758838622365147, -0.02511814422905445, -0.008286017924547195, 0.024058302864432335, -0.054598867893218994, 0.03186732903122902, -0.02583133429288864, -0.017956934869289398, 0.012824567034840584, 0.023969631642103195, 0.015201009809970856, -0.012641686014831066, 0.040873050689697266, -0.03129987046122551, 0.024763012304902077, 0.0019579294603317976, 0.014886056073009968, 0.021390877664089203, 0.01344223041087389, 0.01040167547762394, 0.011855198070406914, 0.031437650322914124, -0.027368010953068733, 0.016979685053229332, 0.003128236625343561, -0.010337254963815212, 0.0005814519827254117, 0.00043554851436056197, 0.02620375156402588, -0.0036994016263633966, -0.015159673057496548, 0.011388394050300121, 0.0013685112353414297, -0.03390424698591232, 0.005938045680522919, 0.004422494675964117, 0.006328865420073271, 0.014585149474442005, -0.005447081755846739, 0.014162515290081501, 0.02611466869711876, 0.03353274613618851, -0.023661144077777863, -0.004674677271395922, -0.015965823084115982, -0.0015243154484778643, -0.008945026434957981, 0.0029698468279093504, 0.05888909474015236, 0.0011726687662303448, 0.0005037738010287285, -0.016312221065163612, -0.025622878223657608, -0.02103426866233349, -0.0072205825708806515, 0.022205129265785217, -0.022185001522302628, 0.037818871438503265, -0.02290910668671131, -0.007219004910439253, -0.02709602750837803, -0.0006940318271517754, -0.011270246468484402, -0.015212036669254303, -0.004971610382199287, -0.04202358052134514, -0.030561350286006927, -0.003934608306735754, -0.006028240080922842, 0.047216322273015976, 0.0693318247795105, -0.023515764623880386, -0.03885933756828308, -0.020228195935487747, -0.010024460032582283, 0.013079722411930561, -0.014435993507504463, -0.028665948659181595, 0.0290023535490036, -0.013818364590406418, -0.020941153168678284, 0.014149369671940804, -0.0013483576476573944, 0.038767002522945404, -0.02930707111954689, 0.0207685474306345, -0.02854611724615097, 0.015698183327913284, 0.013719978742301464, -0.014186716638505459, 0.00928425882011652, -1.4995077179946747e-8, -0.006198585964739323, 0.0007818707963451743, -0.016758522018790245, 0.008675259537994862, 0.0016409694217145443, 0.020842170342803, -0.020079897716641426, -0.021716194227337837, -0.0066936081275343895, -0.0077614933252334595, 0.036818068474531174, -0.0009307839209213853, 0.01876746118068695, -0.028169874101877213, 0.011749906465411186, -0.05370044335722923, -0.03404639661312103, -0.02852693386375904, 0.032415539026260376, 0.044795308262109756, 0.012306525371968746, 0.031585149466991425, -0.01667165756225586, 0.0454583577811718, 0.018798278644680977, 0.014900295995175838, 0.03162100538611412, -0.07274139672517776, -0.005551735404878855, 0.002603706903755665, -0.025286521762609482, -0.026202259585261345, -0.006381803657859564, 0.012638596817851067, -0.01603383757174015, -0.0009894396644085646, 0.02044948749244213, 0.0136526795104146, 0.016074255108833313, -0.001165952766314149, 0.011790210381150246, -0.011273724026978016, -0.01765855774283409, -0.01356200035661459, 0.0043900273740291595, -0.0039423792622983456, -0.032698266208171844, -0.012159669771790504, 0.008998421020805836, -0.04566076397895813, 0.011907723732292652, 0.030558740720152855, -0.0074050105176866055, 0.010659929364919662, 0.009747995063662529, 0.01197389792650938, 0.01749245449900627, -0.006598019041121006, -0.051595188677310944, 0.014274495653808117, 0.040151432156562805, 0.017543168738484383, -0.01868867687880993, -0.022766191512346268 ]
oop-behavioural-and-structural-constraints
https://markhneedham.com/blog/2009/12/31/oop-behavioural-and-structural-constraints
false
2009-12-01 23:26:38
Fundamentals of Object-Oriented Design in UML: Book Review
[ "books", "object-orientation", "book-review" ]
[ "Books" ]
One of my favourite recent blog posts is one written by http://www.codeodor.com/index.cfm/2009/6/17/Strive-for-low-coupling-and-high-cohesion-What-does-that-even-mean/2902[Sammy Larbi on coupling and cohesion] and while discussing it with http://fragmental.tw/[Phil] he suggested that I would probably like this book and in particular http://www.markhneedham.com/blog/2009/10/28/coding-connascence-some-examples/[the chapter on connascence which I've previously written about]. == The Book http://www.amazon.com/gp/product/020169946X?ie=UTF8&tag=marneesblo-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=020169946X[Fundamentals of Object-Oriented Design in UML] by Meilir Page-Jones == The Review I really enjoyed reading this book and I think it's one that I could come back and read again to gain something else from in the future. Nearly all the mistakes that I've made and seen made with respect to the design of object oriented code are outlined in one form or the other in this book. The book is split into three sections. The first discusses some fairly basic object oriented concepts, the second covers UML as a notation for describing our designs and the final section goes more deeply into the principles of object-oriented design. == What did I learn? * Although we don't seem to use UML much these days I was coming to the conclusion while reading those chapters that perhaps UML is useful as a design tool but the aim shouldn't be to come up with a UML diagram, but rather to drive a design in code. This is something which http://blog.objectmentor.com/articles/2009/10/08/tdd-triage[Uncle Bob also touched on recently]: + ____ Is TDD a replacement for design? No. You still need all your design skills. You still need to know design principles, and design patterns. You should know UML. And, yes, you should create lightweight models of your proposed software designs. ____ + We actually found on a project I worked on recently that everyone had a different way of diagramming a design and it would have been useful to have a common notation between us. UML is surely the tool to solve that problem. * I quite like the way that Page-Jones describes the *different types of messages* that objects can receive: ** Informative - a message telling an object about something that happened in the past. ** Interrogative - a message asking an object to reveal something about itself. ** Imperative - a message telling an object to take some action on itself. + An interrogative message is effectively a getter whereas the other two are commands being sent to the object. I've not seen the distinction between events which happened in the past and those which are going to happen in the immediate future. * I've frequently come across the idea of information hiding when it comes to designing objects but Page-Jones introduces the idea of *implementation hiding* which I think is really neat. The idea is that while some information about our object will be viewable to other objects e.g. through attributes/getters, we can still hide the implementation of that information internally so that if we we want to change it in the future then we won't have to change all its clients too. * I found the concept of the *rings of operation* really interesting. The idea is that there are some methods on our objects which just make use of other methods on the same object. Those methods wouldn't touch any of the fields of an object directly but would rely on those methods in the inner rings to do so. For example if we have a getter on an object to access a field then if other methods on that object want to access that field they should go via the getter instead of accessing the field directly. I often find myself avoiding using getters with the hope that if don't increase their usage then it will be easier to get rid of them in the future. This approach would discourage doing that. * I like the idea of http://www.markhneedham.com/blog/2009/11/19/two-controllers-type-conformance-and-the-liskov-substitution-principle/[type conformance] when it comes to inheritance - we should try to ensure that any sub types adhere to the contract of their parent. The other part of this chapter describes '*closed behaviour*' - all the operations on any class that we inherit from should obey our class' invariant. I think this can be where we go wrong when http://www.markhneedham.com/blog/2009/07/24/wrapping-collections-inheritance-vs-composition/[we write classes which extend a List for example]. The API of a List will typically have 'Add' and ''Remove' operations but on a lot of the application I work on we only want the 'Add' functionality and not the 'Remove' option. Page Jones suggests that if we want to use inheritance in this situation then we should override methods on the super class to make 'Remove' do nothing. * I now find that I prefer Page Jones definition of cohesion: + ____ Class cohesion is the measure of interrelatedness of the features (the attributes and operations) located in the external interface of a class ____ + I'm inclined to believe that we might be able to tell how related the features are by looking at the clients of the class and seeing whether they are all using the class in similar ways. He then outlines three signs that we have cohesion problems with a class: ** Mixed instance cohesion - a class has some features that are undefined for some objects of the class. I find that this typically happens when we try to make a generic data type to cover everything and then try to jam any variations on the type into the same definition. It is typically solved by pulling out another class. This is the worst type of cohesion. ** Mixed domain cohesion - a class contains an element that directly couples the class with another class that is unrelated domain wise. This typically happens when we mix infrastructure code into our domain code. ** Mixed role cohesion - a class contains an element that couples it with an unrelated class in the same domain. I think this is the most typical type of cohesion that I've seen and the main problem is that we end up with classes which have multiple roles which makes them difficult to change. + </ul> + == In Summary + There's way more in this book than I could ever hope to cover here but these are some of the interesting bits that stood out from this reading of it. I'm pretty sure that I'll come back to this one in the future. While reading the book I had the feeling that some of the ideas are quite similar to those in Domain Driven Design and since this book was published it contributes to my belief that http://www.markhneedham.com/blog/2008/09/20/similarities-between-domain-driven-design-object-oriented-programming/[a lot of DDD is covered by just doing OOP well]. Overall this is a really good book, worth reading.
null
null
[ 0.01821732148528099, 0.0252886563539505, 0.0023523850832134485, 0.03138737380504608, 0.08424855023622513, -0.0020851190201938152, 0.03633441403508186, 0.03753795102238655, 0.026960156857967377, -0.03213149309158325, -0.006808815989643335, 0.0016105041140690446, -0.05689558759331703, 0.0032504424452781677, -0.02890404686331749, 0.05083565413951874, 0.055722370743751526, 0.0017113384092226624, 0.02113104797899723, 0.012982274405658245, 0.022483214735984802, 0.0456363707780838, -0.01570305973291397, 0.04191824421286583, 0.041281748563051224, 0.003805724671110511, 0.03161095455288887, 0.0076818084344267845, -0.05441273748874664, 0.0017443456454202533, 0.027825964614748955, 0.010805623605847359, 0.003931574523448944, -0.015775106847286224, 0.00023938651429489255, -0.013635357841849327, -0.034655872732400894, 0.005599772557616234, 0.008207944221794605, -0.000052281309763202444, -0.06437031924724579, 0.051356617361307144, -0.0019185920245945454, 0.0007711415528319776, -0.027971379458904266, -0.006986654829233885, -0.05533863231539726, 0.01284388080239296, -0.016656862571835518, -0.0011447068536654115, -0.05964348837733269, 0.02638905495405197, 0.000033986230846494436, 0.018296556547284126, -0.030034726485610008, 0.05309212952852249, 0.031460050493478775, -0.06083149090409279, 0.017578132450580597, -0.06225615739822388, 0.00057491275947541, -0.013374022208154202, 0.009302668273448944, 0.027874736115336418, 0.015002262778580189, -0.018463362008333206, -0.030485328286886215, 0.027072712779045105, -0.03258951008319855, -0.0033645392395555973, -0.016574982553720474, 0.007274127099663019, 0.0020260990131646395, -0.008844427764415741, 0.009958303533494473, -0.04944784566760063, 0.011222701519727707, 0.06082606315612793, 0.007444103714078665, 0.041407227516174316, -0.026454707607626915, 0.02160372957587242, 0.02150828391313553, 0.025958256796002388, -0.013055074028670788, -0.03414410352706909, -0.018303198739886284, 0.00647491542622447, -0.04969419538974762, 0.05929724499583244, 0.015326940454542637, -0.07374212890863419, 0.020158758386969566, 0.05192288011312485, -0.00013373098045121878, 0.011028685607016087, 0.02632773481309414, 0.041986074298620224, -0.018210817128419876, -0.013821130618453026, -0.01424769964069128, -0.027455469593405724, -0.0012753615155816078, -0.0014907624572515488, -0.07630066573619843, -0.019896024838089943, -0.032332949340343475, -0.039392344653606415, -0.01659606583416462, 0.003344130702316761, -0.029457934200763702, 0.012145726941525936, -0.028711531311273575, -0.013181529007852077, -0.062170639634132385, 0.07488946616649628, 0.01572559028863907, -0.043556272983551025, -0.010627911426126957, 0.005945404525846243, 0.033176299184560776, 0.018784483894705772, -0.009557649493217468, 0.07354553043842316, 0.02482752315700054, 0.028752241283655167, -0.041446857154369354, 0.04948832467198372, -0.03569983318448067, -0.04952375590801239, -0.004993423819541931, 0.05338041111826897, -0.0504230372607708, -0.010685980319976807, 0.003683157730847597, -0.025582456961274147, 0.004813870880752802, 0.015810580924153328, 0.02526211552321911, 0.051234666258096695, -0.003678833832964301, -0.03867410123348236, 0.020889906212687492, 0.0034080520272254944, 0.009316389448940754, -0.0011917538940906525, 0.006535113789141178, -0.017158303409814835, -0.03515992686152458, -0.016329802572727203, 0.023847565054893494, 0.04069739580154419, -0.022137600928544998, -0.030898187309503555, 0.035506512969732285, 0.0907297134399414, 0.0317423976957798, 0.031940944492816925, -0.00184071552939713, 0.028212863951921463, 0.040087658911943436, 0.025879040360450745, 0.0034139358904212713, 0.018388336524367332, 0.004296327941119671, -0.010246641002595425, 0.005073244217783213, 0.05636349692940712, 0.020629750564694405, 0.003250044770538807, -0.07155778259038925, -0.05410058796405792, 0.040948886424303055, -0.041139330714941025, -0.0228301789611578, 0.04230255261063576, 0.09395814687013626, 0.015559069812297821, 0.04273645207285881, 0.012510105967521667, -0.07700823247432709, 0.007749265991151333, 0.04132482036948204, 0.009343528188765049, 0.03341372683644295, -0.029332226142287254, 0.0763198733329773, 0.023740746080875397, -0.02594739943742752, 0.043746426701545715, -0.0774911418557167, -0.09171590954065323, 0.005908302031457424, -0.029150113463401794, 0.06168424338102341, -0.007542974781244993, -0.0008738112519495189, 0.06999804079532623, 0.0015199704794213176, 0.05589788779616356, 0.02386099100112915, 0.03525400906801224, 0.018840473145246506, -0.02825222536921501, -0.010503693483769894, 0.02641082927584648, 0.0438542477786541, 0.0033591678366065025, -0.07666809111833572, -0.00041645331657491624, 0.01795659214258194, -0.02505514770746231, 0.050330229103565216, -0.02909293957054615, 0.02893967367708683, 0.0028578671626746655, 0.07715468853712082, -0.0329621322453022, 0.05544731765985489, -0.06093858554959297, -0.0027653963770717382, 0.010145374573767185, -0.04619740694761276, 0.024310966953635216, -0.009395602159202099, 0.09718851000070572, 0.050477493554353714, -0.04522010684013367, -0.010804342105984688, 0.020930539816617966, 0.01325884647667408, -0.03582821786403656, 0.01123589277267456, -0.01959025114774704, 0.003797633107751608, -0.002237060572952032, -0.055721405893564224, -0.008133234456181526, 0.02724440209567547, -0.03330722078680992, 0.019720671698451042, 0.08158621937036514, -0.007405402138829231, 0.03693939000368118, -0.019530367106199265, -0.005704666953533888, -0.02062973380088806, -0.022481437772512436, -0.05768562853336334, 0.016237089410424232, -0.010218126699328423, -0.006446963641792536, 0.05830792710185051, -0.02441048063337803, -0.0364358015358448, -0.032308485358953476, -0.03196791559457779, 0.030718669295310974, 0.03634575009346008, 0.06627287715673447, 0.01186140812933445, 0.05915133282542229, 0.00944620743393898, 0.040932126343250275, 0.0036347443237900734, -0.058074500411748886, -0.05982787534594536, -0.042460352182388306, 0.0009399289265275002, 0.05490660294890404, -0.0010968593414872885, 0.04776584357023239, 0.018371116369962692, 0.004105719737708569, -0.02227727137506008, -0.006914176046848297, 0.03912850469350815, 0.017482101917266846, -0.018674751743674278, -0.022512391209602356, -0.04490683972835541, 0.047307755798101425, -0.046111900359392166, -0.04395915940403938, 0.0017429684521630406, -0.06082845479249954, 0.07309745252132416, -0.06513938307762146, -0.04632836580276489, 0.019566690549254417, 0.018947122618556023, 0.046628911048173904, -0.004262170288711786, 0.022334879264235497, 0.06345278769731522, 0.02029028907418251, 0.0017462688265368342, -0.01389321405440569, -0.012079475447535515, 0.031079305335879326, 0.001376778120175004, -0.009970283135771751, 0.059187259525060654, 0.008895556442439556, 0.005429374985396862, -0.04478221759200096, 0.04385604336857796, -0.0007516341283917427, -0.28596553206443787, -0.004665229003876448, 0.00787340197712183, -0.06415314972400665, 0.016010617837309837, 0.00874724704772234, -0.010464992374181747, -0.05887729674577713, -0.026616200804710388, 0.023473061621189117, -0.022337889298796654, -0.029262734577059746, -0.013394486159086227, 0.050097499042749405, 0.015820907428860664, 0.024951307103037834, 0.03732994943857193, -0.023585906252264977, 0.00008966707537183538, 0.061026863753795624, -0.01312696747481823, -0.08356636017560959, -0.006023736204952002, 0.03839704394340515, 0.016511745750904083, 0.025673165917396545, -0.11528106778860092, 0.03993484377861023, -0.05632523074746132, 0.01450168713927269, 0.009869727306067944, 0.016559328883886337, -0.011156020686030388, -0.028933746740221977, -0.014834522269666195, -0.011999442242085934, 0.02760794386267662, 0.018916744738817215, -0.015955433249473572, 0.0100324135273695, -0.00790519267320633, -0.010424744337797165, -0.018402568995952606, 0.009147347882390022, 0.060660455375909805, -0.00005885128121008165, -0.06262663751840591, -0.021633384749293327, -0.027417853474617004, 0.08612015843391418, -0.0514584518969059, -0.03958502411842346, 0.015583173371851444, 0.04381151869893074, -0.0040932875126600266, -0.038562338799238205, -0.0015333200572058558, -0.01938731037080288, -0.03723025694489479, -0.019263194873929024, -0.014475381001830101, -0.040642160922288895, -0.0073027038015425205, -0.059130437672138214, -0.005279602017253637, -0.04498762637376785, -0.07601749151945114, -0.017657427117228508, 0.06206755340099335, 0.03453284129500389, -0.023952685296535492, 0.025892820209264755, -0.009661407209932804, -0.1152113750576973, -0.004460580181330442, -0.003367320168763399, 0.0007883179932832718, -0.02072884328663349, 0.016067033633589745, 0.03385825827717781, -0.020181220024824142, -0.06197136268019676, 0.03192443773150444, 0.03451266139745712, 0.008855300024151802, -0.016663767397403717, 0.02548079937696457, 0.008418580517172813, -0.0363156683743, 0.011405384168028831, 0.06335742026567459, 0.017992865294218063, -0.029993657022714615, -0.03101366199553013, 0.03316023200750351, 0.021498560905456543, 0.03860854357481003, -0.026597460731863976, 0.0056406608782708645, 0.04117146506905556, -0.004229206126183271, -0.07548224180936813, 0.029172036796808243, -0.00028434634441509843, -0.004344838205724955, -0.014625600539147854, -0.03480805829167366, 0.004792348947376013, 0.04002290964126587, 0.014024732634425163, -0.018889106810092926, -0.05287613719701767, 0.01859375089406967, -0.04453492909669876, -0.06435398012399673, -0.03752342239022255, 0.0136227086186409, 0.04689646139740944, -0.028306081891059875, -0.00951305776834488, -0.05113496258854866, 0.0066494266502559185, -0.018828557804226875, -0.01830710470676422, -0.05122840404510498, -0.03288484364748001, -0.02247747778892517, -0.02829701639711857, 0.002300773747265339, 0.038086116313934326, -0.01504663284868002, 0.052009932696819305, 0.019896309822797775, -0.048733290284872055, 0.01506120152771473, -0.0064893621020019054, -0.07183104753494263, -0.018855107948184013, 0.0035947191063314676, -0.00048699459875933826, 0.02220180258154869, 0.01792392134666443, 0.012901422567665577, 0.018818452954292297, 0.04964416101574898, 0.0018400981789454818, 0.037614911794662476, -0.020041389390826225, 0.03834408521652222, 0.03246430307626724, -0.011202151887118816, -0.08024678379297256, 0.04632299020886421, -0.048905156552791595, -0.032945066690444946, -0.042842231690883636, 0.027949117124080658, 0.003916855435818434, -0.04335922747850418, -0.015470311976969242, 0.023860199376940727, -0.04974893853068352, -0.05245056748390198, -0.044693052768707275, 0.0236201211810112, 0.07054957002401352, -0.01676040142774582, 0.025878477841615677, -0.008115887641906738, -0.03714793175458908, 0.01767895556986332, -0.0003815822128672153, -0.02069118060171604, -0.0035251358058303595, 0.0006686157430522144, 0.01493271067738533, -0.01725626178085804, -0.0029555547516793013, 0.04857952520251274, 0.004186127334833145, -0.01872110366821289, -0.04870474338531494, 0.012833425775170326, 0.03338812291622162, 0.03731155768036842, -0.009054740890860558, -0.000761836301535368, -0.0111773032695055, -0.024325363337993622, -0.030827967450022697, -0.034421615302562714, 0.005316996946930885, 0.018092423677444458, 0.034817613661289215, -0.051972296088933945, -0.07745826989412308, 0.05057472735643387, 0.021939001977443695, 0.020848620682954788, -0.009803523309528828, 0.002747319871559739, 0.016730070114135742, -0.02980824001133442, 0.04770502820611, 0.03364931046962738, -0.054239168763160706, 0.007045747246593237, -0.0087044108659029, -0.0051238760352134705, 0.008611147291958332, -0.011662410572171211, -0.058934491127729416, -0.015600974671542645, -0.025241872295737267, -0.010332410223782063, -0.05527825281023979, -0.01458338275551796, -0.021361304447054863, 0.015585728920996189, 0.0020293702837079763, -0.026079799979925156, 0.012778951786458492, -0.022260690107941628, -0.0009290706948377192, -0.02922441065311432, 0.02736698091030121, -0.038217879831790924, 0.0002701924822758883, 0.01311848871409893, -0.03601071983575821, 0.01557894703000784, -0.023246370255947113, 0.014278058893978596, 0.026561204344034195, -0.018657224252820015, -0.008037158288061619, -0.000828134419862181, -0.008009150624275208, 0.010289248079061508, 0.042830344289541245, -0.0024656474124640226, -0.026133496314287186, -0.05057736486196518, -0.005726401228457689, -0.03148578479886055, 0.03560639172792435, -0.027685552835464478, -0.023066766560077667, 0.020676258951425552, 0.0516357421875, 0.012711664661765099, 0.042430680245161057, -0.025390684604644775, -0.014759200625121593, 0.05251478776335716, -0.06682892888784409, -0.034824687987565994, -0.023474885150790215, -0.07480807602405548, 0.00010872828715946525, 0.0037668016739189625, 0.027587704360485077, -0.023686088621616364, 0.05500950291752815, 0.025025520473718643, 0.04313379153609276, 0.040700096637010574, 0.0049893902614712715, 0.03875746950507164, -0.06113744154572487, 0.02760748378932476, -0.06543119996786118, 0.030604325234889984, 0.04516024887561798, 0.013749195262789726, -0.00617317296564579, -0.02363589033484459, -0.035275090485811234, 0.06008424609899521, -0.06901247799396515, -0.014196689240634441, 0.008014874532818794, 0.01666473224759102, -0.021105699241161346, 0.010361840948462486, -0.05271516740322113, 0.013291619718074799, 0.026818731799721718, -0.047860048711299896, -0.025883324444293976, -0.01217002421617508, 0.04463275894522667, -0.0027342706453055143, 0.047602634876966476, -0.012919233180582523, 0.013020534999668598, 0.07319945842027664, 0.019513988867402077, 0.0021959487348794937, 0.0313698947429657, -0.007881603203713894, 0.0473753996193409, 0.021374257281422615, 0.01425426360219717, -0.009613391011953354, 0.0016528514679521322, -0.007751401048153639, -0.04878722503781319, 0.013544896617531776, 0.02142297476530075, -0.037140872329473495, -0.03214702755212784, 0.05216202512383461, 0.024336516857147217, -0.026178983971476555, -0.032890141010284424, 0.004503183998167515, -0.06391231715679169, 0.010661184787750244, -0.016649091616272926, -0.018599040806293488, -0.022792847827076912, 0.0615980327129364, 0.002617333550006151, 0.0007046011742204428, 0.062202710658311844, -0.01578301563858986, -0.042271688580513, -0.02179786004126072, 0.09490688890218735, 0.08891816437244415, 0.05158577859401703, -0.0017104774015024304, 0.06620253622531891, -0.03539499267935753, -0.03886142000555992, 0.0186215341091156, -0.0006694809417240322, 0.0009909834479913116, -0.03270673006772995, -0.004546173848211765, 0.04321577027440071, -0.001555812661536038, 0.06489855796098709, -0.023329555988311768, -0.021893903613090515, -0.004499088507145643, 0.011329211294651031, 0.020909545943140984, 0.06938478350639343, 0.0004557961074169725, 0.020179713144898415, -0.014398898929357529, -0.04253195598721504, 0.004262850619852543, -0.04201189801096916, -0.008601243607699871, 0.011306902393698692, 0.0062108528800308704, 0.023641739040613174, 0.0010962679516524076, 0.04146875813603401, 0.08931978791952133, -0.024155015125870705, 0.020053397864103317, -0.008522999472916126, 0.007257502060383558, -0.006578288972377777, -0.0006724352715536952, -0.004194443579763174, -0.02085287496447563, -0.004355304874479771, -0.019017092883586884, -0.01252398919314146, -0.03094375878572464, -0.008373805321753025, 0.058493487536907196, -0.00371715915389359, -0.012630813755095005, 0.02804749831557274, 0.010571736842393875, -0.031384557485580444, -0.059191472828388214, -0.041433461010456085, -0.02145228162407875, -0.058934252709150314, -0.011551965959370136, 0.016338283196091652, 0.005120901856571436, -0.0385516956448555, -0.014240815304219723, -0.013826542533934116, -0.023690424859523773, 0.06127322465181351, -0.05552937835454941, -0.025522470474243164, 0.02045527845621109, 0.022193029522895813, 0.013181976042687893, -0.003956339322030544, 0.039311863481998444, 0.007606868166476488, -0.004116129595786333, -0.027279626578092575, -0.008829857222735882, 0.013028664514422417, 0.015643814578652382, 0.037115730345249176, -0.09839899837970734, 0.017832977697253227, 0.019459953531622887, -0.005902810022234917, -0.07243530452251434, 0.028810793533921242, 0.012774398550391197, 0.0010072607547044754, 0.03655773028731346, -0.027842896059155464, 0.030296018347144127, -0.032406121492385864, 0.013516408391296864, -0.01599256321787834, 0.03047969564795494, 0.025465071201324463, -0.014119763858616352, 0.08704060316085815, 0.010706745088100433, -0.007424876093864441, -0.042554810643196106, -0.009657531045377254, 0.011776045896112919, 0.020446961745619774, -0.02941635064780712, -0.018118206411600113, -0.03364388272166252, -0.07342211902141571, -0.024043919518589973, 0.03936648741364479, -0.020952029153704643, -0.028254205361008644, 0.01607440784573555, 0.011698161251842976, -0.05178682506084442, 0.03012676350772381, -0.045980021357536316, 0.03856271505355835, -0.01638345792889595, -0.005370195489376783, -0.0023806768003851175, -0.0015513738617300987, -0.0018008843762800097, 0.015773028135299683, 0.011459016241133213, -0.04273742064833641, -0.016254261136054993, -0.0030594212003052235, 0.014011753723025322, 0.023420237004756927, 0.028949471190571785, -0.004968107677996159 ]
[ -0.09564991295337677, -0.007082512602210045, -0.014397385530173779, -0.055471111088991165, 0.046228665858507156, -0.03394514322280884, -0.04276445135474205, 0.021107375621795654, -0.020871128886938095, -0.04391588270664215, -0.014636479318141937, -0.021112758666276932, -0.017633887007832527, -0.011898071505129337, 0.0865795910358429, 0.017553430050611496, 0.011189430952072144, -0.031826213002204895, 0.02911773882806301, -0.016493668779730797, 0.05319707468152046, -0.026773473247885704, -0.05037699267268181, -0.021491311490535736, -0.0015174292493611574, 0.04857105761766434, 0.0444401316344738, -0.03087756410241127, 0.036874767392873764, -0.19387921690940857, -0.012627458199858665, 0.04134999215602875, 0.03239018842577934, -0.01854121871292591, -0.011826379224658012, 0.03806646913290024, 0.026149773970246315, 0.010295925661921501, -0.00553861353546381, 0.03136761859059334, -0.00025751974317245185, 0.010139593854546547, -0.04344484582543373, -0.03871077299118042, 0.04448895901441574, -0.02590412087738514, -0.004924940876662731, -0.052731674164533615, -0.029682300984859467, -0.003274262882769108, -0.047536395490169525, -0.030544450506567955, -0.015798106789588928, -0.014143075793981552, -0.0009608680848032236, 0.03151971474289894, 0.03617096692323685, 0.06838621944189072, -0.026394741609692574, -0.005901665892452002, 0.017488062381744385, -0.021570704877376556, -0.12244091182947159, 0.11260774731636047, 0.05331035330891609, 0.028515949845314026, -0.03018803708255291, -0.036297544836997986, 0.010002673603594303, 0.08908117562532425, 0.015304753556847572, -0.040208376944065094, -0.025881802663207054, 0.04672020673751831, 0.023047447204589844, -0.0018891040235757828, 0.013568070717155933, -0.00249778782017529, 0.02629813179373741, -0.04665248095989227, -0.036894120275974274, -0.0030691379215568304, -0.0240954477339983, -0.02035212703049183, -0.048338428139686584, 0.006937928963452578, -0.001644860953092575, 0.037601765245199203, 0.025428883731365204, 0.03226877376437187, 0.033963512629270554, -0.03167315199971199, 0.021250875666737556, -0.01688571833074093, -0.08040362596511841, -0.005200839601457119, -0.028852393850684166, 0.004069063812494278, -0.0382448211312294, 0.45385047793388367, -0.03640979155898094, -0.03157452493906021, 0.11812497675418854, -0.0014721582410857081, 0.007672737818211317, 0.03392951935529709, 0.025320662185549736, -0.046039335429668427, 0.02222326025366783, -0.01891416124999523, 0.01809813641011715, 0.03409619256854057, 0.0033897513058036566, -0.03514564782381058, 0.02532411366701126, 0.003105236915871501, 0.015505525283515453, -0.0025280825793743134, 0.02186671458184719, -0.016889352351427078, -0.010883107781410217, -0.0031203320249915123, 0.014255194924771786, 0.02621554583311081, -0.0010644415160641074, -0.08215846866369247, -0.0036283466033637524, 0.04351130872964859, 0.026548944413661957, 0.019786309450864792, 0.05535416305065155, -0.01591566950082779, -0.04352241009473801, -0.011312988586723804, 0.01089426875114441, 0.00907045602798462, 0.01986146904528141, -0.024225899949669838, -0.005841076374053955, 0.06205273047089577, 0.01602264493703842, -0.011568327434360981, 0.03157728910446167, -0.01995842158794403, -0.03644386678934097, 0.1116538792848587, 0.010266321711242199, -0.013271044939756393, -0.026580173522233963, -0.02791590802371502, 0.02240658551454544, 0.02968992292881012, -0.009081660769879818, -0.05298387259244919, 0.01764269918203354, 0.026099085807800293, 0.0788341537117958, -0.00484905019402504, -0.053442008793354034, -0.005330208223313093, -0.0015334361232817173, -0.0413426049053669, -0.0660514235496521, 0.05850636214017868, 0.01853231154382229, -0.11687970906496048, -0.02150513418018818, 0.01240006648004055, 0.055444829165935516, -0.06165062636137009, -0.022871684283018112, 0.040971968322992325, -0.032692935317754745, -0.000922489445656538, 0.07400330156087875, -0.0028792961966246367, -0.03683951124548912, 0.009493710473179817, 0.03555959090590477, 0.013799464330077171, 0.008597265928983688, 0.025840481743216515, -0.03118196502327919, 0.002374036703258753, -0.029466109350323677, -0.05986243858933449, -0.03529280796647072, -0.017113247886300087, -0.01471153274178505, -0.007435153238475323, -0.02637997455894947, -0.0008937129168771207, -0.03909551724791527, 0.08470980823040009, -0.044168002903461456, -0.015352188609540462, 0.003991661127656698, -0.019046438857913017, -0.018050814047455788, -0.03463162109255791, -0.017625421285629272, 0.04355309158563614, -0.0648723840713501, 0.017188798636198044, -0.04564335197210312, 0.044533368200063705, 0.06086617708206177, -0.03606775403022766, 0.0843929648399353, 0.05115179717540741, -0.04333414137363434, -0.041866905987262726, 0.039447121322155, 0.027027826756238937, 0.022066447883844376, -0.034151315689086914, 0.004808106459677219, 0.04782909154891968, -0.009697183966636658, 0.006474048364907503, -0.0345466323196888, 0.010216118767857552, -0.03260481357574463, -0.32021501660346985, -0.013624685816466808, -0.028122279793024063, -0.02090609259903431, 0.023585382848978043, -0.0567018985748291, 0.020723259076476097, -0.01456552091985941, -0.030773527920246124, -0.008108998648822308, 0.08058524876832962, -0.003699270077049732, 0.01694481261074543, -0.08819793164730072, -0.019633997231721878, 0.03266219049692154, -0.032593656331300735, -0.032021552324295044, -0.0627077966928482, 0.002048814669251442, 0.004133211448788643, 0.0010466139065101743, -0.010387430898845196, -0.058773018419742584, -0.015082529745995998, -0.05983658879995346, 0.09741304814815521, -0.02640170231461525, 0.10769130289554596, -0.015437116846442223, 0.042867742478847504, -0.00732195982709527, 0.03597930446267128, -0.09861377626657486, -0.0010040421038866043, 0.008129571564495564, 0.0012504173209890723, -0.013744648545980453, 0.05464565381407738, -0.039368536323308945, -0.04892091453075409, 0.01790081523358822, -0.04921862110495567, -0.032058801501989365, -0.05897638574242592, 0.003799156052991748, -0.03613857552409172, -0.029815681278705597, -0.05063806101679802, 0.07287312299013138, -0.004392931703478098, -0.011205822229385376, 0.012102974578738213, 0.03444363921880722, -0.03817329555749893, -0.01219185907393694, -0.0784095972776413, -0.020409420132637024, 0.015586832538247108, 0.000754494802094996, 0.04841000959277153, 0.05861952528357506, 0.03251446783542633, -0.07184859365224838, -0.019574081525206566, 0.013618510216474533, -0.013491582125425339, 0.002214053412899375, 0.06653261184692383, -0.018544234335422516, -0.02303023263812065, 0.10525953769683838, 0.006120418198406696, -0.02194717526435852, 0.025452716276049614, 0.03924330696463585, -0.005674097221344709, 0.04379494860768318, 0.012891827151179314, -0.012899868190288544, -0.007842708379030228, -0.012345807626843452, 0.025309640914201736, -0.03462407365441322, 0.019970986992120743, 0.026573078706860542, -0.009674560278654099, -0.06944908946752548, 0.03434852138161659, -0.008390476927161217, -0.016023440286517143, 0.013852880336344242, 0.015610817819833755, -0.060122936964035034, 0.06582371890544891, 0.0018738446524366736, -0.2414550930261612, 0.02541886270046234, 0.08335261046886444, 0.06642796844244003, -0.025071939453482628, 0.03273510932922363, 0.03627588227391243, -0.1007632166147232, 0.02181183360517025, -0.0034235711209475994, 0.02870759181678295, 0.014938929118216038, -0.00967117678374052, -0.008836247026920319, 0.05109196901321411, 0.010629376396536827, 0.05872427299618721, -0.022674748674035072, 0.03139464557170868, 0.004676043521612883, -0.005841637495905161, -0.0015375696821138263, 0.16036058962345123, 0.0021139446180313826, 0.025090690702199936, 0.016007695347070694, 0.011353261768817902, 0.020381588488817215, 0.06566055119037628, 0.04142013564705849, 0.03237326443195343, 0.013614697381854057, 0.0466759018599987, 0.014105512760579586, 0.026336010545492172, -0.06814204156398773, -0.03475973382592201, 0.021410254761576653, 0.036229584366083145, 0.02146153151988983, 0.008959301747381687, 0.008698517456650734, -0.017366668209433556, 0.01715543307363987, 0.06998302042484283, 0.029440393671393394, 0.008675741963088512, -0.02415974996984005, -0.06786315143108368, -0.010857529938220978, -0.03518275171518326, -0.037217237055301666, 0.013815393671393394, -0.00936207640916109, 0.006813781335949898, 0.0466899573802948, 0.017661795020103455, -0.021394960582256317, -0.039458658546209335, 0.008437704294919968, 0.0009368449682369828, -0.015673844143748283, 0.10399780422449112, 0.033231187611818314, 0.0532238595187664 ]
[ -0.00762973865494132, -0.013902607373893261, -0.002758894581347704, -0.019011735916137695, -0.018093882128596306, -0.015028323046863079, -0.015838732942938805, 0.006337370257824659, 0.0004495600878726691, -0.003994781989604235, 0.002930637216195464, 0.04731053486466408, 0.0024042187724262476, 0.01367923617362976, 0.0172102227807045, 0.009753397665917873, 0.016060080379247665, -0.013049270026385784, 0.016235189512372017, 0.00971637200564146, -0.009820996783673763, 0.02520119957625866, -0.025835901498794556, -0.02605150267481804, -0.005652282387018204, 0.026052532717585564, 0.013334143906831741, -0.012954937294125557, 0.03266841918230057, -0.13959331810474396, -0.014054875820875168, -0.03765781968832016, -0.021694999188184738, 0.02173699624836445, -0.0015651643043383956, -0.021558672189712524, 0.029745440930128098, -0.019136738032102585, -0.01248782780021429, -0.0030840367544442415, -0.03919998183846474, -0.009058292023837566, 0.007993536069989204, 0.03216429054737091, -0.0269978865981102, 0.008938747458159924, -0.03852006793022156, -0.03186514973640442, -0.03147470951080322, -0.04128122329711914, -0.020555969327688217, -0.008905639871954918, -0.03582897037267685, -0.027356157079339027, -0.000338125042617321, -0.0013329209759831429, 0.01738760620355606, -0.03307356685400009, -0.008020082488656044, -0.014138196595013142, -0.010760483331978321, 0.0019218887900933623, -0.03517916053533554, -0.014432506635785103, -0.002102070488035679, -0.028417600318789482, -0.027688687667250633, 0.014769909903407097, 0.0034508267417550087, 0.004365100525319576, -0.005098486319184303, -0.0041669439524412155, -0.009066120721399784, 0.004845164250582457, 0.05138568580150604, 0.006774451583623886, -0.0030630279798060656, 0.0013790960656479, 0.028847578912973404, -0.03949054703116417, -0.06326113641262054, 0.05489287152886391, -0.007938366383314133, -0.002947126515209675, -0.00032219785498455167, -0.012214378453791142, 0.006437775678932667, -0.004827197175472975, 0.008917164988815784, 0.01767105795443058, -0.0247422493994236, 0.02538500353693962, -0.020677559077739716, 0.0056096287444233894, -0.08186924457550049, -0.0029714086558669806, 0.01057521067559719, -0.030758848413825035, -0.010507386177778244, 0.8494772911071777, -0.01776617206633091, 0.04635654762387276, 0.015358644537627697, -0.0003129500546492636, 0.0025499018374830484, 0.0013622818514704704, -0.0019726392347365618, -0.008241684176027775, 0.01734757050871849, -0.030312329530715942, 0.0037915497086942196, 0.0005824754480272532, 0.009232446551322937, 0.0022485379595309496, 0.006974722258746624, -0.020797252655029297, 0.015745937824249268, 0.010487142950296402, 0.028295302763581276, 0.019642559811472893, -0.021463781595230103, -0.014294001273810863, -0.030744872987270355, 0.035389095544815063, 0.009652902372181416, -0.22031357884407043, -0.015042150393128395, -7.593542161414309e-33, 0.022031797096133232, 0.002213579136878252, -0.009799418039619923, 0.018005073070526123, 0.02064204402267933, -0.043342120945453644, 0.03426631540060043, -0.00470457598567009, 0.0042458889074623585, -0.018934540450572968, -0.024597113952040672, 0.009928205981850624, -0.03623169660568237, -0.016269151121377945, 0.042773615568876266, -0.026282889768481255, 0.02337808348238468, 0.018958937376737595, -0.03116549924015999, 0.009354677982628345, 0.0014457307988777757, 0.03384963795542717, 0.005079354625195265, 0.01130097545683384, 0.027292337268590927, 0.054440293461084366, -0.004224119242280722, 0.03903387859463692, 0.0012995082652196288, -0.035191114991903305, -0.011596220545470715, 0.01139789167791605, 0.020481761544942856, -0.02587004564702511, -0.031084347516298294, -0.01906806416809559, -0.0364597849547863, -0.002366730011999607, 0.006034466903656721, -0.027391981333494186, -0.02058573253452778, 0.01448142621666193, -0.055434003472328186, 0.014161156490445137, 0.001083757379092276, -0.013176007196307182, 0.017065756022930145, 0.0887887179851532, 0.004137211013585329, -0.035012386739254, -0.00046201740042306483, 0.0023482507094740868, 0.005615711212158203, 0.030655445531010628, -0.025738833472132683, -0.014268381521105766, -0.02420036680996418, 0.0021853710059076548, 0.02958562597632408, 0.023361165076494217, 0.0046469406224787235, 0.0024455657694488764, -0.021757129579782486, 0.024036500602960587, 0.015800535678863525, -0.021270258352160454, 0.0076375845819711685, 0.002912649419158697, -0.0015650526620447636, -0.010416008532047272, -0.04624411463737488, 0.009824982844293118, -0.02337552420794964, -0.003069283440709114, -0.007323875091969967, -0.03135431557893753, 0.020674480125308037, 0.006003622431308031, 0.007949183695018291, 0.0210247952491045, 0.013306604698300362, 0.025562703609466553, 0.017266912385821342, -0.055410854518413544, -0.016255909577012062, 0.010066169314086437, 0.032325390726327896, -0.003361872863024473, -0.04758195951581001, 0.05904866382479668, 0.03755227103829384, 0.00020347551617305726, 0.027115505188703537, -0.01193708274513483, 0.02150566317141056, 7.202646208727742e-33, 0.01138127502053976, -0.036587536334991455, 0.006676823366433382, 0.007463918067514896, 0.02739049308001995, -0.02682744711637497, -0.017321042716503143, -0.010152087546885014, -0.06904086470603943, 0.025929231196641922, -0.04087282344698906, 0.0012258983915671706, -0.019139572978019714, 0.0005399592337198555, 0.055131152272224426, -0.010446099564433098, 0.03684024140238762, -0.018573196604847908, 0.036776818335056305, 0.03405439108610153, 0.04316730052232742, 0.012884407304227352, 0.020660940557718277, -0.027675101533532143, 0.0037660938687622547, 0.04378488287329674, -0.018219761550426483, 0.016609905287623405, -0.003943157382309437, -0.004465214908123016, 0.00179383740760386, -0.006112466566264629, 0.020191293209791183, 0.0019029369577765465, -0.017591508105397224, -0.0026545249857008457, 0.0006210816791281104, -0.015360157936811447, 0.0025057171005755663, -0.02233348973095417, 0.01889643631875515, 0.009423768147826195, -0.023110689595341682, 0.02065756730735302, 0.020863359794020653, 0.006771877873688936, -0.0016102178487926722, -0.007966935634613037, -0.026425262913107872, -0.01921456679701805, 0.010708823800086975, -0.004205253906548023, 0.01760777458548546, -0.015569204464554787, 0.002517273649573326, -0.001411045202985406, -0.008946978487074375, -0.011383360251784325, 0.019504418596625328, -0.008545378223061562, 0.016917496919631958, -0.003229793393984437, -0.004477658309042454, -0.008330095559358597, 0.00010792316606966779, 0.018945174291729927, -0.013672450557351112, 0.013817252591252327, -0.010270118713378906, -0.011451361700892448, -0.043832551687955856, 0.005419665481895208, 0.018092606216669083, 0.00448747118934989, 0.0061627221293747425, -0.008864975534379482, -0.01369714830070734, -0.004658148158341646, -0.020344657823443413, 0.021504566073417664, -0.014811613596975803, 0.00904019083827734, -0.0016415691934525967, 0.02069869451224804, -0.002879910171031952, 0.04258124157786369, 0.0041271997615695, 0.04564913734793663, -0.012643419206142426, 0.03528347611427307, -0.03162700682878494, -0.010832355357706547, 0.03217778354883194, 0.015039566904306412, 0.0062455665320158005, -1.3242890339881797e-8, -0.010985447093844414, 0.027209019288420677, -0.007448514457792044, -0.0352294035255909, 0.013341349549591541, 0.03926839306950569, 0.0029401504434645176, 0.020569154992699623, -0.011165056377649307, 0.0007828521193005145, 0.030441587790846825, -0.00024554706760682166, 0.023199087008833885, 0.013391898013651371, 0.047780320048332214, -0.0337517224252224, -0.001114912680350244, -0.033748965710401535, 0.01904955878853798, -0.0006829468766227365, -0.010349083691835403, 0.0654980018734932, 0.011851249262690544, 0.05016643926501274, 0.002637431723996997, 0.04564078897237778, 0.00663937209174037, -0.06327459961175919, -0.02215716987848282, -0.014976473525166512, 0.0001922150404425338, -0.033519864082336426, -0.006112153176218271, 0.06077980995178223, -0.006519713904708624, -0.03073793090879917, 0.038113903254270554, 0.03377271443605423, -0.01571495458483696, -0.0001957640633918345, 0.002735626418143511, 0.008592527359724045, -0.013177966699004173, -0.009394340217113495, -0.0011342940852046013, 0.027780909091234207, 0.008946188725531101, -0.025007866322994232, -0.04950576648116112, -0.012116944417357445, 0.00011495168291730806, -0.018680604174733162, -0.021663371473550797, 0.008014536462724209, -0.037910349667072296, -0.017934035509824753, -0.0014167617773637176, -0.03056296519935131, -0.012676904909312725, -0.015381456352770329, 0.0045463633723556995, 0.022841548547148705, -0.013922504149377346, -0.007938611321151257 ]
fundamentals-of-object-oriented-design-in-uml-book-review
https://markhneedham.com/blog/2009/12/01/fundamentals-of-object-oriented-design-in-uml-book-review
false
2009-12-06 03:28:05
Clojure: Unit testing in the REPL
[ "clojure" ]
[ "Clojure" ]
One thing which I think is great about coding with F# is the http://www.markhneedham.com/blog/2009/07/20/coding-quick-feedback/[quick feedback that we can get by defining and then testing out functions in the REPL]. We can do the same thing in Clojure but it's even better because we can also define and run unit tests which I think is pretty neat. Nurullah Akkaya has a http://nakkaya.com/2009/11/18/unit-testing-in-clojure/[good post which describes how to use clojure.test], a testing framework written by http://stuartsierra.com/software/clojure-stuff[Stuart Sierra] so I've been using that to define some tests cases for the http://www.markhneedham.com/blog/2009/11/30/clojure-parsing-an-rss-feed/[little RSS feed parser that I'm writing]. To use clojure.test straight out the box you need the http://github.com/richhickey/clojure[latest version of the clojure source code] as Stuart Sierra http://stuartsierra.com/software/clojure-stuff[points out on his website]. I ran the ant task for the project and then launched the REPL pointing to the 'alpha snapshot' jar instead of the '1.0.0' jar and it seems to work fine. I managed to break the 'get-title' function while playing with it before so I thought that would be a good one to try out the tests in the REPL with. This function is supposed to strip out the name and the following colon which appears in every title and just show the title of the blog post. I originally had this definition: [source,lisp] ---- (defn get-title [title] (second (first (re-seq #".*:\s(.*)" title)))) ---- I hadn't realised that this strips from the last colon in the string and therefore returns the wrong result for some inputs. I created the following tests: [source,lisp] ---- (use 'clojure.test) (deftest test-get-title (is (= "Clojure - It's awesome" (get-title "Mark Needham: Clojure - It's awesome"))) (is (= "A Book: Book Review" (get-title "Mark Needham: A Book: Book Review")))) ---- We can run those with the following function: [source,lisp] ---- (run-tests) ---- [source,text] ---- FAIL in (test-get-title) (NO_SOURCE_FILE:19) expected: (= "A Book: Book Review" (get-title "Mark Needham: A Book: Book Review")) actual: (not (= "A Book: Book Review" "Book Review")) Ran 1 tests containing 2 assertions. 1 failures, 0 errors. ---- Changing the function helps solve the problem: [source,lisp] ---- (defn- get-title [title] (second (first (re-seq #"[a-zA-Z0-9 ]+:\s(.*)" title)))) ---- [source,text] ---- Ran 1 tests containing 2 assertions. 0 failures, 0 errors. ---- We can also run the assertions directly without having to call 'run-tests': [source,lisp] ---- (is (= "A Book: Book Review" (get-title "Mark Needham: A Book: Book Review"))) ---- [source,text] ---- true ---- [source,lisp] ---- (is (= "Something Else" (get-title "Mark Needham: A Book: Book Review"))) ---- [source,text] ---- expected: (= "Something Else" (get-title "Mark Needham: A Book: Book Review")) actual: (not (= "Something Else" "A Book: Book Review")) false ---- Nurullah has http://nakkaya.com/2009/11/18/unit-testing-in-clojure/[more detail in his post about how to integrate tests into a build] although I don't need to do that just yet!
null
null
[ 0.004404676612466574, -0.005318794399499893, -0.02171972580254078, 0.0036112836096435785, 0.08940435200929642, 0.007073281332850456, 0.03481794893741608, 0.04737742990255356, 0.010424151085317135, -0.01793728396296501, -0.008211278356611729, -0.012044318951666355, -0.06265342235565186, 0.012678171508014202, -0.0010889003751799464, 0.0584443137049675, 0.07435492426156998, -0.020649252459406853, 0.04705619812011719, 0.01421756949275732, 0.032394830137491226, 0.050594404339790344, 0.010718999430537224, 0.013933609239757061, 0.023827530443668365, -0.01762387901544571, 0.02634354680776596, 0.016026025637984276, -0.08744077384471893, 0.012377848848700523, 0.024154499173164368, 0.02101593092083931, 0.009425020776689053, -0.007683077361434698, 0.00424714433029294, 0.0027805606368929148, 0.011139742098748684, 0.02208828181028366, 0.0017901797546073794, 0.04067588597536087, -0.07693380862474442, 0.006670840084552765, -0.004376215394586325, 0.0014111611526459455, -0.044850774109363556, 0.021597936749458313, -0.054250381886959076, 0.023221075534820557, -0.007588827051222324, 0.018483208492398262, -0.038134247064590454, 0.020461246371269226, 0.008253282867372036, -0.034555621445178986, -0.0017611862858757377, 0.03048618696630001, 0.031861431896686554, -0.08853916078805923, 0.055700499564409256, -0.03710537403821945, -0.008883552625775337, 0.006931276526302099, 0.026358027011156082, 0.04965537041425705, 0.010283921845257282, -0.022121183574199677, -0.03465552628040314, 0.031549639999866486, -0.08029156178236008, -0.006867212243378162, 0.015926329419016838, 0.014237319119274616, -0.02476508915424347, -0.03755418583750725, 0.03693023696541786, -0.03753213956952095, -0.015076782554388046, 0.07010649889707565, 0.009413781575858593, 0.05554964393377304, -0.038474053144454956, 0.03444760665297508, 0.03998789191246033, 0.017925912514328957, 0.0009728948934935033, -0.009138572961091995, -0.03529494255781174, -0.009966635145246983, -0.04436315968632698, 0.058769237250089645, 0.03459152579307556, -0.05313165858387947, 0.019709624350070953, 0.011926173232495785, 0.017582986503839493, 0.0158087108284235, 0.005441831890493631, 0.017193669453263283, -0.011488862335681915, -0.003672780469059944, -0.04191802442073822, -0.03737165033817291, -0.019880754873156548, -0.008777081966400146, -0.08324627578258514, -0.01306869275867939, -0.005405295640230179, -0.02469082921743393, 0.027791598811745644, 0.010293246246874332, -0.04101216793060303, 0.018125878646969795, -0.028269032016396523, 0.001415340113453567, -0.07521381229162216, 0.05387689545750618, -0.025181027129292488, -0.026388393715023994, -0.04814240708947182, 0.02993829920887947, 0.02292410470545292, 0.01461196132004261, -0.0022657406516373158, 0.07832227647304535, 0.00222549750469625, 0.02149030938744545, -0.025519786402583122, 0.061557989567518234, 0.008429544046521187, -0.043947480618953705, -0.04027338698506355, 0.0583999939262867, -0.01801968365907669, 0.010065090842545033, 0.005346798337996006, -0.03640347346663475, -0.027568627148866653, -0.02352074719965458, 0.05667469650506973, 0.054793696850538254, 0.005774341057986021, -0.012308649718761444, 0.013763314113020897, -0.028903698548674583, 0.036760203540325165, 0.010377672500908375, -0.006593027152121067, -0.012642685323953629, -0.04384058713912964, 0.010509037412703037, 0.022599678486585617, 0.04613360017538071, 0.04216937720775604, -0.009848532266914845, 0.03733838349580765, 0.07809299975633621, 0.01261638943105936, 0.05100340396165848, -0.025828581303358078, 0.006968974135816097, 0.010964219458401203, 0.03139840066432953, -0.00022404425544664264, 0.0413166843354702, 0.02403760328888893, -0.012833904474973679, 0.00608529569581151, 0.05095537379384041, -0.008354476653039455, -0.017748093232512474, -0.046649057418107986, -0.024658123031258583, 0.06506365537643433, -0.026235710829496384, -0.007043554913252592, 0.03509611263871193, 0.0837216004729271, 0.0002881614491343498, 0.05429599806666374, 0.007049774285405874, -0.0696517750620842, 0.050807707011699677, 0.025409309193491936, -0.0026209407951682806, 0.01028189156204462, -0.01879815198481083, 0.07285451889038086, 0.0032729271333664656, 0.016317209228873253, 0.036362726241350174, -0.054709915071725845, -0.07419590651988983, -0.0350181981921196, -0.01081968005746603, 0.07078519463539124, -0.033638160675764084, -0.0007723226444795728, 0.0732351541519165, 0.01893734186887741, 0.040051911026239395, 0.03066195361316204, -0.004143454600125551, 0.02225511521100998, -0.032233502715826035, -0.045317161828279495, 0.05307548865675926, 0.03378138318657875, -0.04044969379901886, -0.04878433048725128, 0.014678146690130234, 0.01736486703157425, 0.017778031527996063, 0.06100517883896828, -0.016770467162132263, 0.023589128628373146, 0.04559395834803581, 0.03877653554081917, -0.03501897305250168, 0.023611634969711304, -0.04466845095157623, 0.010015926323831081, -0.004144646693021059, 0.017533233389258385, -0.011746431700885296, -0.006658212747424841, 0.12234912812709808, 0.06895323097705841, -0.04032379016280174, -0.053051456809043884, 0.018068457022309303, -0.011991351842880249, -0.04577735811471939, -0.020396621897816658, 0.005199789069592953, -0.012967849150300026, 0.008181878365576267, -0.010672020725905895, 0.006129098124802113, 0.01131202932447195, -0.03839252516627312, 0.013096618466079235, 0.0863865464925766, -0.0035428963601589203, 0.0378449484705925, -0.017096485942602158, -0.03057333081960678, -0.02805298939347267, -0.042488038539886475, -0.05763049051165581, 0.02630934678018093, 0.03758028894662857, -0.019557911902666092, 0.058172557502985, -0.04103385657072067, -0.052134688943624496, -0.02326475828886032, -0.044900111854076385, 0.030900126323103905, 0.03947878256440163, 0.08120857179164886, 0.007595202419906855, 0.039621926844120026, -0.034514911472797394, 0.005887878593057394, -0.0047917491756379604, -0.05921921506524086, -0.02775474451482296, -0.022473540157079697, 0.0066962530836462975, 0.038848426192998886, -0.022342968732118607, 0.029437437653541565, -0.0015546673675999045, 0.006838574074208736, -0.01811404712498188, -0.026389792561531067, -0.002997559728100896, 0.005741204600781202, -0.043709542602300644, -0.03926052525639534, -0.06393451988697052, 0.052606452256441116, -0.01160042081028223, -0.007974423468112946, -0.006659142207354307, -0.03218957036733627, 0.047446656972169876, -0.05553692206740379, -0.024355284869670868, 0.019424952566623688, 0.012746784836053848, 0.038105353713035583, -0.03903745487332344, 0.013581784442067146, 0.05431469902396202, 0.026837777346372604, 0.04770086705684662, -0.0006441521109081805, -0.004783920012414455, 0.036898549646139145, -0.007712524849921465, -0.00002203974327130709, 0.032338909804821014, 0.023126142099499702, -0.0006773333298042417, -0.031710755079984665, 0.0029647538904100657, 0.0003176525351591408, -0.2900894582271576, 0.03449508547782898, -0.014678049832582474, -0.016081470996141434, 0.02267078123986721, -0.012001976370811462, -0.007146571297198534, -0.04572352021932602, -0.0058821095153689384, 0.027290724217891693, -0.04257548972964287, -0.005822027567774057, -0.025038907304406166, 0.04983614385128021, -0.004378078505396843, -0.010221261531114578, 0.0012816278031095862, -0.03346904367208481, 0.00436763372272253, 0.04360281676054001, 0.006368183996528387, -0.06045514717698097, 0.03871723636984825, 0.02686525695025921, 0.03834066912531853, 0.028294429183006287, -0.08688726276159286, 0.039786577224731445, -0.03020405024290085, -0.02982834167778492, -0.00806341040879488, -0.004541018512099981, -0.00027205448714084923, -0.03201194480061531, -0.02297077141702175, -0.0044357916340231895, 0.027641896158456802, -0.017466766759753227, 0.02470186911523342, 0.026239069178700447, -0.016911234706640244, -0.028447192162275314, -0.00958847627043724, -0.029874317348003387, 0.07704885303974152, -0.014796813018620014, -0.08370711654424667, -0.003434394020587206, -0.03834611177444458, 0.08728135377168655, -0.04095917567610741, -0.03957293927669525, -0.015977423638105392, 0.07448325306177139, 0.01176565233618021, -0.0263116043061018, -0.009887892752885818, -0.03537420928478241, -0.03793321177363396, -0.04474096745252609, -0.030617261305451393, -0.04895469918847084, -0.03609811142086983, -0.0535055473446846, -0.022826937958598137, -0.07863207161426544, -0.061620306223630905, -0.00021087616914883256, 0.06509361416101456, -0.013231283985078335, -0.023660939186811447, -0.018207969143986702, -0.013864278793334961, -0.11435695737600327, -0.03690116107463837, -0.041650380939245224, -0.0472661554813385, -0.02425401285290718, -0.002350448165088892, 0.0566173680126667, -0.06145231053233147, -0.05745229497551918, 0.042188532650470734, 0.01718280278146267, 0.02624865435063839, 0.009350943379104137, 0.009426447562873363, 0.014946019276976585, -0.020432939752936363, -0.02007819525897503, 0.05819648876786232, -0.04364604502916336, -0.019741151481866837, -0.042980924248695374, 0.020353129133582115, 0.018060065805912018, 0.04932151734828949, 0.016552414745092392, 0.028387274593114853, 0.02003362402319908, 0.026456503197550774, -0.05604054406285286, 0.03752119094133377, -0.005442092660814524, 0.010613671503961086, -0.00026902195531874895, -0.050773415714502335, 0.03445464000105858, 0.029281653463840485, 0.03362780064344406, -0.04294300451874733, -0.05506366491317749, 0.005719505716115236, -0.06587247550487518, -0.04877007007598877, -0.007944494485855103, -0.002459969837218523, 0.005472362507134676, 0.01710725575685501, -0.003727224189788103, -0.0707593485713005, 0.010901234112679958, 0.01179981417953968, -0.016015568748116493, -0.05633464828133583, -0.029207874089479446, 0.014987464062869549, -0.03962160274386406, 0.01603996381163597, 0.022994302213191986, -0.003452738979831338, 0.0363614447414875, -0.01530357077717781, -0.04832325503230095, 0.025558875873684883, -0.012085557915270329, 0.009504149667918682, -0.009013145230710506, -0.006141149904578924, -0.0067525701597332954, 0.0011588768102228642, -0.0046112812124192715, 0.031243396922945976, 0.02360471710562706, 0.01347234658896923, 0.008675632998347282, 0.02416672185063362, -0.0003503448097035289, -0.021509014070034027, 0.009278273209929466, 0.02607184275984764, -0.06923533976078033, 0.03806586563587189, -0.039823245257139206, -0.01985015720129013, 0.0024417126551270485, 0.028405535966157913, -0.018988369032740593, -0.05729516223073006, -0.04483592510223389, 0.03282805159687996, -0.03859410062432289, 0.010752229019999504, -0.02918955124914646, -0.010735698975622654, 0.06059481203556061, -0.015202081762254238, 0.04349678382277489, -0.019334420561790466, -0.020360365509986877, -0.002919648541137576, 0.031996384263038635, -0.0432615652680397, 0.009818868711590767, -0.00652560917660594, 0.01148933731019497, 0.00514520239084959, 0.02771562896668911, 0.04448411986231804, 0.023926692083477974, 0.00043277780059725046, -0.019135668873786926, 0.023259414359927177, 0.05590009316802025, 0.04437456279993057, -0.005327508319169283, 0.017999885603785515, 0.012562420219182968, -0.022037195041775703, -0.006415144540369511, -0.0301579087972641, -0.0010548790451139212, -0.022501859813928604, 0.01650821417570114, -0.040076885372400284, -0.07225437462329865, 0.008259395137429237, 0.06869403272867203, 0.0039050753694027662, -0.004972598981112242, 0.00428437115624547, -0.004401497542858124, -0.025279195979237556, 0.015476996079087257, 0.06338868290185928, -0.051576174795627594, -0.012067342177033424, -0.0029444515239447355, 0.02899879775941372, 0.014608109369874, 0.014346089214086533, -0.05947689712047577, -0.03049158677458763, -0.009923754259943962, -0.03108454868197441, -0.014609652571380138, -0.023038217797875404, -0.02007998526096344, 0.0008438997901976109, -0.02542079985141754, -0.03327203169465065, -0.018899140879511833, -0.01800837367773056, -0.0021552436519414186, 0.00038424282683990896, 0.006135717500001192, -0.031061889603734016, -0.006766104139387608, 0.02301781065762043, -0.014365880750119686, 0.03774596005678177, -0.03224289417266846, 0.05245765671133995, 0.016905484721064568, -0.01789790578186512, -0.01831480860710144, -0.018798694014549255, 0.026235032826662064, -0.049343291670084, 0.024556133896112442, 0.016889939084649086, -0.010374430567026138, -0.026301255449652672, 0.0009819726692512631, -0.031814370304346085, -0.0016435073921456933, -0.007422915659844875, -0.010438408702611923, 0.013838768936693668, 0.058597762137651443, -0.014294463209807873, 0.059451427310705185, -0.03776060789823532, -0.010235102847218513, 0.04395722597837448, -0.06059266999363899, -0.024880265817046165, -0.007994999177753925, -0.04019402340054512, 0.008460476994514465, 0.006549249868839979, 0.023432010784745216, -0.06710872054100037, 0.05163238197565079, 0.03661728650331497, 0.01130522508174181, 0.024228455498814583, -0.02882460691034794, 0.03311939910054207, -0.0395641066133976, 0.003161033848300576, -0.09395108371973038, 0.01821654662489891, 0.059546396136283875, 0.00983887817710638, -0.005855595227330923, -0.011139464564621449, -0.01353225763887167, 0.04425569996237755, -0.052754223346710205, 0.002342269290238619, 0.05508103966712952, -0.019553085789084435, -0.001815077499486506, 0.027424024417996407, -0.0597027949988842, 0.01320591475814581, 0.053081315010786057, -0.03987351059913635, -0.02129046432673931, -0.02447151392698288, 0.02692675217986107, -0.01866947114467621, 0.015820683911442757, -0.02454189583659172, -0.003064678981900215, 0.056637801229953766, 0.0130673348903656, -0.013355821371078491, 0.033374689519405365, -0.011313936673104763, -0.012032713741064072, 0.03963356465101242, -0.010103070177137852, -0.00032241170993074775, 0.011949338018894196, -0.04433553293347359, -0.05373048037290573, 0.028082652017474174, 0.027077706530690193, -0.04810387268662453, -0.03677409887313843, 0.06267035007476807, 0.020632993429899216, -0.034096892923116684, -0.030825555324554443, 0.024284161627292633, -0.07752445340156555, 0.02290126122534275, -0.004321034997701645, -0.012475728988647461, -0.02632269077003002, 0.047796666622161865, 0.008460196666419506, 0.007036601193249226, 0.057322531938552856, 0.005527100525796413, -0.014277806505560875, -0.018254851922392845, 0.07767846435308456, 0.09521616995334625, 0.034247539937496185, -0.0201167780905962, 0.03218179941177368, -0.028528671711683273, -0.0597214549779892, 0.025943445041775703, 0.01086017582565546, 0.027141861617565155, -0.014863112941384315, 0.010468198917806149, 0.06666630506515503, 0.011675871908664703, 0.07633566856384277, -0.007886591367423534, 0.007973935455083847, -0.03508517146110535, 0.01362990029156208, 0.05118972063064575, 0.06621914356946945, 0.010482041165232658, 0.018164711073040962, 0.000971949310041964, -0.030828965827822685, 0.03670122101902962, -0.05338457599282265, -0.01930849254131317, -0.024802912026643753, 0.011559825390577316, 0.040281180292367935, 0.009657228365540504, 0.04097099229693413, 0.060561925172805786, -0.03316954895853996, 0.03328818455338478, 0.009650631807744503, 0.023927679285407066, 0.0199233740568161, -0.008749199099838734, -0.014977204613387585, 0.01530136913061142, -0.007388432510197163, -0.00719728646799922, 0.004156853538006544, -0.026410046964883804, -0.033799562603235245, 0.028305016458034515, -0.01395196933299303, -0.032762475311756134, 0.01797659508883953, 0.00006914885307196528, 0.0037308416794985533, -0.04097955673933029, -0.04334825649857521, -0.043121088296175, -0.06504204124212265, -0.0346970409154892, -0.011526054702699184, -0.03291245177388191, -0.024430343881249428, -0.026439368724822998, -0.0007232763455249369, -0.0040272874757647514, 0.03542188182473183, -0.03523034229874611, -0.023222392424941063, 0.01929299719631672, 0.008580449037253857, 0.022032562643289566, -0.001038860995322466, 0.04135505482554436, -0.008422455750405788, -0.020586421713232994, -0.03133352845907211, -0.026300230994820595, 0.04357002303004265, 0.005168973468244076, -0.0017021175008267164, -0.0744326263666153, 0.022300461307168007, 0.037616629153490067, 0.04490949213504791, -0.07436850666999817, 0.04124106094241142, -0.025669312104582787, -0.020627019926905632, 0.047945767641067505, -0.017744751647114754, 0.007629179861396551, -0.02361144870519638, -0.02343459613621235, 0.02728929929435253, 0.02367730811238289, 0.040311045944690704, -0.008014021441340446, 0.07882645726203918, -0.002583934459835291, -0.01868424005806446, -0.02677907422184944, -0.03284990414977074, -0.027655985206365585, 0.014932083897292614, -0.02831180952489376, -0.05023074150085449, -0.029670970514416695, -0.04045165702700615, -0.027139650657773018, 0.012607205659151077, -0.044324833899736404, -0.02522776648402214, 0.009982241317629814, 0.020016930997371674, -0.02924307808279991, 0.025050822645425797, -0.03421841934323311, 0.06668952107429504, 0.009631205350160599, -0.029274413362145424, 0.010919292457401752, -0.005384522024542093, 0.001557184848934412, 0.010662645101547241, 0.054612621665000916, -0.04134801775217056, -0.006383500527590513, 0.0016944180242717266, 0.02597159333527088, 0.033881284296512604, -0.011948106810450554, 0.0009861738653853536 ]
[ -0.10920996218919754, -0.02108023874461651, -0.030905596911907196, -0.0241217240691185, 0.028291141614317894, -0.041474755853414536, -0.011086886748671532, 0.035114455968141556, -0.0023305732756853104, -0.02079557627439499, -0.003938445821404457, -0.053459011018276215, 0.01571587286889553, 0.0029421038925647736, 0.09356959909200668, -0.013331674970686436, -0.009301949292421341, -0.028690816834568977, -0.05718778818845749, -0.006515464745461941, 0.02133329212665558, -0.029549896717071533, -0.05786795914173126, -0.051859233528375626, 0.03207892179489136, 0.03211686387658119, 0.05483691021800041, -0.059147946536540985, -0.012470311485230923, -0.2142518311738968, 0.008710500784218311, 0.034327637404203415, 0.04444802179932594, -0.028403479605913162, -0.005738177336752415, 0.05824609473347664, 0.008707906119525433, -0.012480000033974648, -0.033878497779369354, 0.02809474617242813, 0.03603857010602951, 0.009525362402200699, -0.0251258946955204, -0.010700901970267296, 0.027777813374996185, -0.014495305716991425, 0.003986497409641743, -0.030971700325608253, -0.04715857282280922, 0.027530191466212273, -0.04966755956411362, -0.00028960651252418756, 0.005509567447006702, -0.015866391360759735, 0.003072973107919097, 0.03104511834681034, 0.030610864982008934, 0.06898541003465652, 0.019918767735362053, 0.0059626130387187, -0.031533531844615936, -0.027632303535938263, -0.12953105568885803, 0.07704568654298782, 0.023017320781946182, 0.053275857120752335, -0.00011673966946545988, -0.012868236750364304, -0.01331347692757845, 0.11117322742938995, 0.009376180358231068, -0.011096448637545109, -0.041405025869607925, 0.0944710224866867, 0.002218483481556177, -0.028876474127173424, -0.021476663649082184, 0.012234475463628769, 0.04865245148539543, -0.03158724308013916, -0.04003777354955673, -0.029253240674734116, -0.023295965045690536, 0.006869640201330185, -0.01290139090269804, 0.014639362692832947, -0.03564736992120743, 0.04268776997923851, 0.06919049471616745, 0.005615810863673687, 0.034014929085969925, -0.03404886648058891, 0.04600486904382706, 0.02626357041299343, -0.08512340486049652, 0.0002758884511422366, 0.002646802458912134, 0.00523396534845233, -0.018764419481158257, 0.39665472507476807, -0.04556042328476906, -0.007642932236194611, 0.059395335614681244, 0.005906486883759499, 0.009738163091242313, 0.001558160176500678, 0.027618378400802612, -0.02512332610785961, 0.015451755374670029, -0.04862120747566223, -0.017743131145834923, 0.01459831278771162, 0.0690041035413742, -0.03350294381380081, -0.024022724479436874, 0.0031100348569452763, 0.06208940967917442, 0.007556944619864225, -0.02254239097237587, 0.009297800250351429, 0.0420849546790123, -0.005070382729172707, -0.01479426957666874, -0.024978576228022575, 0.009095761924982071, 0.019709818065166473, 0.04414393752813339, 0.035025015473365784, 0.05090969428420067, 0.023770015686750412, 0.03256604075431824, -0.02147759683430195, -0.07579922676086426, 0.002721564844250679, -0.01469714380800724, 0.04098522290587425, 0.008002787828445435, -0.03926919400691986, -0.013414090499281883, 0.0294045377522707, -0.001680432353168726, -0.010614139959216118, 0.046818774193525314, -0.0050308480858802795, -0.06764249503612518, 0.049646638333797455, -0.0147866727784276, 0.005271546076983213, -0.022749826312065125, -0.03392414003610611, 0.014758221805095673, 0.04289593547582626, 0.0013834165874868631, -0.07395104318857193, 0.04223664477467537, 0.019607972353696823, 0.0801524668931961, -0.014852384105324745, -0.08455022424459457, 0.003577767638489604, -0.04121917113661766, -0.008668584749102592, -0.0528034009039402, 0.031972434371709824, -0.006614174693822861, -0.06407051533460617, -0.020952319726347923, 0.024740787222981453, 0.02787598967552185, -0.0758650079369545, 0.0014007725985720754, 0.01408033911138773, -0.03799533098936081, -0.0266908947378397, 0.027695821598172188, -0.026259493082761765, -0.028788378462195396, -0.012373280711472034, 0.06134901940822601, 0.025431623682379723, -0.03598468750715256, 0.02628127671778202, -0.017818566411733627, 0.022120757028460503, -0.019511528313159943, -0.06418167799711227, -0.05432711914181709, -0.02676410973072052, -0.02018675208091736, -0.00947448518127203, -0.020792465656995773, -0.020737972110509872, -0.07513341307640076, 0.07046438008546829, -0.05382659286260605, -0.01499358844012022, 0.004959383513778448, 0.011681705713272095, -0.017001576721668243, -0.026125477626919746, 0.010083330795168877, 0.05752843990921974, -0.0034088189713656902, 0.01319977454841137, -0.06247970089316368, 0.020859165117144585, 0.06355509907007217, -0.07712139934301376, 0.044922832399606705, 0.06016241014003754, -0.049293529242277145, 0.009342330507934093, 0.010371342301368713, -0.009106786921620369, -0.0008147648186422884, -0.010994578711688519, -0.01901930943131447, -0.02145659551024437, 0.02221277914941311, 0.02790004573762417, -0.039800576865673065, -0.029105203226208687, -0.050618726760149, -0.3537243604660034, -0.039643313735723495, -0.0008463573758490384, -0.010424003005027771, 0.05295285955071449, -0.09638843685388565, -0.002596360631287098, -0.007982876151800156, -0.02688690461218357, -0.016602270305156708, 0.09671909362077713, -0.02468711882829666, -0.027508454397320747, -0.08531960844993591, 0.019244078546762466, 0.010777049697935581, 0.008857561275362968, -0.04734022170305252, -0.030500678345561028, 0.048198431730270386, -0.001467593596316874, -0.056199364364147186, -0.007622046861797571, -0.05183408781886101, -0.0026134788058698177, -0.01881292462348938, 0.08875809609889984, 0.018771134316921234, 0.11124479025602341, -0.03535923734307289, 0.04799598082900047, 0.006157240364700556, 0.015910688787698746, -0.07673565298318863, 0.0004271848301868886, -0.02474689856171608, -0.009936198592185974, -0.009726888500154018, 0.019244695082306862, -0.029381919652223587, -0.012529228813946247, 0.021754566580057144, -0.057102981954813004, -0.042046450078487396, -0.03880724683403969, 0.0045581841841340065, -0.008680736646056175, -0.028572268784046173, -0.033339496701955795, 0.07226943969726562, 0.0036814045161008835, 0.0053032515570521355, 0.02485407516360283, 0.02258722484111786, 0.0166559386998415, -0.0028522128704935312, -0.05646888539195061, -0.05802532657980919, 0.013941076584160328, -0.020538095384836197, 0.07267971336841583, 0.06094145402312279, 0.05086655542254448, -0.06943569332361221, 0.029343031346797943, -0.010251889005303383, 0.015233114361763, 0.00321768200956285, 0.04326537996530533, -0.010836445726454258, -0.03625492751598358, 0.09252680093050003, -0.0003033447719644755, 0.01176572497934103, 0.05313152074813843, 0.05180773884057999, -0.012066884897649288, 0.012569265440106392, 0.019543446600437164, -0.0026855396572500467, 0.02617602050304413, 0.02810029685497284, 0.046400245279073715, -0.048454709351062775, -0.011196178384125233, 0.03753696754574776, -0.01803410053253174, 0.002432231092825532, 0.05873220041394234, 0.010955974459648132, -0.06400974094867706, 0.023598723113536835, 0.004147003870457411, -0.04029235243797302, 0.07905326038599014, 0.00727215688675642, -0.2511550784111023, 0.019623257219791412, 0.05654251202940941, 0.06402511149644852, -0.004487919621169567, 0.00586668448522687, 0.05416060984134674, -0.10032404959201813, -0.01357312873005867, 0.032377105206251144, 0.017606038600206375, 0.05704301595687866, 0.03288861736655235, -0.025343600660562515, 0.0601910836994648, -0.00921812653541565, 0.032349687069654465, 0.013247820548713207, 0.035984840244054794, -0.023411694914102554, 0.039347872138023376, 0.004158105701208115, 0.19442373514175415, -0.02088290825486183, -0.0008627832285128534, 0.03604039177298546, 0.02042631432414055, 0.02559572644531727, 0.08322125673294067, -0.003108259057626128, 0.02958655171096325, 0.003600913565605879, 0.04872783645987511, 0.020053939893841743, -0.005333628039807081, -0.04184088110923767, -0.029350342229008675, 0.026322999969124794, 0.01917661726474762, -0.02469659224152565, 0.007703916169703007, 0.01036275178194046, -0.0407882034778595, 0.019009442999958992, 0.07770098745822906, 0.005355560686439276, 0.014101014472544193, -0.038508713245391846, -0.040664736181497574, 0.0035060488153249025, -0.02342739887535572, -0.04458782821893692, 0.004685051739215851, -0.011137775145471096, 0.009956805035471916, 0.04732697457075119, 0.029219595715403557, -0.024130109697580338, -0.007016604766249657, 0.0073152161203324795, 0.008823881857097149, -0.018400516360998154, 0.12664924561977386, 0.02003471367061138, 0.0045881010591983795 ]
[ -0.012523640878498554, -0.030704310163855553, -0.015749091282486916, -0.00338598620146513, 0.02639305777847767, -0.015236522071063519, 0.0066381096839904785, 0.0018361246911808848, 0.003165139351040125, -0.019934536889195442, -0.024308733642101288, -0.0013305115280672908, 0.03655803203582764, -0.0053013223223388195, 0.02930130437016487, -0.02656734362244606, -0.010065277107059956, 0.012379663996398449, 0.02641192637383938, -0.0007843459025025368, 0.027515243738889694, 0.005664315540343523, 0.0225196722894907, 0.005967448931187391, -0.0019576463382691145, 0.002819433342665434, -0.030596591532230377, -0.009976626373827457, 0.024684226140379906, -0.13017314672470093, 0.014846893958747387, -0.027283331379294395, 0.02207665704190731, 0.0014732733834534883, -0.006702402140945196, 0.02131582982838154, -0.010039779357612133, 0.000683912425301969, -0.009056037291884422, 0.01877475343644619, 0.021735521033406258, -0.034923747181892395, -0.021488409489393234, -0.0034733980428427458, 0.021799497306346893, 0.01621277630329132, -0.004690064582973719, -0.03835158050060272, -0.03544292598962784, -0.02727483958005905, -0.03341095894575119, -0.01697230525314808, -0.002843189984560013, 0.02251950278878212, -0.004129968583583832, -0.0342402346432209, -0.02893247827887535, 0.00976084265857935, 0.030131246894598007, -0.038260746747255325, 0.004807754885405302, -0.0014808024279773235, -0.047503236681222916, -0.02603737637400627, -0.013085570186376572, -0.028827833011746407, 0.004415045492351055, 0.028725726529955864, 0.0061263227835297585, 0.012978867627680302, 0.010163497179746628, 0.04043903201818466, -0.028141219168901443, -0.004263572860509157, -0.037181828171014786, 0.04151138290762901, 0.03157714381814003, -0.03296618163585663, -0.014320794492959976, -0.005098253022879362, 0.0008683683699928224, -0.004040405619889498, 0.0036441117990761995, 0.04064049944281578, -0.0013484773226082325, 0.01522450614720583, 0.047846924513578415, -0.012688172049820423, 0.023736385628581047, 0.030351413413882256, 0.004805664997547865, 0.025474516674876213, 0.04325920715928078, 0.014153157360851765, -0.08319329470396042, 0.011923418380320072, -0.03827442601323128, -0.020586511120200157, -0.006635904312133789, 0.8512997031211853, 0.0009201705106534064, 0.05889556184411049, 0.02820861153304577, 0.0036966511979699135, -0.0087238484993577, -0.006734016817063093, -0.01711692288517952, 0.004934519995003939, 0.032855816185474396, 0.0007782416651025414, 0.029820622876286507, 0.026334106922149658, 0.036518264561891556, 0.011239648796617985, 0.024145053699612617, -0.008683145977556705, 0.045898061245679855, 0.016956482082605362, 0.021222567185759544, 0.03276907652616501, 0.04963458701968193, 0.022538669407367706, -0.007731263060122728, 0.018817001953721046, 0.01671871542930603, -0.13791893422603607, -0.001383483875542879, -6.768423738321774e-33, 0.023440636694431305, -0.01176548283547163, 0.010168328881263733, -0.018858520314097404, -0.023433782160282135, -0.00684498343616724, 0.030516909435391426, 0.018750188872218132, -0.04105321690440178, -0.02908516302704811, 0.028380442410707474, -0.01076821330934763, -0.00027502974262461066, -0.02408277988433838, -0.00414948770776391, 0.0037802744191139936, 0.009066455066204071, 0.05396848917007446, 0.028455743566155434, 0.028337979689240456, -0.003336082911118865, 0.01852530427277088, 0.004892719443887472, -0.017232706770300865, 0.017792530357837677, 0.003142052795737982, 0.06482534110546112, -0.0001407666422892362, -0.016548210754990578, -0.049117300659418106, -0.03171324357390404, -0.01222497969865799, -0.011518975719809532, 0.008324889466166496, 0.025600602850317955, -0.05327609181404114, 0.004682368133217096, 0.005574969109147787, -0.04641364514827728, -0.03293970227241516, -0.005697034765034914, -0.0026914700865745544, -0.028804078698158264, 0.006739206146448851, -0.008090676739811897, -0.02049826830625534, -0.020618215203285217, 0.029159510508179665, -0.0008879181114025414, 0.03245386853814125, 0.025281770154833794, 0.017286334186792374, 0.00482539227232337, -0.0456802099943161, -0.03213920816779137, -0.01110630389302969, -0.024381214752793312, -0.02606973424553871, -0.006573571357876062, 0.005784437991678715, 0.006346193142235279, -0.004704816732555628, -0.010937338694930077, 0.014607206918299198, 0.01430831104516983, -0.023119358345866203, -0.018564941361546516, -0.022081878036260605, 0.016782868653535843, 0.04475948214530945, -0.023934561759233475, -0.0016164866974577308, -0.002549045020714402, -0.0026918421499431133, 0.0250682532787323, -0.02296747826039791, -0.01651747152209282, -0.01556788757443428, -0.00035982418921776116, 0.06387127935886383, 0.01912343129515648, -0.03661129251122475, 0.009586898609995842, 0.00927735771983862, -0.02067517675459385, 0.018205154687166214, 0.01106506772339344, -0.004963390529155731, 0.010032802820205688, -0.01223705429583788, 0.05183601751923561, 0.013199349865317345, -0.005423947237432003, -0.01689952239394188, -0.04684462025761604, 7.566795991513256e-33, -0.035855092108249664, 0.003088733647018671, -0.012099592946469784, 0.016626933589577675, -0.017117111012339592, -0.02386457286775112, 0.008648334071040154, 0.011139755137264729, -0.027786899358034134, 0.04405814781785011, -0.03191104903817177, -0.03792419284582138, -0.016938062384724617, 0.029582612216472626, 0.05679693818092346, -0.008570216596126556, 0.027524253353476524, -0.04486289992928505, -0.011680847965180874, 0.007020267657935619, 0.01780569739639759, 0.042803578078746796, 0.022200187668204308, 0.028287524357438087, 0.04631052166223526, 0.04447118565440178, -0.006952419877052307, 0.04204978793859482, -0.0014420184306800365, -0.01784873567521572, 0.022823937237262726, -0.029875576496124268, 0.012931689620018005, -0.00806144904345274, -0.029894614592194557, 0.039686307311058044, -0.013299145735800266, -0.030411144718527794, 0.06222011521458626, 0.010136290453374386, -0.010336092673242092, -0.021615756675601006, 0.016768360510468483, 0.002732239430770278, -0.01429072767496109, -0.015562674961984158, 0.023326408118009567, 0.012933571822941303, 0.033683568239212036, -0.017209544777870178, -0.019825002178549767, 0.02266155555844307, -0.015925385057926178, 0.003840642748400569, 0.015647394582629204, -0.04124325141310692, -0.04358474910259247, 0.039761342108249664, -0.038010649383068085, -0.01125306822359562, -0.014636600390076637, -0.012436903081834316, -0.011305626481771469, 0.017603687942028046, -0.01699124276638031, -0.03728727996349335, -0.010968909598886967, -0.033357102423906326, -0.0039727333933115005, -0.028810491785407066, -0.0019080908969044685, -0.012102597393095493, 0.02285151369869709, 0.034316930919885635, 0.022056538611650467, 0.014162575826048851, -0.006132667418569326, 0.003929066006094217, -0.019878875464200974, 0.03161197155714035, -0.009280960075557232, 0.0031702755950391293, -0.001327928388491273, 0.028871674090623856, 0.0090778898447752, -0.012113834731280804, 0.004356916528195143, 0.017434094101190567, 0.029983635991811752, -0.018570352345705032, 0.012125563807785511, -0.011571877636015415, 0.014150485396385193, 0.0396445170044899, 0.008064908906817436, -1.2848976105317433e-8, 0.004097010940313339, -0.035223472863435745, -0.05877977982163429, 0.04451534524559975, 0.011735557578504086, 0.028912315145134926, -0.038916826248168945, -0.04129895940423012, -0.03943897783756256, 0.01668383926153183, 0.008209947496652603, -0.011896148324012756, 0.008923053741455078, 0.0464630089700222, 0.03816225007176399, -0.053902603685855865, 0.033652205020189285, -0.006763292010873556, 0.019463859498500824, -0.010923800989985466, 0.0129049988463521, 0.029661238193511963, -0.01822555810213089, -0.01606120355427265, -0.022524381056427956, -0.023192157968878746, 0.014121372252702713, -0.0654369369149208, -0.022754743695259094, -0.012201683595776558, 0.027702925726771355, -0.029220543801784515, -0.041735369712114334, -0.0073584397323429585, 0.009386165998876095, 0.00673360750079155, 0.0023160811979323626, 0.021792612969875336, 0.012267796322703362, 0.0076370639726519585, 0.010672609321773052, -0.011720572598278522, -0.006096087861806154, -0.019074276089668274, -0.05309583991765976, -0.015983756631612778, -0.03682435676455498, -0.011266606859862804, 0.010314689949154854, -0.01933247782289982, 0.05011201649904251, -0.00919240340590477, 0.017346471548080444, 0.003935717511922121, 0.013110469095408916, -0.014120612293481827, 0.02376576140522957, -0.05838457867503166, -0.04066895321011543, 0.0018692538142204285, 0.034637462347745895, 0.020421236753463745, -0.023036519065499306, -0.028901875019073486 ]
clojure-unit-testing-in-the-repl
https://markhneedham.com/blog/2009/12/06/clojure-unit-testing-in-the-repl
false
2009-12-24 05:26:46
Debug It: Book Review
[ "books", "debugging", "book-review" ]
[ "Books" ]
David Agans' 'http://www.amazon.com/gp/product/0814474578?ie=UTF8&tag=marneesblo-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=0814474578[Debugging]' is the best debugging book that I've read so I was intrigued to see that there was another book being written on the subject. Paul Butcher offered me a copy of the book to review so I was keen to see whether it was more like 'Debugging' or 'http://www.amazon.com/gp/product/0978739213?ie=UTF8&tag=marneesblo-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=0978739213[Release It]' http://blogs.tedneward.com/2009/11/23/Book+Review+Debug+It+Paul+Butcher+Pragmatic+Bookshelf.aspx[as Ted Neward suggests]. == The Book http://www.amazon.com/gp/product/193435628X?ie=UTF8&tag=marneesblo-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=193435628X[Debug It] by Paul Butcher == The Review http://devlicio.us/blogs/krzysztof_kozmic/archive/2009/08/30/book-review-debug-it-find-repair-and-prevent-bugs-in-your-code.aspx[Much like Krzysztof Kozmic] I found that a lot of the ideas early on in the book were similar to what I've been taught by my ThoughtWorks colleagues over the last 3 1/2 years. I do think it's really good seeing these ideas in words though because it's quite easy to forget about the best way to approach problems in the heat of the moment and the approaches suggested by Paul certainly aren't done everywhere in my experience. These were some of my favourite parts of the book: * When chasing a bug Butcher suggests that a useful technique to use is to+++<strong>+++try and disprove your theory of why the problem has happened+++</strong>+++. Too often we come up with a theory and just adapt any data to fit our thinking. This is also known as http://en.wikipedia.org/wiki/Confirmation_bias[confirmation bias]. In his talk 'http://www.markhneedham.com/blog/2009/04/25/pimp-my-architecture-dan-north/[Pimp my architecture]' Dan North suggests a similar approach more generally when working out how to tackle any problem. Each person has to take the other person's argument and then fight for that to be used instead. I quite like this idea - certainly something to try out. * When discussing the need to refactor code as we go along, the author points out that *if the code we want to change doesn't have any tests around it then we need to write some* to provide us with a safety net. + ____ Remember, however, that refactoring crucially depends upon the support of an extensive suite of automated tests. Without tests, you're not refactoring. You're hacking. ____ + Hamlet D'Arcy http://hamletdarcy.blogspot.com/2009/06/forgotten-refactorings.html[makes a similar point but perhaps more forcibly in a really good blog post] and Michael Feathers' 'http://www.amazon.com/gp/product/0131177052?ie=UTF8&tag=marneesblo-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=0131177052[Working Effectively With Legacy Code]' covers the topic in much more detail. * One tip which seems obvious but is still one I've tripped up on many times is to *go through the list of changes that we've made before checking in*! It's incredibly easy to forget about some seemingly insignificant change that we made before checking it in and perhaps breaking our application unexpectedly. Somewhat tied in with this is the idea of checking in small changes more frequently and http://www.markhneedham.com/blog/2009/12/22/one-change-at-a-time/[only changing one thing at a time which I wrote about previously]. * I like that Butcher puts a lot of emphasis on *ensuring that we actually know what's going wrong before we attempt to fix anything*. + ____ Without first understanding the true root cause of the bug, we are outside the realms of software engineering and delving instead into voodoo programming or programming by coincidence. ____ + This is particularly true when addressing performance problems where he rightly suggests that we should look to profile the code before making a premature optimisation. He also suggests using the http://www.markhneedham.com/blog/2009/03/20/coding-reassessing-what-the-debugger-is-for/[debugger] so that we can get a good idea about what the code is actually doing when it's running. While I think this is useful I feel that the need to use the debugger in this way frequently might suggest that our code is difficult to reason about which could well be something to address. * A couple of other cool suggestions are tohttp://www.markhneedham.com/blog/2009/09/07/a-reminder-that-sometimes-its-best-just-to-ask/[call on team mates to help us out] if we're getting stuck trying to fix a bug and if that's not possible then to either http://www.markhneedham.com/blog/2009/11/15/a-reminder-to-talk-to-the-rubber-duck/[write out the problem or talk to the rubber duck]. + ____ If you don't have someone to play the role of cardboard cutout, all is not necessarily lost. Try scribbling down a narrative of the problem on paper or perhaps composing an email to a friend. The trick is not to censor yourself -- just like a writer would. ____ + I don't think *the importance of communicating with team mates can be underestimated* and Butcher points out that if we notice a bad pattern in the code than it's no good just going through and changing it everywhere. We need to talk with the rest of the team to decide whether we can get an agreement on the way we'll develop code going forwards. * The only idea I disagreed with is that of putting http://www.markhneedham.com/blog/2009/02/14/coding-assertions-in-constructors/[assertions] http://www.markhneedham.com/blog/2009/10/31/coding-invariant-checking-on-dependency-injected-components/[into] http://www.markhneedham.com/blog/2009/10/29/coding-consistency-when-invariant-checking/[the code] which I feel adds clutter to our code even though it makes it fail faster than would otherwise be the case. From my experience if we write good enough unit tests and have http://watchitlater.com/blog/archives/115[good logging] in our code then the assertions aren't needed. == In Summary The book is pretty quick to read at around 200 pages and packs a lot of useful tips into that space. I'd say it's a pretty useful book to keep by your desk to refer to now and then.
null
null
[ 0.013363922014832497, 0.01999977044761181, -0.02111188694834709, 0.04346964508295059, 0.08152315020561218, 0.015214869752526283, 0.023730432614684105, 0.03460448607802391, 0.015040428377687931, -0.048019055277109146, -0.01996181532740593, -0.021014271304011345, -0.05088011920452118, 0.021440528333187103, -0.0162990540266037, 0.0917619988322258, 0.06371339410543442, 0.0003403975279070437, 0.02637893334031105, 0.0005233617266640067, 0.03279377520084381, 0.04456010460853577, 0.026744425296783447, 0.04366464540362358, 0.01749822497367859, 0.0006185157690197229, 0.021901436150074005, -0.009007416665554047, -0.05946198105812073, -0.024919167160987854, 0.03759092092514038, 0.013766828924417496, 0.01658208668231964, -0.022286776453256607, 0.02785530500113964, -0.008694073185324669, -0.03317464515566826, 0.015934517607092857, -0.006011064164340496, 0.005002251360565424, -0.09168306738138199, 0.034382641315460205, -0.024415984749794006, 0.016942042857408524, -0.033542606979608536, 0.022129081189632416, -0.03315523639321327, 0.017507795244455338, 0.01232275553047657, -0.0006059035658836365, -0.057224638760089874, 0.046061597764492035, 0.005961054004728794, -0.0038622585125267506, -0.04360920935869217, 0.07243134081363678, -0.004272677935659885, -0.03989178314805031, 0.008633315563201904, -0.048797253519296646, -0.002087133936583996, -0.004317641258239746, 0.011984768323600292, 0.05119772255420685, 0.03220338374376297, -0.022367149591445923, -0.0038582233246415854, 0.037419673055410385, -0.025899622589349747, 0.00832035019993782, -0.026432104408740997, 0.01635710522532463, -0.012315087020397186, -0.010615197010338306, 0.020741356536746025, -0.04594843089580536, 0.008095748722553253, 0.04819605126976967, 0.028482060879468918, 0.03997863456606865, -0.023410558700561523, 0.009713936597108841, 0.0015594083815813065, 0.01569879613816738, -0.028242507949471474, -0.021170347929000854, -0.0065691773779690266, -0.016947321593761444, -0.06739790737628937, 0.03902943804860115, 0.0168842151761055, -0.0773395448923111, 0.015192875638604164, 0.04687408357858658, -0.006660308223217726, 0.015423133969306946, 0.04144427180290222, -0.009664560668170452, -0.011177287437021732, -0.040440015494823456, -0.019281789660453796, -0.031774118542671204, 0.017632249742746353, 0.031907930970191956, -0.08456237614154816, -0.020648693665862083, -0.00931317824870348, -0.008054142817854881, -0.0013187890872359276, 0.005048953928053379, -0.011915097944438457, 0.02242204174399376, -0.04505893215537071, -0.009799077175557613, -0.07561956346035004, 0.07709814608097076, 0.010207419283688068, -0.03580684959888458, 0.0018100576708093286, 0.017609450966119766, 0.0405961349606514, 0.033306293189525604, 0.01034996472299099, 0.08775197714567184, 0.012552792206406593, -0.005140179302543402, -0.01777384988963604, 0.05122162029147148, -0.022153425961732864, -0.02947939932346344, -0.009236189536750317, 0.0647701770067215, -0.038460809737443924, -0.025579506531357765, 0.004943194333463907, -0.01440691389143467, -0.003646115306764841, 0.004919574595987797, 0.0024760516826063395, 0.063594289124012, -0.00541330361738801, -0.03816620633006096, 0.014464640989899635, 0.014648484997451305, 0.025695214048027992, 0.00004461092976271175, 0.01644408330321312, -0.017445817589759827, -0.03339469060301781, -0.00501297926530242, 0.005314299371093512, 0.0262419655919075, 0.016981128603219986, -0.03380241245031357, 0.014925645664334297, 0.06943497061729431, 0.04516371712088585, 0.028492150828242302, -0.014126398600637913, 0.01742195338010788, 0.059232331812381744, 0.045901089906692505, 0.021501727402210236, 0.03548094630241394, -0.014543863013386726, -0.003518971847370267, -0.00004559677836368792, 0.05434787645936012, -0.019262053072452545, -0.0013979236828163266, -0.06269282847642899, -0.025616861879825592, 0.07212202250957489, -0.0617092065513134, -0.015387175604701042, 0.05306369438767433, 0.07052413374185562, 0.01980489119887352, 0.045333027839660645, -0.006117743439972401, -0.0805833637714386, 0.043009862303733826, 0.02031310647726059, 0.0029877505730837584, 0.01390032283961773, -0.021319881081581116, 0.06509705632925034, 0.03868434205651283, 0.01478826068341732, 0.05571543052792549, -0.08657124638557434, -0.10417211055755615, -0.0073830485343933105, -0.01201137900352478, 0.04829726368188858, -0.038940779864788055, 0.01785973459482193, 0.07576113194227219, -0.0004523183451965451, 0.06388579308986664, -0.00786278210580349, 0.006193045526742935, -0.0012603894574567676, -0.029646150767803192, -0.05061260983347893, 0.04214741289615631, 0.01740115135908127, 0.0061188023537397385, -0.025140799582004547, 0.0168853010982275, -0.008852239698171616, -0.018876759335398674, 0.04920110106468201, -0.01892845332622528, 0.0388171449303627, 0.01402047835290432, 0.057202406227588654, -0.02842557802796364, 0.053462546318769455, -0.0494084395468235, -0.007187004666775465, 0.005024046171456575, -0.016442054882645607, 0.0038973321206867695, 0.009230882860720158, 0.10865664482116699, 0.06617042422294617, -0.048232872039079666, -0.04696284979581833, 0.006727696396410465, -0.002442664001137018, -0.027401955798268318, -0.0034903560299426317, -0.012348107993602753, 0.0062765274196863174, -0.012482944875955582, -0.06117204576730728, -0.04502927139401436, 0.016693832352757454, -0.04577400162816048, 0.004877257160842419, 0.049347907304763794, -0.014942333102226257, 0.0793655514717102, 0.0016650339821353555, 0.00281996070407331, -0.010219697840511799, 0.008425767533481121, -0.045612163841724396, 0.0077412985265254974, 0.0021394414361566305, 0.004466454964131117, 0.03769044205546379, -0.02365984581410885, -0.022382624447345734, -0.032427217811346054, -0.03525238856673241, 0.009854095987975597, 0.0660543143749237, 0.06620095670223236, -0.013631166890263557, 0.04533679410815239, -0.004824495408684015, 0.048314087092876434, 0.02462165616452694, -0.036353882402181625, -0.038292672485113144, -0.05487686023116112, 0.016970548778772354, 0.02731497772037983, 0.0135614899918437, 0.03573785349726677, -0.0006873583770357072, 0.016877885907888412, 0.007154608145356178, -0.011114302091300488, 0.037769418209791183, 0.006075722631067038, -0.01767049916088581, -0.012048427015542984, -0.037937264889478683, 0.07194416970014572, -0.05628497526049614, -0.031273648142814636, 0.0046315579675138, -0.10124852508306503, 0.04126462712883949, -0.06337018311023712, -0.03626575320959091, 0.021636269986629486, -0.0006368364556692541, 0.030672220513224602, 0.032632190734148026, 0.019342023879289627, 0.04452988877892494, -0.02354724146425724, -0.014233395457267761, -0.021749095991253853, -0.0010092058219015598, 0.019679522141814232, -0.002021974651142955, -0.012073536403477192, 0.048585884273052216, 0.019988244399428368, -0.010484232567250729, -0.049678970128297806, 0.05097685381770134, -0.0439051017165184, -0.2900705933570862, 0.030219899490475655, 0.02462402731180191, -0.056057367473840714, 0.019824879243969917, -0.016845952719449997, 0.006463128142058849, -0.06886079162359238, -0.022228719666600227, 0.01399773359298706, -0.014235747046768665, -0.049440011382102966, -0.023483721539378166, 0.03821898251771927, 0.018839512020349503, 0.002875429578125477, 0.004932517651468515, -0.04223175719380379, -0.013364220969378948, 0.039422255009412766, 0.0022750115022063255, -0.06486262381076813, -0.02027081325650215, 0.03987107798457146, 0.04249373450875282, 0.050207991153001785, -0.09950713068246841, 0.03736593946814537, -0.053660765290260315, 0.004110598471015692, 0.009755323641002178, -0.0048475018702447414, -0.006765544414520264, -0.013049580156803131, -0.0247114896774292, -0.021588975563645363, 0.03968699648976326, -0.0013809517258778214, -0.00871118064969778, 0.029773110523819923, -0.01793699339032173, -0.00858287513256073, -0.011337091214954853, 0.011905052699148655, 0.08175089955329895, 0.02976275607943535, -0.07347972691059113, -0.002714614849537611, -0.0009912356035783887, 0.08021250367164612, -0.025504514575004578, -0.031171219423413277, -0.018621178343892097, 0.03339042514562607, -0.009240013547241688, -0.011394450441002846, 0.00928018894046545, -0.028860537335276604, -0.03717797249555588, -0.037892669439315796, -0.010589975863695145, -0.0006159282638691366, -0.010470719076693058, -0.03522589057683945, 0.0016223166603595018, -0.07039027661085129, -0.07372788339853287, -0.03685692697763443, 0.07553760707378387, 0.029241984710097313, -0.04002315178513527, 0.010389639995992184, 0.0018523016478866339, -0.11078157275915146, 0.004694031551480293, -0.006052070297300816, -0.038956720381975174, 0.022158540785312653, 0.037372782826423645, 0.040411755442619324, -0.0402192696928978, -0.053682487457990646, 0.029955273494124413, 0.025986995548009872, 0.03395590931177139, -0.0283827967941761, 0.011163844726979733, 0.019298113882541656, -0.020978864282369614, -0.004690579138696194, 0.06807887554168701, 0.01658719778060913, -0.024182848632335663, -0.04165543615818024, 0.0019513689912855625, 0.006018799263983965, 0.021901072934269905, -0.016230033710598946, 0.030283361673355103, 0.05570715665817261, -0.006689082831144333, -0.05726024881005287, 0.03865407407283783, -0.03938892111182213, -0.017876042053103447, -0.014345075935125351, -0.04801645874977112, 0.015535864047706127, 0.04312136396765709, -0.006731093395501375, -0.022699540480971336, -0.03538888692855835, 0.03299816697835922, -0.044471170753240585, -0.035688769072294235, -0.029376523569226265, 0.040248580276966095, 0.05086568742990494, -0.025077873840928078, -0.012574695982038975, -0.06022227555513382, 0.006849277764558792, -0.023506857454776764, -0.024723060429096222, -0.04889920353889465, -0.028457000851631165, -0.018958797678351402, -0.02900424413383007, 0.0109510887414217, 0.01702759973704815, -0.02246127650141716, 0.02215423621237278, 0.010351992212235928, -0.03841092810034752, 0.02087751217186451, -0.0269171055406332, -0.07071450352668762, -0.039057206362485886, 0.0025843530893325806, 0.028166290372610092, -0.026316244155168533, 0.027260728180408478, -0.006432223133742809, 0.006483686156570911, 0.04663827270269394, 0.004883934278041124, 0.03586317598819733, -0.0064594983123242855, 0.015015965327620506, 0.026194952428340912, 0.003394458908587694, -0.035320017486810684, 0.05374511703848839, -0.03526798263192177, -0.03580804914236069, -0.014009371399879456, 0.03933555260300636, 0.001935634296387434, -0.04228466749191284, -0.004997400101274252, 0.02583077736198902, -0.0541660375893116, -0.02584463730454445, -0.023895081132650375, 0.012040331959724426, 0.055789217352867126, -0.02099321037530899, 0.025456564500927925, -0.01584099605679512, -0.015188605524599552, 0.03064466267824173, 0.009776568971574306, -0.03877328336238861, 0.010681907646358013, 0.019503334537148476, 0.007286948151886463, -0.016147401183843613, 0.016555186361074448, 0.049813490360975266, -0.004609232768416405, -0.013053671456873417, -0.03730469569563866, -0.0006972681148909032, 0.012883203104138374, 0.05525993928313255, 0.005351996514946222, -0.01986624486744404, -0.02559158392250538, -0.03882841765880585, -0.030370432883501053, -0.028965720906853676, -0.0068542128428816795, -0.009288676083087921, 0.041784726083278656, -0.034185584634542465, -0.06255826354026794, 0.05155521258711815, 0.0001515968469902873, 0.0035720611922442913, 0.015001346357166767, -0.008786038495600224, 0.01305026188492775, -0.030052294954657555, 0.05494864284992218, 0.03432132303714752, -0.06574057042598724, 0.0056547736749053, -0.002802994567900896, 0.00437915651127696, 0.019217606633901596, 0.002085700398311019, -0.05122552439570427, -0.018727388232946396, -0.007864080369472504, 0.006920251529663801, -0.050050634890794754, -0.0030149503145366907, -0.03499201685190201, 0.01437864825129509, 0.008252964355051517, -0.020817868411540985, -0.03258202597498894, -0.016846761107444763, -0.01571202091872692, -0.03768523409962654, 0.03250391408801079, -0.019901441410183907, 0.007281335536390543, 0.013735481537878513, -0.04599843546748161, 0.021575670689344406, -0.018006140366196632, 0.034930676221847534, 0.024581437930464745, -0.00943718757480383, 0.0067296577617526054, -0.037789445370435715, -0.013194357976317406, -0.008249341510236263, 0.036049604415893555, 0.001235275762155652, -0.011000300757586956, -0.042425598949193954, 0.008677182719111443, -0.018355419859290123, 0.019928764551877975, -0.01182397361844778, -0.023887835443019867, 0.027803214266896248, 0.05913538858294487, 0.00013850859249942005, 0.03063328005373478, -0.023077037185430527, -0.0077103786170482635, 0.04741988703608513, -0.060880064964294434, -0.020328378304839134, -0.0037254751659929752, -0.05914544686675072, 0.008340263739228249, 0.004893484525382519, 0.016150951385498047, -0.006539137102663517, 0.04974246025085449, 0.011204683221876621, 0.010904341004788876, 0.03951619192957878, 0.006970309652388096, 0.027768712490797043, -0.05622735619544983, 0.008200308308005333, -0.07797358185052872, 0.026529308408498764, 0.030648579820990562, -0.00040404233732260764, -0.0048698303289711475, -0.00648874556645751, -0.0313304141163826, 0.04680626839399338, -0.08978532254695892, -0.022431999444961548, 0.03978418558835983, -0.010652802884578705, -0.026977764442563057, 0.014331544749438763, -0.04935565963387489, 0.021136824041604996, 0.04308542236685753, -0.028651027008891106, -0.02761441469192505, -0.009146937169134617, 0.04947585240006447, 0.020075708627700806, 0.03241799399256706, -0.008208501152694225, -0.005501580890268087, 0.06262456625699997, 0.019222591072320938, 0.010623086243867874, 0.027523882687091827, -0.018937431275844574, 0.03668799623847008, 0.04833577945828438, 0.0009729423909448087, 0.002034224569797516, 0.02394765429198742, -0.014936584047973156, -0.06393960863351822, 0.01967940293252468, -0.01817711628973484, -0.03526172786951065, -0.03389498218894005, 0.039816975593566895, 0.00956216175109148, -0.02545866370201111, -0.06236076354980469, 0.014283722266554832, -0.0573820099234581, -0.021828319877386093, -0.026604896411299706, -0.02725171484053135, -0.0406695157289505, 0.04549998417496681, -0.022590551525354385, -0.005068471655249596, 0.052179645746946335, -0.025691984221339226, -0.01016822550445795, -0.026084281504154205, 0.09303952008485794, 0.07560951262712479, 0.06514614075422287, 0.006016261409968138, 0.07144264131784439, -0.02881600148975849, -0.029187539592385292, 0.012137031182646751, -0.007427840959280729, -0.01716574840247631, -0.03539238125085831, 0.0261477530002594, 0.05126343294978142, -0.007432927843183279, 0.06439828127622604, -0.044189486652612686, 0.004035807680338621, 0.0010581746464595199, 0.03257082402706146, -0.004545451141893864, 0.07995717227458954, 0.0020581965800374746, 0.026814142242074013, -0.014548399485647678, -0.05324506014585495, 0.037097737193107605, -0.04364853724837303, -0.02522054873406887, 0.0221747774630785, -0.0035191893111914396, 0.019796648994088173, 0.010498195886611938, 0.025981711223721504, 0.08039622753858566, -0.049934763461351395, 0.0061717950738966465, 0.0031257085502147675, 0.035859279334545135, 0.0044555035419762135, 0.014724097214639187, -0.018597852438688278, -0.004151142202317715, -0.019006023183465004, -0.026932764798402786, -0.012429261580109596, -0.026824140921235085, -0.02561577782034874, 0.03387201949954033, -0.011890151537954807, 0.007550987880676985, 0.048923149704933167, -0.015868326649069786, -0.02380484901368618, -0.06584427505731583, -0.032086435705423355, -0.02784867212176323, -0.05343779921531677, -0.023028802126646042, 0.0018194603035226464, -0.005135050043463707, -0.034557830542325974, -0.003164104651659727, 0.00024327611026819795, -0.03339945524930954, 0.04305962845683098, -0.07785581052303314, -0.03631993755698204, 0.012265913188457489, 0.03855833038687706, -0.004550015088170767, 0.016329947859048843, 0.04676336795091629, 0.013370225206017494, -0.023432090878486633, 0.015867603942751884, 0.015347282402217388, 0.023769477382302284, -0.006336463615298271, 0.038059379905462265, -0.09672031551599503, 0.017770584672689438, 0.014182906597852707, -0.0057866075076162815, -0.06445544213056564, 0.019507236778736115, 0.022175785154104233, -0.01354813203215599, 0.03384068235754967, -0.0032283610198646784, 0.02043372206389904, -0.05046316981315613, 0.002095836913213134, -0.0072832354344427586, 0.013980590738356113, 0.04362967610359192, -0.020629046484827995, 0.07516492903232574, 0.018493931740522385, 0.0048695034347474575, -0.04076030105352402, -0.008540005423128605, -0.013839188031852245, 0.02218148112297058, -0.03837503492832184, -0.027484998106956482, -0.018129775300621986, -0.089219830930233, -0.01626734808087349, 0.027958517894148827, -0.021726388484239578, -0.0392824150621891, 0.03353746607899666, 0.010350733995437622, -0.009892944246530533, 0.03287546709179878, -0.03234698995947838, 0.01701393909752369, -0.022488627582788467, -0.01427294872701168, 0.0035578105598688126, 0.018403800204396248, 0.009839668869972229, 0.006725338753312826, 0.01283992175012827, -0.049640826880931854, -0.0034891299437731504, -0.019184861332178116, 0.03158944472670555, 0.03352683410048485, 0.016975607722997665, -0.023947181180119514 ]
[ -0.10250340402126312, 0.006187670398503542, -0.0011258748127147555, -0.026051724329590797, 0.039168037474155426, -0.05285270884633064, -0.020078590139746666, 0.04955720156431198, -0.01230846531689167, -0.026786351576447487, 0.011178558692336082, -0.009223217144608498, -0.023928901180624962, 0.003600391559302807, 0.05835690349340439, 0.01454221922904253, 0.030568765476346016, -0.08711760491132736, -0.0074394019320607185, 0.02477230131626129, -0.0010341200977563858, -0.019616251811385155, -0.03588106483221054, -0.02718043327331543, 0.010508309118449688, 0.03838321566581726, 0.04949837550520897, -0.01354293618351221, 0.012460648082196712, -0.17740567028522491, -0.0027367272414267063, 0.02979782596230507, 0.02363092638552189, -0.02756664715707302, 0.005663645453751087, 0.04455675929784775, 0.04018772393465042, 0.0018180711194872856, 0.005359775852411985, 0.029829837381839752, 0.026287032291293144, 0.027796583250164986, -0.0336436852812767, -0.019785504788160324, 0.05041025951504707, -0.0025813565589487553, 0.002342330291867256, -0.04416513070464134, -0.005558954086154699, -0.00014803216618020087, -0.07321780920028687, -0.014844264835119247, -0.008599079214036465, -0.03230047598481178, -0.0007187926094047725, 0.022130601108074188, 0.016717666760087013, 0.07583023607730865, -0.022110868245363235, 0.008591081947088242, 0.0438532717525959, -0.03190776705741882, -0.12011398375034332, 0.08077487349510193, 0.08413393050432205, 0.040766391903162, -0.030996201559901237, -0.031674668192863464, -0.020800450816750526, 0.08374453336000443, 0.00036879145773127675, -0.03861761838197708, -0.014434956014156342, 0.057439688593149185, 0.01754891127347946, 0.020226487889885902, 0.009533907286822796, 0.01769351400434971, 0.004786239471286535, -0.06225007772445679, -0.0236572977155447, -0.013149007223546505, -0.007577248848974705, -0.021535277366638184, -0.03905302286148071, 0.03920425474643707, -0.004284409340471029, 0.051809366792440414, 0.034964751452207565, 0.03293304890394211, 0.0691898912191391, -0.00453972490504384, 0.04592156410217285, -0.005180738866329193, -0.0800841674208641, -0.021447638049721718, -0.007431759964674711, 0.014278138056397438, -0.01799669861793518, 0.45114773511886597, -0.03304017335176468, -0.0368819460272789, 0.09012788534164429, 0.029969679191708565, -0.026958893984556198, -0.0006282399408519268, 0.011173882521688938, -0.06514027714729309, 0.021492017433047295, -0.01820124126970768, 0.018557416275143623, -0.005586166400462389, 0.09346488118171692, -0.05617799982428551, 0.027272356674075127, 0.026971692219376564, 0.040556762367486954, 0.0028579458594322205, 0.01962723582983017, -0.02684277854859829, -0.001888458733446896, 0.03282810002565384, 0.014654896222054958, -0.018925940617918968, 0.006159735377877951, -0.06982362270355225, 0.012842577882111073, 0.05695079639554024, 0.014879888854920864, 0.0006923896726220846, 0.05107114836573601, -0.062041617929935455, -0.0404353141784668, -0.01032995618879795, -0.013908296823501587, 0.019127363339066505, 0.023976800963282585, 0.025907592847943306, 0.014263487420976162, 0.03809824958443642, 0.01138697937130928, -0.005404443480074406, -0.005267268046736717, -0.002594279358163476, -0.054362017661333084, 0.04823015257716179, 0.03511353209614754, -0.04127053916454315, 0.012179541401565075, -0.041093483567237854, 0.012413608841598034, 0.02334580570459366, 0.016515295952558517, -0.06851649284362793, 0.04030068963766098, 0.030733279883861542, 0.08589311689138412, 0.009576668962836266, -0.05847794562578201, -0.007785669062286615, -0.02746116928756237, -0.006799162365496159, -0.03508138656616211, 0.026156194508075714, 0.03052370622754097, -0.0796232521533966, -0.03432924300432205, 0.0005366115947254002, 0.02984415553510189, -0.07222955673933029, -0.01776815950870514, 0.007225755602121353, -0.04969843104481697, 0.00012858783884439617, 0.024278149008750916, -0.04201151803135872, -0.019585782662034035, 0.012823747470974922, 0.04400283843278885, 0.03703692927956581, 0.00012328417506068945, -0.005707093048840761, -0.03484469652175903, 0.021036796271800995, -0.030080843716859818, -0.06611455976963043, -0.055328309535980225, 0.015264435671269894, -0.015016741119325161, 0.009782393462955952, -0.01566333882510662, -0.029699277132749557, -0.06939506530761719, 0.10390829294919968, -0.015237729996442795, -0.012529066763818264, -0.0001186264053103514, -0.003940305206924677, -0.03360167145729065, -0.01968657411634922, -0.04136636108160019, 0.0017547699389979243, -0.05485791340470314, 0.018270302563905716, -0.04003974795341492, 0.06558941304683685, 0.055709417909383774, -0.06302646547555923, 0.09689792990684509, 0.04935014247894287, -0.04700160399079323, -0.0369364432990551, 0.008263936266303062, 0.004942957311868668, -0.010540290735661983, -0.00396372377872467, -0.0016050495905801654, 0.008848211728036404, -0.011443139053881168, 0.026871712878346443, -0.02147311344742775, -0.030391719192266464, -0.07271838188171387, -0.33923405408859253, -0.05522666871547699, -0.04743427038192749, -0.009857499040663242, 0.018382873386144638, -0.06283330172300339, 0.02413364313542843, -0.03300326690077782, -0.011073858477175236, 0.017085116356611252, 0.05220291391015053, -0.045125458389520645, 0.012182875536382198, -0.11933586001396179, 0.010811842978000641, 0.005959104746580124, -0.022458883002400398, -0.031211677938699722, -0.06573717296123505, 0.0031829597428441048, 0.0029153290670365095, -0.0064128730446100235, -0.0013259743573144078, -0.03123117983341217, -0.03211580961942673, -0.07060189545154572, 0.08784174174070358, 0.000012446709661162458, 0.09962458163499832, -0.013517151586711407, 0.027578165754675865, 0.011609315872192383, 0.043739333748817444, -0.0829324945807457, 0.0016196484211832285, 0.00654674181714654, 0.0019978219643235207, -0.018234897404909134, 0.013194807805120945, -0.04173940792679787, -0.05106579139828682, 0.03228108957409859, -0.04779618978500366, -0.036777082830667496, -0.08005189150571823, 0.0052290139719843864, -0.00101917190477252, -0.028558794409036636, -0.02276790514588356, 0.06987827271223068, 0.014190646819770336, 0.003921146038919687, 0.015554092824459076, 0.012560800649225712, -0.021973688155412674, -0.020727872848510742, -0.09587358683347702, 0.0178560558706522, -0.010017375461757183, 0.009460624307394028, 0.03146478906273842, 0.04339173063635826, 0.01708798110485077, -0.061577651649713516, 0.00857722107321024, 0.0008547405013814569, -0.013746139593422413, 0.01209877710789442, 0.058036208152770996, 0.004477786831557751, -0.026350142434239388, 0.07892299443483353, -0.0005346654215827584, -0.026019388809800148, 0.019152965396642685, 0.042230360209941864, 0.0110618332400918, 0.03081960417330265, -0.010591638274490833, -0.025308707728981972, 0.012620455585420132, -0.015699243173003197, 0.0367620550096035, -0.03977705165743828, -0.027496354654431343, 0.014049943536520004, -0.02315557934343815, -0.07094022631645203, 0.04835923761129379, 0.0249409768730402, -0.03798754885792732, 0.008055375888943672, -0.019719088450074196, -0.05872703343629837, 0.08604544401168823, 0.01969068869948387, -0.2235713005065918, 0.0028449473902583122, 0.05820734053850174, 0.053943242877721786, -0.021357987076044083, 0.030808018520474434, 0.023940913379192352, -0.05952247977256775, 0.034238677471876144, -0.002758622635155916, 0.03924207016825676, 0.01794891431927681, -0.004440612159669399, -0.03256123140454292, 0.029178893193602562, -0.004787050187587738, 0.040513601154088974, -0.013718673959374428, 0.013403847813606262, 0.02283935435116291, 0.026530487462878227, -0.025846002623438835, 0.15584196150302887, 0.04687367007136345, 0.011470368131995201, 0.01353277824819088, 0.005946142598986626, 0.046456046402454376, 0.03797515481710434, 0.001744916196912527, 0.023409554734826088, 0.007863352075219154, 0.046836987137794495, 0.010207665152847767, 0.01602267473936081, -0.07123403996229172, -0.045561861246824265, 0.0455990768969059, 0.05052633956074715, -0.0036155369598418474, 0.010367821902036667, 0.03240180015563965, -0.017973417416214943, 0.03832639008760452, 0.0704987645149231, 0.015978418290615082, -0.03746525198221207, -0.02339118719100952, -0.05498889461159706, 0.005815190728753805, -0.03632832691073418, -0.032475799322128296, 0.014418044127523899, -0.01714302971959114, 0.022456159815192223, 0.10407274216413498, 0.03302855044603348, -0.015339876525104046, -0.0031043568160384893, 0.004946941509842873, -0.007187580224126577, -0.009834304451942444, 0.15180516242980957, 0.04113902524113655, 0.03830656781792641 ]
[ -0.02468414232134819, 0.009804489091038704, -0.0018408955074846745, 0.01842031255364418, -0.022644363343715668, 0.003948352765291929, 0.00138412497472018, 0.012585798278450966, -0.026425272226333618, 0.03797174245119095, 0.023012451827526093, 0.055123936384916306, 0.007316051982343197, -0.023250827565789223, -0.014444330707192421, -0.020489878952503204, 0.015063333325088024, -0.010531477630138397, 0.03180351480841637, -0.013692863285541534, -0.027774754911661148, 0.04216216504573822, 0.0007976042106747627, -0.027043471112847328, -0.015898331999778748, 0.0534885935485363, 0.0004894246230833232, -0.0013640314573422074, 0.0022937972098588943, -0.13433989882469177, 0.005815144162625074, -0.023222666233778, -0.01913246512413025, -0.0032218992710113525, 0.020273584872484207, 0.017349574714899063, 0.0024107140488922596, 0.032922834157943726, 0.000917495577596128, -0.026578031480312347, -0.012322844937443733, -0.015093723312020302, -0.01797640509903431, -0.002466876059770584, 0.000916142191272229, -0.004153295420110226, -0.01487742643803358, -0.014242622070014477, -0.002296737628057599, -0.05938449501991272, -0.025795230641961098, -0.01426553726196289, -0.009569843299686909, -0.018297307193279266, 0.003977177198976278, 0.009913340210914612, 0.045421238988637924, 0.005326549522578716, 0.0004143060650676489, -0.022213110700249672, -0.01126633957028389, -0.014240438118577003, -0.07633540034294128, -0.014960622414946556, -0.006438121199607849, 0.003711105789989233, 0.009309004992246628, 0.026211600750684738, -0.049077585339546204, 0.03558153659105301, -0.014728867448866367, 0.023485267534852028, -0.03206261619925499, -0.035700198262929916, 0.04785972088575363, 0.008392089046537876, -0.00825496856123209, -0.024125171825289726, 0.0061749182641506195, -0.028917433694005013, -0.048205357044935226, 0.025307388976216316, 0.012383528985083103, -0.0008649250958114862, 0.0034506982192397118, -0.001742360182106495, 0.020743459463119507, -0.007533208001405001, 0.03943156450986862, -0.004925827961415052, 0.0064150188118219376, 0.008149072527885437, -0.024856559932231903, 0.020163048058748245, -0.09401077777147293, -0.011374839581549168, -0.0014965343289077282, 0.008627179078757763, -0.013269410468637943, 0.8624063730239868, 0.0015373460482805967, -0.004910613410174847, 0.02291502244770527, 0.010753968730568886, 0.037982214242219925, -0.001976964296773076, 0.019734250381588936, -0.016978250816464424, 0.008068623021245003, -0.06405991315841675, -0.021343529224395752, 0.008664746768772602, 0.01228543370962143, 0.0096052847802639, 0.05568990483880043, -0.0003055793640669435, 0.038903672248125076, -0.0008608451462350786, 0.04342462867498398, -0.009523035027086735, 0.027875609695911407, 0.019158538430929184, -0.003457124112173915, 0.04750416427850723, -0.002799629932269454, -0.15115834772586823, -0.00753467483446002, -7.638833958751492e-33, 0.013502106070518494, -0.004582169000059366, -0.0037046715151518583, -0.025146745145320892, 0.005028973799198866, -0.020438192412257195, 0.02021506056189537, 0.023698873817920685, 0.012978017330169678, -0.016437390819191933, -0.028171606361865997, -0.002974594244733453, 0.004896814934909344, -0.003316848073154688, 0.015162462368607521, -0.0012246816186234355, 0.00807492621243, 0.02922876924276352, -0.006097765173763037, 0.027129413560032845, 0.011235901154577732, -0.0015691077569499612, 0.009104584343731403, -0.007729328237473965, 0.03716936334967613, 0.02385796047747135, 0.04567749798297882, 0.03263768181204796, -0.020005932077765465, -0.05018036812543869, -0.021368779242038727, 0.013781391084194183, 0.00462708855047822, -0.05076167359948158, -0.0297091081738472, -0.019004929810762405, -0.03944850340485573, -0.021626338362693787, -0.01741163246333599, -0.04084102436900139, -0.039977531880140305, 0.010759269818663597, -0.05509408563375473, 0.0003838426200672984, -0.011391846463084221, 0.0027963388711214066, -0.015195176936686039, 0.034200519323349, -0.002633149502798915, 0.010065731592476368, 0.019829455763101578, 0.041133735328912735, 0.007706684060394764, 0.009270582348108292, -0.026863934472203255, 0.06135337054729462, 0.017980370670557022, 0.018424637615680695, 0.012999245896935463, 0.0224748682230711, 0.029465196654200554, 0.018432004377245903, -0.006776589434593916, 0.007778860628604889, 0.01459202915430069, 0.006632527802139521, -0.0038465585093945265, 0.024768907576799393, -0.004694423172622919, -0.02624369040131569, -0.07482805848121643, -0.0052441563457250595, -0.0013010092079639435, 0.001859355834312737, -0.007783250883221626, -0.01437683030962944, 0.006808379199355841, 0.014267791993916035, -0.015449573285877705, -0.01509992964565754, -0.01314491406083107, -0.008678290992975235, 0.0016182353720068932, -0.03460526838898659, -0.018020814284682274, -0.014602495357394218, 0.005473746452480555, -0.030076297000050545, -0.02849508263170719, 0.00897975917905569, 0.01677786186337471, 0.015978770330548286, 0.008020221255719662, 0.016103621572256088, -0.009100090712308884, 6.472724460952582e-33, 0.007000340148806572, -0.03840166702866554, -0.022216470912098885, 0.014715387485921383, 0.01205578725785017, -0.015035619959235191, -0.01778418757021427, 0.018750052899122238, -0.03990590199828148, 0.019352911040186882, -0.04297207295894623, -0.019522132351994514, -0.038706082850694656, 0.011032179929316044, 0.040176186710596085, -0.031903453171253204, 0.0033379150554537773, -0.015215427614748478, 0.04121284931898117, 0.0037580025382339954, 0.006566472817212343, 0.02171643078327179, 0.03167698159813881, -0.017595931887626648, 0.03482326492667198, 0.030881144106388092, 0.009238181635737419, 0.04320775717496872, -0.003776448778808117, -0.015388759784400463, 0.021839024499058723, -0.004071492701768875, 0.027373885735869408, 0.006987026892602444, -0.006958535872399807, 0.025436315685510635, -0.014938881620764732, -0.01156825665384531, -0.013492031022906303, 0.010626845993101597, 0.02825443632900715, 0.03363624960184097, 0.0090589364990592, 0.03801079839468002, -0.0015059373108670115, 0.03216340392827988, 0.026248270645737648, -0.017676793038845062, -0.03612152487039566, 0.028435230255126953, -0.022816335782408714, 0.0110459104180336, -0.0034119398333132267, 0.007677103392779827, -0.009630749933421612, -0.012164032086730003, 0.005809337832033634, -0.025539563968777657, -0.015897752717137337, -0.0010862232884392142, -0.046464186161756516, 0.0035554112400859594, 0.0057600210420787334, 0.007659680210053921, -0.011241731233894825, -0.01849273219704628, -0.036728110164403915, -0.01536137331277132, 0.0064979554153978825, -0.004063938744366169, -0.023548126220703125, -0.004311229567974806, 0.0002631014212965965, 0.018269039690494537, -0.009025666862726212, -0.0007997485809028149, -0.04010172188282013, 0.010307785123586655, -0.06665754318237305, 0.01277064997702837, 0.0005374656757339835, -0.0019457372836768627, -0.002734564943239093, 0.023243939504027367, -0.00742268655449152, 0.00807792879641056, -0.018015580251812935, 0.019439423456788063, -0.007202628068625927, -0.031007831916213036, -0.003408761229366064, -0.0247967466711998, 0.012661454267799854, 0.010820637457072735, -0.02780800685286522, -1.3053099934268175e-8, 0.007054449990391731, 0.027027608826756477, -0.0063180397264659405, -0.014832435175776482, 0.011888190172612667, 0.007299380376935005, 0.009144899435341358, 0.006667412351816893, -0.04972092807292938, 0.030392950400710106, 0.025646407157182693, -0.028171740472316742, 0.004325140733271837, 0.02978266216814518, -0.022326422855257988, -0.014802442863583565, -0.02493801899254322, 0.0018118724692612886, 0.017039181664586067, -0.007868080399930477, 0.04132307693362236, 0.05073118209838867, -0.016861822456121445, 0.026790879666805267, 0.006541050039231777, 0.00837921816855669, 0.015293121337890625, -0.08445165306329727, -0.017484037205576897, -0.016516001895070076, 0.0013624874409288168, -0.021998530253767967, 0.014248170889914036, 0.040962815284729004, -0.0013699248665943742, -0.025198429822921753, 0.004270480014383793, 0.022450793534517288, 0.01668190211057663, 0.0072983261197805405, -0.05520414188504219, 0.00011666007776511833, 0.012638533487915993, -0.03445596992969513, -0.021634910255670547, -0.015063904225826263, -0.02040848322212696, -0.015688924118876457, 0.01733105629682541, 0.0016104391543194652, 0.00829665083438158, 0.012014101259410381, 0.016728287562727928, 0.020272033289074898, 0.0345425084233284, 0.035956211388111115, -0.008322303183376789, -0.019423138350248337, -0.010417391546070576, 0.007732123602181673, -0.0028276857919991016, 0.004026392940431833, -0.02230442315340042, -0.009804388508200645 ]
debug-it-book-review
https://markhneedham.com/blog/2009/12/24/debug-it-book-review
false
2009-12-23 07:27:51
Duke Nukem Forever & Reworking code
[ "software-development" ]
[ "Software Development" ]
http://twitter.com/offbytwo[Cosmin Stejerean] linked to a really interesting article on wired.com which tells the story of http://www.wired.com/magazine/2009/12/fail_duke_nukem/all/1[how Duke Nukem failed over 12 years to ship their latest game], eventually giving up. Phil has written a post about the article http://fragmental.tw/2009/12/22/duke-nukem-forever-and-magic-bags-of-money[from the angle of his experience working with these types of companies and working out how to get something into production] but as I read this article it seemed to have some relation to reworking code and why/how we approach this. It can be reworking of code through either http://blogs.agilefaqs.com/2009/12/22/rewrite-vs-refactor-dilemma/[rewriting or refactoring], but the general idea is that it's not directly contributing to getting something released. One particular bit of the article stood out to me as being particularly interesting - it describes how they decided to change from the Quake II game engine to the Unreal one: ____ One evening just after E3, while the team sat together, a programmer threw out a bombshell: Maybe they should switch to Unreal? "`The room got quiet for a moment,`" Broussard recalled. Switching engines again seemed insane -- it would cost another massive wad of money and require them to scrap much of the work they'd done. But Broussard decided to make the change. Only weeks after he showed off Duke Nukem Forever, he stunned the gaming industry by announcing the shift to the Unreal engine. "`It was effectively a reboot of the project in many respects,`" ____ What they effectively did here is to rip out a core bit of the architecture and totally change it which would be quite a difficult decision to make if you knew you had to deliver by a certain date. We've made that decision on projects that I've worked on but you have need to come up with a very compelling argument to do so i.e. typically that productivity will be much improved by making the change. Whenever we talked about refactoring code during our technical book club http://intwoplacesatonce.com/[Dave] always pointed out that http://weblog.raganwald.com/2008/05/narcissism-of-small-code-differences.html[refactoring for the sake of doing so] is pointless which to an extent explains why it makes most sense to refactor either around the code that we're currently working on or http://fabiopereira.me/blog/2009/09/01/technical-debt-retrospective/[in the areas that are causing us most pain]. For me *the goal of refactoring code is to make it easier to work with or easier to change* but it's useful to remember that we're refactoring to help us reach another goal. An idea which I quite like (suggested by http://www.dtsato.com/blog/[Danilo]) but haven't tried yet is running technical retrospectives more frequently so that we can work out which areas of the code we need to work out for our current release and then make use of http://no-new-ideas.blogspot.com/2008/11/bowling-cards.html[Stuart Caborn's bowling card idea] to keep track of how much effort we've spent on these problems. It seems like any refactorings we decide to do need to be linked to a common vision which we're trying to achieve and that seems to be where Duke Nukem went wrong. The vision of what was actually required for the game to be successful was lost and as many features as possible were added in. The Duke Nukem approach seems quite similar to going through the code and making refactorings just to make the code 'better' even though we might not see any return from doing so. In http://www.amazon.com/gp/product/193435628X?ie=UTF8&tag=marneesblo-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=193435628X[Debug It] Paul Butcher suggests that we need to approach bugs in software with pragmatic zero tolerance by realising that while our aim is to have no bugs we need to keep sight of our ultimate goal while doing so. I think we can apply the same rule when reworking code. We should look to write good code which is well factored and easy to change but realise that we'll never be able to write perfect code and we shouldn't beat ourselves up about it.
null
null
[ 0.016737086698412895, 0.016790298745036125, -0.0018800852121785283, 0.0382743775844574, 0.0715557411313057, 0.01247092429548502, 0.018275070935487747, 0.05157846957445145, 0.012432997114956379, -0.03529587760567665, -0.039660729467868805, 0.008694792166352272, -0.0490649938583374, 0.02271685190498829, -0.031063076108694077, 0.0766456350684166, 0.06460965424776077, -0.01517851185053587, 0.02099442295730114, 0.019574731588363647, 0.039764404296875, 0.06928209215402603, 0.025567349046468735, 0.04389549791812897, 0.016864962875843048, 0.013222555629909039, 0.008397214114665985, -0.0026165314484387636, -0.06946329772472382, -0.0010871022241190076, 0.028851041570305824, 0.00024224143999163061, 0.011826900765299797, -0.03151097893714905, 0.006478905212134123, 0.0010648845927789807, -0.028995610773563385, 0.050047241151332855, 0.00787500198930502, 0.014644726179540157, -0.05456506460905075, 0.05078515037894249, -0.014498698525130749, 0.001784857246093452, -0.040205709636211395, 0.008254468441009521, -0.006390436552464962, 0.020693175494670868, 0.005873152054846287, -0.010156863369047642, -0.04976685345172882, 0.02503485418856144, -0.02489696629345417, 0.004060457926243544, -0.03567476198077202, 0.04829787462949753, 0.017361141741275787, -0.050962358713150024, -0.005086637567728758, -0.0418575294315815, 0.01782095991075039, -0.0076204873621463776, 0.0105720991268754, 0.025320343673229218, 0.021965770050883293, -0.008117016404867172, 0.00466747535392642, 0.04253299534320831, -0.030326785519719124, -0.017359739169478416, -0.0033961113076657057, 0.0047322907485067844, -0.005557205993682146, -0.018207330256700516, 0.04246729239821434, -0.042223505675792694, 0.009565935470163822, 0.06920717656612396, 0.014168182387948036, 0.044929128140211105, -0.012145261280238628, -0.0034274577628821135, 0.0404682494699955, 0.037080179899930954, -0.03895096853375435, -0.043216921389102936, 0.01940380036830902, -0.011166846379637718, -0.07682397216558456, 0.05677749961614609, 0.013311080634593964, -0.04429991543292999, 0.05036269500851631, 0.02827710472047329, 0.002012168290093541, 0.03247953951358795, 0.04301169514656067, 0.01058331597596407, -0.002749840961769223, 0.002638693433254957, -0.0037484795320779085, -0.021483326330780983, -0.010449577122926712, -0.01733352057635784, -0.09159041941165924, -0.019227515906095505, -0.018069133162498474, -0.009739344008266926, -0.017531119287014008, -0.018565844744443893, -0.007103619631379843, 0.021687667816877365, -0.015897005796432495, 0.0027685402892529964, -0.0735076293349266, 0.07006188482046127, 0.0058780331164598465, -0.04622608795762062, 0.013617230579257011, 0.017302894964814186, 0.05989006906747818, 0.019371934235095978, -0.025567956268787384, 0.09186746180057526, 0.03535493463277817, 0.02551138773560524, 0.00980798713862896, 0.04333877190947533, -0.012455138377845287, -0.06475139409303665, 0.00024778852821327746, 0.06420399993658066, -0.046636562794446945, -0.0036407671868801117, 0.013892391696572304, -0.04780816286802292, -0.00398650299757719, -0.015910962596535683, -0.000044325664930511266, 0.0263426061719656, -0.020591409876942635, -0.0387570783495903, 0.007767132017761469, 0.01754869520664215, 0.029716558754444122, 0.006458183750510216, -0.021738911047577858, -0.027392759919166565, -0.03087322600185871, 0.015463249757885933, 0.0075553893111646175, 0.007262312341481447, 0.009473335929214954, -0.050777580589056015, 0.034317415207624435, 0.07110246270895004, 0.0249743964523077, 0.002093017566949129, -0.014780664816498756, 0.041119493544101715, 0.0397716723382473, 0.03149714320898056, 0.021143000572919846, 0.01897628977894783, 0.010909040458500385, -0.006014159414917231, 0.006181376054883003, 0.032710134983062744, -0.004863806068897247, -0.0016310210339725018, -0.06287622451782227, -0.04902550205588341, 0.05473192408680916, -0.03248272463679314, -0.023780079558491707, 0.040299441665410995, 0.08140812069177628, 0.04986424371600151, 0.050714291632175446, -0.000028917265808559023, -0.0957309827208519, 0.001448035822249949, 0.005174670834094286, 0.023530306294560432, 0.017943955957889557, -0.03785586357116699, 0.04685813933610916, -0.00811381172388792, 0.009033159352838993, 0.06695953756570816, -0.0804472342133522, -0.08316631615161896, -0.02259787544608116, -0.011591123417019844, 0.06303122639656067, -0.011479385197162628, -0.005198089871555567, 0.0629238411784172, 0.0065735806711018085, 0.050935473293066025, 0.0009646418620832264, -0.014465264976024628, 0.010879317298531532, -0.05750405788421631, -0.06899364292621613, 0.03197016194462776, 0.041161634027957916, 0.0057353973388671875, -0.05074748024344444, 0.010640697553753853, -0.01542095560580492, -0.0071830544620752335, 0.043724823743104935, -0.03152106702327728, 0.04492219164967537, 0.01207922026515007, 0.03603091090917587, -0.02894630655646324, 0.04111691564321518, -0.05583011358976364, -0.017366303130984306, 0.004006223753094673, -0.032944560050964355, 0.01238260418176651, 0.022966042160987854, 0.10803236812353134, 0.0660896822810173, -0.054519668221473694, -0.037291061133146286, 0.007142811082303524, 0.023320574313402176, -0.03390916809439659, -0.019312389194965363, -0.015608660876750946, 0.012510210275650024, 0.008215624839067459, -0.03953716158866882, -0.046159300953149796, 0.0143185555934906, -0.0496649444103241, 0.007833728566765785, 0.07025923579931259, -0.0017480510286986828, 0.053735170513391495, -0.0027312145102769136, 0.014830922707915306, 0.01662815362215042, -0.040843211114406586, -0.061034176498651505, 0.0018622784409672022, -0.024301031604409218, -0.01747375912964344, 0.04759569466114044, -0.015156850218772888, -0.006165453232824802, -0.04310120269656181, -0.02504516765475273, 0.017166443169116974, 0.03549548238515854, 0.06349585950374603, -0.004332490265369415, 0.03483930230140686, -0.02765136957168579, 0.03598637878894806, -0.008010669611394405, -0.059822678565979004, -0.0487210638821125, -0.044706180691719055, -0.0012591620907187462, 0.036191172897815704, -0.01298588514328003, 0.031679362058639526, 0.016210105270147324, -0.013704936020076275, -0.007997753098607063, -0.01573752798140049, 0.01663780026137829, 0.00852824654430151, -0.016240116208791733, -0.023214226588606834, -0.014812508597970009, 0.05973025783896446, -0.0443473681807518, -0.008856323547661304, -0.000624082051217556, -0.06096546724438667, 0.06376737356185913, -0.07288813591003418, -0.03698033466935158, -0.012956519611179829, -0.0018894345266744494, 0.016549913212656975, -0.01975265145301819, 0.025082342326641083, 0.06586753576993942, 0.002142653102055192, 0.011609242297708988, -0.008114635944366455, -0.0008606110350228846, 0.027049172669649124, -0.01976989023387432, 0.007465700153261423, 0.004183752462267876, 0.014316569082438946, 0.003164734924212098, -0.05894217640161514, 0.04950244724750519, -0.01627759262919426, -0.2724800109863281, 0.020889781415462494, 0.017480945214629173, -0.04814523458480835, 0.02076154202222824, 0.026050303131341934, -0.0068640694953501225, -0.05776446312665939, -0.03295860439538956, 0.01850132644176483, -0.02925846539437771, -0.04803793504834175, -0.021205324679613113, 0.05531654134392738, 0.016849320381879807, 0.006204040255397558, 0.03932330384850502, -0.03172537684440613, -0.016824331134557724, 0.02686960995197296, -0.00774407247081399, -0.0744108036160469, -0.01510387472808361, 0.02535259537398815, 0.03547315672039986, 0.06815087050199509, -0.051846157759428024, 0.02977992221713066, -0.053067535161972046, -0.011970286257565022, 0.0012142814230173826, 0.004541511181741953, 0.010061093606054783, -0.009540186263620853, -0.016959622502326965, -0.00944566261023283, 0.043351106345653534, 0.010524728335440159, -0.0072882212698459625, 0.003536742180585861, -0.007875761948525906, -0.016930093988776207, -0.025502577424049377, -0.0019027636153623462, 0.08544975519180298, -0.025082159787416458, -0.09584154188632965, 0.0013783954782411456, -0.026739921420812607, 0.05660589784383774, -0.02540414407849312, -0.04664231464266777, -0.00709576578810811, 0.05760094150900841, -0.009698969312012196, -0.0011768108233809471, -0.009050268679857254, -0.02104816399514675, -0.03214573487639427, -0.04003676772117615, -0.019124899059534073, -0.026859654113650322, -0.02412533201277256, -0.015171852894127369, 0.007897415198385715, -0.0726596936583519, -0.04955602437257767, -0.020216571167111397, 0.07645832002162933, 0.018295852467417717, -0.03086826764047146, 0.014596362598240376, -0.018814604729413986, -0.10495985299348831, -0.008791687898337841, 0.010181133635342121, -0.03357389569282532, 0.000486970558995381, 0.014607314020395279, 0.049409762024879456, -0.03139693662524223, -0.058512456715106964, 0.024382850155234337, 0.00989859364926815, 0.010318090207874775, -0.003167930291965604, 0.051928721368312836, 0.02569764479994774, -0.004699948709458113, 0.005362515803426504, 0.0617554672062397, -0.01029831264168024, -0.012451623566448689, -0.028208596631884575, -0.0028515802696347237, -0.005121226888149977, 0.019843431189656258, -0.0019226674921810627, 0.008731023408472538, 0.043898675590753555, -0.00607746047899127, -0.08456096798181534, 0.04174848645925522, -0.04440966621041298, -0.016282886266708374, 0.004577960353344679, -0.02625099942088127, 0.0010005480144172907, 0.046507131308317184, 0.040560536086559296, -0.0026280642487108707, -0.033798087388277054, 0.03354056924581528, -0.04254409670829773, -0.016390250995755196, -0.02900732308626175, 0.02916121669113636, 0.05772487819194794, -0.008723154664039612, -0.007672950159758329, -0.052260056138038635, 0.028094494715332985, -0.026093803346157074, -0.015297808684408665, -0.042968109250068665, -0.017039284110069275, -0.009176724590361118, -0.008409900590777397, 0.02514788694679737, 0.03335707634687424, -0.03699071705341339, 0.05640481412410736, 0.009934457950294018, -0.01681273989379406, 0.02268187142908573, -0.049817975610494614, -0.07470543682575226, -0.041116561740636826, -0.0022434007842093706, -0.0006517526344396174, 0.004575615748763084, 0.027389628812670708, 0.004963260609656572, -0.0009806934976950288, 0.022072385996580124, 0.01780666410923004, 0.04295097663998604, 0.002791541861370206, 0.04817201942205429, 0.024427855387330055, -0.0017130682244896889, -0.061620358377695084, 0.04526956006884575, -0.058033932000398636, -0.030159687623381615, -0.009482164867222309, 0.05123606696724892, -0.012328521348536015, -0.03292589634656906, -0.00912281684577465, -0.0073092286475002766, -0.04176078736782074, -0.05091167241334915, -0.017613913863897324, 0.009433386847376823, 0.052820999175310135, -0.002195106353610754, 0.020525429397821426, -0.011402997188270092, -0.012297035194933414, 0.02358090877532959, 0.024807598441839218, -0.05759017542004585, 0.0003425776958465576, 0.015882359817624092, 0.001667429693043232, -0.0071914950385689735, -0.015335220843553543, 0.05476665496826172, 0.007023131940513849, 0.016526082530617714, -0.008834345266222954, 0.003576606512069702, 0.018573898822069168, 0.029148466885089874, -0.005218566861003637, -0.0070857517421245575, 0.006203228607773781, -0.009812811389565468, -0.01881864294409752, -0.028381722047924995, -0.00799260288476944, -0.00884313602000475, 0.015185520052909851, -0.04657202586531639, -0.07152553647756577, 0.05571594461798668, 0.011577333323657513, 0.014328958466649055, 0.01598740555346012, 0.01744571514427662, -0.013922290876507759, -0.016214240342378616, 0.028231706470251083, 0.06381605565547943, -0.059189554303884506, 0.013328202068805695, -0.007375076413154602, 0.025621647015213966, 0.015871945768594742, -0.0029648456256836653, -0.022800499573349953, -0.021782854571938515, -0.0205453522503376, 0.016865713521838188, -0.06836289912462234, 0.005508793517947197, -0.02192758396267891, 0.002388600492849946, -0.01161687821149826, -0.030338075011968613, -0.013318621553480625, 0.0004194767971057445, -0.01036424282938242, -0.04210836812853813, 0.001677634078077972, -0.036076560616493225, -0.005353441461920738, 0.01454565953463316, -0.04210003837943077, 0.012780264019966125, -0.025434736162424088, -0.005567783489823341, 0.02887127734720707, -0.007444704882800579, 0.002018530387431383, -0.019376253709197044, -0.013071199879050255, -0.013627895154058933, 0.024859299883246422, -0.013335195370018482, -0.047601956874132156, -0.041983701288700104, -0.0036532494705170393, -0.037707697600126266, 0.01857737824320793, -0.020687047392129898, 0.01066543534398079, 0.023467114195227623, 0.04579249396920204, 0.007799522951245308, 0.015495662577450275, -0.03697596862912178, -0.018830589950084686, 0.05434280261397362, -0.09097101539373398, -0.01609746366739273, -0.010667722672224045, -0.05979828163981438, -0.004014765843749046, -0.003418687032535672, 0.01672395132482052, -0.062303632497787476, 0.047158218920230865, 0.02779451385140419, 0.02435464598238468, 0.03670936077833176, -0.007503582164645195, 0.016573801636695862, -0.05959136784076691, 0.003506904933601618, -0.07780046761035919, 0.01641312800347805, 0.04286758229136467, -0.011814462952315807, 0.006295281928032637, 0.010532725602388382, -0.036067791283130646, 0.02255980111658573, -0.07811526209115982, -0.02183336205780506, 0.0473838709294796, -0.006363308988511562, -0.013716919347643852, 0.023401329293847084, -0.07940971106290817, 0.029300272464752197, 0.01891843043267727, -0.04113961011171341, -0.027302244678139687, -0.018359987065196037, 0.04020276293158531, 0.0029917345382273197, 0.031489986926317215, -0.03324073180556297, -0.009649191051721573, 0.0748886838555336, 0.0049686008132994175, 0.022455062717199326, 0.05915696918964386, -0.017816860228776932, 0.0510239340364933, 0.03578822314739227, 0.016732146963477135, 0.008568475022912025, 0.01161912176758051, -0.003211818402633071, -0.040643349289894104, -0.0035349272657185793, 0.013080209493637085, -0.03593231365084648, -0.044425513595342636, 0.05130894482135773, 0.020935308188199997, -0.00829591229557991, -0.0358404740691185, 0.013566612266004086, -0.07205793261528015, 0.004797074478119612, -0.046385008841753006, -0.017107903957366943, -0.04945181682705879, 0.05679800733923912, 0.01849881000816822, 0.004780708346515894, 0.07505428791046143, 0.009261987172067165, -0.024386750534176826, -0.008126676082611084, 0.08060271292924881, 0.0666375607252121, 0.04713223874568939, 0.013279763981699944, 0.054724305868148804, -0.035793036222457886, -0.04593305662274361, 0.023474227637052536, 0.017555121332406998, -0.02035045623779297, -0.02155473828315735, 0.016843844205141068, 0.06444769352674484, -0.01889198273420334, 0.06417128443717957, -0.02354312315583229, -0.015419762581586838, 0.007860030047595501, 0.02416265942156315, 0.006303621921688318, 0.09001350402832031, -0.0059713637456297874, 0.0035062830429524183, -0.010950160212814808, -0.048407360911369324, 0.04385426267981529, -0.04238749295473099, -0.006194936111569405, 0.012014060281217098, 0.0036308534909039736, 0.03374473750591278, 0.005296857096254826, 0.01801992766559124, 0.08818643540143967, -0.030196761712431908, 0.04942886531352997, -0.0029130398761481047, 0.010276800021529198, 0.007638291455805302, 0.024407368153333664, -0.047115594148635864, 0.0028154707979410887, -0.00815944280475378, -0.029213234782218933, -0.027144549414515495, -0.025570962578058243, -0.01636756770312786, 0.05423372983932495, -0.02500416338443756, -0.017488479614257812, 0.03185737133026123, -0.006056718062609434, -0.003017714014276862, -0.07146143913269043, -0.050151508301496506, -0.03217339888215065, -0.05812273547053337, -0.01839052326977253, 0.02792929671704769, 0.0000021569965156231774, -0.04201219603419304, 0.003599683055654168, -0.029178516939282417, -0.04235110431909561, 0.05397164449095726, -0.03597567230463028, -0.024528980255126953, 0.028651835396885872, 0.001505525317043066, 0.006768524181097746, 0.047530241310596466, 0.05866297334432602, -0.00867346953600645, -0.009315699338912964, -0.023029448464512825, 0.029367243871092796, 0.02291816473007202, -0.016373764723539352, -0.003077110508456826, -0.08775559812784195, 0.04610281437635422, 0.04291963204741478, -0.017271049320697784, -0.07035692036151886, 0.04500441998243332, -0.000034573829907458276, -0.030652716755867004, 0.0536794476211071, -0.0197751522064209, 0.0284870658069849, -0.04864206537604332, -0.0009664365206845105, -0.034774959087371826, 0.004639896564185619, 0.051313914358615875, -0.043173592537641525, 0.0897219255566597, 0.04383067414164543, -0.02973027154803276, -0.04084527865052223, -0.020799806341528893, -0.007353546563535929, 0.010202901437878609, -0.001512145041488111, -0.01930149644613266, -0.0367853157222271, -0.08396264910697937, -0.004745204467326403, 0.038631588220596313, -0.02513500489294529, -0.04573994502425194, 0.04205905646085739, 0.020906222984194756, -0.01398115511983633, 0.016621625050902367, -0.03564060851931572, 0.021318651735782623, -0.032321441918611526, -0.007790941279381514, -0.014992010779678822, 0.022666295990347862, 0.009017212316393852, 0.022558877244591713, 0.0483996644616127, -0.05170172080397606, 0.0027430399786680937, 0.004212995059788227, 0.022853035479784012, 0.033820003271102905, 0.03967253863811493, 0.0033015955705195665 ]
[ -0.12571820616722107, -0.007707776501774788, -0.023452002555131912, -0.02153853140771389, 0.04910314828157425, -0.03219315782189369, -0.05167938396334648, 0.02672524005174637, -0.016249090433120728, 0.003369108075276017, 0.01344312448054552, -0.007804821245372295, -0.016252240166068077, -0.02049805223941803, 0.09602823853492737, 0.03270765766501427, -0.012094391509890556, -0.06513703614473343, 0.010650924406945705, 0.01829604245722294, -0.0015279214130714536, -0.06626559793949127, 0.00912651140242815, -0.008183218538761139, -0.00033015728695318103, 0.009340242482721806, 0.024258119985461235, -0.007171212695538998, -0.005382067058235407, -0.17951282858848572, -0.0008713887655176222, 0.03089487925171852, 0.01188731286674738, -0.018699049949645996, 0.009350674226880074, 0.05235933139920235, 0.024320442229509354, 0.012534178793430328, -0.03257203474640846, 0.030322570353746414, 0.005292009096592665, 0.042648959904909134, -0.03261087089776993, -0.0498843640089035, 0.05922088027000427, 0.008707929402589798, -0.0035665007308125496, -0.05013158172369003, 0.01818886026740074, -0.0051328931003808975, -0.04780690744519234, -0.010850873775780201, -0.02768307738006115, -0.04964577406644821, 0.03643680736422539, 0.02066836506128311, 0.040520694106817245, 0.06508425623178482, 0.021184388548135757, 0.018258171156048775, 0.015535238198935986, -0.0360163152217865, -0.13138097524642944, 0.06711666285991669, 0.09866852313280106, 0.05965452641248703, -0.037450116127729416, -0.059139419347047806, 0.0037947692908346653, 0.0930665135383606, -0.00681263767182827, -0.028514748439192772, -0.0015167873352766037, 0.018895316869020462, 0.010306019335985184, 0.016743527725338936, 0.010007718577980995, 0.02130807377398014, 0.013094997964799404, -0.035339195281267166, -0.0008423122344538569, -0.006932373158633709, -0.06718406081199646, -0.010419340804219246, -0.05727407708764076, 0.0048684850335121155, -0.021484896540641785, 0.07219091802835464, 0.02408396080136299, 0.04720737040042877, 0.0382373221218586, 0.014021445997059345, 0.0968804806470871, -0.012641406618058681, -0.07781705260276794, 0.01986883580684662, -0.007242536172270775, 0.007121506612747908, -0.03054177574813366, 0.4321683347225189, 0.012506112456321716, -0.05230657756328583, 0.06238241866230965, 0.023498328402638435, 0.0135552529245615, 0.021362759172916412, 0.005511198192834854, -0.030172504484653473, 0.03051724284887314, 0.0032082977704703808, 0.016181109473109245, 0.028846126049757004, 0.07803396135568619, -0.03537613898515701, 0.028530942276120186, 0.03821973130106926, -0.005609895568341017, 0.03171764314174652, -0.025668025016784668, -0.003163502784445882, -0.017382048070430756, 0.05422893166542053, 0.011251644231379032, -0.012900568544864655, -0.022083668038249016, -0.039796508848667145, 0.005237509962171316, 0.06659772992134094, 0.02506924234330654, 0.001874935464002192, 0.022671382874250412, -0.04132109507918358, -0.049824997782707214, 0.0017873450415208936, 0.011670722626149654, 0.022612830623984337, 0.03051695227622986, -0.023340994492173195, 0.0005027464358136058, 0.05535470321774483, -0.001016589580103755, -0.0014176423428580165, 0.001327877282164991, -0.042967185378074646, -0.04054269194602966, 0.06978806853294373, 0.047289639711380005, -0.0342511422932148, -0.009051458910107613, -0.006746977102011442, 0.0015268188435584307, 0.012701735831797123, -0.0016173077747225761, -0.039994772523641586, 0.028675159439444542, -0.0022507410030812025, 0.07586265355348587, -0.010980232618749142, -0.06342221796512604, 0.001772073796018958, 0.00227908487431705, -0.04252016171813011, -0.02859189175069332, 0.030710093677043915, 0.05299508571624756, -0.0864577442407608, -0.042922716587781906, 0.012729257345199585, 0.05642644315958023, -0.05729426443576813, -0.0498628094792366, 0.02477375976741314, -0.038068003952503204, -0.04071832820773125, 0.06855215132236481, -0.038100145757198334, -0.03409190475940704, 0.0034360126592218876, 0.06475808471441269, 0.03729982301592827, 0.004173268564045429, 0.016433624550700188, -0.028959471732378006, 0.005758707411587238, -0.0540696382522583, -0.1055406853556633, -0.023859083652496338, 0.002391197020187974, -0.026789609342813492, -0.008819246664643288, -0.02038327418267727, 0.005668801721185446, -0.08060596883296967, 0.12079652398824692, 0.00020330703409854323, -0.011861073784530163, 0.002023284090682864, -0.0005269625107757747, -0.009278963319957256, -0.038136113435029984, -0.025533296167850494, 0.010114218108355999, -0.052492957562208176, 0.025192249566316605, -0.09648513048887253, 0.06983865052461624, 0.04698843136429787, -0.04161490872502327, 0.09309010207653046, 0.05035300925374031, -0.04715512692928314, -0.040648650377988815, 0.001228461740538478, 0.03869044780731201, -0.011557495221495628, -0.004869892727583647, -0.0036902152933180332, 0.0023109877947717905, -0.014556773006916046, 0.015065927058458328, 0.0036986982449889183, 0.021414486691355705, -0.030956720933318138, -0.3180980086326599, -0.026520879939198494, -0.06486448645591736, -0.033719927072525024, 0.030283676460385323, -0.04118230193853378, 0.006002487149089575, -0.0329928882420063, -0.008568849414587021, -0.005376319866627455, 0.05933520570397377, -0.02012890763580799, 0.013921798206865788, -0.09147150069475174, -0.008313803002238274, -0.0024704900570213795, -0.02470388263463974, -0.0008039643289521337, -0.038236021995544434, -0.0030282463412731886, -0.0016771662048995495, 0.0001420576882082969, -0.06042376160621643, -0.04251257702708244, -0.02858589217066765, -0.05574167147278786, 0.12234678119421005, 0.011557904072105885, 0.07634513825178146, -0.012606244534254074, 0.02607768401503563, 0.023043973371386528, 0.044097933918237686, -0.10114395618438721, 0.04648369923233986, -0.005114785395562649, 0.024597598239779472, -0.023957382887601852, -0.021743105724453926, -0.03196354955434799, -0.061456676572561264, 0.01754981093108654, -0.04391789808869362, -0.05960990488529205, -0.04382278025150299, 0.016724083572626114, -0.0631352961063385, -0.009822752326726913, -0.03720509633421898, 0.07985309511423111, 0.007960380055010319, 0.0007362765609286726, 0.015333938412368298, -0.003249147441238165, 0.0020813588052988052, -0.025700923055410385, -0.07984934747219086, 0.016224082559347153, 0.05528808757662773, 0.012540983036160469, 0.022634631022810936, 0.08130323141813278, -0.015170974656939507, -0.04332105815410614, 0.01836678944528103, 0.011743376031517982, 0.02020207792520523, 0.004484938457608223, 0.06491940468549728, -0.010301850736141205, -0.015944965183734894, 0.0908520445227623, -0.013510781340301037, -0.027692388743162155, 0.028414009138941765, 0.019018447026610374, -0.015375684015452862, 0.02661624364554882, 0.01568327471613884, -0.023204714059829712, 0.02173621580004692, -0.02187599427998066, 0.030751705169677734, -0.01443653367459774, -0.02086184360086918, -0.01614074781537056, -0.03952822461724281, -0.05928213894367218, 0.0419485829770565, 0.06676996499300003, -0.04460771754384041, 0.017541198059916496, -0.03792727738618851, -0.07455219328403473, 0.0562756210565567, -0.008277127519249916, -0.2517090141773224, 0.009072762914001942, 0.08539777994155884, 0.02426760084927082, -0.0036940353456884623, 0.02203945256769657, 0.03233996406197548, -0.018300672993063927, 0.037269726395606995, 0.03211624175310135, 0.04942683130502701, 0.028663888573646545, -0.025710316374897957, 0.014984093606472015, 0.016761206090450287, -0.045031413435935974, 0.029167210683226585, -0.017739776521921158, 0.029901079833507538, -0.0025643003173172474, 0.015812035650014877, -0.007774108089506626, 0.15264853835105896, 0.005318720359355211, 0.009975021705031395, 0.02105093188583851, -0.02219397947192192, 0.04452834650874138, 0.02538210339844227, 0.02068851701915264, -0.03189632669091225, 0.024270255118608475, 0.0064866626635193825, 0.011582443490624428, 0.011494186706840992, -0.07149261236190796, -0.019319338724017143, 0.03804907202720642, 0.013907237909734249, 0.0223991796374321, -0.026941385120153427, 0.013515734113752842, 0.018873637542128563, 0.026554083451628685, 0.0711212009191513, 0.011901283636689186, -0.011370806954801083, -0.02470085211098194, -0.05981995165348053, -0.035095781087875366, -0.05792846158146858, -0.023212308064103127, 0.043352629989385605, -0.029169954359531403, 0.011271627619862556, 0.09357103705406189, 0.006486280355602503, -0.024038322269916534, 0.03176690638065338, -0.003740007057785988, -0.01981050707399845, -0.009259175509214401, 0.0911310538649559, 0.004387286491692066, 0.04496170952916145 ]
[ -0.0046525988727808, 0.004715499468147755, 0.008629836142063141, -0.01582620106637478, 0.00456558633595705, 0.01476630661636591, -0.018575718626379967, 0.02020195871591568, -0.0320826955139637, 0.013641915284097195, -0.01728174462914467, 0.0394095778465271, 0.020812630653381348, -0.05787605419754982, 0.002808223944157362, -0.01570967212319374, -0.01316060870885849, 0.0004086261324118823, 0.024729738011956215, -0.004990026354789734, -0.00806693360209465, 0.018637580797076225, -0.019434383139014244, 0.006747703067958355, -0.018514856696128845, 0.005223965272307396, -0.0024935693945735693, 0.05092042312026024, 0.004401953890919685, -0.15155616402626038, -0.036457695066928864, -0.01176473032683134, -0.010270276106894016, -0.0015584916109219193, 0.026706267148256302, 0.023347558453679085, 0.010001947171986103, 0.003952409140765667, -0.005348662845790386, -0.014312847517430782, -0.011757842265069485, -0.01201489195227623, -0.006514984183013439, 0.014207666739821434, 0.0021822697017341852, 0.013803712092339993, -0.02734728343784809, -0.03871147334575653, -0.017541056498885155, 0.009565668180584908, -0.02746761217713356, -0.01759164035320282, -0.003242494771257043, 0.003498261561617255, 0.029573695734143257, -0.006010575219988823, 0.013868517242372036, 0.006715454626828432, 0.026993095874786377, -0.032153915613889694, 0.02103092148900032, -0.0154621172696352, -0.039481811225414276, -0.02573656104505062, 0.0033500159624964, -0.010888519696891308, 0.028865763917565346, 0.017574245110154152, -0.06620299816131592, 0.000038682203012285754, 0.013128262013196945, 0.02479090727865696, -0.045236457139253616, -0.03710697218775749, -0.02468768134713173, 0.028050659224390984, -0.012468311004340649, -0.020756404846906662, 0.020071284845471382, 0.01500700693577528, -0.02307802625000477, -0.005248561035841703, 0.031199408695101738, -0.029786016792058945, 0.00379586243070662, 0.0036596853751689196, -0.0027803683187812567, -0.02519344538450241, 0.04220444709062576, 0.013287550769746304, -0.03438074514269829, 0.005531789734959602, 0.03404945135116577, 0.03804829716682434, -0.07682285457849503, -0.009360728785395622, -0.012565016746520996, -0.01772242970764637, 0.008758741430938244, 0.8526580929756165, -0.01658325456082821, 0.03997231647372246, 0.016111982986330986, 0.008498173207044601, 0.010075737722218037, 0.031515561044216156, 0.005323150660842657, 0.01545321848243475, 0.013954325579106808, -0.02992190793156624, -0.002907375805079937, 0.02056085132062435, 0.013083896599709988, -0.039930518716573715, 0.04891112446784973, 0.024871861562132835, 0.03756687417626381, 0.03474440425634384, 0.00038389352266676724, 0.015502706170082092, 0.04552987217903137, 0.020606638863682747, -0.0034303488209843636, 0.02156613953411579, 0.007493709214031696, -0.18218284845352173, -0.009958469308912754, -7.52480145583013e-33, 0.039827100932598114, 0.005748446099460125, -0.014922174625098705, 0.030320150777697563, -0.00826470460742712, -0.009137951768934727, -0.0024200771003961563, 0.03836359828710556, -0.0336485393345356, -0.02549644745886326, -0.016936536878347397, -0.014726879075169563, -0.009894156828522682, -0.007286364678293467, 0.03425353765487671, -0.044213421642780304, 0.02376745454967022, 0.023894712328910828, -0.00018730932788457721, 0.0061326827853918076, 0.024067219346761703, 0.03030049242079258, 0.00020327394304331392, 0.015110064297914505, 0.016416287049651146, 0.015190393663942814, -0.006136931478977203, -0.00004728274871013127, -0.0017610352952033281, -0.04415150731801987, -0.021929152309894562, 0.017517687752842903, -0.01953958347439766, -0.004259395878762007, 0.0023998788092285395, -0.04415455833077431, -0.02944749779999256, 0.002005900489166379, -0.03812253847718239, -0.01843482255935669, -0.0071793594397604465, -0.007018894422799349, -0.04823315888643265, -0.014596030116081238, -0.011409217491745949, 0.00725516164675355, 0.0068139987997710705, -0.015151566825807095, 0.04176745563745499, -0.01347391214221716, 0.020743543282151222, 0.023944268003106117, 0.020803065970540047, 0.012802748940885067, -0.011466688476502895, -0.006752302870154381, 0.00515645369887352, -0.009704668074846268, 0.025381416082382202, 0.017144478857517242, 0.01912369392812252, 0.01419586967676878, -0.0201479010283947, 0.05520370230078697, -0.04067157581448555, 0.016624875366687775, 0.03415895998477936, 0.030850110575556755, 0.02815874293446541, 0.0005378390778787434, -0.05448310077190399, 0.007509267423301935, 0.0024880743585526943, -0.0004289586504455656, 0.003597264876589179, -0.002434126567095518, -0.014238063246011734, -0.0127186868339777, -0.01117299497127533, 0.03684016317129135, 0.018432186916470528, -0.01824459433555603, -0.041558887809515, -0.037659384310245514, -0.00975389126688242, -0.015676777809858322, -0.006033214274793863, -0.001823710510507226, 0.018953200429677963, 0.0032262331806123257, 0.0355035774409771, -0.011177566833794117, 0.01614285632967949, -0.01736709289252758, -0.031984101980924606, 7.158774555503147e-33, -0.002027272479608655, -0.03451606258749962, -0.020679520443081856, 0.030778948217630386, 0.006652739364653826, -0.008771148510277271, 0.010186600498855114, -0.0014326097443699837, -0.06608638167381287, 0.01176137663424015, -0.024636337533593178, -0.007076071575284004, -0.03163762390613556, 0.029150672256946564, 0.03469489514827728, -0.02156972698867321, 0.020108629018068314, -0.029627051204442978, 0.03555256128311157, 0.011515594087541103, 0.01860150322318077, -0.013299072161316872, -0.021881388500332832, -0.013289733789861202, 0.003275087336078286, 0.09137054532766342, -0.037968914955854416, 0.018178217113018036, 0.008560777641832829, -0.0057671694085001945, -0.0012915749102830887, -0.020528467372059822, 0.02018095552921295, 0.03150858357548714, -0.02020425535738468, 0.03437360003590584, -0.020558230578899384, 0.006095560267567635, -0.007000618148595095, 0.002059191232547164, 0.011089603416621685, -0.007166075520217419, -0.027934953570365906, 0.03739546239376068, 0.008902981877326965, 0.007382669020444155, 0.03404407948255539, -0.04893967881798744, 0.00674949586391449, 0.009235359728336334, 0.01717468537390232, 0.02053557150065899, 0.0005436022183857858, -0.0015745115233585238, 0.0004588141164276749, -0.021858466789126396, -0.04273225739598274, -0.020879477262496948, -0.0030431754421442747, 0.02957688458263874, 0.02161824330687523, 0.0031508905813097954, -0.0009399288101121783, 0.0010031794663518667, -0.034032322466373444, 0.01269492506980896, 0.006813933607190847, -0.006439362186938524, -0.03692208230495453, -0.0049822633154690266, -0.016316819936037064, 0.03392383083701134, 0.023552075028419495, 0.0516897551715374, -0.0037295203655958176, 0.0015845125308260322, -0.017651965841650963, 0.02376997284591198, -0.04283307120203972, 0.03344249352812767, -0.007011248264461756, -0.007775731850415468, -0.008627154864370823, 0.013593435287475586, -0.02345401793718338, 0.03610595688223839, -0.020247893407940865, 0.00511172553524375, -0.01603148877620697, -0.057245660573244095, -0.006390201859176159, -0.04573424905538559, 0.010928626172244549, 0.014441004954278469, 0.0028750821948051453, -1.3204056514837248e-8, 0.0005652476684190333, 0.002406379673629999, -0.007422978058457375, -0.024591580033302307, 0.013815214857459068, -0.010685348883271217, 0.00668482156470418, 0.01911485381424427, -0.009837080724537373, 0.007300081662833691, 0.03692267835140228, -0.004183493088930845, 0.0010948294075205922, 0.021192822605371475, 0.01396194938570261, -0.027774984017014503, -0.002983836689963937, 0.0031632129102945328, 0.024804463610053062, 0.00343013065867126, -0.008276409469544888, 0.06596603244543076, 0.004931990057229996, -0.004660414531826973, -0.016526976600289345, 0.00032667475170455873, 0.007733208127319813, -0.0717000886797905, 0.011333102360367775, 0.015046126209199429, -0.003305985126644373, -0.028013385832309723, -0.019837601110339165, 0.011739752255380154, -0.026928391307592392, -0.03292952850461006, 0.052266113460063934, 0.006117661949247122, 0.018152298405766487, -0.008702212944626808, -0.026942849159240723, 0.007508017588406801, -0.03824792802333832, -0.022534385323524475, 0.008045212365686893, -0.0163725633174181, -0.04011913761496544, -0.0013168209698051214, -0.03472841531038284, -0.035369664430618286, 0.0017880873056128621, 0.03176886588335037, 0.0006380035192705691, 0.04248587042093277, 0.02137000299990177, 0.0033472056966274977, -0.026965521275997162, 0.0026677425485104322, -0.03898477554321289, -0.010045178234577179, 0.0026716790162026882, -0.008797460235655308, -0.014674833975732327, -0.033155810087919235 ]
duke-nukem-forever-reworking-code
https://markhneedham.com/blog/2009/12/23/duke-nukem-forever-reworking-code
false
2009-12-15 08:09:05
Coding: The little details all add to our understanding
[ "coding" ]
[ "Coding" ]
I've been watching an interesting presentation by Scott Hanselmann titled 'http://www.vimeo.com/7680468[Information Overload and Managing the Flow]' from http://www.oredev.org/[OreDev] where he covers various strategies to allow us to be more productive in the face of the huge amounts of information constantly threatening to overwhelm us. One interesting suggestion he has around 37 minutes in is that when learning a new language it might be a good idea to contact someone who's an expert in that language and get some framing knowledge on the type of stuff that's worth learning and what we might not bother with. While this seems like a pretty good idea I think it's also useful to note that a lot of the knowledge that people have in a subject area comes from the little things that may seem insignificant as part of the big picture. Donald Knuth points out something similar in his interview in http://www.amazon.com/gp/product/1430219483?ie=UTF8&tag=marneesblo-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=1430219483[Coders at Work]: Seibel: ____ It seems a lot of the people I've talked to had direct access to a machine when they were starting out. Yet Dijkstra has a paper I'm sure you're familiar with, where he basically says we shouldn't let computer science students touch a machine for the first few years of their training; they should spend all their time manipulating symbols. ____ Knuth: ____ But that's not the way he learned either. He said a lot of really great things and inspirational things, but he's not always right. Neither am I, but my take on it is this: Take a scientist in any field. *The scientist gets older and says, "`Oh, yes, some of the things that I've been doing have a really great payoff and other things, I'm not using anymore. I'm not going to have my students waste time on the stuff that doesn't make giant steps. I'm not going to talk about low-level stuff at all. These theoretical concepts are really so powerful--that's the whole story. Forget about how I got to this point.`"* I think that's a fundamental error made by scientists in every field. They don't realize that when you're learning something you've got to see something at all levels. You've got to see the floor before you build the ceiling. That all goes into the brain and gets shoved down to the point where the older people forget that they needed it. ____ Over the last year or so I've played around with F#, Scala and Clojure and I've found with all three of them that I only start to understand how things work when I take an example from the book and then play around with it in the REPL and work out what combinations of the syntax lead to a compilation error and which don't. It's a pretty inefficient way of learning if you look at it from a high level but I find it's a necessary step for me. When I don't fight with the compiler like this then I don't really understand what I've read in a book or blog post well enough to write some code myself or explain it to someone else. I don't find that anything is truly a waste of time - even if it's something indirectly related such as reading a functional programming paper or following some examples of how lazy evaluation works in another language it all contributes to our understanding. It's certainly useful to get advice and help from people who know a language really well but we need to be careful not to under estimate the value of making mistakes and learning from them.
null
null
[ 0.03313708305358887, 0.013228774070739746, -0.004154867958277464, 0.06073660030961037, 0.08515825867652893, 0.006646573543548584, 0.0006361401756294072, 0.05884050577878952, 0.02085467241704464, -0.0280259158462286, -0.019073856994509697, 0.011819828301668167, -0.04325558990240097, 0.013400264084339142, -0.02649988979101181, 0.0683339387178421, 0.053985752165317535, -0.0104509387165308, 0.034632954746484756, 0.014722198247909546, 0.03215552493929863, 0.0656663253903389, 0.056500282138586044, 0.0291201863437891, 0.039433009922504425, -0.0022316977847367525, -0.012941543944180012, -0.006165501195937395, -0.051167283207178116, 0.0031427242793142796, 0.05063622444868088, 0.0024590562097728252, 0.001102289417758584, -0.0018857846735045314, 0.0167256947606802, -0.014429690316319466, -0.007391561754047871, 0.02602469176054001, 0.001838065916672349, 0.026812436059117317, -0.0703209936618805, 0.05804099142551422, -0.04009250923991203, 0.010964808985590935, -0.04874539002776146, -0.0061295232735574245, -0.03225893899798393, 0.014003163203597069, 0.005196383222937584, 0.007853787392377853, -0.06989701837301254, 0.03433028236031532, 0.01962786540389061, 0.00823523011058569, -0.036295562982559204, 0.046393733471632004, 0.02877878211438656, -0.0648047998547554, 0.007109274156391621, -0.026773547753691673, 0.0027583015616983175, -0.013157217763364315, -0.016333306208252907, 0.040485940873622894, 0.02416335791349411, -0.04294456169009209, 0.006105960346758366, 0.035098060965538025, -0.045204825699329376, -0.0009908461943268776, -0.020384201779961586, 0.022099202498793602, -0.012650095857679844, -0.018339255824685097, 0.008787046186625957, -0.06310301274061203, 0.016451075673103333, 0.054175738245248795, 0.010736817494034767, 0.027672655880451202, -0.02778739668428898, 0.03280901536345482, 0.009435445070266724, 0.038877300918102264, -0.016827808693051338, -0.033245932310819626, 0.0009083895129151642, -0.019007189199328423, -0.05858592316508293, 0.03193666413426399, -0.00023578741820529103, -0.055476173758506775, 0.02301858924329281, 0.02753862924873829, -0.0013029302936047316, 0.01583947241306305, 0.03107527829706669, 0.0003612879372667521, -0.03838811814785004, -0.015016132034361362, -0.01800193451344967, -0.030685588717460632, -0.013204372487962246, 0.020102951675653458, -0.07174075394868851, 0.0023447859566658735, -0.004528821911662817, -0.0074476334266364574, -0.005127234384417534, 0.009754550643265247, -0.024639669805765152, 0.011662806384265423, -0.02450605481863022, 0.005126554984599352, -0.07233523577451706, 0.06200401112437248, 0.029886052012443542, -0.04626850038766861, -0.0014181880978867412, -0.0018809942994266748, 0.04026935622096062, 0.04316239431500435, -0.006204756908118725, 0.0677257850766182, 0.004644196014851332, -0.005954446736723185, -0.017619844526052475, 0.03297853097319603, -0.017135221511125565, -0.05466032028198242, 0.006711027584969997, 0.04876071959733963, -0.016379237174987793, -0.019870616495609283, 0.003863874590024352, -0.00837254524230957, 0.00872268807142973, 0.006051550153642893, 0.02161206118762493, 0.06472954154014587, 0.007285143248736858, -0.06895165145397186, 0.01957469992339611, 0.0013848479138687253, 0.01851418800652027, -0.019408026710152626, -0.0019284940790385008, -0.0040202634409070015, -0.031064625829458237, -0.030373360961675644, -0.016705801710486412, 0.0002240131434518844, 0.018936224281787872, -0.029368974268436432, 0.03566678613424301, 0.09364394098520279, 0.02762511372566223, 0.023165186867117882, -0.004672170616686344, 0.015568776056170464, 0.03641074523329735, 0.033148325979709625, 0.005075807683169842, 0.005915359128266573, 0.0007493126904591918, -0.027947911992669106, 0.010352135635912418, 0.05341443791985512, -0.016052719205617905, 0.01636796072125435, -0.059297289699316025, -0.0156928151845932, 0.056035347282886505, -0.04912659525871277, -0.046835996210575104, 0.038168881088495255, 0.06875975430011749, 0.03245250880718231, 0.03313678875565529, -0.005744360387325287, -0.07955840975046158, 0.030520711094141006, 0.011581562459468842, 0.02337460033595562, 0.013745766133069992, -0.03015332855284214, 0.06808052957057953, 0.034509990364313126, 0.0013303530868142843, 0.03754255175590515, -0.06286423653364182, -0.08684341609477997, -0.026561837643384933, -0.007845521904528141, 0.05978818237781525, -0.016642140224575996, 0.036857590079307556, 0.07532656937837601, 0.008233102038502693, 0.05441196635365486, 0.022513410076498985, -0.006008562166243792, 0.024490797892212868, -0.02810603938996792, -0.04392921179533005, 0.05607323721051216, 0.029520347714424133, -0.02157510258257389, -0.03566247224807739, 0.008127444423735142, -0.003517034463584423, -0.025996170938014984, 0.051855139434337616, -0.01609020121395588, 0.014494947157800198, 0.017848355695605278, 0.04683710262179375, -0.04824156314134598, 0.02302734926342964, -0.01989726722240448, 0.00121720926836133, -0.00007449073746101931, -0.016569072380661964, 0.038474127650260925, 0.010608872398734093, 0.12410225719213486, 0.07095716893672943, -0.04286075010895729, -0.04321906343102455, 0.02765699289739132, 0.006962682120501995, -0.0721389427781105, -0.001518638338893652, -0.005164847243577242, 0.00663404306396842, -0.00809893012046814, -0.06335572898387909, -0.03277220204472542, 0.027439123019576073, -0.05531688034534454, -0.011326778680086136, 0.05919506773352623, -0.01879112608730793, 0.0576680451631546, 0.0005217685829848051, -0.005468280520290136, -0.011545471847057343, -0.01926558092236519, -0.04294518753886223, 0.008633631281554699, -0.016667893156409264, -0.0061917975544929504, 0.03452335298061371, -0.015442614443600178, -0.025842726230621338, -0.04981779679656029, -0.03992297500371933, 0.008616112172603607, 0.06993473321199417, 0.06779680401086807, 0.005096695385873318, 0.0752236619591713, -0.015038412995636463, 0.04354969412088394, -0.005142445210367441, -0.06354677677154541, -0.023769821971654892, -0.06932838261127472, 0.006393824703991413, 0.013473303988575935, 0.005206568166613579, 0.01606897823512554, 0.025918669998645782, 0.011429551988840103, -0.009213969111442566, -0.03620346635580063, 0.04323907569050789, -0.00907578133046627, -0.030898671597242355, -0.025884462520480156, -0.01566244289278984, 0.07202307879924774, -0.040339238941669464, -0.008238381706178188, -0.0002786775876302272, -0.06939524412155151, 0.0322914719581604, -0.04737906530499458, -0.028732264414429665, 0.004119295161217451, 0.005517815705388784, 0.03131162002682686, 0.015866335481405258, 0.024404915049672127, 0.060326509177684784, 0.027729317545890808, 0.03168298676609993, -0.02870883233845234, 0.0034489971585571766, 0.02895364537835121, -0.012091731652617455, 0.012003895826637745, 0.030982201918959618, 0.03743547201156616, -0.018753260374069214, -0.03900587186217308, 0.0698089674115181, -0.04211762547492981, -0.28197482228279114, 0.02832653373479843, 0.024186333641409874, -0.023532111197710037, 0.015039828605949879, -0.024073578417301178, 0.005272997543215752, -0.03995683044195175, -0.03025943599641323, -0.0035830303095281124, -0.033995356410741806, -0.014612092636525631, -0.04112309589982033, 0.0602618008852005, 0.01832864060997963, 0.011533018201589584, 0.023648975417017937, -0.02627594955265522, 0.016050193458795547, 0.06259331107139587, -0.021969299763441086, -0.06694012135267258, -0.01044864859431982, 0.06682194024324417, 0.04303429275751114, 0.039571620523929596, -0.09153500199317932, 0.03490881249308586, -0.06298491358757019, -0.001558594056405127, 0.0033596977591514587, -0.0049694739282131195, 0.026672622188925743, -0.022360898554325104, 0.006419291719794273, -0.011973096989095211, 0.06701286882162094, 0.021020065993070602, 0.012518958188593388, 0.006710368674248457, -0.015312443487346172, -0.03360173851251602, -0.020693551748991013, 0.020165685564279556, 0.05953636020421982, 0.020526383072137833, -0.06848268955945969, -0.0193234384059906, -0.01112085860222578, 0.05638580396771431, -0.054148197174072266, -0.03533481806516647, -0.0032888115383684635, 0.036248426884412766, -0.01804913952946663, -0.006844888906925917, -0.0008924585999920964, -0.00683933449909091, -0.05404743179678917, -0.036073602735996246, -0.0005217180587351322, -0.017655517905950546, -0.002529558027163148, -0.05014481768012047, 0.0029595938976854086, -0.07515331357717514, -0.06833813339471817, -0.016844019293785095, 0.07791538536548615, 0.008382217958569527, -0.03133606165647507, 0.03784318268299103, -0.0019868251401931047, -0.10793564468622208, -0.0028608450666069984, -0.002037790371105075, -0.04702417925000191, 0.012128472328186035, 0.03325282037258148, 0.05508459359407425, -0.04064084216952324, -0.05878777429461479, 0.028806159272789955, 0.005400350317358971, 0.04603884369134903, -0.041333746165037155, 0.036508508026599884, 0.005067076534032822, -0.005292441695928574, 0.017463017255067825, 0.061034224927425385, 0.007011961657553911, -0.03625419735908508, -0.02604980766773224, 0.021602371707558632, 0.022883933037519455, 0.009152427315711975, 0.011921906843781471, 0.02576204016804695, 0.043901391327381134, 0.0021548501681536436, -0.05267065390944481, 0.015718407928943634, -0.03671668469905853, -0.026655996218323708, -0.006254042033106089, -0.048352133482694626, 0.02419070340692997, 0.032885581254959106, 0.018090633675456047, -0.012168081477284431, -0.015614856034517288, 0.020146958529949188, -0.033481426537036896, -0.031481217592954636, -0.0001903313968796283, 0.018171947449445724, 0.04796185344457626, 0.0024640208575874567, -0.028751926496624947, -0.06427694112062454, 0.011745470575988293, 0.0028028604574501514, -0.020669810473918915, -0.044152140617370605, -0.017847349867224693, -0.016842646524310112, -0.01658148504793644, -0.0050397878512740135, 0.022950701415538788, -0.026733390986919403, 0.013843486085534096, 0.01595298945903778, -0.0282784104347229, 0.02062377519905567, -0.03945735841989517, -0.06977270543575287, -0.024434750899672508, 0.00035786876105703413, 0.004700938239693642, -0.02418326959013939, 0.03761756420135498, 0.005496707279235125, 0.007064247503876686, 0.030380696058273315, 0.016963670030236244, 0.00514259934425354, 0.004634061828255653, 0.03693458065390587, 0.0006519211456179619, 0.004067593719810247, -0.07058417797088623, 0.026022834703326225, -0.04095460847020149, -0.0025229949969798326, -0.02065768465399742, 0.037609100341796875, -0.021822061389684677, -0.033408571034669876, -0.00029128495953045785, 0.019978730008006096, -0.04444604367017746, -0.0508962981402874, -0.04257369786500931, 0.04745899885892868, 0.06730518490076065, -0.01694187894463539, 0.024902502074837685, 0.012672376818954945, -0.00456996588036418, 0.015297191217541695, 0.01115405187010765, -0.057123299688100815, -0.013887062668800354, 0.02349267154932022, -0.010902268812060356, -0.011786358430981636, 0.0028389994986355305, 0.049447860568761826, 0.016732295975089073, -0.0053129540756344795, -0.03553832322359085, -0.004545307252556086, 0.013996641151607037, 0.060647595673799515, 0.019633978605270386, -0.004964583553373814, 0.006783023942261934, -0.022286351770162582, -0.012495046481490135, -0.04075026512145996, -0.019530007615685463, -0.0019253493519499898, 0.0136574013158679, -0.03631717711687088, -0.06716618686914444, 0.05537276342511177, 0.019942674785852432, 0.009120181202888489, 0.02831362932920456, 0.012855676002800465, 0.004178336355835199, -0.028091002255678177, 0.031412381678819656, 0.04628577083349228, -0.07030688226222992, -0.023302290588617325, -0.02150106057524681, 0.011054163798689842, 0.014123724773526192, -0.010582435876131058, -0.008453083224594593, -0.010385703295469284, -0.02274775318801403, 0.007337941788136959, -0.05427825450897217, -0.03263319656252861, -0.023449178785085678, 0.013893833383917809, -0.00681200809776783, -0.019006555899977684, -0.01006143819540739, -0.028721585869789124, -0.027164937928318977, -0.028540166094899178, 0.014204369857907295, -0.037998322397470474, 0.01915995217859745, -0.0013012265553697944, -0.03394216671586037, -0.003749705385416746, -0.025031287223100662, 0.012208637781441212, 0.03955543041229248, -0.014885632321238518, 0.0030308193527162075, -0.01843368075788021, 0.015341940335929394, 0.006540096830576658, 0.04494306072592735, 0.0045497422106564045, -0.02997603639960289, -0.057711124420166016, 0.006694852840155363, -0.033079322427511215, 0.03644244372844696, -0.019804377108812332, 0.00352404429577291, 0.03113648295402527, 0.03676670044660568, 0.040656737983226776, 0.017858318984508514, -0.02783263847231865, -0.020048962906003, 0.0235282089561224, -0.06199409440159798, -0.014662736095488071, -0.04487261176109314, -0.048885978758335114, -0.0005075876251794398, 0.002069510519504547, 0.012658918276429176, -0.04910603165626526, 0.05229441449046135, 0.013624071143567562, 0.020791620016098022, 0.01774776168167591, 0.0098626259714365, 0.037069931626319885, -0.0536104254424572, 0.01659717969596386, -0.09648849070072174, -0.02872335910797119, 0.021428953856229782, 0.013963940553367138, 0.0018999497406184673, 0.007712622173130512, -0.03519897907972336, 0.030786307528614998, -0.09035500138998032, -0.02661501057446003, 0.05298030748963356, -0.011930135078728199, -0.030742883682250977, 0.008914672769606113, -0.06817813962697983, 0.009555949829518795, 0.03470510244369507, -0.040072061121463776, -0.011619129218161106, -0.026159634813666344, 0.05505827069282532, 0.0002328528935322538, 0.02433457039296627, -0.024630896747112274, -0.005868186242878437, 0.07292672246694565, 0.0060859983786940575, 0.013406592421233654, 0.03610130399465561, -0.0032951508183032274, 0.04456385597586632, 0.03439057990908623, 0.0033331376034766436, 0.000116382070700638, 0.01199316792190075, -0.01619281992316246, -0.04848458990454674, 0.02002166211605072, -0.015386130660772324, -0.033628202974796295, -0.038310322910547256, 0.057822905480861664, 0.019752923399209976, -0.031560514122247696, -0.06769827008247375, 0.034686360508203506, -0.05786196514964104, -0.007299753837287426, -0.03370625898241997, -0.019161788746714592, -0.040640391409397125, 0.0301982369273901, -0.01066298596560955, 0.008641446940600872, 0.07607347518205643, 0.001532835653051734, -0.03227917104959488, -0.020939692854881287, 0.1021106168627739, 0.07605978846549988, 0.0795040875673294, -0.01048555038869381, 0.07473015040159225, -0.02575765550136566, -0.026012206450104713, 0.013476960361003876, 0.002200850984081626, -0.01442535500973463, -0.0262738149613142, 0.023058397695422173, 0.0628974512219429, -0.010866192169487476, 0.06700155138969421, -0.036447569727897644, -0.02749301679432392, 0.009267181158065796, 0.04363018274307251, 0.0034069332759827375, 0.0630379319190979, 0.01711980812251568, 0.010294553823769093, -0.03131536766886711, -0.06611645966768265, 0.025534482672810555, -0.041442662477493286, -0.019358227029442787, 0.025912651792168617, -0.002471555257216096, 0.023379992693662643, 0.005351852159947157, 0.02436688356101513, 0.0716390460729599, -0.03711821511387825, 0.027755530551075935, -0.0008291389676742256, 0.03493187576532364, -0.021756168454885483, 0.024286018684506416, -0.03550638258457184, -0.01044732891023159, -0.0039028157480061054, -0.03574185073375702, -0.01493855845183134, -0.01609613746404648, -0.024836450815200806, 0.0333186574280262, -0.03167807683348656, 0.007371816318482161, 0.01909736730158329, -0.004801958799362183, -0.02855692245066166, -0.06092900410294533, -0.02476452849805355, -0.03871041536331177, -0.05671756714582443, -0.010206266306340694, 0.01631711795926094, 0.010375798679888248, -0.036685265600681305, -0.0240230280905962, -0.01716894656419754, -0.031202884390950203, 0.05744645744562149, -0.06096195429563522, -0.016254473477602005, 0.003321353578940034, 0.01603129506111145, 0.009382741525769234, -0.0031585190445184708, 0.034735456109046936, -0.02222542278468609, -0.00596855953335762, -0.019613798707723618, 0.0009153464343398809, 0.019558042287826538, 0.001135416910983622, -0.002760634757578373, -0.09680835157632828, 0.020926672965288162, 0.009431440383195877, -0.03559412807226181, -0.07454557716846466, 0.038504209369421005, 0.030719486996531487, 0.024045724421739578, 0.05850851908326149, -0.000933747855015099, 0.009835433214902878, -0.0534050278365612, -0.00030042341677471995, -0.01710292138159275, -0.002612513955682516, 0.051819853484630585, -0.012261349707841873, 0.0916975736618042, 0.018357886001467705, 0.005095828790217638, -0.036782406270504, -0.02529154345393181, -0.003027111291885376, 0.010121719911694527, -0.026321567595005035, -0.009780483320355415, -0.020455041900277138, -0.09612641483545303, -0.025999901816248894, 0.03711539879441261, -0.03477409854531288, -0.04222846031188965, 0.045295700430870056, 0.024505747482180595, 0.00986628420650959, 0.01086355745792389, -0.0484057255089283, 0.029968170449137688, -0.008272808976471424, 0.0004239881527610123, 0.014456482604146004, 0.01309250108897686, -0.008959313854575157, -0.011289071291685104, 0.008466346189379692, -0.045443370938301086, -0.015170269645750523, -0.0009461936424486339, 0.03090384043753147, 0.04072370007634163, 0.017629027366638184, -0.010393798351287842 ]
[ -0.07788637280464172, 0.009677382186055183, -0.020431499928236008, -0.035265203565359116, 0.03549927473068237, -0.027158066630363464, -0.014231759123504162, 0.04419020935893059, -0.025536291301250458, -0.028442110866308212, 0.007509067188948393, -0.03211473301053047, -0.004010647069662809, -0.011835945770144463, 0.08193844556808472, 0.02174968086183071, -0.00598266301676631, -0.08729725331068039, 0.003042822238057852, 0.019924325868487358, 0.027345342561602592, -0.04840598255395889, -0.017010601237416267, -0.030703214928507805, 0.002709475578740239, 0.0241597518324852, 0.038997210562229156, -0.043816570192575455, 0.02639099583029747, -0.16095873713493347, 0.0072340527549386024, 0.019080353900790215, 0.05141590163111687, -0.002922646002843976, -0.010729010216891766, 0.04876783862709999, 0.0364634171128273, 0.007644209545105696, -0.027976019307971, 0.04932694137096405, 0.012502074241638184, -0.0018720182124525309, -0.04515712335705757, -0.01798844523727894, 0.06024877727031708, 0.016785863786935806, -0.0017027826979756355, -0.06338721513748169, -0.017369456589221954, -0.0031315796077251434, -0.07634128630161285, -0.04062920808792114, -0.013581039384007454, -0.029021255671977997, -0.010741260834038258, 0.023414872586727142, 0.03496546670794487, 0.04707363620400429, 0.000013552931704907678, 0.001444092602469027, 0.011558963917195797, 0.004166147671639919, -0.14077241718769073, 0.10882267355918884, 0.03702900558710098, 0.04789644479751587, -0.033842310309410095, -0.01683230511844158, 0.00041657104156911373, 0.0722113847732544, 0.009221581742167473, -0.047972921282052994, -0.019038809463381767, 0.042971204966306686, 0.01741071045398712, 0.0021259207278490067, 0.006814024411141872, 0.007614588364958763, 0.03174975514411926, -0.0670408234000206, 0.003187478519976139, -0.0026971427723765373, -0.007787797134369612, -0.021389778703451157, -0.039676062762737274, 0.02728305198252201, -0.017438847571611404, 0.05361797288060188, 0.00295102596282959, 0.003648968180641532, 0.021401088684797287, -0.013365976512432098, 0.016709476709365845, 0.006226814351975918, -0.055500328540802, -0.05329053848981857, 0.0014150248607620597, 0.032957080751657486, -0.05339200422167778, 0.44773179292678833, -0.027542252093553543, -0.0173066183924675, 0.09725815802812576, 0.02997419610619545, -0.00046429256326518953, 0.004116663709282875, 0.008629174903035164, -0.047559093683958054, 0.033257488161325455, -0.032736700028181076, 0.024564970284700394, 0.017071928828954697, 0.05818609520792961, -0.01574249006807804, 0.034321609884500504, 0.02949937991797924, 0.05879281833767891, 0.01136831846088171, -0.003511353861540556, -0.016137342900037766, -0.018342021852731705, 0.029460299760103226, 0.018856950104236603, -0.02315795049071312, -0.01270313560962677, -0.09240724891424179, 0.012958641164004803, 0.06464693695306778, 0.022167444229125977, 0.010621992871165276, 0.05553585663437843, -0.05442899838089943, -0.039010412991046906, 0.01145818829536438, 0.006027838680893183, 0.0017704287311062217, 0.019077790901064873, -0.018102513626217842, 0.012243545614182949, 0.05236326530575752, 0.012710412964224815, -0.005065642762929201, 0.011195145547389984, -0.030013516545295715, -0.05478695407509804, 0.11640488356351852, 0.044343527406454086, -0.016086848452687263, 0.0027674082666635513, -0.04441113770008087, 0.026928655803203583, 0.009788887575268745, 0.0029462971724569798, -0.06394806504249573, 0.02216249704360962, 0.010543396696448326, 0.10516860336065292, -0.003084056079387665, -0.07890023291110992, -0.01896493136882782, -0.024539116770029068, -0.017498241737484932, -0.05366868898272514, 0.03944554179906845, 0.10226145386695862, -0.04246621951460838, -0.031716302037239075, 0.011433595791459084, 0.04006833955645561, -0.06906663626432419, 0.004315349273383617, 0.019566578790545464, -0.028351426124572754, 0.011047286912798882, 0.06474289298057556, -0.05205893516540527, -0.05074302852153778, 0.013298243284225464, 0.041851576417684555, 0.010682685300707817, 0.025660455226898193, -0.01542950700968504, -0.005702064838260412, 0.004797049798071384, -0.04506970942020416, -0.07803875207901001, -0.03607068210840225, -0.016426661983132362, -0.024707945063710213, 0.0025906977243721485, -0.012161355465650558, 0.031786173582077026, -0.06414258480072021, 0.07355090975761414, -0.03336172550916672, -0.01843271590769291, 0.02418125793337822, -0.007956517860293388, -0.047814831137657166, -0.02407822571694851, -0.072388656437397, 0.005930193234235048, -0.06220289319753647, 0.052714940160512924, -0.061453524976968765, 0.04010065272450447, 0.07433813810348511, -0.041078660637140274, 0.12514728307724, 0.05300036817789078, -0.003137849038466811, -0.065499447286129, 0.018721038475632668, 0.03249821439385414, -0.0013186828000470996, -0.032034922391176224, 0.03166420757770538, 0.005479116458445787, 0.00616476172581315, 0.0004497443151194602, 0.0030224600341171026, -0.003386950120329857, -0.05422855541110039, -0.34357818961143494, -0.04400242120027542, -0.018965139985084534, 0.006437106989324093, 0.03616145998239517, -0.034231528639793396, 0.03866579756140709, -0.017865343019366264, 0.009806724265217781, 0.014827102422714233, 0.03863239288330078, -0.007688903249800205, 0.02191844768822193, -0.11028282344341278, 0.0004858262254856527, 0.0037921336479485035, -0.010617215186357498, 0.002507798606529832, -0.022907540202140808, -0.007063284981995821, -0.006123958621174097, 0.018714556470513344, -0.02287818305194378, -0.06831802427768707, -0.028271811082959175, -0.06141163036227226, 0.10963282734155655, 0.015569198876619339, 0.0729902908205986, -0.023576518520712852, 0.024172378703951836, 0.006185861770063639, 0.0319436751306057, -0.11594901978969574, 0.0011566323228180408, -0.01140326913446188, 0.004799600690603256, -0.023397229611873627, 0.02600119076669216, -0.03996936231851578, -0.034537173807621, 0.0011330246925354004, -0.06955467164516449, -0.018299994990229607, -0.1003778725862503, 0.020997891202569008, -0.030596822500228882, -0.029484832659363747, -0.02869546227157116, 0.06854750216007233, 0.01905045658349991, 0.015889326110482216, 0.011267171241343021, 0.007818124257028103, -0.0283432025462389, -0.03550402447581291, -0.09324043244123459, 0.019542424008250237, -0.0009981848997995257, 0.016001617535948753, 0.009280064143240452, 0.05472797155380249, 0.006180845201015472, -0.06150389835238457, -0.0034991975408047438, 0.004062226507812738, 0.004068250767886639, 0.011018263176083565, 0.040709927678108215, -0.005250751972198486, -0.008560450747609138, 0.1109890341758728, 0.013061625882983208, -0.014936394058167934, 0.007528217043727636, 0.03558128699660301, 0.0005992063670419157, 0.021995214745402336, 0.016105463728308678, 0.011938335373997688, 0.046984218060970306, -0.03619423136115074, 0.017095092684030533, -0.003167349612340331, -0.0016968618147075176, 0.008866888470947742, -0.009090830571949482, -0.0543951541185379, 0.03785808011889458, 0.04932735860347748, -0.03062547743320465, 0.03354456648230553, -0.023055430501699448, -0.0635332316160202, 0.07685896754264832, 0.004274724517017603, -0.24320939183235168, 0.03399909660220146, 0.06425603479146957, 0.044383369386196136, 0.004120611120015383, 0.019526267424225807, 0.025338251143693924, -0.04307231679558754, 0.0216083824634552, 0.03688632324337959, 0.028217263519763947, -0.0018473418895155191, -0.013176387175917625, 0.015058054588735104, 0.017486972734332085, -0.012122881598770618, 0.05022558569908142, -0.0046285102143883705, 0.0008997834520414472, 0.03433140739798546, 0.009994206950068474, 0.009028490632772446, 0.13227728009223938, 0.021480124443769455, 0.033927738666534424, -0.015053640119731426, -0.015407008118927479, 0.02092665806412697, 0.06392500549554825, -0.017313364893198013, 0.008908754214644432, -0.004175242967903614, 0.01112738810479641, -0.018750863149762154, 0.01914716511964798, -0.04897793382406235, -0.032858822494745255, -0.00304625672288239, 0.02266533300280571, 0.002255148719996214, 0.02165224403142929, -0.0027382278349250555, -0.03995514661073685, 0.022264035418629646, 0.060358867049217224, 0.024096796289086342, 0.030104514211416245, -0.05996031314134598, -0.0555528849363327, -0.023788467049598694, -0.030857982113957405, -0.030980616807937622, 0.012492378242313862, 0.011639355681836605, -0.0018939708825200796, 0.0796222984790802, 0.027704138308763504, -0.04450016841292381, 0.00008162371523212641, -0.031188160181045532, -0.03127097710967064, -0.022326279431581497, 0.07991988211870193, 0.05639245733618736, 0.017646146938204765 ]
[ -0.00026305552455596626, 0.006463099271059036, 0.023282641544938087, 0.02454707957804203, 0.005625694524496794, -0.02474815584719181, -0.006103478837758303, 0.012851146049797535, -0.007153564598411322, -0.009710284881293774, -0.007539937738329172, 0.02937920205295086, -0.027198927477002144, -0.015445485711097717, 0.018244603648781776, -0.0011971374042332172, 0.0024230829440057278, -0.017297033220529556, 0.021083559840917587, 0.011048119515180588, 0.0006565632065758109, -0.00009101969044422731, 0.00786040909588337, -0.005862093064934015, -0.007334875408560038, 0.045478902757167816, 0.0020902587566524744, -0.014093291945755482, 0.046348195523023605, -0.14880330860614777, -0.03082326613366604, -0.008466299623250961, -0.02240738831460476, 0.022420180961489677, -0.0074429758824408054, 0.008164412342011929, -0.005106010474264622, 0.014284801669418812, -0.008366676978766918, -0.0035875302273780107, -0.010163934901356697, 0.004417984280735254, 0.017096975818276405, 0.029316097497940063, 0.004632945638149977, -0.0007754749385640025, 0.014221555553376675, -0.05459640547633171, -0.02254515327513218, -0.030170084908604622, -0.04660271853208542, -0.039785437285900116, -0.021522672846913338, 0.018512597307562828, -0.012202667072415352, -0.005887109320610762, 0.04645947366952896, -0.011004989966750145, 0.006854227744042873, 0.0019408059306442738, -0.01753208413720131, -0.053160205483436584, -0.047055404633283615, -0.016116181388497353, -0.008075051009654999, -0.020357605069875717, -0.012766490690410137, 0.025365276262164116, -0.04585167020559311, 0.021471314132213593, 0.0006583075155504048, 0.0187740009278059, -0.021083517000079155, -0.0006922297761775553, 0.02776317298412323, -0.015770386904478073, -0.002735854359343648, -0.015927104279398918, 0.02439720556139946, -0.0053742509335279465, -0.026322389021515846, 0.010919089429080486, -0.0015828909818083048, -0.023969758301973343, -0.005393642466515303, -0.0019245679723098874, 0.008372414857149124, -0.008312907069921494, 0.01039861049503088, -0.005919686984270811, -0.022800395265221596, 0.01344969216734171, -0.0003372861538082361, 0.011621665209531784, -0.08644231408834457, -0.0043793790973722935, 0.0017764618387445807, -0.013739447109401226, -0.004213742911815643, 0.8784812688827515, -0.001301794545724988, 0.025274178013205528, 0.030084092170000076, -0.004345790483057499, -0.0009600330959074199, 0.0022134920582175255, 0.007858236320316792, 0.009550810791552067, 0.019648926332592964, -0.01928207091987133, 0.005863489583134651, 0.011710341088473797, 0.01767672784626484, 0.023418081924319267, 0.016017837449908257, 0.017552603036165237, 0.013573149219155312, 0.014717869460582733, -0.008568965829908848, 0.025645092129707336, -0.0058509972877800465, 0.006525268312543631, -0.006329446565359831, 0.011662730015814304, -0.020257750526070595, -0.19933602213859558, -0.00439638365060091, -8.433497527266129e-33, 0.04199950397014618, 0.013788838870823383, -0.0037567876279354095, -0.0005813736352138221, -0.016183573752641678, -0.011267443187534809, 0.031816769391298294, 0.024363122880458832, -0.017604919150471687, -0.02015661634504795, -0.0038329819217324257, -0.004255759064108133, -0.0004309680371079594, -0.019871890544891357, 0.018710751086473465, -0.020121995359659195, -0.0011274771532043815, 0.011737270280718803, -0.0015094871632754803, 0.01758389174938202, 0.0582793690264225, 0.009095404297113419, -0.008365598507225513, -0.007580033969134092, 0.007163276430219412, 0.0033086156472563744, -0.006252853665500879, 0.0013500817585736513, -0.018191440030932426, -0.041899070143699646, -0.03781844303011894, 0.02328658103942871, -0.02580104023218155, -0.036387842148542404, 0.020306894555687904, -0.03851785138249397, -0.02503528818488121, 0.010639349929988384, 0.014952844008803368, -0.018911417573690414, -0.02979385107755661, 0.02253561094403267, -0.023166483268141747, -0.01840333454310894, -0.01764647848904133, 0.0023164490703493357, 0.03728537634015083, 0.012127913534641266, 0.007799869868904352, -0.00625957315787673, -0.013005546294152737, -0.006918520200997591, 0.002434577327221632, 0.0006524123018607497, 0.019735680893063545, 0.011935891583561897, 0.013714244589209557, -0.0035641964059323072, -0.0037609580904245377, 0.02081960067152977, 0.03471936658024788, 0.013504818081855774, -0.010952178388834, 0.022979067638516426, -0.0005847715656273067, -0.006714742165058851, 0.00868912972509861, 0.019708218052983284, 0.011667762883007526, -0.013942515477538109, -0.058249618858098984, -0.0025070628616958857, -0.012891516089439392, -0.005318174138665199, 0.0024205888621509075, 0.004703064914792776, -0.02361573837697506, 0.004239151254296303, -0.00483527360484004, 0.04843330755829811, -0.005234973505139351, -0.012403964065015316, -0.0021704554092139006, -0.051560964435338974, 0.0006545934593304992, 0.024218345060944557, 0.023239733651280403, -0.031677599996328354, -0.0016097892075777054, 0.002906662644818425, 0.024212926626205444, -0.014366189017891884, -0.004364968277513981, -0.003810119116678834, -0.03855094686150551, 8.179063244398583e-33, 0.0008977531688287854, -0.002350739436224103, -0.028294941410422325, 0.021041005849838257, 0.02892383374273777, 0.013781108893454075, 0.029224015772342682, 0.019638078287243843, -0.057257335633039474, 0.03235367313027382, -0.004739541560411453, -0.014770237728953362, -0.013479053974151611, 0.007088611368089914, 0.04219469428062439, -0.012133818119764328, -0.007093183230608702, -0.011946088634431362, 0.027434280142188072, 0.0032568497117608786, -0.008421175181865692, 0.004034914076328278, -0.008043281733989716, 0.001964626833796501, 0.018247995525598526, 0.058397285640239716, -0.012065760791301727, 0.01167925912886858, 0.0030367502477020025, 0.036939751356840134, -0.006436716299504042, -0.002439510077238083, 0.011848211288452148, 0.003266868880018592, -0.017671795561909676, 0.022443251684308052, 0.0011520242551341653, 0.010579969733953476, 0.008602927438914776, 0.010110775008797646, 0.01843329705297947, 0.018030302599072456, -0.001973934704437852, 0.024296529591083527, 0.002208966063335538, -0.0027937234845012426, -0.02268126793205738, 0.005632042419165373, -0.01905037648975849, -0.0036378076765686274, -0.019156618043780327, -0.003429816570132971, 0.023236161097884178, -0.012098653241991997, -0.007533064112067223, -0.022876901552081108, -0.01612556353211403, 0.011557543650269508, 0.00013475229206960648, 0.005684941075742245, -0.02014588564634323, -0.012513437308371067, -0.015846064314246178, 0.003680875524878502, -0.028440315276384354, -0.004726153798401356, -0.02025439776480198, 0.029140759259462357, -0.004870170261710882, -0.005367568228393793, -0.02285492792725563, 0.031351227313280106, 0.011790310963988304, 0.023402923718094826, 0.00889669917523861, -0.009174211882054806, -0.0063481624238193035, 0.006650655064731836, -0.04384078085422516, 0.03222339600324631, 0.02684207446873188, 0.02770485170185566, 0.012800547294318676, 0.006195168476551771, 0.01103665679693222, 0.02491605654358864, -0.019083553925156593, 0.010232961736619473, -0.00314071006141603, -0.015193560160696507, -0.003999041393399239, -0.01705918088555336, -0.009967856109142303, 0.014530914835631847, -0.002702154219150543, -1.3769988704837033e-8, -0.020799241960048676, 0.0012437031837180257, -0.002856649225577712, 0.0014985779998824, 0.023598866537213326, 0.002854309743270278, -0.0134938545525074, 0.014728638343513012, -0.02388571761548519, 0.02684539370238781, 0.03649497777223587, -0.035131826996803284, -0.00010242500138701871, 0.01417336706072092, 0.029025766998529434, -0.006033813580870628, -0.003621436655521393, 0.008075188845396042, 0.03380491957068443, 0.011332421563565731, 0.05131080374121666, 0.044196613132953644, 0.005431055091321468, 0.025832802057266235, 0.019979514181613922, -0.005403186660259962, -0.0016346630873158574, -0.07602926343679428, -0.011498992331326008, 0.007181803695857525, -0.024133851751685143, -0.04362428933382034, -0.019896548241376877, 0.031158071011304855, -0.00900157168507576, -0.03247211128473282, 0.012529782950878143, -0.0034121202770620584, 0.0028184689581394196, 0.010282628238201141, -0.023432182148098946, 0.004018315579742193, -0.018889475613832474, -0.023218581452965736, -0.0005049007013440132, 0.007411341182887554, -0.021983731538057327, -0.016104763373732567, 0.011180602945387363, -0.018462061882019043, -0.002284058602526784, 0.0028869479428976774, 0.023103559389710426, 0.030398886650800705, 0.031942106783390045, 0.012251099571585655, -0.020443633198738098, -0.013318498618900776, -0.06488170474767685, -0.009734537452459335, 0.013467114418745041, 0.03319980204105377, -0.01851690746843815, -0.012628590688109398 ]
coding-the-little-details-all-add-to-our-understanding
https://markhneedham.com/blog/2009/12/15/coding-the-little-details-all-add-to-our-understanding
false
2009-12-12 03:53:37
Clojure: My first attempt at a macro
[ "clojure" ]
[ "Clojure" ]
I'm up to the chapter on using macros in Stuart Halloway's 'http://www.amazon.com/gp/product/1934356336?ie=UTF8&tag=marneesblo-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=1934356336[Programming Clojure]' book and since I've never used a language which has macros in before I thought it'd be cool to write one. In reality there's no reason to create a macro to do what I want to do but I wanted to keep the example simple so I could try and understand exactly how macros work. I want to create a macro which takes in one argument and then prints hello and the person's name. In the book Halloway suggests that we should start with the expression that we want to end up with, so this is what I want: [source,lisp] ---- (println "Hello" person) ---- My first attempt to do that was: [source,lisp] ---- (defmacro say-hello [person] println "Hello" person) ---- I made the mistake of forgetting to include the brackets around the 'println' expression so it doesn't actually pass '"Hello"' and 'person' to 'println'. Instead each symbol is evaluated individually. When we evaluate this in the REPL we therefore don't quite get what we want: [source,text] ---- user=> (say-hello "mark") "mark" ---- Expanding the macro results in: [source,text] ---- user=> (macroexpand-1 '(say-hello "Mark")) "Mark" ---- Which is the equivalent of doing this: [source,text] ---- user=> (eval (do println "hello" "Mark")) "Mark" ---- As I http://www.markhneedham.com/blog/2009/12/12/clojure-forgetting-the-brackets/[wrote previously] this is because 'do' evaluates each argument in order and then returns the last one which in this case is "Mark". I fixed that mistake and got the following: [source,lisp] ---- (defmacro say-hello [person] (println "Hello" person)) ---- Which returns the right result... [source,lisp] ---- user=> (say-hello "Mark") Hello Mark nil ---- ...but actually evaluated the expression rather than expanding it because I didn't escape it correctly: [source,text] ---- user=> (macroexpand-1 '(say-hello "Mark")) Hello Mark nil ---- After these failures I decided to try and change one of the examples from the book instead of my trial and error approach. One approach used is to build a list of Clojure symbols inside the macro definition: [source,lisp] ---- (defmacro say-hello [person] (list println "hello" person)) ---- [source,text] ---- user=> (macroexpand-1 '(say-hello "Mark")) (#<core$println__5440 clojure.core$println__5440@681ff4> "hello" "Mark") ---- This is pretty much what we want and although the http://twitter.com/ajlopez/statuses/6540996368['println' symbol has been evaluated at macro expansion time] it doesn't actually make any difference to the way the macro works. We can fix that by escaping 'println' so that it won't be evaluated until evaluation time: [source,lisp] ---- (defmacro say-hello [person] (list 'println "hello" person)) ---- [source,text] ---- user=> (macroexpand-1 '(say-hello "Mark")) (println "hello" "Mark") ---- I thought it should also be possible to quote(') the whole expression instead of building up the list: [source,lisp] ---- (defmacro say-hello [person] '(println "hello" person)) ---- This expands correctly but when we try to use it this happens: [source,text] ---- user=> (say-hello "Mark") java.lang.Exception: Unable to resolve symbol: person in this context ---- The problem is that when we use quote there is no evaluation of any of the symbols in the expression so http://twitter.com/patrickdlogan/statuses/6536320695[the symbol 'person' is only evaluated at runtime and since it hasn't been bound to any value] we end up with the above error. If we want to use the approach of non evaluation then we need to make use of the backquote(`) which stops evaluation of anything unless it's preceded by a ~. [source,lisp] ---- (defmacro a [person] `(println "hello" ~person)) ---- This allows us to evaluate 'person' at expand time and replace it with the appropriate value. In hindsight the approach I took to write this macro was pretty ineffective although it's been quite interesting to see all the different ways that I've found to mess up the writing of one! Thanks to http://twitter.com/ajlopez[A. J. Lopez], http://twitter.com/patrickdlogan[Patrick Logan] and http://twitter.com/fogus[fogus] for helping me to understand all this a bit better than I did to start with!
null
null
[ -0.0008767765248194337, 0.06344148516654968, -0.04175245389342308, -0.021083150058984756, 0.07354956865310669, -0.023281503468751907, 0.009731326252222061, -0.007636667229235172, 0.0022724240552634, -0.012077784165740013, 0.0005113545921631157, 0.017126964405179024, -0.07427726686000824, 0.008636538870632648, -0.013259140774607658, 0.047328777611255646, 0.0871322825551033, -0.01103990338742733, 0.01047194842249155, -0.003726586699485779, 0.012947270646691322, 0.07020362466573715, 0.014266891404986382, -0.0022357937414199114, 0.04945875331759453, 0.013933921232819557, 0.03467889875173569, 0.00007258455298142508, -0.08709340542554855, 0.010810550302267075, 0.02639620751142502, -0.0018462167354300618, 0.009627904742956161, -0.0056658536195755005, 0.021933874115347862, 0.018177777528762817, 0.013703582808375359, -0.008247063495218754, -0.006109623704105616, 0.03353901207447052, -0.04754167050123215, 0.0014445420820266008, -0.010876591317355633, 0.018502607941627502, -0.02567363530397415, 0.008963100612163544, -0.0734894797205925, 0.016598500311374664, -0.042161136865615845, 0.0028080567717552185, -0.07055604457855225, 0.017827970907092094, 0.006252771243453026, -0.008772015571594238, 0.030064640566706657, 0.03445843234658241, 0.01380364689975977, -0.09930909425020218, 0.04394546151161194, -0.03926711529493332, -0.004558139014989138, 0.012775043956935406, 0.020989278331398964, 0.04487286135554314, 0.006772418040782213, -0.02438068576157093, -0.01860644668340683, 0.0003764260036405176, -0.08388320356607437, -0.01188975851982832, -0.0202056672424078, -0.010189659893512726, -0.04245137423276901, -0.027968065813183784, 0.04253939539194107, -0.02242775820195675, 0.019457876682281494, 0.03628186881542206, 0.0013727933401241899, 0.050585512071847916, -0.029464909806847572, 0.0005623936303891242, 0.04016248509287834, 0.02040872350335121, 0.021632011979818344, -0.0186767615377903, -0.012779447250068188, 0.0010415539145469666, 0.0025537810288369656, 0.053949158638715744, 0.012922377325594425, -0.08442424982786179, -0.024343721568584442, 0.016539819538593292, 0.03396620601415634, -0.0133814150467515, -0.01154668815433979, 0.013355395756661892, -0.019629841670393944, -0.0041157701052725315, -0.028375087305903435, -0.03017524816095829, 0.007081600371748209, 0.009422224014997482, -0.06871642917394638, -0.010798522271215916, -0.030217459425330162, 0.005184471607208252, 0.024932745844125748, -0.006983330473303795, -0.07062946259975433, -0.015433307737112045, -0.0284050852060318, -0.015217510983347893, -0.0769544243812561, 0.05942292883992195, 0.0011210711672902107, 0.0052384017035365105, -0.029864652082324028, 0.04216497018933296, 0.008777334354817867, 0.03461127355694771, 0.020671164616942406, 0.07134494185447693, -0.03271320462226868, 0.034949708729982376, -0.015187530778348446, 0.041206248104572296, -0.012077074497938156, -0.04466192051768303, -0.027958786115050316, 0.06601672619581223, -0.008532905019819736, 0.002615842269733548, -0.02016652189195156, -0.028438596054911613, -0.020728163421154022, -0.0103142773732543, 0.03247121348977089, 0.03891044482588768, 0.008556581102311611, -0.007748178672045469, 0.005238248035311699, -0.002160626696422696, 0.04463020712137222, 0.0093667171895504, -0.005227855872362852, -0.01483300980180502, -0.04531338810920715, 0.03771555796265602, 0.028466764837503433, 0.039952684193849564, 0.09433618932962418, 0.006529917940497398, 0.03815978392958641, 0.06844817101955414, 0.0355725958943367, 0.042030345648527145, -0.015990780666470528, 0.020050212740898132, 0.030687818303704262, 0.026843469589948654, 0.01888364553451538, 0.051561389118433, 0.013601399958133698, 0.0077894083224236965, 0.005520117003470659, 0.017595943063497543, 0.00861893780529499, -0.03667538985610008, -0.04917306452989578, -0.022947130724787712, 0.0679636001586914, -0.04630407691001892, -0.026071002706885338, 0.006486997008323669, 0.07838831841945648, 0.0325455404818058, 0.0698053389787674, 0.011242693290114403, -0.06852001696825027, 0.026644391939044, -0.009769582189619541, 0.015800263732671738, 0.04876740649342537, -0.007290346082299948, 0.06307308375835419, 0.004673643037676811, 0.0014609030913561583, 0.02973507158458233, -0.06210071220993996, -0.06423930078744888, 0.011941990815103054, -0.016101446002721786, 0.04370720311999321, -0.06483668088912964, -0.018851984292268753, 0.07591667771339417, 0.02399364672601223, 0.03783287853002548, 0.011654014699161053, -0.0009574362193234265, 0.012017559260129929, -0.01945383846759796, -0.032211411744356155, 0.0288777444511652, 0.030396146699786186, -0.014870860613882542, -0.010845121927559376, 0.04328974708914757, 0.011282381601631641, 0.034377120435237885, 0.030474664643406868, 0.017250696197152138, 0.026427093893289566, 0.021561026573181152, 0.025544587522745132, -0.02138829603791237, 0.004111420828849077, -0.02538135088980198, 0.004512885119765997, 0.042461004108190536, 0.005780910607427359, -0.015422271564602852, 0.014511892572045326, 0.13357733190059662, 0.056035395711660385, -0.039548229426145554, -0.08012659102678299, 0.016338855028152466, 0.0005755233578383923, -0.05913211777806282, 0.00003657109846244566, 0.016604110598564148, -0.0031691857147961855, -0.010874869301915169, -0.024748945608735085, 0.002599915722385049, 0.004364101681858301, -0.04460226744413376, 0.007424407638609409, 0.09224911034107208, -0.036146365106105804, 0.044476188719272614, -0.00553930876776576, -0.013604629784822464, 0.02149651013314724, -0.028561308979988098, -0.09814153611660004, 0.04127468168735504, 0.02327044866979122, -0.032773856073617935, 0.06659877300262451, -0.043410226702690125, -0.07214222103357315, -0.006616261787712574, -0.061769478023052216, -0.00997376348823309, 0.034419190138578415, 0.05134504660964012, 0.01288110762834549, 0.03939902409911156, -0.019484544172883034, -0.009537681005895138, -0.03290892764925957, -0.047289516776800156, -0.04059351235628128, 0.00762516725808382, -0.012207579798996449, 0.027387673035264015, -0.00234817061573267, 0.013154702261090279, -0.0062749674543738365, -0.007780563551932573, -0.00873909518122673, 0.013346059247851372, 0.023303871974349022, -0.024110043421387672, -0.018750011920928955, -0.01071489229798317, -0.052186280488967896, 0.06756044179201126, -0.0338444821536541, -0.07412134855985641, -0.010082836262881756, -0.05187228322029114, 0.033291514962911606, -0.09967439621686935, -0.02948290854692459, 0.001766494009643793, 0.010345243848860264, 0.03869979828596115, -0.03070725128054619, -0.004629661329090595, 0.045594826340675354, -0.00567197659984231, 0.014708004891872406, 0.006866446230560541, 0.003786587156355381, 0.040859147906303406, 0.02100439742207527, 0.010593300685286522, 0.04149186611175537, 0.0007360564195550978, 0.009902514517307281, -0.02765950933098793, 0.001547747291624546, -0.011180989444255829, -0.24597783386707306, 0.05005771666765213, -0.019754694774746895, -0.051286373287439346, 0.012753103859722614, -0.040849652141332626, -0.013302789069712162, -0.03759591653943062, -0.022393712773919106, -0.02037697099149227, -0.02428637258708477, -0.035893797874450684, -0.030002009123563766, 0.041112255305051804, 0.0021777250804007053, -0.02639557234942913, 0.004045070149004459, -0.04879969358444214, 0.015078562311828136, 0.055205706506967545, 0.022561803460121155, -0.07465917617082596, 0.03380720689892769, 0.07056839019060135, 0.024188175797462463, 0.025925101712346077, -0.07380135357379913, 0.045819953083992004, -0.014258159324526787, -0.02537153847515583, -0.008445857092738152, 0.010254221968352795, 0.015847843140363693, -0.028310034424066544, -0.02520967274904251, -0.026106711477041245, 0.03429543599486351, -0.012867829762399197, 0.020782342180609703, 0.04098355770111084, -0.022851908579468727, -0.03682420030236244, 0.003213470568880439, -0.025637464597821236, 0.0677712932229042, 0.02558077685534954, -0.0841379165649414, -0.016144758090376854, -0.024747489020228386, 0.08698326349258423, -0.03320961445569992, -0.03235012665390968, -0.01604406349360943, 0.04934587702155113, 0.006321409717202187, -0.03136760741472244, -0.021788891404867172, -0.040333300828933716, -0.050673194229602814, -0.03143826499581337, -0.03736896440386772, -0.05423079803586006, 0.019475042819976807, -0.04599904641509056, -0.021635865792632103, -0.053856849670410156, -0.0850757360458374, 0.009341688826680183, 0.04921625182032585, 0.019183939322829247, -0.0409570075571537, -0.022054092958569527, -0.03863525390625, -0.11390582472085953, -0.00948397908359766, -0.0449872650206089, -0.03749873861670494, -0.00003339936665724963, -0.0032776822336018085, 0.04773617535829544, -0.03913044556975365, -0.05550437793135643, 0.006004192400723696, 0.029982836917042732, 0.029148751869797707, -0.022096194326877594, -0.013696875423192978, -0.008900856599211693, -0.01684536412358284, -0.005088946782052517, 0.034342799335718155, -0.00821603275835514, -0.07134251296520233, -0.04671884700655937, 0.034310050308704376, -0.023006418719887733, 0.0405757874250412, -0.013379891403019428, 0.056025438010692596, 0.01491434033960104, 0.020050179213285446, -0.025271037593483925, 0.011633997783064842, -0.029108436778187752, -0.005125781055539846, 0.006647133734077215, -0.07085906714200974, 0.03920333459973335, 0.003973673563450575, 0.008715595118701458, -0.02667401172220707, -0.048372723162174225, -0.019136890769004822, -0.04930388927459717, -0.047976914793252945, -0.003873769659548998, 0.00008505117148160934, 0.027944907546043396, 0.030963920056819916, -0.02330857515335083, -0.07340192794799805, 0.011448236182332039, 0.021834392100572586, -0.037124477326869965, -0.05291524901986122, -0.02447536401450634, 0.01991565339267254, 0.005896533373743296, 0.007067401893436909, 0.023480921983718872, -0.003569777822121978, 0.025856081396341324, -0.01015334390103817, -0.05622640997171402, 0.029402263462543488, -0.0023937425576150417, -0.014905136078596115, 0.0017535833176225424, -0.041966404765844345, 0.008124422281980515, -0.0027274559251964092, -0.006313528399914503, 0.00442714337259531, 0.02287495881319046, 0.025888770818710327, -0.008822005242109299, 0.02134006842970848, 0.016500787809491158, -0.05451107770204544, 0.019981108605861664, 0.021899553015828133, -0.03502674773335457, 0.0165245421230793, -0.029224252328276634, 0.0007024311926215887, 0.01775611750781536, 0.016178250312805176, -0.02491416223347187, -0.028188029304146767, -0.05257507413625717, 0.04425280541181564, -0.01964278519153595, 0.008712606504559517, 0.0003435525286477059, -0.040629059076309204, 0.036021970212459564, -0.02835044264793396, 0.0440664067864418, -0.017581695690751076, 0.01749669574201107, 0.0005926261655986309, 0.000042829527956200764, -0.03923489525914192, 0.026725616306066513, -0.007430787663906813, 0.009645577520132065, -0.003638084512203932, 0.04738428816199303, 0.018738798797130585, -0.0027921050786972046, 0.009057866409420967, -0.015440838411450386, 0.029337314888834953, 0.01255752518773079, 0.03911827504634857, -0.019903654232621193, -0.012318260967731476, 0.003666335018351674, -0.03562961146235466, -0.04134076461195946, -0.009024196304380894, -0.009541674517095089, 0.003664881456643343, 0.006923894863575697, -0.04610961675643921, -0.03660017251968384, -0.0023703137412667274, 0.0746438130736351, 0.01857367902994156, 0.007405497599393129, -0.005219077225774527, 0.003999480977654457, -0.034889720380306244, -0.005627740640193224, 0.07601571083068848, -0.04771316796541214, 0.016329141333699226, -0.006838733330368996, -0.006461231037974358, 0.04122467339038849, -0.002870560623705387, -0.05966288968920708, -0.013663207180798054, -0.0033188830129802227, -0.024136926978826523, -0.015272197313606739, -0.024097394198179245, -0.017566276714205742, 0.01233157142996788, -0.013394400477409363, 0.003674061968922615, -0.007349861785769463, -0.02410076931118965, 0.03588061034679413, -0.016920002177357674, -0.012172510847449303, -0.016476314514875412, 0.013697697781026363, 0.05899963900446892, 0.010700308717787266, 0.028841381892561913, -0.018462229520082474, 0.07642940431833267, 0.034159354865550995, 0.006086945068091154, -0.0473858043551445, -0.0617426373064518, 0.015355466865003109, -0.020100446417927742, 0.05195419862866402, 0.023019984364509583, 0.013926714658737183, -0.026520030573010445, 0.0202836524695158, -0.02316572330892086, -0.02330818399786949, -0.011353903450071812, -0.042605068534612656, 0.019343001767992973, 0.04805948957800865, -0.0036289202980697155, 0.06069484353065491, -0.01920289173722267, -0.00990203209221363, 0.06942994147539139, -0.040880028158426285, -0.06448384374380112, 0.025150397792458534, -0.04756332188844681, 0.036113299429416656, 0.025846464559435844, 0.032005537301301956, -0.06247960031032562, 0.04497276619076729, 0.0553729347884655, 0.019051726907491684, 0.018602369353175163, 0.002596926176920533, 0.02390149049460888, -0.0378229059278965, -0.0021856524981558323, -0.09652344137430191, 0.0020113594364374876, 0.041482437402009964, 0.05005215108394623, -0.01749347895383835, -0.03025948256254196, -0.04355157911777496, 0.003331323154270649, -0.05436199530959129, -0.0017729068640619516, 0.04038572311401367, 0.0026679569855332375, -0.0004558678774628788, 0.05756158381700516, -0.06141732633113861, -0.0034099293407052755, 0.009854413568973541, -0.029346395283937454, -0.06206865236163139, -0.04895474761724472, 0.05604982376098633, 0.007528494577854872, 0.048745740205049515, -0.014900317415595055, -0.0012993571581318974, 0.07404520362615585, 0.03478275239467621, -0.0008684881613589823, 0.04810125380754471, -0.006130221299827099, 0.004128688480705023, 0.04087939113378525, -0.026706863194704056, 0.014262516051530838, 0.021298540756106377, -0.035931188613176346, -0.057246334850788116, 0.004216169938445091, 0.039275187999010086, -0.0315706767141819, -0.024818237870931625, 0.06434986740350723, 0.021919088438153267, -0.03280646726489067, -0.03448815271258354, 0.03847347944974899, -0.07690728455781937, -0.0038219320122152567, -0.02762761153280735, 0.004164067097008228, -0.06042385846376419, 0.04723653569817543, -0.011826477013528347, 0.007941525429487228, 0.06295964866876602, -0.0014842937234789133, -0.017360031604766846, -0.02559242956340313, 0.06757499277591705, 0.07270025461912155, 0.07839278131723404, 0.03289820998907089, 0.038865067064762115, -0.04770077392458916, -0.035723015666007996, -0.010881924070417881, -0.009084619581699371, 0.02525961585342884, -0.01676437258720398, -0.0012463150778785348, 0.06792588531970978, -0.009301104582846165, 0.061577100306749344, -0.0009859357960522175, -0.03738044202327728, -0.008549853228032589, 0.029444798827171326, 0.05245465412735939, 0.06552346795797348, 0.03932557255029678, 0.02913585491478443, 0.015318023040890694, -0.05327042564749718, 0.040259700268507004, -0.029743993654847145, -0.025838255882263184, 0.012681161984801292, 0.0055741495452821255, 0.014832650311291218, 0.0039944956079125404, 0.06285784393548965, 0.08189255744218826, -0.034304793924093246, -0.003855899441987276, 0.030357584357261658, 0.03356384113430977, 0.01825043000280857, -0.0012359584216028452, -0.0023567327298223972, -0.021010419353842735, -0.0089556984603405, 0.004049437120556831, 0.007261998951435089, -0.04704131931066513, -0.037291269749403, 0.03183283656835556, -0.03194976970553398, -0.02339695394039154, 0.007638515438884497, 0.005946893710643053, -0.046241238713264465, -0.04561090096831322, -0.026591351255774498, -0.04495690017938614, -0.024149490520358086, 0.00008645222260383889, -0.01696588657796383, -0.028431527316570282, -0.02142375148832798, -0.005514450371265411, 0.0008602009038440883, -0.0021120829042047262, 0.03365573659539223, -0.02344958297908306, -0.0008986520115286112, 0.009578707627952099, 0.015269288793206215, 0.02378334291279316, 0.01655014231801033, 0.016919828951358795, 0.008916285820305347, -0.0027773778419941664, -0.015864118933677673, -0.0033122445456683636, 0.046211618930101395, -0.011935006827116013, -0.027058489620685577, -0.08066077530384064, -0.0009400927228853106, 0.053799912333488464, 0.026596322655677795, -0.07061703503131866, 0.030535461381077766, -0.014930661767721176, -0.01526146661490202, 0.046887729316949844, 0.0034824414178729057, -0.0054625472985208035, -0.02071668766438961, 0.0036425297148525715, 0.006491287611424923, 0.023111527785658836, 0.027459898963570595, -0.004630377050489187, 0.09448666870594025, 0.015090320259332657, -0.012602871283888817, 0.005042560864239931, -0.0300261490046978, -0.048430949449539185, -0.0018569048261269927, -0.009964494965970516, -0.011693539097905159, -0.04944085329771042, -0.030202461406588554, -0.016663428395986557, 0.028384553268551826, -0.027791162952780724, -0.0407121405005455, -0.007918673567473888, 0.015628503635525703, -0.007112680934369564, 0.077361561357975, -0.021512245759367943, 0.019737981259822845, 0.0007896691677160561, -0.01634242571890354, -0.004412943031638861, -0.00044319257722236216, -0.016791945323348045, 0.01341692078858614, 0.03216836601495743, -0.015803564339876175, -0.0010965806432068348, -0.005812737159430981, 0.011731176637113094, 0.03436112031340599, -0.017039181664586067, 0.011567710898816586 ]
[ -0.10873136669397354, -0.011637864634394646, -0.026174932718276978, -0.03588399663567543, -0.010984154418110847, -0.04032173752784729, 0.0024905912578105927, 0.01294691115617752, 0.011854291893541813, -0.011631994508206844, 0.003144006710499525, -0.044414419680833817, -0.0025329513009637594, -0.006810287944972515, 0.10292966663837433, -0.011891588568687439, -0.03026445023715496, -0.04421786963939667, -0.04411553591489792, 0.01309982780367136, 0.040168773382902145, -0.027006924152374268, -0.04814410209655762, -0.06152651086449623, 0.02034798264503479, 0.034099288284778595, 0.053056906908750534, -0.01499656680971384, 0.013566608540713787, -0.22159487009048462, 0.006675209384411573, 0.025011636316776276, 0.05324086174368858, -0.03309396281838417, -0.016945855692029, 0.0506649948656559, 0.021493418142199516, 0.0161389522254467, -0.04006597772240639, 0.03917982429265976, 0.0387074276804924, 0.013663509860634804, -0.0162789449095726, -0.042954493314027786, 0.061900172382593155, -0.014637191779911518, 0.01156417466700077, -0.02418898232281208, -0.033290959894657135, 0.022508956491947174, -0.06170910969376564, -0.014648533426225185, 0.010214283131062984, -0.03931419551372528, 0.00211687502451241, 0.048773832619190216, 0.0476607121527195, 0.07045696675777435, 0.02319139987230301, -0.009941525757312775, -0.0090978117659688, -0.023722104728221893, -0.150277778506279, 0.08127029240131378, 0.014739652164280415, 0.03455103561282158, 0.006028637755662203, 0.00020908976148348302, -0.038545671850442886, 0.09998597949743271, 0.018914902582764626, -0.01811669021844864, -0.01966516301035881, 0.07364894449710846, 0.014937181025743484, -0.049595002084970474, -0.006894814316183329, 0.0065101697109639645, 0.03954131528735161, -0.04627181217074394, -0.06131234019994736, -0.02135850489139557, -0.002594212768599391, -0.0015617735916748643, -0.04355860874056816, 0.041434433311223984, -0.011731117032468319, 0.034793220460414886, 0.04600512981414795, -0.011079260148108006, 0.030542636290192604, -0.02877986803650856, 0.046914417296648026, 0.013418363407254219, -0.10377464443445206, -0.015465142205357552, 0.013343915343284607, 0.01155355665832758, -0.03995070978999138, 0.4382326304912567, -0.03621077537536621, -0.02538405731320381, 0.05817060172557831, 0.023760274052619934, 0.015015911310911179, 0.002803162671625614, -0.008892388083040714, -0.016415009275078773, 0.03812038525938988, -0.0539117231965065, -0.024800386279821396, -0.021353617310523987, 0.054362040013074875, -0.04296555742621422, -0.006038516294211149, -0.01223136018961668, 0.07770983129739761, 0.003843882353976369, 0.011291847564280033, 0.013857409358024597, 0.03639408200979233, -0.004501670598983765, -0.0011142404982820153, -0.0029211908113211393, 0.026582689955830574, 0.0019328825874254107, 0.02723691239953041, 0.05152984708547592, 0.03329165279865265, 0.03309507668018341, 0.05435742810368538, -0.018440628424286842, -0.0428924486041069, 0.01980280876159668, -0.011204025708138943, 0.008086532354354858, 0.023724999278783798, -0.04040072485804558, -0.005133998114615679, 0.021043844521045685, 0.026938889175653458, -0.008141078986227512, 0.014337294735014439, 0.009242516942322254, -0.014105754904448986, 0.079366035759449, -0.015522266738116741, -0.03344813361763954, -0.007797755300998688, -0.03777073323726654, -0.02173987589776516, 0.0342547670006752, -0.003893302520737052, -0.06338152289390564, 0.034586336463689804, 0.04136740788817406, 0.08255193382501602, -0.024879921227693558, -0.06316784024238586, -0.01189963798969984, -0.041738491505384445, -0.030805379152297974, -0.06507785618305206, 0.04792826622724533, 0.014465811662375927, -0.06473919004201889, -0.006335724610835314, 0.002492549130693078, 0.013566414825618267, -0.07791204750537872, 0.021433725953102112, 0.007579379249364138, -0.04602932929992676, 0.010734975337982178, 0.05115795135498047, -0.020132457837462425, -0.029129549860954285, -0.00539672514423728, 0.057259898632764816, 0.021392464637756348, -0.018318459391593933, 0.002327795373275876, -0.05075324699282646, 0.01552017591893673, -0.034228235483169556, -0.059864941984415054, -0.05834883078932762, 0.000054406089475378394, -0.04387996718287468, 0.011498762294650078, -0.00418297853320837, -0.008669749833643436, -0.038880351930856705, 0.05265094339847565, -0.051282040774822235, -0.01814708672463894, 0.0014748460380360484, 0.01931607350707054, -0.03376368433237076, -0.01248971652239561, 0.01082947663962841, 0.066031314432621, 0.0014474657364189625, 0.006419786252081394, -0.049109216779470444, -0.008048403076827526, 0.048629697412252426, -0.06279505789279938, 0.09544885903596878, 0.025158865377306938, -0.05127833038568497, 0.011009089648723602, 0.013151544146239758, -0.0009502274333499372, -0.030498523265123367, -0.0030925862956792116, -0.013801969587802887, -0.002626390429213643, 0.029077013954520226, 0.003791337599977851, -0.061029333621263504, -0.04323185980319977, -0.050577450543642044, -0.34079232811927795, -0.022930318489670753, 0.039128627628088, -0.009291442111134529, 0.05474003404378891, -0.07815200835466385, 0.01853368990123272, -0.019579453393816948, -0.028284193947911263, -0.014641259796917439, 0.06644794344902039, -0.05153851956129074, -0.022002967074513435, -0.07214362174272537, 0.010777941904962063, 0.04363986477255821, -0.021496083587408066, -0.04173123836517334, -0.026738783344626427, 0.02502717636525631, -0.004427423235028982, -0.03441062942147255, -0.007903506979346275, -0.038552895188331604, -0.025288276374340057, -0.027919365093111992, 0.08258070796728134, 0.03563076630234718, 0.11500890552997589, -0.04084758833050728, 0.04793805256485939, -0.003182337386533618, -0.006388275884091854, -0.10188321024179459, -0.008706984110176563, 0.00088173255790025, -0.008686650544404984, -0.023498639464378357, 0.026886774227023125, 0.0013379501178860664, -0.006604566238820553, 0.0052770813927054405, -0.06390080600976944, -0.006104243453592062, -0.0483555905520916, 0.027246059849858284, -0.0004824654315598309, -0.020430242642760277, -0.024730078876018524, 0.08426960557699203, 0.02549072913825512, 0.005428892560303211, 0.009008028544485569, 0.006789699662476778, 0.026013310998678207, -0.024969924241304398, -0.04983058199286461, -0.026710575446486473, 0.013800015673041344, -0.008873210288584232, 0.04258839786052704, 0.050636306405067444, 0.03759601339697838, -0.04953659325838089, -0.013545714318752289, 0.019486883655190468, 0.008919849991798401, -0.01603356935083866, 0.03682629391551018, -0.02321465313434601, -0.03636488318443298, 0.08656532317399979, 0.010126628912985325, 0.012827611528337002, 0.049211882054805756, 0.055694710463285446, -0.022342868149280548, 0.00672568567097187, -0.011214402504265308, 0.0009676399058662355, 0.013423075899481773, -0.012323884293437004, 0.04345324635505676, -0.024612093344330788, -0.0035656169056892395, 0.04463605582714081, 0.013686075806617737, -0.014191368594765663, 0.030798092484474182, -0.00618393998593092, -0.04983033239841461, -0.0057672071270644665, 0.015509288758039474, -0.029621398076415062, 0.08535230159759521, -0.0015549728414043784, -0.24973437190055847, 0.04231337457895279, 0.04701627045869827, 0.07234381884336472, 0.001705904956907034, 0.030670631676912308, 0.042955175042152405, -0.08539313077926636, -0.037712737917900085, 0.011794468387961388, 0.031127318739891052, 0.04155978560447693, 0.020513910800218582, 0.012946490198373795, 0.03784952685236931, -0.003068737918511033, 0.03919627144932747, -0.016445724293589592, 0.013270307332277298, 0.0038334359414875507, 0.02251213788986206, -0.01867872290313244, 0.18439564108848572, -0.018620934337377548, 0.017282921820878983, 0.008806363679468632, -0.001090292469598353, 0.02819603867828846, 0.09223096072673798, 0.011110728606581688, 0.0005695067811757326, 0.023165475577116013, 0.06923684477806091, 0.016886088997125626, 0.02989765629172325, -0.05108001083135605, -0.05378210172057152, 0.008949365466833115, 0.025480182841420174, -0.021471813321113586, 0.005944029428064823, 0.010333843529224396, -0.026147760450839996, -0.004549579229205847, 0.0496002621948719, 0.016852717846632004, 0.010176624171435833, -0.015096474438905716, -0.02873719297349453, -0.0046677240170538425, -0.026055343449115753, -0.01885414309799671, -0.005042496137320995, 0.006006338633596897, -0.00028091357671655715, 0.023035993799567223, 0.004650019109249115, -0.02964819222688675, -0.0103373434394598, 0.031834714114665985, -0.018281899392604828, -0.023873629048466682, 0.14321942627429962, 0.01133858971297741, -0.004794735461473465 ]
[ -0.0024410311598330736, -0.003302888246253133, 0.0022052067797631025, -0.017096221446990967, -0.008943146094679832, -0.006005584262311459, 0.007684805430471897, 0.016151798889040947, -0.03133891150355339, -0.016010163351893425, -0.014813438057899475, 0.006758513860404491, 0.01641313172876835, -0.02081807143986225, 0.03586110845208168, -0.005680265370756388, 0.020028650760650635, 0.02739054150879383, 0.03258247673511505, 0.020412957295775414, 0.013018449768424034, 0.044773928821086884, 0.0030450003687292337, -0.021604023873806, -0.010600695386528969, 0.028728410601615906, -0.0004823332419618964, -0.0023412734735757113, 0.032155975699424744, -0.13773620128631592, -0.01026647537946701, -0.024159567430615425, 0.019556406885385513, -0.002142246812582016, -0.007691107224673033, 0.027996700257062912, -0.019814224913716316, 0.006212353706359863, 0.03046208806335926, -0.015627549961209297, -0.0074861436150968075, -0.009660857729613781, -0.04195519909262657, 0.01014474406838417, 0.04652569070458412, 0.027966618537902832, -0.01586066745221615, 0.005406840704381466, -0.004953903611749411, -0.004846814554184675, -0.02927263081073761, -0.002346968511119485, 0.01583332009613514, -0.0263315849006176, 0.031978655606508255, -0.03299020230770111, -0.014916455373167992, -0.01650184579193592, 0.05106886476278305, -0.04689832404255867, 0.002778619294986129, -0.005470061209052801, -0.04612908512353897, -0.02162781171500683, -0.0032991531770676374, -0.04681667685508728, -0.00976590532809496, 0.02112882398068905, -0.027463382109999657, 0.005928906612098217, -0.013732449151575565, 0.02371458150446415, -0.009835663251578808, -0.017700932919979095, -0.01356486976146698, 0.017948653548955917, 0.018611453473567963, -0.03936537355184555, 0.020080406218767166, -0.015789246186614037, -0.007514356169849634, -0.0113224433735013, 0.023067940026521683, 0.016964441165328026, 0.003648824989795685, -0.04447190836071968, 0.02091316506266594, -0.010653986595571041, 0.03296499699354172, 0.03255437687039375, -0.01183796115219593, 0.016831159591674805, 0.02977345697581768, -0.015909548848867416, -0.08078082650899887, 0.0034152697771787643, -0.016393588855862617, -0.01475792657583952, 0.005171779077500105, 0.8666045069694519, -0.004624397959560156, 0.04201517254114151, 0.019657766446471214, -0.0007813753909431398, -0.0038741726893931627, -0.015062741003930569, -0.007702496834099293, 0.01539775263518095, 0.044999487698078156, -0.019634895026683807, 0.014764067716896534, 0.005258932709693909, 0.03818925470113754, 0.010041436180472374, 0.02122647501528263, -0.00029047057614661753, 0.049525126814842224, 0.012194124050438404, 0.049257222563028336, 0.027391206473112106, 0.01964157447218895, 0.024655120447278023, 0.01575750671327114, -0.007507883012294769, -0.015609749592840672, -0.15974414348602295, 0.020084694027900696, -8.024232271296056e-33, -0.0006866218172945082, -0.0051324330270290375, -0.011261667124927044, -0.014601907692849636, 0.007819626480340958, 0.003979158122092485, -0.0043529910035431385, -0.018567511811852455, -0.023510193452239037, -0.043822113424539566, -0.003840741468593478, -0.010619007982313633, -0.017526179552078247, 0.014403697103261948, 0.010102986358106136, 0.03619559854269028, 0.01995762251317501, 0.03064737282693386, -0.007104048039764166, 0.009948036633431911, -0.004850457422435284, 0.01815726049244404, 0.02837369590997696, 0.024794818833470345, 0.016367722302675247, 0.041173532605171204, 0.04809034615755081, -0.02981097623705864, -0.008299809880554676, -0.049365997314453125, -0.031497545540332794, 0.02019074372947216, 0.007336573209613562, -0.024436818435788155, 0.006892160978168249, -0.043174032121896744, 0.0024950881488621235, -0.0016097985208034515, -0.018476003780961037, -0.042363520711660385, -0.03373675420880318, -0.019578758627176285, -0.03564451262354851, -0.002186554716899991, -0.001661071670241654, -0.02029290981590748, -0.002947883913293481, 0.03384457901120186, 0.0016169361770153046, 0.040493741631507874, 0.004172709304839373, 0.004923616535961628, -0.009300494566559792, 0.012578352354466915, -0.007592489942908287, -0.024678288027644157, -0.05433638393878937, -0.00815137755125761, 0.0011647362262010574, 0.005255833268165588, 0.044031091034412384, 0.03373470529913902, 0.00879719853401184, 0.03264615684747696, -0.0334143303334713, -0.007944042794406414, -0.01631360501050949, -0.013116647489368916, 0.0032928637228906155, 0.0011499773245304823, -0.047066450119018555, 0.006622111890465021, -0.011956565082073212, -0.00808901246637106, 0.003502009203657508, -0.02344147488474846, -0.00885316077619791, -0.02619239315390587, 0.014622893184423447, 0.04651679843664169, 0.0179604385048151, -0.012716160155832767, -0.0016624705167487264, 0.0010139875812456012, -0.008591584861278534, -0.027210325002670288, 0.0023400394711643457, -0.01931469701230526, -0.03336869552731514, -0.022113697603344917, 0.047531139105558395, -0.013777139596641064, -0.0027094788383692503, -0.01615089178085327, -0.03088463470339775, 7.647004379173676e-33, 0.021951135247945786, -0.013137128204107285, 0.00844184122979641, 0.028567297384142876, -0.01381698902696371, -0.009693202562630177, 0.043517325073480606, -0.035702675580978394, -0.043951716274023056, 0.021513689309358597, -0.03394841402769089, -0.015152364037930965, -0.024522174149751663, 0.026113485917448997, 0.05831044912338257, -0.009303421713411808, 0.0259468462318182, 0.006594649516046047, -0.00903131254017353, -0.0063379560597240925, 0.023023320361971855, 0.01890566013753414, 0.03402194008231163, 0.027438420802354813, 0.009406771510839462, 0.03022177331149578, -0.015897970646619797, 0.018823135644197464, 0.0016450013499706984, 0.017326777800917625, 0.0206121988594532, 0.018159490078687668, 0.017374226823449135, -0.0116525674238801, -0.017872627824544907, 0.032909028232097626, 0.012957544066011906, -0.014316102489829063, 0.027314215898513794, 0.0044647883623838425, 0.030353622511029243, -0.02711082436144352, 0.0009360627154819667, 0.0003663685347419232, -0.014467460103332996, -0.004441516939550638, 0.009097103960812092, -0.01030951738357544, 0.026209259405732155, -0.003950115293264389, 0.007936259731650352, 0.017674822360277176, -0.019559362903237343, -0.0018355983775109053, -0.034754104912281036, -0.023591050878167152, -0.026435209438204765, 0.015456963330507278, -0.04821861535310745, 0.0241314135491848, -0.028481552377343178, 0.001318064983934164, 0.023986568674445152, 0.008827181532979012, -0.0169718898832798, -0.003786176210269332, -0.012990524061024189, -0.03193311765789986, -0.0010751360096037388, -0.015042767859995365, -0.013392636552453041, -0.01657835766673088, 0.002381156198680401, 0.026660587638616562, -0.0050689117051661015, 0.04596598818898201, -0.02111753448843956, -0.0008714786381460726, -0.004189901519566774, -0.0012127126101404428, 0.027468878775835037, -0.010080677457153797, 0.02027086541056633, 0.04100848361849785, 0.004724537022411823, 0.00469075795263052, -0.015656115487217903, 0.001266022678464651, -0.001769016613252461, -0.018262702971696854, 0.020139718428254128, -0.02714494615793228, 0.002857695799320936, 0.03441147133708, -0.02437717095017433, -1.3441721513629545e-8, -0.021227162331342697, 0.0021729576401412487, -0.01435751561075449, -0.001966519048437476, 0.006452055182307959, 0.018680086359381676, -0.012017921544611454, -0.027438752353191376, -0.024723660200834274, -0.01609552837908268, 0.018622983247041702, -0.010055938735604286, -0.011866724118590355, 0.033365171402692795, 0.05329660326242447, -0.031464047729969025, -0.0008647678187116981, -0.010301082395017147, 0.016616225242614746, -0.020353475585579872, 0.0013212980702519417, 0.043324731290340424, -0.009729309938848019, -0.010073120705783367, -0.004335059318691492, -0.04745246097445488, 0.015427079983055592, -0.07766282558441162, 0.01383241917937994, -0.034483786672353745, 0.03163941949605942, -0.024846378713846207, -0.017977191135287285, 0.013646915555000305, -0.010116510093212128, -0.03897611424326897, 0.012208737432956696, 0.004065002780407667, -0.00478363549336791, -0.0005949435289949179, -0.002883592387661338, 0.008013715967535973, -0.0005873397458344698, -0.041222620755434036, -0.025222189724445343, -0.014510825276374817, -0.006913282442837954, -0.0018457077676430345, 0.006773531902581453, -0.0168161578476429, 0.04116516187787056, 0.026484159752726555, 0.010675648227334023, 0.03705640137195587, 0.03766942396759987, -0.008222960866987705, -0.0012711039744317532, -0.05090454965829849, 0.003020367119461298, -0.007137142587453127, 0.020322054624557495, 0.003767524380236864, -0.0352451354265213, -0.024133384227752686 ]
clojure-my-first-attempt-at-a-macro
https://markhneedham.com/blog/2009/12/12/clojure-my-first-attempt-at-a-macro
false
2009-12-12 03:51:19
Clojure: Forgetting the brackets
[ "clojure" ]
[ "Clojure" ]
I've been playing around with macros over the last few days and while writing a simple one forgot to include the brackets to make it evaluate correctly: [source,lisp] ---- (defmacro say-hello [person] println "Hello" person) ---- This macro doesn't even expand like I thought it would: [source,text] ---- user=> (macroexpand-1 '(say-hello blah)) blah ---- That seemed a bit strange to me but I eventually realised that I'd missed off the brackets around 'println' and the arguments following it which would have resulted in 'println' being evaluated with those arguments. I was a bit curious as to why that happened so I tried the following expression without any brackets to see what would happen: [source,text] ---- user=> println "hello" "mark" #<core$println__5440 clojure.core$println__5440@681ff4> "mark" "random" ---- It seems to just evaluate each thing individually and when we put this type of expression into a function definition the function will do the same thing but also return the last thing evaluated: [source,lisp] ---- (defn say-hello [] println "hello" "mark") ---- [source,text] ---- user=> (say-hello) "mark" ---- http://twitter.com/ajlopez/statuses/6563641565[A. J. Lopez pointed out] that this is quite like http://www.delorie.com/gnu/docs/elisp-manual-21/elisp_125.html[progn] in other LISPs and is the same as doing the following: [source,text] ---- user=> (do println "hello" "mark") "mark" ---- http://clojure.org/special_forms#toc3[do] is defined as follows: ____ (do exprs*) Evaluates the expressions in order and returns the value of the last. If no expressions are supplied, returns nil. ____ The way to write a function which passes those two arguments to 'println' is of course to put brackets around the statement: [source,lisp] ---- (defn say-hello [] (println "hello" "mark")) ---- [source,text] ---- user=> (say-hello) hello mark nil ----
null
null
[ 0.003871702589094639, 0.03957622870802879, -0.02200542949140072, 0.0022829100489616394, 0.07106846570968628, -0.011309699155390263, 0.010075189173221588, -0.01308203674852848, 0.011616990901529789, -0.010707266628742218, 0.0002000123931793496, 0.004063006490468979, -0.06434447318315506, 0.021435417234897614, 0.010342630557715893, 0.04905063286423683, 0.0847729966044426, -0.024181857705116272, 0.008667739108204842, 0.0009963545016944408, 0.037112604826688766, 0.05142867937684059, 0.005434901919215918, -0.02356737107038498, 0.037966929376125336, 0.013929414562880993, 0.03099674917757511, 0.009455657564103603, -0.08137497305870056, -0.0006706342101097107, 0.014385259710252285, 0.006594764068722725, -0.0020984928123652935, -0.021091924980282784, 0.025555552914738655, 0.031403034925460815, 0.02945496141910553, -0.009091445244848728, -0.006903967820107937, 0.0396467000246048, -0.05224067345261574, -0.0040656146593391895, -0.027702532708644867, 0.020432576537132263, -0.055385660380125046, -0.0023684927728027105, -0.06394059956073761, 0.00553898373618722, -0.06114445999264717, 0.022879930213093758, -0.07178626954555511, 0.0019682631827890873, -0.0015074539696797729, 0.002840660745278001, 0.02263406664133072, 0.03793136402964592, 0.009108600206673145, -0.10911216586828232, 0.05103706568479538, -0.03930547088384628, -0.0061096809804439545, 0.00966133177280426, 0.034303780645132065, 0.05015501752495766, -0.002841182518750429, -0.019225336611270905, -0.008365807123482227, 0.01633264310657978, -0.09221645444631577, -0.012721208855509758, -0.009841298684477806, 0.020535921677947044, -0.031042426824569702, -0.04081758111715317, 0.049015723168849945, -0.016637103632092476, -0.0005932107451371849, 0.03523428365588188, 0.0005082097486592829, 0.04282519593834877, -0.028259551152586937, 0.007510629948228598, 0.048666179180145264, 0.020833229646086693, 0.046747371554374695, -0.0015383029822260141, -0.03600697219371796, 0.018328316509723663, 0.006457305978983641, 0.045101117342710495, 0.005330999847501516, -0.07437962293624878, -0.024343235418200493, 0.009481199085712433, 0.021664408966898918, -0.007416942622512579, -0.014814794063568115, -0.004428469575941563, -0.013650506734848022, -0.002675974741578102, -0.020740699023008347, -0.02907838113605976, 0.008914018981158733, 0.0014014752814546227, -0.07360130548477173, -0.018862761557102203, -0.034766603261232376, -0.006833270192146301, 0.030803853645920753, -0.006034283898770809, -0.044170450419187546, 0.0013142310781404376, -0.031001843512058258, -0.0014633904211223125, -0.07889509201049805, 0.04532351344823837, 0.022716598585247993, -0.015932654961943626, -0.04050079733133316, 0.030486486852169037, 0.030630962923169136, 0.020382260903716087, 0.017085857689380646, 0.07225349545478821, -0.012725723907351494, 0.03161366283893585, -0.01640377752482891, 0.04860294237732887, 0.01722266711294651, -0.03048076666891575, -0.029686033725738525, 0.06433898210525513, 0.0010069671552628279, -0.0030323590617626905, -0.008833082392811775, -0.046253565698862076, -0.022266767919063568, -0.018980970606207848, 0.035873133689165115, 0.01136161107569933, 0.010582160204648972, -0.017480432987213135, -0.016680508852005005, -0.016595685854554176, 0.023794615641236305, 0.01960398256778717, -0.007118793670088053, -0.014537381008267403, -0.020613059401512146, 0.03876208886504173, 0.0373576357960701, 0.026265524327754974, 0.08309709280729294, -0.0012763820122927427, 0.03749309852719307, 0.06140735745429993, 0.03294343873858452, 0.032088279724121094, -0.02363646775484085, 0.018175221979618073, 0.04364892467856407, 0.028885453939437866, -0.006775306072086096, 0.06168366223573685, 0.019582994282245636, 0.007566615007817745, 0.004086382687091827, 0.024172712117433548, 0.00165191397536546, -0.018787141889333725, -0.04132046550512314, -0.02064303681254387, 0.08050734549760818, -0.035777151584625244, -0.02712639793753624, -0.0007308576605282724, 0.09602532535791397, 0.01841462217271328, 0.0615258663892746, 0.006817968096584082, -0.06508637964725494, 0.016057433560490608, -0.022364120930433273, 0.01594385877251625, 0.0446329228579998, 0.003415435552597046, 0.07015912234783173, 0.007347434759140015, -0.0045371935702860355, 0.021482951939105988, -0.05240774527192116, -0.07058180868625641, 0.0011245560599491, -0.017018688842654228, 0.05132289603352547, -0.06647190451622009, -0.027346361428499222, 0.0688345655798912, 0.008291606791317463, 0.01287398487329483, 0.006978098303079605, -0.0020214123651385307, 0.012315207161009312, -0.039743173867464066, -0.0380743034183979, 0.043364234268665314, 0.0432671457529068, -0.008579874411225319, -0.01624731719493866, 0.049660082906484604, 0.01065132487565279, 0.04044217988848686, 0.0177675299346447, -0.005727636162191629, 0.0498926043510437, 0.038874439895153046, 0.030151575803756714, -0.04337487742304802, 0.010979980230331421, -0.027798302471637726, 0.030228398740291595, 0.03731126710772514, 0.004594915546476841, 0.009461098350584507, 0.01819758117198944, 0.13601571321487427, 0.0633026584982872, -0.03004988096654415, -0.07142949104309082, 0.030563490465283394, 0.012459802441298962, -0.057442136108875275, 0.00599334854632616, 0.020037533715367317, -0.012554709799587727, -0.0022396990098059177, -0.018989533185958862, 0.010260426439344883, 0.02012506313621998, -0.04229579120874405, 0.0013792214449495077, 0.0857161208987236, -0.012194220907986164, 0.043669819831848145, -0.005544036161154509, -0.01355479285120964, 0.042816124856472015, -0.03545890003442764, -0.09858918935060501, 0.022827478125691414, 0.03997049108147621, -0.03162180259823799, 0.07254348695278168, -0.04101260006427765, -0.044221967458724976, -0.007936656475067139, -0.051676154136657715, 0.01629292033612728, 0.04047428071498871, 0.04735001549124718, 0.0020948073361068964, 0.033038340508937836, -0.01374733541160822, -0.004299136810004711, -0.038768235594034195, -0.04965878650546074, -0.04623032733798027, 0.01570199802517891, -0.023718561977148056, 0.023639224469661713, 0.0135879535228014, 0.007892811670899391, 0.0021017608232796192, -0.018900573253631592, -0.0009781988337635994, 0.009791391901671886, 0.023611102253198624, -0.008243870921432972, -0.02981216087937355, -0.01913882978260517, -0.03351573273539543, 0.0628439262509346, -0.015023119747638702, -0.06123257055878639, -0.010912008583545685, -0.04166959971189499, 0.04536416009068489, -0.08616133779287338, -0.02659778669476509, -0.004067571833729744, 0.015591270290315151, 0.023251965641975403, -0.03291313722729683, 0.0006285488489083946, 0.04951068386435509, -0.008312882855534554, 0.031081926077604294, 0.005500970873981714, 0.0004471510765142739, 0.028984734788537025, 0.022202271968126297, 0.014879302121698856, 0.023039406165480614, 0.00601452961564064, 0.010799553245306015, -0.009944463148713112, 0.0036468394100666046, -0.016907664015889168, -0.23911219835281372, 0.03800120949745178, -0.022573325783014297, -0.02835668809711933, 0.0006133232964202762, -0.06423098593950272, -0.010250024497509003, -0.045690618455410004, -0.022478749975562096, -0.021892089396715164, -0.031070919707417488, -0.03130650147795677, -0.03265202045440674, 0.04348147660493851, 0.004806642886251211, -0.029467839747667313, -0.0009312032489106059, -0.0485096238553524, 0.026408804580569267, 0.042654071003198624, 0.033083248883485794, -0.05553712323307991, 0.012196450494229794, 0.07248736917972565, 0.023815589025616646, 0.029906297102570534, -0.043162450194358826, 0.04049665108323097, -0.021245617419481277, -0.03349333629012108, -0.003783630207180977, 0.002939521800726652, 0.001766705303452909, -0.012911389581859112, -0.0346582867205143, 0.003525112522765994, 0.03445228934288025, -0.005181059706956148, 0.0538032203912735, 0.04329315572977066, -0.020388759672641754, -0.04920320212841034, 0.019268808886408806, -0.0253111831843853, 0.05868184566497803, 0.003510942915454507, -0.0674818679690361, -0.02665996551513672, -0.038925930857658386, 0.0851915255188942, -0.022769570350646973, -0.031212158501148224, -0.021140597760677338, 0.05167859420180321, 0.007880420424044132, -0.031128745526075363, -0.04973359778523445, -0.04335803911089897, -0.03813926503062248, -0.015749966725707054, -0.029469771310687065, -0.05346174165606499, 0.017000071704387665, -0.05112903192639351, -0.026492038741707802, -0.037438198924064636, -0.07596659660339355, 0.016626669093966484, 0.056058548390865326, 0.013007386587560177, -0.0325484536588192, -0.0377451628446579, -0.03689984604716301, -0.10727439075708389, -0.024171968922019005, -0.04049770534038544, -0.046840034425258636, 0.0022352237720042467, 0.019982844591140747, 0.05668250471353531, -0.0445813350379467, -0.06684620678424835, 0.004443656653165817, 0.03491015359759331, 0.025403589010238647, -0.03512199595570564, -0.016364198178052902, -0.011808963492512703, -0.025031501427292824, 0.002718096598982811, 0.037180423736572266, -0.018408415839076042, -0.0594383142888546, -0.03328641504049301, 0.020172007381916046, 0.007270845118910074, 0.029061781242489815, -0.004578032530844212, 0.05711889639496803, 0.030314013361930847, 0.04051293060183525, -0.0403902530670166, 0.004109510686248541, -0.03838420659303665, -0.0038178933318704367, -0.001166978501714766, -0.07986579090356827, 0.036972738802433014, -0.002947556786239147, -0.008135518059134483, -0.03224276751279831, -0.06701575219631195, -0.017580823972821236, -0.053845830261707306, -0.030407922342419624, -0.01617169938981533, 0.0028175695333629847, 0.035748742520809174, 0.033077921718358994, -0.01557825691998005, -0.06757039576768875, 0.012553672306239605, 0.018061313778162003, -0.053493209183216095, -0.06828717142343521, -0.019566329196095467, 0.003722666995599866, -0.004822264425456524, 0.00762255908921361, 0.029382718726992607, -0.0107978954911232, 0.024048693478107452, 0.006621190812438726, -0.03935572877526283, 0.028732527047395706, 0.0037463014014065266, -0.00633952347561717, -0.003664686344563961, -0.028839508071541786, -0.014306922443211079, -0.0008058202220126987, -0.020266851410269737, 0.007533055730164051, 0.018190886825323105, 0.03605067729949951, 0.007333923131227493, 0.007355460897088051, 0.019656525924801826, -0.05754609405994415, 0.028413522988557816, 0.03587433323264122, -0.025409895926713943, 0.018527118489146233, -0.031508851796388626, -0.006246413569897413, 0.022455548867583275, 0.026038920506834984, -0.023071395233273506, -0.04171338304877281, -0.042432576417922974, 0.040438394993543625, -0.006315145641565323, 0.00941438227891922, 0.00699989777058363, -0.05588812008500099, 0.030261356383562088, -0.01912146992981434, 0.056269921362400055, -0.0156297218054533, 0.02539028227329254, -0.02681664749979973, 0.01827290654182434, -0.030192287638783455, 0.018772246316075325, -0.0011917095398530364, -0.0023721104953438044, 0.003373266663402319, 0.035470373928546906, 0.023605456575751305, 0.011596694588661194, -0.0019661737605929375, -0.015481201931834221, 0.04918303340673447, 0.014662904664874077, 0.04434312507510185, -0.01083401869982481, -0.012744947336614132, -0.015265225432813168, -0.03098795935511589, -0.028101783245801926, -0.009022165089845657, -0.017526300624012947, -0.0025982544757425785, 0.017146805301308632, -0.04045730456709862, -0.050035279244184494, 0.004523178096860647, 0.09613235294818878, -0.010453957132995129, -0.011617046780884266, 0.006655519362539053, -0.006801523268222809, -0.027905134484171867, -0.0021954693365842104, 0.06279945373535156, -0.04178499057888985, 0.018975744023919106, -0.001615080633200705, 0.005432911217212677, 0.04430920630693436, -0.0005699267494492233, -0.06189032644033432, -0.019410060718655586, 0.0022334845270961523, -0.007243151310831308, 0.002231009304523468, -0.01809028536081314, -0.00797044113278389, 0.007953111082315445, -0.022959448397159576, -0.00434552738443017, -0.012091398239135742, -0.019548324868083, 0.016906149685382843, -0.025787075981497765, -0.01450662687420845, -0.0325922928750515, 0.022249307483434677, 0.052056629210710526, -0.016106702387332916, 0.03218015283346176, -0.031058574095368385, 0.057079434394836426, 0.027588101103901863, -0.004689458757638931, -0.04064497724175453, -0.06758131831884384, 0.026420162990689278, -0.0605301558971405, 0.0456191748380661, 0.004102498758584261, 0.0027453380171209574, -0.03117438592016697, 0.010959473438560963, -0.0311416145414114, -0.011907251551747322, 0.0017609380884096026, -0.0629754588007927, 0.021979859098792076, 0.042723242193460464, -0.020999733358621597, 0.0799243152141571, -0.019000951200723648, 0.008185983635485172, 0.0674414411187172, -0.038211334496736526, -0.06235447898507118, 0.014441394247114658, -0.03804536163806915, 0.03484713286161423, 0.03890908882021904, 0.014467624947428703, -0.05284174531698227, 0.042650751769542694, 0.057788144797086716, 0.019267573952674866, 0.008062086068093777, -0.004551550839096308, 0.03073553554713726, -0.03630084544420242, -0.0007385085918940604, -0.09292591363191605, 0.00014574213128071278, 0.043851129710674286, 0.03963266685605049, -0.04029826074838638, -0.02855551615357399, -0.033342815935611725, 0.0027439610566943884, -0.062198806554079056, -0.012840678915381432, 0.030872568488121033, 0.021743865683674812, 0.011089914478361607, 0.049054358154535294, -0.050542041659355164, -0.002323092659935355, 0.01394775789231062, -0.027390578761696815, -0.025446519255638123, -0.022033102810382843, 0.046603742986917496, -0.005017218645662069, 0.01680835522711277, -0.005446580704301596, 0.012217110954225063, 0.07029777765274048, 0.04253514111042023, 0.0008419136283919215, 0.06052442267537117, -0.018051814287900925, -0.014428847469389439, 0.0464988611638546, -0.03707802668213844, -0.0201066043227911, 0.014522633515298367, -0.04115116968750954, -0.06798219680786133, -0.006056887097656727, 0.040377892553806305, -0.015974214300513268, -0.04671097174286842, 0.06500209867954254, 0.01980888843536377, -0.0337158665060997, -0.00963920820504427, 0.024779997766017914, -0.07667819410562515, -0.0026411120779812336, -0.027098417282104492, 0.0035378322936594486, -0.04432639107108116, 0.04386406019330025, -0.003794513177126646, 0.00822210032492876, 0.07976805418729782, 0.021681854501366615, -0.014082379639148712, 0.018367063254117966, 0.06789223849773407, 0.06704895943403244, 0.07332473248243332, 0.03191448003053665, 0.034978605806827545, -0.06243250146508217, -0.03707557171583176, -0.008139340206980705, -0.018058883026242256, 0.018400855362415314, -0.006813960149884224, 0.00451140059158206, 0.07936635613441467, -0.01337970606982708, 0.08413112163543701, -0.0056542991660535336, -0.015137688256800175, -0.0062688239850103855, 0.012134243734180927, 0.06506569683551788, 0.08375811576843262, 0.039666444063186646, 0.00945793092250824, 0.023069629445672035, -0.043989166617393494, 0.03202739730477333, -0.028011582791805267, -0.027351535856723785, 0.011182858608663082, 0.002299998654052615, 0.008132883347570896, 0.014182335697114468, 0.06553447246551514, 0.07356595993041992, -0.04187287762761116, -0.013377845287322998, 0.007715668063610792, 0.04372890666127205, 0.02269779145717621, -0.0032274380791932344, 0.018874963745474815, -0.030761949717998505, -0.01279174443334341, 0.000596626487094909, -0.016835706308484077, -0.05591637268662453, -0.052986569702625275, 0.027393369004130363, -0.03333063796162605, -0.022795431315898895, 0.03165169805288315, 0.004008638206869364, -0.019345613196492195, -0.06021743267774582, -0.016610799357295036, -0.06342995166778564, -0.053355179727077484, -0.008073212578892708, -0.010254865512251854, -0.02615201286971569, -0.03384788706898689, -0.0016067660180851817, -0.006747561506927013, 0.014586688950657845, 0.050957921892404556, 0.0017078593373298645, -0.018864376470446587, 0.013625306077301502, 0.0075325993821024895, 0.02179579623043537, 0.007177502382546663, 0.01641206443309784, 0.002432493260130286, -0.0022310169879347086, -0.017167899757623672, 0.0003709427546709776, 0.05269618704915047, 0.002553712110966444, -0.03021368943154812, -0.08700908720493317, -0.0038944524712860584, 0.04002637788653374, 0.029378410428762436, -0.07989414781332016, 0.03987650200724602, -0.005018642172217369, -0.0033346840646117926, 0.0395151786506176, -0.01823486015200615, -0.005717052146792412, -0.038099825382232666, -0.004655939061194658, 0.011467183008790016, 0.02084774523973465, 0.024698257446289062, -0.012437875382602215, 0.09746968001127243, 0.014246761798858643, -0.008185324259102345, -0.012111597694456577, -0.021227043122053146, -0.037926770746707916, 0.0008338640327565372, -0.008644061163067818, -0.02148873545229435, -0.056790370494127274, -0.036060404032468796, -0.003687025746330619, 0.00548220332711935, -0.04625816270709038, -0.0333605594933033, 0.004350010771304369, 0.015920914709568024, -0.020333483815193176, 0.06560348719358444, -0.024233154952526093, 0.0243538711220026, -0.006108401343226433, -0.014976696111261845, -0.008017870597541332, -0.00663104047998786, -0.013736849650740623, 0.011727345176041126, 0.03199794143438339, -0.016691841185092926, -0.027236884459853172, -0.01735886000096798, -0.0018192109419032931, 0.01340918056666851, -0.012096692807972431, 0.0183205995708704 ]
[ -0.10795419663190842, -0.00004373450065031648, -0.026825737208127975, -0.033218007534742355, 0.003205004381015897, -0.05000609904527664, 0.01819213666021824, 0.023882579058408737, 0.029642317444086075, -0.009030139073729515, 0.006071958690881729, -0.03491215780377388, -0.006801356095820665, 0.001910849241539836, 0.09122617542743683, -0.022096307948231697, -0.04388347640633583, -0.03436196595430374, -0.06031981483101845, 0.002510674064978957, 0.04583672434091568, -0.02346699871122837, -0.05045889690518379, -0.07502230256795883, 0.033282797783613205, 0.04299385845661163, 0.03816748410463333, -0.03266964852809906, 0.017310306429862976, -0.21714049577713013, 0.003118668682873249, 0.017563974484801292, 0.034527335315942764, -0.0331384614109993, -0.018190693110227585, 0.04410025477409363, 0.0026356966700404882, 0.01038442924618721, -0.02567320130765438, 0.04184982180595398, 0.04612000286579132, 0.02393399365246296, -0.032656338065862656, -0.04786181077361107, 0.04796146973967552, -0.008592690341174603, -0.006698278244584799, -0.02206609398126602, -0.02891538105905056, 0.02429516427218914, -0.05585697665810585, -0.00807705707848072, 0.025985468178987503, -0.04113397374749184, 0.0001767748181009665, 0.03428184613585472, 0.058596838265657425, 0.06462320685386658, 0.009761965833604336, -0.01469433680176735, -0.0076019177213311195, -0.024342264980077744, -0.15623615682125092, 0.0726410523056984, 0.022025559097528458, 0.028668934479355812, 0.0014831572771072388, -0.01232695672661066, -0.05166354402899742, 0.10062133520841599, 0.03250667825341225, -0.013011276721954346, -0.01778155006468296, 0.0715821161866188, 0.012829788029193878, -0.049237240105867386, -0.006621927488595247, 0.008211593143641949, 0.04151567071676254, -0.03450828418135643, -0.06735111027956009, -0.028484588488936424, -0.007745647802948952, 0.002116667339578271, -0.02899641916155815, 0.03892207518219948, 0.0036043741274625063, 0.04482882097363472, 0.05016074329614639, -0.0019311337964609265, 0.027485385537147522, -0.04247734323143959, 0.032908845692873, 0.018395768478512764, -0.09433519840240479, -0.009088362567126751, 0.015622057020664215, 0.006223782431334257, -0.040057308971881866, 0.4307798445224762, -0.031125862151384354, -0.015502329915761948, 0.05260655656456947, 0.030679600313305855, 0.0017434043111279607, 0.004200621973723173, -0.00016529273125343025, 0.0000627455665380694, 0.030855799093842506, -0.060117464512586594, -0.01570281758904457, -0.01881255768239498, 0.0664653554558754, -0.05219282582402229, -0.004765389487147331, -0.008144630119204521, 0.07351028174161911, 0.004713833797723055, 0.011854133568704128, 0.019135452806949615, 0.033102937042713165, -0.0022834111005067825, 0.0005244279163889587, 0.010251538828015327, 0.02480619214475155, 0.005602810997515917, 0.019941771402955055, 0.07243701815605164, 0.028401929885149002, 0.028840741142630577, 0.04421722888946533, -0.029506655409932137, -0.031638436019420624, 0.020645873621106148, -0.01876991242170334, 0.009103594347834587, 0.025403035804629326, -0.029319239780306816, 0.01084123831242323, 0.033707745373249054, 0.020405521616339684, -0.007569281850010157, -0.0046480437740683556, -0.001427485840395093, -0.00907275453209877, 0.09120673686265945, -0.019717145711183548, -0.04038797318935394, 0.005915422458201647, -0.027074333280324936, -0.027468161657452583, 0.039940956979990005, -0.010273651219904423, -0.044956669211387634, 0.02505204640328884, 0.04080553352832794, 0.05907057598233223, -0.026931822299957275, -0.0785413533449173, -0.0020820905920118093, -0.03565848991274834, -0.010797946713864803, -0.07661113888025284, 0.04522727429866791, 0.013760348781943321, -0.04188479855656624, -0.01161486841738224, -0.010118774138391018, 0.010537770576775074, -0.07254661619663239, 0.01250318344682455, 0.007692954037338495, -0.04452456533908844, -0.0018972489051520824, 0.031937532126903534, -0.014338608831167221, -0.019525723531842232, -0.004341478925198317, 0.047624584287405014, 0.024661481380462646, -0.01545108761638403, 0.008490881882607937, -0.06510889530181885, 0.01924877054989338, -0.021777167916297913, -0.05809612199664116, -0.07868658006191254, 0.006137640681117773, -0.0367259606719017, 0.006143195554614067, -0.025480512529611588, -0.01763444021344185, -0.05519530549645424, 0.05449160933494568, -0.06053086742758751, -0.03561239317059517, 0.02292795479297638, 0.020390169695019722, -0.025066394358873367, -0.0033642237540334463, 0.031626176089048386, 0.058604225516319275, 0.004339625593274832, 0.01436857134103775, -0.06238548830151558, -0.010431354865431786, 0.029838457703590393, -0.05378895625472069, 0.0572262778878212, 0.018465833738446236, -0.05287771672010422, 0.02686481736600399, 0.017518388107419014, -0.0037951101548969746, -0.011412404477596283, -0.01949501596391201, -0.01746336743235588, 0.003625458339229226, 0.040269624441862106, -0.009030555374920368, -0.05433255806565285, -0.046479906886816025, -0.03369871899485588, -0.34281209111213684, -0.017961736768484116, 0.04383845999836922, -0.012150711379945278, 0.05711307004094124, -0.09426616877317429, 0.0025248355232179165, -0.016733244061470032, -0.030434051528573036, -0.013672548346221447, 0.04957035556435585, -0.04709142819046974, -0.028992054983973503, -0.06920119374990463, 0.013386254198849201, 0.02380608767271042, -0.017911888659000397, -0.053705837577581406, -0.028356105089187622, 0.036591194570064545, 0.006301930174231529, -0.027136633172631264, 0.0003056818968616426, -0.04323418065905571, -0.02113495022058487, -0.023225417360663414, 0.06849577277898788, 0.05445348471403122, 0.12027620524168015, -0.04094378650188446, 0.049479734152555466, 0.0020194356329739094, -0.009638628922402859, -0.08689375221729279, 0.007582095917314291, 0.010465124621987343, -0.00591339310631156, -0.02554238960146904, 0.021793261170387268, 0.003626365913078189, -0.0002020555839408189, 0.020425159484148026, -0.05813237279653549, -0.007697246037423611, -0.014346305280923843, 0.02188216522336006, 0.02092108502984047, -0.02023942954838276, -0.011255363002419472, 0.09325672686100006, 0.021332209929823875, -0.014612565748393536, 0.005678763147443533, 0.0013978199567645788, 0.0634327158331871, -0.01938922330737114, -0.0556311197578907, -0.025243697687983513, 0.013495377264916897, -0.02380453422665596, 0.051307547837495804, 0.06435659527778625, 0.04067599028348923, -0.05473293736577034, -0.030238665640354156, 0.020519431680440903, 0.006863753776997328, -0.008436892181634903, 0.04240638017654419, -0.03419553488492966, -0.044491395354270935, 0.10387173295021057, 0.00869273953139782, 0.012515958398580551, 0.046452589333057404, 0.056604254990816116, -0.012556496076285839, 0.012892498634755611, -0.010243789292871952, -0.010850124061107635, 0.014283288270235062, -0.0020266948267817497, 0.02665293961763382, -0.03895273059606552, -0.004189440049231052, 0.04996136203408241, 0.0021293016616255045, -0.0194981899112463, 0.036565836519002914, -0.02114439755678177, -0.054415564984083176, -0.002034610603004694, 0.015523329377174377, -0.03996357321739197, 0.07966800779104233, 0.0014591095969080925, -0.2621241807937622, 0.038257695734500885, 0.05173039808869362, 0.05320132151246071, -0.005466659553349018, 0.03934185951948166, 0.049082543700933456, -0.09880178421735764, -0.06252772361040115, 0.012981491163372993, 0.02973215840756893, 0.0475737601518631, -0.0025534748565405607, 0.015320276841521263, 0.03803829848766327, -0.010900881141424179, 0.030319608747959137, -0.02718295343220234, 0.016699576750397682, 0.00953967310488224, 0.029718613252043724, -0.011909838765859604, 0.17649856209754944, -0.022793078795075417, 0.024216780439019203, 0.0058752004988491535, -0.008427653461694717, 0.009775150567293167, 0.09258329123258591, 0.0009106786455959082, 0.005291869398206472, 0.02423926070332527, 0.07734225690364838, 0.002782924333587289, 0.04015389457345009, -0.04107801616191864, -0.03548884391784668, 0.017663316801190376, 0.03794107958674431, -0.02822921797633171, 0.0033716897014528513, 0.006088091991841793, -0.02827843464910984, -0.0057870326563715935, 0.04740327224135399, 0.013806723058223724, 0.020116690546274185, -0.007814192213118076, -0.011134365573525429, 0.008320129476487637, -0.0271145049482584, -0.0012324562994763255, 0.001958023989573121, -0.0010860583279281855, -0.0013392915716394782, 0.02336766943335533, 0.0008458874654024839, -0.030316073447465897, -0.004486878868192434, 0.038069404661655426, -0.033709313720464706, -0.021090742200613022, 0.13189829885959625, 0.014962858520448208, 0.00037226465065032244 ]
[ -0.008121496066451073, -0.012131567113101482, -0.009372568689286709, -0.015482980757951736, -0.0070386361330747604, -0.013383823446929455, 0.012631767429411411, 0.013640441000461578, -0.03722364827990532, -0.030850229784846306, 0.003925286699086428, -0.008631085976958275, 0.01027474831789732, -0.002264968119561672, 0.024747172370553017, -0.01571153663098812, 0.01688636839389801, 0.0017941478872671723, 0.038838114589452744, -0.0009190755663439631, -0.005001324228942394, 0.03524601459503174, 0.022995885461568832, -0.020573828369379044, 0.014734284020960331, 0.02870011329650879, -0.011136883869767189, -0.022595638409256935, 0.03291892632842064, -0.11518177390098572, -0.0113233532756567, -0.04020947590470314, 0.02153877541422844, -0.015315181575715542, -0.011460238136351109, 0.025370290502905846, -0.01715198904275894, 0.017901422455906868, 0.01789955049753189, -0.01208820752799511, -0.026472652330994606, -0.016245486214756966, -0.06292833387851715, 0.017820509150624275, 0.03439656272530556, 0.018205717206001282, -0.013284177519381046, -0.027534672990441322, -0.009158867411315441, -0.0023072168696671724, -0.02233552373945713, -0.003594811772927642, 0.016309555619955063, -0.008377330377697945, 0.04490533098578453, -0.03845205157995224, -0.04263916239142418, 0.0194970965385437, 0.034862909466028214, -0.040641553699970245, -0.021833766251802444, 0.016828862950205803, -0.058944739401340485, -0.02348107099533081, 0.0015917164273560047, -0.055367354303598404, 0.00807934533804655, 0.022187547758221626, -0.008999104611575603, 0.016380678862333298, -0.018800750374794006, 0.03087606281042099, 0.018659817054867744, -0.013083995319902897, 0.002349473536014557, 0.031061217188835144, 0.039745379239320755, -0.02960793860256672, -0.015200423076748848, -0.019119445234537125, -0.003176287282258272, 0.000057607132475823164, 0.02177848108112812, 0.03673022240400314, -0.01677628979086876, -0.023942360654473305, 0.009263260290026665, -0.010788285173475742, 0.03519715368747711, 0.04196508228778839, -0.0024159091990441084, 0.03592415526509285, -0.0007832361734472215, -0.01545840036123991, -0.10235011577606201, 0.021192343905568123, -0.045278944075107574, -0.003031291998922825, 0.004024047404527664, 0.8573867082595825, -0.0035352848935872316, 0.04581994190812111, 0.03159457445144653, -0.005114790517836809, 0.010429617017507553, -0.006907429546117783, 0.0006134639261290431, -0.008690237998962402, 0.015483690425753593, -0.00803318526595831, 0.04011575132608414, 0.002135415794327855, 0.03636394441127777, 0.0081541882827878, 0.025131527334451675, -0.014160334132611752, 0.040904782712459564, -0.016739923506975174, 0.039552364498376846, 0.02601478062570095, 0.024672554805874825, 0.006634902209043503, -0.0024670264683663845, 0.01725628972053528, -0.01085948571562767, -0.12012183666229248, 0.017453370615839958, -7.820071677761272e-33, 0.04021212458610535, 0.0021429790649563074, -0.019543150439858437, -0.02388269267976284, -0.01796741969883442, 0.015172981657087803, -0.0018904884345829487, -0.010909980162978172, -0.031802356243133545, -0.042332377284765244, 0.012014605104923248, -0.010905579663813114, 0.011416131630539894, 0.013576194643974304, 0.015256265178322792, 0.03460961580276489, 0.020695386454463005, 0.05892805755138397, -0.018955793231725693, 0.03484107553958893, 0.004629232920706272, 0.011625822633504868, -0.002489638514816761, 0.01581711322069168, 0.006662717089056969, 0.05158192291855812, 0.04364388808608055, -0.031113307923078537, -0.02385454997420311, -0.04922843351960182, -0.03273067995905876, 0.00879199244081974, 0.0541236586868763, -0.02136128768324852, 0.02910435199737549, -0.0384063757956028, 0.014205594547092915, 0.011467641219496727, -0.019505269825458527, -0.05365074798464775, -0.03543675318360329, -0.012126157060265541, -0.03540908917784691, -0.0018492793897166848, -0.007811845280230045, -0.029407892376184464, -0.006276876199990511, 0.033460985869169235, -0.009638762101531029, 0.021438544616103172, 0.016705350950360298, 0.0018751483876258135, -0.01642797328531742, -0.0018124618800356984, -0.009617598727345467, 0.01778395287692547, -0.05492796748876572, 0.0025592129677534103, -0.0019121317891404033, 0.012748386710882187, 0.005673987790942192, 0.02701471373438835, 0.007141235284507275, 0.04919201135635376, 0.003938104957342148, -0.030788054689764977, -0.05159560963511467, -0.0016467360546812415, 0.028895994648337364, 0.021666953340172768, -0.06766612827777863, 0.011647018603980541, -0.0177745521068573, 0.007314855698496103, -0.0027215757872909307, -0.03930011764168739, -0.02201482094824314, -0.03813016414642334, 0.004022273700684309, 0.051485635340213776, 0.01555970311164856, -0.01538641843944788, -0.0008067362941801548, -0.009214906021952629, 0.004771279636770487, -0.01756100170314312, -0.018276255577802658, -0.03889404237270355, -0.029171140864491463, -0.01886502094566822, 0.02890913188457489, -0.0006091793184168637, 0.010506375692784786, -0.020678920671343803, -0.036144573241472244, 7.004578349350064e-33, 0.023398002609610558, 0.011503147892653942, -0.03120320849120617, 0.0013036763994023204, -0.012672471813857555, -0.008384604007005692, 0.01696847379207611, -0.003132930025458336, -0.0458003506064415, 0.026171579957008362, -0.05427943170070648, -0.032919589430093765, -0.012546642683446407, 0.03774145245552063, 0.03813420981168747, -0.007547358516603708, 0.012034056708216667, 0.01297497097402811, -0.013842018321156502, -0.02377675287425518, 0.021334879100322723, 0.02966892346739769, 0.039584290236234665, 0.03783496096730232, 0.013619310222566128, 0.020393498241901398, -0.008555901236832142, 0.027257883921265602, -0.0032130146864801645, 0.02439367212355137, -0.013199769891798496, 0.0008468783926218748, 0.021176140755414963, -0.02532738260924816, -0.0012130958493798971, 0.026565538719296455, -0.0024142784532159567, -0.008509493432939053, 0.03128306567668915, 0.019818829372525215, 0.026860443875193596, 0.000010688635484257247, 0.037618719041347504, -0.0074227857403457165, -0.024475641548633575, 0.02419993095099926, 0.011274326592683792, -0.0030569687951356173, 0.03783223032951355, -0.014570369385182858, -0.01248790230602026, -0.0009955380810424685, -0.011447866447269917, 0.013022499158978462, -0.01981632597744465, -0.029343627393245697, -0.02086367830634117, -0.007340854033827782, -0.05384906381368637, 0.024397745728492737, -0.03304946422576904, -0.022489091381430626, 0.041136499494314194, 0.019567737355828285, 0.002413018373772502, -0.015932131558656693, 0.008272098377346992, -0.01836537756025791, -0.009721926413476467, -0.03159157559275627, -0.006422561127692461, -0.035004712641239166, 0.00608367333188653, 0.030799537897109985, 0.016357846558094025, -0.0031589167192578316, -0.01798306219279766, -0.0069741299375891685, -0.015141643583774567, -0.007617262192070484, 0.02255149744451046, -0.019428392872214317, 0.01156375277787447, 0.023078354075551033, 0.011964069679379463, -0.000999214593321085, -0.01812990941107273, 0.012353615835309029, -0.011924202553927898, -0.007026114966720343, 0.021765178069472313, 0.01171503122895956, 0.025827165693044662, 0.01414269395172596, -0.03991810977458954, -1.3202702042747205e-8, 0.00390666676685214, 0.015245670452713966, -0.024918019771575928, 0.037883054465055466, -0.004150424152612686, 0.029495032504200935, -0.01188614685088396, -0.04912038519978523, -0.025586361065506935, -0.0019085259409621358, 0.006259237881749868, -0.017015567049384117, -0.006587912794202566, 0.008252806030213833, 0.050786200910806656, -0.028737256303429604, -0.0003083751362282783, -0.018780969083309174, 0.008156129159033298, -0.018778203055262566, -0.006352690514177084, 0.016202114522457123, -0.03123411163687706, 0.0009093107073567808, -0.017735090106725693, -0.032103151082992554, 0.02318224497139454, -0.08214467763900757, 0.009224758483469486, -0.03366222232580185, 0.01202052365988493, -0.009223238565027714, -0.013749100267887115, -0.006042690481990576, 0.009731722064316273, -0.023035861551761627, 0.0019248161697760224, -0.0044442699290812016, 0.00039165240013971925, 0.02565208449959755, -0.017910638824105263, 0.005992616061121225, 0.017634211108088493, -0.037230800837278366, -0.03775135055184364, -0.03272200748324394, 0.004381859675049782, -0.005718284752219915, 0.026987820863723755, -0.0029100331012159586, 0.0490824356675148, -0.005361773073673248, 0.016649136319756508, 0.029410921037197113, 0.04846625402569771, 0.005930026061832905, 0.022438153624534607, -0.04610103368759155, -0.0016024431679397821, 0.0008187411585822701, 0.02501455321907997, 0.004685730207711458, -0.03624109923839569, -0.0135634271427989 ]
clojure-forgetting-the-brackets
https://markhneedham.com/blog/2009/12/12/clojure-forgetting-the-brackets
false
2009-12-13 21:47:04
TDD: Only mock types you own
[ "tdd", "testing" ]
[ "Testing" ]
http://lizdouglass.wordpress.com/2009/12/12/mock-objects/[Liz recently posted about mock objects] and the original 'http://www.jmock.org/oopsla2004.pdf[mock roles, not objects]' paper and one thing that stood out for me is the idea that *we should only mock types that we own*. I think this is quite an important guideline to follow otherwise we can end up in a world of pain. One area which seems particularly vulnerable to this type of thing is when it comes to http://www.markhneedham.com/blog/category/hibernate/[testing code which interacts with Hibernate]. A common pattern that I've noticed is to create a mock for the 'http://docs.jboss.org/hibernate/stable/entitymanager/reference/en/html_single/[EntityManager]' and then verify that certain methods on it were called when we persist or load an object for example. There are a couple of reasons why doing this isn't a great idea: . We have no idea what the correct method calls are in the first place so we're just guessing based on looking through the Hibernate code and selecting the methods that we think make it work correctly. . If the library code gets changed then our tests break even though functionally the code might still work The suggestion in the paper when confronted with this situation is to put a wrapper around the library and then presumably test that the correct methods were called on the wrapper. ____ Programmers should not write mocks for fixed types, such as those defined by the runtime or external libraries. Instead they should write thin wrappers to implement the application abstractions in terms of the underlying infrastructure. Those wrappers will have been defined as part of a need-driven test. ____ I've never actually used that approach but I've found that with Hibernate in particular it makes much more sense to write functional tests which *verify the expected behaviour of using the library*. With other libraries which perhaps don't have side effects like Hibernate does those tests would be closer to unit tests but the goal is still to test the result that we get from using the library rather than being concerned with the way that the library achieves that result.
null
null
[ 0.015166806057095528, 0.006652717012912035, -0.006002411246299744, 0.0426991805434227, 0.07320626080036163, -0.015633972361683846, 0.04489166662096977, 0.004532667808234692, -0.017223941162228584, -0.02394045703113079, -0.0046095834113657475, -0.022937355563044548, -0.0583813339471817, 0.0007767158676870167, -0.04237887263298035, 0.057057902216911316, 0.0729617103934288, -0.004699658136814833, 0.029292907565832138, -0.005707874428480864, 0.03170831874012947, 0.04491467773914337, -0.013956977985799313, 0.032267436385154724, 0.018838806077837944, 0.02495826780796051, 0.011946617625653744, 0.024651862680912018, -0.057845450937747955, -0.0419449619948864, 0.014901652932167053, 0.01840995065867901, 9.55982045525161e-7, -0.008117282763123512, 0.026034900918602943, -0.0025971517898142338, -0.024448368698358536, 0.014193667098879814, 0.00433721486479044, 0.025528553873300552, -0.07004018872976303, 0.04077964276075363, 0.004437064286321402, 0.015227208845317364, -0.05177955701947212, -0.00605409499257803, -0.03706305846571922, 0.014396695420145988, -0.00046671798918396235, 0.014490622095763683, -0.06430476903915405, 0.05201646685600281, -0.029576217755675316, -0.005519518628716469, 0.003042236203327775, 0.052064742892980576, 0.01384704653173685, -0.10147600620985031, 0.025750059634447098, -0.05724679306149483, 0.00607030326500535, 0.00232968688942492, -0.004875484853982925, 0.018049074336886406, 0.005464296787977219, -0.005261591635644436, 0.005009964574128389, 0.030506214126944542, -0.04920639470219612, -0.007595517672598362, -0.005599933210760355, 0.0003787458117585629, -0.0038330990355461836, -0.021032415330410004, 0.025895042344927788, -0.04166742414236069, 0.00006196713366080076, 0.052523016929626465, 0.026099804788827896, 0.03864253684878349, -0.018254108726978302, 0.010391047224402428, 0.031735844910144806, 0.01627996563911438, -0.000776416331063956, -0.037993837147951126, -0.0036138922441750765, -0.016800276935100555, -0.02271755412220955, 0.06585334986448288, 0.022819779813289642, -0.037583183497190475, 0.003570162458345294, 0.040772825479507446, -0.02229444310069084, -0.004214184358716011, 0.044081855565309525, -0.017234835773706436, 0.0033163619227707386, 0.010607018135488033, -0.03095938265323639, -0.023947803303599358, 0.03659817948937416, -0.00442517502233386, -0.07654290646314621, -0.013961464166641235, -0.038339074701070786, -0.027286188676953316, -0.013164391741156578, 0.014097902923822403, -0.032473400235176086, 0.023620426654815674, -0.016514884307980537, 0.00007456541788997129, -0.06641165167093277, 0.05342331901192665, -0.0018725694390013814, -0.055391840636730194, -0.01137604657560587, 0.032881639897823334, 0.05603760853409767, 0.026170391589403152, -0.0016189470188692212, 0.07028378546237946, 0.02011869288980961, 0.023991134017705917, -0.032908935099840164, 0.052868183702230453, -0.024765947833657265, -0.07369938492774963, 0.0099562369287014, 0.040936943143606186, -0.010482268407940865, 0.025346865877509117, 0.009486344642937183, -0.029727958142757416, -0.0068352301605045795, 0.008229459635913372, 0.054673951119184494, 0.06482566893100739, -0.024286644533276558, -0.04456999525427818, 0.018753495067358017, 0.015473369508981705, 0.01988258957862854, 0.016616936773061752, 0.006464286707341671, -0.0184723362326622, -0.02698974683880806, 0.031753167510032654, 0.019811060279607773, 0.08070618659257889, 0.023780664429068565, -0.03939857333898544, 0.03450717404484749, 0.07840090245008469, 0.003502997336909175, 0.012708041816949844, -0.0065752179361879826, 0.03592713177204132, 0.02532319538295269, 0.011446109041571617, -0.014056527055799961, 0.03763739392161369, 0.027913469821214676, 0.011196657083928585, -0.0025295005179941654, 0.05478954687714577, 0.017108863219618797, -0.005203192122280598, -0.05874823033809662, -0.09856448322534561, 0.04253741726279259, -0.0568600557744503, -0.018631232902407646, 0.03716016560792923, 0.09672168642282486, 0.01808580942451954, 0.05825195834040642, 0.0046999151818454266, -0.07256079465150833, 0.014514192007482052, 0.012256708927452564, 0.007341192569583654, 0.00047686524339951575, 0.009089399129152298, 0.06382188200950623, 0.026473674923181534, -0.03968094289302826, 0.03873352333903313, -0.0645865947008133, -0.06354329735040665, 0.005851786118000746, -0.010854749009013176, 0.07219698280096054, -0.049486029893159866, -0.012262529693543911, 0.09312868118286133, 0.012982702814042568, 0.019598107784986496, 0.028410665690898895, 0.007573096081614494, -0.016256684437394142, -0.03638209030032158, -0.025330904871225357, 0.03686484694480896, 0.03272891789674759, 0.026930052787065506, -0.049689099192619324, -0.007495534606277943, 0.0014685430796816945, 0.008771078661084175, 0.022885996848344803, -0.023413900285959244, 0.023831918835639954, 0.017027126625180244, 0.04487283527851105, -0.01692076586186886, 0.10054187476634979, -0.054477397352457047, 0.002565314993262291, 0.007392497733235359, -0.028275277465581894, -0.0011253453558310866, 0.009942046366631985, 0.11754172295331955, 0.05392926558852196, -0.0350128673017025, -0.037836723029613495, 0.023459183052182198, 0.058236971497535706, -0.047730546444654465, -0.002911841031163931, -0.022632146254181862, -0.014110693708062172, 0.003119545755907893, -0.023621495813131332, -0.012194609269499779, 0.025211390107870102, -0.026655573397874832, -0.007750314194709063, 0.0757172554731369, -0.035305555909872055, 0.04604858532547951, -0.015157976187765598, -0.02136973664164543, -0.018074743449687958, -0.033508267253637314, -0.05435989797115326, -0.001795981079339981, 0.01382374670356512, -0.019284212961792946, 0.050568837672472, -0.026119623333215714, -0.015275416895747185, -0.0342559851706028, -0.05501316860318184, 0.046664610505104065, 0.03675207495689392, 0.09201917052268982, -0.023199187591671944, 0.05465107038617134, -0.0004131146997679025, 0.006482306867837906, -0.013585815206170082, -0.04950207099318504, -0.02603437379002571, -0.017297588288784027, -0.021867863833904266, 0.04278716444969177, 0.0027489259373396635, 0.010000131092965603, 0.016780732199549675, 0.005839039105921984, -0.01970016583800316, 0.014721367508172989, 0.021162506192922592, 0.004079408012330532, -0.010901649482548237, -0.029584556818008423, -0.052436262369155884, 0.05457017198204994, -0.0337025411427021, -0.012199691496789455, 0.023396143689751625, -0.06831450015306473, 0.03906767815351486, -0.07888862490653992, -0.06507149338722229, 0.021507825702428818, 0.04602547362446785, 0.04491707310080528, 0.026151882484555244, 0.025339681655168533, 0.06807424873113632, 0.03943658992648125, 0.009119884110987186, 0.014978908933699131, -0.003443447407335043, 0.03802044317126274, -0.016595108434557915, -0.019891131669282913, 0.018244316801428795, 0.003823854262009263, 0.018968738615512848, -0.039752088487148285, 0.01877971738576889, 0.007361479569226503, -0.27368250489234924, 0.013037429191172123, 0.012012516148388386, -0.058177776634693146, 0.010885628871619701, -0.002282985718920827, 0.003136787796393037, -0.060033492743968964, -0.03647133708000183, 0.06051291897892952, -0.021872060373425484, -0.035383354872465134, -0.020557589828968048, 0.06287508457899094, -0.0020180982537567616, 0.030270902439951897, 0.016742326319217682, -0.03034299612045288, 0.005934143904596567, 0.05326250195503235, -0.012554421089589596, -0.0683218464255333, -0.012572456151247025, 0.04543033614754677, 0.03751453012228012, 0.05983137711882591, -0.0693805143237114, 0.04513018578290939, -0.04130786657333374, -0.0019296499667689204, 0.00858901534229517, -0.0011128881014883518, -0.018630219623446465, -0.0226676594465971, -0.037271324545145035, 0.0009875098476186395, 0.015420022420585155, 0.010505172424018383, -0.004235213156789541, 0.028173726052045822, -0.06238103285431862, -0.04937412589788437, -0.0346560962498188, 0.017178459092974663, 0.06735340505838394, -0.012282116338610649, -0.06376644968986511, -0.0018894353415817022, -0.04710186645388603, 0.0512513667345047, -0.03925406560301781, -0.04688895121216774, 0.014148705638945103, 0.03515606001019478, -0.02418767847120762, -0.016504822298884392, -0.021988028660416603, -0.014707227237522602, -0.0508025698363781, -0.05561937391757965, -0.030731551349163055, -0.03859955817461014, -0.024093475192785263, -0.023118741810321808, -0.04675629362463951, -0.05091056600213051, -0.06067309528589249, -0.001569937914609909, 0.08515375852584839, 0.02860482782125473, -0.031058568507432938, -0.0058473264798521996, -0.01108946930617094, -0.11818741261959076, 0.008952940814197063, -0.017911916598677635, -0.03655701130628586, -0.03803637996315956, 0.0006055550184100866, 0.051361534744501114, -0.02639472298324108, -0.04081849753856659, 0.027448393404483795, 0.0133651252835989, 0.030478330329060555, -0.016637392342090607, 0.025696873664855957, 0.016922423616051674, -0.008144769817590714, 0.00857805646955967, 0.06301382184028625, 0.00012101722677471116, -0.012268628925085068, -0.013420579954981804, 0.016825826838612556, 0.05881359800696373, 0.025761054828763008, -0.030885275453329086, 0.009782959707081318, 0.022500550374388695, 0.010372205637395382, -0.04785613715648651, 0.04470265656709671, -0.023930799216032028, -0.008168705739080906, -0.022812167182564735, -0.07141353189945221, 0.013014799915254116, 0.0200814101845026, 0.017781859263777733, -0.029033422470092773, -0.029778534546494484, 0.030786195769906044, -0.05287246033549309, -0.04895896092057228, -0.03130112960934639, 0.0021644984371960163, 0.0473579578101635, -0.01893576979637146, -0.007741671521216631, -0.05679833143949509, 0.04083872586488724, 0.005474743898957968, -0.042380817234516144, -0.05497005581855774, -0.029143238440155983, -0.014338276349008083, 0.002066914224997163, -0.0003520525642670691, 0.01938445121049881, -0.000099986806162633, 0.029768167063593864, 0.017519867047667503, -0.01302897185087204, 0.015314728952944279, -0.007424523588269949, -0.04380141571164131, -0.024945514276623726, -0.019860411062836647, -0.019683538004755974, 0.00547300698235631, -0.03770345821976662, 0.023749297484755516, 0.033872924745082855, 0.008947638794779778, -0.002308717928826809, 0.06716390699148178, 0.00779122905805707, -0.005357978865504265, 0.04596193507313728, 0.009660834446549416, -0.0536813922226429, 0.02334139123558998, -0.04970177263021469, -0.04283095896244049, -0.027237029746174812, 0.04383775591850281, 0.007409898564219475, -0.0037490411195904016, -0.029323916882276535, -0.010751812718808651, -0.05498027056455612, -0.02134077250957489, -0.034489747136831284, -0.011069279164075851, 0.07203676551580429, -0.04159068316221237, 0.0326557494699955, -0.0314987376332283, -0.0280220415443182, 0.004602064378559589, 0.02225305140018463, -0.02912975661456585, 0.04816771671175957, 0.04073125496506691, -0.012581862509250641, 0.00048135442193597555, 0.015074987895786762, 0.0375976599752903, 0.00940773170441389, -0.011654036119580269, -0.0063126469030976295, 0.017554495483636856, -0.0012482572346925735, 0.04578905552625656, -0.012190389446914196, 0.006220416631549597, -0.027413422241806984, -0.009442786686122417, -0.027030667290091515, -0.03991219028830528, -0.006187162362039089, -0.00478323781862855, 0.054881419986486435, -0.04840748757123947, -0.0746750757098198, 0.04559556767344475, 0.007503922563046217, -0.004546753130853176, -0.009304923005402088, 0.026040976867079735, -0.014526264742016792, -0.024236038327217102, 0.005957703106105328, 0.044887032359838486, -0.06396130472421646, -0.0018753688782453537, -0.0017130726482719183, 0.004834929946810007, 0.01661587692797184, 0.009375796653330326, -0.03147568181157112, -0.018538961187005043, 0.0009310321765951812, -0.01981254480779171, -0.042514950037002563, -0.02035955898463726, -0.030132554471492767, 0.010357245802879333, 0.0029174205847084522, -0.016040902584791183, -0.013439028523862362, -0.017689254134893417, -0.022544756531715393, -0.034443844109773636, 0.0015829133335500956, -0.006980956997722387, 0.014570582658052444, 0.026618201285600662, -0.04103592038154602, 0.02510228380560875, -0.017355887219309807, 0.02373788133263588, 0.017619889229536057, -0.04090271145105362, -0.015869447961449623, -0.02492784895002842, 0.007915036752820015, 0.014657004736363888, 0.04436302185058594, 0.014398756437003613, 0.001842598314397037, -0.011456131003797054, -0.012113261967897415, -0.044727444648742676, 0.024635810405015945, -0.001275110524147749, -0.01586267165839672, 0.014657361432909966, 0.04337048903107643, 0.014097899198532104, 0.04752294346690178, -0.008200804702937603, 0.006666946690529585, 0.06916587054729462, -0.07484617829322815, -0.022497273981571198, -0.025428924709558487, -0.07294437289237976, -0.007385728880763054, 0.003788410685956478, 0.02414792776107788, -0.026719609275460243, 0.03157974034547806, 0.031137730926275253, 0.0228212159126997, 0.05469400808215141, 0.002970984671264887, 0.04523390904068947, -0.05620330572128296, 0.010936304926872253, -0.07403262704610825, 0.0048944358713924885, 0.024392083287239075, 0.031680162996053696, -0.016637856140732765, -0.035597410053014755, -0.04506871476769447, 0.0397016704082489, -0.05677279829978943, -0.005798010621219873, 0.03222079575061798, -0.004994100891053677, -0.004743390250951052, 0.02180236577987671, -0.056954555213451385, 0.032869238406419754, 0.0036642360500991344, -0.023726169019937515, -0.04112391918897629, -0.006321103312075138, 0.04589468240737915, 0.0032486410345882177, -0.004762599710375071, -0.026385141536593437, 0.02459058165550232, 0.05805737525224686, 0.004590851254761219, -0.0047644623555243015, 0.026633916422724724, -0.017802471294999123, 0.04057824984192848, 0.030743293464183807, 0.007604926358908415, 0.007876278832554817, -0.015891514718532562, -0.023030778393149376, -0.08572753518819809, 0.018830548971891403, 0.008083926513791084, -0.035475172102451324, -0.02918967232108116, 0.03464334085583687, 0.026515262201428413, -0.027117939665913582, -0.03398260846734047, 0.008323026821017265, -0.04467203840613365, -0.01724988780915737, -0.019259890541434288, -0.0169125534594059, -0.051289308816194534, 0.052486129105091095, -0.013688798062503338, -0.007228318136185408, 0.07145877927541733, -0.030132638290524483, -0.015163295902311802, -0.011786188930273056, 0.08607549965381622, 0.09132121503353119, 0.032719291746616364, 0.01928332820534706, 0.04920221120119095, -0.023716524243354797, -0.04418449103832245, 0.027940504252910614, -0.013271818868815899, -0.03127630054950714, -0.027598893269896507, -0.002876793732866645, 0.06332167983055115, -0.014217921532690525, 0.054073430597782135, -0.041246309876441956, 0.00783197209239006, 0.002200641669332981, 0.025329288095235825, 0.009446429088711739, 0.07194332033395767, 0.004275502637028694, 0.019438201561570168, -0.03450321406126022, -0.049558125436306, 0.02410270646214485, -0.04279249906539917, -0.020694492384791374, 0.04513814300298691, -0.012935996055603027, 0.01914817839860916, 0.022999580949544907, 0.025393124669790268, 0.068278007209301, -0.012016963213682175, 0.019761955365538597, -0.016886543482542038, 0.020725324749946594, 0.016033504158258438, -0.020000776275992393, -0.02072686329483986, -0.04579075425863266, 0.011748069897294044, -0.016870636492967606, -0.002918081358075142, -0.01748615689575672, -0.04073043540120125, 0.05421272665262222, -0.012499230913817883, 0.007711576297879219, 0.022309347987174988, 0.019196132197976112, -0.04274936765432358, -0.0617852509021759, -0.05512853339314461, 0.0018582228804007173, -0.0757564902305603, -0.0065743462182581425, 0.016759786754846573, -0.011473827995359898, -0.037902288138866425, -0.0173546951264143, -0.010762893594801426, -0.00882171094417572, 0.05882512032985687, -0.032997798174619675, -0.04010026156902313, 0.020406076684594154, 0.021395886316895485, 0.022281095385551453, 0.015515665523707867, 0.0643896758556366, 0.006514350883662701, -0.0038600428961217403, -0.02184852957725525, -0.017641743645071983, 0.05266406014561653, 0.004410110879689455, 0.03205537050962448, -0.07552365213632584, 0.007066602818667889, 0.028698304668068886, 0.011392967775464058, -0.052602652460336685, 0.02186986245214939, 0.017377102747559547, 0.006886639632284641, 0.05267758667469025, -0.024302618578076363, 0.016906369477510452, -0.021624356508255005, -0.020647745579481125, 0.026287129148840904, 0.019306302070617676, 0.03591541200876236, 0.0007409973186440766, 0.07525849342346191, 0.038390759378671646, -0.05555407330393791, -0.03623813018202782, -0.02151358313858509, 0.02805556356906891, 0.006540852598845959, -0.044906243681907654, -0.0189108457416296, -0.024386275559663773, -0.05057185888290405, -0.0092961760237813, 0.03425629809498787, -0.017572032287716866, -0.016903264448046684, 0.010063506662845612, 0.030068963766098022, -0.05204754322767258, 0.02302483282983303, -0.04181266948580742, 0.044511884450912476, -0.02325761690735817, -0.03324694186449051, 0.011364925652742386, 0.020899007096886635, 0.014825422316789627, 0.008592907339334488, 0.013786016032099724, -0.07108224183320999, -0.02578677050769329, 0.012550379149615765, 0.02995227836072445, 0.04028940945863724, -0.009734655730426311, -0.0064902957528829575 ]
[ -0.11506924778223038, 0.010785589925944805, -0.04484110325574875, -0.024553213268518448, 0.04432624951004982, -0.01145081501454115, -0.010027140378952026, 0.03563437983393669, -0.008424216881394386, 0.010925328359007835, -0.024524733424186707, -0.03014765866100788, -0.01863616518676281, -0.008969571441411972, 0.06285019963979721, -0.015300499275326729, -0.004271679557859898, -0.05572999268770218, -0.025637704879045486, 0.05524377524852753, 0.025550207123160362, -0.013942399062216282, -0.03041432984173298, 0.0030892135109752417, 0.02263413742184639, 0.02797050215303898, 0.03847382962703705, -0.006346710491925478, -0.0053652930073440075, -0.19258254766464233, -0.0035542782861739397, 0.009062876924872398, 0.003816329874098301, -0.02951286919414997, -0.02556740865111351, 0.05625011771917343, 0.0376824252307415, 0.00005474113277159631, -0.0009379047551192343, 0.037539705634117126, 0.012253809720277786, 0.02520105615258217, -0.04593876749277115, -0.01236884854733944, 0.026436639949679375, 0.0042108497582376, -0.00955912284553051, -0.037565942853689194, -0.02572757750749588, 0.0034354333765804768, -0.05539339408278465, -0.007836033590137959, -0.0236272681504488, -0.03210502862930298, -0.02197796106338501, 0.00403933972120285, 0.04382257163524628, 0.0659688413143158, -0.01442906353622675, 0.015354408882558346, 0.007995689287781715, -0.03227107599377632, -0.09790530800819397, 0.09367617219686508, -0.014077271334826946, 0.04433467239141464, -0.006991478148847818, 0.0016931220889091492, 0.028794363141059875, 0.08480645716190338, -0.00492944335564971, 0.0004809933598153293, -0.028310850262641907, 0.05396072193980217, -0.01517326571047306, -0.0018064939649775624, -0.0054506538435816765, 0.01926250196993351, 0.06648090481758118, -0.051182325929403305, -0.09098687767982483, -0.042614586651325226, 0.04716288298368454, -0.017404824495315552, 0.00021833226492162794, 0.04174197092652321, 0.0028558240737766027, -0.0035544035490602255, 0.06477639079093933, 0.03264172002673149, 0.03817179054021835, 0.004816263448446989, 0.038524240255355835, 0.02428039349615574, -0.06856820732355118, 0.014136950485408306, -0.03370165452361107, -0.022793874144554138, -0.03920657932758331, 0.4308985471725464, -0.02416899986565113, -0.00691487081348896, 0.06645404547452927, 0.019642556086182594, -0.038873959332704544, -0.02277415059506893, -0.02173067443072796, -0.08274479955434799, 0.021966611966490746, -0.03566226363182068, -0.002438642317429185, -0.0125998230651021, 0.0365886464715004, -0.054938044399023056, -0.02468133717775345, 0.016567295417189598, 0.06213615834712982, 0.014290962368249893, -0.011347738094627857, 0.0008949163602665067, -0.01379055343568325, 0.008335751481354237, 0.02231593243777752, 0.003978427965193987, 0.012389891780912876, -0.035313766449689865, 0.0054776971228420734, 0.003355397144332528, 0.020668158307671547, 0.00459224171936512, 0.024395320564508438, -0.027215158566832542, -0.10291871428489685, -0.006826379336416721, 0.00501228217035532, 0.022527068853378296, 0.01636405847966671, -0.04293425381183624, 0.019110366702079773, 0.0270931925624609, -0.012481939047574997, -0.027221206575632095, 0.02638879045844078, -0.03373328223824501, -0.06539404392242432, 0.07368658483028412, 0.013736356981098652, 0.011343742720782757, -0.00031736886012367904, -0.0070504131726920605, 0.015398332849144936, 0.058132290840148926, -0.032784685492515564, -0.08941443264484406, 0.032621752470731735, -0.008380142971873283, 0.03849785029888153, 0.02398284524679184, -0.04310063272714615, -0.03994186595082283, -0.029486192390322685, 0.008152310736477375, -0.062338005751371384, 0.022820547223091125, -0.012814804911613464, -0.08034763485193253, -0.02784934639930725, 0.017487511038780212, -0.0013019926846027374, -0.055078551173210144, 0.008796121925115585, 0.03197325021028519, -0.007978340610861778, -0.016062166541814804, 0.05726800113916397, -0.020854821428656578, -0.04174908623099327, 0.021228255704045296, 0.01847432181239128, 0.012930160388350487, 0.02818908356130123, 0.03719164803624153, -0.06544436514377594, -0.0029288551304489374, 0.006611923687160015, -0.09769099950790405, -0.06044648587703705, 0.003497061086818576, -0.006819643545895815, -0.00866960920393467, -0.0428694523870945, -0.045542292296886444, -0.056438248604536057, 0.11030805855989456, 0.004035106394439936, -0.02935035340487957, 0.019863702356815338, 0.02540740743279457, 0.018071100115776062, -0.031115515157580376, -0.012414205819368362, 0.07769667357206345, 0.003976824227720499, 0.049539074301719666, -0.06434321403503418, 0.04319099336862564, 0.08045288175344467, -0.05056796967983246, 0.0905165895819664, 0.027305832132697105, -0.06970386207103729, -0.011550226248800755, -0.026914693415164948, 0.038971878588199615, -0.030438754707574844, 0.009067278355360031, 0.01451029535382986, -0.0005683815688826144, 0.034760985523462296, 0.016288138926029205, -0.016405485570430756, -0.031032688915729523, 0.0013341300655156374, -0.3305055797100067, -0.030640859156847, -0.011601321399211884, -0.013876338489353657, 0.005319690797477961, -0.04092152789235115, 0.037805862724781036, -0.00808010809123516, -0.026071982458233833, -0.041247278451919556, 0.06319915503263474, -0.03360247611999512, -0.018636126071214676, -0.0785309448838234, 0.02586459182202816, 0.00806391891092062, -0.04704153537750244, -0.06550413370132446, -0.05991530418395996, 0.0007211092161014676, 0.006639179773628712, -0.03941603749990463, 0.023720189929008484, -0.03937079384922981, 0.05175649747252464, -0.038278304040431976, 0.05663242191076279, -0.031087888404726982, 0.09031689167022705, -0.014407265931367874, 0.06258276104927063, -0.0038177408277988434, 0.010182525962591171, -0.07226702570915222, 0.0020295148715376854, -0.012811310589313507, -0.047441329807043076, -0.028922220692038536, 0.028492845594882965, -0.024905415251851082, -0.06956698000431061, 0.02962770126760006, -0.08590120077133179, -0.05950334295630455, -0.02744753286242485, 0.02714693360030651, 0.00018499756697565317, -0.01047241035848856, -0.005330535117536783, 0.049999210983514786, -0.0047844285145401955, 0.008710776455700397, 0.019717557355761528, 0.014426124282181263, -0.01116468757390976, -0.02057996392250061, -0.08533161133527756, -0.02957167476415634, -0.002520735841244459, 0.030876722186803818, 0.040259089320898056, 0.09641344845294952, 0.03259918466210365, -0.03775963932275772, -0.01562654785811901, -0.02834789827466011, -0.018579410389065742, -0.0029766159132122993, 0.05139423534274101, -0.043025899678468704, -0.03176043927669525, 0.11423370242118835, -0.0272662416100502, 0.00359917338937521, 0.06538175791501999, 0.0683838278055191, 0.0018033611122518778, -0.019453933462500572, 0.02823713794350624, 0.01718777045607567, -0.007540071848779917, -0.0013559774961322546, 0.016992149874567986, -0.00253369752317667, 0.006920431274920702, 0.0791916474699974, -0.023146923631429672, -0.016301266849040985, 0.04324166476726532, -0.020437035709619522, -0.051245760172605515, 0.008183719590306282, -0.0016481513157486916, -0.018802832812070847, 0.08380112797021866, 0.009036760777235031, -0.22324825823307037, 0.011661075055599213, 0.05807984247803688, 0.09483557194471359, -0.007103536743670702, 0.03569687530398369, 0.006932300515472889, -0.07141485065221786, 0.0006518387817777693, 0.01257904339581728, 0.08957402408123016, 0.018349850550293922, 0.03804183378815651, 0.005599093157798052, 0.062172774225473404, 0.017544910311698914, 0.047213610261678696, -0.008807682432234287, 0.04097801819443703, -0.0433996245265007, 0.001222287188284099, -0.03226810693740845, 0.16853933036327362, 0.00227703177370131, 0.024124281480908394, 0.017839495092630386, 0.057174716144800186, 0.03149094805121422, 0.04943596199154854, 0.01530861109495163, 0.045742232352495193, 0.004059172701090574, 0.06293368339538574, -0.0040680659003555775, 0.024506451562047005, -0.08914138376712799, -0.021746601909399033, 0.005561769008636475, 0.028727645054459572, -0.022889092564582825, 0.03229936584830284, 0.016546620056033134, -0.055181678384542465, 0.0022846523206681013, 0.08260280638933182, 0.0169000793248415, -0.03825269266963005, -0.018527651205658913, -0.06553683429956436, 0.0071052685379981995, -0.007633494678884745, -0.0554284006357193, -0.009506345726549625, -0.0061074839904904366, -0.0004632535274140537, 0.03917083144187927, 0.04164716973900795, -0.02715238183736801, -0.05589849501848221, 0.04076632112264633, 0.046725012362003326, 0.027026021853089333, 0.08803790807723999, 0.05485304072499275, 0.03127463907003403 ]
[ -0.014329393394291401, 0.014333854429423809, -0.016774706542491913, 0.029460400342941284, 0.008809654042124748, 0.008446915075182915, 0.008777973242104053, 0.01522173173725605, -0.016763877123594284, -0.009627863764762878, -0.04564093425869942, 0.00904927309602499, 0.006139084231108427, -0.02524515613913536, 0.04676543548703194, -0.0021329002920538187, -0.000023261334717972204, 0.018934326246380806, 0.02391018345952034, 0.015937259420752525, 0.010410664603114128, 0.007715966086834669, 0.014443798922002316, -0.0017310025868937373, -0.01596023514866829, -0.023959197103977203, -0.005445566028356552, -0.0006981989135965705, 0.0015856710961088538, -0.1361851543188095, -0.014903666451573372, -0.013109895400702953, 0.0010375967249274254, -0.0042047277092933655, -0.007148299366235733, 0.020006928592920303, 0.02606824040412903, 0.0017517186934128404, -0.00037210973096080124, 0.010334265418350697, -0.001401862595230341, -0.004245256073772907, 0.013271383941173553, 0.05200615152716637, -0.026568621397018433, -0.002812112681567669, -0.0017173322848975658, -0.03051854483783245, -0.03754102438688278, -0.019558409228920937, -0.03795044124126434, -0.013633567839860916, 0.0032068383879959583, 0.004633214324712753, 0.012000098824501038, -0.016629917547106743, -0.004119680263102055, -0.03074130043387413, 0.009647108614444733, 0.004181711468845606, -0.021965209394693375, 0.02662770077586174, -0.012495129369199276, -0.02164393663406372, -0.002013696124777198, -0.0206412635743618, 0.03154913708567619, 0.00629626726731658, 0.005890224128961563, -0.010987810790538788, -0.030507011339068413, 0.02141794003546238, 0.004594063386321068, -0.023899944499135017, 0.021243877708911896, 0.021434789523482323, 0.0017779204063117504, 0.021503763273358345, 0.04955514147877693, 0.0025572716258466244, -0.03459298983216286, 0.03323483467102051, 0.01025618426501751, 0.01130108255892992, -0.01729128323495388, 0.021916324272751808, 0.02650986611843109, -0.029293641448020935, 0.012119727209210396, 0.009858244098722935, -0.0024248480331152678, 0.04231893643736839, 0.011942622251808643, 0.03523441031575203, -0.1063360944390297, -0.012892224825918674, 0.025909341871738434, -0.021285613998770714, 0.003207677509635687, 0.8594810962677002, -0.001935788313858211, 0.031710900366306305, 0.05026685446500778, 0.04023350402712822, -0.006562181748449802, -0.0270498339086771, -0.009187497198581696, -0.015041874721646309, 0.02647092007100582, -0.004659732338041067, 0.02355358749628067, -0.0011384579120203853, 0.03864327073097229, 0.014552968554198742, 0.016388246789574623, -0.009205817244946957, 0.010233256034553051, -0.00813583005219698, 0.006436062976717949, -0.013418626971542835, 0.016223642975091934, -0.02577841840684414, 0.02984628453850746, -0.006157863885164261, 0.004747908562421799, -0.13473014533519745, -0.02325487695634365, -9.487515557190472e-33, 0.06084100529551506, -0.0016433034325018525, 0.0422232411801815, 0.03300417959690094, -0.01048905961215496, 0.0017787398537620902, 0.02752385288476944, 0.036793872714042664, 0.017965279519557953, -0.023958459496498108, -0.027310950681567192, -0.020849531516432762, -0.007395065389573574, -0.025548147037625313, 0.016407698392868042, 0.013406204991042614, -0.04183092713356018, 0.020876670256257057, -0.008455747738480568, 0.06317757070064545, -0.00786315556615591, 0.0443163737654686, -0.007994360290467739, -0.008593504317104816, 0.007390545681118965, 0.024755969643592834, 0.014917226508259773, -0.020384302362799644, -0.020724672824144363, -0.027387158945202827, 0.005509492009878159, -0.016818026080727577, -0.021088816225528717, -0.010673895478248596, 0.010733251459896564, -0.05894239619374275, -0.010948896408081055, 0.009118148125708103, -0.03011222928762436, -0.059231922030448914, -0.057014428079128265, -0.02440606988966465, -0.021652933210134506, 0.013387814164161682, 0.01101917028427124, -0.0200960710644722, 0.00718025304377079, 0.036274004727602005, 0.01017927285283804, 0.007367393001914024, -0.005996606778353453, 0.017754077911376953, 0.008547039702534676, -0.0282199177891016, -0.032032109797000885, 0.01597151719033718, 0.016687437891960144, 0.04004247486591339, 0.021874677389860153, 0.02731563337147236, 0.0010114475153386593, -0.006230268627405167, -0.024929920211434364, -0.0009635558817535639, -0.01308672595769167, -0.02217595838010311, -0.007010829634964466, -0.03248476982116699, 0.03208603709936142, 0.017835522070527077, -0.01056510116904974, -0.022709935903549194, -0.016897520050406456, 0.018389027565717697, -0.009441201575100422, -0.01572185382246971, 0.04873107001185417, 0.03974823281168938, 0.003564189886674285, 0.014614859595894814, 0.0869729295372963, -0.03154652193188667, 0.03199141472578049, -0.04254739359021187, 0.01540669146925211, -0.04370887950062752, 0.019246798008680344, -0.024273548275232315, -0.0010770342778414488, 0.029722535982728004, 0.037695594131946564, 0.010127210058271885, 0.020349496975541115, -0.025173768401145935, -0.01673095114529133, 9.838100135167496e-33, 0.00021636567544192076, -0.020122921094298363, -0.03794638812541962, -0.0041914694011211395, 0.014093585312366486, -0.008719873614609241, -0.001404591603204608, -0.00008940196130424738, -0.08015332370996475, 0.023951668292284012, 0.009769352152943611, -0.030361508950591087, -0.01769651658833027, 0.028705211356282234, 0.022358544170856476, -0.029739420861005783, 0.027995530515909195, -0.06225275993347168, 0.01634567230939865, 0.03322622552514076, 0.008548596873879433, 0.01595836505293846, 0.040200889110565186, -0.0017875917255878448, 0.006796662230044603, 0.04310936480760574, -0.03187282383441925, 0.017026057466864586, 0.005412164609879255, -0.01147526130080223, 0.032068707048892975, -0.003280085511505604, 0.02270158752799034, -0.007359727285802364, -0.03438367322087288, -0.009563849307596684, -0.009476960636675358, -0.02584659680724144, 0.021291367709636688, -0.024459250271320343, -0.006280677393078804, -0.04455552250146866, 0.008157176896929741, -0.021107874810695648, 0.007861108519136906, 0.030785124748945236, -0.03217215836048126, -0.0017897499492391944, -0.003049796912819147, 0.012239442206919193, -0.008001361042261124, 0.024603797122836113, 0.010826445184648037, -0.005020353477448225, 0.01405392587184906, -0.030052965506911278, -0.025699634104967117, -0.010152488015592098, 0.002145271748304367, 0.04731396958231926, -0.017915943637490273, 0.007723923772573471, -0.025743793696165085, 0.00018375171930529177, -0.030560987070202827, 0.008996903896331787, 0.013784230686724186, -0.014233763329684734, -0.023700512945652008, -0.016079850494861603, -0.011127933859825134, -0.005031093955039978, 0.01836991123855114, 0.022984737530350685, 0.041568074375391006, -0.023877492174506187, -0.01917680911719799, -0.02166716381907463, -0.026764094829559326, 0.0006042249733582139, -0.012369438074529171, -0.04945198819041252, 0.02257118932902813, -0.01986120641231537, -0.01459482405334711, 0.001293256995268166, 0.025352584198117256, 0.016212619841098785, -0.026111340150237083, 0.0043130433186888695, 0.0039064157754182816, 0.001179543323814869, -0.002226306824013591, 0.005758809391409159, 0.011766454204916954, -1.4568006356796559e-8, 0.02417140267789364, 0.012442966923117638, -0.006906242109835148, -0.012681601569056511, -0.0014452566392719746, 0.009486821480095387, -0.01087503507733345, -0.020830994471907616, -0.017443237826228142, 0.03416305035352707, 0.042487192898988724, 0.005443962290883064, 0.012470020912587643, 0.011010746471583843, 0.04191187769174576, -0.06465719640254974, -0.039178598672151566, -0.007399460766464472, 0.018403643742203712, 0.028735492378473282, 0.015841839835047722, 0.03874901309609413, -0.002118789590895176, 0.017395026981830597, 0.02347557432949543, 0.01584242843091488, 0.010924381203949451, -0.07536081224679947, 0.04236145317554474, -0.0002614386030472815, -0.013816945254802704, -0.03654572367668152, -0.025439495220780373, 0.025693101808428764, -0.033180952072143555, 0.014482097700238228, 0.024197181686758995, 0.008987942710518837, -0.017231129109859467, 0.00417206110432744, -0.021719692274928093, -0.014483879320323467, -0.019794050604104996, -0.015864958986639977, 0.006470442749559879, -0.0006350080366246402, -0.028945475816726685, 0.01156260073184967, 0.002126336796209216, -0.012516957707703114, 0.0002375392650719732, -0.007193185854703188, 0.008216728456318378, -0.006908079143613577, -0.025184087455272675, 0.018278902396559715, 0.011834646575152874, 0.008939847350120544, -0.049059540033340454, -0.001385315554216504, 0.03212197124958038, -0.012997820973396301, -0.009143291041254997, -0.00843666773289442 ]
tdd-only-mock-types-you-own
https://markhneedham.com/blog/2009/12/13/tdd-only-mock-types-you-own
false
2009-12-22 06:01:04
One change at a time
[ "software-development" ]
[ "Software Development" ]
I'm reading through Paul Butcher's 'http://www.amazon.com/gp/product/193435628X?ie=UTF8&tag=marneesblo-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=193435628X[Debug It]' book and one of his suggestions when trying to diagnose a problem in our code is to *only change one thing at a time*. In a way this might seem fairly obvious but I've certainly fallen into the trap of making multiple changes at the same time in the misled belief that it'll lead to the problem being solved more quickly. When making changes to code Butcher has the following piece of advice which I quite like: ____ Once you see a change in behavior, undo whatever apparently caused it, and verify that the behavior retur ns to what it was before-hand. This is a very power ful indication that you're looking at cause and effect rather than serendipity. ____ I noticed this while debugging my http://www.markhneedham.com/blog/2009/12/18/f-word-count-a-somewhat-failed-attempt/[F# word count application]. As I mentioned, http://www.markhneedham.com/blog/2009/12/20/f-word-count-using-a-dictionary/[I thought that the problem was that I was storing the text from all the files in memory] so instead of doing that I made that part of the application lazy so that the text would only be loaded when required. When I first did this the program still didn't work but it failed later on than it had previously. I thought that had shown where the problem was so I put the code back to how it was previously to check. To my surprise it still failed in the same place which meant that the change in how it executed had been coincidental rather than related to any code change I'd made. I think this idea is more widely applicable though as I've noticed that http://www.markhneedham.com/blog/2009/02/08/refactoring-comment-it-out-vs-small-steps-removal/[it works quite well when refactoring] as well. If we can be really certain about which changes work and which don't to a very fine grained level then we have more chance of successfully refactoring our code while ensuring that it still functions correctly. The goal seems to be the same in both of these situations - take small steps and then get feedback quickly on how successful that small step was.
null
null
[ 0.008841986767947674, 0.0036292735021561384, -0.023614007979631424, 0.019578874111175537, 0.08413653820753098, 0.025225413963198662, 0.03377097100019455, 0.048335880041122437, 0.013625770807266235, -0.026922836899757385, -0.0012023468734696507, 0.013745734468102455, -0.059253573417663574, 0.0010433674324303865, -0.011622162535786629, 0.0807524174451828, 0.07361099869012833, 0.0002763984084594995, 0.03410983830690384, 0.002829991513863206, 0.03610694408416748, 0.07492456585168839, -0.0011975029483437538, 0.029623838141560555, 0.0026516648940742016, 0.009569848887622356, 0.0005826645065099001, -0.03113503009080887, -0.08516639471054077, 0.007837848737835884, 0.05345398560166359, 0.015667391940951347, 0.025701384991407394, -0.01643558032810688, 0.048518046736717224, -0.013012190349400043, -0.02944251149892807, 0.02205241657793522, 0.001650866586714983, 0.025363363325595856, -0.07503821700811386, 0.026994502171874046, -0.01701338402926922, -0.007399880792945623, -0.04673713818192482, 0.00035375633160583675, -0.036828603595495224, 0.0021855526138097048, -0.006894288118928671, -0.01806308701634407, -0.07543696463108063, 0.03391879424452782, 0.01759144850075245, -0.014957398176193237, -0.014089277945458889, 0.08665132522583008, 0.003571069333702326, -0.03894743695855141, 0.011105882935225964, -0.02977534383535385, 0.007593154441565275, -0.006367016583681107, -0.012919826433062553, 0.04310028254985809, 0.005077914334833622, -0.028524482622742653, -0.007383259013295174, 0.06096416339278221, -0.02731846645474434, -0.0017489484744146466, -0.00965780857950449, 0.02671639621257782, -0.023083187639713287, -0.0018285074038431048, 0.006898726336658001, -0.03472389280796051, 0.010850365273654461, 0.06155167147517204, 0.022499118000268936, 0.05345212295651436, -0.019508128985762596, 0.024766813963651657, 0.030715379863977432, 0.014649986289441586, 0.0009469011565670371, -0.036654066294431686, -0.017417635768651962, -0.030306590721011162, -0.046064019203186035, 0.03251102194190025, 0.017961502075195312, -0.08109241724014282, 0.020486773923039436, 0.04235732927918434, -0.025825519114732742, 0.018039997667074203, -0.00021659860794898123, 0.013042325153946877, 0.0030268095433712006, -0.01764429360628128, -0.036118607968091965, -0.019995858892798424, 0.028777381405234337, 0.011123521253466606, -0.0830281674861908, -0.00566614605486393, -0.014180784113705158, -0.007922187447547913, 0.014623714610934258, -0.0035688229836523533, -0.019360102713108063, 0.02004687488079071, -0.045777663588523865, -0.009840322658419609, -0.09669618308544159, 0.05884022265672684, -0.010759115219116211, -0.009090866893529892, 0.0018169659888371825, 0.0070919436402618885, 0.048088375478982925, 0.017835931852459908, 0.01744653843343258, 0.09649945795536041, 0.0069524506106972694, 0.01204708032310009, -0.001471561612561345, 0.05045723542571068, -0.0354713499546051, -0.07102043181657791, -0.011037234216928482, 0.06232553720474243, -0.03256301209330559, -0.02533170022070408, 0.005210749804973602, 0.0012789795873686671, -0.023977801203727722, 0.0015456799883395433, 0.02388855628669262, 0.045902132987976074, 0.004354802425950766, -0.017261266708374023, -0.009979763999581337, 0.016770014539361, 0.02532123029232025, 0.023702528327703476, -0.008833799511194229, -0.00818043202161789, -0.03272541984915733, 0.003985546063631773, 0.034809309989213943, 0.04959546774625778, 0.04466545954346657, -0.039816681295633316, 0.024196336045861244, 0.07922210544347763, 0.013496714644134045, 0.017221977934241295, -0.031095203012228012, 0.027012545615434647, 0.05600729212164879, 0.04256603494286537, 0.004089558497071266, 0.03930763155221939, 0.0202214065939188, -0.01979222521185875, -0.0029867684934288263, 0.054939478635787964, -0.024959895759820938, 0.004161064513027668, -0.06052015349268913, -0.03490882366895676, 0.07652010023593903, -0.055735595524311066, -0.019491111859679222, 0.05329659581184387, 0.06921900808811188, 0.02502293512225151, 0.03726474940776825, -0.0007073624874465168, -0.07574044913053513, 0.02934986725449562, 0.0014405758120119572, 0.03240080922842026, 0.001014999346807599, -0.001401876681484282, 0.07003455609083176, 0.04419970512390137, 0.02034493163228035, 0.021703477948904037, -0.07869111746549606, -0.0926336795091629, -0.007827689871191978, -0.02351159043610096, 0.07651587575674057, -0.01471313089132309, 0.001202224288135767, 0.06762396544218063, 0.02080070786178112, 0.05137135460972786, 0.020106030628085136, -0.006737471092492342, 0.0011416221968829632, -0.0406428687274456, -0.058796435594558716, 0.038710545748472214, 0.03816693648695946, -0.0019660675898194313, -0.05492379143834114, 0.016752734780311584, -0.02327807992696762, 0.01513422466814518, 0.039300329983234406, -0.010740418918430805, 0.035639144480228424, 0.023960871621966362, 0.05089349299669266, -0.03082212619483471, 0.04999912902712822, -0.07467350363731384, -0.010607460513710976, 0.004027696792036295, -0.028874272480607033, -0.005848814267665148, 0.0007972203893586993, 0.12254872173070908, 0.05935439094901085, -0.053000692278146744, -0.042157355695962906, -0.006430492736399174, 0.008466104045510292, -0.03371666371822357, -0.004185590893030167, -0.012925943359732628, -0.012344801798462868, -0.007846581749618053, -0.05594436079263687, -0.01150901336222887, 0.019583353772759438, -0.0359293669462204, 0.01010992843657732, 0.060888223350048065, -0.026787158101797104, 0.04784972220659256, 0.001082621980458498, -0.006521132774651051, -0.004804752767086029, 0.0013299525016918778, -0.0405362993478775, 0.01996619440615177, 0.02121550962328911, -0.003069913713261485, 0.06340835988521576, -0.042601991444826126, -0.03327444568276405, -0.01908218115568161, -0.0348343588411808, -0.01003329548984766, 0.04851321876049042, 0.045386817306280136, 9.307224502208555e-8, 0.06077050790190697, 0.0010055352468043566, 0.0011211857199668884, -0.0014849253930151463, -0.05196380615234375, -0.033865589648485184, -0.017968345433473587, -0.011801913380622864, 0.03633442521095276, 0.005856574513018131, 0.026928381994366646, -0.005502886604517698, -0.0013329883804544806, 0.012259149923920631, -0.012677136808633804, 0.05773869529366493, 0.005726368632167578, -0.029236411675810814, -0.005908328574150801, -0.042876601219177246, 0.03785165399312973, -0.059801895171403885, -0.03798575699329376, 0.00675011333078146, -0.05399512127041817, 0.05491754040122032, -0.06318334490060806, -0.06294605880975723, 0.023387547582387924, -0.0011292637791484594, 0.03744890168309212, -0.0081035066395998, 0.010607903823256493, 0.07093728333711624, -0.01287846639752388, -0.009473533369600773, 0.0008659724844619632, 0.014336040243506432, 0.04244871437549591, 0.04930763691663742, 0.0014056225772947073, 0.02945142798125744, 0.004540713503956795, -0.03562918305397034, -0.03934156149625778, 0.0030882833525538445, -0.02266012504696846, -0.2884383797645569, 0.05906682834029198, -0.0010574995540082455, -0.057075366377830505, 0.02725973166525364, -0.0064875222742557526, 0.02204403653740883, -0.05047754943370819, -0.020137323066592216, 0.023804912343621254, -0.022564927116036415, -0.07164756953716278, -0.018894106149673462, 0.06365272402763367, 0.006443475838750601, 0.005349764600396156, 0.008065437898039818, -0.03108832985162735, -0.01889561489224434, 0.046084996312856674, 0.01508158165961504, -0.05653814598917961, -0.01287069171667099, 0.02777830883860588, 0.027805084362626076, 0.04849632829427719, -0.0981520414352417, 0.05481165274977684, -0.05148971453309059, -0.012457216158509254, -0.004180810414254665, 0.0070853759534657, -0.0015408473554998636, -0.015845488756895065, -0.02720814384520054, -0.018393266946077347, 0.02557123824954033, 0.006662184372544289, -0.02493189461529255, 0.012960818596184254, -0.017347702756524086, -0.03322561830282211, 0.0073994421400129795, 0.001977162202820182, 0.07337674498558044, 0.01969362609088421, -0.07287709414958954, -0.009766541421413422, -0.02424260787665844, 0.06147248297929764, -0.028431210666894913, -0.05031115189194679, -0.018998892977833748, 0.0519840344786644, 0.013139712624251842, -0.011502591893076897, 0.013862635008990765, -0.019467992708086967, -0.020597396418452263, -0.04641009494662285, -0.0008486911538057029, -0.041748709976673126, -0.001700233668088913, -0.033339377492666245, 0.007823916152119637, -0.0665135607123375, -0.06539466977119446, -0.02043941244482994, 0.07888871431350708, 0.032684218138456345, -0.04716766998171806, 0.028866969048976898, 0.00982630904763937, -0.10260067135095596, -0.005282179918140173, -0.015069135464727879, -0.027268879115581512, 0.0066257258877158165, -0.00026099375099875033, 0.044043682515621185, -0.039255838841199875, -0.04837550222873688, 0.013654952868819237, 0.009177221916615963, 0.022732190787792206, -0.03000170923769474, 0.03276066482067108, 0.01962367631494999, -0.03671462461352348, 0.003659366862848401, 0.0824793204665184, 0.000708891951944679, -0.02701779641211033, -0.03016561269760132, 0.023876074701547623, 0.00863863155245781, 0.02688041888177395, -0.010342670604586601, 0.011974701657891273, 0.030154332518577576, 0.0240059532225132, -0.06758014857769012, 0.034998055547475815, -0.05928804725408554, -0.0121380053460598, 0.002631823066622019, -0.04945984110236168, -0.00041115449857898057, 0.02833123877644539, 0.0153922438621521, -0.023769816383719444, -0.029824377968907356, 0.020750265568494797, -0.035763803869485855, -0.02702265791594982, 0.0017536039231345057, 0.029109863564372063, 0.021620236337184906, -0.023162072524428368, -0.02915789745748043, -0.047826752066612244, 0.03230852261185646, -0.018490027636289597, 0.00007009155524428934, -0.06489227712154388, -0.04650581255555153, -0.011192542500793934, -0.008891968987882137, 0.019220829010009766, 0.03623083606362343, -0.020277362316846848, 0.019967766478657722, 0.0019205332500860095, -0.04594315215945244, 0.026350058615207672, -0.0004626063455361873, -0.031822409480810165, -0.019599631428718567, -0.020310543477535248, 0.00866854190826416, -0.011938177049160004, 0.01735626719892025, 0.025620626285672188, -0.00036911421921104193, 0.05130801349878311, 0.004104383289813995, 0.051005810499191284, -0.018800297752022743, 0.0079346289858222, 0.0098545728251338, -0.0029251468367874622, -0.06708673387765884, 0.021821772679686546, -0.05196453630924225, -0.028881467878818512, -0.01638130284845829, 0.040982797741889954, -0.015399917960166931, -0.023881370201706886, -0.016121262684464455, 0.006799130700528622, -0.04793350026011467, -0.024138042703270912, -0.018521983176469803, 0.006741112098097801, 0.04188346490263939, -0.01774287037551403, 0.03257012739777565, -0.002558530308306217, -0.012421751394867897, -0.002744867466390133, 0.014200926758348942, -0.05394845828413963, 0.013984771445393562, 0.016192924231290817, -0.008775642141699791, 0.002042394829913974, -0.00583080155774951, 0.026973165571689606, 0.00872904621064663, 0.003989992663264275, -0.03351696953177452, 0.003919682931154966, 0.01970086805522442, 0.05800868198275566, -0.009305735118687153, -0.014129922725260258, -0.011639902368187904, -0.040225353091955185, -0.03400527685880661, -0.04135095328092575, -0.012749413028359413, 0.0017981389537453651, 0.022467678412795067, -0.03259335458278656, -0.07063066959381104, 0.0224147979170084, 0.024532785639166832, 0.026481691747903824, 0.012045658193528652, -0.018867218866944313, 0.01342067588120699, -0.016112711280584335, 0.0287197083234787, 0.06892940402030945, -0.05191107094287872, 0.00030104361940175295, -0.02232639119029045, 0.0031316152308136225, 0.015219184570014477, 0.001660113804973662, -0.05013323947787285, -0.0383395180106163, -0.031238149851560593, 0.015778109431266785, -0.050987470895051956, -0.028706232085824013, -0.030972857028245926, 0.02358681708574295, -0.012154638767242432, -0.02501504495739937, -0.02031472697854042, 0.019954338669776917, -0.008686657063663006, -0.026913153007626534, 0.015135988593101501, -0.029590504243969917, -0.00034365893225185573, 0.04390832781791687, -0.026134323328733444, 0.03471171855926514, -0.018252583220601082, 0.04746869206428528, 0.037495166063308716, -0.0019430095562711358, -0.03406701982021332, -0.04610275477170944, -0.004290446173399687, -0.015359204262495041, 0.029992977157235146, -0.01659110188484192, -0.02373630739748478, -0.04037408530712128, 0.005444490350782871, -0.02641994319856167, 0.022888295352458954, -0.03628043085336685, -0.0449034757912159, 0.016080714762210846, 0.0711931362748146, 0.005949086509644985, 0.04374273866415024, -0.00532514089718461, -0.008414744399487972, 0.0543789304792881, -0.04283342510461807, -0.012733017094433308, -0.01820090040564537, -0.056616395711898804, 0.020391300320625305, 0.008925528265535831, 0.01401840802282095, -0.04372166469693184, 0.04748351871967316, 0.020027225837111473, 0.034257449209690094, 0.042226392775774, -0.008266224525868893, 0.032135844230651855, -0.03848101571202278, 0.005922448355704546, -0.09739428758621216, 0.013157947920262814, 0.035028379410505295, 0.01012406311929226, 0.004852419253438711, -0.027315653860569, -0.034569114446640015, 0.022317344322800636, -0.0744539424777031, -0.009049135260283947, 0.035497359931468964, 0.0023032608442008495, 0.0018489137291908264, 0.034005239605903625, -0.04742526635527611, 0.009603234939277172, 0.018014956265687943, -0.04828689992427826, -0.038817599415779114, -0.03846161440014839, 0.06470790505409241, 0.016279863193631172, 0.012092615477740765, -0.027395494282245636, -0.02435389719903469, 0.05529261752963066, 0.022507421672344208, 0.027731796726584435, 0.03680902719497681, -0.020425736904144287, 0.02915252186357975, 0.05325670912861824, 0.00343703618273139, -0.02033274993300438, 0.024409927427768707, -0.013115105219185352, -0.06172853335738182, 0.003983320202678442, 0.0066859242506325245, -0.012367337942123413, -0.03794064000248909, 0.0732351616024971, 0.019929315894842148, -0.021093329414725304, -0.05340944603085518, 0.009992169216275215, -0.05979505181312561, -0.02051795832812786, -0.0179032851010561, -0.0034592419397085905, -0.040509071201086044, 0.0665154978632927, 0.005172790959477425, -0.018731294199824333, 0.0636352002620697, -0.02176564559340477, 0.0050905183888971806, -0.010545298457145691, 0.08067665249109268, 0.06551696360111237, 0.05342846363782883, 0.013422219082713127, 0.06731661409139633, -0.027440765872597694, -0.028233040124177933, 0.010863808915019035, -0.013186555355787277, -0.03051096759736538, -0.027866557240486145, 0.01296101976186037, 0.06529270112514496, -0.01881757378578186, 0.06982404738664627, -0.035078682005405426, -0.0005707044037990272, 0.006443839520215988, 0.0248993132263422, 0.00721710966899991, 0.0844830721616745, 0.0068290578201413155, 0.005738803651183844, -0.008996045216917992, -0.029645439237356186, 0.0364263691008091, -0.03306395187973976, -0.004090836271643639, 0.01611315831542015, -0.004162964876741171, 0.017085598781704903, 0.01152487751096487, 0.028242578729987144, 0.07732357829809189, -0.022510675713419914, 0.010925828479230404, 0.0017850809963420033, 0.03953496366739273, 0.0048648640513420105, 0.013532949611544609, -0.02469639666378498, -0.016716673970222473, 0.013515950180590153, -0.018516182899475098, -0.023710742592811584, -0.030144808813929558, -0.02247544936835766, 0.03848504647612572, -0.02458331361413002, 0.007476821541786194, 0.02941654436290264, 0.006117101758718491, -0.03634973615407944, -0.045933797955513, -0.04588447883725166, -0.0451614148914814, -0.05444759130477905, -0.0061083827167749405, 0.013338991440832615, 0.00028760379063896835, -0.028048845008015633, -0.009663578122854233, -0.03052452765405178, -0.028637554496526718, 0.03639601543545723, -0.057712867856025696, -0.03719198703765869, 0.009361711330711842, 0.014302211813628674, 0.022483859211206436, 0.02458122745156288, 0.04055991768836975, -0.0028892089612782, -0.01655665412545204, -0.003994460683315992, 0.007519023027271032, 0.02648647502064705, 0.02388015203177929, 0.009614860638976097, -0.09265132993459702, 0.03452976420521736, -0.000842769630253315, 0.005685828160494566, -0.07693382352590561, 0.019224127754569054, 0.010275733657181263, -0.020130282267928123, 0.04742400720715523, -0.022206077352166176, -0.002186644123867154, -0.041660018265247345, 0.0027017472311854362, -0.007612256333231926, 0.022292494773864746, 0.03467125818133354, -0.035558879375457764, 0.0788867250084877, 0.02069224789738655, -0.012016301043331623, -0.041985176503658295, -0.01576499082148075, -0.017248772084712982, 0.0020687663927674294, -0.01621977798640728, -0.056696176528930664, -0.03746845945715904, -0.07778364419937134, -0.0013354422990232706, 0.039138391613960266, -0.008201957680284977, -0.03279269486665726, 0.02786514349281788, 0.027605261653661728, -0.05778777226805687, 0.03915651515126228, -0.029583755880594254, 0.011615343391895294, -0.028445182368159294, -0.012837974354624748, 0.012878312729299068, 0.005481054075062275, 0.01849675551056862, 0.00945502333343029, 0.016056807711720467, -0.03871690481901169, 0.020359423011541367, 0.004469070117920637, 0.024599194526672363, 0.029938019812107086, 0.0003092200495302677, 0.00664276210591197 ]
[ -0.10897095501422882, -0.0121757248416543, -0.0047651417553424835, -0.0157200675457716, -0.005632296204566956, -0.04013076424598694, -0.010600835084915161, 0.04910985752940178, -0.007665871176868677, -0.038264200091362, 0.02992526814341545, -0.00813860073685646, 0.004515602719038725, 0.0001791608374333009, 0.06425229460000992, 0.007238396443426609, -0.01245441660284996, -0.0662708431482315, -0.0035244752652943134, -0.012648423202335835, 0.00016944584785960615, 0.01164474431425333, -0.04220917448401451, 0.002750953659415245, 0.003273177659139037, 0.04483911022543907, 0.028828267008066177, -0.03137144818902016, -0.005030044354498386, -0.2258143126964569, -0.0023979118559509516, 0.0038794586434960365, 0.05666276440024376, -0.015581291168928146, 0.022740310057997704, 0.05764070898294449, 0.00497470423579216, 0.008616603910923004, 0.006948602385818958, 0.05409248545765877, 0.01598329097032547, 0.05521861091256142, -0.038069963455200195, -0.0077121262438595295, 0.010503888130187988, 0.0013029773253947496, 0.017898574471473694, -0.03282831981778145, -0.0062584844417870045, 0.021925348788499832, -0.06297789514064789, -0.03296235576272011, -0.010387646965682507, -0.00998622179031372, -0.002991457236930728, 0.009990740567445755, 0.03815295174717903, 0.1065896674990654, 0.01301577314734459, 0.014952476136386395, 0.005691439379006624, -0.02496303804218769, -0.1391906589269638, 0.08244191110134125, 0.05420100688934326, 0.05058007314801216, -0.03230497986078262, -0.045351311564445496, -0.03117094375193119, 0.1116766408085823, -0.026410052552819252, -0.008685039356350899, -0.04310709983110428, 0.06992722302675247, 0.025876907631754875, -0.007825857028365135, 0.020155806094408035, 0.034584254026412964, 0.0348038375377655, -0.0372169204056263, -0.033751994371414185, -0.03554858639836311, -0.0061905281618237495, -0.04460752382874489, -0.03453855216503143, -0.01424610335379839, -0.015038588084280491, 0.054031893610954285, 0.025976767763495445, 0.003446821356192231, 0.07078316807746887, -0.021514613181352615, 0.06436183303594589, 0.0010579656809568405, -0.07655001431703568, -0.004699127282947302, -0.005339986179023981, 0.02096376195549965, -0.06085619330406189, 0.4435334801673889, -0.042631372809410095, -0.023495299741625786, 0.045249469578266144, 0.04366065934300423, 0.0026608493644744158, -0.007044575642794371, 0.02350519597530365, -0.023433635011315346, -0.0006629587733186781, -0.009387857280671597, 0.03722737729549408, -0.019832972437143326, 0.1004195511341095, -0.041016269475221634, 0.0012286902638152242, 0.028473608195781708, 0.02882291190326214, 0.014527086168527603, 0.024409543722867966, 0.010796469636261463, -0.0004502706287894398, 0.005793456919491291, 0.022170662879943848, -0.030013825744390488, 0.006519267801195383, -0.006364012602716684, 0.03141694515943527, 0.09272849559783936, 0.005561512429267168, -0.02934332937002182, 0.04182295501232147, -0.057227637618780136, -0.0607895664870739, -0.008734499104321003, 0.006996925454586744, 0.018733229488134384, 0.0397481843829155, -0.002943754428997636, 0.03887336701154709, 0.010365636087954044, -0.001686231466010213, -0.009462927468121052, -0.0012141605839133263, 0.00511325104162097, -0.026790322735905647, 0.10672961920499802, 0.022301632910966873, -0.046185851097106934, -0.01748015359044075, -0.03734496980905533, 0.001548037282191217, 0.026261113584041595, -0.011581380851566792, -0.05866185948252678, -0.0010457710595801473, 0.009147951379418373, 0.10765920579433441, -0.029307469725608826, -0.03192707151174545, -0.02068902738392353, -0.026600107550621033, -0.015134816989302635, -0.05305875465273857, 0.010438552126288414, 0.05736234784126282, -0.06251725554466248, -0.01786506362259388, -0.01670057326555252, -0.0066675832495093346, -0.10306010395288467, 0.00916178710758686, -0.0036613380070775747, -0.02744620479643345, -0.04182657599449158, 0.011578753590583801, -0.0317654088139534, -0.014196330681443214, 0.014314408414065838, 0.07450041174888611, 0.026356766000390053, 0.045023102313280106, 0.027271399274468422, -0.03336358070373535, 0.011745346710085869, -0.03608094900846481, -0.08121991902589798, -0.025065220892429352, 0.00992830190807581, -0.009416877292096615, -0.007153860293328762, -0.014860887080430984, -0.04202102869749069, -0.06231366842985153, 0.05346230790019035, -0.025462444871664047, -0.0309758260846138, 0.011340660974383354, -0.017513670027256012, -0.03154357522726059, -0.025772342458367348, -0.013281624764204025, 0.041283413767814636, -0.022359168156981468, -0.0015795304207131267, -0.0349038727581501, 0.060463279485702515, 0.023562395945191383, -0.05745697766542435, 0.07702972739934921, 0.022120952606201172, -0.06320137530565262, -0.011905357241630554, 0.008844639174640179, 0.0239757988601923, -0.018757501617074013, -0.017325880005955696, -0.054547183215618134, 0.027175642549991608, 0.0026622177101671696, 0.003237623255699873, -0.03308212384581566, -0.031113939359784126, 0.006123973056674004, -0.36286598443984985, -0.05550571531057358, -0.012870626524090767, -0.021339433267712593, 0.00046294365893118083, -0.06722159683704376, 0.017869576811790466, -0.024835893884301186, -0.03181391954421997, 0.025607608258724213, 0.045582789927721024, -0.0051376307383179665, -0.0013855417491868138, -0.08771762996912003, 0.03164290264248848, -0.006842923816293478, -0.03324538469314575, -0.037727367132902145, -0.03488251194357872, 0.00798844825476408, 0.008018574677407742, -0.013431627303361893, -0.00008578880806453526, -0.08597676455974579, 0.007873013615608215, -0.05547653138637543, 0.07671904563903809, -0.004039356485009193, 0.13106437027454376, -0.007146993186324835, 0.038732290267944336, -0.0002179676666855812, 0.023444049060344696, -0.06897445768117905, 0.028016386553645134, 0.002903812564909458, -0.01119580864906311, -0.006152305286377668, 0.022045759484171867, -0.04152807965874672, -0.0371338352560997, 0.020844969898462296, -0.05543294548988342, -0.0291580930352211, -0.051828064024448395, 0.016946710646152496, 0.00039069875492714345, -0.0593976266682148, -0.021826673299074173, 0.05984479561448097, 0.011526170186698437, -0.0005086676101200283, 0.004963061772286892, 0.027500908821821213, -0.001562744495458901, -0.0246823038905859, -0.05336673930287361, 0.012394278310239315, 0.002125309780240059, -0.02495214343070984, 0.03109714761376381, 0.038208696991205215, 0.03395867720246315, -0.05237365886569023, 0.007308340165764093, 0.05065709725022316, 0.005638967268168926, -0.040203701704740524, 0.03829348832368851, -0.009652630425989628, -0.0189494825899601, 0.11558818072080612, 0.00968584418296814, -0.03689909353852272, -0.0033475500531494617, 0.03205768018960953, -0.016828598454594612, 0.013525671325623989, -0.011773055419325829, -0.03336627408862114, 0.01989958994090557, -0.02471506968140602, 0.056444328278303146, -0.03914438933134079, -0.004378771409392357, 0.009235979989171028, -0.02568962238729, -0.016077041625976562, 0.05727032199501991, 0.0004539422516245395, -0.015144952572882175, 0.005480662453919649, 0.00039425602881237864, -0.047370098531246185, 0.060270801186561584, 0.005466720089316368, -0.216772198677063, -0.009708413854241371, 0.062410563230514526, 0.05463612452149391, -0.013669892214238644, 0.0636238157749176, 0.0028421878814697266, -0.040094587951898575, 0.02209877409040928, -0.008955460041761398, 0.0030163757037371397, 0.025983760133385658, 0.007145436946302652, -0.0005918708629906178, 0.043009478598833084, -0.017934059724211693, 0.04766630381345749, -0.013394773937761784, 0.016731712967157364, 0.007308920379728079, 0.031714241951704025, -0.005023987032473087, 0.147441565990448, 0.009462421759963036, 0.019482087343931198, 0.0009037835407070816, 0.033679112792015076, 0.027738677337765694, 0.07404286414384842, 0.019759446382522583, 0.004826693795621395, 0.00422348827123642, 0.03570477291941643, 0.016319913789629936, 0.03257739543914795, -0.07701821625232697, -0.043575469404459, 0.02128218300640583, 0.05330825597047806, -0.003946012817323208, 0.0049898819997906685, 0.016748037189245224, -0.043627556413412094, 0.006342577748000622, 0.07303116470575333, 0.034898556768894196, -0.0019493538420647383, -0.015534699894487858, -0.052481379359960556, 0.021409694105386734, -0.040398385375738144, -0.0445253849029541, 0.02330268733203411, 0.002075145486742258, 0.007610037922859192, 0.07327650487422943, -0.0012796414084732533, -0.0009078901493921876, -0.01000690832734108, 0.006712050177156925, -0.003491754876449704, -0.010537966154515743, 0.14119131863117218, 0.02312057465314865, 0.01807575672864914 ]
[ -0.017452552914619446, 0.010050800628960133, -0.015264911577105522, 0.03952328488230705, -0.029590727761387825, -0.0030442560091614723, -0.005681062117218971, 0.008456400595605373, -0.008458749391138554, -0.013227869756519794, 0.018101021647453308, 0.01222342811524868, 0.019635528326034546, -0.028813686221837997, -0.007751496508717537, -0.0051994225941598415, 0.005725778639316559, 0.007636097725480795, 0.011633644811809063, 0.004784496035426855, -0.015480367466807365, 0.027991488575935364, -0.003895905101671815, 0.0035425119567662477, -0.011092343367636204, 0.014624243602156639, -0.03177213296294212, 0.009232069365680218, 0.012751554138958454, -0.14597582817077637, 0.007231558673083782, -0.010439224541187286, -0.0035146267618983984, 0.008390828967094421, 0.030128976330161095, 0.022885054349899292, 0.006778688635677099, 0.02121046371757984, -0.005561005789786577, -0.01182311400771141, -0.005960154812783003, -0.039787113666534424, -0.015465689823031425, 0.015922170132398605, 0.012289142236113548, -0.0038116262294352055, -0.022068267688155174, 0.00005882489858777262, -0.014126154594123363, -0.017474770545959473, -0.02672620117664337, -0.004297019448131323, -0.014838892966508865, -0.018293000757694244, 0.006463763769716024, -0.012799820862710476, 0.039029043167829514, -0.012065689079463482, -0.009408876299858093, -0.013540840707719326, -0.0036607093643397093, -0.012245324440300465, -0.023423483595252037, -0.028237415477633476, -0.02145843766629696, 0.008308296091854572, -0.00415438786149025, 0.01216837391257286, -0.0319087989628315, 0.007610079366713762, -0.03345990553498268, 0.0014176666736602783, -0.021491536870598793, 0.004119656514376402, 0.0007032786379568279, 0.017140327021479607, 0.002821106929332018, -0.03221582621335983, -0.0036004772409796715, -0.024024829268455505, -0.026614902541041374, 0.0022699108812958, 0.014363217167556286, -0.005899251438677311, 0.014433640986680984, -0.022079890593886375, 0.019816236570477486, -0.012284454889595509, 0.031907565891742706, -0.0041356333531439304, 0.018060358241200447, 0.006090410053730011, 0.007497917395085096, 0.014123272150754929, -0.08070702105760574, -0.02756372280418873, 0.00013303360901772976, 0.009497253224253654, -0.001485255779698491, 0.882749617099762, -0.006942851468920708, 0.029183577746152878, 0.023828182369470596, 0.012064824812114239, 0.004133529495447874, 0.0080634830519557, 0.007933215238153934, 0.01084910798817873, -0.012876050546765327, -0.08255770057439804, 0.03129462152719498, 0.012886054813861847, 0.02707868441939354, 0.00787985511124134, 0.046331170946359634, 0.00823731068521738, 0.016998236998915672, -0.013516874983906746, -0.000032094507332658395, 0.014204404316842556, 0.011949455365538597, 0.007655509747564793, 0.03617588058114052, 0.02759992890059948, -0.0012375094229355454, -0.16951826214790344, 0.017896169796586037, -7.790698277986131e-33, 0.008818190544843674, -0.00381353753618896, -0.010508778505027294, -0.006300366949290037, 0.025943662971258163, -0.02742171101272106, 0.012173031456768513, 0.00787657592445612, -0.0026279082521796227, -0.03211584314703941, 0.03716622292995453, -0.029364068061113358, 0.011373552493751049, -0.01075753290206194, 0.038836512714624405, -0.020176874473690987, 0.015102358534932137, 0.03693196177482605, 0.0013096691109240055, 0.009952714666724205, 0.012524999678134918, 0.031707409769296646, 0.023682385683059692, -0.0085368100553751, 0.011126491241157055, 0.021589679643511772, 0.004824891220778227, -0.0027629886753857136, -0.01494904700666666, -0.05065277963876724, -0.007147449068725109, 0.006284264847636223, 0.0016099436907097697, -0.02975606545805931, -0.02510811761021614, -0.041658710688352585, -0.011958208866417408, 0.0042109242640435696, -0.03673407435417175, -0.00960906408727169, -0.029497012495994568, 0.028285637497901917, -0.03572305291891098, -0.00686687882989645, -0.01837415248155594, -0.0034699561074376106, 0.00790376402437687, 0.04009835422039032, -0.002255483064800501, 0.00741112744435668, 0.032395139336586, 0.03898819163441658, 0.020262733101844788, 0.0061558871529996395, -0.013407102786004543, 0.011632007546722889, -0.007525552995502949, -0.016598505899310112, 0.022503860294818878, 0.03182224556803703, 0.02380518428981304, 0.012814543209969997, -0.01618039235472679, 0.03067709319293499, 0.0004040728381369263, -0.010238859802484512, 0.05212036520242691, 0.013043595477938652, 0.0005169037613086402, 0.008311803452670574, -0.05643094331026077, -0.007332474924623966, 0.007012960966676474, -0.0021337063517421484, 0.0028583286330103874, -0.013709049671888351, -0.012897493317723274, -0.014387212693691254, -0.014869431965053082, -0.003619865979999304, 0.0016280957497656345, -0.003620235016569495, -0.02038176916539669, -0.025923943147063255, -0.01747080869972706, -0.000378586002625525, 0.018477803096175194, -0.02561064437031746, -0.030657170340418816, 0.006373025011271238, 0.028310086578130722, -0.0024833392817527056, 0.0040346961468458176, -0.02240719087421894, -0.0008449675515294075, 7.68608589291867e-33, 0.012607317417860031, -0.02670123428106308, -0.014511093497276306, 0.03302478790283203, -0.012511033564805984, -0.00372342299669981, 0.017306623980402946, 0.018847007304430008, -0.04076320305466652, 0.02924242615699768, -0.0041252076625823975, 0.012166507542133331, -0.010669595561921597, 0.016703415662050247, 0.04712454974651337, -0.009818235412240028, 0.011987131088972092, -0.0032531130127608776, 0.032280296087265015, 0.011283173225820065, 0.01901278831064701, 0.004697717726230621, 0.016570091247558594, -0.009990385733544827, 0.02060137689113617, 0.05205926299095154, -0.025259070098400116, 0.013818441890180111, 0.003118897555395961, -0.0231079813092947, 0.0016183904372155666, 0.00014821051445323974, 0.026043368503451347, -0.015110594220459461, -0.04282093793153763, 0.029843827709555626, -0.00999350007623434, -0.012145087122917175, 0.015723945572972298, 0.019335884600877762, 0.03582637757062912, 0.019036971032619476, 0.0010156829375773668, 0.02339244820177555, -0.02303687110543251, 0.030191324651241302, -0.008165371604263783, -0.011523990891873837, -0.010817477479577065, 0.011331628076732159, 0.007027953397482634, 0.013406060636043549, 0.00046329363249242306, -0.00039679562905803323, -0.013134567998349667, -0.01102130115032196, -0.026526575908064842, -0.010985920205712318, -0.0490962415933609, 0.009723036549985409, -0.027232807129621506, 0.012702996842563152, -0.00009095434506889433, -0.015544699504971504, -0.018312402069568634, 0.0025526671670377254, -0.03625372052192688, -0.011545197106897831, 0.0004521885421127081, -0.001672291662544012, -0.015276690945029259, 0.007549369242042303, -0.006570423953235149, 0.037060704082250595, -0.008527861908078194, -0.0011087917955592275, -0.035667914897203445, -0.0034393779933452606, -0.025467973202466965, 0.01822194829583168, 0.012612652964890003, -0.0022488143295049667, 0.02078630030155182, -0.0003964061907026917, -0.02541050687432289, 0.023992188274860382, -0.015235229395329952, 0.027621978893876076, 0.02192995510995388, -0.026553640142083168, -0.006607947405427694, -0.039139583706855774, 0.011555314064025879, -0.003934027161449194, -0.02223551645874977, -1.3454223513065244e-8, -0.022253239527344704, -0.005122562404721975, -0.008286411873996258, 0.023753413930535316, 0.03645046055316925, 0.0010205351281911135, -0.026440413668751717, 0.012694237753748894, -0.031962256878614426, 0.012085477821528912, 0.04082861915230751, -0.0065983496606349945, -0.013784777373075485, 0.008990260772407055, -0.0005461295368149877, -0.04855158552527428, -0.008036271668970585, -0.014161165803670883, 0.025183824822306633, -0.021863939240574837, 0.007105552591383457, 0.058199428021907806, -0.012377592734992504, 0.007871042005717754, 0.014998679980635643, -0.0017629482317715883, 0.036078114062547684, -0.06476782262325287, -0.005870507098734379, -0.0031736153177917004, 0.031125593930482864, -0.03472304716706276, -0.028152354061603546, 0.032256677746772766, -0.007780464831739664, -0.036321286112070084, -0.003538463031873107, 0.006435040384531021, 0.01324696745723486, 0.0019941693171858788, -0.014774699695408344, -0.01838267222046852, -0.012778419069945812, -0.026676028966903687, -0.018594805151224136, -0.009073196910321712, -0.038007088005542755, -0.022350359708070755, 0.003922456409782171, -0.01263517141342163, 0.017843566834926605, -0.0041944291442632675, 0.007578794378787279, 0.04921938478946686, 0.027161967009305954, 0.019034553319215775, 0.006189608480781317, -0.00576759921386838, -0.0014832457527518272, 0.023259086534380913, 0.02494019642472267, 0.008869749493896961, -0.0011259138118475676, -0.030389074236154556 ]
one-change-at-a-time
https://markhneedham.com/blog/2009/12/22/one-change-at-a-time
false
2009-12-25 22:25:57
Roy Osherove's TDD Kata: My first attempt
[ "tdd" ]
[ "Coding" ]
I recently came across http://weblogs.asp.net/rosherove/archive/2009/12/23/comments-on-corey-haines-string-calculator-tdd-kata-implementation.aspx[Roy Osherove's commentary] on http://katas.softwarecraftsmanship.org/?p=80[Corey Haines' attempt] at http://osherove.com/tdd-kata-1/[Roy's TDD Kata] so I thought I'd try it out in C#. http://www.21apps.com/agile/tdd-kata-by-example-video/[Andrew Woodward has recorded his version of the kata] where he avoids using the mouse for the whole exercise so I tried to avoid using the mouse as well and it was surprisingly difficult! I've only done the first part of the exercise so far which is as follows: . Create a simple String calculator with a method *int Add(string numbers)* .. The method can take 0, 1 or 2 numbers, and will return their sum (for an empty string it will return 0) for example+++<strong>+++&#8220;&#8221; or &#8220;1&#8221; or &#8220;1,2&#8221;+++</strong>+++ .. Start with the simplest test case of an empty string and move to 1 and two numbers .. Remember to solve things as simply as possible so that you force yourself to write tests you did not think about .. Remember to refactor after each passing test . Allow the Add method to handle an unknown amount of numbers . Allow the Add method to handle new lines between numbers (instead of commas). .. the following input is ok:&nbsp; &#8220;1\n2,3&#8221;&nbsp; (will equal 6) .. the following input is NOT&nbsp;ok:&nbsp; &#8220;1,\n&#8221;&nbsp; .. Make sure you only test for correct inputs. there is no need to test for invalid inputs for these katas . Allow the Add method to handle a different delimiter: .. to change a delimiter, the beginning of the string will contain a separate line that looks like this:&nbsp;&nbsp; &#8220;//[delimiter]\n[numbers&#8230;]&#8221; for example &#8220;//;\n1;2&#8221; should return three where the default delimiter is &#8216;;&#8217; . .. the first line is optional. all existing scenarios should still be supported . Calling Add with a negative number will throw an exception &#8220;negatives not allowed&#8221; - and the negative that was passed.if there are multiple negatives, show all of them in the == Mouseless coding I know a lot of the http://www.jetbrains.com/resharper/[Resharper] shortcuts but I found myself using the mouse mostly to switch to the solution explorer and run the tests. These are some of the shortcuts that have become more obvious to me from trying not to use the mouse: * I'm using a Mac and VMWare so I followed http://chriskchew.wordpress.com/2008/10/28/developing-net-on-a-mac-–-resharper-altinsert/[the instructions on Chris Chew's blog] to setup the key binding for 'Alt-Insert'. I also setup a key binding for 'Ctrl-~' to map to 'Menu' to allow me to right click on the solution explorer menu to create my unit tests project, to add references and so on. I found that I needed to use VMWare 2.0 to get those key bindings setup - I couldn't work out how to do it with the earlier versions. * I found that I had to use '*Ctrl-Tab*' to get to the various menus such as Solution Explorer and the Unit Test Runner. '*Ctrl-E*' also became useful for switching between the different code files. == Simplest thing possible The first run through of the exercise I made use of a http://www.markhneedham.com/blog/2008/08/17/returning-from-methods/[guard block] for the empty string case and then went straight to 'String.Split' to get each of the numbers and then add them together. It annoyed me that there had to be a special case for the empty string so I changed my solution to make use of a regular expression instead: [source,csharp] ---- Regex.Matches(numbers, "\\d").Cast<Match>().Select(x => int.Parse(x.Value)).Aggregate(0, (acc, num) => acc + num); ---- That works for nearly all of the cases provided but it's not incremental at all and it doesn't even care if there are delimeters between each of the numbers or not, it just gets the numbers! It eventually came unstuck when trying to work out if there were negative numbers or not. I considered trying to work out how to do that with a regular expression but it did feel as if I'd totally missed the point of the exercise: ____ Remember to solve things as simply as possible so that you force yourself to write tests you did not think about ____ I decided to watch Corey's video to see how he'd achieved this and I realised he was doing much smaller steps than me. I started again following his lead and found it interesting that *I wasn't naturally seeing the smallest step but more often than not the more general solution to a problem*. For example the first part of the problem is to add together two numbers separated by a comma. Given an input of "1,2" we should get a result of 3. I really wanted to write this code to do that: [source,csharp] ---- if(number == "") return 0; return number.Split(',').Aggregate(0, (acc, num) => acc + int.Parse(num)); ---- But a simpler version would be this (assuming that we've already written the code for handling a single number): [source,csharp] ---- if (number == "") return 0; if (number.Length == 1) return int.Parse(number); return int.Parse(number.SubString(0,1)) + int.Parse(number.SubString(2, 1)); ---- After writing a few more examples we do eventually end up at something closer to that first solution. == Describing the relationships in code I'm normally a fan of doing simple incremental steps but for me the first solution expresses the intent of our solution much more than the second one does and the step from using 'SubString' to using 'Split' doesn't seem that incremental to me. It's a http://www.markhneedham.com/blog/2009/12/10/tdd-big-leaps-and-small-steps/[bit of a leap]. This exercise reminds me a bit of a post by Reg Braithwaite where he talks about http://weblog.raganwald.com/2007/12/golf-is-good-program-spoiled.html[programming golf]. In this post he makes the following statement: ____ The goal is readable code that expresses the underlying relationships. ____ In the second version of this we're describing the relationship very specifically and then we'll generalise that relationship later when we have an example which forces us to do that. I think that's a good thing that the incremental approach encourages. == Programming in the large/medium/small In this exercise I found that the biggest benefit of only coding what you needed was that the code was easier to change when a slightly different requirement was added. If we've already generalised our solution then it can be quite difficult to add that new requirement. I recently read a post by Matt Podwysocki http://weblogs.asp.net/podwysocki/archive/2009/12/14/going-hybrid-implementing-a-shopping-cart-in-f.aspx[where he talks about three different types of programming]: * Programming in the large: a high level that affects as well as crosscuts multiple classes and functions * Programming in the medium: a single API or group of related APIs in such things as classes, interfaces, modules * Programming in the small: individual function/method bodies From my experience generalising code prematurely hurts us the most when we're programming in the large/medium and it's really difficult to recover once we've done that. I'm not so sure where the line is when programming in the small. I feel like generalising code inside small functions is not such a bad thing although based on this experience perhaps that's me just trying to justify my currently favoured approach!
null
null
[ -0.003422350622713566, 0.004949458409100771, -0.036006491631269455, 0.05126026272773743, 0.06348732858896255, 0.024563079699873924, 0.06335017830133438, 0.019467640668153763, 0.0032430195715278387, -0.02193247154355049, 0.009022831916809082, 0.022878320887684822, -0.06404142081737518, -0.0063473437912762165, -0.041565559804439545, 0.08709491789340973, 0.07767175137996674, -0.015834428369998932, 0.0535438172519207, 0.0034544116351753473, 0.00917516928166151, 0.05437573418021202, 0.0234779492020607, 0.026931429281830788, 0.03234906122088432, 0.05111629515886307, 0.0160733200609684, -0.009843145497143269, -0.04903670400381088, -0.026851575821638107, 0.03551559895277023, 0.014231715351343155, 0.010158790275454521, -0.04394101724028587, 0.014788936823606491, 0.002664501778781414, -0.01010627020150423, 0.003592472756281495, 0.02556096948683262, 0.02462811954319477, -0.0628616139292717, 0.02730267122387886, -0.016806498169898987, 0.022184591740369797, -0.03429645299911499, -0.016732484102249146, -0.018262581899762154, -0.03860069066286087, -0.015304820612072945, -0.002655620686709881, -0.06823617219924927, 0.06195569410920143, -0.02647515945136547, 0.0005261734477244318, -0.002563680289313197, 0.049733519554138184, 0.01953759230673313, -0.07885895669460297, 0.03304780274629593, -0.05374625697731972, 0.011495113372802734, -0.00305913551710546, -0.024836108088493347, 0.03764669969677925, 0.002310367999598384, -0.005109675228595734, 0.0027972375974059105, 0.05498042702674866, -0.04960266873240471, -0.03299770876765251, -0.012947283685207367, 0.009962745942175388, -0.008106082677841187, -0.006974483840167522, 0.022273022681474686, -0.04649880528450012, -0.0022295895032584667, 0.04105284810066223, 0.01343549881130457, 0.06128144636750221, -0.011979631148278713, 0.015513265505433083, 0.03479994460940361, 0.017823796719312668, -0.0003953029226977378, -0.036129824817180634, -0.01492859423160553, 0.005775881465524435, -0.028457896783947945, 0.06407682597637177, 0.01465238630771637, -0.038427095860242844, 0.02562773786485195, 0.011813993565738201, -0.004677239339798689, 0.00475549278780818, 0.0027488339692354202, -0.01590549945831299, -0.010022676549851894, 0.020490992814302444, -0.03258582577109337, -0.019347645342350006, 0.03518309071660042, 0.009168318472802639, -0.0805991142988205, -0.0007199440733529627, -0.020278947427868843, 0.00523685198277235, 0.013635767623782158, 0.025040633976459503, -0.04986425116658211, -0.00877995602786541, -0.030238499864935875, -0.01751738227903843, -0.07501722872257233, 0.04695954918861389, -0.009566051885485649, -0.002150011481717229, -0.009588031098246574, 0.04563218727707863, 0.02373819425702095, 0.02061706781387329, -0.00840373057872057, 0.07683198153972626, 0.012357858009636402, 0.011325889267027378, -0.008724087849259377, 0.0661609023809433, -0.0020723091438412666, -0.058997225016355515, -0.0008840676164254546, 0.02671332098543644, 0.01582595333456993, 0.013239940628409386, 0.00041047472041100264, -0.025024710223078728, -0.0019886125810444355, -0.003962809219956398, 0.04523392394185066, 0.04436212033033371, -0.015316536650061607, -0.02826675772666931, 0.015047699213027954, -0.015572096221148968, 0.009560877457261086, 0.016987228766083717, -0.005256331991404295, -0.009131456725299358, -0.016140850260853767, 0.02149815857410431, 0.009970616549253464, 0.03976231440901756, 0.05389278382062912, -0.02224217914044857, -0.0045336391776800156, 0.06633204221725464, 0.031615596264600754, -0.0008290991536341608, 0.014692380093038082, 0.03028431348502636, 0.047166358679533005, 0.03515981137752533, 0.012950226664543152, 0.041375793516635895, 0.017028866335749626, 0.010463813319802284, -0.016577132046222687, 0.054257217794656754, -0.03707259148359299, -0.026500070467591286, -0.06454350054264069, -0.024656325578689575, 0.06443528085947037, -0.07852435857057571, -0.03863321617245674, 0.0283048115670681, 0.057878486812114716, 0.011799119412899017, 0.05458816885948181, -0.002063196385279298, -0.07365254312753677, 0.006566380150616169, 0.013467476703226566, 0.030323876067996025, -0.005811177659779787, 0.006447101943194866, 0.08000387251377106, 0.025624381378293037, -0.0018808080349117517, 0.04558885842561722, -0.0779162347316742, -0.09803970158100128, -0.022634904831647873, -0.009736455976963043, 0.0713658332824707, -0.035067103803157806, -0.0017626385670155287, 0.07042402029037476, 0.03183619678020477, 0.04684165120124817, 0.03170117735862732, 0.011314242146909237, 0.02843855507671833, -0.027715226635336876, -0.015061737969517708, 0.054730478674173355, 0.03888426348567009, -0.004008174873888493, -0.046383026987314224, 0.0024418835528194904, 0.0012509877560660243, -0.0072133345529437065, 0.02457725815474987, -0.01874886266887188, 0.008714764378964901, 0.029232576489448547, 0.05971779674291611, -0.014051944017410278, 0.056711290031671524, -0.0666588693857193, 0.0024202780332416296, 0.004986040759831667, 0.006706102751195431, 0.00048054667422547936, -0.0005785297253169119, 0.12730005383491516, 0.05689096823334694, -0.009761052206158638, -0.08226271718740463, 0.003017547307536006, -0.018710274249315262, -0.03550465404987335, 0.0010881037451326847, -0.0032241945154964924, 0.004435231909155846, -0.0017053538467735052, -0.05846085771918297, -0.033460475504398346, 0.03513537347316742, -0.046614330261945724, 0.019892528653144836, 0.08114656805992126, -0.0260979775339365, 0.032897207885980606, -0.0005093145882710814, -0.02692076936364174, -0.010331316851079464, -0.008364342153072357, -0.039401352405548096, 0.010203416459262371, 0.029552636668086052, -0.010788675397634506, 0.040136437863111496, -0.01055513322353363, -0.04528674855828285, -0.017981696873903275, -0.02912823110818863, -0.0031114702578634024, 0.043898455798625946, 0.03496360778808594, 0.00443534879013896, 0.05220484361052513, 0.005956868175417185, 0.00043076949077658355, -0.01531066931784153, -0.0599311925470829, -0.01859060674905777, 0.019775737076997757, 0.014709331095218658, 0.04163741320371628, 0.018954161554574966, 0.014191651716828346, 0.01377771608531475, 0.0172859039157629, -0.03603961318731308, -0.017897414043545723, 0.029680881649255753, -0.005578378681093454, -0.0386592335999012, -0.030923668295145035, -0.040338970720767975, 0.03569624945521355, -0.04147917032241821, -0.07231716066598892, -0.008439319208264351, -0.06477884948253632, 0.037775274366140366, -0.08008655160665512, -0.07224784046411514, 0.031873397529125214, 0.026698037981987, 0.038486678153276443, -0.011750311590731144, 0.013944508507847786, 0.07705721259117126, -0.016245054081082344, 0.020409995689988136, 0.014420426450669765, 0.006767482962459326, -0.0022247531451284885, 0.005814350675791502, 0.023663636296987534, 0.018363403156399727, 0.011476083658635616, 0.007996071130037308, -0.06245552748441696, 0.019141610711812973, -0.019397994503378868, -0.2742660343647003, 0.0398654043674469, -0.02128080651164055, -0.05275871232151985, 0.04131409898400307, -0.010489814914762974, 0.0451904833316803, -0.040373701602220535, -0.03541754558682442, 0.029249651357531548, -0.026619382202625275, -0.02897169440984726, -0.033474527299404144, 0.0356527604162693, 0.002279134001582861, -0.02913792058825493, 0.034696679562330246, -0.030288301408290863, 0.022922173142433167, 0.042975325137376785, -0.0033546551130712032, -0.0751444548368454, 0.033253178000450134, 0.06537005305290222, 0.037758346647024155, 0.06141497567296028, -0.07521023601293564, 0.018636934459209442, -0.037974677979946136, 0.018996600061655045, -0.009655575267970562, 0.012092182412743568, 0.010777727700769901, -0.01950794830918312, -0.02810574509203434, -0.012328368611633778, 0.012329792603850365, -0.019667305052280426, 0.019568653777241707, 0.03371378034353256, -0.037074264138936996, -0.046802084892988205, 0.01705816015601158, 0.005254104267805815, 0.07118751108646393, -0.000981744029559195, -0.029307859018445015, 0.009003587998449802, -0.04818274825811386, 0.06328979879617691, -0.05606700852513313, -0.035916075110435486, -0.004178095608949661, 0.03938968479633331, -0.013696788810193539, -0.03273638337850571, 0.004920726176351309, 0.00174864218570292, -0.03970464691519737, -0.048040445894002914, -0.002636111341416836, -0.0477382130920887, -0.024521518498659134, -0.04262237995862961, -0.007528139743953943, -0.08687244355678558, -0.023529265075922012, -0.017987677827477455, 0.0674298033118248, 0.02745053917169571, 0.00040352734504267573, 0.010148092173039913, -0.01130144763737917, -0.10904836654663086, -0.007857255637645721, -0.02846001274883747, -0.03241110220551491, -0.027125637978315353, -0.015701085329055786, 0.06681641936302185, -0.05586002767086029, -0.054572418332099915, 0.04903712868690491, 0.025447161868214607, 0.023927511647343636, -0.020613430067896843, 0.02964959107339382, -0.01345150824636221, -0.022722579538822174, 0.011473054997622967, 0.08420372754335403, -0.01126989908516407, -0.029457326978445053, -0.04086511582136154, 0.03909154236316681, 0.0267489030957222, 0.023612719029188156, -0.010246110148727894, 0.026225779205560684, 0.012577993795275688, 0.036093950271606445, -0.050945453345775604, 0.0417729951441288, -0.04628932476043701, 0.013009942136704922, -0.029125994071364403, -0.05302828177809715, 0.0394182950258255, 0.0391148142516613, -0.011527813039720058, -0.032240163534879684, -0.050889790058135986, -0.013905526138842106, -0.027878133580088615, -0.05723089724779129, -0.035258181393146515, 0.014638246037065983, 0.000435466761700809, -0.012987328693270683, -0.022987067699432373, -0.03322937712073326, -0.005580705590546131, -0.005500959698110819, -0.019919568672776222, -0.050835125148296356, -0.04716617986559868, -0.022478807717561722, 0.0018677288899198174, 0.03592458739876747, 0.01616920344531536, -0.015943774953484535, 0.04794454574584961, -0.007306715007871389, -0.01972777768969536, 0.004907154943794012, 0.0024100125301629305, -0.014859110116958618, -0.017016466706991196, -0.019777925685048103, -0.007094319444149733, 0.0199561957269907, -0.005138027016073465, -0.01323582511395216, 0.010778888128697872, 0.07661448419094086, 0.00020933673658873886, 0.029596535488963127, -0.028640104457736015, -0.014068616554141045, -0.0051844799891114235, 0.01297138724476099, -0.08188669383525848, 0.044536229223012924, -0.042240776121616364, -0.033849023282527924, -0.03141675516963005, 0.01496269553899765, -0.011792201548814774, -0.040830180048942566, -0.017697682604193687, 0.0010073374724015594, -0.017964567989110947, -0.04037231579422951, -0.018529439345002174, 0.0060266898944973946, 0.04464615508913994, -0.03439128026366234, 0.03411529213190079, -0.0025324737653136253, 0.0015923340106382966, 0.021645888686180115, 0.002245540264993906, -0.02172623760998249, 0.03152812644839287, -0.007632961962372065, -0.017459088936448097, -0.0009493636898696423, 0.0018901275470852852, 0.03867494314908981, 0.024203257635235786, 0.019422506913542747, -0.03680809214711189, 0.018607396632432938, 0.027237718924880028, 0.05731961503624916, -0.0034144131932407618, -0.010973403230309486, -0.012550072744488716, -0.0201580673456192, -0.006827764678746462, -0.048429954797029495, -0.04002491012215614, 0.030774595215916634, 0.033244211226701736, -0.04038110375404358, -0.05800911784172058, 0.035205207765102386, 0.02626553736627102, 0.02660352550446987, 0.03463317081332207, 0.040267493575811386, -0.004042363725602627, 0.0015943500911816955, 0.05572441220283508, 0.04508925601840019, -0.055727578699588776, 0.023063899949193, -0.003535627154633403, 0.032465141266584396, 0.021183988079428673, 0.016217397525906563, -0.05221002921462059, -0.0001484315434936434, -0.029788631945848465, -0.012925351038575172, -0.03368384763598442, -0.032465264201164246, -0.018749943003058434, 0.030513694509863853, -0.028102224692702293, -0.0011971286730840802, 0.01164803747087717, -0.024072490632534027, -0.01740342192351818, -0.018211206421256065, -0.014897730201482773, -0.04348381981253624, -0.01407987903803587, 0.04151655733585358, -0.03881979361176491, 0.026819443330168724, -0.037194155156612396, 0.023901622742414474, 0.021168934181332588, -0.0017450693994760513, -0.06294906139373779, -0.0549456961452961, 0.02556956373155117, -0.014614886604249477, 0.033538103103637695, -0.003736746497452259, 0.000968092237599194, -0.005194397643208504, 0.014957868494093418, -0.03515886887907982, 0.010718779638409615, -0.0264396034181118, -0.0609954409301281, 0.0628415048122406, 0.05993964523077011, 0.026028499007225037, 0.020677348598837852, -0.006338243372738361, -0.02249862439930439, 0.051984865218400955, -0.04148469120264053, -0.007338425610214472, -0.0410921536386013, -0.08141870051622391, 0.020923152565956116, -0.026073236018419266, 0.03872697055339813, -0.02376815676689148, 0.035764675587415695, 0.01815367490053177, 0.012195281684398651, 0.02156670391559601, -0.016124418005347252, 0.046413712203502655, -0.037301260977983475, -0.013540642336010933, -0.09311316162347794, 0.014907186850905418, 0.024354537948966026, 0.00973387062549591, -0.0476844422519207, -0.006036692298948765, -0.013025970198214054, 0.011621225625276566, -0.056112438440322876, -0.0061371540650725365, 0.0286319088190794, 0.008107345551252365, -0.003258239012211561, 0.02438553050160408, -0.054289210587739944, 0.008676663972437382, 0.040972750633955, -0.031231271103024483, -0.026630692183971405, -0.04181227087974548, 0.07026057690382004, 0.024960024282336235, 0.005256094504147768, -0.046708784997463226, 0.012767311185598373, 0.061122339218854904, 0.03628617525100708, 0.027265507727861404, 0.030781038105487823, -0.02614845521748066, 0.051120538264513016, 0.026875486597418785, -0.0014194928808137774, -0.02235182747244835, -0.0031222740653902292, -0.0183893870562315, -0.07643201947212219, 0.02621910348534584, 0.028467576950788498, -0.019831327721476555, -0.032952241599559784, 0.07651727646589279, 0.02313791960477829, -0.012916252948343754, -0.06851793825626373, 0.003090973012149334, -0.02364974096417427, -0.02344401925802231, -0.009580622427165508, -0.015254315920174122, -0.025006048381328583, 0.05776140093803406, -0.006361120846122503, -0.019052181392908096, 0.05300988256931305, -0.00986348558217287, -0.008905534632503986, -0.010385015979409218, 0.08570078760385513, 0.0552021861076355, 0.043461382389068604, 0.018742777407169342, 0.0463639535009861, -0.03703873232007027, -0.061989475041627884, 0.022057533264160156, -0.04433995485305786, -0.011133069172501564, -0.04242156445980072, -0.01434201467782259, 0.04973059520125389, 0.0015126203652471304, 0.05112263932824135, -0.04950728267431259, -0.015314706601202488, -0.001094210078008473, 0.027443045750260353, 0.02958166040480137, 0.04025929048657417, 0.00409710081294179, -0.012663599103689194, -0.006665216293185949, -0.02596108429133892, 0.03123096376657486, -0.04393136873841286, -0.025176241993904114, 0.013790544122457504, -0.005104964133352041, 0.02109055407345295, 0.0004447898536454886, 0.0320843942463398, 0.07760754972696304, -0.02178606018424034, -0.0035950320307165384, 0.014640620909631252, 0.046425364911556244, 0.009739519096910954, -0.012146757915616035, -0.023137139156460762, -0.03759754076600075, -0.02284814789891243, 0.0016902287025004625, -0.006961277686059475, -0.017518116161227226, -0.039001185446977615, 0.021635863929986954, -0.026713354513049126, -0.0025128223933279514, 0.04723917320370674, 0.010791661217808723, -0.04966636002063751, -0.05241848900914192, -0.0373375229537487, -0.029397353529930115, -0.05097135528922081, -0.0168781541287899, 0.04143667221069336, -0.029502319172024727, -0.007460325490683317, -0.010563772171735764, -0.009254398755729198, -0.0154903344810009, 0.047299616038799286, -0.022984802722930908, -0.0413360521197319, 0.007546861656010151, 0.03345615789294243, 0.03614643216133118, 0.04406919330358505, 0.027457870543003082, -0.008391352370381355, -0.014271463267505169, -0.040297869592905045, -0.023527096956968307, 0.04108193516731262, 0.03687450662255287, 0.02697812207043171, -0.06925919651985168, 0.011391773819923401, 0.011704222299158573, 0.006557817105203867, -0.05622709169983864, 0.03797170892357826, -0.008961159735918045, -0.0014698730083182454, 0.04696992039680481, -0.01996946521103382, -0.01608995348215103, -0.04127362743020058, -0.022721480578184128, 0.019464295357465744, 0.007231798954308033, 0.03962024301290512, -0.04705437272787094, 0.08118832111358643, -0.007023465819656849, -0.016265667974948883, -0.040747981518507004, 0.001482207328081131, -0.015560392290353775, 0.030605802312493324, -0.020808765664696693, -0.046609532088041306, -0.05106115713715553, -0.06418654322624207, -0.004771624691784382, 0.03146849572658539, -0.024835282936692238, -0.032737135887145996, 0.033071719110012054, 0.02226872555911541, -0.0700099766254425, 0.0497417226433754, -0.025254517793655396, 0.026019267737865448, -0.047363754361867905, -0.013496574945747852, 0.02058546431362629, 0.03513022139668465, 0.007741331588476896, 0.01132593397051096, 0.046149156987667084, -0.035049401223659515, 0.0005791860749013722, -0.0081791952252388, 0.011127831414341927, 0.02808605320751667, -0.0016721606953069568, -0.004972164053469896 ]
[ -0.12296972423791885, -0.012854312546551228, -0.029086360707879066, -0.03238346427679062, -0.0333210751414299, -0.04009131342172623, 0.02053452469408512, 0.005160774104297161, 0.007893417030572891, -0.013795437291264534, 0.0030799757223576307, -0.03941558673977852, 0.019506115466356277, 0.011067367158830166, 0.07718061655759811, -0.000984742771834135, -0.011411946266889572, -0.049711067229509354, -0.0032509020529687405, -0.00452400790527463, 0.03600567579269409, 0.01734081655740738, -0.016332829371094704, -0.05329851433634758, 0.026414645835757256, 0.04925311729311943, 0.03176519274711609, -0.06324253976345062, 0.01427526120096445, -0.21054977178573608, 0.007761108689010143, -0.04984751716256142, 0.046929094940423965, -0.0297200009226799, -0.028481315821409225, 0.029024044051766396, -0.00014174140233080834, 0.03425030782818794, -0.011523724533617496, -0.0068733845837414265, -0.007296351715922356, 0.03176200017333031, -0.030933162197470665, -0.01563546434044838, 0.037459343671798706, -0.03445548936724663, -0.022558895871043205, -0.021393314003944397, 0.016787584871053696, 0.02145480364561081, -0.0552125982940197, -0.021971318870782852, 0.01985015533864498, -0.042381543666124344, 0.006056000478565693, 0.004418368451297283, 0.04961521923542023, 0.09825103729963303, 0.0379645861685276, 0.040947653353214264, 0.04171769320964813, -0.024704596027731895, -0.13935907185077667, 0.12168062478303909, 0.01240214891731739, 0.0531352199614048, 0.01429633516818285, -0.03132745996117592, -0.026775134727358818, 0.06707069277763367, 0.04886401817202568, -0.015685902908444405, 0.003535853000357747, 0.06009085103869438, 0.042300995439291, -0.022447792813181877, -0.019070100039243698, 0.01915501058101654, 0.048464834690093994, -0.024162916466593742, -0.03785983845591545, -0.037286970764398575, -0.003870119107887149, -0.012134997174143791, -0.026126714423298836, 0.01823006011545658, -0.01059003733098507, 0.03798110783100128, 0.015385470353066921, 0.011389456689357758, 0.023257261142134666, 0.003037246409803629, 0.00038536908687092364, -0.017150022089481354, -0.11343534290790558, -0.03490276634693146, -0.0021691445726901293, 0.015653831884264946, -0.05442243069410324, 0.40787604451179504, -0.018175391480326653, -0.035316962748765945, 0.014130446128547192, 0.002988083055242896, -0.022258207201957703, 0.013935857452452183, -0.015370872803032398, -0.046047136187553406, 0.004575037397444248, -0.05076724663376808, 0.024941228330135345, -0.0015953837428241968, 0.018376076593995094, -0.04138115793466568, -0.004118005279451609, 0.025444667786359787, 0.04868783429265022, -0.000735608278773725, 0.01020903792232275, 0.04244161769747734, 0.010203160345554352, -0.014760344289243221, 0.013485218398272991, 0.0215564277023077, 0.037529654800891876, -0.030254829674959183, 0.005269954912364483, 0.04792388901114464, 0.028657255694270134, 0.04164809733629227, 0.07052349299192429, -0.06652675569057465, -0.09009109437465668, -0.020382052287459373, 0.013837281614542007, -0.00619933707639575, 0.0259294044226408, -0.043452680110931396, 0.028065506368875504, 0.0028336546383798122, 0.01594589650630951, -0.04408852010965347, 0.018169518560171127, 0.01930767297744751, -0.04231489822268486, 0.10364223271608353, -0.01697661727666855, -0.03806646913290024, 0.00023464426340069622, -0.03195133060216904, 0.032882384955883026, 0.04040943831205368, -0.006277778185904026, -0.049189597368240356, 0.018560806289315224, 0.03762796148657799, 0.07429888844490051, -0.02364095114171505, -0.03292187675833702, -0.024120232090353966, -0.06384897977113724, -0.02796039916574955, -0.05789521709084511, 0.0549473911523819, 0.04865330830216408, -0.07639309763908386, -0.03309585899114609, 0.022957615554332733, 0.01652468554675579, -0.1157357394695282, 0.0240207239985466, 0.007493969053030014, -0.09299089759588242, -0.01339730340987444, 0.0654907375574112, -0.005092769395560026, -0.023277057334780693, -0.0022343224845826626, 0.044117413461208344, 0.028931958600878716, 0.0036000630352646112, -0.003942045383155346, -0.010008043609559536, 0.0057275001890957355, 0.0066249920055270195, -0.04051661491394043, -0.04503759741783142, -0.02450190670788288, -0.010071619413793087, -0.004822704009711742, -0.005539333913475275, -0.012957332655787468, -0.09017162770032883, 0.06939801573753357, -0.04627791792154312, -0.03250700607895851, 0.01875380426645279, -0.013815588317811489, 0.004321827087551355, -0.01269670482724905, 0.046410154551267624, 0.027832135558128357, -0.0070099434815347195, 0.027020776644349098, -0.022598983719944954, 0.0584024116396904, 0.030944108963012695, -0.06529295444488525, 0.08423445373773575, 0.05145479738712311, -0.024821428582072258, -0.020260684192180634, 0.026334688067436218, 0.003227517008781433, -0.01994009129703045, -0.018021713942289352, 0.003036562819033861, 0.026105359196662903, 0.008431944996118546, 0.0320696160197258, -0.0209392998367548, -0.02727452851831913, 0.004228333942592144, -0.32976022362709045, -0.04038628563284874, 0.013913989067077637, -0.017654884606599808, 0.040470387786626816, -0.06395207345485687, 0.0023832886945456266, -0.021991483867168427, 0.002549272496253252, 0.004864560440182686, 0.05016222223639488, 0.0007024509250186384, -0.0021847838070243597, -0.11395251750946045, 0.01429132092744112, 0.02983396127820015, -0.04368511214852333, -0.05501723289489746, -0.012501303106546402, 0.030426722019910812, 0.015898223966360092, 0.013003209605813026, -0.024019187316298485, -0.06629330664873123, -0.007359671872109175, -0.0429910346865654, 0.11004247516393661, -0.009273632429540157, 0.11952056735754013, -0.04928719997406006, 0.027095884084701538, -0.009119497612118721, -0.02464086189866066, -0.05530982092022896, -0.0017923787236213684, -0.04337828606367111, -0.009747931733727455, -0.0019381236052140594, 0.04774854704737663, -0.038148220628499985, -0.04863053932785988, -0.000797174870967865, -0.06282022595405579, -0.0420876145362854, -0.015516838990151882, 0.001137184794060886, -0.03796113282442093, -0.0398128516972065, 0.023677203804254532, 0.06886552274227142, -0.012449919246137142, 0.02611173316836357, 0.003873599926009774, 0.025190668180584908, 0.021690407767891884, -0.015779783949255943, -0.05844217166304588, 0.010698721744120121, 0.006713965442031622, -0.03518294170498848, 0.014921370893716812, 0.015195106156170368, 0.027994802221655846, -0.012061434797942638, -0.02020038478076458, 0.028697755187749863, 0.013056743890047073, -0.029753658920526505, 0.06350727379322052, -0.03033452481031418, -0.01224791444838047, 0.07221964746713638, 0.02681923471391201, 0.0258644986897707, 0.031015660613775253, 0.04624123126268387, -0.018189825117588043, -0.004300834611058235, 0.03845163807272911, 0.020622625946998596, 0.01924358494579792, -0.0019504642114043236, 0.0680680125951767, -0.04568272829055786, -0.01698412001132965, 0.03590264543890953, 0.011523992754518986, 0.014246337115764618, 0.051738839596509933, -0.04543866217136383, -0.0036540930159389973, -0.0020828444976359606, 0.007989848963916302, -0.03314029797911644, 0.031920839101076126, -0.012645600363612175, -0.2521122694015503, 0.011842935346066952, 0.06095907464623451, 0.04663035273551941, -0.01968981884419918, 0.034216947853565216, 0.02957228571176529, -0.07970353215932846, -0.029010873287916183, 0.005735346116125584, -0.02218414470553398, 0.05292287468910217, 0.00897554587572813, -0.03708004951477051, 0.06702835112810135, -0.03378451243042946, 0.00121740298345685, 0.002625072607770562, 0.043454479426145554, -0.009055749513208866, 0.035057101398706436, 0.017734477296471596, 0.2004649043083191, 0.0043060053139925, 0.02325594052672386, 0.0018604685319587588, 0.03457072377204895, -0.004928454756736755, 0.11975203454494476, 0.0055592735297977924, -0.011578124947845936, 0.007273166906088591, 0.06791365146636963, 0.02451968751847744, 0.024898095056414604, -0.07945150882005692, -0.02670718915760517, 0.062141261994838715, -0.021747343242168427, -0.004730019718408585, 0.008640800602734089, 0.014429738745093346, -0.05395325645804405, 0.013356240466237068, 0.0824965089559555, 0.03871021419763565, -0.006140899378806353, -0.031552303582429886, -0.028686078265309334, -0.021393805742263794, -0.026743486523628235, -0.005179630126804113, 0.025863798335194588, -0.02361384406685829, 0.014106417074799538, 0.055195461958646774, 0.012271781452000141, -0.02927134558558464, -0.02642822079360485, -0.007264676969498396, -0.015271833166480064, 0.00928009208291769, 0.10644803941249847, 0.0256454236805439, 0.024360548704862595 ]
[ -0.011331453919410706, 0.011087670922279358, -0.011496595107018948, 0.0003163520887028426, -0.04584706947207451, -0.005687658675014973, 0.014357099309563637, -0.028198570013046265, 0.007149197161197662, 0.020648231729865074, 0.020075665786862373, -0.005410334561020136, 0.0598592571914196, -0.013579699210822582, 0.014750918373465538, 0.00483445730060339, -0.01877514086663723, -0.024405309930443764, 0.011239421553909779, 0.008118304423987865, 0.014507845975458622, 0.016920657828450203, 0.047905437648296356, -0.01418988686054945, 0.02349952794611454, 0.04210302606225014, 0.007656495552510023, -0.009190976619720459, 0.027984071522951126, -0.11314903199672699, -0.054934725165367126, -0.025443939492106438, -0.01740715093910694, -0.012162012979388237, -0.013939487747848034, -0.010876641608774662, 0.007452105171978474, 0.04770008474588394, -0.041253816336393356, -0.006758120376616716, -0.05659644678235054, 0.020357029512524605, 0.016287634149193764, 0.0386226512491703, 0.02199578657746315, -0.049468692392110825, -0.030993903055787086, -0.031974952667951584, 0.006962443236261606, 0.011442157439887524, -0.03040149062871933, 0.021766599267721176, 0.012655860744416714, -0.0011656183050945401, 0.05027139559388161, -0.03338233381509781, 0.012063573114573956, -0.00753818079829216, 0.05558297038078308, 0.01759559102356434, 0.03874162212014198, 0.009281456470489502, -0.03170011565089226, -0.05083571746945381, 0.028283623978495598, -0.031477589160203934, -0.019673695787787437, -0.002810564823448658, -0.028409887105226517, -0.02185894176363945, -0.01974916271865368, -0.030375614762306213, 0.009106454439461231, 0.02683628909289837, -0.03448016941547394, -0.03944960981607437, -0.009327828884124756, -0.027655955404043198, 0.02340562827885151, 0.000609271286521107, -0.019984673708677292, -0.010943382978439331, 0.045158304274082184, 0.0157136432826519, 0.05324533209204674, 0.060864079743623734, 0.018504833802580833, 0.018439147621393204, 0.021733347326517105, 0.012918328866362572, -0.0031773275695741177, 0.022264983505010605, -0.00558808259665966, 0.025257285684347153, -0.06736622005701065, -0.010004661045968533, 0.013363080099225044, 0.012733750976622105, -0.01979435794055462, 0.8210036158561707, 0.007481802720576525, 0.053387515246868134, 0.029470169916749, 0.020541111007332802, -0.0024308322463184595, 0.020759597420692444, 0.013850520364940166, -0.005722342524677515, 0.03640983626246452, -0.04185736924409866, 0.0178403127938509, 0.017613379284739494, 0.011067771352827549, 0.016298672184348106, -0.020546993240714073, 0.04776337742805481, -0.002319989027455449, 0.021311914548277855, 0.02114707976579666, 0.013743444345891476, 0.034332383424043655, 0.03354383260011673, -0.011185133829712868, 0.06343841552734375, 0.0625254288315773, -0.16636645793914795, -0.01143043115735054, -7.493757384708882e-33, -0.00599475996568799, -0.006291741039603949, -0.0071032182313501835, 0.005338212009519339, 0.008708666078746319, -0.06086253374814987, 0.02596660703420639, -0.009640386328101158, -0.00028686723089776933, -0.019681468605995178, 0.0071234870702028275, -0.015641797333955765, -0.018435945734381676, -0.020215915516018867, 0.07201993465423584, -0.028943514451384544, 0.007461644243448973, 0.008292445912957191, 0.024679863825440407, -0.012406955473124981, 0.02261263132095337, 0.01822456531226635, 0.014952686615288258, -0.002059925813227892, -0.00044004249502904713, 0.051670223474502563, 0.058639563620090485, 0.020185649394989014, 0.006102421786636114, -0.035750988870859146, 0.007465633098036051, -0.01737780123949051, -0.05446372553706169, -0.03866870328783989, 0.010376514866948128, -0.01712745800614357, 0.008610826916992664, 0.014515009708702564, -0.014880573377013206, -0.001871032640337944, -0.05865084007382393, -0.006398226134479046, -0.04856458306312561, 0.008452036418020725, 0.02844182774424553, -0.053701624274253845, -0.019687531515955925, 0.009073583409190178, 0.013752339407801628, -0.008802218362689018, -0.03591284528374672, 0.02144918404519558, 0.026844212785363197, -0.0025504750665277243, -0.03769102692604065, 0.02955787070095539, 0.00789609830826521, 0.008160613477230072, -0.005982949864119291, 0.049296148121356964, -0.018588652834296227, -0.019736602902412415, -0.036347609013319016, 0.049913883209228516, -0.03638982027769089, -0.009085794910788536, -0.014370694756507874, -0.034174300730228424, 0.028308482840657234, -0.0046377480030059814, -0.057746320962905884, 0.007008552085608244, -0.010128701105713844, -0.013669346459209919, -0.018105750903487206, -0.02746536023914814, -0.021730422973632812, 0.03546585887670517, -0.02653581090271473, 0.011201458051800728, 0.03424190729856491, -0.007616015616804361, -0.009792258031666279, 0.022118626162409782, 0.021782856434583664, 0.019881196320056915, -0.012407106347382069, -0.0019558086059987545, -0.012744846753776073, 0.028800958767533302, 0.061382927000522614, 0.025898542255163193, -0.019476186484098434, -0.020587865263223648, -0.01495866198092699, 7.03885796867195e-33, -0.01042934600263834, 0.03178887814283371, -0.022329259663820267, -0.0004613947821781039, -0.02149445377290249, -0.006175106391310692, 0.03324035182595253, -0.016429370269179344, -0.034120120108127594, -0.015253264456987381, 0.009275507181882858, 0.014123957604169846, -0.03487119451165199, 0.03154422342777252, 0.016553686931729317, -0.0014894506894052029, 0.0007175063947215676, 0.02587604708969593, 0.024771371856331825, -0.006715263705700636, 0.033775635063648224, 0.01229930855333805, 0.026606298983097076, -0.01052857842296362, 0.00897505134344101, 0.017769768834114075, -0.0324615016579628, 0.0058219521306455135, 0.022401655092835426, 0.03706492856144905, 0.028607070446014404, -0.03895367309451103, 0.014396184124052525, -0.00879061222076416, -0.030974125489592552, 0.02583998255431652, 0.008976497687399387, 0.004735804162919521, 0.02586057409644127, 0.057755522429943085, 0.019103841856122017, -0.05023699998855591, -0.0007135622436180711, 0.03676554560661316, 0.013843783177435398, 0.0005950769409537315, 0.005665091797709465, 0.014505650848150253, -0.019615888595581055, -0.024523641914129257, 0.04182778671383858, 0.034770067781209946, -0.004266851581633091, -0.015510914847254753, -0.0021294427569955587, -0.02309339866042137, -0.00500862393528223, -0.01841762289404869, -0.014018979854881763, 0.02621244639158249, -0.0322229228913784, 0.04025350511074066, -0.005355068948119879, 0.018179548904299736, 0.0034113589208573103, 0.0016774891410022974, -0.05217448249459267, -0.035748593509197235, -0.028942858800292015, -0.02098962478339672, -0.017294980585575104, -0.009463940747082233, 0.014213050715625286, 0.024073969572782516, -0.001736119738779962, -0.02262752130627632, -0.023676373064517975, 0.026799235492944717, -0.018711568787693977, 0.03441229835152626, 0.016904892399907112, 0.028432270511984825, 0.011666448786854744, -0.012738185003399849, -0.01768198050558567, 0.024867739528417587, 0.020459173247218132, 0.01019189041107893, -0.0073975916020572186, -0.02910779044032097, 0.006061241030693054, -0.013576586730778217, -0.012805960141122341, -0.005980371963232756, -0.01189683098345995, -1.2670964721905875e-8, -0.05242961272597313, 0.015541872940957546, -0.04761490598320961, -0.033394694328308105, 0.028603678569197655, 0.054233163595199585, -0.02775193192064762, -0.00775443110615015, 0.0028978828340768814, -0.012565217912197113, 0.004064556676894426, 0.05186714231967926, -0.04171884059906006, 0.03595398738980293, -0.0045465948060154915, -0.04628656059503555, 0.00918600894510746, -0.011167123913764954, 0.023826690390706062, -0.017792576923966408, 0.0233334731310606, 0.05648714676499367, 0.003944285213947296, 0.00042028131429105997, -0.055002275854349136, -0.02860720083117485, -0.046766165643930435, -0.04644116759300232, -0.02495645172894001, -0.020143233239650726, -0.011048689484596252, -0.01400805078446865, -0.026131974533200264, -0.004786150995641947, -0.02784198895096779, -0.024182898923754692, 0.0018541865283623338, 0.0002680145262274891, 0.015385933220386505, 0.01265188492834568, -0.03656173497438431, -0.031397730112075806, 0.01357947662472725, -0.043524838984012604, -0.014606066048145294, -0.004612711723893881, -0.026474229991436005, -0.06567246466875076, 0.04198532924056053, -0.0697111189365387, 0.02406083233654499, -0.02304016798734665, 0.01858063042163849, -0.017612822353839874, -0.005843073595315218, 0.04195564240217209, 0.013577661477029324, -0.07018379867076874, -0.026280200108885765, 0.03601557016372681, 0.03894279897212982, -0.02209097146987915, -0.02042130008339882, -0.0229629073292017 ]
roy-osheroves-tdd-kata-my-first-attempt
https://markhneedham.com/blog/2009/12/25/roy-osheroves-tdd-kata-my-first-attempt
false
2017-03-28 05:39:04
Luigi: Defining dynamic requirements (on output files)
[ "python", "luigi" ]
[ "Python" ]
In http://www.markhneedham.com/blog/2017/03/25/luigi-externalprogramtask-example-converting-json-csv/[my last blog post] I showed how to convert a JSON document containing meetup groups into a CSV file using Luigi, the Python library for building data pipelines. As well as creating that CSV file I wanted to go back to the https://www.meetup.com/meetup_api/[meetup.com API] and download all the members of those groups. This was a rough flow of what i wanted to do: * Take JSON document containing all groups * Parse that document and for each group: ** Call the /members endpoint ** Save each one of those files as a JSON file * Iterate over all those JSON files and create a members CSV file In the previous post we created the +++<cite>+++GroupsToJSON+++</cite>+++ task which calls the /groups endpoint on the meetup API and creates the file /tmp/groups.json. Our new task has that as its initial requirement: [source,python] ---- class MembersToCSV(luigi.Task): key = luigi.Parameter() lat = luigi.Parameter() lon = luigi.Parameter() def requires(self): yield GroupsToJSON(self.key, self.lat, self.lon) ---- But we also want to create a requirement on a task that will make those calls to the /members endpoint and store the result in a JSON file. One of the patterns that Luigi imposes on us is that each task should only create one file so actually we have a requirement on a collection of tasks rather than just one. It took me a little while to get my head around that! We don't know the parameters of those tasks at compile time - we can only calculate them by parsing the JSON file produced by +++<cite>+++GroupsToJSON+++</cite>+++. In Luigi terminology what we want to create is a http://luigi.readthedocs.io/en/stable/tasks.html#dynamic-dependencies[dynamic requirement]. A dynamic requirement is defined inside the run method of a task and can rely on the output of any tasks specified in the requires method, which is exactly what we need. This code does the delegating part of the job: [source,python] ---- class MembersToCSV(luigi.Task): key = luigi.Parameter() lat = luigi.Parameter() lon = luigi.Parameter() def run(self): outputs = [] for input in self.input(): with input.open('r') as group_file: groups_json = json.load(group_file) groups = [str(group['id']) for group in groups_json] for group_id in groups: members = MembersToJSON(group_id, self.key) outputs.append(members.output().path) yield members def requires(self): yield GroupsToJSON(self.key, self.lat, self.lon) ---- Inside our run method we iterate over the output of GroupsToJSON (which is our input) and we yield to another task as well as collecting its outputs in the array outputs that we'll use later. +++<cite>+++MembersToJSON+++</cite>+++ looks like this: [source,python] ---- class MembersToJSON(luigi.Task): group_id = luigi.IntParameter() key = luigi.Parameter() def run(self): results = [] uri = "https://api.meetup.com/2/members?&group_id={0}&key={1}".format(self.group_id, self.key) while True: if uri is None: break r = requests.get(uri) response = r.json() for result in response["results"]: results.append(result) uri = response["meta"]["next"] if response["meta"]["next"] else None with self.output().open("w") as output: json.dump(results, output) def output(self): return luigi.LocalTarget("/tmp/members/{0}.json".format(self.group_id)) ---- This task generates one file per group containing a list of all the members of that group. We can now go back to +++<cite>+++MembersToCSV+++</cite>+++ and convert those JSON files into a single CSV file: [source,python] ---- class MembersToCSV(luigi.Task): out_path = "/tmp/members.csv" key = luigi.Parameter() lat = luigi.Parameter() lon = luigi.Parameter() def run(self): outputs = [] for input in self.input(): with input.open('r') as group_file: groups_json = json.load(group_file) groups = [str(group['id']) for group in groups_json] for group_id in groups: members = MembersToJSON(group_id, self.key) outputs.append(members.output().path) yield members with self.output().open("w") as output: writer = csv.writer(output, delimiter=",") writer.writerow(["id", "name", "joined", "topics", "groupId"]) for path in outputs: group_id = path.split("/")[-1].replace(".json", "") with open(path) as json_data: d = json.load(json_data) for member in d: topic_ids = ";".join([str(topic["id"]) for topic in member["topics"]]) if "name" in member: writer.writerow([member["id"], member["name"], member["joined"], topic_ids, group_id]) def output(self): return luigi.LocalTarget(self.out_path) def requires(self): yield GroupsToJSON(self.key, self.lat, self.lon) ---- We then just need to add our new task as a requirement of the wrapper task: And we're ready to roll: [source,bash] ---- $ PYTHONPATH="." luigi --module blog --local-scheduler Meetup --workers 3 ---- We've defined the number of workers here as we can execute those calls to the /members endpoint in parallel and there are ~ 600 calls to make. All the https://gist.github.com/mneedham/de3c67dd198e53303923cf40739fb74c[code from both blog posts is available as a gist] if you want to play around with it. Any questions/advice let me know in the comments or I'm https://twitter.com/markhneedham[@markhneedham] on twitter.
In this post we show how to create requirements between Luigi tasks where those requirements aren't known at design time i.e. we have dynamic requirements.
null
[ -0.00011972268112003803, -0.03506818413734436, -0.007431198377162218, 0.006659160368144512, 0.06139038875699043, -0.005847319029271603, 0.02166607230901718, 0.0650472342967987, 0.00636141886934638, -0.03371863812208176, 0.004542329348623753, -0.04644305631518364, -0.09560137987136841, 0.018749304115772247, -0.024376628920435905, 0.05661933869123459, 0.07685238122940063, -0.008936109952628613, 0.009553379379212856, 0.01560384500771761, 0.033497706055641174, 0.08091060072183609, 0.017776282504200935, 0.035985663533210754, 0.02005893550813198, 0.003996275831013918, 0.0044179088436067104, 0.011867117136716843, -0.025216009467840195, -0.0070628938265144825, 0.0010767512721940875, -0.006011433433741331, -0.00432103406637907, -0.0044978102669119835, 0.010196259245276451, -0.01277147140353918, -0.013678540475666523, 0.007550177164375782, 0.010157972574234009, 0.018238913267850876, -0.04222254455089569, 0.04770573228597641, -0.022167319431900978, 0.026608075946569443, -0.037446532398462296, 0.020982204005122185, -0.014925547875463963, 0.02610740438103676, -0.025869062170386314, -0.007095629349350929, -0.05993696302175522, 0.022029757499694824, -0.03519163653254509, -0.009041683748364449, -0.0006118490709923208, 0.03892447054386139, 0.024968555197119713, -0.0579257495701313, 0.03873016685247421, -0.023703914135694504, -0.012384911999106407, 0.002095041796565056, 0.025411777198314667, 0.04116497188806534, 0.020789477974176407, -0.03920388221740723, 0.002063591266050935, 0.046059586107730865, -0.05634697154164314, -0.016869977116584778, -0.013270857743918896, 0.027726732194423676, -0.025973878800868988, 0.004898836370557547, 0.009280790574848652, -0.054514963179826736, 0.012255390174686909, 0.058739837259054184, 0.009459570050239563, 0.07729838788509369, -0.02358534000813961, 0.017112648114562035, 0.031031480059027672, 0.033222734928131104, 0.002070125425234437, -0.022437047213315964, -0.04646635428071022, 0.008732626214623451, -0.07650503516197205, 0.045501161366701126, -0.0016356377163901925, -0.03314825892448425, 0.0018811937188729644, 0.01101639587432146, 0.016433900222182274, 0.007935967296361923, 0.01846502348780632, 0.03217624872922897, -0.0008392515010200441, -0.0030917907133698463, -0.05646688491106033, -0.0038105419371277094, -0.010398326441645622, 0.02200760692358017, -0.07752159237861633, -0.030190661549568176, -0.0031320308335125446, -0.010276934131979942, 0.013302774168550968, -0.0054861376993358135, 0.008551073260605335, -0.022770458832383156, -0.0431254580616951, -0.009937801398336887, -0.058849114924669266, 0.0726299062371254, 0.019218014553189278, -0.027333876118063927, -0.021076885983347893, 0.03168792650103569, 0.06159858778119087, 0.038132138550281525, -0.0051138391718268394, 0.07543063908815384, 0.014652073383331299, 0.041729219257831573, -0.012299450114369392, 0.027473289519548416, -0.0005542801227420568, -0.07435934990644455, 0.003729084972292185, 0.03668242692947388, -0.017946790903806686, 0.006172493565827608, 0.004106742795556784, -0.037288665771484375, -0.019212786108255386, 0.026928482577204704, 0.04085244983434677, 0.021357638761401176, -0.005650042090564966, -0.03295707702636719, -0.009102420881390572, -0.008541479706764221, 0.03116108849644661, 0.02646707370877266, -0.00886452291160822, -0.060515228658914566, -0.036071643233299255, 0.020091328769922256, 0.01685156673192978, -0.0021150412503629923, 0.037610284984111786, -0.03897928446531296, 0.029731784015893936, 0.09973172843456268, 0.03539091721177101, 0.041492149233818054, -0.010580750182271004, -0.020635936409235, 0.05817493051290512, 0.049105167388916016, -0.015969568863511086, 0.010849214158952236, -0.015339022502303123, -0.028409190475940704, 0.008066603913903236, 0.043936483561992645, 0.0017578874249011278, 0.0013692578068003058, -0.04067973420023918, -0.05177736654877663, 0.04463442787528038, -0.02493317984044552, -0.00843091495335102, 0.02854624204337597, 0.07719945162534714, 0.02786421589553356, 0.04178110882639885, -0.006119007244706154, -0.08496594429016113, 0.031709734350442886, -0.0002398212964180857, 0.007012656424194574, 0.005209554918110371, -0.002656682161614299, 0.08147222548723221, 0.0219486765563488, -0.02563970349729061, 0.027860106900334358, -0.06511480361223221, -0.07788237929344177, -0.010584610514342785, -0.022729545831680298, 0.060110703110694885, -0.04190004616975784, -0.009353360161185265, 0.07537622004747391, 0.02457714080810547, 0.03935279697179794, -0.005580803379416466, -0.021018093451857567, 0.028910940513014793, -0.05611950531601906, -0.059602100402116776, 0.0462174117565155, 0.012995705008506775, -0.03204083442687988, -0.024182338267564774, 0.026956461369991302, -0.021828345954418182, -0.012436773627996445, 0.044606033712625504, -0.029713913798332214, 0.025629013776779175, 0.038424331694841385, 0.0115392180159688, -0.00012923010217491537, 0.06144988536834717, -0.04126825928688049, 0.049770548939704895, 0.013722026720643044, -0.022126194089651108, 0.006856158375740051, -0.014859545975923538, 0.11524105072021484, 0.0636499896645546, -0.013876322656869888, -0.0369914211332798, 0.018099939450621605, 0.0062432377599179745, -0.045425768941640854, -0.008482935838401318, -0.004330254625529051, -0.0341155081987381, 0.001140295178629458, -0.024882955476641655, -0.027043309062719345, -0.003787277266383171, -0.023139704018831253, -0.01346892211586237, 0.07896752655506134, -0.0233582966029644, 0.038761064410209656, 0.013630174100399017, -0.037690989673137665, 0.004264872521162033, -0.02979440800845623, -0.04479090869426727, -0.010909087024629116, 0.0012015916872769594, 0.006704146973788738, 0.02585461363196373, -0.03874170780181885, -0.018735263496637344, -0.025465654209256172, -0.026289833709597588, 0.02979014627635479, 0.043984826654195786, 0.04829652979969978, -0.01186679769307375, 0.04510185867547989, -0.024133602157235146, 0.002291569020599127, -0.003997837658971548, -0.0427212193608284, -0.043857574462890625, -0.013999083079397678, 0.026553131639957428, 0.032287031412124634, 0.053768008947372437, 0.01058331597596407, 0.0067689488641917706, 0.006961027625948191, -0.033046264201402664, -0.02069592848420143, 0.000025152672606054693, -0.012062843888998032, -0.010888495482504368, -0.03915086388587952, -0.03497597947716713, 0.05164467543363571, -0.030982963740825653, 0.0017721710028126836, -0.005882785655558109, -0.05325515568256378, 0.03704516962170601, -0.07208919525146484, -0.04898199439048767, -0.03209255263209343, 0.01916361041367054, 0.03788848593831062, -0.015226480551064014, -0.005229155533015728, 0.055119000375270844, 0.02700258232653141, -0.004054289311170578, 0.016351094469428062, 0.004619678016752005, 0.026413211598992348, -0.00344967283308506, 0.024575987830758095, 0.050532929599285126, -0.005653380881994963, -0.025132322683930397, -0.03060293197631836, 0.010013645514845848, -0.024135764688253403, -0.2937001585960388, 0.025282150134444237, -0.022965559735894203, -0.021580876782536507, 0.02237309142947197, 0.001632276806049049, 0.006335052195936441, -0.03820081427693367, -0.023238319903612137, 0.027143163606524467, -0.03694681450724602, -0.03343716636300087, -0.02742200903594494, 0.05705190449953079, -0.00869719311594963, 0.036079440265893936, -0.0035049663856625557, -0.04008469358086586, 0.007516070734709501, 0.029580552130937576, -0.011913997121155262, -0.05784155800938606, -0.026800058782100677, 0.059251777827739716, 0.0052205948159098625, 0.05589038133621216, -0.07899539172649384, 0.018707484006881714, -0.049831412732601166, -0.020316464826464653, 0.002606647554785013, -0.03266257420182228, 0.005422279238700867, -0.01764049008488655, -0.001651591737754643, -0.0282216127961874, 0.0591040700674057, 0.02670440822839737, 0.009866605512797832, -0.0013607300352305174, -0.029538629576563835, -0.026611128821969032, -0.03337131068110466, -0.020381763577461243, 0.08938726782798767, -0.005758903920650482, -0.07364749908447266, -0.014599650166928768, -0.06325260549783707, 0.07575673609972, -0.006426617503166199, -0.05740122124552727, -0.0289273913949728, 0.05884002521634102, -0.013270013965666294, -0.015515991486608982, 0.011209863238036633, -0.009278316050767899, -0.04272279515862465, -0.0186082124710083, -0.01469398383051157, -0.021112069487571716, -0.027677863836288452, -0.054271310567855835, -0.022637896239757538, -0.024501482024788857, -0.07435178756713867, -0.007038932293653488, 0.03200531005859375, 0.03507866710424423, -0.02583758346736431, 0.017561091110110283, -0.03885093331336975, -0.10432267934083939, -0.00315265404060483, -0.016263749450445175, -0.037445638328790665, 0.012460035271942616, 0.037366170436143875, 0.05143008008599281, -0.04789299517869949, -0.057146381586790085, 0.033698469400405884, -0.019290773198008537, 0.020081641152501106, -0.006535924971103668, 0.033629171550273895, -0.01142657920718193, -0.019360892474651337, -0.010441787540912628, 0.05640115588903427, -0.009103615768253803, 0.010556514374911785, 0.022881411015987396, -0.012722921557724476, 0.02753703109920025, 0.015579036436975002, 0.006627039983868599, -0.0025179621297866106, 0.032720718532800674, 0.02701631188392639, -0.06500083208084106, -0.013325180858373642, -0.02396310120820999, -0.0049816700629889965, -0.026741039007902145, -0.060987744480371475, 0.029744649305939674, 0.031932856887578964, 0.024799272418022156, -0.018795527517795563, -0.032706018537282944, 0.026036277413368225, -0.05810851231217384, 0.013941820710897446, 0.005685494747012854, 0.005467336159199476, 0.03633124753832817, 0.015848001465201378, -0.012075131759047508, -0.07399293035268784, 0.021793082356452942, 0.008473306894302368, -0.028877975419163704, -0.04367626830935478, -0.007805916015058756, -0.009828995913267136, -0.00991816446185112, 0.027976276353001595, 0.006343243643641472, -0.052801840007305145, 0.03326103091239929, 0.02911902591586113, -0.046975113451480865, -0.009971477091312408, -0.03423178195953369, -0.05416715890169144, -0.034304361790418625, 0.004665621556341648, 0.01187314186245203, -0.002794662257656455, -0.0018921068403869867, -0.009639219380915165, 0.022172220051288605, 0.054586563259363174, 0.035294096916913986, 0.006681372877210379, 0.031118305400013924, 0.02554912306368351, 0.010936150327324867, 0.01598677784204483, -0.04999304562807083, 0.002522938186302781, -0.021040255203843117, -0.020791254937648773, -0.03781988099217415, 0.032277029007673264, 0.0045228456147015095, -0.01801968924701214, -0.03840037062764168, 0.04000196233391762, -0.07941332459449768, -0.018765026703476906, -0.0035294201225042343, -0.010956129059195518, 0.06883619725704193, 0.003636094508692622, 0.007094684522598982, -0.00790130253881216, 0.016127154231071472, 0.011101698502898216, 0.03582768514752388, -0.000709403888322413, 0.010906151495873928, -0.016721835359930992, 0.0012520714662969112, 0.03048490360379219, 0.015075619332492352, 0.017977476119995117, 0.02973729744553566, -0.0016591917956247926, -0.02465837076306343, -0.002096867887303233, 0.00022026135411579162, 0.046934835612773895, 0.02117229625582695, 0.009886245243251324, -0.0013515740865841508, -0.01686917431652546, -0.01685422845184803, -0.03449906408786774, -0.004262255970388651, -0.011979074217379093, -0.02443806454539299, -0.01341111958026886, -0.08119122684001923, 0.044369492679834366, 0.026474256068468094, 0.0002806790580507368, -0.002470591804012656, -0.009704096242785454, 0.0007363993790932, -0.023229340091347694, 0.014162993989884853, 0.05281718820333481, -0.06464455276727676, -0.017605796456336975, -0.006020314991474152, 0.00953731406480074, -0.015109200030565262, 0.009588561952114105, -0.033248309046030045, -0.02168050780892372, -0.04108905792236328, 0.030239632353186607, -0.0483568049967289, -0.02859978936612606, -0.046772267669439316, 0.028321200981736183, 0.007333106826990843, -0.032803382724523544, 0.02459520474076271, 0.004052184522151947, -0.01724664680659771, -0.021057454869151115, 0.029520615935325623, -0.00814054999500513, 0.00007581269164802507, 0.04291940852999687, -0.031752001494169235, 0.04089578986167908, -0.05038441717624664, 0.0261695459485054, 0.033504411578178406, -0.03389507159590721, 0.002867773873731494, -0.05521203204989433, -0.0019378230208531022, 0.0016445874935016036, 0.057824164628982544, -0.006200478877872229, -0.018997780978679657, -0.024138115346431732, -0.0005413310718722641, -0.016077827662229538, -0.009622345678508282, -0.012239455245435238, -0.021399423480033875, 0.014404729008674622, 0.05578603968024254, 0.042743053287267685, 0.02560221031308174, 0.007133003324270248, -0.03683455288410187, 0.04347614943981171, -0.07316149026155472, -0.045012641698122025, -0.014863730408251286, -0.018759746104478836, -0.0047640386037528515, 0.00533538730815053, 0.030569735914468765, -0.058730874210596085, 0.06743856519460678, 0.03635827451944351, 0.040128208696842194, 0.05877860635519028, -0.0030796874780207872, 0.03340933844447136, -0.029687533155083656, -0.013829080387949944, -0.0992332473397255, 0.00680598383769393, 0.027286004275083542, 0.0011758031323552132, -0.04181719571352005, -0.003230787580832839, -0.03589024394750595, 0.06466888636350632, -0.06858155876398087, -0.03385291248559952, 0.04807744175195694, -0.01592784933745861, 0.012752588838338852, -0.004498678725212812, -0.051013391464948654, 0.016710180789232254, 0.06515835225582123, -0.04787840694189072, 0.0006374778458848596, -0.045116130262613297, 0.06644190847873688, 0.018271228298544884, 0.018054863438010216, -0.017651889473199844, -0.0075771380215883255, 0.06974488496780396, 0.007765591610223055, -0.02002149261534214, 0.061912912875413895, -0.024548660963773727, 0.03581104800105095, 0.011964577250182629, -0.025997068732976913, -0.013158129528164864, 0.03243840113282204, -0.014117447659373283, -0.04929494857788086, 0.035486750304698944, 0.02447132021188736, -0.007187312003225088, -0.0460655651986599, 0.07413997501134872, 0.006221034098416567, -0.057172615081071854, -0.05648375302553177, 0.03697023168206215, -0.04645682871341705, -0.010320625267922878, -0.018960002809762955, 0.011367706581950188, -0.031272660940885544, 0.04410988837480545, -0.0021231358405202627, 0.013788958080112934, 0.06797803938388824, 0.013318178243935108, -0.01902930438518524, -0.022339290007948875, 0.08479221910238266, 0.07793138176202774, 0.021839801222085953, 0.03580722585320473, 0.043294843286275864, -0.012727838940918446, -0.055861108005046844, -0.003544552717357874, -0.02834157459437847, -0.00821198895573616, 0.004025763366371393, -0.004281365312635899, 0.08540790528059006, -0.0021143723279237747, 0.07077129185199738, -0.019052617251873016, -0.025363927707076073, -0.01639586314558983, 0.010090438649058342, 0.0257410891354084, 0.053377825766801834, 0.004387469030916691, 0.06585214287042618, -0.01612432859838009, -0.02628900669515133, 0.048640176653862, 0.0015550310490652919, -0.024737471714615822, 0.017292721197009087, -0.013101226650178432, 0.005997771397233009, 0.034876879304647446, 0.05700090527534485, 0.07354839146137238, 0.0001767966605257243, 0.008047916926443577, -0.008529393002390862, 0.006954922806471586, -0.018672555685043335, 0.012108408845961094, -0.01183250267058611, -0.02680390700697899, -0.008110967464745045, -0.04764115810394287, 0.00006481540185632184, -0.01205894723534584, -0.043626658618450165, 0.04550155997276306, -0.010560115799307823, 0.03250185400247574, -0.02041306532919407, 0.011124636046588421, -0.012098267674446106, -0.05925972759723663, -0.030504995957016945, -0.03557150438427925, -0.06985063850879669, 0.0001750947121763602, 0.03369095176458359, 0.0009506865171715617, -0.004465724807232618, -0.021794963628053665, -0.008600857108831406, -0.01380007155239582, 0.028991810977458954, -0.05149791017174721, -0.03671246021986008, 0.020290588960051537, 0.0036277950275689363, 0.006236966233700514, 0.024509061127901077, 0.05727486312389374, -0.02354268915951252, 0.004792316816747189, -0.047226741909980774, 0.01748555153608322, 0.04813186079263687, 0.019906384870409966, 0.023620804771780968, -0.0742284432053566, 0.026170819997787476, 0.023757455870509148, -0.002603448461741209, -0.08493878692388535, 0.030726172029972076, 0.0514499768614769, 0.005161323118954897, 0.03788021206855774, 0.025923991575837135, -0.002897374564781785, -0.04597993567585945, -0.02410290762782097, -0.014728243462741375, 0.02683900110423565, 0.06070178747177124, -0.01227584294974804, 0.09064174443483353, 0.05308772996068001, -0.02917567826807499, -0.01758778654038906, -0.024241313338279724, 0.000827261246740818, 0.018731892108917236, -0.03728082403540611, -0.045509811490774155, -0.03331199288368225, -0.06269033253192902, -0.05232517048716545, 0.012835932895541191, -0.018488619476556778, -0.008770948275923729, 0.01638607122004032, 0.004981000442057848, -0.05133627727627754, 0.0186558049172163, -0.048316147178411484, 0.02687242068350315, -0.009396261535584927, -0.014336141757667065, -0.007769961841404438, 0.033962786197662354, 0.012144070118665695, 0.018739087507128716, 0.009247519075870514, -0.04945892468094826, -0.0010522914817556739, 0.004563929978758097, 0.011558331549167633, 0.04507680982351303, -0.04580753669142723, 0.04521333426237106 ]
[ -0.1013050451874733, -0.008580460213124752, -0.034298233687877655, -0.04035714268684387, 0.04736658185720444, -0.050126440823078156, -0.021662136539816856, -0.008635466918349266, -0.016270073130726814, -0.005550744477659464, 0.007319502532482147, -0.05664113909006119, 0.019851358607411385, -0.00900761503726244, 0.03907904401421547, -0.035990674048662186, -0.0354534350335598, -0.03495585918426514, -0.050570692867040634, 0.06182006001472473, -0.04576481878757477, -0.03686509281396866, -0.03759271651506424, -0.021807806566357613, 0.019547386094927788, 0.05818426236510277, 0.038374338299036026, -0.028001096099615097, 0.005653416737914085, -0.2167365550994873, -0.0342329703271389, -0.0008328941185027361, 0.05358794704079628, 0.008953035809099674, 0.009877314791083336, 0.04507805407047272, 0.050404779613018036, -0.00893520936369896, -0.0028266855515539646, 0.07276760041713715, 0.03461949899792671, 0.06820088624954224, -0.02444012276828289, -0.008528622798621655, 0.01254572719335556, -0.02026936784386635, -0.070841945707798, -0.003994819708168507, -0.026638323441147804, 0.017725836485624313, -0.037780243903398514, 0.005557331722229719, -0.02199793979525566, -0.018599405884742737, -0.0037864157930016518, 0.06909511983394623, 0.051177140325307846, 0.02371385507285595, -0.03353945538401604, 0.01878279261291027, -0.016389116644859314, -0.023112641647458076, -0.12795016169548035, 0.07502780109643936, 0.014475100673735142, 0.03700750321149826, -0.07461011409759521, 0.01063007116317749, -0.003516028169542551, 0.05112220719456673, -0.0628364160656929, -0.02814413607120514, -0.021282516419887543, 0.061374034732580185, 0.03350893408060074, -0.01948675885796547, -0.018225716426968575, 0.015152822248637676, 0.04210319742560387, -0.025924380868673325, -0.05803922563791275, -0.007808340713381767, 0.00040084539796225727, 0.009985034354031086, -0.0027108765207231045, -0.01788274571299553, -0.004567270167171955, 0.047190386801958084, 0.03643065690994263, 0.03481978550553322, 0.02089199423789978, -0.022053027525544167, 0.025584695860743523, 0.04060346633195877, -0.08203000575304031, -0.022029278799891472, 0.025396747514605522, 0.025149881839752197, -0.022513816133141518, 0.3907501995563507, -0.05843968316912651, -0.032530948519706726, 0.06734021008014679, 0.0340178944170475, -0.014989412389695644, -0.0072879851795732975, 0.0037981325294822454, -0.03808662295341492, 0.05530256778001785, -0.032391633838415146, -0.017115123569965363, -0.0002809556608553976, 0.03246157988905907, -0.08447901159524918, 0.018937749788165092, -0.017942920327186584, -0.006917470600455999, 0.01400226540863514, -0.040966298431158066, 0.017989104613661766, 0.06055985763669014, 0.01671617291867733, 0.04022593051195145, 0.018339240923523903, -0.007267016917467117, 0.027988119050860405, -0.0010937389452010393, 0.01623007468879223, 0.07763250172138214, 0.01713191717863083, 0.047519050538539886, 0.0061499690636992455, -0.06384024024009705, 0.011054123751819134, 0.00027356031932868063, 0.007770522963255644, 0.024418020620942116, -0.02321450784802437, -0.029768161475658417, 0.02876286581158638, 0.04704591631889343, -0.026016604155302048, 0.023159662261605263, -0.03010132722556591, -0.014732974581420422, 0.13342806696891785, -0.03091241419315338, -0.016260197386145592, -0.008974023163318634, -0.0316760316491127, -0.0054948702454566956, 0.0384686142206192, -0.02302430011332035, -0.035631708800792694, -0.006203558295965195, 0.01089221891015768, 0.06489678472280502, -0.022947801277041435, -0.03948048874735832, 0.01969253458082676, -0.07849124819040298, -0.05469714477658272, -0.015493873506784439, 0.08138246089220047, 0.07247508317232132, -0.11829759925603867, -0.019521286711096764, -0.007806127425283194, -0.02326786145567894, -0.09222696721553802, -0.001436074380762875, 0.020334145054221153, -0.045148950070142746, 0.04529787227511406, 0.06097438931465149, -0.012341195717453957, -0.021441137418150902, 0.021005162969231606, 0.06273479014635086, 0.010631018318235874, -0.013567905873060226, 0.01808932051062584, -0.05349919945001602, -0.006816493347287178, -0.05048332363367081, -0.02276221476495266, -0.05101484805345535, -0.01722576469182968, -0.009040138684213161, 0.013776096515357494, -0.03192951902747154, -0.013819120824337006, -0.0672043189406395, 0.029750177636742592, -0.005692857317626476, 0.012971971184015274, 0.02005118690431118, -0.006275020074099302, -0.017352139577269554, -0.03479836881160736, 0.0009091856773011386, 0.024991584941744804, 0.026576803997159004, 0.028007524088025093, -0.05752832442522049, -0.012978112325072289, 0.07414691150188446, -0.02970781922340393, 0.05342299863696098, 0.011654015630483627, -0.021475279703736305, -0.022235888987779617, -0.015412172302603722, 0.007026034407317638, -0.01755129173398018, -0.014724859036505222, -0.0038908645510673523, -0.01234356313943863, 0.008131539449095726, 0.04582236707210541, -0.038599155843257904, -0.048909351229667664, -0.031943272799253464, -0.34134387969970703, -0.01763429492712021, 0.0143436249345541, 0.0005240462487563491, -0.0018328740261495113, -0.05761649087071419, 0.00021751724125351757, 0.000036768084100913256, -0.04819634184241295, 0.05690765753388405, 0.13561634719371796, 0.004367972258478403, 0.013792702928185463, -0.05795453488826752, -0.021616851910948753, 0.03367386758327484, -0.018474819138646126, -0.030486196279525757, -0.021288661286234856, 0.04066093638539314, -0.005299266893416643, -0.024338386952877045, -0.052765604108572006, -0.012643645517528057, -0.011174388229846954, -0.0395924374461174, 0.09118033200502396, 0.025101572275161743, 0.06035809963941574, -0.03561468422412872, 0.04685763269662857, 0.04196719825267792, -0.019546234980225563, -0.08407632261514664, -0.053309593349695206, -0.03950203210115433, 0.0021760922390967607, 0.026240678504109383, 0.0356135219335556, 0.0039336467161774635, -0.007668227422982454, 0.03592759743332863, -0.01972655951976776, -0.06182378903031349, -0.004567056428641081, 0.0035653088707476854, 0.007623026147484779, 0.016223737969994545, -0.0018214473966509104, 0.029485251754522324, 0.02875915914773941, 0.008823191747069359, 0.05794832110404968, 0.04075397178530693, -0.017641626298427582, -0.03296884149312973, -0.055056650191545486, -0.0214780755341053, 0.007550704758614302, -0.02489754557609558, 0.018571320921182632, 0.03853227570652962, 0.04563485085964203, 0.006589713506400585, 0.0008770182612352073, 0.0005497019737958908, -0.006547025870531797, 0.0033714149612933397, 0.03736722469329834, -0.010947106406092644, 0.003746814327314496, 0.0687335953116417, -0.01672488823533058, 0.007064320612698793, 0.035343632102012634, 0.007453893776983023, -0.016157886013388634, -0.05526578798890114, 0.04816650599241257, -0.022337092086672783, 0.03237653151154518, 0.01330417301505804, 0.021350298076868057, -0.00999721884727478, 0.02456909604370594, 0.06744160503149033, -0.02973470464348793, 0.03453759476542473, 0.011560873128473759, -0.010820616036653519, -0.030012836679816246, -0.04378331080079079, -0.027007659897208214, 0.016782760620117188, 0.05158154293894768, 0.022530866786837578, -0.2762148380279541, 0.044847145676612854, 0.03112441673874855, 0.046071987599134445, 0.002844854025170207, 0.04550860822200775, 0.038522910326719284, -0.07379273325204849, -0.0035514954943209887, 0.06509259343147278, 0.030054915696382523, 0.022703904658555984, 0.02707471139729023, -0.028566604480147362, 0.0458294153213501, -0.000363960542017594, 0.03427177667617798, 0.02804240584373474, -0.012399091385304928, 0.01945611648261547, 0.009655855596065521, -0.016996419057250023, 0.22922015190124512, -0.02284109592437744, -0.0017136608948931098, 0.03255132585763931, -0.0072833336889743805, 0.007253188639879227, 0.07586989551782608, 0.018566692247986794, -0.01627609133720398, -0.025741182267665863, 0.06007957458496094, 0.005824254360049963, 0.01862310990691185, -0.05418615788221359, -0.014017158187925816, 0.041520003229379654, 0.006845548748970032, 0.0071256947703659534, -0.052469369024038315, 0.002951535861939192, -0.03685799241065979, -0.0017312491545453668, 0.0619167760014534, 0.013302279636263847, -0.0526326522231102, -0.08224531263113022, -0.04476604238152504, 0.0051218485459685326, -0.0468505322933197, -0.05511316657066345, -0.025416631251573563, -0.02893088385462761, 0.0021260075736790895, 0.07057993113994598, 0.02054084651172161, 0.009870734997093678, 0.03314374387264252, 0.047551799565553665, 0.0015474819811061025, 0.011335201561450958, 0.10362718254327774, 0.04288667440414429, -0.012461290694773197 ]
[ -0.05482843518257141, 0.04575463384389877, -0.040147412568330765, 0.03223840519785881, 0.0073228017427027225, -0.0046602776274085045, -0.021494990214705467, 0.0612000934779644, -0.016165724024176598, -0.07526819407939911, -0.03526538610458374, 0.006863889284431934, 0.01198019552975893, 0.002789367688819766, 0.044819001108407974, -0.056706205010414124, -0.023493759334087372, 0.012786106206476688, 0.04241587966680527, -0.03069850243628025, -0.0089708948507905, 0.015726707875728607, 0.000020704319467768073, 0.009652562439441681, -0.04223533719778061, 0.01013754028826952, -0.0036185034550726414, 0.009774398058652878, 0.01644783653318882, -0.09198587387800217, -0.03214072808623314, 0.0036565803457051516, 0.043036941438913345, -0.0137436892837286, 0.026054367423057556, 0.04154243692755699, 0.008080098778009415, -0.04436247795820236, -0.0008806322002783418, -0.011977147310972214, -0.007484088651835918, 0.035685375332832336, -0.006190060637891293, -0.03230440989136696, 0.005179827567189932, 0.00882392842322588, -0.047568004578351974, -0.03588040918111801, -0.030880652368068695, 0.006216163281351328, -0.04099215939640999, 0.019764427095651627, 0.024597423151135445, 0.018278907984495163, 0.023914242163300514, 0.04099925234913826, -0.01771051250398159, -0.020304983481764793, 0.007755681406706572, -0.030041329562664032, -0.011408836580812931, -0.033548738807439804, -0.04560964182019234, -0.01229984499514103, -0.023978272452950478, 0.014522279612720013, -0.007921152748167515, 0.011473117396235466, 0.017760103568434715, -0.010487069375813007, -0.024157479405403137, 0.029380083084106445, -0.007669699843972921, -0.06323309987783432, -0.014159071259200573, 0.021923724561929703, -0.03533758595585823, -0.05223030224442482, -0.007408177945762873, 0.007268175017088652, -0.03389450162649155, -0.05057186260819435, -0.052089180797338486, 0.015995901077985764, 0.005067822989076376, -0.008193045854568481, 0.012579317204654217, -0.010375150479376316, -0.013876751996576786, 0.019932961091399193, -0.012629539705812931, 0.029803644865751266, 0.021260792389512062, 0.015135323628783226, -0.07626499980688095, 0.03553297370672226, 0.007594349794089794, -0.0062260618433356285, -0.002064121188595891, 0.813275933265686, -0.018899008631706238, 0.06328938156366348, 0.0732707753777504, -0.004208842758089304, 0.0041190506890416145, 0.01636989787220955, -0.025197569280862808, -0.005501022562384605, 0.0218617282807827, -0.02216210775077343, 0.030105087906122208, -0.02343645691871643, 0.0216019619256258, -0.0130678191781044, 0.02960176020860672, 0.023882247507572174, 0.030915571376681328, 0.06447772681713104, -0.0007127136923372746, 0.03375592082738876, 0.07011120021343231, -0.00531893502920866, 0.020048677921295166, -0.0038440555799752474, 0.03433484956622124, -0.15649299323558807, -0.024764789268374443, -7.230139552225537e-33, 0.08699076622724533, -0.015295046381652355, 0.011694350279867649, 0.0019548507407307625, 0.01987094059586525, -0.010930332355201244, -0.023676998913288116, 0.049138087779283524, -0.024686340242624283, -0.029051056131720543, -0.002659166930243373, -0.00770666915923357, 0.005743146874010563, -0.0033085583709180355, 0.009397651068866253, -0.03891254588961601, -0.014667869545519352, 0.02541579119861126, -0.006271761376410723, 0.03425850719213486, 0.0578913688659668, 0.007016721647232771, 0.002280913759022951, 0.03043188527226448, 0.003856286406517029, 0.04840870201587677, -0.0236202459782362, 0.0007169038872234523, -0.026673918589949608, -0.03621096536517143, -0.02983631007373333, 0.029605282470583916, 0.0032701382879167795, -0.004929535090923309, 0.03843468427658081, -0.00606632512062788, 0.0026909380685538054, -0.00021590730466414243, -0.03744103014469147, -0.03481927886605263, -0.022778751328587532, -0.007580691948533058, -0.022732198238372803, -0.012807842344045639, -0.024323642253875732, -0.04785829782485962, 0.01647057756781578, 0.01350571122020483, 0.026077255606651306, 0.027968496084213257, 0.012497691437602043, -0.009022274054586887, 0.01793638803064823, -0.021229900419712067, -0.010891878977417946, -0.024026144295930862, -0.003404089715331793, 0.03287492319941521, 0.03274669498205185, 0.0038418741896748543, 0.039255671203136444, 0.007458565291017294, 0.0032017368357628584, 0.05610783398151398, 0.004729263950139284, -0.00655420171096921, 0.04460085183382034, 0.04628516733646393, 0.018843628466129303, 0.011971639469265938, -0.03698092699050903, 0.059941064566373825, -0.005219857208430767, -0.006158881820738316, 0.03167005628347397, -0.02718874253332615, -0.024936696514487267, 0.025214705616235733, 0.019213024526834488, 0.019315630197525024, 0.026894329115748405, -0.023354047909379005, -0.0004501743824221194, -0.01639213226735592, -0.019133230671286583, 0.030455535277724266, 0.026861049234867096, 0.0014025698183104396, -0.030543526634573936, 0.005913212429732084, -0.012343915179371834, 0.027909142896533012, 0.04330264776945114, -0.0095945680513978, -0.023942936211824417, 7.463327509385939e-33, 0.009751949459314346, -0.013011975213885307, -0.007254129741340876, 0.009736026637256145, 0.026141565293073654, -0.015418289229273796, 0.06616512686014175, -0.009250795468688011, -0.01883755810558796, 0.05693128705024719, -0.07529184222221375, -0.00287629384547472, 0.010081873275339603, -0.04967615008354187, 0.04879258945584297, 0.011017633602023125, -0.013127954676747322, 0.0029965888243168592, 0.006954004522413015, -0.042179688811302185, -0.008658009581267834, -0.017463989555835724, 0.02314968965947628, 0.000781361770350486, 0.05397646501660347, 0.03411874920129776, -0.024205783382058144, -0.026192037388682365, -0.036727022379636765, 0.021110329777002335, -0.012187665328383446, -0.022051729261875153, -0.013712890446186066, -0.042886510491371155, -0.003174562705680728, 0.025238951668143272, -0.028134465217590332, 0.0321291908621788, 0.056904252618551254, -0.013487529009580612, -0.005946111865341663, -0.003394084982573986, 0.005247988272458315, 0.03210962936282158, 0.03853525221347809, 0.004827146418392658, 0.01538965292274952, -0.008044891990721226, -0.016317766159772873, 0.029527613893151283, -0.011840157210826874, 0.01611093245446682, -0.02958875708281994, -0.020129403099417686, 0.019096843898296356, -0.003621411742642522, -0.024981990456581116, -0.009390454739332199, -0.03631998598575592, -0.02495131827890873, -0.007450502831488848, -0.0447925329208374, -0.012466197833418846, 0.04817042872309685, -0.02893901988863945, -0.008750740438699722, -0.018488842993974686, -0.01843286119401455, 0.026388054713606834, 0.025670940056443214, -0.009638721123337746, -0.01365294773131609, -0.026382505893707275, 0.03902202099561691, -0.02403334528207779, 0.007799807470291853, -0.05057068541646004, 0.0021767914295196533, 0.014700748957693577, 0.01796630769968033, 0.0015411440981552005, 0.0014110654592514038, -0.009087814018130302, 0.023406215012073517, 0.007839263416826725, -0.035893578082323074, -0.015333450399339199, 0.011247256770730019, 0.0103081613779068, 0.017787352204322815, -0.027230875566601753, -0.011227739974856377, 0.017664970830082893, -0.011006365530192852, -0.020546630024909973, -1.2879332267345944e-8, 0.019045813009142876, 0.00041679589776322246, -0.03407523036003113, 0.04553927481174469, 0.08222450315952301, -0.018164457753300667, -0.02230173908174038, -0.013913092203438282, -0.0034812551457434893, 0.003709040815010667, 0.024020373821258545, -0.03279511630535126, -0.014959990046918392, 0.016962358728051186, 0.04455043375492096, -0.027261782437562943, 0.013289742171764374, -0.005273649003356695, -0.009271538816392422, 0.03271543234586716, 0.02938089333474636, 0.004400694742798805, -0.01993478275835514, -0.04554356634616852, -0.0034656987991183996, -0.020993756130337715, 0.0021829495672136545, -0.05686567723751068, -0.03356533870100975, -0.04666902497410774, 0.009839694015681744, -0.04788932949304581, -0.08138350397348404, 0.005018701311200857, -0.007538484409451485, -0.023675573989748955, 0.006587213836610317, -0.01072576455771923, 0.020036719739437103, 0.022712847217917442, -0.012088283896446228, 0.013931580819189548, -0.018550336360931396, -0.012443872168660164, -0.02734333835542202, -0.025665948167443275, -0.07017619907855988, 0.0179291982203722, -0.027885956689715385, 0.05003063753247261, 0.016725990921258926, -0.019307728856801987, 0.016351474449038506, 0.012220402248203754, 0.03538432717323303, 0.02116302028298378, 0.07251475751399994, -0.0005940714618191123, -0.01678636111319065, -0.006707105785608292, 0.011467819102108479, 0.02183443121612072, -0.014720581471920013, -0.019998112693428993 ]
luigi-defining-dynamic-requirements-on-output-files
https://markhneedham.com/blog/2017/03/28/luigi-defining-dynamic-requirements-on-output-files
false
2017-03-19 16:40:03
Python 3: TypeError: Object of type 'dict_values' is not JSON serializable
[ "python" ]
[ "Python" ]
I've recently upgraded to Python 3 (I know, took me a while!) and realised that one of my scripts that writes JSON to a file no longer works! This is a simplified version of what I'm doing: [source,python] ---- >>> import json >>> x = {"mark": {"name": "Mark"}, "michael": {"name": "Michael"} } >>> json.dumps(x.values()) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/local/Cellar/python3/3.6.0/Frameworks/Python.framework/Versions/3.6/lib/python3.6/json/__init__.py", line 231, in dumps return _default_encoder.encode(obj) File "/usr/local/Cellar/python3/3.6.0/Frameworks/Python.framework/Versions/3.6/lib/python3.6/json/encoder.py", line 199, in encode chunks = self.iterencode(o, _one_shot=True) File "/usr/local/Cellar/python3/3.6.0/Frameworks/Python.framework/Versions/3.6/lib/python3.6/json/encoder.py", line 257, in iterencode return _iterencode(o, 0) File "/usr/local/Cellar/python3/3.6.0/Frameworks/Python.framework/Versions/3.6/lib/python3.6/json/encoder.py", line 180, in default o.__class__.__name__) TypeError: Object of type 'dict_values' is not JSON serializable ---- Python 2.7 would be perfectly happy: [source,python] ---- >>> json.dumps(x.values()) '[{"name": "Michael"}, {"name": "Mark"}]' ---- The difference is in the results returned by the +++<cite>+++values+++</cite>+++ method: [source,python] ---- # Python 2.7.10 >>> x.values() [{'name': 'Michael'}, {'name': 'Mark'}] # Python 3.6.0 >>> x.values() dict_values([{'name': 'Mark'}, {'name': 'Michael'}]) >>> ---- Python 3 no longer returns an array, instead we have a +++<cite>+++dict_values+++</cite>+++ wrapper around the data. Luckily this is easy to resolve - we just need to http://stackoverflow.com/questions/16228248/python-simplest-way-to-get-list-of-values-from-dict[wrap the call to +++<cite>+++values+++</cite>+++ with a call to +++<cite>+++list+++</cite>+++]: [source,python] ---- >>> json.dumps(list(x.values())) '[{"name": "Mark"}, {"name": "Michael"}]' ---- This versions works with Python 2.7 as well so if I accidentally run the script with an old version the world isn't going to explode.
null
null
[ -0.014033235609531403, -0.02108585834503174, -0.01039834227412939, 0.03791945055127144, 0.08104636520147324, 0.03154941648244858, 0.0043484983034431934, 0.06591928750276566, -0.00008038702071644366, -0.028963662683963776, -0.0027894682716578245, -0.01978534273803234, -0.08504244685173035, 0.006156137213110924, -0.02094528079032898, 0.06889301538467407, 0.09770522266626358, -0.0064656538888812065, 0.03391294181346893, 0.017229316756129265, 0.02088434249162674, 0.06206600368022919, -0.027846967801451683, 0.02929188869893551, 0.014741245657205582, 0.012592502869665623, -0.0026003324892371893, -0.009907434694468975, -0.05634510889649391, -0.021529190242290497, -0.003898991970345378, -0.007867364212870598, 0.006381265819072723, -0.019671481102705002, 0.0063503459095954895, 0.015765158459544182, -0.037755999714136124, 0.021637482568621635, -0.0012797859963029623, 0.03623177111148834, -0.04468630999326706, 0.006875426974147558, 0.0038033765740692616, 0.010557512752711773, -0.04736759141087532, 0.03511055186390877, -0.02500268444418907, 0.011982102878391743, -0.010040285997092724, -0.006303355563431978, -0.027462247759103775, 0.026624469086527824, -0.020573846995830536, -0.05137704685330391, 0.032187167555093765, 0.06082175672054291, 0.0004998358199372888, -0.10348168760538101, 0.02617490105330944, -0.024741167202591896, -0.0009495238191448152, -0.007003245409578085, -0.011553537100553513, 0.025479251518845558, 0.015982242301106453, -0.01035535242408514, -0.00291706551797688, 0.06205109879374504, -0.05719485878944397, -0.026252955198287964, 0.021434715017676353, 0.03196869045495987, -0.04068523645401001, -0.0018150291871279478, 0.01425168663263321, -0.048794083297252655, -0.00933029130101204, 0.05795491486787796, 0.005434458609670401, 0.06960440427064896, 0.005705995485186577, 0.0454818420112133, 0.00856368150562048, 0.022026818245649338, 0.0043898955918848515, -0.0265420600771904, -0.027018509805202484, 0.022862490266561508, -0.038769617676734924, 0.02495299093425274, 0.02053871750831604, -0.028529701754450798, 0.029064327478408813, 0.004057569429278374, -0.03204236924648285, -0.005275867413729429, -0.03179469704627991, 0.029381878674030304, 0.011053519323468208, 0.0010215268703177571, -0.08566886931657791, -0.019530929625034332, 0.026153966784477234, 0.02123991958796978, -0.047778449952602386, -0.007866975851356983, -0.01369988452643156, -0.004288956522941589, -0.012395942583680153, -0.013601397164165974, -0.006975036580115557, 0.00028919591568410397, -0.011067827232182026, -0.026265373453497887, -0.06803817301988602, 0.04817942902445793, 0.015578016638755798, -0.0650312677025795, -0.029210222885012627, 0.02230190485715866, 0.05497930198907852, 0.022993942722678185, -0.019881853833794594, 0.0778440460562706, 0.024796120822429657, 0.02220492623746395, -0.008096621371805668, 0.05745923891663551, 0.0040551479905843735, -0.08004418015480042, -0.030133681371808052, 0.04436967521905899, -0.02084461599588394, 0.02351522445678711, 0.007795773912221193, -0.02547566592693329, -0.014762349426746368, -0.00044055021135136485, 0.060593776404857635, 0.02795359119772911, -0.014638042077422142, -0.019632769748568535, -0.036593034863471985, 0.02320743538439274, 0.027883505448698997, 0.03095812350511551, -0.02317579835653305, -0.03854396939277649, 0.0016031628474593163, 0.0465887077152729, -0.006100581027567387, 0.016143672168254852, 0.08069027215242386, -0.004092066083103418, -0.02848629653453827, 0.0683448538184166, 0.016319260001182556, 0.048004020005464554, -0.0397365465760231, 0.0158938430249691, 0.04960532486438751, 0.045910440385341644, 0.00743685569614172, 0.025315772742033005, -0.008556067012250423, -0.02390918880701065, -0.004616397898644209, 0.05236752703785896, -0.0030630272813141346, 0.0026016931515187025, -0.03574226051568985, -0.09200485050678253, 0.06371548771858215, -0.03656432777643204, -0.02635599672794342, 0.020631054416298866, 0.08340489119291306, 0.02870841883122921, 0.037540219724178314, 0.018300898373126984, -0.07996295392513275, 0.055558934807777405, -0.01277720183134079, 0.02227049693465233, 0.04099712520837784, 0.008357342332601547, 0.08211739361286163, 0.023123757913708687, 0.007676722016185522, 0.03221942111849785, -0.0671728253364563, -0.06879723817110062, -0.038727808743715286, -0.006814024411141872, 0.05382445082068443, -0.06071244552731514, -0.030102895572781563, 0.05857958644628525, 0.041198499500751495, 0.042610008269548416, 0.0009306888678111136, -0.031655631959438324, 0.0203084833920002, -0.05440302565693855, -0.020110294222831726, 0.017053086310625076, 0.05520373582839966, -0.00008474785863654688, 0.0027127729263156652, 0.02117272838950157, -0.006535298191010952, -0.034414615482091904, 0.06132237985730171, -0.016644688323140144, 0.04337484762072563, 0.03141150251030922, 0.04431644454598427, -0.03433853015303612, 0.0521606020629406, -0.07121219485998154, 0.019360238686203957, -0.014403845183551311, -0.010188608430325985, -0.05412354692816734, 0.0007099061622284353, 0.13830889761447906, 0.06266772747039795, -0.010135794058442116, -0.04966405779123306, 0.030871743336319923, -0.00874337088316679, -0.05984380096197128, -0.011755750514566898, -0.008175620809197426, -0.04619105905294418, 0.0414808988571167, -0.05959610268473625, 0.005123149137943983, -0.01615624688565731, -0.009907174855470657, -0.004412565380334854, 0.051211755722761154, -0.042217958718538284, 0.0161849744617939, 0.02354377880692482, 0.012454464100301266, 0.02036464214324951, -0.02406766265630722, -0.052134234458208084, -0.010714012198150158, 0.02072313241660595, 0.0059228031896054745, 0.04079770669341087, -0.030407119542360306, -0.02968107908964157, -0.01034102588891983, -0.03970031067728996, 0.02872585318982601, 0.056912973523139954, 0.03527771309018135, -0.03444204851984978, 0.030368752777576447, -0.02624015137553215, 0.021364310756325722, -0.033983148634433746, -0.025588756427168846, -0.010648702271282673, -0.008948255330324173, 0.0069830091670155525, 0.018397405743598938, 0.022397171705961227, 0.01958676055073738, -0.006918792612850666, 0.040071114897727966, 0.00155546679161489, 0.0289444737136364, 0.03780636563897133, -0.03837781026959419, -0.009427735581994057, -0.045524418354034424, 0.006514148786664009, 0.02301100268959999, -0.04710155352950096, -0.03619011119008064, -0.003730599768459797, -0.08090317249298096, 0.0133589506149292, -0.059035178273916245, -0.049644578248262405, -0.03239314630627632, 0.00872770231217146, 0.016605226323008537, -0.008522327058017254, -0.0038651612121611834, 0.04535970836877823, 0.025067400187253952, 0.0061169941909611225, 0.016241172328591347, 0.004743779078125954, 0.053469546139240265, 0.01689824089407921, 0.03844669461250305, 0.06937488168478012, 0.014970826916396618, -0.023794056847691536, -0.016850223764777184, 0.007528211455792189, -0.025193827226758003, -0.268634557723999, 0.03589467704296112, 0.0017424346879124641, -0.03279111906886101, 0.021258443593978882, -0.007818297483026981, -0.00009003188461065292, -0.05174846947193146, 0.011714578606188297, 0.011289646849036217, -0.028363099321722984, -0.06409856677055359, -0.011969586834311485, 0.05463634431362152, -0.01665368862450123, 0.005075514316558838, -0.030217304825782776, -0.011716736480593681, 0.01801198348402977, 0.0545913390815258, -0.0031548277474939823, -0.06425027549266815, -0.034376684576272964, 0.040100447833538055, 0.01038825511932373, 0.03562502562999725, -0.057588931173086166, 0.05454038456082344, -0.053495172411203384, -0.038533326238393784, -0.005823216866701841, -0.020080186426639557, 0.0353553406894207, -0.02563590742647648, -0.010090344585478306, -0.01676834747195244, 0.02118895761668682, 0.016648970544338226, -0.013239645399153233, -0.01322998572140932, -0.04655379056930542, -0.034602951258420944, -0.032117221504449844, -0.015049167908728123, 0.09304702281951904, -0.03377746045589447, -0.05937124416232109, -0.006634988356381655, -0.06385233998298645, 0.0586480088531971, -0.030617156997323036, -0.051729679107666016, -0.01846257969737053, 0.051951151341199875, -0.017862685024738312, 0.00442380690947175, -0.0004012662684544921, 0.011007175780832767, -0.025977952405810356, -0.014729378744959831, 0.012863784097135067, -0.029987292364239693, -0.03707402944564819, -0.032853346318006516, -0.040561169385910034, -0.04532749578356743, -0.057608310133218765, -0.005567457992583513, 0.05070718377828598, 0.048835743218660355, -0.056284889578819275, 0.04228755086660385, -0.010844586417078972, -0.09264647960662842, 0.02251366898417473, -0.04261563718318939, -0.03870607540011406, -0.012340839020907879, -0.015047311782836914, 0.06180887669324875, -0.03997291624546051, -0.04101226478815079, 0.0242401622235775, -0.00035512304748408496, -0.020148972049355507, -0.006205350160598755, 0.04082407057285309, -0.025725863873958588, 0.010131189599633217, -0.03575030714273453, 0.0672382190823555, -0.03025420755147934, 0.0054278443567454815, 0.006701769307255745, -0.033607542514801025, 0.020467055961489677, 0.028431454673409462, -0.004778467584401369, 0.030216019600629807, 0.03281335160136223, 0.03372294083237648, -0.07026399672031403, 0.0022958756890147924, -0.0435263030230999, 0.013470119796693325, -0.026049954816699028, -0.06322157382965088, 0.01570642925798893, 0.00773472199216485, 0.04675867408514023, -0.00033000754774548113, -0.01663239672780037, 0.008370469324290752, -0.038473013788461685, 0.01052119117230177, -0.02296980284154415, 0.017003078013658524, 0.024016248062253, 0.0023874579928815365, -0.03181321546435356, -0.062475185841321945, 0.027583111077547073, 0.03310120850801468, 0.0066526783630251884, -0.03933357819914818, -0.047416601330041885, 0.0026678231079131365, 0.0037224218249320984, -0.02212565578520298, -0.010503154247999191, -0.012059560976922512, 0.024868445470929146, 0.04094860702753067, -0.023202823475003242, 0.010980747640132904, -0.022149717435240746, -0.03805549442768097, -0.011544732376933098, 0.009359333664178848, -0.006140008103102446, 0.007424379698932171, -0.001164449960924685, 0.004731041379272938, 0.022371359169483185, 0.004364744760096073, 0.0186871737241745, 0.035040538758039474, 0.0056589264422655106, -0.003634164808318019, -0.0251921396702528, 0.028555847704410553, -0.04817482829093933, 0.007902112789452076, -0.026872027665376663, -0.05319412797689438, -0.024614118039608, 0.026803357526659966, 0.0035566329024732113, -0.02389194630086422, -0.02595566399395466, 0.04290750250220299, -0.054373953491449356, -0.019956210628151894, -0.011940307915210724, -0.014363105408847332, 0.02867243066430092, 0.013214127160608768, 0.01250804215669632, 0.02299831248819828, -0.012642599642276764, -0.005590994842350483, 0.03666548430919647, -0.018265675753355026, 0.005532713606953621, -0.005028615240007639, -0.023866841569542885, 0.013826587237417698, 0.017900574952363968, 0.003621432464569807, 0.032763656228780746, -0.0008366782567463815, -0.036404069513082504, 0.012587600387632847, 0.020319795235991478, 0.04257388412952423, 0.005522555205971003, -0.02967727743089199, 0.00009099844464799389, -0.004695691168308258, -0.04562412574887276, -0.039745185524225235, -0.010194556787610054, -0.037193261086940765, 0.019651200622320175, 0.0014748148387297988, -0.07268708944320679, 0.00876758061349392, 0.03298336640000343, 0.005880043841898441, 0.01376566756516695, -0.03298070281744003, 0.02263338305056095, -0.00958865787833929, 0.020603500306606293, 0.05621663108468056, -0.04016907885670662, -0.025292150676250458, -0.03364464268088341, 0.03128622844815254, 0.005147959105670452, 0.02818615734577179, -0.0380571149289608, -0.023790864273905754, -0.008968804962933064, 0.00678551010787487, 0.00983946118503809, -0.04160095378756523, -0.01283532939851284, 0.008536865003407001, -0.007099384907633066, -0.019081303849816322, -0.01671968773007393, 0.017084110528230667, -0.006602323614060879, -0.02239171415567398, 0.03698156774044037, 0.0005856479401700199, 0.02465210296213627, 0.02087501622736454, -0.0007072097505442798, 0.0462646409869194, -0.03252292051911354, 0.052572865039110184, 0.022753268480300903, -0.02219194918870926, 0.004922896157950163, -0.022997234016656876, 0.005162839312106371, -0.005732409190386534, 0.03626437485218048, 0.016470324248075485, 0.009057678282260895, -0.03270159289240837, 0.01344126183539629, -0.027570117264986038, 0.004663603380322456, -0.016526123508810997, -0.03835679963231087, 0.035791389644145966, 0.06265649944543839, 0.02545393630862236, 0.01967601478099823, 0.002869843039661646, -0.050840556621551514, 0.06049437075853348, -0.06681627780199051, -0.028256211429834366, -0.024030260741710663, -0.03193366900086403, 0.02748226560652256, 0.03691524267196655, 0.04209938272833824, -0.07386168092489243, 0.04900111258029938, 0.03300928324460983, 0.02010713517665863, 0.047860946506261826, -0.0019248859025537968, 0.04728175327181816, -0.030799997970461845, -0.03503412380814552, -0.10635148733854294, 0.01044987328350544, 0.05384404584765434, -0.005945337936282158, -0.039266157895326614, -0.00553511967882514, -0.03403807803988457, 0.00934532843530178, -0.05642910301685333, -0.03685648366808891, 0.045835018157958984, 0.009302784688770771, 0.016261590644717216, -0.004156109876930714, -0.03573693707585335, 0.05236204341053963, 0.04868685454130173, -0.061549052596092224, -0.012006535194814205, -0.009539292193949223, 0.06541295349597931, 0.008515880443155766, 0.015998223796486855, -0.000011864566658914555, -0.004802671726793051, 0.0626259446144104, 0.03254544734954834, 0.019435996189713478, 0.021367019042372704, -0.05531107634305954, 0.02439478039741516, 0.028393341228365898, -0.030667591840028763, 0.029424704611301422, 0.0228805523365736, 0.0035981095861643553, -0.051415372639894485, -0.0037305299192667007, 0.02956894412636757, -0.013522988185286522, -0.032976411283016205, 0.04617489501833916, -0.015025357715785503, -0.019669106230139732, -0.05773484706878662, 0.004003004636615515, -0.05724235624074936, -0.03710123896598816, -0.011447608470916748, 0.020916568115353584, -0.03568056970834732, 0.06478218734264374, -0.022099800407886505, -0.0245243851095438, 0.09499244391918182, -0.016343874856829643, -0.0013517809566110373, 0.009540174156427383, 0.07892952859401703, 0.06844702363014221, 0.003486986504867673, 0.016650348901748657, 0.06413590908050537, 0.004284231923520565, -0.04359202831983566, 0.003209895920008421, -0.020554734393954277, 0.00188132852781564, -0.010945568792521954, 0.0032468053977936506, 0.07729464769363403, -0.03341519832611084, 0.08520416170358658, -0.02674628607928753, 0.003233786905184388, -0.021124018356204033, 0.016116371378302574, 0.019475853070616722, 0.03075557015836239, 0.01626541279256344, 0.04839203506708145, -0.016093941405415535, -0.035868484526872635, 0.02491651102900505, -0.0030314167961478233, -0.026662597432732582, 0.029132630676031113, 0.012882808223366737, 0.027713371440768242, 0.04674498364329338, 0.05623069033026695, 0.06255939602851868, -0.030384618788957596, -0.028074689209461212, -0.004514068830758333, 0.04280450567603111, -0.004637294448912144, 0.013995404355227947, -0.009020091034471989, -0.030773697420954704, 0.021992778405547142, -0.05689478665590286, -0.027339879423379898, -0.024072986096143723, -0.018675023689866066, 0.02590305730700493, 0.0012643749359995127, 0.0020263143815100193, 0.013538447208702564, -0.0038671945221722126, -0.013417694717645645, -0.034571487456560135, -0.06320168823003769, -0.0433768704533577, -0.07460209727287292, -0.008769853971898556, 0.016675936058163643, -0.011673729866743088, -0.027953119948506355, -0.0426364541053772, -0.0178583562374115, 0.027576493099331856, 0.010577446781098843, -0.05687175691127777, -0.041654303669929504, 0.037919219583272934, 0.01180193480104208, -0.006349625065922737, 0.015374267473816872, 0.052071284502744675, 0.0035566643346101046, -0.02329704537987709, -0.011998876929283142, 0.0069908564910292625, 0.047804348170757294, 0.004311171360313892, 0.026922965422272682, -0.0668998584151268, 0.01942710392177105, 0.02491127699613571, 0.008399030193686485, -0.05906519293785095, 0.003145833034068346, 0.05540301278233528, -0.009739750996232033, 0.04477132856845856, -0.019777916371822357, 0.02199830301105976, -0.024447143077850342, -0.03590600937604904, 0.014247080311179161, 0.007833846844732761, 0.03605335205793381, 0.005026684608310461, 0.10415193438529968, 0.05268194153904915, -0.01841403730213642, -0.01492447592318058, -0.024400800466537476, 0.0023716329596936703, 0.0005654921988025308, -0.023238321766257286, -0.0378342904150486, -0.05097241327166557, -0.06238806992769241, -0.031494881957769394, -0.022006187587976456, -0.05513656884431839, -0.023501573130488396, 0.006557004991918802, 0.013329149223864079, -0.05115832760930061, 0.01562887616455555, -0.06278301775455475, 0.010790505446493626, -0.00019103806698694825, -0.02211434580385685, -0.01698516122996807, 0.011572650633752346, 0.029419710859656334, -0.004463162738829851, -0.0038453168235719204, -0.04480673000216484, -0.0012392089702188969, -0.006152283400297165, 0.03804134577512741, 0.0383235365152359, -0.017134035006165504, 0.03198923543095589 ]
[ -0.0848810076713562, -0.010013147257268429, -0.029459552839398384, -0.02213093638420105, 0.06392712146043777, -0.07676804810762405, -0.013064270839095116, 0.009255073964595795, 0.008393824100494385, 0.021400798112154007, 0.019327498972415924, -0.07637187093496323, 0.00024360307725146413, -0.04110823944211006, 0.07934235781431198, -0.011278461664915085, -0.023594295606017113, -0.07305265963077545, -0.07378936558961868, 0.026623860001564026, 0.03256038576364517, -0.016631774604320526, -0.0490897037088871, -0.04383831471204758, 0.010012971237301826, 0.05704397335648537, 0.03448489308357239, 0.0010757080744951963, -0.01795358397066593, -0.1981651335954666, 0.013513263314962387, -0.03726066276431084, -0.006914625409990549, -0.006845331750810146, 0.03478267043828964, 0.05321304872632027, 0.010462193749845028, 0.0030150406528264284, 0.03074614703655243, 0.07725875079631805, 0.04142974689602852, 0.011078442446887493, -0.07015443593263626, -0.030663954094052315, -0.0014931373298168182, -0.01148730143904686, -0.03786356374621391, -0.024900564923882484, 0.016504067927598953, 0.00677885627374053, -0.07793059200048447, -0.006614364683628082, -0.014830921776592731, -0.05508749186992645, -0.023930806666612625, 0.022522009909152985, 0.05237290635704994, 0.10357371717691422, 0.0026185575406998396, 0.014258835464715958, -0.010494382120668888, -0.01209421455860138, -0.11468227952718735, 0.11259470880031586, 0.03972093015909195, 0.0543927326798439, -0.039512842893600464, -0.02574152499437332, -0.03854558244347572, 0.051553014665842056, -0.020107964053750038, -0.030264312401413918, -0.03443917632102966, 0.08774197846651077, 0.0064187487587332726, -0.0433054156601429, 0.004030163399875164, 0.0067424774169921875, 0.061223506927490234, -0.0007106047705747187, -0.06242867931723595, -0.030479907989501953, -0.0022744026500731707, -0.028189798817038536, -0.030906420201063156, -0.020305722951889038, -0.04203176870942116, 0.0602809377014637, 0.02393154799938202, -0.007710408419370651, 0.016152285039424896, -0.04049662873148918, 0.029990393668413162, 0.05326501280069351, -0.10449185967445374, -0.0006164449732750654, 0.009655670262873173, 0.0030092638917267323, -0.01615229621529579, 0.42872491478919983, -0.03577621281147003, -0.03173673152923584, 0.04704884812235832, 0.026613319292664528, 0.011960194446146488, -0.004005504306405783, -0.02515515685081482, -0.048133451491594315, 0.024923071265220642, -0.03939597308635712, 0.002883012406527996, -0.004847533069550991, 0.03535088524222374, -0.04530848190188408, 0.01076924242079258, 0.010357441380620003, -0.011983676813542843, 0.014422103762626648, -0.026480071246623993, 0.040164534002542496, -0.002933695213869214, 0.007678350433707237, 0.002752315951511264, 0.009950656443834305, -0.015639688819646835, 0.008080869913101196, 0.03212214261293411, 0.05024203285574913, 0.04418070986866951, 0.035122595727443695, 0.024250462651252747, -0.03932640701532364, -0.07704896479845047, 0.004122649785131216, -0.01901143044233322, 0.035188183188438416, 0.010280759073793888, -0.025988701730966568, 0.013073964044451714, 0.01716994121670723, 0.010672242380678654, -0.1026008278131485, -0.020534450188279152, 0.015362356789410114, -0.0031433431431651115, 0.09660259634256363, -0.01952963136136532, 0.010730884969234467, -0.02362957037985325, -0.019242968410253525, -0.021430781111121178, 0.07649442553520203, 0.009074692614376545, -0.05731653794646263, 0.01802046038210392, 0.04270738363265991, 0.07378681749105453, -0.03133275732398033, -0.03272514045238495, -0.0118525680154562, -0.023707332089543343, -0.04975196346640587, -0.03909306973218918, -0.004315583035349846, 0.021682757884263992, -0.09984944015741348, -0.0006007953779771924, 0.0024203271605074406, 0.010622593574225903, -0.08633501082658768, 0.018340473994612694, 0.03716939315199852, -0.06405539065599442, -0.024249620735645294, 0.0299906637519598, -0.02578210085630417, -0.016414552927017212, 0.019763296470046043, 0.07456731796264648, 0.0009124953649006784, -0.0424816720187664, 0.036268047988414764, -0.04502838850021362, -0.017205530777573586, -0.02321494370698929, -0.0554521307349205, -0.046284325420856476, 0.011504260823130608, 0.002637930680066347, 0.0003336451482027769, 0.0006984207429923117, -0.0010449604596942663, -0.05661997199058533, 0.010798696428537369, -0.004926038905978203, 0.015658404678106308, 0.027174074202775955, 0.006096264347434044, -0.007141300942748785, -0.02895246259868145, 0.02867332473397255, 0.05027446523308754, 0.019359055906534195, 0.05264843627810478, -0.058318015187978745, 0.006713064853101969, 0.06042085587978363, -0.01577453501522541, 0.049197740852832794, 0.0015674593159928918, -0.02784791588783264, -0.008652941323816776, -0.0032537179067730904, -0.004472102038562298, -0.03122161701321602, -0.042618583887815475, -0.04267709329724312, 0.010895880870521069, 0.03352709487080574, 0.013081375509500504, -0.08677034080028534, -0.05540517717599869, -0.003800546284765005, -0.3342154920101166, 0.005865938495844603, 0.02523230016231537, -0.01759105548262596, 0.005727705080062151, -0.056850094348192215, 0.0017688045045360923, -0.005343386437743902, -0.027898764237761497, 0.04469306766986847, 0.08291773498058319, -0.018253637477755547, 0.04018351435661316, -0.05985589325428009, -0.00767549080774188, 0.02713482826948166, -0.04364650696516037, -0.016905847936868668, 0.00791975948959589, 0.08703958988189697, -0.014460028149187565, -0.05716041848063469, -0.025782257318496704, -0.009075507521629333, -0.0020136574748903513, -0.05692574381828308, 0.12975023686885834, 0.020833900198340416, 0.08010257035493851, -0.04149896278977394, 0.04132669046521187, 0.031829334795475006, -0.016230793669819832, -0.08908972889184952, -0.021428361535072327, -0.021257122978568077, -0.02139645628631115, 0.06448125839233398, 0.0023820693604648113, 0.0004246938624419272, -0.018777847290039062, 0.049335747957229614, -0.0063551198691129684, -0.010520442388951778, 0.006291315890848637, 0.0032531588803976774, -0.008198076859116554, -0.028510887175798416, -0.005669889040291309, 0.06715822964906693, 0.011714648455381393, 0.058754824101924896, 0.03046991489827633, 0.047007814049720764, -0.015389809384942055, -0.00007774127880111337, -0.05782923847436905, -0.006629736628383398, 0.001973610371351242, 0.0031044776551425457, 0.041746705770492554, 0.03785356506705284, 0.03444806858897209, -0.02243034914135933, -0.028571952134370804, -0.016476953402161598, 0.05240478739142418, 0.027609311044216156, 0.03246618062257767, 0.0012834598310291767, 0.0049463254399597645, 0.09716848284006119, -0.0035943978000432253, 0.015063369646668434, 0.022593867033720016, 0.05846280977129936, -0.029004661366343498, 0.0033899140544235706, 0.04676801711320877, -0.0241402555257082, 0.0296483114361763, 0.033186424523591995, 0.023104272782802582, -0.032866183668375015, 0.03238167613744736, 0.03998400643467903, -0.01531223300844431, 0.011600053869187832, 0.02558799274265766, -0.02681932970881462, -0.02173827961087227, -0.03620234131813049, -0.014251681044697762, -0.027743589133024216, 0.07279297709465027, 0.00008612496458226815, -0.25902244448661804, 0.01764509454369545, 0.030548328533768654, 0.06816884875297546, 0.0210239477455616, 0.04307233542203903, -0.001722504268400371, -0.04364585876464844, -0.0343337208032608, 0.048595692962408066, 0.014937282539904118, 0.0070558288134634495, 0.0016731541836634278, -0.014397193677723408, 0.02629527822136879, -0.0142328180372715, 0.05119580775499344, 0.005331760738044977, 0.0180486049503088, 0.0048378389328718185, 0.03912246972322464, -0.001933401683345437, 0.1596132069826126, 0.012885494157671928, 0.006412511225789785, -0.0023918491788208485, 0.014019441790878773, 0.070253886282444, 0.07658185064792633, 0.0022277673706412315, 0.008456189185380936, -0.003989881370216608, 0.03310682252049446, 0.03493446111679077, 0.022015877068042755, -0.06849852204322815, -0.030842633917927742, -0.00020474176562856883, 0.022080589085817337, -0.00588741060346365, -0.0427355132997036, 0.024348892271518707, -0.05655066296458244, 0.0031181599479168653, 0.06075476109981537, 0.021129846572875977, -0.022856373339891434, -0.06312974542379379, -0.021109817549586296, -0.009118550457060337, -0.02557237632572651, -0.05493587255477905, -0.007472951430827379, -0.01132607739418745, 0.00235552154481411, 0.059567034244537354, 0.04044407978653908, -0.019830312579870224, 0.0011576192919164896, 0.028332063928246498, -0.0010574408806860447, -0.06000252068042755, 0.10172296315431595, 0.031679265201091766, -0.03139790520071983 ]
[ -0.005480883177369833, -0.004165730904787779, -0.03956616297364235, 0.0036644276697188616, 0.007774426136165857, -0.05177595838904381, -0.02825077809393406, 0.015822337940335274, -0.025705402716994286, -0.05738275125622749, -0.0026436287444084883, -0.0005446544382721186, -0.0034039467573165894, 0.023582419380545616, 0.04544767364859581, -0.017894629389047623, -0.026080144569277763, 0.04037673771381378, 0.028021516278386116, -0.016990317031741142, -0.030877456068992615, 0.05539970472455025, 0.027168935164809227, 0.020668374374508858, 0.007628388702869415, -0.0020956697408109903, -0.02966751530766487, 0.0019898060709238052, 0.018657926470041275, -0.10056400299072266, -0.03990039974451065, -0.03439861908555031, 0.02264218218624592, -0.028232213109731674, 0.059760548174381256, 0.012878511101007462, -0.0024461415596306324, -0.015144883655011654, -0.013533806428313255, 0.006533720996230841, 0.019742459058761597, 0.02065758779644966, -0.0348803848028183, -0.01998770423233509, -0.03031136468052864, 0.0036884229630231857, -0.035900868475437164, -0.013300830498337746, -0.004291110672056675, -0.01578836888074875, -0.013992829248309135, 0.03949889913201332, -0.01488919835537672, 0.003973949234932661, -0.0011946223676204681, -0.03289871662855148, -0.004592407029122114, 0.0024946315679699183, -0.0054215798154473305, -0.020314324647188187, -0.008708645589649677, 0.035425566136837006, -0.01643001101911068, -0.02433968149125576, -0.0016905178781598806, -0.02355976216495037, -0.03258777782320976, -0.004669616464525461, 0.006978497374802828, 0.0086818290874362, -0.025823775678873062, -0.029942022636532784, -0.01525904331356287, -0.027144908905029297, 0.008068243972957134, -0.005639519542455673, 0.03247101977467537, -0.023641256615519524, -0.028548413887619972, 0.01478327251970768, -0.03337748721241951, -0.021385440602898598, -0.028603196144104004, 0.03198700398206711, -0.02656721882522106, -0.032232705503702164, -0.029361994937062263, 0.03289268538355827, -0.023214075714349747, 0.03153529390692711, -0.021209344267845154, -0.03485160320997238, -0.010718993842601776, 0.02225109562277794, -0.08637230098247528, 0.025478461757302284, 0.029161199927330017, -0.012308274395763874, -0.028711412101984024, 0.8357670307159424, 0.003396363230422139, -0.003229490015655756, 0.04925134778022766, 0.020783722400665283, 0.0616188682615757, 0.04884190484881401, -0.006753471679985523, -0.03451189398765564, -0.013072598725557327, -0.003299861680716276, 0.010667163878679276, -0.03640701249241829, 0.02995302341878414, 0.008508749306201935, 0.04096413403749466, 0.03919323906302452, 0.008935382589697838, 0.03753736615180969, -0.012641824781894684, 0.04392639920115471, 0.05207201838493347, -0.03969697281718254, 0.009012965485453606, 0.012790374457836151, 0.02197425626218319, -0.15964829921722412, 0.025574108585715294, -7.176689089409679e-33, 0.013071835041046143, -0.01916549727320671, 0.025128142908215523, 0.00007092838495736942, 0.019913574680685997, -0.01903819851577282, 0.018474817276000977, 0.032099347561597824, 0.009211414493620396, -0.024336326867341995, -0.010596671141684055, -0.009434547275304794, 0.024915995076298714, 0.034067049622535706, 0.025449048727750778, -0.006098735146224499, -0.025296520441770554, 0.04791218042373657, -0.003490240778774023, 0.062483154237270355, 0.053961727768182755, 0.0017698152223601937, -0.008568906225264072, 0.04584449529647827, -0.007714711595326662, -0.0000292643435386708, 0.0032907193526625633, 0.008110633119940758, -0.005222933366894722, -0.046475037932395935, -0.01807774230837822, 0.008175098337233067, 0.03042183816432953, -0.03058398887515068, -0.02714810147881508, -0.042797185480594635, -0.008264328353106976, -0.022708671167492867, -0.031145568937063217, -0.010490603744983673, -0.03515120595693588, 0.014248148538172245, -0.019821852445602417, -0.04134948179125786, -0.04808200150728226, -0.0009122449555434287, 0.015959519892930984, 0.03511037304997444, -0.007969750091433525, 0.01421337854117155, 0.038026172667741776, 0.018629536032676697, -0.0011580861173570156, 0.008171872235834599, 0.0175128523260355, 0.011256667785346508, 0.011657796800136566, 0.017033517360687256, 0.05042693018913269, -0.033149354159832, 0.010474891401827335, -0.0116050336509943, 0.021389752626419067, 0.045567478984594345, 0.011563429608941078, 0.02043725922703743, 0.013603705912828445, 0.03223813697695732, 0.014155388809740543, 0.04043200984597206, -0.08404094725847244, 0.0027222984936088324, -0.04513155296444893, -0.015642976388335228, 0.03183963522315025, -0.0211599450558424, -0.01982710510492325, -0.011075939051806927, 0.0010148069122806191, 0.008640075102448463, 0.037168536335229874, 0.011729965917766094, -0.008909468539059162, -0.02698633447289467, -0.0300421342253685, 0.0007639505201950669, 0.029391445219516754, -0.0038571704644709826, -0.013724876567721367, 0.015772037208080292, 0.014074688777327538, 0.01958281174302101, 0.0028441709000617266, -0.011066270992159843, -0.010875043459236622, 7.052077872014885e-33, 0.00509024178609252, -0.010030395351350307, -0.030230658128857613, 0.013531351462006569, -0.002331495052203536, -0.04107021167874336, -0.007018606178462505, 0.042960528284311295, -0.012605925090610981, 0.05519171431660652, -0.0321209579706192, -0.03371449559926987, 0.011834107339382172, 0.009845215827226639, 0.04753619804978371, 0.02449955977499485, -0.004817199427634478, 0.02958962693810463, 0.02842528373003006, -0.04649589955806732, -0.000019065013475483283, 0.014291063882410526, 0.024348212406039238, 0.011511782184243202, -0.018834521993994713, 0.007531100418418646, -0.02457849495112896, -0.016906581819057465, -0.030576564371585846, -0.012328996323049068, -0.038592465221881866, -0.011271568946540356, 0.028263205662369728, -0.027689024806022644, -0.013576160185039043, 0.028314605355262756, 0.02287980541586876, -0.02740049734711647, 0.00988469086587429, -0.015038744546473026, 0.044821299612522125, 0.03603379428386688, 0.008150726556777954, 0.03563423454761505, -0.003500757273286581, 0.026192976161837578, 0.00435311533510685, 0.03205561637878418, 0.033441368490457535, 0.018058953806757927, -0.013244079425930977, 0.0262115690857172, 0.02021494135260582, 0.013678133487701416, 0.018158279359340668, -0.012968918308615685, 0.008576163090765476, -0.009120263159275055, -0.058177102357149124, 0.023480676114559174, -0.02608814649283886, -0.03136231005191803, -0.023550156503915787, 0.0002817549684550613, -0.027394339442253113, -0.036467548459768295, -0.052992019802331924, -0.004628553055226803, -0.0006156851886771619, -0.04100380465388298, 0.0004125025006942451, -0.02848009206354618, -0.007172583602368832, 0.03500205650925636, -0.008967778645455837, -0.0016957297921180725, -0.03117186948657036, 0.0009682519012130797, -0.02618897520005703, 0.00825817696750164, 0.02120356447994709, -0.01139557920396328, 0.0021858224645256996, 0.036865368485450745, 0.01210754457861185, 0.01800440065562725, -0.029813289642333984, 0.016478512436151505, -0.013600360602140427, -0.03388877958059311, 0.01299212221056223, 0.0015797800151631236, -0.006947549991309643, 0.008329094387590885, 0.006990029010921717, -1.2925764458771027e-8, -0.014449447393417358, -0.0024205863010138273, -0.004255818668752909, 0.07213856279850006, 0.00031517507159151137, 0.04743167385458946, 0.008305078372359276, 0.01981707103550434, 0.01742176152765751, 0.0118561377748847, 0.055851057171821594, -0.024582212790846825, -0.03300115093588829, -0.012732556089758873, 0.039539288729429245, -0.01553289219737053, -0.01566990837454796, 0.009601795114576817, 0.014486796222627163, -0.016085749492049217, 0.016579749062657356, 0.024559590965509415, -0.009560580365359783, -0.026562755927443504, -0.002564104739576578, 0.0035382146015763283, 0.04166531562805176, -0.06240825355052948, -0.03207911178469658, -0.01158480066806078, -0.008886476047337055, -0.056012801826000214, -0.02420877292752266, 0.01280019897967577, -0.02979436330497265, -0.043526243418455124, -0.007187264505773783, 0.008062707260251045, 0.0019189132144674659, 0.024702206254005432, -0.012577701359987259, 0.018507149070501328, -0.03997144475579262, -0.0333380289375782, -0.02327023819088936, -0.005041114985942841, -0.039087094366550446, 0.04875364527106285, -0.004303262569010258, -0.03343995660543442, 0.008861841633915901, -0.023185746744275093, 0.037924300879240036, -0.006931987591087818, 0.045419737696647644, 0.016773628070950508, -0.010217559523880482, -0.005921609234064817, -0.01788746751844883, -0.009181145578622818, 0.04745252802968025, 0.007525155320763588, -0.013023670762777328, -0.01724429987370968 ]
python-3-typeerror-object-type-dict_values-not-json-serializable
https://markhneedham.com/blog/2017/03/19/python-3-typeerror-object-type-dict_values-not-json-serializable
false
2017-03-30 22:38:47
My top 10 technology podcasts
[ "software-development", "podcasts" ]
[ "Software Development" ]
For the last six months I&#8217;ve been listening to 2 or 3 technology podcasts every day while out running and on my commute and I thought it&#8217;d be cool to share some of my favourites. I listen to all of these on the https://www.podbean.com/[Podbean] android app which seems pretty good. It can&#8217;t read the RSS feeds of some podcasts but other than that it&#8217;s worked well. Anyway, on with the podcasts: [#__a_href_https_softwareengineeringdaily_com_category_podcast_software_engineering_daily_a] == https://softwareengineeringdaily.com/category/podcast/[Software Engineering Daily] This is the most reliable of all the podcasts I&#8217;ve listened to and a new episode is posted every weekday. It sweeps across lots of different areas of technology - there&#8217;s a bit of software development, a bit of data engineering, and a bit of infrastructure. Every now and then there&#8217;s a focus on a particular topic area or company which I find really interesting e.g. in 2015 there was a week of https://softwareengineeringdaily.com/tag/bitcoin/[Bitcoin focused episodes] and more recently there&#8217;s been a https://softwareengineeringdaily.com/tag/stripe/[bunch of episodes about Stripe]. [#__a_href_http_partiallyderivative_com_partially_derivative_a] == http://partiallyderivative.com/[Partially Derivative] This one is more of a data science postcast and cover lots of different areas in that space but thankfully keep the conversation at a level that a non data scientist like me can understand. I especially liked the http://partiallyderivative.com/podcast/2016/11/14/decision-boundary-2016-margin-of-terror[post US election episode] where they talked about the problems with polling and how most election predictions had ended up being wrong. There&#8217;s roughly one new episode a week. [#__a_href_https_www_oreilly_com_topics_oreilly_bots_podcast_o_reilly_bots_podcast_a] == https://www.oreilly.com/topics/oreilly-bots-podcast[O&#8217;Reilly Bots podcast] I didn&#8217;t know anything about bots before i listened to this podcast and it was quite addictive - i powered through all the episodes in a few weeks. They cover all sorts of topics that I&#8217;d have never thought of - why have developers got interested in bots? How do UIs differ to ones in apps? How do users find out about bots? I really enjoy listening to this one but it&#8217;s been a bit quiet recently. [#__a_href_http_packetpushers_net_series_datanauts_podcast_datanauts_a] == http://packetpushers.net/series/datanauts-podcast/[Datanauts] I found this one really useful for getting the hang of infrastructure topics. I wanted to learn a bit more about Kubernetes a few months ago and they had an episode which gives an overview as well as more detailed episodes. One neat feature of this podcast is that after each part of an interview the hosts summarise what they picked up from that segment. I like that it gives you a few seconds to think about what you picked up and whether it matches the summary. Some of the episodes go really deep into specific infrastructure topics and I struggle to follow along but there are enough other ones to keep me happy. [#__a_href_https_www_becomingadatascientist_com_category_podcast_becoming_a_data_scientist_a] == https://www.becomingadatascientist.com/category/podcast/[Becoming a Data Scientist] This one mirrors the journey of https://twitter.com/BecomingDataSci[Renee Teate] getting into data science and bringing everyone along on the journey. Each episode is paired with a learning exercises for the listener to try and although any of the learning exercises yet I like how some interviews are structured around them. e.g. https://www.becomingadatascientist.com/2016/03/28/becoming-a-data-scientist-podcast-episode-08-sebastian-raschka/[Sebastien Rashka was interviewed about model accuracy] on the week that was being explored in the learning club. If you&#8217;re interested in data science topics but aren&#8217;t a data scientist yourself this is a good one to listen to. [#__a_href_https_twimlai_com_this_week_in_machine_learning_and_ai_podcast_a] == https://twimlai.com/[This Week In Machine Learning and AI Podcast] This one mostly goes well over my head but it&#8217;s still interesting to listen to other people talk about stuff they&#8217;re working on. There&#8217;s a lot of focus on Deep Learning so i think i need to learn a bit more about that and then the episodes will make more sense. The https://twimlai.com/machine-learning-cybersecurity-evan-wright/[last episode with Evan Wright] was much more accessible. I need more like that one! [#__a_href_https_thewomenintechshow_com_the_women_in_tech_show_a] == https://thewomenintechshow.com/[The Women in Tech Show] I came across https://twitter.com/edaenas[Edaena Salinas] on Software Engineering Daily and didn&#8217;t initially realise that Edaena had a podcast until a couple of weeks ago. There&#8217;s lots of interesting content on this one. The episodes on https://thewomenintechshow.com/2017/01/30/data-driven-marketing-with-jessica-jobes/[data driven marketing] and https://thewomenintechshow.com/2016/12/13/unconscious-bias-in-hiring-with-stephanie-lampkin/[unconscious bias] are my favourites of the ones I&#8217;ve listened to so far. [#__a_href_http_thebitcoinpodcast_com_the_bitcoin_podcast_a] == http://thebitcoinpodcast.com/[The Bitcoin Podcast] I listened to a few shows about bitcoin on Software Engineering Daily and found this podcast while trying to learn more. Some of the episodes are general enough that i can follow along but others use a lot of block chain specific terminology that leave me feeling a bit lost. I especially liked the http://thebitcoinpodcast.com/episode-118/[episode that featured Greg Walker] of http://learnmeabitcoin.com[learnmeabitcoin] fame. Greg uses Neo4j as part of the website and https://www.meetup.com/graphdb-london/events/237954465/[presented at the London Neo4j meetup earlier this week]. [#__a_href_https_changelog_com_gotime_go_time_a] == https://changelog.com/gotime[Go Time] This one has a chat based format that I really. They have a cool section called 'free software Friday' at the end of each show where everybody calls out a piece of software or maintainer that they&#8217;re grateful for. I was playing around with Go in November/December last year so it was really helpful in pointing me in the right direction. I haven&#8217;t done any stuff recently so it&#8217;s more a general interest show for now. [#__a_href_https_changelog_com_change_log_a] == https://changelog.com/[Change Log] This one covers lots of different topics, mostly around different open source projects. The really cool thing about this one is they get every guest to explain their 'origin story' i.e. how did they get into software and what was their path to the current job. The https://changelog.com/podcast/241[interview with Nathan Sobo about Atom] was particularly good in this respect. It&#8217;s always interesting to hear how other people got started and contrast it with my own experiences. Another cool feature of this podcast is that they sometimes have episodes where they https://changelog.com/podcast/238[interview people at open source conferences]. [#_that_s_it_folks] == That&#8217;s it folks That&#8217;s all for now. Hopefully there&#8217;s one or more in there that you haven&#8217;t listened to before. If you&#8217;ve got any suggestions for other ones I should listen to let me know in the comments or send me a message on twitter https://twitter.com/markhneedham[@markhneedham]
A collection of my favourite technology podcasts covering data science, data engineering, bitcoin, Kubernetes, software development, and more.
null
[ 0.0055780233815312386, -0.02555113472044468, -0.0036565305199474096, 0.060234494507312775, 0.0732092559337616, 0.02057180181145668, 0.030311092734336853, 0.045966122299432755, 0.01488084252923727, -0.017055869102478027, -0.015158342197537422, 0.01608048751950264, -0.03779395669698715, 0.02272537164390087, -0.029502758756279945, 0.07394076138734818, 0.05327480286359787, -0.002248170552775264, 0.029715925455093384, -0.01033676415681839, 0.057932049036026, 0.04271186888217926, 0.00987301766872406, 0.0381259024143219, 0.024140693247318268, 0.01206835638731718, 0.009976138360798359, 0.014210342429578304, -0.04053178057074547, 0.001730597112327814, 0.022139646112918854, 0.006275663152337074, -0.006739315576851368, 0.01453178096562624, 0.029785308986902237, 0.020174343138933182, 0.004467970225960016, 0.021608540788292885, -0.009222895838320255, 0.004427969455718994, -0.07903312146663666, 0.04237201437354088, -0.015127357095479965, 0.014243114739656448, -0.05298725888133049, -0.0028084178920835257, -0.01832621544599533, 0.01362184714525938, 0.01101139560341835, 0.017110073938965797, -0.05903426185250282, 0.03151126578450203, 0.01815401203930378, 0.008257083594799042, -0.004435006994754076, 0.04379991814494133, 0.023919522762298584, -0.06793217360973358, -0.005241459235548973, -0.02792004682123661, -0.018239550292491913, -0.027302194386720657, -0.013188553042709827, 0.004279582295566797, 0.011771434918045998, -0.03902290388941765, -0.01265301275998354, 0.04603274539113045, -0.019671730697155, 0.018750261515378952, -0.038265410810709, -0.0043835085816681385, -0.011790535412728786, -0.015378067269921303, 0.005843088496476412, -0.053199730813503265, 0.010644140653312206, 0.07455702126026154, 0.017648696899414062, 0.045712828636169434, -0.031513798981904984, 0.019116492941975594, 0.005574672482907772, 0.03413498029112816, -0.00962824560701847, -0.04181602597236633, -0.004457229748368263, -0.030564552173018456, -0.09358979761600494, 0.05026613920927048, 0.012402902357280254, -0.05093640089035034, 0.02643182873725891, 0.04610105976462364, -0.024745112285017967, 0.006945739034563303, 0.0473463349044323, -0.0172977764159441, -0.017441926524043083, -0.03246842697262764, -0.020128794014453888, 0.007894488982856274, 0.025199199095368385, 0.014785896986722946, -0.07370925694704056, -0.0014537987299263477, -0.025482578203082085, -0.035729605704545975, -0.004660893697291613, 0.007185398600995541, 0.0018304854165762663, 0.021395990625023842, -0.006060461979359388, 0.02643703483045101, -0.06247711554169655, 0.06422249227762222, 0.021980540826916695, -0.08311586827039719, 0.00721384771168232, -0.00015330567839555442, 0.02423165924847126, 0.04055492579936981, -0.032758235931396484, 0.06604274362325668, -0.015032686293125153, 0.006951665040105581, -0.036441195756196976, 0.03477950394153595, -0.012269875034689903, -0.046781986951828, -0.022289158776402473, 0.06858571618795395, -0.013720449060201645, -0.007281606551259756, -0.006873399019241333, -0.01680283062160015, 0.003181741340085864, 0.022334463894367218, 0.04992987588047981, 0.060504596680402756, -0.022607475519180298, -0.04798130318522453, 0.011960700154304504, 0.002422705991193652, 0.028641413897275925, -0.028662240132689476, -0.021178245544433594, -0.024483399465680122, -0.04627877473831177, -0.006798787973821163, 0.0013496768660843372, 0.013980778865516186, 0.021004093810915947, -0.06065025553107262, 0.0358818881213665, 0.07088348269462585, 0.003879590891301632, 0.014670160599052906, -0.01590290479362011, 0.02288515865802765, 0.04021705314517021, 0.027409425005316734, 0.012746110558509827, 0.02848874405026436, 0.029397867619991302, -0.021382499486207962, 0.01681930013000965, 0.04942022264003754, 0.012416851706802845, 0.025760885328054428, -0.061085689812898636, -0.03608917072415352, 0.05009247735142708, -0.03444049879908562, -0.0240250863134861, 0.04861804470419884, 0.09019902348518372, 0.032458990812301636, 0.011564978398382664, 0.01247448567301035, -0.07725929468870163, 0.03975556045770645, 0.01760782115161419, 0.020870480686426163, 0.03485555946826935, -0.021982086822390556, 0.05345121771097183, 0.022601163014769554, 0.009150090627372265, 0.03461161255836487, -0.08273423463106155, -0.09175175428390503, -0.01724005676805973, -0.012198242358863354, 0.048000894486904144, -0.03518911451101303, 0.02194688655436039, 0.07401392608880997, 0.01859753020107746, 0.041616290807724, 0.012235626578330994, 0.00789174996316433, 0.010860944166779518, -0.044604722410440445, -0.0546298511326313, 0.042518965899944305, 0.029012475162744522, -0.02258467487990856, -0.03012281097471714, 0.02160477265715599, -0.015918869525194168, -0.015357369557023048, 0.03931872919201851, -0.03999803960323334, 0.030850335955619812, -0.013088429346680641, 0.05726374685764313, -0.02973915822803974, 0.026963084936141968, -0.03293214738368988, 0.005299492739140987, -0.0039321971125900745, -0.02619664929807186, 0.04458741471171379, 0.003607857972383499, 0.11928319931030273, 0.061153363436460495, -0.041159339249134064, -0.022996174171566963, 0.033822838217020035, 0.04873333126306534, -0.005670585203915834, -0.016472265124320984, -0.029628243297338486, 0.02684604562819004, 0.003839970100671053, -0.05540347844362259, -0.028335105627775192, 0.018835607916116714, -0.06539084762334824, 0.020218132063746452, 0.0587562620639801, -0.00911666639149189, 0.06896055489778519, 0.0017027369467541575, 0.010912218131124973, -0.005531528033316135, -0.0344768688082695, -0.0699930191040039, -0.021113978698849678, 0.009578433819115162, -0.019359957426786423, 0.03414403647184372, -0.013235175050795078, -0.006926652509719133, -0.04609709978103638, -0.0310421884059906, 0.042328037321567535, 0.04291540011763573, 0.06368662416934967, -0.016506044194102287, 0.045447081327438354, -0.02365010790526867, 0.018238412216305733, -0.004342731554061174, -0.04595120996236801, -0.03985435143113136, -0.07165038585662842, -0.008267778903245926, 0.025809649378061295, 0.019726622849702835, 0.01401738915592432, 0.018815776333212852, 0.029831038787961006, -0.012450828216969967, -0.0220290869474411, 0.043294381350278854, 0.005144072230905294, 0.008340846747159958, -0.03742047771811485, -0.025685714557766914, 0.05281711369752884, -0.03158644959330559, -0.01672527939081192, -0.007745495997369289, -0.08150366693735123, 0.04528958350419998, -0.0333830825984478, -0.029539434239268303, 0.01980377361178398, -0.0005470395553857088, 0.015890315175056458, 0.047067902982234955, 0.033240605145692825, 0.06751803308725357, 0.00302889640443027, 0.03823227435350418, -0.00260389456525445, -0.0035665035247802734, 0.0315629243850708, -0.012107490561902523, -0.011491120792925358, 0.05997908487915993, 0.008997216820716858, -0.010370842181146145, -0.07199817895889282, 0.0551302470266819, -0.04043165594339371, -0.299115926027298, 0.023097097873687744, -0.0046289884485304356, -0.07533381134271622, 0.013563277199864388, -0.009275959804654121, 0.003788372501730919, -0.04592517763376236, -0.023612534627318382, 0.005596112925559282, -0.04710990563035011, -0.018356045708060265, -0.03792562335729599, 0.021109934896230698, 0.020044634118676186, -0.005108970683068037, 0.007872756570577621, -0.024001585319638252, 0.026733217760920525, 0.03525741770863533, -0.012259513139724731, -0.04706403240561485, -0.003789285197854042, 0.045115645974874496, 0.05406130850315094, 0.0499269962310791, -0.07615938037633896, 0.03443654626607895, -0.028459180146455765, 0.0026596440002322197, 0.018297789618372917, -0.009091831743717194, 0.00956643931567669, -0.007639066316187382, -0.012173946015536785, -0.012598481960594654, 0.02855699136853218, 0.00978886242955923, 0.01569986343383789, 0.010156852193176746, -0.013499678112566471, -0.021705616265535355, 0.026541847735643387, 0.02330336906015873, 0.07224221527576447, -0.0023427444975823164, -0.06871107965707779, -0.005831182934343815, -0.05591784045100212, 0.052430640906095505, -0.02750582993030548, -0.021472910419106483, -0.027674997225403786, 0.030942082405090332, -0.005405781324952841, -0.0013811654644086957, -0.008275900967419147, -0.014703914523124695, -0.04987369105219841, -0.04684998840093613, -0.0031609837897121906, -0.02721094712615013, -0.012113191187381744, -0.06631144136190414, -0.001344679156318307, -0.06627056747674942, -0.07868947833776474, 0.0023617951665073633, 0.09164265543222427, 0.03158041089773178, -0.02156033366918564, 0.010103469714522362, 0.016862748190760612, -0.10250508040189743, 0.002888517687097192, 0.008740728721022606, -0.03501153364777565, 0.04304584860801697, 0.009938949719071388, 0.07046357542276382, -0.049508195370435715, -0.03351953253149986, 0.04012046754360199, 0.00196403032168746, 0.02847299352288246, -0.032806284725666046, 0.025080641731619835, 0.014805486425757408, -0.030230911448597908, 0.006283989641815424, 0.044809576123952866, -0.05057607591152191, -0.01989828795194626, -0.01618732511997223, 0.01885025016963482, 0.032635729759931564, 0.002909312956035137, 0.00908596906810999, 0.00862887129187584, 0.05076838657259941, 0.0015200884081423283, -0.047482047230005264, 0.014469817280769348, -0.03420581668615341, -0.013518461026251316, -0.0027224605437368155, -0.028230153024196625, 0.008104264736175537, 0.037579603493213654, 0.015781225636601448, -0.005203851964324713, -0.004017994273453951, 0.010634638369083405, -0.06942711025476456, -0.018242161720991135, -0.007261858321726322, 0.011817744933068752, 0.05485616624355316, 0.01440449245274067, -0.02421598695218563, -0.04239177331328392, -0.005301795434206724, -0.016587084159255028, 0.0039042900316417217, -0.0700870007276535, -0.01504929456859827, -0.030628809705376625, -0.03133668377995491, 0.024500316008925438, 0.021517977118492126, -0.029347578063607216, 0.0016113544115796685, 0.008373115211725235, -0.022830097004771233, 0.01088494248688221, -0.027744632214307785, -0.04259003326296806, -0.024037521332502365, 0.019700175151228905, 0.002597046084702015, 0.015049612149596214, 0.01176123134791851, 0.004237363580614328, 0.012004286982119083, 0.035869453102350235, 0.008245483040809631, 0.002651683986186981, 0.0040100617334246635, 0.012473431415855885, -0.000996402814052999, 0.0058780238032341, -0.05776244401931763, 0.007076093927025795, -0.024040929973125458, -0.011755275540053844, -0.012057896703481674, 0.055810362100601196, -0.006846162956207991, -0.026715198531746864, -0.041395433247089386, 0.015994509682059288, -0.06387179344892502, -0.021186603233218193, -0.02078150399029255, 0.030136898159980774, 0.06644097715616226, -0.03743333742022514, 0.01211774256080389, 0.018107231706380844, -0.0299465861171484, -0.008349930867552757, -0.0009363135322928429, -0.03604891151189804, 0.00012145115033490583, 0.008399207144975662, -0.01790044456720352, 0.003091273130849004, -0.012166058644652367, 0.04659159108996391, 0.03727108612656593, 0.004637712612748146, -0.0163576640188694, 0.003441310953348875, 0.029622476547956467, 0.07457029819488525, 0.05268494784832001, -0.025195792317390442, 0.003738484811037779, -0.012805631384253502, -0.011846078559756279, -0.03228254243731499, 0.005349894519895315, -0.006954693701118231, 0.001950697973370552, -0.026392294093966484, -0.07093147188425064, 0.047490812838077545, -0.020460110157728195, 0.004855395294725895, -0.01255859900265932, -0.03444330766797066, -0.0018689018907025456, -0.0275415126234293, 0.03454236686229706, 0.05523419380187988, -0.0759541317820549, 0.0051977927796542645, -0.004019912797957659, -0.016557468101382256, -0.012699306942522526, 0.005543526262044907, -0.03856853023171425, 0.0025580006185919046, -0.015616216696798801, 0.010996658354997635, -0.07970847189426422, -0.019999632611870766, -0.01505650021135807, 0.0016086967661976814, -0.001279742456972599, 0.003700693603605032, -0.025991979986429214, -0.036013223230838776, -0.009645316749811172, -0.02178117446601391, 0.014720858074724674, -0.049687039107084274, -0.0036190839018672705, -0.004520946182310581, -0.048476848751306534, -0.008080785162746906, -0.028335480019450188, 0.017831915989518166, 0.02491028793156147, -0.03137087821960449, 0.011402001604437828, -0.015319612808525562, 0.02132943831384182, -0.011865654028952122, 0.0782007947564125, 0.004634092561900616, -0.03465289995074272, -0.057827070355415344, -0.013257570564746857, -0.04451311007142067, 0.03183158114552498, -0.012090693227946758, 0.03413699194788933, 0.024537988007068634, 0.04873030632734299, 0.028263814747333527, 0.031865015625953674, -0.03745807707309723, -0.003309887833893299, 0.035157229751348495, -0.06813624501228333, -0.0008339360356330872, -0.020386191084980965, -0.06805220991373062, -0.014076369814574718, -0.0009450079523958266, 0.022457128390669823, -0.031993791460990906, 0.04371283948421478, 0.02818932756781578, 0.017521098256111145, 0.016649192199110985, -0.011247782036662102, 0.018665917217731476, -0.0396396741271019, -0.0028090933337807655, -0.05848417431116104, 0.00967373326420784, 0.019687486812472343, 0.01537180133163929, 0.020510230213403702, 0.026950564235448837, -0.025925524532794952, 0.022076088935136795, -0.09096492826938629, -0.02559668757021427, 0.00996813178062439, -0.03629137948155403, -0.026978101581335068, 0.02068714052438736, -0.0755130797624588, 0.029527239501476288, 0.026559187099337578, -0.03369509428739548, -0.02385757304728031, 0.014253824949264526, 0.04277854412794113, 0.01595519483089447, 0.03099643997848034, -0.011916403658688068, -0.01907981000840664, 0.07941874116659164, 0.003070088569074869, 0.01540380623191595, 0.051905758678913116, -0.010983572341501713, 0.02382175624370575, 0.033398162573575974, 0.00978908222168684, -0.007511211559176445, 0.006043500732630491, -0.0029216522816568613, -0.05698481947183609, 0.018385043367743492, -0.011004282161593437, -0.010076096281409264, -0.02119041420519352, 0.06286849826574326, 0.04038922116160393, -0.03089849092066288, -0.053123366087675095, 0.018012268468737602, -0.0328032486140728, -0.010398541577160358, -0.006662610452622175, -0.013477248139679432, -0.04593856632709503, 0.0422566719353199, -0.00562159763649106, 0.03483220189809799, 0.06800765544176102, 0.003969667013734579, -0.015347887761890888, -0.0025161197409033775, 0.09689684957265854, 0.06461682170629501, 0.054847411811351776, -0.0032958961091935635, 0.07262112200260162, -0.03867167606949806, -0.04459940642118454, 0.005690480582416058, 0.018303843215107918, -0.012610873207449913, -0.023726847022771835, -0.0011878988007083535, 0.06513181328773499, -0.019516542553901672, 0.08615265041589737, -0.027615660801529884, -0.008866779506206512, -0.015740079805254936, 0.024898070842027664, 0.042812198400497437, 0.04628106951713562, 0.00018844706937670708, 0.023014333099126816, -0.027531499043107033, -0.04740527272224426, 0.027021830901503563, -0.03887803107500076, -0.028584973886609077, 0.038603439927101135, -0.012472978793084621, 0.060475531965494156, 0.0007978962385095656, 0.03120349906384945, 0.05942579358816147, -0.03679363429546356, 0.03566252812743187, -0.024965422227978706, 0.029638776555657387, -0.017536215484142303, 0.019258849322795868, -0.018953757360577583, 0.007799963466823101, -0.00932873971760273, -0.0413014180958271, -0.022746333852410316, -0.04666127264499664, -0.026309603825211525, 0.021244240924715996, -0.029238803312182426, 0.0022610339801758528, 0.04347849264740944, 0.006118992809206247, -0.030484477058053017, -0.04795551300048828, -0.019676005467772484, -0.04288541153073311, -0.05570882186293602, -0.01788988709449768, 0.01454918459057808, 0.006739763077348471, -0.0452951118350029, 0.0025756119284778833, -0.04197177290916443, -0.015415188856422901, 0.039541032165288925, -0.06827224791049957, -0.033601537346839905, 0.019303878769278526, 0.005715855397284031, 0.02639083005487919, 0.011571243405342102, 0.05095960199832916, -0.005247811786830425, -0.038999054580926895, -0.019785163924098015, 0.011163800023496151, 0.02865217812359333, 0.013528307899832726, 0.00622536288574338, -0.0770539864897728, 0.017383810132741928, 0.021397244185209274, -0.024512356147170067, -0.0539151169359684, 0.031138991937041283, 0.03778260201215744, -0.003060318063944578, 0.053141266107559204, -0.028842108324170113, -0.0031856077257543802, -0.061253223568201065, -0.0076014320366084576, 0.017600176855921745, -0.00965921301394701, 0.037773072719573975, -0.01380636915564537, 0.0979219526052475, 0.022994214668869972, 0.00011394368630135432, -0.03950057551264763, -0.01232096180319786, 0.018137164413928986, 0.005111730191856623, -0.024401213973760605, -0.050859760493040085, -0.037415094673633575, -0.0794302299618721, -0.03974585607647896, 0.0301884226500988, -0.026461971923708916, -0.03953858092427254, 0.03234417736530304, 0.002762802178040147, -0.0306740440428257, 0.005881966091692448, -0.05397222936153412, 0.03314748406410217, -0.014480343088507652, 0.016605082899332047, -0.011237545870244503, 0.019053779542446136, -0.022538702934980392, -0.0023516323417425156, 0.026159806177020073, -0.046946145594120026, -0.0009216177277266979, -0.023410674184560776, 0.03073659911751747, 0.05524413660168648, 0.042118072509765625, -0.02781139872968197 ]
[ -0.06625913828611374, -0.01546152587980032, -0.037464674562215805, -0.05856004357337952, 0.06645794957876205, -0.04888233542442322, -0.01959744282066822, 0.03902526944875717, -0.018430808559060097, -0.000569042400456965, -0.02210875041782856, 0.008766617625951767, 0.003767807502299547, -0.016500964760780334, 0.09455540776252747, 0.006444863043725491, 0.047998782247304916, -0.10653211176395416, -0.0029391245916485786, 0.03809811919927597, 0.013580170460045338, -0.04124569892883301, -0.009642883203923702, -0.03844399005174637, 0.014792311005294323, 0.016389479860663414, 0.059946853667497635, -0.028120489791035652, 0.0013373253168538213, -0.1594703644514084, -0.0015290824230760336, 0.003657190129160881, 0.06737443059682846, -0.014058593660593033, -0.01234976202249527, 0.03746280074119568, 0.023768670856952667, 0.011126648634672165, -0.021152639761567116, 0.054474249482154846, 0.034999437630176544, 0.014740160666406155, -0.033161722123622894, -0.03707262873649597, 0.01664344221353531, 0.013693062588572502, 0.015285325236618519, -0.0021118090953677893, 0.011683821678161621, 0.014170070178806782, -0.07293210178613663, -0.00036817509680986404, -0.007080813404172659, -0.018713174387812614, -0.003930139355361462, 0.008783250115811825, 0.016027307137846947, 0.08351432532072067, -0.002815167885273695, 0.014086646027863026, 0.022795893251895905, -0.0015039320569485426, -0.12099715322256088, 0.1196543350815773, 0.035183802247047424, 0.03994022309780121, -0.031032580882310867, -0.0013119162758812308, -0.004199478309601545, 0.04939471185207367, 0.042774397879838943, -0.02122350037097931, -0.008748742751777172, 0.012061169371008873, 0.017217788845300674, 0.02209772728383541, 0.023305730894207954, 0.03573153540492058, -0.02756047062575817, -0.061056409031152725, -0.03444191440939903, 0.010077008046209812, -0.02562323957681656, -0.023469610139727592, -0.023458974435925484, 0.008335708640515804, 0.0053585669957101345, 0.05525815114378929, -0.0017389116110280156, 0.021874679252505302, 0.02542928047478199, 0.023247532546520233, 0.04911191388964653, -0.004082688130438328, -0.06528124958276749, -0.03320866823196411, -0.013615881092846394, 0.022144602611660957, -0.052654366940259933, 0.4304999113082886, -0.01780690625309944, -0.02522663027048111, 0.08638084679841995, 0.03809254243969917, 0.0005282302154228091, -0.0029828143306076527, 0.023825937882065773, -0.06452447921037674, 0.02481185272336006, -0.014139313250780106, 0.03856254369020462, 0.01226724311709404, 0.0731918141245842, -0.04208444058895111, 0.04070376232266426, 0.03505072370171547, 0.047501448541879654, 0.04169630631804466, 0.019918400794267654, -0.02074229158461094, -0.027328940108418465, 0.04189860820770264, 0.020258670672774315, -0.024523457512259483, -0.007153677754104137, -0.0551765114068985, 0.054996948689222336, 0.03554335981607437, -0.004237015265971422, 0.0035949652083218098, 0.036042146384716034, -0.030074816197156906, -0.0673266127705574, 0.0074347518384456635, 0.035060130059719086, -0.005759865045547485, 0.018133040517568588, -0.04455161467194557, -0.0008840430527925491, 0.058242280036211014, 0.0015928504290059209, -0.021357309073209763, 0.018130391836166382, -0.0404316671192646, -0.04578794166445732, 0.09178173542022705, 0.06435680389404297, -0.034500472247600555, -0.02057226002216339, -0.035054873675107956, 0.006393966730684042, 0.0008883486152626574, 0.05570675805211067, -0.06409728527069092, 0.05345211550593376, 0.010638448409736156, 0.1134340763092041, 0.001094610895961523, -0.0745747834444046, -0.005850655026733875, -0.008502844721078873, -0.014334372244775295, -0.02610206976532936, 0.05128289386630058, 0.07194263488054276, -0.11395105719566345, -0.019415000453591347, 0.02691766619682312, 0.045915715396404266, -0.04381644353270531, -0.0038425892125815153, 0.04087555408477783, -0.02174844779074192, -0.006630543153733015, 0.062396567314863205, -0.04096394404768944, -0.03781305253505707, 0.0024114162661135197, 0.04184790328145027, -0.00401321379467845, 0.021790578961372375, -0.0321519635617733, -0.02943638153374195, 0.009689705446362495, -0.07112319022417068, -0.05835912749171257, -0.05504203960299492, 0.0008506391895934939, -0.026802420616149902, -0.0028192391619086266, -0.001424394897185266, -0.01061556488275528, -0.08768288046121597, 0.11369053274393082, -0.04989703372120857, -0.051468223333358765, 0.02373407408595085, 0.008733504451811314, -0.022054174914956093, -0.015508572570979595, -0.05335158482193947, -0.03816145285964012, -0.06167180463671684, 0.04445556923747063, -0.06384415924549103, 0.028337912634015083, -0.005308516789227724, -0.036557912826538086, 0.11717876046895981, 0.0348813459277153, -0.0029589603655040264, -0.015019926242530346, 0.009750084951519966, 0.02715148963034153, -0.005819969344884157, -0.053185638040304184, 0.010606490075588226, 0.0013647807063534856, 0.001627358258701861, 0.002167259342968464, -0.02123786136507988, 0.017569726333022118, -0.033490102738142014, -0.3306632339954376, -0.051873963326215744, -0.05134503170847893, 0.014190600253641605, 0.01846027933061123, -0.06421443819999695, 0.03291555494070053, -0.016357271000742912, 0.03227170929312706, 0.0471801832318306, 0.05896129831671715, -0.025046104565262794, 0.015886815264821053, -0.11437331140041351, -0.0002472510968800634, 0.014189198613166809, -0.03232007101178169, 0.003613673383370042, -0.045586731284856796, 0.006135348696261644, 0.008101264014840126, -0.012492906302213669, -0.0015644029481336474, -0.07348420470952988, 0.0061012315563857555, -0.04017862305045128, 0.06717006117105484, 0.04647214710712433, 0.04716045781970024, -0.02019459195435047, 0.025589071214199066, 0.010603465139865875, 0.04056751728057861, -0.14535751938819885, -0.01147173810750246, 0.014248440973460674, 0.0614333413541317, -0.027045240625739098, -0.007444886490702629, -0.040878720581531525, -0.10195717215538025, 0.04351959377527237, -0.07225816696882248, -0.0633908063173294, -0.07283810526132584, -0.0012161062331870198, -0.04063692316412926, -0.05609102547168732, -0.013673265464603901, 0.06120068207383156, 0.005299912299960852, -0.014005504548549652, 0.0023974438663572073, 0.005330708343535662, 0.01705949567258358, -0.0712638720870018, -0.06136583909392357, -0.001955176703631878, 0.018065614625811577, 0.010177352465689182, 0.00427994504570961, 0.05653933063149452, 0.02180583029985428, -0.05825281888246536, -0.0001456502650398761, 0.02814507484436035, -0.015240317210555077, 0.022158371284604073, 0.000607022549957037, -0.01204872690141201, -0.02412484586238861, 0.08118176460266113, -0.025295233353972435, 0.012960963882505894, 0.013984030112624168, 0.03918912261724472, 0.030340777710080147, 0.028167767450213432, 0.03341318666934967, -0.026137853041291237, 0.015832575038075447, 0.00732047576457262, 0.04925927147269249, -0.010759858414530754, -0.0007569151930510998, 0.03952128812670708, 0.018323980271816254, -0.053699299693107605, 0.06746215373277664, 0.03504146263003349, -0.008242351934313774, 0.014938117004930973, -0.019538922235369682, -0.06705235689878464, 0.08287569880485535, -0.006369350478053093, -0.22286391258239746, 0.020621951669454575, 0.040350496768951416, 0.037260785698890686, -0.008379776030778885, 0.008087101392447948, 0.05142512172460556, -0.0533633679151535, 0.010579376481473446, 0.02831706590950489, 0.0060547408647835255, 0.052680257707834244, 0.009800235740840435, -0.01359287928789854, 0.051569364964962006, 0.011831595562398434, 0.048186808824539185, 0.01960822008550167, -0.011101029813289642, 0.0049127317033708096, -0.004527348093688488, -0.0001863295037765056, 0.12221395969390869, 0.03487999364733696, 0.027055436745285988, 0.027325674891471863, -0.027310948818922043, 0.01800014078617096, 0.04935009032487869, 0.018936417996883392, -0.021671919152140617, -0.036413855850696564, 0.016752462834119797, -0.010848074220120907, -0.004164638463407755, -0.05867721512913704, -0.033047791570425034, 0.03593964874744415, 0.018515583127737045, 0.0005822067614644766, 0.02425379492342472, 0.004796997644007206, -0.04425603151321411, 0.04987727478146553, 0.04520343989133835, -0.005982134025543928, -0.01826474815607071, -0.043918173760175705, -0.030069997534155846, -0.0018000528216362, -0.03160349652171135, -0.0684051364660263, -0.0018533464754000306, -0.004192785359919071, -0.00897339265793562, 0.09882854670286179, 0.018672475591301918, -0.027453165501356125, 0.012033157050609589, -0.007845268584787846, -0.041826698929071426, -0.0644528865814209, 0.06488096714019775, 0.02279394119977951, 0.04265598580241203 ]
[ -0.002952022710815072, 0.0199265293776989, 0.016830772161483765, -0.04347477853298187, 0.02484218217432499, -0.0426461361348629, -0.01252408605068922, 0.006334228441119194, -0.01190308015793562, -0.008514273911714554, -0.015965230762958527, -0.00796737615019083, 0.03993379697203636, -0.029549231752753258, 0.010168119333684444, -0.03008405677974224, -0.008454910479485989, -0.04423024505376816, 0.029545463621616364, 0.00348903751000762, -0.022958902642130852, 0.07842212915420532, 0.016602754592895508, -0.007738032378256321, 0.024190636351704597, 0.04992962256073952, -0.01896057091653347, -0.03530452027916908, 0.024161720648407936, -0.12993475794792175, 0.018439995124936104, 0.014823355711996555, 0.02050921507179737, -0.016918035224080086, 0.01299085933715105, -0.02586272917687893, -0.013720536604523659, -0.016680778935551643, -0.0014263400807976723, 0.004069323651492596, 0.00036359624937176704, -0.018494930118322372, -0.004532208666205406, -0.004458173643797636, -0.045331474393606186, -0.03017996810376644, -0.007066157180815935, -0.035737596452236176, 0.017529381439089775, -0.008016594685614109, -0.04648939520120621, -0.02125592716038227, 0.0011748477118089795, 0.049970194697380066, -0.004374921787530184, -0.00081119395326823, -0.008580895140767097, 0.03299376368522644, 0.04682612419128418, 0.0031267162412405014, 0.03312242403626442, -0.029341813176870346, -0.021493781358003616, -0.015177492052316666, -0.011157402768731117, -0.031123904511332512, 0.00430240947753191, -0.011869286186993122, -0.03432552516460419, 0.032357655465602875, 0.0012629994889721274, 0.05020969361066818, -0.032782141119241714, -0.02704741060733795, 0.018986668437719345, 0.0010717945406213403, 0.03272698447108269, 0.004238929133862257, -0.0023701023310422897, -0.009999612346291542, -0.0388798825442791, 0.015938838943839073, -0.005783494096249342, 0.0004230077611282468, -0.011418486945331097, -0.010400883853435516, 0.01938861608505249, 0.0021350716706365347, 0.01152634248137474, 0.028829561546444893, -0.022429604083299637, 0.04084865003824234, 0.0069535523653030396, 0.008092447184026241, -0.09327972680330276, -0.015126711688935757, -0.01550301443785429, -0.014477798715233803, -0.003144510556012392, 0.845619797706604, 0.014627276919782162, 0.026661952957510948, -0.006805809214711189, -0.04641054570674896, -0.013001803308725357, -0.030670303851366043, -0.02161707915365696, 0.0064902654848992825, 0.03159720078110695, -0.012336625717580318, 0.04615137353539467, -0.01127436850219965, 0.030060553923249245, 0.011371574364602566, 0.030523646622896194, 0.00928578246384859, 0.011617627926170826, -0.00009399576083524153, -0.001322971424087882, 0.03859691694378853, 0.02561790496110916, -0.008190710097551346, -0.00827116146683693, -0.013510016724467278, 0.01218119915574789, -0.18637163937091827, 0.017934106290340424, -7.699274204850927e-33, 0.055391259491443634, -0.031983327120542526, -0.028582343831658363, -0.007850243709981441, 0.016930775716900826, 0.006065120920538902, -0.011793797835707664, 0.041249070316553116, -0.019546261057257652, -0.015807587653398514, 0.00613399688154459, -0.0003896582929883152, -0.009336095303297043, -0.029580365866422653, 0.03052007406949997, -0.018334146589040756, -0.02365489862859249, 0.03267406299710274, 0.003932191524654627, 0.008869895711541176, 0.031145645305514336, 0.030858956277370453, -0.022120587527751923, 0.0025255801156163216, 0.05352072790265083, 0.025344837456941605, 0.035572342574596405, -0.010384210385382175, 0.027217116206884384, -0.03587603196501732, -0.05060891807079315, 0.0002616185520309955, -0.016153033822774887, -0.02787933312356472, -0.01927368715405464, -0.02998161129653454, -0.04263197258114815, -0.005582208279520273, -0.00037810721551068127, -0.014299099333584309, -0.002853191690519452, 0.0063491142354905605, -0.024352598935365677, -0.010351891629397869, 0.014289281331002712, 0.024650244042277336, 0.01876729726791382, 0.0008431089227087796, 0.01030820980668068, -0.012957384809851646, -0.024124493822455406, -0.0053826370276510715, 0.009148496203124523, -0.03290160745382309, -0.018642589449882507, -0.007476766128093004, -0.009711968712508678, -0.005442009773105383, -0.01499293465167284, 0.01631898619234562, 0.0025509351398795843, 0.008173152804374695, 0.0030786837451159954, 0.03658290207386017, -0.027757607400417328, 0.005728591233491898, 0.029303623363375664, 0.00019040872575715184, 0.023859407752752304, 0.004527938552200794, -0.06047886982560158, 0.0002080323756672442, 0.010913116857409477, -0.008923996239900589, -0.0014561853604391217, -0.004402162041515112, -0.024390649050474167, 0.008585321716964245, -0.000589145056437701, 0.03968319296836853, 0.006842649541795254, -0.019946424290537834, -0.0033266691025346518, -0.02509969100356102, 0.00015016374527476728, 0.002483933698385954, 0.00630920147523284, -0.0009823335567489266, -0.02626514807343483, 0.028077581897377968, 0.0004087405977770686, 0.04265257343649864, -0.030721459537744522, -0.007319007534533739, -0.023924484848976135, 7.564806467324489e-33, -0.03009730949997902, -0.028336675837635994, 0.004182218573987484, -0.007320057135075331, 0.0014326300006359816, -0.005082394927740097, 0.018261507153511047, 0.026905126869678497, -0.05381869897246361, 0.005377121269702911, 0.006071061827242374, -0.020292511209845543, -0.029208438470959663, 0.0023404033854603767, 0.02736525423824787, -0.028891991823911667, 0.017891569063067436, -0.0465020090341568, -0.005518264602869749, 0.012229756452143192, 0.022082604467868805, 0.010940016247332096, 0.0003611350548453629, 0.04111736640334129, 0.04535521939396858, 0.033513303846120834, -0.013367608189582825, 0.022478435188531876, 0.01203317753970623, 0.009890498593449593, 0.02002892456948757, -0.026598891243338585, -0.0373094417154789, 0.0038408052641898394, -0.005799104925245047, 0.04028331860899925, -0.004919265862554312, -0.012498144991695881, 0.03510722517967224, -0.03599938750267029, 0.039655089378356934, 0.009570521302521229, 0.0330817885696888, 0.013150171376764774, 0.007733830250799656, -0.029565099626779556, -0.014193412847816944, -0.002561463275924325, -0.0013787884963676333, -0.016614552587270737, 0.018086113035678864, 0.03749823942780495, 0.03328999876976013, 0.011968765407800674, -0.007534949574619532, -0.009760230779647827, -0.007478682789951563, 0.019819574430584908, -0.02907690964639187, -0.0036812699399888515, 0.010255887173116207, -0.014611409977078438, -0.0036420761607587337, 0.010703380219638348, -0.046260152012109756, -0.04151584953069687, -0.003766665467992425, -0.007457127328962088, 0.00995225552469492, 0.0017072389600798488, 0.014647812582552433, -0.01864839717745781, -0.002898940583691001, 0.05106567591428757, 0.00843224860727787, 0.002002847846597433, 0.0006829769699834287, -0.01717735268175602, -0.03141861781477928, 0.0301900003105402, 0.01272320281714201, 0.06529571861028671, 0.001595084322616458, -0.010580610483884811, 0.007271984592080116, 0.05415616184473038, 0.012470311485230923, -0.01143540907651186, 0.012707189656794071, -0.0024997133295983076, -0.015382497571408749, -0.024977322667837143, -0.03277107700705528, 0.007006514817476273, -0.03045995905995369, -1.3205249338454905e-8, -0.004396832548081875, -0.006453312002122402, -0.0035706455819308758, 0.01706460490822792, 0.013498722575604916, 0.0013391779502853751, -0.007693170104175806, -0.015137619338929653, -0.009026731364428997, 0.0035566387232393026, 0.07133708894252777, -0.035542093217372894, -0.019249679520726204, 0.0668581873178482, 0.02512367255985737, -0.02363114431500435, 0.002399773569777608, 0.014170326292514801, 0.019075196236371994, -0.0315474234521389, 0.03914841637015343, 0.05090387538075447, 0.01353970356285572, 0.027439070865511894, 0.042356040328741074, 0.012128469534218311, 0.008320842869579792, -0.07532776892185211, 0.007393635343760252, -0.024720005691051483, -0.023211171850562096, -0.040787674486637115, -0.04797174409031868, 0.006361442618072033, -0.013126131147146225, -0.005627714097499847, 0.028781360015273094, -0.007485889829695225, 0.0013329838402569294, 0.01653306744992733, -0.019059067592024803, -0.010739236138761044, 0.010620645247399807, -0.031941965222358704, -0.054610539227724075, -0.03097568079829216, -0.017091620713472366, -0.008754860609769821, 0.03433806449174881, -0.020016469061374664, 0.0354267880320549, -0.013708120211958885, 0.004354962147772312, 0.016385380178689957, 0.03243659436702728, -0.007823994383215904, -0.004484169650822878, -0.032087165862321854, -0.04858151823282242, 0.011955470778048038, 0.009542291052639484, 0.03380024433135986, -0.007842021062970161, 0.0005679550231434405 ]
top-10-technology-podcasts
https://markhneedham.com/blog/2017/03/30/top-10-technology-podcasts
false
2017-03-06 20:52:01
Neo4j: apoc.date.parse - java.lang.IllegalArgumentException: Illegal pattern character 'T' / java.text.ParseException: Unparseable date: "2012-11-12T08:46:15Z"
[ "neo4j" ]
[ "neo4j" ]
I often find myself wanting to convert date strings into Unix timestamps using https://github.com/neo4j-contrib/neo4j-apoc-procedures[Neo4j's APOC library] and unfortunately some sources don't use the format that https://neo4j-contrib.github.io/neo4j-apoc-procedures/#_date_time_support[+++<cite>+++apoc.date.parse+++</cite>+++] expects. e.g. [source,cypher] ---- return apoc.date.parse("2012-11-12T08:46:15Z",'s') AS ts Failed to invoke function `apoc.date.parse`: Caused by: java.lang.IllegalArgumentException: java.text.ParseException: Unparseable date: "2012-11-12T08:46:15Z" ---- We need to define the format explicitly so the https://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html[SimpleDataFormat] documentation comes in handy. I tried the following: [source,cypher] ---- return apoc.date.parse("2012-11-12T08:46:15Z",'s',"yyyy-MM-ddTHH:mm:ssZ") AS ts Failed to invoke function `apoc.date.parse`: Caused by: java.lang.IllegalArgumentException: Illegal pattern character 'T' ---- Hmmm, we need to quote the 'T' character - we can't just include it in the pattern. Let's try again: [source,cypher] ---- return apoc.date.parse("2012-11-12T08:46:15Z",'s',"yyyy-MM-dd'T'HH:mm:ssZ") AS ts Failed to invoke function `apoc.date.parse`: Caused by: java.lang.IllegalArgumentException: java.text.ParseException: Unparseable date: "2012-11-12T08:46:15Z" ---- The problem now is that we haven't quoted the 'Z' but the error doesn't indicate that - not sure why! We can either quote the 'Z': [source,cypher] ---- return apoc.date.parse("2012-11-12T08:46:15Z",'s',"yyyy-MM-dd'T'HH:mm:ss'Z'") AS ts ╒══════════╕ │"ts" │ ╞══════════╡ │1352709975│ └──────────┘ ---- Or we can match the timezone using 'XXX': [source,cypher] ---- return apoc.date.parse("2012-11-12T08:46:15Z",'s',"yyyy-MM-dd'T'HH:mm:ssXXX") AS ts ╒══════════╕ │"ts" │ ╞══════════╡ │1352709975│ └──────────┘ ----
null
null
[ -0.0063369679264724255, -0.0009327951702289283, -0.028824299573898315, 0.04668053239583969, 0.0848851352930069, -0.0026446275878697634, 0.035208560526371, 0.031758442521095276, 0.04198875278234482, -0.012023991905152798, 0.004619610495865345, -0.014755300246179104, -0.05597656965255737, 0.015556788071990013, -0.012658754363656044, 0.0703234151005745, 0.05919203907251358, -0.035533491522073746, 0.0005775467143394053, -0.026484673842787743, 0.0278114452958107, 0.020387403666973114, 0.007142231334000826, 0.031130606308579445, 0.04740982502698898, 0.008862054906785488, -0.012665106914937496, -0.005202124360948801, -0.038616571575403214, -0.00539281964302063, 0.048869211226701736, 0.027508502826094627, 0.011932785622775555, -0.007684354670345783, 0.012417922727763653, 0.01929101161658764, -0.04486303776502609, -0.004592700861394405, 0.0051998570561409, 0.0503365583717823, -0.05288627743721008, 0.01723988726735115, -0.004940433893352747, 0.010935038328170776, -0.024548672139644623, -0.00009651324216974899, -0.04066981375217438, 0.04193732514977455, -0.02358822338283062, 0.00903517659753561, -0.0856432318687439, 0.003918005153536797, -0.01723855547606945, 0.006950700655579567, 0.010173654183745384, 0.055953364819288254, -0.003798991208896041, -0.0755012258887291, 0.02646838128566742, -0.00667984876781702, 0.014330281876027584, -0.04009736329317093, 0.0018008773913607001, -0.0000034148552003898658, -0.0005252597038634121, -0.029383627697825432, -0.01672005094587803, 0.04140005260705948, -0.0522465854883194, -0.03483986109495163, -0.002376070711761713, 0.021096762269735336, -0.019216952845454216, -0.01634346880018711, -0.0035971885081380606, -0.047069866210222244, -0.005270067602396011, 0.06467881053686142, 0.033554501831531525, 0.06500194221735, -0.006474941037595272, 0.01154941413551569, 0.035227227956056595, 0.008166047744452953, 0.01838681474328041, -0.025290314108133316, -0.04006066918373108, 0.0000957321171881631, -0.043708592653274536, 0.05902848392724991, 0.041804198175668716, -0.046742867678403854, 0.030667640268802643, 0.006727293599396944, -0.01221967302262783, 0.0393715500831604, -0.024670250713825226, -0.005406430922448635, 0.03239114582538605, -0.009960207156836987, -0.053659822791814804, -0.008346755988895893, 0.03563200309872627, 0.017891695722937584, -0.05935470387339592, -0.04127230495214462, -0.05703984200954437, -0.036755021661520004, 0.01734856702387333, -0.0051980274729430676, -0.0470581129193306, 0.026195243000984192, 0.02839377149939537, -0.005673520732671022, -0.06623458117246628, 0.048718295991420746, 0.03120291605591774, -0.021771954372525215, -0.009946097619831562, 0.01808415725827217, 0.04512672871351242, 0.029146092012524605, 0.016011182218790054, 0.06161496043205261, 0.002120137447491288, 0.07101847231388092, -0.003884393023326993, 0.048473160713911057, -0.024541031569242477, -0.04159289970993996, -0.055368851870298386, 0.048484738916158676, 0.007968219928443432, 0.005071098450571299, -0.014265133999288082, -0.026902589946985245, -0.028374722227454185, 0.03454546257853508, 0.05454777181148529, 0.023931145668029785, -0.01629413664340973, -0.055570077151060104, 0.021853357553482056, -0.02260892651975155, 0.016740262508392334, 0.032051317393779755, -0.04016820713877678, -0.03451010212302208, -0.027188550680875778, -0.013501182198524475, 0.02310439944267273, -0.012081976048648357, 0.04983517527580261, 0.00410672789439559, -0.0032538725063204765, 0.08422153443098068, 0.025332078337669373, 0.01747378148138523, -0.01077486015856266, 0.02071418985724449, 0.039036720991134644, 0.031705018132925034, -0.030255882069468498, 0.05003872886300087, 0.0022414126433432102, -0.003508566180244088, 0.0038293844554573298, 0.028757773339748383, -0.02749977819621563, 0.008633111603558064, -0.039320845156908035, -0.061942070722579956, 0.06475220620632172, -0.040870849043130875, -0.0070482706651091576, 0.04359748959541321, 0.08859797567129135, 0.010575643740594387, 0.015245226211845875, 0.008402185514569283, -0.07697376608848572, 0.07696565985679626, 0.003534217830747366, -0.0008385385735891759, -0.015874158591032028, 0.0007800066960044205, 0.05954771116375923, 0.01656542532145977, 0.019844412803649902, 0.05035596340894699, -0.09778731316328049, -0.07541102916002274, -0.0047750468365848064, -0.017969254404306412, 0.06712669134140015, -0.027249665930867195, -0.0018990007229149342, 0.043670639395713806, -0.0026241857558488846, 0.044427819550037384, 0.016951438039541245, 0.007864979095757008, 0.009789125062525272, -0.036956630647182465, -0.0442446768283844, 0.036280084401369095, 0.055229052901268005, -0.044115565717220306, -0.007204461842775345, 0.002664197701960802, -0.01806226186454296, 0.038821667432785034, 0.03956661745905876, -0.0043190764263272285, 0.030277932062745094, 0.022339658811688423, 0.046744611114263535, -0.008283358067274094, -0.00029978022212162614, -0.06141156330704689, 0.03970937803387642, 0.010755565948784351, -0.03179159387946129, -0.023469462990760803, -0.007533860392868519, 0.10892888158559799, 0.05378607288002968, -0.019118964672088623, -0.03314448148012161, 0.04732876271009445, -0.0016254306538030505, -0.07017018646001816, 0.030777333304286003, -0.013709203340113163, 0.022853948175907135, -0.011420711874961853, -0.020675482228398323, -0.014029278419911861, -0.03099936619400978, 0.0006621788488700986, 0.026390058919787407, 0.06920123100280762, -0.023767098784446716, 0.05907271057367325, -0.017212459817528725, -0.014726013876497746, -0.02337583340704441, -0.053826674818992615, -0.04491839557886124, 0.027333907783031464, 0.007880644872784615, -0.004983583465218544, 0.07864616066217422, -0.013179028406739235, -0.03695090487599373, -0.03607393801212311, -0.0452638678252697, 0.034670572727918625, 0.05145445466041565, 0.04061455652117729, 0.006685852073132992, 0.04984009265899658, -0.04828498885035515, 0.002789587713778019, -0.011747338809072971, -0.0666438415646553, -0.031150562688708305, 0.010692845098674297, 0.020072869956493378, 0.0007321583689190447, 0.030404744669795036, 0.0017502151895314455, 0.029970262199640274, 0.005924633704125881, 0.010096096433699131, -0.03185724839568138, 0.025276238098740578, -0.0003262195677962154, -0.021848252043128014, -0.02243434265255928, -0.0074454788118600845, 0.07977667450904846, -0.05372714251279831, -0.04782233014702797, -0.022484615445137024, -0.059188202023506165, 0.06863871216773987, -0.03415931388735771, -0.018889890983700752, 0.002727493876591325, 0.026483137160539627, 0.06241731345653534, 0.01096001174300909, 0.0178423710167408, 0.07545547187328339, 0.0038825897499918938, 0.02584090642631054, 0.007728727534413338, 0.007014050148427486, 0.03887539729475975, -0.0045663099735975266, 0.022963454946875572, 0.059257566928863525, 0.00692475400865078, 0.016309920698404312, -0.036488164216279984, -0.01818130537867546, -0.014227201230823994, -0.25399938225746155, 0.059025462716817856, -0.07144582271575928, -0.030514869838953018, 0.01486485730856657, -0.02932293340563774, 0.007847841829061508, -0.031107237562537193, -0.017189795151352882, 0.0008611027151346207, 0.020032325759530067, -0.013546586968004704, -0.018951566889882088, 0.03766262158751488, 0.007952365092933178, -0.01716584712266922, -0.027562087401747704, -0.06962554901838303, 0.007059762720018625, 0.016470786184072495, 0.01947372779250145, -0.0436038076877594, 0.026087934151291847, 0.034066092222929, 0.009427335113286972, 0.04108341038227081, -0.0690302923321724, 0.03134852275252342, -0.025612762197852135, -0.04311300069093704, 0.009412242099642754, -0.02911033295094967, 0.047345735132694244, -0.008140330202877522, -0.011404314078390598, 0.014802678488194942, 0.023244012147188187, 0.02151349186897278, 0.01290607824921608, 0.04765838757157326, -0.035279739648103714, -0.062474723905324936, 0.014235705137252808, -0.016984792426228523, 0.08031917363405228, 0.013919541612267494, -0.07738769799470901, -0.007497511338442564, 0.005152632016688585, 0.07674574106931686, -0.03118637017905712, -0.01594572328031063, -0.016194051131606102, -0.004781018942594528, -0.011742078699171543, -0.02021452970802784, -0.03577106446027756, -0.02900610864162445, -0.030025452375411987, -0.025027155876159668, 0.005797041580080986, -0.03504006192088127, 0.02408081479370594, -0.030774453654885292, -0.06350117921829224, -0.06629690527915955, -0.09389926493167877, -0.03614858165383339, 0.05150318890810013, 0.03316850587725639, -0.033928029239177704, 0.034576982259750366, -0.018627548590302467, -0.11222263425588608, -0.03427945449948311, -0.044403769075870514, -0.02480608969926834, -0.013545481488108635, -0.046353936195373535, 0.055930715054273605, -0.04012034088373184, -0.03617921471595764, 0.010900869965553284, 0.03129875659942627, 0.03421178087592125, -0.007107543759047985, 0.008255881257355213, -0.02704424411058426, -0.022419927641749382, -0.00743879796937108, 0.0535908043384552, -0.005899183452129364, -0.017500074580311775, 0.00046137775643728673, -0.016993829980492592, 0.016021739691495895, 0.0005193986580707133, 0.0073047662153840065, 0.019533567130565643, 0.031028293073177338, 0.010145090520381927, -0.032341595739126205, 0.031780581921339035, -0.06298545002937317, -0.015435339882969856, -0.04111064597964287, -0.038638923317193985, 0.030216332525014877, 0.015108311548829079, 0.03022860363125801, 0.008154027163982391, -0.012775573879480362, 0.02790595404803753, -0.06259114295244217, -0.04642930254340172, -0.012466304935514927, 0.00639351224526763, 0.03226753696799278, 0.04628921300172806, -0.04172540083527565, -0.06139973923563957, 0.02508733794093132, 0.016473034396767616, -0.036971788853406906, -0.03583795204758644, -0.040212199091911316, -0.033787231892347336, -0.019731668755412102, 0.011874564923346043, 0.01994791440665722, -0.035201333463191986, 0.031994372606277466, 0.04530207812786102, -0.0008326838142238557, 0.02636006474494934, -0.024484017863869667, -0.006329719442874193, -0.05168585479259491, 0.006817732937633991, -0.01749294064939022, 0.00577148050069809, -0.0049966140650212765, -0.017766181379556656, 0.033470507711172104, 0.034793201833963394, -0.015178804285824299, 0.019784096628427505, 0.012529370374977589, 0.02893974632024765, 0.026064587756991386, -0.02450101263821125, -0.053791891783475876, 0.012690017931163311, -0.03947903588414192, -0.05125879496335983, 0.014873252250254154, 0.03169265761971474, -0.00018140373867936432, -0.01528940349817276, -0.020341550931334496, 0.015429649502038956, -0.0581115186214447, 0.00703487079590559, -0.03930855542421341, -0.02038676291704178, 0.032623618841171265, -0.004395603202283382, 0.04551037400960922, -0.03235934302210808, -0.036963459104299545, -0.00850045494735241, 0.0033143844921141863, -0.019549183547496796, 0.015367653220891953, 0.006783804390579462, 0.0009057323331944644, 0.0293816477060318, 0.038947924971580505, 0.0314955860376358, 0.021706709638237953, -0.01765948347747326, -0.018530521541833878, 0.0010737301781773567, -0.002647182671353221, 0.025817669928073883, 0.033320143818855286, -0.01920226961374283, -0.008908365853130817, -0.053552936762571335, -0.028792520985007286, -0.02988429367542267, -0.03140595182776451, -0.03687330335378647, -0.007386768236756325, -0.02320239506661892, -0.06096237525343895, 0.05014347657561302, 0.013762257993221283, 0.030663205310702324, 0.028804568573832512, 0.019697237759828568, -0.006740575656294823, -0.041387613862752914, 0.011048991233110428, 0.029087183997035027, -0.051687825471162796, -0.007604728452861309, 0.005998043343424797, 0.0055099958553910255, 0.003438287880271673, 0.04227369278669357, -0.04642309248447418, -0.010182044468820095, 0.0016952197765931487, -0.0037507368251681328, -0.000905049848370254, -0.04381251707673073, -0.005968694109469652, -0.0006757159135304391, 0.009410738945007324, 0.01682630553841591, 0.023292934522032738, 0.003404739312827587, 0.005013222806155682, -0.0007511402945965528, 0.05871192738413811, -0.03147978335618973, 0.00979702826589346, 0.03569930046796799, 0.0017148499609902501, 0.02107498236000538, -0.03676518797874451, 0.020653920248150826, 0.01467297226190567, -0.015033231116831303, -0.03528326004743576, -0.07463745772838593, 0.012574873864650726, -0.01114567369222641, 0.08307608217000961, -0.03778877109289169, -0.005791373085230589, -0.02222493477165699, -0.00576728954911232, -0.03464018180966377, -0.00016331578081008047, 0.011437826789915562, -0.018581490963697433, 0.00827693473547697, 0.041603319346904755, 0.03172749653458595, 0.03772526606917381, -0.0322667695581913, -0.015071428380906582, 0.039156924933195114, -0.037404511123895645, -0.07273642718791962, 0.01659725420176983, -0.0794946700334549, 0.01885007508099079, 0.022173689678311348, -0.006565294694155455, -0.018717266619205475, 0.05214235559105873, 0.0688755214214325, 0.015491554513573647, 0.053115587681531906, -0.010848174802958965, 0.008859241381287575, -0.01904468424618244, -0.0294729545712471, -0.08564721047878265, 0.036664705723524094, 0.0425085574388504, 0.004736023023724556, -0.029947277158498764, 0.0025287906173616648, -0.023484399542212486, 0.016183270141482353, -0.026849374175071716, -0.025802006945014, 0.04991070553660393, -0.016525790095329285, 0.027441799640655518, 0.0034271590411663055, -0.06370745599269867, 0.014851942658424377, 0.049598220735788345, -0.036677006632089615, -0.04434085637331009, -0.02863255888223648, 0.07826628535985947, -0.006104703992605209, 0.0408204048871994, -0.04492846503853798, -0.018207985907793045, 0.07690341025590897, 0.01772967539727688, -0.008765037171542645, 0.056500643491744995, -0.009886751882731915, 0.028865555301308632, 0.033707503229379654, -0.009567689150571823, 0.0032514811027795076, 0.024945542216300964, -0.028243590146303177, -0.062093716114759445, 0.0046012322418391705, 0.015528803691267967, -0.0483357273042202, 0.0006855216925032437, 0.06614752858877182, 0.008254879154264927, -0.012714935466647148, -0.038054317235946655, 0.0055112289264798164, -0.024379147216677666, -0.008511530235409737, -0.034652840346097946, 0.01983468607068062, -0.019043797627091408, 0.04708219692111015, -0.03338553011417389, 0.03731435909867287, 0.08278383314609528, 0.005480960942804813, 0.002829507226124406, 0.01340523362159729, 0.07543415576219559, 0.08694863319396973, 0.030982792377471924, 0.01577751897275448, 0.057621151208877563, -0.00895825494080782, -0.03631652146577835, -0.008799929171800613, -0.050605081021785736, -0.02142513170838356, -0.009258449077606201, 0.00738932378590107, 0.0862613171339035, -0.02605092152953148, 0.04305263236165047, -0.006283449940383434, -0.01446644775569439, -0.019857197999954224, -0.004681600257754326, 0.04448261857032776, 0.009318077936768532, 0.026214856654405594, 0.026689469814300537, -0.02900461107492447, -0.025369055569171906, 0.05102091282606125, 0.005201675463467836, -0.02537142112851143, 0.03234240785241127, -0.0014574512606486678, -0.014724865555763245, 0.016380054876208305, 0.05659555271267891, 0.06252541393041611, -0.019910065457224846, 0.017813850194215775, 0.024656614288687706, 0.014333955012261868, 0.009891794063150883, 0.01549907959997654, -0.01701059192419052, -0.036683905869722366, -0.0007906727842055261, -0.042840320616960526, 0.006509710568934679, 0.01175784319639206, -0.06337534636259079, 0.0618327297270298, -0.03784305974841118, 0.0031228228472173214, 0.0044740731827914715, -0.07392754405736923, -0.03592851758003235, -0.06776923686265945, -0.036484573036432266, -0.019367512315511703, -0.10698176175355911, -0.005310234613716602, 0.012511622160673141, -0.016330156475305557, -0.037041813135147095, 0.00709699559956789, -0.003265846287831664, -0.0050370581448078156, 0.015423478558659554, -0.03269030526280403, -0.0030054294038563967, 0.02383362501859665, 0.009239829145371914, -0.002970063127577305, 0.03102448582649231, 0.046089719980955124, -0.025625647976994514, 0.002327483147382736, -0.03053167834877968, -0.0011110351188108325, 0.02225715108215809, 0.01671406626701355, -0.011470222845673561, -0.07376325875520706, -0.011743287555873394, 0.030727285891771317, 0.0020918482914566994, -0.0699770599603653, 0.035715896636247635, 0.0207402054220438, -0.02091236226260662, 0.040313273668289185, -0.014987974427640438, 0.002785359974950552, -0.00352801033295691, -0.014323514886200428, 0.0017925199354067445, 0.008431917987763882, 0.04302408546209335, -0.02415366657078266, 0.07400598376989365, 0.07080252468585968, -0.026047294959425926, -0.004148673266172409, -0.02450239658355713, 0.004727610386908054, -0.009226947091519833, -0.045137230306863785, -0.019423751160502434, -0.07388437539339066, -0.07975748181343079, -0.029797254130244255, -0.0035714793484658003, -0.03870779275894165, -0.027375048026442528, 0.03202083334326744, 0.01486453227698803, -0.017565857619047165, 0.010815609246492386, -0.03529604524374008, 0.014332908205688, -0.008434750139713287, -0.021315861493349075, -0.029590608552098274, 0.0005479197716340423, -0.004734709393233061, -0.009199394844472408, 0.029333923012018204, -0.07289250195026398, 0.0069526368752121925, -0.01790614239871502, 0.03037712536752224, 0.03557811677455902, 0.03543395921587944, -0.009328298270702362 ]
[ -0.08238600194454193, -0.016825558617711067, -0.012193535454571247, -0.05572425574064255, 0.010164470411837101, -0.11467035859823227, -0.022730279713869095, -0.014454258605837822, -0.029148655012249947, 0.0009139367612078786, 0.014690947718918324, -0.04883943870663643, 0.011906590312719345, -0.004424594342708588, 0.052270062267780304, -0.02613055147230625, -0.06258124113082886, -0.03020511195063591, -0.003412304911762476, 0.05286668613553047, 0.035681381821632385, 0.01792260818183422, 0.005029086023569107, -0.016545800492167473, 0.016452213749289513, 0.0743551254272461, 0.044164028018713, -0.010210338048636913, -0.05419334024190903, -0.18845435976982117, -0.00840623490512371, -0.024770818650722504, -0.004837264772504568, -0.002569379284977913, 0.02014697529375553, 0.015885738655924797, 0.035055093467235565, -0.008693918585777283, -0.006986917927861214, 0.05344453081488609, 0.015141882002353668, 0.014934608712792397, -0.07182198762893677, -0.021581226959824562, 0.025487514212727547, 0.018139781430363655, -0.026257529854774475, -0.017072802409529686, -0.0119380634278059, 0.06728286296129227, -0.05329106003046036, 0.03902025893330574, 0.009129737503826618, 0.0073339189402759075, 0.035013776272535324, 0.010512414388358593, 0.02755601704120636, 0.07721962779760361, 0.040115512907505035, 0.011170340701937675, -0.009697706438601017, 0.0008895660284906626, -0.1414550542831421, 0.11660699546337128, 0.013932536356151104, 0.004450101405382156, 0.012522830627858639, 0.02323678508400917, -0.05004635825753212, 0.03010188229382038, -0.0036455404479056597, -0.018110698089003563, -0.0664442703127861, 0.07667709141969681, -0.017002103850245476, 0.018195271492004395, -0.02577354945242405, -0.02871452458202839, 0.038399260491132736, -0.038751013576984406, -0.014916887506842613, 0.01251229178160429, -0.002919599413871765, -0.025179453194141388, -0.004849712830036879, 0.012125165201723576, -0.018499931320548058, 0.057063791900873184, 0.005141338333487511, 0.05537087842822075, 0.013904557563364506, -0.012722183018922806, 0.051227156072854996, 0.03446515277028084, -0.0588645376265049, 0.01326228678226471, 0.005770963151007891, 0.039332397282123566, -0.008955215103924274, 0.34719210863113403, -0.020906174555420876, 0.04528955742716789, -0.030133308842778206, 0.019978739321231842, -0.016247626394033432, -0.028127940371632576, 0.030124085023999214, -0.08192918449640274, 0.0178761538118124, -0.020660318434238434, -0.041324786841869354, -0.03457149490714073, 0.06921107321977615, -0.10470747947692871, 0.00901719555258751, 0.038950443267822266, 0.0444800928235054, -0.02700083516538143, -0.038341861218214035, 0.0628175213932991, 0.005889189895242453, -0.05939846113324165, 0.02681940607726574, 0.031835686415433884, 0.033457204699516296, 0.05467259883880615, 0.013905814848840237, 0.048482537269592285, 0.04628245532512665, 0.03481321036815643, 0.06298734247684479, -0.03913075849413872, -0.055201947689056396, 0.028415892273187637, 0.015682654455304146, 0.01389326062053442, -0.01459970511496067, -0.06403356045484543, -0.0188713688403368, -0.02081459015607834, -0.03030157834291458, -0.05993623659014702, 0.024137018248438835, 0.07436495274305344, -0.042208846658468246, 0.1088290587067604, -0.01755646802484989, -0.022259114310145378, -0.031242424622178078, -0.015375146642327309, -0.04977475479245186, 0.051188599318265915, -0.006616940256208181, -0.04416627809405327, -0.002824353752657771, -0.023815639317035675, 0.09071440994739532, 0.006728543899953365, -0.06778628379106522, -0.005758083891123533, -0.034980203956365585, -0.01027677208185196, -0.03929544612765312, 0.10714911669492722, 0.04529780521988869, -0.09439694881439209, 0.006764132529497147, 0.04821687191724777, 0.017647521570324898, -0.08291936665773392, 0.003788364352658391, -0.0005726749077439308, -0.008045882917940617, -0.04775695502758026, 0.08835285902023315, 0.02672497183084488, 0.060769062489271164, -0.028706315904855728, 0.0328068733215332, 0.039728835225105286, -0.0012348198797553778, -0.0307624414563179, -0.030709775164723396, 0.023581240326166153, 0.014376786537468433, -0.06479648500680923, -0.0511183887720108, 0.02124161086976528, 0.020217716693878174, 0.002572644269093871, -0.02601456642150879, -0.02561098337173462, -0.07064361870288849, 0.05711223557591438, -0.052772827446460724, -0.06194263696670532, -0.012427132576704025, 0.030539462342858315, 0.006162235513329506, -0.03944417089223862, 0.04625233635306358, 0.008916055783629417, -0.01697009988129139, 0.00815549585968256, -0.005419946741312742, -0.028572645038366318, 0.0699695348739624, -0.057709965854883194, 0.0230056494474411, 0.013749441131949425, -0.043768495321273804, 0.025079267099499702, -0.0051653399132192135, 0.05426761880517006, -0.015956178307533264, 0.0027350462041795254, 0.021394824609160423, -0.009964917786419392, 0.00038701368612237275, 0.04672912508249283, -0.07084499299526215, -0.016804484650492668, -0.010754619725048542, -0.3290620446205139, -0.007746981922537088, -0.015881776809692383, -0.024685300886631012, 0.01213794481009245, -0.011069511994719505, -0.0261935293674469, -0.03591454029083252, 0.05053296685218811, 0.04102407023310661, 0.06639664620161057, 0.00169070390984416, -0.011131258681416512, -0.08728478848934174, -0.008609408512711525, 0.025719448924064636, 0.02048860304057598, -0.031170662492513657, 0.04377168044447899, 0.014991484582424164, -0.009079553186893463, -0.07547751069068909, -0.04813658073544502, -0.05228573828935623, -0.013510790653526783, 0.020107703283429146, 0.11216162890195847, 0.022934971377253532, 0.020119357854127884, -0.06067777797579765, 0.06581740826368332, -0.021186986938118935, 0.011433757841587067, -0.07526049017906189, 0.023438584059476852, -0.04224010184407234, -0.004079928621649742, 0.05111818015575409, 0.00569209223613143, -0.005707124713808298, -0.05075163394212723, -0.04226433113217354, -0.02799607627093792, -0.03379831835627556, 0.03705580532550812, -0.0010583987459540367, -0.02372867800295353, 0.04046977311372757, 0.033431462943553925, 0.03451676294207573, 0.017699304968118668, 0.006786416284739971, 0.013583668507635593, 0.021097585558891296, 0.003605069825425744, -0.04632379114627838, -0.05661303550004959, -0.010894638486206532, 0.046363189816474915, -0.000046935234422562644, 0.01152535155415535, 0.038734737783670425, 0.051160864531993866, -0.03584248200058937, 0.0067068180069327354, 0.0024785748682916164, -0.01790837198495865, -0.009266505017876625, 0.013947770930826664, -0.009539991617202759, -0.03357023745775223, 0.13261525332927704, -0.036711156368255615, -0.012472346425056458, 0.05642832815647125, -0.0014127746690064669, -0.03384469449520111, -0.013791962526738644, 0.03155219927430153, 0.00650559738278389, 0.029615161940455437, -0.005011513363569975, 0.09942155331373215, 0.02431657910346985, -0.0066870348528027534, 0.053570084273815155, 0.02419259026646614, 0.022031208500266075, 0.039809927344322205, -0.01504240371286869, -0.04029328003525734, -0.03212735056877136, -0.02956884726881981, -0.03273171931505203, 0.07478003948926926, -0.02224152721464634, -0.28621533513069153, 0.05925428867340088, 0.03827119246125221, 0.054776933044195175, 0.013218723237514496, -0.02077637054026127, 0.001652922248467803, -0.04883527383208275, -0.06797004491090775, -0.0007227367605082691, -0.025830814614892006, 0.054079461842775345, -0.029391955584287643, -0.010176670737564564, 0.010301410220563412, 0.014426661655306816, 0.034713294357061386, 0.04824024438858032, 0.022973444312810898, -0.024375464767217636, 0.021310923621058464, -0.03529476374387741, 0.1761377900838852, -0.014263397082686424, 0.008875972591340542, 0.03747561201453209, 0.0028771376237273216, 0.025131618604063988, 0.11805466562509537, 0.0000014572467534890166, -0.00481192022562027, 0.041102275252342224, 0.04564739018678665, 0.016299983486533165, -0.00033425187575630844, -0.010174390859901905, -0.02658143639564514, 0.01967492885887623, -0.006940346676856279, -0.012587366625666618, -0.05214689299464226, 0.041968826204538345, -0.03754766657948494, 0.00445999950170517, 0.07975258678197861, -0.016212916001677513, -0.004238148219883442, -0.04130762815475464, -0.04817977547645569, -0.015972336754202843, -0.036089565604925156, -0.03624735400080681, -0.03738316893577576, -0.009758850559592247, -0.03715972229838371, 0.08452178537845612, 0.012683354318141937, -0.007722534239292145, -0.015117217786610126, 0.05414798483252525, 0.0012357920641079545, -0.05016763508319855, 0.08586648851633072, -0.005479194223880768, -0.015770481899380684 ]
[ 0.012685694731771946, 0.07098912447690964, 0.009084896184504032, -0.004221938084810972, -0.03014235571026802, 0.00686001917347312, -0.04919757694005966, 0.054076679050922394, -0.0039814491756260395, -0.0036690549459308386, -0.04282105341553688, -0.008214300498366356, 0.0027809261810034513, -0.034222312271595, -0.01756025105714798, -0.014871848747134209, -0.004353726282715797, 0.02272462472319603, 0.0680241659283638, -0.01717321388423443, -0.020745020359754562, -0.006907541770488024, 0.025958282873034477, -0.011012147180736065, 0.006743218284100294, 0.02772539295256138, -0.03095024637877941, 0.008309874683618546, 0.0016043710056692362, -0.11225084960460663, -0.047013577073812485, 0.01121913269162178, -0.03176760673522949, -0.005364042706787586, 0.01166650839149952, 0.03684510663151741, 0.027977699413895607, 0.015383983962237835, 0.032275982201099396, 0.02534831315279007, -0.0029511013999581337, 0.0034414713736623526, -0.02971232309937477, 0.007108132820576429, 0.00017686464707367122, -0.03683635592460632, 0.03314097598195076, -0.034285396337509155, -0.04838133603334427, 0.021461231634020805, -0.021107371896505356, 0.004057534039020538, -0.035946570336818695, -0.0017852179007604718, 0.022447828203439713, -0.0026429120916873217, -0.06695987284183502, 0.002088753739371896, 0.006805744953453541, -0.03923678398132324, -0.005003792699426413, 0.011159155517816544, -0.08908093720674515, -0.00770864263176918, -0.008819161914288998, -0.023509271442890167, 0.006049346644431353, 0.011878399178385735, 0.001203031511977315, 0.0062416959553956985, -0.022112196311354637, 0.029668057337403297, -0.03931256756186485, 0.01812092587351799, -0.05119340866804123, 0.029190542176365852, 0.05126110464334488, -0.04807990789413452, -0.005110886879265308, 0.0013046283274888992, -0.004264790564775467, 0.000836302584502846, -0.01820630393922329, 0.0006128575769253075, -0.009865660220384598, -0.027667194604873657, -0.030809469521045685, 0.0726727694272995, 0.0075015416368842125, -0.01130729541182518, 0.002696051262319088, -0.003973104525357485, 0.030283281579613686, -0.004737197887152433, -0.07030151039361954, 0.0007204132853075862, -0.00006229522114153951, -0.0062907482497394085, 0.039072684943675995, 0.8117331862449646, 0.010783919133245945, 0.033320922404527664, -0.02710370346903801, 0.00733937555924058, -0.002223009243607521, 0.02944052219390869, -0.011792427860200405, -0.015147414989769459, 0.0232388898730278, 0.008308321237564087, -0.019429180771112442, 0.01144581288099289, 0.0019565608818084, -0.017051028087735176, 0.024788029491901398, 0.043713707476854324, -0.018889475613832474, -0.010720641352236271, 0.02318260259926319, 0.03428339213132858, -0.009068286046385765, 0.019201155751943588, -0.013532121665775776, 0.015018907375633717, 0.010774721391499043, -0.127931609749794, 0.02464357763528824, -6.143885426439816e-33, 0.07078031450510025, -0.0039143492467701435, 0.07061244547367096, -0.025485506281256676, 0.014005164615809917, 0.05028044804930687, -0.00479796901345253, -0.036912523210048676, 0.04084021970629692, -0.053050678223371506, -0.012923058122396469, -0.060154981911182404, -0.005643191747367382, -0.08813266456127167, -0.011764113791286945, -0.018657201901078224, 0.016645753756165504, 0.026867376640439034, 0.010796213522553444, 0.045806992799043655, -0.01326738204807043, -0.003982733469456434, -0.021945461630821228, 0.02488856203854084, 0.02225121296942234, 0.022026993334293365, 0.024424219503998756, 0.006953146308660507, -0.009204613976180553, -0.04498892277479172, -0.03203185275197029, -0.005998107139021158, -0.024061616510152817, -0.002263022819533944, 0.06849421560764313, -0.06737830489873886, -0.0133958850055933, 0.030595943331718445, -0.011241432279348373, -0.052805498242378235, -0.044936440885066986, -0.027596954256296158, -0.0027053828816860914, -0.007645753212273121, 0.011555420234799385, -0.023662012070417404, 0.0052757104858756065, 0.005062277894467115, -0.005181346088647842, 0.03978770598769188, -0.03034207969903946, 0.027693523094058037, 0.014794446527957916, -0.02964305877685547, -0.021832216531038284, 0.03856195881962776, 0.029378708451986313, 0.0036137737333774567, -0.01677536964416504, 0.018334314227104187, 0.05438517779111862, 0.008938292041420937, 0.005242242012172937, -0.003718599444255233, 0.014489952474832535, 0.011537114158272743, -0.007180479355156422, -0.010542329400777817, 0.0020941218826919794, 0.0831780806183815, -0.028721019625663757, 0.03222445398569107, 0.00002099551238643471, -0.008233548142015934, 0.02439940720796585, -0.028678955510258675, 0.05359403043985367, -0.016431454569101334, 0.03236074000597, 0.03051021881401539, -0.0023945861030369997, -0.05174414813518524, 0.033222831785678864, -0.015814485028386116, -0.006814762018620968, 0.010670800693333149, 0.03736491501331329, 0.02970047853887081, 0.01565760374069214, 0.018815912306308746, 0.0766175389289856, -0.013433561660349369, -0.02875346690416336, -0.005212631542235613, -0.02451547607779503, 6.307967907425299e-33, 0.004670914262533188, 0.00136425846721977, -0.03805667534470558, 0.005710416007786989, 0.016580814495682716, -0.032249126583337784, -0.004168968182057142, 0.019595015794038773, -0.015296089462935925, 0.060113031417131424, -0.014201256446540356, -0.0435616672039032, -0.02936876378953457, -0.007006841246038675, 0.05648823827505112, 0.005568487569689751, 0.03740481659770012, -0.015879906713962555, -0.0036815404891967773, 0.008085444569587708, -0.012085950933396816, 0.015470977872610092, -0.001104150665923953, 0.011660386808216572, 0.048752546310424805, 0.002704524202272296, 0.003579789539799094, 0.011565211229026318, -0.0026560791302472353, 0.03246181458234787, 0.014789781533181667, -0.036977943032979965, -0.030940212309360504, -0.04271170124411583, -0.028270874172449112, 0.025830352678894997, -0.010343769565224648, -0.0277772918343544, 0.01959146559238434, -0.01057494431734085, 0.0046284375712275505, 0.020156659185886383, -0.0466662272810936, 0.04103550314903259, 0.002703882986679673, 0.05984819680452347, 0.016297608613967896, 0.03411675617098808, 0.011785953305661678, 0.01277762558311224, -0.017498446628451347, -0.012993116863071918, -0.0007081488147377968, 0.01029889564961195, 0.028371892869472504, -0.04288021847605705, 0.002366015687584877, 0.02274601347744465, -0.008553171530365944, -0.017641223967075348, -0.05513812229037285, -0.029889656230807304, -0.013429395854473114, -0.0040602050721645355, -0.02440265566110611, -0.029210934415459633, 0.0009528465452603996, -0.02447863109409809, 0.003720139153301716, 0.005506397690623999, 0.024303467944264412, -0.029936132952570915, -0.04224202781915665, 0.039265088737010956, 0.016435101628303528, -0.0037695036735385656, -0.01858060248196125, 0.009976708330214024, -0.06570062786340714, 0.018976261839270592, 0.005709669087082148, 0.061044491827487946, -0.0010241148993372917, 0.05392308160662651, -0.012098683044314384, 0.022228393703699112, -0.02923009544610977, 0.025402937084436417, -0.015881560742855072, -0.03875826671719551, 0.022819550707936287, 0.0041272868402302265, -0.035928044468164444, 0.06951954960823059, -0.016728021204471588, -1.2183450692759834e-8, -0.015522844158113003, 0.007339083589613438, -0.020265007391572, 0.0019935653544962406, 0.004455388989299536, -0.025930041447281837, -0.018742846325039864, -0.0269020963460207, 0.02779417112469673, 0.00342678208835423, 0.060403816401958466, -0.017989441752433777, 0.03092052973806858, 0.011109341867268085, 0.014421597123146057, 0.00603030389174819, -0.007902372628450394, 0.0049326722510159016, 0.014744696207344532, 0.007999664172530174, 0.013722733594477177, 0.010530376806855202, 0.00941594410687685, -0.006361115258187056, -0.010458853095769882, 0.03118889406323433, 0.012217563576996326, -0.04297928512096405, 0.025131283327937126, -0.004282772075384855, 0.03281904757022858, -0.013816475868225098, -0.026387788355350494, -0.05105230584740639, -0.06586373597383499, -0.03691387549042702, 0.008917326107621193, 0.018942857161164284, -0.03633236885070801, 0.05527900531888008, -0.0054810745641589165, 0.0013108642306178808, -0.01258035283535719, -0.0035287027712911367, -0.052146319299936295, -0.014856983907520771, -0.04874180257320404, -0.016235971823334694, 0.03060721792280674, -0.03972586616873741, 0.009523178450763226, 0.024920953437685966, 0.004640979692339897, -0.0010514233727008104, 0.04024353250861168, 0.0036259745247662067, 0.027291951701045036, -0.04068690538406372, -0.014853396452963352, -0.03770622983574867, 0.026607397943735123, 0.0076618981547653675, -0.01946665346622467, -0.027086157351732254 ]
neo4j-apoc-date-parse-java-lang-illegalargumentexception-illegal-pattern-character-t-java-text-parseexception-unparseable-date-2012-11-12t084615z
https://markhneedham.com/blog/2017/03/06/neo4j-apoc-date-parse-java-lang-illegalargumentexception-illegal-pattern-character-t-java-text-parseexception-unparseable-date-2012-11-12t084615z
false
2017-03-25 14:09:59
Luigi: An ExternalProgramTask example - Converting JSON to CSV
[ "python", "luigi", "data-science", "data-engineering" ]
[ "Python" ]
I've been playing around with the Python library https://github.com/spotify/luigi[Luigi] which is used to build pipelines of batch jobs and I struggled to find an example of an http://luigi.readthedocs.io/en/stable/_modules/luigi/contrib/external_program.html#ExternalProgramTask[ExternalProgramTask] so this is my attempt at filling that void. [.alignnone.size-full.wp-image-7069] image::{{<siteurl>}}/uploads/2017/03/luigi.png[Luigi - the Python data library for building data science pipelines,322] I'm building a little data pipeline to get data from the https://www.meetup.com/meetup_api/[meetup.com API] and put it into CSV files that can be loaded into https://neo4j.com/developer/[Neo4j] using the https://neo4j.com/developer/guide-import-csv/[LOAD CSV] command. The first task I created calls the +++<cite>+++/groups+++</cite>+++ endpoint and saves the result into a JSON file: [source,python] ---- import luigi import requests import json from collections import Counter class GroupsToJSON(luigi.Task): key = luigi.Parameter() lat = luigi.Parameter() lon = luigi.Parameter() def run(self): seed_topic = "nosql" uri = "https://api.meetup.com/2/groups?&topic={0}&lat={1}&lon={2}&key={3}".format(seed_topic, self.lat, self.lon, self.key) r = requests.get(uri) all_topics = [topic["urlkey"] for result in r.json()["results"] for topic in result["topics"]] c = Counter(all_topics) topics = [entry[0] for entry in c.most_common(10)] groups = {} for topic in topics: uri = "https://api.meetup.com/2/groups?&topic={0}&lat={1}&lon={2}&key={3}".format(topic, self.lat, self.lon, self.key) r = requests.get(uri) for group in r.json()["results"]: groups[group["id"]] = group with self.output().open('w') as groups_file: json.dump(list(groups.values()), groups_file, indent=4, sort_keys=True) def output(self): return luigi.LocalTarget("/tmp/groups.json") ---- We define a few parameters at the top of the class which will be passed in when this task is executed. The most interesting lines of the +++<cite>+++run+++</cite>+++ function are the last couple where we write the JSON to a file. +++<cite>+++self.output()+++</cite>+++ refers to the target defined in the +++<cite>+++output+++</cite>+++ function which in this case is +++<cite>+++/tmp/groups.json+++</cite>+++. Now we need to create a task to convert that JSON file into CSV format. The https://stedolan.github.io/jq/[jq] command line tool does this job well so we'll use that. The following task does the job: [source,python] ---- from luigi.contrib.external_program import ExternalProgramTask class GroupsToCSV(luigi.contrib.external_program.ExternalProgramTask): file_path = "/tmp/groups.csv" key = luigi.Parameter() lat = luigi.Parameter() lon = luigi.Parameter() def program_args(self): return ["./groups.sh", self.input()[0].path, self.output().path] def output(self): return luigi.LocalTarget(self.file_path) def requires(self): yield GroupsToJSON(self.key, self.lat, self.lon) ---- +++<cite>+++groups.sh+++</cite>+++ [source,bash] ---- #!/bin/bash in=${1} out=${2} echo "id,name,urlname,link,rating,created,description,organiserName,organiserMemberId" > ${out} jq -r '.[] | [.id, .name, .urlname, .link, .rating, .created, .description, .organizer.name, .organizer.member_id] | @csv' ${in} >> ${out} ---- I wanted to call +++<cite>+++jq+++</cite>+++ directly from the Python code but I couldn't figure out how to do it so putting that code in a shell script is my workaround. The last piece of the puzzle is a wrapper task that launches the others: [source,python] ---- import os class Meetup(luigi.WrapperTask): def run(self): print("Running Meetup") def requires(self): key = os.environ['MEETUP_API_KEY'] lat = os.getenv('LAT', "51.5072") lon = os.getenv('LON', "0.1275") yield GroupsToCSV(key, lat, lon) ---- Now we're ready to run the tasks: [source,bash] ---- $ PYTHONPATH="." luigi --module blog --local-scheduler Meetup DEBUG: Checking if Meetup() is complete DEBUG: Checking if GroupsToCSV(key=xxx, lat=51.5072, lon=0.1275) is complete INFO: Informed scheduler that task Meetup__99914b932b has status PENDING DEBUG: Checking if GroupsToJSON(key=xxx, lat=51.5072, lon=0.1275) is complete INFO: Informed scheduler that task GroupsToCSV_xxx_51_5072_0_1275_e07372cebf has status PENDING INFO: Informed scheduler that task GroupsToJSON_xxx_51_5072_0_1275_e07372cebf has status PENDING INFO: Done scheduling tasks INFO: Running Worker with 1 processes DEBUG: Asking scheduler for work... DEBUG: Pending tasks: 3 INFO: [pid 4452] Worker Worker(salt=970508581, workers=1, host=Marks-MBP-4, username=markneedham, pid=4452) running GroupsToJSON(key=xxx, lat=51.5072, lon=0.1275) INFO: [pid 4452] Worker Worker(salt=970508581, workers=1, host=Marks-MBP-4, username=markneedham, pid=4452) done GroupsToJSON(key=xxx, lat=51.5072, lon=0.1275) DEBUG: 1 running tasks, waiting for next task to finish INFO: Informed scheduler that task GroupsToJSON_xxx_51_5072_0_1275_e07372cebf has status DONE DEBUG: Asking scheduler for work... DEBUG: Pending tasks: 2 INFO: [pid 4452] Worker Worker(salt=970508581, workers=1, host=Marks-MBP-4, username=markneedham, pid=4452) running GroupsToCSV(key=xxx, lat=51.5072, lon=0.1275) INFO: Running command: ./groups.sh /tmp/groups.json /tmp/groups.csv INFO: [pid 4452] Worker Worker(salt=970508581, workers=1, host=Marks-MBP-4, username=markneedham, pid=4452) done GroupsToCSV(key=xxx, lat=51.5072, lon=0.1275) DEBUG: 1 running tasks, waiting for next task to finish INFO: Informed scheduler that task GroupsToCSV_xxx_51_5072_0_1275_e07372cebf has status DONE DEBUG: Asking scheduler for work... DEBUG: Pending tasks: 1 INFO: [pid 4452] Worker Worker(salt=970508581, workers=1, host=Marks-MBP-4, username=markneedham, pid=4452) running Meetup() Running Meetup INFO: [pid 4452] Worker Worker(salt=970508581, workers=1, host=Marks-MBP-4, username=markneedham, pid=4452) done Meetup() DEBUG: 1 running tasks, waiting for next task to finish INFO: Informed scheduler that task Meetup__99914b932b has status DONE DEBUG: Asking scheduler for work... DEBUG: Done DEBUG: There are no more tasks to run at this time INFO: Worker Worker(salt=970508581, workers=1, host=Marks-MBP-4, username=markneedham, pid=4452) was stopped. Shutting down Keep-Alive thread INFO: ===== Luigi Execution Summary ===== Scheduled 3 tasks of which: * 3 ran successfully: - 1 GroupsToCSV(key=xxx, lat=51.5072, lon=0.1275) - 1 GroupsToJSON(key=xxx, lat=51.5072, lon=0.1275) - 1 Meetup() This progress looks :) because there were no failed tasks or missing external dependencies ===== Luigi Execution Summary ===== ---- Looks good! Let's quickly look at our CSV file: [source,bash] ---- $ head -n10 /tmp/groups.csv id,name,urlname,link,rating,created,description,organiserName,organiserMemberId 1114381,"London NoSQL, MySQL, Open Source Community","london-nosql-mysql","https://www.meetup.com/london-nosql-mysql/",4.28,1208505614000,"<p>Meet others in London interested in NoSQL, MySQL, and Open Source Databases.</p> ","Sinead Lawless",185675230 1561841,"Enterprise Search London Meetup","es-london","https://www.meetup.com/es-london/",4.66,1259157419000,"<p>Enterprise Search London is a meetup for anyone interested in building search and discovery experiences — from intranet search and site search, to advanced discovery applications and beyond.</p> <p>Disclaimer: This meetup is NOT about SEO or search engine marketing.</p> <p><strong>What people are saying:</strong></p> <ul> <li><span>""Join this meetup if you have a passion for enterprise search and user experience that you would like to share with other able-minded practitioners."" — Vegard Sandvold</span></li> <li><span>""Full marks for vision and execution. Looking forward to the next Meetup."" — Martin White</span></li> <li><span>“Consistently excellent” — Helen Lippell</span></li> </ul> ---- Sweet! And what if we run it again? [source,bash] ---- $ PYTHONPATH="." luigi --module blog --local-scheduler Meetup DEBUG: Checking if Meetup() is complete INFO: Informed scheduler that task Meetup__99914b932b has status DONE INFO: Done scheduling tasks INFO: Running Worker with 1 processes DEBUG: Asking scheduler for work... DEBUG: Done DEBUG: There are no more tasks to run at this time INFO: Worker Worker(salt=172768377, workers=1, host=Marks-MBP-4, username=markneedham, pid=4531) was stopped. Shutting down Keep-Alive thread INFO: ===== Luigi Execution Summary ===== Scheduled 1 tasks of which: * 1 present dependencies were encountered: - 1 Meetup() Did not run any tasks This progress looks :) because there were no failed tasks or missing external dependencies ===== Luigi Execution Summary ===== ---- As expected nothing happens since our dependencies are already satisfied and we have our first Luigi pipeline up and running.
A worked example showing how to call an external program with Luigi - a Python tool for building complex data pipelines.
null
[ -0.0054912203922867775, -0.04461904987692833, -0.026862366124987602, 0.037901800125837326, 0.0756712332367897, 0.021982111036777496, -0.0033947511110454798, 0.05790574476122856, -0.0002165973128285259, -0.03852752968668938, -0.002529325196519494, -0.017477739602327347, -0.09528804570436478, 0.01862211525440216, 0.0012720465892925858, 0.042064715176820755, 0.06874457001686096, -0.01563064567744732, 0.035800155252218246, 0.024309024214744568, 0.02253817953169346, 0.06865902245044708, -0.014377713203430176, 0.0352405346930027, 0.001597634400241077, 0.000652653572615236, 0.013379566371440887, 0.014311467297375202, -0.04392879828810692, -0.00006966408545849845, 0.024285854771733284, 0.00033257255563512444, 0.00015359887038357556, -0.015307735651731491, 0.026076706126332283, -0.017083432525396347, -0.01472854521125555, 0.0067869205959141254, 0.0032171825878322124, 0.006998490076512098, -0.05965597555041313, 0.03305454179644585, -0.03191729635000229, 0.030673054978251457, -0.04712409898638725, 0.03660818561911583, -0.024980036541819572, 0.04354727268218994, 0.0017066402360796928, 0.0001542031386634335, -0.06086590141057968, 0.018347151577472687, -0.030721042305231094, -0.0058347322046756744, -0.009594930335879326, 0.03064614348113537, 0.02518622763454914, -0.06754323095083237, 0.019560866057872772, -0.02859693020582199, 0.0018361128168180585, -0.0062300353311002254, 0.03042657859623432, 0.03132236748933792, 0.013147154822945595, -0.05486758053302765, -0.003153293626382947, 0.055908139795064926, -0.05621003732085228, -0.0010941226501017809, -0.022862030193209648, 0.02334999106824398, -0.036071404814720154, 0.0035475343465805054, 0.016618991270661354, -0.06477317214012146, 0.022509947419166565, 0.06257148087024689, 0.015020782127976418, 0.08162902295589447, -0.008646087720990181, -0.006091204471886158, 0.03887910023331642, 0.023834843188524246, 0.009371485561132431, -0.029620489105582237, -0.05015097185969353, -0.008646562695503235, -0.07785744965076447, 0.01587042212486267, -0.011385626159608364, -0.055128734558820724, 0.008099207654595375, -0.001688585733063519, 0.012007786892354488, 0.045903339982032776, 0.015933727845549583, 0.015496381558477879, 0.014784976840019226, -0.013515891507267952, -0.053717032074928284, 0.012854095548391342, -0.008202269673347473, 0.024777239188551903, -0.0762578472495079, -0.038504455238580704, -0.006245261989533901, -0.019938012585043907, -0.023804092779755592, -0.00036320078652352095, 0.0014225711347535253, -0.03167023882269859, -0.046524133533239365, -0.010056736879050732, -0.07401879131793976, 0.07911961525678635, 0.015710728242993355, -0.02378053404390812, -0.013542906381189823, 0.04621129482984543, 0.04850189387798309, 0.04085306078195572, -0.00015288680151570588, 0.08193167299032211, 0.000741790805477649, 0.04952550306916237, -0.0028353282250463963, 0.03357946500182152, 0.011565115302801132, -0.06941331177949905, 0.006740490905940533, 0.05342639610171318, -0.020954089239239693, -0.014185438863933086, -0.0017486319411545992, -0.027196044102311134, 0.001292552798986435, 0.0237025935202837, 0.06115853786468506, 0.018093189224600792, 0.0034778255503624678, -0.02631305903196335, 0.01868126355111599, -0.015437106601893902, 0.03415634110569954, 0.012922341004014015, 0.0001115410850616172, -0.06187243387103081, -0.023045936599373817, 0.021339070051908493, 0.006129182875156403, 0.0072515010833740234, 0.03192831948399544, -0.03870474174618721, 0.027384357526898384, 0.09338504076004028, 0.019110407680273056, 0.04165369272232056, -0.018013622611761093, -0.006850078236311674, 0.04775093495845795, 0.0273827463388443, -0.005593831185251474, 0.0012826240854337811, 0.0009778669336810708, -0.03440199792385101, -0.008849351666867733, 0.032349735498428345, -0.02092622220516205, 0.0037847578059881926, -0.0407206229865551, -0.056742336601018906, 0.05122988298535347, -0.0359000638127327, -0.00043143294169567525, 0.012864027172327042, 0.07757831364870071, 0.015625540167093277, 0.04380838945508003, -0.024131376296281815, -0.07275844365358353, 0.019245311617851257, 0.0038713279645889997, 0.02800239995121956, -0.009171544574201107, 0.0022544199600815773, 0.09610370546579361, 0.008735653944313526, -0.00741330161690712, 0.03396327793598175, -0.07206514477729797, -0.06598903983831406, -0.04938038811087608, -0.010703008621931076, 0.05544169992208481, -0.034269094467163086, -0.02542165480554104, 0.05759681761264801, 0.013480888679623604, 0.031237876042723656, -0.006295428611338139, -0.017217017710208893, 0.014379746280610561, -0.055474653840065, -0.05872666835784912, 0.02179378643631935, 0.018941204994916916, -0.0415472537279129, -0.0295723769813776, 0.02191068045794964, -0.0159040167927742, -0.011097710579633713, 0.04846460744738579, -0.04627402871847153, 0.05437832698225975, 0.04120925813913345, 0.0010089598363265395, -0.00459227804094553, 0.03293292224407196, -0.028125345706939697, 0.0493512898683548, 0.006639973726123571, -0.02365371398627758, -0.009986420162022114, -0.01863039657473564, 0.12038572132587433, 0.06832638382911682, -0.023408234119415283, -0.041648104786872864, 0.02431357279419899, 0.00565336225554347, -0.024982865899801254, 0.002764975419268012, -0.002647586166858673, -0.025849347934126854, 0.007940358482301235, -0.0053017958998680115, -0.026573365554213524, 0.0056821005418896675, -0.02473331056535244, -0.03136071935296059, 0.07971438765525818, -0.0446452870965004, 0.04343527555465698, 0.030664650723338127, -0.04025557264685631, 0.003360230475664139, -0.03566401079297066, -0.044031236320734024, -0.007124265655875206, 0.013681292533874512, 0.005306830629706383, 0.04368066042661667, -0.021583998575806618, -0.024612722918391228, -0.04222222417593002, -0.04670611023902893, 0.03370579332113266, 0.05245881900191307, 0.04804886132478714, -0.014450393617153168, 0.027201570570468903, -0.012971173040568829, 0.018056927248835564, 0.0050613791681826115, -0.03939453884959221, -0.051595430821180344, -0.03510916605591774, 0.030426131561398506, 0.02347276359796524, 0.04789695888757706, 0.0002534186060074717, 0.010155932977795601, -0.0029804373625665903, -0.009703332558274269, -0.016639765352010727, -0.009726056829094887, -0.012560543604195118, -0.004009121097624302, -0.06585168093442917, -0.016253897920250893, 0.04389430955052376, -0.06209820881485939, -0.0019708676263689995, -0.011241558007895947, -0.04361945390701294, 0.04066524654626846, -0.05365589261054993, -0.029041806235909462, -0.024490103125572205, 0.0160282664000988, 0.032287728041410446, -0.021128185093402863, 0.008537201210856438, 0.05939500778913498, 0.023095522075891495, -0.0021660467609763145, 0.02482145093381405, 0.002029611263424158, 0.028187839314341545, 0.009694713167846203, 0.038554273545742035, 0.03902503103017807, -0.004761102609336376, -0.03980642557144165, -0.021675536409020424, 0.01713911071419716, -0.031888704746961594, -0.2851354479789734, 0.02997959405183792, -0.012927335686981678, -0.017547495663166046, 0.03186296299099922, -0.016259407624602318, -0.008126751519739628, -0.0285083819180727, -0.01136683113873005, -0.0010655710939317942, -0.024538084864616394, -0.03695586696267128, -0.03375636041164398, 0.06372328102588654, -0.005646832287311554, 0.03798447176814079, 0.010291431099176407, -0.03585534170269966, 0.0036083536688238382, 0.027527552098035812, -0.01155201718211174, -0.030856844037771225, -0.001958707347512245, 0.03540630266070366, 0.0035242631565779448, 0.035613030195236206, -0.08156882971525192, 0.04901101812720299, -0.05956192687153816, -0.034685682505369186, 0.00856118742376566, -0.03454291820526123, -0.017307113856077194, -0.007151291240006685, -0.00530649721622467, -0.031602922827005386, 0.05390375480055809, 0.010454733856022358, 0.025011083111166954, 0.015128028579056263, -0.03654888644814491, -0.043376367539167404, -0.016766585409641266, -0.03025723062455654, 0.0778588056564331, -0.006753220688551664, -0.08566375076770782, -0.029721921309828758, -0.04007254168391228, 0.073404960334301, -0.024678591638803482, -0.044957663863897324, -0.0419611781835556, 0.04371672123670578, -0.005552423652261496, -0.0050993748009204865, 0.0051550231873989105, 0.0078315120190382, -0.04043592885136604, -0.018439987674355507, -0.012874082662165165, -0.01027640514075756, -0.022805266082286835, -0.06901134550571442, -0.02252030000090599, -0.02594170719385147, -0.050073157995939255, -0.017071077600121498, 0.03413272649049759, 0.05325692892074585, -0.026175903156399727, 0.008815904147922993, -0.01176089234650135, -0.1191505715250969, -0.003397624008357525, -0.034576114267110825, -0.022424938157200813, 0.018024131655693054, 0.031085463240742683, 0.024511147290468216, -0.06637170165777206, -0.07042498141527176, 0.029439497739076614, -0.02078852988779545, 0.014842592179775238, -0.005435649771243334, 0.03842909261584282, -0.032365720719099045, -0.034980300813913345, 0.0029891028534621, 0.0636381059885025, -0.017576616257429123, 0.0062882802449166775, 0.0008985228487290442, -0.019180146977305412, 0.03516761213541031, 0.017557689920067787, 0.03139990568161011, -0.006393064744770527, 0.0681481659412384, 0.042437899857759476, -0.05746278539299965, -0.04131937399506569, -0.010298683308064938, -0.0014525825390592217, -0.03213915601372719, -0.06586473435163498, 0.017533620819449425, 0.02733474224805832, 0.019902428612113, -0.017803030088543892, -0.01926315762102604, 0.021823352202773094, -0.05575452744960785, 0.004777871537953615, 0.008448696695268154, 0.016882076859474182, 0.006499500945210457, 0.022801902145147324, -0.015871332958340645, -0.06380345672369003, 0.013771485537290573, 0.032112278044223785, -0.021286651492118835, -0.03756968304514885, -0.025836853310465813, -0.011615285649895668, -0.02828971855342388, 0.020283808931708336, -0.004541024100035429, -0.03212464973330498, 0.019015857949852943, 0.014281276613473892, -0.033686622977256775, 0.0050767106004059315, -0.037215862423181534, -0.041601479053497314, -0.03419532626867294, 0.019925575703382492, 0.02411760203540325, -0.025814436376094818, 0.008824478834867477, -0.003921642433851957, 0.02157922275364399, 0.0683751255273819, 0.038228411227464676, 0.0036392644979059696, 0.029314668849110603, 0.007721973117440939, 0.018087558448314667, -0.0017312041018158197, -0.046442799270153046, 0.016200531274080276, -0.032486338168382645, -0.013723115436732769, -0.04031608998775482, 0.042194515466690063, -0.011692802421748638, -0.019460471346974373, -0.04252420365810394, 0.03358369320631027, -0.07624614983797073, 0.015520116314291954, 0.0011078070383518934, -0.03165745362639427, 0.057178251445293427, 0.018168389797210693, 0.007042106706649065, 0.005685513839125633, 0.0030045248568058014, 0.005294637754559517, 0.02971254102885723, -0.0011164057068526745, 0.007643643766641617, -0.020900893956422806, 0.012633398175239563, 0.023025991395115852, 0.029079526662826538, 0.01811058260500431, 0.019520442932844162, -0.0038940883241593838, -0.03450579568743706, -0.007678324822336435, -0.002840418601408601, 0.04228146746754646, 0.031078895553946495, 0.00029935501515865326, 0.017060911282896996, -0.002278268337249756, -0.008569562807679176, -0.023028260096907616, 0.01180617418140173, -0.02145436778664589, -0.01098959892988205, -0.018341979011893272, -0.08627992868423462, 0.04543345049023628, 0.0326860211789608, -0.0017001505475491285, -0.024471629410982132, -0.011321408674120903, -0.006925769150257111, -0.031926099210977554, 0.049087997525930405, 0.07191486656665802, -0.08118540793657303, -0.01708882860839367, -0.005718473810702562, 0.013249997980892658, -0.007126630749553442, 0.007906570099294186, -0.059718742966651917, -0.028376469388604164, -0.029276486486196518, 0.011365148238837719, -0.022571872919797897, -0.05216393247246742, -0.03244942054152489, 0.025024253875017166, -0.004220585338771343, -0.026994528248906136, 0.016209779307246208, 0.013875105418264866, -0.024968529120087624, -0.0016196661163121462, 0.015631413087248802, -0.022875560447573662, -0.0074599930085241795, 0.026226555928587914, -0.0043316856026649475, 0.03883165493607521, -0.03972295671701431, 0.0358167365193367, 0.005366763565689325, -0.002274483907967806, 0.012224250473082066, -0.055699143558740616, 0.013080254197120667, -0.0026268106885254383, 0.043695393949747086, -0.0022450967226177454, 0.004208539612591267, -0.03485574945807457, -0.008936175145208836, 0.00037358913687057793, -0.0036276134196668863, -0.008112582378089428, -0.0033039883710443974, 0.003883627476170659, 0.042313165962696075, 0.0195765420794487, 0.03214779496192932, 0.029571399092674255, -0.038377802819013596, 0.05459092557430267, -0.05858924984931946, -0.034757744520902634, -0.010019823908805847, -0.033832140266895294, 0.005260426551103592, 0.030813124030828476, 0.05097286403179169, -0.060704708099365234, 0.0848313495516777, 0.04433627426624298, 0.040144771337509155, 0.06454599648714066, 0.0012293180916458368, 0.0390460342168808, -0.022772865369915962, -0.010569708421826363, -0.09865625202655792, -0.011838212609291077, 0.030237717553973198, -0.00910130888223648, -0.02944609709084034, -0.0015406064921990037, -0.024207457900047302, 0.049182549118995667, -0.05978596955537796, -0.03814568743109703, 0.04647735506296158, -0.013164288364350796, -0.0027229220140725374, 0.009932608343660831, -0.0345601849257946, 0.02257741056382656, 0.07121013849973679, -0.02620093710720539, -0.0068186381831765175, -0.043857645243406296, 0.07993240654468536, 0.004245897755026817, 0.043049704283475876, -0.027246054261922836, -0.01969251222908497, 0.07393229007720947, 0.022896658629179, -0.005809184163808823, 0.07045484334230423, -0.010442259721457958, 0.04244169220328331, 0.03135198727250099, -0.019464630633592606, -0.003166917711496353, 0.04696348309516907, 0.008167541585862637, -0.04596840217709541, 0.035259909927845, 0.014268961735069752, 0.001909059938043356, -0.05171569809317589, 0.07081124186515808, -0.005221494007855654, -0.0684702917933464, -0.040128808468580246, 0.0256571713835001, -0.04095242917537689, 0.00761830061674118, -0.03435201197862625, -0.0007861537160351872, -0.049618784338235855, 0.05197423696517944, -0.0035576443187892437, 0.017279472202062607, 0.053341545164585114, 0.00200968561694026, -0.021912535652518272, 0.00355834374204278, 0.07051548361778259, 0.07474680244922638, 0.031131861731410027, 0.01965763233602047, 0.05021212249994278, 0.0011557159014046192, -0.048099201172590256, 0.00841414276510477, -0.03380042314529419, -0.007501126732677221, -0.010483711957931519, 0.005948952399194241, 0.08018521219491959, -0.019353900104761124, 0.06939862668514252, -0.022515051066875458, 0.00034528254764154553, -0.006565622054040432, -0.0018800521502271295, 0.024398958310484886, 0.05513780191540718, 0.008945377543568611, 0.07748579978942871, -0.02465216815471649, -0.017909547314047813, 0.021041685715317726, -0.005928548518568277, -0.017632370814681053, 0.00434189522638917, -0.005608078557997942, 0.009944056160748005, 0.03478095307946205, 0.06549034267663956, 0.0945686474442482, -0.018017452210187912, -0.012134912423789501, -0.003728017210960388, 0.002702784026041627, -0.015597809106111526, 0.016458051279187202, -0.019659126177430153, -0.019252251833677292, -0.0029784096404910088, -0.05460834503173828, -0.012281607836484909, -0.007533027790486813, -0.045543115586042404, 0.022098328918218613, -0.008000385947525501, 0.01486568059772253, -0.007572959177196026, 0.007399070542305708, -0.001598579459823668, -0.05111208185553551, -0.030899653211236, -0.03078453801572323, -0.06483422964811325, -0.01269815769046545, 0.026605574414134026, -0.011531501077115536, -0.014094328507781029, -0.03580719977617264, 0.00006114099232945591, -0.02118321694433689, 0.0382043682038784, -0.053855735808610916, -0.025934359058737755, 0.017309583723545074, 0.012301416136324406, -0.015339711681008339, 0.01611163467168808, 0.06907868385314941, 0.0017645939951762557, 0.0025190417654812336, -0.020677663385868073, 0.020822854712605476, 0.039144836366176605, 0.025332042947411537, 0.020785294473171234, -0.07882794737815857, 0.02142871730029583, -0.008219987154006958, 0.012325266376137733, -0.08789961785078049, 0.0028810035437345505, 0.051273249089717865, -0.0023567304015159607, 0.043865866959095, 0.0021708854474127293, -0.011034750379621983, -0.026763781905174255, -0.0017722033662721515, -0.008048167452216148, 0.024380814284086227, 0.037758488208055496, -0.03577335178852081, 0.0761236920952797, 0.05054638907313347, -0.019774513319134712, -0.010721797123551369, -0.015728309750556946, 0.0015744633274152875, 0.017507409676909447, -0.04482286050915718, -0.027554951608181, -0.044639427214860916, -0.06266472488641739, -0.024702873080968857, 0.015356234274804592, -0.018905872479081154, -0.017841003835201263, 0.01082556787878275, 0.027893245220184326, -0.03194160386919975, 0.023672331124544144, -0.05034400522708893, 0.006309344433248043, -0.004411042667925358, -0.02656443603336811, 0.0037076424341648817, 0.04278937727212906, -0.007574260700494051, 0.017531534656882286, 0.004403473809361458, -0.03664960339665413, -0.01952274888753891, -0.011544995941221714, 0.03706254065036774, 0.03688495233654976, -0.022350400686264038, 0.04107123240828514 ]
[ -0.10297653079032898, -0.01636335626244545, -0.03946366161108017, -0.021955886855721474, 0.041995324194431305, -0.05440884456038475, -0.018214771524071693, -0.0014846287667751312, 0.0031401324085891247, 0.002597358077764511, -0.004391258582472801, -0.04973052442073822, 0.01171153038740158, -0.0015694227768108249, 0.07516637444496155, -0.0050257607363164425, -0.015278731472790241, -0.042595747858285904, -0.039970919489860535, 0.026395075023174286, -0.013732378371059895, -0.029079245403409004, -0.059119515120983124, -0.041163645684719086, -0.01370987854897976, 0.04092682525515556, 0.05454162880778313, -0.01539484690874815, 0.01014617271721363, -0.20682325959205627, -0.01590622030198574, -0.008533455431461334, 0.044316235929727554, -0.006894525606185198, 0.032759252935647964, 0.04928840696811676, 0.03525841608643532, 0.003329584840685129, -0.00828916672617197, 0.04554113373160362, 0.02660461887717247, 0.03322930261492729, -0.06347083300352097, 0.0035122220870107412, 0.051156990230083466, -0.02165607362985611, -0.0538627989590168, -0.0044122361578047276, -0.028031988069415092, -0.014268983155488968, -0.05292745307087898, 0.019310977309942245, -0.010252658277750015, -0.013622458092868328, 0.00570047227665782, 0.048274602741003036, 0.055671390146017075, 0.038119614124298096, 0.011783627793192863, 0.04293406382203102, -0.010154255665838718, -0.017422480508685112, -0.1224009096622467, 0.08334445208311081, 0.03223216533660889, 0.050605516880750656, -0.07294046878814697, -0.005987197160720825, -0.0055713290348649025, 0.07376448065042496, -0.03201920539140701, -0.040320731699466705, -0.01727472059428692, 0.06438253074884415, 0.024962034076452255, -0.01229629386216402, -0.011758162640035152, 0.018608765676617622, 0.02154190093278885, -0.03864092752337456, -0.04429737105965614, -0.025239132344722748, -0.04556570202112198, -0.004702193662524223, -0.016282537952065468, 0.014822605066001415, -0.02328505925834179, 0.07806481420993805, 0.0006760021788068116, 0.04163121059536934, 0.010334390215575695, -0.003944442141801119, 0.029681218788027763, 0.027071291580796242, -0.08030934631824493, -0.02021881379187107, 0.019637126475572586, 0.018653614446520805, -0.03881740942597389, 0.41391390562057495, -0.02083982527256012, -0.03558507561683655, 0.07581380009651184, 0.06416118890047073, 0.009013696573674679, -0.00341732706874609, -0.011066250503063202, -0.0424874871969223, 0.034864965826272964, -0.02531498856842518, 0.008838255889713764, -0.031470634043216705, 0.06477833539247513, -0.08028984814882278, 0.04544655606150627, -0.00012927735224366188, -0.005310202017426491, 0.01775241084396839, -0.02188248001039028, 0.013873767107725143, 0.017714275047183037, 0.023599104955792427, 0.024012716487050056, 0.017883701249957085, 0.01665606163442135, 0.0151666309684515, 0.017693670466542244, 0.03473825007677078, 0.02346222661435604, 0.015724707394838333, 0.0688401311635971, 0.006378241814672947, -0.08050849288702011, 0.02943648397922516, -0.0020707978401333094, 0.02834410034120083, 0.039686188101768494, -0.020519232377409935, -0.012179813347756863, 0.02489631436765194, -0.0010101788211613894, -0.036661915481090546, 0.04615454748272896, -0.0343618206679821, -0.014717686921358109, 0.11490094661712646, -0.00418087188154459, -0.03414803370833397, -0.028440501540899277, -0.039604634046554565, -0.0011395595502108335, 0.04520056024193764, 0.007138979155570269, -0.03029770776629448, 0.01771393045783043, 0.020248977467417717, 0.07140344381332397, -0.01664949767291546, -0.038256000727415085, 0.018396340310573578, -0.07087207585573196, -0.061313796788454056, -0.00591655820608139, 0.06132051721215248, 0.06296143680810928, -0.11732793599367142, -0.04094794765114784, 0.011077404953539371, -0.021612901240587234, -0.08042756468057632, 0.010134226642549038, 0.007825862616300583, -0.04434969648718834, 0.019480951130390167, 0.021069593727588654, -0.05917711928486824, -0.023504139855504036, 0.016511904075741768, 0.07784749567508698, 0.006715414114296436, -0.020542021840810776, 0.009780426509678364, -0.03407343477010727, -0.011392462998628616, -0.07202812284231186, -0.05339967459440231, -0.07265698909759521, -0.009966101497411728, -0.022143976762890816, 0.0024056676775217056, -0.02983102574944496, -0.0007142378017306328, -0.06264812499284744, 0.07047794759273529, -0.018698209896683693, -0.007130314130336046, 0.0003626323596108705, 0.003943564370274544, -0.02200339362025261, -0.022263966500759125, 0.007886162027716637, 0.020661549642682076, 0.006602808833122253, 0.019466670230031013, -0.06873471289873123, 0.028683718293905258, 0.058201391249895096, -0.035269614309072495, 0.06621461361646652, 0.014882978983223438, -0.021041296422481537, -0.008478282950818539, 0.012578503228724003, 0.022176207974553108, -0.017632093280553818, -0.02449825033545494, -0.008360371924936771, -0.008313787169754505, 0.012026987038552761, 0.04043589532375336, -0.04815606400370598, -0.02256893739104271, -0.05016009882092476, -0.3483246862888336, -0.017372136935591698, -0.00044744290062226355, 0.001581656513735652, 0.014206563122570515, -0.0605979785323143, 0.01606912352144718, -0.008058205246925354, -0.01485632173717022, 0.06163104251027107, 0.10673894733190536, -0.012546421959996223, 0.038573168218135834, -0.0562165267765522, -0.026719091460108757, 0.022196341305971146, -0.005582076497375965, -0.035240087658166885, -0.030921338126063347, 0.008095553144812584, -0.009585727006196976, -0.035698242485523224, -0.05206539109349251, -0.038777947425842285, -0.02427450381219387, -0.05679577216506004, 0.11480068415403366, 0.05109851434826851, 0.0505857840180397, -0.02707391232252121, 0.045507997274398804, 0.004784173332154751, -0.008415084332227707, -0.09744761139154434, -0.04383278265595436, -0.029919859021902084, 0.042146358639001846, 0.023743625730276108, 0.0196383036673069, -0.0017033705953508615, -0.053249817341566086, 0.01416116114705801, -0.03137535601854324, -0.06052876263856888, -0.01959654502570629, 0.034356698393821716, -0.004946078639477491, -0.0011087610619142652, -0.01589028537273407, 0.055778443813323975, 0.025315910577774048, 0.0028326124884188175, 0.027236340567469597, 0.03222386911511421, 0.0010285250609740615, -0.031728532165288925, -0.07059065252542496, -0.014940811321139336, 0.017152031883597374, -0.029832320287823677, 0.025680992752313614, 0.03810606524348259, 0.053448501974344254, -0.03714335709810257, -0.009090284816920757, 0.005970965139567852, 0.01179168839007616, -0.014549660496413708, 0.04949492588639259, -0.005357574671506882, 0.004819146823137999, 0.09719212353229523, 0.006620869040489197, 0.015748385339975357, 0.03377937525510788, 0.011890296824276447, 0.023874256759881973, -0.013453188352286816, 0.06286462396383286, 0.0010380017338320613, 0.04046737775206566, 0.02073485590517521, 0.0068282475695014, -0.019477184861898422, 0.024453796446323395, 0.02838730998337269, 0.0007855341536924243, -0.022042639553546906, 0.047452881932258606, 0.015535341575741768, -0.01064180489629507, 0.009092685766518116, -0.028768233954906464, -0.027198104187846184, 0.0405905656516552, -0.0035286108031868935, -0.2807251513004303, 0.036664463579654694, 0.041133180260658264, 0.03918824344873428, -0.022811509668827057, -0.007420180831104517, 0.011210409924387932, -0.05422130972146988, 0.0034142814110964537, 0.045437052845954895, 0.01611386612057686, 0.010955971665680408, 0.02697684057056904, 0.005610756576061249, 0.01186921913176775, 0.006548823323100805, 0.05524681136012077, 0.013703392818570137, -0.018922366201877594, 0.03306514769792557, 0.01227120403200388, -0.016010534018278122, 0.193425253033638, 0.0045816246420145035, 0.020776458084583282, 0.019699813798069954, -0.05317815765738487, 0.004862033762037754, 0.056659452617168427, 0.01996828429400921, -0.02970808558166027, -0.004497764632105827, 0.019728733226656914, -0.009205838665366173, 0.03358527645468712, -0.057729508727788925, -0.030521543696522713, 0.06092275306582451, 0.01655491441488266, -0.009079257026314735, -0.059475574642419815, 0.018185384571552277, -0.06761560589075089, 0.018275443464517593, 0.03652443736791611, 0.01276712492108345, -0.01490957010537386, -0.04010707885026932, -0.037661220878362656, 0.021288573741912842, -0.03516129404306412, -0.04146455228328705, -0.023326905444264412, -0.004682264756411314, -0.00739625608548522, 0.09396734833717346, 0.02961043268442154, -0.003414615523070097, 0.04140498861670494, 0.04821000620722771, 0.0045220209285616875, -0.02913026139140129, 0.11735861748456955, 0.020241020247340202, -0.006510881241410971 ]
[ -0.035600464791059494, 0.04258032888174057, -0.035292960703372955, 0.036042094230651855, 0.004379596561193466, -0.009465615265071392, -0.011170088313519955, 0.05374750867486, -0.030610566958785057, -0.07475434243679047, -0.06072870269417763, 0.015312946401536465, 0.03299494460225105, -0.011153017170727253, 0.028096068650484085, -0.04042084142565727, -0.013156966306269169, 0.003637754824012518, 0.02999715320765972, -0.03976468741893768, -0.02855667844414711, 0.03360358998179436, 0.010060388594865799, -0.013874820433557034, -0.03426181524991989, 0.015364449471235275, -0.016661174595355988, 0.005232212133705616, 0.013054615817964077, -0.11549244821071625, -0.018954718485474586, -0.027259062975645065, 0.016318723559379578, -0.010765530169010162, 0.03062606230378151, 0.0395323783159256, -0.014291967265307903, -0.039756640791893005, 0.002199246548116207, 0.019744152203202248, 0.011153330095112324, -0.0002892996708396822, -0.01375742070376873, -0.026594728231430054, -0.007879991084337234, -0.00019239712855778635, -0.03535519167780876, -0.027765871956944466, -0.02495558187365532, -0.011029333807528019, -0.06834796816110611, -0.015035431832075119, 0.010976419784128666, 0.033042389899492264, 0.016982650384306908, 0.021908719092607498, 0.0019996564369648695, -0.020225925371050835, -0.0005042704869993031, -0.014454399235546589, -0.01769489049911499, -0.01806812174618244, -0.024049054831266403, -0.012608922086656094, -0.0023434737231582403, -0.010945693589746952, -0.0323166698217392, 0.010097088292241096, 0.012545456178486347, 0.008706525899469852, -0.013748195953667164, 0.03683572635054588, -0.04806072637438774, -0.053798504173755646, -0.025908732786774635, -0.0029107125010341406, 0.003596703987568617, -0.03862806037068367, -0.025780588388442993, -0.0031067770905792713, -0.03378305956721306, -0.05479062721133232, -0.03410421684384346, 0.019188711419701576, 0.003246487583965063, 0.004597622435539961, 0.0238852147012949, 0.019109949469566345, -0.004185245372354984, 0.011286314576864243, -0.026572633534669876, 0.02099042385816574, -0.012707785703241825, 0.0275237075984478, -0.06834973394870758, 0.012765801511704922, -0.000508344906847924, 0.004177693277597427, -0.02458295226097107, 0.8338871002197266, 0.001625862903892994, 0.01574033871293068, 0.05865734443068504, 0.010730454698204994, 0.017507297918200493, 0.009836128912866116, -0.004282759036868811, -0.00451638363301754, 0.0035544075071811676, -0.025827724486589432, 0.003844029735773802, -0.033104635775089264, 0.02110135369002819, 0.01068637054413557, 0.014849222265183926, 0.024912726134061813, 0.009228241629898548, 0.040913306176662445, -0.024330664426088333, 0.025216951966285706, 0.05605705827474594, 0.002298352075740695, -0.019491182640194893, -0.008726191706955433, 0.00958916824311018, -0.16844691336154938, 0.0009731513564474881, -6.755513136929899e-33, 0.07134676724672318, -0.010078126564621925, 0.02363382838666439, -0.016743361949920654, 0.03753184899687767, 0.019727934151887894, -0.0025250206235796213, 0.0062720333226025105, -0.020438408479094505, -0.01902369223535061, -0.0063551729544997215, -0.007777088787406683, -0.01808742806315422, 0.011568314395844936, -0.004169521387666464, -0.028765808790922165, -0.011612464673817158, 0.05013706907629967, -0.005952320992946625, 0.04153488576412201, 0.05895606055855751, 0.01226599607616663, -0.025319403037428856, 0.03582417219877243, -0.006202936638146639, 0.031621191650629044, -0.010888813994824886, 0.013604098930954933, -0.014243578538298607, -0.04395078867673874, -0.027750492095947266, 0.035940706729888916, -0.005885971710085869, -0.012006217613816261, 0.04788623005151749, -0.04279043525457382, -0.01056025642901659, -0.006817216519266367, -0.03872920200228691, -0.028536932542920113, -0.027059169486165047, 0.0018545143539085984, -0.016054991632699966, 0.000456512498203665, -0.034731753170490265, -0.03689111769199371, 0.022445905953645706, 0.017704840749502182, 0.016707196831703186, 0.04096020385622978, 0.025251934304833412, -0.013834439218044281, 0.016372231766581535, 0.0023066422436386347, -0.012569150887429714, -0.017002109438180923, -0.01693221926689148, 0.010345612652599812, 0.027925238013267517, -0.003464866429567337, 0.029591314494609833, 0.009085712023079395, 0.02260402962565422, 0.0445212684571743, 0.008417842909693718, 0.009353270754218102, 0.05912671238183975, 0.059370286762714386, 0.024840019643306732, 0.030650779604911804, -0.045982737094163895, 0.05338098481297493, -0.006121939513832331, -0.021982813253998756, 0.026928314939141273, -0.04389739781618118, -0.004560441710054874, 0.004981794860213995, 0.01415649987757206, 0.03757458180189133, 0.023307228460907936, -0.03613738343119621, 0.006689861416816711, -0.019867176190018654, -0.018983392044901848, 0.0198178980499506, 0.0305930245667696, 0.034812457859516144, -0.012349837459623814, 0.011975099332630634, 0.014337585307657719, 0.03930775448679924, 0.018026528880000114, -0.004848811309784651, -0.02963056042790413, 7.068899196175152e-33, 0.0077615468762815, -0.017157752066850662, 0.004141536075621843, 0.029203956946730614, 0.016650699079036713, -0.008111860603094101, 0.05335477367043495, -0.013796371407806873, -0.017413513734936714, 0.0480547733604908, -0.046481236815452576, 0.001663029775954783, 0.0013071860885247588, -0.03931849077343941, 0.04000776261091232, -0.006054266821593046, -0.006885269191116095, 0.00917314738035202, 0.0048826709389686584, -0.024550465866923332, -0.011863894760608673, -0.01476056594401598, -0.0051087988540530205, 0.012986763380467892, 0.04090547189116478, 0.04620465636253357, -0.012645740993320942, -0.021376052871346474, -0.02216169610619545, 0.014500411227345467, -0.0033253382425755262, -0.01802125759422779, -0.012630395591259003, -0.027512332424521446, -0.01049831323325634, 0.02983858808875084, -0.007023452315479517, 0.02069062925875187, 0.05514590069651604, 0.003592940280213952, 0.014121408574283123, -0.003235790180042386, 0.0015238807536661625, 0.04567212983965874, 0.01602957583963871, -0.008627629838883877, -0.003963732626289129, -0.004928168375045061, -0.01835228130221367, 0.018102357164025307, -0.018922872841358185, 0.035923853516578674, -0.028226565569639206, -0.0008438930963166058, 0.012862136587500572, -0.019868243485689163, -0.02114247903227806, 0.023911232128739357, -0.0511297769844532, -0.019154952839016914, -0.007736369036138058, -0.043404433876276016, -0.009992427192628384, 0.03795792534947395, -0.03996351361274719, 0.001955272862687707, -0.013343571685254574, 0.0005349849234335124, 0.01274028792977333, 0.022890063002705574, 0.002378101460635662, 0.0012071036035194993, -0.012606910429894924, 0.0429936982691288, -0.02666257508099079, 0.004580140579491854, -0.03000579960644245, 0.005634579807519913, 0.0023474532645195723, 0.04829910397529602, 0.009007842279970646, 0.012384012341499329, 0.00579799385741353, 0.012894941493868828, 0.008361849933862686, -0.01584494858980179, -0.024860655888915062, 0.014570758678019047, 0.003881951095536351, -0.029879899695515633, -0.010995341464877129, -0.017165470868349075, -0.00010403549822513014, -0.008355064317584038, -0.009591985493898392, -1.2762980894365228e-8, 0.0062912325374782085, -0.002045579720288515, -0.014049651101231575, 0.041069433093070984, 0.04601462557911873, -0.017758548259735107, -0.0221997182816267, -0.002520476235076785, -0.0030899513512849808, 0.017488736659288406, 0.019998149946331978, -0.038490865379571915, -0.00998186506330967, 0.019101763144135475, 0.041379187256097794, -0.029245194047689438, 0.027121281251311302, -0.014304786920547485, 0.017639117315411568, 0.022668609395623207, 0.031552623957395554, 0.021502342075109482, -0.012185092084109783, -0.027913808822631836, -0.014383753761649132, -0.005580907221883535, 0.017439035698771477, -0.047373540699481964, -0.04127372056245804, -0.03564201295375824, 0.036502815783023834, -0.0522628091275692, -0.054836004972457886, -0.0037772192154079676, -0.01044182013720274, -0.017688443884253502, 0.020760953426361084, -0.021811217069625854, 0.0013823469635099173, 0.020101670175790787, -0.027300097048282623, 0.023707443848252296, -0.011107228696346283, -0.033293116837739944, -0.034024812281131744, -0.01902247592806816, -0.049037206918001175, 0.007733592763543129, -0.02474604733288288, 0.014855865389108658, 0.024305446073412895, -0.01992243155837059, 0.027297189459204674, 0.008941523730754852, 0.07802816480398178, 0.03496577963232994, 0.043378524482250214, -0.0439191609621048, -0.03694787994027138, 0.03296266496181488, 0.021438103169202805, 0.004159458447247744, -0.02466072514653206, -0.014124960638582706 ]
luigi-externalprogramtask-example-converting-json-csv
https://markhneedham.com/blog/2017/03/25/luigi-externalprogramtask-example-converting-json-csv
false
2017-04-03 05:49:53
AWS Lambda: Encrypted environment variables
[ "lambda", "aws-lambda" ]
[ "Software Development" ]
Continuing on from my post showing how to create a http://www.markhneedham.com/blog/2017/04/02/aws-lambda-programatically-create-a-python-hello-world-function/['Hello World' AWS lambda function] I wanted to pass encrypted environment variables to my function. The following function takes in both an encrypted and unencrypted variable and prints them out. *Don't print out encrypted variables in a real function, this is just so we can see the example working!* [source,python] ---- import boto3 import os from base64 import b64decode def lambda_handler(event, context): encrypted = os.environ['ENCRYPTED_VALUE'] decrypted = boto3.client('kms').decrypt(CiphertextBlob=b64decode(encrypted))['Plaintext'] # Don't print out your decrypted value in a real function! This is just to show how it works. print("Decrypted value:", decrypted) plain_text = os.environ["PLAIN_TEXT_VALUE"] print("Plain text:", plain_text) ---- Now we'll zip up our function into HelloWorldEncrypted.zip, ready to send to AWS. [source,bash] ---- zip HelloWorldEncrypted.zip HelloWorldEncrypted.py ---- Now it&#8217;s time to upload our function to AWS and create the associated environment variables. If you&#8217;re using a Python editor then you&#8217;ll need to install boto3 locally to keep the editor happy but you don&#8217;t need to include boto3 in the code you send to AWS Lambda - it comes pre-installed. Now we write the following code to automate the creation of our Lambda function: [source,python] ---- import boto3 from base64 import b64encode fn_name = "HelloWorldEncrypted" kms_key = "arn:aws:kms:[aws-zone]:[your-aws-id]:key/[your-kms-key-id]" fn_role = 'arn:aws:iam::[your-aws-id]:role/lambda_basic_execution' lambda_client = boto3.client('lambda') kms_client = boto3.client('kms') encrypt_me = "abcdefg" encrypted = b64encode(kms_client.encrypt(Plaintext=encrypt_me, KeyId=kms_key)["CiphertextBlob"]) plain_text = 'hijklmno' lambda_client.create_function( FunctionName=fn_name, Runtime='python2.7', Role=fn_role, Handler="{0}.lambda_handler".format(fn_name), Code={ 'ZipFile': open("{0}.zip".format(fn_name), 'rb').read(),}, Environment={ 'Variables': { 'ENCRYPTED_VALUE': encrypted, 'PLAIN_TEXT_VALUE': plain_text, } }, KMSKeyArn=kms_key ) ---- The tricky bit for me here was figuring out that I needed to pass the value that I wanted to base 64 encode the output of the value encrypted by the KMS client. The KMS client relies on a KMS key that http://docs.aws.amazon.com/cli/latest/reference/kms/create-key.html[we need to setup]. We can see a list of all our KMS keys by running the following command: [source,bash] ---- $ aws kms list-keys ---- The format of these keys is +++<cite>+++arn:aws:kms:[zone]:[account-id]:key/[key-id]+++</cite>+++. Now let&#8217;s try executing our Lambda function from the AWS console: [source,bash] ---- $ python CreateHelloWorldEncrypted.py ---- Let's check it got created: [source,bash] ---- $ aws lambda list-functions --query "Functions[*].FunctionName" [ "HelloWorldEncrypted", ] ---- And now let's execute the function: [source,bash] ---- $ aws lambda invoke --function-name HelloWorldEncrypted --invocation-type RequestResponse --log-type Tail /tmp/out | jq ".LogResult" "U1RBUlQgUmVxdWVzdElkOiA5YmNlM2E1MC0xODMwLTExZTctYjFlNi1hZjQxZDYzMzYxZDkgVmVyc2lvbjogJExBVEVTVAooJ0RlY3J5cHRlZCB2YWx1ZTonLCAnYWJjZGVmZycpCignUGxhaW4gdGV4dDonLCAnaGlqa2xtbm8nKQpFTkQgUmVxdWVzdElkOiA5YmNlM2E1MC0xODMwLTExZTctYjFlNi1hZjQxZDYzMzYxZDkKUkVQT1JUIFJlcXVlc3RJZDogOWJjZTNhNTAtMTgzMC0xMWU3LWIxZTYtYWY0MWQ2MzM2MWQ5CUR1cmF0aW9uOiAzNjAuMDQgbXMJQmlsbGVkIER1cmF0aW9uOiA0MDAgbXMgCU1lbW9yeSBTaXplOiAxMjggTUIJTWF4IE1lbW9yeSBVc2VkOiAyNCBNQgkK" ---- That's a bit hard to read, some decoding is needed: [source,bash] ---- $ echo "U1RBUlQgUmVxdWVzdElkOiA5YmNlM2E1MC0xODMwLTExZTctYjFlNi1hZjQxZDYzMzYxZDkgVmVyc2lvbjogJExBVEVTVAooJ0RlY3J5cHRlZCB2YWx1ZTonLCAnYWJjZGVmZycpCignUGxhaW4gdGV4dDonLCAnaGlqa2xtbm8nKQpFTkQgUmVxdWVzdElkOiA5YmNlM2E1MC0xODMwLTExZTctYjFlNi1hZjQxZDYzMzYxZDkKUkVQT1JUIFJlcXVlc3RJZDogOWJjZTNhNTAtMTgzMC0xMWU3LWIxZTYtYWY0MWQ2MzM2MWQ5CUR1cmF0aW9uOiAzNjAuMDQgbXMJQmlsbGVkIER1cmF0aW9uOiA0MDAgbXMgCU1lbW9yeSBTaXplOiAxMjggTUIJTWF4IE1lbW9yeSBVc2VkOiAyNCBNQgkK" | base64 --decode START RequestId: 9bce3a50-1830-11e7-b1e6-af41d63361d9 Version: $LATEST ('Decrypted value:', 'abcdefg') ('Plain text:', 'hijklmno') END RequestId: 9bce3a50-1830-11e7-b1e6-af41d63361d9 REPORT RequestId: 9bce3a50-1830-11e7-b1e6-af41d63361d9 Duration: 360.04 ms Billed Duration: 400 ms Memory Size: 128 MB Max Memory Used: 24 MB ---- And it worked, hoorah!
In this post we look at how to pass encrypted environment variables to an AWS lambda function and then decrypt them inside the function.
null
[ 0.020894350484013557, -0.0019748685881495476, -0.006317787803709507, 0.03204137459397316, 0.09420350939035416, 0.05184796825051308, 0.007642828393727541, 0.011061431840062141, -0.009931862354278564, 0.012527674436569214, -0.023872196674346924, 0.00814678892493248, -0.0718444287776947, 0.023117294535040855, -0.027268225327134132, 0.0498996339738369, 0.09145085513591766, -0.0025394547265022993, 0.023170873522758484, 0.011309263296425343, 0.021627262234687805, 0.0486602820456028, 0.002407229272648692, 0.018194925040006638, -0.0051487404853105545, 0.02298475243151188, -0.015529164113104343, 0.01341569609940052, -0.055307537317276, -0.022316310554742813, 0.053630150854587555, 0.004946152679622173, 0.0049499026499688625, -0.022177547216415405, 0.012295597232878208, 0.011410881765186787, -0.04105578362941742, 0.004542132373899221, 0.00042294617742300034, 0.05190989747643471, -0.060359660536050797, 0.027884915471076965, -0.030392277985811234, 0.011821644380688667, -0.04610377177596092, -0.0038607167080044746, -0.04911324381828308, 0.021557290107011795, 0.004452677443623543, -0.003789299400523305, -0.07108508050441742, 0.025972841307520866, -0.03661956265568733, -0.02652178332209587, 0.029810553416609764, 0.060330502688884735, 0.02390841580927372, -0.07183373719453812, 0.025355834513902664, -0.03360602259635925, -0.009768628515303135, 0.009799773804843426, 0.0119768176227808, 0.018289493396878242, 0.02780766785144806, -0.005917300004512072, -0.019698621705174446, 0.04941977560520172, -0.06298976391553879, 0.009864414110779762, -0.0068973456509411335, 0.012841377407312393, -0.04025156795978546, -0.040982477366924286, -0.01963733322918415, -0.045906227082014084, -0.03688867390155792, 0.04907955229282379, 0.019814828410744667, 0.05095000937581062, 0.016542663797736168, -0.014782664366066456, 0.013392721302807331, 0.007717890664935112, 0.017836609855294228, -0.005540956277400255, -0.04867033660411835, -0.005936092231422663, -0.03928106278181076, 0.051245421171188354, 0.01171946618705988, -0.06602529436349869, -0.010639885440468788, -0.008303148671984673, 0.006014945451170206, -0.00491999089717865, -0.016822634264826775, -0.00045193114783614874, 0.0036676847375929356, -0.01750347949564457, -0.04296289011836052, -0.0030274929013103247, -0.0061308532021939754, -0.0255897156894207, -0.06873314082622528, -0.01868158020079136, -0.06036880239844322, -0.023776458576321602, 0.018819283694028854, 0.038998086005449295, 0.004782883450388908, -0.009184586815536022, -0.04507274553179741, -0.012680099345743656, -0.08436410129070282, 0.04275193065404892, 0.0037149859126657248, -0.05723484233021736, -0.00928918831050396, 0.012217478826642036, 0.06365643441677094, 0.028226356953382492, -0.0223627220839262, 0.0871802419424057, 0.024102777242660522, 0.02199876867234707, 0.0031351293437182903, 0.085078164935112, 0.015033217146992683, -0.04172990843653679, -0.027863357216119766, 0.04669945687055588, 0.017916440963745117, -0.0014686794020235538, 0.0070447176694869995, -0.0075490172021090984, -0.030089475214481354, 0.021116899326443672, 0.045075979083776474, 0.04581752046942711, 0.023393254727125168, -0.02840096317231655, 0.009953399188816547, -0.022406242787837982, 0.014570735394954681, 0.031244836747646332, 0.02090759389102459, -0.035503461956977844, -0.04647567495703697, 0.017460547387599945, 0.02724405750632286, -0.004531551152467728, 0.048399847000837326, -0.03525209054350853, 0.02412477321922779, 0.05133417248725891, 0.05241638049483299, 0.014806807041168213, -0.02453155443072319, 0.012560013681650162, 0.04472824186086655, 0.03136077895760536, 0.0031738486140966415, 0.04053013026714325, 0.017494941130280495, -0.04490178823471069, 0.018863508477807045, 0.06574005633592606, 0.001644971314817667, -0.03719527646899223, -0.026934223249554634, -0.040572069585323334, 0.06533241271972656, -0.029862793162465096, -0.0050002168864011765, -0.014539147727191448, 0.08543907105922699, 0.007250504568219185, 0.06343965977430344, -0.0002192370011471212, -0.06572282314300537, 0.033663827925920486, -0.024482881650328636, 0.037206754088401794, 0.06944597512483597, -0.0004263367736712098, 0.06928668916225433, 0.021255582571029663, 0.016642045229673386, 0.019836489111185074, -0.06052720546722412, -0.08586762100458145, -0.026090893894433975, 0.008587567135691643, 0.048249028623104095, -0.03294450417160988, 0.005122141446918249, 0.09304192662239075, 0.018738891929388046, 0.026967503130435944, 0.020987486466765404, -0.013256153091788292, -0.010099749080836773, -0.04921577498316765, -0.062497541308403015, 0.028236785903573036, 0.04215119034051895, 0.002879563719034195, -0.0080100754275918, 0.024397550150752068, -0.03519698232412338, 0.009623661637306213, 0.025568649172782898, -0.023727910593152046, 0.055407196283340454, 0.04331640526652336, 0.008832286112010479, -0.013634758070111275, 0.03803764283657074, -0.026938432827591896, 0.041442420333623886, 0.017526011914014816, 0.005277222953736782, -0.019096214324235916, 0.023671388626098633, 0.14026173949241638, 0.08287719637155533, -0.02388027124106884, -0.055665966123342514, 0.004965232685208321, -0.015940392389893532, -0.057182345539331436, 0.015716908499598503, -0.009078120812773705, -0.043238624930381775, 0.017891647294163704, -0.007746407762169838, -0.01819988340139389, -0.012054520659148693, -0.028220362961292267, 0.0013209246098995209, 0.07025422900915146, -0.012145010754466057, 0.05428401380777359, -0.024118414148688316, 0.0024632278364151716, -0.012816039845347404, -0.046478237956762314, -0.03779013827443123, -0.0014350260607898235, 0.007937489077448845, -0.00639119790866971, 0.058026526123285294, -0.01625102572143078, -0.028459543362259865, -0.024685513228178024, -0.056887317448854446, 0.017422650009393692, 0.04101758077740669, 0.044471871107816696, -0.049204230308532715, 0.0829811692237854, -0.04677469655871391, 0.006082589738070965, -0.032957181334495544, -0.03698476031422615, -0.060879096388816833, -0.0034916072618216276, 0.005175900179892778, 0.03188606724143028, 0.018741106614470482, 0.024713534861803055, 0.008696111850440502, 0.00005939398761256598, 0.02327711693942547, -0.00847974419593811, 0.03533727675676346, -0.012252839282155037, -0.03225940465927124, -0.043799176812171936, -0.0033418929670006037, 0.05221220850944519, -0.0394895002245903, -0.044554565101861954, -0.01862659864127636, -0.04385805130004883, 0.023544466122984886, -0.10815013200044632, -0.017247729003429413, -0.008075175806879997, 0.02804277278482914, 0.012824561446905136, 0.010730544105172157, 0.03861228749155998, 0.06711040437221527, -0.0045723035000264645, -0.013606803491711617, 0.012124065309762955, 0.02953050658106804, 0.019442103803157806, 0.0029001901857554913, -0.00456384290009737, -0.008154703304171562, -0.0010701721766963601, -0.029944919049739838, -0.024798478931188583, -0.005434568505734205, -0.017768768593668938, -0.268856406211853, 0.07673825323581696, 0.0005569492932409048, -0.013051683083176613, 0.01649690791964531, -0.02446213737130165, 0.00271093868650496, -0.029298894107341766, -0.006123541388660669, 0.0007934691966511309, -0.013258678838610649, -0.025480495765805244, -0.012589812278747559, 0.043696194887161255, 0.002729457337409258, 0.010259267874062061, -0.02828354574739933, -0.048585813492536545, 0.011572218500077724, 0.020069273188710213, -0.0023953067138791084, -0.02979990839958191, 0.007610272616147995, 0.02975306659936905, 0.03790905326604843, 0.03002454899251461, -0.039506085216999054, 0.04120926186442375, -0.03944109380245209, -0.01439941581338644, -0.010699544101953506, -0.02201072871685028, -0.0038914738688617945, 0.009756847284734249, -0.009051033295691013, -0.01187871303409338, 0.011884307488799095, 0.0004321187443565577, 0.0031141273211687803, 0.024946721270680428, -0.049834441393613815, -0.05435037612915039, -0.014711522497236729, 0.017038434743881226, 0.0790063664317131, 0.0029545065481215715, -0.051771290600299835, -0.026830093935132027, -0.046156708151102066, 0.08500083535909653, -0.029546091333031654, -0.03944021090865135, -0.03262517973780632, 0.0204666405916214, -0.01534739788621664, 0.009964571334421635, -0.05359482392668724, 0.0021984833292663097, -0.0010811660904437304, -0.03452867269515991, 0.006110245827585459, -0.036919958889484406, 0.0067819408141076565, -0.05524904280900955, 0.02777709811925888, -0.03187493234872818, -0.04685486480593681, -0.029365207999944687, 0.0625833198428154, 0.05520744249224663, -0.021596157923340797, -0.0038285432383418083, -0.0470891073346138, -0.10502311587333679, -0.01276047807186842, -0.0502210333943367, -0.013494507409632206, -0.04462774842977524, 0.008283971808850765, 0.02719479240477085, -0.056076932698488235, -0.04660462960600853, 0.024335408583283424, 0.00994832068681717, -0.009642835706472397, -0.0030998000875115395, 0.025451725348830223, -0.037924665957689285, -0.012006658129394054, -0.031273696571588516, 0.05395366623997688, -0.04470305144786835, -0.010278565809130669, -0.03534160926938057, 0.005061892326921225, 0.025671495124697685, 0.028298931196331978, -0.001104659866541624, -0.009996162727475166, 0.02262871153652668, 0.012715036980807781, -0.042653102427721024, -0.006253152620047331, -0.04865804687142372, 0.039806220680475235, -0.001851295935921371, -0.04885132238268852, -0.0007418176392093301, 0.019219087436795235, -0.0057712579146027565, -0.036686576902866364, -0.00694996165111661, 0.021900005638599396, -0.05895218625664711, -0.041835445910692215, -0.013369020074605942, 0.027562426403164864, -0.014341171830892563, 0.04412134736776352, -0.03265183046460152, -0.04987761005759239, 0.04236675798892975, 0.06139448285102844, -0.0018222025828436017, -0.039404209703207016, -0.04579738527536392, 0.002318116370588541, -0.0006902319146320224, 0.035475004464387894, -0.006926031317561865, 0.014304129406809807, 0.036426279693841934, 0.03539665415883064, -0.002546850126236677, 0.009115645661950111, -0.021390970796346664, -0.020428720861673355, -0.030960094183683395, 0.0071499403566122055, 0.026798635721206665, 0.02559725008904934, -0.026026368141174316, -0.01710585504770279, 0.0307827889919281, 0.03785255178809166, 0.013764232397079468, 0.018633998930454254, -0.0012188206892460585, -0.02692543901503086, 0.020181668922305107, 0.025802532210946083, -0.044976167380809784, 0.009110882878303528, -0.05305568128824234, -0.031097006052732468, 0.004431205336004496, 0.06475578248500824, -0.012397848069667816, -0.00253945030272007, -0.01052083633840084, 0.04214368760585785, -0.019290639087557793, 0.008565020747482777, -0.018405204638838768, -0.018958259373903275, 0.01999305747449398, -0.00992562435567379, 0.027256708592176437, -0.0023430371657013893, -0.005279601085931063, 0.028020421043038368, 0.03492538630962372, -0.02567903697490692, 0.0011349095730111003, -0.010455871932208538, -0.016194883733987808, 0.009842961095273495, -0.007560826372355223, -0.026925209909677505, -0.012572374194860458, 0.04030690714716911, -0.014585275202989578, 0.013126064091920853, -0.004492027219384909, 0.05988341197371483, 0.03760124742984772, 0.014268109574913979, -0.0003392624785192311, -0.0075802127830684185, 0.00586223928257823, -0.054574329406023026, -0.008939017541706562, -0.02607434056699276, 0.017923271283507347, -0.006598191801458597, -0.06838755309581757, 0.018147075548768044, 0.03480103611946106, -0.025716960430145264, 0.019687680527567863, -0.025832049548625946, 0.0008018372463993728, -0.038334671407938004, 0.022055642679333687, 0.04217209666967392, -0.052372634410858154, 0.02766168862581253, 0.002292145509272814, 0.027008507400751114, -0.0026749710086733103, 0.03134490177035332, -0.03549692779779434, -0.04408179223537445, -0.016757402569055557, 0.02230204828083515, 0.00772318709641695, -0.053352467715740204, 0.01921944133937359, 0.001860254444181919, -0.005596253089606762, 0.0096634766086936, 0.007141818758100271, 0.016751784831285477, -0.04379567503929138, -0.03226924687623978, 0.013996634632349014, -0.03116324171423912, 0.011136268265545368, 0.032987866550683975, -0.022199423983693123, 0.01102443691343069, -0.04167592525482178, 0.04686100780963898, 0.003139546839520335, -0.03075692243874073, -0.031680185347795486, -0.07394807785749435, 0.026183657348155975, -0.06175635755062103, 0.06777743250131607, -0.014057070016860962, 0.021909749135375023, -0.04680498689413071, -0.009310043416917324, -0.06439734995365143, 0.02255886420607567, -0.040849409997463226, 0.0082288458943367, 0.004043706692755222, 0.0745437890291214, -0.006855986546725035, 0.05485554784536362, 0.009682921692728996, -0.03569714352488518, 0.021533412858843803, -0.029070215299725533, -0.025494039058685303, 0.0075437286868691444, -0.047456301748752594, 0.001394522376358509, 0.01608678698539734, 0.02221842110157013, -0.07073185592889786, 0.03558850288391113, 0.030534056946635246, 0.03811262547969818, 0.027437588199973106, 0.006715978495776653, 0.012568119913339615, -0.019129442051053047, 0.03920932486653328, -0.08711545914411545, 0.009439918212592602, 0.037523772567510605, 0.023772750049829483, -0.020582320168614388, -0.0046468512155115604, -0.043210677802562714, 0.0414184108376503, -0.07179997861385345, -0.015526114031672478, 0.06831152737140656, -0.0030949327629059553, 0.0029670142102986574, 0.014065219089388847, -0.05915428698062897, 0.0049363356083631516, 0.0224921852350235, -0.03652196004986763, -0.02363957092165947, 0.0038241040892899036, 0.048085737973451614, -0.006817522458732128, 0.015899064019322395, 0.01866689883172512, -0.03488406166434288, 0.06426122039556503, 0.012202863581478596, -0.009237236343324184, 0.04570211470127106, -0.0006405450985766947, 0.026334112510085106, 0.01397542655467987, 0.021661728620529175, 0.00825903657823801, 0.03606460615992546, -0.01768779195845127, -0.07318664342164993, 0.0051423474214971066, 0.03418496251106262, -0.015563072636723518, -0.03159201145172119, 0.046451419591903687, -0.0030845669098198414, -0.020472165197134018, -0.04878108203411102, 0.025046348571777344, -0.06809573620557785, -0.0029391648713499308, -0.006768580060452223, -0.01729004643857479, -0.04105222970247269, 0.0609041303396225, 0.009972727857530117, -0.0014021439710631967, 0.06852392107248306, -0.0172788854688406, -0.0035211022477597, 0.05162321403622627, 0.04231039434671402, 0.07994324713945389, 0.053041961044073105, 0.005053435452282429, 0.02355804853141308, -0.020020747557282448, -0.038729213178157806, 0.0016353699611499906, -0.023539787158370018, -0.01700780913233757, -0.004710621200501919, 0.028268739581108093, 0.07704285532236099, -0.007344495039433241, 0.07306773960590363, -0.03020026721060276, -0.007274809293448925, -0.03467310965061188, 0.029974810779094696, 0.009206158109009266, 0.06249936297535896, 0.039019547402858734, 0.03558432683348656, -0.021383274346590042, -0.0766700878739357, 0.025357291102409363, -0.014162074774503708, -0.023985788226127625, 0.03580580651760101, -0.010487384162843227, 0.008084401488304138, 0.025347895920276642, 0.03360813856124878, 0.1068524569272995, -0.019508121535182, -0.0191750917583704, 0.013029947876930237, 0.03880762308835983, 0.013865423388779163, 0.01854439079761505, -0.012918658554553986, -0.00821420457214117, -0.04392194747924805, -0.03181367740035057, -0.02680819109082222, -0.02802169695496559, -0.04360117018222809, 0.023398613557219505, -0.02501971460878849, -0.03400067985057831, -0.0025144407991319895, -0.010066577233374119, -0.029749153181910515, -0.04105255752801895, -0.06529171764850616, -0.05005759745836258, -0.05876699835062027, -0.0641312301158905, 0.0007010701228864491, -0.02481101080775261, -0.04278305917978287, -0.03362539783120155, 0.00532227149233222, 0.011697768233716488, 0.025001319125294685, -0.0312392208725214, -0.011914371512830257, 0.0562920942902565, -0.0018420142587274313, 0.013520984910428524, 0.01575082167983055, 0.04235846921801567, -0.003565367078408599, -0.023303614929318428, -0.005728304851800203, 0.010762179270386696, 0.05947091057896614, 0.004780809860676527, -0.007052098400890827, -0.060285381972789764, 0.020153744146227837, 0.039790187031030655, 0.02145485207438469, -0.08137957751750946, 0.006538433488458395, 0.06179124861955643, 0.013813217170536518, 0.05910484865307808, -0.022184398025274277, 0.012891219928860664, -0.03555416688323021, -0.03763147071003914, -0.02966178022325039, 0.008826024830341339, 0.05082480236887932, -0.008193588815629482, 0.08748430758714676, 0.04136628285050392, -0.0157526396214962, -0.021501436829566956, -0.014447638764977455, -0.02071928046643734, 0.006293938960880041, -0.052865251898765564, -0.008549021556973457, -0.039966095238924026, -0.05049259215593338, -0.010085782036185265, 0.033067841082811356, -0.04369219392538071, -0.00436665304005146, 0.001505094114691019, 0.023802338168025017, -0.016124002635478973, 0.03509724885225296, -0.02583952061831951, 0.04082462191581726, -0.03200247883796692, -0.04406600072979927, -0.026667281985282898, 0.03361108526587486, -0.0035419180057942867, -0.0009497575811110437, -0.0056877583265304565, -0.021609297022223473, -0.030172526836395264, -0.026217347010970116, 0.04637303948402405, 0.04263973981142044, -0.02527778223156929, 0.054129015654325485 ]
[ -0.08455529063940048, -0.03374907746911049, -0.05421233922243118, -0.030215546488761902, 0.05517967417836189, -0.06568344682455063, 0.0022903094068169594, 0.0009614760638214648, -0.012821474112570286, 0.04398133605718613, 0.010573770850896835, -0.07278484851121902, 0.03960258141160011, -0.04683733731508255, 0.05840102955698967, -0.04043462872505188, -0.031647734344005585, -0.028521506115794182, -0.09667543321847916, 0.04644747078418732, 0.037602830678224564, 0.007271311245858669, -0.04408910870552063, -0.05835889279842377, -0.040068335831165314, 0.030595902353525162, 0.027255907654762268, -0.0032669641077518463, -0.019898246973752975, -0.18050283193588257, 0.0067855361849069595, -0.04477126523852348, 0.006036644335836172, 0.01215319987386465, 0.01098948810249567, 0.014016612432897091, 0.025590594857931137, -0.026852766051888466, -0.021730180829763412, 0.03324132412672043, 0.04969107732176781, 0.0018363232957199216, -0.03499529883265495, -0.015681542456150055, 0.034146253019571304, -0.05784797668457031, -0.010776689276099205, 0.009581203572452068, 0.003920058719813824, 0.007309466600418091, -0.021318037062883377, 0.026888316497206688, -0.03826538845896721, -0.038000062108039856, 0.026841364800930023, -0.011522927321493626, 0.04636869579553604, 0.07208119332790375, 0.022509917616844177, 0.003355975029990077, 0.0010118469363078475, -0.000980789540335536, -0.12958990037441254, 0.1245591789484024, 0.06144532933831215, 0.09383148699998856, -0.03342133015394211, -0.06171460449695587, 0.0008090934716165066, 0.01827068440616131, -0.033185578882694244, -0.03271166980266571, -0.04703386127948761, 0.06249101459980011, 0.006601809989660978, -0.008016439154744148, -0.020640067756175995, 0.007739691995084286, 0.03570995107293129, -0.05501621961593628, -0.025495709851384163, -0.013653622008860111, 0.0062110526487231255, 0.039062585681676865, -0.020203784108161926, -0.012591334991157055, 0.03356773406267166, 0.05754753202199936, 0.020338131114840508, 0.009857536293566227, -0.011307425796985626, -0.04736146330833435, 0.03049728460609913, 0.04176777973771095, -0.06066029518842697, 0.008323341608047485, 0.013953646644949913, 0.0031571188010275364, -0.0658305287361145, 0.37807685136795044, -0.046589501202106476, -0.011300363577902317, -0.014512882567942142, -0.012930968776345253, 0.029093144461512566, 0.0031479396857321262, -0.015770060941576958, -0.04770350828766823, 0.006986267864704132, -0.019224723801016808, 0.010098062455654144, 0.005169683136045933, 0.06352890282869339, -0.0721512883901596, -0.018792927265167236, 0.04631410539150238, -0.01594522036612034, 0.02362753637135029, -0.016324782744050026, 0.009875530377030373, 0.032093316316604614, -0.025905396789312363, 0.02874082140624523, 0.04182678088545799, 0.031842127442359924, 0.0375995934009552, 0.06290111690759659, 0.07204180210828781, 0.02241305448114872, 0.06423617899417877, 0.022109264507889748, -0.050503358244895935, -0.07161673903465271, 0.010619506239891052, -0.005546147469431162, 0.027675066143274307, -0.01892150565981865, -0.01522043626755476, 0.022914793342351913, 0.014874515123665333, 0.005524076521396637, -0.010838011279702187, 0.03362114354968071, -0.010537308640778065, -0.006359358783811331, 0.07827114313840866, -0.006457868963479996, -0.013293343596160412, -0.033569470047950745, -0.057139307260513306, 0.019305618479847908, 0.06151895597577095, 0.023310352116823196, -0.04910537973046303, 0.01853998750448227, -0.008519710041582584, 0.07865290343761444, 0.01335692498832941, -0.052489299327135086, -0.013054607436060905, -0.05034489929676056, -0.0446191281080246, -0.019704094156622887, 0.08333577960729599, 0.026603221893310547, -0.11108022183179855, 0.016868524253368378, 0.005865601822733879, 0.01838538981974125, -0.03534313291311264, 0.00900154747068882, 0.002195203909650445, -0.03651587665081024, -0.036189958453178406, 0.032924309372901917, -0.03265205770730972, -0.03233742713928223, 0.03299592062830925, 0.04437274485826492, 0.05589304491877556, -0.07806757092475891, -0.03844035416841507, -0.03866659104824066, -0.008644582703709602, -0.029086556285619736, -0.08492304384708405, -0.05412858724594116, 0.027284622192382812, -0.019276345148682594, -0.0177090335637331, -0.036133233457803726, 0.02609224058687687, -0.04618825390934944, 0.03837262839078903, -0.009511292912065983, -0.012264741584658623, -0.0006960715400055051, -0.02925063855946064, -0.01738055795431137, 0.016532761976122856, 0.05987828969955444, 0.047788821160793304, -0.0030369041487574577, 0.008680297061800957, -0.06470426172018051, 0.00810303259640932, 0.06036478281021118, -0.04791127145290375, 0.038457948714494705, 0.039367254823446274, -0.008701236918568611, 0.01409781351685524, -0.02185928076505661, -0.0013693247456103563, -0.04142092913389206, -0.029050517827272415, -0.010218205861747265, 0.02166186273097992, 0.017680125311017036, -0.010256254114210606, -0.06252284348011017, -0.03611880913376808, -0.0318286269903183, -0.34938204288482666, -0.04614834487438202, -0.041670285165309906, -0.04244569316506386, 0.04492681846022606, -0.10243088752031326, 0.04025258868932724, -0.007501843851059675, -0.00941486470401287, -0.008359014056622982, 0.11298848688602448, -0.021797366440296173, 0.03543461859226227, -0.05659960210323334, -0.012852661311626434, 0.017171459272503853, -0.02142230235040188, -0.045945923775434494, 0.0012071256060153246, 0.09004680067300797, -0.02583264373242855, -0.022221282124519348, 0.01350346114486456, -0.038680996745824814, 0.0029241861775517464, -0.038406819105148315, 0.1137504130601883, -0.016598474234342575, 0.1092083603143692, -0.02613741345703602, 0.058261070400476456, -0.014692980796098709, 0.015566193498671055, -0.10106004774570465, -0.013785715214908123, -0.026610946282744408, -0.005284557119011879, 0.05970223620533943, 0.03413601964712143, -0.023983977735042572, -0.016240699216723442, 0.03936244174838066, -0.00833861529827118, -0.017263121902942657, 0.03039368987083435, -0.03181479498744011, -0.04447196051478386, 0.010428046807646751, 0.0025151728186756372, 0.042850714176893234, 0.01557055115699768, 0.04373181611299515, 0.007324520032852888, 0.011948290280997753, 0.027209512889385223, -0.0069360085763037205, -0.012373510748147964, -0.018442165106534958, 0.008871743455529213, 0.01799721084535122, 0.029321214184165, 0.02574036829173565, 0.007216871716082096, -0.036459531635046005, 0.0020138616673648357, -0.013954793103039265, -0.014003874734044075, 0.013577932491898537, 0.07725811749696732, -0.04217894747853279, -0.01237642765045166, 0.12384849786758423, -0.0006571924313902855, 0.056371524930000305, 0.013827533461153507, 0.06915149837732315, -0.005615359637886286, -0.00956962164491415, -0.005235796328634024, -0.009022055193781853, 0.02538173645734787, -0.0007407662342302501, 0.03155684098601341, -0.02721928246319294, 0.03419342264533043, 0.03205518051981926, -0.040647052228450775, 0.026732292026281357, 0.033931948244571686, -0.005879632197320461, -0.03701815381646156, -0.03638175129890442, -0.019235918298363686, -0.06032651662826538, 0.06904065608978271, -0.0009479481959715486, -0.2416900098323822, -0.013827009126543999, 0.039453886449337006, 0.033148180693387985, -0.005483503453433514, -0.00016997767670545727, 0.09016148000955582, -0.09252279251813889, -0.022662831470370293, -0.0014051530743017793, -0.03226703777909279, 0.042152706533670425, 0.010567638091742992, 0.025877030566334724, 0.0579068586230278, 0.0019429938402026892, 0.03330058231949806, 0.022138893604278564, -0.043494101613759995, 0.011236704885959625, 0.018554076552391052, 0.01784326881170273, 0.17080575227737427, 0.019605502486228943, 0.018903395161032677, 0.061975542455911636, 0.009594904258847237, 0.04292293265461922, 0.07605823129415512, 0.029206201434135437, 0.04602877423167229, 0.027687037363648415, 0.00897476077079773, -0.03246956691145897, 0.010486352257430553, -0.07057544589042664, -0.0025835135020315647, -0.006560819689184427, 0.023301031440496445, -0.03386254236102104, -0.04035411775112152, 0.017527999356389046, -0.017991259694099426, -0.0024584676139056683, 0.04265647381544113, -0.007941087707877159, 0.0005889947642572224, -0.07695260643959045, -0.0026093455962836742, 0.0157671757042408, -0.04708579182624817, -0.0022105732932686806, 0.003533672308549285, -0.02311909757554531, 0.05462351441383362, 0.10627061128616333, 0.03649814799427986, -0.026647986844182014, -0.03141092509031296, 0.022552110254764557, 0.011821606196463108, -0.054146770387887955, 0.10469667613506317, 0.017848828807473183, 0.00551912235096097 ]
[ 0.016936160624027252, 0.027307890355587006, -0.020849531516432762, 0.006216087844222784, 0.010488908737897873, -0.032854627817869186, -0.008274710737168789, 0.004817165434360504, -0.002725925762206316, 0.017748957499861717, 0.003975008614361286, -0.020862145349383354, 0.039243292063474655, 0.011280180886387825, 0.049005746841430664, -0.03943762555718422, 0.0027574007399380207, -0.0034342575818300247, -0.010635981336236, -0.0476393848657608, 0.008852442726492882, 0.023188740015029907, 0.0557018481194973, 0.02157708629965782, -0.040285058319568634, -0.04160846397280693, -0.03908420726656914, 0.030368022620677948, 0.022713463753461838, -0.09732282161712646, -0.005803758278489113, -0.01260351948440075, 0.02572932466864586, -0.03151743859052658, 0.033620212227106094, 0.03466901555657387, -0.0005485543515533209, -0.0212223120033741, 0.0011898924130946398, 0.018071668222546577, 0.021113602444529533, -0.03977523744106293, -0.025847356766462326, -0.015584503300487995, -0.02478118985891342, 0.010888715274631977, 0.02007446065545082, 0.01649237796664238, -0.00014328611723612994, -0.029303358867764473, -0.01702181249856949, 0.018014395609498024, -0.001879764604382217, -0.003822843311354518, -0.07190190255641937, -0.000059988069551764056, -0.009120354428887367, -0.007875306531786919, 0.004769714083522558, -0.06885919719934464, -0.0047414712607860565, 0.014399268664419651, -0.0018820136319845915, 0.007501248270273209, 0.007802039384841919, 0.02372022159397602, -0.004942240659147501, -0.016436291858553886, 0.027496669441461563, 0.03671953082084656, 0.003130455268546939, -0.01446386706084013, -0.03916595131158829, 0.021005354821681976, -0.0071337055414915085, -0.007409027311950922, 0.05808202922344208, -0.048253271728754044, -0.011523302644491196, 0.03577030822634697, -0.0006028676871210337, -0.010933618061244488, -0.006122715305536985, 0.04156595095992088, -0.042771197855472565, -0.007589959539473057, -0.008030234836041927, -0.02447325550019741, -0.034073490649461746, 0.01754448376595974, -0.018614066764712334, -0.031076043844223022, -0.0015328613808378577, 0.00933015625923872, -0.08053853362798691, 0.01827763020992279, -0.0011379099451005459, -0.012881457805633545, -0.041374336928129196, 0.8007616400718689, -0.019066162407398224, -0.010873813182115555, 0.017128389328718185, -0.012371528893709183, 0.07318990677595139, 0.044731881469488144, -0.01274185348302126, -0.011540088802576065, -0.0163120049983263, 0.0024845555890351534, 0.025439439341425896, -0.03379884734749794, 0.020994801074266434, 0.03302834928035736, 0.046147871762514114, 0.03137714043259621, 0.011623402126133442, 0.019606096670031548, 0.039443764835596085, 0.07812812924385071, 0.07716215401887894, 0.014918575994670391, 0.04252297431230545, -0.004318729508668184, -0.008913123048841953, -0.16182202100753784, 0.054173793643713, -6.68373745186869e-33, 0.027846559882164, -0.07736661285161972, 0.013132935389876366, 0.044965412467718124, 0.03304282948374748, 0.05872881039977074, -0.005536995362490416, 0.009936327114701271, -0.006744804792106152, -0.04149198904633522, -0.04075083136558533, -0.021208086982369423, 0.014844085089862347, -0.015110940672457218, 0.000355625175870955, -0.003138234606012702, -0.019708603620529175, 0.04384529963135719, -0.0032662416342645884, 0.04263904318213463, 0.06926759332418442, 0.017081977799534798, 0.021086497232317924, 0.015026602894067764, 0.027060307562351227, 0.015949586406350136, 0.03362680599093437, -0.025811318308115005, 0.0041314903646707535, -0.04631621018052101, -0.006000554654747248, 0.009725470095872879, 0.0026960354298353195, -0.04792260751128197, 0.009391715750098228, -0.04114217683672905, -0.014788337051868439, -0.0004923713277094066, -0.049229204654693604, -0.008063705638051033, -0.025257345288991928, 0.005418239627033472, -0.008304188027977943, -0.051380131393671036, -0.037526559084653854, -0.022981850430369377, 0.0001423258800059557, 0.007164129056036472, 0.03505384549498558, 0.05098797380924225, 0.02291128784418106, 0.005868269596248865, 0.009364777244627476, -0.019708074629306793, 0.016116928309202194, -0.024778900668025017, 0.013196351937949657, 0.004381412174552679, 0.012781466357409954, -0.041714686900377274, -0.018475450575351715, -0.03208572790026665, -0.0006244077230803668, -0.0035522840917110443, 0.03930755704641342, -0.004853298421949148, 0.02681187354028225, 0.04803377762436867, 0.005521124228835106, -0.010356450453400612, -0.07443668693304062, -0.008854766376316547, 0.007056470960378647, 0.020696526393294334, 0.016987629234790802, -0.03841971978545189, -0.03226989507675171, -0.020528914406895638, 0.001476351753808558, 0.02736736834049225, 0.01343951653689146, 0.019174054265022278, 0.008968492038547993, 0.003861344652250409, -0.017028339207172394, -0.01055164448916912, 0.002793452702462673, -0.0010816360590979457, 0.0007825805805623531, -0.04033565893769264, 0.012232678942382336, 0.009233598597347736, -0.0021498205605894327, -0.04017680510878563, -0.038391098380088806, 6.647641693774784e-33, -0.007770400494337082, -0.018314117565751076, -0.0398358590900898, 0.014584068208932877, 0.019795889034867287, -0.012289701960980892, 0.035304248332977295, 0.058317963033914566, -0.021701950579881668, 0.02410588413476944, -0.03668910264968872, -0.01882488653063774, 0.027780240401625633, 0.019615791738033295, 0.10964518785476685, -0.022733772173523903, -0.007825810462236404, -0.008194589987397194, 0.03972967714071274, -0.018328217789530754, -0.028384944424033165, -0.010158059187233448, -0.02226799540221691, 0.035562027245759964, 0.044209983199834824, 0.02294181101024151, -0.024643510580062866, 0.02290155179798603, 0.02268817089498043, 0.004671280272305012, -0.02054932527244091, 0.026634564623236656, 0.010840327478945255, 0.002749292878434062, -0.0297333225607872, -0.001359510701149702, 0.020988641306757927, -0.006515420041978359, 0.015208412893116474, -0.04250456392765045, 0.044099655002355576, -0.01371475588530302, -0.006331938784569502, -0.006798149086534977, 0.002996959490701556, 0.03201841562986374, -0.008687637746334076, 0.016774775460362434, 0.01894454099237919, 0.0074699558317661285, -0.025810930877923965, -0.009685399942100048, -0.012554707936942577, -0.012167003937065601, 0.05053506791591644, -0.015919607132673264, -0.035415466874837875, 0.03722825646400452, -0.022157715633511543, 0.005372255574911833, -0.020792944356799126, -0.010421662591397762, 0.03817550465464592, 0.009846199303865433, -0.04947185143828392, 0.02229592576622963, -0.0758737251162529, -0.0161212719976902, 0.005025207065045834, 0.0026562782004475594, 0.004122160375118256, -0.032080478966236115, -0.023895367980003357, -0.00277883093804121, 0.0068238358944654465, 0.010341920889914036, -0.00460916617885232, -0.014918806031346321, -0.02684905007481575, 0.011365803889930248, 0.023282434791326523, -0.004142617806792259, -0.022136801853775978, 0.06077784299850464, 0.022809620946645737, -0.01599033921957016, -0.03867415711283684, 0.002719735726714134, -0.003360237693414092, 0.002937988145276904, -0.05609775334596634, -0.012014798820018768, -0.0448499359190464, 0.01992013119161129, 0.048676855862140656, -1.2359500090042275e-8, -0.001570394728332758, 0.041691042482852936, -0.003400359768420458, 0.0679134801030159, -0.00004236121094436385, 0.039926957339048386, -0.03889963775873184, -0.040345657616853714, -0.027568543329834938, -0.019917389377951622, 0.05631536245346069, -0.07012490183115005, -0.014073620550334454, 0.01331421546638012, 0.022159337997436523, 0.008229222148656845, -0.03563474118709564, -0.007798723876476288, 0.018161311745643616, -0.02181973308324814, 0.01560115721076727, 0.027815843001008034, -0.04371054098010063, -0.01921032927930355, 0.014052060432732105, 0.017814474180340767, 0.005541804246604443, -0.06634647399187088, -0.012625406496226788, -0.00990164652466774, 0.0020947305019944906, -0.061317235231399536, -0.008494893088936806, 0.03651880845427513, -0.023652544245123863, -0.03525756672024727, -0.07804706692695618, 0.002520844107493758, 0.025815673172473907, -0.002084949752315879, -0.00025542094954289496, 0.025597065687179565, -0.01031499169766903, -0.02906106784939766, -0.003358763176947832, 0.0014565695310011506, -0.0023464160040020943, 0.0444730743765831, -0.011219089850783348, 0.0019497578032314777, -0.007260756101459265, -0.02267184481024742, -0.023171668872237206, 0.038737013936042786, 0.04294579103589058, 0.035650867968797684, 0.016085224226117134, -0.08246167749166489, -0.015710514038801193, 0.02073577418923378, 0.0248834490776062, -0.00943517591804266, -0.007067500147968531, -0.026734773069620132 ]
aws-lambda-encrypted-environment-variables
https://markhneedham.com/blog/2017/04/03/aws-lambda-encrypted-environment-variables
false
2017-04-05 23:49:45
AWS Lambda: Programmatically scheduling a CloudWatchEvent
[ "lambda", "aws", "aws-lambda" ]
[ "Software Development" ]
I recently wrote a blog post showing how to http://www.markhneedham.com/blog/2017/04/02/aws-lambda-programatically-create-a-python-hello-world-function/[create a Python 'Hello World' AWS lambda function] and manually invoke it, but what I really wanted to do was have it run automatically every hour. To achieve that in AWS Lambda land we need to create a http://docs.aws.amazon.com/AmazonCloudWatch/latest/events/WhatIsCloudWatchEvents.html[CloudWatch Event]. The documentation describes them as follows: ____ Using simple rules that you can quickly set up, you can match events and route them to one or more target functions or streams. ____ image::{{<siteurl>}}/uploads/2017/04/2017-04-05_23-06-36.png[2017 04 05 23 06 36,364] This is actually really easy from the Amazon web console as you just need to click the 'Triggers' tab and then 'Add trigger'. It's not obvious that there are actually three steps are involved as they're abstracted from you. So what are http://docs.aws.amazon.com/AmazonCloudWatch/latest/events/RunLambdaSchedule.html[the steps]? . Create rule . Give permission for that rule to execute . Map the rule to the function I forgot to do step 2) initially and then you just end up with a rule that never triggers, which isn't particularly useful. The following code creates a 'Hello World' lambda function and runs it once an hour: [source,python] ---- import boto3 lambda_client = boto3.client('lambda') events_client = boto3.client('events') fn_name = "HelloWorld" fn_role = 'arn:aws:iam::[your-aws-id]:role/lambda_basic_execution' fn_response = lambda_client.create_function( FunctionName=fn_name, Runtime='python2.7', Role=fn_role, Handler="{0}.lambda_handler".format(fn_name), Code={'ZipFile': open("{0}.zip".format(fn_name), 'rb').read(), }, ) fn_arn = fn_response['FunctionArn'] frequency = "rate(1 hour)" name = "{0}-Trigger".format(fn_name) rule_response = events_client.put_rule( Name=name, ScheduleExpression=frequency, State='ENABLED', ) lambda_client.add_permission( FunctionName=fn_name, StatementId="{0}-Event".format(name), Action='lambda:InvokeFunction', Principal='events.amazonaws.com', SourceArn=rule_response['RuleArn'], ) events_client.put_targets( Rule=name, Targets=[ { 'Id': "1", 'Arn': fn_arn, }, ] ) ---- We can now check if our trigger has been configured correctly: [source,bash] ---- $ aws events list-rules --query "Rules[?Name=='HelloWorld-Trigger']" [ { "State": "ENABLED", "ScheduleExpression": "rate(1 hour)", "Name": "HelloWorld-Trigger", "Arn": "arn:aws:events:us-east-1:[your-aws-id]:rule/HelloWorld-Trigger" } ] $ aws events list-targets-by-rule --rule HelloWorld-Trigger { "Targets": [ { "Id": "1", "Arn": "arn:aws:lambda:us-east-1:[your-aws-id]:function:HelloWorld" } ] } $ aws lambda get-policy --function-name HelloWorld { "Policy": "{\"Version\":\"2012-10-17\",\"Id\":\"default\",\"Statement\":[{\"Sid\":\"HelloWorld-Trigger-Event\",\"Effect\":\"Allow\",\"Principal\":{\"Service\":\"events.amazonaws.com\"},\"Action\":\"lambda:InvokeFunction\",\"Resource\":\"arn:aws:lambda:us-east-1:[your-aws-id]:function:HelloWorld\",\"Condition\":{\"ArnLike\":{\"AWS:SourceArn\":\"arn:aws:events:us-east-1:[your-aws-id]:rule/HelloWorld-Trigger\"}}}]}" } ---- All looks good so we're done!
Creating triggers in AWS Lambda is really easy from the console but we want to automate that process. In this post we'll create triggers programatically.
null
[ 0.02044154517352581, -0.024292506277561188, 0.0072175911627709866, -0.004810485057532787, 0.0619531013071537, 0.014603894203901291, 0.02042447030544281, 0.026573441922664642, 0.007189446594566107, 0.006642164662480354, -0.006972495000809431, 0.01447329856455326, -0.06469924002885818, 0.014117195270955563, -0.02050972916185856, 0.04780106619000435, 0.092644102871418, -0.007925935089588165, 0.009567180648446083, -0.036716312170028687, -0.0026082685217261314, 0.06652788817882538, 0.016525346785783768, 0.03479452803730965, -0.0008065543370321393, 0.035074278712272644, -0.013945105485618114, 0.003574519185349345, -0.035805556923151016, -0.004387452732771635, 0.04894457757472992, 0.0008238522568717599, -0.0017060755053535104, -0.014987798407673836, 0.020170513540506363, -0.009713378734886646, -0.008180308155715466, 0.006259650457650423, -0.01217573881149292, 0.03455810993909836, -0.0609409473836422, 0.026896726340055466, -0.026902394369244576, 0.02204548940062523, -0.03120139241218567, 0.013516184873878956, -0.033607419580221176, 0.011657679453492165, 0.020775964483618736, -0.003644132986664772, -0.08439186215400696, 0.022850072011351585, -0.007090490777045488, -0.0057443189434707165, 0.02083769254386425, 0.03235124796628952, 0.031498685479164124, -0.06735678017139435, 0.02353009022772312, -0.013638928532600403, 0.019051766023039818, 0.009101754985749722, 0.014695612713694572, 0.02017424814403057, 0.03117363713681698, -0.005299814511090517, -0.022371582686901093, 0.045551132410764694, -0.02660817839205265, 0.022896068170666695, 0.0015289551811292768, 0.004706745967268944, -0.026627570390701294, 0.009098674170672894, -0.008731713518500328, -0.05386216193437576, -0.034447986632585526, 0.05879785865545273, 0.04232337698340416, 0.05637669563293457, -0.0020245418418198824, -0.01285032369196415, 0.017498845234513283, 0.02243376523256302, -0.009656187146902084, 0.001958438428118825, -0.03509591519832611, -0.007905676029622555, -0.014382332563400269, 0.059323135763406754, 0.028333211317658424, -0.07187019288539886, 0.013410123065114021, 0.020146377384662628, -0.0021925910841673613, 0.012928596697747707, -0.014681627042591572, -0.01415006723254919, 0.015206822194159031, -0.0032248764764517546, -0.04776327684521675, -0.02897547371685505, -0.008015135303139687, 0.010669922456145287, -0.052440330386161804, -0.017812322825193405, -0.0451497808098793, -0.02795969508588314, 0.01573936641216278, 0.025045352056622505, -0.009181194938719273, 0.0072684516198933125, -0.03150080889463425, -0.014051942154765129, -0.08780641853809357, 0.04928635060787201, 0.015910498797893524, -0.03934817016124725, 0.01032549049705267, -0.016344252973794937, 0.07777866721153259, 0.011227504350244999, -0.016444308683276176, 0.0758117139339447, 0.008751866407692432, 0.009154867380857468, 0.00900969561189413, 0.05522524565458298, 0.012424805201590061, -0.0529022216796875, -0.009441284462809563, 0.05357210710644722, 0.009617619216442108, 0.006376361008733511, 0.008893674239516258, 0.019144520163536072, -0.04541768133640289, 0.01703372411429882, 0.08354905992746353, 0.04484492912888527, 0.018877703696489334, -0.015033328905701637, 0.023742513731122017, -0.02524292655289173, 0.01568850688636303, 0.017241988331079483, 0.006576721556484699, -0.04366174340248108, -0.05686398595571518, 0.00045889965258538723, 0.02139825001358986, 0.02324017323553562, 0.020431825891137123, -0.03231729939579964, 0.02394249103963375, 0.04141867905855179, 0.06979700177907944, 0.0038283620961010456, -0.009624531492590904, 0.025780189782381058, 0.04748157411813736, 0.04722555726766586, -0.0012813681969419122, 0.02139572612941265, 0.011128720827400684, -0.03530912101268768, 0.0220803115516901, 0.06338505446910858, 0.016573160886764526, -0.025135355070233345, -0.03759432211518288, -0.01796845719218254, 0.05031672492623329, -0.005066975019872189, 0.006708653178066015, 0.02641988731920719, 0.08990001678466797, -0.012700709514319897, 0.03376002609729767, 0.015374741517007351, -0.06824994087219238, 0.04414066672325134, 0.0012169558322057128, 0.0419284887611866, 0.06848766654729843, -0.006421556230634451, 0.07840123772621155, 0.038021545857191086, 0.0016471587587147951, 0.017457395792007446, -0.07598142325878143, -0.08732151985168457, -0.010863196104764938, -0.0020405082032084465, 0.045455511659383774, -0.051110632717609406, -0.019321033731102943, 0.0998961552977562, 0.022642770782113075, 0.05364825949072838, 0.011232693679630756, -0.010631411336362362, -0.01327750738710165, -0.04528859630227089, -0.0944116935133934, 0.0361434742808342, 0.01676223799586296, -0.023546412587165833, -0.03960137069225311, 0.0014166784239932895, -0.03955351933836937, 0.00622852798551321, 0.025525955483317375, -0.028166159987449646, 0.05896583944559097, 0.048713814467191696, 0.05067092552781105, -0.03537341579794884, 0.03917144238948822, -0.015505584888160229, 0.04804529994726181, 0.01269521564245224, -0.007368369959294796, -0.00013588933506980538, -0.008448624983429909, 0.1004781648516655, 0.05679067596793175, -0.03523647412657738, -0.07329759746789932, 0.005727265030145645, -0.0018246655818074942, -0.02568705752491951, -0.02968376874923706, -0.012496400624513626, -0.03210631385445595, 0.007028523366898298, 0.018887173384428024, -0.04944320395588875, -0.021369747817516327, -0.02394704334437847, 0.014108534902334213, 0.059383686631917953, -0.019740527495741844, 0.05783899873495102, -0.01520475372672081, -0.03159922733902931, -0.012122073210775852, -0.012923846952617168, -0.046006474643945694, -0.0017439986113458872, -0.005835241638123989, -0.015101511031389236, 0.05497877299785614, -0.045216698199510574, -0.025219520553946495, -0.02081870846450329, -0.06366875767707825, 0.05189509689807892, 0.04470076039433479, 0.06261979043483734, -0.01676836982369423, 0.04805214703083038, -0.044415537267923355, 0.012040584348142147, -0.016287773847579956, -0.06058679521083832, -0.06713659316301346, -0.012064769864082336, -0.00869764480739832, 0.013248512521386147, 0.0183105506002903, 0.009727813303470612, 0.034589819610118866, -0.02735132724046707, 0.024904634803533554, -0.019475378096103668, 0.03780357912182808, -0.010469643399119377, -0.025601815432310104, -0.027179168537259102, -0.020540578290820122, 0.06005570665001869, -0.018073752522468567, -0.014452596195042133, -0.02117370069026947, -0.03592333942651749, 0.033135466277599335, -0.11489187180995941, -0.02157697081565857, -0.009522955864667892, 0.011486759409308434, 0.040954191237688065, 0.027460219338536263, 0.03054944984614849, 0.057711411267519, 0.00624921964481473, -0.03082541935145855, -0.005306478589773178, -0.015130358748137951, 0.024363741278648376, -0.0006816015229560435, -0.0006577695603482425, 0.03212439641356468, 0.0010585630079731345, -0.01729438081383705, -0.03995009884238243, 0.005906028673052788, -0.02944100834429264, -0.27209001779556274, 0.03664320334792137, 0.0008458029478788376, -0.03473173454403877, 0.004059589002281427, -0.0002826800919137895, 0.02670394815504551, -0.026993263512849808, -0.009186440147459507, 0.020521949976682663, -0.029498610645532608, -0.026218220591545105, -0.011411515064537525, 0.02464722841978073, 0.003853774396702647, 0.012699329294264317, -0.03241342306137085, -0.038436051458120346, 0.0075072054751217365, 0.013839534483850002, -0.039962850511074066, -0.04407316446304321, 0.022308336570858955, 0.016703791916370392, 0.04369857907295227, 0.0139812882989645, -0.0422612726688385, 0.042564962059259415, -0.0336323007941246, -0.013075918890535831, 0.024975964799523354, -0.04016299918293953, 0.004008465446531773, -0.032002054154872894, 0.005652499385178089, -0.023831576108932495, 0.01454000361263752, -0.007482251152396202, 0.011654307134449482, 0.0018114630365744233, -0.04001010209321976, -0.06990186870098114, -0.011375865899026394, 0.03127429261803627, 0.09158149361610413, 0.01843288168311119, -0.05622515827417374, -0.023478757590055466, -0.04808421805500984, 0.0880964994430542, -0.03030463121831417, -0.0444657988846302, -0.022692959755659103, 0.015511520206928253, -0.013552923686802387, -0.0076894029043614864, -0.04464118182659149, -0.0029781514313071966, -0.009093214757740498, -0.03342771902680397, 0.0015848285984247923, -0.02954256348311901, 0.005842132028192282, -0.04474392160773277, 0.003299200674518943, -0.035367924720048904, -0.06011525169014931, -0.0259823277592659, 0.07741937786340714, 0.031595006585121155, -0.00916564092040062, -0.004057842306792736, -0.053479328751564026, -0.11828114092350006, -0.009780466556549072, -0.03843505680561066, -0.0012277195928618312, -0.01700149103999138, 0.0048643602058291435, 0.04665243253111839, -0.05551570653915405, -0.07224014401435852, 0.01198077667504549, -0.005748777184635401, 0.027556950226426125, -0.013902198523283005, 0.01633860543370247, -0.007528530899435282, -0.00496609415858984, -0.011435954831540585, 0.04733754321932793, -0.02417977899312973, -0.037738095968961716, -0.011800358071923256, 0.024011515080928802, 0.039060428738594055, 0.015682237222790718, 0.011676390655338764, 0.0012931908713653684, 0.017984025180339813, 0.03416609764099121, -0.05449168011546135, 0.025014635175466537, -0.037487346678972244, 0.05093146488070488, 0.011157340370118618, -0.04740756005048752, -0.010588284581899643, 0.042348261922597885, 0.016334660351276398, -0.020831715315580368, -0.019968336448073387, 0.026075143367052078, -0.05843999981880188, -0.02169979177415371, -0.005462626460939646, 0.01657133921980858, -0.005000106059014797, 0.022225432097911835, -0.00918490905314684, -0.07523317635059357, 0.04541203752160072, 0.01590035669505596, -0.009935026988387108, -0.04398868605494499, -0.01563366688787937, 0.014176985248923302, 0.006234722211956978, 0.02906610630452633, -0.012466542422771454, -0.00890763383358717, 0.02405644580721855, 0.018971620127558708, -0.018251532688736916, -0.0032499085646122694, -0.03359675034880638, -0.03397778421640396, -0.039153579622507095, 0.0167517252266407, 0.023003116250038147, -0.00842965580523014, -0.011788170784711838, -0.026354454457759857, 0.04704498499631882, 0.05863519012928009, 0.03524227440357208, 0.023854495957493782, 0.002716267481446266, 0.022437576204538345, 0.014727895148098469, 0.0019087372347712517, -0.05177757143974304, 0.004100422840565443, -0.053333580493927, -0.02531159482896328, -0.008677147328853607, 0.07533404231071472, -0.018025344237685204, -0.007875962182879448, -0.018314167857170105, 0.008484969846904278, -0.057571884244680405, 0.016179373487830162, -0.024461790919303894, 0.028117679059505463, 0.04570355266332626, -0.010599208064377308, 0.021894166246056557, -0.009668386541306973, -0.010389827191829681, -0.004143219441175461, 0.009264415130019188, -0.02964957244694233, 0.015738779678940773, -0.0007791590760461986, 0.029552601277828217, 0.01868659071624279, 0.016094893217086792, -0.020073266699910164, -0.008929047733545303, 0.02284759096801281, 0.004251528065651655, 0.006957019679248333, 0.0011042992118746042, 0.034878335893154144, 0.05907411873340607, 0.018508698791265488, -0.008362282067537308, -0.02424074336886406, 0.014282519929111004, -0.04247138649225235, 0.016158636659383774, -0.017885567620396614, -0.0036471933126449585, -0.016215654090046883, -0.06281142681837082, 0.06297541409730911, 0.02841123193502426, -0.007268733344972134, -0.021999577060341835, -0.05529623478651047, -0.004210066050291061, -0.052924994379282, 0.030501581728458405, 0.06338713318109512, -0.06152725964784622, 0.017141783609986305, -0.0033638852182775736, 0.03160162642598152, 0.00011812730372184888, 0.03450578451156616, -0.03328150510787964, -0.004611582960933447, -0.03230072185397148, 0.012325999327003956, -0.01544978842139244, -0.05040266737341881, -0.01676648110151291, 0.01621590554714203, 0.0033660011831671, 0.010729944333434105, 0.020762307569384575, -0.0016264478908851743, -0.011508643627166748, -0.046324338763952255, 0.019388390704989433, -0.018853047862648964, -0.031678710132837296, 0.025650300085544586, -0.012558297254145145, -0.008048364892601967, -0.03725036606192589, -0.0018593838904052973, 0.010334830731153488, -0.028007131069898605, -0.02232459746301174, -0.06073560193181038, 0.004298487678170204, -0.011093702167272568, 0.07332991063594818, -0.012737862765789032, 0.0075324783101677895, -0.046370334923267365, -0.013087701052427292, -0.03887997567653656, 0.0005874957423657179, -0.020835155621170998, 0.018904682248830795, -0.003180621424689889, 0.06535006314516068, -0.009659656323492527, 0.037880245596170425, 0.009835528209805489, -0.016014333814382553, 0.022809863090515137, -0.06815508008003235, -0.019091732800006866, 0.011059843003749847, -0.04930863156914711, 0.029649903997778893, -0.0031963824294507504, 0.009952646680176258, -0.08783692866563797, 0.022127002477645874, 0.025848636403679848, 0.03644414246082306, 0.030009079724550247, -0.004110664129257202, 0.01549220085144043, -0.01576126739382744, -0.0034029085654765368, -0.08763448894023895, -0.00297721684910357, 0.02639748528599739, 0.043403510004282, 0.0014038593508303165, 0.012155704200267792, -0.03283608332276344, 0.05641493946313858, -0.06105112284421921, -0.0174693763256073, 0.07157883793115616, -0.004175606649369001, -0.005188229493796825, 0.026769159361720085, -0.0741509348154068, 0.030892301350831985, 0.025911688804626465, -0.03039447031915188, 0.005992087535560131, -0.01741975173354149, 0.038597144186496735, 0.00007317622657865286, 0.005801246501505375, -0.02760138548910618, -0.049136366695165634, 0.11168975383043289, -0.015273009426891804, -0.043733756989240646, 0.0626923218369484, -0.004736017435789108, 0.027153806760907173, 0.02394603006541729, 0.034001242369413376, -0.007498288061469793, 0.0040033371187746525, -0.022312359884381294, -0.056389302015304565, 0.060002345591783524, 0.036781080067157745, -0.04893213510513306, -0.03327888250350952, 0.05411595478653908, 0.013799325563013554, -0.048565447330474854, -0.041862983256578445, 0.0038300822488963604, -0.0483376607298851, -0.012989944778382778, -0.015772324055433273, -0.02034156583249569, -0.05121907591819763, 0.05060655251145363, 0.0024717263877391815, 0.008668354712426662, 0.07603081315755844, -0.0158214271068573, 0.0068326243199408054, 0.04146934673190117, 0.05677486211061478, 0.07118143141269684, 0.051487721502780914, -0.0013058311305940151, 0.04810395464301109, -0.030195679515600204, -0.04283137246966362, -0.004154595080763102, -0.003062194911763072, -0.029706265777349472, -0.018837815150618553, 0.03542935103178024, 0.07569403946399689, 0.0156776774674654, 0.0666782557964325, -0.007648146245628595, -0.010806453414261341, -0.033750392496585846, 0.009926141239702702, 0.029245318844914436, 0.03818482905626297, 0.020350279286503792, 0.04339200258255005, 0.00820218212902546, -0.052980560809373856, 0.03725242614746094, -0.04225259646773338, -0.032980870455503464, 0.042784370481967926, 0.0029024670366197824, -0.0031485091894865036, 0.017013708129525185, 0.014086608774960041, 0.07063686847686768, 0.020903652533888817, 0.013112093321979046, 0.025043634697794914, 0.007635126356035471, -0.0075849187560379505, 0.017582722008228302, -0.022863121703267097, -0.014590616337954998, -0.022448746487498283, -0.02958149090409279, -0.0038294994737952948, -0.013168593868613243, -0.055313076823949814, 0.04286283999681473, -0.04552994668483734, -0.013218582607805729, -0.002983815036714077, -0.004983874969184399, -0.04465198144316673, -0.028192220255732536, -0.054191019386053085, -0.0429786816239357, -0.05332426726818085, -0.021580612286925316, -0.007387995719909668, -0.01932756043970585, -0.024105755612254143, -0.054868102073669434, 0.011147026903927326, 0.004389636218547821, 0.0007495093741454184, -0.05494724214076996, -0.03887152671813965, 0.038499344140291214, -0.011777075938880444, 0.013967366889119148, 0.024437353014945984, 0.04305925592780113, 0.0034622966777533293, -0.0028393438551574945, -0.052373554557561874, 0.03053235448896885, 0.04331843927502632, 0.012402207590639591, 0.013392440043389797, -0.06812598556280136, 0.036438602954149246, 0.03193742781877518, 0.01163815800100565, -0.07044561952352524, 0.02608024701476097, 0.07030333578586578, 0.03063167817890644, 0.05815492942929268, -0.03251327574253082, 0.000713311426807195, -0.05994207412004471, -0.023989237844944, -0.013155623339116573, 0.0026386205572634935, 0.06162847578525543, -0.003143726382404566, 0.07167212665081024, 0.04951100051403046, -0.03499366343021393, -0.027426056563854218, -0.008208606392145157, -0.047929711639881134, -0.0007229941547848284, -0.05332227796316147, -0.04111754521727562, -0.01821731962263584, -0.06981836259365082, -0.04630443826317787, 0.03638239949941635, -0.009785130620002747, -0.013485853560268879, 0.026600399985909462, 0.019307941198349, -0.05870576202869415, 0.03459671884775162, -0.026561575010418892, 0.034712038934230804, -0.02759934961795807, -0.01597907394170761, -0.021743232384324074, 0.0038273376412689686, 0.013588367030024529, -0.016153542324900627, -0.022603310644626617, -0.028910435736179352, -0.03176470100879669, -0.03605356439948082, 0.011060710065066814, 0.04677237197756767, -0.005717671010643244, 0.045962799340486526 ]
[ -0.09261895716190338, -0.0460655651986599, -0.03445785865187645, -0.013840924017131329, 0.06238102912902832, -0.03644920140504837, -0.011780928820371628, -0.0014773934381082654, 0.013214175589382648, 0.03697563335299492, 0.0022346368059515953, -0.04235304147005081, -0.0025348488707095385, -0.027000486850738525, 0.06373193860054016, -0.00507322745397687, -0.017566947266459465, -0.05132971331477165, -0.085248664021492, 0.03827017918229103, 0.04466649517416954, -0.010813952423632145, -0.051620930433273315, -0.052750978618860245, -0.04214605316519737, 0.03638889268040657, 0.030040230602025986, -0.02454102225601673, -0.0014279265888035297, -0.17016753554344177, 0.007711958140134811, -0.07221006602048874, 0.017095599323511124, -0.005363848060369492, -0.0017556519014760852, -0.006544208154082298, 0.038788653910160065, -0.0007352681132033467, -0.019225407391786575, 0.028530435636639595, 0.05614514276385307, 0.03185445815324783, -0.0304073765873909, -0.02107333205640316, 0.01747635006904602, -0.05280778557062149, 0.009042328223586082, 0.009243584237992764, -0.03222445026040077, 0.017976658418774605, -0.03760666400194168, -0.013694881461560726, -0.0009745365823619068, -0.0782342478632927, 0.018228167667984962, 0.00600691931322217, 0.03977224603295326, 0.0754951611161232, 0.042842403054237366, 0.0013818815350532532, 0.011206005699932575, -0.007601520512253046, -0.1377304643392563, 0.12384536117315292, 0.00011423444811953232, 0.060045648366212845, -0.036972954869270325, -0.041065387427806854, 0.01779407262802124, 0.04695101082324982, -0.0331682488322258, -0.03435884043574333, -0.03585975617170334, 0.06377347558736801, 0.015945760533213615, -0.015033152885735035, -0.01637275703251362, 0.005847541615366936, 0.07056829333305359, -0.043708235025405884, -0.0610714890062809, -0.02964065596461296, -0.031185833737254143, 0.019472405314445496, 0.012813269160687923, 0.012706805020570755, 0.027897493913769722, 0.05246412381529808, 0.01823619194328785, 0.050455160439014435, 0.001158528495579958, -0.034915801137685776, 0.031636640429496765, 0.0156314205378294, -0.07367011904716492, -0.012978939339518547, -0.00047254690434783697, -0.005511692259460688, -0.06872524321079254, 0.3669544458389282, -0.03325100243091583, 0.0002717911556828767, -0.008550194092094898, 0.05085266754031181, 0.04669072851538658, -0.0011398443020880222, -0.011210264638066292, -0.03832761570811272, 0.003259956603869796, -0.023634500801563263, 0.028728650882840157, -0.01114500779658556, 0.044013429433107376, -0.10421179234981537, 0.0005733438883908093, 0.05648612976074219, 0.007806918118149042, 0.03250258043408394, 0.009877379052340984, 0.017741365358233452, 0.0376368947327137, -0.0188823901116848, 0.058446649461984634, 0.004031185060739517, 0.031119758263230324, 0.05311191827058792, 0.08502057194709778, 0.06987562030553818, 0.006013462785631418, 0.025091880932450294, 0.05408499762415886, -0.041642218828201294, -0.0702102929353714, -0.009196540340781212, 0.02118474431335926, 0.019650394096970558, 0.0007657576352357864, -0.0645461231470108, 0.039106689393520355, 0.023027706891298294, -0.006385044660419226, -0.0181293748319149, 0.004788154270499945, -0.03813639283180237, 0.008052036166191101, 0.10276162624359131, 0.0031575073953717947, -0.028585419058799744, -0.05329236760735512, -0.043418362736701965, -0.017530808225274086, 0.05997692793607712, 0.009145064279437065, -0.06748874485492706, 0.033611640334129333, 0.02966873161494732, 0.06968987733125687, 0.033973872661590576, -0.019754799082875252, -0.02774406224489212, -0.07112632691860199, -0.024135522544384003, -0.006141257006675005, 0.05165623128414154, 0.008515221998095512, -0.13699223101139069, -0.010667185299098492, 0.009222039021551609, -0.016808751970529556, -0.04621615260839462, -0.007108799647539854, 0.01964658312499523, -0.03402215242385864, -0.012325180694460869, 0.06445939093828201, -0.02756100706756115, -0.0409403070807457, 0.039429597556591034, 0.06603314727544785, 0.030154479667544365, -0.01309196650981903, -0.027691593393683434, -0.010115415789186954, -0.002805559430271387, -0.05201277881860733, -0.08762416243553162, -0.040398068726062775, 0.008502818644046783, -0.0006899650325067341, -0.0475807823240757, -0.030040519312024117, 0.012890310026705265, -0.03412918373942375, 0.07073811441659927, 0.011673266999423504, -0.027439555153250694, 0.01936991699039936, -0.02176598459482193, -0.008737118914723396, 0.0019000282045453787, 0.015016964636743069, 0.01407587993890047, -0.011708257719874382, 0.01186297181993723, -0.02996925823390484, 0.009845415130257607, 0.029958339408040047, -0.011997362598776817, 0.06102459877729416, 0.011866320855915546, -0.02923249825835228, 0.004868063144385815, -0.025096552446484566, -0.007010715547949076, -0.04101461172103882, -0.015846628695726395, -0.029142921790480614, 0.018375340849161148, -0.021063273772597313, 0.007304619997739792, -0.014097003266215324, 0.004757053218781948, 0.001199522870592773, -0.335539311170578, -0.029416531324386597, -0.04236435145139694, -0.008148111402988434, 0.017127517610788345, -0.06983321905136108, 0.006933062803000212, -0.005028647370636463, -0.00528623815625906, 0.01722286269068718, 0.13231676816940308, -0.027898050844669342, 0.040289461612701416, -0.0914471223950386, -0.006651985924690962, 0.014077452942728996, -0.05217825993895531, -0.04145029932260513, -0.016962828114628792, 0.08529669791460037, 0.03168664127588272, -0.018851393833756447, 0.024396128952503204, -0.0659266784787178, 0.0020843246020376682, -0.025430239737033844, 0.10314016789197922, -0.002642272738739848, 0.10830756276845932, -0.062097642570734024, 0.050943903625011444, -0.042433131486177444, 0.011370180174708366, -0.08365203440189362, -0.041686464101076126, -0.009673858992755413, 0.014917897991836071, 0.0017555031226947904, 0.04419214278459549, -0.00821224506944418, -0.056320421397686005, 0.04631926491856575, -0.02895984798669815, -0.0365276075899601, 0.0012232961598783731, 0.0007778165745548904, -0.014773441478610039, -0.009856073185801506, -0.028474435210227966, 0.004722229205071926, 0.01495450921356678, -0.008491529151797295, -0.018957320600748062, 0.0156294796615839, -0.021724944934248924, -0.013024941086769104, -0.053399406373500824, -0.02427537366747856, -0.03644559904932976, -0.019520243629813194, 0.00986797921359539, 0.06797286123037338, 0.024335060268640518, -0.03408977761864662, 0.030797874554991722, -0.005742261186242104, -0.011378682218492031, 0.02076607756316662, 0.02047470211982727, -0.04928671568632126, -0.0527062714099884, 0.11183971911668777, -0.0040686470456421375, 0.031187741085886955, 0.038286108523607254, 0.021806133911013603, -0.007555858232080936, -0.0018447504844516516, -0.008325102739036083, 0.0007224184810183942, 0.021723641082644463, -0.034595899283885956, 0.0220990888774395, -0.020795216783881187, 0.0020334285218268633, 0.04389805346727371, -0.060808535665273666, 0.010677964426577091, 0.04920905828475952, -0.00853479839861393, -0.02596483938395977, 0.010792359709739685, -0.0427151620388031, -0.03069906495511532, 0.07743924111127853, -0.006285041105002165, -0.24866750836372375, 0.02718023583292961, 0.03648468479514122, 0.05056404322385788, 0.002776461187750101, 0.015196292661130428, 0.03949988633394241, -0.05582365393638611, -0.010944118723273277, 0.005189310293644667, -0.013001580722630024, 0.05693730711936951, -0.012834757566452026, 0.041137807071208954, 0.07030284404754639, 0.03408180922269821, 0.02296234853565693, 0.026933489367365837, -0.014436338096857071, 0.0029530564788728952, 0.028790347278118134, 0.003044599201530218, 0.16110126674175262, 0.04421119764447212, 0.054877523332834244, 0.06949339061975479, 0.00864223763346672, -0.009955454617738724, 0.08847355842590332, 0.04737565293908119, 0.04132845252752304, 0.022598234936594963, 0.034839216619729996, 0.0029637215193361044, 0.03736105188727379, -0.09723786264657974, 0.010710815899074078, 0.041872311383485794, 0.020848296582698822, -0.03720567375421524, -0.05181165039539337, 0.02957000583410263, 0.01494254544377327, 0.0004019225889351219, 0.05659620463848114, -0.025773171335458755, -0.038934070616960526, -0.09176845103502274, -0.05827857926487923, 0.035581402480602264, -0.05607296898961067, -0.03616812825202942, 0.02332119829952717, 0.015619492158293724, 0.013087054714560509, 0.11071597784757614, 0.059653688222169876, -0.017137613147497177, -0.03616788610816002, 0.004092657472938299, 0.015488164499402046, -0.010302095673978329, 0.1132640391588211, 0.010778526775538921, 0.04234910383820534 ]
[ 0.013101628050208092, 0.03207094222307205, 0.015055377036333084, 0.01567666232585907, 0.023461846634745598, -0.012432120740413666, 0.004323797300457954, -0.003119654254987836, 0.0011332066496834159, -0.00138320482801646, -0.02096174657344818, 0.0031619698274880648, 0.0133089330047369, 0.009921104647219181, 0.044517021626234055, -0.025412408635020256, 0.014477184042334557, -0.05616665631532669, -0.0027732555754482746, -0.03742131590843201, -0.024088695645332336, 0.040072616189718246, 0.00698990048840642, 0.0434558279812336, -0.04989255592226982, -0.03265051543712616, -0.03783024102449417, 0.023471713066101074, 0.03826819732785225, -0.13233886659145355, 0.001612903201021254, -0.0539250411093235, -0.00605944637209177, -0.00861850380897522, 0.007868494838476181, 0.00141435326077044, 0.0072526102885603905, -0.051026493310928345, -0.007870754227042198, 0.0202617347240448, 0.06663329154253006, -0.04458671808242798, -0.013436163775622845, -0.025091424584388733, -0.013757153414189816, 0.009436572901904583, 0.008543315343558788, -0.00005955909364274703, 0.013586279936134815, 0.03198160231113434, -0.03245197609066963, -0.007153269834816456, -0.005245830398052931, -0.02943618781864643, 0.01821061037480831, 0.013210825622081757, -0.019115040078759193, -0.01632639579474926, 0.0013752669328823686, -0.07735647261142731, -0.012368982657790184, -0.03690512105822563, -0.012831778265535831, -0.018452458083629608, 0.0019031931878998876, -0.01628689095377922, -0.026301249861717224, -0.0017131519271060824, 0.016688918694853783, 0.021050751209259033, -0.01612665317952633, -0.01132368016988039, -0.010602250695228577, -0.003530381014570594, 0.0023445305414497852, -0.027340754866600037, 0.015167654491961002, -0.032796405255794525, -0.010682857595384121, 0.006669405847787857, -0.021765712648630142, -0.0011577330296859145, -0.009990106336772442, 0.05324398726224899, -0.02627461776137352, -0.030544623732566833, 0.01695459522306919, 0.0031644036062061787, 0.017249880358576775, -0.008335800841450691, -0.017796454951167107, 0.008630488067865372, 0.034261077642440796, 0.004336806014180183, -0.0876515805721283, 0.0277327261865139, 0.008199427276849747, 0.005689259618520737, -0.010362641885876656, 0.8124933838844299, 0.004391743801534176, -0.013630108907818794, 0.0073113045655190945, 0.03642849624156952, 0.04880450293421745, -0.0012946247588843107, -0.044906504452228546, 0.037607669830322266, 0.002375883748754859, -0.025414586067199707, 0.011331533081829548, -0.0139132896438241, 0.006434459239244461, 0.01954694651067257, 0.02559841051697731, 0.030428728088736534, 0.005545561667531729, 0.01320270262658596, -0.004962310194969177, 0.04260077327489853, 0.08076237887144089, 0.008937319740653038, 0.038307566195726395, -0.010516309179365635, 0.026465166360139847, -0.14972539246082306, 0.013224889524281025, -7.371252506253968e-33, 0.04776408150792122, -0.038345370441675186, -0.015995299443602562, 0.006512285675853491, 0.04922224208712578, 0.029530726373195648, -0.01597377099096775, 0.0374750941991806, 0.008633909747004509, -0.034240782260894775, -0.02547803893685341, -0.014990188181400299, -0.0057119387201964855, -0.014695661142468452, 0.009954516775906086, 0.0033483083825558424, -0.024663930758833885, 0.049620792269706726, 0.011798069812357426, 0.012577936053276062, 0.036500681191682816, 0.016532987356185913, -0.011151007376611233, 0.020770307630300522, 0.01100995671004057, 0.011164205148816109, 0.008621128275990486, -0.00814376026391983, 0.0060627879574894905, -0.03446338698267937, 0.011645573191344738, 0.011960681527853012, -0.001140170032158494, -0.04999317228794098, 0.009066970087587833, -0.060331616550683975, -0.06367365270853043, 0.020843341946601868, -0.04022391140460968, 0.0028505472000688314, -0.03723498806357384, -0.005364013835787773, -0.03441309183835983, -0.05222431197762489, -0.06633783876895905, -0.007933272048830986, 0.018720826134085655, 0.028588971123099327, 0.01455780491232872, 0.05288243666291237, 0.02462647669017315, -0.03565990552306175, 0.04525952413678169, -0.046054016798734665, 0.031546298414468765, 0.014729514718055725, -0.021496402099728584, -0.004429605323821306, 0.023132655769586563, -0.02566453069448471, -0.004495660774409771, -0.028510643169283867, -0.007183436304330826, 0.047675248235464096, -0.006266187876462936, -0.021925320848822594, 0.04040364548563957, 0.057000476866960526, 0.038482699543237686, -0.01666206866502762, -0.03789205104112625, 0.017023341730237007, -0.016375096514821053, -0.006961160805076361, 0.04093017801642418, -0.0564243383705616, 0.02200358547270298, -0.01808801293373108, -0.007184946443885565, 0.07430315017700195, 0.0007537408382631838, -0.013742068782448769, 0.029375575482845306, 0.006597266066819429, -0.04359780624508858, -0.016333796083927155, 0.03580697625875473, 0.00505896657705307, -0.023267943412065506, -0.01102753821760416, 0.00388870807364583, -0.011169536970555782, 0.014724942855536938, -0.030231153592467308, -0.0158181544393301, 7.608950688301681e-33, 0.007165337447077036, -0.026721449568867683, -0.012635431252419949, 0.004173567984253168, 0.024915440008044243, -0.04513382166624069, 0.04560454189777374, 0.02673499658703804, -0.01989567093551159, 0.0409313440322876, -0.009191271848976612, 0.013666964136064053, -0.04299383983016014, 0.009715506806969643, 0.04090758040547371, -0.031771812587976456, -0.004006176721304655, -0.017188843339681625, 0.03610178083181381, -0.01767069287598133, -0.012067535892128944, -0.014744346961379051, 0.021526703611016273, -0.0032680153381079435, 0.043516434729099274, 0.04269573464989662, 0.002545025898143649, -0.007205101195722818, 0.005032854154706001, -0.0016049069818109274, -0.04006705433130264, 0.010988423600792885, 0.023315440863370895, 0.0027123012114316225, -0.02607562579214573, -0.010780293494462967, 0.014875599183142185, 0.014630621299147606, -0.006040896754711866, -0.037434376776218414, 0.06138643994927406, 0.023659905418753624, 0.011809912510216236, -0.019468439742922783, -0.007826588116586208, 0.07559701055288315, -0.004802958574146032, 0.02310105413198471, -0.008430900983512402, 0.019776910543441772, -0.01764027401804924, -0.02256845124065876, 0.016958728432655334, 0.03578220680356026, 0.002251085126772523, -0.01015053316950798, 0.011494789272546768, 0.028313778340816498, -0.013934990391135216, 0.006198769900947809, -0.021380426362156868, -0.046692728996276855, 0.006539569236338139, 0.021991098299622536, -0.04240012168884277, 0.0029858280904591084, -0.05549939349293709, 0.0002417042851448059, 0.005539035424590111, 0.016384363174438477, 0.004255042411386967, -0.0335930660367012, -0.039011187851428986, 0.010960323736071587, -0.0033923748414963484, -0.005114203784614801, -0.012406524270772934, -0.01487453281879425, -0.05152342468500137, 0.010149195790290833, -0.004909282550215721, 0.013487648218870163, -0.01212646346539259, 0.00783200841397047, 0.004052740056067705, 0.06022195890545845, -0.023872559890151024, 0.008897814899682999, 0.017836052924394608, 0.03276420757174492, -0.04608456790447235, -0.013514862395823002, -0.021094292402267456, 0.0207249466329813, -0.0018018491100519896, -1.299180496516783e-8, -0.008346636779606342, 0.04590936005115509, -0.0020841348450630903, 0.04644426703453064, 0.012434436939656734, 0.02916833572089672, -0.027587933465838432, -0.015096278861165047, 0.01860855519771576, 0.010681048035621643, 0.045365504920482635, -0.0714685469865799, -0.01390930823981762, 0.010920137166976929, 0.02858732081949711, -0.03892973065376282, -0.00895425584167242, -0.013365860097110271, 0.022305646911263466, -0.004497872665524483, -0.0005655553541146219, 0.03331995755434036, -0.00006801750714657828, -0.020917721092700958, 0.005279766395688057, 0.018592316657304764, 0.005845278035849333, -0.08015145361423492, -0.018555352464318275, -0.025008471682667732, 0.007142893970012665, -0.031833384186029434, -0.02717296965420246, 0.03494824469089508, -0.033762119710445404, -0.0686725452542305, -0.04007113724946976, -0.025825820863246918, -0.0037200762890279293, 0.01572214625775814, 0.038902539759874344, 0.030689185485243797, 0.0077307033352553844, -0.025018692016601562, 0.002964816987514496, -0.016398612409830093, 0.005966212600469589, 0.02710183896124363, 0.027013881132006645, -0.017531484365463257, 0.012400730513036251, -0.03319685533642769, 0.013498472981154919, 0.02168440632522106, 0.05462685227394104, 0.02207013964653015, 0.04226846247911453, -0.07229504734277725, -0.02774805761873722, 0.028093108907341957, 0.05678356811404228, 0.014205808751285076, -0.023453565314412117, -0.02653639018535614 ]
aws-lambda-programatically-scheduling-a-cloudwatchevent
https://markhneedham.com/blog/2017/04/05/aws-lambda-programatically-scheduling-a-cloudwatchevent
false
2017-04-02 22:11:47
AWS Lambda: Programatically create a Python 'Hello World' function
[ "aws", "aws-lambda" ]
[ "Software Development" ]
I've been playing around with http://docs.aws.amazon.com/lambda/latest/dg/welcome.html[AWS Lambda] over the last couple of weeks and I wanted to automate the creation of these functions and all their surrounding config. Let's say we have the following +++<cite>+++Hello World+++</cite>+++ function: ~~~python def lambda_handler(event, context): print("Hello world") ~~~ To upload it to AWS we need to put it inside a zip file so let's do that: ~~~bash $ zip HelloWorld.zip HelloWorld.py ~~~ ~~~bash $ unzip -l HelloWorld.zip Archive: HelloWorld.zip Length Date Time Name -------- ---- ---- ---- 61 04-02-17 22:04 HelloWorld.py -------- ------- 61 1 file ~~~ Now we're ready to write a script to create our AWS lambda function. ~~~python import boto3 lambda_client = boto3.client('lambda') fn_name = "HelloWorld" fn_role = 'arn:aws:iam::[your-aws-id]:role/lambda_basic_execution' lambda_client.create_function( FunctionName=fn_name, Runtime='python2.7', Role=fn_role, Handler="\{0}.lambda_handler".format(fn_name), Code={'ZipFile': open("\{0}.zip".format(fn_name), 'rb').read(), }, ) ~~~ +++<cite>+++[your-aws-id]+++</cite>+++ needs to be replaced with the identifier of our AWS account. We can find that out be running http://stackoverflow.com/questions/33791069/quick-way-to-get-aws-account-number-from-the-cli-tools[the following command] against the AWS CLI: ~~~bash $ aws ec2 describe-security-groups --query 'SecurityGroups[0].OwnerId' --output text 123456789012 ~~~ Now we can create our function: ~~~bash $ python CreateHelloWorld.py ~~~ image::{{<siteurl>}}/uploads/2017/04/2017-04-02_23-07-38.png[2017 04 02 23 07 38,262] And if we test the function we'll get the expected output: image::{{<siteurl>}}/uploads/2017/04/2017-04-02_23-02-59.png[2017 04 02 23 02 59,376]
Learn how to programatically create a Python AWS Lambda function and all the surrounding config.
null
[ 0.025592613965272903, -0.020552199333906174, -0.032611116766929626, 0.003457471029832959, 0.08956459909677505, 0.03666093200445175, -0.009101444855332375, -0.0012000493006780744, -0.001211835304275155, 0.005780053790658712, -0.009994481690227985, 0.01519011240452528, -0.06277505308389664, -0.005968805402517319, -0.03796187788248062, 0.04799749702215195, 0.07149818539619446, 0.0054683685302734375, 0.012561734765768051, -0.015938572585582733, 0.0015363000566139817, 0.05353735014796257, -0.004780633375048637, 0.018291370943188667, -0.001756279612891376, 0.01935822144150734, -0.029957059770822525, 0.0022119609639048576, -0.05815954878926277, -0.012958650477230549, 0.04784252494573593, -0.027933556586503983, 0.006817462854087353, -0.03055649995803833, 0.016759857535362244, -0.010727438144385815, -0.027173273265361786, 0.0009328288724645972, -0.0019162176176905632, 0.042489245533943176, -0.04416557773947716, 0.05045625567436218, -0.019015640020370483, 0.016186218708753586, -0.04301333427429199, -0.002695628674700856, -0.04405912011861801, 0.010082964785397053, 0.004447359126061201, -0.02872605249285698, -0.0794096365571022, 0.03259918838739395, -0.031154634431004524, -0.02472822368144989, 0.017604146152734756, 0.05374069884419441, 0.031633161008358, -0.06957732886075974, 0.02554447390139103, -0.01703278161585331, 0.011015979573130608, 0.015725068747997284, 0.02630314603447914, 0.020014027133584023, 0.026940079405903816, -0.017349407076835632, -0.023536045104265213, 0.05110770836472511, -0.04473654925823212, 0.005109559278935194, 0.009452509693801403, 0.005090104416012764, -0.040018413215875626, -0.02626712992787361, -0.014436888508498669, -0.0452994704246521, -0.041879840195178986, 0.06976664066314697, 0.0204854104667902, 0.06549064069986343, 0.004512319806963205, -0.00218676938675344, 0.0072860862128436565, 0.0017989878542721272, 0.013891037553548813, -0.006322186905890703, -0.07268751412630081, -0.0020486568100750446, -0.012387031689286232, 0.05890604853630066, 0.03695971518754959, -0.06365665793418884, 0.011451519094407558, 0.008775785565376282, 0.0008301905472762883, 0.017905915156006813, -0.022339146584272385, 0.012980012223124504, 0.008722111582756042, 0.005262311082333326, -0.04868150129914284, -0.007728015072643757, -0.006328572053462267, -0.018931236118078232, -0.05776276811957359, -0.015986565500497818, -0.036413244903087616, -0.030872590839862823, 0.019980404525995255, 0.009675085544586182, -0.00029457014170475304, -0.008635898120701313, -0.05000291392207146, -0.013246174901723862, -0.09630489349365234, 0.0319189615547657, 0.019953202456235886, -0.025688156485557556, 0.005090781487524509, 0.006794918328523636, 0.06412284821271896, 0.033128660172224045, 0.0016034081345424056, 0.08942557871341705, 0.02771822176873684, 0.018788976594805717, 0.007856220938265324, 0.06890688836574554, -0.003922312520444393, -0.04769709333777428, -0.03202853724360466, 0.05845023691654205, 0.01744525134563446, 0.008563992567360401, -0.0016520897625014186, 0.017311833798885345, -0.04088585823774338, 0.021759483963251114, 0.07868631929159164, 0.02050965093076229, 0.009496856480836868, 0.005307422950863838, -0.006086528301239014, -0.025919124484062195, 0.019789107143878937, 0.024333810433745384, 0.02037026174366474, -0.044603101909160614, -0.039588723331689835, 0.009969557635486126, 0.019422581419348717, 0.02256624773144722, 0.043848901987075806, -0.022791991010308266, 0.029236234724521637, 0.06015005707740784, 0.05769868940114975, 0.02023264765739441, -0.01475588046014309, -0.005061487201601267, 0.04357151314616203, 0.020305607467889786, 0.0009283926920033991, 0.03380703181028366, -0.014852150343358517, -0.04250922054052353, 0.004708510357886553, 0.06057924032211304, 0.014541229233145714, -0.03308076784014702, -0.03454435244202614, -0.0319100059568882, 0.06302761286497116, -0.003240812337026, 0.014935691840946674, 0.011904691345989704, 0.10029366612434387, 0.000011807789633166976, 0.03655683621764183, -0.0024088267236948013, -0.06957483291625977, 0.059829339385032654, -0.007642424665391445, 0.03904164955019951, 0.07084956765174866, -0.0012396711390465498, 0.08410195261240005, 0.03314904496073723, 0.02613465115427971, 0.022553343325853348, -0.06919896602630615, -0.09377667307853699, -0.017076756805181503, -0.009987927041947842, 0.06077873334288597, -0.022266274318099022, -0.02045111544430256, 0.1075652465224266, 0.007962552830576897, 0.02861161343753338, -0.007370384410023689, -0.002021624706685543, -0.002974039176478982, -0.06261005252599716, -0.07225453853607178, 0.030552934855222702, 0.023492010310292244, -0.015550857409834862, -0.017317628487944603, 0.016545655205845833, -0.03466270864009857, 0.028073888272047043, 0.031314391642808914, -0.038526035845279694, 0.06513553857803345, 0.053668830543756485, 0.033933673053979874, -0.029790719971060753, 0.04177424684166908, -0.02512739598751068, 0.0564892403781414, 0.011742502450942993, 0.00023481059179175645, -0.016064368188381195, -0.004870824981480837, 0.10981913655996323, 0.0684107169508934, -0.013304534368216991, -0.0615241639316082, 0.014708184637129307, -0.002320451196283102, -0.045970749109983444, -0.024048760533332825, -0.023684553802013397, -0.03117949143052101, 0.005620964802801609, 0.0030279678758233786, -0.03738061338663101, -0.011439514346420765, -0.013436895795166492, 0.012384421192109585, 0.07008269429206848, -0.016601696610450745, 0.041532568633556366, 0.002767311641946435, -0.008374419994652271, -0.015600286424160004, -0.03177519515156746, -0.0429530143737793, -0.008283871226012707, 0.014448176138103008, -0.010292692109942436, 0.048251379281282425, -0.04758215695619583, -0.043691858649253845, -0.02002338133752346, -0.05533997341990471, 0.04085724055767059, 0.041103869676589966, 0.05578276142477989, -0.025560012087225914, 0.049887776374816895, -0.06030486524105072, 0.024827681481838226, -0.029407335445284843, -0.038975827395915985, -0.05109325423836708, -0.007873944006860256, -0.002538252854719758, 0.007326880469918251, 0.015738874673843384, 0.03430605307221413, 0.02719890885055065, -0.021854864433407784, 0.030309736728668213, -0.00347818061709404, 0.048073336482048035, -0.031307440251111984, -0.027396226301789284, -0.048405468463897705, 0.0007670011837035418, 0.05562564730644226, -0.029063528403639793, -0.03749239072203636, -0.015328114852309227, -0.0358564555644989, 0.036142077296972275, -0.10552484542131424, -0.026621730998158455, -0.028802523389458656, 0.014033075422048569, 0.028729278594255447, 0.013925999402999878, 0.0311276838183403, 0.0648326650261879, 0.01010146364569664, -0.025790084153413773, -0.0011109299957752228, 0.028879649937152863, 0.021446285769343376, 0.0025856264401227236, 0.008772119879722595, -0.009426848962903023, -0.0010251605417579412, -0.034753382205963135, -0.03920595720410347, -0.012633567675948143, -0.035014763474464417, -0.27692076563835144, 0.053889237344264984, -0.012853397987782955, -0.02136465162038803, 0.022217247635126114, -0.030178479850292206, 0.0028687219601124525, -0.029689274728298187, -0.016991138458251953, 0.020895354449748993, -0.04335211217403412, -0.0180203914642334, -0.0007627583108842373, 0.03810391202569008, -0.013337252661585808, 0.045856792479753494, -0.04323654621839523, -0.03460806980729103, -0.01177989412099123, -0.001998389605432749, -0.030269110575318336, -0.05179847031831741, 0.014004036784172058, 0.021116575226187706, 0.029106490314006805, 0.029881006106734276, -0.049069639295339584, 0.03513302281498909, -0.04253952577710152, -0.03489259257912636, 0.02099882997572422, -0.04324156790971756, 0.0007448502583429217, 0.01023639552295208, 0.00214460794813931, -0.03510918840765953, 0.007425285410135984, 0.006506170611828566, -0.004514829255640507, 0.01117235329002142, -0.04021656513214111, -0.06166871637105942, -0.012472143396735191, 0.0005763788358308375, 0.07475262135267258, 0.005475135985761881, -0.04998410865664482, -0.04417703300714493, -0.05704953894019127, 0.10177387297153473, -0.023051543161273003, -0.04724358767271042, -0.03579850122332573, 0.032049521803855896, 0.0025166068226099014, -0.0004785764904227108, -0.027169425040483475, 0.01274180319160223, 0.0012035926338285208, -0.03963739424943924, 0.012124190106987953, -0.04856737703084946, 0.02832213044166565, -0.06289739161729813, -0.00004674004594562575, -0.02992037683725357, -0.05929572507739067, -0.04140067100524902, 0.056698065251111984, 0.053323257714509964, -0.0026820003986358643, 0.004156367853283882, -0.03859739750623703, -0.0976446270942688, -0.00048612707178108394, -0.06989694386720657, -0.008383621461689472, -0.027656326070427895, -0.018053190782666206, 0.05187137797474861, -0.05071786046028137, -0.06275878846645355, 0.01741105318069458, -0.020998116582632065, 0.011199808679521084, -0.018032662570476532, 0.011671487241983414, -0.010607926174998283, -0.021164994686841965, -0.04104147478938103, 0.050551820546388626, -0.0533602312207222, -0.03668848052620888, -0.012462631799280643, 0.005992505233734846, 0.021343016996979713, 0.030273977667093277, 0.013999014161527157, -0.011248750612139702, 0.02863454818725586, 0.03304725140333176, -0.04884297028183937, -0.005935806781053543, -0.055132247507572174, 0.03303147107362747, -0.0057167974300682545, -0.04648153483867645, 0.0011736956657841802, 0.04230659455060959, 0.0019504487281665206, -0.028209106996655464, -0.011395150795578957, 0.026499399915337563, -0.08033410459756851, -0.04083674028515816, 0.011358247138559818, 0.005105745978653431, 0.0015035439282655716, 0.024097369983792305, -0.0076166316866874695, -0.06936641037464142, 0.04255780577659607, 0.02842915989458561, -0.015094534493982792, -0.04765748232603073, -0.037831664085388184, 0.013616601936519146, -0.0066174850799143314, 0.0298882145434618, -0.018261633813381195, 0.001535993185825646, 0.02555348351597786, 0.02294081822037697, -0.010640611872076988, 0.005216740537434816, -0.018717313185334206, -0.024228792637586594, -0.03447580710053444, 0.005670375190675259, 0.006613696925342083, -0.021562522277235985, -0.00621577026322484, -0.03189108520746231, 0.0295427106320858, 0.06492656469345093, 0.018859677016735077, 0.03371700644493103, 0.004675905220210552, 0.011277632787823677, 0.011429404839873314, 0.018529769033193588, -0.04496656730771065, -0.003235140349715948, -0.04792181774973869, -0.033682383596897125, 0.00400316808372736, 0.0667932853102684, -0.019662650302052498, -0.004321248270571232, -0.009747111238539219, 0.010424794629216194, -0.03553251177072525, 0.023190610110759735, -0.011723916046321392, 0.0012198338517919183, 0.03833816200494766, 0.009393787942826748, 0.021019013598561287, -0.004321860149502754, 0.002094930736348033, 0.008665498346090317, 0.03637657314538956, -0.017711414024233818, 0.00007960055518196896, -0.02569587156176567, 0.002670286688953638, 0.035088568925857544, 0.027945606037974358, -0.01973697729408741, -0.0038012659642845392, 0.018261849880218506, -0.01927337981760502, 0.015544330701231956, -0.009200937114655972, 0.03638509660959244, 0.04767189174890518, 0.007910004816949368, 0.0018186209490522742, -0.032387085258960724, -0.03164231404662132, -0.018429605290293694, 0.007253227289766073, -0.018644751980900764, 0.0018293899483978748, -0.011197495274245739, -0.06678284704685211, 0.042160045355558395, 0.03471747040748596, -0.021557793021202087, 0.01401882991194725, -0.029667753726243973, 0.013772440142929554, -0.05198042467236519, 0.023052869364619255, 0.057629410177469254, -0.05331838130950928, 0.010190973058342934, -0.02338271401822567, 0.038345254957675934, 0.009786645881831646, 0.024904096499085426, -0.03645893931388855, -0.021701587364077568, -0.01477899681776762, 0.020897123962640762, 0.0015589441172778606, -0.04656291380524635, 0.008933868259191513, 0.011134162545204163, -0.002015511505305767, 0.0012907161144539714, 0.02198268100619316, 0.02275063283741474, -0.013216935098171234, -0.02779695950448513, 0.03254812955856323, -0.03275865688920021, -0.00928846001625061, 0.017642036080360413, 0.002239396097138524, 0.005306747276335955, -0.04749308153986931, 0.012499170377850533, 0.01732943020761013, -0.008254368789494038, -0.023669028654694557, -0.06264756619930267, 0.019719908013939857, -0.04454844817519188, 0.054073549807071686, -0.0069738044403493404, 0.024349002167582512, -0.042229633778333664, 0.003739616135135293, -0.04487296938896179, -0.010791946202516556, -0.020361403003335, 0.010086619295179844, -0.009246587753295898, 0.06488995999097824, -0.00959575455635786, 0.046123456209897995, -0.011823215521872044, -0.02808964252471924, 0.05347451940178871, -0.023338478058576584, -0.04430900514125824, 0.018117181956768036, -0.04286152496933937, 0.028770729899406433, 0.021932421252131462, 0.02449757792055607, -0.07593289017677307, 0.038049861788749695, 0.04625460132956505, 0.03863606974482536, 0.021812280640006065, -0.0011370975989848375, 0.006281028036028147, -0.01889820396900177, 0.0026936389040201902, -0.0768282562494278, 0.017830440774559975, 0.032381925731897354, 0.0329107940196991, -0.012142196297645569, 0.004497905261814594, -0.03433259204030037, 0.07004527002573013, -0.05174827575683594, -0.010772056877613068, 0.07271916419267654, -0.016867367550730705, 0.019579021260142326, 0.021088911220431328, -0.062314894050359726, 0.03332355618476868, 0.0403965525329113, -0.029197849333286285, 0.014762108214199543, -0.019330443814396858, 0.050844915211200714, -0.005489290691912174, 0.016832944005727768, -0.008751518093049526, -0.049548231065273285, 0.0891411304473877, 0.0040120831690728664, -0.0278586708009243, 0.03356479853391647, 0.00743875652551651, 0.011923662386834621, 0.011541609652340412, 0.014163865707814693, -0.0024962415918707848, 0.027197888121008873, -0.024937773123383522, -0.03532201796770096, 0.0360221266746521, 0.020373038947582245, -0.01584857888519764, -0.041031401604413986, 0.051302988082170486, 0.01521984115242958, -0.034706372767686844, -0.05768003314733505, 0.02767530269920826, -0.053302258253097534, -0.00432100472971797, -0.023441540077328682, -0.03635274991393089, -0.05543575435876846, 0.03346947580575943, -0.0018374973442405462, 0.002570059150457382, 0.07496386021375656, -0.01347501203417778, 0.01026839017868042, 0.04486527666449547, 0.039787981659173965, 0.08482182770967484, 0.059919554740190506, 0.0225224606692791, 0.025548094883561134, -0.009698019362986088, -0.04344400018453598, -0.006312028970569372, -0.004290180280804634, 0.004137134645134211, 0.002792898565530777, 0.018985603004693985, 0.07662435621023178, 0.007412191014736891, 0.06574572622776031, -0.016489624977111816, -0.00277286721393466, -0.04007318988442421, 0.027983009815216064, 0.030822033062577248, 0.03505127876996994, 0.023843741044402122, 0.05165526270866394, -0.0021682276856154203, -0.044418446719646454, 0.04254072904586792, -0.019018858671188354, -0.006064464338123798, 0.041663315147161484, -0.006176555063575506, -0.0018787541193887591, 0.020828312262892723, 0.054050177335739136, 0.07879795879125595, 0.007271618116647005, -0.011216463521122932, 0.024645213037729263, 0.020749859511852264, -0.006404836196452379, 0.013157953508198261, -0.04162830859422684, -0.02915532886981964, -0.027400629594922066, -0.037442371249198914, -0.026580676436424255, -0.00341073889285326, -0.035217445343732834, 0.0350937694311142, -0.02492060698568821, -0.0188091229647398, 0.010076301172375679, 0.006260409019887447, -0.025435086339712143, -0.01563042588531971, -0.0556044727563858, -0.022237541154026985, -0.05274765565991402, -0.02925618179142475, -0.018405376002192497, -0.0049729738384485245, -0.037489112466573715, -0.026147404685616493, -0.011485574766993523, 0.02117377333343029, 0.004840933717787266, -0.04048477113246918, -0.019651886075735092, 0.022906646132469177, -0.006604806520044804, 0.018406575545668602, 0.017127126455307007, 0.028182147070765495, 0.010378208011388779, -0.011764993891119957, -0.011302796192467213, 0.02310248650610447, 0.03671298176050186, 0.013332544825971127, 0.016216685995459557, -0.07930085062980652, 0.029384765774011612, 0.04816760867834091, 0.023595131933689117, -0.07963000237941742, 0.009057234972715378, 0.08143637329339981, 0.020398613065481186, 0.03838750720024109, -0.03194206580519676, 0.005636462010443211, -0.0432518795132637, -0.028431326150894165, -0.013664967380464077, 0.00997916143387556, 0.050582896918058395, -0.00968001689761877, 0.0995589941740036, 0.02460189163684845, -0.029944192618131638, -0.024082912132143974, -0.014301938004791737, -0.025045504793524742, 0.024433845654129982, -0.06863532960414886, -0.02556466870009899, -0.024908972904086113, -0.054482754319906235, -0.021261675283312798, 0.015462757088243961, -0.03993387147784233, -0.008785159327089787, -0.0008242222247645259, 0.01871117576956749, -0.04843655228614807, 0.041978996247053146, -0.01935395412147045, 0.031452346593141556, -0.04069644212722778, -0.024203531444072723, -0.021204110234975815, 0.0257889237254858, 0.017167696729302406, -0.005472761578857899, -0.009480160661041737, -0.02180851809680462, -0.04068407788872719, -0.048361554741859436, 0.014181873761117458, 0.05148082599043846, -0.020888658240437508, 0.05808502808213234 ]
[ -0.08966155350208282, -0.03956446796655655, -0.044848524034023285, -0.013901113532483578, 0.0715382844209671, -0.05445190146565437, -0.005972759798169136, -0.00010570353333605453, 0.004218054935336113, 0.026973405852913857, 0.013767502270638943, -0.06755751371383667, 0.015172223560512066, -0.06515910476446152, 0.07112877815961838, -0.0027534652035683393, 0.0011756359599530697, -0.045559339225292206, -0.09551826864480972, 0.03719504922628403, 0.025505900382995605, -0.0057638646103441715, -0.038546014577150345, -0.05050118640065193, -0.04739534854888916, 0.03609248995780945, 0.024698439985513687, -0.014596400782465935, -0.008619810454547405, -0.1818515509366989, 0.01594790816307068, -0.04506482928991318, 0.008938825689256191, -0.006056532263755798, 0.01166430301964283, 0.018094060942530632, 0.044978849589824677, -0.018576903268694878, -0.008776718750596046, 0.030170999467372894, 0.06778779625892639, 0.012728936970233917, -0.043305739760398865, -0.009435780346393585, 0.016098391264677048, -0.02846345864236355, -0.0009149707038886845, -0.0019549501594156027, -0.03626171499490738, 0.0262677650898695, -0.05730316415429115, -0.001988294068723917, -0.01824885793030262, -0.054806165397167206, 0.011925846338272095, 0.012403818778693676, 0.04493670165538788, 0.06772294640541077, 0.02299029752612114, 0.003841585712507367, 0.009063741192221642, -0.010107706300914288, -0.15682654082775116, 0.12290018051862717, 0.029896443709731102, 0.07562316954135895, -0.05831511318683624, -0.04340223968029022, -0.0024807467125356197, 0.05130431428551674, -0.043576885014772415, -0.045844946056604385, -0.060191184282302856, 0.07853500545024872, 0.017240263521671295, 0.0023800840135663748, -0.00562913715839386, 0.0005114467930980027, 0.06976684927940369, -0.04977651312947273, -0.05563301593065262, -0.02235249988734722, -0.033973559737205505, 0.010464763268828392, -0.009285331703722477, 0.0010937188053503633, 0.029888182878494263, 0.06034943833947182, 0.017369002103805542, 0.006427640561014414, 0.005766741931438446, -0.04972183704376221, 0.04131969064474106, 0.03759216144680977, -0.08596470206975937, -0.0015651962021365762, 0.0010485921520739794, -0.0030414205975830555, -0.056962285190820694, 0.39374443888664246, -0.033785540610551834, -0.006491089705377817, 0.0020915272179991007, 0.007650785613805056, 0.03075508587062359, 0.007474185898900032, -0.01116203423589468, -0.030899493023753166, 0.020258251577615738, -0.0412302240729332, 0.006841498427093029, 0.0016332641243934631, 0.04782557860016823, -0.07561792433261871, 0.0010904184309765697, 0.056801773607730865, -0.015133346430957317, 0.029040522873401642, -0.013600634410977364, 0.0032859304919838905, 0.009007280692458153, -0.0008404118707403541, 0.040424808859825134, 0.02886262722313404, 0.018630631268024445, 0.04844233766198158, 0.07412801682949066, 0.04898615926504135, 0.01365208812057972, 0.03782234713435173, 0.035390038043260574, -0.03997712954878807, -0.04704528674483299, -0.01733507588505745, 0.01378774456679821, 0.03761088848114014, 0.0007465341477654874, -0.04109399765729904, 0.009510965086519718, 0.04609016701579094, 0.008060123771429062, -0.010407160967588425, -0.008116845972836018, -0.016031134873628616, -0.012242352589964867, 0.11194264143705368, -0.01398119144141674, -0.010079821571707726, -0.05096493661403656, -0.06076560541987419, 0.001228495966643095, 0.06249444931745529, 0.028528908267617226, -0.05779144540429115, 0.029368143528699875, -0.0035373952705413103, 0.07360659539699554, 0.02854941226541996, -0.04120462387800217, -0.002940733451396227, -0.029090983793139458, -0.05011802539229393, -0.02088901959359646, 0.06917109340429306, 0.007765468209981918, -0.12389042973518372, -0.007895654067397118, -0.008581820875406265, 0.0021575239952653646, -0.026735039427876472, 0.016376571729779243, 0.006604798138141632, -0.014732063747942448, -0.00028797134291380644, 0.051623839884996414, -0.03132081776857376, -0.025465693324804306, 0.033233642578125, 0.056315526366233826, 0.02188798412680626, -0.03524493798613548, -0.019199233502149582, -0.033768463879823685, -0.018251171335577965, -0.05139487236738205, -0.10473145544528961, -0.07529277354478836, 0.010393510572612286, -0.02805629000067711, -0.037019386887550354, -0.034432802349328995, 0.056730855256319046, -0.021473506465554237, 0.057674724608659744, 0.005527080036699772, -0.011561363935470581, 0.0034018123988062143, -0.00723819388076663, -0.007933501154184341, -0.01588776521384716, 0.033052340149879456, 0.052743613719940186, -0.006242536008358002, 0.011230751872062683, -0.04525888338685036, 0.004477800335735083, 0.053078580647706985, -0.02771541103720665, 0.05699057877063751, 0.014184098690748215, -0.01771255023777485, 0.008898351341485977, -0.015371469780802727, 0.010342303663492203, -0.027118351310491562, -0.013589047826826572, -0.009571002796292305, 0.0032709105871617794, 0.013686275109648705, 0.006128566339612007, -0.040464043617248535, -0.03324705362319946, -0.0060167377814650536, -0.3414163291454315, -0.011518443934619427, -0.0383603498339653, -0.01659362204372883, 0.012759150937199593, -0.07317962497472763, 0.03280952200293541, 0.015663666650652885, 0.0009138384484685957, 0.034361034631729126, 0.11391961574554443, -0.03397414833307266, 0.040073882788419724, -0.058637965470552444, -0.005044100806117058, 0.021322231739759445, -0.029095010831952095, -0.04699299857020378, -0.0062330360524356365, 0.08672184497117996, 0.007037098053842783, -0.011092795059084892, 0.006363013293594122, -0.030544739216566086, 0.004029489122331142, -0.025180742144584656, 0.1130128875374794, 0.004547605291008949, 0.10243063420057297, -0.05219271034002304, 0.055866435170173645, -0.0017786723328754306, 0.022169169038534164, -0.10778436809778214, -0.018365591764450073, -0.02043941430747509, -0.0060487170703709126, 0.012093622237443924, 0.04374895244836807, -0.002940935781225562, -0.03545426204800606, 0.033906832337379456, -0.028513655066490173, -0.022867053747177124, 0.013806015253067017, -0.006378602236509323, -0.04759825021028519, -0.013763584196567535, -0.034281425178050995, 0.019729986786842346, 0.0014137709513306618, 0.023288847878575325, -0.01350595522671938, 0.0044416701421141624, 0.01160375028848648, -0.011653549037873745, -0.04716799408197403, -0.02978365123271942, -0.00732993520796299, -0.0226261168718338, 0.028740450739860535, 0.02864796854555607, 0.03759061172604561, -0.03570661321282387, -0.003706233575940132, -0.023576421663165092, -0.018909292295575142, 0.03558770567178726, 0.021297985687851906, -0.053769707679748535, -0.04167703166604042, 0.09643195569515228, 0.0004963930696249008, 0.05326194688677788, 0.008204716257750988, 0.038831453770399094, -0.0019611662719398737, -0.0009292628965340555, 0.002588483504951, -0.01717556267976761, 0.038994431495666504, -0.025276491418480873, 0.03473038971424103, -0.04778224602341652, 0.016134921461343765, 0.0657934844493866, -0.04555584490299225, 0.003547956235706806, 0.059674061834812164, -0.005700209643691778, -0.02388598397374153, -0.022806808352470398, -0.027205834165215492, -0.04763523489236832, 0.06780625879764557, 0.009667671285569668, -0.2574205696582794, 0.026117488741874695, 0.032723404467105865, 0.05028683692216873, -0.01620958000421524, 0.022143954411149025, 0.061049893498420715, -0.058125562965869904, 0.012963436543941498, 0.00008576858090236783, -0.009395218454301357, 0.050892628729343414, 0.0058525255881249905, 0.017741156741976738, 0.05282779037952423, 0.00785806868225336, 0.03104155883193016, 0.031719546765089035, -0.006439952179789543, 0.02557077258825302, 0.005580505356192589, -0.0016276069218292832, 0.16816113889217377, 0.03798174858093262, 0.02976394258439541, 0.05454035475850105, -0.0011324442457407713, 0.03317969664931297, 0.06931249052286148, 0.03876785188913345, 0.06041000410914421, 0.02540511265397072, 0.02789113111793995, -0.006889410316944122, 0.019823439419269562, -0.08381639420986176, 0.009903469122946262, 0.028020838275551796, 0.031093057245016098, -0.04147981107234955, -0.048776645213365555, 0.008849743753671646, -0.0024331109598279, 0.0207096878439188, 0.027082132175564766, -0.03276350349187851, -0.009599143639206886, -0.07504459470510483, -0.04966792091727257, 0.0077682905830442905, -0.05686634033918381, -0.013049837201833725, -0.007940417155623436, 0.003250405192375183, 0.04307619854807854, 0.0816514790058136, 0.04640109837055206, -0.027408482506871223, -0.047338325530290604, -0.004548290744423866, -0.00043849830399267375, -0.035965532064437866, 0.12013303488492966, 0.014923897571861744, 0.03423681482672691 ]
[ -0.01994447596371174, 0.05218549072742462, -0.03419573977589607, 0.058362651616334915, 0.014193392358720303, 0.005066272336989641, 0.023613110184669495, 0.016083156690001488, 0.01671765185892582, 0.011556870304048061, -0.0015610776608809829, 0.024422381073236465, 0.044338684529066086, 0.023946382105350494, 0.02903641387820244, -0.03359851613640785, -0.03146689757704735, -0.025617415085434914, -0.002820838475599885, -0.026183346286416054, -0.04457160457968712, 0.05720023065805435, 0.019182782620191574, 0.012989149428904057, -0.03362848237156868, -0.01784922368824482, -0.06547605246305466, 0.011641094461083412, 0.039688389748334885, -0.11899702250957489, 0.01190156675875187, -0.008934992365539074, 0.04257206618785858, -0.02788732573390007, 0.012906217016279697, 0.022156288847327232, 0.021149907261133194, -0.02386924996972084, -0.0049601043574512005, 0.04076439514756203, 0.0495450459420681, -0.009410565719008446, -0.00552816828712821, -0.02635062485933304, -0.034718528389930725, 0.018718888983130455, 0.017426924780011177, 0.027130456641316414, -0.002629860769957304, 0.029961859807372093, -0.0343068428337574, 0.026049500331282616, -0.014947080984711647, -0.0026896519120782614, 0.0008412844617851079, -0.0034994096495211124, -0.010626562871038914, -0.035756178200244904, -0.013478879816830158, -0.07676412165164948, -0.016428761184215546, -0.023419039323925972, -0.021944191306829453, -0.002071024151518941, 0.003776028286665678, 0.0005504398141056299, -0.023579150438308716, -0.012120896950364113, -0.0009137606248259544, -0.0002829534641932696, 0.011952011846005917, -0.010881738737225533, -0.0685199499130249, -0.004333232529461384, 0.0032460337970405817, 0.0041822888888418674, 0.042373739182949066, -0.0061405012384057045, -0.0065301223658025265, 0.023004645481705666, -0.048596132546663284, 0.0013396353460848331, -0.0031419259030371904, 0.020485972985625267, -0.04925848916172981, -0.019579676911234856, -0.010582120157778263, -0.023175381124019623, -0.016099484637379646, -0.020013142377138138, 0.013151142746210098, 0.004807423800230026, 0.022156815975904465, 0.014559602364897728, -0.0747973620891571, 0.04355520382523537, 0.011249926872551441, 0.012571580708026886, -0.0379493273794651, 0.8099011778831482, 0.007173077203333378, 0.009697348810732365, 0.014895339496433735, 0.0029961452819406986, 0.05048337206244469, -0.017843106761574745, -0.006034186575561762, 0.011509107425808907, 0.000694471294991672, -0.006842000875622034, 0.023581622168421745, -0.03288732469081879, 0.04781797528266907, 0.02607940137386322, 0.04477864131331444, 0.025215517729520798, -0.00430533429607749, 0.011274116113781929, 0.01785665936768055, 0.05011468753218651, 0.06901925802230835, 0.002632677089422941, 0.01557352114468813, -0.01132122054696083, 0.02593117766082287, -0.15013152360916138, 0.008492306806147099, -7.087337559751769e-33, 0.04897705838084221, -0.04424264654517174, 0.022596219554543495, 0.03581830486655235, 0.04042894393205643, 0.031113669276237488, -0.00862639769911766, 0.011909699998795986, 0.007918094284832478, -0.015224373899400234, -0.013821601867675781, 0.0030452082864940166, -0.004129661247134209, -0.006304250564426184, 0.002163655823096633, -0.0015613315626978874, -0.018811693415045738, 0.030914587900042534, 0.013503145426511765, 0.02584896981716156, 0.026798145845532417, 0.005724194925278425, 0.01402353961020708, 0.002107522450387478, 0.046182967722415924, 0.01949339546263218, 0.011181577108800411, -0.024877114221453667, 0.00533724669367075, -0.03299617022275925, -0.01872921921312809, 0.030405979603528976, -0.010684343986213207, -0.06229907274246216, -0.015385419130325317, -0.0586286298930645, -0.03074650466442108, 0.024630654603242874, -0.05889863148331642, -0.012756623327732086, -0.03909657895565033, -0.003369277575984597, -0.043645214289426804, -0.004997436888515949, -0.044609978795051575, -0.020222440361976624, 0.011109176091849804, 0.04434850811958313, 0.018288269639015198, 0.05419650301337242, 0.017469806596636772, -0.015209625475108624, 0.04664268344640732, -0.015736335888504982, 0.018482908606529236, 0.022671042010188103, -0.01032669935375452, -0.015511821024119854, 0.001681555644609034, -0.02100694552063942, -0.0020603653974831104, -0.01114304456859827, -0.004229032434523106, 0.024766186252236366, 0.04255380108952522, -0.029865220189094543, 0.028785770758986473, 0.062014270573854446, 0.038451943546533585, 0.005337145179510117, -0.022778011858463287, 0.028360432013869286, -0.004548451863229275, -0.028667183592915535, 0.028679292649030685, -0.07085761427879333, 0.03142043203115463, -0.020570995286107063, 0.016570143401622772, 0.0533689484000206, 0.024002952501177788, -0.006573253311216831, 0.00499177910387516, 0.014377306215465069, -0.05462152138352394, -0.016100764274597168, 0.041342321783304214, 0.03893859311938286, -0.0073855058290064335, -0.04743581637740135, 0.025394264608621597, 0.008633493445813656, -0.004789518658071756, -0.0689975842833519, -0.015606597065925598, 7.97916308320156e-33, 0.013061168603599072, -0.03881217539310455, -0.02236439660191536, -0.0020774132572114468, 0.026672594249248505, -0.025642486289143562, 0.03945055231451988, 0.018777398392558098, -0.04896833747625351, 0.03654835373163223, -0.020527778193354607, -0.01393275149166584, -0.027004292234778404, 0.006374800577759743, 0.0672997236251831, -0.004976082593202591, -0.014551123604178429, -0.044006478041410446, 0.04784979298710823, -0.019087163731455803, -0.015135443769395351, -0.02520090900361538, -0.0016484067309647799, 0.0333930067718029, 0.03258911520242691, 0.014518278650939465, -0.03406566008925438, 0.0020617309492081404, 0.0131760835647583, -0.005348105914890766, -0.03013564459979534, 0.02452332340180874, -0.004465135280042887, 0.007048198953270912, -0.0508212074637413, -0.006967515219002962, -0.004804289899766445, 0.030069898813962936, 0.008514120243489742, -0.05722055584192276, 0.047159064561128616, -0.0002830722078215331, -0.014987711794674397, -0.022445429116487503, 0.023208510130643845, 0.04091200605034828, -0.020761771127581596, 0.011436732485890388, -0.005269219633191824, 0.012916205450892448, -0.04390289634466171, 0.014853861182928085, -0.009847315959632397, 0.037807486951351166, 0.022177739068865776, -0.02025330811738968, -0.0188420582562685, 0.013449403457343578, -0.03129652142524719, 0.009850114583969116, -0.007495585363358259, 0.012904408387839794, 0.005392998922616243, 0.004516213200986385, -0.06162123382091522, -0.03950788080692291, -0.04656776413321495, -0.012091492302715778, 0.017425913363695145, 0.016215190291404724, 0.0020390029530972242, -0.04984164610505104, -0.009147271513938904, -0.02156216837465763, 0.009874521754682064, 0.020191026851534843, 0.00901734083890915, -0.010419516824185848, -0.016067679971456528, 0.017925988882780075, 0.012136772274971008, 0.010280872695147991, -0.004689238034188747, 0.021521981805562973, -0.01671008951961994, 0.02030797302722931, -0.012035086750984192, 0.0035549700260162354, 0.02949344925582409, 0.019619619473814964, -0.05853545293211937, -0.04104393348097801, -0.01644783280789852, 0.013541466556489468, -0.017791209742426872, -1.3003115917342711e-8, -0.03777090087532997, 0.03360263258218765, 0.002670076210051775, 0.05164457857608795, 0.014351210556924343, 0.04807412996888161, -0.0490853413939476, -0.002992156893014908, -0.016921240836381912, -0.008969667367637157, 0.04471586272120476, -0.05822010338306427, -0.006911031901836395, 0.043532632291316986, 0.021887538954615593, -0.01373398955911398, 0.010828308761119843, -0.019865503534674644, 0.03684307634830475, -0.012832967564463615, 0.007022598758339882, 0.07301060110330582, 0.0033435423392802477, -0.012441745027899742, -0.0025182461831718683, 0.017781702801585197, -0.018613755702972412, -0.07622823864221573, -0.004993329290300608, -0.01339852623641491, 0.004862251225858927, -0.03927309438586235, -0.038549937307834625, 0.003895329777151346, -0.0311906635761261, -0.04524558037519455, -0.016188543289899826, -0.011666204780340195, -0.0036683680955320597, -0.0104439752176404, 0.03610110282897949, 0.024849608540534973, -0.025966396555304527, -0.040556102991104126, -0.016725551337003708, -0.03022383712232113, 0.008605368435382843, 0.030516430735588074, 0.0009515054407529533, -0.019145024940371513, 0.01604403369128704, -0.04192010313272476, 0.003914105240255594, 0.02764992229640484, 0.04398265480995178, 0.030675014480948448, 0.017637670040130615, -0.046255894005298615, -0.03520071506500244, 0.03998009115457535, 0.009567931294441223, 0.0014680702006444335, -0.01619611121714115, -0.015077397227287292 ]
aws-lambda-programatically-create-a-python-hello-world-function
https://markhneedham.com/blog/2017/04/02/aws-lambda-programatically-create-a-python-hello-world-function
false
2017-04-27 20:59:56
Python: Flask - Generating a static HTML page
[ "python" ]
[ "Python" ]
Whenever I need to quickly spin up a web application Python's http://flask.pocoo.org[Flask] library is my go to tool but I recently found myself wanting to generate a static HTML to upload to S3 and wondered if I could use it for that as well. It's actually not too tricky. If we're in http://stackoverflow.com/questions/31830663/how-to-render-template-in-flask-without-using-request-context[the scope of the app context] then we have access to the template rendering that we'd normally use when serving the response to a web request. The following code will generate a HTML file based on a template file</a> +++<cite>+++templates/blog.html+++<cite>+++: </p> ~~~python from flask import render_template import flask app = flask.Flask('my app') if __name__ == "__main__": with app.app_context(): rendered = render_template('blog.html', \ title = "My Generated Page", \ people = [{"name": "Mark"}, {"name": "Michael"}]) print(rendered) ~~~ +++<cite>+++templates/blog.html+++</cite>+++ ~~~html <!doctype html> +++<html>++++++<head>++++++<title>+++{{ title }}+++</title>++++++</head>++++++<body>+++* {{ person.name }}+++</body>++++++</html>+++ ~~~ If we execute the Python script it will generate the following HTML: ~~~bash $ python blog.py <!doctype html> +++<html>++++++<head>++++++<title>+++My Generated Page+++</title>++++++</head>++++++<body>+++= My Generated Page * Mark * Michael+++</body>++++++</html>+++ ~~~ And we can finish off by redirecting that output into a file: ~~~bash $ python blog.py > generated_blog.html ~~~ We could also write to the file from Python but this seems just as easy! +++</cite>++++++</cite>+++
Learn how to generate a static HTML page using Python's Flask library.
null
[ 0.044694650918245316, 0.021090861409902573, -0.024458521977066994, 0.01822035014629364, 0.06830265372991562, -0.003967934288084507, -0.018099715933203697, 0.06336557865142822, 0.004079021513462067, -0.03324206545948982, -0.01604297198355198, -0.034771256148815155, -0.057616226375103, 0.013338165357708931, -0.007209801115095615, 0.06114630773663521, 0.05651158094406128, -0.015741389244794846, 0.02388521283864975, 0.001109154662117362, 0.02408302016556263, 0.03258344531059265, -0.01674570143222809, 0.016985872760415077, -0.0012210350250825286, 0.022426679730415344, 0.0042753624729812145, -0.015464561060070992, -0.09203758090734482, -0.024005036801099777, 0.024250932037830353, -0.017341911792755127, 0.009559563361108303, -0.03754136711359024, 0.015065300278365612, -0.01724131777882576, -0.003502582898363471, 0.011552734300494194, -0.026620615273714066, -0.003212630981579423, -0.047445617616176605, 0.010424116626381874, -0.01776808500289917, -0.0002915281802415848, -0.0479736402630806, 0.007367294747382402, 0.027947908267378807, 0.061936233192682266, -0.013295764103531837, -0.02237987145781517, -0.0639573261141777, 0.04550134763121605, -0.03780781105160713, -0.03879905864596367, 0.03222062438726425, 0.05859148129820824, 0.009347151033580303, -0.06396231055259705, 0.014370735734701157, -0.055351629853248596, -0.014334077946841717, 0.02344994805753231, 0.021739531308412552, 0.0518345944583416, 0.021104982122778893, -0.02535661868751049, -0.015050272457301617, 0.07432486861944199, -0.042376402765512466, -0.029438763856887817, 0.027840176597237587, 0.012660139240324497, -0.052175648510456085, -0.004070456139743328, 0.009926808066666126, 0.000688746222294867, -0.0398784801363945, 0.06456450372934341, 0.016260279342532158, 0.047524262219667435, -0.001353002618998289, -0.015331084839999676, -0.0006634062738157809, 0.052360907196998596, -0.02280558831989765, -0.02824271470308304, -0.044274285435676575, 0.014397884719073772, -0.02115708775818348, 0.04495026916265488, 0.012667189352214336, -0.035211943089962006, 0.0373818539083004, 0.017044954001903534, 0.02363692782819271, -0.006917777005583048, -0.021296754479408264, 0.02359614148736, -0.0025834899861365557, -0.004053919110447168, -0.0461241789162159, -0.03807850927114487, 0.012044579721987247, -0.008314407430589199, -0.07154863327741623, -0.009681089781224728, -0.039665162563323975, -0.02697710320353508, -0.012925194576382637, 0.006277770735323429, -0.020839471369981766, 0.0029458736535161734, -0.05384340509772301, -0.007438339293003082, -0.04652389883995056, 0.06694521009922028, 0.01436884980648756, -0.030194824561476707, 0.0009238545317202806, 0.011771664023399353, 0.026507409289479256, 0.04185707867145538, -0.003978593274950981, 0.07097290456295013, 0.037190139293670654, 0.0493188351392746, 0.00051965715829283, 0.05375978723168373, -0.02307545766234398, -0.05306383967399597, 0.009050059132277966, 0.08075878769159317, -0.016721045598387718, -0.014170331880450249, -0.03098549321293831, 0.022659743204712868, -0.020793935284018517, 0.0032346511725336313, 0.059393469244241714, 0.04589919373393059, -0.032888129353523254, -0.01219419576227665, -0.019186243414878845, 0.02837648242712021, 0.04630138725042343, 0.018124669790267944, 0.016699040308594704, -0.048290904611349106, -0.03391211852431297, 0.023664141073822975, 0.031646739691495895, 0.03011036477982998, 0.039630498737096786, -0.025126470252871513, 0.015730468556284904, 0.09971917420625687, 0.09063751995563507, 0.03637721762061119, -0.011896112933754921, -0.03704388812184334, 0.048376843333244324, 0.018347684293985367, -0.0021765076089650393, 0.06552506983280182, 0.03072567656636238, -0.012613517232239246, -0.01599789783358574, 0.04333027824759483, 0.01893484592437744, -0.02393236942589283, -0.0697396844625473, -0.048576340079307556, 0.07874246686697006, -0.004883283749222755, 0.015975400805473328, -0.0024602210614830256, 0.05420685559511185, -0.006183060817420483, 0.03285857290029526, 0.005457237362861633, -0.061035580933094025, 0.028667490929365158, 0.00903291441500187, 0.002998980227857828, 0.0309822428971529, 0.009883641265332699, 0.09084093570709229, 0.05855996161699295, -0.0033211999107152224, 0.04239044710993767, -0.07391147315502167, -0.09129060059785843, -0.038182713091373444, -0.007148268166929483, 0.08643154054880142, -0.02497854456305504, -0.02002774365246296, 0.11405272781848907, 0.06306779384613037, 0.03401337191462517, 0.02913229539990425, 0.0020838489290326834, -0.009059877134859562, -0.04412537440657616, -0.06960001587867737, -0.002840065397322178, 0.04108939692378044, -0.02379559352993965, -0.042331513017416, 0.02606714516878128, -0.029220642521977425, -0.010926909744739532, 0.014857418835163116, -0.035792045295238495, 0.013428894802927971, 0.030232833698391914, 0.05096237361431122, -0.021777138113975525, 0.02833409421145916, -0.03371858596801758, 0.06565430015325546, -0.02345098927617073, -0.020294539630413055, -0.02852572128176689, -0.02057499811053276, 0.10232201218605042, 0.04778503626585007, 0.002442097757011652, -0.05683901906013489, -0.005851684603840113, -0.029711265116930008, -0.009637360461056232, -0.0043138545006513596, -0.013014613650739193, -0.06323937326669693, -0.004968609660863876, -0.031249739229679108, 0.003685891395434737, -0.002654020208865404, -0.03911973908543587, -0.0002897470840252936, 0.06561674177646637, -0.04214264824986458, 0.03823043033480644, -0.002634442178532481, -0.01882333494722843, -0.02442147582769394, -0.03296903520822525, -0.04563033580780029, 0.012504707090556622, 0.04830803722143173, -0.009725145995616913, 0.024369599297642708, -0.02590026520192623, -0.04289857670664787, -0.01233290322124958, -0.045799724757671356, 0.03550316020846367, 0.023454759269952774, 0.046245723962783813, -0.04606413096189499, 0.029054738581180573, 0.001768225454725325, 0.021330472081899643, -0.03975159674882889, -0.04188160225749016, -0.05710890144109726, -0.026849446818232536, 0.01954296976327896, 0.05524037405848503, 0.02084437757730484, 0.022306745871901512, -0.011323931626975536, 0.0015144689241424203, -0.0012532680993899703, 0.029884928837418556, -0.0009649703279137611, -0.017190154641866684, -0.0016498904442414641, -0.040397293865680695, -0.04016343504190445, 0.04929855093359947, -0.013460037298500538, -0.060456931591033936, 0.013059113174676895, -0.06586814671754837, 0.025392774492502213, -0.05501798540353775, -0.025815332308411598, -0.028226595371961594, 0.023971574380993843, 0.029501598328351974, 0.01589757576584816, 0.019795658066868782, 0.07707273960113525, 0.004719413351267576, -0.019020743668079376, -0.006910395342856646, -0.010109640657901764, 0.025698689743876457, -0.03209361433982849, -0.020074186846613884, 0.026581542566418648, -0.02458135597407818, -0.009814885444939137, -0.03197529539465904, 0.00920100137591362, -0.07355675846338272, -0.2738693654537201, 0.04879393428564072, -0.007033805828541517, -0.03450282663106918, 0.015466754324734211, 0.0071938601322472095, -0.00587324658408761, -0.05700087547302246, 0.00336611014790833, 0.021579714491963387, -0.044985830783843994, -0.03562856838107109, -0.04020952060818672, 0.0491299144923687, -0.005364588927477598, 0.04856039211153984, 0.0005894561181776226, -0.021449726074934006, 0.022669536992907524, -0.011781930923461914, -0.016189610585570335, -0.03654629364609718, 0.0008243303745985031, 0.024957308545708656, 0.03454919904470444, 0.006405326537787914, -0.055229805409908295, 0.05855279415845871, -0.03291850909590721, -0.013730901293456554, 0.02519765868782997, -0.03338426724076271, 0.00983190257102251, -0.004857736174017191, -0.009427842684090137, -0.028402652591466904, 0.058838289231061935, 0.01959880068898201, 0.019721584394574165, -0.031953949481248856, -0.0331357978284359, -0.04632285237312317, -0.0069163087755441666, -0.009404179640114307, 0.08556178212165833, -0.031310901045799255, -0.08826927095651627, -0.02111870050430298, -0.02161554992198944, 0.07355040311813354, -0.029104406014084816, -0.06908974796533585, -0.019448405131697655, 0.052303899079561234, -0.039107196033000946, -0.020278608426451683, 0.008508034981787205, -0.006852702237665653, -0.043909329921007156, -0.05621446296572685, 0.021458644419908524, -0.025559192523360252, -0.01717515103518963, -0.02686683088541031, 0.017778944224119186, -0.028400978073477745, -0.04534580931067467, -0.028807135298848152, 0.05141374096274376, 0.046593718230724335, -0.011797647923231125, 0.007479625288397074, -0.02433580718934536, -0.11346249282360077, 0.015689240768551826, -0.0519794262945652, -0.042623039335012436, 0.005809417460113764, -0.026554793119430542, 0.050374846905469894, -0.04851797595620155, -0.02762340009212494, 0.025010328739881516, 0.007866806350648403, 0.0017902323743328452, -0.011863572522997856, 0.008962845429778099, 0.000007865399311413057, -0.002342754742130637, -0.012068239040672779, 0.07180613279342651, -0.0038220123387873173, 0.005995795130729675, 0.013780608773231506, -0.014230247586965561, 0.041611772030591965, 0.04735100641846657, -0.011872046627104282, 0.02091730572283268, 0.028730152174830437, 0.006604901980608702, -0.03303109109401703, -0.009420644491910934, -0.02062830701470375, -0.0018457239493727684, 0.005690004210919142, -0.048718713223934174, 0.009167837910354137, 0.01161894015967846, 0.011207460425794125, -0.01901078224182129, -0.022701969370245934, -0.008031857199966908, -0.031893253326416016, -0.043852854520082474, 0.013124989345669746, 0.020143121480941772, 0.018901243805885315, 0.018235238268971443, -0.014122115448117256, -0.07755858451128006, 0.01790510304272175, -0.0005062202108092606, -0.019355004653334618, -0.041433192789554596, -0.032980240881443024, 0.0008504039724357426, 0.0013088264968246222, -0.0009912141831591725, 0.0074231247417628765, -0.010249949991703033, 0.0056023141369223595, 0.0123528353869915, -0.011095613241195679, 0.009360640309751034, 0.006149926222860813, -0.008513107895851135, -0.03890059515833855, 0.011854379437863827, 0.006855389103293419, -0.0064301202073693275, 0.003015577094629407, 0.018674518913030624, 0.029152823612093925, 0.07760795950889587, 0.0023968718014657497, 0.042610447853803635, 0.037171512842178345, -0.024464169517159462, 0.0045234039425849915, 0.005240301601588726, -0.015927499160170555, -0.003489749040454626, -0.03434367850422859, -0.030405066907405853, -0.03695909306406975, 0.027898412197828293, -0.005288036540150642, 0.0008791174041107297, -0.014228492975234985, 0.007373727858066559, -0.06991663575172424, 0.012057624757289886, 0.01814999431371689, -0.0055658151395618916, 0.04379013925790787, -0.012403696775436401, 0.04546673595905304, 0.010977869853377342, 0.0022713288199156523, 0.030785400420427322, 0.015515456907451153, -0.02619127929210663, 0.01461492758244276, -0.020171090960502625, -0.004235844127833843, 0.001610372681170702, 0.032298021018505096, 0.006287549622356892, 0.016926433891057968, 0.004571148194372654, -0.01247655414044857, 0.04245663434267044, 0.01950499229133129, 0.040649838745594025, 0.04452889785170555, -0.038491204380989075, 0.018251409754157066, -0.027721025049686432, -0.0016387338982895017, -0.020268021151423454, 0.021937310695648193, -0.0036063273437321186, 0.00044070222065784037, 0.015618289820849895, -0.07117795944213867, 0.027902940288186073, 0.015411097556352615, -0.009825674816966057, -0.025220492854714394, -0.03343541547656059, 0.0003480871091596782, -0.027091920375823975, 0.048197634518146515, 0.03001512587070465, -0.05305444449186325, -0.019998036324977875, -0.035742346197366714, 0.0082246083766222, -0.0014698441373184323, 0.025374235585331917, -0.06373339146375656, -0.007272763643413782, 0.027920905500650406, -0.004924191627651453, -0.032633762806653976, -0.04132330045104027, 0.0031170514412224293, 0.012580757029354572, 0.013463402166962624, 0.030098306015133858, 0.009985261596739292, -0.004731145221740007, -0.01879941113293171, -0.04467092081904411, 0.0011050497414544225, -0.016900183632969856, -0.012679819017648697, 0.01856248639523983, -0.005779996979981661, 0.04661588743329048, -0.03463989496231079, 0.018596526235342026, 0.024612348526716232, -0.0033964605536311865, -0.0175430029630661, -0.029920099303126335, 0.010728382505476475, 0.014512882567942142, 0.03651968389749527, -0.01189622562378645, 0.007054287474602461, -0.036644723266363144, 0.008375032804906368, 0.01170126348733902, -0.0249757282435894, -0.0046333856880664825, -0.015389359556138515, -0.005149915814399719, 0.055272843688726425, 0.027507714927196503, 0.029681218788027763, 0.006208854261785746, -0.032740216702222824, 0.033874332904815674, -0.060201551765203476, -0.06626033037900925, -0.03761569410562515, -0.04974725469946861, 0.04720856621861458, 0.030544616281986237, 0.05836541950702667, -0.062137965112924576, 0.027024710550904274, 0.024152126163244247, 0.02289463020861149, 0.03425534814596176, -0.022541474550962448, 0.05000878870487213, -0.017110446467995644, 0.0008453935733996332, -0.08242679387331009, -0.014110278338193893, 0.040428027510643005, 0.019601747393608093, -0.008405226282775402, -0.01950092613697052, -0.04305711388587952, 0.05607924237847328, -0.06350944936275482, -0.030360540375113487, 0.025274112820625305, 0.012193205766379833, -0.023084361106157303, -0.007388178259134293, -0.05714615061879158, 0.06671882420778275, 0.06072554364800453, -0.02751459740102291, 0.0016692203935235739, 0.0033496133983135223, 0.05540051683783531, -0.0019434359855949879, 0.022051997482776642, 0.00462678074836731, -0.020472653210163116, 0.07173363119363785, 0.027961961925029755, -0.02700832672417164, 0.029409870505332947, 0.008125160820782185, 0.025939378887414932, -0.000032339034078177065, 0.0017059399979189038, 0.019139239564538002, 0.020736517384648323, 0.009279659949243069, -0.06324417889118195, 0.052543338388204575, 0.01901555061340332, 0.00323894782923162, -0.048517849296331406, 0.06471589207649231, 0.011210963129997253, -0.029549622908234596, -0.04456423595547676, 0.028896566480398178, -0.058603182435035706, -0.023537075147032738, -0.0075202519074082375, -0.013202287256717682, -0.056645467877388, 0.06128086522221565, 0.008583182469010353, 0.008399155922234058, 0.05601728335022926, -0.016887126490473747, -0.017822906374931335, 0.004932671319693327, 0.036682575941085815, 0.053142864257097244, 0.037301454693078995, 0.002010033465921879, 0.058212392032146454, -0.0009651519940234721, -0.036862730979919434, -0.027206050232052803, 0.0015924839535728097, -0.01184656098484993, -0.018687168136239052, -0.003276526229456067, 0.058916814625263214, -0.011562841013073921, 0.07389916479587555, 0.018009144812822342, 0.006493793334811926, -0.02321251854300499, 0.036272887140512466, 0.01860687881708145, 0.07100831717252731, 0.01630794070661068, 0.06377177685499191, -0.039099548012018204, -0.04237646982073784, 0.023206690326333046, -0.032425545156002045, -0.024706285446882248, 0.04005391150712967, 0.0031214675400406122, 0.03086847998201847, 0.018177887424826622, 0.03731235861778259, 0.06526974588632584, -0.007127723190933466, -0.051272112876176834, 0.010138308629393578, 0.02399715781211853, -0.03157052770256996, 0.023871345445513725, 0.0012585035292431712, -0.025138255208730698, -0.021563781425356865, -0.05721161141991615, -0.013716849498450756, -0.02938171476125717, -0.025638576596975327, 0.0547262467443943, -0.02192446030676365, -0.005140674766153097, -0.018629835918545723, -0.0018021168652921915, -0.07554872334003448, -0.03304160013794899, -0.0539558008313179, -0.03660818189382553, -0.06414703279733658, 0.008893218822777271, 0.026244470849633217, -0.009018860757350922, -0.03522917628288269, -0.03415074944496155, -0.011648756451904774, 0.0365900844335556, 0.032318081706762314, -0.044174764305353165, -0.0704544186592102, 0.026467623189091682, 0.007665282115340233, 0.01033717393875122, 0.008281015790998936, 0.046256594359874725, -0.011578178964555264, -0.010642834939062595, 0.0007213266217149794, 0.02257714420557022, 0.06622949987649918, -0.02556380070745945, 0.004313767421990633, -0.0768403634428978, 0.0065214186906814575, 0.030141377821564674, 0.03275323286652565, -0.060350142419338226, 0.014157876372337341, 0.04140094295144081, 0.0023943628184497356, 0.04285139590501785, -0.029812827706336975, 0.04245171695947647, -0.032877273857593536, -0.03309551253914833, 0.020612336695194244, 0.0482754185795784, 0.05754116550087929, -0.008319753222167492, 0.08999643474817276, 0.03329547494649887, -0.01389964111149311, -0.041620828211307526, -0.03406751900911331, -0.028583861887454987, 0.016366329044103622, -0.05526110157370567, 0.013297108933329582, -0.07053985446691513, -0.043907299637794495, -0.022612441331148148, 0.005974960513412952, -0.042602404952049255, -0.025524459779262543, -0.010295812971889973, 0.008078665472567081, -0.029145855456590652, 0.03458335995674133, -0.05319829285144806, 0.01674194075167179, -0.015756504610180855, -0.0013298045378178358, -0.022912757471203804, 0.005714802071452141, 0.013805799186229706, -0.006829627323895693, 0.048823319375514984, -0.03014775738120079, -0.014477703720331192, -0.015224402770400047, -0.0022892376873642206, 0.02886212430894375, 0.0017894116463139653, 0.01463198009878397 ]
[ -0.06236189231276512, -0.015573696233332157, -0.05454638600349426, -0.018993111327290535, 0.05565374717116356, -0.057507481426000595, -0.052383679896593094, -0.01618465967476368, -0.01327143982052803, -0.02262071520090103, -0.023534920066595078, -0.02571578323841095, 0.0038225885946303606, -0.014112921431660652, 0.07461787760257721, -0.012728647328913212, -0.0035514733754098415, -0.04905911162495613, -0.06899290531873703, 0.02979491651058197, 0.029491228982806206, 0.010766593739390373, -0.04226063936948776, -0.0459885336458683, 0.0007771037635393441, 0.01574971154332161, 0.02827371098101139, -0.019359778612852097, -0.019780103117227554, -0.1762823760509491, 0.05883219093084335, -0.04699166119098663, 0.008237923495471478, -0.010147088207304478, -0.009513081051409245, 0.0423462949693203, 0.014558052644133568, 0.0029594064690172672, 0.01054125651717186, 0.07479092478752136, 0.03831369802355766, 0.04939235746860504, -0.09222390502691269, -0.016215071082115173, 0.0046304864808917046, -0.0037650910671800375, -0.012195223942399025, -0.013344972394406796, -0.04331091418862343, 0.008733083494007587, -0.05149557814002037, 0.00477050943300128, 0.0060610417276620865, -0.03699985891580582, -0.02779066376388073, -0.000864948786329478, 0.017059829086065292, 0.07487228512763977, -0.010044241324067116, 0.024663329124450684, -0.019400306046009064, 0.02003687620162964, -0.1366308480501175, 0.12165921181440353, 0.01955917291343212, 0.05259167402982712, -0.0735572874546051, 0.014311311766505241, -0.004194058943539858, 0.060256145894527435, -0.01826605573296547, 0.0034160201903432608, -0.045979734510183334, 0.08545981347560883, 0.043471843004226685, -0.01953461952507496, -0.009906061924993992, 0.023220017552375793, 0.030551139265298843, -0.06617084890604019, -0.06004813686013222, 0.003832325106486678, -0.01063105370849371, 0.0041980259120464325, 0.004954499192535877, 0.022542113438248634, -0.007855555973947048, 0.04680738225579262, 0.028907278552651405, 0.03056211955845356, 0.025324957445263863, -0.04309621825814247, 0.024567613378167152, 0.00647200969979167, -0.059372808784246445, -0.012937648221850395, 0.017464904114603996, 0.030027100816369057, -0.05350223928689957, 0.39822497963905334, -0.019924847409129143, 0.0151307862251997, 0.059408560395240784, 0.01441855076700449, 0.013762479647994041, -0.005321086384356022, 0.005041090305894613, -0.012579568661749363, -0.019974742084741592, -0.034745197743177414, -0.006027035880833864, -0.01829720102250576, 0.007222496438771486, -0.08322034776210785, 0.010455513373017311, 0.004103786312043667, -0.025157565250992775, 0.036888282746076584, -0.03255172446370125, 0.018959607928991318, -0.003513314062729478, -0.004139978438615799, 0.04698700085282326, -0.012158050201833248, 0.015195103362202644, 0.046741288155317307, 0.05888902023434639, 0.03648294880986214, 0.060333773493766785, 0.040553245693445206, 0.03249720484018326, 0.008035346865653992, -0.06735597550868988, -0.0058310204185545444, -0.05466350167989731, -0.004394983407109976, 0.01716211438179016, -0.010955456644296646, -0.019603334367275238, 0.04569121077656746, 0.007576067931950092, -0.036350809037685394, -0.008468963205814362, -0.00887631718069315, -0.0299075860530138, 0.08448348194360733, 0.02472228929400444, -0.00936878751963377, -0.05531564727425575, -0.043118931353092194, -0.030476689338684082, 0.06601288169622421, 0.004188125021755695, -0.04560491442680359, -0.0048769316636025906, 0.028834477066993713, 0.026328129693865776, 0.0065161967650055885, -0.014008233323693275, -0.02873416803777218, -0.04041333124041557, -0.05127108097076416, -0.05449047312140465, 0.013769607990980148, 0.008489871397614479, -0.16703534126281738, -0.006410893518477678, 0.05029437690973282, -0.004220316652208567, -0.034142304211854935, -0.007219839841127396, 0.025797981768846512, -0.00818794034421444, -0.03046908788383007, 0.03889076039195061, -0.016148770228028297, -0.025785718113183975, 0.026020025834441185, 0.07464390248060226, 0.030078919604420662, 0.00990084558725357, 0.026804424822330475, -0.03527465835213661, 0.0034690340980887413, -0.07860070466995239, -0.08380845934152603, -0.02907959185540676, -0.004069351591169834, -0.029799381271004677, -0.032681338489055634, -0.01852230168879032, 0.009619567543268204, -0.04061940312385559, 0.01673051528632641, -0.008142114616930485, 0.019346099346876144, 0.020651571452617645, -0.014972221106290817, 0.03572382405400276, -0.013547295704483986, 0.02286478877067566, 0.03592229634523392, -0.013393079861998558, 0.022014692425727844, -0.04252377524971962, 0.030464807525277138, 0.039359405636787415, -0.008348359726369381, 0.05866089090704918, 0.019023234024643898, -0.08714204281568527, 0.013309875503182411, 0.03711293265223503, 0.034885577857494354, -0.02731667272746563, -0.033861443400382996, -0.023553090170025826, 0.004407183267176151, 0.019850391894578934, 0.0359734408557415, -0.04779934883117676, -0.07822954654693604, 0.0011124707525596023, -0.33855098485946655, -0.004423945676535368, -0.01390159409493208, 0.002488095313310623, 0.003968001343309879, -0.0631154403090477, 0.015666062012314796, -0.019099036231637, -0.023839369416236877, 0.008258651942014694, 0.12537482380867004, -0.009672977030277252, 0.014439044520258904, -0.08033673465251923, 0.02453235164284706, 0.012233919464051723, -0.03789406269788742, -0.04349900409579277, -0.009891409426927567, 0.04182793200016022, -0.01904013752937317, -0.03611599653959274, -0.01524805836379528, -0.07526957988739014, 0.01193391252309084, -0.02788556180894375, 0.13244420289993286, 0.014284553937613964, 0.05475558713078499, -0.06990163773298264, 0.07205743342638016, 0.004076443612575531, -0.03180490806698799, -0.09493596851825714, -0.007406887598335743, 0.0010959311621263623, 0.03543655574321747, 0.029298407956957817, 0.012335925363004208, -0.029127581045031548, -0.001875340472906828, 0.04435223713517189, -0.014772683382034302, -0.05073725804686546, -0.015864115208387375, 0.0006952967378310859, -0.002442813478410244, -0.05113597214221954, 0.013110333122313023, 0.06496021151542664, 0.003457615850493312, 0.03481729328632355, 0.053198836743831635, 0.034601714462041855, -0.024066779762506485, -0.01872575655579567, -0.07027734816074371, 0.008677303791046143, -0.018486013635993004, -0.023956848308444023, 0.01900734193623066, 0.022380461916327477, 0.05995919555425644, -0.04193113371729851, -0.019675318151712418, 0.01728150248527527, 0.03259038180112839, 0.0057463799603283405, 0.04503670334815979, -0.03065122850239277, -0.01910749077796936, 0.11869245767593384, 0.015585735440254211, 0.018941069021821022, 0.021572990342974663, 0.047323085367679596, -0.0004061686049681157, 0.04350544884800911, 0.04517880827188492, 0.008115398697555065, 0.0354626290500164, 0.039505764842033386, 0.05012676492333412, -0.03189124912023544, -0.0348842516541481, 0.04054858535528183, -0.04691113531589508, -0.033531878143548965, 0.018497828394174576, -0.005011811386793852, -0.04148464277386665, 0.004334229044616222, -0.02887136861681938, -0.032535143196582794, 0.04620988294482231, -0.010544588789343834, -0.28294122219085693, -0.00332535314373672, 0.051816657185554504, 0.07184700667858124, 0.024087728932499886, 0.010231691412627697, 0.059453338384628296, -0.025391673669219017, -0.015435916371643543, -0.0023352510761469603, 0.025316616520285606, 0.005486677400767803, 0.020067358389496803, 0.00038547322037629783, 0.030016392469406128, 0.0075133563950657845, 0.06657015532255173, 0.0012484010076150298, -0.012801418080925941, -0.0025370449293404818, 0.011978814378380775, -0.03187689930200577, 0.17465877532958984, 0.01576547883450985, 0.0016469779657199979, 0.021020445972681046, 0.001656335429288447, 0.021493567153811455, 0.06036830693483353, 0.03598517179489136, 0.013159627094864845, -0.01963311992585659, 0.040785957127809525, 0.02243158593773842, 0.049015339463949203, -0.06298276036977768, -0.03056812845170498, 0.027077382430434227, -0.014464778825640678, -0.020925529301166534, 0.0037560933269560337, 0.03119351714849472, -0.0529586561024189, 0.02185709774494171, 0.03702341392636299, -0.04326852411031723, -0.008483776822686195, -0.012547949329018593, -0.05043106526136398, -0.010614873841404915, -0.038568612188100815, -0.010374774225056171, -0.04144865274429321, 0.023893970996141434, 0.02083374559879303, 0.07587921619415283, 0.03182385116815567, 0.013050059787929058, 0.002800814574584365, 0.021631663665175438, -0.005091276951134205, -0.033458855003118515, 0.13495975732803345, 0.05603381246328354, 0.0293564610183239 ]
[ -0.016564514487981796, -0.0027748404536396265, -0.060829032212495804, 0.017618875950574875, 0.05467132478952408, -0.005418070591986179, -0.024515822529792786, -0.023555492982268333, 0.0034222458489239216, -0.06327665597200394, -0.02969820238649845, 0.053335465490818024, 0.022000234574079514, 0.011366568505764008, 0.04750598967075348, -0.01618815027177334, -0.008607952855527401, 0.033249981701374054, 0.019489457830786705, 0.015863552689552307, 0.004643566906452179, 0.04310772940516472, 0.05456799641251564, 0.06336668133735657, 0.03855196759104729, -0.01804739236831665, -0.06728111207485199, -0.02161654643714428, 0.03747604414820671, -0.09130063652992249, 0.01901678368449211, -0.015648799017071724, 0.014799882657825947, -0.03321355581283569, 0.025237714871764183, 0.010139760561287403, -0.0043271370232105255, -0.013134805485606194, -0.01807483471930027, 0.04619816690683365, 0.024400006979703903, -0.0017782525392249227, -0.041776515543460846, -0.032858602702617645, -0.012254105880856514, -0.015727471560239792, -0.03124934248626232, -0.007871042005717754, -0.01642591319978237, -0.02931959182024002, 0.0013543188106268644, -0.032246947288513184, -0.044086456298828125, -0.04513760283589363, -0.04243692755699158, -0.030604878440499306, -0.012225046753883362, -0.03402743861079216, -0.030515020713210106, -0.03170981630682945, 0.004859332926571369, -0.021335892379283905, -0.004363371059298515, -0.006769984029233456, 0.044438790529966354, -0.017725583165884018, -0.005123044829815626, -0.02822134457528591, 0.040921635925769806, 0.04044557735323906, -0.0116515401750803, -0.018242519348859787, -0.014906330034136772, -0.005533227697014809, 0.008169280365109444, -0.0357111357152462, 0.049521446228027344, 0.015401517041027546, -0.027883902192115784, -0.004149761516600847, -0.002066246699541807, 0.004038728773593903, -0.012374148704111576, 0.09091872721910477, 0.008137132041156292, -0.0563211590051651, -0.03189672902226448, 0.05505611002445221, -0.04535184055566788, 0.016951311379671097, -0.04183179885149002, -0.02382788434624672, 0.0036214960273355246, 0.009328434243798256, -0.08874061703681946, 0.02542855218052864, 0.018603987991809845, -0.03468260169029236, -0.03516300395131111, 0.764518141746521, 0.05300704389810562, -0.011563164182007313, 0.024516133591532707, 0.014714867807924747, 0.06770167499780655, 0.0368267185986042, -0.020429641008377075, -0.009867983870208263, -0.02394835278391838, -0.004548962693661451, 0.012678943574428558, -0.0019751398358494043, -0.0006017177947796881, 0.019069815054535866, -0.0029011250007897615, 0.01701563596725464, 0.0420362763106823, -0.02862711437046528, 0.0036373187322169542, 0.05352337285876274, 0.05726521089673042, 0.014418577775359154, 0.008062118664383888, -0.012121576815843582, -0.0028367750346660614, -0.1673067808151245, 0.022519512102007866, -6.758682563573304e-33, 0.015880485996603966, -0.015740366652607918, 0.01512326579540968, 0.03003399632871151, 0.02161593735218048, 0.010801552794873714, 0.02267918922007084, -0.009455823339521885, -0.020548632368445396, -0.009906195104122162, -0.014935795217752457, 0.012485730461776257, 0.020465578883886337, -0.012804198078811169, 0.000275165046332404, -0.009068178944289684, -0.03053317405283451, 0.027465732768177986, 0.0168101005256176, -0.016293052583932877, 0.025799915194511414, -0.005691691767424345, -0.01786075532436371, 0.028642408549785614, 0.013555940240621567, 0.010875212028622627, -0.011554774828255177, 0.02403430826961994, -0.040620356798172, -0.03697876259684563, 0.020838281139731407, 0.0009180315537378192, -0.0265248604118824, -0.03488677740097046, 0.00783655047416687, -0.053984854370355606, -0.024230239912867546, -0.04433899745345116, -0.05214442312717438, 0.015002393163740635, -0.048058439046144485, -0.00428702961653471, -0.01852921023964882, 0.0024388234596699476, -0.0733272135257721, 0.021519221365451813, 0.013066147454082966, 0.04370089992880821, -0.00301130348816514, 0.035674240440130234, 0.02476898580789566, -0.004395986907184124, 0.03940601646900177, 0.011706396006047726, -0.03630130738019943, 0.014327152632176876, -0.016627399250864983, 0.029362427070736885, 0.049894243478775024, -0.040547776967287064, 0.00040744649595580995, -0.04116462916135788, -0.007478469982743263, 0.01600056327879429, 0.010128643363714218, 0.026486096903681755, 0.02732209675014019, 0.07075172662734985, 0.04979441687464714, 0.007249156478792429, -0.040296003222465515, 0.05089808627963066, -0.03899270296096802, 0.030360806733369827, 0.00515319500118494, -0.023358222097158432, -0.019407978281378746, -0.01492857001721859, 0.01108022965490818, 0.0702497586607933, 0.026024095714092255, -0.004034763667732477, -0.00893327221274376, -0.025435732677578926, -0.05803421884775162, -0.02929173968732357, 0.050199735909700394, 0.00723352562636137, -0.02604527398943901, 0.040875356644392014, 0.04068724811077118, 0.0167691707611084, 0.059415534138679504, -0.010024331510066986, -0.02716749720275402, 7.107443655938615e-33, -0.012649158015847206, -0.030085070058703423, -0.039003048092126846, 0.02218068391084671, -0.005262474995106459, -0.00895998626947403, 0.013602248392999172, 0.05790868028998375, -0.0348287932574749, 0.05262742191553116, -0.023676255717873573, -0.007278297562152147, 0.007617149967700243, -0.011657476425170898, 0.04537992179393768, 0.03359747678041458, -0.011936663649976254, -0.04394989460706711, 0.04061480611562729, -0.015890879556536674, -0.017132315784692764, 0.022219326347112656, 0.0063139754347503185, 0.03218957781791687, -0.04667311906814575, 0.05072774738073349, -0.026140417903661728, -0.038459476083517075, -0.010767458006739616, 0.04149260371923447, -0.006515273358672857, -0.029010191559791565, -0.00015864877786953002, -0.01599668711423874, -0.03760107234120369, 0.015456678345799446, -0.0017352198483422399, 0.03507491946220398, 0.0450163334608078, -0.023671304807066917, 0.06016335263848305, 0.04097837582230568, 0.05210994556546211, 0.06222117319703102, 0.010493559762835503, 0.03405951336026192, -0.007113099563866854, 0.008176995441317558, 0.036469075828790665, 0.01104838028550148, -0.03316248208284378, -0.008762635290622711, 0.01281123049557209, 0.013948343694210052, 0.051474761217832565, -0.06209084019064903, -0.022902362048625946, -0.04284599795937538, -0.05747055634856224, 0.012620481662452221, -0.015391077846288681, -0.003061246359720826, -0.05311286449432373, 0.029662219807505608, -0.022468291223049164, -0.0030228912364691496, -0.0977478176355362, 0.004047332797199488, 0.018435699865221977, 0.020295726135373116, 0.004065011627972126, -0.005142819602042437, -0.017219562083482742, 0.0007773620309308171, 0.025718193501234055, 0.018645018339157104, -0.0015210455749183893, 0.03979828581213951, -0.03964041545987129, 0.012799667194485664, 0.033135153353214264, 0.021127300336956978, -0.021549498662352562, 0.0047669727355241776, -0.007727011572569609, -0.03652459755539894, -0.0446639358997345, 0.04884174466133118, -0.00398476654663682, -0.045266300439834595, 0.006945777218788862, 0.021921707317233086, -0.043349459767341614, 0.0224319938570261, 0.042269691824913025, -1.213420652845798e-8, -0.016685722395777702, 0.02906324528157711, 0.011720217764377594, 0.04466971755027771, 0.013657428324222565, 0.05986322462558746, -0.0037471021059900522, 0.00826912373304367, -0.0009184203809127212, -0.009750919416546822, 0.019630782306194305, -0.054569631814956665, 0.016606895253062248, -0.015167498029768467, 0.04946800321340561, -0.006517335772514343, 0.0022550630383193493, 0.0018511940725147724, 0.022303326055407524, -0.040015075355768204, -0.009368939325213432, 0.038221266120672226, 0.004667437169700861, -0.04858026280999184, 0.01264270395040512, 0.0449519157409668, -0.0052198199555277824, -0.0641244575381279, -0.04553753882646561, -0.02867997996509075, 0.00727412523701787, -0.044599778950214386, -0.08108261227607727, 0.05714939907193184, -0.019789675250649452, -0.05458636209368706, -0.05002322793006897, -0.03111652471125126, 0.0044832006096839905, 0.01489248126745224, -0.0018377581145614386, 0.04393427446484566, -0.02967214770615101, -0.028920847922563553, -0.000301115564070642, -0.02110857330262661, -0.021298184990882874, 0.019118597730994225, 0.008132876828312874, -0.034139975905418396, 0.027134941890835762, -0.07400377094745636, 0.014469293877482414, 0.033179376274347305, 0.04131360352039337, -0.01644233986735344, 0.03594851866364479, -0.04667721688747406, -0.02124454267323017, -0.015208183787763119, 0.03627908602356911, 0.019824696704745293, -0.005804204382002354, 0.000717014423571527 ]
python-flask-generating-a-static-html-page
https://markhneedham.com/blog/2017/04/27/python-flask-generating-a-static-html-page
false
2017-04-29 15:36:36
Leaflet: Mapping Strava runs/polylines on Open Street Map
[ "python", "leafletjs", "strava" ]
[ "Javascript" ]
I'm a big https://www.strava.com/athletes/6958432[Strava] user and spent a bit of time last weekend playing around with https://strava.github.io/api/v3/athlete/[their API] to work out how to map all my runs. image::{{<siteurl>}}/uploads/2017/04/2017-04-29_15-56-06.png[2017 04 29 15 56 06,180] == Strava API and polylines This is a two step process: . Call the +++<cite>+++/athlete/activities/+++</cite>+++ endpoint to get a list of all my activities . For each of those activities call +++<cite>+++/activities/[activityId]+++</cite>+++ endpoint to get more detailed information for each activity</cite> That second API returns a 'polyline' property which the https://strava.github.io/api/#polylines[documentation] describes as follows: ____ Activity and segment API requests may include summary polylines of their respective routes. The values are string encodings of the latitude and longitude points using the https://developers.google.com/maps/documentation/utilities/polylinealgorithm[Google encoded polyline algorithm format]. ____ If we navigate to that page we get the following explanation: ____ Polyline encoding is a lossy compression algorithm that allows you to store a series of coordinates as a single string. ____ I tried out a couple of my polylines using the https://developers.google.com/maps/documentation/utilities/polylineutility[interactive polyline encoder utility] which worked well once I realised that I needed to escape backslashes ("\") in the polyline before pasting it into the tool. Now that I'd figured out how to map one run it was time to automate the process. == Leaflet and OpenStreetMap I've previously had a good experience using http://leafletjs.com/[Leaflet] so I was keen to use that and luckily came across http://stackoverflow.com/a/40728445/1093511[a Stack Overflow answer] showing how to do what I wanted. I created a HTML file and manually pasted in a couple of my runs (not forgetting to escape those backslashes!) to check that they worked: +++<cite>+++blog.html+++</cite>+++ [source,html] ---- <html> <head> <title>Mapping my runs</title> </head> <body> <script src="http://cdn.leafletjs.com/leaflet-0.7/leaflet.js"></script> <script type="text/javascript" src="https://rawgit.com/jieter/Leaflet.encoded/master/Polyline.encoded.js"></script> <link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7/leaflet.css" /> <div id="map" style="width: 100%; height: 100%"></div> <script> var map = L.map('map').setView([55.609818, 13.003286], 13); L.tileLayer( 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', { maxZoom: 18, }).addTo(map); var encodedRoutes = [ "{zkrIm`inANPD?BDXGPKLATHNRBRFtAR~AFjAHl@D|ALtATj@HHJBL?`@EZ?NQ\\Y^MZURGJKR]RMXYh@QdAWf@[~@aAFGb@?j@YJKBU@m@FKZ[NSPKTCRJD?`@Wf@Wb@g@HCp@Qh@]z@SRMRE^EHJZnDHbBGPHb@NfBTxBN|DVbCBdA^lBFl@Lz@HbBDl@Lr@Bb@ApCAp@Ez@g@bEMl@g@`B_AvAq@l@ QF]Rs@Nq@CmAVKCK?_@Nw@h@UJIHOZa@xA]~@UfASn@U`@_@~@[d@Sn@s@rAs@dAGN?NVhAB\\Ox@@b@S|A?Tl@jBZpAt@vBJhATfGJn@b@fARp@H^Hx@ARGNSTIFWHe@AGBOTAP@^\\zBMpACjEWlEIrCKl@i@nAk@}@}@yBOWSg@kAgBUk@Mu@[mC?QLIEUAuAS_E?uCKyCA{BH{DDgF`AaEr@uAb@oA~@{AE}AKw@ g@qAU[_@w@[gAYm@]qAEa@FOXg@JGJ@j@o@bAy@NW?Qe@oCCc@SaBEOIIEQGaAe@kC_@{De@cE?KD[H[P]NcAJ_@DGd@Gh@UHI@Ua@}Bg@yBa@uDSo@i@UIICQUkCi@sCKe@]aAa@oBG{@G[CMOIKMQe@IIM@KB]Tg@Nw@^QL]NMPMn@@\\Lb@P~@XT", "u}krIq_inA_@y@My@Yu@OqAUsA]mAQc@CS@o@FSHSp@e@n@Wl@]ZCFEBK?OC_@Qw@?m@CSK[]]EMBeAA_@m@qEAg@UoCAaAMs@IkBMoACq@SwAGOYa@IYIyA_@kEMkC]{DEaAScC@yEHkGA_ALsCBiA@mCD{CCuAZcANOH@HDZl@Z`@RFh@\\TDT@ZVJBPMVGLM\\Mz@c@NCPMXERO|@a@^Ut@s@p@KJAJ Bd@EHEXi@f@a@\\g@b@[HUD_B@uADg@DQLCLD~@l@`@J^TF?JANQ\\UbAyABEZIFG`@o@RAJEl@_@ZENDDIA[Ki@BURQZaARODKVs@LSdAiAz@G`BU^A^GT@PRp@zARXRn@`BlDHt@ZlAFh@^`BX|@HHHEf@i@FAHHp@bBd@v@DRAVMl@i@v@SROXm@tBILOTOLs@NON_@t@KX]h@Un@k@\\c@h@Ud@]ZGNKp@Sj@KJo@ b@W`@UPOX]XWd@UF]b@WPOAIBSf@QVi@j@_@V[b@Uj@YtAEFCCELARBn@`@lBjAzD^vB^hB?LENURkAv@[Ze@Xg@Py@p@QHONMA[HGAWE_@Em@Hg@AMCG@QHq@Cm@M[Jy@?UJIA{@Ae@KI@GFKNIX[QGAcAT[JK?OVMFK@IAIUKAYJI?QKUCGFIZCXDtAHl@@p@LjBCZS^ERAn@Fj@Br@Hn@HzAHh@RfD?j@TnCTlA NjANb@\\z@TtARr@P`AFnAGfBG`@CFE?" ] for (let encoded of encodedRoutes) { var coordinates = L.Polyline.fromEncoded(encoded).getLatLngs(); L.polyline( coordinates, { color: 'blue', weight: 2, opacity: .7, lineJoin: 'round' } ).addTo(map); } </script> </body> </html> ---- We can spin up a Python web server over that HTML file to see how it renders: [source,bash] ---- $ python -m http.server Serving HTTP on 0.0.0.0 port 8000 (http://0.0.0.0:8000/) ... ---- And below we can see both runs plotted on the map. image::{{<siteurl>}}/uploads/2017/04/2017-04-29_15-53-28.png[2017 04 29 15 53 28,598] == Automating Strava API to Open Street Map The final step is to automate the whole thing so that I can see all of my runs. I wrote the following script to call the Strava API and save the polyline for every run to a CSV file: [source,python] ---- import requests import os import sys import csv token = os.environ["TOKEN"] headers = {'Authorization': "Bearer {0}".format(token)} with open("runs.csv", "w") as runs_file: writer = csv.writer(runs_file, delimiter=",") writer.writerow(["id", "polyline"]) page = 1 while True: r = requests.get("https://www.strava.com/api/v3/athlete/activities?page={0}".format(page), headers = headers) response = r.json() if len(response) == 0: break else: for activity in response: r = requests.get("https://www.strava.com/api/v3/activities/{0}?include_all_efforts=true".format(activity["id"]), headers = headers) polyline = r.json()["map"]["polyline"] writer.writerow([activity["id"], polyline]) page += 1 ---- I then wrote a simple script using http://flask.pocoo.org/[Flask] to parse the CSV files and send a JSON representation of my runs to a slightly modified version of the HTML page that I described above: [source,python] ---- from flask import Flask from flask import render_template import csv import json app = Flask(__name__) @app.route('/') def my_runs(): runs = [] with open("runs.csv", "r") as runs_file: reader = csv.DictReader(runs_file) for row in reader: runs.append(row["polyline"]) return render_template("leaflet.html", runs = json.dumps(runs)) if __name__ == "__main__": app.run(port = 5001) ---- I changed the following line in the HTML file: [source,html] ---- var encodedRoutes = {{ runs|safe }}; ---- Now we can launch our Flask web server: [source,bash] ---- $ python app.py * Running on http://127.0.0.1:5001/ (Press CTRL+C to quit) ---- And if we navigate to +++<cite>+++http://127.0.0.1:5001/+++</cite>+++ we can see all my runs that went near Westminster: image::{{<siteurl>}}/uploads/2017/04/2017-04-29_16-32-00.png[2017 04 29 16 32 00,336] The full code for all the files I've described in this post are https://gist.github.com/mneedham/34b923beb7fd72f8fe6ee433c2b27d73[available on github]. If you give it a try you'll need to provide your Strava Token in the 'TOKEN' environment variable before running +++<cite>+++extract_runs.py+++</cite>+++. Hope this was helpful and if you have any questions ask me in the comments.
Learn how to take the polyline returned by the Strava API and plot it onto Open Street Map using the Leaflet javascript library.
null
[ 0.009085550904273987, -0.025707222521305084, -0.009102563373744488, 0.017216641455888748, 0.08117952197790146, 0.02730693854391575, 0.026191897690296173, 0.03938018158078194, 0.009232275187969208, -0.01753438636660576, -0.013287102803587914, -0.04639975354075432, -0.06618823856115341, -0.006737380288541317, -0.00889560766518116, 0.06926325708627701, 0.06625568121671677, 0.007268685381859541, 0.018930606544017792, 0.0016116158803924918, 0.029329150915145874, 0.057539742439985275, 0.015351369976997375, 0.011817804537713528, 0.017482560127973557, -0.0019432252738624811, -0.00029732586699537933, 0.01042722724378109, -0.06434154510498047, -0.0032680609729140997, 0.04765097051858902, -0.01231495849788189, 0.020088622346520424, 0.0031084311194717884, 0.0515606552362442, -0.01755543053150177, -0.019899552688002586, 0.005706137046217918, -0.003638894995674491, 0.006059957202523947, -0.06877218931913376, 0.04403495043516159, -0.061896421015262604, 0.029382457956671715, -0.018769772723317146, 0.017811359837651253, -0.04264955595135689, 0.008439994417130947, -0.0364278145134449, -0.023128747940063477, -0.044323407113552094, 0.035785362124443054, -0.041030097752809525, 0.02659422531723976, -0.007115648593753576, 0.06386221200227737, 0.025496618822216988, -0.070634625852108, 0.023368023335933685, -0.041596103459596634, -0.01865988038480282, -0.0063353125005960464, -0.006646035239100456, 0.056068744510412216, 0.022141896188259125, -0.025456318631768227, -0.014583778567612171, 0.04349614679813385, -0.031917084008455276, -0.025434821844100952, -0.011763208545744419, 0.026902755722403526, 0.015294176526367664, 0.0028516948223114014, -0.0008384036482311785, -0.04917638376355171, 0.009642401710152626, 0.07284639775753021, 0.0010521659860387444, 0.03076661005616188, 0.0032761292532086372, -0.01690772734582424, 0.006430808920413256, 0.0467630960047245, -0.02868122048676014, -0.014230162836611271, -0.01504152175039053, -0.017506927251815796, -0.04590056091547012, 0.04017821326851845, 0.005783393047749996, -0.06749582290649414, 0.023425132036209106, 0.0019092099973931909, 0.019147459417581558, -0.015577627345919609, -0.004765658173710108, 0.0058342949487268925, -0.024007504805922508, -0.061059754341840744, -0.04908664897084236, -0.00845616776496172, 0.006939745042473078, 0.0483764223754406, -0.05583425611257553, -0.026800017803907394, -0.017707908526062965, 0.0042505813762545586, 0.038723863661289215, 0.001276035443879664, -0.023084843531250954, 0.00351415085606277, -0.03480232134461403, -0.009639576077461243, -0.06560342013835907, 0.06172905117273331, 0.02016839198768139, -0.012888096272945404, -0.03444608673453331, 0.010066633112728596, 0.03696301579475403, 0.031642887741327286, 0.002693775575608015, 0.06462649255990982, -0.002124694176018238, 0.05065672844648361, -0.009206628426909447, 0.03814052790403366, -0.01269074622541666, -0.044339314103126526, -0.0316312238574028, 0.04540170729160309, -0.025242013856768608, 0.01853073760867119, 0.027989784255623817, -0.03130025044083595, -0.020607896149158478, 0.0030790413729846478, 0.0599914975464344, 0.017824687063694, -0.006220445968210697, -0.01778450608253479, 0.01008674968034029, -0.022064004093408585, 0.03024282120168209, 0.017136497423052788, -0.013256145641207695, -0.03400691598653793, -0.03992944583296776, 0.004548842553049326, 0.03109457530081272, 0.011738543398678303, 0.08041068911552429, -0.024757487699389458, -0.0019796837586909533, 0.10091319680213928, 0.0381673239171505, 0.016933904960751534, -0.011719973757863045, 0.03035980835556984, 0.0443088635802269, 0.030025416985154152, 0.0031460518948733807, 0.0488089956343174, 0.00429640943184495, -0.0049005309119820595, 0.02033367194235325, 0.0562763437628746, -0.0005512504721991718, -0.02648627944290638, -0.046448394656181335, -0.0586518868803978, 0.06779389083385468, -0.031469639390707016, -0.03344547748565674, 0.033271901309490204, 0.09009677916765213, 0.03690613806247711, 0.047914061695337296, 0.0009766248986124992, -0.06937581300735474, 0.05541280657052994, 0.021899357438087463, 0.011021053418517113, 0.040090326219797134, -0.007923729717731476, 0.10180334001779556, 0.02156708762049675, -0.019521765410900116, 0.01105441339313984, -0.04549107700586319, -0.07957159727811813, -0.03355150669813156, 0.0007664664299227297, 0.06043517217040062, -0.054589007049798965, 0.0133464140817523, 0.06708990037441254, 0.013985755853354931, 0.062142666429281235, 0.01460181549191475, -0.003914639353752136, 0.0284759271889925, -0.044108472764492035, -0.0495612733066082, 0.030375445261597633, 0.06721863895654678, -0.038429152220487595, -0.01861146092414856, 0.01880231313407421, -0.034931059926748276, 0.004533750005066395, 0.01982775516808033, -0.02203821763396263, 0.017330588772892952, 0.008690922521054745, 0.04193655401468277, -0.006879772059619427, 0.0631464496254921, -0.04946566000580788, 0.029365789145231247, 0.009190451353788376, -0.02195984311401844, 0.0013218963285908103, -0.013772848062217236, 0.10903997719287872, 0.0449887253344059, 0.003927943762391806, -0.08283749222755432, -0.005860378034412861, 0.0011315463343635201, -0.04361777380108833, -0.00787954218685627, -0.016530320048332214, -0.0012180889025330544, -0.006046563386917114, -0.020454121753573418, -0.02943234145641327, 0.003226132830604911, -0.05141424015164375, 0.0004675003874581307, 0.07580000907182693, -0.0027931726071983576, 0.048193179070949554, 0.004433291964232922, -0.01660986803472042, 0.00439445162191987, -0.009086234495043755, -0.049423832446336746, -0.017943277955055237, -0.003782161045819521, -0.019509583711624146, 0.031114552170038223, -0.005889765452593565, -0.05125464126467705, -0.035641007125377655, -0.019732819870114326, 0.02376633882522583, 0.0627550259232521, 0.05574079975485802, 0.00805201567709446, 0.05126849189400673, -0.010926428250968456, 0.03584200516343117, -0.0016199251404032111, -0.04253281280398369, -0.05626854673027992, -0.04547448083758354, 0.026673289015889168, 0.0360034815967083, 0.026696322485804558, 0.05603252351284027, 0.03602519631385803, -0.009489794261753559, -0.006824833806604147, 0.004456588067114353, 0.04040730744600296, -0.005964253563433886, -0.04521328583359718, 0.015233187936246395, -0.024864066392183304, 0.05987739562988281, -0.03703832998871803, -0.02954936772584915, 0.003555179573595524, -0.07078395038843155, 0.05025246739387512, -0.03858776390552521, -0.032647691667079926, 0.029297130182385445, -0.012327942065894604, 0.025243768468499184, -0.008627922274172306, 0.01518093328922987, 0.06954599171876907, 0.013068691827356815, 0.010713309049606323, 0.0015072058886289597, -0.007432334125041962, 0.023430602625012398, -0.013247967697679996, 0.023842589929699898, 0.07117700576782227, -0.04401467368006706, -0.01106981560587883, -0.02168118767440319, 0.013353565707802773, -0.04624239727854729, -0.2760630249977112, 0.0272621251642704, -0.01257283054292202, -0.03117445483803749, 0.022055046632885933, -0.0039157141000032425, -0.0015733424806967378, -0.03293214738368988, -0.04445430636405945, 0.011750259436666965, 0.011723410338163376, -0.033382609486579895, -0.0256406981498003, 0.005796072073280811, 0.009679210372269154, 0.009077848866581917, -0.030587786808609962, -0.026468316093087196, 0.00820407085120678, 0.06137116998434067, 0.012613308615982533, -0.08477236330509186, 0.014288117177784443, 0.031450629234313965, 0.04271058365702629, 0.03729679062962532, -0.08390422910451889, 0.03357631340622902, -0.04267005994915962, -0.040937453508377075, 0.02355499006807804, -0.024538669735193253, 0.009179369546473026, -0.011634730733931065, -0.04160924255847931, -0.06373348832130432, 0.029852576553821564, 0.013233738951385021, 0.021437061950564384, -0.014875090681016445, -0.008095408789813519, -0.020098339766263962, 0.00292153749614954, -0.019724885001778603, 0.06968434900045395, 0.01762712188065052, -0.07104102522134781, 0.015166358090937138, -0.0037245110142976046, 0.07856637239456177, 0.002564870985224843, -0.03174688667058945, -0.02356201782822609, 0.05705992132425308, -0.030127888545393944, -0.04411855340003967, 0.0012722187675535679, -0.037561576813459396, -0.054494716227054596, -0.021820135414600372, 0.012293320149183273, -0.04402999207377434, -0.012958221137523651, -0.07092755287885666, -0.0043467627838253975, -0.06048911064863205, -0.06341249495744705, -0.013029913417994976, 0.04658167436718941, 0.05322355404496193, -0.047023706138134, 0.03673454001545906, -0.024878494441509247, -0.11166446655988693, -0.02189471758902073, -0.01497907005250454, -0.0031761981081217527, -0.012848526239395142, -0.017050819471478462, 0.029499977827072144, -0.060131896287202835, -0.05822082236409187, 0.014902072958648205, 0.019817564636468887, 0.03083828277885914, -0.025420932099223137, 0.002998503390699625, -0.03525036945939064, -0.028669675812125206, -0.005536628421396017, 0.06587660312652588, -0.014046614989638329, -0.029515095055103302, -0.01270749606192112, -0.03339575231075287, 0.004055967088788748, 0.012850485742092133, 0.002863379893824458, 0.0009325366700068116, 0.022491782903671265, -0.00633249944075942, -0.04177383705973625, 0.01751813106238842, -0.051118865609169006, 0.004950560163706541, 0.009461356326937675, -0.06434331089258194, 0.003798052202910185, 0.03806068375706673, 0.008168472908437252, 0.0070495083928108215, -0.021287720650434494, 0.026204045861959457, -0.06144692376255989, -0.03591752424836159, -0.005791259929537773, 0.030157562345266342, 0.018942296504974365, 0.033363115042448044, -0.04273882135748863, -0.04310479015111923, 0.032295312732458115, 0.015888476744294167, -0.013868003152310848, -0.044491853564977646, 0.00653082923963666, -0.014476400800049305, -0.00018334620108362287, 0.008973054587841034, 0.02459792047739029, -0.01858651638031006, 0.013696246780455112, 0.019480600953102112, -0.038826312869787216, 0.010904083028435707, -0.026912705972790718, -0.03939693421125412, -0.02749902382493019, 0.0005220157327130437, 0.0018553892150521278, -0.000040632054151501507, 0.018861737102270126, 0.020402483642101288, 0.03339178115129471, 0.04892181605100632, -0.002077678684145212, 0.028591318055987358, 0.003929960075765848, -0.017339101061224937, -0.015511063858866692, 0.00784727931022644, -0.04232178255915642, 0.0033557985443621874, -0.00266702426597476, 0.012667478993535042, -0.024311404675245285, 0.02549707144498825, -0.016157247126102448, -0.02737736515700817, -0.03389713540673256, 0.028247643262147903, -0.04401285573840141, -0.030654041096568108, 0.019813820719718933, -0.011999722570180893, 0.04969972372055054, -0.013265284709632397, 0.0147791039198637, -0.02513815462589264, -0.015765519812703133, 0.02570202201604843, -0.0492490716278553, 0.0010771130910143256, -0.002868550131097436, -0.0430644229054451, 0.01815447211265564, 0.001260366290807724, 0.04418375343084335, 0.0056421211920678616, -0.010457820259034634, 0.009249741211533546, -0.01763226091861725, 0.027701454237103462, -0.003445311216637492, 0.016027692705392838, 0.02002936229109764, 0.0011606845073401928, 0.004743507597595453, -0.020466433838009834, -0.013132176361978054, -0.024484282359480858, 0.015965133905410767, -0.058629874140024185, -0.010207192972302437, -0.031082339584827423, -0.05874837189912796, 0.025825971737504005, 0.03375643119215965, -0.00826168991625309, 0.03832520917057991, -0.03033536486327648, 0.006792623084038496, -0.0017608809284865856, 0.01525676529854536, 0.06544218957424164, -0.037123456597328186, -0.0013277139514684677, 0.019147269427776337, 0.006823893170803785, 0.0036504920572042465, 0.009473350830376148, -0.045601505786180496, -0.0035226510372012854, -0.01388595998287201, 0.004611961077898741, -0.017902737483382225, -0.026126760989427567, -0.03289942070841789, -0.005933593958616257, -0.00030101259471848607, 0.033712346106767654, 0.009786205366253853, -0.05655737966299057, -0.013589298352599144, -0.014300191774964333, 0.04480788856744766, -0.02212369069457054, -0.013873773626983166, 0.05275023728609085, -0.021120890974998474, 0.015627045184373856, -0.04805825650691986, 0.044292010366916656, 0.03262345492839813, -0.009467421099543571, 0.0018409370677545667, -0.056048858910799026, -0.011157899163663387, 0.005839114543050528, 0.06232945993542671, -0.018280696123838425, -0.022931566461920738, -0.03941652178764343, 0.012809785082936287, 0.0013789755757898092, 0.029386747628450394, -0.01565745286643505, -0.01555852685123682, 0.02692604623734951, 0.051637016236782074, 0.031474921852350235, 0.04097441956400871, -0.007551177870482206, -0.05717315897345543, 0.05566878244280815, -0.03696709871292114, -0.050918951630592346, -0.011547418311238289, -0.03759365156292915, 0.012458589859306812, 0.007674585096538067, 0.009920560754835606, -0.05573730543255806, 0.041234906762838364, 0.04563341662287712, 0.001686727860942483, 0.039153147488832474, -0.008023001253604889, 0.0019819571170955896, -0.02509612776339054, 0.014394350349903107, -0.07716944813728333, 0.020332597196102142, 0.035482052713632584, -0.016579637303948402, -0.03954629600048065, 0.031235866248607635, -0.045444026589393616, 0.022797631099820137, -0.058743495494127274, -0.030428171157836914, 0.06166118010878563, 0.02089369110763073, -0.004226641729474068, 0.012746929191052914, -0.04164503887295723, 0.024747401475906372, 0.06547614187002182, -0.054541006684303284, 0.00028941044001840055, -0.04683442786335945, 0.05322989076375961, -0.03560229763388634, 0.02266630530357361, -0.02259235642850399, -0.009199687279760838, 0.0544145293533802, 0.013262650929391384, -0.0059168701991438866, 0.02516930177807808, -0.03337676078081131, 0.03829469904303551, 0.03009478747844696, -0.014684581197798252, -0.029235968366265297, 0.021397260949015617, 0.020813731476664543, -0.08163973689079285, 0.06656788289546967, 0.026303404942154884, -0.004221891984343529, -0.030369646847248077, 0.06598278135061264, 0.024665843695402145, -0.03219766914844513, -0.04596294090151787, 0.028255369514226913, -0.041510920971632004, -0.024402916431427002, -0.015847666189074516, 0.013690339401364326, -0.026146527379751205, 0.056812528520822525, -0.023707298561930656, -0.003466472728177905, 0.08018177002668381, -0.0020352969877421856, -0.03964632749557495, 0.01812959834933281, 0.1041543260216713, 0.07924594730138779, 0.01780746318399906, -0.009507224895060062, 0.05900571867823601, -0.019320381805300713, -0.045114193111658096, 0.006436244584619999, -0.025831976905465126, -0.03132139891386032, -0.025997206568717957, -0.004882690962404013, 0.06991390883922577, 0.004249562509357929, 0.06490807980298996, -0.02911807782948017, -0.02081725373864174, 0.012945405207574368, 0.0368216298520565, 0.024155091494321823, 0.0002339402708457783, 0.012205438688397408, 0.045293185859918594, -0.009860885329544544, -0.02203260362148285, 0.035299234092235565, -0.031806837767362595, 0.0027029153425246477, 0.039637453854084015, -0.022227199748158455, 0.00025413688854314387, -0.02572864480316639, 0.03199177235364914, 0.06657558679580688, -0.038953810930252075, 0.0045051719062030315, -0.03282199427485466, 0.0437224842607975, -0.011512630619108677, 0.02324136160314083, -0.01703832671046257, -0.016936583444476128, 0.006734754424542189, -0.04232564568519592, -0.02394905313849449, -0.02396778017282486, -0.041728079319000244, 0.027483869343996048, -0.02369081974029541, 0.0359487347304821, -0.008660179562866688, -0.01968878135085106, -0.061145614832639694, -0.043301478028297424, -0.05253944173455238, -0.047272033989429474, -0.08258764445781708, -0.017402777448296547, -0.0036338306963443756, 0.0017747011734172702, -0.042207036167383194, -0.03384997695684433, -0.028718210756778717, -0.012544711120426655, 0.010902628302574158, -0.04649902135133743, 0.0006598721956834197, 0.024432875216007233, 0.03799626603722572, 0.010737352073192596, 0.026674017310142517, 0.044342271983623505, -0.010376605205237865, 0.004691951908171177, -0.0058489576913416386, -0.001601358875632286, 0.055866461247205734, 0.016207847744226456, -0.0031006166245788336, -0.06921980530023575, 0.02015751414000988, 0.03784835338592529, 0.003636129666119814, -0.07815280556678772, 0.026049939915537834, 0.05939042195677757, 0.020930824801325798, 0.02605302259325981, -0.029256606474518776, -0.008713415823876858, -0.046685680747032166, -0.031276751309633255, 0.014267696999013424, -0.014512653462588787, 0.043066978454589844, -0.02762388065457344, 0.07063774019479752, 0.04119426757097244, -0.016035493463277817, -0.03849131613969803, -0.021122604608535767, 0.000054502746934304014, -0.005393157247453928, -0.026202980428934097, -0.058663561940193176, -0.04478079453110695, -0.0672246664762497, -0.017728982493281364, 0.04701291769742966, -0.02659737877547741, -0.03799036517739296, 0.011962593533098698, 0.04802246019244194, -0.006649947725236416, 0.05946189910173416, -0.010162719525396824, 0.04972388222813606, -0.037646159529685974, -0.004855467472225428, -0.020089467987418175, 0.027045348659157753, 0.008785216137766838, 0.03438297286629677, 0.02971045859158039, -0.03061717189848423, 0.02156694047152996, 0.005191541276872158, 0.016862230375409126, 0.04806392267346382, -0.010050793178379536, 0.02405938319861889 ]
[ -0.06744662672281265, -0.05086354538798332, -0.005831837188452482, -0.022457126528024673, 0.06288168579339981, -0.025570586323738098, -0.011475203558802605, 0.0245212409645319, 0.013870403170585632, 0.022067008540034294, -0.0047838459722697735, -0.0669386014342308, -0.024962076917290688, -0.022584959864616394, 0.03068012371659279, -0.021132050082087517, -0.012431982904672623, -0.022030984982848167, -0.043087687343358994, 0.030883388593792915, 0.009377392008900642, -0.004766440950334072, -0.035944823175668716, -0.033262353390455246, 0.020439432933926582, 0.02699802629649639, 0.02824386954307556, -0.04601077362895012, -0.009617513045668602, -0.22383630275726318, -0.01798977702856064, -0.007826477289199829, 0.01980804093182087, 0.007110511884093285, -0.038975417613983154, 0.05877021327614784, -0.00017285364447161555, 0.052692435681819916, -0.00833109300583601, 0.05846535414457321, 0.0005612734821625054, 0.02309948019683361, -0.060976698994636536, 0.012574492022395134, 0.042779263108968735, -0.005349194165319204, -0.04603472724556923, 0.001886136014945805, 0.02343066595494747, 0.010928711853921413, -0.027085041627287865, 0.02541320212185383, -0.010049167089164257, 0.016361325979232788, 0.0023942734114825726, 0.017565084621310234, 0.03841624781489372, 0.10229086130857468, 0.04349256679415703, 0.015306847169995308, 0.014498594217002392, -0.024600300937891006, -0.14051838219165802, 0.07475390285253525, -0.031279902905225754, 0.052017662674188614, -0.03335614874958992, 0.029908861964941025, -0.00667577562853694, 0.04373028129339218, -0.009729807265102863, 0.00025634202756918967, -0.012961351312696934, 0.05874701961874962, 0.05028984323143959, -0.008570412173867226, -0.01641983538866043, 0.05294909328222275, 0.028428027406334877, 0.01065791305154562, -0.021003499627113342, -0.017556082457304, -0.03471006453037262, 0.008025934919714928, -0.012103273533284664, 0.013927271589636803, -0.026749810203909874, 0.044111546128988266, 0.0428268127143383, 0.041934434324502945, 0.035541895776987076, -0.047754012048244476, 0.03838479518890381, 0.005211681593209505, -0.12251472473144531, -0.0351560153067112, -0.0000028283857318456285, 0.007937975227832794, 0.02010074257850647, 0.41381216049194336, -0.02839832939207554, -0.0008172693196684122, 0.0489036925137043, 0.0653642863035202, -0.005459393374621868, -0.027540182694792747, -0.02136642299592495, -0.0666874423623085, -0.01122569665312767, -0.002997291972860694, 0.0365246944129467, 0.01947544701397419, 0.02544988878071308, -0.03909441828727722, -0.004360928200185299, 0.0344979427754879, -0.02017577737569809, 0.047901853919029236, -0.034771449863910675, 0.01988166570663452, -0.055113352835178375, -0.011093628592789173, -0.003730963682755828, 0.01916050724685192, 0.0119399419054389, 0.010377287864685059, 0.06169184297323227, 0.04181106388568878, 0.08079390227794647, 0.031238552182912827, 0.07826364785432816, -0.007049825508147478, -0.1005021184682846, 0.01589914783835411, -0.015194829553365707, -0.0042417640797793865, 0.04202648997306824, -0.026435432955622673, -0.01656043529510498, 0.016135238111019135, -0.02939639426767826, -0.022831439971923828, 0.06372914463281631, -0.018152715638279915, -0.03935995325446129, 0.13401241600513458, -0.0067887683399021626, -0.041551996022462845, 0.00824942346662283, -0.027882277965545654, 0.023451456800103188, 0.03882109001278877, 0.013300457037985325, -0.031138166785240173, 0.015000048093497753, 0.037748780101537704, 0.050967663526535034, -0.027398617938160896, -0.04673987999558449, -0.02011195942759514, -0.011534945107996464, -0.03233741968870163, -0.019993314519524574, 0.06399217247962952, 0.04992932453751564, -0.12492396682500839, -0.026876699179410934, 0.02510097622871399, 0.007183795794844627, -0.09730777889490128, 0.00523760449141264, 0.007044123951345682, 0.0066690039820969105, 0.01294592022895813, 0.04043401777744293, -0.010044915601611137, -0.05194886401295662, -0.010960394516587257, 0.05929415673017502, -0.004265643190592527, -0.017955973744392395, -0.00406302697956562, -0.006178374867886305, -0.03450114279985428, -0.02582070417702198, -0.044142093509435654, -0.06016822159290314, 0.010532268323004246, 0.009390241466462612, -0.02195504866540432, -0.02078108862042427, -0.06123702973127365, -0.08157886564731598, 0.025270748883485794, -0.009638188406825066, 0.008207600563764572, 0.014229129068553448, -0.007689086254686117, 0.011725123040378094, -0.021771568804979324, 0.02200586535036564, 0.033733103424310684, 0.005297563970088959, 0.06411296129226685, 0.003070981940254569, -0.011222869157791138, 0.044033944606781006, -0.04663901403546333, 0.04317109286785126, 0.04901055619120598, -0.025189245119690895, -0.0009560694452375174, -0.018190260976552963, -0.030285803601145744, 0.009721764363348484, -0.03384333476424217, -0.019729821011424065, -0.01951747015118599, -0.02665834128856659, 0.059330884367227554, -0.0330234095454216, -0.020580638200044632, -0.019390417262911797, -0.3449868857860565, -0.04993010312318802, -0.004547556396573782, 0.03140260651707649, 0.008620388805866241, -0.001428020652383566, -0.012416771613061428, 0.022528601810336113, 0.029202990233898163, -0.003148061456158757, 0.14758577942848206, -0.0074239796958863735, 0.0035281400196254253, -0.07161076366901398, 0.004812778905034065, 0.056866422295570374, -0.016640782356262207, -0.012642314657568932, -0.02586868405342102, -0.0026563801802694798, 0.019693531095981598, -0.04540284350514412, -0.044143885374069214, 0.009150676429271698, -0.011287431232631207, -0.025368046015501022, 0.11998264491558075, 0.02238164097070694, 0.031982649117708206, -0.039920587092638016, 0.034560445696115494, -0.025798093527555466, -0.027535980567336082, -0.09350957721471786, 0.020783279091119766, -0.04832335561513901, 0.0274114441126585, 0.016613278537988663, 0.04677024111151695, -0.056150536984205246, -0.06341168284416199, 0.04203081503510475, -0.04401177167892456, -0.0447041280567646, -0.03179780766367912, -0.0026124666910618544, -0.029305802658200264, -0.05305542051792145, -0.010491777211427689, 0.07935620844364166, -0.011322097852826118, 0.01817833073437214, 0.04919867590069771, -0.01135518029332161, 0.021684808656573296, -0.023936910554766655, -0.09332460910081863, -0.012606269679963589, -0.02064855769276619, -0.017395393922924995, -0.008656613528728485, 0.008381463587284088, 0.02634463645517826, -0.05483674257993698, 0.035991210490465164, 0.03286617994308472, 0.01683458499610424, -0.020544439554214478, 0.06547072529792786, -0.037180863320827484, -0.021941477432847023, 0.06926761567592621, -0.0026643159799277782, 0.0033340617083013058, 0.07553790509700775, 0.02659192495048046, 0.004119636956602335, 0.019024675711989403, 0.04943772777915001, 0.001999397063627839, 0.023068036884069443, 0.004347388632595539, 0.0276961587369442, -0.042631711810827255, 0.009544910863041878, 0.017487946897745132, -0.019664190709590912, -0.00032335714786313474, 0.025598078966140747, 0.014503509737551212, -0.016676053404808044, -0.007908036932349205, -0.006749257445335388, -0.0744706243276596, 0.05528918281197548, -0.005956102162599564, -0.2515328526496887, 0.02462163195014, 0.08954373002052307, 0.03533022850751877, -0.009608081541955471, -0.012180534191429615, 0.02583475410938263, -0.07041342556476593, -0.0026157754473388195, 0.011999599635601044, 0.0007726119947619736, 0.054037321358919144, -0.0015493319369852543, -0.008590691722929478, 0.0021230874117463827, -0.003651849227026105, 0.056808482855558395, 0.021169237792491913, 0.060522254556417465, 0.00044808423263020813, 0.02003290131688118, -0.019937800243496895, 0.15790955722332, 0.02942625992000103, 0.021784164011478424, 0.0033306009136140347, -0.03490220755338669, 0.006023490335792303, 0.06551603227853775, 0.026719387620687485, -0.01282229833304882, -0.029396260157227516, 0.06365001946687698, 0.03361005336046219, 0.04839695617556572, -0.06521423906087875, -0.01020062156021595, 0.036262452602386475, 0.005584880709648132, -0.022774960845708847, 0.017737722024321556, -0.0041164434514939785, -0.06705326586961746, 0.0027093435637652874, 0.05635126307606697, 0.009589659981429577, -0.01971004530787468, -0.0064158132299780846, -0.06301580369472504, -0.01521426159888506, -0.02152268774807453, -0.054215021431446075, -0.057303860783576965, -0.01598668470978737, -0.012306778691709042, 0.08135465532541275, 0.022276615723967552, -0.055511340498924255, 0.003768764901906252, 0.019792921841144562, 0.011926377192139626, -0.06483448296785355, 0.05348997190594673, 0.0005156417610123754, 0.018805306404829025 ]
[ 0.03038434311747551, 0.017283355817198753, 0.0005993652739562094, -0.001456209341995418, 0.0009652664884924889, 0.03680300712585449, -0.01953643187880516, 0.006617506965994835, -0.013039766810834408, -0.0018014133675023913, -0.01802082173526287, 0.021374812349677086, 0.010577917098999023, -0.01755395345389843, 0.03415236249566078, 0.012629300355911255, -0.021467814221978188, 0.007488757837563753, 0.0467391312122345, 0.017135776579380035, 0.009522343054413795, 0.03022112511098385, 0.010333019308745861, 0.013468501158058643, -0.0042670718394219875, 0.046856530010700226, -0.04384028911590576, -0.027661049738526344, 0.006989414803683758, -0.1412709355354309, -0.006042879540473223, -0.008365314453840256, 0.022515442222356796, 0.020471861585974693, -0.03915512189269066, 0.036404889076948166, -0.056112952530384064, -0.023701876401901245, -0.055008597671985626, 0.014410020783543587, 0.0276542566716671, -0.008338885381817818, -0.021674156188964844, 0.004562349058687687, -0.026524841785430908, -0.011716635897755623, -0.011611340567469597, -0.029073087498545647, 0.000018960527086164802, 0.0008165386971086264, -0.022969454526901245, -0.05122673884034157, -0.008697050623595715, -0.008462000638246536, -0.01571904495358467, -0.0008621806628070772, -0.05235967040061951, 0.013981426134705544, 0.03193323314189911, -0.0217305775731802, 0.046853046864271164, 0.011135173961520195, -0.029018646106123924, -0.03876662626862526, -0.014364318922162056, -0.004907675087451935, 0.01923421211540699, -0.024936389178037643, 0.003374916035681963, -0.010238908231258392, 0.0024216643068939447, 0.053637370467185974, -0.05155184864997864, -0.04909408465027809, -0.057713717222213745, -0.019327539950609207, -0.023087628185749054, 0.008579367771744728, -0.007730027660727501, 0.00005634408807964064, -0.015365748666226864, -0.012595468200743198, -0.01740795001387596, 0.04952452704310417, 0.022901451215147972, 0.027555491775274277, -0.03501591458916664, 0.015536230057477951, 0.038819849491119385, 0.015564465895295143, -0.046565037220716476, 0.02128857932984829, 0.009532076306641102, 0.019887028262019157, -0.0714072659611702, 0.01775268092751503, -0.037772566080093384, -0.029835360124707222, -0.01811828464269638, 0.809912919998169, 0.012613421306014061, 0.023870620876550674, 0.0016944032395258546, 0.005441995803266764, 0.018152177333831787, -0.0023578708060085773, 0.017956508323550224, -0.02482473850250244, -0.013078241609036922, 0.003070503007620573, 0.02455996535718441, 0.012437752448022366, 0.04011189565062523, 0.008311813697218895, 0.011784969829022884, 0.04202810302376747, 0.03189941495656967, -0.0007539313519373536, 0.03483697772026062, 0.03444662690162659, 0.003902686759829521, -0.030934052541851997, 0.023804891854524612, -0.006998782977461815, -0.0029654507525265217, -0.1886066496372223, -0.005289653316140175, -7.238993228739137e-33, 0.030331719666719437, -0.03472830355167389, 0.06482172012329102, -0.01417221873998642, 0.003609052626416087, -0.01494666375219822, -0.020854733884334564, -0.04473511129617691, -0.009818482212722301, -0.040206532925367355, -0.03063606284558773, 0.03171694278717041, 0.013283886946737766, 0.02672773413360119, 0.057592809200286865, -0.0059972163289785385, -0.003476900514215231, 0.033792153000831604, 0.030001189559698105, -0.01629263535141945, -0.0006917609134688973, -0.0005956958630122244, -0.003929849714040756, 0.009070119820535183, 0.01831347681581974, 0.03654615581035614, 0.021264897659420967, 0.012180693447589874, -0.02570180781185627, -0.049592018127441406, -0.009880641475319862, -0.027318324893712997, -0.0008422110113315284, -0.0015041307779029012, 0.06080053746700287, -0.021003609523177147, -0.047641851007938385, 0.008222692646086216, -0.0588652640581131, -0.01242250856012106, -0.015323704108595848, -0.016588516533374786, -0.02755490317940712, -0.020035093650221825, -0.03442339226603508, -0.01888442598283291, 0.029711224138736725, 0.025932053104043007, -0.020270098000764847, 0.05512768775224686, 0.014851665124297142, 0.04860825091600418, -0.00039962679147720337, -0.059027623385190964, -0.030682599171996117, 0.00795125775039196, 0.003512381576001644, 0.047139376401901245, -0.016837429255247116, 0.034189771860837936, 0.03975732997059822, -0.005072656087577343, 0.011223886162042618, 0.023816702887415886, 0.001719341496936977, 0.0007328941719606519, -0.0004598741070367396, 0.026431884616613388, 0.013221397064626217, -0.01696787029504776, -0.048460908234119415, 0.026893336325883865, 0.005914345849305391, -0.02207745797932148, 0.04297424107789993, -0.01803635247051716, -0.0025174939073622227, 0.006529375910758972, 0.01758989319205284, 0.01149987243115902, 0.023572765290737152, -0.05335036292672157, 0.0046046702191233635, -0.03716163709759712, -0.051849156618118286, 0.009242450818419456, 0.050651662051677704, -0.014278562739491463, -0.02691723220050335, 0.051458921283483505, 0.017719663679599762, 0.017613092437386513, -0.020305300131440163, 0.032572392374277115, -0.0016249249456450343, 6.6768005658309e-33, -0.030060764402151108, -0.025774111971259117, 0.034591782838106155, -0.007440466899424791, 0.05492858961224556, -0.009846038185060024, 0.03419655188918114, 0.011522783897817135, -0.050314079970121384, 0.040917105972766876, -0.028570517897605896, 0.006091536954045296, -0.042206235229969025, 0.024129675701260567, 0.0794183760881424, -0.011909279972314835, 0.03248393163084984, 0.006035725586116314, -0.02627936750650406, -0.01156691089272499, -0.0017270545940846205, 0.03472957760095596, 0.012698940932750702, 0.011598476208746433, 0.016026955097913742, 0.035011857748031616, 0.026299748569726944, 0.004112046677619219, -0.03553662449121475, 0.009447910822927952, 0.028344256803393364, -0.01773245632648468, -0.0045292251743376255, -0.011808604001998901, -0.016866447404026985, 0.03623471036553383, -0.02423982322216034, 0.011696889065206051, 0.05401242896914482, -0.03620827570557594, 0.034064698964357376, 0.002540523884817958, 0.022407326847314835, 0.004430053755640984, 0.021535072475671768, -0.004468675237149, -0.01991056092083454, 0.005410917103290558, -0.029899343848228455, 0.0079428656026721, 0.0159609355032444, 0.041735272854566574, -0.026006454601883888, 0.015318166464567184, 0.07167252153158188, -0.014506271108984947, -0.02775079943239689, 0.011525537818670273, -0.04899447411298752, -0.04098479449748993, -0.03571253642439842, -0.018576884642243385, -0.03738759458065033, 0.05595710501074791, -0.0030360568780452013, -0.05000630393624306, -0.0325070321559906, -0.02496468275785446, -0.025656498968601227, 0.030244553461670876, -0.03721622750163078, -0.008714262396097183, -0.025802267715334892, 0.04049583896994591, -0.021720001474022865, -0.03988400101661682, -0.0167880579829216, 0.030638456344604492, -0.009306678548455238, 0.014882147312164307, 0.020912591367959976, 0.009030312299728394, 0.037157732993364334, -0.03946403041481972, 0.01406452152878046, 0.02788768708705902, -0.010550405830144882, 0.012745275162160397, 0.025679022073745728, 0.012023727409541607, 0.011382448486983776, -0.014703218825161457, -0.058683235198259354, 0.019282687455415726, -0.00132892990950495, -1.2385262593284097e-8, -0.016133861616253853, 0.03848983347415924, -0.014514170587062836, 0.01937832497060299, 0.020592492073774338, 0.01794160157442093, -0.0012474915711209178, -0.011839051730930805, 0.008680207654833794, 0.009297193959355354, 0.055196892470121384, -0.06835755705833435, 0.020520571619272232, 0.026122957468032837, 0.02880103699862957, -0.01842889003455639, -0.020435459911823273, 0.02236492931842804, 0.0264913160353899, 0.00031442465842701495, -0.01714450865983963, 0.003598057432100177, 0.0008668763912282884, 0.016870612278580666, 0.01736672967672348, -0.028816476464271545, 0.009162121452391148, -0.05254405736923218, 0.0011118166148662567, 0.0055643171072006226, 0.019038081169128418, -0.02357272431254387, -0.025878963991999626, -0.046382833272218704, -0.025053715333342552, -0.03629967197775841, 0.031427815556526184, -0.03691622614860535, -0.00031928723910823464, 0.03523808717727661, -0.03219292685389519, 0.01214997936040163, 0.01780160702764988, -0.018909504637122154, -0.002649950096383691, 0.02930980734527111, 0.006544048432260752, -0.03467633202672005, 0.01124083623290062, -0.030704887583851814, 0.015290521085262299, -0.010216161608695984, -0.009807470254600048, 0.026894329115748405, 0.02693340741097927, 0.014844445511698723, 0.008968263864517212, -0.014687273651361465, -0.050602544099092484, -0.014570360071957111, 0.010071488097310066, 0.009150872938334942, -0.031420450657606125, -0.024674149230122566 ]
leaflet-strava-polylines-osm
https://markhneedham.com/blog/2017/04/29/leaflet-strava-polylines-osm
false
2017-05-27 11:31:08
GraphQL-Europe: A trip to Berlin
[ "graphql", "graphqleu" ]
[ "Conferences" ]
Last weekend my colleagues https://twitter.com/lyonwj?lang=en[Will], https://twitter.com/mesirii?lang=en[Michael], https://twitter.com/oskarhane?lang=en[Oskar], and I went to Berlin to spend Sunday at the https://graphql-europe.org/[GraphQL Europe] conference in Berlin. image::{{<siteurl>}}/uploads/2017/05/IMG_20170521_084449.jpg[IMG 20170521 084449] Neo4j sponsored the conference as we've been experimenting with building a GraphQL to Neo4j integration and wanted to get some feedback from the community as well as learn what's going on in GraphQL land. Will and Michael have https://neo4j.com/blog/graphql-neo4j-graph-database-integration/[written about their experience] where they talk more about the hackathon we hosted so I'll cover it more from a personal perspective. The first thing that stood out for me was how busy it was - I knew GraphQL was pretty hipster but I wasn't expecting there to be ~ 300 attendees. The venue was amazing - the nHow Hotel is located right next to the Spree River so there were great views to be had during the breaks. It also helped that it was really sunny for the whole day! image::{{<siteurl>}}/uploads/2017/05/IMG_20170521_103636.jpg[IMG 20170521 103636] I spent most of the day hanging out at the Neo4j booth which was good fun - several people pointed out that an integration between Neo4j and GraphQL made a lot of sense given that *GraphQL talks about the application graph and Neo4j graphs in general*. I managed to attend a few of the talks, including one by Brooks Swinnerton from GitHub who announced that they'd be https://developer.github.com/v4/[moving to GraphQL for v4 of their API]. The most interesting part of the talk for me was when Brooks said they'd directed requests for their REST API to the GraphQL one behind the scenes for a while now to check that it could handle the load. ____ GitHub is moving to GraphQL for v4 of our API because it offers significantly more flexibility for our integrators. The ability to define precisely the data you want--and only the data you want--is a powerful advantage over the REST API v3 endpoints. ____ I think twitter may be doing something similar based on this tweet by https://twitter.com/tgvashworth[Tom Ashworth]: ++++ <blockquote class="twitter-tweet"><p lang="en" dir="ltr">Heh. Twitter GraphQL is quietly serving more than 40 million queries per day. Tiny at Twitter scale but not a bad start.</p>&mdash; Tom Ashworth (@tgvashworth) <a href="https://twitter.com/tgvashworth/status/862049341472522240?ref_src=twsrc%5Etfw">May 9, 2017</a></blockquote> <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script> ++++ From what I could tell the early pick up of GraphQL seems to be from the front end of applications - several of the attendees had attended https://www.react-europe.org/[ReactEurope] a couple of days earlier - but micro services were mentioned in a few of the talks and it was suggested that GraphQL works well in this world as well. It was a fun day out so thanks to the folks at https://www.graph.cool/[Graphcool] for organising!
null
null
[ 0.016848566010594368, -0.015781013295054436, 0.02754242904484272, 0.03898635506629944, 0.07219555974006653, 0.01009063795208931, 0.044824663549661636, 0.048510752618312836, 0.01597769930958748, -0.013180887326598167, -0.010767905041575432, -0.02363184094429016, -0.0686466172337532, 0.028229830786585808, -0.0015887628542259336, 0.051357876509428024, 0.055399082601070404, 0.016985882073640823, 0.0038711405359208584, -0.009063619188964367, 0.03900577500462532, 0.055698975920677185, 0.024337274953722954, 0.03211835399270058, 0.034218598157167435, 0.004588786978274584, 0.012566348537802696, 0.0019942554645240307, -0.04788496345281601, -0.01874532178044319, 0.03179977834224701, 0.013102664612233639, 0.015323709696531296, 0.013721879571676254, 0.020334940403699875, -0.003796432865783572, -0.035259682685136795, 0.013498673215508461, -0.009136498905718327, 0.0019277168903499842, -0.07794273644685745, 0.047837354242801666, 0.00005912223787163384, 0.02746499516069889, -0.04685647040605545, 0.0032285440247505903, -0.042256612330675125, 0.04841803014278412, 0.01871448941528797, 0.0026331923436373472, -0.0869268849492073, 0.023419030010700226, -0.002752835163846612, 0.03663276508450508, -0.026219721883535385, 0.03520168736577034, 0.011938351206481457, -0.07416490465402603, 0.025540264323353767, -0.01417278777807951, 0.003990026656538248, -0.009654171764850616, 0.0116186011582613, 0.02517075277864933, 0.01956360787153244, -0.025288861244916916, -0.012750525027513504, 0.054924268275499344, -0.03276350349187851, 0.01671125553548336, 0.0024117615539580584, 0.037334222346544266, -0.014896431006491184, -0.01179959625005722, 0.005617465358227491, -0.05951717868447304, 0.007009740453213453, 0.07251860946416855, 0.040105439722537994, 0.03669150173664093, -0.03468286618590355, 0.009391355328261852, 0.014670189470052719, 0.034149251878261566, -0.006045208778232336, -0.03276316076517105, -0.016780557110905647, -0.04599021375179291, -0.06920012831687927, 0.033144332468509674, 0.011855020187795162, -0.061101071536540985, 0.008454620838165283, 0.020171435549855232, -0.01050255261361599, 0.024250943213701248, 0.018632913008332253, 0.005197960417717695, 0.008533650077879429, -0.03515799343585968, -0.031488530337810516, -0.04046160355210304, -0.016933778300881386, 0.006405646912753582, -0.08894718438386917, -0.03638380020856857, -0.040274009108543396, -0.005566235166043043, 0.02163855731487274, -0.012644318863749504, -0.018402358517050743, 0.01616189070045948, 0.011139549314975739, 0.011964378878474236, -0.055984146893024445, 0.06515088677406311, 0.024924006313085556, -0.03726145625114441, -0.024519499391317368, -0.015572265721857548, 0.04229124262928963, 0.029312431812286377, 0.003347681602463126, 0.07881449162960052, -0.01711120270192623, 0.011768561787903309, -0.01613098569214344, 0.047947511076927185, -0.02690570056438446, -0.05189714953303337, -0.00983275007456541, 0.05657469853758812, -0.02504323050379753, -0.007020539604127407, -0.0037727486342191696, -0.04592631757259369, 0.005163539666682482, 0.019713452085852623, 0.035844895988702774, 0.022243009880185127, -0.000699164520483464, -0.06355348229408264, 0.009206743910908699, 0.014593810774385929, 0.02937835082411766, 0.011299029923975468, -0.018596459180116653, -0.033067282289266586, -0.021366018801927567, -0.019083252176642418, 0.012302366085350513, 0.0071857646107673645, 0.005196808837354183, -0.03906302899122238, 0.03188353404402733, 0.0876372680068016, 0.03156425431370735, 0.004621485713869333, -0.024492133408784866, 0.02967049926519394, 0.02626083977520466, 0.046369537711143494, 0.016849683597683907, 0.04158799722790718, 0.0017556519014760852, -0.03392546623945236, -0.015826841816306114, 0.04626976326107979, 0.003912186715751886, 0.014612074010074139, -0.035162292420864105, -0.06576567143201828, 0.05570608377456665, -0.03996298089623451, -0.028495224192738533, 0.05250541865825653, 0.09369760006666183, 0.015730643644928932, 0.017681170254945755, 0.005463733337819576, -0.09076641499996185, 0.03363090753555298, 0.02610965631902218, 0.027087433263659477, 0.00978060718625784, -0.016050389036536217, 0.06678801774978638, 0.027109796181321144, 0.008145083673298359, 0.04420493543148041, -0.0841294452548027, -0.08640751242637634, -0.017603309825062752, -0.012783353216946125, 0.060220006853342056, -0.03228775039315224, 0.040915850549936295, 0.03575390577316284, -0.006916663609445095, 0.04398531839251518, 0.00904698297381401, -0.012733208015561104, 0.018231546506285667, -0.036230649799108505, -0.05982397124171257, 0.06687609851360321, 0.022281482815742493, -0.05602191016077995, -0.07260255515575409, 0.0029420473147183657, -0.02120041288435459, -0.011004931293427944, 0.034394461661577225, -0.04067122936248779, 0.025752153247594833, 0.016995646059513092, 0.0377986915409565, -0.02309088222682476, 0.01995299570262432, -0.030152246356010437, 0.03507336974143982, 0.005747037939727306, -0.018495889380574226, 0.020331382751464844, 0.018057210370898247, 0.10014908015727997, 0.05121269077062607, -0.030271029099822044, -0.04871608689427376, 0.02606077678501606, 0.018172938376665115, -0.029518721625208855, 0.004791895858943462, -0.024599775671958923, -0.0031041891779750586, -0.021207086741924286, -0.041991546750068665, -0.040275126695632935, 0.009400737471878529, -0.0372726172208786, 0.027436478063464165, 0.055778618901968, -0.026528295129537582, 0.05971148610115051, -0.0021867055911570787, 0.005964437499642372, -0.00983387976884842, -0.0431230366230011, -0.03566354885697365, 0.013160254806280136, 0.008430087938904762, -0.019081171602010727, 0.04106789454817772, -0.02557947486639023, 0.0059830192476511, -0.03311280161142349, 0.000016814310583868064, 0.054165713489055634, 0.05243925750255585, 0.07908658683300018, 0.0009354304056614637, 0.02527480013668537, -0.04286593571305275, 0.03096776083111763, -0.00803621206432581, -0.03663751110434532, -0.05457603558897972, -0.06049871817231178, 0.018015706911683083, 0.024624235928058624, 0.03273379057645798, -0.00009354078065371141, 0.023921454325318336, 0.003540357807651162, 0.008398761041462421, -0.02079862914979458, 0.002336402190849185, 0.00933939777314663, -0.008232506923377514, -0.035077016800642014, -0.04060915485024452, 0.07210017740726471, -0.045352715998888016, -0.01691410318017006, -0.007461405824869871, -0.06423481553792953, 0.0586685948073864, -0.05502454191446304, -0.021211795508861542, 0.0013415830908343196, 0.030960753560066223, 0.04021350294351578, 0.020934540778398514, -0.01325930655002594, 0.05667605623602867, -0.0018557884031906724, 0.01989586278796196, -0.007059768307954073, -0.030969318002462387, 0.043985944241285324, -0.022534843534231186, 0.017043069005012512, 0.045919232070446014, -0.00915466994047165, 0.012540453113615513, -0.04003174230456352, 0.029916906729340553, -0.023847216740250587, -0.27581918239593506, 0.031219346448779106, -0.007311014924198389, -0.0475439727306366, -0.0010223888093605638, -0.014207100495696068, -0.0023300047032535076, -0.02875753678381443, -0.022587468847632408, -0.012033294886350632, -0.011591151356697083, -0.03880251571536064, -0.025123203173279762, 0.030659938231110573, 0.02209705114364624, 0.012041425332427025, 0.006446912884712219, -0.04331543669104576, 0.013194894418120384, 0.045237764716148376, 0.000058946196077158675, -0.04879402741789818, -0.008043605834245682, 0.014320663176476955, 0.027948038652539253, 0.040511153638362885, -0.11604016274213791, 0.02456815354526043, -0.050435248762369156, -0.006068817339837551, 0.00046802067663520575, -0.01340334489941597, 0.0025688479654490948, 0.0029530515894293785, -0.020480742678046227, -0.0007760622538626194, 0.037650153040885925, -0.0011905583087354898, -0.005164229776710272, 0.010631797835230827, -0.005862335208803415, -0.0283155906945467, -0.0281358789652586, -0.004049558192491531, 0.08573934435844421, 0.010418199934065342, -0.0934588834643364, 0.01030805055052042, -0.00025801474112086, 0.05559438839554787, -0.02728630229830742, -0.024027884006500244, -0.016720987856388092, 0.025348767638206482, -0.007668259087949991, -0.021485645323991776, -0.029070822522044182, -0.018252389505505562, -0.04673396795988083, -0.03648292273283005, -0.010637392289936543, -0.0411052368581295, 0.011188609525561333, -0.0521489717066288, -0.02497255802154541, -0.055802226066589355, -0.06389964371919632, -0.028552616015076637, 0.0741848573088646, 0.005340198986232281, -0.016746196895837784, 0.040817439556121826, -0.008569994010031223, -0.09445048123598099, -0.026661505922675133, -0.0008396522607654333, -0.01780330389738083, 0.002457215916365385, 0.028881987556815147, 0.044692523777484894, -0.03543416038155556, -0.06864633411169052, -0.006282471586018801, 0.03117489442229271, 0.027235548943281174, -0.004715677350759506, 0.02281632274389267, -0.013935061171650887, -0.029017101973295212, 0.01669716276228428, 0.05235965549945831, -0.03289708122611046, -0.03231311962008476, -0.017279690131545067, 0.00564219243824482, 0.03529449924826622, 0.00748427165672183, -0.008117244578897953, 0.003296036273241043, 0.06697849184274673, 0.016065068542957306, -0.05603398010134697, 0.02042824774980545, -0.013720492832362652, -0.007320120930671692, 0.007005521561950445, -0.04496074095368385, 0.00041286100167781115, 0.02952583134174347, 0.0326317697763443, -0.008133364841341972, -0.020179597660899162, 0.031920865178108215, -0.04834527149796486, -0.03209790959954262, 0.0014718440361320972, 0.012641970999538898, 0.04001845791935921, 0.031858962029218674, -0.022220419719815254, -0.05285750702023506, 0.02789359539747238, 0.014652220532298088, 0.010274208150804043, -0.04147956147789955, -0.011233686469495296, -0.0344422422349453, -0.026351802051067352, 0.014769844710826874, 0.014399693347513676, -0.026631399989128113, 0.026087647303938866, 0.018991602584719658, -0.03553425893187523, 0.041069395840168, -0.026421483606100082, -0.04843246191740036, -0.04037667438387871, 0.028509968891739845, -0.007713420782238245, -0.004824099130928516, 0.037575509399175644, 0.001369777717627585, 0.02971220575273037, 0.027274612337350845, 0.019437333568930626, 0.010620570741593838, 0.007544985506683588, 0.026472346857190132, 0.00812456849962473, 0.001048888429068029, -0.052490074187517166, 0.005908168386667967, -0.027201008051633835, -0.00004769478618982248, -0.009355010464787483, 0.07254402339458466, -0.01557872723788023, -0.024374837055802345, -0.0011437992798164487, 0.01985253393650055, -0.06017687916755676, -0.022228984162211418, 0.011879661120474339, 0.0026213976088911295, 0.05460193753242493, -0.030836887657642365, 0.01437633577734232, -0.01720929704606533, -0.03035602904856205, 0.007303370162844658, 0.031795427203178406, -0.03817730024456978, 0.009435160085558891, 0.020377321168780327, -0.0006627331604249775, -0.019074639305472374, 0.026424787938594818, 0.05678043141961098, 0.015184162184596062, -0.015619845129549503, 0.003450216492637992, -0.0115998275578022, 0.045776791870594025, 0.06193302944302559, 0.04256032034754753, -0.005489642731845379, -0.0005056114168837667, -0.0014472391922026873, -0.005537222605198622, -0.01701688952744007, 0.017442695796489716, -0.012671013362705708, 0.0005208381917327642, -0.027363726869225502, -0.07821914553642273, 0.06937219202518463, -0.009430251084268093, 0.0027725212275981903, 0.03502533957362175, -0.004553243517875671, -0.004491874948143959, -0.025248467922210693, 0.03673454746603966, 0.049497365951538086, -0.0652879849076271, -0.025999631732702255, 0.006388870067894459, -0.006446404382586479, -0.0015224020462483168, 0.003092752071097493, -0.05748164281249046, -0.03177441656589508, -0.016761165112257004, 0.01212046854197979, -0.04401416704058647, -0.02328077144920826, -0.0032848988194018602, -0.0018917913548648357, 0.005152670666575432, 0.009083825163543224, -0.002515416592359543, -0.000560021202545613, -0.02747790329158306, -0.01824372075498104, 0.052838634699583054, -0.045578617602586746, 0.015316114760935307, -0.006081548519432545, -0.030153581872582436, 0.015818407759070396, -0.025085700675845146, 0.01238197647035122, 0.03282874450087547, -0.022403597831726074, 0.022541917860507965, -0.056247562170028687, -0.0027245974633842707, -0.02303452044725418, 0.04932089149951935, -0.01728183776140213, -0.03338561952114105, -0.056805361062288284, -0.017944511026144028, -0.05440187454223633, 0.01995982602238655, -0.02428276650607586, 0.03875987231731415, 0.020414309576153755, 0.02058377116918564, 0.015327570959925652, 0.04887364059686661, -0.02271135523915291, -0.017492219805717468, 0.036457233130931854, -0.04967809468507767, -0.03263960778713226, -0.030309228226542473, -0.05833343788981438, -0.023857248947024345, -0.003765200264751911, 0.006142906378954649, -0.019058309495449066, 0.06350777298212051, 0.023897619917988777, 0.016715925186872482, 0.032573480159044266, -0.013517647050321102, 0.014268839731812477, -0.014532729983329773, -0.019252510741353035, -0.08135127276182175, -0.006702964194118977, 0.03296123817563057, -0.015527577139437199, -0.006627872586250305, 0.005917341914027929, -0.01685231365263462, 0.0228792242705822, -0.07217100262641907, -0.021856384351849556, 0.028262438252568245, -0.020975686609745026, 0.02759806253015995, 0.007693878840655088, -0.06655869632959366, 0.007563094142824411, 0.030591310933232307, -0.0394035279750824, -0.011675790883600712, -0.014444449916481972, 0.04901457205414772, -0.03987445682287216, 0.06674734503030777, -0.013330632820725441, -0.021700510755181313, 0.08012145012617111, 0.023700760677456856, 0.006919727195054293, 0.05909135565161705, -0.010781156830489635, 0.028723642230033875, 0.0419311486184597, 0.004679043777287006, 0.0011339468182995915, 0.042007844895124435, -0.020951509475708008, -0.054963868111371994, 0.022973069921135902, 0.01386038213968277, -0.024689283221960068, -0.03761476278305054, 0.07351898401975632, 0.026134565472602844, -0.032716311514377594, -0.029777243733406067, 0.022510087117552757, -0.04619685932993889, -0.011514171957969666, -0.045269764959812164, 0.0038165454752743244, -0.049017008394002914, 0.04244464263319969, -0.021232903003692627, 0.0010117447236552835, 0.07959351688623428, 0.020113689824938774, -0.009260930120944977, -0.021136367693543434, 0.1020282506942749, 0.08665263652801514, 0.055445048958063126, 0.011684335768222809, 0.07020114362239838, -0.029883751645684242, -0.03884376958012581, -0.0042233653366565704, 0.011711597442626953, -0.04789605364203453, -0.009869136847555637, 0.02258426696062088, 0.07109241932630539, -0.03857871890068054, 0.09036314487457275, -0.017191562801599503, -0.017010079696774483, -0.012824616394937038, 0.015907656401395798, 0.0224982351064682, 0.07133924961090088, 0.004411112982779741, 0.03160073608160019, -0.03298162668943405, -0.0456259585916996, 0.034378618001937866, -0.036432698369026184, -0.01785077527165413, 0.04199468344449997, -0.0066064586862921715, 0.013708418235182762, 0.02974526584148407, 0.052202410995960236, 0.08446433395147324, -0.05412705987691879, 0.022358521819114685, 0.008604013361036777, 0.012015098705887794, 0.011074000969529152, 0.03145190328359604, -0.03191956505179405, 0.005250283982604742, -0.006223273929208517, -0.04922911897301674, -0.015377945266664028, -0.023342305794358253, -0.03578264266252518, 0.03321798890829086, -0.03838283196091652, -0.01853393390774727, 0.006078261882066727, -0.021010544151067734, -0.0043335650116205215, -0.059461865574121475, -0.023266440257430077, -0.051503248512744904, -0.08077773451805115, -0.023011205717921257, 0.00704702315852046, -0.010590185411274433, -0.02923915535211563, 0.003797922981902957, -0.04694151133298874, -0.01917870156466961, 0.04387768357992172, -0.03930813819169998, -0.0037766587920486927, 0.0033338929060846567, 0.022288016974925995, -0.004030175972729921, 0.01830839365720749, 0.05079438164830208, 0.006455221679061651, 0.00643658172339201, -0.021282538771629333, 0.05389395356178284, 0.032900210469961166, 0.029324229806661606, -0.014949589036405087, -0.10073511302471161, 0.019857484847307205, 0.02938968874514103, -0.03252362459897995, -0.07598433643579483, 0.031884822994470596, 0.04702329635620117, 0.01212308555841446, 0.034685127437114716, 0.0030839168466627598, -0.019740935415029526, -0.030406296253204346, 0.019045544788241386, -0.012263071723282337, -0.0027277255430817604, 0.03480022773146629, -0.008406740613281727, 0.08244062960147858, 0.044407233595848083, -0.02465774118900299, -0.03634592518210411, -0.027789166197180748, 0.007064888719469309, -0.008849927224218845, -0.017786812037229538, -0.04950673133134842, -0.0337645560503006, -0.09706839919090271, -0.03414081409573555, 0.012041877955198288, -0.024170979857444763, -0.02394188940525055, 0.019620811566710472, 0.03314671665430069, -0.007209123577922583, 0.026099663227796555, -0.04603756219148636, 0.03795904666185379, -0.00893758051097393, -0.012257101945579052, -0.047516752034425735, -0.013329396955668926, -0.0014347959076985717, 0.02667543664574623, 0.012506693601608276, -0.049816615879535675, 0.0015363387065008283, -0.017948221415281296, 0.013870893977582455, 0.015925468876957893, 0.041359104216098785, -0.005786193069070578 ]
[ -0.05277152732014656, -0.03686550259590149, -0.0521552674472332, -0.016841279342770576, 0.05142071098089218, -0.018971234560012817, -0.041938912123441696, 0.03455347195267677, 0.0015419794945046306, -0.039673175662755966, 0.016064221039414406, -0.02089647389948368, 0.005701148882508278, 0.02059147134423256, 0.08316920697689056, 0.020527392625808716, -0.016054732725024223, -0.09955770522356033, -0.017836259678006172, 0.028194453567266464, -0.040466539561748505, -0.06049124896526337, -0.0027537604328244925, -0.049112580716609955, -0.0036026693414896727, 0.025188006460666656, 0.04967726022005081, -0.05230474844574928, -0.014614637941122055, -0.19649820029735565, 0.004639304243028164, 0.010620204731822014, 0.028736528009176254, -0.010327456519007683, 0.013373838737607002, 0.01821206696331501, 0.05150880292057991, -0.008594673126935959, -0.015157768502831459, 0.03816257044672966, 0.01418203767389059, -0.016180632635951042, -0.026822030544281006, 0.0007951301522552967, 0.07186292856931686, -0.012789377011358738, 0.00882195495069027, 0.004411241505295038, -0.05244656652212143, 0.028468947857618332, -0.04721226170659065, -0.02048524282872677, -0.006737617310136557, -0.025230415165424347, 0.008263956755399704, 0.05422560125589371, 0.03192667290568352, 0.06894418597221375, 0.004781631287187338, 0.013243834488093853, 0.03037087433040142, 0.0026815736200660467, -0.11502695828676224, 0.08496405184268951, 0.02080526575446129, 0.023453284054994583, -0.05368206650018692, -0.021461764350533485, 0.009168042801320553, 0.08143492788076401, 0.045889712870121, -0.03336193040013313, -0.009233038872480392, 0.028990020975470543, 0.025471650063991547, 0.019353406503796577, 0.010911723598837852, 0.03678014129400253, 0.014061410911381245, -0.04656599089503288, -0.016172798350453377, 0.011640019714832306, -0.032778140157461166, -0.0139900678768754, -0.04737416282296181, 0.012139453552663326, -0.028849054127931595, 0.07646211236715317, -0.007775592152029276, 0.030819477513432503, 0.036846328526735306, 0.005793517455458641, 0.049313511699438095, -0.016473671421408653, -0.07570542395114899, -0.03002195805311203, 0.014647449366748333, 0.023377656936645508, 0.0020517753437161446, 0.44474083185195923, -0.00046925924834795296, -0.008584207855165005, 0.05533191189169884, 0.04860132932662964, -0.026760263368487358, -0.030373528599739075, 0.009310094639658928, -0.0716383084654808, 0.029989544302225113, -0.005114982835948467, -0.0030075309332460165, -0.025396157056093216, 0.08078086376190186, -0.05678394436836243, 0.008312057703733444, 0.017712708562612534, 0.06564880162477493, 0.04285102337598801, -0.009486429393291473, -0.003384228330105543, -0.023552337661385536, 0.030009064823389053, 0.0217660553753376, -0.0092688063159585, 0.014016585424542427, -0.010608455166220665, 0.02124626189470291, 0.04540536180138588, 0.037348128855228424, 0.014079191721975803, 0.05195944011211395, 0.027288073673844337, -0.06416969746351242, 0.037448637187480927, -0.018109992146492004, -0.02296370454132557, 0.03586537763476372, -0.05439958721399307, 0.00031009179656393826, 0.04560043662786484, 0.014151201583445072, 0.003880959004163742, 0.023825282230973244, -0.013292388990521431, -0.03990991786122322, 0.12149497121572495, 0.018363868817687035, -0.05895746499300003, -0.0066559212282299995, -0.061014268547296524, 0.011595278047025204, 0.040761180222034454, 0.008246009238064289, -0.05246920883655548, 0.002786113880574703, 0.021995725110173225, 0.08863335847854614, 0.0019861748442053795, -0.05874710902571678, 0.012313432060182095, -0.005805871915072203, -0.03696366026997566, -0.030674366280436516, 0.0963653028011322, 0.034410227090120316, -0.15133196115493774, -0.019049499183893204, 0.0008199753938242793, 0.04052135348320007, -0.06332968175411224, -0.0003526968357618898, 0.014827272854745388, -0.027584843337535858, -0.00670630531385541, 0.057752836495637894, -0.012223819270730019, -0.037159815430641174, -0.0017016705824062228, 0.024357443675398827, -0.013384981080889702, -0.007595972158014774, -0.0021899486891925335, -0.04380675405263901, 0.0024214426521211863, -0.07951468229293823, -0.06072510778903961, -0.05722176283597946, 0.015118812210857868, -0.019551504403352737, -0.018013495951890945, -0.03713531419634819, -0.0073523749597370625, -0.060683250427246094, 0.09787580370903015, -0.028015824034810066, -0.030297890305519104, -0.004393082577735186, -0.010661921463906765, -0.01861012540757656, -0.032133813947439194, -0.01648976467549801, -0.005617708433419466, -0.04732649028301239, 0.03380720317363739, -0.06614480167627335, 0.023087788373231888, 0.052915435284376144, -0.0322185717523098, 0.09162669628858566, 0.035919927060604095, -0.02720249816775322, -0.032358571887016296, 0.00115388969425112, 0.021069006994366646, 0.005541990511119366, -0.02459346503019333, 0.030756676569581032, -0.029150202870368958, -0.0009946447098627687, 0.043892133980989456, -0.025679990649223328, 0.030582966282963753, -0.044435515999794006, -0.32289355993270874, -0.03930964693427086, -0.04172951728105545, 0.012984088622033596, 0.019100267440080643, -0.0538015179336071, 0.029781373217701912, -0.0074855852872133255, 0.03087327443063259, 0.04002882540225983, 0.08131785690784454, 0.01406306866556406, -0.00151781493332237, -0.08601470291614532, -0.015333903022110462, 0.03340195491909981, -0.021581605076789856, 0.03746985271573067, -0.027478182688355446, -0.034072358161211014, 0.002881817054003477, -0.007197952829301357, -0.02821177989244461, -0.043786317110061646, -0.005898012313991785, -0.024830002337694168, 0.11282500624656677, 0.004097685683518648, 0.03137742355465889, -0.03391115367412567, 0.021976953372359276, -0.015900706872344017, 0.0116024324670434, -0.12042026221752167, 0.027083925902843475, 0.02021043933928013, 0.040021926164627075, -0.015923846513032913, 0.005494186654686928, -0.014030302874743938, -0.051673632115125656, 0.0038714392576366663, -0.046189047396183014, -0.07455921173095703, -0.047820162028074265, 0.034270964562892914, -0.024851510301232338, -0.034576114267110825, -0.03497222065925598, 0.08032586425542831, -0.008283439092338085, -0.022443804889917374, 0.028650544583797455, 0.03374648094177246, 0.009815595112740993, -0.028272107243537903, -0.054588839411735535, -0.015490191988646984, 0.01781919039785862, 0.03909756615757942, 0.0011254152050241828, 0.043994057923555374, 0.009244232438504696, -0.05930279940366745, 0.030236143618822098, 0.025694530457258224, -0.014136573299765587, 0.0043139271438121796, 0.03572986647486687, -0.010365262627601624, -0.03714362904429436, 0.08987359702587128, -0.00437040813267231, 0.010035491548478603, 0.042409323155879974, 0.03734636306762695, -0.008857271634042263, 0.011943782679736614, 0.039500877261161804, -0.005998620297759771, 0.03758753091096878, -0.04422212019562721, 0.06144054979085922, -0.014402615837752819, -0.0028363808523863554, 0.046607743948698044, 0.019123567268252373, -0.043629176914691925, 0.050898462533950806, 0.04290727153420448, -0.012661631219089031, -0.0006066212663426995, -0.023234516382217407, -0.08286751806735992, 0.0410291887819767, -0.02886679768562317, -0.26015833020210266, 0.026419468224048615, 0.05099758878350258, 0.03076716512441635, 0.0014406986301764846, 0.014516741037368774, 0.034408051520586014, -0.02580505795776844, 0.0012725678971037269, 0.0035873730666935444, 0.052232347428798676, 0.049517400562763214, 0.004557763691991568, 0.00009116815635934472, 0.013932542875409126, 0.024246303364634514, 0.0003999275795649737, 0.018076037988066673, 0.011145249009132385, 0.019650502130389214, 0.025919079780578613, 0.009276945143938065, 0.15978197753429413, 0.02660410664975643, 0.03014999069273472, 0.07344895601272583, -0.037445735186338425, 0.012576274573802948, 0.027168845757842064, -0.004080563317984343, -0.04934103786945343, 0.0010755769908428192, -0.02299346774816513, -0.0009197637555189431, 0.02340722270309925, -0.06482914090156555, -0.033589158207178116, 0.02957659400999546, 0.014768541790544987, -0.008669858798384666, 0.004510900471359491, 0.010973930358886719, -0.012394171208143234, 0.04318750649690628, 0.053771644830703735, 0.010035689920186996, 0.00446487870067358, -0.04806847870349884, -0.0329308807849884, -0.013647319748997688, -0.04019483923912048, -0.08228964358568192, -0.002004518173635006, -0.024406788870692253, -0.014653515070676804, 0.08347176015377045, 0.030109038576483727, -0.024817384779453278, 0.006601939909160137, -0.0018998499726876616, -0.025795605033636093, -0.030551621690392494, 0.06846413016319275, -0.033531516790390015, 0.023664526641368866 ]
[ 0.05843761935830116, 0.06148090958595276, 0.008490140549838543, 0.04224163293838501, -0.01310389582067728, -0.00201300997287035, 0.007204651832580566, -0.01378871314227581, -0.02554686740040779, -0.000311744719510898, -0.014327732846140862, 0.014489849098026752, 0.056839149445295334, 0.03673240542411804, 0.03224794566631317, 0.023609453812241554, 0.024499043822288513, -0.0073645468801259995, 0.00717161176726222, -0.007761738728731871, -0.044598549604415894, -0.06253224611282349, 0.021925784647464752, -0.014127979055047035, 0.011052689515054226, 0.05380289629101753, -0.05760766565799713, 0.002240921836346388, 0.02769639529287815, -0.11898969858884811, -0.022444022819399834, -0.023879915475845337, -0.01787743903696537, 0.0158986896276474, 0.013909459114074707, -0.013360985554754734, 0.02497953362762928, -0.004610621370375156, 0.01554124429821968, 0.05241507291793823, -0.009232821874320507, -0.01500974502414465, -0.016350191086530685, 0.007901174016296864, -0.00471458537504077, -0.0014255703426897526, -0.05220770463347435, -0.000175689987372607, 0.03132687881588936, -0.008181925863027573, -0.013371861539781094, -0.021693820133805275, -0.014708798378705978, -0.03137100860476494, 0.012093786150217056, 0.022703124210238457, -0.040896736085414886, -0.003178781596943736, 0.03645343333482742, 0.024046650156378746, 0.03587940335273743, -0.004206016659736633, -0.03281985968351364, -0.009665864519774914, -0.025526519864797592, -0.02222728542983532, -0.020045647397637367, 0.0037633629981428385, 0.006337029859423637, -0.004587807226926088, -0.0102225998416543, 0.03998503461480141, -0.08584418147802353, -0.034033577889204025, -0.002776946173980832, 0.013436834327876568, 0.03534471243619919, -0.007469001691788435, -0.01300362404435873, -0.014449281617999077, -0.01574910245835781, 0.03339775279164314, -0.03077521361410618, 0.013346169143915176, -0.01733659952878952, 0.00296297250315547, -0.003845066297799349, -0.03721275553107262, -0.00563212251290679, 0.0027180216275155544, -0.030770685523748398, -0.002164033241569996, -0.04064743593335152, -0.028765184804797173, -0.08082950860261917, -0.0049701170064508915, 0.009197891689836979, -0.006122918333858252, 0.0345371849834919, 0.808638334274292, 0.03266099840402603, -0.026880042627453804, 0.00027359265368431807, 0.004416897892951965, 0.010545773431658745, 0.0031287693418562412, 0.03917564079165459, 0.038910266011953354, -0.014979491010308266, -0.0269487202167511, -0.02504565380513668, 0.035969328135252, 0.03755743429064751, 0.01735728606581688, 0.0016269589541479945, 0.036352552473545074, 0.012948368676006794, -0.01667022332549095, 0.0066289412789046764, 0.008207142353057861, 0.006777370814234018, 0.035238102078437805, -0.0038774453569203615, 0.02287481166422367, -0.003514934331178665, -0.17539501190185547, 0.005608063656836748, -7.018465345737091e-33, 0.041299790143966675, -0.017130747437477112, 0.06111020967364311, 0.007368823047727346, 0.01644761487841606, 0.011122738011181355, -0.04183546453714371, -0.023238062858581543, -0.015966905280947685, -0.02239825576543808, -0.03316031023859978, -0.00782965961843729, 0.028736643493175507, -0.012430028058588505, 0.03555767610669136, -0.004029800184071064, 0.017393017187714577, 0.005446850787848234, -0.021972758695483208, 0.004668757785111666, -0.004780744202435017, 0.026261044666171074, -0.004198447801172733, 0.07463155686855316, 0.023681998252868652, 0.05710884556174278, 0.020735759288072586, 0.007898842915892601, 0.022439850494265556, -0.043724749237298965, -0.04290487989783287, 0.009773196652531624, 0.004187651444226503, -0.014519297517836094, -0.014306304976344109, -0.03617395460605621, -0.03391486778855324, 0.016936739906668663, -0.0353277251124382, -0.044918861240148544, -0.023852599784731865, -0.007384370546787977, -0.05087113380432129, -0.025049470365047455, -0.03405451402068138, 0.012100547552108765, -0.02423059195280075, 0.00424287049099803, -0.01247966755181551, -0.040765415877103806, -0.011092860251665115, 0.02286192588508129, -0.01817222125828266, 0.03445088490843773, -0.03642234578728676, 0.029541708528995514, 0.05689702555537224, 0.002502107061445713, -0.020953744649887085, -0.0027314613107591867, 0.004046188667416573, -0.004038047511130571, -0.043662577867507935, 0.0428784042596817, 0.03340013697743416, 0.009178103879094124, -0.014935152605175972, -0.0005936924135312438, -0.025386177003383636, -0.00024585987557657063, -0.03588617965579033, 0.06115400791168213, -0.02452477626502514, -0.01884947530925274, 0.02653862163424492, -0.04956081137061119, -0.03367864713072777, 0.016251837834715843, 0.01025440078228712, 0.05014900118112564, -0.040224168449640274, -0.03368493914604187, 0.017117612063884735, -0.04587452858686447, -0.01030200906097889, -0.050140850245952606, 0.0610886812210083, 0.007016011979430914, 0.008047720417380333, 0.027621155604720116, 0.021812163293361664, 0.03779218718409538, -0.005412692669779062, -0.016273783519864082, -0.023342294618487358, 6.799666908798692e-33, -0.004532528109848499, 0.019095204770565033, 0.000043976328015560284, -0.0017029630253091455, 0.011478492990136147, 0.034841861575841904, -0.017451494932174683, 0.010673455893993378, -0.04559210687875748, 0.03985312953591347, -0.003925865050405264, -0.010545304045081139, -0.012135311961174011, 0.03410250321030617, 0.0628150999546051, -0.010765733197331429, 0.030772147700190544, -0.05427837744355202, -0.04482618719339371, 0.05514552444219589, -0.0028049354441463947, 0.015256171114742756, 0.004619920626282692, -0.005433256272226572, 0.03856150433421135, 0.047575075179338455, 0.02347509190440178, 0.0035653391387313604, -0.012307348661124706, -0.00043310230830684304, -0.023734837770462036, -0.06195558235049248, 0.011740881949663162, -0.00857954565435648, 0.0423697866499424, 0.03541862592101097, -0.005294595379382372, 0.00652356306090951, -0.023531777784228325, 0.0019108509877696633, 0.009847289882600307, 0.0192030631005764, -0.026050467044115067, 0.07288894057273865, -0.004850208293646574, 0.030481938272714615, -0.03579455986618996, 0.011518646962940693, -0.030321767553687096, 0.005536853801459074, -0.01663752645254135, -0.004238162189722061, 0.0022065734956413507, 0.02328881248831749, 0.017217181622982025, -0.05445101857185364, 0.0032047233544290066, 0.023466194048523903, -0.010677758604288101, 0.003220963291823864, -0.03973916918039322, -0.0067434669472277164, -0.014621841721236706, -0.007278511766344309, -0.009660069830715656, -0.027073467150330544, -0.030701616778969765, -0.0047689503990113735, -0.01949591003358364, -0.03265390545129776, 0.03381842002272606, -0.011089017614722252, 0.0022669199388474226, 0.03681617230176926, 0.04657747969031334, -0.041408929973840714, -0.02909243479371071, 0.054713211953639984, -0.0340711772441864, 0.0057890163734555244, 0.005976683925837278, 0.009689124301075935, 0.0029085164424031973, -0.008402170613408089, -0.0034527298994362354, -0.0048444136045873165, -0.019241299480199814, 0.015098383650183678, -0.023998592048883438, 0.014168685302138329, 0.014251790009438992, -0.0173663143068552, -0.02507876418530941, 0.047851402312517166, 0.013433965854346752, -1.2484678180157971e-8, -0.06634388864040375, 0.01825616881251335, -0.024244097992777824, -0.026961488649249077, 0.02678767405450344, 0.008737706579267979, 0.014929032884538174, 0.028515998274087906, -0.022543204948306084, 0.04605526849627495, 0.04801108315587044, -0.010127334855496883, 0.016246149316430092, -0.010219309478998184, -0.022634977474808693, -0.030654236674308777, -0.027202434837818146, -0.0385945588350296, 0.054241448640823364, 0.015871604904532433, -0.002970807021483779, 0.0027292578015476465, -0.019917737692594528, 0.020642125979065895, 0.0128409992903471, -0.0033774252515286207, 0.024652725085616112, -0.07808492332696915, 0.00943019986152649, -0.02628229930996895, -0.02174307219684124, -0.015940722078084946, -0.001712951110675931, 0.03642309457063675, -0.04950501024723053, -0.040190987288951874, 0.030553018674254417, 0.02584671787917614, 0.01891501434147358, 0.03635450080037117, -0.026835676282644272, -0.0028541625943034887, -0.03063254803419113, -0.04546365886926651, -0.03241216018795967, 0.017115268856287003, -0.0003452871460467577, 0.011860983446240425, 0.038809530436992645, -0.02977667935192585, -0.03681438788771629, -0.026762554422020912, 0.015927575528621674, 0.04886281490325928, 0.018511658534407616, -0.006239024456590414, 0.024841533973813057, -0.010504134930670261, 0.026323361322283745, -0.011198134161531925, 0.0014332735445350409, 0.019732346758246422, -0.03993096575140953, -0.006952613592147827 ]
graphql-europe-trip-berlin
https://markhneedham.com/blog/2017/05/27/graphql-europe-trip-berlin
false
2017-05-01 19:11:54
Loading and analysing Strava runs using PostgreSQL JSON data type
[ "python", "strava", "postgresql" ]
[ "PostgreSQL" ]
In my last post I showed how to http://www.markhneedham.com/blog/2017/04/29/leaflet-strava-polylines-osm/[map Strava runs] using data that I'd extracted from their +++<cite>+++https://strava.github.io/api/v3/activities/[/activities]+++</cite>+++ API, but the API returns a lot of other data that I discarded because I wasn't sure what I should keep. The API returns a nested JSON structure so the easiest solution would be to save each run as an individual file but I've always wanted to try out https://www.postgresql.org/docs/9.5/static/datatype-json.html[PostgreSQL's JSON data type] and this seemed like a good opportunity. == Creating a JSON ready PostgreSQL table First up we need to create a database in which we'll store our Strava data. Let's name it appropriately: [source,sql] ---- create database strava; \connect strava; ---- Now we can now create a table with one field with the JSON data type: [source,sql] ---- CREATE TABLE runs ( id INTEGER NOT NULL, data jsonb ); ALTER TABLE runs ADD PRIMARY KEY(id); ---- Easy enough. Now we're ready to populate the table. == Importing Strava API We can partially reuse https://gist.github.com/mneedham/34b923beb7fd72f8fe6ee433c2b27d73#file-extract_runs-py[the script from the last post] except rather than saving to CSV file we'll save to PostgreSQL using the https://pypi.python.org/pypi/psycopg2[psycopg2] library. image::{{<siteurl>}}/uploads/2017/05/2017-05-01_13-45-58.png[2017 05 01 13 45 58,550] ____ The script relies on a +++<cite>+++TOKEN+++</cite>+++ environment variable. If you want to try this on your own Strava account you'll need to https://www.strava.com/settings/api[create an application], which will give you a key. ____ +++<cite>+++extract-runs.py+++</cite>+++ [source,python] ---- import requests import os import json import psycopg2 token = os.environ["TOKEN"] headers = {'Authorization': "Bearer {0}".format(token)} with psycopg2.connect("dbname=strava user=markneedham") as conn: with conn.cursor() as cur: page = 1 while True: r = requests.get("https://www.strava.com/api/v3/athlete/activities?page={0}".format(page), headers = headers) response = r.json() if len(response) == 0: break else: for activity in response: r = requests.get("https://www.strava.com/api/v3/activities/{0}?include_all_efforts=true".format(activity["id"]), headers = headers) json_response = r.json() cur.execute("INSERT INTO runs (id, data) VALUES(%s, %s)", (activity["id"], json.dumps(json_response))) conn.commit() page += 1 ---- == Querying Strava We can now write some queries against our newly imported data. == My quickest runs [source,sql] ---- SELECT id, data->>'start_date' as start_date, (data->>'average_speed')::float as speed FROM runs ORDER BY speed DESC LIMIT 5 id | start_date | speed -----------+----------------------+------- 649253963 | 2016-07-22T05:18:37Z | 3.736 914796614 | 2017-03-26T08:37:56Z | 3.614 653703601 | 2016-07-26T05:25:07Z | 3.606 548540883 | 2016-04-17T18:18:05Z | 3.604 665006485 | 2016-08-05T04:11:21Z | 3.604 (5 rows) ---- == My longest runs [source,sql] ---- SELECT id, data->>'start_date' as start_date, (data->>'distance')::float as distance FROM runs ORDER BY distance DESC LIMIT 5 id | start_date | distance -----------+----------------------+---------- 840246999 | 2017-01-22T10:20:33Z | 10764.1 461124609 | 2016-01-02T08:42:47Z | 10457.9 467634177 | 2016-01-10T18:48:47Z | 10434.5 471467618 | 2016-01-16T12:33:28Z | 10359.3 540811705 | 2016-04-10T07:26:55Z | 9651.6 (5 rows) ---- == Runs this year [source,sql] ---- SELECT COUNT(*) FROM runs WHERE data->>'start_date' >= '2017-01-01 00:00:00' count ------- 62 (1 row) ---- == Runs per year [source,sql] ---- SELECT EXTRACT(year from to_date(data->>'start_date', 'YYYY-mm-dd')) AS year, count(*) FROM runs GROUP BY year ORDER BY year year | count ------+------- 2014 | 18 2015 | 139 2016 | 166 2017 | 62 (4 rows) ---- That's all for now. Next I'm going to learn how to query segments, which are stored inside a nested array inside the JSON document. Stay tuned for that in a future post.
null
null
[ -0.004172011278569698, -0.01388147659599781, -0.004755786154419184, 0.033766813576221466, 0.07736686617136002, 0.01699799858033657, 0.0024290939327329397, 0.04042584076523781, -0.004939969163388014, -0.01549028605222702, 0.0061227185651659966, -0.05719565227627754, -0.0916002169251442, 0.005012837238609791, -0.007574026007205248, 0.058929044753313065, 0.07100219279527664, 0.0031111538410186768, 0.01783173717558384, 0.01091986708343029, 0.01220815908163786, 0.06449227035045624, 0.011788706295192242, 0.03279166668653488, 0.02551925741136074, -0.00231257569976151, 0.012164529412984848, 0.010159813798964024, -0.054060254245996475, -0.01519529428333044, 0.025072524324059486, -0.0336315892636776, 0.016000013798475266, 0.002571777906268835, 0.04674304649233818, 0.007153524085879326, -0.018403608351945877, 0.0235960241407156, -0.004486165475100279, 0.0027644531801342964, -0.06779278069734573, 0.02620428241789341, -0.019958999007940292, 0.02943146415054798, -0.012192502617835999, 0.011229713447391987, -0.011634726077318192, 0.03510032594203949, -0.032758794724941254, -0.01372958067804575, -0.03465791419148445, 0.030967731028795242, -0.024863077327609062, 0.003982010297477245, 0.022474996745586395, 0.051121786236763, 0.018482228741049767, -0.07257480919361115, 0.011619447730481625, -0.027961011976003647, 0.000272399716777727, 0.006279005669057369, 0.019400112330913544, 0.02272983454167843, 0.029665466398000717, -0.039238616824150085, -0.0210480447858572, 0.05161375179886818, -0.03866768255829811, -0.01062748208642006, 0.0033093467354774475, 0.01119212619960308, -0.005301582161337137, 0.013640999794006348, 0.009021366946399212, -0.04309726506471634, 0.004836848936975002, 0.06817154586315155, 0.00986745860427618, 0.041319962590932846, 0.013246623799204826, -0.01661115512251854, 0.0026007608976215124, 0.04873320087790489, 0.013437318615615368, -0.042734015733003616, -0.02734525129199028, -0.013091198168694973, -0.04650335758924484, 0.0357755646109581, 0.004073030781000853, -0.02958667278289795, 0.022783536463975906, -0.006171821150928736, -0.0023485946003347635, -0.015518886037170887, -0.01502543967217207, -0.0004041265056002885, -0.009682651609182358, -0.042955804616212845, -0.060173265635967255, -0.009692742489278316, 0.005878966301679611, 0.004601884633302689, -0.08195516467094421, -0.01578100584447384, -0.013485162518918514, -0.01106418389827013, 0.024419907480478287, -0.0034776111133396626, -0.010676485486328602, -0.012489870190620422, -0.030156530439853668, -0.0034607388079166412, -0.04362647235393524, 0.07233525067567825, 0.0191149041056633, -0.04117690399289131, -0.021993162110447884, -0.010831743478775024, 0.06081104278564453, 0.011704979464411736, 0.005069882143288851, 0.068797267973423, 0.015951409935951233, 0.02738156169652939, -0.005409324541687965, 0.04726110026240349, 0.005863792262971401, -0.047197796404361725, -0.014440750703215599, 0.03403431177139282, -0.027741672471165657, 0.019704129546880722, 0.031934645026922226, -0.02642003819346428, -0.01585429161787033, 0.01606750302016735, 0.07480855286121368, 0.015669934451580048, -0.011010797694325447, -0.02460884489119053, 0.018326692283153534, -0.004907955415546894, 0.038701631128787994, 0.03880223631858826, 0.0040585254319012165, -0.06894570589065552, -0.057040292769670486, -0.0003737396909855306, 0.043087154626846313, 0.033903490751981735, 0.07860438525676727, -0.029514137655496597, 0.0029999015387147665, 0.09113074839115143, 0.044111184775829315, 0.009462367743253708, -0.015193882398307323, 0.02537570148706436, 0.05784378945827484, 0.04517930746078491, 0.011100334115326405, 0.026208657771348953, -0.001638429588638246, -0.02175004594027996, 0.026953458786010742, 0.04978252574801445, 0.006795167922973633, 0.005949716549366713, -0.05756425857543945, -0.0701386034488678, 0.08173786848783493, -0.02830672264099121, -0.028711866587400436, 0.05323556438088417, 0.08275599032640457, 0.04643741250038147, 0.027734046801924706, 0.0002360984217375517, -0.0875411182641983, 0.05139371007680893, -0.009439248591661453, 0.0011781376088038087, 0.032707300037145615, -0.015341958962380886, 0.0962279811501503, 0.017835864797234535, -0.016880406066775322, 0.01753362827003002, -0.059554435312747955, -0.060096412897109985, -0.04324617236852646, 0.00565962353721261, 0.06781387329101562, -0.060492437332868576, 0.007454621605575085, 0.07885514944791794, 0.025193126872181892, 0.06231106445193291, -0.0061358492821455, -0.004627129528671503, -0.006963342893868685, -0.06348517537117004, -0.042615558952093124, 0.03071373514831066, 0.05317657068371773, -0.009447798132896423, -0.007205389440059662, 0.016492445021867752, -0.03510472923517227, -0.008598255924880505, 0.01968960277736187, -0.008850629441440105, 0.035886380821466446, 0.00994333066046238, 0.03158868849277496, -0.009427453391253948, 0.058008383959531784, -0.043884530663490295, 0.03720664978027344, 0.02845560759305954, -0.0181601382791996, -0.007649529259651899, -0.008817600086331367, 0.13129906356334686, 0.05780936777591705, 0.006521278526633978, -0.0797140896320343, 0.0235690176486969, 0.013928777538239956, -0.018761882558465004, -0.013374608010053635, -0.024592136964201927, -0.0019467907259240746, -0.006751506123691797, -0.013113773427903652, -0.02882031537592411, -0.003059707349166274, -0.03123488277196884, 0.010474896058440208, 0.07617514580488205, -0.011751627549529076, 0.0376223661005497, 0.009116297587752342, -0.030085556209087372, -0.02311020717024803, -0.023268502205610275, -0.059681374579668045, -0.01613805815577507, -0.010392431169748306, -0.013395947404205799, 0.028214842081069946, 0.001300280331633985, -0.03750040382146835, -0.03987817093729973, -0.04722039774060249, 0.03554532304406166, 0.04757463559508324, 0.04720735922455788, -0.044147226959466934, 0.05108322203159332, -0.0017762912902981043, 0.023104343563318253, -0.021737921983003616, -0.025918306782841682, -0.06166643649339676, -0.03249073401093483, 0.01935577392578125, 0.05992546305060387, 0.04523294046521187, 0.028979748487472534, 0.009075932204723358, -0.005716865416616201, -0.01564536802470684, 0.01652863807976246, 0.018746964633464813, -0.011523177847266197, -0.0201429333537817, -0.017345743253827095, -0.014927036128938198, 0.06847438961267471, -0.03620412200689316, -0.02894534356892109, 0.0006115785799920559, -0.07523689419031143, 0.043638598173856735, -0.04135105013847351, -0.02352931536734104, 0.018152600154280663, 0.015525881201028824, 0.04810863733291626, -0.013559351675212383, -0.01106331218034029, 0.09989356249570847, 0.02127019688487053, 0.005386130418628454, -0.003744613379240036, -0.002750831190496683, 0.05493084341287613, -0.019233668223023415, -0.00027181385667063296, 0.07062095403671265, -0.018270190805196762, -0.00493477052077651, -0.012959994375705719, 0.015274384059011936, -0.02638312242925167, -0.2703196406364441, 0.024147937074303627, -0.03680539131164551, -0.02965046837925911, 0.02562161721289158, 0.022910764440894127, 0.0026896658819168806, -0.03593914955854416, -0.041621092706918716, 0.010485963895916939, -0.007020872086286545, -0.04792363569140434, -0.014151165261864662, 0.027980986982584, 0.01484198309481144, 0.046470124274492264, -0.01695195771753788, -0.03581005707383156, 0.007897269912064075, 0.04047179967164993, 0.010898863896727562, -0.07640250027179718, -0.0032384018413722515, 0.036958470940589905, 0.050327662378549576, 0.055504098534584045, -0.06567727029323578, 0.022193849086761475, -0.035502996295690536, -0.018557626754045486, 0.024800678715109825, -0.026705117896199226, 0.030590444803237915, -0.011760042048990726, -0.03521566465497017, -0.04528608173131943, 0.031540703028440475, 0.019851762801408768, 0.034318920224905014, -0.034825101494789124, -0.03454715386033058, -0.018163923174142838, -0.011391501873731613, -0.017070068046450615, 0.07421894371509552, -0.023477395996451378, -0.06622906774282455, 0.03219273313879967, -0.03512374311685562, 0.06975673139095306, -0.0028792230878025293, -0.04293806105852127, -0.04722343385219574, 0.051087841391563416, -0.018603168427944183, -0.0029390587005764246, -0.004034227225929499, -0.01383149717003107, -0.051312245428562164, -0.03181760758161545, 0.02534675970673561, -0.030413568019866943, 0.002137327566742897, -0.04743696004152298, 0.001512558083049953, -0.05325622111558914, -0.05481956899166107, -0.009640189819037914, 0.05139484629034996, 0.05994916707277298, -0.04127414897084236, 0.006404428277164698, -0.02291077934205532, -0.1033291295170784, -0.00594529090449214, -0.02760304883122444, -0.0059225549921393394, -0.019350044429302216, -0.02328314632177353, 0.04135113209486008, -0.025956548750400543, -0.04108945652842522, 0.029310576617717743, 0.01723972149193287, 0.01689956523478031, -0.013872330076992512, 0.019831649959087372, -0.03633032366633415, -0.03228696808218956, -0.004770304076373577, 0.06099235266447067, -0.036893002688884735, 0.008413217030465603, 0.0005027154111303389, -0.039325542747974396, 0.03875405341386795, 0.006428298074752092, -0.026990681886672974, 0.006538414396345615, 0.01850288175046444, 0.036334291100502014, -0.022704700008034706, -0.02803524024784565, -0.06452327221632004, 0.02404516376554966, -0.034481968730688095, -0.07387939095497131, 0.0006690174923278391, 0.007037233095616102, 0.018415959551930428, 0.003941282629966736, -0.01845879666507244, 0.050698377192020416, -0.08138212561607361, 0.012380523607134819, -0.005934214219450951, 0.03373166173696518, 0.010661879554390907, 0.04455898329615593, -0.021212780848145485, -0.056964728981256485, 0.032582689076662064, 0.008668267168104649, -0.018848048523068428, -0.03726111724972725, -0.02849661000072956, -0.010858518071472645, 0.002109935274347663, -0.002377941971644759, 0.019819026812911034, -0.01946830190718174, 0.011006650514900684, 0.027059154585003853, -0.039388686418533325, 0.01685444451868534, -0.028203412890434265, -0.02969066984951496, -0.03720324486494064, 0.0006646108813583851, 0.014510160312056541, -0.0018041031435132027, -0.0024866294115781784, 0.0015851010102778673, 0.03786458075046539, 0.026976684108376503, -0.004282789770513773, 0.04090649634599686, 0.023401038721203804, 0.009629888460040092, -0.015130902640521526, -0.005959381815046072, -0.03821251168847084, 0.010144170373678207, -0.0197420846670866, -0.01252685021609068, -0.04132581129670143, 0.008809057995676994, -0.008586136624217033, -0.00988167617470026, -0.042923569679260254, 0.014930668286979198, -0.06725335866212845, -0.04554428160190582, 0.014891630038619041, -0.043820854276418686, 0.0488506443798542, 0.01948060467839241, 0.008193634450435638, -0.019472265616059303, -0.015123514458537102, 0.032024871557950974, -0.027137257158756256, 0.008463508449494839, -0.009582157246768475, -0.019904688000679016, -0.010248862206935883, 0.006667708978056908, 0.012114893645048141, 0.0017474336782470345, -0.017934266477823257, -0.007767925038933754, -0.012284227646887302, 0.01637994684278965, 0.01638851687312126, 0.03030686266720295, 0.050313662737607956, -0.011709015816450119, -0.014620507135987282, -0.0025420747697353363, -0.006489137653261423, -0.051830779761075974, 0.010316652245819569, -0.013011505827307701, -0.0004492901498451829, -0.0116500835865736, -0.06271882355213165, 0.03546086698770523, 0.02920132502913475, -0.009796073660254478, 0.024498140439391136, -0.01446218229830265, -0.013267233036458492, -0.00044805387733504176, 0.02558584325015545, 0.07160264998674393, -0.0363706536591053, -0.001143227331340313, 0.001811861526221037, -0.005086980294436216, -0.005160536617040634, 0.0226913895457983, -0.03829455003142357, -0.017329033464193344, -0.03909587487578392, -0.0008041043183766305, -0.009587504900991917, -0.008638025261461735, -0.014749516732990742, 0.0015119562158361077, 0.007371179293841124, 0.011202315799891949, 0.022462984547019005, -0.012406724505126476, -0.02170788310468197, -0.018082763999700546, 0.03363833948969841, -0.03525122255086899, -0.02554364688694477, 0.05149636045098305, -0.016544034704566002, 0.01694308966398239, -0.06398960202932358, 0.03220691159367561, 0.0064266035333275795, -0.009430892765522003, -0.004262648522853851, -0.05633273348212242, 0.0014385837130248547, -0.012215396389365196, 0.06507756561040878, -0.028538983315229416, -0.009994163177907467, -0.01822110265493393, -0.01100196223706007, -0.027282992377877235, -0.0002294757723575458, -0.015484328381717205, -0.007059864699840546, 0.04419181868433952, 0.04126376658678055, 0.051392581313848495, 0.03897387534379959, 0.0038099586963653564, -0.053536999970674515, 0.045734286308288574, -0.042655099183321, -0.047575343400239944, -0.0276042390614748, -0.024050815030932426, 0.019369056448340416, 0.008748248219490051, 0.023823289200663567, -0.07224538922309875, 0.05732627585530281, 0.03859291598200798, 0.0014935225481167436, 0.06047109514474869, -0.02167571894824505, 0.03401845693588257, -0.021617764607071877, -0.028118478134274483, -0.0708375796675682, 0.024003051221370697, 0.0372675321996212, -0.024403104558587074, -0.020092148333787918, 0.019805211573839188, -0.05585458502173424, 0.03892658278346062, -0.04773632436990738, -0.037303294986486435, 0.0640278309583664, 0.005003994330763817, -0.009581566788256168, -0.028386397287249565, -0.05538066476583481, 0.029133424162864685, 0.062383368611335754, -0.03861496224999428, 0.002536134561523795, -0.021207083016633987, 0.06501653045415878, -0.024310994893312454, 0.025251345708966255, -0.008459815755486488, -0.015731044113636017, 0.05576407536864281, 0.011660664342343807, -0.009152048267424107, 0.025877242907881737, -0.03563816100358963, 0.03447834029793739, 0.022158797830343246, -0.005254661198705435, -0.013756293803453445, 0.013775302097201347, 0.013824215158820152, -0.06371311098337173, 0.035909559577703476, 0.05197545140981674, -0.007920307107269764, -0.04662680625915527, 0.07164424657821655, 0.009809781797230244, -0.051228322088718414, -0.07231008261442184, 0.028783591464161873, -0.05006375163793564, -0.0321047343313694, -0.017064394429326057, -0.01015370711684227, -0.03313351050019264, 0.03509765863418579, -0.012199598364531994, -0.011251711286604404, 0.057548969984054565, -0.006374577060341835, -0.02285563014447689, 0.006515028420835733, 0.06701337546110153, 0.09082365036010742, 0.030136791989207268, -0.0004600976826623082, 0.060063187032938004, -0.006623279768973589, -0.0391823872923851, 0.005223885178565979, -0.04545140638947487, -0.04029470682144165, -0.0168401300907135, 0.0027934773825109005, 0.06693002581596375, -0.003989019431173801, 0.07697007805109024, -0.012522748671472073, -0.027850480750203133, 0.027133215218782425, -0.006282920017838478, 0.021835457533597946, 0.023334840312600136, 0.01681581325829029, 0.04841063544154167, -0.031133055686950684, -0.01856967620551586, 0.0293149221688509, -0.02270539104938507, -0.029388438910245895, 0.034154050052165985, -0.010986744426190853, 0.004176841117441654, 0.004743758123368025, 0.0349234901368618, 0.056132957339286804, -0.02807813137769699, 0.0007532625459134579, -0.00875808298587799, 0.0282476544380188, -0.019455697387456894, 0.05558069422841072, -0.012039216235280037, -0.031167175620794296, 0.026748275384306908, -0.05711114779114723, -0.006954384967684746, -0.026010461151599884, -0.04779740050435066, 0.03721695393323898, -0.02438724972307682, 0.02630731090903282, 0.0014833768364042044, -0.005047637037932873, -0.05495049059391022, -0.048775576055049896, -0.07263947278261185, -0.028859077021479607, -0.09476462006568909, -0.006316856946796179, -0.007340286858379841, -0.026421649381518364, -0.00030295815668068826, -0.02214532159268856, -0.008466845378279686, 0.020045636221766472, 0.0075768036767840385, -0.020823238417506218, -0.044690825045108795, 0.026514902710914612, 0.0018635339802131057, 0.007945855148136616, 0.0247191209346056, 0.05446558818221092, -0.026853367686271667, 0.008899236097931862, -0.014370580203831196, 0.006618111860007048, 0.07157266139984131, -0.005558653734624386, -0.009455941617488861, -0.06441393494606018, 0.041535526514053345, 0.02165575698018074, 0.018372956663370132, -0.0680801123380661, 0.008806493133306503, 0.05389205738902092, 0.027739912271499634, 0.04570890963077545, -0.016097262501716614, 0.004821986425668001, -0.05050335451960564, -0.04428122192621231, -0.003725953632965684, -0.003306427039206028, 0.04723715782165527, -0.02752087265253067, 0.0646134689450264, 0.03469975292682648, -0.0427093468606472, -0.024360278621315956, -0.017871635034680367, 0.011762401089072227, -0.015563825145363808, -0.019399870187044144, -0.0643322765827179, -0.029050370678305626, -0.06220362335443497, -0.0446588397026062, 0.015257230959832668, -0.046562884002923965, -0.01772470213472843, -0.00857995729893446, 0.025636497884988785, -0.012359519489109516, 0.04655534029006958, -0.005207080394029617, 0.06346561014652252, -0.04100240394473076, -0.005853963550180197, -0.045727942138910294, 0.024066632613539696, 0.017400918528437614, 0.013035229407250881, 0.02211296185851097, -0.05229503661394119, 0.018631018698215485, -0.0034634959883987904, 0.013546192087233067, 0.04551012068986893, -0.026880796998739243, 0.016777290031313896 ]
[ -0.08829853683710098, -0.049123961478471756, -0.03952448442578316, -0.0363042913377285, 0.06395401060581207, -0.041258297860622406, -0.06413155049085617, 0.017162466421723366, 0.01362673845142126, 0.020018022507429123, -0.01462541427463293, -0.039448730647563934, -0.022877367213368416, -0.030970606952905655, 0.04447761923074722, -0.022312594577670097, -0.02247793786227703, -0.055699899792671204, -0.06773072481155396, 0.051958467811346054, -0.06056138128042221, -0.03284963220357895, -0.043617717921733856, -0.050806675106287, 0.003078288631513715, 0.03488324582576752, 0.023398712277412415, -0.07288610935211182, -0.003956886008381844, -0.1985100507736206, 0.013927280902862549, -0.006284245289862156, -0.027984479442238808, -0.024024777114391327, -0.009513389319181442, 0.015197321772575378, 0.02616364136338234, 0.01747523993253708, -0.01896200329065323, 0.05324042588472366, 0.004840437322854996, 0.010314690880477428, -0.06789033114910126, 0.018275858834385872, 0.0361504964530468, -0.011968718841671944, -0.04438209906220436, -0.004341893829405308, 0.039642561227083206, 0.015839992091059685, -0.016552601009607315, 0.04240037128329277, -0.038710787892341614, -0.019916506484150887, -0.00020258440054021776, 0.01587081328034401, 0.05049166828393936, 0.10942048579454422, 0.0015619925688952208, 0.01775788702070713, 0.017508985474705696, -0.012862851843237877, -0.1119178831577301, 0.09865454584360123, -0.037259623408317566, 0.059654004871845245, -0.024355756118893623, 0.01830798201262951, 0.009943578392267227, 0.04949016869068146, -0.024174388498067856, 0.006559751927852631, -0.041955504566431046, 0.073258176445961, 0.037411656230688095, -0.0369904600083828, -0.013000641018152237, 0.0422041229903698, 0.04363834857940674, 0.012293369509279728, -0.030982231721282005, 0.004691268317401409, -0.022198108956217766, 0.013603058643639088, -0.042376939207315445, -0.019430171698331833, -0.024839816614985466, 0.05305197089910507, 0.01973649486899376, 0.003622346790507436, 0.03712724149227142, -0.03460795059800148, 0.04743499308824539, 0.017152316868305206, -0.0974649041891098, -0.005003164988011122, -0.002662691753357649, 0.015137502923607826, 0.03088546358048916, 0.3676714599132538, -0.025593917816877365, -0.012971388176083565, 0.03385310247540474, 0.056707512587308884, -0.023371096700429916, -0.020878661423921585, -0.011804621666669846, -0.04676519334316254, 0.01957165263593197, -0.01921791210770607, 0.007446868810802698, -0.013791223056614399, 0.03236300125718117, -0.07920058071613312, 0.019409896805882454, -0.0033446026500314474, -0.00010527551057748497, 0.01218603178858757, -0.07217977195978165, 0.022883718833327293, -0.006247664801776409, 0.020024694502353668, 0.01719076558947563, 0.01390038151293993, 0.03717248514294624, 0.009437214583158493, 0.05008635297417641, 0.022765297442674637, 0.04939301311969757, 0.04233749210834503, 0.048730798065662384, -0.0032943144906312227, -0.09961382299661636, -0.004128695465624332, -0.019216220825910568, -0.012875152751803398, -0.0009993856074288487, -0.048188094049692154, 0.004157551098614931, -0.008692764677107334, -0.026472026482224464, -0.03519614785909653, 0.05579138547182083, -0.03104996867477894, -0.061807069927453995, 0.12362931668758392, 0.04140888527035713, 0.0017265848582610488, -0.014534997753798962, -0.06478238105773926, -0.02133016660809517, 0.05411762744188309, 0.037566278129816055, -0.056239593774080276, 0.013033939525485039, 0.05271323397755623, 0.051238175481557846, 0.007185622118413448, -0.0557827427983284, -0.0071263923309743404, -0.028653675690293312, -0.061934154480695724, -0.023309679701924324, 0.057604800909757614, 0.012651697732508183, -0.12289288640022278, -0.03111986629664898, 0.01163136214017868, 0.028351614251732826, -0.07249265909194946, 0.0010681248968467116, 0.03744117170572281, -0.044656023383140564, -0.03209805488586426, 0.07546546310186386, 0.011636286042630672, -0.01454895455390215, -0.020983893424272537, 0.06285588443279266, 0.026471910998225212, -0.01638244464993477, 0.022663885727524757, -0.030012454837560654, -0.012689478695392609, -0.06069701164960861, -0.04576312005519867, -0.047603219747543335, 0.007986020296812057, 0.008345039561390877, -0.033883966505527496, -0.012495770119130611, -0.0068535106256604195, -0.02611602284014225, 0.010832363739609718, -0.0018590327817946672, -0.00569931510835886, 0.02975686825811863, 0.008148139342665672, 0.026217978447675705, -0.0487305223941803, 0.03328309208154678, 0.014032192528247833, 0.004177197813987732, 0.08359574526548386, -0.030864616855978966, -0.013501346111297607, 0.07794894278049469, -0.05920998007059097, 0.04851074889302254, 0.02908373810350895, -0.021559802815318108, 0.016465160995721817, -0.03094446286559105, 0.022564755752682686, -0.010382277891039848, -0.02571192756295204, -0.03037194348871708, -0.0312189981341362, 0.015539275482296944, 0.07122254371643066, -0.02958143688738346, -0.028895407915115356, 0.02026369795203209, -0.34362122416496277, -0.026682503521442413, -0.030083244666457176, 0.013320178724825382, -0.009346023201942444, -0.05916411802172661, -0.02434643544256687, 0.0005512802163138986, -0.022535143420100212, 0.011081486009061337, 0.13997316360473633, -0.0013426661025732756, 0.019085224717855453, -0.07033389806747437, 0.00886102020740509, 0.053451817482709885, -0.013699582777917385, -0.028738973662257195, -0.04915088415145874, 0.0008620683220215142, -0.010182410478591919, -0.05219347029924393, -0.012580318376421928, -0.01966824382543564, 0.020693499594926834, -0.021480653434991837, 0.14510872960090637, -0.009031621739268303, 0.0250136349350214, -0.05581922084093094, 0.02666434645652771, -0.0033164045307785273, -0.023634668439626694, -0.0926220715045929, -0.011355805210769176, -0.03598390147089958, 0.020529156550765038, 0.06303876638412476, 0.013084975071251392, -0.004207918886095285, -0.020731333643198013, 0.06830523163080215, -0.015367617830634117, -0.06156018003821373, -0.03379007428884506, -0.024873265996575356, -0.04580439627170563, -0.025264538824558258, -0.0034982156939804554, 0.08063486218452454, -0.020055018365383148, 0.03432036563754082, 0.037821222096681595, 0.03780149295926094, 0.004689110442996025, 0.003989573568105698, -0.0931481420993805, 0.004124095663428307, -0.02295750565826893, 0.01683310605585575, -0.009256433695554733, 0.052668143063783646, 0.03292644023895264, -0.055879004299640656, 0.026920070871710777, -0.007189007941633463, 0.0011488429736346006, 0.005088008940219879, 0.0601964108645916, -0.02514592558145523, -0.0506986565887928, 0.055780522525310516, -0.02452009730041027, 0.033361807465553284, 0.06659232825040817, 0.05248922482132912, -0.029951931908726692, -0.005021360702812672, 0.03614431992173195, 0.016150251030921936, -0.00857195258140564, -0.005496736150234938, 0.033090364187955856, 0.026387056335806847, 0.027694640681147575, 0.08380719274282455, -0.00692341011017561, -0.002198652597144246, 0.026832515373826027, 0.008740073069930077, -0.03249146044254303, -0.04113398492336273, -0.026188179850578308, -0.05146542936563492, 0.06566338241100311, 0.016607999801635742, -0.25753408670425415, 0.062421008944511414, 0.04439099505543709, 0.03260210156440735, 0.020655207335948944, 0.0051072086207568645, -0.009736321866512299, -0.06274539232254028, 0.012238189578056335, 0.020049389451742172, 0.044005896896123886, 0.06403398513793945, 0.015613019466400146, 0.018227873370051384, 0.016190065070986748, -0.0058566308580338955, 0.0291831623762846, 0.016030559316277504, 0.05584901198744774, 0.0078727500513196, 0.009615281596779823, -0.025630833581089973, 0.17124994099140167, 0.04034776985645294, -0.02512398362159729, 0.008796575479209423, 0.015216920524835587, 0.026351790875196457, 0.038901474326848984, 0.05434199050068855, -0.016387442126870155, 0.00029098117374815047, 0.062115393579006195, 0.05651922896504402, 0.046490564942359924, -0.03926944360136986, -0.032749176025390625, 0.04105467349290848, 0.01656195893883705, -0.03252323716878891, -0.02947603352367878, 0.0228398647159338, -0.05253663286566734, 0.031020499765872955, 0.0844617709517479, -0.022405553609132767, -0.029206912964582443, -0.04402310028672218, -0.049474406987428665, -0.029053324833512306, -0.02502235397696495, -0.029123829677700996, -0.015335208736360073, -0.03333015739917755, 0.0110500892624259, 0.060644038021564484, 0.04539906233549118, -0.003846757346764207, 0.0429486483335495, 0.0424925722181797, 0.01767433062195778, -0.050058186054229736, 0.08905491977930069, 0.028615066781640053, -0.001046410878188908 ]
[ 0.002464788733050227, -0.003043841803446412, -0.06115682050585747, 0.027810845524072647, -0.01188615057617426, 0.007272481452673674, -0.001122930203564465, 0.011346024461090565, -0.006894649006426334, -0.014593259431421757, -0.03179536759853363, 0.04192374646663666, -0.0005396928172558546, -0.036590807139873505, 0.04250328615307808, 0.011759127490222454, -0.021784750744700432, 0.011470611207187176, 0.04091847315430641, -0.028408728539943695, -0.015134809538722038, 0.010482539422810078, 0.02518211118876934, -0.01328536681830883, -0.016701405867934227, 0.04606490582227707, -0.048909351229667664, -0.010870736092329025, 0.011288146488368511, -0.10692910104990005, -0.026194067671895027, -0.027469629421830177, 0.014894145540893078, 0.02421806938946247, -0.012287153862416744, 0.026177477091550827, -0.002719264943152666, -0.02735270746052265, -0.024526342749595642, -0.0039030984044075012, 0.025600818917155266, -0.015154456719756126, -0.03426023945212364, -0.020099028944969177, -0.04478945955634117, -0.03951338306069374, -0.026532240211963654, -0.021855903789401054, -0.00988353043794632, -0.01590811088681221, -0.013506417162716389, -0.011379788629710674, -0.015121127478778362, -0.008495963178575039, 0.007948010228574276, 0.00327065447345376, -0.03868783637881279, 0.011480181477963924, 0.03020884096622467, 0.00427952641621232, 0.01941685564815998, 0.007593950722366571, -0.03476111590862274, -0.030056560412049294, -0.023420102894306183, -0.0049421293660998344, 0.004609983880072832, -0.016312142834067345, 0.04197657108306885, -0.026303118094801903, 0.014317359775304794, 0.02954823151230812, -0.05501276254653931, -0.048729054629802704, -0.07449182868003845, -0.005987543612718582, 0.023862123489379883, -0.02639821171760559, -0.024242667481303215, 0.0015922746388241649, -0.025716915726661682, 0.007477408275008202, -0.06384855508804321, 0.04414690285921097, -0.010732339695096016, 0.017872299998998642, -0.024839213117957115, -0.004057923797518015, 0.030335042625665665, -0.015108207240700722, -0.035723697394132614, -0.00713377445936203, -0.004206275101751089, 0.027248816564679146, -0.06346497684717178, 0.01672159694135189, 0.0038840731140226126, -0.03535668924450874, -0.010657894425094128, 0.8013722896575928, 0.012328766286373138, 0.03526763617992401, 0.02858499251306057, 0.045093849301338196, 0.014050982892513275, -0.004854137543588877, 0.01314685121178627, -0.031186405569314957, -0.0156574584543705, -0.0028020141180604696, 0.011984958313405514, 0.016946811228990555, 0.030699755996465683, -0.007920284755527973, 0.005373982712626457, 0.03503788262605667, 0.007594962138682604, 0.007918917573988438, 0.020057743415236473, 0.011046214960515499, 0.04423430934548378, -0.018319129943847656, 0.007759281434118748, 0.01583126373589039, 0.0054288641549646854, -0.1988523006439209, -0.007679113652557135, -6.684013693041134e-33, 0.03452867642045021, -0.03480030596256256, 0.12615494430065155, -0.002824994269758463, 0.04112369567155838, -0.027650481089949608, -0.006540884729474783, 0.007621848490089178, 0.0132438438013196, -0.02896263264119625, -0.018393542617559433, 0.018099334090948105, -0.00996315572410822, 0.01360582746565342, 0.05035805329680443, -0.007790312170982361, -0.004890174139291048, 0.028028925880789757, 0.02975555509328842, 0.008004964329302311, -0.00036833848571404815, 0.019108431413769722, 0.011639071628451347, 0.06106509268283844, 0.013618160970509052, -0.0014953667996451259, 0.017331205308437347, -0.006296663079410791, -0.019904889166355133, -0.03380142152309418, -0.02046753652393818, -0.004469600040465593, 0.015417844988405704, -0.012906362302601337, 0.032948967069387436, -0.015344367362558842, -0.03348544239997864, 0.0016476291930302978, -0.025291912257671356, -0.03341268375515938, -0.006460472475737333, -0.008031697012484074, -0.028569478541612625, 0.0033410859759896994, -0.040648046880960464, -0.026033498346805573, 0.028707675635814667, 0.023316873237490654, -0.04084113612771034, 0.021325131878256798, 0.03024735301733017, 0.02721348963677883, 0.0019535664469003677, -0.00550846615806222, -0.006343981251120567, 0.0121983103454113, 0.008072865195572376, 0.03149875998497009, 0.037245072424411774, 0.02691704034805298, 0.03249165788292885, -0.03359277918934822, -0.0017876153578981757, 0.03682098537683487, 0.022300343960523605, 0.006007194519042969, -0.0006564627401530743, 0.03950951248407364, 0.022834863513708115, 0.0013455325970426202, -0.05859344080090523, 0.0366995707154274, -0.027313342317938805, -0.04487623646855354, 0.0664730817079544, -0.010470911860466003, -0.006331165321171284, 0.019147774204611778, 0.016125809401273727, -0.0006105670472607017, 0.03798074275255203, -0.022905902937054634, -0.023921720683574677, -0.03924676403403282, -0.0761575698852539, -0.012523479759693146, 0.025875573977828026, 0.0025882443878799677, -0.04435476288199425, 0.020307451486587524, 0.015515750274062157, 0.06324087828397751, 0.03312896937131882, -0.0017596425022929907, -0.008367911912500858, 6.0244632819199336e-33, -0.004671619739383459, -0.03363196924328804, 0.013082290068268776, -0.012374610640108585, 0.049857404083013535, 0.0034782476723194122, 0.029552964493632317, 0.03200995549559593, -0.025962326675653458, 0.04153711348772049, -0.05317055061459541, -0.0026269094087183475, -0.04053884744644165, 0.021267497912049294, 0.0632663145661354, 0.021719712764024734, 0.009708697907626629, 0.03500737249851227, -0.0467970035970211, 0.015819914638996124, 0.00489669106900692, 0.05327784642577171, 0.03261452540755272, 0.031284887343645096, 0.03335178270936012, 0.0067775193601846695, -0.0016216256190091372, -0.006635311990976334, -0.058251481503248215, 0.019551049917936325, 0.011602912098169327, -0.030455471947789192, 0.0034068466629832983, -0.026461074128746986, -0.05468963086605072, 0.015085067600011826, -0.014037068001925945, 0.0038116478826850653, 0.053886499255895615, -0.016247861087322235, 0.02328132838010788, 0.01761818677186966, 0.03959063068032265, 0.026757171377539635, 0.02442474290728569, 0.012111564166843891, 0.001335249631665647, 0.013789692893624306, -0.04951063171029091, 0.013378485105931759, -0.012951850891113281, 0.027394549921154976, -0.03432314842939377, 0.0037595678586512804, 0.09559229016304016, -0.0311739444732666, -0.019838619977235794, -0.004389760084450245, -0.047359779477119446, -0.05748692527413368, -0.03221934288740158, -0.005492920521646738, -0.010004192590713501, 0.04572157934308052, -0.010625923052430153, -0.06258991360664368, -0.011027044616639614, -0.024914054200053215, -0.00483919819816947, -0.007814226672053337, -0.04419957846403122, 0.005439304281026125, -0.007010115776211023, 0.033761557191610336, 0.0005148928030394018, -0.027357369661331177, -0.04456896707415581, 0.009737908840179443, -0.01652645133435726, 0.03100046142935753, 0.025195032358169556, -0.03156116232275963, 0.034262515604496, -0.036854878067970276, 0.017520722001791, 0.0008957071113400161, -0.01100880466401577, 0.0035311586689203978, 0.01882289908826351, 0.04688555747270584, -0.02254314534366131, -0.047694217413663864, -0.036584027111530304, 0.01713010109961033, 0.002491461345925927, -1.199594734657694e-8, -0.008853764273226261, 0.015234646387398243, -0.01873297058045864, 0.028524691238999367, 0.059055037796497345, 0.006295592524111271, -0.017440466210246086, 0.0048177302815020084, 0.035245008766651154, -0.01037030853331089, 0.026486771181225777, -0.02834322303533554, 0.023722190409898758, 0.0003980603360105306, -0.015456576831638813, -0.033261872828006744, 0.00923552643507719, 0.0018942991737276316, 0.017538458108901978, -0.010214785113930702, -0.022323420271277428, 0.0366249680519104, -0.006165666040033102, -0.011349081993103027, 0.022370923310518265, -0.004503833595663309, 0.007461314555257559, -0.07691511511802673, -0.01073806919157505, 0.005837393458932638, 0.03447330370545387, -0.04350946843624115, -0.017369631677865982, -0.01873355731368065, -0.03914650157094002, -0.049337390810251236, 0.07058688998222351, -0.00016512350703123957, 0.013442461378872395, 0.012629417702555656, -0.011955522932112217, -0.017559833824634552, -0.00554674630984664, -0.024774808436632156, -0.02235632948577404, 0.03344554081559181, -0.034791044890880585, 0.021690072491765022, -0.009374628774821758, -0.0036552243400365114, 0.03179173544049263, -0.01236591674387455, -0.0016386080533266068, 0.026848968118429184, 0.03631463646888733, 0.019667237997055054, 0.008635424077510834, 0.00044355986756272614, -0.035832080990076065, -0.02458767592906952, 0.012324707582592964, 0.021467655897140503, -0.018284086138010025, -0.013924552127718925 ]
loading-and-analysing-strava-runs-using-postgresql-json-data-type
https://markhneedham.com/blog/2017/05/01/loading-and-analysing-strava-runs-using-postgresql-json-data-type
false
2017-05-01 20:42:07
PostgreSQL: ERROR: argument of WHERE must not return a set
[ "postgresql" ]
[ "PostgreSQL" ]
In my last post I showed how to http://www.markhneedham.com/blog/2017/05/01/loading-and-analysing-strava-runs-using-postgresql-json-data-type/[load and query data from the Strava API in PostgreSQL] and after executing some simple queries my next task was to query more complex part of the JSON structure. image::{{<siteurl>}}/uploads/2017/05/2017-05-01_21-22-55.png[2017 05 01 21 22 55,187] Strava allows users to create https://support.strava.com/hc/en-us/articles/216918167-What-are-Segments-[segments], which are edited portions of road or trail where athletes can compete for time. I wanted to write a query to find all the times that I'd run a particular segment. e.g. the https://www.strava.com/segments/6818475[Akerman Road] segment covers a road running North to South in Kennington/Stockwell in South London. This segment has the id +++<cite>+++'6818475'+++</cite>+++ so we'll need to look inside +++<cite>+++segment_efforts+++</cite>+++ and then compare the value +++<cite>+++segment.id+++</cite>+++ against this id. I initially wrote this query to try and find the times I'd run this segment: [source,sql] ---- SELECT id, data->'start_date' AS startDate, data->'average_speed' AS averageSpeed FROM runs WHERE jsonb_array_elements(data->'segment_efforts')->'segment'->>'id' = '6818475' ERROR: argument of WHERE must not return a set LINE 3: WHERE jsonb_array_elements(data->'segment_efforts')->'segmen... ---- This doesn't work since +++<cite>+++https://www.postgresql.org/docs/9.5/static/functions-json.html#FUNCTIONS-JSON-PROCESSING-TABLE[jsonb_array_elements]+++</cite>+++ returns a set of boolean values, as http://stackoverflow.com/questions/21675174/querying-data-within-json-array-data-field/21677486#21677486[Craig Ringer points out on Stack Overflow]. Instead we can use a https://www.postgresql.org/docs/9.4/static/queries-table-expressions.html#QUERIES-LATERAL[LATERAL subquery] to achieve our goal: [source,sql] ---- SELECT id, data->'start_date' AS startDate, data->'average_speed' AS averageSpeed FROM runs r, LATERAL jsonb_array_elements(r.data->'segment_efforts') segment WHERE segment ->'segment'->>'id' = '6818475' id | startdate | averagespeed -----------+------------------------+-------------- 455461182 | "2015-12-24T11:20:26Z" | 2.841 440088621 | "2015-11-27T06:10:42Z" | 2.975 407930503 | "2015-10-07T05:18:34Z" | 2.985 317170464 | "2015-06-03T04:44:59Z" | 2.842 312629236 | "2015-05-27T04:46:33Z" | 2.857 277786711 | "2015-04-02T05:25:59Z" | 2.408 226351235 | "2014-12-05T07:59:15Z" | 2.803 225073326 | "2014-12-01T06:15:21Z" | 2.929 224287690 | "2014-11-29T09:02:46Z" | 3.087 223964715 | "2014-11-28T06:18:29Z" | 2.844 (10 rows) ---- Perfect!
null
null
[ -0.0035220636054873466, -0.00988803431391716, -0.011463497765362263, 0.021600276231765747, 0.06538603454828262, 0.005942624527961016, 0.04204201698303223, 0.058289822190999985, 0.00028893016860820353, -0.007142254617065191, -0.004004297312349081, -0.03645870089530945, -0.06813018023967743, -0.003770996117964387, 0.007489302195608616, 0.07532194256782532, 0.06362424790859222, -0.01133845653384924, 0.023692991584539413, -0.010656516999006271, 0.04076039791107178, 0.062394458800554276, 0.028468985110521317, 0.019752757623791695, 0.054495323449373245, -0.008959219790995121, 0.007338301278650761, 0.01642054133117199, -0.05299621447920799, -0.013206031173467636, 0.022527799010276794, -0.015203106217086315, -0.008293426595628262, 0.006996894255280495, 0.0307689867913723, -0.00685330294072628, -0.012233097106218338, 0.014155871234834194, 0.0021065997425466776, 0.002980452263727784, -0.07931207120418549, 0.02479669265449047, -0.024756576865911484, 0.032368261367082596, -0.022132111713290215, 0.014082293957471848, -0.014187870547175407, 0.012462248094379902, -0.030982917174696922, -0.016834285110235214, -0.038695499300956726, 0.03277900442481041, -0.013932300731539726, 0.02589378133416176, 0.013782292604446411, 0.05245017632842064, 0.013985336758196354, -0.07808151096105576, 0.01595991477370262, -0.023359280079603195, 0.031968727707862854, 0.011569573543965816, -0.0008609557989984751, 0.004713414702564478, 0.03353866562247276, -0.03028193861246109, 0.00644504651427269, 0.05140853673219681, -0.022981369867920876, 0.013987184502184391, -0.00770959910005331, 0.03357613459229469, 0.015392952598631382, 0.025712279602885246, 0.016221243888139725, -0.05323582887649536, 0.021842695772647858, 0.07073348760604858, 0.021834934130311012, 0.0285797119140625, 0.019538389518857002, 0.011264563538134098, -0.004572649952024221, 0.057969581335783005, -0.010720104910433292, -0.04038257151842117, -0.030849969014525414, -0.043827105313539505, -0.0433875173330307, 0.05919655039906502, 0.015723494812846184, -0.027866028249263763, 0.018669864162802696, 0.01420450210571289, -0.028839077800512314, -0.012722323648631573, 0.023910492658615112, -0.017516054213047028, -0.026052452623844147, -0.052534911781549454, -0.04719231650233269, -0.03390995413064957, 0.02910458855330944, 0.04378415271639824, -0.0796891301870346, -0.00479144835844636, -0.02796573005616665, 0.0008684712811373174, 0.024110959842801094, 0.005886999890208244, -0.00939713791012764, 0.012800371274352074, -0.017883459106087685, -0.006672037299722433, -0.05802415311336517, 0.06835081428289413, 0.013074852526187897, -0.061072710901498795, -0.0035645212046802044, -0.007683255709707737, 0.04380281642079353, 0.011185229755938053, 0.011020355857908726, 0.06416594982147217, 0.019225455820560455, 0.03441891446709633, -0.011214233934879303, 0.027199367061257362, -0.017731713131070137, -0.04260683432221413, -0.026368802413344383, 0.03928585723042488, -0.022254083305597305, 0.02912835218012333, 0.0012704074615612626, -0.050160691142082214, -0.024488985538482666, 0.02497301995754242, 0.04578183963894844, 0.03004522994160652, -0.0027243439108133316, -0.0432518869638443, 0.0011282935738563538, -0.004837335087358952, 0.02924131415784359, 0.01941635087132454, 0.01364162191748619, -0.048733923584222794, -0.04574062302708626, 0.002027757465839386, 0.028154736384749413, 0.003845097031444311, 0.04517385736107826, -0.02777770906686783, 0.013512895442545414, 0.09913423657417297, 0.03888498246669769, 0.013285933993756771, -0.032628584653139114, 0.030927076935768127, 0.04380667582154274, 0.0338490791618824, 0.005885460413992405, 0.020630987361073494, -0.010380594991147518, -0.020113015547394753, 0.0157624464482069, 0.043663252145051956, -0.004000047687441111, -0.002966148778796196, -0.03882819786667824, -0.08400635421276093, 0.07062266767024994, -0.046487197279930115, -0.023410217836499214, 0.05181059613823891, 0.08752746880054474, 0.05598718672990799, 0.023420467972755432, 0.020534701645374298, -0.083443783223629, 0.04271166771650314, 0.009981181472539902, 0.030688386410474777, 0.03368530794978142, -0.023745974525809288, 0.07583493739366531, 0.016606822609901428, -0.017953837290406227, 0.01700231432914734, -0.0737837702035904, -0.08804313093423843, -0.04430631920695305, 0.0005128086195327342, 0.06025569140911102, -0.050209853798151016, 0.022227440029382706, 0.056131940335035324, -0.006356255616992712, 0.06536886096000671, 0.0031372071243822575, -0.004577974323183298, 0.0337149016559124, -0.059036221355199814, -0.046325184404850006, 0.07026556134223938, 0.05197054520249367, -0.013547019101679325, -0.021278075873851776, 0.02847612462937832, -0.03364497423171997, -0.00597483292222023, 0.011696496978402138, -0.01367920357733965, 0.010049169883131981, -0.00413935724645853, 0.05666288733482361, -0.0031320161651819944, 0.046950649470090866, -0.031199192628264427, 0.035247862339019775, 0.029801946133375168, -0.01638675667345524, 0.00891557801514864, -0.018427560105919838, 0.11229447275400162, 0.05811554566025734, 0.0023042084649205208, -0.06085452064871788, 0.02310299500823021, 0.032165054231882095, -0.022212786599993706, 0.0057100290432572365, -0.027305088937282562, 0.002277268562465906, -0.011198287829756737, -0.025792859494686127, -0.036802034825086594, 0.0228215791285038, -0.04581115394830704, -0.0063600982539355755, 0.052765898406505585, -0.00788120087236166, 0.05831717699766159, 0.0018889919156208634, -0.03647150471806526, -0.01126309484243393, -0.012201162055134773, -0.06096995621919632, -0.01952815242111683, -0.022201010957360268, -0.02730489894747734, 0.036420032382011414, -0.018610067665576935, -0.017493506893515587, -0.039316292852163315, -0.025776291266083717, 0.039150480180978775, 0.07554176449775696, 0.04124503210186958, -0.026435326784849167, 0.05306411534547806, -0.01199522614479065, 0.029106564819812775, -0.026291579008102417, -0.032800957560539246, -0.06140687316656113, -0.040156010538339615, 0.013722166419029236, 0.03780226409435272, 0.03128422796726227, 0.018831314519047737, 0.02193513698875904, 0.0031237176153808832, -0.005653060507029295, 0.009323126636445522, 0.04051729664206505, -0.004663829691708088, -0.00034224544651806355, 0.014117889106273651, -0.022017015144228935, 0.058104146271944046, -0.03366180136799812, -0.01696169748902321, 0.004654740449041128, -0.07220599055290222, 0.052627209573984146, -0.04118654876947403, -0.037874527275562286, 0.02821197919547558, 0.002678029239177704, 0.05691901966929436, -0.009196622297167778, -0.008169987238943577, 0.099286288022995, 0.01890963315963745, 0.015786154195666313, 0.012079741805791855, -0.005808819085359573, 0.047254275530576706, -0.03132731094956398, 0.0020367035176604986, 0.07587476819753647, 0.004810519982129335, 0.004444067366421223, -0.04899216815829277, -0.009350058622658253, -0.023386359214782715, -0.28004351258277893, 0.024398934096097946, -0.03699922189116478, -0.03058963268995285, 0.020132387056946754, 0.01069945003837347, -0.0009045252809301019, -0.026188088580965996, -0.03177858144044876, 0.017559919506311417, 0.011536452919244766, -0.035747915506362915, -0.006581840571016073, 0.024453451856970787, 0.014786883257329464, 0.026983505114912987, -0.003173736622557044, -0.054247405380010605, -0.005515890661627054, 0.06145544350147247, 0.03229241445660591, -0.09350012242794037, -0.004630222916603088, 0.03002079389989376, 0.05162538215517998, 0.046193677932024, -0.07891258597373962, 0.032399389892816544, -0.03479938581585884, -0.0046404218301177025, 0.03850650042295456, -0.01419940497726202, 0.01680131070315838, -0.04189378023147583, -0.005350071936845779, -0.04409131407737732, 0.02717822603881359, 0.0025054567959159613, 0.020682211965322495, -0.0016628812300041318, -0.042778197675943375, -0.030007395893335342, 0.011590683832764626, 0.002986924722790718, 0.07883358746767044, 0.0028623160906136036, -0.051903653889894485, 0.017916683107614517, -0.019856484606862068, 0.05876515805721283, -0.005603188648819923, -0.039866045117378235, -0.05114229395985603, 0.03281291946768761, -0.014725562185049057, -0.03826284036040306, -0.006427252199500799, -0.03028605505824089, -0.042440496385097504, -0.023104794323444366, 0.0176069475710392, -0.05178052932024002, -0.0009779050014913082, -0.04545442759990692, -0.02996065281331539, -0.05871374160051346, -0.04913780093193054, 0.0012811570195481181, 0.06307847797870636, 0.03381474316120148, -0.026058990508317947, 0.01769234985113144, -0.015846477821469307, -0.10376332700252533, -0.023696349933743477, -0.013514521531760693, -0.024482274428009987, -0.008870335295796394, -0.03301851078867912, 0.022038495168089867, -0.04586949571967125, -0.04527512565255165, 0.0003528708475641906, 0.02611325867474079, 0.02561868168413639, -0.029683753848075867, 0.006040398962795734, 0.006152575835585594, -0.009969804435968399, -0.008314380422234535, 0.07206802815198898, -0.026963455602526665, -0.016982948407530785, -0.0221834946423769, -0.014975233003497124, 0.03079226240515709, -0.010835938155651093, -0.009758641943335533, 0.0197115708142519, 0.025466108694672585, 0.021288957446813583, -0.051267776638269424, 0.013798718340694904, -0.05783742666244507, -0.0013597909128293395, -0.015959199517965317, -0.04838220775127411, 0.009210056625306606, 0.018569834530353546, 0.01956336386501789, 0.011297354474663734, -0.038366321474313736, 0.024752115830779076, -0.05200198292732239, 0.0004950996371917427, -0.025748034939169884, 0.039485711604356766, 0.032356176525354385, 0.04051857814192772, -0.014344197697937489, -0.06298823654651642, 0.049799975007772446, -0.003737305523827672, -0.021212419494986534, -0.05460120365023613, -0.015618245117366314, -0.028741229325532913, 0.0026983448769897223, -0.0071276347152888775, 0.029469916597008705, -0.0034910545218735933, 0.01853133924305439, 0.027729516848921776, -0.018343700096011162, 0.00638653663918376, -0.04176078736782074, -0.04712928459048271, -0.022773511707782745, 0.015569583512842655, 0.022360483184456825, -0.007972531020641327, 0.0037233701441437006, 0.02157347835600376, 0.047823306173086166, 0.026787374168634415, 0.006505862809717655, 0.025470731779932976, -0.0058009750209748745, 0.005043104290962219, 0.010786590166389942, -0.022614533081650734, -0.04994208365678787, 0.017466047778725624, -0.02560342662036419, -0.007388824597001076, -0.029630284756422043, 0.04027971252799034, -0.013634576462209225, -0.02288718707859516, -0.029828637838363647, 0.007966114208102226, -0.058661654591560364, -0.025467203930020332, -0.006487621460109949, -0.02272454835474491, 0.050393689423799515, -0.01026268769055605, 0.0016986137488856912, 0.001220224192366004, -0.005737940780818462, -0.006625676527619362, -0.04922221973538399, -0.012611006386578083, 0.005788265261799097, -0.01998191885650158, -0.008604373782873154, 0.0021154717542231083, 0.02858550101518631, 0.017672797664999962, -0.024081405252218246, -0.013267457485198975, 0.010188459418714046, 0.014411324635148048, 0.032637596130371094, 0.041086263954639435, 0.04567263275384903, -0.01102368999272585, -0.01502378098666668, -0.004588967189192772, -0.023066315799951553, -0.010841176845133305, -0.002575008664280176, -0.022506965324282646, -0.015244833193719387, -0.014290494844317436, -0.06460395455360413, 0.04655498266220093, 0.0005882857367396355, -0.013747235760092735, 0.027815308421850204, -0.012985366396605968, -0.013360266573727131, -0.006253913510590792, 0.06562639027833939, 0.05476970970630646, -0.05961930379271507, 0.007447042036801577, 0.003309473628178239, -0.0213396605104208, 0.0007706488249823451, 0.0016896770102903247, -0.03649574890732765, -0.0015237110201269388, -0.025919504463672638, 0.010133253410458565, -0.014191034249961376, -0.018760565668344498, -0.020328572019934654, 0.0053856587037444115, 0.011163162998855114, 0.028029492124915123, 0.00561724416911602, -0.015735482797026634, -0.009135963395237923, -0.01336064375936985, 0.041384097188711166, -0.026180753484368324, -0.036084964871406555, 0.05527736246585846, -0.023035943508148193, -0.022888269275426865, -0.05543052405118942, 0.043692488223314285, 0.03249253332614899, -0.018598128110170364, -0.0012055474799126387, -0.04802665859460831, -0.04164271056652069, -0.0012701863888651133, 0.07503271102905273, 0.003128334414213896, -0.035355228930711746, -0.013849636539816856, -0.0006268564611673355, -0.03402993455529213, 0.02025105617940426, -0.013320919126272202, 0.002617676043882966, 0.03564079850912094, 0.041362617164850235, 0.028747064992785454, 0.023013949394226074, -0.02590273879468441, -0.04328985512256622, 0.051503174006938934, -0.0435667522251606, -0.04157340154051781, -0.03181540593504906, -0.04692549630999565, 0.0005156522383913398, 0.011660585179924965, 0.004364571999758482, -0.0639239102602005, 0.045286212116479874, 0.012279289774596691, 0.02899821475148201, 0.053475189954042435, -0.019516408443450928, 0.027441037818789482, -0.013919273391366005, -0.0437387153506279, -0.10152583569288254, 0.007566862739622593, 0.03830868750810623, -0.020033113658428192, -0.011871135793626308, 0.023615408688783646, -0.05209743231534958, 0.026253717020154, -0.0535602867603302, -0.031360168009996414, 0.04710611328482628, 0.008248948492109776, -0.020990151911973953, -0.005408092401921749, -0.0368950329720974, 0.03478076308965683, 0.0382697768509388, -0.04188209027051926, 0.0013331234222278, -0.020191853865981102, 0.03973010927438736, -0.024299515411257744, 0.040335074067115784, -0.02267443761229515, -0.02571878395974636, 0.06686831265687943, 0.027963723987340927, -0.014423687011003494, 0.030920250341296196, -0.05514780431985855, 0.02787897177040577, 0.034492671489715576, 0.001471754047088325, -0.01583709754049778, 0.00023112769122235477, -0.006667251233011484, -0.07178951799869537, 0.06795718520879745, 0.0189577154815197, 0.00579093536362052, -0.036871109157800674, 0.0828159973025322, 0.01908251643180847, -0.04672383517026901, -0.06200214475393295, 0.009368509985506535, -0.0609973780810833, -0.020588194951415062, -0.005865751300007105, 0.009432539343833923, -0.04177011549472809, 0.0598943792283535, -0.013127218931913376, 0.0015494778053835034, 0.06777101755142212, 0.00015261453518178314, -0.01250897254794836, 0.012139296159148216, 0.09289149194955826, 0.07090470939874649, 0.022654036059975624, -0.02223939634859562, 0.06987317651510239, -0.009045750834047794, -0.03175670653581619, 0.013502312824130058, -0.04680204764008522, -0.020355459302663803, -0.02499796263873577, -0.0010406990768387914, 0.07703930139541626, -0.0177595354616642, 0.0713912770152092, -0.02335806004703045, -0.013910883106291294, 0.0279777180403471, -0.011644366197288036, 0.02487124130129814, 0.04615212604403496, -0.014814330264925957, 0.04879821836948395, -0.02222537063062191, -0.03264061361551285, 0.0022318242117762566, 0.007529363036155701, -0.03422762453556061, 0.025809990242123604, -0.019512152299284935, 0.016097694635391235, -0.007234272081404924, 0.029121531173586845, 0.07699263840913773, -0.025859562680125237, 0.005966818891465664, -0.0286494642496109, 0.03917975723743439, -0.015655621886253357, 0.05419667065143585, -0.01767849177122116, -0.054413292557001114, 0.012208450585603714, -0.05072099342942238, -0.00977420061826706, -0.00920498464256525, -0.039466533809900284, 0.014769383706152439, -0.014520437456667423, 0.017971040681004524, 0.0029727390501648188, -0.00697551341727376, -0.05562415346503258, -0.04723164439201355, -0.07493019849061966, -0.02376888133585453, -0.06228303909301758, 0.004256079439073801, 0.005931847728788853, -0.028889838606119156, -0.014550989493727684, -0.021098081022500992, -0.010267754085361958, 0.0023269220255315304, 0.016205716878175735, -0.035614363849163055, -0.038931287825107574, 0.023853762075304985, 0.027626190334558487, 0.01352448109537363, 0.013630932196974754, 0.07189622521400452, -0.0065180277451872826, 0.024097001180052757, -0.009266037493944168, -0.0029286614153534174, 0.05980344116687775, 0.021231340244412422, 0.007779976353049278, -0.06281057000160217, 0.022272896021604538, -0.004461982287466526, -0.011443154886364937, -0.05590307340025902, 0.01546941976994276, 0.04879569634795189, 0.005815468262881041, 0.05264149233698845, -0.009295733645558357, 0.01782434806227684, -0.051016874611377716, -0.04076706990599632, 0.0012921479064971209, -0.016806572675704956, 0.04038911312818527, -0.01810951717197895, 0.06776639819145203, 0.016639020293951035, -0.011797085404396057, -0.019860032945871353, -0.008480892516672611, 0.023073041811585426, -0.020412037149071693, -0.04172434285283089, -0.05695856735110283, -0.024864010512828827, -0.09385054558515549, -0.03352760523557663, 0.006561393849551678, -0.02395218051970005, -0.02617778815329075, 0.013468337245285511, 0.026209911331534386, -0.037926897406578064, 0.027145452797412872, -0.029263217002153397, 0.046136368066072464, -0.02618110366165638, -0.02163977548480034, -0.0429069846868515, 0.008370029740035534, 0.017061816528439522, 0.013743442483246326, 0.019422531127929688, -0.060059804469347, 0.02702575922012329, -0.019706083461642265, 0.03593385964632034, 0.04044070094823837, -0.015760939568281174, -0.012411047704517841 ]
[ -0.0905361995100975, -0.06213244050741196, -0.010486433282494545, 0.00983058288693428, 0.04624786227941513, -0.028687892481684685, -0.0375998355448246, 0.032299820333719254, 0.03676394000649452, 0.012406399473547935, -0.01639067940413952, -0.03066588006913662, -0.02869117259979248, 0.001255884300917387, -0.00006426523032132536, -0.035600386559963226, -0.01369587704539299, -0.054894350469112396, -0.002507430035620928, 0.04127012565732002, -0.031285360455513, -0.01859133131802082, -0.024738719686865807, -0.06338320672512054, 0.02573554962873459, 0.05591479316353798, 0.05124175548553467, -0.05960170179605484, -0.05736988037824631, -0.21022000908851624, -0.00452998885884881, -0.01598786748945713, 0.00851655937731266, -0.001645522890612483, -0.017072271555662155, 0.05953385308384895, -0.01665196754038334, 0.04767003282904625, 0.025085261091589928, 0.0655895248055458, 0.0010898513719439507, 0.01972198486328125, -0.0552784688770771, 0.02248072251677513, -0.007213299628347158, 0.015574508346617222, -0.03150958567857742, -0.0061232284642755985, 0.02627413161098957, 0.02701212465763092, -0.019991984590888023, 0.011870467104017735, 0.007287085056304932, -0.002659732475876808, -0.011234680190682411, 0.034755390137434006, 0.04314536601305008, 0.0848303735256195, 0.0025934013538062572, -0.008730684407055378, 0.01158181019127369, -0.031596045941114426, -0.1599542796611786, 0.08425590395927429, -0.020834075286984444, 0.02527293935418129, 0.004826393444091082, 0.015716295689344406, -0.030228417366743088, 0.04946434497833252, 0.01564718224108219, -0.0012573847780004144, -0.04347323998808861, 0.07476428896188736, 0.05718035623431206, -0.02715897001326084, -0.02199624851346016, 0.03481457009911537, 0.06288527697324753, 0.0010835069697350264, -0.028749901801347733, -0.010565468110144138, -0.043312277644872665, -0.02873706817626953, -0.014438705518841743, -0.025389399379491806, 0.0006524482741951942, 0.038263238966464996, 0.06037324294447899, 0.011201214045286179, 0.01613154634833336, -0.0374920517206192, 0.03421328216791153, 0.026890646666288376, -0.08319936692714691, -0.011369848623871803, -0.005829570349305868, -0.009018782526254654, 0.027179311960935593, 0.3516097366809845, -0.019356047734618187, 0.030611785128712654, 0.005247476045042276, 0.06714072078466415, -0.004243012983351946, -0.02802630327641964, 0.005793907213956118, -0.025810066610574722, 0.028870290145277977, -0.002599916188046336, 0.046712394803762436, 0.01641087792813778, 0.077321358025074, -0.07115019112825394, 0.0046384637244045734, 0.051664188504219055, 0.04871632531285286, 0.02189904823899269, -0.060651764273643494, 0.018988851457834244, -0.04364817589521408, -0.01096232607960701, -0.017457088455557823, -0.0005398776847869158, -0.012843852862715721, -0.020851271227002144, 0.060325682163238525, 0.06409825384616852, 0.03964032605290413, 0.007425179239362478, 0.0497426837682724, -0.03067462146282196, -0.1224975734949112, 0.0024318115320056677, -0.028576502576470375, -0.0264239814132452, 0.005757145117968321, -0.042536377906799316, -0.007303282152861357, 0.02181529998779297, -0.055113401263952255, -0.0513811931014061, 0.06596279889345169, -0.029223473742604256, -0.03474598750472069, 0.14775389432907104, -0.0254812128841877, 0.008559593930840492, -0.01745370775461197, -0.06684649735689163, -0.008946439251303673, 0.015390838496387005, 0.0020028483122587204, -0.0683818981051445, 0.0006865071482025087, 0.03505629301071167, 0.05817865952849388, -0.004488345701247454, -0.06219218298792839, -0.01525078248232603, -0.034194465726614, -0.042565736919641495, -0.05276957526803017, 0.06144910305738449, 0.023497814312577248, -0.12326505035161972, -0.03596534952521324, 0.029020588845014572, 0.01744992285966873, -0.0671742632985115, 0.00019494185107760131, 0.02525545284152031, -0.04184554144740105, -0.0130388755351305, 0.07114753872156143, 0.026275694370269775, -0.038005486130714417, 0.025825925171375275, 0.04317222535610199, 0.048353660851716995, -0.014462933875620365, 0.01741599291563034, -0.01725797913968563, -0.029170800000429153, -0.03763958066701889, -0.05408460274338722, -0.041064925491809845, -0.0003136041632387787, 0.02294248342514038, -0.009701278060674667, -0.004148736596107483, -0.06311415880918503, -0.061364177614450455, 0.019870968535542488, -0.008323454298079014, -0.018095189705491066, 0.02275349758565426, 0.02159116417169571, 0.03020935319364071, -0.03806736692786217, 0.016209235414862633, 0.022270116955041885, 0.023307621479034424, 0.08089373260736465, -0.0305612925440073, -0.0019428106024861336, 0.0066340286284685135, -0.05657906085252762, 0.032535675913095474, 0.026514098048210144, -0.03158107027411461, -0.01053695846349001, -0.06474541127681732, -0.0016772327944636345, 0.036514606326818466, -0.03550057113170624, -0.028366241604089737, -0.056966572999954224, 0.005032876506447792, 0.09599220752716064, -0.03166741877794266, -0.020746823400259018, 0.011646625585854053, -0.343553751707077, -0.025688055902719498, -0.015644008293747902, 0.029513832181692123, -0.007700893562287092, -0.024677712470293045, -0.042078595608472824, -0.011342772282660007, 0.011657953262329102, 0.027949996292591095, 0.1326102912425995, 0.00019985066319350153, 0.005150352604687214, -0.08834010362625122, 0.032712724059820175, 0.05640334635972977, -0.023475458845496178, -0.01670626364648342, -0.020069364458322525, -0.019042521715164185, 0.020169077441096306, -0.018255967646837234, -0.036498673260211945, -0.023333163931965828, 0.03392735496163368, -0.029495710507035255, 0.14228221774101257, 0.0242984090000391, 0.01902424730360508, -0.08858992159366608, 0.04163763299584389, -0.0031854016706347466, -0.025652645155787468, -0.06469707936048508, -0.01339273527264595, -0.02954523079097271, 0.043433383107185364, 0.048546336591243744, -0.008021069690585136, -0.0355597548186779, -0.06552427262067795, 0.05341240391135216, -0.034497495740652084, -0.02567383088171482, -0.025867929682135582, -0.02136923000216484, 0.0011973150540143251, 0.0032059340737760067, 0.005135222803801298, 0.06510424613952637, -0.01708550564944744, 0.02287680096924305, 0.03334793820977211, 0.0811605378985405, 0.03788146749138832, -0.004739119205623865, -0.09921165555715561, -0.026835745200514793, -0.038908448070287704, 0.011870377697050571, -0.019215287640690804, 0.03045925684273243, 0.05130146071314812, -0.05658966302871704, 0.02434139885008335, 0.02252347208559513, 0.0019100878853350878, -0.020554712042212486, 0.00928607676178217, 0.007070186082273722, -0.04618353024125099, 0.029754526913166046, -0.01893632672727108, 0.03588307276368141, 0.07659581303596497, 0.025995049625635147, 0.01533605344593525, 0.015097026713192463, 0.053500283509492874, 0.020347638055682182, 0.01310035865753889, -0.04311568662524223, 0.01936239004135132, 0.008286437019705772, 0.017264047637581825, 0.030725518241524696, -0.011210796423256397, 0.0058414870873093605, 0.05763440206646919, 0.02153644524514675, -0.044791266322135925, -0.03637361899018288, -0.038909606635570526, -0.055471714586019516, 0.04508359730243683, -0.005090835504233837, -0.24660351872444153, 0.07353117316961288, 0.04763446003198624, 0.018240077421069145, 0.030408822000026703, -0.018163887783885002, 0.0021256140898913145, -0.07665551453828812, -0.010536190122365952, -0.009382647462189198, 0.028927182778716087, 0.06230182573199272, 0.01857723481953144, 0.01490854099392891, -0.004569821059703827, 0.010175636038184166, 0.040533557534217834, 0.04264044016599655, 0.053171735256910324, 0.0200029443949461, 0.03826906532049179, 0.010687380097806454, 0.1683320701122284, -0.005579175893217325, -0.018155556172132492, 0.0007462624926120043, -0.00811865832656622, -0.0017705713398754597, 0.055242523550987244, 0.03442687913775444, -0.008033592253923416, -0.021780259907245636, 0.1122271791100502, 0.0477069616317749, 0.053489185869693756, -0.028727034106850624, -0.006069769151508808, 0.044698603451251984, 0.0045052566565573215, -0.05783982574939728, -0.02636641263961792, -0.0044670915231108665, -0.0022864709608256817, 0.05031127110123634, 0.1025688648223877, -0.008279293775558472, -0.028745386749505997, -0.039033278822898865, -0.028313975781202316, 0.01634266972541809, -0.018888048827648163, -0.025622980669140816, -0.02634524367749691, 0.01071756612509489, -0.0010391531977802515, 0.016533048823475838, 0.026813853532075882, -0.050960078835487366, 0.015703445300459862, 0.030790366232395172, -0.014618828892707825, -0.02710673026740551, 0.06436426937580109, -0.022638071328401566, 0.01238380465656519 ]
[ -0.003869140986353159, 0.027500540018081665, -0.04089101776480675, 0.03848912939429283, -0.032773733139038086, 0.00831220205873251, -0.020084265619516373, 0.017047684639692307, -0.024733174592256546, -0.036570750176906586, -0.04477095231413841, 0.014237374067306519, -0.005987860262393951, -0.02506995014846325, 0.033861514180898666, -0.009548255242407322, -0.010079849511384964, 0.020404990762472153, 0.03306606784462929, -0.006455137860029936, -0.0028827479109168053, 0.012218157760798931, 0.0019280972192063928, 0.0030820434913039207, -0.04471861571073532, 0.0576130710542202, -0.05509484186768532, -0.00807091686874628, 0.003322009230032563, -0.11693110316991806, -0.03803274407982826, -0.032727617770433426, 0.02507428452372551, 0.011923911981284618, -0.04405339062213898, 0.0007545816479250789, -0.025136245414614677, -0.013677744194865227, 0.014609976671636105, -0.006861725356429815, 0.01868179626762867, -0.013246102258563042, -0.05291321873664856, -0.021722031757235527, -0.0038911192677915096, -0.044816844165325165, -0.016103362664580345, -0.00450018048286438, -0.022029293701052666, 0.0069992500357329845, -0.04889886826276779, -0.015827059745788574, -0.004861051216721535, -0.0066894656047225, 0.029691636562347412, -0.012019391171634197, -0.06805341690778732, 0.04050903022289276, 0.010390917770564556, -0.0430261455476284, 0.03766977787017822, -0.0005920240073464811, -0.03274955227971077, -0.017626944929361343, -0.02824535220861435, -0.0439252071082592, 0.012040630914270878, -0.009333045221865177, 0.023704560473561287, -0.02780601941049099, 0.01898856833577156, 0.026550093665719032, -0.022727448493242264, -0.025245504453778267, -0.05483945459127426, 0.02391963265836239, 0.03380507603287697, -0.02072499878704548, -0.012560509145259857, -0.0032296760473400354, -0.022613445296883583, 0.00030137403518892825, -0.030080333352088928, 0.04538766294717789, 0.0011282640043646097, -0.025228844955563545, -0.004687172826379538, 0.003599863499403, 0.04200518876314163, -0.00991776492446661, -0.0212435033172369, -0.009120509959757328, -0.02151571772992611, 0.009108249098062515, -0.052013833075761795, 0.015400213189423084, -0.024870993569493294, -0.017086714506149292, 0.013050983659923077, 0.7918654680252075, 0.019575171172618866, 0.029235005378723145, 0.01557521615177393, 0.06131207197904587, -0.014188764616847038, 0.00943936686962843, 0.0016020846087485552, -0.012848839163780212, -0.02185448445379734, -0.01491987332701683, 0.0526239387691021, 0.04613640531897545, 0.04832225665450096, -0.0091995345428586, 0.012636636383831501, 0.029590515419840813, -0.012801703065633774, 0.015565801411867142, 0.03116902895271778, 0.02923964150249958, 0.01126660592854023, -0.019541457295417786, 0.024307964369654655, 0.023492606356739998, 0.045399874448776245, -0.1727551817893982, 0.020921971648931503, -7.523985221940277e-33, 0.024851806461811066, -0.0558648481965065, 0.09212800115346909, -0.03501579910516739, 0.02268911898136139, -0.043814174830913544, -0.021413901820778847, 0.020032141357660294, 0.024898847565054893, -0.024247413501143456, 0.004297176375985146, 0.010975880548357964, 0.017959488555788994, -0.017163947224617004, 0.06144542247056961, -0.020499341189861298, 0.0005011124303564429, 0.010266668163239956, 0.03145139664411545, 0.0067923832684755325, 0.01628817431628704, -0.0016508010448887944, -0.004105474334210157, 0.05785137787461281, 0.01684192568063736, 0.016213426366448402, 0.02931162156164646, -0.010310417041182518, -0.01997203193604946, -0.021442126482725143, -0.02581162005662918, 0.003716149367392063, 0.010356270708143711, 0.005206400528550148, 0.041907403618097305, -0.03232002258300781, -0.04373853653669357, 0.015876779332756996, -0.029168089851737022, -0.011268003843724728, 0.00339421140961349, -0.03713010251522064, -0.028592761605978012, -0.02410917356610298, -0.04313677176833153, -0.011478732340037823, 0.015212561003863811, 0.013968706130981445, -0.03443912789225578, 0.03577962890267372, 0.0007610045140609145, 0.018723754212260246, 0.010329404845833778, -0.008635975420475006, -0.018122103065252304, 0.022664323449134827, 0.022095579653978348, 0.011007310822606087, -0.01922203227877617, 0.04286385700106621, 0.00612496305257082, 0.0029728233348578215, -0.0021585647482424974, 0.04352280870079994, -0.003480940591543913, 0.0027805513236671686, -0.0010650112526491284, 0.03609922155737877, 0.019605262205004692, 0.030858775600790977, -0.04899000748991966, 0.036772675812244415, -0.022856885567307472, -0.021154196932911873, 0.044853780418634415, -0.0320107601583004, -0.00007422085764119402, 0.05469229444861412, 0.010908415541052818, 0.01775665022432804, 0.013166435994207859, -0.017815327271819115, -0.01997629553079605, -0.03985562175512314, -0.04417570307850838, 0.00655441265553236, 0.0405874140560627, -0.005525980144739151, -0.030281590297818184, 0.02098192647099495, 0.009882195852696896, 0.08447206020355225, 0.0014095548540353775, 0.0016469318652525544, 0.0017640463775023818, 6.986311167138286e-33, -0.00782013963907957, -0.019136004149913788, 0.02519902028143406, 0.008376270532608032, 0.037582430988550186, -0.02162581868469715, 0.0413372665643692, 0.03446253761649132, -0.034845974296331406, 0.055763185024261475, -0.041744161397218704, -0.013239174149930477, -0.03190814331173897, 0.02940831147134304, 0.0735219419002533, -0.0038936114870011806, 0.01602769084274769, -0.00850569736212492, -0.03581126406788826, 0.03338141366839409, 0.008122055791318417, 0.022972548380494118, 0.015006891451776028, 0.0008926409063860774, 0.02579171024262905, 0.012929954566061497, 0.0019829587545245886, -0.006352810189127922, -0.06225776672363281, 0.02563706785440445, 0.011576498858630657, -0.04686012864112854, -0.004150880500674248, -0.036809973418712616, -0.054071925580501556, 0.040025707334280014, -0.004420660901814699, -0.023181386291980743, 0.041700951755046844, -0.026029357686638832, 0.05026882514357567, 0.015014391392469406, 0.037598904222249985, 0.04420459643006325, 0.0007912822184152901, 0.005693251732736826, 0.011708445847034454, 0.01749316416680813, -0.04833221063017845, 0.005951103754341602, 0.0025721548590809107, 0.0418674610555172, -0.016918713226914406, 0.03179176151752472, 0.05042580887675285, -0.03322316333651543, -0.018832188099622726, -0.007703510578721762, -0.051459599286317825, 0.0063237654976546764, -0.025034833699464798, -0.001797878067009151, -0.03375503048300743, 0.025297127664089203, 0.009665628895163536, -0.08763336390256882, -0.0087540028616786, -0.045698173344135284, -0.02400713600218296, -0.007553613279014826, -0.03348018601536751, 0.00016945535026025027, -0.008808120153844357, 0.05613727122545242, -0.027064364403486252, -0.03807784244418144, -0.03415247052907944, 0.054240740835666656, -0.00184509321115911, 0.02885911799967289, 0.05173984542489052, -0.02040238492190838, 0.0261069443076849, -0.005903801415115595, 0.008827917277812958, 0.03693190962076187, -0.03166745975613594, -0.006688067223876715, 0.010162520222365856, 0.01332238782197237, -0.011478299275040627, -0.03472113236784935, -0.018166886642575264, 0.020686663687229156, -0.021528752520680428, -1.243568981124099e-8, -0.03950949385762215, 0.0006778363604098558, -0.03067917376756668, 0.021596472710371017, 0.07983756065368652, 0.008251269347965717, -0.03693266585469246, -0.01760120689868927, 0.014301180839538574, -0.0061821406707167625, 0.07798471301794052, -0.03385099396109581, 0.010511639527976513, 0.01670372299849987, -0.03895658254623413, -0.06741656363010406, -0.024444451555609703, -0.007477686740458012, 0.02170632965862751, -0.012254966422915459, -0.034122664481401443, 0.020318716764450073, -0.024644847959280014, -0.008233537897467613, 0.03937635198235512, -0.009893957525491714, 0.020458713173866272, -0.0830325186252594, 0.012251263484358788, -0.010980150662362576, 0.018679728731513023, -0.02782355062663555, 0.010825242847204208, -0.005073765758424997, -0.016543133184313774, -0.06097877398133278, 0.06742966175079346, 0.03089805878698826, 0.011018018238246441, 0.019469430670142174, 0.004799384158104658, 0.0005717378808185458, 0.01247867289930582, -0.027724064886569977, -0.006182658951729536, 0.018345270305871964, -0.038637466728687286, 0.009051055647432804, -0.0031735561788082123, -0.025581350550055504, 0.01960945874452591, -0.019021160900592804, 0.030857229605317116, 0.053381066769361496, 0.04881323501467705, -0.0111704021692276, 0.023051084950566292, -0.012038557790219784, -0.037916261702775955, 0.009085416793823242, 0.028943058103322983, 0.0037375474348664284, -0.0213865227997303, -0.034920040518045425 ]
postgresql-error-argument-must-not-return-set
https://markhneedham.com/blog/2017/05/01/postgresql-error-argument-must-not-return-set
false
2017-02-28 15:50:27
Neo4j: Graphing the 'My name is...I work' Twitter meme
[ "twitter", "neo4j" ]
[ "neo4j" ]
Over the last few days I've been watching the chain of 'My name is\...' tweets kicked off by https://twitter.com/dhh[DHH] with interest. As I understand it, the idea is to show that coding interview riddles/hard tasks on a whiteboard are ridiculous. [,DHH (@dhh) https://twitter.com/dhh/status/834146806594433025[February 21, 2017]] ____ Hello, my name is David. I would fail to write bubble sort on a whiteboard. I look code up on the internet all the time. I don&#39;t do riddles. ____+++<script async="" src="//platform.twitter.com/widgets.js" charset="utf-8">++++++</script>+++ Other people quoted that tweet and added their own piece and yesterday Eduardo Hernacki suggested that traversing this chain of tweets seemed tailor made for Neo4j. [,Eduardo Hernacki (@eduardohki) https://twitter.com/eduardohki/status/836402386440761347[February 28, 2017]] ____ https://twitter.com/eduardohki[@eduardohki] is someone traversing all this stuff? https://twitter.com/hashtag/Neo4j?src=hash[#Neo4j] ____+++<script async="" src="//platform.twitter.com/widgets.js" charset="utf-8">++++++</script>+++ https://twitter.com/mesirii[Michael] was quickly on the scene and created a Cypher query which calls the Twitter API and creates a Neo4j graph from the resulting JSON response. The only tricky bit is creating a 'bearer token' but Jason Kotchoff has https://gist.github.com/jkotchoff/03add042c9b1b7db350c[a helpful gist] showing how to generate one from your Twitter consumer key and consumer secret. Now that we're got our bearer token let's create a parameter to store it. Type the following in the Neo4j browser: [source,cypher] ---- :param bearer: '<your-bearer-token-goes-here>' ---- Now we're ready to query the Twitter API. We'll start with the https://dev.twitter.com/rest/reference/get/search/tweets[search API] and find all tweets which contain the text '"my name" "I work"'. That will return a JSON response containing lots of tweets. We'll then create a node for each tweet it returns, a node for the user who posted the tweet, a node for the tweet it quotes, and relationships to glue them all together. We're going to use the +++<cite>+++apoc.load.jsonParams+++</cite>+++ procedure from the https://github.com/neo4j-contrib/neo4j-apoc-procedures/releases[APOC library] to help us import the data. If you want to follow along you can use a https://neo4j.com/sandbox-v2/[Neo4j sandbox instance] which comes with APOC installed. For your local Neo4j installation, grab the APOC jar and put it into your +++<cite>+++plugins+++</cite>+++ folder before restarting Neo4j. This is the query in full: [source,cypher] ---- WITH 'https://api.twitter.com/1.1/search/tweets.json?count=100&result_type=recent&lang=en&q=' as url, {bearer} as bearer CALL apoc.load.jsonParams(url + "%22my%20name%22%20is%22%20%22I%20work%22",{Authorization:"Bearer "+bearer},null) yield value UNWIND value.statuses as status WITH status, status.user as u, status.entities as e WHERE status.quoted_status_id is not null // create a node for the original tweet MERGE (t:Tweet {id:status.id}) ON CREATE SET t.text=status.text,t.created_at=status.created_at,t.retweet_count=status.retweet_count, t.favorite_count=status.favorite_count // create a node for the author + a POSTED relationship from the author to the tweet MERGE (p:User {name:u.screen_name}) MERGE (p)-[:POSTED]->(t) // create a MENTIONED relationship from the tweet to any users mentioned in the tweet FOREACH (m IN e.user_mentions | MERGE (mu:User {name:m.screen_name}) MERGE (t)-[:MENTIONED]->(mu)) // create a node for the quoted tweet and create a QUOTED relationship from the original tweet to the quoted one MERGE (q:Tweet {id:status.quoted_status_id}) MERGE (t)–[:QUOTED]->(q) // repeat the above steps for the quoted tweet WITH t as t0, status.quoted_status as status WHERE status is not null WITH t0, status, status.user as u, status.entities as e MERGE (t:Tweet {id:status.id}) ON CREATE SET t.text=status.text,t.created_at=status.created_at,t.retweet_count=status.retweet_count, t.favorite_count=status.favorite_count MERGE (t0)-[:QUOTED]->(t) MERGE (p:User {name:u.screen_name}) MERGE (p)-[:POSTED]->(t) FOREACH (m IN e.user_mentions | MERGE (mu:User {name:m.screen_name}) MERGE (t)-[:MENTIONED]->(mu)) MERGE (q:Tweet {id:status.quoted_status_id}) MERGE (t)–[:QUOTED]->(q); ---- The resulting graph looks like this: [source,cypher] ---- MATCH p=()-[r:QUOTED]->() RETURN p LIMIT 25 ---- image::{{<siteurl>}}/uploads/2017/02/graph-21.png[Graph 21,407] A more interesting query would be to find the path from DHH to Eduardo which we can find with the following query: [source,cypher] ---- match path = (dhh:Tweet {id: 834146806594433025})<-[:QUOTED*]-(eduardo:Tweet{id: 836400531983724545}) UNWIND NODES(path) AS tweet MATCH (tweet)<-[:POSTED]->(user) RETURN tweet, user ---- This query: * starts from DHH's tweet * traverses all +++<cite>+++QUOTED+++</cite>+++ relationships until it finds Eduardo's tweet * collects all those tweets and then finds the author * returns the tweet and the author And this is the output: image::{{<siteurl>}}/uploads/2017/02/graph-22-2.png[Graph 20,700] I ran a couple of other queries against the Twitter API to hydrate some nodes that we hadn't set all the properties on - you can https://gist.github.com/mneedham/438649fbbac0e4124ae19f12586d529f[see all the queries on this gist]. For the next couple of days I also have a sandbox running https://10-0-1-157-32898.neo4jsandbox.com/browser/. You can login using the credentials +++<cite>+++readonly/twitter+++</cite>+++. </p> If you have any questions/suggestions let me know in the comments, https://twitter.com/markhneedham[@markhneedham] on twitter, or email the Neo4j DevRel team - [email protected].
null
null
[ 0.03672078624367714, 0.013516504317522049, -0.021561602130532265, 0.044534243643283844, 0.0726192370057106, 0.029457097873091698, 0.0347621850669384, 0.04444366693496704, 0.027921460568904877, -0.002518819412216544, -0.011545885354280472, -0.011101576499640942, -0.06299633532762527, 0.012465912848711014, -0.01902831345796585, 0.04998403042554855, 0.08053916692733765, 0.018352685496211052, 0.03164471685886383, 0.0031047347001731396, 0.005420631263405085, 0.0491504929959774, 0.024113550782203674, 0.011102925054728985, 0.029891641810536385, 0.013149123638868332, -0.021684927865862846, 0.01754484511911869, -0.06339326500892639, -0.0024085852783173323, 0.04093388840556145, -0.004104303661733866, 0.03357783704996109, -0.02414487861096859, 0.013873997144401073, -0.007100439164787531, -0.03475901484489441, -0.005894877016544342, 0.021855738013982773, 0.033322546631097794, -0.08661917597055435, 0.01788170449435711, -0.009209620766341686, 0.016748866066336632, -0.04702148213982582, -0.0013839328894391656, -0.040752310305833817, 0.017731552943587303, 0.003506562439724803, 0.007878058589994907, -0.0718286782503128, 0.03235281631350517, -0.012915544211864471, -0.00959340762346983, 0.0006272803875617683, 0.03964678570628166, 0.023460332304239273, -0.09458068758249283, 0.029613057151436806, -0.02288133092224598, 0.014496278017759323, -0.015223170630633831, 0.015478997491300106, 0.019525330513715744, 0.007532111369073391, -0.060781773179769516, -0.011798501946032047, 0.06429615616798401, -0.0544092021882534, 0.008924205787479877, 0.022948965430259705, 0.04208342730998993, -0.02159048803150654, -0.03373308107256889, 0.007406738121062517, -0.039766550064086914, 0.007626617327332497, 0.07681652903556824, 0.021442480385303497, 0.03777104243636131, -0.042394593358039856, 0.019349509850144386, 0.013824707828462124, 0.055531732738018036, -0.024632664397358894, -0.013243896886706352, -0.03539232909679413, -0.016943661496043205, -0.05334171652793884, 0.036570023745298386, -0.007571225054562092, -0.05066931992769241, 0.015140197239816189, 0.014213413931429386, -0.008492843247950077, -0.002487865276634693, 0.013144036754965782, 0.018183918669819832, -0.006789414677768946, -0.03430212661623955, -0.03145458176732063, -0.039305418729782104, 0.008726178668439388, 0.000006725032108079176, -0.06058020517230034, -0.0035291961394250393, 0.006457311101257801, -0.011648084968328476, 0.01106266025453806, -0.011218859814107418, -0.027699818834662437, 0.026240075007081032, -0.005437730345875025, 0.011863406747579575, -0.04920466989278793, 0.08555527776479721, 0.011238088831305504, -0.02159840054810047, -0.02946019358932972, 0.02959589660167694, 0.025136809796094894, 0.027301127091050148, -0.02026013284921646, 0.07756444811820984, 0.0013610288733616471, 0.04788448289036751, -0.016105005517601967, 0.03591807186603546, -0.020712681114673615, -0.04605104774236679, -0.02362114191055298, 0.06041506305336952, -0.01843930408358574, 0.010355488397181034, -0.03421150520443916, -0.04117150232195854, -0.028395920991897583, 0.005672107450664043, 0.0495261549949646, 0.030556032434105873, -0.013398189097642899, -0.04015985131263733, -0.0016791106900200248, -0.006998020224273205, 0.01564575731754303, 0.011576998978853226, -0.03160608932375908, -0.03860822692513466, -0.020280281081795692, 0.032998889684677124, -0.01468809787184, -0.022817328572273254, 0.032685428857803345, -0.02332020364701748, -0.0007640579133294523, 0.05318398028612137, 0.05119001865386963, 0.0006965647335164249, -0.010793965309858322, 0.01313592866063118, 0.0446372888982296, 0.03819507360458374, 0.023868508636951447, 0.059801697731018066, 0.0027251560240983963, -0.02601618506014347, 0.012243303470313549, 0.07443562150001526, -0.0235802810639143, -0.002953341230750084, -0.039923641830682755, -0.04597272351384163, 0.07994299381971359, -0.014026991091668606, -0.003384950803592801, 0.0308783408254385, 0.051653120666742325, -0.0017753448337316513, 0.025730974972248077, 0.028458096086978912, -0.06754180788993835, 0.05305667594075203, 0.04557705670595169, 0.03222031891345978, 0.015731090679764748, -0.015858370810747147, 0.06321822851896286, 0.01693696156144142, 0.02156628668308258, 0.042712192982435226, -0.07101698219776154, -0.07168474793434143, -0.01361708901822567, 0.008358118124306202, 0.04765326529741287, -0.03486291691660881, 0.03986496478319168, 0.05652404576539993, 0.04394548386335373, 0.037805043160915375, 0.016873469576239586, -0.02185295894742012, 0.02432801015675068, -0.047538358718156815, -0.07051906734704971, 0.061466313898563385, 0.04249204695224762, -0.03424390032887459, -0.031145447865128517, 0.007791564799845219, -0.011729029007256031, -0.007146809250116348, 0.0374843068420887, -0.02688422240316868, 0.011369784362614155, 0.019675835967063904, 0.03941682353615761, 0.008649933151900768, 0.026319589465856552, -0.026846282184123993, 0.05475747585296631, -0.00816223956644535, -0.01613260805606842, -0.030268937349319458, -0.014083316549658775, 0.12268519401550293, 0.042165692895650864, -0.03874430060386658, -0.06736554950475693, 0.024790607392787933, -0.005918434355407953, -0.036062147468328476, 0.012459474615752697, -0.013673532754182816, -0.03419563174247742, 0.0011638551950454712, -0.05456484109163284, -0.053680259734392166, 0.01993691176176071, -0.04435831680893898, 0.021143225952982903, 0.06577610969543457, -0.031065871939063072, 0.04272214323282242, 0.003242379054427147, -0.009179750457406044, 0.007493786513805389, -0.04089362919330597, -0.06181463226675987, 0.008241569623351097, 0.00534462183713913, -0.0024652061983942986, 0.018845083191990852, -0.023294083774089813, -0.01210031844675541, -0.012529107742011547, -0.02341112494468689, 0.025795547291636467, 0.027058342471718788, 0.07040290534496307, -0.014515889808535576, 0.06490109115839005, -0.03258446604013443, 0.023768626153469086, -0.018201889470219612, -0.025490639731287956, -0.03844256326556206, -0.03146515414118767, -0.004873652942478657, -0.0022975634783506393, 0.04641496762633324, 0.0020277868025004864, -0.004659474361687899, -0.0035809543915092945, 0.012187392450869083, -0.0071969046257436275, 0.025187576189637184, -0.006695842836052179, -0.004010312724858522, -0.02511436678469181, -0.053542204201221466, 0.06435516476631165, -0.061160095036029816, -0.028492793440818787, -0.015693113207817078, -0.08827653527259827, 0.042865604162216187, -0.05126895755529404, -0.0296743493527174, -0.003777446923777461, 0.026135804131627083, 0.036052823066711426, 0.009536884725093842, 0.0008387141861021519, 0.03385808691382408, -0.026358041912317276, 0.022896217182278633, 0.00891732145100832, -0.010090764611959457, 0.05923387408256531, -0.01086692325770855, 0.04702511429786682, 0.037483107298612595, -0.020526397973299026, -0.003604302415624261, -0.03734910115599632, 0.01858438365161419, -0.010534309782087803, -0.27950534224510193, 0.0686984732747078, 0.009330430999398232, -0.037953563034534454, 0.03712163120508194, -0.028522690758109093, -0.013892581686377525, -0.02798067405819893, -0.0020064900163561106, 0.0013391063548624516, 0.0004228555771987885, -0.016296057030558586, -0.032888952642679214, 0.0045554060488939285, 0.00048031812184490263, -0.0278366357088089, -0.03586956113576889, -0.05037843808531761, 0.010747391730546951, 0.037992771714925766, -0.019688623026013374, -0.017931334674358368, 0.004944794811308384, 0.03532949835062027, 0.029278330504894257, 0.04376095533370972, -0.1136394590139389, 0.013427335768938065, -0.038801249116659164, -0.010346049442887306, 0.004836735315620899, -0.016960930079221725, 0.0007722184527665377, 0.02804769203066826, -0.024588514119386673, -0.010486884973943233, 0.05059992894530296, -0.01861577294766903, -0.0007591244066134095, 0.02558973990380764, -0.030455486848950386, -0.04835943505167961, -0.03899919241666794, -0.029561838135123253, 0.09297218918800354, -0.004888797644525766, -0.04752038046717644, -0.0014888022560626268, -0.014843469485640526, 0.05819069221615791, -0.03350327908992767, -0.04763496667146683, -0.033504072576761246, 0.013849714770913124, 0.0023581236600875854, -0.019856911152601242, -0.029775317758321762, -0.013774889521300793, -0.07992754131555557, -0.03504909574985504, 0.002935086376965046, -0.017683206126093864, -0.01587332785129547, -0.047504592686891556, -0.01807803474366665, -0.0786627009510994, -0.037407565861940384, -0.008539312519133091, 0.08453590422868729, -0.008502146229147911, -0.018475143238902092, 0.03944346681237221, -0.027923963963985443, -0.11410336941480637, -0.009581565856933594, -0.01186385191977024, -0.013182261027395725, 0.012399319559335709, 0.009079080075025558, 0.02678024210035801, -0.03491276130080223, -0.05650399997830391, 0.02328868955373764, 0.0048763928934931755, 0.028689460828900337, -0.004480388946831226, 0.024680493399500847, -0.01554361917078495, -0.013273042626678944, 0.018175220116972923, 0.07079309225082397, -0.021430371329188347, -0.03808528184890747, 0.008929493837058544, 0.00824093446135521, 0.038673512637615204, 0.009937905706465244, -0.008653903380036354, -0.004898786079138517, 0.06730035692453384, 0.027808910235762596, -0.04451913386583328, 0.014288784004747868, -0.02732146717607975, -0.02728707157075405, -0.00360478344373405, -0.03489873930811882, 0.04494474083185196, 0.015643026679754257, 0.02362181805074215, -0.01025362964719534, -0.029327809810638428, -0.0016414655838161707, -0.04086430370807648, -0.01927642710506916, -0.01802654378116131, 0.012405477464199066, 0.03183123469352722, 0.03125544637441635, -0.02133244089782238, -0.039183370769023895, 0.029287029057741165, 0.03241381049156189, 0.00008572625665692613, -0.058248236775398254, -0.018015539273619652, -0.015244199894368649, -0.011037427000701427, 0.0480768196284771, -0.012511179782450199, 0.003927470650523901, 0.01618199609220028, -0.009914934635162354, -0.03423020988702774, 0.0513472743332386, -0.02692168392241001, -0.019554506987333298, -0.06394513696432114, 0.008222639560699463, 0.003032588865607977, 0.01111946627497673, 0.015295353718101978, -0.008492175489664078, 0.02264961041510105, 0.06469842791557312, 0.0024929167702794075, 0.016965333372354507, -0.019301561638712883, 0.01698317937552929, -0.007509557530283928, 0.014038206078112125, -0.052726395428180695, 0.014257946982979774, -0.04020475223660469, 0.006132313050329685, -0.004384307656437159, 0.048695314675569534, -0.010204877704381943, -0.029832780361175537, -0.027152271941304207, 0.03852570801973343, -0.048910871148109436, 0.019262375310063362, 0.007474870886653662, -0.008614601567387581, 0.026747137308120728, -0.03146089240908623, 0.05486971139907837, -0.02500944584608078, -0.02391562983393669, -0.009659357368946075, 0.016039151698350906, -0.041143592447042465, -0.009434722363948822, 0.0005857281503267586, -0.014678088948130608, -0.02221810631453991, 0.014910594560205936, 0.032136403024196625, 0.015524870716035366, 0.0008176976698450744, -0.010748897679150105, 0.011988898739218712, 0.025021281093358994, 0.05732635408639908, 0.053566865622997284, 0.00948380772024393, 0.0021300131920725107, -0.03519618883728981, 0.013905982486903667, -0.03961815685033798, 0.0036148601211607456, -0.022028788924217224, 0.016162818297743797, -0.021847911179065704, -0.055530060082674026, 0.04254559800028801, -0.011640430428087711, 0.040630847215652466, 0.05204441770911217, 0.017616411671042442, 0.011799285188317299, -0.04625597968697548, 0.04441830515861511, 0.06478173285722733, -0.05007785186171532, -0.004828786477446556, 0.00042652792762964964, 0.02838793583214283, -0.0020135764498263597, 0.05089936777949333, -0.07688505947589874, -0.03849309682846069, -0.03826069459319115, 0.017560912296175957, -0.04899926856160164, -0.04952868074178696, -0.023232512176036835, 0.026338784024119377, -0.02104341611266136, 0.02055806666612625, -0.018463045358657837, 0.007226709742099047, 0.019035881385207176, -0.013197137974202633, 0.02558286301791668, -0.029273485764861107, -0.012614218518137932, 0.027224157005548477, -0.02076539769768715, 0.009305808693170547, -0.0013068822445347905, 0.017034754157066345, 0.03521379828453064, -0.04541927948594093, -0.015948593616485596, -0.057273346930742264, -0.019027262926101685, -0.033884935081005096, 0.061007287353277206, 0.0009878025157377124, -0.011415324173867702, -0.03479478135704994, -0.016591692343354225, -0.041239816695451736, 0.02438618429005146, 0.009766357019543648, 0.000537194951903075, 0.05113662779331207, 0.03132890537381172, 0.03211124613881111, 0.03358302265405655, -0.03214937448501587, -0.014151761308312416, 0.044096920639276505, -0.05069640651345253, -0.012491271831095219, -0.048994280397892, -0.04242517054080963, 0.006512205582112074, -0.004246070049703121, 0.017334764823317528, -0.0439458005130291, 0.020206710323691368, 0.025728199630975723, 0.030927583575248718, 0.05313197523355484, -0.01492479257285595, 0.03850732371211052, -0.029673179611563683, -0.029047248885035515, -0.06951813399791718, 0.013817221857607365, 0.027182908728718758, -0.0343676432967186, 0.006596934981644154, 0.0042432257905602455, -0.017482765018939972, -0.0076422905549407005, -0.044411610811948776, -0.02064386196434498, 0.04719904065132141, -0.03596656396985054, 0.030963724479079247, 0.019178658723831177, -0.05881629139184952, 0.012776442803442478, 0.02532269060611725, -0.02860921435058117, -0.037384964525699615, -0.02405855432152748, 0.06253975629806519, -0.0057341861538589, 0.029286928474903107, -0.021765610203146935, -0.04534190520644188, 0.06946668028831482, 0.027514666318893433, 0.0055589801631867886, 0.048387568444013596, -0.012212784960865974, 0.011661559343338013, 0.042008381336927414, 0.016662001609802246, 0.015078635886311531, 0.035121675580739975, -0.05690961703658104, -0.09287642687559128, 0.029589515179395676, 0.005687716882675886, -0.03301828354597092, -0.0383928045630455, 0.08624497056007385, 0.016466978937387466, -0.03803577274084091, -0.029001856222748756, 0.04151827469468117, -0.016618382185697556, -0.03559912368655205, -0.039912667125463486, -0.01925438456237316, -0.04237766191363335, 0.050381943583488464, 0.007913175970315933, 0.011809762567281723, 0.07540785521268845, -0.014311741106212139, -0.0047773802652955055, -0.014361793175339699, 0.09071886539459229, 0.09686590731143951, 0.04144981876015663, -0.008661067113280296, 0.052809275686740875, -0.02138233371078968, -0.032153207808732986, -0.006488787475973368, 0.0032355207949876785, -0.014737620018422604, -0.01077274326235056, -0.0025365790352225304, 0.047647591680288315, -0.048917897045612335, 0.08422155678272247, -0.010056908242404461, -0.013739640824496746, 0.002653250703588128, 0.015860076993703842, 0.0005237438017502427, 0.06056099757552147, 0.013984502293169498, 0.057167451828718185, -0.020902540534734726, -0.0330602191388607, 0.0487237311899662, -0.021206084638834, -0.025825997814536095, 0.03822189196944237, -0.013009244576096535, 0.020137302577495575, 0.01561491284519434, 0.024603519588708878, 0.06724154949188232, -0.028561601415276527, -0.0023122483398765326, 0.009437687695026398, 0.0392247810959816, -0.008063357323408127, 0.049829043447971344, -0.01149925496429205, 0.014013390988111496, -0.015234699472784996, -0.058130331337451935, -0.004282842855900526, -0.014672837220132351, -0.02474966086447239, 0.05486283823847771, -0.022391503676772118, -0.0011506029404699802, -0.005903224926441908, -0.013313825242221355, -0.04333577677607536, -0.061509691178798676, -0.03630220517516136, -0.07427085936069489, -0.052096303552389145, -0.050676457583904266, 0.018984362483024597, -0.00952013861387968, -0.029870081692934036, -0.005594517569988966, -0.03985769301652908, -0.0009029525681398809, 0.03789059817790985, -0.04760592058300972, 0.0002837900537997484, 0.007016279269009829, 0.03639824315905571, 0.008708229288458824, 0.019318534061312675, 0.04444878548383713, 0.01154729537665844, 0.001899244962260127, -0.03906221315264702, 0.01349698193371296, 0.027121588587760925, 0.03677996248006821, -0.023927249014377594, -0.09133541584014893, -0.002381241647526622, 0.020301181823015213, 0.008944349363446236, -0.06733471900224686, 0.022344734519720078, 0.024813225492835045, -0.006549326237291098, 0.026209231466054916, 0.009715423919260502, 0.014692827127873898, -0.020422786474227905, -0.012562436982989311, -0.0028254620265215635, -0.025665484368801117, 0.04282043129205704, -0.037086132913827896, 0.09977766871452332, 0.010268124751746655, -0.006062632892280817, -0.039841026067733765, -0.02913295477628708, -0.020556028932332993, 0.0038444558158516884, -0.026972441002726555, -0.05313148349523544, -0.03764273598790169, -0.0866994634270668, -0.006637703161686659, 0.022421807050704956, -0.01699540950357914, -0.02219703234732151, 0.06085123121738434, 0.025176379829645157, -0.008866180665791035, 0.0519426167011261, -0.04479898884892464, 0.010901764035224915, -0.018019938841462135, -0.0005878222873434424, 0.000045899450924480334, -0.018276279792189598, -0.022208819165825844, 0.0025690672919154167, 0.020190861076116562, -0.04314987361431122, 0.006307833828032017, -0.017194464802742004, 0.01905646175146103, 0.022123116999864578, 0.0027691384311765432, 0.01687309332191944 ]
[ -0.07264471054077148, -0.023949364200234413, -0.04496246203780174, -0.021120980381965637, 0.04317813739180565, -0.05297248438000679, 0.015138938091695309, 0.03181719034910202, 0.01770596206188202, -0.0242465790361166, 0.012887385673820972, -0.024620939046144485, 0.002484384225681424, 0.00503452168777585, 0.10168614238500595, 0.0285287294536829, 0.0021172405686229467, -0.08965607732534409, -0.023932142183184624, 0.022791191935539246, 0.003747427836060524, -0.025603516027331352, 0.002259798813611269, -0.03439955785870552, 0.01636076532304287, 0.005082421470433474, 0.04971018433570862, -0.03046385571360588, -0.010968634858727455, -0.18702232837677002, 0.02679627574980259, 0.009221294894814491, 0.04158284515142441, -0.01153944805264473, 0.02263769879937172, 0.04731081798672676, 0.008605520240962505, -0.006474267691373825, 0.0037796488031744957, 0.03775767982006073, 0.006316812708973885, -0.01030641794204712, -0.03961211442947388, -0.025765802711248398, 0.06852806359529495, 0.026926901191473007, -0.025629879906773567, -0.004680762067437172, -0.029878156259655952, 0.019832976162433624, -0.07133840769529343, -0.02732008323073387, -0.0027305996045470238, -0.028139205649495125, 0.0025209025479853153, 0.02447592094540596, 0.0353161096572876, 0.07319528609514236, 0.01718895323574543, 0.035733986645936966, 0.04458397254347801, -0.006008695811033249, -0.11631198972463608, 0.10053402185440063, 0.02386513724923134, 0.033406585454940796, -0.024041803553700447, -0.004083015024662018, -0.009829063899815083, 0.07747520506381989, 0.06040645018219948, -0.011639521457254887, -0.012674388475716114, 0.0463404543697834, -0.00715720746666193, 0.020000968128442764, 0.011988754384219646, 0.023211117833852768, 0.0046142577193677425, -0.0387740433216095, -0.0392964668571949, 0.009063109755516052, -0.018055375665426254, -0.0188455730676651, -0.04223098233342171, 0.001136386301368475, -0.03512504696846008, 0.0671444684267044, -0.003739897394552827, 0.0421861931681633, 0.03927227482199669, -0.0194044541567564, 0.04359390214085579, 0.008911719545722008, -0.08998175710439682, -0.049962569028139114, -0.014032366685569286, 0.018496565520763397, -0.03909957781434059, 0.4257996380329132, 0.00309242052026093, -0.014052427373826504, 0.08203048259019852, 0.042360756546258926, 0.0012083675246685743, -0.01242820918560028, 0.013112878426909447, -0.10066954046487808, 0.030986294150352478, -0.03760954737663269, 0.009865226224064827, -0.01690053381025791, 0.09155973792076111, -0.05839826539158821, 0.021041473373770714, 0.020497918128967285, 0.05813799053430557, 0.0315546952188015, -0.02633560076355934, 0.0013812625547870994, -0.02413024753332138, 0.03847794979810715, 0.0289465319365263, -0.01178369764238596, -0.011451560072600842, -0.004229267593473196, 0.029735142365098, 0.061867550015449524, 0.04131479188799858, 0.0067944955080747604, 0.030691644176840782, -0.0030891934875398874, -0.05952298268675804, 0.031108811497688293, -0.023223863914608955, 0.009067250415682793, 0.008406992070376873, -0.01735648326575756, -0.009524849243462086, 0.019506094977259636, -0.0059610097669065, -0.025978347286581993, 0.008177077397704124, -0.0051614223048090935, -0.028385350480675697, 0.09554918855428696, -0.0072333780117332935, -0.048010826110839844, 0.00021733049652539194, -0.023058170452713966, 0.0025520939379930496, 0.02652815170586109, -0.0073927100747823715, -0.06133418530225754, -0.0034105204977095127, 0.0061812689527869225, 0.08115346729755402, 0.008417378179728985, -0.06471598148345947, 0.007518597412854433, 0.01853346638381481, -0.02286156453192234, -0.011104282923042774, 0.028348255902528763, 0.04548686370253563, -0.11824099719524384, -0.019853953272104263, 0.013587848283350468, 0.02803005650639534, -0.10323808342218399, 0.0324987955391407, 0.01998152770102024, -0.051420003175735474, -0.01722770556807518, 0.03178803622722626, -0.02038179151713848, -0.028801076114177704, 0.02138221450150013, 0.07313457131385803, 0.02650872990489006, -0.017120646312832832, -0.044258493930101395, -0.04577920585870743, 0.0003826467727776617, -0.07050246000289917, -0.05783708393573761, -0.03884454816579819, -0.012302112765610218, -0.009512272663414478, -0.014693924225866795, 0.0024604389909654856, -0.012580636888742447, -0.07980053126811981, 0.07111310958862305, -0.030184034258127213, -0.025393614545464516, 0.02651766687631607, -0.012732733972370625, -0.0005586031475104392, -0.026866387575864792, -0.04599286988377571, -0.009239074774086475, -0.03789282590150833, 0.03469487279653549, -0.04712042585015297, 0.054203033447265625, 0.060026828199625015, -0.03976573795080185, 0.10881438106298447, 0.03475143760442734, -0.03001738339662552, -0.028576456010341644, -0.03892674669623375, 0.008840128779411316, -0.00159240432549268, -0.037602152675390244, 0.007025389466434717, -0.021588057279586792, 0.03227795660495758, 0.021503718569874763, -0.036355361342430115, -0.027017883956432343, -0.016391979530453682, -0.3340171277523041, -0.07933655381202698, -0.01931547001004219, -0.006129530258476734, 0.013697260059416294, -0.053744520992040634, 0.014264591038227081, -0.03555155545473099, 0.0379178449511528, 0.03632225841283798, 0.06612814217805862, -0.017478203400969505, -0.0028175977058708668, -0.09691785275936127, 0.012130462564527988, 0.012494148686528206, -0.027732284739613533, 0.0012708016438409686, 0.03199146315455437, 0.005844574421644211, -0.011385913006961346, -0.01266398187726736, -0.00037928999518044293, -0.05426578223705292, -0.025510689243674278, -0.023665962740778923, 0.10905525088310242, 0.07304584980010986, 0.041811227798461914, -0.034104879945516586, 0.05135953798890114, 0.0023913010954856873, 0.015335310250520706, -0.09285826981067657, 0.02499726414680481, -0.022245168685913086, 0.027318743988871574, -0.012087917886674404, 0.004773130174726248, -0.04000479727983475, -0.08366682380437851, 0.02117833122611046, -0.025411559268832207, -0.059094954282045364, -0.04854379594326019, 0.019405843690037727, -0.04085716977715492, -0.03874247893691063, -0.008050200529396534, 0.08811943233013153, 0.02330588735640049, -0.01370280236005783, 0.019773753359913826, 0.000439143885159865, -0.01021328940987587, -0.03926323354244232, -0.07160717993974686, -0.011765669099986553, -0.007382593583315611, 0.005689120851457119, 0.011259905993938446, 0.05788043141365051, 0.034578777849674225, -0.06420084834098816, -0.007146288640797138, 0.03905239328742027, -0.0376131646335125, 0.016586991026997566, 0.024319691583514214, -0.02235794998705387, -0.017039019614458084, 0.12119981646537781, 0.008458036929368973, 0.047620441764593124, 0.017479758709669113, 0.013381553813815117, -0.005049364175647497, -0.0006296401843428612, 0.04391426593065262, -0.002327056834474206, 0.031060386449098587, -0.03455111011862755, 0.05749931558966637, -0.03294362127780914, -0.032702211290597916, 0.044457629323005676, 0.005819020327180624, -0.03366928920149803, 0.08400198817253113, 0.025644857436418533, -0.020267585292458534, 0.036030422896146774, -0.0007086231489665806, -0.07034092396497726, 0.05806410685181618, -0.026639165356755257, -0.2454110085964203, 0.023886293172836304, 0.014418522827327251, 0.05716494098305702, 0.011705047450959682, 0.0028978600166738033, 0.03724261000752449, -0.035442501306533813, 0.004097536206245422, -0.005080258008092642, 0.041608188301324844, 0.06827321648597717, -0.012696577236056328, -0.016346348449587822, 0.0038567844312638044, -0.013196862302720547, 0.006693270057439804, 0.013305130414664745, 0.0015724290860816836, 0.029419880360364914, 0.01826261542737484, -0.03302531689405441, 0.16790592670440674, 0.015781192108988762, -0.000847392890136689, 0.026776352897286415, -0.014706797897815704, 0.029218828305602074, 0.06221608445048332, -0.007549399975687265, -0.017162490636110306, 0.008751205168664455, -0.002394218696281314, 0.015349101275205612, 0.04299293830990791, -0.09351938962936401, -0.023735297843813896, 0.034661244601011276, 0.023396557196974754, -0.008070570416748524, -0.010900523513555527, 0.02064160816371441, -0.031892262399196625, 0.031723182648420334, 0.05182694271206856, -0.006936197634786367, -0.008321693167090416, -0.007712958846241236, -0.07010412961244583, 0.02115403115749359, -0.029023945331573486, -0.05528359115123749, -0.02158723957836628, 0.01721317134797573, 0.015951838344335556, 0.09317053109407425, 0.025150194764137268, -0.03342984989285469, 0.02123936265707016, 0.0048622852191329, -0.0619049109518528, -0.03718465939164162, 0.09652028232812881, 0.0036987049970775843, 0.03211364150047302 ]
[ 0.020957810804247856, 0.03057938814163208, 0.002973056398332119, -0.006475229747593403, -0.002030185656622052, -0.021864719688892365, -0.016046447679400444, 0.011164928786456585, -0.006091177463531494, -0.023389296606183052, -0.03324109688401222, 0.041109777987003326, 0.0313836969435215, -0.008552455343306065, -0.023236753419041634, 0.02674758993089199, 0.004120236728340387, -0.03411228954792023, 0.0270012766122818, -0.07157860696315765, -0.021546144038438797, -0.007931489497423172, 0.021127300336956978, -0.0024566734209656715, 0.0016519477358087897, 0.026759199798107147, -0.043150242418050766, -0.00959000550210476, 0.02791479602456093, -0.08764979988336563, 0.0035439992789179087, -0.03885754570364952, -0.011637832969427109, -0.002511009108275175, -0.01230087224394083, 0.026444148272275925, -0.022868752479553223, 0.024750061333179474, 0.03251957148313522, 0.00878868531435728, 0.028006402775645256, -0.030730918049812317, -0.007225508335977793, 0.04208828881382942, -0.018543636426329613, 0.00022043180069886148, -0.001755084958858788, -0.024807576090097427, -0.022607143968343735, -0.0020094700157642365, -0.015135039575397968, -0.021165756508708, -0.0008406209526583552, 0.03749046474695206, -0.018542736768722534, -0.015601281076669693, -0.02218802645802498, 0.014997202903032303, 0.051381733268499374, -0.006431841757148504, 0.0004557136562652886, 0.013123893178999424, -0.007397293113172054, -0.015233717858791351, 0.014606166630983353, -0.009522152133286, -0.033297955989837646, 0.024382947012782097, -0.005053449887782335, 0.0018325685523450375, 0.01895633526146412, 0.0589749701321125, -0.02433610148727894, -0.013118257746100426, -0.009626980870962143, 0.0036025841254740953, 0.015091590583324432, -0.03400436043739319, -0.04131191968917847, 0.01900859922170639, -0.03234320133924484, -0.00845270324498415, 0.001698325970210135, 0.01425730437040329, -0.0032337037846446037, 0.026503881439566612, -0.017245523631572723, 0.03300578147172928, -0.0008338321931660175, -0.01628180593252182, 0.008474349044263363, 0.010232205502688885, -0.007908089086413383, 0.02183929644525051, -0.0913812667131424, -0.011936964467167854, 0.005722063593566418, -0.009163277223706245, -0.0453304722905159, 0.8614999055862427, -0.012551681138575077, -0.006091119721531868, 0.016217192634940147, -0.010843626223504543, 0.018743306398391724, 0.00021028185437899083, 0.01653933897614479, -0.017344312742352486, 0.009319396689534187, -0.02057110145688057, -0.0012599530164152384, 0.0020916673820465803, 0.02865452505648136, -0.0002438363735564053, 0.022047674283385277, 0.003058573929592967, 0.012751906178891659, 0.015373257920145988, 0.033910103142261505, 0.009141982533037663, 0.04944995418190956, 0.03398475795984268, 0.01306577306240797, 0.015362529084086418, -0.0026385230012238026, -0.13963712751865387, 0.025860607624053955, -6.627672983490191e-33, 0.05984737351536751, 0.0020698411390185356, 0.008331328630447388, 0.005518842954188585, 0.018703708425164223, 0.004187343176454306, 0.008809320628643036, -0.003111271420493722, -0.010438919998705387, -0.014316179789602757, -0.0055811903439462185, 0.0029603459406644106, 0.015823829919099808, -0.018487801775336266, -0.0007568072760477662, -0.03285897523164749, 0.025560172274708748, 0.032536670565605164, 0.0114546874538064, 0.001465050969272852, -0.0026097663212567568, 0.03026527538895607, -0.005015820264816284, 0.0336393266916275, 0.0036278958432376385, 0.02820245549082756, 0.019195647910237312, -0.007598391734063625, -0.02118104323744774, -0.050674233585596085, -0.0454711839556694, 0.012996007688343525, -0.034050293266773224, -0.030532794073224068, 0.011058595031499863, -0.04222298413515091, -0.04958353936672211, 0.012266137637197971, -0.014518084935843945, -0.06506411731243134, -0.03430216759443283, 0.00189312978181988, -0.024858882650732994, -0.031345948576927185, -0.01787547953426838, -0.002390458947047591, 0.0022063651122152805, 0.007090514525771141, -0.008011040277779102, -0.004415605217218399, 0.0033649299293756485, 0.009062261320650578, -0.0029457479249686003, -0.026215460151433945, -0.029385758563876152, -0.03286004811525345, 0.025800663977861404, -0.007026678882539272, 0.0228140689432621, 0.033276401460170746, 0.0361928828060627, -0.011643119156360626, -0.035291511565446854, 0.03958561643958092, 0.0130261005833745, -0.019221173599362373, -0.020213717594742775, 0.008015617728233337, 0.0015376879600808024, 0.007837032899260521, -0.04452204331755638, 0.03645125776529312, -0.020821552723646164, 0.009249811060726643, 0.018044091761112213, -0.026631059125065804, 0.003141970606520772, 0.0033161973115056753, 0.001952591584995389, 0.01827581785619259, 0.014843671582639217, -0.05692048370838165, 0.007685122545808554, -0.0483245775103569, -0.005718548782169819, 0.015495894476771355, 0.006937911733984947, -0.008234375156462193, -0.009249407798051834, 0.033127497881650925, 0.01550241932272911, 0.00767141068354249, -0.0007701001013629138, -0.003979716915637255, -0.02066526561975479, 6.417115496635025e-33, -0.04948782920837402, -0.011990102007985115, -0.013780922628939152, 0.0003542739141266793, 0.037105854600667953, 0.009600793942809105, 0.02463051863014698, 0.005586645100265741, -0.04204847663640976, 0.006224805023521185, -0.010695381090044975, 0.0018669292330741882, -0.04431565850973129, 0.03707891330122948, 0.07043228298425674, -0.012615315616130829, -0.005518951453268528, -0.001419413834810257, 0.005793002899736166, 0.001310375053435564, 0.0055998545140028, 0.02217782475054264, -0.021621819585561752, 0.021582620218396187, 0.020270057022571564, 0.033482689410448074, 0.029406515881419182, 0.02754194289445877, 0.021468916907906532, 0.010506633669137955, -0.02682574652135372, -0.02919859066605568, 0.001421326887793839, 0.02439291961491108, -0.01283194962888956, 0.03131570667028427, -0.014494110830128193, -0.0023720054887235165, 0.028985777869820595, -0.0030832302290946245, 0.04148922115564346, 0.027505893260240555, -0.011884882114827633, 0.03395100682973862, -0.02531694807112217, 0.05176622420549393, -0.015508061274886131, 0.004738258197903633, -0.008743366226553917, 0.006881539709866047, -0.008015695959329605, 0.04726644232869148, 0.005537851247936487, -0.01838231272995472, 0.010830981656908989, -0.03037066012620926, -0.014710256829857826, 0.015348268672823906, -0.02114272676408291, -0.04339725896716118, -0.038988180458545685, -0.007445840165019035, 0.006942606531083584, 0.009071789681911469, -0.016245776787400246, -0.04135669395327568, -0.049410607665777206, -0.028292067348957062, -0.009485496208071709, -0.008623743429780006, 0.007168383803218603, -0.025108573958277702, 0.012694843113422394, 0.026274608448147774, 0.039073821157217026, -0.03584602102637291, -0.021195147186517715, 0.01962273009121418, -0.036257147789001465, 0.024544881656765938, 0.002934948308393359, 0.05818479135632515, 0.030442027375102043, -0.01188443973660469, 0.01705147512257099, 0.0028579458594322205, -0.0017446783604100347, 0.04193129017949104, -0.003498401027172804, -0.01619238592684269, 0.04723489284515381, 0.011423515155911446, -0.005472453311085701, 0.03157725930213928, 0.03384268283843994, -1.2584061792608736e-8, -0.03781255707144737, -0.013370838947594166, 0.002468954538926482, -0.002781009068712592, -0.003760096849873662, 0.012277970090508461, 0.022469088435173035, -0.0019357447745278478, -0.02316712774336338, 0.008810551837086678, 0.037084609270095825, 0.01299278810620308, -0.017900995910167694, 0.012637265957891941, -0.017588134855031967, -0.031191734597086906, -0.04240564629435539, -0.03838921710848808, 0.0357152484357357, 0.004037267528474331, 0.012567504309117794, 0.03264211118221283, -0.012974108569324017, 0.0032215407118201256, -0.010309319943189621, 0.012822463177144527, 0.027495305985212326, -0.05845293030142784, -0.01568344607949257, -0.013076200149953365, 0.0024474728852510452, -0.02608589269220829, -0.016703059896826744, -0.016653310507535934, -0.019691016525030136, -0.005149438511580229, -0.011022878810763359, -0.007637903094291687, -0.009148217737674713, -0.005116496235132217, -0.011379679664969444, -0.005803901236504316, -0.0011037604417651892, -0.050595760345458984, -0.04192391037940979, -0.026892295107245445, -0.029054153710603714, 0.013643770478665829, 0.03499899059534073, -0.04742242768406868, 0.018962353467941284, -0.006259223446249962, 0.01738138310611248, 0.0580378882586956, 0.047203730791807175, -0.02968074567615986, 0.007337901741266251, -0.018716100603342056, -0.01716608554124832, -0.044996220618486404, 0.03880635276436806, 0.003541342681273818, -0.004490897990763187, -0.027043620124459267 ]
neo4j-graphing-name-work-twitter-meme
https://markhneedham.com/blog/2017/02/28/neo4j-graphing-name-work-twitter-meme
false
2017-02-19 22:39:05
Neo4j: Analysing a CSV file using LOAD CSV and Cypher
[ "neo4j", "cypher" ]
[ "neo4j" ]
Last week we ran our https://www.meetup.com/Neo4j-Online-Meetup/events/237366632/[first online meetup for several years] and I wanted to wanted to analyse the stats that YouTube lets you download for an event. The file I downloaded looked like this: [source,bash] ---- $ cat ~/Downloads/youtube_stats_pW9boJoUxO0.csv Video IDs:, pW9boJoUxO0, Start time:, Wed Feb 15 08:57:55 2017, End time:, Wed Feb 15 10:03:10 2017 Playbacks, Peak concurrent viewers, Total view time (hours), Average session length (minutes) 348, 112, 97.125, 16.7456896552, Country code, AR, AT, BE, BR, BY, CA, CH, CL, CR, CZ, DE, DK, EC, EE, ES, FI, FR, GB, HU, IE, IL, IN, IT, LB, LU, LV, MY, NL, NO, NZ, PK, PL, QA, RO, RS, RU, SE, TR, US, VN, ZA Playbacks, 2, 2, 1, 14, 1, 10, 2, 1, 1, 1, 27, 1, 1, 1, 3, 1, 25, 54, 1, 4, 6, 8, 1, 1, 1, 1, 1, 23, 1, 1, 1, 1, 1, 1, 2, 6, 22, 1, 114, 1, 1 Peak concurrent viewers, 2, 1, 1, 4, 1, 5, 1, 1, 0, 0, 11, 1, 1, 1, 2, 1, 6, 25, 1, 3, 3, 2, 1, 1, 1, 1, 1, 9, 1, 1, 0, 1, 0, 1, 1, 3, 7, 0, 44, 1, 0 Total view time (hours), 1.075, 0.0166666666667, 0.175, 2.58333333333, 0.00833333333333, 3.01666666667, 0.858333333333, 0.0583333333333, 0.0, 0.0, 8.69166666667, 0.8, 0.0166666666667, 0.0583333333333, 0.966666666667, 0.0166666666667, 4.20833333333, 20.8333333333, 0.00833333333333, 1.39166666667, 1.75, 0.766666666667, 0.00833333333333, 0.15, 0.0333333333333, 1.05833333333, 0.0333333333333, 7.36666666667, 0.0583333333333, 0.916666666667, 0.0, 0.00833333333333, 0.0, 0.00833333333333, 0.4, 1.10833333333, 5.28333333333, 0.0, 32.7333333333, 0.658333333333, 0.0 Average session length (minutes), 32.25, 0.5, 10.5, 11.0714285714, 0.5, 18.1, 25.75, 3.5, 0.0, 0.0, 19.3148148148, 48.0, 1.0, 3.5, 19.3333333333, 1.0, 10.1, 23.1481481481, 0.5, 20.875, 17.5, 5.75, 0.5, 9.0, 2.0, 63.5, 2.0, 19.2173913043, 3.5, 55.0, 0.0, 0.5, 0.0, 0.5, 12.0, 11.0833333333, 14.4090909091, 0.0, 17.2280701754, 39.5, 0.0 ---- I want to look at the country specific stats so the first 4 lines aren't interesting to me: [source,bash] ---- $ tail -n+5 youtube_stats_pW9boJoUxO0.csv > youtube.csv ---- I then put the +++<cite>+++youtube.csv+++</cite>+++ file into the +++<cite>+++import+++</cite>+++ directory of Neo4j and wrote the following query to return a row representing each country and its score for each of the metrics: [source,cypher] ---- load csv with headers from "file:///youtube.csv" AS row WITH [key in keys(row) where key <> "Country code"] AS keys, row, row["Country code"] AS heading UNWIND keys AS key RETURN key AS country, heading AS key, row[key] AS value ╒═════════╤═══════════╤═══════╕ │"country"│"key" │"value"│ ╞═════════╪═══════════╪═══════╡ │" SE" │"Playbacks"│"22" │ ├─────────┼───────────┼───────┤ │" GB" │"Playbacks"│"54" │ ├─────────┼───────────┼───────┤ │" FR" │"Playbacks"│"25" │ ├─────────┼───────────┼───────┤ │" RS" │"Playbacks"│"2" │ ├─────────┼───────────┼───────┤ │" LV" │"Playbacks"│"1" │ └─────────┴───────────┴───────┘ ---- Now I want to create a node representing each country and create a property for each of the metrics. Since the http://www.markhneedham.com/blog/2016/10/27/neo4j-dynamically-add-property/[property names are going to be dynamic] I'll make use of the https://github.com/neo4j-contrib/neo4j-apoc-procedures/releases[APOC library] which I drop into my +++<cite>+++plugins+++</cite>+++ directory. I then tweaked the query to create the nodes: [source,cypher] ---- load csv with headers from "https://dl.dropboxusercontent.com/u/14493611/youtube.csv" AS row WITH [key in keys(row) where key <> "Country code"] AS keys, row, row["Country code"] AS heading UNWIND keys AS key WITH key AS country, heading AS key, row[key] AS value MERGE (c:Country {name: replace(country, " ", "")}) WITH * CALL apoc.create.setProperty(c, key, toInteger(value)) YIELD node RETURN COUNT(*) ---- We can now see which country provided the most viewers: [source,cypher] ---- MATCH (n:Country) RETURN n.name, n.Playbacks AS playbacks, n.`Total view time (hours)` AS viewTimeInHours, n.`Peak concurrent viewers` AS peakConcViewers, n.`Average session length (minutes)` AS aveSessionMins ORDER BY playbacks DESC LIMIT 10 ╒════════╤═══════════╤═════════════════╤═════════════════╤════════════════╕ │"n.name"│"playbacks"│"viewTimeInHours"│"peakConcViewers"│"aveSessionMins"│ ╞════════╪═══════════╪═════════════════╪═════════════════╪════════════════╡ │"US" │"114" │"32" │"44" │"17" │ ├────────┼───────────┼─────────────────┼─────────────────┼────────────────┤ │"GB" │"54" │"20" │"25" │"23" │ ├────────┼───────────┼─────────────────┼─────────────────┼────────────────┤ │"DE" │"27" │"8" │"11" │"19" │ ├────────┼───────────┼─────────────────┼─────────────────┼────────────────┤ │"FR" │"25" │"4" │"6" │"10" │ ├────────┼───────────┼─────────────────┼─────────────────┼────────────────┤ │"NL" │"23" │"7" │"9" │"19" │ ├────────┼───────────┼─────────────────┼─────────────────┼────────────────┤ │"SE" │"22" │"5" │"7" │"14" │ ├────────┼───────────┼─────────────────┼─────────────────┼────────────────┤ │"BR" │"14" │"2" │"4" │"11" │ ├────────┼───────────┼─────────────────┼─────────────────┼────────────────┤ │"CA" │"10" │"3" │"5" │"18" │ ├────────┼───────────┼─────────────────┼─────────────────┼────────────────┤ │"IN" │"8" │"0" │"2" │"5" │ ├────────┼───────────┼─────────────────┼─────────────────┼────────────────┤ │"IL" │"6" │"1" │"3" │"17" │ └────────┴───────────┴─────────────────┴─────────────────┴────────────────┘ ---- The United States in first unsurprisingly followed by the UK, Germany, and France. We ran the meetup at 5pm UK time so it was a friendly enough time for this side of the globe but not so friendly for Asia or Australia so it's not too surprising we don't see anybody from there! For my last trick I wanted to see the full names of the countries so I downloaded the http://data.okfn.org/data/core/country-list[2 digit codes for each country along with their full name]. I then updated my graph: [source,cypher] ---- load csv with headers from "file:///countries.csv" AS row MATCH (c:Country {name: row.Code}) SET c.fullName = row.Name; ---- Now let's re-run our query and show the country fullnames instead: [source,cypher] ---- MATCH (n:Country) RETURN n.fullName, n.Playbacks AS playbacks, n.`Total view time (hours)` AS viewTimeInHours, n.`Peak concurrent viewers` AS peakConcViewers, n.`Average session length (minutes)` AS aveSessionMins ORDER BY playbacks DESC LIMIT 10 ╒════════════════╤═══════════╤═════════════════╤═════════════════╤════════════════╕ │"n.fullName" │"playbacks"│"viewTimeInHours"│"peakConcViewers"│"aveSessionMins"│ ╞════════════════╪═══════════╪═════════════════╪═════════════════╪════════════════╡ │"United States" │"114" │"32" │"44" │"17" │ ├────────────────┼───────────┼─────────────────┼─────────────────┼────────────────┤ │"United Kingdom"│"54" │"20" │"25" │"23" │ ├────────────────┼───────────┼─────────────────┼─────────────────┼────────────────┤ │"Germany" │"27" │"8" │"11" │"19" │ ├────────────────┼───────────┼─────────────────┼─────────────────┼────────────────┤ │"France" │"25" │"4" │"6" │"10" │ ├────────────────┼───────────┼─────────────────┼─────────────────┼────────────────┤ │"Netherlands" │"23" │"7" │"9" │"19" │ ├────────────────┼───────────┼─────────────────┼─────────────────┼────────────────┤ │"Sweden" │"22" │"5" │"7" │"14" │ ├────────────────┼───────────┼─────────────────┼─────────────────┼────────────────┤ │"Brazil" │"14" │"2" │"4" │"11" │ ├────────────────┼───────────┼─────────────────┼─────────────────┼────────────────┤ │"Canada" │"10" │"3" │"5" │"18" │ ├────────────────┼───────────┼─────────────────┼─────────────────┼────────────────┤ │"India" │"8" │"0" │"2" │"5" │ ├────────────────┼───────────┼─────────────────┼─────────────────┼────────────────┤ │"Israel" │"6" │"1" │"3" │"17" │ └────────────────┴───────────┴─────────────────┴─────────────────┴────────────────┘ ---- And that's the end of my analysis with no relationships in sight!
null
null
[ 0.04452031850814819, -0.01754732057452202, 0.007123308256268501, 0.04214651510119438, 0.08248744159936905, 0.0307236909866333, 0.03879959136247635, 0.02401658147573471, 0.017195651307702065, -0.004674476105719805, -0.0048444438725709915, 0.002383054234087467, -0.059156645089387894, 0.026561178267002106, -0.02569502405822277, 0.0707000195980072, 0.05535763129591942, 0.008679104037582874, 0.03102073073387146, 0.0029071744065731764, 0.027782993391156197, 0.02887110784649849, 0.017967816442251205, 0.04786749556660652, 0.0069204652681946754, -0.0019654964562505484, 0.000715773378033191, 0.01017119362950325, -0.07509560883045197, 0.01717739924788475, 0.05050116777420044, 0.010638798587024212, 0.020571410655975342, -0.0023646533954888582, 0.03883840888738632, -0.0011274495627731085, -0.02677496150135994, 0.017740242183208466, 0.00004784186603501439, 0.016223067417740822, -0.036605749279260635, 0.00490564526990056, -0.022301653400063515, 0.02004179172217846, -0.04941858351230621, 0.01387097593396902, -0.013171237893402576, 0.04723654314875603, -0.006709878332912922, -0.0002119406417477876, -0.06067843735218048, 0.026813894510269165, 0.00011866835848195478, -0.006993880029767752, -0.01084840577095747, 0.04103146493434906, 0.04502319172024727, -0.06717041879892349, 0.018352771177887917, -0.02559107169508934, 0.012073005549609661, -0.005256153177469969, 0.018279030919075012, -0.002965968567878008, -0.0006034305552020669, -0.04209904372692108, -0.002305495087057352, 0.07958586513996124, -0.025559542700648308, -0.015808096155524254, -0.008424486964941025, 0.027016300708055496, -0.0308395903557539, -0.002679149154573679, 0.015998732298612595, -0.04760598763823509, 0.006824000272899866, 0.07668182253837585, 0.024423804134130478, 0.02973865158855915, -0.013807917945086956, 0.029071513563394547, 0.026415981352329254, 0.04661359265446663, -0.020333178341388702, -0.021197767928242683, -0.022800741717219353, -0.04138443246483803, -0.07093944400548935, 0.02656775526702404, 0.005616713315248489, -0.04664932191371918, 0.022297188639640808, 0.028492100536823273, -0.0023075968492776155, 0.010956489481031895, 0.009624919854104519, -0.009475012309849262, 0.024083612486720085, -0.00754286115989089, -0.02737554721534252, -0.028151068836450577, 0.01533238124102354, 0.016399957239627838, -0.07902603596448898, -0.011072478257119656, -0.007569413632154465, -0.017626170068979263, 0.00193601637147367, -0.003791755996644497, -0.015943186357617378, 0.01745167002081871, -0.0079724146053195, 0.0056737205013632774, -0.06644593924283981, 0.06219411641359329, 0.003112680511549115, -0.04032988101243973, -0.02579803764820099, 0.01670016348361969, 0.04699030518531799, 0.027280796319246292, -0.004023215267807245, 0.09780232608318329, 0.00007306629413506016, 0.046927932649850845, 0.02451179549098015, 0.04687470197677612, 0.009984291158616543, -0.05957241356372833, -0.0034809585195034742, 0.05111028254032135, -0.0038762064650654793, -0.0009871948277577758, 0.0021759034134447575, -0.03269612416625023, 0.003197584068402648, -0.01785842329263687, 0.03664753586053848, 0.00695989141240716, 0.01892426796257496, -0.025718417018651962, -0.002316939178854227, -0.0008306722156703472, 0.056121665984392166, 0.014747652225196362, -0.03253186121582985, -0.033789362758398056, -0.03318960964679718, 0.00017004855908453465, 0.018265938386321068, 0.0066339862532913685, 0.050487417727708817, -0.04756071791052818, 0.00030595436692237854, 0.08633465319871902, 0.02580084092915058, 0.004582830239087343, -0.01704166829586029, 0.003828637534752488, 0.04285329207777977, 0.04827292263507843, -0.00814535841345787, 0.049542635679244995, 0.0011483981506899, -0.02905966527760029, -0.02037850394845009, 0.04814423993229866, -0.0410911962389946, 0.03536517918109894, -0.05765876546502113, -0.03259628266096115, 0.06653694063425064, -0.014595150016248226, -0.038755688816308975, 0.054240088909864426, 0.09607308357954025, 0.07441893965005875, 0.035870566964149475, -0.01116454042494297, -0.0821240171790123, 0.05213188752532005, 0.019227946177124977, 0.03380974754691124, 0.0161126796156168, -0.0035887223202735186, 0.0932709202170372, 0.02053762413561344, 0.01424920279532671, 0.04920012503862381, -0.05922140181064606, -0.09050066769123077, -0.024731749668717384, -0.02286822348833084, 0.06380587071180344, -0.027791211381554604, 0.04945329949259758, 0.026216203346848488, 0.018548836931586266, 0.03572174906730652, -0.014958817511796951, -0.0074852327816188335, 0.03580482304096222, -0.043382901698350906, -0.07256127893924713, 0.03677866980433464, 0.032045863568782806, -0.05791020765900612, -0.009182102978229523, -0.009421153925359249, -0.040658529847860336, 0.007775895297527313, 0.047134626656770706, -0.016212578862905502, 0.015848243609070778, 0.04172865301370621, 0.05617447942495346, 0.00045255490113049746, 0.011437734588980675, -0.03035525232553482, 0.02357432059943676, -0.02733718231320381, -0.03850850835442543, -0.020595841109752655, -0.020752210170030594, 0.11646348237991333, 0.06419084966182709, -0.003200242994353175, -0.05582105740904808, 0.015859104692935944, -0.01455351896584034, -0.0033855068031698465, 0.005804982967674732, -0.000665925326757133, -0.004159875214099884, 0.0019624291453510523, -0.03483165055513382, -0.04426196590065956, 0.008286258205771446, -0.057831890881061554, 0.008251371793448925, 0.054886143654584885, 0.005408280063420534, 0.045852262526750565, -0.010440070182085037, 0.0070262751542031765, -0.0021335596684366465, -0.023054394870996475, -0.049875106662511826, 0.01803935319185257, 0.013863167725503445, 0.0009973045671358705, 0.03828320652246475, -0.04051775857806206, -0.0008517134701833129, -0.02328583598136902, -0.02443258836865425, 0.04989353194832802, 0.06223578378558159, 0.04834622144699097, 0.015327506698668003, 0.03634604066610336, -0.04064042121171951, 0.018542518839240074, -0.007403860799968243, -0.061328161507844925, -0.06017036736011505, -0.047631435096263885, -0.019371600821614265, 0.0067518665455281734, 0.04170019179582596, 0.0027034336235374212, 0.005339072085916996, 0.022361911833286285, 0.03512859717011452, -0.0006733157206326723, 0.06177467480301857, -0.009638120420277119, 0.0018721651285886765, -0.03768593817949295, 0.004665391519665718, 0.06347083300352097, -0.04492665082216263, -0.041338901966810226, -0.006191507447510958, -0.05872630327939987, 0.026440270245075226, -0.03403745964169502, -0.013168795965611935, -0.013416366651654243, 0.01910172775387764, 0.05151841416954994, 0.024993378669023514, -0.002542494097724557, 0.06462910771369934, 0.011289887130260468, 0.014173193834722042, 0.03616642206907272, 0.003962601535022259, 0.042832374572753906, -0.012708592228591442, 0.05250481516122818, 0.032835427671670914, -0.009970108978450298, -0.010729743167757988, -0.04269251599907875, 0.009297660551965237, -0.05832994356751442, -0.27544769644737244, 0.04697589948773384, -0.003920484334230423, -0.027458839118480682, 0.03193110600113869, -0.055647749453783035, 0.02585545927286148, -0.05106097832322121, -0.026432741433382034, -0.019496610388159752, -0.0029201842844486237, -0.01373964175581932, -0.0397089459002018, 0.032157786190509796, 0.02543609030544758, -0.011276276782155037, 0.00014119523984845728, -0.04019777104258537, 0.020790955051779747, 0.026507088914513588, 0.02436867728829384, -0.055819131433963776, -0.00920078344643116, 0.028426410630345345, 0.016864238306879997, 0.042390093207359314, -0.057108111679553986, 0.008560002781450748, -0.0491960346698761, -0.03686295449733734, 0.015674801543354988, -0.0364752896130085, 0.00518363993614912, -0.006944483611732721, 0.013080097734928131, -0.014760248363018036, 0.05447429046034813, -0.016365844756364822, 0.0015179273905232549, 0.004332000855356455, -0.006044839974492788, -0.03241552412509918, 0.00948999635875225, -0.017225340008735657, 0.08392622321844101, 0.03253345564007759, -0.05868767201900482, -0.0071944198571145535, -0.02367514744400978, 0.05882110819220543, -0.01738443411886692, -0.056571733206510544, -0.02760571613907814, 0.027200521901249886, -0.030809147283434868, -0.019211772829294205, -0.008271651342511177, 0.0010149042354896665, -0.04520367830991745, -0.03899868205189705, -0.007495898753404617, -0.04591032862663269, -0.010079526342451572, -0.04767366126179695, -0.0117830540984869, -0.0701482892036438, -0.05951814725995064, -0.012366062961518764, 0.07705157995223999, 0.015635836869478226, -0.02588711678981781, 0.019779633730649948, -0.016871709376573563, -0.0937456339597702, -0.026589134708046913, -0.016138629987835884, -0.0019316107500344515, 0.0282149575650692, -0.008421281352639198, 0.07884681969881058, -0.04161347076296806, -0.04028673842549324, 0.026725176721811295, -0.0055856406688690186, 0.03506847470998764, -0.045603834092617035, 0.022219683974981308, -0.01074945367872715, -0.027136215940117836, -0.021050190553069115, 0.05650801956653595, -0.05711200833320618, -0.02688818983733654, 0.011341345496475697, -0.012908088974654675, 0.03869318589568138, -0.00843637902289629, 0.01162579096853733, 0.01173255406320095, 0.06360332667827606, 0.026051122695207596, -0.06344863772392273, 0.010082504712045193, -0.06410645693540573, -0.02491959184408188, -0.0013763436581939459, -0.03589838743209839, 0.013885118067264557, 0.026812942698597908, -0.0005094415391795337, -0.0027976843994110823, -0.023957327008247375, 0.005340422969311476, -0.03327692300081253, -0.020297899842262268, -0.018512152135372162, 0.01959764026105404, 0.0172520000487566, 0.030843552201986313, -0.015897007659077644, -0.039512909948825836, 0.020968463271856308, -0.009695419110357761, -0.018357351422309875, -0.07513660937547684, -0.015115962363779545, -0.014392340555787086, -0.03266492486000061, 0.02036900632083416, 0.009443225339055061, -0.02776496298611164, 0.014859908260405064, 0.01679389178752899, -0.03238716349005699, 0.05518123507499695, -0.02586120367050171, -0.03837614879012108, -0.0371040515601635, 0.012263980694115162, 0.005354272201657295, -0.015676148235797882, 0.00021829668548889458, 0.0002642683684825897, 0.0362587496638298, 0.036241862922906876, 0.03364453464746475, 0.031173260882496834, -0.021313486620783806, 0.01210401114076376, 0.008907472714781761, -0.014817629009485245, -0.05415498465299606, 0.025961752980947495, -0.03757867589592934, -0.01523255929350853, -0.002290882170200348, 0.04513104259967804, -0.00480795418843627, -0.029823025688529015, -0.034255627542734146, 0.01765619032084942, -0.049760814756155014, -0.020994937047362328, -0.005134795792400837, 0.016422027722001076, 0.05363966524600983, 0.014635587111115456, 0.027758438140153885, 0.03242459148168564, -0.020602235570549965, 0.005080630071461201, 0.017957819625735283, -0.03487590700387955, -0.006528186611831188, 0.008508799597620964, -0.02925175614655018, 0.02761087939143181, -0.0012899022549390793, 0.017712540924549103, 0.027978457510471344, -0.011697634123265743, -0.022531751543283463, 0.02624574489891529, -0.001856914721429348, 0.05290523171424866, 0.05066339671611786, -0.050125859677791595, -0.0010565583361312747, -0.0011924084974452853, -0.021852698177099228, -0.015873463824391365, -0.0019354549003764987, -0.0038277958519756794, -0.021308807656168938, -0.025530017912387848, -0.07479032129049301, 0.039507266134023666, 0.003173353150486946, -0.007664327509701252, -0.007566757034510374, 0.000857268983963877, 0.0002279035688843578, -0.030283404514193535, 0.03102557361125946, 0.040729913860559464, -0.05762111023068428, -0.004309262614697218, -0.008508735336363316, -0.01046907901763916, 0.0034151494037359953, 0.0034269995521754026, -0.07026511430740356, -0.03484044596552849, -0.015182231552898884, 0.032161030918359756, -0.041769567877054214, -0.032084088772535324, -0.023827925324440002, 0.01622403785586357, -0.0076807402074337006, 0.019391436129808426, -0.0203093308955431, -0.0034941090270876884, -0.02084033377468586, -0.024936078116297722, 0.01104913279414177, -0.034555111080408096, -0.005452574696391821, 0.008903666399419308, -0.02177131175994873, 0.01808842644095421, -0.03469555452466011, 0.017084820196032524, 0.052649762481451035, -0.014882419258356094, 0.0013254054356366396, -0.07154149562120438, 0.003467716509476304, 0.004752101842314005, 0.026246516034007072, -0.031053144484758377, 0.017405807971954346, -0.054868943989276886, 0.0036491912323981524, -0.03320688381791115, 0.01732090301811695, -0.0013775359839200974, 0.0055434140376746655, 0.03382977098226547, 0.027346253395080566, 0.01704796589910984, 0.012305893003940582, -0.02229585126042366, -0.036332231014966965, 0.06465775519609451, -0.060628119856119156, -0.03271445259451866, -0.03665531054139137, -0.04236491769552231, 0.03996872901916504, 0.005813123192638159, -0.00710562476888299, -0.018410585820674896, 0.04926186054944992, 0.018333040177822113, 0.027819514274597168, 0.06193818524479866, -0.004294027574360371, -0.0013638852396979928, -0.036794885993003845, 0.007018686272203922, -0.07861226052045822, -0.01384649332612753, 0.03324032574892044, 0.012474453076720238, -0.0021217097528278828, 0.006998751778155565, -0.04447319358587265, 0.04346538335084915, -0.0654546320438385, -0.03350772708654404, 0.03363079950213432, -0.04377582669258118, 0.019397059455513954, 0.011106736958026886, -0.050778117030858994, 0.008297196589410305, 0.0576946884393692, -0.06532802432775497, 0.001428126124665141, -0.04204218089580536, 0.0934748500585556, -0.01756139099597931, 0.042467761784791946, -0.016692692413926125, -0.023216022178530693, 0.07447382062673569, 0.007652726490050554, 0.03027079626917839, 0.038590576499700546, -0.006656008306890726, 0.020008139312267303, 0.04545975849032402, -0.02407160960137844, 0.0035252643283456564, 0.014793620444834232, -0.013714516535401344, -0.051649872213602066, 0.014837725088000298, -0.001376271597109735, -0.011112978681921959, -0.05071005970239639, 0.08708219230175018, 0.010866827331483364, -0.029205426573753357, -0.035365235060453415, 0.027597004547715187, -0.03283393010497093, -0.013087025843560696, -0.025453457608819008, -0.013720051385462284, -0.030061151832342148, 0.08126335591077805, 0.0050758360885083675, 0.024868914857506752, 0.05997198447585106, -0.005858120508491993, 0.0029528068844228983, 0.020478319376707077, 0.07964903861284256, 0.07671718299388885, 0.03644418343901634, 0.0033899417612701654, 0.07544286549091339, -0.0328940749168396, -0.03483409062027931, -0.010329698212444782, -0.0019295751117169857, -0.04970937222242355, -0.0002664215280674398, -0.0027996196877211332, 0.07607094198465347, -0.023727234452962875, 0.08394321799278259, -0.007101139053702354, -0.015951093286275864, 0.008390440605580807, -0.026009289547801018, 0.040407076478004456, 0.04040268436074257, 0.008780956268310547, 0.01995772495865822, -0.0177915021777153, -0.01731608249247074, 0.044842563569545746, 0.0012552293483167887, 0.0017095459625124931, 0.03360825031995773, -0.024716559797525406, 0.01766558550298214, 0.0027393195778131485, 0.03109249472618103, 0.06232830137014389, -0.03482230380177498, 0.006386517081409693, -0.004815185442566872, 0.018880143761634827, -0.012652619741857052, 0.039934683591127396, -0.026067521423101425, -0.005363874603062868, -0.02781503088772297, -0.06554925441741943, -0.02755638211965561, -0.02488708682358265, -0.04343259334564209, 0.006797067821025848, -0.021068528294563293, 0.001191604882478714, 0.0037909396924078465, -0.01404972467571497, -0.011735294945538044, -0.05326594039797783, -0.03770974278450012, -0.051968108862638474, -0.08365144580602646, -0.020104127004742622, -0.00015901718870736659, -0.01241762563586235, -0.047650329768657684, -0.0073483409360051155, -0.0419074222445488, -0.004433916416019201, 0.01732274703681469, -0.06459416449069977, -0.01354977861046791, 0.0158708393573761, -0.0037148725241422653, 0.03236754238605499, 0.0057492125779390335, 0.03789542242884636, -0.004752365406602621, -0.0016568400897085667, -0.00874410942196846, 0.030895480886101723, 0.039850980043411255, -0.005129591561853886, -0.008321909233927727, -0.09644286334514618, 0.027418676763772964, 0.023050138726830482, -0.0322197787463665, -0.08311987668275833, 0.02704784646630287, 0.047032300382852554, -0.0019833059050142765, 0.060470398515462875, -0.026822753250598907, -0.024747677147388458, -0.05097275972366333, -0.008300119079649448, -0.02913772501051426, -0.002827717922627926, 0.04372292757034302, -0.03402400761842728, 0.07744254916906357, 0.03870277851819992, -0.044879719614982605, -0.05841687694191933, -0.013863558880984783, -0.0130617031827569, 0.011465623043477535, -0.02867952734231949, -0.010489515028893948, -0.04667191952466965, -0.10933427512645721, -0.020713960751891136, 0.03675442188978195, -0.022691188380122185, -0.02659827284514904, 0.007647291291505098, -0.0011779660126194358, 0.0033525258768349886, 0.0011416457127779722, -0.04364113137125969, 0.01012681145220995, -0.013229256495833397, 0.009028119966387749, -0.03828435763716698, 0.013831579126417637, 0.003136612009257078, 0.0032281866297125816, 0.00909401010721922, -0.04891786351799965, -0.004200298339128494, -0.029808294028043747, 0.02418222278356552, 0.05249021574854851, 0.02493925206363201, 0.026260435581207275 ]
[ -0.0702882632613182, -0.028704294934868813, -0.0284141693264246, -0.01963328942656517, 0.07938838750123978, -0.015653444454073906, -0.01968373917043209, 0.04099870100617409, 0.02154489792883396, -0.014594786800444126, 0.03420630097389221, -0.049749020487070084, 0.013629129156470299, -0.003697335720062256, 0.07599467039108276, 0.019480369985103607, 0.03928655385971069, -0.1372755467891693, -0.029770297929644585, 0.06600747257471085, -0.002617302816361189, 0.006585898343473673, -0.005578318145126104, -0.0159665085375309, 0.007633876986801624, -0.0041946833953261375, 0.016851115971803665, -0.029754210263490677, -0.0261254720389843, -0.1379689872264862, 0.0014149709604680538, -0.007100415416061878, 0.07065548002719879, 0.020146995782852173, -0.01984873041510582, 0.018425967544317245, 0.03186478838324547, -0.001926887547597289, 0.003586397273465991, 0.04028460383415222, 0.019721226766705513, 0.0063813296146690845, -0.0340995192527771, -0.03296792507171631, 0.02627446874976158, 0.03001526929438114, -0.028555961325764656, 0.0012552355183288455, 0.011380625888705254, 0.031917471438646317, -0.06794524192810059, 0.0037815063260495663, 0.010696552693843842, -0.015456628054380417, -0.014326648786664009, 0.015163673087954521, 0.03623933345079422, 0.03870847076177597, -0.0012342574773356318, 0.03230967000126839, 0.021471360698342323, -0.016557516530156136, -0.11414814740419388, 0.08695785701274872, -0.02033354714512825, 0.026164237409830093, -0.0493147112429142, 0.016741322353482246, -0.0010243793949484825, 0.06804412603378296, -0.014371723867952824, -0.003950970247387886, -0.01796075515449047, 0.03592860326170921, 0.0022538991179317236, 0.012978599406778812, 0.011338735930621624, 0.03457633778452873, -0.004753462970256805, -0.0398082360625267, -0.024143481627106667, -0.01122957468032837, -0.03317347913980484, -0.03242071717977524, -0.02794027328491211, -0.012603414244949818, 0.012085678987205029, 0.0883922278881073, -0.004237406887114048, 0.04350333660840988, 0.017486542463302612, 0.05662216991186142, 0.015503576956689358, -0.012496529147028923, -0.09082884341478348, -0.030129946768283844, 0.014398874714970589, 0.032347191125154495, -0.002475959248840809, 0.4234296381473541, -0.0033105413895100355, 0.005234354641288519, 0.07288490980863571, 0.028148233890533447, 0.003495399374514818, 0.00009132239210885018, 0.009063921868801117, -0.06088238209486008, 0.04032919555902481, -0.002828227588906884, 0.023027509450912476, 0.004131873603910208, 0.07660382986068726, -0.06324487179517746, 0.03206702694296837, 0.03672526031732559, 0.036668095737695694, 0.025942452251911163, 0.007904560305178165, -0.018986282870173454, -0.02827400527894497, -0.015802472829818726, 0.04956498742103577, -0.039343975484371185, 0.051096219569444656, -0.027858950197696686, 0.060381192713975906, 0.061348289251327515, 0.031261760741472244, 0.006064326502382755, 0.058681316673755646, -0.008924021385610104, -0.06592594087123871, 0.001212441478855908, -0.016532929614186287, -0.003626046935096383, 0.01995258219540119, -0.03485095128417015, 0.014432214200496674, 0.0367758572101593, 0.0059583899565041065, -0.04816179722547531, 0.03818817436695099, -0.02447444200515747, -0.029701078310608864, 0.1280445158481598, 0.016440607607364655, -0.048038724809885025, 0.004195871762931347, -0.030863218009471893, 0.01706661656498909, 0.007899976335465908, 0.0024467483162879944, -0.04636137932538986, 0.006680391263216734, -0.007169374730437994, 0.11247404664754868, -0.03726524859666824, -0.07410667836666107, -0.0010811758693307638, -0.01722249761223793, -0.03798416629433632, -0.007867861539125443, 0.019848167896270752, 0.08227262645959854, -0.10882008075714111, -0.0001878783805295825, -0.0022361651062965393, 0.004077717196196318, -0.06804154068231583, 0.00517100328579545, -0.016415473073720932, -0.04082677140831947, -0.0015561912441626191, 0.0669529065489769, -0.016309525817632675, -0.014017841778695583, 0.02510056272149086, 0.03920138627290726, -0.02200571447610855, -0.014071249403059483, -0.008342883549630642, -0.046200115233659744, 0.0309774000197649, -0.06044965982437134, -0.06594353169202805, -0.06405071914196014, 0.0048942044377326965, -0.006500557996332645, 0.009429572150111198, -0.04196074977517128, -0.06315494328737259, -0.12277401983737946, 0.048060767352581024, -0.04543600231409073, -0.016678456217050552, 0.0059939902275800705, -0.003553470829501748, -0.01111594494432211, -0.047993004322052, 0.0008650287054479122, -0.03444485738873482, -0.05141114816069603, 0.021745529025793076, -0.054437629878520966, 0.08183526247739792, 0.047984056174755096, -0.045557357370853424, 0.10501069575548172, 0.021480444818735123, -0.019193584099411964, -0.05713801458477974, 0.004344926215708256, 0.019368382170796394, 0.0109561113640666, -0.0396929532289505, 0.030844924971461296, -0.021919742226600647, 0.003033015411347151, 0.05061875656247139, -0.015136150643229485, 0.0035631677601486444, 0.00915148388594389, -0.3219378888607025, -0.041129209101200104, -0.024878084659576416, 0.018571309745311737, 0.027866216376423836, -0.03869792819023132, 0.0345521904528141, -0.016195686534047127, 0.04854782298207283, 0.07832908630371094, 0.08862975239753723, 0.020348086953163147, 0.0028419403824955225, -0.08595341444015503, -0.003608848201110959, 0.00109152402728796, -0.04329304024577141, 0.00825475249439478, 0.011360143311321735, 0.020357105880975723, -0.013087296858429909, -0.04810260236263275, -0.03731203079223633, -0.0315995067358017, -0.006510594394057989, -0.06597913801670074, 0.10851439088582993, 0.08454488962888718, 0.017266878858208656, -0.047329872846603394, 0.07119137048721313, 0.02817646414041519, -0.013841609470546246, -0.0840374305844307, -0.001999503932893276, -0.011375111527740955, 0.027041248977184296, 0.01505766250193119, -0.0019756380934268236, -0.046112727373838425, -0.1170487329363823, 0.02887894958257675, -0.027499588206410408, -0.07631444185972214, -0.073398157954216, 0.020455485209822655, -0.008329282514750957, -0.02436504326760769, -0.052648622542619705, 0.06372003257274628, 0.00992086436599493, -0.0352681428194046, 0.029776552692055702, 0.02054559253156185, 0.0198924969881773, -0.02657974883913994, -0.05533202737569809, 0.01984192430973053, -0.005096961744129658, 0.007255624979734421, 0.005990583915263414, 0.048897333443164825, 0.042638082057237625, -0.07422392815351486, -0.005186807829886675, 0.022130360826849937, -0.009318656288087368, 0.007166771683841944, 0.0222410187125206, 0.003297471208497882, -0.018474601209163666, 0.0568486750125885, -0.024664895609021187, 0.039428096264600754, 0.019228866323828697, 0.028547342866659164, -0.02045566216111183, -0.036604736000299454, 0.03170408308506012, 0.015286512672901154, 0.035666901618242264, -0.003889791900292039, 0.012237933464348316, -0.05890766158699989, -0.0299835242331028, 0.023299966007471085, -0.007693191058933735, -0.01706356555223465, 0.06951023638248444, 0.03594597429037094, 0.011175615713000298, -0.011591942049562931, -0.04836509749293327, -0.062436461448669434, 0.035153064876794815, 0.004042188636958599, -0.2642138600349426, 0.012045768089592457, 0.04328520596027374, 0.03827705979347229, 0.0091215455904603, 0.004083352163434029, 0.024596521630883217, -0.01901882514357567, -0.01416652649641037, 0.027928126975893974, 0.025275371968746185, 0.04612823948264122, -0.022708522155880928, -0.029246173799037933, 0.01561353076249361, 0.005690529942512512, -0.007610591594129801, 0.023920433595776558, 0.00477296207100153, 0.01965165324509144, 0.020769663155078888, -0.02980225346982479, 0.13397350907325745, 0.014692910015583038, 0.0006680075312033296, 0.039379678666591644, -0.017324842512607574, 0.0212777778506279, 0.06820635497570038, -0.03949669003486633, -0.057548876851797104, 0.005753402132540941, 0.006885687354952097, 0.01072324812412262, -0.009163766168057919, -0.08069253712892532, -0.00642163073644042, 0.014127385802567005, 0.02339792065322399, 0.0018011534120887518, 0.016855670139193535, 0.01118663139641285, -0.023587588220834732, 0.05671653524041176, 0.047089703381061554, 0.03082452155649662, 0.03568972647190094, -0.05670721456408501, -0.07393761724233627, -0.0025405846536159515, -0.04524942860007286, -0.07898645848035812, -0.0031796025577932596, 0.02113253064453602, 0.018038537353277206, 0.1119707003235817, 0.011389843188226223, -0.014700316824018955, 0.050864312797784805, -0.00513642281293869, -0.02964998595416546, -0.03436041995882988, 0.09087730199098587, -0.0023254300467669964, 0.02936929650604725 ]
[ 0.0177227184176445, -0.008004722185432911, -0.02794613130390644, 0.0037992550060153008, 0.004839359316974878, 0.014991058968007565, 0.006547111552208662, 0.0188630111515522, -0.003217266872525215, -0.004067571368068457, -0.07159275561571121, 0.0006485878839157522, 0.002701485063880682, -0.005895701702684164, -0.012022037990391254, -0.04075177013874054, 0.00014217714488040656, -0.03020373545587063, 0.04205814003944397, -0.007769064977765083, -0.02683113142848015, 0.009376421570777893, 0.016118118539452553, 0.01379163283854723, -0.02490215003490448, 0.015634624287486076, -0.015550638549029827, 0.025149380788207054, 0.03972641006112099, -0.1119316816329956, -0.011923106387257576, -0.012724227271974087, 0.007062199525535107, -0.013698641210794449, -0.013760160654783249, -0.015259926207363605, -0.01847759820520878, -0.025948122143745422, -0.05684298649430275, 0.014443774707615376, 0.030177082866430283, -0.0010313867824152112, 0.01410498283803463, 0.0013295186217874289, -0.003901506308466196, -0.008244277909398079, -0.05144614353775978, -0.017767582088708878, -0.020134281367063522, 0.03731660544872284, -0.043908677995204926, 0.00866373535245657, -0.008786074817180634, 0.017901238054037094, -0.010724744759500027, 0.0278179831802845, -0.01113980170339346, -0.006026634946465492, 0.027851495891809464, -0.009898468852043152, -0.0026260954327881336, -0.020670143887400627, -0.0535469725728035, -0.006158449687063694, 0.009325590915977955, -0.016114985570311546, -0.003878592746332288, 0.030577680096030235, -0.020954065024852753, 0.020367836579680443, -0.04096187651157379, 0.04492339864373207, -0.08099772781133652, -0.020638776943087578, -0.03136126697063446, -0.007836081087589264, 0.009435395710170269, -0.04188894107937813, 0.004630347713828087, 0.018551118671894073, -0.03108872100710869, -0.015708038583397865, 0.029314089566469193, -0.003310105297714472, 0.02199467271566391, -0.0033995939884334803, -0.004861168097704649, 0.01578805036842823, -0.02401326410472393, -0.006423733662813902, -0.06192198768258095, 0.05539105087518692, 0.007473651319742203, -0.006452254951000214, -0.06373392045497894, 0.006183410994708538, -0.0025520140770822763, 0.002025265945121646, 0.02912488579750061, 0.8263965845108032, 0.01543456967920065, 0.030746471136808395, -0.000016410278476541862, 0.02809915877878666, -0.026697972789406776, -0.003533483948558569, 0.00716607179492712, 0.04172442853450775, 0.023238785564899445, -0.036716170608997345, 0.0010366432834416628, 0.0123131750151515, 0.024381844326853752, -0.008107337169349194, 0.02437453344464302, 0.06076773256063461, -0.005835891235619783, 0.03986601158976555, -0.0017154525266960263, 0.028006676584482193, 0.030917475000023842, 0.015003363601863384, 0.01670936495065689, 0.024713197723031044, 0.011998249217867851, -0.1869383305311203, 0.03625057265162468, -7.904166543619098e-33, 0.03281610086560249, -0.055641401559114456, -0.016823485493659973, -0.02878817543387413, 0.029063496738672256, 0.048335038125514984, -0.035453371703624725, -0.02091437578201294, -0.018784696236252785, -0.024069732055068016, 0.03874005749821663, -0.006915280595421791, 0.02017841674387455, -0.021048925817012787, 0.03652961552143097, -0.010367808863520622, 0.025680990889668465, 0.03128480166196823, -0.027242114767432213, -0.018965912982821465, 0.022815296426415443, 0.029504582285881042, 0.017945842817425728, 0.04330194368958473, 0.001760113867931068, 0.04359622672200203, -0.013168588280677795, 0.017491614446043968, -0.0005818518111482263, -0.049019329249858856, -0.03791302442550659, 0.003333841683343053, -0.009000898338854313, -0.017952583730220795, 0.04974224790930748, -0.03547961264848709, -0.06431963294744492, 0.01643841713666916, -0.02679445408284664, -0.030637264251708984, -0.017481252551078796, 0.021831264719367027, -0.053535960614681244, -0.061328839510679245, -0.04513638839125633, -0.013929656706750393, 0.01386200450360775, 0.015494594350457191, 0.029553228989243507, 0.008266068994998932, -0.008149191737174988, 0.003009749110788107, -0.00047114514745771885, -0.01974303461611271, -0.03194800764322281, 0.013097401708364487, 0.02879919856786728, 0.013309293426573277, 0.0036589368246495724, 0.03728858381509781, 0.011937782168388367, 0.0012087171198800206, 0.029843807220458984, 0.04587186500430107, -0.011216988787055016, -0.01692240871489048, 0.05512542277574539, 0.025636054575443268, 0.03547925874590874, 0.010112287476658821, -0.048213690519332886, 0.047249648720026016, -0.01974153332412243, -0.023350156843662262, 0.031631555408239365, -0.028812304139137268, 0.01817908138036728, 0.015645097941160202, -0.0002462427946738899, 0.05589507892727852, 0.0192482341080904, -0.03713918849825859, 0.035616472363471985, -0.0316532626748085, -0.023936865851283073, -0.01814809814095497, 0.014487549662590027, 0.009971721097826958, -0.028508884832262993, 0.012212103232741356, 0.02514631673693657, 0.007925921119749546, 0.016940051689743996, -0.016909915953874588, -0.012175553478300571, 8.25257719173107e-33, 0.0013478220207616687, 0.001779492013156414, 0.009025724604725838, -0.008013748563826084, 0.03909822553396225, -0.011603636667132378, 0.04333904758095741, -0.0025721529964357615, -0.01601400412619114, 0.01580655947327614, -0.013649717904627323, 0.008097141049802303, -0.016181405633687973, 0.006054727826267481, 0.051612433046102524, -0.03897392377257347, 0.024150729179382324, -0.027067964896559715, 0.01617320068180561, 0.004476576112210751, 0.004341977182775736, -0.012593216262757778, -0.005996108055114746, -0.016701282933354378, 0.05190722271800041, 0.05373049154877663, 0.01929415389895439, 0.0030679742339998484, 0.009311147965490818, -0.0007023265352472663, -0.00415026256814599, -0.02185956947505474, -0.02431555837392807, 0.004838909953832626, 0.01993415132164955, 0.04323212802410126, 0.028985822573304176, 0.01861601695418358, -0.009570254944264889, 0.0013205393915995955, 0.033784762024879456, 0.06623747944831848, -0.04150932654738426, 0.004873727448284626, 0.03273006156086922, 0.042452264577150345, -0.017862005159258842, 0.019133834168314934, -0.041120387613773346, -0.020010463893413544, 0.0020014105830341578, 0.042555373162031174, -0.02368401177227497, 0.012100061401724815, 0.01683752052485943, -0.03346139192581177, -0.03229905292391777, 0.007360696326941252, -0.03587094321846962, -0.023088570684194565, -0.0021616406738758087, 0.0021383967250585556, -0.04140324145555496, 0.03810589760541916, -0.006633675657212734, -0.015930114313960075, -0.007390457205474377, -0.0029155220836400986, -0.008011621423065662, 0.01206404622644186, -0.000232704944210127, -0.0011181443696841598, -0.04635988920927048, 0.024871565401554108, -0.008085083216428757, -0.013159539550542831, -0.024913862347602844, 0.017654310911893845, -0.007848042994737625, 0.014189532957971096, 0.017678219825029373, 0.02241363376379013, 0.02291860058903694, -0.028310436755418777, 0.034782182425260544, 0.04904342070221901, -0.007725394796580076, 0.029289288446307182, 0.0074448189698159695, -0.0008790194406174123, 0.018627185374498367, -0.022202875465154648, -0.002571139484643936, 0.007788427639752626, -0.020498905330896378, -1.3272600796199185e-8, -0.028459148481488228, -0.0028432453982532024, -0.043348394334316254, 0.01910337433218956, 0.013940655626356602, 0.013393048197031021, 0.009125485084950924, -0.020207155495882034, -0.035405393689870834, 0.025713829323649406, 0.04398741573095322, -0.057161182165145874, 0.014433277770876884, 0.03210405632853508, 0.024098258465528488, -0.030207397416234016, -0.014465576969087124, -0.005664230324327946, 0.01761764846742153, 0.016459934413433075, 0.028353434056043625, 0.047425784170627594, 0.009376016445457935, -0.020244905725121498, -0.022503562271595, 0.009468214586377144, 0.014711862429976463, -0.05527893081307411, 0.004147866740822792, -0.06173017621040344, -0.0012325503630563617, -0.03180156275629997, -0.03913441672921181, -0.026983316987752914, -0.010937578976154327, -0.046498920768499374, -0.009860255755484104, 0.006672215182334185, 0.027732310816645622, 0.02495977096259594, -0.01819288544356823, 0.011867671273648739, 0.026935050264000893, -0.01795859821140766, -0.016900477930903435, 0.026079189032316208, -0.009887497872114182, -0.021275358274579048, 0.032764654606580734, -0.05290708318352699, -0.01722666807472706, 0.004971332382410765, -0.01841094344854355, 0.019268125295639038, 0.04264664277434349, 0.008683308959007263, 0.03386816754937172, -0.013424662873148918, -0.007955707609653473, -0.028716471046209335, 0.0031287288293242455, -0.012613160535693169, -0.03947494924068451, -0.03528142720460892 ]
neo4j-analysing-csv-file-using-load-csv-cypher
https://markhneedham.com/blog/2017/02/19/neo4j-analysing-csv-file-using-load-csv-cypher
false
2017-02-12 22:43:53
ReactJS/Material-UI: Cannot resolve module 'material-ui/lib/'
[ "reactjs" ]
[ "Javascript" ]
I've been playing around with ReactJS and the Material-UI library over the weekend and ran into this error while trying to follow http://www.material-ui.com/v0.15.0-alpha.1/#/components/subheader[one of the example from the demo application]: [source,text] ---- ERROR in ./src/app/modules/Foo.js Module not found: Error: Cannot resolve module 'material-ui/lib/Subheader' in /Users/markneedham/neo/reactjs-test/src/app/modules @ ./src/app/modules/Foo.js 13:17-53 webpack: Failed to compile. ---- This was the component code: [source,javascript] ---- import React from 'react' import Subheader from 'material-ui/lib/Subheader' export default React.createClass({ render() { return <div> <Subheader>Some Text</Subheader> </div> } }) ---- which is then rendered like this: [source,javascript] ---- import Foo from './modules/Foo' render(Foo, document.getElementById("app")) ---- I came across https://github.com/callemall/material-ui/issues/4845[this post on Stack Overflow] which seemed to describe a similar issue and led me to realise that I was actually on the wrong version of the documentation. I'm using version 0.16.7 but the demo I copied from is for version 0.15.0-alpha.1! This is the component code that we actually want: [source,javascript] ---- import React from 'react' import Subheader from 'material-ui/Subheader' export default React.createClass({ render() { return <div> <Subheader>Some Text</Subheader> </div> } }) ---- And that's all I had to change. There are several other components that you'll see the same error for and it looks like the change was made between the 0.14.x and 0.15.x series of the library.
null
null
[ -0.03210398182272911, 0.015577910467982292, -0.028921136632561684, 0.03940306976437569, 0.06885120272636414, -0.022337639704346657, 0.022450629621744156, 0.022287648171186447, 0.02169775404036045, -0.027782758697867393, -0.006987459026277065, -0.00019729822815861553, -0.07321023941040039, 0.028420405462384224, -0.024428347125649452, 0.03917592391371727, 0.07851466536521912, 0.006761858705431223, -0.016636915504932404, 0.041438229382038116, 0.015011209063231945, 0.058781128376722336, -0.00832157488912344, 0.021189359948039055, 0.016085997223854065, -0.014697655104100704, 0.008686874993145466, -0.008013293147087097, -0.06311773508787155, 0.013650598004460335, 0.026722239330410957, 0.0037814441602677107, 0.011029635556042194, -0.015725981444120407, 0.003292449051514268, -0.002582306507974863, -0.018820958212018013, 0.0042345537804067135, -0.015921754762530327, 0.006302352994680405, -0.034070130437612534, 0.01736641861498356, -0.011130198836326599, 0.008774667978286743, -0.04056514427065849, 0.017764752730727196, -0.01439098920673132, 0.01826590672135353, -0.01097211241722107, -0.00811862014234066, -0.047368720173835754, 0.011241577565670013, -0.03441639989614487, -0.017322169616818428, -0.01777675561606884, 0.035224299877882004, -0.00664779357612133, -0.09184376895427704, -0.008692653849720955, -0.051541995257139206, 0.012535051442682743, 0.02338777296245098, -0.005665725562721491, 0.03538019210100174, 0.005090009421110153, 0.0205690935254097, -0.03632092475891113, 0.07085680216550827, -0.07860216498374939, -0.037054721266031265, 0.01780962385237217, -0.00003320022005937062, -0.02859986200928688, -0.003412510734051466, 0.029131153598427773, -0.003930121660232544, -0.026121703907847404, 0.02828158251941204, -0.0261673703789711, 0.027578318491578102, -0.027424832805991173, 0.04707606881856918, 0.06240953877568245, 0.00755716348066926, 0.003967590164393187, -0.037914521992206573, -0.02484341524541378, -0.002165529876947403, -0.008667702786624432, 0.035687871277332306, 0.037563860416412354, -0.05403430014848709, 0.04753737524151802, 0.035635095089673996, 0.038430776447057724, -0.019054323434829712, -0.02880292944610119, 0.007647882215678692, -0.020934442058205605, -0.010753903537988663, -0.029693666845560074, 0.00101000745780766, -0.002450582105666399, 0.027339361608028412, -0.05466665327548981, -0.00570678012445569, -0.026442261412739754, -0.020086877048015594, -0.011174443177878857, -0.01374807022511959, -0.041226085275411606, 0.008524012751877308, -0.03190293908119202, -0.01829046942293644, -0.05678244307637215, 0.0996781587600708, 0.033176980912685394, 0.026905810460448265, -0.016644595190882683, 0.035636305809020996, 0.046710796654224396, 0.07501734793186188, -0.0020926394499838352, 0.05630800127983093, 0.02744476869702339, 0.043125469237565994, 0.0073435939848423, 0.06004933640360832, -0.03230779245495796, -0.06567584723234177, -0.012762452475726604, 0.05160345882177353, -0.03872492536902428, 0.009604504331946373, 0.006425132043659687, 0.015458108857274055, -0.004236517008394003, 0.008004282601177692, 0.0826149582862854, 0.0025780992582440376, -0.052498240023851395, -0.0347554087638855, 0.014345990493893623, 0.0021347105503082275, 0.010268903337419033, 0.0023423507809638977, -0.013785130344331264, -0.04257955774664879, -0.026774438098073006, 0.05115731060504913, 0.017125414684414864, 0.01704474352300167, 0.0640636757016182, 0.000785308366175741, -0.006800080183893442, 0.07479671388864517, 0.03204665705561638, 0.00652410089969635, -0.02692948654294014, -0.0046449750661849976, 0.030039556324481964, 0.032926566898822784, -0.0073507181368768215, 0.01469454076141119, -0.04666836932301521, -0.008812346495687962, -0.012390067800879478, 0.047897230833768845, 0.033397428691387177, -0.05000096186995506, -0.05428135395050049, -0.0966063141822815, 0.046234793961048126, -0.002970083151012659, 0.012486083433032036, 0.027858851477503777, 0.1005505844950676, 0.015026288107037544, -0.0015871538780629635, 0.006267729215323925, -0.0833204984664917, 0.0038522204849869013, 0.0039035396184772253, -0.0001756808051140979, 0.05516967922449112, -0.007423538248986006, 0.08434344083070755, -0.0008059295942075551, 0.002356640063226223, 0.03804187849164009, -0.06236783787608147, -0.04530772566795349, -0.05157535895705223, -0.011447475291788578, 0.09011360257863998, 0.0032622218132019043, -0.027385909110307693, 0.07373085618019104, 0.019159134477376938, 0.029955793172121048, 0.032981131225824356, 0.00706836674362421, -0.008411080576479435, 0.004207400139421225, -0.02685757912695408, -0.009016552940011024, 0.05025056004524231, 0.012191449292004108, -0.02512168325483799, 0.02103852480649948, 0.012621310539543629, -0.008110572583973408, 0.042558055371046066, -0.020800037309527397, 0.05746734142303467, 0.015637231990695, 0.037834420800209045, -0.06624079495668411, 0.020197702571749687, -0.0468599833548069, 0.06630459427833557, -0.027075396850705147, -0.0038696916308254004, -0.04622677341103554, -0.01730414293706417, 0.10286800563335419, 0.049818672239780426, -0.061415895819664, -0.07276319712400436, 0.009744127281010151, -0.017770059406757355, -0.05047057196497917, -0.0014338282635435462, -0.01740918681025505, -0.023182624951004982, -0.022308068349957466, -0.019973786547780037, -0.0072674439288675785, -0.0022806378547102213, -0.04492132365703583, 0.014882226474583149, 0.09075824171304703, -0.053580522537231445, 0.04678161442279816, -0.011960641480982304, -0.01695305109024048, 0.023387370631098747, -0.016549263149499893, -0.041802339255809784, 0.025196360424160957, 0.03592997044324875, -0.014726449735462666, 0.040175724774599075, -0.0422268845140934, -0.0489698126912117, 0.0060874405317008495, -0.04466957971453667, 0.04924839362502098, 0.03806594759225845, 0.07067477703094482, 0.0020857842173427343, 0.045410215854644775, -0.009128996171057224, 0.022690104320645332, -0.04197627305984497, -0.04585278034210205, -0.042188964784145355, -0.01229489129036665, -0.0023886640556156635, 0.02851591631770134, 0.02779923379421234, 0.0029410545248538256, -0.012143160216510296, -0.019382882863283157, -0.000043254345655441284, 0.00869190413504839, 0.02873007021844387, -0.04237188771367073, -0.017435723915696144, -0.030850889161229134, -0.013092678971588612, 0.050342634320259094, -0.03901498392224312, -0.06609689444303513, -0.0018884383607655764, -0.04559050127863884, 0.006478391122072935, -0.06773597747087479, -0.017900630831718445, -0.00962634664028883, 0.04077634587883949, 0.01681734435260296, -0.010527442209422588, 0.031412895768880844, 0.0911775678396225, 0.013793238438665867, 0.02138555981218815, 0.021465959027409554, 0.0046989042311906815, 0.0791180431842804, -0.020591862499713898, 0.01360771618783474, 0.03355685994029045, -0.026250282302498817, 0.006145568564534187, -0.05218592658638954, 0.01808146946132183, -0.04677785560488701, -0.25131019949913025, 0.015271352604031563, 0.00316954730078578, -0.03396660089492798, 0.029345933347940445, -0.007272365968674421, -0.022487839683890343, -0.04151839017868042, 0.014580457471311092, 0.025266915559768677, -0.005420254543423653, -0.03603842109441757, -0.0003869050997309387, 0.049615148454904556, -0.012716837227344513, -0.003736656391993165, -0.0005951517377980053, -0.014037691988050938, -0.014608126133680344, 0.005319392308592796, -0.02244512550532818, -0.04467429220676422, 0.00771279726177454, 0.05065828934311867, 0.008266180753707886, 0.003583271522074938, -0.06223471090197563, 0.04550996422767639, -0.054820526391267776, -0.032552480697631836, 0.0248843003064394, -0.030121948570013046, -0.0022065634839236736, -0.018200190737843513, -0.010605575516819954, -0.012011803686618805, 0.032643917948007584, 0.031398557126522064, -0.011630283668637276, -0.024131180718541145, -0.018229620531201363, -0.02840760163962841, 0.012975356541574001, -0.027064906433224678, 0.07633528113365173, -0.01830802671611309, -0.10233576595783234, -0.023311112076044083, -0.06482459604740143, 0.06861476600170135, -0.02397736720740795, -0.054590389132499695, 0.019507115706801414, 0.042499613016843796, -0.003176000202074647, -0.013399720191955566, 0.02483046054840088, 0.0117119699716568, -0.06904499232769012, -0.02631678804755211, -0.008715128526091576, -0.010015607811510563, -0.050491902977228165, -0.009957308880984783, -0.010755850933492184, -0.07570264488458633, -0.0376368947327137, -0.03345605358481407, 0.04986549913883209, 0.021784493699669838, -0.02041381597518921, -0.0036853142082691193, 0.00020776406745426357, -0.11197564750909805, 0.020620714873075485, -0.03403880074620247, -0.02857033535838127, -0.0498742051422596, -0.02668742835521698, 0.0048900265246629715, -0.04001498222351074, -0.05499449372291565, 0.04712085425853729, -0.01451432891190052, -0.00456886924803257, 0.02503848448395729, 0.021711459383368492, 0.006291553843766451, -0.03637899085879326, 0.024730324745178223, 0.09203096479177475, -0.021898750215768814, -0.017033996060490608, -0.011938776820898056, -0.01590035855770111, 0.053067129105329514, 0.014873568899929523, -0.010151303373277187, 0.04800904169678688, 0.07408124208450317, 0.029873590916395187, -0.03241755813360214, 0.004550182726234198, -0.021287163719534874, -0.0245768204331398, 0.01547316089272499, -0.046151041984558105, 0.003501288127154112, 0.04485849663615227, 0.035533808171749115, -0.0030297557823359966, -0.03437379002571106, 0.00902683474123478, -0.04755479469895363, -0.017788507044315338, 0.029549546539783478, -0.009976465255022049, 0.005542044062167406, 0.019772928208112717, -0.015516107901930809, -0.05847184732556343, 0.03257416933774948, 0.003822757164016366, 0.008356526494026184, -0.06234128773212433, -0.003207504516467452, 0.010567810386419296, 0.03531385213136673, 0.022612258791923523, 0.009438317269086838, -0.04785539209842682, 0.00657021114602685, -0.0003495756827760488, -0.057147055864334106, 0.027741599828004837, -0.03659035637974739, -0.011111338622868061, -0.012283090502023697, -0.005902556236833334, -0.02875829115509987, 0.014837517403066158, -0.0024299786891788244, 0.02411297708749771, 0.016725827008485794, 0.05408024042844772, 0.0041999612003564835, 0.008573119528591633, 0.053409285843372345, -0.050618477165699005, -0.005584418773651123, 0.003165384754538536, -0.05419209972023964, 0.02904246561229229, -0.006911293137818575, -0.0735815092921257, -0.023807864636182785, 0.045994315296411514, 0.009814714081585407, 0.00016616308130323887, -0.04427770525217056, 0.007700803689658642, -0.08494969457387924, -0.018670260906219482, 0.006502095144242048, -0.009327229112386703, 0.04493079334497452, 0.03876902535557747, 0.019698679447174072, -0.011129429563879967, 0.0036873517092317343, 0.02821667306125164, 0.05555155500769615, -0.032690443098545074, -0.03626435250043869, -0.007062721531838179, 0.03428877145051956, 0.018494021147489548, -0.006218303926289082, 0.03402009606361389, 0.025403404608368874, -0.013330507092177868, 0.007304756436496973, 0.060706522315740585, 0.02202199026942253, 0.02028835006058216, -0.03610184043645859, -0.019012220203876495, -0.008121659979224205, -0.027297303080558777, -0.04530082643032074, 0.016008879989385605, -0.015413422137498856, -0.027279101312160492, 0.0012336820363998413, -0.02816733904182911, -0.05933260917663574, -0.015110892243683338, 0.002585191512480378, 0.03995243087410927, 0.010585344396531582, 0.006356160156428814, 0.011418686248362064, -0.06782223284244537, 0.04200095310807228, 0.05021347105503082, -0.0667746290564537, 0.015296690165996552, -0.009041862562298775, 0.017106641083955765, 0.013173655606806278, 0.03562970459461212, -0.06569240987300873, -0.053320787847042084, -0.015717171132564545, -0.003030224470421672, -0.033385325223207474, -0.029203498736023903, -0.03187670558691025, 0.014975141733884811, -0.017830898985266685, -0.03215087577700615, 0.0062963468953967094, 0.008261507377028465, -0.018878933042287827, -0.01747037284076214, 0.014161892235279083, -0.016182107850909233, -0.009128003381192684, 0.019765326753258705, -0.005970058497041464, 0.045142900198698044, -0.011839421465992928, 0.02713857963681221, 0.03823770582675934, 0.032605238258838654, -0.05105024576187134, -0.0573277622461319, -0.018704570829868317, -0.008986322209239006, 0.014449192211031914, -0.012431022711098194, -0.012897223234176636, -0.027972761541604996, 0.016788063570857048, 0.0034137454349547625, -0.010002125054597855, -0.010489986278116703, -0.032897379249334335, 0.01541251689195633, 0.03876625746488571, -0.0004026492533739656, -0.01638539880514145, 0.006744588725268841, 0.0015097270952537656, 0.07377538084983826, -0.05280865728855133, -0.028951657935976982, -0.000561123713850975, -0.046480514109134674, 0.043983105570077896, 0.005303003825247288, 0.023959247395396233, -0.08355680108070374, 0.037770066410303116, 0.040717218071222305, 0.007982786744832993, 0.020102782174944878, -0.02704734355211258, 0.04533456265926361, -0.03765195980668068, -0.026251863688230515, -0.0963178500533104, 0.007564864121377468, 0.0015548488590866327, -0.01925438456237316, -0.016703952103853226, -0.015875546261668205, -0.014873987063765526, 0.05414281412959099, -0.03184935823082924, -0.023828623816370964, 0.01841290295124054, 0.018504582345485687, 0.01425107941031456, 0.032711461186409, -0.03322918340563774, 0.03717546910047531, 0.03166702017188072, -0.03475821390748024, -0.0058132982812821865, -0.01452002301812172, 0.08131074905395508, -0.015204878523945808, 0.014878293499350548, -0.0197827760130167, 0.020863492041826248, 0.05946073681116104, 0.032429203391075134, 0.031105192378163338, 0.054461196064949036, -0.022626405581831932, 0.015847984701395035, 0.039465002715587616, 0.041193075478076935, -0.0032727911602705717, 0.03547607734799385, 0.02472095936536789, -0.06541178375482559, 0.037213437259197235, 0.018229372799396515, 0.005231921561062336, -0.05593888834118843, 0.047674644738435745, 0.001329216524027288, -0.017361583188176155, -0.012559088878333569, -0.0010116477496922016, -0.06372400373220444, 0.0024899805430322886, -0.03099031373858452, -0.005973377265036106, -0.01872323825955391, 0.04493324086070061, -0.024185286834836006, -0.02734108455479145, 0.07045388966798782, 0.011080125346779823, 0.012499282136559486, -0.011832521297037601, 0.057393092662096024, 0.07579157501459122, 0.025228187441825867, 0.020833218470215797, 0.07915718853473663, -0.01936858333647251, -0.05024328827857971, 0.0009558280580677092, -0.06619749218225479, -0.0234390776604414, -0.03247581049799919, -0.006193851586431265, 0.07015644013881683, 0.021048761904239655, 0.07731195539236069, -0.01853489689528942, 0.00815566722303629, -0.0029148776084184647, -0.009452123194932938, 0.01992962695658207, 0.058112818747758865, 0.0302972923964262, 0.022860001772642136, -0.0032868138514459133, -0.016414150595664978, -0.0036144740879535675, -0.007442757021635771, -0.017864065244793892, 0.01961500570178032, 0.010114787146449089, 0.023521466180682182, 0.028313305228948593, 0.03150015324354172, 0.06597063690423965, -0.032527633011341095, -0.03333622217178345, -0.007719526998698711, 0.03418261185288429, 0.029525719583034515, -0.0007446391973644495, -0.0329756960272789, -0.019989345222711563, -0.010884660296142101, -0.035953011363744736, 0.007314801216125488, -0.012516925111413002, -0.0026559042744338512, 0.06708361953496933, -0.04360905662178993, 0.019295036792755127, 0.00861551146954298, 0.001768235582858324, -0.03921234980225563, -0.03356625884771347, -0.05503308027982712, -0.036105506122112274, -0.05359506234526634, 0.018597371876239777, 0.04757131636142731, -0.005442196037620306, -0.03724408149719238, -0.013226192444562912, -0.010094679892063141, -0.021563692018389702, 0.04069353640079498, -0.018251368775963783, -0.0301919374614954, 0.03785429894924164, 0.011073756031692028, -0.002067734021693468, 0.031915728002786636, 0.03472047299146652, -0.019954225048422813, -0.035750530660152435, 0.005953763611614704, -0.009669279679656029, 0.04138387367129326, -0.0015020937426015735, 0.04943102225661278, -0.07206945866346359, 0.03151800483465195, 0.007341582793742418, -0.0065115406177937984, -0.051121171563863754, 0.00714460015296936, 0.04442528635263443, -0.047094520181417465, 0.0590231716632843, -0.007914835587143898, -0.00953496154397726, -0.033370278775691986, 0.006836484186351299, -0.02867177501320839, 0.04124407470226288, 0.04420996457338333, -0.022641900926828384, 0.08378229290246964, 0.0183472391217947, 0.018439164385199547, -0.004921337123960257, -0.0009657982736825943, -0.02831147611141205, -0.008899842388927937, -0.024237528443336487, -0.0003133298014290631, -0.02573394775390625, -0.0589396096765995, -0.055940549820661545, -0.00011167967750225216, -0.019429506734013557, -0.013796892948448658, 0.0061712306924164295, 0.0036969580687582493, -0.05337391048669815, 0.041951294988393784, -0.05548684298992157, 0.020272957161068916, -0.026814846321940422, 0.00751536013558507, 0.006274742539972067, 0.010670982301235199, 0.04348798096179962, -0.03774464502930641, 0.04269072413444519, -0.014061509631574154, -0.01999719813466072, 0.004133717622607946, -0.01765226013958454, 0.06067536026239395, 0.005216862540692091, -0.004352284129709005 ]
[ -0.06437435746192932, 0.004831669386476278, -0.013952516950666904, -0.006048339884728193, 0.03171201050281525, -0.048022929579019547, -0.03556840866804123, 0.0423470064997673, -0.02366693690419197, -0.009445426054298878, 0.02941359579563141, -0.09021297097206116, 0.00877827312797308, 0.015347659587860107, 0.08151384443044662, 0.007319250144064426, -0.03964173048734665, -0.03851459175348282, -0.010512934997677803, 0.04277421906590462, 0.025022020563483238, -0.0077481502667069435, -0.042752206325531006, -0.05903477221727371, 0.0008975210366770625, 0.06243964657187462, 0.00552687793970108, -0.043051693588495255, 0.012065928429365158, -0.21924962103366852, -0.04588741436600685, -0.0427098348736763, 0.003038904396817088, -0.009103037416934967, 0.01881111040711403, 0.023273834958672523, 0.04857071861624718, -0.0018428305629640818, 0.029005106538534164, 0.0710141733288765, -0.03600078821182251, 0.04179896041750908, -0.03535577282309532, -0.043423108756542206, 0.025042282417416573, 0.0345454178750515, -0.010973193682730198, -0.028563708066940308, 0.020045142620801926, 0.024563083425164223, -0.049000538885593414, 0.0012730720918625593, 0.008306015282869339, -0.01500030979514122, 0.0013271529460325837, 0.0707281306385994, 0.037970416247844696, 0.06737924367189407, 0.027399029582738876, 0.062292661517858505, -0.01593758352100849, -0.01351114735007286, -0.11131379008293152, 0.11676342040300369, 0.10187101364135742, 0.04954122379422188, -0.08827439695596695, -0.02360880747437477, -0.009446348063647747, 0.031012654304504395, -0.003585743485018611, -0.011712352745234966, -0.003584841964766383, 0.05352872237563133, 0.037043944001197815, -0.02715846709907055, 0.03267165645956993, 0.00338463275693357, 0.09393341094255447, -0.046528417617082596, -0.03782220557332039, -0.020894113928079605, -0.04304312542080879, 0.007761752232909203, 0.020219121128320694, 0.0012091208482161164, -0.0065492913126945496, 0.046689506620168686, 0.015207551419734955, 0.046548549085855484, 0.016238335520029068, -0.023972906172275543, 0.055269088596105576, 0.07210682332515717, -0.09477968513965607, 0.002880268497392535, -0.0061033060774207115, 0.039439618587493896, -0.005849431734532118, 0.4242519438266754, -0.03327685594558716, -0.01587272621691227, 0.052819207310676575, 0.02602090872824192, -0.021919695660471916, -0.005387881305068731, -0.005963956005871296, -0.018285652622580528, 0.032636530697345734, -0.021784083917737007, -0.014459691941738129, -0.015261278487741947, 0.01844758912920952, -0.08118996024131775, -0.030613407492637634, -0.04549454152584076, -0.023560235276818275, -0.0007880540215410292, -0.03272290527820587, -0.011274724267423153, 0.021834881976246834, 0.0010804143967106938, 0.04280094802379608, 0.005137152038514614, -0.0126063022762537, 0.02037375420331955, 0.020298251882195473, 0.024031253531575203, -0.012148477137088776, 0.030276024714112282, 0.028694631531834602, 0.010064037516713142, -0.035359662026166916, 0.00925733707845211, 0.018233612179756165, 0.040345679968595505, 0.028555843979120255, 0.0075560398399829865, -0.0019010845571756363, 0.051767706871032715, -0.011634975671768188, -0.03366151452064514, -0.006885547656565905, -0.00475745415315032, -0.017871171236038208, 0.06467567384243011, -0.02570238709449768, -0.004456932190805674, -0.03980952501296997, 0.0024111538659781218, -0.014206402003765106, 0.07533393055200577, -0.03286835923790932, -0.009386595338582993, 0.013656407594680786, -0.01645684242248535, 0.029385976493358612, -0.044659048318862915, -0.03708619251847267, -0.025133982300758362, -0.011478480882942677, -0.020545702427625656, 0.03333433344960213, 0.014431933872401714, 0.011212551966309547, -0.0872134268283844, -0.029936108738183975, 0.041719499975442886, 0.032462216913700104, -0.08290722966194153, -0.06109507754445076, 0.07478675991296768, -0.01102722529321909, -0.017239665612578392, 0.0902264341711998, -0.005539766047149897, 0.0025302658323198557, 0.007051296532154083, 0.04350154101848602, 0.04421314224600792, 0.05001972243189812, 0.008658996783196926, -0.07460848242044449, -0.008782666176557541, -0.011187595315277576, -0.07438986748456955, -0.03214258328080177, -0.010356499813497066, -0.013429767452180386, -0.029774216935038567, -0.021238064393401146, -0.01963632181286812, -0.062353406101465225, 0.07499383389949799, 0.01857873983681202, 0.007041579578071833, 0.010257193818688393, -0.06580373644828796, 0.020684221759438515, -0.009880004450678825, 0.08444633334875107, 0.05078970268368721, 0.0015630749985575676, 0.005048677790910006, -0.08888379484415054, 0.036971841007471085, 0.06261628866195679, -0.015109444968402386, 0.04008624702692032, -0.005206723231822252, -0.0895935595035553, 0.026956239715218544, 0.029074739664793015, 0.032496608793735504, 0.015064118430018425, -0.04202829301357269, -0.006296335719525814, 0.02957909181714058, 0.005637875758111477, 0.013230212964117527, -0.007848957553505898, -0.021703552454710007, -0.06213172525167465, -0.31303685903549194, 0.03701012581586838, -0.035621557384729385, -0.012246867641806602, -0.050792623311281204, -0.02972794510424137, -0.013738924637436867, -0.0020730008836835623, -0.03492477536201477, 0.03084290772676468, 0.06415962427854538, 0.04200262203812599, 0.028726398944854736, -0.09534075856208801, 0.0019701565615832806, -0.020642155781388283, 0.0208711177110672, -0.05003286898136139, -0.03764006122946739, -0.024279111996293068, -0.0891270712018013, -0.054549846798181534, -0.04652535542845726, -0.04369288682937622, 0.0322120226919651, -0.044116370379924774, 0.12066500633955002, 0.019833527505397797, 0.022884557023644447, -0.03809454292058945, 0.04112871736288071, 0.023678595200181007, 0.025674987584352493, -0.08441276848316193, -0.019650457426905632, -0.01342245563864708, -0.0353299044072628, 0.014587828889489174, -0.0076241944916546345, 0.003915976732969284, -0.048324692994356155, 0.0005416645435616374, -0.03919067606329918, 0.020764870569109917, 0.03140917420387268, -0.022394679486751556, -0.04679277911782265, -0.06698045879602432, -0.027595238760113716, 0.0505119264125824, 0.0166504867374897, 0.016018353402614594, 0.030744800344109535, 0.06180766597390175, -0.030506879091262817, 0.001984919421374798, -0.04125818610191345, -0.007762186694890261, 0.01948767527937889, -0.039237070828676224, 0.012317679822444916, 0.04316670447587967, 0.03740838170051575, -0.02845786325633526, -0.03294390067458153, 0.024200845509767532, 0.043816473335027695, -0.005790001712739468, 0.015295208431780338, -0.02196183055639267, -0.026395101100206375, 0.11484842002391815, 0.005417772568762302, 0.051535386592149734, 0.012597374618053436, 0.0093868188560009, 0.011362037621438503, 0.06686002761125565, 0.06947489827871323, 0.007521606981754303, 0.0026618989650160074, 0.03484982252120972, 0.045850079506635666, -0.021934764459729195, -0.017417116090655327, 0.0379275381565094, -0.011338356882333755, -0.0708141103386879, 0.00784868560731411, -0.017734114080667496, -0.016985448077321053, 0.018270954489707947, -0.03423021733760834, -0.0020672741811722517, 0.051343172788619995, -0.006653361022472382, -0.24452775716781616, -0.009981047362089157, 0.11645398288965225, 0.028562011197209358, -0.006044208072125912, 0.0005484099383465946, 0.010023435577750206, -0.04436172544956207, 0.015017027035355568, -0.01562720537185669, -0.01003203820437193, 0.06575486063957214, 0.0039645005017519, 0.0280702393501997, 0.029229696840047836, -0.0013294783420860767, 0.05446154251694679, 0.030657369643449783, 0.05823676660656929, -0.03381207212805748, -0.010561393573880196, -0.0042980629950761795, 0.17558348178863525, 0.03138869255781174, -0.01657017506659031, 0.019589148461818695, -0.009488399140536785, -0.00748851615935564, 0.0625326931476593, 0.024636533111333847, -0.04027344286441803, 0.022082103416323662, 0.027542663738131523, -0.004568903241306543, -0.014299055561423302, -0.04405566677451134, -0.009562923572957516, 0.013927810825407505, 0.03377711400389671, -0.00012330956815276295, -0.03945983946323395, 0.0016596344066783786, -0.03237654268741608, 0.01578311249613762, 0.028195224702358246, -0.04939836636185646, -0.0556035116314888, -0.024407848715782166, -0.09035088121891022, -0.037616077810525894, -0.01038343645632267, -0.045560140162706375, -0.007898574694991112, -0.02907841093838215, -0.008118662051856518, 0.05225060507655144, 0.008849097415804863, -0.01495947502553463, -0.02831489033997059, -0.0020268617663532495, 0.036878541111946106, -0.037247419357299805, 0.07745152711868286, 0.035246554762125015, 0.006593625992536545 ]
[ -0.05154811963438988, 0.02530565671622753, 0.03545296937227249, 0.04911640286445618, 0.03586554527282715, 0.02356959879398346, -0.00879409909248352, 0.050118062645196915, -0.0468042828142643, -0.039967507123947144, -0.017465876415371895, -0.029386641457676888, 0.010895220562815666, 0.04031522944569588, 0.02068333514034748, -0.01972934603691101, 0.003401529509574175, -0.023645641282200813, 0.04497407004237175, 0.017794014886021614, -0.023465335369110107, 0.02478957176208496, 0.014225578866899014, -0.011498713865876198, 0.032414525747299194, 0.04577995836734772, -0.0080973906442523, -0.029098089784383774, 0.033620093017816544, -0.1289970427751541, 0.03067188337445259, -0.024345381185412407, 0.009167895652353764, -0.005483237095177174, -0.05056578293442726, 0.04099209979176521, -0.020323747768998146, -0.012014434672892094, -0.020680895075201988, 0.011191420257091522, -0.023344431072473526, 0.043261658400297165, -0.03724122419953346, -0.001844496000558138, -0.0003044476907234639, -0.03426341339945793, -0.029988493770360947, -0.023528598248958588, -0.04206622764468193, -0.007992565631866455, -0.009014452807605267, 0.01255740225315094, 0.018400922417640686, 0.03151204064488411, -0.010999263264238834, 0.028329139575362206, 0.0026349318213760853, 0.0003804134903475642, 0.026425160467624664, 0.03504159674048424, -0.018138250336050987, -0.02936525270342827, 0.0024227977264672518, -0.07287238538265228, 0.039464980363845825, 0.017058398574590683, -0.032669004052877426, 0.00486711785197258, 0.002207535784691572, 0.012108255177736282, 0.0008143373415805399, 0.023815063759684563, 0.024842413142323494, -0.005139484070241451, -0.0019248139578849077, -0.03421482816338539, 0.018849249929189682, 0.01638735830783844, 0.032097991555929184, 0.019042793661355972, -0.06016363576054573, 0.004701110068708658, -0.009647970087826252, 0.029240909963846207, -0.018466180190443993, 0.02676617167890072, -0.014474116265773773, 0.010098516941070557, -0.01784350350499153, 0.008970369584858418, -0.025745321065187454, 0.00012011347280349582, 0.01292332075536251, 0.08552432060241699, -0.08202997595071793, -0.02078961580991745, -0.034596577286720276, 0.0020282738842070103, -0.0013025334337726235, 0.8057667016983032, 0.024906907230615616, -0.0035906925331801176, 0.01543605700135231, 0.008020737208425999, -0.031291525810956955, -0.058755308389663696, -0.004679694771766663, -0.008105048909783363, -0.015492759644985199, 0.009805734269320965, 0.05481068789958954, 0.008341237902641296, 0.020311206579208374, -0.011234354227781296, 0.019042905420064926, 0.012980246916413307, 0.02858947403728962, -0.009368528611958027, -0.00020678520377259701, 0.02829890325665474, 0.012352884747087955, -0.020223813131451607, 0.005396202206611633, 0.006826956290751696, 0.02999279648065567, -0.20447440445423126, -0.0026295389980077744, -8.02668391170149e-33, 0.023550961166620255, -0.012120768427848816, 0.014013215899467468, 0.025413665920495987, 0.03196638450026512, -0.02517908252775669, 0.025091437622904778, 0.026913514360785484, 0.0007974740583449602, -0.05334169417619705, -0.0011568365152925253, 0.006608765572309494, -0.04893271625041962, 0.0051488084718585014, -0.01134530920535326, -0.004249787889420986, 0.0021649952977895737, 0.008893487975001335, -0.004407084081321955, -0.015941757708787918, 0.017519397661089897, 0.028128638863563538, 0.007206625770777464, 0.017615120857954025, -0.01601491868495941, 0.031978826969861984, 0.014133868739008904, 0.03997192904353142, -0.02123311720788479, -0.06873594969511032, 0.0016741130966693163, -0.005454684607684612, -0.011811576783657074, 0.010634885169565678, 0.038181789219379425, -0.026000503450632095, -0.024170678108930588, -0.012415241450071335, -0.054034218192100525, -0.020594682544469833, -0.06348355859518051, 0.012497330084443092, -0.006985850166529417, 0.04992712289094925, -0.022970421239733696, 0.027528217062354088, 0.04232047125697136, 0.028918322175741196, 0.00912640243768692, -0.02580283395946026, 0.018482165411114693, 0.05252670869231224, 0.01148208323866129, -0.011780709959566593, -0.020104534924030304, 0.01673547551035881, -0.009923598729074001, 0.01832195557653904, 0.05413304641842842, -0.03718636929988861, 0.05247834697365761, -0.025807103142142296, -0.010197767987847328, 0.04894189164042473, -0.04554672911763191, 0.03349664807319641, 0.028562819585204124, 0.02910810150206089, 0.012335863895714283, 0.008681240491569042, -0.048025522381067276, 0.027138708159327507, -0.015279093757271767, -0.011239300481975079, 0.04421420395374298, 0.005348223727196455, 0.01967581734061241, -0.024051085114479065, 0.038970641791820526, 0.02991412580013275, 0.006781442556530237, -0.0021692311856895685, -0.010852370411157608, -0.012276951223611832, -0.0027575793210417032, -0.01980295218527317, -0.010993607342243195, 0.013683872297406197, 0.036300718784332275, 0.05541643127799034, 0.009165190160274506, -0.04162076115608215, 0.03577389195561409, -0.0362432636320591, -0.051189545542001724, 7.881059998101779e-33, -0.002317878184840083, -0.042514532804489136, -0.03420962393283844, 0.018398262560367584, -0.019392715767025948, -0.03431740775704384, -0.002505652606487274, 0.029482213780283928, 0.0020269479136914015, 0.034385185688734055, 0.022303251549601555, 0.04037853330373764, -0.0006850279169157147, 0.03693614527583122, 0.00298984139226377, 0.05223292112350464, -0.015431887470185757, -0.0025384598411619663, 0.03585129603743553, -0.05036601051688194, -0.00549014937132597, 0.013597853481769562, 0.00006552517152158543, 0.007074304856359959, -0.03144484758377075, 0.07671373337507248, 0.0012951308162882924, -0.023462193086743355, -0.0038574410136789083, -0.03585740551352501, 0.012005208060145378, -0.05141974985599518, -0.0009048503125086427, -0.03012334369122982, -0.031677402555942535, 0.014267508871853352, -0.004394352901726961, 0.0015466250479221344, -0.000866638554725796, -0.03959299996495247, -0.03003702312707901, -0.030911201611161232, 0.017302710562944412, 0.032457366585731506, -0.013823084533214569, -0.03607189282774925, -0.008734548464417458, -0.012684524990618229, 0.00758594274520874, 0.02466741017997265, -0.022770140320062637, 0.016825441271066666, 0.013320572674274445, -0.023895155638456345, 0.010496927425265312, -0.04774530231952667, -0.03117198497056961, 0.004710127599537373, 0.00925352331250906, 0.01591341756284237, 0.02135545387864113, -0.029589029029011726, -0.029187479987740517, 0.031310074031353, -0.04625113680958748, -0.005882997531443834, -0.07162992656230927, -0.03356137126684189, 0.031246744096279144, 0.013914854265749454, 0.03170856460928917, 0.04878908395767212, 0.022019892930984497, 0.022063152864575386, 0.03485807776451111, -0.0037330740597099066, 0.025786610320210457, 0.00922684371471405, -0.002016589045524597, 0.009933517314493656, -0.000005419286935648415, 0.01826261542737484, 0.017022211104631424, -0.037750665098428726, -0.0016386263305321336, 0.0017253480618819594, -0.03023861162364483, 0.021529575809836388, -0.00814884714782238, -0.024297434836626053, -0.02990865893661976, -0.023448018357157707, -0.006562521681189537, 0.02360423095524311, -0.046985872089862823, -1.288233697493979e-8, 0.0013589828740805387, 0.020690713077783585, -0.012339928187429905, -0.0450819656252861, 0.004513181280344725, 0.0031609158031642437, 0.013189775869250298, -0.001258991425856948, -0.006069816183298826, 0.028279410675168037, 0.025389235466718674, 0.008098570629954338, -0.015705125406384468, 0.010048544965684414, 0.014610862359404564, -0.044888515025377274, -0.02764529548585415, 0.018366064876317978, 0.017871003597974777, -0.06682747602462769, 0.011701013892889023, 0.04500573128461838, 0.02147037908434868, 0.04669385775923729, 0.015496492385864258, 0.013688074424862862, -0.008788218721747398, -0.02062017284333706, -0.027743076905608177, -0.026379801332950592, -0.030237937346100807, -0.019911721348762512, -0.03217350319027901, -0.03546956181526184, 0.0032911321613937616, 0.0030385798308998346, 0.0350387766957283, -0.024457991123199463, 0.012984243221580982, 0.02552110329270363, 0.0013611792819574475, -0.0021376833319664, -0.0022303650621324778, -0.02062109112739563, -0.010749095119535923, 0.01704181730747223, -0.021050363779067993, 0.04779353365302086, 0.04629459232091904, 0.04020313918590546, 0.024290427565574646, -0.043307870626449585, -0.04222611337900162, 0.00976190809160471, 0.019064001739025116, -0.026481853798031807, -0.014580147340893745, -0.024376824498176575, 0.0022653010673820972, -0.03549015894532204, 0.03731440380215645, -0.00006424449384212494, -0.01677817665040493, -0.03340315446257591 ]
reactjsmaterial-ui-cannot-resolve-module-material-uilib
https://markhneedham.com/blog/2017/02/12/reactjsmaterial-ui-cannot-resolve-module-material-uilib
false
2017-02-22 23:28:23
Neo4j: How do null values even work?
[ "neo4j" ]
[ "neo4j" ]
Every now and then I find myself wanting to import a CSV file into https://neo4j.com/developer/[Neo4j] and I always get confused with how to handle the various null values that can lurk within. Let's start with an example that doesn't have a CSV file in sight. Consider the following list and my attempt to only return null values: [source,cypher] ---- WITH [null, "null", "", "Mark"] AS values UNWIND values AS value WITH value WHERE value = null RETURN value (no changes, no records) ---- Hmm that's weird. I'd have expected that at least keep the first value in the collection. What about if we do the inverse? [source,cypher] ---- WITH [null, "null", "", "Mark"] AS values UNWIND values AS value WITH value WHERE value <> null RETURN value (no changes, no records) ---- Still nothing! Let's try returning the output of our comparisons rather than filtering rows: [source,cypher] ---- WITH [null, "null", "", "Mark"] AS values UNWIND values AS value RETURN value = null AS outcome ╒═══════╤═════════╕ │"value"│"outcome"│ ╞═══════╪═════════╡ │null │null │ ├───────┼─────────┤ │"null" │null │ ├───────┼─────────┤ │"" │null │ ├───────┼─────────┤ │"Mark" │null │ └───────┴─────────┘ ---- Ok so that isn't what we expected. Everything has an 'outcome' of 'null'! What about if we want to check whether the value is the string "Mark"? [source,cypher] ---- WITH [null, "null", "", "Mark"] AS values UNWIND values AS value RETURN value = "Mark" AS outcome ╒═══════╤═════════╕ │"value"│"outcome"│ ╞═══════╪═════════╡ │null │null │ ├───────┼─────────┤ │"null" │false │ ├───────┼─────────┤ │"" │false │ ├───────┼─────────┤ │"Mark" │true │ └───────┴─────────┘ ---- From executing this query we learn that if one side of a comparison is null then the return value is always going to be null. So how do we exclude a row if it's null? It turns out we have to use the 'is' keyword rather than using the equality operator. Let's see what that looks like: [source,cypher] ---- WITH [null, "null", "", "Mark"] AS values UNWIND values AS value WITH value WHERE value is null RETURN value ╒═══════╕ │"value"│ ╞═══════╡ │null │ └───────┘ ---- And the positive case: [source,cypher] ---- WITH [null, "null", "", "Mark"] AS values UNWIND values AS value WITH value WHERE value is not null RETURN value ╒═══════╕ │"value"│ ╞═══════╡ │"null" │ ├───────┤ │"" │ ├───────┤ │"Mark" │ └───────┘ ---- What if we want to get rid of empty strings? [source,cypher] ---- WITH [null, "null", "", "Mark"] AS values UNWIND values AS value WITH value WHERE value <> "" RETURN value ╒═══════╕ │"value"│ ╞═══════╡ │"null" │ ├───────┤ │"Mark" │ └───────┘ ---- Interestingly that also gets rid of the null value which I hadn't expected. But if we look for values matching the empty string: [source,cypher] ---- WITH [null, "null", "", "Mark"] AS values UNWIND values AS value WITH value WHERE value = "" RETURN value ╒═══════╕ │"value"│ ╞═══════╡ │"" │ └───────┘ ---- It's not there either! Hmm what's going on here: [source,cypher] ---- WITH [null, "null", "", "Mark"] AS values UNWIND values AS value RETURN value, value = "" AS isEmpty, value <> "" AS isNotEmpty ╒═══════╤═════════╤════════════╕ │"value"│"isEmpty"│"isNotEmpty"│ ╞═══════╪═════════╪════════════╡ │null │null │null │ ├───────┼─────────┼────────────┤ │"null" │false │true │ ├───────┼─────────┼────────────┤ │"" │true │false │ ├───────┼─────────┼────────────┤ │"Mark" │false │true │ └───────┴─────────┴────────────┘ ---- null values seem to get filtered out for every type of equality match unless we explicitly check that a value 'is null'. So how do we use this knowledge when we're parsing CSV files using Neo4j's https://neo4j.com/developer/guide-import-csv/[LOAD CSV] tool? Let's say we have a CSV file that looks like this: [source,bash] ---- $ cat nulls.csv name,company "Mark", "Michael","" "Will",null "Ryan","Neo4j" ---- So none of the first three rows have a value for 'company'. I don't have any value at all, Michael has an empty string, and Will has a null value. Let's see how LOAD CSV interprets this: [source,cypher] ---- load csv with headers from "file:///nulls.csv" AS row RETURN row ╒═════════════════════════════════╕ │"row" │ ╞═════════════════════════════════╡ │{"name":"Mark","company":null} │ ├─────────────────────────────────┤ │{"name":"Michael","company":""} │ ├─────────────────────────────────┤ │{"name":"Will","company":"null"} │ ├─────────────────────────────────┤ │{"name":"Ryan","company":"Neo4j"}│ └─────────────────────────────────┘ ---- We've got the full sweep of all the combinations from above. We'd like to create a +++<cite>+++Person+++</cite>+++ node for each row but only create a +++<cite>+++Company+++</cite>+++ node and associated 'WORKS_FOR' relationshp if an actual company is defined - we don't want to create a null company. So we only want to create a company node and 'WORKS_FOR' relationship for the Ryan row. The following query does the trick: [source,cypher] ---- load csv with headers from "file:///nulls.csv" AS row MERGE (p:Person {name: row.name}) WITH p, row WHERE row.company <> "" AND row.company <> "null" MERGE (c:Company {name: row.company}) MERGE (p)-[:WORKS_FOR]->(c) Added 5 labels, created 5 nodes, set 5 properties, created 1 relationship, statement completed in 117 ms. ---- And if we visualise what's been created: image::{{<siteurl>}}/uploads/2017/02/graph-15.png[Graph 15,250] Perfect. Perhaps this behaviour is obvious but it always trips me up so hopefully it'll be useful to someone else as well! There's also a section on the Neo4j developer pages describing http://neo4j.com/docs/developer-manual/current/cypher/syntax/working-with-null/[even more null scenarios] that's worth checking out.
null
null
[ -0.0003737087536137551, -0.042774002999067307, -0.01508267130702734, 0.03060406818985939, 0.09137897193431854, -0.00909767672419548, 0.030239973217248917, 0.011692848056554794, -0.008670216426253319, -0.03257647901773453, -0.04610295593738556, 0.008662274107336998, -0.07200409471988678, 0.013676455244421959, 0.021762000396847725, 0.06386066228151321, 0.07980336993932724, -0.008809140883386135, 0.00940611120313406, -0.015024935826659203, 0.017961036413908005, 0.024603858590126038, 0.003668053075671196, 0.03780575469136238, 0.0561651736497879, -0.0003984663635492325, 0.005080786999315023, -0.006983050145208836, -0.04614229127764702, 0.01970328763127327, 0.06681535392999649, -0.0006933080148883164, 0.027302060276269913, -0.025009458884596825, 0.01253421138972044, -0.004797603469341993, -0.03129560500383377, 0.026817314326763153, -0.0232800655066967, -0.003524703672155738, -0.046367011964321136, 0.02237800322473049, -0.024903221055865288, 0.03482448682188988, -0.018972834572196007, -0.00670165428891778, -0.034132927656173706, 0.03155592083930969, -0.015491608530282974, 0.014097183011472225, -0.07582494616508484, 0.008022747002542019, -0.020779145881533623, 0.006005116272717714, 0.026273734867572784, 0.049920789897441864, 0.0038487492129206657, -0.07163450866937637, 0.04160146787762642, -0.04571720212697983, 0.009177864529192448, -0.00006074043994885869, -0.019090959802269936, 0.02349799871444702, 0.0283327829092741, -0.04171406850218773, 0.013806766830384731, 0.06628697365522385, -0.06125066429376602, -0.02742944285273552, -0.012983960099518299, 0.0188149344176054, -0.016530003398656845, -0.012860376387834549, 0.004478336777538061, -0.03472793102264404, -0.006078624632209539, 0.024715956300497055, 0.04077514261007309, 0.0709289088845253, -0.003270106390118599, -0.017256682738661766, 0.04879310354590416, 0.02103513479232788, 0.026372775435447693, -0.06026987358927727, -0.011890355497598648, -0.0322846956551075, -0.03092142753303051, 0.04813900962471962, 0.030193863436579704, -0.024716828018426895, -0.001586858881637454, -0.02021709457039833, -0.020983904600143433, 0.016534579917788506, 0.013744903728365898, -0.007985676638782024, 0.024102583527565002, 0.00046923052286729217, -0.011136258952319622, -0.021559424698352814, 0.024078046903014183, -0.011657181195914745, -0.07659776508808136, -0.03785036876797676, -0.010637705214321613, -0.031905051320791245, 0.015509056858718395, 0.01699087955057621, -0.06797456741333008, -0.0036282700020819902, -0.013897375203669071, 0.007700049784034491, -0.09556978940963745, 0.04505053162574768, 0.02845735289156437, 0.01124940998852253, -0.027980055660009384, 0.027760304510593414, 0.05031422898173332, 0.0042617712169885635, 0.023289687931537628, 0.06791877001523972, 0.01692494936287403, 0.019968776032328606, 0.014639223925769329, 0.05939841270446777, -0.008469430729746819, -0.09030380845069885, -0.017073754221200943, 0.06106484681367874, -0.015009974129498005, 0.012302075512707233, 0.0038196260575205088, -0.03292357549071312, -0.021975668147206306, 0.023685136809945107, 0.047822970896959305, 0.013621733523905277, 0.0011752526042982936, -0.027254754677414894, 0.044272247701883316, 0.013632431626319885, 0.04645169526338577, 0.010102457366883755, -0.014830771833658218, -0.024865929037332535, -0.019352054223418236, 0.024120669811964035, 0.02916666492819786, 0.05124731361865997, 0.1013246551156044, -0.03685302287340164, -0.023316198959946632, 0.09735627472400665, 0.013566134497523308, 0.022662842646241188, 0.000015338244338636287, 0.020053328946232796, 0.059661101549863815, 0.022675173357129097, -0.01170364674180746, 0.04528844356536865, 0.010375757701694965, -0.006674435921013355, -0.005275038070976734, 0.03230445459485054, -0.020390694960951805, 0.006690877489745617, -0.03277246281504631, -0.053109537810087204, 0.08316050469875336, -0.056930918246507645, -0.004160535987466574, 0.019933711737394333, 0.06341254711151123, -0.001252941321581602, 0.04394608363509178, -0.009203789755702019, -0.06630809605121613, 0.06895361840724945, -0.0396035797894001, 0.010065007023513317, 0.0024755445774644613, 0.029253756627440453, 0.05921125411987305, 0.020753154531121254, -0.013489182107150555, 0.04091392457485199, -0.10133865475654602, -0.07143109291791916, -0.036398183554410934, -0.02725563943386078, 0.04530002549290657, -0.013548831455409527, -0.0014009758597239852, 0.0628882348537445, -0.045998912304639816, 0.01527858804911375, 0.03426354378461838, -0.006659030448645353, 0.029316989704966545, -0.022321708500385284, -0.048001136630773544, 0.05854642391204834, 0.037281204015016556, -0.03851116821169853, -0.0194571390748024, 0.03519698604941368, -0.046936240047216415, 0.012044754810631275, 0.03482779115438461, -0.025662502273917198, 0.04491199553012848, 0.027876324951648712, -0.007257501594722271, -0.03077014908194542, 0.023404289036989212, -0.03477928042411804, 0.040585003793239594, 0.009315253235399723, 0.004050796385854483, -0.022483574226498604, 0.0012199763441458344, 0.1195482611656189, 0.052728909999132156, 0.0029448289424180984, -0.04088795930147171, 0.0654420405626297, 0.012371917255222797, -0.010036387480795383, 0.027910491451621056, -0.04289489611983299, -0.0053465282544493675, -0.003047590609639883, -0.004253263119608164, 0.004272573161870241, 0.00971047393977642, 0.003638452384620905, 0.019444536417722702, 0.04009731858968735, -0.024418305605649948, 0.03519567474722862, 0.032812461256980896, -0.015588989481329918, -0.007616127375513315, -0.05731549113988876, -0.047821104526519775, 0.018915094435214996, 0.028906743973493576, 0.011371176689863205, 0.06499914824962616, -0.04092974215745926, 0.00145375682041049, 0.0014617046108469367, -0.05581573396921158, 0.009223150089383125, 0.05330280214548111, 0.04605212062597275, -0.013269840739667416, 0.03317490965127945, -0.039083391427993774, -0.044150471687316895, -0.015657613053917885, -0.03891940042376518, -0.03421483188867569, 0.010148135013878345, 0.043367814272642136, -0.004175589885562658, 0.0003008777857758105, -0.025986619293689728, -0.0014237281866371632, 0.0066357990726828575, -0.008171623572707176, -0.01158236339688301, 0.009009821340441704, 0.01668337546288967, -0.006400609388947487, -0.0604291595518589, -0.01453909371048212, 0.046208981424570084, -0.068889319896698, -0.04324504733085632, 0.0071242996491491795, -0.03272165730595589, 0.05468834191560745, -0.02335982769727707, -0.038517072796821594, 0.005232342053204775, 0.049481287598609924, 0.029183628037571907, 0.006641986779868603, 0.007799064740538597, 0.09230425208806992, 0.03113699145615101, 0.00477990135550499, 0.049993932247161865, 0.013313813135027885, 0.050290245562791824, 0.002281337045133114, 0.033933259546756744, 0.06583542376756668, -0.00037296212394721806, -0.01087953895330429, -0.0010227011516690254, -0.003390864934772253, -0.030997250229120255, -0.2508144676685333, 0.05439654737710953, -0.04002832993865013, -0.06729235500097275, 0.013681910000741482, -0.058863963931798935, 0.0064560649916529655, -0.009348946623504162, -0.037889279425144196, 0.05312604829668999, 0.003411079291254282, -0.026860544458031654, -0.05026824399828911, 0.03570321574807167, 0.0154254250228405, 0.01025744155049324, -0.01839141547679901, -0.04469861835241318, 0.016775010153651237, 0.04617263004183769, -0.0034862631000578403, -0.03879355266690254, 0.013234698213636875, 0.034185148775577545, 0.019739633426070213, 0.0438123494386673, -0.08484605699777603, 0.04075532406568527, -0.06047513708472252, -0.043172504752874374, -0.006010330282151699, -0.040161292999982834, -0.005832907278090715, -0.03912115842103958, -0.029425492510199547, -0.01867077685892582, 0.037118636071681976, 0.035334598273038864, -0.011074869893491268, 0.07912825047969818, -0.06028051674365997, -0.04828048124909401, -0.005171069875359535, 0.019082242622971535, 0.07206560671329498, -0.005373390391469002, -0.048628419637680054, 0.009558245539665222, -0.00317919603548944, 0.0637032613158226, -0.04943719506263733, -0.023522354662418365, -0.03486448898911476, 0.0356578528881073, -0.03382433205842972, -0.015050290152430534, -0.025479938834905624, 0.003780476748943329, -0.05833292752504349, -0.009960210882127285, -0.007765067275613546, -0.06604765355587006, 0.010628878138959408, -0.04267851635813713, -0.04402276128530502, -0.04589047655463219, -0.08121779561042786, -0.03722803667187691, 0.05821674317121506, 0.03620424494147301, -0.0098441606387496, 0.020110387355089188, -0.0018875207751989365, -0.09734849631786346, -0.03649557754397392, -0.0439193993806839, 0.0020521811675280333, -0.011836661025881767, -0.05523550510406494, 0.03978662192821503, -0.06207497790455818, -0.06312587857246399, 0.023119958117604256, 0.04966137930750847, -0.00622574845328927, -0.006621622480452061, -0.01895231008529663, -0.01834987662732601, -0.04118766263127327, 0.010023614391684532, 0.061279408633708954, -0.009209643118083477, -0.016349323093891144, 0.010841679759323597, -0.016880720853805542, 0.04336656257510185, 0.005045680329203606, -0.03593529015779495, 0.028506457805633545, 0.033913079649209976, 0.05506597459316254, -0.029629573225975037, 0.022295409813523293, -0.04274958372116089, -0.019391123205423355, -0.019756127148866653, -0.042594388127326965, 0.041333314031362534, 0.013878889381885529, -0.0028029230888932943, -0.015209820121526718, 0.015433944761753082, -0.006363725755363703, -0.04305429384112358, -0.031388577073812485, 0.0018591150874271989, 0.000523452996276319, 0.009689581580460072, 0.03530392795801163, -0.03916570171713829, -0.04625147581100464, 0.013561156578361988, 0.029080526903271675, -0.02487267181277275, -0.08052379637956619, -0.03306641802191734, -0.02806454338133335, -0.0240952055901289, -0.018516497686505318, -0.006724652834236622, -0.027777710929512978, 0.02732842043042183, 0.015572896227240562, -0.03641318157315254, 0.039193347096443176, -0.02487928420305252, -0.02908199653029442, -0.0030882838182151318, -0.009935007430613041, -0.016014443710446358, -0.007633231580257416, -0.03828060254454613, -0.02040586806833744, 0.06434620171785355, 0.014471041969954967, 0.0006537132430821657, -0.0024978129658848047, 0.0025635287165641785, -0.0007426540832966566, 0.01126737892627716, -0.009356611408293247, -0.02995861880481243, 0.02145610935986042, -0.013855214230716228, -0.0628235936164856, -0.012709210626780987, 0.0473330020904541, -0.027947913855314255, -0.012342880479991436, -0.04006300866603851, 0.03360549733042717, -0.046015091240406036, 0.03143467381596565, -0.011027527041733265, 0.0030815748032182455, 0.039890874177217484, -0.010399442166090012, 0.00541750667616725, -0.025815164670348167, 0.011050796136260033, -0.0033709928393363953, -0.004116538446396589, -0.03070271946489811, -0.0027893967926502228, -0.00771684292703867, 0.021147051826119423, 0.013375602662563324, 0.01719251088798046, -0.03097410872578621, 0.016324518248438835, -0.003869118867442012, -0.004850683733820915, 0.023065637797117233, 0.0037127425894141197, 0.022020187228918076, 0.04192139208316803, 0.004977775271981955, -0.003942958079278469, -0.015541261062026024, -0.03157136216759682, -0.05358881503343582, -0.03405747190117836, -0.026312166824936867, -0.0006708962027914822, -0.03152863308787346, -0.040984198451042175, 0.02832145057618618, -0.004829513840377331, 0.005661301780492067, 0.04932307451963425, 0.012080652639269829, -0.03413597494363785, -0.009408755227923393, -0.004696253687143326, 0.052180126309394836, -0.045135051012039185, -0.016392307355999947, -0.01110465731471777, -0.03427191451191902, 0.015933243557810783, 0.014013850130140781, -0.09273193776607513, -0.033372294157743454, 0.004956172313541174, 0.00928971916437149, -0.015926647931337357, -0.031361233443021774, 0.0011938060633838177, -0.012660021893680096, -0.006282955873757601, 0.022588802501559258, 0.009055940434336662, 0.017710696905851364, -0.029535317793488503, -0.006337296217679977, 0.02179565653204918, -0.008275776170194149, -0.023073619231581688, 0.013771054334938526, -0.013039943762123585, -0.011460430920124054, -0.011831944808363914, 0.047545939683914185, -0.007660966366529465, 0.0022797593846917152, -0.019685326144099236, -0.0675845667719841, 0.01832624524831772, -0.03549674525856972, 0.03098945878446102, 0.006845553871244192, -0.004615164361894131, -0.004341963212937117, 0.0049800327979028225, -0.013682406395673752, -0.003762016072869301, 0.004446359816938639, -0.03395213931798935, 0.02496051974594593, 0.03311510011553764, 0.012308113276958466, 0.03626147285103798, 0.006360895000398159, -0.04681410267949104, 0.08677136152982712, -0.031209789216518402, -0.04738592356443405, -0.0035711524542421103, -0.05445787310600281, 0.00015163616626523435, 0.03769354522228241, 0.002578146755695343, -0.027457833290100098, 0.042548369616270065, 0.058049000799655914, 0.015970878303050995, 0.01476199645549059, 0.0045165130868554115, 0.055617306381464005, -0.020678630098700523, -0.01927162893116474, -0.09158079326152802, 0.029687117785215378, 0.054849911481142044, 0.013354881666600704, 0.0008107279427349567, -0.04090464860200882, -0.012843168340623379, -0.026206910610198975, -0.051491301506757736, -0.04807975888252258, 0.020945463329553604, -0.001619334681890905, 0.03772358596324921, 0.02931095100939274, -0.03935650736093521, 0.016755351796746254, 0.06510423123836517, -0.014508211053907871, -0.033872392028570175, -0.05891086161136627, 0.07020686566829681, 0.003582652425393462, 0.020243719220161438, -0.018108341842889786, -0.017187800258398056, 0.032406773418188095, 0.04810287058353424, 0.05567410588264465, 0.048009999096393585, -0.058685269206762314, 0.024692963808774948, 0.04215702414512634, -0.038730911910533905, -0.0016044866060838103, 0.03544124215841293, -0.007380989845842123, -0.05827154591679573, -0.004669189453125, 0.03477208688855171, 0.0014888502191752195, -0.03508434444665909, 0.05081304907798767, -0.0035297791473567486, -0.0379403755068779, -0.03261754289269447, 0.018192626535892487, -0.015601500868797302, -0.0025214161723852158, -0.04154627025127411, 0.02090119570493698, -0.036563750356435776, 0.05768568813800812, -0.02530735917389393, -0.004826898220926523, 0.06921834498643875, -0.017059972509741783, -0.00462337164208293, 0.03457188606262207, 0.08838014304637909, 0.08126118034124374, 0.038110073655843735, 0.008432839065790176, 0.06692863255739212, -0.013714121654629707, -0.03168553113937378, 0.00016188534209504724, -0.0435645654797554, -0.002284809947013855, -0.009528915397822857, -0.001080868998542428, 0.09153930842876434, -0.0148811349645257, 0.06570163369178772, -0.012942695990204811, -0.01701457053422928, 0.0014426126144826412, -0.017978396266698837, 0.03184763714671135, 0.05262176692485809, -0.007565893232822418, 0.03704915940761566, 0.001541212317533791, -0.012784725986421108, 0.023328056558966637, 0.0005369740538299084, -0.004704528022557497, 0.02794002927839756, -0.02898881956934929, -0.018525220453739166, 0.01417226530611515, 0.04989847168326378, 0.06424014270305634, -0.03989563137292862, -0.009280875325202942, 0.007285440806299448, 0.01970682665705681, -0.029012106359004974, 0.0014548029284924269, 0.026254020631313324, -0.04193960502743721, -0.008468221873044968, -0.022064799442887306, -0.029026290401816368, -0.005803493782877922, -0.0432141050696373, -0.019591758027672768, 0.004719410091638565, -0.007409834768623114, 0.002193901687860489, -0.006599406246095896, 0.0010378900915384293, -0.04537692666053772, -0.04325581341981888, -0.05780341848731041, -0.08796697854995728, -0.012466219253838062, 0.008258884772658348, 0.010585209354758263, -0.005295563954859972, -0.015080389566719532, -0.025252968072891235, 0.001947835087776184, 0.045492056757211685, -0.007597050629556179, -0.014901379123330116, 0.01966080255806446, 0.003415263257920742, -0.0010229861363768578, 0.017872340977191925, 0.02164667285978794, -0.005243534222245216, -0.001740815700031817, 0.015082580037415028, 0.022933756932616234, 0.05429288372397423, 0.002469270955771208, -0.004565123002976179, -0.06754206866025925, 0.0076208519749343395, 0.03133033215999603, -0.020518634468317032, -0.08421513438224792, 0.0036635417491197586, 0.06239423155784607, 0.00820121355354786, 0.03376065939664841, 0.01806543953716755, -0.023858701810240746, -0.022901978343725204, 0.004719890188425779, 0.03452228009700775, 0.018415741622447968, 0.034874334931373596, -0.014584427699446678, 0.0474826954305172, 0.0452180840075016, -0.016956860199570656, -0.01634482480585575, -0.017044413834810257, -0.018092792481184006, 0.023568835109472275, -0.0554446280002594, -0.021039338782429695, -0.06983523070812225, -0.05398495867848396, -0.01581726223230362, -0.011476393789052963, -0.03508642688393593, -0.004750604275614023, -0.009566143155097961, 0.06016797572374344, -0.036444373428821564, 0.038449726998806, -0.03327453136444092, 0.0512893870472908, -0.0427643246948719, -0.03878331929445267, -0.01749252714216709, 0.04187946394085884, -0.024828899651765823, 0.008184683509171009, 0.032697129994630814, -0.05863461643457413, 0.0012417837278917432, -0.029405435547232628, 0.01647988334298134, 0.03992696478962898, 0.005858423188328743, 0.03202512487769127 ]
[ -0.04122702777385712, 0.006505346391350031, -0.0596778467297554, -0.019162507727742195, 0.07109278440475464, -0.009037263691425323, 0.011378925293684006, 0.003553994232788682, 0.03319883719086647, 0.011120505630970001, 0.04423541575670242, -0.028613369911909103, 0.003547453321516514, 0.01843903586268425, 0.009431111626327038, -0.04320746660232544, -0.03748175501823425, -0.027036918327212334, -0.05196027830243111, 0.08335819095373154, -0.04059360548853874, -0.05622212216258049, 0.013649296015501022, -0.0503208301961422, 0.05403553694486618, -0.007151639088988304, 0.009014668874442577, 0.0018134948331862688, -0.022340988740324974, -0.23154915869235992, -0.06062055751681328, -0.03328806161880493, -0.029664404690265656, -0.007469199597835541, 0.010721013881266117, 0.018528494983911514, 0.07666248083114624, -0.07621987909078598, 0.03405541554093361, 0.04968423396348953, 0.037349727004766464, -0.01818280853331089, -0.046334512531757355, -0.0025648262817412615, -0.0025427849031984806, -0.0041551291942596436, -0.03669625520706177, -0.036487024277448654, 8.237658448706497e-7, 0.03353099524974823, -0.004108802415430546, 0.027036407962441444, -0.03626140579581261, 0.005585389211773872, -0.027147207409143448, 0.029510334134101868, 0.059870317578315735, 0.0650334432721138, -0.0020242698956280947, 0.04045052081346512, 0.026154590770602226, -0.0022188080474734306, -0.10773240029811859, 0.05279683694243431, 0.02590630203485489, 0.009704104624688625, -0.03174970671534538, -0.011270934715867043, -0.06531333923339844, 0.05092739313840866, 0.034062452614307404, -0.0016465989174321294, -0.028902936726808548, 0.10245826095342636, 0.026685751974582672, -0.0009935811394825578, -0.017271138727664948, -0.001255401992239058, 0.02801593579351902, -0.03125521168112755, -0.0473589189350605, 0.0003513861447572708, -0.024730825796723366, 0.01227397471666336, 0.012459587305784225, 0.06308575719594955, 0.004804630298167467, 0.0358428992331028, 0.005479406099766493, 0.015078186988830566, 0.031059270724654198, 0.0029621676076203585, 0.01781550794839859, 0.06297551840543747, -0.08262397348880768, -0.016769804060459137, 0.0010514651658013463, 0.0041353353299200535, 0.04443444684147835, 0.37075960636138916, 0.0073470170609653, 0.036492981016635895, 0.011993318796157837, 0.01910414919257164, -0.00629427982494235, -0.015027136541903019, -0.020254837349057198, -0.025089848786592484, 0.05377141386270523, -0.0017996457172557712, -0.001451157033443451, -0.052399978041648865, 0.03439055755734444, -0.10293906927108765, -0.02273779734969139, 0.004636713769286871, 0.06713370233774185, -0.04104785993695259, -0.0033330826554447412, -0.017105497419834137, 0.015816068276762962, -0.006642588414251804, 0.05023766681551933, 0.006821634713560343, 0.0397811084985733, 0.024416955187916756, -0.01541693415492773, 0.06562145054340363, 0.026885952800512314, 0.038904108107089996, 0.06612222641706467, -0.021242154762148857, -0.10151709616184235, 0.04478722810745239, 0.004547398537397385, -0.013393232598900795, 0.025875333696603775, -0.006625017616897821, -0.0003439616702962667, -0.03302903100848198, 0.0035200919955968857, -0.053871892392635345, 0.046598296612501144, 0.011049380525946617, -0.055079322308301926, 0.08363786339759827, -0.03758130967617035, -0.05225565657019615, -0.035447947680950165, -0.07937783002853394, -0.00036775614717043936, 0.023556889966130257, -0.045513078570365906, -0.048349786549806595, -0.01590867154300213, 0.02098819427192211, 0.0805547907948494, -0.009217175655066967, -0.10994720458984375, -0.01978313736617565, -0.052813995629549026, -0.032760847359895706, -0.050305888056755066, 0.11001186817884445, 0.028143903240561485, -0.051983196288347244, -0.0359368622303009, -0.03367423638701439, 0.0006184115190990269, -0.041574396193027496, 0.036890193819999695, 0.006975727155804634, -0.06346751004457474, -0.07255502790212631, 0.10282538831233978, 0.01712515763938427, -0.011472892947494984, -0.04606684297323227, 0.037987880408763885, 0.02823810651898384, -0.017875194549560547, 0.013453086838126183, -0.025986745953559875, 0.015146085061132908, -0.03294852748513222, -0.0320964977145195, -0.08609944581985474, 0.03176476061344147, -0.02730678580701351, -0.03364994004368782, -0.03563333675265312, -0.04415801167488098, -0.03382839635014534, 0.04678058624267578, -0.041351258754730225, 0.004025785718113184, 0.00970845203846693, -0.010765260085463524, -0.010329104959964752, -0.004568464122712612, 0.0776054859161377, 0.02496953494846821, 0.014711210504174232, 0.022420207038521767, -0.010565374977886677, -0.0279932152479887, 0.07755708694458008, -0.053451888263225555, 0.0662422776222229, 0.0442473478615284, -0.048387542366981506, 0.051016416400671005, -0.031195906922221184, 0.0013325766194611788, -0.010251043364405632, -0.05258556827902794, 0.011546691879630089, -0.010856364853680134, 0.0647842139005661, 0.040550220757722855, -0.057434868067502975, -0.03159244731068611, -0.009674862027168274, -0.34358781576156616, -0.011656427755951881, -0.041980963200330734, -0.019871992990374565, 0.022116033360362053, -0.025526955723762512, -0.010089906863868237, -0.017030080780386925, -0.006599667016416788, 0.004827545955777168, 0.07907908409833908, 0.016816960647702217, -0.024649757891893387, -0.060446228832006454, -0.01859319768846035, 0.025234440341591835, 0.012143048457801342, -0.008763765916228294, -0.023467669263482094, 0.03490626811981201, 0.006476738955825567, -0.08327913284301758, 0.0007276975084096193, -0.061055682599544525, 0.018802791833877563, 0.000724355282727629, 0.0781014934182167, -0.015594682656228542, 0.06276050955057144, -0.049927931278944016, 0.03143106400966644, 0.014935242012143135, -0.0132520142942667, -0.012391210533678532, -0.0074973441660404205, -0.061300233006477356, -0.026813074946403503, 0.039276864379644394, -0.029346061870455742, 0.03886079788208008, -0.00016981530643533915, -0.022276706993579865, -0.019253075122833252, -0.02918451651930809, 0.02594754286110401, -0.006172765977680683, -0.04037877917289734, -0.005106767639517784, 0.019040921702980995, 0.08137550950050354, -0.006013204343616962, 0.017153706401586533, -0.005758619401603937, 0.06650970131158829, 0.054952412843704224, -0.03488480672240257, -0.030942238867282867, 0.013280753046274185, 0.0404898002743721, 0.029577651992440224, -0.00016306985344272107, 0.03558887913823128, 0.05089733004570007, -0.07002095878124237, 0.011715332046151161, -0.011374344117939472, 0.026009030640125275, 0.002461478114128113, -0.00019791035447269678, -0.023465296253561974, -0.04594868794083595, 0.09075171500444412, -0.04218120872974396, 0.02364829182624817, -0.009717750363051891, 0.09765136241912842, -0.031630322337150574, 0.013846192508935928, 0.03195668384432793, 0.03240809217095375, 0.011536456644535065, -0.005600668489933014, 0.0814470648765564, -0.0039678774774074554, 0.005075139459222555, 0.08857610076665878, 0.01325786393135786, -0.03664424642920494, 0.03698596730828285, -0.03136736899614334, -0.028092073276638985, -0.055753614753484726, 0.0187185350805521, -0.02206263318657875, 0.06434404850006104, -0.0038603178691118956, -0.23273077607154846, 0.016110390424728394, 0.0005151750519871712, 0.036673206835985184, 0.026533106341958046, -0.02219354175031185, 0.006174664944410324, -0.04560036212205887, -0.013318351469933987, 0.009761050343513489, 0.04864521324634552, 0.036367081105709076, 0.025975963100790977, -0.031891848891973495, -0.002577730920165777, -0.015073233284056187, 0.06335578113794327, 0.02887480892241001, 0.0582769513130188, 0.002855844097211957, 0.04921263828873634, -0.0074895634315907955, 0.2243005335330963, 0.06999541819095612, 0.013475911691784859, 0.017739927396178246, -0.01529467198997736, 0.007368550170212984, 0.04774807021021843, 0.022090604528784752, -0.01844632998108864, 0.017506826668977737, 0.0478275790810585, 0.05287289246916771, 0.011756299994885921, -0.043062735348939896, -0.047110285609960556, 0.04318208619952202, 0.02667412906885147, -0.0630713626742363, -0.04638765752315521, 0.024571062996983528, -0.03945723921060562, 0.030286315828561783, 0.0641481950879097, -0.04466725140810013, -0.003370150923728943, -0.034082312136888504, -0.04704616591334343, -0.007409392390400171, -0.030863769352436066, -0.0044563887640833855, 0.006697638891637325, -0.034051425755023956, 0.017477041110396385, 0.0272697564214468, -0.013675758615136147, -0.045989759266376495, 0.004882912151515484, -0.0035974655766040087, 0.02677793987095356, -0.03704729676246643, 0.08101081103086472, 0.003994006663560867, -0.008088565431535244 ]
[ 0.03428782895207405, 0.08501420170068741, -0.02058335393667221, 0.012787872925400734, -0.024255095049738884, -0.02796594798564911, -0.03250408545136452, -0.004863413982093334, -0.02368372492492199, 0.011744032613933086, -0.019056184217333794, -0.035190582275390625, 0.06947062164545059, -0.02731407806277275, -0.018259478732943535, 0.021503200754523277, -0.021901363506913185, 0.021057892590761185, 0.04318799823522568, -0.07010401040315628, -0.05423698201775551, 0.010187292471528053, 0.051710259169340134, -0.03553839772939682, -0.005518956575542688, 0.025196190923452377, -0.01886986568570137, -0.007440783083438873, 0.007486066315323114, -0.10985753685235977, -0.056923046708106995, -0.022476745769381523, -0.004018876235932112, 0.022314205765724182, 0.0006242693052627146, 0.014413588680326939, 0.031054582446813583, 0.053887989372015, 0.00022502070351038128, 0.04064829275012016, 0.010430087335407734, 0.024754220619797707, -0.03578370064496994, 0.013816362246870995, 0.0003564759099390358, -0.03861432522535324, -0.017237495630979538, -0.03907536715269089, -0.012023849412798882, -0.030756212770938873, -0.02393350563943386, 0.004184603225439787, -0.009508038870990276, 0.00952734611928463, -0.00020095965010114014, 0.013405281119048595, -0.04958520457148552, -0.01486068032681942, 0.017341414466500282, 0.009860806167125702, 0.028066059574484825, -0.0459178164601326, -0.06206827610731125, -0.03662922605872154, 0.024345699697732925, -0.024589991196990013, -0.005344097968190908, 0.02154313214123249, 0.004996620584279299, -0.018390264362096786, -0.0517989918589592, 0.03624974563717842, -0.062093447893857956, 0.013925684615969658, -0.022838231176137924, 0.01116328313946724, 0.03139102831482887, -0.050339024513959885, 0.007062452379614115, 0.0065332804806530476, -0.020860696211457253, -0.006026488728821278, -0.05245552957057953, -0.031045686453580856, -0.025526966899633408, -0.00903428252786398, -0.024146664887666702, 0.03810499235987663, 0.02561029978096485, 0.06648393720388412, -0.0074143679812550545, 0.005141166038811207, -0.02444077655673027, 0.00448804534971714, -0.06879723072052002, 0.0157020166516304, 0.02154085598886013, -0.015654191374778748, 0.03702313452959061, 0.7921893000602722, 0.04436655342578888, -0.030865661799907684, -0.011950415559113026, 0.005168462172150612, -0.00803687609732151, 0.007236890494823456, 0.015449794009327888, 0.01449489314109087, -0.03907864913344383, -0.023894309997558594, -0.030052727088332176, 0.02603435330092907, 0.005374897737056017, -0.02517484314739704, -0.018548419699072838, 0.04984782263636589, 0.0032560396939516068, 0.002562192967161536, -0.024802783504128456, -0.004935520701110363, 0.029889298602938652, 0.004387895576655865, -0.016691988334059715, 0.03627171367406845, 0.012989099137485027, -0.14894060790538788, -0.031905896961688995, -6.945514901009029e-33, 0.06009788438677788, 0.013190548866987228, 0.08585590869188309, -0.019313376396894455, 0.007030898705124855, 0.028471307829022408, 0.0319211520254612, 0.015967221930623055, -0.012596292421221733, -0.06447558850049973, 0.014284378848969936, 0.012153211049735546, -0.020370185375213623, -0.028284382075071335, 0.0017783243674784899, 0.019259661436080933, 0.00685450155287981, -0.0018542208708822727, -0.016491319984197617, -0.014043816365301609, 0.02626098319888115, 0.04628869891166687, -0.016731509938836098, 0.027581075206398964, 0.02432447485625744, 0.01167214848101139, -0.03085249848663807, -0.000657060241792351, -0.011942858807742596, -0.05326837673783302, -0.07659578323364258, 0.025656800717115402, 0.013399917632341385, -0.00628564041107893, 0.02328168973326683, -0.0435718335211277, 0.001373490085825324, -0.0070451172068715096, -0.009415595792233944, -0.0616399347782135, -0.04850010946393013, 0.02102847211062908, 0.008412199094891548, -0.010810328647494316, -0.03291532024741173, -0.04485727846622467, -0.0075719584710896015, 0.011970765888690948, 0.012708554044365883, 0.032395150512456894, 0.042682114988565445, 0.025250039994716644, -0.007497758138924837, 0.009679200127720833, -0.04727458208799362, 0.012184138409793377, -0.005771406926214695, -0.02384496107697487, -0.027133511379361153, 0.019454315304756165, 0.009276081807911396, 0.023506635800004005, -0.018916055560112, 0.03798103705048561, 0.024837080389261246, 0.04350316524505615, 0.015878776088356972, -0.015437685884535313, -0.03640523925423622, 0.044296275824308395, -0.037433281540870667, 0.03134294971823692, 0.006986657157540321, -0.047338735312223434, 0.047858625650405884, -0.02307409979403019, -0.05169769749045372, -0.034260593354701996, 0.03062409721314907, 0.021270889788866043, -0.019714588299393654, -0.018597599118947983, -0.01823348179459572, -0.005655291490256786, -0.006775049492716789, 0.011534224264323711, 0.02231619693338871, 0.030984748154878616, 0.033037010580301285, -0.01523542683571577, 0.02656041644513607, 0.0064107743091881275, -0.016094045713543892, -0.0023754823487251997, -0.023811686784029007, 6.486931044866238e-33, 0.022060813382267952, 0.032160501927137375, -0.017143286764621735, 0.03203925862908363, 0.01575697585940361, 0.016491420567035675, 0.019812600687146187, 0.006373618729412556, 0.002855190308764577, 0.03588790073990822, 0.004238917026668787, -0.012812942266464233, 0.006459568161517382, 0.02034243382513523, 0.038779035210609436, 0.03315444663167, 0.009785694070160389, -0.01326706912368536, -0.01957453414797783, 0.018644092604517937, -0.0009322272380813956, 0.027661249041557312, 0.018076954409480095, 0.030556343495845795, 0.0013969851424917579, -0.012751033529639244, 0.013391861692070961, -0.016232013702392578, -0.017613457515835762, 0.008861576206982136, -0.015222313813865185, -0.028047246858477592, -0.0036282665096223354, -0.05588290095329285, -0.017531782388687134, 0.012351736426353455, 0.01682639867067337, 0.0079774409532547, 0.017172912135720253, 0.02125612646341324, 0.014127671718597412, 0.01269656140357256, -0.001955309184268117, 0.08037544786930084, 0.039603520184755325, 0.012765469960868359, 0.016184911131858826, 0.035434361547231674, 0.03201599419116974, 0.05385155603289604, 0.007898202165961266, 0.02692403644323349, -0.012031801044940948, 0.02040436491370201, 0.04540523141622543, -0.052266329526901245, -0.03186304122209549, 0.014920367859303951, 0.000370324298273772, -0.02177576906979084, -0.06571326404809952, -0.009535028599202633, -0.020044712349772453, 0.023899247869849205, 0.020909622311592102, 0.02339278534054756, -0.044858090579509735, 0.03865082934498787, -0.034262288361787796, -0.030007116496562958, 0.01200833823531866, -0.011567226611077785, -0.012970353476703167, -0.01822640188038349, -0.015592272393405437, -0.022373221814632416, -0.053189992904663086, -0.04098617285490036, -0.041468873620033264, 0.04124412313103676, 0.03149830549955368, -0.004864642862230539, 0.05555851757526398, 0.04191587492823601, -0.005159046500921249, 0.020931566134095192, 0.0018564248457551003, 0.006778769660741091, -0.0006346274167299271, 0.018307451158761978, 0.008936608210206032, -0.031495142728090286, -0.016448913142085075, 0.04611564055085182, -0.05429425090551376, -1.2121660120101296e-8, -0.03554954007267952, -0.007774899248033762, -0.03032340109348297, 0.0024311726447194815, 0.015450217761099339, 0.017221985384821892, -0.00048438305384479463, -0.0023233178071677685, 0.026217201724648476, 0.03070000186562538, -0.0034491103142499924, -0.012683121487498283, 0.024495061486959457, 0.0050238948315382, 0.005187667906284332, 0.0016538253985345364, -0.020449288189411163, -0.006954984739422798, 0.0280247014015913, 0.007256607990711927, -0.026958949863910675, 0.041167691349983215, -0.0733036994934082, 0.04101581498980522, 0.0348670519888401, -0.012002626433968544, 0.04171779751777649, -0.07631728798151016, 0.050912044942379, -0.010579054243862629, 0.0022232523187994957, -0.013478165492415428, 0.00601446907967329, 0.009528645314276218, -0.03800012543797493, -0.04619207978248596, 0.051578693091869354, 0.03896556422114372, 0.021660365164279938, 0.04490741342306137, -0.026821304112672806, -0.008717806078493595, -0.03868432343006134, -0.030318299308419228, -0.025260675698518753, -0.021460900083184242, -0.08332037180662155, -0.0019328630296513438, 0.05120888724923134, -0.04552716761827469, 0.02738369069993496, 0.002591176889836788, 0.015331561677157879, 0.02118888683617115, 0.06552430987358093, -0.0022291431669145823, 0.008401784114539623, 0.02955235168337822, 0.010330094024538994, -0.045816920697689056, 0.019545815885066986, -0.042573925107717514, -0.03366146981716156, 0.0029634968377649784 ]
neo4j-null-values-even-work
https://markhneedham.com/blog/2017/02/22/neo4j-null-values-even-work
false
2017-11-18 12:44:37
Kubernetes: Copy a dataset to a StatefulSet's PersistentVolume
[ "neo4j", "kubernetes" ]
[ "neo4j", "Kubernetes" ]
In this post we'll learn how to copy an existing dataset to the https://kubernetes.io/docs/concepts/storage/persistent-volumes/[PersistentVolumes] used by a Neo4j cluster running on https://kubernetes.io/[Kubernetes]. == Neo4j Clusters on Kubernetes This posts assumes that we're familiar with deploying Neo4j on Kubernetes. I wrote an article on the Neo4j blog https://neo4j.com/blog/kubernetes-deploy-neo4j-clusters/[explaining this in more detail]. The StatefulSet we create for our core servers require https://kubernetes.io/docs/concepts/storage/persistent-volumes/[persistent storage], achieved via the PersistentVolumeClaim (PVC) primitive. A Neo4j cluster containing 3 core servers would have the following PVCs: [source,bash] ---- $ kubectl get pvc NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS AGE datadir-neo-helm-neo4j-core-0 Bound pvc-043efa91-cc54-11e7-bfa5-080027ab9eac 10Gi RWO standard 45s datadir-neo-helm-neo4j-core-1 Bound pvc-1737755a-cc54-11e7-bfa5-080027ab9eac 10Gi RWO standard 13s datadir-neo-helm-neo4j-core-2 Bound pvc-18696bfd-cc54-11e7-bfa5-080027ab9eac 10Gi RWO standard 11s ---- Each of the PVCs has a corresponding PersistentVolume (PV) that satisifies it: [source,bash] ---- $ kubectl get pv NAME CAPACITY ACCESS MODES RECLAIM POLICY STATUS CLAIM STORAGECLASS REASON AGE pvc-043efa91-cc54-11e7-bfa5-080027ab9eac 10Gi RWO Delete Bound default/datadir-neo-helm-neo4j-core-0 standard 41m pvc-1737755a-cc54-11e7-bfa5-080027ab9eac 10Gi RWO Delete Bound default/datadir-neo-helm-neo4j-core-1 standard 40m pvc-18696bfd-cc54-11e7-bfa5-080027ab9eac 10Gi RWO Delete Bound default/datadir-neo-helm-neo4j-core-2 standard 40m ---- The PVCs and PVs are usually created at the same time that we deploy our StatefulSet. We need to intervene in that lifecycle so that our dataset is already in place before the StatefulSet is deployed. == Deploying an existing dataset We can do this by following these steps: * Create PVCs with the above names manually * Attach pods to those PVCs * Copy our dataset onto those pods * Delete the pods * Deploy our Neo4j cluster We can use the following script to create the PVCs and pods: +++<cite>+++pvs.sh+++</cite>+++ [source,shell] ---- #!/usr/bin/env bash set -exuo pipefail for i in $(seq 0 2); do cat <<EOF | kubectl apply -f - kind: PersistentVolumeClaim apiVersion: v1 metadata: name: datadir-neo-helm-neo4j-core-${i} labels: app: neo4j spec: accessModes: - ReadWriteOnce resources: requests: storage: 10Gi EOF cat <<EOF | kubectl apply -f - kind: Pod apiVersion: v1 metadata: name: neo4j-load-data-${i} labels: app: neo4j-loader spec: volumes: - name: datadir-neo4j-core-${i} persistentVolumeClaim: claimName: datadir-neo-helm-neo4j-core-${i} containers: - name: neo4j-load-data-${i} image: ubuntu volumeMounts: - name: datadir-neo4j-core-${i} mountPath: /data command: ["/bin/bash", "-ecx", "while :; do printf '.'; sleep 5 ; done"] EOF done; ---- Let's run that script to create our PVCs and pods: [source,bash] ---- $ ./pvs.sh ++ seq 0 2 + for i in $(seq 0 2) + cat + kubectl apply -f - persistentvolumeclaim "datadir-neo-helm-neo4j-core-0" configured + cat + kubectl apply -f - pod "neo4j-load-data-0" configured + for i in $(seq 0 2) + cat + kubectl apply -f - persistentvolumeclaim "datadir-neo-helm-neo4j-core-1" configured + cat + kubectl apply -f - pod "neo4j-load-data-1" configured + for i in $(seq 0 2) + cat + kubectl apply -f - persistentvolumeclaim "datadir-neo-helm-neo4j-core-2" configured + cat + kubectl apply -f - pod "neo4j-load-data-2" configured ---- Now we can copy our database onto the pods: [source,bash] ---- for i in $(seq 0 2); do kubectl cp graph.db.tar.gz neo4j-load-data-${i}:/data/ kubectl exec neo4j-load-data-${i} -- bash -c "mkdir -p /data/databases && tar -xf /data/graph.db.tar.gz -C /data/databases" done ---- +++<cite>+++graph.db.tar.gz+++</cite>+++ contains a backup from a local database I created: [source,bash] ---- $ tar -tvf graph.db.tar.gz drwxr-xr-x 0 markneedham staff 0 24 Jul 15:23 graph.db/ drwxr-xr-x 0 markneedham staff 0 24 Jul 15:23 graph.db/certificates/ drwxr-xr-x 0 markneedham staff 0 17 Feb 2017 graph.db/index/ drwxr-xr-x 0 markneedham staff 0 24 Jul 15:22 graph.db/logs/ -rw-r--r-- 0 markneedham staff 8192 24 Jul 15:23 graph.db/neostore -rw-r--r-- 0 markneedham staff 896 24 Jul 15:23 graph.db/neostore.counts.db.a -rw-r--r-- 0 markneedham staff 1344 24 Jul 15:23 graph.db/neostore.counts.db.b -rw-r--r-- 0 markneedham staff 9 24 Jul 15:23 graph.db/neostore.id -rw-r--r-- 0 markneedham staff 65536 24 Jul 15:23 graph.db/neostore.labelscanstore.db ... -rw------- 0 markneedham staff 1700 24 Jul 15:23 graph.db/certificates/neo4j.key ---- We'll run the following command to check the databases are in place: [source,bash] ---- $ kubectl exec neo4j-load-data-0 -- ls -lh /data/databases/ total 4.0K drwxr-xr-x 6 501 staff 4.0K Jul 24 14:23 graph.db $ kubectl exec neo4j-load-data-1 -- ls -lh /data/databases/ total 4.0K drwxr-xr-x 6 501 staff 4.0K Jul 24 14:23 graph.db $ kubectl exec neo4j-load-data-2 -- ls -lh /data/databases/ total 4.0K drwxr-xr-x 6 501 staff 4.0K Jul 24 14:23 graph.db ---- All good so far. The pods have done their job so we'll tear those down: [source,bash] ---- $ kubectl delete pods -l app=neo4j-loader pod "neo4j-load-data-0" deleted pod "neo4j-load-data-1" deleted pod "neo4j-load-data-2" deleted ---- We're now ready to deploy our Neo4j cluster. [source,bash] ---- helm install incubator/neo4j --name neo-helm --wait --set authEnabled=false ---- Finally we'll run a Cypher query to check that the Neo4j servers used the database that we uploaded: [source,bash] ---- $ kubectl exec neo-helm-neo4j-core-0 -- bin/cypher-shell "match (n) return count(*)" count(*) 32314 $ kubectl exec neo-helm-neo4j-core-1 -- bin/cypher-shell "match (n) return count(*)" count(*) 32314 $ kubectl exec neo-helm-neo4j-core-2 -- bin/cypher-shell "match (n) return count(*)" count(*) 32314 ---- Success! We could achieve similar results by using an https://kubernetes.io/docs/concepts/workloads/pods/init-containers/[init container] but I haven't had a chance to try out that approach yet. If you give it a try let me know in the comments and I'll add it to the post.
In this post we'll learn how to copy an existing dataset to the PersistentVolumes used by a Neo4j cluster running on Kubernetes.
null
[ -0.014441101811826229, -0.046206120401620865, -0.010571314953267574, 0.05880322679877281, 0.08804880082607269, 0.008035814389586449, 0.02393084391951561, 0.017614921554923058, -0.007975426502525806, -0.005558322183787823, -0.016289042308926582, -0.030969632789492607, -0.0421614944934845, 0.03944794461131096, -0.005204110872000456, 0.0422545000910759, 0.05755273625254631, -0.0014881649985909462, 0.05062789469957352, 0.03246522322297096, 0.007108286488801241, 0.02813980169594288, 0.02863614819943905, 0.033819664269685745, 0.03315453976392746, 0.008867197670042515, 0.0020619144197553396, 0.0268597099930048, -0.040103163570165634, -0.01841982640326023, 0.024648532271385193, 0.02886413410305977, 0.009338022209703922, 0.024592887610197067, 0.040222201496362686, 0.005176601465791464, -0.038218624889850616, -0.013210448436439037, 0.002135294722393155, 0.008008891716599464, -0.057949669659137726, 0.030847525224089622, 0.00452625285834074, 0.014533674344420433, -0.04887300357222557, 0.004017155151814222, -0.04007985442876816, -0.004055313300341368, 0.026016155257821083, -0.005344904027879238, -0.07810276746749878, -0.011324715800583363, -0.037327736616134644, -0.0030185524374246597, -0.00998009741306305, 0.03145229071378708, 0.004164627753198147, -0.06186378002166748, 0.02947371080517769, -0.030053449794650078, -0.01586209051311016, -0.035358160734176636, -0.013921255245804787, 0.02681630477309227, -0.007560390513390303, -0.03579359129071236, 0.022193526849150658, 0.042355552315711975, -0.04652399569749832, 0.005330010317265987, -0.0032405448146164417, 0.026245640590786934, 0.041739363223314285, -0.006110400892794132, -0.014185739681124687, -0.06357566267251968, -0.0006774272187612951, 0.03317888081073761, 0.04390538111329079, 0.04045151174068451, -0.01979222521185875, -0.012144377455115318, -0.010298621840775013, 0.01822449266910553, -0.009735419414937496, -0.05369719862937927, -0.05132235586643219, -0.016963021829724312, -0.05354196950793266, 0.063602015376091, 0.005910912062972784, -0.03755698725581169, 0.03677110746502876, 0.020860593765974045, -0.00538668455556035, 0.016782980412244797, -0.0031447666697204113, 0.021378517150878906, 0.037816669791936874, -0.023895028978586197, -0.03836046904325485, -0.0036613433621823788, -0.02913094311952591, 0.02975766360759735, -0.07472370564937592, -0.03259602189064026, -0.04644839093089104, -0.005541958846151829, -0.0150719890370965, -0.012509831227362156, -0.015648234635591507, 0.021011032164096832, -0.017217842862010002, 0.029668577015399933, -0.07457321882247925, 0.04738041013479233, 0.03196384757757187, -0.04536975175142288, 0.008237618021667004, 0.011232144199311733, 0.038065310567617416, 0.04861852526664734, -0.028519419953227043, 0.06022657826542854, -0.024638403207063675, 0.027390699833631516, -0.0022257810924202204, 0.034662578254938126, -0.026760363951325417, -0.06854555755853653, -0.025069545954465866, 0.046596359461545944, 0.01262327004224062, 0.005746578797698021, -0.01315540261566639, -0.031170420348644257, -0.033555131405591965, 0.013346174731850624, 0.07927969098091125, 0.0406830757856369, 0.005639747250825167, -0.060326848179101944, 0.01201066467911005, 0.024200214073061943, 0.05159759521484375, 0.02679026871919632, -0.018508780747652054, -0.0476640984416008, -0.03984057158231735, 0.01708512008190155, 0.010209258645772934, 0.0242420993745327, 0.04494784399867058, -0.03348075971007347, 0.025027360767126083, 0.10077361762523651, 0.046608809381723404, 0.017382966354489326, -0.0064994776621460915, 0.017690252512693405, 0.03459702804684639, 0.043501634150743484, 0.01904192753136158, 0.06092408671975136, 0.005481158848851919, -0.04315377026796341, 0.003755507292225957, 0.07087256014347076, 0.008683104068040848, 0.004040369763970375, -0.04739251360297203, -0.06345465034246445, 0.04057517275214195, -0.016729770228266716, -0.008095869794487953, 0.04403017461299896, 0.08199978619813919, 0.0283900685608387, 0.024282552301883698, -0.0015214838786050677, -0.07224652916193008, 0.05984809622168541, 0.0292420145124197, 0.00921658519655466, -0.00029903152608312666, 0.0080570662394166, 0.06527602672576904, 0.023994769901037216, 0.0363503098487854, 0.025480473414063454, -0.0803874284029007, -0.06696940213441849, 0.00031769523047842085, 0.0008218031725846231, 0.045764341950416565, -0.011552993208169937, 0.02791418507695198, 0.0525575615465641, -0.001167623559013009, 0.04728882014751434, 0.034704674035310745, -0.00033755507320165634, 0.01726144179701805, -0.07661657780408859, -0.05555877462029457, 0.07219809293746948, 0.005111164413392544, -0.025611475110054016, -0.037773892283439636, 0.0036954807583242655, -0.030165627598762512, 0.0024478300474584103, 0.011368509382009506, -0.04299020767211914, 0.0484272800385952, 0.010682901367545128, 0.028668466955423355, 0.004536034539341927, 0.0566348172724247, -0.04752729460597038, 0.05176139622926712, 0.008862863294780254, -0.020292554050683975, 0.02813762240111828, -0.009960094466805458, 0.0862756296992302, 0.06976326555013657, -0.026434987783432007, -0.04956614598631859, 0.06059490889310837, 0.023846367374062538, -0.023051466792821884, -0.015942580997943878, -0.0034675237257033587, 0.001832681824453175, 0.012872264720499516, -0.03314331918954849, -0.03495582565665245, 0.016177263110876083, -0.03770773857831955, -0.029506312683224678, 0.058460600674152374, 0.001109606702812016, 0.04697874188423157, 0.02205013856291771, -0.009323757141828537, 0.008298413828015327, -0.02529604732990265, -0.07731431722640991, -0.006341315805912018, -0.006098397076129913, -0.01948160119354725, 0.05788668990135193, -0.019576553255319595, 0.021124951541423798, -0.05596533790230751, -0.04150699824094772, 0.03791091591119766, 0.019422227516770363, 0.050728075206279755, -0.027953464537858963, 0.06548679620027542, -0.06273698806762695, -0.00006518213922390714, -0.010206620208919048, -0.04978102073073387, -0.028715869411826134, -0.015100333839654922, 0.01985979825258255, -0.020992347970604897, 0.005215308163315058, -0.022083163261413574, 0.03815703094005585, -0.018236715346574783, 0.026180626824498177, -0.01985829323530197, 0.04163450747728348, 0.010809621773660183, -0.002076143864542246, -0.033311255276203156, -0.02118227630853653, 0.06101291999220848, -0.039429113268852234, -0.003557703923434019, 0.006595156155526638, -0.07127144932746887, 0.04588531330227852, -0.09093854576349258, -0.02292698062956333, -0.022722892463207245, 0.02710895799100399, 0.010370202362537384, 0.01278612483292818, 0.01122293621301651, 0.05695969983935356, 0.04129420965909958, -0.013158697634935379, 0.013279511593282223, 0.0050981431268155575, 0.037250783294439316, -0.04248986020684242, 0.029681140556931496, 0.03057766519486904, -0.012601485475897789, -0.020706452429294586, -0.061992060393095016, 0.010935809463262558, -0.00560495862737298, -0.28606167435646057, 0.03574873507022858, 0.00009887602209346369, -0.04790661111474037, 0.010115087032318115, -0.009796478785574436, -0.010119550861418247, -0.042048726230859756, -0.022951556369662285, -0.002839247230440378, -0.019687717780470848, -0.012660467997193336, 0.015290852636098862, 0.044558085501194, 0.015115057118237019, 0.027247924357652664, 0.04444403573870659, -0.03389562666416168, -0.019316107034683228, -0.00302220624871552, -0.024052640423178673, -0.05675901472568512, 0.004920437000691891, 0.00045074024819768965, 0.011587184853851795, 0.03492000699043274, -0.05652574077248573, 0.04287462681531906, -0.07121678441762924, -0.032791610807180405, -0.024379972368478775, -0.02357015572488308, 0.009441016241908073, 0.009859254583716393, -0.01823645643889904, -0.024125469848513603, 0.022341445088386536, 0.007422961760312319, 0.02002822980284691, 0.006590834353119135, -0.03156440705060959, -0.057996638119220734, -0.005153947975486517, 0.022712742909789085, 0.07607090473175049, -0.0027069300413131714, -0.06748785823583603, -0.008599823340773582, -0.03936126455664635, 0.06298913806676865, -0.0029903927352279425, -0.04045437276363373, -0.010427365079522133, 0.02645246312022209, -0.03024783916771412, -0.01665368862450123, -0.016217628493905067, -0.016372136771678925, -0.042403243482112885, -0.01112830825150013, -0.029826128855347633, -0.03497936204075813, -0.009076599031686783, -0.06726805865764618, -0.022374046966433525, -0.0541321262717247, -0.09957955777645111, -0.022458920255303383, 0.05657167732715607, 0.01929461769759655, -0.045276787132024765, 0.03617432340979576, -0.03768181428313255, -0.1005992591381073, -0.03425248712301254, -0.04808809235692024, -0.023638032376766205, 0.010198922827839851, -0.007479872554540634, 0.05421745404601097, -0.060293640941381454, -0.055654920637607574, -0.0040270667523145676, 0.027198510244488716, 0.02040494792163372, -0.013376123271882534, 0.0398988239467144, -0.02160676196217537, 0.00563800847157836, 0.018956677988171577, 0.04351305961608887, -0.01431895699352026, -0.019143983721733093, -0.0268153827637434, 0.0014292480191215873, 0.03036867268383503, -0.019086789339780807, 0.0058740791864693165, -0.00025983795057982206, 0.06175830960273743, 0.021190855652093887, -0.03449038788676262, 0.012963471934199333, -0.029718218371272087, -0.048913851380348206, 0.0033541254233568907, -0.046004269272089005, 0.0121728191152215, 0.04415679723024368, 0.018500935286283493, 0.01601114682853222, -0.01976318098604679, 0.04195130616426468, -0.06303007900714874, -0.00675318855792284, -0.01896098628640175, 0.006578860804438591, 0.027294578030705452, 0.06274731457233429, -0.031474582850933075, -0.05129212886095047, 0.04094387963414192, 0.02994382008910179, -0.007717960514128208, -0.049458008259534836, -0.008122202008962631, -0.005247585009783506, -0.010376418009400368, 0.003293742425739765, 0.025115597993135452, -0.015018578618764877, 0.03237023204565048, 0.05043434351682663, -0.04169921204447746, 0.03890426456928253, -0.006451989524066448, -0.012793007306754589, -0.039492614567279816, 0.006290044169872999, 0.0029301305767148733, -0.03541332483291626, -0.01858515292406082, 0.018065012991428375, 0.042058397084474564, 0.03628406673669815, 0.019226431846618652, 0.04132809117436409, -0.007829573936760426, 0.03432872146368027, -0.025649966672062874, 0.010178016498684883, -0.0402304083108902, -0.0015509697841480374, -0.04019530862569809, -0.01808716170489788, -0.008547562174499035, 0.04173727706074715, -0.024828683584928513, -0.018874192610383034, -0.026478668674826622, 0.031119104474782944, -0.06080605834722519, 0.007100705523043871, -0.015337910503149033, 0.015210519544780254, 0.06462676078081131, -0.02454114519059658, -0.00761253759264946, -0.0011744683142751455, -0.010840906761586666, 0.009591366164386272, -0.0064422194845974445, -0.029422808438539505, 0.0025324267335236073, 0.010248566046357155, 0.004204217344522476, 0.013784785754978657, 0.05123481899499893, 0.04446978494524956, 0.01654006727039814, 0.009339660406112671, 0.0037989686243236065, 0.019893722608685493, -0.02240416221320629, 0.04246814548969269, 0.049340784549713135, -0.028952131047844887, 0.013822679407894611, -0.007860999554395676, 0.00632593035697937, -0.010827019810676575, -0.007882476784288883, -0.022133514285087585, 0.03780573979020119, -0.001107507385313511, -0.06426934152841568, 0.053322117775678635, 0.009760304354131222, -0.001194703159853816, 0.04165123403072357, -0.007498886436223984, 0.019788015633821487, -0.007332291454076767, 0.04677220806479454, 0.04908065125346184, -0.04417131841182709, 0.004286932293325663, 0.008411857299506664, 0.012255150824785233, -0.011283655650913715, 0.009044375270605087, -0.04692895710468292, -0.03743064031004906, 0.0035940909292548895, 0.048585016280412674, -0.08183982223272324, -0.06496234983205795, -0.020327165722846985, 0.0017617669655010104, -0.014220473356544971, 0.027386285364627838, 0.02363310381770134, -0.0044939457438886166, -0.03152161464095116, -0.02575475350022316, 0.03624124452471733, -0.01803273893892765, 0.007337294053286314, -0.009187057614326477, -0.01936686597764492, 0.00042718584882095456, -0.042325448244810104, 0.026883158832788467, 0.013226131908595562, -0.039949674159288406, 0.014929124154150486, -0.000815637584310025, 0.022597700357437134, -0.025276662781834602, 0.053410377353429794, -0.0039881025440990925, 0.013540335930883884, -0.014471187256276608, -0.010813870467245579, -0.04383321851491928, -0.020784353837370872, 0.0060316286981105804, 0.013022182509303093, 0.001940541435033083, 0.013786896131932735, -0.007222319487482309, 0.006124138832092285, -0.016220679506659508, -0.05021581053733826, 0.0684104934334755, -0.06516268849372864, -0.010307087562978268, -0.03525704890489578, -0.04856039583683014, 0.01678752340376377, 0.025317518040537834, -0.0025749364867806435, -0.0257525946944952, 0.03668152168393135, 0.036458760499954224, 0.00366530055180192, 0.01529600378125906, -0.02132059447467327, 0.014588157646358013, -0.046048544347286224, -0.021631788462400436, -0.07644113153219223, 0.007394999265670776, 0.023481646552681923, 0.008140545338392258, -0.0036655538715422153, 0.026619145646691322, -0.04561435803771019, 0.006945956498384476, -0.07040100544691086, -0.02763548493385315, 0.04047851264476776, -0.048342376947402954, 0.0007447391981258988, 0.006934829521924257, -0.04209427908062935, 0.015438894741237164, 0.03435621038079262, -0.042960092425346375, -0.016487834975123405, 0.0005131312645971775, 0.049385540187358856, -0.027093686163425446, 0.02265188656747341, -0.03128791227936745, -0.009807934053242207, 0.08805064857006073, 0.021845893934369087, 0.04409787431359291, 0.042628951370716095, -0.003403319511562586, 0.049532290548086166, 0.016389453783631325, -0.047836676239967346, 0.020721638575196266, 0.010017117485404015, -0.023013360798358917, -0.055206771939992905, 0.02979988045990467, 0.0067306989803910255, -0.021416248753666878, -0.016988983377814293, 0.047241002321243286, 0.018793625757098198, -0.029394367709755898, -0.0801740288734436, 0.04454498738050461, -0.03272799029946327, -0.024758724495768547, -0.0356665700674057, 0.01385436113923788, -0.051871251314878464, 0.0561600960791111, 0.0015053527895361185, 0.015311537310481071, 0.06059833988547325, -0.01345420628786087, -0.03554103150963783, 0.04168111830949783, 0.09883628785610199, 0.0914006233215332, 0.025880461558699608, 0.014555316418409348, 0.061266783624887466, -0.03162499517202377, -0.020702974870800972, 0.0070412419736385345, -0.009647520259022713, -0.016929149627685547, 0.009393823333084583, -0.008469224907457829, 0.05854359641671181, 0.007109029218554497, 0.06218341737985611, -0.03060934878885746, 0.023192860186100006, -0.02418230101466179, -0.0007035883609205484, 0.04305806756019592, 0.02658350020647049, 0.01591840386390686, 0.027340415865182877, -0.026711460202932358, -0.029569441452622414, -0.00525737926363945, 0.011332803405821323, -0.026155276224017143, -0.0020528717432171106, -0.02269069291651249, -0.010231363587081432, 0.008839834481477737, -0.01945941336452961, 0.06705368310213089, -0.007779052946716547, 0.005650760605931282, -0.008055436424911022, 0.031751926988363266, -0.009818143211305141, 0.03137097880244255, -0.03147729113698006, -0.0020120064727962017, -0.015308236703276634, -0.03268778324127197, -0.01023678295314312, -0.024980131536722183, -0.04381681606173515, -0.008400367572903633, -0.009075263515114784, -0.004176431801170111, -0.00663037458434701, -0.0020560859702527523, -0.045231882482767105, -0.018648330122232437, -0.03334745392203331, -0.05201456695795059, -0.057853907346725464, 0.02932419441640377, 0.015620436519384384, 0.01608330011367798, -0.01175860594958067, -0.010078014805912971, -0.01610098034143448, -0.02357369102537632, 0.060377296060323715, -0.03721383213996887, -0.00031906692311167717, 0.019913794472813606, 0.030407564714550972, 0.027171676978468895, 0.03795916959643364, 0.0700565055012703, 0.008426818996667862, 0.00037680016248486936, -0.0015835855156183243, -0.00981365330517292, 0.06480955332517624, 0.02130143530666828, 0.0033857254311442375, -0.06917285174131393, 0.009964133612811565, 0.03984967991709709, 0.0055141327902674675, -0.08057306706905365, 0.007876851595938206, 0.04774673283100128, -0.0025281233247369528, 0.04144417122006416, -0.015000813640654087, -0.01395863015204668, -0.020811516791582108, -0.011600660160183907, -0.016443448141217232, -0.004473078064620495, 0.030836941674351692, 0.0010955953039228916, 0.07456150650978088, 0.07808146625757217, -0.028067421168088913, -0.02959628216922283, -0.012815567664802074, -0.026112953200936317, 0.026704216375947, -0.07588738203048706, -0.02597145549952984, -0.056817229837179184, -0.09569738805294037, -0.05786711722612381, 0.01676042750477791, -0.023125892505049706, -0.048797570168972015, 0.014290076680481434, 0.0016050228150561452, -0.019708167761564255, 0.008568888530135155, -0.02462802082300186, 0.00827751774340868, -0.024142542853951454, -0.0039058008696883917, -0.018709786236286163, 0.01968572475016117, -0.005169758107513189, -0.01740470714867115, 0.05274786800146103, -0.04912330582737923, -0.007605715189129114, -0.021187426522374153, 0.04524937644600868, 0.06528885662555695, 0.027536623179912567, -0.002353547140955925 ]
[ -0.08105430006980896, -0.022229254245758057, -0.021031631156802177, -0.03771737217903137, 0.06464816629886627, -0.003984904382377863, -0.02908506989479065, -0.01263353694230318, -0.010328116826713085, -0.0063690622337162495, 0.019184472039341927, -0.06647937744855881, -0.014831659384071827, 0.0036265531089156866, 0.09090624004602432, 0.0038537909276783466, -0.026866458356380463, -0.048025283962488174, -0.01846393756568432, 0.04249336197972298, 0.0017403013771399856, -0.06288933753967285, -0.01670864224433899, -0.0021052153315395117, 0.010985560715198517, 0.03716506436467171, 0.03621438518166542, -0.03411627933382988, -0.014029529877007008, -0.21448811888694763, -0.0006020622095093131, -0.020377980545163155, 0.017622891813516617, -0.02000580169260502, 0.004776703659445047, 0.03675108775496483, 0.051184624433517456, 0.009803460910916328, -0.0070116231217980385, 0.05956370010972023, 0.010756099596619606, 0.02098914608359337, -0.060376230627298355, -0.01191647071391344, 0.0288214311003685, -0.0027415049262344837, -0.004032853990793228, -0.027512047439813614, 0.010479728691279888, 0.005728709977120161, -0.01013352070003748, 0.0033979942090809345, -0.014889196492731571, 0.00043098159949295223, -0.010990483686327934, 0.010225698351860046, 0.04991799592971802, 0.07931683957576752, 0.0610809288918972, 0.0044748722575604916, 0.02888711355626583, -0.013253111392259598, -0.133748397231102, 0.07151451706886292, 0.021752025932073593, 0.0473136231303215, -0.027477772906422615, -0.027011225000023842, -0.02073189616203308, 0.06054267659783363, 0.030810553580522537, 0.031804896891117096, -0.047475408762693405, 0.07056065648794174, -0.024934442713856697, 0.028838584199547768, 0.007259428035467863, 0.044768739491701126, 0.010392643511295319, -0.010908292606472969, -0.052007485181093216, 0.01727757230401039, -0.03261740878224373, -0.011156586930155754, -0.06394517421722412, 0.002720477757975459, -0.018856629729270935, 0.025742627680301666, -0.022310709580779076, 0.0655333623290062, -0.00213827146217227, 0.06116141751408577, 0.08086871355772018, 0.03566908836364746, -0.10227034986019135, -0.0023258053697645664, 0.010860149748623371, 0.04912427067756653, 0.021922696381807327, 0.37663939595222473, 0.020339807495474815, 0.0028749052435159683, -0.008429253473877907, 0.04733986780047417, -0.004605856724083424, -0.027135254815220833, -0.012432647868990898, -0.04780172184109688, 0.040197111666202545, 0.01088983379304409, -0.010062849149107933, -0.01735704205930233, 0.023617003113031387, -0.08439090102910995, -0.001548797357827425, 0.0062650409527122974, 0.03859036788344383, 0.03893311694264412, -0.03933998942375183, 0.019197890534996986, -0.028201352804899216, -0.007546310778707266, 0.06861221045255661, -0.00866029690951109, 0.06025176867842674, 0.02494300901889801, 0.004381697624921799, 0.013235700316727161, 0.03889137879014015, 0.019788524135947227, 0.013322627171874046, 0.021430591121315956, -0.07440029829740524, -0.01655830815434456, 0.020030027255415916, 0.005014847964048386, 0.035917606204748154, -0.07512181997299194, -0.03843243420124054, 0.0021696623880416155, 0.007806846871972084, -0.0024930506478995085, 0.04178139567375183, -0.025256875902414322, -0.04162042587995529, 0.1251724511384964, -0.01040259376168251, -0.019587168470025063, -0.031031409278512, -0.03309256583452225, -0.004610325209796429, 0.05554354190826416, 0.009314877912402153, -0.0723169595003128, 0.0074729579500854015, 0.017010077834129333, 0.07355515658855438, -0.01439745631068945, -0.09809988737106323, -0.012918188236653805, 0.005964421201497316, -0.013695207424461842, -0.025036467239260674, 0.0842885673046112, 0.039959896355867386, -0.10265437513589859, -0.0420369990170002, 0.03303050622344017, 0.0509941391646862, -0.05192285031080246, -0.009427267126739025, 0.034063320606946945, -0.019315894693136215, -0.03984792158007622, 0.055596426129341125, -0.021183591336011887, -0.020081520080566406, -0.018588237464427948, 0.01957087218761444, 0.0016723029548302293, -0.06152372062206268, -0.0278336051851511, -0.04868871718645096, -0.006077277474105358, -0.04705400764942169, -0.09513732045888901, -0.07631512731313705, 0.013747312128543854, -0.028660597279667854, -0.03136890009045601, -0.021099025383591652, 0.019786594435572624, -0.045766137540340424, 0.1099473387002945, -0.02648107521235943, -0.033190060406923294, -0.01953800953924656, 0.011445577256381512, -0.0080740200355649, -0.06125769019126892, 0.006829086225479841, 0.04230356216430664, -0.020313942804932594, 0.04084627702832222, -0.07239802181720734, 0.023400332778692245, 0.0592622272670269, -0.008487768471240997, 0.05528297647833824, 0.027403276413679123, -0.0431329645216465, 0.0026388003025203943, -0.009909631684422493, 0.03198929503560066, -0.04842469096183777, -0.007632766384631395, -0.009293779730796814, -0.008285409770905972, -0.00782546866685152, 0.01590924896299839, 0.00018001461285166442, -0.002825832227244973, -0.015281908214092255, -0.35346052050590515, -0.0131909204646945, -0.020842410624027252, -0.019163940101861954, 0.04283777251839638, -0.014270244166254997, 0.0547817088663578, -0.00208942755125463, 0.016313249245285988, -0.03199225291609764, 0.07924478501081467, -0.009974983520805836, -0.01304762251675129, -0.0706278383731842, 0.011840198189020157, 0.06181565299630165, 0.009423980489373207, -0.029341621324419975, -0.039032574743032455, -0.007760039530694485, 0.015643417835235596, -0.05740039423108101, -0.025563931092619896, -0.04319845139980316, 0.02653556689620018, -0.01425931416451931, 0.10275744646787643, -0.043550290167331696, 0.03672891855239868, -0.03462986275553703, 0.024833936244249344, 0.0163769219070673, -0.01731715351343155, -0.10422178357839584, 0.0016089528799057007, -0.02402590587735176, 0.021435493603348732, 0.03774021938443184, 0.01876576989889145, -0.001837335410527885, -0.039499297738075256, 0.016060685738921165, -0.06480767577886581, -0.06695567071437836, 0.018626736477017403, 0.0019154835026711226, -0.045228343456983566, 0.026794830337166786, -0.024872571229934692, 0.012892618775367737, 0.004230883438140154, 0.015865514054894447, -0.015957621857523918, -0.001157983555458486, 0.03727308660745621, -0.028417205438017845, -0.07619242370128632, -0.03070005215704441, 0.026116440072655678, 0.040799982845783234, 0.023835286498069763, 0.05358758196234703, 0.0018882633885368705, -0.09378554672002792, 0.03441067412495613, 0.007502441294491291, -0.022294476628303528, 0.015459250658750534, 0.032279081642627716, -0.08883041888475418, -0.010555772110819817, 0.09558656066656113, -0.015148664824664593, 0.041018471121788025, 0.047780413180589676, 0.0246859323233366, -0.030862081795930862, 0.023210983723402023, 0.039016395807266235, 0.007388005964457989, 0.036440569907426834, -0.03283613920211792, 0.06652669608592987, -0.014970664866268635, 0.004447184968739748, 0.06598050147294998, 0.03604800999164581, 0.002562278648838401, 0.05341652035713196, 0.01295610424131155, -0.014234481379389763, 0.0027168840169906616, -0.024524686858057976, -0.09105731546878815, 0.07286769896745682, -0.00855847168713808, -0.2394275963306427, 0.04116275534033775, 0.04794164001941681, 0.056385062634944916, 0.012830170802772045, 0.0035183753352612257, 0.03801983594894409, -0.03640427067875862, 0.00840162206441164, 0.007042362354695797, 0.0011028802255168557, 0.07835184782743454, -0.009216745384037495, 0.0022992503363639116, -0.00898768287152052, 0.02787860296666622, 0.053740426898002625, 0.005562311969697475, 0.021557975560426712, -0.043811239302158356, 0.04140455648303032, -0.020807480439543724, 0.16689719259738922, 0.04017147049307823, -0.016051100566983223, 0.03139379993081093, -0.04436212405562401, 0.04345566779375076, 0.03620946407318115, 0.017649920657277107, -0.029207175597548485, 0.028824590146541595, 0.015498079359531403, 0.019444111734628677, 0.013968847692012787, -0.038074757903814316, 0.0014566443860530853, 0.028355427086353302, 0.02582860365509987, -0.009743700735270977, 0.012402677908539772, 0.023227326571941376, -0.01823018305003643, 0.04827771708369255, 0.08941533416509628, -0.04808114841580391, 0.02094624750316143, -0.040204647928476334, -0.06519193202257156, -0.04144167900085449, -0.03175470232963562, -0.051153406500816345, -0.013502951711416245, -0.05570904165506363, 0.017747018486261368, 0.07044950127601624, 0.03455906733870506, -0.06353351473808289, 0.011314963921904564, -0.003530626418069005, -0.0006261226953938603, -0.03779157996177673, 0.08636737614870071, -0.03627173602581024, 0.02002963237464428 ]
[ 0.04047685116529465, 0.034085121005773544, -0.004251009784638882, 0.020021039992570877, -0.01668105274438858, 0.014249674044549465, -0.017750579863786697, -0.006169416941702366, 0.034612253308296204, 0.0025760172866284847, -0.027457324787974358, 0.009625669568777084, 0.05566351115703583, 0.013968045823276043, -0.03871503099799156, 0.006095059681683779, 0.0032200380228459835, 0.012337258085608482, 0.012555240653455257, -0.006535004824399948, -0.03519655391573906, 0.016181638464331627, 0.032196059823036194, -0.04052338749170303, 0.007829323410987854, 0.047787658870220184, -0.020723411813378334, -0.02733587846159935, 0.032500047236680984, -0.12459205090999603, -0.01131322793662548, -0.017209123820066452, -0.02713922969996929, 0.0035532789770513773, 0.043216731399297714, 0.05167276784777641, 0.01529020443558693, 0.020866870880126953, -0.04229702427983284, 0.020251668989658356, 0.06379016488790512, -0.047941818833351135, -0.011956115253269672, -0.016032086685299873, -0.017884450033307076, 0.014466335996985435, -0.06693006306886673, -0.06979749351739883, 0.04300496354699135, -0.028209345415234566, -0.020031163468956947, -0.035196200013160706, 0.024979202076792717, 0.0422152541577816, 0.006902203429490328, 0.021624790504574776, -0.017299221828579903, 0.01611614041030407, 0.07419911026954651, -0.031354568898677826, 0.019377630203962326, 0.028608961030840874, -0.021404186263680458, -0.020092718303203583, -0.033987343311309814, 0.014796782284975052, 0.04606526717543602, 0.032538920640945435, -0.009113449603319168, 0.00014356785686686635, 0.04286074638366699, 0.11846263706684113, -0.0852050930261612, -0.018205992877483368, -0.035777539014816284, 0.01076788641512394, 0.040806643664836884, -0.02211817353963852, 0.008590487763285637, 0.01224606391042471, -0.03835412114858627, 0.03530846908688545, -0.034932807087898254, -0.03259310871362686, -0.040549151599407196, 0.017210975289344788, -0.04782813787460327, 0.0018346535507589579, 0.004813263658434153, -0.016106437891721725, -0.0045501538552343845, 0.012759367004036903, -0.028062954545021057, -0.06741902977228165, -0.06747877597808838, -0.05341198667883873, 0.009875604882836342, -0.020668840035796165, 0.05463273823261261, 0.7700172662734985, 0.0307328924536705, -0.014271512627601624, -0.028702937066555023, 0.012829647399485111, -0.005810637958347797, -0.02834000065922737, 0.036919966340065, 0.017894312739372253, -0.02454967238008976, 0.06591165065765381, -0.040233150124549866, 0.036256302148103714, 0.019258173182606697, 0.03818072751164436, 0.0323568657040596, 0.04250422865152359, 0.00931184645742178, 0.026906784623861313, -0.023771580308675766, 0.029439976438879967, 0.030739877372980118, -0.06741490215063095, -0.0015202300855889916, 0.021523907780647278, 0.004043908324092627, -0.13869191706180573, -0.010236487723886967, -6.335907938776406e-33, 0.05110591650009155, -0.07120461761951447, 0.08568371087312698, 0.018382549285888672, 0.008715829811990261, -0.020259713754057884, 0.0036015051882714033, -0.04101261869072914, -0.022600552067160606, -0.07095132023096085, -0.027461595833301544, 0.03028528019785881, 0.0102101294323802, -0.0317523218691349, 0.0045548672787845135, -0.0350092276930809, 0.017460837960243225, 0.032477207481861115, 0.015971392393112183, -0.04673239216208458, 0.009466588497161865, 0.03846647962927818, -0.012778043746948242, 0.01189640536904335, 0.005496550351381302, -0.029274730011820793, 0.04314325004816055, -0.015193117782473564, -0.004914742894470692, -0.03495744615793228, -0.077289879322052, -0.009511259384453297, 0.018802417442202568, -0.028598546981811523, -0.04840703681111336, -0.03372207283973694, -0.03733772411942482, 0.00868272315710783, -0.06706155836582184, -0.08175883442163467, -0.0031733892392367125, -0.03459220379590988, 0.005771183408796787, -0.031998150050640106, -0.03786873444914818, -0.015739792957901955, 0.022848475724458694, 0.016486600041389465, -0.01792534440755844, 0.025825461372733116, 0.0036755793262273073, 0.039649978280067444, -0.01193327084183693, -0.02419278211891651, -0.02311040088534355, 0.024016188457608223, 0.042042993009090424, -0.05241556465625763, -0.031581226736307144, 0.0033138939179480076, 0.02502337098121643, -0.006675048265606165, -0.023555051535367966, 0.013088006526231766, 0.02217099256813526, -0.0028091040439903736, -0.024871906265616417, 0.008780071511864662, -0.004689287394285202, 0.03434811159968376, -0.028411109000444412, 0.007231148425489664, -0.036339618265628815, -0.04426248371601105, 0.03021649830043316, -0.05969056114554405, 0.005498966202139854, -0.03135961294174194, -0.02720894291996956, 0.02560085617005825, -0.01969083584845066, -0.037374116480350494, -0.043831054121255875, 0.03009895235300064, 0.007925720885396004, -0.008419875055551529, 0.043222278356552124, 0.0050282105803489685, -0.017727890983223915, 0.009303368628025055, 0.03641175851225853, -0.020324217155575752, -0.009785760194063187, -0.023064304143190384, -0.04329557344317436, 6.055981591543341e-33, 0.008902144618332386, 0.016304127871990204, -0.025727665051817894, 0.005364940036088228, 0.024147212505340576, 0.030586209148168564, 0.00018128598458133638, 0.03962093964219093, -0.029595399275422096, -0.0004137767245993018, -0.0389864481985569, 0.0030818383675068617, -0.06575373560190201, 0.01200843881815672, 0.05020293965935707, 0.010157600045204163, 0.0038065407425165176, -0.04824676364660263, 0.01210781093686819, 0.034232400357723236, 0.0053985388949513435, -0.0017372488509863615, 0.0005714731523767114, 0.022080738097429276, 0.01758625917136669, 0.02088797837495804, -0.01673854887485504, 0.04185440018773079, -0.04918648675084114, -0.007195787038654089, 0.00776008702814579, -0.06020812690258026, -0.03197518736124039, 0.016557732596993446, 0.031451232731342316, -0.013465778902173042, 0.024815179407596588, 0.013578163459897041, -0.03143930062651634, 0.012060419656336308, -0.01930123008787632, 0.006483401171863079, -0.055487945675849915, 0.04625525325536728, -0.010311857797205448, 0.0048466338776052, 0.04542217031121254, 0.0008330649579875171, 0.023619109764695168, 0.004377785138785839, -0.026568643748760223, -0.0010851927800104022, -0.02127857133746147, 0.04365016520023346, 0.014468295499682426, -0.026356354355812073, -0.038881853222846985, 0.05631200224161148, -0.016782887279987335, -0.019853968173265457, 0.00823443103581667, -0.015097429044544697, 0.02833583950996399, 0.01350508164614439, -0.03443163260817528, -0.04819183051586151, 0.020810816437005997, 0.011632440611720085, -0.017212526872754097, 0.01981598138809204, -0.007187445182353258, 0.011850648559629917, 0.012977825477719307, 0.05092023313045502, 0.023791132494807243, -0.05984330177307129, -0.021790308877825737, -0.01366595271974802, -0.012124385684728622, 0.01962874084711075, 0.0052726734429597855, 0.03656456992030144, -0.03731289878487587, -0.029368409886956215, 0.030058039352297783, 0.00016988992865663022, 0.014631115831434727, 0.026481879875063896, 0.017170293256640434, 0.017518706619739532, 0.004301088862121105, -0.007295930292457342, -0.03244347497820854, 0.047073621302843094, -0.05559011176228523, -1.1769708763154085e-8, 0.038878004997968674, 0.012087052688002586, -0.008092530071735382, 0.03697792813181877, -0.030800404027104378, -0.038437265902757645, 0.01612306945025921, 0.014311033301055431, -0.032148685306310654, 0.013818314298987389, 0.036143455654382706, -0.0044457074254751205, 0.022010575979948044, -0.034423828125, -0.01480407826602459, 0.015661532059311867, -0.0020876475609838963, -0.01413972768932581, 0.04351013898849487, 0.010102041065692902, 0.005155334249138832, 0.03198294714093208, -0.01476532593369484, 0.013283283449709415, 0.009594925679266453, 0.03516634181141853, 0.04864698648452759, -0.07060625404119492, 0.018618915230035782, -0.009390614926815033, 0.0005425226991064847, -0.010114097036421299, -0.04912169650197029, 0.02168792486190796, -0.0050035445019602776, 0.026270689442753792, 0.02027467079460621, 0.04241754859685898, 0.048667870461940765, 0.03914094343781471, -0.025722939521074295, 0.018641551956534386, -0.03810485452413559, -0.01985016278922558, -0.0021294436883181334, 0.046071603894233704, -0.0384816937148571, 0.017587220296263695, 0.010813320055603981, -0.0017902206163853407, -0.021067000925540924, 0.011081661097705364, -0.015473542734980583, 0.06269633769989014, 0.029717737808823586, -0.004298209212720394, -0.01096812728792429, 0.0007530521252192557, 0.0029422990046441555, 0.005491942632943392, 0.04170851781964302, 0.045403920114040375, -0.02698695845901966, -0.0083334194496274 ]
kubernetes-copy-a-dataset-to-a-statefulsets-persistentvolume
https://markhneedham.com/blog/2017/11/18/kubernetes-copy-a-dataset-to-a-statefulsets-persistentvolume
false
2017-11-29 23:01:38
scikit-learn: Creating a matrix of named entity counts
[ "nlp", "scikit-learn", "polyglot", "ner", "entity-extraction" ]
[ "Python" ]
I've been trying to improve my score on Kaggle's https://www.kaggle.com/c/spooky-author-identification[Spooky Author Identification] competition, and my latest idea was building a model which used named entities extracted using the https://github.com/aboSamoor/polyglot[polyglot NLP library]. We'll start by learning how to extract entities form a sentence using polyglot which isn't too tricky: [source,python] ---- >>> from polyglot.text import Text >>> doc = "My name is David Beckham. Hello from London, England" >>> Text(doc, hint_language_code="en").entities [I-PER(['David', 'Beckham']), I-LOC(['London']), I-LOC(['England'])] ---- This sentence contains three entities. We'd like each entity to be a string rather than an array of values so let's refactor the code to do that: [source,python] ---- >>> ["_".join(entity) for entity in Text(doc, hint_language_code="en").entities] ['David_Beckham', 'London', 'England'] ---- That's it for the polyglot part of the solution. Now let's work out how to integrate that with scikit-learn. I've been using scikit-learn's +++<cite>+++http://scikit-learn.org/stable/modules/generated/sklearn.pipeline.Pipeline.html[Pipeline]+++</cite>+++ abstraction for the other models I've created so I'd like to take the same approach here. This is an example of a model that creates a matrix of unigram counts and creates a Naive Bayes model on top of that: [source,python] ---- from sklearn.feature_extraction.text import CountVectorizer from sklearn.naive_bayes import MultinomialNB from sklearn.pipeline import Pipeline nlp_pipeline = Pipeline([ ('cv', CountVectorizer(), ('mnb', MultinomialNB()) ]) ... # Train and Test the model ... ---- I was going to write a class similar to +++<cite>+++http://scikit-learn.org/stable/modules/generated/sklearn.feature_extraction.text.CountVectorizer.html[CountVectorizer]+++</cite>+++ but after reading its code for a couple of hours I realised that I could just pass in a custom analyzer instead. This is what I ended up with: [source,python] ---- entities = {} def analyze(doc): if doc not in entities: entities[doc] = ["_".join(entity) for entity in Text(doc, hint_language_code="en").entities] return entities[doc] nlp_pipeline = Pipeline([ ('cv', CountVectorizer(analyzer=lambda doc: analyze(doc))), ('mnb', MultinomialNB()) ]) ---- I'm caching the results in a dictionary because the entity extraction is quite time consuming and there's no point recalculating it each time the function is called. Unfortunately this model didn't help me improve my best score. It scores a log loss of around 0.5, a bit worse than the 0.45 I've achieved using the unigram model :(
Learn how to create a matrix of named entities using scikit-learn's CountVectorizer and then train a model on it as part of machine learning pipeline.
null
[ -0.018365031108260155, -0.015154088847339153, 0.003092447528615594, 0.04227820038795471, 0.04969986900687218, 0.0026879338547587395, 0.019926294684410095, 0.04589424282312393, 0.0006229557329788804, 0.0014223749749362469, -0.029159437865018845, 0.013436920940876007, -0.06786239892244339, -0.0005355746252462268, -0.012023093178868294, 0.05119345709681511, 0.05865217745304108, 0.007121975068002939, 0.01624208129942417, -0.011260450817644596, 0.04270751401782036, 0.05688424035906792, 0.032893817871809006, 0.036594994366168976, 0.03372621163725853, 0.010294603183865547, 0.016608087345957756, -0.0008367373957298696, -0.049370795488357544, 0.009042301215231419, 0.03338062763214111, -0.011213901452720165, 0.0017976334784179926, -0.033570196479558945, 0.035260267555713654, 0.028553437441587448, -0.016863765195012093, 0.003619214752689004, -0.012896640226244926, 0.01684436947107315, -0.03831714391708374, 0.03527955710887909, -0.02104618027806282, 0.021313540637493134, -0.036043740808963776, -0.0017909209709614515, -0.04164506122469902, 0.027383161708712578, 0.0020870377775281668, -0.03245698660612106, -0.08706991374492645, 0.02379450388252735, -0.023396683856844902, -0.027825109660625458, 0.004794795997440815, 0.061694201081991196, 0.004683457314968109, -0.09425310790538788, 0.034806545823812485, 0.002763676457107067, -0.011365409009158611, -0.01572394371032715, 0.013809184543788433, 0.04005476459860802, 0.036753907799720764, -0.04441842436790466, -0.0536838062107563, 0.03723723068833351, -0.05931370332837105, -0.013720408082008362, -0.008429561741650105, 0.01051038783043623, -0.02413685992360115, 0.005388682242482901, -0.00892785843461752, -0.04017573222517967, 0.032304443418979645, 0.0772004947066307, 0.03975541517138481, 0.06100485101342201, 0.002962499624118209, -0.03763466328382492, 0.02534385956823826, 0.030289674177765846, -0.012284938246011734, -0.009997561573982239, -0.04064612463116646, -0.03313395753502846, -0.061708275228738785, 0.05081315338611603, 0.009066562168300152, -0.06987199932336807, -0.007766912691295147, 0.004632712807506323, -0.011018249206244946, 0.02969752624630928, 0.029509514570236206, -0.005670845974236727, -0.028858400881290436, -0.020345281809568405, -0.011476277373731136, -0.01736641675233841, 0.04311263933777809, 0.011925853788852692, -0.09436220675706863, -0.02971845492720604, -0.003879931755363941, 0.006801141891628504, -0.006097257602959871, -0.024704067036509514, -0.026762740686535835, 0.024605588987469673, -0.03097410313785076, 0.016951486468315125, -0.05791259929537773, 0.050595276057720184, 0.015259410254657269, -0.010730283334851265, -0.016487732529640198, 0.010060492902994156, 0.037327371537685394, 0.017401622608304024, -0.004141163546591997, 0.06369981169700623, -0.009160538204014301, 0.02807670272886753, -0.017957260832190514, 0.05772313103079796, -0.021586565300822258, -0.062191423028707504, -0.022025132551789284, 0.03707350790500641, -0.023084692656993866, 0.0029337231535464525, 0.014546286314725876, -0.048360127955675125, -0.005103618372231722, 0.03444026783108711, 0.0598873533308506, 0.0445193350315094, 0.0030083300080150366, -0.04312365502119064, -0.001436346909031272, 0.014279560185968876, 0.03990056365728378, -0.00036343999090604484, -0.04049054905772209, -0.021941863000392914, -0.02275153435766697, 0.017772238701581955, 0.002081179292872548, 0.017392266541719437, 0.0537794753909111, -0.040676478296518326, 0.024377761408686638, 0.09377013146877289, 0.04002896323800087, -0.0013386504724621773, 0.0037036151625216007, -0.003684640396386385, 0.047570422291755676, 0.03631585091352463, 0.012874695472419262, 0.040693219751119614, 0.007080866023898125, -0.04192955046892166, 0.0398235023021698, 0.058069996535778046, -0.03586088493466377, -0.002739325165748596, -0.0563199520111084, -0.044654008001089096, 0.06720367819070816, -0.05329003557562828, -0.012660623528063297, 0.0217790175229311, 0.06533030420541763, 0.029762601479887962, 0.06356972455978394, 0.0027694946620613337, -0.06649201363325119, 0.03718768432736397, 0.00042801175732165575, 0.0014412828022614121, 0.018463289365172386, -0.0012270554434508085, 0.09328670799732208, 0.029991837218403816, -0.006814221385866404, 0.05473761260509491, -0.06426362693309784, -0.07056640088558197, -0.015073858201503754, -0.01573066972196102, 0.04812202975153923, -0.03613818436861038, -0.00011255533172516152, 0.07348261028528214, 0.005882409866899252, 0.03195754438638687, 0.021200859919190407, 0.008498057723045349, 0.0075736804865300655, -0.023017102852463722, -0.04628056660294533, 0.02405940555036068, 0.01948446035385132, -0.0177695844322443, -0.03788580372929573, -0.0041302707977592945, -0.022660037502646446, -0.004694814328104258, 0.04285947605967522, -0.012501504272222519, 0.01029117964208126, 0.00806360598653555, 0.025498809292912483, -0.007185775320976973, 0.03255224972963333, -0.028375091031193733, 0.01877250149846077, 0.016730746254324913, -0.013401799835264683, -0.044859062880277634, 0.014818819239735603, 0.11701571941375732, 0.05668091028928757, -0.007866185158491135, -0.06174660101532936, -0.009624720551073551, 0.011601501144468784, -0.020649252459406853, 0.03853235021233559, -0.01988895609974861, -0.01819017343223095, -0.029790759086608887, -0.05444119870662689, -0.029907630756497383, 0.017029589042067528, -0.025992857292294502, -0.011549755930900574, 0.06745407730340958, -0.05548461899161339, 0.028614038601517677, 0.03828510269522667, 0.010028150863945484, 0.01431182399392128, -0.03755379840731621, -0.04675082862377167, 0.012891588732600212, 0.0245671384036541, -0.0068288459442555904, 0.013809031806886196, -0.0215578842908144, 0.01273744273930788, -0.011955207213759422, -0.06230828911066055, 0.015406504273414612, 0.04907262697815895, 0.047871317714452744, -0.002575063845142722, 0.055378273129463196, -0.012052930891513824, 0.013993685133755207, -0.004482709337025881, -0.028528911992907524, -0.038931433111429214, -0.06812158972024918, 0.002336832694709301, 0.040688656270504, 0.043782223016023636, -0.007122748531401157, 0.011412584222853184, -0.01226368360221386, 0.019397415220737457, 0.0226291473954916, 0.018101535737514496, 0.015987802296876907, -0.017214655876159668, -0.05979829654097557, -0.053920697420835495, 0.057874567806720734, -0.050849221646785736, -0.025698242709040642, 0.0008181647281162441, -0.09986913204193115, 0.027501443400979042, -0.057402536273002625, 0.0023333141580224037, 0.00018158479360863566, 0.004654415417462587, 0.02955322526395321, 0.0070335520431399345, 0.002047466579824686, 0.023071089759469032, 0.031170709058642387, 0.0156609658151865, 0.024732155725359917, 0.0009465173934586346, 0.062381815165281296, -0.01805724762380123, 0.00428413599729538, 0.040018774569034576, -0.009738493710756302, 0.008816735818982124, -0.038474466651678085, -0.004017867613583803, -0.023261528462171555, -0.310246080160141, 0.027273787185549736, 0.0008163786842487752, -0.045279502868652344, 0.03236950933933258, -0.04288993030786514, 0.003999823238700628, -0.025891827419400215, -0.01770978793501854, 0.020633716136217117, -0.04648039489984512, -0.032215990126132965, -0.03027583286166191, 0.038070496171712875, 0.04285828769207001, 0.004625587724149227, -0.020696889609098434, -0.041954416781663895, 0.013706495985388756, 0.08132447302341461, -0.008131257258355618, -0.04406809061765671, -0.015315511263906956, 0.049214065074920654, 0.01854788325726986, 0.02510020323097706, -0.07439196109771729, 0.00029842136427760124, -0.04981248453259468, -0.0032659482676535845, 0.026653766632080078, -0.025364140048623085, 0.006039145868271589, -0.024807395413517952, -0.027483992278575897, -0.03346240520477295, 0.04907859489321709, 0.05695010721683502, 0.008336025290191174, 0.022283928468823433, -0.02794414944946766, -0.03424695506691933, -0.0009293781477026641, -0.03279837965965271, 0.085839182138443, -0.004506757948547602, -0.07066899538040161, -0.005753656383603811, -0.03437462076544762, 0.06823697686195374, -0.045169949531555176, -0.04003390297293663, -0.03242144361138344, 0.04623999074101448, 0.0009006607579067349, -0.001159982173703611, 0.02319907955825329, -0.02479427121579647, -0.05003984645009041, -0.018113533034920692, -0.0035852219443768263, -0.025185471400618553, -0.0038517238572239876, -0.05662839859724045, 0.006286091636866331, -0.037760112434625626, -0.06286396831274033, -0.037053920328617096, 0.0389946810901165, 0.016121188178658485, -0.0628819614648819, -0.012293276377022266, -0.01672452688217163, -0.10257220268249512, -0.015596091747283936, -0.01492026075720787, 0.021456710994243622, 0.0007969577563926578, 0.021990465000271797, 0.041277967393398285, -0.0440727062523365, -0.06911368668079376, 0.029420647770166397, -0.011455968953669071, 0.028634026646614075, -0.012849022634327412, 0.0008309223339892924, 0.02233993448317051, -0.014518965035676956, -0.028001897037029266, 0.056749239563941956, 0.0030770027078688145, 0.007279688026756048, 0.023481393232941628, -0.020550288259983063, 0.02576589025557041, -0.005843515042215586, 0.002128270920366049, 0.001784378313459456, 0.035783473402261734, -0.0099722258746624, -0.042494457215070724, -0.03516298532485962, -0.03297540917992592, -0.0009486004710197449, 0.035527829080820084, -0.07649882882833481, 0.00260514160618186, 0.016783693805336952, -0.01252500806003809, -0.007210292387753725, -0.002666484797373414, 0.019700946286320686, -0.018210098147392273, -0.022864440456032753, -0.016814079135656357, 0.03756893053650856, 0.029481807723641396, 0.01454481016844511, -0.04675108939409256, -0.05706118792295456, -0.0015854199882596731, 0.0006734717171639204, -0.005459070671349764, -0.040686119347810745, -0.04441253840923309, 0.0017691642278805375, -0.0013738799607381225, -0.02331341803073883, -0.00018824136350303888, -0.02534550242125988, 0.015327420085668564, 0.023734144866466522, -0.024377191439270973, 0.03847775235772133, -0.014354768209159374, -0.058030568063259125, -0.025631872937083244, -0.010581870563328266, 0.026388300582766533, 0.0003362991556059569, -0.023362813517451286, 0.01149741094559431, 0.043913085013628006, 0.0461435467004776, -0.01640080101788044, 0.04065248370170593, 0.020010273903608322, 0.0037369246128946543, 0.02736007422208786, 0.026372620835900307, 0.010861709713935852, 0.009701977483928204, -0.0357644222676754, -0.009735376574099064, 0.010570229031145573, 0.05548683926463127, -0.008581072092056274, -0.01746099628508091, -0.05281656235456467, 0.055620308965444565, -0.011035718955099583, -0.0029522806871682405, 0.002499284455552697, 0.019767727702856064, 0.038455501198768616, -0.0036716239992529154, 0.05331763997673988, 0.0035565632861107588, -0.01070807408541441, 0.013490259647369385, -0.0132061205804348, -0.043647006154060364, 0.005281878635287285, -0.009168126620352268, 0.007027715444564819, 0.014983960427343845, 0.02773878164589405, 0.0036793153267353773, 0.019098501652479172, -0.0023454513866454363, -0.03877830132842064, 0.018349165096879005, 0.016078460961580276, 0.04982932657003403, 0.07465199381113052, -0.03142537921667099, 0.0037882623728364706, -0.0385495163500309, -0.041910529136657715, -0.03602003678679466, 0.01647128351032734, -0.006283064838498831, -0.002349614864215255, -0.03328831121325493, -0.0904388278722763, 0.015038448385894299, 0.001009565545246005, 0.008784901350736618, 0.021962735801935196, -0.014206301420927048, -0.02520110085606575, -0.034049682319164276, 0.02577085606753826, 0.06926311552524567, -0.07658488303422928, -0.016602646559476852, -0.028741970658302307, 0.006992871407419443, 0.004760138224810362, 0.02871057577431202, -0.05836327001452446, -0.042345691472291946, -0.03383004665374756, -0.008633601479232311, -0.026108846068382263, -0.01714816689491272, -0.05046854168176651, 0.019623633474111557, 0.010539925657212734, 0.0372546911239624, -0.02549416944384575, -0.010141447186470032, -0.000989091000519693, -0.019097141921520233, 0.03467734158039093, -0.0321800671517849, 0.009610464796423912, 0.0064819250255823135, -0.03157972916960716, 0.017011146992444992, -0.049724362790584564, 0.03684351220726967, 0.029128821566700935, 0.010323603637516499, 0.013494782149791718, -0.05173559859395027, -0.008153392933309078, 0.024758633226156235, 0.03946096450090408, 0.0025035052094608545, -0.01810179278254509, -0.023934464901685715, 0.007624401710927486, -0.041570305824279785, 0.022572720423340797, 0.008787466213107109, 0.0020264729391783476, 0.013038412667810917, 0.03153670206665993, 0.0017849381547421217, 0.049716658890247345, 0.0038331956602633, -0.03574877232313156, 0.053591735661029816, -0.02352374978363514, -0.03777192160487175, -0.026754217222332954, -0.04434090480208397, 0.020314421504735947, 0.02479942888021469, 0.01965639553964138, -0.061624765396118164, 0.06979457288980484, 0.03902615234255791, 0.04087252914905548, 0.02279050089418888, 0.014775070361793041, 0.018981626257300377, -0.03523113951086998, -0.007305944804102182, -0.07584630697965622, -0.03145570307970047, 0.05408157408237457, -0.015661638230085373, -0.0025232951156795025, -0.004442653153091669, -0.043379638344049454, 0.044085390865802765, -0.04972606524825096, -0.031019488349556923, 0.030225474387407303, -0.016902249306440353, 0.010240129195153713, 0.015469903126358986, -0.04396812245249748, 0.013870335184037685, 0.034769657999277115, -0.03581899777054787, -0.03551976755261421, -0.03194812685251236, 0.090263731777668, -0.034157827496528625, 0.019214339554309845, 0.0017405194230377674, -0.04377780482172966, 0.08387884497642517, 0.03160592541098595, 0.04003630951046944, 0.024339579045772552, -0.012829168699681759, 0.03445907682180405, 0.018644360825419426, -0.016161810606718063, 0.020400865003466606, 0.03270144388079643, -0.0020945467986166477, -0.07393237203359604, 0.05308150500059128, 0.024750158190727234, -0.017147250473499298, -0.025733212009072304, 0.07203260064125061, 0.02660326659679413, -0.02743418514728546, -0.06591586768627167, 0.011006133630871773, -0.06003066897392273, -0.015175778418779373, -0.021333210170269012, 0.0007249286863952875, -0.03353442996740341, 0.0556204728782177, 0.0063889482989907265, -0.01114486064761877, 0.048132751137018204, -0.003936341963708401, -0.010872366838157177, 0.038730066269636154, 0.07301691174507141, 0.0696098580956459, 0.07742196321487427, 0.0012235628673806787, 0.06354974955320358, -0.019712790846824646, -0.0322021059691906, -0.012282871641218662, -0.001566692953929305, -0.011703871190547943, -0.01221647672355175, -0.012646286748349667, 0.05597345530986786, 0.004777415655553341, 0.058635953813791275, -0.030724817886948586, -0.005548760294914246, 0.013025760650634766, 0.015406951308250427, 0.015843940898776054, 0.06691964715719223, 0.015744883567094803, 0.024994254112243652, -0.019654210656881332, -0.0536603182554245, 0.02490343153476715, -0.034966882318258286, -0.025798317044973373, 0.02823745645582676, -0.02353840135037899, 0.011554278433322906, 0.0033935182727873325, 0.05199091136455536, 0.08845776319503784, -0.029148725792765617, 0.00047353378613479435, -0.0008588851196691394, 0.008473748341202736, 0.006023785099387169, 0.03901363164186478, -0.008255585096776485, -0.0033865252044051886, -0.010412022471427917, -0.05119410529732704, -0.005142669193446636, -0.027966346591711044, -0.03130169212818146, 0.016906285658478737, -0.019893646240234375, 0.016509274020791054, 0.012203886173665524, 0.0019491016864776611, -0.03941447287797928, -0.06470415741205215, -0.031688883900642395, -0.03725389391183853, -0.060401611030101776, -0.023783734068274498, 0.028153030201792717, 0.02252586930990219, -0.006067782174795866, -0.016447821632027626, -0.0042526498436927795, -0.003017742419615388, 0.024210426956415176, -0.05558161064982414, 0.01587710902094841, -0.006493944209069014, 0.0033868697937577963, -0.0037992477882653475, 0.020053019747138023, 0.051694054156541824, 0.009205005131661892, 0.0029403259977698326, 0.014649374410510063, 0.032120466232299805, 0.031504690647125244, 0.034079138189554214, 0.030708149075508118, -0.08228723704814911, -0.02650018036365509, -0.02406172640621662, -0.011158619076013565, -0.0758519396185875, 0.014475961215794086, 0.035464271903038025, 0.02028852142393589, 0.023029468953609467, 0.0018123802728950977, 0.0024665684904903173, -0.04341375082731247, -0.021638287231326103, -0.011813970282673836, 0.03219252824783325, 0.025575760751962662, -0.016686180606484413, 0.0823039561510086, 0.016983753070235252, 0.003620451083406806, -0.0685931071639061, -0.03895093873143196, -0.0035961191169917583, 0.01622629724442959, -0.04002434015274048, -0.02264031395316124, -0.05454365536570549, -0.0649968609213829, -0.03297112509608269, 0.03672023117542267, -0.04745626077055931, -0.02215339057147503, -0.000949626206420362, 0.011783325113356113, 0.005025502294301987, 0.03767550364136696, -0.037373676896095276, -0.014317642897367477, -0.00849766843020916, -0.005087861325591803, -0.02054675668478012, 0.029539069160819054, 0.009931802749633789, 0.03040238283574581, 0.005678609013557434, -0.04425317049026489, -0.008616272360086441, 0.0008108027977868915, 0.03880289942026138, 0.02815566398203373, -0.004135609604418278, -0.005203495733439922 ]
[ -0.052429359406232834, -0.011184887029230595, -0.02514367178082466, 0.0040244669653475285, 0.01927913911640644, -0.03385316953063011, 0.01800680160522461, 0.0057045347057282925, 0.01947118528187275, 0.006672554183751345, -0.010566022247076035, -0.06108241528272629, -0.00624600425362587, -0.060205087065696716, 0.08810564875602722, 0.02009807899594307, -0.01080083753913641, -0.05948157235980034, -0.04995180293917656, 0.035638488829135895, 0.03765977546572685, -0.035809293389320374, -0.011147129349410534, -0.016970546916127205, -0.007943975739181042, 0.04146915674209595, 0.02520623616874218, -0.01438054721802473, 0.001156542799435556, -0.20652441680431366, -0.012561140581965446, -0.0010584365809336305, 0.032044656574726105, 0.016794120892882347, 0.0030937851406633854, 0.06514401733875275, 0.0029258220456540585, 0.05371996760368347, -0.016852466389536858, 0.041100211441516876, 0.014430251903831959, -0.00839838758111, -0.016296619549393654, -0.02455008216202259, 0.08819910138845444, -0.010996870696544647, -0.041706230491399765, -0.0140402065590024, -0.06067870184779167, 0.013966595754027367, -0.05305171012878418, -0.040804699063301086, -0.02587192878127098, 0.012279284186661243, -0.015425372868776321, 0.029102887958288193, 0.036821696907281876, 0.05341137573122978, 0.07712680846452713, 0.03806263580918312, 0.015865782275795937, 0.019697023555636406, -0.13571852445602417, 0.09750264137983322, -0.015198859386146069, 0.04828190803527832, -0.06064371392130852, -0.0163269080221653, -0.013998054899275303, 0.06863004714250565, 0.017162401229143143, 0.014842391945421696, -0.0046015228144824505, 0.06036975607275963, -0.015075384639203548, 0.014340940862894058, 0.02114298939704895, 0.004178422037512064, 0.05372126027941704, 0.00763308210298419, -0.053109392523765564, 0.023816287517547607, -0.016904987394809723, -0.040626805275678635, -0.009668486192822456, 0.06499508023262024, -0.035863809287548065, 0.0008361304644495249, 0.013320956379175186, 0.006252437364310026, 0.0571572408080101, -0.00912412442266941, 0.014239350333809853, 0.008305140770971775, -0.0830225795507431, -0.04456965997815132, -0.0009767395677044988, -0.0069296695291996, -0.009654308669269085, 0.3835827708244324, -0.018814552575349808, 0.0033069089986383915, 0.04536905884742737, 0.0355105996131897, 0.010318164713680744, -0.03812859579920769, -0.021829938516020775, -0.08065802603960037, 0.02984006330370903, -0.07015368342399597, 0.004715534392744303, 0.00812798086553812, 0.02557394467294216, -0.05104122310876846, 0.037236616015434265, 0.01302497647702694, 0.04348553344607353, 0.005899154581129551, -0.009296831674873829, 0.010925610549747944, -0.012624331749975681, 0.021229417994618416, 0.006567399948835373, 0.009012097492814064, 0.015662986785173416, 0.0370476096868515, 0.055972881615161896, 0.0549037791788578, 0.052368488162755966, 0.01866248808801174, 0.04802752286195755, -0.009956397116184235, -0.10102425515651703, 0.012666517868638039, 0.01693090796470642, -0.01291151624172926, 0.035777971148490906, 0.006290219724178314, -0.01437272410839796, 0.0022666039876639843, -0.01466337963938713, -0.018288105726242065, 0.017284216359257698, 0.028977150097489357, -0.03276729956269264, 0.12126526981592178, -0.022336872294545174, 0.004397692158818245, -0.01045091450214386, -0.021387645974755287, 0.026201792061328888, 0.04513344168663025, -0.021526876837015152, -0.08584700524806976, 0.028423067182302475, 0.03190306946635246, 0.07518415153026581, -0.003074781969189644, -0.06676779687404633, -0.01044110395014286, 0.018025396391749382, -0.031224364414811134, -0.0070831868797540665, 0.023460274562239647, 0.02931910753250122, -0.12283094972372055, -0.01965232379734516, 0.048546213656663895, -0.02158392407000065, -0.10879990458488464, 0.04677198454737663, 0.015302018262445927, -0.05202645808458328, 0.039102233946323395, 0.007109041791409254, -0.037958528846502304, -0.054515957832336426, 0.01012995932251215, 0.06300892680883408, 0.01584392786026001, -0.012618335895240307, -0.0026045311242341995, -0.0359092578291893, 0.014166081324219704, -0.042249780148267746, -0.09426465630531311, -0.022704733535647392, -0.009587547741830349, -0.038993578404188156, -0.016812369227409363, -0.013140488415956497, 0.00626631872728467, -0.03275001794099808, 0.05647033452987671, -0.018075793981552124, -0.005183992441743612, 0.031140612438321114, 0.004820982925593853, -0.02512693591415882, -0.029980260878801346, -0.00871695764362812, 0.07040636241436005, -0.01425309106707573, -0.00023450714070349932, -0.04347921162843704, 0.019779261201620102, 0.05369173362851143, -0.024588879197835922, 0.09407106786966324, 0.004621319938451052, -0.026769956573843956, -0.04611723870038986, -0.041697628796100616, 0.009544703178107738, -0.015193786472082138, -0.0020331447012722492, -0.01714853011071682, 0.01005481369793415, -0.008852213621139526, 0.040445391088724136, -0.053252432495355606, -0.06056145578622818, -0.032955095171928406, -0.3816223442554474, -0.012212458066642284, -0.011842110194265842, -0.024558736011385918, 0.01624378375709057, -0.04804171249270439, 0.024172727018594742, 0.0073258052580058575, 0.007767031900584698, 0.0513451024889946, 0.06366335600614548, -0.010657220147550106, -0.0027938077691942453, -0.04431183263659477, 0.004776475019752979, 0.05740289017558098, -0.006593119353055954, -0.04293866083025932, -0.01599976420402527, 0.01908181980252266, 0.004426619503647089, -0.05176561698317528, -0.014172433875501156, -0.051346249878406525, -0.03050183318555355, -0.022174259647727013, 0.10889682173728943, 0.06854094564914703, 0.04201822355389595, -0.05285365879535675, 0.04069986566901207, 0.022171398624777794, -0.0004045426903758198, -0.11124273389577866, 0.027320852503180504, -0.03278891369700432, 0.008375036530196667, 0.03429434821009636, -0.014589320868253708, -0.028321973979473114, -0.04628951847553253, 0.028844285756349564, -0.030148597434163094, -0.028555914759635925, -0.05776909366250038, 0.032232679426670074, -0.03109273687005043, 0.0025592390447854996, 0.01759718731045723, 0.06744810938835144, -0.002180656185373664, 0.035057321190834045, 0.02360122837126255, 0.025564681738615036, -0.02135610766708851, -0.02567749284207821, -0.09088429063558578, 0.015738101676106453, -0.04465648531913757, -0.001461430685594678, 0.0584636852145195, 0.006866869982331991, 0.01575980894267559, -0.06020450219511986, 0.018854152411222458, -0.02548506297171116, -0.009515591897070408, 0.009629516862332821, 0.02991444058716297, -0.040903203189373016, -0.04708697646856308, 0.09940869361162186, -0.005553601775318384, -0.003973153419792652, 0.02818942815065384, 0.04743976145982742, -0.008606236428022385, -0.016813047230243683, -0.011067399755120277, 0.018522299826145172, 0.04675972834229469, 0.0159954521805048, 0.06180364266037941, -0.022005373612046242, -0.005560032557696104, 0.032455407083034515, 0.02951950952410698, -0.007841194979846478, 0.045757368206977844, -0.009672027081251144, -0.04385838657617569, -0.007153945509344339, 0.016144204884767532, -0.0052915229462087154, 0.04805496335029602, -0.006619120482355356, -0.2740110754966736, 0.016399512067437172, 0.03955185040831566, 0.08547251671552658, 0.014121287502348423, -0.008270680904388428, -0.0011853474425151944, -0.07266981154680252, 0.02256791852414608, -0.018184645101428032, 0.010324336588382721, 0.028890058398246765, 0.00785303395241499, -0.019910719245672226, -0.002945695072412491, -0.00390892568975687, 0.05681117996573448, 0.005245629698038101, 0.00860205851495266, 0.01318664476275444, 0.030114060267806053, -0.016187094151973724, 0.1826290339231491, 0.013167173601686954, -0.0067473785020411015, -0.025224413722753525, -0.017494337633252144, 0.0009529311209917068, 0.05167084187269211, 0.020296014845371246, 0.026021480560302734, -0.0010602088877931237, 0.052891843020915985, 0.03657913580536842, 0.05165747180581093, -0.03913500905036926, -0.029399624094367027, 0.008242901414632797, 0.04770364612340927, -0.025961844250559807, 0.015349834226071835, 0.02372208796441555, -0.05650172010064125, 0.007808569353073835, 0.04653222858905792, -0.03360525146126747, 0.009367390535771847, -0.02941839210689068, -0.07775533199310303, -0.005316832568496466, -0.0015078650321811438, -0.022444888949394226, -0.008473853580653667, -0.0022005236241966486, 0.008423499763011932, 0.06475376337766647, 0.04619491845369339, 0.0018773777410387993, 0.0007971867453306913, -0.006161307450383902, -0.036978643387556076, -0.0694340169429779, 0.06307124346494675, 0.03659379109740257, 0.003349770326167345 ]
[ 0.00766854640096426, -0.019228238612413406, -0.013742692768573761, 0.012344200164079666, -0.03944270312786102, 0.012770195491611958, 0.012890825979411602, -0.0006389718037098646, 0.010181613266468048, -0.008860885165631771, -0.021887315437197685, 0.0048998259007930756, -0.02127666026353836, -0.03423141688108444, -0.003089045872911811, 0.03296983614563942, -0.00541410269215703, 0.032356757670640945, 0.028152963146567345, -0.01295390073210001, -0.016381924971938133, 0.026112640276551247, 0.0281803198158741, 0.017195746302604675, 0.007734660059213638, -0.0030152106191962957, -0.028795534744858742, -0.014642525464296341, 0.024035504087805748, -0.08661454916000366, -0.02777223475277424, -0.0305698923766613, -0.00033570127561688423, 0.031111516058444977, -0.01417132280766964, 0.013783290050923824, -0.050970423966646194, 0.037164267152547836, 0.0033856709487736225, 0.04054563120007515, 0.011650298722088337, -0.03305227681994438, -0.005248246714472771, 0.0019088770495727658, 0.0026417076587677, 0.002004204085096717, -0.07677558809518814, -0.00843046698719263, -0.013410056941211224, 0.006791408639401197, -0.04606501758098602, -0.027226563543081284, 0.0013449882389977574, -0.003644802374765277, -0.0191363375633955, -0.016610540449619293, -0.027890603989362717, -0.012780270539224148, 0.009229406714439392, -0.03645028546452522, -0.02124219760298729, 0.020254766568541527, -0.030980471521615982, -0.01402191910892725, 0.011200802400708199, -0.02135731652379036, -0.01993550732731819, 0.014705998823046684, -0.0066487956792116165, 0.014200559817254543, -0.004027443937957287, 0.02060478925704956, -0.016805404797196388, -0.04988684132695198, -0.025616392493247986, -0.03316939249634743, 0.011795747093856335, -0.019573558121919632, 0.027708394452929497, 0.013967444188892841, -0.014014828018844128, 0.027038689702749252, 0.024580320343375206, 0.009361954405903816, -0.010687196627259254, -0.026589062064886093, 0.0042984383180737495, 0.025904247537255287, 0.006631368305534124, -0.011181351728737354, -0.02584398165345192, -0.015390160493552685, 0.050452765077352524, 0.015628235414624214, -0.08676434308290482, 0.018150389194488525, 0.03293256834149361, -0.02377229370176792, -0.014262199401855469, 0.8494683504104614, -0.012311557307839394, 0.008583077229559422, 0.04104312136769295, 0.004492688924074173, -0.003827925305813551, -0.0015743444673717022, -0.02358890324831009, -0.02713785320520401, -0.0040786429308354855, -0.029914259910583496, -0.008674063719809055, 0.02552373893558979, 0.030897581949830055, 0.037821996957063675, 0.03141472488641739, 0.027316156774759293, 0.007860629819333553, 0.019746815785765648, 0.022468101233243942, 0.004678564146161079, -0.04052579030394554, -0.004147208761423826, 0.006805302109569311, 0.002006604103371501, -0.035814568400382996, -0.17279495298862457, 0.033213768154382706, -6.91848440841187e-33, 0.04812610521912575, -0.01213156059384346, 0.026456955820322037, -0.000027966218112851493, -0.011480758897960186, 0.001161562860943377, -0.008793024346232414, -0.008994558826088905, -0.05187894031405449, -0.025722583755850792, -0.01781926304101944, 0.024766700342297554, 0.009514270350337029, 0.0053852759301662445, 0.007381866220384836, 0.025388186797499657, -0.018015539273619652, 0.03182905167341232, 0.011532183736562729, 0.034983545541763306, 0.041063837707042694, -0.002938460558652878, 0.006778714247047901, 0.022929297760128975, -0.010852137580513954, -0.004044071305543184, 0.016412587836384773, -0.02123863436281681, -0.04934418946504593, -0.05236198753118515, -0.020757080987095833, -0.001341580762527883, 0.0004761652962770313, -0.016875863075256348, -0.0011277367593720555, -0.06958625465631485, -0.026764128357172012, -0.01798359304666519, -0.025521811097860336, -0.007737037260085344, -0.027947325259447098, 0.012925179675221443, 0.01951703056693077, -0.047131866216659546, -0.027588041499257088, 0.04865792393684387, 0.03840473294258118, 0.007245771586894989, -0.0071901679039001465, 0.04945340380072594, 0.04838573560118675, -0.0007784197805449367, -0.034679561853408813, 0.03685446456074715, -0.008911301381886005, 0.02416626736521721, -0.007466794457286596, 0.026698099449276924, 0.008441425859928131, -0.0031348150223493576, -0.001410648226737976, -0.007458970416337252, 0.02538311667740345, 0.004149910528212786, 0.013416445814073086, -0.0070846425369381905, -0.005933502689003944, 0.009973009116947651, 0.04123144596815109, -0.016923416405916214, -0.047329239547252655, 0.013198059983551502, -0.030514271929860115, -0.009219512343406677, 0.022284725680947304, -0.04799485206604004, -0.00024619794567115605, -0.021356776356697083, -0.0076585616916418076, 0.06471777707338333, 0.032698921859264374, -0.02193761244416237, 0.0379115529358387, -0.021969687193632126, -0.027203362435102463, 0.0021478456910699606, 0.02800195850431919, -0.0236884243786335, -0.025113072246313095, 0.006673054303973913, 0.022557716816663742, 0.0011761246714740992, -0.01801806315779686, -0.002433573128655553, -0.0004606136353686452, 6.657340991537007e-33, 0.006383492145687342, -0.04149872437119484, -0.008737110532820225, -0.006593445781618357, 0.029875097796320915, -0.028290994465351105, 0.048363298177719116, 0.009709651581943035, -0.0272494126111269, 0.021036185324192047, -0.022563882172107697, -0.0017174698878079653, 0.00810180976986885, 0.03757680952548981, 0.07570868730545044, -0.008079418912529945, -0.00887307245284319, 0.005284570157527924, 0.0028436658903956413, 0.030827980488538742, 0.018125014379620552, 0.027586357668042183, -0.018100854009389877, 0.020208334550261497, -0.00470365583896637, 0.019319670274853706, -0.024854373186826706, -0.008340409956872463, -0.018604887649416924, 0.014971083961427212, 0.01400710828602314, 0.02592519298195839, -0.016913574188947678, 0.004784988705068827, -0.012357395142316818, 0.015141270123422146, -0.0020312818232923746, -0.03693072497844696, 0.018057312816381454, 0.0004180501855444163, 0.0009856205433607101, 0.040195122361183167, -0.003814829047769308, 0.008784569799900055, 0.009139586240053177, 0.028026659041643143, -0.0007221023552119732, -0.01527344435453415, 0.029411034658551216, 0.007055223453789949, -0.02521258220076561, 0.021644163876771927, -0.004400742705911398, 0.03952886909246445, 0.0013987624552100897, -0.0212766882032156, -0.031696125864982605, -0.013394313864409924, -0.04321334511041641, -0.022025752812623978, -0.045490022748708725, 0.011223024688661098, -0.013235603459179401, 0.008765478618443012, -0.014814669266343117, 0.003654325380921364, -0.027180053293704987, 0.013070330955088139, -0.005941344425082207, -0.03402617573738098, -0.0236158836632967, -0.06048428267240524, 0.009619268588721752, 0.028326543048024178, 0.006584501825273037, 0.000829041819088161, -0.05145305022597313, 0.006146474741399288, -0.024271944537758827, 0.014685739763081074, 0.062079813331365585, -0.028365544974803925, 0.03331638500094414, 0.036039821803569794, 0.028381386771798134, -0.009841208346188068, 0.0054003470577299595, 0.006460970267653465, 0.00915517471730709, -0.026949379593133926, 0.01891362853348255, 0.010408103466033936, -0.010920459404587746, 0.021338993683457375, 0.025725336745381355, -1.2766872892200354e-8, -0.01747991517186165, 0.027088530361652374, -0.017682984471321106, 0.02900925651192665, -0.0003308003942947835, 0.0058052451349794865, -0.011415444314479828, -0.007251868490129709, -0.049806296825408936, -0.012288840487599373, 0.02468724735081196, -0.00008130839705700055, -0.020079880952835083, 0.03608854115009308, 0.027219435200095177, -0.02028871513903141, 0.002395551884546876, -0.01814696379005909, 0.036472879350185394, -0.010204251855611801, 0.014693348668515682, 0.021238787099719048, 0.010572525672614574, -0.02170604094862938, -0.0037536711897701025, -0.0060816314071416855, 0.03034346178174019, -0.07758086174726486, 0.0288509801030159, 0.024717072024941444, 0.020398182794451714, -0.037297558039426804, -0.03777530789375305, 0.044570885598659515, 0.023182732984423637, 0.021305562928318977, 0.005414421204477549, -0.002561454428359866, 0.03578408062458038, 0.009584015235304832, 0.012671303004026413, 0.014429242350161076, -0.019822537899017334, -0.029194273054599762, -0.00909825786948204, 0.016748495399951935, -0.045194655656814575, -0.04404745250940323, 0.048127640038728714, -0.014121499843895435, 0.0038016221951693296, -0.02136990614235401, -0.0037817975971847773, 0.04229879751801491, 0.04874495044350624, 0.004454305395483971, -0.009882858954370022, -0.016350775957107544, -0.03311727195978165, -0.01679154671728611, 0.007454307749867439, 0.014983367174863815, -0.015105683356523514, -0.03585526719689369 ]
scikit-learn-creating-a-matrix-of-named-entity-counts
https://markhneedham.com/blog/2017/11/29/scikit-learn-creating-a-matrix-of-named-entity-counts
false
2017-11-28 19:52:13
Python: polyglot - ModuleNotFoundError: No module named 'icu'
[ "nlp", "python", "polyglot" ]
[ "Python" ]
I wanted to use the https://github.com/aboSamoor/polyglot[polyglot] NLP library that my colleague Will Lyon mentioned in http://www.lyonwj.com/2017/11/15/entity-extraction-russian-troll-tweets-neo4j/[his analysis of Russian Twitter Trolls] but had installation problems which I thought I'd share in case anyone else experiences the same issues. I started by trying to install +++<cite>+++polyglot+++</cite>+++: [source,bash] ---- $ pip install polyglot ImportError: No module named 'icu' ---- Hmmm I'm not sure what +++<cite>+++icu+++</cite>+++ is but luckily there's a https://github.com/aboSamoor/polyglot/issues/10[GitHub issue covering this problem]. That led me to https://tobywf.com/2017/05/installing-pyicu-on-macos/[Toby Fleming's blog post] that suggests the following steps: [source,bash] ---- brew install icu4c export ICU_VERSION=58 export PYICU_INCLUDES=/usr/local/Cellar/icu4c/58.2/include export PYICU_LFLAGS=-L/usr/local/Cellar/icu4c/58.2/lib pip install pyicu ---- I already had +++<cite>+++icu4c+++</cite>+++ installed so I just had to make sure that I had the same version of that library as Toby did. I ran the following command to check that: [source,bash] ---- $ ls -lh /usr/local/Cellar/icu4c/ total 0 drwxr-xr-x 12 markneedham admin 408B 28 Nov 06:12 58.2 ---- That still wasn't enough though! I had to install these two libraries as well: [source,bash] ---- pip install pycld2 pip install morfessor ---- I was then able to install polyglot, but had to then run the following commands to download the files needed for entity extraction: [source,bash] ---- polyglot download embeddings2.de polyglot download ner2.de polyglot download embeddings2.en polyglot download ner2.en ----
Learn how to get around the ModuleNotFoundError: No module named '`icu`' error when installing Python's polyglot NLP library
null
[ 0.011847742833197117, 0.0069470275193452835, -0.010568240657448769, 0.028815196827054024, 0.07825150340795517, 0.026526810601353645, 0.05266810208559036, 0.03670335188508034, 0.006740449462085962, -0.010611345991492271, -0.04351174831390381, 0.008763544261455536, -0.07242853939533234, 0.014642680995166302, 0.0005152405938133597, 0.06400924921035767, 0.08317073434591293, 0.002436951035633683, 0.008763343095779419, 0.0240187868475914, 0.03836657479405403, 0.05527200177311897, 0.007536784745752811, 0.016908930614590645, -0.00645368080586195, 0.019011694937944412, 0.03387679532170296, -0.007313388865441084, -0.0656295195221901, -0.005492836702615023, 0.03953808173537254, -0.0001705317699816078, 0.007799589540809393, -0.040753234177827835, 0.02462819404900074, 0.042741674929857254, -0.041982170194387436, 0.028286244720220566, 0.009562535211443901, 0.01749569922685623, -0.04856794327497482, 0.045799270272254944, -0.009819027036428452, 0.004810944199562073, -0.06139654293656349, -0.008006034418940544, -0.055478814989328384, 0.03130033239722252, 0.008146977983415127, -0.00683016749098897, -0.07640763372182846, 0.015455890446901321, 0.016043156385421753, -0.041554249823093414, -0.013202760368585587, 0.019964054226875305, -0.008432464674115181, -0.08718843013048172, 0.035996682941913605, -0.012914905324578285, -0.014843044802546501, -0.005903691053390503, 0.006772981025278568, 0.021119873970746994, -0.002946133492514491, -0.06771913915872574, -0.026477623730897903, 0.02468038909137249, -0.06296233832836151, -0.018754713237285614, 0.01606830395758152, 0.022727953270077705, -0.03532032296061516, -0.021841667592525482, 0.030953941866755486, -0.05356467887759209, -0.0010542995296418667, 0.08929487317800522, 0.023168355226516724, 0.06069372966885567, -0.011530246585607529, 0.02660539373755455, 0.016029255464673042, 0.03634883090853691, 0.01813172549009323, -0.04819437488913536, -0.022121228277683258, -0.007501972373574972, -0.051882144063711166, 0.03516826406121254, 0.028598802164196968, -0.05150093883275986, 0.025794148445129395, -0.01466633565723896, 0.028247453272342682, 0.03628142178058624, 0.019473478198051453, 0.011591292917728424, 0.014993695542216301, 0.006685324013233185, -0.028320908546447754, -0.02636122517287731, 0.013652117922902107, 0.03970296308398247, -0.07665614038705826, -0.015285033732652664, -0.025256216526031494, -0.016543593257665634, -0.018697626888751984, -0.027244919911026955, -0.006128869019448757, 0.011180526576936245, 0.0036686016246676445, -0.01868594065308571, -0.06529002636671066, 0.08732914179563522, 0.020248133689165115, -0.048524580895900726, 0.0045815277844667435, 0.022219613194465637, 0.030099010095000267, 0.04235070198774338, -0.00389485084451735, 0.08871639519929886, 0.016689900308847427, 0.02923797070980072, -0.03417649492621422, 0.04359395056962967, -0.0211366917937994, -0.0679810643196106, -0.023950448259711266, 0.059311043471097946, 0.0011056405492126942, 0.008552628569304943, 0.010789405554533005, -0.016062935814261436, 0.005158679094165564, 0.01970665343105793, 0.0447448268532753, 0.021114526316523552, -0.02564590610563755, -0.028358982875943184, -0.01902480609714985, -0.012388069182634354, 0.02891518920660019, 0.02925046905875206, -0.019877059385180473, -0.03717760741710663, -0.028062928467988968, -0.025965550914406776, 0.0023310454562306404, 0.021663175895810127, 0.06460772454738617, -0.015897203236818314, 0.013678817078471184, 0.10274334251880646, 0.06286610662937164, 0.0032209567725658417, -0.023826774209737778, 0.000007479794476239476, 0.03395923972129822, 0.05701982602477074, -0.01450468972325325, 0.03947897255420685, 0.009952675551176071, -0.04918818175792694, -0.02399853803217411, 0.041168875992298126, -0.020368073135614395, 0.015930520370602608, -0.03336305171251297, -0.06445863842964172, 0.07668698579072952, -0.04124264046549797, 0.0040788594633340836, 0.03280119597911835, 0.09905420988798141, 0.027579203248023987, 0.03829093649983406, 0.022236894816160202, -0.08652061969041824, 0.0741967260837555, -0.011933867819607258, 0.023305241018533707, 0.01011796947568655, -0.006434626877307892, 0.07900582998991013, -0.00404755724593997, 0.021566923707723618, 0.04359498992562294, -0.06416599452495575, -0.07379782199859619, -0.031235110014677048, 0.0070732468739151955, 0.07033917307853699, -0.01749112270772457, -0.03224417567253113, 0.05545606091618538, 0.011024294421076775, 0.014358967542648315, 0.003920795861631632, 0.014172310009598732, 0.005118348635733128, -0.059458013623952866, -0.05386451259255409, 0.043789323419332504, 0.03477851301431656, -0.02648768201470375, -0.02428288199007511, 0.01598956622183323, -0.01691463403403759, -0.041048336774110794, 0.04299478232860565, -0.04028921201825142, 0.02764558419585228, 0.0003436648694332689, 0.020922455936670303, -0.0425211600959301, 0.0343920923769474, -0.011487270705401897, 0.033964063972234726, -0.021736111491918564, -0.009955436922609806, -0.030333315953612328, -0.017331868410110474, 0.11587820202112198, 0.05067427456378937, -0.011608973145484924, -0.03340936452150345, 0.011937939561903477, 0.024174369871616364, -0.04480263963341713, -0.015223574824631214, -0.003377698827534914, -0.013075634837150574, -0.024524658918380737, -0.05476491153240204, -0.039022047072649, 0.01689661294221878, -0.018825817853212357, -0.003809194779023528, 0.08184943348169327, -0.02614160068333149, 0.03971355780959129, 0.015910740941762924, -0.02355457842350006, 0.0007656152592971921, -0.03170185536146164, -0.04789412394165993, 0.004908651579171419, 0.030665550380945206, -0.005133085418492556, 0.03248422592878342, -0.030820686370134354, -0.008101675659418106, -0.038624148815870285, -0.03664528205990791, 0.0352281853556633, 0.016414547339081764, 0.04991791769862175, -0.009051747620105743, 0.04025907814502716, -0.04683522507548332, 0.02276657335460186, -0.00247343466617167, -0.03666733577847481, -0.05491209030151367, -0.041685301810503006, 0.016321592032909393, 0.01223711110651493, 0.033543605357408524, 0.007293696980923414, -0.00679074227809906, -0.0382600873708725, 0.02517641708254814, 0.02098151110112667, 0.043478403240442276, 0.01566152274608612, -0.005807989276945591, -0.0492134764790535, -0.04129929840564728, 0.049756284803152084, -0.07060705125331879, -0.007008558604866266, -0.023543689399957657, -0.0485529862344265, 0.027918104082345963, -0.06311792880296707, -0.02513640560209751, -0.019091041758656502, 0.0005383812240324914, 0.034411292523145676, 0.012952730990946293, 0.0004936876357533038, 0.031048743054270744, 0.012648427858948708, 0.02131618931889534, 0.01745201274752617, 0.001643156516365707, 0.06204305589199066, -0.0007752888486720622, 0.0401633121073246, 0.050942517817020416, 0.02133204974234104, 0.012956774793565273, -0.014413761906325817, 0.004701985977590084, -0.05036146193742752, -0.26520344614982605, 0.026778360828757286, -0.01910765841603279, -0.047166526317596436, 0.026119884103536606, -0.00999740045517683, -0.006072572432458401, -0.045485347509384155, -0.038516104221343994, 0.0016910538543015718, -0.01221807487308979, -0.021457288414239883, 0.011828162707388401, 0.04092259705066681, 0.001929905149154365, 0.01505613885819912, -0.009629310108721256, -0.04785975441336632, -0.017519671469926834, 0.031119318678975105, 0.016148487105965614, -0.0379616916179657, 0.008525681681931019, 0.04828115180134773, 0.021499013528227806, 0.02257402054965496, -0.0768992006778717, 0.06835012882947922, -0.06664741039276123, -0.03166625276207924, -0.026666022837162018, -0.005053525324910879, -0.0036009899340569973, 0.009420514106750488, 0.001861502300016582, -0.009728018194437027, 0.026469724252820015, 0.02110634557902813, 0.023748548701405525, 0.016333911567926407, -0.008321449160575867, -0.03566291183233261, 0.030329739674925804, -0.0351979099214077, 0.07744628190994263, -0.021791692823171616, -0.09711173176765442, -0.036289531737565994, -0.04021819680929184, 0.08410956710577011, -0.037534456700086594, -0.04015946388244629, -0.029576538130640984, 0.04100821539759636, 0.005553813651204109, 0.010156222619116306, -0.0011367558035999537, 0.01645275391638279, -0.0603737011551857, -0.025389889255166054, -0.02064663916826248, -0.023996390402317047, -0.029690466821193695, -0.0450797863304615, -0.005390644073486328, -0.044003553688526154, -0.04082037881016731, -0.03821110725402832, 0.06073402240872383, 0.03505814075469971, -0.05212752893567085, 0.01803123764693737, -0.023451155051589012, -0.08843571692705154, -0.007441794965416193, -0.037413906306028366, -0.03997379541397095, 0.012013903819024563, 0.023480070754885674, 0.03655745089054108, -0.054153308272361755, -0.028069013729691505, 0.019844042137265205, -0.0034667158033698797, -0.01056667324155569, -0.010789399966597557, 0.013734444044530392, 0.009762241505086422, -0.026558926329016685, 0.0003312272601760924, 0.04334573820233345, 0.004222283139824867, -0.03508633375167847, -0.01541369128972292, -0.02703731693327427, -0.004720752593129873, 0.002127707237377763, 0.01176097709685564, 0.011255479417741299, 0.07179663330316544, 0.012890596874058247, -0.06427420675754547, -0.02638177014887333, -0.045574501156806946, -0.030337102711200714, 0.012260165065526962, -0.07635445892810822, 0.016129838302731514, 0.039978813380002975, 0.02302270196378231, -0.013933924026787281, -0.05114617943763733, 0.06851089745759964, -0.05084424838423729, -0.03580285608768463, 0.004224893171340227, 0.03094363771378994, 0.0028634739574044943, 0.01150248572230339, -0.00142985163256526, -0.06413352489471436, 0.04022716358304024, 0.010887669399380684, -0.027315078303217888, -0.03391222655773163, -0.021126866340637207, -0.010527190752327442, -0.023122889921069145, -0.011232640594244003, 0.017759917303919792, -0.03519967943429947, 0.011181791312992573, 0.04486551508307457, -0.025799445807933807, 0.029940318316221237, -0.03239632397890091, -0.03392142429947853, -0.03803655505180359, 0.034020066261291504, 0.018550103530287743, -0.027677860110998154, 0.0172941405326128, 0.008093638345599174, 0.030603379011154175, 0.048454541712999344, 0.0009205768001265824, 0.024707820266485214, 0.010859206318855286, -0.006194394547492266, 0.00744139077141881, 0.022797444835305214, -0.042108166962862015, 0.021561209112405777, -0.031169012188911438, -0.03134604170918465, 0.012793357484042645, 0.049949511885643005, -0.0032673445530235767, 0.003916626796126366, -0.030437320470809937, 0.029784096404910088, -0.04964510351419449, 0.0027497787959873676, -0.00680494075641036, -0.018332529813051224, 0.05429045855998993, 0.014435294084250927, 0.01387997530400753, -0.03173843026161194, -0.020029861479997635, 0.021397927775979042, 0.05564090982079506, -0.019615061581134796, 0.0005317238392308354, 0.0012030379148200154, 0.0037678079679608345, 0.01957455836236477, 0.033832285553216934, 0.040598563849925995, 0.024649091064929962, 0.006132407579571009, -0.03734113648533821, 0.020563257858157158, 0.025848446413874626, 0.05719321593642235, 0.026028433814644814, -0.03827160969376564, -0.00862473901361227, 0.0009089158847928047, -0.020071087405085564, -0.023644590750336647, 0.017518917098641396, 0.00980214960873127, -0.005857975222170353, -0.04318809509277344, -0.08260711282491684, 0.02065254934132099, 0.032659780234098434, -0.007680137176066637, 0.005225985310971737, -0.0033118196297436953, 0.009367246180772781, -0.05525059625506401, 0.050928108394145966, 0.08134829252958298, -0.06425072997808456, -0.016649579629302025, -0.008957350626587868, 0.02177366428077221, -0.011437494307756424, 0.01717602089047432, -0.0632561445236206, -0.05080638825893402, -0.00717652915045619, 0.005459370091557503, -0.02712027169764042, -0.03534945473074913, -0.0069685741327703, -0.011249327100813389, -0.0030196623411029577, 0.010475518181920052, -0.00641757994890213, 0.006544914096593857, 0.00993705540895462, -0.05608115345239639, 0.0545816533267498, -0.014686934649944305, -0.010741877369582653, 0.020536743104457855, -0.001831808709539473, 0.037123143672943115, -0.031306952238082886, 0.04068097844719887, 0.020715879276394844, -0.012118813581764698, 0.02127186581492424, -0.02783026732504368, -0.009044701233506203, -0.012223736383020878, 0.014599403366446495, 0.0030690692365169525, 0.041234273463487625, -0.013684122823178768, -0.013803080655634403, -0.046667490154504776, 0.0032697212882339954, 0.023722177371382713, 0.008427733555436134, 0.007381625007838011, 0.030916616320610046, -0.002169988350942731, 0.04496046528220177, -0.016085047274827957, -0.030723342671990395, 0.04737655818462372, -0.04240203648805618, -0.0422542579472065, -0.005423248745501041, -0.03543975204229355, 0.021711884066462517, 0.03257692977786064, 0.018374139443039894, -0.08331113308668137, 0.059593360871076584, 0.0352688729763031, 0.0022491810377687216, 0.04934922233223915, -0.01982475444674492, -0.0009796270169317722, -0.028484079986810684, -0.03719840943813324, -0.08972049504518509, 0.005376230459660292, 0.011961812153458595, -0.023854125291109085, -0.029719389975070953, 0.017876237630844116, -0.03664759546518326, 0.031793802976608276, -0.05521460250020027, -0.02863255888223648, 0.004925437271595001, -0.025717467069625854, 0.0031385240145027637, 0.00673180166631937, -0.040252167731523514, 0.013314125128090382, 0.059409983456134796, -0.05139882117509842, -0.00908960122615099, -0.0471622496843338, 0.07526864856481552, -0.015291559509932995, 0.05397329851984978, 0.000023266284188139252, -0.02710871212184429, 0.06646624952554703, 0.028673823922872543, 0.024833915755152702, 0.03765025734901428, -0.002289954572916031, 0.01917768269777298, 0.04864462465047836, -0.0032148316968232393, -0.006649470888078213, 0.014640918001532555, -0.022574806585907936, -0.0569368340075016, 0.05800102651119232, -0.006371302530169487, 0.012763869017362595, -0.029768656939268112, 0.05203040689229965, 0.00856296718120575, -0.01765792816877365, -0.05324718728661537, 0.039940059185028076, -0.04600697010755539, -0.028573302552103996, -0.03970041498541832, 0.005811823531985283, -0.04560886695981026, 0.03605678305029869, 0.0035490680020302534, 0.0061950357630848885, 0.04407815635204315, 0.003046369645744562, -0.013493720442056656, 0.02053956128656864, 0.06376013159751892, 0.07168681919574738, 0.03688564524054527, 0.01824229769408703, 0.06071655452251434, -0.013094840571284294, -0.04824741184711456, -0.008935851976275444, -0.020934946835041046, -0.0341670885682106, -0.029384689405560493, -0.02592417784035206, 0.05450613424181938, -0.012662185356020927, 0.0677420124411583, -0.00016859527386259288, 0.034727588295936584, -0.013601035811007023, -0.004554665181785822, 0.02879207581281662, 0.06340061128139496, 0.03382498770952225, 0.054467733949422836, -0.016728630289435387, -0.04179588332772255, 0.013597669079899788, -0.022362923249602318, 0.004665220621973276, 0.0033520301803946495, -0.02731727994978428, -0.011826818808913231, 0.003101943526417017, 0.04436918720602989, 0.0684407651424408, -0.05044364556670189, -0.017676647752523422, 0.002564659109339118, 0.05086827650666237, 0.023117173463106155, 0.04983144998550415, -0.01928125135600567, -0.01359404157847166, -0.00373389502055943, -0.05585851892828941, 0.008350002579391003, 0.016759227961301804, -0.008563720621168613, 0.045767463743686676, -0.030737323686480522, 0.009575963020324707, 0.025232315063476562, -0.01531678345054388, 0.011786124669015408, -0.05932516232132912, -0.029255898669362068, -0.03241958096623421, -0.038255222141742706, -0.0036251910496503115, -0.010175773873925209, -0.006996311713010073, -0.022301090881228447, -0.032127004116773605, -0.006304282695055008, -0.03070603683590889, 0.005568629130721092, -0.05999757722020149, -0.023896751925349236, 0.006810496561229229, 0.0029122827108949423, -0.024808095768094063, 0.008175110444426537, 0.05982298031449318, -0.015643112361431122, 0.007620610762387514, 0.0015962263569235802, 0.02210305631160736, 0.03697440028190613, 0.018698599189519882, 0.007327512837946415, -0.08320886641740799, 0.006682405713945627, 0.013150741346180439, 0.03189895302057266, -0.07683094590902328, 0.011720049194991589, 0.04870707914233208, -0.021992700174450874, 0.03922996670007706, -0.010206726379692554, 0.009719830006361008, -0.02131369523704052, -0.017207633703947067, -0.02532256208360195, 0.01971609890460968, 0.032219234853982925, 0.003394074970856309, 0.08529897034168243, 0.024627774953842163, -0.005775713361799717, -0.03514621779322624, -0.035284623503685, 0.01803923398256302, -0.005484134424477816, -0.029618779197335243, -0.0005482339765876532, -0.03437308222055435, -0.08297153562307358, -0.009647039696574211, 0.005135062150657177, -0.05329344794154167, -0.03886410593986511, 0.004672275390475988, -0.04261365532875061, -0.043650832027196884, 0.03397148847579956, -0.029708674177527428, -0.020544718950986862, -0.004304032307118177, -0.015778884291648865, -0.0005502442945726216, 0.022316521033644676, 0.01323038898408413, 0.00895379763096571, 0.018952643498778343, -0.03956593573093414, -0.012324019335210323, 0.00691352179273963, 0.02282794564962387, 0.06007886305451393, 0.02061462588608265, 0.014222199097275734 ]
[ -0.06255892664194107, -0.014386264607310295, -0.025021636858582497, 0.004353433847427368, 0.02290957421064377, -0.06839010119438171, -0.02448257803916931, 0.0378129668533802, 0.0031109792180359364, -0.017408033832907677, 0.02116965502500534, -0.08403076976537704, -0.004230237565934658, -0.055247191339731216, 0.09366416931152344, 0.029607662931084633, -0.008375567384064198, -0.030440596863627434, -0.010720955207943916, 0.031488850712776184, 0.0032729911617934704, -0.07070010900497437, -0.0013364607002586126, -0.04991966113448143, -0.026839954778552055, 0.05751527473330498, 0.039704177528619766, -0.03145059943199158, 0.008482370525598526, -0.22616559267044067, -0.00344052049331367, 0.021068396046757698, -0.01258265133947134, -0.007133754435926676, 0.00408763624727726, 0.039909690618515015, 0.027363434433937073, 0.017858291044831276, -0.01068843249231577, 0.06968829035758972, 0.007770499214529991, 0.009647579863667488, -0.05972699075937271, -0.004243482835590839, 0.0867321640253067, -0.037126317620277405, -0.06739577651023865, -0.020232073962688446, 0.02729419805109501, 0.006092866882681847, -0.023260725662112236, 0.004193647298961878, -0.008611166849732399, -0.01802539825439453, -0.039749786257743835, 0.029883328825235367, 0.06717552244663239, 0.065834641456604, 0.06402378529310226, 0.010554468259215355, 0.006622225046157837, 0.001977019477635622, -0.14917975664138794, 0.09284889698028564, 0.016393674537539482, 0.04343140125274658, -0.04054277390241623, -0.01839548908174038, -0.010641404427587986, 0.08292058855295181, -0.023023420944809914, 0.011513383127748966, -0.013558560982346535, 0.04164927080273628, -0.03073173016309738, 0.008120007812976837, 0.031861063092947006, -0.007930103689432144, 0.05333833396434784, -0.012234929949045181, 0.009098180569708347, 0.00656707352027297, -0.049979500472545624, -0.015903819352388382, 0.003935268614441156, 0.041639164090156555, -0.02762610651552677, 0.05272005870938301, -0.002823127433657646, 0.012641158886253834, 0.060791581869125366, -0.013802043162286282, 0.05974613130092621, 0.02646172046661377, -0.06323591619729996, -0.014318159781396389, 0.03372669592499733, -0.0021563763730227947, -0.03558928519487381, 0.42410391569137573, 0.016778886318206787, -0.03370516747236252, 0.04984963312745094, 0.045504629611968994, 0.0009546934743411839, 0.014979775995016098, 0.0025743977166712284, -0.03516298532485962, 0.045914314687252045, -0.044974736869335175, -0.00534654688090086, -0.031020957976579666, 0.09550188481807709, -0.05342249944806099, 0.04578471928834915, -0.02732163295149803, 0.012033447623252869, -0.007066352292895317, -0.04496736451983452, 0.04515876621007919, 0.0030608924571424723, 0.002564248861745, 0.04325217008590698, 0.02595430426299572, 0.04456775635480881, 0.0047208392061293125, -0.0031655593775212765, 0.03055405244231224, 0.0389351025223732, 0.01264975592494011, 0.008870878256857395, -0.0013235679361969233, -0.03732544556260109, 0.02066842094063759, 0.009847164154052734, 0.03607327491044998, 0.025388766080141068, 0.008340096101164818, 0.00851156935095787, 0.019746506586670876, -0.009967355988919735, -0.012577636167407036, 0.02253813110291958, 0.02117982693016529, -0.02048378996551037, 0.11409695446491241, -0.033493027091026306, -0.009059553034603596, -0.03802170604467392, -0.007652666419744492, 0.03047284111380577, 0.04267929866909981, -0.022378768771886826, -0.025163492187857628, 0.026802241802215576, -0.015221983194351196, 0.035555459558963776, -0.003698283340781927, -0.041370686143636703, 0.017955441027879715, -0.011237196624279022, -0.04425216093659401, 0.031026169657707214, 0.034641511738300323, 0.0034904037602245808, -0.09253647923469543, -0.023380490019917488, 0.02073841355741024, -0.013732295483350754, -0.09548304975032806, 0.04927193373441696, 0.027761342003941536, -0.018591100350022316, -0.008715356700122356, 0.049299098551273346, -0.04313001409173012, 0.0011053617345169187, 0.020011987537145615, 0.06681233644485474, 0.04080504924058914, -0.0028345331083983183, 0.007017285563051701, -0.038580864667892456, -0.011048726737499237, -0.052596427500247955, -0.07483410835266113, -0.06055809557437897, -0.011883915401995182, -0.0128667326644063, -0.02072044648230076, -0.06646496802568436, 0.011443449184298515, -0.038173746317625046, 0.025467857718467712, 0.0006771294865757227, 0.019475175067782402, 0.008731667883694172, -0.028818190097808838, -0.00518687441945076, -0.052380628883838654, 0.018812935799360275, 0.02389196865260601, -0.010110236704349518, 0.006262090522795916, -0.05259238928556442, 0.005234438460320234, 0.04766269028186798, -0.03945077210664749, 0.05236874148249626, 0.010242029093205929, -0.033150721341371536, -0.02810491994023323, -0.031294576823711395, 0.031497523188591, -0.008252136409282684, -0.03717682138085365, -0.026566283777356148, -0.021776551380753517, 0.009540664032101631, 0.05877566710114479, -0.044716984033584595, -0.0010042393114417791, -0.08609502762556076, -0.3641848862171173, -0.021873440593481064, -0.022887608036398888, -0.015434900298714638, 0.03961951658129692, -0.04181034117937088, 0.04091877490282059, -0.014873805455863476, 0.0003292578912805766, 0.05402786657214165, 0.10029399394989014, 0.006673318333923817, 0.01111561432480812, -0.049794360995292664, -0.0011540577979758382, 0.04350126534700394, 0.008761946111917496, -0.006724376231431961, -0.01760997623205185, 0.007852256298065186, -0.02602558210492134, -0.06081821769475937, -0.0468127578496933, -0.015148164704442024, -0.037723835557699203, -0.031366318464279175, 0.09892892837524414, 0.04324891418218613, 0.04430542141199112, -0.03028072789311409, 0.04994608834385872, 0.0631808340549469, 0.0050617787055671215, -0.12986168265342712, 0.024474432691931725, 0.025642264634370804, 0.02662641555070877, 0.03709544241428375, 0.008385901339352131, 0.013424205593764782, -0.04728516563773155, 0.03214706480503082, -0.05354035273194313, -0.044352758675813675, -0.03141240030527115, 0.0352654755115509, -0.005163237918168306, 0.007926380261778831, -0.027668805792927742, 0.0566900372505188, -0.01966790296137333, 0.029200803488492966, -0.01717149093747139, 0.02393261529505253, -0.025394216179847717, -0.015536457300186157, -0.08198074251413345, -0.00245555373840034, 0.0009186566458083689, 0.009587757289409637, 0.03993380814790726, 0.009229041635990143, 0.050858620554208755, -0.057191554456949234, 0.012465243227779865, 0.013531130738556385, -0.011398973874747753, -0.006425952538847923, 0.059265829622745514, 0.021508129313588142, 0.005783344618976116, 0.11481969803571701, -0.0232480987906456, 0.041630785912275314, -0.002203811425715685, 0.011473361402750015, 0.00035474143805913627, -0.0020212996751070023, -0.001021955395117402, -0.021433904767036438, 0.06652580201625824, -0.020316017791628838, 0.0638149082660675, -0.03486863523721695, -0.026819754391908646, 0.031683262437582016, -0.01682557910680771, -0.018185671418905258, 0.012758346274495125, 0.015396926552057266, -0.036035820841789246, -0.004228605888783932, -0.007733434904366732, -0.014181358739733696, 0.06796257942914963, 0.018735963851213455, -0.26467588543891907, 0.02088339626789093, 0.06797714531421661, 0.043634019792079926, 0.005654081702232361, 0.0006295734201557934, 0.013330038636922836, -0.055930569767951965, 0.013608136214315891, -0.02296711690723896, 0.02744927816092968, 0.0339643657207489, -0.012891627848148346, -0.01778147928416729, -0.02801794745028019, -0.02440032735466957, 0.01802957057952881, 0.010497934184968472, -0.02497398667037487, 0.030687380582094193, -0.014155491255223751, -0.05458731949329376, 0.13866181671619415, 0.030833596363663673, -0.020507903769612312, -0.04058054834604263, -0.008532794192433357, 0.02916889637708664, 0.014459278434515, 0.02751256339251995, -0.04336638003587723, 0.01522123347967863, -0.004139662720263004, -0.020098505541682243, 0.03269881755113602, -0.030518438667058945, -0.010707780718803406, 0.02257497049868107, 0.04292592778801918, -0.021210290491580963, -0.0621749609708786, 0.02896738424897194, -0.037983767688274384, 0.023001912981271744, 0.004470291081815958, -0.015316013246774673, -0.0062480103224515915, -0.0021971503738313913, -0.06914196908473969, 0.035135697573423386, -0.01770811714231968, -0.045314062386751175, 0.005811324343085289, -0.020251646637916565, 0.029524950310587883, 0.07436221092939377, 0.016489943489432335, -0.021866563707590103, -0.01159134041517973, -0.014527878724038601, -0.011762118898332119, -0.0809524804353714, 0.10712727904319763, 0.008892704732716084, -0.0015072849346324801 ]
[ 0.005611905828118324, -0.009007087908685207, -0.02925695851445198, -0.0017474207561463118, 0.005429967772215605, 0.016133494675159454, 0.018010180443525314, 0.025249021127820015, -0.01268861722201109, -0.027038928121328354, -0.004805411212146282, 0.019622087478637695, 0.022906146943569183, 0.005216554738581181, -0.014152339659631252, 0.0034886521752923727, -0.02116324007511139, 0.0022479325998574495, 0.019913416355848312, -0.038611963391304016, -0.029372120276093483, -0.013188439421355724, 0.034755952656269073, 0.008502247743308544, 0.002478222595527768, 0.021579621359705925, -0.05493740364909172, -0.024805909022688866, 0.022019170224666595, -0.10512244701385498, 0.005436182487756014, -0.002728103194385767, 0.005271598696708679, -0.022744061425328255, 0.016212057322263718, 0.027588501572608948, -0.002932480303570628, 0.018673066049814224, -0.017263680696487427, 0.00857826229184866, 0.05389204993844032, 0.00038916352787055075, -0.01571575179696083, -0.0011193584650754929, -0.035507626831531525, -0.0169428288936615, -0.029171224683523178, -0.010234827175736427, -0.014145066030323505, 0.00384174264036119, -0.039809051901102066, 0.0018111581448465586, -0.006860072258859873, 0.023295078426599503, 0.00481421547010541, 0.01924102008342743, -0.019483566284179688, -0.0050050122663378716, 0.01719658449292183, -0.010138657875359058, -0.012425201013684273, 0.03402576595544815, -0.04278605431318283, -0.006573093123733997, -0.024734463542699814, -0.0026297918520867825, -0.019075889140367508, -0.0003205013053957373, -0.01279925461858511, 0.016542239114642143, -0.012915348634123802, 0.04888974502682686, -0.04878188297152519, -0.043240346014499664, -0.004752844572067261, 0.01868397556245327, 0.008243359625339508, -0.03626358509063721, -0.010552181862294674, 0.022923609241843224, -0.03433941677212715, 0.039778683334589005, 0.05501585826277733, -0.011005771346390247, 0.0053695873357355595, -0.0018342608818784356, 0.0055647012777626514, -0.0037682820111513138, 0.0009847519686445594, 0.002090410329401493, 0.013352630659937859, 0.0015760187525302172, 0.008674554526805878, 0.006328750867396593, -0.05354280397295952, -0.0324176587164402, 0.04254685342311859, -0.032285597175359726, -0.02222941257059574, 0.8449739813804626, -0.02894585393369198, 0.0015312330797314644, 0.03698461875319481, -0.01879945397377014, -0.007004670798778534, 0.008709726855158806, -0.0013587885769084096, -0.026913579553365707, -0.005875895265489817, 0.0015522623434662819, 0.0006021675071679056, -0.011051412671804428, 0.03666146099567413, -0.0010822811163961887, 0.05663897842168808, 0.02216552197933197, 0.029284371063113213, 0.0016681210836395621, 0.02677140384912491, 0.012118433602154255, -0.017057185992598534, -0.03385606035590172, 0.012455820105969906, 0.050911642611026764, -0.0029890313744544983, -0.18701867759227753, -0.011479873210191727, -6.478078837720577e-33, 0.06445152312517166, -0.023080214858055115, 0.0040064905770123005, -0.007357505615800619, -0.008530840277671814, 0.00821113120764494, 0.014241495169699192, -0.0061599984765052795, -0.04626559466123581, -0.020703693851828575, -0.01799016445875168, -0.005915565881878138, -0.018552932888269424, 0.007076247129589319, 0.013125675730407238, -0.0018051422666758299, 0.013405423611402512, 0.06800755858421326, 0.0002457196533214301, 0.028761062771081924, 0.004112332593649626, 0.03547243773937225, 0.0029186939354985952, 0.025208674371242523, 0.014700408093631268, 0.027744727209210396, 0.024917272850871086, 0.005396301858127117, -0.02946445345878601, -0.05023312196135521, -0.024779945611953735, 0.00748282577842474, -0.04501887410879135, 0.006575323641300201, 0.005199624225497246, -0.029498374089598656, -0.029130471870303154, -0.0069895521737635136, -0.04891405254602432, -0.016281863674521446, -0.009977808222174644, 0.013406412675976753, -0.003987935371696949, -0.03609801456332207, -0.007084115874022245, 0.006730370689183474, 0.0035530172754079103, -0.016781015321612358, 0.009230105206370354, 0.024770088493824005, 0.021108761429786682, 0.05563107132911682, -0.03247321397066116, 0.019467106088995934, -0.04028400778770447, 0.0024928755592554808, -0.017528783529996872, 0.023418186232447624, 0.03419172763824463, -0.008780939504504204, 0.03227013722062111, -0.011932778172194958, -0.025455111637711525, 0.020410597324371338, 0.04282886162400246, -0.015077977441251278, -0.003342993324622512, 0.023287121206521988, -0.0012756917858496308, 0.015815097838640213, -0.036901623010635376, -0.004062066785991192, -0.023296935483813286, -0.017930088564753532, 0.04397507384419441, -0.02103826403617859, -0.013056840747594833, -0.016077255830168724, 0.022566884756088257, 0.02410663664340973, 0.010619351640343666, -0.020212674513459206, 0.039702512323856354, -0.03702990710735321, -0.04705344885587692, -0.023602766916155815, 0.05769653245806694, 0.012999722734093666, -0.021050304174423218, 0.02645152620971203, 0.018239958211779594, 0.013366583734750748, -0.0005331009160727262, 0.013006690889596939, -0.04891812056303024, 6.992173210529043e-33, -0.012405394576489925, -0.03098846971988678, 0.00048406727728433907, 0.004995450377464294, 0.009052781388163567, -0.0011473862687125802, 0.020557142794132233, -0.00894869677722454, -0.009399882517755032, 0.02080724574625492, -0.003457652637735009, -0.0028762805741280317, 0.0038771703839302063, 0.04677753150463104, 0.06639966368675232, -0.009790192358195782, 0.0038442437071353197, -0.01674564927816391, -0.0024646890815347433, 0.04612747207283974, -0.006037227343767881, 0.002285153139382601, -0.022421246394515038, 0.0060184067115187645, -0.0008655792335048318, 0.060583434998989105, 0.01454484649002552, 0.012586607597768307, -0.019135581329464912, 0.0067140767350792885, -0.014172036200761795, 0.020002217963337898, -0.03918178007006645, 0.008558754809200764, 0.005908261984586716, 0.03974463790655136, -0.026659931987524033, -0.0004317699058447033, 0.006433848291635513, 0.009722210466861725, 0.04091683402657509, 0.016859866678714752, 0.0036414077039808035, 0.03605072572827339, 0.01169790793210268, -0.003593379631638527, 0.006999230477958918, -0.0008196044946089387, 0.012933907099068165, 0.010721306316554546, -0.020278992131352425, 0.009028041735291481, 0.029314739629626274, 0.017064526677131653, 0.04515402391552925, -0.0507100410759449, -0.004636058118194342, 0.02580076828598976, -0.054788704961538315, -0.051016706973314285, -0.05328206345438957, 0.007749558426439762, -0.006711090449243784, -0.001499656355008483, -0.03927166014909744, -0.025743775069713593, -0.022345159202814102, -0.015459009446203709, -0.012708604335784912, -0.012363916262984276, 0.025714514777064323, -0.016221309080719948, 0.007047706283628941, 0.025718262419104576, 0.0033627983648329973, -0.028792081400752068, -0.012641742825508118, -0.007460338994860649, 0.0003686850832309574, 0.00418127654120326, 0.021763570606708527, -0.007289747707545757, 0.03706944361329079, -0.013963508419692516, 0.012710231356322765, -0.013472316786646843, -0.011937106028199196, 0.01511960569769144, 0.022751033306121826, -0.020000794902443886, 0.04331016167998314, -0.007484000641852617, -0.020937591791152954, 0.0330132432281971, 0.05346572399139404, -1.2511431002337758e-8, -0.007120613940060139, -0.0037977697793394327, -0.026364710181951523, 0.02832813374698162, -0.017760293558239937, -0.0005923901335336268, 0.0008663004264235497, -0.00752086378633976, -0.0325901173055172, -0.009272430092096329, 0.04168295860290527, -0.004064642824232578, 0.010760569013655186, 0.027697617188096046, 0.02591334655880928, -0.02995753288269043, -0.014393679797649384, -0.03985190391540527, 0.029192421585321426, -0.03228776901960373, -0.03919259086251259, 0.0318644642829895, 0.02344640903174877, -0.04948873445391655, -0.04040023684501648, -0.0001228286128025502, 0.04103152081370354, -0.09510263800621033, -0.0096470657736063, 0.021050628274679184, 0.004598949570208788, -0.015793204307556152, -0.07597778737545013, 0.009095737710595131, 0.02544211409986019, 0.012666100636124611, 0.020088225603103638, 0.009293577633798122, 0.04505941644310951, 0.006596147548407316, -0.019290562719106674, 0.028422381728887558, -0.007253821939229965, -0.03260317072272301, -0.015106807462871075, 0.01368065644055605, -0.025420494377613068, -0.0009830284398049116, 0.004686515778303146, -0.012191408313810825, 0.0405287966132164, 0.01914374716579914, 0.016414988785982132, 0.03257637470960617, 0.023364054039120674, 0.021151455119252205, -0.004761033691465855, -0.018142743036150932, -0.037498027086257935, -0.022735605016350746, -0.002585057867690921, 0.014164509251713753, -0.007212205324321985, -0.046519018709659576 ]
python-polyglot-modulenotfounderror-no-module-named-icu
https://markhneedham.com/blog/2017/11/28/python-polyglot-modulenotfounderror-no-module-named-icu
false
2017-11-17 18:10:28
Kubernetes 1.8: Using Cronjobs to take Neo4j backups
[ "neo4j", "kubernetes", "cronjob", "backup" ]
[ "neo4j", "Kubernetes" ]
With the http://blog.kubernetes.io/2017/09/kubernetes-18-security-workloads-and.html[release of Kubernetes 1.8] Cronjobs have graduated to beta, which means we can now more easily run Neo4j backup jobs against Kubernetes clusters. Before we learn how to write a Cronjob let's first create a local Kubernetes cluster and deploy Neo4j. == Spinup Kubernetes & Helm [source,bash] ---- minikube start --memory 8192 helm init && kubectl rollout status -w deployment/tiller-deploy --namespace=kube-system ---- == Deploy a Neo4j cluster [source,bash] ---- helm repo add incubator https://kubernetes-charts-incubator.storage.googleapis.com/ helm install incubator/neo4j --name neo-helm --wait --set authEnabled=false,core.extraVars.NEO4J_dbms_backup_address=0.0.0.0:6362 ---- == Populate our cluster with data We can run the following command to check our cluster is ready: [source,bash] ---- kubectl exec neo-helm-neo4j-core-0 \ -- bin/cypher-shell --format verbose \ "CALL dbms.cluster.overview() YIELD id, role RETURN id, role" +-----------------------------------------------------+ | id | role | +-----------------------------------------------------+ | "0b3bfe6c-6a68-4af5-9dd2-e96b564df6e5" | "LEADER" | | "09e9bee8-bdc5-4e95-926c-16ea8213e6e7" | "FOLLOWER" | | "859b9b56-9bfc-42ae-90c3-02cedacfe720" | "FOLLOWER" | +-----------------------------------------------------+ ---- Now let's create some data: [source,bash] ---- kubectl exec neo-helm-neo4j-core-0 \ -- bin/cypher-shell --format verbose \ "UNWIND range(0,1000) AS id CREATE (:Person {id: id})" 0 rows available after 653 ms, consumed after another 0 ms Added 1001 nodes, Set 1001 properties, Added 1001 labels ---- Now that our Neo4j cluster is running and contains data we want to take regular backups. == Neo4j backups The https://neo4j.com/docs/operations-manual/current/backup/perform-backup/[Neo4j backup tool] supports full and incremental backups. == Full backup A full backup streams a copy of the store files to the backup location and any transactions that happened during the backup. Those transactions are then applied to the backed up copy of the database. == Incremental backup An incremental backup is triggered if there is already a Neo4j database in the backup location. In this case there will be no copying of store files. Instead the tool will copy any new transactions from Neo4j and apply them to the backup. == Backup Cronjob We will use a https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/[Cronjob] to execute a backup. In the example below we attach a PersistentVolumeClaim to our Cronjob so that we can see both of the backup scenarios in action. [source,yaml] ---- kind: PersistentVolumeClaim apiVersion: v1 metadata: name: backupdir-neo4j labels: app: neo4j-backup spec: accessModes: - ReadWriteOnce resources: requests: storage: 10Gi --- apiVersion: batch/v1beta1 kind: CronJob metadata: name: neo4j-backup spec: schedule: "*/1 * * * *" jobTemplate: spec: template: spec: volumes: - name: backupdir-neo4j persistentVolumeClaim: claimName: backupdir-neo4j containers: - name: neo4j-backup image: neo4j:3.3.0-enterprise env: - name: NEO4J_ACCEPT_LICENSE_AGREEMENT value: "yes" volumeMounts: - name: backupdir-neo4j mountPath: /tmp command: ["bin/neo4j-admin", "backup", "--backup-dir", "/tmp", "--name", "backup", "--from", "neo-helm-neo4j-core-2.neo-helm-neo4j.default.svc.cluster.local:6362"] restartPolicy: OnFailure ---- [source,bash] ---- $ kubectl apply -f cronjob.yaml cronjob "neo4j-backup" created ---- [source,bash] ---- kubectl get jobs -w NAME DESIRED SUCCESSFUL AGE neo4j-backup-1510940940 1 1 34s ---- Now let's view the logs from the job: [source,bash] ---- kubectl logs $(kubectl get pods -a --selector=job-name=neo4j-backup-1510940940 --output=jsonpath={.items..metadata.name}) Doing full backup... 2017-11-17 17:49:05.920+0000 INFO [o.n.c.s.StoreCopyClient] Copying neostore.nodestore.db.labels ... 2017-11-17 17:49:06.038+0000 INFO [o.n.c.s.StoreCopyClient] Copied neostore.labelscanstore.db 48.00 kB 2017-11-17 17:49:06.038+0000 INFO [o.n.c.s.StoreCopyClient] Done, copied 18 files 2017-11-17 17:49:06.094+0000 INFO [o.n.b.BackupService] Start recovering store 2017-11-17 17:49:07.669+0000 INFO [o.n.b.BackupService] Finish recovering store Doing consistency check... 2017-11-17 17:49:07.716+0000 INFO [o.n.k.i.s.f.RecordFormatSelector] Selected RecordFormat:StandardV3_2[v0.A.8] record format from store /tmp/backup 2017-11-17 17:49:07.716+0000 INFO [o.n.k.i.s.f.RecordFormatSelector] Format not configured. Selected format from the store: RecordFormat:StandardV3_2[v0.A.8] 2017-11-17 17:49:07.755+0000 INFO [o.n.m.MetricsExtension] Initiating metrics... .................... 10% ... .................... 100% Backup complete. ---- All good so far. Now let's create more data: [source,bash] ---- kubectl exec neo-helm-neo4j-core-0 \ -- bin/cypher-shell --format verbose \ "UNWIND range(0,1000) AS id CREATE (:Person {id: id})" 0 rows available after 114 ms, consumed after another 0 ms Added 1001 nodes, Set 1001 properties, Added 1001 labels ---- And wait for another backup job to run: [source,bash] ---- kubectl get jobs -w NAME DESIRED SUCCESSFUL AGE neo4j-backup-1510941180 1 1 2m neo4j-backup-1510941240 1 1 1m neo4j-backup-1510941300 1 1 17s ---- [source,bash] ---- kubectl logs $(kubectl get pods -a --selector=job-name=neo4j-backup-1510941300 --output=jsonpath={.items..metadata.name}) Destination is not empty, doing incremental backup... Doing consistency check... 2017-11-17 17:55:07.958+0000 INFO [o.n.k.i.s.f.RecordFormatSelector] Selected RecordFormat:StandardV3_2[v0.A.8] record format from store /tmp/backup 2017-11-17 17:55:07.959+0000 INFO [o.n.k.i.s.f.RecordFormatSelector] Format not configured. Selected format from the store: RecordFormat:StandardV3_2[v0.A.8] 2017-11-17 17:55:07.995+0000 INFO [o.n.m.MetricsExtension] Initiating metrics... .................... 10% ... .................... 100% Backup complete. ---- If we were to extend this job further we could have it copy each backup it takes to an S3 bucket but I'll leave that for another day.
Learn how to take backups of Neo4j clusters deployed on Kubernetes using the Cronjob feature released in Kubernetes 1.8.
null
[ -0.009384374134242535, -0.02890726551413536, -0.00945187546312809, 0.04364526644349098, 0.09225472807884216, 0.00821040477603674, 0.01634870655834675, 0.05181629955768585, -0.00020024724653922021, -0.018984239548444748, -0.029329711571335793, -0.005505184642970562, -0.04025143012404442, 0.02574245072901249, -0.010730894282460213, 0.041837334632873535, 0.061791203916072845, 0.006492956541478634, 0.022593045607209206, -0.0070590367540717125, 0.01495892833918333, 0.04170088469982147, 0.015984266996383667, 0.02739349566400051, 0.03885713219642639, 0.011079048737883568, 0.006213396321982145, 0.020398059859871864, -0.057887688279151917, -0.001996751409024, 0.018559688702225685, 0.027109773829579353, 0.0011723025236278772, -0.0028861984610557556, 0.02651534602046013, 0.0002442007535137236, -0.023977573961019516, -0.013197949156165123, -0.009675992652773857, 0.001678820583038032, -0.06165023520588875, 0.03869958594441414, 0.015165229327976704, 0.024328485131263733, -0.020449362695217133, 0.013869698159396648, -0.044121336191892624, 0.010392138734459877, 0.03028016909956932, -0.02488536946475506, -0.08479868620634079, 0.011087637394666672, -0.020818794146180153, -0.0277258213609457, -0.009222208522260189, 0.030665049329400063, 0.03228139132261276, -0.0698157250881195, 0.03776766359806061, -0.03391436114907265, -0.02382117509841919, -0.03250662237405777, 0.004976025316864252, 0.044036563485860825, 0.019092276692390442, -0.02814929559826851, 0.019821040332317352, 0.046260565519332886, -0.029695751145482063, -0.004961735103279352, 0.0058292001485824585, 0.018219122663140297, 0.0012873464729636908, -0.005549943540245295, 0.01840262860059738, -0.07347564399242401, -0.00044333899859339, 0.04960267245769501, 0.04585351422429085, 0.06713543087244034, -0.024761507287621498, -0.01179198082536459, -0.005653208587318659, 0.012393800541758537, -0.016619425266981125, -0.03408403322100639, -0.03203452005982399, -0.016278985887765884, -0.07157707214355469, 0.06503713876008987, 0.03904164955019951, -0.04328227788209915, 0.024729818105697632, 0.017863843590021133, 0.0010700892889872193, 0.03534311428666115, 0.010548224672675133, 0.028675617650151253, 0.03729722276329994, -0.02058197557926178, -0.024742182344198227, 0.005029603373259306, -0.025752445682883263, 0.0162102822214365, -0.08843333274126053, -0.044977400451898575, -0.03331535682082176, -0.015752455219626427, -0.015512029640376568, -0.0032455893233418465, -0.006483050063252449, 0.011703035794198513, -0.008844464085996151, 0.04000598192214966, -0.08033256232738495, 0.07201094180345535, 0.023320352658629417, -0.03649010881781578, 0.005609802436083555, -0.011519444175064564, 0.034497424960136414, 0.05478323623538017, -0.025642940774559975, 0.0726599171757698, -0.028046714141964912, 0.013828814961016178, -0.01379616092890501, 0.02989063784480095, -0.0230239387601614, -0.08094648271799088, -0.03266928717494011, 0.059026025235652924, -0.0018146419897675514, 0.025012698024511337, -0.00562069658190012, -0.03005838952958584, -0.03138725832104683, 0.008827174082398415, 0.07041707634925842, 0.06128440052270889, -0.004042256623506546, -0.04578811302781105, 0.018380403518676758, 0.003180109430104494, 0.03712928295135498, 0.009301925078034401, -0.010329775512218475, -0.05683828890323639, -0.055231209844350815, 0.021336184814572334, -0.011057537980377674, 0.010112389922142029, 0.013103971257805824, -0.045499980449676514, 0.013853977434337139, 0.09038936346769333, 0.04355965927243233, 0.018049143254756927, 0.003173384815454483, 0.00402630353346467, 0.045450128614902496, 0.032915789633989334, 0.008889987133443356, 0.07494311779737473, 0.010014411993324757, -0.046995699405670166, 0.009816561825573444, 0.047385264188051224, 0.02265949361026287, 0.01068186853080988, -0.05259454995393753, -0.0585285946726799, 0.04888549819588661, -0.029144583269953728, 0.006914172787219286, 0.040976040065288544, 0.07721514254808426, 0.009234989061951637, 0.015878278762102127, 0.013622823171317577, -0.07520518451929092, 0.047347068786621094, 0.014833464287221432, 0.025844622403383255, 0.016177959740161896, -0.000830019183922559, 0.05384242907166481, 0.019915619865059853, 0.030474932864308357, 0.05180474743247032, -0.09509150683879852, -0.09957640618085861, -0.0011839590733870864, 0.012298568151891232, 0.04549352452158928, -0.00925847515463829, -0.00008480760152451694, 0.04330919682979584, -0.0019066035747528076, 0.032522860914468765, 0.016920361667871475, -0.021087488159537315, 0.019962094724178314, -0.07399378716945648, -0.0624237135052681, 0.06969933211803436, -0.007649196777492762, -0.05150169879198074, -0.04691208526492119, -0.010250086896121502, -0.03882191330194473, 0.0030240381602197886, 0.036805905401706696, -0.04148884117603302, 0.05863945558667183, 0.02137901447713375, 0.038806766271591187, 0.0017260145395994186, 0.04611581191420555, -0.0333242192864418, 0.04411092400550842, 0.0016675324877724051, -0.027784738689661026, 0.023549284785985947, 0.02142561413347721, 0.08203928917646408, 0.0615808479487896, -0.045482225716114044, -0.05842876061797142, 0.0626273825764656, 0.044952817261219025, -0.041327208280563354, -0.014716730453073978, 0.001707948395051062, -0.021583933383226395, 0.017162494361400604, -0.03628743812441826, -0.0385131798684597, -0.006413071881979704, -0.041087567806243896, -0.021544454619288445, 0.06948535144329071, -0.023996198549866676, 0.08360280841588974, 0.022727856412529945, -0.0068421754986047745, 0.005103072617202997, -0.03937666118144989, -0.05752735584974289, -0.0032066816929727793, 0.001531769405119121, -0.02596559375524521, 0.04106521233916283, -0.03785405308008194, 0.007604494225233793, -0.05779681354761124, -0.026648161932826042, 0.05597167834639549, 0.03135453164577484, 0.05041864141821861, -0.017498735338449478, 0.05559610202908516, -0.04611901193857193, 0.03975687175989151, 0.0019556409679353237, -0.039894722402095795, -0.023562125861644745, -0.016196569427847862, 0.006585388444364071, -0.007902395911514759, 0.002185996389016509, -0.01943814568221569, 0.03525341674685478, -0.019522426649928093, 0.031417377293109894, -0.018648305907845497, 0.028464408591389656, 0.014959333464503288, 0.0005165035254321992, -0.03968328982591629, -0.0465611107647419, 0.058555521070957184, -0.05787816271185875, -0.0008097161189652979, 0.023551292717456818, -0.07405684143304825, 0.026017187163233757, -0.0850142240524292, -0.038531213998794556, -0.014187450520694256, 0.004222881514579058, 0.02514992281794548, 0.013961343094706535, 0.029964907094836235, 0.04098232090473175, 0.014426696114242077, 0.0011056483490392566, 0.011764348484575748, 0.011989017948508263, 0.027985967695713043, -0.039984069764614105, 0.018230203539133072, 0.029617371037602425, -0.027640972286462784, -0.014936473220586777, -0.05729125812649727, 0.025185566395521164, -0.029450584203004837, -0.27585557103157043, 0.03979002311825752, 0.011845862492918968, -0.059500645846128464, 0.030784454196691513, -0.01697530969977379, -0.014615437015891075, -0.037371762096881866, -0.004496429581195116, 0.010067585855722427, -0.04355767369270325, -0.027245238423347473, 0.0053590573370456696, 0.025297708809375763, 0.01626075617969036, 0.015427717939019203, 0.016004418954253197, -0.030625473707914352, 0.001612901920452714, -0.018563102930784225, -0.018647918477654457, -0.04588068649172783, 0.013713221997022629, -0.006102790590375662, 0.006218820810317993, 0.04560358077287674, -0.07555114477872849, 0.05757749825716019, -0.05142905190587044, -0.02485639601945877, -0.0042717852629721165, -0.03323572501540184, 0.02430267073214054, 0.021939534693956375, -0.0190590750426054, -0.012181708589196205, 0.029998738318681717, 0.000624982116278261, 0.03946930542588234, -0.003182828426361084, -0.04673973470926285, -0.058341145515441895, -0.011239424347877502, 0.0171417985111475, 0.0964684709906578, -0.01453307829797268, -0.07508621364831924, -0.015482812188565731, -0.03102193772792816, 0.0762256309390068, -0.020852742716670036, -0.044762272387742996, -0.024419743567705154, 0.02648107521235943, -0.03663379326462746, -0.007167221512645483, -0.026532307267189026, 0.00407380098477006, -0.04042119160294533, -0.019002186134457588, -0.012830616906285286, -0.03595007583498955, -0.019634172320365906, -0.06086939945816994, -0.005420619621872902, -0.0532686747610569, -0.0748281329870224, -0.0030736669432371855, 0.0757923498749733, 0.002968345070257783, -0.028385525569319725, 0.025808323174715042, -0.04551353678107262, -0.0991460308432579, -0.012781801633536816, -0.032594166696071625, -0.025104112923145294, -0.002489029197022319, 0.008263817988336086, 0.057735875248909, -0.044121164828538895, -0.06429466605186462, 0.022804461419582367, -0.0013667858438566327, 0.01863909140229225, -0.015785906463861465, 0.02635439671576023, -0.016035035252571106, -0.013531198725104332, 0.0020493227057158947, 0.04719217121601105, -0.02441209740936756, -0.008767485618591309, -0.024003325030207634, 0.007954302243888378, 0.04980723187327385, -0.0186860840767622, -0.0022497999016195536, 0.00015063444152474403, 0.04600632190704346, 0.023684442043304443, -0.03746698424220085, 0.01966342143714428, -0.02318725176155567, -0.01493021659553051, -0.008022719994187355, -0.03761298209428787, 0.014047822915017605, 0.026477422565221786, 0.04538039118051529, 0.011427342891693115, -0.011941978707909584, 0.03187951445579529, -0.06541229039430618, -0.024222100153565407, 0.0051841349340975285, 0.01279519498348236, 0.02359476312994957, 0.055774103850126266, -0.009037497453391552, -0.05867287144064903, 0.027354149147868156, 0.0323825441300869, -0.02175852097570896, -0.03543443605303764, -0.01868356019258499, -0.000025113176889135502, -0.004760818090289831, 0.037156250327825546, 0.007552308030426502, -0.007314327172935009, 0.024870937690138817, 0.03872302174568176, -0.0286057461053133, 0.02015145681798458, -0.015916476026177406, -0.03352218121290207, -0.048723552376031876, 0.012867641635239124, 0.013260259293019772, -0.03986598178744316, -0.0009216541657224298, 0.0012953354744240642, 0.044007327407598495, 0.034951113164424896, 0.011584167368710041, 0.02971622161567211, -0.02074393816292286, 0.050267670303583145, 0.009454592131078243, 0.007883918471634388, -0.03067963570356369, 0.010305361822247505, -0.05722818896174431, -0.02288856729865074, -0.0019441557815298438, 0.07432641088962555, -0.026729950681328773, -0.046240225434303284, -0.038493651896715164, 0.011457030661404133, -0.06113453954458237, 0.001243780949153006, -0.0009556709555909038, 0.008963463827967644, 0.056312963366508484, -0.0406390056014061, 0.003370949300006032, -0.014005004428327084, -0.004882068373262882, -0.0032118160743266344, -0.010705256834626198, -0.05422177165746689, 0.006688525900244713, 0.0032733723055571318, 0.009091755375266075, 0.010875589214265347, 0.0442781001329422, 0.04192483797669411, 0.021877573803067207, 0.012991436757147312, -0.004710183013230562, 0.0015578607562929392, 0.008564421907067299, 0.04451988264918327, 0.03811066597700119, -0.041923534125089645, 0.00802059005945921, -0.0010367956710979342, 0.0007417325396090746, -0.0026386426761746407, 0.000746766512747854, -0.015544317662715912, 0.014121763408184052, -0.0033435726072639227, -0.053680986166000366, 0.0662589892745018, 0.02917006053030491, -0.007048408035188913, 0.034570518881082535, -0.031526830047369, 0.011194547638297081, -0.03731738030910492, 0.04741359502077103, 0.06351925432682037, -0.06002786383032799, 0.019755765795707703, -0.01295110397040844, 0.004752562381327152, -0.027683651074767113, 0.016459103673696518, -0.03295661136507988, -0.03352877497673035, 0.0023201198782771826, 0.026242418214678764, -0.06245092675089836, -0.05584932863712311, -0.007042144425213337, -0.005619984585791826, -0.0018330381717532873, 0.00634194677695632, 0.02871130034327507, -0.009846190921962261, -0.018497858196496964, -0.030254295095801353, 0.026911964640021324, -0.05112767592072487, -0.0007676401291973889, 0.0032542909029871225, -0.008798196911811829, 0.022217493504285812, -0.037921078503131866, 0.008682937361299992, 0.013810256496071815, -0.01661418192088604, 0.01581716537475586, -0.015032478608191013, 0.0029502278193831444, 0.0014822391094639897, 0.04308484122157097, -0.0009199889609590173, 0.003039711620658636, -0.034616339951753616, -0.013871174305677414, -0.04397678002715111, -0.022914983332157135, 0.0023479624651372433, 0.016033902764320374, 0.01767340674996376, 0.02535271644592285, 0.019040223211050034, 0.019354891031980515, -0.014436825178563595, -0.024016976356506348, 0.057698387652635574, -0.06773101538419724, -0.038669586181640625, -0.014552603475749493, -0.05770481750369072, 0.014736729674041271, 0.024153325706720352, 0.012179183773696423, -0.04587889462709427, 0.06253005564212799, 0.04463848099112511, 0.028094133362174034, -0.007453762460500002, -0.028872398659586906, 0.02692607045173645, -0.03813154250383377, -0.017024897038936615, -0.06111210212111473, -0.009712095372378826, 0.037091728299856186, 0.0016597140347585082, 0.02393057756125927, 0.022220730781555176, -0.01908792369067669, -0.006936176680028439, -0.05827619507908821, -0.030552132055163383, 0.04248110577464104, -0.0391131155192852, -0.013240319676697254, 0.01240417081862688, -0.07195741683244705, 0.02925892546772957, 0.028929471969604492, -0.029816187918186188, -0.01346686389297247, 0.005058509763330221, 0.057497136294841766, -0.020315764471888542, 0.04164053499698639, -0.02767852507531643, -0.016876785084605217, 0.09955700486898422, 0.030394019559025764, 0.006454863119870424, 0.062318701297044754, -0.009468757547438145, 0.04294761270284653, 0.03065245784819126, -0.0021328823640942574, -0.0028418400324881077, 0.022882400080561638, -0.037159379571676254, -0.03677501529455185, 0.0071521541103720665, 0.03188319131731987, -0.015020116232335567, -0.030093243345618248, 0.04828472062945366, 0.017863469198346138, -0.042464062571525574, -0.055473510175943375, 0.034262850880622864, -0.0520312562584877, -0.014838498085737228, -0.046162091195583344, -0.0017071248730644584, -0.06899206340312958, 0.06074009835720062, 0.005403102375566959, 0.012513257563114166, 0.07560814172029495, -0.01672454923391342, -0.01609530858695507, 0.022450340911746025, 0.06024239957332611, 0.07484007626771927, 0.02729388326406479, -0.00124547746963799, 0.062353309243917465, -0.041696224361658096, -0.024833638221025467, -0.009217208251357079, 0.002077703829854727, -0.018524445593357086, -0.0024157678708434105, 0.007286917883902788, 0.0559532530605793, 0.0017847309354692698, 0.06806057691574097, -0.0009097540751099586, -0.010842034593224525, -0.008777052164077759, 0.020680829882621765, 0.04031284153461456, 0.04413353651762009, 0.006952035240828991, 0.03579402342438698, -0.015639549121260643, -0.03929658234119415, 0.00749587919563055, -0.036171626299619675, -0.018373819068074226, 0.0004400299512781203, -0.012889079749584198, -0.0008251415565609932, 0.014990262687206268, 0.005531560629606247, 0.0724233090877533, -0.013013554736971855, 0.025886114686727524, -0.019652260467410088, 0.016233546659350395, -0.018162282183766365, 0.032040975987911224, -0.014257117174565792, 0.0001706773036858067, -0.02321704849600792, -0.0269431471824646, -0.02174772135913372, -0.024226510897278786, -0.031207866966724396, -0.004022237379103899, 0.01269115973263979, 0.021165858954191208, -0.0014012851752340794, -0.036035992205142975, -0.018239175900816917, -0.028019318357110023, -0.022415420040488243, -0.0595146119594574, -0.06188802421092987, 0.003658078843727708, 0.021238859742879868, 0.015128092840313911, -0.017010273411870003, 0.019482603296637535, -0.015169817954301834, -0.0368850938975811, 0.055144160985946655, -0.036428503692150116, 0.006397300865501165, 0.001343775074928999, 0.009567048400640488, 0.025881966575980186, 0.025668812915682793, 0.0724547877907753, 0.008723204024136066, -0.013916064985096455, -0.013599631376564503, -0.0001272655208595097, 0.026552433148026466, 0.0035162840504199266, -0.004410406108945608, -0.056347284466028214, -0.0038124986458569765, 0.025412801653146744, 0.01677553541958332, -0.07064108550548553, 0.022822033613920212, 0.05037778243422508, -0.014678142964839935, 0.06134028732776642, -0.023065313696861267, 0.0023991710040718317, -0.0462055504322052, -0.00006833302904851735, -0.01945655606687069, -0.005488074384629726, 0.027812233194708824, 0.009570998139679432, 0.07779813557863235, 0.08419463783502579, -0.011931605637073517, -0.006903767120093107, -0.02013128250837326, -0.007622723001986742, 0.003315633162856102, -0.050984617322683334, -0.023417597636580467, -0.05245696008205414, -0.09965071827173233, -0.045536428689956665, 0.028671864420175552, -0.0013488222612068057, -0.04924967885017395, 0.020859599113464355, -0.0017944928258657455, -0.02639683336019516, 0.006332512479275465, -0.03949390724301338, 0.02239905297756195, -0.021427055820822716, -0.012504229322075844, -0.013278690166771412, 0.007908724248409271, -0.0040653785690665245, -0.004904639907181263, 0.037728555500507355, -0.03152771294116974, -0.006395337171852589, -0.014011329039931297, 0.038053594529628754, 0.050867415964603424, 0.02514069341123104, 0.0006310862954705954 ]
[ -0.09297680109739304, -0.04835907369852066, -0.019473407417535782, -0.03588613495230675, 0.06585699319839478, -0.014325340278446674, -0.03116174042224884, 0.0004233433282934129, -0.0348917581140995, -0.016119057312607765, 0.025417441502213478, -0.06332576274871826, -0.001922768889926374, -0.030769791454076767, 0.09077800065279007, -0.010064629837870598, -0.023795081302523613, -0.04244770482182503, -0.022137699648737907, 0.03877797722816467, -0.012746528722345829, -0.04770895838737488, -0.02505461499094963, -0.01891973614692688, 0.0011569263879209757, 0.04197997227311134, 0.04256370663642883, -0.045801497995853424, -0.00345691479742527, -0.19756020605564117, 0.010913214646279812, -0.004144319798797369, 0.0036847225856035948, 0.0032304006163030863, 0.03271116688847542, 0.06472081691026688, 0.029552698135375977, -0.004949251655489206, -0.020939430221915245, 0.036602143198251724, 0.036695003509521484, 0.014553858898580074, -0.06678855419158936, -0.02047087252140045, 0.034310534596443176, -0.027239995077252388, 0.01012147031724453, -0.03692995756864548, -0.013083693571388721, -0.01277516596019268, -0.02968352846801281, -0.01811174675822258, -0.0151214599609375, -0.02186625637114048, -0.005577622447162867, -0.0050944434478878975, 0.06054425612092018, 0.04622384533286095, 0.049513548612594604, 0.023290613666176796, 0.02568233385682106, -0.014043916016817093, -0.13492552936077118, 0.06557600200176239, 0.03731385990977287, 0.021796999499201775, -0.046719178557395935, -0.046764109283685684, -0.020210985094308853, 0.07309417426586151, 0.04718385264277458, 0.011166631244122982, -0.04225548356771469, 0.06943783164024353, -0.02329983375966549, 0.01920292153954506, 0.003653969382867217, 0.018392125144600868, 0.03855443745851517, -0.02112128585577011, -0.053272832185029984, 0.017288044095039368, -0.04446523264050484, 0.01575971394777298, -0.030265236273407936, 0.020908011123538017, -0.008587377145886421, 0.03498537838459015, 0.01491226814687252, 0.05776160582900047, 0.04499292001128197, 0.029171202331781387, 0.08412468433380127, 0.019014054909348488, -0.10833243280649185, -0.008820666931569576, -0.0009865692118182778, 0.02987474389374256, -0.015314516611397266, 0.4165794253349304, 0.038732074201107025, -0.019183704629540443, 0.009576956741511822, 0.0269927941262722, 0.03118077479302883, -0.015276563353836536, 0.0037029366940259933, -0.04920675978064537, 0.06041044369339943, 0.015473918989300728, 0.03287718817591667, -0.006829077377915382, 0.027590259909629822, -0.09200991690158844, 0.010056990198791027, 0.028121404349803925, 0.024045810103416443, 0.024477258324623108, -0.05213677138090134, 0.03739730641245842, 0.009207571856677532, 0.006769462022930384, 0.036125607788562775, 0.00428692577406764, 0.05006092041730881, 0.0142426872625947, 0.02416449598968029, 0.01650404743850231, 0.03118918277323246, 0.03112405724823475, 0.037832699716091156, -0.002874076599255204, -0.03339993953704834, -0.003574623726308346, -0.0018305729608982801, 0.0008105271845124662, 0.024074137210845947, -0.0658249631524086, -0.06351935118436813, 0.028847888112068176, -0.014858839102089405, -0.019234847277402878, 0.05177818983793259, -0.03507116064429283, -0.02661057561635971, 0.0755469873547554, 0.014581755734980106, -0.0028649279847741127, -0.019465317949652672, -0.05075728893280029, -0.02646266669034958, 0.051412053406238556, 0.018427591770887375, -0.08693914860486984, 0.02327311597764492, -0.009968984872102737, 0.06997575610876083, -0.002472866093739867, -0.07845408469438553, 0.0177816953510046, -0.021969523280858994, -0.01803642138838768, -0.02994115650653839, 0.058916471898555756, 0.03205859661102295, -0.0953112542629242, -0.02109411172568798, 0.05182543396949768, 0.03826570510864258, -0.042475465685129166, -0.024192795157432556, 0.026713863015174866, -0.019534150138497353, -0.05557163804769516, 0.06323783844709396, -0.023466313257813454, -0.024439530447125435, 0.013935637660324574, 0.018742907792329788, 0.0013448395766317844, -0.027975505217909813, 0.005989853758364916, -0.04389679431915283, -0.014342028647661209, -0.04570490121841431, -0.07641275227069855, -0.06765314191579819, 0.038989774882793427, -0.03349829837679863, -0.05383685603737831, -0.054760757833719254, -0.0012372625060379505, -0.03493570536375046, 0.07614772766828537, 0.01648598536849022, -0.04182446748018265, -0.008524972945451736, 0.00898247491568327, -0.015737812966108322, -0.049168433994054794, 0.025685463100671768, 0.07155825197696686, -0.029442904517054558, 0.046302806586027145, -0.08018259704113007, 0.004693991504609585, 0.04396817833185196, -0.027902456000447273, 0.06427314877510071, 0.026535360142588615, -0.029632436111569405, -0.006783644203096628, 0.017390210181474686, 0.022734753787517548, -0.03795728087425232, -0.00872191321104765, 0.00026262018945999444, 0.02984590269625187, 0.01285844761878252, 0.015427950769662857, 0.0022044319193810225, 0.014877348206937313, -0.02321053110063076, -0.33960285782814026, -0.0024962082970887423, -0.026896078139543533, 0.009623043239116669, 0.021533465012907982, -0.014310002326965332, 0.033498361706733704, -0.00316334655508399, 0.023685172200202942, -0.03698483482003212, 0.09585945308208466, -0.0288392324000597, 0.031649861484766006, -0.06784388422966003, 0.01846078597009182, 0.0539584644138813, -0.009996915236115456, -0.021797165274620056, -0.03061605617403984, 0.007885638624429703, 0.03146367147564888, -0.06834109872579575, -0.015798179432749748, -0.03876905515789986, 0.01105016190558672, -0.008620220236480236, 0.09923064708709717, -0.019298696890473366, 0.061239633709192276, -0.0293279942125082, 0.024678900837898254, -0.0033859494142234325, -0.003942359238862991, -0.10939152538776398, -0.00010311738878954202, -0.016501234844326973, 0.03766977787017822, -0.009518374688923359, 0.017887040972709656, 0.008644230663776398, -0.06587662547826767, 0.02106712944805622, -0.0787634626030922, -0.05548708513379097, -0.005602075252681971, -0.012992361560463905, -0.061412960290908813, 0.007391029503196478, -0.030602391809225082, 0.009632634930312634, -0.016363753005862236, 0.03080672398209572, 0.013356084004044533, 0.011008732952177525, 0.023183673620224, -0.036244649440050125, -0.05532122403383255, -0.019098233431577682, 0.023355213925242424, 0.02503877691924572, 0.04791364446282387, 0.0502474419772625, -0.02025175467133522, -0.07566192746162415, 0.05262389034032822, -0.016688086092472076, -0.01932009682059288, 0.03777206316590309, 0.0461602620780468, -0.07824218273162842, -0.003615412162616849, 0.07945909351110458, -0.004591168370097876, 0.017388226464390755, 0.054825372993946075, -0.00099895556923002, -0.02189425751566887, -0.004042515531182289, 0.012093743309378624, 0.002338182181119919, 0.06432850658893585, -0.05326224863529205, 0.068570576608181, -0.030338093638420105, -0.013931386172771454, 0.06976284831762314, 0.028521478176116943, -0.009154098108410835, 0.061381593346595764, 0.00231989286839962, -0.03663787990808487, 0.0013574642362073064, -0.009596854448318481, -0.04879950359463692, 0.0923214927315712, -0.0028451960533857346, -0.26107269525527954, 0.03573659807443619, 0.01998147927224636, 0.02051026001572609, 0.007583197206258774, -0.006853136233985424, 0.03508381545543671, -0.04446664825081825, -0.014529652893543243, 0.03236004710197449, 0.0125561049208045, 0.06541752815246582, -0.02880476415157318, 0.0025029468815773726, 0.00230488576926291, 0.045833855867385864, 0.049114178866147995, -0.004593605641275644, 0.00009064777987077832, -0.030594993382692337, 0.016542350873351097, -0.004195074550807476, 0.1577005237340927, 0.035056959837675095, 0.018726978451013565, 0.04462118446826935, -0.03573337197303772, 0.01815703697502613, 0.04864596575498581, 0.03110041655600071, 0.011619740165770054, 0.007202025502920151, 0.020248455926775932, 0.0100660165771842, 0.024872232228517532, -0.0460909865796566, -0.000023875591068645008, 0.03564409539103508, 0.017156444489955902, -0.016735952347517014, -0.007733048405498266, 0.024249080568552017, 0.023529665544629097, 0.041182346642017365, 0.08884153515100479, -0.06588645279407501, -0.016362350434064865, -0.03445541113615036, -0.03943084180355072, -0.032864298671483994, -0.04444235563278198, -0.07094249129295349, -0.025109687820076942, -0.01314664538949728, -0.0034261178225278854, 0.08644627779722214, 0.028339728713035583, -0.03401287645101547, -0.03695403411984444, -0.012953873723745346, 0.008835581131279469, -0.05663422867655754, 0.09047991782426834, -0.01978081278502941, 0.0373874232172966 ]
[ 0.03586803376674652, 0.03949260339140892, 0.0019600167870521545, 0.006056464277207851, -0.000013339740689843893, 0.042245324701070786, -0.01605314016342163, 0.01632230170071125, 0.02265813760459423, -0.005362343974411488, -0.02840307727456093, -0.0001869013940449804, 0.03666415810585022, -0.015741165727376938, -0.05242376774549484, -0.010168739594519138, -0.008626929484307766, 0.026654118672013283, 0.004824778996407986, -0.06061948090791702, -0.0710161030292511, 0.01743275113403797, 0.031758565455675125, -0.0091144610196352, -0.03384558856487274, -0.004969950299710035, -0.036926038563251495, 0.0027966368943452835, 0.01931220479309559, -0.10240577161312103, -0.008163188584148884, -0.027079038321971893, -0.005737210623919964, 0.00787176564335823, 0.022139325737953186, 0.07366704940795898, 0.054186783730983734, 0.014521291479468346, -0.04221527278423309, 0.05453198775649071, 0.04056769981980324, -0.016500499099493027, -0.05557019263505936, -0.02769327722489834, 0.014523360878229141, -0.013994609005749226, -0.05452151224017143, -0.05073728412389755, 0.021297544240951538, -0.016869811341166496, -0.0033090561628341675, -0.013805484399199486, 0.013136278837919235, 0.03390352055430412, 0.014078883454203606, 0.055375777184963226, -0.034260641783475876, -0.011751522310078144, 0.06430548429489136, 0.0030754911713302135, 0.026135824620723724, -0.004898988641798496, -0.006089871283620596, -0.02050531469285488, -0.021385781466960907, 0.0011150097707286477, 0.0146162835881114, -0.00992879830300808, -0.04054970294237137, 0.011680078692734241, 0.04791336506605148, 0.04637577384710312, -0.08761561661958694, -0.02472911775112152, -0.0047118812799453735, 0.027027711272239685, 0.04086294397711754, -0.04092167690396309, -0.009591315872967243, 0.007121781352907419, -0.06640147417783737, 0.013914406299591064, -0.0107638044282794, -0.022073790431022644, -0.06842770427465439, -0.006046950817108154, -0.02950182370841503, -0.039514943957328796, 0.039113979786634445, 0.0004824766656383872, -0.009636416099965572, -0.0015080539742484689, -0.014741310849785805, -0.05496342480182648, -0.051633529365062714, -0.014297110959887505, 0.00022369691578205675, 0.006847900804132223, 0.027815725654363632, 0.7869970202445984, 0.013333749026060104, -0.018768729642033577, -0.0016140301013365388, 0.008425257168710232, 0.009925869293510914, -0.003573243971914053, 0.03135138005018234, -0.00578003004193306, -0.052810754626989365, 0.02731834352016449, -0.0005919669638387859, 0.029938677325844765, 0.018386568874120712, 0.02664276212453842, 0.035482656210660934, 0.03395135700702667, -0.00472550792619586, 0.012759256176650524, -0.009941092692315578, 0.06470917165279388, 0.0712379440665245, -0.01747800037264824, -0.007564892061054707, 0.012583566829562187, -0.012774630449712276, -0.1551833152770996, -0.025984754785895348, -6.531212651745683e-33, 0.03742710128426552, -0.044526949524879456, 0.06642955541610718, 0.008722123689949512, 0.021469466388225555, -0.03686043992638588, -0.03007723018527031, -0.011821898631751537, -0.031083019450306892, -0.04136789217591286, -0.044779349118471146, 0.015181406401097775, -0.0012364396825432777, -0.04488980770111084, 0.016891706734895706, -0.0007755496772006154, -0.00427114125341177, 0.038027480244636536, -0.0007874229922890663, -0.003556160954758525, 0.01818196289241314, 0.03512538969516754, -0.04356008395552635, 0.012968865223228931, 0.031783439218997955, -0.014324729330837727, 0.03503753989934921, -0.03262660652399063, -0.007778414059430361, -0.03598548471927643, -0.05875524505972862, -0.008516855537891388, -0.018525274470448494, -0.034395378082990646, -0.05431664362549782, -0.03921675309538841, -0.04095130041241646, 0.006729551125317812, -0.06191159784793854, -0.06050815060734749, -0.013025633990764618, -0.024982359260320663, -0.018517261371016502, -0.046946942806243896, 0.0036218129098415375, -0.017454572021961212, 0.04988999292254448, 0.017858797684311867, 0.012204156257212162, -0.0041663190349936485, 0.007747757248580456, 0.0005156046827323735, 0.030923262238502502, -0.004864465910941362, 0.01460227370262146, 0.0359872542321682, 0.07273339480161667, -0.0313035249710083, -0.02226714789867401, 0.02445036731660366, 0.004652620293200016, 0.0038782572373747826, -0.04156455397605896, 0.014341190457344055, 0.021449780091643333, -0.03708375617861748, 0.008190514519810677, 0.046913281083106995, -0.022639453411102295, 0.037463463842868805, -0.03134310618042946, 0.014123504050076008, -0.03379019722342491, -0.029708420857787132, 0.03255004808306694, -0.04607916623353958, 0.02579294703900814, 0.026369493454694748, -0.026416484266519547, 0.048980601131916046, 0.0026786874514073133, -0.02716570533812046, -0.03645622357726097, -0.010145965963602066, 0.007347035221755505, -0.018232312053442, 0.0255398228764534, 0.03374380245804787, 0.0178474560379982, 0.021306898444890976, 0.04111583158373833, 0.004143342841416597, -0.020154427736997604, 0.00240911403670907, -0.06620949506759644, 6.755270691220042e-33, -0.004579090513288975, -0.008915791288018227, -0.003961675334721804, -0.00011784858361352235, 0.03732329607009888, 0.01752917282283306, 0.04837321490049362, 0.032488126307725906, -0.04040222987532616, -0.007862329483032227, -0.03751473128795624, -0.04526178166270256, -0.019066594541072845, 0.02142179012298584, 0.034875139594078064, 0.007825435139238834, 0.013503337278962135, 0.005537951365113258, 0.00846183393150568, 0.023747235536575317, 0.0006046883063390851, 0.012473391368985176, 0.0024235269520431757, 0.03455130010843277, 0.010835417546331882, 0.02482021413743496, -0.0070349988527596, 0.03587944060564041, -0.05065979063510895, 0.0015840758569538593, 0.02042412757873535, -0.07004588097333908, -0.017934320494532585, 0.05917016789317131, 0.003337534610182047, -0.013322846964001656, -0.004948347341269255, 0.005488371942192316, -0.0045507499016821384, -0.012069880962371826, 0.013287223875522614, 0.02490130066871643, -0.012556126341223717, 0.045380476862192154, -0.00625944696366787, 0.03860541060566902, 0.029059629887342453, 0.009019122458994389, -0.02795003354549408, -0.01692405715584755, -0.030384551733732224, 0.02332831732928753, -0.005620776209980249, 0.04302208870649338, 0.003969473764300346, -0.003628281643614173, -0.03151273727416992, 0.0093026552349329, 0.013610276393592358, 0.027525879442691803, 0.02687518112361431, -0.05394747108221054, 0.03278836980462074, 0.02426411211490631, -0.021693499758839607, -0.039083294570446014, 0.006022971123456955, 0.024116812273859978, -0.025037845596671104, 0.01520982850342989, -0.02226467989385128, -0.003647775622084737, -0.003475813427940011, 0.0511687733232975, 0.0016004310455173254, -0.017142783850431442, -0.007868831045925617, -0.0255047045648098, -0.0062082246877253056, 0.04339379072189331, 0.022303031757473946, 0.015899794176220894, -0.03533133491873741, -0.00340255512855947, 0.047642484307289124, 0.01671691983938217, -0.007132281549274921, 0.03960302099585533, 0.03675825893878937, 0.006069633178412914, 0.0011282266350463033, -0.010640771128237247, -0.019879043102264404, 0.06286823004484177, -0.0443250946700573, -1.2031307505822042e-8, 0.040407583117485046, -0.0005794590106233954, 0.02787959761917591, 0.032720595598220825, 0.0198370311409235, -0.03238389641046524, -0.011872873641550541, -0.005987111944705248, -0.04610647261142731, 0.017480436712503433, -0.01723453588783741, -0.028228143230080605, -0.008288819342851639, -0.0014313701540231705, 0.02423333190381527, -0.018414488062262535, -0.001108313794247806, -0.00019195889763068408, 0.05288325995206833, -0.03561584651470184, 0.007066931575536728, 0.05180887505412102, -0.0075749922543764114, 0.001487941131927073, -0.004657403565943241, 0.02543834038078785, 0.04356895387172699, -0.055657774209976196, 0.0032507935538887978, -0.011534164659678936, -0.028125667944550514, -0.01898348517715931, -0.09142778813838959, 0.022393977269530296, -0.03477243334054947, 0.009243353269994259, 0.0015547455986961722, 0.04067951813340187, 0.01318955235183239, 0.019537702202796936, -0.011303907260298729, 0.023921307176351547, -0.044490519911050797, -0.023308008909225464, -0.00921914167702198, 0.03518064320087433, -0.03665713220834732, 0.035959113389253616, 0.02775135636329651, -0.04990854859352112, 0.024862214922904968, -0.04763958230614662, 0.04483924061059952, 0.05537744238972664, 0.007013292051851749, 0.001743733766488731, -0.002679948229342699, -0.05088026821613312, -0.0043311151675879955, 0.017379317432641983, 0.02171795256435871, 0.012315945699810982, -0.013678723014891148, -0.019168876111507416 ]
kubernetes-1-8-using-cronjobs-take-neo4j-backups
https://markhneedham.com/blog/2017/11/17/kubernetes-1-8-using-cronjobs-take-neo4j-backups
false
2017-11-19 07:16:56
Python 3: TypeError: unsupported format string passed to numpy.ndarray.*format*
[ "python", "python3" ]
[ "Python" ]
This post explains how to work around a change in how Python string formatting works for numpy arrays between Python 2 and Python 3. I've been going through https://twitter.com/justmarkham[Kevin Markham]'s scikit-learn Jupyter notebooks and ran into a problem on the https://github.com/justmarkham/scikit-learn-videos/blob/master/07_cross_validation.ipynb[Cross Validation] one, which was throwing this error when attempting to print the KFold example: [source,python] ---- Iteration Training set observations Testing set observations --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-28-007cbab507e3> in <module>() 6 print('{} {:^61} {}'.format('Iteration', 'Training set observations', 'Testing set observations')) 7 for iteration, data in enumerate(kf, start=1): ----> 8 print('{0:^9} {1} {2:^25}'.format(iteration, data[0], data[1])) TypeError: unsupported format string passed to numpy.ndarray.__format__ ---- We can reproduce this easily: [source,python] ---- >>> import numpy as np ---- [source,python] ---- >>> "{:9}".format(np.array([1,2,3])) Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: unsupported format string passed to numpy.ndarray.__format__ ---- What about if we use Python 2? [source,python] ---- >>> "{:9}".format(np.array([1,2,3])) '[1 2 3] ' ---- Hmmm, must be a change between the Python versions. We can work around it by coercing our numpy array to a string: [source,python] ---- >>> "{:9}".format(str(np.array([1,2,3]))) '[1 2 3] ' ----
This post explains how to work around a change in how Python string formatting works for numpy arrays between Python 2 and Python 3.
null
[ -0.014970977790653706, -0.03521252050995827, -0.0564216673374176, 0.03518347442150116, 0.05040321499109268, 0.05299701914191246, 0.023850474506616592, 0.01837765984237194, 0.004422817844897509, -0.01949303038418293, 0.012025871314108372, -0.0012666403781622648, -0.0632748082280159, 0.03377201408147812, -0.003784855827689171, 0.0911499485373497, 0.06663795560598373, -0.005389909725636244, 0.014924286864697933, 0.04360485449433327, 0.011582986451685429, 0.027783092111349106, 0.0011651321547105908, 0.01141244638711214, 0.038973744958639145, -0.011761631816625595, 0.005266128573566675, -0.011594440788030624, -0.04581517353653908, 0.0009506416390649974, 0.012414046563208103, 0.022981315851211548, -0.015678463503718376, -0.013125958852469921, 0.04665466770529747, 0.017747875303030014, -0.025978831574320793, -0.006014680955559015, 0.01017490029335022, 0.028518619015812874, -0.024909181520342827, 0.014425639994442463, -0.01800193451344967, 0.04277455806732178, -0.03880423679947853, 0.016207369044423103, -0.025324730202555656, 0.003641234477981925, 0.00901331752538681, 0.0072997622191905975, -0.05292879417538643, 0.02297239378094673, -0.0070684608072042465, -0.047501783818006516, 0.004553989972919226, 0.059415705502033234, 0.03756542131304741, -0.09481021761894226, 0.02637057937681675, -0.015069181099534035, -0.015341851860284805, 0.0011751576093956828, -0.0268290676176548, 0.0056238360702991486, 0.02849201112985611, 0.0015015692915767431, -0.004353667143732309, 0.080231674015522, -0.06704001873731613, -0.03443511202931404, -0.013490739278495312, 0.037550441920757294, 0.0017008036375045776, -0.006656229961663485, 0.007589689455926418, -0.03652220219373703, -0.003495819866657257, 0.0720239207148552, 0.014264307916164398, 0.04393121227622032, 0.020785093307495117, 0.02570866048336029, 0.022744588553905487, 0.0036345459520816803, -0.003528750967234373, -0.04384475201368332, -0.05224298685789108, -0.01568332500755787, -0.04839685186743736, 0.03500043600797653, 0.034434396773576736, -0.0717443972826004, 0.020599739626049995, 0.029845351353287697, -0.01598716899752617, 0.011358898133039474, -0.03643694519996643, -0.010878085158765316, -0.016760267317295074, -0.03951570391654968, -0.0848793163895607, -0.03202628716826439, 0.012537450529634953, 0.0252764243632555, -0.07545161247253418, -0.0077125439420342445, -0.027991339564323425, -0.005318253766745329, 0.010714387521147728, 0.026053007692098618, -0.04149679094552994, -0.002208305522799492, -0.028031140565872192, -0.02005293406546116, -0.10211397707462311, 0.043359335511922836, 0.006651967763900757, -0.036804962903261185, -0.04171556979417801, 0.008539236150681973, 0.042632054537534714, 0.026446910575032234, -0.002698876429349184, 0.07583469897508621, -0.0071461438201367855, 0.05339844524860382, 0.02655305527150631, 0.06383182853460312, -0.03282460570335388, -0.04833628609776497, -0.035020433366298676, 0.03646351024508476, 0.010521427728235722, -0.0009778054663911462, -0.023752791807055473, -0.005946608260273933, -0.048459358513355255, 0.024959199130535126, 0.05333108454942703, 0.061389122158288956, 0.0330393947660923, -0.027138084173202515, -0.0046919407323002815, 0.03127315640449524, -0.006855037063360214, 0.03352198377251625, -0.022946706041693687, -0.052930038422346115, -0.034890975803136826, 0.0054207355715334415, 0.006465849466621876, -0.015943365171551704, 0.05677860975265503, 0.0012897019041702151, -0.0041451468132436275, 0.062386397272348404, 0.008818651549518108, 0.04876789078116417, 0.012545757927000523, 0.010078616440296173, 0.06364351511001587, 0.053592611104249954, -0.008248603902757168, 0.04418401047587395, 0.030893413349986076, -0.01186602283269167, 0.0014464484993368387, 0.037291787564754486, -0.024212367832660675, -0.026491889730095863, -0.0671427994966507, -0.05584452301263809, 0.05540298670530319, -0.04109068959951401, 0.006660863291472197, -0.017876891419291496, 0.07661496847867966, 0.029090069234371185, 0.02161341719329357, -0.0006363980355672538, -0.07512326538562775, 0.04529912397265434, -0.022132864221930504, 0.00556624960154295, 0.022147374227643013, 0.02405204437673092, 0.08872202783823013, 0.04675571992993355, 0.002719803946092725, 0.040048934519290924, -0.06233200058341026, -0.07674595713615417, -0.029934223741292953, -0.003904396900907159, 0.06636422872543335, -0.053748611360788345, -0.002963726408779621, 0.06101824715733528, 0.014796866104006767, 0.034055110067129135, 0.011417750269174576, -0.029495326802134514, -0.02488906867802143, -0.023020880296826363, -0.05751565098762512, 0.0409049354493618, 0.0550258494913578, -0.048493679612874985, -0.01093070674687624, 0.045935891568660736, -0.006814026273787022, 0.01714339479804039, -0.0010875867446884513, 0.011104658246040344, 0.037849098443984985, 0.03484083712100983, 0.05119991675019264, 0.01898016221821308, 0.02386772260069847, -0.07603370398283005, 0.020048746839165688, -0.0033270991407334805, 0.0028450130484998226, -0.041741225868463516, 0.013092458248138428, 0.14830075204372406, 0.06469942629337311, 0.005541922990232706, -0.05857953801751137, -0.00020737896556966007, -0.007410318125039339, -0.045649539679288864, 0.0016768266214057803, -0.005829448811709881, -0.056499239057302475, 0.038840170949697495, -0.04439147561788559, -0.00822623074054718, 0.007106289733201265, -0.041057832539081573, -0.005342656746506691, 0.08603192120790482, -0.04713203012943268, 0.05823345482349396, 0.0042967237532138824, -0.03290533274412155, -0.024683086201548576, -0.04094682261347771, -0.06017925962805748, 0.009456457570195198, 0.027913881465792656, 0.0060522714629769325, 0.058544185012578964, -0.020966457203030586, -0.057868700474500656, -0.020406346768140793, -0.06133568659424782, 0.0012549483217298985, 0.11790074408054352, 0.010852573439478874, -0.05151352658867836, 0.04949002340435982, -0.021392907947301865, -0.027166398242115974, 0.0039099338464438915, -0.042361557483673096, -0.04690372571349144, 0.004008585121482611, 0.05039910227060318, -0.00550249544903636, 0.031244469806551933, 0.0109143927693367, -0.006512422580271959, 0.02417660504579544, -0.0017423501703888178, -0.009401067160069942, 0.05320092290639877, 0.015863696113228798, -0.010326335206627846, -0.0475052148103714, 0.005553094670176506, 0.06553094834089279, -0.035952888429164886, -0.038860075175762177, 0.001502330182120204, -0.05316435918211937, -0.01377889048308134, -0.07335802912712097, -0.046035878360271454, 0.013947705738246441, 0.01517523918300867, 0.0423312745988369, -0.019387736916542053, -0.027553055435419083, 0.050314780324697495, 0.019125035032629967, 0.03729727119207382, 0.04004429280757904, 0.022958233952522278, 0.01847495324909687, -0.009391503408551216, 0.016134073957800865, 0.032093245536088943, 0.004790612496435642, -0.009569295682013035, -0.04738788306713104, 0.0003508780209813267, -0.0370093397796154, -0.26727619767189026, 0.04240162670612335, -0.018994972109794617, -0.00924272183328867, 0.0394245944917202, -0.025251196697354317, 0.011764438822865486, -0.036336418241262436, -0.01278428453952074, 0.03698107600212097, -0.006358369253575802, -0.020611826330423355, -0.02541448548436165, 0.03737128525972366, -0.01358732022345066, 0.021244486793875694, -0.0039696646854281425, -0.03441235423088074, 0.031197113916277885, 0.04456964507699013, 0.01199471764266491, -0.03661918267607689, -0.020316867157816887, 0.06396842002868652, 0.0012211918365210295, 0.051647160202264786, -0.05458969250321388, 0.03812743350863457, -0.05719475820660591, -0.03796574845910072, 0.03716162592172623, -0.016314439475536346, 0.013185975141823292, 0.008163269609212875, 0.001918437541462481, -0.03155023977160454, 0.03049357235431671, -0.009442503564059734, 0.013362648896872997, 0.03461581468582153, -0.062041401863098145, -0.04915536567568779, 0.02194998413324356, -0.0067910607904195786, 0.07184692472219467, -0.0027412634808570147, -0.04552929475903511, 0.004507238510996103, -0.04832502454519272, 0.06135804206132889, -0.030573783442378044, -0.024452127516269684, -0.024099936708807945, 0.02745686285197735, -0.03800463303923607, -0.012363334186375141, -0.007434562314301729, 0.005890875589102507, -0.033226534724235535, -0.01529394369572401, 0.025087539106607437, -0.047526199370622635, -0.04736877977848053, -0.06104309484362602, -0.009081698954105377, -0.0650009959936142, -0.057737745344638824, -0.027411848306655884, 0.02978527545928955, 0.06502898037433624, -0.035357821732759476, -0.009920038282871246, -0.017356958240270615, -0.10578916221857071, 0.010721703991293907, -0.037838518619537354, -0.025657182559370995, 0.01815854012966156, 0.014437839388847351, 0.049757421016693115, -0.05168271064758301, -0.053494829684495926, 0.04905116930603981, 0.0002482078270986676, 0.008579901419579983, -0.008113954216241837, -0.008893814869225025, -0.02362467162311077, 0.015464809723198414, -0.011477438732981682, 0.046003688126802444, -0.003569056047126651, 0.004792189225554466, -0.015106047503650188, -0.027692176401615143, 0.039537906646728516, 0.026248304173350334, 0.022257022559642792, 0.03169073536992073, 0.037211742252111435, 0.008948465809226036, -0.06839444488286972, -0.013792683370411396, -0.03959016874432564, -0.02627444639801979, 0.014046203345060349, -0.04279244318604469, 0.005510105285793543, 0.02815953828394413, -0.02339906431734562, -0.00764466030523181, -0.02124050259590149, 0.027907323092222214, -0.03721395879983902, -0.010795962996780872, -0.013627859763801098, 0.03793138638138771, -0.005594415124505758, -0.014707004651427269, -0.008244037628173828, -0.05126047134399414, -0.007437116466462612, 0.009123941883444786, 0.01472566556185484, -0.046813204884529114, -0.03746646270155907, 0.011158815585076809, 0.004617935512214899, 0.00027950690127909184, -0.01341235265135765, -0.00393313355743885, 0.024739036336541176, 0.06653566658496857, -0.010293951258063316, 0.0123455710709095, 0.007201594766229391, -0.006679688114672899, -0.011775044724345207, 0.003130523953586817, 0.0015656939940527081, 0.017754526808857918, 0.004255881533026695, -0.009464382193982601, 0.02433893084526062, 0.01958000287413597, 0.007926058024168015, 0.015464314259588718, -0.00568345794454217, -0.016576293855905533, -0.012553264386951923, 0.02448754571378231, -0.014315697364509106, 0.003724884008988738, -0.0191453006118536, -0.04134790971875191, 0.04846830666065216, 0.038541678339242935, -0.029698308557271957, 0.008586844429373741, -0.028254434466362, 0.04401305317878723, -0.026738746091723442, -0.027414334937930107, -0.020044440403580666, -0.033082831650972366, 0.019238976761698723, -0.023227376863360405, 0.019231559708714485, 0.012239586561918259, 0.011664765886962414, 0.004881444852799177, 0.00887970719486475, -0.02017558366060257, -0.0008313622092828155, -0.01050968561321497, -0.01951136626303196, 0.04753078892827034, 0.04805033653974533, 0.01402988564223051, 0.011850029230117798, -0.009144322946667671, -0.018462585285305977, 0.022669168189167976, 0.03083028644323349, 0.048185400664806366, 0.051525015383958817, -0.041255515068769455, 0.002118668518960476, -0.022886579856276512, -0.02174258790910244, -0.05658479779958725, -0.01248953863978386, -0.014069132506847382, 0.0170681681483984, -0.02415364794433117, -0.04070426896214485, -0.0043808151967823505, 0.013301054947078228, 0.00456039234995842, 0.035830169916152954, -0.022660695016384125, 0.010411364026367664, 0.008128223940730095, -0.021200107410550117, 0.04830234497785568, -0.04815942421555519, -0.027925534173846245, -0.02098807319998741, -0.009477712213993073, -0.01552260760217905, 0.0346916988492012, -0.07698653638362885, -0.02758633904159069, -0.024365238845348358, 0.006586805917322636, -0.0210950318723917, -0.05694578215479851, -0.013869598507881165, 0.0346565805375576, 0.00933088455349207, 0.008242850191891193, -0.016912030056118965, 0.001147113274782896, -0.0063194045796990395, -0.0037078289315104485, 0.03419787436723709, -0.03316628187894821, -0.014042389579117298, 0.035656124353408813, -0.018817726522684097, 0.05676815286278725, -0.05216715857386589, 0.0308544859290123, 0.04260673001408577, 0.005879671778529882, -0.014687428250908852, -0.05979444831609726, 0.049236562103033066, 0.01866750605404377, 0.039512719959020615, -0.007319441996514797, -0.005200433544814587, -0.01588020846247673, 0.014905136078596115, -0.017201634123921394, 0.014641956426203251, 0.008897608146071434, -0.04443760961294174, 0.011244217865169048, 0.0363587848842144, 0.0032183886505663395, 0.022536873817443848, -0.01877286657691002, -0.0367627777159214, 0.03829190507531166, -0.002382566686719656, -0.0510973259806633, -0.037628378719091415, -0.06139051914215088, 0.03372499719262123, -0.006677099969238043, 0.05062130093574524, -0.05365769937634468, 0.0361558236181736, 0.029673898592591286, 0.007716454565525055, 0.05661776661872864, -0.018030481413006783, 0.025778191164135933, -0.012512104585766792, -0.022340409457683563, -0.09828313440084457, -0.014668136835098267, 0.024342559278011322, 0.01626182533800602, -0.03976249694824219, -0.018145326524972916, -0.005300810094922781, 0.008461526595056057, -0.06888343393802643, -0.025580333545804024, 0.03437991067767143, -0.013686062768101692, -0.00260356767103076, 0.00799434445798397, -0.03191195800900459, 0.02595965936779976, 0.031140027567744255, -0.0407724566757679, -0.022991975769400597, 0.005125431809574366, 0.05353429913520813, -0.006490706000477076, 0.009030506014823914, 0.002793963300064206, 0.027798309922218323, 0.03810848668217659, 0.011903183534741402, 0.013590834103524685, 0.00833157729357481, -0.022441862151026726, 0.053085945546627045, 0.07485982775688171, -0.005403666757047176, -0.01802624575793743, 0.028073564171791077, -0.010393133386969566, -0.06682473421096802, 0.05925184115767479, 0.05290043354034424, -0.02530950866639614, -0.00891067273914814, 0.05911007896065712, -0.01454355288296938, -0.030812153592705727, -0.05190785974264145, 0.0025280481204390526, -0.04590931534767151, -0.001292484812438488, -0.03585950285196304, -0.013408909551799297, -0.025479206815361977, 0.043457720428705215, 0.0027175741270184517, -0.026287144050002098, 0.038448769599199295, 0.02284931018948555, 0.01965434104204178, 0.024951506406068802, 0.05476837232708931, 0.07063556462526321, 0.047044143080711365, 0.035536255687475204, 0.03670036792755127, -0.039180606603622437, -0.04392525181174278, 0.011696848087012768, -0.04955447092652321, -0.005080508533865213, -0.02274395152926445, -0.005574625451117754, 0.07982057332992554, 0.009203922003507614, 0.05557170510292053, -0.023153111338615417, 0.03464360907673836, -0.01253786962479353, 0.021497687324881554, -0.005040118936449289, 0.022833628579974174, 0.006677622441202402, 0.03395058214664459, -0.03729870542883873, -0.03689262270927429, 0.009546134620904922, -0.0021849621552973986, -0.011300294660031796, 0.004463335033506155, -0.012677538208663464, 0.017318448051810265, 0.042939167469739914, 0.038531333208084106, 0.05413220450282097, -0.06440376490354538, -0.05405539274215698, 0.008717297576367855, 0.06585554778575897, 0.002709927037358284, 0.0055119046010077, -0.003075489541515708, -0.02419031411409378, 0.010732938535511494, -0.039632756263017654, 0.0076474640518426895, -0.042260028421878815, -0.04073454439640045, 0.011118585243821144, -0.018708107993006706, -0.008811349049210548, 0.04721878841519356, -0.015836086124181747, -0.066550612449646, -0.04200313240289688, -0.026219554245471954, -0.05089160054922104, -0.05850568413734436, -0.0032242899760603905, 0.005123612470924854, -0.03130265325307846, -0.021354615688323975, -0.01129701267927885, -0.022074677050113678, -0.006341702304780483, 0.02932066097855568, -0.055636316537857056, -0.02756607159972191, 0.015572196803987026, 0.035657793283462524, 0.010950354859232903, 0.031227895990014076, 0.051571618765592575, -0.0014957231469452381, -0.024735668674111366, 0.01486706268042326, 0.0011760769411921501, 0.050593651831150055, 0.044383738189935684, 0.02370239607989788, -0.07061614096164703, -0.011315174400806427, 0.016633445397019386, 0.021618833765387535, -0.04879613220691681, 0.022284753620624542, 0.045399259775877, 0.005212767049670219, 0.01977529749274254, -0.022089138627052307, -0.026836371049284935, -0.042529989033937454, -0.024351859465241432, 0.006675100885331631, 0.0027472449000924826, 0.009767540730535984, -0.005182343069463968, 0.0888483077287674, 0.05148216709494591, 0.022366832941770554, -0.002103733364492655, -0.008684883825480938, 0.0013853934360668063, 0.010748302564024925, -0.057727161794900894, -0.06263367831707001, -0.05844269320368767, -0.04616714268922806, -0.01870718225836754, 0.03027985244989395, -0.03351493924856186, -0.04071781411767006, -0.00399185623973608, 0.006762789096683264, -0.0004542995593510568, 0.05461860075592995, -0.025302335619926453, 0.027273768559098244, -0.015248626470565796, -0.03671448677778244, -0.000780134869273752, 0.008340084925293922, 0.012245596386492252, 0.019457466900348663, -0.008138141594827175, -0.050227031111717224, 0.011678241193294525, -0.038874302059412, 0.03403221443295479, 0.0434686616063118, -0.018011514097452164, 0.00849915947765112 ]
[ -0.0957205668091774, -0.040182702243328094, -0.04775455221533775, -0.007783533539623022, 0.06810048222541809, -0.0697561502456665, -0.04512440040707588, -0.02568979375064373, 0.00722516467794776, 0.012861360795795918, 0.03104434721171856, -0.08588607609272003, -0.00513887545093894, -0.03502507135272026, 0.042411815375089645, -0.01714520901441574, -0.05323966220021248, -0.06656215339899063, -0.027972599491477013, 0.03986082226037979, 0.0332554429769516, 0.0045773847959935665, -0.006078375969082117, -0.0356442928314209, 0.00676736468449235, 0.06761243939399719, 0.02212560549378395, -0.05509256199002266, -0.022276006639003754, -0.23940831422805786, 0.030988749116659164, -0.018477996811270714, 0.026933422312140465, -0.009822633117437363, 0.024549923837184906, 0.04125972092151642, 0.0027362112887203693, 0.0014698964077979326, -0.021369928494095802, 0.04723378270864487, 0.01843382604420185, -0.00968558806926012, -0.02572520263493061, -0.02328556403517723, 0.043011702597141266, -0.003613041015341878, -0.05030786618590355, -0.035882461816072464, 0.024578072130680084, -0.016591481864452362, -0.05237817019224167, -0.015281973406672478, -0.0475430004298687, -0.03047575056552887, 0.008984308689832687, 0.02475026249885559, 0.07393700629472733, 0.06311212480068207, 0.034649450331926346, 0.009714512154459953, -0.007840359583497047, -0.027754895389080048, -0.14447090029716492, 0.09592045843601227, 0.02457530051469803, 0.029161881655454636, -0.0008455784409306943, -0.021336596459150314, -0.025971606373786926, 0.05916089937090874, 0.011591961607336998, -0.025130582973361015, -0.03558074310421944, 0.08314254879951477, 0.030147068202495575, -0.02892782911658287, 0.005123091861605644, -0.024268660694360733, 0.04636678844690323, -0.01640009880065918, -0.05051533132791519, -0.011077790521085262, -0.005176753271371126, -0.04011711850762367, 0.011956348083913326, -0.000998281640931964, -0.06064428389072418, 0.0035740258172154427, 0.014895533211529255, -0.013880937360227108, 0.03581109270453453, -0.02889169007539749, 0.021023986861109734, 0.054608799517154694, -0.08024004101753235, 0.001599028124473989, 0.02041684277355671, 0.02991151437163353, -0.009128471836447716, 0.38677024841308594, -0.03640817105770111, -0.010366198606789112, 0.005619860254228115, 0.04919768497347832, -0.014854922890663147, -0.04092738777399063, -0.0034373130183666945, -0.039281006902456284, -0.01680264249444008, -0.05619959160685539, 0.019890623167157173, -0.026480192318558693, 0.04566178843379021, -0.05964963883161545, 0.004241677466779947, 0.03572889417409897, 0.00360485608689487, -0.005092766601592302, 0.005587399937212467, 0.021914798766374588, -0.027574066072702408, 0.010497312061488628, 0.027088237926363945, 0.008631118573248386, 0.00878872349858284, 0.0399465449154377, 0.016310762614011765, 0.08170256018638611, 0.03693358972668648, 0.03553362935781479, 0.0694313570857048, -0.034332796931266785, -0.08962549269199371, -0.009754381142556667, -0.029688091948628426, 0.0020557984244078398, 0.04234704747796059, 0.004322479944676161, 0.029871251434087753, 0.010353249497711658, -0.0006233687163330615, -0.09043367207050323, 0.0200987346470356, 0.02548499032855034, -0.033579494804143906, 0.1277363896369934, -0.06900330632925034, -0.0012430864153429866, -0.042350221425294876, -0.010786707513034344, -0.015454944223165512, 0.029388461261987686, -0.014414284378290176, -0.06559029966592789, 0.017591847106814384, 0.012827659025788307, 0.06663548201322556, -0.02249320037662983, -0.05242818221449852, -0.007708705496042967, -0.054392069578170776, -0.048044778406620026, -0.05247719585895538, 0.03086186572909355, 0.002190415048971772, -0.0980653241276741, -0.005028543062508106, 0.03148026764392853, 0.02807820402085781, -0.08048880100250244, 0.026682574301958084, 0.00916383322328329, -0.02347388304769993, -0.013966805301606655, 0.024714050814509392, -0.019602758809924126, -0.04092395678162575, -0.008636532351374626, 0.09671293944120407, 0.01723852939903736, 0.010476564057171345, -0.0031050893012434244, -0.04785757511854172, 0.011235572397708893, -0.00849749706685543, -0.07656772434711456, -0.04739426448941231, -0.01421026699244976, 0.027706513181328773, -0.031561799347400665, -0.010141214355826378, -0.045433513820171356, -0.09190487116575241, 0.028367534279823303, -0.05487952008843422, -0.021907256916165352, 0.02717379480600357, 0.03288193792104721, 0.0011493971105664968, -0.03421182185411453, 0.02439906634390354, 0.05753033608198166, 0.011235504411160946, 0.04025179520249367, -0.05747123807668686, -0.011445840820670128, 0.0717482939362526, -0.038785096257925034, 0.06459841132164001, 0.041522957384586334, -0.01287232805043459, -0.015528993681073189, 0.018115373328328133, 0.009253986179828644, -0.014137018471956253, -0.038231730461120605, 0.007998114451766014, 0.03550689294934273, 0.02047383226454258, 0.04015659540891647, -0.045747753232717514, -0.08684774488210678, -0.03558759391307831, -0.34687554836273193, -0.011375783011317253, 0.021246859803795815, -0.009887012653052807, 0.027987152338027954, -0.051155414432287216, 0.0075400518253445625, 0.0018447227776050568, -0.046981558203697205, 0.02279539406299591, 0.06750081479549408, 0.017014017328619957, 0.017550447955727577, -0.0968121811747551, -0.008388080634176731, 0.0013181472895666957, -0.02573954127728939, -0.03935157507658005, -0.004935088567435741, 0.03985891118645668, -0.011613750830292702, -0.01646510697901249, -0.008756859228014946, -0.019956372678279877, 0.014139242470264435, -0.04466075822710991, 0.13613048195838928, 0.02239679917693138, 0.08209367096424103, -0.0016552547458559275, 0.01784888282418251, 0.013697502203285694, -0.013843095861375332, -0.06613997370004654, 0.02550607919692993, -0.01265602558851242, 0.0018113789847120643, 0.039146482944488525, 0.0005517834215424955, -0.012538379058241844, -0.02631317265331745, 0.028393063694238663, -0.010928016155958176, -0.014461210928857327, -0.0026308002416044474, 0.015192141756415367, -0.015021441504359245, -0.017540419474244118, 0.006787856575101614, 0.06730092316865921, 0.02531679905951023, 0.03448266163468361, 0.015664102509617805, 0.004595471080392599, 0.024637496098876, -0.015732960775494576, -0.08728301525115967, -0.016128454357385635, -0.003491682931780815, -0.0517384335398674, 0.03505851328372955, 0.0026966878212988377, 0.030953919515013695, -0.05299309268593788, -0.03963463008403778, 0.01030928734689951, 0.02405150979757309, 0.016742398962378502, 0.04984044283628464, -0.021987998858094215, 0.016483766958117485, 0.10683219879865646, 0.017467735335230827, 0.010493719950318336, 0.040550265461206436, 0.07990935444831848, -0.006432804279029369, 0.022635789588093758, 0.02237304113805294, -0.009651941247284412, 0.05576472729444504, 0.029619865119457245, 0.06341692060232162, -0.01649675890803337, 0.035901982337236404, -0.01803489588201046, -0.018541837111115456, 0.038534700870513916, 0.06833280622959137, -0.01911451667547226, -0.01799115352332592, -0.016187474131584167, 0.013525017537176609, -0.02130739390850067, 0.10200158506631851, 0.015669992193579674, -0.24289339780807495, 0.01743343099951744, 0.03470713272690773, 0.046985309571027756, 0.01053546741604805, 0.005201965570449829, 0.02089867927134037, -0.05727948993444443, -0.029635079205036163, -0.013354013673961163, -0.0287329088896513, 0.03275059908628464, 0.010185292921960354, 0.0300898440182209, -0.007069456856697798, -0.01456272229552269, 0.06894368678331375, -0.002807818353176117, 0.01264133770018816, -0.001286827027797699, 0.04532443732023239, 0.0017697782022878528, 0.16380560398101807, 0.010427845641970634, -0.013668500818312168, -0.017868345603346825, -0.013389249332249165, 0.016978826373815536, 0.10349133610725403, 0.004756894428282976, -0.026701636612415314, 0.0239245668053627, 0.06713709235191345, -0.0010108199203386903, 0.02586231753230095, -0.004079835023730993, -0.013751843012869358, -0.005609315820038319, 0.026113806292414665, -0.030153892934322357, 0.010765175335109234, 0.024777544662356377, -0.05744269862771034, 0.023615224286913872, 0.0627160295844078, 0.0056066750548779964, 0.008686445653438568, -0.030846988782286644, -0.030648574233055115, -0.003881374141201377, -0.006506823468953371, 0.005505420733243227, -0.00858424324542284, -0.010942156426608562, 0.00721120135858655, 0.061838679015636444, 0.03333573788404465, -0.026593776419758797, -0.006689417641609907, 0.007060084491968155, 0.00834866613149643, -0.06701140105724335, 0.10892805457115173, 0.039992596954107285, 0.006401488091796637 ]
[ 0.009464574046432972, 0.0068869017995893955, -0.037032485008239746, 0.01164930034428835, -0.016519976779818535, -0.0029921310488134623, -0.017001666128635406, 0.0063332319259643555, -0.04041987657546997, -0.024666139855980873, -0.037700653076171875, 0.0062032886780798435, -0.009528011083602905, -0.02046872302889824, -0.0058241672813892365, -0.011806091293692589, -0.011203420348465443, 0.004187564831227064, 0.05249721184372902, -0.022570043802261353, -0.0586007758975029, 0.05910735949873924, 0.04385330528020859, 0.00764051266014576, -0.026110943406820297, 0.02182328887283802, -0.02129577100276947, 0.0017815502360463142, 0.017855457961559296, -0.11017411202192307, -0.01610368862748146, -0.03131512179970741, -0.008328952826559544, 0.004811723716557026, 0.0343022346496582, -0.011480631306767464, -0.047004811465740204, 0.023932255804538727, -0.024743802845478058, 0.02211722731590271, 0.02386569045484066, -0.024397017434239388, -0.02180786058306694, -0.006473197136074305, -0.01619558036327362, -0.0022194653283804655, -0.026968659833073616, -0.0162484273314476, 0.0075122336857020855, -0.016229931265115738, -0.05694720149040222, -0.0010478676995262504, -0.03606664761900902, -0.005020382348448038, 0.029750287532806396, -0.02111968770623207, -0.0023614787496626377, -0.006784370634704828, -0.002540960907936096, -0.015708299353718758, -0.003367695491760969, -0.0032559356186538935, -0.02606799453496933, -0.020503589883446693, 0.0013641827972605824, -0.038241107016801834, -0.02679484523832798, 0.037400022149086, 0.028645750135183334, 0.008253938518464565, -0.005654417909681797, 0.023043831810355186, -0.042803797870874405, -0.0028426300268620253, -0.00192650209646672, -0.03747234493494034, 0.0390162318944931, -0.04371163994073868, 0.027862325310707092, -0.0115064000710845, -0.042195290327072144, 0.008050370030105114, 0.022315848618745804, -0.004349251743406057, 0.003378193126991391, -0.05946233123540878, -0.03393277898430824, 0.056459832936525345, -0.027602573856711388, -0.03693869337439537, 0.01806473918259144, -0.015536423772573471, -0.0376579686999321, 0.03937531262636185, -0.08418754488229752, 0.0063455961644649506, 0.004256799817085266, 0.009428027085959911, 0.007357792928814888, 0.830979585647583, 0.0004180596151854843, -0.0017264963826164603, 0.019712822511792183, 0.02407252788543701, 0.020654072985053062, 0.022703515365719795, 0.03919661417603493, -0.051092781126499176, -0.0014889774611219764, -0.037693653255701065, 0.009431981481611729, -0.025582462549209595, 0.016014687716960907, 0.013322841376066208, 0.04520145058631897, 0.03153584524989128, 0.002828967524692416, 0.05697774514555931, 0.01381799764931202, 0.03134846314787865, -0.0023724078200757504, -0.027085641399025917, 0.029434092342853546, 0.003255323739722371, -0.016222070902585983, -0.15530580282211304, -0.007952248677611351, -7.390239678755625e-33, 0.0023254433181136847, -0.0511331744492054, 0.022318081930279732, 0.001025604666210711, 0.02426951564848423, 0.008216587826609612, -0.004773113876581192, -0.017514757812023163, 0.017190242186188698, -0.031792085617780685, -0.007326759397983551, -0.010985137894749641, 0.013242991641163826, -0.021240882575511932, 0.025753388181328773, -0.00154990260489285, 0.0002944206353276968, 0.05401211231946945, -0.01400857325643301, 0.014271610416471958, 0.04370490089058876, 0.040147941559553146, 0.01810297556221485, 0.011178841814398766, -0.01364829484373331, -0.01143962424248457, -0.007849686779081821, 0.001715877209790051, -0.012541493400931358, -0.036675672978162766, -0.05262554809451103, 0.016417590901255608, -0.0007645853911526501, -0.04150037840008736, 0.004400805104523897, -0.06509661674499512, -0.019502781331539154, 0.004035768564790487, -0.014512325637042522, 0.0003082482435274869, -0.044233374297618866, 0.006969595793634653, 0.008277470245957375, -0.02629331685602665, -0.029755456373095512, 0.0140975471585989, 0.01736162230372429, 0.07510046660900116, 0.0018570773536339402, 0.027832621708512306, 0.005931095685809851, -0.0013512165751308203, 0.004253406543284655, -0.008038722909986973, 0.006821704562753439, 0.03379576653242111, 0.044073984026908875, 0.012860787101089954, 0.024489067494869232, -0.005112536251544952, 0.012828677892684937, 0.004621765110641718, 0.009508935734629631, 0.018192796036601067, -0.00824426207691431, 0.005535649601370096, 0.027374209836125374, 0.03789598122239113, 0.014647361822426319, 0.023964492604136467, -0.07659727334976196, 0.0391581691801548, -0.06863099336624146, -0.031449027359485626, 0.018187301233410835, -0.05307446047663689, 0.020512912422418594, -0.020364228636026382, 0.009581142105162144, 0.02082107402384281, 0.04775809124112129, 0.0018393329810351133, -0.02716078981757164, -0.02887253649532795, -0.01421346329152584, -0.007010547909885645, 0.009618384763598442, 0.016039926558732986, -0.0013814122648909688, -0.020604897290468216, 0.021543176844716072, -0.001024478580802679, -0.008642109110951424, -0.020175300538539886, -0.03935122862458229, 6.781648049768525e-33, 0.011894477531313896, 0.007895959541201591, -0.03102901577949524, 0.008589372038841248, 0.025522468611598015, 0.008861205540597439, 0.04260026663541794, 0.007124172057956457, -0.03205224871635437, 0.030364518985152245, -0.024381563067436218, -0.026267485693097115, 0.004927424713969231, 0.0025147434789687395, 0.03345911204814911, -0.0017720372416079044, -0.025187814608216286, 0.0567413754761219, 0.01835389994084835, -0.0470157116651535, -0.033956971019506454, 0.011992456391453743, 0.019942672923207283, 0.00570438988506794, -0.005289720371365547, 0.0207278560847044, -0.028661901131272316, 0.003759290324524045, 0.025376033037900925, 0.019446099177002907, 0.0010733094532042742, -0.01565057784318924, -0.008397061377763748, 0.019675755873322487, 0.024131786078214645, 0.02962871640920639, 0.022357208654284477, -0.04495374485850334, 0.00528327189385891, 0.00441014626994729, 0.06217866763472557, 0.05846264213323593, -0.006229126360267401, 0.028246700763702393, 0.016649501398205757, 0.03182148188352585, -0.018258506432175636, 0.035532478243112564, -0.025452755391597748, -0.040441110730171204, -0.027007462456822395, 0.013081233948469162, 0.005493701435625553, 0.010892735794186592, -0.005460383836179972, 0.008996081538498402, -0.027229053899645805, 0.04573730751872063, -0.04219760000705719, 0.014255099929869175, -0.03815237432718277, -0.02704005315899849, -0.02298642136156559, -0.011008226312696934, -0.018472719937562943, -0.009471514262259007, -0.058427561074495316, 0.006040914449840784, -0.00004259421621100046, 0.011868061497807503, -0.0005474624922499061, -0.017828458920121193, -0.0019620279781520367, 0.02515682578086853, -0.0276735071092844, 0.001492027658969164, -0.035406000912189484, 0.005699210800230503, -0.022146863862872124, 0.04698906093835831, 0.03108290210366249, -0.0201454758644104, 0.04013969749212265, 0.037765022367239, 0.01077262219041586, 0.04192422330379486, 0.01853106915950775, 0.011560757644474506, 0.026562590152025223, -0.03362269327044487, 0.028925053775310516, -0.008428752422332764, -0.02010161615908146, 0.047672338783741, -0.013602803461253643, -1.2851870678787236e-8, -0.015874557197093964, -0.0026346128433942795, 0.011509597301483154, 0.0474039725959301, 0.023012828081846237, 0.03286164253950119, -0.005659023299813271, -0.01775738038122654, -0.009965676814317703, 0.04682900756597519, 0.030270874500274658, -0.03779425472021103, 0.008194636553525925, 0.007261773571372032, 0.009163635782897472, 0.013557971455156803, 0.00893480982631445, 0.005019794683903456, 0.0270876232534647, -0.007492797914892435, 0.014081139117479324, 0.029307274147868156, 0.0011270574759691954, 0.003935318905860186, -0.020189236849546432, 0.002026005182415247, 0.0005752319120801985, -0.06328301876783371, 0.00005312953362590633, -0.03226003423333168, 0.00975082442164421, -0.048444196581840515, -0.024708280339837074, 0.029227368533611298, -0.010043265298008919, -0.022366829216480255, 0.010780567303299904, 0.020488319918513298, 0.03816710412502289, 0.02883869595825672, -0.05269039049744606, 0.008668703027069569, -0.02012706734240055, -0.022544926032423973, -0.009773151949048042, -0.04042711481451988, -0.0323667898774147, -0.0003319165844004601, -0.015607555396854877, -0.05232700705528259, 0.03298031911253929, -0.024923307821154594, 0.015847481787204742, 0.013556485064327717, 0.047863129526376724, 0.02279823087155819, -0.06259274482727051, 0.0008040568209253252, -0.023673685267567635, 0.005529988091439009, 0.025729499757289886, -0.010988333262503147, -0.02362895756959915, -0.007450086995959282 ]
python-3-typeerror-unsupported-format-string-passed-to-numpy-ndarray-__format__
https://markhneedham.com/blog/2017/11/19/python-3-typeerror-unsupported-format-string-passed-to-numpy-ndarray-__format__
false
2017-11-06 16:17:35
Neo4j Browser: Expected entity id to be an integral value
[ "javascript", "neo4j", "neo4j-browser" ]
[ "neo4j" ]
I came across an interesting error while writing a Cypher query that used parameters in the Neo4j browser which I thought I should document for future me. We'll start with a graph that has 1,000 people: [source,cypher] ---- unwind range(0,1000) AS id create (:Person {id: id}) ---- Now we'll try and retrieve some of those people via a parameter lookup: [source,cypher] ---- :param ids: [0] ---- [source,cypher] ---- match (p:Person) where p.id in {ids} return p ╒════════╕ │"p" │ ╞════════╡ │{"id":0}│ └────────┘ ---- All good so far. Now what about if we try and look them up by their internal node id instead: [source,cypher] ---- match (p:Person) where id(p) in {ids} return p Neo.ClientError.Statement.TypeError Expected entity id to be an integral value ---- Hmm, that was unexpected. It turns out that to get this query to work we need to cast each of the integer values in the +++<cite>+++\{ids}+++</cite>+++ array to a 64 bit integer using the +++<cite>+++https://neo4j.com/docs/developer-manual/current/cypher/functions/scalar/#functions-tointeger[toInteger]+++</cite>+++ function: [source,cypher] ---- match (p:Person) where id(p) in [id in {ids} | toInteger(id)] return p ╒════════╕ │"p" │ ╞════════╡ │{"id":0}│ └────────┘ ---- Success!
Learn how to handle the 'Expected entity id to be an integral value' error that you get if you pass in 32 bit integer values as params to a query.
null
[ -0.017966201528906822, 0.0026798800099641085, -0.018213817849755287, 0.02678084932267666, 0.07962463796138763, -0.0017327325185760856, 0.027608424425125122, 0.01040674652904272, 0.017230592668056488, -0.024237345904111862, 0.006644755136221647, -0.015949241816997528, -0.06798853725194931, 0.016373921185731888, 0.011929839849472046, 0.06359919905662537, 0.06321930140256882, 0.014312604442238808, -0.00036986268241889775, -0.01546824723482132, 0.008020857349038124, 0.02983355149626732, -0.0020564559381455183, 0.0256261695176363, 0.05254998430609703, 0.026002874597907066, -0.009366566315293312, -0.017534101381897926, -0.035112086683511734, 0.007960496470332146, 0.04149381443858147, 0.011148263700306416, 0.010106636211276054, -0.027177205309271812, 0.014022552408277988, 0.007381155155599117, -0.04729988053441048, 0.001609847997315228, -0.01619989611208439, 0.008445905521512032, -0.05556625500321388, 0.02521105483174324, -0.0010763226309791207, 0.02878754399716854, -0.05506308749318123, 0.01088316272944212, -0.06087316572666168, 0.037056226283311844, -0.0009497348219156265, 0.021537864580750465, -0.09438110142946243, 0.016183985397219658, -0.0282317902892828, 0.011981818825006485, 0.020940091460943222, 0.03562077879905701, 0.0169169120490551, -0.0658770352602005, 0.056203436106443405, -0.019495764747262, 0.011552159674465656, 0.013676773756742477, 0.0026115309447050095, 0.027133898809552193, -0.01767376996576786, -0.031831178814172745, -0.002885733963921666, 0.07153663039207458, -0.06731274724006653, -0.015411683358252048, -0.0017763967625796795, 0.008124085143208504, -0.00587459746748209, -0.030100323259830475, -0.011586686596274376, -0.0380202941596508, -0.0019071180140599608, 0.0631626769900322, 0.04375043138861656, 0.057432856410741806, -0.022799579426646233, 0.01734515093266964, 0.003723391331732273, 0.0124241653829813, 0.009434159845113754, -0.030276764184236526, -0.020327340811491013, -0.037118036299943924, -0.049515169113874435, 0.010739141143858433, 0.025817014276981354, -0.05974347144365311, -0.011807611212134361, 0.0021479735150933266, -0.034848831593990326, 0.007231240160763264, -0.023925885558128357, -0.02178947627544403, 0.008769752457737923, 0.002437679097056389, -0.03163180872797966, -0.029542695730924606, 0.004651905503123999, 0.011760180816054344, -0.07814005017280579, -0.03565094619989395, -0.004075990058481693, -0.026415986940264702, -0.00590578094124794, 0.0022388470824807882, -0.05831354856491089, 0.015346056781709194, -0.02958676777780056, 0.010740820318460464, -0.10274281352758408, 0.05595800280570984, 0.03351839631795883, 0.00796025712043047, 0.00873598363250494, 0.021183377131819725, 0.030817531049251556, 0.03206773102283478, 0.006454273127019405, 0.07053520530462265, -0.02243092656135559, 0.0660143792629242, -0.004145684652030468, 0.03799944743514061, -0.006565858609974384, -0.06084698811173439, -0.02538682520389557, 0.0736403688788414, 0.024388369172811508, 0.0077475798316299915, -0.003856118069961667, -0.05766567960381508, -0.039667680859565735, 0.022372912615537643, 0.03257814422249794, 0.020921025425195694, 0.020510980859398842, -0.05963577330112457, 0.023647388443350792, -0.0041931201703846455, 0.03421355411410332, 0.024591023102402687, -0.022021306678652763, -0.034906379878520966, -0.0020505248103290796, 0.022280117496848106, 0.02487502060830593, 0.050148364156484604, 0.06811277568340302, -0.015956968069076538, 0.0052997153252363205, 0.11126439273357391, 0.030146924778819084, 0.001569440239109099, -0.02678591012954712, 0.019736355170607567, 0.04911720007658005, 0.017828157171607018, -0.0003677625791169703, 0.05450272560119629, -0.0019494383595883846, 0.00408122967928648, -0.01605243794620037, 0.06518551707267761, -0.006080936640501022, -0.0010886447271332145, -0.024963609874248505, -0.05005913972854614, 0.049353472888469696, -0.03430895507335663, -0.005736473482102156, 0.028386970981955528, 0.06306804716587067, 0.001884768600575626, 0.025980383157730103, -0.011531174182891846, -0.06948715448379517, 0.053788524121046066, 0.0026606786996126175, -0.0003751581534743309, -0.006017772946506739, 0.011246907524764538, 0.09892047941684723, 0.049181923270225525, -0.009156382642686367, 0.032326217740774155, -0.06563520431518555, -0.06456131488084793, 0.004650911316275597, -0.02317969873547554, 0.06812121719121933, -0.02738083340227604, 0.01277638878673315, 0.04477132111787796, 0.013235677033662796, 0.011364077217876911, -0.0009333749185316265, -0.015831690281629562, 0.058955177664756775, -0.030477268621325493, -0.033951837569475174, 0.06672590970993042, 0.06121031194925308, -0.047332607209682465, -0.03308723494410515, 0.023214273154735565, 0.007971187122166157, 0.01922096125781536, 0.019888585433363914, -0.021753905341029167, 0.026349546387791634, 0.02329578436911106, 0.020116539672017097, -0.017596334218978882, 0.017112893983721733, -0.025690706446766853, 0.05332855135202408, 0.013853075914084911, -0.03148755058646202, 0.002126948209479451, -0.017848918214440346, 0.12819091975688934, 0.05575292557477951, -0.021427182480692863, -0.03853484243154526, 0.024833044037222862, 0.008408858440816402, -0.008375563658773899, 0.03872843459248543, -0.015061268582940102, -0.02790740691125393, -0.013144738972187042, -0.023776955902576447, -0.0075375051237642765, 0.03285948187112808, -0.02506088837981224, 0.010053562000393867, 0.054070599377155304, -0.01838994212448597, 0.04048328101634979, 0.004919014405459166, -0.009472258388996124, 0.015180949121713638, -0.04389180615544319, -0.03738640621304512, 0.035720210522413254, 0.021342406049370766, -0.002820744179189205, 0.05937901511788368, -0.03610299155116081, -0.011651143431663513, -0.026930196210741997, -0.00853645708411932, 0.032600030303001404, 0.05492416024208069, 0.040802620351314545, -0.03117331676185131, 0.04019445553421974, -0.04448758810758591, 0.009656456299126148, 0.002025248482823372, -0.04494984820485115, -0.04289330914616585, -0.001660040346905589, 0.02050098590552807, 0.010034620761871338, 0.03880809620022774, 0.005915719084441662, 0.023332076147198677, -0.014407794922590256, 0.029773853719234467, 0.005499763879925013, 0.03673168644309044, 0.009834651835262775, -0.021596889942884445, -0.03374016284942627, -0.024141516536474228, 0.04073254019021988, -0.0631013885140419, -0.04292141646146774, -0.02600940689444542, -0.030591333284974098, 0.018736612051725388, -0.06532763689756393, -0.05540188401937485, -0.007215635385364294, 0.048918381333351135, 0.050038646906614304, 0.0031458050943911076, 0.010134204290807247, 0.07843995094299316, 0.0005820543738082051, 0.0029318733140826225, 0.0388590544462204, 0.018068594858050346, 0.06126249209046364, 0.00027507575578056276, 0.05000145733356476, 0.03874962404370308, -0.028664642944931984, -0.017657248303294182, -0.029427791014313698, -0.0204129870980978, -0.02178715169429779, -0.28445956110954285, 0.03980603441596031, -0.03925733268260956, -0.030012445524334908, 0.004027501214295626, -0.0319206602871418, 0.0012649180134758353, -0.015519075095653534, -0.03506176173686981, 0.03525450825691223, 0.03377286717295647, -0.011108361184597015, -0.029375113546848297, 0.05460626631975174, 0.015014920383691788, 0.01752197928726673, -0.010132912546396255, -0.047662537544965744, -0.010689564049243927, 0.03194800019264221, 0.013222087174654007, -0.04664945602416992, -0.03659973666071892, 0.011464373208582401, 0.016820764169096947, 0.02258288860321045, -0.0862361341714859, 0.03124818578362465, -0.06822067499160767, -0.048217374831438065, 0.014764812774956226, -0.04308575391769409, 0.022468235343694687, -0.0013010185211896896, -0.00997907668352127, -0.015433457680046558, 0.033742111176252365, 0.00015600833285134286, 0.004816817585378885, 0.023244546726346016, -0.08001171052455902, -0.05899035185575485, -0.000597249309066683, -0.015899375081062317, 0.06183511018753052, 0.007983770221471786, -0.07161074131727219, -0.009501044638454914, -0.026036061346530914, 0.04628697410225868, -0.026640629395842552, -0.03312695771455765, -0.029966246336698532, 0.011032241396605968, -0.01753968372941017, -0.03454448655247688, -0.005820725113153458, -0.0010014319559559226, -0.06277026236057281, 0.0013920635683462024, 0.013098331168293953, -0.03207596391439438, 0.0016181288519874215, -0.050387997180223465, -0.017833814024925232, -0.058976974338293076, -0.06405951082706451, -0.03422928228974342, 0.04260670021176338, 0.014561254531145096, -0.00674630980938673, 0.022101478651165962, -0.004220884293317795, -0.10416603088378906, -0.0405050553381443, -0.026552453637123108, 0.004798120819032192, 0.011478783562779427, -0.039962757378816605, 0.03841383755207062, -0.06702529639005661, -0.036708611994981766, -0.015146518126130104, 0.020061297342181206, 0.015999680384993553, 0.0030077267438173294, -0.0052984002977609634, -0.04448632523417473, -0.03815145045518875, 0.018164915964007378, 0.07113932818174362, -0.01945229433476925, -0.003434985177591443, 0.012954453937709332, -0.010442991741001606, 0.03786933422088623, 0.026472758501768112, -0.008855372667312622, 0.012893494218587875, 0.05016285553574562, 0.03770223259925842, -0.027905719354748726, 0.01233422476798296, -0.05220000445842743, -0.02925495244562626, -0.00027125299675390124, -0.04045996814966202, 0.02123616822063923, -0.0004747314378619194, -0.029654620215296745, -0.007053672336041927, 0.005540871061384678, -0.0075133186765015125, -0.05469489470124245, -0.04781631752848625, -0.0010482814395800233, 0.013742144219577312, 0.02840716764330864, 0.038768358528614044, -0.03380143642425537, -0.07796894013881683, 0.024760019034147263, 0.02549053356051445, -0.005087432451546192, -0.05203819274902344, -0.043474242091178894, -0.031200440600514412, -0.01809658110141754, -0.012025508098304272, 0.019571999087929726, -0.045301251113414764, 0.049364976584911346, 0.009939269162714481, -0.007998225279152393, 0.022195469588041306, -0.031793076545000076, -0.010438960045576096, 0.004333340097218752, 0.001424956601113081, 0.010419528000056744, 0.009900429286062717, 0.01238845381885767, -0.012572192586958408, 0.07508943974971771, 0.025917358696460724, 0.0008246722863987088, 0.02866494469344616, 0.010777315124869347, 0.017768967896699905, 0.013077101670205593, -0.012552893720567226, -0.012866773642599583, 0.03290747106075287, -0.0439612977206707, -0.04121590033173561, 0.0006007286719977856, 0.08323056995868683, -0.03134521469473839, -0.01514418888837099, -0.03172755613923073, 0.03157973662018776, -0.05646884813904762, 0.018641535192728043, -0.009543980471789837, -0.01024719513952732, 0.03818913549184799, -0.009957585483789444, 0.008391838520765305, -0.03554651513695717, -0.006319282576441765, 0.0012206407263875008, 0.040712181478738785, -0.013083652593195438, 0.014359313994646072, 0.005127857439219952, 0.019803209230303764, 0.015811851248145103, 0.041085999459028244, 0.004629248287528753, 0.011337577365338802, -0.005481893662363291, -0.007848352193832397, 0.005448969546705484, 0.03044397011399269, 0.020272497087717056, 0.0011504238937050104, -0.015069675631821156, 0.005916894413530827, -0.03309927508234978, -0.02839726395905018, -0.01832694001495838, -0.006519547663629055, -0.038064565509557724, 0.02688513696193695, -0.017982490360736847, -0.055151138454675674, 0.06682821363210678, 0.002445481950417161, -0.010573117062449455, 0.03708546981215477, 0.02272532507777214, 0.013787069357931614, -0.04652538523077965, 0.01358253788203001, 0.05118944123387337, -0.05420352891087532, -0.020843131467700005, -0.020393995568156242, -0.02549245022237301, 0.002070296322926879, 0.016695115715265274, -0.04394238442182541, -0.045864809304475784, -0.016717921942472458, 0.001659400761127472, -0.009482286870479584, -0.05115042254328728, -0.004790955223143101, 0.01916392706334591, -0.010759899392724037, 0.056771304458379745, 0.028542285785079002, 0.023330088704824448, -0.048507362604141235, -0.0004047869297210127, 0.04952804744243622, -0.026245160028338432, -0.02551473304629326, 0.0074025848880410194, 0.0029468617867678404, 0.02811884507536888, -0.024890175089240074, 0.04077339544892311, 0.00844481959939003, -0.0059409476816654205, -0.02977343462407589, -0.08626804500818253, 0.01848609372973442, -0.0261096004396677, 0.03483842685818672, -0.002999424235895276, -0.027860188856720924, 0.006315702106803656, 0.01179185975342989, -0.007264761254191399, -0.003291082801297307, 0.003947610966861248, -0.01721404865384102, -0.01727837137877941, 0.030894244089722633, -0.0054627759382128716, 0.07352278381586075, -0.012424330227077007, -0.03265673667192459, 0.05601125210523605, -0.005026817787438631, -0.030595790594816208, -0.004842850845307112, -0.03829776123166084, 0.0052833701483905315, 0.01583695039153099, 0.023823851719498634, -0.05812475457787514, 0.06920094043016434, 0.04342694580554962, 0.028095662593841553, 0.018476029857993126, -0.01907840184867382, 0.042366910725831985, -0.02091979794204235, -0.020232586190104485, -0.06421033293008804, 0.012241638265550137, 0.045204129070043564, 0.020106840878725052, 0.01439766027033329, -0.033664170652627945, -0.027976932004094124, 0.01526008453220129, -0.06121671199798584, -0.02087273634970188, 0.024305621162056923, -0.004451391752809286, 0.0032074900809675455, 0.009394817985594273, -0.03501223027706146, -0.01252116821706295, 0.05331086367368698, -0.03976830467581749, -0.028251949697732925, -0.026520024985074997, 0.04242575168609619, -0.013511755503714085, 0.0638539269566536, -0.01859309710562229, -0.019996382296085358, 0.061650291085243225, 0.04059842973947525, 0.026086395606398582, 0.061890460550785065, -0.024407057091593742, 0.019356172531843185, 0.03630877658724785, -0.026394963264465332, 0.010027083568274975, 0.027992745861411095, -0.018418220803141594, -0.055352259427309036, 0.02150833047926426, 0.0005517478566616774, -0.025038698688149452, -0.04055982455611229, 0.06595912575721741, 0.0012999717146158218, -0.0461261160671711, -0.0643581748008728, 0.03688773512840271, -0.014790121465921402, -0.028765464201569557, -0.04516952484846115, 0.002509338315576315, 0.003147353418171406, 0.05411609262228012, -0.011522435583174229, 0.01361081749200821, 0.06192072108387947, -0.005039730109274387, 0.0117439990863204, -0.005959220230579376, 0.06488124281167984, 0.10001332312822342, 0.04010199010372162, 0.0077860611490905285, 0.06553982198238373, -0.024341268464922905, -0.027928253635764122, -0.003948377911001444, -0.055482614785432816, -0.02441309578716755, 0.02058909647166729, 0.001818705233745277, 0.08773176372051239, -0.007002748548984528, 0.05634656175971031, -0.036901697516441345, 0.01917608454823494, -0.017006708309054375, -0.015335285104811192, 0.02834184840321541, 0.07084067165851593, -0.005558579694479704, 0.03597285598516464, -0.0445900484919548, -0.02892059087753296, -0.0020606601610779762, -0.0023405486717820168, -0.01979394629597664, 0.017101852223277092, -0.01600595749914646, -0.0013936489121988416, 0.008672542870044708, 0.024755947291851044, 0.10595705360174179, -0.06329324096441269, -0.027167892083525658, 0.002879976062104106, 0.01618369109928608, -0.024391284212470055, -0.0005279651377350092, -0.0056297206319868565, -0.03998948261141777, -0.007759361527860165, -0.03622147813439369, -0.04140954464673996, -0.040039557963609695, -0.07613743096590042, 0.00460923183709383, -0.031025633215904236, -0.00015486349002458155, 0.0013906880049034953, -0.019688354805111885, -0.010701837949454784, -0.05574013665318489, -0.03517332673072815, -0.024074234068393707, -0.08007041364908218, 0.025345269590616226, -0.009354968555271626, -0.00523800402879715, -0.00471453694626689, 0.01415124349296093, -0.026317890733480453, -0.007510264404118061, 0.05379541218280792, -0.029433611780405045, -0.01107651274651289, 0.028778843581676483, 0.0008436057833023369, 0.007421071641147137, 0.03274361044168472, 0.04777805879712105, -0.0015126082580536604, 0.03839816525578499, 0.0033032495994120836, -0.010164120234549046, 0.040417496114969254, 0.02193428948521614, 0.0014907271834090352, -0.08626724779605865, -0.04068399593234062, 0.030582772567868233, 0.00838116928935051, -0.0632595345377922, 0.003112746635451913, 0.03447384759783745, 0.019370563328266144, 0.029936304315924644, -0.00025530578568577766, -0.023283539339900017, -0.05039338394999504, 0.013851359486579895, 0.004867784213274717, -0.016969170421361923, 0.038951531052589417, -0.04096563160419464, 0.07718493044376373, 0.020369991660118103, -0.03380013257265091, 0.0025594341568648815, -0.0195733904838562, -0.003487774170935154, 0.016851555556058884, -0.061412714421749115, -0.02952263131737709, -0.031193668022751808, -0.08100363612174988, 0.0041732508689165115, -0.008432023227214813, -0.01076854020357132, -0.007488519884645939, 0.007173815276473761, 0.04450567439198494, -0.041708193719387054, 0.03707370534539223, -0.06304113566875458, 0.05359390750527382, -0.02157396264374256, -0.02287602797150612, -0.016968034207820892, 0.02884148433804512, -0.004766455851495266, 0.0058509171940386295, 0.020806262269616127, -0.0491039901971817, 0.005748126655817032, -0.05501643195748329, 0.026375606656074524, 0.026150334626436234, 0.00435379846021533, 0.03760704770684242 ]
[ -0.060483667999506, -0.03548622503876686, -0.05521589517593384, -0.011309859342873096, 0.04267830774188042, -0.03965596854686737, 0.00991496630012989, 0.02951689623296261, 0.028537113219499588, -0.005520163103938103, 0.04294528812170029, -0.027114251628518105, 0.022506827488541603, 0.0063729905523359776, 0.04536554589867592, 0.018472349271178246, -0.02859657071530819, -0.06046510487794876, -0.0480506494641304, 0.06900101900100708, -0.014376242645084858, -0.047768764197826385, -0.014507128857076168, -0.021626250818371773, 0.0005031293840147555, 0.045159462839365005, 0.037970758974552155, -0.03899651765823364, -0.028233468532562256, -0.2015698403120041, -0.013098005205392838, 0.04257679730653763, 0.00862333457916975, -0.0069825355894863605, 0.015703367069363594, 0.029848508536815643, 0.04826231673359871, -0.027068158611655235, 0.04703909158706665, 0.041024260222911835, 0.019956551492214203, -0.005115921143442392, -0.048553746193647385, -0.02476240135729313, 0.05508962273597717, 0.015378127805888653, -0.021237170323729515, -0.007703984156250954, -0.02282344549894333, 0.03186197951436043, -0.040660928934812546, -0.0025089227128773928, 0.0015804381109774113, 0.013505671173334122, 0.008463624864816666, 0.05586591735482216, 0.0486300103366375, 0.06930564343929291, 0.04009227082133293, 0.05794553458690643, 0.021630218252539635, 0.0030828199815005064, -0.12275450676679611, 0.053750548511743546, 0.0026031683664768934, 0.026353640481829643, -0.048689208924770355, -0.02280324697494507, -0.03635529428720474, 0.05448567867279053, 0.0478321835398674, -0.007125478237867355, -0.056820377707481384, 0.06106681749224663, -0.023768050596117973, 0.026156675070524216, -0.010372009128332138, 0.020052826032042503, 0.05835985764861107, -0.015477270819246769, -0.04301027953624725, -0.006444307044148445, -0.03172779083251953, -0.009381737560033798, -0.026780130341649055, 0.04426892101764679, -0.023606544360518456, 0.05427945405244827, 0.025725040584802628, 0.010972502641379833, 0.04177489131689072, 0.01604129746556282, 0.015743069350719452, 0.055053308606147766, -0.07309489697217941, -0.009364301338791847, -0.000048466281441506, 0.03525533899664879, -0.017493367195129395, 0.40978118777275085, 0.033916961401700974, -0.006512063555419445, 0.021200599148869514, 0.046164099127054214, 0.004416345153003931, -0.02789544314146042, -0.012824545614421368, -0.0667971670627594, 0.04461963102221489, -0.02365599013864994, -0.023056400939822197, -0.0660245418548584, 0.025221511721611023, -0.07184504717588425, -0.008021620102226734, 0.04800467565655708, 0.07034085690975189, 0.010292994789779186, -0.0323600210249424, -0.024054376408457756, -0.011727552860975266, 0.008649557828903198, 0.02272459678351879, 0.026370732113718987, 0.020277997478842735, 0.011886278167366982, 0.008272175677120686, 0.0490335151553154, 0.0010866648517549038, 0.04105757176876068, 0.05078008398413658, 0.011446984484791756, -0.07906027883291245, 0.025185024365782738, -0.028910119086503983, -0.00571392523124814, 0.03492174297571182, -0.03490805625915527, -0.02018565684556961, 0.02134307101368904, -0.011263487860560417, -0.04077873006463051, 0.0032223088201135397, 0.02425323985517025, -0.015341579914093018, 0.13318228721618652, -0.006543820258229971, -0.027624430134892464, -0.020330078899860382, -0.06058966740965843, 0.004810428712517023, 0.03209651634097099, -0.0261940099298954, -0.05849257484078407, -0.017873916774988174, 0.003983704373240471, 0.08445239812135696, -0.003385198535397649, -0.07657227665185928, 0.002884831978008151, 0.023067301139235497, -0.029016762971878052, -0.05772508308291435, 0.09126109629869461, 0.03338606655597687, -0.1084904745221138, -0.028794724494218826, 0.01284540444612503, -0.004441520664840937, -0.06251919269561768, 0.01738966815173626, 0.0033195866271853447, -0.05564147233963013, -0.010664016008377075, 0.05615095794200897, -0.01942756213247776, -0.047597888857126236, -0.004050686489790678, 0.014739900827407837, 0.0235730092972517, -0.016117731109261513, -0.0010113563621416688, -0.03173050656914711, -0.0043279374949634075, -0.08472056686878204, -0.07755894958972931, -0.06548897922039032, 0.020845843479037285, -0.025474073365330696, -0.03898489475250244, -0.03532298281788826, 0.014204418286681175, -0.054405901581048965, 0.0775824785232544, -0.04803457483649254, -0.031214699149131775, -0.022003933787345886, 0.011623394675552845, -0.00018149371317122132, -0.06492077559232712, 0.0516245998442173, 0.027399994432926178, 0.004400572739541531, 0.021805670112371445, -0.08045680075883865, 0.004722464829683304, 0.05515144020318985, -0.026390427723526955, 0.04124050587415695, 0.04443150386214256, -0.051541466265916824, 0.008742596954107285, -0.013166064396500587, 0.04137756675481796, 0.004979316610842943, -0.017255621030926704, 0.008115550503134727, -0.0003849178901873529, 0.03529069945216179, 0.039542436599731445, -0.04693392664194107, -0.01162435207515955, -0.020505260676145554, -0.3562110662460327, -0.05079883709549904, -0.03266356140375137, -0.018936844542622566, 0.010818039067089558, -0.003559323726221919, 0.01875755935907364, 0.0005621174932457507, -0.02363979071378708, 0.026068858802318573, 0.07725472748279572, -0.01073935255408287, -0.0213560089468956, -0.05321786552667618, -0.009076982736587524, 0.029393715783953667, -0.02276681363582611, -0.003859648248180747, -0.02010595239698887, 0.01972685568034649, -0.014879402704536915, -0.04572576656937599, -0.03008275479078293, -0.04780442267656326, -0.017699863761663437, -0.002234277781099081, 0.1172022894024849, 0.012376337312161922, 0.008397395722568035, -0.05522424727678299, 0.049535203725099564, 0.008098425343632698, -0.004970288835465908, -0.06229985132813454, 0.026431972160935402, -0.02060435153543949, 0.011549500748515129, 0.010360109619796276, -0.007305814418941736, -0.005442689172923565, -0.05571778863668442, -0.01931048184633255, -0.04118217155337334, -0.02494608797132969, -0.025225132703781128, 0.00907447561621666, -0.057705920189619064, -0.010159929282963276, 0.01341327279806137, 0.09695817530155182, 0.018511025235056877, 0.03573240712285042, 0.024111801758408546, 0.03450419008731842, 0.030600497499108315, -0.020627927035093307, -0.08181361854076385, -0.021107470616698265, 0.016039827838540077, 0.022353455424308777, 0.004539298824965954, 0.028164979070425034, 0.03881744667887688, -0.08861088007688522, 0.03213484585285187, -0.01598907634615898, -0.010999648831784725, 0.010190033353865147, 0.04719577729701996, -0.038997139781713486, -0.0355682373046875, 0.12091532349586487, 0.012886334210634232, 0.021632643416523933, 0.019195687025785446, 0.05306457728147507, -0.024834688752889633, -0.01843387447297573, 0.0272960402071476, 0.013124330900609493, 0.03705925866961479, -0.03658662736415863, 0.06648039072751999, -0.0324443094432354, -0.019102465361356735, 0.054208651185035706, -0.004656004253774881, -0.01813323050737381, 0.08306153118610382, -0.022625362500548363, -0.044436078518629074, -0.008820001035928726, -0.05931510031223297, -0.046003300696611404, 0.05523049831390381, -0.03176504001021385, -0.2673236131668091, 0.05916660651564598, 0.018190372735261917, 0.05851293355226517, 0.010109670460224152, 0.008453572168946266, 0.03211519494652748, -0.03835059702396393, -0.007280766032636166, -0.01895878091454506, 0.05367013439536095, 0.028151724487543106, -0.00570150651037693, 0.001031154883094132, 0.014920403249561787, 0.007143510039895773, 0.005172964185476303, 0.013936260715126991, 0.035783879458904266, 0.040210068225860596, 0.05393185093998909, 0.014136206358671188, 0.19416072964668274, 0.040826600044965744, -0.0016630049794912338, 0.02455742284655571, -0.027501879259943962, 0.004057342652231455, 0.04874134063720703, -0.016192063689231873, -0.030008163303136826, 0.030714618042111397, 0.0036468144971877337, 0.025546394288539886, 0.0252249613404274, -0.04638976976275444, -0.009767941199243069, 0.028198786079883575, 0.02082226425409317, -0.048784978687763214, 0.009174452163279057, -0.00869431346654892, -0.013633385300636292, 0.04508478567004204, 0.0641993060708046, -0.013554149307310581, 0.007504492998123169, -0.015132059343159199, -0.0445842482149601, 0.0034185913391411304, -0.015500159002840519, -0.0309066791087389, -0.028907231986522675, -0.014120462350547314, 0.002131521701812744, 0.06523220986127853, 0.033351149410009384, -0.02117129974067211, 0.014851332642138004, 0.00662913778796792, -0.010625121183693409, -0.022662479430437088, 0.09413517266511917, -0.04552247375249863, 0.0018787693697959185 ]
[ 0.03074469417333603, 0.08955634385347366, -0.020849784836173058, 0.025169920176267624, -0.004458731506019831, -0.02068781666457653, -0.027242310345172882, -0.0003621112264227122, -0.02892582304775715, -0.0032112926710397005, -0.04359670728445053, 0.027552153915166855, 0.08543892949819565, 0.007984815165400505, -0.015195062384009361, 0.03343233838677406, -0.039182573556900024, 0.039915066212415695, 0.013374744914472103, -0.026613852009177208, -0.04004915431141853, 0.010415000841021538, 0.05956866964697838, -0.0301213376224041, -0.008723031729459763, -0.01683386042714119, 0.006134653929620981, -0.004202342126518488, 0.018378132954239845, -0.07371919602155685, -0.022517800331115723, 0.0009793590288609266, -0.018268654122948647, -0.0032333736307919025, -0.012965412810444832, 0.01468663476407528, 0.025892384350299835, 0.029705816879868507, 0.0003583098005037755, 0.032306794077157974, 0.0437496155500412, 0.016777293756604195, -0.05036380514502525, 0.018648341298103333, 0.039724282920360565, -0.010950742289423943, -0.035753291100263596, -0.00410457793623209, 0.014660809189081192, -0.02447940967977047, -0.03704372048377991, -0.02554483525454998, -0.017519883811473846, 0.016910359263420105, 0.014009807258844376, 0.008550580590963364, -0.07587647438049316, -0.020916786044836044, 0.02052227221429348, -0.0004352935357019305, 0.04292041435837746, -0.009206163696944714, -0.03471711277961731, -0.028533384203910828, -0.023843714967370033, -0.012075258418917656, 0.010861448012292385, 0.018062761053442955, 0.01748087629675865, -0.008826524950563908, -0.00039369703154079616, 0.045143973082304, -0.0956510677933693, -0.007279837969690561, -0.008507064543664455, 0.04866769164800644, 0.049271732568740845, -0.0415998138487339, -0.0227429810911417, -0.014861357398331165, -0.004337891470640898, 0.015515835955739021, -0.033177450299263, -0.017827533185482025, -0.010696625337004662, 0.0018101107561960816, -0.04090256243944168, 0.00046301280963234603, -0.0037569417618215084, 0.048887915909290314, -0.006870815996080637, 0.0028196158818900585, -0.018694397062063217, -0.021443162113428116, -0.05854479968547821, -0.0051586865447461605, 0.045117128640413284, -0.0067405058071017265, 0.03530247136950493, 0.7913834452629089, 0.030489351600408554, -0.01974887028336525, 0.006024304311722517, 0.014328230172395706, 0.001269928994588554, 0.011246711015701294, 0.016903407871723175, 0.021856579929590225, -0.03208235278725624, 0.016930656507611275, -0.055260103195905685, 0.016412464901804924, 0.013003477826714516, 0.008524184115231037, 0.011608165688812733, 0.0452621690928936, 0.03651350736618042, -0.007400306407362223, -0.011560012586414814, 0.0036857982631772757, 0.008370082825422287, 0.017043011263012886, -0.03259439393877983, 0.034970756620168686, -0.010732215829193592, -0.11814470589160919, -0.03437769412994385, -7.421387340316539e-33, 0.06961716711521149, 0.012470249086618423, 0.08061550557613373, 0.03136212006211281, -0.01082049310207367, 0.01848311349749565, 0.014220453798770905, -0.03995899483561516, -0.040772564709186554, -0.04029906913638115, -0.01541630644351244, 0.009810104966163635, 0.007494423072785139, -0.04530072584748268, 0.004927414003759623, -0.006137674208730459, 0.0037447887007147074, 0.03385350853204727, -0.015112311579287052, -0.021800197660923004, -0.02964840643107891, 0.018605370074510574, -0.043975889682769775, 0.030863935127854347, 0.035643137991428375, 0.04436968266963959, 0.0020023551769554615, -0.025142457336187363, -0.025005122646689415, -0.06679056584835052, -0.06558728218078613, 0.025619501248002052, -0.014597889967262745, -0.011196852661669254, -0.001911096042022109, -0.05619567260146141, -0.018135476857423782, -0.0023199981078505516, -0.042360756546258926, -0.09668616205453873, -0.08589762449264526, 0.009094246663153172, 0.0190661009401083, -0.019809875637292862, -0.04123736545443535, -0.03446733206510544, 0.009095979854464531, -0.012048429809510708, -0.001691776909865439, 0.019627345725893974, 0.009503399021923542, 0.035470448434352875, -0.018032563850283623, 0.0042807357385754585, -0.037790898233652115, 0.011382012628018856, 0.04302985593676567, 0.023031063377857208, -0.026060553267598152, 0.011802739463746548, 0.043943800032138824, 0.003858117386698723, -0.04265855625271797, 0.059782035648822784, 0.03465917706489563, 0.014224340207874775, -0.035794127732515335, 0.011902979575097561, -0.013644494116306305, 0.06260669231414795, -0.031864434480667114, 0.048005107790231705, -0.01850116439163685, -0.028612252324819565, 0.04253660887479782, -0.0634993463754654, -0.04833618178963661, -0.04761628434062004, -0.009072504937648773, 0.045148685574531555, -0.004709874279797077, -0.015602977946400642, -0.007238359656184912, -0.011128559708595276, 0.013215266168117523, 0.013700490817427635, 0.02400311827659607, 0.021445510908961296, 0.05205640569329262, 0.0042081777937710285, 0.054391611367464066, 0.006617155857384205, -0.018800577148795128, -0.02223929576575756, -0.03387792780995369, 6.499781402172634e-33, -0.02712080627679825, 0.013181788846850395, -0.009364398196339607, 0.0013383603654801846, 0.004442564677447081, 0.015924712643027306, 0.0015381142729893327, 0.005891834851354361, -0.034373924136161804, 0.033759500831365585, -0.010462498292326927, -0.008693684823811054, 0.023079486563801765, 0.02589058130979538, 0.05362635478377342, -0.011815889738500118, -0.013083457946777344, -0.03839917108416557, 0.009220855310559273, 0.026694513857364655, 0.008183813653886318, -0.0014400751097127795, 0.007936941459774971, 0.03391503170132637, -0.00690451730042696, 0.008393430151045322, 0.011881863698363304, 0.0054121604189276695, -0.010994061827659607, -0.029399044811725616, -0.0025925817899405956, -0.04671792313456535, -0.017069248482584953, -0.020890112966299057, 0.04467802494764328, -0.009058313444256783, -0.01158233918249607, -0.001350545440800488, 0.009547396562993526, 0.003396751591935754, -0.0038466472178697586, 0.004008822608739138, -0.02373068779706955, 0.07753908634185791, 0.02235822193324566, -0.0043167793191969395, 0.005237104836851358, 0.03304993733763695, 0.017340725287795067, 0.028707854449748993, -0.009366014041006565, 0.0398963987827301, -0.005014410708099604, 0.03394882008433342, 0.03917376324534416, -0.07271888852119446, -0.019442275166511536, 0.03531034290790558, 0.019448813050985336, -0.01591496355831623, -0.014895116910338402, -0.007083713077008724, -0.05822320654988289, 0.03115660510957241, -0.006645054090768099, -0.031851060688495636, -0.028103260323405266, 0.0011376338079571724, -0.03254970908164978, -0.012435232289135456, 0.01518531609326601, -0.002639570040628314, -0.006729718763381243, 0.005432492587715387, 0.02016528882086277, -0.032960016280412674, -0.026932433247566223, -0.016675151884555817, -0.029583903029561043, 0.021650590002536774, 0.038050126284360886, 0.002137415576726198, 0.03816194459795952, 0.022923024371266365, -0.01591300591826439, -0.03579046577215195, 0.009031609632074833, 0.045191794633865356, -0.050335269421339035, -0.001624278724193573, 0.017735732719302177, 0.0003389006888028234, -0.03408166021108627, 0.05730116739869118, -0.02685835212469101, -1.262169480042985e-8, -0.05626165494322777, 0.03816346451640129, -0.01521308720111847, -0.02451661415398121, -0.007559412624686956, 0.003924667369574308, -0.006833503022789955, 0.008605855517089367, 0.016970200464129448, 0.02736760675907135, 0.013251983560621738, -0.018149521201848984, 0.05112836882472038, -0.03850027918815613, 0.012282460927963257, -0.05212141573429108, -0.01370334718376398, -0.029901135712862015, 0.04320422187447548, 0.03627616912126541, -0.022168539464473724, 0.03245622664690018, -0.06281624734401703, -0.0004307976341806352, 0.01435021497309208, -0.0337965227663517, 0.04878607019782066, -0.050850942730903625, 0.022241901606321335, -0.036142002791166306, -0.051927197724580765, -0.0006126358639448881, -0.013418256305158138, 0.05102469027042389, -0.03488371521234512, 0.0013335716212168336, 0.01964239776134491, 0.03932443633675575, 0.022757260128855705, 0.03713401034474373, -0.01210277434438467, -0.004568211268633604, -0.05331282317638397, -0.027748845517635345, -0.045363087207078934, -0.017401326447725296, -0.03836698457598686, -0.008690320886671543, 0.050551895052194595, -0.020304443314671516, 0.005032658111304045, -0.029827894642949104, 0.06333016604185104, -0.018055012449622154, 0.06060519814491272, -0.0047885216772556305, -0.007968353107571602, 0.006244304124265909, 0.009294383227825165, -0.019576380029320717, -0.0010196664370596409, -0.004651160910725594, -0.036597512662410736, 0.007484257686883211 ]
neo4j-browser-expected-entity-id-integral-value
https://markhneedham.com/blog/2017/11/06/neo4j-browser-expected-entity-id-integral-value
false
2017-10-21 10:06:55
Kubernetes: Simple example of pod running
[ "bash", "kubernetes" ]
[ "Kubernetes" ]
I recently needed to create a Kubernetes pod that would 'just sit there' while I used +++<cite>+++kube cp+++</cite>+++ to copy some files to a persistent volume to which it was bound. I started out with this naive pod spec: +++<cite>+++pod_no_while.yaml+++</cite>+++ [source,yaml] ---- kind: Pod apiVersion: v1 metadata: name: marks-dummy-pod spec: containers: - name: marks-dummy-pod image: ubuntu restartPolicy: Never ---- Let's apply that template: [source,bash] ---- $ kubectl apply -f pod_no_while.yaml pod "marks-dummy-pod" created ---- And let's check if we have any running pods: [source,bash] ---- $ kubectl get pods No resources found, use --show-all to see completed objects. ---- We won't see anything here because unsurprisingly the pod has run to completion as there's nothing to keep it running! We can confirm that by running this command: [source,bash] ---- $ kubectl get pods --show-all NAME READY STATUS RESTARTS AGE marks-dummy-pod 0/1 Completed 0 1m ---- Now let's create a pod that has an infinite bash while loop: +++<cite>+++pod.yaml+++</cite>+++ [source,yaml] ---- kind: Pod apiVersion: v1 metadata: name: marks-dummy-pod spec: containers: - name: marks-dummy-pod image: ubuntu command: ["/bin/bash", "-ec", "while :; do echo '.'; sleep 5 ; done"] restartPolicy: Never ---- Let's apply that one instead: [source,bash] ---- $ kubectl apply -f pod.yaml The Pod "marks-dummy-pod" is invalid: spec: Forbidden: pod updates may not change fields other than `spec.containers[*].image`, `spec.initContainers[*].image`, `spec.activeDeadlineSeconds` or `spec.tolerations` (only additions to existing tolerations) ---- Oops, we need to delete it first so let's do that: [source,bash] ---- $ kubectl delete pod marks-dummy-pod pod "marks-dummy-pod" deleted ---- Attempt #2: [source,bash] ---- $ kubectl apply -f pod.yaml pod "marks-dummy-pod" created ---- And let's checkup on our pod: [source,bash] ---- $ kubectl get pods NAME READY STATUS RESTARTS AGE marks-dummy-pod 1/1 Running 0 14s ---- Looks better already. Let's check the logs [source,bash] ---- $ kubectl logs marks-dummy-pod . . ---- Great! We can now +++<cite>+++kubectl cp+++</cite>+++ to our heart's content and then delete the pod aftewards.
null
null
[ -0.02312462404370308, -0.018126679584383965, -0.04016720503568649, 0.03452425077557564, 0.08441437035799026, -0.004606655333191156, 0.01709906756877899, 0.038184769451618195, -0.03415081650018692, -0.029835190623998642, -0.026849448680877686, -0.011252017691731453, -0.04450341314077377, 0.034270498901605606, -0.0006904673646204174, 0.05491480603814125, 0.08274693787097931, 0.01399601437151432, 0.011046950705349445, 0.0268100555986166, 0.05798214673995972, 0.013256795704364777, 0.010830884799361229, 0.013956858776509762, 0.024831878021359444, 0.00713599706068635, -0.013312667608261108, 0.03606254607439041, -0.06366763263940811, 0.017006216570734978, -0.006480982061475515, 0.0010407119989395142, 0.02414047159254551, -0.004876330029219389, 0.022751584649086, 0.008375260047614574, -0.030513273552060127, -0.02113271690905094, -0.008818913251161575, -0.007410760503262281, -0.05698924884200096, 0.004486075136810541, 0.02323051542043686, -0.015346570871770382, -0.002398350741714239, -0.00934619177132845, -0.009607115760445595, -0.006139444652944803, 0.005649748258292675, -0.004463148768991232, -0.061151206493377686, -0.0004192431515548378, 0.00974210537970066, -0.0404893234372139, 0.005167641676962376, 0.036855366080999374, 0.02926645055413246, -0.07773467898368835, 0.029937615618109703, -0.013897517696022987, -0.035574089735746384, -0.020165519788861275, 0.01906919665634632, 0.055282626301050186, -0.0001652723440201953, -0.045452412217855453, -0.018645279109477997, 0.03356935828924179, -0.03450275585055351, 0.007407908793538809, -0.025299783796072006, 0.012633226811885834, -0.0045074475929141045, -0.03967081755399704, 0.013985215686261654, -0.07002472132444382, 0.02096848376095295, 0.04670814424753189, 0.03877037391066551, 0.10433192551136017, -0.01570390723645687, -0.008269308134913445, -0.01510756928473711, 0.008833814412355423, -0.009681088849902153, -0.02577393688261509, -0.06555204093456268, -0.008961666375398636, -0.04948132485151291, 0.056345418095588684, 0.05964135378599167, -0.032521672546863556, 0.024859346449375153, 0.010373824276030064, -0.008249375969171524, 0.031004488468170166, 0.008149326778948307, 0.022664116695523262, 0.0274569783359766, -0.005541494581848383, -0.014389771968126297, 0.009767318144440651, -0.014299703761935234, 0.06226963549852371, -0.08703417330980301, -0.016917645931243896, -0.028877917677164078, -0.02447086200118065, 0.010180632583796978, -0.011090493761003017, 0.008541185408830643, 0.017759783193469048, -0.02615494467318058, 0.024037053808569908, -0.08357807993888855, 0.06934373825788498, 0.022766193374991417, -0.019963014870882034, 0.009816078469157219, 0.008251544088125229, -0.0035474728792905807, 0.06681699305772781, -0.0016246563754975796, 0.060662735253572464, -0.03429030254483223, -0.013063653372228146, -0.027036435902118683, 0.04168523848056793, -0.03478372469544411, -0.041615407913923264, -0.022782765328884125, 0.03478620573878288, 0.03525068238377571, 0.008366767317056656, -0.017409466207027435, -0.007623990532010794, -0.018228547647595406, 0.010175319388508797, 0.04142182692885399, 0.06557033210992813, -0.03848588839173317, -0.008871776051819324, -0.0017695942660793662, 0.0006949833477847278, 0.042727306485176086, 0.01535375788807869, -0.018729818984866142, -0.04645759239792824, -0.057191163301467896, 0.051966357976198196, 0.00019301993597764522, 0.01924661360681057, 0.07008036226034164, -0.049712859094142914, 0.008962390944361687, 0.07335814088582993, 0.017776357010006905, 0.01265054102987051, -0.02064102701842785, -0.014319872483611107, 0.05444862321019173, 0.04397088661789894, -0.002082241466268897, 0.0333709679543972, 0.041789162904024124, -0.06165333464741707, -0.013118583709001541, 0.032217733561992645, 0.004130984656512737, -0.002768641570582986, -0.03922805190086365, -0.06619897484779358, 0.06157391145825386, -0.02659423090517521, 0.03791399300098419, 0.0035942953545600176, 0.08756180107593536, 0.027142593637108803, 0.014476003125309944, 0.044769078493118286, -0.07919631153345108, 0.04529706388711929, 0.014711838215589523, 0.031924787908792496, 0.014768680557608604, -0.005249899346381426, 0.028177842497825623, 0.017955562099814415, 0.018147921189665794, 0.029026661068201065, -0.09424984455108643, -0.07444924116134644, -0.013255584053695202, -0.015105875208973885, 0.060564421117305756, -0.0396164171397686, -0.025404326617717743, 0.05921988561749458, 0.012909051030874252, 0.04173251986503601, 0.03402864187955856, -0.0003223321109544486, 0.004179926123470068, -0.09173104166984558, -0.058510296046733856, 0.0712718665599823, -0.007704951334744692, -0.04922395944595337, -0.018352463841438293, 0.0360463410615921, -0.05746296048164368, 0.027379803359508514, 0.020956043154001236, -0.021628614515066147, 0.05331290140748024, -0.020974434912204742, 0.030002735555171967, -0.027203233912587166, 0.049357134848833084, -0.014350367709994316, -0.009198902174830437, 0.02029004506766796, 0.00873981136828661, 0.0031638399232178926, -0.006315152160823345, 0.0921643003821373, 0.05743373557925224, -0.019668541848659515, -0.0500352717936039, 0.07540499418973923, 0.04412050545215607, 0.004790438339114189, -0.018375715240836143, -0.008297409862279892, -0.022314179688692093, 0.021347498521208763, -0.01474742777645588, 0.019372260197997093, 0.04599770903587341, -0.031642522662878036, -0.026012519374489784, 0.07348516583442688, -0.021212629973888397, 0.05410732328891754, 0.0327252596616745, -0.026543783023953438, 0.014960041269659996, -0.033518146723508835, -0.09402263909578323, -0.025531500577926636, 0.0113726407289505, -0.0162052009254694, 0.06485400348901749, -0.05552534759044647, 0.00760854035615921, -0.04696136713027954, -0.05404210090637207, -0.006818950176239014, 0.006338807288557291, 0.05560936778783798, -0.048914264887571335, 0.06473026424646378, -0.031668830662965775, 0.0022302574943751097, -0.00918471161276102, -0.024730397388339043, -0.0034053598064929247, 0.010988429188728333, -0.006686470005661249, 0.008290234953165054, -0.03565366938710213, -0.00557688158005476, 0.03624877706170082, -0.02849891036748886, 0.02555782161653042, 0.02280917949974537, 0.027896160259842873, 0.022829348221421242, 0.025899948552250862, -0.03237692266702652, -0.004265499301254749, 0.07343581318855286, -0.06783650815486908, -0.018007829785346985, 0.03240298479795456, -0.08428231626749039, 0.0011758485343307257, -0.048063285648822784, -0.006441131699830294, -0.023002833127975464, -0.00663002859801054, -0.025437967851758003, -0.013785205781459808, 0.04956391826272011, 0.049745477735996246, 0.03668683394789696, -0.010858175344765186, 0.02245452255010605, -0.012816210277378559, 0.03882140293717384, -0.0293111652135849, -0.013636473566293716, 0.053583983331918716, -0.022652041167020798, -0.020805293694138527, -0.0361478328704834, 0.0010973499156534672, -0.044842854142189026, -0.24424438178539276, 0.03918454796075821, -0.014577292837202549, -0.05623117834329605, -0.0030598638113588095, -0.015747791156172752, -0.015862785279750824, -0.015163063071668148, 0.015649011358618736, 0.04597243294119835, -0.0407426580786705, -0.00388478790409863, -0.00026571660418994725, 0.05431843921542168, -0.0049045030027627945, 0.01793002150952816, 0.021358763799071312, -0.03911235183477402, -0.013047410175204277, -0.0382133424282074, -0.012305555865168571, -0.049377862364053726, 0.01710827648639679, 0.028546705842018127, 0.02643592283129692, 0.05213147774338722, -0.07312116771936417, 0.07637546956539154, -0.041774045675992966, -0.011235527694225311, -0.017298853024840355, -0.05512944608926773, -0.0179771538823843, 0.02270551025867462, -0.016853157430887222, -0.0029601685237139463, 0.019919998943805695, -0.025541888549923897, 0.026676394045352936, 0.02496044896543026, -0.03424324467778206, -0.05640562251210213, 0.011434593237936497, 0.004821565933525562, 0.06781692057847977, -0.015943748876452446, -0.07672223448753357, -0.041037674993276596, -0.04662119969725609, 0.05466877669095993, -0.027553847059607506, -0.036156438291072845, -0.03673887997865677, 0.026910051703453064, -0.01799919269979, 0.011289456859230995, -0.00555592542514205, 0.006860803347080946, -0.0402689166367054, -0.03176356852054596, -0.002251621102914214, -0.029217245057225227, -0.01992328092455864, -0.06287505477666855, 0.005761296954005957, -0.045525502413511276, -0.057863589376211166, 0.003928482532501221, 0.06524229794740677, 0.03028653748333454, -0.050734199583530426, -0.01584603823721409, -0.04761377349495888, -0.09209483861923218, 0.000018541262761573307, -0.039910368621349335, -0.03176217898726463, 0.024011123925447464, -0.009922726079821587, 0.019414838403463364, -0.07171142846345901, 0.0016504854429513216, 0.022327614948153496, 0.006317658815532923, 0.011033369228243828, -0.03807425498962402, -0.004113141912966967, 0.014011542312800884, 0.019880851730704308, -0.017131734639406204, 0.0336691290140152, -0.03698498755693436, -0.010291210375726223, -0.02810840681195259, 0.015291385352611542, 0.020780829712748528, 0.024743715301156044, 0.005458046216517687, 0.011607148684561253, 0.06224440410733223, 0.05638248473405838, -0.035342246294021606, -0.020637545734643936, -0.04267128184437752, -0.035386890172958374, 0.014676975086331367, -0.07742129266262054, 0.009548562578856945, 0.024449823424220085, 0.016735220327973366, -0.014946714043617249, -0.0005524664302356541, 0.018473021686077118, -0.0659855306148529, -0.0016684969887137413, 0.0007587996660731733, 0.03075048327445984, 0.06212765350937843, 0.07778311520814896, -0.013843790628015995, -0.06164545565843582, 0.022277498617768288, -0.018130701035261154, -0.00554142240434885, -0.04019998386502266, -0.0026961967814713717, 0.00397729966789484, -0.006018489599227905, -0.008759413845837116, 0.02051219344139099, -0.008722599595785141, 0.0196976438164711, 0.028387662023305893, -0.014934726059436798, 0.0342232845723629, -0.031663503497838974, 0.0008167561609297991, -0.03529071807861328, 0.0004224111617077142, 0.00786279421299696, -0.06559323519468307, -0.03522196039557457, 0.03921940550208092, 0.03881935775279999, 0.012331981211900711, 0.01021221000701189, 0.062025073915719986, -0.017204947769641876, 0.015888387337327003, 0.0047906809486448765, 0.03918373957276344, -0.022862860932946205, 0.012559467926621437, -0.03319826349616051, -0.003545975312590599, -0.013386362232267857, 0.045383501797914505, -0.006015614606440067, -0.000618052261415869, -0.05557684600353241, 0.02014879696071148, -0.01720459759235382, -0.004468339961022139, -0.03137870877981186, 0.003783096093684435, 0.051844462752342224, -0.025873538106679916, 0.015407896600663662, 0.013565094210207462, -0.022183796390891075, -0.003836100921034813, -0.05307110399007797, -0.0033169020898640156, 0.0007195405196398497, 0.004705432802438736, -0.010741469450294971, 0.047516290098428726, 0.043621715158224106, 0.028314609080553055, 0.00893734022974968, 0.0303490087389946, -0.002896232297644019, 0.03522744029760361, 0.004842988681048155, 0.058199841529130936, 0.00647659320384264, -0.031060103327035904, 0.00955953262746334, -0.024714602157473564, -0.023059768602252007, 0.005999087356030941, -0.009475437924265862, 0.015672244131565094, -0.0019290507771074772, -0.016421984881162643, -0.07412748783826828, 0.011438831686973572, 0.04693380743265152, -0.014680851250886917, 0.0055712368339300156, -0.05256997421383858, 0.0016937867039814591, -0.038018763065338135, 0.03776974231004715, 0.07685991376638412, -0.033674828708171844, 0.0196322463452816, -0.023602301254868507, 0.018612658604979515, -0.0013448875397443771, -0.00011171833466505632, -0.06189437955617905, -0.022950613871216774, -0.011291615664958954, 0.020723391324281693, -0.03027159534394741, -0.03310704976320267, -0.016522515565156937, 0.014578071422874928, -0.002069962676614523, 0.03721236437559128, 0.018865535035729408, -0.023842643946409225, -0.014158337377011776, -0.015366903506219387, 0.014161650091409683, -0.03328784555196762, 0.016620375216007233, -0.002421728800982237, -0.031537022441625595, 0.02283060923218727, -0.06164771690964699, 0.0352696068584919, 0.0014950792538002133, -0.023682788014411926, -0.00948263518512249, 0.006415524985641241, 0.011756977997720242, -0.0163098257035017, 0.043556760996580124, 0.009185515344142914, -0.0010290297213941813, -0.05745513364672661, 0.005552882794290781, -0.016241464763879776, 0.008225993253290653, -0.017935533076524734, 0.013324170373380184, 0.017795106396079063, 0.047642529010772705, -0.003724287496879697, 0.018157649785280228, -0.051893141120672226, -0.06928904354572296, 0.053403090685606, -0.06328170746564865, -0.003649873659014702, 0.012909147888422012, -0.05707254633307457, 0.03120347112417221, 0.04707157984375954, 0.029027799144387245, -0.07099486142396927, 0.016470342874526978, 0.03247634321451187, 0.020006056874990463, -0.018594197928905487, -0.03241030126810074, 0.023971736431121826, -0.028172962367534637, -0.03239881247282028, -0.07797236740589142, 0.006036773324012756, 0.03558333218097687, -0.012587962672114372, 0.00019724543381016701, 0.02872323989868164, -0.0274607315659523, 0.013729165308177471, -0.04268154129385948, -0.02830093540251255, 0.031880926340818405, -0.02592376433312893, 0.004790426231920719, 0.042732689529657364, -0.05090542137622833, 0.048510484397411346, 0.04545903950929642, -0.030188292264938354, -0.011190102435648441, 0.013609906658530235, 0.05492699518799782, -0.010062909685075283, -0.0013727759942412376, 0.02618672139942646, -0.04432954639196396, 0.0775100439786911, 0.0283407811075449, 0.06311629712581635, 0.0380965992808342, -0.013901794329285622, 0.05747858062386513, 0.03862391784787178, -0.009196399711072445, 0.0011743666836991906, 0.023020638152956963, -0.02205190621316433, -0.039815593510866165, 0.03225741162896156, 0.006592323537915945, -0.006886928807944059, -0.0064385151490569115, 0.04651504382491112, 0.009406165219843388, -0.0501558780670166, -0.07291653752326965, 0.014444535598158836, -0.046372171491384506, -0.034323275089263916, -0.03547590970993042, 0.0052347187884151936, -0.10550335794687271, 0.04101713374257088, 0.0316186398267746, 0.009967425838112831, 0.028207575902342796, 0.02193303033709526, -0.02334066666662693, 0.0047411988489329815, 0.062101006507873535, 0.07713643461465836, -0.005195018835365772, 0.014262566342949867, 0.04141344130039215, -0.035688288509845734, -0.008093058131635189, -0.004667364992201328, 0.007721491623669863, 0.01403914112597704, -0.018114037811756134, -0.0006947385845705867, 0.05810309201478958, -0.009326556697487831, 0.05747012421488762, -0.005634383764117956, 0.02796139195561409, -0.0009259963990189135, 0.02689489908516407, 0.057596903294324875, 0.02775389701128006, 0.016413455829024315, 0.05960173159837723, 0.006597799248993397, -0.044891323894262314, -0.012458357028663158, -0.03669140487909317, -0.006907867733389139, 0.0031100278720259666, -0.019205691292881966, 0.013558686710894108, 0.0005315767484717071, -0.014503424987196922, 0.04905472323298454, 0.038161128759384155, -0.005150428041815758, 0.002976570511236787, 0.05509403347969055, -0.008001046255230904, 0.04728752747178078, -0.017996564507484436, -0.007523002568632364, -0.015330259688198566, -0.048421360552310944, 0.019509894773364067, -0.04766895994544029, -0.004536142572760582, 0.006588554475456476, 0.028684506192803383, 0.0265163853764534, 0.034347377717494965, 0.0027148069348186255, -0.049239132553339005, -0.02636820264160633, -0.03567992523312569, -0.06610580533742905, -0.036001384258270264, 0.04087204113602638, -0.010498978197574615, 0.02439500205218792, -0.004452693276107311, -0.011374279856681824, -0.03691662475466728, 0.004673125222325325, 0.004990806337445974, -0.050731111317873, -0.02833510935306549, 0.019679546356201172, -0.018757212907075882, 0.03116089105606079, 0.002703412901610136, 0.060374774038791656, 0.015470156446099281, -0.008733752183616161, 0.001663193921558559, -0.01781945303082466, 0.03265003859996796, -0.018826911225914955, 0.007453251164406538, -0.07501398772001266, 0.015610231086611748, 0.021874282509088516, 0.05512986704707146, -0.07168155908584595, 0.04060924053192139, 0.015073577873408794, -0.010387021116912365, 0.03929022699594498, -0.0454086996614933, 0.020891813561320305, -0.0359654575586319, -0.024855755269527435, -0.019840747117996216, 0.013622966594994068, 0.03772469237446785, 0.003334451001137495, 0.08940672129392624, 0.02594682388007641, -0.010646563954651356, -0.028328917920589447, -0.0018874519737437367, -0.009040703997015953, -0.00573605764657259, -0.08853749930858612, -0.0391986183822155, -0.040189675986766815, -0.06320539116859436, -0.031160496175289154, 0.01968509517610073, -0.040513209998607635, -0.05230138450860977, 0.0037302053533494473, -0.009957288391888142, -0.02393651194870472, -0.003043748904019594, -0.021331658586859703, 0.006652200594544411, -0.02845306508243084, 0.008105640299618244, 0.0017478464869782329, 0.018849585205316544, -0.003242146223783493, -0.01456241775304079, 0.03701888397336006, -0.02500988356769085, -0.006296415347605944, -0.02009378746151924, 0.05470762029290199, 0.05555937439203262, -0.022160924971103668, -0.011804242618381977 ]
[ -0.10185559839010239, -0.049253515899181366, -0.004500098526477814, -0.03304130211472511, 0.0761808380484581, -0.05016293749213219, -0.028437864035367966, 0.003991141449660063, -0.023838002234697342, 0.015820976346731186, 0.0012230757856741548, -0.054536327719688416, 0.01606050133705139, -0.040447670966386795, 0.07237197458744049, -0.003562155645340681, 0.004151311237365007, -0.03467107564210892, -0.03091660887002945, -0.005376056768000126, 0.04117502644658089, -0.04882882535457611, -0.005528977140784264, -0.006447397638112307, -0.029143642634153366, 0.04399677366018295, 0.016302499920129776, -0.02509874850511551, 0.02505081333220005, -0.20599521696567535, 0.019936367869377136, -0.009886744432151318, -0.006269864737987518, -0.004690512083470821, 0.005814621224999428, 0.08077625930309296, 0.007981733419001102, -0.0029994752258062363, 0.004813306499272585, 0.05129113420844078, 0.06382417678833008, 0.03215373679995537, -0.06965548545122147, -0.036320630460977554, 0.005886341445147991, -0.041398435831069946, -0.00011125833407277241, -0.02882053330540657, 0.046761248260736465, -0.013500519096851349, -0.04986673220992088, 0.00316676776856184, 0.008565079420804977, -0.04560486227273941, 0.002654372714459896, 0.009293646551668644, 0.08065818250179291, 0.06112365424633026, 0.018980376422405243, -0.006719700526446104, 0.01069580391049385, -0.04279046133160591, -0.1365944743156433, 0.07978831231594086, 0.046326227486133575, 0.03951258584856987, -0.015215640887618065, -0.02677314169704914, -0.007651190273463726, 0.05119229480624199, 0.03587273880839348, 0.021968480199575424, -0.008736350573599339, 0.08963949233293533, -0.006034967955201864, -0.017637254670262337, 0.0037301541306078434, 0.03764481097459793, 0.019658487290143967, -0.02334292232990265, -0.08416543155908585, 0.0025948937982320786, -0.043460577726364136, 0.004291606601327658, -0.03587799146771431, -0.0055660465732216835, -0.010512148961424828, 0.03332342207431793, 0.011961833573877811, 0.032324157655239105, 0.03187427669763565, -0.0018819037359207869, 0.07261224091053009, 0.01946532353758812, -0.09765804558992386, 0.006679049227386713, 0.0006368120084516704, -0.010249442420899868, -0.02329840138554573, 0.3998827636241913, 0.005325935781002045, -0.004341329913586378, 0.019025642424821854, 0.021838894113898277, 0.06390422582626343, -0.003055816749110818, -0.024367179721593857, -0.024901963770389557, 0.035475797951221466, 0.025184329599142075, 0.04691386967897415, 0.005587189458310604, 0.06733369827270508, -0.0628877729177475, 0.032087720930576324, 0.014246777631342411, 0.018925968557596207, 0.03263386711478233, -0.043111443519592285, 0.03115331195294857, -0.01259274035692215, 0.019111881032586098, 0.024637220427393913, 0.0022405372001230717, 0.03450336679816246, -0.016902297735214233, 0.0036499856505542994, 0.03516131266951561, 0.007937999442219734, 0.003461780259385705, 0.016302447766065598, -0.031091654673218727, -0.028376368805766106, -0.04104338958859444, 0.025394070893526077, 0.014372246339917183, 0.028133895248174667, -0.0714874118566513, -0.017803581431508064, 0.04470003768801689, -0.017319543287158012, 0.00790086667984724, 0.017699476331472397, -0.032111600041389465, -0.01226092129945755, 0.08797803521156311, -0.0010442233178764582, 0.022274380549788475, -0.03429822623729706, -0.04255145043134689, -0.039390627294778824, 0.03531183674931526, 0.00949289370328188, -0.08545944839715958, 0.05326373130083084, -0.01427718997001648, 0.07180290669202805, 0.005951945204287767, -0.06240661069750786, 0.01804579421877861, 0.002165644895285368, -0.050583112984895706, -0.05192910134792328, 0.03157900273799896, 0.010504970327019691, -0.046942874789237976, -0.03919229283928871, 0.0317198820412159, 0.016986891627311707, -0.03427516296505928, -0.024941153824329376, 0.004353622440248728, 0.029069572687149048, -0.023763300850987434, 0.03391950577497482, -0.05689319968223572, -0.027692146599292755, 0.04909980297088623, 0.03553200513124466, -0.010756035335361958, -0.01058629248291254, -0.019188622012734413, -0.05921664834022522, 0.0032111499458551407, -0.03649803623557091, -0.0992245152592659, -0.06272708624601364, 0.0038650273345410824, -0.012225450947880745, -0.01503042969852686, -0.024301888421177864, -0.0035354162100702524, -0.02406376600265503, 0.10018499195575714, 0.008632500655949116, -0.05564836040139198, -0.0066414871253073215, 0.011642469093203545, -0.004266724921762943, -0.04715289920568466, 0.026210658252239227, 0.03737108036875725, -0.018404053524136543, 0.02041986770927906, -0.10123845934867859, 0.007150495890527964, -0.006537163630127907, -0.008848070167005062, 0.07084260880947113, 0.01756920851767063, -0.04319710657000542, 0.0017726036021485925, 0.005476575810462236, 0.03414450213313103, -0.04534535855054855, -0.012842889875173569, -0.038220085203647614, 0.0246435534209013, 0.014339952729642391, 0.022276101633906364, -0.020716039463877678, -0.029118603095412254, -0.02472410909831524, -0.35905328392982483, -0.006779028102755547, -0.044187530875205994, 0.022914748638868332, 0.01095497701317072, -0.047122467309236526, 0.02686796896159649, -0.023521028459072113, -0.01569719985127449, -0.04399273544549942, 0.08557182550430298, -0.06994835287332535, 0.022104734554886818, -0.03371118754148483, -0.006524431519210339, 0.029201921075582504, -0.02599530853331089, -0.028469091281294823, -0.015504223294556141, 0.06229044124484062, 0.004368380643427372, -0.04639231413602829, -0.031216027215123177, -0.029743606224656105, 0.0025912467390298843, -0.03136404976248741, 0.09388884156942368, 0.04580847546458244, 0.07342912256717682, -0.054151102900505066, 0.06146519258618355, 0.06197629123926163, -0.015765706077218056, -0.15785300731658936, -0.02120066061615944, 0.02283833734691143, -0.03283015266060829, -0.0013711031060665846, 0.02430388331413269, -0.003519178833812475, -0.06449785828590393, 0.03500101715326309, -0.044913746416568756, -0.0368962399661541, -0.0048030284233391285, -0.024826260283589363, -0.032392945140600204, 0.0015716542256996036, -0.02069074474275112, 0.04326137155294418, -0.0011654087575152516, 0.015460340306162834, 0.013514228165149689, -0.012610274367034435, 0.012050432153046131, -0.03244415298104286, -0.05027911067008972, -0.017152972519397736, 0.045341379940509796, -0.01090550422668457, 0.0709969699382782, 0.0678580030798912, 0.02454686537384987, -0.04333701729774475, -0.0023009467404335737, 0.013280201703310013, -0.015785103663802147, 0.018549064174294472, 0.054947905242443085, -0.062133025377988815, 0.003422300796955824, 0.08685892820358276, 0.01703258603811264, 0.0388731025159359, 0.07319386303424835, 0.006768277380615473, 0.002268966054543853, 0.017610298469662666, 0.002035909565165639, -0.018010107800364494, 0.016661545261740685, -0.023859472945332527, 0.04939831420779228, -0.034268926829099655, -0.004262507427483797, 0.07974983751773834, 0.019719323143363, -0.005358018912374973, 0.08465751260519028, -0.0012221412034705281, -0.01738647185266018, 0.01124909333884716, 0.006650266703218222, -0.03942960128188133, 0.11784133315086365, 0.017363764345645905, -0.25231459736824036, 0.037634965032339096, 0.0380924791097641, 0.07448725402355194, -0.002432330511510372, 0.012958651408553123, 0.04319288581609726, -0.06497699022293091, 0.004648513160645962, 0.005045189987868071, -0.027589598670601845, 0.036588747054338455, 0.002659398363903165, 0.01217638235539198, 0.021184025332331657, 0.05289516597986221, 0.07802090048789978, -0.004584962036460638, 0.015598118305206299, -0.04526958242058754, 0.005254073534160852, -0.008659551851451397, 0.1374829262495041, 0.007510202471166849, -0.00939475279301405, 0.01573774963617325, -0.03753886744379997, 0.022359175607562065, 0.017049627378582954, 0.03913624957203865, 0.0005841722595505416, 0.004157954826951027, 0.031754519790410995, 0.0010928268311545253, 0.03952785208821297, -0.0673103779554367, -0.003498449921607971, 0.007058018818497658, 0.04105092212557793, -0.031461361795663834, -0.015330774709582329, 0.028383027762174606, 0.00429622083902359, 0.04572972655296326, 0.047146543860435486, -0.06940408796072006, -0.011520301923155785, -0.002812278689816594, -0.05154754966497421, -0.02809711918234825, 0.011842944659292698, -0.04194102808833122, -0.013794711790978909, 0.005248764995485544, 0.01757546328008175, 0.03135943040251732, 0.032501157373189926, -0.04070952162146568, -0.015568886883556843, -0.019305597990751266, -0.00746932765468955, -0.03955365717411041, 0.119630366563797, -0.025304602459073067, 0.029331455007195473 ]
[ 0.04486537352204323, 0.02403116598725319, 0.0296055618673563, 0.01998060569167137, 0.01466299407184124, 0.002503969706594944, -0.020589176565408707, 0.021744679659605026, 0.038224510848522186, 0.004902560263872147, -0.010470198467373848, -0.04720694199204445, 0.0033029322512447834, -0.02040245197713375, -0.0008681391482241452, -0.015669895336031914, 0.015824532136321068, 0.01730707846581936, 0.013287006877362728, -0.021467402577400208, -0.011250913143157959, 0.05909605324268341, 0.028882618993520737, -0.02578110620379448, -0.02259770594537258, 0.028925696387887, -0.07380559295415878, -0.002435178030282259, 0.047675300389528275, -0.16451144218444824, -0.03093891404569149, -0.012713775970041752, 0.02879278175532818, 0.019206738099455833, 0.055945005267858505, 0.012686536647379398, 0.034817174077034, -0.030474167317152023, -0.03456249460577965, 0.010302895680069923, 0.0064276535995304585, -0.05570334568619728, -0.051147788763046265, -0.01826491765677929, 0.0006902512395754457, 0.003141412977129221, -0.049495305866003036, -0.042130954563617706, 0.02463400550186634, -0.004597717896103859, -0.03894452005624771, -0.03761544078588486, 0.035879332572221756, 0.020883401855826378, 0.049899980425834656, 0.012471928261220455, 0.00708529818803072, 0.04323657602071762, 0.03946853056550026, -0.015616867691278458, 0.010953632183372974, -0.00027193993446417153, -0.019271373748779297, -0.03539922833442688, 0.006735440343618393, -0.0222038384526968, -0.03179201856255531, 0.00037676491774618626, 0.002204829128459096, 0.005080549046397209, 0.0503457635641098, 0.018441399559378624, -0.011431317776441574, -0.011606133542954922, -0.0208603423088789, 0.00628769863396883, -0.02370009571313858, -0.003912078216671944, -0.0026959707029163837, 0.016527120023965836, -0.013512151315808296, 0.042990028858184814, 0.01271488331258297, -0.05648939311504364, -0.048044271767139435, -0.011139222420752048, -0.01205832976847887, 0.011433172971010208, 0.018042340874671936, -0.005777359940111637, 0.01259132195264101, -0.0242672860622406, 0.032731179147958755, -0.04437576234340668, -0.05368012189865112, -0.029213126748800278, -0.014459483325481415, -0.024401210248470306, 0.021689537912607193, 0.7603409290313721, 0.027443496510386467, 0.02696782350540161, -0.021295279264450073, 0.015009546652436256, 0.05963794142007828, -0.008021105080842972, -0.012319384142756462, -0.01893903687596321, -0.01716952957212925, 0.048187799751758575, 0.03816777467727661, -0.0008390677394345403, 0.013435158878564835, 0.04067563638091087, 0.01430094800889492, 0.006993651855736971, 0.014231499284505844, 0.01608949713408947, -0.00782748032361269, 0.011752471327781677, 0.07108232378959656, -0.047882430255413055, 0.01240217313170433, 0.038880541920661926, -0.030378105118870735, -0.17122149467468262, 0.008009015582501888, -6.454161935785159e-33, 0.05940573289990425, -0.07221386581659317, 0.0407378226518631, 0.0018631542334333062, 0.00975792109966278, -0.05485029146075249, -0.0003817248798441142, 0.026510516181588173, -0.034829750657081604, -0.03570691868662834, -0.01912825182080269, 0.013208437711000443, -0.025239387527108192, -0.017377538606524467, 0.01773720607161522, -0.023048872128129005, -0.04496680200099945, 0.036458153277635574, 0.019569391384720802, 0.011894098483026028, 0.03743577376008034, -0.0034545673988759518, -0.02514716610312462, 0.020593982189893723, 0.039084721356630325, -0.0048279305920004845, 0.04654411971569061, -0.07485750317573547, 0.02616134285926819, -0.02989700809121132, -0.06775322556495667, -0.020140375941991806, 0.019193338230252266, -0.0332774855196476, -0.0765572115778923, -0.06115861237049103, -0.03524690493941307, 0.028405237942934036, -0.07932546734809875, -0.02525939978659153, 0.02364634908735752, -0.01861511915922165, -0.016543013975024223, -0.04815465211868286, 0.002413107082247734, -0.0019444236531853676, 0.03365732729434967, 0.02873365953564644, -0.019337214529514313, 0.0453559085726738, -0.008790827356278896, 0.0038436325266957283, -0.002298982348293066, -0.024883834645152092, 0.013976501300930977, 0.019316133111715317, 0.03297765552997589, -0.0351758636534214, -0.05258818343281746, -0.013187170028686523, -0.024496562778949738, 0.007164327427744865, -0.002947756554931402, 0.028520729392766953, -0.029426518827676773, 0.01827142760157585, -0.0266424473375082, 0.008611593395471573, -0.011365910992026329, 0.08196022361516953, -0.06577930599451065, 0.008632645010948181, -0.023930389434099197, -0.055655207484960556, -0.013671625405550003, -0.056331418454647064, 0.017101477831602097, 0.0050910222344100475, -0.04966020956635475, 0.04723431169986725, 0.005461833439767361, 0.005376606248319149, -0.061194319278001785, 0.005255814641714096, -0.011226402595639229, -0.015146640129387379, 0.023159481585025787, 0.0227718073874712, -0.0537446066737175, 0.018214760348200798, 0.038167424499988556, 0.03578765690326691, -0.04192166030406952, -0.02489703893661499, -0.06571483612060547, 7.01349594336899e-33, 0.05154486000537872, -0.01725967787206173, 0.0073661236092448235, 0.024716459214687347, 0.025351187214255333, -0.025900835171341896, 0.018455849960446358, 0.014568012207746506, -0.018371952697634697, 0.004785329103469849, -0.046475958079099655, 0.0019216752843931317, -0.034946028143167496, 0.034886859357357025, 0.04958226531744003, -0.014141827821731567, -0.020961079746484756, -0.0017818557098507881, -0.025614965707063675, 0.04169786721467972, 0.0038462281227111816, 0.00101260538212955, 0.03686860203742981, 0.021640220656991005, -0.008104663342237473, 0.060555942356586456, 0.007510937284678221, 0.01150141004472971, -0.0361960344016552, -0.022984644398093224, 0.03983708471059799, -0.05430595949292183, -0.013742728158831596, -0.01881294697523117, 0.02223917655646801, 0.02053827792406082, -0.009973880834877491, 0.013945805840194225, -0.03588269650936127, -0.015029347501695156, 0.008127951994538307, 0.04867826774716377, -0.020765777677297592, 0.00379184796474874, -0.040465664118528366, -0.026628002524375916, 0.026258016005158424, 0.0021515153348445892, 0.019424566999077797, -0.06035776436328888, 0.0012004370801150799, 0.0003235020849388093, -0.04661262035369873, 0.02258383482694626, -0.009142860770225525, -0.010800695978105068, -0.03948476165533066, 0.054576512426137924, -0.03721439465880394, 0.0030960896983742714, 0.02771993726491928, -0.014561277814209461, 0.047554537653923035, 0.003762847278267145, -0.03362589702010155, -0.04630069062113762, 0.0037502069026231766, 0.014528105966746807, -0.012133297510445118, 0.026150578632950783, 0.029872402548789978, 0.013574332930147648, -0.0003381546412128955, 0.062839075922966, 0.0021799937821924686, -0.014247165992856026, -0.003139145439490676, 0.007708044722676277, 0.024830041453242302, 0.028499457985162735, -0.010824702680110931, 0.04633370414376259, -0.011354579590260983, 0.009882871992886066, 0.04917803406715393, 0.0397970974445343, -0.008661868050694466, 0.03719807416200638, 0.057289205491542816, 0.05191250517964363, 0.010351510718464851, -0.002022417727857828, -0.034284546971321106, 0.05186077952384949, -0.028496311977505684, -1.2074876210022012e-8, 0.039882592856884, -0.0064455606043338776, -0.005153147969394922, 0.06586795300245285, 0.01426126342266798, -0.025941258296370506, -0.011954596266150475, 0.003957750741392374, -0.026723820716142654, -0.0018167691305279732, 0.01488534640520811, 0.005283862818032503, -0.0306515134871006, 0.03237519413232803, 0.042046625167131424, -0.03744914010167122, 0.00902068056166172, 0.030562449246644974, 0.03296160697937012, -0.03456523269414902, -0.05039014294743538, 0.037475474178791046, 0.007643280550837517, -0.029958674684166908, -0.015385723672807217, 0.04432281479239464, 0.03449179604649544, -0.07529636472463608, 0.040786199271678925, -0.0017622574232518673, 0.05368373170495033, -0.015147443860769272, -0.05486869812011719, 0.027495555579662323, 0.025957925245165825, -0.025477679446339607, -0.006520917173475027, 0.04836392402648926, -0.008176281116902828, 0.009069801308214664, -0.0270676426589489, -0.010315640829503536, -0.01782592199742794, -0.02429639920592308, -0.023028528317809105, 0.014777736738324165, -0.0003011909138876945, 0.050631072372198105, -0.004490104503929615, 0.016675064340233803, 0.0036335212644189596, -0.037096332758665085, -0.019824480637907982, 0.05429788678884506, 0.00017839188512880355, 0.01655411161482334, 0.006797279696911573, -0.03658004105091095, -0.01209481991827488, 0.011885649524629116, 0.053909122943878174, 0.009182494133710861, 0.006387919653207064, 0.004068093374371529 ]
kubernetes-simple-example-pod-running
https://markhneedham.com/blog/2017/10/21/kubernetes-simple-example-pod-running
false
2017-10-31 21:43:17
Neo4j: Traversal query timeout
[ "neo4j", "traversal-api" ]
[ "neo4j" ]
I've been spending some of my spare time over the last few weeks creating an application that generates running routes from https://www.ordnancesurvey.co.uk/business-and-government/products/os-open-roads.html[Open Roads] data - transformed and imported into Neo4j of course! I've created a user defined procedure which combines several shortest path queries, but I wanted to exit any of these shortest path searches if they were taking too long. My code without a timeout looks like this: [source,java] ---- StandardExpander orderedExpander = new OrderedByTypeExpander() .add( RelationshipType.withName( "CONNECTS" ), Direction.BOTH ); PathFinder<Path> shortestPathFinder = GraphAlgoFactory.shortestPath( expander, 250 ); ... ---- There are several places where we could check the time elapsed, but the +++<cite>+++expand+++</cite>+++ method in the +++<cite>+++Expander+++</cite>+++ seemed like an obvious one to me. I wrote my own +++<cite>+++Expander+++</cite>+++ class which looks like this: [source,java] ---- public class TimeConstrainedExpander implements PathExpander { private final StandardExpander expander; private final long startTime; private final Clock clock; private int pathsExpanded = 0; private long timeLimitInMillis; public TimeConstrainedExpander( StandardExpander expander, Clock clock, long timeLimitInMillis ) { this.expander = expander; this.clock = clock; this.startTime = clock.instant().toEpochMilli(); this.timeLimitInMillis = timeLimitInMillis; } @Override public Iterable<Relationship> expand( Path path, BranchState state ) { long timeSoFar = clock.instant().toEpochMilli() - startTime; if ( timeSoFar > timeLimitInMillis ) { return Collections.emptyList(); } return expander.expand( path, state ); } @Override public PathExpander reverse() { return expander.reverse(); } } ---- The code snippet from earlier now needs to be updated to use our new class, which isn't too tricky: [source,java] ---- StandardExpander orderedExpander = new OrderedByTypeExpander() .add( RelationshipType.withName( "CONNECTS" ), Direction.BOTH ); TimeConstrainedExpander expander = new TimeConstrainedExpander(orderedExpander, Clock.systemUTC(), 200); PathFinder<Path> shortestPathFinder = GraphAlgoFactory.shortestPath( expander, 250 ); ... ---- I'm not sure if this is the best way to achieve what I want but after failing with several other approaches at least this one actually works!
Learn how to set a timeout in a Neo4j user defined procedure that uses the traversal API.
null
[ -0.004407384432852268, -0.03684898093342781, 0.0006366193410940468, 0.016739264130592346, 0.10150697082281113, -0.014050151221454144, 0.03719053789973259, 0.03145201876759529, 0.012743862345814705, -0.028788378462195396, 0.006565452553331852, 0.010565980337560177, -0.052159108221530914, 0.03227148577570915, 0.0014264342607930303, 0.053115520626306534, 0.04987723007798195, -0.027496816590428352, 0.02017803117632866, -0.038987476378679276, 0.03075557015836239, 0.03649263456463814, 0.006294489838182926, 0.038144659250974655, 0.027071956545114517, 0.040829408913850784, -0.02042202465236187, 0.016528580337762833, -0.053599171340465546, -0.006649522576481104, 0.0643802136182785, -0.020657503977417946, 0.006124347914010286, -0.002549004042521119, 0.029422033578157425, -0.010842964984476566, -0.025609485805034637, -0.0005905491998419166, -0.015882261097431183, 0.010207322426140308, -0.08349823206663132, 0.04360166937112808, -0.028034435585141182, -0.0029609540943056345, -0.026219027116894722, 0.012896128930151463, -0.010709754191339016, 0.02270282432436943, 0.003266013925895095, -0.00379091314971447, -0.07418816536664963, 0.024233950302004814, -0.034561704844236374, 0.03771615028381348, 0.0018381592817604542, 0.04977863281965256, 0.05324791744351387, -0.08986029028892517, 0.050312597304582596, -0.04044514521956444, 0.013459884561598301, -0.0305485837161541, 0.0012882110895588994, 0.024966830387711525, -0.0025940255727618933, -0.028876617550849915, 0.010106242261826992, 0.06486072391271591, -0.022852398455142975, -0.003194595454260707, -0.015531224198639393, 0.00570419616997242, -0.013324564322829247, 0.02020348608493805, 0.0003058138827327639, -0.041182100772857666, 0.011400198563933372, 0.05852840468287468, 0.006338071543723345, 0.05892523378133774, -0.016597645357251167, -0.01014713104814291, 0.02133237197995186, 0.032403912395238876, 0.0015328420558944345, -0.03218499943614006, -0.04919089376926422, -0.016201112419366837, -0.030234215781092644, 0.025365425273776054, 0.008049538359045982, -0.037079159170389175, 0.0020230396185070276, 0.0011307119857519865, -0.026873579248785973, 0.001372936530970037, 0.010074758902192116, -0.00396985886618495, 0.0015140505274757743, 0.0004589405725710094, -0.0060865688137710094, -0.03448709100484848, 0.0024254675954580307, 0.030257247388362885, -0.07171982526779175, -0.04261089861392975, -0.03812368959188461, -0.02340071089565754, 0.014228396117687225, 0.007313213311135769, -0.06579504162073135, 0.016968056559562683, -0.0229333508759737, 0.007818016223609447, -0.08462141454219818, 0.06733664125204086, 0.024158118292689323, -0.015515118837356567, 0.008068318478763103, 0.008990689180791378, 0.04076245054602623, 0.02569117397069931, -0.001609128899872303, 0.07565493136644363, -0.011315133422613144, 0.04675225913524628, -0.007104809395968914, 0.020860206335783005, -0.01308705285191536, -0.05330253392457962, -0.01106203906238079, 0.047674715518951416, 0.003843974322080612, 0.007399584632366896, -0.007034963462501764, -0.01353357546031475, -0.0058807446621358395, 0.02940533682703972, 0.0565098412334919, 0.017798591405153275, 0.006925798952579498, -0.039128296077251434, 0.02803342230618, -0.025219213217496872, 0.02834395505487919, 0.007855935022234917, 0.0014744442887604237, -0.0261012502014637, -0.02514416165649891, 0.02943107672035694, -0.0029942903202027082, 0.04723706096410751, 0.051226746290922165, -0.020095445215702057, 0.014775555580854416, 0.10824233293533325, 0.016185607761144638, -0.0003533825802151114, -0.001760070794261992, 0.025236619636416435, 0.06207078695297241, 0.03575501963496208, -0.007723384536802769, 0.0539214052259922, 0.014557800255715847, -0.00595682580024004, -0.002010570140555501, 0.060025449842214584, -0.022341087460517883, -0.0005643203621730208, -0.038063522428274155, -0.04987194761633873, 0.07240819931030273, -0.06771170347929001, -0.017275352030992508, 0.03311682492494583, 0.0790162980556488, 0.0013124997494742274, 0.011764933355152607, -0.014659534208476543, -0.0760253518819809, 0.03401109203696251, 0.0227243360131979, 0.014667236246168613, 0.003911848179996014, -0.006594793871045113, 0.06910840421915054, 0.03501628711819649, -0.00827817339450121, 0.0013207618612796068, -0.07295428961515427, -0.07277581840753555, -0.005773476324975491, -0.01510713342577219, 0.06286990642547607, -0.027761420235037804, -0.006327989045530558, 0.05818469822406769, 0.00038281508022919297, 0.053592193871736526, 0.02994440495967865, -0.017734769731760025, 0.03785302862524986, -0.04884816333651543, -0.06365155428647995, 0.05677574872970581, 0.026822451502084732, -0.03510943427681923, -0.042588021606206894, 0.016105126589536667, -0.03134087473154068, -0.009098189882934093, 0.014159868471324444, -0.023586245253682137, 0.040680792182683945, 0.04770207405090332, 0.04960612580180168, -0.015585830435156822, 0.05297442525625229, -0.05415189638733864, 0.03685583919286728, 0.025317223742604256, -0.029587777331471443, 0.00817885808646679, -0.012983130291104317, 0.10120571404695511, 0.03851117938756943, -0.03338645398616791, -0.08319342136383057, 0.04344047233462334, 0.011231466196477413, -0.04795313999056816, 0.019806625321507454, -0.03673147037625313, 0.027819085866212845, -0.012794054113328457, -0.010157037526369095, -0.018856706097722054, 0.004815937019884586, -0.029692059382796288, 0.009493724443018436, 0.059275466948747635, -0.02864713780581951, 0.06868362426757812, 0.002998463809490204, -0.027340034022927284, 0.003602089826017618, -0.026631494984030724, -0.06727466732263565, 0.019886357709765434, 0.016906920820474625, -0.00647877948358655, 0.07518231123685837, -0.02063853107392788, -0.02581777051091194, -0.048279210925102234, -0.025787752121686935, 0.03392820805311203, 0.042031414806842804, 0.0748225599527359, 0.0006169075495563447, 0.07343274354934692, 0.010239558294415474, 0.029165400192141533, -0.03290224447846413, -0.06773430109024048, -0.014789879322052002, -0.010731996037065983, 0.02074241079390049, 0.02222433127462864, 0.008454031310975552, -0.004964913707226515, 0.040616802871227264, -0.006001711823046207, -0.0032051540911197662, -0.011287014931440353, 0.015387142077088356, 0.0028118391055613756, -0.023721620440483093, -0.021784478798508644, -0.01814664527773857, 0.04268291965126991, -0.05679184943437576, -0.05287783220410347, 0.0023188830818980932, -0.05762433260679245, 0.07962693274021149, -0.04504089057445526, -0.03554560989141464, 0.019836939871311188, 0.02617129124701023, 0.044236790388822556, 0.0016378266736865044, 0.0230898205190897, 0.09504964202642441, 0.008887315168976784, 0.003165262285619974, 0.0014281218172982335, 0.004176334943622351, 0.010244179517030716, 0.003432993311434984, 0.022923333570361137, 0.026385094970464706, -0.004199589602649212, -0.005977369379252195, -0.0242295004427433, 0.0033307201229035854, -0.02441154606640339, -0.2581949532032013, 0.04621119797229767, -0.04585219547152519, -0.0548485703766346, 0.0021464466117322445, -0.016882747411727905, 0.01541137509047985, -0.025273099541664124, -0.03437020257115364, 0.02059721201658249, -0.015538828447461128, -0.03999152407050133, -0.023892657831311226, 0.05838839337229729, -0.006112447939813137, 0.01380228903144598, -0.010429036803543568, -0.04768335074186325, -0.01166241243481636, 0.052464425563812256, 0.019652681425213814, -0.08618286997079849, -0.00043960954644717276, 0.01946292258799076, 0.045238785445690155, 0.05172862112522125, -0.09527891874313354, 0.03745659440755844, -0.04178036004304886, -0.00951290875673294, 0.028209935873746872, -0.04425756633281708, 0.009312687441706657, -0.017475033178925514, -0.012231549248099327, -0.02800348401069641, 0.002041857922449708, 0.022675896063447, 0.018601542338728905, 0.0406869500875473, -0.0513886883854866, -0.056787166744470596, -0.04313347488641739, -0.013797163963317871, 0.06790004670619965, 0.000605644891038537, -0.05770658329129219, -0.0037558143958449364, -0.009261774830520153, 0.07145141065120697, -0.02463877946138382, -0.03951437026262283, -0.012335685081779957, 0.014011221937835217, -0.033563438802957535, -0.02704538404941559, -0.0016067534452304244, -0.026302751153707504, -0.04418368637561798, -0.02739918790757656, -0.00004031057687825523, -0.036165785044431686, 0.006743802689015865, -0.05432683229446411, -0.032174576073884964, -0.04785364121198654, -0.06458642333745956, 0.000008455200259049889, 0.0520658902823925, 0.03070088103413582, -0.021893616765737534, 0.013566243462264538, 0.0061007216572761536, -0.11322500556707382, -0.043718453496694565, -0.045063264667987823, -0.02534370869398117, -0.02390786074101925, -0.04277779906988144, 0.04920037463307381, -0.04835083708167076, -0.02539379708468914, 0.011136447079479694, 0.03718996047973633, 0.040883999317884445, -0.007674342021346092, -0.011611749418079853, -0.029521243646740913, -0.015177875757217407, 0.0048430790193378925, 0.06285957992076874, -0.00662982277572155, -0.038103844970464706, -0.036781568080186844, -0.0016890113474801183, 0.03159549459815025, 0.011865457519888878, 0.009273151867091656, 0.0013438408495858312, 0.0315532386302948, 0.04801016300916672, -0.040198881179094315, -0.00013025333464611322, -0.016710061579942703, -0.009025395847856998, -0.019216131418943405, -0.04956997185945511, 0.033481065183877945, 0.029171334579586983, 0.031781937927007675, -0.0017734856810420752, 0.00909639522433281, 0.005771666299551725, -0.05141933634877205, -0.05412472411990166, -0.04167284816503525, 0.0019382581813260913, 0.03440365940332413, 0.03280959278345108, -0.006987806409597397, -0.05251229554414749, 0.03502972424030304, 0.024730153381824493, -0.008980657905340195, -0.05687393248081207, -0.025419501587748528, -0.04140569642186165, -0.003806478576734662, 0.006724754814058542, 0.032103195786476135, -0.033368565142154694, 0.04423772916197777, 0.02330324985086918, -0.0018664594972506166, 0.010421410202980042, -0.031175920739769936, -0.041575416922569275, -0.05686970055103302, 0.006057596765458584, -0.0018869213527068496, -0.015302827581763268, 0.008692355826497078, 0.019277792423963547, 0.023241348564624786, 0.061957016587257385, 0.011849849484860897, 0.05058286339044571, -0.011698499321937561, 0.016588827595114708, -0.002227016491815448, -0.007895530201494694, -0.048076629638671875, 0.00006528147787321359, -0.06278267502784729, -0.013403397984802723, -0.036585502326488495, 0.023099681362509727, -0.024977121502161026, -0.03271012380719185, -0.026358557865023613, 0.011893071234226227, -0.06988859921693802, -0.008279288187623024, -0.0076473127119243145, 0.00229024700820446, 0.06734120100736618, -0.0010765629122033715, 0.04062869772315025, -0.029686426743865013, -0.053109582513570786, 0.0016848715022206306, -0.018089933320879936, -0.04970313236117363, 0.009289400652050972, 0.0020676665008068085, 0.009092974476516247, 0.009616726078093052, 0.018347322940826416, 0.013809178955852985, 0.04068314656615257, -0.006911058910191059, 0.005365737248212099, 0.010707260109484196, -0.0048387800343334675, 0.031442783772945404, 0.01456986553966999, -0.012467294000089169, -0.0053395372815430164, -0.017103834077715874, -0.014460739679634571, 0.009379567578434944, -0.004458924755454063, -0.03017040342092514, 0.005036425776779652, -0.013804146088659763, -0.07384273409843445, 0.040859710425138474, -0.0012893711682409048, 0.008337637409567833, 0.02828521467745304, 0.019097773358225822, -0.029391467571258545, -0.01263456791639328, 0.028590746223926544, 0.054752811789512634, -0.047220565378665924, 0.0022170261945575476, 0.003912150859832764, 0.01751062087714672, 0.039212606847286224, -0.008239400573074818, -0.05590227618813515, 0.003659366862848401, -0.00032010601717047393, 0.012599385343492031, -0.019865507259964943, -0.03055356815457344, -0.021272413432598114, -0.010359752923250198, -0.004389961715787649, 0.011375898495316505, 0.002899497514590621, -0.019066695123910904, -0.03051038458943367, -0.005871429108083248, 0.04355255514383316, -0.0385003536939621, -0.00791123230010271, 0.03076770342886448, -0.021013936027884483, -0.01213169191032648, -0.03046593628823757, 0.02233753725886345, 0.02162627875804901, -0.018487265333533287, -0.004640695173293352, -0.04881514236330986, 0.003387301228940487, -0.006106566172093153, 0.06867451220750809, -0.005615419242531061, -0.000037051413528388366, -0.01993710733950138, -0.0014671223470941186, -0.024324651807546616, 0.024971364066004753, -0.00747739989310503, -0.0009329382446594536, 0.012651128694415092, 0.03091825544834137, 0.004951891489326954, 0.03816654160618782, -0.030042387545108795, -0.030045418068766594, 0.07595311105251312, -0.050097398459911346, -0.05044048652052879, 0.005868032108992338, -0.05007093399763107, 0.0157296322286129, 0.020049594342708588, 0.01101457979530096, -0.01703881099820137, 0.048275746405124664, 0.06801377236843109, 0.016805626451969147, 0.042713191360235214, -0.018156105652451515, 0.03121923841536045, -0.03946785628795624, -0.007544867228716612, -0.0999256893992424, 0.01360627543181181, 0.037236664444208145, 0.011590738780796528, 0.009327545762062073, -0.006084016524255276, 0.005428461357951164, 0.027587829157710075, -0.07187559455633163, -0.033122897148132324, 0.05036289989948273, -0.013605084270238876, 0.013335458934307098, 0.025496307760477066, -0.05514857545495033, 0.02377714216709137, 0.04120304062962532, -0.04298371449112892, -0.030170384794473648, -0.029186664149165154, 0.051050711423158646, -0.012088595889508724, 0.05234237015247345, -0.05865974351763725, -0.0011583763407543302, 0.07585538923740387, 0.023361437022686005, 0.017424415796995163, 0.05944317579269409, -0.022042537108063698, 0.030421974137425423, 0.0556999146938324, -0.011076009832322598, -0.03409154713153839, 0.019119514152407646, -0.023267216980457306, -0.056462958455085754, 0.03724538907408714, 0.009356090798974037, -0.014614556916058064, -0.05775781720876694, 0.06154303252696991, 0.03008994646370411, -0.039793457835912704, -0.04193802550435066, 0.015392164699733257, -0.028260521590709686, -0.015586337074637413, -0.04445219039916992, 0.00578142236918211, -0.03463268652558327, 0.054160717874765396, -0.020905308425426483, 0.017581842839717865, 0.09641944617033005, 0.007925128564238548, -0.017285181209445, 0.00001630647420824971, 0.09886563569307327, 0.07365976274013519, 0.016380727291107178, -0.02407209575176239, 0.06621891260147095, -0.014031379483640194, -0.025373229756951332, 0.016649149358272552, -0.03713066503405571, -0.02811184711754322, -0.014751674607396126, 0.01462987158447504, 0.070299431681633, -0.021172894164919853, 0.05648190900683403, -0.047825753688812256, 0.002751288004219532, 0.004096615593880415, 0.010292751714587212, 0.025315232574939728, 0.039519052952528, 0.020627522841095924, 0.05183199420571327, -0.02187579683959484, -0.004043790511786938, 0.007381991483271122, -0.008315297774970531, -0.021611221134662628, 0.03009687550365925, -0.015826253220438957, -0.015439331531524658, 0.023096466436982155, 0.03194877505302429, 0.07575914263725281, -0.01872899942100048, 0.004167347215116024, -0.015470377169549465, 0.01741083338856697, -0.021769631654024124, 0.001338102389127016, -0.013337243348360062, -0.008409867063164711, -0.009915444999933243, -0.02626391313970089, -0.02050655707716942, -0.02491792105138302, -0.035770561546087265, 0.010956999845802784, -0.006768552586436272, 0.025791089981794357, 0.006870318669825792, -0.024470636621117592, -0.04868321120738983, -0.041687242686748505, -0.047062404453754425, -0.0424586720764637, -0.07506287097930908, 0.01412541139870882, -0.006982204504311085, -0.005917920731008053, -0.0335262157022953, -0.013693706132471561, -0.0048659732565283775, -0.019179748371243477, 0.04105242341756821, -0.024231234565377235, -0.013022223487496376, 0.02572115696966648, 0.007069811224937439, 0.029747793450951576, 0.035776544362306595, 0.06956496834754944, -0.0025040956679731607, 0.025100773200392723, -0.03133514150977135, -0.010532348416745663, 0.04134969040751457, 0.019627520814538002, 0.011703286319971085, -0.06324707716703415, -0.0012116670841351151, 0.0006646146066486835, 0.0004339283623266965, -0.081721730530262, 0.010317761451005936, 0.051647212356328964, 0.01921728253364563, 0.06082587689161301, -0.03431456536054611, -0.009838351979851723, -0.03923233970999718, 0.01190740056335926, 0.018369168043136597, -0.01594533957540989, 0.021249905228614807, -0.0399472750723362, 0.055335089564323425, 0.03832649812102318, -0.048092566430568695, -0.004411383997648954, -0.004215896129608154, -0.011222065426409245, -0.01717040129005909, -0.05654100701212883, -0.03383244574069977, -0.057908058166503906, -0.08208620548248291, -0.003688938682898879, 0.01756431721150875, -0.022200260311365128, -0.029458019882440567, 0.020229972898960114, 0.06334521621465683, -0.028986593708395958, 0.028458431363105774, -0.0383378267288208, 0.03137485310435295, -0.033784255385398865, -0.022047188133001328, -0.02041207253932953, -0.006999056786298752, -0.009162369184195995, 0.017190733924508095, 0.03595253825187683, -0.034106988459825516, 0.004379181191325188, -0.04438231140375137, 0.02595493197441101, 0.029507359489798546, 0.014521140605211258, 0.0018508328357711434 ]
[ -0.08757264912128448, -0.020319515839219093, -0.004571796394884586, -0.003510399255901575, 0.034415487200021744, -0.04919537156820297, -0.024789102375507355, 0.006978096440434456, 0.020667940378189087, -0.013574964366853237, 0.009245196357369423, -0.027449944987893105, 0.006585075519979, 0.026230603456497192, 0.06666453182697296, -0.011893058195710182, -0.015457592904567719, -0.04669182375073433, 0.015696587041020393, 0.029019000008702278, 0.008045114576816559, -0.02614249475300312, -0.02342156134545803, -0.039945755153894424, 0.01669558510184288, 0.07385633140802383, 0.07293467223644257, -0.04871087893843651, -0.009876476600766182, -0.19364996254444122, 0.0054060714319348335, -0.012120101600885391, 0.0052440231665968895, -0.012941609136760235, -0.009520324878394604, 0.05066941678524017, 0.0038139228709042072, 0.026806771755218506, 0.013683205470442772, 0.031387221068143845, 0.03229733556509018, 0.048214949667453766, -0.06142375245690346, -0.012086465954780579, 0.028412170708179474, 0.004547091666609049, -0.018765553832054138, -0.027914974838495255, -0.016879169270396233, 0.021637240424752235, -0.059412457048892975, -0.006578258704394102, 0.004575849045068026, -0.011432133615016937, 0.013437481597065926, 0.026745136827230453, 0.05536840856075287, 0.04856378585100174, 0.0312761627137661, 0.01769358292222023, 0.020785721018910408, -0.01397638488560915, -0.1336456686258316, 0.07260256260633469, 0.020579980686306953, 0.01806662417948246, -0.015397347509860992, -0.03964522108435631, -0.030122673138976097, 0.10032592713832855, 0.04038257151842117, -0.002484874799847603, -0.04099279269576073, 0.06354159116744995, 0.0049981321208179, 0.005919568706303835, -0.0005198940052650869, 0.0074290004558861256, 0.045394416898489, -0.019642088562250137, -0.058471545577049255, -0.012910299934446812, -0.023424148559570312, -0.0077176932245492935, -0.024528414011001587, 0.016368567943572998, -0.03985194116830826, 0.060760099440813065, 0.023857414722442627, 0.05261309817433357, 0.049666427075862885, -0.013229976408183575, 0.04303594306111336, 0.01991266943514347, -0.08804263919591904, -0.03217194974422455, -0.0008974760421551764, 0.016969159245491028, -0.01711466535925865, 0.40486741065979004, -0.014868011698126793, 0.01607023924589157, 0.02619539201259613, 0.06687768548727036, 0.000666656531393528, -0.004460337571799755, 0.016152098774909973, -0.053677748888731, 0.007397374138236046, -0.0008695419528521597, 0.01817333698272705, -0.013576004654169083, 0.08156704157590866, -0.07897228747606277, 0.0215081088244915, 0.03924723342061043, 0.05310722813010216, 0.036075372248888016, -0.04455829784274101, 0.0555555634200573, -0.032698679715394974, -0.01314702071249485, 0.02996727265417576, 0.006271502934396267, 0.013241461478173733, -0.02300548367202282, 0.013699100352823734, 0.03572867065668106, 0.0035412092693150043, 0.022432558238506317, 0.04858990013599396, -0.025765949860215187, -0.06873952597379684, 0.026950424537062645, 0.004111862275749445, 0.009695648215711117, 0.010972426272928715, -0.02760051004588604, -0.02872907742857933, -0.02743455581367016, -0.042642779648303986, -0.0040560378693044186, 0.05081803724169731, -0.013312945142388344, -0.026050036773085594, 0.1266988217830658, 0.0034094336442649364, -0.045771241188049316, -0.016153769567608833, -0.044235195964574814, -0.028085563331842422, 0.008119635283946991, 0.0019089909037575126, -0.08346670866012573, -0.023386772722005844, 0.022248046472668648, 0.11041274666786194, -0.014556575566530228, -0.06846686452627182, 0.004339954350143671, -0.030869677662849426, -0.012480650097131729, -0.022281458601355553, 0.05558406561613083, 0.04964486137032509, -0.10280151665210724, -0.007130399812012911, 0.019705967977643013, -0.017926905304193497, -0.06371109187602997, -0.004647212103009224, 0.007728150580078363, -0.024275586009025574, -0.04087662696838379, 0.07917516678571701, -0.020242542028427124, -0.015666136518120766, 0.0038271944504231215, 0.008069120347499847, 0.008596017025411129, -0.005806417670100927, -0.004405282437801361, -0.0331464447081089, -0.01897314190864563, -0.04799782112240791, -0.07366984337568283, -0.0889178067445755, 0.021139051765203476, -0.021135583519935608, -0.04639657586812973, -0.05009779706597328, -0.03461726754903793, -0.05218348652124405, 0.08252206444740295, -0.04662874713540077, -0.05816655978560448, 0.004094272386282682, 0.020150041207671165, -0.009330451488494873, -0.038468871265649796, 0.028821201995015144, 0.023200007155537605, 0.0058122798800468445, 0.028604287654161453, -0.05307624116539955, 0.025911971926689148, 0.04823925346136093, -0.06548961251974106, 0.0681244507431984, 0.04733165726065636, -0.050302088260650635, -0.024094564840197563, 0.0024072290398180485, 0.007256579119712114, 0.01979287900030613, -0.018338805064558983, 0.01819474622607231, 0.0022962286602705717, 0.013674085028469563, 0.06010829284787178, -0.03363305702805519, -0.019333716481924057, 0.0050936853513121605, -0.3391793668270111, -0.054914116859436035, -0.024883229285478592, 0.015066839754581451, 0.02973172813653946, -0.05767098441720009, -0.010970335453748703, -0.03496198356151581, 0.009641336277127266, -0.020296018570661545, 0.11279060691595078, -0.02927374467253685, -0.009388667531311512, -0.05919988825917244, -0.00784305203706026, 0.036562107503414154, -0.029688933864235878, -0.010425494983792305, -0.03552541881799698, 0.013468291610479355, 0.030768467113375664, -0.04015543684363365, -0.011103344149887562, -0.07522685080766678, -0.03690364584326744, -0.014939846470952034, 0.121504046022892, -0.033982258290052414, 0.057999372482299805, -0.06778699904680252, 0.05231354385614395, 0.00005584405153058469, -0.01582559570670128, -0.05633770301938057, -0.010561313480138779, -0.044975802302360535, 0.019859900698065758, -0.016192041337490082, 0.009350931271910667, -0.003203939413651824, -0.0633578971028328, 0.007727905176579952, -0.04507068544626236, -0.029254427179694176, -0.02446083351969719, 0.013412008062005043, -0.023234352469444275, -0.030796991661190987, 0.02988147735595703, 0.04713262617588043, -0.001825188985094428, 0.00581695232540369, 0.018367694690823555, 0.008475270122289658, 0.04416649043560028, -0.057907406240701675, -0.054652802646160126, 0.01186535693705082, -0.0038375388830900192, 0.02048523910343647, 0.010178209282457829, 0.05670207366347313, 0.03142596036195755, -0.04050509259104729, 0.008948339149355888, 0.01946057565510273, -0.023331088945269585, -0.024442728608846664, 0.03893960639834404, -0.03814423084259033, -0.026752008125185966, 0.10584060847759247, -0.015462081879377365, -0.0032023752573877573, 0.05107890069484711, 0.02735028602182865, -0.01145391445606947, 0.03225230425596237, 0.03136736527085304, -0.016811463981866837, 0.03390839323401451, -0.046325355768203735, 0.07531333714723587, -0.00234049279242754, -0.054148804396390915, 0.03628813847899437, 0.028259046375751495, -0.02171400561928749, 0.05014222487807274, 0.03631285950541496, -0.016001878306269646, 0.006631963886320591, -0.0033906330354511738, -0.060980603098869324, 0.08531764894723892, -0.044662896543741226, -0.2548201382160187, 0.0393676832318306, 0.048369694501161575, 0.028788212686777115, -0.0020072616171091795, 0.006775054149329662, 0.046142663806676865, -0.0036885347217321396, -0.013425003737211227, 0.0057041156105697155, -0.0010457076132297516, 0.06822129338979721, -0.015361190773546696, -0.021609626710414886, 0.03382428362965584, 0.01008293405175209, 0.04516923800110817, 0.03169909119606018, 0.007850163616240025, -0.0028337526600807905, 0.032157912850379944, -0.020269209519028664, 0.17390228807926178, 0.017889438197016716, 0.029785947874188423, 0.061816658824682236, -0.008319071494042873, -0.01262196060270071, 0.08671922236680984, -0.016846146434545517, 0.0014867604477331042, 0.0034377200063318014, 0.06115254759788513, 0.00977299828082323, 0.04433584585785866, -0.06068981811404228, -0.009655133821070194, 0.07846186310052872, 0.01827673614025116, -0.022784847766160965, -0.000774864514824003, 0.005569237284362316, -0.015464583411812782, 0.01813473366200924, 0.07968190312385559, -0.03406127169728279, -0.022882528603076935, -0.011778070591390133, -0.06626849621534348, 0.017204398289322853, -0.03162817656993866, -0.049773022532463074, -0.0250620748847723, 0.0007201635162346065, 0.003968149423599243, 0.07845968753099442, 0.032775189727544785, -0.037336207926273346, -0.012393062934279442, 0.004492712672799826, -0.007788269314914942, -0.027289364486932755, 0.11357405036687851, -0.035242240875959396, 0.01850019581615925 ]
[ 0.020127909258008003, 0.023610839620232582, -0.022220855578780174, 0.03857926279306412, -0.016287069767713547, 0.01036889385432005, -0.02121051959693432, 0.022630678489804268, -0.03894215077161789, -0.0054894303902983665, -0.014838340692222118, 0.0015193391591310501, 0.014584077522158623, -0.02185659669339657, 0.011373409070074558, 0.019478844478726387, 0.008267287164926529, -0.002447119215503335, 0.028543252497911453, -0.031090406700968742, -0.02561626397073269, 0.01876545511186123, 0.03470638394355774, -0.00873853825032711, -0.029767995700240135, 0.02333790995180607, 0.0022046794183552265, -0.004897283390164375, 0.026376068592071533, -0.11432172358036041, 0.017802391201257706, -0.02019479125738144, -0.03230658173561096, -0.006208854261785746, 0.0012532385298982263, -0.00682430574670434, 0.01989607885479927, 0.007897655479609966, 0.0031558240298181772, -0.04213690012693405, 0.0359828919172287, -0.010156542994081974, -0.01241904217749834, 0.022862400859594345, 0.006545853801071644, -0.028184428811073303, -0.005333020351827145, -0.05517610162496567, -0.008464327082037926, 0.011534221470355988, -0.03698231279850006, -0.01451270841062069, -0.01519334688782692, -0.019409574568271637, 0.03195871040225029, 0.0023604172747582197, -0.02796303480863571, 0.025567859411239624, -0.020892243832349777, -0.003094467567279935, 0.02584022283554077, -0.03748242184519768, -0.044780533760786057, -0.02966780588030815, -0.005957553628832102, 0.009256325662136078, 0.003795346012338996, -0.01479694340378046, -0.009575193747878075, 0.007093672174960375, -0.007330704014748335, 0.020972570404410362, -0.05508698523044586, 0.008663891814649105, -0.03349773958325386, 0.014751720242202282, 0.021669216454029083, 0.017397115007042885, -0.018051160499453545, -0.04060680419206619, -0.016057323664426804, 0.010903255082666874, -0.011016302742064, 0.0037057935260236263, -0.008367191068828106, -0.03685622289776802, 0.012161223217844963, -0.012259815819561481, 0.05666632577776909, 0.007780813612043858, -0.03418131172657013, 0.01829192414879799, -0.00859145075082779, -0.005082125309854746, -0.09061626344919205, 0.0015045531326904893, 0.006514496169984341, -0.0010857427259907126, -0.0006686012493446469, 0.838204026222229, -0.006734379101544619, 0.032589659094810486, -0.0041347346268594265, 0.01995955780148506, -0.011155675165355206, 0.06499837338924408, 0.010817181318998337, 0.016283322125673294, 0.00576747814193368, 0.0006007220945321023, 0.015061363577842712, 0.006301788613200188, 0.025818439200520515, 0.008236216381192207, 0.021447768434882164, -0.01131786871701479, -0.011911912821233273, 0.004294886719435453, 0.004930136259645224, 0.054870251566171646, -0.013812909834086895, 0.007152452599257231, 0.017967717722058296, -0.029749181121587753, 0.02219272591173649, -0.13568289577960968, 0.01640956848859787, -6.893537479551545e-33, 0.019005294889211655, 0.000517968728672713, 0.036395926028490067, -0.0031498372554779053, 0.03539525344967842, -0.009346291422843933, -0.02268941141664982, -0.010594974271953106, -0.013590183109045029, -0.036242056638002396, -0.007102028466761112, -0.021742163226008415, -0.020466746762394905, -0.05065475404262543, 0.044413041323423386, -0.0236221794039011, 0.02631143294274807, 0.026259761303663254, 0.007082813885062933, 0.009873826056718826, 0.004949069581925869, 0.019927069544792175, -0.018284928053617477, -0.0012462219456210732, 0.03946738690137863, 0.024684904143214226, 0.01057023648172617, 0.007061608601361513, -0.002984563820064068, -0.03620292618870735, -0.03513799235224724, 0.01813112571835518, -0.0521138459444046, -0.029124783352017403, 0.0004579641972668469, -0.037740495055913925, -0.03782722353935242, -0.001739076804369688, -0.027016978710889816, -0.0397615022957325, -0.06100345030426979, -0.04072966426610947, -0.027411852031946182, -0.013004076667129993, -0.03897208720445633, -0.032606009393930435, 0.014527243562042713, 0.05310336872935295, -0.01720740832388401, 0.036012448370456696, -0.016055723652243614, 0.01851709373295307, -0.006044116336852312, -0.01409404817968607, -0.04117898270487785, 0.005609132815152407, 0.00792733859270811, 0.009538051672279835, -0.022341884672641754, 0.05250166356563568, 0.028355780988931656, -0.008549618534743786, 0.0028808624483644962, 0.03446262329816818, 0.013001163490116596, -0.0050045824609696865, -0.020092647522687912, -0.02296287566423416, 0.00875798612833023, 0.021638968959450722, -0.04565208777785301, 0.02729930728673935, 0.01556379348039627, 0.01632765308022499, 0.03034188039600849, -0.05312507972121239, -0.020530756562948227, -0.021398691460490227, -0.005563428625464439, 0.01391671784222126, -0.045815154910087585, -0.018416235223412514, 0.01614810898900032, -0.035213056951761246, 0.026577960699796677, -0.0035235919058322906, 0.02015727572143078, -0.008632749319076538, 0.00938534177839756, 0.011990495026111603, 0.04147025942802429, 0.017621146515011787, -0.02196493186056614, 0.018924733623862267, -0.011869557201862335, 6.761857867688463e-33, -0.013474959880113602, 0.012975611723959446, 0.00982504803687334, 0.006128458306193352, 0.012455616146326065, 0.004682411905378103, 0.013898465782403946, 0.0042020417749881744, -0.053829438984394073, 0.041648708283901215, -0.012828444130718708, -0.015120930038392544, 0.01954830251634121, -0.022011715918779373, 0.06965169310569763, -0.036964911967515945, 0.05551016703248024, -0.06518290191888809, 0.0388939306139946, 0.013505078852176666, 0.032045748084783554, 0.0036394083872437477, -0.027425367385149002, -0.02752755954861641, 0.04002291336655617, 0.03068011999130249, 0.022976722568273544, 0.00839922297745943, -0.032700248062610626, 0.021168533712625504, 0.006254998967051506, -0.028844207525253296, -0.01653246209025383, -0.06436830759048462, 0.0038832053542137146, 0.026186319068074226, -0.004550994839519262, -0.008441299200057983, 0.007311072666198015, 0.00765158561989665, 0.0318572074174881, -0.005506506189703941, 0.004163852892816067, 0.056890591979026794, -0.001487661967985332, 0.009504616260528564, -0.01672225631773472, 0.008615473285317421, -0.015950579196214676, 0.03563861921429634, 0.03784927725791931, 0.03570287674665451, -0.011714917607605457, 0.01577404886484146, 0.02623414620757103, -0.021457046270370483, -0.035634201020002365, 0.0008776520262472332, 0.0057851397432386875, 0.014881253242492676, -0.018899304792284966, 0.009248839691281319, 0.0037084638606756926, 0.04715711623430252, -0.004309223499149084, -0.02206922322511673, -0.004265233874320984, -0.010638361796736717, -0.003087696386501193, 0.0030738653149455786, 0.0035616415552794933, -0.0034867306239902973, -0.03810584172606468, 0.05869681015610695, 0.043442245572805405, -0.017277538776397705, 0.005554035305976868, 0.017796996980905533, -0.03373764082789421, 0.00429919408634305, 0.031507112085819244, 0.009350265376269817, 0.02116311714053154, -0.023695223033428192, -0.0017761874478310347, -0.00574618810787797, -0.024307522922754288, 0.013755684718489647, 0.0012328156735748053, 0.027422534301877022, 0.020179253071546555, 0.0013669419568032026, -0.012723330408334732, 0.0265740267932415, -0.06307380646467209, -1.2737483068292477e-8, -0.06935017555952072, 0.009308300912380219, -0.014431890100240707, 0.00036128604551777244, 0.0503414012491703, 0.010633975267410278, -0.005094952881336212, 0.011511048302054405, -0.02791476435959339, 0.01336389034986496, 0.028724834322929382, -0.021264800801873207, -0.008202549070119858, 0.03714366629719734, 0.006294296123087406, -0.047239501029253006, -0.004896168131381273, -0.04729808494448662, 0.016796832904219627, 0.02159997448325157, 0.004319813102483749, 0.025379395112395287, -0.033611901104450226, 0.02920401655137539, 0.009564084000885487, -0.02255132794380188, 0.0458427295088768, -0.05282318592071533, 0.019794149324297905, 0.02840307727456093, -0.012206400744616985, 0.0013167152646929026, -0.006752331741154194, 0.046715427190065384, -0.04868024215102196, -0.035976849496364594, 0.03475859761238098, 0.07551365345716476, -0.00915277935564518, 0.04807164520025253, -0.0337582528591156, 0.015154467895627022, -0.016235295683145523, -0.02221737988293171, -0.01664525829255581, 0.025451084598898888, -0.0686817541718483, 0.0021936993580311537, 0.017191605642437935, -0.04544825851917267, -0.02435959130525589, -0.03216541185975075, 0.034479282796382904, 0.02435404621064663, 0.017749177291989326, 0.013085920363664627, 0.028151581063866615, -0.03281223773956299, -0.030795861035585403, 0.007144560106098652, -0.004659545607864857, -0.0017773776780813932, -0.005879261065274477, -0.03403111919760704 ]
neo4j-traversal-query-timeout
https://markhneedham.com/blog/2017/10/31/neo4j-traversal-query-timeout
false
2017-10-06 16:13:33
Neo4j: Cypher - Deleting duplicate nodes
[ "neo4j", "cypher" ]
[ "neo4j" ]
I had a problem on a graph I was working on recently where I'd managed to create duplicate nodes because I hadn't applied any http://neo4j.com/docs/developer-manual/current/cypher/schema/constraints/[unique constraints]. I wanted to remove the duplicates, and came across https://gist.github.com/jruts/fe782ff2531d509784a24b655ad8ae76[Jimmy Ruts' excellent post] which shows some ways to do this. Let's first create a graph with some duplicate nodes to play with: [source,cypher] ---- UNWIND range(0, 100) AS id CREATE (p1:Person {id: toInteger(rand() * id)}) MERGE (p2:Person {id: toInteger(rand() * id)}) MERGE (p3:Person {id: toInteger(rand() * id)}) MERGE (p4:Person {id: toInteger(rand() * id)}) CREATE (p1)-[:KNOWS]->(p2) CREATE (p1)-[:KNOWS]->(p3) CREATE (p1)-[:KNOWS]->(p4) Added 173 labels, created 173 nodes, set 173 properties, created 5829 relationships, completed after 408 ms. ---- How do we find the duplicate nodes? [source,cypher] ---- MATCH (p:Person) WITH p.id as id, collect(p) AS nodes WHERE size(nodes) > 1 RETURN [ n in nodes | n.id] AS ids, size(nodes) ORDER BY size(nodes) DESC LIMIT 10 ╒══════════════════════╤═════════════╕ │"ids" │"size(nodes)"│ ╞══════════════════════╪═════════════╡ │[1,1,1,1,1,1,1,1] │8 │ ├──────────────────────┼─────────────┤ │[0,0,0,0,0,0,0,0] │8 │ ├──────────────────────┼─────────────┤ │[17,17,17,17,17,17,17]│7 │ ├──────────────────────┼─────────────┤ │[4,4,4,4,4,4,4] │7 │ ├──────────────────────┼─────────────┤ │[2,2,2,2,2,2] │6 │ ├──────────────────────┼─────────────┤ │[5,5,5,5,5,5] │6 │ ├──────────────────────┼─────────────┤ │[19,19,19,19,19,19] │6 │ ├──────────────────────┼─────────────┤ │[11,11,11,11,11] │5 │ ├──────────────────────┼─────────────┤ │[25,25,25,25,25] │5 │ ├──────────────────────┼─────────────┤ │[43,43,43,43,43] │5 │ └──────────────────────┴─────────────┘ ---- Let's zoom in on all the people with 'id:1' and work out how many relationships they have. Our plan is keep the node that has the most connections and get rid of the others. [source,cypher] ---- MATCH (p:Person) WITH p.id as id, collect(p) AS nodes WHERE size(nodes) > 1 WITH nodes ORDER BY size(nodes) DESC LIMIT 1 UNWIND nodes AS n RETURN n.id, id(n) AS internalId, size((n)--()) AS rels ORDER BY rels DESC ╒══════╤════════════╤══════╕ │"n.id"│"internalId"│"rels"│ ╞══════╪════════════╪══════╡ │1 │175 │1284 │ ├──────┼────────────┼──────┤ │1 │184 │721 │ ├──────┼────────────┼──────┤ │1 │180 │580 │ ├──────┼────────────┼──────┤ │1 │2 │391 │ ├──────┼────────────┼──────┤ │1 │195 │361 │ ├──────┼────────────┼──────┤ │1 │199 │352 │ ├──────┼────────────┼──────┤ │1 │302 │5 │ ├──────┼────────────┼──────┤ │1 │306 │1 │ └──────┴────────────┴──────┘ ---- So in this example we want to keep the node that has 210 relationships and delete the rest. To make things easy we need the node with the highest cardinality to be first or last in our list. We can ensure that's the case by ordering the nodes before we group them. [source,cypher] ---- MATCH (p:Person) WITH p ORDER BY p.id, size((p)--()) DESC WITH p.id as id, collect(p) AS nodes WHERE size(nodes) > 1 RETURN [ n in nodes | {id: n.id,rels: size((n)--()) } ] AS ids, size(nodes) ORDER BY size(nodes) DESC LIMIT 10 ╒══════════════════════════════════════════════════════════════════════╤═════════════╕ │"ids" │"size(nodes)"│ ╞══════════════════════════════════════════════════════════════════════╪═════════════╡ │[{"id":1,"rels":1284},{"id":1,"rels":721},{"id":1,"rels":580},{"id":1,│8 │ │"rels":391},{"id":1,"rels":361},{"id":1,"rels":352},{"id":1,"rels":5},│ │ │{"id":1,"rels":1}] │ │ ├──────────────────────────────────────────────────────────────────────┼─────────────┤ │[{"id":0,"rels":2064},{"id":0,"rels":2059},{"id":0,"rels":1297},{"id":│8 │ │0,"rels":1124},{"id":0,"rels":995},{"id":0,"rels":928},{"id":0,"rels":│ │ │730},{"id":0,"rels":702}] │ │ ├──────────────────────────────────────────────────────────────────────┼─────────────┤ │[{"id":17,"rels":153},{"id":17,"rels":105},{"id":17,"rels":81},{"id":1│7 │ │7,"rels":31},{"id":17,"rels":15},{"id":17,"rels":14},{"id":17,"rels":1│ │ │}] │ │ ├──────────────────────────────────────────────────────────────────────┼─────────────┤ │[{"id":4,"rels":394},{"id":4,"rels":320},{"id":4,"rels":250},{"id":4,"│7 │ │rels":201},{"id":4,"rels":162},{"id":4,"rels":162},{"id":4,"rels":14}]│ │ ├──────────────────────────────────────────────────────────────────────┼─────────────┤ │[{"id":2,"rels":514},{"id":2,"rels":329},{"id":2,"rels":318},{"id":2,"│6 │ │rels":241},{"id":2,"rels":240},{"id":2,"rels":2}] │ │ ├──────────────────────────────────────────────────────────────────────┼─────────────┤ │[{"id":5,"rels":487},{"id":5,"rels":378},{"id":5,"rels":242},{"id":5,"│6 │ │rels":181},{"id":5,"rels":158},{"id":5,"rels":8}] │ │ ├──────────────────────────────────────────────────────────────────────┼─────────────┤ │[{"id":19,"rels":153},{"id":19,"rels":120},{"id":19,"rels":84},{"id":1│6 │ │9,"rels":53},{"id":19,"rels":45},{"id":19,"rels":1}] │ │ ├──────────────────────────────────────────────────────────────────────┼─────────────┤ │[{"id":11,"rels":222},{"id":11,"rels":192},{"id":11,"rels":172},{"id":│5 │ │11,"rels":152},{"id":11,"rels":89}] │ │ ├──────────────────────────────────────────────────────────────────────┼─────────────┤ │[{"id":25,"rels":133},{"id":25,"rels":107},{"id":25,"rels":98},{"id":2│5 │ │5,"rels":15},{"id":25,"rels":2}] │ │ ├──────────────────────────────────────────────────────────────────────┼─────────────┤ │[{"id":43,"rels":92},{"id":43,"rels":85},{"id":43,"rels":9},{"id":43,"│5 │ │rels":5},{"id":43,"rels":1}] │ │ └──────────────────────────────────────────────────────────────────────┴─────────────┘───────────────────────────────────────────────────────┴─────────────┘ ---- Now it's time to delete the duplicates: [source,cypher] ---- MATCH (p:Person) WITH p ORDER BY p.id, size((p)--()) DESC WITH p.id as id, collect(p) AS nodes WHERE size(nodes) > 1 UNWIND nodes[1..] AS n DETACH DELETE n Deleted 143 nodes, deleted 13806 relationships, completed after 29 ms. ---- Now if we run our duplicate query: [source,cypher] ---- MATCH (p:Person) WITH p.id as id, collect(p) AS nodes WHERE size(nodes) > 1 RETURN [ n in nodes | n.id] AS ids, size(nodes) ORDER BY size(nodes) DESC LIMIT 10 (no changes, no records) ---- What about if we remove the WHERE clause? [source,cypher] ---- MATCH (p:Person) WITH p.id as id, collect(p) AS nodes RETURN [ n in nodes | n.id] AS ids, size(nodes) ORDER BY size(nodes) DESC LIMIT 10 ╒═════╤═════════════╕ │"ids"│"size(nodes)"│ ╞═════╪═════════════╡ │[23] │1 │ ├─────┼─────────────┤ │[86] │1 │ ├─────┼─────────────┤ │[77] │1 │ ├─────┼─────────────┤ │[59] │1 │ ├─────┼─────────────┤ │[50] │1 │ ├─────┼─────────────┤ │[32] │1 │ ├─────┼─────────────┤ │[41] │1 │ ├─────┼─────────────┤ │[53] │1 │ ├─────┼─────────────┤ │[44] │1 │ ├─────┼─────────────┤ │[8] │1 │ └─────┴─────────────┘ ---- Hoorah, no more duplicates! Finally, let's check that we kept the node we expected to keep. We expect it to have an 'internalId' of 175: [source,cypher] ---- MATCH (p:Person {id: 1}) RETURN size((p)--()), id(p) AS internalId ╒═══════════════╤════════════╕ │"size((p)--())"│"internalId"│ ╞═══════════════╪════════════╡ │242 │175 │ └───────────────┴────────────┘ ---- Which it does! There are many fewer relationships than we had before because a lot of those relationships were to duplicate nodes that we've now deleted. If we want to go a step further we could 'merge' the duplicate node's relationships onto the nodes that we did keep, but that's for another post!
Sometimes we might accidentally create duplicate nodes in our Neo4j graph database. In this post I show how to remove them with a simple Cypher query.
null
[ 0.0025932863354682922, -0.0032745192293077707, -0.016553329303860664, 0.05359321087598801, 0.10195295512676239, 0.0026079698000103235, 0.021906035020947456, 0.009381410665810108, -0.01233032625168562, -0.029463665559887886, -0.003101105336099863, -0.019247492775321007, -0.08265987783670425, 0.023231718689203262, -0.034663598984479904, 0.049104493111371994, 0.04775059223175049, 0.02955210767686367, -0.0003344528086017817, -0.00766207929700613, 0.015688451007008553, 0.014306886121630669, -0.004655265249311924, 0.051410797983407974, 0.058863427489995956, 0.019938088953495026, 0.012049446813762188, -0.006062161643058062, -0.024999048560857773, 0.007908854633569717, 0.07080575078725815, -0.012162655591964722, 0.05289236456155777, -0.044704604893922806, -0.002626222325488925, -0.013722696341574192, -0.06229135021567345, -0.0082809804007411, -0.020602311939001083, -0.018460216000676155, -0.03596356511116028, 0.02103356644511223, -0.015403766185045242, 0.010723044164478779, -0.023900680243968964, 0.004287055693566799, -0.06820326298475266, 0.02638130635023117, 0.021965065971016884, 0.046730849891901016, -0.09534294158220291, 0.00905732810497284, -0.0027721752412617207, 0.009243020787835121, -0.03163261339068413, 0.05656341835856438, 0.015010957606136799, -0.06729074567556381, 0.06193031743168831, -0.006140373181551695, -0.006740518845617771, -0.0018322868272662163, 0.001158847357146442, 0.056511200964450836, -0.03152577206492424, -0.06550881266593933, 0.025554174557328224, 0.06042754650115967, -0.03644958510994911, -0.018622852861881256, 0.010663989000022411, -0.000198777110199444, 0.006112577859312296, -0.0074250353500247, -0.014419243671000004, -0.01731918565928936, -0.013640024699270725, 0.04054868966341019, 0.017437320202589035, 0.06684133410453796, -0.027408158406615257, 0.016587192192673683, -0.004484665114432573, 0.020340722054243088, 0.02371492236852646, -0.029691211879253387, -0.049740128219127655, -0.02308066561818123, -0.07446414977312088, 0.0206565223634243, 0.012355498969554901, -0.051132120192050934, 0.0016397852450609207, 0.015773676335811615, -0.02243143320083618, 0.005530796945095062, -0.0009539937600493431, 0.005882683675736189, 0.0191634651273489, 0.011182477697730064, -0.020426070317626, -0.02481887675821781, -0.021547095850110054, 0.01106770895421505, -0.06256153434515, -0.035873863846063614, -0.007740451954305172, -0.016719559207558632, -0.002448882209137082, -0.03742307797074318, -0.06972718983888626, -0.008429952897131443, -0.0001291805092478171, 0.05725735053420067, -0.09598930925130844, 0.07819655537605286, 0.008430073037743568, 0.0007684118463657796, -0.008657942526042461, 0.02067752555012703, 0.0238199420273304, 0.011451542377471924, 0.022116638720035553, 0.10162659734487534, -0.00462670624256134, 0.04378297179937363, 0.006444813217967749, 0.06169966608285904, -0.045724671334028244, -0.07504116743803024, -0.008022916503250599, 0.05793914198875427, 0.01325653400272131, -0.00161159283015877, -0.009623659774661064, -0.03880876302719116, -0.02827388048171997, 0.016269827261567116, 0.03601311892271042, 0.019624099135398865, 0.01697198487818241, -0.03352298215031624, 0.03992174193263054, 0.016423754394054413, 0.00951426476240158, 0.01967678777873516, -0.04647788405418396, -0.03791510686278343, -0.006647941656410694, 0.032791148871183395, 0.03479103371500969, 0.037623725831508636, 0.04617006331682205, -0.02742711268365383, -0.0005498465616255999, 0.12303163856267929, 0.015381937846541405, -0.0058957957662642, -0.01924602873623371, 0.0007741655572317541, 0.03374778851866722, 0.007254907861351967, 0.008303653448820114, 0.049821142107248306, -0.007223349995911121, -0.020113667473196983, 0.007214399054646492, 0.07175736129283905, -0.035758789628744125, -0.010976101271808147, -0.036471638828516006, -0.05815316364169121, 0.05649629235267639, -0.058101776987314224, -0.014371256344020367, 0.039978764951229095, 0.043525099754333496, -0.008901555091142654, -0.0013594040647149086, 0.013306590728461742, -0.06478510051965714, 0.03659997135400772, 0.024334300309419632, 0.0020795846357941628, -0.002420367207378149, 0.002129476983100176, 0.06527256965637207, 0.03171304240822792, 0.020254667848348618, 0.0346275232732296, -0.09237080812454224, -0.053033534437417984, 0.016215035691857338, -0.006259470712393522, 0.07682287693023682, -0.014628789387643337, 0.010658064857125282, 0.05711844190955162, -0.0216149240732193, 0.01032467745244503, 0.017733465880155563, -0.00014047353761270642, 0.03347184509038925, -0.0526348315179348, -0.046570293605327606, 0.06274881958961487, 0.005913990084081888, -0.07808010280132294, -0.04456758499145508, -0.0003333044587634504, 0.003967279568314552, -0.003523065708577633, 0.035441361367702484, -0.038916103541851044, 0.0424150787293911, 0.04224781692028046, 0.019255943596363068, -0.008743658661842346, 0.031183792278170586, -0.02278279885649681, 0.03599122539162636, 0.016024678945541382, -0.01854986511170864, -0.003816994372755289, -0.0019090637797489762, 0.10431086272001266, 0.040771305561065674, -0.030098572373390198, -0.04861966148018837, 0.03714832291007042, -0.0023858631029725075, 0.01388555858284235, 0.0327894501388073, -0.006765554193407297, -0.005357349291443825, -0.040410034358501434, -0.024959543719887733, -0.007871543988585472, 0.012812849134206772, -0.031354375183582306, 0.019156690686941147, 0.05906612053513527, -0.060995519161224365, 0.05162961781024933, 0.017751550301909447, 0.015696343034505844, 0.00680291885510087, -0.03302393853664398, -0.044584743678569794, 0.023524699732661247, 0.04176780954003334, -0.0006199528579600155, 0.07332276552915573, -0.03154512494802475, 0.009412835352122784, -0.021877627819776535, 0.0015815863152965903, 0.001271674525924027, 0.03847663104534149, 0.056119404733181, -0.027683600783348083, 0.02810831554234028, -0.021339265629649162, 0.004203549586236477, -0.03280177339911461, -0.058894265443086624, -0.04322860762476921, -0.019477464258670807, 0.019234633073210716, 0.02006944827735424, 0.014556380920112133, -0.02934466302394867, 0.01797247864305973, -0.008483914658427238, 0.03571884706616402, -0.026131099089980125, 0.009876239113509655, 0.0023589779157191515, -0.007008166052401066, -0.035000935196876526, -0.02383350022137165, 0.05164967104792595, -0.053928058594465256, -0.03645765036344528, -0.016295051202178, -0.057468898594379425, 0.0565660186111927, -0.0588967464864254, -0.02951839193701744, 0.00563243729993701, 0.021642867475748062, 0.07022358477115631, -0.011483368463814259, 0.0016540497308596969, 0.07063204795122147, 0.004917541518807411, 0.011721812188625336, 0.033385541290044785, 0.02789386548101902, 0.07361970096826553, 0.0072451489977538586, 0.05940984934568405, 0.027849489822983742, -0.03398127853870392, -0.01146667916327715, -0.023118427023291588, 0.005445823073387146, -0.01741044409573078, -0.24551817774772644, 0.01587349735200405, -0.028879672288894653, -0.05162825062870979, -0.020972656086087227, -0.041107725352048874, 0.02834163047373295, -0.025678765028715134, -0.0010767567437142134, 0.0026901206001639366, 0.012813875451683998, -0.023751286789774895, -0.005016295239329338, 0.07084706425666809, 0.01661452278494835, 0.04100687429308891, -0.01862160675227642, -0.05044269189238548, -0.005258817225694656, 0.05331200733780861, -0.028059212490916252, -0.05093806982040405, -0.021619440987706184, 0.0036136466078460217, -0.006724923849105835, 0.03937408700585365, -0.09650169312953949, 0.018226945772767067, -0.08889750391244888, -0.02839595079421997, -0.022029364481568336, -0.034690581262111664, 0.02307792752981186, 0.002439646515995264, -0.032962191849946976, -0.026789318770170212, 0.027145270258188248, -0.010349842719733715, -0.01344784814864397, 0.04235553741455078, -0.03636761009693146, -0.048454247415065765, 0.0025054155848920345, -0.004337702412158251, 0.06439769268035889, 0.011453165672719479, -0.03235853835940361, -0.027494067326188087, -0.0033038733527064323, 0.06443499028682709, -0.007353964727371931, -0.03062981739640236, -0.004638508893549442, 0.0017747307429090142, -0.002550290198996663, -0.00746571272611618, 0.009108681231737137, -0.023771002888679504, -0.058929506689310074, -0.014540382660925388, 0.006673805415630341, -0.04003491997718811, 0.017219742760062218, -0.04079733416438103, -0.005643869284540415, -0.06685013324022293, -0.08450924605131149, -0.04933280870318413, 0.035753168165683746, 0.02498399093747139, -0.0012924645561724901, 0.028524015098810196, -0.00013610860332846642, -0.08837027102708817, -0.045538924634456635, -0.042271461337804794, 0.004226229153573513, 0.011280844919383526, -0.02500905469059944, 0.050580643117427826, -0.06745508313179016, -0.022016223520040512, -0.004383630584925413, 0.03252474218606949, 0.03002714365720749, 0.017607307061553, 0.0019355611875653267, -0.02960111014544964, -0.05261964350938797, 0.005849743261933327, 0.06568591296672821, -0.010082349181175232, 0.009893232025206089, 0.011099284514784813, 0.0181417278945446, 0.0453215129673481, 0.009266396053135395, -0.014652111567556858, 0.027758639305830002, 0.04067067801952362, 0.05801151692867279, -0.01738257147371769, 0.022246291860938072, -0.03158652037382126, -0.030887475237250328, 0.006157255731523037, -0.02686960995197296, 0.0123033057898283, 0.004798671696335077, 0.01939709298312664, -0.02125674858689308, -0.02162829041481018, 0.002711291890591383, -0.04600374773144722, -0.027579624205827713, -0.03247807174921036, 0.01884675957262516, 0.028045274317264557, 0.03407769277691841, -0.029215486720204353, -0.06661586463451385, 0.025221841409802437, 0.01920224539935589, -0.0022798350546509027, -0.05984124168753624, -0.04301464930176735, -0.043843116611242294, -0.012119895778596401, 0.001780579099431634, 0.028329696506261826, -0.011306529864668846, 0.04297184571623802, 0.01920090988278389, -0.03682950139045715, 0.04032193496823311, -0.017182378098368645, -0.038584861904382706, -0.028618935495615005, 0.000010110737093782518, 0.024409577250480652, -0.0016277721151709557, 0.022123578935861588, 0.004981027916073799, 0.04630788415670395, 0.056600119918584824, -0.02678440697491169, 0.02853219024837017, -0.01355692744255066, 0.0020886240527033806, 0.0017862668028101325, -0.009746089577674866, -0.021083172410726547, 0.027502840384840965, -0.045942168682813644, -0.011934231035411358, 0.016063835471868515, 0.050152286887168884, -0.023697268217802048, -0.02108667604625225, -0.03893807530403137, 0.023077387362718582, -0.0447261743247509, 0.03135894238948822, -0.01872672699391842, 0.013142844662070274, 0.04255923628807068, -0.002784283133223653, 0.008874228224158287, -0.04609460383653641, -0.03533124923706055, 0.024479184299707413, 0.009703507646918297, -0.04443461820483208, -0.018759887665510178, 0.005638407077640295, 0.027053646743297577, 0.029455097392201424, 0.028237370774149895, 0.010683064348995686, 0.014592028222978115, -0.01579776592552662, -0.0026672908570617437, 0.004307559225708246, 0.0189184732735157, 0.015859492123126984, 0.045134421437978745, -0.01273142360150814, 0.008954323828220367, -0.03637202829122543, 0.0005897197406738997, 0.024185728281736374, 0.0009175793384201825, -0.03533056750893593, 0.0277269147336483, -0.020274493843317032, -0.05121273174881935, 0.016688324511051178, 0.0043316856026649475, 0.011762501671910286, 0.04876251518726349, -0.0022041688207536936, -0.02031146176159382, -0.019620666280388832, 0.013311448507010937, 0.0733359232544899, -0.04511343687772751, -0.023639898747205734, -0.011787832714617252, 0.010161659680306911, -0.0006747716688551009, 0.01244603656232357, -0.06879929453134537, -0.04660448431968689, -0.04391125217080116, 0.021010905504226685, -0.009098218753933907, -0.03577752411365509, -0.01876932568848133, 0.008773795329034328, -0.00414537126198411, 0.0379243828356266, 0.03134176507592201, 0.021484727039933205, -0.0074214325286448, 0.006518455222249031, 0.03710268810391426, -0.031296778470277786, -0.0027577716391533613, 0.014018585905432701, -0.007783543784171343, 0.021702956408262253, -0.02301774173974991, 0.051970209926366806, 0.025387827306985855, 0.021893972530961037, -0.007635488174855709, -0.06770069897174835, 0.043575089424848557, -0.03159862011671066, 0.02487410604953766, 0.0010825865902006626, 0.011108363047242165, -0.048405442386865616, 0.0036464016884565353, -0.008357401937246323, -0.024230442941188812, -0.006488057319074869, -0.013127586804330349, 0.009997555054724216, 0.01846001110970974, 0.011904148384928703, 0.015115362592041492, -0.03630249202251434, -0.03290637582540512, 0.07132194191217422, -0.000011730209735105745, -0.03711993247270584, -0.021229073405265808, -0.04496626928448677, 0.0018599815666675568, -0.0050735087133944035, 0.036853525787591934, -0.031646400690078735, 0.051788151264190674, 0.04933308809995651, 0.022700706496834755, -0.002760875504463911, -0.03826340660452843, 0.010013703256845474, -0.03591208904981613, -0.016026850789785385, -0.06857635825872421, 0.034286271780729294, 0.0395001620054245, -0.04382893815636635, 0.026249995455145836, -0.01721441186964512, -0.013801905326545238, 0.004937297198921442, -0.030131112784147263, -0.01454600878059864, 0.02709176391363144, 0.001871604472398758, 0.021390400826931, 0.032158106565475464, -0.05063377693295479, -0.0005672940751537681, 0.07219667732715607, -0.03041417896747589, -0.014185255393385887, -0.06019105017185211, 0.04887533560395241, -0.029892675578594208, 0.009394887834787369, -0.0028375801630318165, -0.021416813135147095, 0.06521962583065033, 0.02435809187591076, 0.05609302222728729, 0.050659503787755966, -0.024532411247491837, 0.02114066854119301, 0.05691847950220108, -0.02291163057088852, -0.0022059103939682245, 0.07965440303087234, -0.018881777301430702, -0.035373713821172714, 0.03808944672346115, 0.013586199842393398, -0.02599938213825226, -0.043902505189180374, 0.07524236291646957, 0.012190647423267365, -0.07401330024003983, -0.05262206494808197, 0.03903655335307121, -0.0408916100859642, 0.0013467440148815513, -0.05722121521830559, 0.007982468232512474, -0.021453319117426872, 0.07546861469745636, -0.04098045080900192, -0.00011079682008130476, 0.06526791304349899, -0.013585197739303112, 0.029063887894153595, -0.008942031301558018, 0.0721053034067154, 0.09000224620103836, 0.05023053660988808, 0.009757655672729015, 0.05824463441967964, -0.00027329885051585734, -0.019893895834684372, -0.0051775905303657055, -0.05346411094069481, -0.016638483852148056, -0.002548391930758953, 0.006521848030388355, 0.06613552570343018, -0.032921187579631805, 0.06804848462343216, -0.00978450570255518, 0.003205465618520975, -0.006922160740941763, -0.017063284292817116, 0.04030623286962509, 0.07970686256885529, 0.016314547508955002, 0.04463832825422287, -0.04082461819052696, -0.009594636037945747, 0.009331849403679371, 0.005562137346714735, -0.009874172508716583, 0.02928163670003414, -0.02334284596145153, 0.0030802583787590265, 0.008599620312452316, 0.015243683941662312, 0.07475793361663818, -0.014982510358095169, -0.015797719359397888, 0.00721082603558898, 0.02258508838713169, 0.0019673791248351336, 0.01237858273088932, 0.0005044621648266912, -0.0377051867544651, -0.028422845527529716, -0.06175954267382622, -0.016349177807569504, -0.0443556047976017, -0.03322320058941841, -0.023960264399647713, -0.0011261110194027424, 0.0021134288981556892, 0.013699125498533249, 0.0046131545677781105, -0.02299703098833561, -0.03280056267976761, -0.03263331577181816, -0.08491476625204086, -0.05833995342254639, 0.02174159325659275, -0.024845661595463753, 0.0020893998444080353, 0.003808573354035616, 0.010973111726343632, -0.025914853438735008, 0.004923274274915457, 0.059026289731264114, -0.005203189328312874, 0.006591895129531622, 0.002454326953738928, 0.014557433314621449, 0.009625780396163464, 0.024003570899367332, 0.034206926822662354, -0.003054760629311204, 0.011185979470610619, -0.01830429956316948, -0.00040212133899331093, 0.03834795579314232, 0.04560410976409912, -0.013513653539121151, -0.06780394911766052, -0.012565498240292072, -0.010206821374595165, -0.033194608986377716, -0.07341136038303375, 0.021776318550109863, 0.04716002196073532, 0.016325386241078377, 0.053970593959093094, -0.013373293913900852, -0.04843639209866524, -0.019893575459718704, 0.015786748379468918, -0.013715848326683044, -0.026404501870274544, 0.049334391951560974, -0.04450063779950142, 0.0682969018816948, 0.007467995397746563, -0.030365632846951485, -0.04548835754394531, -0.009940520860254765, -0.009341930039227009, 0.022257018834352493, -0.041349075734615326, -0.023841198533773422, -0.056185826659202576, -0.09040997177362442, -0.014764226973056793, -0.01534241158515215, -0.03439716622233391, -0.019271524623036385, -0.008255377411842346, 0.0051382239907979965, -0.05544852837920189, 0.03815891966223717, -0.04970073327422142, 0.04732823371887207, -0.037813227623701096, -0.008830896578729153, -0.045827917754650116, 0.005607543047517538, -0.010114668868482113, 0.020062876865267754, 0.007532221730798483, -0.044691700488328934, -0.009547377936542034, -0.04105363041162491, 0.013480700552463531, 0.01735694520175457, 0.03248065337538719, 0.012067574076354504 ]
[ -0.0641135647892952, -0.044878918677568436, -0.022178206592798233, 0.0022685981821268797, 0.03608740493655205, -0.02212464064359665, -0.025680294260382652, 0.0027504730969667435, 0.040225666016340256, -0.0011843809625133872, 0.05248475819826126, -0.04204113408923149, 0.04206770658493042, -0.00015687712584622204, 0.08417520672082901, 0.026731761172413826, -0.04809898883104324, -0.03855434060096741, -0.04059586673974991, 0.02234531380236149, -0.018216924741864204, -0.070399209856987, -0.044781558215618134, -0.02806948870420456, 0.025280848145484924, 0.042568545788526535, 0.03284775838255882, -0.011720998212695122, 0.005079637281596661, -0.2177608609199524, 0.018407102674245834, 0.03419623151421547, 0.009041398763656616, -0.022647207602858543, 0.032796964049339294, 0.0020670900121331215, 0.034498993307352066, 0.012061887420713902, 0.010817312635481358, 0.039931394159793854, 0.027436725795269012, 0.006521911360323429, -0.06296289712190628, -0.04238268360495567, 0.04048615321516991, 0.0417884960770607, -0.019929124042391777, -0.013121513649821281, 0.028795894235372543, 0.021885491907596588, -0.02838972397148609, -0.05856247618794441, 0.0014315391890704632, 0.0003412013466004282, 0.024088473990559578, 0.057262253016233444, 0.043361831456422806, 0.06717776507139206, 0.030158834531903267, 0.055976491421461105, 0.02358437515795231, 0.00752163864672184, -0.09297849982976913, 0.048859670758247375, 0.057305317372083664, 0.03223804384469986, -0.04844153672456741, -0.033798471093177795, -0.029398322105407715, 0.10624802857637405, 0.03289230912923813, 0.0030135137494653463, -0.024551985785365105, 0.0675518661737442, -0.01535444613546133, 0.037131913006305695, -0.023051030933856964, 0.006620057392865419, 0.015223781578242779, -0.020145626738667488, -0.0680353045463562, 0.006687909830361605, -0.023002933710813522, -0.010478910990059376, -0.03314414992928505, 0.014576751738786697, -0.031996313482522964, 0.05317661911249161, -0.008099105209112167, 0.030181529000401497, 0.03563813865184784, 0.04487339034676552, 0.04798003286123276, 0.020014647394418716, -0.09665069729089737, -0.027820533141493797, -0.016160476952791214, 0.01962415874004364, 0.003796003293246031, 0.4234673082828522, -0.002751680323854089, -0.00010819904127856717, 0.07868210971355438, 0.06412457674741745, -0.008928078226745129, -0.005904292222112417, -0.015241337940096855, -0.07564733922481537, 0.02156739868223667, -0.006205531302839518, 0.00761399045586586, -0.06733514368534088, 0.021919094026088715, -0.09879497438669205, 0.0030707940459251404, 0.023572778329253197, 0.06468210369348526, 0.04086610674858093, -0.019744450226426125, 0.0016752223018556833, -0.007563795894384384, 0.026324516162276268, 0.02569812349975109, -0.004641667008399963, 0.024712754413485527, 0.010458182543516159, -0.008772246539592743, 0.04996980354189873, -0.0028105981182307005, 0.02915099821984768, 0.041415393352508545, 0.016555393114686012, -0.04649350792169571, 0.03613544628024101, -0.026383910328149796, -0.006994431838393211, 0.01705694943666458, -0.048431698232889175, -0.010986646637320518, 0.019739827141165733, -0.004227505065500736, -0.03449447453022003, 0.03622104972600937, -0.006659248843789101, -0.02055206522345543, 0.12622497975826263, -0.008899693377315998, -0.021050646901130676, -0.02601620741188526, -0.041513074189424515, -0.032859716564416885, 0.017747988924384117, -0.012547682970762253, -0.0819820687174797, -0.005518313497304916, 0.013286149129271507, 0.07729816436767578, -0.008831788785755634, -0.07130412757396698, 0.016593407839536667, 0.01707153022289276, -0.01013342197984457, -0.05284176021814346, 0.09971257299184799, 0.05719200149178505, -0.11339185386896133, 0.007419512141495943, 0.024520155042409897, 0.010633151978254318, -0.06385979056358337, 0.003182510379701853, 0.026387345045804977, -0.03047194331884384, -0.01526651345193386, 0.056095004081726074, -0.017240917310118675, -0.05847740173339844, -0.05079419165849686, 0.027260534465312958, -0.0030080254655331373, -0.01805349811911583, 0.006639179307967424, -0.04948395863175392, 0.005244892090559006, -0.10062465816736221, -0.08495961129665375, -0.0591803602874279, 0.02951020933687687, -0.03619285672903061, -0.03512664884328842, -0.03360579535365105, 0.010674956254661083, -0.012120001018047333, 0.08177228271961212, -0.048316117376089096, -0.04614058509469032, -0.020229032263159752, -0.0011724233627319336, -0.0170225091278553, -0.05285079777240753, 0.037402212619781494, 0.0038565611466765404, -0.006309605203568935, 0.016464129090309143, -0.09619732201099396, 0.027964893728494644, 0.0654616728425026, -0.0359685942530632, 0.05328388139605522, 0.029383791610598564, -0.03573908656835556, 0.01630234345793724, -0.011918976902961731, 0.04569843038916588, 0.005364229436963797, -0.020091846585273743, -0.00020713845151476562, 0.005967659410089254, 0.03467026352882385, 0.036488816142082214, -0.009209854528307915, -0.013380810618400574, -0.021762549877166748, -0.31769856810569763, -0.05727560445666313, -0.01431209221482277, 0.00390822347253561, 0.009396758861839771, -0.008329703472554684, 0.01139019150286913, -0.017565980553627014, -0.011500732973217964, 0.014189629815518856, 0.07147087156772614, -0.0029036332853138447, -0.01894426718354225, -0.04808927699923515, -0.002572735073044896, 0.028382521122694016, -0.0037932577542960644, 0.017939023673534393, -0.013749442994594574, 0.013309795409440994, -0.016650289297103882, -0.024517644196748734, 0.022611405700445175, -0.05121336877346039, 0.002231637015938759, -0.014337465167045593, 0.13831736147403717, 0.0030221089255064726, 0.01042409148067236, -0.03606903925538063, 0.027676835656166077, -0.0003843894228339195, -0.018491564318537712, -0.031361646950244904, 0.006899404339492321, -0.0003587852406781167, -0.020581426098942757, 0.0022902984637767076, -0.020509764552116394, -0.01912614330649376, -0.05723501741886139, -0.02764381840825081, -0.04101898521184921, -0.05033062770962715, -0.02069339156150818, 0.01976090483367443, -0.060068316757678986, 0.002042085397988558, 0.009693403728306293, 0.09208860248327255, 0.006774941459298134, 0.027282843366265297, 0.01501704566180706, 0.01718868315219879, 0.016010461375117302, -0.026725346222519875, -0.07209235429763794, -0.01917329430580139, 0.04003108665347099, -0.005332366097718477, -0.0037561014760285616, 0.042955007404088974, 0.027593595907092094, -0.09637254476547241, 0.04868820682168007, 0.030055135488510132, -0.012699328362941742, -0.01069160271435976, 0.020866388455033302, -0.038676779717206955, -0.02932487055659294, 0.09634372591972351, 0.03887904807925224, 0.004270805045962334, 0.01051466353237629, 0.04692167043685913, -0.028781166300177574, 0.010300173424184322, 0.022366167977452278, 0.002748742001131177, 0.039598509669303894, -0.06254860758781433, 0.052751459181308746, -0.000900695682503283, -0.036955658346414566, 0.05439305305480957, -0.012340599671006203, -0.03757493570446968, 0.08129008859395981, -0.010079973377287388, -0.0072676739655435085, 0.013403091579675674, -0.024784404784440994, -0.04201190918684006, 0.05689143016934395, -0.043561603873968124, -0.2547997832298279, 0.034966349601745605, 0.03121839091181755, 0.07956099510192871, -0.004733391106128693, 0.03730699419975281, 0.015855591744184494, -0.008428270928561687, 0.03749151900410652, -0.019837142899632454, 0.012945367954671383, 0.07688093185424805, -0.0037353518418967724, -0.025358183309435844, -0.004287214018404484, 0.021495921537280083, 0.026381490752100945, -0.008429212495684624, 0.022099092602729797, 0.017813174054026604, 0.042431823909282684, -0.015873396769165993, 0.19774779677391052, 0.03543414920568466, -0.008877422660589218, 0.022096335887908936, -0.038599610328674316, 0.008816901594400406, 0.028410078957676888, 0.0023211713414639235, -0.04155431687831879, 0.03828151524066925, -0.027058113366365433, 0.03414316102862358, 0.02010374888777733, -0.02861310914158821, -0.005807075649499893, 0.027683131396770477, 0.0005326794344000518, -0.028493806719779968, 0.00020618656708393246, -0.015572805888950825, -0.06255549937486649, 0.03328123316168785, 0.07815337926149368, -0.03208000957965851, -0.01296937745064497, -0.005764326546341181, -0.06007611006498337, -0.0019138671923428774, -0.032986581325531006, -0.04926827549934387, -0.02613360621035099, -0.01353685837239027, -0.018135178834199905, 0.04312710464000702, 0.019746161997318268, -0.0010287597542628646, 0.015812214463949203, -0.007059237454086542, -0.013393634930253029, -0.056077536195516586, 0.10327646881341934, -0.02527885138988495, 0.008555695414543152 ]
[ 0.0022902132477611303, 0.03138235583901405, 0.006568968296051025, 0.019149871543049812, -0.013270195573568344, -0.015176030807197094, -0.016119135543704033, -0.009372442960739136, -0.011452565900981426, 0.007766962517052889, -0.013530448079109192, 0.02485564537346363, 0.07225063443183899, -0.0245488453656435, -0.010985096916556358, 0.03676171973347664, -0.0389273539185524, 0.018022911623120308, 0.027424456551671028, -0.03764089196920395, -0.04191206023097038, 0.018530959263443947, 0.03827790915966034, -0.021860165521502495, 0.01270977221429348, -0.0013140320079401135, -0.01617135852575302, 0.049634650349617004, 0.026723144575953484, -0.1021946519613266, -0.013072098605334759, -0.021964505314826965, 0.01216928195208311, 0.01913580857217312, -0.0467897467315197, 0.015337356366217136, -0.006894109304994345, 0.004455798305571079, -0.0008615972474217415, 0.019210752099752426, 0.024762745946645737, 0.013723783195018768, -0.029153332114219666, 0.010637247003614902, -0.0076828207820653915, -0.005515907425433397, -0.05369500815868378, 0.0013047526590526104, -0.0028526021633297205, -0.02146468125283718, -0.038573961704969406, -0.023691605776548386, 0.007204234600067139, 0.0031976797617971897, 0.06139979138970375, 0.01775030419230461, -0.060444578528404236, -0.009279197081923485, 0.015685373917222023, -0.011343223974108696, 0.02709159627556801, -0.005400561261922121, -0.055313870310783386, -0.032714344561100006, -0.00463420944288373, -0.006991993635892868, 0.00876830704510212, 0.02938845194876194, 0.01129391510039568, 0.005320065654814243, 0.003923728130757809, 0.035823360085487366, -0.06689479947090149, 0.013455066829919815, -0.013656247407197952, 0.060280341655015945, 0.029592828825116158, -0.02474227547645569, -0.027729475870728493, 0.007135900668799877, -0.03687174618244171, 0.01664905808866024, -0.012473298236727715, -0.008156884461641312, -0.02820012718439102, -0.010863563977181911, -0.012685447931289673, 0.005872017703950405, 0.026264458894729614, 0.025239214301109314, -0.04225253313779831, 0.0261983722448349, -0.023885760456323624, 0.002170239109545946, -0.0835828110575676, 0.01236051321029663, 0.02551715075969696, 0.0013367936480790377, 0.04266149550676346, 0.8132438659667969, 0.041141077876091, -0.01723221130669117, 0.0031101389322429895, 0.01874939352273941, 0.016364580020308495, -0.0011216592974960804, -0.016733607277274132, 0.00001617348607396707, -0.012679765932261944, -0.009880558587610722, -0.003902884665876627, 0.019107257947325706, 0.009402129799127579, 0.04642834886908531, 0.012325049377977848, 0.03757985681295395, 0.03814450278878212, 0.015889223664999008, -0.003558024065569043, 0.013225741684436798, 0.005377445835620165, -0.018597101792693138, 0.0009219722123816609, 0.026281051337718964, -0.017179494723677635, -0.17575985193252563, -0.038814324885606766, -7.689020220691911e-33, 0.03830994665622711, -0.0038352222181856632, 0.06781011819839478, -0.006535442546010017, 0.009409124031662941, 0.02180062234401703, -0.0021839241962879896, -0.0325198732316494, -0.042006898671388626, -0.0339675135910511, -0.02631441131234169, -0.007500492502003908, 0.0049142553471028805, -0.04501640051603317, -0.010685399174690247, -0.03397342935204506, 0.023454537615180016, 0.03462693840265274, -0.010919221676886082, -0.012662014923989773, -0.0010797497816383839, 0.0257461816072464, -0.03598640859127045, 0.032987866550683975, 0.016364000737667084, 0.008628594689071178, 0.004127186723053455, -0.014855906367301941, 0.017860962077975273, -0.07168815284967422, -0.08480863273143768, 0.030742306262254715, 0.004390225280076265, 0.033658597618341446, -0.018096923828125, -0.040696971118450165, -0.023302290588617325, 0.008835924789309502, -0.03744787350296974, -0.09123672544956207, -0.03555905818939209, 0.020051557570695877, 0.004318800754845142, -0.04038628563284874, -0.02011353150010109, -0.02271162159740925, -0.0169395562261343, 0.0015218982007354498, 0.02320505492389202, 0.022940777242183685, 0.01632227562367916, 0.031627148389816284, 0.015740076079964638, 0.013659141957759857, -0.026588985696434975, -0.0025784943718463182, 0.010733406990766525, 0.008478992618620396, -0.016215991228818893, 0.04182542860507965, 0.04208854213356972, -0.0009134125430136919, -0.017370326444506645, 0.053616151213645935, 0.024206260219216347, 0.02674044482409954, 0.008299061097204685, 0.005688875447958708, 0.0041464949026703835, 0.028630360960960388, -0.0483807772397995, 0.026376953348517418, -0.017474666237831116, -0.023418234661221504, 0.01892060600221157, -0.05921434983611107, -0.003608871018514037, -0.042709700763225555, 0.007806024514138699, 0.03070005401968956, -0.04151573404669762, -0.025817863643169403, -0.01774573139846325, -0.019144760444760323, -0.0161178819835186, -0.01807091012597084, 0.00918695516884327, 0.02259308472275734, 0.011672141961753368, 0.013406763784587383, 0.052695296704769135, 0.022442735731601715, -0.002710897708311677, -0.011552390642464161, -0.006208884529769421, 7.561318187838424e-33, -0.023447776213288307, 0.006590144708752632, 0.020421965047717094, -0.0013083639787510037, 0.03586124628782272, -0.012617213651537895, 0.0011975930538028479, 0.0037764874286949635, -0.03600756824016571, 0.007881010882556438, -0.005805261433124542, -0.0053126937709748745, 0.007420411799103022, 0.019361866638064384, 0.05884696543216705, -0.017432130873203278, 0.01585554890334606, -0.012927069328725338, 0.0007343728211708367, 0.02806408517062664, 0.014770908281207085, 0.013611769303679466, 0.0222516730427742, 0.024725010618567467, 0.02250247448682785, 0.017099201679229736, 0.007846355438232422, 0.0007666361052542925, 0.0029338651802390814, -0.023426001891493797, 0.013636504299938679, -0.06033844128251076, -0.008718255907297134, -0.029748642817139626, 0.05351914092898369, -0.010348637588322163, 0.000967402767855674, 0.022212404757738113, 0.0285053588449955, -0.003957050386816263, -0.0011136532993987203, 0.007636562921106815, -0.0382019579410553, 0.08273689448833466, 0.03601823002099991, 0.02599780261516571, 0.03170127794146538, 0.017405381426215172, 0.0019764744210988283, 0.0036264294758439064, -0.003343797056004405, 0.02661530300974846, -0.012477226555347443, 0.01688263937830925, 0.03602558746933937, -0.07024841755628586, -0.009395698085427284, 0.06651678681373596, 0.007286975625902414, -0.031311117112636566, 0.0019902584608644247, -0.0198045801371336, -0.0763719379901886, 0.03236749395728111, -0.018614519387483597, -0.018996646627783775, -0.04673943296074867, 0.0029517358634620905, -0.036538779735565186, 0.031044285744428635, -0.014436018653213978, 0.049490489065647125, -0.02135246992111206, 0.016279330477118492, 0.027872692793607712, -0.039866458624601364, -0.030489938333630562, 0.0009837023681029677, -0.017949102446436882, 0.03450524061918259, 0.018303198739886284, 0.023070722818374634, 0.021461255848407745, 0.007967528887093067, -0.01969817653298378, -0.00780844409018755, -0.017465459182858467, 0.028205659240484238, -0.006324208341538906, -0.001479704980738461, 0.0045148031786084175, -0.022899840027093887, -0.053732480853796005, 0.05768570676445961, -0.03943166881799698, -1.2733268661691e-8, -0.03432370349764824, 0.03268389776349068, -0.03465316817164421, -0.010715410113334656, 0.016200924292206764, 0.010154548101127148, 0.017087480053305626, -0.005275547504425049, -0.0014263264602050185, 0.006034181918948889, 0.007853788323700428, -0.010595624335110188, 0.02271612174808979, -0.010897214524447918, 0.004974622279405594, -0.07208731025457382, -0.004509679973125458, -0.006422732025384903, 0.04354015365242958, 0.018143467605113983, 0.0016624946147203445, 0.046891190111637115, -0.03589645400643349, 0.006434114184230566, -0.004208956379443407, -0.031073683872818947, 0.03677820786833763, -0.06197107955813408, 0.0022182513494044542, -0.017581447958946228, -0.00944730918854475, -0.035994723439216614, -0.002707765204831958, 0.048876192420721054, -0.04134248569607735, -0.01394432969391346, -0.0015495356637984514, 0.03191955015063286, 0.024964256212115288, 0.0299986619502306, -0.015249854885041714, -0.0027968240901827812, -0.0035409636329859495, -0.025606762617826462, -0.038418278098106384, 0.021264735609292984, -0.020441697910428047, -0.020603792741894722, 0.04947136342525482, -0.03575979173183441, 0.007599163334816694, -0.0074589136056602, 0.052734632045030594, -0.01887407898902893, 0.05277032405138016, 0.021444236859679222, 0.010385160334408283, 0.023284776136279106, 0.017348451539874077, -0.013989489525556564, 0.013042012229561806, -0.0038902994710952044, -0.022864943370223045, -0.022012006491422653 ]
neo4j-cypher-deleting-duplicate-nodes
https://markhneedham.com/blog/2017/10/06/neo4j-cypher-deleting-duplicate-nodes
false
2017-07-05 14:31:04
Pandas: Find rows where column/field is null
[ "python", "pandas", "data-science" ]
[ "Python" ]
In my continued playing around with the https://www.kaggle.com/c/house-prices-advanced-regression-techniques[Kaggle house prices dataset] I wanted to find any columns/fields that have null values in. If we want to get a count of the number of null fields by column we can use the following code, adapted from https://www.kaggle.io/svf/1188722/9f7f512433ad6a3bff46445a847dfc15/%5F%5Fresults%5F%5F.html#Missing-Value-Imputation[Poonam Ligade's kernel]: == Prerequisites [source,python] ---- import pandas as pd ---- == Count the null columns [source,python] ---- train = pd.read_csv("train.csv") null_columns=train.columns[train.isnull().any()] train[null_columns].isnull().sum() ---- [source,text] ---- LotFrontage 259 Alley 1369 MasVnrType 8 MasVnrArea 8 BsmtQual 37 BsmtCond 37 BsmtExposure 38 BsmtFinType1 37 BsmtFinType2 38 Electrical 1 FireplaceQu 690 GarageType 81 GarageYrBlt 81 GarageFinish 81 GarageQual 81 GarageCond 81 PoolQC 1453 Fence 1179 MiscFeature 1406 dtype: int64 ---- So there are lots of different columns containing null values. What if we want to find the solitary row which has 'Electrical' as null? == Single column is null [source,python] ---- print(train[train["Electrical"].isnull()][null_columns]) ---- [source,text] ---- LotFrontage Alley MasVnrType MasVnrArea BsmtQual BsmtCond BsmtExposure \ 1379 73.0 NaN None 0.0 Gd TA No BsmtFinType1 BsmtFinType2 Electrical FireplaceQu GarageType GarageYrBlt \ 1379 Unf Unf NaN NaN BuiltIn 2007.0 GarageFinish GarageQual GarageCond PoolQC Fence MiscFeature 1379 Fin TA TA NaN NaN NaN ---- And what if we want to return https://stackoverflow.com/questions/14247586/python-pandas-how-to-select-rows-with-one-or-more-nulls-from-a-dataframe-without[every row that contains at least one null value]? That's not too difficult - it's just a combination of the code in the previous two sections: == All null columns [source,python] ---- print(train[train.isnull().any(axis=1)][null_columns].head()) ---- [source,text] ---- LotFrontage Alley MasVnrType MasVnrArea BsmtQual BsmtCond BsmtExposure \ 0 65.0 NaN BrkFace 196.0 Gd TA No 1 80.0 NaN None 0.0 Gd TA Gd 2 68.0 NaN BrkFace 162.0 Gd TA Mn 3 60.0 NaN None 0.0 TA Gd No 4 84.0 NaN BrkFace 350.0 Gd TA Av BsmtFinType1 BsmtFinType2 Electrical FireplaceQu GarageType GarageYrBlt \ 0 GLQ Unf SBrkr NaN Attchd 2003.0 1 ALQ Unf SBrkr TA Attchd 1976.0 2 GLQ Unf SBrkr TA Attchd 2001.0 3 ALQ Unf SBrkr Gd Detchd 1998.0 4 GLQ Unf SBrkr TA Attchd 2000.0 GarageFinish GarageQual GarageCond PoolQC Fence MiscFeature 0 RFn TA TA NaN NaN NaN 1 RFn TA TA NaN NaN NaN 2 RFn TA TA NaN NaN NaN 3 Unf TA TA NaN NaN NaN 4 RFn TA TA NaN NaN NaN ---- Hope that helps future Mark!
In this post we look at how to find null values in a Pandas dataframe.
null
[ -0.0019702024292200804, -0.016663476824760437, -0.007557102013379335, 0.018578123301267624, 0.08672497421503067, 0.0443510040640831, 0.008974369615316391, 0.014497405849397182, -0.013089628890156746, -0.005364998243749142, -0.04880167916417122, 0.006005574949085712, -0.06134204939007759, 0.021716656163334846, -0.017937779426574707, 0.06932605057954788, 0.08119840919971466, -0.008945301175117493, 0.0011213510297238827, 0.011832276359200478, 0.03544393181800842, 0.03644046187400818, 0.0034600181970745325, 0.043905701488256454, 0.005977553781121969, -0.0018343928968533874, 0.03770804405212402, 0.016082804650068283, -0.04696812108159065, 0.004741545766592026, 0.024182798340916634, -0.0027711386792361736, 0.021834082901477814, -0.014695582911372185, 0.00923694483935833, -0.01573818363249302, 0.015189786441624165, 0.02985779009759426, -0.030684001743793488, 0.03417656198143959, -0.08344041556119919, 0.007637872360646725, -0.006792983040213585, 0.057070884853601456, 0.0032660039141774178, 0.006985838524997234, -0.05028850957751274, 0.007167689502239227, -0.022513041272759438, -0.0053399838507175446, -0.05418236181139946, 0.03488244488835335, -0.029330497607588768, -0.0023532311897724867, 0.018260564655065536, 0.06608615070581436, 0.03559989109635353, -0.0494958721101284, 0.028049636632204056, -0.03517938032746315, 0.012138511054217815, 0.0022849764209240675, 0.0005646283971145749, 0.007655191235244274, 0.04069824889302254, -0.005037388764321804, 0.003953325562179089, 0.05885634198784828, -0.030187679454684258, 0.0002435537608107552, -0.02134460024535656, 0.02402411587536335, -0.005639383569359779, -0.005570123437792063, -0.006588588934391737, -0.006093272939324379, -0.013402504846453667, 0.031159782782197, 0.04174582660198212, 0.020620254799723625, 0.003605441888794303, -0.04592396318912506, 0.035157281905412674, 0.01706787385046482, 0.008107493631541729, -0.05920957773923874, -0.039932530373334885, -0.036162085831165314, -0.04362744837999344, 0.05704829841852188, 0.007191664073616266, 0.002842672634869814, 0.0044931210577487946, 0.0069107962772250175, -0.025631172582507133, 0.01655607856810093, 0.044927388429641724, -0.003882642602548003, 0.012020397931337357, -0.012670670635998249, -0.017914053052663803, -0.0015615714946761727, 0.053331948816776276, 0.02054349146783352, -0.0887640193104744, -0.0283968485891819, -0.0016404400812461972, -0.016161585226655006, 0.016923479735851288, 0.04103824868798256, -0.06683311611413956, 0.02243083529174328, -0.022124994546175003, 0.0026099123060703278, -0.0972418487071991, 0.055184029042720795, -0.015517587773501873, -0.021806376054883003, 0.029841065406799316, 0.01816142164170742, 0.053506094962358475, 0.011264401488006115, -0.026023944839835167, 0.06629710644483566, 0.011116839945316315, 0.029597390443086624, 0.011795621365308762, 0.06244824826717377, -0.012421825900673866, -0.062670037150383, -0.04322414845228195, 0.040394339710474014, -0.007016354240477085, -0.00546320341527462, 0.02446453832089901, -0.03583715483546257, -0.020375845953822136, 0.041958775371313095, 0.04823596030473709, 0.019354254007339478, 0.012727725319564342, 0.004405939485877752, 0.04446661099791527, 0.02614276111125946, 0.0451706238090992, 0.011743377894163132, -0.0006156230811029673, -0.03997129946947098, -0.05573105067014694, 0.01570875756442547, 0.022307565435767174, 0.027393361553549767, 0.09054383635520935, -0.04112013056874275, -0.022078365087509155, 0.08096715807914734, 0.008536160923540592, -0.003692331025376916, -0.003892509499564767, 0.011326716281473637, 0.04898658022284508, 0.008761757053434849, 0.004244756419211626, 0.04215290769934654, 0.01302428636699915, -0.013124333694577217, 0.03287161514163017, 0.0400460809469223, -0.01901744306087494, -0.0072250510565936565, -0.05123363435268402, -0.05954189971089363, 0.07348068058490753, -0.04838073253631592, -0.02133304253220558, -0.021260449662804604, 0.07792628556489944, 0.019425801932811737, 0.060687337070703506, 0.00908194575458765, -0.06206619367003441, 0.029406609013676643, -0.025193899869918823, 0.008148370310664177, 0.05222102999687195, -0.02199484035372734, 0.07461968809366226, 0.02752864733338356, 0.0296365674585104, 0.03384773060679436, -0.058401305228471756, -0.06784971803426743, -0.03267194703221321, -0.009509684517979622, 0.040346451103687286, -0.04019040986895561, -0.005448557902127504, 0.06710439175367355, 0.011507346294820309, 0.006957730278372765, 0.019863151013851166, 0.027653595432639122, 0.019139066338539124, 0.01210565771907568, -0.039466872811317444, 0.028072115033864975, 0.025775175541639328, -0.005627081263810396, -0.01166193000972271, 0.011757692322134972, -0.05448263883590698, -0.019759651273489, 0.03775670751929283, -0.03279919549822807, 0.07703917473554611, 0.03193986788392067, 0.02430904470384121, -0.03074815310537815, 0.03508849814534187, -0.03842533007264137, 0.021648772060871124, 0.0017460050294175744, 0.002898850478231907, -0.025499416515231133, -0.015383689664304256, 0.1064598485827446, 0.07848349213600159, -0.032437752932310104, -0.036141782999038696, 0.04680127650499344, -0.00015336617070715874, -0.028764866292476654, 0.037959109991788864, -0.05075477063655853, 0.006297463085502386, -0.016445782035589218, -0.029520897194743156, -0.017785977572202682, 0.024111157283186913, -0.017730146646499634, 0.0057420795783400536, 0.04883228987455368, -0.00712038017809391, 0.04191286116838455, 0.026698855683207512, -0.03945741429924965, -0.0361129492521286, -0.02116524614393711, -0.073293037712574, -0.008668588474392891, 0.007373189553618431, 0.000680654717143625, 0.03940564766526222, -0.025742819532752037, -0.039676882326602936, -0.008146870881319046, -0.08592168986797333, -0.01562438439577818, 0.052571605890989304, 0.03190678358078003, -0.0006382959545589983, 0.028744351118803024, -0.029262296855449677, -0.03408987075090408, -0.032379668205976486, -0.019792865961790085, -0.025933239609003067, -0.014878313057124615, 0.011321613565087318, -0.0026183149311691523, 0.013601954095065594, 0.003055936424061656, -0.010811327956616879, 0.009539728984236717, 0.029216343536973, -0.006697305478155613, 0.031845953315496445, 0.008715006522834301, -0.010097640566527843, -0.04477764293551445, -0.00856851041316986, 0.03603597730398178, -0.049949534237384796, -0.04234705865383148, 0.02647058665752411, -0.07472126185894012, 0.02622116729617119, -0.024869345128536224, -0.02205740660429001, 0.022000141441822052, 0.004172820132225752, -0.0008416029158979654, 0.010233110748231411, -0.004004816059023142, 0.0707576721906662, 0.0024796328507363796, -0.005513596348464489, 0.046094201505184174, -0.0024844466242939234, 0.025682762265205383, -0.003831807291135192, -0.00005841874371981248, 0.0290046576410532, -0.0012789053143933415, -0.00524666253477335, -0.015528230927884579, -0.01373695395886898, -0.019791800528764725, -0.2632008194923401, 0.05204310640692711, -0.02068890631198883, -0.06158779188990593, -0.0006835881504230201, -0.03365545719861984, 0.032568857073783875, -0.0108800008893013, -0.03299132362008095, 0.03474969416856766, 0.00048770359717309475, -0.04873911291360855, -0.011149918660521507, 0.04888332262635231, -0.0006229872233234346, 0.011282335966825485, -0.011269969865679741, -0.03966100513935089, -0.008283901959657669, 0.048335883766412735, 0.004781636409461498, -0.047763701528310776, -0.001229774672538042, 0.04996547847986221, 0.03449913114309311, 0.07022958248853683, -0.08686467260122299, 0.004547684919089079, -0.051290322095155716, -0.02951878495514393, 0.026378819718956947, -0.02618069387972355, -0.05393192917108536, -0.014236103743314743, -0.014179087243974209, 0.007724174298346043, 0.018609650433063507, 0.027072403579950333, -0.026070186868309975, 0.0620281882584095, -0.027377033606171608, -0.02515445277094841, 0.004399802070111036, 0.0627768263220787, 0.07578144967556, -0.016618264839053154, -0.08036384731531143, 0.020272783935070038, -0.031693652272224426, 0.04668306186795235, -0.05513046309351921, -0.003315055975690484, -0.03792587295174599, 0.052287787199020386, -0.049839168787002563, 0.0057103605940938, -0.02749142237007618, 0.00339227425865829, -0.031213294714689255, -0.03978922218084335, -0.010548465885221958, -0.04319485276937485, -0.008253226056694984, -0.05587498098611832, -0.016176410019397736, -0.05714578554034233, -0.07113120704889297, -0.008843970485031605, 0.0748903900384903, 0.03098495863378048, -0.07122819125652313, -0.015434996224939823, 0.019590962678194046, -0.1206643134355545, -0.013141747564077377, -0.034867025911808014, 0.00223372271284461, -0.005328354891389608, -0.04066864401102066, 0.04603283852338791, -0.04203472658991814, -0.06967541575431824, 0.049191780388355255, 0.04597717896103859, 0.0002805971016641706, -0.05452406778931618, -0.005508461035788059, 0.02142336033284664, -0.0017431828891858459, -0.01742379553616047, 0.05877746641635895, -0.017042994499206543, 0.021909955888986588, -0.0076673137955367565, -0.024463927373290062, 0.05905803665518761, 0.028074538335204124, -0.010875946842133999, -0.004651010036468506, 0.05041723698377609, 0.023915674537420273, -0.07756564766168594, -0.0193436611443758, -0.05507461726665497, -0.024308638647198677, -0.012401268817484379, -0.031782664358615875, 0.0248704981058836, 0.014476741664111614, -0.0025322139263153076, 0.0017908115405589342, -0.02126973308622837, 0.000263685651589185, -0.04966716468334198, -0.004987162072211504, -0.011647362262010574, 0.01698421873152256, -0.0042191436514258385, -0.013602535240352154, -0.03184538707137108, -0.048173777759075165, 0.02281036600470543, 0.006773609668016434, -0.028036069124937057, -0.059101417660713196, -0.019186491146683693, -0.031869612634181976, -0.04238845780491829, -0.005624315235763788, -0.02714664302766323, 0.011274533346295357, 0.039129700511693954, 0.03475772961974144, -0.03155975788831711, 0.008346578106284142, 0.007370375096797943, -0.03609085455536842, -0.020163798704743385, 0.015996651723980904, 0.022653035819530487, -0.010096638463437557, -0.027142111212015152, 0.0006301412358880043, 0.027788802981376648, -0.004058258607983589, -0.01863149181008339, 0.021209118887782097, 0.003287577535957098, 0.008208731189370155, 0.01681739091873169, -0.007833020761609077, -0.01882133074104786, 0.017307382076978683, -0.020906897261738777, -0.07301011681556702, -0.027253801003098488, 0.03838328272104263, -0.017590058967471123, -0.01689499244093895, -0.046634599566459656, 0.018656089901924133, -0.030838262289762497, -0.02462860941886902, -0.004126512445509434, -0.00035886382102034986, 0.03478462994098663, 0.039436038583517075, 0.03408120572566986, 0.019190361723303795, 0.03241303563117981, -0.005763486959040165, -0.03271268680691719, -0.027981432154774666, -0.0002502258575987071, -0.01676265336573124, 0.01859632134437561, 0.02642817050218582, -0.011819413863122463, -0.028861960396170616, -0.01958637125790119, 0.00363754341378808, 0.014840830117464066, 0.032154832035303116, 0.031181080266833305, 0.025692179799079895, 0.06286296248435974, -0.020577991381287575, -0.006144264247268438, 0.014048558659851551, -0.024112893268465996, -0.028237322345376015, -0.039878010749816895, -0.004601310007274151, 0.017417818307876587, -0.02812890149652958, -0.06826090067625046, 0.0057254391722381115, 0.030243955552577972, 0.00953228771686554, 0.006380622275173664, -0.03225059062242508, -0.0284800436347723, -0.033854175359010696, 0.027139151468873024, 0.09676704555749893, -0.05054261535406113, 0.030677136033773422, -0.030100105330348015, -0.013722186908125877, 0.01630680076777935, -0.0034086157102137804, -0.07788091897964478, -0.036008160561323166, 0.009962904267013073, 0.02382475882768631, -0.02818368747830391, -0.014470093883574009, -0.016880547627806664, 0.010596356354653835, -0.004480799660086632, 0.0274436604231596, -0.0044140685349702835, 0.011946382001042366, -0.011001849547028542, -0.022058771923184395, -0.005424751900136471, 0.007847701199352741, 0.017261141911149025, 0.021132731810212135, -0.02340894192457199, -0.026439014822244644, -0.012472475878894329, 0.035531338304281235, 0.006438764743506908, -0.006498665548861027, -0.011601046659052372, -0.028698425740003586, -0.007689995691180229, -0.006360059138387442, 0.04903782531619072, 0.01327662356197834, -0.015079294331371784, 0.0019884700886905193, -0.016466159373521805, 0.009002315811812878, -0.008478747680783272, 0.018789833411574364, -0.0359354130923748, 0.0673208236694336, 0.057822033762931824, 0.018801730126142502, -0.006692537572234869, -0.01746530272066593, -0.0426260381937027, 0.0845903754234314, -0.03276018798351288, -0.015080833807587624, -0.015465009957551956, -0.0550178624689579, 0.005458860192447901, 0.02520550601184368, 0.017134398221969604, -0.022032491862773895, 0.047769200056791306, 0.022965582087635994, 0.005625560879707336, 0.01808299869298935, 0.012658381834626198, 0.040247973054647446, -0.04834819585084915, -0.02331704832613468, -0.10597828030586243, 0.006022864952683449, 0.05041089281439781, 0.0010970052098855376, -0.021552128717303276, -0.020284738391637802, -0.024104582145810127, 0.002010887488722801, -0.07412831485271454, -0.05273868516087532, -0.004368409980088472, 0.011305665597319603, -0.0020944420248270035, 0.021095583215355873, -0.015632467344403267, 0.045120324939489365, 0.019838562235236168, -0.04791843518614769, -0.040241789072752, -0.02432592585682869, 0.061653316020965576, 0.014567526988685131, 0.008029713295400143, -0.016618456691503525, -0.004332762211561203, 0.04376959055662155, 0.05681554228067398, 0.07564930617809296, 0.0322808176279068, -0.0459727942943573, 0.048406023532152176, 0.039351679384708405, 0.006821631453931332, 0.005016133654862642, 0.0048909615725278854, 0.004394875839352608, -0.07046279311180115, 0.00245493627153337, 0.04339846596121788, 0.00539244944229722, -0.05521182343363762, 0.053718358278274536, 0.010092882439494133, -0.031949300318956375, -0.057151734828948975, -0.03910194709897041, -0.03977252170443535, -0.012546801008284092, -0.010072345845401287, 0.0049423580057919025, -0.036795809864997864, 0.08421661704778671, -0.0004470882413443178, -0.00972149521112442, 0.040772899985313416, -0.004223730880767107, -0.004650298971682787, 0.037156205624341965, 0.0737980306148529, 0.08548092842102051, 0.011318277567625046, 0.00908886082470417, 0.06618963927030563, -0.021824780851602554, -0.048041023313999176, 0.022151732817292213, -0.03679550439119339, -0.01969907619059086, -0.041391707956790924, 0.001565479440614581, 0.07612084597349167, -0.0017652518581598997, 0.05758638679981232, -0.037845950573682785, 0.012511818669736385, 0.004827259574085474, -0.012939617969095707, 0.01712142676115036, 0.04440305754542351, -0.007783067412674427, 0.04236828163266182, 0.0027837888337671757, -0.017354751005768776, 0.024841725826263428, 0.0007099558133631945, -0.038099318742752075, 0.02298153005540371, -0.01675049588084221, 0.0022327040787786245, 0.028369201347231865, 0.05796585977077484, 0.054535411298274994, -0.025657784193754196, -0.020342964679002762, 0.030592232942581177, 0.032655470073223114, -0.016038138419389725, 0.03146464005112648, 0.013740966096520424, -0.018296346068382263, 0.00596666382625699, -0.03419836610555649, 0.009338747709989548, -0.009570201858878136, 0.0003263489343225956, -0.020677383989095688, -0.005195824429392815, 0.0027683840598911047, 0.043056219816207886, 0.03178609907627106, -0.027529722079634666, -0.06291186809539795, -0.0503992885351181, -0.03569385036826134, -0.1015113815665245, -0.013477248139679432, 0.03283778578042984, -0.04481792822480202, -0.041422586888074875, -0.03776052966713905, -0.017541369423270226, 0.021509096026420593, 0.01686338149011135, -0.01833527535200119, -0.05550728738307953, 0.021414469927549362, -0.008085289038717747, 0.014665917493402958, 0.035314660519361496, 0.04317240044474602, -0.004088999703526497, -0.020415054634213448, 0.02931218594312668, 0.020211083814501762, 0.044219113886356354, -0.009074580855667591, 0.019143786281347275, -0.053618647158145905, 0.025271626189351082, 0.012557988986372948, -0.028688233345746994, -0.06736495345830917, 0.008567758835852146, 0.010615917854011059, 0.016216952353715897, 0.04654981940984726, -0.0014262081822380424, -0.00856819562613964, -0.03911501541733742, -0.023048391565680504, 0.009732245467603207, 0.035590264946222305, 0.02126847766339779, -0.02937120757997036, 0.06505269557237625, 0.054707854986190796, 0.0023697472643107176, -0.009433376602828503, 0.009077874943614006, -0.03570163622498512, 0.012315287254750729, -0.06101595237851143, -0.055431876331567764, -0.07792910933494568, -0.05199308693408966, -0.006682481151074171, 0.0037329525221139193, -0.02065945416688919, -0.028493644669651985, 0.002465704921633005, 0.04097200930118561, -0.01823016069829464, 0.034435685724020004, -0.05578938126564026, 0.02468731254339218, -0.05727938562631607, -0.0325937494635582, 0.011771176941692829, 0.04682086035609245, 0.004933997988700867, 0.017916008830070496, -0.00454515079036355, -0.049703869968652725, 0.0228374432772398, -0.01883496157824993, 0.03726829215884209, 0.0558634027838707, -0.04378620907664299, 0.0225050151348114 ]
[ -0.06447455286979675, -0.02386351116001606, -0.023204727098345757, -0.009756697341799736, 0.07490057498216629, -0.022870628163218498, 0.018292898312211037, 0.016742784529924393, 0.026245422661304474, 0.0022448746021836996, 0.03851741552352905, -0.10654818266630173, -0.00282961199991405, -0.004378094803541899, 0.02766765095293522, -0.009099110029637814, -0.016299191862344742, -0.04040711373090744, -0.029109790921211243, 0.0538736917078495, -0.013891875743865967, -0.055215660482645035, -0.04154445230960846, -0.06031347066164017, 0.04471306875348091, 0.0038866016548126936, 0.04358592629432678, -0.04218455031514168, -0.013501719571650028, -0.19367535412311554, 0.0010646040318533778, -0.02049184776842594, 0.02500297874212265, -0.016992516815662384, 0.049871984869241714, 0.008851753547787666, 0.01587165892124176, -0.005796907469630241, 0.031935740262269974, 0.0496482215821743, -0.00626725098118186, -0.014766416512429714, -0.03445499390363693, -0.029678836464881897, 0.027254965156316757, -0.008595646359026432, -0.011729249730706215, -0.04102316498756409, 0.0000339446596626658, 0.013460327871143818, -0.06576091051101685, 0.02687118947505951, -0.02195526659488678, -0.0018966939533129334, -0.009066928178071976, 0.002367798937484622, 0.053333576768636703, 0.050034284591674805, 0.028022076934576035, 0.02582116797566414, 0.03042794018983841, -0.01960693672299385, -0.1474996656179428, 0.06219800189137459, 0.046984899789094925, 0.03756481409072876, -0.013703941367566586, -0.06699520349502563, -0.02959970012307167, 0.0783914104104042, 0.03891998156905174, -0.015525050461292267, -0.01881580986082554, 0.0773911103606224, 0.018767928704619408, -0.03445015475153923, -0.010645476169884205, 0.012317274697124958, 0.012436527758836746, -0.017475632950663567, -0.04919304698705673, 0.011277846992015839, -0.029701653867959976, -0.026950102299451828, -0.017909212037920952, 0.013271307572722435, -0.012342510744929314, 0.02753857709467411, -0.0028528221882879734, 0.017558325082063675, 0.04277719929814339, 0.0061215972527861595, 0.012551586143672466, 0.037273019552230835, -0.11998438090085983, -0.013210703618824482, 0.004685838706791401, 0.011195847764611244, -0.006833504885435104, 0.36940091848373413, -0.02717483974993229, 0.011478968895971775, 0.01759556494653225, 0.03532017022371292, 0.0026882956735789776, -0.005231731571257114, -0.016365570947527885, -0.043568205088377, 0.0192659143358469, -0.02629673108458519, 0.013921582140028477, -0.034220412373542786, 0.08652950078248978, -0.06912877410650253, -0.00913314614444971, -0.02769346535205841, 0.03023666702210903, -0.024621518328785896, 0.00957999937236309, 0.040846288204193115, -0.015400410629808903, -0.015501660294830799, 0.04888073727488518, -0.0028039119206368923, 0.024052327498793602, 0.00022972183069214225, -0.0013865395449101925, 0.08865857869386673, 0.02265755459666252, 0.007689708843827248, 0.030739616602659225, -0.055680789053440094, -0.09065656363964081, 0.01233185175806284, 0.003342618700116873, -0.0025016225408762693, 0.03181834518909454, 0.01776503026485443, 0.015276707708835602, 0.007285504136234522, -0.038382112979888916, -0.06787147372961044, 0.06711529195308685, 0.017210859805345535, -0.05027158930897713, 0.10057655721902847, -0.02553977631032467, -0.02646998129785061, -0.022340556606650352, -0.048685770481824875, -0.006622989196330309, 0.012448578141629696, -0.006770689971745014, -0.07186490297317505, 0.005854800809174776, 0.0381271131336689, 0.09180402755737305, -0.0018478648271411657, -0.10025189816951752, -0.03635420277714729, -0.018342815339565277, -0.04610183835029602, -0.06519777327775955, 0.06593044102191925, 0.023253481835126877, -0.09050087630748749, -0.05109862983226776, 0.004134160000830889, -0.02684408240020275, -0.05845384672284126, 0.027276651933789253, 0.019297374412417412, -0.06000678241252899, -0.0235091932117939, 0.05720290169119835, -0.017244277521967888, -0.012367954477667809, 0.023271584883332253, 0.04846305400133133, 0.022529007866978645, -0.04271034151315689, 0.03193084895610809, -0.020015258342027664, 0.01710708811879158, -0.044771019369363785, -0.08090713620185852, -0.05537017062306404, 0.006842007394880056, -0.015348297543823719, -0.03912810981273651, -0.023704055696725845, -0.06853927671909332, -0.06246528401970863, 0.08056281507015228, -0.022837713360786438, 0.005651048384606838, 0.03975154832005501, -0.0077959089539945126, 0.001877208473160863, -0.021265288814902306, 0.0001143016415880993, -0.005344517529010773, -0.0007255052914842963, 0.036956947296857834, -0.03953820839524269, 0.041912928223609924, 0.04799326881766319, -0.03714502975344658, 0.08600420504808426, 0.0454481802880764, 0.00852200761437416, 0.012470636516809464, -0.021848687902092934, -0.0008656714344397187, 0.008963150903582573, -0.015025956556200981, -0.011061906814575195, -0.007454670500010252, 0.03340751677751541, 0.03771878033876419, -0.002671591704711318, -0.04502522945404053, -0.029351811856031418, -0.3783407211303711, -0.04604782164096832, -0.026346180588006973, -0.023145893588662148, 0.005898639094084501, -0.06682925671339035, -0.008244742639362812, -0.0036823791451752186, -0.009706058539450169, 0.036660175770521164, 0.08058086037635803, -0.005652386229485273, 0.004189594648778439, -0.07901791483163834, -0.029082121327519417, 0.022907866165041924, -0.045781537890434265, -0.03256586194038391, -0.03405070677399635, 0.027471384033560753, 0.01589876227080822, -0.020912377163767815, 0.005121916998177767, -0.05323883146047592, 0.018911002203822136, -0.016010262072086334, 0.13548174500465393, -0.002325358334928751, 0.10697633773088455, -0.05851170793175697, 0.04245860129594803, -0.02916003204882145, 0.018662355840206146, -0.001660470268689096, 0.028699560090899467, -0.055558688938617706, -0.05048486217856407, 0.031038740649819374, -0.020802106708288193, 0.00016938388580456376, -0.06820883601903915, 0.014117502607405186, -0.01956373080611229, -0.016763174906373024, -0.033250633627176285, 0.01829458773136139, 0.019054671749472618, -0.00814665574580431, -0.032688189297914505, 0.09026829153299332, 0.021477386355400085, 0.015464180149137974, 0.022074617445468903, 0.043905843049287796, 0.05029268562793732, -0.00044266710756346583, -0.07239668816328049, 0.009569383226335049, -0.02046586014330387, 0.0013363354373723269, 0.05708025395870209, 0.02996537648141384, 0.05056548863649368, -0.06605888158082962, -0.01376992929726839, 0.007215993944555521, 0.007020936347544193, -0.006144159939140081, 0.025245459750294685, -0.017832711338996887, -0.0347871370613575, 0.1285264790058136, -0.001956084743142128, -0.004938906989991665, -0.003836049698293209, 0.05465187132358551, -0.0022078470792621374, 0.03275368735194206, -0.0061928522773087025, 0.014569969847798347, 0.040457356721162796, -0.019916249439120293, 0.043696433305740356, -0.011457284912467003, 0.04142472892999649, 0.06750968098640442, 0.027392543852329254, -0.015764104202389717, 0.08056803047657013, 0.011582674458622932, -0.0347558818757534, -0.02954130247235298, -0.008130662143230438, -0.04916016384959221, 0.07250074297189713, 0.005229961592704058, -0.25244271755218506, 0.010315564461052418, 0.025541512295603752, 0.04233759641647339, 0.018383856862783432, -0.017673322930932045, 0.004717811942100525, -0.045080505311489105, 0.004488601814955473, 0.0071841031312942505, -0.0073205092921853065, 0.02587743289768696, 0.03345981612801552, -0.04225514084100723, 0.006842376198619604, -0.044374771416187286, 0.048562563955783844, 0.02378450147807598, 0.017165180295705795, -0.003513217205181718, 0.028165465220808983, -0.02963719516992569, 0.16647446155548096, 0.04181214049458504, -0.0055545237846672535, -0.004928979557007551, 0.0054793511517345905, 0.004246807191520929, 0.07058750838041306, 0.026500096544623375, 0.009780018590390682, -0.003929271828383207, 0.05692453682422638, 0.027775447815656662, 0.04948431998491287, -0.00003715666025527753, -0.03787483274936676, 0.07015641778707504, 0.015857689082622528, -0.03599391505122185, -0.017602412030100822, 0.03850676491856575, -0.058518968522548676, 0.028215060010552406, 0.07545609772205353, -0.021380092948675156, 0.013179543428122997, -0.04036496579647064, -0.006480914540588856, 0.002696491777896881, -0.008259570226073265, 0.021508777514100075, 0.0016597826033830643, -0.005399143323302269, 0.02968357689678669, 0.074558787047863, 0.022992156445980072, -0.025699328631162643, 0.039555326104164124, -0.018194766715168953, -0.0007058569462969899, -0.04936475679278374, 0.08557502180337906, -0.01564008556306362, 0.035361289978027344 ]
[ 0.006050615571439266, 0.04719657078385353, -0.037220411002635956, 0.04321300983428955, -0.0017733403947204351, 0.0009601006167940795, -0.028862008824944496, 0.015727955847978592, -0.010274325497448444, 0.0015810290351510048, 0.03010026179254055, -0.0240512453019619, 0.05073397606611252, -0.04395328462123871, -0.026295585557818413, 0.0077448622323572636, -0.022031690925359726, -0.014499670825898647, 0.030395399779081345, -0.01602240651845932, -0.05121880769729614, 0.03881809115409851, 0.02920921891927719, -0.027026403695344925, -0.01283295452594757, 0.0663037896156311, -0.039218269288539886, 0.005747558083385229, 0.018143340945243835, -0.12984442710876465, -0.07543407380580902, -0.009655766189098358, -0.01731986738741398, 0.006394559051841497, 0.015475553460419178, 0.0067404997535049915, -0.03167922794818878, 0.04974588006734848, 0.007186240516602993, 0.039406660944223404, -0.024717703461647034, -0.03488950803875923, -0.006428309716284275, 0.016458414494991302, -0.023198751732707024, -0.00014972485951147974, -0.011734254658222198, -0.062452737241983414, 0.024541648104786873, -0.055815067142248154, -0.02005869336426258, 0.03688380494713783, 0.00914143305271864, 0.0010895250597968698, 0.021767817437648773, -0.015375562012195587, -0.015580297447741032, 0.010492175817489624, 0.009986171498894691, 0.023104475811123848, -0.005284343380481005, -0.0005694437422789633, -0.019755547866225243, -0.030280539765954018, -0.0004594562342390418, -0.01480526477098465, -0.05906044691801071, 0.009256724268198013, -0.022194290533661842, -0.010861975140869617, 0.019081810489296913, -0.02091912366449833, -0.0391010120511055, -0.00814193207770586, -0.03308023139834404, 0.02424258552491665, 0.029522450640797615, -0.00048550681094639003, 0.0225161612033844, 0.0010673104552552104, -0.062413740903139114, 0.004845619201660156, -0.024757763370871544, -0.021251123398542404, 0.007292549591511488, -0.04197375848889351, 0.010211209766566753, 0.02537071332335472, 0.022875919938087463, 0.016672048717737198, -0.011334188282489777, -0.01685248129069805, -0.04275940731167793, 0.016181088984012604, -0.09416662901639938, 0.01844368875026703, 0.0038073223549872637, -0.01669715717434883, -0.015886615961790085, 0.8046413064002991, 0.02850109525024891, 0.0013975045876577497, -0.022376619279384613, 0.0516219362616539, -0.02418619766831398, 0.03673621639609337, 0.04192409664392471, 0.02993224561214447, 0.007086810190230608, -0.06552446633577347, 0.0376647487282753, -0.008712020702660084, 0.00597968976944685, 0.03283233940601349, 0.006075444631278515, 0.0286555178463459, -0.0034292847849428654, -0.00172415969427675, 0.029370766133069992, 0.04041198268532753, 0.023489654064178467, -0.018759889528155327, 0.0034881867468357086, 0.03204670175909996, 0.026792457327246666, -0.16151930391788483, 0.029942745342850685, -7.250015692330004e-33, -0.00026072069886140525, 0.01823774166405201, -0.0005425718845799565, -0.036827296018600464, 0.017891092225909233, -0.03026697039604187, -0.0025229109451174736, 0.025776149705052376, 0.04574110731482506, -0.0003102885093539953, 0.0036396256182342768, 0.02746262028813362, -0.021238891407847404, -0.022044632583856583, 0.010818704962730408, -0.013020231388509274, 0.007844274863600731, -0.01315812487155199, 0.010555535554885864, 0.020893748849630356, 0.0937148705124855, 0.040235988795757294, 0.007208988536149263, 0.0038045726250857115, 0.05561097711324692, -0.017041444778442383, -0.009705846197903156, -0.012620363384485245, -0.008249672129750252, -0.025235280394554138, -0.05351727083325386, 0.0022225184366106987, -0.010326222516596317, -0.03682549670338631, -0.051075443625450134, -0.053884413093328476, 0.008480043150484562, 0.0004427350650075823, -0.028888041153550148, -0.012739264406263828, -0.03558807820081711, 0.019109582528471947, -0.01453589741140604, -0.04103624075651169, -0.007429041434079409, 0.002134617418050766, 0.0665426254272461, 0.04384475573897362, -0.02826739102602005, 0.007103656884282827, 0.011879466474056244, -0.012967313639819622, 0.014859913848340511, 0.03409292921423912, -0.001979390624910593, 0.0681925043463707, 0.005671993363648653, -0.04078657180070877, -0.0002725158119574189, 0.01388840563595295, 0.011621952056884766, 0.004450846929103136, -0.007206717040389776, 0.006759352050721645, 0.005232845898717642, 0.010116765275597572, 0.022627271711826324, -0.030284458771348, -0.006817977875471115, -0.031121615320444107, -0.059895846992731094, -0.03706812113523483, -0.014390798285603523, -0.036653779447078705, 0.0159358661621809, -0.016687970608472824, -0.010994656942784786, -0.0027764588594436646, -0.013491733931005001, -0.0003823817824013531, 0.006752866320312023, 0.0029873393941670656, -0.017790989950299263, -0.02254020981490612, 0.0023695765994489193, 0.016285544261336327, 0.040867019444704056, 0.005380070768296719, -0.014305170625448227, -0.031185783445835114, 0.00737403379753232, 0.041202131658792496, -0.010452070273458958, -0.013569139875471592, 0.0085527952760458, 7.287331025812888e-33, -0.002445307793095708, 0.02747204340994358, 0.005827911663800478, -0.00331502640619874, 0.01918458566069603, -0.0059273201040923595, 0.052408453077077866, -0.006755548529326916, -0.01873762160539627, 0.05491175502538681, -0.020203907042741776, -0.015660686418414116, -0.025305137038230896, 0.002636021003127098, 0.03306405991315842, 0.03705204278230667, -0.015695029869675636, 0.018562588840723038, 0.01527901366353035, 0.02410544455051422, -0.004874472040683031, 0.047810085117816925, -0.012084842659533024, 0.009194180369377136, 0.026209047064185143, 0.03552914783358574, -0.03646024689078331, 0.012276721186935902, -0.007628479972481728, 0.014396648854017258, 0.0138028459623456, -0.040195025503635406, -0.003955196123570204, -0.03903336077928543, -0.013641024939715862, 0.04770861566066742, 0.033970680087804794, 0.014594340696930885, -0.029670722782611847, 0.045055340975522995, 0.0643007680773735, -0.003243848914280534, -0.010694584809243679, 0.05684329569339752, -0.03351705148816109, 0.006136730313301086, 0.019400540739297867, -0.012177559547126293, -0.010148142464458942, 0.014292444102466106, 0.011719774454832077, 0.02186109498143196, -0.033455535769462585, 0.04025239869952202, -0.021695202216506004, -0.03946536406874657, 0.017600592225790024, 0.023257030174136162, -0.048608504235744476, 0.018444502726197243, -0.003891100874170661, 0.011287974193692207, -0.008959120139479637, 0.012312337756156921, -0.013442697934806347, -0.007654097396880388, -0.042051807045936584, 0.005347380880266428, -0.00889449194073677, 0.006401094142347574, -0.049347374588251114, 0.00022178895596880466, 0.005316532216966152, 0.0025945939123630524, -0.009960073977708817, 0.00013767692144028842, -0.0176719781011343, -0.004970637150108814, 0.005075457505881786, 0.006400610785931349, 0.054355453699827194, -0.02138681709766388, 0.008607522584497929, 0.00018790186732076108, 0.0036474312655627728, 0.024852745234966278, -0.00342649151571095, -0.0005696339067071676, 0.03425464779138565, -0.017675071954727173, -0.007087200880050659, -0.036185070872306824, 0.0009609998669475317, 0.013296786695718765, -0.09335284680128098, -1.2578343699942707e-8, -0.003594175912439823, 0.03374391421675682, -0.0015892250230535865, 0.006688789464533329, 0.03436365723609924, -0.018643589690327644, -0.014634829945862293, -0.016497967764735222, -0.01832081563770771, 0.023976821452379227, 0.011512274853885174, -0.0013702070573344827, -0.004743567667901516, 0.00781706627458334, 0.001289538573473692, -0.0043047512881457806, -0.0036242962814867496, 0.012119775637984276, 0.03623190149664879, 0.011063599027693272, 0.050528235733509064, 0.043088193982839584, -0.06657080352306366, 0.02167326584458351, 0.04577925056219101, -0.004468395374715328, -0.0002711422275751829, -0.10917822271585464, 0.0371902659535408, 0.03287700563669205, 0.01743694581091404, -0.02226169779896736, 0.017278894782066345, 0.012426738627254963, -0.01765749417245388, -0.0063859145157039165, 0.06972727179527283, -0.003256151219829917, -0.023961849510669708, 0.003838276956230402, -0.07027813047170639, -0.01608670875430107, -0.04950869083404541, -0.044566743075847626, -0.010487730614840984, 0.012263871729373932, -0.05223044380545616, -0.024401789531111717, 0.03941715508699417, -0.042514827102422714, 0.008900151588022709, -0.030832942575216293, 0.0060430122539401054, 0.037880945950746536, 0.03657209128141403, 0.013137689791619778, 0.014619129709899426, 0.00447876425459981, -0.015748050063848495, -0.034651018679142, 0.016665445640683174, 0.03256421163678169, -0.020945832133293152, -0.03626372292637825 ]
pandas-find-rows-where-columnfield-is-null
https://markhneedham.com/blog/2017/07/05/pandas-find-rows-where-columnfield-is-null
false
2017-07-05 15:42:08
Pandas/scikit-learn: get_dummies test/train sets - ValueError: shapes not aligned
[ "python", "pandas" ]
[ "Python" ]
I've been using panda's +++<cite>+++https://pandas.pydata.org/pandas-docs/stable/generated/pandas.get_dummies.html[get_dummies]+++</cite>+++ function to generate dummy columns for categorical variables to use with scikit-learn, but noticed that it sometimes doesn't work as I expect. == Prerequisites [source,python] ---- import pandas as pd import numpy as np from sklearn import linear_model ---- Let's say we have the following training and test sets: == Training set [source,python] ---- train = pd.DataFrame({"letter":["A", "B", "C", "D"], "value": [1, 2, 3, 4]}) X_train = train.drop(["value"], axis=1) X_train = pd.get_dummies(X_train) y_train = train["value"]~~~ <h3>Test set</h3> ~~~python test = pd.DataFrame({"letter":["D", "D", "B", "E"], "value": [4, 5, 7, 19]}) X_test = test.drop(["value"], axis=1) X_test = pd.get_dummies(X_test) y_test = test["value"] ---- Now say we want to train a linear model on our training set and then use it to predict the values in our test set: == Train the model [source,python] ---- lr = linear_model.LinearRegression() model = lr.fit(X_train, y_train) ---- == Test the model [source,python] ---- model.score(X_test, y_test) ---- [source,text] ---- ValueError: shapes (4,3) and (4,) not aligned: 3 (dim 1) != 4 (dim 0) ---- Hmmm that didn't go to plan. If we print +++<cite>+++X_train+++</cite>+++ and +++<cite>+++X_test+++</cite>+++ it might help shed some light: == Checking the train/test datasets [source,python] ---- print(X_train) ---- [source,text] ---- letter_A letter_B letter_C letter_D 0 1 0 0 0 1 0 1 0 0 2 0 0 1 0 3 0 0 0 1 ---- [source,python] ---- print(X_test) ---- [source,text] ---- letter_B letter_D letter_E 0 0 1 0 1 0 1 0 2 1 0 0 3 0 0 1 ---- They do indeed have different shapes and some different column names because the test set contained some values that weren't present in the training set. We can fix this by https://github.com/pandas-dev/pandas/issues/8918#issuecomment-145490689[making the 'letter' field categorical] before we run the +++<cite>+++get_dummies+++</cite>+++ method over the dataframe. At the moment the field is of type 'object': == Column types [source,python] ---- print(train.info) ---- [source,text] ---- <class 'pandas.core.frame.DataFrame'> RangeIndex: 4 entries, 0 to 3 Data columns (total 2 columns): letter 4 non-null object value 4 non-null int64 dtypes: int64(1), object(1) memory usage: 144.0+ bytes ---- We can fix this by converting the 'letter' field to the type 'category' and setting the list of allowed values to be the unique set of values in the train/test sets. == All allowed values [source,python] ---- all_data = pd.concat((train,test)) for column in all_data.select_dtypes(include=[np.object]).columns: print(column, all_data[column].unique()) ---- [source,text] ---- letter ['A' 'B' 'C' 'D' 'E'] ---- Now let's update the type of our 'letter' field in the train and test dataframes. == Type: 'category' [source,python] ---- all_data = pd.concat((train,test)) for column in all_data.select_dtypes(include=[np.object]).columns: train[column] = train[column].astype('category', categories = all_data[column].unique()) test[column] = test[column].astype('category', categories = all_data[column].unique()) ---- And now if we call +++<cite>+++get_dummies+++</cite>+++ on either dataframe we'll get the same set of columns: == get_dummies: Take 2 [source,python] ---- X_train = train.drop(["value"], axis=1) X_train = pd.get_dummies(X_train) print(X_train) ---- [source,text] ---- letter_A letter_B letter_C letter_D letter_E 0 1 0 0 0 0 1 0 1 0 0 0 2 0 0 1 0 0 3 0 0 0 1 0 ---- [source,python] ---- X_test = test.drop(["value"], axis=1) X_test = pd.get_dummies(X_test) print(X_train) ---- [source,text] ---- letter_A letter_B letter_C letter_D letter_E 0 0 0 0 1 0 1 0 0 0 1 0 2 0 1 0 0 0 3 0 0 0 0 1 ---- Great! Now we should be able to train our model and use it against the test set: == Train the model: Take 2 [source,python] ---- lr = linear_model.LinearRegression() model = lr.fit(X_train, y_train) ---- == Test the model: Take 2 [source,python] ---- model.score(X_test, y_test) ---- [source,text] ---- -1.0604490500863557 ---- And we're done!
How do I use panda's get_dummies function to generate matching dummy columns across training and test datasets so that scikit-learn models can be trained?
null
[ 0.026321284472942352, 0.005304510705173016, -0.04503332078456879, 0.0587492398917675, 0.08776915818452835, 0.03007730282843113, -0.010699107311666012, 0.01425276417285204, -0.0014489381574094296, -0.0011771756689995527, -0.01034243032336235, 0.00087640032870695, -0.04231041669845581, 0.03341834619641304, -0.02774837613105774, 0.0823793113231659, 0.08065786212682724, 0.02013041079044342, 0.018202418461441994, 0.03269149735569954, 0.02364863082766533, 0.012019586749374866, -0.018129941076040268, 0.04690086469054222, 0.01835162192583084, -0.018306002020835876, 0.009836481884121895, 0.021453920751810074, -0.02930467203259468, 0.012620196677744389, 0.030882785096764565, -0.011505987495183945, 0.007845119573175907, 0.0041631837375462055, 0.020597437396645546, 0.021116191521286964, -0.016439158469438553, 0.003285149810835719, 0.013955498114228249, 0.01840829849243164, -0.06503011286258698, 0.005636475048959255, -0.01848760060966015, 0.016235722228884697, -0.06348223984241486, -0.019500117748975754, -0.053926464170217514, -0.010950243100523949, 0.0036987895146012306, -0.026917818933725357, -0.04030169919133186, 0.04036030173301697, 0.002690508496016264, -0.03592680022120476, 0.02304614894092083, 0.05774194747209549, 0.013283888809382915, -0.06446941941976547, 0.03227256238460541, -0.020097916945815086, -0.01967702992260456, 0.02749026007950306, -0.01655447855591774, 0.006570026744157076, 0.032019611448049545, -0.021118072792887688, 0.012602570466697216, 0.052509769797325134, -0.06215374544262886, -0.01741914078593254, -0.0420684814453125, 0.008860386908054352, -0.015573441982269287, -0.014972436241805553, -0.026946039870381355, -0.0315265916287899, -0.03092048689723015, 0.030306540429592133, 0.03237278759479523, 0.028887681663036346, -0.011285770684480667, -0.010447053238749504, 0.03564289212226868, -0.0005175730329938233, -0.009772118180990219, -0.01571982353925705, -0.040486544370651245, -0.04412637650966644, -0.05971365422010422, 0.050994958728551865, -0.025789108127355576, -0.04378195106983185, 0.03757517412304878, 0.01822499930858612, -0.040203776210546494, -0.011045522056519985, 0.031054960563778877, -0.0005601602606475353, 0.032913997769355774, -0.013294518925249577, -0.08769536763429642, -0.04052744805812836, 0.028058456256985664, 0.035324808210134506, -0.08851955831050873, -0.03530037775635719, 0.011661491356790066, -0.023325709626078606, -0.0010807652724906802, 0.01614448055624962, -0.05945669859647751, -0.03875277563929558, -0.043347522616386414, -0.014713572338223457, -0.09814523160457611, 0.04098363593220711, -0.008054830133914948, -0.003688663011416793, -0.024835731834173203, -0.013729017227888107, 0.037573765963315964, 0.026915451511740685, -0.05150517448782921, 0.06095610558986664, 0.005709707271307707, 0.03660844266414642, 0.02822260744869709, 0.06648516654968262, -0.005803294945508242, -0.05758732184767723, -0.018356241285800934, 0.05324707552790642, -0.005923143588006496, -0.004472741857171059, 0.018455931916832924, -0.013268918730318546, -0.023280585184693336, 0.03384316340088844, 0.047503866255283356, 0.03241938352584839, 0.028976822271943092, 0.0006846582982689142, 0.028394630178809166, 0.025893012061715126, 0.008586195297539234, 0.02978394366800785, -0.00032139962422661483, -0.048806868493556976, -0.06324367225170135, 0.026405489072203636, 0.028979355469346046, 0.039000965654850006, 0.054271988570690155, -0.02288585528731346, -0.00460837222635746, 0.0738629624247551, 0.005454671569168568, -0.0077502066269516945, -0.01169835589826107, -0.0009372159256599844, 0.033184025436639786, 0.011782304383814335, -0.007380994968116283, 0.040584467351436615, 0.017223920673131943, -0.04816127568483353, 0.014999160543084145, 0.056359924376010895, -0.04791903868317604, 0.015614474192261696, -0.05398838594555855, -0.037780243903398514, 0.047904860228300095, -0.03697185590863228, -0.004819569177925587, 0.012536694295704365, 0.05728023871779442, 0.029909737408161163, 0.03204622492194176, 0.01392399799078703, -0.08284968137741089, 0.045598842203617096, 0.012327518314123154, 0.03070135973393917, 0.06590238213539124, 0.0016389196971431375, 0.08356724679470062, 0.015968753024935722, 0.04221009463071823, 0.03490867838263512, -0.060415271669626236, -0.05473192408680916, -0.038833219558000565, -0.012279350310564041, 0.05462918058037758, -0.071281798183918, -0.01421340461820364, 0.08268580585718155, 0.01824111118912697, 0.02385062538087368, 0.04539557546377182, -0.015614445321261883, -0.025664005428552628, -0.00861435942351818, -0.02638733573257923, 0.019215844571590424, 0.018256042152643204, -0.018686771392822266, -0.008067012764513493, 0.006549861282110214, 0.01266514603048563, -0.0001900319184642285, 0.02586721070110798, -0.004852564539760351, 0.03833141550421715, 0.0455523319542408, 0.03628142550587654, -0.002380597637966275, 0.019050421193242073, -0.0422796793282032, 0.044236015528440475, -0.007381480652838945, -0.03528790548443794, -0.05189928784966469, -0.020898764953017235, 0.11431606858968735, 0.07639151066541672, -0.00031575182219967246, -0.04530636593699455, 0.002595723606646061, 0.007462168578058481, -0.042349107563495636, 0.02844276651740074, 0.020521389320492744, -0.02377077378332615, -0.0014066927833482623, -0.043481022119522095, -0.018373236060142517, 0.030910776928067207, -0.04639497399330139, -0.0038806225638836622, 0.07764999568462372, -0.030158979818224907, 0.036810681223869324, -0.006051095202565193, -0.021015314385294914, 0.00899984035640955, -0.012621214613318443, -0.10691516846418381, -0.02221256121993065, 0.040653981268405914, -0.006613223347812891, 0.06725767254829407, -0.022870631888508797, -0.021830014884471893, -0.03137565404176712, -0.06716077029705048, -0.007937845773994923, 0.0724836215376854, 0.021288219839334488, 0.012074398808181286, 0.04066510125994682, -0.00849933736026287, -0.008454525843262672, -0.021846424788236618, -0.03959982469677925, -0.0319918617606163, -0.05161212384700775, 0.027559559792280197, 0.030420392751693726, 0.004369841888546944, 0.014705612324178219, 0.018718747422099113, 0.006196269765496254, 0.005460599437355995, 0.014185373671352863, 0.03796480968594551, 0.03004913218319416, -0.04093463718891144, -0.06348499655723572, -0.013633321970701218, 0.06577469408512115, -0.020295459777116776, -0.039628420025110245, -0.010037639178335667, -0.09305538237094879, 0.00032519359956495464, -0.05694803223013878, -0.001816054806113243, 0.0041924817487597466, -0.0037579103372991085, 0.009959098882973194, -0.001230334397405386, -0.010307547636330128, 0.02653217501938343, 0.018072331324219704, 0.015041029080748558, 0.03508953005075455, 0.03426467254757881, 0.03309089317917824, -0.0009245322435162961, 0.024887658655643463, 0.055745679885149, 0.02233344130218029, -0.007459941785782576, -0.048427514731884, -0.016848217695951462, -0.021542783826589584, -0.2678186893463135, 0.016767064109444618, -0.004239493049681187, -0.023686230182647705, 0.012891518883407116, -0.07026908546686172, 0.0026284335181117058, -0.01952008157968521, -0.03245234116911888, 0.027369100600481033, -0.02132348157465458, -0.02572324499487877, -0.0333707332611084, 0.044637106359004974, 0.013271862640976906, 0.007588984444737434, 0.024371450766921043, -0.025480888783931732, 0.0007976615452207625, 0.0654856264591217, -0.007845819927752018, -0.03075787052512169, -0.037166547030210495, 0.08975549787282944, 0.006450737826526165, 0.0690365806221962, -0.07456721365451813, 0.015047202818095684, -0.08187001198530197, -0.0426957793533802, 0.010670329444110394, -0.02127748355269432, -0.015512444078922272, 0.01162717491388321, -0.022746678441762924, -0.005531737580895424, 0.03657706081867218, 0.014983576722443104, -0.0051135835237801075, 0.04207600653171539, -0.05312391743063927, -0.036056406795978546, 0.007576372008770704, 0.004099076613783836, 0.06906689703464508, 0.0291341170668602, -0.0538841113448143, -0.012993674725294113, -0.055005207657814026, 0.06712181121110916, -0.034360162913799286, 0.005277709104120731, -0.031528912484645844, 0.05259781703352928, -0.021831175312399864, 0.039163652807474136, 0.0021088351495563984, -0.005723228212445974, -0.01673041842877865, -0.016550803557038307, 0.016702847555279732, -0.02338193729519844, -0.03189609944820404, -0.059486474841833115, -0.008750981651246548, -0.05710327625274658, -0.0688403844833374, -0.01881910301744938, 0.04342120885848999, 0.054030921310186386, -0.04895879328250885, -0.018575724214315414, 0.011743619106709957, -0.09629593044519424, 0.023385372012853622, -0.03586648032069206, 0.020478177815675735, -0.011509545147418976, 0.012318514287471771, 0.0590977743268013, -0.05508545786142349, -0.055536627769470215, 0.058969154953956604, -0.006155021954327822, -0.01496458426117897, -0.013783346861600876, 0.010397559963166714, 0.028795437887310982, -0.010106000117957592, -0.02677994593977928, 0.046883340924978256, -0.022851277142763138, 0.03725530952215195, -0.003983975853770971, -0.018115811049938202, 0.06949305534362793, 0.013392960652709007, 0.02120840735733509, 0.03031875006854534, -0.0005738104810006917, 0.016506286337971687, -0.05377287045121193, -0.036956802010536194, -0.05876056104898453, -0.022100698202848434, -0.021555738523602486, -0.060073088854551315, 0.020679382607340813, 0.025746773928403854, -0.008479648269712925, -0.020595543086528778, -0.015130973421037197, 0.01076328381896019, -0.029519831761717796, -0.007954414933919907, -0.005265985149890184, 0.011347856372594833, -0.019023973494768143, 0.018948132172226906, -0.007093589287251234, -0.08085385710000992, 0.01616324484348297, -0.0012914747931063175, -0.020167212933301926, -0.05065139755606651, -0.02829638682305813, 0.008380813524127007, 0.0036037929821759462, -0.029408181086182594, -0.030249981209635735, -0.02735471911728382, 0.010132082737982273, 0.053938400000333786, -0.019978171214461327, 0.007290354929864407, 0.02151152864098549, -0.032437823712825775, 0.007980139926075935, 0.033952921628952026, 0.025974348187446594, -0.002010827884078026, -0.016864871606230736, -0.005763007793575525, 0.019613346084952354, 0.044723160564899445, 0.021355193108320236, 0.0034039607271552086, 0.025015881285071373, -0.0021286983974277973, -0.014027251861989498, 0.03144931048154831, 0.011065719649195671, 0.009469942189753056, -0.010004837065935135, -0.05415373668074608, 0.018195200711488724, 0.0373351015150547, -0.004909682087600231, 0.010752765461802483, -0.038551319390535355, -0.00019126480037812144, -0.01712181605398655, 0.0009741589310579002, -0.03691398352384567, 0.0283650029450655, 0.045300547033548355, -0.0030763307586312294, -0.013155392371118069, 0.018407830968499184, 0.0065079559572041035, 0.028034156188368797, -0.015046374872326851, -0.02841048687696457, -0.0033366847783327103, -0.014432582072913647, -0.013218309730291367, 0.02616095170378685, 0.004507701378315687, 0.024207472801208496, 0.0015535453567281365, -0.0066383411176502705, -0.014750558882951736, 0.01827101968228817, -0.012422563508152962, 0.02604442462325096, 0.0735541358590126, -0.033744171261787415, -0.0032529726158827543, -0.01960095949470997, -0.022097930312156677, -0.021462468430399895, -0.02216155454516411, -0.004190022125840187, 0.006455493625253439, -0.06558693945407867, -0.04365743696689606, -0.010596129111945629, 0.014854622073471546, 0.0007755022961646318, 0.02555522695183754, -0.030650069937109947, 0.00024349454906769097, -0.02648935094475746, 0.025042643770575523, 0.07597879320383072, -0.05703728646039963, -0.011799167841672897, -0.02777753956615925, 0.016218770295381546, -0.027107303962111473, -0.018885010853409767, -0.07329688966274261, -0.06638775765895844, -0.00936728622764349, -0.009531513787806034, 0.009128978475928307, -0.03753034770488739, -0.051597580313682556, 0.007832561619579792, 0.0014422485837712884, 0.02692296728491783, -0.009576919488608837, -0.007095601875334978, -0.029675040394067764, -0.00022303788864519447, 0.034282173961400986, -0.029185930266976357, -0.003717748448252678, 0.014733708463609219, -0.02541310340166092, 0.02043202891945839, -0.016115326434373856, 0.04531767964363098, 0.03749573975801468, -0.0022071811836212873, -0.008816740475594997, -0.021811706945300102, 0.02734755165874958, 0.01427675224840641, 0.025306669995188713, -0.017108207568526268, 0.03249498829245567, -0.03454815596342087, 0.002590709365904331, 0.013622809201478958, 0.02514587715268135, 0.007747034076601267, -0.046628884971141815, 0.012149821035563946, 0.037189092487096786, 0.02002357318997383, 0.011861182749271393, -0.002843679627403617, -0.02886170893907547, 0.04642409086227417, -0.009806901216506958, -0.03524325042963028, -0.011779067106544971, -0.05319225415587425, 0.024399850517511368, -0.009822115302085876, 0.06897579878568649, -0.049832534044981, 0.06035718694329262, 0.02534456178545952, 0.05660616606473923, 0.018846871331334114, 0.015823230147361755, 0.031245961785316467, -0.04337482899427414, -0.013135787099599838, -0.09836506098508835, -0.026507720351219177, 0.05453003942966461, 0.034752000123262405, -0.0059642791748046875, -0.018692176789045334, -0.028126399964094162, 0.003348801750689745, -0.057262517511844635, -0.012887685559689999, 0.05867879092693329, 0.0022041788324713707, -0.014810962602496147, 0.015506921336054802, -0.041340380907058716, 0.004095250740647316, 0.04573773592710495, -0.025441499426960945, -0.03158912435173988, -0.013636787422001362, 0.06497099250555038, -0.02983800694346428, -0.005937733221799135, 0.006279453169554472, 0.01873290352523327, 0.04541618749499321, 0.0323881059885025, 0.03805313631892204, 0.011219887994229794, -0.01469529327005148, 0.05894486606121063, 0.03189929947257042, -0.005035679321736097, -0.005000260192900896, 0.042923398315906525, 0.013828475028276443, -0.0716443806886673, 0.042272694408893585, 0.02642642706632614, 0.020898809656500816, -0.03668898716568947, 0.03894786909222603, 0.01908436045050621, -0.037997156381607056, -0.04516945406794548, 0.004843529313802719, -0.029907768592238426, 0.020575635135173798, -0.006306129042059183, -0.012677278369665146, -0.018548190593719482, 0.07654859125614166, -0.02236165478825569, -0.05646076798439026, 0.05918920040130615, -0.02331591211259365, -0.014861701987683773, 0.05624371021986008, 0.055658504366874695, 0.045535292476415634, 0.03987874463200569, 0.049067918211221695, 0.0633755773305893, 0.00990532711148262, -0.06037002429366112, 0.028356332331895828, -0.03131578490138054, 0.030706947669386864, -0.0689336434006691, -0.008874593302607536, 0.05128983408212662, 0.01887057162821293, 0.05959892272949219, -0.014353289268910885, 0.029458384960889816, -0.016006384044885635, 0.03724268451333046, -0.001627697260119021, 0.05846349522471428, -0.009002947248518467, 0.038648221641778946, -0.023966068401932716, -0.026765145361423492, 0.018107395619153976, -0.006491853855550289, -0.01353568583726883, -0.0026723123155534267, -0.024140942841768265, -0.004681866150349379, 0.008178433403372765, 0.034884367138147354, 0.09064168483018875, -0.05129573866724968, -0.017971832305192947, -0.01292426511645317, 0.04509787634015083, 0.0004530046135187149, 0.019826577976346016, 0.010795938782393932, -0.020771639421582222, -0.018787823617458344, -0.04434942081570625, 0.010792454704642296, -0.04367191717028618, -0.0007366498466581106, 0.000014536776689055841, -0.02423946000635624, -0.011551215313374996, 0.049533501267433167, -0.0028057668823748827, -0.05107678845524788, -0.042507022619247437, -0.02343141846358776, -0.04438323900103569, -0.08119389414787292, -0.007686893455684185, 0.02241017483174801, -0.031913626939058304, -0.0272226519882679, -0.03318009153008461, -0.03557564318180084, -0.000906484667211771, 0.005391915328800678, -0.03137849643826485, -0.031035665422677994, 0.009073488414287567, 0.02361661195755005, 0.009429368190467358, 0.009510527364909649, 0.02719067968428135, 0.02111911028623581, -0.03591093793511391, 0.022987211123108864, -0.009884007275104523, 0.02476520650088787, 0.02642931044101715, 0.02094349078834057, -0.056062962859869, -0.0003009742358699441, -0.0005870171589776874, -0.0019238160457462072, -0.08495175838470459, 0.04188203439116478, 0.054121557623147964, 0.01170291192829609, 0.023997288197278976, 0.00842197798192501, -0.029196113348007202, -0.021258952096104622, -0.029783573001623154, 0.02343040518462658, 0.036829981952905655, 0.03086491860449314, -0.015019328333437443, 0.09217390418052673, 0.043354663997888565, 0.028121404349803925, -0.03088443912565708, -0.014038504101336002, -0.021655654534697533, -0.007127976510673761, -0.06331956386566162, -0.04437066242098808, -0.06461617350578308, -0.06426651030778885, -0.0070815556682646275, 0.03656090050935745, -0.05740595608949661, -0.031724896281957626, -0.009035514667630196, -0.009187894873321056, 0.022843368351459503, 0.030053067952394485, -0.023525793105363846, -0.017399514093995094, -0.04964476451277733, -0.008957544341683388, 0.012701941654086113, 0.04786105826497078, 0.007058412302285433, 0.017600545659661293, -0.014440917409956455, -0.016838911920785904, 0.028111597523093224, 0.008109452202916145, -0.0005486629088409245, 0.019697872921824455, -0.01312201377004385, -0.0005757746403105557 ]
[ -0.05681510642170906, -0.00972454808652401, -0.016423694789409637, 0.022813739255070686, 0.06402771174907684, -0.026304155588150024, -0.03125830739736557, 0.03319724649190903, 0.031222719699144363, 0.02389778196811676, 0.037157218903303146, -0.1028497964143753, -0.0012607224052771926, -0.029359932988882065, 0.0255692508071661, -0.03093445487320423, -0.03219449892640114, -0.044082920998334885, -0.037077635526657104, 0.024718839675188065, -0.018956666812300682, -0.031306471675634384, -0.06403021514415741, -0.029000205919146538, 0.04620616137981415, 0.026025723665952682, 0.029317138716578484, -0.027440840378403664, 0.0034652671311050653, -0.218373104929924, 0.03909876197576523, 0.024880094453692436, 0.027623619884252548, 0.005950379651039839, -0.007468517404049635, 0.0386827327311039, 0.010895824991166592, -0.015659650787711143, 0.004876459948718548, 0.05779116973280907, -0.0113667082041502, -0.026341989636421204, -0.01270405575633049, -0.0336192362010479, 0.04923916235566139, 0.0030375421047210693, -0.016935942694544792, -0.026634562760591507, -0.015572400763630867, -0.0016129235737025738, -0.017767833545804024, -0.04317013546824455, 0.0010478609474375844, -0.019736558198928833, -0.010292928665876389, 0.018018508329987526, 0.06806907802820206, 0.045372892171144485, 0.013959226198494434, 0.04627664014697075, -0.008509449660778046, 0.003895833622664213, -0.16719694435596466, 0.09631183743476868, 0.00774796586483717, 0.03738453611731529, -0.07390932738780975, -0.014066948555409908, -0.006401130463927984, 0.09484931826591492, -0.009126302786171436, -0.02695162408053875, 0.003675447776913643, 0.05667800083756447, 0.016143187880516052, -0.010555670596659184, -0.00036171654937788844, 0.005393953528255224, 0.05136864632368088, -0.016150934621691704, -0.06156626343727112, 0.027476711198687553, -0.0042348867282271385, -0.03486422449350357, 0.06833882629871368, 0.007898477837443352, -0.0034021746832877398, -0.012632319703698158, 0.008746000938117504, 0.0074872043915092945, 0.016888229176402092, -0.031072406098246574, -0.008190926164388657, 0.04353030025959015, -0.07780857384204865, -0.04783986136317253, 0.043888501822948456, 0.0049108597449958324, -0.03207586333155632, 0.3797222077846527, -0.06133769080042839, 0.005006909370422363, -0.040895093232393265, 0.06869498640298843, -0.028617829084396362, -0.038749027997255325, -0.03205224871635437, -0.056279972195625305, 0.01831922121345997, -0.07434451580047607, -0.01486748643219471, -0.019325360655784607, 0.018909431993961334, -0.06521521508693695, -0.003372789826244116, -0.030297549441456795, -0.012105590663850307, 0.00029213979723863304, 0.007070028223097324, 0.03603818267583847, 0.008235424757003784, -0.008686371147632599, 0.023618649691343307, -0.011841394938528538, 0.009546909481287003, 0.008718552999198437, 0.017194123938679695, 0.09071555733680725, 0.02331647276878357, -0.00597009714692831, 0.04376194626092911, -0.0375395342707634, -0.12738792598247528, -0.007585282903164625, -0.017445310950279236, -0.014307359233498573, 0.03560813143849373, 0.02071000263094902, -0.013562554493546486, 0.04977644234895706, 0.0001714420213829726, -0.009636047296226025, 0.054590679705142975, 0.003818017663434148, -0.03556068241596222, 0.12193187326192856, -0.03606506064534187, 0.012215412221848965, -0.019000442698597908, -0.016502348706126213, 0.01786072924733162, 0.03650534898042679, -0.008092786185443401, -0.07220526039600372, 0.01915353536605835, 0.032452553510665894, 0.0542079359292984, -0.01974799484014511, -0.06719952821731567, -0.05755631625652313, -0.033339496701955795, -0.05506819859147072, -0.051901448518037796, 0.005857367534190416, 0.028152773156762123, -0.067434161901474, -0.04600055515766144, 0.029350992292165756, -0.02790893241763115, -0.08177494257688522, 0.05110139027237892, -0.00627133809030056, -0.051793813705444336, -0.0071840547025203705, 0.028065476566553116, -0.018339157104492188, -0.03909780830144882, 0.028083516284823418, 0.06498802453279495, 0.04504329711198807, 0.03439294919371605, -0.023532066494226456, -0.023899324238300323, 0.02766456827521324, -0.04082896187901497, -0.05410037189722061, -0.03863532096147537, -0.03425448015332222, -0.014356419444084167, -0.047030020505189896, 0.061235979199409485, -0.02353438176214695, 0.004907914437353611, 0.017307335510849953, -0.014186066575348377, -0.02198830060660839, 0.04333885386586189, -0.03300156071782112, -0.01660999283194542, -0.02227356843650341, -0.02087344415485859, 0.03079734370112419, -0.00013766340271104127, 0.008039898239076138, -0.03617406263947487, 0.027775423601269722, 0.04783366248011589, -0.03922361880540848, 0.09462989121675491, 0.001980648608878255, -0.035669442266225815, -0.006626103073358536, 0.011141757480800152, -0.008970587514340878, -0.031230373308062553, 0.03341023623943329, -0.006599686108529568, 0.017657887190580368, -0.02165212854743004, 0.04445994272828102, 0.032824959605932236, -0.0444784015417099, -0.008926867507398129, -0.36164429783821106, 0.012105906382203102, 0.006296065635979176, -0.008047804236412048, 0.019565429538488388, -0.04929714277386665, 0.013198517262935638, 0.017584845423698425, -0.023576421663165092, 0.06039515882730484, 0.07913196831941605, -0.008807193487882614, 0.004030768759548664, -0.09975335001945496, -0.0052213892340660095, 0.029482433572411537, -0.010017584078013897, -0.05192774534225464, -0.02271641604602337, 0.03632386401295662, -0.007882577367126942, -0.006812669802457094, 0.013477439992129803, -0.04255063459277153, 0.026770921424031258, -0.0050785415805876255, 0.12378555536270142, -0.013957002200186253, 0.06479815393686295, -0.04910937696695328, 0.021642206236720085, 0.01232840958982706, -0.0024367074947804213, -0.03688795864582062, 0.028180059045553207, -0.038664091378450394, -0.033159639686346054, 0.05075538530945778, 0.010132298804819584, -0.01616770215332508, -0.0046304091811180115, 0.050117723643779755, 0.003473476739600301, -0.013943643309175968, -0.04129737615585327, 0.005521056242287159, -0.02076771855354309, 0.0047026933170855045, -0.03141389787197113, 0.07673947513103485, -0.005486549809575081, 0.044142186641693115, 0.038254138082265854, 0.0043469322845339775, -0.0042146965861320496, 0.0034754888620227575, -0.10655003786087036, 0.03204301372170448, -0.021926240995526314, -0.04480333253741264, 0.02459690161049366, -0.016825689002871513, 0.057657964527606964, -0.060381535440683365, -0.03536704182624817, -0.029399000108242035, 0.015374346636235714, -0.00913713127374649, 0.056119877845048904, 0.02664501592516899, -0.006774332374334335, 0.09089796990156174, 0.03807792812585831, 0.029425058513879776, 0.0318264476954937, 0.03619551658630371, -0.03522276505827904, 0.02625321038067341, -0.0026483770925551653, -0.014457148499786854, 0.05615030974149704, -0.013694667257368565, 0.04366374760866165, 0.014413257129490376, 0.052545491605997086, -0.014346659183502197, 0.03736000880599022, -0.01732615754008293, 0.05504173785448074, 0.02199111133813858, -0.05340493097901344, -0.01210442092269659, -0.02657121978700161, -0.012626881711184978, 0.0860225036740303, 0.002315802965313196, -0.2631016969680786, 0.02035622112452984, 0.033494994044303894, 0.05989905446767807, 0.010265745222568512, -0.03659158945083618, 0.035617269575595856, -0.08571874350309372, -0.0013583875261247158, -0.018416624516248703, -0.029243338853120804, 0.030296804383397102, 0.054273683577775955, -0.02147846668958664, -0.004876816179603338, -0.016480790451169014, 0.06900664418935776, 0.006134523078799248, 0.02537415735423565, -0.008916511200368404, 0.021160082891583443, -0.008815567009150982, 0.14727704226970673, 0.03923923894762993, -0.00047685400932095945, -0.029241936281323433, -0.01578819565474987, -0.060021109879016876, 0.1163625717163086, 0.030493419617414474, 0.03632879629731178, -0.005467415787279606, 0.04044041782617569, 0.051870763301849365, 0.016075825318694115, 0.031331244856119156, -0.04827478900551796, 0.03617747873067856, 0.024484286084771156, -0.03245982900261879, 0.008312125690281391, 0.009264939464628696, -0.04724003002047539, -0.0026813154108822346, 0.06104971468448639, 0.004809847101569176, 0.02154543809592724, -0.04741698130965233, -0.0351395383477211, -0.012217344716191292, 0.0000573290599277243, -0.001043104100972414, 0.014268229715526104, -0.016755566000938416, 0.029177101328969002, 0.06710787862539291, 0.06448240578174591, -0.00513697462156415, 0.009239097125828266, -0.029523024335503578, 0.0019373397808521986, -0.06251734495162964, 0.08636010438203812, 0.027371391654014587, 0.009464273229241371 ]
[ 0.021657992154359818, 0.0020196002442389727, -0.04135560616850853, 0.026359237730503082, -0.0025501828640699387, 0.008725057356059551, -0.01943526603281498, -0.017325010150671005, -0.010133326053619385, -0.02692863717675209, -0.00021749420557171106, 0.0065681845881044865, -0.029408946633338928, -0.03386668860912323, -0.00472666509449482, 0.008852276019752026, -0.02080632746219635, 0.007585599552839994, 0.05651581287384033, 0.005520240403711796, -0.04506738483905792, 0.04877422749996185, 0.015303372405469418, 0.018301943317055702, -0.019505776464939117, 0.01482595968991518, -0.012490429915487766, 0.006184828467667103, 0.02924475073814392, -0.10271471738815308, -0.019969716668128967, -0.019303563982248306, -0.005855031311511993, 0.0024295300245285034, -0.02873183600604534, 0.011236539110541344, -0.03490030765533447, 0.02720542624592781, 0.03297141566872597, 0.055442288517951965, -0.019665507599711418, -0.04183626547455788, 0.03174769878387451, 0.009726320393383503, -0.0026271636597812176, -0.005923277232795954, -0.02253158763051033, -0.04977084696292877, 0.0096774036064744, -0.03246171027421951, -0.030478183180093765, -0.010959383100271225, -0.011161323636770248, 0.0030760453082621098, 0.018727008253335953, -0.04688114672899246, 0.015360509976744652, -0.01099891122430563, -0.004760815761983395, 0.014980542473495007, -0.044652730226516724, -0.0009763752459548414, -0.022147169336676598, -0.021166004240512848, 0.010886798612773418, -0.00958834309130907, -0.07786362618207932, 0.01620117761194706, -0.02247251570224762, 0.007155891507863998, 0.01220966037362814, -0.0033924116287380457, -0.030949890613555908, -0.027995293959975243, -0.014252184890210629, -0.007699522189795971, 0.03547639772295952, -0.04084362834692001, 0.036121878772974014, 0.017803462222218513, -0.05837882682681084, 0.027765046805143356, 0.005111164879053831, -0.0067201764322817326, -0.00957029964774847, -0.057805709540843964, -0.00534316711127758, 0.007779831998050213, 0.008119434118270874, 0.007417215965688229, 0.007598239462822676, -0.00003176726386300288, -0.006851410958915949, 0.027273064479231834, -0.08698961138725281, 0.038800738751888275, 0.02405068650841713, -0.010024605318903923, -0.0038282570894807577, 0.8207188844680786, 0.0196079034358263, 0.0024393091443926096, -0.010644820518791676, 0.022229725494980812, 0.0132855623960495, 0.013196307234466076, 0.04597529396414757, -0.020315630361437798, 0.021208416670560837, -0.004178761970251799, 0.00746001536026597, -0.00911266915500164, 0.024116553366184235, 0.036270737648010254, 0.007986007258296013, 0.022151658311486244, -0.007626342587172985, 0.021336523815989494, -0.0000464008298877161, 0.007817041128873825, -0.02383146435022354, 0.005552216898649931, 0.026639528572559357, 0.004364802502095699, -0.022081326693296432, -0.20331233739852905, -0.016465183347463608, -8.065934402759415e-33, 0.004606031812727451, -0.021760525181889534, 0.019594579935073853, -0.00902461539953947, -0.001384242088533938, -0.008266703225672245, -0.009552001021802425, -0.015790274366736412, 0.013036197982728481, -0.029062388464808464, -0.010297568514943123, 0.020247982814908028, -0.03696240484714508, -0.0007521385559812188, -0.020090417936444283, 0.0031641724053770304, 0.008675342425704002, 0.04194946214556694, -0.02346324734389782, 0.03298050910234451, 0.08028212934732437, 0.04053884372115135, 0.022010767832398415, 0.012156981974840164, 0.028631454333662987, -0.011224456131458282, -0.01710372604429722, 0.01047875452786684, -0.023634163662791252, -0.03149687871336937, -0.08193206787109375, 0.028412824496626854, -0.011292182840406895, -0.037900280207395554, -0.008936976082623005, -0.07073817402124405, -0.0011548979673534632, 0.02177429385483265, -0.013834676705300808, -0.01002323068678379, -0.019774051383137703, 0.013134810142219067, -0.004650889430195093, -0.05459566414356232, -0.018261974677443504, 0.02425272949039936, 0.038909297436475754, 0.08391953259706497, -0.015568016096949577, 0.03673369437456131, 0.0021853488869965076, -0.029139922931790352, -0.010210197418928146, 0.018725186586380005, -0.017522670328617096, 0.041480902582407, -0.01355099305510521, -0.031251899898052216, 0.015323850326240063, 0.007566547486931086, -0.002478237496688962, 0.007581676822155714, 0.01601320505142212, -0.017338097095489502, -0.01313753705471754, -0.012683156877756119, 0.05704420804977417, -0.0010684438748285174, 0.015244651585817337, -0.011191255412995815, -0.05243086814880371, 0.015006642788648605, -0.05550181865692139, -0.05157207325100899, 0.03290584683418274, -0.05656234174966812, 0.016776157543063164, 0.012094107456505299, 0.026562975719571114, 0.04183858260512352, 0.0314689464867115, 0.0014925232389941812, -0.01556138414889574, -0.05633782595396042, 0.004237413872033358, -0.004667836241424084, 0.010096223093569279, 0.006186037790030241, -0.020560169592499733, -0.029934115707874298, 0.009800600819289684, 0.013666185550391674, -0.012836041860282421, -0.008944460190832615, 0.004853922873735428, 7.705997297853662e-33, 0.009849617257714272, -0.010166957043111324, -0.03046429716050625, -0.004726714920252562, 0.04542624205350876, -0.0062413765117526054, 0.020772380754351616, 0.010196778923273087, -0.052335139364004135, 0.03076833300292492, -0.010532568208873272, -0.03940834850072861, -0.019405478611588478, 0.0026217144913971424, 0.0365067720413208, 0.01972373202443123, -0.0490434356033802, 0.054065316915512085, -0.02440556511282921, -0.006742588710039854, 0.0016467333771288395, 0.030120447278022766, 0.0056408061645925045, 0.017749402672052383, 0.029902253299951553, 0.020656302571296692, -0.02759752981364727, -0.0012299522059038281, 0.017086980864405632, 0.03286375105381012, 0.0036643173079937696, -0.022114628925919533, -0.018566962331533432, -0.015085471794009209, -0.025235600769519806, 0.029847482219338417, 0.01468042004853487, 0.0012986755464226007, -0.011592852883040905, 0.01740889996290207, 0.05582346022129059, 0.0419747494161129, -0.04402291029691696, 0.047856029123067856, 0.009884728118777275, 0.01059777569025755, -0.006225681398063898, 0.023967325687408447, 0.018926693126559258, 0.0019411894027143717, -0.018164657056331635, -0.009492830373346806, 0.010252450592815876, 0.02190375328063965, -0.018739517778158188, -0.020893733948469162, -0.003392928745597601, 0.036690853536129, -0.039491523057222366, 0.01219972688704729, -0.046925753355026245, -0.007767189759761095, -0.03881148621439934, 0.007025409955531359, -0.026205899193882942, -0.013151561841368675, -0.04244612902402878, 0.018384478986263275, 0.01315592136234045, 0.008599041029810905, -0.005205684341490269, 0.008134734816849232, 0.0199220422655344, -0.01917518675327301, 0.0003257937787566334, 0.004500038921833038, -0.01763809472322464, -0.037271011620759964, -0.013382919132709503, 0.04781636595726013, 0.04021400213241577, -0.02006693370640278, 0.05940970778465271, 0.050535622984170914, 0.005040185526013374, 0.02113228477537632, 0.022449780255556107, -0.002300573978573084, -0.0058379992842674255, -0.024498075246810913, 0.005060527939349413, -0.0005550557980313897, -0.006624394562095404, 0.06807614862918854, -0.03747565299272537, -1.316270470397285e-8, -0.037905678153038025, 0.04731379821896553, -0.011565133929252625, 0.028512677177786827, -0.00019163504475727677, -0.0009386421297676861, -0.01740073412656784, -0.021765006706118584, -0.0073668938130140305, 0.03079911135137081, 0.0015855100937187672, -0.008112083189189434, -0.02337103709578514, 0.006048856768757105, 0.01176030095666647, -0.030502723529934883, -0.00374154862947762, 0.02328806184232235, 0.024415357038378716, -0.024034634232521057, 0.0605878122150898, 0.018198061734437943, -0.015530962496995926, 0.015709858387708664, 0.03368738293647766, -0.009649399667978287, -0.0026770876720547676, -0.0768553614616394, 0.015482945367693901, 0.012615439482033253, 0.022370418533682823, -0.044945038855075836, -0.025898493826389313, 0.010646333917975426, 0.015261894091963768, -0.009733617305755615, 0.015101275406777859, -0.007921726442873478, 0.02831282652914524, 0.025311214849352837, -0.039396777749061584, 0.009423349052667618, -0.004566494841128588, -0.03264985233545303, -0.009755145758390427, 0.034831415861845016, -0.025040946900844574, 0.0049214717000722885, 0.027786947786808014, -0.015510487370193005, 0.04466193914413452, -0.020600367337465286, 0.014197859913110733, 0.02868443913757801, 0.03855573758482933, 0.046950772404670715, -0.02021120674908161, 0.007679215632379055, -0.018568022176623344, -0.0325310118496418, 0.03514653444290161, 0.00003308799205115065, -0.014217308722436428, -0.01990741305053234 ]
pandasscikit-learn-get_dummies-testtrain-sets-valueerror-shapes-not-aligned
https://markhneedham.com/blog/2017/07/05/pandasscikit-learn-get_dummies-testtrain-sets-valueerror-shapes-not-aligned
false
2017-07-26 21:41:55
Pandas: ValueError: The truth value of a Series is ambiguous.
[ "python", "pandas", "data-science" ]
[ "Data Science" ]
I've been playing around with Kaggle in my spare time over the last few weeks and came across an unexpected behaviour when trying to add a column to a dataframe. First let's get Panda's into our program scope: == Prerequisites [source,python] ---- import pandas as pd ---- Now we'll create a data frame to play with for the duration of this post: [source,python] ---- >>> df = pd.DataFrame({"a": [1,2,3,4,5], "b": [2,3,4,5,6]}) >>> df a b 0 5 2 1 6 6 2 0 8 3 3 2 4 1 6 ---- Let's say we want to create a new column which returns True if either of the numbers are odd. If not then it'll return False. We'd expect to see a column full of True values so let's get started. [source,python] ---- >>> divmod(df["a"], 2)[1] > 0 0 True 1 False 2 True 3 False 4 True Name: a, dtype: bool >>> divmod(df["b"], 2)[1] > 0 0 False 1 True 2 False 3 True 4 False Name: b, dtype: bool ---- So far so good. Now let's combine those two calculations together and create a new column in our data frame: [source,python] ---- >>> df["anyOdd"] = (divmod(df["a"], 2)[1] > 0) or (divmod(df["b"], 2)[1] > 0) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Users/markneedham/projects/kaggle/house-prices/a/lib/python3.6/site-packages/pandas/core/generic.py", line 953, in __nonzero__ .format(self.__class__.__name__)) ValueError: The truth value of a Series is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all(). ---- Hmmm, that was unexpected! Unfortunately Python's +++<cite>+++or+++</cite>+++ and +++<cite>+++and+++</cite>+++ statements https://stackoverflow.com/questions/36921951/truth-value-of-a-series-is-ambiguous-use-a-empty-a-bool-a-item-a-any-o[don't work very well against Panda's Series'], so instead we need to use the bitwise or (|) and and (&). Let's update our example: [source,python] ---- >>> df["anyOdd"] = (divmod(df["a"], 2)[1] > 0) | (divmod(df["b"], 2)[1] > 0) >>> df a b anyOdd 0 1 2 True 1 2 3 True 2 3 4 True 3 4 5 True 4 5 6 True ---- Much better. And what about if we wanted to check if both values are odd? [source,python] ---- >>> df["bothOdd"] = (divmod(df["a"], 2)[1] > 0) & (divmod(df["b"], 2)[1] > 0) >>> df a b anyOdd bothOdd 0 1 2 True False 1 2 3 True False 2 3 4 True False 3 4 5 True False 4 5 6 True False ---- Works exactly as expected, hoorah!
In this post we look at how to work around the ValueError: The truth value of a Series is ambiguous when adding a new column to a DataFrame.
null
[ 0.0021651729475706816, 0.014624585397541523, -0.01961488276720047, 0.044932954013347626, 0.07518672943115234, 0.0076580955646932125, -0.010603549890220165, 0.004488341044634581, 0.02263854816555977, -0.008305524475872517, -0.0014217592542991042, -0.0032485825940966606, -0.06151215359568596, 0.02687889151275158, -0.012366375885903835, 0.06130498647689819, 0.08940247446298599, 0.00765514001250267, 0.019977424293756485, 0.03286314755678177, 0.01895895227789879, 0.037235766649246216, -0.04839374125003815, 0.036551378667354584, -0.004919841419905424, -0.0077128056436777115, 0.02115023136138916, -0.006836734712123871, -0.03356443718075752, 0.002109327120706439, 0.01835460029542446, 0.010495209135115147, 0.0130493538454175, 0.00698583759367466, 0.030260251834988594, -0.0038840018678456545, -0.009923195466399193, -0.0023458877112716436, -0.006054201629012823, 0.00823905598372221, -0.08983742445707321, 0.004637609235942364, -0.00729248346760869, 0.014916067942976952, -0.057961296290159225, -0.021059568971395493, -0.0477723553776741, 0.029046515002846718, -0.006854450795799494, -0.0010848799720406532, -0.04314865171909332, 0.027829933911561966, -0.0013021238846704364, -0.04416745528578758, 0.016599029302597046, 0.06530709564685822, 0.034994661808013916, -0.06705323606729507, 0.03638248145580292, -0.031445592641830444, -0.0017838905332610011, -0.003045726800337434, 0.013166144490242004, 0.010629781521856785, 0.015379391610622406, -0.020018965005874634, -0.01790469139814377, 0.046803805977106094, -0.0435248464345932, -0.011523903347551823, -0.04370880872011185, 0.0059313965030014515, -0.005186917260289192, -0.03072565793991089, -0.013586075976490974, -0.008236476220190525, -0.003108731471002102, 0.07002539187669754, 0.023963941261172295, 0.008702167309820652, -0.014845577999949455, -0.022248649969697, 0.03297647088766098, -0.007483870722353458, 0.0009259658399969339, -0.05588022619485855, -0.05993855744600296, -0.03344733268022537, -0.05392448231577873, 0.06933030486106873, -0.0286120492964983, -0.06426465511322021, 0.02601652964949608, -0.005592776462435722, -0.01661558449268341, -0.011415881104767323, -0.014177931472659111, -0.010573204606771469, 0.03351428732275963, -0.0015314093325287104, -0.05453842878341675, -0.020588958635926247, 0.01698102429509163, 0.008866064250469208, -0.07170379161834717, -0.01858162321150303, -0.019372297450900078, -0.019406508654356003, -0.012446897104382515, 0.02238505147397518, -0.04803409427404404, -0.008528345264494419, -0.0010425139917060733, -0.027196547016501427, -0.07108895480632782, 0.06584057211875916, 0.0015988275408744812, -0.05389094725251198, -0.017853057011961937, 0.01971571519970894, 0.050161343067884445, 0.022761661559343338, -0.03533967211842537, 0.05611268803477287, 0.02875523827970028, 0.04075330123305321, -0.013986815698444843, 0.0619577020406723, -0.006270327139645815, -0.04521869868040085, -0.043121304363012314, 0.04171018674969673, -0.0168490968644619, -0.021404309198260307, 0.019208060577511787, -0.04028209671378136, -0.01184177678078413, 0.02006801776587963, 0.05364319309592247, 0.017448417842388153, 0.022500010207295418, -0.004639013204723597, -0.00531414058059454, 0.01689697615802288, 0.02160707674920559, 0.045747026801109314, 0.017219016328454018, -0.04507315903902054, -0.037331804633140564, 0.025988304987549782, 0.0023304596543312073, 0.0317271389067173, 0.09024162590503693, -0.007415350992232561, 0.006132654380053282, 0.08701055496931076, 0.002372069749981165, -0.012001520954072475, -0.014180961064994335, 0.02034648507833481, 0.03690161183476448, -0.006471761967986822, 0.005881752818822861, 0.021425126120448112, 0.01299241092056036, -0.02969873882830143, 0.019678963348269463, 0.04555164650082588, -0.01740320585668087, 0.010544001124799252, -0.030335672199726105, -0.06596041470766068, 0.04564714431762695, -0.009957396425306797, 0.03806443139910698, 0.03903016075491905, 0.07329683750867844, 0.010283535346388817, 0.026613298803567886, 0.02408439666032791, -0.07494398951530457, 0.02668769471347332, -0.009976672008633614, 0.014257518574595451, 0.06731323897838593, 0.006813521962612867, 0.07548913359642029, 0.012913841754198074, 0.07137800753116608, 0.044243864715099335, -0.03121606819331646, -0.048008184880018234, -0.06085992231965065, 0.0005650251405313611, 0.04408164694905281, -0.07623856514692307, -0.036160774528980255, 0.07838116586208344, 0.015635302290320396, 0.022803666070103645, 0.019913729280233383, 0.004954472649842501, 0.01387848425656557, -0.009835139848291874, -0.0005679359310306609, 0.016031518578529358, 0.016327502205967903, -0.0012293367180973291, 0.023457642644643784, 0.034169752150774, -0.016943691298365593, -0.02557346783578396, 0.012589864432811737, -0.02158978581428528, 0.07694833725690842, 0.03482476994395256, 0.06779032200574875, -0.02383790723979473, 0.017306411638855934, -0.027311237528920174, 0.0031740725971758366, 0.003321774071082473, -0.013350396417081356, -0.04302145913243294, 0.004146500024944544, 0.14054706692695618, 0.06365033239126205, -0.009837064892053604, -0.05035625398159027, 0.008990535512566566, 0.0005674032145179808, -0.040744174271821976, 0.03507789224386215, 0.0034117528703063726, -0.0009218538179993629, 0.005166515242308378, -0.02616712637245655, -0.0247297715395689, 0.023207888007164, -0.029531564563512802, 0.020312674343585968, 0.08428940922021866, -0.04392379894852638, 0.03800586238503456, 0.021930843591690063, -0.018945466727018356, 0.029833737760782242, -0.0057174162939190865, -0.07555302232503891, -0.010437234304845333, 0.006618278566747904, -0.017567533999681473, 0.06786300987005234, -0.015897950157523155, -0.04537145420908928, -0.03878713771700859, -0.06207592412829399, 0.0031835816334933043, 0.060965023934841156, 0.039399705827236176, -0.005808626301586628, 0.03684718906879425, 0.011722772382199764, -0.024689657613635063, -0.0491306371986866, -0.021833205595612526, -0.03476033732295036, -0.006106067914515734, 0.003189629875123501, 0.02774830162525177, 0.00909509602934122, 0.0048368643037974834, 0.0010103065287694335, 0.002809749683365226, 0.01774369738996029, 0.016545681282877922, 0.04672425612807274, -0.02252393402159214, -0.006362699903547764, -0.024301113560795784, 0.0024647254031151533, 0.04007991403341293, -0.0375213697552681, -0.057516004890203476, 0.01899409480392933, -0.05648433417081833, 0.03138301149010658, -0.044037651270627975, -0.036510296165943146, 0.04003759101033211, 0.02371354214847088, 0.031301967799663544, -0.020619288086891174, 0.022627802565693855, 0.03816881775856018, 0.007063690107315779, -0.003929431084543467, 0.04087043181061745, -0.01505881454795599, 0.05973879247903824, 0.03324485197663307, 0.007570911664515734, 0.06970972567796707, 0.009018818847835064, -0.00660907756537199, -0.061252161860466, -0.009966868907213211, -0.016382448375225067, -0.2874741554260254, 0.012603577226400375, 0.013253988698124886, -0.029855230823159218, -0.0010390758980065584, -0.032418251037597656, -0.0013946018880233169, -0.029524434357881546, -0.006954328157007694, 0.010093189775943756, -0.029294325038790703, -0.06638266146183014, -0.048044778406620026, 0.0455116406083107, 0.004765079822391272, 0.016177283599972725, 0.008602156303822994, -0.02623707428574562, -0.014893142506480217, 0.05040470138192177, -0.01844746433198452, -0.0636623203754425, -0.011468926444649696, 0.07599131762981415, 0.03001205250620842, 0.04305991157889366, -0.05505342781543732, 0.024080222472548485, -0.04482324793934822, -0.04260864108800888, 0.030452558770775795, -0.01984230801463127, -0.01704731024801731, -0.004950573202222586, -0.005910078063607216, -0.005761768668889999, 0.017366638407111168, 0.003839540760964155, 0.013253259472548962, -0.009763489477336407, -0.02441277541220188, -0.02362549677491188, -0.0031170628499239683, 0.03299178555607796, 0.080462746322155, 0.005290377885103226, -0.07743767648935318, 0.04735666885972023, -0.07644233852624893, 0.03623426705598831, -0.013028883375227451, -0.007976272143423557, -0.01491714920848608, 0.04892820119857788, -0.01773999258875847, 0.05286068096756935, -0.03714815899729729, 0.02310297265648842, -0.027003709226846695, -0.03358783572912216, 0.0015660093631595373, -0.03222911059856415, -0.02335042506456375, -0.024515068158507347, -0.003996479790657759, -0.05672285333275795, -0.06942565739154816, -0.0019264043075963855, 0.07456525415182114, 0.05493756756186485, -0.06833396106958389, 0.013052078895270824, 0.027299460023641586, -0.10971276462078094, -0.0012375403894111514, -0.036392729729413986, 0.007850615307688713, -0.037014614790678024, -0.007974156178534031, 0.03151988610625267, -0.05021008104085922, -0.03246014565229416, 0.08146286010742188, 0.02391696535050869, 0.016794096678495407, -0.0375116765499115, 0.0008805382531136274, -0.0035677391570061445, -0.007131621241569519, -0.0173813346773386, 0.04426632821559906, -0.018082648515701294, 0.02126523293554783, 0.016139479354023933, -0.027388067916035652, 0.04578348621726036, 0.018189765512943268, 0.00780277606099844, 0.029224297031760216, 0.024936886504292488, 0.029777362942695618, -0.06396046280860901, -0.03407138213515282, -0.06582099944353104, -0.032718632370233536, -0.004666943568736315, -0.10119332373142242, 0.027343181893229485, -0.004337348509579897, 0.006120169069617987, 0.002805375261232257, -0.04178436100482941, 0.0019470278639346361, -0.05206572636961937, -0.01477018278092146, -0.010135791264474392, 0.006605513393878937, 0.024926818907260895, -0.039137065410614014, -0.0006668174173682928, -0.05713126063346863, 0.018266184255480766, 0.02437497302889824, -0.020657822489738464, -0.048695262521505356, -0.03522474318742752, -0.008066139183938503, -0.0035827995743602514, -0.0032906108535826206, -0.021754032000899315, -0.018230710178613663, -0.00026239888393320143, 0.048760343343019485, -0.016662469133734703, 0.014453350566327572, -0.008537981659173965, -0.05117533355951309, -0.0031626333948224783, 0.005725827068090439, 0.029031623154878616, 0.009616495110094547, 0.008781196549534798, 0.012843295000493526, -0.009431114420294762, 0.021104732528328896, -0.009761027060449123, 0.026328394189476967, 0.05627177283167839, 0.029788663610816002, -0.0007982950191944838, -0.0034994538873434067, -0.007546477951109409, 0.009494621306657791, -0.02905959263443947, -0.06799312680959702, -0.004971460904926062, 0.03906356915831566, -0.021952064707875252, 0.013012907467782497, -0.04003039002418518, -0.02099422737956047, -0.011644340120255947, 0.0005712394486181438, -0.0039537688717246056, 0.017883507534861565, 0.07192032784223557, -0.027093030512332916, 0.011359182186424732, 0.0331248976290226, 0.013745627366006374, 0.0028570927679538727, 0.013235123828053474, -0.052981339395046234, 0.012563301250338554, 0.004698062781244516, -0.000004379582151159411, 0.02391691505908966, -0.007262250408530235, 0.012218288145959377, 0.006564334034919739, 0.005665202159434557, 0.016439739614725113, -0.003054653527215123, 0.004969761706888676, 0.03682773932814598, 0.025097381323575974, -0.03673579543828964, 0.004518305417150259, -0.012104431167244911, -0.056539811193943024, -0.015363174490630627, -0.01036343164741993, 0.030520927160978317, 0.026419244706630707, -0.026298057287931442, -0.05608808621764183, 0.008436452597379684, 0.03643647953867912, 0.0017276618164032698, -0.015133118256926537, -0.04346591606736183, 0.019885709509253502, -0.03283573314547539, 0.03674740716814995, 0.09733764082193375, -0.0535128116607666, 0.011085561476647854, -0.0368674173951149, 0.002674724208191037, 0.0061553772538900375, 0.0153817655518651, -0.06730736047029495, -0.036935217678546906, -0.01580107770860195, -0.014587828889489174, -0.012737518176436424, -0.03736642003059387, -0.06277452409267426, 0.007136235013604164, -0.0048356736078858376, 0.014470871537923813, -0.006479488220065832, 0.013216103427112103, -0.03655562177300453, -0.01418840792030096, -0.021468037739396095, -0.013322625309228897, -0.00565917044878006, 0.040267765522003174, -0.0006605322705581784, 0.011626946739852428, -0.007970013655722141, 0.057247813791036606, 0.012634731829166412, -0.03005444072186947, -0.01239585317671299, -0.036555126309394836, -0.003009970998391509, -0.002906324341893196, 0.04432201012969017, 0.013866868801414967, 0.004546622280031443, -0.033112525939941406, -0.007380112074315548, -0.021769126877188683, -0.010496014729142189, 0.0031962781213223934, -0.04549860581755638, 0.020862935110926628, 0.06692009419202805, 0.013058794662356377, -0.016487369313836098, 0.0034370203502476215, -0.03880131617188454, 0.04504924640059471, -0.025092480704188347, -0.040605563670396805, -0.010357911698520184, -0.03903927654027939, 0.014987503178417683, 0.0016528439009562135, 0.025388434529304504, -0.06887205690145493, 0.02923082374036312, 0.008863446302711964, 0.033441077917814255, 0.03219398483633995, -0.010042926296591759, 0.0618034303188324, -0.018110238015651703, -0.04056357219815254, -0.10917097330093384, -0.005769405979663134, 0.03788800537586212, 0.040400855243206024, -0.004773587454110384, -0.0389956571161747, -0.03096202202141285, 0.03473679721355438, -0.0614849217236042, -0.03126866742968559, 0.05310467258095741, 0.03386569395661354, 0.011799901723861694, 0.025805067270994186, -0.04188840463757515, -0.007920358330011368, 0.027087830007076263, -0.05020318180322647, -0.027307359501719475, -0.0059834374114871025, 0.061667367815971375, -0.001798196928575635, 0.015639642253518105, 0.011525937356054783, 0.004781212192028761, 0.055938445031642914, 0.044947728514671326, 0.035445116460323334, 0.04551615193486214, -0.02884579449892044, 0.04969213902950287, 0.036385584622621536, 0.008285748772323132, 0.005493474192917347, 0.028160348534584045, 0.008459319360554218, -0.06952698528766632, 0.002338394522666931, 0.0182034894824028, 0.04940308630466461, -0.0650976225733757, 0.06458621472120285, 0.009654437191784382, -0.05652327835559845, -0.049881041049957275, 0.0025440501049160957, -0.033930812031030655, -0.002075199270620942, -0.011697884649038315, -0.020821625366806984, -0.02969680353999138, 0.06506872922182083, -0.01749114692211151, -0.03164210543036461, 0.05629097297787666, 0.0033384980633854866, 0.015232028439640999, 0.02511940710246563, 0.0592101626098156, 0.05246477201581001, 0.03995126113295555, 0.030761636793613434, 0.04240887239575386, 0.01621571183204651, -0.05335293710231781, 0.00953609962016344, -0.02958613447844982, -0.013481293804943562, -0.045335981994867325, -0.016504067927598953, 0.06490898132324219, 0.0006148571264930069, 0.06549956649541855, -0.027668094262480736, 0.051746755838394165, -0.015286616049706936, 0.025908375158905983, 0.010392368771135807, 0.046709515154361725, 0.008396615274250507, 0.04947200044989586, -0.0004844997019972652, -0.013319021090865135, 0.016127027571201324, -0.00282993633300066, -0.03735348954796791, 0.028559934347867966, 0.011213697493076324, 0.009333462454378605, 0.046960391104221344, 0.01937505602836609, 0.06811577081680298, -0.03816304728388786, -0.038268741220235825, 0.02063039317727089, 0.044843368232250214, -0.025296611711382866, 0.02460816502571106, -0.00223541259765625, -0.007556821219623089, -0.002718578325584531, -0.024430252611637115, -0.016663644462823868, -0.004227451980113983, -0.011443454772233963, 0.004980409983545542, -0.03105791099369526, 0.015421627089381218, 0.04183291271328926, -0.01844049245119095, -0.03686733543872833, -0.04241466522216797, -0.0466637909412384, -0.040093064308166504, -0.07270998507738113, 0.010194017551839352, 0.019423073157668114, -0.03984656184911728, -0.03514964506030083, -0.0066457148641347885, -0.010254538618028164, 0.002359123434871435, -0.005506904795765877, -0.009586270898580551, -0.04841093719005585, 0.04640880227088928, 0.025859391316771507, 0.004999400582164526, 0.0165104903280735, 0.04310332238674164, -0.015729062259197235, -0.025478312745690346, 0.008861873298883438, 0.0054905409924685955, 0.049103666096925735, 0.00256710103712976, 0.0048723225481808186, -0.07618241757154465, 0.005304322578012943, -0.012643897905945778, -0.014924817718565464, -0.07013260573148727, 0.048647359013557434, 0.03685462847352028, 0.012212766334414482, 0.035804569721221924, -0.013485307805240154, -0.004859209526330233, -0.02670779637992382, -0.038480695337057114, -0.01627693511545658, 0.01687096618115902, 0.03230271488428116, -0.03681713715195656, 0.0653516948223114, 0.05074002593755722, 0.00531268073245883, -0.02494264766573906, -0.018038146197795868, -0.026163747534155846, -0.007891223765909672, -0.05490551143884659, -0.05927783623337746, -0.07548943907022476, -0.049733083695173264, -0.007093990221619606, 0.022013189271092415, -0.040729839354753494, -0.02496875636279583, -0.018628092482686043, 0.01766776852309704, 0.0031295965891331434, 0.04464792087674141, -0.045290615409612656, -0.001742566004395485, -0.0481015108525753, -0.01844976097345352, -0.008474784903228283, 0.033440686762332916, 0.004622358363121748, -0.021579168736934662, 0.006725011393427849, -0.03627694025635719, 0.015831300988793373, -0.009616829454898834, 0.0321943499147892, 0.012659491039812565, -0.039267219603061676, 0.024762561544775963 ]
[ -0.10176912695169449, -0.04130692780017853, -0.03266081586480141, 0.016948780044913292, 0.04451138153672218, -0.029490532353520393, -0.005603105761110783, 0.021877504885196686, 0.01858924888074398, 0.02602093294262886, 0.031861815601587296, -0.10198906064033508, -0.0010012721177190542, -0.029639365151524544, 0.05032976716756821, -0.015970462933182716, -0.03508725017309189, -0.07985734194517136, -0.0664505586028099, 0.045134808868169785, -0.00038042801315896213, -0.05292721837759018, -0.06738615036010742, -0.05917798727750778, 0.0387372225522995, 0.06163807213306427, 0.0316242091357708, -0.054049666970968246, 0.013555397279560566, -0.21109424531459808, 0.008681479841470718, -0.008366659283638, 0.015998221933841705, -0.058225829154253006, 0.012978482991456985, 0.016362400725483894, 0.01302361860871315, 0.03263701871037483, 0.02069399133324623, 0.028200484812259674, 0.009081133641302586, -0.01619783043861389, -0.022198745980858803, -0.04983510076999664, 0.039405789226293564, -0.0015638897893950343, -0.0318455696105957, 0.002993346657603979, -0.01760193146765232, 0.03163975104689598, -0.06772308051586151, 0.0040130289271473885, -0.034423500299453735, -0.021032430231571198, 0.019830910488963127, 0.03374537080526352, 0.055855147540569305, 0.0513167642056942, 0.01509924978017807, 0.037866558879613876, 0.03575042635202408, -0.007775884121656418, -0.117876797914505, 0.0959605798125267, 0.025642089545726776, 0.04006046801805496, -0.03765437379479408, -0.03465241938829422, -0.009355123154819012, 0.07685452699661255, 0.0026698412839323282, -0.029543176293373108, -0.024889815598726273, 0.08117064833641052, 0.03791921213269234, -0.02420920692384243, -0.016680167987942696, 0.027979807928204536, 0.043629374355077744, 0.005219544284045696, -0.07958174496889114, 0.002602897584438324, -0.019567735493183136, -0.025296596810221672, -0.003678106004372239, -0.004149673972278833, -0.023019662126898766, 0.014288405887782574, -0.007640409283339977, 0.017436422407627106, 0.045290637761354446, 0.016367705538868904, 0.010542509146034718, 0.028489405289292336, -0.08191884309053421, -0.002239225199446082, 0.011770384386181831, 0.00931431632488966, -0.009335488080978394, 0.4013650119304657, -0.034092437475919724, -0.0154785281047225, 0.016745777800679207, 0.062254179269075394, -0.00974865723401308, -0.023241283372044563, -0.00984076876193285, -0.051147133111953735, 0.037064746022224426, -0.04752958193421364, 0.000983965932391584, -0.0146370530128479, 0.060672465711832047, -0.09208466857671738, -0.0034713076893240213, -0.013746014796197414, -0.010955942794680595, -0.01636880822479725, 0.006557838059961796, 0.04344794154167175, 0.019589658826589584, 0.022999700158834457, 0.01591956987977028, 0.015233693644404411, 0.016008030623197556, 0.023910166695713997, 0.013096355833113194, 0.05605419725179672, 0.018979588523507118, 0.003652479499578476, 0.031008269637823105, -0.034492429345846176, -0.08546070754528046, 0.00037089045508764684, -0.0011295024305582047, -0.019860664382576942, 0.022078242152929306, 0.013192226178944111, 0.014046278782188892, 0.020802641287446022, -0.014246299862861633, -0.03977739438414574, 0.028775816783308983, 0.0017537400126457214, -0.0005647327052429318, 0.1289326399564743, -0.03294769674539566, -0.002174708293750882, -0.0021061135921627283, -0.02457323856651783, 0.000243085203692317, 0.01895974762737751, -0.02458246797323227, -0.07550886273384094, 0.0053653051145374775, 0.012688481248915195, 0.04778346046805382, -0.016195543110370636, -0.05857927352190018, -0.04023002088069916, -0.008357726968824863, -0.04631069675087929, -0.0576486773788929, -0.021965526044368744, 0.03599587082862854, -0.08958324790000916, -0.03833667188882828, 0.016141755506396294, 0.0018388095777481794, -0.05791400745511055, 0.014497465454041958, 0.03513018786907196, -0.0782235637307167, -0.0034502039197832346, 0.048085156828165054, -0.025543561205267906, -0.0439925417304039, 0.03202484920620918, 0.06981802731752396, -0.006561766378581524, 0.010425888933241367, 0.05626716464757919, -0.04018641263246536, -0.006916208192706108, -0.05932127684354782, -0.10538788884878159, -0.05441184341907501, 0.016057664528489113, -0.025488680228590965, -0.0665740966796875, 0.0014749245019629598, -0.03677749261260033, -0.042217232286930084, 0.07989995181560516, -0.03191906213760376, -0.026348162442445755, 0.06201968714594841, 0.000965143262874335, -0.007815265096724033, -0.03023623675107956, 0.0019198745721951127, 0.004016309976577759, 0.009015209041535854, 0.031054066494107246, -0.05145673826336861, 0.03223475441336632, 0.04282549023628235, -0.04239179193973541, 0.09580130875110626, 0.00113824347499758, 0.00956338457763195, -0.01383525412529707, -0.011547771282494068, 0.018565302714705467, -0.025303728878498077, 0.008248166181147099, -0.03889164328575134, 0.006482667755335569, 0.014887700788676739, 0.02015993371605873, 0.026361295953392982, -0.051569614559412, 0.00286823115311563, -0.35735177993774414, -0.03548189997673035, 0.005287048406898975, -0.013613681308925152, -0.002621982479467988, -0.02867412194609642, 0.011107292957603931, 0.011363712139427662, -0.02943464368581772, 0.04050033167004585, 0.06261825561523438, -0.008782937191426754, 0.01051443163305521, -0.08706188201904297, 0.008719317615032196, 0.011084653437137604, -0.03232378140091896, -0.03537231683731079, -0.02729731611907482, -0.00045315062743611634, -0.019857289269566536, 0.006163325626403093, -0.015209806151688099, -0.04126204922795296, 0.024667546153068542, -0.03207658231258392, 0.13008643686771393, 0.01262567937374115, 0.08109533041715622, -0.05521683767437935, 0.04077950492501259, -0.010753830894827843, -0.005434554535895586, -0.04033374786376953, 0.048957668244838715, -0.05235635116696358, -0.0364413745701313, 0.010251834988594055, -0.020010190084576607, -0.023721560835838318, -0.02595035545527935, 0.019931867718696594, -0.035335078835487366, -0.018450051546096802, -0.026563530787825584, 0.0419023334980011, 0.012716662138700485, -0.0019938817713409662, -0.030292371287941933, 0.08904340118169785, 0.019653689116239548, 0.021579355001449585, 0.05667131021618843, 0.04324265569448471, 0.03662749007344246, -0.013974785804748535, -0.06922610849142075, -0.0012823574943467975, -0.012460862286388874, -0.012271123938262463, 0.047063738107681274, 0.034454457461833954, 0.03860870748758316, -0.0397946797311306, -0.01880936697125435, 0.016372226178646088, 0.01633998565375805, -0.014142606407403946, 0.02900838851928711, 0.015756849199533463, -0.021903913468122482, 0.1165982186794281, 0.0038233231753110886, 0.028743676841259003, 0.023566190153360367, 0.054954130202531815, -0.0052171796560287476, 0.036885011941194534, 0.004259264562278986, 0.020181547850370407, 0.0663345456123352, -0.07060593366622925, 0.034453194588422775, -0.0022217039950191975, 0.03319719433784485, 0.004455604124814272, 0.01879870519042015, -0.01791257970035076, 0.03990807756781578, -0.003269406035542488, -0.026634041219949722, -0.036053817719221115, -0.00668080011382699, -0.02393004298210144, 0.06963071972131729, -0.016216745600104332, -0.28058570623397827, 0.02795061096549034, 0.010349524207413197, 0.05140047147870064, -0.011289873160421848, 0.00937334168702364, -0.004398375749588013, -0.0372731015086174, -0.023185765370726585, -0.010852928273379803, -0.025629205629229546, 0.043493181467056274, 0.041222717612981796, -0.02029470168054104, 0.003852873807772994, -0.0109771229326725, 0.03640138357877731, 0.014829791150987148, 0.04188907891511917, 0.0069767776876688, 0.03862029314041138, -0.033304113894701004, 0.15821999311447144, 0.04056572914123535, 0.028446808457374573, -0.02335779368877411, -0.0003313143097329885, -0.008467904292047024, 0.07966937124729156, 0.03390985727310181, 0.010791484266519547, 0.010445336811244488, 0.03020595945417881, 0.02761557325720787, 0.03603503853082657, -0.02132410556077957, -0.0337846614420414, 0.07747944444417953, 0.03245040774345398, -0.03744689002633095, 0.020718764513731003, 0.04412941634654999, -0.04356376826763153, 0.030461564660072327, 0.057818517088890076, -0.033339615911245346, 0.0070752231404185295, -0.04313363879919052, -0.022968554869294167, -0.011652528308331966, 0.0020591735374182463, 0.006922209169715643, -0.0006536119035445154, -0.0020481848623603582, 0.0073530604131519794, 0.047626644372940063, 0.052724264562129974, 0.006509280763566494, 0.038808826357126236, -0.005544888321310282, -0.014000555500388145, -0.06550586968660355, 0.09429233521223068, 0.01840348169207573, 0.009985186159610748 ]
[ -0.018488699570298195, -0.011558677069842815, -0.03279891610145569, 0.011968256905674934, -0.012594303116202354, -0.04625838249921799, 0.0032493306789547205, 0.005819221027195454, -0.011577407829463482, 0.004751673899590969, -0.0017475351924076676, -0.0019705116283148527, -0.03556491434574127, -0.03387697786092758, -0.0037708349991589785, -0.01710103638470173, -0.0006996128940954804, 0.027919795364141464, 0.03722139075398445, -0.04992687702178955, -0.03436802327632904, 0.024361448362469673, 0.022260650992393494, 0.007822491228580475, -0.00208469619974494, 0.04003147408366203, -0.026982199400663376, 0.021964309737086296, 0.03273364156484604, -0.12390372157096863, -0.05476916581392288, -0.028834452852606773, -0.015853334218263626, 0.00983680970966816, -0.011108814738690853, -0.014114526100456715, -0.028717393055558205, 0.03978869691491127, -0.027694998309016228, 0.018490377813577652, -0.016459647566080093, -0.04551784694194794, -0.005094280932098627, 0.001894590794108808, -0.013305985368788242, -0.007959584705531597, -0.04050130024552345, 0.004685990512371063, 0.014606491662561893, -0.02438347414135933, -0.024123046547174454, 0.05655266344547272, -0.02458498813211918, -0.020813442766666412, -0.002374707954004407, -0.04613364860415459, 0.018952777609229088, 0.020136885344982147, 0.005791508127003908, 0.004333154298365116, -0.026947038248181343, 0.025573886930942535, -0.010063434951007366, -0.01662403531372547, 0.02221481129527092, -0.010577556677162647, -0.065126933157444, -0.013890658505260944, -0.0030323711689561605, 0.013394334353506565, -0.033190950751304626, -0.014107267372310162, -0.014595620334148407, -0.006094244308769703, -0.013159937225282192, -0.005507569294422865, 0.03251549229025841, -0.028295084834098816, 0.03126978501677513, 0.008433951996266842, -0.017183247953653336, 0.01627541147172451, 0.018321646377444267, -0.008069679141044617, 0.0014960767002776265, -0.07661734521389008, 0.0001830214896472171, 0.022875454276800156, 0.033276382833719254, -0.03351254016160965, 0.007987824268639088, 0.017812024801969528, -0.004378397949039936, 0.01942344941198826, -0.08521268516778946, 0.02539178356528282, 0.00907224602997303, -0.0008055696380324662, -0.0127809327095747, 0.8345613479614258, 0.010323279537260532, -0.0073090060614049435, 0.00010469368135090917, 0.05294029414653778, 0.03733609989285469, 0.01717572659254074, 0.012130225077271461, -0.011051124893128872, -0.015107742510735989, -0.040972813963890076, 0.021338140591979027, 0.00658020656555891, 0.03687569126486778, -0.002175685251131654, 0.032375626266002655, -0.0001977220963453874, -0.012037278153002262, 0.04317294433712959, 0.0028781003784388304, -0.007052826229482889, -0.0019494278822094202, 0.011594686657190323, 0.018176110461354256, 0.014223366975784302, -0.006822480354458094, -0.1675320416688919, -0.005882156081497669, -7.463204817163072e-33, 0.0048934780061244965, -0.017052367329597473, 0.025950806215405464, 0.0003042684693355113, 0.022106854245066643, -0.00956782978028059, -0.005932786967605352, 0.001298335031606257, -0.011696434579789639, 0.0076986039057374, 0.017504261806607246, 0.0019814628176391125, -0.0043501174077391624, 0.004180365242063999, 0.040472205728292465, 0.00001688530574028846, 0.014191162772476673, 0.011604235507547855, 0.002792831975966692, 0.007884182035923004, 0.05126465484499931, 0.0143178915604949, 0.030460195615887642, 0.040991440415382385, 0.03796017915010452, 0.0070162927731871605, 0.011852355673909187, -0.0039445506408810616, 0.0007262112922035158, -0.039039336144924164, -0.0699303150177002, 0.01607469841837883, -0.0009734618361108005, -0.04634449630975723, -0.006494275759905577, -0.07127653807401657, 0.0005677564186044037, 0.005676873493939638, -0.023667141795158386, 0.004956480581313372, -0.03621969372034073, 0.002409745240584016, -0.007789421360939741, -0.046246301382780075, -0.050886120647192, 0.019413171336054802, 0.04632928594946861, 0.092232346534729, -0.01849786937236786, -0.0139527078717947, 0.0003315175708848983, 0.0029203160665929317, 0.010412338189780712, 0.004882307723164558, 0.005764473229646683, 0.013035635463893414, 0.008814883418381214, -0.022262640297412872, 0.029587820172309875, 0.0009598444448783994, 0.0021100922022014856, 0.002363984938710928, 0.009514455683529377, 0.018014412373304367, -0.03581453859806061, -0.019976742565631866, 0.04815790802240372, -0.0036164410412311554, 0.04306056350469589, -0.0074485065415501595, -0.061025265604257584, 0.01072223111987114, -0.028892269358038902, -0.043984003365039825, 0.02858627215027809, -0.04997282475233078, 0.005032082553952932, -0.009239527396857738, -0.011887910775840282, 0.027690866962075233, 0.04691019654273987, -0.017724044620990753, -0.004164854995906353, -0.017824305221438408, -0.021649891510605812, -0.025890640914440155, -0.003687971504405141, 0.02422354929149151, -0.036026641726493835, -0.01619022898375988, 0.0015529352240264416, -0.008698442950844765, 0.014659678563475609, -0.004532249644398689, 0.010821779258549213, 6.904594473288967e-33, 0.029804594814777374, -0.012053159065544605, -0.029395222663879395, 0.008352994918823242, 0.041428908705711365, -0.033026713877916336, 0.03137115389108658, 0.007720841560512781, -0.005591800902038813, 0.029850605875253677, -0.003463245462626219, -0.024279559031128883, -0.013655520975589752, 0.012975802645087242, 0.04158033803105354, 0.020772699266672134, -0.02280609682202339, 0.0719301775097847, -0.0002857234503608197, -0.007886053994297981, -0.019831575453281403, 0.02554972469806671, 0.0019457516027614474, 0.001957845641300082, 0.0357145220041275, 0.032625142484903336, -0.021777335554361343, -0.0017125330632552505, -0.026637442409992218, 0.023755120113492012, 0.008772892877459526, -0.011403333395719528, 0.0041447472758591175, -0.014805068261921406, -0.0073463041335344315, 0.021260026842355728, 0.0312865674495697, -0.013738601468503475, -0.03128660470247269, -0.004726977087557316, 0.03275763988494873, 0.036253683269023895, 0.00021161616314202547, 0.057311639189720154, 0.01128204446285963, 0.027321984991431236, 0.024380791932344437, 0.02062208391726017, -0.014746448025107384, -0.035529736429452896, -0.019080277532339096, 0.01626133732497692, -0.003010445274412632, 0.04627499729394913, -0.006458217743784189, 0.008472036570310593, -0.010453041642904282, 0.022234337404370308, -0.050949230790138245, -0.007776977494359016, -0.020024439319968224, -0.012792706489562988, -0.018046656623482704, 0.003389659570530057, -0.008182181976735592, 0.016940943896770477, -0.057032279670238495, -0.029300738126039505, 0.011377853341400623, -0.04603021219372749, -0.0026846323162317276, -0.04952744394540787, 0.01030466053634882, 0.007352675776928663, -0.0021376986987888813, 0.031643159687519073, -0.008829524740576744, 0.015415022149682045, 0.006541020702570677, 0.046918079257011414, 0.029678691178560257, -0.07956067472696304, 0.030847562476992607, 0.03411334753036499, -0.032128579914569855, 0.013088815845549107, 0.007011443376541138, 0.007046231999993324, 0.008914565667510033, 0.0003947890072595328, -0.01626867800951004, -0.02285032719373703, -0.01458581443876028, 0.03952492028474808, 0.016564209014177322, -1.2795586812330839e-8, 0.00660691550001502, 0.006669303867965937, 0.0022047136444598436, -0.000375482311937958, 0.01880539581179619, 0.025760017335414886, -0.013284222222864628, -0.006197771523147821, -0.006597839295864105, 0.01941649802029133, 0.004752627108246088, 0.011943544261157513, -0.01428170595318079, 0.014846378937363625, 0.009987402707338333, 0.012111550197005272, -0.005496548023074865, 0.030249642208218575, 0.02544921264052391, -0.00827987864613533, 0.029875533655285835, 0.020802699029445648, -0.021340394392609596, -0.0030790099408477545, -0.00020744791254401207, 0.009245002642273903, 0.025602614507079124, -0.11267276108264923, 0.02546319179236889, 0.019647296518087387, -0.0029131651390343904, -0.051920078694820404, -0.01092332974076271, 0.0208444781601429, -0.004376581404358149, -0.03319598361849785, 0.006616569589823484, 0.01524594146758318, 0.03523147851228714, 0.0013927377294749022, -0.0406857468187809, -0.007417579181492329, -0.030499257147312164, -0.02500114217400551, -0.03236834704875946, 0.02987579256296158, -0.0510995015501976, 0.016000380739569664, -0.0005870848544873297, -0.0405852273106575, 0.013642583973705769, -0.018736042082309723, -0.015377030707895756, 0.01725274696946144, 0.044819653034210205, 0.03208713233470917, 0.0019271263154223561, -0.007371061015874147, -0.020638426765799522, -0.0254391897469759, 0.020356683060526848, 0.018637528643012047, -0.005193906370550394, -0.030759472399950027 ]
pandas-valueerror-the-truth-value-of-a-series-is-ambiguous
https://markhneedham.com/blog/2017/07/26/pandas-valueerror-the-truth-value-of-a-series-is-ambiguous
false
2017-07-26 22:20:23
Docker: Building custom Neo4j images on Mac OS X
[ "neo4j", "docker" ]
[ "neo4j" ]
I sometimes needs to create custom Neo4j Docker images to try things out and wanted to share my work flow, mostly for future Mark but also in case it's useful to someone else. There's already a docker-neo4j repository so we'll just tweak the files in there to achieve what we want. [source,bash] ---- $ git clone [email protected]:neo4j/docker-neo4j.git $ cd docker-neo4j ---- If we want to build a Docker image for Neo4j Enterprise Edition we can run the following build target: [source,bash] ---- $ make clean build-enterprise Makefile:9: *** This Make does not support .RECIPEPREFIX. Please use GNU Make 4.0 or later. Stop. ---- Denied at the first hurdle! What version of make have we got on this machine? [source,bash] ---- $ make --version GNU Make 3.81 Copyright (C) 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. This program built for i386-apple-darwin11.3.0 ---- We can sort that out by https://stackoverflow.com/questions/40871732/using-gnu-make-4-x-on-osx[installing a newer version using brew]: [source,bash] ---- $ brew install make $ gmake --version GNU Make 4.2.1 Built for x86_64-apple-darwin15.6.0 Copyright (C) 1988-2016 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. ---- That's more like it! brew installs make with the 'g' prefix and since I'm not sure if anything else on my system relies on the older version of make I won't bother changing the symlink. Let's retry our original command: [source,bash] ---- $ gmake clean build-enterprise Makefile:14: *** NEO4J_VERSION is not set. Stop. ---- It's still not happy with us! Let's set that environment variable to the latest released version as of writing: [source,bash] ---- $ export NEO4J_VERSION="3.2.2" $ gmake clean build-enterprise ... Successfully built c16b6f2738de Successfully tagged test/18334:latest Neo4j 3.2.2-enterprise available as: test/18334 ---- We can see that image in Docker land by running the following command: [source,bash] ---- $ docker images | head -n2 REPOSITORY TAG IMAGE ID CREATED SIZE test/18334 latest c16b6f2738de 4 minutes ago 303MB ---- If I wanted to deploy that image to my own Docker Hub I could run the following commands: [source,bash] ---- $ docker login --username=markhneedham $ docker tag c16b6f2738de markhneedham/neo4j:3.2.2 $ docker push markhneedham/neo4j ---- Putting Neo4j Enterprise 3.2.2 on my Docker Hub isn't very interesting though - that version is already on the official Neo4j Docker Hub. I've actually been building versions of Neo4j against the HEAD of the Neo4j 3.2 branch (i.e. 3.2.3-SNAPSHOT), deploying those to S3, and then building a Docker image based on those archives. To change the destination of the Neo4j artifact we need to tweak https://github.com/neo4j/docker-neo4j/blob/master/Makefile#L18[this line in the Makefile]: [source,bash] ---- $ git diff Makefile diff --git a/Makefile b/Makefile index c77ed1f..98e05ca 100644 --- a/Makefile +++ b/Makefile @@ -15,7 +15,7 @@ ifndef NEO4J_VERSION endif tarball = neo4j-$(1)-$(2)-unix.tar.gz -dist_site := http://dist.neo4j.org +dist_site := https://s3-eu-west-1.amazonaws.com/core-edge.neotechnology.com/20170726 series := $(shell echo "$(NEO4J_VERSION)" | sed -E 's/^([0-9]+\.[0-9]+)\..*/\1/') all: out/enterprise/.sentinel out/community/.sentinel ---- We can then update the Neo4j version environment variable: [source,bash] ---- $ export NEO4J_VERSION="3.2.3-SNAPSHOT" ---- And then repeat the Docker commands above. You'll need to sub in your own Docker Hub user and repository names. I'm using these custom images as part of Kubernetes deployments but you can use them anywhere that accepts a Docker container. If anything on the post didn't make sense or you want more clarification let me know https://twitter.com/markhneedham[@markhneedham].
In this post we look at how to build a custom Neo4j Docker image on Mac OS X.
null
[ 0.016695596277713776, -0.006544271018356085, 0.009749253280460835, 0.05309165641665459, 0.09068939089775085, 0.017862064763903618, 0.02672603726387024, 0.02818295918405056, -0.010855346918106079, -0.03829193860292435, -0.009984677657485008, -0.009977146983146667, -0.0727449581027031, 0.026366248726844788, -0.011341670528054237, 0.037276867777109146, 0.07334697991609573, 0.02618955634534359, -0.00938439927995205, 0.022961067035794258, 0.022873330861330032, 0.027740338817238808, -0.021527020260691643, 0.0362258143723011, 0.0082784378901124, 0.01476024929434061, 0.028173940256237984, 0.01562798023223877, -0.0759207159280777, -0.02092853933572769, 0.05981116741895676, 0.000523490714840591, 0.022976553067564964, -0.005922449752688408, 0.029574060812592506, 0.007090448401868343, -0.04960992932319641, 0.016277965158224106, -0.010270778089761734, 0.01653727889060974, -0.08128710091114044, 0.05154857411980629, 0.02529650740325451, 0.005297099705785513, -0.03347572311758995, 0.028773264959454536, -0.044253986328840256, 0.025359556078910828, -0.0015589235117658973, 0.014085955917835236, -0.08243635296821594, 0.01895350217819214, -0.04258672893047333, -0.02141019143164158, 0.00938677228987217, 0.03424591198563576, 0.023085007444024086, -0.06015009805560112, 0.032090187072753906, -0.010359314270317554, -0.00009531340037938207, -0.019680757075548172, 0.015362929552793503, 0.014377462677657604, 0.001027201535180211, -0.05449126660823822, -0.01636325567960739, 0.044029463082551956, -0.04948600009083748, 0.011720223352313042, 0.02468874678015709, -0.002783434232696891, -0.034620095044374466, -0.02325877733528614, 0.04008599370718002, -0.04482767730951309, -0.0005508037866093218, 0.06586502492427826, 0.03688116744160652, 0.05265410244464874, -0.041649334132671356, 0.012416660785675049, -0.006006813142448664, 0.009505375288426876, -0.00882031861692667, -0.036779507994651794, -0.02175207808613777, -0.021571852266788483, -0.07328156381845474, 0.05021125450730324, 0.03375403583049774, -0.05235479027032852, 0.019849814474582672, -0.0050280955620110035, 0.0019035706063732505, 0.030344942584633827, -0.008097437210381031, 0.011883482336997986, 0.03739818185567856, 0.018769806250929832, -0.04010773077607155, -0.0051718358881771564, -0.01095481775701046, 0.03555566444993019, -0.06816137582063675, -0.028295978903770447, -0.004432834219187498, -0.029780637472867966, 0.00231039896607399, -0.007029369007796049, 0.008006652817130089, 0.027136215940117836, -0.014519468881189823, 0.013555267825722694, -0.08787424117326736, 0.08119388669729233, 0.023334098979830742, -0.04707377031445503, -0.027463646605610847, -0.001620357041247189, 0.037948232144117355, 0.029077855870127678, -0.007220256142318249, 0.06596668809652328, -0.013807174749672413, 0.022443948313593864, -0.003644450567662716, 0.04531565681099892, -0.03202320635318756, -0.10025414824485779, -0.020544076338410378, 0.06349501013755798, -0.00869616586714983, 0.01118315476924181, -0.01991437003016472, -0.010957798920571804, -0.00799793004989624, 0.003098440356552601, 0.05085062235593796, 0.005382204428315163, -0.018674476072192192, -0.033544544130563736, 0.024781886488199234, -0.011245845817029476, 0.022627629339694977, 0.003704685252159834, 0.0004678352561313659, -0.04935953766107559, -0.04022086411714554, 0.017325399443507195, -0.00010959674546029419, 0.05877486243844032, 0.06179939582943916, -0.05147944390773773, 0.03265785053372383, 0.10941249132156372, 0.035376619547605515, 0.015260410495102406, -0.021959401667118073, -0.0037740212865173817, 0.02906855195760727, 0.022517221048474312, 0.016389992088079453, 0.05288400128483772, 0.03018217720091343, -0.024431711062788963, -0.020641572773456573, 0.04451426491141319, -0.019918635487556458, 0.013908877037465572, -0.0416269525885582, -0.06483980268239975, 0.0602833516895771, -0.05182221531867981, 0.01002772618085146, 0.028258871287107468, 0.09541414678096771, 0.0248949583619833, 0.026177288964390755, 0.002354510361328721, -0.08877827227115631, 0.0677768811583519, 0.0056334203109145164, 0.035933107137680054, -0.013201977126300335, -0.01541683729737997, 0.06355656683444977, 0.012287722900509834, 0.029660573229193687, 0.05178878828883171, -0.08361747115850449, -0.09135600179433823, 0.00601442763581872, -0.017618633806705475, 0.0612134225666523, -0.00563629949465394, -0.037692371755838394, 0.050229813903570175, 0.002439133357256651, 0.03040660172700882, -0.006486556492745876, 0.0005886550643481314, 0.03662212938070297, -0.06588806211948395, -0.06128489971160889, 0.05241383984684944, 0.004440165124833584, -0.03658157214522362, -0.04520002007484436, 0.019433805719017982, -0.011816302314400673, -0.016325978562235832, 0.048045702278614044, -0.039828043431043625, 0.05344553664326668, 0.01412995345890522, 0.014184441417455673, -0.028852714225649834, 0.04370739310979843, -0.031164279207587242, 0.009942223317921162, 0.02077811025083065, -0.01907259039580822, 0.007907518185675144, 0.004641055129468441, 0.10509182512760162, 0.048744428902864456, -0.022812027484178543, -0.0387449637055397, 0.045340586453676224, 0.02831985056400299, -0.021941881626844406, 0.006912732031196356, 0.013273852877318859, 0.015012633986771107, 0.004107585642486811, -0.018139725551009178, -0.004900675732642412, 0.006823314819484949, -0.03123643808066845, 0.012732221744954586, 0.05365551635622978, -0.0549541674554348, 0.05193197354674339, 0.025951500982046127, -0.019981877878308296, -0.01703118346631527, -0.05292707681655884, -0.06890890747308731, 0.005905740894377232, 0.043494436889886856, -0.0009418612462468445, 0.0577470138669014, -0.02961498126387596, -0.008667425252497196, -0.0554068349301815, -0.04510440304875374, 0.03536924347281456, 0.01410860475152731, 0.0533921904861927, -0.02900705486536026, 0.03759069740772247, -0.029566291719675064, 0.02911921590566635, -0.018652861937880516, -0.042117323726415634, -0.0444900207221508, -0.02034652605652809, 0.003444676985964179, -0.004130091052502394, 0.0006085018976591527, 0.015877265483140945, 0.004230050835758448, -0.015227163210511208, 0.021782567724585533, -0.010700601153075695, 0.01743384078145027, 0.0023349609691649675, 0.006536183878779411, -0.06284532696008682, -0.020260801538825035, 0.05727746710181236, -0.07305508106946945, 0.002233836567029357, -0.01837548054754734, -0.05718405917286873, 0.040258295834064484, -0.06957018375396729, -0.021418849006295204, -0.008127723820507526, 0.04023483768105507, 0.04688742756843567, 0.006289276760071516, 0.01049066986888647, 0.06397698819637299, 0.03031551092863083, 0.023023901507258415, -0.0014514211798086762, -0.006503271404653788, 0.05578337982296944, 0.012803495861589909, 0.029261967167258263, 0.04007260128855705, -0.009153115563094616, -0.006863399874418974, -0.024547157809138298, 0.018989495933055878, -0.027482418343424797, -0.2622475326061249, 0.044115759432315826, -0.03434724733233452, -0.04620519280433655, -0.00006094545824453235, -0.026341745629906654, 0.005343300756067038, -0.030412010848522186, -0.0013802222674712539, -0.006606112699955702, -0.03727864474058151, -0.052920304238796234, 0.004378634039312601, 0.03986217826604843, 0.010600371286273003, 0.017829831689596176, 0.030090924352407455, -0.034530170261859894, -0.004046227782964706, -0.0059823584742844105, -0.028889570385217667, -0.024082928895950317, 0.02727857045829296, 0.00902543030679226, 0.028106799349188805, 0.03309104964137077, -0.07957354187965393, 0.037889864295721054, -0.057559672743082047, -0.02866714634001255, -0.014621322974562645, -0.0016457100864499807, -0.023753024637699127, 0.018715763464570045, -0.029061680659651756, 0.004936902783811092, 0.02308863401412964, 0.01558931078761816, 0.031215833500027657, 0.004940524697303772, -0.017863120883703232, -0.04861319065093994, -0.02199740707874298, 0.0016599203227087855, 0.08033397793769836, -0.024064483121037483, -0.0768984854221344, 0.0003425102913752198, -0.03254395350813866, 0.089411661028862, -0.04796535521745682, -0.03919646888971329, 0.005311195272952318, 0.05314112827181816, 0.00428050197660923, -0.0018710613949224353, -0.026868201792240143, -0.0010814069537445903, -0.056616365909576416, -0.022418726235628128, -0.012986954301595688, -0.037654291838407516, -0.009274840354919434, -0.043401770293712616, -0.013321244157850742, -0.05621974915266037, -0.06486216187477112, -0.06694623827934265, 0.08357061445713043, 0.02474735863506794, -0.02601490542292595, 0.01357530802488327, -0.011270848102867603, -0.09458176046609879, -0.020604263991117477, -0.0244147852063179, -0.03962888941168785, 0.009978888556361198, -0.002950286725535989, 0.07859425991773605, -0.03819757327437401, -0.032371796667575836, 0.020080221816897392, 0.034057535231113434, 0.003831398207694292, 0.003974728751927614, 0.005074922926723957, 0.0022889412939548492, -0.009487678296864033, 0.015704384073615074, 0.05970078706741333, -0.02167026326060295, -0.030527332797646523, -0.031568076461553574, -0.006573752500116825, 0.02983773499727249, 0.02118793874979019, 0.005293475463986397, 0.0025872313417494297, 0.042796146124601364, 0.053105391561985016, -0.047968789935112, -0.004532028455287218, -0.021471437066793442, -0.02182282879948616, -0.008129873313009739, -0.051740217953920364, 0.006925270427018404, 0.015570438466966152, 0.041816357523202896, -0.0014803854282945395, -0.03487192466855049, 0.03679707273840904, -0.055240411311388016, -0.03505226969718933, -0.01672612503170967, 0.008325676433742046, 0.03389221429824829, 0.03867805749177933, -0.006921774707734585, -0.028389262035489082, 0.043170828372240067, -0.0012827177997678518, -0.03393712639808655, -0.045902565121650696, -0.023505857214331627, -0.010416580364108086, -0.022941365838050842, 0.008312445133924484, 0.032757848501205444, -0.04041079804301262, 0.04384549334645271, 0.03640611097216606, -0.053697619587183, 0.04378248378634453, 0.008385309018194675, -0.030634576454758644, -0.04434450343251228, 0.005382403265684843, -0.0030041378922760487, -0.017168549820780754, 0.009019329212605953, 0.011555014178156853, 0.02368096634745598, 0.04311146214604378, 0.02563006989657879, 0.045311637222766876, 0.007183705922216177, 0.02317770943045616, -0.00544345285743475, -0.009919149801135063, -0.05531696230173111, -0.0016206075670197606, -0.04442721605300903, -0.02156689204275608, -0.02507009543478489, 0.03810690715909004, -0.025881726294755936, -0.018733089789748192, -0.02642187476158142, 0.023670462891459465, -0.04373163357377052, 0.00044724406325258315, -0.016658782958984375, -0.0020691032987087965, 0.071919284760952, 0.001798515790142119, 0.026911914348602295, -0.03730703890323639, -0.023406945168972015, 0.017180370166897774, 0.04331953451037407, -0.04840738698840141, -0.0074652195908129215, 0.022793812677264214, 0.0006118023884482682, 0.006040235050022602, 0.03560468181967735, 0.056500036269426346, 0.017894651740789413, -0.021669944748282433, -0.015218295156955719, 0.009386659599840641, 0.011987686157226562, 0.03980584815144539, -0.0014255766291171312, -0.02286728098988533, 0.008517343550920486, -0.029132898896932602, -0.0028319237753748894, -0.01844686083495617, 0.021920889616012573, 0.005912015214562416, 0.021968452259898186, -0.03135107830166817, -0.05144516006112099, 0.05111554637551308, 0.03129957616329193, 0.02947945147752762, 0.020010653883218765, 0.004472283646464348, -0.005565471015870571, -0.04281783476471901, 0.045689381659030914, 0.06992901861667633, -0.0593586228787899, -0.032057177275419235, 0.002294376026839018, 0.021353447809815407, 0.004848051350563765, 0.016832003369927406, -0.06383910030126572, -0.022694606333971024, -0.0033008363097906113, 0.0025636358186602592, -0.0403568372130394, -0.031604520976543427, 0.005134034901857376, 0.006051395554095507, -0.0001988980220630765, 0.0035739238373935223, 0.009289249777793884, 0.008217554539442062, -0.009777900762856007, -0.0252242311835289, 0.047513093799352646, -0.049400653690099716, 0.01921887695789337, 0.003639888484030962, -0.0206439271569252, 0.024315688759088516, -0.02690502256155014, 0.020248200744390488, 0.004978441633284092, -0.0020022084936499596, -0.001670139143243432, -0.033799491822719574, 0.03928840160369873, -0.02896394580602646, 0.018799325451254845, 0.0025576779153198004, 0.020400770008563995, -0.05687941983342171, -0.02137071080505848, -0.0384296253323555, -0.006403802894055843, -0.013430055230855942, 0.024532118812203407, -0.006835894659161568, 0.03373153507709503, 0.009714260697364807, 0.023248547688126564, -0.01750771515071392, -0.04231485351920128, 0.06839403510093689, -0.06367304176092148, -0.032719697803258896, 0.010022358037531376, -0.06708510220050812, 0.02996368519961834, 0.03532937169075012, 0.03715858608484268, -0.05014806240797043, 0.034977350383996964, 0.05625402182340622, 0.00736198341473937, -0.0014218768337741494, -0.02601519040763378, 0.018944159150123596, -0.02073119580745697, -0.021615279838442802, -0.07216902077198029, 0.00590125797316432, 0.03842654079198837, -0.0004448734689503908, 0.0064004031009972095, -0.008036135695874691, -0.01757497526705265, 0.010084818117320538, -0.06351373344659805, -0.040843479335308075, 0.03786380961537361, -0.031671106815338135, -0.007083938457071781, -0.013244659639894962, -0.06821656227111816, 0.030733847990632057, 0.03714318946003914, -0.042695771902799606, -0.030903510749340057, -0.01204168051481247, 0.050912581384181976, -0.009772135876119137, 0.04495156183838844, -0.026744676753878593, -0.03730006515979767, 0.0898817777633667, 0.018229622393846512, 0.0005666263750754297, 0.04214758425951004, -0.012094300240278244, 0.029012814164161682, 0.04507700726389885, 0.0029803449288010597, 0.0074157328344881535, 0.03451232239603996, -0.03733673319220543, -0.04482635110616684, 0.03343677148222923, 0.015133649110794067, -0.0407893992960453, -0.044614288955926895, 0.050762008875608444, -0.0039312453009188175, -0.032796718180179596, -0.03404230251908302, 0.06403045356273651, -0.03813573718070984, -0.005291832610964775, -0.02622436173260212, 0.006167852319777012, -0.07575773447751999, 0.03283422067761421, -0.014552921988070011, 0.017475096508860588, 0.05593235418200493, 0.010241673327982426, -0.012651951052248478, 0.022002827376127243, 0.08859248459339142, 0.0786278173327446, 0.005817956291139126, 0.02282184176146984, 0.06963477283716202, -0.00717400386929512, -0.03450789675116539, -0.0007188135641627014, -0.005985217168927193, -0.040724657475948334, -0.01229333970695734, 0.009701406583189964, 0.058567993342876434, -0.030326565727591515, 0.06617792695760727, 0.006100762169808149, -0.000523952126968652, -0.018863344565033913, -0.013171466067433357, 0.027348816394805908, 0.03184559941291809, 0.023995378986001015, 0.023060455918312073, -0.02749709039926529, -0.039326999336481094, 0.016523102298378944, -0.025981899350881577, -0.014204496517777443, 0.011958461254835129, -0.0042632343247532845, -0.0070773642510175705, 0.020350631326436996, 0.028597846627235413, 0.07084310799837112, -0.030552968382835388, -0.013573795557022095, 0.019623424857854843, 0.038236502557992935, 0.02456994727253914, -0.0019520997302606702, 0.0010665830923244357, -0.027023039758205414, -0.014783929102122784, -0.027743156999349594, 0.005106065887957811, -0.020437141880393028, -0.0008977740653790534, 0.020716087892651558, -0.02221107669174671, -0.015685079619288445, 0.013701487332582474, -0.021800696849822998, 0.004774712026119232, -0.03679124265909195, -0.03784111887216568, -0.05891764536499977, -0.06751707196235657, -0.005491841118782759, -0.013443327508866787, -0.009220982901751995, -0.026421265676617622, -0.035036247223615646, -0.018336882814764977, -0.02125662937760353, 0.05276849493384361, -0.08801387250423431, -0.005408848635852337, 0.0012187599204480648, 0.022065995261073112, 0.004552099388092756, 0.00432224664837122, 0.05746469646692276, 0.0019508074037730694, 0.005365796387195587, -0.023114606738090515, 0.03687429800629616, 0.011360597796738148, -0.0015300054801627994, 0.016091985628008842, -0.0791294053196907, 0.031015438959002495, 0.015920396894216537, -0.006012072786688805, -0.0714154914021492, 0.01598389632999897, 0.043458230793476105, 0.0024859472177922726, 0.0610126331448555, -0.006672177463769913, 0.013949437066912651, -0.033457476645708084, 0.00792485661804676, -0.0031816107220947742, -0.03583812713623047, 0.04097139090299606, -0.0020110965706408024, 0.08164890855550766, 0.053184881806373596, -0.037471953779459, -0.016385838389396667, -0.030555037781596184, 0.00682034669443965, 0.0014929610770195723, -0.03166644647717476, -0.010481361299753189, -0.030743511393666267, -0.08580188453197479, -0.03566533699631691, -0.021305864676833153, -0.029960855841636658, -0.02413056418299675, 0.008995043113827705, 0.018712883815169334, -0.01361121702939272, 0.010148747824132442, -0.0413033664226532, 0.005736322607845068, -0.006626426707953215, 0.00680086575448513, -0.015312611125409603, 0.010709489695727825, 0.00008363557572010905, -0.006659372244030237, 0.027233531698584557, -0.0535004623234272, -0.024374866858124733, -0.021718036383390427, 0.038374416530132294, 0.040438778698444366, 0.03607506677508354, 0.006279048044234514 ]
[ -0.058967772871255875, -0.037397075444459915, -0.025302426889538765, -0.03417551890015602, 0.06537800282239914, -0.04596282169222832, -0.05969460308551788, 0.021970443427562714, -0.03573927283287048, -0.02785780094563961, 0.012372050434350967, -0.028855375945568085, -0.0121060311794281, -0.026374712586402893, 0.06049604341387749, 0.013363201171159744, -0.00974687747657299, -0.04900006949901581, -0.00528313871473074, 0.04300915449857712, -0.0074971211142838, -0.04062356427311897, -0.010674764402210712, -0.05356701463460922, -0.017168952152132988, 0.02840808965265751, 0.031111259013414383, 0.009246147237718105, 0.00015727408754173666, -0.18786296248435974, 0.021104903891682625, 0.02479558065533638, -0.006532900966703892, -0.014759124256670475, 0.027649568393826485, 0.0357583686709404, 0.02593260444700718, -0.019358927384018898, -0.02384287677705288, 0.02243305742740631, 0.011903666891157627, 0.01757594384253025, -0.0654994323849678, -0.01318172924220562, 0.04471904784440994, 0.03464197367429733, -0.02256712131202221, -0.04625684395432472, 0.0034396955743432045, -0.0037082142662256956, -0.024815931916236877, -0.008500203490257263, -0.0015741608804091811, -0.040884096175432205, 0.004849906079471111, 0.02804611809551716, 0.03773273527622223, 0.06076180562376976, 0.04069579765200615, 0.01615120843052864, 0.012931161560118198, -0.009285934269428253, -0.14370055496692657, 0.08346191793680191, 0.020062308758497238, 0.011275552213191986, -0.039921220391988754, -0.017588850110769272, -0.015204284340143204, 0.06561558693647385, 0.018937138840556145, -0.004646038170903921, -0.0417642779648304, 0.07497281581163406, -0.018790028989315033, 0.023689081892371178, 0.0001323332980973646, 0.03315123915672302, 0.007312592584639788, -0.03305536508560181, -0.050386883318424225, 0.020688854157924652, -0.04242352768778801, -0.007939559407532215, -0.055884864181280136, 0.03679358959197998, -0.010817264206707478, 0.0805649608373642, 0.035274434834718704, 0.04928227886557579, 0.009627709165215492, -0.017965391278266907, 0.08602259308099747, 0.017349176108837128, -0.09398695826530457, 0.011700630187988281, 0.006407307460904121, 0.003795925760641694, -0.031348854303359985, 0.42249298095703125, -0.0009346615988761187, -0.01030779629945755, 0.05743423104286194, 0.036925796419382095, 0.02499070204794407, -0.00806405209004879, 0.00707637844607234, -0.02391977608203888, 0.03536827117204666, -0.015119834803044796, 0.009648221544921398, 0.0019342333544045687, 0.06776214390993118, -0.08073585480451584, -0.011437177658081055, -0.015116284601390362, 0.010157746262848377, 0.009167909622192383, -0.026772331446409225, 0.0001884584198705852, -0.03587159141898155, 0.011620191857218742, 0.039151884615421295, 0.030098672956228256, 0.023738786578178406, -0.0072191026993095875, 0.005499689374119043, 0.01774672046303749, 0.013030742295086384, 0.022481167688965797, 0.03303087502717972, 0.004508530721068382, -0.02692226693034172, 0.03396385908126831, 0.022134488448500633, 0.0031738330144435167, 0.03627800941467285, -0.03274683654308319, -0.019786670804023743, 0.03151442110538483, -0.033541057258844376, -0.017896292731165886, 0.031221050769090652, -0.004905311390757561, -0.03224034234881401, 0.06623811274766922, 0.002465988276526332, -0.006808006204664707, -0.0278928205370903, -0.05853169411420822, -0.0034721815027296543, 0.05025806650519371, -0.00714429235085845, -0.04639403149485588, 0.00605954322963953, -0.0017725443467497826, 0.06684857606887817, -0.01597219705581665, -0.10826956480741501, 0.027431044727563858, 0.005354730878025293, -0.04197105020284653, -0.03037373162806034, 0.03922678902745247, 0.04754255339503288, -0.09084654599428177, -0.013930299319326878, 0.03634557127952576, 0.03434715420007706, -0.023363614454865456, -0.011555692180991173, 0.02430005557835102, 0.0006082255858927965, -0.04336557909846306, 0.060679975897073746, -0.02772354707121849, -0.028575142845511436, 0.02047646977007389, 0.05372946336865425, 0.017012029886245728, -0.012794403359293938, -0.0010558563517406583, -0.03567912057042122, -0.005981516558676958, -0.06459131836891174, -0.09973090142011642, -0.08236488699913025, 0.02245817333459854, -0.045775528997182846, -0.029471132904291153, -0.028269300237298012, 0.01528193335980177, -0.056907713413238525, 0.11209279298782349, -0.014590935781598091, -0.04931486025452614, -0.01979590207338333, 0.014612503349781036, 0.0028296601958572865, -0.03746755048632622, 0.02809934690594673, 0.03501022607088089, -0.016483038663864136, 0.027478881180286407, -0.08473028242588043, 0.016134565696120262, 0.07194002717733383, -0.03330168500542641, 0.07736025750637054, 0.049453750252723694, -0.08277209848165512, 0.019929952919483185, 0.010720448568463326, 0.03584595024585724, -0.020222702994942665, 0.004190974868834019, -0.0026885236147791147, 0.007933753542602062, 0.022810760885477066, 0.019403161481022835, -0.0349249392747879, -0.022968178614974022, -0.04628335312008858, -0.3622828423976898, -0.0483195036649704, -0.037264857441186905, 0.004712539259344339, 0.037814922630786896, -0.024720417335629463, 0.024303678423166275, -0.025539666414260864, -0.012263987213373184, 0.0013159257359802723, 0.09470079839229584, -0.04882527515292168, 0.01917039230465889, -0.06779535859823227, -0.005306568928062916, 0.04325208440423012, -0.007581782527267933, -0.008793730288743973, -0.0032992223277688026, -0.01951679401099682, -0.022188574075698853, -0.04505017772316933, -0.014771287329494953, -0.028773022815585136, -0.0027443543076515198, -0.0062929922714829445, 0.10403410345315933, 0.03887239843606949, 0.055635567754507065, -0.029740702360868454, 0.04968976229429245, 0.017036423087120056, 0.001933592138811946, -0.1116640567779541, -0.007717302534729242, -0.0012713068863376975, 0.005555237643420696, 0.016998080536723137, -0.012841423973441124, 0.014845707453787327, -0.03636277839541435, -0.0083613321185112, -0.058552589267492294, -0.06779488176107407, -0.0006607119576074183, 0.005067785270512104, -0.04003789648413658, 0.02489324100315571, -0.023200690746307373, 0.047385115176439285, 0.006407403387129307, 0.019022569060325623, -0.004405979532748461, 0.019420268014073372, 0.018512099981307983, -0.019336553290486336, -0.07974856346845627, -0.008220424875617027, 0.046693772077560425, 0.022087588906288147, 0.04327508062124252, 0.0501643642783165, 0.02898237109184265, -0.09334129095077515, 0.01541729737073183, 0.002650720998644829, -0.0315084308385849, -0.009667609818279743, 0.04836389794945717, -0.04740726575255394, 0.010412880219519138, 0.11147817224264145, 0.02676054649055004, 0.03389085456728935, 0.06230545789003372, 0.03983578830957413, -0.01499777939170599, 0.012895270250737667, 0.02447696402668953, 0.002290974371135235, -0.0036948055494576693, -0.017279021441936493, 0.059737496078014374, -0.007553678937256336, -0.0212372038513422, 0.0903894305229187, -0.006116406060755253, -0.04241887852549553, 0.06717169284820557, 0.0029605950694531202, -0.030403533950448036, 0.016097506508231163, -0.007082243915647268, -0.054052866995334625, 0.08999725431203842, -0.0016617805231362581, -0.252786785364151, 0.04019022360444069, 0.03811541944742203, 0.057125743478536606, -0.008336396887898445, 0.0008703641942702234, 0.039477720856666565, -0.022570034489035606, 0.013532535172998905, 0.021424897015094757, 0.0163881853222847, 0.04767628014087677, -0.024926748126745224, -0.004263284150511026, 0.03549105301499367, -0.009937713854014874, 0.05633261799812317, 0.008484700694680214, 0.03833836317062378, -0.016506807878613472, 0.0042106714099645615, -0.022722087800502777, 0.15586592257022858, 0.03626904636621475, -0.028454119339585304, 0.021068457514047623, -0.02384452149271965, 0.027538497000932693, 0.02729843743145466, 0.020372815430164337, -0.028619669377803802, 0.0458717904984951, -0.0018452670192345977, -0.01171579398214817, 0.03285769000649452, -0.04160841926932335, -0.032423559576272964, 0.0294293612241745, -0.010521281510591507, -0.02791096642613411, -0.02683352679014206, 0.021451391279697418, -0.03410116583108902, 0.03912730887532234, 0.05175170674920082, -0.060161661356687546, 0.013839954510331154, 0.0023969770409166813, -0.0804222822189331, -0.014821456745266914, -0.04178321734070778, -0.03807530924677849, -0.017777658998966217, -0.03934183716773987, -0.015270480886101723, 0.06701528280973434, 0.01239326037466526, -0.032248783856630325, 0.03356025740504265, 0.018535954877734184, -0.004107402637600899, -0.060725755989551544, 0.10845036059617996, 0.029842451214790344, 0.01881251111626625 ]
[ 0.053284723311662674, 0.05913667380809784, 0.006210905034095049, -0.00942650530487299, 0.019826913252472878, -0.03286619111895561, -0.020281095057725906, -0.006890369579195976, -0.012144877575337887, 0.003562851808965206, -0.04231496900320053, -0.018702300265431404, 0.0407811775803566, -0.014409766532480717, -0.028946438804268837, -0.021889662370085716, -0.0002972842485178262, 0.04079803079366684, 0.006156948860734701, 0.004169767256826162, -0.05231389030814171, -0.006502453237771988, 0.05635666102170944, 0.007249652873724699, 0.006369706708937883, 0.006910250522196293, -0.006112841423600912, -0.02341282367706299, 0.022977814078330994, -0.13530924916267395, 0.0266575887799263, 0.006109314970672131, 0.01806802675127983, -0.02810380794107914, 0.034932419657707214, 0.013015832751989365, 0.04504530504345894, 0.0296160951256752, -0.02388172037899494, 0.0031831110827624798, 0.02253505401313305, -0.015212362632155418, -0.0015224016970023513, -0.007605026010423899, -0.012189974077045918, -0.0030899476259946823, -0.02980940416455269, -0.06530870497226715, 0.021593529731035233, 0.012194935232400894, -0.0541379377245903, -0.02321212738752365, -0.020890692248940468, -0.021695399656891823, 0.03340320289134979, 0.002665335778146982, -0.00921223871409893, -0.013641509227454662, 0.04909801483154297, 0.04158518835902214, 0.03555205836892128, -0.023416170850396156, -0.08276384323835373, -0.02755713276565075, 0.00389387016184628, -0.015182432718575, -0.008861356414854527, 0.01707698218524456, -0.0316125825047493, 0.01981557160615921, -0.00003756758087547496, 0.014382073655724525, -0.0369509793817997, -0.047066494822502136, -0.031518761068582535, 0.04510075971484184, 0.050157710909843445, -0.0336240790784359, -0.03695228323340416, 0.03766864165663719, -0.044419705867767334, 0.04873211681842804, -0.002656754571944475, -0.05236276984214783, -0.06409310549497604, 0.045378878712654114, 0.028294773772358894, -0.01398754958063364, 0.041071273386478424, 0.004037782549858093, -0.01020068395882845, 0.01849967986345291, -0.03804481402039528, -0.037612270563840866, -0.04570518806576729, -0.01849341206252575, 0.014095400460064411, -0.01608482003211975, 0.01978190615773201, 0.7983047962188721, 0.0025313966907560825, 0.019109997898340225, 0.013396153226494789, 0.004287291318178177, 0.041342854499816895, 0.01905982755124569, 0.006153122056275606, 0.02141646295785904, -0.012665429152548313, 0.009792528115212917, -0.004552558530122042, -0.02777283266186714, -0.006922842003405094, 0.02446727082133293, 0.010183729231357574, -0.011291004717350006, 0.028441308066248894, -0.032597895711660385, -0.020096903666853905, 0.001854641130194068, 0.02731744386255741, 0.005872615613043308, 0.04602082818746567, -0.00897495448589325, -0.012861098162829876, -0.16814133524894714, -0.026143912225961685, -6.64057917677825e-33, 0.03558811917901039, -0.05117014795541763, 0.051680538803339005, 0.012641985900700092, 0.041368868201971054, 0.01774204708635807, -0.003257853677496314, -0.0276466216892004, -0.029814070090651512, -0.029267283156514168, -0.026706285774707794, -0.02381354756653309, -0.04922154173254967, 0.01689441315829754, 0.00047742019523866475, -0.03305542841553688, 0.005219774786382914, 0.02397790551185608, -0.03910995274782181, 0.026060253381729126, -0.004083666484802961, 0.016968877986073494, -0.05537986382842064, 0.028110355138778687, 0.025242064148187637, -0.003932263236492872, 0.058958593755960464, -0.036374371498823166, -0.002948220819234848, -0.04365341737866402, -0.05449484661221504, -0.0040563298389315605, -0.005195177160203457, -0.04006573557853699, -0.002613261342048645, -0.05515480786561966, -0.03228471055626869, 0.005427180789411068, -0.025357993319630623, -0.008888616226613522, -0.01775701530277729, -0.016250470653176308, -0.006220849696546793, -0.008497348055243492, -0.0010408000089228153, -0.026092523708939552, 0.021795950829982758, 0.028792979195713997, 0.0007189448224380612, 0.03535044193267822, 0.053269919008016586, 0.03660719841718674, 0.011929085478186607, 0.02776244841516018, -0.04700157046318054, -0.0025780629366636276, -0.037279967218637466, -0.013269501738250256, 0.0063110352493822575, -0.008974434807896614, -0.006655672565102577, 0.04095104709267616, -0.024829212576150894, 0.02293759025633335, 0.02491903305053711, 0.04678865149617195, 0.010444726794958115, 0.03566184639930725, -0.004752389155328274, 0.09091725945472717, -0.044777076691389084, -0.007054584100842476, -0.011454393155872822, -0.01157750841230154, 0.034235816448926926, -0.023748615756630898, -0.009745681658387184, 0.007136787753552198, 0.006864897906780243, 0.04788566753268242, -0.037825580686330795, 0.01687515340745449, -0.022106584161520004, -0.013309084810316563, -0.009530408307909966, -0.007777919992804527, 0.029351644217967987, 0.04498712718486786, -0.0011910977773368359, 0.04620194062590599, 0.04582998901605606, 0.011542054824531078, -0.048349879682064056, 0.00013761667651124299, -0.06451956927776337, 6.033394834934275e-33, 0.004848375450819731, -0.02459552325308323, -0.02595716156065464, 0.027544710785150528, -0.012317833490669727, -0.0016453384887427092, 0.02293047122657299, -0.044232070446014404, -0.021045709028840065, -0.008760547265410423, -0.0018549998058006167, 0.03347593918442726, -0.014556080102920532, 0.031548332422971725, 0.024023616686463356, -0.01615326851606369, 0.01931743510067463, -0.05333822965621948, -0.016720429062843323, 0.012015646323561668, 0.004621762316673994, 0.01442138385027647, 0.007764306850731373, 0.018339965492486954, 0.010053959675133228, 0.00007650882616871968, 0.04136804863810539, 0.02323979325592518, -0.019717464223504066, -0.00999486818909645, 0.012041689828038216, -0.0242790337651968, -0.005590619519352913, 0.013850638642907143, 0.008750024251639843, 0.01500710565596819, -0.026159025728702545, 0.05007947236299515, -0.01648142747581005, 0.0002716091403272003, 0.022241642698645592, 0.0027708779089152813, -0.02568204328417778, 0.07286659628152847, 0.014675316400825977, 0.003727724775671959, 0.022456275299191475, -0.014290080405771732, 0.0062949880957603455, 0.015954023227095604, 0.0014220530865713954, 0.010453466325998306, 0.02479945681989193, 0.009847758337855339, 0.023549716919660568, -0.06376222521066666, -0.02322491817176342, 0.0008380011422559619, -0.030730998143553734, 0.025260446593165398, -0.027490338310599327, -0.013728098943829536, 0.05696640908718109, 0.013993234373629093, -0.027764426544308662, -0.005564466118812561, -0.02800760418176651, 0.01505510788410902, -0.035117704421281815, -0.010636096820235252, 0.04853304475545883, 0.008260320872068405, -0.015408102422952652, 0.05016373470425606, 0.016727840527892113, -0.013531558215618134, -0.010111111216247082, -0.006306764204055071, -0.026161260902881622, 0.015101127326488495, -0.01778206042945385, 0.06362082064151764, 0.005275484174489975, -0.022404750809073448, 0.012022865936160088, 0.019826188683509827, -0.015760162845253944, 0.016195692121982574, 0.012324637733399868, 0.006765630096197128, 0.05196566507220268, -0.009328808635473251, -0.04596100002527237, 0.053875986486673355, -0.039539821445941925, -1.2068797516917584e-8, -0.0015073522226884961, 0.025262491777539253, 0.010532144457101822, 0.03744785487651825, -0.013476193882524967, 0.0011643851175904274, -0.004717029631137848, 0.013505152426660061, -0.016523554921150208, -0.004835106432437897, 0.010691688396036625, -0.025567539036273956, -0.01855134218931198, 0.014067953452467918, 0.03242586553096771, -0.004607332404702902, 0.0003586148377507925, 0.014835995621979237, 0.013938965275883675, -0.02948395162820816, -0.02696419693529606, 0.03911299258470535, 0.017062027007341385, -0.003994822967797518, -0.05201336741447449, -0.02650412544608116, 0.028548656031489372, -0.0668509230017662, -0.0036245742812752724, -0.009295172989368439, 0.0371541902422905, -0.008345977403223515, -0.08217012882232666, 0.03778109326958656, -0.002404484897851944, -0.05897451564669609, -0.0003484608605504036, 0.04030857980251312, 0.0196913443505764, 0.019290821626782417, -0.04909389466047287, -0.02149571292102337, -0.004524749703705311, -0.05041554570198059, -0.06922907382249832, 0.012127147987484932, -0.029341766610741615, -0.010342346504330635, 0.02042320743203163, 0.0031946746166795492, 0.043096743524074554, 0.01978379301726818, 0.016360273584723473, 0.045219484716653824, 0.028431175276637077, 0.004337011370807886, 0.004339956678450108, -0.02617022767663002, -0.01256158109754324, -0.05047295242547989, 0.026353932917118073, 0.019456589594483376, -0.0047368877567350864, 0.007081752177327871 ]
docker-building-custom-neo4j-images-on-mac-os-x
https://markhneedham.com/blog/2017/07/26/docker-building-custom-neo4j-images-on-mac-os-x
false
2017-09-29 06:09:58
Serverless: S3 - S3BucketPermissions - Action does not apply to any resource(s) in statement
[ "aws", "s3", "serverless" ]
[ "Software Development" ]
I've been playing around with S3 buckets with https://serverless.com/[Serverless], and recently wrote the following code to create an S3 bucket and put a file into that bucket: [source,javascript] ---- const AWS = require("aws-sdk"); let regionParams = { 'region': 'us-east-1' } let s3 = new AWS.S3(regionParams); let s3BucketName = "marks-blog-bucket"; console.log("Creating bucket: " + s3BucketName); let bucketParams = { Bucket: s3BucketName, ACL: "public-read" }; s3.createBucket(bucketParams).promise() .then(console.log) .catch(console.error); var putObjectParams = { Body: "<html><body><h1>Hello blog!</h1></body></html>", Bucket: s3BucketName, Key: "blog.html" }; s3.putObject(putObjectParams).promise() .then(console.log) .catch(console.error); ---- When I tried to cURL the file I got a permission denied exception: [source,bash] ---- $ curl --head --silent https://s3.amazonaws.com/marks-blog-bucket/blog.html HTTP/1.1 403 Forbidden x-amz-request-id: 512FE36798C0BE4D x-amz-id-2: O1ELGMJ0jjs11WCrNiVNF2z2ssRgtO4+M4H2QQB5025HjIpC54VId0eKZryYeBYN8Pvb8GsolTQ= Content-Type: application/xml Transfer-Encoding: chunked Date: Fri, 29 Sep 2017 05:42:03 GMT Server: AmazonS3 ---- I wrote the following code to try and have Serverless create a bucket policy that would make all files in my bucket publicly accessible: +++<cite>+++serverless.yml+++</cite>+++ [source,yaml] ---- service: marks-blog frameworkVersion: ">=1.2.0 <2.0.0" provider: name: aws runtime: python3.6 timeout: 180 resources: Resources: S3BucketPermissions: Type: AWS::S3::BucketPolicy Properties: Bucket: marks-blog-bucket PolicyDocument: Statement: - Principal: "*" Action: - s3:GetObject Effect: Allow Sid: "AddPerm" Resource: arn:aws:s3:::marks-blog-bucket ... ---- Let's try to deploy it: [source,bash] ---- ./node_modules/serverless/bin/serverless deploy Serverless: Packaging service... Serverless: Excluding development dependencies... Serverless: Uploading CloudFormation file to S3... Serverless: Uploading artifacts... Serverless: Uploading service .zip file to S3 (1.3 KB)... Serverless: Validating template... Serverless: Updating Stack... Serverless: Checking Stack update progress... ........ Serverless: Operation failed! Serverless Error --------------------------------------- An error occurred: S3BucketPermissions - Action does not apply to any resource(s) in statement. ---- D'oh! That didn't do what I expected. I learnt that https://stackoverflow.com/questions/44228422/s3-bucket-action-doesnt-apply-to-any-resources[this message means]: ____ Some services do not let you specify actions for individual resources; instead, any actions that you list in the Action or NotAction element apply to all resources in that service. In these cases, you use the wildcard * in the Resource element. ____ To fix it we need to use the wildcard * to indicate that the s3:GetObject permission should apply to all values in the bucket rather than to the bucket itself. Take 2! +++<cite>+++serverless.yml+++</cite>+++ [source,yaml] ---- service: marks-blog frameworkVersion: ">=1.2.0 <2.0.0" provider: name: aws runtime: python3.6 timeout: 180 resources: Resources: S3BucketPermissions: Type: AWS::S3::BucketPolicy Properties: Bucket: marks-blog-bucket PolicyDocument: Statement: - Principal: "*" Action: - s3:GetObject Effect: Allow Sid: "AddPerm" Resource: arn:aws:s3:::marks-blog-bucket/* ... ---- Let's deploy again and try to access the file: [source,bash] ---- $ curl --head --silent https://s3.amazonaws.com/marks-blog-bucket/blog.html HTTP/1.1 200 OK x-amz-id-2: uGwsLLoFHf+slXADGYkqW0bLfQ7EPG/kqzV3l2k7SMex4NlMEpNsNN/cIC9INLPohDtVFwUAa90= x-amz-request-id: 7869E21760CD50F1 Date: Fri, 29 Sep 2017 06:05:11 GMT Last-Modified: Fri, 29 Sep 2017 06:01:33 GMT ETag: "57bac87219812c2f9a581943da34cfde" Accept-Ranges: bytes Content-Type: application/octet-stream Content-Length: 46 Server: AmazonS3 ---- Success! And if we check in the AWS console we can see that the bucket policy has been applied to our bucket: image::{{<siteurl>}}/uploads/2017/09/2017-09-29_07-06-13.png[2017 09 29 07 06 13,285]
Learn what the "S3BucketPermissions - Action does not apply to any resource(s) in statement" error message means & how to apply permissions on S3.
null
[ 0.011654563248157501, -0.029901927337050438, -0.043022867292165756, 0.030674615874886513, 0.07295004278421402, 0.01867174357175827, 0.014772399328649044, 0.007973028346896172, 0.001544914091937244, 0.0022926589008420706, -0.010376998223364353, -0.04100101441144943, -0.07045284658670425, 0.027532877400517464, -0.029343008995056152, 0.05242081359028816, 0.07099749892950058, 0.012749548070132732, 0.00796413328498602, -0.001828548265621066, 0.0002985730243381113, 0.05704161897301674, -0.004423381295055151, 0.018892338499426842, 0.03572504594922066, 0.016745783388614655, 0.010126686654984951, -0.005308606196194887, -0.06243336945772171, -0.007847534492611885, 0.0538458377122879, 0.010919865220785141, 0.0035531683824956417, -0.008747448213398457, 0.010995821096003056, -0.04443319886922836, -0.03303378447890282, 0.009095008485019207, -0.019395744428038597, 0.047856833785772324, -0.0701947808265686, 0.020118439570069313, -0.018508879467844963, 0.0073287878185510635, -0.028719991445541382, 0.008231335319578648, -0.011659759096801281, 0.03280634433031082, -0.001275758258998394, 0.029358426108956337, -0.07293830066919327, 0.021803611889481544, -0.0493498258292675, -0.029438773170113564, 0.005680909845978022, 0.040808700025081635, 0.01594868302345276, -0.06883931905031204, 0.06406019628047943, -0.06576381623744965, -0.010282163508236408, -0.0062763444148004055, 0.02613210119307041, 0.009720982052385807, 0.020969493314623833, -0.016859835013747215, -0.02845575660467148, 0.06485199183225632, -0.035162441432476044, -0.048421330749988556, 0.028977498412132263, -0.022061830386519432, -0.045344941318035126, -0.007647413294762373, 0.01156302634626627, -0.053526174277067184, -0.033885907381772995, 0.07717552781105042, 0.023164071142673492, 0.07885660231113434, -0.015021792612969875, 0.020886851474642754, 0.010499878786504269, 0.0012933318503201008, 0.006566748488694429, -0.019445808604359627, -0.03964585065841675, 0.013412661850452423, -0.014699919149279594, 0.07585129886865616, 0.05918649584054947, -0.0436398945748806, 0.02925531193614006, 0.019432175904512405, 0.014956689439713955, 0.013048012740910053, 0.0016557587077841163, -0.0013420318718999624, -0.009053891524672508, -0.005571057088673115, -0.05902926251292229, -0.0005701748305000365, -0.002572418190538883, -0.023793386295437813, -0.05042125657200813, 0.017248941585421562, -0.013930853456258774, -0.017100375145673752, 0.03271808847784996, -0.017030946910381317, 0.01674572378396988, -0.0011446663411334157, -0.016378341242671013, 0.006394489202648401, -0.07401331514120102, 0.06440134346485138, 0.016559036448597908, -0.04686330258846283, -0.021659379824995995, 0.02345542050898075, 0.060378946363925934, 0.0016633478226140141, -0.014273795299232006, 0.06222572922706604, 0.0159800685942173, 0.020246071740984917, 0.010938012041151524, 0.03128649666905403, -0.006680611986666918, -0.07238297164440155, -0.04252086579799652, 0.06960606575012207, 0.01588154025375843, 0.015150675550103188, -0.034631405025720596, 0.027954693883657455, -0.03540544584393501, 0.008730919100344181, 0.06511512398719788, 0.020191863179206848, -0.012921501882374287, -0.012770075350999832, -0.002467297250404954, -0.03510396555066109, 0.0375981479883194, 0.011107859201729298, 0.0318879559636116, -0.039356086403131485, -0.0660237967967987, 0.01583707705140114, 0.03600888326764107, 0.025200776755809784, 0.044852644205093384, -0.03462610021233559, -0.001906723715364933, 0.08415881544351578, 0.04545169696211815, 0.01013871282339096, -0.013582704588770866, -0.01724180392920971, 0.07209889590740204, 0.04055764526128769, -0.010971303097903728, 0.04102364555001259, -0.002256547100841999, -0.01862889714539051, 0.012550518848001957, 0.04311037063598633, 0.000021125131752341986, -0.031132929027080536, -0.06418871879577637, -0.02459101565182209, 0.0657358467578888, 0.0015422351425513625, 0.0212735403329134, 0.02259625867009163, 0.07519552856683731, -0.002703341655433178, 0.04083880037069321, 0.016652787104249, -0.0767800584435463, 0.05699552968144417, 0.016978560015559196, 0.03582736477255821, 0.042332667857408524, 0.008307432755827904, 0.07204142957925797, 0.04939446225762367, 0.011967661790549755, 0.051049958914518356, -0.08364072442054749, -0.10362471640110016, -0.03564923629164696, 0.021683339029550552, 0.06742774695158005, -0.023627828806638718, 0.015560422092676163, 0.08238319307565689, 0.02923583798110485, 0.026005644351243973, -0.009559542872011662, -0.03224942088127136, 0.018372761085629463, -0.03011937066912651, -0.06876218318939209, 0.04518763720989227, 0.002921514678746462, -0.022554859519004822, -0.013329006731510162, 0.024035334587097168, -0.03836090862751007, 0.028695395216345787, 0.03298347815871239, -0.03780659660696983, 0.019764410331845284, 0.01949991099536419, 0.045448288321495056, -0.04280124977231026, 0.05250578746199608, -0.04170401766896248, 0.043333590030670166, 0.010899391025304794, -0.0034623630344867706, -0.00724935345351696, -0.004498053342103958, 0.09834375232458115, 0.043905872851610184, -0.00007246770110214129, -0.03685604780912399, 0.016681630164384842, -0.027265600860118866, -0.05437711998820305, -0.007860713638365269, -0.041042838245630264, -0.02729867398738861, 0.03024422377347946, 0.0004499053757172078, -0.012457000091671944, -0.017483748495578766, -0.03309674561023712, 0.03340237960219383, 0.08471853286027908, 0.0008234955021180212, 0.03401629254221916, 0.004034516401588917, 0.004776121582835913, -0.008675702847540379, -0.04062221199274063, -0.039852216839790344, 0.0031520805787295103, -0.0037696328945457935, -0.01133663672953844, 0.007794123608618975, -0.025334304198622704, -0.03478141129016876, -0.014308981597423553, -0.03825593739748001, 0.034164909273386, 0.024797530844807625, 0.048036571592092514, -0.03613816574215889, 0.03408719599246979, -0.05698901042342186, 0.019692949950695038, -0.0240896325558424, -0.03369844704866409, -0.05872437357902527, -0.00860600359737873, 0.008973378688097, 0.030820535495877266, 0.022589106112718582, 0.0089103439822793, 0.029002243652939796, 0.001281190779991448, 0.014373059384524822, -0.018646081909537315, 0.039864134043455124, -0.03155427426099777, 0.0073809693567454815, -0.026737753301858902, -0.005772997159510851, 0.03840489685535431, -0.025418061763048172, -0.02269679307937622, 0.00010707775800256059, -0.0478503480553627, 0.05478723719716072, -0.08616743236780167, -0.03880182281136513, -0.03300673887133598, 0.0568847693502903, 0.013421256095170975, 0.023887965828180313, 0.032280318439006805, 0.07411842793226242, -0.010357498191297054, 0.003443861613050103, -0.004883940331637859, 0.03971190005540848, 0.05661102384328842, -0.027824504300951958, 0.010616791434586048, 0.02731112390756607, -0.022888217121362686, 0.0018622026545926929, -0.03823288902640343, 0.022705376148223877, -0.03285212069749832, -0.2615146338939667, 0.06875492632389069, 0.01751829870045185, -0.024747008457779884, 0.021491102874279022, 0.0013304861495271325, 0.018021736294031143, -0.034886907786130905, -0.002142955781891942, 0.03892188519239426, -0.0001670289202593267, -0.0220562145113945, 0.008688259869813919, 0.02268970012664795, 0.009757036343216896, 0.025821855291724205, -0.028908416628837585, -0.044706907123327255, 0.01488888543099165, -0.011959219351410866, -0.055654801428318024, -0.050455570220947266, 0.019901933148503304, 0.02770138345658779, 0.06883060932159424, 0.027956783771514893, -0.041377775371074677, 0.05950843542814255, -0.03794444724917412, -0.033267103135585785, 0.01547484565526247, -0.04656682163476944, 0.01754017546772957, -0.014156040735542774, -0.023739540949463844, -0.028579682111740112, 0.037234362214803696, 0.01672348752617836, 0.022146856412291527, 0.014800811186432838, -0.03238214552402496, -0.06147827208042145, -0.013774984516203403, 0.0031646948773413897, 0.07420054078102112, -0.051435716450214386, -0.044700413942337036, -0.0252227820456028, -0.05390195548534393, 0.08244924992322922, -0.02645898424088955, -0.05286569893360138, -0.003053196705877781, 0.044565144926309586, -0.004977090749889612, 0.004421637859195471, -0.02549191378057003, 0.008471525274217129, -0.031180672347545624, -0.023541636765003204, 0.03903656825423241, -0.03337083011865616, -0.022574208676815033, -0.041128020733594894, -0.007009331602603197, -0.05159555375576019, -0.04000157117843628, -0.02944452501833439, 0.06615503877401352, 0.028600353747606277, 0.015142248943448067, 0.010582748800516129, -0.010043734684586525, -0.11332131922245026, -0.03132648393511772, -0.06809910386800766, -0.03162941336631775, 0.007256899494677782, -0.026933690533041954, 0.05783398076891899, -0.03708718717098236, -0.029761679470539093, 0.04379348084330559, 0.0323827862739563, 0.015566804446280003, 0.0021234347950667143, 0.02658984251320362, -0.031219366937875748, -0.01650186814367771, -0.0203129593282938, 0.07871006429195404, -0.019300466403365135, -0.04124688729643822, -0.012850235216319561, -0.017550164833664894, 0.031504109501838684, -0.0014322303468361497, 0.01942172460258007, -0.02253418229520321, 0.020990660414099693, 0.032815925776958466, -0.019697114825248718, 0.011774679645895958, -0.04096571356058121, -0.0023231511004269123, 0.005787176080048084, -0.04502664506435394, 0.030318589881062508, 0.024346373975276947, 0.014170976355671883, 0.009851811453700066, -0.009437854401767254, 0.02507815696299076, -0.06334030628204346, -0.04440687596797943, 0.0035987666342407465, -0.009914844296872616, 0.004529334604740143, 0.04557599872350693, -0.041972819715738297, -0.04224788770079613, 0.010500764474272728, 0.06247204542160034, -0.014620384201407433, -0.031316302716732025, -0.03756440803408623, -0.0003172052383888513, 0.015954991802573204, 0.009616809897124767, -0.014436864294111729, 0.014161183498799801, 0.042068298906087875, 0.01153843104839325, -0.03143051266670227, 0.008254588581621647, -0.034142278134822845, -0.030270075425505638, -0.06126623600721359, 0.03419579192996025, 0.02500777132809162, -0.006840649992227554, 0.011272315867245197, -0.01322595588862896, 0.05581953749060631, 0.04488413780927658, -0.0014733178541064262, 0.03227831423282623, 0.016405126079916954, 0.0012252033920958638, -0.02996562048792839, -0.020106403157114983, -0.0600699819624424, 0.03680313751101494, -0.03613199293613434, -0.04805479943752289, -0.02024015411734581, 0.03922843188047409, -0.01893707364797592, -0.02311435341835022, -0.03430076688528061, 0.01630229689180851, -0.04778667539358139, -0.023045439273118973, -0.026125511154532433, 0.012840251438319683, 0.04382995888590813, 0.001928660087287426, 0.029431652277708054, -0.008877919055521488, -0.01677182875573635, 0.01802911050617695, -0.0035223776940256357, -0.0152053227648139, 0.005597937386482954, -0.030552484095096588, 0.023370366543531418, 0.011106559075415134, 0.015905719250440598, -0.016669394448399544, 0.02900334820151329, 0.0016508286353200674, -0.008650781586766243, 0.02977847307920456, 0.010687771253287792, 0.038959041237831116, 0.022456005215644836, 0.011739278212189674, 0.021439921110868454, -0.028647273778915405, 0.005475054960697889, -0.022309400141239166, -0.019706258550286293, -0.008624676614999771, 0.05212647467851639, -0.013991556130349636, -0.07183489948511124, 0.0426180399954319, 0.012148480862379074, -0.015105285681784153, 0.007577060256153345, -0.022097866982221603, 0.01972287707030773, -0.03726078197360039, 0.03563214838504791, 0.04754830524325371, -0.06310618668794632, 0.011125240474939346, 0.010836051777005196, 0.032303571701049805, 0.007433788385242224, 0.012352952733635902, -0.047459330409765244, -0.04580553248524666, -0.011050700210034847, 0.0373171865940094, -0.0120253786444664, -0.038789570331573486, -0.021359562873840332, 0.01037212461233139, -0.01901848241686821, 0.006843643728643656, 0.022765377536416054, 0.014641698449850082, -0.04013662412762642, -0.03766239434480667, 0.03323710337281227, -0.05368160456418991, -0.014156479388475418, 0.013320055790245533, 0.00034184238757006824, -0.006861350033432245, -0.014526398852467537, -0.0024387892335653305, 0.019039109349250793, -0.010174261406064034, -0.010185815393924713, -0.013566193170845509, 0.023365197703242302, -0.024228516966104507, 0.05712446570396423, -0.006185774225741625, -0.004373789764940739, -0.020845485851168633, -0.011463535018265247, -0.03680071234703064, 0.0004859700275119394, -0.028268758207559586, -0.0010530984727665782, 0.03889048844575882, 0.05213738977909088, 0.003865052480250597, -0.0038247178308665752, 0.004643382970243692, -0.016200827434659004, 0.06527772545814514, -0.04944204166531563, -0.013150463812053204, -0.013533162884414196, -0.05024081468582153, 0.03550927713513374, -0.006184999365359545, 0.010120599530637264, -0.07304522395133972, 0.0572703555226326, 0.02670181915163994, 0.00924429390579462, 0.043136730790138245, -0.02703740820288658, 0.0194013100117445, -0.03287516534328461, -0.003337827045470476, -0.07702943682670593, 0.032273367047309875, -0.0060854023322463036, -0.018311351537704468, -0.017305811867117882, -0.023369599133729935, -0.04532487690448761, 0.022859914228320122, -0.06943848729133606, -0.047363754361867905, 0.05327684432268143, -0.02627253718674183, 0.0128934970125556, 0.009220881387591362, -0.038305219262838364, 0.01378594245761633, 0.04009367898106575, -0.03923717886209488, -0.023463699966669083, -0.019987046718597412, 0.031689323484897614, 0.01165975071489811, 0.01548550371080637, -0.014696954749524593, -0.054064780473709106, 0.06715300679206848, 0.007188242860138416, -0.00029615277890115976, 0.04086616635322571, -0.02742859534919262, 0.011757620610296726, 0.011070557869970798, -0.01093339640647173, 0.025756873190402985, 0.004987895954400301, -0.025945736095309258, -0.04380137845873833, 0.017218509688973427, 0.010460725985467434, -0.022643882781267166, -0.045102719217538834, 0.0360623374581337, 0.0027999253943562508, -0.04996063932776451, -0.08633025735616684, 0.02323162369430065, -0.04187176376581192, -0.02776503376662731, -0.04115128517150879, -0.022752702236175537, -0.015205759555101395, 0.046542584896087646, 0.012406611815094948, 0.010275395587086678, 0.07718093693256378, -0.0032270345836877823, -0.003775013843551278, 0.01776946149766445, 0.07860155403614044, 0.06623774021863937, 0.0004470947023946792, -0.022324051707983017, 0.05864524841308594, -0.010012943297624588, -0.02874978445470333, -0.0012848578626289964, -0.035112738609313965, -0.020423049107193947, -0.007876955904066563, -0.0018958712462335825, 0.0612507238984108, -0.010218195617198944, 0.04969432204961777, -0.04749191924929619, -0.01775994338095188, -0.009188858792185783, 0.02797725982964039, 0.03359679505228996, 0.023323727771639824, 0.0212872214615345, 0.014202396385371685, 0.01695648394525051, -0.03839597478508949, -0.005287949927151203, -0.0010930628050118685, -0.018118388950824738, -0.007245364133268595, -0.029741249978542328, -0.017190376296639442, 0.016655554994940758, 0.007477282080799341, 0.0639362558722496, 0.003529759356752038, 0.016375228762626648, -0.005207182373851538, 0.04203825443983078, 0.0005038055824115872, 0.034403685480356216, -0.03547237440943718, -0.02831510826945305, -0.02859083004295826, -0.03197559341788292, -0.023424522951245308, -0.006524368654936552, -0.036732617765665054, 0.03292150795459747, -0.01225272286683321, 0.006215985864400864, -0.0073712230660021305, -0.03564594313502312, -0.014729843474924564, -0.018218768760561943, -0.06550862640142441, -0.056842222809791565, -0.03895677626132965, 0.007481162901967764, 0.005287472624331713, 0.014536157250404358, -0.040164876729249954, -0.030987679958343506, 0.008490276522934437, 0.02962779998779297, 0.03924854099750519, -0.01972733996808529, -0.030630117282271385, 0.04201522469520569, -0.0006884552421979606, 0.012917997315526009, 0.037951912730932236, 0.033845800906419754, -0.03201855719089508, -0.000022512138457386754, -0.031994547694921494, 0.004790386650711298, 0.05772049352526665, -0.0096227265894413, 0.02286975458264351, -0.0750771090388298, 0.01607496477663517, 0.027825823053717613, 0.020052043721079826, -0.05507257953286171, 0.0023277890868484974, 0.04716681316494942, 0.001351678278297186, 0.0889635682106018, -0.01874975860118866, 0.005547276232391596, -0.05031116306781769, -0.026670806109905243, -0.015675831586122513, -0.022720027714967728, 0.058662522584199905, 0.013685821555554867, 0.10236301273107529, 0.05479014292359352, -0.032224398106336594, -0.03467768430709839, 0.0007806564681231976, -0.05075101554393768, 0.023940425366163254, -0.05648057907819748, -0.029014840722084045, -0.02325528673827648, -0.07971778512001038, -0.05085954815149307, 0.031031234189867973, -0.025615984573960304, -0.012879502959549427, -0.005382036790251732, 0.013704407960176468, -0.07809801399707794, 0.011623701080679893, -0.05118770897388458, 0.049608856439590454, -0.009253132157027721, 0.0013786618364974856, -0.02929260954260826, 0.016272278502583504, 0.025876127183437347, -0.04039934650063515, 0.04155385121703148, -0.03505387529730797, 0.005781212355941534, -0.0011541538406163454, 0.023608120158314705, 0.07053851336240768, -0.005779499653726816, 0.06514238566160202 ]
[ -0.041303254663944244, -0.09140592813491821, -0.06409585475921631, -0.030774202197790146, 0.09286444634199142, -0.06360762566328049, -0.02388737164437771, -0.02557222731411457, -0.010703460313379765, 0.03970588371157646, 0.03140181303024292, -0.05385225638747215, 0.024723287671804428, -0.046069275587797165, 0.062266893684864044, 0.0420481339097023, -0.021060315892100334, -0.04650651291012764, -0.09286496788263321, 0.06277686357498169, 0.023583393543958664, -0.01599142700433731, -0.0535057932138443, -0.02307410165667534, -0.016865551471710205, 0.017565172165632248, 0.027238598093390465, -0.04456641897559166, -0.04554862901568413, -0.1922517567873001, 0.009476753883063793, -0.062190424650907516, -0.011465594172477722, -0.0006424012244679034, 0.02648056112229824, 0.009748677723109722, 0.05100589990615845, -0.0015791020123288035, -0.012237082235515118, 0.01916562393307686, 0.017176518216729164, 0.04032408446073532, -0.0471985787153244, -0.029192790389060974, -0.0035209518391638994, -0.041975442320108414, 0.0036225528456270695, -0.006583184469491243, 0.005114311818033457, 0.0127434516325593, -0.0409734733402729, -0.020059237256646156, -0.010182736441493034, -0.04661642387509346, 0.009350182488560677, 0.045983798801898956, 0.020609429106116295, 0.0775495171546936, -0.004721862263977528, 0.012174725532531738, 0.010019555687904358, 0.0030206693336367607, -0.1241668164730072, 0.08447007834911346, 0.05041567608714104, 0.08243148028850555, -0.029477300122380257, -0.034199412912130356, -0.03043186292052269, 0.025889383628964424, -0.0030373765621334314, -0.007842246443033218, -0.04247523844242096, 0.11250031739473343, 0.004664227832108736, 0.00971317570656538, 0.001829147688113153, 0.036085523664951324, 0.03689826652407646, -0.03042682260274887, -0.06319081038236618, -0.036973655223846436, -0.001604758552275598, 0.04802703484892845, -0.031685277819633484, -0.037671539932489395, 0.011014373041689396, 0.07249995321035385, 0.009584223851561546, 0.030567677691578865, -0.008925525471568108, -0.025580521672964096, 0.0434735082089901, 0.004936940036714077, -0.11715751886367798, 0.006258062086999416, -0.016156021505594254, 0.023246383294463158, -0.04944168031215668, 0.40869686007499695, -0.031386639922857285, 0.01157410629093647, 0.03562518581748009, -0.007351401261985302, 0.016455017030239105, 0.03009016253054142, 0.0038141144905239344, -0.04246928170323372, 0.023505138233304024, -0.009760293178260326, 0.01619735173881054, -0.00021828076569363475, 0.0034203396644443274, -0.05728551000356674, -0.00940253958106041, 0.039740219712257385, 0.006636845879256725, 0.024301346391439438, -0.035175565630197525, 0.011247643269598484, -0.023920875042676926, 0.020858021453022957, 0.04640006273984909, 0.029206974431872368, -0.020021237432956696, 0.02591930516064167, 0.07401688396930695, 0.058791182935237885, 0.04618387296795845, 0.038961295038461685, 0.017708173021674156, -0.013491428457200527, -0.08830419182777405, -0.031208237633109093, -0.0024561802856624126, 0.023218952119350433, -0.017465539276599884, -0.06272881478071213, 0.005266520194709301, -0.0038064634427428246, 0.0017752016428858042, -0.03538213297724724, 0.007775269914418459, -0.020488709211349487, 0.008105293847620487, 0.07408535480499268, 0.005797533318400383, -0.02437213994562626, -0.04239234700798988, -0.050037071108818054, 0.004639175720512867, 0.036322250962257385, 0.020983822643756866, -0.03691616654396057, 0.017707983031868935, 0.008456375449895859, 0.0523248016834259, 0.008757704868912697, -0.04890922084450722, 0.00198868359439075, -0.01155038084834814, -0.0431554801762104, -0.026565231382846832, 0.03378789499402046, 0.012226970866322517, -0.11751872301101685, 0.019090089946985245, 0.023209791630506516, 0.0091341407969594, -0.021476823836565018, 0.008813056163489819, 0.011253400705754757, -0.045995086431503296, -0.045056525617837906, 0.020460078492760658, -0.020665321499109268, -0.017827235162258148, 0.01028450671583414, 0.021364064887166023, 0.029201235622167587, -0.0508902408182621, -0.004754220135509968, -0.005971281323581934, -0.010500206612050533, -0.05623061582446098, -0.09220869094133377, -0.052328720688819885, 0.03122446872293949, -0.020038459450006485, -0.005762638058513403, -0.0432366281747818, 0.01941860094666481, -0.044779032468795776, 0.030382400378584862, 0.02966086007654667, -0.023460477590560913, 0.03377816453576088, -0.005179236177355051, 0.008223998360335827, -0.040144115686416626, 0.09935574978590012, 0.04018513485789299, -0.015806160867214203, 0.03593188896775246, -0.04925711080431938, 0.015523322857916355, 0.07731278240680695, -0.03770780563354492, 0.020923875272274017, 0.03396507352590561, -0.04035576432943344, 0.046294014900922775, -0.03156158700585365, 0.005339394323527813, -0.008154348470270634, -0.003291917499154806, 0.0001882254728116095, 0.0004557932843454182, -0.003903440898284316, 0.017438912764191628, -0.03906438499689102, 0.0164013858884573, -0.016799503937363625, -0.3241891860961914, -0.004475888796150684, -0.002997076604515314, 0.0074277049861848354, 0.023513345047831535, -0.027230150997638702, 0.022681722417473793, 0.01398497261106968, -0.043197933584451675, 0.024009160697460175, 0.13097727298736572, -0.056544940918684006, 0.010563046671450138, -0.02629236690700054, 0.0008921801927499473, -0.007085429970175028, -0.05907900631427765, -0.026905393227934837, -0.0032990158069878817, 0.05016101524233818, -0.03894156962633133, -0.012970544397830963, 0.007536518853157759, -0.022058559581637383, 0.013391620479524136, -0.019933929666876793, 0.1328659951686859, 0.017151111736893654, 0.08144563436508179, -0.07570295035839081, 0.061409514397382736, 0.004019570536911488, 0.018445422872900963, -0.1051267758011818, -0.011528470553457737, 0.0026603401638567448, -0.03322670981287956, 0.010164357721805573, 0.04158250615000725, -0.008932369761168957, -0.03948386013507843, 0.05799797922372818, -0.017491552978754044, -0.04253838211297989, 0.03104480542242527, -0.03655810281634331, -0.007027228828519583, 0.010699457488954067, -0.014440235681831837, 0.03499455749988556, -0.00782228447496891, 0.008562181144952774, 0.009751529432833195, 0.029263395816087723, 0.04973283037543297, -0.0007030865526758134, -0.045263711363077164, -0.014417986385524273, -0.002138541778549552, 0.007969790138304234, 0.0280721765011549, 0.033813200891017914, 0.037887413054704666, -0.03696718066930771, 0.004170380532741547, -0.036832332611083984, -0.01600058749318123, 0.043191518634557724, -0.004109769593924284, -0.03693174943327904, -0.019119050353765488, 0.1051897257566452, 0.00803200900554657, 0.06916122883558273, 0.004495079629123211, 0.024165749549865723, -0.005276471376419067, -0.02912348136305809, 0.01977679505944252, -0.02513435296714306, 0.04322078451514244, -0.023774877190589905, 0.037467554211616516, -0.03840949386358261, 0.025592820718884468, 0.0932714194059372, -0.04348628222942352, -0.001470964401960373, 0.05488524213433266, -0.014830686151981354, -0.03403559327125549, -0.04465409740805626, -0.07305175811052322, -0.06650890409946442, 0.0879117026925087, -0.030972136184573174, -0.26709988713264465, 0.004138550255447626, 0.014778905548155308, 0.0334707610309124, 0.02603788487613201, 0.03777944669127464, 0.0484781488776207, -0.046565886586904526, 0.009408670477569103, 0.017872219905257225, -0.0007047299877740443, 0.053577721118927, -0.02769199199974537, 0.036580365151166916, 0.05195075646042824, -0.002418758813291788, 0.01866249367594719, 0.02539878524839878, 0.02036644145846367, -0.016210129484534264, 0.02295723930001259, -0.0042346082627773285, 0.18382105231285095, 0.044737763702869415, -0.01340697892010212, 0.06122220680117607, 0.012910553254187107, 0.06863372027873993, 0.038691483438014984, 0.03290873020887375, -0.008711579255759716, -0.011476665735244751, 0.028894521296024323, 0.016932561993598938, 0.05264589563012123, -0.06394759565591812, -0.012425899505615234, 0.007268698886036873, 0.00967174582183361, -0.018424566835165024, -0.042525362223386765, 0.01001697313040495, 0.01212729886174202, 0.03011004813015461, 0.04399484768509865, -0.03639233484864235, -0.009978037327528, -0.0652233138680458, -0.017097266390919685, -0.01638283208012581, -0.03420587256550789, -0.03372945636510849, 0.006740432698279619, -0.012756709940731525, 0.015041590668261051, 0.07853321731090546, 0.058524321764707565, -0.02619711495935917, -0.0349610336124897, -0.012725061737000942, 0.012170618399977684, -0.05440545082092285, 0.0855603739619255, 0.019313493743538857, 0.015544256195425987 ]
[ 0.03798627853393555, 0.03711947798728943, -0.0349932461977005, 0.0004297157865948975, 0.038234271109104156, 0.0015739306109026074, -0.02076532691717148, -0.01165864523500204, 0.05345848575234413, -0.01773827336728573, -0.02718309871852398, 0.02355191484093666, 0.048415735363960266, -0.030372727662324905, 0.02488688938319683, -0.049337826669216156, -0.02297656051814556, 0.0038903565146028996, -0.00411280058324337, -0.043037671595811844, -0.016575878486037254, -0.0039032846689224243, 0.029224593192338943, 0.043466806411743164, 0.021916333585977554, 0.013383333571255207, -0.0891236960887909, -0.006542129907757044, 0.03340940549969673, -0.10132669657468796, 0.05173472687602043, -0.04259180277585983, 0.04907451942563057, -0.004878915846347809, 0.011866669170558453, 0.01564735919237137, 0.024157384410500526, -0.005539826117455959, -0.03752148896455765, 0.029986632987856865, 0.03746093809604645, 0.005378157831728458, 0.0003364857111591846, -0.04445324093103409, 0.0163503959774971, 0.02425059862434864, -0.028164729475975037, -0.03756862133741379, -0.01529542077332735, -0.0005605568294413388, -0.0037490532267838717, -0.03920288756489754, -0.0009467127383686602, -0.004400608595460653, -0.048931632190942764, 0.0049437424167990685, -0.029233520850539207, 0.03146225959062576, 0.01770135760307312, -0.04558709263801575, -0.002823705319315195, -0.04203324764966965, 0.0037658028304576874, 0.0048390100710093975, 0.06591631472110748, -0.010583150200545788, -0.024670936167240143, -0.03846172243356705, -0.010157209821045399, 0.051093198359012604, 0.025212865322828293, 0.021953146904706955, -0.06431736797094345, 0.029787098988890648, -0.0488554984331131, -0.004625049419701099, 0.05928612872958183, 0.026914330199360847, 0.003419062588363886, 0.030277853831648827, -0.05453915148973465, -0.014978122897446156, -0.029343925416469574, 0.04701808840036392, -0.08555222302675247, -0.04320130869746208, -0.027836831286549568, -0.006324003916233778, -0.01931740529835224, -0.008893406018614769, -0.0574374720454216, 0.0023131186608225107, 0.008525487035512924, 0.009755159728229046, -0.05189041048288345, -0.014840676449239254, 0.013085913844406605, -0.021292321383953094, -0.02658066526055336, 0.7451473474502563, 0.030346717685461044, 0.016991499811410904, 0.02754417061805725, -0.023755870759487152, 0.043615471571683884, 0.043610621243715286, -0.04019170626997948, 0.006484582554548979, -0.05163693055510521, 0.004896183498203754, 0.024340249598026276, -0.005677286069840193, 0.0367843434214592, 0.033789511770009995, -0.009902679361402988, 0.003798311110585928, 0.02401283197104931, -0.03826858848333359, -0.015371492132544518, 0.03647948056459427, 0.07536705583333969, -0.017817281186580658, 0.02088858187198639, -0.022190650925040245, -0.016495231539011, -0.13671380281448364, 0.001603952026925981, -7.360732566498078e-33, 0.042577020823955536, -0.053485650569200516, 0.02144010178744793, 0.01880054362118244, 0.05915173143148422, 0.03541501611471176, 0.022736119106411934, 0.025184819474816322, -0.01920943893492222, -0.028563115745782852, -0.00738228065893054, 0.013366064056754112, 0.012298219837248325, -0.06323938071727753, 0.01955491676926613, 0.02060195803642273, 0.0015170503174886107, 0.014257903210818768, 0.03608532249927521, -0.02009030245244503, 0.01799633353948593, 0.01687527261674404, -0.019827017560601234, 0.004274536389857531, 0.008374023251235485, -0.04352179542183876, 0.015141906216740608, -0.04945699870586395, 0.001211009337566793, -0.03986616060137749, -0.0016139780636876822, 0.049183472990989685, -0.041502997279167175, -0.06703702360391617, 0.04743202403187752, -0.06565209478139877, -0.042619381099939346, 0.03953807055950165, -0.033504292368888855, 0.03569832444190979, 0.005283616483211517, -0.05759386718273163, -0.018714664503932, -0.022327253594994545, -0.05183036997914314, 0.030183013528585434, 0.002967401407659054, 0.005526406224817038, 0.04083998501300812, 0.0482633039355278, 0.001551846624352038, 0.010417718440294266, 0.035258468240499496, -0.008978297002613544, 0.008114507421851158, 0.01081151980906725, -0.005803951993584633, -0.008181305602192879, -0.04927698150277138, -0.031600840389728546, -0.03183495253324509, 0.008375928737223148, -0.03565088286995888, -0.008058394305408001, 0.009543844498693943, 0.022417420521378517, 0.024421725422143936, 0.07097030431032181, 0.009259982034564018, -0.04117676988244057, -0.017305532470345497, 0.04569828510284424, -0.0055444249883294106, 0.04726920276880264, 0.007734978571534157, -0.04327114298939705, 0.010765214450657368, 0.01531162392348051, 0.027069343253970146, 0.024603327736258507, -0.00535208685323596, -0.002934421645477414, -0.023274460807442665, 0.01694132760167122, -0.04490935429930687, -0.004109124653041363, 0.02707376331090927, -0.009766580536961555, -0.00762974051758647, -0.033191978931427, 0.04118577018380165, -0.0033721490763127804, 0.0019369828514754772, -0.034994687885046005, -0.02021208219230175, 7.805793829502597e-33, -0.008914019912481308, -0.03263464570045471, -0.016648385673761368, 0.05518021062016487, 0.019736869260668755, 0.008191186003386974, 0.037294112145900726, 0.056606143712997437, -0.010033650323748589, 0.05272427201271057, -0.0433661974966526, -0.01130291074514389, -0.0030876246746629477, -0.02264414168894291, 0.06606432795524597, -0.02284327521920204, -0.02803352102637291, -0.09364499151706696, 0.00650809146463871, -0.00170718168374151, 0.031470708549022675, -0.0042198654264211655, -0.016796763986349106, 0.052839312702417374, -0.008996227756142616, 0.06437704712152481, -0.00897170975804329, -0.013735675252974033, -0.010677116923034191, -0.028198588639497757, 0.020333021879196167, -0.004789619240909815, 0.030377725139260292, -0.06335554271936417, -0.06621794402599335, -0.028071807697415352, 0.01473666075617075, 0.08057202398777008, 0.02098616026341915, -0.06484804302453995, 0.046045511960983276, -0.007441388443112373, 0.02109243907034397, 0.054534804075956345, 0.009055002592504025, 0.03689144179224968, 0.009423409588634968, 0.017880942672491074, 0.009649991057813168, 0.029998397454619408, -0.03559596464037895, -0.026790466159582138, -0.0029830930288881063, 0.03853362426161766, 0.06349775195121765, -0.05916013941168785, -0.03764436021447182, -0.009846561588346958, -0.031663525849580765, 0.0070073893293738365, -0.012667287141084671, 0.026941347867250443, 0.01602550968527794, 0.04132049158215523, -0.04376652091741562, -0.03723670542240143, -0.05238347500562668, 0.02887117490172386, 0.05655871704220772, 0.014289936982095242, 0.01661834865808487, 0.0037409306969493628, -0.002985863946378231, -0.025389885529875755, 0.0706678107380867, 0.03414888307452202, -0.017497001215815544, -0.012307187542319298, 0.023983124643564224, 0.015773534774780273, 0.01341377291828394, 0.09763582050800323, -0.026845406740903854, 0.008188948966562748, 0.06360292434692383, 0.02343718893826008, -0.050669535994529724, 0.025906750932335854, -0.009410823695361614, 0.015019970946013927, -0.05391110107302666, 0.01072489470243454, -0.04183769226074219, 0.014160281047224998, 0.0035696972627192736, -1.203317800957393e-8, -0.006213936489075422, 0.012844606302678585, -0.013332057744264603, 0.029021747410297394, -0.003233326831832528, 0.035743217915296555, -0.01853233389556408, 0.049991022795438766, 0.000993511639535427, 0.002499331720173359, 0.008784095756709576, -0.07642805576324463, -0.013711693696677685, -0.0026245717890560627, -0.01580044813454151, 0.0002115848910761997, 0.03881902992725372, 0.004351361189037561, 0.024174023419618607, -0.017547637224197388, -0.036813199520111084, 0.025550303980708122, -0.0023603879380971193, -0.00511751277372241, 0.045996252447366714, -0.005679755005985498, -0.009139897301793098, -0.046256955713033676, -0.023139169439673424, -0.03974786028265953, 0.0011034624185413122, -0.03521011769771576, -0.041196875274181366, 0.028524184599518776, 0.0004308221105020493, -0.03391846641898155, -0.030873987823724747, -0.0021505628246814013, -0.013344908133149147, -0.02666638046503067, 0.01812240667641163, 0.049267034977674484, 0.011764759197831154, -0.03592461347579956, -0.008139527402818203, -0.022374697029590607, 0.009458635002374649, 0.08125749975442886, -0.0010550929000601172, -0.020683933049440384, -0.022150343284010887, -0.060866229236125946, 0.016970032826066017, 0.045847851783037186, 0.05813543498516083, -0.007783034350723028, 0.046183839440345764, -0.03263622894883156, 0.0005640301387757063, 0.05576731264591217, 0.06146740913391113, -0.02887425199151039, -0.045881565660238266, 0.022235656157135963 ]
serverless-s3-s3bucketpermissions-action-does-not-apply-to-any-resources-in-statement
https://markhneedham.com/blog/2017/09/29/serverless-s3-s3bucketpermissions-action-does-not-apply-to-any-resources-in-statement
false
2017-09-19 19:30:09
Neo4j: Cypher - Create Cypher map with dynamic keys
[ "neo4j", "cypher", "apoc" ]
[ "neo4j" ]
I was recently trying to create a map in a Cypher query but wanted to have dynamic keys in that map. I started off with this query: [source,cypher] ---- WITH "a" as dynamicKey, "b" as dynamicValue RETURN { dynamicKey: dynamicValue } AS map ╒══════════════════╕ │"map" │ ╞══════════════════╡ │{"dynamicKey":"b"}│ └──────────────────┘ ---- Not quite what we want! We want +++<cite>+++dynamicKey+++</cite>+++ to be evaluated rather than treated as a literal. As usual, https://github.com/neo4j-contrib/neo4j-apoc-procedures[APOC] comes to the rescue! In fact APOC has several functions that will help us out here. Let's take a look at them: [source,cypher] ---- CALL dbms.functions() yield name, description WHERE name STARTS WITH "apoc.map.from" RETURN name, description ╒═════════════════════╤═════════════════════════════════════════════════════╕ │"name" │"description" │ ╞═════════════════════╪═════════════════════════════════════════════════════╡ │"apoc.map.fromLists" │"apoc.map.fromLists([keys],[values])" │ ├─────────────────────┼─────────────────────────────────────────────────────┤ │"apoc.map.fromNodes" │"apoc.map.fromNodes(label, property)" │ ├─────────────────────┼─────────────────────────────────────────────────────┤ │"apoc.map.fromPairs" │"apoc.map.fromPairs([[key,value],[key2,value2],...])"│ ├─────────────────────┼─────────────────────────────────────────────────────┤ │"apoc.map.fromValues"│"apoc.map.fromValues([key1,value1,key2,value2,...])" │ └─────────────────────┴─────────────────────────────────────────────────────┘ ---- So we can generate a map like this: [source,cypher] ---- WITH "a" as dynamicKey, "b" as dynamicValue RETURN apoc.map.fromValues([dynamicKey, dynamicValue]) AS map ╒═════════╕ │"map" │ ╞═════════╡ │{"a":"b"}│ └─────────┘ ---- or like this: [source,cypher] ---- WITH "a" as dynamicKey, "b" as dynamicValue RETURN apoc.map.fromLists([dynamicKey], [dynamicValue]) AS map ╒═════════╕ │"map" │ ╞═════════╡ │{"a":"b"}│ └─────────┘ ---- or even like this: [source,cypher] ---- WITH "a" as dynamicKey, "b" as dynamicValue RETURN apoc.map.fromPairs([[dynamicKey, dynamicValue]]) AS map ╒═════════╕ │"map" │ ╞═════════╡ │{"a":"b"}│ └─────────┘ ----
Learn how to create maps with dynamic keys using Neo4j's Cypher query language and the APOC procedure library.
null
[ -0.0028362744487822056, -0.013437914662063122, -0.02054261788725853, 0.039595648646354675, 0.08512674272060394, 0.01048421673476696, 0.0058424631133675575, 0.008965309709310532, 0.00901114847511053, -0.037590209394693375, -0.02024359628558159, -0.0110443951562047, -0.05874783545732498, 0.01843685656785965, 0.022377848625183105, 0.07428210228681564, 0.07753399014472961, 0.0017146941972896457, 0.002849677111953497, 0.0027783524710685015, 0.034924402832984924, 0.03332102671265602, 0.006076010875403881, 0.032428499311208725, 0.03282943740487099, 0.031246550381183624, -0.012227645143866539, 0.01002760324627161, -0.049958985298871994, -0.02160259708762169, 0.03259873762726784, 0.005487392656505108, 0.0237018633633852, -0.016998998820781708, 0.002590422984212637, 0.015100697986781597, -0.053476735949516296, -0.020193079486489296, -0.017271198332309723, -0.0005834708572365344, -0.054286688566207886, 0.036567047238349915, 0.00319750071503222, 0.020372245460748672, -0.03092603199183941, -0.014426890760660172, -0.07787857204675674, 0.042989470064640045, -0.032692063599824905, -0.01944427192211151, -0.06791133433580399, 0.015758506953716278, -0.02336440235376358, 0.009515224024653435, -0.01683950237929821, 0.034723859280347824, 0.00909312255680561, -0.07530767470598221, 0.055020686239004135, -0.0054979403503239155, -0.027588604018092155, 0.009062663652002811, 0.020613472908735275, 0.05244022607803345, -0.0061375414952635765, -0.04141896218061447, -0.013145001605153084, 0.0626993179321289, -0.07962844520807266, -0.040981173515319824, -0.015467900782823563, 0.02758357673883438, -0.0071396674029529095, -0.03029862977564335, -0.021449100226163864, -0.05806119740009308, -0.004187460523098707, 0.051201097667217255, 0.004684793762862682, 0.05223602429032326, -0.015724532306194305, -0.00033053476363420486, 0.003328573191538453, 0.019841331988573074, -0.0027700935024768114, -0.02218402922153473, -0.03852293640375137, -0.005533568561077118, -0.03466188907623291, 0.03441730514168739, 0.007456921972334385, -0.0610484704375267, 0.0027914149686694145, -0.0221706535667181, 0.012499390169978142, -0.014122282154858112, -0.01224602572619915, -0.006404876708984375, 0.02317405678331852, 0.005994257051497698, -0.003073479048907757, -0.01914721354842186, -0.0017115810187533498, -0.0012230942957103252, -0.08673758804798126, -0.0208357535302639, -0.053584884852170944, -0.01895441673696041, -0.007473668083548546, 0.008772686123847961, -0.05243314430117607, 0.006088457070291042, 0.023802854120731354, 0.01699933223426342, -0.05922312289476395, 0.03182127699255943, 0.047863688319921494, 0.016443785279989243, -0.012600780464708805, 0.03397640585899353, 0.05240741744637489, 0.02648528479039669, 0.016807816922664642, 0.06510874629020691, -0.010120023041963577, 0.03531821444630623, 0.002119718585163355, 0.0555671788752079, 0.008737964555621147, -0.03864039108157158, -0.019921226426959038, 0.0472940094769001, 0.0024289065040647984, -0.0025547088589519262, -0.016066698357462883, -0.04086936265230179, -0.015149693004786968, 0.03659645467996597, 0.0315324142575264, 0.028661556541919708, 0.0003665301774162799, -0.04779157042503357, 0.026157939806580544, -0.01973918080329895, 0.028194760903716087, 0.03800744563341141, -0.04138678312301636, -0.01982695423066616, -0.005389356520026922, 0.03294254094362259, 0.022390875965356827, 0.045566510409116745, 0.06351438909769058, -0.009039911441504955, -0.0014705366920679808, 0.09917764365673065, 0.0025115625467151403, 0.016904359683394432, -0.009824576787650585, 0.012176007963716984, 0.035782817751169205, 0.019137728959321976, 0.0136788971722126, 0.06882937997579575, -0.0019102779915556312, -0.009060217998921871, 0.007466474547982216, 0.0521676130592823, -0.017764147371053696, 0.0031213220208883286, -0.04411916807293892, -0.06277857720851898, 0.05644722282886505, -0.04018077254295349, 0.009271888993680477, 0.039960090070962906, 0.08392477035522461, 0.02105586603283882, 0.02094077691435814, 0.0007204126450233161, -0.07650746405124664, 0.058117710053920746, -0.005084024742245674, -0.04020233452320099, 0.012275646440684795, 0.00800442323088646, 0.06338609009981155, 0.0381450429558754, 0.015051202848553658, 0.03461761027574539, -0.06652611494064331, -0.08027713000774384, -0.022906482219696045, -0.013882320374250412, 0.0664001926779747, -0.025023549795150757, 0.00787711888551712, 0.06380942463874817, -0.004773988854140043, 0.04030897468328476, 0.03158215433359146, 0.008133391849696636, 0.02513793110847473, -0.07445760071277618, -0.04264414682984352, 0.05017959699034691, 0.045029085129499435, -0.03695325180888176, -0.027708230540156364, 0.008503464050590992, -0.00445642089471221, 0.01541486382484436, 0.028215792030096054, -0.01814856007695198, 0.06161750108003616, 0.012991311959922314, 0.021152202039957047, -0.003178064012899995, 0.021346421912312508, -0.02709347754716873, 0.05186768248677254, 0.015275262296199799, -0.03827430680394173, 0.005517720244824886, 0.00468457629904151, 0.12236665934324265, 0.05960772559046745, 0.008111303672194481, -0.059059884399175644, 0.04563995450735092, 0.010130835697054863, -0.03548064082860947, 0.01715744473040104, -0.04780364781618118, -0.016919206827878952, -0.0051979911513626575, -0.035558536648750305, 0.022863904014229774, -0.02915630117058754, -0.014765975065529346, 0.0013790191151201725, 0.0776057094335556, -0.02642136439681053, 0.0568377710878849, 0.004482905380427837, -0.013307591900229454, 0.009458315558731556, -0.046353794634342194, -0.05515016242861748, 0.014997820369899273, -0.016166191548109055, -0.019151106476783752, 0.07816652208566666, -0.027363967150449753, 0.004424266517162323, -0.04392467066645622, -0.02438425086438656, 0.012777968309819698, 0.01359601691365242, 0.07265255600214005, -0.014277654699981213, 0.08270581066608429, -0.03417558968067169, 0.011396587826311588, -0.024811124429106712, -0.06656348705291748, -0.017511770129203796, 0.016326941549777985, 0.016759483143687248, 0.028842613101005554, 0.011266538873314857, 0.0037625350523740053, 0.032243188470602036, -0.04037103429436684, 0.023014774546027184, -0.014530903659760952, 0.019664915278553963, 0.032733380794525146, -0.032938096672296524, -0.04258281737565994, -0.04466165974736214, 0.05565214529633522, -0.05815581977367401, -0.0631859079003334, 0.0009852470830082893, -0.04968639463186264, 0.05051818862557411, -0.07541477680206299, -0.027767395600676537, 0.02013080194592476, 0.04000326618552208, 0.04121296480298042, -0.011563356965780258, 0.029268823564052582, 0.06933431327342987, -0.0009397390531376004, -0.0004803156480193138, 0.013235318474471569, 0.0006371699273586273, 0.03904358297586441, -0.024820152670145035, 0.030678335577249527, 0.031044714152812958, -0.005166614893823862, 0.014688616618514061, -0.028356799855828285, -0.0326380617916584, -0.02072792313992977, -0.27352574467658997, 0.035686325281858444, -0.03704920783638954, -0.035982247442007065, 0.022056523710489273, -0.03285731002688408, -0.01840818300843239, -0.016897335648536682, -0.029607417061924934, 0.01623782142996788, 0.009602840058505535, -0.033004969358444214, -0.03532351553440094, 0.063042551279068, 0.017069775611162186, 0.016725793480873108, -0.02077246643602848, -0.0461566261947155, 0.0062012458220124245, 0.016973888501524925, 0.00401818472892046, -0.07818099111318588, 0.0014396056067198515, 0.022696902975440025, -0.0010616695508360863, 0.040460675954818726, -0.08133616298437119, 0.02149675227701664, -0.03980817273259163, -0.0324379988014698, -0.03412599116563797, -0.018724625930190086, 0.01140427403151989, 0.025968749076128006, -0.03029840998351574, -0.007580038160085678, 0.04183592647314072, 0.01082612480968237, 0.019873039796948433, 0.017172668129205704, -0.046353571116924286, -0.05682604759931564, -0.0003248751163482666, -0.021426279097795486, 0.06639569997787476, -0.012027915567159653, -0.061341654509305954, -0.016224421560764313, -0.019038992002606392, 0.07753155380487442, -0.010551221668720245, -0.047834210097789764, -0.03850586712360382, 0.02928864397108555, -0.009661595337092876, -0.0069148968905210495, -0.016216788440942764, -0.009225908666849136, -0.05608794465661049, 0.007902845740318298, 0.01282239519059658, -0.038965921849012375, 0.013845287263393402, -0.028412284329533577, 0.0002689787943381816, -0.035418689250946045, -0.08707956224679947, -0.020818263292312622, 0.04832747206091881, 0.05017631873488426, -0.018823513761162758, 0.015242931433022022, -0.04430898278951645, -0.10707385092973709, -0.02240627445280552, -0.028591299429535866, -0.006630497984588146, -0.027658861130475998, -0.0183494184166193, 0.044681698083877563, -0.04225068911910057, -0.004364230670034885, 0.013319617137312889, 0.031350139528512955, 0.01760394126176834, -0.00654173968359828, -0.018658962100744247, -0.021429123356938362, -0.042353540658950806, 0.008608712814748287, 0.05364071950316429, -0.0013524264795705676, 0.021763745695352554, -0.007517403457313776, -0.014869705773890018, 0.00817379355430603, 0.029568150639533997, -0.0214158296585083, 0.018619230017066002, 0.0295103769749403, 0.025418806821107864, -0.022282535210251808, 0.044081706553697586, -0.0328107550740242, -0.016006996855139732, -0.022160407155752182, -0.05755488947033882, 0.022244129329919815, 0.029973197728395462, 0.015343417413532734, -0.021945485845208168, 0.004589409101754427, 0.02201217971742153, -0.06443306058645248, -0.029648445546627045, -0.012086053378880024, 0.024264954030513763, 0.014549513347446918, 0.06897518038749695, -0.01899443008005619, -0.08858224749565125, 0.05549558252096176, 0.05848270654678345, -0.022479213774204254, -0.06154743582010269, -0.038174521178007126, -0.037366725504398346, -0.0000755546207074076, 0.0007364131743088365, 0.02205948904156685, -0.011388124898076057, 0.0123198376968503, 0.02624453790485859, -0.015528125688433647, 0.0340171679854393, -0.036139070987701416, -0.021600641310214996, -0.03670801967382431, -0.016960009932518005, -0.00524901133030653, -0.013086897321045399, -0.02005215361714363, 0.03501152992248535, 0.0398470014333725, 0.027407707646489143, -0.007468067575246096, 0.009448030032217503, 0.018492233008146286, 0.01714252680540085, 0.006559296976774931, -0.0040472932159900665, -0.02743411809206009, 0.023439208045601845, -0.05809502303600311, 0.01413276232779026, 0.012219742871820927, 0.03291342779994011, -0.03894779831171036, -0.018097570165991783, -0.042648088186979294, 0.03313954174518585, -0.044200047850608826, -0.0030161424074321985, -0.027563631534576416, 0.008942918851971626, 0.0392690934240818, -0.024404585361480713, 0.03741322457790375, -0.047355275601148605, 0.009399442002177238, 0.02969529666006565, -0.0015512903919443488, -0.048648934811353683, -0.0021893696393817663, -0.010977065190672874, -0.014763576909899712, 0.016252174973487854, 0.04773701727390289, 0.0141343604773283, 0.025011880323290825, -0.0054532852955162525, 0.010094431228935719, 0.032018598169088364, -0.002093754941597581, 0.06324956566095352, -0.011020001955330372, -0.04497608542442322, -0.010920616798102856, -0.04619253799319267, -0.028216149657964706, -0.013072190806269646, -0.017930349335074425, -0.04024374112486839, 0.017887575551867485, -0.024841569364070892, -0.05672237277030945, 0.020348284393548965, 0.01493908278644085, 0.005102589260786772, 0.04862704873085022, 0.03001575358211994, -0.0029544662684202194, -0.002008365001529455, 0.028269097208976746, 0.052344776690006256, -0.038258761167526245, -0.011623376980423927, 0.0056990995071828365, -0.024388479068875313, 0.008367582224309444, 0.030154068022966385, -0.04501379281282425, -0.025767235085368156, 0.004217043984681368, 0.0036677273456007242, -0.0036045543383806944, -0.025973239913582802, -0.005619491450488567, -0.013620920479297638, 0.0029434538446366787, 0.008791830390691757, 0.022371068596839905, 0.0131258899345994, -0.032050877809524536, -0.009181858040392399, 0.05751338601112366, -0.04642488434910774, 0.01940586231648922, 0.03878594562411308, -0.03256426751613617, 0.03664623945951462, -0.038073137402534485, 0.045254532247781754, 0.027869556099176407, 0.0017428670544177294, -0.027038507163524628, -0.07646001130342484, 0.016577361151576042, -0.04741865396499634, 0.06335718929767609, -0.03865780681371689, -0.011831398122012615, -0.02566828578710556, 0.00034484011121094227, 0.010456535033881664, -0.006154137197881937, -0.0037464566994458437, -0.03122926689684391, 0.019854510203003883, 0.03175368532538414, 0.0008035541977733374, 0.04823460429906845, -0.01967783458530903, -0.03488712012767792, 0.07090248912572861, -0.009441082365810871, -0.05661480128765106, 0.005128383636474609, -0.04624194651842117, 0.006248860154300928, 0.02538537234067917, -0.009835607372224331, -0.039854757487773895, 0.07199305295944214, 0.04959810525178909, -0.008252369239926338, 0.014055103063583374, -0.039089612662792206, 0.021380985155701637, -0.029556822031736374, -0.006177259609103203, -0.0784931480884552, 0.03189628943800926, 0.050116848200559616, 0.014931305311620235, -0.02651209756731987, -0.004514732398092747, -0.05525859445333481, 0.02352142706513405, -0.04231976345181465, -0.01261995267122984, 0.042276352643966675, -0.0012925075134262443, 0.048050083220005035, -0.009666516445577145, -0.057923249900341034, -0.000303135922877118, 0.03751574456691742, -0.008216782473027706, -0.04075685888528824, -0.021016040816903114, 0.05405223369598389, -0.0072428323328495026, 0.03115798532962799, -0.017606345936655998, -0.01295488327741623, 0.05972396954894066, 0.020657265558838844, 0.0037388235796242952, 0.058946575969457626, -0.03921063244342804, 0.04785218834877014, 0.00862712599337101, -0.014691141434013844, 0.0032212496735155582, 0.045618992298841476, -0.015187755227088928, -0.059898458421230316, 0.00347212259657681, 0.016395125538110733, -0.025438079610466957, -0.04535046964883804, 0.0628926083445549, 0.017964888364076614, -0.036093518137931824, -0.02240147814154625, 0.04196101799607277, -0.05323627591133118, -0.0316014401614666, -0.026825549080967903, 0.010939626023173332, -0.029454635456204414, 0.046528007835149765, -0.033918771892786026, 0.0018914215033873916, 0.06731658428907394, 0.005390081088989973, -0.01899503916501999, 0.014598597772419453, 0.06724461913108826, 0.08789043873548508, 0.04718959331512451, 0.015426432713866234, 0.05036645382642746, -0.0403914600610733, -0.013690012507140636, -0.028531024232506752, -0.015948571264743805, -0.019093848764896393, 0.006306260824203491, 0.010058939456939697, 0.0735551118850708, -0.008450496010482311, 0.0479772612452507, -0.02338333986699581, -0.019992876797914505, 0.0021082183811813593, -0.00003548943641362712, 0.04723037779331207, 0.06163179501891136, 0.03182646259665489, 0.03199819475412369, -0.01919551007449627, -0.034463267773389816, 0.018094666302204132, 0.011753879487514496, -0.009016282856464386, 0.022479284554719925, -0.027342474088072777, -0.024487808346748352, 0.017512554302811623, 0.028213653713464737, 0.08949235826730728, -0.0037156143225729465, -0.009047497995197773, 0.008735458366572857, 0.018803203478455544, 0.01815229095518589, 0.024126248434185982, -0.023988502100110054, -0.021029001101851463, -0.0017476530047133565, -0.04683593288064003, -0.0485006608068943, -0.033092088997364044, -0.034771628677845, 0.025303123518824577, 0.0008223658078350127, -0.008239285089075565, 0.001243854989297688, -0.010761063545942307, -0.03386106714606285, -0.05923382565379143, -0.06888487935066223, -0.02958923950791359, -0.07868284732103348, 0.011304275132715702, 0.009128610603511333, -0.005820040591061115, -0.004373555537313223, 0.007994234561920166, -0.025947218760848045, -0.020652279257774353, 0.042207181453704834, 0.005218077916651964, -0.003906363621354103, 0.013138463720679283, 0.03833312541246414, 0.026999397203326225, 0.016653599217534065, 0.05889023840427399, -0.023336248472332954, 0.026577280834317207, -0.008955692872405052, -0.0006443807506002486, 0.05132044851779938, 0.025601552799344063, -0.011065430007874966, -0.07443772256374359, -0.04206129536032677, 0.026427775621414185, 0.01684778556227684, -0.08447840064764023, 0.007877973839640617, 0.030561547726392746, -0.010874391533434391, 0.04570787027478218, -0.009057012386620045, 0.015312669798731804, -0.02945675514638424, -0.0025075862649828196, 0.0011131721548736095, 0.004422604106366634, 0.05575598403811455, -0.03973694145679474, 0.06714668869972229, 0.03548378497362137, -0.020587461069226265, -0.015235819853842258, -0.041570086032152176, -0.013686057180166245, -0.014850795269012451, -0.05181319639086723, -0.017973924055695534, -0.057760462164878845, -0.0749664157629013, -0.020806413143873215, -0.0025986768305301666, -0.03473394364118576, -0.02173811011016369, -0.019849877804517746, 0.028744304552674294, -0.010058642365038395, 0.03434115648269653, -0.031918685883283615, 0.04939739406108856, -0.028556546196341515, -0.018355824053287506, -0.027416585013270378, 0.02428572066128254, -0.02447427809238434, 0.009135041385889053, 0.03376951068639755, -0.012880979105830193, 0.008836311288177967, -0.04223940148949623, 0.018702389672398567, 0.02163129486143589, 0.008950995281338692, 0.025687048211693764 ]
[ -0.07189599424600601, -0.043199241161346436, -0.0005989674828015268, -0.04147801175713539, -0.017623141407966614, -0.05516745522618294, 0.005833708681166172, -0.007268615998327732, 0.0056909616105258465, 0.002195127308368683, 0.0009393722866661847, -0.04306153580546379, 0.023283829912543297, -0.014785708859562874, 0.055471133440732956, -0.03206959366798401, -0.0640673041343689, -0.011540908366441727, -0.01939048431813717, 0.03998488187789917, 0.02519947662949562, -0.000512674159836024, -0.0051921275444328785, -0.005958105903118849, 0.02313307672739029, 0.058372143656015396, 0.033267710357904434, 0.007699949666857719, -0.02421681024134159, -0.2318577766418457, -0.016693029552698135, -0.011319823563098907, 0.010336489416658878, -0.015224735252559185, -0.018701225519180298, 0.026113232597708702, 0.023463692516088486, 0.020868534222245216, 0.0008289144025184214, 0.06478843092918396, 0.02659476175904274, 0.01733170822262764, -0.05579899251461029, -0.015753015875816345, 0.06290560215711594, -0.017935069277882576, 0.0030936477705836296, -0.021413441747426987, -0.00782026443630457, 0.046539030969142914, -0.013670534826815128, 0.0022673546336591244, -0.015630552545189857, 0.021389802917838097, 0.004373354837298393, 0.047878410667181015, 0.05591178312897682, 0.09575595706701279, 0.046434435993433, 0.03463071212172508, 0.03200918808579445, -0.0008625995833426714, -0.11582175642251968, 0.10268935561180115, 0.00856652669608593, 0.024424172937870026, -0.035323433578014374, -0.007374877110123634, -0.031069554388523102, 0.04678254574537277, 0.03143414109945297, -0.004045920912176371, -0.03720584139227867, 0.08227162063121796, 0.02091141790151596, -0.007127664517611265, -0.06978148967027664, 0.01501709595322609, 0.06847907602787018, -0.061558373272418976, -0.051591575145721436, 0.017435774207115173, -0.014780495315790176, 0.016829730942845345, 0.015122903510928154, 0.021943021565675735, -0.02418324537575245, 0.05571722611784935, 0.0054286750964820385, 0.02728148363530636, 0.03361980989575386, -0.020176062360405922, 0.0310357715934515, 0.04504181072115898, -0.06535086780786514, -0.009715025313198566, 0.006376456934958696, 0.030065245926380157, -0.011760684661567211, 0.36456355452537537, -0.025221144780516624, 0.030532339587807655, 0.007358924485743046, 0.018336568027734756, -0.02603134885430336, -0.032714951783418655, 0.013098683208227158, -0.06885554641485214, 0.015700899064540863, 0.010980340652167797, -0.018284114077687263, -0.056786611676216125, 0.01752624288201332, -0.08984356373548508, -0.03712702915072441, -0.003389800200238824, 0.03808611258864403, 0.001807334367185831, -0.04624825343489647, 0.005561384372413158, 0.003927220590412617, -0.047502804547548294, 0.02337174490094185, 0.02600029855966568, 0.04816909506917, 0.027960926294326782, 0.03610333427786827, 0.039230503141880035, 0.05276288837194443, 0.015294095501303673, 0.021255049854516983, 0.009867286309599876, -0.07614149153232574, 0.03690105304121971, -0.005013052839785814, -0.01978243887424469, 0.022510983049869537, -0.05076786130666733, -0.027620522305369377, 0.042223699390888214, 0.0007819183520041406, 0.0024957824498414993, 0.014501094818115234, -0.005267198663204908, 0.002416224917396903, 0.1339317113161087, -0.014137424528598785, -0.02551325224339962, -0.03667645528912544, 0.005019197706133127, -0.0022194813936948776, 0.03872567415237427, -0.011067172512412071, -0.01640489138662815, -0.04430985078215599, 0.05339569225907326, 0.07421809434890747, 0.02494240179657936, -0.06705115735530853, -0.01460370235145092, -0.02931934967637062, -0.03946099057793617, -0.03767024353146553, 0.10948261618614197, -0.005362385418266058, -0.0894278958439827, -0.028031719848513603, -0.005752600729465485, -0.009899561293423176, -0.0854584276676178, -0.016322828829288483, 0.010251257568597794, -0.02185027301311493, -0.008586115203797817, 0.0719492956995964, 0.003690915647894144, -0.03653926029801369, -0.04538825526833534, 0.040359366685152054, 0.020235814154148102, -0.009183235466480255, -0.016624778509140015, -0.029533201828598976, 0.0013122224481776357, -0.06897138804197311, -0.05418575555086136, -0.08638712763786316, 0.047834862023591995, -0.04021310806274414, 0.0016085149254649878, -0.004088055808097124, 0.01697411760687828, -0.003930778708308935, 0.08666645735502243, -0.049071673303842545, -0.0477779284119606, 0.014228436164557934, -0.012377357110381126, 0.00823574885725975, -0.060863982886075974, 0.039960261434316635, 0.04114829748868942, -0.019181394949555397, 0.015379900112748146, -0.0388236939907074, -0.0329483300447464, 0.056419312953948975, -0.01552540436387062, 0.009791201911866665, 0.026953380554914474, -0.0481061115860939, 0.033811114728450775, -0.025233644992113113, 0.0464334674179554, -0.041025035083293915, -0.0034727950114756823, -0.014522171579301357, -0.00744347320869565, 0.0025983990635722876, 0.033442333340644836, -0.06680096685886383, -0.039478104561567307, -0.02916656620800495, -0.35272514820098877, -0.021184703335165977, -0.03124740533530712, -0.02450893446803093, -0.027940930798649788, -0.012199819087982178, -0.017914509400725365, -0.030830487608909607, -0.004582020919770002, -0.006251567974686623, 0.06084985285997391, -0.010802751407027245, -0.016981633380055428, -0.022694865241646767, -0.015367774292826653, 0.03841882944107056, 0.011168043129146099, -0.006641107611358166, -0.013112555257976055, 0.013841809704899788, -0.003253878792747855, -0.04984807223081589, -0.05402094125747681, -0.049030695110559464, 0.017733335494995117, -0.0028460777830332518, 0.0997428447008133, -0.045052532106637955, 0.03148821368813515, -0.06792361289262772, 0.051689513027668, -0.01883442886173725, 0.020951759070158005, -0.05339653044939041, 0.023730002343654633, -0.021209493279457092, 0.004596116486936808, 0.028042646124958992, -0.021623557433485985, -0.007833273150026798, -0.019533885642886162, 0.007557571399956942, -0.0855400562286377, -0.05361523479223251, 0.032797809690237045, -0.007253741845488548, -0.04502440616488457, 0.01857556775212288, 0.022923598065972328, 0.08610102534294128, -0.011975022964179516, 0.02444431185722351, 0.01364865992218256, 0.022773921489715576, 0.033735450357198715, -0.026731101796030998, -0.04971160367131233, -0.04602153226733208, 0.009148973971605301, 0.02944275550544262, -0.0031770551577210426, 0.05439102649688721, 0.0313563197851181, -0.038511939346790314, 0.0387328676879406, 0.003915132489055395, 0.0037554523441940546, 0.017039842903614044, 0.04290740564465523, -0.06085772067308426, -0.05038704350590706, 0.10124076157808304, 0.007486090529710054, 0.020946064963936806, 0.057215332984924316, 0.035737112164497375, -0.01384998019784689, 0.01444973424077034, 0.019328461959958076, 0.01722528040409088, 0.024830089882016182, -0.028277019038796425, 0.07384724169969559, 0.010496314615011215, -0.017011074349284172, 0.04689323157072067, 0.006211080588400364, -0.0139843188226223, 0.014117407612502575, -0.013984168879687786, -0.03997373580932617, -0.019234158098697662, -0.03400355204939842, -0.051275450736284256, 0.06830001622438431, -0.019183363765478134, -0.2689550817012787, 0.05477266013622284, 0.05045720189809799, 0.06680480390787125, -0.008340643718838692, 0.01924896612763405, 0.03457992151379585, -0.06873016804456711, -0.009448319673538208, -0.0024154200218617916, 0.03353540226817131, 0.05009420961141586, 0.01297477912157774, -0.026384593918919563, -0.0008051551412791014, 0.010803953744471073, 0.08936583250761032, 0.0017484492855146527, 0.06567269563674927, -0.02131940983235836, 0.0205021183937788, 0.004686674568802118, 0.2235133796930313, 0.03392210230231285, 0.007200491614639759, 0.03239016234874725, -0.03738979622721672, 0.00898985005915165, 0.08146711438894272, 0.015846701338887215, 0.023515071719884872, 0.027542492374777794, 0.017652073875069618, 0.024838965386152267, 0.0368059016764164, -0.016700029373168945, -0.01630389876663685, 0.03319258987903595, -0.003678979817777872, -0.046069126576185226, -0.0018143854103982449, 0.017141200602054596, -0.05386283993721008, 0.025368710979819298, 0.06302645802497864, -0.029794830828905106, 0.023420952260494232, -0.03372424468398094, -0.07143021374940872, 0.03232133015990257, -0.021334003657102585, -0.0380486398935318, -0.03080679289996624, -0.02323932945728302, -0.0001203753927256912, 0.08264415711164474, 0.014142261818051338, -0.011448469012975693, -0.01342641282826662, 0.04925483465194702, -0.027987325564026833, -0.06452490389347076, 0.10262391716241837, -0.04278247058391571, -0.004846610128879547 ]
[ 0.024328086525201797, 0.0877097025513649, 0.004525348544120789, -0.01052817516028881, -0.048297394067049026, -0.02493462897837162, -0.01934259571135044, 0.031503912061452866, -0.008579548448324203, 0.024370387196540833, -0.007888088934123516, 0.005475524812936783, 0.05488819628953934, -0.016080759465694427, -0.02188483253121376, 0.037545882165431976, 0.0030065227765589952, 0.028351856395602226, 0.02506248652935028, -0.018034962937235832, -0.037827637046575546, 0.016406992450356483, 0.06008165702223778, -0.00900273583829403, -0.0013395894784480333, 0.012543056160211563, -0.017105072736740112, 0.048510417342185974, 0.03384925425052643, -0.10662436485290527, -0.023608719930052757, -0.017712537199258804, -0.012768256478011608, 0.02200915291905403, -0.02464143931865692, 0.03247427940368652, 0.015468649566173553, 0.011326645500957966, 0.018302084878087044, 0.031231168657541275, 0.03811503201723099, 0.004411474801599979, -0.023580800741910934, 0.034561824053525925, 0.02207109145820141, -0.0425611175596714, 0.002805193653330207, -0.06119019165635109, -0.028088165447115898, 0.029177207499742508, -0.029574954882264137, 0.015025332570075989, -0.032147422432899475, 0.0013129126746207476, -0.0006273482576943934, 0.025916598737239838, -0.08287391066551208, -0.01584620587527752, 0.021125266328454018, -0.017697012051939964, 0.007259505335241556, -0.010014441795647144, -0.0438794307410717, -0.037739504128694534, -0.02361845038831234, 0.022774023935198784, 0.0068626017309725285, -0.0015615300508216023, 0.04944309592247009, -0.007919052615761757, 0.016851646825671196, 0.01750134490430355, -0.04142995923757553, -0.06373671442270279, -0.021861780434846878, 0.04789106547832489, 0.01640441082417965, -0.0552828274667263, -0.0023367174435406923, -0.01130285207182169, -0.01408583577722311, 0.009698829613626003, -0.03395621478557587, -0.024868760257959366, -0.02640957199037075, -0.002403844380751252, -0.0076578832231462, -0.007084195036441088, 0.02304472215473652, 0.024627918377518654, -0.009721835143864155, -0.019544411450624466, 0.007282847072929144, -0.0078088222071528435, -0.05263353884220123, -0.012917641550302505, 0.044034186750650406, -0.03620166331529617, 0.04397629573941231, 0.7938060164451599, 0.017850257456302643, 0.005017069634050131, -0.01632617972791195, -0.01267184503376484, 0.007282968610525131, -0.0012253194581717253, 0.015433453023433685, -0.01334357913583517, -0.007275611162185669, 0.011332620866596699, -0.039478570222854614, 0.010400989092886448, 0.030580468475818634, 0.006847723852843046, -0.01740076206624508, 0.032532699406147, 0.025639889761805534, -0.00635835574939847, 0.00041472649900242686, 0.024834509938955307, 0.022894326597452164, -0.03164030238986015, -0.020058397203683853, 0.02880462445318699, -0.01248161867260933, -0.17316262423992157, -0.04095080867409706, -6.883399575459672e-33, 0.06341525167226791, 0.005462149623781443, 0.10047973692417145, 0.011708220466971397, 0.009141559712588787, 0.022205296903848648, 0.04068666696548462, -0.057884376496076584, -0.047621093690395355, -0.05079277977347374, -0.013272264041006565, 0.016913119703531265, -0.021730240434408188, -0.006780718453228474, 0.00033030431950464845, -0.02189420908689499, 0.013047856278717518, 0.02355792745947838, -0.031007986515760422, 0.016647621989250183, -0.01244143582880497, 0.026228364557027817, -0.04426461458206177, 0.00017265879432670772, 0.02209511585533619, 0.028756801038980484, -0.006169464439153671, 0.027641890570521355, -0.025401128455996513, -0.05120619386434555, -0.05883559212088585, 0.02966848574578762, -0.03143077716231346, -0.022520145401358604, 0.037427958101034164, -0.05851072818040848, -0.020443564280867577, 0.01942625641822815, -0.015341480262577534, -0.092318594455719, -0.051783978939056396, -0.011405306868255138, -0.026356879621744156, -0.02291213534772396, -0.03219670057296753, -0.06238841637969017, -0.014763346873223782, 0.03728553652763367, 0.013788827694952488, 0.014191794209182262, 0.026727283373475075, 0.024641720578074455, -0.01203127484768629, 0.017578424885869026, -0.043713320046663284, 0.005017375573515892, -0.022632723674178123, 0.027431951835751534, 0.004724673926830292, 0.06804078817367554, 0.00682360865175724, 0.020717184990644455, -0.0119817228987813, 0.03324386849999428, 0.009330769069492817, -0.013821722008287907, -0.011522714979946613, 0.015840157866477966, -0.024275725707411766, 0.04894610494375229, 0.004228310659527779, 0.024240247905254364, -0.033750008791685104, -0.05269860103726387, 0.027861693874001503, -0.03894400596618652, -0.012813035398721695, -0.03644167259335518, -0.03361781686544418, 0.016614334657788277, -0.02332121692597866, -0.005950639955699444, 0.0028205178678035736, 0.011230102740228176, 0.012214474380016327, -0.002813221188262105, -0.012647735886275768, 0.019472867250442505, 0.03622449189424515, 0.023451518267393112, 0.05414644628763199, 0.014771604910492897, -0.015704059973359108, -0.03772365301847458, -0.027983298525214195, 6.94517400764729e-33, -0.021171312779188156, -0.005405964329838753, -0.04205262288451195, 0.007404224947094917, -0.005705482326447964, -0.009162083268165588, 0.009448596276342869, 0.005841350182890892, -0.010003389790654182, 0.04118456691503525, -0.04699567332863808, 0.003601270029321313, -0.004005469847470522, 0.004096830729395151, 0.03562530502676964, 0.00571190332993865, -0.013763397932052612, -0.013109580613672733, 0.03592924401164055, 0.044490158557891846, 0.014369992539286613, 0.013425406068563461, 0.0005771956639364362, 0.02313809096813202, -0.023233572021126747, 0.01081992406398058, -0.003150742966681719, 0.009419681504368782, -0.024258200079202652, -0.02227119356393814, -0.023995952680706978, -0.04246622323989868, -0.03042636439204216, -0.02316823974251747, -0.005431095138192177, -0.0057561928406357765, -0.008089127950370312, -0.0030980012379586697, 0.01282696146517992, 0.01838725619018078, -0.004418092779815197, -0.015924766659736633, -0.000350965594407171, 0.03252262994647026, 0.0349859818816185, 0.0006363721331581473, 0.04032376408576965, 0.00019426881044637412, 0.03199215978384018, 0.045819241553545, 0.03176749125123024, 0.023017993196845055, -0.01426378171890974, 0.03593044728040695, 0.004545560572296381, -0.03996056690812111, -0.026712685823440552, 0.01612703874707222, 0.009228767827153206, -0.021265361458063126, -0.014243768528103828, -0.028499772772192955, 0.006109385751187801, 0.042008668184280396, 0.004418746568262577, -0.010714082047343254, -0.021553605794906616, -0.02700730226933956, -0.034087471663951874, -0.00524798734113574, 0.015237104147672653, 0.008504361845552921, -0.03598992899060249, 0.022472120821475983, 0.05285412445664406, -0.027957843616604805, -0.03503209725022316, -0.03646385297179222, 0.0000016822542647787486, 0.01858251728117466, 0.02691442333161831, 0.012715023010969162, 0.03114113211631775, 0.028732966631650925, -0.009820290841162205, -0.011785188689827919, 0.01799682155251503, 0.02746545895934105, -0.0154199143871665, -0.006190430372953415, 0.04818650335073471, -0.04279265180230141, -0.06565822660923004, 0.06647086888551712, -0.02286597155034542, -1.2315701347631602e-8, -0.002793770283460617, 0.05134669318795204, -0.008837400935590267, 0.0269634947180748, -0.0053082481026649475, -0.020602745935320854, 0.03283284977078438, 0.014544746838510036, 0.014402755536139011, -0.016600077971816063, 0.024006342515349388, -0.03315100446343422, 0.03784177452325821, -0.025884609669446945, 0.02303210459649563, -0.0016385087510570884, 0.001994230318814516, 0.007948629558086395, 0.02747349441051483, 0.024879027158021927, -0.06488499045372009, 0.05688541382551193, -0.017471827566623688, 0.02855558879673481, 0.008028581738471985, 0.009160736575722694, 0.07143738865852356, -0.05265812948346138, 0.01873910427093506, -0.011503105983138084, 0.052239879965782166, -0.02038807049393654, -0.008924088440835476, 0.003837951924651861, -0.05964255705475807, -0.04041226953268051, 0.022296391427516937, 0.03471425920724869, 0.01742958463728428, 0.06524339318275452, -0.05326998606324196, 0.013122512958943844, -0.022659486159682274, -0.031763944774866104, -0.04717672988772392, 0.019604047760367393, -0.04381384328007698, 0.010961351916193962, 0.042244985699653625, -0.007220716681331396, 0.008690557442605495, 0.005454616155475378, 0.021886762231588364, 0.00038313359254971147, 0.05550885573029518, 0.009784380905330181, 0.05326094478368759, -0.010544630698859692, -0.004128545988351107, -0.03266385197639465, 0.015926096588373184, 0.008016394451260567, -0.01791020669043064, -0.030624739825725555 ]
neo4j-cypher-create-cypher-map-with-dynamic-keys
https://markhneedham.com/blog/2017/09/19/neo4j-cypher-create-cypher-map-with-dynamic-keys
false
2017-09-30 21:23:11
AWS: Spinning up a Neo4j instance with APOC installed
[ "neo4j", "aws", "apoc", "ami" ]
[ "neo4j" ]
One of the first things I do after installing Neo4j is install the https://github.com/neo4j-contrib/neo4j-apoc-procedures/releases[APOC library], but I find it's a bit of a manual process when spinning up a server on AWS so I wanted to simplify it a bit. There's already https://neo4j.com/developer/neo4j-cloud-aws-ec2-ami/[a Neo4j AMI which installs Neo4j 3.2.0] and my colleague https://twitter.com/mesirii[Michael] pointed out that we could download APOC into the correct folder by writing a script and sending it as http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html#instancedata-add-user-data[UserData]. I've been doing some work in JavaScript over the last two weeks so I thought I'd automate all the steps using the AWS library. You can https://gist.github.com/mneedham/0246221849ccf3646727d6b80977d85f[find the full script on GitHub]. The UserData part of the script is actually very simple: This script creates a key pair, security group, opens up that security group on ports 22 (SSH), 7474 (HTTP), 7473 (HTTPS), and 7687 (Bolt). The server created is +++<cite>+++m3.medium+++</cite>+++, but you can https://gist.github.com/mneedham/0246221849ccf3646727d6b80977d85f#file-neo4j-with-apoc-js-L38[change that] to https://aws.amazon.com/ec2/pricing/on-demand/[something else] if you prefer. [source,bash] ---- #!/bin/bash curl -L https://github.com/neo4j-contrib/neo4j-apoc-procedures/releases/download/3.2.0.3/apoc-3.2.0.3-all.jar -O sudo cp apoc-3.2.0.3-all.jar /var/lib/neo4j/plugins/ ---- We can run it like this: [source,bash] ---- $ node neo4j-with-apoc.js Creating a Neo4j server Key pair created. Save this to a file - you'll need to use it if you want to ssh into the Neo4j server -----BEGIN RSA PRIVATE KEY----- <Private key details> -----END RSA PRIVATE KEY----- Created Group Id:<Group Id> Opened Neo4j ports Instance Id: <Instance Id> Your Neo4j server is now ready! You'll need to login to the server and change the default password: https://ec2-ip-address.compute-1.amazonaws.com:7473 or http://ec2-ip-address.compute-1.amazonaws.com:7474 User:neo4j, Password:<Instance Id> ---- We'll need to wait a few seconds for Neo4j to spin up, but it'll be accessible at the URI specified. Once it's accessible we can login with the username +++<cite>+++neo4j+++</cite>+++ and password +++<cite>++++++<AWS Instance="" Id="">+++</cite>. We'll then be instructed to choose a new password. </p> We can then run the following query to check that APOC has been installed: ~~~cypher call dbms.procedures() YIELD name WHERE name starts with "apoc" RETURN count(*) ╒══════════╕ │"count(*)"│ ╞══════════╡ │214 │ └──────────┘ ~~~ Cool, it worked and we can now Neo4j and APOC to our heart's content! If we want to SSH into the server we can do that as well by first saving the private key printed on the command line to a file and then executing the following command: ~~~bash $ cat aws-private-key.pem -----BEGIN RSA PRIVATE KEY----- +++<Private key="" details="">+++-----END RSA PRIVATE KEY----- $ chmod 600 aws-private-key.pem $ ssh -i aws-private-key.pem [email protected] Welcome to Ubuntu 16.04.2 LTS (GNU/Linux 4.4.0-1013-aws x86_64) * Documentation: https://help.ubuntu.com * Management: https://landscape.canonical.com * Support: https://ubuntu.com/advantage Get cloud support with Ubuntu Advantage Cloud Guest: http://www.ubuntu.com/business/services/cloud 106 packages can be updated. 1 update is a security update. To run a command as administrator (user "root"), use "sudo +++<command>++++++</command>+++". See "man sudo_root" for details. ~~~ You can start/stop neo4j by running the following command: ~~~bash $ /etc/init.d/neo4j Usage: /etc/init.d/neo4j {start|stop|status|restart|force-reload} ~~~ The other commands you may be used to finding in the +++<cite>+++bin+++</cite>+++ folder can be found here: ~~~bash $ ls -lh /usr/share/neo4j/bin/ total 48K -rwxr-xr-x 1 neo4j adm 15K May 9 09:22 neo4j -rwxr-xr-x 1 neo4j adm 5.6K May 9 09:22 neo4j-admin -rwxr-xr-x 1 root root 612 May 12 00:03 neo4j-awspasswd -rwxr-xr-x 1 neo4j adm 5.6K May 9 09:22 neo4j-import -rwxr-xr-x 1 neo4j adm 5.6K May 9 09:22 neo4j-shell drwxr-xr-x 2 neo4j adm 4.0K May 11 22:13 tools ~~~ Let me know if this is helpful and if you have any suggestions/improvements.+++</Private>++++++</AWS>++++++</cite>+++
Learn how to spin up an ES2 instance on AWS with Neo4j and the Awesome Procedures on Cypher (APOC) library installed by default.
null
[ 0.020994465798139572, -0.017615411430597305, -0.008050872944295406, 0.04232387989759445, 0.09267472475767136, 0.010399706661701202, 0.03021175041794777, 0.01649107038974762, 0.007334460504353046, -0.004902954213321209, -0.018446587026119232, -0.0017823755042627454, -0.0638500303030014, -0.011693000793457031, -0.015198083594441414, 0.04777287319302559, 0.08298171311616898, 0.004359100013971329, 0.012709674425423145, 0.006985174026340246, 0.008962573483586311, 0.0674603283405304, -0.01108881738036871, 0.02834751270711422, 0.014162765815854073, 0.014434657990932465, 0.029555685818195343, -0.028225606307387352, -0.050384532660245895, -0.017355110496282578, 0.04999907687306404, -0.014896313659846783, 0.020077962428331375, -0.03073393926024437, 0.009828002192080021, -0.005990296136587858, -0.04331381991505623, 0.020949089899659157, -0.014829459600150585, 0.026089338585734367, -0.0708409920334816, 0.036962393671274185, -0.011129099875688553, 0.024260222911834717, -0.0275319404900074, 0.0011697516310960054, -0.054688967764377594, 0.057167742401361465, -0.00529080955311656, -0.0021266392432153225, -0.09658794850111008, 0.009796449914574623, -0.023545781150460243, -0.027245059609413147, 0.026613393798470497, 0.036949437111616135, 0.01775088533759117, -0.0801660493016243, 0.053558241575956345, -0.017535196617245674, -0.013273277319967747, 0.006176719442009926, 0.012176664546132088, 0.02637040801346302, -0.00542015815153718, -0.06592260301113129, 0.006913502234965563, 0.05229562520980835, -0.03516818583011627, -0.020037489011883736, 0.028644932433962822, -0.003392396727576852, -0.03081909753382206, -0.017119349911808968, 0.01404842920601368, -0.062030430883169174, -0.010892080143094063, 0.05673631280660629, 0.02573700249195099, 0.05135738477110863, -0.03717426210641861, 0.014285128563642502, -0.008931176736950874, 0.025835268199443817, 0.014021750539541245, -0.029434533789753914, -0.04567670077085495, 0.004461369942873716, -0.05571746453642845, 0.05405733734369278, 0.013657333329319954, -0.03650280088186264, 0.016841169446706772, 0.008008780889213085, 0.014130238443613052, 0.037588588893413544, -0.007209419272840023, 0.02284877561032772, 0.03554641082882881, -0.0009656702168285847, -0.038655128329992294, 0.002668500877916813, -0.00987358670681715, -0.017157986760139465, -0.062492623925209045, 0.0048365299589931965, -0.024694843217730522, -0.037522606551647186, 0.00040535684092901647, -0.02432633936405182, 0.003967761993408203, 0.004504902753978968, -0.008153388276696205, 0.0008357909973710775, -0.09009304642677307, 0.06664987653493881, 0.02149398997426033, -0.030869148671627045, -0.02798270247876644, 0.02415831945836544, 0.038174282759428024, 0.048799093812704086, 0.003243764629587531, 0.06836461275815964, -0.01995081640779972, 0.03761712461709976, -0.010679311119019985, 0.0373690240085125, -0.007619054988026619, -0.054553721100091934, -0.013010874390602112, 0.06799627840518951, -0.004096607677638531, 0.024675505235791206, -0.006734995637089014, 0.004396537318825722, -0.03356342762708664, 0.03547673672437668, 0.07964369654655457, 0.032828956842422485, 0.006577192805707455, -0.0420047901570797, 0.01747986301779747, -0.016538286581635475, 0.02545519359409809, 0.03642886504530907, -0.024060022085905075, -0.04924321174621582, -0.04328343644738197, 0.006296341773122549, 0.013416755944490433, 0.0052837771363556385, 0.04333939775824547, -0.024392038583755493, 0.026585320010781288, 0.1283002644777298, 0.06885482370853424, 0.0018745791167020798, -0.011179350316524506, 0.011136342771351337, 0.032171592116355896, 0.049159470945596695, 0.0043816338293254375, 0.05913228169083595, -0.02615043893456459, -0.040156587958335876, -0.010259348899126053, 0.04416995495557785, 0.010976317338645458, -0.0007618567324243486, -0.04613728076219559, -0.06580376625061035, 0.07370870560407639, -0.03333038464188576, 0.003906984813511372, 0.045818425714969635, 0.08453653752803802, -0.002292666584253311, 0.020389948040246964, 0.016814831644296646, -0.07025378197431564, 0.07239454984664917, 0.026569297537207603, 0.0037240704987198114, 0.025424139574170113, -0.0036128771025687456, 0.06855148822069168, 0.01009688712656498, 0.04100090265274048, 0.052898358553647995, -0.08142049610614777, -0.09076421707868576, -0.0002700601180549711, -0.008354502730071545, 0.060869988054037094, 0.0039733098819851875, 0.001284751109778881, 0.061307016760110855, 0.022692620754241943, 0.019384022802114487, 0.006318467669188976, -0.028141150251030922, 0.0241532139480114, -0.06950651109218597, -0.06122077628970146, 0.0315994955599308, 0.008664315566420555, -0.04677705839276314, -0.020405476912856102, 0.016067760065197945, -0.02726631611585617, -0.0025771765504032373, 0.04124613478779793, -0.03256847336888313, 0.03563504293560982, 0.020055226981639862, 0.03580225259065628, -0.026312468573451042, 0.013781305402517319, -0.040423035621643066, 0.04625904560089111, 0.004936100449413061, -0.0011840773513540626, -0.021384796127676964, -0.012222285382449627, 0.09714462608098984, 0.05105170980095863, -0.02311127819120884, -0.04767586663365364, 0.04980885609984398, 0.016414295881986618, -0.04747282341122627, 0.006948604714125395, -0.018423600122332573, -0.007897302508354187, -0.01181634608656168, -0.01825481839478016, -0.03015579842031002, -0.03476469963788986, -0.0030143659096211195, 0.02794761024415493, 0.07812486588954926, -0.021071657538414, 0.048591990023851395, 0.009687701240181923, -0.02421429008245468, -0.01748233288526535, -0.04185625910758972, -0.05966172739863396, 0.016885729506611824, 0.018144706264138222, -0.008862647227942944, 0.061603330075740814, -0.028950458392500877, -0.029452752321958542, -0.04136554151773453, -0.03196633607149124, 0.03826487436890602, 0.006415144074708223, 0.06710587441921234, -0.02043016627430916, 0.02453986369073391, -0.0617486871778965, 0.03298257663846016, 0.006285145413130522, -0.0347735695540905, -0.046119943261146545, -0.0344139039516449, 0.00521952984854579, -0.012178788892924786, 0.03253459930419922, -0.006825502496212721, 0.027679411694407463, -0.016438612714409828, 0.03181356564164162, -0.014258571900427341, 0.03377213701605797, -0.014610587619245052, -0.010452226735651493, -0.03489354997873306, -0.030602863058447838, 0.05605921521782875, -0.0651855394244194, -0.013534334488213062, 0.009007527492940426, -0.060112353414297104, 0.04919327050447464, -0.06868340075016022, -0.02625100687146187, -0.008629633113741875, 0.01620832271873951, 0.04817060008645058, 0.02970348671078682, 0.026578202843666077, 0.05124900862574577, 0.00453345337882638, 0.01810048520565033, -0.005332790780812502, -0.005883687175810337, 0.05322849005460739, -0.011661896482110023, 0.03606326878070831, 0.03324664756655693, -0.01707281358540058, 0.023676030337810516, -0.04143299534916878, 0.020739175379276276, -0.029864728450775146, -0.2645006477832794, 0.06737098842859268, -0.03424113243818283, -0.048473890870809555, -0.0013686418533325195, -0.029685519635677338, -0.011631669476628304, -0.021995211020112038, -0.015893155708909035, 0.00023966685694176704, 0.002939628204330802, -0.02726360410451889, 0.009709695354104042, 0.032207388430833817, 0.003717042738571763, 0.035639744251966476, -0.022388093173503876, -0.035631414502859116, 0.004529627971351147, 0.01179798599332571, -0.02801116369664669, -0.03454272821545601, 0.05180232226848602, 0.022057052701711655, 0.020469987764954567, 0.032036542892456055, -0.08108412474393845, 0.04791710153222084, -0.038908667862415314, -0.03532887622714043, 0.004089740104973316, -0.0373230017721653, 0.014864939264953136, 0.025941908359527588, -0.020839257165789604, 0.005475692916661501, 0.038381196558475494, 0.022798409685492516, 0.004442717880010605, 0.012066300958395004, -0.026896899566054344, -0.03714370355010033, -0.013484540395438671, -0.022295672446489334, 0.0886760801076889, -0.017099682241678238, -0.08179771155118942, -0.020449796691536903, -0.0360158234834671, 0.08784162998199463, -0.031022468581795692, -0.02677147462964058, -0.01753043383359909, 0.022416992112994194, -0.004865141119807959, -0.03191736340522766, -0.0042290156707167625, 0.021392391994595528, -0.04683306813240051, -0.03411664441227913, -0.029897300526499748, -0.02674131840467453, 0.01455242745578289, -0.032999612390995026, 0.006178609095513821, -0.062454380095005035, -0.057390518486499786, -0.0482979342341423, 0.07797162979841232, 0.02100350707769394, -0.03998960927128792, 0.025476286187767982, -0.019817814230918884, -0.09316815435886383, -0.01467068213969469, -0.06907244771718979, -0.00859789364039898, 0.0009680476505309343, -0.020324520766735077, 0.06072549149394035, -0.027843553572893143, -0.053470298647880554, 0.020630139857530594, 0.007342138793319464, -0.011745401658117771, 0.011540890671312809, 0.025984691455960274, -0.012519030831754208, -0.012754621915519238, 0.019536562263965607, 0.06116067245602608, -0.023042742162942886, -0.02429150976240635, -0.010954564437270164, 0.005516817793250084, 0.015912070870399475, -0.00012178417091490701, -0.004177072085440159, 0.012302796356379986, 0.03432954102754593, 0.04850854352116585, -0.023775853216648102, 0.016745686531066895, -0.04985898733139038, -0.006879319436848164, -0.021787256002426147, -0.05972025543451309, 0.02492051012814045, 0.031084487214684486, 0.03400174900889397, -0.009812562726438046, -0.028395555913448334, 0.025279449298977852, -0.0705527663230896, -0.03473842144012451, 0.015120178461074829, 0.009802564047276974, -0.006491630803793669, 0.03290054574608803, -0.01980462297797203, -0.05975080281496048, 0.023778684437274933, 0.05886005237698555, -0.030788565054535866, -0.03747362270951271, -0.03630412742495537, -0.016451403498649597, -0.0048040421679615974, 0.02233549952507019, -0.007473465520888567, 0.002286929404363036, 0.04454377293586731, 0.01841120235621929, -0.031581148505210876, 0.009663335978984833, -0.028019992634654045, -0.03401722013950348, -0.04618417099118233, 0.03847494348883629, -0.004778167698532343, -0.04706081002950668, 0.011895393952727318, -0.03755652904510498, 0.05922318622469902, 0.053816791623830795, -0.0031500798650085926, 0.028529126197099686, 0.015388046391308308, 0.021572621539235115, -0.025336289778351784, -0.006758203264325857, -0.04545505344867706, 0.0008648625807836652, -0.04013022035360336, -0.04482220485806465, 0.0018320416565984488, 0.05456643924117088, -0.027595404535531998, -0.03793713077902794, -0.022954225540161133, 0.009435807354748249, -0.052424345165491104, 0.029503144323825836, -0.002360593993216753, -0.0035873730666935444, 0.03447318449616432, 0.00230198516510427, 0.01794891245663166, -0.043516866862773895, -0.010396244935691357, 0.019116796553134918, 0.03543810918927193, -0.019184904173016548, -0.02099992148578167, 0.006785104982554913, 0.007937131449580193, 0.015920814126729965, 0.04085303470492363, 0.029155293479561806, 0.011476974003016949, -0.015383459627628326, -0.024487439543008804, -0.002102215774357319, -0.008470832370221615, 0.04201387241482735, 0.02417881041765213, -0.024009879678487778, -0.00002817629683704581, -0.019317829981446266, -0.0008395247859880328, -0.022335965186357498, -0.0018485600594431162, -0.011838977225124836, 0.014126072637736797, -0.0022565489634871483, -0.06348837167024612, 0.05923120304942131, 0.00878152996301651, 0.015359720215201378, 0.038994986563920975, -0.0019347554771229625, 0.011094328947365284, -0.03605123609304428, 0.05694453790783882, 0.0558471605181694, -0.04697590693831444, -0.00838277954608202, 0.00842981319874525, 0.036267783492803574, -0.005975131876766682, 0.024584190919995308, -0.0740593895316124, -0.040997475385665894, 0.009461292997002602, 0.008459760807454586, -0.005198605824261904, -0.059501759707927704, 0.003775671124458313, -0.021637288853526115, -0.023525996133685112, 0.005129017401486635, 0.028063632547855377, 0.01724000833928585, 0.0012129498645663261, -0.036579594016075134, 0.034061890095472336, -0.0010596400825306773, -0.018766015768051147, 0.0002061528794001788, 0.005542141385376453, 0.015531995333731174, -0.014105923473834991, 0.016153840348124504, -0.002372356131672859, -0.011747953481972218, -0.0030066356994211674, -0.07641789317131042, 0.010571864433586597, -0.03408605605363846, 0.028514668345451355, -0.01989080384373665, 0.03390194848179817, -0.03016604855656624, -0.015676315873861313, -0.030967088416218758, -0.024441596120595932, -0.02918289229273796, -0.0008636125130578876, 0.014423845335841179, 0.044702764600515366, 0.0238482803106308, 0.024545250460505486, -0.009375854395329952, -0.020469244569540024, 0.047627829015254974, -0.036352988332509995, -0.05729568749666214, -0.004748303443193436, -0.06313730031251907, 0.02418922260403633, 0.04794561490416527, 0.01763191819190979, -0.06753421574831009, 0.051924847066402435, 0.02521955408155918, -0.002750782296061516, 0.025421494618058205, -0.03473192825913429, 0.015352326445281506, -0.03773326054215431, -0.025884302332997322, -0.061386946588754654, 0.028427626937627792, 0.022062787786126137, -0.021623527631163597, -0.006141558289527893, 0.018433159217238426, -0.03380921110510826, 0.033629000186920166, -0.04359498992562294, -0.024081114679574966, 0.05061013996601105, -0.02652302198112011, 0.008493403904139996, -0.024532761424779892, -0.06523016095161438, 0.011321061290800571, 0.060835160315036774, -0.041950762271881104, 0.012134448625147343, -0.04231865331530571, 0.047535259276628494, -0.010876588523387909, 0.04587942361831665, -0.020046647638082504, -0.05469510331749916, 0.09062348306179047, 0.004257570952177048, 0.00836031511425972, 0.031663015484809875, -0.005843930412083864, 0.025682246312499046, 0.031683508306741714, 0.004478595685213804, -0.014787957072257996, 0.04089491814374924, -0.020304175093770027, -0.01934584230184555, 0.020225832238793373, 0.0030517459381371737, -0.03959178179502487, -0.04284961149096489, 0.06561855971813202, 0.020563097670674324, -0.041320573538541794, -0.06142435595393181, 0.05337962880730629, -0.035163868218660355, -0.02430654689669609, -0.046658486127853394, -0.009399795904755592, -0.02189440093934536, 0.031035754829645157, -0.042905986309051514, 0.01646624691784382, 0.08108491450548172, -0.009190322831273079, -0.009153619408607483, 0.007877573370933533, 0.060000691562891006, 0.09869281947612762, 0.02661636844277382, 0.006946112494915724, 0.05859003961086273, 0.02618594281375408, -0.03168550878763199, -0.0027201042976230383, -0.031364452093839645, -0.012516451999545097, -0.007403713185340166, -0.004379656165838242, 0.04458516836166382, -0.019306935369968414, 0.06576463580131531, -0.015032283030450344, -0.0002982483711093664, -0.018321000039577484, 0.00873116310685873, 0.023164942860603333, 0.03613520786166191, 0.033077992498874664, 0.04642713442444801, -0.03456684201955795, -0.025600869208574295, 0.02200176566839218, -0.03954508900642395, -0.020958486944437027, 0.030366986989974976, -0.023591797798871994, -0.009032819420099258, 0.024973878636956215, 0.05138104036450386, 0.06575671583414078, -0.02550903707742691, 0.010987253859639168, 0.002123175887390971, 0.03735315054655075, 0.010439852252602577, 0.03511989116668701, -0.0006317389197647572, -0.02655867300927639, 0.005839927587658167, -0.04930264875292778, -0.0022227142471820116, 0.01060570403933525, -0.012932011857628822, 0.03193391487002373, -0.012893492355942726, 0.004972459748387337, -0.006585642695426941, -0.027404827997088432, -0.000616404926404357, -0.044392406940460205, -0.03568384051322937, -0.040790919214487076, -0.061339542269706726, -0.01668165810406208, -0.010429411195218563, -0.014536033384501934, -0.011260014958679676, -0.008916670456528664, -0.02133423089981079, -0.0005049298633821309, 0.02544904127717018, -0.05125030130147934, 0.0019529080018401146, -0.015073980204761028, 0.010212710127234459, -0.0024548263754695654, 0.010734527371823788, 0.03640174865722656, 0.018806448206305504, -0.0014428584836423397, -0.03393397852778435, 0.02025708369910717, 0.03111831471323967, 0.014226703904569149, -0.009121149778366089, -0.05808999761939049, 0.0124222282320261, 0.0007027770625427365, 0.03796838968992233, -0.05841035768389702, 0.001833155401982367, 0.059395141899585724, -0.0020324692595750093, 0.05060449615120888, -0.011920818127691746, -0.002717229537665844, -0.005216873250901699, 0.0033580756280571222, -0.02265217900276184, -0.0068320599384605885, 0.04155676066875458, 0.012215027585625648, 0.10420194268226624, 0.06595791131258011, -0.037429746240377426, -0.015224628150463104, -0.026575306430459023, -0.019214635714888573, 0.006882112473249435, -0.052300505340099335, -0.03405868262052536, -0.05414125695824623, -0.08479128777980804, -0.04748166352510452, 0.005195962730795145, -0.029510488733649254, -0.006833454594016075, -0.0004206483135931194, -0.009104778990149498, -0.036947328597307205, 0.0194997601211071, -0.029612649232149124, 0.03654980659484863, -0.04044221714138985, -0.02308475971221924, -0.007283207029104233, 0.012919117696583271, -0.0026444096583873034, -0.012401650659739971, 0.03429923579096794, -0.04435805231332779, -0.0238818246871233, -0.012770715169608593, 0.028802132233977318, 0.04785347357392311, 0.019808219745755196, 0.012074044905602932 ]
[ -0.06688251346349716, -0.03160322830080986, -0.034309230744838715, -0.03938966244459152, 0.05089984089136124, -0.06341385096311569, -0.036387354135513306, 0.0015903188614174724, -0.017618069425225258, -0.03143421560525894, 0.017200883477926254, -0.037102099508047104, -0.009597249329090118, -0.036668408662080765, 0.10990303009748459, 0.0010612652404233813, -0.03249840810894966, -0.05916064605116844, -0.037760645151138306, 0.07677716761827469, -0.013093900866806507, -0.028933390974998474, -0.021705782040953636, -0.04304872453212738, -0.034994106739759445, 0.04563611373305321, 0.06423644721508026, -0.015255880542099476, -0.02548358030617237, -0.17875084280967712, -0.012548370286822319, -0.021744856610894203, 0.0348639078438282, 0.002121269004419446, 0.024429621174931526, 0.02658965438604355, 0.0446309968829155, -0.01818801835179329, -0.0052267322316765785, 0.027363160625100136, 0.017421044409275055, 0.010132265277206898, -0.07195450365543365, -0.00892746914178133, 0.0677298754453659, 0.012302429415285587, -0.0022092319559305906, -0.013505698181688786, 0.009991670027375221, 0.03301417455077171, -0.013626317493617535, 0.02341241016983986, 0.006697035860270262, -0.023477502167224884, 0.013062315061688423, 0.022996822372078896, 0.0310647115111351, 0.08153752982616425, 0.006663793697953224, 0.03020353801548481, 0.007938657887279987, 0.0073766992427408695, -0.1354449987411499, 0.12449070066213608, 0.040837906301021576, 0.019365506246685982, -0.04508264735341072, -0.03483278676867485, -0.0016937297768890858, 0.05642208084464073, -0.0022812329698354006, -0.009364640340209007, -0.04053990915417671, 0.04599955305457115, -0.01451254915446043, 0.026119517162442207, -0.01715839095413685, 0.007958300411701202, 0.03868897259235382, -0.05880393087863922, -0.05056328326463699, 0.02521790936589241, -0.049531735479831696, 0.009148780256509781, -0.04798080027103424, 0.008225713856518269, 0.009944789111614227, 0.0918624997138977, -0.01068889256566763, 0.06367192417383194, 0.03121686913073063, 0.011769352480769157, 0.051992159336805344, 0.024107754230499268, -0.06565582007169724, -0.020313983783125877, -0.01954566314816475, 0.01737874560058117, -0.01772620901465416, 0.37301549315452576, 0.017652135342359543, 0.012615027837455273, 0.034404970705509186, 0.03490324318408966, -0.019248181954026222, -0.00845763087272644, 0.011708247475326061, -0.049723830074071884, 0.05365131422877312, -0.013303757645189762, -0.011380629613995552, -0.01044022012501955, 0.04893966764211655, -0.08586258441209793, -0.007197872269898653, 0.021996768191456795, 0.032073359936475754, 0.019335146993398666, -0.018383368849754333, 0.028079064562916756, -0.0012095144484192133, -0.04285384342074394, 0.06855612248182297, 0.00703519769012928, 0.050485167652368546, 0.024784067645668983, 0.037579480558633804, 0.023841405287384987, 0.028218746185302734, 0.03162307292222977, 0.027492372319102287, -0.015811188146471977, -0.058365173637866974, 0.03463972732424736, 0.008388319984078407, 0.02402917481958866, -0.0066176592372357845, -0.04200753569602966, -0.024444950744509697, 0.029239650815725327, -0.017891203984618187, -0.009063885547220707, 0.008371605537831783, 0.00992792472243309, -0.02092457190155983, 0.10599829256534576, 0.0032599896658211946, -0.009721285663545132, -0.03389574587345123, -0.039598479866981506, 0.01654045656323433, 0.05944894999265671, -0.0061338674277067184, -0.033554960042238235, -0.009240547195076942, -0.00945318304002285, 0.08780214190483093, 0.002767703728750348, -0.07913851737976074, -0.003353557549417019, -0.04049861803650856, -0.03259842470288277, -0.023330919444561005, 0.0860896036028862, 0.04243871942162514, -0.13033302128314972, -0.006713464856147766, -0.0009210443822667003, 0.01674288883805275, -0.05341976135969162, 0.009830272756516933, 0.020441019907593727, -0.0280808936804533, -0.05062742531299591, 0.06506725400686264, -0.020687691867351532, 0.01593850553035736, -0.008955462835729122, 0.04865124076604843, 0.010107969865202904, -0.021147795021533966, -0.02841712348163128, -0.03712742030620575, -0.014833497814834118, -0.05704822018742561, -0.09525581449270248, -0.09548021852970123, 0.04826192557811737, -0.045981358736753464, -0.020435309037566185, -0.04633302241563797, 0.026893192902207375, -0.06465686112642288, 0.09891770780086517, -0.01660247892141342, -0.03367754444479942, -0.024829724803566933, 0.010612206533551216, -0.012282542884349823, -0.03919186815619469, 0.03952464088797569, 0.03685799986124039, -0.032032325863838196, 0.015886234119534492, -0.04726259782910347, 0.03359174728393555, 0.07987476140260696, -0.01727316901087761, 0.059288617223501205, 0.017891542986035347, -0.029140569269657135, 0.019064567983150482, -0.007815802469849586, 0.03674615919589996, -0.022086508572101593, -0.018333500251173973, -0.004807096440345049, -0.008013589307665825, 0.01833251677453518, 0.04594608023762703, -0.04219659045338631, 0.009540553204715252, 0.0008527920581400394, -0.3330105245113373, -0.020315714180469513, -0.026067117229104042, -0.014829126186668873, 0.019646283239126205, -0.04054250195622444, 0.04720129072666168, -0.015816034749150276, 0.03445732593536377, 0.012748116627335548, 0.1038675457239151, -0.021057330071926117, 0.04131639003753662, -0.06481961160898209, -0.00480407802388072, 0.055154018104076385, 0.008079521358013153, -0.02619972825050354, -0.0005841456004418433, 0.02701582759618759, -0.008581037633121014, -0.047544416040182114, -0.0328274630010128, -0.017288794741034508, -0.009705469943583012, -0.011456550098955631, 0.08913426101207733, -0.011038252152502537, 0.046514496207237244, -0.05036753788590431, 0.034223657101392746, -0.0016384143382310867, 0.014094018377363682, -0.10051827132701874, 0.007772399112582207, -0.01715414598584175, 0.03782583773136139, 0.02545933984220028, 0.011902904137969017, -0.010446866974234581, -0.04912209510803223, -0.006173767615109682, -0.058009903877973557, -0.06575209647417068, 0.009484091773629189, -0.00029737496515735984, -0.05922340601682663, 0.04095245897769928, 0.0030686487443745136, 0.048895541578531265, 0.01471380703151226, 0.030894706025719643, -0.013071486726403236, 0.028732581064105034, 0.006097517907619476, -0.016532037407159805, -0.05926726385951042, -0.032759618014097214, 0.03197276592254639, 0.06538232415914536, 0.015512184239923954, 0.05648643895983696, 0.03151986747980118, -0.07587821781635284, 0.042177263647317886, 0.002282524248585105, -0.02675136923789978, 0.026685405522584915, 0.05623649060726166, -0.06297386437654495, -0.009898968040943146, 0.12886838614940643, -0.028992608189582825, 0.026794221252202988, 0.01777852512896061, 0.01403267402201891, -0.005391024053096771, -0.004816827829927206, 0.03819439187645912, 0.005437670741230249, 0.025704795494675636, -0.03829936683177948, 0.051995910704135895, -0.03291894495487213, -0.02749006450176239, 0.08889899402856827, -0.005204105284065008, -0.053020596504211426, 0.014445829205214977, 0.024807095527648926, -0.0379493311047554, -0.020886821672320366, -0.031208714470267296, -0.0567665733397007, 0.05983014404773712, -0.008624279871582985, -0.2669674754142761, 0.024058084934949875, 0.037852268666028976, 0.05163663998246193, -0.02023269794881344, -0.016066156327724457, 0.034245554357767105, -0.04134679213166237, -0.00020361611677799374, 0.01757867820560932, 0.011565735563635826, 0.05005328729748726, -0.02251306176185608, 0.00029794295551255345, 0.01325900573283434, 0.014911344274878502, 0.02613801695406437, 0.028754204511642456, 0.01056879572570324, -0.028559386730194092, 0.009745546616613865, -0.042395107448101044, 0.16415680944919586, 0.03677287697792053, -0.010740119963884354, 0.05362500250339508, -0.0209683608263731, 0.05200658738613129, 0.05443556234240532, -0.004398099612444639, 0.009563188068568707, 0.06357605755329132, -0.036766745150089264, -0.01977568119764328, 0.021528344601392746, -0.050359468907117844, -0.018059350550174713, 0.050710417330265045, 0.03324900567531586, -0.022211553528904915, -0.012275099754333496, 0.00842514168471098, -0.04581413045525551, 0.005132612772285938, 0.06238506734371185, -0.03426821902394295, 0.004461323376744986, -0.026396607980132103, -0.08557705581188202, -0.0042473445646464825, -0.06541747599840164, -0.0660923644900322, -0.027388576418161392, -0.021582558751106262, -0.0039267647080123425, 0.09772904962301254, -0.03236299008131027, -0.017564797773957253, 0.006231194827705622, 0.03683743625879288, -0.015782035887241364, -0.05716260150074959, 0.10892140865325928, -0.01591973565518856, 0.018523572012782097 ]
[ 0.04277187958359718, 0.05579766631126404, -0.026906447485089302, 0.015129713341593742, -0.012173955328762531, -0.0009788182796910405, -0.002276849467307329, -0.0005092183127999306, 0.011653806082904339, 0.012490606866776943, 0.010385077446699142, 0.03570731356739998, 0.062204327434301376, -0.007547634653747082, -0.016409900039434433, 0.008569560013711452, -0.009867495857179165, 0.02938353829085827, 0.015075406059622765, -0.017913468182086945, -0.04062032699584961, -0.02005624771118164, 0.037637438625097275, 0.0027615693397819996, -0.03755079209804535, 0.014280716888606548, -0.004687624983489513, 0.02264496684074402, 0.013158679008483887, -0.13618654012680054, 0.034763168543577194, -0.03634069487452507, -0.00698819337412715, 0.01052163913846016, -0.012937914580106735, 0.025282779708504677, 0.051392972469329834, -0.03110651485621929, -0.006844765041023493, 0.023626727983355522, 0.036323145031929016, 0.0014866694109514356, -0.02321886084973812, -0.013671974651515484, 0.013355114497244358, -0.024999191984534264, -0.025834858417510986, -0.05427948012948036, 0.015792984515428543, -0.022676615044474602, -0.013115428388118744, 0.0002942746796179563, -0.034693051129579544, 0.006836392916738987, -0.030446531251072884, -0.02164643257856369, -0.028123565018177032, 0.005569912027567625, 0.013348043896257877, -0.022248640656471252, 0.018596617504954338, -0.02584887482225895, -0.04578674957156181, 0.0034641411621123552, -0.023179272189736366, -0.0006395330419763923, 0.020128654316067696, -0.010234666056931019, -0.0012034645769745111, 0.032969653606414795, -0.002967350883409381, 0.04310968145728111, -0.06422483175992966, -0.027370888739824295, 0.003491318318992853, 0.02646806836128235, 0.044137679040431976, -0.029524389654397964, -0.03963674604892731, 0.01938113197684288, -0.04884933680295944, 0.011013072915375233, -0.05623456463217735, -0.01699625328183174, -0.05917416885495186, 0.036630380898714066, 0.0282682403922081, -0.0405147522687912, -0.001008252496831119, 0.016525952145457268, 0.013745109550654888, -0.0002589231007732451, 0.006482190452516079, -0.023388640955090523, -0.09551341831684113, -0.025434885174036026, 0.023495789617300034, 0.012304989621043205, -0.001393039827235043, 0.8096832633018494, 0.0034786227624863386, -0.005295339971780777, -0.018696535378694534, -0.009336043149232864, 0.003897701622918248, -0.003447019262239337, 0.01916768029332161, 0.0318656750023365, 0.010151686146855354, 0.03795867785811424, -0.0195425134152174, 0.005585260223597288, 0.0021516100969165564, 0.007178044877946377, 0.019169649109244347, 0.05105943605303764, 0.010856904089450836, -0.032286349684000015, 0.01980380341410637, 0.06745044142007828, 0.04910121113061905, 0.012142566032707691, 0.008251260034739971, 0.02358473464846611, -0.020441977307200432, -0.15884995460510254, -0.04282417520880699, -6.564955951770006e-33, 0.04858405143022537, 0.0003387076430954039, 0.06187566742300987, 0.019793545827269554, 0.010891556739807129, 0.03169476240873337, -0.004431915935128927, -0.018763065338134766, -0.017324073240160942, -0.06090819463133812, -0.03330790996551514, 0.013836812227964401, 0.019741445779800415, -0.020786434412002563, -0.017772404477000237, -0.04591706022620201, 0.01690734550356865, 0.014349928125739098, 0.009686200879514217, 0.04452749341726303, -0.008204747922718525, 0.012785608880221844, -0.017174623906612396, 0.05090605840086937, 0.018400076776742935, 0.01999615877866745, 0.01953689008951187, 0.00993675459176302, 0.010267751291394234, -0.03690014034509659, -0.03864175081253052, 0.017924368381500244, -0.022921273484826088, -0.025982288643717766, -0.0032638544216752052, -0.06233981251716614, -0.01242938544601202, 0.03343558683991432, -0.01559228915721178, -0.04395149275660515, -0.015297279693186283, -0.006091090384870768, -0.010690860450267792, 0.005733357276767492, -0.056603822857141495, -0.04693461209535599, 0.0020101843401789665, 0.018534434959292412, 0.018884453922510147, 0.032135941088199615, -0.04470677301287651, -0.01135492417961359, 0.046806700527668, -0.006154455244541168, -0.02051197923719883, -0.014110507443547249, -0.02466583251953125, -0.005332862958312035, -0.014547471888363361, 0.000697899202350527, 0.03392181172966957, 0.01905360445380211, -0.017907697707414627, 0.0263490229845047, 0.010027948766946793, -0.03001803159713745, -0.006411043927073479, 0.038315754383802414, -0.00178247201256454, 0.04760078713297844, -0.028561893850564957, 0.04504091665148735, -0.0009818879188969731, 0.015535335056483746, 0.030146237462759018, -0.06268604844808578, 0.00630559865385294, 0.0024118900764733553, 0.016713924705982208, 0.05904677137732506, -0.029749756678938866, -0.01991197280585766, 0.017404843121767044, 0.014582707546651363, -0.036258477717638016, 0.006179374642670155, 0.022914983332157135, 0.042913228273391724, 0.011369285173714161, 0.05652620643377304, 0.04490966722369194, 0.026749497279524803, -0.027435000985860825, -0.02939636819064617, -0.03253703936934471, 6.297145277874072e-33, 0.003796254051849246, -0.021307865157723427, -0.0376049242913723, 0.010560758411884308, 0.0388011708855629, 0.020178455859422684, 0.0036754722241312265, 0.009855554439127445, -0.05158555507659912, 0.02613813616335392, -0.01936236210167408, -0.016254818066954613, -0.0070870304480195045, -0.009534447453916073, 0.07106509059667587, -0.029751574620604515, -0.01330389454960823, -0.05567529425024986, 0.027475442737340927, 0.03740011155605316, -0.00830919574946165, -0.010883426293730736, -0.00489408615976572, 0.01594836823642254, 0.03088413178920746, -0.003399875946342945, -0.0019134300528094172, 0.014540974982082844, -0.04440173879265785, -0.013715718872845173, -0.014158373698592186, -0.03245599940419197, -0.038023047149181366, 0.018290000036358833, -0.05275172367691994, 0.01262674294412136, -0.009118889458477497, 0.030111992731690407, -0.011555954813957214, 0.0037412275560200214, 0.02391713857650757, 0.005301951430737972, -0.036658190190792084, 0.034871526062488556, 0.035124246031045914, 0.027238542214035988, 0.019739145413041115, 0.03889467194676399, -0.005604363977909088, 0.023558370769023895, -0.0347546823322773, 0.0182490274310112, 0.015674158930778503, 0.027688566595315933, 0.014651731587946415, -0.04646515101194382, -0.012210377492010593, -0.0011019987286999822, -0.009072709828615189, 0.03331572934985161, -0.021538589149713516, -0.021240634843707085, 0.0048688664101064205, 0.006096381228417158, -0.06867268681526184, -0.04784608259797096, 0.0005550150526687503, -0.006455783732235432, -0.021382765844464302, 0.004823052790015936, 0.008328418247401714, -0.026871975511312485, -0.013360975310206413, -0.005664690397679806, 0.020264238119125366, -0.013073832727968693, -0.055329080671072006, -0.02902849204838276, -0.043734949082136154, 0.03282894939184189, -0.004443706013262272, 0.06244727224111557, -0.009125718846917152, -0.003071783808991313, 0.03436771407723427, 0.010445707477629185, -0.021826885640621185, 0.031580600887537, -0.021392755210399628, 0.003954887855798006, 0.021334359422326088, -0.029967930167913437, -0.031007159501314163, 0.021356424316763878, -0.050073228776454926, -1.2146814221125624e-8, -0.006040970329195261, 0.015409616753458977, 0.022147567942738533, 0.030585912987589836, 0.01749393343925476, 0.019335255026817322, 0.0052269878797233105, 0.01658754050731659, 0.007174631580710411, 0.0007972321473062038, 0.027733251452445984, -0.03354291245341301, 0.027402130886912346, 0.018571529537439346, 0.011504068039357662, -0.010861814953386784, 0.02545306272804737, 0.008232846856117249, 0.036040741950273514, 0.017170477658510208, -0.027693655341863632, 0.021368997171521187, -0.0071205999702215195, 0.005839246325194836, 0.017386876046657562, 0.02063662000000477, 0.01866421103477478, -0.06552992016077042, -0.029378894716501236, -0.01747051626443863, -0.015234502963721752, -0.04135304316878319, -0.03435128554701805, -0.016033699735999107, -0.01778610795736313, -0.04157312214374542, -0.0014188706409186125, 0.04320543631911278, -0.01993555761873722, 0.03609996661543846, 0.021227212622761726, 0.029482906684279442, -0.024085350334644318, -0.02980131097137928, -0.012979892082512379, 0.01353395450860262, -0.042663317173719406, 0.013560733757913113, 0.030825676396489143, -0.0300641767680645, 0.037065256386995316, -0.017952000722289085, 0.009242262691259384, 0.04569517821073532, 0.04535022750496864, -0.015102886594831944, 0.02574908547103405, -0.05068375542759895, 0.0021312846802175045, -0.008029233664274216, 0.03706282377243042, 0.024578385055065155, -0.03880859911441803, -0.022006774321198463 ]
aws-spinning-up-a-neo4j-instance-with-apoc-installed
https://markhneedham.com/blog/2017/09/30/aws-spinning-up-a-neo4j-instance-with-apoc-installed
false
2017-09-30 07:51:29
Serverless: Building a mini producer/consumer data pipeline with AWS SNS
[ "aws", "serverless", "sns", "ec2", "data-pipeline" ]
[ "Software Development" ]
I wanted to create a little data pipeline with https://serverless.com/[Serverless] whose main use would be to run once a day, call an API, and load that data into a database. It's mostly used to pull in recent data from that API, but I also wanted to be able to invoke it manually and specify a date range. I created the following pair of lambdas that https://forum.serverless.com/t/solved-publishing-to-created-sns-topic/1426[communicate with each other via an SNS topic]. == The code +++<cite>+++serverless.yml+++</cite>+++ [source,yaml] ---- service: marks-blog frameworkVersion: ">=1.2.0 <2.0.0" provider: name: aws runtime: python3.6 timeout: 180 iamRoleStatements: - Effect: 'Allow' Action: - "sns:Publish" Resource: - ${self:custom.BlogTopic} custom: BlogTopic: Fn::Join: - ":" - - arn - aws - sns - Ref: AWS::Region - Ref: AWS::AccountId - marks-blog-topic functions: message-consumer: name: MessageConsumer handler: handler.consumer events: - sns: topicName: marks-blog-topic displayName: Topic to process events message-producer: name: MessageProducer handler: handler.producer events: - schedule: rate(1 day) ---- +++<cite>+++handler.py+++</cite>+++ [source,python] ---- import boto3 import json import datetime from datetime import timezone def producer(event, context): sns = boto3.client('sns') context_parts = context.invoked_function_arn.split(':') topic_name = "marks-blog-topic" topic_arn = "arn:aws:sns:{region}:{account_id}:{topic}".format( region=context_parts[3], account_id=context_parts[4], topic=topic_name) now = datetime.datetime.now(timezone.utc) start_date = (now - datetime.timedelta(days=1)).strftime("%Y-%m-%d") end_date = now.strftime("%Y-%m-%d") params = {"startDate": start_date, "endDate": end_date, "tags": ["neo4j"]} sns.publish(TopicArn= topic_arn, Message= json.dumps(params)) def consumer(event, context): for record in event["Records"]: message = json.loads(record["Sns"]["Message"]) start_date = message["startDate"] end_date = message["endDate"] tags = message["tags"] print("start_date: " + start_date) print("end_date: " + end_date) print("tags: " + str(tags)) ---- == Trying it out We can simulate a message being received locally by executing the following command: [source,bash] ---- $ serverless invoke local \ --function message-consumer \ --data '{"Records":[{"Sns": {"Message":"{\"tags\": [\"neo4j\"], \"startDate\": \"2017-09-25\", \"endDate\": \"2017-09-29\" }"}}]}' start_date: 2017-09-25 end_date: 2017-09-29 tags: ['neo4j'] null ---- That seems to work fine. What about if we invoke the message-producer on AWS? [source,bash] ---- $ serverless invoke --function message-producer null ---- Did the consumer received the message? [source,bash] ---- $ serverless logs --function message-consumer START RequestId: 0ef5be87-a5b1-11e7-a905-f1387e68c65f Version: $LATEST start_date: 2017-09-29 end_date: 2017-09-30 tags: ['neo4j'] END RequestId: 0ef5be87-a5b1-11e7-a905-f1387e68c65f REPORT RequestId: 0ef5be87-a5b1-11e7-a905-f1387e68c65f Duration: 0.46 ms Billed Duration: 100 ms Memory Size: 1024 MB Max Memory Used: 32 MB ---- Looks like it! We can also invoke the consumer directly on AWS: [source,bash] ---- $ serverless invoke \ --function message-consumer \ --data '{"Records":[{"Sns": {"Message":"{\"tags\": [\"neo4j\"], \"startDate\": \"2017-09-25\", \"endDate\": \"2017-09-26\" }"}}]}' null ---- And now if we check the consumer's logs we'll see both messages: [source,bash] ---- $ serverless logs --function message-consumer START RequestId: 0ef5be87-a5b1-11e7-a905-f1387e68c65f Version: $LATEST start_date: 2017-09-29 end_date: 2017-09-30 tags: ['neo4j'] END RequestId: 0ef5be87-a5b1-11e7-a905-f1387e68c65f REPORT RequestId: 0ef5be87-a5b1-11e7-a905-f1387e68c65f Duration: 0.46 ms Billed Duration: 100 ms Memory Size: 1024 MB Max Memory Used: 32 MB START RequestId: 4cb42bc9-a5b1-11e7-affb-99fa6b4dc3ed Version: $LATEST start_date: 2017-09-25 end_date: 2017-09-26 tags: ['neo4j'] END RequestId: 4cb42bc9-a5b1-11e7-affb-99fa6b4dc3ed REPORT RequestId: 4cb42bc9-a5b1-11e7-affb-99fa6b4dc3ed Duration: 16.46 ms Billed Duration: 100 ms Memory Size: 1024 MB Max Memory Used: 32 MB ---- Success!
null
null
[ 0.025156131014227867, -0.021745439618825912, -0.007155431900173426, 0.01390647329390049, 0.0687096118927002, 0.02168346382677555, 0.005204436369240284, 0.04032741114497185, -0.004483866970986128, 0.015891816467046738, 0.006230462342500687, 0.009746287949383259, -0.05533047765493393, 0.021466854959726334, -0.015044636093080044, 0.06090043857693672, 0.06153565272688866, -0.018033556640148163, 0.021196750923991203, -0.0012672179145738482, 0.016684608533978462, 0.0383579358458519, 0.010276836343109608, 0.020623011514544487, 0.001046116929501295, 0.034813281148672104, -0.0006975118885748088, 0.008165305480360985, -0.052243709564208984, -0.001481301849707961, 0.042884886264801025, 0.012166589498519897, -0.017764359712600708, 0.008754788897931576, 0.01952952705323696, -0.014168796129524708, -0.012151522561907768, 0.006273051258176565, -0.009632429108023643, 0.042513657361269, -0.060982830822467804, 0.03213081136345863, -0.022378921508789062, 0.003785698441788554, -0.02741025760769844, 0.023555319756269455, -0.011671474203467369, 0.022005122154951096, -0.008324170485138893, -0.007064581848680973, -0.0893506333231926, 0.018222307786345482, -0.023110156878829002, 0.006414566654711962, 0.0034518560860306025, 0.04047130048274994, 0.018628841266036034, -0.0887778252363205, 0.029946688562631607, -0.022647621110081673, 0.02195853926241398, -0.014357085339725018, 0.01685970090329647, 0.011224715039134026, 0.03157868608832359, -0.008381417952477932, -0.025341222062706947, 0.04039042815566063, -0.043891772627830505, -0.012842407450079918, 0.007367321290075779, -0.004823221825063229, -0.03698382154107094, -0.013290886767208576, -0.015924176201224327, -0.06078929454088211, -0.024609189480543137, 0.06001286953687668, 0.04012215882539749, 0.06569183617830276, 0.011318288743495941, -0.016035981476306915, 0.008362868800759315, 0.017203086987137794, -0.0023983509745448828, -0.009672814980149269, -0.057922933250665665, -0.028067121282219887, -0.04245443642139435, 0.05216869339346886, 0.03517274931073189, -0.038293272256851196, 0.026071887463331223, -0.004418251570314169, -0.00208865525200963, 0.015045801177620888, 0.004577193409204483, -0.0006233355961740017, 0.02042514830827713, -0.0245207529515028, -0.03304952755570412, -0.0012713158503174782, 0.018885083496570587, 0.012506842613220215, -0.05525509640574455, -0.04790395870804787, -0.03894072771072388, -0.019279347732663155, 0.01629723608493805, 0.01913442276418209, -0.026066428050398827, 0.013646277599036694, -0.033053603023290634, 0.007245346438139677, -0.07899640500545502, 0.04497659206390381, 0.01007840409874916, -0.05890636146068573, 0.013791755773127079, -0.008168765343725681, 0.06154602766036987, 0.015462077222764492, -0.028489572927355766, 0.08650833368301392, -0.0030436415690928698, 0.03692245855927467, -0.006340664345771074, 0.05323021858930588, 0.0016089967684820294, -0.05324851721525192, -0.03100978024303913, 0.057425569742918015, 0.004626997280865908, 0.0007768133655190468, 0.002561701461672783, -0.016600199043750763, -0.025157643482089043, 0.03127481788396835, 0.09234754741191864, 0.025906288996338844, 0.004914521239697933, -0.01833234913647175, 0.011051205918192863, -0.024686051532626152, 0.048834946006536484, 0.03103828802704811, 0.031198497861623764, -0.056315869092941284, -0.026057297363877296, 0.014686043374240398, 0.020203514024615288, 0.015327014960348606, 0.039533745497465134, -0.0444350428879261, 0.020488344132900238, 0.046919845044612885, 0.026656990870833397, 0.023034824058413506, -0.03707614913582802, 0.009687043726444244, 0.04323574900627136, 0.039794765412807465, -0.013473021797835827, 0.022777928039431572, 0.02222328633069992, -0.05191168934106827, -0.00009570476686349139, 0.033426687121391296, -0.0015287093119695783, -0.006918013095855713, -0.05331548675894737, -0.05187652260065079, 0.06007929518818855, -0.011875234544277191, -0.004413536749780178, 0.02834807150065899, 0.0936061218380928, 0.026094786822795868, 0.04595305770635605, -0.01086509320884943, -0.0681983083486557, 0.03837508335709572, -0.004733503796160221, 0.019094480201601982, 0.040809355676174164, -0.0013746873009949923, 0.08455204963684082, 0.019461117684841156, 0.014684990048408508, 0.05231522396206856, -0.0821087583899498, -0.0917564257979393, -0.030757177621126175, -0.009761123917996883, 0.04766060784459114, -0.051222868263721466, -0.004086015280336142, 0.09932488203048706, 0.013896914198994637, 0.04621310532093048, 0.006318721454590559, -0.006040866486728191, 0.006212612614035606, -0.05618200823664665, -0.07302834093570709, 0.035509705543518066, 0.024372171610593796, -0.03240065276622772, -0.027492428198456764, 0.015927711501717567, -0.05589441955089569, 0.007565027102828026, 0.031345415860414505, -0.038120921701192856, 0.05139784887433052, 0.03726121038198471, 0.034454308450222015, -0.029779165983200073, 0.03398721292614937, -0.033642642199993134, 0.05956624820828438, 0.0021876078099012375, -0.028430841863155365, -0.009321491234004498, -0.01746627688407898, 0.10870222747325897, 0.0820145234465599, -0.006276320666074753, -0.05633223429322243, 0.029323268681764603, 0.010003851726651192, -0.019840434193611145, -0.013686033897101879, -0.038945119827985764, -0.024118894711136818, 0.03365984559059143, 0.007539907470345497, -0.03519865497946739, -0.006316606421023607, -0.02204461395740509, 0.0056113372556865215, 0.06461253762245178, -0.02515234798192978, 0.0648430660367012, 0.0037004328332841396, -0.00015052559319883585, -0.014219855889678001, -0.02767827920615673, -0.0421525202691555, 0.002292454242706299, -0.0002480235416442156, -0.02058941312134266, 0.051631443202495575, -0.031836315989494324, -0.025183938443660736, -0.01321425475180149, -0.05552341043949127, 0.0472407266497612, 0.0417422391474247, 0.048315245658159256, -0.047804225236177444, 0.046770863234996796, -0.034847237169742584, 0.020990869030356407, 0.009722934104502201, -0.049921490252017975, -0.03390756994485855, -0.010499239899218082, 0.027045272290706635, 0.01621820218861103, 0.03564344719052315, 0.016569118946790695, 0.03570493310689926, 0.012986322864890099, 0.011075552552938461, -0.0036758538335561752, 0.03976726531982422, -0.01629488728940487, -0.027518272399902344, -0.048208486288785934, -0.00986677035689354, 0.039264924824237823, -0.0364108569920063, -0.03517996147274971, 0.00493372417986393, -0.04916886240243912, 0.045209307223558426, -0.08222020417451859, -0.032960932701826096, -0.019190222024917603, 0.023221032693982124, 0.03284793719649315, 0.021859243512153625, 0.0144421998411417, 0.07302602380514145, 0.0020501245744526386, -0.015565676614642143, 0.010638494044542313, 0.011542443186044693, 0.021693455055356026, -0.013402457349002361, 0.021922295913100243, 0.034237977117300034, 0.00589740788564086, -0.02497446909546852, -0.041272226721048355, 0.007646017242223024, -0.04471423476934433, -0.2783103287220001, 0.041124649345874786, -0.00506591098383069, -0.03992650657892227, 0.013842243701219559, 0.004152822773903608, 0.017406513914465904, -0.03854944929480553, -0.01154650654643774, -0.007055280730128288, -0.006341116037219763, -0.031607020646333694, -0.021734612062573433, 0.03905945643782616, -0.0016215237556025386, 0.010958963073790073, -0.0105328019708395, -0.05830247700214386, 0.01308385469019413, -0.005813231226056814, -0.027011068537831306, -0.03998886048793793, -0.006944350432604551, 0.026286352425813675, 0.038419339805841446, 0.03718552365899086, -0.04663410410284996, 0.06411822140216827, -0.04281673580408096, -0.04192562401294708, 0.013466170988976955, -0.029163077473640442, 0.0021935184486210346, -0.027228981256484985, 0.003614161629229784, -0.042645689100027084, 0.011095218360424042, 0.007552007213234901, 0.025726765394210815, -0.012997881509363651, -0.05004828795790672, -0.06517215818166733, 0.006541038863360882, 0.009682630188763142, 0.09669850021600723, -0.0032776661682873964, -0.050391603261232376, -0.024603141471743584, -0.03525650501251221, 0.06638707965612411, -0.03168344125151634, -0.043043650686740875, -0.020463310182094574, 0.0015457215486094356, -0.023070037364959717, -0.02253454551100731, -0.03995732590556145, -0.00974984746426344, -0.015763137489557266, -0.01699509657919407, 0.00747961038723588, -0.03379461169242859, 0.009542219340801239, -0.06155182048678398, -0.03073030151426792, -0.027020227164030075, -0.04776518791913986, -0.0023263704497367144, 0.06445532292127609, 0.056831181049346924, -0.0222610030323267, 0.013234470970928669, -0.037332043051719666, -0.11965008825063705, 0.011929928325116634, -0.034627966582775116, -0.013505175709724426, -0.013906535692512989, -0.012468733824789524, 0.03583383187651634, -0.047912467271089554, -0.06052432581782341, 0.0032122591510415077, 0.01179184578359127, 0.02442474104464054, -0.01929568126797676, 0.021142082288861275, -0.022811656817793846, -0.03275202587246895, -0.025174865499138832, 0.06242354214191437, -0.03174949064850807, -0.016620071604847908, -0.002132649067789316, 0.007666496559977531, 0.055734045803546906, 0.031297095119953156, 0.018671028316020966, -0.000051760835049208254, 0.03726896643638611, 0.030765539035201073, -0.04056231305003166, -0.019572854042053223, -0.05660495162010193, 0.009627988561987877, 0.01407664455473423, -0.0558023601770401, 0.004954114090651274, 0.011442961171269417, 0.015120266005396843, -0.00947310496121645, -0.00393284484744072, -0.009951412677764893, -0.051769476383924484, -0.06255924701690674, -0.011589009314775467, 0.003125459887087345, 0.028420645743608475, 0.03045623004436493, -0.018923893570899963, -0.07141368091106415, 0.03239985182881355, 0.04481937736272812, -0.011656947433948517, -0.055330004543066025, -0.04739058017730713, -0.0035545642022043467, 0.010112657211720943, 0.023860160261392593, -0.0015831851633265615, -0.005711102858185768, -0.007021965924650431, 0.03672308847308159, -0.010078360326588154, 0.02861878275871277, -0.03627584129571915, -0.023012101650238037, -0.029074357822537422, 0.015465563163161278, 0.04962225258350372, -0.01275891438126564, -0.008340136148035526, -0.022920656949281693, 0.03282339125871658, 0.056348979473114014, 0.04623425379395485, 0.024663595482707024, 0.006302815396338701, 0.019496483728289604, 0.014569471590220928, 0.002409340813755989, -0.04027519002556801, -0.007119073998183012, -0.03830510750412941, -0.029150383546948433, 0.011981687508523464, 0.07297337055206299, -0.022466737776994705, -0.02169771119952202, -0.03822210058569908, 0.0026089572347700596, -0.08227093517780304, 0.01211293414235115, -0.009835812263190746, -0.007535829674452543, 0.03649449348449707, -0.01655271090567112, 0.027925414964556694, 0.013137212023139, -0.02990065887570381, -0.00369066558778286, -0.0005232226685620844, -0.020662276074290276, 0.05114835128188133, -0.0058092414401471615, 0.011248216032981873, 0.012213381938636303, 0.03125956654548645, -0.01575404964387417, -0.0037566276732832193, 0.030936967581510544, 0.0073476978577673435, 0.005485037807375193, 0.0011491042096167803, 0.03714372590184212, 0.040491487830877304, 0.021064169704914093, 0.014904347248375416, -0.020972339436411858, -0.01585378497838974, -0.011523419991135597, -0.008563991636037827, 0.0074845124036073685, -0.019211145117878914, -0.014249828644096851, -0.07349860668182373, 0.056434325873851776, 0.021880576387047768, 0.002271816600114107, -0.019338535144925117, -0.03689674288034439, 0.003866800107061863, -0.04090893641114235, 0.05168158933520317, 0.07049596309661865, -0.06705292314291, 0.03033634088933468, -0.02368900738656521, 0.021144511178135872, 0.002509456593543291, 0.0282550398260355, -0.04758765920996666, -0.006466923281550407, 0.012740044854581356, 0.018682263791561127, -0.012911560945212841, -0.05973566696047783, 0.004314690362662077, 0.024998527020215988, -0.0033826215658336878, 0.023634810000658035, 0.0008422177634201944, 0.002014968078583479, -0.017989469692111015, -0.04680333659052849, 0.04308504983782768, -0.022673098370432854, 0.008759899064898491, 0.011049961671233177, -0.016251198947429657, 0.004869053605943918, -0.06248045340180397, 0.016770871356129646, 0.018431629985570908, -0.02171308919787407, -0.016186311841011047, -0.06047144532203674, 0.00873868353664875, -0.015916503965854645, 0.07093571871519089, -0.01279975101351738, 0.0015823263674974442, -0.0500481091439724, -0.009333034977316856, -0.038641780614852905, 0.0013949760468676686, -0.011729038320481777, 0.026078801602125168, 0.0007065000245347619, 0.027502506971359253, -0.030839813873171806, 0.023489737883210182, -0.0226382315158844, -0.012511725537478924, 0.05046593025326729, -0.0531562902033329, -0.029127420857548714, -0.016344815492630005, -0.05932576209306717, 0.011212858371436596, 0.014371036551892757, 0.012374003417789936, -0.05327388271689415, 0.05614575743675232, 0.04151518642902374, 0.044498592615127563, 0.07474307715892792, 0.006755223497748375, 0.008107606321573257, -0.009903783909976482, -0.006285942625254393, -0.07550519704818726, -0.012641510926187038, 0.04104594513773918, 0.027248676866292953, -0.014679832383990288, 0.012836388312280178, -0.03164524957537651, 0.03694742172956467, -0.048064086586236954, -0.03816137835383415, 0.04803524911403656, -0.0277449581772089, -0.009396687150001526, 0.03702618181705475, -0.06514783203601837, 0.035162996500730515, 0.0409606508910656, -0.045303862541913986, 0.008685051463544369, -0.004700637422502041, 0.052585769444704056, -0.009572909213602543, 0.02584613673388958, -0.04187323898077011, -0.052719201892614365, 0.07831086218357086, 0.014142251573503017, -0.0311533585190773, 0.0686333179473877, -0.00999393966048956, 0.014808391220867634, 0.020642317831516266, 0.005355278495699167, 0.024317704141139984, 0.00432003615424037, -0.008303082548081875, -0.048810508102178574, 0.03224664553999901, 0.03304174169898033, -0.013697933405637741, -0.04785649850964546, 0.07239418476819992, 0.009866703301668167, -0.04569881409406662, -0.06736142188310623, 0.011095256544649601, -0.034127987921237946, -0.023393234238028526, -0.007318598683923483, 0.0029564513824880123, -0.054595138877630234, 0.04175820201635361, 0.004501561168581247, 0.014280376955866814, 0.07112403959035873, -0.011430228129029274, -0.007934905588626862, 0.037025999277830124, 0.0650070458650589, 0.06045942008495331, 0.02467918209731579, 0.014641526155173779, 0.05299941077828407, -0.03135334327816963, -0.04104341194033623, -0.009253397583961487, -0.018450388684868813, -0.017203347757458687, -0.022934047505259514, 0.03388146311044693, 0.0830286517739296, 0.01030819583684206, 0.06041519343852997, -0.03379080444574356, -0.005970374681055546, -0.033686477690935135, 0.026068469509482384, 0.04494594410061836, 0.010298889130353928, 0.0051137953996658325, 0.04841323569417, 0.02423543483018875, -0.050028905272483826, 0.014094202779233456, -0.033692367374897, -0.03293658420443535, 0.022610444575548172, -0.012366428039968014, 0.030521951615810394, 0.027110209688544273, 0.03610335662961006, 0.08001237362623215, -0.000007669877959415317, -0.0018169049872085452, -0.0016709641786292195, 0.007750677410513163, -0.007134169340133667, 0.016305817291140556, -0.027892496436834335, -0.0017565146554261446, -0.03424618020653725, -0.03544779494404793, -0.03229573741555214, -0.027865512296557426, -0.030466679483652115, 0.043877389281988144, -0.01688399538397789, -0.005179590545594692, -0.008446029387414455, -0.010539704002439976, -0.051750026643276215, -0.03153473883867264, -0.07744697481393814, -0.015704214572906494, -0.04305822402238846, -0.012523984536528587, 0.005409831181168556, -0.001421764143742621, -0.04754460230469704, -0.01818673312664032, 0.0019807531498372555, 0.015807025134563446, 0.01078108325600624, -0.05246884003281593, -0.018727052956819534, 0.030700109899044037, -0.007664929144084454, 0.02944003976881504, 0.02830228954553604, 0.06648924946784973, 0.004952921997755766, -0.004367986228317022, -0.009261230938136578, 0.03393126651644707, 0.04064607992768288, 0.009558052755892277, 0.01558502484112978, -0.07045493274927139, 0.028150152415037155, 0.03558799996972084, 0.005574007984250784, -0.06709245592355728, 0.03133339434862137, 0.07220448553562164, 0.017739351838827133, 0.046183302998542786, -0.03228307515382767, -0.014679932966828346, -0.038685496896505356, -0.020014096051454544, 0.0015019802376627922, 0.017131894826889038, 0.03534264490008354, -0.007521220948547125, 0.07513690739870071, 0.061204731464385986, -0.031400248408317566, -0.0064837574027478695, -0.02013448253273964, -0.032485343515872955, 0.009085848927497864, -0.05130299925804138, -0.051099590957164764, -0.05501073971390724, -0.07445170730352402, -0.03252173215150833, 0.018463829532265663, -0.030027851462364197, -0.008321227505803108, 0.019601672887802124, 0.02137931063771248, -0.03582970052957535, 0.01871993951499462, -0.04511190205812454, 0.003397818421944976, -0.011996758170425892, -0.024405431002378464, -0.037421297281980515, 0.013027285225689411, 0.003871165681630373, -0.01872383989393711, -0.013444158248603344, -0.014296866953372955, -0.027165869250893593, -0.040083445608615875, 0.03774762526154518, 0.041271865367889404, -0.005930003244429827, 0.04092608019709587 ]
[ -0.059049028903245926, -0.03409521281719208, -0.05565818026661873, -0.04192288964986801, 0.08309432119131088, -0.05987535044550896, -0.024512942880392075, 0.006705778650939465, 0.001063505420461297, 0.019887512549757957, 0.0012245270190760493, -0.03404470533132553, 0.009717272594571114, -0.01746445521712303, 0.0872565284371376, 0.013201259076595306, -0.00650523928925395, -0.06504480540752411, -0.05792292207479477, 0.042023442685604095, 0.04371925815939903, -0.013901500962674618, -0.06308887153863907, -0.04008197784423828, 0.01885734498500824, 0.024457504972815514, 0.027503080666065216, -0.02177792601287365, -0.03048263117671013, -0.1807551234960556, 0.005041012540459633, -0.056635692715644836, 0.027747927233576775, -0.0017488698940724134, 0.027568599209189415, 0.011470099911093712, 0.05132751911878586, -0.004468224477022886, 0.007780896499752998, 0.05108247697353363, 0.04495822265744209, 0.016036681830883026, -0.052609167993068695, -0.02175365574657917, -0.006036105565726757, -0.030319439247250557, 0.014030089601874352, 0.0031062206253409386, -0.02184869721531868, 0.026082947850227356, -0.044122204184532166, -0.01726086251437664, -0.015561090782284737, -0.03157293051481247, 0.01747514121234417, 0.02165805920958519, 0.03821001574397087, 0.06967262178659439, 0.018467208370566368, 0.00639544241130352, 0.017100146040320396, -0.023960217833518982, -0.15313000977039337, 0.11213187873363495, 0.013605672866106033, 0.06968135386705399, -0.05894340202212334, -0.00591315608471632, -0.019364362582564354, 0.060257602483034134, -0.01630733720958233, -0.02463793382048607, -0.030458103865385056, 0.07617246359586716, 0.008328837342560291, 0.011846976354718208, -0.018275519832968712, 0.022905156016349792, 0.07060267776250839, -0.051416151225566864, -0.04922594875097275, -0.008102143183350563, -0.02927817404270172, -0.0019701721612364054, -0.03495069593191147, 0.0065130689181387424, 0.0031809592619538307, 0.06128429248929024, 0.025020990520715714, 0.024435963481664658, 0.011781467124819756, -0.02533576264977455, 0.028739042580127716, 0.00856822356581688, -0.0941661149263382, -0.024388598278164864, 0.008102448657155037, 0.013854161836206913, -0.06243256852030754, 0.3806413412094116, -0.01351102627813816, -0.006719785742461681, 0.009010247886180878, 0.03814516216516495, 0.03002912364900112, -0.0063563259318470955, -0.018306609243154526, -0.05224264785647392, 0.0183377917855978, -0.018702493980526924, -0.0006270636222325265, -0.0031347773037850857, 0.036420684307813644, -0.08635447919368744, 0.015929682180285454, 0.040672410279512405, 0.009980452246963978, 0.03701278939843178, -0.0012585315853357315, 0.03737301006913185, -0.000926657288800925, -0.024800980463624, 0.055259428918361664, 0.02441375143826008, -0.0031405026093125343, 0.05908123776316643, 0.0861784964799881, 0.062199413776397705, 0.02206781506538391, 0.027224551886320114, 0.04087160900235176, -0.03574022278189659, -0.07316634804010391, -0.007609381806105375, 0.010852014645934105, 0.007699630223214626, 0.004271434620022774, -0.04357396811246872, -0.010204010643064976, 0.022319182753562927, -0.0204453207552433, -0.027691347524523735, -0.0011673213448375463, -0.0015696838963776827, -0.006099286954849958, 0.12346158921718597, 0.03883698582649231, -0.010424706153571606, -0.04946020990610123, -0.045195817947387695, -0.029819220304489136, 0.03903777897357941, 0.04158192500472069, -0.04996558278799057, 0.01925121247768402, 0.02816804312169552, 0.05192834138870239, -0.00660301186144352, -0.04329074174165726, -0.034034181386232376, -0.018645912408828735, -0.04637341573834419, -0.025874847546219826, 0.04270904138684273, 0.026368651539087296, -0.14455799758434296, -0.010402771644294262, 0.038465265184640884, 0.009282292798161507, -0.04955781623721123, 0.0034415284171700478, 0.009949852712452412, -0.01300501823425293, -0.017753303050994873, 0.048191167414188385, -0.013470356352627277, -0.011621439829468727, 0.012828273698687553, 0.02214663103222847, 0.02929059974849224, -0.04862428456544876, 0.009164632298052311, -0.021439041942358017, 0.02310534566640854, -0.06184034049510956, -0.08508916199207306, -0.04855774715542793, 0.007470345590263605, -0.0369911789894104, -0.03647292032837868, -0.04509042948484421, 0.00008321136556332931, -0.06033088639378548, 0.05157662183046341, 0.0103306258097291, -0.007319990079849958, 0.024692805483937263, 0.014119693078100681, -0.01920359954237938, -0.023597031831741333, 0.037949904799461365, 0.040177684277296066, -0.00780951464548707, 0.01930330879986286, -0.04702547565102577, 0.010693187825381756, 0.03543388098478317, -0.020075803622603416, 0.036840181797742844, 0.03099338710308075, -0.03352230414748192, 0.011185551062226295, -0.013596112839877605, 0.007552638184279203, -0.026638569310307503, -0.015863211825489998, 0.006408075802028179, 0.0062325494363904, 0.004574469290673733, 0.026852844282984734, -0.022070754319429398, 0.0014469919260591269, -0.025631381198763847, -0.3699798882007599, -0.028314275667071342, 0.010847856290638447, -0.007320821285247803, 0.028736600652337074, -0.0663406252861023, 0.006944667547941208, 0.004713558126240969, 0.002317527774721384, 0.04373849555850029, 0.12976773083209991, -0.021604033187031746, 0.024372264742851257, -0.06693969666957855, -0.015075258910655975, 0.01753505878150463, -0.055453453212976456, -0.04399222880601883, -0.019134335219860077, 0.04749443754553795, -0.005090257152915001, -0.020805714651942253, 0.015144889242947102, -0.07250574231147766, 0.005990163888782263, -0.011136537417769432, 0.11851649731397629, -0.00036705119418911636, 0.0976388230919838, -0.07541769742965698, 0.043284475803375244, -0.011753548868000507, -0.003713704878464341, -0.09504137188196182, -0.027094751596450806, -0.014486482366919518, 0.02820415049791336, 0.016905542463064194, 0.03014666587114334, -0.018642114475369453, -0.06656491011381149, 0.047571711242198944, -0.03763694688677788, -0.04571184888482094, -0.001239373697899282, -0.019084936007857323, -0.011897489428520203, -0.022711757570505142, -0.036403607577085495, 0.032255083322525024, 0.0024825024884194136, -0.0032041119411587715, 0.006937514990568161, 0.03910468518733978, 0.017042355611920357, -0.0038896449841558933, -0.0489497184753418, -0.028276454657316208, -0.02062622830271721, -0.008950483053922653, 0.0158619973808527, 0.06191886216402054, 0.019086964428424835, -0.04546835273504257, 0.012187167070806026, 0.005413826555013657, 0.00021519385336432606, 0.025483369827270508, 0.020749559625983238, -0.02998403087258339, -0.04389341548085213, 0.10738351196050644, 0.0026632503140717745, 0.04771674424409866, 0.0029339753091335297, 0.021900294348597527, -0.0404466912150383, 0.0020106167066842318, 0.00428432784974575, 0.023798583075404167, 0.046887438744306564, -0.033939991146326065, 0.04665369912981987, -0.014075853861868382, 0.01343090645968914, 0.07908184081315994, -0.01955084316432476, -0.007651616353541613, 0.0768355205655098, 0.0008982169674709439, -0.0006274889456108212, -0.01677864044904709, -0.04482695832848549, -0.05805930495262146, 0.08892989158630371, -0.025310782715678215, -0.2619677484035492, 0.022478392347693443, 0.033413365483284, 0.036327917128801346, 0.01107634138315916, 0.017140552401542664, 0.018574971705675125, -0.04002293199300766, -0.04210313782095909, 0.015908030793070793, 0.0002638814621604979, 0.04302048683166504, -0.02308807335793972, 0.022528013214468956, 0.02411464974284172, 0.03028744086623192, 0.03379477187991142, 0.01821056567132473, -0.01952563226222992, -0.013763532973825932, 0.010850229300558567, -0.017981061711907387, 0.16341066360473633, 0.029894649982452393, 0.01478970143944025, 0.05822179466485977, -0.0161115899682045, 0.03466574847698212, 0.08353594690561295, 0.048934854567050934, 0.018669217824935913, -0.009027511812746525, 0.033837541937828064, 0.02307691052556038, 0.03978020325303078, -0.061998531222343445, -0.00781925953924656, 0.017972851172089577, 0.019697265699505806, -0.040668509900569916, -0.06043047457933426, 0.009577455930411816, -0.0016243194695562124, 0.032246459275484085, 0.07347256690263748, -0.03477919101715088, -0.00969589315354824, -0.0822027325630188, -0.03149846941232681, -0.007864652201533318, -0.03403504192829132, -0.030692528933286667, 0.008557853288948536, 0.03555912896990776, 0.011950837448239326, 0.08628054708242416, 0.055800724774599075, -0.02164577879011631, -0.01635698415338993, -0.006881853099912405, 0.0005438130465336144, -0.041218120604753494, 0.09922584891319275, 0.008173353970050812, 0.011005833745002747 ]
[ 0.019221937283873558, 0.04537753388285637, -0.008264469914138317, 0.039409786462783813, -0.009884806349873543, -0.0036433683708310127, -0.036359578371047974, 0.010200098156929016, 0.015233304351568222, -0.02650631219148636, -0.012162864208221436, 0.008608504198491573, 0.02546779066324234, -0.03671827167272568, 0.030798006802797318, -0.0072103226557374, -0.008101334795355797, -0.03772180527448654, 0.030769413337111473, -0.03590625524520874, -0.03442370519042015, 0.05319054797291756, -0.0015474500833079219, 0.029212772846221924, 0.002248534234240651, -0.02882259711623192, -0.0957963764667511, -0.008538870140910149, 0.030287614092230797, -0.08665109425783157, 0.01870623417198658, -0.02357306331396103, -0.01902310736477375, 0.004011265002191067, 0.01741551049053669, 0.0044964635744690895, 0.044702377170324326, 0.01849145069718361, 0.009948971681296825, 0.01810188591480255, 0.05135289952158928, -0.036913610994815826, 0.003764434950426221, -0.019236987456679344, -0.0033188338857144117, 0.015456858091056347, -0.00949989166110754, -0.022654537111520767, -0.04089335352182388, -0.00033539754804223776, -0.011409452185034752, -0.025172695517539978, -0.02988533303141594, -0.007901845499873161, 0.0101744020357728, 0.02158123441040516, -0.038040973246097565, -0.004620732273906469, -0.00043107071542181075, -0.027500171214342117, -0.002079353202134371, -0.018777936697006226, -0.01589885912835598, -0.017844270914793015, -0.0031848305370658636, -0.04484735056757927, -0.012527228333055973, 0.0068394457921385765, 0.029286634176969528, 0.03280338644981384, -0.02164074406027794, 0.0025851293466985226, -0.07243167608976364, 0.036375440657138824, -0.030254052951931953, -0.011143045499920845, 0.03126775100827217, -0.02653465047478676, -0.006230491679161787, 0.007644391153007746, -0.044954363256692886, -0.01754978485405445, -0.02479601837694645, 0.07231923937797546, -0.03474803268909454, -0.044851936399936676, 0.008659261278808117, 0.02943962626159191, -0.0038414199370890856, -0.019420217722654343, -0.03927340358495712, 0.017712092027068138, 0.013321449980139732, 0.0021476252004504204, -0.06941528618335724, 0.014018470421433449, -0.010264340788125992, -0.013283803127706051, -0.0266865361481905, 0.8302109241485596, 0.021355142816901207, 0.020478667691349983, 0.00977760273963213, 0.01688600890338421, 0.02164878137409687, 0.024419227614998817, -0.028745559975504875, -0.021500589326024055, -0.03529856726527214, -0.011440210975706577, 0.011350653134286404, 0.003935894928872585, 0.04115653410553932, 0.01135977916419506, 0.040802303701639175, 0.004204500466585159, 0.008627662435173988, -0.00499362638220191, -0.005420319736003876, 0.03852751851081848, 0.036151040345430374, -0.014096478931605816, 0.016490118578076363, 0.002080797916278243, -0.00012188966502435505, -0.134690061211586, 0.06962614506483078, -6.825073015139808e-33, 0.07319580018520355, -0.012106296606361866, 0.03861241042613983, -0.002104783896356821, 0.0720856711268425, 0.028075121343135834, 0.02245391719043255, -0.011165034957230091, -0.01656949333846569, -0.027518823742866516, -0.01359834149479866, -0.011228380724787712, 0.009981370531022549, -0.030874984338879585, 0.020760413259267807, -0.005987841170281172, 0.025260258466005325, 0.04188946262001991, 0.030311234295368195, -0.0032289153896272182, 0.017628014087677002, 0.018226346001029015, -0.019053036347031593, 0.014189067296683788, 0.01926349475979805, -0.027121340855956078, -0.011928887106478214, -0.01068387646228075, -0.037822190672159195, -0.05356103554368019, -0.02895404025912285, 0.051024019718170166, -0.014846696518361568, -0.05693477392196655, 0.04734592139720917, -0.06390413641929626, -0.017885468900203705, 0.03234425559639931, -0.033204782754182816, -0.01094701886177063, -0.03857054188847542, 0.010930853895843029, -0.03090863861143589, -0.04867351055145264, -0.05557404085993767, 0.00781615637242794, 0.0007206563022918999, 0.012924404814839363, 0.03264160081744194, 0.031710874289274216, 0.016267992556095123, -0.01032656617462635, 0.012608388438820839, -0.009614800103008747, -0.004948724526911974, 0.011737686581909657, 0.000382199912564829, -0.012303086929023266, -0.0016883532516658306, -0.037064384669065475, -0.01803714781999588, -0.029482385143637657, -0.01323117408901453, 0.006493154913187027, 0.02840813249349594, 0.007564109284430742, 0.04290934279561043, 0.04331177845597267, 0.014899130910634995, -0.010177959688007832, -0.017982222139835358, 0.03456588461995125, -0.01608705148100853, -0.020613210275769234, 0.04863268882036209, -0.04743022099137306, 0.033513959497213364, -0.019175129011273384, 0.011112225241959095, 0.06283292919397354, 0.01657809689640999, 0.00791051797568798, 0.0002754645247478038, 0.0032241514418274164, -0.007099146023392677, -0.010180454701185226, 0.025674918666481972, 0.01776365377008915, -0.011695344932377338, -0.02567841112613678, 0.030681084841489792, -0.0005204295739531517, -0.006300497800111771, -0.03892446309328079, 0.0032130838371813297, 7.975135545682055e-33, -0.004479653667658567, -0.013192479498684406, -0.011711555533111095, 0.03006001189351082, 0.010401305742561817, -0.03142194449901581, 0.050935063511133194, 0.04820902273058891, -0.013046455569565296, 0.06126730144023895, -0.009338723495602608, -0.0244623813778162, -0.008721062913537025, 0.003820845391601324, 0.051979079842567444, -0.007874011062085629, -0.018108244985342026, -0.05529981479048729, 0.035650718957185745, 0.016234034672379494, -0.007058280054479837, 0.019524341449141502, -0.03270635008811951, 0.020882872864603996, 0.021358126774430275, 0.042133674025535583, -0.010475529357790947, 0.012114391662180424, 0.008841561153531075, -0.04465735703706741, 0.00039946575998328626, -0.024797270074486732, 0.014842880889773369, -0.06965681910514832, -0.0629836767911911, 0.02200716733932495, -0.01751665212213993, 0.045631106942892075, 0.03355983644723892, -0.048860274255275726, 0.043737977743148804, 0.03111790306866169, -0.019315533339977264, 0.019090209156274796, 0.0012211435241624713, 0.03213547170162201, 0.022095374763011932, 0.012665504589676857, -0.007385333068668842, 0.007043373305350542, -0.028573179617524147, 0.00008340468048118055, -0.009321426972746849, 0.04583863914012909, 0.019100982695817947, -0.03568645194172859, 0.010600597597658634, 0.01808372139930725, -0.04948079213500023, -0.01985890045762062, -0.03023492358624935, -0.01773049868643284, -0.021040912717580795, 0.01161880698055029, -0.025068111717700958, -0.016298765316605568, -0.011529308743774891, 0.019386831670999527, 0.021997299045324326, -0.03077438473701477, 0.02712983451783657, -0.007080392446368933, -0.014472329057753086, -0.00866370927542448, 0.04193568974733353, 0.01727878302335739, -0.021483099088072777, 0.0039030788466334343, -0.028908153995871544, 0.020433006808161736, 0.0027312510646879673, 0.06480175256729126, -0.026747234165668488, 0.00176395068410784, 0.03524985536932945, 0.0014810643624514341, -0.021897172555327415, 0.02876986935734749, 0.011126495897769928, 0.015127439051866531, -0.014418578706681728, -0.026941685006022453, -0.013738531619310379, 0.03109140507876873, -0.009131685830652714, -1.2845743135869725e-8, -0.02602796070277691, 0.025221209973096848, 0.004539016634225845, 0.032838549464941025, -0.0037678463850170374, 0.012582967057824135, -0.0024330681189894676, 0.010617793537676334, 0.02047051675617695, 0.014123902656137943, 0.0322587788105011, -0.046170756220817566, -0.0016426652437075973, 0.020220395177602768, 0.037271589040756226, 0.006228107493370771, 0.015160085633397102, -0.029065808281302452, 0.014218435622751713, -0.014206753112375736, -0.0018714336911216378, 0.023433657363057137, -0.013367993757128716, -0.019976790994405746, 0.0009355067741125822, 0.0014964131405577064, 0.017857441678643227, -0.0471499040722847, 0.004530936013907194, -0.0334361307322979, 0.00048431026516482234, -0.03207544982433319, -0.03784506395459175, 0.009933531284332275, -0.025917740538716316, -0.01595170423388481, -0.0007500480278395116, -0.011221782304346561, -0.02412039041519165, -0.0018417121609672904, 0.0066696275025606155, 0.013595262542366982, -0.004987908992916346, -0.031046418473124504, -0.02751508727669716, -0.0005929380422458053, -0.0248513575643301, 0.03243950381875038, 0.017282158136367798, 0.006825031712651253, 0.0045951115898787975, -0.021214645355939865, 0.024427305907011032, -0.008940688334405422, 0.03074757754802704, 0.020422618836164474, 0.05631742626428604, -0.03862676024436951, -0.013977362774312496, 0.03396550193428993, 0.0408097580075264, -0.006307828240096569, -0.015478961169719696, -0.021911248564720154 ]
serverless-building-mini-producerconsumer-data-pipeline-aws-sns
https://markhneedham.com/blog/2017/09/30/serverless-building-mini-producerconsumer-data-pipeline-aws-sns
false
2017-09-23 06:51:56
Python 3: Create sparklines using matplotlib
[ "python", "sparklines", "python3", "edward-tufte", "matplotlib" ]
[ "Python" ]
I recently wanted to create https://www.edwardtufte.com/bboard/q-and-a-fetch-msg?msg_id=0001OR[sparklines] to show how some values were changing over time. In addition, I wanted to generate them as images on the server rather than introducing a JavaScript library. Chris Seymour's https://github.com/iiSeymour/sparkline-nb/blob/master/sparkline-nb.ipynb[excellent gist] which shows how to create sparklines inside a Pandas dataframe got me most of the way there, but I had to tweak his code a bit to get it to play nicely with Python 3.6. This is what I ended up with: [source,python] ---- import matplotlib matplotlib.use("Agg") import matplotlib.pyplot as plt import base64 from io import BytesIO def sparkline(data, figsize=(4, 0.25), **kwags): """ Returns a HTML image tag containing a base64 encoded sparkline style plot """ data = list(data) fig, ax = plt.subplots(1, 1, figsize=figsize, **kwags) ax.plot(data) for k,v in ax.spines.items(): v.set_visible(False) ax.set_xticks([]) ax.set_yticks([]) plt.plot(len(data) - 1, data[len(data) - 1], 'r.') ax.fill_between(range(len(data)), data, len(data)*[min(data)], alpha=0.1) img = BytesIO() plt.savefig(img, transparent=True, bbox_inches='tight') img.seek(0) plt.close() return base64.b64encode(img.read()).decode("UTF-8") ---- I had to change the class used to write the image from StringIO to BytesIO and I found I needed to decode the bytes produced if I wanted it to display in a HTML page. This is how you would call the above function: [source,python] ---- if __name__ == "__main__": values = [ [1,2,3,4,5,6,7,8,9,10], [7,10,12,18,2,8,10,6,7,12], [10,9,8,7,6,5,4,3,2,1] ] with open("/tmp/foo.html", "w") as file: for value in values: file.write('<div><img src="data:image/png;base64,{}"/></div>'.format(sparkline(value))) ---- And the HTML page looks like this: image::{{<siteurl>}}/uploads/2017/09/2017-09-23_07-49-32.png[2017 09 23 07 49 32,160]
Learn how to create Edward Tufte style sparklines graphics using Python's matplotlib libary.
null
[ -0.0005500662373378873, -0.038726914674043655, -0.016308920457959175, 0.04799528419971466, 0.07226711511611938, 0.017348213121294975, -0.030582820996642113, 0.033403001725673676, -0.009012498892843723, -0.008349815383553505, -0.04057934880256653, -0.036388058215379715, -0.07014811784029007, 0.007353099528700113, -0.029073990881443024, 0.06360975652933121, 0.0466398149728775, 0.010438857600092888, 0.018656959757208824, 0.025953112170100212, 0.02665277011692524, 0.022002842277288437, -0.04500174522399902, 0.03016427904367447, 0.0036981001030653715, -0.02204306423664093, 0.005964208394289017, 0.019146107137203217, -0.025654900819063187, -0.029741883277893066, 0.019578145816922188, -0.025091663002967834, 0.01513106469064951, -0.0010240500560030341, 0.021004317328333855, -0.02220812439918518, -0.04491335153579712, 0.023327244445681572, -0.009229467250406742, 0.03992683067917824, -0.06564665585756302, 0.049700576812028885, 0.007309318985790014, 0.0012338809901848435, -0.014609361067414284, -0.01663581095635891, -0.05707630515098572, 0.015902964398264885, 0.001692974823527038, 0.014452134259045124, -0.03370291367173195, 0.06949099153280258, -0.009320568293333054, 0.004322986584156752, -0.00015145217184908688, 0.05342846363782883, 0.039193104952573776, -0.07463639229536057, 0.050813715904951096, -0.03800073638558388, -0.007888280786573887, -0.02306186407804489, 0.01483099814504385, 0.032559774816036224, 0.0041226474568247795, -0.04384440556168556, -0.03372668847441673, 0.05928059667348862, -0.05747305229306221, -0.03643712401390076, -0.022598307579755783, 0.01928028091788292, -0.023009859025478363, -0.03277028352022171, 0.018191268667578697, -0.0598897710442543, -0.02512558549642563, 0.05484701693058014, 0.003403709502890706, 0.040009886026382446, 0.0014805496903136373, -0.009324891492724419, 0.028239307925105095, 0.025511985644698143, 0.0030826351139694452, -0.014177385717630386, -0.06049326807260513, -0.008787236176431179, -0.055462852120399475, 0.06961964070796967, -0.007282051257789135, -0.06530313938856125, 0.04052019491791725, 0.012800117023289204, -0.0044084531255066395, 0.02106497436761856, -0.031003737822175026, 0.03379736468195915, -0.011893139220774174, -0.04840146005153656, -0.06043294444680214, -0.0082487091422081, 0.04562142491340637, 0.016754476353526115, -0.05664091929793358, -0.0464969128370285, -0.010725780390202999, -0.015365665778517723, -0.005087595898658037, 0.0036257333122193813, -0.03491074964404106, -0.03565197065472603, -0.026826275512576103, -0.015998300164937973, -0.0703510046005249, 0.04584727808833122, 0.04858864098787308, -0.027440929785370827, -0.047329340130090714, 0.033714085817337036, 0.050409212708473206, 0.024372611194849014, -0.03964930772781372, 0.07122433930635452, 0.022639969363808632, 0.04782998189330101, 0.0006183484219945967, 0.07017161697149277, -0.001825774204917252, -0.028549473732709885, -0.04070550575852394, 0.07098216563463211, -0.032746583223342896, -0.04057556018233299, 0.03673228994011879, -0.0187667366117239, -0.008764711208641529, -0.0267375148832798, 0.02484472654759884, 0.02687712199985981, 0.031680040061473846, -0.013110419735312462, 0.01166855450719595, 0.003619058756157756, 0.0237672571092844, 0.009238656610250473, -0.021633250638842583, -0.06859400123357773, -0.022487550973892212, 0.019016403704881668, -0.008312495425343513, 0.003252077382057905, 0.07192271947860718, -0.02257467992603779, 0.00010025968367699534, 0.07343605160713196, 0.04072294384241104, 0.016310038045048714, 0.009694092907011509, 0.0024411641061306, 0.06285545974969864, 0.01392948254942894, 0.014528789557516575, 0.008851342834532261, 0.021248487755656242, -0.035772863775491714, 0.044144727289676666, 0.028738733381032944, -0.04849971830844879, -0.019110461696982384, -0.048071347177028656, -0.022324878722429276, 0.04286276176571846, -0.014887377619743347, 0.010995845310389996, 0.024516986683011055, 0.07076283544301987, 0.0160893052816391, 0.03664863854646683, -0.017648063600063324, -0.08171238750219345, 0.05275088921189308, -0.005977337248623371, 0.024308325722813606, 0.06083354726433754, -0.026374176144599915, 0.06950649619102478, 0.03207463026046753, 0.015579042956233025, 0.01694752834737301, -0.06454339623451233, -0.08211588859558105, -0.03074062056839466, -0.009482420049607754, 0.061526186764240265, -0.07458560168743134, 0.0009998658206313848, 0.06294101476669312, 0.05280180647969246, 0.0261016096919775, -0.006208628881722689, -0.010565019212663174, -0.003759834449738264, -0.047856930643320084, -0.0003867334744427353, 0.003907334990799427, 0.04427844658493996, -0.028189217671751976, -0.0051523372530937195, 0.023580435663461685, -0.022854801267385483, -0.022939983755350113, 0.06774462759494781, -0.030619483441114426, 0.061817560344934464, 0.02649729885160923, 0.03495122864842415, -0.009117300622165203, 0.05501064658164978, -0.05060680955648422, 0.03688414394855499, 0.011565770022571087, -0.04673827812075615, -0.05041726678609848, 0.025158191099762917, 0.14247752726078033, 0.07136800140142441, -0.034126166254282, -0.05665227398276329, 0.0055666775442659855, -0.031010879203677177, -0.03222934156656265, 0.005408918019384146, -0.01301313191652298, -0.04300587996840477, 0.012729537673294544, -0.02832474373281002, -0.02535831741988659, 0.01315424032509327, -0.030895616859197617, 0.006390297319740057, 0.08801870793104172, -0.033059656620025635, 0.03860252723097801, -0.007246396970003843, -0.015153325162827969, 0.0051598092541098595, -0.02996639348566532, -0.07051185518503189, 0.0065134381875395775, 0.004227534402161837, 0.00466546043753624, 0.03299083188176155, -0.015840064734220505, -0.05962676927447319, -0.02570931799709797, -0.05315554141998291, -0.02078726515173912, 0.04503307864069939, 0.033979397267103195, 0.001103971735574305, -0.03034989908337593, -0.009051363915205002, -0.00012520889868028462, -0.021864041686058044, -0.025498226284980774, -0.0360771007835865, -0.017071738839149475, 0.02322680503129959, 0.03702567145228386, 0.046673428267240524, 0.05415089800953865, 0.015850424766540527, 0.02373598702251911, -0.010714447125792503, -0.00787778664380312, 0.03431849181652069, -0.010777915827929974, -0.024551723152399063, -0.0056244689039886, 0.001996703678742051, 0.055647097527980804, -0.04275292530655861, -0.02066866122186184, 0.0005711614503525198, -0.0405549481511116, 0.013263968750834465, -0.030700596049427986, -0.016368184238672256, 0.004166036378592253, 0.02667142078280449, 0.06317644566297531, 0.014234748668968678, 0.01581190526485443, 0.049870263785123825, 0.040034983307123184, 0.006486504804342985, 0.005656352266669273, 0.0007156464271247387, 0.01545812375843525, -0.011327817104756832, 0.015389662235975266, 0.044245824217796326, -0.017999907955527306, -0.04037502780556679, -0.018999917432665825, -0.004915236029773951, -0.0523952879011631, -0.27913907170295715, 0.05534425005316734, -0.018058976158499718, -0.02783357724547386, 0.012159946374595165, -0.02622709423303604, -0.03965981304645538, -0.03216872736811638, 0.0068811275996267796, 0.029988417401909828, -0.009698302485048771, -0.037796054035425186, -0.046124424785375595, 0.04159432649612427, 0.027115726843476295, 0.007759392727166414, -0.012506485916674137, -0.01767732948064804, 0.02386694774031639, 0.044239725917577744, -0.0017321103950962424, -0.05257101729512215, -0.004430999513715506, 0.0700492262840271, 0.036229442805051804, 0.030881214886903763, -0.059605300426483154, 0.03200466185808182, -0.04331665858626366, -0.006035142112523317, 0.02065942995250225, -0.061818432062864304, 0.0030986585188657045, 0.013458674773573875, -0.010606231167912483, 0.005065532401204109, 0.03785915672779083, -0.007436505984514952, -0.002759801223874092, 0.0006865572067908943, -0.021637434139847755, -0.028186284005641937, -0.030361896380782127, 0.011022839695215225, 0.07411199808120728, -0.01399269886314869, -0.05063972994685173, 0.01010551955550909, -0.025203179568052292, 0.0607118234038353, -0.009326262399554253, 0.013290991075336933, -0.017053373157978058, 0.020429903641343117, -0.04281427338719368, 0.005276226904243231, 0.0007350032101385295, 0.0010768024949356914, -0.037785936146974564, -0.03368588536977768, 0.019607746973633766, -0.015804417431354523, -0.03576138615608215, -0.03174770250916481, 0.0026146727614104748, -0.053140789270401, -0.034731023013591766, -0.005526604130864143, 0.0384037084877491, 0.06003807485103607, -0.03649875894188881, -0.00009221109212376177, 0.002279862528666854, -0.09894844144582748, 0.03955039381980896, -0.04501970857381821, 0.007103852462023497, 0.014444267377257347, -0.006805915851145983, 0.01926005817949772, -0.026970606297254562, -0.06293641030788422, 0.05762113258242607, 0.01601000502705574, 0.003897072747349739, -0.024035071954131126, 0.026242315769195557, -0.042398806661367416, -0.007960009388625622, -0.038697611540555954, 0.049351949244737625, -0.03345024213194847, -0.0005094149964861572, 0.012763723731040955, -0.04950781166553497, 0.03157299384474754, 0.020607108250260353, 0.010790778324007988, 0.00457703648135066, 0.015275607816874981, -0.0002046498702839017, -0.06377172470092773, -0.04439904913306236, -0.037610940635204315, -0.012038654647767544, -0.004152064677327871, -0.052745264023542404, 0.01653560809791088, 0.013543926179409027, -0.008045223541557789, -0.010394884273409843, -0.00609563896432519, 0.010886667296290398, -0.050699200481176376, -0.028786851093173027, -0.024288244545459747, 0.010294307954609394, 0.001613538945093751, 0.02727455273270607, -0.03504129499197006, -0.03730951249599457, 0.018964285030961037, 0.04091682657599449, -0.002140263793990016, -0.03129513934254646, -0.03103701025247574, -0.004236338194459677, 0.019437730312347412, 0.0015137860318645835, -0.032893165946006775, 0.0004862897621933371, 0.026494784280657768, 0.028363429009914398, 0.021419189870357513, 0.009510507807135582, -0.010502134449779987, -0.046188630163669586, -0.038403961807489395, 0.010248208418488503, 0.02715301886200905, 0.03444943577051163, 0.03650888055562973, -0.0037154359742999077, 0.002386382082477212, 0.032425571233034134, 0.0019642107654362917, 0.015715450048446655, 0.032029103487730026, -0.01298647839576006, -0.0075762891210615635, 0.029617790132761, -0.02399066835641861, 0.022457659244537354, -0.0180222038179636, -0.04393482953310013, -0.022666092962026596, 0.02556208334863186, -0.020344117656350136, 0.01387044694274664, -0.054008401930332184, 0.037296973168849945, -0.034093454480171204, -0.01659386418759823, -0.02828633412718773, -0.012811950407922268, 0.041582923382520676, 0.006895224563777447, 0.007989236153662205, 0.02604953944683075, -0.0036271014250814915, 0.0014723134227097034, -0.0034688340965658426, 0.022805413231253624, 0.020208759233355522, -0.031004102900624275, 0.004744688980281353, 0.022775117307901382, 0.00434831203892827, 0.008280867710709572, 0.016109444200992584, 0.015227886848151684, -0.008863033726811409, 0.013535404577851295, 0.01895531453192234, 0.044417500495910645, 0.06072249263525009, -0.0028203283436596394, 0.01398046687245369, -0.03057534247636795, -0.0029224727768450975, -0.02264866977930069, -0.005935183260589838, -0.004959235433489084, 0.03064602054655552, -0.03585219010710716, -0.07564347982406616, 0.047566384077072144, 0.010603435337543488, 0.0157916396856308, 0.00869785062968731, -0.02995145320892334, -0.009554533287882805, -0.04985439404845238, 0.041082292795181274, 0.06612365692853928, -0.04581499099731445, 0.007626667153090239, 0.0008707960951142013, 0.022186072543263435, 0.0033381141256541014, 0.023963529616594315, -0.04904419183731079, -0.017596710473299026, -0.03967791423201561, -0.007109896745532751, 0.00943033117800951, -0.01919730380177498, -0.06516707688570023, 0.04584439843893051, -0.004532546270638704, -0.009121364913880825, -0.011142953298985958, -0.014085999689996243, 0.005823849234730005, -0.03834237530827522, 0.07237521559000015, -0.01988331787288189, -0.01740756258368492, 0.03678315132856369, -0.014380487613379955, 0.029317745938897133, -0.03125082701444626, 0.023160694167017937, 0.053122032433748245, -0.0010975926415994763, -0.0017558156978338957, -0.048183079808950424, 0.006254528183490038, 0.01829528994858265, 0.07371851056814194, 0.007282875943928957, 0.010906470939517021, -0.034533996134996414, 0.030149245634675026, 0.01147677842527628, 0.003516268916428089, 0.006449923850595951, -0.007621895056217909, 0.008870934136211872, 0.05541529878973961, 0.0033269913401454687, -0.0018961923196911812, -0.0017167399637401104, -0.060522329062223434, 0.03940759599208832, -0.036912936717271805, -0.020110424607992172, -0.027279984205961227, -0.040576767176389694, 0.020656047388911247, 0.00150105485226959, 0.03404293954372406, -0.06338544189929962, 0.05298611521720886, 0.030160464346408844, 0.03915765881538391, 0.059836246073246, 0.017217714339494705, 0.010547508485615253, -0.017814001068472862, 0.002978530013933778, -0.060543276369571686, -0.0027863276191055775, 0.05175425857305527, 0.018908986821770668, -0.022382445633411407, -0.02768760919570923, -0.039156198501586914, 0.012965844944119453, -0.07001829147338867, -0.039144277572631836, 0.049368277192115784, 0.01578507013618946, -0.023096956312656403, 0.03722089156508446, -0.04070618748664856, 0.02236942946910858, 0.009880583733320236, -0.040531039237976074, -0.036938369274139404, -0.01766100898385048, 0.07274544984102249, 0.0000353390169038903, -0.03621074557304382, -0.014247837476432323, -0.0032962567638605833, 0.0663246363401413, 0.007124724797904491, 0.0441896952688694, 0.0232316255569458, -0.0021312828175723553, 0.0509825199842453, 0.017162539064884186, 0.006020133849233389, 0.015082302503287792, 0.021791279315948486, -0.00040264608105644584, -0.06148932874202728, 0.04493231326341629, 0.043133899569511414, 0.009023411199450493, -0.06474607437849045, 0.05301402881741524, 0.015810752287507057, -0.0571475550532341, -0.056288160383701324, 0.022072654217481613, -0.039288949221372604, -0.02280019223690033, -0.016503194347023964, -0.0076207360252738, -0.022662218660116196, 0.05626032128930092, -0.0433662012219429, -0.02866075001657009, 0.07336565107107162, -0.008104370906949043, -0.007779406383633614, 0.015044528990983963, 0.061630912125110626, 0.09073440730571747, 0.03871399909257889, 0.003344995900988579, 0.03350623697042465, -0.0194514449685812, -0.04916950687766075, 0.024734165519475937, -0.017606332898139954, -0.003235724288970232, -0.03648517653346062, 0.013771109282970428, 0.053475912660360336, -0.016448521986603737, 0.04705542325973511, -0.027191178873181343, 0.014930722303688526, -0.0016686819726601243, 0.0207808967679739, -0.009949262253940105, 0.026342421770095825, 0.007280522491782904, 0.03763361647725105, -0.014195200055837631, -0.047141458839178085, 0.0422036349773407, -0.025487735867500305, -0.03707582503557205, 0.03703576326370239, 0.01080239936709404, -0.025970812886953354, 0.016776876524090767, 0.05996299535036087, 0.11360272020101547, -0.017567841336131096, -0.039107441902160645, 0.027552921324968338, 0.03170789033174515, 0.008250975050032139, 0.018663439899683, -0.006249051541090012, -0.011926603503525257, -0.014018638990819454, -0.025140011683106422, 0.006143108941614628, -0.042348504066467285, 0.009607216343283653, 0.027077671140432358, -0.009672841988503933, 0.004335226956754923, 0.01567944511771202, -0.024069100618362427, -0.03670809417963028, -0.06165646016597748, -0.05513842776417732, -0.01604810543358326, -0.11182530224323273, -0.01914406009018421, 0.01814068853855133, -0.029538743197917938, -0.06322341412305832, -0.04943970963358879, -0.028668934479355812, 0.003139232285320759, -0.0012854303931817412, -0.03136228770017624, -0.03520943224430084, 0.029985852539539337, 0.01613645628094673, -0.01789054088294506, 0.005753993988037109, 0.03502917289733887, 0.002488247584551573, -0.013038313016295433, -0.0028949477709829807, 0.03350699692964554, 0.031715601682662964, 0.007530346512794495, 0.019542088732123375, -0.08456241339445114, 0.0011050078319385648, 0.03691736236214638, -0.01959039643406868, -0.07003755867481232, 0.01506867352873087, 0.05204639211297035, 0.04640951752662659, 0.04451029747724533, -0.016455087810754776, -0.028140220791101456, -0.04960000887513161, -0.029272977262735367, -0.04507261887192726, 0.012520219199359417, 0.044369541108608246, -0.03448724374175072, 0.08425156772136688, 0.06238103657960892, -0.017666693776845932, 0.0023500442039221525, -0.03152421489357948, -0.011777722276747227, 0.029619555920362473, -0.02217985689640045, -0.05064671114087105, -0.0547151155769825, -0.068607397377491, -0.0017283419147133827, 0.028482159599661827, -0.015845468267798424, -0.029232582077383995, -0.0022733232472091913, 0.05883019044995308, -0.037944160401821136, 0.04761127382516861, -0.0366097018122673, 0.0015627567190676928, -0.026447180658578873, -0.022251524031162262, -0.01693892665207386, 0.041595619171857834, 0.01845504157245159, 0.008119392208755016, 0.008934973739087582, -0.030586840584874153, -0.005717760417610407, -0.0010957965860143304, 0.0281464122235775, 0.021930798888206482, -0.01923629827797413, 0.010268142446875572 ]
[ -0.07278645038604736, -0.05540979653596878, -0.025428561493754387, 0.000023022214008960873, 0.07522264122962952, -0.036906663328409195, -0.07010643929243088, 0.021136432886123657, -0.015534045174717903, 0.0389239527285099, 0.00792677327990532, -0.10714457929134369, 0.036319926381111145, -0.03357146307826042, 0.052837956696748734, -0.0009368930477648973, 0.004055870231240988, -0.06915618479251862, -0.06201549246907234, 0.03442489728331566, 0.0072104292921721935, -0.03782286122441292, -0.05696853622794151, -0.06422047317028046, 0.01619344763457775, 0.03940859064459801, 0.028574876487255096, -0.04446960613131523, -0.0022556607145816088, -0.1886201649904251, 0.03153220936655998, 0.002510532271116972, 0.026911180466413498, -0.021414650604128838, -0.0033939150162041187, 0.010375754907727242, 0.016603950411081314, 0.038326408714056015, 0.0003552054986357689, 0.03018428385257721, 0.021701514720916748, -0.027374282479286194, -0.07437718659639359, -0.019488347694277763, 0.03509046137332916, -0.006948665250092745, -0.02197854220867157, -0.022780336439609528, 0.00706329895183444, 0.019579613581299782, -0.0917726457118988, 0.010059995576739311, -0.020851870998740196, -0.015397231094539165, 0.008746539242565632, 0.03919372335076332, 0.04439316689968109, 0.06780999898910522, 0.05891197919845581, 0.012534872628748417, 0.010943432338535786, 0.005263898987323046, -0.12497600167989731, 0.09891252964735031, 0.007562760729342699, 0.056846216320991516, -0.0498318076133728, -0.003694371320307255, 0.019762566313147545, 0.04492143914103508, -0.029394587501883507, -0.03427764028310776, -0.018871624022722244, 0.06111708655953407, 0.009015263058245182, -0.031374137848615646, -0.029207969084382057, 0.016575083136558533, 0.0162516962736845, -0.050990182906389236, -0.08256880193948746, 0.016339721158146858, -0.018149107694625854, 0.0071131088770926, -0.021273648366332054, 0.03497608006000519, -0.009926957078278065, 0.041725121438503265, 0.018604207783937454, 0.032649580389261246, 0.03163382038474083, -0.02348334714770317, -0.00017864636902231723, 0.02438598871231079, -0.1124659925699234, -0.031943097710609436, -0.006703446619212627, -0.004297016654163599, -0.012490731664001942, 0.3863505423069, -0.025026142597198486, -0.015125177800655365, 0.04896361008286476, 0.05884499475359917, 0.0070753153413534164, -0.019947435706853867, -0.023811636492609978, -0.04048025980591774, -0.005592381581664085, -0.034258246421813965, 0.0006529753445647657, -0.04569796845316887, 0.03586750850081444, -0.06605757772922516, 0.027119208127260208, -0.02181418426334858, -0.058055579662323, 0.007096354849636555, -0.011419910937547684, 0.04988068342208862, -0.03025425411760807, 0.027941303327679634, -0.003716070903465152, 0.023122739046812057, 0.031027793884277344, 0.03713246434926987, 0.04602061212062836, 0.04214704781770706, 0.058146145194768906, -0.000128326952108182, 0.03296705707907677, -0.009137497283518314, -0.09032381325960159, 0.014553330838680267, -0.014908297918736935, 0.024881228804588318, 0.04661642014980316, -0.012978686019778252, 0.001485740765929222, 0.028778892010450363, -0.012268466874957085, -0.05156379193067551, 0.025573117658495903, 0.020125463604927063, -0.0006581178167834878, 0.10487447679042816, -0.007419002242386341, 0.011902485974133015, -0.030119802802801132, -0.034537423402071, -0.004415975417941809, 0.03301346302032471, -0.0011331010609865189, -0.04249104484915733, 0.04259490221738815, 0.029155783355236053, 0.05924592167139053, -0.0021602169144898653, -0.05626456439495087, -0.014957491308450699, -0.037340495735406876, -0.035234544426202774, -0.0238198135048151, 0.0014650656376034021, 0.030161654576659203, -0.11860168725252151, -0.016915448009967804, 0.028979983180761337, -0.0024400760885328054, -0.063508540391922, -0.015371582470834255, 0.018494395539164543, -0.024210119619965553, -0.02759411185979843, 0.07167025655508041, -0.017290284857153893, -0.05666137486696243, -0.002585634356364608, 0.0616426095366478, 0.009130352176725864, 0.006286269053816795, 0.021080873906612396, -0.002811076585203409, 0.005908161401748657, -0.049737293273210526, -0.10748020559549332, -0.05715970695018768, 0.008496840484440327, -0.024558808654546738, -0.03584819287061691, 0.00007982651004567742, -0.018180495128035545, -0.04439600557088852, 0.08761271834373474, -0.02448369935154915, -0.02952701784670353, 0.0530228428542614, 0.01670185849070549, 0.01116224005818367, -0.038650065660476685, 0.015543664805591106, 0.018140843138098717, -0.004340747836977243, 0.034336719661951065, -0.06413206458091736, 0.010965441353619099, 0.05067884549498558, -0.028641143813729286, 0.0625654011964798, 0.02059512957930565, -0.021039091050624847, -0.016995662823319435, 0.003983176313340664, 0.018104663118720055, -0.046497125178575516, -0.006776358932256699, -0.012651178985834122, 0.005430989898741245, 0.022015301510691643, 0.03446676954627037, -0.009801583364605904, -0.0755910575389862, -0.044035229831933975, -0.3654354214668274, -0.021935027092695236, 0.016536332666873932, -0.033068545162677765, 0.01379932090640068, -0.060265861451625824, 0.01098286360502243, -0.002720036543905735, -0.001511310343630612, 0.024269308894872665, 0.13026346266269684, -0.024648403748869896, 0.03109591081738472, -0.13340160250663757, 0.0007710250210948288, 0.01876736804842949, -0.058735042810440063, -0.0363725982606411, -0.04571176692843437, 0.021076684817671776, -0.010060579515993595, -0.009431791491806507, -0.015379397198557854, -0.041586194187402725, 0.021369917318224907, -0.04414010047912598, 0.14529868960380554, 0.012051334604620934, 0.06422948092222214, -0.03926560655236244, 0.046720292419195175, -0.005015753209590912, -0.025752941146492958, -0.05026312172412872, -0.03188782185316086, -0.023272907361388206, -0.006198576185852289, 0.04649483039975166, -0.0009093384724110365, -0.01093621551990509, -0.029438365250825882, 0.02837260253727436, -0.0301505159586668, -0.043154276907444, -0.02582671493291855, 0.016727309674024582, -0.0050788805820047855, -0.014239349402487278, 0.005926168989390135, 0.07224055379629135, 0.00640806695446372, 0.01911964640021324, 0.03822261840105057, 0.03113975189626217, 0.02551579289138317, 0.00477813882753253, -0.0601973682641983, 0.018391765654087067, -0.002217397326603532, -0.01353341992944479, 0.03097880631685257, 0.027951950207352638, 0.03854537010192871, -0.06859631091356277, 0.0018286489648744464, 0.009635151363909245, 0.00731653580442071, 0.00025829471996985376, 0.04542110487818718, -0.020792905241250992, -0.009306006133556366, 0.10849984735250473, -0.004179490730166435, 0.03280171751976013, 0.05949246510863304, 0.06962774693965912, -0.0039522466249763966, 0.01896604150533676, 0.001045024604536593, -0.002558276057243347, 0.019449962303042412, 0.0004835051076952368, 0.0487535186111927, 0.002807667013257742, 0.011830533854663372, 0.023639168590307236, -0.01911229081451893, -0.031742606312036514, 0.04904428496956825, 0.022053265944123268, -0.01822899654507637, -0.013518224470317364, -0.037971291691064835, -0.01725643128156662, 0.050346922129392624, 0.010419713333249092, -0.27659687399864197, 0.024953901767730713, 0.05647650733590126, 0.0516183078289032, -0.02322663925588131, 0.010570650920271873, 0.045255396515131, -0.029992535710334778, -0.00013583934924099594, 0.020873377099633217, -0.02745831571519375, 0.023542458191514015, 0.02246677875518799, 0.004198715090751648, 0.01412268541753292, -0.005390293430536985, 0.055855438113212585, 0.016636205837130547, 0.017324354499578476, 0.01350357849150896, 0.0027750174049288034, -0.041377633810043335, 0.14583523571491241, 0.029057256877422333, -0.009919475764036179, 0.01202095951884985, 0.0030349898152053356, -0.012134895659983158, 0.08055654913187027, 0.03264545649290085, 0.02518089860677719, 0.009253895841538906, 0.011927135288715363, 0.006622425280511379, 0.05933235213160515, -0.02200118452310562, -0.03530927002429962, 0.03626172989606857, 0.012409922666847706, -0.03158823028206825, -0.0015427719336003065, 0.04238175228238106, -0.05491876229643822, 0.03868228942155838, 0.042706187814474106, -0.0036997843999415636, 0.016618696972727776, -0.01280977763235569, -0.048741087317466736, -0.010183414444327354, -0.004954386502504349, 0.00020941649563610554, -0.016714174300432205, -0.005042829550802708, -0.0015406038146466017, 0.07326745986938477, 0.05861596763134003, 0.010610687546432018, 0.018973438069224358, 0.01276932843029499, 0.04541012644767761, -0.09292314946651459, 0.08996891975402832, 0.013397624716162682, 0.020751282572746277 ]
[ -0.0035109645687043667, 0.007098503410816193, 0.004495495464652777, 0.015128720551729202, 0.003089304082095623, -0.024062970653176308, 0.006193477660417557, 0.05053751543164253, -0.033641863614320755, -0.02312433160841465, -0.0316690132021904, 0.024648724123835564, -0.00717955082654953, -0.028570588678121567, -0.01280949730426073, -0.03561650216579437, -0.031504154205322266, -0.011949955485761166, 0.017931796610355377, -0.005128517746925354, -0.014922683127224445, 0.023714780807495117, 0.038866717368364334, -0.01315823569893837, 0.014858336187899113, 0.005041105207055807, -0.01968267373740673, 0.059527866542339325, 0.041723091155290604, -0.13718058168888092, 0.0085368100553751, -0.04627067968249321, -0.019136998802423477, -0.017413899302482605, -0.00209032348357141, -0.0016297867987304926, 0.0004958612844347954, 0.0028574694879353046, -0.010714421048760414, 0.008584986440837383, 0.016314566135406494, -0.01758842170238495, 0.008288695476949215, 0.006454343907535076, 0.013953451067209244, -0.01953047886490822, 0.0031200044322758913, -0.044406794011592865, -0.007338262163102627, -0.004041446838527918, -0.06862641125917435, 0.002049192786216736, -0.04145997017621994, 0.01507978979498148, 0.003076721914112568, -0.0024355193600058556, -0.00701040169224143, -0.0026194946840405464, 0.0005781206418760121, -0.02311542257666588, -0.03412633016705513, -0.003076466964557767, 0.005498688668012619, -0.02064509689807892, 0.003250476671382785, 0.0048494185321033, -0.02182091400027275, -0.005195148289203644, 0.020678553730249405, -0.0003629798302426934, -0.010138747282326221, 0.03753628209233284, -0.048942677676677704, -0.006396286655217409, -0.049945391714572906, 0.007741159293800592, 0.014669986441731453, -0.0009142282651737332, -0.0019745344761759043, 0.009038837626576424, -0.019522467628121376, 0.008548569865524769, 0.005437280051410198, 0.021673155948519707, -0.026744553819298744, -0.028022753074765205, -0.013784512877464294, 0.012995549477636814, -0.014845989644527435, -0.0022894483990967274, -0.019269773736596107, 0.01663130708038807, -0.0063718813471496105, 0.04968911036849022, -0.1231449544429779, 0.012494497932493687, 0.017514023929834366, -0.015767471864819527, 0.004213352687656879, 0.8415189981460571, -0.016747141256928444, -0.028767449781298637, -0.016160044819116592, 0.026932233944535255, 0.026199515908956528, 0.003944799304008484, -0.002437448361888528, -0.009175495244562626, -0.025027504190802574, -0.032459620386362076, 0.024680044502019882, -0.0036012018099427223, -0.0018245367100462317, 0.04277224466204643, 0.04632166773080826, 0.00398837449029088, -0.011602260172367096, 0.01817084290087223, 0.01836780458688736, 0.012338841333985329, 0.024966856464743614, 0.006623343098908663, 0.011759216897189617, -0.0050031645223498344, -0.020796341821551323, -0.1747654676437378, 0.005563956219702959, -6.957295558456176e-33, 0.03588830679655075, -0.02343190461397171, 0.033429332077503204, 0.004452705383300781, 0.019614916294813156, 0.007573241833597422, -0.04596533253788948, -0.004187943879514933, -0.022438393905758858, -0.018665174022316933, -0.021204721182584763, 0.009461047127842903, -0.006775257643312216, -0.010277270339429379, 0.0382893830537796, -0.007884321734309196, 0.013374583795666695, 0.03336084261536598, -0.010170861147344112, 0.0255090594291687, 0.0008925494621507823, 0.013735971413552761, 0.03129124268889427, 0.029156653210520744, 0.001494455267675221, 0.00676138186827302, 0.0006514841807074845, -0.0030992520041763783, 0.010423533618450165, -0.040114738047122955, -0.040805306285619736, 0.009056486189365387, -0.00818420760333538, -0.04130500555038452, 0.01625829190015793, -0.06274651736021042, -0.03939357027411461, -0.0023362513165920973, -0.0391182079911232, 0.02548668347299099, -0.037337709218263626, -0.012091746553778648, -0.031224044039845467, -0.004809870850294828, -0.03420056030154228, 0.0071567087434232235, -0.001185106229968369, 0.05970330908894539, -0.0154819805175066, 0.028124520555138588, 0.003209752729162574, -0.008802192285656929, 0.03404432535171509, 0.009239471517503262, 0.015466366894543171, 0.03139609098434448, -0.020525246858596802, -0.015448592603206635, 0.017652591690421104, 0.014977091923356056, 0.057535670697689056, 0.009617787785828114, 0.025047244504094124, 0.008871842175722122, -0.012741307727992535, 0.00015320659440476447, 0.04599907249212265, 0.023103218525648117, -0.011298778466880322, 0.030021443963050842, -0.05622819811105728, 0.050345927476882935, -0.031144969165325165, -0.02689358964562416, 0.010450601577758789, -0.03886238485574722, 0.018509671092033386, 0.0032208841294050217, 0.007356808986514807, 0.024379590526223183, 0.02101711742579937, -0.03562484681606293, -0.008096599951386452, -0.046303145587444305, -0.005894338712096214, -0.013466142117977142, 0.03758687898516655, 0.03787611052393913, -0.020013222470879555, 0.013330826535820961, 0.02314000204205513, 0.02148992009460926, 0.002244400791823864, -0.01443914882838726, -0.0319417305290699, 7.593509835319661e-33, 0.014367859810590744, 0.013420693576335907, -0.029350051656365395, 0.006264043040573597, 0.022160593420267105, 0.007492763455957174, 0.08328626304864883, 0.0060869138687849045, -0.020616186782717705, 0.02102455124258995, -0.03158053755760193, -0.0014361966168507934, -0.01698259264230728, 0.006901996210217476, 0.052402313798666, -0.04729856178164482, -0.006108301226049662, -0.009909323416650295, 0.011658014729619026, -0.021979279816150665, -0.03149256110191345, 0.0014065807918086648, -0.008096475154161453, 0.01666511595249176, 0.01868659071624279, 0.03924870491027832, -0.02521550841629505, 0.008882236666977406, -0.022829554975032806, -0.022104537114501, 0.028328770771622658, -0.02536134608089924, 0.0047341459430754185, -0.040943488478660583, -0.008401155471801758, 0.0512537844479084, 0.03486361354589462, -0.025026997551321983, 0.010580006055533886, 0.022409405559301376, 0.04904516041278839, 0.0012448254274204373, -0.022885318845510483, 0.015188880264759064, -0.003415569895878434, 0.02904627099633217, -0.03563841059803963, 0.031206365674734116, 0.003487733192741871, 0.061389338225126266, -0.015253879129886627, 0.019393134862184525, 0.010596121661365032, 0.03676611930131912, 0.02091258578002453, -0.023127712309360504, -0.01289887260645628, 0.04597686976194382, -0.025985628366470337, 0.024625388905405998, -0.014707332476973534, -0.0583639033138752, -0.027179529890418053, 0.012034488841891289, -0.02144354023039341, 0.0018350736936554313, -0.012052837759256363, -0.021492553874850273, -0.009758418425917625, -0.008996732532978058, 0.02941703610122204, -0.04482398182153702, -0.005868573673069477, 0.029979515820741653, 0.012487992644309998, -0.002414803486317396, -0.006114365998655558, 0.0026255259290337563, -0.00807519443333149, 0.0239267535507679, 0.04331551119685173, -0.011727380566298962, 0.02100135199725628, 0.026552073657512665, 0.0003584037476684898, 0.013533133082091808, -0.01654880866408348, 0.0008925689035095274, 0.022582540288567543, -0.013598430901765823, 0.016391756013035774, -0.03596958890557289, -0.02149917185306549, 0.011409034952521324, 0.04019450023770332, -1.2935392312840577e-8, -0.01791943423449993, 0.011487578973174095, -0.006926037836819887, 0.021297834813594818, 0.03209713101387024, 0.00869136955589056, 0.0023358166217803955, -0.009500997141003609, 0.004335332661867142, -0.0006581050693057477, 0.03732794523239136, -0.027498478069901466, 0.018548520281910896, 0.015308194793760777, 0.007157688494771719, 0.004232817329466343, 0.012172878719866276, -0.026182647794485092, 0.03388402611017227, -0.0017147072358056903, 0.015624158084392548, 0.0005339966155588627, -0.012427514418959618, 0.0023711067624390125, -0.023943817242980003, -0.012118380516767502, 0.032753799110651016, -0.08621934801340103, -0.01253919955343008, -0.011417974717915058, 0.00552048534154892, -0.04284732788801193, 0.03346047177910805, 0.026963969692587852, -0.02577425166964531, -0.02800017222762108, -0.013654523529112339, 0.02760474383831024, 0.016701487824320793, 0.013918549753725529, -0.019980045035481453, -0.014725337736308575, -0.009724734351038933, -0.0484507717192173, -0.013811304233968258, 0.021203776821494102, -0.01156323030591011, 0.03711646795272827, -0.02019181102514267, -0.001091242185793817, 0.010831468738615513, -0.002583096968010068, 0.006967966444790363, 0.044924769550561905, 0.025962790474295616, -0.01825292967259884, 0.03235790878534317, 0.001094603561796248, -0.007254754658788443, 0.016539355739951134, 0.02553623542189598, 0.012219655327498913, -0.02433065138757229, -0.03161788359284401 ]
python-3-create-sparklines-using-matplotlib
https://markhneedham.com/blog/2017/09/23/python-3-create-sparklines-using-matplotlib
false
2017-08-03 17:24:16
AWS Lambda: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory'
[ "aws", "aws-lambda" ]
[ "Software Development" ]
I've been working on an AWS lambda job to convert a HTML page to PDF using a Python wrapper around the wkhtmltopdf library but ended up with the following error when I tried to execute it: [source,text] ---- b'/bin/sh: ./binary/wkhtmltopdf: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory\n': Exception Traceback (most recent call last): File "/var/task/handler.py", line 33, in generate_certificate wkhtmltopdf(local_html_file_name, local_pdf_file_name) File "/var/task/lib/wkhtmltopdf.py", line 64, in wkhtmltopdf wkhp.render() File "/var/task/lib/wkhtmltopdf.py", line 56, in render raise Exception(stderr) Exception: b'/bin/sh: ./binary/wkhtmltopdf: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory\n' ---- It turns out this is the error you get if https://stackoverflow.com/questions/8328250/centos-64-bit-bad-elf-interpreter[you run a 32 bit binary on a 64 bit operating system] which is http://docs.aws.amazon.com/lambda/latest/dg/current-supported-versions.html[what AWS uses]. ____ If you are using any native binaries in your code, make sure they are compiled in this environment. Note that only 64-bit binaries are supported on AWS Lambda. ____ I changed to the 64 bit binary and am now happily converting HTML pages to PDF.
null
null
[ -0.021855302155017853, -0.007930252701044083, -0.02699762023985386, 0.032501768320798874, 0.048885978758335114, 0.025827407836914062, 0.00011256120342295617, 0.039520274847745895, 0.007819130085408688, 0.0037863159086555243, -0.03627287223935127, 0.013784260489046574, -0.05542915686964989, 0.017120348289608955, -0.0018230922287330031, 0.06540560722351074, 0.07440536469221115, -0.009259478189051151, -0.001315545872785151, -0.018931036815047264, 0.018819451332092285, 0.038623057305812836, -0.027906743809580803, 0.008359227329492569, -0.020897377282381058, 0.011655120179057121, 0.015918128192424774, -0.015159273520112038, -0.05911382660269737, -0.015043022111058235, 0.030014386400580406, 0.0056892079301178455, 0.004596072249114513, -0.027639899402856827, 0.028426993638277054, 0.011763552203774452, -0.035822536796331406, -0.01518847793340683, 0.009714316576719284, 0.03515948727726936, -0.042417220771312714, 0.028453929349780083, 0.009244942106306553, 0.028270931914448738, -0.016852261498570442, 0.0030062776058912277, -0.027928687632083893, 0.01623506471514702, -0.011061194352805614, -0.019992072135210037, -0.08414307981729507, 0.043137554079294205, -0.03056296892464161, -0.013008208945393562, 0.04112664982676506, 0.022199613973498344, 0.00018560446915216744, -0.0806816816329956, 0.031827814877033234, -0.031047673895955086, -0.007997327484190464, -0.03753982111811638, -0.022355366498231888, 0.007014896720647812, 0.0608166828751564, -0.008865074254572392, -0.00909510813653469, 0.052155688405036926, -0.06386348605155945, -0.05491231754422188, 0.010150895453989506, 0.024443861097097397, -0.058319564908742905, -0.029226921498775482, 0.051506754010915756, -0.023477351292967796, -0.02987433597445488, 0.060797370970249176, 0.021798186004161835, 0.06240507960319519, -0.021594777703285217, 0.03681354969739914, 0.0573091059923172, 0.02726479060947895, 0.01109333336353302, -0.0040784552693367004, -0.01391739770770073, -0.027079671621322632, -0.04135436937212944, 0.04143063724040985, 0.03661816567182541, -0.048428766429424286, -0.008439859375357628, 0.018829982727766037, 0.0016860595205798745, 0.0023466679267585278, -0.02747412584722042, 0.022640036419034004, -0.020666267722845078, -0.011234434321522713, -0.0341576524078846, 0.01039633434265852, 0.027168897911906242, -0.014427677728235722, -0.07525070011615753, -0.007337692193686962, -0.005090080667287111, -0.03402047976851463, 0.017342500388622284, 0.01584884710609913, -0.0013346533523872495, 0.002633867086842656, -0.046383392065763474, -0.04130007326602936, -0.06369820237159729, 0.057235997170209885, 0.049508266150951385, -0.026962317526340485, 0.03715958073735237, 0.03662244603037834, 0.061845339834690094, 0.03819427639245987, -0.02581784874200821, 0.09295138716697693, 0.0004988095606677234, 0.03711976483464241, -0.026092834770679474, 0.06265603005886078, -0.017329314723610878, -0.049321725964546204, -0.020455287769436836, 0.07358899712562561, -0.014502756297588348, 0.018739206716418266, 0.003971620462834835, 0.028800800442695618, -0.04340090602636337, -0.012012329883873463, 0.06408024579286575, 0.011277621611952782, -0.020022617653012276, -0.027495693415403366, -0.021331464871764183, 0.000768872385378927, 0.02813573367893696, 0.02509404718875885, -0.006242336705327034, -0.03493720293045044, -0.03692073002457619, -0.005123020615428686, 0.05859963968396187, 0.00562511058524251, 0.04737144336104393, -0.017329059541225433, 0.02257624641060829, 0.06728551536798477, 0.031006120145320892, 0.00963865127414465, -0.03031998500227928, 0.00691458024084568, 0.015322006307542324, 0.025700708851218224, -0.0007768481154926121, 0.023946572095155716, -0.012676041573286057, -0.03950166702270508, -0.011741822585463524, 0.041145093739032745, -0.0010024310322478414, 0.0016459310427308083, -0.061528488993644714, -0.036561280488967896, 0.052880942821502686, -0.029484638944268227, 0.006518914829939604, 0.0004054192395415157, 0.08623667806386948, 0.015950845554471016, 0.012385803274810314, -0.002411571331322193, -0.07164039462804794, 0.029578693211078644, 0.006361869163811207, 0.041511811316013336, 0.013298730365931988, 0.028935758396983147, 0.08199276030063629, 0.029678091406822205, 0.01780393160879612, 0.04874609783291817, -0.06915963441133499, -0.08511218428611755, -0.02346593327820301, 0.002812896156683564, 0.06712164729833603, 0.008654417470097542, -0.03249545395374298, 0.0452774278819561, 0.046797458082437515, 0.0072320797480642796, 0.0036896176170557737, 0.002647853922098875, 0.02542225271463394, -0.025910213589668274, -0.05280540511012077, 0.0168850589543581, 0.06302031129598618, 0.016371753066778183, -0.018011905252933502, 0.01341934408992529, -0.015177261084318161, 0.03129057586193085, 0.02782028540968895, 0.006006578449159861, 0.056690461933612823, 0.021159876137971878, 0.03837743401527405, -0.04585758224129677, 0.06308631598949432, -0.042034491896629333, 0.03565976023674011, 0.008663619868457317, 0.0038288887590169907, -0.02788206748664379, -0.0178915373980999, 0.12996385991573334, 0.06487493216991425, 0.010817519389092922, -0.0339294858276844, 0.0043306052684783936, 0.0018257234478369355, -0.057385124266147614, 0.011363962665200233, -0.005077787209302187, -0.02582685649394989, -0.016367986798286438, -0.05275249108672142, -0.033615224063396454, 0.018651504069566727, -0.024475108832120895, -0.023441407829523087, 0.07023043930530548, -0.013652892783284187, 0.05655714124441147, 0.00013890840637031943, -0.04569955915212631, -0.00510074757039547, -0.0380374975502491, -0.0514388345181942, -0.0025918346364051104, 0.023167328909039497, 0.006548096425831318, -0.018568458035588264, -0.030106905847787857, -0.039052121341228485, -0.021311813965439796, -0.042661309242248535, 0.004080974962562323, 0.052342738956213, 0.038791049271821976, -0.043246038258075714, 0.013107972219586372, -0.026770351454615593, 0.00553261348977685, 0.002999586518853903, -0.037098437547683716, -0.0646095797419548, 0.006090819835662842, 0.011114330030977726, 0.005221580620855093, 0.042453017085790634, 0.06848451495170593, -0.008727731183171272, -0.038974322378635406, -0.011004943400621414, -0.009925944730639458, 0.061549969017505646, -0.01933692768216133, -0.02865522727370262, -0.037290673702955246, 0.008453382179141045, 0.020865703001618385, -0.05341215431690216, -0.05649533495306969, -0.03545074909925461, -0.02951054275035858, 0.043113961815834045, -0.08157119154930115, -0.04313194379210472, -0.039963819086551666, 0.01729249767959118, 0.0394684337079525, 0.009080806747078896, -0.020063558593392372, 0.049969445914030075, 0.016924124211072922, 0.015973981469869614, 0.00788864865899086, 0.02172505483031273, 0.034242600202560425, 0.004226218909025192, 0.027842408046126366, 0.007254104129970074, -0.0064693354070186615, -0.037798941135406494, -0.02615192160010338, 0.01035354658961296, -0.07682625204324722, -0.28000542521476746, 0.06178908795118332, -0.014010519720613956, -0.04095141217112541, 0.013241427950561047, -0.009963749907910824, -0.01988370157778263, -0.04836602881550789, -0.0020381049253046513, 0.022344637662172318, -0.021385690197348595, -0.013207224197685719, 0.007969687692821026, 0.035813119262456894, 0.002504204399883747, 0.004748248960822821, -0.0075449408032000065, -0.05341144651174545, -0.004177422262728214, 0.014177264645695686, -0.024286184459924698, -0.023239579051733017, 0.0304492749273777, 0.03197221830487251, 0.033781979233026505, 0.022639937698841095, -0.022191181778907776, 0.0382419154047966, -0.017486082389950752, -0.0675894170999527, 0.025398144498467445, -0.030895011499524117, 0.017138559371232986, 0.03168972209095955, -0.010210069827735424, 0.012288563884794712, 0.026661142706871033, 0.04304414242506027, 0.022399652749300003, -0.0032220289576798677, -0.0235487949103117, -0.07127700746059418, 0.019667917862534523, -0.013714722357690334, 0.07346491515636444, -0.025378143414855003, -0.07657516002655029, -0.015778128057718277, -0.035776909440755844, 0.08634015172719955, -0.03826959803700447, -0.020766137167811394, -0.018444666638970375, 0.04731682315468788, -0.004192873369902372, 0.018834277987480164, -0.04364468529820442, 0.022540368139743805, -0.04794973134994507, -0.02465488389134407, 0.02522006258368492, -0.03263319283723831, -0.029359450563788414, -0.0631851851940155, -0.012438840232789516, -0.029228901490569115, -0.030160894617438316, -0.038044191896915436, 0.05620235577225685, 0.0018673778977245092, -0.033348824828863144, 0.005969357676804066, -0.02299003303050995, -0.08892184495925903, 0.014823587611317635, -0.06428365409374237, -0.027924586087465286, -0.02167745865881443, -0.015545208938419819, 0.02638537622988224, -0.007162859197705984, -0.07904408127069473, 0.012563120573759079, -0.006305692717432976, 0.018393458798527718, -0.011190272867679596, 0.008257760666310787, -0.024877410382032394, 0.010987477377057076, -0.027257036417722702, 0.06131111830472946, -0.009987088851630688, -0.023958832025527954, -0.002530384808778763, -0.009964067488908768, 0.014975735917687416, 0.010337993502616882, 0.006088969763368368, -0.009778688661754131, 0.05653474107384682, 0.019639259204268456, -0.06595446169376373, -0.01359750796109438, -0.05573273077607155, 0.028358375653624535, 0.062274329364299774, -0.05366789922118187, -0.03480710834264755, 0.03316882625222206, 0.008532701060175896, 0.005236011929810047, -0.017103826627135277, 0.03399350866675377, -0.04054072126746178, -0.05991150066256523, 0.008799562230706215, 0.03257202357053757, 0.03733626753091812, 0.01828296110033989, -0.032423119992017746, -0.03198814019560814, 0.008161491714417934, 0.019962873309850693, -0.04730045795440674, -0.00913282297551632, -0.018822550773620605, 0.015083692967891693, 0.020457997918128967, -0.011263302527368069, -0.010302023030817509, -0.009802563115954399, 0.030077947303652763, 0.029456639662384987, -0.02648579329252243, 0.007606866769492626, 0.0035531509201973677, -0.04562368988990784, -0.03623299300670624, 0.03802512213587761, 0.017326638102531433, 0.0017855711048468947, -0.03394250199198723, -0.00019870439427904785, 0.032448165118694305, 0.06838948279619217, -0.023973306640982628, 0.05899220332503319, -0.026664135977625847, 0.0013374520931392908, 0.0078082396648824215, 0.017768803983926773, -0.03533260151743889, 0.028132878243923187, -0.00639968179166317, -0.09536021947860718, -0.01865435764193535, 0.06074298918247223, 0.011531309224665165, 0.017157919704914093, -0.03373531252145767, 0.01904481276869774, -0.033276401460170746, 0.005848831031471491, -0.005049259401857853, -0.006266831886023283, 0.031057648360729218, 0.004610047210007906, 0.03198736160993576, -0.00503959646448493, 0.020688064396381378, 0.016191329807043076, 0.02379182167351246, 0.005625064950436354, 0.035271402448415756, -0.014549600891768932, 0.026811817660927773, 0.019324658438563347, 0.0030205599032342434, 0.0032188082113862038, 0.0022339788265526295, -0.023165661841630936, 0.009156718850135803, 0.031782519072294235, 0.00023119528486859053, 0.03367973491549492, 0.010562517680227757, -0.03308543562889099, 0.02015511505305767, -0.045072898268699646, -0.02935144305229187, -0.02699623443186283, 0.019370228052139282, -0.005528243724256754, 0.02836231328547001, -0.02915205992758274, -0.06812579929828644, 0.030619684606790543, 0.0076759690418839455, 0.01633552834391594, -0.015044005587697029, -0.023199856281280518, 0.013383038341999054, -0.054864246398210526, 0.0024700637441128492, 0.03370720148086548, -0.07319234311580658, 0.019921833649277687, -0.02856490947306156, 0.00636135833337903, -0.0009013637318275869, 0.02799481712281704, -0.03782549127936363, -0.019780592992901802, -0.0047780112363398075, 0.016592049971222878, -0.02113686315715313, -0.028415361419320107, 0.005523011088371277, 0.0014047500444576144, -0.023717038333415985, -0.006778963841497898, 0.0025329170748591423, -0.0051846858114004135, 0.0012974299024790525, -0.04300733283162117, 0.007349787279963493, -0.032636310905218124, -0.05871758610010147, 0.06473484635353088, -0.0112057039514184, 0.025246337056159973, -0.05756223574280739, 0.019248193129897118, 0.032033294439315796, -0.0056795175187289715, -0.016080908477306366, -0.07672467827796936, -0.009422938339412212, 0.008182452991604805, 0.04265884310007095, 0.008566409349441528, -0.004521173890680075, -0.007994246669113636, 0.00186403829138726, -0.0219462551176548, 0.009233414195477962, 0.005515784490853548, -0.022413460537791252, -0.036658670753240585, 0.04641466587781906, 0.002664383267983794, 0.045732785016298294, 0.025597957894206047, -0.00896821916103363, 0.06498663872480392, -0.012370491400361061, -0.03866592049598694, -0.008631215430796146, -0.05212412029504776, 0.05021060258150101, -0.0018927870551124215, -0.006514838896691799, -0.07656510174274445, 0.04667143523693085, 0.034997645765542984, 0.02851415053009987, 0.0565515011548996, -0.04043865203857422, 0.01756015606224537, -0.011555804871022701, -0.019403208047151566, -0.07799472659826279, 0.0022029925603419542, -0.006124719977378845, 0.01474499236792326, -0.023507654666900635, -0.020137563347816467, -0.03014124557375908, 0.03341401740908623, -0.06954894959926605, -0.04870709776878357, 0.03976054862141609, 0.0202651247382164, 0.0052328286692500114, 0.007784553337842226, -0.025552744045853615, 0.041512228548526764, 0.002009745454415679, -0.03638370335102081, -0.024128420278429985, -0.00011504150461405516, 0.0610845573246479, -0.00737551087513566, 0.03585865721106529, -0.013622265309095383, -0.03959067538380623, 0.07202479988336563, 0.014367233961820602, -0.015530874021351337, 0.038038771599531174, -0.008992395363748074, 0.042650703340768814, 0.013443537056446075, -0.0033578912261873484, -0.0037778744008392096, -0.01320929266512394, 0.00850224494934082, -0.03509896621108055, 0.019463174045085907, 0.02620701678097248, 0.008404846303164959, -0.0038177224341779947, 0.045001644641160965, 0.031379133462905884, -0.03480194881558418, -0.04431745037436485, 0.023558320477604866, -0.037831176072359085, 0.005378373898565769, -0.027572158724069595, 0.006815141998231411, -0.05406954139471054, 0.06230597570538521, 0.00938745029270649, 0.002502016955986619, 0.0854673907160759, 0.0031625416595488787, 0.006505901459604502, 0.03547835350036621, 0.05403098464012146, 0.05636897683143616, 0.003668051678687334, 0.03410734608769417, 0.028235092759132385, -0.051294099539518356, -0.05189180746674538, -0.001982741057872772, 0.0027144616469740868, -0.008458420634269714, 0.0006871197838336229, 0.04206026345491409, 0.06975702196359634, -0.02007932960987091, 0.08144649118185043, -0.02430766448378563, 0.02243691310286522, -0.004719271324574947, 0.01936957612633705, 0.0032984944991767406, 0.035936590284109116, 0.009879272431135178, 0.0260930135846138, 0.014636403881013393, -0.05393682047724724, 0.05528087168931961, -0.037627752870321274, -0.01759040728211403, -0.0028822883032262325, 0.02159160189330578, -0.0009031452354975045, -0.0011011776514351368, 0.035014547407627106, 0.08693726360797882, 0.0152238504961133, -0.012081877328455448, -0.01161212008446455, 0.028418079018592834, 0.016752399504184723, 0.02859990857541561, -0.037698790431022644, -0.03855953365564346, -0.048734501004219055, -0.03367982059717178, -0.010193316265940666, -0.005719978362321854, -0.030877502635121346, 0.04782329499721527, -0.06721425801515579, -0.009853854775428772, 0.024594316259026527, -0.03554769232869148, -0.07164157927036285, -0.05082179605960846, -0.05247386917471886, 0.015872204676270485, -0.06038724258542061, 0.008213474415242672, -0.028422795236110687, -0.013347066938877106, -0.034127138555049896, -0.02520686946809292, 0.0036853021010756493, 0.0005024364800192416, 0.030492255464196205, -0.06748256832361221, -0.0465577132999897, 0.044337473809719086, -0.00025388968060724437, -0.01890600472688675, 0.05174858868122101, 0.04072458669543266, -0.026556232944130898, -0.009686384350061417, -0.006814491003751755, -0.002776677720248699, 0.028943678364157677, 0.01947888918220997, 0.0610043965280056, -0.08007224649190903, 0.022040029987692833, 0.025871792808175087, 0.04374801367521286, -0.04729596525430679, 0.0009935154812410474, 0.08067437261343002, -0.02789340168237686, 0.041401542723178864, -0.0007398565066978335, 0.019593805074691772, -0.03448560833930969, -0.04213886335492134, -0.06634891778230667, 0.006018931046128273, 0.03966725617647171, -0.007815626449882984, 0.11493577808141708, 0.033331744372844696, 0.01196596771478653, -0.05625847727060318, -0.029785964637994766, -0.007702426519244909, 0.016004838049411774, -0.038145288825035095, -0.0037690578028559685, -0.04716796800494194, -0.035948529839515686, 0.0027972145471721888, 0.010651285760104656, -0.014554357156157494, -0.02488100342452526, 0.0011517588282003999, 0.030463455244898796, -0.06721866130828857, 0.02421027235686779, -0.033759359270334244, 0.007411501836031675, -0.008156423456966877, -0.016409073024988174, 0.007478293497115374, 0.02073272317647934, 0.010513988323509693, -0.014296142384409904, 0.019386380910873413, -0.021526558324694633, 0.01126070600003004, -0.0076096076518297195, 0.007508627139031887, 0.04728151112794876, -0.004735960625112057, 0.0396716333925724 ]
[ -0.07959745079278946, -0.03426559641957283, -0.04732641950249672, 0.005302049219608307, 0.06113047152757645, -0.07309971004724503, -0.060999996960163116, 0.0027781592216342688, -0.026450108736753464, 0.005824801046401262, 0.00965024996548891, -0.05810384079813957, -0.015106748789548874, -0.04302027449011803, 0.04192522168159485, 0.0038963882252573967, 0.004403318278491497, -0.0582532100379467, -0.050856173038482666, 0.057863749563694, 0.02809668891131878, -0.003820862155407667, -0.015916654840111732, -0.03628091514110565, -0.04718213900923729, 0.041011713445186615, 0.009027887135744095, -0.05093315988779068, -0.02457781322300434, -0.1787537783384323, 0.004157103132456541, -0.029318515211343765, 0.013096723705530167, -0.014426377601921558, 0.028417767956852913, -0.0035302015021443367, 0.035754505544900894, 0.008218598552048206, 0.012324223294854164, 0.05275522172451019, 0.0024039384443312883, 0.01014780905097723, -0.05208543315529823, -0.01812104508280754, 0.05140703544020653, -0.03477136045694351, -0.02908479981124401, -0.005951384548097849, 0.0015009876806288958, -0.006429648958146572, -0.08433127403259277, 0.011132065206766129, 0.03605226054787636, -0.05412948876619339, -0.0012155486037954688, 0.008431741036474705, 0.0655522495508194, 0.0874500721693039, 0.00993951316922903, 0.01138353906571865, -0.0255355853587389, 0.011543268337845802, -0.15649846196174622, 0.11111713945865631, 0.010110251605510712, 0.07849448174238205, -0.04867257922887802, -0.058603014796972275, -0.03290533646941185, 0.015654677525162697, -0.05108901113271713, -0.045095980167388916, -0.028573300689458847, 0.07125435024499893, 0.03182872757315636, -0.0075578284449875355, 0.02261260338127613, -0.009910152293741703, 0.039420146495103836, -0.05340630188584328, -0.04028278961777687, 0.0006754369242116809, -0.05130999907851219, -0.004491783678531647, -0.024588847532868385, 0.010083888657391071, 0.035629596561193466, 0.0852380320429802, 0.03242851048707962, 0.023157930001616478, 0.005854875780642033, -0.03724886476993561, 0.01832406036555767, 0.026061557233333588, -0.08422316610813141, -0.01808457262814045, 0.018916739150881767, 0.02294902130961418, -0.014135782606899738, 0.4538378417491913, -0.02367255464196205, -0.008258385583758354, 0.057611145079135895, 0.01797535829246044, 0.00404644338414073, 0.005682521499693394, -0.029606027528643608, -0.017534002661705017, -0.006225301418453455, -0.032427653670310974, 0.029730739071965218, -0.03694372996687889, 0.05584694817662239, -0.04049161449074745, -0.0011230983072891831, 0.0059623802080750465, -0.0029768089298158884, 0.014202171936631203, -0.036310769617557526, 0.03081858530640602, -0.024293741211295128, 0.008020443841814995, 0.027209870517253876, 0.029741132631897926, 0.011519736610352993, -0.008973008021712303, 0.03734790161252022, 0.06378733366727829, 0.04498725384473801, 0.015567334368824959, 0.008649606257677078, -0.036899641156196594, -0.06464697420597076, -0.04674161970615387, -0.020429911091923714, 0.022123588249087334, -0.0016060519265010953, -0.016904283314943314, 0.02626148983836174, 0.03602083772420883, -0.005187283270061016, -0.05118843913078308, -0.04249068722128868, 0.02252395637333393, -0.02229839377105236, 0.08342835307121277, 0.003953887149691582, -0.0009543109918013215, -0.05137908458709717, -0.01992334984242916, 0.00527532584965229, 0.059868406504392624, 0.02420363947749138, -0.03743701055645943, 0.01652471162378788, 0.00942304078489542, 0.056980401277542114, -0.011926225386559963, -0.0385117307305336, 0.0008068290771916509, -0.009079305455088615, -0.04590948298573494, -0.013869118876755238, 0.06010300666093826, -0.003923592157661915, -0.0719597265124321, -0.029632406309247017, 0.0038578477688133717, -0.0144851915538311, -0.029347656294703484, -0.01579391025006771, 0.0017293882556259632, 0.01850348711013794, 0.006861733738332987, 0.03153703734278679, -0.03259601444005966, -0.005762206856161356, 0.01241358183324337, 0.03393615409731865, 0.018359608948230743, -0.00006073825716157444, 0.012799883261322975, -0.0536077618598938, 0.006477131973952055, -0.02301565557718277, -0.11078411340713501, -0.04833170771598816, -0.009545940905809402, 0.004300372209399939, -0.00680775661021471, -0.017890729010105133, 0.03050198405981064, -0.028834780678153038, 0.025721674785017967, 0.04990934953093529, 0.005318488460034132, -0.03267688676714897, 0.0018041596049442887, 0.027490535750985146, -0.033316515386104584, 0.06492707133293152, 0.0332597941160202, -0.015544521622359753, 0.031963229179382324, -0.046166907995939255, 0.009508480317890644, 0.03564343601465225, -0.040963754057884216, 0.050303298979997635, 0.037762027233839035, 0.007559735327959061, -0.015865152701735497, 0.0015858382685109973, 0.02270183339715004, -0.018140528351068497, -0.0003436183324083686, -0.03575380891561508, 0.03451421111822128, 0.024884382262825966, 0.0054734693840146065, -0.0472131110727787, -0.03314892202615738, -0.023505574092268944, -0.3508138954639435, -0.011846273206174374, -0.048254817724227905, -0.013682235032320023, -0.00432591000571847, -0.049495015293359756, 0.014331533573567867, 0.011957074515521526, -0.020649785175919533, 0.08402378857135773, 0.0958821251988411, -0.0017400102224200964, 0.022829972207546234, -0.08642678707838058, -0.004218741785734892, 0.005699746310710907, -0.0429549440741539, -0.0420256182551384, -0.012265343219041824, 0.07817245274782181, 0.015284876339137554, -0.03166487067937851, -0.017674870789051056, -0.032780881971120834, 0.005925367120653391, -0.01902412436902523, 0.12991707026958466, 0.01551105361431837, 0.0906117707490921, -0.05579540133476257, 0.05499627813696861, 0.024028120562434196, 0.03625652939081192, -0.09850558638572693, -0.02317141555249691, -0.01831311360001564, -0.010377834551036358, 0.0087206419557333, 0.03041084297001362, -0.004823645111173391, -0.029462452977895737, 0.021561209112405777, -0.025780238211154938, -0.021164443343877792, -0.009881478734314442, -0.009863498620688915, -0.003910650033503771, -0.01082437764853239, -0.024036653339862823, 0.06199365854263306, -0.01714099384844303, 0.024592405185103416, 0.017993781715631485, 0.041557688266038895, 0.02197648026049137, -0.003995045553892851, -0.056361615657806396, -0.03113827109336853, 0.015423616394400597, -0.028478439897298813, 0.03863774612545967, 0.0075567360036075115, 0.04115591570734978, -0.02798011712729931, -0.0028660674579441547, -0.006522159557789564, -0.011621768586337566, 0.01870773546397686, 0.04539298638701439, -0.018241019919514656, -0.03885112330317497, 0.1210826113820076, 0.0044144825078547, 0.014343461021780968, 0.0026064820121973753, 0.07857313752174377, 0.002407253719866276, -0.005543260835111141, 0.0004898877814412117, -0.015023806132376194, 0.04145406559109688, -0.00034602341474965215, 0.07999467849731445, -0.06146163493394852, -0.008507278747856617, 0.03882402926683426, -0.054708804935216904, -0.013149194419384003, 0.04334833100438118, 0.002227728022262454, -0.029505707323551178, -0.03226406127214432, -0.03127264976501465, -0.02472788468003273, 0.06972659379243851, 0.0262400284409523, -0.24739205837249756, 0.011251582764089108, 0.05858263745903969, 0.060065265744924545, -0.01732153259217739, 0.021855266764760017, 0.03577475622296333, -0.0550476498901844, -0.008846540004014969, 0.0005953079671598971, -0.033850740641355515, 0.033919259905815125, -0.010536585003137589, -0.0014634166145697236, 0.05119550600647926, -0.018267758190631866, 0.03049037605524063, 0.05556406080722809, 0.013752385042607784, 0.03821684792637825, -0.02622879296541214, -0.02727472223341465, 0.14009003341197968, 0.040022555738687515, -0.028088610619306564, 0.017709670588374138, 0.005917928647249937, 0.01332859043031931, 0.06863145530223846, 0.04291604086756706, -0.0004204694414511323, 0.027435924857854843, 0.022082027047872543, -0.019457388669252396, 0.030249470844864845, -0.04671838879585266, 0.003934123087674379, 0.015019871294498444, 0.06677166372537613, -0.023453712463378906, -0.003172283060848713, 0.0444672554731369, -0.015398656018078327, 0.035334497690200806, 0.036540091037750244, 0.011963145807385445, -0.005221520084887743, -0.027734270319342613, -0.03642847761511803, -0.00639374740421772, -0.043666303157806396, -0.00990558322519064, -0.003464484354481101, -0.00039923086296766996, 0.022674744948744774, 0.08409610390663147, 0.02104116603732109, -0.051391683518886566, -0.04824894294142723, -0.024352844804525375, 0.026243647560477257, -0.060908664017915726, 0.10452082008123398, 0.03804910182952881, 0.01612810418009758 ]
[ -0.0024221341591328382, 0.011467298492789268, -0.09343013912439346, -0.002644868101924658, 0.038460176438093185, 0.007944596000015736, -0.02727958746254444, -0.015150045044720173, -0.05516990274190903, -0.02278738096356392, 0.007833671756088734, -0.02254520356655121, 0.03211250528693199, -0.004851975478231907, 0.016679372638463974, -0.03144597262144089, 0.004481811076402664, -0.018865767866373062, 0.023266581818461418, -0.012060160748660564, -0.041427820920944214, 0.051047150045633316, 0.056099820882081985, 0.011076795868575573, -0.016873836517333984, -0.021801024675369263, -0.05855009704828262, -0.009535398334264755, 0.026047367602586746, -0.15336424112319946, 0.09782422333955765, -0.033271823078393936, 0.01418408751487732, -0.0013409653911367059, 0.07307083159685135, 0.0629286915063858, -0.006041570566594601, -0.02637452259659767, -0.03053707629442215, 0.03717704489827156, 0.018955081701278687, -0.03214814141392708, -0.0320974625647068, 0.010105360299348831, -0.024013111367821693, 0.004578692372888327, 0.007312486879527569, -0.033859189599752426, -0.010425110347568989, 0.024700939655303955, -0.01437461469322443, 0.017879046499729156, -0.01612861081957817, -0.01892380230128765, 0.02260282263159752, -0.016705108806490898, 0.009646689519286156, 0.009192287921905518, -0.00916112307459116, -0.027157088741660118, -0.034689683467149734, 0.0017629448557272553, -0.013680542819201946, -0.00960786733776331, -0.014238647185266018, 0.008085612207651138, 0.015051563270390034, -0.032485902309417725, -0.008353731594979763, 0.014181775972247124, -0.05013531818985939, 0.01232213620096445, -0.0018385739531368017, 0.00341909215785563, 0.011769555509090424, -0.05531298369169235, 0.05171503871679306, -0.018097802996635437, -0.019214432686567307, -0.004577843938022852, -0.040172312408685684, 0.028578316792845726, 0.013189266435801983, 0.021279046311974525, -0.004582507070153952, -0.02817068248987198, -0.008026068098843098, -0.013995007611811161, 0.01491572055965662, 0.00320629496127367, 0.04329982027411461, 0.006544589530676603, -0.013690252788364887, 0.04672817140817642, -0.09064971655607224, -0.018284959718585014, 0.045592114329338074, 0.0037524672225117683, -0.014425459317862988, 0.7914027571678162, -0.021463196724653244, -0.04008259251713753, 0.0414123572409153, -0.012381572276353836, -0.042879633605480194, -0.040557824075222015, -0.0064772674813866615, 0.03280149772763252, -0.0538959763944149, -0.05423583462834358, 0.06647574156522751, -0.05742490291595459, 0.011644314043223858, 0.029918361455202103, 0.03649992123246193, -0.00912044383585453, 0.0017389809945598245, -0.008626928552985191, -0.013844734989106655, 0.04894145205616951, -0.02983531914651394, 0.02278781682252884, -0.0027906326577067375, 0.0380144938826561, -0.06415951251983643, -0.14669373631477356, 0.05497615411877632, -6.666224055409377e-33, 0.04103826731443405, -0.0033572521060705185, 0.004186575300991535, -0.011720048263669014, 0.040135134011507034, 0.0008889328455552459, -0.005177503917366266, 0.043453965336084366, 0.016350366175174713, -0.036690324544906616, 0.01814453862607479, -0.006614516489207745, -0.017849955707788467, 0.006648952607065439, 0.011916231364011765, -0.0049494048580527306, -0.01572549156844616, 0.06745841354131699, -0.015200422145426273, 0.05304567515850067, 0.019646313041448593, 0.02856135368347168, 0.005710959434509277, 0.008783465251326561, 0.016146359965205193, 0.034834131598472595, 0.011079073883593082, -0.02378721907734871, -0.0065332455560564995, -0.029474634677171707, -0.03148340433835983, 0.021636754274368286, -0.00045020692050457, -0.057870570570230484, -0.053544435650110245, -0.04246316850185394, -0.027123725041747093, -0.001399322529323399, -0.05975352227687836, -0.04754572734236717, -0.04451880604028702, 0.0015566354850307107, -0.020914319902658463, 0.02907080389559269, -0.002793692983686924, -0.020371388643980026, 0.019649524241685867, -0.0007356514106504619, 0.010765827260911465, -0.012140277773141861, -0.0008785475511103868, -0.020843496546149254, 0.05127466097474098, -0.016775239259004593, 0.030024811625480652, 0.02263866364955902, -0.017442936077713966, -0.002662075450643897, 0.020577194169163704, -0.006399513687938452, 0.0012165060034021735, -0.0074915699660778046, -0.00867850985378027, -0.013631688430905342, 0.029896795749664307, -0.03723512217402458, 0.008792880922555923, 0.018664700910449028, 0.007297912146896124, -0.023433974012732506, -0.053156979382038116, -0.003761855885386467, 0.029122192412614822, -0.006470630876719952, 0.026580872014164925, 0.004735853988677263, 0.025369727984070778, 0.03543313592672348, 0.020412318408489227, 0.01114431768655777, 0.025345541536808014, -0.005769575480371714, 0.04069961607456207, -0.05709834024310112, -0.0011280912440270185, 0.002425047103315592, -0.004515034146606922, -0.016013657674193382, -0.026363283395767212, 0.046913497149944305, 0.0179495457559824, 0.006919575855135918, 0.01063278503715992, -0.00931989960372448, 0.00942271389067173, 6.759862466027942e-33, -0.014768353663384914, -0.005217652767896652, -0.05083150416612625, 0.028758488595485687, 0.029427330940961838, 0.0009965253993868828, 0.01920325867831707, 0.009491880424320698, -0.037039224058389664, 0.0214057806879282, -0.04061056300997734, -0.0037241715472191572, -0.00640610558912158, -0.02767414227128029, 0.025051213800907135, -0.07533164322376251, 0.012458661571145058, 0.02436790056526661, 0.03931586071848869, 0.0052585178054869175, 0.008020232431590557, 0.006053765770047903, 0.02948382869362831, 0.011462333612143993, 0.05906734988093376, 0.0609867237508297, 0.0005999607383273542, 0.0178538728505373, 0.00361787062138319, 0.002933766692876816, 0.015103052370250225, -0.008433060720562935, 0.01321584451943636, 0.05489765852689743, -0.0185717660933733, -0.011447742581367493, -0.01429231557995081, 0.010784097947180271, 0.0050992704927921295, -0.00021263865346554667, 0.0202605202794075, 0.015745507553219795, 0.008050029166042805, -0.013549950905144215, 0.01267047505825758, 0.05766531825065613, -0.014098846353590488, -0.009305394254624844, 0.0035670651122927666, -0.04805953428149223, -0.0695330947637558, 0.04277113452553749, -0.004272640682756901, 0.005469345021992922, -0.005149273667484522, 0.008596175350248814, -0.0499148890376091, 0.018588442355394363, -0.0009807992028072476, 0.017060769721865654, -0.030703699216246605, 0.00391084048897028, 0.021963153034448624, -0.001627779216505587, -0.040872715413570404, -0.06892862915992737, -0.06190134212374687, -0.007488365285098553, 0.05011117830872536, 0.05661790072917938, -0.005990912672132254, -0.001610507140867412, 0.0006955654826015234, 0.0029646740294992924, -0.03791096433997154, 0.02712370827794075, 0.027156956493854523, -0.009652563370764256, -0.01303888764232397, -0.0007299639983102679, 0.016804330050945282, 0.01986629329621792, -0.0017416395712643862, -0.006526655051857233, 0.028507519513368607, 0.0524747371673584, -0.0023947644513100386, -0.017753956839442253, -0.009492252953350544, -0.020298585295677185, 0.010457482188940048, -0.0023195073008537292, -0.014741996303200722, 0.017952490597963333, 0.01961728371679783, -1.2167969742904461e-8, 0.018272187560796738, 0.01526130922138691, 0.014504273422062397, 0.013397995382547379, 0.05639258399605751, -0.0029237980488687754, 0.0068876841105520725, 0.012090225704014301, -0.03421728312969208, 0.0009900877485051751, 0.04162648692727089, -0.0639277771115303, 0.017531638965010643, 0.01030080858618021, 0.021043812856078148, 0.004160498268902302, 0.018545467406511307, -0.008526904508471489, 0.014290709048509598, -0.0038609823677688837, 0.04561106488108635, -0.005255471915006638, -0.003602474695071578, 0.007379005663096905, -0.04771506413817406, 0.041188083589076996, 0.03529106453061104, -0.0502176396548748, -0.03951115533709526, -0.005145682021975517, -0.019948994740843773, -0.0477236770093441, -0.061609990894794464, 0.05247572809457779, -0.0015338936354964972, -0.023626921698451042, -0.026783177629113197, -0.033613886684179306, -0.041927773505449295, 0.006627693306654692, 0.03261036425828934, 0.0429082028567791, -0.0026276481803506613, -0.010158399119973183, -0.008106771856546402, 0.01156985480338335, 0.029640663415193558, 0.021332766860723495, -0.02604575641453266, 0.026477044448256493, 0.048754338175058365, -0.035405345261096954, -0.015523869544267654, 0.05152193456888199, -0.018681000918149948, -0.00029593100771307945, 0.018764078617095947, -0.03423523157835007, -0.03506328910589218, 0.009526446461677551, 0.03526639565825462, -0.035818882286548615, 0.007293590344488621, 0.00567035935819149 ]
aws-lambda-libld-linux-2-bad-elf-interpreter-no-file-directory
https://markhneedham.com/blog/2017/08/03/aws-lambda-libld-linux-2-bad-elf-interpreter-no-file-directory
false
2017-08-02 06:09:10
PHP vs Python: Generating a HMAC
[ "python", "php" ]
[ "Python" ]
I've been writing a bit of code to integrate with a ClassMarker webhook, and you're required to check that an incoming request actually came from ClassMarker by https://www.classmarker.com/online-testing/api/webhooks/#verify[checking the value of a base64 hash using HMAC SHA256]. The example in the documentation is written in PHP which I haven't done for about 10 years so I had to figure out how to do the same thing in Python. This is the PHP version: [source,bash] ---- $ php -a php > echo base64_encode(hash_hmac("sha256", "my data", "my_secret", true)); vyniKpNSlxu4AfTgSJImt+j+pRx7v6m+YBobfKsoGhE= ---- The Python equivalent is a https://stackoverflow.com/a/1306575[bit more code] but it's not too bad. == Import all the libraries [source,python] ---- import hmac import hashlib import base64 ---- == Generate that hash [source,bash] ---- data = "my data".encode("utf-8") digest = hmac.new(b"my_secret", data, digestmod=hashlib.sha256).digest() print(base64.b64encode(digest).decode()) 'vyniKpNSlxu4AfTgSJImt+j+pRx7v6m+YBobfKsoGhE=' ---- We're getting the same value as the PHP version so it's good times all round.
In this post I show how to generate a Base 64 encoded HMAC using Python and compare it to the same code in PHP.
null
[ 0.01432106550782919, 0.009686433710157871, -0.01952766440808773, 0.03709696978330612, 0.05028082802891731, -0.016422579064965248, -0.001986569492146373, 0.046698927879333496, 0.0033312696032226086, 0.010903524234890938, -0.03276398405432701, -0.030702583491802216, -0.05379866808652878, -0.002853116951882839, 0.006651810836046934, 0.04917218163609505, 0.08818846195936203, 0.008540195412933826, 0.033961791545152664, 0.021902261301875114, -0.019080301746726036, 0.05664648488163948, -0.025020377710461617, -0.0047780298627913, 0.007040482014417648, 0.03907356783747673, -0.02257569134235382, -0.0037460525054484606, -0.08536755293607712, 0.002910807728767395, 0.04650453105568886, 0.0013792079407721758, 0.020618416368961334, 0.01453313883394003, 0.02994675748050213, 0.016781149432063103, -0.02323424071073532, 0.030078629031777382, 0.026429878547787666, 0.0306863896548748, -0.02939058095216751, 0.01721516251564026, -0.02395458333194256, 0.031952403485774994, -0.061690885573625565, -0.017470043152570724, -0.04638175293803215, 0.032696712762117386, -0.023865047842264175, 0.007285891100764275, -0.058060355484485626, 0.030311213806271553, -0.019683586433529854, -0.023715011775493622, 0.03359518200159073, 0.0831533893942833, -0.010937856510281563, -0.07992859184741974, 0.026714161038398743, -0.03732536360621452, -0.010122698731720448, -0.004175999201834202, 0.03103124350309372, 0.029156336560845375, 0.004255400970578194, -0.028933843597769737, -0.0007609353051520884, 0.052977342158555984, -0.04926205053925514, -0.02471928484737873, 0.009191874414682388, 0.030823074281215668, -0.02666447125375271, -0.0478864349424839, 0.009794141165912151, -0.038164447993040085, -0.03404855355620384, 0.0863533467054367, 0.002193604363128543, 0.0650235265493393, 0.000027835412765853107, 0.0002938231045845896, 0.04456942155957222, 0.031278207898139954, 0.01062009297311306, -0.04231632128357887, -0.06353934854269028, 0.006006479728966951, -0.013171989470720291, 0.0689658373594284, 0.006234521511942148, -0.026091594249010086, 0.04363140091300011, 0.012888752855360508, -0.019497808068990707, -0.005111945793032646, -0.000439246476162225, 0.018152732402086258, 0.017848461866378784, -0.047709010541439056, -0.04947759211063385, -0.025947822257876396, 0.029536718502640724, -0.0038155135698616505, -0.04296053200960159, 0.009401905350387096, -0.05185968428850174, -0.008564803749322891, 0.00422655837610364, -0.010401804931461811, -0.003983921837061644, 0.005988780874758959, -0.028550226241350174, -0.006466215010732412, -0.04908913001418114, 0.06498761475086212, -0.005643605254590511, -0.04157168045639992, -0.035615015774965286, 0.024932995438575745, 0.024214746430516243, 0.06801846623420715, -0.03153013810515404, 0.10150538384914398, 0.05290093272924423, 0.038651008158922195, -0.008892275393009186, 0.06563066691160202, -0.01986110769212246, -0.04152374342083931, -0.008025345392525196, 0.059760354459285736, 0.01929445005953312, 0.023119132965803146, -0.023956432938575745, -0.0021514880936592817, -0.03302369639277458, 0.005730533506721258, 0.05678119137883186, 0.017834994941949844, -0.009568511508405209, -0.03477897495031357, -0.009863892570137978, 0.000681480742059648, 0.027056129649281502, 0.015134977176785469, -0.0018803348066285253, -0.03430996835231781, 0.005055256187915802, 0.03999084606766701, -0.01215420849621296, -0.0025682677514851093, 0.05920572206377983, -0.022242112085223198, 0.00390506605617702, 0.0449141189455986, 0.015969479456543922, 0.03555343300104141, -0.022879576310515404, 0.003229829017072916, 0.02632410265505314, 0.016848810017108917, 0.009301952086389065, 0.026175793260335922, -0.014806648716330528, 0.005700908601284027, 0.024651100859045982, 0.08242609351873398, -0.012390914373099804, 0.019238682463765144, -0.04520013928413391, -0.06226730719208717, 0.07278136163949966, -0.0360252745449543, 0.014777743257582188, -0.0053528374992311, 0.056494470685720444, 0.026601701974868774, 0.060997374355793, 0.0020970897749066353, -0.07186447083950043, 0.0437505841255188, 0.020474547520279884, 0.03584318235516548, 0.0334656648337841, -0.0028042206540703773, 0.10216541588306427, 0.020557546988129616, 0.007886138744652271, 0.011577465571463108, -0.08589009195566177, -0.06528887152671814, -0.06557805091142654, -0.018350686877965927, 0.06471613049507141, -0.04664333164691925, 0.01863531768321991, 0.04261501505970955, 0.04853003844618797, 0.055106692016124725, 0.015360466204583645, -0.016304170712828636, 0.0032522655092179775, -0.05851918086409569, -0.039813876152038574, 0.021084927022457123, 0.05962105840444565, -0.025199782103300095, -0.035943109542131424, -0.004665274638682604, -0.021169422194361687, 0.007749825716018677, 0.01911625638604164, 0.0014814073219895363, 0.004287225194275379, 0.018601860851049423, 0.04595886915922165, -0.020321300253272057, 0.04477899149060249, -0.04581066593527794, 0.044256556779146194, -0.018172262236475945, -0.01684158854186535, -0.0355650931596756, 0.010328675620257854, 0.1274174302816391, 0.05918041244149208, -0.023843569681048393, -0.03619536757469177, 0.009585305117070675, 0.006683794315904379, -0.08292903751134872, -0.00752860214561224, -0.015178793109953403, -0.0280546173453331, 0.006325833965092897, -0.03537805750966072, -0.03552601486444473, 0.010381610132753849, -0.034957241266965866, -0.0197082981467247, 0.07149238884449005, -0.028195613995194435, 0.014417766593396664, -0.0032454871106892824, -0.02811458520591259, -0.00935388170182705, -0.0305548757314682, -0.058015625923871994, 0.018784821033477783, -0.0007888358668424189, 0.004259590525180101, 0.04069184511899948, -0.03979780524969101, -0.054514460265636444, -0.03433406352996826, -0.04509032145142555, 0.0011776050087064505, 0.015286908484995365, 0.047561462968587875, -0.006341736298054457, 0.0406208261847496, -0.003464140696451068, -0.0015138991875573993, -0.01190050970762968, -0.031807929277420044, -0.04745024815201759, -0.022967461496591568, 0.007922684773802757, 0.021204762160778046, 0.014748492278158665, 0.029987167567014694, 0.01754741184413433, 0.01993071660399437, -0.005331794265657663, -0.003200024366378784, 0.05073685944080353, -0.028475333005189896, -0.023287177085876465, -0.03089565970003605, -0.03204737976193428, 0.07339953631162643, -0.0795164555311203, -0.03152274340391159, 0.0016796670388430357, -0.07951168715953827, 0.03149838745594025, -0.04516834765672684, -0.040564682334661484, 0.012098511680960655, 0.002929855138063431, 0.032028645277023315, -0.004736770410090685, 0.03705436736345291, 0.07972420006990433, -0.013578861951828003, 0.001758340746164322, 0.03884159028530121, 0.006235253997147083, 0.03532871603965759, -0.01182046439498663, 0.024629831314086914, 0.024130620062351227, -0.011297578923404217, -0.03186791017651558, -0.04536156728863716, 0.002655324526131153, -0.04973017796874046, -0.2722074091434479, 0.06977688521146774, -0.03494611382484436, -0.04944434016942978, 0.020785793662071228, -0.002051869174465537, -0.025020821020007133, -0.04161754623055458, 0.01447978150099516, 0.01286148838698864, -0.006361635401844978, -0.0417536236345768, -0.009455307386815548, 0.015270387753844261, -0.016054315492510796, 0.010563826188445091, -0.015838056802749634, 0.0053632366470992565, 0.014532060362398624, 0.02040867507457733, -0.006420777644962072, -0.05500778928399086, 0.018141787499189377, 0.06618630886077881, 0.016833573579788208, 0.031966682523489, -0.048491232097148895, 0.046032316982746124, -0.06068349629640579, -0.026477688923478127, 0.02523435279726982, -0.026101525872945786, 0.009470643475651741, -0.00015875740791670978, -0.02442006580531597, 0.00038721272721886635, 0.0438278429210186, -0.0010204550344496965, -0.027586430311203003, 0.009439687244594097, -0.058938976377248764, -0.030174167826771736, -0.025646355003118515, -0.014873862266540527, 0.08703896403312683, -0.008367903530597687, -0.04387959837913513, -0.05594880133867264, -0.02304299920797348, 0.057231441140174866, -0.04177558422088623, -0.06634750962257385, -0.020584657788276672, 0.03365190699696541, -0.04390943422913551, -0.00986841507256031, 0.009953400120139122, -0.010460581630468369, -0.0528557188808918, -0.00849943608045578, 0.009440291672945023, -0.019686145707964897, -0.025176040828227997, -0.05552021041512489, -0.007143575232475996, -0.05888460576534271, -0.040643978863954544, -0.0027320620138198137, 0.054317351430654526, 0.03543735668063164, -0.04662497341632843, 0.02203785628080368, -0.04249884560704231, -0.09269920736551285, 0.027024421840906143, -0.0405212864279747, 0.0011106367455795407, 0.009427414275705814, -0.010123413987457752, 0.03650277107954025, -0.024716051295399666, -0.03547584265470505, 0.03444620221853256, -0.01200888678431511, 0.024574032053351402, -0.04088723286986351, 0.01088019274175167, -0.009248582646250725, 0.0003623744996730238, -0.014469901099801064, 0.08776266127824783, 0.0035276440903544426, -0.018196845427155495, -0.01526584941893816, 0.00469723017886281, 0.049814339727163315, 0.019709421321749687, -0.007066434249281883, 0.009559107944369316, 0.05300183594226837, 0.014698966406285763, -0.032342445105314255, 0.0030539461877197027, -0.05378259718418121, 0.0032111818436533213, -0.0054607270285487175, -0.03338214010000229, 0.04674747586250305, 0.017192397266626358, -0.0020879986695945263, -0.04015525430440903, -0.025898870080709457, -0.018319346010684967, -0.019475294277071953, -0.020260628312826157, -0.03529857471585274, 0.003804708831012249, -0.00940350815653801, 0.013631954789161682, -0.019570406526327133, -0.024769475683569908, 0.010229629464447498, 0.04598568379878998, 0.0038288028445094824, -0.03805946186184883, -0.06410105526447296, -0.040125902742147446, 0.022142931818962097, 0.01212263386696577, -0.001075359177775681, 0.03177275508642197, 0.04410262033343315, 0.0005869116866961122, -0.009658371098339558, 0.018523380160331726, -0.007372442167252302, -0.028492001816630363, -0.026311879977583885, -0.0011741580674424767, 0.0110123036429286, 0.00534467026591301, -0.015675673261284828, -0.02193000167608261, 0.06515872478485107, 0.03824136033654213, -0.012198328040540218, 0.027451710775494576, -0.0023215096443891525, -0.0223007183521986, -0.0007864313083700836, 0.012017047964036465, -0.06571123749017715, 0.03423718363046646, -0.041069287806749344, -0.022731898352503777, 0.006332479417324066, 0.031095515936613083, 0.0352632999420166, -0.033658843487501144, -0.02412675879895687, 0.05469747260212898, -0.028786523267626762, 0.010234021581709385, -0.012013298459351063, -0.02957794815301895, 0.03560015559196472, -0.016100279986858368, 0.045784879475831985, -0.030797749757766724, -0.008507571183145046, 0.014671167358756065, 0.009667614474892616, -0.022768598049879074, 0.00872938521206379, 0.01031852699816227, -0.03952815756201744, -0.019841553643345833, 0.03982388600707054, 0.001613326370716095, -0.015805386006832123, 0.023673351854085922, -0.006173181813210249, 0.034176476299762726, 0.009061666205525398, 0.05433331057429314, 0.03106740303337574, -0.026619378477334976, 0.014858636073768139, -0.034842245280742645, 0.008543136529624462, -0.02010602317750454, -0.007179874926805496, -0.03911900892853737, 0.03348900377750397, -0.01447844598442316, -0.10443181544542313, 0.007949872873723507, 0.038344401866197586, 0.00900609977543354, 0.02017962746322155, 0.005562829785048962, 0.01583779789507389, -0.02689477801322937, 0.03408152237534523, 0.03340177237987518, -0.02841801755130291, -0.0002328476548427716, -0.008759913966059685, 0.00027511344524100423, -0.015559704974293709, 0.034888144582509995, -0.0641590803861618, -0.018652401864528656, 0.010016990825533867, 0.004143828060477972, -0.01110489759594202, -0.060990918427705765, -0.027949318289756775, -0.0006033189711160958, -0.017679983749985695, 0.021018311381340027, -0.003434631507843733, 0.01612963154911995, -0.009008597582578659, -0.03743664175271988, 0.022874489426612854, -0.004648252855986357, -0.0012428011978045106, 0.0185328908264637, -0.015451359562575817, 0.034795958548784256, -0.028887052088975906, 0.053411293774843216, 0.025647779926657677, -0.014048773795366287, -0.019451826810836792, -0.06882257014513016, 0.00006771925109205768, -0.025994129478931427, 0.05950877442955971, -0.004113529808819294, 0.01249195821583271, -0.017304517328739166, 0.004097286611795425, -0.032537512481212616, 0.009227743372321129, -0.015893498435616493, -0.011320718564093113, 0.024146614596247673, 0.053593430668115616, 0.008669528178870678, 0.030560873448848724, 0.010337370447814465, -0.046866048127412796, 0.05295346677303314, -0.03716196492314339, -0.040106236934661865, -0.04242445155978203, -0.053008392453193665, 0.017740609124302864, 0.05274467542767525, 0.03737479820847511, -0.08765258640050888, 0.04027519002556801, 0.024868426844477654, 0.02996307983994484, 0.03629911690950394, -0.001628540107049048, 0.03477754071354866, -0.04353146627545357, -0.016327237710356712, -0.0852656215429306, 0.021327078342437744, 0.06105446442961693, -0.0013065023813396692, -0.03223954513669014, -0.031218310818076134, -0.050072215497493744, 0.007683866657316685, -0.06779126077890396, -0.02430768683552742, 0.047198716551065445, 0.018026025965809822, -0.026753611862659454, -0.008254359476268291, -0.04598601534962654, 0.03482205420732498, 0.02606862038373947, -0.05552452430129051, -0.022085826843976974, -0.04914739355444908, 0.07766904681921005, 0.00565500371158123, 0.04451413452625275, -0.014486797153949738, -0.002280000364407897, 0.060442693531513214, 0.030734745785593987, 0.012036765925586224, 0.018410861492156982, -0.003895485308021307, 0.04059664160013199, 0.009054799564182758, 0.018460478633642197, 0.022007498890161514, 0.015471969731152058, -0.011097739450633526, -0.06644044816493988, 0.040327005088329315, -0.019899779930710793, -0.05140390619635582, -0.031778812408447266, 0.0742594450712204, 0.014353972859680653, -0.03667710721492767, -0.06647937744855881, 0.0497049018740654, -0.039828523993492126, -0.04082851856946945, -0.00866135023534298, -0.015042563900351524, -0.04140934348106384, 0.06881053745746613, 0.005830401089042425, 0.006749659776687622, 0.05828633904457092, -0.04439442604780197, -0.013867815025150776, 0.008962820284068584, 0.08075122535228729, 0.05619291961193085, 0.030110592022538185, 0.008610311895608902, 0.037929486483335495, 0.003478276776149869, -0.03624805063009262, -0.027294469997286797, -0.02094925567507744, -0.0004673936346080154, 0.01533208042383194, 0.005073823966085911, 0.03644557669758797, -0.004813752137124538, 0.06688430160284042, -0.020979953929781914, 0.02497568540275097, 0.011678154580295086, 0.044542860239744186, 0.04806853458285332, 0.030441036447882652, 0.025687143206596375, 0.0451078861951828, -0.021439865231513977, -0.02989005856215954, 0.047519054263830185, -0.004998964723199606, -0.03124520741403103, 0.04456661641597748, -0.017557945102453232, 0.020041506737470627, 0.01091981865465641, 0.02327793650329113, 0.07107952982187271, -0.0020143731962889433, -0.026023074984550476, 0.010005496442317963, 0.01596817933022976, 0.006522304378449917, 0.025861183181405067, -0.0004660224949475378, -0.015594057738780975, -0.016437746584415436, -0.05828545242547989, 0.01522777508944273, -0.02617070823907852, -0.022721920162439346, 0.04361466318368912, 0.013832265511155128, -0.001030932180583477, -0.009667247533798218, 0.01740230806171894, -0.043290697038173676, -0.03411112725734711, -0.07249490916728973, -0.028920991346240044, -0.06588109582662582, -0.013136730529367924, 0.02421519346535206, -0.008022620342671871, -0.03833188861608505, -0.02295432984828949, -0.03709306940436363, 0.007819202728569508, 0.015724260360002518, -0.040953706949949265, -0.018324708566069603, 0.03083026595413685, 0.030136143788695335, 0.02688787691295147, 0.013828221708536148, 0.025728562846779823, 0.010989511385560036, -0.011021336540579796, 0.004948347341269255, -0.02494218945503235, 0.05068443715572357, 0.005734819918870926, 0.012081521563231945, -0.09015536308288574, -0.006191191729158163, 0.037594590336084366, 0.019788013771176338, -0.05293240770697594, 0.003894955152645707, -0.009934736415743828, -0.023829754441976547, 0.04626218602061272, -0.03116687759757042, -0.003284718608483672, -0.01590517722070217, -0.058139264583587646, -0.0009548807865940034, 0.01069124136120081, 0.043427567929029465, -0.004726812709122896, 0.09492312371730804, 0.05058937892317772, -0.017767293378710747, -0.04050763323903084, -0.004783180076628923, -0.02123943157494068, 0.00018095919222105294, -0.039122164249420166, -0.04867119342088699, -0.03536316752433777, -0.04384182021021843, -0.007348986342549324, 0.022567324340343475, -0.02641858160495758, -0.03836151957511902, 0.032015830278396606, 0.036912672221660614, -0.01182243786752224, 0.01865309290587902, -0.016699684783816338, 0.019868606701493263, -0.03612866625189781, -0.031052352860569954, -0.0065687550231814384, 0.04469647258520126, -0.02460440620779991, -0.0027751296292990446, 0.018842140212655067, -0.021694498136639595, -0.009054171852767467, 0.0014645528281107545, 0.04345705360174179, 0.034417565912008286, -0.02718890644609928, -0.0002501094713807106 ]
[ -0.08485662937164307, -0.012856598943471909, -0.07099928706884384, -0.05890844762325287, 0.0414416529238224, -0.05748649686574936, -0.016614310443401337, 0.007085287943482399, -0.02875158004462719, 0.0008895777864381671, 0.020495783537626266, -0.04362946376204491, 0.013092015869915485, -0.04120729863643646, 0.05565384030342102, 0.0008133554365485907, -0.010948763228952885, -0.03163875266909599, -0.014428786933422089, 0.032552264630794525, 0.028380971401929855, -0.006380763836205006, -0.042469389736652374, -0.004784680437296629, -0.02072705514729023, 0.0344206765294075, 0.025126367807388306, -0.02964760921895504, -0.012451318092644215, -0.18632762134075165, 0.029140066355466843, -0.051435064524412155, 0.03155219554901123, -0.036631617695093155, 0.037266988307237625, 0.022075047716498375, 0.028675377368927002, 0.0004955915501341224, 0.010615748353302479, 0.05049033463001251, 0.03707287833094597, -0.0010553802130743861, -0.07989151775836945, -0.008179057389497757, 0.031190600246191025, -0.014679680578410625, -0.010132993571460247, -0.027190662920475006, 0.020730141550302505, 0.024546459317207336, -0.05900592356920242, 0.016829652711749077, 0.021271023899316788, -0.01116893719881773, 0.0010083502857014537, -0.012637699954211712, 0.041719965636730194, 0.09781864285469055, 0.040729790925979614, -0.0037798748817294836, -0.017327914014458656, 0.005468406248837709, -0.15464970469474792, 0.116456538438797, 0.028921760618686676, 0.07714750617742538, -0.021340562030673027, -0.031609535217285156, 0.01028281357139349, 0.041583891957998276, -0.019932672381401062, -0.01711241342127323, -0.06187305226922035, 0.07691466808319092, 0.004448903724551201, 0.0008792979060672224, 0.0116768479347229, 0.026808373630046844, 0.02797120250761509, -0.05378790199756622, -0.06749976426362991, -0.0201853197067976, 0.02367393858730793, -0.033370114862918854, -0.012640528380870819, -0.01615332067012787, 0.004403348080813885, 0.07021591812372208, 0.04212864115834236, 0.018594112247228622, 0.009892524220049381, -0.04812079668045044, 0.03159482404589653, 0.026214109733700752, -0.07107440382242203, 0.011720758862793446, -0.010773385874927044, 0.021394483745098114, -0.06082750856876373, 0.3794422149658203, -0.03493059426546097, -0.024999838322401047, 0.0337514653801918, -0.03932313621044159, 0.018283413723111153, 0.0013035765150561929, 0.008134279400110245, -0.03556164354085922, 0.0009007184416987002, -0.07085361331701279, 0.024571077898144722, 0.018610000610351562, 0.08392104506492615, -0.06675666570663452, -0.010201781988143921, 0.02511735074222088, -0.004292290657758713, 0.016754426062107086, -0.01163390651345253, -0.010282205417752266, -0.01906471699476242, -0.013462710194289684, 0.04355689883232117, 0.01822233758866787, 0.010040266439318657, -0.017588047310709953, 0.04113056883215904, 0.08077361434698105, 0.040284741669893265, 0.04805822670459747, 0.01766909472644329, -0.04020261764526367, -0.049210868775844574, -0.029808055609464645, 0.010983278974890709, 0.026052650064229965, 0.002815173240378499, 0.020705455914139748, 0.022871075198054314, 0.02429116703569889, -0.03621414303779602, -0.02756584994494915, -0.01580098643898964, 0.00707852141931653, -0.06736747175455093, 0.10772929340600967, -0.013687800616025925, -0.0055971271358430386, -0.04259627312421799, -0.04375350847840309, 0.001443339860998094, 0.046231262385845184, -0.0014820005744695663, -0.02433137781918049, 0.010587332770228386, 0.027017531916499138, 0.05961630493402481, 0.0026361376512795687, -0.0318816676735878, -0.04172176122665405, -0.004370273090898991, -0.056860849261283875, -0.03539187088608742, 0.05640518292784691, 0.03045620582997799, -0.11279934644699097, -0.003228032262995839, 0.006483613513410091, 0.014563324861228466, -0.08278071880340576, -0.006028841249644756, 0.01933259516954422, -0.010708620771765709, 0.0007121307426132262, 0.026110578328371048, -0.03849838301539421, -0.023502888157963753, 0.04970541596412659, 0.03838297352194786, 0.012661699205636978, -0.026319490745663643, 0.009590397588908672, -0.06771998852491379, 0.002527571516111493, -0.0008807703852653503, -0.08461391925811768, -0.05733346939086914, 0.0008935702499002218, 0.018532777205109596, 0.01372655387967825, -0.032658133655786514, -0.015783585608005524, -0.09050124138593674, 0.045769285410642624, -0.0019685644656419754, -0.010305531322956085, 0.008183546364307404, 0.02269160933792591, 0.019380224868655205, -0.04049328342080116, 0.04044840484857559, 0.06914222985506058, -0.01119193248450756, 0.044004011899232864, -0.06250344961881638, 0.03946266323328018, 0.05950532481074333, -0.03406175971031189, 0.07310789823532104, 0.03687071427702904, -0.01819850504398346, -0.007602365221828222, -0.026666048914194107, -0.01428271271288395, -0.03107217513024807, -0.02550363913178444, -0.018156368285417557, 0.03366708755493164, 0.03875516355037689, 0.011056434363126755, -0.040193334221839905, -0.0676870048046112, 0.0011990226339548826, -0.3378196954727173, -0.04500843584537506, -0.021831786260008812, -0.0026481691747903824, 0.04321308806538582, -0.09602774679660797, 0.03422856703400612, -0.00789096113294363, 0.010625972412526608, 0.0007683324511162937, 0.09434916824102402, 0.009558724239468575, 0.00014870204904582351, -0.0657220184803009, -0.02302679792046547, 0.0523371621966362, 0.004943963140249252, -0.03715050220489502, 0.016861068084836006, 0.048965997993946075, -0.0008698228048160672, -0.03395188972353935, -0.04551674798130989, -0.03813156113028526, 0.03024434484541416, -0.07167346775531769, 0.10277954488992691, 0.037056054919958115, 0.06345067918300629, -0.022785352542996407, 0.06486601382493973, 0.0029389227274805307, -0.019312912598252296, -0.11081289499998093, 0.016126830130815506, -0.024853108450770378, -0.006165343802422285, 0.04665651172399521, 0.041325878351926804, -0.032058097422122955, -0.03202798590064049, 0.01903492584824562, -0.03807894140481949, -0.0645156279206276, 0.0030824036803096533, -0.015022103674709797, -0.03645141050219536, -0.017220815643668175, -0.005916079040616751, 0.05065514147281647, 0.024801665917038918, 0.0213982742279768, 0.015190747566521168, 0.022592687979340553, -0.02096453495323658, -0.025426015257835388, -0.037674736231565475, -0.03950480371713638, -0.008469641208648682, 0.002463702578097582, 0.022738641127943993, 0.011543379165232182, 0.029067883267998695, -0.020072858780622482, 0.00856050755828619, 0.01602024957537651, 0.02248392254114151, 0.015250627882778645, 0.06733239442110062, -0.022227318957448006, -0.009337794035673141, 0.13152116537094116, -0.006045584101229906, 0.049931593239307404, 0.04356573522090912, 0.04954902455210686, -0.030625861138105392, -0.011330496519804, 0.039940498769283295, 0.00419191038236022, 0.033608578145504, 0.020756924524903297, 0.016796153038740158, -0.027523143216967583, 0.015354410745203495, 0.04102577269077301, 0.002564694033935666, 0.013346862979233265, 0.06578635424375534, -0.008963577449321747, -0.027507055550813675, -0.02715415321290493, -0.022249149158596992, -0.07706732302904129, 0.027899740263819695, -0.01361110433936119, -0.26762428879737854, -0.0036198219750076532, 0.02880159020423889, 0.09166394174098969, 0.011678125709295273, -0.015266889706254005, 0.07191456109285355, -0.04998725280165672, -0.03899398446083069, -0.00215423246845603, 0.029848119243979454, 0.024596726521849632, 0.025865746662020683, -0.01700557768344879, -0.000449725310318172, -0.009649607352912426, 0.04407340660691261, -0.02784966677427292, -0.04187927395105362, 0.010552726686000824, -0.016695817932486534, -0.03774901106953621, 0.16838064789772034, 0.00236235442571342, 0.013371285051107407, -0.0068434723652899265, 0.0064089433290064335, 0.03319482132792473, 0.11212772876024246, 0.0040382081642746925, -0.022471334785223007, -0.01002760510891676, 0.05918267369270325, -0.021091913804411888, 0.02000371366739273, -0.04357171431183815, -0.04442981630563736, 0.0009267118875868618, 0.009716262109577656, 0.01066137757152319, -0.02924557402729988, 0.029931770637631416, -0.07171783596277237, 0.012645279057323933, 0.05081608146429062, -0.004454439505934715, -0.006816636770963669, -0.03803509473800659, -0.01743869110941887, -0.012012879364192486, 0.0255111213773489, -0.04577455297112465, 0.00004390020330902189, 0.006783029530197382, 0.01225634291768074, 0.11622735857963562, 0.0161482784897089, -0.005890495143830776, 0.00221583666279912, 0.04520665481686592, 0.0053714788518846035, -0.007630716543644667, 0.13248838484287262, 0.024194177240133286, 0.002643282525241375 ]
[ 0.019635146483778954, 0.07204468548297882, -0.02611575275659561, -0.025192338973283768, 0.013677041046321392, -0.03991704434156418, -0.004759634379297495, -0.02665185183286667, -0.019021855667233467, -0.028224997222423553, 0.00010519944771658629, 0.01286142598837614, 0.02036542445421219, -0.02372894436120987, 0.040874116122722626, -0.01413135975599289, -0.03017572872340679, -0.00225462787784636, -0.008469133637845516, -0.01788073405623436, -0.002508017001673579, 0.022074174135923386, 0.03384578973054886, 0.01999165117740631, -0.03916430100798607, 0.01709660142660141, -0.010930687189102173, 0.06074471026659012, 0.02528541535139084, -0.1309599131345749, 0.022525887936353683, -0.02278648316860199, -0.02697630599141121, -0.005858234595507383, -0.013790018856525421, 0.030581874772906303, 0.02028782106935978, -0.004692298360168934, 0.012074681930243969, -0.009554130025207996, -0.0015712669119238853, -0.031606316566467285, -0.02888738177716732, 0.03544916212558746, -0.01846829615533352, -0.004727750550955534, 0.009064693003892899, -0.009264983236789703, -0.011694448068737984, -0.023669781163334846, -0.011394685134291649, -0.027961455285549164, -0.013562030158936977, 0.03355149179697037, -0.04371989145874977, -0.018223844468593597, -0.049349427223205566, 0.04444748908281326, -0.019071204587817192, -0.00727182487025857, -0.018302232027053833, 0.009170589968562126, 0.026794249191880226, -0.03407347574830055, -0.022337257862091064, -0.027045177295804024, -0.016306716948747635, -0.006196869071573019, 0.025679823011159897, 0.02174382284283638, -0.018203718587756157, -0.01486583985388279, -0.028952540829777718, 0.04108088091015816, -0.011800948530435562, -0.0019241299014538527, -0.027806442230939865, -0.03118366375565529, 0.0009304216946475208, 0.019061246886849403, -0.026324311271309853, -0.015940342098474503, 0.03264221176505089, 0.0693984106183052, 0.028432684019207954, -0.01069997251033783, 0.014587347395718098, 0.0361211821436882, 0.004596582148224115, 0.008437213487923145, 0.0019023716449737549, 0.009390068240463734, -0.020741255953907967, 0.009597137570381165, -0.04875596612691879, -0.02816169708967209, -0.007087866775691509, 0.006620329804718494, -0.009855431504547596, 0.8293988704681396, -0.0007317981217056513, -0.0076952711679041386, -0.02046394534409046, -0.018378587439656258, 0.02004406787455082, 0.005321383476257324, -0.017891092225909233, 0.007308578118681908, 0.034787844866514206, -0.05059574171900749, -0.006817461457103491, -0.015590984374284744, -0.004778959322720766, 0.004972986876964569, 0.009648527018725872, 0.047200705856084824, -0.003037193324416876, 0.008619842119514942, 0.004375368822365999, -0.00778296310454607, 0.02146216668188572, 0.02172197215259075, 0.019649261608719826, 0.019217848777770996, -0.05050598829984665, -0.19319917261600494, -0.014291511848568916, -7.096052380995177e-33, 0.019019516184926033, -0.017336362972855568, 0.003415337298065424, -0.018326081335544586, -0.0022332726512104273, -0.013386283069849014, 0.0390489399433136, 0.030349981039762497, -0.006609106902033091, -0.03274797275662422, 0.026119617745280266, -0.021436063572764397, 0.027484027668833733, -0.006309980060905218, 0.05667222663760185, -0.008302276022732258, -0.0076652998104691505, 0.05908757448196411, -0.009685349650681019, 0.030780503526329994, 0.01727021113038063, 0.04320671409368515, 0.037568915635347366, -0.01806756481528282, 0.0037230246234685183, 0.04833151772618294, 0.006686063949018717, 0.005957661662250757, 0.012189962901175022, -0.04653026536107063, -0.010957757011055946, -0.012689530849456787, 0.006901788525283337, -0.07546159625053406, 0.014832418411970139, -0.0442793183028698, -0.035302143543958664, 0.013001620769500732, -0.018473565578460693, -0.0461261123418808, -0.015138351358473301, -0.008279739879071712, -0.0050844899378716946, -0.004816254135221243, -0.020962795242667198, -0.010749079287052155, -0.03554819896817207, 0.007794261444360018, 0.016066676005721092, 0.023930443450808525, -0.007465149741619825, -0.018671302124857903, 0.0024215816520154476, -0.007741877809166908, -0.035295091569423676, -0.018309826031327248, 0.0076673212461173534, 0.02747640572488308, -0.028272481635212898, -0.020004363730549812, 0.0020146765746176243, -0.017283059656620026, 0.01882760226726532, 0.025027915835380554, 0.01141343917697668, -0.01413123682141304, 0.010544276796281338, 0.0344419926404953, -0.0025057941675186157, 0.045341815799474716, -0.03266480937600136, 0.03825592249631882, -0.03546029329299927, -0.02004835195839405, -0.0024903002195060253, -0.04628413915634155, -0.022649502381682396, 0.03952992707490921, -0.010907597839832306, 0.040231361985206604, 0.0704447478055954, -0.0021965603809803724, 0.02523244544863701, -0.018951687961816788, -0.020659025758504868, 0.02037498913705349, 0.03158298879861832, -0.0038023905362933874, -0.046482112258672714, 0.06205063685774803, 0.025817690417170525, 0.012910459190607071, -0.017761213704943657, -0.023866092786192894, -0.03402996435761452, 6.300984001613476e-33, 0.008156119845807552, 0.0013656305382028222, -0.0361856110394001, 0.013623942621052265, 0.010396911762654781, 0.005788580980151892, 0.04467368125915527, 0.010195201262831688, -0.054060906171798706, 0.025894325226545334, 0.002474387176334858, -0.002539202570915222, -0.0008652902324683964, 0.06063157320022583, 0.0361303947865963, -0.021062666550278664, -0.03023000992834568, 0.026436686515808105, 0.06284646689891815, -0.023562807589769363, 0.017538229003548622, -0.003191068535670638, 0.020511670038104057, 0.011501218192279339, -0.0005946788005530834, -0.0005994879174977541, -0.010916647501289845, 0.010595493949949741, -0.0002656708820722997, 0.03240419924259186, -0.007878151722252369, 0.0014916002983227372, -0.0028334571979939938, -0.032721806317567825, 0.000984754879027605, 0.012028365395963192, 0.005805581342428923, -0.006624027621001005, 0.025021733716130257, 0.006700767204165459, 0.043021369725465775, -0.030854256823658943, 0.0019133180612698197, 0.009008328430354595, 0.011172528378665447, -0.024730714038014412, -0.004580397624522448, 0.061697572469711304, -0.021297309547662735, 0.03339609131217003, 0.00129099958576262, 0.022940179333090782, -0.006034025456756353, 0.010837350971996784, 0.025544188916683197, 0.005933862645179033, -0.051177263259887695, 0.008638845756649971, -0.07572711259126663, -0.0009798924438655376, -0.03863833099603653, -0.032736096531152725, -0.005525152664631605, 0.03129752725362778, -0.03981424495577812, -0.009694631211459637, -0.04708545655012131, -0.014364016242325306, -0.0005392626626417041, 0.021792946383357048, -0.00446914229542017, -0.02642202004790306, -0.0208891611546278, 0.022638114169239998, 0.007416300009936094, -0.01970573142170906, 0.007746416609734297, 0.030978668481111526, 0.0006200183415785432, 0.04075612127780914, -0.0019078050972893834, 0.0005996142863295972, -0.002510401187464595, -0.02095981501042843, 0.04037359356880188, -0.020115666091442108, -0.02424526773393154, 0.012662464752793312, -0.02140745334327221, -0.018489213660359383, 0.012964374385774136, 0.0243994127959013, -0.011593681760132313, -0.013500663451850414, 0.005632517859339714, -1.2451166320204266e-8, -0.0014045701827853918, -0.016590986400842667, 0.002998179290443659, 0.034708619117736816, 0.04970943182706833, 0.05523053556680679, -0.037540502846241, -0.01214439794421196, -0.025735408067703247, 0.02287265658378601, 0.04476850852370262, -0.01988859847187996, 0.015244249254465103, -0.023951536044478416, -0.01860286481678486, -0.031117865815758705, -0.03355325758457184, 0.0049683935940265656, 0.0365164577960968, -0.025484194979071617, -0.007290821522474289, 0.020348187536001205, -0.016425402835011482, -0.01217880193144083, 0.0103549063205719, 0.018028568476438522, 0.0373774953186512, -0.04030171409249306, -0.04072564095258713, 0.001687900978140533, 0.007235256023705006, -0.02546084299683571, -0.04613633081316948, -0.039417121559381485, 0.007307815831154585, -0.02251320891082287, -0.04799053072929382, -0.0070337518118321896, -0.006762220058590174, 0.008573547936975956, -0.007479563821107149, -0.0077751451171934605, -0.005358932539820671, -0.02795562334358692, 0.02105889283120632, -0.007010437082499266, -0.0004715140094049275, 0.02814304828643799, -0.005856064148247242, -0.008114499971270561, 0.04918366298079491, 0.018375283107161522, 0.02681666985154152, 0.006337310653179884, 0.03277774900197983, 0.02031688019633293, 0.01736535131931305, -0.06307267397642136, -0.01975172944366932, 0.006848109886050224, 0.05612712353467941, 0.01642361655831337, -0.0038724264595657587, -0.018581319600343704 ]
php-vs-python-generating-a-hmac
https://markhneedham.com/blog/2017/08/02/php-vs-python-generating-a-hmac
false
2017-08-11 16:01:50
Serverless: AWS HTTP Gateway - 502 Bad Gateway
[ "aws-lambda", "serverless", "http-gateway" ]
[ "Software Development" ]
In my continued work with Serverless and AWS Lambda I ran into a problem when trying to call a https://serverless.com/framework/docs/providers/aws/events/apigateway/[HTTP gateway]. My project looked like this: _serverless.yaml_ [source,text] ---- service: http-gateway frameworkVersion: ">=1.2.0 <2.0.0" provider: name: aws runtime: python3.6 timeout: 180 functions: no-op: name: NoOp handler: handler.noop events: - http: POST noOp ---- _handler.py_ [source,python] ---- def noop(event, context): return "hello" ---- Let's deploy to AWS: [source,bash] ---- $ serverless deploy Serverless: Packaging service... Serverless: Excluding development dependencies... Serverless: Uploading CloudFormation file to S3... Serverless: Uploading artifacts... Serverless: Uploading service .zip file to S3 (179 B)... Serverless: Validating template... Serverless: Updating Stack... Serverless: Checking Stack update progress... .............. Serverless: Stack update finished... Service Information service: http-gateway stage: dev region: us-east-1 api keys: None endpoints: POST - https://29nb5rmmd0.execute-api.us-east-1.amazonaws.com/dev/noOp functions: no-op: http-gateway-dev-no-op ---- And now we'll try and call it using cURL: [source,bash] ---- $ curl -X POST https://29nb5rmmd0.execute-api.us-east-1.amazonaws.com/dev/noOp {"message": "Internal server error"} ---- That didn't work so well, what do the logs have to say? [source,bash] ---- $ serverless logs --function no-op START RequestId: 64ab69b0-7d8f-11e7-9db5-13b228cd4cb6 Version: $LATEST END RequestId: 64ab69b0-7d8f-11e7-9db5-13b228cd4cb6 REPORT RequestId: 64ab69b0-7d8f-11e7-9db5-13b228cd4cb6 Duration: 0.27 ms Billed Duration: 100 ms Memory Size: 1024 MB Max Memory Used: 21 MB ---- So the function is completely fine. It turns out I'm not very good at reading the manual and should have been returning https://medium.com/@jconning/tutorial-aws-lambda-with-api-gateway-36a8513ec8e3[a map instead of a string]: ____ API Gateway expects to see a json map with keys "`body`", "`headers`", and "`statusCode`". ____ Let's update our handler function and re-deploy. [source,python] ---- def noop(event, context): return { "body": "hello", "headers": {}, "statusCode": 200 } ---- Now we're ready to try the endpoint again: [source,bash] ---- $ curl -X POST https://29nb5rmmd0.execute-api.us-east-1.amazonaws.com/dev/noOp hello ---- Much better!
Learn how to get up and running with a simple Python Serverless function that works with an AWS HTTP gateway.
null
[ 0.0010761977173388004, -0.03141624853014946, -0.017752742394804955, -0.016705330461263657, 0.05333411321043968, 0.042080849409103394, 0.01176298875361681, 0.025317203253507614, -0.025145333260297775, -0.003822841914370656, -0.02503880113363266, -0.0026809319388121367, -0.05290067568421364, 0.02060067467391491, 0.013048974797129631, 0.05459059774875641, 0.07588393241167068, -0.017536597326397896, 0.018860355019569397, 0.016156692057847977, 0.02297811768949032, 0.06011991202831268, -0.00522690499201417, 0.0279884971678257, 0.008326085284352303, 0.01287733856588602, 0.003403260838240385, -0.008739404380321503, -0.06020466983318329, -0.022871611639857292, 0.05219811573624611, 0.00043664840632118285, -0.0014208275824785233, -0.03689853101968765, 0.024957507848739624, -0.007344861980527639, 0.003788985311985016, 0.03478867560625076, -0.000005440821041702293, 0.03782067447900772, -0.053042735904455185, 0.015541047789156437, -0.026400873437523842, 0.007814287208020687, -0.03182366490364075, 0.01484178751707077, -0.021552525460720062, 0.006514750886708498, 0.0023839068599045277, -0.015155022032558918, -0.0935426577925682, 0.015077888034284115, -0.03245314210653305, -0.02847890555858612, 0.02791021764278412, 0.023378470912575722, 0.004798643756657839, -0.09659454226493835, 0.026402166113257408, -0.038116153329610825, -0.011503783985972404, 0.010682755149900913, 0.0015684734098613262, 0.025270482525229454, 0.03322642296552658, -0.030948961153626442, -0.024102462455630302, 0.06337548047304153, -0.03217776492238045, -0.011986492201685905, 0.023479321971535683, 0.014125920832157135, -0.016697265207767487, -0.002582211047410965, 0.008564865216612816, -0.05250885710120201, -0.02029425837099552, 0.07194644957780838, 0.01877785287797451, 0.06815148144960403, 0.002128899097442627, -0.019821060821413994, 0.015514792874455452, 0.00813253317028284, 0.009573029354214668, 0.0015194901498034596, -0.046760402619838715, 0.018035762012004852, -0.011203179135918617, 0.043048664927482605, 0.09451393038034439, -0.04455934092402458, 0.031215142458677292, 0.020554546266794205, 0.027649452909827232, 0.025947757065296173, -0.015445542521774769, 0.020027950406074524, 0.010337438434362411, -0.01245902944356203, -0.044374577701091766, 0.010356633923947811, 0.012096412479877472, -0.011153975501656532, -0.03319713473320007, -0.018013719469308853, -0.019872115924954414, -0.03436761349439621, -0.009962093085050583, -0.005785832181572914, -0.02329045720398426, 0.00848689116537571, -0.03494584187865257, -0.007625587284564972, -0.08152522146701813, 0.07336816936731339, 0.006100373342633247, -0.051080480217933655, 0.016457464545965195, 0.007177977357059717, 0.056940630078315735, 0.014564160257577896, -0.0342860147356987, 0.06532447785139084, 0.016527775675058365, 0.026469402015209198, -0.016590546816587448, 0.052217014133930206, -0.007267063483595848, -0.05219387635588646, -0.028257738798856735, 0.061144087463617325, 0.01304538268595934, 0.02127971313893795, -0.01796954870223999, 0.009536461904644966, -0.023095296695828438, -0.00260560167953372, 0.06258856505155563, 0.004367696586996317, -0.02118603140115738, -0.0009344248101115227, 0.019497497007250786, 0.009446365758776665, 0.06566610932350159, 0.02043226733803749, 0.029349373653531075, -0.06396771222352982, -0.046265970915555954, 0.018207361921668053, 0.011745504103600979, 0.0328022837638855, 0.041152335703372955, -0.046512749046087265, 0.015234317630529404, 0.07849369943141937, 0.05660124123096466, 0.011254885233938694, -0.030823977664113045, -0.02244744449853897, 0.04505276679992676, 0.04676312953233719, 0.004610882606357336, 0.02205454558134079, 0.016297798603773117, -0.025257453322410583, 0.0007237931713461876, 0.031637124717235565, 0.015238475985825062, -0.008094430901110172, -0.05323576554656029, -0.057558491826057434, 0.05655987560749054, -0.021021785214543343, 0.005911511369049549, -0.0019917513709515333, 0.09326530247926712, 0.013402052223682404, 0.029803406447172165, 0.021612977609038353, -0.07102564722299576, 0.03080258145928383, 0.006348748691380024, 0.017190318554639816, 0.052308324724435806, 0.005260309670120478, 0.08382955938577652, 0.024547219276428223, 0.02213132008910179, 0.037291958928108215, -0.06289993971586227, -0.09759363532066345, -0.02571473829448223, 0.01573980040848255, 0.038545217365026474, -0.02295774407684803, -0.011220837011933327, 0.10260485112667084, 0.021059637889266014, 0.030474480241537094, 0.01037665270268917, -0.012947998009622097, -0.0037739817053079605, -0.05506407842040062, -0.07882168889045715, 0.04823148250579834, 0.015902776271104813, -0.021051643416285515, -0.020730730146169662, 0.018833154812455177, -0.04666617512702942, 0.012088345363736153, 0.011870726943016052, -0.036607563495635986, 0.0617377869784832, 0.05468825623393059, 0.04509784281253815, -0.06880328804254532, 0.05753553286194801, -0.019386835396289825, 0.06049356237053871, -0.0002539592969696969, 0.009030817076563835, -0.03347514197230339, 0.01548304408788681, 0.09695427119731903, 0.06938131898641586, 0.004466162528842688, -0.08078813552856445, 0.043332163244485855, 0.025434356182813644, -0.04962677136063576, -0.013999683782458305, -0.04297265782952309, -0.03330066800117493, 0.02823800966143608, 0.026013262569904327, -0.04287203773856163, -0.022685464471578598, -0.027621140703558922, 0.012230271473526955, 0.05636592581868172, -0.03181798756122589, 0.050646524876356125, 0.02344656176865101, -0.033664897084236145, -0.010885188356041908, -0.048959095031023026, -0.020855940878391266, -0.005122025962918997, 0.0049489582888782024, -0.012207476422190666, 0.03336454927921295, -0.037590570747852325, -0.0393679104745388, -0.011291604489088058, -0.05738937854766846, 0.036019619554281235, 0.026458295062184334, 0.04966967552900314, -0.03326084092259407, 0.047891050577163696, -0.04983863979578018, 0.005289676133543253, 0.007872546091675758, -0.025282545015215874, -0.04394444823265076, -0.005661385133862495, 0.019864585250616074, -0.002290010917931795, 0.02589426375925541, 0.006474741268903017, 0.017703119665384293, -0.018191345036029816, 0.01569398306310177, -0.04244574159383774, 0.022696074098348618, -0.032754357904195786, -0.023432612419128418, -0.059925395995378494, 0.009384211152791977, 0.04549523815512657, -0.043177083134651184, -0.030620519071817398, -0.00021660937636625022, -0.038290999829769135, 0.024878308176994324, -0.09521929919719696, -0.025076759979128838, -0.0393691211938858, 0.04546764865517616, 0.011460713110864162, 0.011132970452308655, 0.010912963189184666, 0.058229390531778336, 0.009585801512002945, -0.029570991173386574, 0.01329038105905056, 0.03522052988409996, 0.023680921643972397, 0.01084384135901928, 0.01652134582400322, 0.005009528715163469, -0.02177744358778, -0.023671766743063927, -0.014618982560932636, 0.009491288103163242, -0.06208841875195503, -0.24859018623828888, 0.04665684327483177, 0.016302740201354027, -0.03028631955385208, 0.011219576932489872, 0.0038199040573090315, 0.007378484588116407, -0.028933534398674965, -0.00946144387125969, 0.020622117444872856, -0.007402691058814526, -0.015042372979223728, 0.028187762945890427, 0.015066627413034439, -0.027653858065605164, 0.024063579738140106, 0.0067130327224731445, -0.05820117145776749, 0.03675202280282974, -0.012600533664226532, -0.039081379771232605, -0.03057948872447014, 0.059478871524333954, 0.025419237092137337, 0.047153521329164505, 0.011475060135126114, -0.043646104633808136, 0.07738203555345535, -0.04314745217561722, -0.03761710226535797, 0.03461611643433571, -0.04788665100932121, -0.029788153246045113, -0.007347095292061567, -0.01788836345076561, -0.023237112909555435, 0.04677655175328255, 0.02046642079949379, 0.021003806963562965, 0.0034686534199863672, -0.04503212124109268, -0.07714740931987762, 0.015467486344277859, -0.021907437592744827, 0.0843157023191452, -0.016097094863653183, -0.055114585906267166, -0.039421744644641876, -0.05104604363441467, 0.07978583127260208, -0.04142267629504204, -0.044419556856155396, -0.049319908022880554, 0.030626589432358742, 0.0006404611631296575, -0.011953955516219139, -0.056943245232105255, -0.008015310391783714, -0.022784367203712463, -0.02183266542851925, 0.00673266313970089, -0.01715877465903759, -0.021744757890701294, -0.06914021074771881, -0.024263443425297737, -0.03831916302442551, -0.033286578953266144, -0.007424607407301664, 0.0525570809841156, 0.04138917848467827, 0.0012611750280484557, 0.015814313665032387, -0.033396363258361816, -0.101601243019104, 0.008397910743951797, -0.07253124564886093, -0.021297205239534378, -0.020266635343432426, -0.014475896954536438, 0.04711741954088211, -0.04845298081636429, -0.050303488969802856, -0.0012662316439673305, -0.009406592696905136, 0.017558053135871887, 0.019381720572710037, -0.00651971623301506, -0.033248189836740494, -0.031794920563697815, -0.016645733267068863, 0.0459885410964489, -0.007091038394719362, -0.0276047196239233, -0.01691519469022751, -0.01167702954262495, 0.023966344073414803, 0.029026435688138008, 0.02560868300497532, -0.01719209924340248, 0.02308366633951664, 0.034799739718437195, -0.03026585467159748, -0.0009049521177075803, -0.04750806465744972, 0.03543958067893982, 0.03671393170952797, -0.04101837798953056, -0.003715512342751026, 0.04719514027237892, 0.010268770158290863, -0.011811019852757454, -0.005063578952103853, 0.0024932692758738995, -0.06661996245384216, -0.03362677991390228, 0.020383639261126518, 0.001019112067297101, 0.025109408423304558, 0.02072736620903015, -0.0221498254686594, -0.05772337689995766, 0.03828015550971031, 0.04621988534927368, -0.004906937479972839, -0.022756317630410194, -0.0372554287314415, -0.0046996804885566235, 0.02423817850649357, 0.011629692278802395, -0.01575150154531002, -0.005888798274099827, 0.0322880893945694, 0.012592227198183537, 0.002555877435952425, 0.005947067867964506, -0.02404535375535488, -0.01864207349717617, -0.04294006526470184, 0.018818121403455734, 0.0177614688873291, -0.022224074229598045, 0.00598909379914403, -0.033391453325748444, 0.05279306322336197, 0.060523804277181625, 0.030646225437521935, 0.016062170267105103, -0.009572021663188934, -0.0003636296605691314, -0.007094145752489567, 0.017158737406134605, -0.05292440578341484, 0.0164346881210804, -0.045596104115247726, -0.02642103098332882, -0.002332756295800209, 0.05934510380029678, -0.011678559705615044, -0.030061006546020508, -0.04125481843948364, -0.013357328251004219, -0.07042957842350006, -0.015748795121908188, -0.022223277017474174, -0.007444791495800018, 0.022068988531827927, 0.02659624069929123, 0.02078334055840969, 0.008901680819690228, -0.03264055401086807, 0.0032785970252007246, 0.01067168265581131, -0.013711686246097088, 0.03537964075803757, -0.014479252509772778, 0.03924495354294777, 0.008029923774302006, 0.01891964115202427, 0.01580505445599556, -0.0012975216377526522, 0.010359736159443855, 0.003911865875124931, 0.02979629673063755, 0.01808745414018631, 0.026385340839624405, 0.032658446580171585, -0.007205749396234751, 0.02260742150247097, -0.026576973497867584, -0.007943343371152878, -0.029398081824183464, -0.004214210901409388, -0.015155929140746593, 0.007541860453784466, -0.007555668707937002, -0.07188418507575989, 0.030423277989029884, 0.029358677566051483, -0.022852709516882896, -0.0013017785968258977, -0.028130341321229935, 0.02059633657336235, -0.0360630601644516, 0.028000598773360252, 0.08434214442968369, -0.06283187866210938, 0.023066481575369835, 0.0056533063761889935, 0.03418780490756035, 0.009357697330415249, 0.038715608417987823, -0.054906222969293594, -0.04378580302000046, -0.0026066203135997057, 0.022421900182962418, -0.0270139928907156, -0.05235156789422035, 0.025434238836169243, 0.004411177709698677, -0.00998050719499588, 0.016522737219929695, 0.03047582507133484, -0.009139285422861576, -0.032898202538490295, -0.056098856031894684, 0.035971857607364655, -0.02274233289062977, -0.038607075810432434, 0.02933073602616787, -0.00888146087527275, -0.00432591512799263, -0.06003262475132942, -0.013870440423488617, 0.002185828983783722, 0.001840229146182537, -0.014451645314693451, -0.0631571039557457, 0.0017324014334008098, -0.017827734351158142, 0.07790395617485046, -0.021732009947299957, -0.001924750511534512, -0.029546089470386505, -0.012030969373881817, -0.03549305722117424, -0.004006439819931984, -0.0021952774841338396, 0.00821873638778925, 0.03473144769668579, 0.05028209462761879, -0.03418741002678871, 0.03016475960612297, -0.010284141637384892, -0.006341517902910709, 0.06245182454586029, -0.04645784944295883, -0.03280530497431755, 0.0037135984748601913, -0.07410494238138199, 0.013835139572620392, 0.014800243079662323, -0.0020241953898221254, -0.09205001592636108, 0.06574986129999161, 0.03671305254101753, -0.008485275320708752, 0.06732918322086334, -0.023231428116559982, 0.0016065315576270223, -0.012809544801712036, -0.02012576162815094, -0.07707192748785019, -0.021534034982323647, 0.027323849499225616, -0.013040130957961082, -0.03131035342812538, -0.0012010429054498672, -0.005581294652074575, 0.037089258432388306, -0.0498032383620739, -0.024740643799304962, 0.05953493341803551, -0.014524325728416443, -0.005110251251608133, 0.04097837954759598, -0.05810015648603439, 0.03510676324367523, 0.04118014872074127, -0.04729615896940231, 0.020184015855193138, -0.0052051846869289875, 0.04323335364460945, 0.021844716742634773, 0.0077407159842550755, -0.03866884484887123, -0.05811058729887009, 0.071726955473423, 0.008890321478247643, -0.011950473301112652, 0.04860469326376915, -0.02373378351330757, 0.025095436722040176, 0.004187119659036398, 0.01206838060170412, -0.007689214777201414, 0.002217816887423396, -0.0017893450567498803, -0.04301420599222183, 0.04176490381360054, 0.018330521881580353, -0.008961109444499016, -0.05830153450369835, 0.053179748356342316, 0.0026154860388487577, -0.043581992387771606, -0.05610834062099457, 0.012089701369404793, -0.008643553592264652, -0.013796787708997726, -0.02835003286600113, -0.0156101044267416, -0.03265823796391487, 0.04608893394470215, 0.016593582928180695, 0.007695660926401615, 0.0683910995721817, -0.00032061670208349824, -0.00601429445669055, 0.021109510213136673, 0.05460283160209656, 0.04159153625369072, -0.022404173389077187, 0.012354987673461437, 0.039093200117349625, -0.0023690739180892706, -0.028325553983449936, -0.010953112505376339, -0.017580730840563774, -0.03595796972513199, -0.028318405151367188, 0.02202480100095272, 0.07465152442455292, 0.002788566518574953, 0.04234179109334946, -0.018212556838989258, -0.005236092954874039, -0.018709169700741768, 0.038108691573143005, 0.04857824370265007, 0.027380160987377167, 0.028841480612754822, 0.047567397356033325, 0.05485169589519501, -0.04111022129654884, -0.0182120930403471, -0.033863671123981476, -0.03275376185774803, 0.010286141186952591, -0.004116847179830074, -0.006289790850132704, 0.042926449328660965, 0.013986404985189438, 0.05490463227033615, 0.0004657329700421542, -0.004234572406858206, 0.011218314990401268, 0.0482405386865139, 0.006050508469343185, 0.01059631071984768, -0.04190940409898758, -0.03600861877202988, -0.020200354978442192, -0.03016781620681286, -0.022324660792946815, -0.03381796553730965, -0.00912631954997778, 0.06268995255231857, -0.0023293744307011366, -0.020208094269037247, -0.001710222801193595, -0.016321634873747826, -0.04150945320725441, -0.024698389694094658, -0.06373308598995209, -0.015581588260829449, -0.05238525941967964, -0.0040606181137263775, 0.001924030715599656, -0.006569135934114456, -0.027060354128479958, -0.020529678091406822, -0.004619242623448372, -0.001529641798697412, 0.020733090117573738, -0.022711141034960747, -0.05070871487259865, 0.05094704404473305, -0.03259282559156418, 0.027021588757634163, 0.02731795236468315, 0.03242099657654762, 0.020850390195846558, 0.003618272952735424, -0.02847679704427719, 0.030438903719186783, 0.03828607499599457, 0.010422923602163792, 0.029782768338918686, -0.060761064291000366, 0.0365239717066288, 0.03988594934344292, 0.04915359616279602, -0.06832778453826904, 0.0047825900837779045, 0.0869179517030716, 0.025733105838298798, 0.05671653896570206, -0.02261228673160076, -0.031403277069330215, -0.046698253601789474, -0.03180941566824913, -0.009231130592525005, 0.004335661884397268, 0.048093732446432114, 0.01643436774611473, 0.06808590143918991, 0.06359972804784775, -0.021690702065825462, -0.0042775836773216724, 0.02331961877644062, -0.05399583280086517, 0.006405501160770655, -0.057688549160957336, -0.060602817684412, -0.015291460789740086, -0.052298352122306824, -0.03964231535792351, 0.018109846860170364, -0.007338990457355976, -0.026622839272022247, -0.0035507611464709044, 0.016222313046455383, -0.04659060388803482, 0.01965501345694065, -0.03901320695877075, 0.04132167249917984, -0.009274604730308056, -0.031563352793455124, -0.01052424218505621, 0.011176347732543945, 0.03012222982943058, -0.03662020340561867, 0.04061382636427879, 0.004139915108680725, -0.017964571714401245, -0.048984114080667496, 0.010783771052956581, 0.07291428744792938, 0.0017558494582772255, 0.025379104539752007 ]
[ -0.07937722653150558, -0.0588802695274353, -0.05883130803704262, -0.0457913763821125, 0.06033497303724289, -0.08073747903108597, -0.029459141194820404, 0.021213499829173088, 0.005417725536972284, 0.013804946094751358, 0.05251729115843773, -0.04487204551696777, 0.012308224104344845, -0.04007000848650932, 0.06479357182979584, 0.03049135021865368, -0.0035298122093081474, -0.07070039212703705, -0.07392196357250214, 0.010373027063906193, 0.02797773852944374, -0.017499467357993126, -0.0635790228843689, -0.023548418655991554, 0.011536764912307262, 0.042599208652973175, 0.025740930810570717, -0.01027723215520382, -0.04550286382436752, -0.1724538952112198, -0.004666221793740988, -0.04897820204496384, -0.016353189945220947, -0.0021729343570768833, 0.04301249235868454, 0.001752564450725913, 0.06107811629772186, -0.012911108322441578, 0.0012769866734743118, 0.011318677105009556, 0.06308359652757645, 0.024257823824882507, -0.051399294286966324, -0.005257371813058853, 0.019433539360761642, -0.04524568095803261, 0.015915529802441597, -0.024537861347198486, -0.00017987808678299189, -0.005869338288903236, -0.03015505149960518, -0.009293665178120136, -0.014158063568174839, -0.06569590419530869, 0.025501368567347527, 0.026708228513598442, 0.043844010680913925, 0.07500027120113373, 0.015263998880982399, -0.0005068095633760095, 0.02615448087453842, -0.029173612594604492, -0.15121465921401978, 0.07805121690034866, 0.05175621435046196, 0.06403494626283646, -0.046522416174411774, -0.04844072461128235, -0.004451966844499111, 0.04706353321671486, -0.010842468589544296, -0.007787865586578846, -0.044045768678188324, 0.07953408360481262, 0.017237603664398193, 0.018904710188508034, 0.002028747694566846, 0.03547154366970062, 0.08294811844825745, -0.04750063642859459, -0.026867033913731575, -0.017155911773443222, -0.02918493002653122, 0.019615983590483665, -0.03146122023463249, -0.009083491750061512, -0.02326449751853943, 0.08865563571453094, 0.027892347425222397, 0.033461183309555054, 0.0036848271265625954, -0.014712902717292309, 0.04531333968043327, 0.01436671707779169, -0.07788952440023422, 0.0063581522554159164, -0.02296851947903633, -0.023381130769848824, -0.08128471672534943, 0.3747839033603668, -0.03403361141681671, 0.009030734188854694, 0.019624751061201096, 0.014317822642624378, 0.04377717897295952, -0.010720319114625454, -0.02634964883327484, -0.03500635549426079, 0.015426118858158588, -0.02040153741836548, 0.006671506445854902, -0.015384935773909092, 0.04805538058280945, -0.057162944227457047, -0.026271117851138115, 0.036597419530153275, 0.01620715670287609, 0.022349409759044647, -0.035709500312805176, 0.04178721457719803, -0.008464690297842026, -0.02022409252822399, 0.08488623052835464, 0.027978941798210144, -0.0018292475724592805, 0.04177520051598549, 0.06963670998811722, 0.09455282986164093, 0.044004783034324646, 0.039083871990442276, 0.017791355028748512, -0.0700005441904068, -0.044020023196935654, -0.02857215888798237, 0.013502722606062889, -0.00019136648916173726, 0.020482685416936874, -0.02957713045179844, -0.012932635843753815, 0.01920579932630062, -0.021984703838825226, -0.06039397045969963, -0.010021398775279522, -0.016873938962817192, -0.019559714943170547, 0.1253715306520462, 0.028605101630091667, 0.005482769571244717, -0.05743004381656647, -0.029569953680038452, -0.015638966113328934, 0.049285639077425, 0.03399765491485596, -0.025810733437538147, 0.011131352744996548, -0.008977481164038181, 0.03586026653647423, 0.030890055000782013, -0.02264242246747017, -0.028528887778520584, -0.0371144600212574, -0.05836121365427971, -0.01321815513074398, 0.0558764673769474, 0.004522018600255251, -0.14333517849445343, -0.011445719748735428, 0.026432784274220467, -0.0006581068737432361, -0.022655285894870758, -0.012898284010589123, 0.005633191671222448, -0.008874760009348392, -0.05327686294913292, 0.04230089113116264, -0.021331971511244774, 0.01038707047700882, -0.009601645171642303, 0.03999229148030281, 0.03098858892917633, -0.04834857955574989, -0.00743634020909667, -0.009875399991869926, 0.012737955898046494, -0.02631860226392746, -0.08144642412662506, -0.05921507999300957, 0.033299241214990616, -0.011298082768917084, -0.06404109299182892, -0.06295101344585419, -0.024053776636719704, -0.044899869710206985, 0.04246078059077263, 0.02172214724123478, 0.015652991831302643, 0.0065617430955171585, -0.02407933585345745, 0.003557875519618392, -0.020183037966489792, 0.05421905964612961, 0.05346471816301346, 0.020157229155302048, 0.019450046122074127, -0.05181645601987839, 0.0008017079089768231, 0.021711016073822975, -0.020374227315187454, 0.032468900084495544, 0.050865449011325836, -0.02818845584988594, 0.0076538147404789925, -0.013708051294088364, 0.038455985486507416, -0.0143177704885602, -0.009212518110871315, -0.007697083055973053, 0.021591683849692345, -0.023479990661144257, 0.02321334183216095, -0.011246605776250362, -0.007392197381705046, -0.05637018382549286, -0.336883008480072, -0.019213862717151642, -0.010717200115323067, -0.02640511840581894, 0.020688023418188095, -0.07448595762252808, 0.027937179431319237, 0.023143472149968147, -0.014455617405474186, 0.050984274595975876, 0.1306968778371811, -0.0233014989644289, 0.03644004836678505, -0.03875637426972389, -0.020980048924684525, 0.015295508317649364, -0.037520695477724075, -0.03060237318277359, -0.028784701600670815, 0.04453401267528534, 0.008539116010069847, -0.01906692050397396, 0.026189010590314865, -0.061654433608055115, 0.005782654974609613, -0.021739110350608826, 0.10478052496910095, 0.007931840606033802, 0.10872699320316315, -0.06098001077771187, 0.021675370633602142, 0.012224865145981312, -0.003114306600764394, -0.09018182754516602, -0.016075385734438896, 0.0034164581447839737, 0.02152767963707447, 0.002169637707993388, 0.05200396105647087, 0.010224562138319016, -0.05216265097260475, 0.0315655842423439, -0.04504935443401337, -0.04607190191745758, 0.02295359969139099, -0.013717681169509888, -0.027589432895183563, -0.03727656602859497, -0.041103869676589966, 0.006848449353128672, -0.003772234544157982, 0.01705300249159336, -0.008383842185139656, 0.03244056552648544, 0.03083699196577072, 0.019854310899972916, -0.031071193516254425, -0.043969977647066116, -0.003755644429475069, 0.00679682195186615, 0.017669543623924255, 0.0694286972284317, 0.03126199170947075, -0.03482075408101082, 0.043447982519865036, -0.01943243108689785, -0.0030775454360991716, 0.029827555641531944, 0.050420306622982025, -0.07013203948736191, -0.03537064045667648, 0.1287880688905716, 0.0025873961858451366, 0.06423244625329971, -0.0211501382291317, 0.015700412914156914, -0.01807207055389881, -0.020344622433185577, 0.002864185953512788, 0.00008348059054696932, 0.028745757415890694, -0.016577502712607384, 0.04255320131778717, -0.03854135051369667, 0.002352956449612975, 0.09246480464935303, -0.06127417832612991, 0.006576173007488251, 0.08521884679794312, -0.020254405215382576, 0.014561794698238373, -0.03438121825456619, -0.03689851239323616, -0.06272439658641815, 0.09046739339828491, -0.006943707820028067, -0.24188223481178284, 0.011943990364670753, 0.05328905209898949, 0.01580832526087761, -0.019063735380768776, 0.05423339083790779, 0.029403554275631905, -0.023412099108099937, -0.04540972411632538, 0.028757907450199127, -0.010687995702028275, 0.014197216369211674, -0.020262811332941055, 0.02754746749997139, 0.04543976113200188, 0.028576591983437538, 0.0334957093000412, 0.004892663098871708, -0.002888650866225362, -0.01254307385534048, 0.007508318871259689, -0.01046181283891201, 0.14382468163967133, 0.023160208016633987, 0.020230595022439957, 0.03901364654302597, -0.009726653806865215, 0.056430548429489136, 0.052449896931648254, 0.024133536964654922, 0.007655154448002577, -0.0017366401152685285, 0.04062214121222496, -0.011342952959239483, 0.021223563700914383, -0.07032638043165207, 0.02111799828708172, -0.019081640988588333, 0.013107233680784702, -0.06578247249126434, -0.04527490958571434, -0.0008055617217905819, 0.039740681648254395, 0.02943345345556736, 0.0558728352189064, -0.034131430089473724, 0.0016935898456722498, -0.0712326169013977, -0.01723412424325943, 0.0070743318647146225, -0.03300036862492561, -0.023419512435793877, 0.03571214899420738, 0.04315603896975517, 0.03537773713469505, 0.09829940646886826, 0.03415975719690323, -0.052300188690423965, -0.0510479100048542, -0.008673032745718956, 0.015342440456151962, -0.046650972217321396, 0.1144757941365242, 0.005114421248435974, 0.030911585316061974 ]
[ 0.03728945553302765, 0.044992540031671524, -0.03515000268816948, 0.015038890764117241, 0.006374508608132601, -0.020495513454079628, -0.03516160696744919, -0.008035446517169476, 0.05139163136482239, 0.0002907894959207624, 0.008542459458112717, 0.01633566804230213, 0.031769365072250366, -0.04526330530643463, 0.04037320613861084, -0.014199234545230865, -0.008024821989238262, -0.0366535447537899, 0.011390822008252144, -0.04976046085357666, -0.057955555617809296, 0.011347685009241104, -0.0036526755429804325, 0.03629361093044281, -0.03137732297182083, 0.011537542566657066, -0.11063230782747269, -0.00618333974853158, 0.034734148532152176, -0.12396999448537827, 0.022458454594016075, -0.024564141407608986, -0.005867524538189173, 0.000851846591103822, 0.03025069460272789, 0.01262960210442543, 0.04810585826635361, -0.011112134903669357, -0.027244577184319496, 0.021662257611751556, 0.05944988876581192, -0.010588753037154675, 0.024998273700475693, -0.04128953069448471, -0.00397948082536459, 0.026070035994052887, -0.00402345834299922, -0.05303569510579109, -0.007496431935578585, -0.033961791545152664, 0.019541915506124496, 0.007553630042821169, -0.00674120569601655, -0.008462395519018173, -0.008277399465441704, 0.01583481766283512, -0.035785723477602005, 0.004733828827738762, 0.0005503476713784039, -0.04619288817048073, 0.005409580189734697, -0.0031065272632986307, 0.012990144081413746, -0.0026760087348520756, -0.029804985970258713, -0.02529887668788433, 0.005806546192616224, -0.02217712625861168, 0.016423601657152176, 0.040791913866996765, -0.04898252710700035, -0.008135088719427586, -0.06272389739751816, 0.026939943432807922, -0.006788097787648439, -0.01452622376382351, 0.04748811572790146, -0.017437279224395752, 0.005010895896703005, 0.0489041842520237, -0.027117161080241203, 0.011459801346063614, -0.019892578944563866, 0.0911126509308815, -0.037990618497133255, -0.04233020171523094, 0.011077719740569592, 0.00561942346394062, 0.007568947970867157, -0.005954208318144083, -0.04247324913740158, 0.010603142902255058, 0.008035272359848022, 0.006094290874898434, -0.08318524062633514, 0.00983054842799902, -0.035071805119514465, -0.02879834547638893, -0.0735289603471756, 0.7595710158348083, -0.009953085333108902, -0.005343813449144363, 0.04871654510498047, 0.03977631777524948, 0.016902415081858635, 0.05131795257329941, -0.022805290296673775, 0.010113436728715897, 0.0008590041543357074, -0.027103498578071594, 0.004798552952706814, -0.01629101298749447, 0.0264391228556633, 0.0389055497944355, -0.003928245045244694, 0.010903597809374332, 0.002092482754960656, -0.02202780172228813, -0.014104804024100304, 0.04993685334920883, 0.0663665235042572, -0.018570156767964363, 0.022448135539889336, 0.0015657370677217841, -0.01877368986606598, -0.11340580880641937, 0.03762761503458023, -7.396005478546408e-33, 0.05886554718017578, -0.015059168450534344, 0.010850331746041775, -0.0025722344871610403, 0.11169320344924927, 0.02165805734694004, 0.015520581975579262, 0.044113483279943466, 0.006809520535171032, -0.025414008647203445, -0.0244179405272007, -0.004802647512406111, 0.028674641624093056, -0.03858662396669388, 0.04938677325844765, -0.0011764155933633447, 0.00941480603069067, 0.04901230335235596, 0.0256061814725399, -0.014427579939365387, 0.013480927795171738, 0.024325337260961533, -0.02336592599749565, 0.008011898025870323, 0.034292448312044144, -0.025519683957099915, 0.009942443110048771, -0.044040728360414505, -0.02752033621072769, -0.04277748614549637, -0.02470129355788231, 0.011615791358053684, -0.031440991908311844, -0.07340146601200104, 0.030705859884619713, -0.07232716679573059, -0.037603408098220825, 0.02991786226630211, -0.03487005829811096, 0.03315935283899307, -0.0504474975168705, -0.008075140416622162, -0.026339756324887276, -0.030654864385724068, -0.0883893370628357, 0.0009142792550846934, -0.025088747963309288, 0.03290039300918579, 0.06867733597755432, 0.03509213775396347, 0.006724818609654903, 0.0048360093496739864, 0.022051846608519554, -0.015397019684314728, 0.020309071987867355, 0.02614436112344265, -0.003003800055012107, 0.00031893435516394675, -0.026765916496515274, -0.056027404963970184, -0.03720380365848541, -0.04640953242778778, -0.045950599014759064, 0.03213721886277199, 0.05686047673225403, 0.008806667290627956, -0.016845235601067543, 0.05681600049138069, -0.002418034477159381, -0.03594916686415672, -0.022846341133117676, 0.0077779763378202915, -0.020586635917425156, 0.025769758969545364, 0.05570722743868828, -0.046906422823667526, 0.02274712547659874, -0.007754037156701088, 0.020815547555685043, 0.08550464361906052, 0.02170386165380478, 0.014253279194235802, 0.006697553675621748, 0.0053381528705358505, -0.02070418745279312, 0.008571019396185875, 0.05241326242685318, 0.004718656651675701, 0.01103139203041792, -0.00423334538936615, 0.020287809893488884, -0.010561158880591393, 0.0038263611495494843, -0.064010389149189, -0.01574295572936535, 8.160189213228193e-33, -0.04550264775753021, -0.00973211694508791, -0.02467808872461319, 0.020507195964455605, 0.004574352875351906, -0.00934498943388462, 0.06389002501964569, 0.03221449255943298, -0.0018900067079812288, 0.07191682606935501, 0.0030967346392571926, 0.023248273879289627, -0.007473093923181295, -0.017470240592956543, 0.04796901345252991, -0.043094806373119354, -0.04049396142363548, -0.04288902133703232, 0.05323859304189682, 0.02287353202700615, 0.003080439753830433, 0.011710625141859055, -0.049975860863924026, -0.003558308584615588, 0.011524506844580173, 0.058316778391599655, 0.024711856618523598, 0.02888493426144123, -0.01754164695739746, -0.044413696974515915, -0.005470616742968559, 0.003458739258348942, 0.012915472500026226, -0.03914162889122963, -0.04304566606879234, 0.021414248272776604, -0.00492062047123909, 0.04049701988697052, -0.009367598220705986, -0.06715503334999084, 0.05997990444302559, 0.009437286294996738, -0.007742184214293957, 0.0275005754083395, 0.00468816701322794, 0.04220568761229515, -0.011871454305946827, 0.001839268021285534, 0.011276530101895332, -0.00037713098572567105, -0.060131851583719254, 0.032645534723997116, 0.01764429546892643, 0.07984451204538345, 0.010203691199421883, -0.029716769233345985, 0.004032747820019722, 0.03158215060830116, -0.003013651119545102, -0.011175651103258133, -0.032900627702474594, -0.0069953263737261295, -0.015653638169169426, 0.05277036130428314, -0.02198317088186741, -0.021414900198578835, -0.014923889189958572, 0.00893302634358406, 0.03201283887028694, -0.023848915472626686, 0.013872100040316582, 0.008713637478649616, -0.02327713556587696, -0.020535634830594063, 0.06498772650957108, 0.03708849102258682, -0.010951233096420765, -0.021886518225073814, -0.02124924026429653, -0.019339337944984436, 0.004914368502795696, 0.025645896792411804, -0.03348837047815323, -0.04777935519814491, 0.04918632283806801, 0.00034549811971373856, -0.017044303938746452, 0.026029309257864952, 0.025162125006318092, 0.05510193109512329, -0.030781179666519165, -0.020281856879591942, -0.0206974558532238, 0.02960493601858616, -0.013207673095166683, -1.2531082838052043e-8, 0.0019111701985821128, 0.0004277266561985016, 0.002937210723757744, 0.018658960238099098, 0.012633956968784332, 0.06556033343076706, -0.01861388050019741, 0.0028345652390271425, -0.018945084884762764, 0.014327128417789936, -0.011972147040069103, -0.04170887917280197, -0.02879464440047741, 0.02684532105922699, 0.020313922315835953, 0.04638481140136719, -0.002335616620257497, -0.010090830735862255, 0.02323673665523529, 0.005838778801262379, -0.026649555191397667, 0.02489420771598816, -0.021856626495718956, -0.0002645474160090089, -0.004200435243546963, -0.010062597692012787, 0.0402221605181694, -0.07745309174060822, -0.013459444046020508, -0.028806764632463455, -0.03913280367851257, -0.001194508746266365, -0.0375162772834301, 0.03184489160776138, -0.038531430065631866, -0.03369854763150215, 0.002371759619563818, 0.011458724737167358, -0.0446743480861187, -0.009266064502298832, 0.008400021120905876, 0.038949865847826004, -0.02673238515853882, -0.03912298381328583, 0.014043016359210014, 0.005564501974731684, -0.024401802569627762, 0.06460633128881454, 0.004892108496278524, -0.008065884001553059, 0.024662647396326065, -0.039973437786102295, 0.013317085802555084, -0.0184397641569376, 0.0068776533007621765, 0.012476143427193165, 0.06353551149368286, -0.05020518600940704, -0.029905010014772415, 0.02661714144051075, 0.038416538387537, 0.005255849100649357, 0.014147786423563957, -0.03776577487587929 ]
serverless-aws-http-gateway-502-bad-gateway
https://markhneedham.com/blog/2017/08/11/serverless-aws-http-gateway-502-bad-gateway
false
2017-08-06 19:03:30
Serverless: Python - virtualenv - { "errorMessage": "Unable to import module 'handler'" }
[ "python", "serverless" ]
[ "Software Development" ]
I've been using the https://serverless.com/[Serverless] library to deploy and run some Python functions on AWS lambda recently and was initially confused about how to handle my dependencies. I tend to create a new https://virtualenv.pypa.io/en/stable/[virtualenv] for each of my project so let's get that setup first: == Prerequisites [source,bash] ---- $ npm install serverless ---- [source,bash] ---- $ virtualenv -p python3 a $ . a/bin/activate ---- Now let's create our Serverless project. I'm going to install the http://docs.python-requests.org/en/master/[requests] library so that I can use it in my function. == My Serverless project _serverless.yaml_ [source,yaml] ---- service: python-starter-template frameworkVersion: ">=1.2.0 <2.0.0" provider: name: aws runtime: python3.6 timeout: 180 functions: starter-function: name: Starter handler: handler.starter ---- _handler.py_ [source,python] ---- import requests def starter(event, context): print("event:", event, "context:", context) r = requests.get("http://www.google.com") print(r.status_code) ---- [source,bash] ---- $ pip install requests ---- Ok, we're now ready to try out the function. A nice feature of Serverless is that it lets us try out functions locally before we deploy them onto one of the Cloud providers: [source,bash] ---- $ ./node_modules/serverless/bin/serverless invoke local --function starter-function event: {} context: <__main__.FakeLambdaContext object at 0x10bea9a20> 200 null ---- So far so good. Next we'll deploy our function to AWS. I'm assuming you've already got your credentials setup but if not you can follow the https://serverless.com/framework/docs/providers/aws/guide/credentials/[tutorial on the Serverless page]. [source,bash] ---- $ ./node_modules/serverless/bin/serverless deploy Serverless: Packaging service... Serverless: Excluding development dependencies... Serverless: Uploading CloudFormation file to S3... Serverless: Uploading artifacts... Serverless: Uploading service .zip file to S3 (26.48 MB)... Serverless: Validating template... Serverless: Updating Stack... Serverless: Checking Stack update progress... ......... Serverless: Stack update finished... Service Information service: python-starter-template stage: dev region: us-east-1 api keys: None endpoints: None functions: starter-function: python-starter-template-dev-starter-function ---- Now let's invoke our function: [source,bash] ---- $ ./node_modules/serverless/bin/serverless invoke --function starter-function { "errorMessage": "Unable to import module 'handler'" } Error -------------------------------------------------- Invoked function failed For debugging logs, run again after setting the "SLS_DEBUG=*" environment variable. Get Support -------------------------------------------- Docs: docs.serverless.com Bugs: github.com/serverless/serverless/issues Forums: forum.serverless.com Chat: gitter.im/serverless/serverless Your Environment Information ----------------------------- OS: darwin Node Version: 6.7.0 Serverless Version: 1.19.0 ---- Hmmm, that's odd - I wonder why it can't import our handler module? We can call the logs function to check. The logs are usually a few seconds behind so we'll have to be a bit patient if we don't see them immediately. [source,bash] ---- $ ./node_modules/serverless/bin/serverless logs --function starter-function START RequestId: 735efa84-7ad0-11e7-a4ef-d5baf0b46552 Version: $LATEST Unable to import module 'handler': No module named 'requests' END RequestId: 735efa84-7ad0-11e7-a4ef-d5baf0b46552 REPORT RequestId: 735efa84-7ad0-11e7-a4ef-d5baf0b46552 Duration: 0.42 ms Billed Duration: 100 ms Memory Size: 1024 MB Max Memory Used: 22 MB ---- That explains it - the requests module wasn't imported. If we look in +++<cite>+++.serverless/python-starter-template.zip</p> we can see that the requests module is hidden inside the +++<cite>+++a+++</cite>+++ directory and the instance of Python that runs on Lambda doesn't know where to find it. </p> I'm sure there are other ways of solving this but the easiest one I found is a Serverless plugin called https://www.npmjs.com/package/serverless-python-requirements[serverless-python-requirements]. So how does this plugin work? ____ A Serverless v1.x plugin to automatically bundle dependencies from requirements.txt and make them available in your PYTHONPATH. ____ Doesn't sound too tricky - we can use +++<cite>+++pip freeze+++</cite>+++ to get our list of requirements and write them into a file. Let's rework +++<cite>+++serverless.yaml+++</cite>+++ to make use of the plugin: == My Serverless project using serverless-python-requirements ~~~bash $ npm install --save serverless-python-requirements ~~~ ~~~bash $ pip freeze > requirements.txt $ cat requirements.txt certifi==2017.7.27.1 chardet==3.0.4 idna==2.5 requests==2.18.3 urllib3==1.22 ~~~ _serverless.yaml_ ~~~yaml service: python-starter-template frameworkVersion: ">=1.2.0 <2.0.0" provider: name: aws runtime: python3.6 timeout: 180 plugins: - serverless-python-requirements functions: starter-function: name: Starter handler: handler.starter package: exclude: - a/** # virtualenv ~~~ We have two changes from before: * We added the +++<cite>+++serverless-python-requirements+++</cite>+++ plugin * We excluded the +++<cite>+++a+++</cite>+++ directory since we don't need it Let's deploy again and run the function: ~~~bash $ ./node_modules/serverless/bin/serverless deploy Serverless: Parsing Python requirements.txt Serverless: Installing required Python packages for runtime python3.6\... Serverless: Linking required Python packages\... Serverless: Packaging service\... Serverless: Excluding development dependencies\... Serverless: Unlinking required Python packages\... Serverless: Uploading CloudFormation file to S3\... Serverless: Uploading artifacts\... Serverless: Uploading service .zip file to S3 (14.39 MB)\... Serverless: Validating template\... Serverless: Updating Stack\... Serverless: Checking Stack update progress\... \...\...\... Serverless: Stack update finished\... Service Information service: python-starter-template stage: dev region: us-east-1 api keys: None endpoints: None functions: starter-function: python-starter-template-dev-starter-function ~~~ ~~~bash $ ./node_modules/serverless/bin/serverless invoke --function starter-function null ~~~ Looks good. Let's check the logs: ~~~bash $ ./node_modules/serverless/bin/serverless logs --function starter-function START RequestId: 61e8eda7-7ad4-11e7-8914-03b8a7793a24 Version: $LATEST event: {} context: <__main__.LambdaContext object at 0x7f568b105f28> 200 END RequestId: 61e8eda7-7ad4-11e7-8914-03b8a7793a24 REPORT RequestId: 61e8eda7-7ad4-11e7-8914-03b8a7793a24 Duration: 55.55 ms Billed Duration: 100 ms Memory Size: 1024 MB Max Memory Used: 29 M ~~~ All good here as well so we're done! +++</cite>+++
null
null
[ 0.028088271617889404, -0.032170314341783524, -0.004239357076585293, -0.0006057096179574728, 0.07451081275939941, 0.03312079980969429, -0.0008391656447201967, 0.015953727066516876, -0.026443246752023697, 0.018414471298456192, -0.03404557704925537, 0.020813165232539177, -0.06356991082429886, 0.020167823880910873, -0.01271473802626133, 0.05628969520330429, 0.09674379229545593, -0.004798884969204664, 0.007241102401167154, 0.014730227179825306, 0.026074081659317017, 0.06558125466108322, 0.005331742111593485, 0.041110578924417496, -0.00934351421892643, 0.014553813263773918, 0.02048703283071518, -0.0124761201441288, -0.05892627313733101, -0.03199407085776329, 0.03775559365749359, 0.0008362213848158717, -0.014612289145588875, -0.03241381794214249, 0.023427557200193405, -0.0009822293650358915, 0.003923260606825352, 0.029889000579714775, -0.013611913658678532, 0.036040399223566055, -0.046557389199733734, 0.00883211474865675, -0.023445740342140198, -0.0019652738701552153, -0.04677549749612808, 0.0023589518386870623, -0.011757200583815575, 0.006762757431715727, -0.0027239792980253696, -0.028791161254048347, -0.07686103135347366, 0.023460324853658676, -0.022326497361063957, -0.023389974609017372, 0.0047404151409864426, 0.01354472991079092, 0.0046121105551719666, -0.09105992317199707, 0.030740298330783844, -0.03765999525785446, -0.0066646309569478035, 0.01114038098603487, 0.0106956847012043, 0.052098702639341354, 0.03113321214914322, -0.020235227420926094, -0.030394216999411583, 0.05310780927538872, -0.03769323602318764, -0.018196791410446167, 0.016418617218732834, 0.00781233748421073, -0.05149504542350769, 0.0038040122017264366, -0.005208414047956467, -0.057361435145139694, -0.034260451793670654, 0.05921689048409462, 0.024997660890221596, 0.060688722878694534, 0.007156897336244583, -0.014575140550732613, 0.024603221565485, -0.0011117332614958286, 0.011070463806390762, -0.008788689970970154, -0.04709969460964203, 0.006589007098227739, -0.041785307228565216, 0.04545864090323448, 0.06672102212905884, -0.043061792850494385, 0.023962590843439102, 0.022194113582372665, 0.022074319422245026, 0.01852816715836525, 0.008226942270994186, 0.006150882225483656, 0.0337531641125679, -0.01812579296529293, -0.02399849332869053, -0.004010876175016165, -0.01738428883254528, -0.03279029577970505, -0.05678229406476021, -0.012601595371961594, -0.020145157352089882, -0.03667879104614258, -0.022267941385507584, -0.01620996557176113, -0.006506005767732859, -0.008578336797654629, -0.04448230192065239, 0.012092744000256062, -0.0824982300400734, 0.0604248009622097, -0.002905387431383133, -0.06093882396817207, -0.015746617689728737, 0.01155391987413168, 0.06906671822071075, 0.025098370388150215, -0.02573462761938572, 0.0702643021941185, 0.017605863511562347, 0.03391556069254875, -0.02604149840772152, 0.08106387406587601, 0.011493767611682415, -0.05732922628521919, -0.031874533742666245, 0.05356760323047638, 0.015574919991195202, 0.007820413447916508, -0.0004676113894674927, -0.005358573514968157, -0.02234380692243576, 0.013839085586369038, 0.07185336202383041, 0.020442714914679527, -0.019506487995386124, -0.0068432665430009365, 0.01505955308675766, 0.0019769377540796995, 0.04678484424948692, 0.032492078840732574, 0.021459821611642838, -0.05430135130882263, -0.029729915782809258, 0.009128250181674957, 0.03298375383019447, 0.0319829024374485, 0.057848699390888214, -0.03717338293790817, 0.018747182562947273, 0.0801817998290062, 0.06829743087291718, 0.017430216073989868, -0.041886936873197556, -0.009991243481636047, 0.028259698301553726, 0.035373225808143616, -0.011229423806071281, 0.057931214570999146, 0.001315977657213807, -0.0364125519990921, -0.012635071761906147, 0.04438357055187225, -0.00038357084849849343, -0.016736412420868874, -0.047522224485874176, -0.05497542396187782, 0.05347898602485657, -0.01511593908071518, 0.0008618112187832594, 0.007768814917653799, 0.10293278098106384, 0.00011478692613309249, 0.02322332002222538, 0.0014920984394848347, -0.08106619864702225, 0.061043914407491684, 0.002621453022584319, 0.010616288520395756, 0.04241412132978439, 0.0025535589084029198, 0.07978393882513046, 0.018522853031754494, 0.018651437014341354, 0.029255812987685204, -0.07352468371391296, -0.09801953285932541, -0.028153028339147568, 0.00541317742317915, 0.036902423948049545, -0.026423081755638123, -0.0382995679974556, 0.09321004897356033, 0.009200075641274452, 0.02775576524436474, 0.017831696197390556, -0.00399066973477602, -0.009920305572450161, -0.04323028773069382, -0.08463182300329208, 0.03670576959848404, 0.009479937143623829, -0.023311777040362358, -0.027750451117753983, 0.017506051808595657, -0.0315517857670784, 0.01216061506420374, 0.004998881835490465, -0.026353422552347183, 0.06065944582223892, 0.04470817372202873, 0.019268231466412544, -0.06026836857199669, 0.05635548755526543, -0.038802601397037506, 0.05514633283019066, -0.0031275725923478603, 0.004636441357433796, -0.029104692861437798, 0.013892553746700287, 0.09207167476415634, 0.069266676902771, -0.006854231469333172, -0.055130429565906525, 0.038428448140621185, 0.021953759714961052, -0.03222440183162689, -0.01276394072920084, -0.04912547022104263, -0.03090205416083336, 0.02105981484055519, 0.0292762853205204, -0.028398914262652397, -0.009419654496014118, -0.02227702923119068, 0.0007719821878708899, 0.06008664518594742, -0.028726615011692047, 0.05576387047767639, 0.024850934743881226, -0.038705646991729736, -0.007045128382742405, -0.04214712232351303, -0.03868922218680382, -0.017673984169960022, 0.003020102623850107, -0.021183714270591736, 0.045927926898002625, -0.03281427547335625, -0.039329659193754196, -0.014420891180634499, -0.054411061108112335, 0.04750367999076843, 0.03196948394179344, 0.05877617746591568, -0.04306546598672867, 0.046808212995529175, -0.049906834959983826, 0.031090330332517624, -0.005559217184782028, -0.0188513845205307, -0.03835282474756241, -0.022279629483819008, 0.020832214504480362, 0.018222497776150703, 0.03024963289499283, -0.0015727924183011055, 0.023071076720952988, -0.00267789582721889, 0.015863627195358276, -0.0298239067196846, 0.028912028297781944, -0.021227562800049782, -0.029037969186902046, -0.07199105620384216, 0.010400335304439068, 0.04528685659170151, -0.03699098527431488, -0.027518654242157936, -0.010613206773996353, -0.0350426584482193, 0.023007525131106377, -0.1030561551451683, -0.03632085397839546, -0.051190055906772614, 0.04310550540685654, 0.029562586918473244, 0.023853115737438202, 0.009958745911717415, 0.05094946175813675, 0.02472117729485035, -0.01175223384052515, 0.0065288539044559, 0.019729863852262497, 0.030040862038731575, -0.004784335847944021, 0.004048832226544619, 0.0012843214208260179, -0.009427751414477825, -0.0075301132164895535, -0.024271151050925255, 0.01827201433479786, -0.06560231000185013, -0.2587175965309143, 0.043618496507406235, 0.018036482855677605, -0.03843565657734871, 0.01166495494544506, -0.011923749931156635, -0.008290030993521214, -0.03899421542882919, -0.014870516955852509, 0.025488710030913353, -0.03433794900774956, -0.011134346015751362, 0.018904373049736023, 0.028844786807894707, -0.008137501776218414, 0.01916639320552349, 0.017938919365406036, -0.04964183270931244, 0.02496563270688057, 0.008496036753058434, -0.04722097888588905, -0.026320472359657288, 0.04601449891924858, 0.015511042438447475, 0.03882830962538719, 0.029994485899806023, -0.05344364047050476, 0.08041765540838242, -0.060911428183317184, -0.03900621831417084, 0.016827315092086792, -0.032443199306726456, -0.02187103033065796, 0.01162201538681984, -0.008259209804236889, -0.00670982152223587, 0.01087062805891037, -0.00035077842767350376, 0.013849394395947456, 0.004858739674091339, -0.04130535572767258, -0.0761202871799469, 0.016665691509842873, -0.010043387301266193, 0.07360833138227463, -0.027877595275640488, -0.08328764140605927, -0.04566863179206848, -0.05312034860253334, 0.08459195494651794, -0.03671811893582344, -0.03355887532234192, -0.02963646687567234, 0.033038731664419174, -0.017633328214287758, -0.008087439462542534, -0.042151086032390594, 0.018372884020209312, -0.018047790974378586, -0.03603925183415413, -0.0015532787656411529, -0.0352119542658329, -0.022493261843919754, -0.054813310503959656, 0.005658882204443216, -0.01728927157819271, -0.030501829460263252, -0.024363037198781967, 0.048388443887233734, 0.034456055611371994, 0.0006578544271178544, -0.019728170707821846, -0.04179725795984268, -0.1021375060081482, 0.020948613062500954, -0.0858956053853035, -0.01099465973675251, 0.00394033407792449, 0.018118152394890785, 0.04393947497010231, -0.04047803208231926, -0.05304275080561638, -0.0012316476786509156, -0.0076858047395944595, 0.008776172064244747, 0.012251660227775574, 0.009947310201823711, -0.02277793176472187, -0.015255274251103401, -0.031044919043779373, 0.05815631523728371, -0.011382275260984898, -0.015188463032245636, 0.003332714783027768, 0.006490794476121664, 0.029472654685378075, 0.02772562764585018, 0.011235268786549568, 0.0027962317690253258, 0.0172558706253767, 0.016572995111346245, -0.05217644199728966, -0.018136750906705856, -0.03376593440771103, 0.025297513231635094, 0.008090498857200146, -0.05107475444674492, -0.009197944775223732, 0.047242894768714905, 0.01119274366647005, -0.021688273176550865, -0.0158547330647707, 0.0162234865128994, -0.0801982581615448, -0.04549815133213997, -0.002824022900313139, 0.028960583731532097, -0.00020965232397429645, 0.021460838615894318, -0.011016208678483963, -0.0716840997338295, 0.027103930711746216, 0.039564598351716995, -0.007193076889961958, -0.04175509512424469, -0.02662358619272709, 0.0037604786921292543, 0.001797728706151247, 0.03027227148413658, -0.019990235567092896, 0.0004430493281688541, 0.0371517650783062, 0.022822488099336624, -0.019197523593902588, 0.005825338419526815, -0.015863467007875443, -0.024758726358413696, -0.047942835837602615, 0.02103392779827118, 0.022998137399554253, -0.02215825952589512, 0.0004695981915574521, -0.029484566301107407, 0.040573157370090485, 0.05774221941828728, 0.042408980429172516, 0.02702242322266102, 0.0004753161047119647, -0.01065133698284626, -0.0002360333746764809, 0.02207602933049202, -0.03719351440668106, 0.006644001230597496, -0.03923803195357323, -0.04338403046131134, -0.01602640375494957, 0.05587879568338394, -0.02973262593150139, -0.01670675165951252, -0.020210418850183487, -0.017932401970028877, -0.07242900878190994, -0.004558340180665255, -0.017652571201324463, -0.011837064288556576, 0.034705694764852524, 0.02647458016872406, 0.015446938574314117, 0.00695677800104022, -0.023004254326224327, 0.017473129555583, 0.032402314245700836, -0.02159687876701355, 0.023927809670567513, -0.011227618902921677, 0.011745965108275414, 0.018511563539505005, 0.025842370465397835, 0.014318807050585747, -0.008082067593932152, 0.033292029052972794, 0.0164390467107296, 0.025006989017128944, -0.0030899185221642256, 0.029742073267698288, 0.021409204229712486, -0.0047650509513914585, 0.001829158398322761, -0.031497854739427567, -0.0060335067100822926, -0.021963782608509064, 0.010307964868843555, 0.006662787403911352, 0.019532732665538788, 0.0016166646964848042, -0.08014305680990219, 0.023890262469649315, 0.03845246881246567, -0.02557922899723053, -0.02094408869743347, -0.03779670596122742, 0.013673374429345131, -0.03799477964639664, 0.0372232124209404, 0.08504550158977509, -0.05162690579891205, 0.010651379823684692, -0.008651883341372013, 0.03623492643237114, -0.004684260115027428, 0.040862929075956345, -0.05200493708252907, -0.01779300533235073, 0.0006262310198508203, 0.005870284512639046, 0.0007515830220654607, -0.04219565913081169, 0.02840305119752884, 0.011757630854845047, -0.009800855070352554, -0.0030768103897571564, 0.020084189251065254, 0.0007129959994927049, -0.028202643617987633, -0.05008038878440857, 0.029190531000494957, -0.01513948105275631, -0.013434491120278835, 0.022944694384932518, -0.03012334182858467, 0.014615227468311787, -0.053115926682949066, 0.00039367470890283585, 0.006379320751875639, -0.0076213921420276165, -0.0007574346382170916, -0.05461890995502472, 0.01281710248440504, -0.016677165403962135, 0.048926811665296555, -0.007704454939812422, 0.02867378108203411, -0.03579995781183243, -0.019312184303998947, -0.04457240179181099, -0.014612331055104733, -0.004019050858914852, 0.0012672969605773687, 0.02369227074086666, 0.06132819876074791, -0.023310333490371704, 0.029790323227643967, 0.015192904509603977, -0.013893255032598972, 0.05704105645418167, -0.036994174122810364, -0.04854687675833702, -0.010942448861896992, -0.05365118756890297, 0.01915949583053589, 0.027967872098088264, -0.008200051262974739, -0.08381875604391098, 0.04532962292432785, 0.01619059219956398, 0.014951040968298912, 0.0560009628534317, -0.02022456005215645, -0.005345053505152464, -0.020925527438521385, -0.014682070352137089, -0.06886667013168335, -0.0038381710182875395, 0.019668858498334885, 0.009226955473423004, -0.017332173883914948, 0.0009869479108601809, -0.01513965055346489, 0.052950579673051834, -0.052741821855306625, -0.01348782330751419, 0.0688975602388382, -0.014747463166713715, -0.010041962377727032, 0.026215922087430954, -0.06458678841590881, 0.038657207041978836, 0.053966373205184937, -0.024549433961510658, 0.03226384520530701, -0.015461204573512077, 0.03937334567308426, 0.008119859732687473, 0.00785253569483757, -0.018093647435307503, -0.034913934767246246, 0.08371677249670029, 0.02508947066962719, -0.013112438842654228, 0.03873162716627121, -0.018534930422902107, 0.03619741275906563, 0.02599889412522316, 0.004324132110923529, -0.01237506978213787, 0.018518861383199692, 0.003808974288403988, -0.040206365287303925, 0.038165200501680374, 0.019514326006174088, -0.00569812161847949, -0.06360650807619095, 0.05125442147254944, 0.012637916021049023, -0.0474415048956871, -0.06232611462473869, 0.02175389975309372, -0.035660210996866226, -0.0036729578860104084, -0.04695400595664978, -0.026697667315602303, -0.05023098737001419, 0.04841114580631256, 0.013370710425078869, -0.005178719758987427, 0.06585406512022018, -0.001509307767264545, 0.0029265095945447683, 0.03766486421227455, 0.05380791053175926, 0.05215108394622803, 0.029937906190752983, 0.009322482161223888, 0.046056780964136124, 0.005947872996330261, -0.04951230436563492, -0.013373827561736107, -0.01659134216606617, -0.029672279953956604, -0.0209659356623888, 0.029580947011709213, 0.05972767621278763, 0.02116330899298191, 0.050954945385456085, -0.01678149402141571, 0.013824433088302612, -0.021550914272665977, 0.032772619277238846, 0.034944403916597366, 0.036840543150901794, 0.04340052232146263, 0.053976304829120636, 0.03374837338924408, -0.04061761125922203, 0.00381895387545228, -0.05556515231728554, -0.041618604212999344, 0.027840830385684967, -0.0016459455946460366, -0.022704098373651505, 0.054449401795864105, 0.01637541502714157, 0.07064557075500488, 0.007584100589156151, -0.02084062062203884, 0.023226236924529076, 0.040860384702682495, 0.0034928512759506702, 0.0038813105784356594, -0.026228830218315125, -0.03227812051773071, -0.004344386048614979, -0.030040917918086052, -0.01929391920566559, -0.012997687794268131, -0.02669209986925125, 0.04471580311655998, -0.020651916041970253, -0.013108952902257442, 0.005564601626247168, -0.015982020646333694, -0.045761287212371826, -0.0245672594755888, -0.045282527804374695, -0.026572104543447495, -0.058357708156108856, -0.03718447685241699, -0.006874458864331245, -0.015894437208771706, -0.03652602806687355, -0.029723435640335083, 0.013058206997811794, -0.009117179550230503, 0.014765271916985512, -0.053009629249572754, -0.03636721521615982, 0.029826803132891655, -0.01574084348976612, 0.03500792756676674, 0.00987656507641077, 0.03256402909755707, -0.0031682997941970825, -0.01537973340600729, -0.029102351516485214, 0.03284990414977074, 0.025575926527380943, 0.015526289120316505, 0.031669747084379196, -0.06614483892917633, 0.042834535241127014, 0.03515269607305527, 0.04354119300842285, -0.07484620064496994, 0.02377820760011673, 0.07619396597146988, 0.031877435743808746, 0.0449918657541275, -0.009296247735619545, 0.006575117353349924, -0.040450695902109146, -0.036347195506095886, -0.000821306137368083, 0.02804545871913433, 0.038331590592861176, 0.008996020071208477, 0.08591385930776596, 0.04171500355005264, -0.0030583261977881193, -0.015665676444768906, 0.008172770030796528, -0.03483773395419121, 0.002905387431383133, -0.051279306411743164, -0.045566849410533905, -0.026294704526662827, -0.05074719339609146, -0.03651268407702446, 0.01980050466954708, -0.0451572947204113, -0.010888611897826195, -0.0013562836684286594, 0.016068633645772934, -0.03978613391518593, 0.03805393725633621, -0.020739253610372543, 0.018559511750936508, -0.0064630634151399136, -0.011082750745117664, -0.009764311835169792, 0.039517223834991455, 0.027422571554780006, -0.02689758688211441, 0.02151174657046795, -0.017871316522359848, -0.0475151501595974, -0.02988622710108757, 0.027564380317926407, 0.06752362102270126, 0.0027672238647937775, 0.056054603308439255 ]
[ -0.08031105250120163, -0.038389652967453, -0.0547170527279377, -0.05554024502635002, 0.07710646837949753, -0.054178908467292786, -0.022686012089252472, 0.008205103687942028, 0.0017473814077675343, 0.017121590673923492, 0.027419215068221092, -0.06388647109270096, 0.011625143699347973, -0.04812312498688698, 0.08833160996437073, 0.00460277171805501, 0.002694076858460903, -0.04883185774087906, -0.05921109765768051, 0.017918448895215988, 0.008922994136810303, -0.02350330352783203, -0.04702908173203468, -0.05013149976730347, -0.004294191021472216, 0.02538023516535759, 0.0464601144194603, -0.0043511162512004375, -0.004724713042378426, -0.1623350977897644, 0.020034747198224068, -0.04689182713627815, -0.005993788130581379, -0.013326440006494522, 0.021697018295526505, 0.013473990373313427, 0.05843091383576393, -0.019483782351017, 0.0019185857381671667, 0.03720394894480705, 0.061812810599803925, 0.018178973346948624, -0.05888630822300911, -0.01126753631979227, 0.025030791759490967, -0.024040162563323975, 0.0005884630372747779, -0.02583300694823265, -0.0005474184290505946, -0.0019257004605606198, -0.011318623088300228, -0.004929061979055405, -0.010335288941860199, -0.06807154417037964, 0.007843200117349625, 0.011888963170349598, 0.04143597185611725, 0.07143136113882065, 0.007374353241175413, 0.007603926584124565, 0.002295807935297489, -0.027419881895184517, -0.1392562836408615, 0.08635450154542923, 0.04660796374082565, 0.06805825978517532, -0.040418095886707306, -0.034332308918237686, 0.009141613729298115, 0.057164911180734634, -0.03632797673344612, -0.005405923817306757, -0.052800655364990234, 0.07711122930049896, -0.0011697575682774186, -0.01258012279868126, -0.01066586934030056, 0.03524180129170418, 0.07263783365488052, -0.051725178956985474, -0.03496930003166199, -0.018314369022846222, -0.019753340631723404, 0.015493428334593773, -0.03901151195168495, 0.0055297017097473145, -0.004108043387532234, 0.09093344211578369, 0.028814321383833885, 0.03970006853342056, 0.010174361988902092, -0.0197566170245409, 0.04987761750817299, 0.021185437217354774, -0.06995070725679398, 0.008300984278321266, -0.001261611469089985, -0.01554550975561142, -0.07238461822271347, 0.4169854521751404, -0.03753407672047615, -0.011089501902461052, 0.01307420339435339, 0.02778707444667816, 0.04392324388027191, -0.0009698732756078243, -0.031591664999723434, -0.03764650598168373, 0.029820024967193604, -0.0373786985874176, 0.01425620075315237, -0.001895519089885056, 0.04448137804865837, -0.08571700006723404, -0.014806150458753109, 0.03286614269018173, -0.017270807176828384, 0.04161813482642174, -0.015326734632253647, 0.02003558725118637, -0.0156451016664505, -0.024871574714779854, 0.07825285196304321, 0.032214920967817307, 0.02039644494652748, 0.01767389290034771, 0.046757135540246964, 0.05455031618475914, 0.027702337130904198, 0.046115756034851074, 0.014327473007142544, -0.05978647619485855, -0.04162760078907013, -0.018217938020825386, 0.0024183401837944984, 0.014000378549098969, 0.01336219348013401, -0.03646982088685036, 0.007711735088378191, 0.03899512439966202, 0.00010464278602739796, -0.04176897183060646, -0.003259764052927494, -0.021280353888869286, -0.02235497534275055, 0.08915063738822937, 0.02302199974656105, 0.0061792959459125996, -0.054037485271692276, -0.04236748442053795, -0.001422874047420919, 0.04024925455451012, 0.032310888171195984, -0.04761788994073868, 0.024972204118967056, 0.006429589353501797, 0.03805190697312355, -0.0022818432189524174, -0.04206458106637001, -0.030687585473060608, -0.050015076994895935, -0.05932726338505745, -0.023315049707889557, 0.037278998643159866, 0.010674574412405491, -0.13483914732933044, -0.018665259703993797, 0.02208985574543476, 0.02418532222509384, -0.023785602301359177, -0.007761271670460701, 0.016856832429766655, -0.005790489725768566, -0.0289843138307333, 0.050272386521101, -0.05153442174196243, -0.012725490145385265, 0.007980098016560078, 0.04237177595496178, 0.04390690103173256, -0.05181344598531723, 0.0064422357827425, -0.03646252676844597, -0.0008978238911367953, -0.05356094241142273, -0.08049608021974564, -0.05763101205229759, 0.011294405907392502, -0.02997160144150257, -0.0639638602733612, -0.061065830290317535, 0.0018486946355551481, -0.04191437363624573, 0.04264545813202858, 0.036762114614248276, 0.018719619140028954, 0.0029393741860985756, -0.006150484085083008, -0.001584638375788927, -0.003494408680126071, 0.04678899794816971, 0.04960706830024719, 0.0038794581778347492, 0.048225775361061096, -0.054712895303964615, 0.011218510568141937, 0.048832159489393234, -0.013177924789488316, 0.046015072613954544, 0.05603037774562836, -0.03407274931669235, 0.010938267223536968, 0.0019566311966627836, -0.0007643568678759038, -0.0312715545296669, -0.01915590837597847, -0.01147526502609253, 0.025932133197784424, 0.011621473357081413, 0.012283307500183582, -0.008235365152359009, -0.010316393338143826, -0.024313269183039665, -0.3570026457309723, -0.024688566103577614, -0.017062893137335777, -0.021153904497623444, 0.04248061776161194, -0.08580941706895828, 0.025610053911805153, -0.007337873801589012, -0.026115819811820984, 0.0190663430839777, 0.13129326701164246, -0.038631077855825424, 0.05046119913458824, -0.05746937543153763, -0.02305077388882637, 0.035441312938928604, -0.03249477967619896, -0.04111555218696594, -0.036388348788022995, 0.04197658970952034, 0.005054638721048832, -0.03859638795256615, 0.0050897919572889805, -0.041313450783491135, 0.0159046221524477, -0.01604485884308815, 0.10071364790201187, -0.007301165256649256, 0.10948323458433151, -0.05353304743766785, 0.023112284019589424, -0.0007995828054845333, 0.002094254130497575, -0.11224935948848724, -0.03532475233078003, -0.007643035613000393, 0.025137025862932205, 0.005239973310381174, 0.048635367304086685, -0.010281454771757126, -0.04142322391271591, 0.03776555135846138, -0.05776433274149895, -0.032936859875917435, -0.00804707407951355, -0.0068550207652151585, -0.023015640676021576, -0.020804600790143013, -0.04402979835867882, 0.04580621421337128, 0.0006197025068104267, 0.026462994515895844, -0.015420796349644661, 0.030024908483028412, 0.019274210557341576, -0.0041112652979791164, -0.049810685217380524, -0.04529118910431862, 0.004620024468749762, 0.014370830729603767, 0.028113899752497673, 0.045864444226026535, 0.01659264601767063, -0.05719895660877228, 0.02945280261337757, -0.01301778107881546, 0.013348428532481194, 0.024621862918138504, 0.07063882052898407, -0.049439992755651474, -0.031165147200226784, 0.10331614315509796, 0.008780254051089287, 0.05401049554347992, -0.018069569021463394, 0.0025945696979761124, -0.0334615632891655, 0.024080578237771988, 0.00931449607014656, -0.007849973626434803, 0.04065999761223793, -0.0380939356982708, 0.020930463448166847, -0.04766041785478592, 0.01399505976587534, 0.068575918674469, -0.04516100138425827, 0.0062738703563809395, 0.059881094843149185, 0.018911514431238174, 0.0020019703079015017, -0.01726415380835533, -0.013182010501623154, -0.032561615109443665, 0.0927087664604187, -0.0075013828463852406, -0.23906876146793365, 0.027502065524458885, 0.049343500286340714, 0.031407661736011505, -0.011843015439808369, 0.01815336011350155, 0.04920196533203125, -0.05746319517493248, -0.012681481428444386, 0.017848912626504898, 0.013049758970737457, 0.019694840535521507, 0.00641576386988163, 0.0017959916731342673, 0.042148999869823456, 0.011353599838912487, 0.06452828645706177, 0.002829858800396323, -0.03141374886035919, -0.019141314551234245, 0.01664859801530838, -0.02482115849852562, 0.1355953812599182, 0.0018432902870699763, 0.0322001613676548, 0.03747669607400894, -0.002999178133904934, 0.04183197394013405, 0.04619454964995384, 0.0367877371609211, 0.0169814620167017, 0.013614105992019176, 0.011187137104570866, -0.0169216375797987, 0.024482928216457367, -0.06626399606466293, -0.02065589651465416, 0.009803217835724354, 0.025667086243629456, -0.04143482819199562, -0.02907649800181389, 0.013555114157497883, -0.004124227445572615, 0.026791755110025406, 0.06486482173204422, -0.04118335619568825, 0.01802048645913601, -0.07624699920415878, -0.015917528420686722, 0.0029676947742700577, -0.031564146280288696, -0.018797798082232475, 0.029234753921628, 0.021794237196445465, 0.030947837978601456, 0.10057032108306885, 0.043990232050418854, -0.028486844152212143, -0.017034851014614105, 0.015300964936614037, 0.011451806873083115, -0.048392824828624725, 0.12917159497737885, 0.04587697237730026, 0.0052626593969762325 ]
[ 0.028133517131209373, 0.04851787909865379, -0.02448684349656105, -0.002830016892403364, 0.013657724484801292, -0.03407016769051552, -0.015601552091538906, 0.0024945945478975773, 0.009661965072154999, -0.010252037085592747, 0.015851644799113274, 0.021474989131093025, 0.044290196150541306, -0.022326486185193062, 0.04447886720299721, -0.03197990730404854, -0.005374831613153219, 0.0038594265934079885, 0.025599628686904907, -0.024258781224489212, -0.0495280921459198, 0.055876247584819794, 0.040695756673812866, 0.020244140177965164, -0.03463904187083244, -0.0013557398924604058, -0.12429738789796829, -0.0012454994721338153, 0.03603213652968407, -0.11944276839494705, 0.015350851230323315, -0.04121512547135353, 0.0001181323968921788, 0.015573997981846333, 0.031222054734826088, 0.020044922828674316, 0.016073498874902725, -0.027038417756557465, -0.03898759186267853, 0.03004124015569687, 0.03862043842673302, -0.0026881908997893333, -0.009019074961543083, -0.017897389829158783, -0.024569565430283546, 0.0435795858502388, -0.010309325531125069, -0.03271074965596199, 0.011035501025617123, -0.055318839848041534, 0.003101644106209278, 0.024004297330975533, -0.021290261298418045, 0.012459475547075272, -0.02132103405892849, 0.02457328699529171, -0.028200510889291763, 0.00022709854238200933, 0.017847411334514618, -0.015779325738549232, 0.007241141051054001, 0.018229806795716286, 0.009037948213517666, -0.01607287861406803, -0.01494232751429081, 0.0043212175369262695, 0.017424263060092926, -0.01459503173828125, 0.007499894592911005, 0.026888584718108177, -0.01000742893666029, 0.017560800537467003, -0.06926649063825607, 0.0052103628404438496, -0.023383047431707382, -0.02753451280295849, 0.008673165924847126, -0.0015961285680532455, 0.005560045130550861, 0.06784722954034805, -0.05429321900010109, -0.017190072685480118, -0.021463055163621902, 0.053413063287734985, -0.04036876931786537, -0.037539735436439514, 0.01766602322459221, -0.010273575782775879, 0.02575027383863926, -0.01276519987732172, -0.014564741402864456, 0.01699894480407238, -0.005680009722709656, 0.015910353511571884, -0.06498163938522339, 0.01590198464691639, 0.01782105676829815, -0.0359678715467453, -0.06762001663446426, 0.7824840545654297, -0.019013728946447372, -0.026194462552666664, 0.0328168049454689, -0.0008529097540304065, 0.021440504118800163, 0.0467311330139637, -0.005575731862336397, -0.004499399568885565, -0.027447769418358803, -0.04161124303936958, -0.0010079467901960015, -0.013154163956642151, 0.04664244130253792, 0.014022842980921268, -0.0023410727735608816, 0.01269787922501564, 0.029384978115558624, 0.00703315669670701, -0.005209599621593952, 0.023775525391101837, 0.066356360912323, -0.02527651935815811, 0.03796124458312988, 0.009024755097925663, -0.04472029581665993, -0.1494397222995758, 0.027617977932095528, -7.667286799513145e-33, 0.051323868334293365, -0.008643576875329018, 0.022664861753582954, -0.005920619238168001, 0.08775035291910172, 0.013641451485455036, 0.032906971871852875, 0.015768487006425858, -0.017650946974754333, -0.046561241149902344, -0.0025716121308505535, -0.001226525753736496, 0.027726231142878532, -0.0002714309957809746, 0.03612733632326126, -0.0020549341570585966, 0.022584233433008194, 0.060773346573114395, 0.03534027934074402, -0.003504652064293623, 0.014798685908317566, 0.03608398512005806, 0.012705896981060505, 0.023396022617816925, 0.03590414300560951, -0.02581644430756569, -0.015758438035845757, -0.019707193598151207, -0.02874189056456089, -0.04774424433708191, -0.042994219809770584, 0.01472685020416975, -0.025437841191887856, -0.08489198237657547, 0.025849483907222748, -0.05197007209062576, -0.022811025381088257, 0.003457150422036648, -0.053449615836143494, 0.007202455308288336, -0.009661505930125713, 0.0049033681862056255, -0.014207827858626842, -0.039420418441295624, -0.08940781652927399, 0.008493507280945778, 0.014912866055965424, 0.016014540567994118, 0.05493656545877457, 0.04804953187704086, 0.0172239001840353, -0.015618936158716679, -0.0023219934664666653, -0.02033812180161476, -0.019303232431411743, 0.021244272589683533, 0.012146911583840847, 0.006525949575006962, -0.02956620790064335, -0.06512483209371567, -0.01447389181703329, -0.047605231404304504, -0.02129642851650715, 0.02398642897605896, 0.02651059255003929, -0.024450425058603287, -0.010522956028580666, 0.038799773901700974, 0.015029171481728554, -0.01721131056547165, -0.03722698614001274, 0.010711517184972763, -0.04125111922621727, -0.014148157089948654, 0.06170441955327988, -0.025354696437716484, 0.004982687067240477, -0.0365021750330925, 0.010453890077769756, 0.06961363554000854, 0.032619427889585495, 0.0344306044280529, -0.00917801633477211, 0.005877493880689144, -0.01469904463738203, -0.0035449324641376734, 0.0491807647049427, 0.009767995215952396, 0.011822101660072803, -0.045031607151031494, 0.028994861990213394, -0.026565276086330414, 0.012144574895501137, -0.06818024814128876, -0.014978916384279728, 7.936700553830013e-33, -0.022342078387737274, -0.020393390208482742, -0.008627896197140217, 0.03662954270839691, 0.02044215425848961, -0.019250690937042236, 0.04399258270859718, 0.012597070075571537, -0.03403843939304352, 0.05544557422399521, -0.001413444522768259, -0.015881607308983803, -0.007327903527766466, 0.025233546271920204, 0.016499105840921402, 0.01456828135997057, -0.02777838706970215, -0.031909290701150894, 0.03859874606132507, 0.024508271366357803, -0.007456065621227026, 0.037873249500989914, -0.010535082779824734, 0.000706185819581151, 0.004126667510718107, 0.04770069196820259, 0.007098019123077393, 0.007712099235504866, -0.01977107860147953, -0.026845965534448624, -0.009548019617795944, 0.01397682074457407, -0.0048261843621730804, -0.03789391741156578, -0.025617185980081558, 0.02893805503845215, -0.00022508195252157748, 0.04955952614545822, 0.028459666296839714, -0.05780154466629028, 0.06725918501615524, 0.017666570842266083, 0.0005163275636732578, 0.015929093584418297, 0.0018611517734825611, 0.02554955892264843, 0.01434042863547802, 0.015324781648814678, -0.004090361762791872, 0.0017383485101163387, -0.04787979647517204, 0.04231203719973564, 0.004968864843249321, 0.02826783061027527, 0.01993408054113388, -0.04369189590215683, -0.022285345941781998, 0.06617812812328339, -0.02379854954779148, -0.003589932806789875, -0.01646161451935768, -0.010374928824603558, -0.016346098855137825, 0.027770966291427612, -0.036813054233789444, 0.006615803577005863, -0.035835567861795425, 0.010168877430260181, 0.04608933627605438, -0.03528355434536934, 0.0207907073199749, -0.019390959292650223, -0.011637414805591106, -0.01903090812265873, 0.03617524355649948, 0.031375762075185776, -0.011396831832826138, -0.02054363675415516, -0.009301682934165001, 0.01440296322107315, 0.006961432285606861, 0.021780269220471382, -0.05229051038622856, -0.03837750479578972, 0.03255487233400345, 0.010585387237370014, -0.04311029613018036, 0.01417346578091383, -0.00017720747564453632, 0.044556792825460434, -0.024902252480387688, -0.038003839552402496, 0.0006706953863613307, 0.05297496169805527, -0.015058206394314766, -1.2689476136529265e-8, 0.03016767092049122, 0.023980749770998955, 0.019798699766397476, 0.005600424949079752, 0.023918550461530685, 0.04778881371021271, -0.0297294519841671, -0.01404832024127245, -0.024593623355031013, 0.0071170697920024395, 0.0030777708161622286, -0.06389626860618591, -0.032841965556144714, 0.03002479299902916, 0.02049098163843155, 0.06771867722272873, -0.00292396848089993, 0.000715199566911906, 0.01209984254091978, -0.0017121104756370187, -0.0046598524786531925, 0.04294579476118088, -0.019755467772483826, 0.02353181131184101, 0.005615605041384697, 0.005702943075448275, 0.04717078432440758, -0.08612356334924698, -0.011695800349116325, -0.010050633922219276, 0.0015187523094937205, -0.014867554418742657, -0.07719123363494873, 0.01618761196732521, -0.03696899488568306, -0.02785099484026432, -0.023397939279675484, 0.0035217872355133295, -0.012268570251762867, -0.013210616074502468, -0.011111973784863949, 0.02321111410856247, -0.014318414963781834, -0.04446037486195564, 0.00092795753153041, 0.003784989006817341, -0.024517538025975227, 0.042563244700431824, 0.00607456685975194, -0.023136558011174202, 0.03057035431265831, -0.03420071676373482, -0.005781608633697033, 0.02205927111208439, 0.005332648288458586, 0.024093154817819595, 0.061404138803482056, -0.031346600502729416, -0.03621905669569969, 0.015543901361525059, 0.01702815480530262, -0.002044821623712778, -0.0003709952288772911, -0.01672115921974182 ]
serverless-python-virtualenv-errormessage-unable-import-module-handler
https://markhneedham.com/blog/2017/08/06/serverless-python-virtualenv-errormessage-unable-import-module-handler
false
2017-08-13 07:23:46
Neo4j: Cypher - Rounding of floating point numbers/BigDecimals
[ "neo4j", "cypher", "apoc" ]
[ "neo4j" ]
I was doing some data cleaning a few days ago and wanting to multiply a value by 1 million. My https://neo4j.com/developer/cypher-query-language/[Cypher] code to do this looked like this: [source,cypher] ---- with "8.37" as rawNumeric RETURN toFloat(rawNumeric) * 1000000 AS numeric ╒═════════════════╕ │"numeric" │ ╞═════════════════╡ │8369999.999999999│ └─────────────────┘ ---- Unfortunately that suffers from the classic rounding error when working with floating point numbers. I couldn't figure out a way to solve it using pure Cypher, but there tends to be an https://neo4j-contrib.github.io/neo4j-apoc-procedures/[APOC] function to solve every problem and https://neo4j-contrib.github.io/neo4j-apoc-procedures/index32.html#_handle_biginteger_and_bigdecimal[this was no exception]. I'm using Neo4j 3.2.3 so I downloaded the corresponding APOC jar and put it in a plugins directory: [source,bash] ---- $ ls -lh plugins/ total 3664 -rw-r--r--@ 1 markneedham staff 1.8M 9 Aug 09:14 apoc-3.2.0.4-all.jar ---- I'm using Docker so I needed to tell that where my plugins folder lives: [source,bash] ---- $ docker run -v $PWD/plugins:/plugins \ -p 7474:7474 \ -p 7687:7687 \ -e NEO4J_AUTH="none" \ neo4j:3.2.3 ---- Now we're reading to try out our new function: [source,cypher] ---- with "8.37" as rawNumeric RETURN apoc.number.exact.mul(rawNumeric,"1000000") AS apocConversion ╒════════════════╕ │"apocConversion"│ ╞════════════════╡ │"8370000.00" │ └────────────────┘ ---- That almost does what we want, but the result is a string rather than numeric value. It's not too difficult to fix though: [source,cypher] ---- with "8.37" as rawNumeric RETURN toFloat(apoc.number.exact.mul(rawNumeric,"1000000")) AS apocConversion ╒════════════════╕ │"apocConversion"│ ╞════════════════╡ │8370000 │ └────────────────┘ ---- That's more like it!
Learn how to deal with floating point arithmetic and rounding errors when working with Neo4j's Cypher query language. APOC comes to the rescue.
null
[ -0.0006299482774920762, -0.02508637309074402, -0.03164348378777504, 0.040000226348638535, 0.09008372575044632, 0.044561322778463364, 0.006943007931113243, 0.01111951656639576, -0.0033047369215637445, -0.02117699384689331, 0.024953395128250122, -0.01250290684401989, -0.0759059265255928, 0.00037915041320957243, 0.015225565992295742, 0.07217392325401306, 0.08092048019170761, -0.015423529781401157, -0.0029412368312478065, 0.003667735029011965, 0.009061411023139954, 0.038917239755392075, -0.023136401548981667, 0.008054541423916817, 0.004291587043553591, 0.016336502507328987, -0.007419539149850607, -0.027924874797463417, -0.07501616328954697, -0.030659031122922897, 0.06905592978000641, 0.022286057472229004, 0.023637952283024788, -0.010235416702926159, 0.029800184071063995, 0.02337009459733963, -0.038905881345272064, -0.0027030594646930695, -0.006041085813194513, -0.0016416340367868543, -0.05893196538090706, -0.008108491078019142, -0.00977304670959711, 0.03342455253005028, -0.05460872873663902, -0.01578671485185623, -0.047004807740449905, 0.003746940055862069, -0.04020443186163902, 0.005389736499637365, -0.09328252822160721, 0.02250376157462597, -0.023934584110975266, -0.02549787051975727, 0.015094298869371414, 0.06239994987845421, -0.015062183141708374, -0.06643324345350266, 0.036177460104227066, -0.04074467346072197, 0.0014084132853895426, 0.0026436569169163704, -0.018140850588679314, 0.005065739620476961, -0.019621577113866806, -0.0252374317497015, -0.024739570915699005, 0.06942393630743027, -0.07803617417812347, -0.015058868564665318, 0.011261158622801304, 0.014536242000758648, -0.011011653579771519, -0.041929569095373154, -0.02065538801252842, -0.07681111991405487, -0.011323503218591213, 0.051004234701395035, 0.03560445457696915, 0.059501390904188156, -0.025533540174365044, 0.0035329116508364677, 0.03179408982396126, 0.016540173441171646, 0.025658229365944862, -0.023309648036956787, -0.0064475396648049355, 0.0018782082479447126, -0.02885248512029648, 0.0386851504445076, 0.03415245935320854, -0.06122893467545509, -0.0016923202201724052, -0.004491191357374191, -0.0026766941882669926, 0.04132398962974548, -0.03846850246191025, 0.019985193386673927, 0.03981733322143555, 0.016672717407345772, -0.05196719989180565, -0.011562347412109375, 0.03275178745388985, 0.01514485478401184, -0.057310037314891815, -0.0038949865847826004, -0.03289928287267685, -0.022951094433665276, 0.01642892323434353, 0.01265525072813034, -0.03951798751950264, 0.017855260521173477, -0.0202642735093832, -0.002338794060051441, -0.08436737209558487, 0.04597726836800575, 0.014982569962739944, 0.01002384815365076, -0.014261486940085888, 0.0038850896526128054, 0.04112277179956436, 0.03703594580292702, 0.012382124550640583, 0.061500247567892075, -0.02066947892308235, 0.05363481119275093, 0.007221567910164595, 0.058011289685964584, 0.008652275428175926, -0.05778174474835396, -0.036844901740550995, 0.07186105102300644, 0.006058809347450733, 0.008636053651571274, -0.02215583249926567, -0.018612736836075783, -0.03760489076375961, 0.04014049097895622, 0.044392503798007965, 0.0027178809978067875, 0.03496771678328514, -0.06131860241293907, 0.031971126794815063, -0.017294179648160934, 0.028134960681200027, 0.025235004723072052, -0.027804361656308174, -0.04786991328001022, -0.03271107003092766, -0.004794162232428789, 0.01657995395362377, 0.04904882237315178, 0.06420069187879562, -0.020191481336951256, 0.025481991469860077, 0.0945303663611412, 0.028981177136301994, 0.0024891665671020746, -0.0352650061249733, 0.017715318128466606, 0.04000416025519371, 0.014155558310449123, -0.023715414106845856, 0.0563201867043972, 0.01601787470281124, 0.003849650267511606, 0.010801433585584164, 0.06400609761476517, -0.03494659438729286, 0.025974400341510773, -0.031599175184965134, -0.06578048318624496, 0.06187370792031288, -0.034834157675504684, -0.011903855949640274, 0.0010286611504852772, 0.062075261026620865, 0.003961867652833462, 0.04423484206199646, -0.003313756315037608, -0.07792118936777115, 0.05834046006202698, 0.012637503445148468, 0.006090028211474419, -0.006763128563761711, -0.017059501260519028, 0.07295038551092148, 0.03188183158636093, 0.00603006174787879, 0.05195532366633415, -0.07434074580669403, -0.0635632872581482, -0.0016551605658605695, -0.02061593346297741, 0.07242964208126068, -0.00785477552562952, -0.021247021853923798, 0.019770942628383636, 0.01118618343025446, -0.0068932948634028435, -0.0022010651882737875, 0.02131459303200245, 0.05537240579724312, -0.04315977171063423, -0.022824589163064957, 0.050162073224782944, 0.04513349011540413, -0.0176627766340971, -0.041462648659944534, 0.01600617542862892, -0.026734886690974236, 0.015674617141485214, 0.021279623731970787, -0.024196162819862366, 0.04942449554800987, 0.011732527054846287, 0.022504009306430817, -0.0245150625705719, 0.00693459203466773, -0.03514303267002106, 0.02500186488032341, 0.022474849596619606, -0.01782299019396305, -0.013676677830517292, -0.010410867631435394, 0.10214339196681976, 0.06155659630894661, -0.010688399896025658, -0.05876147001981735, 0.03045463003218174, -0.011433063074946404, -0.02494577132165432, 0.02400369383394718, -0.038041286170482635, 0.0020045265555381775, -0.03066413290798664, -0.022486858069896698, 0.0043600136414170265, 0.006479726638644934, -0.023392193019390106, 0.009116587229073048, 0.06916928291320801, -0.018616866320371628, 0.032707709819078445, 0.0020767163950949907, -0.005329763516783714, -0.022386744618415833, -0.06133471056818962, -0.06581220775842667, 0.01921459287405014, 0.015697713941335678, -0.0019441180629655719, 0.04523955285549164, -0.02154514566063881, -0.006276004482060671, -0.044028040021657944, -0.006687290035188198, 0.01169596053659916, 0.013106325641274452, 0.04062976315617561, 0.012430425733327866, 0.049768295139074326, -0.023438483476638794, -0.0037880828604102135, -0.02295246347784996, -0.0550801083445549, -0.04479057341814041, 0.015225747600197792, 0.040667153894901276, -0.0062831612303853035, 0.021067870780825615, 0.01814165525138378, 0.004610634874552488, -0.01569990999996662, 0.05273313820362091, -0.03726164996623993, 0.04242738336324692, -0.007043101824820042, -0.02894088439643383, -0.03131452202796936, -0.018276257440447807, 0.05743987485766411, -0.05819486454129219, -0.03639757260680199, 0.00606733001768589, -0.04888453707098961, 0.0386677086353302, -0.05129847675561905, -0.017758527770638466, -0.005124859511852264, 0.022954648360610008, 0.05621534585952759, -0.001969567034393549, 0.03431311622262001, 0.07547038793563843, -0.018816852942109108, 0.020276594907045364, 0.011808985844254494, 0.002387851942330599, 0.054106276482343674, -0.019416162744164467, 0.03841325268149376, 0.03081803023815155, -0.003427410963922739, -0.018759168684482574, -0.02947152778506279, -0.01326247863471508, -0.023045185953378677, -0.25796136260032654, 0.05941316857933998, -0.08553207665681839, -0.04415985941886902, -0.011109271086752415, -0.04741746932268143, -0.01852308213710785, 0.00017924333224073052, -0.0170732568949461, -0.008337783627212048, 0.009893001988530159, -0.03451612591743469, -0.017334099858999252, 0.042112305760383606, 0.016361596062779427, 0.020338093861937523, 0.010307837277650833, -0.031269654631614685, -0.015127334743738174, 0.024863138794898987, 0.010859682224690914, -0.044196635484695435, 0.024981047958135605, 0.04375539720058441, 0.01961056888103485, 0.044429466128349304, -0.07409335672855377, 0.026110853999853134, -0.05629019811749458, -0.04982372745871544, -0.011405491270124912, -0.0040109180845320225, 0.02409520000219345, 0.008092961274087429, -0.019201641902327538, 0.000736946880351752, 0.024708755314350128, -0.017859503626823425, 0.002602512715384364, 0.021117083728313446, -0.050005342811346054, -0.05114767700433731, 0.014885655604302883, -0.016652511432766914, 0.07671663165092468, 0.01616058498620987, -0.06489388644695282, 0.013217059895396233, -0.009603042155504227, 0.07824575901031494, -0.049936991184949875, -0.029670746996998787, -0.026513945311307907, 0.023501602932810783, -0.006595255807042122, -0.026470806449651718, -0.041820231825113297, 0.002961092861369252, -0.04961585998535156, -0.0008315368322655559, 0.023841938003897667, -0.0376812145113945, 0.005394599866122007, -0.022309506312012672, -0.022729789838194847, -0.0673103854060173, -0.08552296459674835, -0.04733312502503395, 0.04626155272126198, 0.022644205018877983, -0.023930080235004425, 0.045136403292417526, -0.011783636175096035, -0.10441028326749802, -0.06341236084699631, -0.04731288552284241, -0.0033641280606389046, 0.02173376828432083, -0.03710930794477463, 0.05070803686976433, -0.05022461339831352, -0.048107653856277466, 0.007992221973836422, 0.049686651676893234, 0.03107520565390587, 0.006218316499143839, -0.014071120880544186, -0.013606874272227287, -0.01901199296116829, 0.01607336476445198, 0.08265601843595505, -0.03823523223400116, -0.022059665992856026, -0.027689361944794655, 0.0029360547196120024, -0.011714705266058445, -0.016251783818006516, -0.007887215353548527, 0.005329537205398083, 0.035175491124391556, 0.040195100009441376, -0.03593699261546135, 0.0205075703561306, -0.060477133840322495, -0.024596625939011574, -0.02489755116403103, -0.04658772423863411, 0.014463547617197037, 0.028803184628486633, 0.025562068447470665, -0.017023758962750435, -0.00647953525185585, 0.02396511100232601, -0.04565640911459923, -0.026968345046043396, 0.005352809559553862, 0.009134764783084393, 0.022701896727085114, 0.026063937693834305, -0.023867717012763023, -0.06272510439157486, 0.03578692302107811, 0.03452172130346298, -0.031115325167775154, -0.029204487800598145, -0.02658010646700859, -0.028747687116265297, -0.031384557485580444, -0.006134080234915018, 0.02927943877875805, -0.030592968687415123, 0.0688847154378891, 0.019152916967868805, -0.02181222103536129, 0.0349973663687706, -0.010705902241170406, -0.008615863509476185, -0.020446304231882095, 0.032246656715869904, 0.01863223686814308, 0.011840428225696087, 0.009502946399152279, -0.007217084988951683, 0.0591898076236248, 0.02909010648727417, 0.011646977625787258, 0.02542421594262123, 0.0010380877647548914, 0.02356356754899025, 0.012873928993940353, -0.016059327870607376, -0.033313024789094925, 0.03562411293387413, -0.05227724835276604, -0.020547809079289436, 0.022873537614941597, 0.04462737962603569, -0.02413877286016941, -0.026151981204748154, -0.03617824241518974, 0.013762692920863628, -0.021584462374448776, -0.007247223984450102, -0.015404709614813328, -0.00962733943015337, 0.04655661806464195, -0.02035434916615486, 0.03858957439661026, -0.03221653401851654, -0.0059640975669026375, 0.011617965064942837, 0.026720471680164337, -0.012593572959303856, 0.007918309420347214, 0.004492997191846371, 0.0035758940503001213, 0.005375893786549568, 0.03008708544075489, 0.02563546970486641, 0.013269180431962013, -0.013865678571164608, -0.024908896535634995, 0.030576929450035095, 0.024016229435801506, 0.04714047908782959, 0.038760583847761154, -0.039637986570596695, 0.00919105764478445, -0.037280935794115067, -0.023771729320287704, -0.05826060473918915, -0.01561654545366764, -0.03786318749189377, 0.04022258520126343, -0.03265136107802391, -0.04508735239505768, 0.035366930067539215, 0.05684802308678627, -0.0001415317237842828, 0.05449165031313896, 0.0257854126393795, 0.0025370146613568068, -0.024357710033655167, 0.02438613772392273, 0.041620370000600815, -0.049089401960372925, -0.023112399503588676, -0.009434748440980911, 0.03053564578294754, 0.005148258060216904, 0.02876388654112816, -0.05358484759926796, -0.05758275091648102, -0.01727668195962906, 0.0105259595438838, 0.0029578721150755882, -0.03989098221063614, 0.018506774678826332, 0.016269396990537643, -0.05058769881725311, 0.02475886605679989, 0.02744022011756897, 0.011165509931743145, -0.04340141639113426, 0.014003871940076351, 0.02969985641539097, -0.006272574886679649, 0.00242901430465281, 0.002880448941141367, 0.009911281988024712, 0.043234191834926605, -0.034975651651620865, 0.024853093549609184, 0.005783194210380316, 0.025542188435792923, -0.03878941014409065, -0.061948567628860474, 0.04491531103849411, -0.049038928002119064, 0.029743807390332222, -0.04609877988696098, 0.015014318749308586, -0.002367953769862652, 0.016017960384488106, -0.008429977111518383, 0.00039253715658560395, -0.00834681186825037, -0.03461785987019539, 0.011395549401640892, 0.04398292303085327, 0.005447628907859325, 0.03094678558409214, -0.023654768243432045, -0.016624873504042625, 0.052692852914333344, -0.02030078135430813, -0.02150101028382778, 0.014257644303143024, -0.06625892966985703, 0.017799438908696175, 0.02223866991698742, 0.011549572460353374, -0.04373564198613167, 0.053425468504428864, 0.06833499670028687, 0.019594192504882812, 0.024555351585149765, -0.013158267363905907, 0.03052760288119316, -0.018976645544171333, -0.007059358526021242, -0.09678079187870026, 0.004599429666996002, 0.03185764700174332, 0.004832090809941292, 0.00678632827475667, -0.003396472427994013, -0.04590240493416786, 0.025103019550442696, -0.07262097299098969, -0.02150987647473812, 0.04312417656183243, 0.00385234784334898, 0.009219557046890259, -0.0031565360259264708, -0.053684137761592865, 0.002454317407682538, 0.03869553282856941, -0.04811209440231323, -0.016245514154434204, -0.042747363448143005, 0.062430240213871, -0.008687588386237621, 0.03551647439599037, -0.04047371447086334, -0.017017612233757973, 0.08357766270637512, 0.038657572120428085, 0.005166899878531694, 0.040190570056438446, -0.0062180981040000916, 0.05099891498684883, 0.006087570451200008, -0.018250908702611923, -0.00027642506756819785, 0.017228754237294197, -0.017887577414512634, -0.04392087459564209, 0.004964162595570087, 0.013128645718097687, -0.043787382543087006, -0.026783699169754982, 0.060364119708538055, -0.0013726545730605721, -0.008043834939599037, -0.041099514812231064, 0.03691139817237854, -0.027145221829414368, -0.024742765352129936, -0.020800409838557243, 0.009066211991012096, -0.0047362069599330425, 0.05428771302103996, -0.04679197072982788, 0.0002656086871866137, 0.04741945117712021, 0.01447460800409317, 0.012665502727031708, 0.031114058569073677, 0.08239050209522247, 0.07773158699274063, 0.012843197211623192, -0.016567811369895935, 0.03864694759249687, -0.0163516066968441, -0.0314762219786644, 0.011459214612841606, -0.04590199515223503, -0.038586024194955826, -0.006152665242552757, -0.0010684893932193518, 0.0608784556388855, -0.024975819513201714, 0.0886288657784462, -0.008121081627905369, 0.017017481848597527, -0.021638650447130203, -0.04429209604859352, 0.029485417529940605, 0.06145557761192322, 0.03415660560131073, 0.01830538921058178, -0.058792322874069214, -0.05359877645969391, 0.017804095521569252, 0.015626803040504456, -0.03390171006321907, 0.021881375461816788, 0.005824216641485691, 0.0025987334083765745, 0.00031289944308809936, 0.016943825408816338, 0.08988147228956223, -0.011351737193763256, -0.019536292180418968, 0.015114806592464447, 0.05090374872088432, 0.03004360944032669, -0.0019211637554690242, -0.009544072672724724, -0.03628705069422722, -0.028013424947857857, -0.03198985755443573, -0.012333180755376816, -0.015602625906467438, -0.04214382544159889, 0.022600695490837097, -0.009197548031806946, -0.025827327743172646, 0.023262733593583107, -0.03460258990526199, -0.03003019280731678, -0.05315902456641197, -0.04118557646870613, -0.03694813698530197, -0.09182243049144745, 0.010320094414055347, -0.02982941083610058, -0.0005177244311198592, -0.00579098891466856, -0.002369319088757038, -0.025903185829520226, -0.024157773703336716, 0.025189109146595, -0.04407896846532822, -0.0014899285743013024, 0.035162292420864105, 0.0028874839190393686, -0.01900465413928032, 0.010752962902188301, 0.04773525148630142, 0.009102397598326206, 0.021823571994900703, -0.009203472174704075, 0.009914431720972061, 0.03659890964627266, 0.06094574183225632, -0.022123273462057114, -0.05369294807314873, -0.020434269681572914, 0.043298400938510895, 0.03167545050382614, -0.06899697333574295, 0.003994212951511145, 0.021328875795006752, -0.0012832857901230454, 0.049519944936037064, -0.0013660411350429058, 0.01022152416408062, -0.022579001262784004, -0.01717693917453289, 0.004704759456217289, -0.020913604646921158, 0.041846539825201035, -0.027173329144716263, 0.05999086797237396, 0.04353359341621399, -0.020186772570014, -0.0002920659026131034, -0.03489252179861069, -0.024914376437664032, 0.012534198351204395, -0.04648463800549507, -0.02726460061967373, -0.07822658121585846, -0.07926365733146667, -0.005384052637964487, -0.008570577017962933, -0.047434158623218536, -0.017327405512332916, 0.023072972893714905, 0.014825581572949886, -0.018490241840481758, 0.009795144200325012, -0.03342622518539429, 0.04188374802470207, -0.030189236626029015, -0.022305918857455254, 0.002550455741584301, 0.019359616562724113, 0.03126855567097664, 0.0074202679097652435, 0.03557543456554413, -0.05047040805220604, 0.0183434896171093, -0.03278445452451706, 0.051819730550050735, 0.021066559478640556, 0.05304880067706108, 0.01744660548865795 ]
[ -0.0648997351527214, -0.04010758176445961, -0.043650224804878235, -0.037464603781700134, 0.021875107660889626, -0.06759332120418549, -0.02402382157742977, 0.017559213563799858, 0.01521675568073988, -0.00013259585830383003, 0.06674975901842117, -0.03501497581601143, 0.011315550655126572, -0.010778248310089111, 0.058987095952034, -0.003967515658587217, -0.034883007407188416, -0.03676218539476395, -0.026340363547205925, 0.07320741564035416, 0.034955378621816635, -0.02135649509727955, 0.005715753883123398, -0.027567651122808456, 0.02054395154118538, 0.04563240706920624, 0.022057171911001205, -0.042996786534786224, -0.0400543212890625, -0.22766943275928497, -0.012087223120033741, 0.011037072166800499, 0.03825131058692932, -0.023450838401913643, 0.01661711372435093, 0.025791989639401436, 0.045061465352773666, -0.019717710092663765, 0.03437380492687225, 0.05493471398949623, 0.02094523422420025, 0.04552609100937843, -0.04770312458276749, -0.015810294076800346, 0.05726514384150505, 0.01937852054834366, -0.03277347981929779, 0.019620822742581367, 0.01729227975010872, 0.06067602336406708, -0.004055772442370653, 0.00645133713260293, 0.011714449152350426, 0.05496726930141449, 0.0037221459206193686, 0.026824017986655235, 0.04487042501568794, 0.07933850586414337, 0.03512921556830406, 0.028742218390107155, 0.02904728427529335, -0.010316458530724049, -0.13288255035877228, 0.09931236505508423, 0.0003951047547161579, -0.03046988882124424, -0.00561113003641367, -0.04844868928194046, -0.05006048455834389, 0.06692348420619965, 0.027122432366013527, -0.032968129962682724, -0.04761284217238426, 0.07063840329647064, -0.022590143606066704, 0.00907003041356802, -0.04398602619767189, 0.02655080519616604, 0.050228215754032135, -0.011562773957848549, -0.005734339356422424, 0.010694295167922974, -0.04838282987475395, -0.022627750411629677, -0.009635236114263535, 0.0017686364008113742, 0.005137974396348, 0.066920705139637, 0.028628423810005188, -0.0022918833419680595, 0.045849353075027466, 0.017846575006842613, 0.025315117090940475, 0.05436927452683449, -0.04166174307465553, 0.004162173718214035, 0.022066136822104454, 0.016458993777632713, -0.020084785297513008, 0.32957354187965393, 0.05359075590968132, 0.016416307538747787, -0.027348844334483147, 0.028014972805976868, -0.0051925391890108585, -0.020290791988372803, 0.006100041326135397, -0.044578298926353455, 0.04484144225716591, -0.0391540452837944, 0.0020737203303724527, -0.04282236471772194, 0.04518057033419609, -0.09479717165231705, -0.011209764517843723, 0.02159092202782631, 0.04602282866835594, -0.013994621112942696, -0.006257358007133007, 0.019790319725871086, -0.00337709067389369, -0.023569632321596146, 0.0548592209815979, 0.014095930382609367, 0.03456655517220497, 0.03983176499605179, -0.004954067524522543, 0.05559339374303818, 0.03740878775715828, 0.06562786549329758, 0.034968458116054535, -0.02877999097108841, -0.09031172096729279, 0.01640188880264759, 0.016261201351881027, 0.012967384420335293, 0.04131269082427025, -0.03131437301635742, 0.010548941791057587, 0.030916592106223106, -0.050847459584474564, -0.016157936304807663, -0.006053166463971138, 0.03430582582950592, -0.03154214471578598, 0.12745095789432526, -0.028959009796380997, -0.011627904139459133, 0.002181394025683403, -0.04806634411215782, 0.013502722606062889, 0.05011541396379471, -0.03217841312289238, -0.054148998111486435, -0.0115875955671072, 0.0034131028223782778, 0.08343072980642319, 0.006637981627136469, -0.0711643397808075, -0.013043886981904507, -0.024731356650590897, -0.031998876482248306, -0.04471202939748764, 0.09482043236494064, 0.010142818093299866, -0.08419844508171082, 0.00006721883255522698, 0.01408108789473772, -0.025690585374832153, -0.06876863539218903, 0.02745717391371727, -0.019837036728858948, -0.057123713195323944, -0.02751307748258114, 0.10507179796695709, -0.009136846289038658, -0.003179568564519286, -0.029125086963176727, 0.03556503355503082, 0.039707861840724945, -0.011196454986929893, -0.00040806762990541756, 0.0015152243431657553, -0.01072886772453785, -0.040343500673770905, -0.05768980830907822, -0.0733015313744545, 0.030319903045892715, -0.031853023916482925, -0.029809771105647087, -0.00940493680536747, 0.01724838837981224, -0.09312810748815536, 0.07074236869812012, -0.05933699384331703, -0.055411841720342636, -0.008599529042840004, 0.023546261712908745, 0.029753105714917183, -0.0392441488802433, 0.047157999128103256, 0.029995251446962357, -0.007987802848219872, 0.005556665826588869, -0.057507216930389404, 0.030487893149256706, 0.05268227308988571, -0.04502171277999878, 0.028886528685688972, 0.05205434933304787, -0.04602840170264244, 0.00558629771694541, -0.027700867503881454, 0.028046712279319763, -0.006259748712182045, 0.018399912863969803, 0.015322575345635414, -0.013699294067919254, -0.014717185869812965, 0.027828248217701912, -0.036247823387384415, -0.05000350624322891, -0.05807337909936905, -0.35143157839775085, -0.0446157306432724, -0.011347424238920212, -0.07457016408443451, 0.025733577087521553, -0.01751483418047428, 0.02881363406777382, -0.010005021467804909, 0.0037346049211919308, 0.041706737130880356, 0.06468939781188965, -0.0057380422949790955, -0.03175001218914986, -0.09100291132926941, -0.009484338574111462, 0.03558266535401344, -0.031224370002746582, -0.019063321873545647, 0.02756238728761673, -0.007829632610082626, -0.016283825039863586, -0.035228971391916275, -0.08561530709266663, -0.028467299416661263, -0.009837412275373936, -0.0022438191808760166, 0.08617382496595383, -0.019028108566999435, 0.0077544935047626495, -0.03597501292824745, 0.06106322631239891, -0.028741996735334396, 0.01203275565057993, -0.012078708969056606, 0.024280600249767303, -0.03689233213663101, 0.007591506000608206, 0.0660145953297615, -0.03058825246989727, 0.016616685315966606, -0.05523674935102463, -0.012516853399574757, -0.0642775222659111, -0.05582838132977486, 0.0007579834782518446, 0.02166801504790783, -0.04909800365567207, -0.00158469018060714, 0.03935904800891876, 0.06602070480585098, -0.014938503503799438, 0.013742703013122082, 0.005361059680581093, 0.03396698832511902, 0.023535627871751785, -0.03355776146054268, -0.06098799780011177, -0.0036821842659264803, 0.025051940232515335, 0.01374050322920084, 0.009145439602434635, 0.019101008772850037, 0.06497662514448166, -0.04878794401884079, 0.016761181876063347, 0.0025517165195196867, 0.011256422847509384, -0.00409524654969573, 0.059246648102998734, -0.05857546254992485, 0.029049886390566826, 0.12149634212255478, -0.0032803798094391823, 0.02333601750433445, 0.03199874609708786, 0.019315199926495552, 0.001728095579892397, -0.0076272860169410706, 0.03172316774725914, 0.02043849043548107, 0.0319734625518322, -0.024799704551696777, 0.0636431872844696, -0.01972241699695587, -0.010695039294660091, 0.044095031917095184, -0.016571294516324997, -0.019747072830796242, 0.01917220465838909, 0.0017927606822922826, -0.05416114628314972, -0.027188507840037346, -0.01418627891689539, -0.022681549191474915, 0.03309449180960655, -0.0005997326225042343, -0.2862682342529297, 0.05198149383068085, -0.007079407572746277, 0.06707318872213364, -0.009867288172245026, 0.0005543426959775388, -0.004163659643381834, -0.02460424229502678, -0.05774211138486862, 0.01436325442045927, -0.001768447575159371, 0.05938419699668884, 0.009706376120448112, 0.009442154318094254, 0.024248380213975906, -0.03392850235104561, -0.030979853123426437, 0.039065755903720856, 0.045618511736392975, 0.0066961366683244705, 0.07767114788293839, -0.029546501114964485, 0.1870846003293991, 0.02084844931960106, -0.019220756366848946, 0.03616552799940109, -0.020882871001958847, 0.02984078973531723, 0.11017311364412308, -0.010506811551749706, -0.05618519335985184, 0.06247391924262047, -0.008112194016575813, -0.03787568211555481, 0.008957796730101109, 0.01311052031815052, -0.033093612641096115, 0.027538375928997993, 0.024449776858091354, -0.019344240427017212, -0.003743509529158473, 0.0014947346644476056, -0.026356477290391922, 0.014528365805745125, 0.08903512358665466, -0.005530287511646748, 0.02809218317270279, -0.031002197414636612, -0.02365267463028431, -0.02019515447318554, -0.0523141548037529, -0.04565833508968353, -0.013809523545205593, -0.023126520216464996, -0.0037623208481818438, 0.07503309100866318, -0.05407910794019699, 0.0016445022774860263, -0.0014434014447033405, 0.007596310693770647, -0.039157480001449585, -0.0881161019206047, 0.09362658113241196, -0.03750164806842804, 0.0028789183124899864 ]
[ 0.02657020092010498, 0.04501715674996376, -0.023901978507637978, 0.006114974617958069, -0.018580984324216843, -0.045314591377973557, -0.01253159437328577, 0.031343091279268265, -0.013093838468194008, 0.0205757487565279, -0.027277152985334396, -0.016201065853238106, 0.03664936497807503, 0.019831087440252304, -0.02752857841551304, -0.01635068655014038, -0.01090421061962843, 0.06681841611862183, 0.007388914469629526, -0.0013214099453762174, -0.010522685013711452, 0.026582205668091774, 0.045985929667949677, 0.016667811200022697, 0.028914598748087883, -0.011923599988222122, -0.010289049707353115, 0.017083358019590378, 0.03450259938836098, -0.12404605746269226, -0.030504848808050156, 0.003303730161860585, 0.0024427876342087984, 0.006055975798517466, -0.007286889012902975, 0.011621123179793358, 0.0331590473651886, 0.01167423278093338, -0.023369979113340378, 0.03649318218231201, 0.040731824934482574, -0.010433598421514034, -0.008452390320599079, 0.020832009613513947, 0.02073764055967331, -0.0489974170923233, -0.015124035067856312, -0.03809060528874397, -0.008218414150178432, 0.02327018976211548, -0.008269675076007843, 0.01685468852519989, -0.030763190239667892, 0.021090062335133553, -0.01586145907640457, -0.009000248275697231, -0.03198705613613129, -0.016232911497354507, 0.007503228727728128, -0.0340055376291275, -0.013386829756200314, 0.01073096226900816, -0.0511898398399353, -0.036606088280677795, -0.026950865983963013, -0.012423072010278702, 0.025163613259792328, -0.02091939188539982, -0.00366930547170341, 0.016140716150403023, 0.011384827084839344, 0.022191228345036507, -0.05955340340733528, -0.034889839589595795, -0.004653542302548885, 0.06019871309399605, 0.025751730427145958, -0.05315394699573517, -0.04106532037258148, 0.014499121345579624, 0.021372126415371895, 0.0023143840953707695, 0.006065653637051582, -0.0469093956053257, -0.021230464801192284, -0.0014994640368968248, 0.010816947557032108, 0.04346610978245735, 0.020401356741786003, -0.007942451164126396, 0.01297009363770485, 0.02077322080731392, -0.03273528814315796, -0.004386971704661846, -0.0835503339767456, -0.011680937372148037, 0.007557272911071777, 0.015329895541071892, 0.008861242793500423, 0.8357791900634766, 0.012399550527334213, -0.0009072195389308035, -0.012687967158854008, 0.0060713645070791245, 0.0015857536345720291, 0.008680945262312889, 0.046060286462306976, 0.010598176158964634, 0.013910939916968346, -0.016930779442191124, -0.01449598465114832, -0.014033726416528225, -0.009718229994177818, -0.0023903704714030027, 0.04010622203350067, 0.025546494871377945, 0.01348972599953413, -0.025143224745988846, -0.034192685037851334, 0.006776310037821531, 0.010603231377899647, 0.010717601515352726, -0.015839122235774994, 0.053344059735536575, 0.012880985625088215, -0.14565980434417725, -0.052380990236997604, -5.75456133010549e-33, 0.01788758672773838, -0.017854828387498856, 0.0636162981390953, 0.008359021507203579, 0.0028739674016833305, 0.026157917454838753, 0.006297820247709751, -0.02757393755018711, -0.0231120977550745, -0.03307054936885834, -0.03616153821349144, 0.016231926158070564, 0.004040130414068699, -0.018873073160648346, 0.007429955061525106, -0.05440177023410797, 0.026671016588807106, 0.01361572090536356, -0.013409529812633991, -0.0019674599170684814, 0.0026068836450576782, 0.012155547738075256, -0.0484541654586792, 0.018999803811311722, 0.05668577924370766, 0.056588299572467804, 0.029672065749764442, -0.003284457139670849, -0.011480147950351238, -0.05607420206069946, -0.051201969385147095, 0.012837567366659641, -0.009942336939275265, -0.023240696638822556, 0.014213189482688904, -0.05598033219575882, -0.017051225528120995, 0.014770032837986946, 0.011932791210711002, -0.05092383548617363, -0.062347911298274994, 0.005420745816081762, -0.013156762346625328, -0.007352274376899004, -0.011948960833251476, -0.022794371470808983, -0.012801275588572025, 0.03720918670296669, 0.013218649663031101, -0.0070535484701395035, 0.005649849772453308, 0.04316067695617676, -0.010230045765638351, 0.001632970990613103, -0.00601410586386919, -0.024619320407509804, 0.03151518478989601, 0.013145742006599903, -0.017403312027454376, 0.010057816281914711, 0.027532855048775673, 0.010014235973358154, -0.024266483262181282, 0.017159022390842438, -0.020504573360085487, 0.022562149912118912, -0.03324578329920769, 0.028236042708158493, -0.0062025198712944984, 0.07642896473407745, -0.030223943293094635, 0.022381428629159927, 0.0024327083956450224, -0.0157722570002079, 0.02034231647849083, -0.027302056550979614, 0.01906580477952957, -0.001613181084394455, -0.002015762496739626, 0.03258610889315605, -0.018818562850356102, -0.0236347708851099, 0.010454551316797733, -0.005153678823262453, -0.013065588660538197, -0.005561583209782839, 0.018338389694690704, 0.03846883773803711, -0.004421939607709646, 0.007841621525585651, 0.068264439702034, -0.001043307944200933, -0.005963271949440241, -0.033755525946617126, -0.047886624932289124, 6.1147111260203455e-33, -0.044290922582149506, 0.0265530813485384, -0.04714643955230713, 0.027720093727111816, -0.017037902027368546, 0.009363028220832348, 0.00505300797522068, -0.028239764273166656, -0.011780856177210808, 0.015248243696987629, -0.03938752040266991, -0.011804226785898209, -0.01896798051893711, 0.00554030342027545, 0.04845881089568138, -0.02941310778260231, 0.005640668794512749, -0.006697265896946192, 0.035822611302137375, 0.03967713192105293, 0.002686243737116456, 0.015564044006168842, 0.011394008062779903, 0.02181374467909336, 0.0074743242003023624, -0.00936520379036665, -0.009159984067082405, 0.010868974961340427, -0.015831192955374718, -0.004554426297545433, -0.023408150300383568, -0.058683834969997406, -0.037779126316308975, -0.012170378118753433, -0.0014122964348644018, 0.00009887477062875405, 0.014301679097115993, 0.007501887157559395, -0.002958132652565837, 0.003780281636863947, 0.008299771696329117, -0.03425745293498039, -0.04712184518575668, 0.03030022606253624, 0.034384917467832565, -0.00652091670781374, 0.02275661565363407, 0.014597042463719845, 0.014808467589318752, 0.002687326166778803, 0.004829959478229284, 0.03333654627203941, 0.012412111274898052, 0.05575075373053551, 0.018588397651910782, -0.01464473083615303, -0.02409456856548786, 0.016003267839550972, 0.02230575494468212, -0.011111690662801266, -0.02087564952671528, -0.004438597708940506, -0.0213431715965271, 0.024220457300543785, -0.026777831837534904, 0.010876888409256935, -0.012071465142071247, -0.019662881270051003, -0.04635301232337952, -0.0036876206286251545, 0.01197272352874279, 0.01343218982219696, -0.002558662323281169, 0.05680350959300995, -0.020801283419132233, -0.020570626482367516, -0.03653210774064064, -0.0162128247320652, 0.0011672232067212462, 0.0342184379696846, 0.033155955374240875, 0.02084050513803959, 0.020196298137307167, 0.009490007534623146, -0.015331750735640526, -0.01365297008305788, 0.018640292808413506, 0.028370024636387825, -0.007252579554915428, -0.033361513167619705, 0.021384363994002342, -0.012895026244223118, -0.021158268675208092, 0.04142579436302185, -0.02388274483382702, -1.2120497494549909e-8, 0.01167626865208149, 0.013065101578831673, -0.001368873636238277, 0.010085547342896461, 0.00983102060854435, 0.009981849230825901, -0.016825877130031586, 0.009410441853106022, -0.005683714523911476, 0.012899995781481266, 0.028331557288765907, -0.008696583099663258, 0.014928286895155907, 0.007658084854483604, 0.034896645694971085, -0.015060548670589924, 0.03512248024344444, 0.006230308208614588, 0.031110431998968124, 0.006883953232318163, -0.061214420944452286, 0.07091647386550903, 0.0010344777256250381, -0.005755985621362925, -0.011636637151241302, 0.0027504635509103537, 0.01811307482421398, -0.008917292580008507, 0.006726990453898907, -0.027162352576851845, 0.009808809496462345, -0.025153042748570442, -0.05320822075009346, 0.031133035197854042, -0.035516735166311264, -0.024554232135415077, 0.02757362648844719, 0.07505849748849869, 0.01699974201619625, 0.02514285035431385, -0.04573111981153488, -0.012253456749022007, -0.024070775136351585, -0.019612103700637817, -0.025994976982474327, 0.00007715246465522796, -0.04999199137091637, -0.024817869067192078, 0.05816405266523361, -0.01900235190987587, 0.038830529898405075, 0.027338160201907158, -0.006997585296630859, 0.01275718118995428, 0.024060674011707306, -0.023921946063637733, -0.00327638303861022, -0.0196231696754694, -0.03900966793298721, -0.0026484918780624866, 0.007661968469619751, -0.001584514044225216, -0.014361711218953133, -0.018518801778554916 ]
neo4j-cypher-rounding-of-floating-point-numbersbigdecimals
https://markhneedham.com/blog/2017/08/13/neo4j-cypher-rounding-of-floating-point-numbersbigdecimals
false
2017-01-21 10:49:46
Go vs Python: Parsing a JSON response from a HTTP API
[ "go", "golang" ]
[ "Python" ]
As part of a https://www.meetup.com/graphdb-london/events/236256437/[recommendations with Neo4j talk] that I've presented a few times over the last year I have a set of scripts that download some data from the https://www.meetup.com/meetup_api/[meetup.com API]. They're all written in Python but I thought it'd be a fun exercise to see what they'd look like in Go. My eventual goal is to try and parallelise the API calls. This is the Python version of the script: [source,python] ---- import requests import os import json key = os.environ['MEETUP_API_KEY'] lat = "51.5072" lon = "0.1275" seed_topic = "nosql" uri = "https://api.meetup.com/2/groups?&topic={0}&lat={1}&lon={2}&key={3}".format(seed_topic, lat, lon, key) r = requests.get(uri) all_topics = [topic["urlkey"] for result in r.json()["results"] for topic in result["topics"]] for topic in all_topics: print topic ---- We're using the http://docs.python-requests.org/en/master/[requests] library to send a request to the meetup API to get the groups which have the topic 'nosql' in the London area. We then parse the response and print out the topics. Now to do the same thing in Go! The first bit of the script is almost identical: [source,go] ---- import ( "fmt" "os" "net/http" "log" "time" ) func handleError(err error) { if err != nil { fmt.Println(err) log.Fatal(err) } } func main() { var httpClient = &http.Client{Timeout: 10 * time.Second} seedTopic := "nosql" lat := "51.5072" lon := "0.1275" key := os.Getenv("MEETUP_API_KEY") uri := fmt.Sprintf("https://api.meetup.com/2/groups?&topic=%s&lat=%s&lon=%s&key=%s", seedTopic, lat, lon, key) response, err := httpClient.Get(uri) handleError(err) defer response.Body.Close() fmt.Println(response) } ---- If we run that this is the output we see: [source,bash] ---- $ go cmd/blog/main.go &{200 OK 200 HTTP/2.0 2 0 map[X-Meetup-Request-Id:[2d3be3c7-a393-4127-b7aa-076f150499e6] X-Ratelimit-Reset:[10] Cf-Ray:[324093a73f1135d2-LHR] X-Oauth-Scopes:[basic] Etag:["35a941c5ea3df9df4204d8a4a2d60150"] Server:[cloudflare-nginx] Set-Cookie:[__cfduid=d54db475299a62af4bb963039787e2e3d1484894864; expires=Sat, 20-Jan-18 06:47:44 GMT; path=/; domain=.meetup.com; HttpOnly] X-Meetup-Server:[api7] X-Ratelimit-Limit:[30] X-Ratelimit-Remaining:[29] X-Accepted-Oauth-Scopes:[basic] Vary:[Accept-Encoding,User-Agent,Accept-Language] Date:[Fri, 20 Jan 2017 06:47:45 GMT] Content-Type:[application/json;charset=utf-8]] 0xc420442260 -1 [] false true map[] 0xc4200d01e0 0xc4202b2420} ---- So far so good. Now we need to parse the response that comes back. Most of the examples that I came across http://stackoverflow.com/questions/17156371/how-to-get-json-response-in-golang[suggest creating a struct with all the fields] that you want to extract from the JSON document but that feels a bit over kill for such a simple script. Instead we can just create maps of (string \-> interface{}) and then apply type conversions where appropriate. I ended up with the following code to extract the topics: [source,go] ---- import "encoding/json" var target map[string]interface{} decoder := json.NewDecoder(response.Body) decoder.Decode(&target) for _, rawGroup := range target["results"].([]interface{}) { group := rawGroup.(map[string]interface{}) for _, rawTopic := range group["topics"].([]interface{}) { topic := rawTopic.(map[string]interface{}) fmt.Println(topic["urlkey"]) } } ---- It's more verbose that the Python version because we have to explicitly type each thing we take out of the map at every stage, but it's not too bad. This is the full script: [source,go] ---- package main import ( "fmt" "os" "net/http" "log" "time" "encoding/json" ) func handleError(err error) { if err != nil { fmt.Println(err) log.Fatal(err) } } func main() { var httpClient = &http.Client{Timeout: 10 * time.Second} seedTopic := "nosql" lat := "51.5072" lon := "0.1275" key := os.Getenv("MEETUP_API_KEY") uri := fmt.Sprintf("https://api.meetup.com/2/groups?&topic=%s&lat=%s&lon=%s&key=%s", seedTopic, lat, lon, key) response, err := httpClient.Get(uri) handleError(err) defer response.Body.Close() var target map[string]interface{} decoder := json.NewDecoder(response.Body) decoder.Decode(&target) for _, rawGroup := range target["results"].([]interface{}) { group := rawGroup.(map[string]interface{}) for _, rawTopic := range group["topics"].([]interface{}) { topic := rawTopic.(map[string]interface{}) fmt.Println(topic["urlkey"]) } } } ---- Once I've got these topics the next step is to make more API calls to get the groups for those topics. I want to make those API calls in parallel while making sure I don't exceed the rate limit restrictions on the API and I think I can make use of go routines, channels, and timers to do that. But that's for another post!
Parsing meetup.com's HTTP API using Go and Python.
null
[ -0.004406575113534927, -0.04008280113339424, -0.0036838797386735678, 0.017306577414274216, 0.052412424236536026, -0.0013888075482100248, 0.013558238744735718, 0.067766472697258, 0.03145985305309296, 0.007705315016210079, -0.028238151222467422, -0.009096931666135788, -0.11907052248716354, 0.03527975082397461, 0.005161399487406015, 0.04812738671898842, 0.07474768906831741, -0.02451779879629612, 0.010433780960738659, -0.011607751250267029, 0.024662377312779427, 0.04931897297501564, -0.00631764205172658, 0.018612712621688843, 0.030066782608628273, 0.0030731852166354656, -0.009646647609770298, 0.003968101926147938, -0.05305274948477745, -0.0005573501111939549, 0.024097928777337074, 0.03142300620675087, 0.013952964916825294, -0.025828033685684204, 0.03222581371665001, -0.012019926682114601, -0.021801335737109184, 0.01559933926910162, -0.022794386371970177, 0.03351921588182449, -0.028173647820949554, 0.03554162383079529, -0.03770703449845314, 0.040234535932540894, -0.035191167145967484, 0.05435791239142418, -0.016195420175790787, 0.06356994807720184, 0.009434233419597149, 0.012536067515611649, -0.0745697095990181, 0.0056403204798698425, -0.006753065157681704, -0.020055171102285385, 0.010437549091875553, 0.04975798353552818, 0.033807966858148575, -0.08234483003616333, 0.027218060567975044, -0.015352297574281693, -0.014550493098795414, 0.017090341076254845, 0.022484930232167244, 0.027788661420345306, 0.012915002182126045, -0.009178243577480316, 0.00418815016746521, 0.07558147609233856, -0.05756886303424835, -0.023472752422094345, -0.0036311843432486057, 0.027200184762477875, -0.05813349783420563, 0.016824575141072273, 0.02551605924963951, -0.0384322814643383, 0.021334471181035042, 0.06694471836090088, 0.03466128930449486, 0.06980777531862259, -0.007338034920394421, -0.013056398369371891, 0.0450032576918602, 0.020031755790114403, 0.004503058269619942, -0.02021336928009987, -0.05119564011693001, -0.023082561790943146, -0.034039903432130814, 0.032489582896232605, 0.029579883441329002, -0.04637642204761505, 0.0036960940342396498, -0.007226183544844389, -0.0031740942504256964, -0.003415084443986416, 0.007470136042684317, 0.029483633115887642, 0.014613164588809013, -0.028980251401662827, -0.07265552133321762, -0.013775521889328957, -0.00332270166836679, 0.0084600318223238, -0.05376138165593147, -0.03728922829031944, -0.01046606432646513, -0.054985206574201584, 0.0008471190230920911, -0.009325525723397732, -0.04402272775769234, -0.004495677538216114, -0.006738557014614344, -0.005874586291611195, -0.08634327352046967, 0.06258063018321991, 0.004061554092913866, -0.047698765993118286, -0.031776342540979385, 0.00336295273154974, 0.036520570516586304, 0.05762623995542526, 0.00142031186260283, 0.09047126770019531, -0.021920306608080864, 0.0689961314201355, 0.00810055248439312, 0.05628269165754318, -0.004450228530913591, -0.0517839714884758, -0.0085968729108572, 0.06537613272666931, -0.011278919875621796, -0.0027502679731696844, -0.004406789317727089, -0.01189084816724062, -0.014831159263849258, 0.03854722902178764, 0.07850907742977142, 0.02788773737847805, 0.01989791728556156, -0.044540707021951675, -0.004033583682030439, 0.00669229356572032, 0.05143479257822037, 0.02749289944767952, -0.03775545209646225, -0.05179683491587639, -0.031375158578157425, -0.005459100008010864, -0.006486781407147646, 0.016920845955610275, 0.0401056669652462, -0.012959909625351429, 0.010667487047612667, 0.09731966257095337, 0.011424361728131771, 0.06365571171045303, -0.031176939606666565, -0.010600471869111061, 0.039227135479450226, 0.032456930726766586, -0.02233089879155159, 0.025697583332657814, 0.00518844835460186, -0.011371873319149017, -0.008199217729270458, 0.028007667511701584, -0.011896990239620209, 0.020358048379421234, -0.029498757794499397, -0.03608370199799538, 0.0686473697423935, -0.054217156022787094, -0.013203177601099014, 0.016807295382022858, 0.06612331420183182, 0.030271517112851143, 0.032539162784814835, 0.008744648657739162, -0.06959877908229828, 0.040239427238702774, 0.02040625736117363, -0.00638712290674448, -0.011389415711164474, -0.013722597621381283, 0.11234825849533081, 0.01438951026648283, -0.00962748471647501, 0.03414082154631615, -0.08729854971170425, -0.056102361530065536, -0.026562975719571114, -0.0033656235318630934, 0.06306130439043045, -0.041697561740875244, 0.01409517414867878, 0.06955868750810623, 0.011590905487537384, 0.02810000069439411, 0.0072737038135528564, -0.020281413570046425, 0.01920936442911625, -0.03537281975150108, -0.04440155625343323, 0.03581596910953522, 0.016195841133594513, -0.04725455492734909, -0.023547915741801262, 0.006960042752325535, -0.021904652938246727, 0.0328487828373909, 0.03373401239514351, -0.02065708301961422, 0.01597435772418976, 0.0274874996393919, 0.052207786589860916, -0.014490672387182713, 0.025316301733255386, -0.03181014955043793, 0.07265327125787735, 0.01914443075656891, 0.004097833298146725, -0.04791531711816788, -0.01297944039106369, 0.1189676821231842, 0.06807015091180801, 0.013225802220404148, -0.03655471280217171, 0.002003535395488143, -0.007822259329259396, -0.000540523265954107, 0.005193723831325769, -0.02124212495982647, -0.03232840821146965, 0.01853419467806816, -0.011139411479234695, -0.016820646822452545, -0.0031970094423741102, -0.036503251641988754, -0.005039162002503872, 0.0576113797724247, -0.03461196646094322, 0.044046804308891296, 0.007157929707318544, 0.007289436645805836, -0.008047843351960182, -0.04495721682906151, -0.014091934077441692, 0.00921783596277237, 0.020257893949747086, -0.02096085622906685, 0.04919080063700676, -0.030687503516674042, -0.025216566398739815, -0.0024714830797165632, -0.01857609860599041, 0.04077820107340813, 0.06562165170907974, 0.022791093215346336, -0.014857220463454723, 0.03745857998728752, -0.058549027889966965, -0.002922450890764594, -0.02589641697704792, -0.04074495658278465, -0.07040815055370331, -0.033140700310468674, 0.009056187234818935, -0.0013157506473362446, 0.06552150100469589, -0.01144201960414648, 0.0038869271520525217, 0.01758686639368534, -0.002671647584065795, -0.004954391624778509, 0.028449570760130882, -0.011370832100510597, 0.0074806222692132, -0.05182526633143425, -0.015917722135782242, 0.0330098494887352, -0.042559172958135605, -0.030377376824617386, -0.022760313004255295, -0.04302756115794182, 0.02323739603161812, -0.031846415251493454, -0.02640886977314949, -0.005954100750386715, 0.013789674267172813, 0.04592568054795265, -0.019623009487986565, -0.008098325692117214, 0.05553414672613144, 0.0010326169431209564, 0.03011982887983322, 0.03152240440249443, -0.020115986466407776, 0.050979357212781906, 0.010714344680309296, 0.06403035670518875, 0.026933299377560616, -0.03374619036912918, -0.03455250710248947, -0.03366173058748245, -0.020176071673631668, -0.050820041447877884, -0.2561202645301819, 0.050746478140354156, -0.02685806155204773, -0.006659101694822311, 0.018666494637727737, -0.011405342258512974, 0.012178250588476658, -0.03513412922620773, -0.021607210859656334, 0.00531306816264987, -0.019435681402683258, -0.03665763884782791, -0.025592543184757233, 0.061939481645822525, 0.030942779034376144, 0.03297273442149162, -0.05921540409326553, -0.053648367524147034, -0.003481087973341346, 0.03121081553399563, 0.008746516890823841, -0.01736375130712986, -0.006461872719228268, 0.024137107655405998, 0.006363067775964737, 0.04475909844040871, -0.06647224724292755, 0.015972120687365532, -0.04719804972410202, -0.046534501016139984, 0.035018954426050186, -0.031165285035967827, 0.03994767740368843, -0.015739627182483673, 0.0018148060189560056, -0.009188110940158367, 0.034716323018074036, -0.007750724907964468, 0.013503359630703926, 0.006090072449296713, -0.06502745300531387, -0.04236435145139694, -0.01733320951461792, -0.026765601709485054, 0.09805430471897125, 0.020566975697875023, -0.07827585935592651, -0.015635022893548012, -0.01790180429816246, 0.050113990902900696, -0.008580472320318222, -0.04528352618217468, -0.03928126394748688, 0.024896198883652687, -0.03452285751700401, -0.022349806502461433, -0.03738749772310257, 0.005865171551704407, -0.010526251047849655, -0.007228739559650421, -0.024238813668489456, -0.028051339089870453, -0.012215577997267246, -0.026595357805490494, -0.04503541439771652, -0.0457676537334919, -0.04756394401192665, -0.01780731976032257, 0.020282313227653503, 0.014387466944754124, -0.0407998226583004, 0.027017243206501007, -0.022067148238420486, -0.09345587342977524, -0.03383593261241913, -0.035754766315221786, -0.018193958327174187, -0.002725777914747596, -0.003405265975743532, 0.02992091327905655, -0.06842993944883347, -0.054539695382118225, -0.0076614986173808575, -0.012710203416645527, 0.034454356878995895, 0.017292752861976624, -0.0026485715061426163, -0.043088819831609726, -0.047497838735580444, -0.012570279650390148, 0.05264854058623314, -0.0309092216193676, -0.001774833770468831, 0.027780503034591675, -0.003056473331525922, 0.05517037585377693, 0.016501855105161667, 0.0011039124801754951, 0.011768398806452751, 0.047436799854040146, 0.037720099091529846, -0.03692760318517685, -0.02378680743277073, -0.04345614090561867, -0.016635820269584656, -0.0005746962851844728, -0.034618522971868515, 0.037627920508384705, 0.01149122603237629, 0.023916222155094147, 0.0012871241196990013, 0.0006109903333708644, 0.013272633776068687, -0.037160784006118774, -0.0005199132720008492, -0.008241069503128529, 0.019331714138388634, 0.027921563014388084, 0.018011895939707756, -0.04735992103815079, -0.06064601615071297, 0.005431871861219406, 0.05748813599348068, 0.007330313790589571, -0.04781358689069748, -0.03329337760806084, -0.02266291156411171, -0.05396931245923042, 0.016773831099271774, 0.01658104732632637, -0.028568720445036888, 0.0436038114130497, 0.03471221774816513, -0.04060817509889603, 0.008232533000409603, -0.06581002473831177, -0.02928599901497364, -0.016436642035841942, 0.019441833719611168, 0.031909432262182236, 0.010283633135259151, -0.01689961738884449, -0.01732763461768627, 0.051758188754320145, 0.030859000980854034, 0.01031666062772274, 0.0026791079435497522, 0.013659946620464325, 0.01711832918226719, -0.015506604686379433, -0.0012871847720816731, -0.054398030042648315, 0.0064439368434250355, -0.03496543690562248, -0.016194451600313187, -0.007045056205242872, 0.031975045800209045, 0.0037822339218109846, -0.017358439043164253, -0.03344907611608505, 0.040248800069093704, -0.06653004884719849, 0.0029797705356031656, -0.0026955269277095795, -0.03608342260122299, 0.016293492168188095, 0.012804042547941208, 0.03413790464401245, -0.03755427524447441, -0.041867706924676895, -0.006839652545750141, 0.012214872986078262, -0.019683586433529854, 0.009185103699564934, -0.016870439052581787, -0.015625707805156708, 0.01154514029622078, 0.01595301926136017, 0.0034238777589052916, 0.014371076598763466, 0.0006209580460563302, 0.006451407913118601, 0.0037859336007386446, 0.005699506029486656, 0.06250409036874771, 0.012486875988543034, -0.01829446479678154, 0.018964167684316635, -0.013496854342520237, -0.016058819368481636, -0.0018412600038573146, 0.0016089099226519465, -0.02494294010102749, 0.015231960453093052, 0.004103247541934252, -0.0852266252040863, 0.05278084799647331, -0.002630793722346425, 0.01072996947914362, 0.024284081533551216, -0.0009688857826404274, 0.01653994992375374, -0.03297501057386398, -0.00436681741848588, 0.048657000064849854, -0.051132235676050186, -0.02761007845401764, -0.019086213782429695, 0.003054655622690916, 0.02637999877333641, 0.0009146570228040218, -0.06411605328321457, -0.033129483461380005, -0.002485870383679867, -0.0013665743172168732, 0.012855589389801025, -0.05517680197954178, -0.031167902052402496, 0.014046372845768929, -0.027704497799277306, 0.020173504948616028, 0.0022651890758424997, 0.007925269193947315, -0.025265377014875412, -0.011770326644182205, 0.029155928641557693, 0.0030484329909086227, -0.007817737758159637, 0.008895380422472954, -0.015241912566125393, 0.03684471547603607, -0.043678924441337585, 0.036289721727371216, 0.012340253219008446, -0.011253437027335167, 0.008687478490173817, -0.07712848484516144, 0.014147835783660412, -0.005457127466797829, 0.038530133664608, -0.013425550423562527, 0.013183411210775375, -0.010588143952190876, 0.0012540374882519245, -0.008211515843868256, 0.007036818657070398, -0.017785049974918365, -0.006357929669320583, 0.008221294730901718, 0.028263209387660027, 0.005092184524983168, 0.02014046348631382, 0.003334551118314266, -0.03262244910001755, 0.017162151634693146, -0.06642603874206543, -0.05130746215581894, -0.025082504376769066, -0.04505443945527077, 0.009979414753615856, 0.024617450311779976, 0.0053315614350140095, -0.07474850863218307, 0.05234907567501068, 0.031919244676828384, 0.061364978551864624, 0.064724862575531, -0.033096570521593094, 0.0015430919593200088, -0.021770115941762924, -0.023221774026751518, -0.09009300917387009, 0.012867282144725323, 0.0554235503077507, -0.00667172996327281, -0.051382385194301605, 0.008403110317885876, -0.009839685633778572, 0.03674466535449028, -0.033924683928489685, -0.017139816656708717, 0.03996038809418678, -0.007005013525485992, -0.008485227823257446, 0.017342744395136833, -0.06083028391003609, -0.0009887323249131441, 0.07529547810554504, -0.039752211421728134, -0.021328961476683617, -0.02930135279893875, 0.06791456043720245, -0.008575950749218464, 0.07658282667398453, -0.05301588401198387, -0.03455003723502159, 0.061970412731170654, 0.03344283998012543, 0.005192203912883997, 0.05728409066796303, -0.04259861260652542, 0.022808754816651344, 0.05451041832566261, -0.017442308366298676, 0.020702088251709938, 0.03139050304889679, -0.01921432465314865, -0.03704122453927994, 0.04108881205320358, 0.005570933688431978, 0.009900817647576332, -0.025079552084207535, 0.07173233479261398, 0.0034210640005767345, -0.07046656310558319, -0.031620610505342484, 0.018445177003741264, -0.038279637694358826, -0.0019722841680049896, -0.037434305995702744, -0.006797060836106539, 0.0027703503146767616, 0.06043284386396408, 0.003294391557574272, 0.057327624410390854, 0.05835648626089096, -0.016751060262322426, 0.014134883880615234, 0.037728067487478256, 0.07392964512109756, 0.0894736498594284, 0.022898856550455093, 0.010623112320899963, 0.059463728219270706, 0.008628248237073421, -0.046629879623651505, -0.04361903294920921, -0.0605248361825943, -0.04440540447831154, 0.017461204901337624, -0.023843877017498016, 0.06541842222213745, -0.007690673694014549, 0.06278236955404282, -0.032888684421777725, 0.023545723408460617, -0.0005290230619721115, 0.0045157833956182, 0.023676104843616486, 0.0217328742146492, 0.025800829753279686, 0.0604938343167305, -0.03674342855811119, -0.026091279461979866, 0.022034820169210434, -0.006442527286708355, -0.03591364994645119, 0.039586491882801056, -0.03625212609767914, 0.03616198152303696, 0.04351329430937767, 0.047697681933641434, 0.08535865694284439, -0.016181811690330505, -0.01981593482196331, 0.021061470732092857, 0.01264288928359747, -0.0234626866877079, 0.03202494978904724, 0.003277136478573084, -0.005623778328299522, 0.0066367159597575665, -0.060182783752679825, -0.0012463984312489629, -0.029336439445614815, -0.07261595875024796, 0.02173350751399994, -0.021155623719096184, 0.010378403589129448, -0.03772727772593498, -0.0404357835650444, 0.003915941808372736, -0.041991546750068665, -0.05571109056472778, -0.026242390275001526, -0.06964791566133499, -0.009153869934380054, 0.029190899804234505, -0.023052742704749107, -0.020540378987789154, -0.012508050538599491, -0.007683353498578072, -0.00021008955081924796, 0.02528427727520466, -0.054167285561561584, -0.010514141991734505, 0.027188360691070557, -0.01419543195515871, -0.005892763379961252, 0.036682985723018646, 0.040975913405418396, -0.014526684768497944, 0.022062184289097786, 0.0026288984809070826, 0.03746533393859863, 0.03145274519920349, 0.023049702867865562, 0.0008964997832663357, -0.07052696496248245, 0.007126299198716879, 0.014018445275723934, 0.017932141199707985, -0.058435361832380295, 0.0012141664046794176, 0.04490348696708679, 0.027685897424817085, 0.02996915765106678, 0.026676183566451073, -0.032367341220378876, -0.011196075938642025, -0.00878623966127634, -0.0038816952146589756, 0.01193190272897482, 0.01838621497154236, -0.01979025825858116, 0.062055543065071106, 0.059169504791498184, -0.040248800069093704, -0.004182007629424334, -0.009935650043189526, 0.00709501001983881, -0.01552288606762886, -0.02306421659886837, -0.07759813964366913, -0.05712573975324631, -0.056874051690101624, -0.05383158102631569, 0.020727593451738358, -0.0034286989830434322, 0.01965288259088993, 0.029594266787171364, 0.028797157108783722, -0.03380296006798744, 0.049701154232025146, -0.024418218061327934, 0.03424902632832527, 0.007659945171326399, -0.040049877017736435, -0.02823050506412983, 0.03494320809841156, 0.006476239301264286, -0.026043131947517395, -0.01333552785217762, -0.04328344017267227, -0.021421946585178375, -0.013424529694020748, 0.026353508234024048, 0.025857746601104736, -0.01677829772233963, 0.0353793129324913 ]
[ -0.06426499038934708, -0.03764108195900917, -0.03903938829898834, -0.016217518597841263, 0.04566042125225067, -0.07559416443109512, -0.021171310916543007, -0.0011407329002395272, 0.0010743183083832264, -0.02233833260834217, 0.024533627554774284, -0.05055059865117073, 0.03381390497088432, -0.005456250626593828, 0.07069661468267441, -0.02287815324962139, -0.01508837565779686, -0.10733956843614578, -0.031015055254101753, 0.053229980170726776, -0.022450178861618042, -0.0069381422363221645, -0.026914017274975777, -0.028879106044769287, -0.021762317046523094, 0.0409921333193779, 0.04319775477051735, -0.02881489135324955, -0.028678137809038162, -0.1745791882276535, 0.015065141953527927, -0.00626241322606802, 0.014333031140267849, 0.02086721919476986, 0.015127596445381641, 0.048491470515728, 0.0560729019343853, -0.041743502020835876, 0.02004522643983364, 0.04609926789999008, 0.02632170543074608, -0.010498312301933765, -0.061794210225343704, -0.008306603878736496, 0.03689957037568092, 0.00848490558564663, -0.05518382042646408, 0.015928374603390694, -0.045374322682619095, -0.0007583527476526797, -0.04465055093169212, -0.004376417025923729, -0.003257906064391136, -0.04507825896143913, 0.019420914351940155, 0.048271726816892624, 0.036290526390075684, 0.06679065525531769, 0.01149341743439436, 0.018877224996685982, 0.011682930402457714, -0.00186078657861799, -0.15091456472873688, 0.11235339194536209, 0.007279129698872566, 0.025987114757299423, -0.05301680788397789, 0.021550683304667473, 0.0006266048294492066, 0.05697741359472275, -0.004209868609905243, -0.014310858212411404, -0.03073331154882908, 0.0536515899002552, 0.00742381252348423, 0.010691962204873562, -0.021798687055706978, 0.02465306594967842, 0.04722026363015175, -0.029304204508662224, -0.051662627607584, -0.0019841135945171118, -0.019801659509539604, -0.015504726208746433, -0.025189977139234543, -0.0025508347898721695, -0.012489580549299717, 0.09589653462171555, 0.035418801009655, 0.024713631719350815, 0.027613217011094093, 0.004756314214318991, 0.018949469551444054, 0.02286153845489025, -0.06996893137693405, -0.0004105969856027514, 0.02127021551132202, 0.030915865674614906, -0.0328967459499836, 0.38450056314468384, -0.004111140500754118, 0.011225014925003052, 0.04141132906079292, 0.06687748432159424, -0.01650978997349739, -0.05455480143427849, -0.00016959953063633293, -0.07215267419815063, 0.04903269559144974, -0.009045029990375042, 0.013869023881852627, -0.01860489882528782, 0.06457825750112534, -0.08222409337759018, 0.005157859530299902, 0.029023442417383194, 0.014586957171559334, -0.0033340619411319494, -0.01924130506813526, 0.014625838957726955, -0.015657512471079826, -0.024579156190156937, 0.04162672907114029, 0.03296917676925659, 0.02623259648680687, 0.028637487441301346, 0.03259791061282158, 0.050471436232328415, 0.02131344936788082, 0.009755131788551807, 0.09499330073595047, 0.0076830280013382435, -0.07230677455663681, 0.018962590023875237, -0.0045728725381195545, 0.002881152555346489, 0.023396620526909828, -0.006441407836973667, -0.010344094596803188, 0.024710969999432564, 0.011879081837832928, -0.033647581934928894, 0.0005348414415493608, -0.015622073784470558, -0.007163448259234428, 0.13872011005878448, -0.006889567244797945, -0.01814938336610794, -0.03191446140408516, -0.04516264796257019, -0.009385858662426472, 0.02531520649790764, -0.004521363414824009, -0.07843878865242004, -0.021556558087468147, 0.0006105968495830894, 0.09778697788715363, -0.01821075938642025, -0.03950473666191101, -0.015076055191457272, -0.044044725596904755, -0.05334562808275223, -0.04846125468611717, 0.07075237482786179, 0.05102241039276123, -0.15785947442054749, -0.00882210023701191, -0.0018688581185415387, -0.022994810715317726, -0.06889037787914276, 0.010318531654775143, -0.0030173645354807377, -0.013591545633971691, 0.004435597453266382, 0.04091235250234604, -0.02163185365498066, -0.0362323634326458, 0.007674527354538441, 0.05101849511265755, -0.0032851037103682756, -0.02855226956307888, -0.0012021948350593448, -0.05184692144393921, -0.006716256961226463, -0.041476037353277206, -0.06394529342651367, -0.06632735580205917, 0.00662864139303565, -0.01251464057713747, -0.010501699522137642, -0.05149322748184204, -0.03144434094429016, -0.06703275442123413, 0.03886941075325012, -0.02645203284919262, -0.011378771625459194, 0.01004714798182249, -0.0120058199390769, -0.0024987172801047564, -0.011409045197069645, 0.030089428648352623, 0.02738671749830246, -0.029180584475398064, 0.029577109962701797, -0.061222441494464874, 0.02743982896208763, 0.060453642159700394, -0.03566506505012512, 0.07445375621318817, 0.032735519111156464, -0.03375230357050896, -0.00922336895018816, 0.012223352678120136, 0.033415839076042175, -0.027249082922935486, -0.0345342755317688, 0.020022490993142128, -0.005873584188520908, 0.015185893513262272, 0.05882513150572777, -0.03290626406669617, -0.006259928457438946, -0.0010137008503079414, -0.3542531728744507, -0.022153688594698906, -0.0051978761330246925, 0.017267506569623947, -0.009267120622098446, -0.05657754838466644, 0.02803550288081169, -0.015948938205838203, 0.008030157536268234, 0.0757971853017807, 0.13355551660060883, 0.010916675440967083, 0.029148036614060402, -0.04923925921320915, 0.0038034720346331596, 0.048995450139045715, -0.04710489138960838, 0.024315228685736656, -0.01589144393801689, 0.04076683521270752, -0.02141418121755123, -0.04670564830303192, -0.03156353533267975, -0.05775248631834984, -0.016741245985031128, -0.03577859327197075, 0.13041305541992188, 0.025747375562787056, 0.021232374012470245, -0.04585358500480652, 0.0597122386097908, 0.020033417269587517, -0.014494909904897213, -0.10832250863313675, -0.011867942288517952, 0.0016363401664420962, 0.04847358167171478, 0.026392437517642975, 0.021281864494085312, -0.00901064183562994, -0.054786913096904755, 0.02712656930088997, -0.01602560468018055, -0.05373585969209671, -0.023407218977808952, 0.02742820233106613, -0.038717471063137054, -0.044149454683065414, -0.005055207759141922, 0.058289915323257446, 0.012969091534614563, 0.0025682474952191114, 0.0287036020308733, 0.03257828205823898, -0.0016162607353180647, -0.017569348216056824, -0.05120917037129402, -0.013632594607770443, 0.011602768674492836, 0.010555535554885864, 0.005857472307980061, 0.04089799523353577, 0.03464531525969505, -0.04847251623868942, 0.01695345714688301, -0.008683969266712666, 0.0008996555698104203, 0.009646600112318993, 0.03635462000966072, 0.000790791236795485, -0.006453204900026321, 0.09394210577011108, -0.010748186148703098, 0.047147542238235474, 0.008163725957274437, 0.036712922155857086, -0.021028801798820496, 0.005732327233999968, 0.05051469802856445, 0.017929013818502426, 0.045559484511613846, 0.007840144447982311, 0.04247879236936569, -0.015315732918679714, -0.001054428517818451, 0.04224560037255287, -0.005485258996486664, -0.00719626247882843, 0.0642307847738266, 0.00773234199732542, -0.005909796338528395, -0.011776730418205261, -0.04745154827833176, -0.016245024278759956, 0.03353721648454666, -0.017124783247709274, -0.28220972418785095, 0.03796118125319481, 0.0013131741434335709, 0.0440027229487896, 0.0025546993128955364, 0.021579384803771973, 0.025223171338438988, -0.018903177231550217, -0.03428584709763527, 0.01863161101937294, 0.021753648295998573, 0.017899921163916588, -0.02378746308386326, -0.0095515176653862, 0.020878763869404793, 0.027784109115600586, 0.03122854046523571, 0.02137186750769615, -0.02915407344698906, 0.0021129108499735594, 0.02986193634569645, -0.01559499278664589, 0.17747387290000916, 0.015671633183956146, 0.022969162091612816, 0.06813828647136688, -0.020411796867847443, 0.019542861729860306, 0.083549365401268, -0.012571928091347218, -0.025508282706141472, -0.008881465531885624, 0.013483704999089241, -0.007467369548976421, 0.05215886980295181, -0.04774515703320503, -0.010052306577563286, -0.006581958848983049, 0.029075002297759056, -0.026839904487133026, -0.026026610285043716, 0.03301852196455002, -0.014374412596225739, 0.013525661081075668, 0.051173172891139984, -0.002432845765724778, -0.011982090771198273, -0.059451326727867126, -0.03999409079551697, 0.019477901980280876, -0.044853392988443375, -0.06820026785135269, -0.013888937421143055, -0.026070432737469673, 0.007744378410279751, 0.08154195547103882, 0.031187957152724266, -0.025236638262867928, 0.0009937643771991134, 0.009499181993305683, -0.02658834308385849, -0.06392783671617508, 0.10060280561447144, -0.00958218239247799, -0.0055582779459655285 ]
[ -0.010777337476611137, 0.06836287677288055, -0.01292068138718605, 0.012996763922274113, -0.014421861618757248, -0.01795932464301586, -0.018516849726438522, 0.0019283981528133154, -0.011148804798722267, -0.02328360639512539, -0.02124171331524849, 0.01830355077981949, 0.02714884839951992, -0.0009565642103552818, 0.04998888820409775, -0.027834782376885414, -0.013885969296097755, 0.006941709201782942, 0.03755120560526848, -0.02307327464222908, -0.0354117788374424, 0.054556090384721756, 0.03352377936244011, 0.008466862142086029, -0.04681287705898285, -0.014554775319993496, -0.0456530898809433, -0.0018107586074620485, 0.020218851044774055, -0.07375045865774155, -0.019921818748116493, -0.02511410415172577, -0.036430906504392624, -0.008621067740023136, -0.02487500011920929, 0.010485726408660412, -0.006754359230399132, -0.012578671798110008, 0.02197279781103134, 0.037969786673784256, 0.019952017813920975, -0.017642291262745857, -0.0021740482188761234, -0.021869687363505363, -0.029270922765135765, 0.003581066383048892, -0.05952026695013046, -0.003262585261836648, -0.0006272204918786883, -0.03219976648688316, -0.006316616199910641, -0.001389503013342619, -0.02206609770655632, 0.007214921060949564, 0.024977559223771095, 0.019088992848992348, -0.04134336858987808, -0.016943855211138725, -0.016193469986319542, -0.004429440479725599, 0.01985027827322483, -0.0061831180937588215, -0.022975487634539604, -0.010323886759579182, 0.009794979356229305, 0.014387781731784344, -0.03294379636645317, 0.015472416765987873, 0.026063598692417145, 0.021786630153656006, -0.020356375724077225, 0.013079933822154999, -0.07069207727909088, -0.04458848759531975, -0.00812478456646204, -0.028580911457538605, 0.003660751273855567, -0.006433856673538685, -0.005670162383466959, -0.00830281712114811, -0.04265609011054039, -0.021940981969237328, -0.02204153500497341, 0.055241525173187256, -0.02012820355594158, -0.047569435089826584, -0.003438520012423396, 0.023024167865514755, 0.006275542546063662, -0.023683108389377594, -0.027093568816781044, 0.005099561531096697, 0.006753426510840654, 0.03179755061864853, -0.08372630178928375, 0.03595190495252609, 0.007346230559051037, -0.028765156865119934, -0.02190389484167099, 0.8180294632911682, 0.009273681789636612, -0.02922193892300129, 0.05655602738261223, 0.0017551943892613053, 0.01959364302456379, 0.0036547337658703327, -0.026591792702674866, -0.019849393516778946, 0.023736203089356422, -0.008463728241622448, -0.008070146664977074, 0.02881362847983837, 0.02350376918911934, 0.033616118133068085, 0.012085127644240856, 0.046992696821689606, 0.028744544833898544, 0.0023018145002424717, 0.0053517878986895084, 0.02689976990222931, 0.03412007912993431, 0.015122680924832821, 0.01779884472489357, 0.00733573455363512, 0.017429325729608536, -0.19411498308181763, 0.044646475464105606, -7.11074238696061e-33, 0.04925648495554924, -0.03126752749085426, 0.03535746783018112, -0.018399067223072052, 0.05217243358492851, 0.03756725415587425, -0.019229590892791748, -0.007127606775611639, -0.011992507614195347, -0.026373233646154404, -0.023455694317817688, 0.01035649050027132, 0.0201844722032547, -0.010517680086195469, 0.028248438611626625, -0.013597694225609303, 0.0019765617325901985, 0.06364631652832031, 0.015608095563948154, 0.015064056031405926, 0.03200892359018326, 0.015495482832193375, 0.022680358961224556, 0.05264141410589218, 0.013911925256252289, 0.04585523158311844, -0.028092985972762108, -0.002797938184812665, -0.019192036241292953, -0.05069855600595474, -0.022109294310212135, 0.01632189005613327, -0.016784103587269783, -0.029873447492718697, 0.03301210701465607, -0.0512426421046257, -0.022718986496329308, 0.008393554948270321, -0.056257449090480804, -0.05743073299527168, -0.043269891291856766, 0.017530981451272964, -0.01437473576515913, -0.013152103871107101, -0.03033393807709217, -0.0012638922780752182, -0.03346084803342819, 0.02109328843653202, 0.006670225877314806, 0.04352245107293129, -0.015472792088985443, -0.010870699770748615, -0.021939612925052643, 0.02511085756123066, -0.02316337823867798, 0.014754838310182095, 0.023098696023225784, 0.038226574659347534, 0.01559789851307869, -0.016526037827134132, 0.0296765323728323, -0.02557278797030449, 0.019681289792060852, 0.043756261467933655, 0.015914760529994965, 0.005756191909313202, 0.011290708556771278, 0.032205093652009964, 0.01229097694158554, 0.026590440422296524, -0.04692936688661575, 0.05742586404085159, -0.029212823137640953, -0.00615510530769825, 0.025530248880386353, -0.050995487719774246, 0.010104774497449398, -0.0235692597925663, 0.016323691233992577, 0.05996469780802727, 0.04425978660583496, -0.008964327163994312, -0.009334102272987366, -0.04270751029253006, -0.022277258336544037, 0.005382491275668144, 0.029396504163742065, 0.008023230358958244, 0.0029776052106171846, 0.015731744468212128, 0.003812359180301428, 0.025248315185308456, 0.008583050221204758, -0.03695345297455788, -0.024035464972257614, 7.20835837658877e-33, -0.007815374992787838, -0.04698959365487099, 0.005163647700101137, 0.015257674269378185, 0.05419185385107994, -0.04050741717219353, 0.03421090915799141, 0.0022810373920947313, -0.0288421381264925, 0.06430549174547195, -0.02443017065525055, -0.019860414788126945, 0.015287789516150951, 0.021042559295892715, 0.05448378995060921, 0.017876457422971725, 0.014628245495259762, 0.008477785624563694, 0.05979841575026512, 0.010064255446195602, -0.033237576484680176, -0.002055393299087882, -0.03854774311184883, -0.0024716358166188, 0.013148631900548935, 0.020317168906331062, -0.035181429237127304, -0.01847623847424984, -0.017150867730379105, -0.00619608536362648, -0.014824790880084038, -0.018299927935004234, -0.027944888919591904, -0.013387871906161308, 0.041008178144693375, 0.025888819247484207, -0.0017215388361364603, -0.0008780424250289798, 0.03873273357748985, -0.03545214608311653, 0.05435469001531601, 0.009103240445256233, -0.01351829245686531, 0.04453771933913231, 0.03742310777306557, 0.012602362781763077, -0.04329881817102432, 0.023325124755501747, -0.04323507845401764, 0.01616481877863407, -0.016495946794748306, 0.011365857906639576, -0.006523695774376392, 0.02187843807041645, 0.018492022529244423, -0.036405324935913086, 0.010077068582177162, 0.042159587144851685, -0.028674976900219917, -0.012352469377219677, -0.025061646476387978, -0.04138251021504402, -0.03107069991528988, 0.0267241969704628, -0.03260160610079765, -0.023175880312919617, -0.049898065626621246, -0.0066882711835205555, 0.014153273776173592, 0.025749070569872856, -0.00811605155467987, -0.04110443592071533, -0.020253978669643402, 0.01467890664935112, 0.01544866431504488, 0.0023096883669495583, -0.024748217314481735, 0.015861721709370613, -0.013578450307250023, 0.038183439522981644, 0.006570801604539156, 0.03931867703795433, 0.0202731154859066, 0.017223602160811424, 0.0018654101295396686, 0.00896251481026411, -0.016660377383232117, 0.03273610398173332, 0.017117736861109734, 0.0034867599606513977, 0.00572039233520627, -0.008796228095889091, -0.04044671729207039, 0.029265033081173897, 0.006415140349417925, -1.2760475343043254e-8, -0.03666079044342041, 0.02177618071436882, -0.006319045554846525, 0.01603487692773342, 0.05994296073913574, 0.02737058326601982, -0.014656441286206245, -0.0060037048533558846, -0.02746809646487236, 0.02125406078994274, 0.03427499160170555, -0.03699491173028946, -0.004795928485691547, 0.020998436957597733, 0.012290426529943943, -0.031231475993990898, -0.027523791417479515, -0.020648909732699394, 0.023483645170927048, 0.0045014480128884315, 0.03426072373986244, 0.023027054965496063, 0.0054099541157484055, -0.016810769215226173, -0.013628806918859482, -0.0013412742409855127, 0.042093995958566666, -0.06357380747795105, -0.03476704657077789, -0.05314048379659653, -0.005303738173097372, -0.037690844386816025, -0.048703331500291824, 0.012647004798054695, -0.038395918905735016, -0.018862564116716385, 0.019870618358254433, 0.03380656987428665, 0.020000744611024857, 0.020186342298984528, -0.009992494247853756, 0.004404905717819929, -0.011115639470517635, -0.027875496074557304, -0.0038148784078657627, 0.017306320369243622, -0.023395204916596413, 0.01917865313589573, 0.026747938245534897, -0.02711338922381401, -0.011011120863258839, -0.04448656737804413, 0.03655903413891792, -0.02147800289094448, 0.025157518684864044, -0.000044052379962522537, -0.0005412609898485243, -0.040438856929540634, -0.014439800754189491, 0.0000720535172149539, 0.009515123441815376, -0.0049055274575948715, -0.022339969873428345, -0.025045160204172134 ]
go-vs-python-parsing-a-json-response-from-a-http-api
https://markhneedham.com/blog/2017/01/21/go-vs-python-parsing-a-json-response-from-a-http-api
false
2017-01-31 05:57:11
Go: Multi-threaded writing to a CSV file
[ "go", "golang" ]
[ "Go" ]
As part of a Go script I've been working on I wanted to write to a CSV file from multiple Go routines, but realised that the built in CSV Writer isn't thread safe. My first attempt at writing to the CSV file looked like this: [source,go] ---- package main import ( "encoding/csv" "os" "log" "strconv" ) func main() { csvFile, err := os.Create("/tmp/foo.csv") if err != nil { log.Panic(err) } w := csv.NewWriter(csvFile) w.Write([]string{"id1","id2","id3"}) count := 100 done := make(chan bool, count) for i := 0; i < count; i++ { go func(i int) { w.Write([]string {strconv.Itoa(i), strconv.Itoa(i), strconv.Itoa(i)}) done <- true }(i) } for i:=0; i < count; i++ { <- done } w.Flush() } ---- This script should output the numbers from 0-99 three times on each line. Some rows in the file are written correctly, but as we can see below, some aren't: [source,text] ---- 40,40,40 37,37,37 38,38,38 18,18,39 ^@,39,39 ... 67,67,70,^@70,70 65,65,65 73,73,73 66,66,66 72,72,72 75,74,75,74,75 74 7779^@,79,77 ... ---- One way that we can make our script safe is to use a mutex whenever we're calling any methods on the CSV writer. I wrote the following code to do this: [source,go] ---- type CsvWriter struct { mutex *sync.Mutex csvWriter *csv.Writer } func NewCsvWriter(fileName string) (*CsvWriter, error) { csvFile, err := os.Create(fileName) if err != nil { return nil, err } w := csv.NewWriter(csvFile) return &CsvWriter{csvWriter:w, mutex: &sync.Mutex{}}, nil } func (w *CsvWriter) Write(row []string) { w.mutex.Lock() w.csvWriter.Write(row) w.mutex.Unlock() } func (w *CsvWriter) Flush() { w.mutex.Lock() w.csvWriter.Flush() w.mutex.Unlock() } ---- We create a mutex when +++<cite>+++NewCsvWriter+++</cite>+++ instantiates +++<cite>+++CsvWriter+++</cite>+++ and then use it in the +++<cite>+++Write+++</cite>+++ and +++<cite>+++Flush+++</cite>+++ functions so that only one go routine at a time can access the underlying +++<cite>+++CsvWriter+++</cite>+++. We then tweak the initial script to call this class instead of calling CsvWriter directly: [source,go] ---- func main() { w, err := NewCsvWriter("/tmp/foo-safe.csv") if err != nil { log.Panic(err) } w.Write([]string{"id1","id2","id3"}) count := 100 done := make(chan bool, count) for i := 0; i < count; i++ { go func(i int) { w.Write([]string {strconv.Itoa(i), strconv.Itoa(i), strconv.Itoa(i)}) done <- true }(i) } for i:=0; i < count; i++ { <- done } w.Flush() } ---- And now if we inspect the CSV file all lines have been written successfully: [source,text] ---- ... 25,25,25 13,13,13 29,29,29 32,32,32 26,26,26 30,30,30 27,27,27 31,31,31 28,28,28 34,34,34 35,35,35 33,33,33 37,37,37 36,36,36 ... ---- That's all for now. If you have any suggestions for a better way to do this do let me know in the comments or on twitter - I'm https://twitter.com/markhneedham[@markhneedham]
Writing to a CSV from multiple threads in the Go programming language.
null
[ 0.01825459487736225, -0.01573951728641987, -0.034911882132291794, 0.015924740582704544, 0.07651156932115555, -0.0011931132758036256, 0.01475631445646286, 0.04960301145911217, 0.001452258788049221, -0.01961146481335163, 0.020952722057700157, -0.015220224857330322, -0.0991947278380394, 0.03417152166366577, 0.004875917453318834, 0.051390208303928375, 0.08655864000320435, 0.0013483912916854024, 0.02116323634982109, -0.005933790933340788, 0.004493895452469587, 0.05842716991901398, -0.021910494193434715, 0.039152003824710846, -0.002502614865079522, -0.01839720644056797, -0.03164738044142723, -0.013276668265461922, -0.026793085038661957, -0.013055418618023396, 0.04267258569598198, 0.029802048578858376, 0.012184785678982735, 0.00133311259560287, 0.020482007414102554, -0.016798218712210655, -0.028259268030524254, 0.03557883948087692, -0.016100313514471054, 0.02670540101826191, -0.06597787886857986, -0.006327061913907528, -0.04322308301925659, -0.01650482602417469, -0.022562408819794655, 0.03349140286445618, 0.01140626147389412, 0.0284299086779356, -0.0308246873319149, -0.008336531929671764, -0.09208653122186661, 0.03646702319383621, -0.019071180373430252, -0.028431672602891922, 0.027567647397518158, 0.04693979397416115, 0.030712785199284554, -0.05639539659023285, 0.025414856150746346, -0.039792612195014954, -0.021182026714086533, -0.02349787764251232, -0.02349240891635418, 0.021365230903029442, 0.018084902316331863, -0.024934429675340652, -0.003532472299411893, 0.054004210978746414, -0.03624531626701355, -0.05293401703238487, -0.026702893897891045, 0.010890997014939785, -0.029046310111880302, -0.007542242296040058, 0.00037488515954464674, -0.04611750692129135, 0.013152708299458027, 0.05668909475207329, 0.016994796693325043, 0.06255108118057251, -0.00255321036092937, 0.0019479877082630992, 0.02948486991226673, 0.01376444473862648, 0.02950587496161461, -0.028111569583415985, -0.04771406948566437, 0.0014265300706028938, -0.03657121583819389, 0.05983850732445717, 0.0075191231444478035, -0.0021067431662231684, -0.042134229093790054, -0.0028183527756482363, -0.03799590468406677, -0.0198241975158453, -0.02742798998951912, 0.030713194981217384, 0.005100127309560776, 0.011700033210217953, -0.05626736581325531, -0.003336973488330841, 0.025393174961209297, 0.030252285301685333, -0.06155862286686897, -0.007913347333669662, -0.01608656905591488, -0.016083519905805588, 0.015466065146028996, -0.0014775694580748677, -0.0085409265011549, -0.03650383651256561, -0.043612271547317505, -0.027452195063233376, -0.09915047138929367, 0.04593953862786293, 0.0022652470506727695, -0.03279491141438484, 0.001573518617078662, 0.00729324109852314, 0.02335197664797306, 0.04391491040587425, 0.002779749920591712, 0.0780339241027832, -0.019085334613919258, 0.022113149985671043, -0.003928645979613066, 0.06045481562614441, 0.015048169530928135, -0.08289317786693573, -0.022489668801426888, 0.06542734056711197, -0.019971368834376335, 0.006692574825137854, 0.007607372011989355, 0.015925202518701553, -0.02995613031089306, 0.02631481923162937, 0.02919783443212509, 0.04232185706496239, 0.03718166798353195, -0.03445587679743767, 0.020585859194397926, 0.007545742206275463, 0.010144071653485298, 0.017239850014448166, -0.008162112906575203, -0.0017088106833398342, -0.01694408431649208, 0.040699075907468796, 0.01207108236849308, -0.003312378656119108, 0.09627337753772736, -0.02588406577706337, -0.0066331736743450165, 0.09170669317245483, -0.008989868685603142, 0.05713292211294174, -0.029485376551747322, 0.002340763108804822, 0.0390203483402729, 0.05684984102845192, 0.009727069176733494, 0.004095112904906273, 0.001223310362547636, 0.0075461370870471, -0.002191036008298397, 0.02746068499982357, -0.033625345677137375, -0.01442908775061369, -0.030165908858180046, -0.00626708660274744, 0.049461331218481064, -0.03995060920715332, -0.0090477354824543, 0.014021164737641811, 0.07511311024427414, 0.036373525857925415, 0.07681842893362045, -0.003878852818161249, -0.0798092782497406, 0.03014797531068325, -0.029145697131752968, 0.023453276604413986, 0.002286270260810852, 0.005777922924607992, 0.06499644368886948, 0.00779089517891407, -0.0140454126521945, 0.013321595266461372, -0.05550359934568405, -0.0625472366809845, -0.023839255794882774, 0.008418501354753971, 0.015624581836163998, -0.03745650500059128, 0.0007396402070298791, 0.07042845338582993, 0.03846849873661995, 0.012091458775103092, -0.02010817639529705, -0.0370219387114048, 0.012979788705706596, -0.04933144524693489, -0.075558602809906, 0.05357502028346062, 0.04369085282087326, -0.017861178144812584, -0.027656983584165573, 0.018973683938384056, -0.02534758485853672, 0.06044013798236847, 0.06369319558143616, -0.0008253796258941293, 0.026930546388030052, 0.021234311163425446, 0.033820249140262604, -0.010066291317343712, 0.04132877290248871, -0.07805153727531433, 0.004793813917785883, 0.0004926740657538176, 0.00954353529959917, -0.000838613195810467, -0.018188804388046265, 0.14789824187755585, 0.03204404190182686, -0.011223122477531433, -0.07118471711874008, 0.005743338260799646, -0.025273144245147705, -0.06782453507184982, -0.011250689625740051, 0.007649376522749662, -0.02500247023999691, 0.057428110390901566, -0.013530946336686611, 0.03727170079946518, -0.0013802412431687117, -0.023472679778933525, 0.02344130165874958, 0.06756692379713058, -0.023995416238904, 0.061272505670785904, 0.018168369308114052, -0.02340194582939148, 0.02594085782766342, -0.04220245033502579, -0.05562596768140793, -0.00751381553709507, 0.008664596825838089, -0.0032827919349074364, 0.06584976613521576, -0.03102564439177513, -0.0702977403998375, -0.017681768164038658, -0.058616410940885544, 0.017000436782836914, 0.04849116504192352, 0.031519997864961624, -0.011031552217900753, 0.06094428151845932, -0.02713925763964653, -0.004311257041990757, -0.03357730433344841, -0.03478521481156349, -0.033615510910749435, 0.003570294938981533, 0.014338097535073757, -0.009842967614531517, 0.017748026177287102, 0.011202246882021427, 0.02629297412931919, 0.004580215085297823, 0.008751376532018185, 0.0025318649131804705, 0.04744463041424751, -0.012394445016980171, -0.008196202106773853, -0.04613003134727478, 0.02543306164443493, 0.0471404530107975, -0.02748541533946991, -0.02683880925178528, 0.041652612388134, -0.051565688103437424, 0.028405293822288513, -0.057052891701459885, -0.060217298567295074, -0.0015043115708976984, -0.026172401383519173, 0.011269776150584221, -0.03002445586025715, 0.006456094328314066, 0.021999523043632507, 0.005730823148041964, 0.0006615674355998635, 0.03515584021806717, 0.021880313754081726, 0.024141596630215645, 0.04282417520880699, 0.01993180625140667, 0.07908366620540619, -0.014781867153942585, -0.04829462617635727, -0.046124618500471115, 0.004895235877484083, -0.04143570363521576, -0.23625507950782776, 0.053940728306770325, -0.04009588807821274, -0.028532586991786957, 0.04868141561746597, 0.016834571957588196, 0.02505996637046337, -0.03497254103422165, -0.015302309766411781, 0.026383569464087486, -0.031129492446780205, -0.015319440513849258, -0.047942373901605606, 0.04149902984499931, 0.030820408836007118, 0.06348412483930588, -0.03532911092042923, -0.06031870096921921, 0.009209142997860909, 0.04777480289340019, 0.016579220071434975, -0.050586868077516556, -0.008092828094959259, 0.017693808302283287, 0.014536246657371521, 0.028381472453475, -0.05215000733733177, 0.025598108768463135, -0.044461898505687714, -0.04108906537294388, -0.004991152323782444, -0.04064052551984787, 0.016093971207737923, -0.03720197454094887, -0.01850530132651329, -0.03495803102850914, -0.0022075949236750603, 0.028860267251729965, 0.003693884937092662, 0.007238898426294327, -0.006198989227414131, -0.04263942688703537, -0.009330985136330128, -0.020044870674610138, 0.07141943275928497, 0.019075917080044746, -0.0350385382771492, 0.005880285054445267, -0.03073291853070259, 0.09135329723358154, -0.00637378403916955, -0.03688301891088486, -0.028478020802140236, 0.025518013164401054, -0.027394592761993408, 0.011547415517270565, -0.006833148188889027, 0.02577313221991062, -0.013982297852635384, -0.005529175046831369, -0.027489108964800835, -0.06965353339910507, 0.013849484734237194, -0.05317021906375885, -0.027358807623386383, -0.02693818509578705, -0.05288856104016304, -0.0022413828410208225, 0.06176130101084709, 0.056016210466623306, -0.035614121705293655, 0.012018315494060516, 0.004241949878633022, -0.10257625579833984, -0.01848764531314373, -0.04355600103735924, -0.01889144815504551, -0.008307410404086113, -0.01000410970300436, 0.042690981179475784, -0.04216489940881729, -0.04753344878554344, 0.04381768777966499, 0.018595075234770775, 0.0412956103682518, -0.027496641501784325, 0.0200797189027071, -0.016527492552995682, -0.030002199113368988, -0.0075440374203026295, 0.07515620440244675, -0.007811077870428562, 0.035013724118471146, 0.008332327008247375, -0.011661587283015251, 0.04145907983183861, 0.019728345796465874, 0.015359885059297085, 0.023200739175081253, 0.01899990439414978, 0.08901076763868332, -0.03594358637928963, -0.00581304170191288, -0.10829746723175049, -0.00600212998688221, -0.006396407727152109, -0.06888873875141144, 0.05334116891026497, 0.014441735111176968, 0.029868194833397865, 0.008885732851922512, -0.0015445585595443845, 0.05257999151945114, -0.07025915384292603, -0.0010412943083792925, -0.0026603785809129477, 0.039691291749477386, 0.00737977959215641, 0.010856794193387032, -0.048127658665180206, -0.055538564920425415, 0.015188129618763924, 0.04524237662553787, -0.005307693500071764, -0.046597398817539215, -0.005671343300491571, 0.02388169802725315, -0.015751000493764877, 0.010728348977863789, 0.003520896192640066, -0.04859136417508125, -0.004924229811877012, 0.047198083251714706, -0.04896809905767441, -0.007808898109942675, -0.04119762033224106, -0.06280571222305298, -0.022056644782423973, -0.05224968492984772, 0.02658289670944214, -0.0007854839786887169, 0.00032605204614810646, -0.0237986221909523, -0.0024484237655997276, 0.039749301970005035, -0.03634810820221901, 0.027267711237072945, 0.017267731949687004, 0.01792575791478157, 0.011597351171076298, 0.016919201239943504, -0.06216549873352051, 0.010515090078115463, -0.017238210886716843, -0.05212182551622391, 0.0030590223614126444, 0.03613970801234245, 0.00419321795925498, -0.029243936762213707, -0.034801531583070755, 0.05814248323440552, -0.02439345046877861, -0.020902324467897415, -0.004915421828627586, -0.007431888487190008, 0.03605126217007637, 0.0069233570247888565, 0.023196175694465637, -0.004003836307674646, -0.0005112420185469091, -0.007349648978561163, 0.010074179619550705, -0.02858162671327591, 0.025868088006973267, 0.014603807590901852, 0.01731349527835846, 0.029490649700164795, -0.004518045578151941, 0.0017214665422216058, 0.02703094854950905, -0.0023281790781766176, -0.012739362195134163, -0.015785805881023407, -0.003448098199442029, 0.03649608790874481, 0.000011890084351762198, -0.018279248848557472, 0.0014107454335317016, -0.016871018335223198, -0.008946525864303112, -0.028954636305570602, -0.024032671004533768, -0.027452273294329643, 0.008551482111215591, -0.009443571791052818, -0.060898300260305405, 0.04490204155445099, 0.0419657863676548, 0.007580136880278587, 0.0019258916145190597, 0.008275520987808704, -0.009979675523936749, -0.018632732331752777, -0.015858694911003113, 0.045335397124290466, -0.055347152054309845, -0.006323180627077818, -0.024157781153917313, 0.029660681262612343, 0.0330810472369194, 0.01671413704752922, -0.016720090061426163, -0.010264978744089603, -0.003299493109807372, 0.022248584777116776, -0.008052164688706398, -0.049574002623558044, -0.051672644913196564, -0.01149816531687975, -0.02812299318611622, -0.018483730033040047, -0.023345159366726875, 0.014375205151736736, -0.034304872155189514, -0.030274074524641037, -0.0008843518444336951, -0.02162737399339676, -0.019147373735904694, 0.06273460388183594, -0.02778221294283867, 0.022215109318494797, -0.021126801148056984, 0.046496279537677765, 0.0008217289578169584, -0.029055239632725716, -0.05087015777826309, -0.019850239157676697, 0.01053614728152752, -0.01964513584971428, 0.03206905722618103, 0.006417716387659311, -0.002052917843684554, -0.014503950253129005, 0.008730558678507805, -0.012838003225624561, 0.01844089850783348, -0.05108604580163956, -0.03681553527712822, -0.004889465402811766, 0.06340661644935608, 0.014606235548853874, 0.03142239898443222, 0.01852997951209545, -0.04632057994604111, 0.04457741975784302, -0.08685998618602753, -0.029510265216231346, -0.03825249522924423, -0.0392887219786644, 0.04680269584059715, 0.015496005304157734, 0.01310903299599886, -0.054101187735795975, 0.016087012365460396, 0.02918318100273609, 0.051411937922239304, 0.05832405760884285, -0.004983094055205584, 0.02962677553296089, -0.014876549132168293, 0.013469045050442219, -0.09214262664318085, 0.05944471433758736, 0.03665097802877426, -0.02214653603732586, -0.016595203429460526, -0.03792853653430939, 0.002919921651482582, 0.02622903883457184, -0.029617514461278915, -0.03019733354449272, 0.016942059621214867, -0.0033465982414782047, 0.013636672869324684, 0.0030263669323176146, -0.02550555020570755, 0.02965558134019375, 0.04417326673865318, -0.05669747665524483, -0.016356108710169792, -0.04393857344985008, 0.05892028287053108, 0.015288235619664192, 0.042534153908491135, -0.04333999752998352, -0.038558315485715866, 0.04036945104598999, 0.01786472275853157, 0.00579778291285038, 0.034969065338373184, -0.03351312130689621, 0.029858507215976715, 0.04644080623984337, -0.04037359356880188, 0.03418978676199913, 0.010965037159621716, 0.0056686969473958015, -0.055712584406137466, -0.023464364930987358, 0.04921787977218628, 0.014494736678898335, -0.03105105087161064, 0.06969030946493149, 0.0038574866484850645, -0.03757074475288391, -0.05745465308427811, 0.03191320598125458, -0.06044655665755272, 0.012476569972932339, -0.028869448229670525, 0.003029668005183339, -0.03210480138659477, 0.05736012011766434, 0.0064615230076014996, -0.010691504925489426, 0.06044057756662369, -0.057439420372247696, -0.022585861384868622, -0.002591275842860341, 0.0658544972538948, 0.0672110989689827, 0.025309331715106964, -0.010224055498838425, 0.0445152223110199, -0.01406449917703867, -0.04244499281048775, -0.013398970477283001, -0.03986772522330284, -0.0076291621662676334, -0.008366266265511513, 0.0005429443554021418, 0.06844893842935562, -0.021123873069882393, 0.07662885636091232, -0.020222283899784088, 0.009016827680170536, -0.003589379834011197, 0.028502369299530983, -0.009058553725481033, 0.03450402989983559, 0.03039885312318802, 0.02447429671883583, 0.009233832359313965, 0.002477554138749838, 0.014031689614057541, -0.004209832288324833, -0.021304462105035782, 0.03837054967880249, -0.020997140556573868, 0.016176316887140274, 0.02474304474890232, 0.023595726117491722, 0.08101629465818405, -0.014295285567641258, 0.01225045882165432, -0.032686810940504074, 0.036895666271448135, -0.016161547973752022, 0.0044332873076200485, -0.005626257974654436, -0.026046091690659523, -0.0023593727964907885, -0.02077442966401577, -0.0070790695026516914, -0.05003570392727852, -0.07207190990447998, -0.003211746923625469, 0.0005489234463311732, 0.020256783813238144, 0.020817598327994347, -0.04227057099342346, -0.008665310218930244, -0.038121357560157776, -0.0522344596683979, -0.07986150681972504, -0.06914465129375458, -0.008291741833090782, 0.02721022069454193, -0.033671699464321136, -0.0401180163025856, -0.02718106284737587, -0.009740102104842663, -0.017695799469947815, 0.01864154264330864, -0.010925398208200932, -0.019272632896900177, 0.04276181384921074, 0.013848512433469296, -0.0038342555053532124, 0.02196638658642769, 0.044889241456985474, -0.018772251904010773, 0.0010468442924320698, 0.020586928352713585, 0.0003138512547593564, 0.03648451715707779, -0.012333434075117111, 0.014529798179864883, -0.06218256056308746, 0.03257640451192856, 0.0225687138736248, 0.02446296066045761, -0.08737874776124954, 0.028481893241405487, 0.051677051931619644, 0.012008348479866982, 0.04449696093797684, 0.014400451444089413, 0.011864174157381058, -0.03635282814502716, -0.008517375215888023, -0.012352453544735909, 0.031195318326354027, 0.0386534184217453, 0.0025069278199225664, 0.08343037962913513, 0.05290032550692558, -0.014325510710477829, -0.010588811710476875, 0.014327174983918667, -0.0171184279024601, -0.004466732032597065, -0.027257978916168213, -0.04230183735489845, -0.06203750520944595, -0.04732179641723633, -0.007183996960520744, 0.01690090447664261, -0.004380457103252411, -0.0007652622880414128, 0.033661384135484695, 0.029585454612970352, -0.03243692219257355, 0.0163991991430521, -0.02839590050280094, -0.01584332250058651, -0.030093461275100708, -0.06450970470905304, -0.01908506080508232, 0.05670314282178879, -0.0115848733112216, -0.019143259152770042, -0.014017789624631405, -0.02992193214595318, 0.028370358049869537, 0.029681123793125153, 0.0010747681371867657, 0.028064707294106483, -0.02915131114423275, 0.04357757791876793 ]
[ -0.07179197669029236, -0.035912737250328064, -0.009003695100545883, -0.04918261989951134, 0.04498676210641861, -0.045626647770404816, -0.023854568600654602, -0.010218353010714054, -0.0027484968304634094, 0.0173858143389225, -0.009520284831523895, -0.04969571530818939, 0.004232856445014477, -0.017599299550056458, 0.0022932474967092276, -0.03628699108958244, -0.019604666158556938, -0.07645754516124725, -0.018790964037179947, 0.07430603355169296, -0.01755049079656601, -0.04830033704638481, -0.04838412255048752, -0.06417381763458252, -0.013100150972604752, 0.0010044361697509885, 0.03708353638648987, -0.06331328302621841, -0.03996279463171959, -0.22186830639839172, -0.02879209630191326, -0.008273267187178135, -0.015166587196290493, -0.008907672017812729, 0.01399532426148653, -0.010458306409418583, 0.044827625155448914, -0.02334456890821457, 0.001930930302478373, 0.045882660895586014, 0.021038252860307693, 0.015062261372804642, -0.04806436598300934, -0.036405500024557114, 0.00027258662157692015, -0.003711396362632513, 0.003965406678617001, -0.03387603536248207, 0.03061838448047638, 0.039055101573467255, -0.06606991589069366, 0.007897679693996906, -0.008349998854100704, -0.037131283432245255, -0.028178049251437187, 0.000392301706597209, 0.051446229219436646, 0.05222858116030693, -0.012480293400585651, 0.0010200953111052513, 0.013526324182748795, 0.0003045207995455712, -0.14258629083633423, 0.10355283319950104, 0.018869075924158096, 0.027062857523560524, -0.04162569344043732, 0.010014694184064865, -0.03381117060780525, 0.08265451341867447, -0.030950281769037247, -0.03468621149659157, -0.06744743883609772, 0.10506263375282288, -0.0006160440389066935, -0.023720644414424896, -0.033545151352882385, 0.0018920475849881768, 0.030981548130512238, -0.014561438001692295, -0.05355716869235039, -0.02469407394528389, 0.012767900712788105, 0.005636144895106554, -0.03908868134021759, 0.012963729910552502, -0.005160333588719368, 0.07180256396532059, 0.03874441608786583, 0.004110982175916433, 0.03515833616256714, -0.01729457452893257, 0.06414038687944412, 0.01754606142640114, -0.074459969997406, -0.029324593022465706, 0.024571740999817848, 0.02272317372262478, -0.000978009426034987, 0.38316142559051514, -0.074887216091156, -0.03466350957751274, 0.02167440950870514, 0.05708208307623863, 0.031178101897239685, 0.01329432986676693, 0.012182778678834438, -0.007570317946374416, -0.006138529162853956, -0.03847961872816086, 0.011308414861559868, -0.008291799575090408, 0.06647118926048279, -0.05992375686764717, 0.0168993528932333, 0.03899163380265236, 0.017745669931173325, -0.02246641367673874, -0.026631643995642662, 0.03720151260495186, 0.030353911221027374, -0.01838456653058529, 0.02929326705634594, 0.021532408893108368, 0.043116167187690735, -0.025013355538249016, 0.04210642725229263, 0.08609553426504135, 0.04057840257883072, -0.01030772179365158, 0.06295638531446457, -0.014994414523243904, -0.060152679681777954, 0.026162313297390938, 0.013759291730821133, -0.017345288768410683, 0.012675697915256023, -0.021255647763609886, 0.015236093662679195, -0.05327858403325081, 0.049927663058042526, -0.006331176031380892, 0.018034178763628006, -0.014925561845302582, 0.0010666860034689307, 0.10157478600740433, -0.026041371747851372, -0.022358395159244537, -0.00441908510401845, -0.07639405876398087, 0.0009888808708637953, 0.025309782475233078, 0.001347999437712133, -0.10130058228969574, 0.006116995122283697, 0.025345902889966965, 0.029379403218626976, -0.0015447260811924934, -0.06057197228074074, -0.03740929067134857, -0.06239626184105873, -0.03054213710129261, -0.040131114423274994, 0.031160758808255196, 0.043798767030239105, -0.07205343246459961, -0.03846330568194389, 0.027273736894130707, 0.012227630242705345, -0.041757792234420776, 0.0011819979408755898, -0.03577166795730591, -0.04736245051026344, -0.0444025956094265, 0.020154159516096115, -0.01207681279629469, -0.03188914433121681, 0.00345491711050272, 0.06096173822879791, 0.05807485431432724, 0.005436318460851908, 0.04655233025550842, -0.02594999223947525, 0.02623882330954075, -0.016115441918373108, -0.07784032821655273, -0.03676006942987442, -0.012523338198661804, -0.004454928915947676, 0.03002842888236046, -0.025668522343039513, -0.04383307322859764, -0.0331624411046505, 0.033611148595809937, -0.02580723725259304, 0.027449581772089005, 0.03503526747226715, 0.008967897854745388, 0.008773066103458405, -0.05566834285855293, 0.04202672466635704, 0.023878198117017746, -0.012589066289365292, 0.04204624891281128, -0.04147595912218094, -0.01348606776446104, 0.043892309069633484, -0.038220733404159546, 0.03205225616693497, 0.0595446452498436, -0.024326015263795853, -0.01225385069847107, -0.003089111763983965, 0.01197870634496212, -0.05003158375620842, -0.017420994117856026, -0.02514081634581089, 0.03120877407491207, 0.040896326303482056, 0.024761352688074112, -0.0162595734000206, -0.04598595201969147, 0.001737584243528545, -0.35633760690689087, -0.03855239972472191, -0.0019177182111889124, -0.0029293375555425882, 0.03258822485804558, -0.0227596927434206, -0.012373196892440319, -0.02161610685288906, -0.04413721710443497, 0.017012573778629303, 0.10938309878110886, -0.022447632625699043, -0.02540704235434532, -0.09975752979516983, 0.007199358660727739, 0.030244050547480583, -0.03682297095656395, -0.042712271213531494, 0.007790690753608942, 0.04073234647512436, 0.012523130513727665, -0.00815283041447401, -0.016012035310268402, -0.0289826150983572, 0.017255546525120735, -0.031729280948638916, 0.0994442030787468, -0.025481246411800385, 0.1240839809179306, -0.04091246426105499, 0.03362547606229782, 0.006021889857947826, 0.017513863742351532, -0.08058632910251617, -0.01896822080016136, -0.006304267793893814, 0.0044871666468679905, 0.049175482243299484, 0.028785916045308113, 0.01684717833995819, -0.03526933491230011, 0.03758997097611427, -0.020035279914736748, -0.024556515738368034, -0.011577494442462921, 0.01583157293498516, 0.008085019886493683, -0.052625250071287155, -0.006785996723920107, 0.06547477096319199, 0.01078621856868267, 0.014126051217317581, 0.0353306382894516, 0.06736501306295395, 0.04270307719707489, -0.024795934557914734, -0.06648406386375427, 0.021665025502443314, -0.00263583124615252, 0.006344669032841921, 0.020721398293972015, 0.021116256713867188, 0.046411771327257156, -0.02503289468586445, -0.014726403169333935, 0.0102347731590271, 0.03046012669801712, -0.0031132460571825504, 0.04951979219913483, 0.0015619155019521713, -0.029294604435563087, 0.10053443163633347, -0.03415699675679207, 0.020655103027820587, 0.013875853270292282, 0.061481937766075134, -0.010712028481066227, 0.0020775285083800554, 0.0029670463409274817, -0.028890391811728477, 0.061883337795734406, 0.0036470352206379175, 0.023916883394122124, -0.024566633626818657, 0.055621981620788574, 0.06402718275785446, -0.011219081468880177, 0.03943649306893349, 0.03996886685490608, 0.012561921961605549, 0.007797665894031525, -0.038299188017845154, -0.015484820120036602, -0.016631755977869034, 0.06470920145511627, -0.016811363399028778, -0.26298126578330994, 0.007363858167082071, 0.014649095013737679, 0.07634417712688446, 0.01185106672346592, 0.016465893015265465, 0.020267853513360023, -0.06611747294664383, -0.03125475347042084, 0.07350222766399384, 0.03243262693285942, 0.01891915500164032, -0.008636868558824062, 0.015306016430258751, 0.0019669211469590664, -0.022029051557183266, 0.04951594024896622, 0.018450796604156494, 0.044489990919828415, 0.01616298034787178, 0.026660539209842682, -0.02328399382531643, 0.16721366345882416, 0.002362455241382122, 0.02906635031104088, 0.03605452552437782, 0.007144065108150244, 0.024796849116683006, 0.06565997749567032, 0.04582846164703369, -0.007140945177525282, -0.06485877931118011, 0.05899961665272713, 0.03629746288061142, 0.04930631443858147, -0.0670352503657341, -0.020158570259809494, 0.02769639901816845, 0.013650144450366497, -0.03241165727376938, -0.04915173724293709, 0.022897500544786453, -0.01344207488000393, 0.007720666471868753, 0.056900981813669205, 0.03055003099143505, -0.034502651542425156, -0.06559599190950394, -0.04808824509382248, -0.001587154809385538, -0.020566359162330627, -0.014867776073515415, 0.001068888115696609, -0.02606314979493618, 0.011468814685940742, 0.06908489018678665, 0.03821730613708496, -0.019783562049269676, 0.00020220254373271018, 0.03648420423269272, 0.015933901071548462, -0.062230922281742096, 0.1081438884139061, 0.03285034000873566, -0.042151302099227905 ]
[ -0.008890523575246334, 0.011454382911324501, -0.04169038310647011, 0.033475615084171295, -0.021615860983729362, -0.012152785435318947, 0.029707200825214386, 0.015118391253054142, 0.040626801550388336, -0.013745645992457867, -0.003114218357950449, -0.023846257477998734, 0.01037468109279871, -0.03740678355097771, -0.017968470230698586, -0.07812687009572983, -0.026130517944693565, -0.026500588282942772, 0.021801359951496124, 0.006871980149298906, -0.010086262598633766, 0.06178291141986847, 0.037415795028209686, -0.002711309352889657, -0.018578020855784416, 0.03046621009707451, -0.021862046793103218, -0.039314545691013336, 0.015858164057135582, -0.11677253246307373, -0.034114181995391846, -0.022078821435570717, -0.006875749211758375, 0.014137922786176205, 0.015751777216792107, -0.00847923755645752, -0.005227942485362291, 0.028077073395252228, -0.07263340801000595, 0.014801543205976486, -0.025945087894797325, 0.02531067095696926, -0.003916317597031593, 0.0325438417494297, -0.013303318060934544, 0.001200355589389801, -0.03427597135305405, -0.019850295037031174, -0.01045744214206934, 0.01433499250560999, -0.032845307141542435, 0.027348415926098824, -0.01970301941037178, -0.0041293432004749775, 0.046246256679296494, -0.016553569585084915, 0.01810615323483944, -0.007076370995491743, -0.003111850703135133, -0.0010765872430056334, 0.013795378617942333, -0.005342146381735802, -0.028191225603222847, -0.029189659282565117, 0.01569819450378418, 0.0010645515285432339, 0.015673702582716942, -0.013106661848723888, -0.019755704328417778, -0.018456613644957542, -0.05563466623425484, 0.031204670667648315, -0.030029186978936195, 0.0021015084348618984, -0.016834553331136703, 0.019022731110453606, 0.00444679195061326, -0.040449108928442, -0.0005106421886011958, -0.026582831516861916, -0.04361182823777199, -0.010436546988785267, 0.009634246118366718, 0.039649635553359985, -0.003444029949605465, 0.010350578464567661, -0.0643688440322876, 0.05063362419605255, 0.024043310433626175, 0.009899752214550972, 0.027538016438484192, 0.034283529967069626, 0.014514665119349957, 0.01944500394165516, -0.05433792248368263, 0.031293220818042755, -0.012361990287899971, 0.001057458226568997, 0.018394941464066505, 0.7859216928482056, -0.014532969333231449, -0.004582203924655914, 0.0498695969581604, 0.021093185991048813, 0.02111346274614334, 0.011308354325592518, 0.028990738093852997, -0.00834961049258709, -0.005163450259715319, -0.08555907011032104, 0.021412551403045654, 0.04570057988166809, 0.024547310546040535, 0.001428209594450891, 0.008028303273022175, 0.0358043871819973, 0.02507646568119526, 0.025239042937755585, -0.04766891151666641, 0.005574875511229038, 0.010860330425202847, -0.03724145144224167, -0.03282230719923973, -0.01775473915040493, 0.006533841602504253, -0.18825727701187134, 0.06872789561748505, -7.337182271863323e-33, 0.003079251851886511, -0.02774815633893013, -0.0025287081953138113, 0.02447795867919922, 0.05971461534500122, -0.0012764885323122144, 0.03490420803427696, 0.019783880561590195, -0.02058526501059532, -0.026177246123552322, -0.004134378861635923, -0.04245065525174141, -0.0033862823620438576, 0.013803789392113686, 0.03703106939792633, -0.02392062172293663, -0.006970657035708427, 0.04202066734433174, -0.007916681468486786, -0.020528040826320648, 0.08257459849119186, 0.04270107299089432, 0.06470239162445068, 0.008270773105323315, 0.05056287720799446, 0.02209276705980301, -0.02557375282049179, -0.03681853413581848, 0.014088612981140614, -0.05598585680127144, -0.029570069164037704, 0.004585226532071829, 0.012821110896766186, -0.05194840580224991, 0.0214089248329401, -0.04377055913209915, -0.05627267807722092, 0.0012907326454296708, -0.03677492216229439, -0.01675797812640667, -0.05319676175713539, 0.005637786816805601, -0.0504196435213089, 0.029980169609189034, -0.02798641100525856, -0.006181412376463413, -0.018766049295663834, 0.05415458232164383, 0.004346069414168596, 0.015681074932217598, 0.026303106918931007, 0.05009012669324875, -0.00801894161850214, 0.0031059253960847855, -0.0032501386012881994, 0.025837553665041924, 0.04196855053305626, 0.014191479422152042, 0.011668707244098186, 0.022089537233114243, 0.03843327611684799, 0.02901257947087288, -0.03152252733707428, 0.035024818032979965, 0.026983028277754784, 0.013424894772469997, 0.05009908974170685, 0.024146487936377525, 0.02496262453496456, 0.010163184255361557, -0.055276188999414444, -0.024523653090000153, -0.04012466222047806, -0.01679842919111252, -0.0019021054031327367, 0.010482091456651688, -0.020111938938498497, -0.033964186906814575, 0.004150723107159138, 0.00825213547796011, -0.003515795338898897, -0.012044275179505348, -0.017717620357871056, -0.023981470614671707, -0.016294484958052635, 0.011334375478327274, -0.007388794329017401, 0.005057921167463064, -0.0355687215924263, 0.011948516592383385, 0.022110942751169205, 0.03180359676480293, 0.011697258800268173, -0.019237687811255455, -0.043530602008104324, 7.41739359825962e-33, -0.019499680027365685, -0.018792971968650818, -0.009882677346467972, 0.03797796368598938, 0.010821929201483727, -0.0070024579763412476, 0.003969836048781872, -0.015228339470922947, -0.034363534301519394, 0.002749150851741433, -0.02900468185544014, 0.030552830547094345, -0.0008536460227333009, 0.059328049421310425, 0.07263489812612534, -0.012153560295701027, 0.0023273059632629156, 0.07646498084068298, -0.016663609072566032, -0.015491590835154057, 0.029553277418017387, 0.01238966453820467, 0.003752069314941764, -0.001508811255916953, 0.05276340991258621, 0.02723909728229046, -0.02855885587632656, 0.015460793860256672, -0.016285166144371033, 0.007660195231437683, 0.005758162587881088, -0.024645056575536728, 0.010522456839680672, -0.055516134947538376, 0.01092161238193512, 0.022074829787015915, 0.01265678834170103, 0.02807101048529148, 0.04248790070414543, 0.018322782590985298, 0.0444040484726429, 0.005756848957389593, 0.00012868242629338056, 0.040191877633333206, -0.005056206602603197, 0.07747478038072586, -0.0042777638882398605, 0.006673342548310757, -0.019131582230329514, 0.0099410405382514, 0.023753894492983818, 0.027396900579333305, -0.0036617128644138575, 0.0301335621625185, 0.05873919650912285, -0.008382823318243027, -0.011261741630733013, -0.06156282126903534, -0.0418754480779171, -0.036590833216905594, -0.042507436126470566, -0.0000421393197029829, 0.005872570443898439, 0.015061107464134693, 0.0006269268342293799, -0.015056384727358818, -0.029826141893863678, -0.02247944474220276, 0.006770801264792681, -0.042424771934747696, -0.008285352028906345, -0.022883540019392967, -0.03884970024228096, 0.04374753311276436, -0.053135089576244354, -0.012634637765586376, -0.007185786031186581, -0.00572323938831687, -0.01763627678155899, 0.03284094110131264, 0.03517557308077812, 0.02096330001950264, 0.048703599721193314, 0.03044235333800316, 0.0044692885130643845, 0.025476451963186264, -0.020496491342782974, -0.03186006844043732, 0.0532165989279747, 0.04455532878637314, -0.04591941460967064, 0.0030643984209746122, 0.0013749456265941262, -0.004916633013635874, -0.029449736699461937, -1.2511683245008953e-8, -0.02780476026237011, -0.000012694775250565726, -0.013123740442097187, 0.025870243087410927, 0.048477958887815475, 0.026496736332774162, -0.07477141916751862, -0.03148728609085083, -0.02769250050187111, 0.021425722166895866, 0.03147435933351517, -0.07610001415014267, -0.002451683394610882, 0.00115894281771034, 0.018644411116838455, -0.04192079231142998, -0.006788106635212898, -0.02372785098850727, 0.008065004833042622, -0.03663137927651405, 0.027035824954509735, 0.0321684330701828, -0.005065863486379385, 0.006928194779902697, 0.03593551740050316, -0.013302374631166458, 0.02871505729854107, -0.08111975342035294, -0.0020345409866422415, -0.03193121775984764, 0.004611855372786522, -0.0427236370742321, -0.01360772829502821, 0.03702317923307419, -0.019369026646018028, -0.04068193957209587, 0.010633992031216621, 0.04478099197149277, 0.022337576374411583, -0.007884298451244831, -0.013679190538823605, 0.010850493796169758, -0.004875662736594677, -0.0038503853138536215, -0.010275502689182758, -0.0411093570291996, -0.06387106329202652, -0.020876899361610413, 0.02785138040781021, -0.028636125847697258, 0.01660750061273575, -0.005507430527359247, 0.018312932923436165, 0.07148505002260208, 0.005541729275137186, 0.0015272110467776656, 0.012737467885017395, 0.0028690954204648733, -0.019489016383886337, -0.0005872340407222509, 0.01743379421532154, -0.007019606418907642, -0.015264449641108513, -0.02719361148774624 ]
go-multi-threaded-writing-csv-file
https://markhneedham.com/blog/2017/01/31/go-multi-threaded-writing-csv-file
false
2017-06-04 09:22:47
Kaggle: House Prices: Advanced Regression Techniques - Trying to fill in missing values
[ "kaggle", "python" ]
[ "Data Science", "Python" ]
I've been playing around with the data in Kaggle's https://www.kaggle.com/c/house-prices-advanced-regression-techniques[House Prices: Advanced Regression Techniques] and while replicating https://www.kaggle.com/poonaml/house-prices-data-exploration-and-visualisation[Poonam Ligade's exploratory analysis] I wanted to see if I could create a model to fill in some of the missing values. Poonam wrote the following code to identify which columns in the dataset had the most missing values: [source,python] ---- import pandas as pd train = pd.read_csv('train.csv') null_columns=train.columns[train.isnull().any()] >>> print(train[null_columns].isnull().sum()) LotFrontage 259 Alley 1369 MasVnrType 8 MasVnrArea 8 BsmtQual 37 BsmtCond 37 BsmtExposure 38 BsmtFinType1 37 BsmtFinType2 38 Electrical 1 FireplaceQu 690 GarageType 81 GarageYrBlt 81 GarageFinish 81 GarageQual 81 GarageCond 81 PoolQC 1453 Fence 1179 MiscFeature 1406 dtype: int64 ---- The one that I'm most interested in is +++<cite>+++LotFrontage+++</cite>+++, which describes 'Linear feet of street connected to property'. There are a few other columns related to lots so I thought I might be able to use them to fill in the missing +++<cite>+++LotFrontage+++</cite>+++ values. We can write the following code to find a selection of the rows missing a +++<cite>+++LotFrontage+++</cite>+++ value: [source,python] ---- cols = [col for col in train.columns if col.startswith("Lot")] missing_frontage = train[cols][train["LotFrontage"].isnull()] >>> print(missing_frontage.head()) LotFrontage LotArea LotShape LotConfig 7 NaN 10382 IR1 Corner 12 NaN 12968 IR2 Inside 14 NaN 10920 IR1 Corner 16 NaN 11241 IR1 CulDSac 24 NaN 8246 IR1 Inside ---- I want to use http://scikit-learn.org/[scikit-learn]'s http://scikit-learn.org/stable/modules/generated/sklearn.linear_model.LinearRegression.html[linear regression model] which only works with numeric values so we need to convert our categorical variables into numeric equivalents. We can use pandas https://pandas.pydata.org/pandas-docs/stable/generated/pandas.get_dummies.html[get_dummies] function for this. Let's try it out on the +++<cite>+++LotShape+++</cite>+++ column: [source,python] ---- sub_train = train[train.LotFrontage.notnull()] dummies = pd.get_dummies(sub_train[cols].LotShape) >>> print(dummies.head()) IR1 IR2 IR3 Reg 0 0 0 0 1 1 0 0 0 1 2 1 0 0 0 3 1 0 0 0 4 1 0 0 0 ---- Cool, that looks good. We can do the same with +++<cite>+++LotConfig+++</cite>+++ and then we need to add these new columns onto the original DataFrame. We can use pandas https://pandas.pydata.org/pandas-docs/stable/generated/pandas.concat.html[concat] function to do this. [source,python] ---- import numpy as np data = pd.concat([ sub_train[cols], pd.get_dummies(sub_train[cols].LotShape), pd.get_dummies(sub_train[cols].LotConfig) ], axis=1).select_dtypes(include=[np.number]) >>> print(data.head()) LotFrontage LotArea IR1 IR2 IR3 Reg Corner CulDSac FR2 FR3 Inside 0 65.0 8450 0 0 0 1 0 0 0 0 1 1 80.0 9600 0 0 0 1 0 0 1 0 0 2 68.0 11250 1 0 0 0 0 0 0 0 1 3 60.0 9550 1 0 0 0 1 0 0 0 0 4 84.0 14260 1 0 0 0 0 0 1 0 0 ---- We can now split +++<cite>+++data+++</cite>+++ into train and test sets and create a model. [source,python] ---- from sklearn import linear_model from sklearn.model_selection import train_test_split X = data.drop(["LotFrontage"], axis=1) y = data.LotFrontage X_train, X_test, y_train, y_test = train_test_split(X, y, random_state=42, test_size=.33) lr = linear_model.LinearRegression() model = lr.fit(X_train, y_train) ---- Now it's time to give it a try on the test set: [source,python] ---- >>> print("R^2 is: \n", model.score(X_test, y_test)) R^2 is: -0.84137438493 ---- Hmm that didn't work too well - an R{caret}2 score of less than 0 suggests that we'd be better off just predicting the average +++<cite>+++LotFrontage+++</cite>+++ regardless of any of the other features. We can confirm that with the following code: [source,python] ---- from sklearn.metrics import r2_score >>> print(r2_score(y_test, np.repeat(y_test.mean(), len(y_test)))) 0.0 ---- whereas if we had all of the values correct we'd get a score of 1: [source,python] ---- >>> print(r2_score(y_test, y_test)) 1.0 ---- In summary, not a very successful experiment. Poonam derives a value for +++<cite>+++LotFrontage+++</cite>+++ based on the square root of +++<cite>+++LotArea+++</cite>+++ so perhaps that's the best we can do here.
null
null
[ -0.010665510781109333, -0.01657102070748806, -0.03317694738507271, 0.035832978785037994, 0.10634780675172806, 0.03202318400144577, -0.00676686828956008, 0.033038631081581116, 0.00020164353190921247, 0.003187853377312422, -0.03862278163433075, 0.0010757539421319962, -0.07321640849113464, 0.021468747407197952, -0.046300411224365234, 0.07974693924188614, 0.07701216638088226, 0.013622722588479519, 0.030411044135689735, 0.01664591208100319, 0.04761466383934021, 0.04309547320008278, -0.0146024189889431, 0.03947444260120392, 0.006799356080591679, -0.025074457749724388, 0.02543281950056553, 0.014733623713254929, -0.032804932445287704, 0.015099097043275833, 0.016377868130803108, -0.003899687435477972, 0.01259896345436573, -0.015894543379545212, -0.004879588261246681, -0.0006831358186900616, 0.005772411823272705, 0.021440057083964348, -0.010216780006885529, 0.03235424682497978, -0.0651562511920929, 0.018153896555304527, -0.03095092810690403, 0.03710264340043068, -0.04878012463450432, 0.012661364860832691, -0.04630628228187561, 0.011085661128163338, -0.017436062917113304, -0.0039954595267772675, -0.060864221304655075, 0.0560399554669857, -0.009319568052887917, -0.014444803819060326, 0.005380323156714439, 0.03681406006217003, 0.03983229026198387, -0.05752888321876526, 0.02261526510119438, -0.02776738815009594, 0.011928106658160686, 0.0021589442621916533, 0.0075701759196817875, 0.01731651835143566, 0.027926955372095108, -0.03493644297122955, 0.0027035262901335955, 0.047977838665246964, -0.01591096818447113, -0.02606602944433689, -0.026133952662348747, 0.012736557051539421, -0.014844652265310287, -0.01008120458573103, -0.020389022305607796, -0.022999519482254982, 0.0004102569364476949, 0.03606808930635452, 0.030217522755265236, 0.05253944173455238, -0.021209342405200005, -0.04653586447238922, 0.02927275188267231, 0.009965882636606693, 0.008275012485682964, -0.03625376522541046, -0.04995673522353172, -0.060425058007240295, -0.06704316288232803, 0.043222974985837936, -0.006821039132773876, -0.014672059565782547, -0.001844538957811892, 0.028263825923204422, -0.006664135958999395, 0.013803190551698208, 0.02682781219482422, -0.0037746296729892492, -0.0005572583759203553, -0.017043452709913254, -0.04653768613934517, -0.03267567604780197, 0.019480183720588684, 0.04795896261930466, -0.07800763100385666, -0.025129416957497597, 0.004795984365046024, -0.03417094796895981, -0.0007217191159725189, 0.028285089880228043, -0.05645568296313286, 0.0007525219116359949, -0.04722237214446068, -0.013091026805341244, -0.09792359173297882, 0.051896050572395325, -0.014577547088265419, -0.006479227915406227, -0.00546580646187067, 0.005960757844150066, 0.03844368830323219, 0.029584448784589767, -0.017905008047819138, 0.0658908262848854, -0.007029287051409483, 0.027627024799585342, 0.012209421023726463, 0.052573058754205704, -0.0052085272036492825, -0.0453990139067173, -0.04101850464940071, 0.04646846279501915, -0.03305483236908913, -0.008165566250681877, -0.001158991944976151, -0.024557536467909813, -0.011675973422825336, 0.01675884611904621, 0.042996637523174286, 0.023825179785490036, 0.0276978500187397, -0.005877036601305008, 0.04328075796365738, 0.007004310376942158, 0.026720566675066948, 0.005817885976284742, -0.005752830300480127, -0.027769019827246666, -0.05197404325008392, 0.009851651266217232, 0.028787514194846153, 0.050334442406892776, 0.07099812477827072, -0.01086868904531002, 0.009063220582902431, 0.08255258202552795, 0.022801173850893974, 0.013182827271521091, -0.011927645653486252, 0.02018759585916996, 0.053157176822423935, 0.03133336454629898, 0.03684595972299576, 0.02121526375412941, -0.018591731786727905, -0.029385320842266083, 0.018283119425177574, 0.03457634523510933, -0.016467729583382607, 0.018082179129123688, -0.05565455183386803, -0.0279953945428133, 0.062365878373384476, -0.03494759276509285, -0.013431154191493988, -0.001901141949929297, 0.06392824649810791, 0.05458903685212135, 0.04773075506091118, 0.018224474042654037, -0.06506533920764923, 0.03742286190390587, 0.0035929675213992596, -0.012858056463301182, 0.07604250311851501, -0.01662784069776535, 0.07831072807312012, 0.041735872626304626, 0.03417659550905228, 0.03451455757021904, -0.058397501707077026, -0.06874299794435501, -0.043028078973293304, -0.017237357795238495, 0.05287332460284233, -0.05453917756676674, -0.004479342605918646, 0.055032189935445786, 0.009018084965646267, 0.047442927956581116, 0.038489606231451035, 0.020668359473347664, 0.030922893434762955, -0.025983795523643494, -0.028757233172655106, 0.02628338895738125, 0.0176406092941761, 0.004422279540449381, -0.013902123086154461, 0.02695341221988201, -0.012496012263000011, 0.008529850281774998, 0.022345416247844696, -0.01893809624016285, 0.07378502935171127, 0.03367910534143448, 0.05240367725491524, -0.01323203556239605, 0.012530159205198288, -0.04972979426383972, 0.03654510900378227, 0.02601967565715313, -0.01494615338742733, -0.029876604676246643, -0.022649697959423065, 0.1053437665104866, 0.062336090952157974, -0.023041551932692528, -0.06038172170519829, 0.031914178282022476, -0.01665215753018856, -0.02259400114417076, 0.016518115997314453, -0.015969719737768173, -0.01292421668767929, -0.01658651791512966, -0.03390001878142357, -0.03398768976330757, 0.03839964047074318, -0.03132632002234459, -0.005312982480973005, 0.0742020457983017, -0.008093788288533688, 0.031926479190588, 0.0011732344282791018, -0.05304698273539543, -0.007624121382832527, -0.020285001024603844, -0.10584793984889984, -0.026836847886443138, 0.0294079277664423, 0.0037373113445937634, 0.04525763913989067, -0.030557598918676376, -0.04406096413731575, -0.030501896515488625, -0.07074983417987823, -0.01864101178944111, 0.06668858230113983, 0.050124458968639374, -0.020240813493728638, 0.04944333806633949, -0.03340379521250725, -0.015672331675887108, -0.018661880865693092, -0.0393366739153862, -0.03801403567194939, -0.05104846507310867, 0.013982605189085007, 0.010421768762171268, 0.027724312618374825, 0.006103629246354103, 0.008802092634141445, -0.002069271868094802, 0.03054523840546608, 0.0010751694208011031, 0.02023397758603096, 0.0035506903659552336, -0.009286167100071907, -0.03305117413401604, 0.01617707870900631, 0.04519978165626526, -0.030932849273085594, -0.04006839543581009, 0.02845805138349533, -0.07529625296592712, 0.01411511655896902, -0.024614697322249413, -0.02368907257914543, 0.012759138830006123, -0.011543747037649155, -0.0019166324054822326, 0.008053157478570938, -0.043833378702402115, 0.04355188086628914, 0.017195435240864754, 0.007671909406781197, 0.028906315565109253, 0.0000010666675507309265, 0.03890605643391609, -0.0010227743769064546, 0.00908155832439661, 0.04060659930109978, -0.002667470835149288, 0.005447901785373688, -0.025339871644973755, -0.0036844550631940365, -0.023778559640049934, -0.29317528009414673, 0.02997622825205326, -0.027518758550286293, -0.028708789497613907, 0.012720903381705284, -0.05739707872271538, 0.012639828026294708, 0.004617004189640284, -0.027291152626276016, 0.01081476453691721, -0.011639924719929695, -0.056734852492809296, -0.034039583057165146, 0.04502015560865402, 0.005164091940969229, 0.052283208817243576, 0.011795678175985813, -0.04194183647632599, -0.01571325585246086, 0.0636928454041481, 0.011179807595908642, -0.03763468191027641, -0.01522051077336073, 0.07480421662330627, 0.017004327848553658, 0.07195151597261429, -0.10205873101949692, 0.008710486814379692, -0.07093033194541931, -0.04745074734091759, 0.02923743985593319, -0.025147590786218643, -0.026444748044013977, -0.011961227282881737, -0.00525814201682806, -0.025496721267700195, 0.017268702387809753, 0.020618027076125145, -0.007100848946720362, 0.03409340977668762, -0.03886581212282181, -0.022248219698667526, 0.0006633458542637527, 0.028865119442343712, 0.0674171894788742, -0.0029006092809140682, -0.0928010642528534, -0.0006862029549665749, -0.04734237864613533, 0.06394024193286896, -0.038830582052469254, -0.0032473765313625336, -0.02826276421546936, 0.04923112690448761, -0.034549273550510406, -0.003661936381831765, -0.01550387591123581, -0.026988530531525612, -0.04037212207913399, -0.039589863270521164, 0.005833438131958246, -0.038420170545578, 0.0009175681625492871, -0.05770920217037201, -0.020809391513466835, -0.0607370100915432, -0.07849714905023575, -0.011763771064579487, 0.06175874173641205, 0.038086216896772385, -0.05216137319803238, 0.006528472527861595, 0.01710418239235878, -0.11443784832954407, -0.01965552382171154, -0.042729396373033524, 0.0006877315463498235, -0.010007796809077263, -0.026200521737337112, 0.01186651922762394, -0.051847558468580246, -0.04808288440108299, 0.05363339185714722, 0.020096909254789352, 0.02952110767364502, -0.037708599120378494, 0.016164645552635193, 0.014615856111049652, -0.029963962733745575, -0.024905964732170105, 0.05063708499073982, -0.020359594374895096, 0.008529480546712875, -0.02444237470626831, -0.01842927187681198, 0.030917402356863022, 0.035102009773254395, 0.0048117320984601974, -0.006416488438844681, 0.03662931174039841, 0.03766114264726639, -0.05283549055457115, -0.009335086680948734, -0.040439825505018234, -0.023387044668197632, -0.025157079100608826, -0.04163379222154617, 0.02297511324286461, 0.016737041994929314, -0.0027798092924058437, 0.011566747911274433, -0.033544741570949554, -0.010347309522330761, -0.03465995937585831, -0.026283713057637215, -0.021440697833895683, 0.03691266477108002, 0.013045869767665863, 0.007086539641022682, -0.015791622921824455, -0.047098495066165924, 0.013065234757959843, 0.0013351717498153448, -0.016850315034389496, -0.04276570677757263, -0.011285334825515747, -0.003485793014988303, -0.02163531817495823, -0.017895188182592392, -0.013219483196735382, -0.01620549149811268, 0.028873110190033913, 0.03479061275720596, -0.018831465393304825, 0.013186280615627766, 0.008780433796346188, -0.03159557282924652, -0.02929406613111496, 0.01239518728107214, 0.040476225316524506, -0.006770536303520203, -0.012610136531293392, -0.009922772645950317, 0.04918637126684189, 0.031183775514364243, 0.004772648215293884, 0.02405722439289093, 0.01712612435221672, 0.02453954890370369, 0.02655908092856407, -0.027705207467079163, -0.00973341055214405, 0.033323779702186584, -0.030023524537682533, -0.038906946778297424, -0.011740812100470066, 0.02461910992860794, -0.023102205246686935, -0.00042336853221058846, -0.036581750959157944, 0.03946055844426155, -0.02419900894165039, -0.02707713097333908, 0.015673475340008736, -0.013975175097584724, 0.049342088401317596, 0.022731829434633255, 0.010335623286664486, 0.02383211813867092, 0.016144590452313423, 0.013448011130094528, -0.042713478207588196, -0.013182641938328743, -0.007166079245507717, -0.004987278487533331, -0.014198792167007923, 0.02641681209206581, -0.005238191690295935, 0.008595344610512257, 0.0009226343827322125, -0.011941060423851013, -0.006858564913272858, 0.0235904548317194, 0.026219986379146576, 0.03830329328775406, 0.045639004558324814, -0.007135677617043257, -0.0027216484304517508, 0.005021827761083841, -0.029329823330044746, -0.009500419721007347, -0.013418194837868214, 0.001342733041383326, 0.014134340919554234, -0.042185619473457336, -0.055183295160532, 0.005080247297883034, 0.03344075381755829, 0.010070418938994408, 0.0019203914562240243, -0.05370579659938812, -0.02528887614607811, -0.02915010042488575, 0.0672396793961525, 0.09647560119628906, -0.056627724319696426, 0.019891658797860146, -0.019384995102882385, -0.0215399619191885, 0.029984351247549057, -0.031092949211597443, -0.041802603751420975, -0.02516874112188816, 0.003552127629518509, 0.030374975875020027, -0.014484105631709099, -0.033785756677389145, -0.03660055622458458, 0.02873149886727333, 0.009126236662268639, 0.02949669025838375, -0.009091509506106377, 0.014726847410202026, -0.022032057866454124, -0.010831709951162338, 0.004617858678102493, -0.0029901349917054176, 0.0070692808367311954, 0.02684847265481949, -0.021475860849022865, -0.018492667004466057, -0.027133464813232422, 0.021842652931809425, 0.02588285133242607, -0.007235746365040541, -0.010201887227594852, -0.004358039703220129, 0.001997710671275854, 0.0017528967000544071, 0.047678180038928986, 0.00080354098463431, -0.022872304543852806, -0.0113737927749753, -0.01698721945285797, 0.0028671063482761383, -0.011005825363099575, -0.007924492470920086, -0.02716296724975109, 0.037254925817251205, 0.043827593326568604, 0.020784923806786537, 0.0004453005676623434, -0.015979312360286713, -0.027517622336745262, 0.0678546205163002, -0.010900983586907387, -0.03757590800523758, -0.00829367060214281, -0.04015934094786644, 0.03894839808344841, 0.03558884188532829, 0.017246291041374207, -0.02869097888469696, 0.0630638599395752, 0.052712950855493546, 0.012819705531001091, 0.045868560671806335, 0.009945523925125599, 0.056651052087545395, -0.03622114285826683, -0.007796456106007099, -0.09389219433069229, -0.0038993596099317074, 0.06420420110225677, 0.005258616525679827, -0.015526763163506985, -0.010934571735560894, -0.024852847680449486, 0.03616572171449661, -0.08642725646495819, -0.04000566154718399, 0.020538635551929474, -0.002217451808974147, 0.001794763607904315, 0.03209332004189491, -0.010411934927105904, 0.014131027273833752, 0.030162889510393143, -0.05288960412144661, -0.03693556785583496, -0.03778659924864769, 0.04144560173153877, -0.013814128935337067, 0.002964749000966549, -0.025442875921726227, -0.0003800818230956793, 0.04796326160430908, 0.04911850020289421, 0.043083809316158295, 0.040340010076761246, -0.03168594464659691, 0.05723745748400688, 0.03809736296534538, 0.0017582844011485577, 0.018559584394097328, 0.03148888051509857, -0.005788133013993502, -0.06912491470575333, 0.035879336297512054, 0.03319530189037323, -0.0032279847655445337, -0.05663271248340607, 0.053111348301172256, 0.01849125698208809, -0.03907977044582367, -0.030149808153510094, -0.00856697466224432, -0.037246160209178925, 0.010783275589346886, -0.0176865141838789, -0.02167467214167118, -0.022099094465374947, 0.06074228882789612, 0.004638776183128357, 0.016063984483480453, 0.04608152434229851, -0.0010501615470275283, -0.016920486465096474, 0.010581079870462418, 0.07968536019325256, 0.08813989907503128, 0.037112049758434296, 0.01160437986254692, 0.05502000078558922, -0.01571175642311573, -0.04587673395872116, 0.012194766663014889, -0.03575252369046211, 0.019236894324421883, -0.06640277802944183, -0.008288746699690819, 0.06018366292119026, -0.00016608453006483614, 0.05604725703597069, -0.029084252193570137, 0.029805907979607582, -0.014340725727379322, -0.017215285450220108, 0.017938295379281044, 0.06872349977493286, 0.008760392665863037, 0.04937563091516495, -0.015608367510139942, -0.010753883048892021, 0.009790554642677307, 0.008626265451312065, -0.01743391714990139, 0.0241208728402853, 0.010416249744594097, -0.0029453688766807318, 0.008207134902477264, 0.056097131222486496, 0.08367413282394409, -0.027570994570851326, -0.02101106382906437, 0.0008713902207091451, 0.03792727366089821, -0.025800256058573723, 0.026886509731411934, 0.005282778292894363, -0.01978752203285694, -0.011562864296138287, -0.02416427619755268, 0.009388535283505917, 0.00020927994046360254, 0.005294196307659149, -0.009801684878766537, -0.03989005461335182, 0.010555177927017212, 0.031510449945926666, 0.02739475481212139, -0.05129960924386978, -0.05714835971593857, -0.02711028978228569, -0.03064624033868313, -0.08294063061475754, -0.014594988897442818, 0.003693558042868972, -0.03937035799026489, -0.04647021368145943, -0.05365787819027901, -0.038169216364622116, 0.0017898960504680872, 0.017199872061610222, -0.03008236177265644, -0.05152535066008568, 0.024207307025790215, 0.0146776819601655, 0.02539879083633423, 0.02403501234948635, 0.04440971836447716, 0.025899821892380714, -0.0019846023060381413, 0.02944450080394745, 0.01692226715385914, 0.03048834390938282, -0.0064360229298472404, 0.028186718001961708, -0.07716143876314163, 0.021983686834573746, -0.006591882091015577, -0.03193176910281181, -0.08016134798526764, 0.017372921109199524, 0.03389780595898628, 0.0019966098479926586, 0.02300526387989521, -0.028697511181235313, -0.017563307657837868, -0.020405959337949753, -0.009537899866700172, 0.012553532607853413, 0.03185395523905754, 0.016945840790867805, -0.04463392496109009, 0.0471341535449028, 0.050784882158041, 0.014648823998868465, -0.02805698662996292, 0.00942052062600851, -0.031067484989762306, -0.006125138606876135, -0.09045210480690002, -0.06676605343818665, -0.04536203294992447, -0.054359640926122665, -0.018003525212407112, -0.014160792343318462, -0.05734732002019882, -0.045354314148426056, 0.018309403210878372, 0.008275973610579967, -0.005550531204789877, 0.032657261937856674, -0.03759913891553879, 0.0160707738250494, -0.06460176408290863, -0.005658034700900316, -0.0016312325606122613, 0.049565501511096954, 0.03684014454483986, 0.026754021644592285, -0.01880757138133049, -0.019459649920463562, 0.019889231771230698, -0.03735566884279251, 0.014878464862704277, 0.04615945369005203, -0.017547084018588066, -0.007959657348692417 ]
[ -0.04369913414120674, -0.03713835030794144, -0.004793180152773857, -0.00006573663267772645, 0.09320692718029022, -0.04380849003791809, -0.02325037680566311, 0.0174770038574934, 0.024141933768987656, 0.013585100881755352, 0.036849286407232285, -0.11501675099134445, -0.0026155298110097647, -0.02311554364860058, 0.04479539021849632, -0.006168629042804241, -0.0216582790017128, -0.04081306979060173, -0.032446663826704025, 0.03426455333828926, -0.026479121297597885, -0.05039829760789871, -0.06533095985651016, -0.04437917098402977, 0.05498683825135231, 0.01040774304419756, 0.05806397646665573, -0.037657950073480606, 0.001772934920154512, -0.21674790978431702, 0.02323666214942932, -0.003582363948225975, 0.032747793942689896, -0.01539775263518095, 0.033996012061834335, 0.04389793425798416, -0.0021783513948321342, 0.021219633519649506, 0.03019525296986103, 0.053156282752752304, 0.009065521880984306, -0.011011877097189426, -0.024096140637993813, -0.02225876972079277, 0.03180541470646858, 0.015253279358148575, 0.004190570674836636, -0.03378118947148323, 0.0025915473233908415, 0.006442207843065262, -0.04825449362397194, -0.006457346957176924, -0.03126383572816849, 0.006981459446251392, -0.00326607096940279, 0.023789502680301666, 0.043060898780822754, 0.040888067334890366, 0.03436236083507538, 0.02315489761531353, 0.03903784230351448, -0.003707361174747348, -0.1546119600534439, 0.05581911653280258, 0.04349002614617348, 0.04821794480085373, -0.014274237677454948, -0.051743585616350174, -0.012121235951781273, 0.07984799146652222, 0.007189422845840454, -0.02053198032081127, -0.02173897624015808, 0.054412078112363815, 0.01822632923722267, -0.049877263605594635, -0.002750068437308073, 0.017932133749127388, 0.004069149028509855, -0.008921340107917786, -0.03574405610561371, 0.015385173261165619, -0.014250420965254307, -0.036393895745277405, -0.018903320655226707, -0.00408703600987792, -0.013576393015682697, 0.03275787830352783, 0.0014534504152834415, 0.012612536549568176, 0.05895812064409256, -0.014948002994060516, -0.004950728267431259, 0.04083981737494469, -0.09102403372526169, 0.0007576412754133344, 0.02570534497499466, 0.014339196495711803, -0.011528880335390568, 0.3998745083808899, -0.017662042751908302, -0.004837405867874622, 0.024452002719044685, 0.05080053582787514, 0.010744878090918064, -0.014921675436198711, -0.018496843054890633, -0.03339548408985138, 0.004022600129246712, -0.029163388535380363, -0.006609227042645216, -0.022603048011660576, 0.04939228668808937, -0.0619652159512043, 0.0025581636000424623, -0.022047439590096474, 0.010553297586739063, -0.009907961823046207, -0.0020949693862348795, 0.02981647290289402, -0.008122065104544163, -0.018445024266839027, 0.044251423329114914, -0.0008640771266072989, 0.00663666520267725, 0.014321510680019855, 0.021524827927350998, 0.07720497995615005, 0.024370776489377022, 0.00703428965061903, 0.007555814925581217, -0.0418161042034626, -0.10314659029245377, 0.011342795565724373, -0.0015603386564180255, -0.007060407195240259, 0.05604387819766998, -0.005598437041044235, -0.0009241763618774712, 0.01707068644464016, -0.025513576343655586, -0.049550529569387436, 0.026629095897078514, -0.000847608083859086, -0.04507095739245415, 0.1192893460392952, -0.0025526811368763447, 0.0012057850835844874, -0.03492135554552078, -0.048349905759096146, -0.011589687317609787, 0.02380158007144928, -0.012589363381266594, -0.06954249739646912, 0.025891751050949097, 0.02616923488676548, 0.07665108144283295, -0.005832328926771879, -0.06534264981746674, -0.028903814032673836, -0.007429505232721567, -0.04987125098705292, -0.0813400149345398, 0.027806207537651062, 0.0026206530164927244, -0.09856724739074707, -0.05219827964901924, 0.012287651188671589, -0.010117118246853352, -0.05353890731930733, 0.03615329787135124, 0.035583700984716415, -0.05918699502944946, 0.006260531954467297, 0.06423662602901459, -0.009081017225980759, -0.03314019367098808, 0.035437893122434616, 0.03466812148690224, -0.011803700588643551, -0.03045826591551304, 0.0318947434425354, -0.036172330379486084, 0.028254635632038116, -0.06647570431232452, -0.09380626678466797, -0.03886645287275314, 0.008039776235818863, -0.05035730078816414, -0.030175380408763885, 0.0001231895585078746, -0.031582389026880264, -0.04936148226261139, 0.06051632761955261, -0.019988887012004852, -0.00474699679762125, 0.04130227491259575, 0.010210761800408363, 0.007649700157344341, -0.05306379869580269, -0.01439002063125372, 0.015189960598945618, 0.003315490670502186, 0.022111978381872177, -0.040935128927230835, 0.049846719950437546, 0.058306608349084854, -0.016660310328006744, 0.08324349671602249, 0.04546263813972473, 0.015186813659965992, -0.013727287761867046, -0.011434383690357208, 0.0011789543787017465, -0.0003960360190831125, 0.015394490212202072, -0.0013230754993855953, -0.016062499955296516, 0.017189202830195427, 0.03450300171971321, 0.015166516415774822, -0.06435032188892365, -0.02674284018576145, -0.37683165073394775, -0.04755795747041702, 0.00852854922413826, 0.00008695836731931195, 0.012161441147327423, -0.07109840214252472, -0.0005996794207021594, 0.017726970836520195, -0.024600990116596222, 0.0615764819085598, 0.06395041197538376, -0.028734877705574036, 0.009852124378085136, -0.05314575508236885, -0.022110072895884514, 0.008066470734775066, -0.04708130657672882, -0.03303108364343643, -0.06856972724199295, 0.0324978306889534, -0.0007903761579655111, -0.00030227642855606973, -0.012578274123370647, -0.04399101436138153, 0.038089290261268616, -0.029547695070505142, 0.13808470964431763, -0.03240546956658363, 0.06972461193799973, -0.05944006145000458, 0.021261923015117645, -0.003330239560455084, -0.018371738493442535, -0.013260956853628159, 0.027552569285035133, -0.04835835471749306, -0.01073562540113926, 0.048738379031419754, -0.02296164259314537, -0.018812205642461777, -0.0409202016890049, 0.02812475524842739, -0.02947591058909893, -0.004311530385166407, -0.03935420140624046, 0.0360381193459034, 0.0013707568868994713, 0.003165059955790639, -0.04425599426031113, 0.08584368228912354, 0.019962798804044724, 0.03432923182845116, 0.04737158864736557, 0.03320063650608063, 0.01938086934387684, 0.004986952058970928, -0.08964304625988007, 0.01631954312324524, -0.033065617084503174, -0.01883268915116787, 0.03629084303975105, 0.01844114065170288, 0.061754077672958374, -0.050970930606126785, -0.02636551298201084, -0.01683991774916649, 0.0053842016495764256, -0.029682982712984085, 0.021573813632130623, -0.014398470520973206, -0.027728501707315445, 0.09164385497570038, -0.016461357474327087, 0.006306965835392475, 0.014285766519606113, 0.0663486197590828, -0.020430291071534157, 0.04309866577386856, 0.00001100749068427831, 0.010504479520022869, 0.04461267963051796, -0.032601434737443924, 0.028305448591709137, 0.024945955723524094, 0.07208257168531418, 0.06266278028488159, 0.023472564294934273, -0.0092896968126297, 0.067339226603508, 0.029691634699702263, -0.033501286059617996, -0.027324017137289047, -0.016468781977891922, -0.04990389570593834, 0.06016486883163452, 0.009387720376253128, -0.264536052942276, 0.004071422386914492, 0.03325318917632103, 0.07069646567106247, -0.0024055493995547295, -0.011346572078764439, -0.01976834423840046, -0.020996028557419777, 0.022650042548775673, -0.006760581396520138, 0.0023439591750502586, 0.04823263734579086, 0.02344721183180809, -0.035281091928482056, 0.011210909113287926, -0.05559774115681648, 0.0645611360669136, 0.03207367658615112, 0.029891911894083023, 0.0022201938554644585, 0.026995884254574776, -0.03552417457103729, 0.14943775534629822, 0.028151102364063263, -0.00822331104427576, 0.007236832287162542, -0.015506724826991558, -0.0019296796526759863, 0.0802290216088295, 0.017792828381061554, 0.012006472796201706, -0.00593543378636241, 0.05334439501166344, 0.013378002680838108, 0.020411454141139984, -0.018345290794968605, -0.057079240679740906, 0.06522199511528015, 0.017916658893227577, -0.017236750572919846, -0.010860932990908623, 0.01762595772743225, -0.07425171136856079, 0.011911734007298946, 0.055679500102996826, -0.00569428876042366, 0.008467436768114567, -0.054596494883298874, -0.01365301851183176, 0.01982251927256584, -0.016123952344059944, -0.0027575758285820484, -0.0011051309993490577, -0.00865632202476263, 0.02801891416311264, 0.07338326424360275, 0.03213557228446007, 0.008021990768611431, 0.04691294580698013, 0.0022776497062295675, -0.01710088551044464, -0.056858550757169724, 0.08037354052066803, -0.02031957358121872, 0.0005925915902480483 ]
[ -0.001663861912675202, 0.02550787851214409, -0.029990127310156822, 0.062360141426324844, -0.005970168858766556, 0.010009067133069038, -0.02856716886162758, 0.00902756117284298, -0.01938740350306034, -0.01421140506863594, 0.02632681466639042, -0.009152651764452457, 0.02862868830561638, -0.053339723497629166, -0.01323381531983614, 0.0061978865414857864, 0.00393395870923996, -0.012368948198854923, 0.04724406450986862, -0.026583263650536537, -0.051513444632291794, 0.013400689698755741, 0.0065344697795808315, 0.0005675337160937488, -0.012181316502392292, 0.047154709696769714, -0.015536985360085964, 0.015071404166519642, 0.02164645493030548, -0.1269233524799347, -0.0819787010550499, -0.02591179683804512, -0.029024410992860794, -0.0008247104124166071, -0.024004152044653893, -0.011448520235717297, -0.023166770115494728, 0.06608399003744125, 0.008270444348454475, 0.026233261451125145, 0.0022964500822126865, -0.022192437201738358, -0.012664969079196453, 0.006549823563545942, -0.01701914705336094, -0.013859100639820099, -0.026089806109666824, -0.05277639999985695, 0.0030300624202936888, -0.04705142602324486, -0.02973698452115059, 0.004378254991024733, 0.00556920887902379, 0.007661750074476004, 0.018331844359636307, -0.025702418759465218, -0.016336170956492424, 0.01780039072036743, 0.006098615936934948, 0.022680774331092834, 0.011005658656358719, 0.018976107239723206, -0.03322142735123634, -0.023271752521395683, -0.0008882059482857585, -0.018749075010418892, -0.047610804438591, 0.010211631655693054, -0.011335993185639381, -0.012822710908949375, 0.025653453543782234, -0.02654312551021576, -0.03229306638240814, -0.008062497712671757, -0.008443241938948631, 0.030044876039028168, 0.015325240790843964, -0.02279484272003174, 0.022309157997369766, 0.003975330386310816, -0.0603635273873806, 0.014981341548264027, -0.007128509227186441, -0.011644171550869942, 0.006100191734731197, -0.05453585833311081, -0.004687769338488579, 0.03815193474292755, 0.025372568517923355, 0.00245057069696486, -0.02150897867977619, -0.007285062689334154, -0.02739383466541767, 0.01648695208132267, -0.08730775862932205, 0.036873746663331985, -0.011240677908062935, -0.022362161427736282, -0.013995058834552765, 0.8200692534446716, 0.017805401235818863, 0.030381936579942703, -0.008885510265827179, 0.03775382041931152, -0.003584126941859722, 0.02147754840552807, 0.03809773549437523, 0.012403229251503944, 0.00410099932923913, -0.03864036127924919, 0.016944538801908493, 0.001718565123155713, 0.022808536887168884, 0.030199693515896797, 0.018942689523100853, 0.016808997839689255, -0.01438868697732687, -0.0144191337749362, 0.006348324473947287, 0.015670383349061012, -0.011508259922266006, 0.002105397405102849, 0.0013783680042251945, 0.013413937762379646, 0.01739453710615635, -0.20293880999088287, 0.0032784210052341223, -7.440256963383113e-33, 0.007432820741087198, -0.003150657285004854, 0.006931859999895096, -0.022346608340740204, 0.023291025310754776, -0.03634193167090416, -0.010498530231416225, -0.003270805114880204, 0.032543011009693146, 0.0031361733563244343, -0.01655452698469162, 0.021669749170541763, -0.04324080049991608, -0.015448402613401413, 0.02147623896598816, -0.008774307556450367, 0.007775219157338142, 0.022953122854232788, 0.0016112941084429622, 0.01746596023440361, 0.0861721858382225, 0.035523898899555206, 0.0043539912439882755, 0.003347199410200119, 0.03631864860653877, 0.020974934101104736, -0.0038220365531742573, 0.00758058438077569, -0.00792444497346878, -0.030548810958862305, -0.02523198351264, 0.030546991154551506, 0.005175006575882435, -0.028355753049254417, -0.03944835439324379, -0.07422157377004623, 0.004290510434657335, -0.012969675473868847, -0.04255612939596176, 0.0036325070541352034, -0.035209883004426956, 0.014085114933550358, -0.021432584151625633, -0.032378919422626495, -0.013260937295854092, 0.012885692529380322, 0.06778062134981155, 0.04863723739981651, -0.023892786353826523, 0.021171489730477333, 0.019827699288725853, -0.014744479209184647, -0.006356350611895323, 0.04158826544880867, -0.021938500925898552, 0.06145859509706497, -0.00023400863574352115, -0.030199727043509483, 0.03513961285352707, -0.005884116515517235, 0.007686535827815533, -0.012818524613976479, 0.0068988134153187275, 0.022243564948439598, -0.0118647376075387, 0.022860335186123848, 0.028923295438289642, -0.020102426409721375, -0.004015164915472269, -0.021430930122733116, -0.05682623013854027, -0.02013886347413063, -0.0212261900305748, -0.023833559826016426, 0.04067184031009674, -0.030000969767570496, -0.0010088598355650902, 0.008948184549808502, 0.0020011274609714746, 0.01649905927479267, 0.017376217991113663, -0.012653453275561333, -0.02915210835635662, -0.03023325838148594, -0.012898379936814308, 0.020785698667168617, 0.04159168154001236, 0.007317593786865473, -0.013946086168289185, -0.00747780641540885, 0.007571014575660229, 0.0424468070268631, -0.023257210850715637, -0.0195867158472538, 0.013207685202360153, 7.365503604194478e-33, 0.026406440883874893, 0.01623636670410633, 0.006752628367394209, -0.018296144902706146, 0.03222508728504181, -0.016110951080918312, 0.04079166054725647, 0.0070222243666648865, -0.027060016989707947, 0.04042477160692215, -0.01773390918970108, -0.0369735062122345, -0.006480291020125151, 0.037898462265729904, 0.008027991279959679, 0.02380068600177765, -0.003956608008593321, 0.022001884877681732, -0.0004235062806401402, 0.005355449393391609, -0.013423756696283817, 0.020312950015068054, -0.022514833137392998, 0.020390847697854042, 0.014020453207194805, 0.037308335304260254, -0.034789077937603, 0.0012830322375521064, -0.02801661193370819, 0.021980727091431618, -0.005630197003483772, -0.0275462344288826, -0.006013934034854174, -0.03769240155816078, -0.027896823361516, 0.05957801267504692, 0.03709569573402405, 0.0031635623890906572, -0.026098046451807022, 0.029174666851758957, 0.04219745844602585, 0.005849764682352543, -0.005333595909178257, 0.05312039330601692, -0.008754336275160313, 0.018929975107312202, 0.028503665700554848, -0.024712026119232178, -0.0006996308802627027, 0.011685078032314777, 0.014306110329926014, 0.02696334198117256, -0.002662620274350047, 0.02278238907456398, -0.006548173259943724, -0.02623854950070381, 0.00543954037129879, 0.012646093033254147, -0.0398985780775547, 0.002913862932473421, -0.014232789166271687, 0.014908973127603531, -0.024532759562134743, 0.0010481956414878368, -0.020658092573285103, 0.007261942140758038, -0.03783165290951729, -0.011374914087355137, 0.0035725259222090244, -0.0164294745773077, -0.03957008570432663, -0.020304040983319283, 0.0061561111360788345, 0.014805873855948448, 0.016966482624411583, 0.004321717657148838, -0.017002802342176437, 0.014329166151583195, 0.028397800400853157, 0.0404827781021595, 0.05982603132724762, -0.04393019527196884, 0.02517441101372242, -0.010318460874259472, 0.016488201916217804, 0.030893150717020035, -0.011700330302119255, 0.014112898148596287, 0.0419689379632473, -0.007434821221977472, -0.005728120915591717, -0.003466712310910225, 0.009931427426636219, 0.010290127247571945, -0.04979842156171799, -1.2808833105282247e-8, -0.030608035624027252, 0.021975360810756683, 0.004480008967220783, 0.01852920837700367, 0.029853427782654762, -0.012317593209445477, -0.010814126580953598, -0.01091842446476221, -0.021982433274388313, 0.006146751809865236, 0.01660299114882946, 0.004700839519500732, -0.03044213354587555, 0.017967985942959785, -0.0010598640656098723, -0.03359171748161316, -0.006314263679087162, -0.007800683844834566, 0.03035922534763813, -0.006249873898923397, 0.021810049191117287, 0.03576495870947838, -0.05390298366546631, 0.02652899920940399, 0.05288561061024666, -0.0068319072015583515, -0.008963000029325485, -0.10071247816085815, 0.00823465920984745, 0.030832774937152863, 0.02885030396282673, -0.01649121195077896, -0.004483077209442854, 0.005286409519612789, -0.0011764084920287132, 0.006528100464493036, 0.0755435973405838, 0.023164253681898117, -0.015990357846021652, 0.0004682354046963155, -0.049866121262311935, -0.013541696593165398, -0.03720688447356224, -0.03893246129155159, 0.013792775571346283, 0.04740989953279495, -0.05475624278187752, -0.002825676230713725, 0.018986070528626442, -0.057871486991643906, 0.020714202895760536, -0.031979773193597794, 0.018611134961247444, 0.03375639393925667, 0.0275865588337183, 0.003014574758708477, 0.016660727560520172, -0.002972009591758251, -0.019183989614248276, -0.02599502168595791, 0.01649155281484127, 0.010379274375736713, -0.0024065787438303232, -0.045022379606962204 ]
kaggle-house-prices-advanced-regression-techniques-trying-fill-missing-values
https://markhneedham.com/blog/2017/06/04/kaggle-house-prices-advanced-regression-techniques-trying-fill-missing-values
false
2017-06-16 05:55:29
scikit-learn: Random forests - Feature Importance
[ "kaggle", "python", "scikit-learn", "data-science", "random-forest" ]
[ "Data Science", "Python" ]
As I http://www.markhneedham.com/blog/2017/06/04/kaggle-house-prices-advanced-regression-techniques-trying-fill-missing-values/[mentioned in a blog post a couple of weeks ago], I've been playing around with the https://www.kaggle.com/c/house-prices-advanced-regression-techniques[Kaggle House Prices competition] and the most recent thing I tried was training a random forest regressor. Unfortunately, although it gave me better results locally it got a worse score on the unseen data, which I figured meant I'd https://en.wikipedia.org/wiki/Overfitting[overfitted the model]. I wasn't really sure how to work out if that theory was true or not, but by chance I was reading Chris Albon's blog and found a post where he explains how to https://chrisalbon.com/machine-learning/random_forest_classifier_example_scikit.html[inspect the importance of every feature in a random forest]. Just what I needed! Stealing from Chris' post I wrote the following code to work out the feature importance for my dataset: == Prerequisites [source,python] ---- import numpy as np import pandas as pd from sklearn.ensemble import RandomForestRegressor from sklearn.model_selection import train_test_split # We'll use this library to make the display pretty from tabulate import tabulate ---- == Load Data [source,python] ---- train = pd.read_csv('train.csv') # the model can only handle numeric values so filter out the rest data = train.select_dtypes(include=[np.number]).interpolate().dropna() ---- == Split train/test sets [source,python] ---- y = train.SalePrice X = data.drop(["SalePrice", "Id"], axis=1) X_train, X_test, y_train, y_test = train_test_split(X, y, random_state=42, test_size=.33) ---- == Train model [source,python] ---- clf = RandomForestRegressor(n_jobs=2, n_estimators=1000) model = clf.fit(X_train, y_train) ---- == Feature Importance [source,python] ---- headers = ["name", "score"] values = sorted(zip(X_train.columns, model.feature_importances_), key=lambda x: x[1] * -1) print(tabulate(values, headers, tablefmt="plain")) ---- [source,bash] ---- name score OverallQual 0.553829 GrLivArea 0.131 BsmtFinSF1 0.0374779 TotalBsmtSF 0.0372076 1stFlrSF 0.0321814 GarageCars 0.0226189 GarageArea 0.0215719 LotArea 0.0214979 YearBuilt 0.0184556 2ndFlrSF 0.0127248 YearRemodAdd 0.0126581 WoodDeckSF 0.0108077 OpenPorchSF 0.00945239 LotFrontage 0.00873811 TotRmsAbvGrd 0.00803121 GarageYrBlt 0.00760442 BsmtUnfSF 0.00715158 MasVnrArea 0.00680341 ScreenPorch 0.00618797 Fireplaces 0.00521741 OverallCond 0.00487722 MoSold 0.00461165 MSSubClass 0.00458496 BedroomAbvGr 0.00253031 FullBath 0.0024245 YrSold 0.00211638 HalfBath 0.0014954 KitchenAbvGr 0.00140786 BsmtFullBath 0.00137335 BsmtFinSF2 0.00107147 EnclosedPorch 0.000951266 3SsnPorch 0.000501238 PoolArea 0.000261668 LowQualFinSF 0.000241304 BsmtHalfBath 0.000179506 MiscVal 0.000154799 ---- So +++<cite>+++OverallQual+++</cite>+++ is quite a good predictor but then there's a steep fall to +++<cite>+++GrLivArea+++</cite>+++ before things really tail off after +++<cite>+++WoodDeckSF+++</cite>+++. I think this is telling us that a lot of these features aren't useful at all and can be removed from the model. There are also a bunch of categorical/factor variables that have been stripped out of the model but might be predictive of the house price. These are the next things I'm going to explore: * Make the categorical variables numeric (perhaps by using http://scikit-learn.org/stable/modules/generated/sklearn.preprocessing.OneHotEncoder.html[one hot encoding] for some of them) * Remove the most predictive features and build a model that only uses the other features
null
null
[ 0.01162403542548418, -0.020309578627347946, 0.00021295453188940883, 0.0574079267680645, 0.07886729389429092, 0.04420861601829529, 0.011662268079817295, 0.016279757022857666, 0.018660802394151688, -0.00468442915007472, -0.03453757241368294, -0.0034026559442281723, -0.06460988521575928, 0.04348016530275345, -0.005016902461647987, 0.07407209277153015, 0.07654385268688202, -0.0032898648642003536, 0.027170473709702492, 0.026440739631652832, 0.019201794639229774, 0.03439309448003769, -0.009753432124853134, 0.03538265824317932, 0.0013255004305392504, -0.021684089675545692, 0.014162271283566952, 0.014327538199722767, -0.032118313014507294, -0.00350872497074306, 0.03561033308506012, 0.019667692482471466, 0.011653578840196133, 0.0036608765367418528, 0.020203636959195137, 0.015692831948399544, -0.017584843561053276, 0.005936316214501858, -0.006481806747615337, 0.035483162850141525, -0.0610983781516552, 0.031385038048028946, -0.0310572050511837, 0.05178292468190193, -0.05891651660203934, -0.0040635643526911736, -0.03687866032123566, 0.0008532757055945694, 0.010562274605035782, -0.02294774353504181, -0.043545279651880264, 0.06068341061472893, -0.00798709224909544, -0.021469702944159508, 0.015640413388609886, 0.05787549540400505, 0.037114862352609634, -0.06296854466199875, 0.04307691752910614, -0.018580997362732887, -0.021427130326628685, -0.0032729015219956636, -0.027554161846637726, 0.008542551659047604, 0.0202086940407753, -0.039208680391311646, -0.0015558633022010326, 0.04477083310484886, -0.03576795011758804, -0.021434234455227852, -0.03247864544391632, 0.017355993390083313, -0.008618157356977463, 0.010850232094526291, -0.006900598760694265, -0.028468778356909752, 0.0009197056642733514, 0.05308999493718147, 0.031552232801914215, 0.038420744240283966, -0.018603330478072166, -0.009342033416032791, 0.042380861937999725, 0.02488907054066658, 0.011730783618986607, -0.03928271308541298, -0.033297572284936905, -0.035524025559425354, -0.06554775685071945, 0.05623328685760498, 0.007759345695376396, -0.042134035378694534, 0.02681889943778515, 0.023883288726210594, -0.01603912189602852, 0.00033365702256560326, 0.012971683405339718, -0.024879099801182747, -0.011879958212375641, -0.022197311744093895, -0.057409919798374176, -0.016962016001343727, 0.011143212206661701, 0.04727284982800484, -0.0801982581615448, -0.013202020898461342, -0.007834414020180702, -0.012311499565839767, -0.0049035619013011456, 0.01189344935119152, -0.045931603759527206, 0.01687624491751194, -0.03418280929327011, -0.014908681623637676, -0.10753851383924484, 0.03000406175851822, -0.005789176095277071, -0.032136883586645126, -0.013809708878397942, 0.002808863064274192, 0.05423981323838234, 0.017217060551047325, -0.04927322268486023, 0.06006413698196411, -0.005593620240688324, 0.017963098362088203, 0.04257643222808838, 0.06260012090206146, 0.0010690586641430855, -0.052286289632320404, -0.0021784030832350254, 0.02883785031735897, -0.01865185797214508, 0.0009735039784573019, 0.014543501660227776, -0.03489607200026512, -0.007236247416585684, 0.0329454280436039, 0.06493378430604935, 0.012983772903680801, 0.017508048564195633, -0.017174679785966873, 0.02239963412284851, 0.011676987633109093, -0.008978134952485561, 0.01721974089741707, -0.0102988937869668, -0.02837022766470909, -0.04912219196557999, 0.01116163656115532, 0.03699329495429993, 0.038828976452350616, 0.05279691517353058, -0.025142386555671692, 0.0030276619363576174, 0.07622656971216202, 0.003656376851722598, -0.01659500226378441, 0.014499576762318611, 0.012416470795869827, 0.05456965044140816, 0.028844786807894707, 0.041040610522031784, 0.027946045622229576, -0.0013963318197056651, -0.021724484860897064, 0.023832879960536957, 0.06214382126927376, -0.04139955714344978, 0.010013255290687084, -0.04516702517867088, -0.018128452822566032, 0.0656747817993164, -0.06620381027460098, -0.014221101999282837, 0.029986876994371414, 0.04481057822704315, 0.03261413052678108, 0.047838106751441956, 0.01608671061694622, -0.061813969165086746, 0.03040619008243084, 0.01760222017765045, 0.013403424993157387, 0.054685674607753754, -0.016685163602232933, 0.08254711329936981, 0.02924106828868389, 0.060317251831293106, 0.03054535575211048, -0.06918525695800781, -0.06625120341777802, -0.04332083463668823, -0.0064246500842273235, 0.052545756101608276, -0.0371144600212574, -0.002084762556478381, 0.06628421694040298, 0.035524360835552216, 0.03241775929927826, 0.02177334763109684, -0.017928533256053925, -0.01502994168549776, -0.020869961008429527, -0.05187307670712471, 0.00617209542542696, 0.0008852629689499736, -0.03096412867307663, -0.02770490199327469, 0.022734148427844048, -0.015442206524312496, -0.01557918917387724, 0.026073848828673363, -0.016692863777279854, 0.042600635439157486, 0.0260014571249485, 0.052293602377176285, -0.0010889347176998854, 0.008729210123419762, -0.02576964721083641, -0.0005064207362011075, 0.008988686837255955, -0.020114481449127197, -0.020073607563972473, -0.003116452833637595, 0.11687055230140686, 0.05389613285660744, 0.011914877220988274, -0.052632804960012436, -0.011501183733344078, -0.022244298830628395, -0.03991156071424484, 0.014266188256442547, -0.023486480116844177, 0.01832822896540165, -0.015331732109189034, -0.06517325341701508, -0.039845164865255356, 0.010885952040553093, -0.020871838554739952, -0.00942162238061428, 0.06956013292074203, -0.03547673299908638, 0.03452850878238678, 0.008125207386910915, -0.013878346420824528, -0.0022764799650758505, -0.021566493436694145, -0.08147969096899033, 0.0019323001615703106, 0.006711630616337061, 0.0056173233315348625, 0.03229699283838272, -0.029085364192724228, -0.04344642162322998, -0.02782825380563736, -0.06145497411489487, 0.012483692727982998, 0.059791579842567444, 0.039993613958358765, 0.018808487802743912, 0.05202349275350571, -0.018369687721133232, 0.005891865119338036, -0.00637584924697876, -0.04210646450519562, -0.03648661822080612, -0.05449018254876137, 0.023612357676029205, 0.04918559268116951, 0.03142466023564339, 0.0033812550827860832, 0.02740255370736122, -0.0012302353279665112, 0.006162077654153109, -0.029560578987002373, 0.026799000799655914, 0.045878879725933075, -0.010353751480579376, -0.03661829233169556, -0.010503274388611317, 0.026062751188874245, -0.019913798198103905, -0.01737263984978199, 0.0021513067185878754, -0.09581821411848068, 0.01344292052090168, -0.02753370814025402, -0.043571196496486664, 0.007076019886881113, 0.011665662750601768, 0.04719574749469757, 0.026005102321505547, 0.009990246966481209, 0.0436704158782959, 0.017290638759732246, 0.0034600135404616594, 0.04007936269044876, 0.000650398840662092, 0.03471478447318077, 0.004787491634488106, 0.007038472685962915, 0.03947218880057335, 0.014325274154543877, 0.010017936117947102, -0.04731692746281624, 0.00037633973988704383, -0.040080178529024124, -0.29152652621269226, 0.042416032403707504, 0.010524997487664223, -0.046593476086854935, 0.005908332299441099, -0.0494699701666832, 0.025468382984399796, -0.027833163738250732, -0.024068281054496765, 0.015917547047138214, -0.031092897057533264, -0.06723853945732117, -0.025669092312455177, 0.04211316257715225, 0.012928961776196957, 0.008628339506685734, 0.03529287874698639, -0.027628272771835327, 0.032202038913965225, 0.07536093890666962, 0.0014760489575564861, -0.024867607280611992, -0.010247261263430119, 0.05503880977630615, 0.01248261146247387, 0.0588885061442852, -0.07611739635467529, -0.007734541315585375, -0.07251359522342682, -0.021064814180135727, 0.016064850613474846, -0.010973109863698483, 0.007164130453020334, 0.007817081175744534, -0.0008818107307888567, -0.006501628551632166, 0.031232472509145737, 0.023836836218833923, -0.014883868396282196, 0.08046247810125351, -0.04464346915483475, -0.020795641466975212, 0.005749205593019724, 0.028836071491241455, 0.08461117744445801, -0.004043695516884327, -0.06400004029273987, -0.0018935012631118298, -0.04952051118016243, 0.06512095034122467, -0.024214869365096092, -0.031859077513217926, -0.016811983659863472, 0.03990289941430092, -0.03861641511321068, 0.012655837461352348, 0.006047773640602827, -0.009714148007333279, -0.04200625419616699, -0.02470504306256771, -0.010243224911391735, -0.014619894325733185, 0.012736012227833271, -0.06321269273757935, -0.012768070213496685, -0.06424820423126221, -0.05979273468255997, -0.025762591511011124, 0.06237325072288513, 0.035516347736120224, -0.05690600350499153, -0.010472690686583519, 0.015842949971556664, -0.11418405920267105, 0.0038735810667276382, -0.021429432556033134, 0.013228002935647964, 0.017253858968615532, 0.01324599888175726, 0.06036359816789627, -0.054287414997816086, -0.06456620246171951, 0.07589197158813477, -0.01148903276771307, 0.019771592691540718, -0.021004607900977135, -0.0006806565215811133, 0.028192849829792976, -0.003373093204572797, -0.004399677272886038, 0.05615536868572235, 0.004501861985772848, -0.004456065129488707, -0.03098398447036743, -0.019696833565831184, 0.04971172660589218, 0.01439675036817789, -0.011490334756672382, 0.003517887322232127, 0.020217634737491608, 0.013324404135346413, -0.06023266538977623, -0.022001110017299652, -0.030758127570152283, -0.01709004119038582, -0.01840510591864586, -0.036916088312864304, 0.00820754561573267, 0.03431069105863571, 0.008783789351582527, 0.00020062756084371358, -0.025567926466464996, 0.0002989131025969982, -0.005615823436528444, -0.006217457354068756, -0.03232229873538017, 0.012744132429361343, -0.007379583548754454, -0.01409240998327732, -0.04215392842888832, -0.05324162542819977, 0.009138938970863819, 0.006991715170443058, -0.02928689308464527, -0.049053337424993515, -0.03552790731191635, 0.007927860133349895, -0.009605523198843002, -0.019192295148968697, -0.011824183166027069, -0.027266334742307663, 0.032503318041563034, 0.03493224456906319, -0.02886594459414482, 0.0005632820539176464, -0.0007964704418554902, -0.029792599380016327, -0.027247998863458633, 0.05959490314126015, 0.023159844800829887, -0.005854213144630194, -0.01421456877142191, -0.006203087978065014, 0.02485855296254158, 0.04715992510318756, -0.0012171863345429301, 0.02119177207350731, 0.013319146819412708, 0.019122576341032982, -0.014976806938648224, -0.012574193999171257, -0.021757230162620544, 0.017291733995079994, -0.023640871047973633, -0.057259224355220795, -0.024598320946097374, 0.027656566351652145, -0.004541807342320681, -0.013440608978271484, -0.034582946449518204, 0.05268656462430954, -0.020877806469798088, -0.019910817965865135, -0.016540495678782463, 0.035521250218153, 0.034159429371356964, -0.017029225826263428, 0.010071581229567528, -0.014607036486268044, 0.011802895925939083, 0.028870146721601486, -0.003209455404430628, -0.04291585087776184, -0.007651547435671091, -0.004216104745864868, -0.009658101946115494, 0.035720095038414, -0.005036712624132633, -0.0014399662613868713, 0.017777618020772934, -0.009393520653247833, -0.0008158021373674273, -0.008279482834041119, 0.013609983026981354, 0.04739442467689514, 0.06015818566083908, -0.043062299489974976, 0.012813122011721134, 0.00426722876727581, -0.014809663407504559, -0.04003534093499184, -0.017802458256483078, -0.007909279316663742, 0.023108772933483124, -0.035896845161914825, -0.055139895528554916, 0.013360263779759407, -0.002556456485763192, -0.013244634494185448, 0.019495198503136635, -0.039003219455480576, -0.012811691500246525, -0.0070367599837481976, 0.038865793496370316, 0.0908096432685852, -0.06599916517734528, 0.01378362625837326, 0.010685035958886147, -0.009773777797818184, 0.01253369078040123, -0.005967894569039345, -0.07555664330720901, -0.03751474991440773, -0.004256958141922951, 0.01057429052889347, -0.04974028840661049, -0.028009934350848198, -0.035166021436452866, 0.04017103463411331, -0.020847108215093613, 0.02994440868496895, -0.015043736435472965, -0.000781070557422936, -0.028013762086629868, -0.016393620520830154, 0.02375156246125698, 0.0024368963204324245, 0.0065116253681480885, 0.020366718992590904, -0.03900287672877312, -0.011509002186357975, -0.01375189982354641, 0.02136741206049919, 0.050791844725608826, -0.00018986494978889823, -0.023045191541314125, -0.04632849246263504, 0.01732647605240345, 0.014549980871379375, 0.03629313036799431, 0.0089570926502347, 0.0031239029485732317, -0.030166437849402428, 0.02064763382077217, -0.0038662736769765615, 0.0046031177043914795, -0.006251856684684753, -0.042853061109781265, 0.03187501057982445, 0.04041892662644386, 0.005292324349284172, -0.0073561049066483974, -0.012960022315382957, -0.01833277940750122, 0.04824052006006241, -0.044024139642715454, -0.05551835894584656, -0.01859724149107933, -0.05627821013331413, 0.02341989241540432, 0.0020611959043890238, 0.04336937889456749, -0.027971195057034492, 0.06930836290121078, 0.029285097494721413, 0.026089893653988838, 0.02759290672838688, 0.02109123021364212, 0.022758271545171738, -0.04613640904426575, -0.019211631268262863, -0.10682101547718048, -0.006675221491605043, 0.03702927753329277, 0.024891413748264313, -0.018873756751418114, -0.01700541004538536, -0.04884517192840576, 0.02894754707813263, -0.07738560438156128, -0.03425084426999092, 0.04462737217545509, 0.021045302972197533, -0.009232982993125916, 0.008406220935285091, -0.026500478386878967, 0.00857500173151493, 0.03322969377040863, -0.047066014260053635, -0.03329682722687721, -0.04162004962563515, 0.05447059124708176, -0.0028081315103918314, 0.022584641352295876, -0.03594386205077171, 0.001063763746060431, 0.06713636964559555, 0.017707206308841705, 0.035181399434804916, 0.015213565900921822, -0.0330786257982254, 0.04121850058436394, 0.03970221430063248, 0.00020221777958795428, 0.0075499373488128185, 0.011612342670559883, 0.017019659280776978, -0.07499868422746658, 0.05828738585114479, 0.018037615343928337, -0.012213741429150105, -0.044014446437358856, 0.05779401957988739, 0.0068626804277300835, -0.04960200563073158, -0.038481391966342926, 0.004456822760403156, -0.050591178238391876, -0.007579222787171602, -0.001103527145460248, -0.013520809821784496, -0.02681414596736431, 0.06643328815698624, -0.025287119671702385, -0.005164217669516802, 0.06117915362119675, -0.020943621173501015, 0.0024673189036548138, 0.045493315905332565, 0.08600495010614395, 0.07366932928562164, 0.0444948747754097, 0.0009428302873857319, 0.06292640417814255, -0.01149627473205328, -0.04964751750230789, 0.0350484624505043, -0.04162413254380226, -0.01925799250602722, -0.07422728091478348, 0.0006913408287800848, 0.049468185752630234, 0.010435760021209717, 0.07780102640390396, -0.04556946083903313, 0.005686930846422911, -0.00937869306653738, 0.006971737369894981, 0.017793558537960052, 0.06672519445419312, 0.009953121654689312, 0.014981132000684738, -0.0240143071860075, -0.041708748787641525, 0.02590998448431492, 0.03923152759671211, -0.02355053834617138, 0.045585546642541885, -0.009864692576229572, 0.005883351434022188, 0.029817963019013405, 0.049584295600652695, 0.08116097748279572, -0.03160492703318596, -0.01081322692334652, -0.002256656065583229, 0.05230569839477539, -0.008699032478034496, 0.01840064860880375, -0.006599991582334042, -0.02212606742978096, -0.010021639056503773, -0.020629798993468285, 0.011156503111124039, -0.018654868006706238, 0.0025321657303720713, 0.0015337045770138502, -0.03235785290598869, 0.019950417801737785, 0.05590102821588516, 0.013200062327086926, -0.06250713020563126, -0.05896485969424248, -0.027012353762984276, -0.02601126953959465, -0.09229593724012375, -0.04757469892501831, 0.00562311103567481, -0.014135084114968777, -0.025380829349160194, -0.03076261281967163, -0.025639981031417847, -0.018292797729372978, 0.04787604510784149, -0.056977130472660065, -0.03308328986167908, -0.0023363232612609863, 0.020973151549696922, 0.0017982869176194072, -0.0022720126435160637, 0.039963264018297195, 0.010894089005887508, -0.04859795421361923, 0.014446018263697624, 0.020708763971924782, 0.04353638365864754, 0.03676993027329445, 0.011719112284481525, -0.06852845847606659, 0.008342716842889786, -0.01604546792805195, -0.0430888831615448, -0.07381188124418259, 0.03012777306139469, 0.035773489624261856, 0.03157959133386612, 0.03253454342484474, -0.0024665887467563152, -0.01182345487177372, -0.06184651330113411, -0.01499453466385603, -0.008626418188214302, 0.021489249542355537, 0.014222141355276108, -0.017043406143784523, 0.07875659316778183, 0.041725050657987595, -0.007559194695204496, -0.04204092174768448, -0.032584916800260544, -0.020821161568164825, 0.009069109335541725, -0.051105547696352005, -0.046311747282743454, -0.04571127891540527, -0.061211708933115005, -0.02324063517153263, 0.020461397245526314, -0.036987777799367905, -0.0260947085916996, 0.012432413175702095, -0.005824195221066475, 0.003524678060784936, 0.008980662561953068, -0.024997441098093987, 0.017758138477802277, -0.03403077647089958, -0.007532373536378145, -0.010988724417984486, 0.0488860122859478, -0.002384832361713052, 0.01790299266576767, 0.0016076017636805773, -0.03848963975906372, 0.003123463597148657, -0.01380089484155178, 0.011270374059677124, 0.05650847405195236, -0.021888475865125656, -0.00985325314104557 ]
[ -0.04533914849162102, -0.028607845306396484, -0.013317728415131569, 0.006423415150493383, 0.0979061871767044, -0.060005269944667816, -0.004967380315065384, 0.015726491808891296, -0.012790773995220661, -0.0014598133275285363, 0.028364310041069984, -0.06808746606111526, -0.025105034932494164, -0.011196129955351353, 0.08625869452953339, 0.02371491678059101, -0.010395422577857971, -0.05642260983586311, -0.02130298875272274, 0.03527729958295822, 0.008076074533164501, -0.029069501906633377, -0.03726305067539215, -0.05328606814146042, 0.046471577137708664, -0.004858530592173338, 0.040457092225551605, -0.054333459585905075, -0.011104063130915165, -0.20479446649551392, 0.027529103681445122, -0.023601330816745758, 0.0382467582821846, -0.023473288863897324, 0.01053973101079464, 0.05128103494644165, 0.018610382452607155, 0.008826208300888538, 0.017790546640753746, 0.047698553651571274, 0.007008606567978859, 0.008784472942352295, -0.03274252638220787, -0.03261370211839676, 0.06410567462444305, 0.0013922624057158828, 0.016673248261213303, -0.024021120741963387, -0.04270055145025253, 0.03077569417655468, -0.042479775846004486, -0.025282302871346474, -0.029328489676117897, -0.026174435392022133, 0.01363094337284565, 0.009280959144234657, 0.04083959758281708, 0.061292123049497604, 0.044101469218730927, 0.04301464185118675, 0.008389604277908802, 0.027275435626506805, -0.15005597472190857, 0.06535670906305313, 0.024724725633859634, 0.04332318156957626, -0.0225815512239933, -0.036713019013404846, -0.014334297738969326, 0.08599650859832764, 0.03600367158651352, -0.0233613234013319, -0.012501032091677189, 0.033706121146678925, 0.01013275608420372, -0.03466370329260826, 0.008584398776292801, 0.020769229158759117, 0.04713850095868111, -0.013064497150480747, -0.02340317703783512, 0.008450892753899097, -0.028582554310560226, -0.04107782989740372, -0.012802094221115112, -0.00464965682476759, 0.0070589580573141575, 0.027021193876862526, 0.026146166026592255, 0.03254510834813118, 0.05129772052168846, 0.010016288608312607, -0.006816525012254715, 0.0056595029309391975, -0.06443045288324356, 0.0024735606275498867, 0.0217925775796175, 0.023935869336128235, -0.025639958679676056, 0.3735193610191345, -0.023726899176836014, -0.0071063875220716, 0.029072871431708336, 0.05571607127785683, -0.036156248301267624, -0.0487467497587204, -0.03376397490501404, -0.005138740409165621, 0.00825307983905077, -0.04806111380457878, 0.011002751998603344, -0.01810823194682598, 0.054632768034935, -0.043570440262556076, -0.011273923330008984, -0.023341117426753044, 0.019737446680665016, 0.027967482805252075, 0.05240211635828018, 0.023096024990081787, 0.010608099400997162, -0.00339508312754333, 0.03946436196565628, -0.02380877546966076, 0.015558524057269096, 0.003935678396373987, 0.012257997877895832, 0.07350543141365051, 0.03242134675383568, -0.0025769949425011873, 0.020591862499713898, -0.06881453096866608, -0.11502115428447723, 0.01041621807962656, 0.021989572793245316, -0.018584411591291428, 0.051071085035800934, 0.030283931642770767, 0.012877736240625381, 0.025418605655431747, -0.022437551990151405, 0.0018246232066303492, 0.023464253172278404, 0.005634786561131477, -0.058284737169742584, 0.09820397198200226, -0.014350375160574913, -0.00655235955491662, -0.023902108892798424, -0.07487952709197998, -0.013770775869488716, 0.003935906104743481, -0.029839690774679184, -0.0862550213932991, 0.027772968634963036, 0.010974207893013954, 0.0870334804058075, -0.022659901529550552, -0.07142265886068344, -0.020510798320174217, -0.04604574665427208, -0.03910529240965843, -0.0394914448261261, 0.0015096825081855059, 0.03303380683064461, -0.1106596440076828, -0.025649508461356163, 0.012039817869663239, -0.00826512835919857, -0.04612195864319801, 0.014813704416155815, 0.032614946365356445, -0.05741710215806961, 0.030489999800920486, 0.04623481631278992, -0.024396419525146484, -0.03795763850212097, 0.03223521634936333, 0.027761105448007584, -0.024789100512862206, 0.011475250124931335, -0.0018621362978592515, -0.03466511517763138, 0.025058753788471222, -0.05350777879357338, -0.08875308185815811, -0.045492399483919144, -0.001443662098608911, -0.03988286852836609, -0.004029672592878342, -0.011549224145710468, -0.06546775251626968, -0.06163406744599342, 0.04775280877947807, 0.0012749809538945556, 0.010418097488582134, 0.03011150471866131, 0.0269940048456192, 0.002077157376334071, -0.039017464965581894, -0.04610549658536911, 0.016366004943847656, 0.00040117930620908737, 0.004886409267783165, -0.07294310629367828, 0.06386718153953552, 0.06458834558725357, -0.040948446840047836, 0.09767992794513702, 0.04039432853460312, 0.023827720433473587, -0.025724541395902634, -0.02268633432686329, -0.009085400961339474, -0.006976264528930187, 0.024252882227301598, -0.004013108555227518, 0.02136373706161976, -0.00951328780502081, 0.037896040827035904, -0.009239955805242062, -0.04098205640912056, -0.023292040452361107, -0.38037559390068054, -0.02672514319419861, -0.007504807785153389, 0.014081832952797413, 0.02208687737584114, -0.07461115717887878, -0.0007841758779250085, 0.0015890434151515365, -0.01775648631155491, 0.053644660860300064, 0.08741875737905502, -0.01111270859837532, 0.02069542557001114, -0.07358827441930771, -0.005067608784884214, 0.018992505967617035, -0.0246061272919178, -0.037271082401275635, -0.06042138859629631, 0.028957979753613472, 0.0007946055848151445, 0.014502623118460178, 0.011891367845237255, -0.06780548393726349, 0.020731355994939804, -0.05533432215452194, 0.10844402015209198, -0.026443826034665108, 0.0896555706858635, -0.03247786685824394, 0.031741682440042496, 0.007543086539953947, -0.01457229070365429, -0.03099379874765873, 0.02973955310881138, -0.0364408865571022, 0.023393824696540833, 0.03134946897625923, -0.011755149811506271, -0.021124569699168205, -0.0416521318256855, 0.039224088191986084, -0.015228698961436749, -0.03422825038433075, -0.07029709219932556, 0.06366459280252457, -0.03766171261668205, 0.015164308249950409, -0.04736574366688728, 0.07355065643787384, 0.03231947124004364, 0.06164616346359253, 0.045323051512241364, 0.011558180674910545, 0.011753332801163197, -0.029945990070700645, -0.09032722562551498, 0.018791474401950836, -0.017003905028104782, -0.0005947982426732779, 0.04956166073679924, 0.0035545751452445984, 0.06414517015218735, -0.06610199064016342, -0.014750774949789047, -0.004167874809354544, 0.004312604665756226, -0.017001288011670113, 0.01969524845480919, 0.0003223433159291744, -0.023541340604424477, 0.08694202452898026, -0.02570710889995098, 0.0013836040161550045, 0.05179734528064728, 0.05811328813433647, 0.005252562463283539, 0.04843071103096008, 0.006575386039912701, 0.029964255169034004, 0.03293289616703987, -0.01573113165795803, 0.01783384382724762, 0.009928744286298752, 0.04079318419098854, 0.01948493719100952, 0.022303957492113113, -0.034993816167116165, 0.05513158440589905, 0.049619391560554504, -0.033160485327243805, -0.022858064621686935, -0.011234977282583714, -0.03656690567731857, 0.09125401079654694, 0.022595005109906197, -0.2612398862838745, -0.022191472351551056, 0.03223363310098648, 0.07664132863283157, 0.022539814934134483, -0.021982958540320396, 0.02698415145277977, -0.04538290947675705, 0.015609480440616608, -0.016925329342484474, -0.008114499971270561, 0.04570871591567993, 0.017969395965337753, -0.01875467598438263, 0.029915357008576393, -0.0511176735162735, 0.040353890508413315, 0.02738799713551998, 0.052392393350601196, -0.0033675972372293472, 0.006258014123886824, -0.02843431755900383, 0.15596610307693481, 0.0261391494423151, -0.008709746412932873, 0.018095344305038452, -0.031929612159729004, -0.031480252742767334, 0.08531883358955383, -0.024395760148763657, 0.02353336475789547, 0.012823851779103279, 0.06677690148353577, 0.0018712551100179553, 0.04468056932091713, -0.02967187389731407, -0.036028239876031876, 0.02729065530002117, 0.02499845251441002, -0.04802311584353447, 0.029830152168869972, 0.00003680582813103683, -0.058516718447208405, 0.013797124847769737, 0.071393683552742, -0.02624637633562088, 0.012524145655333996, -0.055257342755794525, -0.055231764912605286, 0.0013145462144166231, -0.014568244107067585, -0.0317096970975399, -0.011319986544549465, -0.02250000275671482, 0.012681683525443077, 0.08985737711191177, 0.006645480170845985, -0.00910179316997528, 0.0006076009594835341, -0.017766647040843964, -0.013775295577943325, -0.04576893523335457, 0.05933709070086479, -0.009375992231070995, 0.016248950734734535 ]
[ 0.006340240593999624, 0.024790124967694283, -0.00032589054899290204, 0.05630308389663696, 0.02490128204226494, -0.021945254877209663, 0.002918161917477846, 0.017187539488077164, -0.04189477115869522, 0.012515060603618622, -0.02368788793683052, 0.029748663306236267, -0.018702179193496704, -0.061008598655462265, 0.015384319238364697, -0.0036929140333086252, -0.00157163105905056, -0.020738573744893074, 0.025341028347611427, -0.02502923272550106, -0.02733164280653, 0.02037728577852249, -0.006746149156242609, 0.025058688595891, -0.013549949042499065, -0.006894114427268505, -0.03115168772637844, 0.025048816576600075, 0.018704960122704506, -0.09412436187267303, -0.051645077764987946, -0.06308041512966156, -0.010240967385470867, 0.0060469419695436954, -0.03079165890812874, -0.029588764533400536, -0.02224699966609478, 0.014539758674800396, 0.011116975918412209, 0.02033732272684574, 0.01567029394209385, -0.015128104947507381, -0.022932494059205055, 0.013921856880187988, -0.005310553126037121, 0.0066814059391617775, -0.008423133753240108, -0.022868528962135315, 0.0018944127950817347, 0.002919993130490184, -0.027960220351815224, -0.009979232214391232, -0.00906400103121996, 0.009507795795798302, 0.010878943838179111, -0.019686026498675346, -0.020941542461514473, -0.004111147951334715, 0.0113230524584651, -0.005029650870710611, 0.02015727572143078, 0.011662243865430355, -0.014059620909392834, -0.014937255531549454, 0.016973737627267838, -0.028023533523082733, -0.06721416860818863, 0.03797374293208122, -0.018791494891047478, -0.0031114742159843445, 0.03537962958216667, -0.01206884440034628, -0.01620294712483883, -0.009934759698808193, 0.03330540657043457, -0.010711760260164738, -0.016299225389957428, -0.016774073243141174, 0.028314756229519844, 0.02568427473306656, -0.06650540977716446, 0.0160085279494524, -0.014742949977517128, -0.047384366393089294, -0.01789882592856884, -0.04814008250832558, 0.0172170028090477, 0.014382327906787395, 0.007025447208434343, 0.0018116013379767537, 0.005978099536150694, -0.00323922629468143, -0.030739672482013702, 0.03184010833501816, -0.0810706615447998, 0.027735324576497078, 0.04457254707813263, -0.04478168487548828, -0.0067292251624166965, 0.8381066918373108, -0.030908744782209396, 0.017711231485009193, 0.03709021955728531, 0.021953001618385315, -0.00004356348654255271, -0.0024857327807694674, -0.0002813792962115258, 0.002881375839933753, 0.009146707132458687, -0.059876613318920135, -0.008479145355522633, -0.009169342927634716, 0.02347288839519024, 0.05395408719778061, 0.022445568814873695, 0.0056082457304000854, -0.007190736010670662, 0.008218871429562569, 0.0017453752225264907, -0.003968135453760624, -0.003548490349203348, 0.013137655332684517, -0.017317283898591995, 0.021608533337712288, 0.005466639995574951, -0.1610802710056305, -0.0028960350900888443, -8.253993662423811e-33, -0.0054084970615804195, -0.027085859328508377, -0.02424587681889534, -0.014607574790716171, 0.03029300831258297, -0.00208796514198184, -0.012987267225980759, -0.007296477910131216, -0.02104736492037773, 0.020781219005584717, -0.007149715907871723, 0.001555776223540306, -0.04460105672478676, -0.03634984418749809, 0.013985377736389637, 0.022772032767534256, -0.01563606783747673, 0.018986878916621208, 0.02808322012424469, 0.029667019844055176, 0.06912519782781601, 0.026705142110586166, -0.008727198466658592, 0.022541645914316177, -0.01152224000543356, 0.027814267203211784, 0.011805366724729538, 0.013366114348173141, 0.0006595064769499004, -0.03161993995308876, 0.009512473829090595, 0.03022274374961853, 0.006258836947381496, -0.019701099023222923, -0.05360489711165428, -0.06602296233177185, -0.015296987257897854, -0.002858156803995371, -0.024824922904372215, 0.007833000272512436, -0.021497348323464394, -0.009840747341513634, -0.01722639426589012, -0.016690615564584732, -0.021377835422754288, 0.05364392325282097, 0.05264483392238617, 0.02814442850649357, -0.007984478957951069, 0.012966248206794262, -0.008490192703902721, -0.014897888526320457, 0.0038123070262372494, 0.008361306972801685, -0.05687721073627472, 0.05615859851241112, 0.008524966426193714, -0.035631176084280014, 0.015938354656100273, -0.009765999391674995, -0.008283086121082306, -0.03691818565130234, 0.019417891278862953, -0.009005188941955566, -0.04887034371495247, -0.018279103562235832, 0.061306629329919815, -0.02373017743229866, 0.02658899873495102, -0.007089086342602968, -0.048638179898262024, -0.010521781630814075, -0.0554799921810627, -0.025447648018598557, 0.02246721461415291, -0.033381808549165726, 0.017858505249023438, 0.05043718218803406, 0.007040513213723898, 0.039693862199783325, 0.03479192033410072, -0.005686523858457804, 0.009484252892434597, -0.03653907775878906, -0.0011097531532868743, 0.04093535989522934, -0.001207514083944261, -0.0037892574910074472, 0.02817450277507305, 0.009538409300148487, -0.006922791246324778, 0.0231205802410841, -0.017947236075997353, -0.03233983740210533, -0.008645758032798767, 7.847875792578065e-33, 0.018661940470337868, -0.037729453295469284, 0.00992356427013874, 0.013165292330086231, 0.00005688195597031154, -0.0059812325052917, -0.018898000940680504, -0.027545737102627754, -0.009022395126521587, 0.016285495832562447, -0.013400392606854439, -0.015155264176428318, 0.0019905546214431524, 0.01850777119398117, -0.0020282843615859747, -0.005044113844633102, 0.013258309103548527, 0.022916875779628754, 0.023272687569260597, -0.004578264430165291, -0.008462424390017986, 0.02205711230635643, -0.009241786785423756, 0.01813497394323349, -0.01662696897983551, 0.017530307173728943, -0.02858690917491913, 0.0361274778842926, 0.010341302491724491, 0.0009900749428197742, 0.012020496651530266, -0.028394915163517, 0.014609585516154766, -0.0181728582829237, -0.0400758720934391, 0.038787130266427994, 0.015600592829287052, -0.02446167543530464, -0.02738487534224987, 0.05348117649555206, 0.06668620556592941, 0.022925131022930145, -0.03266596421599388, 0.03628754988312721, 0.012710151262581348, 0.02541242726147175, -0.00340360589325428, 0.0027207182720303535, 0.012225668877363205, -0.00002728236904658843, -0.005368020851165056, 0.02492189221084118, -0.0009947309736162424, 0.04280025139451027, 0.0010807403596118093, 0.019792620092630386, -0.016649585217237473, 0.04638267308473587, -0.026278384029865265, 0.0362727977335453, -0.013748014345765114, 0.019733993336558342, -0.014331774786114693, -0.011560003273189068, -0.027156347408890724, 0.01205147709697485, -0.010211991146206856, -0.01439652219414711, 0.04466495290398598, -0.020629175007343292, -0.017184028401970863, -0.03554444760084152, 0.0011035815114155412, -0.0004932194715365767, -0.0013036250602453947, 0.007321339100599289, -0.013951013796031475, 0.016773568466305733, 0.014363694936037064, 0.028523851186037064, 0.03378633037209511, -0.027120554819703102, 0.024396905675530434, -0.012205972336232662, 0.03997202590107918, 0.021574728190898895, -0.005741717293858528, 0.040611181408166885, 0.028042716905474663, -0.00560950068756938, -0.006848977878689766, 0.032224614173173904, 0.0010996232740581036, 0.028681088238954544, -0.03690856322646141, -1.3437897017354317e-8, -0.02064778096973896, 0.05186165124177933, 0.009139938279986382, 0.029294496402144432, 0.013252788223326206, 0.0020689915399998426, 0.021741703152656555, 0.01623326539993286, -0.04167577624320984, 0.0014662249013781548, 0.03872070088982582, -0.0004246035823598504, -0.027018480002880096, 0.002804721239954233, 0.0035811844281852245, -0.04505562782287598, -0.029724348336458206, 0.036145783960819244, 0.02083882875740528, 0.03565745800733566, 0.03528113663196564, 0.02491443045437336, 0.0014323194045573473, 0.010696414858102798, 0.052014634013175964, -0.013191686943173409, -0.004654508549720049, -0.08599827438592911, 0.016140883788466454, 0.01451751496642828, -0.009192334488034248, -0.030242959037423134, 0.0031158877536654472, 0.014510339125990868, 0.010937673039734364, 0.0008602940361015499, 0.03236376494169235, 0.012291012331843376, 0.0003721059183590114, 0.02367536723613739, -0.018510589376091957, -0.03885680437088013, -0.040255434811115265, -0.03899504616856575, -0.01804227940738201, 0.01416716817766428, -0.04540626332163811, 0.015809515491127968, 0.03199836239218712, -0.06393594294786453, 0.012918254360556602, -0.03560815006494522, 0.003281655954197049, 0.027458837255835533, 0.022361448034644127, -0.02865060232579708, -0.01864178106188774, 0.015609966591000557, -0.06279505044221878, -0.025190444663167, 0.018584338948130608, -0.031259648501873016, -0.03197140619158745, -0.019537361338734627 ]
scikit-learn-random-forests-feature-importance
https://markhneedham.com/blog/2017/06/16/scikit-learn-random-forests-feature-importance
false
2017-06-23 12:26:49
Shell: Create a comma separated string
[ "shell", "scripting", "bash" ]
[ "Shell Scripting" ]
I recently needed to generate a string with comma separated values, based on iterating a range of numbers. e.g. we should get the following output where n = 3 [source,bash] ---- foo-0,foo-1,foo-2 ---- I only had the shell available to me so I couldn't shell out into Python or Ruby for example. That means it's bash scripting time! If we want to iterate a range of numbers and print them out on the screen we can write the following code: [source,bash] ---- n=3 for i in $(seq 0 $(($n > 0? $n-1: 0))); do echo "foo-$i" done foo-0 foo-1 foo-2 ---- Combining them into a string is a bit more tricky, but luckily I found http://ajhaupt.blogspot.co.uk/2010/12/create-comma-separated-string-in-shell.html[a great blog post] by Andreas Haupt which shows what to do. Andreas is solving a more complicated problem than me but these are the bits of code that we need from the post. [source,bash] ---- n=3 combined="" for i in $(seq 0 $(($n > 0? $n-1: 0))); do token="foo-$i" combined="${combined}${combined:+,}$token" done echo $combined foo-0,foo-1,foo-2 ---- This won't work if you set +++<cite>+++n<0+++</cite>+++ but that's ok for me! I'll let Andreas explain how it works: * +++<cite>+++${combined:+,}+++</cite>+++ will return either a comma (if +++<cite>+++combined+++</cite>+++ exists and is set) or nothing at all. * In the first invocation of the loop +++<cite>+++combined+++</cite>+++ is not yet set and nothing is put out. * In the next rounds +++<cite>+++combined+++</cite>+++ is set and a comma will be put out. We can see how it in action by printing out the value of +++<cite>+++$combined+++</cite>+++ after each iteration of the loop: [source,bash] ---- n=3 combined="" for i in $(seq 0 $(($n > 0 ? $n-1: 0))); do token="foo-$i" combined="${combined}${combined:+,}$token" echo $combined done foo-0 foo-0,foo-1 foo-0,foo-1,foo-2 ---- Looks good to me!
null
null
[ -0.0013629343593493104, 0.007231442723423243, -0.042015817016363144, 0.011502037756145, 0.07386820763349533, 0.031126821413636208, 0.005209180526435375, 0.02695380337536335, -0.009786847047507763, -0.004689950495958328, -0.010591690428555012, 0.018457159399986267, -0.07742586731910706, 0.01221548579633236, -0.01820714771747589, 0.07998467981815338, 0.06760425120592117, -0.009673082269728184, 0.01682235859334469, 0.018581794574856758, -0.01709962636232376, 0.04328764230012894, 0.001201491802930832, -0.003865043632686138, 0.05882883444428444, 0.01695687137544155, -0.005885929800570011, 0.016576163470745087, -0.06345361471176147, 0.012214304879307747, -0.011279449798166752, 0.015731560066342354, 0.013702538795769215, -0.014186706393957138, 0.01761196367442608, -0.01313707698136568, -0.030382873490452766, -0.030055902898311615, 0.01544865407049656, -0.0018422043649479747, -0.035296373069286346, -0.0009125866345129907, -0.01805041916668415, 0.017200736328959465, -0.018096502870321274, 0.006363128311932087, -0.037292417138814926, -0.0006091102841310203, -0.029754526913166046, 0.016113203018903732, -0.06643791496753693, 0.010542537085711956, 0.002331694820895791, -0.05217251181602478, 0.018758822232484818, 0.022687353193759918, 0.04619462043046951, -0.07835870236158371, 0.03929450362920761, -0.05039412900805473, 0.012763258069753647, 0.015198715962469578, -0.011147182434797287, 0.03544023260474205, 0.013681563548743725, -0.02653750404715538, -0.004228337202221155, 0.04191020876169205, -0.06751035898923874, -0.031014813110232353, -0.02748015895485878, 0.03685801476240158, -0.06399074196815491, -0.025487983599305153, 0.0016159276710823178, -0.047783344984054565, -0.015470358543097973, 0.03819699212908745, 0.012007727287709713, 0.07676392048597336, -0.037125274538993835, 0.01795761100947857, 0.009443587623536587, 0.006452558562159538, 0.01638956181704998, -0.018134931102395058, -0.03353658318519592, -0.000708528736140579, -0.028046652674674988, 0.032932352274656296, 0.029492240399122238, -0.032541945576667786, -0.02044587954878807, 0.0209675133228302, 0.01974569633603096, 0.006982762366533279, -0.0016237397212535143, -0.008423457853496075, -0.005532796960324049, 0.010986399836838245, -0.047363363206386566, -0.007485146634280682, 0.03882220759987831, -0.017920244485139847, -0.07831693440675735, 0.032485395669937134, -0.024200698360800743, 0.017482919618487358, 0.06312735378742218, -0.0031243315897881985, -0.03559308126568794, 0.009593972004950047, -0.010725812055170536, 0.005990791600197554, -0.06935754418373108, 0.04319033399224281, -0.007170908618718386, -0.02310464344918728, 0.005421231035143137, 0.018189437687397003, 0.02975495345890522, 0.053171589970588684, 0.018247166648507118, 0.08065079897642136, -0.030706556513905525, 0.01993435062468052, 0.033184099942445755, 0.0740395337343216, -0.02671208791434765, -0.07076746225357056, -0.011554750613868237, 0.051764942705631256, -0.014931602403521538, -0.005324288737028837, -0.03581413999199867, -0.0182514488697052, -0.023728255182504654, -0.0013423991622403264, 0.05364173278212547, 0.03137928619980812, 0.031100332736968994, -0.006386842578649521, -0.019969545304775238, -0.037646129727363586, 0.0371619388461113, 0.026126420125365257, -0.023062486201524734, -0.022424742579460144, -0.027444075793027878, -0.009312029927968979, 0.004637783858925104, -0.0031602720264345407, 0.04158666729927063, -0.021845703944563866, 0.0005021668039262295, 0.06002537161111832, 0.04590326547622681, 0.047139402478933334, -0.0229788925498724, -0.002356239128857851, 0.04435519874095917, 0.018034186214208603, 0.02544497698545456, 0.064961276948452, 0.00834626518189907, -0.007726212497800589, -0.013248949311673641, 0.020734848454594612, -0.04502684623003006, -0.0014580654678866267, -0.045164771378040314, -0.023071955889463425, 0.04665222018957138, -0.02573537826538086, 0.009039773605763912, -0.010030839592218399, 0.043524954468011856, 0.030721833929419518, 0.05502541363239288, 0.007167113944888115, -0.08223134279251099, 0.054592642933130264, 0.0007840538746677339, 0.03807183727622032, 0.020335137844085693, -0.01170849334448576, 0.07613563537597656, 0.05165894329547882, 0.0012038267450407147, 0.032555874437093735, -0.05556514859199524, -0.10290779918432236, -0.020770704373717308, -0.003303561359643936, 0.03833376616239548, -0.0461934395134449, -0.007083949167281389, 0.039468489587306976, 0.04846407473087311, 0.027963776141405106, -0.01716987043619156, -0.014138592407107353, 0.05445393547415733, -0.07758405804634094, -0.04246068745851517, 0.04783419147133827, 0.033622704446315765, -0.0224315132945776, -0.035395607352256775, 0.011209682561457157, 0.013240622356534004, 0.04756799712777138, 0.002373412251472473, -0.018879953771829605, 0.03856441751122475, 0.03082379512488842, 0.06317223608493805, 0.007579474709928036, 0.011408837512135506, -0.03598300367593765, 0.013482356444001198, 0.013056227006018162, -0.007389260921627283, -0.013342470861971378, -0.003882410703226924, 0.1451590359210968, 0.05433296784758568, 0.0048743076622486115, -0.04913559928536415, 0.04649773985147476, -0.01820349134504795, -0.03612628951668739, -0.014827569015324116, 0.010079121217131615, -0.04187946021556854, 0.06639476120471954, -0.03780641406774521, 0.0005159926950000226, 0.010837326757609844, -0.031833600252866745, 0.016174305230379105, 0.08330722898244858, -0.024211131036281586, 0.040501270443201065, -0.033673036843538284, -0.04110943526029587, -0.03184925392270088, -0.016614405438303947, -0.0777558758854866, -0.011181637644767761, 0.03172150254249573, -0.01785997673869133, 0.016961902379989624, -0.041477303951978683, -0.05214247480034828, 0.001645937329158187, -0.050241414457559586, 0.02275356464087963, 0.030442165210843086, 0.02846410684287548, -0.04788149893283844, 0.09559608995914459, 0.02229922264814377, 0.020820574834942818, -0.049557119607925415, -0.03322620689868927, -0.0356176421046257, 0.05624410882592201, 0.0017602831358090043, -0.008532663807272911, 0.016598932445049286, 0.04664318263530731, 0.013605061918497086, -0.0015459480928257108, 0.00666264770552516, -0.02072860859334469, 0.003276124596595764, -0.008766443468630314, 0.004493833985179663, -0.06900203973054886, -0.01245045568794012, 0.03571576625108719, -0.04167155548930168, -0.05067230761051178, 0.009385905228555202, -0.06320206075906754, 0.04327358677983284, -0.05907781049609184, -0.06459608674049377, -0.006668352521955967, -0.005040873307734728, 0.024712620303034782, -0.011085012927651405, 0.024110374972224236, 0.061147384345531464, 0.023958720266819, 0.026217030361294746, 0.017219901084899902, 0.03177870064973831, 0.025549814105033875, -0.01231436524540186, -0.012578862719237804, 0.03485792875289917, -0.011286808177828789, -0.029577452689409256, -0.05028488114476204, -0.021637529134750366, 0.013449987396597862, -0.2558119297027588, 0.027933916077017784, -0.04714536294341087, -0.03225169703364372, 0.010847681201994419, -0.04660539701581001, 0.004659861326217651, -0.05882405862212181, 0.006134188733994961, 0.025124602019786835, -0.029866188764572144, -0.04227675497531891, -0.015817707404494286, 0.036510344594717026, -0.007714357692748308, 0.008411264047026634, 0.020909467712044716, -0.014474031515419483, 0.020854352042078972, 0.030479274690151215, 0.03129328787326813, -0.060674142092466354, -0.001524057937785983, 0.05230356380343437, 0.020720457658171654, 0.08333514630794525, -0.0604071207344532, 0.046484146267175674, -0.055654413998126984, -0.019905798137187958, -0.010388166643679142, -0.01709623821079731, 0.009499145671725273, 0.015509650111198425, -0.03411559388041496, 0.00879218801856041, 0.049570947885513306, -0.017781643196940422, 0.05647413060069084, 0.014569297432899475, -0.05479160323739052, -0.02911665104329586, 0.027194252237677574, -0.008254416286945343, 0.05863764509558678, 0.0007413995917886496, -0.00010613505583023652, -0.001025988720357418, -0.040120407938957214, 0.07023037225008011, -0.03317481279373169, -0.03031371720135212, -0.0326993502676487, 0.002587604569271207, -0.01276969350874424, -0.02228323370218277, -0.04206833243370056, 0.006695196032524109, -0.01782449521124363, -0.0011057001538574696, -0.012278741225600243, -0.07044003903865814, -0.02559646964073181, -0.06078046187758446, -0.006147355772554874, -0.02947486937046051, -0.03598418086767197, -0.024446511641144753, 0.09567821770906448, 0.060682665556669235, -0.020416971296072006, -0.014036951586604118, -0.04679659754037857, -0.09924409538507462, -0.019457921385765076, -0.043650709092617035, -0.016113774850964546, 0.0036329005379229784, -0.029262984171509743, 0.04895834997296333, -0.045410070568323135, -0.036806780844926834, 0.04012805223464966, 0.004974797833710909, 0.03691600263118744, -0.03983395919203758, -0.0520891398191452, 0.004657984245568514, -0.011688774451613426, 0.0026338789612054825, 0.0852145329117775, -0.015952298417687416, -0.020917080342769623, 0.0025553845334798098, 0.02074117213487625, 0.018914198502898216, 0.02968832477927208, 0.009416474960744381, 0.034596312791109085, 0.018138930201530457, 0.09773267805576324, -0.04334687814116478, 0.03626059368252754, -0.05943598225712776, -0.030875002965331078, -0.04492298513650894, -0.06001480668783188, 0.06189662218093872, 0.020359031856060028, 0.03084118664264679, -0.04263779893517494, -0.03376132249832153, 0.01755356229841709, -0.06108313798904419, -0.020082179456949234, -0.019034933298826218, -0.005879810079932213, 0.012219812721014023, 0.02436515875160694, -0.024799486622214317, -0.02752773091197014, -0.002342004096135497, 0.01822173036634922, -0.04006197303533554, -0.056779369711875916, -0.030860988423228264, 0.0005767141119576991, -0.0002971375361084938, 0.0036956260446459055, 0.0215745996683836, -0.009332327172160149, 0.02324642241001129, 0.02797503024339676, -0.008246215991675854, -0.013458279892802238, -0.007381771225482225, -0.012251308187842369, -0.02145823836326599, -0.028199268504977226, 0.028804440051317215, 0.0006869115750305355, -0.005061823409050703, -0.0036284886300563812, 0.05067574232816696, 0.02366880513727665, 0.008047553710639477, 0.039852287620306015, -0.024916179478168488, -0.015065780840814114, 0.005009780637919903, 0.00831138901412487, -0.036704715341329575, -0.006656534969806671, -0.03123461827635765, -0.046031706035137177, 0.0059472196735441685, 0.01879636012017727, -0.010871886275708675, -0.03707563504576683, -0.042231954634189606, 0.01558046042919159, -0.03225978463888168, 0.005574339535087347, -0.023417849093675613, -0.02378045953810215, 0.029060259461402893, -0.03106517344713211, 0.05401664227247238, -0.034162670373916626, 0.03284848481416702, 0.020154817029833794, 0.02131900191307068, 0.005571428220719099, -0.007673417683690786, 0.003441496752202511, -0.02441718801856041, 0.04976731538772583, 0.05127720534801483, 0.008250788785517216, 0.025157688185572624, 0.030341414734721184, -0.03564069792628288, 0.009856315329670906, 0.04794607311487198, 0.04952540993690491, 0.0008238617447204888, -0.002732910681515932, -0.010247485712170601, -0.042840395122766495, -0.03328866884112358, -0.03419167175889015, -0.026059087365865707, -0.006533431354910135, 0.006690637674182653, -0.04765057936310768, -0.03529048338532448, 0.005543334409594536, 0.10609275102615356, -0.012064280919730663, 0.012960617430508137, -0.0014143246226012707, -0.014170335605740547, -0.03335985541343689, 0.0242217555642128, 0.03423989191651344, -0.04198306053876877, -0.00767022930085659, -0.042423147708177567, -0.015883110463619232, 0.03354012221097946, 0.025108380243182182, -0.059460751712322235, 0.015214945189654827, 0.0037575915921479464, 0.02120456099510193, 0.008435701951384544, -0.03530663624405861, -0.027640920132398605, -0.020876852795481682, -0.03656485676765442, -0.00015834879013709724, -0.0022868504747748375, 0.05834418535232544, -0.01999495178461075, -0.023653315380215645, -0.00269419327378273, -0.026850754395127296, -0.020011886954307556, 0.03210265561938286, -0.02987801283597946, 0.030220696702599525, -0.03979571908712387, 0.014812571927905083, 0.025571489706635475, -0.008860505186021328, -0.05378562584519386, -0.04140572249889374, 0.011676691472530365, -0.026873556897044182, 0.026600219309329987, -0.0029310574755072594, -0.005626699887216091, -0.012963888235390186, 0.014696621336042881, -0.012753106653690338, -0.026130128651857376, -0.020817134529352188, -0.04639048129320145, -0.0000565023256058339, 0.06333895027637482, 0.016513433307409286, 0.0460793562233448, -0.03918420895934105, -0.016278821974992752, 0.06635860353708267, -0.014184108003973961, -0.01878710836172104, -0.018768785521388054, -0.0738857313990593, 0.019694583490490913, -0.007915166206657887, 0.04549475386738777, -0.05838882550597191, 0.031081603839993477, 0.0400998592376709, 0.0007711718790233135, 0.011829589493572712, -0.02902861498296261, 0.035849835723638535, -0.028384072706103325, -0.01387404277920723, -0.07638939470052719, -0.008034382946789265, 0.023348253220319748, 0.014369126409292221, -0.030778126791119576, -0.017712248489260674, 0.0027197774033993483, 0.012125649489462376, -0.04989607632160187, -0.02478371001780033, 0.019979404285550117, -0.012433266267180443, -0.014132726937532425, 0.03164351359009743, -0.07212115824222565, 0.03972123563289642, 0.044309791177511215, -0.03469732031226158, -0.034622758626937866, -0.03182600438594818, 0.03583250939846039, 0.02803456224501133, 0.06141345202922821, 0.007163464557379484, -0.024834878742694855, 0.07765697687864304, 0.03491625934839249, 0.018180571496486664, 0.041585344821214676, -0.02624167688190937, 0.02213711105287075, 0.025996724143624306, -0.012322066351771355, -0.012374685145914555, 0.006657177582383156, -0.03673562407493591, -0.014349759556353092, -0.03131527081131935, 0.01948264241218567, -0.01270021591335535, -0.01551293209195137, 0.06649132072925568, -0.0040138415060937405, -0.04311671108007431, -0.05563179776072502, 0.03166721388697624, -0.023176155984401703, 0.01602969504892826, -0.03162435442209244, -0.0010209447937086225, -0.05658985301852226, 0.07915648072957993, 0.0432041697204113, 0.011771781370043755, 0.05086390674114227, -0.03360447660088539, -0.03047672100365162, 0.014147459529340267, 0.03909165412187576, 0.061118192970752716, 0.05540169030427933, 0.003837023628875613, 0.020034272223711014, -0.037767115980386734, -0.045350443571805954, -0.01880527101457119, -0.019701624289155006, 0.04141627997159958, -0.02765454351902008, -0.009173765778541565, 0.08955724537372589, -0.00881732814013958, 0.0417507104575634, 0.024132901802659035, -0.007125578820705414, 0.009236937388777733, 0.025183601304888725, 0.04406610503792763, 0.04127812013030052, 0.015738388523459435, 0.0048461188562214375, 0.010346753522753716, -0.02333461120724678, 0.04986467584967613, -0.006849206518381834, -0.0041793640702962875, 0.034215379506349564, 0.02341981790959835, 0.028934624046087265, 0.0007690095808357, 0.07371800392866135, 0.09136714041233063, -0.018205029889941216, -0.030641328543424606, 0.01539624948054552, 0.0705527663230896, -0.017827987670898438, 0.011229332536458969, 0.013147812336683273, -0.0209694504737854, -0.03272669017314911, -0.021841103211045265, -0.02075134590268135, -0.028274845331907272, -0.01461109984666109, 0.023246802389621735, 0.014485972933471203, -0.004744747653603554, 0.04048972576856613, -0.006855736020952463, -0.03191561996936798, -0.016525855287909508, -0.049829788506031036, -0.04283560812473297, -0.04061812162399292, -0.0013738502748310566, 0.007824867032468319, -0.010617326013743877, -0.010400649160146713, -0.009097510948777199, -0.04317282512784004, -0.04286998510360718, -0.003302170429378748, -0.045285146683454514, -0.028502490371465683, -0.0037664747796952724, 0.014290662482380867, 0.056650735437870026, 0.030739039182662964, 0.04694844409823418, -0.004528707358986139, -0.00614943215623498, 0.022296372801065445, 0.007825999520719051, 0.047444652765989304, 0.014740081503987312, -0.03102448210120201, -0.05253719165921211, 0.03545890375971794, -0.007504856679588556, 0.016169941052794456, -0.05635400861501694, 0.016084464266896248, 0.01003940124064684, -0.02805258519947529, 0.060975246131420135, -0.06451272964477539, 0.026039710268378258, -0.04918438941240311, -0.018054254353046417, 0.019443396478891373, -0.014185674488544464, 0.05465428903698921, -0.0020140684209764004, 0.0777343288064003, 0.022195899859070778, 0.030537469312548637, -0.03409348800778389, 0.000818225322291255, -0.014129379764199257, 0.03471243754029274, -0.027335481718182564, -0.027373991906642914, -0.07284004241228104, -0.05992170423269272, -0.002614818513393402, -0.008507809601724148, -0.019526617601513863, -0.020874129608273506, 0.002403056249022484, 0.008633469231426716, -0.050715137273073196, 0.04012945294380188, -0.007998654618859291, 0.013064148835837841, -0.015900321304798126, -0.04023627191781998, -0.02255694754421711, 0.015533383935689926, -0.037932928651571274, 0.0410500206053257, 0.014072480611503124, -0.010106435976922512, -0.012788821011781693, -0.012497305870056152, 0.017290744930505753, 0.027402246370911598, -0.009607925079762936, 0.03570998087525368 ]
[ -0.08039630949497223, -0.03012062795460224, -0.032514482736587524, -0.044369038194417953, 0.024660613387823105, -0.07830765098333359, -0.046632252633571625, 0.0020750544499605894, 0.016747886314988136, -0.011528249830007553, 0.0011154956882819533, -0.039420075714588165, 0.0230706799775362, -0.03969776630401611, 0.05017789080739021, -0.007927147671580315, -0.039161864668130875, -0.02525809034705162, -0.027357883751392365, 0.031317077577114105, 0.01879950240254402, 0.009842900559306145, -0.04277898743748665, -0.027217067778110504, 0.023571079596877098, 0.06477594375610352, 0.03949761763215065, -0.043679166585206985, -0.008467492647469044, -0.21665626764297485, 0.03446586802601814, 0.01967897079885006, 0.05210953578352928, -0.03462967649102211, 0.01445457711815834, 0.058061420917510986, -0.007460158783942461, 0.023734742775559425, 0.016614343971014023, 0.06096039339900017, 0.04229596629738808, 0.01532998587936163, -0.04424933344125748, -0.0102773979306221, -0.004368561320006847, -0.006949594244360924, -0.05267249420285225, -0.025398511439561844, 0.0015069894725456834, 0.001162366708740592, -0.0503174252808094, -0.003039127914234996, -0.038647834211587906, -0.004906131885945797, -0.010927677154541016, 0.019831813871860504, 0.022667676210403442, 0.09140531718730927, -0.012132542207837105, -0.029676228761672974, -0.004783076234161854, 0.010007493197917938, -0.15306340157985687, 0.0877184122800827, 0.04600870981812477, 0.016465529799461365, -0.0031300829723477364, 0.0059671057388186455, -0.03350100293755531, 0.10578998923301697, -0.0033816404175013304, -0.021679937839508057, -0.04628078639507294, 0.08166778087615967, -0.01563517563045025, -0.01654893532395363, -0.012942538596689701, -0.01087170373648405, 0.06067464128136635, -0.0030372189357876778, -0.057780150324106216, -0.03236380219459534, -0.029808754101395607, -0.02918815426528454, -0.03771376609802246, -0.02617407776415348, -0.023101041093468666, 0.030928829684853554, 0.012310433201491833, -0.009541393257677555, 0.020290115848183632, -0.053798288106918335, 0.0071072764694690704, 0.005203690845519304, -0.07187505066394806, -0.02236001193523407, 0.02530852146446705, -0.008235353045165539, 0.007527666166424751, 0.41283586621284485, -0.010635332204401493, -0.028028467670083046, 0.03949561342597008, -0.021338418126106262, 0.010563229210674763, 0.020140834152698517, -0.0006922612083144486, -0.027272291481494904, 0.01528243999928236, -0.06845895946025848, 0.014823714271187782, -0.018663018941879272, 0.08491411805152893, -0.08598702400922775, -0.00032207806361839175, 0.014672079123556614, 0.026515623554587364, 0.0012781007681041956, 0.027525359764695168, 0.027517646551132202, -0.012087519280612469, -0.03690599277615547, 0.009674450382590294, 0.03458533063530922, 0.04716122895479202, 0.003807161236181855, 0.021486368030309677, 0.07439553737640381, 0.02508648857474327, 0.03082665055990219, 0.04324771836400032, -0.04653211683034897, -0.021422848105430603, -0.008236672729253769, -0.009744704701006413, 0.012515893206000328, 0.02860024757683277, -0.01913660392165184, 0.021705783903598785, 0.007283942773938179, 0.018662746995687485, -0.09031178802251816, 0.0015150851104408503, -0.0069999354891479015, -0.025922216475009918, 0.1073567196726799, -0.02690267376601696, -0.015837259590625763, -0.04456552863121033, -0.023161934688687325, -0.014721520245075226, 0.023763947188854218, 0.037127625197172165, -0.056706201285123825, 0.01082628220319748, 0.038851555436849594, 0.07750198245048523, -0.007219252176582813, -0.04461251199245453, 0.004874631762504578, -0.02607552893459797, -0.0341622456908226, -0.05769961699843407, 0.05788758397102356, 0.04715763404965401, -0.0726250410079956, -0.03690687566995621, 0.024449093267321587, 0.0018413631478324533, -0.07556776702404022, 0.030018139630556107, -0.02562873624265194, -0.04998370632529259, 0.007276876829564571, 0.025100842118263245, -0.0347081683576107, -0.023075468838214874, 0.029793037101626396, 0.0752878487110138, 0.015577840618789196, -0.009542489424347878, 0.021452488377690315, -0.05823488533496857, 0.017615875229239464, -0.038680993020534515, -0.07449611276388168, -0.09926560521125793, 0.02194180153310299, -0.04339629411697388, -0.0007800750317983329, 0.007365902420133352, 0.007765833288431168, -0.07976152002811432, 0.04085393622517586, -0.03304734453558922, -0.022243760526180267, 0.01648600772023201, 0.00934792123734951, 0.0064890724606812, -0.031146038323640823, 0.04657450690865517, 0.013478410430252552, 0.006601681467145681, 0.007442350499331951, -0.04396950453519821, -0.01267286203801632, 0.0705702155828476, -0.02294587530195713, 0.06254791468381882, 0.029363175854086876, -0.0197673998773098, -0.015542286448180676, 0.041189733892679214, -0.0032323156483471394, -0.021015910431742668, -0.01769510842859745, -0.01634485460817814, 0.004240837879478931, 0.02751724049448967, 0.027327973395586014, -0.049965012818574905, -0.09178850054740906, -0.026869749650359154, -0.3457838296890259, -0.02590475231409073, 0.03117319941520691, -0.0013562431558966637, 0.06579390913248062, -0.02319679595530033, -0.014895841479301453, -0.01573602296411991, -0.0293580312281847, 0.0132096316665411, 0.04703610762953758, -0.03244229033589363, 0.0009586880332790315, -0.06323607265949249, -0.025765739381313324, 0.044001445174217224, -0.03990248963236809, -0.034546587616205215, -0.0008913003839552402, 0.07753682136535645, -0.007686546538025141, -0.011139856651425362, -0.04071097448468208, -0.04266653582453728, -0.005007073748856783, -0.05063694342970848, 0.07788944244384766, 0.05070814490318298, 0.06285189837217331, -0.016276853159070015, 0.07059787958860397, -0.0032909808214753866, -0.004623018205165863, -0.058740366250276566, -0.006509459111839533, -0.012728123925626278, -0.0009640780044719577, 0.019049478694796562, 0.023746009916067123, 0.031369250267744064, -0.013103682547807693, 0.017483191564679146, -0.04249030724167824, -0.008331013843417168, 0.007572281640022993, -0.03262625262141228, -0.007203199435025454, -0.02197761833667755, 0.015827424824237823, 0.08206206560134888, 0.04220619425177574, 0.028122471645474434, 0.017098795622587204, -0.026599470525979996, 0.005616323556751013, -0.03246069326996803, -0.060353346168994904, 0.005742547567933798, 0.0004439700278453529, -0.05690506473183632, 0.06032547354698181, 0.03160519152879715, 0.0452987365424633, -0.0016875357832759619, -0.0436992309987545, 0.005475756712257862, -0.014677782543003559, 0.02116299979388714, 0.019944539293646812, -0.018164845183491707, -0.031461361795663834, 0.10308215022087097, 0.016924642026424408, 0.026192115619778633, 0.004658109974116087, 0.04073239862918854, -0.020558420568704605, -0.002334773540496826, 0.0067963385954499245, -0.0056687393225729465, 0.04312608018517494, -0.01192602701485157, 0.042846985161304474, -0.02542913518846035, -0.004151266999542713, 0.041125401854515076, 0.01742434874176979, 0.02518637292087078, 0.06123710051178932, -0.011369534768164158, -0.00828718300908804, -0.013910297304391861, 0.010889939963817596, -0.02975277602672577, 0.04577465355396271, -0.010832417756319046, -0.2718408405780792, 0.021909482777118683, 0.0014040656387805939, 0.06478113681077957, 0.01777268946170807, 0.03953445702791214, 0.050001297146081924, -0.05803466960787773, -0.015217242762446404, 0.014934733510017395, 0.021201444789767265, 0.04114565998315811, -0.031968727707862854, -0.0184144526720047, 0.010030340403318405, -0.003418368985876441, 0.05538971722126007, -0.02335185930132866, 0.0013167323777452111, 0.022118370980024338, 0.03163843974471092, 0.0038569748867303133, 0.18848077952861786, -0.014444492757320404, 0.03928293287754059, -0.0008188628708012402, -0.007250038906931877, 0.025278853252530098, 0.09932973980903625, 0.025175582617521286, 0.0007075893809087574, 0.0011994920205324888, 0.05969041958451271, -0.01809089072048664, 0.019749470055103302, -0.04076926410198212, -0.01573885791003704, 0.06267914175987244, 0.013403331860899925, -0.04262468218803406, -0.044709425419569016, 0.0394321009516716, -0.025075186043977737, 0.042631085962057114, 0.027216853573918343, 0.005769105162471533, 0.0035937028005719185, -0.04284687712788582, -0.019935496151447296, 0.022920917719602585, -0.0383564755320549, 0.009158768691122532, -0.02414129488170147, -0.003029100364074111, 0.032719120383262634, 0.05099271237850189, 0.034428928047418594, -0.017871113494038582, 0.02094399183988571, 0.019844558089971542, -0.03899102658033371, -0.05334465578198433, 0.13778407871723175, 0.053594861179590225, -0.015190263278782368 ]
[ 0.03172801807522774, 0.047753144055604935, -0.05337139964103699, -0.018513597548007965, -0.01822507567703724, -0.00887276791036129, -0.004959914367645979, 0.0032118342351168394, -0.007797491271048784, -0.022507868707180023, -0.03911447525024414, 0.011353064328432083, 0.032511863857507706, -0.03724215552210808, 0.036561865359544754, -0.00818190909922123, -0.035105470567941666, -0.012730047106742859, 0.024751994758844376, -0.06128282472491264, -0.02701251581311226, 0.03836226835846901, 0.03377898409962654, 0.010716427117586136, 0.007760701701045036, 0.047544632107019424, -0.03496340662240982, -0.029964962974190712, 0.015369572676718235, -0.10069199651479721, -0.03075951710343361, 0.0010135471820831299, 0.03507496416568756, -0.03606850281357765, 0.006712368223816156, -0.013311165384948254, 0.00761152058839798, 0.06470108777284622, -0.012315190397202969, 0.014262313023209572, -0.002788972808048129, 0.009620603173971176, 0.006888073403388262, -0.020275460556149483, 0.016591893509030342, 0.012290135025978088, -0.08487062156200409, 0.01869289018213749, -0.010389796458184719, -0.01098139863461256, -0.011488083750009537, 0.0027752311434596777, -0.01537112332880497, 0.017410386353731155, 0.01006853487342596, -0.02759755775332451, -0.01281389594078064, 0.002876976737752557, -0.0013385628117248416, -0.05065176263451576, -0.0014330755220726132, 0.020982474088668823, -0.06277821213006973, -0.026401719078421593, 0.044680457562208176, -0.0525159128010273, -0.0035822291392832994, 0.012530037201941013, 0.029208237305283546, 0.015613767318427563, -0.009995095431804657, -0.004951429087668657, -0.013146890327334404, -0.03775286674499512, -0.0025817477144300938, 0.04989097639918327, 0.03113887459039688, -0.0290583036839962, 0.0011939220130443573, 0.001662174123339355, -0.03420279547572136, 0.014105867594480515, 0.02160821296274662, -0.017200637608766556, -0.019670046865940094, -0.00817001610994339, -0.014255977235734463, 0.05862106382846832, -0.023558562621474266, -0.0097603565081954, -0.0035825821105390787, 0.008566194213926792, 0.011960606090724468, 0.0038128304295241833, -0.04808065667748451, 0.02202567271888256, -0.041569750756025314, 0.0018287841230630875, 0.01587134599685669, 0.8327842354774475, 0.0168837308883667, 0.038710251450538635, 0.04310200735926628, -0.011540018953382969, -0.008074983023107052, 0.026138555258512497, 0.026404352858662605, -0.008871719241142273, 0.0474269799888134, -0.045492276549339294, 0.038379233330488205, -0.028048908337950706, 0.03392650932073593, 0.00617965729907155, 0.009844287298619747, 0.057767026126384735, 0.025178799405694008, 0.01649804785847664, 0.032702039927244186, -0.013964797370135784, 0.04938167706131935, -0.029788637533783913, 0.004930767230689526, 0.026099082082509995, 0.023487553000450134, -0.16355131566524506, -0.005613924935460091, -8.011391464881261e-33, 0.018644506111741066, -0.05987713113427162, 0.02018359676003456, 0.007743853144347668, 0.03096008114516735, 0.042331915348768234, -0.013010947033762932, -0.004504408221691847, -0.029854578897356987, -0.0044182962737977505, 0.016317039728164673, 0.012011274695396423, 0.004542578011751175, 0.0004999498487450182, 0.020016023889183998, -0.04667634144425392, 0.007209594361484051, 0.024509618058800697, 0.01289106160402298, -0.015008904039859772, 0.027034856379032135, -0.010356525890529156, -0.002167818835005164, 0.019566699862480164, 0.039164796471595764, 0.022330736741423607, 0.008608073927462101, -0.03268648311495781, 0.008297041058540344, -0.04413050785660744, -0.02127191238105297, 0.01999969221651554, 0.01105028297752142, -0.02966606244444847, 0.024336863309144974, -0.043272510170936584, -0.019625278189778328, 0.01044442504644394, 0.007423891685903072, -0.00831139087677002, -0.04436926171183586, -0.025240568444132805, -0.017792711034417152, -0.0029891852755099535, 0.013078620657324791, -0.013368798419833183, -0.017702965065836906, 0.04055878520011902, -0.005188588984310627, 0.021728504449129105, 0.01396107580512762, 0.01662597618997097, 0.001187680521979928, -0.008307605981826782, 0.00722722290083766, -0.0017845097463577986, -0.017692236229777336, 0.0032086404971778393, -0.002589697018265724, 0.022875728085637093, -0.023480430245399475, 0.04434790089726448, -0.0011055321665480733, 0.025463880971074104, 0.017060628160834312, 0.010796275921165943, 0.014123695902526379, 0.04454701021313667, 0.03628652170300484, 0.055261000990867615, -0.0461883544921875, 0.020473141223192215, -0.001668594777584076, -0.0012863241136074066, -0.01662623882293701, -0.03294733911752701, 0.010161232203245163, 0.002687083324417472, -0.00962144322693348, 0.03761749714612961, 0.04945427179336548, 0.016982967033982277, -0.015411079861223698, -0.0343610942363739, -0.0292520634829998, 0.013193088583648205, 0.0036208871752023697, 0.005977511405944824, -0.03706861659884453, -0.03738602250814438, 0.02748515084385872, 0.009749306365847588, -0.00854588020592928, -0.0366315133869648, 0.0030112643726170063, 7.588696185953044e-33, 0.00011217164865229279, -0.010913456790149212, -0.0019770453218370676, 0.009714806452393532, 0.015011620707809925, -0.037894830107688904, 0.03867495432496071, -0.025346802547574043, -0.024961940944194794, 0.01930454932153225, -0.04799028858542442, 0.001789130037650466, 0.003495378652587533, 0.02198285423219204, 0.07247670739889145, -0.02143717370927334, -0.0015995644498616457, 0.016786085441708565, 0.041806407272815704, 0.010883891023695469, 0.019749432802200317, -0.010677380487322807, 0.047234322875738144, 0.029942816123366356, -0.010885311290621758, 0.016117140650749207, -0.03069378063082695, -0.025095675140619278, 0.02456142194569111, -0.012936105951666832, 0.005009222310036421, -0.036878157407045364, 0.031146874651312828, -0.021795064210891724, -0.006329027004539967, 0.010901208966970444, -0.007631659507751465, -0.010968783870339394, 0.03616049140691757, -0.01856880448758602, 0.01531987264752388, 0.011201739311218262, 0.005478512495756149, 0.0024341579992324114, 0.014235002920031548, 0.012503927573561668, 0.016829034313559532, 0.0245782732963562, -0.01926242932677269, -0.013657202944159508, -0.006999029777944088, -0.002813031431287527, -0.046247441321611404, -0.008033481426537037, 0.01860605739057064, -0.04022065922617912, -0.022609811276197433, 0.00501016853377223, -0.05956299602985382, -0.009461074136197567, -0.028204455971717834, 0.044807881116867065, 0.004945066291838884, 0.011914717964828014, -0.01857725717127323, -0.00470624677836895, -0.034008726477622986, -0.030634477734565735, 0.004092354327440262, -0.018132328987121582, -0.009402194060385227, -0.03855958953499794, -0.01326486561447382, 0.04732772335410118, -0.0571809858083725, -0.004185162950307131, -0.04104872792959213, 0.029145987704396248, -0.011590441688895226, 0.031868766993284225, 0.0179603174328804, 0.0035627391189336777, 0.019843820482492447, 0.017624685540795326, 0.009802944958209991, 0.016499606892466545, -0.01879766769707203, 0.007148643955588341, 0.033992547541856766, 0.003907463513314724, 0.01395078469067812, 0.00496061984449625, -0.0059684282168745995, 0.027561264112591743, 0.010525952093303204, -1.323002685182928e-8, 0.010691994801163673, 0.015183955430984497, -0.04327455163002014, 0.027379896491765976, 0.04094661772251129, 0.02603749744594097, -0.0189695842564106, -0.03398904204368591, -0.013186381198465824, -0.0008252785191871226, -0.006106817163527012, -0.07071942836046219, -0.009400452487170696, 0.008074221201241016, 0.039192020893096924, -0.01635887287557125, 0.006106766872107983, -0.03927261009812355, 0.024466464295983315, 0.006122388411313295, -0.028882484883069992, 0.06425544619560242, 0.006103629246354103, -0.008976290933787823, -0.018298299983143806, 0.0006851470097899437, 0.0007697807159274817, -0.05609013885259628, 0.009169414639472961, -0.02345098927617073, 0.03950772061944008, -0.032352954149246216, -0.0495779886841774, 0.014264233410358429, 0.0007775392150506377, -0.05392676591873169, -0.010958332568407059, 0.010450340807437897, -0.01199351530522108, -0.029078954830765724, -0.0023851878941059113, -0.011805188842117786, 0.019004469737410545, -0.03308277949690819, -0.027902882546186447, -0.08952298760414124, 0.0025838492438197136, -0.017143895849585533, -0.0011716857552528381, -0.034486956894397736, 0.01749739795923233, -0.005629448685795069, 0.043343063443899155, 0.017202338203787804, 0.02898608334362507, 0.027104301378130913, -0.008540055714547634, -0.018391728401184082, -0.003229280700907111, -0.004070229362696409, 0.002986297942698002, -0.044395554810762405, -0.019748052582144737, -0.018155928701162338 ]
shell-create-comma-separated-string
https://markhneedham.com/blog/2017/06/23/shell-create-comma-separated-string
false
2017-06-14 08:49:06
Kubernetes: Which node is a pod on?
[ "kubernetes" ]
[ "Kubernetes" ]
When running Kubernetes on a cloud provider, rather than locally using https://github.com/kubernetes/minikube[minikube], it's useful to know which node a pod is running on. The normal command to list pods doesn't contain this information: [source,bash] ---- $ kubectl get pod NAME READY STATUS RESTARTS AGE neo4j-core-0 1/1 Running 0 6m neo4j-core-1 1/1 Running 0 6m neo4j-core-2 1/1 Running 0 2m ---- I spent a while searching for a command that I could use before I came across https://tachingchen.com/blog/Kubernetes-Assigning-Pod-to-Nodes/[Ta-Ching Chen's blog post] while looking for something else. Ta-Ching points out that we just need to add the flag +++<cite>+++-o wide+++</cite>+++ to our original command to get the information we require: [source,bash] ---- $ kubectl get pod -o wide NAME READY STATUS RESTARTS AGE IP NODE neo4j-core-0 1/1 Running 0 6m 10.32.3.6 gke-neo4j-cluster-default-pool-ded394fa-0kpw neo4j-core-1 1/1 Running 0 6m 10.32.3.7 gke-neo4j-cluster-default-pool-ded394fa-0kpw neo4j-core-2 1/1 Running 0 2m 10.32.0.10 gke-neo4j-cluster-default-pool-ded394fa-kp68 ---- Easy!
null
null
[ -0.03610643371939659, -0.025715377181768417, -0.01576988399028778, 0.003649413585662842, 0.08220206946134567, 0.008523465134203434, 0.021233968436717987, 0.031497832387685776, 0.008391059003770351, -0.010124512948095798, -0.010875490494072437, -0.02558067813515663, -0.05667026713490486, 0.03067157231271267, 0.010986562818288803, 0.05381976440548897, 0.07861026376485825, -0.005703445989638567, 0.023089813068509102, 0.009691243059933186, 0.03620174154639244, 0.018632560968399048, 0.003687493735924363, 0.03315339982509613, 0.03216638043522835, -0.0029015957843512297, 0.006505494937300682, 0.022028211504220963, -0.04723142459988594, 0.0011196609120815992, 0.013855152763426304, 0.02252950519323349, 0.048626381903886795, -0.00017817692423705012, 0.029162593185901642, 0.0044949846342206, -0.015830446034669876, -0.0017831602599471807, 0.0019213573541492224, 0.011789493262767792, -0.06403722614049911, 0.010707594454288483, 0.02486339397728443, 0.008777660317718983, -0.011045369319617748, 0.01940540224313736, -0.03283754736185074, -0.0017057588556781411, 0.00358764361590147, 0.007957609370350838, -0.07621072977781296, -0.0057484060525894165, -0.010776919312775135, -0.011716562323272228, 0.004733282141387463, 0.019929757341742516, 0.02696026861667633, -0.07539687305688858, 0.022054417058825493, -0.020243139937520027, -0.025342274457216263, -0.033308546990156174, 0.02170122228562832, 0.05052550137042999, 0.012006043456494808, -0.05815704166889191, 0.0023362089414149523, 0.04835929721593857, -0.02303485944867134, 0.0019447203958407044, 0.0013945194659754634, 0.03215258568525314, 0.009039665572345257, -0.005414653569459915, 0.04690028727054596, -0.03226582705974579, 0.00801584031432867, 0.05768197774887085, 0.03628351911902428, 0.07769594341516495, -0.03454121574759483, -0.03246414288878441, -0.027819762006402016, 0.010923648253083229, -0.0012444736203178763, -0.024840334430336952, -0.048173680901527405, -0.021419601514935493, -0.05591393634676933, 0.04309609904885292, 0.05208222195506096, -0.051476821303367615, 0.008459711447358131, -0.0022762087173759937, -0.0027994944248348475, 0.015855705365538597, 0.027038320899009705, 0.003230252070352435, 0.017901701852679253, -0.049740083515644073, -0.014305918477475643, -0.0051508196629583836, -0.02461051009595394, 0.02944985032081604, -0.10475270450115204, -0.04121348634362221, -0.010564052499830723, -0.0473707839846611, 0.008804467506706715, -0.015677638351917267, -0.01108552236109972, 0.002853450132533908, -0.01436794362962246, 0.006386789493262768, -0.05932708457112312, 0.07654669135808945, 0.003820450510829687, -0.04884820803999901, 0.028269344940781593, 0.007634518668055534, 0.016631225124001503, 0.10071567445993423, -0.0036413243506103754, 0.06351155787706375, -0.036349859088659286, 0.014131774194538593, -0.009290134534239769, 0.016234170645475388, -0.014159271493554115, -0.07326313108205795, -0.017786208540201187, 0.034861836582422256, 0.046375516802072525, 0.023780735209584236, -0.01857924461364746, -0.07960973680019379, -0.028904464095830917, 0.01265520229935646, 0.045769430696964264, 0.06167002022266388, -0.026857493445277214, -0.0357881598174572, 0.00005623282413580455, 0.023275969550013542, 0.020891766995191574, -0.0045396205969154835, -0.06053352728486061, -0.06878829002380371, -0.030679073184728622, 0.040084902197122574, -0.03487920016050339, 0.015592222101986408, 0.05481654033064842, -0.02887132205069065, 0.0032209339551627636, 0.10066911578178406, 0.021335002034902573, 0.016333524137735367, -0.011105941608548164, -0.013355574570596218, 0.0261846911162138, 0.03176787123084068, 0.03347891569137573, 0.08483411371707916, 0.010859914124011993, -0.0587511844933033, 0.008356519043445587, 0.028127342462539673, 0.017517834901809692, -0.006990473717451096, -0.03335094824433327, -0.06391220539808273, 0.0596468411386013, -0.022950654849410057, 0.04200192540884018, 0.020485199987888336, 0.06679341942071915, 0.016168946400284767, 0.016475489363074303, 0.028330514207482338, -0.062476836144924164, 0.052842896431684494, 0.004861265886574984, -0.012567325495183468, 0.004384406842291355, -0.018058037385344505, 0.04627206549048424, 0.01624363102018833, 0.011024991981685162, 0.017704669386148453, -0.09369004517793655, -0.07918663322925568, 0.019253764301538467, 0.011004868894815445, 0.04360309988260269, -0.03158262372016907, 0.004339123144745827, 0.0504060722887516, 0.003936103079468012, 0.01326065231114626, 0.039829544723033905, -0.019193995743989944, 0.03458162769675255, -0.06585360318422318, -0.06278127431869507, 0.05845613032579422, -0.018903667107224464, -0.0696161538362503, -0.015112364664673805, 0.03022347204387188, -0.04797356575727463, 0.023197581991553307, 0.005400382447987795, -0.023730160668492317, 0.04957295581698418, 0.007708781864494085, 0.004198242444545031, -0.007876038551330566, 0.024693895131349564, -0.011624076403677464, 0.006327270995825529, 0.03597208485007286, -0.014662257395684719, -0.0025914942380040884, 0.005914849694818258, 0.09619912505149841, 0.062380339950323105, -0.004508414305746555, -0.057423342019319534, 0.0782683938741684, 0.0599304661154747, -0.0010873455321416259, 0.00891332421451807, -0.026032693684101105, -0.003951091784983873, 0.0036268429830670357, -0.030856406316161156, -0.018981974571943283, 0.015016119927167892, -0.03734599053859711, -0.018387973308563232, 0.04993284121155739, -0.021279407665133476, 0.06086156517267227, 0.04789026826620102, -0.01535237580537796, 0.014679772779345512, -0.05024851858615875, -0.08135515451431274, -0.01773688942193985, 0.0037967683747410774, -0.006631517317146063, 0.06834615767002106, -0.060316335409879684, 0.003200078383088112, -0.04065649211406708, -0.02319900318980217, 0.011321746744215488, 0.0014154603704810143, 0.03978165239095688, -0.02903413027524948, 0.050969447940588, -0.03715263307094574, 0.026002155616879463, -0.013946158811450005, -0.040137723088264465, -0.017387093976140022, -0.010382289998233318, 0.01440042071044445, -0.013739403337240219, -0.0045913029462099075, -0.048231035470962524, 0.03641057759523392, -0.0482276976108551, 0.04124853387475014, 0.008669047616422176, 0.01175058726221323, 0.03191868215799332, 0.020135637372732162, -0.02457304112613201, -0.021982161328196526, 0.05374724790453911, -0.06247754022479057, -0.009963521733880043, 0.007616411428898573, -0.060435034334659576, 0.03610094264149666, -0.06771041452884674, -0.020004557445645332, -0.007152137346565723, -0.001010746811516583, 0.003952083643525839, -0.00045047560706734657, 0.03771059215068817, 0.04828961566090584, 0.03990607336163521, 0.0030611862894147635, 0.0270136296749115, -0.021185215562582016, 0.041198499500751495, -0.04400256276130676, 0.013798451982438564, 0.04853162541985512, -0.01948108710348606, -0.037514328956604004, -0.04110502824187279, -0.014651499688625336, -0.023226622492074966, -0.22511841356754303, 0.03791078180074692, -0.03503990173339844, -0.06990603357553482, -0.01771426759660244, -0.026095135137438774, -0.026579275727272034, -0.020948920398950577, 0.022653043270111084, 0.023337962105870247, -0.026630030944943428, -0.01191119197756052, 0.02281864918768406, 0.03193420544266701, -0.013285382650792599, 0.020604608580470085, 0.0077120051719248295, -0.05171961709856987, -0.029181724414229393, -0.036312635987997055, 0.002818342996761203, -0.041806794703006744, 0.015928272157907486, 0.0028322699945420027, 0.010054795071482658, 0.05127934738993645, -0.08828424662351608, 0.07111689448356628, -0.021083833649754524, -0.030925031751394272, -0.005211085546761751, -0.02222110703587532, -0.002087546745315194, 0.008431187830865383, 0.00507677998393774, 0.003542731748893857, 0.014976720325648785, -0.02555389329791069, 0.015252226032316685, 0.04618121311068535, -0.04161182790994644, -0.050165437161922455, 0.018478063866496086, 0.008042443543672562, 0.07916048169136047, -0.004394132178276777, -0.06895733624696732, -0.013212107121944427, -0.030575955286622047, 0.08790100365877151, -0.0027681828942149878, -0.027339613065123558, -0.03292660787701607, 0.017438383772969246, -0.035112164914608, -0.01857530139386654, -0.01606687717139721, -0.028027230873703957, -0.04917404055595398, -0.031631287187337875, -0.021004527807235718, -0.03906906396150589, 0.0086800716817379, -0.06842423975467682, -0.0020348750986158848, -0.04328114539384842, -0.06338400393724442, 0.00014203201862983406, 0.06849494576454163, 0.006945707369595766, -0.04236247390508652, -0.0004908504197373986, -0.04742084816098213, -0.09385182708501816, -0.006204722449183464, -0.04994971305131912, -0.03376119211316109, 0.019473830237984657, 0.006645787972956896, 0.03864619880914688, -0.058682527393102646, -0.024372762069106102, -0.0023465140257030725, 0.02015913836658001, 0.016972243785858154, -0.028661977499723434, -0.013987580314278603, -0.02977672778069973, 0.017885390669107437, -0.013681533746421337, 0.029309991747140884, -0.033213917165994644, -0.032461017370224, -0.006895905360579491, 0.0036750759463757277, 0.030901610851287842, -0.0006251541781239212, -0.009776105172932148, 0.040737513452768326, 0.04277715086936951, 0.05271283537149429, -0.028035128489136696, -0.009892068803310394, -0.03254532814025879, -0.023247992619872093, -0.008998732082545757, -0.05282066762447357, 0.03204217925667763, 0.0392284132540226, -0.016430314630270004, -0.0008265461074188352, -0.02161681279540062, 0.006139515433460474, -0.06687018275260925, 0.01467619463801384, 0.003321385011076927, 0.029757918789982796, 0.038658950477838516, 0.08905985951423645, -0.02780679240822792, -0.07228660583496094, 0.03219553828239441, -0.011660554446280003, -0.020138800144195557, -0.051618244498968124, 0.003399255685508251, -0.01597193069756031, -0.03134097903966904, 0.02976708859205246, 0.017595525830984116, 0.013937506824731827, 0.021953709423542023, 0.03856100142002106, -0.01316599640995264, 0.05136110261082649, -0.050326816737651825, 0.013735480606555939, -0.02504074200987816, 0.009703866206109524, -0.014645343646407127, -0.08021898567676544, -0.017942924052476883, 0.002180200768634677, 0.06964883208274841, 0.018346933647990227, -0.0020889444276690483, 0.025922972708940506, -0.010718349367380142, 0.04018782824277878, -0.016528133302927017, 0.0032482577953487635, -0.004133844748139381, 0.00887322798371315, -0.05394545942544937, 0.004626262933015823, -0.00061472796369344, 0.05493013188242912, -0.022972149774432182, -0.04284676909446716, -0.02652539126574993, 0.020113246515393257, -0.053224239498376846, -0.008483338169753551, -0.00022075939341448247, 0.0003551502013579011, 0.055061936378479004, -0.010219152085483074, 0.024394357576966286, 0.019296398386359215, 0.003569588763639331, -0.0014797673793509603, -0.05467962101101875, -0.03832303360104561, 0.023727435618638992, 0.019103987142443657, -0.021839676424860954, 0.030777310952544212, 0.06764452159404755, 0.021407995373010635, 0.012475045397877693, 0.029642408713698387, 0.0039033307693898678, 0.029812922701239586, 0.009223389439284801, 0.043195690959692, 0.043897826224565506, -0.012460004538297653, 0.01865743100643158, 0.007491960655897856, -0.005171629134565592, 0.023626402020454407, -0.00014205464685801417, -0.014987672679126263, -0.018769366666674614, 0.002144960220903158, -0.06256216764450073, 0.026254024356603622, 0.02506914734840393, -0.007695699576288462, 0.000754260050598532, -0.041470788419246674, 0.015165627002716064, -0.03379227966070175, 0.0314289815723896, 0.07112099975347519, -0.02482336387038231, 0.03304334357380867, 0.003836738644167781, 0.0003054127446375787, -0.00849198829382658, 0.025858668610453606, -0.06831881403923035, -0.005389189813286066, 0.0032108945306390524, 0.018760619685053825, -0.024551872164011, -0.04259520769119263, -0.010656977072358131, -0.0161034744232893, -0.005808360408991575, 0.03849031776189804, 0.04216517508029938, -0.0075492290779948235, -0.025971360504627228, -0.017905110493302345, 0.03301743417978287, -0.0038222353905439377, 0.007352402433753014, -0.006160913035273552, -0.008065180853009224, 0.00001513391180196777, -0.02688826620578766, 0.05658853426575661, 0.0072934883646667, -0.03031964600086212, 0.025283802300691605, -0.006102216430008411, -0.005525378044694662, -0.0012178629403933883, 0.038385629653930664, 0.014369604177772999, 0.03103960119187832, -0.04534698650240898, 0.008512891829013824, -0.03217289596796036, -0.021127358078956604, -0.006381887011229992, 0.007104243151843548, -0.0006786408484913409, 0.05461513251066208, 0.00983573216944933, 0.010277132503688335, -0.019499188289046288, -0.04554257169365883, 0.049760766327381134, -0.048075634986162186, -0.07747061550617218, 0.03424902260303497, -0.07151079177856445, 0.0214613638818264, 0.01982918195426464, 0.011615118943154812, -0.06426022201776505, 0.022556312382221222, 0.021578172221779823, 0.022604895755648613, -0.025251327082514763, -0.03153352066874504, 0.00008825775148579851, -0.04695314168930054, -0.026103755459189415, -0.08862681686878204, 0.003299689618870616, 0.029562784358859062, -0.01113344356417656, -0.013902231119573116, 0.05651748552918434, -0.02359507977962494, 0.008444189094007015, -0.06067328527569771, -0.04968514293432236, 0.05430988222360611, -0.023601120337843895, 0.0029911354649811983, 0.028030429035425186, -0.083920419216156, 0.03198757767677307, 0.06147029995918274, -0.027802724391222, -0.004901007283478975, -0.022426975890994072, 0.050994955003261566, -0.02169640175998211, 0.03759158402681351, -0.006323928479105234, -0.04408987984061241, 0.09371691197156906, 0.036605022847652435, 0.07199068367481232, 0.05264030024409294, -0.008460992947220802, 0.02820555493235588, 0.036082953214645386, -0.027749350294470787, -0.0008695852593518794, 0.022831493988633156, -0.024303019046783447, -0.031909916549921036, 0.030527327209711075, 0.01790701597929001, 0.005299053620547056, -0.019291188567876816, 0.054573189467191696, 0.018864650279283524, -0.027706900611519814, -0.07706613093614578, 0.02243046835064888, -0.03613292798399925, -0.010140767320990562, -0.04004278406500816, 0.023413050919771194, -0.07988503575325012, 0.06075204163789749, 0.05112757533788681, 0.013642249628901482, 0.034411948174238205, 0.01523023471236229, -0.042868200689554214, 0.019034337252378464, 0.0710822343826294, 0.09900175034999847, 0.0292697474360466, 0.03231547772884369, 0.03173578903079033, -0.03141900897026062, -0.015290196985006332, -0.019609369337558746, 0.02527051791548729, -0.011637628078460693, 0.01941247470676899, -0.012144704349339008, 0.06290530413389206, -0.02513427659869194, 0.0861118882894516, -0.016237344592809677, 0.043249983340501785, 0.006995108909904957, 0.01513088308274746, 0.03172353282570839, 0.030487604439258575, -0.0006278953514993191, 0.04856529086828232, -0.02970651350915432, -0.024935320019721985, -0.020712336525321007, -0.020506076514720917, -0.01736627332866192, 0.007453519385308027, -0.026881426572799683, -0.016292208805680275, 0.032770369201898575, -0.008051452226936817, 0.06289767473936081, 0.006155525334179401, -0.012772453017532825, 0.0029704475309699774, 0.045054841786623, -0.036748018115758896, 0.03965982049703598, 0.0009234917815774679, -0.016563735902309418, -0.004840531852096319, -0.034638453274965286, 0.003337584435939789, -0.05304756015539169, -0.022636037319898605, -0.005921399220824242, 0.01769826002418995, 0.020374048501253128, 0.02314707450568676, -0.020730460062623024, -0.031401876360177994, -0.03285954147577286, -0.03514572232961655, -0.05559263750910759, -0.05297566205263138, -0.0026483722031116486, 0.007939311675727367, -0.007951232604682446, 0.011360671371221542, -0.0015711718006059527, -0.03671460226178169, -0.010822135955095291, 0.007722340989857912, -0.0549132376909256, 0.00111877522431314, 0.019063930958509445, 0.0003888052888214588, 0.0348612442612648, 0.01413651928305626, 0.030113110318779945, 0.021426230669021606, -0.00048521076678298414, -0.010689538903534412, -0.01262007188051939, 0.03921256586909294, -0.006129211280494928, 0.0038478849455714226, -0.06580644845962524, 0.014630977995693684, 0.011867989785969257, 0.04592885449528694, -0.06199094280600548, 0.01655477099120617, 0.020511053502559662, 0.0008043720736168325, 0.046053752303123474, -0.022431783378124237, 0.016957400366663933, -0.04044027999043465, -0.025923732668161392, -0.008473506197333336, 0.016754774376749992, 0.010858961381018162, 0.01692679524421692, 0.07989109307527542, 0.06129934638738632, -0.005397025961428881, -0.02578442357480526, 0.002697296440601349, -0.015584525652229786, -0.01639772765338421, -0.06864447146654129, -0.03452493995428085, -0.05392985790967941, -0.05873844027519226, -0.011143860407173634, 0.02513948082923889, 0.01619059033691883, -0.05284080281853676, -0.0013683830620720983, -0.01965739205479622, -0.006417157594114542, -0.0018313544569537044, -0.04220958426594734, 0.0069888886064291, 0.004462165292352438, 0.0027699952479451895, -0.004948846995830536, 0.010439008474349976, -0.026908816769719124, -0.01606583409011364, 0.017913347110152245, -0.05903856083750725, -0.017300313338637352, -0.046865642070770264, 0.04824589937925339, 0.07098668813705444, 0.01524943858385086, -0.003464785171672702 ]
[ -0.057661738246679306, -0.051473844796419144, -0.011386629194021225, -0.03054998442530632, 0.10078039765357971, -0.034321170300245285, 0.003646625904366374, 0.017436403781175613, -0.017985882237553596, 0.018019426614046097, 0.023281177505850792, -0.05163176730275154, 0.001737142913043499, -0.018439114093780518, 0.060729917138814926, 0.002928667003288865, 0.009698472917079926, -0.03531453758478165, -0.022777032107114792, -0.0003099194436799735, 0.020218754187226295, -0.06347403675317764, -0.0105257797986269, -0.013057861477136612, 0.01228806097060442, 0.03818667307496071, 0.04902046173810959, -0.02932893857359886, 0.007091608364135027, -0.1921277493238449, 0.01637125387787819, -0.007229847367852926, 0.03538685664534569, -0.010112923569977283, 0.021560771390795708, 0.04454576224088669, 0.03805515542626381, -0.0003074235573876649, -0.01551717147231102, 0.038530316203832626, 0.05443728715181351, 0.008363477885723114, -0.07223038375377655, -0.002164902165532112, 0.005222968757152557, -0.017788587138056755, 0.02085060626268387, -0.035478342324495316, 0.00977172702550888, -0.03712351992726326, -0.02528267540037632, 0.0004639569961000234, 0.01558542251586914, -0.03244156017899513, 0.016710342839360237, -0.012682158499956131, 0.059271425008773804, 0.05053462088108063, 0.03282346576452255, 0.002646907465532422, 0.006353861652314663, -0.027880238369107246, -0.1352444291114807, 0.07334232330322266, 0.040031082928180695, 0.014242228120565414, -0.02227349951863289, -0.038369376212358475, -0.023739710450172424, 0.030864452943205833, 0.06105666607618332, 0.031118132174015045, -0.007902606390416622, 0.048314206302165985, -0.03080296330153942, 0.0010081259533762932, -0.006418258883059025, 0.04491916298866272, 0.03322543203830719, -0.03934470936655998, -0.07501634210348129, 0.013116933405399323, -0.04463796317577362, -0.003617028472945094, -0.046569421887397766, -0.0017392960144206882, 0.005079643335193396, 0.04867524281144142, 0.02034650556743145, 0.0661623403429985, 0.00836779735982418, 0.039421021938323975, 0.07887737452983856, 0.029004674404859543, -0.0953371599316597, -0.001658062101341784, -0.001111124991439283, -0.030060864984989166, -0.00581892766058445, 0.4230763912200928, 0.005964295938611031, -0.0031180018559098244, 0.0057243905030190945, 0.046156641095876694, 0.06079431250691414, -0.01693052053451538, -0.02876853756606579, -0.04305046424269676, 0.04866410419344902, 0.049576543271541595, 0.040433578193187714, -0.009187824092805386, 0.042397525161504745, -0.08853597193956375, 0.026131991297006607, -0.010483100078999996, 0.03614707663655281, 0.04330233857035637, -0.019391139969229698, 0.023602548986673355, 0.010531402193009853, 0.00053737050620839, 0.04653150588274002, -0.007280975114554167, 0.06093861907720566, 0.0024798077065497637, -0.007464861962944269, 0.015759333968162537, 0.009650125168263912, 0.023361967876553535, 0.02666892483830452, -0.004143932368606329, -0.04373045265674591, -0.025344548746943474, 0.03660142794251442, -0.0033286046236753464, 0.0398566871881485, -0.08424116671085358, -0.039751019328832626, 0.022439798340201378, -0.02217443473637104, -0.017729299142956734, 0.03791113197803497, -0.04144129902124405, -0.03203631937503815, 0.09640805423259735, -0.011208822950720787, 0.017287442460656166, -0.03581405431032181, -0.04523579403758049, -0.02979458123445511, 0.04217645898461342, -0.01149027794599533, -0.07570852339267731, 0.02148260548710823, -0.0104976836591959, 0.07713761925697327, 0.017447179183363914, -0.07325039058923721, 0.015212057158350945, 0.002119639189913869, -0.015412522479891777, -0.027559731155633926, 0.03477780148386955, 0.024078626185655594, -0.07373558729887009, -0.0371435321867466, 0.046473946422338486, -0.00033716391772031784, -0.057036906480789185, -0.04340280592441559, 0.03681536018848419, 0.014536777511239052, -0.05018500238656998, 0.029695555567741394, -0.05650768056511879, -0.02737051621079445, 0.007411530241370201, 0.019892016425728798, -0.0073533314280211926, -0.012897002510726452, -0.00507813086733222, -0.041881024837493896, -0.023686425760388374, -0.010593833401799202, -0.0677976980805397, -0.06581295281648636, 0.025066962465643883, -0.021835459396243095, -0.06138505041599274, -0.05002538487315178, -0.016629697754979134, -0.008587979711592197, 0.10105369240045547, 0.0012413973454385996, -0.03660017251968384, -0.012652629986405373, 0.00595156941562891, 0.00046644476242363453, -0.0516364648938179, 0.04479164630174637, 0.030787719413638115, 0.0038939982187002897, 0.04072384908795357, -0.1212262436747551, 0.011097688227891922, 0.008667448535561562, -0.0036302648950368166, 0.06743600219488144, -0.0021285449620336294, -0.04083836078643799, -0.010820298455655575, 0.0013503290247172117, 0.008580910973250866, -0.05890001729130745, -0.012202038429677486, -0.03489299491047859, 0.01118798553943634, -0.0000044642338252742775, 0.03039645217359066, -0.009862047620117664, 0.007808490190654993, -0.04446365684270859, -0.33349040150642395, -0.00873726699501276, -0.019477497786283493, 0.016310201957821846, 0.015970632433891296, -0.03450213745236397, 0.02725931629538536, -0.0026845226529985666, 0.029363756999373436, -0.01820865459740162, 0.07277529686689377, -0.04603594169020653, 0.031838323920965195, -0.06539887934923172, -0.009857473894953728, 0.05295439437031746, -0.004567496478557587, -0.037902187556028366, -0.0186019130051136, 0.05501898378133774, 0.041839439421892166, -0.07827524840831757, -0.031822945922613144, -0.024354904890060425, -0.02883322723209858, -0.01929020695388317, 0.10149301588535309, 0.033020853996276855, 0.0676688700914383, -0.07830776274204254, 0.02389725111424923, 0.02368958294391632, -0.019349420443177223, -0.12667857110500336, 0.00020920961105730385, -0.004203963093459606, -0.013358832336962223, -0.0079580657184124, 0.00823775865137577, -0.0036990472581237555, -0.0768616795539856, 0.00968651007860899, -0.04511985182762146, -0.048195868730545044, 0.01437869481742382, -0.01844564639031887, -0.011180132627487183, 0.01126775797456503, 0.00030969173531048, 0.01996857486665249, 0.0002947755856439471, 0.0519346185028553, 0.01032181829214096, -0.023624533787369728, 0.031004557386040688, -0.04227122664451599, -0.057805709540843964, -0.05122188478708267, 0.02262984588742256, 0.036042798310518265, 0.03913210332393646, 0.06128339469432831, -0.010249396786093712, -0.07327838242053986, 0.04490504041314125, 0.006915781181305647, -0.04152229055762291, 0.01116565614938736, 0.05766391009092331, -0.06345610320568085, 0.019173750653862953, 0.06808791309595108, -0.010180752724409103, 0.03655765578150749, 0.07609925419092178, -0.0067603676579892635, 0.03270953521132469, 0.0062774415127933025, 0.03032589890062809, -0.007482647430151701, 0.03040345385670662, -0.05469820648431778, 0.0803908109664917, -0.023868853226304054, -0.010982253588736057, 0.059872448444366455, 0.012596757151186466, 0.012929004617035389, 0.06863725930452347, -0.0013812464894726872, -0.026075685396790504, 0.018018601462244987, 0.014819666743278503, -0.06408018618822098, 0.0944533422589302, 0.015176917426288128, -0.24076959490776062, 0.051528286188840866, 0.034851137548685074, 0.042449966073036194, 0.019111378118395805, 0.010102510452270508, 0.020440511405467987, -0.051923975348472595, 0.02075587958097458, 0.02685520425438881, 0.023270156234502792, 0.04313227906823158, -0.014902276918292046, 0.001115997671149671, -0.007953486405313015, 0.07016514241695404, 0.058453384786844254, 0.002047548536211252, 0.0036922346334904432, -0.02571399323642254, 0.051416102796792984, -0.012599910609424114, 0.1612413227558136, 0.02317495457828045, 0.01206420548260212, 0.03271498158574104, -0.06885471194982529, 0.013538798317313194, 0.006320189218968153, 0.027580443769693375, 0.005235188640654087, 0.01500991266220808, 0.039331912994384766, 0.001902795978821814, 0.04853708669543266, -0.06144557520747185, -0.002789278281852603, 0.0024158149026334286, 0.04138302430510521, -0.03524363040924072, 0.0004907618276774883, 0.006166101433336735, -0.026262352243065834, 0.017755012959241867, 0.06957004964351654, -0.05912160500884056, -0.026451895013451576, -0.011376926675438881, -0.03930605947971344, -0.009130052290856838, -0.012285036966204643, -0.07327008992433548, -0.024324992671608925, 0.0076537285931408405, -0.002064857631921768, 0.0461924783885479, 0.010853498242795467, -0.05822063609957695, -0.030539609491825104, -0.009512191638350487, -0.007492681499570608, -0.05529307201504707, 0.11027350276708603, -0.04102979972958565, 0.048251260071992874 ]
[ 0.06725521385669708, 0.04948270320892334, 0.030361806973814964, 0.036721888929605484, 0.017302339896559715, 0.034248802810907364, -0.012878227978944778, 0.006393555086106062, 0.028391297906637192, 0.024619603529572487, -0.02726168744266033, -0.025390073657035828, -0.0033772753085941076, -0.03229329362511635, -0.02698773331940174, -0.007823295891284943, 0.037473712116479874, 0.018963653594255447, 0.021360764279961586, -0.037633415311574936, -0.029047979041934013, 0.02892562374472618, 0.02257273904979229, -0.021853003650903702, -0.020441913977265358, 0.03180217742919922, -0.061901070177555084, -0.003153036115691066, 0.02428174950182438, -0.13583320379257202, -0.03326695039868355, -0.013796625658869743, 0.027371538802981377, 0.03521174564957619, 0.06022770330309868, 0.050050973892211914, 0.019416602328419685, 0.0018621344352141023, -0.013072116300463676, 0.05218886956572533, 0.03318816423416138, -0.04372944310307503, -0.0555153489112854, -0.023805340752005577, -0.013888878747820854, 0.010284689255058765, -0.06231855973601341, -0.05920736864209175, 0.019300641492009163, -0.023645350709557533, -0.014808223582804203, -0.03238514065742493, 0.026502925902605057, 0.0066886357963085175, 0.055646803230047226, 0.012229775078594685, -0.02494361624121666, -0.0030352931935340166, 0.08295601606369019, 0.007143469527363777, 0.03984168544411659, -0.03165407478809357, -0.015340934507548809, -0.018338002264499664, -0.026620112359523773, -0.04936842992901802, 0.011497564613819122, 0.0052009085193276405, -0.017810001969337463, -0.010461073368787766, 0.056176815181970596, 0.06082969158887863, -0.05332097038626671, -0.008214634843170643, -0.030000030994415283, 0.011379476636648178, 0.039380993694067, -0.006178237032145262, -0.020213104784488678, 0.019664257764816284, -0.01715933345258236, 0.030905025079846382, 0.010055222548544407, -0.019493598490953445, -0.06643366813659668, 0.025651035830378532, -0.023785391822457314, -0.018441684544086456, 0.04892609268426895, -0.007265639025717974, -0.014034627936780453, 0.01448096614331007, 0.018564067780971527, -0.0620611272752285, -0.039841100573539734, -0.01356251910328865, 0.004556718282401562, -0.009802933782339096, 0.0030202653724700212, 0.7658879160881042, 0.051108039915561676, 0.008140548132359982, -0.006166912615299225, 0.02080918662250042, 0.051356423646211624, -0.02678547240793705, -0.010203291662037373, -0.031115615740418434, 0.014561778865754604, 0.016560537740588188, 0.0038932545576244593, 0.019194915890693665, 0.001411446020938456, 0.018419764935970306, 0.013953126035630703, -0.00020778502221219242, 0.04832364246249199, 0.0003882315650116652, 0.0150864627212286, 0.012643584050238132, 0.039424166083335876, -0.02268151007592678, 0.005474542733281851, 0.012687505222856998, -0.006657835096120834, -0.12967689335346222, -0.0076543595641851425, -6.336429564394584e-33, 0.07612413913011551, -0.06845201551914215, 0.05136041343212128, -0.014899278059601784, 0.009760797955095768, -0.0294240303337574, -0.009221173822879791, -0.040110036730766296, -0.035944972187280655, -0.031016889959573746, -0.041810426861047745, 0.011130813509225845, 0.0012586498633027077, -0.028447255492210388, 0.023332679644227028, -0.02726324461400509, -0.043095413595438004, 0.02856113202869892, 0.011406389996409416, -0.002735863206908107, 0.008699309080839157, 0.0007505054236389697, -0.038951508700847626, -0.0034099738113582134, 0.030836759135127068, -0.028774507343769073, 0.0521983802318573, -0.09125043451786041, 0.02281137928366661, -0.04406821355223656, -0.07074421644210815, -0.04730775207281113, 0.013096869923174381, -0.018847277387976646, -0.09196806699037552, -0.04409097880125046, -0.01363174058496952, 0.02348293550312519, -0.04728272557258606, -0.04779249429702759, 0.014399056322872639, -0.000508652999997139, -0.0037454760167747736, -0.058093197643756866, 0.003349802689626813, 0.003388419048860669, 0.06381449103355408, 0.009013069793581963, -0.004093007184565067, 0.017257818952202797, -0.025525229051709175, -0.021066108718514442, 0.0006919821607880294, -0.008775366470217705, 0.02821485511958599, 0.03254619985818863, 0.0507836751639843, -0.049177344888448715, -0.05287790298461914, 0.024986447766423225, -0.011434211395680904, -0.00665244972333312, -0.03223547339439392, 0.01808222383260727, 0.008851112797856331, 0.005242397543042898, -0.01818867027759552, 0.030634168535470963, 0.002343628788366914, 0.06537171453237534, -0.05057087540626526, 0.009874159470200539, -0.0012717657955363393, -0.04073232784867287, 0.045336268842220306, -0.03850656375288963, 0.005917324684560299, -0.004654083400964737, -0.07197809219360352, 0.041109465062618256, 0.023751791566610336, -0.016534671187400818, -0.05182920768857002, 0.040004897862672806, -0.026247216388583183, 0.011504123918712139, 0.04408669471740723, 0.02121092937886715, -0.01988944038748741, 0.043069396167993546, 0.015003728680312634, 0.01882917433977127, -0.03690818324685097, -0.002694310387596488, -0.08289917558431625, 6.261507227893017e-33, 0.011606725864112377, -0.026577483862638474, 0.013214045204222202, 0.010034170933067799, 0.033077750355005264, -0.01510901004076004, 0.02886112593114376, -0.0034947795793414116, -0.04310215264558792, 0.018440525978803635, -0.014826829545199871, 0.0026403095107525587, -0.03599223494529724, 0.026974424719810486, 0.014719071798026562, 0.024371810257434845, -0.009750808589160442, 0.00318023725412786, 0.02643689326941967, 0.02223052643239498, -0.012178588658571243, 0.013037393800914288, 0.005762883462011814, 0.013285472057759762, 0.03762209787964821, 0.03350874409079552, 0.03255702555179596, 0.002369101159274578, -0.028498884290456772, -0.038364265114068985, 0.03800540044903755, -0.06874402612447739, -0.013270402327179909, 0.05322980135679245, -0.0064967419020831585, 0.026238610967993736, -0.03890887275338173, -0.0012515716953203082, 0.00045136461267247796, -0.018208472058176994, -0.0035913751926273108, 0.036689601838588715, -0.029834814369678497, -0.004763535689562559, -0.01806630566716194, -0.011519125662744045, 0.012717141769826412, -0.0016678354004397988, -0.015038702636957169, -0.045752257108688354, -0.030249258503317833, -0.0024573251139372587, -0.02586992084980011, 0.055633969604969025, -0.01561917457729578, -0.030498819425702095, -0.004613350611180067, 0.05811082571744919, -0.006057931575924158, 0.0007061942596919835, 0.01718098670244217, -0.05946609750390053, 0.01678464189171791, 0.011439342983067036, -0.04141276329755783, -0.027677854523062706, 0.006717325188219547, 0.011064230464398861, -0.015569412149488926, -0.0022392047103494406, 0.016649365425109863, 0.017865872010588646, 0.008598935790359974, 0.04970141872763634, 0.0010770615190267563, -0.028361758217215538, -0.011362806893885136, 0.01738077588379383, -0.0017295919824391603, 0.027704766020178795, -0.011913823895156384, 0.049573950469493866, -0.030940383672714233, 0.0017846744740381837, 0.05950458347797394, 0.017888536676764488, 0.022225700318813324, 0.038461580872535706, 0.04614655300974846, 0.036800604313611984, -0.010438889265060425, -0.0022259114775806665, -0.01174173690378666, 0.05032845214009285, -0.06880281120538712, -1.20510978973698e-8, 0.020208360627293587, -0.023470589891076088, -0.01099642924964428, 0.04295358061790466, 0.019244739785790443, 0.01430768333375454, -0.002419506898149848, -0.015002881176769733, -0.0410892516374588, 0.023372381925582886, -0.0009932274697348475, -0.0036437171511352062, 0.010566877201199532, 0.026695359498262405, 0.05073348805308342, -0.011427509598433971, 0.011779404245316982, 0.011858991347253323, 0.0697670578956604, -0.019290225580334663, -0.02842465415596962, 0.04093289375305176, -0.018998311832547188, 0.004823047202080488, -0.03649678826332092, 0.011739656329154968, 0.041401300579309464, -0.08631325513124466, 0.018418675288558006, -0.017600787803530693, -0.03118666633963585, 0.0010194623610004783, -0.07708979398012161, 0.027052009478211403, -0.000872529752086848, -0.00803644210100174, -0.03488846868276596, 0.03708556666970253, 0.008157413452863693, 0.03394882753491402, -0.053233686834573746, 0.0031097522005438805, -0.05070827901363373, -0.031142286956310272, -0.028573503717780113, 0.019080059602856636, -0.011790238320827484, 0.0006932850228622556, 0.011265152134001255, -0.029056668281555176, 0.022706205025315285, -0.01847122050821781, 0.0142543725669384, 0.02980136126279831, -0.009777710773050785, 0.015373595058918, -0.018990149721503258, -0.04264632612466812, -0.03065503016114235, -0.008422311395406723, 0.0007102778181433678, 0.04925714060664177, -0.004166728351265192, 0.006611338816583157 ]
kubernetes-node-pod
https://markhneedham.com/blog/2017/06/14/kubernetes-node-pod
false
2017-12-03 17:23:14
Python: Combinations of values on and off
[ "python", "python3" ]
[ "Python" ]
In my continued exploration of Kaggle's https://www.kaggle.com/c/spooky-author-identification/leaderboard[Spooky Authors competition], I wanted to run a http://scikit-learn.org/stable/modules/ensemble.html#using-the-votingclassifier-with-gridsearch[GridSearch] turning on and off different classifiers to work out the best combination. I therefore needed to generate combinations of 1s and 0s enabling different classifiers. e.g. if we had 3 classifiers we'd generate these combinations [source,text] ---- 0 0 1 0 1 0 1 0 0 1 1 0 1 0 1 0 1 1 1 1 1 ---- where\... * '0 0 1' means: classifier1 is disabled, classifier3 is disabled, classifier3 is enabled * '0 1 0' means: classifier1 is disabled, classifier3 is enabled, classifier3 is disabled * '1 1 0' means: classifier1 is enabled, classifier3 is enabled, classifier3 is disabled * '1 1 1' means: classifier1 is enabled, classifier3 is enabled, classifier3 is enabled \...and so on. In other words, we need to generate the binary representation for all the values from 1 to 2^number of classifiers^-1. We can write the following code fragments to calculate a 3 bit representation of different numbers: [source,python] ---- >>> "{0:0b}".format(1).zfill(3) '001' >>> "{0:0b}".format(5).zfill(3) '101' >>> "{0:0b}".format(6).zfill(3) '110' ---- We need an array of 0s and 1s rather than a string, so let's use the +++<cite>+++list+++</cite>+++ function to create our array and then cast each value to an integer: [source,python] ---- >>> [int(x) for x in list("{0:0b}".format(1).zfill(3))] [0, 0, 1] ---- Finally we can wrap that code inside a list comprehension: [source,python] ---- def combinations_on_off(num_classifiers): return [[int(x) for x in list("{0:0b}".format(i).zfill(num_classifiers))] for i in range(1, 2 ** num_classifiers)] ---- And let's check it works: [source,python] ---- >>> for combination in combinations_on_off(3): print(combination) [0, 0, 1] [0, 1, 0] [0, 1, 1] [1, 0, 0] [1, 0, 1] [1, 1, 0] [1, 1, 1] ---- what about if we have 4 classifiers? [source,python] ---- >>> for combination in combinations_on_off(4): print(combination) [0, 0, 0, 1] [0, 0, 1, 0] [0, 0, 1, 1] [0, 1, 0, 0] [0, 1, 0, 1] [0, 1, 1, 0] [0, 1, 1, 1] [1, 0, 0, 0] [1, 0, 0, 1] [1, 0, 1, 0] [1, 0, 1, 1] [1, 1, 0, 0] [1, 1, 0, 1] [1, 1, 1, 0] [1, 1, 1, 1] ---- Perfect! We can now use this function to help work out which combinations of classifiers are needed.
null
null
[ -0.01580112800002098, -0.004195048939436674, -0.02037837542593479, 0.031005684286355972, 0.06806042045354843, 0.01026899740099907, 0.003690832294523716, 0.012956512160599232, -0.013069790787994862, 0.005457655992358923, -0.023343810811638832, -0.008614838123321533, -0.0505136139690876, 0.016010534018278122, -0.02278177998960018, 0.07867737859487534, 0.06413953006267548, 0.010828167200088501, -0.008152823895215988, 0.021875780075788498, 0.02365373633801937, 0.023722972720861435, 0.008572064340114594, 0.008690308779478073, 0.020989345386624336, 0.005788109265267849, 0.0038736104033887386, -0.0029791288543492556, -0.04487564414739609, 0.0005525252199731767, 0.0396672748029232, 0.021607045084238052, 0.009189499542117119, -0.010044416412711143, 0.03376021608710289, -0.023573780432343483, -0.03368517756462097, 0.01423192210495472, 0.01180387195199728, 0.027405446395277977, -0.035016827285289764, 0.025647498667240143, -0.002790149999782443, 0.014113985002040863, -0.0438707135617733, 0.01144360937178135, -0.03403579071164131, 0.005523685831576586, 0.015580951236188412, -0.015133626759052277, -0.048819079995155334, 0.030718596652150154, -0.022449128329753876, -0.03876115754246712, -0.007861250080168247, 0.062009889632463455, 0.042400062084198, -0.061216119676828384, 0.031641680747270584, -0.025285104289650917, -0.03215407580137253, 0.00794779323041439, 0.0027591281104832888, 0.03489305451512337, 0.014307948760688305, -0.021816730499267578, -0.022156408056616783, 0.041346531361341476, -0.03599740192294121, -0.004604439716786146, -0.03511550650000572, 0.02653433009982109, 0.0005436882493086159, -0.03650081530213356, -0.01317274384200573, -0.025654369965195656, 0.014758863486349583, 0.07339891791343689, 0.02777482569217682, 0.015097534283995628, 0.004656790755689144, -0.020621731877326965, 0.062192149460315704, 0.018966717645525932, -0.027602994814515114, -0.041775260120630264, -0.06830932945013046, -0.0441485196352005, -0.05155688896775246, 0.060308992862701416, 0.006018403451889753, -0.05131771042943001, 0.034679412841796875, 0.013153612613677979, -0.006875067017972469, 0.027466783300042152, 0.009109779261052608, -0.019750960171222687, -0.0038169578183442354, -0.014793014153838158, -0.021299732849001884, -0.01819760911166668, 0.03746183589100838, 0.015026734210550785, -0.08637402206659317, -0.003845341969281435, -0.0047095525078475475, -0.013418267481029034, -0.006816661451011896, 0.027716586366295815, -0.01969744637608528, 0.004209657199680805, -0.019950559362769127, -0.009729779325425625, -0.06812282651662827, 0.06162251904606819, -0.011678554117679596, -0.02861948125064373, 0.005212798248976469, 0.028266893699765205, 0.053228359669446945, 0.04520777240395546, -0.04252418130636215, 0.07502671331167221, -0.0034957716707140207, 0.02844865620136261, 0.016397200524806976, 0.06490214914083481, -0.02219022437930107, -0.05782152712345123, -0.03586230427026749, 0.05539378151297569, -0.012328878976404667, 0.002510711783543229, 0.007022499106824398, -0.020314425230026245, -0.036573223769664764, 0.016816459596157074, 0.06754020601511002, 0.05137822404503822, 0.0071411821991205215, -0.04428230971097946, -0.0031609348952770233, -0.00941457413136959, 0.022576123476028442, 0.005915916990488768, -0.0006658925558440387, -0.013941931538283825, -0.040745142847299576, 0.014987646602094173, -0.014367597177624702, -0.011837614700198174, 0.05349481850862503, -0.029607325792312622, 0.010275446809828281, 0.07259941101074219, 0.017718221992254257, 0.01241176575422287, 0.02520879916846752, 0.0013574680779129267, 0.03547925874590874, 0.01016508974134922, 0.0190258976072073, 0.06095793843269348, 0.03479018062353134, -0.017109911888837814, 0.008183588273823261, 0.08255581557750702, -0.018621250987052917, 0.0024361975956708193, -0.03716760501265526, -0.024907344952225685, 0.036546338349580765, -0.044281743466854095, -0.007526889909058809, -0.003808317705988884, 0.07402040809392929, 0.03451225906610489, 0.08382613956928253, -0.014429843053221703, -0.07956089824438095, 0.02457507699728012, -0.0029835382010787725, 0.015594040974974632, 0.026332590728998184, 0.00015153955610003322, 0.07848220318555832, 0.045098815113306046, 0.03435482457280159, 0.04000616818666458, -0.07656669616699219, -0.061878617852926254, -0.028266405686736107, -0.011511456221342087, 0.08531711250543594, -0.03975292667746544, 0.008232117630541325, 0.0718391165137291, 0.022543486207723618, 0.024664442986249924, 0.024543629959225655, -0.013432621955871582, 0.016385136172175407, -0.015695881098508835, -0.06556851416826248, 0.04571644961833954, 0.017576199024915695, -0.035696446895599365, -0.027545446529984474, 0.006421373225748539, -0.02376655675470829, -0.0037640791852027178, 0.027608796954154968, -0.03052550181746483, 0.03889322280883789, 0.04063183069229126, 0.07656652480363846, -0.0146985137835145, 0.04364137351512909, -0.025111129507422447, 0.019384389743208885, -0.024620039388537407, -0.015962397679686546, -0.020496411249041557, 0.023453639820218086, 0.14505714178085327, 0.053631335496902466, -0.0320221371948719, -0.05291292443871498, 0.017298832535743713, -0.014157564379274845, -0.04751269519329071, 0.04290023446083069, -0.010477493517100811, -0.030898194760084152, 0.0010006469674408436, -0.03445110842585564, -0.0441744439303875, 0.04743325337767601, -0.051990579813718796, -0.020989006385207176, 0.07637252658605576, -0.04750998690724373, 0.05215037986636162, 0.02156619355082512, 0.009059018455445766, -0.025462999939918518, -0.005442707799375057, -0.07660584151744843, -0.008120834827423096, 0.034346215426921844, -0.019913671538233757, 0.02301502414047718, -0.03253393992781639, -0.04791196808218956, -0.01126562524586916, -0.024603134021162987, -0.014083790592849255, 0.07400912046432495, 0.030665187165141106, -0.017092693597078323, 0.021598709747195244, -0.018968991935253143, 0.008016709238290787, -0.01567430980503559, -0.048083074390888214, -0.032284777611494064, -0.03924288600683212, 0.00237342924810946, 0.02313678152859211, 0.0432404950261116, 0.01899956353008747, 0.03987119719386101, 0.005871471017599106, 0.01664484478533268, 0.014913497492671013, 0.05602400004863739, 0.013763874769210815, -0.017749398946762085, -0.031319815665483475, -0.025173865258693695, 0.0604548454284668, -0.0329328253865242, -0.015479117631912231, -0.013850321993231773, -0.06339726597070694, 0.028580371290445328, -0.07029444724321365, -0.05995570123195648, -0.0017040529055520892, 0.014524737372994423, 0.04150624945759773, 0.007722167298197746, 0.008471561595797539, 0.059196099638938904, 0.011462127789855003, -0.0003317484224680811, 0.038432568311691284, 0.0007435308652929962, 0.02847684733569622, -0.01990705169737339, 0.025737501680850983, 0.04247304052114487, -0.013343284837901592, -0.025293132290244102, -0.04340121150016785, 0.007425148971378803, -0.03854929655790329, -0.2703642249107361, 0.029772575944662094, 0.00283998204395175, -0.029633430764079094, 0.006286348216235638, -0.02579263597726822, 0.013575191609561443, -0.034303341060876846, 0.01257281843572855, 0.016945192590355873, -0.028416063636541367, -0.027173040434718132, -0.040412381291389465, 0.06540464609861374, 0.023548699915409088, 0.013385491445660591, -0.004726602230221033, -0.030880019068717957, 0.022874660789966583, 0.05467553436756134, 0.00002973511982418131, -0.05223144590854645, -0.02192055433988571, 0.03964869678020477, 0.033382512629032135, 0.04657665267586708, -0.04856833815574646, 0.01473831944167614, -0.06112115457653999, -0.027640216052532196, 0.01393115147948265, -0.025463314726948738, -0.016678815707564354, 0.0001318020367762074, -0.0005662421463057399, -0.029900124296545982, 0.04660719633102417, 0.016878392547369003, -0.00884516816586256, 0.038385819643735886, -0.013740052469074726, -0.04213644564151764, 0.0038090350572019815, 0.01676454022526741, 0.10194344818592072, 0.0012227785773575306, -0.05800112709403038, -0.005588895175606012, -0.05112234130501747, 0.07514752447605133, -0.022435158491134644, -0.03367163985967636, -0.03796456754207611, 0.05845734849572182, -0.027482252568006516, 0.005078210961073637, 0.009722942486405373, -0.00449756346642971, -0.051907654851675034, -0.03526071459054947, -0.035768382251262665, -0.03147497773170471, 0.0014999854611232877, -0.0811997577548027, -0.0012061754241585732, -0.057983580976724625, -0.08259899169206619, -0.022833865135908127, 0.05027420446276665, 0.030859120190143585, -0.05936504155397415, -0.0012202543439343572, -0.02607201784849167, -0.10109833627939224, -0.004538761451840401, -0.018995214253664017, 0.0033210080582648516, 0.009437425062060356, 0.006291431840509176, 0.058945778757333755, -0.045739807188510895, -0.06433296203613281, 0.048442330211400986, -0.010883395560085773, 0.012440194375813007, -0.02939419075846672, 0.0033789838198572397, 0.0018374804640188813, -0.01739264279603958, -0.014964067377150059, 0.06446763128042221, 0.013959643431007862, -0.01669997349381447, 0.011887943372130394, 0.00029767584055662155, 0.04658501595258713, 0.013216771185398102, 0.0006841321010142565, 0.01863967999815941, 0.036380618810653687, 0.027583155781030655, -0.061906423419713974, -0.006808991078287363, -0.06474312394857407, -0.03903951123356819, 0.015299536287784576, -0.051634207367897034, -0.007762112654745579, 0.04301334545016289, -0.012146302498877048, -0.0046072592958807945, -0.033180493861436844, -0.00033648719545453787, -0.03402447700500488, 0.00446288799867034, -0.013753210194408894, 0.024638717994093895, 0.03449833393096924, 0.0009010959765873849, 0.004613666795194149, -0.05051166191697121, 0.03212367743253708, 0.004453658126294613, -0.021032944321632385, -0.05081217736005783, -0.03386467322707176, -0.011430812068283558, -0.011376376263797283, 0.018431881442666054, -0.02206062711775303, -0.014614827930927277, 0.02197558432817459, 0.007030797190964222, -0.03635730966925621, 0.029440447688102722, 0.012968727387487888, -0.035972703248262405, -0.037944164127111435, -0.014802736230194569, 0.024730848148465157, -0.013990356586873531, -0.02580486796796322, 0.028452761471271515, 0.011399833485484123, 0.06481236219406128, 0.0012542672920972109, 0.056208569556474686, 0.007429216057062149, 0.0026410778518766165, 0.006903698667883873, -0.018320543691515923, -0.0076600112952291965, 0.012298082932829857, -0.029699012637138367, -0.027539851143956184, 0.0015503981849178672, 0.043664202094078064, -0.00400453619658947, -0.01619395799934864, -0.057107988744974136, 0.035055968910455704, -0.03925982862710953, -0.013912778347730637, -0.03949001803994179, 0.03005649335682392, 0.06580967456102371, -0.03264481574296951, 0.033306971192359924, 0.009679736569523811, 0.02601117454469204, 0.015631934627890587, -0.014630700461566448, -0.01815681904554367, 0.036915358155965805, -0.027576614171266556, -0.031166888773441315, 0.01964608207345009, 0.025928186252713203, -0.004613911267369986, -0.0034280659165233374, -0.008934946730732918, -0.020299745723605156, 0.0040345764718949795, -0.008113925345242023, 0.039872318506240845, 0.05845508351922035, -0.04403594136238098, 0.004063043277710676, -0.023969227448105812, -0.03576590493321419, -0.03836249187588692, -0.000060656289861071855, -0.004923737142235041, -0.00809378083795309, -0.0357322171330452, -0.06316390633583069, -0.01838783547282219, 0.016550861299037933, -0.01578601635992527, 0.00290815532207489, -0.01723289117217064, -0.015123536810278893, -0.03927505761384964, -0.0010309215867891908, 0.0807315856218338, -0.08241012692451477, 0.02407071180641651, -0.03971026465296745, -0.008188772015273571, -0.00006650947034358978, 0.028884824365377426, -0.05555424839258194, 0.012263570912182331, -0.0015305698616430163, 0.015020415186882019, -0.048582255840301514, -0.041779376566410065, -0.019450297579169273, 0.021012675017118454, -0.021136019378900528, 0.011389615014195442, -0.034894052892923355, 0.005448604002594948, -0.026409080252051353, -0.04470895603299141, 0.02151966094970703, -0.020479608327150345, -0.002962050959467888, 0.027523335069417953, -0.012602241709828377, 0.014694767072796822, -0.017525088042020798, 0.02623872272670269, 0.041964031755924225, -0.013086327351629734, -0.000892013602424413, -0.0208730548620224, 0.01220849622040987, 0.00024031830253079534, 0.06773972511291504, 0.0027338010258972645, -0.00896501261740923, -0.03914032503962517, 0.014202700927853584, -0.01637623831629753, 0.008503505028784275, 0.01908033713698387, -0.030081061646342278, 0.017302310094237328, 0.03220898658037186, -0.01469146553426981, 0.017741596326231956, -0.021904505789279938, -0.03266146779060364, 0.07664549350738525, -0.03916176036000252, -0.0150552773848176, -0.01433960348367691, -0.015022032894194126, 0.008679124526679516, 0.0058326018042862415, 0.05093354359269142, -0.04261878877878189, 0.04310713708400726, 0.02622300758957863, 0.02584250643849373, 0.001996017061173916, -0.002880560699850321, 0.029028087854385376, -0.023478643968701363, -0.0008291975827887654, -0.07865175604820251, -0.024329816922545433, 0.06083599850535393, 0.007555696181952953, -0.010715419426560402, -0.018908781930804253, -0.02775074727833271, 0.03042723797261715, -0.07510476559400558, -0.013141420669853687, 0.058065932244062424, -0.016496945172548294, 0.0013094573514536023, 0.029791345819830894, -0.035408005118370056, 0.014028183184564114, 0.032632794231176376, -0.04534541442990303, -0.028959374874830246, -0.027316005900502205, 0.07606104016304016, -0.015214677900075912, -0.005814176518470049, 0.008862377144396305, -0.016001535579562187, 0.06623967736959457, 0.04120514914393425, 0.0527016744017601, 0.0410577766597271, -0.023700663819909096, 0.04772618040442467, 0.029481271281838417, 0.004763083998113871, -0.010318580083549023, -0.007534312549978495, 0.008590751327574253, -0.07231589406728745, 0.041143517941236496, -0.0004024548106826842, -0.015124709345400333, -0.05689534172415733, 0.05449516326189041, 0.009191062301397324, -0.040124040096998215, -0.08753293007612228, 0.021816611289978027, -0.06153346970677376, 0.004116883501410484, -0.007948147132992744, -0.01761862263083458, -0.05657122656702995, 0.058397792279720306, -0.0006913856486789882, -0.01810823380947113, 0.0638146698474884, -0.01790544204413891, -0.033719830214977264, 0.043862927705049515, 0.08366674184799194, 0.062419891357421875, 0.044695958495140076, 0.01836901530623436, 0.07514279335737228, -0.01992475613951683, -0.04287827014923096, -0.006332612130790949, 0.0022846495267003775, -0.010377708822488785, -0.018949445337057114, -0.0002324206434423104, 0.054294977337121964, -0.0008548360783606768, 0.0663444772362709, -0.03371782973408699, 0.026245474815368652, 0.027579452842473984, 0.05193684995174408, 0.012625458650290966, 0.045830823481082916, 0.0007849853718653321, 0.02765592746436596, -0.016694718971848488, -0.03155982866883278, 0.021524501964449883, -0.02832713909447193, -0.01973114162683487, 0.009117703884840012, -0.01099811214953661, 0.0330338180065155, 0.013643412850797176, 0.05804169178009033, 0.08294368535280228, -0.012340196408331394, -0.039437539875507355, -0.005549982655793428, 0.05659103766083717, -0.028036387637257576, 0.01307688932865858, -0.02859915979206562, 0.005057579837739468, -0.02104332111775875, -0.026776885613799095, 0.01371141616255045, -0.04179016128182411, 0.002383981365710497, 0.01706850156188011, -0.024648934602737427, 0.01062688697129488, 0.0250270776450634, 0.0033363027032464743, -0.05075139179825783, -0.04842036962509155, -0.027862083166837692, -0.04879727587103844, -0.08122154325246811, 0.0027557113207876682, 0.028799457475543022, 0.018100693821907043, -0.02039221301674843, -0.03415196016430855, 0.006703643593937159, -0.010688572190701962, 0.00957562681287527, -0.06951242685317993, -0.0036025966983288527, 0.0101571474224329, 0.019908921793103218, 0.029654890298843384, 0.01805557683110237, 0.049368854612112045, 0.009686837904155254, -0.012693946249783039, 0.015018995851278305, 0.0018871532520279288, 0.051085520535707474, 0.028179548680782318, -0.007240764331072569, -0.07637426257133484, -0.005674457643181086, -0.0014457041397690773, -0.02110656537115574, -0.07514643669128418, 0.015174971893429756, 0.03862173110246658, 0.012034795247018337, 0.04901633784174919, -0.00921926274895668, -0.02633502706885338, -0.05195098742842674, -0.005232089199125767, -0.014523312449455261, -0.00018034913227893412, 0.03966550529003143, -0.0446956492960453, 0.06984066963195801, 0.005090942606329918, -0.007363531738519669, -0.029419686645269394, -0.003417328931391239, -0.022110581398010254, 0.001188152702525258, -0.04527667537331581, -0.02892788127064705, -0.06340157985687256, -0.06649265438318253, -0.002271331148222089, 0.026891935616731644, -0.04195229336619377, -0.032631877809762955, 0.017323901876807213, 0.025286581367254257, -0.0013364505721256137, 0.02521643228828907, -0.039263829588890076, 0.002843053312972188, -0.03966914862394333, -0.003304910846054554, 0.016866402700543404, 0.03121061809360981, -0.014408747665584087, 0.025888871401548386, -0.002192447194829583, -0.04766601696610451, -0.014288438484072685, -0.02043968252837658, 0.045176029205322266, 0.030658932402729988, -0.018300214782357216, -0.0015625364612787962 ]
[ -0.08938246220350266, -0.013636940158903599, -0.02651599980890751, -0.017903506755828857, 0.03985414654016495, -0.014134564436972141, 0.02221161313354969, 0.01069578342139721, 0.021794769912958145, -0.00025941667263396084, 0.010007484816014767, -0.0430215448141098, -0.019230566918849945, -0.031300198286771774, 0.07335871458053589, -0.0009211633587256074, -0.008289430290460587, -0.044890131801366806, -0.04000943899154663, 0.036727216094732285, 0.05759190768003464, -0.002149767940863967, -0.03712617605924606, -0.04532703384757042, 0.002568107796832919, 0.040775008499622345, 0.043490976095199585, -0.05076177418231964, -0.004751747474074364, -0.2313065230846405, 0.03205884248018265, -0.018996721133589745, 0.05280938744544983, -0.034182701259851456, 0.01675887405872345, 0.035947587341070175, 0.023456895723938942, 0.06254970282316208, -0.02890724688768387, 0.04814755171537399, -0.0017565168673172593, 0.0071166385896503925, -0.05337950959801674, -0.023568589240312576, 0.05253251641988754, -0.02622811868786812, -0.04007961228489876, -0.02603309229016304, -0.03103228658437729, 0.018922612071037292, -0.028528140857815742, -0.007489990908652544, -0.02721673622727394, 0.02231774292886257, -0.005563690792769194, 0.01869645155966282, 0.014554076828062534, 0.06195877119898796, 0.04491455852985382, 0.003025556681677699, -0.005064851138740778, 0.027194883674383163, -0.12472169101238251, 0.0777604803442955, 0.02397947572171688, 0.04402833431959152, -0.05244835093617439, -0.04569585248827934, -0.01068474818021059, 0.07436127960681915, 0.027760488912463188, -0.013938103802502155, -0.0025264411233365536, 0.046911172568798065, -0.005631933454424143, 0.012837860733270645, -0.012892736122012138, 0.008131489157676697, 0.05575136840343475, -0.03592677786946297, -0.04989323019981384, 0.004252707585692406, -0.021008243784308434, -0.030201369896531105, 0.01980181410908699, 0.0014424979453906417, -0.008093304000794888, 0.03487585484981537, 0.010774706490337849, 0.022471534088253975, 0.0243405532091856, 0.013473842293024063, 0.022385310381650925, 0.01491357758641243, -0.07485872507095337, -0.011211337521672249, -0.010131185874342918, 0.006380661390721798, -0.021800905466079712, 0.4105583727359772, -0.031122079119086266, -0.024356326088309288, 0.02247770130634308, 0.038770824670791626, -0.002061073901131749, -0.03820261359214783, -0.015555386431515217, -0.08034445345401764, -0.020939195528626442, -0.060025040060281754, 0.028476260602474213, -0.019933827221393585, 0.058323800563812256, -0.054108068346977234, -0.0060231625102460384, -0.0025413872208446264, 0.004236883018165827, 0.03176925703883171, 0.019876666367053986, 0.03240948170423508, -0.010494583286345005, -0.0011326048988848925, 0.029299244284629822, -0.00943280290812254, 0.046620771288871765, 0.0389743372797966, 0.023226385936141014, 0.11485615372657776, 0.006026032380759716, 0.00806382205337286, 0.02934482879936695, -0.01810915768146515, -0.08501767367124557, 0.0031957656610757113, 0.0032958623487502337, -0.0009060648153536022, 0.021173452958464622, 0.004392089322209358, -0.00658057164400816, 0.013052464462816715, -0.0017236315179616213, -0.018267547711730003, 0.04643414542078972, -0.0005441466928459704, -0.01058296486735344, 0.12999838590621948, -0.04954373463988304, -0.018833331763744354, -0.024689504876732826, -0.03593556955456734, 0.0032733760308474302, 0.019167620688676834, -0.019348856061697006, -0.06692635267972946, 0.008601815439760685, 0.012324339710175991, 0.08366609364748001, -0.03025144152343273, -0.0469258576631546, -0.0074338424019515514, -0.020248902961611748, -0.02977561764419079, -0.008198592811822891, 0.0424823984503746, 0.05959383025765419, -0.07604799419641495, -0.004560044035315514, 0.02458936907351017, -0.028484240174293518, -0.07531849294900894, 0.021348727867007256, 0.03089137375354767, -0.03744213655591011, 0.024719705805182457, 0.038196418434381485, -0.04060740023851395, -0.038124192506074905, 0.010350878350436687, 0.08002980798482895, -0.0047071934677660465, -0.017376678064465523, 0.009100028313696384, -0.057205382734537125, -0.011905004270374775, -0.03495420143008232, -0.06246168538928032, -0.058061808347702026, -0.01903737522661686, -0.024329984560608864, -0.02777445688843727, -0.0012833758955821395, -0.0452297069132328, -0.050020892173051834, 0.05104749649763107, -0.03268725052475929, -0.018530579283833504, 0.040366820991039276, -0.016002515330910683, 0.011755718849599361, -0.056899115443229675, -0.02349814400076866, 0.0373770147562027, 0.00041102000977844, 0.026252610608935356, -0.047366999089717865, 0.044574540108442307, 0.04777860268950462, -0.03898954764008522, 0.09904233366250992, 0.02957771345973015, -0.008957531303167343, -0.039173949509859085, -0.03320667892694473, 0.024785613641142845, -0.013582497835159302, -0.0144426254555583, -0.01926828734576702, 0.008519752882421017, -0.0019264444708824158, 0.02435401827096939, -0.02433750219643116, -0.04124698042869568, -0.04906202480196953, -0.36672934889793396, -0.04947463423013687, 0.020298851653933525, -0.03410198166966438, -0.00842369720339775, -0.054639652371406555, 0.013552545569837093, -0.003053948050364852, -0.039484601467847824, 0.037686675786972046, 0.07180165499448776, 0.0011596132535487413, -0.0053367940708994865, -0.04779750108718872, -0.017769992351531982, 0.03415447473526001, -0.06102422997355461, -0.03782473877072334, -0.02920900285243988, 0.054694898426532745, 0.013189131394028664, 0.024189287796616554, 0.009575304575264454, -0.048896726220846176, -0.02437671646475792, -0.04637066647410393, 0.09393872320652008, 0.03541960194706917, 0.08064636588096619, -0.017929116263985634, 0.017354043200612068, 0.025967448949813843, 0.0019223301205784082, -0.033563919365406036, 0.025483250617980957, -0.015993332490324974, -0.01607447862625122, 0.016162948682904243, -0.017331307753920555, -0.025551384314894676, -0.04764602705836296, 0.034078650176525116, -0.037368044257164, -0.053689196705818176, -0.0228411965072155, 0.013701734133064747, -0.018835894763469696, -0.030372144654393196, -0.002970744390040636, 0.07820381969213486, 0.021074125543236732, 0.022032100707292557, 0.024612722918391228, 0.022280897945165634, -0.002803700277581811, -0.028984544798731804, -0.07498936355113983, 0.01580798625946045, -0.0074774883687496185, -0.008813027292490005, 0.04263077303767204, 0.013872741721570492, 0.03569788485765457, -0.057913586497306824, -0.03448205441236496, 0.030327554792165756, -0.04072466120123863, -0.019832147285342216, 0.02807823196053505, -0.05416115000844002, -0.035412296652793884, 0.10593892633914948, 0.030378857627511024, -0.006703458726406097, 0.04565868899226189, 0.03627632558345795, 0.014340650290250778, 0.014974862337112427, 0.027461394667625427, 0.019437141716480255, 0.023191768676042557, 0.02591380476951599, 0.01887684501707554, -0.01608945056796074, 0.003217751858755946, 0.008548828773200512, 0.003411511890590191, 0.023056890815496445, 0.06251773238182068, 0.026632342487573624, -0.015964435413479805, 0.019337069243192673, 0.00728639867156744, -0.026566695421934128, 0.08594338595867157, -0.015510095283389091, -0.25487223267555237, 0.04110397398471832, 0.06408117711544037, 0.0845801904797554, 0.011263953521847725, -0.0061999736353755, 0.02480924502015114, -0.07198815047740936, -0.012719850055873394, -0.024306265637278557, -0.0032115608919411898, 0.033355433493852615, 0.021666837856173515, -0.020419679582118988, 0.01103910245001316, -0.01729673705995083, 0.0933537632226944, -0.05943457782268524, 0.032766323536634445, -0.0022439362946897745, 0.04605654254555702, 0.009832349605858326, 0.200675368309021, 0.017693381756544113, 0.0038718911819159985, 0.003913113847374916, -0.0012790519976988435, 0.005913661327213049, 0.0475308857858181, 0.0071053593419492245, 0.02752169780433178, -0.019491784274578094, 0.048665668815374374, -0.006081403233110905, 0.024790138006210327, -0.020397283136844635, -0.003639093367382884, -0.03456268459558487, 0.02536214515566826, -0.02106882631778717, 0.019814856350421906, 0.025686925277113914, -0.0842939168214798, 0.02529030852019787, 0.07447780668735504, -0.0016587573336437345, 0.007595691364258528, -0.05428805202245712, -0.05024662986397743, 0.010417575016617775, -0.04356867074966431, -0.021990880370140076, -0.02142123132944107, -0.020129302516579628, 0.01121566817164421, 0.07508572936058044, 0.04219227284193039, -0.016682684421539307, -0.004957114811986685, 0.012599842622876167, 0.005950945895165205, -0.04961435869336128, 0.10763175785541534, 0.02028634212911129, -0.011670724488794804 ]
[ -0.021223008632659912, 0.03531719371676445, -0.04410894960165024, 0.022992122918367386, -0.005306955426931381, 0.007821906358003616, 0.00825855415314436, 0.0055788601748645306, -0.028000788763165474, -0.007621859200298786, -0.04479334130883217, 0.0032401729840785265, 0.05583706498146057, -0.033475570380687714, -0.05304471030831337, -0.005930592771619558, -0.004225162789225578, 0.043437227606773376, 0.03817358240485191, -0.014647522941231728, -0.016007816419005394, 0.03060014359652996, 0.03418976813554764, 0.0033343916293233633, 0.007461966946721077, -0.005130114499479532, -0.03678830340504646, 0.013356786221265793, 0.028703777119517326, -0.1087912917137146, -0.03509965538978577, -0.048107851296663284, 0.006412430200725794, 0.011306139640510082, -0.012122287414968014, -0.030708977952599525, -0.014411878772079945, 0.03668326511979103, -0.013107256032526493, 0.02635752223432064, 0.0027475706301629543, -0.002511286875233054, -0.025208862498402596, 0.0014149525668472052, -0.00426433514803648, 0.01785588636994362, -0.05184261500835419, -0.021032288670539856, -0.017365815117955208, -0.03268824517726898, -0.05390821024775505, 0.0002479985123500228, -0.007140990346670151, 0.0045366534031927586, 0.01867365464568138, -0.0209956131875515, -0.016977636143565178, -0.014248504303395748, 0.02312072366476059, -0.04562869295477867, 0.011658677831292152, 0.008803979493677616, -0.02566385082900524, -0.020716780796647072, 0.019914280623197556, -0.005744708701968193, -0.0327911451458931, 0.00580169539898634, 0.03606891259551048, -0.010362557135522366, 0.004864892456680536, 0.006153632886707783, 0.022415658459067345, -0.02372955158352852, 0.006533975712954998, -0.024113014340400696, -0.002169959247112274, -0.015380274504423141, 0.035018570721149445, -0.012776237912476063, -0.01834041066467762, -0.013729007914662361, 0.008757069706916809, 0.02401101216673851, 0.015346900559961796, -0.02795170433819294, -0.01700216345489025, 0.03158573806285858, -0.013205708004534245, 0.027600260451436043, -0.01600811816751957, 0.03620618209242821, 0.04168086126446724, 0.03654377907514572, -0.08694804459810257, 0.041729748249053955, -0.004721928387880325, 0.0012999589089304209, -0.009298411197960377, 0.8486945033073425, -0.03271040692925453, 0.022655287757515907, 0.03967989236116409, -0.006304824259132147, 0.020746106281876564, -0.008437670767307281, -0.0019212038023397326, -0.034454409033060074, -0.006565794814378023, -0.02105535939335823, 0.01861475594341755, -0.027731338515877724, 0.02253791131079197, 0.009107083082199097, 0.0143799539655447, 0.02369850128889084, 0.014786300249397755, 0.045338720083236694, 0.00306127336807549, 0.005817912518978119, 0.04042530432343483, -0.010851703584194183, 0.013092292472720146, 0.005305007100105286, 0.02644742839038372, -0.14751151204109192, -0.01696721278131008, -6.353801166847829e-33, 0.023427806794643402, -0.02637314610183239, -0.01664482057094574, 0.012025712989270687, 0.01555380318313837, 0.010312790982425213, 0.009171460755169392, -0.02899796888232231, -0.020394837483763695, -0.009765694849193096, 0.015138196758925915, 0.009853205643594265, 0.01918363943696022, 0.005112980958074331, 0.010322801768779755, -0.01474679820239544, 0.001708406605757773, 0.04050818458199501, -0.03608477860689163, 0.003932148218154907, 0.06677031517028809, 0.011921619065105915, 0.01928858272731304, 0.01411718875169754, 0.06514551490545273, 0.0039058527909219265, -0.026227673515677452, -0.017527233809232712, -0.010810053907334805, -0.038888297975063324, -0.021556027233600616, 0.003308528568595648, -0.02145782671868801, -0.06796529144048691, 0.016138575971126556, -0.06873955577611923, 0.007127669639885426, -0.01417312677949667, -0.018257442861795425, -0.047081273049116135, -0.04475651681423187, -0.009855636395514011, -0.0044174701906740665, -0.04863525182008743, -0.00961700826883316, 0.03449011966586113, 0.013633834198117256, 0.05542309582233429, -0.004531908314675093, 0.011506219394505024, 0.008171411231160164, -0.00472250347957015, -0.0051302057690918446, 0.025845609605312347, -0.01895686611533165, 0.02193721942603588, 0.000005496438916452462, 0.038304198533296585, 0.01068231463432312, -0.015298322774469852, -0.01618865504860878, 0.02926556020975113, 0.011581419967114925, 0.027553999796509743, 0.014089447446167469, -0.004274512641131878, 0.022625619545578957, -0.014577494002878666, 0.03872605785727501, -0.013604182749986649, -0.046157728880643845, -0.017440224066376686, -0.033076949417591095, -0.027898555621504784, -0.01827413961291313, -0.059224825352430344, 0.002922388492152095, -0.017789805307984352, -0.015910722315311432, 0.02456836588680744, 0.03423883393406868, -0.03473662957549095, -0.001381141715683043, -0.01565520651638508, -0.0024372427724301815, -0.009773588739335537, 0.02826162427663803, 0.005144632421433926, -0.01797196827828884, 0.0038404406514018774, 0.012013721279799938, 0.009909329004585743, 0.0027604312635958195, -0.00979642104357481, -0.04466542601585388, 6.7400311416456e-33, 0.0019168546423316002, -0.01763693243265152, 0.006252868101000786, -0.0000028510341962828534, 0.023734629154205322, 0.00013255386147648096, 0.02156618796288967, -0.01260749064385891, -0.02638937719166279, 0.03378971293568611, -0.00016121267981361598, 0.008762622252106667, -0.0002403035032330081, -0.009827273897826672, 0.04960330203175545, -0.01210793573409319, -0.015206323005259037, 0.03944452852010727, 0.04205504432320595, 0.024290375411510468, 0.025305090472102165, 0.0261326152831316, -0.007694256957620382, 0.030597122386097908, 0.005885299760848284, 0.03174610808491707, 0.004643188323825598, 0.02614409662783146, 0.01887328177690506, 0.016816843301057816, 0.02778667025268078, -0.007502489257603884, -0.011585734784603119, -0.03997517004609108, -0.02071271277964115, 0.036772552877664566, 0.017171742394566536, -0.03418674319982529, 0.00845540314912796, 0.010301449336111546, 0.034245215356349945, 0.0260287094861269, -0.007846764288842678, 0.016993997618556023, 0.029285971075296402, -0.01065867580473423, 0.00912503246217966, 0.014041882008314133, 0.023561088368296623, -0.011968071572482586, 0.008596341125667095, 0.024431023746728897, -0.00626923656091094, 0.02536839246749878, 0.007067174185067415, -0.006851565092802048, -0.01294756680727005, 0.009439746849238873, -0.03909992426633835, 0.016279611736536026, -0.04000961035490036, -0.01603684015572071, -0.006376449018716812, 0.012188020162284374, -0.010663982480764389, 0.011178015731275082, -0.04408244416117668, 0.007799181621521711, -0.02330731227993965, 0.016391385346651077, 0.004705056548118591, -0.03378414735198021, 0.010367831215262413, 0.01840333268046379, -0.031923387199640274, 0.029279489070177078, -0.03638516366481781, 0.04082513228058815, 0.004992401227355003, 0.003889918327331543, 0.02453077957034111, -0.005271963309496641, 0.03131013736128807, 0.030724937096238136, -0.0005263645434752107, -0.008592657744884491, 0.013558167964220047, 0.022741438820958138, 0.0396457314491272, -0.023537462577223778, 0.013768041506409645, -0.043914444744586945, 0.02762468159198761, 0.015824155882000923, 0.0051602208986878395, -1.2408565730481769e-8, -0.00435662642121315, 0.01574469730257988, -0.010507329367101192, 0.04303772374987602, 0.0225246399641037, 0.021867536008358, -0.02781694382429123, -0.05323966592550278, -0.047550030052661896, 0.0033667052630335093, 0.04718533530831337, -0.0014575110981240869, -0.006146993022412062, 0.01287128683179617, 0.0542105995118618, -0.016780799254775047, -0.016810057684779167, -0.014719312079250813, 0.015989718958735466, -0.008027475327253342, 0.0395670048892498, 0.01718020997941494, -0.021148689091205597, 0.01807616651058197, 0.00957226287573576, -0.01701309159398079, 0.012878681533038616, -0.08775924146175385, 0.0064812819473445415, 0.03269173949956894, 0.017049329355359077, -0.021840734407305717, -0.015290508978068829, 0.04462683945894241, -0.0029329434037208557, -0.01807382144033909, -0.029804350808262825, -0.0013790326192975044, 0.021190093830227852, -0.0024563053157180548, -0.026560992002487183, -0.00352093786932528, -0.012794028967618942, -0.03309185057878494, -0.0581016018986702, -0.03317119926214218, -0.04448946192860603, -0.04356119781732559, 0.04333601891994476, -0.030490031465888023, 0.0001929281570482999, -0.02039291523396969, -0.03165207430720329, -0.0031729761976748705, 0.02746715024113655, 0.016011890023946762, 0.009497097693383694, -0.015282628126442432, -0.012504447251558304, 0.007738722488284111, 0.018164273351430893, -0.02643941156566143, -0.024386947974562645, -0.010479681193828583 ]
python-combinations-values-off
https://markhneedham.com/blog/2017/12/03/python-combinations-values-off
false
2017-12-05 22:19:34
scikit-learn: Building a multi class classification ensemble
[ "scikit-learn", "ensemble", "votingclassifier", "classification", "machine-learning" ]
[ "Python" ]
For the Kaggle https://www.kaggle.com/c/spooky-author-identification[Spooky Author Identification] I wanted to combine multiple classifiers together into an ensemble and found the http://scikit-learn.org/stable/modules/ensemble.html#voting-classifier[+++<cite>+++VotingClassifier+++</cite>+++] that does exactly that. We need to predict the probability that a sentence is written by one of three authors so the VotingClassifier needs to make a 'soft' prediction. If we only needed to know the most likely author we could have it make a 'hard' prediction instead. We start with three classifiers which generate different n-gram based features. The code for those is as follows: [source,python] ---- from sklearn import linear_model from sklearn.ensemble import VotingClassifier from sklearn.feature_extraction.text import CountVectorizer from sklearn.naive_bayes import MultinomialNB from sklearn.pipeline import Pipeline ngram_pipe = Pipeline([ ('cv', CountVectorizer(ngram_range=(1, 2))), ('mnb', MultinomialNB()) ]) unigram_log_pipe = Pipeline([ ('cv', CountVectorizer()), ('logreg', linear_model.LogisticRegression()) ]) ---- We can combine those classifiers together like this: [source,python] ---- classifiers = [ ("ngram", ngram_pipe), ("unigram", unigram_log_pipe), ] mixed_pipe = Pipeline([ ("voting", VotingClassifier(classifiers, voting="soft")) ]) ---- Now it's time to test our ensemble. I got the code for the test function from https://www.kaggle.com/sohier/intermediate-tutorial-python/[Sohier Dane]'s tutorial. [source,python] ---- import pandas as pd import numpy as np from sklearn.model_selection import StratifiedKFold from sklearn import metrics Y_COLUMN = "author" TEXT_COLUMN = "text" def test_pipeline(df, nlp_pipeline): y = df[Y_COLUMN].copy() X = pd.Series(df[TEXT_COLUMN]) rskf = StratifiedKFold(n_splits=5, random_state=1) losses = [] accuracies = [] for train_index, test_index in rskf.split(X, y): X_train, X_test = X[train_index], X[test_index] y_train, y_test = y[train_index], y[test_index] nlp_pipeline.fit(X_train, y_train) losses.append(metrics.log_loss(y_test, nlp_pipeline.predict_proba(X_test))) accuracies.append(metrics.accuracy_score(y_test, nlp_pipeline.predict(X_test))) print("{kfolds log losses: {0}, mean log loss: {1}, mean accuracy: {2}".format( str([str(round(x, 3)) for x in sorted(losses)]), round(np.mean(losses), 3), round(np.mean(accuracies), 3) )) train_df = pd.read_csv("train.csv", usecols=[Y_COLUMN, TEXT_COLUMN]) test_pipeline(train_df, mixed_pipe) ---- Let's run https://gist.github.com/mneedham/0f640497ae3c662fc89fda199b5b7833[the script]: [source,text] ---- kfolds log losses: ['0.388', '0.391', '0.392', '0.397', '0.398'], mean log loss: 0.393 mean accuracy: 0.849 ---- Looks good. I've actually got several other classifiers as well but I'm not sure which ones should be part of the ensemble. In a future post we'll look at how to use http://scikit-learn.org/stable/modules/generated/sklearn.model_selection.GridSearchCV.html[GridSearch] to work that out.
null
null
[ -0.010604748502373695, -0.024190690368413925, -0.003908238373696804, 0.020307568833231926, 0.06301916390657425, 0.009215150028467178, 0.006957797333598137, 0.02022576332092285, -0.009236820973455906, 0.006245675031095743, -0.0007576855714432895, -0.0027168376836925745, -0.061086490750312805, 0.01113437581807375, -0.007488944102078676, 0.07493298500776291, 0.05776233226060867, 0.016167204827070236, 0.009652108885347843, 0.027151010930538177, 0.030622538179159164, 0.046815335750579834, 0.02233169786632061, 0.019837761297822, 0.010527662932872772, -0.00345631199888885, 0.03503567725419998, 0.0003934424603357911, -0.03964633494615555, -0.003437678562477231, 0.03569405525922775, 0.01396618876606226, 0.011269161477684975, -0.008615849539637566, 0.034602463245391846, -0.01012577023357153, -0.04320959374308586, 0.02365836501121521, 0.02320108376443386, 0.030891593545675278, -0.04591159522533417, 0.013757043518126011, -0.0028391422238200903, 0.002183632692322135, -0.0478396899998188, -0.009387477301061153, -0.03584086894989014, 0.027051599696278572, 0.033113401383161545, -0.02259640395641327, -0.06605295836925507, 0.031336572021245956, -0.029724283143877983, -0.03619354963302612, 0.012429510243237019, 0.048490893095731735, 0.030558988451957703, -0.065462626516819, 0.02700830064713955, -0.009698585607111454, -0.026711726561188698, 0.0012286024866625667, -0.0191808994859457, 0.00977895874530077, 0.016536803916096687, -0.020361922681331635, -0.015713991597294807, 0.03204478323459625, -0.03516985476016998, -0.0035862077493220568, -0.03125050291419029, 0.0186656191945076, 0.00240549398586154, 0.00030382844852283597, -0.019368549808859825, -0.01798134297132492, 0.030835090205073357, 0.07570702582597733, 0.0191179271787405, 0.012092294171452522, 0.011371459811925888, -0.04744943231344223, 0.03949283808469772, 0.05835343152284622, -0.007486197631806135, -0.019772447645664215, -0.06535983085632324, -0.03862161561846733, -0.06299646943807602, 0.05010669678449631, -0.020869508385658264, -0.0798688605427742, 0.028004322201013565, 0.013178516179323196, 0.006019146181643009, 0.03369530662894249, 0.02618793211877346, 0.02197268046438694, 0.0004477358888834715, -0.02671179734170437, -0.03145686164498329, -0.026566578075289726, 0.021315647289156914, 0.012200643308460712, -0.06889981031417847, -0.010699222795665264, 0.01172954123467207, -0.012631580233573914, -0.014575534500181675, 0.01341202948242426, -0.0014038608642295003, 0.03089374117553234, -0.01962837018072605, -0.009592818096280098, -0.07732134312391281, 0.05626246705651283, -0.010725485160946846, -0.05756262317299843, 0.000509338453412056, 0.009575706906616688, 0.057326775044202805, 0.03470736742019653, -0.052423425018787384, 0.07815410196781158, -0.024558044970035553, 0.03788011148571968, 0.010980558581650257, 0.06248738616704941, -0.012128438800573349, -0.07844919711351395, -0.021060962229967117, 0.051561832427978516, -0.013361598365008831, 0.0055751134641468525, -0.022089337930083275, -0.01453192438930273, -0.029362699016928673, 0.03121987357735634, 0.05947438254952431, 0.04896656796336174, 0.008032499812543392, -0.012671291828155518, 0.012851146049797535, 0.0009582361089996994, 0.0119937714189291, 0.015346010215580463, -0.01471601240336895, -0.018182625994086266, -0.04655143618583679, -0.0038085507694631815, -0.009093692526221275, -0.0157395601272583, 0.044621262699365616, -0.031328413635492325, 0.003149396274238825, 0.07755950838327408, 0.029120363295078278, 0.00512890936806798, 0.017444713041186333, 0.0032579025719314814, 0.04009062424302101, 0.021229209378361702, 0.008925802074372768, 0.054328449070453644, 0.016825666651129723, -0.03491228073835373, 0.03623487055301666, 0.06986786425113678, -0.02460637129843235, 0.014201286248862743, -0.030254371464252472, -0.04931693896651268, 0.042526841163635254, -0.035455722361803055, 0.0030860695987939835, -0.021304063498973846, 0.05829516798257828, 0.022731618955731392, 0.08087409287691116, 0.0012069956865161657, -0.05470219999551773, 0.025306055322289467, -0.005791232455521822, 0.009236056357622147, 0.034282322973012924, 0.001066099852323532, 0.10136137902736664, 0.015470731072127819, 0.004482089541852474, 0.034342359751462936, -0.06631847470998764, -0.05624331161379814, -0.0325453020632267, 0.005586529616266489, 0.05685809999704361, -0.037534553557634354, -0.00801315438002348, 0.08884409070014954, 0.03275536745786667, 0.024024376645684242, 0.027130572125315666, -0.01590094156563282, 0.013442573137581348, -0.0077192108146846294, -0.07377108186483383, 0.0324583426117897, 0.0132253123447299, -0.03724148869514465, -0.014927967451512814, -0.0013068036641925573, -0.028881141915917397, 0.0011746999807655811, 0.0317903570830822, -0.03308974578976631, 0.03498910367488861, 0.05295292288064957, 0.06265900284051895, -0.0042202649638056755, 0.03264166787266731, -0.02439282275736332, 0.008451995439827442, -0.012441815808415413, -0.036812931299209595, -0.02313309535384178, 0.007959350012242794, 0.13229763507843018, 0.05805351212620735, -0.015204943716526031, -0.06787986308336258, 0.004823869094252586, -0.0119165675714612, -0.06002853810787201, 0.045406632125377655, -0.011507906951010227, -0.023030297830700874, -0.013851124793291092, -0.029094398021697998, -0.02704661712050438, 0.025563273578882217, -0.04348057508468628, 0.003095997264608741, 0.0955977663397789, -0.044363345950841904, 0.05881181359291077, 0.010331206023693085, 0.003809837158769369, 0.01299145445227623, 0.004164280369877815, -0.04058871418237686, 0.002442744327709079, 0.037116535007953644, -0.0045417435467243195, 0.006365064065903425, -0.059945277869701385, -0.022663027048110962, -0.012575182132422924, -0.02600688673555851, -0.01244453527033329, 0.0771573930978775, 0.021213358268141747, -0.018896417692303658, 0.03062007762491703, 0.005552934482693672, 0.006907667964696884, -0.007564938627183437, -0.03490458056330681, -0.03739192709326744, -0.046250924468040466, -0.006149275694042444, 0.037166986614465714, 0.046520378440618515, 0.009744768962264061, 0.048098329454660416, -0.01652160845696926, 0.009361342526972294, 0.00962955690920353, 0.04528359696269035, 0.011441167443990707, -0.02057962864637375, -0.057951897382736206, -0.02832612954080105, 0.046580325812101364, -0.04534516856074333, -0.023047640919685364, -0.0010946601396426558, -0.08118168264627457, 0.02739991620182991, -0.04924837127327919, -0.022868996486067772, 0.008031941950321198, 0.013523679226636887, 0.06059614568948746, 0.01769552007317543, -0.02073322795331478, 0.03631097823381424, 0.02204965613782406, 0.001501374994404614, 0.03918961435556412, 0.007918559946119785, 0.05153874680399895, -0.009151875972747803, 0.021969467401504517, 0.050525277853012085, -0.015094549395143986, -0.0013560615479946136, -0.04257817566394806, 0.024171141907572746, -0.02156432345509529, -0.2906067967414856, 0.005609679967164993, 0.02740994095802307, -0.038680922240018845, 0.00807749293744564, -0.022468140348792076, 0.03450443595647812, -0.030720612034201622, -0.009837837889790535, 0.009584840387105942, -0.0107022849842906, -0.022921087220311165, -0.012506869621574879, 0.049483522772789, 0.016375673934817314, -0.010286478325724602, -0.03492150828242302, -0.019848475232720375, 0.04154350236058235, 0.05731455236673355, -0.00592554546892643, -0.05562189593911171, -0.04794921353459358, 0.02297092042863369, 0.013520009815692902, 0.03702845796942711, -0.0767616480588913, 0.02553233504295349, -0.05045035481452942, -0.03330536559224129, 0.017556464299559593, -0.014962424524128437, -0.01948581263422966, 0.025944320484995842, 0.0038684026803821325, -0.03759312629699707, 0.023405838757753372, 0.03497003763914108, -0.0022024293430149555, 0.03239348158240318, -0.010086447931826115, -0.047933947294950485, -0.012088337913155556, 0.0049840230494737625, 0.06767164915800095, 0.008780739270150661, -0.047169141471385956, 0.008203725330531597, -0.06468681991100311, 0.06680350005626678, -0.03247947245836258, -0.03535465896129608, -0.018343335017561913, 0.03443077206611633, -0.02580823376774788, 0.00791384931653738, 0.001864428399130702, -0.0009560019825585186, -0.07207023352384567, -0.011838790029287338, -0.041764069348573685, -0.03647935390472412, -0.0034694375935941935, -0.08987433463335037, -0.024023940786719322, -0.05183849111199379, -0.06533412635326385, -0.020980248227715492, 0.05145464092493057, 0.02138853818178177, -0.05878686159849167, 0.00002208453770435881, -0.027382101863622665, -0.11240947246551514, -0.006580475717782974, -0.025467095896601677, 0.022631945088505745, 0.006309993099421263, 0.015099804848432541, 0.06611143052577972, -0.055009763687849045, -0.05230403319001198, 0.03989502415060997, -0.02937273494899273, 0.014944438822567463, -0.02166227623820305, -0.007942808791995049, 0.02685977704823017, -0.013771969825029373, -0.027436234056949615, 0.061528030782938004, 0.02480413392186165, 0.01354965940117836, -0.0006348448805510998, -0.003422162029892206, 0.0578761026263237, 0.015071410685777664, -0.0017481294926255941, -0.0026974708307534456, 0.02440132014453411, 0.035998713225126266, -0.06801599264144897, -0.04188885912299156, -0.06231378763914108, -0.03798716515302658, 0.024898367002606392, -0.06645517796278, 0.012875908054411411, 0.03329438343644142, -0.00006825561285950243, -0.00018217340402770787, -0.0183518435806036, 0.030178165063261986, -0.02073843777179718, 0.01507356483489275, -0.008086097426712513, -0.00028739304980263114, 0.02313603274524212, 0.00576499430462718, 0.005322355777025223, -0.03860443830490112, 0.03489946946501732, -0.0008230351377278566, -0.013226849026978016, -0.034502651542425156, -0.056681692600250244, 0.002596581820398569, -0.0058163669891655445, -0.003859959775581956, -0.022283930331468582, -0.034298256039619446, 0.027676373720169067, 0.0035492992028594017, -0.0366281121969223, 0.04026879370212555, -0.0027344415429979563, -0.059389278292655945, -0.030215561389923096, 0.007709248922765255, 0.0473775714635849, -0.023654723539948463, -0.04429110884666443, 0.032522622495889664, 0.002186973113566637, 0.059221722185611725, -0.0006778700626455247, 0.04024004936218262, 0.01784410886466503, -0.015157409012317657, -0.004017055034637451, 0.0014984778827056289, 0.013221479021012783, -0.012180711142718792, -0.021514810621738434, -0.024532539770007133, 0.021503956988453865, 0.02636689692735672, 0.011757693253457546, -0.01518668420612812, -0.0652889758348465, 0.052749328315258026, -0.014076814986765385, 0.0020432104356586933, -0.012689417228102684, 0.02634435147047043, 0.039899080991744995, -0.03746863454580307, 0.04962398484349251, -0.0013759523862972856, 0.019127029925584793, 0.025859534740447998, -0.013227056711912155, -0.028407663106918335, 0.013748137280344963, -0.02135319635272026, -0.016740959137678146, 0.03207680210471153, 0.030151359736919403, -0.017099682241678238, 0.0073132384568452835, -0.013925743289291859, -0.02278369851410389, -0.005092969164252281, -0.000666355190332979, 0.042708661407232285, 0.06959664076566696, -0.044990796595811844, -0.007153746206313372, -0.0297357439994812, -0.010837835259735584, -0.04646670073270798, 0.014926781877875328, 0.009642651304602623, -0.007935354486107826, -0.03569268807768822, -0.079782634973526, -0.026918495073914528, 0.0054615940898656845, -0.015023964457213879, -0.025734348222613335, -0.02050705999135971, 0.004487526603043079, -0.03751346841454506, -0.010046478360891342, 0.06324144452810287, -0.08227744698524475, 0.008573129773139954, -0.03418545797467232, -0.005181013606488705, 0.009889883920550346, 0.00745713384822011, -0.0672479197382927, -0.015842586755752563, 0.0064425403252244, 0.009574266150593758, -0.04116314277052879, -0.030264925211668015, -0.028505105525255203, 0.02835540845990181, 0.004694777075201273, 0.00003457353886915371, -0.03190109133720398, 0.00342536554671824, -0.007571241818368435, -0.024971961975097656, 0.03334774076938629, 0.0038184281438589096, -0.009435107931494713, 0.04531167447566986, -0.01478234026581049, 0.02804466523230076, -0.01902439258992672, 0.02187686413526535, 0.02624381147325039, -0.021023843437433243, 0.005527841858565807, -0.03765910491347313, -0.007179242093116045, -0.00692559452727437, 0.024487072601914406, 0.004365941975265741, -0.004050584975630045, -0.032609403133392334, 0.0076379356905817986, -0.03136064112186432, 0.005220495630055666, 0.011828824877738953, -0.008823209442198277, -0.005839671473950148, 0.04531889036297798, 0.004227965138852596, 0.028111370280385017, -0.0018640299094840884, -0.034662019461393356, 0.0892389565706253, -0.023249367251992226, -0.039718031883239746, -0.022312598302960396, -0.029602177441120148, 0.007194908801466227, -0.02064978890120983, 0.013282239437103271, -0.07117205113172531, 0.03972456231713295, 0.005336587317287922, 0.015072510577738285, 0.025973720476031303, -0.0017641416052356362, 0.026605498045682907, -0.038895249366760254, -0.005056172143667936, -0.08425567299127579, -0.03347324579954147, 0.05800880864262581, -0.01808774471282959, 0.029166506603360176, -0.014634717255830765, -0.04008271545171738, 0.03219706192612648, -0.06809263676404953, -0.013570441864430904, 0.04335400089621544, -0.0214831605553627, -0.006398104131221771, 0.03868335485458374, -0.025195205584168434, 0.01572193205356598, 0.01265571266412735, -0.05236092954874039, -0.030767861753702164, -0.030436893925070763, 0.08185959607362747, -0.013447366654872894, 0.017435193061828613, -0.018962983042001724, -0.007685374468564987, 0.07139088958501816, 0.05613693594932556, 0.04913429915904999, 0.018561337143182755, -0.02006799727678299, 0.05073295533657074, 0.029614675790071487, 0.01052188128232956, -0.0225355364382267, 0.009482366032898426, -0.006282555405050516, -0.05520709604024887, 0.06678064167499542, -0.009106039069592953, -0.004146793857216835, -0.03706219047307968, 0.06029859185218811, -0.010829953476786613, -0.049779489636421204, -0.08314712345600128, 0.022129876539111137, -0.060762692242860794, -0.005573354661464691, -0.01921733282506466, -0.011476677842438221, -0.05193043872714043, 0.06973437964916229, 0.009776678867638111, -0.02056947350502014, 0.04813199117779732, -0.041542816907167435, 0.00110041128937155, 0.04486863687634468, 0.06449121236801147, 0.05764234438538551, 0.07059399783611298, 0.012776271440088749, 0.06491924822330475, -0.02014400251209736, -0.053372886031866074, -0.0006985595682635903, -0.010296118445694447, -0.01087956316769123, -0.0473320297896862, -0.003557268064469099, 0.05157509446144104, 0.014019695110619068, 0.06770899146795273, -0.020335782319307327, 0.023765483871102333, 0.0271585825830698, 0.0418565459549427, -0.012768901884555817, 0.05913162603974342, 0.012305647134780884, 0.006772918626666069, -0.027896810322999954, -0.019736144691705704, 0.03382495790719986, -0.005982555914670229, -0.030614135786890984, 0.025903917849063873, -0.002394969342276454, 0.03974546864628792, 0.006823172327131033, 0.049268029630184174, 0.0760931745171547, -0.0316147580742836, -0.04187591373920441, -0.009350555948913097, 0.043104104697704315, -0.0021335238125175238, 0.007133232895284891, -0.025783153250813484, 0.006329464726150036, 0.0008839698857627809, -0.034417543560266495, 0.014060603454709053, -0.022104579955339432, 0.004213489592075348, 0.0029613168444484472, -0.048405300825834274, 0.02126612327992916, 0.02687523327767849, 0.003191218478605151, -0.044296931475400925, -0.034822892397642136, -0.01216575875878334, -0.06930818408727646, -0.03066847287118435, -0.02210681140422821, 0.012343580834567547, 0.015042036771774292, -0.014545012265443802, -0.016677506268024445, -0.009721347130835056, -0.009870213456451893, 0.022007014602422714, -0.055032216012477875, -0.0012080922024324536, 0.011392882093787193, 0.010779457166790962, 0.00779082952067256, 0.015377110801637173, 0.053230833262205124, 0.018260402604937553, -0.014092150144279003, 0.010042266920208931, 0.015283966436982155, 0.05473276972770691, 0.03784944489598274, 0.012462949380278587, -0.07471264898777008, -0.007843881845474243, -0.004204955417662859, -0.021211184561252594, -0.07003311067819595, 0.039200879633426666, 0.03260469064116478, -0.006873731967061758, 0.0622771792113781, 0.008820336312055588, -0.023174865171313286, -0.05929477512836456, -0.0011494543869048357, -0.03244394436478615, 0.022226674482226372, 0.027118803933262825, -0.02615598775446415, 0.08084918558597565, 0.0290063489228487, -0.0062766107730567455, -0.021306723356246948, 0.000993169378489256, -0.031710755079984665, -0.01207667961716652, -0.056460507214069366, -0.024815231561660767, -0.05357012897729874, -0.05035249516367912, -0.013785957358777523, 0.05169583484530449, -0.02318393625319004, -0.029009755700826645, 0.014253092929720879, -0.0050694625824689865, 0.026620706543326378, 0.027379106730222702, -0.03368525952100754, -0.010327465832233429, -0.0314534492790699, -0.010725054889917374, -0.006571994163095951, 0.03881562128663063, -0.05155230686068535, 0.03958136588335037, 0.003733879653736949, -0.02313382178544998, -0.01704154536128044, -0.001555141294375062, 0.0346272774040699, 0.03791878744959831, -0.011395726352930069, 0.00005028532905271277 ]
[ -0.0780801847577095, -0.013935272581875324, -0.02191668190062046, 0.00008338922634720802, 0.0463157556951046, -0.034860823303461075, 0.032867681235075, 0.0062331547960639, 0.03156187757849693, -0.006584946531802416, -0.0046815406531095505, -0.020895931869745255, -0.021301306784152985, -0.025944596156477928, 0.11078522354364395, -0.022611072286963463, 0.010110636241734028, -0.02858668565750122, -0.03342162072658539, 0.022131960839033127, 0.018351813778281212, 0.043658431619405746, -0.010212365537881851, -0.02762480080127716, 0.0050778454169631, 0.041452556848526, 0.06174855679273605, -0.062117088586091995, -0.015249442309141159, -0.2321321666240692, 0.026203937828540802, -0.020587489008903503, 0.026876050978899002, -0.04505631700158119, 0.018739352002739906, 0.05516928806900978, 0.01691575162112713, 0.04626031219959259, -0.012174717150628567, 0.019442858174443245, -0.013637782074511051, 0.013056237250566483, -0.024988610297441483, -0.03417690098285675, 0.08273886144161224, -0.049276821315288544, -0.030660158023238182, -0.02814624272286892, -0.06078410521149635, 0.032323870807886124, -0.014128216542303562, -0.02552795223891735, -0.024594858288764954, 0.019354823976755142, -0.014086758717894554, -0.00006696279888274148, -0.012913013808429241, 0.07925472408533096, 0.06108327582478523, 0.029504433274269104, -0.010583184659481049, 0.028133554384112358, -0.13556551933288574, 0.0768607035279274, 0.0060959467664361, 0.0716448649764061, -0.07731335610151291, -0.042903803288936615, -0.02249540388584137, 0.09038271009922028, 0.038362402468919754, 0.011357924900949001, 0.0014988326001912355, 0.051793165504932404, -0.027985742315649986, 0.007025166414678097, 0.0038516749627888203, 0.03491739183664322, 0.05046998709440231, -0.010266777127981186, -0.050586018711328506, 0.020937150344252586, -0.010850267484784126, -0.03892765939235687, 0.026731964200735092, 0.028095340356230736, 0.012468456290662289, 0.02964792028069496, 0.007244918495416641, 0.004528820514678955, 0.03675111010670662, 0.000504019670188427, 0.0431450679898262, 0.011918383650481701, -0.05389845371246338, -0.01950979046523571, -0.017000796273350716, 0.005115931853652, 0.003723905188962817, 0.3650299608707428, -0.0338069312274456, -0.009955981746315956, -0.0026514511555433273, 0.03376868739724159, -0.02501843124628067, -0.07573331892490387, -0.01684924215078354, -0.06990049034357071, -0.05425199493765831, -0.04705646261572838, 0.0223233662545681, -0.009215420112013817, 0.011648301035165787, -0.045342233031988144, 0.019873198121786118, 0.010484008118510246, 0.011381103657186031, 0.04683871939778328, 0.012168546207249165, 0.015551281161606312, 0.0006163038196973503, -0.01764056272804737, 0.01981530711054802, -0.005299510899931192, 0.03211859613656998, 0.03654555231332779, 0.028493601828813553, 0.10552779585123062, 0.032584547996520996, -0.017795389518141747, 0.010455041192471981, -0.012943089939653873, -0.1196155920624733, -0.011973773129284382, 0.012043033726513386, -0.021243080496788025, -0.01118145976215601, 0.012766947038471699, -0.004978190176188946, -0.032637279480695724, -0.0009930854430422187, 0.0023099835962057114, 0.03671629726886749, 0.03171195834875107, -0.043453700840473175, 0.126218780875206, -0.06664153188467026, 0.011163153685629368, -0.042083244770765305, -0.03271210938692093, 0.02117532305419445, 0.00644918205216527, -0.05020800977945328, -0.0749826580286026, 0.036003317683935165, -0.012982569634914398, 0.052171334624290466, -0.018151504918932915, -0.05448199436068535, -0.013820932246744633, -0.007496475707739592, -0.033823590725660324, 0.01700659841299057, 0.014648854732513428, 0.02999158762395382, -0.07389585673809052, 0.004727451596409082, 0.028708742931485176, -0.024835258722305298, -0.07718504965305328, 0.04237490892410278, 0.005068838596343994, -0.0247257798910141, 0.028614481911063194, -0.018033800646662712, -0.012171444483101368, -0.020642012357711792, 0.030856512486934662, 0.08842233568429947, -0.029423831030726433, -0.006324150133877993, 0.01370984222739935, -0.07478508353233337, 0.00942295417189598, -0.01813720352947712, -0.06998234987258911, -0.030123479664325714, -0.048117849975824356, -0.02766941860318184, 0.008365594781935215, -0.0068073635920882225, 0.011921688914299011, -0.02687058039009571, 0.05381143093109131, -0.03488849475979805, -0.002331371884793043, 0.020941834896802902, -0.030785594135522842, 0.003837135387584567, -0.0625251829624176, -0.04538446664810181, 0.05953117460012436, -0.02168189361691475, -0.019155560061335564, -0.025244474411010742, 0.03862610086798668, 0.04548295959830284, -0.010750427842140198, 0.0835229754447937, -0.007223064545542002, 0.013195942156016827, -0.0341520756483078, -0.06299235671758652, 0.010785242542624474, -0.026505833491683006, -0.0023700858000665903, -0.029003571718931198, 0.037778183817863464, -0.004285638686269522, 0.029174888506531715, -0.025070952251553535, -0.03200723975896835, -0.042327720671892166, -0.3712419867515564, -0.03938759118318558, 0.04491192847490311, 0.0009887439664453268, 0.025816358625888824, -0.0695725753903389, 0.023151447996497154, 0.031496141105890274, -0.026499945670366287, 0.06183839961886406, 0.06700628250837326, 0.013346465304493904, -0.005695968866348267, -0.025703925639390945, 0.013055836781859398, 0.0699147954583168, -0.02951790764927864, -0.0380062535405159, -0.028440289199352264, 0.05467439815402031, 0.023076800629496574, 0.014656102284789085, 0.0014552875654771924, -0.04344196245074272, 0.009765968658030033, 0.006921959575265646, 0.05371762812137604, 0.049643322825431824, 0.047815028578042984, -0.026176542043685913, 0.0029704056214541197, 0.04371664300560951, 0.010251760482788086, -0.06958432495594025, 0.02603471651673317, -0.003547168103978038, 0.02114158496260643, 0.0038272368256002665, -0.03584268316626549, -0.04176447540521622, -0.043072327971458435, 0.06846217066049576, -0.0020821073558181524, -0.04475570097565651, -0.04537712410092354, 0.0015709485160186887, -0.03750595822930336, -0.008071711286902428, -0.005856799427419901, 0.04354877397418022, 0.018700089305639267, 0.03844449296593666, 0.02501703053712845, 0.03266831114888191, -0.014366169460117817, -0.01867668703198433, -0.09634630382061005, 0.005857329815626144, -0.00029513530898839235, 0.004446383565664291, 0.06665556132793427, -0.006545924581587315, 0.033259592950344086, -0.05891440436244011, -0.02049281820654869, 0.020399903878569603, -0.024966616183519363, -0.003953051753342152, 0.03232387453317642, -0.027871794998645782, -0.06355223059654236, 0.07830578088760376, -0.015848882496356964, 0.01265726238489151, 0.07115262746810913, 0.03099079057574272, 0.03783406689763069, -0.0017025335691869259, 0.01697828248143196, 0.031263601034879684, 0.04309024289250374, 0.0017342641949653625, 0.019193006679415703, -0.017163816839456558, 0.018831776455044746, 0.007779180072247982, -0.00040172849548980594, 0.014700463972985744, 0.029165394604206085, 0.03722944110631943, 0.010470607317984104, 0.006070214789360762, 0.015972450375556946, 0.02149679698050022, 0.01779819093644619, 0.005499259568750858, -0.2637472450733185, 0.012576891109347343, 0.04855374991893768, 0.11088092625141144, 0.03962702676653862, -0.02937767282128334, 0.012739483267068863, -0.10191012918949127, -0.014661889523267746, -0.01552796084433794, 0.014143294654786587, 0.0417247973382473, 0.02055143564939499, -0.004383090417832136, -0.004639214836061001, 0.012503904290497303, 0.10153984278440475, -0.04453060030937195, 0.02525321952998638, -0.030733460560441017, 0.03783993050456047, 0.004277726169675589, 0.20644626021385193, 0.008614490740001202, -0.010735300369560719, 0.01765727438032627, 0.00927396584302187, -0.02812986634671688, 0.03256424143910408, -0.0267223808914423, 0.054423436522483826, -0.04377329722046852, 0.044377248734235764, -0.003977370914071798, 0.012608986347913742, -0.006065822672098875, -0.026933513581752777, -0.024088842794299126, 0.026511175557971, -0.00874127447605133, 0.029898332431912422, 0.013568866066634655, -0.05781861022114754, -0.023332862183451653, 0.07616177201271057, 0.00441331509500742, -0.03296027332544327, -0.05912927910685539, -0.07991908490657806, 0.00917544960975647, -0.009951704181730747, -0.019810384139418602, -0.04317987337708473, -0.01608567126095295, 0.004942376632243395, 0.06766387075185776, 0.03963705897331238, -0.002102209720760584, -0.014559810981154442, 0.0150890639051795, -0.0058075073175132275, -0.07068920135498047, 0.0819317102432251, 0.03311087563633919, -0.02048555575311184 ]
[ -0.009812116622924805, -0.0323263444006443, -0.037804655730724335, 0.016489485278725624, -0.02174639329314232, 0.02787996642291546, 0.007547877728939056, 0.014953620731830597, -0.00856114737689495, -0.01011162344366312, -0.014787296764552593, -0.00412158016115427, -0.005161324515938759, -0.06333185732364655, -0.050217658281326294, 0.009217929095029831, -0.00903189554810524, 0.050079718232154846, 0.013703996315598488, -0.013893237337470055, -0.025502139702439308, 0.03348443657159805, 0.029900480061769485, 0.01697707176208496, 0.020261963829398155, -0.024340109899640083, -0.014331920072436333, 0.008407974615693092, 0.026275917887687683, -0.10516811162233353, -0.0055131977424025536, -0.04990203306078911, -0.004693822469562292, 0.021373825147747993, -0.02694486826658249, -0.01926356926560402, -0.0442371629178524, 0.05187315493822098, -0.006774043198674917, 0.00397892389446497, -0.007090030238032341, -0.02537021040916443, -0.005220091436058283, -0.01669221557676792, -0.022651657462120056, -0.00030614304705522954, -0.04815426468849182, -0.010775474831461906, 0.010647708550095558, -0.03213956579566002, -0.05482640862464905, -0.026693612337112427, -0.0019496367312967777, 0.010431190952658653, 0.005127519369125366, -0.03180517256259918, -0.01664675399661064, 0.017489973455667496, 0.011896845884621143, -0.025142639875411987, 0.005672550294548273, 0.005820639431476593, -0.02080560103058815, -0.025328541174530983, 0.0332905538380146, 0.002629463328048587, -0.04905669018626213, 0.007827256806194782, -0.004057025536894798, 0.024536367505788803, 0.0033591496758162975, 0.011615574359893799, -0.01154643576592207, -0.024576062336564064, 0.007879390381276608, -0.03270813450217247, -0.013214202597737312, 0.017961887642741203, 0.03972965106368065, -0.000755188288167119, -0.026355955749750137, 0.0278369951993227, 0.01902870461344719, -0.02787490002810955, 0.008952024392783642, -0.021160969510674477, -0.016512444242835045, 0.008976069279015064, 0.0015425273450091481, 0.006956133991479874, 0.0033057238906621933, 0.03235287219285965, 0.06262825429439545, -0.008345483802258968, -0.10109324753284454, 0.02554423175752163, -0.010206456296145916, 0.0135424192994833, -0.0002425601560389623, 0.8289559483528137, -0.042951036244630814, 0.030488571152091026, 0.017113521695137024, -0.012652019038796425, 0.03159256651997566, -0.003035166533663869, 0.001464922446757555, -0.06190036982297897, 0.004359875805675983, -0.025432012975215912, 0.0033810120075941086, -0.0011815151665359735, 0.026104280725121498, 0.041682105511426926, 0.052443504333496094, 0.01050445158034563, 0.006919103674590588, 0.033013492822647095, -0.015297097153961658, 0.02843778394162655, -0.03295796737074852, 0.0011326102539896965, -0.003504202701151371, -0.015263364650309086, 0.011954874731600285, -0.14701338112354279, 0.013614842668175697, -6.494164743227611e-33, 0.029144462198019028, 0.0059503717347979546, -0.008879133500158787, 0.024717440828680992, 0.004623216111212969, -0.003202395047992468, -0.013487699441611767, -0.05740867182612419, -0.050109755247831345, -0.024812845513224602, 0.02546943537890911, 0.01707814633846283, 0.019923517480492592, -0.003217007266357541, 0.006637076381593943, 0.03392590954899788, -0.021238718181848526, 0.0287798922508955, -0.0028868496883660555, 0.03314811736345291, 0.05542243272066116, 0.040882907807826996, 0.027306169271469116, 0.008136182092130184, 0.020837821066379547, -0.03260062262415886, 0.026378748938441277, 0.00027474260423332453, -0.0258231982588768, -0.029877176508307457, -0.05087645724415779, 0.007087999023497105, -0.010859298519790173, -0.07646644860506058, -0.0010035373270511627, -0.061650194227695465, -0.023189706727862358, 0.008059685118496418, -0.03932396322488785, -0.016102252528071404, -0.011309994384646416, -0.008622456341981888, -0.024663222953677177, -0.02079175040125847, -0.052947867661714554, 0.06078867241740227, 0.013671918772161007, 0.045895643532276154, 0.019423995167016983, 0.03745913505554199, 0.012415681034326553, -0.04454027861356735, 0.0260936226695776, 0.034055810421705246, -0.010991329327225685, 0.047323714941740036, -0.010934212245047092, 0.013262232765555382, 0.02632875181734562, -0.010293626226484776, -0.005462441593408585, 0.01522049494087696, 0.013015827164053917, 0.003918988164514303, 0.02370287850499153, -0.030961869284510612, 0.0032538333907723427, 0.0017803021473810077, 0.047642722725868225, -0.03916807845234871, -0.018720507621765137, -0.01677771471440792, -0.04116141051054001, -0.028509467840194702, -0.028787806630134583, -0.04096417874097824, 0.029561489820480347, -0.01203291118144989, -0.0016547804698348045, 0.06424450874328613, 0.011115389876067638, -0.02498539909720421, 0.00757740531116724, -0.022683173418045044, -0.033156052231788635, -0.0011537628015503287, -0.002119278535246849, -0.00101653637830168, -0.019314246252179146, 0.03469694405794144, 0.014742647297680378, 0.016314107924699783, -0.014722909778356552, 0.0084506431594491, -0.03346472978591919, 6.232226398298003e-33, 0.0073783439584076405, -0.04460225999355316, 0.000570370873901993, -0.0016938792541623116, 0.04728369042277336, -0.01854250207543373, 0.0048631466925144196, -0.029794495552778244, -0.033592138439416885, 0.018257396295666695, -0.027627471834421158, -0.03172523155808449, 0.02188980020582676, -0.0033073166850954294, 0.06842425465583801, 0.01035460364073515, -0.02239668369293213, 0.03154652938246727, 0.014538226649165154, -0.002515131141990423, 0.021538248285651207, 0.04380287975072861, -0.00026906467974185944, 0.031517449766397476, -0.012055457569658756, 0.017252882942557335, -0.0005079175462014973, 0.028342776000499725, -0.0003357198729645461, -0.03020073100924492, 0.007968100719153881, -0.023607665672898293, -0.04269189387559891, -0.02223357930779457, -0.03011457435786724, 0.0262641292065382, 0.0017329391557723284, -0.03550870716571808, 0.007099412381649017, 0.009336236864328384, 0.01936596818268299, 0.06466498970985413, 0.0032661224249750376, -0.0009861047146841884, 0.009526324458420277, 0.017850659787654877, -0.00399768678471446, -0.018407052382826805, 0.03187090530991554, -0.014993027783930302, -0.012005660682916641, 0.027074798941612244, 0.03099895641207695, 0.08310117572546005, -0.009010539390146732, -0.011287149041891098, 0.01293925754725933, 0.007009604945778847, -0.015666930004954338, 0.023757636547088623, -0.047712892293930054, -0.0007487437687814236, 0.004151073284447193, -0.008544659242033958, -0.006596803665161133, -0.037711746990680695, -0.03173593431711197, 0.009210084564983845, 0.009205860085785389, -0.01320723257958889, -0.012401988729834557, -0.06605161726474762, 0.018442947417497635, 0.03358162194490433, 0.023643512278795242, 0.030208565294742584, -0.025767425075173378, 0.017449308186769485, -0.024241825565695763, -0.008094009943306446, 0.008022557012736797, -0.020318984985351562, 0.014042241498827934, 0.016726573929190636, 0.02344410866498947, -0.0003437509876675904, 0.03268103301525116, 0.01797756552696228, 0.06228090077638626, -0.004986698739230633, 0.03741201385855675, -0.004352224059402943, 0.024786675348877907, 0.006829214747995138, -0.02744920738041401, -1.2394128390269543e-8, 0.0036144135519862175, 0.025010479614138603, -0.006168836262077093, 0.04094555228948593, 0.020056312903761864, 0.025256259366869926, -0.013628827407956123, -0.016364092007279396, -0.046552181243896484, 0.011393336579203606, 0.04625236615538597, -0.016728805378079414, 0.03264069929718971, 0.002843892201781273, 0.058320071548223495, -0.022019581869244576, -0.03177979961037636, 0.011774579994380474, 0.016754642128944397, -0.029339484870433807, 0.05475005879998207, 0.00035612881765700877, -0.006011204328387976, 0.024564124643802643, 0.004618299659341574, 0.026965932920575142, -0.003387825796380639, -0.07390391826629639, -0.029063960537314415, 0.010160787962377071, -0.001088675344362855, -0.0073946500197052956, -0.03969551995396614, 0.005716593936085701, 0.027358809486031532, 0.006396463140845299, -0.005376605316996574, 0.0032090560998767614, 0.005033513065427542, 0.027093151584267616, -0.031361136585474014, -0.01402760948985815, -0.027842804789543152, -0.02529485896229744, -0.04882952198386192, -0.00232628732919693, -0.029147643595933914, -0.02512832172214985, 0.048041027039289474, 0.00836925022304058, 0.004029603209346533, -0.041707053780555725, -0.019253388047218323, 0.03460698574781418, 0.019850585609674454, -0.003956248052418232, 0.012240177020430565, 0.0011456077918410301, -0.007350240834057331, -0.04046238958835602, 0.027318075299263, 0.007748081814497709, -0.040056221187114716, -0.01711190678179264 ]
scikit-learn-building-multi-class-classification-ensemble
https://markhneedham.com/blog/2017/12/05/scikit-learn-building-multi-class-classification-ensemble
false
2017-12-27 23:28:35
Morning Pages: What should I write about?
[ "journalling", "writing" ]
[ "Software Development" ]
I've been http://juliacameronlive.com/basic-tools/morning-pages/[journalling] for almost 2 years now but some days I get stuck and can't think of anything to write about. I did a bit of searching to see if anybody had advice on solving this problem and found a few different articles: * https://blog.doist.com/benefits-of-journaling-81b663a27608[The Productive Benefits of Journaling (plus 11 ideas for making the habit stick)] * https://medium.com/darius-foroux/read-this-if-you-want-to-keep-a-journal-but-dont-know-how-a3f081d360aa[Read This If You Want To Keep A Journal But Don't Know How] * http://tinybuddha.com/blog/turn-pain-to-joy-11-tips-for-a-powerful-gratitude-journal/[Turn Pain to Joy: 11 Tips for a Powerful Gratitude Journal] * https://greatergood.berkeley.edu/article/item/tips_for_keeping_a_gratitude_journal[Tips for Keeping a Gratitude Journal] * https://www.buzzfeed.com/rachelwmiller/how-to-start-a-bullet-journal?utm_term=.vwdGL53Dp#.swwEzg5kD[WTF Is A Bullet Journal And Why Should You Start One? An Explainer] The articles talk about different approaches to journalling and since I'm not following one particular approach I thought I'd summarise all their ideas and put them in a document that I can use. I've also added some of my own ones. Here's the list: * Something you're grateful for * An unusual event * Goals or hopes * A past event * Things that are stopping you achieving your goals * Values that are important to you * Ideas or nagging thoughts * What did you do yesterday? ** What did you work on? ** Who did you talk to? ** What book did you read? ** What podcasts did you listen to? ** What TV shows/movies did you watch? ** Where did you go? * What are you doing today? * What scares you? * Decisions you need to make/made - small or big If you have any other ideas of what I can write about let me know in the comments. While researching for this post I noticed that Julia Cameron, the inventor of Morning Pages, has a new book out - https://www.amazon.co.uk/gp/product/B073QXSCWC/ref=oh_aui_d_detailpage_o00_?ie=UTF8&psc=1[The Right to Write: An Invitation and Initiation into the Writing Life] - so I'm hoping to get some ideas from there as well.
null
null
[ 0.010964781977236271, -0.00698887137696147, -0.0010048297699540854, 0.011970069259405136, 0.06537958234548569, 0.017798438668251038, 0.041249021887779236, 0.03825225681066513, -0.005421039182692766, -0.006202999968081713, -0.0010629993630573153, 0.0033078345004469156, -0.03403255715966225, -0.002327393274754286, -0.03795624524354935, 0.05972126126289368, 0.07777302712202072, 0.024537820369005203, 0.034577321261167526, -0.020135238766670227, 0.047780007123947144, 0.06572160869836807, 0.021109208464622498, 0.03009054623544216, 0.0771009624004364, 0.004061794839799404, 0.013833707198500633, 0.004209652543067932, -0.042918771505355835, -0.023709403350949287, 0.028375444933772087, 0.001373496139422059, 0.017590077593922615, 0.015748415142297745, 0.05841045826673508, -0.01695033721625805, -0.0014599161222577095, 0.0018793900962918997, 0.017276812344789505, -0.0028040101751685143, -0.08632627874612808, 0.005950176157057285, -0.0341184101998806, 0.0006566850352101028, -0.031877320259809494, 0.012078032828867435, -0.030559364706277847, -0.001672018668614328, 0.00496990792453289, -0.03139208257198334, -0.038922447711229324, 0.07674235105514526, 0.04563544690608978, 0.01786522939801216, -0.010201280005276203, 0.07300626486539841, 0.03476714715361595, -0.051584649831056595, 0.015561951324343681, -0.037047021090984344, -0.01229199767112732, 0.004926634486764669, -0.03660992532968521, 0.04776493087410927, 0.010701523162424564, -0.027376066893339157, -0.002610288793221116, 0.030235951766371727, -0.01268263440579176, 0.007387407124042511, -0.03428212180733681, 0.013036968186497688, 0.012839973904192448, 0.01144828274846077, -0.013587506487965584, -0.030634969472885132, 0.014988798648118973, 0.03636026382446289, 0.012002089992165565, 0.04326871782541275, -0.021668724715709686, 0.026307493448257446, -0.0002328840346308425, 0.04235803335905075, -0.028339186683297157, -0.03864727169275284, 0.00962982326745987, -0.023966390639543533, -0.0544990599155426, 0.04007834941148758, -0.028181908652186394, -0.05964504927396774, 0.0035262631718069315, 0.04754102975130081, -0.0061465175822377205, -0.02550334669649601, 0.033441681414842606, 0.009852300398051739, -0.018764536827802658, -0.010692758485674858, -0.014649405144155025, -0.0358201265335083, 0.021754685789346695, 0.04633322358131409, -0.07354938983917236, -0.019716504961252213, -0.008098870515823364, -0.03181225433945656, 0.006673155352473259, 0.010772296227514744, -0.025991735979914665, 0.013225208967924118, -0.04590988904237747, 0.0029160885605961084, -0.058091163635253906, 0.05223099887371063, 0.03100028820335865, -0.03687887266278267, -0.035045310854911804, -0.006167455576360226, 0.02595485933125019, 0.015753110870718956, 0.00747039495036006, 0.05036254599690437, -0.0038741431199014187, 0.00465108547359705, -0.03130947798490524, 0.04366831108927727, -0.032029882073402405, -0.05546022951602936, -0.01320831198245287, 0.049200478941202164, -0.026925329118967056, -0.03250803425908089, 0.019664853811264038, -0.035644520074129105, 0.0010100520448759198, 0.002603129018098116, 0.048604220151901245, 0.07637278735637665, 0.005315866321325302, -0.031531982123851776, 0.0025124314706772566, 0.009142979979515076, 0.021285710856318474, -0.013944733887910843, -0.008429269306361675, -0.02851019613444805, -0.06184830889105797, -0.037861015647649765, 0.011115686036646366, 0.005716869607567787, 0.0429629310965538, -0.03916911780834198, -0.01175968162715435, 0.040955252945423126, -0.009623333811759949, 0.034531574696302414, -0.012172688730061054, 0.04010009765625, 0.016159961000084877, 0.044493839144706726, 0.014002739451825619, 0.04035808518528938, 0.01375665981322527, -0.011342409066855907, 0.017908034846186638, 0.0647674947977066, -0.015052164904773235, -0.0010835586581379175, -0.05806710198521614, -0.026590345427393913, 0.04030098021030426, -0.05103622376918793, -0.04250353202223778, 0.04556526243686676, 0.10070129483938217, 0.03046390414237976, 0.019551346078515053, 0.010398921556770802, -0.07373321056365967, 0.04756183922290802, -0.002070794114843011, 0.03180594742298126, 0.0006790735060349107, -0.023480338975787163, 0.04229801520705223, 0.04977104440331459, -0.007197136990725994, 0.05142206326127052, -0.06896132975816727, -0.06061650812625885, -0.006583887618035078, -0.002393051516264677, 0.03330785781145096, -0.07673567533493042, 0.030064532533288002, 0.10887384414672852, -0.005877706687897444, 0.027891043573617935, -0.025322360917925835, -0.0034328734036535025, -0.004988928325474262, -0.03206512704491615, -0.0346965417265892, 0.06775380671024323, 0.04065622016787529, 0.006676537450402975, -0.021807212382555008, -0.005537334829568863, -0.00017783026851247996, 0.01210192870348692, 0.044445037841796875, 0.003187890164554119, 0.015339655801653862, 0.006437946576625109, 0.0667560026049614, -0.01805773749947548, 0.049566738307476044, -0.015706565231084824, 0.009904435835778713, 0.0012098709121346474, -0.0077053699642419815, 0.014050244353711605, 0.014201472513377666, 0.10194584727287292, 0.03831595927476883, -0.03460046276450157, -0.0593760646879673, 0.03218608722090721, 0.004922199063003063, -0.030338101089000702, -0.0066772084683179855, 0.01106436550617218, -0.0016566795529797673, 0.023052388802170753, -0.026823770254850388, -0.019912049174308777, 0.021051036193966866, -0.052696630358695984, 0.0053609805181622505, 0.05734098702669144, 0.026988845318555832, 0.07939217984676361, -0.026460763067007065, 0.0035860207863152027, -0.030562611296772957, 0.026569070294499397, -0.04842592403292656, -0.006482258439064026, 0.0019375678384676576, -0.011064079590141773, 0.02449665777385235, -0.014312311075627804, -0.02988159842789173, -0.026186497882008553, -0.0422808974981308, 0.047082096338272095, 0.07650181651115417, 0.0791848748922348, -0.01806035079061985, 0.053642354905605316, 0.01182699203491211, 0.030219458043575287, 0.0037327073514461517, -0.020484067499637604, -0.03686073422431946, -0.05988733097910881, 0.0186780858784914, 0.02160927839577198, 0.01905057206749916, 0.019522804766893387, 0.029426787048578262, 0.0325058177113533, -0.01782156713306904, -0.004869887605309486, 0.044860757887363434, 0.02525791898369789, -0.021715329959988594, -0.02058085985481739, -0.034585289657115936, 0.07177456468343735, -0.03593602776527405, -0.012239137664437294, 0.0018874997040256858, -0.07876532524824142, 0.036367449909448624, -0.02585558220744133, -0.04715672507882118, -0.0027510705403983593, 0.0057638841681182384, 0.03968285024166107, 0.04933173209428787, 0.011693865060806274, 0.06452520936727524, 0.024247871711850166, 0.01954614743590355, -0.014381766319274902, -0.006789881736040115, 0.06148511543869972, 0.0024448258336633444, -0.05553964525461197, 0.07941268384456635, -0.020887793973088264, 0.01275099441409111, -0.03613322228193283, 0.043365053832530975, -0.043673280626535416, -0.2622751295566559, 0.03645207732915878, 0.009806901216506958, -0.06640679389238358, 0.020029641687870026, -0.02546324022114277, 0.010135890915989876, -0.06415455043315887, -0.04135602340102196, 0.028780924156308174, -0.034315645694732666, -0.03100001998245716, -0.04758106544613838, 0.028977690264582634, 0.007412746082991362, 0.024027831852436066, 0.013086874037981033, -0.02166171744465828, 0.014154069125652313, 0.057711467146873474, -0.007757530547678471, -0.04823317751288414, -0.03238152712583542, 0.051136452704668045, 0.052582331001758575, 0.04982655122876167, -0.0627037063241005, 0.046141862869262695, -0.05637709051370621, 0.007427912671118975, -0.012777308002114296, -0.006149946246296167, 0.008335478603839874, -0.02025434374809265, 0.013986572623252869, -0.024129845201969147, 0.04319239407777786, -0.006920733954757452, 0.012323722243309021, 0.010690197348594666, -0.010122471489012241, -0.05024587735533714, 0.0029235780239105225, 0.04229716584086418, 0.04952241852879524, 0.015355736948549747, -0.05215198174118996, -0.01946233958005905, -0.04795064777135849, 0.08182216435670853, -0.020238446071743965, -0.06608983874320984, -0.03280729427933693, 0.0071287755854427814, -0.007357520516961813, -0.009831912815570831, -0.0230716560035944, -0.05722861737012863, -0.060443710535764694, -0.067334845662117, -0.0356125682592392, -0.009538558311760426, -0.015468506142497063, -0.0760141909122467, -0.012806241400539875, -0.0752405971288681, -0.05537102371454239, 0.0012020751601085067, 0.060857877135276794, 0.03853215277194977, -0.02115941233932972, -0.0015390417538583279, -0.028561299666762352, -0.10837917029857635, -0.02327469177544117, -0.0035179012920707464, -0.03785701468586922, 0.022434115409851074, -0.01174003817141056, 0.047957535833120346, -0.027431754395365715, -0.03765873983502388, 0.05245304852724075, 0.01813841611146927, 0.04044239595532417, -0.031981050968170166, 0.04427358880639076, 0.014300020411610603, -0.04268660023808479, 0.018011614680290222, 0.06543765217065811, 0.0008884822018444538, -0.026660509407520294, -0.013665474951267242, 0.01621789112687111, 0.036092761904001236, 0.014359845779836178, -0.042952194809913635, 0.024749966338276863, 0.008009728975594044, 0.028732873499393463, -0.03111453168094158, 0.02286166325211525, -0.021469974890351295, -0.009542612358927727, -0.013723531737923622, -0.05734993517398834, 0.026205051690340042, 0.034627802670001984, -0.019449181854724884, -0.030765192583203316, -0.008873609825968742, 0.033851005136966705, -0.05025269836187363, -0.03261759132146835, -0.021034957841038704, 0.027171144261956215, 0.047997862100601196, -0.010071535594761372, -0.00009568562381900847, -0.056354839354753494, 0.002206444274634123, -0.021589292213320732, -0.04369624704122543, -0.03545744717121124, 0.013398229144513607, -0.018310150131583214, -0.04715308919548988, -0.004676818381994963, 0.05448470264673233, -0.019044162705540657, -0.04110754281282425, 0.022790271788835526, -0.038339290767908096, 0.012901287525892258, -0.05329897627234459, -0.06556564569473267, -0.033442217856645584, -0.015818091109395027, -0.023439055308699608, 0.003574337810277939, 0.0009291365277022123, -0.03967581316828728, 0.009051279164850712, 0.0657908245921135, 0.01731289178133011, 0.000012303937182878144, -0.017265629023313522, 0.0007860574987716973, 0.05750228464603424, -0.003384167095646262, -0.044654883444309235, -0.0020075642969459295, -0.023649251088500023, -0.026151714846491814, 0.025819096714258194, 0.03620235621929169, -0.006940025370568037, -0.012997608631849289, -0.010688161477446556, 0.0038088359870016575, -0.07502610981464386, -0.03233884647488594, -0.019143322482705116, 0.003768929047510028, 0.0497291162610054, -0.015380765311419964, 0.024741848930716515, 0.007000871002674103, 0.00675585400313139, 0.018704360350966454, 0.002688946668058634, -0.01575317047536373, 0.04557596892118454, -0.0006757274968549609, 0.003794922726228833, 0.025271261110901833, 0.004673575051128864, 0.052754320204257965, -0.018007991835474968, 0.004449589643627405, -0.034761786460876465, 0.01045942958444357, -0.0053845057263970375, 0.040452420711517334, 0.03555382415652275, 0.016567567363381386, -0.014691554009914398, -0.04648890346288681, -0.002086300402879715, -0.0328996479511261, -0.010755966417491436, -0.009738671593368053, -0.008736061863601208, -0.034451548010110855, -0.07289783656597137, 0.06218927353620529, 0.017109662294387817, -0.00285589718259871, 0.05476526916027069, -0.010879789479076862, -0.019730934873223305, -0.04197511821985245, 0.04994465783238411, 0.06625738739967346, -0.06599155813455582, -0.007858848199248314, -0.0047247507609426975, -0.004195366054773331, 0.01660439930856228, -0.00446777930483222, -0.029865657910704613, 0.0053780535236001015, -0.03099994547665119, 0.037276849150657654, -0.04498903453350067, -0.021994981914758682, -0.04238572344183922, 0.0509786456823349, 0.0015883835731074214, 0.029072420671582222, -0.009621355682611465, -0.014822268858551979, -0.017676617950201035, -0.026548853144049644, 0.02294584922492504, -0.05506417527794838, -0.009245110675692558, 0.021111678332090378, -0.048041101545095444, 0.01858874410390854, -0.036438941955566406, 0.02604142762720585, 0.016356388106942177, -0.05687497928738594, -0.02207101881504059, -0.021356098353862762, 0.009130402468144894, 0.0018447424517944455, 0.07609191536903381, -0.005160091444849968, -0.03427313640713692, -0.05261288210749626, -0.010466000065207481, -0.0446101576089859, 0.029179375618696213, -0.044297438114881516, 0.0017535544466227293, 0.026340937241911888, 0.0601859986782074, 0.00799317006021738, 0.018514230847358704, 0.0003491779789328575, -0.038717854768037796, 0.04204225540161133, -0.06836611032485962, -0.045526228845119476, -0.014273318462073803, -0.05064418166875839, 0.011484659276902676, 0.02948051691055298, 0.006269282661378384, -0.04943269118666649, 0.036558810621500015, 0.01852615736424923, 0.04192936047911644, 0.033519402146339417, 0.013790459372103214, 0.0006693899631500244, -0.00813546497374773, -0.0017665985506027937, -0.06723535060882568, -0.028170330449938774, -0.0013933662557974458, -0.017450638115406036, 0.00044475935283116996, -0.007154897321015596, -0.035729244351387024, 0.049338437616825104, -0.08735034614801407, -0.01357202511280775, 0.033828992396593094, -0.020066961646080017, 0.015612300485372543, 0.03575786203145981, -0.06820026785135269, 0.001771045965142548, 0.01491288747638464, -0.04175732657313347, 0.0031116327736526728, -0.006090948823839426, 0.04904533177614212, -0.004955529700964689, 0.004436377435922623, -0.024609994143247604, 0.008947408758103848, 0.07487427443265915, 0.0065920669585466385, -0.012076175771653652, 0.03216519206762314, -0.005679486785084009, 0.04845833778381348, 0.043806709349155426, 0.029015924781560898, -0.017364589497447014, -0.012461255304515362, -0.02215302735567093, -0.05204306170344353, 0.01528151985257864, 0.010019971989095211, -0.02782098762691021, -0.005587393883615732, 0.06454826891422272, -0.0014793151058256626, -0.024726927280426025, -0.06350137293338776, 0.017688320949673653, -0.04989857226610184, -0.028803933411836624, -0.008183702826499939, -0.002614102093502879, -0.05838635936379433, 0.03098124824464321, 0.004154908005148172, 0.0014918181113898754, 0.05517856404185295, -0.03378855809569359, -0.00014648470096290112, -0.026972688734531403, 0.10342159867286682, 0.077036552131176, 0.051884595304727554, 0.004852088168263435, 0.07348162680864334, -0.024407871067523956, -0.033130794763565063, 0.015032567083835602, -0.03328757733106613, -0.01707056723535061, -0.029494043439626694, 0.03281024098396301, 0.034589894115924835, -0.00479261577129364, 0.057509616017341614, -0.013002685271203518, -0.03696056082844734, 0.011656580492854118, 0.03269879147410393, 0.01612056978046894, 0.027664292603731155, 0.01554824411869049, 0.031326137483119965, -0.030317585915327072, -0.049375880509614944, 0.048776522278785706, -0.02689368650317192, -0.0034691288601607084, 0.024053815752267838, -0.03115260601043701, 0.022939415648579597, -0.007421927526593208, 0.012288526631891727, 0.04935764893889427, -0.03337090462446213, 0.04042256996035576, -0.030004704371094704, 0.018942374736070633, -0.005685775075107813, 0.005447107367217541, -0.01218636054545641, -0.003673039609566331, 0.010722444392740726, -0.021132493391633034, -0.014698049053549767, -0.0346955768764019, -0.02151593379676342, 0.003419224638491869, -0.041820425540208817, 0.023233449086546898, 0.03162789344787598, 0.01531580276787281, -0.05637357756495476, -0.0570310540497303, -0.022427469491958618, -0.03475416079163551, -0.04695983976125717, 0.007993020117282867, 0.0009358077077195048, 0.005630784202367067, -0.04873604699969292, 0.003825416322797537, -0.004935274366289377, -0.04023579880595207, 0.02691509947180748, -0.03412961587309837, -0.014269016683101654, 0.01316933985799551, 0.02129647135734558, 0.02585168369114399, 0.004642512183636427, 0.04030685871839523, 0.010560346767306328, -0.006908021401613951, 0.010711186565458775, -0.007741402834653854, 0.03238563984632492, 0.0013275656383484602, 0.014644629321992397, -0.08305072784423828, 0.020517921075224876, 0.03764176741242409, -0.013828251510858536, -0.07269944250583649, 0.018062083050608635, 0.06219523400068283, -0.0005075793596915901, 0.05158457159996033, -0.0078076571226119995, 0.004494660999625921, -0.06055181473493576, 0.006617776118218899, 0.01900194026529789, 0.008323443122208118, 0.0401371605694294, -0.014894030056893826, 0.07096674293279648, -0.007251350209116936, -0.030990412458777428, -0.038036346435546875, -0.036310866475105286, -0.0028456884901970625, -0.004518740810453892, -0.0203484445810318, -0.0043194652535021305, -0.020398283377289772, -0.05883365124464035, -0.04636148735880852, 0.04097551479935646, -0.0015048282220959663, -0.024366745725274086, 0.05907499045133591, 0.016615645959973335, -0.04848553240299225, 0.05158441513776779, -0.037313710898160934, 0.019733240827918053, -0.015434065833687782, -0.032188717275857925, -0.0037605382967740297, 0.006900377571582794, 0.007399289403110743, -0.004362988285720348, 0.0018143054330721498, -0.04978802427649498, 0.0029655254911631346, -0.00836880225688219, 0.005115787498652935, 0.0576900988817215, -0.0005122220027260482, -0.02737812139093876 ]
[ -0.09684755653142929, -0.0018331129103899002, 0.010495180264115334, 0.011879478581249714, -0.014140681363642216, 0.001972330268472433, 0.005033654160797596, 0.021337736397981644, -0.00287722353823483, -0.025192491710186005, 0.021103763952851295, -0.02103075012564659, -0.0032696076668798923, 0.006654747761785984, 0.07234537601470947, 0.026017433032393456, -0.005479459650814533, -0.07518158107995987, -0.036876801401376724, 0.07114556431770325, -0.010240375995635986, -0.015873495489358902, -0.02757015824317932, 0.02288462594151497, 0.03565988689661026, 0.01721745729446411, 0.06730415672063828, -0.043854888528585434, -0.02599893882870674, -0.12924893200397491, -0.017166661098599434, 0.009710430167615414, 0.02990487404167652, -0.011841745115816593, -0.0035480447113513947, 0.09660839289426804, -0.002992786467075348, 0.04058206453919411, 0.007500260137021542, 0.025706395506858826, 0.036040425300598145, 0.0037163326051086187, -0.03590015694499016, -0.0035774563439190388, 0.07029296457767487, -0.010777400806546211, 0.03164926543831825, -0.032256752252578735, 0.06203097850084305, -0.004164291545748711, -0.08215950429439545, -0.002546189120039344, -0.004216455388814211, 0.002290611155331135, -0.007513141259551048, 0.02465357445180416, 0.026359112933278084, 0.034086305648088455, -0.0038600030820816755, 0.03957907482981682, 0.020430492237210274, 0.002309190109372139, -0.13467957079410553, 0.1291070431470871, -0.030122259631752968, 0.0003367338504176587, -0.030216196551918983, 0.03987691178917885, 0.006119782105088234, 0.08724256604909897, 0.016873501241207123, -0.013048128224909306, -0.020617417991161346, 0.05677539482712746, 0.04454554617404938, -0.02106926590204239, 0.04056732356548309, 0.022480696439743042, 0.016341177746653557, -0.02378949336707592, -0.0320870615541935, 0.027648096904158592, -0.0026840618811547756, -0.031573183834552765, -0.040366750210523605, 0.01775030791759491, -0.011708496138453484, -0.006408357527107, 0.0015884262975305319, -0.0025377837009727955, 0.028172794729471207, -0.01234538946300745, -0.002826119540259242, 0.009295444004237652, -0.11963529139757156, -0.08282626420259476, -0.01483596209436655, 0.03145799785852432, -0.033964186906814575, 0.43089520931243896, -0.028986195102334023, 0.033135298639535904, 0.10010236501693726, -0.008899335749447346, 0.0002965867752209306, -0.032737720757722855, 0.028287403285503387, -0.07374303787946701, -0.009443109855055809, -0.004588530398905277, 0.004165377933532, 0.01604815572500229, 0.061237793415784836, -0.03789914399385452, 0.02034892700612545, 0.025933271273970604, 0.05979760363698006, 0.017786724492907524, -0.01045241579413414, -0.012553773820400238, -0.04320947080850601, -0.00029798035393469036, 0.027789127081632614, -0.012434391304850578, -0.03092271275818348, -0.061818964779376984, 0.018306050449609756, 0.031837958842515945, 0.027514049783349037, -0.026497947052121162, 0.0592619813978672, -0.014132210053503513, -0.03785921633243561, -0.009190725162625313, -0.008387996815145016, -0.007496073842048645, 0.03266623988747597, -0.08060278743505478, 0.07341109961271286, -0.008347498252987862, 0.032416775822639465, -0.016425518319010735, 0.01887582242488861, -0.03980451077222824, -0.02467731200158596, 0.1296682357788086, 0.039446473121643066, -0.047578759491443634, 0.013739018701016903, -0.014973158948123455, -0.011667792685329914, 0.003527201944962144, 0.0021440861746668816, -0.04225995019078255, 0.06234467029571533, 0.010918201878666878, 0.09703361988067627, -0.023167166858911514, -0.054161299020051956, -0.012153169140219688, 0.011748459190130234, -0.023500625044107437, -0.048412881791591644, 0.018666768446564674, 0.05449006333947182, -0.07690532505512238, -0.02789335325360298, -0.008043702691793442, -0.017803018912672997, -0.07993993908166885, 0.03591826558113098, -0.012315398082137108, -0.045830465853214264, 0.029041215777397156, 0.08052994310855865, -0.009824219159781933, 0.008092827163636684, 0.0058967857621610165, 0.0318228080868721, 0.0021542804315686226, 0.001892682514153421, 0.006553472951054573, -0.014206863939762115, 0.013429985381662846, -0.055808041244745255, -0.07518988102674484, -0.00602435227483511, -0.028275704011321068, 0.009471121244132519, -0.01942983828485012, -0.0030465887393802404, -0.06908352673053741, -0.05561382323503494, 0.09158158302307129, -0.05541592091321945, -0.022357601672410965, -0.02272074483335018, -0.010431073606014252, -0.043115898966789246, -0.037126362323760986, -0.024592220783233643, -0.02472471445798874, -0.02467096596956253, 0.023516973480582237, 0.00577256316319108, 0.02011197991669178, 0.06558304280042648, -0.035010192543268204, 0.10798802971839905, 0.04249177873134613, -0.04416052624583244, 0.0025633086916059256, 0.019686007872223854, -0.017874518409371376, 0.0048697893507778645, -0.0022260432597249746, -0.02275068871676922, -0.0066847302950918674, 0.009571857750415802, 0.039476048201322556, 0.02442741021513939, -0.0756450667977333, -0.05725143849849701, -0.2929736077785492, -0.032221756875514984, -0.017861872911453247, 0.007035593967884779, 0.031561229377985, -0.05603392794728279, 0.03283078595995903, 0.0020196083933115005, -0.019495628774166107, -0.00011338109470671043, 0.06651442497968674, -0.05982404947280884, -0.002034943550825119, -0.08602005243301392, 0.021335331723093987, -0.008542044088244438, 0.0028034381102770567, -0.029572276398539543, 0.02419266477227211, -0.003429275006055832, 0.015049890615046024, -0.031140489503741264, -0.012863017618656158, -0.040615055710077286, -0.006970963906496763, -0.019664160907268524, 0.06343474239110947, 0.07419360429048538, 0.02077965997159481, -0.031566351652145386, 0.019283555448055267, 0.011972799897193909, 0.047501057386398315, -0.15091712772846222, 0.007893038913607597, -0.028139585629105568, -0.00010589777957648039, -0.06335198134183884, 0.002872098470106721, -0.04919975623488426, -0.07416725158691406, 0.03655151650309563, -0.06309184432029724, -0.028510713949799538, -0.10705967247486115, 0.00357001437805593, -0.00045782484812662005, -0.02691863290965557, -0.01901734061539173, 0.04726475849747658, 0.01872560754418373, -0.023915216326713562, -0.009257866069674492, -0.01195242628455162, -0.003006433369591832, 0.012954515404999256, -0.10337928682565689, -0.02242252044379711, -0.012692442163825035, -0.02947225794196129, 0.006906838156282902, 0.07466903328895569, 0.06604988127946854, -0.03058554418385029, 0.013906755484640598, 0.01946658082306385, -0.010261938907206059, 0.017148897051811218, 0.05442811921238899, -0.026258468627929688, -0.011652393266558647, 0.06386616826057434, -0.021994832903146744, 0.007782250177115202, 0.05156427249312401, 0.02925417572259903, -0.049446552991867065, 0.03166409581899643, 0.021059690043330193, -0.01464073546230793, -0.008450187742710114, -0.07686228305101395, 0.028851214796304703, -0.028246140107512474, -0.03491181880235672, 0.04646408185362816, -0.02716347947716713, -0.08688253164291382, 0.08318184316158295, 0.022442104294896126, -0.008350232616066933, 0.016348974779248238, -0.011622591875493526, -0.06171970069408417, 0.08089442551136017, -0.007048985920846462, -0.22251851856708527, 0.038987644016742706, 0.06789693981409073, 0.06796359270811081, 0.006045878399163485, 0.03597191721200943, -0.0010709509951993823, 0.0004776454879902303, 0.0031493762508034706, 0.056373562663793564, 0.06697786599397659, 0.04505164176225662, -0.01214588899165392, -0.0007293336093425751, 0.01083169411867857, -0.016431385651230812, 0.0009584535728208721, 0.020282931625843048, 0.018717223778367043, -0.011047261767089367, 0.014754431322216988, 0.0004101345839444548, 0.129089817404747, 0.03690575063228607, -0.004762540105730295, 0.0011319306213408709, 0.03146577253937721, 0.0025500901974737644, 0.0346812941133976, -0.02245318330824375, 0.0030128411017358303, -0.019062666222453117, -0.0022386088967323303, 0.033638544380664825, 0.05287406966090202, -0.1200714036822319, -0.040961578488349915, 0.06259502470493317, 0.028342511504888535, -0.0004327322239987552, 0.03844987601041794, 0.032276302576065063, -0.027299653738737106, 0.03309515118598938, 0.08639068156480789, -0.027292542159557343, -0.017703140154480934, -0.013901486061513424, -0.09980428218841553, -0.018092898651957512, -0.0022611841559410095, -0.025754429399967194, 0.006285946350544691, 0.015347810462117195, 0.01578637585043907, 0.07313273102045059, 0.02686464600265026, -0.0494312159717083, 0.04297079145908356, 0.013782009482383728, -0.034865230321884155, 0.0010763236787170172, 0.09922845661640167, 0.0329434871673584, 0.01385676022619009 ]
[ 0.018171438947319984, 0.009741143323481083, 0.004690554458647966, 0.02676730416715145, -0.0008849492878653109, -0.008261783979833126, 0.027600383386015892, -0.014132997021079063, -0.0038038366474211216, -0.013174579478800297, -0.020615968853235245, 0.02931632474064827, -0.023665616288781166, 0.016828076913952827, 0.027880040928721428, -0.060070402920246124, 0.02288486808538437, -0.021533694118261337, 0.01847827062010765, 0.07164070755243301, -0.011234560050070286, 0.030315663665533066, 0.03367061913013458, 0.03026525117456913, -0.007350635249167681, -0.004444377962499857, -0.03282196819782257, -0.044542428106069565, 0.01853320747613907, -0.1514945924282074, 0.005830839276313782, -0.03661247342824936, -0.020407674834132195, 0.0025819807779043913, 0.03019140288233757, -0.025023993104696274, 0.0030054219532757998, 0.032405443489551544, -0.008960770443081856, -0.00854557380080223, -0.012527071870863438, -0.0406046099960804, 0.0069176554679870605, 0.002983212936669588, -0.006472294218838215, -0.02659953385591507, -0.024210534989833832, -0.005278042983263731, -0.007075222674757242, 0.03424808010458946, -0.04453057795763016, -0.032948583364486694, -0.05179659649729729, -0.01269245520234108, 0.013364303857088089, 0.004601787775754929, 0.007701860275119543, -0.01637243665754795, 0.02158145047724247, -0.011877906508743763, 0.015962153673171997, -0.006360169965773821, -0.04884582757949829, -0.0015720796072855592, -0.018743209540843964, -0.038820356130599976, -0.00011704795906553045, -0.014058631844818592, -0.046800509095191956, 0.011910117231309414, -0.020550435408949852, 0.013063493184745312, -0.0016035634325817227, -0.025151751935482025, 0.03255848214030266, 0.01602982170879841, 0.007855175994336605, -0.001031885389238596, -0.010766597464680672, 0.005844643339514732, -0.020893193781375885, 0.031130537390708923, 0.029103679582476616, 0.04533178359270096, 0.0016885545337572694, -0.03567441552877426, 0.021161649376153946, 0.015190387144684792, 0.03226194158196449, -0.005562970414757729, -0.04224219545722008, 0.04291278496384621, 0.009180163033306599, -0.000027869511541211978, -0.1044757291674614, -0.02662745863199234, -0.0415850467979908, 0.027878224849700928, -0.020562609657645226, 0.8203265070915222, 0.03360594063997269, 0.011607496999204159, 0.03598373383283615, 0.017988933250308037, 0.024523045867681503, -0.022774847224354744, -0.020079046487808228, -0.02140340954065323, -0.0038373819552361965, -0.03837310150265694, 0.027085212990641594, 0.05871335044503212, 0.030104314908385277, -0.007878819480538368, 0.08236885815858841, 0.06075853481888771, 0.03380662947893143, 0.003487630980089307, -0.017532192170619965, 0.01765933446586132, 0.026711557060480118, 0.0053991638123989105, 0.0008678135345689952, 0.0005302948993630707, -0.03100251778960228, -0.135480597615242, 0.002110638888552785, -7.132446420780605e-33, 0.06015370413661003, 0.002834375249221921, -0.010314038954675198, 0.023834548890590668, -0.004904699977487326, 0.02193981595337391, -0.013326264917850494, -0.006305701099336147, -0.021707886829972267, -0.018929706886410713, 0.032912444323301315, 0.019648944959044456, 0.0013310725335031748, 0.01895255781710148, 0.04739617556333542, 0.005308843683451414, -0.0002688661916181445, 0.030601000413298607, 0.0021829602774232626, 0.009761354885995388, 0.0427287332713604, 0.014187600463628769, -0.004063613712787628, 0.026800038293004036, 0.02746792882680893, 0.045455630868673325, 0.012788071297109127, 0.010599496774375439, -0.03031720221042633, -0.046462129801511765, -0.02440705895423889, -0.04622409865260124, -0.007811598014086485, -0.06107700616121292, -0.0071334559470415115, -0.02480306290090084, -0.01302595529705286, 0.017668310552835464, -0.033828407526016235, -0.07887156307697296, -0.051580093801021576, 0.007169462740421295, -0.05492357164621353, -0.029770350083708763, -0.0014914829516783357, 0.03520100563764572, 0.0026220688596367836, 0.017689652740955353, 0.013994201086461544, -0.011420296505093575, 0.0070592742413282394, -0.02417120896279812, -0.02767338976264, -0.014058958739042282, -0.005746238864958286, 0.026403460651636124, 0.012386877089738846, 0.0030226465314626694, 0.000941984064411372, -0.010559138841927052, 0.0270305834710598, 0.002333250129595399, 0.020435752347111702, 0.03141232207417488, -0.009941413067281246, 0.04042166844010353, 0.01031352300196886, -0.0006941261817701161, 0.014685416594147682, 0.005253038369119167, -0.054970599710941315, -0.021175645291805267, 0.027438638731837273, -0.033250659704208374, 0.018725035712122917, 0.0045487163588404655, -0.03439464792609215, -0.04555496945977211, 0.005939849652349949, 0.03051556646823883, -0.004282437730580568, -0.005630496423691511, -0.02699686959385872, -0.028735902160406113, -0.0013376435963436961, -0.05871466174721718, 0.023142749443650246, -0.023918516933918, -0.05134623125195503, -0.03264592960476875, 0.037372980266809464, 0.058006227016448975, 0.037060465663671494, 0.004766350612044334, -0.026202458888292313, 6.914069692440564e-33, 0.028960175812244415, -0.030293185263872147, 0.017038816586136818, -0.024135012179613113, 0.01981162093579769, -0.014434284530580044, 0.004804358817636967, 0.05012961104512215, -0.04611674323678017, 0.026451177895069122, -0.0019756669644266367, -0.039801549166440964, -0.04844918102025986, 0.03865024819970131, 0.043252132833004, -0.017209473997354507, 0.02378184348344803, -0.006978520657867193, 0.004958119709044695, 0.007084599230438471, 0.00027788436273112893, 0.03138333186507225, 0.004559818189591169, 0.021821998059749603, 0.04961433261632919, 0.06390935182571411, -0.007963467389345169, 0.008265355601906776, -0.004727594088762999, -0.00996458437293768, -0.0071712457574903965, -0.009057916700839996, 0.023657428100705147, -0.00729706697165966, -0.011705486103892326, 0.013461870141327381, -0.009379168041050434, -0.01973308064043522, 0.010798857547342777, -0.02774956449866295, -0.004343112464994192, 0.022110655903816223, 0.01958388090133667, -0.000023968714231159538, -0.016474783420562744, 0.002098829485476017, 0.015438616275787354, 0.016885342076420784, -0.0009535014978609979, 0.012039635330438614, -0.004209139849990606, -0.041297122836112976, 0.0034440967720001936, 0.02641165629029274, -0.024476690217852592, -0.0009633666486479342, -0.031819213181734085, 0.011004827916622162, -0.02446167543530464, 0.009651606902480125, -0.023218197748064995, 0.048897966742515564, -0.00984230451285839, -0.004296537488698959, -0.024475477635860443, -0.03424271568655968, -0.03716191649436951, -0.0010792157845571637, -0.029526865109801292, 0.017035089433193207, -0.009087187238037586, 0.018717629835009575, 0.026499442756175995, 0.0509946383535862, 0.04937047138810158, 0.007819053716957569, -0.03316154703497887, -0.022840313613414764, -0.05907275155186653, 0.019677184522151947, -0.0031862787436693907, 0.017772002145648003, 0.0018120643217116594, 0.01541928667575121, -0.020047012716531754, -0.00950359646230936, -0.018198613077402115, -0.014445140957832336, 0.013142330572009087, -0.010561983101069927, 0.01987558789551258, -0.03376475349068642, 0.02232974022626877, 0.029163893312215805, -0.04464094340801239, -1.2782607861083761e-8, -0.03638063743710518, -0.007314715068787336, -0.024027617648243904, 0.011371267959475517, -0.006752713117748499, 0.014585018157958984, 0.003523376537486911, -0.008174403570592403, -0.018944023177027702, 0.03505145013332367, 0.0549938790500164, -0.0035983703564852476, 0.001686285249888897, 0.015139260329306126, 0.009153817780315876, -0.06331513822078705, 0.0063288332894444466, -0.02252018451690674, 0.02652318961918354, -0.022066667675971985, 0.06976338475942612, 0.02446611598134041, 0.0177127905189991, -0.007837613113224506, 0.008209696039557457, -0.008397855795919895, -0.011597644537687302, -0.10071159154176712, 0.005729795433580875, 0.008495590649545193, 0.0014468565350398421, -0.026459520682692528, -0.0011549870250746608, 0.03367892652750015, -0.029981987550854683, -0.0326332151889801, 0.04798928275704384, 0.006507124286144972, -0.02380336821079254, -0.006479308474808931, -0.0011948245810344815, -0.043970510363578796, 0.018265457823872566, -0.029657213017344475, -0.03707181662321091, -0.01218822505325079, -0.03205883875489235, -0.02815694734454155, 0.03455759212374687, 0.01363589707762003, 0.016114959493279457, -0.00560854421928525, 0.04190796986222267, -0.00013287215551827103, 0.003923309035599232, 0.005370600149035454, 0.004857222083956003, 0.01714809238910675, -0.026759644970297813, -0.009407714009284973, 0.023167314007878304, 0.016537340357899666, 0.025816457346081734, -0.03235533833503723 ]
morning-pages-write
https://markhneedham.com/blog/2017/12/27/morning-pages-write
false
2017-12-28 11:03:56
Ethereum Hello World Example using solc and web3
[ "ethereum", "blockchain", "smart-contracts" ]
[ "Ethereum" ]
I've been trying to find an Ethereum Hello World example and came across Thomas Conté's excellent post that shows how to http://hypernephelist.com/2016/12/13/compile-deploy-ethereum-smart-contract-web3-solc.html[compile and deploy an Ethereum smart contract with solc and web3]. In the latest version of web3 the API has changed to be based on promises so I decided to translate Thomas' example. Let's get started. == Install npm libraries We need to install these libraries before we start: [source,bash] ---- npm install web3 npm install abi-decoder npm install ethereumjs-testrpc ---- What do these libraries do? * +++<cite>+++web3+++</cite>+++ is a client library for interacting with an Ethereum blockchain * +++<cite>+++abi-decoder+++</cite>+++ is used to decode the hash of a smart contract so that we can work out what was in it. * +++<cite>+++ethereum-testrpc+++</cite>+++ lets us spin up a local test version of Ethereum == Smart contract We'll still use the same smart contract as Thomas did. +++<cite>+++Token.sol+++</cite>+++ is a smart contract written in the https://solidity.readthedocs.io/en/develop/[Solidity] language and describes money being transferred between addresses: +++<cite>+++contracts/Token.sol+++</cite>+++ [source,text] ---- pragma solidity ^0.4.0; contract Token { mapping (address => uint) public balances; function Token() { balances[msg.sender] = 1000000; } function transfer(address _to, uint _amount) { if (balances[msg.sender] < _amount) { throw; } balances[msg.sender] -= _amount; balances[_to] += _amount; } } ---- Whenever somebody tries to transfer some money we'll put 1,000,000 in their account and then transfer the appropriate amount, assuming there's enough money in the account. == Start local Ethereum node Let's start a local Ethereum node. We'll reduce the gas price - the amount you 'pay' to execute a transaction - so we don't run out. [source,bash] ---- $ ./node_modules/.bin/testrpc --gasPrice 20000 EthereumJS TestRPC v6.0.3 (ganache-core: 2.0.2) Listening on localhost:8545 ---- == Pre requisites We need to load a few Node.js modules: [source,javascript] ---- const fs = require("fs"), abiDecoder = require('abi-decoder'), Web3 = require('web3'), solc = require('solc'); ---- == Compile smart contract Next we'll compile our smart contract: [source,javascript] ---- const input = fs.readFileSync('contracts/Token.sol'); const output = solc.compile(input.toString(), 1); const bytecode = output.contracts[':Token'].bytecode; const abi = JSON.parse(output.contracts[':Token'].interface); ---- == Connect to Ethereum and create contract object Now that we've got the https://github.com/ethereum/wiki/wiki/Ethereum-Contract-ABI[ABI] (Application Binary Interface) we'll connect to our local Ethereum node and create a contract object based on the ABI: [source,javascript] ---- let provider = new Web3.providers.HttpProvider("http://localhost:8545"); const web3 = new Web3(provider); let Voting = new web3.eth.Contract(abi); ---- == Add ABI to decoder Before we interact with the blockchain we'll first add the ABI to our ABI decoder to use later: [source,javascript] ---- abiDecoder.addABI(abi); ---- == Find (dummy) Ethereum accounts Now we're ready to create some transactions! We'll need some Ethereum accounts to play with and if we call https://web3js.readthedocs.io/en/1.0/web3-eth.html#getaccounts[web3.eth.getAccounts] we can get a collection of accounts that the node controls. Since our node is a test one these are all dummy accounts. [source,javascript] ---- web3.eth.getAccounts().then(accounts => { accounts.forEach(account => { console.log(account) }) }); ---- [source,text] ---- 0xefeaE7B180c7Af4Dfd23207422071599c7dfd2f7 0x3a54BaAFDe6747531a28491FDD2F36Cb61c83663 0x367e1ac67b9a85E438C7fab7648964E5ed12061e 0xB34ECD20Be6eC99e8e9fAF641A343BAc826FFFf1 0xE65587a2951873efE3325793D5729Ef91b15d5b5 0xdA232aEe954a31179E2F5b40E6efbEa27bB89c87 0x7119fEbab069d440747589b0f1fCDDBAdBDd105d 0xCacB2b61dE0Ca12Fd6FECe230d2f956c8Cdfed34 0x4F33BF93612D1B89C8C8872D4Af30Fa2A9CbfaAf 0xA1Ebc0D19dB41A96B5278720F47C2B6Ab2506ccF ---- == Transfer money between accounts Now that we have some accounts let's transfer some money between them. [source,javascript] ---- var allAccounts; web3.eth.getAccounts().then(accounts => { allAccounts = accounts; Voting.deploy({data: bytecode}).send({ from: accounts[0], gas: 1500000, gasPrice: '30000000000000' }).on('receipt', receipt => { Voting.options.address = receipt.contractAddress; Voting.methods.transfer(accounts[1], 10).send({from: accounts[0]}).then(transaction => { console.log("Transfer lodged. Transaction ID: " + transaction.transactionHash); let blockHash = transaction.blockHash return web3.eth.getBlock(blockHash, true); }).then(block => { block.transactions.forEach(transaction => { console.log(abiDecoder.decodeMethod(transaction.input)); }); allAccounts.forEach(account => { Voting.methods.balances(account).call({from: allAccounts[0]}).then(amount => { console.log(account + ": " + amount); }); }); }); }); }); ---- Let's run in: [source,text] ---- Transfer lodged. Transaction ID: 0x699cbe40121d6c2da7b36a107cd5f28b35a71aff2a0d584f8e734b10f4c49de4 { name: 'transfer', params: [ { name: '_to', value: '0xeb25dbd0931386eeab267981626ae3908d598404', type: 'address' }, { name: '_amount', value: '10', type: 'uint256' } ] } 0x084181d6fDe8bA802Ee85396aB1d25Ddf1d7D061: 999990 0xEb25dbD0931386eEaB267981626AE3908D598404: 10 0x7deB2487E6Ac40f85fB8f5A3bC6896391bf2570F: 0 0xA15ad4371B62afECE5a7A70457F82A30530630a3: 0 0x64644f3B6B95e81A385c8114DF81663C39084C6a: 0 0xBB68FF2935080c807D5A534b1fc481Aa3fafF1C0: 0 0x38d4A3d635B451Cb006d63ce542950C067D47F58: 0 0x7878bA9138361A08522418BD1c8376Af7220a506: 0 0xf400c0e749Fe02E7073E08d713E0A207dc91FBeb: 0 0x7070d1712a25eb7FCf78A549F17705AA66B0aD47: 0 ---- This code:</p * Deploys our smart contract to the blockchain * Transfers £10 from account 1 to account 2 * Decodes that transaction and shows the output * Show the balances of all the dummy accounts The https://github.com/mneedham/ethereum-nursery/blob/master/eth_solc.js[full example is available] in my https://github.com/mneedham/ethereum-nursery[ethereum-nursery] GitHub repository. Thomas also has http://hypernephelist.com/2017/01/19/deploy-ethereum-smart-contract-using-client-signature.html[a follow up post] that shows how to deploy a contract on a remote node where client side signatures become necessary.
Learn how to code a Hello World example on the Ethereum blockchain using solc, the Solidity smart contract language, and the web3 client library.
null
[ -0.007714252918958664, 0.0010947808623313904, -0.01963394321501255, 0.044939685612916946, 0.06876133382320404, 0.005955263040959835, 0.0018125936621800065, 0.02297711931169033, 0.0069429208524525166, -0.010024532675743103, -0.006588671822100878, 0.01058573741465807, -0.0851796418428421, -0.008048145100474358, -0.0363503023982048, 0.03716428577899933, 0.09050175547599792, 0.003182195359840989, 0.006891167722642422, 0.003064288292080164, 0.008262397721409798, 0.09879492968320847, 0.04644278436899185, 0.027494234964251518, 0.021605879068374634, 0.01764323003590107, -0.012976626865565777, -0.012294351123273373, -0.06209094077348709, -0.024693509563803673, 0.05937161296606064, -0.0092480992898345, -0.04523299261927605, -0.016229739412665367, -0.015165116637945175, 0.01803390122950077, -0.040180206298828125, 0.006656007841229439, -0.018360117450356483, 0.00333091476932168, -0.06209753453731537, 0.022750109434127808, -0.015764718875288963, 0.03320658579468727, -0.05142533406615257, 0.016780389472842216, -0.04378970339894295, 0.007905011996626854, -0.0061981831677258015, -0.012617625296115875, -0.05918116867542267, 0.010376316495239735, -0.035241011530160904, -0.0006455586408264935, 0.02120254747569561, 0.04688417911529541, -0.023299910128116608, -0.07995609194040298, 0.025103097781538963, -0.044814031571149826, 0.007476290222257376, 0.0073625473305583, 0.010418787598609924, 0.03412845730781555, 0.02480233646929264, -0.011759822256863117, -0.005836377386003733, 0.0472758524119854, -0.04228989779949188, -0.044327910989522934, 0.004088813439011574, 0.009690563194453716, -0.05198376625776291, 0.0006456208066083491, 0.03208913654088974, -0.041263826191425323, -0.027803674340248108, 0.06486256420612335, -0.0006505725323222578, 0.04592921584844589, 0.0021234480664134026, 0.026529964059591293, 0.02558073401451111, 0.013645133934915066, 0.0034010927192866802, -0.03217479959130287, -0.01714189164340496, -0.017200486734509468, -0.04736561328172684, 0.06471670418977737, 0.020880108699202538, -0.042453184723854065, 0.007015719078481197, 0.013874003663659096, -0.009910131804645061, 0.007856379263103008, 0.026776673272252083, -0.000980271608568728, 0.0017594649689272046, -0.0050644841976463795, -0.010533063672482967, -0.008390574716031551, 0.011614772491157055, -0.01326035801321268, -0.04946590214967728, -0.00471453508362174, -0.03213201463222504, -0.013465942814946175, -0.0027714394964277744, -0.016629643738269806, -0.005388923455029726, -0.006269300822168589, -0.019976291805505753, 0.009856696240603924, -0.0516907274723053, 0.08570826053619385, 0.012699912302196026, -0.031599756330251694, -0.02026476338505745, 0.02130749635398388, 0.04798755794763565, 0.06007152423262596, -0.011901172809302807, 0.07833845913410187, 0.03958127275109291, 0.05271336808800697, -0.019390905275940895, 0.04892944172024727, -0.017490973696112633, -0.08439862728118896, 0.0037267592269927263, 0.06537595391273499, -0.014219403266906738, 0.022524187341332436, -0.01735737919807434, -0.004915554542094469, -0.007986558601260185, -0.007855327799916267, 0.05897057056427002, 0.02079322561621666, -0.009811511263251305, -0.036952849477529526, 0.019543655216693878, 0.014132538810372353, 0.015810316428542137, -0.014406127855181694, -0.006452065426856279, -0.04320426657795906, -0.029042111709713936, 0.03748965263366699, -0.0026178753469139338, -0.00650540878996253, 0.050151485949754715, -0.008496567606925964, 0.018078481778502464, 0.06986139714717865, 0.04602015018463135, 0.02433803677558899, -0.030087968334555626, 0.01448727771639824, 0.04103444516658783, 0.013809951022267342, 0.03168795630335808, 0.019078275188803673, -0.019113728776574135, -0.018531903624534607, 0.009251677431166172, 0.0686519518494606, 0.02086818777024746, -0.01578451320528984, -0.04299983009696007, -0.059308119118213654, 0.04876777529716492, -0.02040700800716877, -0.011332678608596325, 0.025453248992562294, 0.07363513112068176, 0.015032689087092876, 0.03871805965900421, -0.003162672044709325, -0.09418293088674545, 0.06820930540561676, 0.04472833871841431, 0.005222127307206392, 0.034463174641132355, -0.0046798172406852245, 0.062012482434511185, 0.031808022409677505, 0.004255964420735836, 0.020494820550084114, -0.07323203235864639, -0.06582911312580109, -0.024264248088002205, -0.006275723688304424, 0.05021100118756294, -0.037709642201662064, -0.00023213519307319075, 0.0671696588397026, 0.031744759529829025, 0.0174395851790905, 0.008552014827728271, -0.012648683972656727, 0.015123418532311916, -0.020584043115377426, -0.04376273229718208, 0.05061274766921997, 0.02182462252676487, 0.014405318535864353, -0.03836560621857643, 0.022127270698547363, -0.00865095667541027, -0.02828388661146164, 0.01942058466374874, -0.03507198765873909, 0.03321964293718338, 0.008561893366277218, 0.02264823019504547, -0.02866429276764393, 0.035478681325912476, -0.016547920182347298, 0.06945216655731201, -0.011297131888568401, -0.010404570028185844, 0.008976669982075691, -0.007232177071273327, 0.10241033881902695, 0.051084309816360474, -0.049199044704437256, -0.03656620904803276, 0.0415482297539711, -0.003824945306405425, -0.06329503655433655, -0.008524946868419647, -0.04096392169594765, 0.005793356336653233, -0.028415760025382042, -0.036655060946941376, -0.01935301534831524, -0.0011018997756764293, -0.025904327630996704, 0.005890089552849531, 0.08251616358757019, -0.04038920998573303, 0.05761078745126724, -0.003954148851335049, 0.003881914308294654, -0.012248397804796696, -0.0467539019882679, -0.06951286643743515, 0.004071811679750681, -0.009295768104493618, -0.021434633061289787, 0.017387229949235916, -0.03947249799966812, -0.03764977306127548, -0.023705797269940376, -0.054181430488824844, 0.05204344168305397, 0.03994102403521538, 0.053839221596717834, -0.024450836703181267, 0.028133027255535126, -0.012181227095425129, 0.029577231034636497, -0.022830555215477943, -0.03883884474635124, -0.02126273140311241, -0.029729824513196945, -0.002363466424867511, 0.030707966536283493, 0.05128030851483345, 0.006272807717323303, 0.003212115727365017, 0.0009348546736873686, 0.02559329755604267, -0.021853646263480186, 0.03747900575399399, -0.027367431670427322, -0.007810794282704592, -0.03186551108956337, -0.037225544452667236, 0.0730680599808693, -0.03846064582467079, -0.042756836861371994, 0.0020809839479625225, -0.06613226234912872, 0.050021786242723465, -0.09468264132738113, -0.01933179423213005, -0.014145035296678543, 0.025937074795365334, 0.034747689962387085, 0.020070066675543785, 0.03250132501125336, 0.08199761807918549, 0.00916676688939333, 0.02114967256784439, 0.022400058805942535, 0.03084619715809822, 0.03627176955342293, -0.012891053222119808, 0.010101983323693275, 0.027742285281419754, -0.0009364372817799449, 0.00629861606284976, -0.07171236723661423, 0.037896666675806046, -0.01588413119316101, -0.2786807715892792, 0.04530709981918335, 0.0012490184744819999, -0.058367691934108734, 0.03618259355425835, -0.002183644101023674, 0.022290373221039772, -0.034059230238199234, -0.022710375487804413, 0.01614053174853325, -0.005576025694608688, -0.04078375920653343, -0.0067636095918715, 0.025939565151929855, 0.010989794507622719, 0.010687662288546562, -0.01027765218168497, -0.03512214124202728, -0.0037267643492668867, 0.04788071662187576, -0.018932955339550972, -0.06989478319883347, 0.0054614306427538395, 0.05695704370737076, 0.01929798349738121, 0.010684430599212646, -0.07527654618024826, 0.04126882553100586, -0.03893173858523369, -0.012283982709050179, -0.011014031246304512, -0.003901237389072776, 0.0016504370141774416, -0.014763948507606983, -0.003943837713450193, -0.023941433057188988, 0.026609040796756744, 0.019797885790467262, 0.0033762960229068995, 0.001281241187825799, -0.03907031565904617, -0.0011656013084575534, -0.003122481983155012, 0.0028871179092675447, 0.0844084694981575, -0.03262873366475105, -0.07889632135629654, -0.0035343612544238567, -0.04388425499200821, 0.08856157213449478, -0.045218952000141144, -0.03627854213118553, -0.02760481648147106, 0.027018362656235695, -0.010824574157595634, -0.03236540034413338, -0.012279791757464409, -0.02878352627158165, -0.04768003895878792, -0.009499593637883663, 0.004493336658924818, -0.033638015389442444, -0.02866929955780506, -0.038276661187410355, 0.00903343316167593, -0.06341148912906647, -0.028394661843776703, -0.03100750595331192, 0.07465159893035889, 0.005432344041764736, -0.016640251502394676, 0.01807374693453312, -0.03798174858093262, -0.12085741758346558, 0.004321965388953686, -0.0450066477060318, -0.015292372554540634, 0.012209923006594181, 0.0035908326972275972, 0.012711518444120884, -0.0223529189825058, -0.048231128603219986, 0.013974235393106937, 0.013881751336157322, 0.024073468521237373, 0.007538096513599157, 0.02803879603743553, -0.02056211046874523, -0.030834995210170746, -0.012337354943156242, 0.0661955326795578, -0.020150447264313698, -0.03442899137735367, -0.02471630834043026, -0.010173242539167404, -0.0026373148430138826, -0.013678144663572311, 0.0037711975164711475, 0.009894599206745625, 0.07682668417692184, 0.03816104307770729, -0.0364585779607296, 0.01715928688645363, -0.022494876757264137, -0.021577835083007812, -0.006541503127664328, -0.058922335505485535, 0.03912157192826271, 0.030622020363807678, 0.011980390176177025, -0.013828974217176437, -0.04200918599963188, 0.026273785158991814, -0.03471909090876579, -0.058672573417425156, -0.020175568759441376, 0.0056778183206915855, 0.018680978566408157, 0.02716303989291191, -0.01805303618311882, -0.04966022074222565, 0.017150526866316795, 0.042433541268110275, -0.01937522552907467, -0.04005654156208038, -0.02960178442299366, -0.023260673508048058, 0.016077324748039246, 0.020939378067851067, -0.010790344327688217, 0.002893532859161496, 0.02864602953195572, 0.0002787722332868725, -0.03663082420825958, 0.002865441143512726, -0.03853946179151535, -0.0386505164206028, -0.04056251421570778, 0.018620526418089867, -0.007230126298964024, -0.00042894421494565904, 0.006102343089878559, -0.0008982890867628157, 0.050258126109838486, 0.021648015826940536, 0.0010919403284788132, 0.020814241841435432, 0.01475184690207243, -0.008739144541323185, 0.016576595604419708, 0.004120627883821726, -0.041529662907123566, 0.027997393161058426, -0.020573964342474937, -0.005966492462903261, -0.020956475287675858, 0.03506549820303917, -0.02167082205414772, -0.024924378842115402, -0.02939876914024353, 0.02262657694518566, -0.06071512773633003, -0.018021749332547188, -0.010305996052920818, 0.024552976712584496, 0.03944298252463341, -0.0034053451381623745, 0.02133648656308651, -0.030146608129143715, 0.00828351266682148, 0.014153119176626205, 0.017158420756459236, -0.02919143997132778, 0.009249170310795307, -0.021236490458250046, -0.003943270072340965, -0.016300637274980545, 0.009478618390858173, 0.04019118845462799, 0.000004833898401557235, 0.016073573380708694, -0.005970277823507786, 0.016538744792342186, 0.023034317418932915, 0.04718339443206787, 0.016957256942987442, 0.025348523631691933, 0.003138470696285367, -0.03278500959277153, -0.01758168265223503, -0.003943680319935083, 0.017476720735430717, -0.01087921392172575, 0.005310487933456898, -0.022176004946231842, -0.0799194872379303, 0.015697602182626724, 0.0358106791973114, -0.015393572859466076, 0.02612438052892685, 0.01584460958838463, 0.0008190629887394607, -0.04904196038842201, 0.04628990218043327, 0.06419941782951355, -0.06922584772109985, 0.022195585072040558, 0.011337364092469215, 0.014074171893298626, -0.011845343746244907, 0.013442214578390121, -0.04151684418320656, -0.03831315413117409, -0.012195613235235214, -0.008148154243826866, -0.04672643542289734, -0.042335301637649536, -0.023631513118743896, -0.017153555527329445, -0.0035648096818476915, -0.00288699334487319, -0.0014404529938474298, -0.017359986901283264, -0.003433801233768463, -0.040950801223516464, 0.013087661005556583, -0.026188867166638374, 0.03544354811310768, 0.018197542056441307, -0.015998581424355507, 0.004398472607135773, -0.026924708858132362, 0.030996715649962425, 0.018615927547216415, -0.0035851350985467434, 0.015242776833474636, -0.06423590332269669, -0.014108243398368359, -0.036606717854738235, 0.05572471767663956, -0.02895243838429451, -0.004423380363732576, -0.027042482048273087, -0.00613631634041667, -0.029390446841716766, 0.016088061034679413, -0.007782436441630125, -0.011734279803931713, 0.017808586359024048, 0.05573296919465065, 0.010344321839511395, 0.049018923193216324, -0.00025509478291496634, -0.00595905352383852, 0.04865454509854317, -0.05754430219531059, -0.026464516296982765, -0.010153104551136494, -0.02854202687740326, 0.011620810255408287, 0.01817137748003006, -0.005375629756599665, -0.07194145023822784, 0.04309205338358879, 0.05870795249938965, 0.035966020077466965, 0.047336045652627945, -0.0349748358130455, 0.03591901436448097, -0.03640533238649368, -0.023766295984387398, -0.10554508119821548, 0.023977503180503845, 0.010372817516326904, 0.008042171597480774, -0.03788375481963158, 0.020571393892169, -0.02790219895541668, 0.009815294295549393, -0.08001253753900528, -0.03353606164455414, 0.03797880932688713, -0.007012330461293459, -0.012857998721301556, 0.009892059490084648, -0.0571708045899868, -0.009606976062059402, 0.01972760632634163, -0.043705254793167114, -0.03892144188284874, -0.028106285259127617, 0.05838719755411148, -0.004013488069176674, 0.021616443991661072, -0.02888469025492668, 0.026353150606155396, 0.05753908306360245, 0.01935940608382225, 0.018079115077853203, 0.03758405148983002, -0.006065052468329668, 0.044075801968574524, 0.03558861091732979, 0.005296987481415272, 0.014095107093453407, 0.029011912643909454, -0.010729816742241383, -0.040564361959695816, 0.07367322593927383, -0.0017954001668840647, -0.035599950700998306, -0.03626318648457527, 0.05315011739730835, 0.014337281696498394, -0.031634874641895294, -0.06433819234371185, 0.0175780039280653, -0.057651858776807785, -0.04464840888977051, -0.015460648573935032, 0.0076620024628937244, -0.030138256028294563, 0.06027629226446152, -0.003863363992422819, -0.005008332896977663, 0.08364049345254898, 0.019623305648565292, -0.03276093676686287, 0.00472025154158473, 0.09000613540410995, 0.10746569186449051, 0.05303423851728439, -0.0012569451937451959, 0.05704478546977043, -0.009994260966777802, -0.04530469700694084, -0.010954229161143303, -0.033425621688365936, -0.019944651052355766, 0.0030811529140919447, 0.014388790354132652, 0.05073946341872215, -0.028656192123889923, 0.042134467512369156, -0.03863726928830147, -0.017005814239382744, 0.02967584691941738, 0.035520412027835846, 0.021147122606635094, 0.08444177359342575, 0.02264663390815258, 0.04056098684668541, -0.013616225682199001, -0.047967322170734406, 0.014097645878791809, -0.017067469656467438, -0.02852654457092285, 0.01829635724425316, -0.002219660673290491, 0.0016873721033334732, 0.0502542108297348, 0.020403364673256874, 0.10693439841270447, -0.02580134943127632, 0.006386107299476862, 0.006897187326103449, 0.009862775914371014, 0.008401907980442047, 0.008264199830591679, -0.024211730808019638, -0.02791590988636017, -0.008179711177945137, -0.03483966365456581, -0.008390971459448338, 0.001430187257938087, -0.017788562923669815, 0.04603372886776924, -0.028676608577370644, 0.009875481016933918, 0.011483126319944859, -0.006867304909974337, -0.02704796753823757, -0.059708863496780396, -0.053482528775930405, -0.06569129228591919, -0.054043956100940704, 0.004945047199726105, 0.029556075111031532, -0.01894054375588894, -0.04283430427312851, -0.026968924328684807, 0.00877277459949255, 0.005601745564490557, 0.03408924862742424, -0.056712888181209564, -0.024741370230913162, 0.008676133118569851, 0.03184661269187927, -0.014770803973078728, 0.017371825873851776, 0.06998910009860992, -0.0035267763305455446, 0.004635405261069536, -0.021416746079921722, 0.02407788299024105, 0.024663647636771202, 0.03016952984035015, 0.021488742902874947, -0.06562833487987518, 0.010491465218365192, 0.04386653006076813, 0.014893490821123123, -0.07880900055170059, -0.0006288081058301032, 0.014346248470246792, -0.007181749679148197, 0.06198245659470558, 0.006057728547602892, 0.0026838877238333225, -0.022731969133019447, -0.008794889785349369, 0.013679752126336098, 0.023001275956630707, 0.032088033854961395, -0.01429799385368824, 0.10493308305740356, 0.04207460954785347, -0.0039645712822675705, -0.019909920170903206, -0.01318664476275444, 0.0012715108459815383, -0.02544117346405983, -0.03468630090355873, 0.003423037938773632, -0.023181166499853134, -0.07291589677333832, -0.04140419512987137, -0.004647093825042248, -0.052138086408376694, -0.03725293278694153, 0.02383502386510372, 0.04419464245438576, -0.04762408137321472, 0.04070708155632019, -0.03431151807308197, 0.013275152072310448, -0.01088083628565073, -0.010122477076947689, -0.007964526303112507, 0.019280290231108665, 0.026612242683768272, -0.02199406363070011, 0.028765875846147537, -0.0468050055205822, -0.009634895250201225, 0.014672918245196342, 0.03477364778518677, 0.051838893443346024, 0.013968979939818382, 0.0029836648609489202 ]
[ -0.08198577165603638, -0.02552001178264618, -0.061095040291547775, -0.008791813626885414, 0.06334589421749115, -0.06249916926026344, -0.02613218128681183, 0.006064878311008215, -0.004512969404459, -0.028946947306394577, 0.018840746954083443, -0.04124291613698006, -0.020035160705447197, -0.0394379086792469, 0.10025174170732498, -0.003266967600211501, -0.05533289164304733, -0.06027175858616829, -0.03621329367160797, 0.06033310294151306, 0.04460122063755989, -0.04999773949384689, -0.04249420762062073, -0.02028043195605278, 0.037118371576070786, 0.026228955015540123, 0.04216497391462326, -0.03016269952058792, 0.01478355098515749, -0.19411838054656982, 0.017232844606041908, -0.007419281173497438, 0.008733452297747135, 0.00116981309838593, 0.04768380895256996, 0.05469139665365219, -0.01581823080778122, -0.012438392266631126, -0.019361110404133797, 0.024810563772916794, 0.002983647398650646, 0.028224697336554527, -0.04935764893889427, -0.04551283270120621, 0.0619552880525589, -0.03252929076552391, 0.0005877680378034711, -0.016324276104569435, -0.011995545588433743, 0.014090322889387608, -0.017053790390491486, 0.0065405042842030525, 0.031589340418577194, -0.016294235363602638, 0.013942123390734196, 0.03254726901650429, 0.036390095949172974, 0.09070824086666107, 0.0213311780244112, 0.021176008507609367, 0.02137606218457222, 0.008761816658079624, -0.1475268453359604, 0.08840086311101913, 0.04273705556988716, 0.05493178591132164, -0.020163916051387787, -0.0009197378531098366, -0.03049389086663723, 0.07661139965057373, 0.04425784572958946, -0.02340777963399887, -0.046469494700431824, 0.04279400408267975, -0.0027127666398882866, -0.014254525303840637, 0.02145020291209221, 0.03247740492224693, 0.04598229378461838, -0.045993633568286896, -0.01974359154701233, -0.020935937762260437, -0.033647019416093826, 0.0022895284928381443, -0.04722678288817406, -0.02055111899971962, 0.030236732214689255, 0.07575883716344833, 0.020416367799043655, 0.017193075269460678, 0.011782555840909481, -0.0015631956048309803, 0.002415216062217951, 0.017972538247704506, -0.07834715396165848, -0.004844208713620901, 0.011320200748741627, 0.009051931090652943, -0.050790466368198395, 0.3955644369125366, 0.029029564931988716, -0.00777132622897625, 0.03146883472800255, -0.027786562219262123, 0.028246602043509483, 0.00258012511767447, -0.003952475730329752, -0.024368751794099808, 0.041592102497816086, -0.016430584713816643, -0.03393738716840744, 0.0024979100562632084, 0.031632740050554276, -0.07768812030553818, 0.018690118566155434, -0.00903786439448595, -0.008136005140841007, 0.014763458631932735, 0.0034499866887927055, 0.003138547297567129, -0.0018182124476879835, -0.005946104880422354, 0.022417230531573296, 0.02303468808531761, -0.02699485793709755, -0.010214653797447681, 0.05092119425535202, 0.02817138470709324, 0.03089764527976513, 0.06255284696817398, 0.026729010045528412, -0.034780096262693405, -0.08346816897392273, -0.01073409803211689, 0.019929077476263046, 0.04230617731809616, -0.01394616812467575, -0.047873686999082565, -0.04525173828005791, 0.03929486498236656, -0.0065413727425038815, 0.0024198952596634626, 0.0024538347497582436, -0.04169713333249092, -0.04535535350441933, 0.0815536230802536, 0.052378520369529724, -0.03304591774940491, -0.006979248486459255, -0.03397408500313759, 0.009211137890815735, 0.04896489158272743, 0.03864171355962753, -0.049317263066768646, 0.01854907162487507, 0.018851887434720993, 0.08046100288629532, -0.009669785387814045, -0.08078766614198685, 0.0015727643622085452, -0.0039303358644247055, -0.02418980374932289, -0.04621265456080437, 0.11147011071443558, 0.027780944481492043, -0.14536340534687042, -0.015768511220812798, 0.008036544546484947, 0.0128940986469388, -0.09359189867973328, -0.0019439896568655968, 0.026208186522126198, -0.03447417542338371, -0.03889874741435051, 0.06011443957686424, -0.022613955661654472, -0.019972922280430794, -0.03314165771007538, 0.02607457898557186, 0.02085880935192108, -0.03917814791202545, -0.026430387049913406, -0.042440369725227356, -0.013532731682062149, -0.050257593393325806, -0.06831985712051392, -0.04902002215385437, 0.028150759637355804, -0.03842710703611374, -0.023409798741340637, -0.046200357377529144, 0.04847991093993187, -0.0789109468460083, 0.09305538237094879, 0.004907727707177401, -0.005174997262656689, -0.0009071865933947265, -0.018820879980921745, -0.010097315534949303, -0.012412497773766518, 0.029969654977321625, 0.07433626055717468, -0.01863667368888855, 0.04122716933488846, -0.08098196983337402, 0.05340401083230972, 0.04711712524294853, -0.0409761480987072, 0.04044108837842941, 0.03975376859307289, -0.041984304785728455, 0.04508233070373535, 0.002926334971562028, 0.03322714567184448, -0.010691099800169468, -0.011630561202764511, 0.013220327906310558, 0.00833156518638134, -0.0028088600374758244, 0.029946502298116684, -0.020995939150452614, 0.00047746574273332953, -0.014577023684978485, -0.34671226143836975, -0.033904582262039185, -0.023323919624090195, -0.01920764334499836, 0.06437570601701736, -0.049169521778821945, 0.04070202261209488, -0.036106087267398834, 0.013552922755479813, -0.006230342201888561, 0.09465284645557404, -0.026054516434669495, 0.008866301737725735, -0.07915142923593521, 0.004382326267659664, 0.019932515919208527, -0.038852933794260025, -0.020207107067108154, -0.007361044175922871, 0.03669217228889465, -0.029024260118603706, -0.009638159535825253, -0.03278247267007828, -0.06137605756521225, 0.010519715026021004, -0.0076132407411932945, 0.10314040631055832, -0.018765559419989586, 0.036003243178129196, -0.060060761868953705, 0.03978281468153, 0.011794611811637878, 0.016132956370711327, -0.11857285350561142, 0.004577742889523506, -0.015042475424706936, 0.05343271419405937, -0.00414486788213253, 0.04120955988764763, -0.022962601855397224, -0.06572138518095016, 0.0015714981127530336, -0.04189511761069298, -0.028606580570340157, -0.007107327226549387, -0.015510830096900463, -0.02893068455159664, -0.01574634574353695, -0.0003434081736486405, 0.06511019170284271, 0.02142135240137577, 0.03906524181365967, -0.021156735718250275, 0.061408791691064835, 0.013646591454744339, -0.0064237709157168865, -0.03330332413315773, -0.01591978780925274, 0.024664202705025673, -0.0018456077668815851, 0.018223626539111137, 0.05519162863492966, 0.03105786442756653, -0.008291061036288738, 0.024928690865635872, -0.00811211857944727, 0.011520838364958763, 0.00466570071876049, 0.024875640869140625, -0.038176000118255615, -0.023056522011756897, 0.0968257263302803, 0.0028371200896799564, 0.0036034074146300554, 0.030324317514896393, 0.06139381602406502, -0.013188584707677364, -0.006503117270767689, 0.024105189368128777, 0.032233379781246185, 0.003210199298337102, -0.006013231817632914, 0.04749907925724983, -0.0250473041087389, -0.05093025416135788, 0.06447643041610718, 0.018069200217723846, -0.021724989637732506, 0.01726583205163479, 0.02458789385855198, -0.041702866554260254, 0.012204408645629883, -0.020717285573482513, -0.05682997405529022, 0.07149644196033478, -0.019701974466443062, -0.2629569470882416, 0.013746293261647224, 0.02131117694079876, 0.03425337001681328, 0.015989894047379494, 0.018166666850447655, 0.04897082597017288, -0.05289541557431221, -0.027291053906083107, 0.008071299642324448, 0.03311612829566002, 0.02699279598891735, -0.00004111872112844139, -0.005674467422068119, 0.012381902895867825, -0.005884126294404268, 0.05022537335753441, -0.020673884078860283, -0.024634426459670067, -0.0008793931920081377, 0.008956624194979668, -0.005375000182539225, 0.1935722678899765, 0.03615188226103783, -0.009696615859866142, 0.0404808409512043, -0.042755648493766785, 0.05256868526339531, 0.07900045812129974, 0.007504679728299379, -0.007413579151034355, 0.030324269086122513, 0.004249143414199352, 0.0017875353805720806, 0.025646474212408066, -0.03813951462507248, -0.019126184284687042, 0.012251167558133602, 0.014506475999951363, 0.010948019102215767, -0.02530929632484913, 0.02012885920703411, -0.000525382871273905, 0.03782760351896286, 0.027272433042526245, 0.004220485221594572, -0.020048772916197777, -0.05012770742177963, -0.02952824905514717, 0.0022118217311799526, -0.04934672266244888, -0.06729794293642044, 0.009037774056196213, -0.020044861361384392, 0.008923014625906944, 0.06865023076534271, 0.03884441778063774, -0.049761198461055756, -0.02659246139228344, 0.02076023630797863, -0.02051463909447193, -0.04575438052415848, 0.08387309312820435, -0.0037116138264536858, 0.05131081864237785 ]
[ 0.014208042062819004, 0.019671151414513588, -0.0262648556381464, -0.014649651944637299, 0.004363661631941795, -0.020371779799461365, -0.0007588436710648239, -0.00882012490183115, 0.013071141205728054, -0.015398703515529633, -0.016898121684789658, 0.0013963003875687718, 0.010676943697035313, -0.036453597247600555, 0.04040082171559334, -0.009801706299185753, -0.015599065460264683, -0.010032289661467075, 0.02638302743434906, 0.014042364433407784, -0.005338801071047783, 0.007404483389109373, 0.007405503187328577, -0.008409260772168636, 0.011574894189834595, 0.044723596423864365, 0.0026933192275464535, -0.005649625789374113, 0.011723813600838184, -0.11859464645385742, 0.0015605840599164367, -0.022983964532613754, 0.004034323617815971, 0.009134908206760883, -0.015238318592309952, 0.03797903284430504, -0.023584071546792984, 0.00828790757805109, -0.011027604341506958, 0.001584304147399962, 0.005790931172668934, 0.007854036055505276, -0.0035741645842790604, -0.013274364173412323, 0.006739961914718151, 0.0006411627982743084, -0.0450756810605526, -0.025567416101694107, 0.009210474789142609, 0.00666016573086381, -0.033693827688694, -0.01647563837468624, 0.0009991828119382262, 0.04597172141075134, -0.012772930786013603, -0.011814980767667294, 0.009286923334002495, -0.013024481013417244, 0.005978527013212442, -0.02229253761470318, -0.010697897523641586, 0.045675601810216904, 0.0026055588386952877, -0.021570391952991486, 0.019895358011126518, -0.002551573095843196, -0.005980586167424917, -0.018631208688020706, -0.020855426788330078, 0.002622595289722085, -0.026005448773503304, -0.01852462999522686, -0.0245321374386549, -0.0072644795291125774, -0.014383838512003422, 0.009505268186330795, 0.011806648224592209, -0.010825012810528278, -0.004434707574546337, 0.012882139533758163, -0.02816183678805828, -0.0065930187702178955, -0.013973578810691833, 0.0539933517575264, -0.031260378658771515, 0.014278966002166271, -0.02706620655953884, -0.01733436807990074, -0.005168393719941378, -0.013892153277993202, -0.012184123508632183, 0.0180157832801342, -0.007447763346135616, 0.017278606072068214, -0.05399737507104874, -0.006486412137746811, 0.003094408428296447, -0.02861126884818077, -0.003919228911399841, 0.8642483949661255, 0.016982456669211388, 0.040747374296188354, 0.039707884192466736, 0.0006915205740369856, 0.01855592057108879, 0.01775241456925869, 0.02670087106525898, -0.006402372848242521, 0.007812263909727335, 0.007553864270448685, 0.023773571476340294, 0.004818350076675415, 0.03375430032610893, -0.013093304820358753, -0.004249190911650658, 0.04130322486162186, 0.031239831820130348, -0.03465671464800835, 0.003195072989910841, 0.02653973177075386, 0.0583563856780529, 0.022310350090265274, -0.0013044547522440553, 0.018074536696076393, 0.009633023291826248, -0.17775382101535797, 0.0287805013358593, -7.711592650963576e-33, 0.02357424423098564, -0.027097539976239204, -0.019868049770593643, 0.029327278956770897, 0.018484661355614662, -0.0007050538551993668, 0.030208447948098183, 0.01564493589103222, -0.026314742863178253, -0.032401714473962784, 0.009480707347393036, 0.008576859720051289, 0.033382438123226166, -0.013096468523144722, -0.012622729875147343, -0.019957516342401505, -0.01748032681643963, 0.03033081814646721, 0.032807063311338425, 0.02513350173830986, 0.0054257772862911224, -0.014414153061807156, 0.025947384536266327, 0.01200116891413927, 0.007309819106012583, 0.026191359385848045, -0.012050731107592583, 0.011460062116384506, 0.015604166314005852, -0.06561058014631271, 0.022877860814332962, 0.03188755735754967, -0.015529327094554901, -0.04198983684182167, 0.01999294012784958, -0.038098134100437164, -0.028620652854442596, -0.013701654970645905, -0.04815056920051575, -0.024809520691633224, -0.05114002153277397, 0.012451570481061935, -0.005637285299599171, -0.033285073935985565, -0.021422429010272026, 0.01033826544880867, 0.01746019348502159, 0.035597994923591614, 0.03940656781196594, 0.0037159151397645473, 0.008708231151103973, -0.0033653494901955128, -0.017744455486536026, 0.016528064385056496, 0.0045867376029491425, -0.01877213828265667, -0.007260565645992756, 0.02092837169766426, -0.011553406715393066, 0.02101760171353817, 0.0017963851569220424, -0.012872960418462753, -0.020050927996635437, 0.030586455017328262, -0.010030210949480534, 0.021109219640493393, -0.018028847873210907, 0.0489485040307045, -0.002023030538111925, 0.02655404806137085, -0.04178670793771744, 0.007379433140158653, -0.01724052056670189, 0.04979456961154938, 0.015248585492372513, -0.004228387959301472, -0.012550913728773594, 0.01689492166042328, -0.014261208474636078, 0.0205755103379488, 0.025972889736294746, -0.0020835199393332005, 0.007369561120867729, 0.020094674080610275, -0.012854188680648804, -0.009575249627232552, 0.01568985916674137, -0.04537295922636986, -0.0006830716738477349, -0.010541495867073536, 0.039189886301755905, 0.003543320344761014, -0.020596284419298172, -0.013057891279459, -0.05519754812121391, 7.178456004355758e-33, -0.02957269735634327, -0.01817423105239868, -0.048483993858098984, 0.010430343449115753, 0.005909485276788473, -0.0189485102891922, -0.00103602500166744, 0.017098600044846535, -0.026958534494042397, 0.04484877735376358, 0.001560834003612399, 0.0015248061390593648, -0.0055854590609669685, 0.026207981631159782, 0.054850682616233826, -0.015214069746434689, 0.0019759086426347494, -0.03219832852482796, 0.02984790876507759, 0.023478105664253235, 0.038865815848112106, 0.015292023308575153, -0.004938588477671146, -0.0012199023040011525, -0.004632498137652874, 0.0505763478577137, -0.038439419120550156, 0.017373064532876015, -0.019410043954849243, -0.014409753493964672, -0.00976110901683569, -0.011763769201934338, 0.00844552181661129, -0.01499986182898283, -0.029988117516040802, 0.018277021124958992, 0.001033675274811685, 0.009399974718689919, 0.03797762840986252, -0.002684330567717552, 0.022164614871144295, -0.018629418686032295, -0.014331459999084473, 0.0020453378092497587, -0.0011504594003781676, 0.004601008258759975, 0.008139449171721935, -0.014388213865458965, 0.01343667134642601, 0.028542038053274155, -0.003736554179340601, -0.021660832688212395, 0.011284541338682175, -0.012441359460353851, 0.005075992085039616, -0.01343369297683239, 0.002947490196675062, 0.018828459084033966, 0.002092744456604123, -0.017226003110408783, -0.02227047272026539, 0.03094751015305519, 0.0228041410446167, 0.016995543614029884, -0.05870121717453003, -0.0006267761928029358, -0.03827488422393799, 0.0060987770557403564, 0.010885413736104965, 0.014318371191620827, -0.021147118881344795, -0.0010876002488657832, 0.004032520577311516, 0.02456831932067871, 0.027320517227053642, -0.008975422009825706, -0.0045527988113462925, 0.003268062137067318, -0.003257673466578126, 0.009432189166545868, 0.000021941143131698482, 0.04080948606133461, 0.037969920784235, -0.01703246496617794, 0.008236459456384182, 0.019245965406298637, -0.041909392923116684, -0.015604513697326183, -0.02388174645602703, -0.01789134368300438, -0.01680685207247734, 0.014321612194180489, -0.02196740172803402, 0.009125273674726486, 0.004098822828382254, -1.3259905173867992e-8, -0.016354620456695557, 0.02372228167951107, -0.028556177392601967, 0.02227834053337574, 0.009767035953700542, 0.017931554466485977, 0.0006566926022060215, -0.013837834820151329, -0.03749088570475578, 0.009865893051028252, 0.03373098000884056, -0.016747858375310898, -0.03530055657029152, -0.030027233064174652, 0.013907606713473797, -0.03501657024025917, -0.0431830920279026, -0.03181388974189758, 0.01732451096177101, -0.012424997054040432, 0.009248629212379456, 0.049988292157649994, 0.016096176579594612, -0.005892204120755196, 0.03131961449980736, -0.01979447342455387, 0.02211773954331875, -0.06920018047094345, -0.03681124374270439, 0.0054188938811421394, -0.005588150583207607, -0.011437746696174145, -0.0326056182384491, -0.01123285572975874, -0.01335130538791418, -0.027525775134563446, -0.008206264115869999, -0.005456068087369204, 0.010497461073100567, 0.009614062495529652, -0.05394686385989189, 0.03427865728735924, -0.03528590872883797, -0.029891900718212128, 0.008800401352345943, -0.028157955035567284, -0.05115972459316254, 0.02020847797393799, 0.05616436526179314, -0.05458960682153702, 0.019659193232655525, -0.019938316196203232, 0.03216051310300827, 0.010030996985733509, 0.04454492777585983, -0.013414856977760792, -0.026194801554083824, -0.04880571365356445, -0.016155030578374863, -0.01814894750714302, 0.027136627584695816, -0.003219170728698373, -0.002364404732361436, -0.020764270797371864 ]
ethereum-hello-world-example-using-solc-and-web3
https://markhneedham.com/blog/2017/12/28/ethereum-hello-world-example-using-solc-and-web3
false
2017-12-10 07:55:43
scikit-learn: Using GridSearch to tune the hyper-parameters of VotingClassifier
[ "python", "scikit-learn", "machine-learning", "sklearn" ]
[ "Python" ]
In my last blog post I showed how to create a multi class classification ensemble using scikit-learn's +++<cite>+++http://scikit-learn.org/stable/modules/ensemble.html#voting-classifier[VotingClassifier]+++</cite>+++ and finished mentioning that I didn't know which classifiers should be part of the ensemble. We need to get a better score with each of the classifiers in the ensemble otherwise they can be excluded. We have a TF/IDF based classifier as well as well as the classifiers I wrote about in the last post. This is the code describing the classifiers: [source,python] ---- import pandas as pd from sklearn import linear_model from sklearn.ensemble import VotingClassifier from sklearn.feature_extraction.text import CountVectorizer, TfidfVectorizer from sklearn.naive_bayes import MultinomialNB from sklearn.pipeline import Pipeline Y_COLUMN = "author" TEXT_COLUMN = "text" unigram_log_pipe = Pipeline([ ('cv', CountVectorizer()), ('logreg', linear_model.LogisticRegression()) ]) ngram_pipe = Pipeline([ ('cv', CountVectorizer(ngram_range=(1, 2))), ('mnb', MultinomialNB()) ]) tfidf_pipe = Pipeline([ ('tfidf', TfidfVectorizer(min_df=3, max_features=None, strip_accents='unicode', analyzer='word', token_pattern=r'\w{1,}', ngram_range=(1, 3), use_idf=1, smooth_idf=1, sublinear_tf=1, stop_words='english')), ('mnb', MultinomialNB()) ]) classifiers = [ ("ngram", ngram_pipe), ("unigram", unigram_log_pipe), ("tfidf", tfidf_pipe), ] mixed_pipe = Pipeline([ ("voting", VotingClassifier(classifiers, voting="soft")) ]) ---- Now we're ready to work out which classifiers are needed. We'll use http://scikit-learn.org/stable/modules/generated/sklearn.model_selection.GridSearchCV.html[GridSearchCV] to do this. [source,python] ---- from sklearn.model_selection import GridSearchCV def combinations_on_off(num_classifiers): return [[int(x) for x in list("{0:0b}".format(i).zfill(num_classifiers))] for i in range(1, 2 ** num_classifiers)] param_grid = dict( voting__weights=combinations_on_off(len(classifiers)) ) train_df = pd.read_csv("train.csv", usecols=[Y_COLUMN, TEXT_COLUMN]) y = train_df[Y_COLUMN].copy() X = pd.Series(train_df[TEXT_COLUMN]) grid_search = GridSearchCV(mixed_pipe, param_grid=param_grid, n_jobs=-1, verbose=10, scoring="neg_log_loss") grid_search.fit(X, y) cv_results = grid_search.cv_results_ for mean_score, params in zip(cv_results["mean_test_score"], cv_results["params"]): print(params, mean_score) print("Best score: %0.3f" % grid_search.best_score_) print("Best parameters set:") best_parameters = grid_search.best_estimator_.get_params() for param_name in sorted(param_grid.keys()): print("\t%s: %r" % (param_name, best_parameters[param_name])) ---- Let's run the grid scan and see what it comes up with: [source,text] ---- {'voting__weights': [0, 0, 1]} -0.60533660756 {'voting__weights': [0, 1, 0]} -0.474562462086 {'voting__weights': [0, 1, 1]} -0.508363479586 {'voting__weights': [1, 0, 0]} -0.697231760084 {'voting__weights': [1, 0, 1]} -0.456599644003 {'voting__weights': [1, 1, 0]} -0.409406571361 {'voting__weights': [1, 1, 1]} -0.439084397238 Best score: -0.409 Best parameters set: voting__weights: [1, 1, 0] ---- We can see from the output that we've tried every combination of each of the classifiers. The output suggests that we should only include the +++<cite>+++ngram_pipe+++</cite>+++ and +++<cite>+++unigram_log_pipe+++</cite>+++ classifiers. +++<cite>+++tfidf_pipe+++</cite>+++ should not be included - our log loss score is worse when it is added. The https://gist.github.com/mneedham/3936d657b50b7c07cd3fe0c8d8c71496[code is on GitHub] if you want to see it all in one place
null
null
[ 0.014413460157811642, -0.0363241545855999, 0.0017329496331512928, 0.017811892554163933, 0.05449788644909859, 0.013774537481367588, -0.011079471558332443, 0.0018120822496712208, -0.016605574637651443, -0.00501177366822958, 0.004624724388122559, 0.01028770487755537, -0.06273604184389114, 0.013607478700578213, -0.007082225754857063, 0.07611212134361267, 0.050251614302396774, 0.024400021880865097, -0.0021780708339065313, 0.017338352277874947, 0.023072218522429466, 0.028529038652777672, 0.032362379133701324, 0.026456432417035103, 0.024296622723340988, -0.006577583029866219, 0.02331007644534111, 0.017215443775057793, -0.04007774591445923, -0.0010376942809671164, 0.02214990183711052, 0.03392026200890541, -0.005788219626992941, -0.003355718217790127, 0.04264752194285393, 0.01121522020548582, -0.043303653597831726, 0.03233812376856804, 0.016447274014353752, 0.012497492134571075, -0.03690146282315254, 0.022306883707642555, -0.00532472925260663, 0.017507502809166908, -0.0592610128223896, 0.01868824101984501, -0.04405999556183815, 0.013675848953425884, 0.03692193329334259, -0.01973862387239933, -0.05531558021903038, 0.02632010169327259, -0.008362039923667908, -0.04251639544963837, 0.03322626277804375, 0.044119883328676224, 0.013091475702822208, -0.07517269253730774, 0.0432773157954216, -0.033311307430267334, -0.01692832075059414, 0.006226609461009502, -0.023671504110097885, 0.007894612848758698, 0.002867809496819973, -0.018164535984396935, -0.006112240254878998, 0.013829638250172138, -0.056312549859285355, 0.004990363493561745, -0.01589914783835411, 0.02650877647101879, 0.012555367313325405, 0.00883246585726738, -0.02061566151678562, -0.02705332264304161, 0.01240532286465168, 0.07656939327716827, 0.014843298122286797, 0.008786382153630257, 0.0018705757101997733, -0.05381156504154205, 0.03574070334434509, 0.04966728389263153, -0.022863851860165596, -0.03433915227651596, -0.03190908581018448, -0.043586794286966324, -0.05735047161579132, 0.05427628755569458, 0.015279438346624374, -0.05640833079814911, 0.04840787872672081, 0.019592752680182457, -0.005760406143963337, 0.01841631345450878, 0.002102264203131199, 0.010367922484874725, -0.016234278678894043, -0.019442258402705193, -0.047024235129356384, -0.04669497162103653, 0.026995837688446045, 0.03212307021021843, -0.07424484938383102, -0.02995867282152176, 0.01956208236515522, -0.0008425294072367251, -0.006438885815441608, 0.014935353770852089, 0.013783613219857216, -0.008625196292996407, -0.02399369329214096, -0.041212473064661026, -0.09377112984657288, 0.047381576150655746, 0.002247229916974902, -0.029683126136660576, -0.023501139134168625, 0.012284902855753899, 0.05298345535993576, 0.0602402500808239, -0.046495843678712845, 0.07212164252996445, -0.024017762392759323, 0.03820858150720596, 0.018097953870892525, 0.06026686728000641, -0.013540838845074177, -0.08407199382781982, -0.027418136596679688, 0.051146894693374634, -0.02142084389925003, 0.03474145382642746, -0.012537110596895218, -0.025697557255625725, -0.041267529129981995, 0.013538218103349209, 0.06625037640333176, 0.03960990905761719, 0.024867627769708633, -0.020931798964738846, -0.0010004532523453236, 0.00669712433591485, 0.004983983933925629, 0.008685769513249397, -0.011077525094151497, -0.019006745889782906, -0.041239283978939056, -0.017099611461162567, -0.006256061606109142, 0.0024391270708292723, 0.02797909639775753, -0.015692362561821938, 0.010433673858642578, 0.07964629679918289, 0.03155532106757164, 0.00024776835925877094, 0.01647171564400196, 0.020059436559677124, 0.01968022808432579, 0.025825034826993942, 0.015130129642784595, 0.0641184002161026, 0.011839054524898529, -0.038789961487054825, 0.031609274446964264, 0.06579800695180893, -0.0010212535271421075, 0.02837909571826458, -0.04144597798585892, -0.0839022547006607, 0.049320049583911896, -0.03881850093603134, -0.019346890971064568, 0.019000833854079247, 0.06004565954208374, 0.029161237180233, 0.07441385090351105, 0.021136660128831863, -0.06307274103164673, 0.033075377345085144, -0.005819991696625948, 0.02134016528725624, 0.0396122969686985, 0.010502863675355911, 0.1031518429517746, 0.006584207061678171, 0.00871023628860712, 0.02800488844513893, -0.054525360465049744, -0.04595223814249039, -0.009349377825856209, -0.01029155496507883, 0.06934601813554764, -0.008586619980633259, -0.00004584630733006634, 0.08828827738761902, 0.01997976191341877, 0.02978593483567238, 0.037215787917375565, -0.014355278573930264, 0.009419361129403114, -0.018463265150785446, -0.0700603500008583, 0.03775345906615257, 0.0138916727155447, -0.05804939568042755, -0.016694283112883568, 0.0024140109308063984, -0.03544601798057556, -0.0005559558630920947, 0.017468968406319618, -0.04119425639510155, 0.03069065697491169, 0.050938013941049576, 0.07992647588253021, -0.005115001928061247, 0.04801401495933533, -0.03340389207005501, 0.03167341277003288, -0.0330696627497673, -0.035565443336963654, -0.03217658773064613, 0.023969154804944992, 0.12475740909576416, 0.0587635412812233, -0.01786702312529087, -0.051186177879571915, 0.008144868537783623, -0.009522429667413235, -0.04354716092348099, 0.032054342329502106, -0.00559768732637167, -0.03040376678109169, -0.016433408483862877, -0.02969634346663952, -0.04361099749803543, 0.0263384860008955, -0.03999609872698784, -0.020284442231059074, 0.09933099895715714, -0.03689303621649742, 0.055035851895809174, 0.013561926782131195, 0.01668904908001423, 0.010246318764984608, 0.0038688327185809612, -0.030350446701049805, -0.005414429120719433, 0.03853997588157654, -0.011820748448371887, 0.0026721979957073927, -0.060053884983062744, -0.03252889961004257, -0.01095848623663187, -0.027776794508099556, -0.007673649583011866, 0.08783840388059616, 0.005276788491755724, 0.0003572783316485584, 0.03972926735877991, -0.0011865017004311085, 0.003116574138402939, -0.005461649503558874, -0.054824016988277435, -0.0333678163588047, -0.054493919014930725, 0.034809660166502, 0.02452593483030796, 0.042389534413814545, -0.002523300237953663, 0.03753664717078209, -0.012387187220156193, -0.009563414379954338, 0.006031396333128214, 0.059562135487794876, 0.02235504426062107, -0.02275943197309971, -0.05226145684719086, -0.017469516023993492, 0.05782710015773773, -0.03433509171009064, -0.019663752987980843, 0.008423063904047012, -0.07315345853567123, 0.012669853866100311, -0.06379365175962448, -0.020431451499462128, 0.02443099394440651, 0.021461229771375656, 0.04411841183900833, 0.007682213094085455, -0.044418808072805405, 0.02603553794324398, 0.008099190890789032, -0.0018240943318232894, 0.03974408283829689, 0.007241495884954929, 0.046454187482595444, -0.012697980739176273, 0.03528573736548424, 0.02454640343785286, -0.010520251467823982, 0.013551553711295128, -0.042688075453042984, 0.009066550992429256, -0.024666178971529007, -0.2759588062763214, 0.004384126979857683, 0.021567657589912415, -0.029229123145341873, -0.01065323781222105, -0.04152137041091919, 0.028007736429572105, -0.01667870208621025, -0.01185810286551714, 0.006377271842211485, -0.01684272103011608, -0.03555460646748543, 0.007386206183582544, 0.04733070731163025, 0.007634153123944998, -0.008847229182720184, -0.023768490180373192, -0.02254667691886425, 0.04371414706110954, 0.07368717342615128, 0.0028948490507900715, -0.058891113847494125, -0.0371382050216198, 0.04145851358771324, -0.004166135098785162, 0.06884804368019104, -0.07187001407146454, 0.03353641927242279, -0.06548433005809784, -0.029447628185153008, 0.012739281170070171, -0.015045425854623318, -0.012861349619925022, -0.013777022249996662, -0.003549715271219611, -0.040153440088033676, 0.02606993354856968, 0.028322074562311172, -0.02032613940536976, 0.033543456345796585, -0.03864068537950516, -0.03294498100876808, -0.011710685677826405, -0.0020205972250550985, 0.05078596621751785, 0.01961495541036129, -0.042098913341760635, -0.0046512531116604805, -0.044069454073905945, 0.07246515154838562, -0.01281457208096981, -0.026113901287317276, -0.023386703804135323, 0.03623003885149956, -0.025837182998657227, -0.013958188705146313, 0.011025956831872463, 0.004706858191639185, -0.06771034747362137, -0.0035133622586727142, -0.03665537014603615, -0.03466970473527908, -0.00011315310257486999, -0.0752866119146347, -0.058591607958078384, -0.0387609601020813, -0.06516122817993164, -0.0035340588074177504, 0.04319104179739952, 0.020225325599312782, -0.03687283769249916, 0.024302547797560692, -0.022806037217378616, -0.10038498044013977, -0.0012894420651718974, -0.01639385148882866, 0.009805971756577492, 0.024568239226937294, 0.015265724621713161, 0.07189333438873291, -0.05491496995091438, -0.0807996392250061, 0.04929348826408386, -0.029566729441285133, -0.020097482949495316, -0.024851558730006218, -0.0045881872065365314, 0.03130118548870087, 0.0015506113413721323, -0.015953470021486282, 0.05359639227390289, 0.01343589462339878, 0.015799466520547867, -0.00482357619330287, -0.007536676246672869, 0.06891174614429474, 0.008114326745271683, -0.007065874990075827, 0.0167053434997797, 0.05499013513326645, 0.017088670283555984, -0.05642881616950035, -0.031005075201392174, -0.048149432986974716, -0.020418871194124222, 0.016957782208919525, -0.042118966579437256, 0.004774938803166151, 0.049712833017110825, -0.008893181569874287, 0.002473794622346759, -0.03266478702425957, 0.02356901206076145, -0.027191387489438057, 0.017466755583882332, -0.016854852437973022, 0.0030159619636833668, 0.012051964178681374, 0.02043844573199749, 0.011502637527883053, -0.03622620552778244, 0.040002211928367615, -0.03265281021595001, -0.025227263569831848, -0.026416754350066185, -0.03904252499341965, 0.00500611774623394, -0.020823009312152863, -0.022486787289381027, -0.02390468306839466, -0.024014689028263092, 0.01632937788963318, 0.004905508831143379, -0.02879728563129902, 0.0578073151409626, -0.019379958510398865, -0.05171842500567436, 0.0006678953068330884, 0.024323459714651108, 0.011530113406479359, -0.021914729848504066, -0.043297041207551956, 0.012803256511688232, 0.027343792840838432, 0.060016438364982605, 0.013199076987802982, 0.010134723968803883, 0.014953491277992725, -0.008225060999393463, 0.011578980833292007, 0.01904868707060814, 0.026484765112400055, -0.007143804337829351, -0.024519624188542366, -0.01902013272047043, 0.027048634365200996, 0.026511458680033684, 0.028114857152104378, -0.009044735692441463, -0.06523910909891129, 0.034273289144039154, -0.0009267367422580719, 0.0004636097000911832, -0.025848470628261566, 0.03517511487007141, 0.04842963069677353, -0.020016172900795937, 0.03391952067613602, 0.011269413866102695, 0.024813339114189148, 0.026849918067455292, -0.007389237638562918, -0.026445545256137848, 0.02730179764330387, -0.046717580407857895, -0.022770121693611145, 0.06179409846663475, 0.03606985881924629, -0.014493287540972233, 0.028824742883443832, -0.032232362776994705, -0.024385865777730942, -0.0009136833250522614, 0.005151321645826101, 0.03982926160097122, 0.06372563540935516, -0.04310895875096321, -0.024397941306233406, -0.025641469284892082, -0.01665659062564373, -0.05915357917547226, 0.007957271300256252, 0.01855599880218506, -0.011417548172175884, -0.03154221549630165, -0.06691907346248627, -0.010504758916795254, 0.013306218199431896, -0.03423536196351051, 0.005759034771472216, -0.025975219905376434, 0.01059726718813181, -0.0355817936360836, 0.009011614136397839, 0.06844313442707062, -0.07492193579673767, 0.008249716833233833, -0.016463933512568474, -0.027004972100257874, 0.000969170534517616, 0.01256062462925911, -0.08825673162937164, -0.023577377200126648, -0.011094468645751476, 0.005630286410450935, -0.062048766762018204, -0.018528081476688385, -0.013951835222542286, 0.029194394126534462, -0.001522408565506339, 0.0058554233983159065, -0.0007058772607706487, 0.015239461325109005, -0.014034087769687176, -0.039765775203704834, 0.02756086364388466, 0.012946633622050285, 0.00004294954123906791, 0.02146129310131073, -0.01965605467557907, 0.025410527363419533, -0.033148083835840225, 0.008208263665437698, 0.03710603713989258, -0.006538116838783026, 0.0012614426668733358, -0.03937596455216408, 0.0008102442952804267, 0.01909724250435829, 0.026220232248306274, 0.011725716292858124, -0.004200865048915148, -0.05007334053516388, 0.0036896944511681795, -0.037718262523412704, 0.010122801177203655, 0.008544650860130787, -0.005748316645622253, 0.006119718309491873, 0.04306173324584961, 0.006470637861639261, 0.038479894399642944, -0.017252137884497643, -0.049785010516643524, 0.09013651311397552, -0.04061663895845413, -0.03916298970580101, -0.022024352103471756, -0.017675945535302162, 0.030402742326259613, -0.021867673844099045, 0.038344621658325195, -0.05416189506649971, 0.05520239472389221, -0.01926768757402897, 0.019446391612291336, 0.0077696493826806545, -0.0058699906803667545, 0.016444170847535133, -0.054531410336494446, -0.011722387745976448, -0.08495306968688965, -0.035111889243125916, 0.06743327528238297, -0.014261897653341293, 0.006792091764509678, -0.0012365662259981036, -0.05620771646499634, 0.029541300609707832, -0.07074161618947983, -0.016507139429450035, 0.028950823470950127, 0.005625842604786158, 0.0019908726681023836, 0.009427070617675781, -0.02121404930949211, 0.024202045053243637, 0.008065841160714626, -0.03435783460736275, -0.012691131792962551, -0.03798271343111992, 0.07334894686937332, -0.029865769669413567, 0.003003857098519802, -0.022302871569991112, 0.0059744808822870255, 0.047077346593141556, 0.048022832721471786, 0.011284532956779003, 0.004415347706526518, -0.02338077872991562, 0.04493017494678497, 0.018883846700191498, -0.01137978583574295, -0.021891172975301743, 0.004989875014871359, 0.0322609543800354, -0.05417332798242569, 0.05115363746881485, -0.002188138896599412, -0.006438495125621557, -0.05628226697444916, 0.06198827549815178, 0.004688039422035217, -0.0399644710123539, -0.06588717550039291, 0.015209361910820007, -0.06199266389012337, 0.0015111671527847648, -0.029707929119467735, 0.0009367924649268389, -0.04228707402944565, 0.06696172058582306, 0.010050195269286633, -0.01595510169863701, 0.07186243683099747, -0.0483761690557003, -0.019129153341054916, 0.04380137100815773, 0.0663648471236229, 0.06295560300350189, 0.06017554551362991, 0.010480000637471676, 0.059951309114694595, -0.03409625589847565, -0.04602312669157982, 0.022437959909439087, -0.015263393521308899, -0.015252621844410896, -0.02558065764605999, 0.014930350705981255, 0.056160878390073776, 0.030446482822299004, 0.06688980013132095, -0.012521849945187569, 0.011931159533560276, 0.02804301679134369, 0.03165320307016373, 0.0037071662954986095, 0.028557460755109787, -0.014219650998711586, 0.008780201897025108, -0.04354340210556984, -0.023579677566885948, 0.019463082775473595, 0.017652809619903564, -0.026324797421693802, 0.006223190575838089, -0.014161418192088604, 0.02279428020119667, 0.017935290932655334, 0.058578964322805405, 0.08175574988126755, -0.04153377190232277, -0.048309676349163055, -0.014180663041770458, 0.03848114609718323, -0.0036530226934701204, 0.005471241194754839, 0.005374066065996885, 0.0019119606586173177, 0.006048616021871567, -0.029651613906025887, -0.013176976703107357, -0.03239777684211731, -0.004956483840942383, 0.014397034421563148, -0.0358133390545845, -0.005132801830768585, 0.0414896123111248, -0.0064356764778494835, -0.0348767414689064, -0.03254871070384979, -0.013606661930680275, -0.054973289370536804, -0.055169470608234406, -0.02014485001564026, 0.020432548597455025, 0.015394575893878937, -0.0004644366563297808, -0.02853161096572876, -0.009242656640708447, -0.018748749047517776, 0.03428714722394943, -0.04932226613163948, -0.013631061650812626, 0.0008986806496977806, 0.015175726264715195, -0.002602619817480445, 0.006722358986735344, 0.049140144139528275, 0.02295231819152832, -0.009900457225739956, 0.015415332280099392, 0.007562491577118635, 0.039511118084192276, 0.03794495761394501, 0.032103877514600754, -0.07538645714521408, -0.018802382051944733, 0.02520197071135044, -0.016268761828541756, -0.0681392028927803, 0.026022708043456078, 0.03534989431500435, 0.0029814268928021193, 0.05218835175037384, 0.0024762670509517193, -0.022551150992512703, -0.05185876041650772, -0.01755349338054657, -0.027783364057540894, 0.03242819383740425, 0.01258987095206976, -0.012190131470561028, 0.068087138235569, 0.015556719154119492, -0.0034566307440400124, -0.03710725158452988, 0.018984435126185417, -0.022615857422351837, -0.00007527760317316279, -0.07283292710781097, -0.02510399930179119, -0.05545172467827797, -0.056311074644327164, -0.013935469090938568, 0.04994189366698265, -0.041307490319013596, -0.03386138007044792, 0.0018275179900228977, -0.012073745019733906, -0.0006551889819093049, 0.0317109115421772, -0.05002327635884285, -0.01269615814089775, -0.010941245593130589, -0.006453384179621935, -0.029927169904112816, 0.037818506360054016, -0.03142356500029564, 0.03553100675344467, 0.019627099856734276, -0.04282025247812271, -0.01118346955627203, -0.0026871073059737682, 0.01995099149644375, 0.05952822417020798, -0.015402651391923428, 0.006533111445605755 ]
[ -0.0735633447766304, -0.013299467042088509, -0.006754464469850063, -0.028610793873667717, 0.06133567914366722, -0.05406599119305611, 0.017032649368047714, 0.03635045140981674, 0.009249149821698666, -0.0003301631077192724, 0.006457236595451832, -0.07319638133049011, -0.026907112449407578, -0.027392257004976273, 0.08033864945173264, -0.012174644507467747, 0.01691979542374611, -0.06215978041291237, -0.020631734281778336, 0.019752275198698044, -0.0038632708601653576, 0.005680544301867485, -0.03342015668749809, -0.02266206033527851, 0.0059502338990569115, 0.057289693504571915, 0.04883773624897003, -0.06569743901491165, -0.014497053809463978, -0.22743898630142212, 0.03725562244653702, -0.028003565967082977, 0.06024160981178284, -0.035552576184272766, 0.023293325677514076, 0.042087581008672714, 0.020099256187677383, 0.02747299335896969, -0.021506590768694878, 0.0519532710313797, -0.013516969978809357, -0.012639830820262432, -0.0639800950884819, -0.03475623577833176, 0.08582153916358948, -0.034427460283041, -0.026321055367588997, -0.037365663796663284, -0.045000430196523666, 0.024974005296826363, -0.031039966270327568, -0.03561558574438095, -0.013025022111833096, 0.017164723947644234, -0.013623278588056564, 0.028048180043697357, 0.016665581613779068, 0.06766007095575333, 0.05543455109000206, 0.0078028058633208275, 0.013970250263810158, 0.012213645502924919, -0.1418820172548294, 0.09905662387609482, 0.003692289348691702, 0.0677189826965332, -0.052579812705516815, -0.023892635479569435, -0.002752006519585848, 0.07865284383296967, 0.027409374713897705, -0.014794325456023216, 0.01668872870504856, 0.060994118452072144, -0.02420341782271862, 0.012189698405563831, 0.023112544789910316, 0.021624037995934486, 0.05266323685646057, -0.030875755473971367, -0.023563221096992493, 0.03109617531299591, -0.018192380666732788, -0.0649401992559433, 0.05364379659295082, 0.014206629246473312, 0.01036799419671297, 0.053326718509197235, 0.0262824147939682, 0.018800050020217896, 0.03934846073389053, -0.012428008019924164, 0.025443755090236664, 0.0248551107943058, -0.0627061277627945, -0.02694009430706501, 0.003136314917355776, 0.012938040308654308, -0.0253245048224926, 0.3917028307914734, -0.033153075724840164, -0.012356102466583252, 0.007843341678380966, 0.05345798656344414, -0.00029764982173219323, -0.07016409188508987, -0.00781393051147461, -0.055434394627809525, -0.029337333515286446, -0.0536629743874073, 0.025518743321299553, -0.002223292365670204, 0.025894658640027046, -0.04382223263382912, 0.0013702441938221455, -0.012997845187783241, 0.0033081588335335255, 0.040879152715206146, 0.014138172380626202, 0.030664298683404922, -0.028460128232836723, -0.030903832986950874, 0.021484166383743286, -0.038076285272836685, 0.0025346260517835617, 0.00788851547986269, 0.041170280426740646, 0.07181358337402344, 0.013025173917412758, -0.017979376018047333, 0.023118995130062103, -0.030850041657686234, -0.12258263677358627, -0.021993106231093407, 0.024152470752596855, -0.006584190763533115, 0.01066781859844923, -0.003923390060663223, -0.0011020626407116652, -0.008151818066835403, -0.009592989459633827, -0.01920844241976738, 0.04481777176260948, 0.0003011993831023574, -0.04633323848247528, 0.1471347212791443, -0.060110270977020264, -0.010681346990168095, -0.023401519283652306, -0.03716961666941643, -0.008606312796473503, 0.019650109112262726, -0.04306571185588837, -0.06471733748912811, 0.02374243177473545, 0.017745234072208405, 0.066843181848526, -0.020446917042136192, -0.05326750501990318, -0.01795641891658306, -0.015981897711753845, -0.0587751679122448, -0.003665264928713441, 0.04323989525437355, 0.056384339928627014, -0.08983831107616425, -0.023984625935554504, 0.03012208081781864, -0.026522263884544373, -0.06442608684301376, 0.020701555535197258, 0.029090963304042816, -0.006692909169942141, 0.018901269882917404, 0.03690538555383682, -0.02366509847342968, -0.03237961605191231, 0.01579156145453453, 0.07274129241704941, -0.02133181504905224, 0.02874266915023327, 0.016981136053800583, -0.05450564622879028, -0.005023959092795849, -0.005105539690703154, -0.03808056190609932, -0.05993083119392395, -0.05438243970274925, -0.01610005460679531, -0.010118616744875908, -0.009650874882936478, -0.0072544049471616745, -0.030129151418805122, 0.06351323425769806, -0.03929644450545311, 0.007346434984356165, 0.04569605365395546, -0.03485237807035446, 0.017651593312621117, -0.05211523920297623, -0.03334864601492882, 0.0620550736784935, 0.0034534274600446224, 0.029533667489886284, -0.04657497629523277, 0.04329117387533188, 0.05278356373310089, -0.029132099822163582, 0.07875452935695648, 0.02253277599811554, -0.018110113218426704, -0.029338808730244637, -0.028976447880268097, 0.018939994275569916, -0.015467757359147072, -0.011834202334284782, -0.026970578357577324, 0.021188808605074883, -0.005167399067431688, 0.02575387991964817, -0.02689148485660553, 0.0002838789951056242, -0.05176321789622307, -0.3484432101249695, -0.03560672327876091, 0.04187304526567459, -0.001176141551695764, 0.00911078229546547, -0.06280365586280823, 0.023035677149891853, 0.019417395815253258, -0.024173947051167488, 0.05546414107084274, 0.10617151856422424, 0.0305283572524786, 0.006518550682812929, -0.0708552747964859, -0.0023272023536264896, 0.0334935337305069, -0.028934193775057793, -0.039891116321086884, -0.032481301575899124, 0.021979790180921555, 0.003237395780161023, 0.023837685585021973, 0.017551470547914505, -0.028904810547828674, 0.012183479964733124, -0.04934491962194443, 0.0931328535079956, 0.018553460016846657, 0.05176868289709091, -0.029053237289190292, 0.022685464471578598, 0.051946740597486496, 0.022268736734986305, -0.05565088987350464, 0.03695334866642952, -0.02902272902429104, -0.004450112581253052, 0.005384135991334915, -0.03760684281587601, -0.05080140009522438, -0.025052975863218307, 0.0540296696126461, -0.02098337933421135, -0.05086309835314751, -0.023353051394224167, 0.015234014950692654, -0.02211957611143589, -0.013615086674690247, -0.037845101207494736, 0.05857115238904953, 0.021630842238664627, 0.028726790100336075, 0.03250183165073395, 0.024684540927410126, -0.0025548909325152636, 0.006527028977870941, -0.11135529726743698, 0.014617843553423882, -0.009917320683598518, -0.012658879160881042, 0.042604710906744, 0.015407245606184006, 0.035239312797784805, -0.06909484416246414, -0.03293685242533684, 0.013785246759653091, -0.02918269671499729, -0.013651184737682343, 0.030166087672114372, -0.03721396252512932, -0.05231591314077377, 0.08114466816186905, 0.0030172192491590977, -0.003280442673712969, 0.0703895315527916, 0.017485428601503372, 0.008347684517502785, 0.032520610839128494, 0.045141205191612244, 0.01584099419414997, 0.04242675378918648, 0.024176836013793945, 0.006396136712282896, -0.019135629758238792, 0.020128313452005386, 0.00698317913338542, 0.008203026838600636, 0.01669228821992874, 0.04536387696862221, 0.05089974030852318, 0.00547504797577858, 0.013794507831335068, -0.009707456454634666, 0.008876461535692215, 0.053434114903211594, -0.006485621444880962, -0.26108479499816895, 0.027390336617827415, 0.08519142866134644, 0.08260761946439743, 0.03367877006530762, -0.013957547955214977, 0.01566295325756073, -0.09579260647296906, -0.013076297007501125, -0.011314496397972107, -0.008115224540233612, 0.0317000113427639, 0.009448766708374023, -0.009169756434857845, -0.009867639280855656, -0.028300495818257332, 0.08519292622804642, -0.04762939363718033, 0.035844579339027405, -0.01462243776768446, 0.030076533555984497, -0.002154397778213024, 0.17215301096439362, 0.012640080414712429, -0.008740363642573357, 0.006511832121759653, -0.011608422733843327, -0.01694735325872898, 0.03560585156083107, -0.012118329294025898, 0.03940824791789055, -0.03354346752166748, 0.04647934436798096, 0.004512915387749672, 0.007219506893306971, -0.01500062458217144, -0.02326115034520626, -0.015284375287592411, 0.011617586016654968, -0.021008387207984924, 0.03881428390741348, 0.021475685760378838, -0.0694936141371727, -0.0006876075058244169, 0.05272776633501053, 0.0051358724012970924, -0.0060875797644257545, -0.07317649573087692, -0.04805978760123253, 0.012742383405566216, -0.002543351147323847, -0.028922827914357185, -0.045105479657649994, -0.01470221672207117, -0.001072525279596448, 0.07285972684621811, 0.04994412139058113, -0.022283783182501793, 0.021549444645643234, 0.006456783507019281, 0.006520733702927828, -0.04960942640900612, 0.08631034195423126, 0.02512865886092186, -0.015719685703516006 ]
[ 0.012010212987661362, -0.02095785364508629, -0.03663238510489464, 0.013249334879219532, 0.018496543169021606, 0.012233602814376354, -0.019803067669272423, 0.013520577922463417, -0.0061410157941281796, -0.007845890708267689, -0.03576720878481865, -0.007243585307151079, 0.011977411806583405, -0.06230344623327255, -0.03859807923436165, -0.01755291223526001, -0.018913468345999718, 0.003358332673087716, 0.010297007858753204, -0.012539169751107693, -0.03905550017952919, 0.06044435873627663, 0.03192455694079399, 0.049763232469558716, 0.008118102326989174, 0.00358675722964108, -0.044102463871240616, 0.028607506304979324, 0.016530582681298256, -0.08511137217283249, -0.026638517156243324, -0.03349348157644272, -0.002394086914137006, 0.023093845695257187, -0.04009357467293739, -0.021944746375083923, -0.02322779782116413, 0.03455674648284912, -0.015341034159064293, 0.03056577406823635, -0.03504875302314758, -0.0391123965382576, -0.0003707768628373742, -0.013355476781725883, -0.01811828464269638, 0.012403689324855804, -0.04823252558708191, -0.049578242003917694, 0.021324535831809044, -0.02736845053732395, -0.0643233209848404, -0.012165157124400139, -0.039842139929533005, 0.01718015782535076, 0.0016381097957491875, -0.02398456260561943, 0.0020858163479715586, -0.016050707548856735, 0.015368829481303692, -0.026674985885620117, -0.0005584469181485474, 0.0016380212036892772, 0.0023453966714441776, -0.009881957434117794, 0.03033394366502762, 0.008177929557859898, -0.04824669286608696, 0.01824495568871498, 0.017048420384526253, 0.025377660989761353, 0.001871411339379847, 0.018999731168150902, 0.009377784095704556, -0.02571033500134945, 0.011772150173783302, 0.015501162968575954, 0.023770421743392944, -0.0031679163221269846, 0.05100056156516075, 0.018745293840765953, -0.05811918526887894, 0.0513724759221077, 0.017179660499095917, -0.0025332854129374027, 0.028099719434976578, -0.03734070807695389, -0.016039783135056496, 0.011105342768132687, 0.018846703693270683, 0.00943179801106453, -0.03047642856836319, 0.02202935516834259, 0.03405868634581566, 0.00077135453466326, -0.085748091340065, 0.020923037081956863, -0.0041693816892802715, 0.008421221747994423, 0.03274011239409447, 0.8247900605201721, -0.04301638528704643, -0.002785133896395564, 0.008306331001222134, 0.0007421828340739012, 0.006219817325472832, -0.007893873378634453, 0.013502559624612331, -0.03737541660666466, 0.02502446249127388, -0.04039830341935158, 0.024995405226945877, 0.000806173833552748, 0.04095383360981941, 0.052673060446977615, 0.03295788913965225, 0.05352926626801491, -0.004075547680258751, 0.02198132313787937, -0.009483729489147663, 0.04507267475128174, -0.0595710389316082, -0.032397761940956116, 0.009030467830598354, -0.01786479912698269, 0.018582461401820183, -0.16627058386802673, 0.00014417195052374154, -7.16236422137697e-33, 0.04138968512415886, -0.018302936106920242, 0.0022223778069019318, 0.0024106628261506557, 0.015154845081269741, -0.0035080902744084597, -0.00520494906231761, -0.03431085869669914, -0.039508022367954254, -0.012179829180240631, 0.03291059285402298, 0.014564888551831245, 0.02514570578932762, 0.008016029372811317, 0.005017464980483055, -0.020794417709112167, -0.00660739978775382, 0.02724936418235302, -0.01756405644118786, 0.011304971762001514, 0.05344009026885033, 0.02949732169508934, 0.023424509912729263, 0.003658786416053772, 0.0339740552008152, -0.0016721191350370646, 0.02333969436585903, -0.0017379681812599301, -0.0421857051551342, -0.017433514818549156, -0.06508412957191467, 0.004275070037692785, -0.014265147969126701, -0.055749572813510895, 0.012777411378920078, -0.08155971020460129, -0.03161178156733513, 0.03755135089159012, -0.034709613770246506, -0.02832036279141903, -0.015892988070845604, -0.011807211674749851, -0.039321236312389374, -0.025317400693893433, -0.024681508541107178, 0.050003550946712494, 0.006912992335855961, 0.05156932398676872, -0.003295850707218051, -0.005810928530991077, 0.005045102443546057, -0.037410423159599304, 0.029736829921603203, 0.005362061318010092, -0.013794535771012306, 0.042965471744537354, -0.007229136768728495, 0.03969968482851982, 0.026908429339528084, -0.00883029866963625, -0.03281660005450249, 0.014160199090838432, 0.0019179999362677336, 0.0007464077789336443, 0.022772621363401413, -0.011458184570074081, 0.03135993331670761, 0.005270831752568483, 0.05233771726489067, -0.03559025377035141, -0.0035139748360961676, -0.015421812422573566, -0.052923575043678284, -0.018554093316197395, 0.0046942331828176975, -0.037009164690971375, 0.022869309410452843, -0.022769246250391006, 0.008432300761342049, 0.036742836236953735, 0.01596764661371708, -0.011552064679563046, 0.015417608432471752, -0.023683415725827217, -0.00791217666119337, -0.016469726338982582, 0.01044975034892559, 0.011093810200691223, -0.02797018736600876, 0.017877884209156036, 0.0015328640583902597, 0.014534681104123592, -0.005007915198802948, 0.001331835170276463, -0.03383602574467659, 7.2180789801861e-33, 0.007984294556081295, -0.039449017494916916, -0.0304583590477705, -0.0021031275391578674, 0.0220014825463295, -0.008891736157238483, 0.0012173069408163428, -0.0018620373448356986, -0.04875845089554787, 0.03157789632678032, 0.006239418871700764, -0.011220759712159634, 0.021565614268183708, -0.017825987190008163, 0.04611136391758919, -0.009530136361718178, -0.0221962071955204, 0.018008245155215263, 0.018268300220370293, -0.0019210487371310592, 0.04131268709897995, 0.0016414872370660305, 0.026539701968431473, 0.008099779486656189, -0.026828661561012268, 0.04988132044672966, -0.02816665545105934, 0.019712600857019424, -0.0208490751683712, -0.002938065677881241, 0.01631741411983967, -0.032881539314985275, -0.031484074890613556, -0.009661498479545116, -0.00937686488032341, 0.03225288912653923, -0.006601190660148859, -0.05372628569602966, 0.020599469542503357, 0.017050964757800102, 0.012097752653062344, 0.029512763023376465, -0.008613831363618374, -0.0008261655457317829, 0.005419725552201271, -0.007292399648576975, 0.002894946839660406, -0.003994133789092302, 0.029568130150437355, -0.009155998937785625, -0.013358048163354397, 0.01598593406379223, 0.013908520340919495, 0.06884700059890747, -0.006800185889005661, 0.00016433843120466918, 0.008842451497912407, 0.006354076787829399, -0.061458952724933624, 0.012433498166501522, -0.029071001335978508, 0.0026511154137551785, 0.008560155518352985, -0.007125925738364458, -0.008246079087257385, -0.01801055669784546, -0.026908067986369133, 0.013472226448357105, 0.023555977270007133, 0.015240979380905628, 0.00828062929213047, -0.01874624565243721, 0.019423622637987137, 0.02675364352762699, 0.007687529549002647, 0.011572202667593956, -0.00692402059212327, 0.012281951494514942, -0.012753955088555813, 0.0014530901098623872, 0.006712544243782759, 0.0045196120627224445, 0.019173389300704002, 0.043907325714826584, 0.01343990582972765, -0.002697484102100134, 0.022952312603592873, 0.0072055598720908165, 0.040800467133522034, -0.031874366104602814, 0.04188503324985504, 0.0025775751564651728, -0.00631170067936182, 0.0068403854966163635, 0.003280986798927188, -1.2748568423148754e-8, -0.00018716268823482096, 0.04961976781487465, -0.012097344733774662, 0.06112142652273178, 0.020506147295236588, 0.005745638161897659, -0.017361830919981003, 0.0160745270550251, -0.024954121559858322, 0.012790166772902012, 0.08878666162490845, -0.029880348592996597, 0.017299989238381386, -0.016010727733373642, 0.03647078946232796, -0.04452044144272804, -0.0288627240806818, 0.004993838258087635, 0.009325808845460415, -0.0484941191971302, 0.04585029184818268, -0.006742781959474087, 0.012196473777294159, 0.004702932666987181, 0.003995803184807301, -0.0010278631234541535, -0.0026397397741675377, -0.09602286666631699, -0.029752328991889954, 0.002846806775778532, -0.03762481361627579, -0.024740157648921013, -0.08391126245260239, 0.020821943879127502, 0.03311118856072426, -0.008151346817612648, -0.012190843932330608, -0.01741570234298706, -0.0044541130773723125, 0.02376270852982998, -0.031000766903162003, -0.0014021131210029125, -0.01858731172978878, -0.030101267620921135, -0.02148355543613434, 0.017409564927220345, -0.03312066197395325, -0.00035917977220378816, 0.04407623037695885, 0.003811780596151948, 0.018511345610022545, -0.01593715138733387, -0.006360687781125307, 0.06815837323665619, 0.015629401430487633, 0.010270413011312485, -0.004465681035071611, -0.01559782400727272, -0.027832694351673126, -0.01069820299744606, 0.03033694438636303, 0.011858095414936543, -0.04406815394759178, -0.024142146110534668 ]
scikit-learn-using-gridsearch-tune-hyper-parameters-votingclassifier
https://markhneedham.com/blog/2017/12/10/scikit-learn-using-gridsearch-tune-hyper-parameters-votingclassifier
false
2017-12-31 17:35:03
Leaflet: Fit polyline in view
[ "javascript", "leafletjs" ]
[ "Javascript" ]
I've been playing with the http://leafletjs.com/reference-1.2.0.html[Leaflet.js] library over the Christmas holidays to visualise running routes drawn onto the map using a Polyline and I wanted to zoom the map the right amount to see all the points. == Pre requisites We have the following HTML to define the +++<cite>+++div+++</cite>+++ that will contain the map. [source,html] ---- <div id="container"> <div id="map" style="width: 100%; height: 100%"> </div> </div> ---- We also need to import the following Javascript and CSS files: [source,html] ---- <script src="http://cdn.leafletjs.com/leaflet-0.7/leaflet.js"></script> <script type="text/javascript" src="https://rawgit.com/jieter/Leaflet.encoded/master/Polyline.encoded.js"></script> <link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7/leaflet.css"/> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/leaflet.draw/0.4.2/leaflet.draw.css"/> <script src="https://cdnjs.cloudflare.com/ajax/libs/leaflet.draw/0.4.2/leaflet.draw.js"></script> ---- == Polyline representing part of a route The following code creates a polyline for a https://www.strava.com/segments/15311748[Strava segment] that I often run. [source,javascript] ---- var map = L.map('map'); L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {maxZoom: 18,}).addTo(map); var rawPoints = [ { "latitude": 51.357874010145395, "longitude": -0.198045110923591 }, { "latitude": 51.3573858289394, "longitude": -0.19787754933584795 }, { "latitude": 51.35632791810057, "longitude": -0.19750254941422557 }, { "latitude": 51.35553240304241, "longitude": -0.197232163894512 }, { "latitude": 51.35496267279901, "longitude": -0.1970247338143316 }, { "latitude": 51.35388700570004, "longitude": -0.19666483094752069 }, { "latitude": 51.3533898352570, "longitude": -0.1964976504847828 }, { "latitude": 51.35358452733139, "longitude": -0.19512563906602554 }, { "latitude": 51.354762877995036, "longitude": -0.1945622934585907 }, { "latitude": 51.355610110109986, "longitude": -0.19468697186046677 }, { "latitude": 51.35680377680643, "longitude": -0.19395063336295112 }, { "latitude": 51.356861596801075, "longitude": -0.1936180154828497 }, { "latitude": 51.358487396611125, "longitude": -0.19349660642888197 } ]; var coordinates = rawPoints.map(rawPoint => new L.LatLng(rawPoint["latitude"], rawPoint["longitude"])) let polyline = L.polyline( coordinates, { color: 'blue', weight: 3, opacity: .7, lineJoin: 'round' } ); polyline.addTo(map); ---- I wanted to centre the map around the polyline and initially wrote the following code to do this: [source,javascript] ---- let lats = rawPoints.map(c => c.latitude).reduce((previous, current) => current += previous, 0.0); let longs = rawPoints.map(c => c.longitude).reduce((previous, current) => current += previous, 0.0); const position = [lats / rawPoints.length, longs / rawPoints.length]; map.setView(position, 17); ---- This works fine but the zoom factor was wrong when I drew longer polylines so I needed a better solution. I should have http://leafletjs.com/reference-1.2.0.html#polyline[RTFM] because there's a much simpler way to do this. I actually found the explanation in https://github.com/Leaflet/Leaflet/issues/360[a GitHub issue from 2011]! We can replace the previous snippet with this single line of code: [source,javascript] ---- map.fitBounds(polyline.getBounds()); ---- And this is how it looks on the screen: image::{{<siteurl>}}/uploads/2017/12/2017-12-31_17-30-25.png[2017 12 31 17 30 25,213]
null
null
[ -0.011763354763388634, -0.01646861806511879, -0.022216221317648888, 0.01480159256607294, 0.06153493747115135, -0.02566700428724289, 0.005821648053824902, 0.06990808248519897, 0.030768191441893578, -0.03127601742744446, -0.03520509973168373, -0.03419313207268715, -0.0628577396273613, 0.004268881864845753, -0.026612844318151474, 0.07619055360555649, 0.072104312479496, 0.017434479668736458, 0.030211666598916054, -0.001287823892198503, 0.024369580671191216, 0.06547821313142776, -0.01721297949552536, 0.013838814571499825, 0.030808022245764732, -0.021929198876023293, 0.02779628150165081, 0.023755796253681183, -0.06238799914717674, -0.024350974708795547, 0.03302564099431038, 0.0015625015366822481, 0.026109840720891953, -0.0013859638711437583, 0.027473686262965202, -0.024560516700148582, 0.009300998412072659, -0.013918640092015266, -0.028888629749417305, -0.0006234570755623281, -0.061219461262226105, 0.043445687741041183, 0.0033631587866693735, 0.013948503881692886, -0.008421802893280983, 0.012158676981925964, -0.021813275292515755, 0.024463137611746788, -0.021017540246248245, -0.01732579432427883, -0.03465941175818443, 0.03132273629307747, -0.03213247284293175, 0.020577382296323776, -0.020317569375038147, 0.052897125482559204, 0.013018481433391571, -0.08708716928958893, 0.04075227305293083, -0.049897726625204086, -0.011087499558925629, 0.021413980051875114, -0.008600490167737007, 0.05572864040732384, 0.01970606856048107, -0.006467320024967194, -0.05485663190484047, 0.05085544288158417, -0.05057727172970772, -0.04606512561440468, 0.01639435812830925, 0.04008098691701889, -0.0027413307689130306, -0.00012899799912702292, -0.005226946901530027, -0.03934406861662865, -0.04133041575551033, 0.04848812520503998, -0.024010317400097847, 0.0436970554292202, -0.01326205674558878, -0.012669917196035385, 0.03528686985373497, 0.037377502769231796, -0.012743552215397358, -0.010776975192129612, -0.018700534477829933, 0.009758682921528816, -0.017781924456357956, 0.04218488931655884, 0.00471895607188344, -0.03790828585624695, 0.054748035967350006, -0.006146306172013283, 0.03592716529965401, -0.013029304333031178, -0.02028784714639187, 0.03034513257443905, -0.029497500509023666, -0.03929787501692772, -0.024659933522343636, 0.000654748931992799, 0.020116642117500305, 0.0034973728470504284, -0.09167245775461197, -0.004703599493950605, -0.013963042758405209, -0.006013287231326103, 0.007948769256472588, -0.00030011474154889584, -0.028631290420889854, -0.014716782607138157, -0.03994382545351982, 0.027053264901041985, -0.05463983118534088, 0.0775056853890419, 0.01752110756933689, 0.004596761427819729, -0.004161271266639233, 0.04535358026623726, 0.007159499917179346, 0.014354676939547062, -0.00035969336749985814, 0.08198800683021545, -0.002158238086849451, 0.05593392997980118, -0.03129643201828003, 0.04789646714925766, -0.0011458686785772443, -0.045070797204971313, 0.013286950066685677, 0.05626371502876282, -0.030681533738970757, -0.010202702134847641, 0.006221399642527103, -0.0310068242251873, -0.025216374546289444, -0.005818809848278761, 0.07428395003080368, 0.026857931166887283, -0.02365920878946781, -0.024845624342560768, 0.027758413925766945, -0.012880710884928703, 0.022063087671995163, 0.04687126353383064, -0.009437769651412964, -0.048760946840047836, -0.048848673701286316, 0.017177624627947807, 0.036961350589990616, 0.027346856892108917, 0.06963122636079788, -0.0039006175938993692, -0.019755885004997253, 0.10451564937829971, 0.03300996869802475, -0.002046217443421483, -0.005325856618583202, 0.02409397065639496, 0.04147345572710037, 0.010068019852042198, 0.007796891033649445, 0.07560011744499207, -0.015082167461514473, 0.00984822679311037, -0.014734112657606602, 0.08241406083106995, 0.03603336960077286, -0.035069532692432404, -0.04295980557799339, -0.04845023900270462, 0.0530560240149498, -0.02198416367173195, -0.007095335982739925, 0.025094999000430107, 0.09086903184652328, 0.0239483043551445, 0.03794252872467041, 0.0023077328223735094, -0.07283685356378555, 0.04233577102422714, 0.019540345296263695, 0.013422916643321514, 0.07163099944591522, 0.0034615250770002604, 0.08932993561029434, 0.03759302943944931, -0.02341366931796074, 0.01709800586104393, -0.04798627272248268, -0.06414658576250076, -0.07058499753475189, 0.003500198945403099, 0.06378325819969177, -0.06672659516334534, -0.0301969051361084, 0.07738981395959854, 0.05019773915410042, 0.04859946295619011, 0.008773885667324066, 0.002228756435215473, 0.04126683995127678, -0.03861052542924881, -0.020685872063040733, -0.004067662637680769, 0.045946333557367325, -0.012284164316952229, -0.031064309179782867, 0.01730669103562832, -0.016317376866936684, -0.00787222757935524, 0.012909239158034325, 0.005170224234461784, 0.032261572778224945, 0.017874786630272865, 0.06648639589548111, -0.04536549746990204, 0.06568264961242676, -0.05819430947303772, 0.03507909178733826, -0.0006378992111422122, -0.0234654750674963, -0.0019747749902307987, -0.02338850125670433, 0.10612590610980988, 0.06859280169010162, 0.010885270312428474, -0.07710666209459305, -0.013115656562149525, -0.042903054505586624, -0.061150263994932175, 0.010188153013586998, -0.026563860476017, -0.0006384191219694912, -0.020793478935956955, -0.010027000680565834, -0.02369496040046215, -0.009687206707894802, -0.03528442606329918, -0.008184579201042652, 0.07386011630296707, 0.02754233404994011, 0.037899937480688095, 0.0040928637608885765, -0.008275092579424381, 0.018826650455594063, 0.002652192721143365, -0.028863588348031044, -0.01165296882390976, 0.006656633224338293, -0.017139770090579987, 0.01593060977756977, -0.021882960572838783, -0.056948743760585785, -0.014411728829145432, -0.03748549148440361, -0.002282597590237856, 0.059126116335392, 0.0830383449792862, 0.0019545787945389748, 0.050389230251312256, 0.005964414682239294, 0.03891034796833992, -0.011155865155160427, -0.037715960294008255, -0.053647588938474655, -0.03665079176425934, 0.04046372324228287, 0.04682653024792671, 0.040473535656929016, 0.03702831268310547, 0.04842495918273926, -0.02061198279261589, -0.017224909737706184, -0.0005981610738672316, 0.013042880222201347, 0.0067407069727778435, -0.0364951491355896, -0.013674384914338589, -0.015207366086542606, 0.05348441004753113, -0.011409600265324116, -0.04612625017762184, -0.002575913444161415, -0.0649036318063736, 0.05108266323804855, -0.05771254003047943, -0.012759646400809288, -0.024735338985919952, 0.013077620416879654, 0.02655777893960476, -0.0018209085101261735, 0.02927299402654171, 0.05022355169057846, -0.01592986285686493, 0.0020571984350681305, 0.0020958988461643457, 0.0049696508795022964, 0.032069843262434006, -0.057988494634628296, 0.003597819712013006, 0.05442780628800392, -0.010341568849980831, -0.017991969361901283, -0.003466540714725852, 0.017460525035858154, -0.04202447459101677, -0.2624340355396271, 0.04291769489645958, 0.0007575254421681166, -0.03841336444020271, 0.016363346949219704, -0.021991245448589325, -0.0035177553072571754, -0.056905265897512436, -0.025254780426621437, 0.003372250124812126, -0.029740875586867332, -0.02235356904566288, -0.046984560787677765, 0.038410380482673645, 0.00589235732331872, 0.01020052284002304, -0.03040631301701069, -0.0196347888559103, 0.021232472732663155, 0.03493038937449455, -0.025592343881726265, -0.07489602267742157, 0.025617558509111404, 0.025904113426804543, 0.027461199089884758, 0.06056623160839081, -0.04381852596998215, 0.05418098717927933, -0.03227705880999565, -0.018098648637533188, 0.029546383768320084, -0.024116797372698784, 0.003303901059553027, -0.011476775631308556, -0.04762684181332588, -0.04363026097416878, 0.04973018914461136, 0.019942520186305046, 0.033021871000528336, -0.038311418145895004, -0.0402103066444397, -0.016492828726768494, 0.007539358921349049, -0.016501013189554214, 0.052033621817827225, -0.0320022888481617, -0.07488653808832169, -0.0026786227244883776, -0.0250556580722332, 0.07741965353488922, 0.00833441037684679, -0.045667197555303574, -0.003338665934279561, 0.02940804697573185, -0.033021822571754456, -0.02717643603682518, -0.01250781212002039, -0.04649023339152336, -0.07702144235372543, -0.04435298219323158, 0.013985255733132362, -0.02749590389430523, -0.03565213084220886, -0.04385967180132866, 0.038065023720264435, -0.04761001467704773, -0.07754165679216385, -0.01374206505715847, 0.028375830501317978, 0.03660772740840912, -0.010050155222415924, -0.027247151359915733, -0.01717904582619667, -0.09950727224349976, 0.0036112621892243624, -0.04127990081906319, -0.004358620382845402, -0.03602585941553116, -0.010312425903975964, 0.0334361307322979, -0.06235074624419212, -0.043568532913923264, 0.030426230281591415, 0.008640813641250134, 0.012585368938744068, -0.018739139661192894, 0.04145081341266632, -0.011617208831012249, -0.014738902449607849, -0.030137239024043083, 0.06704402714967728, -0.04215971753001213, -0.01484992541372776, -0.006386785302311182, -0.010947301052510738, 0.0007771915988996625, 0.026115763932466507, -0.006333454512059689, 0.024692120030522346, 0.020638829097151756, 0.019574832171201706, -0.025275185704231262, 0.023442832753062248, -0.013010845519602299, -0.016577869653701782, 0.009785396046936512, -0.053818151354789734, 0.03849846124649048, 0.013265661895275116, -0.008755020797252655, 0.0015103555051609874, 0.0022936570458114147, -0.000012445103493519127, -0.06319348514080048, -0.017399679869413376, -0.0020615665707737207, 0.023955922573804855, -0.007379699498414993, 0.021156759932637215, -0.044772934168577194, -0.06099032238125801, 0.02521580085158348, 0.012893502600491047, -0.015767822042107582, -0.04243567958474159, 0.02145940251648426, -0.020331215113401413, -0.005521487444639206, 0.03685920685529709, 0.01203908585011959, -0.031373411417007446, 0.02656315080821514, 0.022909771651029587, -0.03341933339834213, 0.018827492371201515, -0.057892657816410065, -0.04974563419818878, -0.021781006827950478, 0.005804636050015688, 0.0035556477960199118, -0.01406316738575697, 0.03512287139892578, 0.030760707333683968, 0.026661088690161705, 0.049830399453639984, -0.02229209430515766, -0.000020444584151846357, 0.02210075594484806, -0.02640537917613983, 0.005396834574639797, -0.01263490691781044, -0.016976553946733475, 0.01082493457943201, -0.005490973126143217, -0.03143402934074402, -0.020491410046815872, 0.0025589941069483757, 0.001766500063240528, -0.010524402372539043, -0.06259988993406296, 0.028520643711090088, -0.05255129560828209, -0.019731417298316956, 0.03146008029580116, -0.020526165142655373, 0.0358894020318985, 0.01511665340512991, 0.03654692322015762, -0.007234946358948946, -0.012483193539083004, 0.03349922597408295, -0.034234948456287384, -0.0008529425249435008, 0.004138263873755932, -0.047062236815690994, 0.022708620876073837, 0.020772023126482964, 0.030102400109171867, 0.0036638558376580477, 0.019852066412568092, 0.01966448687016964, 0.004427254665642977, 0.040809378027915955, 0.020830174908041954, 0.008581246249377728, 0.007127978838980198, -0.016323884949088097, -0.007071181666105986, 0.002613903023302555, -0.008504577912390232, -0.019507765769958496, 0.004887294955551624, -0.04931360110640526, -0.0015266996342688799, -0.03980804979801178, -0.05666365474462509, 0.038301337510347366, 0.017102394253015518, -0.015989648178219795, 0.023052847012877464, -0.02138955518603325, -0.010780012235045433, -0.014369085431098938, 0.015930363908410072, 0.07135554403066635, -0.03965213894844055, 0.014534293673932552, -0.007033949252218008, -0.0036001293919980526, 0.00035807103267870843, 0.0014430074952542782, -0.06478133797645569, -0.0038807590026408434, -0.025850478559732437, 0.02455737814307213, -0.010629254393279552, -0.04795979708433151, -0.034894924610853195, 0.03665442764759064, -0.017026754096150398, 0.009343616664409637, -0.010734520852565765, -0.0427698977291584, -0.01419187244027853, 0.006602067966014147, 0.042327605187892914, -0.029858285561203957, -0.02384408377110958, 0.03429563716053963, -0.02277049422264099, 0.03173612803220749, -0.028105104342103004, 0.0375540666282177, 0.03530282899737358, 0.006320557091385126, -0.006983518600463867, -0.03139038383960724, 0.0022747081238776445, 0.03392304480075836, 0.0471959188580513, -0.015571314841508865, 0.0063059208914637566, -0.04219512641429901, 0.015965819358825684, 0.022735778242349625, 0.007911279797554016, -0.018489772453904152, -0.026160744950175285, -0.012730605900287628, 0.03457024320960045, 0.0103829400613904, -0.003954979591071606, 0.02018723078072071, -0.043995656073093414, 0.07007738947868347, -0.05805825814604759, -0.05485766381025314, -0.0065888939425349236, -0.02886882610619068, 0.041876569390296936, 0.0015281434170901775, 0.02091188356280327, -0.056192584335803986, 0.041594479233026505, 0.03840048238635063, -0.021331805735826492, 0.011369717307388783, -0.014036387205123901, 0.01259936485439539, -0.01714431121945381, 0.003748836927115917, -0.09377400577068329, 0.035318970680236816, 0.012990870513021946, 0.008714613504707813, -0.05278503894805908, 0.016351619735360146, -0.058155521750450134, 0.0448467954993248, -0.05130351707339287, -0.042609669268131256, 0.0527142658829689, 0.02917126938700676, 0.014297006651759148, 0.005927090998739004, -0.0437268503010273, 0.03100004605948925, 0.08080481737852097, -0.0390121266245842, -0.010127173736691475, -0.056350402534008026, 0.030367132276296616, -0.045745495706796646, -0.020574601367115974, -0.033169396221637726, 0.04285572096705437, 0.04933921620249748, 0.01622442901134491, -0.0065541742369532585, 0.03766673058271408, -0.006602734327316284, 0.05363999679684639, 0.027589906007051468, 0.0015753339976072311, -0.032402005046606064, 0.02632298693060875, 0.019576791673898697, -0.047197915613651276, 0.06282656639814377, 0.03789406269788742, 0.006764745339751244, -0.04007264971733093, 0.05521216243505478, 0.021452607586979866, -0.030380532145500183, -0.02732970379292965, 0.010203471407294273, -0.0409073606133461, -0.009440282359719276, -0.030681155622005463, -0.007398985326290131, -0.0102617759257555, 0.035019293427467346, -0.03238426893949509, -0.01978233829140663, 0.07324790954589844, 0.009641416370868683, -0.01976238563656807, 0.031745124608278275, 0.06849902123212814, 0.0770372524857521, 0.03918362781405449, -0.005836353171616793, 0.056938447058200836, -0.014350786805152893, -0.03318003565073013, -0.012086798436939716, -0.05067470669746399, 0.032269950956106186, -0.052796319127082825, -0.01734806038439274, 0.05719802901148796, 0.0005052164779044688, 0.08168317377567291, -0.02818802371621132, -0.007072320207953453, -0.0018213948933407664, 0.012626090086996555, 0.026923976838588715, 0.02286027930676937, 0.04802112653851509, 0.03248293697834015, -0.009415971115231514, 0.009436245076358318, 0.06738580018281937, -0.055915653705596924, -0.024224208667874336, -0.006883042398840189, 0.014982258901000023, 0.011335755698382854, -0.03189556300640106, 0.03237845003604889, 0.06277350336313248, -0.01281678769737482, -0.021701565012335777, -0.024075647816061974, 0.032834768295288086, -0.0029982528649270535, 0.03669515624642372, -0.009025249630212784, -0.016636159271001816, -0.015359015204012394, -0.03610606491565704, -0.00921963807195425, -0.033605918288230896, -0.02592458762228489, 0.011698395945131779, -0.00908614695072174, 0.04713474214076996, 0.010618917644023895, -0.008897381834685802, -0.06418202817440033, -0.040992602705955505, -0.03932875022292137, -0.04911252111196518, -0.08614727854728699, -0.009278402663767338, 0.01861635223031044, -0.025590158998966217, -0.03541584685444832, -0.013842262327671051, 0.013608276844024658, -0.021065549924969673, -0.006329849362373352, -0.03489433601498604, -0.005144852213561535, 0.03519073501229286, 0.01994835026562214, 0.009567374363541603, 0.020383477210998535, 0.032050080597400665, -0.021836549043655396, -0.009759647771716118, -0.017768874764442444, -0.016694802790880203, 0.0773216113448143, -0.009995709173381329, 0.025041775777935982, -0.050061654299497604, -0.002532826503738761, 0.03618527203798294, 0.010087588801980019, -0.07959702610969543, 0.0002850644523277879, 0.03037305921316147, -0.01436525210738182, 0.030332697555422783, -0.025883853435516357, 0.007979636080563068, -0.05117271468043327, -0.02316989377140999, 0.0050613656640052795, 0.0252495389431715, 0.040700022131204605, -0.01940910890698433, 0.06402364373207092, 0.015893852338194847, -0.018643485382199287, -0.039296917617321014, -0.011630312539637089, -0.021769948303699493, -0.006480073090642691, -0.04293394461274147, -0.036947932094335556, -0.046997904777526855, -0.06912512332201004, -0.031295064836740494, 0.01822599582374096, -0.01134584378451109, -0.03677654638886452, -0.013319705612957478, 0.02740335650742054, -0.07628345489501953, 0.025758909061551094, -0.020162945613265038, 0.04062655195593834, -0.03135044872760773, 0.005140586756169796, -0.0019516395404934883, 0.03860745206475258, 0.036323413252830505, 0.030633490532636642, 0.016399439424276352, -0.03402360528707504, 0.027617814019322395, -0.016327153891324997, 0.0021617631427943707, 0.05578825622797012, -0.0007264119922183454, 0.020726332440972328 ]
[ -0.07013589888811111, -0.04655904322862625, 0.021362140774726868, -0.034196704626083374, 0.06564036011695862, -0.027665244415402412, -0.0015457049012184143, 0.008170533925294876, -0.026752911508083344, 0.027544952929019928, -0.0232122503221035, -0.07316941022872925, -0.02508709579706192, -0.005253583192825317, 0.05433962494134903, 0.01614460162818432, -0.008721847087144852, -0.020669037476181984, -0.08118948340415955, 0.03959665074944496, 0.03924773260951042, -0.013781571760773659, -0.05369361490011215, -0.048744913190603256, 0.02230297215282917, 0.02228616550564766, 0.018308497965335846, -0.06277323514223099, 0.03407612815499306, -0.1868673861026764, -0.016831468790769577, 0.0035171492490917444, -0.011530458927154541, -0.02067246474325657, -0.04654022678732872, 0.0314980112016201, 0.040310025215148926, 0.024738626554608345, 0.039256419986486435, 0.02286064624786377, 0.002007291419431567, 0.022326869890093803, -0.07600715756416321, -0.024999894201755524, 0.03463694825768471, -0.04211056977510452, -0.030416730791330338, 0.009484883397817612, -0.024737320840358734, 0.00770565215498209, -0.024691792204976082, -0.029307832941412926, -0.008734474889934063, -0.03272247686982155, -0.006314409896731377, 0.05119176581501961, 0.0038090129382908344, 0.07393468171358109, 0.07057922333478928, 0.03319394588470459, 0.027350500226020813, -0.02085728943347931, -0.13480645418167114, 0.13758142292499542, -0.005211360286921263, 0.05991184711456299, -0.05433843284845352, 0.027395613491535187, -0.024487487971782684, 0.07387275248765945, 0.027860691770911217, -0.014592261053621769, -0.03220827504992485, 0.0662018433213234, 0.010590250603854656, -0.028712810948491096, -0.0482303723692894, 0.03061712719500065, 0.028770236298441887, -0.01957760378718376, -0.04562116414308548, -0.011637753807008266, -0.00812068022787571, -0.0005485006258822978, -0.010664790868759155, 0.015904901549220085, -0.028097081929445267, 0.03481976315379143, 0.0152986915782094, 0.033264826983213425, 0.06744716316461563, -0.05653313174843788, 0.016792375594377518, 0.005442640744149685, -0.12579737603664398, -0.04444394260644913, 0.02698088437318802, -0.006333045195788145, -0.01669241674244404, 0.3737034499645233, -0.04958708956837654, -0.010653849691152573, 0.07934805750846863, 0.049335092306137085, -0.02033478394150734, -0.028650660067796707, -0.029959889128804207, -0.05734426900744438, 0.0039487238973379135, -0.0009290918824262917, -0.025046629831194878, -0.04795873537659645, 0.002409154549241066, -0.026472080498933792, -0.0027547539211809635, -0.022940009832382202, 0.01351481769233942, 0.023076361045241356, -0.009390071034431458, 0.04389246553182602, -0.0019210813334211707, 0.024177586659789085, 0.014640210196375847, 0.01372928824275732, 0.03862034156918526, 0.045846857130527496, 0.0644235834479332, 0.033947400748729706, 0.04421963170170784, 0.011422771029174328, 0.02983676828444004, 0.013978786766529083, -0.06987962871789932, 0.018313925713300705, -0.04453955963253975, 0.010249790735542774, 0.04406410828232765, -0.022893162444233894, -0.008511381223797798, 0.01362739596515894, 0.005072544328868389, -0.003915812354534864, 0.03475469350814819, -0.00527992146089673, -0.0002200502494815737, 0.09159814566373825, -0.008130350150167942, -0.025464780628681183, -0.02930811606347561, -0.03215283155441284, 0.004851565696299076, 0.03619076684117317, 0.00016681225679349154, -0.010852422565221786, 0.012380547821521759, 0.0541265532374382, 0.050320401787757874, 0.01229831762611866, -0.025339970365166664, 0.001305656973272562, -0.012176976539194584, 0.00545642152428627, -0.0030977509450167418, 0.037056777626276016, 0.021958716213703156, -0.1078466922044754, -0.030205126851797104, 0.008421928621828556, -0.00044812014675699174, -0.09728958457708359, -0.0540640763938427, 0.026626210659742355, -0.005621581804007292, -0.009973161853849888, 0.06792618334293365, -0.015795087441802025, -0.0415632426738739, -0.014828585088253021, 0.05975273996591568, 0.0004084747051820159, -0.010974500328302383, 0.002740871859714389, -0.016521533951163292, -0.014576922170817852, -0.03580746054649353, -0.04173336550593376, -0.03089422732591629, -0.007397124078124762, -0.008980896323919296, -0.02612243965268135, -0.015153288841247559, -0.03860392048954964, -0.013994078151881695, 0.05770724639296532, -0.0077763996087014675, -0.015747735276818275, 0.012473455630242825, -0.026825284585356712, 0.023946668952703476, -0.04483673721551895, 0.03934779763221741, 0.024111730977892876, -0.0077530997805297375, 0.030297648161649704, -0.010680237784981728, 0.05654172599315643, 0.0920134037733078, -0.03780342638492584, 0.0387091226875782, 0.02537751942873001, -0.04605669155716896, 0.00028683553682640195, 0.001005081576295197, -0.01908433809876442, 0.015410448424518108, 0.014893530867993832, -0.021361367776989937, -0.005558152217417955, -0.0039155976846814156, 0.06273183226585388, -0.03959168493747711, -0.06979082524776459, -0.05025872588157654, -0.3605310916900635, -0.0475451685488224, -0.009830714203417301, 0.011158023029565811, 0.009303322993218899, -0.010767110623419285, -0.0031760111451148987, 0.01460188627243042, -0.006534777581691742, -0.009802738204598427, 0.13298840820789337, -0.031027842313051224, -0.00158636923879385, -0.09640346467494965, -0.012877518311142921, 0.05597424879670143, -0.01483387965708971, -0.04279142618179321, -0.04117274656891823, 0.010754834860563278, 0.007852661423385143, -0.019729267805814743, -0.04505524784326553, -0.03402256220579147, -0.02134784124791622, -0.031162142753601074, 0.13010327517986298, 0.00640276400372386, 0.03874611854553223, -0.05733712017536163, 0.04548515006899834, -0.02686641365289688, -0.0021378113888204098, -0.05351146310567856, -0.01736367493867874, -0.025095641613006592, -0.027886800467967987, 0.004692391492426395, 0.02185223065316677, -0.016359440982341766, -0.03479684516787529, 0.03988615423440933, -0.06476898491382599, -0.05330895259976387, -0.04240831360220909, 0.023914525285363197, -0.027539994567632675, -0.008971601724624634, 0.004450157750397921, 0.06680866330862045, -0.0013065848033875227, 0.02248912863433361, 0.03814626485109329, 0.004349736496806145, 0.024351969361305237, 0.007919513620436192, -0.05610770732164383, -0.011738715693354607, -0.014935841783881187, -0.02339303493499756, 0.012809338048100471, 0.015927154570817947, 0.03369119390845299, -0.06593168526887894, 0.0029529149178415537, 0.04283560812473297, 0.016056310385465622, -0.033558160066604614, 0.05204563960433006, 0.008933509700000286, -0.04325907304883003, 0.08011494576931, 0.03248090296983719, 0.011825572699308395, 0.042842160910367966, 0.04614480584859848, 0.012523811310529709, 0.06026457995176315, 0.04444868117570877, 0.0008100325940176845, 0.024183213710784912, 0.008093282580375671, 0.04743199050426483, -0.027108127251267433, -0.023827744647860527, 0.025503404438495636, -0.03880564123392105, -0.041351642459630966, 0.019552577286958694, -0.011455457657575607, -0.02431672066450119, -0.002695608651265502, -0.008282501250505447, -0.0941556915640831, 0.06983780115842819, -0.002353485208004713, -0.2739989757537842, 0.02129506692290306, 0.09766706079244614, 0.0534508191049099, -0.03559872508049011, 0.04403713718056679, 0.07140621542930603, -0.04512207955121994, 0.02308817207813263, -0.0008218151051551104, -0.004880020394921303, 0.048226453363895416, -0.0022629983723163605, -0.017401834949851036, 0.044223662465810776, -0.022091176360845566, 0.04511099308729172, 0.019032014533877373, 0.05311892181634903, -0.02021929621696472, 0.022709010168910027, -0.03893357515335083, 0.17936627566814423, 0.0443660244345665, -0.003788178553804755, 0.025116397067904472, -0.027977092191576958, -0.014264251105487347, 0.07790171355009079, 0.0150115005671978, -0.009415077976882458, 0.011800255626440048, 0.05957864597439766, 0.02070484310388565, 0.05853313207626343, -0.05355251953005791, -0.0339675210416317, 0.06612172722816467, 0.019343141466379166, -0.005071704275906086, 0.0076951393857598305, 0.008639940991997719, -0.04912811890244484, 0.0070049655623734, 0.043525781482458115, -0.0036234825383871794, 0.00189137679990381, 0.008346755057573318, -0.04570820555090904, 0.00788002461194992, -0.03419577702879906, -0.023030394688248634, -0.03197045996785164, -0.03195296600461006, 0.004931638482958078, 0.10128331929445267, 0.031113112345337868, -0.020091386511921883, -0.010868633165955544, 0.021748045459389687, -0.009976302273571491, -0.07861083745956421, 0.08730819076299667, -0.012398810125887394, 0.05027302727103233 ]
[ 0.011330509558320045, -0.0013456486631184816, 0.03625110909342766, 0.03511103242635727, 0.03956937417387962, 0.028282446786761284, -0.011178310960531235, 0.005564550403505564, -0.029541397467255592, -0.029683643952012062, -0.0012715039774775505, 0.041199591010808945, -0.020421627908945084, -0.048712171614170074, -0.008438636548817158, 0.03540218994021416, -0.05220713093876839, 0.02028956450521946, 0.030745258554816246, -0.007189941126853228, -0.0058979555033147335, 0.0013575177872553468, 0.0184436347335577, -0.0014606270706281066, 0.015054804272949696, 0.023108651861548424, -0.02512168139219284, -0.0025325878523290157, 0.025978300720453262, -0.13165634870529175, -0.004316551145166159, -0.01884312741458416, 0.003136569866910577, -0.00917208380997181, -0.044636454433202744, 0.019108744338154793, -0.03213915973901749, -0.03328634053468704, 0.01180656161159277, -0.006693380419164896, 0.01783120259642601, 0.026151228696107864, -0.013224368914961815, -0.0036628679372370243, -0.0018797536613419652, -0.025082169100642204, -0.008137448690831661, -0.014063006266951561, -0.05399512127041817, 0.017437530681490898, -0.013983653858304024, -0.030897298827767372, -0.006939947139471769, -0.019594449549913406, -0.05794483795762062, -0.008175711147487164, -0.037063296884298325, 0.009139693342149258, 0.04223138839006424, 0.010301613248884678, -0.014783495105803013, 0.008371665142476559, -0.0029096368234604597, -0.02944134548306465, -0.0036728044506162405, -0.007341375108808279, -0.0235921498388052, -0.026643475517630577, 0.026500582695007324, 0.01853790134191513, 0.01345299743115902, 0.043178852647542953, -0.01801009103655815, -0.009670144878327847, -0.03739703819155693, -0.053472939878702164, -0.022250667214393616, 0.021251561120152473, -0.0068132528103888035, 0.02316412888467312, -0.023669816553592682, -0.01514869462698698, 0.002864385722205043, 0.04890982806682587, 0.015446560457348824, -0.006021434441208839, -0.022594455629587173, 0.013038135133683681, 0.016564810648560524, 0.000336777709890157, -0.06281746178865433, 0.01673286408185959, 0.006627233698964119, 0.08152803778648376, -0.0917166993021965, -0.0016909596743062139, 0.008679158985614777, -0.03271292895078659, -0.03210142254829407, 0.8113751411437988, -0.008720696903765202, 0.024652302265167236, 0.026710757985711098, -0.01122414693236351, 0.027471395209431648, -0.00543994503095746, 0.019739678129553795, -0.02205958217382431, 0.020367978140711784, 0.004930366296321154, 0.008798881433904171, 0.025283312425017357, 0.022489601746201515, 0.01667666994035244, -0.0031255658250302076, -0.03753500431776047, 0.058095674961805344, -0.03077947534620762, 0.031290408223867416, 0.046769872307777405, 0.03080734796822071, -0.04114757105708122, -0.015264395624399185, -0.0060844095423817635, 0.013410523533821106, -0.18720495700836182, 0.008142722770571709, -7.553631189468015e-33, 0.03405531495809555, -0.010586705058813095, 0.04774060472846031, -0.005654497072100639, 0.04633357748389244, -0.025243893265724182, -0.01069076918065548, -0.008759221993386745, -0.050550833344459534, -0.025136465206742287, -0.027470216155052185, -0.0024824622087180614, -0.02954014390707016, 0.008895737119019032, 0.015015803277492523, -0.00430462509393692, -0.0023085507564246655, 0.034546688199043274, 0.038077086210250854, -0.012067451141774654, -0.004327001515775919, -0.009578756988048553, 0.02958347275853157, 0.02911270596086979, 0.014018457382917404, 0.03090881183743477, 0.023848552256822586, 0.043713413178920746, -0.023168543353676796, -0.050322797149419785, 0.01341638620942831, 0.01314705889672041, 0.0002246006770292297, 0.005561285186558962, 0.030724719166755676, -0.0013015196891501546, -0.01489277184009552, -0.0002054348587989807, -0.008541339077055454, 0.010396260768175125, -0.054182007908821106, -0.029693370684981346, -0.020704172551631927, 0.005174402147531509, -0.05230998620390892, -0.05402533710002899, 0.00762894656509161, 0.05031914263963699, -0.019999615848064423, 0.046757254749536514, 0.0006033623358234763, 0.036072950810194016, 0.016040196642279625, -0.0170772522687912, -0.005097664427012205, -0.0062457663007080555, -0.02830546163022518, 0.04923722520470619, -0.009324048645794392, 0.005502467043697834, 0.03756013140082359, -0.035673730075359344, 0.0020429694559425116, 0.007793087046593428, -0.004521045368164778, -0.012351837940514088, 0.01896047778427601, 0.028377791866660118, 0.007920452393591404, -0.0427127480506897, -0.037247877568006516, 0.006242457777261734, 0.023823587223887444, -0.01467742957174778, 0.041810981929302216, -0.011397763155400753, -0.03845464065670967, 0.04523047059774399, 0.03577785566449165, 0.032697729766368866, 0.025494394823908806, -0.0394897535443306, 0.02973826415836811, -0.03476075828075409, 0.0056360019370913506, -0.027533534914255142, 0.034680016338825226, 0.0038767631631344557, 0.000017810281860874966, 0.04226412996649742, 0.039440132677555084, 0.037610974162817, -0.006589699536561966, 0.011086232960224152, -0.021519850939512253, 7.65319849971854e-33, -0.04687362536787987, 0.013569790869951248, -0.01883838325738907, 0.026454713195562363, -0.000359938305336982, -0.024303022772073746, 0.025194700807332993, -0.007120227441191673, -0.0008040382526814938, 0.03752868250012398, -0.03797002136707306, 0.0016698343679308891, -0.020823953673243523, 0.016534263268113136, 0.05098828300833702, -0.023669207468628883, 0.02815675549209118, 0.00022932988940738142, 0.02374999225139618, -0.032798849046230316, -0.004866541363298893, -0.0013783009489998221, -0.008757560513913631, 0.0015373275382444263, -0.009243754670023918, 0.05779939144849777, -0.004002964589744806, -0.011001750826835632, -0.03212821111083031, -0.006753086112439632, -0.0005209200317040086, 0.008625212125480175, 0.04799923673272133, -0.04460427910089493, -0.0017305967630818486, 0.027919752523303032, -0.039715271443128586, 0.014980017207562923, 0.06988664716482162, 0.002470829524099827, 0.022816885262727737, -0.0497145801782608, 0.030708910897374153, -0.016481438651680946, 0.013418078422546387, -0.05005473643541336, 0.02573499083518982, 0.008189249783754349, -0.007188802119344473, 0.02630164660513401, -0.03623611107468605, 0.03808527812361717, 0.002075565978884697, 0.029400384053587914, 0.061283040791749954, -0.01960946060717106, -0.056363120675086975, 0.023473333567380905, -0.019058194011449814, -0.02086317352950573, -0.006055654492229223, -0.036547742784023285, -0.04118433594703674, 0.08503460139036179, -0.031019844114780426, -0.005037578288465738, -0.03207756206393242, -0.018402941524982452, 0.019269587472081184, 0.01044869888573885, -0.00039582449244335294, 0.004057350568473339, 0.0215372946113348, 0.029442070052027702, 0.023561552166938782, -0.04941783472895622, 0.031279124319553375, -0.015295648016035557, -0.015588197857141495, 0.006000477354973555, 0.010085731744766235, -0.0005973144434392452, 0.038513634353876114, -0.051913198083639145, 0.01723046600818634, 0.004583434201776981, -0.0221513994038105, 0.010450565256178379, 0.008496878668665886, -0.03514104336500168, 0.007412371691316366, 0.001970035722479224, -0.06722463667392731, -0.009973368607461452, 0.004748033359646797, -1.2631955925712646e-8, -0.021924620494246483, 0.055188000202178955, -0.02839006297290325, -0.031605422496795654, 0.015444574877619743, -0.005003037396818399, -0.0007578249787911773, 0.01576605997979641, -0.03797871991991997, 0.025098124518990517, 0.04602229967713356, -0.0080468924716115, 0.004584202542901039, 0.022691207006573677, 0.022444382309913635, -0.03665686398744583, -0.014438279904425144, 0.004711588844656944, 0.02268218994140625, 0.016332676634192467, -0.02051420882344246, 0.057738881558179855, 0.021633021533489227, 0.01749759539961815, 0.032732803374528885, -0.024648746475577354, 0.00828230008482933, -0.05674871429800987, -0.0063973902724683285, 0.015842553228139877, -0.03902429714798927, -0.009617984294891357, -0.015761014074087143, -0.028193863108754158, -0.04249747097492218, -0.02642921730875969, -0.003113755490630865, -0.010912715457379818, -0.000842709036078304, 0.036460310220718384, 0.012170854024589062, 0.023522932082414627, 0.0029204734601080418, -0.001983958063647151, -0.0027584724593907595, 0.03118113987147808, -0.016219336539506912, 0.03273611515760422, 0.028793660923838615, -0.01638895832002163, 0.0043576727621257305, -0.019441545009613037, -0.013580961152911186, -0.011346179060637951, 0.024635210633277893, 0.004957640543580055, 0.021875983104109764, -0.0020778451580554247, -0.029130952432751656, -0.014039216563105583, 0.012889822013676167, 0.03987918049097061, -0.016905928030610085, -0.05678674206137657 ]
leaflet-fit-polyline-view
https://markhneedham.com/blog/2017/12/31/leaflet-fit-polyline-view
false
2017-12-01 22:09:17
Neo4j: Cypher - Property values can only be of primitive types or arrays thereof.
[ "neo4j", "cypher" ]
[ "neo4j" ]
I ran into an interesting https://neo4j.com/developer/cypher-query-language/[Cypher] error message earlier this week while trying to create an array property on a node which I thought I'd share. This was the Cypher query I wrote: [source,cypher] ---- CREATE (:Person {id: [1, "mark", 2.0]}) ---- which results in this error: [source,cypher] ---- Neo.ClientError.Statement.TypeError Property values can only be of primitive types or arrays thereof. ---- We actually are storing an array of primitives but we have a mix of different types which isn't allowed. Let's try coercing all the values to strings: [source,cypher] ---- CREATE (:Person {id: [value in [1, "mark", 2.0] | toString(value)]}) Added 1 label, created 1 node, set 1 property, completed after 4 ms. ---- Success!
null
null
[ 0.004406606778502464, -0.010533318854868412, -0.034589122980833054, 0.04208787530660629, 0.07294610142707825, 0.017108377069234848, 0.05365782231092453, -0.007417724467813969, 0.003307779785245657, -0.025943269953131676, -0.017770832404494286, -0.006524275057017803, -0.07817570865154266, 0.034159522503614426, -0.002993350848555565, 0.06980622559785843, 0.061619799584150314, -0.003994193859398365, 0.015244587324559689, 0.0061990125104784966, -0.003567829029634595, 0.018203623592853546, -0.015604621730744839, 0.030909352004528046, 0.06359153985977173, 0.022080471739172935, -0.024812469258904457, -0.02186376415193081, -0.04287947714328766, -0.002692131558433175, 0.035616934299468994, 0.024327730759978294, 0.012024391442537308, -0.026233414188027382, 0.019100802019238472, 0.01857421174645424, -0.041435133665800095, -0.008580566383898258, -0.014869419857859612, -0.0020397016778588295, -0.055098701268434525, 0.03338129073381424, 0.021103758364915848, 0.033297255635261536, -0.04926055669784546, 0.01368488185107708, -0.06473763287067413, 0.004178722854703665, -0.0029431194998323917, 0.009373735636472702, -0.09273134917020798, 0.015142845921218395, 0.0009901522425934672, 0.007158908061683178, 0.036712005734443665, 0.031834982335567474, 0.0000035295497582410462, -0.09044814109802246, 0.059194933623075485, -0.028402145951986313, 0.010110443457961082, 0.0015721077797934413, -0.00684642419219017, 0.025082292035222054, 0.004621214233338833, -0.03891754522919655, 0.000996112241409719, 0.05845680832862854, -0.0881819799542427, -0.0008024564012885094, 0.005118752829730511, 0.030287155881524086, 0.002375025302171707, -0.01080441102385521, 0.005575581453740597, -0.04828238859772682, -0.005903410725295544, 0.04395289719104767, 0.04412565380334854, 0.05327095463871956, -0.018226785585284233, 0.031638484448194504, 0.01624712347984314, -0.0008677809382788837, 0.031201675534248352, -0.03882322460412979, -0.029512880370020866, -0.015468059107661247, -0.05158204212784767, 0.027639059349894524, 0.03434283658862114, -0.05296192318201065, -0.0020639454014599323, -0.007878468371927738, -0.020139392465353012, 0.011562502942979336, -0.036423880606889725, -0.011160424910485744, 0.0024815078359097242, -0.004050737246870995, -0.03681686893105507, -0.01580294407904148, 0.0065001496113836765, 0.004428842570632696, -0.08055237680673599, -0.030930984765291214, -0.013232164084911346, -0.005231276620179415, 0.03345755487680435, 0.0047417557798326015, -0.044296909123659134, -0.013488725759088993, -0.013600779697299004, -0.00380225689150393, -0.06847482174634933, 0.06831050664186478, 0.022452177479863167, 0.01748502440750599, -0.03131726756691933, 0.026909610256552696, 0.05764032527804375, 0.01145944930613041, -0.0037887541111558676, 0.08055359125137329, -0.016823921352624893, 0.031632471829652786, 0.015934672206640244, 0.046656686812639236, -0.005732654128223658, -0.07412458956241608, -0.05125303938984871, 0.07481519877910614, -0.01077001728117466, 0.01273116935044527, -0.020833803340792656, -0.019275346770882607, -0.02943301387131214, 0.04136175289750099, 0.05058339610695839, 0.03241255134344101, -0.0002944129810202867, -0.06942112743854523, 0.031330451369285583, 0.006505244877189398, 0.014538373798131943, 0.04552203789353371, -0.02192097343504429, -0.030610598623752594, -0.02447856403887272, 0.027732376009225845, 0.01712757721543312, 0.02778279408812523, 0.07136980444192886, -0.006049623712897301, -0.014768454246222973, 0.0800863653421402, 0.02465122565627098, 0.033411331474781036, -0.021360522136092186, 0.029858864843845367, 0.051740650087594986, 0.027133628726005554, 0.018438344821333885, 0.03933344781398773, 0.02198239043354988, 0.0020379838533699512, -0.021040258929133415, 0.07169800996780396, -0.01766880229115486, 0.004368647933006287, -0.03579181432723999, -0.05257461220026016, 0.03688511252403259, -0.06145400181412697, -0.016720423474907875, 0.04037196934223175, 0.04097810015082359, 0.0066497186198830605, 0.036223456263542175, -0.020020516589283943, -0.0711468905210495, 0.03678884357213974, -0.0348367914557457, -0.007230606395751238, 0.0032130898907780647, 0.036008793860673904, 0.07192784547805786, 0.03979653865098953, 0.021657144650816917, 0.036448899656534195, -0.0667477622628212, -0.06630189716815948, 0.0015399209223687649, -0.017509756609797478, 0.06242137402296066, -0.02716948091983795, 0.003337920643389225, 0.02950226701796055, 0.0035577008966356516, 0.04362298175692558, 0.037109438329935074, -0.014145801775157452, 0.014051483944058418, -0.025607217103242874, -0.03496716916561127, 0.054792437702417374, 0.027833841741085052, -0.037555113434791565, -0.04085106775164604, 0.0348525233566761, 0.007939500734210014, 0.000254600279731676, 0.03402617201209068, -0.011782662943005562, 0.046068225055933, 0.02692633680999279, 0.022828785702586174, -0.016034245491027832, 0.009916492737829685, -0.06573297083377838, 0.040049269795417786, 0.00727181788533926, -0.009033763781189919, -0.003435793099924922, -0.021713903173804283, 0.1233622133731842, 0.04953208938241005, -0.005034116096794605, -0.02431774139404297, 0.016336187720298767, 0.0028759813867509365, -0.011822025291621685, 0.03414275869727135, -0.025808202102780342, -0.01144921313971281, 0.000060064565332140774, -0.013197367079555988, -0.021446501836180687, -0.003824493382126093, -0.0250637698918581, -0.007654894609004259, 0.0769876092672348, -0.06869323551654816, 0.04256134107708931, -0.001033895998261869, -0.005626352969557047, -0.0030830546747893095, -0.04184900224208832, -0.03718477115035057, 0.0316152460873127, 0.01432128343731165, -0.0046208323910832405, 0.04780159518122673, -0.010952580720186234, -0.0175029169768095, -0.02353772521018982, -0.008272150531411171, 0.006891520228236914, 0.060798827558755875, 0.03366771340370178, -0.036207154393196106, 0.0536053329706192, -0.02957947738468647, -0.0007207669550552964, 0.002319100545719266, -0.06229018047451973, -0.025838907808065414, 0.006873533129692078, 0.034585289657115936, -0.005282992497086525, 0.042795345187187195, -0.005530542694032192, 0.0031859148293733597, -0.0032677482813596725, 0.013553009368479252, -0.0005153868114575744, 0.019032759591937065, 0.009470188990235329, 0.01866183429956436, -0.03806082531809807, -0.03455313667654991, 0.04436454921960831, -0.053444888442754745, -0.04455605521798134, -0.02196156047284603, -0.031315505504608154, 0.03493745997548103, -0.0675823763012886, -0.05328546464443207, -0.0037762047722935677, 0.04117922484874725, 0.056590065360069275, -0.0209019985049963, -0.005978910718113184, 0.0914202556014061, 0.017022933810949326, -0.002288325922563672, 0.017821623012423515, 0.00036102946614846587, 0.05213688686490059, -0.015768887475132942, 0.057037096470594406, 0.02863530069589615, -0.028425002470612526, 0.008650023490190506, -0.01622365042567253, -0.021542588248848915, -0.004459432326257229, -0.26415225863456726, 0.035648878663778305, -0.06305500119924545, -0.058985915035009384, 0.008502410724759102, -0.0256197489798069, 0.015233785845339298, -0.021510126069188118, -0.022335762158036232, 0.026357928290963173, 0.01841699704527855, -0.07156678289175034, -0.007230094168335199, 0.03694189339876175, 0.02555125765502453, -0.004851295612752438, -0.02378908544778824, -0.055887311697006226, -0.014860054478049278, 0.024544961750507355, -0.03170646354556084, -0.029729198664426804, 0.001610677340067923, 0.024227092042565346, 0.035446882247924805, 0.037980400025844574, -0.08029351383447647, 0.02882978692650795, -0.06394147872924805, -0.028784483671188354, -0.017036817967891693, -0.009723607450723648, 0.010409491136670113, -0.012193012982606888, -0.020556848496198654, 0.0012846968602389097, 0.03809034824371338, -0.005170672200620174, -0.008959081023931503, 0.020234636962413788, -0.045159582048654556, -0.0729692280292511, 0.004579043015837669, -0.03027656488120556, 0.05717775970697403, -0.027251023799180984, -0.056136664003133774, -0.006199666764587164, -0.03891897201538086, 0.05804724618792534, -0.03621548041701317, -0.01788710616528988, 0.009242563508450985, 0.03659972548484802, -0.0008454538765363395, -0.0062348926439881325, 0.013648969121277332, -0.022532736882567406, -0.06456100940704346, -0.004000921733677387, 0.014351721853017807, -0.05093090981245041, 0.00693405931815505, -0.04442755877971649, -0.001595231587998569, -0.055714789777994156, -0.07490682601928711, -0.03345433995127678, 0.05674145743250847, 0.012809060513973236, -0.012326804921030998, 0.039962999522686005, 0.012700576335191727, -0.10047466307878494, -0.015648270025849342, -0.02816908061504364, 0.005152205470949411, -0.009680064395070076, -0.02671162225306034, 0.04138807952404022, -0.04454448074102402, -0.05193747207522392, -0.00401294743642211, 0.02133423648774624, 0.01780937984585762, 0.011976263485848904, 0.0020512971095740795, -0.026105720549821854, -0.045599907636642456, 0.024167852476239204, 0.05688772350549698, -0.008567103184759617, 0.007733120582997799, -0.011904747225344181, -0.00372259970754385, 0.029723787680268288, 0.0016855434514582157, -0.024018101394176483, 0.018506167456507683, 0.05694202706217766, 0.05334683507680893, -0.047660380601882935, 0.025066742673516273, -0.030182259157299995, -0.026342885568737984, -0.0034647006541490555, -0.04359377920627594, 0.010762459598481655, 0.03014204278588295, 0.000785169773735106, -0.0031621484085917473, -0.011778074316680431, 0.026306046172976494, -0.03435326740145683, -0.029129158705472946, -0.005718913394957781, 0.02037982828915119, 0.035011231899261475, 0.029578888788819313, -0.03756073862314224, -0.05087120831012726, 0.03887316584587097, 0.04065581411123276, 0.0023753505665808916, -0.06009304150938988, -0.028031809255480766, -0.02048766426742077, -0.017048954963684082, -0.03238977491855621, 0.019853156059980392, -0.03147846460342407, 0.024569807574152946, 0.006619164254516363, -0.027661437168717384, 0.022059645503759384, 0.011627676896750927, -0.005702734924852848, -0.01780710183084011, -0.014222071506083012, -0.016687465831637383, 0.02428794652223587, -0.028115279972553253, -0.012674640864133835, 0.06706351786851883, 0.01739467680454254, 0.00032891647424548864, 0.009454440325498581, -0.003168590134009719, 0.011915093287825584, 0.008374051190912724, -0.003172896336764097, -0.037717387080192566, 0.045027174055576324, -0.047993965446949005, -0.03458824381232262, -0.0008665318018756807, 0.07007041573524475, -0.020523227751255035, -0.029915304854512215, -0.03288313373923302, 0.02594730816781521, -0.054288577288389206, 0.013094590976834297, 0.00041611786582507193, 0.0025830285158008337, 0.04140382632613182, -0.025885947048664093, 0.006663882173597813, -0.03189714998006821, -0.017621498554944992, 0.0042154258117079735, 0.020563483238220215, -0.02192540466785431, 0.010562061332166195, 0.011095820926129818, -0.0019483065698295832, 0.027202609926462173, 0.03554467484354973, 0.03182322904467583, 0.027980899438261986, 0.02048603817820549, -0.00461231404915452, 0.020489828661084175, 0.04938953369855881, 0.03749619424343109, 0.007534559816122055, -0.009872999973595142, 0.007268837187439203, -0.04395968094468117, -0.010023674927651882, -0.045308422297239304, -0.005065545439720154, -0.02172044850885868, 0.03787403553724289, -0.016764376312494278, -0.03521334007382393, 0.013781103305518627, 0.00391232967376709, 0.025330357253551483, 0.05084851384162903, 0.032962922006845474, -0.01080338004976511, -0.010061081498861313, 0.02786080352962017, 0.05699147284030914, -0.04715874418616295, -0.01009274646639824, -0.011860515922307968, -0.013877253979444504, 0.006819806527346373, 0.03489645570516586, -0.0633288323879242, -0.03276291489601135, -0.033881910145282745, -0.004283203277736902, -0.03997087851166725, -0.060857199132442474, -0.00454136123880744, 0.0037524690851569176, -0.005974441301077604, 0.022426879033446312, 0.025423122569918633, 0.05412757396697998, -0.04176720976829529, -0.005879228934645653, 0.0725286453962326, -0.04232214018702507, 0.008162762969732285, 0.009634342044591904, 0.010388012044131756, 0.05018236115574837, -0.005881057120859623, 0.04772290214896202, 0.01869867742061615, 0.015518506057560444, -0.011204807087779045, -0.0683189108967781, 0.03936806321144104, -0.021620068699121475, 0.05542134493589401, -0.000988470739684999, -0.0031047221273183823, -0.03770015016198158, 0.013860837556421757, -0.013488942757248878, 0.017261678352952003, 0.0027414802461862564, -0.014723839238286018, -0.020698176696896553, 0.006349682342261076, 0.0046872105449438095, 0.03951617702841759, -0.022759130224585533, -0.0423751100897789, 0.048344094306230545, -0.016632655635476112, -0.02159644290804863, 0.003001465927809477, -0.05020350590348244, 0.011606622487306595, 0.010314122773706913, 0.026456637308001518, -0.030906466767191887, 0.07208647578954697, 0.061769917607307434, 0.034227680414915085, 0.009361024014651775, -0.028690675273537636, 0.01353058684617281, -0.001673023565672338, -0.030335914343595505, -0.08085762709379196, 0.02459435537457466, 0.02823629043996334, 0.014083013869822025, -0.019006386399269104, -0.0390634685754776, -0.035904668271541595, -0.024197379127144814, -0.05682290345430374, -0.02491094544529915, 0.017664503306150436, -0.020921485498547554, 0.023034101352095604, 0.021171677857637405, -0.059319764375686646, -0.003215769538655877, 0.04598715528845787, -0.03861919045448303, -0.04114440456032753, -0.028900928795337677, 0.03272201493382454, -0.016543811187148094, 0.04034336283802986, -0.017109086737036705, -0.0007049282430671155, 0.05296090245246887, 0.031947482377290726, 0.03878597915172577, 0.040047936141490936, -0.06518538296222687, 0.033116258680820465, 0.06805207580327988, 0.0052930559031665325, 0.002338859485462308, 0.036323223263025284, 0.00039411228499375284, -0.07794013619422913, 0.01396876759827137, 0.020375670865178108, -0.025390062481164932, -0.05349469557404518, 0.0758976936340332, -0.014048523269593716, -0.050741251558065414, -0.04734361916780472, 0.041086263954639435, -0.04962516948580742, -0.028532028198242188, -0.046577174216508865, 0.010740000754594803, -0.031033610925078392, 0.05348769947886467, -0.012375876307487488, 0.009607934392988682, 0.06927517056465149, -0.03100522793829441, 0.01694977842271328, 0.0007857927121222019, 0.06161334738135338, 0.08856586366891861, 0.04115404561161995, 0.004210853949189186, 0.05736881494522095, -0.025091854855418205, -0.0373116135597229, 0.008206347934901714, -0.07543434947729111, -0.02200980670750141, 0.004727776162326336, -0.006835318636149168, 0.045529525727033615, -0.02026364579796791, 0.06727009266614914, -0.0537271723151207, 0.02300894446671009, -0.02202722243964672, -0.0052606649696826935, 0.037417829036712646, 0.061883021146059036, 0.017986860126256943, 0.048316940665245056, -0.012973939068615437, -0.040164560079574585, 0.008929233998060226, -0.012028363533318043, -0.03461306542158127, 0.01393208373337984, -0.014531981199979782, -0.005214156117290258, 0.0043569994159042835, 0.022861629724502563, 0.10179715603590012, -0.04464365914463997, -0.019327761605381966, 0.010195709764957428, 0.014666673727333546, -0.007276876829564571, 0.0029978633392602205, -0.0044892593286931515, -0.0384659580886364, -0.03403067961335182, -0.04873419925570488, -0.022820696234703064, -0.0506761409342289, -0.03800024464726448, 0.046424414962530136, -0.004494690801948309, 0.00047372092376463115, -0.01331067644059658, -0.01498483307659626, -0.015079607255756855, -0.06859926134347916, -0.06093252822756767, -0.039834555238485336, -0.08192924410104752, 0.016348687931895256, -0.010890156030654907, 0.0006337919621728361, 0.012148279696702957, 0.005853550974279642, 0.003871601540595293, 0.017335474491119385, 0.07597111910581589, -0.027246054261922836, -0.01157393679022789, 0.015352851711213589, 0.023501386865973473, 0.0114327073097229, 0.05145658552646637, 0.05448245257139206, -0.010371100157499313, 0.023495199158787727, -0.018061596900224686, 0.004102287348359823, 0.055386751890182495, 0.0282748956233263, 0.003937579691410065, -0.06539739668369293, -0.009288080967962742, 0.009370486252009869, -0.029443277046084404, -0.060173507779836655, -0.010542645119130611, 0.03877762332558632, 0.006968637928366661, 0.04591205716133118, 0.02560999244451523, -0.03265463188290596, -0.040376171469688416, 0.007947633042931557, 0.005958667956292629, -0.021721912547945976, 0.01599537394940853, -0.015016323886811733, 0.06882951408624649, 0.028117630630731583, -0.03574841469526291, 0.005503247957676649, -0.028110116720199585, 0.022868741303682327, 0.004346799571067095, -0.05570900812745094, -0.03504837304353714, -0.05024488642811775, -0.07564618438482285, -0.027038324624300003, -0.010954040102660656, -0.03642726689577103, 0.0028422188479453325, 0.008227738551795483, 0.009201359935104847, -0.04683022201061249, 0.04031273350119591, -0.03550409898161888, 0.05985794588923454, -0.017581621184945107, -0.009096798487007618, -0.04269523546099663, -0.0020954967476427555, -0.013650708831846714, -0.006946007255464792, 0.017248349264264107, -0.05713420361280441, 0.0035541921388357878, -0.05014047771692276, 0.03395969048142433, 0.01570584811270237, -0.002164448844268918, 0.04698794335126877 ]
[ -0.05977068468928337, -0.016957944259047508, -0.03993580862879753, -0.01418106909841299, 0.032180387526750565, -0.04327622056007385, -0.011490952223539352, 0.02371339313685894, 0.013582351617515087, -0.00472507206723094, 0.01526382751762867, -0.020943136885762215, -0.00498409615829587, 0.01778373494744301, 0.06149217486381531, 0.027679551392793655, -0.04012339189648628, -0.05828922986984253, -0.019760573282837868, 0.08450184762477875, 0.002255419734865427, -0.033947091549634933, -0.017323840409517288, -0.04514552280306816, 0.009115374647080898, 0.027689695358276367, 0.020658031105995178, -0.014722498133778572, -0.018488392233848572, -0.2026415467262268, -0.013289878144860268, 0.024935264140367508, 0.0006868997006677091, -0.0029824390076100826, 0.03838159143924713, 0.002878827042877674, 0.018416304141283035, -0.011643651872873306, 0.010962702333927155, 0.060459017753601074, 0.018601534888148308, 0.004339260049164295, -0.059804823249578476, -0.01917295716702938, 0.05658041313290596, 0.02866590954363346, -0.021750399842858315, -0.023481613025069237, -0.015416496433317661, 0.025853127241134644, -0.0359514094889164, -0.027089672163128853, -0.003166243666782975, -0.0043035815469920635, 0.015288221649825573, 0.0540371835231781, 0.022664934396743774, 0.09008070826530457, 0.046030186116695404, 0.04374558478593826, 0.01600555330514908, -0.021823622286319733, -0.1157887652516365, 0.07018610090017319, 0.003970141056925058, 0.04710250347852707, -0.043737638741731644, -0.009169583208858967, -0.03326884284615517, 0.04123536869883537, 0.05133143439888954, -0.004661137703806162, -0.023500805720686913, 0.07555724680423737, -0.01285929698497057, 0.04025609791278839, 0.007229660637676716, -0.011503019370138645, 0.04925818368792534, -0.015631815418601036, -0.04207288473844528, -0.030241483822464943, -0.02204817719757557, -0.003111300989985466, -0.04261051490902901, 0.03814949467778206, -0.039642583578825, 0.06764420121908188, 0.024601100012660027, 0.03568699583411217, 0.026656927540898323, 0.018099181354045868, 0.044795118272304535, 0.05852864310145378, -0.07635239511728287, -0.005977242719382048, 0.0013928477419540286, 0.00263908295892179, -0.035171885043382645, 0.4026194214820862, 0.012623024173080921, 0.007078677415847778, 0.03650032356381416, 0.019684618338942528, -0.01601816713809967, -0.01181888673454523, 0.0005622428725473583, -0.07837367057800293, 0.016009638085961342, -0.025513678789138794, -0.01332023460417986, -0.045891474932432175, 0.03781746327877045, -0.07537215203046799, -0.017438890412449837, 0.01268168818205595, 0.046376172453165054, 0.014784959144890308, -0.009726863354444504, -0.012516431510448456, -0.021094493567943573, 0.026642106473445892, 0.015673600137233734, 0.013906236737966537, 0.022499332204461098, 0.009255592711269855, -0.006432433146983385, 0.07194879651069641, 0.011684950441122055, 0.05425255373120308, 0.04476187750697136, 0.016924522817134857, -0.06892318278551102, 0.012126351706683636, -0.01074159424751997, -0.006529820151627064, 0.033711835741996765, -0.0388159416615963, 0.013365388847887516, 0.02424546703696251, -0.029807087033987045, -0.046887803822755814, 0.01382689829915762, 0.020596763119101524, -0.01897088810801506, 0.09145593643188477, -0.016169579699635506, -0.00579556729644537, -0.016976099461317062, -0.015944188460707664, -0.024925479665398598, 0.0354137159883976, -0.03535788133740425, -0.0551566481590271, -0.01483906153589487, 0.02156672067940235, 0.0751112774014473, -0.025631219148635864, -0.09094078838825226, -0.000980915385298431, 0.00997746642678976, -0.0035429196432232857, -0.042568787932395935, 0.058846261352300644, 0.00651408638805151, -0.11572404205799103, -0.014468845911324024, 0.03043067455291748, 0.01945086382329464, -0.07219187170267105, 0.008085680194199085, 0.01472561340779066, -0.07157169282436371, -0.025307347998023033, 0.07671640813350677, -0.019234050065279007, -0.03883052244782448, -0.022228194400668144, 0.03199777752161026, 0.0039406330324709415, -0.011968718841671944, 0.02666584588587284, -0.0157572403550148, 0.00718786520883441, -0.06852764636278152, -0.07052769511938095, -0.05784451216459274, 0.021290531381964684, -0.017062347382307053, -0.04036277160048485, -0.021402182057499886, -0.012723916210234165, -0.0801195502281189, 0.06568260490894318, -0.05244722589850426, -0.02245962992310524, 0.009425035677850246, -0.005108699668198824, 0.013722662813961506, -0.02685122936964035, 0.055857978761196136, 0.03038441203534603, 0.007005868013948202, 0.047371912747621536, -0.07058316469192505, 0.01760978437960148, 0.06542719155550003, -0.029095688834786415, 0.02581518143415451, 0.0363343209028244, -0.05244012922048569, 0.019603079184889793, -0.025952817872166634, 0.023711316287517548, -0.01058829203248024, -0.0017220810987055302, -0.00023213042004499584, 0.02298438362777233, 0.0419657826423645, 0.011230798438191414, -0.05972114950418472, -0.04817196726799011, -0.05714058130979538, -0.35913950204849243, -0.049818456172943115, -0.028585435822606087, -0.04665050655603409, -0.018246198073029518, 0.0030869932379573584, 0.019513679668307304, -0.020509883761405945, -0.03839113563299179, 0.012788836844265461, 0.07047721743583679, -0.006681186147034168, -0.01704413630068302, -0.08607585728168488, -0.015683546662330627, 0.020253537222743034, -0.028271151706576347, -0.010620119981467724, -0.003790909191593528, 0.028373250737786293, -0.017762450501322746, -0.06047763302922249, -0.011572584509849548, -0.05964042246341705, 0.004084393382072449, -0.008307290263473988, 0.1277107298374176, 0.01639041118323803, 0.022217409685254097, -0.05189712345600128, 0.05401209369301796, 0.003465576097369194, -0.01093442365527153, -0.0450466014444828, 0.028691530227661133, -0.02309981919825077, 0.0050405277870595455, 0.0453658252954483, -0.021703559905290604, -0.0040941014885902405, -0.03238080069422722, -0.018684493377804756, -0.033977776765823364, -0.04988425225019455, -0.004046295769512653, -0.0029318532906472683, -0.039916232228279114, -0.009677214547991753, 0.000154343550093472, 0.09246756136417389, 0.01829041726887226, 0.03095080517232418, 0.03519119322299957, 0.043299600481987, 0.019428301602602005, -0.0024723228998482227, -0.09257401525974274, -0.004879933316260576, 0.04339050129055977, 0.03149200975894928, 0.020834075286984444, 0.028492961078882217, 0.03528332710266113, -0.07392830401659012, 0.03427392616868019, -0.005467696581035852, 0.002790996339172125, -0.027790654450654984, 0.011257776990532875, -0.05529472604393959, -0.03236139938235283, 0.14579539000988007, 0.017083875834941864, 0.009031654335558414, 0.034646932035684586, 0.047484707087278366, -0.050122108310461044, -0.020680850371718407, 0.0310412235558033, 0.020622489973902702, 0.005033829249441624, -0.014317004941403866, 0.06742721050977707, -0.01940803788602352, -0.012668627314269543, 0.059400491416454315, -0.010493499226868153, -0.020209215581417084, 0.05258657783269882, -0.03687877953052521, -0.02710507996380329, 0.002233329229056835, -0.045527536422014236, -0.030812183395028114, 0.07575371116399765, -0.024471214041113853, -0.2731308043003082, 0.036710385233163834, 0.04920422285795212, 0.03645104542374611, 0.005393211729824543, 0.012177814729511738, 0.010546261444687843, -0.008590169250965118, -0.021952839568257332, 0.0013441025512292981, 0.03363065421581268, 0.03734000027179718, 0.012118610553443432, -0.00585704343393445, 0.014264976605772972, -0.00554788438603282, 0.03450930863618851, -0.005605247803032398, 0.05545015633106232, 0.002993253292515874, 0.06731733679771423, 0.01840137131512165, 0.21556587517261505, 0.04475554823875427, 0.001118173124268651, 0.015889814123511314, -0.028266221284866333, 0.029582226648926735, 0.037527844309806824, 0.020259084179997444, -0.02287607081234455, 0.050799984484910965, 0.021720102056860924, 0.027063000947237015, 0.008945225737988949, -0.04924709349870682, 0.018228184431791306, -0.0016795522533357143, 0.026244280859827995, -0.039881687611341476, -0.007061570882797241, 0.014985606074333191, -0.04113017022609711, 0.07250963151454926, 0.050245992839336395, -0.011582261882722378, -0.014127092435956001, -0.024415208026766777, -0.07319239526987076, -0.005840826779603958, -0.031375955790281296, -0.034768976271152496, -0.01716136373579502, -0.022078294306993484, -0.028933987021446228, 0.04396914318203926, 0.010832039639353752, -0.017930131405591965, 0.0080177690833807, 0.029705995693802834, 0.021735316142439842, -0.03560200333595276, 0.09214188903570175, -0.01864301785826683, 0.015069840475916862 ]
[ 0.04198658838868141, 0.10619920492172241, 0.004330086056143045, 0.03590211272239685, -0.03496436029672623, -0.01542764063924551, -0.007578328251838684, -0.017053771764039993, -0.03553704172372818, -0.006544084753841162, -0.061774950474500656, 0.02462378330528736, 0.04730561003088951, 0.005255966447293758, -0.013107397593557835, 0.0218996312469244, -0.023143421858549118, 0.019627181813120842, 0.02910752221941948, -0.023605775088071823, -0.023862915113568306, 0.003813538933172822, 0.029454855248332024, 0.004939051810652018, 0.011720751412212849, -0.001402068417519331, -0.012020515277981758, 0.04573697969317436, 0.04396235570311546, -0.05461251363158226, -0.04078241065144539, -0.018513860180974007, 0.016067756339907646, 0.007786402013152838, -0.043339803814888, 0.012859593145549297, 0.014266145415604115, 0.03389213606715202, 0.0248749740421772, 0.015142729505896568, 0.04728839546442032, 0.008016790263354778, -0.04313776642084122, 0.04532398656010628, -0.0009029802167788148, -0.026413414627313614, 0.01331542618572712, -0.03366453945636749, -0.020313668996095657, -0.027674678713083267, -0.02855372428894043, -0.006955465767532587, 0.012783928774297237, 0.0033173058182001114, 0.026490528136491776, 0.014851870946586132, -0.08549961447715759, -0.00498460466042161, 0.03527522832155228, -0.03229307383298874, 0.03047555685043335, -0.0389348641037941, -0.05309964716434479, -0.035961538553237915, -0.029185142368078232, 0.005093938671052456, 0.02331256866455078, 0.046318601816892624, 0.02569529041647911, -0.014201823621988297, 0.014287412166595459, 0.021069316193461418, -0.08540210872888565, 0.028213705867528915, -0.02652432955801487, 0.06339304894208908, 0.06511560082435608, -0.05952441319823265, 0.00016703437722753733, -0.023379281163215637, -0.020854460075497627, 0.010226831771433353, -0.01646394655108452, 0.010393649339675903, -0.027895670384168625, 0.027057809755206108, -0.04062102362513542, 0.03264014422893524, -0.007069287821650505, 0.04554257541894913, -0.009228650480508804, 0.02022198960185051, -0.03899344429373741, -0.02171047404408455, -0.0702216774225235, -0.0035826684907078743, 0.03218529000878334, -0.019689325243234634, 0.005887378938496113, 0.7831268310546875, 0.032637372612953186, -0.011981628835201263, 0.00840486865490675, 0.029897350817918777, -0.007359081879258156, 0.012926669791340828, 0.009503110311925411, 0.006966328248381615, -0.05014098063111305, 0.03540995717048645, -0.049697261303663254, 0.03451359644532204, -0.011070107109844685, 0.009655389934778214, -0.012161909602582455, 0.03961583971977234, -0.01728804036974907, 0.0006317446823231876, -0.01406893040984869, -0.0077668046578764915, 0.011423557996749878, -0.003033050801604986, -0.003386908210813999, 0.04246552661061287, -0.013786949217319489, -0.14636115729808807, -0.05763350799679756, -7.794221087618751e-33, 0.027386797592043877, 0.025142258033156395, 0.06280513852834702, 0.048196762800216675, -0.009176945313811302, 0.03333037719130516, 0.02573651447892189, -0.022262681275606155, -0.014726931229233742, -0.037403952330350876, -0.004167153965681791, -0.0036433765199035406, 0.011292671784758568, -0.017563920468091965, 0.010348387993872166, -0.004825621377676725, 0.026076145470142365, -0.0014451409224420786, -0.022875575348734856, -0.014123714528977871, -0.013043657876551151, 0.052889589220285416, -0.03252594172954559, -0.025164471939206123, 0.0105681037530303, -0.01897655986249447, 0.0011510272743180394, -0.014309314079582691, -0.012885993346571922, -0.06815125793218613, -0.07682712376117706, 0.017185920849442482, 0.02176477760076523, 0.0024707585107535124, 0.024734850972890854, -0.08978481590747833, 0.006345575675368309, -0.004453704226762056, -0.019868124276399612, -0.07857932895421982, -0.060075923800468445, -0.004741331096738577, 0.040810491889715195, -0.012615818530321121, -0.010097101330757141, -0.037555765360593796, -0.008585306815803051, 0.0019806709606200457, 0.004316356964409351, 0.02249981462955475, 0.023203816264867783, 0.047347478568553925, -0.027681943029165268, 0.0026499300729483366, -0.027642646804451942, 0.010120538994669914, 0.026818586513400078, 0.02173331379890442, -0.03721587732434273, 0.010878569446504116, 0.057365767657756805, 0.020476171746850014, -0.01240149512887001, 0.02765580825507641, 0.01793699339032173, 0.019609086215496063, -0.028248189017176628, 0.01586974412202835, -0.016306530684232712, 0.056763146072626114, -0.027232304215431213, 0.04246736690402031, -0.03771059215068817, -0.05079495906829834, 0.05030740797519684, -0.043361712247133255, -0.017972683534026146, -0.04746834188699722, 0.014757758006453514, 0.021436288952827454, -0.01126239076256752, -0.04977911338210106, 0.012628849595785141, 0.013250190764665604, 0.01107227522879839, -0.004897471517324448, 0.004008661024272442, 0.01747051067650318, 0.07019635289907455, 0.014013987965881824, 0.02237231284379959, -0.020124921575188637, -0.01934436894953251, -0.02020934596657753, -0.02852032333612442, 6.737494277899732e-33, -0.02939925529062748, 0.014605816453695297, -0.016244424507021904, -0.0004339159349910915, 0.0049452572129666805, 0.012561972253024578, 0.0014716507866978645, -0.007709207944571972, -0.037620704621076584, 0.03260325267910957, -0.013283265754580498, -0.006097504403442144, -0.0025009179953485727, 0.035461410880088806, 0.037916868925094604, -0.02193811722099781, -0.02254834584891796, -0.039190612733364105, 0.05854211375117302, 0.00941222533583641, -0.01878081075847149, 0.0031368103809654713, 0.03427611663937569, 0.05865176394581795, -0.03417695686221123, -0.007664694916456938, 0.005457800347357988, 0.005612627603113651, -0.01524439174681902, -0.01927300915122032, -0.012986460700631142, -0.06306516379117966, 0.0132444454357028, -0.01655302383005619, 0.03774142637848854, -0.026450378820300102, -0.009813283570110798, -0.029821433126926422, 0.019046606495976448, -0.017654797062277794, -0.017464613541960716, -0.00010915785242104903, -0.034773245453834534, 0.06754858791828156, 0.03839358687400818, -0.00831753108650446, 0.010763710364699364, 0.0030505831819027662, 0.027658356353640556, 0.013571355491876602, 0.02623302862048149, 0.03572100028395653, -0.004686928819864988, 0.020055681467056274, 0.021041473373770714, -0.05584067851305008, 0.005612166132777929, 0.023090125992894173, 0.0662507638335228, -0.012618663720786572, -0.035475850105285645, -0.028528278693556786, -0.04747115448117256, 0.026012826710939407, 0.008925768546760082, -0.049953412264585495, -0.048755843192338943, 0.009613716043531895, -0.03672244772315025, -0.0032188850454986095, 0.015514593571424484, 0.0117395194247365, -0.008577896282076836, -0.00024515524273738265, 0.01893533393740654, -0.03365140035748482, -0.017361782491207123, -0.01590735651552677, -0.03411504626274109, 0.023413266986608505, 0.05406487360596657, 0.020058302208781242, 0.02272014319896698, 0.06499558687210083, -0.03113917075097561, -0.024132894352078438, 0.00216084998100996, 0.019655335694551468, -0.06634887307882309, -0.0020818801131099463, 0.010685629211366177, 0.023865241557359695, -0.02579713612794876, 0.06294585019350052, -0.041134558618068695, -1.2608463606511577e-8, -0.04111133888363838, 0.008354404009878635, -0.039446134120225906, -0.009496415965259075, -0.012696810066699982, -0.013995904475450516, -0.0035471238661557436, -0.022810935974121094, 0.019549643620848656, 0.04755550995469093, -0.004030890297144651, -0.019877631217241287, 0.030517032369971275, -0.013169611804187298, -0.004156400449573994, -0.041967447847127914, -0.003553265007212758, -0.013503611087799072, 0.038337592035532, 0.01677596941590309, -0.007670548278838396, 0.057933077216148376, -0.04096727818250656, -0.014423542656004429, 0.0008761858916841447, -0.024600613862276077, 0.030168864876031876, -0.04420986399054527, 0.04343715310096741, 0.006180251017212868, 0.015223751775920391, -0.018861982971429825, -0.005030590575188398, 0.06783279776573181, -0.0333935022354126, -0.008563361130654812, 0.004599605221301317, 0.020045921206474304, 0.06034387648105621, 0.038458891212940216, 0.0010908163385465741, 0.022808779031038284, -0.04405920207500458, -0.032539620995521545, -0.010541337542235851, -0.0331742987036705, -0.026570318266749382, -0.00658457400277257, 0.05415688082575798, -0.03568007051944733, 0.01996108889579773, -0.008520727045834064, 0.017553431913256645, -0.01951148919761181, 0.04732760414481163, -0.030874701216816902, -0.029530588537454605, 0.009840540587902069, 0.04864875599741936, -0.02497692033648491, 0.001344851916655898, -0.010969819501042366, -0.036808811128139496, -0.00868819747120142 ]
neo4j-cypher-property-values-can-primitive-types-arrays-thereof
https://markhneedham.com/blog/2017/12/01/neo4j-cypher-property-values-can-primitive-types-arrays-thereof